@ws-ui/shared 1.11.3-rc1 → 1.11.3-rc2

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,152 @@
1
- "use strict";var kO=Object.defineProperty;var vh=e=>{throw TypeError(e)};var $O=(e,t,r)=>t in e?kO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ve=(e,t,r)=>$O(e,typeof t!="symbol"?t+"":t,r),_l=(e,t,r)=>t.has(e)||vh("Cannot "+r);var re=(e,t,r)=>(_l(e,t,"read from private field"),r?r.call(e):t.get(e)),Et=(e,t,r)=>t.has(e)?vh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),tt=(e,t,r,i)=>(_l(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),$e=(e,t,r)=>(_l(e,t,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const D=require("react/jsx-runtime"),B=require("react"),Pi=require("react-dom"),ot=require("@ws-ui/icons"),gc=require("@emotion/react"),IO=require("re-resizable");function Qm(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 $=Qm(B),LO=Qm(Pi),ev=({children:e,container:t=document.body})=>Pi.createPortal(e,t);var yh=function(t){return t.reduce(function(r,i){var s=i[0],a=i[1];return r[s]=a,r},{})},wh=typeof window<"u"&&window.document&&window.document.createElement?$.useLayoutEffect:$.useEffect,Mt="top",ar="bottom",ur="right",Dt="left",Wc="auto",Wo=[Mt,ar,ur,Dt],Si="start",ko="end",MO="clippingParents",tv="viewport",Ki="popper",DO="reference",bh=Wo.reduce(function(e,t){return e.concat([t+"-"+Si,t+"-"+ko])},[]),rv=[].concat(Wo,[Wc]).reduce(function(e,t){return e.concat([t,t+"-"+Si,t+"-"+ko])},[]),FO="beforeRead",NO="read",jO="afterRead",zO="beforeMain",BO="main",WO="afterMain",HO="beforeWrite",UO="write",qO="afterWrite",ZO=[FO,NO,jO,zO,BO,WO,HO,UO,qO];function $r(e){return e?(e.nodeName||"").toLowerCase():null}function Zt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function qn(e){var t=Zt(e).Element;return e instanceof t||e instanceof Element}function sr(e){var t=Zt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Hc(e){if(typeof ShadowRoot>"u")return!1;var t=Zt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function GO(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)||!$r(a)||(Object.assign(a.style,i),Object.keys(s).forEach(function(u){var c=s[u];c===!1?a.removeAttribute(u):a.setAttribute(u,c===!0?"":c)}))})}function KO(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]),c=u.reduce(function(f,g){return f[g]="",f},{});!sr(s)||!$r(s)||(Object.assign(s.style,c),Object.keys(a).forEach(function(f){s.removeAttribute(f)}))})}}const VO={name:"applyStyles",enabled:!0,phase:"write",fn:GO,effect:KO,requires:["computeStyles"]};function Cr(e){return e.split("-")[0]}var Hn=Math.max,wa=Math.min,Ei=Math.round;function mc(){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 nv(){return!/^((?!chrome|android).)*safari/i.test(mc())}function _i(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&&Ei(i.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Ei(i.height)/e.offsetHeight||1);var u=qn(e)?Zt(e):window,c=u.visualViewport,f=!nv()&&r,g=(i.left+(f&&c?c.offsetLeft:0))/s,h=(i.top+(f&&c?c.offsetTop:0))/a,v=i.width/s,p=i.height/a;return{width:v,height:p,top:h,right:g+v,bottom:h+p,left:g,x:g,y:h}}function Uc(e){var t=_i(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 iv(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Hc(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Yr(e){return Zt(e).getComputedStyle(e)}function YO(e){return["table","td","th"].indexOf($r(e))>=0}function bn(e){return((qn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Da(e){return $r(e)==="html"?e:e.assignedSlot||e.parentNode||(Hc(e)?e.host:null)||bn(e)}function xh(e){return!sr(e)||Yr(e).position==="fixed"?null:e.offsetParent}function XO(e){var t=/firefox/i.test(mc()),r=/Trident/i.test(mc());if(r&&sr(e)){var i=Yr(e);if(i.position==="fixed")return null}var s=Da(e);for(Hc(s)&&(s=s.host);sr(s)&&["html","body"].indexOf($r(s))<0;){var a=Yr(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 Ho(e){for(var t=Zt(e),r=xh(e);r&&YO(r)&&Yr(r).position==="static";)r=xh(r);return r&&($r(r)==="html"||$r(r)==="body"&&Yr(r).position==="static")?t:r||XO(e)||t}function qc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function To(e,t,r){return Hn(e,wa(t,r))}function JO(e,t,r){var i=To(e,t,r);return i>r?r:i}function ov(){return{top:0,right:0,bottom:0,left:0}}function sv(e){return Object.assign({},ov(),e)}function av(e,t){return t.reduce(function(r,i){return r[i]=e,r},{})}var QO=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,sv(typeof t!="number"?t:av(t,Wo))};function eT(e){var t,r=e.state,i=e.name,s=e.options,a=r.elements.arrow,u=r.modifiersData.popperOffsets,c=Cr(r.placement),f=qc(c),g=[Dt,ur].indexOf(c)>=0,h=g?"height":"width";if(!(!a||!u)){var v=QO(s.padding,r),p=Uc(a),y=f==="y"?Mt:Dt,x=f==="y"?ar:ur,d=r.rects.reference[h]+r.rects.reference[f]-u[f]-r.rects.popper[h],b=u[f]-r.rects.reference[f],m=Ho(a),S=m?f==="y"?m.clientHeight||0:m.clientWidth||0:0,E=d/2-b/2,R=v[y],O=S-p[h]-v[x],k=S/2-p[h]/2+E,W=To(R,k,O),M=f;r.modifiersData[i]=(t={},t[M]=W,t.centerOffset=W-k,t)}}function tT(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)||iv(t.elements.popper,s)&&(t.elements.arrow=s))}const rT={name:"arrow",enabled:!0,phase:"main",fn:eT,effect:tT,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Oi(e){return e.split("-")[1]}var nT={top:"auto",right:"auto",bottom:"auto",left:"auto"};function iT(e,t){var r=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:Ei(r*s)/s||0,y:Ei(i*s)/s||0}}function Sh(e){var t,r=e.popper,i=e.popperRect,s=e.placement,a=e.variation,u=e.offsets,c=e.position,f=e.gpuAcceleration,g=e.adaptive,h=e.roundOffsets,v=e.isFixed,p=u.x,y=p===void 0?0:p,x=u.y,d=x===void 0?0:x,b=typeof h=="function"?h({x:y,y:d}):{x:y,y:d};y=b.x,d=b.y;var m=u.hasOwnProperty("x"),S=u.hasOwnProperty("y"),E=Dt,R=Mt,O=window;if(g){var k=Ho(r),W="clientHeight",M="clientWidth";if(k===Zt(r)&&(k=bn(r),Yr(k).position!=="static"&&c==="absolute"&&(W="scrollHeight",M="scrollWidth")),k=k,s===Mt||(s===Dt||s===ur)&&a===ko){R=ar;var F=v&&k===O&&O.visualViewport?O.visualViewport.height:k[W];d-=F-i.height,d*=f?1:-1}if(s===Dt||(s===Mt||s===ar)&&a===ko){E=ur;var G=v&&k===O&&O.visualViewport?O.visualViewport.width:k[M];y-=G-i.width,y*=f?1:-1}}var j=Object.assign({position:c},g&&nT),L=h===!0?iT({x:y,y:d},Zt(r)):{x:y,y:d};if(y=L.x,d=L.y,f){var H;return Object.assign({},j,(H={},H[R]=S?"0":"",H[E]=m?"0":"",H.transform=(O.devicePixelRatio||1)<=1?"translate("+y+"px, "+d+"px)":"translate3d("+y+"px, "+d+"px, 0)",H))}return Object.assign({},j,(t={},t[R]=S?d+"px":"",t[E]=m?y+"px":"",t.transform="",t))}function oT(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,c=r.roundOffsets,f=c===void 0?!0:c,g={placement:Cr(t.placement),variation:Oi(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,Sh(Object.assign({},g,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Sh(Object.assign({},g,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const sT={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:oT,data:{}};var Bs={passive:!0};function aT(e){var t=e.state,r=e.instance,i=e.options,s=i.scroll,a=s===void 0?!0:s,u=i.resize,c=u===void 0?!0:u,f=Zt(t.elements.popper),g=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&g.forEach(function(h){h.addEventListener("scroll",r.update,Bs)}),c&&f.addEventListener("resize",r.update,Bs),function(){a&&g.forEach(function(h){h.removeEventListener("scroll",r.update,Bs)}),c&&f.removeEventListener("resize",r.update,Bs)}}const uT={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:aT,data:{}};var lT={left:"right",right:"left",bottom:"top",top:"bottom"};function la(e){return e.replace(/left|right|bottom|top/g,function(t){return lT[t]})}var cT={start:"end",end:"start"};function Eh(e){return e.replace(/start|end/g,function(t){return cT[t]})}function Zc(e){var t=Zt(e),r=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function Gc(e){return _i(bn(e)).left+Zc(e).scrollLeft}function fT(e,t){var r=Zt(e),i=bn(e),s=r.visualViewport,a=i.clientWidth,u=i.clientHeight,c=0,f=0;if(s){a=s.width,u=s.height;var g=nv();(g||!g&&t==="fixed")&&(c=s.offsetLeft,f=s.offsetTop)}return{width:a,height:u,x:c+Gc(e),y:f}}function dT(e){var t,r=bn(e),i=Zc(e),s=(t=e.ownerDocument)==null?void 0:t.body,a=Hn(r.scrollWidth,r.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),u=Hn(r.scrollHeight,r.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),c=-i.scrollLeft+Gc(e),f=-i.scrollTop;return Yr(s||r).direction==="rtl"&&(c+=Hn(r.clientWidth,s?s.clientWidth:0)-a),{width:a,height:u,x:c,y:f}}function Kc(e){var t=Yr(e),r=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+s+i)}function uv(e){return["html","body","#document"].indexOf($r(e))>=0?e.ownerDocument.body:sr(e)&&Kc(e)?e:uv(Da(e))}function Ao(e,t){var r;t===void 0&&(t=[]);var i=uv(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),a=Zt(i),u=s?[a].concat(a.visualViewport||[],Kc(i)?i:[]):i,c=t.concat(u);return s?c:c.concat(Ao(Da(u)))}function vc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function pT(e,t){var r=_i(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 _h(e,t,r){return t===tv?vc(fT(e,r)):qn(t)?pT(t,r):vc(dT(bn(e)))}function hT(e){var t=Ao(Da(e)),r=["absolute","fixed"].indexOf(Yr(e).position)>=0,i=r&&sr(e)?Ho(e):e;return qn(i)?t.filter(function(s){return qn(s)&&iv(s,i)&&$r(s)!=="body"}):[]}function gT(e,t,r,i){var s=t==="clippingParents"?hT(e):[].concat(t),a=[].concat(s,[r]),u=a[0],c=a.reduce(function(f,g){var h=_h(e,g,i);return f.top=Hn(h.top,f.top),f.right=wa(h.right,f.right),f.bottom=wa(h.bottom,f.bottom),f.left=Hn(h.left,f.left),f},_h(e,u,i));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function lv(e){var t=e.reference,r=e.element,i=e.placement,s=i?Cr(i):null,a=i?Oi(i):null,u=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,f;switch(s){case Mt: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:c};break;case Dt:f={x:t.x-r.width,y:c};break;default:f={x:t.x,y:t.y}}var g=s?qc(s):null;if(g!=null){var h=g==="y"?"height":"width";switch(a){case Si:f[g]=f[g]-(t[h]/2-r[h]/2);break;case ko:f[g]=f[g]+(t[h]/2-r[h]/2);break}}return f}function $o(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,c=r.boundary,f=c===void 0?MO:c,g=r.rootBoundary,h=g===void 0?tv:g,v=r.elementContext,p=v===void 0?Ki:v,y=r.altBoundary,x=y===void 0?!1:y,d=r.padding,b=d===void 0?0:d,m=sv(typeof b!="number"?b:av(b,Wo)),S=p===Ki?DO:Ki,E=e.rects.popper,R=e.elements[x?S:p],O=gT(qn(R)?R:R.contextElement||bn(e.elements.popper),f,h,u),k=_i(e.elements.reference),W=lv({reference:k,element:E,placement:s}),M=vc(Object.assign({},E,W)),F=p===Ki?M:k,G={top:O.top-F.top+m.top,bottom:F.bottom-O.bottom+m.bottom,left:O.left-F.left+m.left,right:F.right-O.right+m.right},j=e.modifiersData.offset;if(p===Ki&&j){var L=j[s];Object.keys(G).forEach(function(H){var q=[ur,ar].indexOf(H)>=0?1:-1,C=[Mt,ar].indexOf(H)>=0?"y":"x";G[H]+=L[C]*q})}return G}function mT(e,t){t===void 0&&(t={});var r=t,i=r.placement,s=r.boundary,a=r.rootBoundary,u=r.padding,c=r.flipVariations,f=r.allowedAutoPlacements,g=f===void 0?rv:f,h=Oi(i),v=h?c?bh:bh.filter(function(x){return Oi(x)===h}):Wo,p=v.filter(function(x){return g.indexOf(x)>=0});p.length===0&&(p=v);var y=p.reduce(function(x,d){return x[d]=$o(e,{placement:d,boundary:s,rootBoundary:a,padding:u})[Cr(d)],x},{});return Object.keys(y).sort(function(x,d){return y[x]-y[d]})}function vT(e){if(Cr(e)===Wc)return[];var t=la(e);return[Eh(e),t,Eh(t)]}function yT(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,c=u===void 0?!0:u,f=r.fallbackPlacements,g=r.padding,h=r.boundary,v=r.rootBoundary,p=r.altBoundary,y=r.flipVariations,x=y===void 0?!0:y,d=r.allowedAutoPlacements,b=t.options.placement,m=Cr(b),S=m===b,E=f||(S||!x?[la(b)]:vT(b)),R=[b].concat(E).reduce(function(ne,ce){return ne.concat(Cr(ce)===Wc?mT(t,{placement:ce,boundary:h,rootBoundary:v,padding:g,flipVariations:x,allowedAutoPlacements:d}):ce)},[]),O=t.rects.reference,k=t.rects.popper,W=new Map,M=!0,F=R[0],G=0;G<R.length;G++){var j=R[G],L=Cr(j),H=Oi(j)===Si,q=[Mt,ar].indexOf(L)>=0,C=q?"width":"height",J=$o(t,{placement:j,boundary:h,rootBoundary:v,altBoundary:p,padding:g}),Y=q?H?ur:Dt:H?ar:Mt;O[C]>k[C]&&(Y=la(Y));var te=la(Y),de=[];if(a&&de.push(J[L]<=0),c&&de.push(J[Y]<=0,J[te]<=0),de.every(function(ne){return ne})){F=j,M=!1;break}W.set(j,de)}if(M)for(var Z=x?3:1,Q=function(ce){var fe=R.find(function(ye){var me=W.get(ye);if(me)return me.slice(0,ce).every(function(Ee){return Ee})});if(fe)return F=fe,"break"},se=Z;se>0;se--){var ue=Q(se);if(ue==="break")break}t.placement!==F&&(t.modifiersData[i]._skip=!0,t.placement=F,t.reset=!0)}}const wT={name:"flip",enabled:!0,phase:"main",fn:yT,requiresIfExists:["offset"],data:{_skip:!1}};function Oh(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 Th(e){return[Mt,ur,ar,Dt].some(function(t){return e[t]>=0})}function bT(e){var t=e.state,r=e.name,i=t.rects.reference,s=t.rects.popper,a=t.modifiersData.preventOverflow,u=$o(t,{elementContext:"reference"}),c=$o(t,{altBoundary:!0}),f=Oh(u,i),g=Oh(c,s,a),h=Th(f),v=Th(g);t.modifiersData[r]={referenceClippingOffsets:f,popperEscapeOffsets:g,isReferenceHidden:h,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":v})}const xT={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:bT};function ST(e,t,r){var i=Cr(e),s=[Dt,Mt].indexOf(i)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,u=a[0],c=a[1];return u=u||0,c=(c||0)*s,[Dt,ur].indexOf(i)>=0?{x:c,y:u}:{x:u,y:c}}function ET(e){var t=e.state,r=e.options,i=e.name,s=r.offset,a=s===void 0?[0,0]:s,u=rv.reduce(function(h,v){return h[v]=ST(v,t.rects,a),h},{}),c=u[t.placement],f=c.x,g=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=g),t.modifiersData[i]=u}const _T={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ET};function OT(e){var t=e.state,r=e.name;t.modifiersData[r]=lv({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const TT={name:"popperOffsets",enabled:!0,phase:"read",fn:OT,data:{}};function AT(e){return e==="x"?"y":"x"}function RT(e){var t=e.state,r=e.options,i=e.name,s=r.mainAxis,a=s===void 0?!0:s,u=r.altAxis,c=u===void 0?!1:u,f=r.boundary,g=r.rootBoundary,h=r.altBoundary,v=r.padding,p=r.tether,y=p===void 0?!0:p,x=r.tetherOffset,d=x===void 0?0:x,b=$o(t,{boundary:f,rootBoundary:g,padding:v,altBoundary:h}),m=Cr(t.placement),S=Oi(t.placement),E=!S,R=qc(m),O=AT(R),k=t.modifiersData.popperOffsets,W=t.rects.reference,M=t.rects.popper,F=typeof d=="function"?d(Object.assign({},t.rects,{placement:t.placement})):d,G=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(k){if(a){var H,q=R==="y"?Mt:Dt,C=R==="y"?ar:ur,J=R==="y"?"height":"width",Y=k[R],te=Y+b[q],de=Y-b[C],Z=y?-M[J]/2:0,Q=S===Si?W[J]:M[J],se=S===Si?-M[J]:-W[J],ue=t.elements.arrow,ne=y&&ue?Uc(ue):{width:0,height:0},ce=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ov(),fe=ce[q],ye=ce[C],me=To(0,W[J],ne[J]),Ee=E?W[J]/2-Z-me-fe-G.mainAxis:Q-me-fe-G.mainAxis,Te=E?-W[J]/2+Z+me+ye+G.mainAxis:se+me+ye+G.mainAxis,Ve=t.elements.arrow&&Ho(t.elements.arrow),ie=Ve?R==="y"?Ve.clientTop||0:Ve.clientLeft||0:0,wt=(H=j==null?void 0:j[R])!=null?H:0,ft=Y+Ee-wt-ie,wr=Y+Te-wt,Yo=To(y?wa(te,ft):te,Y,y?Hn(de,wr):de);k[R]=Yo,L[R]=Yo-Y}if(c){var Vt,Xo=R==="x"?Mt:Dt,ru=R==="x"?ar:ur,Ft=k[O],bt=O==="y"?"height":"width",Jr=Ft+b[Xo],_n=Ft-b[ru],$i=[Mt,Dt].indexOf(m)!==-1,Qr=(Vt=j==null?void 0:j[O])!=null?Vt:0,Jo=$i?Jr:Ft-W[bt]-M[bt]-Qr+G.altAxis,en=$i?Ft+W[bt]+M[bt]-Qr-G.altAxis:_n,Mr=y&&$i?JO(Jo,Ft,en):To(y?Jo:Jr,Ft,y?en:_n);k[O]=Mr,L[O]=Mr-Ft}t.modifiersData[i]=L}}const PT={name:"preventOverflow",enabled:!0,phase:"main",fn:RT,requiresIfExists:["offset"]};function CT(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function kT(e){return e===Zt(e)||!sr(e)?Zc(e):CT(e)}function $T(e){var t=e.getBoundingClientRect(),r=Ei(t.width)/e.offsetWidth||1,i=Ei(t.height)/e.offsetHeight||1;return r!==1||i!==1}function IT(e,t,r){r===void 0&&(r=!1);var i=sr(t),s=sr(t)&&$T(t),a=bn(t),u=_i(e,s,r),c={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(i||!i&&!r)&&(($r(t)!=="body"||Kc(a))&&(c=kT(t)),sr(t)?(f=_i(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):a&&(f.x=Gc(a))),{x:u.left+c.scrollLeft-f.x,y:u.top+c.scrollTop-f.y,width:u.width,height:u.height}}function LT(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(c){if(!r.has(c)){var f=t.get(c);f&&s(f)}}),i.push(a)}return e.forEach(function(a){r.has(a.name)||s(a)}),i}function MT(e){var t=LT(e);return ZO.reduce(function(r,i){return r.concat(t.filter(function(s){return s.phase===i}))},[])}function DT(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function FT(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 Ah={placement:"bottom",modifiers:[],strategy:"absolute"};function Rh(){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 NT(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,i=r===void 0?[]:r,s=t.defaultOptions,a=s===void 0?Ah:s;return function(c,f,g){g===void 0&&(g=a);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ah,a),modifiersData:{},elements:{reference:c,popper:f},attributes:{},styles:{}},v=[],p=!1,y={state:h,setOptions:function(m){var S=typeof m=="function"?m(h.options):m;d(),h.options=Object.assign({},a,h.options,S),h.scrollParents={reference:qn(c)?Ao(c):c.contextElement?Ao(c.contextElement):[],popper:Ao(f)};var E=MT(FT([].concat(i,h.options.modifiers)));return h.orderedModifiers=E.filter(function(R){return R.enabled}),x(),y.update()},forceUpdate:function(){if(!p){var m=h.elements,S=m.reference,E=m.popper;if(Rh(S,E)){h.rects={reference:IT(S,Ho(E),h.options.strategy==="fixed"),popper:Uc(E)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(G){return h.modifiersData[G.name]=Object.assign({},G.data)});for(var R=0;R<h.orderedModifiers.length;R++){if(h.reset===!0){h.reset=!1,R=-1;continue}var O=h.orderedModifiers[R],k=O.fn,W=O.options,M=W===void 0?{}:W,F=O.name;typeof k=="function"&&(h=k({state:h,options:M,name:F,instance:y})||h)}}}},update:DT(function(){return new Promise(function(b){y.forceUpdate(),b(h)})}),destroy:function(){d(),p=!0}};if(!Rh(c,f))return y;y.setOptions(g).then(function(b){!p&&g.onFirstUpdate&&g.onFirstUpdate(b)});function x(){h.orderedModifiers.forEach(function(b){var m=b.name,S=b.options,E=S===void 0?{}:S,R=b.effect;if(typeof R=="function"){var O=R({state:h,name:m,instance:y,options:E}),k=function(){};v.push(O||k)}})}function d(){v.forEach(function(b){return b()}),v=[]}return y}}var jT=[uT,TT,sT,VO,_T,wT,PT,rT,xT],zT=NT({defaultModifiers:jT}),Ws=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ol,Ph;function BT(){if(Ph)return Ol;Ph=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 c,f,g;if(Array.isArray(a)){if(c=a.length,c!=u.length)return!1;for(f=c;f--!==0;)if(!s(a[f],u[f]))return!1;return!0}var h;if(t&&a instanceof Map&&u instanceof Map){if(a.size!==u.size)return!1;for(h=a.entries();!(f=h.next()).done;)if(!u.has(f.value[0]))return!1;for(h=a.entries();!(f=h.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(h=a.entries();!(f=h.next()).done;)if(!u.has(f.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(u)){if(c=a.length,c!=u.length)return!1;for(f=c;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(g=Object.keys(a),c=g.length,c!==Object.keys(u).length)return!1;for(f=c;f--!==0;)if(!Object.prototype.hasOwnProperty.call(u,g[f]))return!1;if(e&&a instanceof Element)return!1;for(f=c;f--!==0;)if(!((g[f]==="_owner"||g[f]==="__v"||g[f]==="__o")&&a.$$typeof)&&!s(a[g[f]],u[g[f]]))return!1;return!0}return a!==a&&u!==u}return Ol=function(u,c){try{return s(u,c)}catch(f){if((f.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw f}},Ol}var WT=BT();const HT=cv(WT);var UT=[],Vc=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||UT},u=$.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=u[0],f=u[1],g=$.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(y){var x=y.state,d=Object.keys(x.elements);LO.flushSync(function(){f({styles:yh(d.map(function(b){return[b,x.styles[b]||{}]})),attributes:yh(d.map(function(b){return[b,x.attributes[b]]}))})})},requires:["computeStyles"]}},[]),h=$.useMemo(function(){var p={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[g,{name:"applyStyles",enabled:!1}])};return HT(s.current,p)?s.current||p:(s.current=p,p)},[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,g]),v=$.useRef();return wh(function(){v.current&&v.current.setOptions(h)},[h]),wh(function(){if(!(t==null||r==null)){var p=i.createPopper||zT,y=p(t,r,h);return v.current=y,function(){y.destroy(),v.current=null}}},[t,r,i.createPopper]),{state:v.current?v.current.state:null,styles:c.styles,attributes:c.attributes,update:v.current?v.current.update:null,forceUpdate:v.current?v.current.forceUpdate:null}};const fv=e=>D.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),dv=B.forwardRef(({children:e,style:t,attributes:r},i)=>D.jsx("div",{style:{...t,zIndex:2e3},...r,ref:i,className:"w-60 rounded border rounded border border-grey-50 bg-grey-900 shadow-2xl","data-cy":"dialogBody",children:e})),qT=({referenceElement:e,placement:t,isOpen:r,children:i,onClose:s})=>{const[a,u]=B.useState(null),{styles:c,attributes:f}=Vc(e,a,{placement:t||"bottom-start"}),g=B.useCallback(()=>{s&&s()},[s]);return r?D.jsxs(ev,{children:[D.jsx(fv,{onClick:()=>g()}),D.jsx(dv,{ref:u,style:c.popper,attributes:f.popper,children:i})]}):null};var Tl={exports:{}};/*!
1
+ "use strict";var CR=Object.defineProperty;var lv=e=>{throw TypeError(e)};var PR=(e,t,r)=>t in e?CR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Oe=(e,t,r)=>PR(e,typeof t!="symbol"?t+"":t,r),Uu=(e,t,r)=>t.has(e)||lv("Cannot "+r);var de=(e,t,r)=>(Uu(e,t,"read from private field"),r?r.call(e):t.get(e)),Ht=(e,t,r)=>t.has(e)?lv("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),gt=(e,t,r,n)=>(Uu(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),We=(e,t,r)=>(Uu(e,t,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react/jsx-runtime"),H=require("react"),ti=require("react-dom"),wt=require("@ws-ui/icons"),Kf=require("@emotion/react");function j0(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const z=j0(H),IR=j0(ti),F0=({children:e,container:t=document.body})=>ti.createPortal(e,t);var cv=function(t){return t.reduce(function(r,n){var o=n[0],a=n[1];return r[o]=a,r},{})},uv=typeof window<"u"&&window.document&&window.document.createElement?z.useLayoutEffect:z.useEffect,rr="top",Cr="bottom",Pr="right",nr="left",Ad="auto",qa=[rr,Cr,Pr,nr],go="start",Ia="end",NR="clippingParents",H0="viewport",Vo="popper",MR="reference",fv=qa.reduce(function(e,t){return e.concat([t+"-"+go,t+"-"+Ia])},[]),W0=[].concat(qa,[Ad]).reduce(function(e,t){return e.concat([t,t+"-"+go,t+"-"+Ia])},[]),DR="beforeRead",$R="read",LR="afterRead",zR="beforeMain",jR="main",FR="afterMain",HR="beforeWrite",WR="write",BR="afterWrite",VR=[DR,$R,LR,zR,jR,FR,HR,WR,BR];function ln(e){return e?(e.nodeName||"").toLowerCase():null}function pr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Pi(e){var t=pr(e).Element;return e instanceof t||e instanceof Element}function Rr(e){var t=pr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Td(e){if(typeof ShadowRoot>"u")return!1;var t=pr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function UR(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},a=t.elements[r];!Rr(a)||!ln(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(l){var c=o[l];c===!1?a.removeAttribute(l):a.setAttribute(l,c===!0?"":c)}))})}function qR(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],a=t.attributes[n]||{},l=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),c=l.reduce(function(u,d){return u[d]="",u},{});!Rr(o)||!ln(o)||(Object.assign(o.style,c),Object.keys(a).forEach(function(u){o.removeAttribute(u)}))})}}const GR={name:"applyStyles",enabled:!0,phase:"write",fn:UR,effect:qR,requires:["computeStyles"]};function an(e){return e.split("-")[0]}var Ri=Math.max,Bl=Math.min,vo=Math.round;function Zf(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function B0(){return!/^((?!chrome|android).)*safari/i.test(Zf())}function mo(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&Rr(e)&&(o=e.offsetWidth>0&&vo(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&vo(n.height)/e.offsetHeight||1);var l=Pi(e)?pr(e):window,c=l.visualViewport,u=!B0()&&r,d=(n.left+(u&&c?c.offsetLeft:0))/o,p=(n.top+(u&&c?c.offsetTop:0))/a,h=n.width/o,g=n.height/a;return{width:h,height:g,top:p,right:d+h,bottom:p+g,left:d,x:d,y:p}}function Rd(e){var t=mo(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function V0(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Td(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Rn(e){return pr(e).getComputedStyle(e)}function YR(e){return["table","td","th"].indexOf(ln(e))>=0}function ri(e){return((Pi(e)?e.ownerDocument:e.document)||window.document).documentElement}function uc(e){return ln(e)==="html"?e:e.assignedSlot||e.parentNode||(Td(e)?e.host:null)||ri(e)}function dv(e){return!Rr(e)||Rn(e).position==="fixed"?null:e.offsetParent}function KR(e){var t=/firefox/i.test(Zf()),r=/Trident/i.test(Zf());if(r&&Rr(e)){var n=Rn(e);if(n.position==="fixed")return null}var o=uc(e);for(Td(o)&&(o=o.host);Rr(o)&&["html","body"].indexOf(ln(o))<0;){var a=Rn(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function Ga(e){for(var t=pr(e),r=dv(e);r&&YR(r)&&Rn(r).position==="static";)r=dv(r);return r&&(ln(r)==="html"||ln(r)==="body"&&Rn(r).position==="static")?t:r||KR(e)||t}function Cd(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Oa(e,t,r){return Ri(e,Bl(t,r))}function ZR(e,t,r){var n=Oa(e,t,r);return n>r?r:n}function U0(){return{top:0,right:0,bottom:0,left:0}}function q0(e){return Object.assign({},U0(),e)}function G0(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var XR=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,q0(typeof t!="number"?t:G0(t,qa))};function JR(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,l=r.modifiersData.popperOffsets,c=an(r.placement),u=Cd(c),d=[nr,Pr].indexOf(c)>=0,p=d?"height":"width";if(!(!a||!l)){var h=XR(o.padding,r),g=Rd(a),y=u==="y"?rr:nr,S=u==="y"?Cr:Pr,v=r.rects.reference[p]+r.rects.reference[u]-l[u]-r.rects.popper[p],b=l[u]-r.rects.reference[u],m=Ga(a),w=m?u==="y"?m.clientHeight||0:m.clientWidth||0:0,x=v/2-b/2,k=h[y],E=w-g[p]-h[S],R=w/2-g[p]/2+x,F=Oa(k,R,E),A=u;r.modifiersData[n]=(t={},t[A]=F,t.centerOffset=F-R,t)}}function QR(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||V0(t.elements.popper,o)&&(t.elements.arrow=o))}const eC={name:"arrow",enabled:!0,phase:"main",fn:JR,effect:QR,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function bo(e){return e.split("-")[1]}var tC={top:"auto",right:"auto",bottom:"auto",left:"auto"};function rC(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:vo(r*o)/o||0,y:vo(n*o)/o||0}}function pv(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,l=e.offsets,c=e.position,u=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,h=e.isFixed,g=l.x,y=g===void 0?0:g,S=l.y,v=S===void 0?0:S,b=typeof p=="function"?p({x:y,y:v}):{x:y,y:v};y=b.x,v=b.y;var m=l.hasOwnProperty("x"),w=l.hasOwnProperty("y"),x=nr,k=rr,E=window;if(d){var R=Ga(r),F="clientHeight",A="clientWidth";if(R===pr(r)&&(R=ri(r),Rn(R).position!=="static"&&c==="absolute"&&(F="scrollHeight",A="scrollWidth")),R=R,o===rr||(o===nr||o===Pr)&&a===Ia){k=Cr;var N=h&&R===E&&E.visualViewport?E.visualViewport.height:R[F];v-=N-n.height,v*=u?1:-1}if(o===nr||(o===rr||o===Cr)&&a===Ia){x=Pr;var V=h&&R===E&&E.visualViewport?E.visualViewport.width:R[A];y-=V-n.width,y*=u?1:-1}}var $=Object.assign({position:c},d&&tC),M=p===!0?rC({x:y,y:v},pr(r)):{x:y,y:v};if(y=M.x,v=M.y,u){var B;return Object.assign({},$,(B={},B[k]=w?"0":"",B[x]=m?"0":"",B.transform=(E.devicePixelRatio||1)<=1?"translate("+y+"px, "+v+"px)":"translate3d("+y+"px, "+v+"px, 0)",B))}return Object.assign({},$,(t={},t[k]=w?v+"px":"",t[x]=m?y+"px":"",t.transform="",t))}function nC(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,l=a===void 0?!0:a,c=r.roundOffsets,u=c===void 0?!0:c,d={placement:an(t.placement),variation:bo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,pv(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,pv(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const iC={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:nC,data:{}};var Vs={passive:!0};function oC(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=o===void 0?!0:o,l=n.resize,c=l===void 0?!0:l,u=pr(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach(function(p){p.addEventListener("scroll",r.update,Vs)}),c&&u.addEventListener("resize",r.update,Vs),function(){a&&d.forEach(function(p){p.removeEventListener("scroll",r.update,Vs)}),c&&u.removeEventListener("resize",r.update,Vs)}}const aC={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:oC,data:{}};var sC={left:"right",right:"left",bottom:"top",top:"bottom"};function kl(e){return e.replace(/left|right|bottom|top/g,function(t){return sC[t]})}var lC={start:"end",end:"start"};function hv(e){return e.replace(/start|end/g,function(t){return lC[t]})}function Pd(e){var t=pr(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Id(e){return mo(ri(e)).left+Pd(e).scrollLeft}function cC(e,t){var r=pr(e),n=ri(e),o=r.visualViewport,a=n.clientWidth,l=n.clientHeight,c=0,u=0;if(o){a=o.width,l=o.height;var d=B0();(d||!d&&t==="fixed")&&(c=o.offsetLeft,u=o.offsetTop)}return{width:a,height:l,x:c+Id(e),y:u}}function uC(e){var t,r=ri(e),n=Pd(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Ri(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=Ri(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-n.scrollLeft+Id(e),u=-n.scrollTop;return Rn(o||r).direction==="rtl"&&(c+=Ri(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:l,x:c,y:u}}function Nd(e){var t=Rn(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Y0(e){return["html","body","#document"].indexOf(ln(e))>=0?e.ownerDocument.body:Rr(e)&&Nd(e)?e:Y0(uc(e))}function Aa(e,t){var r;t===void 0&&(t=[]);var n=Y0(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=pr(n),l=o?[a].concat(a.visualViewport||[],Nd(n)?n:[]):n,c=t.concat(l);return o?c:c.concat(Aa(uc(l)))}function Xf(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function fC(e,t){var r=mo(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function gv(e,t,r){return t===H0?Xf(cC(e,r)):Pi(t)?fC(t,r):Xf(uC(ri(e)))}function dC(e){var t=Aa(uc(e)),r=["absolute","fixed"].indexOf(Rn(e).position)>=0,n=r&&Rr(e)?Ga(e):e;return Pi(n)?t.filter(function(o){return Pi(o)&&V0(o,n)&&ln(o)!=="body"}):[]}function pC(e,t,r,n){var o=t==="clippingParents"?dC(e):[].concat(t),a=[].concat(o,[r]),l=a[0],c=a.reduce(function(u,d){var p=gv(e,d,n);return u.top=Ri(p.top,u.top),u.right=Bl(p.right,u.right),u.bottom=Bl(p.bottom,u.bottom),u.left=Ri(p.left,u.left),u},gv(e,l,n));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function K0(e){var t=e.reference,r=e.element,n=e.placement,o=n?an(n):null,a=n?bo(n):null,l=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,u;switch(o){case rr:u={x:l,y:t.y-r.height};break;case Cr:u={x:l,y:t.y+t.height};break;case Pr:u={x:t.x+t.width,y:c};break;case nr:u={x:t.x-r.width,y:c};break;default:u={x:t.x,y:t.y}}var d=o?Cd(o):null;if(d!=null){var p=d==="y"?"height":"width";switch(a){case go:u[d]=u[d]-(t[p]/2-r[p]/2);break;case Ia:u[d]=u[d]+(t[p]/2-r[p]/2);break}}return u}function Na(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.strategy,l=a===void 0?e.strategy:a,c=r.boundary,u=c===void 0?NR:c,d=r.rootBoundary,p=d===void 0?H0:d,h=r.elementContext,g=h===void 0?Vo:h,y=r.altBoundary,S=y===void 0?!1:y,v=r.padding,b=v===void 0?0:v,m=q0(typeof b!="number"?b:G0(b,qa)),w=g===Vo?MR:Vo,x=e.rects.popper,k=e.elements[S?w:g],E=pC(Pi(k)?k:k.contextElement||ri(e.elements.popper),u,p,l),R=mo(e.elements.reference),F=K0({reference:R,element:x,placement:o}),A=Xf(Object.assign({},x,F)),N=g===Vo?A:R,V={top:E.top-N.top+m.top,bottom:N.bottom-E.bottom+m.bottom,left:E.left-N.left+m.left,right:N.right-E.right+m.right},$=e.modifiersData.offset;if(g===Vo&&$){var M=$[o];Object.keys(V).forEach(function(B){var j=[Pr,Cr].indexOf(B)>=0?1:-1,I=[rr,Cr].indexOf(B)>=0?"y":"x";V[B]+=M[I]*j})}return V}function hC(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,l=r.padding,c=r.flipVariations,u=r.allowedAutoPlacements,d=u===void 0?W0:u,p=bo(n),h=p?c?fv:fv.filter(function(S){return bo(S)===p}):qa,g=h.filter(function(S){return d.indexOf(S)>=0});g.length===0&&(g=h);var y=g.reduce(function(S,v){return S[v]=Na(e,{placement:v,boundary:o,rootBoundary:a,padding:l})[an(v)],S},{});return Object.keys(y).sort(function(S,v){return y[S]-y[v]})}function gC(e){if(an(e)===Ad)return[];var t=kl(e);return[hv(e),t,hv(t)]}function vC(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,l=r.altAxis,c=l===void 0?!0:l,u=r.fallbackPlacements,d=r.padding,p=r.boundary,h=r.rootBoundary,g=r.altBoundary,y=r.flipVariations,S=y===void 0?!0:y,v=r.allowedAutoPlacements,b=t.options.placement,m=an(b),w=m===b,x=u||(w||!S?[kl(b)]:gC(b)),k=[b].concat(x).reduce(function(J,ae){return J.concat(an(ae)===Ad?hC(t,{placement:ae,boundary:p,rootBoundary:h,padding:d,flipVariations:S,allowedAutoPlacements:v}):ae)},[]),E=t.rects.reference,R=t.rects.popper,F=new Map,A=!0,N=k[0],V=0;V<k.length;V++){var $=k[V],M=an($),B=bo($)===go,j=[rr,Cr].indexOf(M)>=0,I=j?"width":"height",Y=Na(t,{placement:$,boundary:p,rootBoundary:h,altBoundary:g,padding:d}),X=j?B?Pr:nr:B?Cr:rr;E[I]>R[I]&&(X=kl(X));var K=kl(X),me=[];if(a&&me.push(Y[M]<=0),c&&me.push(Y[X]<=0,Y[K]<=0),me.every(function(J){return J})){N=$,A=!1;break}F.set($,me)}if(A)for(var L=S?3:1,U=function(ae){var se=k.find(function(ne){var ce=F.get(ne);if(ce)return ce.slice(0,ae).every(function(he){return he})});if(se)return N=se,"break"},te=L;te>0;te--){var ee=U(te);if(ee==="break")break}t.placement!==N&&(t.modifiersData[n]._skip=!0,t.placement=N,t.reset=!0)}}const mC={name:"flip",enabled:!0,phase:"main",fn:vC,requiresIfExists:["offset"],data:{_skip:!1}};function vv(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function mv(e){return[rr,Pr,Cr,nr].some(function(t){return e[t]>=0})}function bC(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,l=Na(t,{elementContext:"reference"}),c=Na(t,{altBoundary:!0}),u=vv(l,n),d=vv(c,o,a),p=mv(u),h=mv(d);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const yC={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:bC};function wC(e,t,r){var n=an(e),o=[nr,rr].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,l=a[0],c=a[1];return l=l||0,c=(c||0)*o,[nr,Pr].indexOf(n)>=0?{x:c,y:l}:{x:l,y:c}}function xC(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,l=W0.reduce(function(p,h){return p[h]=wC(h,t.rects,a),p},{}),c=l[t.placement],u=c.x,d=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=d),t.modifiersData[n]=l}const SC={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:xC};function _C(e){var t=e.state,r=e.name;t.modifiersData[r]=K0({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const EC={name:"popperOffsets",enabled:!0,phase:"read",fn:_C,data:{}};function kC(e){return e==="x"?"y":"x"}function OC(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=o===void 0?!0:o,l=r.altAxis,c=l===void 0?!1:l,u=r.boundary,d=r.rootBoundary,p=r.altBoundary,h=r.padding,g=r.tether,y=g===void 0?!0:g,S=r.tetherOffset,v=S===void 0?0:S,b=Na(t,{boundary:u,rootBoundary:d,padding:h,altBoundary:p}),m=an(t.placement),w=bo(t.placement),x=!w,k=Cd(m),E=kC(k),R=t.modifiersData.popperOffsets,F=t.rects.reference,A=t.rects.popper,N=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,V=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(R){if(a){var B,j=k==="y"?rr:nr,I=k==="y"?Cr:Pr,Y=k==="y"?"height":"width",X=R[k],K=X+b[j],me=X-b[I],L=y?-A[Y]/2:0,U=w===go?F[Y]:A[Y],te=w===go?-A[Y]:-F[Y],ee=t.elements.arrow,J=y&&ee?Rd(ee):{width:0,height:0},ae=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:U0(),se=ae[j],ne=ae[I],ce=Oa(0,F[Y],J[Y]),he=x?F[Y]/2-L-ce-se-V.mainAxis:U-ce-se-V.mainAxis,pe=x?-F[Y]/2+L+ce+ne+V.mainAxis:te+ce+ne+V.mainAxis,Se=t.elements.arrow&&Ga(t.elements.arrow),Z=Se?k==="y"?Se.clientTop||0:Se.clientLeft||0:0,Pe=(B=$==null?void 0:$[k])!=null?B:0,ge=X+he-Pe-Z,Et=X+pe-Pe,vr=Oa(y?Bl(K,ge):K,X,y?Ri(me,Et):me);R[k]=vr,M[k]=vr-X}if(c){var Ct,zi=k==="x"?rr:nr,ji=k==="x"?Cr:Pr,zt=R[E],kt=E==="y"?"height":"width",qr=zt+b[zi],Nr=zt-b[ji],ai=[rr,nr].indexOf(m)!==-1,Mr=(Ct=$==null?void 0:$[E])!=null?Ct:0,Fi=ai?qr:zt-F[kt]-A[kt]-Mr+V.altAxis,Dr=ai?zt+F[kt]+A[kt]-Mr-V.altAxis:Nr,Re=y&&ai?ZR(Fi,zt,Dr):Oa(y?Fi:qr,zt,y?Dr:Nr);R[E]=Re,M[E]=Re-zt}t.modifiersData[n]=M}}const AC={name:"preventOverflow",enabled:!0,phase:"main",fn:OC,requiresIfExists:["offset"]};function TC(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function RC(e){return e===pr(e)||!Rr(e)?Pd(e):TC(e)}function CC(e){var t=e.getBoundingClientRect(),r=vo(t.width)/e.offsetWidth||1,n=vo(t.height)/e.offsetHeight||1;return r!==1||n!==1}function PC(e,t,r){r===void 0&&(r=!1);var n=Rr(t),o=Rr(t)&&CC(t),a=ri(t),l=mo(e,o,r),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((ln(t)!=="body"||Nd(a))&&(c=RC(t)),Rr(t)?(u=mo(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=Id(a))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function IC(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function o(a){r.add(a.name);var l=[].concat(a.requires||[],a.requiresIfExists||[]);l.forEach(function(c){if(!r.has(c)){var u=t.get(c);u&&o(u)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||o(a)}),n}function NC(e){var t=IC(e);return VR.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function MC(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function DC(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var bv={placement:"bottom",modifiers:[],strategy:"absolute"};function yv(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function $C(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,a=o===void 0?bv:o;return function(c,u,d){d===void 0&&(d=a);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},bv,a),modifiersData:{},elements:{reference:c,popper:u},attributes:{},styles:{}},h=[],g=!1,y={state:p,setOptions:function(m){var w=typeof m=="function"?m(p.options):m;v(),p.options=Object.assign({},a,p.options,w),p.scrollParents={reference:Pi(c)?Aa(c):c.contextElement?Aa(c.contextElement):[],popper:Aa(u)};var x=NC(DC([].concat(n,p.options.modifiers)));return p.orderedModifiers=x.filter(function(k){return k.enabled}),S(),y.update()},forceUpdate:function(){if(!g){var m=p.elements,w=m.reference,x=m.popper;if(yv(w,x)){p.rects={reference:PC(w,Ga(x),p.options.strategy==="fixed"),popper:Rd(x)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(V){return p.modifiersData[V.name]=Object.assign({},V.data)});for(var k=0;k<p.orderedModifiers.length;k++){if(p.reset===!0){p.reset=!1,k=-1;continue}var E=p.orderedModifiers[k],R=E.fn,F=E.options,A=F===void 0?{}:F,N=E.name;typeof R=="function"&&(p=R({state:p,options:A,name:N,instance:y})||p)}}}},update:MC(function(){return new Promise(function(b){y.forceUpdate(),b(p)})}),destroy:function(){v(),g=!0}};if(!yv(c,u))return y;y.setOptions(d).then(function(b){!g&&d.onFirstUpdate&&d.onFirstUpdate(b)});function S(){p.orderedModifiers.forEach(function(b){var m=b.name,w=b.options,x=w===void 0?{}:w,k=b.effect;if(typeof k=="function"){var E=k({state:p,name:m,instance:y,options:x}),R=function(){};h.push(E||R)}})}function v(){h.forEach(function(b){return b()}),h=[]}return y}}var LC=[aC,EC,iC,GR,SC,mC,AC,eC,yC],zC=$C({defaultModifiers:LC}),Us=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Z0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qu,wv;function jC(){if(wv)return qu;wv=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",n=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function o(a,l){if(a===l)return!0;if(a&&l&&typeof a=="object"&&typeof l=="object"){if(a.constructor!==l.constructor)return!1;var c,u,d;if(Array.isArray(a)){if(c=a.length,c!=l.length)return!1;for(u=c;u--!==0;)if(!o(a[u],l[u]))return!1;return!0}var p;if(t&&a instanceof Map&&l instanceof Map){if(a.size!==l.size)return!1;for(p=a.entries();!(u=p.next()).done;)if(!l.has(u.value[0]))return!1;for(p=a.entries();!(u=p.next()).done;)if(!o(u.value[1],l.get(u.value[0])))return!1;return!0}if(r&&a instanceof Set&&l instanceof Set){if(a.size!==l.size)return!1;for(p=a.entries();!(u=p.next()).done;)if(!l.has(u.value[0]))return!1;return!0}if(n&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(l)){if(c=a.length,c!=l.length)return!1;for(u=c;u--!==0;)if(a[u]!==l[u])return!1;return!0}if(a.constructor===RegExp)return a.source===l.source&&a.flags===l.flags;if(a.valueOf!==Object.prototype.valueOf&&typeof a.valueOf=="function"&&typeof l.valueOf=="function")return a.valueOf()===l.valueOf();if(a.toString!==Object.prototype.toString&&typeof a.toString=="function"&&typeof l.toString=="function")return a.toString()===l.toString();if(d=Object.keys(a),c=d.length,c!==Object.keys(l).length)return!1;for(u=c;u--!==0;)if(!Object.prototype.hasOwnProperty.call(l,d[u]))return!1;if(e&&a instanceof Element)return!1;for(u=c;u--!==0;)if(!((d[u]==="_owner"||d[u]==="__v"||d[u]==="__o")&&a.$$typeof)&&!o(a[d[u]],l[d[u]]))return!1;return!0}return a!==a&&l!==l}return qu=function(l,c){try{return o(l,c)}catch(u){if((u.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw u}},qu}var FC=jC();const HC=Z0(FC);var WC=[],Md=function(t,r,n){n===void 0&&(n={});var o=z.useRef(null),a={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||WC},l=z.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=l[0],u=l[1],d=z.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(y){var S=y.state,v=Object.keys(S.elements);IR.flushSync(function(){u({styles:cv(v.map(function(b){return[b,S.styles[b]||{}]})),attributes:cv(v.map(function(b){return[b,S.attributes[b]]}))})})},requires:["computeStyles"]}},[]),p=z.useMemo(function(){var g={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[d,{name:"applyStyles",enabled:!1}])};return HC(o.current,g)?o.current||g:(o.current=g,g)},[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,d]),h=z.useRef();return uv(function(){h.current&&h.current.setOptions(p)},[p]),uv(function(){if(!(t==null||r==null)){var g=n.createPopper||zC,y=g(t,r,p);return h.current=y,function(){y.destroy(),h.current=null}}},[t,r,n.createPopper]),{state:h.current?h.current.state:null,styles:c.styles,attributes:c.attributes,update:h.current?h.current.update:null,forceUpdate:h.current?h.current.forceUpdate:null}};const X0=e=>C.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),J0=H.forwardRef(({children:e,style:t,attributes:r},n)=>C.jsx("div",{style:{...t,zIndex:2e3},...r,ref:n,className:"w-60 rounded border rounded border border-grey-50 bg-grey-900 shadow-2xl","data-cy":"dialogBody",children:e})),BC=({referenceElement:e,placement:t,isOpen:r,children:n,onClose:o})=>{const[a,l]=H.useState(null),{styles:c,attributes:u}=Md(e,a,{placement:t||"bottom-start"}),d=H.useCallback(()=>{o&&o()},[o]);return r?C.jsxs(F0,{children:[C.jsx(X0,{onClick:()=>d()}),C.jsx(J0,{ref:l,style:c.popper,attributes:u.popper,children:n})]}):null};var Gu={exports:{}};/*!
2
2
  Copyright (c) 2018 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
5
- */var Ch;function pv(){return Ch||(Ch=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",u=0;u<arguments.length;u++){var c=arguments[u];c&&(a=s(a,i(c)))}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 c in a)t.call(a,c)&&a[c]&&(u=s(u,c));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})()})(Tl)),Tl.exports}var ZT=pv();const je=cv(ZT);function jn(){return jn=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},jn.apply(this,arguments)}const GT=["children","options"],kh=["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"}),$h={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},KT=["style","script","pre"],VT=["src","href","data","formAction","srcDoc","action"],YT=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,XT=/\n{2,}$/,Ih=/^(\s*>[\s\S]*?)(?=\n\n|$)/,JT=/^ *> ?/gm,QT=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,eA=/^ {2,}\n/,tA=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,Lh=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,Mh=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,rA=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,nA=/^(?:\n *)*\n/,iA=/\r\n?/g,oA=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,sA=/^\[\^([^\]]+)]/,aA=/\f/g,uA=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,lA=/^\s*?\[(x|\s)\]/,Dh=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Fh=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Nh=/^([^\n]+)\n *(=|-)\2{2,} *\n/,Al=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,cA=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,jh=/^<!--[\s\S]*?(?:-->)/,fA=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Rl=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,dA=/^\{.*\}$/,pA=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,hA=/^<([^ >]+[:@\/][^ >]+)>/,gA=/-([a-z])?/gi,zh=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,mA=/^[^\n]+(?: \n|\n{2,})/,vA=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,yA=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,wA=/^\[([^\]]*)\] ?\[([^\]]*)\]/,bA=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,xA=/\t/g,SA=/(^ *\||\| *$)/g,EA=/^ *:-+: *$/,_A=/^ *:-+ *$/,OA=/^ *-+: *$/,Fa=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,Na="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",TA=RegExp(`^([*_])\\1${Fa(1)}${Na}\\1\\1(?!\\1)`),AA=RegExp(`^([*_])${Fa(0)}${Na}\\1(?!\\1)`),RA=RegExp(`^(==)${Fa(0)}${Na}\\1`),PA=RegExp(`^(~~)${Fa(0)}${Na}\\1`),CA=/^(:[a-zA-Z0-9-_]+:)/,kA=/^\\([^0-9A-Za-z\s])/,$A=/\\([^0-9A-Za-z\s])/g,IA=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,LA=/^\n+/,MA=/^([ \t]*)/,DA=/(?:^|\n)( *)$/,Yc="(?:\\d+\\.)",Xc="(?:[*+-])";function hv(e){return"( *)("+(e===1?Yc:Xc)+") +"}const gv=hv(1),mv=hv(2);function vv(e){return RegExp("^"+(e===1?gv:mv))}const FA=vv(1),NA=vv(2);function yv(e){return RegExp("^"+(e===1?gv:mv)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Yc:Xc)+" )[^\\n]*)*(\\n|$)","gm")}const jA=yv(1),zA=yv(2);function wv(e){const t=e===1?Yc:Xc;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const bv=wv(1),xv=wv(2);function Bh(e,t){const r=t===1,i=r?bv:xv,s=r?jA:zA,a=r?FA:NA;return{t:u=>a.test(u),o:Ti(function(u,c){const f=DA.exec(c.prevCapture);return f&&(c.list||!c.inline&&!c.simple)?i.exec(u=f[1]+u):null}),i:1,u(u,c,f){const g=r?+u[2]:void 0,h=u[0].replace(XT,`
6
- `).match(s);let v=!1;return{items:h.map(function(p,y){const x=a.exec(p)[0].length,d=RegExp("^ {1,"+x+"}","gm"),b=p.replace(d,"").replace(a,""),m=y===h.length-1,S=b.indexOf(`
5
+ */var xv;function Q0(){return xv||(xv=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(a=o(a,n(c)))}return a}function n(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var l="";for(var c in a)t.call(a,c)&&a[c]&&(l=o(l,c));return l}function o(a,l){return l?a?a+" "+l:a+l:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Gu)),Gu.exports}var VC=Q0();const tt=Z0(VC);function ki(){return ki=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ki.apply(this,arguments)}const UC=["children","options"],Sv=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),_v={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},qC=["style","script","pre"],GC=["src","href","data","formAction","srcDoc","action"],YC=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,KC=/\n{2,}$/,Ev=/^(\s*>[\s\S]*?)(?=\n\n|$)/,ZC=/^ *> ?/gm,XC=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,JC=/^ {2,}\n/,QC=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,kv=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,Ov=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,eP=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,tP=/^(?:\n *)*\n/,rP=/\r\n?/g,nP=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,iP=/^\[\^([^\]]+)]/,oP=/\f/g,aP=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,sP=/^\s*?\[(x|\s)\]/,Av=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Tv=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Rv=/^([^\n]+)\n *(=|-)\2{2,} *\n/,Yu=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,lP=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Cv=/^<!--[\s\S]*?(?:-->)/,cP=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Ku=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,uP=/^\{.*\}$/,fP=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,dP=/^<([^ >]+[:@\/][^ >]+)>/,pP=/-([a-z])?/gi,Pv=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,hP=/^[^\n]+(?: \n|\n{2,})/,gP=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,vP=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,mP=/^\[([^\]]*)\] ?\[([^\]]*)\]/,bP=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,yP=/\t/g,wP=/(^ *\||\| *$)/g,xP=/^ *:-+: *$/,SP=/^ *:-+ *$/,_P=/^ *-+: *$/,fc=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,dc="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",EP=RegExp(`^([*_])\\1${fc(1)}${dc}\\1\\1(?!\\1)`),kP=RegExp(`^([*_])${fc(0)}${dc}\\1(?!\\1)`),OP=RegExp(`^(==)${fc(0)}${dc}\\1`),AP=RegExp(`^(~~)${fc(0)}${dc}\\1`),TP=/^(:[a-zA-Z0-9-_]+:)/,RP=/^\\([^0-9A-Za-z\s])/,CP=/\\([^0-9A-Za-z\s])/g,PP=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,IP=/^\n+/,NP=/^([ \t]*)/,MP=/(?:^|\n)( *)$/,Dd="(?:\\d+\\.)",$d="(?:[*+-])";function ey(e){return"( *)("+(e===1?Dd:$d)+") +"}const ty=ey(1),ry=ey(2);function ny(e){return RegExp("^"+(e===1?ty:ry))}const DP=ny(1),$P=ny(2);function iy(e){return RegExp("^"+(e===1?ty:ry)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Dd:$d)+" )[^\\n]*)*(\\n|$)","gm")}const LP=iy(1),zP=iy(2);function oy(e){const t=e===1?Dd:$d;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const ay=oy(1),sy=oy(2);function Iv(e,t){const r=t===1,n=r?ay:sy,o=r?LP:zP,a=r?DP:$P;return{t:l=>a.test(l),o:yo(function(l,c){const u=MP.exec(c.prevCapture);return u&&(c.list||!c.inline&&!c.simple)?n.exec(l=u[1]+l):null}),i:1,u(l,c,u){const d=r?+l[2]:void 0,p=l[0].replace(KC,`
6
+ `).match(o);let h=!1;return{items:p.map(function(g,y){const S=a.exec(g)[0].length,v=RegExp("^ {1,"+S+"}","gm"),b=g.replace(v,"").replace(a,""),m=y===p.length-1,w=b.indexOf(`
7
7
 
8
- `)!==-1||m&&v;v=S;const E=f.inline,R=f.list;let O;f.list=!0,S?(f.inline=!1,O=Ro(b)+`
8
+ `)!==-1||m&&h;h=w;const x=u.inline,k=u.list;let E;u.list=!0,w?(u.inline=!1,E=Ta(b)+`
9
9
 
10
- `):(f.inline=!0,O=Ro(b));const k=c(O,f);return f.inline=E,f.list=R,k}),ordered:r,start:g}},l:(u,c,f)=>e(u.ordered?"ol":"ul",{key:f.key,start:u.type==="20"?u.start:void 0},u.items.map(function(g,h){return e("li",{key:h},c(g,f))}))}}const BA=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),WA=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function Wh(e){return typeof e=="string"}function Ro(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function ca(e,t){return e.startsWith(t)}function HA(e,t,r){if(Array.isArray(r)){for(let i=0;i<r.length;i++)if(ca(e,r[i]))return!0;return!1}return r(e,t)}function Vi(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 UA(e){return OA.test(e)?"right":EA.test(e)?"center":_A.test(e)?"left":null}function Hh(e,t,r,i){const s=r.inTable;r.inTable=!0;let a=[[]],u="";function c(){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,g,h)=>{f.trim()==="|"&&(c(),i)?g!==0&&g!==h.length-1&&a.push([]):u+=f}),c(),r.inTable=s,a}function qA(e,t,r){r.inline=!0;const i=e[2]?e[2].replace(SA,"").split("|").map(UA):[],s=e[3]?(function(u,c,f){return u.trim().split(`
11
- `).map(function(g){return Hh(g,c,f,!0)})})(e[3],t,r):[],a=Hh(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 Uh(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function Ti(e){return e.inline=1,e}function Ln(e){return Ti(function(t,r){return r.inline?e.exec(t):null})}function fn(e){return Ti(function(t,r){return r.inline||r.simple?e.exec(t):null})}function qr(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function Hs(e){return Ti(function(t){return e.exec(t)})}const ZA=/(javascript|vbscript|data(?!:image)):/i;function GA(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(ZA.test(t))return null}catch{return null}return e}function Er(e){return e&&e.replace($A,"$1")}function fa(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 KA(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 VA(e,t,r){const i=r.inline||!1;r.inline=!1;const s=e(t,r);return r.inline=i,s}const Pl=(e,t,r)=>({children:fa(t,e[2],r)});function Cl(){return{}}function kl(){return null}function YA(...e){return e.filter(Boolean).join(" ")}function $l(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 XA(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?jn({},$h,t.namedCodesToUnicode):$h;const r=t.slugify||Vi,i=t.sanitizer||GA,s=t.createElement||$.createElement,a=[Ih,Lh,Mh,t.enforceAtxHeadings?Fh:Dh,Nh,zh,bv,xv],u=[...a,mA,Al,jh,Rl];function c(m,S){for(let E=0;E<m.length;E++)if(m[E].test(S))return!0;return!1}function f(m,S,...E){const R=$l(t.overrides,m+".props",{});return s((function(O,k){const W=$l(k,O);return W?typeof W=="function"||typeof W=="object"&&"render"in W?W:$l(k,O+".component",O):O})(m,t.overrides),jn({},S,R,{className:YA(S==null?void 0:S.className,R.className)||void 0}),...E)}function g(m){m=m.replace(uA,"");let S=!1;t.forceInline?S=!0:t.forceBlock||(S=bA.test(m)===!1);const E=d(x(S?m:Ro(m).replace(LA,"")+`
10
+ `):(u.inline=!0,E=Ta(b));const R=c(E,u);return u.inline=x,u.list=k,R}),ordered:r,start:d}},l:(l,c,u)=>e(l.ordered?"ol":"ul",{key:u.key,start:l.type==="20"?l.start:void 0},l.items.map(function(d,p){return e("li",{key:p},c(d,u))}))}}const jP=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),FP=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function Nv(e){return typeof e=="string"}function Ta(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function Ol(e,t){return e.startsWith(t)}function HP(e,t,r){if(Array.isArray(r)){for(let n=0;n<r.length;n++)if(Ol(e,r[n]))return!0;return!1}return r(e,t)}function Uo(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function WP(e){return _P.test(e)?"right":xP.test(e)?"center":SP.test(e)?"left":null}function Mv(e,t,r,n){const o=r.inTable;r.inTable=!0;let a=[[]],l="";function c(){if(!l)return;const u=a[a.length-1];u.push.apply(u,t(l,r)),l=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((u,d,p)=>{u.trim()==="|"&&(c(),n)?d!==0&&d!==p.length-1&&a.push([]):l+=u}),c(),r.inTable=o,a}function BP(e,t,r){r.inline=!0;const n=e[2]?e[2].replace(wP,"").split("|").map(WP):[],o=e[3]?(function(l,c,u){return l.trim().split(`
11
+ `).map(function(d){return Mv(d,c,u,!0)})})(e[3],t,r):[],a=Mv(e[1],t,r,!!o.length);return r.inline=!1,o.length?{align:n,cells:o,header:a,type:"25"}:{children:a,type:"21"}}function Dv(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function yo(e){return e.inline=1,e}function yi(e){return yo(function(t,r){return r.inline?e.exec(t):null})}function Wn(e){return yo(function(t,r){return r.inline||r.simple?e.exec(t):null})}function xn(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function qs(e){return yo(function(t){return e.exec(t)})}const VP=/(javascript|vbscript|data(?!:image)):/i;function UP(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(VP.test(t))return null}catch{return null}return e}function Zr(e){return e&&e.replace(CP,"$1")}function Al(e,t,r){const n=r.inline||!1,o=r.simple||!1;r.inline=!0,r.simple=!0;const a=e(t,r);return r.inline=n,r.simple=o,a}function qP(e,t,r){const n=r.inline||!1,o=r.simple||!1;r.inline=!1,r.simple=!0;const a=e(t,r);return r.inline=n,r.simple=o,a}function GP(e,t,r){const n=r.inline||!1;r.inline=!1;const o=e(t,r);return r.inline=n,o}const Zu=(e,t,r)=>({children:Al(t,e[2],r)});function Xu(){return{}}function Ju(){return null}function YP(...e){return e.filter(Boolean).join(" ")}function Qu(e,t,r){let n=e;const o=t.split(".");for(;o.length&&(n=n[o[0]],n!==void 0);)o.shift();return n||r}function KP(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?ki({},_v,t.namedCodesToUnicode):_v;const r=t.slugify||Uo,n=t.sanitizer||UP,o=t.createElement||z.createElement,a=[Ev,kv,Ov,t.enforceAtxHeadings?Tv:Av,Rv,Pv,ay,sy],l=[...a,hP,Yu,Cv,Ku];function c(m,w){for(let x=0;x<m.length;x++)if(m[x].test(w))return!0;return!1}function u(m,w,...x){const k=Qu(t.overrides,m+".props",{});return o((function(E,R){const F=Qu(R,E);return F?typeof F=="function"||typeof F=="object"&&"render"in F?F:Qu(R,E+".component",E):E})(m,t.overrides),ki({},w,k,{className:YP(w==null?void 0:w.className,k.className)||void 0}),...x)}function d(m){m=m.replace(aP,"");let w=!1;t.forceInline?w=!0:t.forceBlock||(w=bP.test(m)===!1);const x=v(S(w?m:Ta(m).replace(IP,"")+`
12
12
 
13
- `,{inline:S}));for(;Wh(E[E.length-1])&&!E[E.length-1].trim();)E.pop();if(t.wrapper===null)return E;const R=t.wrapper||(S?"span":"div");let O;if(E.length>1||t.forceWrapper)O=E;else{if(E.length===1)return O=E[0],typeof O=="string"?f("span",{key:"outer"},O):O;O=null}return s(R,{key:"outer"},O)}function h(m,S){if(!S||!S.trim())return null;const E=S.match(YT);return E?E.reduce(function(R,O){const k=O.indexOf("=");if(k!==-1){const W=(function(j){return j.indexOf("-")!==-1&&j.match(fA)===null&&(j=j.replace(gA,function(L,H){return H.toUpperCase()})),j})(O.slice(0,k)).trim(),M=(function(j){const L=j[0];return(L==='"'||L==="'")&&j.length>=2&&j[j.length-1]===L?j.slice(1,-1):j})(O.slice(k+1).trim()),F=kh[W]||W;if(F==="ref")return R;const G=R[F]=(function(j,L,H,q){return L==="style"?(function(C){const J=[];let Y="",te=!1,de=!1,Z="";if(!C)return J;for(let se=0;se<C.length;se++){const ue=C[se];if(ue!=='"'&&ue!=="'"||te||(de?ue===Z&&(de=!1,Z=""):(de=!0,Z=ue)),ue==="("&&Y.endsWith("url")?te=!0:ue===")"&&te&&(te=!1),ue!==";"||de||te)Y+=ue;else{const ne=Y.trim();if(ne){const ce=ne.indexOf(":");if(ce>0){const fe=ne.slice(0,ce).trim(),ye=ne.slice(ce+1).trim();J.push([fe,ye])}}Y=""}}const Q=Y.trim();if(Q){const se=Q.indexOf(":");if(se>0){const ue=Q.slice(0,se).trim(),ne=Q.slice(se+1).trim();J.push([ue,ne])}}return J})(H).reduce(function(C,[J,Y]){return C[J.replace(/(-[a-z])/g,te=>te[1].toUpperCase())]=q(Y,j,J),C},{}):VT.indexOf(L)!==-1?q(Er(H),j,L):(H.match(dA)&&(H=Er(H.slice(1,H.length-1))),H==="true"||H!=="false"&&H)})(m,W,M,i);typeof G=="string"&&(Al.test(G)||Rl.test(G))&&(R[F]=g(G.trim()))}else O!=="style"&&(R[kh[O]||O]=!0);return R},{}):null}const v=[],p={},y={0:{t:[">"],o:qr(Ih),i:1,u(m,S,E){const[,R,O]=m[0].replace(JT,"").match(QT);return{alert:R,children:S(O,E)}},l(m,S,E){const R={key:E.key};return m.alert&&(R.className="markdown-alert-"+r(m.alert.toLowerCase(),Vi),m.children.unshift({attrs:{},children:[{type:"27",text:m.alert}],noInnerParse:!0,type:"11",tag:"header"})),f("blockquote",R,S(m.children,E))}},1:{t:[" "],o:Hs(eA),i:1,u:Cl,l:(m,S,E)=>f("br",{key:E.key})},2:{t:["--","__","**","- ","* ","_ "],o:qr(tA),i:1,u:Cl,l:(m,S,E)=>f("hr",{key:E.key})},3:{t:[" "],o:qr(Mh),i:0,u:m=>({lang:void 0,text:Er(Ro(m[0].replace(/^ {4}/gm,"")))}),l:(m,S,E)=>f("pre",{key:E.key},f("code",jn({},m.attrs,{className:m.lang?"lang-"+m.lang:""}),m.text))},4:{t:["```","~~~"],o:qr(Lh),i:0,u:m=>({attrs:h("code",m[3]||""),lang:m[2]||void 0,text:m[4],type:"3"})},5:{t:["`"],o:fn(rA),i:3,u:m=>({text:Er(m[2])}),l:(m,S,E)=>f("code",{key:E.key},m.text)},6:{t:["[^"],o:qr(oA),i:0,u:m=>(v.push({footnote:m[2],identifier:m[1]}),{}),l:kl},7:{t:["[^"],o:Ln(sA),i:1,u:m=>({target:"#"+r(m[1],Vi),text:m[1]}),l:(m,S,E)=>f("a",{key:E.key,href:i(m.target,"a","href")},f("sup",{key:E.key},m.text))},8:{t:["[ ]","[x]"],o:Ln(lA),i:1,u:m=>({completed:m[1].toLowerCase()==="x"}),l:(m,S,E)=>f("input",{checked:m.completed,key:E.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:qr(t.enforceAtxHeadings?Fh:Dh),i:1,u:(m,S,E)=>({children:fa(S,m[2],E),id:r(m[2],Vi),level:m[1].length}),l:(m,S,E)=>f("h"+m.level,{id:m.id,key:E.key},S(m.children,E))},10:{t:m=>{const S=m.indexOf(`
14
- `);return S>0&&S<m.length-1&&(m[S+1]==="="||m[S+1]==="-")},o:qr(Nh),i:0,u:(m,S,E)=>({children:fa(S,m[1],E),level:m[2]==="="?1:2,type:"9"})},11:{t:["<"],o:Hs(Al),i:1,u(m,S,E){const[,R]=m[3].match(MA),O=RegExp("^"+R,"gm"),k=m[3].replace(O,""),W=c(u,k)?VA:fa,M=m[1].toLowerCase(),F=KT.indexOf(M)!==-1,G=(F?M:m[1]).trim(),j={attrs:h(G,m[2]),noInnerParse:F,tag:G};if(E.inAnchor=E.inAnchor||M==="a",F)j.text=m[3];else{const L=E.inHTML;E.inHTML=!0,j.children=W(S,k,E),E.inHTML=L}return E.inAnchor=!1,j},l:(m,S,E)=>f(m.tag,jn({key:E.key},m.attrs),m.text||(m.children?S(m.children,E):""))},13:{t:["<"],o:Hs(Rl),i:1,u(m){const S=m[1].trim();return{attrs:h(S,m[2]||""),tag:S}},l:(m,S,E)=>f(m.tag,jn({},m.attrs,{key:E.key}))},12:{t:["<!--"],o:Hs(jh),i:1,u:()=>({}),l:kl},14:{t:["!["],o:fn(WA),i:1,u:m=>({alt:Er(m[1]),target:Er(m[2]),title:Er(m[3])}),l:(m,S,E)=>f("img",{key:E.key,alt:m.alt||void 0,title:m.title||void 0,src:i(m.target,"img","src")})},15:{t:["["],o:Ln(BA),i:3,u:(m,S,E)=>({children:KA(S,m[1],E),target:Er(m[2]),title:Er(m[3])}),l:(m,S,E)=>f("a",{key:E.key,href:i(m.target,"a","href"),title:m.title},S(m.children,E))},16:{t:["<"],o:Ln(hA),i:0,u(m){let S=m[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:(m,S)=>!S.inAnchor&&!t.disableAutoLink&&(ca(m,"http://")||ca(m,"https://")),o:Ln(pA),i:0,u:m=>({children:[{text:m[1],type:"27"}],target:m[1],title:void 0,type:"15"})},20:Bh(f,1),33:Bh(f,2),19:{t:[`
15
- `],o:qr(nA),i:3,u:Cl,l:()=>`
16
- `},21:{o:Ti(function(m,S){if(S.inline||S.simple||S.inHTML&&m.indexOf(`
13
+ `,{inline:w}));for(;Nv(x[x.length-1])&&!x[x.length-1].trim();)x.pop();if(t.wrapper===null)return x;const k=t.wrapper||(w?"span":"div");let E;if(x.length>1||t.forceWrapper)E=x;else{if(x.length===1)return E=x[0],typeof E=="string"?u("span",{key:"outer"},E):E;E=null}return o(k,{key:"outer"},E)}function p(m,w){if(!w||!w.trim())return null;const x=w.match(YC);return x?x.reduce(function(k,E){const R=E.indexOf("=");if(R!==-1){const F=(function($){return $.indexOf("-")!==-1&&$.match(cP)===null&&($=$.replace(pP,function(M,B){return B.toUpperCase()})),$})(E.slice(0,R)).trim(),A=(function($){const M=$[0];return(M==='"'||M==="'")&&$.length>=2&&$[$.length-1]===M?$.slice(1,-1):$})(E.slice(R+1).trim()),N=Sv[F]||F;if(N==="ref")return k;const V=k[N]=(function($,M,B,j){return M==="style"?(function(I){const Y=[];let X="",K=!1,me=!1,L="";if(!I)return Y;for(let te=0;te<I.length;te++){const ee=I[te];if(ee!=='"'&&ee!=="'"||K||(me?ee===L&&(me=!1,L=""):(me=!0,L=ee)),ee==="("&&X.endsWith("url")?K=!0:ee===")"&&K&&(K=!1),ee!==";"||me||K)X+=ee;else{const J=X.trim();if(J){const ae=J.indexOf(":");if(ae>0){const se=J.slice(0,ae).trim(),ne=J.slice(ae+1).trim();Y.push([se,ne])}}X=""}}const U=X.trim();if(U){const te=U.indexOf(":");if(te>0){const ee=U.slice(0,te).trim(),J=U.slice(te+1).trim();Y.push([ee,J])}}return Y})(B).reduce(function(I,[Y,X]){return I[Y.replace(/(-[a-z])/g,K=>K[1].toUpperCase())]=j(X,$,Y),I},{}):GC.indexOf(M)!==-1?j(Zr(B),$,M):(B.match(uP)&&(B=Zr(B.slice(1,B.length-1))),B==="true"||B!=="false"&&B)})(m,F,A,n);typeof V=="string"&&(Yu.test(V)||Ku.test(V))&&(k[N]=d(V.trim()))}else E!=="style"&&(k[Sv[E]||E]=!0);return k},{}):null}const h=[],g={},y={0:{t:[">"],o:xn(Ev),i:1,u(m,w,x){const[,k,E]=m[0].replace(ZC,"").match(XC);return{alert:k,children:w(E,x)}},l(m,w,x){const k={key:x.key};return m.alert&&(k.className="markdown-alert-"+r(m.alert.toLowerCase(),Uo),m.children.unshift({attrs:{},children:[{type:"27",text:m.alert}],noInnerParse:!0,type:"11",tag:"header"})),u("blockquote",k,w(m.children,x))}},1:{t:[" "],o:qs(JC),i:1,u:Xu,l:(m,w,x)=>u("br",{key:x.key})},2:{t:["--","__","**","- ","* ","_ "],o:xn(QC),i:1,u:Xu,l:(m,w,x)=>u("hr",{key:x.key})},3:{t:[" "],o:xn(Ov),i:0,u:m=>({lang:void 0,text:Zr(Ta(m[0].replace(/^ {4}/gm,"")))}),l:(m,w,x)=>u("pre",{key:x.key},u("code",ki({},m.attrs,{className:m.lang?"lang-"+m.lang:""}),m.text))},4:{t:["```","~~~"],o:xn(kv),i:0,u:m=>({attrs:p("code",m[3]||""),lang:m[2]||void 0,text:m[4],type:"3"})},5:{t:["`"],o:Wn(eP),i:3,u:m=>({text:Zr(m[2])}),l:(m,w,x)=>u("code",{key:x.key},m.text)},6:{t:["[^"],o:xn(nP),i:0,u:m=>(h.push({footnote:m[2],identifier:m[1]}),{}),l:Ju},7:{t:["[^"],o:yi(iP),i:1,u:m=>({target:"#"+r(m[1],Uo),text:m[1]}),l:(m,w,x)=>u("a",{key:x.key,href:n(m.target,"a","href")},u("sup",{key:x.key},m.text))},8:{t:["[ ]","[x]"],o:yi(sP),i:1,u:m=>({completed:m[1].toLowerCase()==="x"}),l:(m,w,x)=>u("input",{checked:m.completed,key:x.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:xn(t.enforceAtxHeadings?Tv:Av),i:1,u:(m,w,x)=>({children:Al(w,m[2],x),id:r(m[2],Uo),level:m[1].length}),l:(m,w,x)=>u("h"+m.level,{id:m.id,key:x.key},w(m.children,x))},10:{t:m=>{const w=m.indexOf(`
14
+ `);return w>0&&w<m.length-1&&(m[w+1]==="="||m[w+1]==="-")},o:xn(Rv),i:0,u:(m,w,x)=>({children:Al(w,m[1],x),level:m[2]==="="?1:2,type:"9"})},11:{t:["<"],o:qs(Yu),i:1,u(m,w,x){const[,k]=m[3].match(NP),E=RegExp("^"+k,"gm"),R=m[3].replace(E,""),F=c(l,R)?GP:Al,A=m[1].toLowerCase(),N=qC.indexOf(A)!==-1,V=(N?A:m[1]).trim(),$={attrs:p(V,m[2]),noInnerParse:N,tag:V};if(x.inAnchor=x.inAnchor||A==="a",N)$.text=m[3];else{const M=x.inHTML;x.inHTML=!0,$.children=F(w,R,x),x.inHTML=M}return x.inAnchor=!1,$},l:(m,w,x)=>u(m.tag,ki({key:x.key},m.attrs),m.text||(m.children?w(m.children,x):""))},13:{t:["<"],o:qs(Ku),i:1,u(m){const w=m[1].trim();return{attrs:p(w,m[2]||""),tag:w}},l:(m,w,x)=>u(m.tag,ki({},m.attrs,{key:x.key}))},12:{t:["<!--"],o:qs(Cv),i:1,u:()=>({}),l:Ju},14:{t:["!["],o:Wn(FP),i:1,u:m=>({alt:Zr(m[1]),target:Zr(m[2]),title:Zr(m[3])}),l:(m,w,x)=>u("img",{key:x.key,alt:m.alt||void 0,title:m.title||void 0,src:n(m.target,"img","src")})},15:{t:["["],o:yi(jP),i:3,u:(m,w,x)=>({children:qP(w,m[1],x),target:Zr(m[2]),title:Zr(m[3])}),l:(m,w,x)=>u("a",{key:x.key,href:n(m.target,"a","href"),title:m.title},w(m.children,x))},16:{t:["<"],o:yi(dP),i:0,u(m){let w=m[1],x=!1;return w.indexOf("@")!==-1&&w.indexOf("//")===-1&&(x=!0,w=w.replace("mailto:","")),{children:[{text:w,type:"27"}],target:x?"mailto:"+w:w,type:"15"}}},17:{t:(m,w)=>!w.inAnchor&&!t.disableAutoLink&&(Ol(m,"http://")||Ol(m,"https://")),o:yi(fP),i:0,u:m=>({children:[{text:m[1],type:"27"}],target:m[1],title:void 0,type:"15"})},20:Iv(u,1),33:Iv(u,2),19:{t:[`
15
+ `],o:xn(tP),i:3,u:Xu,l:()=>`
16
+ `},21:{o:yo(function(m,w){if(w.inline||w.simple||w.inHTML&&m.indexOf(`
17
17
 
18
- `)===-1&&S.prevCapture.indexOf(`
18
+ `)===-1&&w.prevCapture.indexOf(`
19
19
 
20
- `)===-1)return null;let E="",R=0;for(;;){const k=m.indexOf(`
21
- `,R),W=m.slice(R,k===-1?void 0:k+1);if(c(a,W)||(E+=W,k===-1||!W.trim()))break;R=k+1}const O=Ro(E);return O===""?null:[E,,O]}),i:3,u:Pl,l:(m,S,E)=>f("p",{key:E.key},S(m.children,E))},22:{t:["["],o:Ln(vA),i:0,u:m=>(p[m[1]]={target:m[2],title:m[4]},{}),l:kl},23:{t:["!["],o:fn(yA),i:0,u:m=>({alt:m[1]?Er(m[1]):void 0,ref:m[2]}),l:(m,S,E)=>p[m.ref]?f("img",{key:E.key,alt:m.alt,src:i(p[m.ref].target,"img","src"),title:p[m.ref].title}):null},24:{t:m=>m[0]==="["&&m.indexOf("](")===-1,o:Ln(wA),i:0,u:(m,S,E)=>({children:S(m[1],E),fallbackChildren:m[0],ref:m[2]}),l:(m,S,E)=>p[m.ref]?f("a",{key:E.key,href:i(p[m.ref].target,"a","href"),title:p[m.ref].title},S(m.children,E)):f("span",{key:E.key},m.fallbackChildren)},25:{t:["|"],o:qr(zh),i:1,u:qA,l(m,S,E){const R=m;return f("table",{key:E.key},f("thead",null,f("tr",null,R.header.map(function(O,k){return f("th",{key:k,style:Uh(R,k)},S(O,E))}))),f("tbody",null,R.cells.map(function(O,k){return f("tr",{key:k},O.map(function(W,M){return f("td",{key:M,style:Uh(R,M)},S(W,E))}))})))}},27:{o:Ti(function(m,S){let E;return ca(m,":")&&(E=CA.exec(m)),E||IA.exec(m)}),i:4,u(m){const S=m[0];return{text:S.indexOf("&")===-1?S:S.replace(cA,(E,R)=>t.namedCodesToUnicode[R]||E)}},l:m=>m.text},28:{t:["**","__"],o:fn(TA),i:2,u:(m,S,E)=>({children:S(m[2],E)}),l:(m,S,E)=>f("strong",{key:E.key},S(m.children,E))},29:{t:m=>{const S=m[0];return(S==="*"||S==="_")&&m[1]!==S},o:fn(AA),i:3,u:(m,S,E)=>({children:S(m[2],E)}),l:(m,S,E)=>f("em",{key:E.key},S(m.children,E))},30:{t:["\\"],o:fn(kA),i:1,u:m=>({text:m[1],type:"27"})},31:{t:["=="],o:fn(RA),i:3,u:Pl,l:(m,S,E)=>f("mark",{key:E.key},S(m.children,E))},32:{t:["~~"],o:fn(PA),i:3,u:Pl,l:(m,S,E)=>f("del",{key:E.key},S(m.children,E))}};t.disableParsingRawHTML===!0&&(delete y[11],delete y[13]);const x=(function(m){var S=Object.keys(m);function E(R,O){var k=[];if(O.prevCapture=O.prevCapture||"",R.trim())for(;R;)for(var W=0;W<S.length;){var M=S[W],F=m[M];if(!F.t||HA(R,O,F.t)){var G=F.o(R,O);if(G&&G[0]){R=R.substring(G[0].length);var j=F.u(G,E,O);O.prevCapture+=G[0],j.type||(j.type=M),k.push(j);break}W++}else W++}return O.prevCapture="",k}return S.sort(function(R,O){return m[R].i-m[O].i||(R<O?-1:1)}),function(R,O){return E((function(k){return k.replace(iA,`
22
- `).replace(aA,"").replace(xA," ")})(R),O)}})(y),d=(function(m,S){return function E(R,O={}){if(Array.isArray(R)){const k=O.key,W=[];let M=!1;for(let F=0;F<R.length;F++){O.key=F;const G=E(R[F],O),j=Wh(G);j&&M?W[W.length-1]+=G:G!==null&&W.push(G),M=j}return O.key=k,W}return(function(k,W,M){const F=m[k.type].l;return S?S(()=>F(k,W,M),k,W,M):F(k,W,M)})(R,E,O)}})(y,t.renderRule),b=g(e);return v.length?f("div",null,b,f("footer",{key:"footer"},v.map(function(m){return f("div",{id:r(m.identifier,Vi),key:m.identifier},m.identifier,d(x(m.footnote,{inline:!0})))}))):b}const ba=e=>{let{children:t="",options:r}=e,i=(function(s,a){if(s==null)return{};var u,c,f={},g=Object.keys(s);for(c=0;c<g.length;c++)a.indexOf(u=g[c])>=0||(f[u]=s[u]);return f})(e,GT);return $.cloneElement(XA(t,r),i)},qh=({kind:e,customIcon:t})=>{const r={"text-yellow-400":e==="warning","text-red-500":e==="danger"||e==="error","text-primary":e==="info","text-green-500":e==="message"};if(t)return D.jsx(t,{className:je("flex-none size-6",r)});switch(e){case"error":case"danger":return D.jsx(ot.FdSanityCheckInfo,{className:je("flex-none size-6",r)});case"info":return D.jsx(D.Fragment,{children:D.jsx(ot.FdInfoBold,{className:je("flex-none size-6",r)})});case"warning":return D.jsx(D.Fragment,{children:D.jsx(ot.FdWarningDanger,{className:je("flex-none size-6",r)})});case"message":return D.jsx(D.Fragment,{children:D.jsx(ot.FdInfoBold,{className:je("flex-none size-6",r)})});default:return null}},JA=({id:e,onClose:t,kind:r,message:i,markdown:s,customIcon:a})=>{const u=({className:c}={})=>D.jsx("button",{onClick:t,className:je("flex justify-center p-1",c),children:D.jsx(ot.FdCloseNaked,{className:"size-4 font-thin stroke-current"})});return D.jsx("div",{className:je("relative flex items-center rounded-lg py-2 px-4 text-sm text-slate-500 bg-white shadow-md"),children:typeof i=="string"?D.jsxs("div",{className:"w-full flex justify-between gap-x-3",children:[D.jsx("div",{className:"pt-1",children:D.jsx(qh,{kind:r,customIcon:a})}),D.jsx("div",{className:"flex items-center gap-1 prose",children:s?D.jsx(ba,{children:i}):D.jsx(D.Fragment,{children:i})}),u()]}):D.jsxs("div",{className:"flex items-start",children:[D.jsx("div",{className:"flex flex-col gap-2 justify-between",children:i.filter(c=>c.messages.length>0).map(c=>D.jsxs(D.Fragment,{children:[c.title&&D.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[D.jsx(qh,{kind:r,customIcon:a}),D.jsxs("span",{children:[c.title," :"]})]}),D.jsx("ul",{className:je("list-disc",{"px-12":c.title,"px-6":!c.title}),children:c.messages.map(f=>D.jsx("li",{children:s?D.jsx(ba,{children:f}):D.jsx(D.Fragment,{children:f})}))})]}))}),u({className:"absolute top-1 right-1"})]})},e)},Sv=({children:e,size:t,className:r,...i})=>D.jsx("div",{style:{"--width":`${t||24}px`},className:je("h-6 flex items-center pr-1 w-[--width]",r),...i,children:e});var Il={},Yi={},Us={},Zh;function Ev(){if(Zh)return Us;Zh=1,Object.defineProperty(Us,"__esModule",{value:!0}),Us.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 Us}var hi={},Xi={},Ji={},Gh;function QA(){if(Gh)return Ji;Gh=1,Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.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 Ji.default=e,Ji}var Kh;function ja(){if(Kh)return Xi;Kh=1,Object.defineProperty(Xi,"__esModule",{value:!0}),Xi.default=void 0;var e=t(QA());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 Xi.default=i,Xi}var Vh;function za(){if(Vh)return hi;Vh=1,Object.defineProperty(hi,"__esModule",{value:!0}),hi.default=void 0,hi.unsafeStringify=i;var e=t(ja());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,c=0){return r[u[c+0]]+r[u[c+1]]+r[u[c+2]]+r[u[c+3]]+"-"+r[u[c+4]]+r[u[c+5]]+"-"+r[u[c+6]]+r[u[c+7]]+"-"+r[u[c+8]]+r[u[c+9]]+"-"+r[u[c+10]]+r[u[c+11]]+r[u[c+12]]+r[u[c+13]]+r[u[c+14]]+r[u[c+15]]}function s(u,c=0){const f=i(u,c);if(!(0,e.default)(f))throw TypeError("Stringified UUID is invalid");return f}var a=s;return hi.default=a,hi}var Yh;function eR(){if(Yh)return Yi;Yh=1,Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.default=void 0;var e=r(Ev()),t=za();function r(g){return g&&g.__esModule?g:{default:g}}let i,s,a=0,u=0;function c(g,h,v){let p=h&&v||0;const y=h||new Array(16);g=g||{};let x=g.node||i,d=g.clockseq!==void 0?g.clockseq:s;if(x==null||d==null){const O=g.random||(g.rng||e.default)();x==null&&(x=i=[O[0]|1,O[1],O[2],O[3],O[4],O[5]]),d==null&&(d=s=(O[6]<<8|O[7])&16383)}let b=g.msecs!==void 0?g.msecs:Date.now(),m=g.nsecs!==void 0?g.nsecs:u+1;const S=b-a+(m-u)/1e4;if(S<0&&g.clockseq===void 0&&(d=d+1&16383),(S<0||b>a)&&g.nsecs===void 0&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=b,u=m,s=d,b+=122192928e5;const E=((b&268435455)*1e4+m)%4294967296;y[p++]=E>>>24&255,y[p++]=E>>>16&255,y[p++]=E>>>8&255,y[p++]=E&255;const R=b/4294967296*1e4&268435455;y[p++]=R>>>8&255,y[p++]=R&255,y[p++]=R>>>24&15|16,y[p++]=R>>>16&255,y[p++]=d>>>8|128,y[p++]=d&255;for(let O=0;O<6;++O)y[p+O]=x[O];return h||(0,t.unsafeStringify)(y)}var f=c;return Yi.default=f,Yi}var Qi={},dn={},eo={},Xh;function _v(){if(Xh)return eo;Xh=1,Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=void 0;var e=t(ja());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 eo.default=i,eo}var Jh;function Ov(){if(Jh)return dn;Jh=1,Object.defineProperty(dn,"__esModule",{value:!0}),dn.URL=dn.DNS=void 0,dn.default=u;var e=za(),t=r(_v());function r(c){return c&&c.__esModule?c:{default:c}}function i(c){c=unescape(encodeURIComponent(c));const f=[];for(let g=0;g<c.length;++g)f.push(c.charCodeAt(g));return f}const s="6ba7b810-9dad-11d1-80b4-00c04fd430c8";dn.DNS=s;const a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";dn.URL=a;function u(c,f,g){function h(v,p,y,x){var d;if(typeof v=="string"&&(v=i(v)),typeof p=="string"&&(p=(0,t.default)(p)),((d=p)===null||d===void 0?void 0:d.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let b=new Uint8Array(16+v.length);if(b.set(p),b.set(v,p.length),b=g(b),b[6]=b[6]&15|f,b[8]=b[8]&63|128,y){x=x||0;for(let m=0;m<16;++m)y[x+m]=b[m];return y}return(0,e.unsafeStringify)(b)}try{h.name=c}catch{}return h.DNS=s,h.URL=a,h}return dn}var to={},Qh;function tR(){if(Qh)return to;Qh=1,Object.defineProperty(to,"__esModule",{value:!0}),to.default=void 0;function e(y){if(typeof y=="string"){const x=unescape(encodeURIComponent(y));y=new Uint8Array(x.length);for(let d=0;d<x.length;++d)y[d]=x.charCodeAt(d)}return t(i(s(y),y.length*8))}function t(y){const x=[],d=y.length*32,b="0123456789abcdef";for(let m=0;m<d;m+=8){const S=y[m>>5]>>>m%32&255,E=parseInt(b.charAt(S>>>4&15)+b.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 d=1732584193,b=-271733879,m=-1732584194,S=271733878;for(let E=0;E<y.length;E+=16){const R=d,O=b,k=m,W=S;d=f(d,b,m,S,y[E],7,-680876936),S=f(S,d,b,m,y[E+1],12,-389564586),m=f(m,S,d,b,y[E+2],17,606105819),b=f(b,m,S,d,y[E+3],22,-1044525330),d=f(d,b,m,S,y[E+4],7,-176418897),S=f(S,d,b,m,y[E+5],12,1200080426),m=f(m,S,d,b,y[E+6],17,-1473231341),b=f(b,m,S,d,y[E+7],22,-45705983),d=f(d,b,m,S,y[E+8],7,1770035416),S=f(S,d,b,m,y[E+9],12,-1958414417),m=f(m,S,d,b,y[E+10],17,-42063),b=f(b,m,S,d,y[E+11],22,-1990404162),d=f(d,b,m,S,y[E+12],7,1804603682),S=f(S,d,b,m,y[E+13],12,-40341101),m=f(m,S,d,b,y[E+14],17,-1502002290),b=f(b,m,S,d,y[E+15],22,1236535329),d=g(d,b,m,S,y[E+1],5,-165796510),S=g(S,d,b,m,y[E+6],9,-1069501632),m=g(m,S,d,b,y[E+11],14,643717713),b=g(b,m,S,d,y[E],20,-373897302),d=g(d,b,m,S,y[E+5],5,-701558691),S=g(S,d,b,m,y[E+10],9,38016083),m=g(m,S,d,b,y[E+15],14,-660478335),b=g(b,m,S,d,y[E+4],20,-405537848),d=g(d,b,m,S,y[E+9],5,568446438),S=g(S,d,b,m,y[E+14],9,-1019803690),m=g(m,S,d,b,y[E+3],14,-187363961),b=g(b,m,S,d,y[E+8],20,1163531501),d=g(d,b,m,S,y[E+13],5,-1444681467),S=g(S,d,b,m,y[E+2],9,-51403784),m=g(m,S,d,b,y[E+7],14,1735328473),b=g(b,m,S,d,y[E+12],20,-1926607734),d=h(d,b,m,S,y[E+5],4,-378558),S=h(S,d,b,m,y[E+8],11,-2022574463),m=h(m,S,d,b,y[E+11],16,1839030562),b=h(b,m,S,d,y[E+14],23,-35309556),d=h(d,b,m,S,y[E+1],4,-1530992060),S=h(S,d,b,m,y[E+4],11,1272893353),m=h(m,S,d,b,y[E+7],16,-155497632),b=h(b,m,S,d,y[E+10],23,-1094730640),d=h(d,b,m,S,y[E+13],4,681279174),S=h(S,d,b,m,y[E],11,-358537222),m=h(m,S,d,b,y[E+3],16,-722521979),b=h(b,m,S,d,y[E+6],23,76029189),d=h(d,b,m,S,y[E+9],4,-640364487),S=h(S,d,b,m,y[E+12],11,-421815835),m=h(m,S,d,b,y[E+15],16,530742520),b=h(b,m,S,d,y[E+2],23,-995338651),d=v(d,b,m,S,y[E],6,-198630844),S=v(S,d,b,m,y[E+7],10,1126891415),m=v(m,S,d,b,y[E+14],15,-1416354905),b=v(b,m,S,d,y[E+5],21,-57434055),d=v(d,b,m,S,y[E+12],6,1700485571),S=v(S,d,b,m,y[E+3],10,-1894986606),m=v(m,S,d,b,y[E+10],15,-1051523),b=v(b,m,S,d,y[E+1],21,-2054922799),d=v(d,b,m,S,y[E+8],6,1873313359),S=v(S,d,b,m,y[E+15],10,-30611744),m=v(m,S,d,b,y[E+6],15,-1560198380),b=v(b,m,S,d,y[E+13],21,1309151649),d=v(d,b,m,S,y[E+4],6,-145523070),S=v(S,d,b,m,y[E+11],10,-1120210379),m=v(m,S,d,b,y[E+2],15,718787259),b=v(b,m,S,d,y[E+9],21,-343485551),d=a(d,R),b=a(b,O),m=a(m,k),S=a(S,W)}return[d,b,m,S]}function s(y){if(y.length===0)return[];const x=y.length*8,d=new Uint32Array(r(x));for(let b=0;b<x;b+=8)d[b>>5]|=(y[b/8]&255)<<b%32;return d}function a(y,x){const d=(y&65535)+(x&65535);return(y>>16)+(x>>16)+(d>>16)<<16|d&65535}function u(y,x){return y<<x|y>>>32-x}function c(y,x,d,b,m,S){return a(u(a(a(x,y),a(b,S)),m),d)}function f(y,x,d,b,m,S,E){return c(x&d|~x&b,y,x,m,S,E)}function g(y,x,d,b,m,S,E){return c(x&b|d&~b,y,x,m,S,E)}function h(y,x,d,b,m,S,E){return c(x^d^b,y,x,m,S,E)}function v(y,x,d,b,m,S,E){return c(d^(x|~b),y,x,m,S,E)}var p=e;return to.default=p,to}var eg;function rR(){if(eg)return Qi;eg=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.default=void 0;var e=r(Ov()),t=r(tR());function r(a){return a&&a.__esModule?a:{default:a}}var s=(0,e.default)("v3",48,t.default);return Qi.default=s,Qi}var ro={},no={},tg;function nR(){if(tg)return no;tg=1,Object.defineProperty(no,"__esModule",{value:!0}),no.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return no.default=t,no}var rg;function iR(){if(rg)return ro;rg=1,Object.defineProperty(ro,"__esModule",{value:!0}),ro.default=void 0;var e=i(nR()),t=i(Ev()),r=za();function i(u){return u&&u.__esModule?u:{default:u}}function s(u,c,f){if(e.default.randomUUID&&!c&&!u)return e.default.randomUUID();u=u||{};const g=u.random||(u.rng||t.default)();if(g[6]=g[6]&15|64,g[8]=g[8]&63|128,c){f=f||0;for(let h=0;h<16;++h)c[f+h]=g[h];return c}return(0,r.unsafeStringify)(g)}var a=s;return ro.default=a,ro}var io={},oo={},ng;function oR(){if(ng)return oo;ng=1,Object.defineProperty(oo,"__esModule",{value:!0}),oo.default=void 0;function e(s,a,u,c){switch(s){case 0:return a&u^~a&c;case 1:return a^u^c;case 2:return a&u^a&c^u&c;case 3:return a^u^c}}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 h=unescape(encodeURIComponent(s));s=[];for(let v=0;v<h.length;++v)s.push(h.charCodeAt(v))}else Array.isArray(s)||(s=Array.prototype.slice.call(s));s.push(128);const c=s.length/4+2,f=Math.ceil(c/16),g=new Array(f);for(let h=0;h<f;++h){const v=new Uint32Array(16);for(let p=0;p<16;++p)v[p]=s[h*64+p*4]<<24|s[h*64+p*4+1]<<16|s[h*64+p*4+2]<<8|s[h*64+p*4+3];g[h]=v}g[f-1][14]=(s.length-1)*8/Math.pow(2,32),g[f-1][14]=Math.floor(g[f-1][14]),g[f-1][15]=(s.length-1)*8&4294967295;for(let h=0;h<f;++h){const v=new Uint32Array(80);for(let m=0;m<16;++m)v[m]=g[h][m];for(let m=16;m<80;++m)v[m]=t(v[m-3]^v[m-8]^v[m-14]^v[m-16],1);let p=u[0],y=u[1],x=u[2],d=u[3],b=u[4];for(let m=0;m<80;++m){const S=Math.floor(m/20),E=t(p,5)+e(S,y,x,d)+b+a[S]+v[m]>>>0;b=d,d=x,x=t(y,30)>>>0,y=p,p=E}u[0]=u[0]+p>>>0,u[1]=u[1]+y>>>0,u[2]=u[2]+x>>>0,u[3]=u[3]+d>>>0,u[4]=u[4]+b>>>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 oo.default=i,oo}var ig;function sR(){if(ig)return io;ig=1,Object.defineProperty(io,"__esModule",{value:!0}),io.default=void 0;var e=r(Ov()),t=r(oR());function r(a){return a&&a.__esModule?a:{default:a}}var s=(0,e.default)("v5",80,t.default);return io.default=s,io}var so={},og;function aR(){if(og)return so;og=1,Object.defineProperty(so,"__esModule",{value:!0}),so.default=void 0;var e="00000000-0000-0000-0000-000000000000";return so.default=e,so}var ao={},sg;function uR(){if(sg)return ao;sg=1,Object.defineProperty(ao,"__esModule",{value:!0}),ao.default=void 0;var e=t(ja());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 ao.default=i,ao}var ag;function lR(){return ag||(ag=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 g.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 c.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return u.default}});var t=h(eR()),r=h(rR()),i=h(iR()),s=h(sR()),a=h(aR()),u=h(uR()),c=h(ja()),f=h(za()),g=h(_v());function h(v){return v&&v.__esModule?v:{default:v}}})(Il)),Il}var Ll,ug;function cR(){if(ug)return Ll;ug=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,c=this.dstAlphabet.length,f=t.length,g=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>=c?(a[s++]=parseInt(i/c,10),i=i%c):s>0&&(a[s++]=0);f=s,g=this.dstAlphabet.slice(i,i+1).concat(g)}while(s!==0);return g},e.prototype.isValid=function(t){for(var r=0;r<t.length;++r)if(this.srcAlphabet.indexOf(t[r])===-1)return!1;return!0},Ll=e,Ll}var Ml,lg;function fR(){if(lg)return Ml;lg=1;var e=cR();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",Ml=t,Ml}var Dl,cg;function dR(){if(cg)return Dl;cg=1;const{v4:e,validate:t}=lR(),r=fR(),i={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},s={consistentLength:!0};let a;const u=(g,h,v)=>{const p=h(g.toLowerCase().replace(/-/g,""));return!v||!v.consistentLength?p:p.padStart(v.shortIdLength,v.paddingChar)},c=(g,h)=>{const p=h(g).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[p[1],p[2],p[3],p[4],p[5]].join("-")},f=g=>Math.ceil(Math.log(2**128)/Math.log(g));return Dl=(()=>{const g=(h,v)=>{const p=h||i.flickrBase58,y={...s,...v};if([...new Set(Array.from(p))].length!==p.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const x=f(p.length),d={shortIdLength:x,consistentLength:y.consistentLength,paddingChar:p[0]},b=r(r.HEX,p),m=r(p,r.HEX),S=()=>u(e(),b,d),R={alphabet:p,fromUUID:O=>u(O,b,d),maxLength:x,generate:S,new:S,toUUID:O=>c(O,m),uuid:e,validate:(O,k=!1)=>{if(!O||typeof O!="string")return!1;const W=y.consistentLength?O.length===x:O.length<=x,M=O.split("").every(F=>p.includes(F));return k===!1?W&&M:W&&M&&t(c(O,m))}};return Object.freeze(R),R};return g.constants=i,g.uuid=e,g.generate=()=>(a||(a=g(i.flickrBase58).generate),a()),g})(),Dl}var Zn=dR();const Tv=({depth:e,height:t=24,width:r=11,showLines:i=!0,stroke:s="rgb(241, 245, 249)"})=>{const a=`indent_line_${Zn.generate()}`;return D.jsxs("svg",{viewBox:`0 0 ${11*e} ${t}`,width:`${11*e}`,height:t,children:[D.jsx("defs",{children:D.jsx("pattern",{id:a,x:"0",y:"0",width:r,height:t,patternUnits:"userSpaceOnUse",children:D.jsx("line",{x1:r/2,y1:"0",x2:r/2,y2:t,stroke:s})})}),i?D.jsx("rect",{fill:`url(#${a})`,x:"0",y:"0",width:`${11*e}`,height:t}):D.jsx("rect",{fill:i?`url(#${a})`:"",x:"0",y:"0",width:0,height:t})]})},Av=({show:e,expanded:t,onClick:r,variant:i="arrow"})=>e?D.jsx("div",{className:"flex h-6 w-5 items-center",onClick:s=>r&&r(s),children:(()=>{switch(i){case"arrow":return D.jsx(ot.FdDown,{className:je(["h-3 w-3 transform text-grey-50 transition ease-in-out",{"rotate-0":t,"-rotate-90":!t}])});case"caret":return t?D.jsx(ot.FdDown,{}):D.jsx(ot.FdRight,{});default:return D.jsx(ot.FdDown,{className:"h-3 w-3 transform text-grey-50 transition ease-in-out"})}})()}):D.jsx("div",{className:"flex h-6 w-3 items-center"}),Jc=({node:e,depth:t,expandedKeys:r,selectedKeys:i,actions:s,searchQuery:a,renderNode:u,onNodeClick:c})=>{var y;const{key:f,children:g}=e,h=B.useMemo(()=>({expanded:r.includes(e.key),selected:i.includes(e.key)}),[r,e.key,i]),v=u&&typeof u=="function"?u(e,t,h,s,a):gR(e,t,h,c);return!((y=e.options)!=null&&y.filterable)||!a||e.title.toLowerCase().includes(a.toLowerCase())?D.jsxs(D.Fragment,{children:[D.jsx("div",{className:"flex items-center space-x-2",children:v},f),hR(g||[],t,a,r,i,h.expanded,s,c,u)]}):null},pR=function(e,t){var u;const{title:r,icon:i,subtitle:s}=e;let a=null;return i&&(a=D.jsx(Sv,{children:i})),D.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,D.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:r}),s&&D.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:s})]})},hR=function(e,t,r,i,s,a,u,c,f){return e.length&&a?e.map(g=>D.jsx(Jc,{actions:u,node:g,searchQuery:r,depth:t+1,expandedKeys:i,selectedKeys:s,onNodeClick:c,renderNode:f},g.key)):null},gR=function(e,t,r,i){return D.jsxs(D.Fragment,{children:[D.jsx(Tv,{showLines:!0,depth:t}),D.jsx(Av,{show:e.children&&e.children.length>0||!1,expanded:r.expanded}),pR(e,i)]})},qs=e=>t=>e===t,mR=function({treeData:t,renderNode:r,onNodeClick:i,onExpandNode:s,searchQuery:a,expandedKeys:u,expandCondition:c="always",encapsulated:f,className:g}){const[h,v]=B.useState(()=>({expandedKeys:u||[],selectedKeys:[]}));B.useEffect(()=>{c==="when-collapsed"&&h.expandedKeys.length>0||v({...h,expandedKeys:u||h.expandedKeys})},[u]);const p=B.useCallback(m=>{if(!m)return;const S=h.expandedKeys.findIndex(qs(m.key));let E=[];S===-1?(E=[...h.expandedKeys,m.key],v(()=>({...h,expandedKeys:E})),s&&s(E)):(E=h.expandedKeys.filter(R=>R!==m.key),v(()=>({...h,expandedKeys:E})),s&&s(E))},[h]),y=B.useCallback(m=>{var E;if(!((E=m==null?void 0:m.options)!=null&&E.selectable))return;h.selectedKeys.findIndex(qs(m.key))===-1&&v({...h,selectedKeys:[...h.selectedKeys,m.key]})},[h]),x=B.useCallback(m=>{var E;if(!((E=m==null?void 0:m.options)!=null&&E.selectable))return;h.selectedKeys.findIndex(qs(m.key))===-1&&v({...h,selectedKeys:[m.key]})},[h]),d=B.useCallback(m=>{var E;if(!((E=m==null?void 0:m.options)!=null&&E.selectable)){v({...h,selectedKeys:[]});return}h.selectedKeys.findIndex(qs(m.key))!==-1&&v({...h,selectedKeys:h.selectedKeys.filter(R=>R!==m.key)})},[h]),b=B.useMemo(()=>({expand:p,select:y,selectSingle:x,deselect:d}),[d,p,y,x]);return D.jsx("div",{className:je("fd-tree",g,{"pl-2 mb-1 rounded border bg-grey-900 p-1":f}),children:t.map(m=>D.jsx(Jc,{node:m,searchQuery:a||"",depth:0,expandedKeys:h.expandedKeys,selectedKeys:h.selectedKeys,actions:b,renderNode:r,onNodeClick:i},m.key))})};function da(e){return e.of&&e.children?D.jsx(D.Fragment,{children:e.children}):null}function Qe(){return Qe=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},Qe.apply(null,arguments)}function vR(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 yR={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 Rv(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var wR=/[A-Z]|^ms/g,bR=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Pv=function(t){return t.charCodeAt(1)===45},fg=function(t){return t!=null&&typeof t!="boolean"},Fl=Rv(function(e){return Pv(e)?e:e.replace(wR,"-$&").toLowerCase()}),dg=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(bR,function(i,s,a){return Ar={name:s,styles:a,next:Ar},s})}return yR[t]!==1&&!Pv(t)&&typeof r=="number"&&r!==0?r+"px":r};function Io(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 Ar={name:s.name,styles:s.styles,next:Ar},s.name;var a=r;if(a.styles!==void 0){var u=a.next;if(u!==void 0)for(;u!==void 0;)Ar={name:u.name,styles:u.styles,next:Ar},u=u.next;var c=a.styles+";";return c}return xR(e,t,r)}case"function":{if(e!==void 0){var f=Ar,g=r(e);return Ar=f,Io(e,t,g)}break}}var h=r;if(t==null)return h;var v=t[h];return v!==void 0?v:h}function xR(e,t,r){var i="";if(Array.isArray(r))for(var s=0;s<r.length;s++)i+=Io(e,t,r[s])+";";else for(var a in r){var u=r[a];if(typeof u!="object"){var c=u;t!=null&&t[c]!==void 0?i+=a+"{"+t[c]+"}":fg(c)&&(i+=Fl(a)+":"+dg(a,c)+";")}else if(Array.isArray(u)&&typeof u[0]=="string"&&(t==null||t[u[0]]===void 0))for(var f=0;f<u.length;f++)fg(u[f])&&(i+=Fl(a)+":"+dg(a,u[f])+";");else{var g=Io(e,t,u);switch(a){case"animation":case"animationName":{i+=Fl(a)+":"+g+";";break}default:i+=a+"{"+g+"}"}}}return i}var pg=/label:\s*([^\s;{]+)\s*(;|$)/g,Ar;function SR(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="";Ar=void 0;var a=e[0];if(a==null||a.raw===void 0)i=!1,s+=Io(r,t,a);else{var u=a;s+=u[0]}for(var c=1;c<e.length;c++)if(s+=Io(r,t,e[c]),i){var f=a;s+=f[c]}pg.lastIndex=0;for(var g="",h;(h=pg.exec(s))!==null;)g+="-"+h[1];var v=vR(s)+g;return{name:v,styles:s,next:Ar}}var ER=function(t){return t()},_R=$.useInsertionEffect?$.useInsertionEffect:!1,OR=_R||ER,TR=!0;function AR(e,t,r){var i="";return r.split(" ").forEach(function(s){e[s]!==void 0?t.push(e[s]+";"):s&&(i+=s+" ")}),i}var Cv=function(t,r,i){var s=t.key+"-"+r.name;(i===!1||TR===!1)&&t.registered[s]===void 0&&(t.registered[s]=r.styles)},RR=function(t,r,i){Cv(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)}},PR=/^((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)-.*))$/,CR=Rv(function(e){return PR.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),kR=CR,$R=function(t){return t!=="theme"},hg=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?kR:$R},gg=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},IR=function(t){var r=t.cache,i=t.serialized,s=t.isStringTag;return Cv(r,i,s),OR(function(){return RR(r,i,s)}),null},LR=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 c=gg(t,r,i),f=c||hg(s),g=!f("as");return function(){var h=arguments,v=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&v.push("label:"+a+";"),h[0]==null||h[0].raw===void 0)v.push.apply(v,h);else{var p=h[0];v.push(p[0]);for(var y=h.length,x=1;x<y;x++)v.push(h[x],p[x])}var d=gc.withEmotionCache(function(b,m,S){var E=g&&b.as||s,R="",O=[],k=b;if(b.theme==null){k={};for(var W in b)k[W]=b[W];k.theme=$.useContext(gc.ThemeContext)}typeof b.className=="string"?R=AR(m.registered,O,b.className):b.className!=null&&(R=b.className+" ");var M=SR(v.concat(O),m.registered,k);R+=m.key+"-"+M.name,u!==void 0&&(R+=" "+u);var F=g&&c===void 0?hg(E):f,G={};for(var j in b)g&&j==="as"||F(j)&&(G[j]=b[j]);return G.className=R,S&&(G.ref=S),$.createElement($.Fragment,null,$.createElement(IR,{cache:m,serialized:M,isStringTag:typeof E=="string"}),$.createElement(E,G))});return d.displayName=a!==void 0?a:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",d.defaultProps=t.defaultProps,d.__emotion_real=d,d.__emotion_base=s,d.__emotion_styles=v,d.__emotion_forwardProp=c,Object.defineProperty(d,"toString",{value:function(){return"."+u}}),d.withComponent=function(b,m){var S=e(b,Qe({},r,m,{shouldForwardProp:gg(d,m,!0)}));return S.apply(void 0,v)},d}},MR=["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"],xa=LR.bind(null);MR.forEach(function(e){xa[e]=xa(e)});var DR=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},gi=new WeakMap,Zs=new WeakMap,Gs={},Nl=0,kv=function(e){return e&&(e.host||kv(e.parentNode))},FR=function(e,t){return t.map(function(r){if(e.contains(r))return r;var i=kv(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})},NR=function(e,t,r,i){var s=FR(t,Array.isArray(e)?e:[e]);Gs[r]||(Gs[r]=new WeakMap);var a=Gs[r],u=[],c=new Set,f=new Set(s),g=function(v){!v||c.has(v)||(c.add(v),g(v.parentNode))};s.forEach(g);var h=function(v){!v||f.has(v)||Array.prototype.forEach.call(v.children,function(p){if(c.has(p))h(p);else try{var y=p.getAttribute(i),x=y!==null&&y!=="false",d=(gi.get(p)||0)+1,b=(a.get(p)||0)+1;gi.set(p,d),a.set(p,b),u.push(p),d===1&&x&&Zs.set(p,!0),b===1&&p.setAttribute(r,"true"),x||p.setAttribute(i,"true")}catch(m){console.error("aria-hidden: cannot operate on ",p,m)}})};return h(t),c.clear(),Nl++,function(){u.forEach(function(v){var p=gi.get(v)-1,y=a.get(v)-1;gi.set(v,p),a.set(v,y),p||(Zs.has(v)||v.removeAttribute(i),Zs.delete(v)),y||v.removeAttribute(r)}),Nl--,Nl||(gi=new WeakMap,gi=new WeakMap,Zs=new WeakMap,Gs={})}},jR=function(e,t,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),s=DR(e);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),NR(i,s,r,"aria-hidden")):function(){return null}},yc=function(e,t){return yc=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])},yc(e,t)};function Ba(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");yc(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Rr=function(){return Rr=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},Rr.apply(this,arguments)};function $v(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 wc(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 bc(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(c){u={error:c}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(u)throw u.error}}return a}function Sa(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 pa="right-scroll-bar-position",ha="width-before-scroll-bar",zR="with-scroll-bars-hidden",BR="--removed-body-scroll-bar-size";function jl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function WR(e,t){var r=B.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 HR=typeof window<"u"?$.useLayoutEffect:$.useEffect,mg=new WeakMap;function UR(e,t){var r=WR(null,function(i){return e.forEach(function(s){return jl(s,i)})});return HR(function(){var i=mg.get(r);if(i){var s=new Set(i),a=new Set(e),u=r.current;s.forEach(function(c){a.has(c)||jl(c,null)}),a.forEach(function(c){s.has(c)||jl(c,u)})}mg.set(r,e)},[e]),r}function qR(e){return e}function ZR(e,t){t===void 0&&(t=qR);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(c){return c!==u})}},assignSyncMedium:function(a){for(i=!0;r.length;){var u=r;r=[],u.forEach(a)}r={push:function(c){return a(c)},filter:function(){return r}}},assignMedium:function(a){i=!0;var u=[];if(r.length){var c=r;r=[],c.forEach(a),u=r}var f=function(){var h=u;u=[],h.forEach(a)},g=function(){return Promise.resolve().then(f)};g(),r={push:function(h){u.push(h),g()},filter:function(h){return u=u.filter(h),r}}}};return s}function GR(e){e===void 0&&(e={});var t=ZR(null);return t.options=Rr({async:!0,ssr:!1},e),t}var Iv=function(e){var t=e.sideCar,r=$v(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,Rr({},r))};Iv.isSideCarExport=!0;function KR(e,t){return e.useMedium(t),Iv}var Lv=GR(),zl=function(){},Wa=$.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,c=e.children,f=e.className,g=e.removeScrollBar,h=e.enabled,v=e.shards,p=e.sideCar,y=e.noRelative,x=e.noIsolation,d=e.inert,b=e.allowPinchZoom,m=e.as,S=m===void 0?"div":m,E=e.gapMode,R=$v(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=p,k=UR([r,t]),W=Rr(Rr({},R),s);return $.createElement($.Fragment,null,h&&$.createElement(O,{sideCar:Lv,removeScrollBar:g,shards:v,noRelative:y,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!b,lockRef:r,gapMode:E}),u?$.cloneElement($.Children.only(c),Rr(Rr({},W),{ref:k})):$.createElement(S,Rr({},W,{className:f,ref:k}),c))});Wa.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Wa.classNames={fullWidth:ha,zeroRight:pa};var VR=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function YR(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=VR();return t&&e.setAttribute("nonce",t),e}function XR(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function JR(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var QR=function(){var e=0,t=null;return{add:function(r){e==0&&(t=YR())&&(XR(t,r),JR(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},eP=function(){var e=QR();return function(t,r){$.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Mv=function(){var e=eP(),t=function(r){var i=r.styles,s=r.dynamic;return e(i,s),null};return t},tP={left:0,top:0,right:0,gap:0},Bl=function(e){return parseInt(e||"",10)||0},rP=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[Bl(r),Bl(i),Bl(s)]},nP=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return tP;var t=rP(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])}},iP=Mv(),wi="data-scroll-locked",oP=function(e,t,r,i){var s=e.left,a=e.top,u=e.right,c=e.gap;return r===void 0&&(r="margin"),`
23
- .`.concat(zR,` {
24
- overflow: hidden `).concat(i,`;
25
- padding-right: `).concat(c,"px ").concat(i,`;
20
+ `)===-1)return null;let x="",k=0;for(;;){const R=m.indexOf(`
21
+ `,k),F=m.slice(k,R===-1?void 0:R+1);if(c(a,F)||(x+=F,R===-1||!F.trim()))break;k=R+1}const E=Ta(x);return E===""?null:[x,,E]}),i:3,u:Zu,l:(m,w,x)=>u("p",{key:x.key},w(m.children,x))},22:{t:["["],o:yi(gP),i:0,u:m=>(g[m[1]]={target:m[2],title:m[4]},{}),l:Ju},23:{t:["!["],o:Wn(vP),i:0,u:m=>({alt:m[1]?Zr(m[1]):void 0,ref:m[2]}),l:(m,w,x)=>g[m.ref]?u("img",{key:x.key,alt:m.alt,src:n(g[m.ref].target,"img","src"),title:g[m.ref].title}):null},24:{t:m=>m[0]==="["&&m.indexOf("](")===-1,o:yi(mP),i:0,u:(m,w,x)=>({children:w(m[1],x),fallbackChildren:m[0],ref:m[2]}),l:(m,w,x)=>g[m.ref]?u("a",{key:x.key,href:n(g[m.ref].target,"a","href"),title:g[m.ref].title},w(m.children,x)):u("span",{key:x.key},m.fallbackChildren)},25:{t:["|"],o:xn(Pv),i:1,u:BP,l(m,w,x){const k=m;return u("table",{key:x.key},u("thead",null,u("tr",null,k.header.map(function(E,R){return u("th",{key:R,style:Dv(k,R)},w(E,x))}))),u("tbody",null,k.cells.map(function(E,R){return u("tr",{key:R},E.map(function(F,A){return u("td",{key:A,style:Dv(k,A)},w(F,x))}))})))}},27:{o:yo(function(m,w){let x;return Ol(m,":")&&(x=TP.exec(m)),x||PP.exec(m)}),i:4,u(m){const w=m[0];return{text:w.indexOf("&")===-1?w:w.replace(lP,(x,k)=>t.namedCodesToUnicode[k]||x)}},l:m=>m.text},28:{t:["**","__"],o:Wn(EP),i:2,u:(m,w,x)=>({children:w(m[2],x)}),l:(m,w,x)=>u("strong",{key:x.key},w(m.children,x))},29:{t:m=>{const w=m[0];return(w==="*"||w==="_")&&m[1]!==w},o:Wn(kP),i:3,u:(m,w,x)=>({children:w(m[2],x)}),l:(m,w,x)=>u("em",{key:x.key},w(m.children,x))},30:{t:["\\"],o:Wn(RP),i:1,u:m=>({text:m[1],type:"27"})},31:{t:["=="],o:Wn(OP),i:3,u:Zu,l:(m,w,x)=>u("mark",{key:x.key},w(m.children,x))},32:{t:["~~"],o:Wn(AP),i:3,u:Zu,l:(m,w,x)=>u("del",{key:x.key},w(m.children,x))}};t.disableParsingRawHTML===!0&&(delete y[11],delete y[13]);const S=(function(m){var w=Object.keys(m);function x(k,E){var R=[];if(E.prevCapture=E.prevCapture||"",k.trim())for(;k;)for(var F=0;F<w.length;){var A=w[F],N=m[A];if(!N.t||HP(k,E,N.t)){var V=N.o(k,E);if(V&&V[0]){k=k.substring(V[0].length);var $=N.u(V,x,E);E.prevCapture+=V[0],$.type||($.type=A),R.push($);break}F++}else F++}return E.prevCapture="",R}return w.sort(function(k,E){return m[k].i-m[E].i||(k<E?-1:1)}),function(k,E){return x((function(R){return R.replace(rP,`
22
+ `).replace(oP,"").replace(yP," ")})(k),E)}})(y),v=(function(m,w){return function x(k,E={}){if(Array.isArray(k)){const R=E.key,F=[];let A=!1;for(let N=0;N<k.length;N++){E.key=N;const V=x(k[N],E),$=Nv(V);$&&A?F[F.length-1]+=V:V!==null&&F.push(V),A=$}return E.key=R,F}return(function(R,F,A){const N=m[R.type].l;return w?w(()=>N(R,F,A),R,F,A):N(R,F,A)})(k,x,E)}})(y,t.renderRule),b=d(e);return h.length?u("div",null,b,u("footer",{key:"footer"},h.map(function(m){return u("div",{id:r(m.identifier,Uo),key:m.identifier},m.identifier,v(S(m.footnote,{inline:!0})))}))):b}const Vl=e=>{let{children:t="",options:r}=e,n=(function(o,a){if(o==null)return{};var l,c,u={},d=Object.keys(o);for(c=0;c<d.length;c++)a.indexOf(l=d[c])>=0||(u[l]=o[l]);return u})(e,UC);return z.cloneElement(KP(t,r),n)},$v=({kind:e,customIcon:t})=>{const r={"text-yellow-400":e==="warning","text-red-500":e==="danger"||e==="error","text-primary":e==="info","text-green-500":e==="message"};if(t)return C.jsx(t,{className:tt("flex-none size-6",r)});switch(e){case"error":case"danger":return C.jsx(wt.FdSanityCheckInfo,{className:tt("flex-none size-6",r)});case"info":return C.jsx(C.Fragment,{children:C.jsx(wt.FdInfoBold,{className:tt("flex-none size-6",r)})});case"warning":return C.jsx(C.Fragment,{children:C.jsx(wt.FdWarningDanger,{className:tt("flex-none size-6",r)})});case"message":return C.jsx(C.Fragment,{children:C.jsx(wt.FdInfoBold,{className:tt("flex-none size-6",r)})});default:return null}},ZP=({id:e,onClose:t,kind:r,message:n,markdown:o,customIcon:a})=>{const l=({className:c}={})=>C.jsx("button",{onClick:t,className:tt("flex justify-center p-1",c),children:C.jsx(wt.FdCloseNaked,{className:"size-4 font-thin stroke-current"})});return C.jsx("div",{className:tt("relative flex items-center rounded-lg py-2 px-4 text-sm text-slate-500 bg-white shadow-md"),children:typeof n=="string"?C.jsxs("div",{className:"w-full flex justify-between gap-x-3",children:[C.jsx("div",{className:"pt-1",children:C.jsx($v,{kind:r,customIcon:a})}),C.jsx("div",{className:"flex items-center gap-1 prose",children:o?C.jsx(Vl,{children:n}):C.jsx(C.Fragment,{children:n})}),l()]}):C.jsxs("div",{className:"flex items-start",children:[C.jsx("div",{className:"flex flex-col gap-2 justify-between",children:n.filter(c=>c.messages.length>0).map(c=>C.jsxs(C.Fragment,{children:[c.title&&C.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[C.jsx($v,{kind:r,customIcon:a}),C.jsxs("span",{children:[c.title," :"]})]}),C.jsx("ul",{className:tt("list-disc",{"px-12":c.title,"px-6":!c.title}),children:c.messages.map(u=>C.jsx("li",{children:o?C.jsx(Vl,{children:u}):C.jsx(C.Fragment,{children:u})}))})]}))}),l({className:"absolute top-1 right-1"})]})},e)},ly=({children:e,size:t,className:r,...n})=>C.jsx("div",{style:{"--width":`${t||24}px`},className:tt("h-6 flex items-center pr-1 w-[--width]",r),...n,children:e});var ef={},qo={},Gs={},Lv;function cy(){if(Lv)return Gs;Lv=1,Object.defineProperty(Gs,"__esModule",{value:!0}),Gs.default=r;let e;const t=new Uint8Array(16);function r(){if(!e&&(e=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!e))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(t)}return Gs}var to={},Go={},Yo={},zv;function XP(){if(zv)return Yo;zv=1,Object.defineProperty(Yo,"__esModule",{value:!0}),Yo.default=void 0;var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return Yo.default=e,Yo}var jv;function pc(){if(jv)return Go;jv=1,Object.defineProperty(Go,"__esModule",{value:!0}),Go.default=void 0;var e=t(XP());function t(o){return o&&o.__esModule?o:{default:o}}function r(o){return typeof o=="string"&&e.default.test(o)}var n=r;return Go.default=n,Go}var Fv;function hc(){if(Fv)return to;Fv=1,Object.defineProperty(to,"__esModule",{value:!0}),to.default=void 0,to.unsafeStringify=n;var e=t(pc());function t(l){return l&&l.__esModule?l:{default:l}}const r=[];for(let l=0;l<256;++l)r.push((l+256).toString(16).slice(1));function n(l,c=0){return r[l[c+0]]+r[l[c+1]]+r[l[c+2]]+r[l[c+3]]+"-"+r[l[c+4]]+r[l[c+5]]+"-"+r[l[c+6]]+r[l[c+7]]+"-"+r[l[c+8]]+r[l[c+9]]+"-"+r[l[c+10]]+r[l[c+11]]+r[l[c+12]]+r[l[c+13]]+r[l[c+14]]+r[l[c+15]]}function o(l,c=0){const u=n(l,c);if(!(0,e.default)(u))throw TypeError("Stringified UUID is invalid");return u}var a=o;return to.default=a,to}var Hv;function JP(){if(Hv)return qo;Hv=1,Object.defineProperty(qo,"__esModule",{value:!0}),qo.default=void 0;var e=r(cy()),t=hc();function r(d){return d&&d.__esModule?d:{default:d}}let n,o,a=0,l=0;function c(d,p,h){let g=p&&h||0;const y=p||new Array(16);d=d||{};let S=d.node||n,v=d.clockseq!==void 0?d.clockseq:o;if(S==null||v==null){const E=d.random||(d.rng||e.default)();S==null&&(S=n=[E[0]|1,E[1],E[2],E[3],E[4],E[5]]),v==null&&(v=o=(E[6]<<8|E[7])&16383)}let b=d.msecs!==void 0?d.msecs:Date.now(),m=d.nsecs!==void 0?d.nsecs:l+1;const w=b-a+(m-l)/1e4;if(w<0&&d.clockseq===void 0&&(v=v+1&16383),(w<0||b>a)&&d.nsecs===void 0&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=b,l=m,o=v,b+=122192928e5;const x=((b&268435455)*1e4+m)%4294967296;y[g++]=x>>>24&255,y[g++]=x>>>16&255,y[g++]=x>>>8&255,y[g++]=x&255;const k=b/4294967296*1e4&268435455;y[g++]=k>>>8&255,y[g++]=k&255,y[g++]=k>>>24&15|16,y[g++]=k>>>16&255,y[g++]=v>>>8|128,y[g++]=v&255;for(let E=0;E<6;++E)y[g+E]=S[E];return p||(0,t.unsafeStringify)(y)}var u=c;return qo.default=u,qo}var Ko={},Bn={},Zo={},Wv;function uy(){if(Wv)return Zo;Wv=1,Object.defineProperty(Zo,"__esModule",{value:!0}),Zo.default=void 0;var e=t(pc());function t(o){return o&&o.__esModule?o:{default:o}}function r(o){if(!(0,e.default)(o))throw TypeError("Invalid UUID");let a;const l=new Uint8Array(16);return l[0]=(a=parseInt(o.slice(0,8),16))>>>24,l[1]=a>>>16&255,l[2]=a>>>8&255,l[3]=a&255,l[4]=(a=parseInt(o.slice(9,13),16))>>>8,l[5]=a&255,l[6]=(a=parseInt(o.slice(14,18),16))>>>8,l[7]=a&255,l[8]=(a=parseInt(o.slice(19,23),16))>>>8,l[9]=a&255,l[10]=(a=parseInt(o.slice(24,36),16))/1099511627776&255,l[11]=a/4294967296&255,l[12]=a>>>24&255,l[13]=a>>>16&255,l[14]=a>>>8&255,l[15]=a&255,l}var n=r;return Zo.default=n,Zo}var Bv;function fy(){if(Bv)return Bn;Bv=1,Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.URL=Bn.DNS=void 0,Bn.default=l;var e=hc(),t=r(uy());function r(c){return c&&c.__esModule?c:{default:c}}function n(c){c=unescape(encodeURIComponent(c));const u=[];for(let d=0;d<c.length;++d)u.push(c.charCodeAt(d));return u}const o="6ba7b810-9dad-11d1-80b4-00c04fd430c8";Bn.DNS=o;const a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";Bn.URL=a;function l(c,u,d){function p(h,g,y,S){var v;if(typeof h=="string"&&(h=n(h)),typeof g=="string"&&(g=(0,t.default)(g)),((v=g)===null||v===void 0?void 0:v.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let b=new Uint8Array(16+h.length);if(b.set(g),b.set(h,g.length),b=d(b),b[6]=b[6]&15|u,b[8]=b[8]&63|128,y){S=S||0;for(let m=0;m<16;++m)y[S+m]=b[m];return y}return(0,e.unsafeStringify)(b)}try{p.name=c}catch{}return p.DNS=o,p.URL=a,p}return Bn}var Xo={},Vv;function QP(){if(Vv)return Xo;Vv=1,Object.defineProperty(Xo,"__esModule",{value:!0}),Xo.default=void 0;function e(y){if(typeof y=="string"){const S=unescape(encodeURIComponent(y));y=new Uint8Array(S.length);for(let v=0;v<S.length;++v)y[v]=S.charCodeAt(v)}return t(n(o(y),y.length*8))}function t(y){const S=[],v=y.length*32,b="0123456789abcdef";for(let m=0;m<v;m+=8){const w=y[m>>5]>>>m%32&255,x=parseInt(b.charAt(w>>>4&15)+b.charAt(w&15),16);S.push(x)}return S}function r(y){return(y+64>>>9<<4)+14+1}function n(y,S){y[S>>5]|=128<<S%32,y[r(S)-1]=S;let v=1732584193,b=-271733879,m=-1732584194,w=271733878;for(let x=0;x<y.length;x+=16){const k=v,E=b,R=m,F=w;v=u(v,b,m,w,y[x],7,-680876936),w=u(w,v,b,m,y[x+1],12,-389564586),m=u(m,w,v,b,y[x+2],17,606105819),b=u(b,m,w,v,y[x+3],22,-1044525330),v=u(v,b,m,w,y[x+4],7,-176418897),w=u(w,v,b,m,y[x+5],12,1200080426),m=u(m,w,v,b,y[x+6],17,-1473231341),b=u(b,m,w,v,y[x+7],22,-45705983),v=u(v,b,m,w,y[x+8],7,1770035416),w=u(w,v,b,m,y[x+9],12,-1958414417),m=u(m,w,v,b,y[x+10],17,-42063),b=u(b,m,w,v,y[x+11],22,-1990404162),v=u(v,b,m,w,y[x+12],7,1804603682),w=u(w,v,b,m,y[x+13],12,-40341101),m=u(m,w,v,b,y[x+14],17,-1502002290),b=u(b,m,w,v,y[x+15],22,1236535329),v=d(v,b,m,w,y[x+1],5,-165796510),w=d(w,v,b,m,y[x+6],9,-1069501632),m=d(m,w,v,b,y[x+11],14,643717713),b=d(b,m,w,v,y[x],20,-373897302),v=d(v,b,m,w,y[x+5],5,-701558691),w=d(w,v,b,m,y[x+10],9,38016083),m=d(m,w,v,b,y[x+15],14,-660478335),b=d(b,m,w,v,y[x+4],20,-405537848),v=d(v,b,m,w,y[x+9],5,568446438),w=d(w,v,b,m,y[x+14],9,-1019803690),m=d(m,w,v,b,y[x+3],14,-187363961),b=d(b,m,w,v,y[x+8],20,1163531501),v=d(v,b,m,w,y[x+13],5,-1444681467),w=d(w,v,b,m,y[x+2],9,-51403784),m=d(m,w,v,b,y[x+7],14,1735328473),b=d(b,m,w,v,y[x+12],20,-1926607734),v=p(v,b,m,w,y[x+5],4,-378558),w=p(w,v,b,m,y[x+8],11,-2022574463),m=p(m,w,v,b,y[x+11],16,1839030562),b=p(b,m,w,v,y[x+14],23,-35309556),v=p(v,b,m,w,y[x+1],4,-1530992060),w=p(w,v,b,m,y[x+4],11,1272893353),m=p(m,w,v,b,y[x+7],16,-155497632),b=p(b,m,w,v,y[x+10],23,-1094730640),v=p(v,b,m,w,y[x+13],4,681279174),w=p(w,v,b,m,y[x],11,-358537222),m=p(m,w,v,b,y[x+3],16,-722521979),b=p(b,m,w,v,y[x+6],23,76029189),v=p(v,b,m,w,y[x+9],4,-640364487),w=p(w,v,b,m,y[x+12],11,-421815835),m=p(m,w,v,b,y[x+15],16,530742520),b=p(b,m,w,v,y[x+2],23,-995338651),v=h(v,b,m,w,y[x],6,-198630844),w=h(w,v,b,m,y[x+7],10,1126891415),m=h(m,w,v,b,y[x+14],15,-1416354905),b=h(b,m,w,v,y[x+5],21,-57434055),v=h(v,b,m,w,y[x+12],6,1700485571),w=h(w,v,b,m,y[x+3],10,-1894986606),m=h(m,w,v,b,y[x+10],15,-1051523),b=h(b,m,w,v,y[x+1],21,-2054922799),v=h(v,b,m,w,y[x+8],6,1873313359),w=h(w,v,b,m,y[x+15],10,-30611744),m=h(m,w,v,b,y[x+6],15,-1560198380),b=h(b,m,w,v,y[x+13],21,1309151649),v=h(v,b,m,w,y[x+4],6,-145523070),w=h(w,v,b,m,y[x+11],10,-1120210379),m=h(m,w,v,b,y[x+2],15,718787259),b=h(b,m,w,v,y[x+9],21,-343485551),v=a(v,k),b=a(b,E),m=a(m,R),w=a(w,F)}return[v,b,m,w]}function o(y){if(y.length===0)return[];const S=y.length*8,v=new Uint32Array(r(S));for(let b=0;b<S;b+=8)v[b>>5]|=(y[b/8]&255)<<b%32;return v}function a(y,S){const v=(y&65535)+(S&65535);return(y>>16)+(S>>16)+(v>>16)<<16|v&65535}function l(y,S){return y<<S|y>>>32-S}function c(y,S,v,b,m,w){return a(l(a(a(S,y),a(b,w)),m),v)}function u(y,S,v,b,m,w,x){return c(S&v|~S&b,y,S,m,w,x)}function d(y,S,v,b,m,w,x){return c(S&b|v&~b,y,S,m,w,x)}function p(y,S,v,b,m,w,x){return c(S^v^b,y,S,m,w,x)}function h(y,S,v,b,m,w,x){return c(v^(S|~b),y,S,m,w,x)}var g=e;return Xo.default=g,Xo}var Uv;function eI(){if(Uv)return Ko;Uv=1,Object.defineProperty(Ko,"__esModule",{value:!0}),Ko.default=void 0;var e=r(fy()),t=r(QP());function r(a){return a&&a.__esModule?a:{default:a}}var o=(0,e.default)("v3",48,t.default);return Ko.default=o,Ko}var Jo={},Qo={},qv;function tI(){if(qv)return Qo;qv=1,Object.defineProperty(Qo,"__esModule",{value:!0}),Qo.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return Qo.default=t,Qo}var Gv;function rI(){if(Gv)return Jo;Gv=1,Object.defineProperty(Jo,"__esModule",{value:!0}),Jo.default=void 0;var e=n(tI()),t=n(cy()),r=hc();function n(l){return l&&l.__esModule?l:{default:l}}function o(l,c,u){if(e.default.randomUUID&&!c&&!l)return e.default.randomUUID();l=l||{};const d=l.random||(l.rng||t.default)();if(d[6]=d[6]&15|64,d[8]=d[8]&63|128,c){u=u||0;for(let p=0;p<16;++p)c[u+p]=d[p];return c}return(0,r.unsafeStringify)(d)}var a=o;return Jo.default=a,Jo}var ea={},ta={},Yv;function nI(){if(Yv)return ta;Yv=1,Object.defineProperty(ta,"__esModule",{value:!0}),ta.default=void 0;function e(o,a,l,c){switch(o){case 0:return a&l^~a&c;case 1:return a^l^c;case 2:return a&l^a&c^l&c;case 3:return a^l^c}}function t(o,a){return o<<a|o>>>32-a}function r(o){const a=[1518500249,1859775393,2400959708,3395469782],l=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof o=="string"){const p=unescape(encodeURIComponent(o));o=[];for(let h=0;h<p.length;++h)o.push(p.charCodeAt(h))}else Array.isArray(o)||(o=Array.prototype.slice.call(o));o.push(128);const c=o.length/4+2,u=Math.ceil(c/16),d=new Array(u);for(let p=0;p<u;++p){const h=new Uint32Array(16);for(let g=0;g<16;++g)h[g]=o[p*64+g*4]<<24|o[p*64+g*4+1]<<16|o[p*64+g*4+2]<<8|o[p*64+g*4+3];d[p]=h}d[u-1][14]=(o.length-1)*8/Math.pow(2,32),d[u-1][14]=Math.floor(d[u-1][14]),d[u-1][15]=(o.length-1)*8&4294967295;for(let p=0;p<u;++p){const h=new Uint32Array(80);for(let m=0;m<16;++m)h[m]=d[p][m];for(let m=16;m<80;++m)h[m]=t(h[m-3]^h[m-8]^h[m-14]^h[m-16],1);let g=l[0],y=l[1],S=l[2],v=l[3],b=l[4];for(let m=0;m<80;++m){const w=Math.floor(m/20),x=t(g,5)+e(w,y,S,v)+b+a[w]+h[m]>>>0;b=v,v=S,S=t(y,30)>>>0,y=g,g=x}l[0]=l[0]+g>>>0,l[1]=l[1]+y>>>0,l[2]=l[2]+S>>>0,l[3]=l[3]+v>>>0,l[4]=l[4]+b>>>0}return[l[0]>>24&255,l[0]>>16&255,l[0]>>8&255,l[0]&255,l[1]>>24&255,l[1]>>16&255,l[1]>>8&255,l[1]&255,l[2]>>24&255,l[2]>>16&255,l[2]>>8&255,l[2]&255,l[3]>>24&255,l[3]>>16&255,l[3]>>8&255,l[3]&255,l[4]>>24&255,l[4]>>16&255,l[4]>>8&255,l[4]&255]}var n=r;return ta.default=n,ta}var Kv;function iI(){if(Kv)return ea;Kv=1,Object.defineProperty(ea,"__esModule",{value:!0}),ea.default=void 0;var e=r(fy()),t=r(nI());function r(a){return a&&a.__esModule?a:{default:a}}var o=(0,e.default)("v5",80,t.default);return ea.default=o,ea}var ra={},Zv;function oI(){if(Zv)return ra;Zv=1,Object.defineProperty(ra,"__esModule",{value:!0}),ra.default=void 0;var e="00000000-0000-0000-0000-000000000000";return ra.default=e,ra}var na={},Xv;function aI(){if(Xv)return na;Xv=1,Object.defineProperty(na,"__esModule",{value:!0}),na.default=void 0;var e=t(pc());function t(o){return o&&o.__esModule?o:{default:o}}function r(o){if(!(0,e.default)(o))throw TypeError("Invalid UUID");return parseInt(o.slice(14,15),16)}var n=r;return na.default=n,na}var Jv;function sI(){return Jv||(Jv=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return l.default}});var t=p(JP()),r=p(eI()),n=p(rI()),o=p(iI()),a=p(oI()),l=p(aI()),c=p(pc()),u=p(hc()),d=p(uy());function p(h){return h&&h.__esModule?h:{default:h}}})(ef)),ef}var tf,Qv;function lI(){if(Qv)return tf;Qv=1;function e(t,r){if(!t||!r||!t.length||!r.length)throw new Error("Bad alphabet");this.srcAlphabet=t,this.dstAlphabet=r}return e.prototype.convert=function(t){var r,n,o,a={},l=this.srcAlphabet.length,c=this.dstAlphabet.length,u=t.length,d=typeof t=="string"?"":[];if(!this.isValid(t))throw new Error('Number "'+t+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return t;for(r=0;r<u;r++)a[r]=this.srcAlphabet.indexOf(t[r]);do{for(n=0,o=0,r=0;r<u;r++)n=n*l+a[r],n>=c?(a[o++]=parseInt(n/c,10),n=n%c):o>0&&(a[o++]=0);u=o,d=this.dstAlphabet.slice(n,n+1).concat(d)}while(o!==0);return d},e.prototype.isValid=function(t){for(var r=0;r<t.length;++r)if(this.srcAlphabet.indexOf(t[r])===-1)return!1;return!0},tf=e,tf}var rf,em;function cI(){if(em)return rf;em=1;var e=lI();function t(r,n){var o=new e(r,n);return function(a){return o.convert(a)}}return t.BIN="01",t.OCT="01234567",t.DEC="0123456789",t.HEX="0123456789abcdef",rf=t,rf}var nf,tm;function uI(){if(tm)return nf;tm=1;const{v4:e,validate:t}=sI(),r=cI(),n={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},o={consistentLength:!0};let a;const l=(d,p,h)=>{const g=p(d.toLowerCase().replace(/-/g,""));return!h||!h.consistentLength?g:g.padStart(h.shortIdLength,h.paddingChar)},c=(d,p)=>{const g=p(d).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[g[1],g[2],g[3],g[4],g[5]].join("-")},u=d=>Math.ceil(Math.log(2**128)/Math.log(d));return nf=(()=>{const d=(p,h)=>{const g=p||n.flickrBase58,y={...o,...h};if([...new Set(Array.from(g))].length!==g.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const S=u(g.length),v={shortIdLength:S,consistentLength:y.consistentLength,paddingChar:g[0]},b=r(r.HEX,g),m=r(g,r.HEX),w=()=>l(e(),b,v),k={alphabet:g,fromUUID:E=>l(E,b,v),maxLength:S,generate:w,new:w,toUUID:E=>c(E,m),uuid:e,validate:(E,R=!1)=>{if(!E||typeof E!="string")return!1;const F=y.consistentLength?E.length===S:E.length<=S,A=E.split("").every(N=>g.includes(N));return R===!1?F&&A:F&&A&&t(c(E,m))}};return Object.freeze(k),k};return d.constants=n,d.uuid=e,d.generate=()=>(a||(a=d(n.flickrBase58).generate),a()),d})(),nf}var Ii=uI();const dy=({depth:e,height:t=24,width:r=11,showLines:n=!0,stroke:o="rgb(241, 245, 249)"})=>{const a=`indent_line_${Ii.generate()}`;return C.jsxs("svg",{viewBox:`0 0 ${11*e} ${t}`,width:`${11*e}`,height:t,children:[C.jsx("defs",{children:C.jsx("pattern",{id:a,x:"0",y:"0",width:r,height:t,patternUnits:"userSpaceOnUse",children:C.jsx("line",{x1:r/2,y1:"0",x2:r/2,y2:t,stroke:o})})}),n?C.jsx("rect",{fill:`url(#${a})`,x:"0",y:"0",width:`${11*e}`,height:t}):C.jsx("rect",{fill:n?`url(#${a})`:"",x:"0",y:"0",width:0,height:t})]})},py=({show:e,expanded:t,onClick:r,variant:n="arrow"})=>e?C.jsx("div",{className:"flex h-6 w-5 items-center",onClick:o=>r&&r(o),children:(()=>{switch(n){case"arrow":return C.jsx(wt.FdDown,{className:tt(["h-3 w-3 transform text-grey-50 transition ease-in-out",{"rotate-0":t,"-rotate-90":!t}])});case"caret":return t?C.jsx(wt.FdDown,{}):C.jsx(wt.FdRight,{});default:return C.jsx(wt.FdDown,{className:"h-3 w-3 transform text-grey-50 transition ease-in-out"})}})()}):C.jsx("div",{className:"flex h-6 w-3 items-center"}),Ld=({node:e,depth:t,expandedKeys:r,selectedKeys:n,actions:o,searchQuery:a,renderNode:l,onNodeClick:c})=>{var y;const{key:u,children:d}=e,p=H.useMemo(()=>({expanded:r.includes(e.key),selected:n.includes(e.key)}),[r,e.key,n]),h=l&&typeof l=="function"?l(e,t,p,o,a):pI(e,t,p,c);return!((y=e.options)!=null&&y.filterable)||!a||e.title.toLowerCase().includes(a.toLowerCase())?C.jsxs(C.Fragment,{children:[C.jsx("div",{className:"flex items-center space-x-2",children:h},u),dI(d||[],t,a,r,n,p.expanded,o,c,l)]}):null},fI=function(e,t){var l;const{title:r,icon:n,subtitle:o}=e;let a=null;return n&&(a=C.jsx(ly,{children:n})),C.jsxs("div",{className:"flex flex-1 select-none items-center overflow-hidden text-ellipsis whitespace-nowrap",draggable:(l=e.options)==null?void 0:l.draggable,onClick:()=>{t&&t(e)},children:[a,C.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:r}),o&&C.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:o})]})},dI=function(e,t,r,n,o,a,l,c,u){return e.length&&a?e.map(d=>C.jsx(Ld,{actions:l,node:d,searchQuery:r,depth:t+1,expandedKeys:n,selectedKeys:o,onNodeClick:c,renderNode:u},d.key)):null},pI=function(e,t,r,n){return C.jsxs(C.Fragment,{children:[C.jsx(dy,{showLines:!0,depth:t}),C.jsx(py,{show:e.children&&e.children.length>0||!1,expanded:r.expanded}),fI(e,n)]})},Ys=e=>t=>e===t,hI=function({treeData:t,renderNode:r,onNodeClick:n,onExpandNode:o,searchQuery:a,expandedKeys:l,expandCondition:c="always",encapsulated:u,className:d}){const[p,h]=H.useState(()=>({expandedKeys:l||[],selectedKeys:[]}));H.useEffect(()=>{c==="when-collapsed"&&p.expandedKeys.length>0||h({...p,expandedKeys:l||p.expandedKeys})},[l]);const g=H.useCallback(m=>{if(!m)return;const w=p.expandedKeys.findIndex(Ys(m.key));let x=[];w===-1?(x=[...p.expandedKeys,m.key],h(()=>({...p,expandedKeys:x})),o&&o(x)):(x=p.expandedKeys.filter(k=>k!==m.key),h(()=>({...p,expandedKeys:x})),o&&o(x))},[p]),y=H.useCallback(m=>{var x;if(!((x=m==null?void 0:m.options)!=null&&x.selectable))return;p.selectedKeys.findIndex(Ys(m.key))===-1&&h({...p,selectedKeys:[...p.selectedKeys,m.key]})},[p]),S=H.useCallback(m=>{var x;if(!((x=m==null?void 0:m.options)!=null&&x.selectable))return;p.selectedKeys.findIndex(Ys(m.key))===-1&&h({...p,selectedKeys:[m.key]})},[p]),v=H.useCallback(m=>{var x;if(!((x=m==null?void 0:m.options)!=null&&x.selectable)){h({...p,selectedKeys:[]});return}p.selectedKeys.findIndex(Ys(m.key))!==-1&&h({...p,selectedKeys:p.selectedKeys.filter(k=>k!==m.key)})},[p]),b=H.useMemo(()=>({expand:g,select:y,selectSingle:S,deselect:v}),[v,g,y,S]);return C.jsx("div",{className:tt("fd-tree",d,{"pl-2 mb-1 rounded border bg-grey-900 p-1":u}),children:t.map(m=>C.jsx(Ld,{node:m,searchQuery:a||"",depth:0,expandedKeys:p.expandedKeys,selectedKeys:p.selectedKeys,actions:b,renderNode:r,onNodeClick:n},m.key))})};function Tl(e){return e.of&&e.children?C.jsx(C.Fragment,{children:e.children}):null}function pt(){return pt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pt.apply(null,arguments)}function gI(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var vI={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function hy(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var mI=/[A-Z]|^ms/g,bI=/_EMO_([^_]+?)_([^]*?)_EMO_/g,gy=function(t){return t.charCodeAt(1)===45},rm=function(t){return t!=null&&typeof t!="boolean"},of=hy(function(e){return gy(e)?e:e.replace(mI,"-$&").toLowerCase()}),nm=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(bI,function(n,o,a){return rn={name:o,styles:a,next:rn},o})}return vI[t]!==1&&!gy(t)&&typeof r=="number"&&r!==0?r+"px":r};function Ma(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return rn={name:o.name,styles:o.styles,next:rn},o.name;var a=r;if(a.styles!==void 0){var l=a.next;if(l!==void 0)for(;l!==void 0;)rn={name:l.name,styles:l.styles,next:rn},l=l.next;var c=a.styles+";";return c}return yI(e,t,r)}case"function":{if(e!==void 0){var u=rn,d=r(e);return rn=u,Ma(e,t,d)}break}}var p=r;if(t==null)return p;var h=t[p];return h!==void 0?h:p}function yI(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Ma(e,t,r[o])+";";else for(var a in r){var l=r[a];if(typeof l!="object"){var c=l;t!=null&&t[c]!==void 0?n+=a+"{"+t[c]+"}":rm(c)&&(n+=of(a)+":"+nm(a,c)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var u=0;u<l.length;u++)rm(l[u])&&(n+=of(a)+":"+nm(a,l[u])+";");else{var d=Ma(e,t,l);switch(a){case"animation":case"animationName":{n+=of(a)+":"+d+";";break}default:n+=a+"{"+d+"}"}}}return n}var im=/label:\s*([^\s;{]+)\s*(;|$)/g,rn;function wI(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";rn=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,o+=Ma(r,t,a);else{var l=a;o+=l[0]}for(var c=1;c<e.length;c++)if(o+=Ma(r,t,e[c]),n){var u=a;o+=u[c]}im.lastIndex=0;for(var d="",p;(p=im.exec(o))!==null;)d+="-"+p[1];var h=gI(o)+d;return{name:h,styles:o,next:rn}}var xI=function(t){return t()},SI=z.useInsertionEffect?z.useInsertionEffect:!1,_I=SI||xI,EI=!0;function kI(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var vy=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||EI===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},OI=function(t,r,n){vy(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+o:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}},AI=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,TI=hy(function(e){return AI.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),RI=TI,CI=function(t){return t!=="theme"},om=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?RI:CI},am=function(t,r,n){var o;if(r){var a=r.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(l){return t.__emotion_forwardProp(l)&&a(l)}:a}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},PI=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return vy(r,n,o),_I(function(){return OI(r,n,o)}),null},II=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,a,l;r!==void 0&&(a=r.label,l=r.target);var c=am(t,r,n),u=c||om(o),d=!u("as");return function(){var p=arguments,h=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&h.push("label:"+a+";"),p[0]==null||p[0].raw===void 0)h.push.apply(h,p);else{var g=p[0];h.push(g[0]);for(var y=p.length,S=1;S<y;S++)h.push(p[S],g[S])}var v=Kf.withEmotionCache(function(b,m,w){var x=d&&b.as||o,k="",E=[],R=b;if(b.theme==null){R={};for(var F in b)R[F]=b[F];R.theme=z.useContext(Kf.ThemeContext)}typeof b.className=="string"?k=kI(m.registered,E,b.className):b.className!=null&&(k=b.className+" ");var A=wI(h.concat(E),m.registered,R);k+=m.key+"-"+A.name,l!==void 0&&(k+=" "+l);var N=d&&c===void 0?om(x):u,V={};for(var $ in b)d&&$==="as"||N($)&&(V[$]=b[$]);return V.className=k,w&&(V.ref=w),z.createElement(z.Fragment,null,z.createElement(PI,{cache:m,serialized:A,isStringTag:typeof x=="string"}),z.createElement(x,V))});return v.displayName=a!==void 0?a:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=o,v.__emotion_styles=h,v.__emotion_forwardProp=c,Object.defineProperty(v,"toString",{value:function(){return"."+l}}),v.withComponent=function(b,m){var w=e(b,pt({},r,m,{shouldForwardProp:am(v,m,!0)}));return w.apply(void 0,h)},v}},NI=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Ul=II.bind(null);NI.forEach(function(e){Ul[e]=Ul(e)});var MI=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ro=new WeakMap,Ks=new WeakMap,Zs={},af=0,my=function(e){return e&&(e.host||my(e.parentNode))},DI=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=my(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},$I=function(e,t,r,n){var o=DI(t,Array.isArray(e)?e:[e]);Zs[r]||(Zs[r]=new WeakMap);var a=Zs[r],l=[],c=new Set,u=new Set(o),d=function(h){!h||c.has(h)||(c.add(h),d(h.parentNode))};o.forEach(d);var p=function(h){!h||u.has(h)||Array.prototype.forEach.call(h.children,function(g){if(c.has(g))p(g);else try{var y=g.getAttribute(n),S=y!==null&&y!=="false",v=(ro.get(g)||0)+1,b=(a.get(g)||0)+1;ro.set(g,v),a.set(g,b),l.push(g),v===1&&S&&Ks.set(g,!0),b===1&&g.setAttribute(r,"true"),S||g.setAttribute(n,"true")}catch(m){console.error("aria-hidden: cannot operate on ",g,m)}})};return p(t),c.clear(),af++,function(){l.forEach(function(h){var g=ro.get(h)-1,y=a.get(h)-1;ro.set(h,g),a.set(h,y),g||(Ks.has(h)||h.removeAttribute(n),Ks.delete(h)),y||h.removeAttribute(r)}),af--,af||(ro=new WeakMap,ro=new WeakMap,Ks=new WeakMap,Zs={})}},LI=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=MI(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),$I(n,o,r,"aria-hidden")):function(){return null}},Jf=function(e,t){return Jf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},Jf(e,t)};function gc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Jf(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var nn=function(){return nn=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},nn.apply(this,arguments)};function by(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function Qf(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ed(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,a=[],l;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)a.push(o.value)}catch(c){l={error:c}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(l)throw l.error}}return a}function ql(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var Rl="right-scroll-bar-position",Cl="width-before-scroll-bar",zI="with-scroll-bars-hidden",jI="--removed-body-scroll-bar-size";function sf(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function FI(e,t){var r=H.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var HI=typeof window<"u"?z.useLayoutEffect:z.useEffect,sm=new WeakMap;function WI(e,t){var r=FI(null,function(n){return e.forEach(function(o){return sf(o,n)})});return HI(function(){var n=sm.get(r);if(n){var o=new Set(n),a=new Set(e),l=r.current;o.forEach(function(c){a.has(c)||sf(c,null)}),a.forEach(function(c){o.has(c)||sf(c,l)})}sm.set(r,e)},[e]),r}function BI(e){return e}function VI(e,t){t===void 0&&(t=BI);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var l=t(a,n);return r.push(l),function(){r=r.filter(function(c){return c!==l})}},assignSyncMedium:function(a){for(n=!0;r.length;){var l=r;r=[],l.forEach(a)}r={push:function(c){return a(c)},filter:function(){return r}}},assignMedium:function(a){n=!0;var l=[];if(r.length){var c=r;r=[],c.forEach(a),l=r}var u=function(){var p=l;l=[],p.forEach(a)},d=function(){return Promise.resolve().then(u)};d(),r={push:function(p){l.push(p),d()},filter:function(p){return l=l.filter(p),r}}}};return o}function UI(e){e===void 0&&(e={});var t=VI(null);return t.options=nn({async:!0,ssr:!1},e),t}var yy=function(e){var t=e.sideCar,r=by(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return z.createElement(n,nn({},r))};yy.isSideCarExport=!0;function qI(e,t){return e.useMedium(t),yy}var wy=UI(),lf=function(){},vc=z.forwardRef(function(e,t){var r=z.useRef(null),n=z.useState({onScrollCapture:lf,onWheelCapture:lf,onTouchMoveCapture:lf}),o=n[0],a=n[1],l=e.forwardProps,c=e.children,u=e.className,d=e.removeScrollBar,p=e.enabled,h=e.shards,g=e.sideCar,y=e.noRelative,S=e.noIsolation,v=e.inert,b=e.allowPinchZoom,m=e.as,w=m===void 0?"div":m,x=e.gapMode,k=by(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=g,R=WI([r,t]),F=nn(nn({},k),o);return z.createElement(z.Fragment,null,p&&z.createElement(E,{sideCar:wy,removeScrollBar:d,shards:h,noRelative:y,noIsolation:S,inert:v,setCallbacks:a,allowPinchZoom:!!b,lockRef:r,gapMode:x}),l?z.cloneElement(z.Children.only(c),nn(nn({},F),{ref:R})):z.createElement(w,nn({},F,{className:u,ref:R}),c))});vc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};vc.classNames={fullWidth:Cl,zeroRight:Rl};var GI=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function YI(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=GI();return t&&e.setAttribute("nonce",t),e}function KI(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ZI(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var XI=function(){var e=0,t=null;return{add:function(r){e==0&&(t=YI())&&(KI(t,r),ZI(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},JI=function(){var e=XI();return function(t,r){z.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},xy=function(){var e=JI(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},QI={left:0,top:0,right:0,gap:0},cf=function(e){return parseInt(e||"",10)||0},e2=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[cf(r),cf(n),cf(o)]},t2=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return QI;var t=e2(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},r2=xy(),po="data-scroll-locked",n2=function(e,t,r,n){var o=e.left,a=e.top,l=e.right,c=e.gap;return r===void 0&&(r="margin"),`
23
+ .`.concat(zI,` {
24
+ overflow: hidden `).concat(n,`;
25
+ padding-right: `).concat(c,"px ").concat(n,`;
26
26
  }
27
- body[`).concat(wi,`] {
28
- overflow: hidden `).concat(i,`;
27
+ body[`).concat(po,`] {
28
+ overflow: hidden `).concat(n,`;
29
29
  overscroll-behavior: contain;
30
- `).concat([t&&"position: relative ".concat(i,";"),r==="margin"&&`
31
- padding-left: `.concat(s,`px;
30
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
31
+ padding-left: `.concat(o,`px;
32
32
  padding-top: `).concat(a,`px;
33
- padding-right: `).concat(u,`px;
33
+ padding-right: `).concat(l,`px;
34
34
  margin-left:0;
35
35
  margin-top:0;
36
- margin-right: `).concat(c,"px ").concat(i,`;
37
- `),r==="padding"&&"padding-right: ".concat(c,"px ").concat(i,";")].filter(Boolean).join(""),`
36
+ margin-right: `).concat(c,"px ").concat(n,`;
37
+ `),r==="padding"&&"padding-right: ".concat(c,"px ").concat(n,";")].filter(Boolean).join(""),`
38
38
  }
39
39
 
40
- .`).concat(pa,` {
41
- right: `).concat(c,"px ").concat(i,`;
40
+ .`).concat(Rl,` {
41
+ right: `).concat(c,"px ").concat(n,`;
42
42
  }
43
43
 
44
- .`).concat(ha,` {
45
- margin-right: `).concat(c,"px ").concat(i,`;
44
+ .`).concat(Cl,` {
45
+ margin-right: `).concat(c,"px ").concat(n,`;
46
46
  }
47
47
 
48
- .`).concat(pa," .").concat(pa,` {
49
- right: 0 `).concat(i,`;
48
+ .`).concat(Rl," .").concat(Rl,` {
49
+ right: 0 `).concat(n,`;
50
50
  }
51
51
 
52
- .`).concat(ha," .").concat(ha,` {
53
- margin-right: 0 `).concat(i,`;
52
+ .`).concat(Cl," .").concat(Cl,` {
53
+ margin-right: 0 `).concat(n,`;
54
54
  }
55
55
 
56
- body[`).concat(wi,`] {
57
- `).concat(BR,": ").concat(c,`px;
56
+ body[`).concat(po,`] {
57
+ `).concat(jI,": ").concat(c,`px;
58
58
  }
59
- `)},vg=function(){var e=parseInt(document.body.getAttribute(wi)||"0",10);return isFinite(e)?e:0},sP=function(){$.useEffect(function(){return document.body.setAttribute(wi,(vg()+1).toString()),function(){var e=vg()-1;e<=0?document.body.removeAttribute(wi):document.body.setAttribute(wi,e.toString())}},[])},aP=function(e){var t=e.noRelative,r=e.noImportant,i=e.gapMode,s=i===void 0?"margin":i;sP();var a=$.useMemo(function(){return nP(s)},[s]);return $.createElement(iP,{styles:oP(a,!t,s,r?"":"!important")})},xc=!1;if(typeof window<"u")try{var Ks=Object.defineProperty({},"passive",{get:function(){return xc=!0,!0}});window.addEventListener("test",Ks,Ks),window.removeEventListener("test",Ks,Ks)}catch{xc=!1}var mi=xc?{passive:!1}:!1,uP=function(e){return e.tagName==="TEXTAREA"},Dv=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!uP(e)&&r[t]==="visible")},lP=function(e){return Dv(e,"overflowY")},cP=function(e){return Dv(e,"overflowX")},yg=function(e,t){var r=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=Fv(e,i);if(s){var a=Nv(e,i),u=a[1],c=a[2];if(u>c)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},fP=function(e){var t=e.scrollTop,r=e.scrollHeight,i=e.clientHeight;return[t,r,i]},dP=function(e){var t=e.scrollLeft,r=e.scrollWidth,i=e.clientWidth;return[t,r,i]},Fv=function(e,t){return e==="v"?lP(t):cP(t)},Nv=function(e,t){return e==="v"?fP(t):dP(t)},pP=function(e,t){return e==="h"&&t==="rtl"?-1:1},hP=function(e,t,r,i,s){var a=pP(e,window.getComputedStyle(t).direction),u=a*i,c=r.target,f=t.contains(c),g=!1,h=u>0,v=0,p=0;do{if(!c)break;var y=Nv(e,c),x=y[0],d=y[1],b=y[2],m=d-b-a*x;(x||m)&&Fv(e,c)&&(v+=m,p+=x);var S=c.parentNode;c=S&&S.nodeType===Node.DOCUMENT_FRAGMENT_NODE?S.host:S}while(!f&&c!==document.body||f&&(t.contains(c)||t===c));return(h&&Math.abs(v)<1||!h&&Math.abs(p)<1)&&(g=!0),g},Vs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},wg=function(e){return[e.deltaX,e.deltaY]},bg=function(e){return e&&"current"in e?e.current:e},gP=function(e,t){return e[0]===t[0]&&e[1]===t[1]},mP=function(e){return`
59
+ `)},lm=function(){var e=parseInt(document.body.getAttribute(po)||"0",10);return isFinite(e)?e:0},i2=function(){z.useEffect(function(){return document.body.setAttribute(po,(lm()+1).toString()),function(){var e=lm()-1;e<=0?document.body.removeAttribute(po):document.body.setAttribute(po,e.toString())}},[])},o2=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;i2();var a=z.useMemo(function(){return t2(o)},[o]);return z.createElement(r2,{styles:n2(a,!t,o,r?"":"!important")})},td=!1;if(typeof window<"u")try{var Xs=Object.defineProperty({},"passive",{get:function(){return td=!0,!0}});window.addEventListener("test",Xs,Xs),window.removeEventListener("test",Xs,Xs)}catch{td=!1}var no=td?{passive:!1}:!1,a2=function(e){return e.tagName==="TEXTAREA"},Sy=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!a2(e)&&r[t]==="visible")},s2=function(e){return Sy(e,"overflowY")},l2=function(e){return Sy(e,"overflowX")},cm=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=_y(e,n);if(o){var a=Ey(e,n),l=a[1],c=a[2];if(l>c)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},c2=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},u2=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},_y=function(e,t){return e==="v"?s2(t):l2(t)},Ey=function(e,t){return e==="v"?c2(t):u2(t)},f2=function(e,t){return e==="h"&&t==="rtl"?-1:1},d2=function(e,t,r,n,o){var a=f2(e,window.getComputedStyle(t).direction),l=a*n,c=r.target,u=t.contains(c),d=!1,p=l>0,h=0,g=0;do{if(!c)break;var y=Ey(e,c),S=y[0],v=y[1],b=y[2],m=v-b-a*S;(S||m)&&_y(e,c)&&(h+=m,g+=S);var w=c.parentNode;c=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!u&&c!==document.body||u&&(t.contains(c)||t===c));return(p&&Math.abs(h)<1||!p&&Math.abs(g)<1)&&(d=!0),d},Js=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},um=function(e){return[e.deltaX,e.deltaY]},fm=function(e){return e&&"current"in e?e.current:e},p2=function(e,t){return e[0]===t[0]&&e[1]===t[1]},h2=function(e){return`
60
60
  .block-interactivity-`.concat(e,` {pointer-events: none;}
61
61
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
62
- `)},vP=0,vi=[];function yP(e){var t=$.useRef([]),r=$.useRef([0,0]),i=$.useRef(),s=$.useState(vP++)[0],a=$.useState(Mv)[0],u=$.useRef(e);$.useEffect(function(){u.current=e},[e]),$.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var d=Sa([e.lockRef.current],(e.shards||[]).map(bg),!0).filter(Boolean);return d.forEach(function(b){return b.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),d.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var c=$.useCallback(function(d,b){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!u.current.allowPinchZoom;var m=Vs(d),S=r.current,E="deltaX"in d?d.deltaX:S[0]-m[0],R="deltaY"in d?d.deltaY:S[1]-m[1],O,k=d.target,W=Math.abs(E)>Math.abs(R)?"h":"v";if("touches"in d&&W==="h"&&k.type==="range")return!1;var M=yg(W,k);if(!M)return!0;if(M?O=W:(O=W==="v"?"h":"v",M=yg(W,k)),!M)return!1;if(!i.current&&"changedTouches"in d&&(E||R)&&(i.current=O),!O)return!0;var F=i.current||O;return hP(F,b,d,F==="h"?E:R)},[]),f=$.useCallback(function(d){var b=d;if(!(!vi.length||vi[vi.length-1]!==a)){var m="deltaY"in b?wg(b):Vs(b),S=t.current.filter(function(O){return O.name===b.type&&(O.target===b.target||b.target===O.shadowParent)&&gP(O.delta,m)})[0];if(S&&S.should){b.cancelable&&b.preventDefault();return}if(!S){var E=(u.current.shards||[]).map(bg).filter(Boolean).filter(function(O){return O.contains(b.target)}),R=E.length>0?c(b,E[0]):!u.current.noIsolation;R&&b.cancelable&&b.preventDefault()}}},[]),g=$.useCallback(function(d,b,m,S){var E={name:d,delta:b,target:m,should:S,shadowParent:wP(m)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(R){return R!==E})},1)},[]),h=$.useCallback(function(d){r.current=Vs(d),i.current=void 0},[]),v=$.useCallback(function(d){g(d.type,wg(d),d.target,c(d,e.lockRef.current))},[]),p=$.useCallback(function(d){g(d.type,Vs(d),d.target,c(d,e.lockRef.current))},[]);$.useEffect(function(){return vi.push(a),e.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:p}),document.addEventListener("wheel",f,mi),document.addEventListener("touchmove",f,mi),document.addEventListener("touchstart",h,mi),function(){vi=vi.filter(function(d){return d!==a}),document.removeEventListener("wheel",f,mi),document.removeEventListener("touchmove",f,mi),document.removeEventListener("touchstart",h,mi)}},[]);var y=e.removeScrollBar,x=e.inert;return $.createElement($.Fragment,null,x?$.createElement(a,{styles:mP(s)}):null,y?$.createElement(aP,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function wP(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const bP=KR(Lv,yP);var jv=$.forwardRef(function(e,t){return $.createElement(Wa,Rr({},e,{ref:t,sideCar:bP}))});jv.classNames=Wa.classNames;const xP=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},SP=$.useId||(()=>{});let EP=0;function zv(e){const[t,r]=$.useState(SP());return xP((()=>{r((i=>i??String(EP++)))}),[e]),e||(t?`radix-${t}`:"")}function Bv(...e){return t=>e.forEach((r=>(function(i,s){typeof i=="function"?i(s):i!=null&&(i.current=s)})(r,t)))}function xn(...e){return $.useCallback(Bv(...e),e)}const Wv=$.forwardRef(((e,t)=>{const{children:r,...i}=e;return $.Children.toArray(r).some(xg)?$.createElement($.Fragment,null,$.Children.map(r,(s=>xg(s)?$.createElement(Sc,Qe({},i,{ref:t}),s.props.children):s))):$.createElement(Sc,Qe({},i,{ref:t}),r)}));Wv.displayName="Slot";const Sc=$.forwardRef(((e,t)=>{const{children:r,...i}=e;return $.isValidElement(r)?$.cloneElement(r,{..._P(i,r.props),ref:Bv(t,r.ref)}):$.Children.count(r)>1?$.Children.only(null):null}));Sc.displayName="SlotClone";const Hv=({children:e})=>$.createElement($.Fragment,null,e);function xg(e){return $.isValidElement(e)&&e.type===Hv}function _P(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 Sn=["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?Wv:t;return $.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),$.createElement(u,Qe({},a,{ref:i}))}))})),{}),Sg=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},Qc=e=>{const{present:t,children:r}=e,i=(function(u){const[c,f]=$.useState(),g=$.useRef({}),h=$.useRef(u),v=$.useRef("none"),p=u?"mounted":"unmounted",[y,x]=(function(d,b){return $.useReducer(((m,S)=>{const E=b[m][S];return E??m}),d)})(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return $.useEffect((()=>{const d=Ys(g.current);v.current=y==="mounted"?d:"none"}),[y]),Sg((()=>{const d=g.current,b=h.current;if(b!==u){const m=v.current,S=Ys(d);u?x("MOUNT"):S==="none"||(d==null?void 0:d.display)==="none"?x("UNMOUNT"):x(b&&m!==S?"ANIMATION_OUT":"UNMOUNT"),h.current=u}}),[u,x]),Sg((()=>{if(c){const d=m=>{const S=Ys(g.current).includes(m.animationName);m.target===c&&S&&x("ANIMATION_END")},b=m=>{m.target===c&&(v.current=Ys(g.current))};return c.addEventListener("animationstart",b),c.addEventListener("animationcancel",d),c.addEventListener("animationend",d),()=>{c.removeEventListener("animationstart",b),c.removeEventListener("animationcancel",d),c.removeEventListener("animationend",d)}}x("ANIMATION_END")}),[c,x]),{isPresent:["mounted","unmountSuspended"].includes(y),ref:$.useCallback((d=>{d&&(g.current=getComputedStyle(d)),f(d)}),[])}})(t),s=typeof r=="function"?r({present:i.isPresent}):$.Children.only(r),a=xn(i.ref,s.ref);return typeof r=="function"||i.isPresent?$.cloneElement(s,{ref:a}):null};function Ys(e){return(e==null?void 0:e.animationName)||"none"}Qc.displayName="Presence";let Wl=0;function OP(){$.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:Eg()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:Eg()),Wl++,()=>{Wl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach((i=>i.remove())),Wl--}}),[])}function Eg(){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 TP=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},ef=$.forwardRef(((e,t)=>{var r,i;const{containerRef:s,style:a,...u}=e,c=(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 TP((()=>{f({})}),[]),c?Pi.createPortal($.createElement(Sn.div,Qe({"data-radix-portal":""},u,{ref:t,style:c===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...a}:void 0})),c):null}));function Gn(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 _g={bubbles:!1,cancelable:!0},AP=$.forwardRef(((e,t)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:a,...u}=e,[c,f]=$.useState(null),g=Gn(s),h=Gn(a),v=$.useRef(null),p=xn(t,(d=>f(d))),y=$.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;$.useEffect((()=>{if(i){let d=function(m){if(y.paused||!c)return;const S=m.target;c.contains(S)?v.current=S:Mn(v.current,{select:!0})},b=function(m){!y.paused&&c&&(c.contains(m.relatedTarget)||Mn(v.current,{select:!0}))};return document.addEventListener("focusin",d),document.addEventListener("focusout",b),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",b)}}}),[i,c,y.paused]),$.useEffect((()=>{if(c){Ag.add(y);const b=document.activeElement;if(!c.contains(b)){const m=new Event("focusScope.autoFocusOnMount",_g);c.addEventListener("focusScope.autoFocusOnMount",g),c.dispatchEvent(m),m.defaultPrevented||((function(S,{select:E=!1}={}){const R=document.activeElement;for(const O of S)if(Mn(O,{select:E}),document.activeElement!==R)return})((d=Og(c),d.filter((S=>S.tagName!=="A"))),{select:!0}),document.activeElement===b&&Mn(c))}return()=>{c.removeEventListener("focusScope.autoFocusOnMount",g),setTimeout((()=>{const m=new Event("focusScope.autoFocusOnUnmount",_g);c.addEventListener("focusScope.autoFocusOnUnmount",h),c.dispatchEvent(m),m.defaultPrevented||Mn(b??document.body,{select:!0}),c.removeEventListener("focusScope.autoFocusOnUnmount",h),Ag.remove(y)}),0)}}var d}),[c,g,h,y]);const x=$.useCallback((d=>{if(!r&&!i||y.paused)return;const b=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,m=document.activeElement;if(b&&m){const S=d.currentTarget,[E,R]=(function(O){const k=Og(O),W=Tg(k,O),M=Tg(k.reverse(),O);return[W,M]})(S);E&&R?d.shiftKey||m!==R?d.shiftKey&&m===E&&(d.preventDefault(),r&&Mn(R,{select:!0})):(d.preventDefault(),r&&Mn(E,{select:!0})):m===S&&d.preventDefault()}}),[r,i,y.paused]);return $.createElement(Sn.div,Qe({tabIndex:-1},u,{ref:p,onKeyDown:x}))}));function Og(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 Tg(e,t){for(const r of e)if(!RP(r,{upTo:t}))return r}function RP(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 Mn(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 Ag=(function(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Rg(e,t),e.unshift(t)},remove(t){var r;e=Rg(e,t),(r=e[0])===null||r===void 0||r.resume()}}})();function Rg(e,t){const r=[...e],i=r.indexOf(t);return i!==-1&&r.splice(i,1),r}function Uv(e){const t=Gn(e);$.useEffect((()=>{const r=i=>{i.key==="Escape"&&t(i)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)}),[t])}const PP=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{};let Pg,Xs=0;function CP({disabled:e}){const t=$.useRef(!1);PP((()=>{if(e){let r=function(){Xs--,Xs===0&&(document.body.style.pointerEvents=Pg)},i=function(s){t.current=s.pointerType!=="mouse"};return Xs===0&&(Pg=document.body.style.pointerEvents),document.body.style.pointerEvents="none",Xs++,document.addEventListener("pointerup",i),()=>{t.current?document.addEventListener("click",r,{once:!0}):r(),document.removeEventListener("pointerup",i)}}}),[e])}function qt(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 kP=$.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$P=$.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:u,onDismiss:c,...f}=e,g=$.useContext(kP),[h,v]=$.useState(null),[,p]=$.useState({}),y=xn(t,(k=>v(k))),x=Array.from(g.layers),[d]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),b=x.indexOf(d),m=h?x.indexOf(h):-1,S=g.layersWithOutsidePointerEventsDisabled.size>0,E=m>=b,R=(function(k){const W=Gn(k),M=$.useRef(!1);return $.useEffect((()=>{const F=j=>{j.target&&!M.current&&kg("dismissableLayer.pointerDownOutside",W,{originalEvent:j}),M.current=!1},G=window.setTimeout((()=>{document.addEventListener("pointerdown",F)}),0);return()=>{window.clearTimeout(G),document.removeEventListener("pointerdown",F)}}),[W]),{onPointerDownCapture:()=>M.current=!0}})((k=>{const W=k.target,M=[...g.branches].some((F=>F.contains(W)));E&&!M&&(s==null||s(k),u==null||u(k),k.defaultPrevented||c==null||c())})),O=(function(k){const W=Gn(k),M=$.useRef(!1);return $.useEffect((()=>{const F=G=>{G.target&&!M.current&&kg("dismissableLayer.focusOutside",W,{originalEvent:G})};return document.addEventListener("focusin",F),()=>document.removeEventListener("focusin",F)}),[W]),{onFocusCapture:()=>M.current=!0,onBlurCapture:()=>M.current=!1}})((k=>{const W=k.target;[...g.branches].some((M=>M.contains(W)))||(a==null||a(k),u==null||u(k),k.defaultPrevented||c==null||c())}));return Uv((k=>{m===g.layers.size-1&&(i==null||i(k),k.defaultPrevented||c==null||c())})),CP({disabled:r}),$.useEffect((()=>{h&&(r&&g.layersWithOutsidePointerEventsDisabled.add(h),g.layers.add(h),Cg())}),[h,r,g]),$.useEffect((()=>()=>{h&&(g.layers.delete(h),g.layersWithOutsidePointerEventsDisabled.delete(h),Cg())}),[h,g]),$.useEffect((()=>{const k=()=>p({});return document.addEventListener("dismissableLayer.update",k),()=>document.removeEventListener("dismissableLayer.update",k)}),[]),$.createElement(Sn.div,Qe({},f,{ref:y,style:{pointerEvents:S?E?"auto":"none":void 0,...e.style},onFocusCapture:qt(e.onFocusCapture,O.onFocusCapture),onBlurCapture:qt(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:qt(e.onPointerDownCapture,R.onPointerDownCapture)}))}));function Cg(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function kg(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 $g(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,c;if("borderBoxSize"in a){const f=a.borderBoxSize,g=Array.isArray(f)?f[0]:f;u=g.inlineSize,c=g.blockSize}else{const f=e.getBoundingClientRect();u=f.width,c=f.height}r({width:u,height:c})}));return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}r(void 0)}),[e]),t}function IP(e,t){const r=Dn.get(e);return r===void 0?(Dn.set(e,{rect:{},callbacks:[t]}),Dn.size===1&&(Ec=requestAnimationFrame(qv))):(r.callbacks.push(t),t(e.getBoundingClientRect())),()=>{const i=Dn.get(e);if(i===void 0)return;const s=i.callbacks.indexOf(t);s>-1&&i.callbacks.splice(s,1),i.callbacks.length===0&&(Dn.delete(e),Dn.size===0&&cancelAnimationFrame(Ec))}}let Ec;const Dn=new Map;function qv(){const e=[];Dn.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)))})),Ec=requestAnimationFrame(qv)}function Zv(e){const[t,r]=$.useState();return $.useEffect((()=>{if(e){const i=IP(e,r);return()=>{r(void 0),i()}}}),[e]),t}function tf(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),c=r.length;function f(g){const{scope:h,children:v,...p}=g,y=(h==null?void 0:h[e][c])||u,x=$.useMemo((()=>p),Object.values(p));return $.createElement(y.Provider,{value:x},v)}return r=[...r,a],f.displayName=s+"Provider",[f,function(g,h){const v=(h==null?void 0:h[e][c])||u,p=$.useContext(v);if(p)return p;if(a!==void 0)return a;throw new Error(`\`${g}\` must be used within \`${s}\``)}]},LP(i,...t)]}function LP(...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:c,scopeName:f})=>({...u,...c(s)[`__scope${f}`]})),{});return $.useMemo((()=>({[`__scope${t.scopeName}`]:a})),[a])}};return r.scopeName=t.scopeName,r}function MP({anchorRect:e,popperSize:t,arrowSize:r,arrowOffset:i=0,side:s,sideOffset:a=0,align:u,alignOffset:c=0,shouldAvoidCollisions:f=!0,collisionBoundariesRect:g,collisionTolerance:h=0}){if(!e||!t||!g)return{popperStyles:DP,arrowStyles:Hl};const v=(function(W,M,F=0,G=0,j){const L=j?j.height:0,H=Ig(M,W,"x"),q=Ig(M,W,"y"),C=q.before-F-L,J=q.after+F+L,Y=H.before-F-L,te=H.after+F+L;return{top:{start:{x:H.start+G,y:C},center:{x:H.center,y:C},end:{x:H.end-G,y:C}},right:{start:{x:te,y:q.start+G},center:{x:te,y:q.center},end:{x:te,y:q.end-G}},bottom:{start:{x:H.start+G,y:J},center:{x:H.center,y:J},end:{x:H.end-G,y:J}},left:{start:{x:Y,y:q.start+G},center:{x:Y,y:q.center},end:{x:Y,y:q.end-G}}}})(t,e,a,c,r),p=v[s][u];if(f===!1){const W=Lg(p);let M=Hl;return r&&(M=Dg({popperSize:t,arrowSize:r,arrowOffset:i,side:s,align:u})),{popperStyles:{...W,"--radix-popper-transform-origin":Mg(t,s,u,i,r)},arrowStyles:M,placedSide:s,placedAlign:u}}const y=DOMRect.fromRect({...t,...p}),x=(d=g,b=h,DOMRect.fromRect({width:d.width-2*b,height:d.height-2*b,x:d.left+b,y:d.top+b}));var d,b;const m=Ng(y,x),S=v[Fg(s)][u],E=(function(W,M,F){const G=Fg(W);return M[W]&&!F[G]?G:W})(s,m,Ng(DOMRect.fromRect({...t,...S}),x)),R=(function(W,M,F,G,j){const L=F==="top"||F==="bottom",H=L?"left":"top",q=L?"right":"bottom",C=L?"width":"height",J=M[C]>W[C];return(G==="start"||G==="center")&&(j[H]&&J||j[q]&&!J)?"end":(G==="end"||G==="center")&&(j[q]&&J||j[H]&&!J)?"start":G})(t,e,s,u,m),O=Lg(v[E][R]);let k=Hl;return r&&(k=Dg({popperSize:t,arrowSize:r,arrowOffset:i,side:E,align:R})),{popperStyles:{...O,"--radix-popper-transform-origin":Mg(t,E,R,i,r)},arrowStyles:k,placedSide:E,placedAlign:R}}function Ig(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 Lg(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 Mg(e,t,r,i,s){const a=t==="top"||t==="bottom",u=s?s.width:0,c=s?s.height:0,f=u/2+i;let g="",h="";return a?(g={start:`${f}px`,center:"center",end:e.width-f+"px"}[r],h=t==="top"?`${e.height+c}px`:-c+"px"):(g=t==="left"?`${e.width+c}px`:-c+"px",h={start:`${f}px`,center:"center",end:e.height-f+"px"}[r]),`${g} ${h}`}const DP={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},Hl={position:"absolute",opacity:0};function Dg({popperSize:e,arrowSize:t,arrowOffset:r,side:i,align:s}){const a=(e.width-t.width)/2,u=(e.height-t.width)/2,c={top:0,right:90,bottom:180,left:-90}[i],f=Math.max(t.width,t.height),g={width:`${f}px`,height:`${f}px`,transform:`rotate(${c}deg)`,willChange:"transform",position:"absolute",[i]:"100%",direction:FP(i,s)};return i!=="top"&&i!=="bottom"||(s==="start"&&(g.left=`${r}px`),s==="center"&&(g.left=`${a}px`),s==="end"&&(g.right=`${r}px`)),i!=="left"&&i!=="right"||(s==="start"&&(g.top=`${r}px`),s==="center"&&(g.top=`${u}px`),s==="end"&&(g.bottom=`${r}px`)),g}function FP(e,t){return(e!=="top"&&e!=="right"||t!=="end")&&(e!=="bottom"&&e!=="left"||t==="end")?"ltr":"rtl"}function Fg(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function Ng(e,t){return{top:e.top<t.top,right:e.right>t.right,bottom:e.bottom>t.bottom,left:e.left<t.left}}const[Gv,Ha]=tf("Popper"),[NP,Kv]=Gv("Popper"),jP=e=>{const{__scopePopper:t,children:r}=e,[i,s]=$.useState(null);return $.createElement(NP,{scope:t,anchor:i,onAnchorChange:s},r)},zP=$.forwardRef(((e,t)=>{const{__scopePopper:r,virtualRef:i,...s}=e,a=Kv("PopperAnchor",r),u=$.useRef(null),c=xn(t,u);return $.useEffect((()=>{a.onAnchorChange((i==null?void 0:i.current)||u.current)})),i?null:$.createElement(Sn.div,Qe({},s,{ref:c}))})),[BP,z2]=Gv("PopperContent"),WP=$.forwardRef(((e,t)=>{const{__scopePopper:r,side:i="bottom",sideOffset:s,align:a="center",alignOffset:u,collisionTolerance:c,avoidCollisions:f=!0,...g}=e,h=Kv("PopperContent",r),[v,p]=$.useState(),y=Zv(h.anchor),[x,d]=$.useState(null),b=$g(x),[m,S]=$.useState(null),E=$g(m),R=xn(t,(L=>d(L))),O=(function(){const[L,H]=$.useState(void 0);return $.useEffect((()=>{let q;function C(){H({width:window.innerWidth,height:window.innerHeight})}function J(){window.clearTimeout(q),q=window.setTimeout(C,100)}return C(),window.addEventListener("resize",J),()=>window.removeEventListener("resize",J)}),[]),L})(),k=O?DOMRect.fromRect({...O,x:0,y:0}):void 0,{popperStyles:W,arrowStyles:M,placedSide:F,placedAlign:G}=MP({anchorRect:y,popperSize:b,arrowSize:E,arrowOffset:v,side:i,sideOffset:s,align:a,alignOffset:u,shouldAvoidCollisions:f,collisionBoundariesRect:k,collisionTolerance:c}),j=F!==void 0;return $.createElement("div",{style:W,"data-radix-popper-content-wrapper":""},$.createElement(BP,{scope:r,arrowStyles:M,onArrowChange:S,onArrowOffsetChange:p},$.createElement(Sn.div,Qe({"data-side":F,"data-align":G},g,{style:{...g.style,animation:j?void 0:"none"},ref:R}))))})),Vv=jP,Yv=zP,Xv=WP;function Jv({prop:e,defaultProp:t,onChange:r=(()=>{})}){const[i,s]=(function({defaultProp:f,onChange:g}){const h=$.useState(f),[v]=h,p=$.useRef(v),y=Gn(g);return $.useEffect((()=>{p.current!==v&&(y(v),p.current=v)}),[v,p,y]),h})({defaultProp:t,onChange:r}),a=e!==void 0,u=a?e:i,c=Gn(r);return[u,$.useCallback((f=>{if(a){const g=f,h=typeof f=="function"?g(e):f;h!==e&&c(h)}else s(f)}),[a,e,s,c])]}const[HP]=tf("Popover",[Ha]),rf=Ha(),[UP,Uo]=HP("Popover"),qP=e=>{const{__scopePopover:t,children:r,open:i,defaultOpen:s,onOpenChange:a,modal:u=!1}=e,c=rf(t),f=$.useRef(null),[g,h]=$.useState(!1),[v=!1,p]=Jv({prop:i,defaultProp:s,onChange:a});return $.createElement(Vv,c,$.createElement(UP,{scope:t,contentId:zv(),triggerRef:f,open:v,onOpenChange:p,onOpenToggle:$.useCallback((()=>p((y=>!y))),[p]),hasCustomAnchor:g,onCustomAnchorAdd:$.useCallback((()=>h(!0)),[]),onCustomAnchorRemove:$.useCallback((()=>h(!1)),[]),modal:u},r))},ZP=$.forwardRef(((e,t)=>{const{__scopePopover:r,...i}=e,s=Uo("PopoverTrigger",r),a=rf(r),u=xn(t,s.triggerRef),c=$.createElement(Sn.button,Qe({type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":ey(s.open)},i,{ref:u,onClick:qt(e.onClick,s.onOpenToggle)}));return s.hasCustomAnchor?c:$.createElement(Yv,Qe({asChild:!0},a),c)})),GP=$.forwardRef(((e,t)=>{const{forceMount:r,...i}=e,s=Uo("PopoverContent",e.__scopePopover);return $.createElement(Qc,{present:r||s.open},s.modal?$.createElement(KP,Qe({},i,{ref:t})):$.createElement(VP,Qe({},i,{ref:t})))})),KP=$.forwardRef(((e,t)=>{const{allowPinchZoom:r,portalled:i=!0,...s}=e,a=Uo("PopoverContent",e.__scopePopover),u=$.useRef(null),c=xn(t,u),f=$.useRef(!1);$.useEffect((()=>{const h=u.current;if(h)return jR(h)}),[]);const g=i?ef:$.Fragment;return $.createElement(g,null,$.createElement(jv,{allowPinchZoom:r},$.createElement(Qv,Qe({},s,{ref:c,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:qt(e.onCloseAutoFocus,(h=>{var v;h.preventDefault(),f.current||(v=a.triggerRef.current)===null||v===void 0||v.focus()})),onPointerDownOutside:qt(e.onPointerDownOutside,(h=>{const v=h.detail.originalEvent,p=v.button===0&&v.ctrlKey===!0,y=v.button===2||p;f.current=y}),{checkForDefaultPrevented:!1}),onFocusOutside:qt(e.onFocusOutside,(h=>h.preventDefault()),{checkForDefaultPrevented:!1})}))))})),VP=$.forwardRef(((e,t)=>{const{portalled:r=!0,...i}=e,s=Uo("PopoverContent",e.__scopePopover),a=$.useRef(!1),u=r?ef:$.Fragment;return $.createElement(u,null,$.createElement(Qv,Qe({},i,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var f,g;(f=e.onCloseAutoFocus)===null||f===void 0||f.call(e,c),c.defaultPrevented||(a.current||(g=s.triggerRef.current)===null||g===void 0||g.focus(),c.preventDefault()),a.current=!1},onInteractOutside:c=>{var f,g;(f=e.onInteractOutside)===null||f===void 0||f.call(e,c),c.defaultPrevented||(a.current=!0);const h=c.target;!((g=s.triggerRef.current)===null||g===void 0)&&g.contains(h)&&c.preventDefault()}})))})),Qv=$.forwardRef(((e,t)=>{const{__scopePopover:r,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:u,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:g,onInteractOutside:h,...v}=e,p=Uo("PopoverContent",r),y=rf(r);return OP(),$.createElement(AP,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:a},$.createElement($P,{asChild:!0,disableOutsidePointerEvents:u,onInteractOutside:h,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:g,onDismiss:()=>p.onOpenChange(!1)},$.createElement(Xv,Qe({"data-state":ey(p.open),role:"dialog",id:p.contentId},y,v,{ref:t,style:{...v.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))}));function ey(e){return e?"open":"closed"}const YP=qP,XP=ZP,JP=GP;var ga=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(ga||{}),Ul={},uo={},Js={},Qs={},ea={exports:{}},ta={exports:{}},Ie={};/** @license React v16.13.1
62
+ `)},g2=0,io=[];function v2(e){var t=z.useRef([]),r=z.useRef([0,0]),n=z.useRef(),o=z.useState(g2++)[0],a=z.useState(xy)[0],l=z.useRef(e);z.useEffect(function(){l.current=e},[e]),z.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=ql([e.lockRef.current],(e.shards||[]).map(fm),!0).filter(Boolean);return v.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=z.useCallback(function(v,b){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!l.current.allowPinchZoom;var m=Js(v),w=r.current,x="deltaX"in v?v.deltaX:w[0]-m[0],k="deltaY"in v?v.deltaY:w[1]-m[1],E,R=v.target,F=Math.abs(x)>Math.abs(k)?"h":"v";if("touches"in v&&F==="h"&&R.type==="range")return!1;var A=cm(F,R);if(!A)return!0;if(A?E=F:(E=F==="v"?"h":"v",A=cm(F,R)),!A)return!1;if(!n.current&&"changedTouches"in v&&(x||k)&&(n.current=E),!E)return!0;var N=n.current||E;return d2(N,b,v,N==="h"?x:k)},[]),u=z.useCallback(function(v){var b=v;if(!(!io.length||io[io.length-1]!==a)){var m="deltaY"in b?um(b):Js(b),w=t.current.filter(function(E){return E.name===b.type&&(E.target===b.target||b.target===E.shadowParent)&&p2(E.delta,m)})[0];if(w&&w.should){b.cancelable&&b.preventDefault();return}if(!w){var x=(l.current.shards||[]).map(fm).filter(Boolean).filter(function(E){return E.contains(b.target)}),k=x.length>0?c(b,x[0]):!l.current.noIsolation;k&&b.cancelable&&b.preventDefault()}}},[]),d=z.useCallback(function(v,b,m,w){var x={name:v,delta:b,target:m,should:w,shadowParent:m2(m)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(k){return k!==x})},1)},[]),p=z.useCallback(function(v){r.current=Js(v),n.current=void 0},[]),h=z.useCallback(function(v){d(v.type,um(v),v.target,c(v,e.lockRef.current))},[]),g=z.useCallback(function(v){d(v.type,Js(v),v.target,c(v,e.lockRef.current))},[]);z.useEffect(function(){return io.push(a),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:g}),document.addEventListener("wheel",u,no),document.addEventListener("touchmove",u,no),document.addEventListener("touchstart",p,no),function(){io=io.filter(function(v){return v!==a}),document.removeEventListener("wheel",u,no),document.removeEventListener("touchmove",u,no),document.removeEventListener("touchstart",p,no)}},[]);var y=e.removeScrollBar,S=e.inert;return z.createElement(z.Fragment,null,S?z.createElement(a,{styles:h2(o)}):null,y?z.createElement(o2,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function m2(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const b2=qI(wy,v2);var ky=z.forwardRef(function(e,t){return z.createElement(vc,nn({},e,{ref:t,sideCar:b2}))});ky.classNames=vc.classNames;const y2=globalThis!=null&&globalThis.document?z.useLayoutEffect:()=>{},w2=z.useId||(()=>{});let x2=0;function Oy(e){const[t,r]=z.useState(w2());return y2((()=>{r((n=>n??String(x2++)))}),[e]),e||(t?`radix-${t}`:"")}function Ay(...e){return t=>e.forEach((r=>(function(n,o){typeof n=="function"?n(o):n!=null&&(n.current=o)})(r,t)))}function ni(...e){return z.useCallback(Ay(...e),e)}const Ty=z.forwardRef(((e,t)=>{const{children:r,...n}=e;return z.Children.toArray(r).some(dm)?z.createElement(z.Fragment,null,z.Children.map(r,(o=>dm(o)?z.createElement(rd,pt({},n,{ref:t}),o.props.children):o))):z.createElement(rd,pt({},n,{ref:t}),r)}));Ty.displayName="Slot";const rd=z.forwardRef(((e,t)=>{const{children:r,...n}=e;return z.isValidElement(r)?z.cloneElement(r,{...S2(n,r.props),ref:Ay(t,r.ref)}):z.Children.count(r)>1?z.Children.only(null):null}));rd.displayName="SlotClone";const Ry=({children:e})=>z.createElement(z.Fragment,null,e);function dm(e){return z.isValidElement(e)&&e.type===Ry}function S2(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?r[n]=(...l)=>{a==null||a(...l),o==null||o(...l)}:n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}const ii=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>({...e,[t]:z.forwardRef(((r,n)=>{const{asChild:o,...a}=r,l=o?Ty:t;return z.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),z.createElement(l,pt({},a,{ref:n}))}))})),{}),pm=globalThis!=null&&globalThis.document?z.useLayoutEffect:()=>{},zd=e=>{const{present:t,children:r}=e,n=(function(l){const[c,u]=z.useState(),d=z.useRef({}),p=z.useRef(l),h=z.useRef("none"),g=l?"mounted":"unmounted",[y,S]=(function(v,b){return z.useReducer(((m,w)=>{const x=b[m][w];return x??m}),v)})(g,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return z.useEffect((()=>{const v=Qs(d.current);h.current=y==="mounted"?v:"none"}),[y]),pm((()=>{const v=d.current,b=p.current;if(b!==l){const m=h.current,w=Qs(v);l?S("MOUNT"):w==="none"||(v==null?void 0:v.display)==="none"?S("UNMOUNT"):S(b&&m!==w?"ANIMATION_OUT":"UNMOUNT"),p.current=l}}),[l,S]),pm((()=>{if(c){const v=m=>{const w=Qs(d.current).includes(m.animationName);m.target===c&&w&&S("ANIMATION_END")},b=m=>{m.target===c&&(h.current=Qs(d.current))};return c.addEventListener("animationstart",b),c.addEventListener("animationcancel",v),c.addEventListener("animationend",v),()=>{c.removeEventListener("animationstart",b),c.removeEventListener("animationcancel",v),c.removeEventListener("animationend",v)}}S("ANIMATION_END")}),[c,S]),{isPresent:["mounted","unmountSuspended"].includes(y),ref:z.useCallback((v=>{v&&(d.current=getComputedStyle(v)),u(v)}),[])}})(t),o=typeof r=="function"?r({present:n.isPresent}):z.Children.only(r),a=ni(n.ref,o.ref);return typeof r=="function"||n.isPresent?z.cloneElement(o,{ref:a}):null};function Qs(e){return(e==null?void 0:e.animationName)||"none"}zd.displayName="Presence";let uf=0;function _2(){z.useEffect((()=>{var e,t;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:hm()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:hm()),uf++,()=>{uf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach((n=>n.remove())),uf--}}),[])}function hm(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const E2=globalThis!=null&&globalThis.document?z.useLayoutEffect:()=>{},jd=z.forwardRef(((e,t)=>{var r,n;const{containerRef:o,style:a,...l}=e,c=(r=o==null?void 0:o.current)!==null&&r!==void 0?r:globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,[,u]=z.useState({});return E2((()=>{u({})}),[]),c?ti.createPortal(z.createElement(ii.div,pt({"data-radix-portal":""},l,{ref:t,style:c===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...a}:void 0})),c):null}));function Ni(e){const t=z.useRef(e);return z.useEffect((()=>{t.current=e})),z.useMemo((()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)}),[])}const gm={bubbles:!1,cancelable:!0},k2=z.forwardRef(((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...l}=e,[c,u]=z.useState(null),d=Ni(o),p=Ni(a),h=z.useRef(null),g=ni(t,(v=>u(v))),y=z.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;z.useEffect((()=>{if(n){let v=function(m){if(y.paused||!c)return;const w=m.target;c.contains(w)?h.current=w:wi(h.current,{select:!0})},b=function(m){!y.paused&&c&&(c.contains(m.relatedTarget)||wi(h.current,{select:!0}))};return document.addEventListener("focusin",v),document.addEventListener("focusout",b),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",b)}}}),[n,c,y.paused]),z.useEffect((()=>{if(c){bm.add(y);const b=document.activeElement;if(!c.contains(b)){const m=new Event("focusScope.autoFocusOnMount",gm);c.addEventListener("focusScope.autoFocusOnMount",d),c.dispatchEvent(m),m.defaultPrevented||((function(w,{select:x=!1}={}){const k=document.activeElement;for(const E of w)if(wi(E,{select:x}),document.activeElement!==k)return})((v=vm(c),v.filter((w=>w.tagName!=="A"))),{select:!0}),document.activeElement===b&&wi(c))}return()=>{c.removeEventListener("focusScope.autoFocusOnMount",d),setTimeout((()=>{const m=new Event("focusScope.autoFocusOnUnmount",gm);c.addEventListener("focusScope.autoFocusOnUnmount",p),c.dispatchEvent(m),m.defaultPrevented||wi(b??document.body,{select:!0}),c.removeEventListener("focusScope.autoFocusOnUnmount",p),bm.remove(y)}),0)}}var v}),[c,d,p,y]);const S=z.useCallback((v=>{if(!r&&!n||y.paused)return;const b=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,m=document.activeElement;if(b&&m){const w=v.currentTarget,[x,k]=(function(E){const R=vm(E),F=mm(R,E),A=mm(R.reverse(),E);return[F,A]})(w);x&&k?v.shiftKey||m!==k?v.shiftKey&&m===x&&(v.preventDefault(),r&&wi(k,{select:!0})):(v.preventDefault(),r&&wi(x,{select:!0})):m===w&&v.preventDefault()}}),[r,n,y.paused]);return z.createElement(ii.div,pt({tabIndex:-1},l,{ref:g,onKeyDown:S}))}));function vm(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function mm(e,t){for(const r of e)if(!O2(r,{upTo:t}))return r}function O2(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function wi(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(function(n){return n instanceof HTMLInputElement&&"select"in n})(e)&&t&&e.select()}}const bm=(function(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=ym(e,t),e.unshift(t)},remove(t){var r;e=ym(e,t),(r=e[0])===null||r===void 0||r.resume()}}})();function ym(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Cy(e){const t=Ni(e);z.useEffect((()=>{const r=n=>{n.key==="Escape"&&t(n)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)}),[t])}const A2=globalThis!=null&&globalThis.document?z.useLayoutEffect:()=>{};let wm,el=0;function T2({disabled:e}){const t=z.useRef(!1);A2((()=>{if(e){let r=function(){el--,el===0&&(document.body.style.pointerEvents=wm)},n=function(o){t.current=o.pointerType!=="mouse"};return el===0&&(wm=document.body.style.pointerEvents),document.body.style.pointerEvents="none",el++,document.addEventListener("pointerup",n),()=>{t.current?document.addEventListener("click",r,{once:!0}):r(),document.removeEventListener("pointerup",n)}}}),[e])}function dr(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e==null||e(n),r===!1||!n.defaultPrevented)return t==null?void 0:t(n)}}const R2=z.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),C2=z.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:l,onDismiss:c,...u}=e,d=z.useContext(R2),[p,h]=z.useState(null),[,g]=z.useState({}),y=ni(t,(R=>h(R))),S=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=S.indexOf(v),m=p?S.indexOf(p):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,x=m>=b,k=(function(R){const F=Ni(R),A=z.useRef(!1);return z.useEffect((()=>{const N=$=>{$.target&&!A.current&&Sm("dismissableLayer.pointerDownOutside",F,{originalEvent:$}),A.current=!1},V=window.setTimeout((()=>{document.addEventListener("pointerdown",N)}),0);return()=>{window.clearTimeout(V),document.removeEventListener("pointerdown",N)}}),[F]),{onPointerDownCapture:()=>A.current=!0}})((R=>{const F=R.target,A=[...d.branches].some((N=>N.contains(F)));x&&!A&&(o==null||o(R),l==null||l(R),R.defaultPrevented||c==null||c())})),E=(function(R){const F=Ni(R),A=z.useRef(!1);return z.useEffect((()=>{const N=V=>{V.target&&!A.current&&Sm("dismissableLayer.focusOutside",F,{originalEvent:V})};return document.addEventListener("focusin",N),()=>document.removeEventListener("focusin",N)}),[F]),{onFocusCapture:()=>A.current=!0,onBlurCapture:()=>A.current=!1}})((R=>{const F=R.target;[...d.branches].some((A=>A.contains(F)))||(a==null||a(R),l==null||l(R),R.defaultPrevented||c==null||c())}));return Cy((R=>{m===d.layers.size-1&&(n==null||n(R),R.defaultPrevented||c==null||c())})),T2({disabled:r}),z.useEffect((()=>{p&&(r&&d.layersWithOutsidePointerEventsDisabled.add(p),d.layers.add(p),xm())}),[p,r,d]),z.useEffect((()=>()=>{p&&(d.layers.delete(p),d.layersWithOutsidePointerEventsDisabled.delete(p),xm())}),[p,d]),z.useEffect((()=>{const R=()=>g({});return document.addEventListener("dismissableLayer.update",R),()=>document.removeEventListener("dismissableLayer.update",R)}),[]),z.createElement(ii.div,pt({},u,{ref:y,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:dr(e.onFocusCapture,E.onFocusCapture),onBlurCapture:dr(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:dr(e.onPointerDownCapture,k.onPointerDownCapture)}))}));function xm(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function Sm(e,t,r){const n=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});return t&&n.addEventListener(e,t,{once:!0}),!n.dispatchEvent(o)}function _m(e){const[t,r]=z.useState(void 0);return z.useEffect((()=>{if(e){const n=new ResizeObserver((o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let l,c;if("borderBoxSize"in a){const u=a.borderBoxSize,d=Array.isArray(u)?u[0]:u;l=d.inlineSize,c=d.blockSize}else{const u=e.getBoundingClientRect();l=u.width,c=u.height}r({width:l,height:c})}));return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}r(void 0)}),[e]),t}function P2(e,t){const r=Si.get(e);return r===void 0?(Si.set(e,{rect:{},callbacks:[t]}),Si.size===1&&(nd=requestAnimationFrame(Py))):(r.callbacks.push(t),t(e.getBoundingClientRect())),()=>{const n=Si.get(e);if(n===void 0)return;const o=n.callbacks.indexOf(t);o>-1&&n.callbacks.splice(o,1),n.callbacks.length===0&&(Si.delete(e),Si.size===0&&cancelAnimationFrame(nd))}}let nd;const Si=new Map;function Py(){const e=[];Si.forEach(((t,r)=>{const n=r.getBoundingClientRect();var o,a;o=t.rect,a=n,(o.width!==a.width||o.height!==a.height||o.top!==a.top||o.right!==a.right||o.bottom!==a.bottom||o.left!==a.left)&&(t.rect=n,e.push(t))})),e.forEach((t=>{t.callbacks.forEach((r=>r(t.rect)))})),nd=requestAnimationFrame(Py)}function Iy(e){const[t,r]=z.useState();return z.useEffect((()=>{if(e){const n=P2(e,r);return()=>{r(void 0),n()}}}),[e]),t}function Fd(e,t=[]){let r=[];const n=()=>{const o=r.map((a=>z.createContext(a)));return function(a){const l=(a==null?void 0:a[e])||o;return z.useMemo((()=>({[`__scope${e}`]:{...a,[e]:l}})),[a,l])}};return n.scopeName=e,[function(o,a){const l=z.createContext(a),c=r.length;function u(d){const{scope:p,children:h,...g}=d,y=(p==null?void 0:p[e][c])||l,S=z.useMemo((()=>g),Object.values(g));return z.createElement(y.Provider,{value:S},h)}return r=[...r,a],u.displayName=o+"Provider",[u,function(d,p){const h=(p==null?void 0:p[e][c])||l,g=z.useContext(h);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${o}\``)}]},I2(n,...t)]}function I2(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map((o=>({useScope:o(),scopeName:o.scopeName})));return function(o){const a=n.reduce(((l,{useScope:c,scopeName:u})=>({...l,...c(o)[`__scope${u}`]})),{});return z.useMemo((()=>({[`__scope${t.scopeName}`]:a})),[a])}};return r.scopeName=t.scopeName,r}function N2({anchorRect:e,popperSize:t,arrowSize:r,arrowOffset:n=0,side:o,sideOffset:a=0,align:l,alignOffset:c=0,shouldAvoidCollisions:u=!0,collisionBoundariesRect:d,collisionTolerance:p=0}){if(!e||!t||!d)return{popperStyles:M2,arrowStyles:ff};const h=(function(F,A,N=0,V=0,$){const M=$?$.height:0,B=Em(A,F,"x"),j=Em(A,F,"y"),I=j.before-N-M,Y=j.after+N+M,X=B.before-N-M,K=B.after+N+M;return{top:{start:{x:B.start+V,y:I},center:{x:B.center,y:I},end:{x:B.end-V,y:I}},right:{start:{x:K,y:j.start+V},center:{x:K,y:j.center},end:{x:K,y:j.end-V}},bottom:{start:{x:B.start+V,y:Y},center:{x:B.center,y:Y},end:{x:B.end-V,y:Y}},left:{start:{x:X,y:j.start+V},center:{x:X,y:j.center},end:{x:X,y:j.end-V}}}})(t,e,a,c,r),g=h[o][l];if(u===!1){const F=km(g);let A=ff;return r&&(A=Am({popperSize:t,arrowSize:r,arrowOffset:n,side:o,align:l})),{popperStyles:{...F,"--radix-popper-transform-origin":Om(t,o,l,n,r)},arrowStyles:A,placedSide:o,placedAlign:l}}const y=DOMRect.fromRect({...t,...g}),S=(v=d,b=p,DOMRect.fromRect({width:v.width-2*b,height:v.height-2*b,x:v.left+b,y:v.top+b}));var v,b;const m=Rm(y,S),w=h[Tm(o)][l],x=(function(F,A,N){const V=Tm(F);return A[F]&&!N[V]?V:F})(o,m,Rm(DOMRect.fromRect({...t,...w}),S)),k=(function(F,A,N,V,$){const M=N==="top"||N==="bottom",B=M?"left":"top",j=M?"right":"bottom",I=M?"width":"height",Y=A[I]>F[I];return(V==="start"||V==="center")&&($[B]&&Y||$[j]&&!Y)?"end":(V==="end"||V==="center")&&($[j]&&Y||$[B]&&!Y)?"start":V})(t,e,o,l,m),E=km(h[x][k]);let R=ff;return r&&(R=Am({popperSize:t,arrowSize:r,arrowOffset:n,side:x,align:k})),{popperStyles:{...E,"--radix-popper-transform-origin":Om(t,x,k,n,r)},arrowStyles:R,placedSide:x,placedAlign:k}}function Em(e,t,r){const n=e[r==="x"?"left":"top"],o=r==="x"?"width":"height",a=e[o],l=t[o];return{before:n-l,start:n,center:n+(a-l)/2,end:n+a-l,after:n+a}}function km(e){return{position:"absolute",top:0,left:0,minWidth:"max-content",willChange:"transform",transform:`translate3d(${Math.round(e.x+window.scrollX)}px, ${Math.round(e.y+window.scrollY)}px, 0)`}}function Om(e,t,r,n,o){const a=t==="top"||t==="bottom",l=o?o.width:0,c=o?o.height:0,u=l/2+n;let d="",p="";return a?(d={start:`${u}px`,center:"center",end:e.width-u+"px"}[r],p=t==="top"?`${e.height+c}px`:-c+"px"):(d=t==="left"?`${e.width+c}px`:-c+"px",p={start:`${u}px`,center:"center",end:e.height-u+"px"}[r]),`${d} ${p}`}const M2={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},ff={position:"absolute",opacity:0};function Am({popperSize:e,arrowSize:t,arrowOffset:r,side:n,align:o}){const a=(e.width-t.width)/2,l=(e.height-t.width)/2,c={top:0,right:90,bottom:180,left:-90}[n],u=Math.max(t.width,t.height),d={width:`${u}px`,height:`${u}px`,transform:`rotate(${c}deg)`,willChange:"transform",position:"absolute",[n]:"100%",direction:D2(n,o)};return n!=="top"&&n!=="bottom"||(o==="start"&&(d.left=`${r}px`),o==="center"&&(d.left=`${a}px`),o==="end"&&(d.right=`${r}px`)),n!=="left"&&n!=="right"||(o==="start"&&(d.top=`${r}px`),o==="center"&&(d.top=`${l}px`),o==="end"&&(d.bottom=`${r}px`)),d}function D2(e,t){return(e!=="top"&&e!=="right"||t!=="end")&&(e!=="bottom"&&e!=="left"||t==="end")?"ltr":"rtl"}function Tm(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function Rm(e,t){return{top:e.top<t.top,right:e.right>t.right,bottom:e.bottom>t.bottom,left:e.left<t.left}}const[Ny,mc]=Fd("Popper"),[$2,My]=Ny("Popper"),L2=e=>{const{__scopePopper:t,children:r}=e,[n,o]=z.useState(null);return z.createElement($2,{scope:t,anchor:n,onAnchorChange:o},r)},z2=z.forwardRef(((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=My("PopperAnchor",r),l=z.useRef(null),c=ni(t,l);return z.useEffect((()=>{a.onAnchorChange((n==null?void 0:n.current)||l.current)})),n?null:z.createElement(ii.div,pt({},o,{ref:c}))})),[j2,YF]=Ny("PopperContent"),F2=z.forwardRef(((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:o,align:a="center",alignOffset:l,collisionTolerance:c,avoidCollisions:u=!0,...d}=e,p=My("PopperContent",r),[h,g]=z.useState(),y=Iy(p.anchor),[S,v]=z.useState(null),b=_m(S),[m,w]=z.useState(null),x=_m(m),k=ni(t,(M=>v(M))),E=(function(){const[M,B]=z.useState(void 0);return z.useEffect((()=>{let j;function I(){B({width:window.innerWidth,height:window.innerHeight})}function Y(){window.clearTimeout(j),j=window.setTimeout(I,100)}return I(),window.addEventListener("resize",Y),()=>window.removeEventListener("resize",Y)}),[]),M})(),R=E?DOMRect.fromRect({...E,x:0,y:0}):void 0,{popperStyles:F,arrowStyles:A,placedSide:N,placedAlign:V}=N2({anchorRect:y,popperSize:b,arrowSize:x,arrowOffset:h,side:n,sideOffset:o,align:a,alignOffset:l,shouldAvoidCollisions:u,collisionBoundariesRect:R,collisionTolerance:c}),$=N!==void 0;return z.createElement("div",{style:F,"data-radix-popper-content-wrapper":""},z.createElement(j2,{scope:r,arrowStyles:A,onArrowChange:w,onArrowOffsetChange:g},z.createElement(ii.div,pt({"data-side":N,"data-align":V},d,{style:{...d.style,animation:$?void 0:"none"},ref:k}))))})),Dy=L2,$y=z2,Ly=F2;function zy({prop:e,defaultProp:t,onChange:r=(()=>{})}){const[n,o]=(function({defaultProp:u,onChange:d}){const p=z.useState(u),[h]=p,g=z.useRef(h),y=Ni(d);return z.useEffect((()=>{g.current!==h&&(y(h),g.current=h)}),[h,g,y]),p})({defaultProp:t,onChange:r}),a=e!==void 0,l=a?e:n,c=Ni(r);return[l,z.useCallback((u=>{if(a){const d=u,p=typeof u=="function"?d(e):u;p!==e&&c(p)}else o(u)}),[a,e,o,c])]}const[H2]=Fd("Popover",[mc]),Hd=mc(),[W2,Ya]=H2("Popover"),B2=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:l=!1}=e,c=Hd(t),u=z.useRef(null),[d,p]=z.useState(!1),[h=!1,g]=zy({prop:n,defaultProp:o,onChange:a});return z.createElement(Dy,c,z.createElement(W2,{scope:t,contentId:Oy(),triggerRef:u,open:h,onOpenChange:g,onOpenToggle:z.useCallback((()=>g((y=>!y))),[g]),hasCustomAnchor:d,onCustomAnchorAdd:z.useCallback((()=>p(!0)),[]),onCustomAnchorRemove:z.useCallback((()=>p(!1)),[]),modal:l},r))},V2=z.forwardRef(((e,t)=>{const{__scopePopover:r,...n}=e,o=Ya("PopoverTrigger",r),a=Hd(r),l=ni(t,o.triggerRef),c=z.createElement(ii.button,pt({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Fy(o.open)},n,{ref:l,onClick:dr(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?c:z.createElement($y,pt({asChild:!0},a),c)})),U2=z.forwardRef(((e,t)=>{const{forceMount:r,...n}=e,o=Ya("PopoverContent",e.__scopePopover);return z.createElement(zd,{present:r||o.open},o.modal?z.createElement(q2,pt({},n,{ref:t})):z.createElement(G2,pt({},n,{ref:t})))})),q2=z.forwardRef(((e,t)=>{const{allowPinchZoom:r,portalled:n=!0,...o}=e,a=Ya("PopoverContent",e.__scopePopover),l=z.useRef(null),c=ni(t,l),u=z.useRef(!1);z.useEffect((()=>{const p=l.current;if(p)return LI(p)}),[]);const d=n?jd:z.Fragment;return z.createElement(d,null,z.createElement(ky,{allowPinchZoom:r},z.createElement(jy,pt({},o,{ref:c,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:dr(e.onCloseAutoFocus,(p=>{var h;p.preventDefault(),u.current||(h=a.triggerRef.current)===null||h===void 0||h.focus()})),onPointerDownOutside:dr(e.onPointerDownOutside,(p=>{const h=p.detail.originalEvent,g=h.button===0&&h.ctrlKey===!0,y=h.button===2||g;u.current=y}),{checkForDefaultPrevented:!1}),onFocusOutside:dr(e.onFocusOutside,(p=>p.preventDefault()),{checkForDefaultPrevented:!1})}))))})),G2=z.forwardRef(((e,t)=>{const{portalled:r=!0,...n}=e,o=Ya("PopoverContent",e.__scopePopover),a=z.useRef(!1),l=r?jd:z.Fragment;return z.createElement(l,null,z.createElement(jy,pt({},n,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var u,d;(u=e.onCloseAutoFocus)===null||u===void 0||u.call(e,c),c.defaultPrevented||(a.current||(d=o.triggerRef.current)===null||d===void 0||d.focus(),c.preventDefault()),a.current=!1},onInteractOutside:c=>{var u,d;(u=e.onInteractOutside)===null||u===void 0||u.call(e,c),c.defaultPrevented||(a.current=!0);const p=c.target;!((d=o.triggerRef.current)===null||d===void 0)&&d.contains(p)&&c.preventDefault()}})))})),jy=z.forwardRef(((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:p,...h}=e,g=Ya("PopoverContent",r),y=Hd(r);return _2(),z.createElement(k2,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a},z.createElement(C2,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:p,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onDismiss:()=>g.onOpenChange(!1)},z.createElement(Ly,pt({"data-state":Fy(g.open),role:"dialog",id:g.contentId},y,h,{ref:t,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))}));function Fy(e){return e?"open":"closed"}const Y2=B2,K2=V2,Z2=U2;var Pl=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(Pl||{}),df={},ia={},tl={},rl={},nl={exports:{}},il={exports:{}},Be={};/** @license React v16.13.1
63
63
  * react-is.production.min.js
64
64
  *
65
65
  * Copyright (c) Facebook, Inc. and its affiliates.
66
66
  *
67
67
  * This source code is licensed under the MIT license found in the
68
68
  * LICENSE file in the root directory of this source tree.
69
- */var jg;function QP(){if(jg)return Ie;jg=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,c=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,g=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,v=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,d=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function E(O){if(typeof O=="object"&&O!==null){var k=O.$$typeof;switch(k){case t:switch(O=O.type,O){case f:case g:case i:case a:case s:case v:return O;default:switch(O=O&&O.$$typeof,O){case c:case h:case x:case y:case u:return O;default:return k}}case r:return k}}}function R(O){return E(O)===g}return Ie.AsyncMode=f,Ie.ConcurrentMode=g,Ie.ContextConsumer=c,Ie.ContextProvider=u,Ie.Element=t,Ie.ForwardRef=h,Ie.Fragment=i,Ie.Lazy=x,Ie.Memo=y,Ie.Portal=r,Ie.Profiler=a,Ie.StrictMode=s,Ie.Suspense=v,Ie.isAsyncMode=function(O){return R(O)||E(O)===f},Ie.isConcurrentMode=R,Ie.isContextConsumer=function(O){return E(O)===c},Ie.isContextProvider=function(O){return E(O)===u},Ie.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===t},Ie.isForwardRef=function(O){return E(O)===h},Ie.isFragment=function(O){return E(O)===i},Ie.isLazy=function(O){return E(O)===x},Ie.isMemo=function(O){return E(O)===y},Ie.isPortal=function(O){return E(O)===r},Ie.isProfiler=function(O){return E(O)===a},Ie.isStrictMode=function(O){return E(O)===s},Ie.isSuspense=function(O){return E(O)===v},Ie.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===i||O===g||O===a||O===s||O===v||O===p||typeof O=="object"&&O!==null&&(O.$$typeof===x||O.$$typeof===y||O.$$typeof===u||O.$$typeof===c||O.$$typeof===h||O.$$typeof===b||O.$$typeof===m||O.$$typeof===S||O.$$typeof===d)},Ie.typeOf=E,Ie}var Le={};/** @license React v16.13.1
69
+ */var Cm;function X2(){if(Cm)return Be;Cm=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(E){if(typeof E=="object"&&E!==null){var R=E.$$typeof;switch(R){case t:switch(E=E.type,E){case u:case d:case n:case a:case o:case h:return E;default:switch(E=E&&E.$$typeof,E){case c:case p:case S:case y:case l:return E;default:return R}}case r:return R}}}function k(E){return x(E)===d}return Be.AsyncMode=u,Be.ConcurrentMode=d,Be.ContextConsumer=c,Be.ContextProvider=l,Be.Element=t,Be.ForwardRef=p,Be.Fragment=n,Be.Lazy=S,Be.Memo=y,Be.Portal=r,Be.Profiler=a,Be.StrictMode=o,Be.Suspense=h,Be.isAsyncMode=function(E){return k(E)||x(E)===u},Be.isConcurrentMode=k,Be.isContextConsumer=function(E){return x(E)===c},Be.isContextProvider=function(E){return x(E)===l},Be.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===t},Be.isForwardRef=function(E){return x(E)===p},Be.isFragment=function(E){return x(E)===n},Be.isLazy=function(E){return x(E)===S},Be.isMemo=function(E){return x(E)===y},Be.isPortal=function(E){return x(E)===r},Be.isProfiler=function(E){return x(E)===a},Be.isStrictMode=function(E){return x(E)===o},Be.isSuspense=function(E){return x(E)===h},Be.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===n||E===d||E===a||E===o||E===h||E===g||typeof E=="object"&&E!==null&&(E.$$typeof===S||E.$$typeof===y||E.$$typeof===l||E.$$typeof===c||E.$$typeof===p||E.$$typeof===b||E.$$typeof===m||E.$$typeof===w||E.$$typeof===v)},Be.typeOf=x,Be}var Ve={};/** @license React v16.13.1
70
70
  * react-is.development.js
71
71
  *
72
72
  * Copyright (c) Facebook, Inc. and its affiliates.
73
73
  *
74
74
  * This source code is licensed under the MIT license found in the
75
75
  * LICENSE file in the root directory of this source tree.
76
- */var zg;function eC(){return zg||(zg=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,c=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,g=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,v=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,d=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function E(ie){return typeof ie=="string"||typeof ie=="function"||ie===i||ie===g||ie===a||ie===s||ie===v||ie===p||typeof ie=="object"&&ie!==null&&(ie.$$typeof===x||ie.$$typeof===y||ie.$$typeof===u||ie.$$typeof===c||ie.$$typeof===h||ie.$$typeof===b||ie.$$typeof===m||ie.$$typeof===S||ie.$$typeof===d)}function R(ie){if(typeof ie=="object"&&ie!==null){var wt=ie.$$typeof;switch(wt){case t:var ft=ie.type;switch(ft){case f:case g:case i:case a:case s:case v:return ft;default:var wr=ft&&ft.$$typeof;switch(wr){case c:case h:case x:case y:case u:return wr;default:return wt}}case r:return wt}}}var O=f,k=g,W=c,M=u,F=t,G=h,j=i,L=x,H=y,q=r,C=a,J=s,Y=v,te=!1;function de(ie){return te||(te=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Z(ie)||R(ie)===f}function Z(ie){return R(ie)===g}function Q(ie){return R(ie)===c}function se(ie){return R(ie)===u}function ue(ie){return typeof ie=="object"&&ie!==null&&ie.$$typeof===t}function ne(ie){return R(ie)===h}function ce(ie){return R(ie)===i}function fe(ie){return R(ie)===x}function ye(ie){return R(ie)===y}function me(ie){return R(ie)===r}function Ee(ie){return R(ie)===a}function Te(ie){return R(ie)===s}function Ve(ie){return R(ie)===v}Le.AsyncMode=O,Le.ConcurrentMode=k,Le.ContextConsumer=W,Le.ContextProvider=M,Le.Element=F,Le.ForwardRef=G,Le.Fragment=j,Le.Lazy=L,Le.Memo=H,Le.Portal=q,Le.Profiler=C,Le.StrictMode=J,Le.Suspense=Y,Le.isAsyncMode=de,Le.isConcurrentMode=Z,Le.isContextConsumer=Q,Le.isContextProvider=se,Le.isElement=ue,Le.isForwardRef=ne,Le.isFragment=ce,Le.isLazy=fe,Le.isMemo=ye,Le.isPortal=me,Le.isProfiler=Ee,Le.isStrictMode=Te,Le.isSuspense=Ve,Le.isValidElementType=E,Le.typeOf=R})()),Le}var Bg;function ty(){return Bg||(Bg=1,process.env.NODE_ENV==="production"?ta.exports=QP():ta.exports=eC()),ta.exports}/*
76
+ */var Pm;function J2(){return Pm||(Pm=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(Z){return typeof Z=="string"||typeof Z=="function"||Z===n||Z===d||Z===a||Z===o||Z===h||Z===g||typeof Z=="object"&&Z!==null&&(Z.$$typeof===S||Z.$$typeof===y||Z.$$typeof===l||Z.$$typeof===c||Z.$$typeof===p||Z.$$typeof===b||Z.$$typeof===m||Z.$$typeof===w||Z.$$typeof===v)}function k(Z){if(typeof Z=="object"&&Z!==null){var Pe=Z.$$typeof;switch(Pe){case t:var ge=Z.type;switch(ge){case u:case d:case n:case a:case o:case h:return ge;default:var Et=ge&&ge.$$typeof;switch(Et){case c:case p:case S:case y:case l:return Et;default:return Pe}}case r:return Pe}}}var E=u,R=d,F=c,A=l,N=t,V=p,$=n,M=S,B=y,j=r,I=a,Y=o,X=h,K=!1;function me(Z){return K||(K=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(Z)||k(Z)===u}function L(Z){return k(Z)===d}function U(Z){return k(Z)===c}function te(Z){return k(Z)===l}function ee(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===t}function J(Z){return k(Z)===p}function ae(Z){return k(Z)===n}function se(Z){return k(Z)===S}function ne(Z){return k(Z)===y}function ce(Z){return k(Z)===r}function he(Z){return k(Z)===a}function pe(Z){return k(Z)===o}function Se(Z){return k(Z)===h}Ve.AsyncMode=E,Ve.ConcurrentMode=R,Ve.ContextConsumer=F,Ve.ContextProvider=A,Ve.Element=N,Ve.ForwardRef=V,Ve.Fragment=$,Ve.Lazy=M,Ve.Memo=B,Ve.Portal=j,Ve.Profiler=I,Ve.StrictMode=Y,Ve.Suspense=X,Ve.isAsyncMode=me,Ve.isConcurrentMode=L,Ve.isContextConsumer=U,Ve.isContextProvider=te,Ve.isElement=ee,Ve.isForwardRef=J,Ve.isFragment=ae,Ve.isLazy=se,Ve.isMemo=ne,Ve.isPortal=ce,Ve.isProfiler=he,Ve.isStrictMode=pe,Ve.isSuspense=Se,Ve.isValidElementType=x,Ve.typeOf=k})()),Ve}var Im;function Hy(){return Im||(Im=1,process.env.NODE_ENV==="production"?il.exports=X2():il.exports=J2()),il.exports}/*
77
77
  object-assign
78
78
  (c) Sindre Sorhus
79
79
  @license MIT
80
- */var ql,Wg;function tC(){if(Wg)return ql;Wg=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={},c=0;c<10;c++)u["_"+String.fromCharCode(c)]=c;var f=Object.getOwnPropertyNames(u).map(function(h){return u[h]});if(f.join("")!=="0123456789")return!1;var g={};return"abcdefghijklmnopqrst".split("").forEach(function(h){g[h]=h}),Object.keys(Object.assign({},g)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ql=s()?Object.assign:function(a,u){for(var c,f=i(a),g,h=1;h<arguments.length;h++){c=Object(arguments[h]);for(var v in c)t.call(c,v)&&(f[v]=c[v]);if(e){g=e(c);for(var p=0;p<g.length;p++)r.call(c,g[p])&&(f[g[p]]=c[g[p]])}}return f},ql}var Zl,Hg;function nf(){if(Hg)return Zl;Hg=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Zl=e,Zl}var Gl,Ug;function ry(){return Ug||(Ug=1,Gl=Function.call.bind(Object.prototype.hasOwnProperty)),Gl}var Kl,qg;function rC(){if(qg)return Kl;qg=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=nf(),r={},i=ry();e=function(a){var u="Warning: "+a;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}}}function s(a,u,c,f,g){if(process.env.NODE_ENV!=="production"){for(var h in a)if(i(a,h)){var v;try{if(typeof a[h]!="function"){var p=Error((f||"React class")+": "+c+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}v=a[h](u,h,f,c,null,t)}catch(x){v=x}if(v&&!(v instanceof Error)&&e((f||"React class")+": type specification of "+c+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof v+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),v instanceof Error&&!(v.message in r)){r[v.message]=!0;var y=g?g():"";e("Failed "+c+" type: "+v.message+(y??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Kl=s,Kl}var Vl,Zg;function nC(){if(Zg)return Vl;Zg=1;var e=ty(),t=tC(),r=nf(),i=ry(),s=rC(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(c){var f="Warning: "+c;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}});function u(){return null}return Vl=function(c,f){var g=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function v(Z){var Q=Z&&(g&&Z[g]||Z[h]);if(typeof Q=="function")return Q}var p="<<anonymous>>",y={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:S(),arrayOf:E,element:R(),elementType:O(),instanceOf:k,node:G(),objectOf:M,oneOf:W,oneOfType:F,shape:L,exact:H};function x(Z,Q){return Z===Q?Z!==0||1/Z===1/Q:Z!==Z&&Q!==Q}function d(Z,Q){this.message=Z,this.data=Q&&typeof Q=="object"?Q:{},this.stack=""}d.prototype=Error.prototype;function b(Z){if(process.env.NODE_ENV!=="production")var Q={},se=0;function ue(ce,fe,ye,me,Ee,Te,Ve){if(me=me||p,Te=Te||ye,Ve!==r){if(f){var ie=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw ie.name="Invariant Violation",ie}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var wt=me+":"+ye;!Q[wt]&&se<3&&(a("You are manually calling a React.PropTypes validation function for the `"+Te+"` prop on `"+me+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),Q[wt]=!0,se++)}}return fe[ye]==null?ce?fe[ye]===null?new d("The "+Ee+" `"+Te+"` is marked as required "+("in `"+me+"`, but its value is `null`.")):new d("The "+Ee+" `"+Te+"` is marked as required in "+("`"+me+"`, but its value is `undefined`.")):null:Z(fe,ye,me,Ee,Te)}var ne=ue.bind(null,!1);return ne.isRequired=ue.bind(null,!0),ne}function m(Z){function Q(se,ue,ne,ce,fe,ye){var me=se[ue],Ee=J(me);if(Ee!==Z){var Te=Y(me);return new d("Invalid "+ce+" `"+fe+"` of type "+("`"+Te+"` supplied to `"+ne+"`, expected ")+("`"+Z+"`."),{expectedType:Z})}return null}return b(Q)}function S(){return b(u)}function E(Z){function Q(se,ue,ne,ce,fe){if(typeof Z!="function")return new d("Property `"+fe+"` of component `"+ne+"` has invalid PropType notation inside arrayOf.");var ye=se[ue];if(!Array.isArray(ye)){var me=J(ye);return new d("Invalid "+ce+" `"+fe+"` of type "+("`"+me+"` supplied to `"+ne+"`, expected an array."))}for(var Ee=0;Ee<ye.length;Ee++){var Te=Z(ye,Ee,ne,ce,fe+"["+Ee+"]",r);if(Te instanceof Error)return Te}return null}return b(Q)}function R(){function Z(Q,se,ue,ne,ce){var fe=Q[se];if(!c(fe)){var ye=J(fe);return new d("Invalid "+ne+" `"+ce+"` of type "+("`"+ye+"` supplied to `"+ue+"`, expected a single ReactElement."))}return null}return b(Z)}function O(){function Z(Q,se,ue,ne,ce){var fe=Q[se];if(!e.isValidElementType(fe)){var ye=J(fe);return new d("Invalid "+ne+" `"+ce+"` of type "+("`"+ye+"` supplied to `"+ue+"`, expected a single ReactElement type."))}return null}return b(Z)}function k(Z){function Q(se,ue,ne,ce,fe){if(!(se[ue]instanceof Z)){var ye=Z.name||p,me=de(se[ue]);return new d("Invalid "+ce+" `"+fe+"` of type "+("`"+me+"` supplied to `"+ne+"`, expected ")+("instance of `"+ye+"`."))}return null}return b(Q)}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 Q(se,ue,ne,ce,fe){for(var ye=se[ue],me=0;me<Z.length;me++)if(x(ye,Z[me]))return null;var Ee=JSON.stringify(Z,function(Ve,ie){var wt=Y(ie);return wt==="symbol"?String(ie):ie});return new d("Invalid "+ce+" `"+fe+"` of value `"+String(ye)+"` "+("supplied to `"+ne+"`, expected one of "+Ee+"."))}return b(Q)}function M(Z){function Q(se,ue,ne,ce,fe){if(typeof Z!="function")return new d("Property `"+fe+"` of component `"+ne+"` has invalid PropType notation inside objectOf.");var ye=se[ue],me=J(ye);if(me!=="object")return new d("Invalid "+ce+" `"+fe+"` of type "+("`"+me+"` supplied to `"+ne+"`, expected an object."));for(var Ee in ye)if(i(ye,Ee)){var Te=Z(ye,Ee,ne,ce,fe+"."+Ee,r);if(Te instanceof Error)return Te}return null}return b(Q)}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 Q=0;Q<Z.length;Q++){var se=Z[Q];if(typeof se!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+te(se)+" at index "+Q+"."),u}function ue(ne,ce,fe,ye,me){for(var Ee=[],Te=0;Te<Z.length;Te++){var Ve=Z[Te],ie=Ve(ne,ce,fe,ye,me,r);if(ie==null)return null;ie.data&&i(ie.data,"expectedType")&&Ee.push(ie.data.expectedType)}var wt=Ee.length>0?", expected one of type ["+Ee.join(", ")+"]":"";return new d("Invalid "+ye+" `"+me+"` supplied to "+("`"+fe+"`"+wt+"."))}return b(ue)}function G(){function Z(Q,se,ue,ne,ce){return q(Q[se])?null:new d("Invalid "+ne+" `"+ce+"` supplied to "+("`"+ue+"`, expected a ReactNode."))}return b(Z)}function j(Z,Q,se,ue,ne){return new d((Z||"React class")+": "+Q+" type `"+se+"."+ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ne+"`.")}function L(Z){function Q(se,ue,ne,ce,fe){var ye=se[ue],me=J(ye);if(me!=="object")return new d("Invalid "+ce+" `"+fe+"` of type `"+me+"` "+("supplied to `"+ne+"`, expected `object`."));for(var Ee in Z){var Te=Z[Ee];if(typeof Te!="function")return j(ne,ce,fe,Ee,Y(Te));var Ve=Te(ye,Ee,ne,ce,fe+"."+Ee,r);if(Ve)return Ve}return null}return b(Q)}function H(Z){function Q(se,ue,ne,ce,fe){var ye=se[ue],me=J(ye);if(me!=="object")return new d("Invalid "+ce+" `"+fe+"` of type `"+me+"` "+("supplied to `"+ne+"`, expected `object`."));var Ee=t({},se[ue],Z);for(var Te in Ee){var Ve=Z[Te];if(i(Z,Te)&&typeof Ve!="function")return j(ne,ce,fe,Te,Y(Ve));if(!Ve)return new d("Invalid "+ce+" `"+fe+"` key `"+Te+"` supplied to `"+ne+"`.\nBad object: "+JSON.stringify(se[ue],null," ")+`
81
- Valid keys: `+JSON.stringify(Object.keys(Z),null," "));var ie=Ve(ye,Te,ne,ce,fe+"."+Te,r);if(ie)return ie}return null}return b(Q)}function q(Z){switch(typeof Z){case"number":case"string":case"undefined":return!0;case"boolean":return!Z;case"object":if(Array.isArray(Z))return Z.every(q);if(Z===null||c(Z))return!0;var Q=v(Z);if(Q){var se=Q.call(Z),ue;if(Q!==Z.entries){for(;!(ue=se.next()).done;)if(!q(ue.value))return!1}else for(;!(ue=se.next()).done;){var ne=ue.value;if(ne&&!q(ne[1]))return!1}}else return!1;return!0;default:return!1}}function C(Z,Q){return Z==="symbol"?!0:Q?Q["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Q instanceof Symbol:!1}function J(Z){var Q=typeof Z;return Array.isArray(Z)?"array":Z instanceof RegExp?"object":C(Q,Z)?"symbol":Q}function Y(Z){if(typeof Z>"u"||Z===null)return""+Z;var Q=J(Z);if(Q==="object"){if(Z instanceof Date)return"date";if(Z instanceof RegExp)return"regexp"}return Q}function te(Z){var Q=Y(Z);switch(Q){case"array":case"object":return"an "+Q;case"boolean":case"date":case"regexp":return"a "+Q;default:return Q}}function de(Z){return!Z.constructor||!Z.constructor.name?p:Z.constructor.name}return y.checkPropTypes=s,y.resetWarningCache=s.resetWarningCache,y.PropTypes=y,y},Vl}var Yl,Gg;function iC(){if(Gg)return Yl;Gg=1;var e=nf();function t(){}function r(){}return r.resetWarningCache=t,Yl=function(){function i(u,c,f,g,h,v){if(v!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}i.isRequired=i;function 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},Yl}var Kg;function oC(){if(Kg)return ea.exports;if(Kg=1,process.env.NODE_ENV!=="production"){var e=ty(),t=!0;ea.exports=nC()(e.isElement,t)}else ea.exports=iC()();return ea.exports}var Vg;function sC(){return Vg||(Vg=1,(function(e){(function(t,r){r(e,B,oC())})(Qs,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 c=Object.assign||function(S){for(var E=1;E<arguments.length;E++){var R=arguments[E];for(var O in R)Object.prototype.hasOwnProperty.call(R,O)&&(S[O]=R[O])}return S};function f(S,E){var R={};for(var O in S)E.indexOf(O)>=0||Object.prototype.hasOwnProperty.call(S,O)&&(R[O]=S[O]);return R}function g(S,E){if(!(S instanceof E))throw new TypeError("Cannot call a class as a function")}var h=(function(){function S(E,R){for(var O=0;O<R.length;O++){var k=R[O];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(E,k.key,k)}}return function(E,R,O){return R&&S(E.prototype,R),O&&S(E,O),E}})();function v(S,E){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:S}function p(S,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);S.prototype=Object.create(E&&E.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(S,E):S.__proto__=E)}var y=!1;function x(S){y=S}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){x(!0)}}))}catch{}function d(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return y?S:S.capture}function b(S){if("touches"in S){var E=S.touches[0],R=E.pageX,O=E.pageY;return{x:R,y:O}}var k=S.screenX,W=S.screenY;return{x:k,y:W}}var m=(function(S){p(E,S);function E(){var R;g(this,E);for(var O=arguments.length,k=Array(O),W=0;W<O;W++)k[W]=arguments[W];var M=v(this,(R=E.__proto__||Object.getPrototypeOf(E)).call.apply(R,[this].concat(k)));return M._handleSwipeStart=M._handleSwipeStart.bind(M),M._handleSwipeMove=M._handleSwipeMove.bind(M),M._handleSwipeEnd=M._handleSwipeEnd.bind(M),M._onMouseDown=M._onMouseDown.bind(M),M._onMouseMove=M._onMouseMove.bind(M),M._onMouseUp=M._onMouseUp.bind(M),M._setSwiperRef=M._setSwiperRef.bind(M),M}return h(E,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,d({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,d({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(O){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(O))}},{key:"_onMouseMove",value:function(O){this.mouseDown&&this._handleSwipeMove(O)}},{key:"_onMouseUp",value:function(O){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(O)}},{key:"_handleSwipeStart",value:function(O){var k=b(O),W=k.x,M=k.y;this.moveStart={x:W,y:M},this.props.onSwipeStart(O)}},{key:"_handleSwipeMove",value:function(O){if(this.moveStart){var k=b(O),W=k.x,M=k.y,F=W-this.moveStart.x,G=M-this.moveStart.y;this.moving=!0;var j=this.props.onSwipeMove({x:F,y:G},O);j&&O.cancelable&&O.preventDefault(),this.movePosition={deltaX:F,deltaY:G}}}},{key:"_handleSwipeEnd",value:function(O){this.props.onSwipeEnd(O);var k=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-k?this.props.onSwipeLeft(1,O):this.movePosition.deltaX>k&&this.props.onSwipeRight(1,O),this.movePosition.deltaY<-k?this.props.onSwipeUp(1,O):this.movePosition.deltaY>k&&this.props.onSwipeDown(1,O)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(O){this.swiper=O,this.props.innerRef(O)}},{key:"render",value:function(){var O=this.props;O.tagName;var k=O.className,W=O.style,M=O.children;O.allowMouseEvents,O.onSwipeUp,O.onSwipeDown,O.onSwipeLeft,O.onSwipeRight,O.onSwipeStart,O.onSwipeMove,O.onSwipeEnd,O.innerRef,O.tolerance;var F=f(O,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return s.default.createElement(this.props.tagName,c({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:k,style:W},F),M)}}]),E})(r.Component);m.displayName="ReactSwipe",m.propTypes={tagName:a.default.string,className:a.default.string,style:a.default.object,children:a.default.node,allowMouseEvents:a.default.bool,onSwipeUp:a.default.func,onSwipeDown:a.default.func,onSwipeLeft:a.default.func,onSwipeRight:a.default.func,onSwipeStart:a.default.func,onSwipeMove:a.default.func,onSwipeEnd:a.default.func,innerRef:a.default.func,tolerance:a.default.number.isRequired},m.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},t.default=m})})(Qs)),Qs}var Yg;function ny(){return Yg||(Yg=1,(function(e){(function(t,r){r(e,sC())})(Js,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})})(Js)),Js}var lo={},Xg;function iy(){if(Xg)return lo;Xg=1,Object.defineProperty(lo,"__esModule",{value:!0}),lo.default=void 0;var e=t(pv());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,c){return(0,e.default)({thumb:!a,slide:a,selected:u,previous:c})},ARROW_PREV:function(a){return(0,e.default)({"control-arrow control-prev":!0,"control-disabled":a})},ARROW_NEXT:function(a){return(0,e.default)({"control-arrow control-next":!0,"control-disabled":a})},DOT:function(a){return(0,e.default)({dot:!0,selected:a})}};return lo.default=i,lo}var co={},fo={},Jg;function aC(){if(Jg)return fo;Jg=1,Object.defineProperty(fo,"__esModule",{value:!0}),fo.outerWidth=void 0;var e=function(r){var i=r.offsetWidth,s=getComputedStyle(r);return i+=parseInt(s.marginLeft)+parseInt(s.marginRight),i};return fo.outerWidth=e,fo}var po={},Qg;function of(){if(Qg)return po;Qg=1,Object.defineProperty(po,"__esModule",{value:!0}),po.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],c="translate3d",f="("+u.join(",")+")";return c+f};return po.default=e,po}var ho={},em;function oy(){if(em)return ho;em=1,Object.defineProperty(ho,"__esModule",{value:!0}),ho.default=void 0;var e=function(){return window};return ho.default=e,ho}var tm;function sy(){if(tm)return co;tm=1,Object.defineProperty(co,"__esModule",{value:!0}),co.default=void 0;var e=f(B),t=u(iy()),r=aC(),i=u(of()),s=u(ny()),a=u(oy());function u(M){return M&&M.__esModule?M:{default:M}}function c(){if(typeof WeakMap!="function")return null;var M=new WeakMap;return c=function(){return M},M}function f(M){if(M&&M.__esModule)return M;if(M===null||g(M)!=="object"&&typeof M!="function")return{default:M};var F=c();if(F&&F.has(M))return F.get(M);var G={},j=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var L in M)if(Object.prototype.hasOwnProperty.call(M,L)){var H=j?Object.getOwnPropertyDescriptor(M,L):null;H&&(H.get||H.set)?Object.defineProperty(G,L,H):G[L]=M[L]}return G.default=M,F&&F.set(M,G),G}function g(M){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?g=function(G){return typeof G}:g=function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},g(M)}function h(){return h=Object.assign||function(M){for(var F=1;F<arguments.length;F++){var G=arguments[F];for(var j in G)Object.prototype.hasOwnProperty.call(G,j)&&(M[j]=G[j])}return M},h.apply(this,arguments)}function v(M,F){if(!(M instanceof F))throw new TypeError("Cannot call a class as a function")}function p(M,F){for(var G=0;G<F.length;G++){var j=F[G];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(M,j.key,j)}}function y(M,F,G){return F&&p(M.prototype,F),M}function x(M,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(F&&F.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),F&&d(M,F)}function d(M,F){return d=Object.setPrototypeOf||function(j,L){return j.__proto__=L,j},d(M,F)}function b(M){var F=E();return function(){var j=R(M),L;if(F){var H=R(this).constructor;L=Reflect.construct(j,arguments,H)}else L=j.apply(this,arguments);return m(this,L)}}function m(M,F){return F&&(g(F)==="object"||typeof F=="function")?F:S(M)}function S(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function E(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function R(M){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(G){return G.__proto__||Object.getPrototypeOf(G)},R(M)}function O(M,F,G){return F in M?Object.defineProperty(M,F,{value:G,enumerable:!0,configurable:!0,writable:!0}):M[F]=G,M}var k=function(F){return F.hasOwnProperty("key")},W=(function(M){x(G,M);var F=b(G);function G(j){var L;return v(this,G),L=F.call(this,j),O(S(L),"itemsWrapperRef",void 0),O(S(L),"itemsListRef",void 0),O(S(L),"thumbsRef",void 0),O(S(L),"setItemsWrapperRef",function(H){L.itemsWrapperRef=H}),O(S(L),"setItemsListRef",function(H){L.itemsListRef=H}),O(S(L),"setThumbsRef",function(H,q){L.thumbsRef||(L.thumbsRef=[]),L.thumbsRef[q]=H}),O(S(L),"updateSizes",function(){if(!(!L.props.children||!L.itemsWrapperRef||!L.thumbsRef)){var H=e.Children.count(L.props.children),q=L.itemsWrapperRef.clientWidth,C=L.props.thumbWidth?L.props.thumbWidth:(0,r.outerWidth)(L.thumbsRef[0]),J=Math.floor(q/C),Y=J<H,te=Y?H-J:0;L.setState(function(de,Z){return{itemSize:C,visibleItems:J,firstItem:Y?L.getFirstItem(Z.selectedItem):0,lastPosition:te,showArrows:Y}})}}),O(S(L),"handleClickItem",function(H,q,C){if(!k(C)||C.key==="Enter"){var J=L.props.onSelectItem;typeof J=="function"&&J(H,q)}}),O(S(L),"onSwipeStart",function(){L.setState({swiping:!0})}),O(S(L),"onSwipeEnd",function(){L.setState({swiping:!1})}),O(S(L),"onSwipeMove",function(H){var q=H.x;if(!L.state.itemSize||!L.itemsWrapperRef||!L.state.visibleItems)return!1;var C=0,J=e.Children.count(L.props.children),Y=-(L.state.firstItem*100)/L.state.visibleItems,te=Math.max(J-L.state.visibleItems,0),de=-te*100/L.state.visibleItems;Y===C&&q>0&&(q=0),Y===de&&q<0&&(q=0);var Z=L.itemsWrapperRef.clientWidth,Q=Y+100/(Z/q);return L.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(se){L.itemsListRef.style[se]=(0,i.default)(Q,"%",L.props.axis)}),!0}),O(S(L),"slideRight",function(H){L.moveTo(L.state.firstItem-(typeof H=="number"?H:1))}),O(S(L),"slideLeft",function(H){L.moveTo(L.state.firstItem+(typeof H=="number"?H:1))}),O(S(L),"moveTo",function(H){H=H<0?0:H,H=H>=L.state.lastPosition?L.state.lastPosition:H,L.setState({firstItem:H})}),L.state={selectedItem:j.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},L}return y(G,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(L){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==L.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,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(L){var H=L;return L>=this.state.lastPosition&&(H=this.state.lastPosition),L<this.state.firstItem+this.state.visibleItems&&(H=this.state.firstItem),L<this.state.firstItem&&(H=L),H}},{key:"renderItems",value:function(){var L=this;return this.props.children.map(function(H,q){var C=t.default.ITEM(!1,q===L.state.selectedItem),J={key:q,ref:function(te){return L.setThumbsRef(te,q)},className:C,onClick:L.handleClickItem.bind(L,q,L.props.children[q]),onKeyDown:L.handleClickItem.bind(L,q,L.props.children[q]),"aria-label":"".concat(L.props.labels.item," ").concat(q+1),style:{width:L.props.thumbWidth}};return e.default.createElement("li",h({},J,{role:"button",tabIndex:0}),H)})}},{key:"render",value:function(){var L=this;if(!this.props.children)return null;var H=e.Children.count(this.props.children)>1,q=this.state.showArrows&&this.state.firstItem>0,C=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,J={},Y=-this.state.firstItem*(this.state.itemSize||0),te=(0,i.default)(Y,"px",this.props.axis),de=this.props.transitionTime+"ms";return J={WebkitTransform:te,MozTransform:te,MsTransform:te,OTransform:te,transform:te,msTransform:te,WebkitTransitionDuration:de,MozTransitionDuration:de,MsTransitionDuration:de,OTransitionDuration:de,transitionDuration:de,msTransitionDuration:de},e.default.createElement("div",{className:t.default.CAROUSEL(!1)},e.default.createElement("div",{className:t.default.WRAPPER(!1),ref:this.setItemsWrapperRef},e.default.createElement("button",{type:"button",className:t.default.ARROW_PREV(!q),onClick:function(){return L.slideRight()},"aria-label":this.props.labels.leftArrow}),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:J,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):e.default.createElement("ul",{className:t.default.SLIDER(!1,this.state.swiping),ref:function(Q){return L.setItemsListRef(Q)},style:J},this.renderItems()),e.default.createElement("button",{type:"button",className:t.default.ARROW_NEXT(!C),onClick:function(){return L.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),G})(e.Component);return co.default=W,O(W,"displayName","Thumbs"),O(W,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350}),co}var go={},rm;function uC(){if(rm)return go;rm=1,Object.defineProperty(go,"__esModule",{value:!0}),go.default=void 0;var e=function(){return document};return go.default=e,go}var Ut={},nm;function ay(){if(nm)return Ut;nm=1,Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.setPosition=Ut.getPosition=Ut.isKeyboardEvent=Ut.defaultStatusFormatter=Ut.noop=void 0;var e=B,t=r(of());function r(f){return f&&f.__esModule?f:{default:f}}var i=function(){};Ut.noop=i;var s=function(g,h){return"".concat(g," of ").concat(h)};Ut.defaultStatusFormatter=s;var a=function(g){return g?g.hasOwnProperty("key"):!1};Ut.isKeyboardEvent=a;var u=function(g,h){if(h.infiniteLoop&&++g,g===0)return 0;var v=e.Children.count(h.children);if(h.centerMode&&h.axis==="horizontal"){var p=-g*h.centerSlidePercentage,y=v-1;return g&&(g!==y||h.infiniteLoop)?p+=(100-h.centerSlidePercentage)/2:g===y&&(p+=100-h.centerSlidePercentage),p}return-g*100};Ut.getPosition=u;var c=function(g,h){var v={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(p){v[p]=(0,t.default)(g,"%",h)}),v};return Ut.setPosition=c,Ut}var hr={},im;function lC(){if(im)return hr;im=1,Object.defineProperty(hr,"__esModule",{value:!0}),hr.fadeAnimationHandler=hr.slideStopSwipingHandler=hr.slideSwipeAnimationHandler=hr.slideAnimationHandler=void 0;var e=B,t=i(of()),r=ay();function i(v){return v&&v.__esModule?v:{default:v}}function s(v,p){var y=Object.keys(v);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(v);p&&(x=x.filter(function(d){return Object.getOwnPropertyDescriptor(v,d).enumerable})),y.push.apply(y,x)}return y}function a(v){for(var p=1;p<arguments.length;p++){var y=arguments[p]!=null?arguments[p]:{};p%2?s(Object(y),!0).forEach(function(x){u(v,x,y[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(y)):s(Object(y)).forEach(function(x){Object.defineProperty(v,x,Object.getOwnPropertyDescriptor(y,x))})}return v}function u(v,p,y){return p in v?Object.defineProperty(v,p,{value:y,enumerable:!0,configurable:!0,writable:!0}):v[p]=y,v}var c=function(p,y){var x={},d=y.selectedItem,b=d,m=e.Children.count(p.children)-1,S=p.infiniteLoop&&(d<0||d>m);if(S)return b<0?p.centerMode&&p.centerSlidePercentage&&p.axis==="horizontal"?x.itemListStyle=(0,r.setPosition)(-(m+2)*p.centerSlidePercentage-(100-p.centerSlidePercentage)/2,p.axis):x.itemListStyle=(0,r.setPosition)(-(m+2)*100,p.axis):b>m&&(x.itemListStyle=(0,r.setPosition)(0,p.axis)),x;var E=(0,r.getPosition)(d,p),R=(0,t.default)(E,"%",p.axis),O=p.transitionTime+"ms";return x.itemListStyle={WebkitTransform:R,msTransform:R,OTransform:R,transform:R},y.swiping||(x.itemListStyle=a(a({},x.itemListStyle),{},{WebkitTransitionDuration:O,MozTransitionDuration:O,OTransitionDuration:O,transitionDuration:O,msTransitionDuration:O})),x};hr.slideAnimationHandler=c;var f=function(p,y,x,d){var b={},m=y.axis==="horizontal",S=e.Children.count(y.children),E=0,R=(0,r.getPosition)(x.selectedItem,y),O=y.infiniteLoop?(0,r.getPosition)(S-1,y)-100:(0,r.getPosition)(S-1,y),k=m?p.x:p.y,W=k;R===E&&k>0&&(W=0),R===O&&k<0&&(W=0);var M=R+100/(x.itemSize/W),F=Math.abs(k)>y.swipeScrollTolerance;return y.infiniteLoop&&F&&(x.selectedItem===0&&M>-100?M-=S*100:x.selectedItem===S-1&&M<-S*100&&(M+=S*100)),(!y.preventMovementUntilSwipeScrollTolerance||F||x.swipeMovementStarted)&&(x.swipeMovementStarted||d({swipeMovementStarted:!0}),b.itemListStyle=(0,r.setPosition)(M,y.axis)),F&&!x.cancelClick&&d({cancelClick:!0}),b};hr.slideSwipeAnimationHandler=f;var g=function(p,y){var x=(0,r.getPosition)(y.selectedItem,p),d=(0,r.setPosition)(x,p.axis);return{itemListStyle:d}};hr.slideStopSwipingHandler=g;var h=function(p,y){var x=p.transitionTime+"ms",d="ease-in-out",b={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:d,msTransitionTimingFunction:d,MozTransitionTimingFunction:d,WebkitTransitionTimingFunction:d,OTransitionTimingFunction:d};return y.swiping||(b=a(a({},b),{},{WebkitTransitionDuration:x,MozTransitionDuration:x,OTransitionDuration:x,transitionDuration:x,msTransitionDuration:x})),{slideStyle:b,selectedStyle:a(a({},b),{},{opacity:1,position:"relative"}),prevStyle:a({},b)}};return hr.fadeAnimationHandler=h,hr}var om;function cC(){if(om)return uo;om=1,Object.defineProperty(uo,"__esModule",{value:!0}),uo.default=void 0;var e=h(B),t=f(ny()),r=f(iy()),i=f(sy()),s=f(uC()),a=f(oy()),u=ay(),c=lC();function f(j){return j&&j.__esModule?j:{default:j}}function g(){if(typeof WeakMap!="function")return null;var j=new WeakMap;return g=function(){return j},j}function h(j){if(j&&j.__esModule)return j;if(j===null||v(j)!=="object"&&typeof j!="function")return{default:j};var L=g();if(L&&L.has(j))return L.get(j);var H={},q=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in j)if(Object.prototype.hasOwnProperty.call(j,C)){var J=q?Object.getOwnPropertyDescriptor(j,C):null;J&&(J.get||J.set)?Object.defineProperty(H,C,J):H[C]=j[C]}return H.default=j,L&&L.set(j,H),H}function v(j){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v=function(H){return typeof H}:v=function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},v(j)}function p(){return p=Object.assign||function(j){for(var L=1;L<arguments.length;L++){var H=arguments[L];for(var q in H)Object.prototype.hasOwnProperty.call(H,q)&&(j[q]=H[q])}return j},p.apply(this,arguments)}function y(j,L){var H=Object.keys(j);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(j);L&&(q=q.filter(function(C){return Object.getOwnPropertyDescriptor(j,C).enumerable})),H.push.apply(H,q)}return H}function x(j){for(var L=1;L<arguments.length;L++){var H=arguments[L]!=null?arguments[L]:{};L%2?y(Object(H),!0).forEach(function(q){F(j,q,H[q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(H)):y(Object(H)).forEach(function(q){Object.defineProperty(j,q,Object.getOwnPropertyDescriptor(H,q))})}return j}function d(j,L){if(!(j instanceof L))throw new TypeError("Cannot call a class as a function")}function b(j,L){for(var H=0;H<L.length;H++){var q=L[H];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(j,q.key,q)}}function m(j,L,H){return L&&b(j.prototype,L),j}function S(j,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");j.prototype=Object.create(L&&L.prototype,{constructor:{value:j,writable:!0,configurable:!0}}),L&&E(j,L)}function E(j,L){return E=Object.setPrototypeOf||function(q,C){return q.__proto__=C,q},E(j,L)}function R(j){var L=W();return function(){var q=M(j),C;if(L){var J=M(this).constructor;C=Reflect.construct(q,arguments,J)}else C=q.apply(this,arguments);return O(this,C)}}function O(j,L){return L&&(v(L)==="object"||typeof L=="function")?L:k(j)}function k(j){if(j===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j}function 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 M(j){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(H){return H.__proto__||Object.getPrototypeOf(H)},M(j)}function F(j,L,H){return L in j?Object.defineProperty(j,L,{value:H,enumerable:!0,configurable:!0,writable:!0}):j[L]=H,j}var G=(function(j){S(H,j);var L=R(H);function H(q){var C;d(this,H),C=L.call(this,q),F(k(C),"thumbsRef",void 0),F(k(C),"carouselWrapperRef",void 0),F(k(C),"listRef",void 0),F(k(C),"itemsRef",void 0),F(k(C),"timer",void 0),F(k(C),"animationHandler",void 0),F(k(C),"setThumbsRef",function(Y){C.thumbsRef=Y}),F(k(C),"setCarouselWrapperRef",function(Y){C.carouselWrapperRef=Y}),F(k(C),"setListRef",function(Y){C.listRef=Y}),F(k(C),"setItemsRef",function(Y,te){C.itemsRef||(C.itemsRef=[]),C.itemsRef[te]=Y}),F(k(C),"autoPlay",function(){e.Children.count(C.props.children)<=1||(C.clearAutoPlay(),C.props.autoPlay&&(C.timer=setTimeout(function(){C.increment()},C.props.interval)))}),F(k(C),"clearAutoPlay",function(){C.timer&&clearTimeout(C.timer)}),F(k(C),"resetAutoPlay",function(){C.clearAutoPlay(),C.autoPlay()}),F(k(C),"stopOnHover",function(){C.setState({isMouseEntered:!0},C.clearAutoPlay)}),F(k(C),"startOnLeave",function(){C.setState({isMouseEntered:!1},C.autoPlay)}),F(k(C),"isFocusWithinTheCarousel",function(){return C.carouselWrapperRef?!!((0,s.default)().activeElement===C.carouselWrapperRef||C.carouselWrapperRef.contains((0,s.default)().activeElement)):!1}),F(k(C),"navigateWithKeyboard",function(Y){if(C.isFocusWithinTheCarousel()){var te=C.props.axis,de=te==="horizontal",Z={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},Q=de?Z.ArrowRight:Z.ArrowDown,se=de?Z.ArrowLeft:Z.ArrowUp;Q===Y.keyCode?C.increment():se===Y.keyCode&&C.decrement()}}),F(k(C),"updateSizes",function(){if(!(!C.state.initialized||!C.itemsRef||C.itemsRef.length===0)){var Y=C.props.axis==="horizontal",te=C.itemsRef[0];if(te){var de=Y?te.clientWidth:te.clientHeight;C.setState({itemSize:de}),C.thumbsRef&&C.thumbsRef.updateSizes()}}}),F(k(C),"setMountState",function(){C.setState({hasMount:!0}),C.updateSizes()}),F(k(C),"handleClickItem",function(Y,te){if(e.Children.count(C.props.children)!==0){if(C.state.cancelClick){C.setState({cancelClick:!1});return}C.props.onClickItem(Y,te),Y!==C.state.selectedItem&&C.setState({selectedItem:Y})}}),F(k(C),"handleOnChange",function(Y,te){e.Children.count(C.props.children)<=1||C.props.onChange(Y,te)}),F(k(C),"handleClickThumb",function(Y,te){C.props.onClickThumb(Y,te),C.moveTo(Y)}),F(k(C),"onSwipeStart",function(Y){C.setState({swiping:!0}),C.props.onSwipeStart(Y)}),F(k(C),"onSwipeEnd",function(Y){C.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),C.props.onSwipeEnd(Y),C.clearAutoPlay(),C.state.autoPlay&&C.autoPlay()}),F(k(C),"onSwipeMove",function(Y,te){C.props.onSwipeMove(te);var de=C.props.swipeAnimationHandler(Y,C.props,C.state,C.setState.bind(k(C)));return C.setState(x({},de)),!!Object.keys(de).length}),F(k(C),"decrement",function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;C.moveTo(C.state.selectedItem-(typeof Y=="number"?Y:1))}),F(k(C),"increment",function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;C.moveTo(C.state.selectedItem+(typeof Y=="number"?Y:1))}),F(k(C),"moveTo",function(Y){if(typeof Y=="number"){var te=e.Children.count(C.props.children)-1;Y<0&&(Y=C.props.infiniteLoop?te:0),Y>te&&(Y=C.props.infiniteLoop?0:te),C.selectItem({selectedItem:Y}),C.state.autoPlay&&C.state.isMouseEntered===!1&&C.resetAutoPlay()}}),F(k(C),"onClickNext",function(){C.increment(1)}),F(k(C),"onClickPrev",function(){C.decrement(1)}),F(k(C),"onSwipeForward",function(){C.increment(1),C.props.emulateTouch&&C.setState({cancelClick:!0})}),F(k(C),"onSwipeBackwards",function(){C.decrement(1),C.props.emulateTouch&&C.setState({cancelClick:!0})}),F(k(C),"changeItem",function(Y){return function(te){(!(0,u.isKeyboardEvent)(te)||te.key==="Enter")&&C.moveTo(Y)}}),F(k(C),"selectItem",function(Y){C.setState(x({previousItem:C.state.selectedItem},Y),function(){C.setState(C.animationHandler(C.props,C.state))}),C.handleOnChange(Y.selectedItem,e.Children.toArray(C.props.children)[Y.selectedItem])}),F(k(C),"getInitialImage",function(){var Y=C.props.selectedItem,te=C.itemsRef&&C.itemsRef[Y],de=te&&te.getElementsByTagName("img")||[];return de[0]}),F(k(C),"getVariableItemHeight",function(Y){var te=C.itemsRef&&C.itemsRef[Y];if(C.state.hasMount&&te&&te.children.length){var de=te.children[0].getElementsByTagName("img")||[];if(de.length>0){var Z=de[0];if(!Z.complete){var Q=function ne(){C.forceUpdate(),Z.removeEventListener("load",ne)};Z.addEventListener("load",Q)}}var se=de[0]||te.children[0],ue=se.clientHeight;return ue>0?ue:null}return null});var J={initialized:!1,previousItem:q.selectedItem,selectedItem:q.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:q.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return C.animationHandler=typeof q.animationHandler=="function"&&q.animationHandler||q.animationHandler==="fade"&&c.fadeAnimationHandler||c.slideAnimationHandler,C.state=x(x({},J),C.animationHandler(q,J)),C}return m(H,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(C,J){!C.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!C.autoFocus&&this.props.autoFocus&&this.forceFocus(),J.swiping&&!this.state.swiping&&this.setState(x({},this.props.stopSwipingHandler(this.props,this.state))),(C.selectedItem!==this.props.selectedItem||C.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),C.autoPlay!==this.props.autoPlay&&(this.props.autoPlay?this.setupAutoPlay():this.destroyAutoPlay(),this.setState({autoPlay:this.props.autoPlay}))}},{key:"componentWillUnmount",value:function(){this.destroyCarousel()}},{key:"setupCarousel",value:function(){var C=this;this.bindEvents(),this.state.autoPlay&&e.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},function(){var J=C.getInitialImage();J&&!J.complete?J.addEventListener("load",C.setMountState):C.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var C=this.carouselWrapperRef;this.props.stopOnHover&&C&&(C.addEventListener("mouseenter",this.stopOnHover),C.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var C=this.carouselWrapperRef;this.props.stopOnHover&&C&&(C.removeEventListener("mouseenter",this.stopOnHover),C.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,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 C=this.getInitialImage();C&&C.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,s.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var C;(C=this.carouselWrapperRef)===null||C===void 0||C.focus()}},{key:"renderItems",value:function(C){var J=this;return this.props.children?e.Children.map(this.props.children,function(Y,te){var de=te===J.state.selectedItem,Z=te===J.state.previousItem,Q=de&&J.state.selectedStyle||Z&&J.state.prevStyle||J.state.slideStyle||{};J.props.centerMode&&J.props.axis==="horizontal"&&(Q=x(x({},Q),{},{minWidth:J.props.centerSlidePercentage+"%"})),J.state.swiping&&J.state.swipeMovementStarted&&(Q=x(x({},Q),{},{pointerEvents:"none"}));var se={ref:function(ne){return J.setItemsRef(ne,te)},key:"itemKey"+te+(C?"clone":""),className:r.default.ITEM(!0,te===J.state.selectedItem,te===J.state.previousItem),onClick:J.handleClickItem.bind(J,te,Y),style:Q};return e.default.createElement("li",se,J.props.renderItem(Y,{isSelected:te===J.state.selectedItem,isPrevious:te===J.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var C=this,J=this.props,Y=J.showIndicators,te=J.labels,de=J.renderIndicator,Z=J.children;return Y?e.default.createElement("ul",{className:"control-dots"},e.Children.map(Z,function(Q,se){return de&&de(C.changeItem(se),se===C.state.selectedItem,se,te.item)})):null}},{key:"renderStatus",value:function(){return this.props.showStatus?e.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,e.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return!this.props.showThumbs||!this.props.children||e.Children.count(this.props.children)===0?null:e.default.createElement(i.default,{ref:this.setThumbsRef,onSelectItem:this.handleClickThumb,selectedItem:this.state.selectedItem,transitionTime:this.props.transitionTime,thumbWidth:this.props.thumbWidth,labels:this.props.labels,emulateTouch:this.props.emulateTouch},this.props.renderThumbs(this.props.children))}},{key:"render",value:function(){var C=this;if(!this.props.children||e.Children.count(this.props.children)===0)return null;var J=this.props.swipeable&&e.Children.count(this.props.children)>1,Y=this.props.axis==="horizontal",te=this.props.showArrows&&e.Children.count(this.props.children)>1,de=te&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,Z=te&&(this.state.selectedItem<e.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,Q=this.renderItems(!0),se=Q.shift(),ue=Q.pop(),ne={className:r.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},ce={};if(Y){if(ne.onSwipeLeft=this.onSwipeForward,ne.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var fe=this.getVariableItemHeight(this.state.selectedItem);ce.height=fe||"auto"}}else ne.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,ne.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,ne.style=x(x({},ne.style),{},{height:this.state.itemSize}),ce.height=this.state.itemSize;return e.default.createElement("div",{"aria-label":this.props.ariaLabel,className:r.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},e.default.createElement("div",{className:r.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,de,this.props.labels.leftArrow),e.default.createElement("div",{className:r.default.WRAPPER(!0,this.props.axis),style:ce},J?e.default.createElement(t.default,p({tagName:"ul",innerRef:this.setListRef},ne,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&ue,this.renderItems(),this.props.infiniteLoop&&se):e.default.createElement("ul",{className:r.default.SLIDER(!0,this.state.swiping),ref:function(me){return C.setListRef(me)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&ue,this.renderItems(),this.props.infiniteLoop&&se)),this.props.renderArrowNext(this.onClickNext,Z,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),H})(e.default.Component);return uo.default=G,F(G,"displayName","Carousel"),F(G,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:u.noop,onClickThumb:u.noop,onChange:u.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(L,H,q){return e.default.createElement("button",{type:"button","aria-label":q,className:r.default.ARROW_PREV(!H),onClick:L})},renderArrowNext:function(L,H,q){return e.default.createElement("button",{type:"button","aria-label":q,className:r.default.ARROW_NEXT(!H),onClick:L})},renderIndicator:function(L,H,q,C){return e.default.createElement("li",{className:r.default.DOT(H),onClick:L,onKeyDown:L,value:q,key:q,role:"button",tabIndex:0,"aria-label":"".concat(C," ").concat(q+1)})},renderItem:function(L){return L},renderThumbs:function(L){var H=e.Children.map(L,function(q){var C=q;if(q.type!=="img"&&(C=e.Children.toArray(q.props.children).find(function(J){return J.type==="img"})),!!C)return C});return H.filter(function(q){return q}).length===0?(console.warn("No images found! Can't build the thumb list without images. If you don't need thumbs, set showThumbs={false} in the Carousel. Note that it's not possible to get images rendered inside custom components. More info at https://github.com/leandrowd/react-responsive-carousel/blob/master/TROUBLESHOOTING.md"),[]):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:c.slideSwipeAnimationHandler,stopSwipingHandler:c.slideStopSwipingHandler}),uo}var sm={},am;function fC(){return am||(am=1),sm}var um;function dC(){return um||(um=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(cC()),r=fC(),i=s(sy());function s(a){return a&&a.__esModule?a:{default:a}}})(Ul)),Ul}var pC=dC();const hC=({tip:e})=>D.jsx("div",{className:"h-full grid pb-8 px-8 place-content-center",children:uy(e,!0)}),gC=({pages:e})=>D.jsx("div",{className:"min-h-[10rem] w-96",children:D.jsx(pC.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(t=>D.jsx(hC,{tip:t},t.key))})}),mC=({body:e,isInsideCarousel:t})=>D.jsx("article",{className:je(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-grey-100 ",{"w-60":!t}]),children:D.jsx(ba,{children:e,options:{overrides:{a:{component:({children:r,...i})=>D.jsxs("a",{...i,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary-dark",children:[r,D.jsx(ot.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),vC=({video:e,body:t,title:r,isInsideCarousel:i})=>D.jsxs("div",{className:je([{"flex flex-row":!i,"flex max-h-[10rem] flex-col overflow-y-auto":i}]),children:[D.jsx("div",{className:je([{"mr-1":!i,"mb-1":i}]),children:D.jsx("iframe",{height:i?"auto":90,width:i?"100%":160,src:e==null?void 0:e.link,title:r,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}),D.jsx("article",{className:je(["prose prose-sm p-1 text-left text-xs text-grey-100",{"w-60 overflow-auto":!i,"-mt-6":i}]),children:D.jsx(ba,{children:t||"",options:{overrides:{a:{component:({children:s,...a})=>D.jsxs("a",{...a,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[s,D.jsx(ot.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),uy=(e,t)=>{switch(e.type){case ga.TEXT:return D.jsx(mC,{body:e.body,isInsideCarousel:t});case ga.VIDEO:return D.jsx(vC,{video:e.video,body:e.body,title:e.title,isInsideCarousel:t});case ga.CAROUSEL:return D.jsx(gC,{pages:e.pages})}},ly=B.createContext(void 0);function lm(e,t){const r=[];return e.forEach(i=>{i.key===t&&r.push(i)}),r}const yC=({children:e,enabled:t,baseUrl:r="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:i,show:s},a]=B.useState({tips:{},show:!0});B.useEffect(()=>{const c=new AbortController;try{fetch(`${r}/tips.json`,{signal:c.signal}).then(f=>f.json()).then(f=>{const g=f.reduce((h,v)=>lm(f,v.key).length>1?{...h,[v.key]:{type:"carousel",pages:lm(f,v.key)}}:{...h,[v.key]:v},{});a(h=>({...h,tips:g}))})}catch{}return()=>{c.abort()}},[]);const u=()=>{a(c=>({...c,show:!s}))};return D.jsx(ly.Provider,{value:{tips:i,toggleTips:u,show:s,enabled:t},children:e})},cy=e=>{const t=B.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}},wC=xa(XP)`
80
+ */var pf,Nm;function Q2(){if(Nm)return pf;Nm=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function o(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var l={},c=0;c<10;c++)l["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(l).map(function(p){return l[p]});if(u.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(p){d[p]=p}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return pf=o()?Object.assign:function(a,l){for(var c,u=n(a),d,p=1;p<arguments.length;p++){c=Object(arguments[p]);for(var h in c)t.call(c,h)&&(u[h]=c[h]);if(e){d=e(c);for(var g=0;g<d.length;g++)r.call(c,d[g])&&(u[d[g]]=c[d[g]])}}return u},pf}var hf,Mm;function Wd(){if(Mm)return hf;Mm=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return hf=e,hf}var gf,Dm;function Wy(){return Dm||(Dm=1,gf=Function.call.bind(Object.prototype.hasOwnProperty)),gf}var vf,$m;function eN(){if($m)return vf;$m=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Wd(),r={},n=Wy();e=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function o(a,l,c,u,d){if(process.env.NODE_ENV!=="production"){for(var p in a)if(n(a,p)){var h;try{if(typeof a[p]!="function"){var g=Error((u||"React class")+": "+c+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}h=a[p](l,p,u,c,null,t)}catch(S){h=S}if(h&&!(h instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+p+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in r)){r[h.message]=!0;var y=d?d():"";e("Failed "+c+" type: "+h.message+(y??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},vf=o,vf}var mf,Lm;function tN(){if(Lm)return mf;Lm=1;var e=Hy(),t=Q2(),r=Wd(),n=Wy(),o=eN(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function l(){return null}return mf=function(c,u){var d=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function h(L){var U=L&&(d&&L[d]||L[p]);if(typeof U=="function")return U}var g="<<anonymous>>",y={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:w(),arrayOf:x,element:k(),elementType:E(),instanceOf:R,node:V(),objectOf:A,oneOf:F,oneOfType:N,shape:M,exact:B};function S(L,U){return L===U?L!==0||1/L===1/U:L!==L&&U!==U}function v(L,U){this.message=L,this.data=U&&typeof U=="object"?U:{},this.stack=""}v.prototype=Error.prototype;function b(L){if(process.env.NODE_ENV!=="production")var U={},te=0;function ee(ae,se,ne,ce,he,pe,Se){if(ce=ce||g,pe=pe||ne,Se!==r){if(u){var Z=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Z.name="Invariant Violation",Z}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Pe=ce+":"+ne;!U[Pe]&&te<3&&(a("You are manually calling a React.PropTypes validation function for the `"+pe+"` prop on `"+ce+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),U[Pe]=!0,te++)}}return se[ne]==null?ae?se[ne]===null?new v("The "+he+" `"+pe+"` is marked as required "+("in `"+ce+"`, but its value is `null`.")):new v("The "+he+" `"+pe+"` is marked as required in "+("`"+ce+"`, but its value is `undefined`.")):null:L(se,ne,ce,he,pe)}var J=ee.bind(null,!1);return J.isRequired=ee.bind(null,!0),J}function m(L){function U(te,ee,J,ae,se,ne){var ce=te[ee],he=Y(ce);if(he!==L){var pe=X(ce);return new v("Invalid "+ae+" `"+se+"` of type "+("`"+pe+"` supplied to `"+J+"`, expected ")+("`"+L+"`."),{expectedType:L})}return null}return b(U)}function w(){return b(l)}function x(L){function U(te,ee,J,ae,se){if(typeof L!="function")return new v("Property `"+se+"` of component `"+J+"` has invalid PropType notation inside arrayOf.");var ne=te[ee];if(!Array.isArray(ne)){var ce=Y(ne);return new v("Invalid "+ae+" `"+se+"` of type "+("`"+ce+"` supplied to `"+J+"`, expected an array."))}for(var he=0;he<ne.length;he++){var pe=L(ne,he,J,ae,se+"["+he+"]",r);if(pe instanceof Error)return pe}return null}return b(U)}function k(){function L(U,te,ee,J,ae){var se=U[te];if(!c(se)){var ne=Y(se);return new v("Invalid "+J+" `"+ae+"` of type "+("`"+ne+"` supplied to `"+ee+"`, expected a single ReactElement."))}return null}return b(L)}function E(){function L(U,te,ee,J,ae){var se=U[te];if(!e.isValidElementType(se)){var ne=Y(se);return new v("Invalid "+J+" `"+ae+"` of type "+("`"+ne+"` supplied to `"+ee+"`, expected a single ReactElement type."))}return null}return b(L)}function R(L){function U(te,ee,J,ae,se){if(!(te[ee]instanceof L)){var ne=L.name||g,ce=me(te[ee]);return new v("Invalid "+ae+" `"+se+"` of type "+("`"+ce+"` supplied to `"+J+"`, expected ")+("instance of `"+ne+"`."))}return null}return b(U)}function F(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),l;function U(te,ee,J,ae,se){for(var ne=te[ee],ce=0;ce<L.length;ce++)if(S(ne,L[ce]))return null;var he=JSON.stringify(L,function(Se,Z){var Pe=X(Z);return Pe==="symbol"?String(Z):Z});return new v("Invalid "+ae+" `"+se+"` of value `"+String(ne)+"` "+("supplied to `"+J+"`, expected one of "+he+"."))}return b(U)}function A(L){function U(te,ee,J,ae,se){if(typeof L!="function")return new v("Property `"+se+"` of component `"+J+"` has invalid PropType notation inside objectOf.");var ne=te[ee],ce=Y(ne);if(ce!=="object")return new v("Invalid "+ae+" `"+se+"` of type "+("`"+ce+"` supplied to `"+J+"`, expected an object."));for(var he in ne)if(n(ne,he)){var pe=L(ne,he,J,ae,se+"."+he,r);if(pe instanceof Error)return pe}return null}return b(U)}function N(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var U=0;U<L.length;U++){var te=L[U];if(typeof te!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+K(te)+" at index "+U+"."),l}function ee(J,ae,se,ne,ce){for(var he=[],pe=0;pe<L.length;pe++){var Se=L[pe],Z=Se(J,ae,se,ne,ce,r);if(Z==null)return null;Z.data&&n(Z.data,"expectedType")&&he.push(Z.data.expectedType)}var Pe=he.length>0?", expected one of type ["+he.join(", ")+"]":"";return new v("Invalid "+ne+" `"+ce+"` supplied to "+("`"+se+"`"+Pe+"."))}return b(ee)}function V(){function L(U,te,ee,J,ae){return j(U[te])?null:new v("Invalid "+J+" `"+ae+"` supplied to "+("`"+ee+"`, expected a ReactNode."))}return b(L)}function $(L,U,te,ee,J){return new v((L||"React class")+": "+U+" type `"+te+"."+ee+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+J+"`.")}function M(L){function U(te,ee,J,ae,se){var ne=te[ee],ce=Y(ne);if(ce!=="object")return new v("Invalid "+ae+" `"+se+"` of type `"+ce+"` "+("supplied to `"+J+"`, expected `object`."));for(var he in L){var pe=L[he];if(typeof pe!="function")return $(J,ae,se,he,X(pe));var Se=pe(ne,he,J,ae,se+"."+he,r);if(Se)return Se}return null}return b(U)}function B(L){function U(te,ee,J,ae,se){var ne=te[ee],ce=Y(ne);if(ce!=="object")return new v("Invalid "+ae+" `"+se+"` of type `"+ce+"` "+("supplied to `"+J+"`, expected `object`."));var he=t({},te[ee],L);for(var pe in he){var Se=L[pe];if(n(L,pe)&&typeof Se!="function")return $(J,ae,se,pe,X(Se));if(!Se)return new v("Invalid "+ae+" `"+se+"` key `"+pe+"` supplied to `"+J+"`.\nBad object: "+JSON.stringify(te[ee],null," ")+`
81
+ Valid keys: `+JSON.stringify(Object.keys(L),null," "));var Z=Se(ne,pe,J,ae,se+"."+pe,r);if(Z)return Z}return null}return b(U)}function j(L){switch(typeof L){case"number":case"string":case"undefined":return!0;case"boolean":return!L;case"object":if(Array.isArray(L))return L.every(j);if(L===null||c(L))return!0;var U=h(L);if(U){var te=U.call(L),ee;if(U!==L.entries){for(;!(ee=te.next()).done;)if(!j(ee.value))return!1}else for(;!(ee=te.next()).done;){var J=ee.value;if(J&&!j(J[1]))return!1}}else return!1;return!0;default:return!1}}function I(L,U){return L==="symbol"?!0:U?U["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&U instanceof Symbol:!1}function Y(L){var U=typeof L;return Array.isArray(L)?"array":L instanceof RegExp?"object":I(U,L)?"symbol":U}function X(L){if(typeof L>"u"||L===null)return""+L;var U=Y(L);if(U==="object"){if(L instanceof Date)return"date";if(L instanceof RegExp)return"regexp"}return U}function K(L){var U=X(L);switch(U){case"array":case"object":return"an "+U;case"boolean":case"date":case"regexp":return"a "+U;default:return U}}function me(L){return!L.constructor||!L.constructor.name?g:L.constructor.name}return y.checkPropTypes=o,y.resetWarningCache=o.resetWarningCache,y.PropTypes=y,y},mf}var bf,zm;function rN(){if(zm)return bf;zm=1;var e=Wd();function t(){}function r(){}return r.resetWarningCache=t,bf=function(){function n(l,c,u,d,p,h){if(h!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}n.isRequired=n;function o(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},bf}var jm;function nN(){if(jm)return nl.exports;if(jm=1,process.env.NODE_ENV!=="production"){var e=Hy(),t=!0;nl.exports=tN()(e.isElement,t)}else nl.exports=rN()();return nl.exports}var Fm;function iN(){return Fm||(Fm=1,(function(e){(function(t,r){r(e,H,nN())})(rl,function(t,r,n){Object.defineProperty(t,"__esModule",{value:!0}),t.setHasSupportToCaptureOption=S;var o=l(r),a=l(n);function l(w){return w&&w.__esModule?w:{default:w}}var c=Object.assign||function(w){for(var x=1;x<arguments.length;x++){var k=arguments[x];for(var E in k)Object.prototype.hasOwnProperty.call(k,E)&&(w[E]=k[E])}return w};function u(w,x){var k={};for(var E in w)x.indexOf(E)>=0||Object.prototype.hasOwnProperty.call(w,E)&&(k[E]=w[E]);return k}function d(w,x){if(!(w instanceof x))throw new TypeError("Cannot call a class as a function")}var p=(function(){function w(x,k){for(var E=0;E<k.length;E++){var R=k[E];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(x,R.key,R)}}return function(x,k,E){return k&&w(x.prototype,k),E&&w(x,E),x}})();function h(w,x){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:w}function g(w,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);w.prototype=Object.create(x&&x.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(w,x):w.__proto__=x)}var y=!1;function S(w){y=w}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){S(!0)}}))}catch{}function v(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return y?w:w.capture}function b(w){if("touches"in w){var x=w.touches[0],k=x.pageX,E=x.pageY;return{x:k,y:E}}var R=w.screenX,F=w.screenY;return{x:R,y:F}}var m=(function(w){g(x,w);function x(){var k;d(this,x);for(var E=arguments.length,R=Array(E),F=0;F<E;F++)R[F]=arguments[F];var A=h(this,(k=x.__proto__||Object.getPrototypeOf(x)).call.apply(k,[this].concat(R)));return A._handleSwipeStart=A._handleSwipeStart.bind(A),A._handleSwipeMove=A._handleSwipeMove.bind(A),A._handleSwipeEnd=A._handleSwipeEnd.bind(A),A._onMouseDown=A._onMouseDown.bind(A),A._onMouseMove=A._onMouseMove.bind(A),A._onMouseUp=A._onMouseUp.bind(A),A._setSwiperRef=A._setSwiperRef.bind(A),A}return p(x,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,v({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,v({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(E){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(E))}},{key:"_onMouseMove",value:function(E){this.mouseDown&&this._handleSwipeMove(E)}},{key:"_onMouseUp",value:function(E){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(E)}},{key:"_handleSwipeStart",value:function(E){var R=b(E),F=R.x,A=R.y;this.moveStart={x:F,y:A},this.props.onSwipeStart(E)}},{key:"_handleSwipeMove",value:function(E){if(this.moveStart){var R=b(E),F=R.x,A=R.y,N=F-this.moveStart.x,V=A-this.moveStart.y;this.moving=!0;var $=this.props.onSwipeMove({x:N,y:V},E);$&&E.cancelable&&E.preventDefault(),this.movePosition={deltaX:N,deltaY:V}}}},{key:"_handleSwipeEnd",value:function(E){this.props.onSwipeEnd(E);var R=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-R?this.props.onSwipeLeft(1,E):this.movePosition.deltaX>R&&this.props.onSwipeRight(1,E),this.movePosition.deltaY<-R?this.props.onSwipeUp(1,E):this.movePosition.deltaY>R&&this.props.onSwipeDown(1,E)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(E){this.swiper=E,this.props.innerRef(E)}},{key:"render",value:function(){var E=this.props;E.tagName;var R=E.className,F=E.style,A=E.children;E.allowMouseEvents,E.onSwipeUp,E.onSwipeDown,E.onSwipeLeft,E.onSwipeRight,E.onSwipeStart,E.onSwipeMove,E.onSwipeEnd,E.innerRef,E.tolerance;var N=u(E,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return o.default.createElement(this.props.tagName,c({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:R,style:F},N),A)}}]),x})(r.Component);m.displayName="ReactSwipe",m.propTypes={tagName:a.default.string,className:a.default.string,style:a.default.object,children:a.default.node,allowMouseEvents:a.default.bool,onSwipeUp:a.default.func,onSwipeDown:a.default.func,onSwipeLeft:a.default.func,onSwipeRight:a.default.func,onSwipeStart:a.default.func,onSwipeMove:a.default.func,onSwipeEnd:a.default.func,innerRef:a.default.func,tolerance:a.default.number.isRequired},m.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},t.default=m})})(rl)),rl}var Hm;function By(){return Hm||(Hm=1,(function(e){(function(t,r){r(e,iN())})(tl,function(t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=o(r);function o(a){return a&&a.__esModule?a:{default:a}}t.default=n.default})})(tl)),tl}var oa={},Wm;function Vy(){if(Wm)return oa;Wm=1,Object.defineProperty(oa,"__esModule",{value:!0}),oa.default=void 0;var e=t(Q0());function t(o){return o&&o.__esModule?o:{default:o}}function r(o,a,l){return a in o?Object.defineProperty(o,a,{value:l,enumerable:!0,configurable:!0,writable:!0}):o[a]=l,o}var n={ROOT:function(a){return(0,e.default)(r({"carousel-root":!0},a||"",!!a))},CAROUSEL:function(a){return(0,e.default)({carousel:!0,"carousel-slider":a})},WRAPPER:function(a,l){return(0,e.default)({"thumbs-wrapper":!a,"slider-wrapper":a,"axis-horizontal":l==="horizontal","axis-vertical":l!=="horizontal"})},SLIDER:function(a,l){return(0,e.default)({thumbs:!a,slider:a,animated:!l})},ITEM:function(a,l,c){return(0,e.default)({thumb:!a,slide:a,selected:l,previous:c})},ARROW_PREV:function(a){return(0,e.default)({"control-arrow control-prev":!0,"control-disabled":a})},ARROW_NEXT:function(a){return(0,e.default)({"control-arrow control-next":!0,"control-disabled":a})},DOT:function(a){return(0,e.default)({dot:!0,selected:a})}};return oa.default=n,oa}var aa={},sa={},Bm;function oN(){if(Bm)return sa;Bm=1,Object.defineProperty(sa,"__esModule",{value:!0}),sa.outerWidth=void 0;var e=function(r){var n=r.offsetWidth,o=getComputedStyle(r);return n+=parseInt(o.marginLeft)+parseInt(o.marginRight),n};return sa.outerWidth=e,sa}var la={},Vm;function Bd(){if(Vm)return la;Vm=1,Object.defineProperty(la,"__esModule",{value:!0}),la.default=void 0;var e=function(r,n,o){var a=r===0?r:r+n,l=o==="horizontal"?[a,0,0]:[0,a,0],c="translate3d",u="("+l.join(",")+")";return c+u};return la.default=e,la}var ca={},Um;function Uy(){if(Um)return ca;Um=1,Object.defineProperty(ca,"__esModule",{value:!0}),ca.default=void 0;var e=function(){return window};return ca.default=e,ca}var qm;function qy(){if(qm)return aa;qm=1,Object.defineProperty(aa,"__esModule",{value:!0}),aa.default=void 0;var e=u(H),t=l(Vy()),r=oN(),n=l(Bd()),o=l(By()),a=l(Uy());function l(A){return A&&A.__esModule?A:{default:A}}function c(){if(typeof WeakMap!="function")return null;var A=new WeakMap;return c=function(){return A},A}function u(A){if(A&&A.__esModule)return A;if(A===null||d(A)!=="object"&&typeof A!="function")return{default:A};var N=c();if(N&&N.has(A))return N.get(A);var V={},$=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in A)if(Object.prototype.hasOwnProperty.call(A,M)){var B=$?Object.getOwnPropertyDescriptor(A,M):null;B&&(B.get||B.set)?Object.defineProperty(V,M,B):V[M]=A[M]}return V.default=A,N&&N.set(A,V),V}function d(A){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?d=function(V){return typeof V}:d=function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V},d(A)}function p(){return p=Object.assign||function(A){for(var N=1;N<arguments.length;N++){var V=arguments[N];for(var $ in V)Object.prototype.hasOwnProperty.call(V,$)&&(A[$]=V[$])}return A},p.apply(this,arguments)}function h(A,N){if(!(A instanceof N))throw new TypeError("Cannot call a class as a function")}function g(A,N){for(var V=0;V<N.length;V++){var $=N[V];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(A,$.key,$)}}function y(A,N,V){return N&&g(A.prototype,N),A}function S(A,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(N&&N.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),N&&v(A,N)}function v(A,N){return v=Object.setPrototypeOf||function($,M){return $.__proto__=M,$},v(A,N)}function b(A){var N=x();return function(){var $=k(A),M;if(N){var B=k(this).constructor;M=Reflect.construct($,arguments,B)}else M=$.apply(this,arguments);return m(this,M)}}function m(A,N){return N&&(d(N)==="object"||typeof N=="function")?N:w(A)}function w(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function x(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function k(A){return k=Object.setPrototypeOf?Object.getPrototypeOf:function(V){return V.__proto__||Object.getPrototypeOf(V)},k(A)}function E(A,N,V){return N in A?Object.defineProperty(A,N,{value:V,enumerable:!0,configurable:!0,writable:!0}):A[N]=V,A}var R=function(N){return N.hasOwnProperty("key")},F=(function(A){S(V,A);var N=b(V);function V($){var M;return h(this,V),M=N.call(this,$),E(w(M),"itemsWrapperRef",void 0),E(w(M),"itemsListRef",void 0),E(w(M),"thumbsRef",void 0),E(w(M),"setItemsWrapperRef",function(B){M.itemsWrapperRef=B}),E(w(M),"setItemsListRef",function(B){M.itemsListRef=B}),E(w(M),"setThumbsRef",function(B,j){M.thumbsRef||(M.thumbsRef=[]),M.thumbsRef[j]=B}),E(w(M),"updateSizes",function(){if(!(!M.props.children||!M.itemsWrapperRef||!M.thumbsRef)){var B=e.Children.count(M.props.children),j=M.itemsWrapperRef.clientWidth,I=M.props.thumbWidth?M.props.thumbWidth:(0,r.outerWidth)(M.thumbsRef[0]),Y=Math.floor(j/I),X=Y<B,K=X?B-Y:0;M.setState(function(me,L){return{itemSize:I,visibleItems:Y,firstItem:X?M.getFirstItem(L.selectedItem):0,lastPosition:K,showArrows:X}})}}),E(w(M),"handleClickItem",function(B,j,I){if(!R(I)||I.key==="Enter"){var Y=M.props.onSelectItem;typeof Y=="function"&&Y(B,j)}}),E(w(M),"onSwipeStart",function(){M.setState({swiping:!0})}),E(w(M),"onSwipeEnd",function(){M.setState({swiping:!1})}),E(w(M),"onSwipeMove",function(B){var j=B.x;if(!M.state.itemSize||!M.itemsWrapperRef||!M.state.visibleItems)return!1;var I=0,Y=e.Children.count(M.props.children),X=-(M.state.firstItem*100)/M.state.visibleItems,K=Math.max(Y-M.state.visibleItems,0),me=-K*100/M.state.visibleItems;X===I&&j>0&&(j=0),X===me&&j<0&&(j=0);var L=M.itemsWrapperRef.clientWidth,U=X+100/(L/j);return M.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(te){M.itemsListRef.style[te]=(0,n.default)(U,"%",M.props.axis)}),!0}),E(w(M),"slideRight",function(B){M.moveTo(M.state.firstItem-(typeof B=="number"?B:1))}),E(w(M),"slideLeft",function(B){M.moveTo(M.state.firstItem+(typeof B=="number"?B:1))}),E(w(M),"moveTo",function(B){B=B<0?0:B,B=B>=M.state.lastPosition?M.state.lastPosition:B,M.setState({firstItem:B})}),M.state={selectedItem:$.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},M}return y(V,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(M){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==M.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,a.default)().addEventListener("resize",this.updateSizes),(0,a.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,a.default)().removeEventListener("resize",this.updateSizes),(0,a.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(M){var B=M;return M>=this.state.lastPosition&&(B=this.state.lastPosition),M<this.state.firstItem+this.state.visibleItems&&(B=this.state.firstItem),M<this.state.firstItem&&(B=M),B}},{key:"renderItems",value:function(){var M=this;return this.props.children.map(function(B,j){var I=t.default.ITEM(!1,j===M.state.selectedItem),Y={key:j,ref:function(K){return M.setThumbsRef(K,j)},className:I,onClick:M.handleClickItem.bind(M,j,M.props.children[j]),onKeyDown:M.handleClickItem.bind(M,j,M.props.children[j]),"aria-label":"".concat(M.props.labels.item," ").concat(j+1),style:{width:M.props.thumbWidth}};return e.default.createElement("li",p({},Y,{role:"button",tabIndex:0}),B)})}},{key:"render",value:function(){var M=this;if(!this.props.children)return null;var B=e.Children.count(this.props.children)>1,j=this.state.showArrows&&this.state.firstItem>0,I=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,Y={},X=-this.state.firstItem*(this.state.itemSize||0),K=(0,n.default)(X,"px",this.props.axis),me=this.props.transitionTime+"ms";return Y={WebkitTransform:K,MozTransform:K,MsTransform:K,OTransform:K,transform:K,msTransform:K,WebkitTransitionDuration:me,MozTransitionDuration:me,MsTransitionDuration:me,OTransitionDuration:me,transitionDuration:me,msTransitionDuration:me},e.default.createElement("div",{className:t.default.CAROUSEL(!1)},e.default.createElement("div",{className:t.default.WRAPPER(!1),ref:this.setItemsWrapperRef},e.default.createElement("button",{type:"button",className:t.default.ARROW_PREV(!j),onClick:function(){return M.slideRight()},"aria-label":this.props.labels.leftArrow}),B?e.default.createElement(o.default,{tagName:"ul",className:t.default.SLIDER(!1,this.state.swiping),onSwipeLeft:this.slideLeft,onSwipeRight:this.slideRight,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:Y,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):e.default.createElement("ul",{className:t.default.SLIDER(!1,this.state.swiping),ref:function(U){return M.setItemsListRef(U)},style:Y},this.renderItems()),e.default.createElement("button",{type:"button",className:t.default.ARROW_NEXT(!I),onClick:function(){return M.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),V})(e.Component);return aa.default=F,E(F,"displayName","Thumbs"),E(F,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350}),aa}var ua={},Gm;function aN(){if(Gm)return ua;Gm=1,Object.defineProperty(ua,"__esModule",{value:!0}),ua.default=void 0;var e=function(){return document};return ua.default=e,ua}var ur={},Ym;function Gy(){if(Ym)return ur;Ym=1,Object.defineProperty(ur,"__esModule",{value:!0}),ur.setPosition=ur.getPosition=ur.isKeyboardEvent=ur.defaultStatusFormatter=ur.noop=void 0;var e=H,t=r(Bd());function r(u){return u&&u.__esModule?u:{default:u}}var n=function(){};ur.noop=n;var o=function(d,p){return"".concat(d," of ").concat(p)};ur.defaultStatusFormatter=o;var a=function(d){return d?d.hasOwnProperty("key"):!1};ur.isKeyboardEvent=a;var l=function(d,p){if(p.infiniteLoop&&++d,d===0)return 0;var h=e.Children.count(p.children);if(p.centerMode&&p.axis==="horizontal"){var g=-d*p.centerSlidePercentage,y=h-1;return d&&(d!==y||p.infiniteLoop)?g+=(100-p.centerSlidePercentage)/2:d===y&&(g+=100-p.centerSlidePercentage),g}return-d*100};ur.getPosition=l;var c=function(d,p){var h={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(g){h[g]=(0,t.default)(d,"%",p)}),h};return ur.setPosition=c,ur}var Fr={},Km;function sN(){if(Km)return Fr;Km=1,Object.defineProperty(Fr,"__esModule",{value:!0}),Fr.fadeAnimationHandler=Fr.slideStopSwipingHandler=Fr.slideSwipeAnimationHandler=Fr.slideAnimationHandler=void 0;var e=H,t=n(Bd()),r=Gy();function n(h){return h&&h.__esModule?h:{default:h}}function o(h,g){var y=Object.keys(h);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(h);g&&(S=S.filter(function(v){return Object.getOwnPropertyDescriptor(h,v).enumerable})),y.push.apply(y,S)}return y}function a(h){for(var g=1;g<arguments.length;g++){var y=arguments[g]!=null?arguments[g]:{};g%2?o(Object(y),!0).forEach(function(S){l(h,S,y[S])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(y)):o(Object(y)).forEach(function(S){Object.defineProperty(h,S,Object.getOwnPropertyDescriptor(y,S))})}return h}function l(h,g,y){return g in h?Object.defineProperty(h,g,{value:y,enumerable:!0,configurable:!0,writable:!0}):h[g]=y,h}var c=function(g,y){var S={},v=y.selectedItem,b=v,m=e.Children.count(g.children)-1,w=g.infiniteLoop&&(v<0||v>m);if(w)return b<0?g.centerMode&&g.centerSlidePercentage&&g.axis==="horizontal"?S.itemListStyle=(0,r.setPosition)(-(m+2)*g.centerSlidePercentage-(100-g.centerSlidePercentage)/2,g.axis):S.itemListStyle=(0,r.setPosition)(-(m+2)*100,g.axis):b>m&&(S.itemListStyle=(0,r.setPosition)(0,g.axis)),S;var x=(0,r.getPosition)(v,g),k=(0,t.default)(x,"%",g.axis),E=g.transitionTime+"ms";return S.itemListStyle={WebkitTransform:k,msTransform:k,OTransform:k,transform:k},y.swiping||(S.itemListStyle=a(a({},S.itemListStyle),{},{WebkitTransitionDuration:E,MozTransitionDuration:E,OTransitionDuration:E,transitionDuration:E,msTransitionDuration:E})),S};Fr.slideAnimationHandler=c;var u=function(g,y,S,v){var b={},m=y.axis==="horizontal",w=e.Children.count(y.children),x=0,k=(0,r.getPosition)(S.selectedItem,y),E=y.infiniteLoop?(0,r.getPosition)(w-1,y)-100:(0,r.getPosition)(w-1,y),R=m?g.x:g.y,F=R;k===x&&R>0&&(F=0),k===E&&R<0&&(F=0);var A=k+100/(S.itemSize/F),N=Math.abs(R)>y.swipeScrollTolerance;return y.infiniteLoop&&N&&(S.selectedItem===0&&A>-100?A-=w*100:S.selectedItem===w-1&&A<-w*100&&(A+=w*100)),(!y.preventMovementUntilSwipeScrollTolerance||N||S.swipeMovementStarted)&&(S.swipeMovementStarted||v({swipeMovementStarted:!0}),b.itemListStyle=(0,r.setPosition)(A,y.axis)),N&&!S.cancelClick&&v({cancelClick:!0}),b};Fr.slideSwipeAnimationHandler=u;var d=function(g,y){var S=(0,r.getPosition)(y.selectedItem,g),v=(0,r.setPosition)(S,g.axis);return{itemListStyle:v}};Fr.slideStopSwipingHandler=d;var p=function(g,y){var S=g.transitionTime+"ms",v="ease-in-out",b={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:v,msTransitionTimingFunction:v,MozTransitionTimingFunction:v,WebkitTransitionTimingFunction:v,OTransitionTimingFunction:v};return y.swiping||(b=a(a({},b),{},{WebkitTransitionDuration:S,MozTransitionDuration:S,OTransitionDuration:S,transitionDuration:S,msTransitionDuration:S})),{slideStyle:b,selectedStyle:a(a({},b),{},{opacity:1,position:"relative"}),prevStyle:a({},b)}};return Fr.fadeAnimationHandler=p,Fr}var Zm;function lN(){if(Zm)return ia;Zm=1,Object.defineProperty(ia,"__esModule",{value:!0}),ia.default=void 0;var e=p(H),t=u(By()),r=u(Vy()),n=u(qy()),o=u(aN()),a=u(Uy()),l=Gy(),c=sN();function u($){return $&&$.__esModule?$:{default:$}}function d(){if(typeof WeakMap!="function")return null;var $=new WeakMap;return d=function(){return $},$}function p($){if($&&$.__esModule)return $;if($===null||h($)!=="object"&&typeof $!="function")return{default:$};var M=d();if(M&&M.has($))return M.get($);var B={},j=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var I in $)if(Object.prototype.hasOwnProperty.call($,I)){var Y=j?Object.getOwnPropertyDescriptor($,I):null;Y&&(Y.get||Y.set)?Object.defineProperty(B,I,Y):B[I]=$[I]}return B.default=$,M&&M.set($,B),B}function h($){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?h=function(B){return typeof B}:h=function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},h($)}function g(){return g=Object.assign||function($){for(var M=1;M<arguments.length;M++){var B=arguments[M];for(var j in B)Object.prototype.hasOwnProperty.call(B,j)&&($[j]=B[j])}return $},g.apply(this,arguments)}function y($,M){var B=Object.keys($);if(Object.getOwnPropertySymbols){var j=Object.getOwnPropertySymbols($);M&&(j=j.filter(function(I){return Object.getOwnPropertyDescriptor($,I).enumerable})),B.push.apply(B,j)}return B}function S($){for(var M=1;M<arguments.length;M++){var B=arguments[M]!=null?arguments[M]:{};M%2?y(Object(B),!0).forEach(function(j){N($,j,B[j])}):Object.getOwnPropertyDescriptors?Object.defineProperties($,Object.getOwnPropertyDescriptors(B)):y(Object(B)).forEach(function(j){Object.defineProperty($,j,Object.getOwnPropertyDescriptor(B,j))})}return $}function v($,M){if(!($ instanceof M))throw new TypeError("Cannot call a class as a function")}function b($,M){for(var B=0;B<M.length;B++){var j=M[B];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty($,j.key,j)}}function m($,M,B){return M&&b($.prototype,M),$}function w($,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");$.prototype=Object.create(M&&M.prototype,{constructor:{value:$,writable:!0,configurable:!0}}),M&&x($,M)}function x($,M){return x=Object.setPrototypeOf||function(j,I){return j.__proto__=I,j},x($,M)}function k($){var M=F();return function(){var j=A($),I;if(M){var Y=A(this).constructor;I=Reflect.construct(j,arguments,Y)}else I=j.apply(this,arguments);return E(this,I)}}function E($,M){return M&&(h(M)==="object"||typeof M=="function")?M:R($)}function R($){if($===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $}function F(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function A($){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(B){return B.__proto__||Object.getPrototypeOf(B)},A($)}function N($,M,B){return M in $?Object.defineProperty($,M,{value:B,enumerable:!0,configurable:!0,writable:!0}):$[M]=B,$}var V=(function($){w(B,$);var M=k(B);function B(j){var I;v(this,B),I=M.call(this,j),N(R(I),"thumbsRef",void 0),N(R(I),"carouselWrapperRef",void 0),N(R(I),"listRef",void 0),N(R(I),"itemsRef",void 0),N(R(I),"timer",void 0),N(R(I),"animationHandler",void 0),N(R(I),"setThumbsRef",function(X){I.thumbsRef=X}),N(R(I),"setCarouselWrapperRef",function(X){I.carouselWrapperRef=X}),N(R(I),"setListRef",function(X){I.listRef=X}),N(R(I),"setItemsRef",function(X,K){I.itemsRef||(I.itemsRef=[]),I.itemsRef[K]=X}),N(R(I),"autoPlay",function(){e.Children.count(I.props.children)<=1||(I.clearAutoPlay(),I.props.autoPlay&&(I.timer=setTimeout(function(){I.increment()},I.props.interval)))}),N(R(I),"clearAutoPlay",function(){I.timer&&clearTimeout(I.timer)}),N(R(I),"resetAutoPlay",function(){I.clearAutoPlay(),I.autoPlay()}),N(R(I),"stopOnHover",function(){I.setState({isMouseEntered:!0},I.clearAutoPlay)}),N(R(I),"startOnLeave",function(){I.setState({isMouseEntered:!1},I.autoPlay)}),N(R(I),"isFocusWithinTheCarousel",function(){return I.carouselWrapperRef?!!((0,o.default)().activeElement===I.carouselWrapperRef||I.carouselWrapperRef.contains((0,o.default)().activeElement)):!1}),N(R(I),"navigateWithKeyboard",function(X){if(I.isFocusWithinTheCarousel()){var K=I.props.axis,me=K==="horizontal",L={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},U=me?L.ArrowRight:L.ArrowDown,te=me?L.ArrowLeft:L.ArrowUp;U===X.keyCode?I.increment():te===X.keyCode&&I.decrement()}}),N(R(I),"updateSizes",function(){if(!(!I.state.initialized||!I.itemsRef||I.itemsRef.length===0)){var X=I.props.axis==="horizontal",K=I.itemsRef[0];if(K){var me=X?K.clientWidth:K.clientHeight;I.setState({itemSize:me}),I.thumbsRef&&I.thumbsRef.updateSizes()}}}),N(R(I),"setMountState",function(){I.setState({hasMount:!0}),I.updateSizes()}),N(R(I),"handleClickItem",function(X,K){if(e.Children.count(I.props.children)!==0){if(I.state.cancelClick){I.setState({cancelClick:!1});return}I.props.onClickItem(X,K),X!==I.state.selectedItem&&I.setState({selectedItem:X})}}),N(R(I),"handleOnChange",function(X,K){e.Children.count(I.props.children)<=1||I.props.onChange(X,K)}),N(R(I),"handleClickThumb",function(X,K){I.props.onClickThumb(X,K),I.moveTo(X)}),N(R(I),"onSwipeStart",function(X){I.setState({swiping:!0}),I.props.onSwipeStart(X)}),N(R(I),"onSwipeEnd",function(X){I.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),I.props.onSwipeEnd(X),I.clearAutoPlay(),I.state.autoPlay&&I.autoPlay()}),N(R(I),"onSwipeMove",function(X,K){I.props.onSwipeMove(K);var me=I.props.swipeAnimationHandler(X,I.props,I.state,I.setState.bind(R(I)));return I.setState(S({},me)),!!Object.keys(me).length}),N(R(I),"decrement",function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;I.moveTo(I.state.selectedItem-(typeof X=="number"?X:1))}),N(R(I),"increment",function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;I.moveTo(I.state.selectedItem+(typeof X=="number"?X:1))}),N(R(I),"moveTo",function(X){if(typeof X=="number"){var K=e.Children.count(I.props.children)-1;X<0&&(X=I.props.infiniteLoop?K:0),X>K&&(X=I.props.infiniteLoop?0:K),I.selectItem({selectedItem:X}),I.state.autoPlay&&I.state.isMouseEntered===!1&&I.resetAutoPlay()}}),N(R(I),"onClickNext",function(){I.increment(1)}),N(R(I),"onClickPrev",function(){I.decrement(1)}),N(R(I),"onSwipeForward",function(){I.increment(1),I.props.emulateTouch&&I.setState({cancelClick:!0})}),N(R(I),"onSwipeBackwards",function(){I.decrement(1),I.props.emulateTouch&&I.setState({cancelClick:!0})}),N(R(I),"changeItem",function(X){return function(K){(!(0,l.isKeyboardEvent)(K)||K.key==="Enter")&&I.moveTo(X)}}),N(R(I),"selectItem",function(X){I.setState(S({previousItem:I.state.selectedItem},X),function(){I.setState(I.animationHandler(I.props,I.state))}),I.handleOnChange(X.selectedItem,e.Children.toArray(I.props.children)[X.selectedItem])}),N(R(I),"getInitialImage",function(){var X=I.props.selectedItem,K=I.itemsRef&&I.itemsRef[X],me=K&&K.getElementsByTagName("img")||[];return me[0]}),N(R(I),"getVariableItemHeight",function(X){var K=I.itemsRef&&I.itemsRef[X];if(I.state.hasMount&&K&&K.children.length){var me=K.children[0].getElementsByTagName("img")||[];if(me.length>0){var L=me[0];if(!L.complete){var U=function J(){I.forceUpdate(),L.removeEventListener("load",J)};L.addEventListener("load",U)}}var te=me[0]||K.children[0],ee=te.clientHeight;return ee>0?ee:null}return null});var Y={initialized:!1,previousItem:j.selectedItem,selectedItem:j.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:j.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return I.animationHandler=typeof j.animationHandler=="function"&&j.animationHandler||j.animationHandler==="fade"&&c.fadeAnimationHandler||c.slideAnimationHandler,I.state=S(S({},Y),I.animationHandler(j,Y)),I}return m(B,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(I,Y){!I.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!I.autoFocus&&this.props.autoFocus&&this.forceFocus(),Y.swiping&&!this.state.swiping&&this.setState(S({},this.props.stopSwipingHandler(this.props,this.state))),(I.selectedItem!==this.props.selectedItem||I.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),I.autoPlay!==this.props.autoPlay&&(this.props.autoPlay?this.setupAutoPlay():this.destroyAutoPlay(),this.setState({autoPlay:this.props.autoPlay}))}},{key:"componentWillUnmount",value:function(){this.destroyCarousel()}},{key:"setupCarousel",value:function(){var I=this;this.bindEvents(),this.state.autoPlay&&e.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},function(){var Y=I.getInitialImage();Y&&!Y.complete?Y.addEventListener("load",I.setMountState):I.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var I=this.carouselWrapperRef;this.props.stopOnHover&&I&&(I.addEventListener("mouseenter",this.stopOnHover),I.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var I=this.carouselWrapperRef;this.props.stopOnHover&&I&&(I.removeEventListener("mouseenter",this.stopOnHover),I.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,a.default)().addEventListener("resize",this.updateSizes),(0,a.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,o.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,a.default)().removeEventListener("resize",this.updateSizes),(0,a.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var I=this.getInitialImage();I&&I.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,o.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var I;(I=this.carouselWrapperRef)===null||I===void 0||I.focus()}},{key:"renderItems",value:function(I){var Y=this;return this.props.children?e.Children.map(this.props.children,function(X,K){var me=K===Y.state.selectedItem,L=K===Y.state.previousItem,U=me&&Y.state.selectedStyle||L&&Y.state.prevStyle||Y.state.slideStyle||{};Y.props.centerMode&&Y.props.axis==="horizontal"&&(U=S(S({},U),{},{minWidth:Y.props.centerSlidePercentage+"%"})),Y.state.swiping&&Y.state.swipeMovementStarted&&(U=S(S({},U),{},{pointerEvents:"none"}));var te={ref:function(J){return Y.setItemsRef(J,K)},key:"itemKey"+K+(I?"clone":""),className:r.default.ITEM(!0,K===Y.state.selectedItem,K===Y.state.previousItem),onClick:Y.handleClickItem.bind(Y,K,X),style:U};return e.default.createElement("li",te,Y.props.renderItem(X,{isSelected:K===Y.state.selectedItem,isPrevious:K===Y.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var I=this,Y=this.props,X=Y.showIndicators,K=Y.labels,me=Y.renderIndicator,L=Y.children;return X?e.default.createElement("ul",{className:"control-dots"},e.Children.map(L,function(U,te){return me&&me(I.changeItem(te),te===I.state.selectedItem,te,K.item)})):null}},{key:"renderStatus",value:function(){return this.props.showStatus?e.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,e.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return!this.props.showThumbs||!this.props.children||e.Children.count(this.props.children)===0?null:e.default.createElement(n.default,{ref:this.setThumbsRef,onSelectItem:this.handleClickThumb,selectedItem:this.state.selectedItem,transitionTime:this.props.transitionTime,thumbWidth:this.props.thumbWidth,labels:this.props.labels,emulateTouch:this.props.emulateTouch},this.props.renderThumbs(this.props.children))}},{key:"render",value:function(){var I=this;if(!this.props.children||e.Children.count(this.props.children)===0)return null;var Y=this.props.swipeable&&e.Children.count(this.props.children)>1,X=this.props.axis==="horizontal",K=this.props.showArrows&&e.Children.count(this.props.children)>1,me=K&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,L=K&&(this.state.selectedItem<e.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,U=this.renderItems(!0),te=U.shift(),ee=U.pop(),J={className:r.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},ae={};if(X){if(J.onSwipeLeft=this.onSwipeForward,J.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var se=this.getVariableItemHeight(this.state.selectedItem);ae.height=se||"auto"}}else J.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,J.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,J.style=S(S({},J.style),{},{height:this.state.itemSize}),ae.height=this.state.itemSize;return e.default.createElement("div",{"aria-label":this.props.ariaLabel,className:r.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},e.default.createElement("div",{className:r.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,me,this.props.labels.leftArrow),e.default.createElement("div",{className:r.default.WRAPPER(!0,this.props.axis),style:ae},Y?e.default.createElement(t.default,g({tagName:"ul",innerRef:this.setListRef},J,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&ee,this.renderItems(),this.props.infiniteLoop&&te):e.default.createElement("ul",{className:r.default.SLIDER(!0,this.state.swiping),ref:function(ce){return I.setListRef(ce)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&ee,this.renderItems(),this.props.infiniteLoop&&te)),this.props.renderArrowNext(this.onClickNext,L,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),B})(e.default.Component);return ia.default=V,N(V,"displayName","Carousel"),N(V,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:l.noop,onClickThumb:l.noop,onChange:l.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(M,B,j){return e.default.createElement("button",{type:"button","aria-label":j,className:r.default.ARROW_PREV(!B),onClick:M})},renderArrowNext:function(M,B,j){return e.default.createElement("button",{type:"button","aria-label":j,className:r.default.ARROW_NEXT(!B),onClick:M})},renderIndicator:function(M,B,j,I){return e.default.createElement("li",{className:r.default.DOT(B),onClick:M,onKeyDown:M,value:j,key:j,role:"button",tabIndex:0,"aria-label":"".concat(I," ").concat(j+1)})},renderItem:function(M){return M},renderThumbs:function(M){var B=e.Children.map(M,function(j){var I=j;if(j.type!=="img"&&(I=e.Children.toArray(j.props.children).find(function(Y){return Y.type==="img"})),!!I)return I});return B.filter(function(j){return j}).length===0?(console.warn("No images found! Can't build the thumb list without images. If you don't need thumbs, set showThumbs={false} in the Carousel. Note that it's not possible to get images rendered inside custom components. More info at https://github.com/leandrowd/react-responsive-carousel/blob/master/TROUBLESHOOTING.md"),[]):B},statusFormatter:l.defaultStatusFormatter,selectedItem:0,showArrows:!0,showIndicators:!0,showStatus:!0,showThumbs:!0,stopOnHover:!0,swipeScrollTolerance:5,swipeable:!0,transitionTime:350,verticalSwipe:"standard",width:"100%",animationHandler:"slide",swipeAnimationHandler:c.slideSwipeAnimationHandler,stopSwipingHandler:c.slideStopSwipingHandler}),ia}var Xm={},Jm;function cN(){return Jm||(Jm=1),Xm}var Qm;function uN(){return Qm||(Qm=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Carousel",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"CarouselProps",{enumerable:!0,get:function(){return r.CarouselProps}}),Object.defineProperty(e,"Thumbs",{enumerable:!0,get:function(){return n.default}});var t=o(lN()),r=cN(),n=o(qy());function o(a){return a&&a.__esModule?a:{default:a}}})(df)),df}var fN=uN();const dN=({tip:e})=>C.jsx("div",{className:"h-full grid pb-8 px-8 place-content-center",children:Yy(e,!0)}),pN=({pages:e})=>C.jsx("div",{className:"min-h-[10rem] w-96",children:C.jsx(fN.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(t=>C.jsx(dN,{tip:t},t.key))})}),hN=({body:e,isInsideCarousel:t})=>C.jsx("article",{className:tt(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-grey-100 ",{"w-60":!t}]),children:C.jsx(Vl,{children:e,options:{overrides:{a:{component:({children:r,...n})=>C.jsxs("a",{...n,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary-dark",children:[r,C.jsx(wt.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),gN=({video:e,body:t,title:r,isInsideCarousel:n})=>C.jsxs("div",{className:tt([{"flex flex-row":!n,"flex max-h-[10rem] flex-col overflow-y-auto":n}]),children:[C.jsx("div",{className:tt([{"mr-1":!n,"mb-1":n}]),children:C.jsx("iframe",{height:n?"auto":90,width:n?"100%":160,src:e==null?void 0:e.link,title:r,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}),C.jsx("article",{className:tt(["prose prose-sm p-1 text-left text-xs text-grey-100",{"w-60 overflow-auto":!n,"-mt-6":n}]),children:C.jsx(Vl,{children:t||"",options:{overrides:{a:{component:({children:o,...a})=>C.jsxs("a",{...a,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[o,C.jsx(wt.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),Yy=(e,t)=>{switch(e.type){case Pl.TEXT:return C.jsx(hN,{body:e.body,isInsideCarousel:t});case Pl.VIDEO:return C.jsx(gN,{video:e.video,body:e.body,title:e.title,isInsideCarousel:t});case Pl.CAROUSEL:return C.jsx(pN,{pages:e.pages})}},Ky=H.createContext(void 0);function eb(e,t){const r=[];return e.forEach(n=>{n.key===t&&r.push(n)}),r}const vN=({children:e,enabled:t,baseUrl:r="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:n,show:o},a]=H.useState({tips:{},show:!0});H.useEffect(()=>{const c=new AbortController;try{fetch(`${r}/tips.json`,{signal:c.signal}).then(u=>u.json()).then(u=>{const d=u.reduce((p,h)=>eb(u,h.key).length>1?{...p,[h.key]:{type:"carousel",pages:eb(u,h.key)}}:{...p,[h.key]:h},{});a(p=>({...p,tips:d}))})}catch{}return()=>{c.abort()}},[]);const l=()=>{a(c=>({...c,show:!o}))};return C.jsx(Ky.Provider,{value:{tips:n,toggleTips:l,show:o,enabled:t},children:e})},Zy=e=>{const t=H.useContext(Ky);if(t===void 0)throw new Error("useTip must be used within a TipsContext");return{tip:e?t.tips[e]:null,toggleTips:t.toggleTips,show:t.show,enabled:t.enabled}},mN=Ul(K2)`
82
82
  &[data-state='open'] > * {
83
83
  display: block !important;
84
84
  }
85
- `,fy=({tipKey:e,side:t="right",alwaysOn:r,asButton:i=!1})=>{const{tip:s,enabled:a}=cy(e),[u,c]=B.useState(!1),f=B.useRef(null);return B.useEffect(()=>{if(f.current){const g=new IntersectionObserver(h=>{h[0].isIntersecting||c(!1)});return g.observe(f.current),()=>{f.current&&g.unobserve(f.current)}}},[]),s&&a?D.jsxs(YP,{open:u,onOpenChange:c,children:[D.jsx(wC,{ref:f,className:je("focus:outline-none",{"rounded p-1 text-gray-100 hover:bg-primary-hover":i}),onClick:g=>g.stopPropagation(),children:D.jsx("span",{className:je("group-hover:block",{hidden:!r}),children:D.jsx(ot.FdBulb,{className:"h-4 w-4 text-yellow-300"})})}),D.jsx(JP,{side:t,sideOffset:5,onClick:g=>g.stopPropagation(),children:D.jsx("div",{className:"relative rounded border border-grey-50 bg-grey-900 p-2 text-xs text-white shadow-2xl",children:uy(s)})})]}):null};var bC=Object.defineProperty,xC=(e,t,r)=>t in e?bC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Xl=(e,t,r)=>(xC(e,typeof t!="symbol"?t+"":t,r),r);let SC=class{constructor(){Xl(this,"current",this.detect()),Xl(this,"handoffState","pending"),Xl(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"}},bi=new SC,Ir=(e,t)=>{bi.isServer?B.useEffect(e,t):B.useLayoutEffect(e,t)};function xi(e){let t=B.useRef(e);return Ir(()=>{t.current=e},[e]),t}let _t=function(e){let t=xi(e);return B.useCallback((...r)=>t.current(...r),[t])};function EC(e,t,r){let[i,s]=B.useState(r),a=e!==void 0,u=B.useRef(a),c=B.useRef(!1),f=B.useRef(!1);return a&&!u.current&&!c.current?(c.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,_t(g=>(a||s(g),t==null?void 0:t(g)))]}function _C(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function qo(){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 _C(()=>{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=qo();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 sf(){let[e]=B.useState(qo);return B.useEffect(()=>()=>e.dispose(),[e]),e}function OC(){let e=typeof document>"u";return"useSyncExternalStore"in $?(t=>t.useSyncExternalStore)($)(()=>()=>{},()=>!1,()=>!e):!1}function af(){let e=OC(),[t,r]=$.useState(bi.isHandoffComplete);return t&&bi.isHandoffComplete===!1&&r(!1),$.useEffect(()=>{t!==!0&&r(!0)},[t]),$.useEffect(()=>bi.handoff(),[]),e?!1:t}var cm;let uf=(cm=B.useId)!=null?cm:function(){let e=af(),[t,r]=B.useState(e?()=>bi.nextId():null);return Ir(()=>{t===null&&r(bi.nextId())},[t]),t!=null?""+t:void 0};function Pr(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,Pr),i}function fm(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 TC(e,t){let[r,i]=B.useState(()=>fm(e));return Ir(()=>{i(fm(e))},[e.type,e.as]),Ir(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&i("button")},[r,t]),r}let AC=Symbol();function Zo(...e){let t=B.useRef(e);B.useEffect(()=>{t.current=e},[e]);let r=_t(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[AC]))?void 0:r}function Ea(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var dy=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(dy||{}),vn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(vn||{});function Xn({ourProps:e,theirProps:t,slot:r,defaultTag:i,features:s,visible:a=!0,name:u,mergeRefs:c}){c=c??RC;let f=py(t,e);if(a)return ra(f,r,i,u,c);let g=s??0;if(g&2){let{static:h=!1,...v}=f;if(h)return ra(v,r,i,u,c)}if(g&1){let{unmount:h=!0,...v}=f;return Pr(h?0:1,{0(){return null},1(){return ra({...v,hidden:!0,style:{display:"none"}},r,i,u,c)}})}return ra(f,r,i,u,c)}function ra(e,t={},r,i,s){let{as:a=r,children:u,refName:c="ref",...f}=Jl(e,["unmount","static"]),g=e.ref!==void 0?{[c]:e.ref}:{},h=typeof u=="function"?u(t):u;"className"in f&&f.className&&typeof f.className=="function"&&(f.className=f.className(t));let v={};if(t){let p=!1,y=[];for(let[x,d]of Object.entries(t))typeof d=="boolean"&&(p=!0),d===!0&&y.push(x);p&&(v["data-headlessui-state"]=y.join(" "))}if(a===B.Fragment&&Object.keys(_c(f)).length>0){if(!B.isValidElement(h)||Array.isArray(h)&&h.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${i} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(f).map(d=>` - ${d}`).join(`
86
- `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(d=>` - ${d}`).join(`
87
- `)].join(`
88
- `));let p=h.props,y=typeof(p==null?void 0:p.className)=="function"?(...d)=>Ea(p==null?void 0:p.className(...d),f.className):Ea(p==null?void 0:p.className,f.className),x=y?{className:y}:{};return B.cloneElement(h,Object.assign({},py(h.props,_c(Jl(f,["ref"]))),v,g,{ref:s(h.ref,g.ref)},x))}return B.createElement(a,Object.assign({},Jl(f,["ref"]),a!==B.Fragment&&g,a!==B.Fragment&&v),h)}function RC(...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 py(...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 c of u){if((s instanceof Event||(s==null?void 0:s.nativeEvent)instanceof Event)&&s.defaultPrevented)return;c(s,...a)}}});return t}function Jn(e){var t;return Object.assign(B.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function _c(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function Jl(e,t=[]){let r=Object.assign({},e);for(let i of t)i in r&&delete r[i];return r}let PC="div";var hy=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(hy||{});function CC(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 Xn({ourProps:a,theirProps:s,slot:{},defaultTag:PC,name:"Hidden"})}let kC=Jn(CC),lf=B.createContext(null);lf.displayName="OpenClosedContext";var Gr=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Gr||{});function gy(){return B.useContext(lf)}function $C({value:e,children:t}){return B.createElement(lf.Provider,{value:e},t)}function IC(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&&LC(r)?!1:i}function LC(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function MC(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 Oc=(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))(Oc||{});function cf(){let e=B.useRef(!1);return Ir(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let my=B.createContext(null);function vy(){let e=B.useContext(my);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,vy),t}return e}function DC(){let[e,t]=B.useState([]);return[e.length>0?e.join(" "):void 0,B.useMemo(()=>function(r){let i=_t(a=>(t(u=>[...u,a]),()=>t(u=>{let c=u.slice(),f=c.indexOf(a);return f!==-1&&c.splice(f,1),c}))),s=B.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return B.createElement(my.Provider,{value:s},r.children)},[t])]}let FC="p";function NC(e,t){let r=uf(),{id:i=`headlessui-description-${r}`,...s}=e,a=vy(),u=Zo(t);Ir(()=>a.register(i),[i,a.register]);let c={ref:u,...a.props,id:i};return Xn({ourProps:c,theirProps:s,slot:a.slot||{},defaultTag:FC,name:a.name||"Description"})}let jC=Jn(NC),zC=Object.assign(jC,{}),yy=B.createContext(null);function wy(){let e=B.useContext(yy);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,wy),t}return e}function BC(){let[e,t]=B.useState([]);return[e.length>0?e.join(" "):void 0,B.useMemo(()=>function(r){let i=_t(a=>(t(u=>[...u,a]),()=>t(u=>{let c=u.slice(),f=c.indexOf(a);return f!==-1&&c.splice(f,1),c}))),s=B.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return B.createElement(yy.Provider,{value:s},r.children)},[t])]}let WC="label";function HC(e,t){let r=uf(),{id:i=`headlessui-label-${r}`,passive:s=!1,...a}=e,u=wy(),c=Zo(t);Ir(()=>u.register(i),[i,u.register]);let f={ref:c,...u.props,id:i};return s&&("onClick"in f&&(delete f.htmlFor,delete f.onClick),"onClick"in a&&delete a.onClick),Xn({ourProps:f,theirProps:a,slot:u.slot||{},defaultTag:WC,name:u.name||"Label"})}let UC=Jn(HC),qC=Object.assign(UC,{});function ZC(e=0){let[t,r]=B.useState(e),i=cf(),s=B.useCallback(f=>{i.current&&r(g=>g|f)},[t,i]),a=B.useCallback(f=>!!(t&f),[t]),u=B.useCallback(f=>{i.current&&r(g=>g&~f)},[r,i]),c=B.useCallback(f=>{i.current&&r(g=>g^f)},[r]);return{flags:t,addFlag:s,hasFlag:a,removeFlag:u,toggleFlag:c}}let ff=B.createContext(null);ff.displayName="GroupContext";let GC=B.Fragment;function KC(e){var t;let[r,i]=B.useState(null),[s,a]=BC(),[u,c]=DC(),f=B.useMemo(()=>({switch:r,setSwitch:i,labelledby:s,describedby:u}),[r,i,s,u]),g={},h=e;return B.createElement(c,{name:"Switch.Description"},B.createElement(a,{name:"Switch.Label",props:{htmlFor:(t=f.switch)==null?void 0:t.id,onClick(v){r&&(v.currentTarget.tagName==="LABEL"&&v.preventDefault(),r.click(),r.focus({preventScroll:!0}))}}},B.createElement(ff.Provider,{value:f},Xn({ourProps:g,theirProps:h,defaultTag:GC,name:"Switch.Group"}))))}let VC="button";function YC(e,t){var r;let i=uf(),{id:s=`headlessui-switch-${i}`,checked:a,defaultChecked:u=!1,onChange:c,disabled:f=!1,name:g,value:h,form:v,...p}=e,y=B.useContext(ff),x=B.useRef(null),d=Zo(x,t,y===null?null:y.setSwitch),[b,m]=EC(a,c,u),S=_t(()=>m==null?void 0:m(!b)),E=_t(F=>{if(IC(F.currentTarget))return F.preventDefault();F.preventDefault(),S()}),R=_t(F=>{F.key===Oc.Space?(F.preventDefault(),S()):F.key===Oc.Enter&&MC(F.currentTarget)}),O=_t(F=>F.preventDefault()),k=B.useMemo(()=>({checked:b}),[b]),W={id:s,ref:d,role:"switch",type:TC(e,x),tabIndex:e.tabIndex===-1?0:(r=e.tabIndex)!=null?r:0,"aria-checked":b,"aria-labelledby":y==null?void 0:y.labelledby,"aria-describedby":y==null?void 0:y.describedby,disabled:f,onClick:E,onKeyUp:R,onKeyPress:O},M=sf();return B.useEffect(()=>{var F;let G=(F=x.current)==null?void 0:F.closest("form");G&&u!==void 0&&M.addEventListener(G,"reset",()=>{m(u)})},[x,m]),B.createElement(B.Fragment,null,g!=null&&b&&B.createElement(kC,{features:hy.Hidden,..._c({as:"input",type:"checkbox",hidden:!0,readOnly:!0,disabled:f,form:v,checked:b,name:g,value:h})}),Xn({ourProps:W,theirProps:p,slot:k,defaultTag:VC,name:"Switch"}))}let XC=Jn(YC),JC=KC,QC=Object.assign(XC,{Group:JC,Label:qC,Description:zC});function ek(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function Ql(e,...t){e&&t.length>0&&e.classList.add(...t)}function ec(e,...t){e&&t.length>0&&e.classList.remove(...t)}function tk(e,t){let r=qo();if(!e)return r.dispose;let{transitionDuration:i,transitionDelay:s}=getComputedStyle(e),[a,u]=[i,s].map(f=>{let[g=0]=f.split(",").filter(Boolean).map(h=>h.includes("ms")?parseFloat(h):parseFloat(h)*1e3).sort((h,v)=>v-h);return g}),c=a+u;if(c!==0){r.group(g=>{g.setTimeout(()=>{t(),g.dispose()},c),g.addEventListener(e,"transitionrun",h=>{h.target===h.currentTarget&&g.dispose()})});let f=r.addEventListener(e,"transitionend",g=>{g.target===g.currentTarget&&(t(),f())})}else t();return r.add(()=>t()),r.dispose}function rk(e,t,r,i){let s=r?"enter":"leave",a=qo(),u=i!==void 0?ek(i):()=>{};s==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let c=Pr(s,{enter:()=>t.enter,leave:()=>t.leave}),f=Pr(s,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),g=Pr(s,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return ec(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Ql(e,...t.base,...c,...g),a.nextFrame(()=>{ec(e,...t.base,...c,...g),Ql(e,...t.base,...c,...f),tk(e,()=>(ec(e,...t.base,...c),Ql(e,...t.base,...t.entered),u()))}),a.dispose}function nk({immediate:e,container:t,direction:r,classes:i,onStart:s,onStop:a}){let u=cf(),c=sf(),f=xi(r);Ir(()=>{e&&(f.current="enter")},[e]),Ir(()=>{let g=qo();c.add(g.dispose);let h=t.current;if(h&&f.current!=="idle"&&u.current)return g.dispose(),s.current(f.current),g.add(rk(h,i.current,f.current==="enter",()=>{g.dispose(),a.current(f.current)})),g.dispose},[r])}function pn(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let Ua=B.createContext(null);Ua.displayName="TransitionContext";var ik=(e=>(e.Visible="visible",e.Hidden="hidden",e))(ik||{});function ok(){let e=B.useContext(Ua);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function sk(){let e=B.useContext(qa);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let qa=B.createContext(null);qa.displayName="NestingContext";function Za(e){return"children"in e?Za(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function by(e,t){let r=xi(e),i=B.useRef([]),s=cf(),a=sf(),u=_t((y,x=vn.Hidden)=>{let d=i.current.findIndex(({el:b})=>b===y);d!==-1&&(Pr(x,{[vn.Unmount](){i.current.splice(d,1)},[vn.Hidden](){i.current[d].state="hidden"}}),a.microTask(()=>{var b;!Za(i)&&s.current&&((b=r.current)==null||b.call(r))}))}),c=_t(y=>{let x=i.current.find(({el:d})=>d===y);return x?x.state!=="visible"&&(x.state="visible"):i.current.push({el:y,state:"visible"}),()=>u(y,vn.Unmount)}),f=B.useRef([]),g=B.useRef(Promise.resolve()),h=B.useRef({enter:[],leave:[],idle:[]}),v=_t((y,x,d)=>{f.current.splice(0),t&&(t.chains.current[x]=t.chains.current[x].filter(([b])=>b!==y)),t==null||t.chains.current[x].push([y,new Promise(b=>{f.current.push(b)})]),t==null||t.chains.current[x].push([y,new Promise(b=>{Promise.all(h.current[x].map(([m,S])=>S)).then(()=>b())})]),x==="enter"?g.current=g.current.then(()=>t==null?void 0:t.wait.current).then(()=>d(x)):d(x)}),p=_t((y,x,d)=>{Promise.all(h.current[x].splice(0).map(([b,m])=>m)).then(()=>{var b;(b=f.current.shift())==null||b()}).then(()=>d(x))});return B.useMemo(()=>({children:i,register:c,unregister:u,onStart:v,onStop:p,wait:g,chains:h}),[c,u,i,v,p,h,g])}function ak(){}let uk=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function dm(e){var t;let r={};for(let i of uk)r[i]=(t=e[i])!=null?t:ak;return r}function lk(e){let t=B.useRef(dm(e));return B.useEffect(()=>{t.current=dm(e)},[e]),t}let ck="div",xy=dy.RenderStrategy;function fk(e,t){var r,i;let{beforeEnter:s,afterEnter:a,beforeLeave:u,afterLeave:c,enter:f,enterFrom:g,enterTo:h,entered:v,leave:p,leaveFrom:y,leaveTo:x,...d}=e,b=B.useRef(null),m=Zo(b,t),S=(r=d.unmount)==null||r?vn.Unmount:vn.Hidden,{show:E,appear:R,initial:O}=ok(),[k,W]=B.useState(E?"visible":"hidden"),M=sk(),{register:F,unregister:G}=M;B.useEffect(()=>F(b),[F,b]),B.useEffect(()=>{if(S===vn.Hidden&&b.current){if(E&&k!=="visible"){W("visible");return}return Pr(k,{hidden:()=>G(b),visible:()=>F(b)})}},[k,b,F,G,E,S]);let j=xi({base:pn(d.className),enter:pn(f),enterFrom:pn(g),enterTo:pn(h),entered:pn(v),leave:pn(p),leaveFrom:pn(y),leaveTo:pn(x)}),L=lk({beforeEnter:s,afterEnter:a,beforeLeave:u,afterLeave:c}),H=af();B.useEffect(()=>{if(H&&k==="visible"&&b.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[b,k,H]);let q=O&&!R,C=R&&E&&O,J=!H||q?"idle":E?"enter":"leave",Y=ZC(0),te=_t(ne=>Pr(ne,{enter:()=>{Y.addFlag(Gr.Opening),L.current.beforeEnter()},leave:()=>{Y.addFlag(Gr.Closing),L.current.beforeLeave()},idle:()=>{}})),de=_t(ne=>Pr(ne,{enter:()=>{Y.removeFlag(Gr.Opening),L.current.afterEnter()},leave:()=>{Y.removeFlag(Gr.Closing),L.current.afterLeave()},idle:()=>{}})),Z=by(()=>{W("hidden"),G(b)},M),Q=B.useRef(!1);nk({immediate:C,container:b,classes:j,direction:J,onStart:xi(ne=>{Q.current=!0,Z.onStart(b,ne,te)}),onStop:xi(ne=>{Q.current=!1,Z.onStop(b,ne,de),ne==="leave"&&!Za(Z)&&(W("hidden"),G(b))})});let se=d,ue={ref:m};return C?se={...se,className:Ea(d.className,...j.current.enter,...j.current.enterFrom)}:Q.current&&(se.className=Ea(d.className,(i=b.current)==null?void 0:i.className),se.className===""&&delete se.className),B.createElement(qa.Provider,{value:Z},B.createElement($C,{value:Pr(k,{visible:Gr.Open,hidden:Gr.Closed})|Y.flags},Xn({ourProps:ue,theirProps:se,defaultTag:ck,features:xy,visible:k==="visible",name:"Transition.Child"})))}function dk(e,t){let{show:r,appear:i=!1,unmount:s=!0,...a}=e,u=B.useRef(null),c=Zo(u,t);af();let f=gy();if(r===void 0&&f!==null&&(r=(f&Gr.Open)===Gr.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[g,h]=B.useState(r?"visible":"hidden"),v=by(()=>{h("hidden")}),[p,y]=B.useState(!0),x=B.useRef([r]);Ir(()=>{p!==!1&&x.current[x.current.length-1]!==r&&(x.current.push(r),y(!1))},[x,r]);let d=B.useMemo(()=>({show:r,appear:i,initial:p}),[r,i,p]);B.useEffect(()=>{if(r)h("visible");else if(!Za(v))h("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&&h("hidden")}},[r,v]);let b={unmount:s},m=_t(()=>{var E;p&&y(!1),(E=e.beforeEnter)==null||E.call(e)}),S=_t(()=>{var E;p&&y(!1),(E=e.beforeLeave)==null||E.call(e)});return B.createElement(qa.Provider,{value:v},B.createElement(Ua.Provider,{value:d},Xn({ourProps:{...b,as:B.Fragment,children:B.createElement(Sy,{ref:c,...b,...a,beforeEnter:m,beforeLeave:S})},theirProps:{},defaultTag:B.Fragment,features:xy,visible:g==="visible",name:"Transition"})))}function pk(e,t){let r=B.useContext(Ua)!==null,i=gy()!==null;return B.createElement(B.Fragment,null,!r&&i?B.createElement(Tc,{ref:t,...e}):B.createElement(Sy,{ref:t,...e}))}let Tc=Jn(dk),Sy=Jn(fk),hk=Jn(pk),_a=Object.assign(Tc,{Child:hk,Root:Tc});const tc={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"}},Ey=B.forwardRef(({onChange:e,value:t,size:r="md",className:i="ml-auto"},s)=>{const a=u=>{e(u)};return D.jsx("div",{className:je("flex items-center",i),children:D.jsx(QC,{as:"span",ref:s,checked:t,onChange:a,onKeyDown:u=>{u.key==="Enter"&&a(!t)},className:`${t?"bg-primary-dark":"bg-grey-200"}
89
- relative inline-flex shrink-0 ${tc[r].container} cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75`,children:D.jsx("span",{"aria-hidden":"true",className:`${t?tc[r].translate:"translate-x-0"}
90
- pointer-events-none inline-block ${tc[r].switch} transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})})})});function df(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Qn=df();function _y(e){Qn=e}var Po={exec:()=>null};function Ce(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 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")},gk=/^(?:[ \t]*(?:\n|$))+/,mk=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,vk=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Go=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,yk=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,pf=/(?:[*+-]|\d{1,9}[.)])/,Oy=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ty=Ce(Oy).replace(/bull/g,pf).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(),wk=Ce(Oy).replace(/bull/g,pf).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(),hf=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,bk=/^[^\n]+/,gf=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,xk=Ce(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",gf).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Sk=Ce(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,pf).getRegex(),Ga="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",mf=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ek=Ce("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",mf).replace("tag",Ga).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ay=Ce(hf).replace("hr",Go).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",Ga).getRegex(),_k=Ce(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ay).getRegex(),vf={blockquote:_k,code:mk,def:xk,fences:vk,heading:yk,hr:Go,html:Ek,lheading:Ty,list:Sk,newline:gk,paragraph:Ay,table:Po,text:bk},pm=Ce("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Go).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",Ga).getRegex(),Ok={...vf,lheading:wk,table:pm,paragraph:Ce(hf).replace("hr",Go).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",pm).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",Ga).getRegex()},Tk={...vf,html:Ce(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",mf).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:Po,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ce(hf).replace("hr",Go).replace("heading",` *#{1,6} *[^
91
- ]`).replace("lheading",Ty).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ak=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Rk=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ry=/^( {2,}|\\)\n(?!\s*$)/,Pk=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ka=/[\p{P}\p{S}]/u,yf=/[\s\p{P}\p{S}]/u,Py=/[^\s\p{P}\p{S}]/u,Ck=Ce(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,yf).getRegex(),Cy=/(?!~)[\p{P}\p{S}]/u,kk=/(?!~)[\s\p{P}\p{S}]/u,$k=/(?:[^\s\p{P}\p{S}]|~)/u,Ik=/\[(?:[^\[\]`]|`[^`]*?`)*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,ky=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Lk=Ce(ky,"u").replace(/punct/g,Ka).getRegex(),Mk=Ce(ky,"u").replace(/punct/g,Cy).getRegex(),$y="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Dk=Ce($y,"gu").replace(/notPunctSpace/g,Py).replace(/punctSpace/g,yf).replace(/punct/g,Ka).getRegex(),Fk=Ce($y,"gu").replace(/notPunctSpace/g,$k).replace(/punctSpace/g,kk).replace(/punct/g,Cy).getRegex(),Nk=Ce("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Py).replace(/punctSpace/g,yf).replace(/punct/g,Ka).getRegex(),jk=Ce(/\\(punct)/,"gu").replace(/punct/g,Ka).getRegex(),zk=Ce(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Bk=Ce(mf).replace("(?:-->|$)","-->").getRegex(),Wk=Ce("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Bk).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Oa=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Hk=Ce(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Oa).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Iy=Ce(/^!?\[(label)\]\[(ref)\]/).replace("label",Oa).replace("ref",gf).getRegex(),Ly=Ce(/^!?\[(ref)\](?:\[\])?/).replace("ref",gf).getRegex(),Uk=Ce("reflink|nolink(?!\\()","g").replace("reflink",Iy).replace("nolink",Ly).getRegex(),hm=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,wf={_backpedal:Po,anyPunctuation:jk,autolink:zk,blockSkip:Ik,br:Ry,code:Rk,del:Po,emStrongLDelim:Lk,emStrongRDelimAst:Dk,emStrongRDelimUnd:Nk,escape:Ak,link:Hk,nolink:Ly,punctuation:Ck,reflink:Iy,reflinkSearch:Uk,tag:Wk,text:Pk,url:Po},qk={...wf,link:Ce(/^!?\[(label)\]\((.*?)\)/).replace("label",Oa).getRegex(),reflink:Ce(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Oa).getRegex()},Ac={...wf,emStrongRDelimAst:Fk,emStrongLDelim:Mk,url:Ce(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",hm).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Ce(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",hm).getRegex()},Zk={...Ac,br:Ce(Ry).replace("{2,}","*").getRegex(),text:Ce(Ac.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},na={normal:vf,gfm:Ok,pedantic:Tk},mo={normal:wf,gfm:Ac,breaks:Zk,pedantic:qk},Gk={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},gm=e=>Gk[e];function Or(e,t){if(t){if(Ct.escapeTest.test(e))return e.replace(Ct.escapeReplace,gm)}else if(Ct.escapeTestNoEncode.test(e))return e.replace(Ct.escapeReplaceNoEncode,gm);return e}function mm(e){try{e=encodeURI(e).replace(Ct.percentDecode,"%")}catch{return null}return e}function vm(e,t){var a;let r=e.replace(Ct.findPipe,(u,c,f)=>{let g=!1,h=c;for(;--h>=0&&f[h]==="\\";)g=!g;return g?"|":" |"}),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 vo(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 Kk(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 ym(e,t,r,i,s){let a=t.href,u=t.title||null,c=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:c,tokens:i.inlineTokens(c)};return i.state.inLink=!1,f}function Vk(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[c]=u;return c.length>=s.length?a.slice(s.length):a}).join(`
93
- `)}var Ta=class{constructor(t){ve(this,"options");ve(this,"rules");ve(this,"lexer");this.options=t||Qn}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:vo(i,`
94
- `)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let i=r[0],s=Vk(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=vo(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:vo(r[0],`
95
- `)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let i=vo(r[0],`
85
+ `,Xy=({tipKey:e,side:t="right",alwaysOn:r,asButton:n=!1})=>{const{tip:o,enabled:a}=Zy(e),[l,c]=H.useState(!1),u=H.useRef(null);return H.useEffect(()=>{if(u.current){const d=new IntersectionObserver(p=>{p[0].isIntersecting||c(!1)});return d.observe(u.current),()=>{u.current&&d.unobserve(u.current)}}},[]),o&&a?C.jsxs(Y2,{open:l,onOpenChange:c,children:[C.jsx(mN,{ref:u,className:tt("focus:outline-none",{"rounded p-1 text-gray-100 hover:bg-primary-hover":n}),onClick:d=>d.stopPropagation(),children:C.jsx("span",{className:tt("group-hover:block",{hidden:!r}),children:C.jsx(wt.FdBulb,{className:"h-4 w-4 text-yellow-300"})})}),C.jsx(Z2,{side:t,sideOffset:5,onClick:d=>d.stopPropagation(),children:C.jsx("div",{className:"relative rounded border border-grey-50 bg-grey-900 p-2 text-xs text-white shadow-2xl",children:Yy(o)})})]}):null};function Vd(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Li=Vd();function Jy(e){Li=e}var Ra={exec:()=>null};function Fe(e,t=""){let r=typeof e=="string"?e:e.source,n={replace:(o,a)=>{let l=typeof a=="string"?a:a.source;return l=l.replace(Kt.caret,"$1"),r=r.replace(o,l),n},getRegex:()=>new RegExp(r,t)};return n}var Kt={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},bN=/^(?:[ \t]*(?:\n|$))+/,yN=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,wN=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ka=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,xN=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ud=/(?:[*+-]|\d{1,9}[.)])/,Qy=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ew=Fe(Qy).replace(/bull/g,Ud).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),SN=Fe(Qy).replace(/bull/g,Ud).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),qd=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,_N=/^[^\n]+/,Gd=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,EN=Fe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Gd).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),kN=Fe(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ud).getRegex(),bc="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Yd=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ON=Fe("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Yd).replace("tag",bc).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),tw=Fe(qd).replace("hr",Ka).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",bc).getRegex(),AN=Fe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",tw).getRegex(),Kd={blockquote:AN,code:yN,def:EN,fences:wN,heading:xN,hr:Ka,html:ON,lheading:ew,list:kN,newline:bN,paragraph:tw,table:Ra,text:_N},tb=Fe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ka).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",bc).getRegex(),TN={...Kd,lheading:SN,table:tb,paragraph:Fe(qd).replace("hr",Ka).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",tb).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",bc).getRegex()},RN={...Kd,html:Fe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Yd).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ra,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Fe(qd).replace("hr",Ka).replace("heading",` *#{1,6} *[^
86
+ ]`).replace("lheading",ew).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},CN=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,PN=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,rw=/^( {2,}|\\)\n(?!\s*$)/,IN=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,yc=/[\p{P}\p{S}]/u,Zd=/[\s\p{P}\p{S}]/u,nw=/[^\s\p{P}\p{S}]/u,NN=Fe(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Zd).getRegex(),iw=/(?!~)[\p{P}\p{S}]/u,MN=/(?!~)[\s\p{P}\p{S}]/u,DN=/(?:[^\s\p{P}\p{S}]|~)/u,$N=/\[(?:[^\[\]`]|`[^`]*?`)*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,ow=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,LN=Fe(ow,"u").replace(/punct/g,yc).getRegex(),zN=Fe(ow,"u").replace(/punct/g,iw).getRegex(),aw="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",jN=Fe(aw,"gu").replace(/notPunctSpace/g,nw).replace(/punctSpace/g,Zd).replace(/punct/g,yc).getRegex(),FN=Fe(aw,"gu").replace(/notPunctSpace/g,DN).replace(/punctSpace/g,MN).replace(/punct/g,iw).getRegex(),HN=Fe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,nw).replace(/punctSpace/g,Zd).replace(/punct/g,yc).getRegex(),WN=Fe(/\\(punct)/,"gu").replace(/punct/g,yc).getRegex(),BN=Fe(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),VN=Fe(Yd).replace("(?:-->|$)","-->").getRegex(),UN=Fe("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",VN).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Gl=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,qN=Fe(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Gl).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),sw=Fe(/^!?\[(label)\]\[(ref)\]/).replace("label",Gl).replace("ref",Gd).getRegex(),lw=Fe(/^!?\[(ref)\](?:\[\])?/).replace("ref",Gd).getRegex(),GN=Fe("reflink|nolink(?!\\()","g").replace("reflink",sw).replace("nolink",lw).getRegex(),rb=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Xd={_backpedal:Ra,anyPunctuation:WN,autolink:BN,blockSkip:$N,br:rw,code:PN,del:Ra,emStrongLDelim:LN,emStrongRDelimAst:jN,emStrongRDelimUnd:HN,escape:CN,link:qN,nolink:lw,punctuation:NN,reflink:sw,reflinkSearch:GN,tag:UN,text:IN,url:Ra},YN={...Xd,link:Fe(/^!?\[(label)\]\((.*?)\)/).replace("label",Gl).getRegex(),reflink:Fe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Gl).getRegex()},id={...Xd,emStrongRDelimAst:FN,emStrongLDelim:zN,url:Fe(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",rb).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Fe(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",rb).getRegex()},KN={...id,br:Fe(rw).replace("{2,}","*").getRegex(),text:Fe(id.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ol={normal:Kd,gfm:TN,pedantic:RN},fa={normal:Xd,gfm:id,breaks:KN,pedantic:YN},ZN={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},nb=e=>ZN[e];function Qr(e,t){if(t){if(Kt.escapeTest.test(e))return e.replace(Kt.escapeReplace,nb)}else if(Kt.escapeTestNoEncode.test(e))return e.replace(Kt.escapeReplaceNoEncode,nb);return e}function ib(e){try{e=encodeURI(e).replace(Kt.percentDecode,"%")}catch{return null}return e}function ob(e,t){var a;let r=e.replace(Kt.findPipe,(l,c,u)=>{let d=!1,p=c;for(;--p>=0&&u[p]==="\\";)d=!d;return d?"|":" |"}),n=r.split(Kt.splitPipe),o=0;if(n[0].trim()||n.shift(),n.length>0&&!((a=n.at(-1))!=null&&a.trim())&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;o<n.length;o++)n[o]=n[o].trim().replace(Kt.slashPipe,"|");return n}function da(e,t,r){let n=e.length;if(n===0)return"";let o=0;for(;o<n&&e.charAt(n-o-1)===t;)o++;return e.slice(0,n-o)}function XN(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let n=0;n<e.length;n++)if(e[n]==="\\")n++;else if(e[n]===t[0])r++;else if(e[n]===t[1]&&(r--,r<0))return n;return r>0?-2:-1}function ab(e,t,r,n,o){let a=t.href,l=t.title||null,c=e[1].replace(o.other.outputLinkReplace,"$1");n.state.inLink=!0;let u={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:a,title:l,text:c,tokens:n.inlineTokens(c)};return n.state.inLink=!1,u}function JN(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(n===null)return t;let o=n[1];return t.split(`
87
+ `).map(a=>{let l=a.match(r.other.beginningSpace);if(l===null)return a;let[c]=l;return c.length>=o.length?a.slice(o.length):a}).join(`
88
+ `)}var Yl=class{constructor(t){Oe(this,"options");Oe(this,"rules");Oe(this,"lexer");this.options=t||Li}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let n=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?n:da(n,`
89
+ `)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let n=r[0],o=JN(n,r[3]||"",this.rules);return{type:"code",raw:n,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:o}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let n=r[2].trim();if(this.rules.other.endingHash.test(n)){let o=da(n,"#");(this.options.pedantic||!o||this.rules.other.endingSpaceChar.test(o))&&(n=o.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:da(r[0],`
90
+ `)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let n=da(r[0],`
96
91
  `).split(`
97
- `),s="",a="",u=[];for(;i.length>0;){let c=!1,f=[],g;for(g=0;g<i.length;g++)if(this.rules.other.blockquoteStart.test(i[g]))f.push(i[g]),c=!0;else if(!c)f.push(i[g]);else break;i=i.slice(g);let h=f.join(`
98
- `),v=h.replace(this.rules.other.blockquoteSetextReplace,`
99
- $1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
100
- ${h}`:h,a=a?`${a}
101
- ${v}`:v;let p=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(v,u,!0),this.lexer.state.top=p,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,d=x.raw+`
102
- `+i.join(`
103
- `),b=this.blockquote(d);u[u.length-1]=b,s=s.substring(0,s.length-x.raw.length)+b.raw,a=a.substring(0,a.length-x.text.length)+b.text;break}else if((y==null?void 0:y.type)==="list"){let x=y,d=x.raw+`
104
- `+i.join(`
105
- `),b=this.list(d);u[u.length-1]=b,s=s.substring(0,s.length-y.raw.length)+b.raw,a=a.substring(0,a.length-x.raw.length)+b.raw,i=d.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),c=!1;for(;t;){let g=!1,h="",v="";if(!(r=u.exec(t))||this.rules.block.hr.test(t))break;h=r[0],t=t.substring(h.length);let p=r[2].split(`
107
- `,1)[0].replace(this.rules.other.listReplaceTabs,S=>" ".repeat(3*S.length)),y=t.split(`
108
- `,1)[0],x=!p.trim(),d=0;if(this.options.pedantic?(d=2,v=p.trimStart()):x?d=r[1].length+1:(d=r[2].search(this.rules.other.nonSpaceChar),d=d>4?1:d,v=p.slice(d),d+=r[1].length),x&&this.rules.other.blankLine.test(y)&&(h+=y+`
109
- `,t=t.substring(y.length+1),g=!0),!g){let S=this.rules.other.nextBulletRegex(d),E=this.rules.other.hrRegex(d),R=this.rules.other.fencesBeginRegex(d),O=this.rules.other.headingBeginRegex(d),k=this.rules.other.htmlBeginRegex(d);for(;t;){let W=t.split(`
110
- `,1)[0],M;if(y=W,this.options.pedantic?(y=y.replace(this.rules.other.listReplaceNesting," "),M=y):M=y.replace(this.rules.other.tabCharGlobal," "),R.test(y)||O.test(y)||k.test(y)||S.test(y)||E.test(y))break;if(M.search(this.rules.other.nonSpaceChar)>=d||!y.trim())v+=`
111
- `+M.slice(d);else{if(x||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||R.test(p)||O.test(p)||E.test(p))break;v+=`
112
- `+y}!x&&!y.trim()&&(x=!0),h+=W+`
113
- `,t=t.substring(W.length+1),p=M.slice(d)}}a.loose||(c?a.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(c=!0));let b=null,m;this.options.gfm&&(b=this.rules.other.listIsTask.exec(v),b&&(m=b[0]!=="[ ] ",v=v.replace(this.rules.other.listReplaceTask,""))),a.items.push({type:"list_item",raw:h,task:!!b,checked:m,loose:!1,text:v,tokens:[]}),a.raw+=h}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 g=0;g<a.items.length;g++)if(this.lexer.state.top=!1,a.items[g].tokens=this.lexer.blockTokens(a.items[g].text,[]),!a.loose){let h=a.items[g].tokens.filter(p=>p.type==="space"),v=h.length>0&&h.some(p=>this.rules.other.anyLine.test(p.raw));a.loose=v}if(a.loose)for(let g=0;g<a.items.length;g++)a.items[g].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 c;let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let i=vm(r[1]),s=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=(c=r[3])!=null&&c.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(vm(f,u.header.length).map((g,h)=>({text:g,tokens:this.lexer.inline(g),header:!1,align:u.align[h]})));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=vo(i.slice(0,-1),"\\");if((i.length-u.length)%2===0)return}else{let u=Kk(r[2],"()");if(u===-2)return;if(u>-1){let c=(r[0].indexOf("!")===0?5:4)+r[1].length+u;r[2]=r[2].substring(0,u),r[0]=r[0].substring(0,c).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)),ym(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 ym(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,c,f=a,g=0,h=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,r=r.slice(-1*t.length+a);(s=h.exec(r))!=null;){if(u=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!u)continue;if(c=[...u].length,s[3]||s[4]){f+=c;continue}else if((s[5]||s[6])&&a%3&&!((a+c)%3)){g+=c;continue}if(f-=c,f>0)continue;c=Math.min(c,c+f+g);let v=[...s[0]][0].length,p=t.slice(0,a+s.index+v+c);if(Math.min(a,c)%2){let x=p.slice(1,-1);return{type:"em",raw:p,text:x,tokens:this.lexer.inlineTokens(x)}}let y=p.slice(2,-2);return{type:"strong",raw:p,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}}}},gr=class Rc{constructor(t){ve(this,"tokens");ve(this,"options");ve(this,"state");ve(this,"tokenizer");ve(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Qn,this.options.tokenizer=this.options.tokenizer||new Ta,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:na.normal,inline:mo.normal};this.options.pedantic?(r.block=na.pedantic,r.inline=mo.pedantic):this.options.gfm&&(r.block=na.gfm,this.options.breaks?r.inline=mo.breaks:r.inline=mo.gfm),this.tokenizer.rules=r}static get rules(){return{block:na,inline:mo}}static lex(t,r){return new Rc(r).lex(t)}static lexInline(t,r){return new Rc(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 c;if((a=(s=this.options.extensions)==null?void 0:s.block)!=null&&a.some(g=>(c=g.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 g=r.at(-1);c.raw.length===1&&g!==void 0?g.raw+=`
117
- `:r.push(c);continue}if(c=this.tokenizer.code(t)){t=t.substring(c.raw.length);let g=r.at(-1);(g==null?void 0:g.type)==="paragraph"||(g==null?void 0:g.type)==="text"?(g.raw+=(g.raw.endsWith(`
92
+ `),o="",a="",l=[];for(;n.length>0;){let c=!1,u=[],d;for(d=0;d<n.length;d++)if(this.rules.other.blockquoteStart.test(n[d]))u.push(n[d]),c=!0;else if(!c)u.push(n[d]);else break;n=n.slice(d);let p=u.join(`
93
+ `),h=p.replace(this.rules.other.blockquoteSetextReplace,`
94
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");o=o?`${o}
95
+ ${p}`:p,a=a?`${a}
96
+ ${h}`:h;let g=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(h,l,!0),this.lexer.state.top=g,n.length===0)break;let y=l.at(-1);if((y==null?void 0:y.type)==="code")break;if((y==null?void 0:y.type)==="blockquote"){let S=y,v=S.raw+`
97
+ `+n.join(`
98
+ `),b=this.blockquote(v);l[l.length-1]=b,o=o.substring(0,o.length-S.raw.length)+b.raw,a=a.substring(0,a.length-S.text.length)+b.text;break}else if((y==null?void 0:y.type)==="list"){let S=y,v=S.raw+`
99
+ `+n.join(`
100
+ `),b=this.list(v);l[l.length-1]=b,o=o.substring(0,o.length-y.raw.length)+b.raw,a=a.substring(0,a.length-S.raw.length)+b.raw,n=v.substring(l.at(-1).raw.length).split(`
101
+ `);continue}}return{type:"blockquote",raw:o,tokens:l,text:a}}}list(t){let r=this.rules.block.list.exec(t);if(r){let n=r[1].trim(),o=n.length>1,a={type:"list",raw:"",ordered:o,start:o?+n.slice(0,-1):"",loose:!1,items:[]};n=o?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=o?n:"[*+-]");let l=this.rules.other.listItemRegex(n),c=!1;for(;t;){let d=!1,p="",h="";if(!(r=l.exec(t))||this.rules.block.hr.test(t))break;p=r[0],t=t.substring(p.length);let g=r[2].split(`
102
+ `,1)[0].replace(this.rules.other.listReplaceTabs,w=>" ".repeat(3*w.length)),y=t.split(`
103
+ `,1)[0],S=!g.trim(),v=0;if(this.options.pedantic?(v=2,h=g.trimStart()):S?v=r[1].length+1:(v=r[2].search(this.rules.other.nonSpaceChar),v=v>4?1:v,h=g.slice(v),v+=r[1].length),S&&this.rules.other.blankLine.test(y)&&(p+=y+`
104
+ `,t=t.substring(y.length+1),d=!0),!d){let w=this.rules.other.nextBulletRegex(v),x=this.rules.other.hrRegex(v),k=this.rules.other.fencesBeginRegex(v),E=this.rules.other.headingBeginRegex(v),R=this.rules.other.htmlBeginRegex(v);for(;t;){let F=t.split(`
105
+ `,1)[0],A;if(y=F,this.options.pedantic?(y=y.replace(this.rules.other.listReplaceNesting," "),A=y):A=y.replace(this.rules.other.tabCharGlobal," "),k.test(y)||E.test(y)||R.test(y)||w.test(y)||x.test(y))break;if(A.search(this.rules.other.nonSpaceChar)>=v||!y.trim())h+=`
106
+ `+A.slice(v);else{if(S||g.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||k.test(g)||E.test(g)||x.test(g))break;h+=`
107
+ `+y}!S&&!y.trim()&&(S=!0),p+=F+`
108
+ `,t=t.substring(F.length+1),g=A.slice(v)}}a.loose||(c?a.loose=!0:this.rules.other.doubleBlankLine.test(p)&&(c=!0));let b=null,m;this.options.gfm&&(b=this.rules.other.listIsTask.exec(h),b&&(m=b[0]!=="[ ] ",h=h.replace(this.rules.other.listReplaceTask,""))),a.items.push({type:"list_item",raw:p,task:!!b,checked:m,loose:!1,text:h,tokens:[]}),a.raw+=p}let u=a.items.at(-1);if(u)u.raw=u.raw.trimEnd(),u.text=u.text.trimEnd();else return;a.raw=a.raw.trimEnd();for(let d=0;d<a.items.length;d++)if(this.lexer.state.top=!1,a.items[d].tokens=this.lexer.blockTokens(a.items[d].text,[]),!a.loose){let p=a.items[d].tokens.filter(g=>g.type==="space"),h=p.length>0&&p.some(g=>this.rules.other.anyLine.test(g.raw));a.loose=h}if(a.loose)for(let d=0;d<a.items.length;d++)a.items[d].loose=!0;return a}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let n=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),o=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:n,raw:r[0],href:o,title:a}}}table(t){var c;let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let n=ob(r[1]),o=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=(c=r[3])!=null&&c.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
109
+ `):[],l={type:"table",raw:r[0],header:[],align:[],rows:[]};if(n.length===o.length){for(let u of o)this.rules.other.tableAlignRight.test(u)?l.align.push("right"):this.rules.other.tableAlignCenter.test(u)?l.align.push("center"):this.rules.other.tableAlignLeft.test(u)?l.align.push("left"):l.align.push(null);for(let u=0;u<n.length;u++)l.header.push({text:n[u],tokens:this.lexer.inline(n[u]),header:!0,align:l.align[u]});for(let u of a)l.rows.push(ob(u,l.header.length).map((d,p)=>({text:d,tokens:this.lexer.inline(d),header:!1,align:l.align[p]})));return l}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let n=r[1].charAt(r[1].length-1)===`
110
+ `?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:n,tokens:this.lexer.inline(n)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let n=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let l=da(n.slice(0,-1),"\\");if((n.length-l.length)%2===0)return}else{let l=XN(r[2],"()");if(l===-2)return;if(l>-1){let c=(r[0].indexOf("!")===0?5:4)+r[1].length+l;r[2]=r[2].substring(0,l),r[0]=r[0].substring(0,c).trim(),r[3]=""}}let o=r[2],a="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(o);l&&(o=l[1],a=l[3])}else a=r[3]?r[3].slice(1,-1):"";return o=o.trim(),this.rules.other.startAngleBracket.test(o)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?o=o.slice(1):o=o.slice(1,-1)),ab(r,{href:o&&o.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let o=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),a=r[o.toLowerCase()];if(!a){let l=n[0].charAt(0);return{type:"text",raw:l,text:l}}return ab(n,a,n[0],this.lexer,this.rules)}}emStrong(t,r,n=""){let o=this.rules.inline.emStrongLDelim.exec(t);if(!(!o||o[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(o[1]||o[2])||!n||this.rules.inline.punctuation.exec(n))){let a=[...o[0]].length-1,l,c,u=a,d=0,p=o[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(p.lastIndex=0,r=r.slice(-1*t.length+a);(o=p.exec(r))!=null;){if(l=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!l)continue;if(c=[...l].length,o[3]||o[4]){u+=c;continue}else if((o[5]||o[6])&&a%3&&!((a+c)%3)){d+=c;continue}if(u-=c,u>0)continue;c=Math.min(c,c+u+d);let h=[...o[0]][0].length,g=t.slice(0,a+o.index+h+c);if(Math.min(a,c)%2){let S=g.slice(1,-1);return{type:"em",raw:g,text:S,tokens:this.lexer.inlineTokens(S)}}let y=g.slice(2,-2);return{type:"strong",raw:g,text:y,tokens:this.lexer.inlineTokens(y)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let n=r[2].replace(this.rules.other.newLineCharGlobal," "),o=this.rules.other.nonSpaceChar.test(n),a=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return o&&a&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:r[0],text:n}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let n,o;return r[2]==="@"?(n=r[1],o="mailto:"+n):(n=r[1],o=n),{type:"link",raw:r[0],text:n,href:o,tokens:[{type:"text",raw:n,text:n}]}}}url(t){var n;let r;if(r=this.rules.inline.url.exec(t)){let o,a;if(r[2]==="@")o=r[0],a="mailto:"+o;else{let l;do l=r[0],r[0]=((n=this.rules.inline._backpedal.exec(r[0]))==null?void 0:n[0])??"";while(l!==r[0]);o=r[0],r[1]==="www."?a="http://"+r[0]:a=r[0]}return{type:"link",raw:r[0],text:o,href:a,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let n=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:n}}}},Hr=class od{constructor(t){Oe(this,"tokens");Oe(this,"options");Oe(this,"state");Oe(this,"tokenizer");Oe(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Li,this.options.tokenizer=this.options.tokenizer||new Yl,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Kt,block:ol.normal,inline:fa.normal};this.options.pedantic?(r.block=ol.pedantic,r.inline=fa.pedantic):this.options.gfm&&(r.block=ol.gfm,this.options.breaks?r.inline=fa.breaks:r.inline=fa.gfm),this.tokenizer.rules=r}static get rules(){return{block:ol,inline:fa}}static lex(t,r){return new od(r).lex(t)}static lexInline(t,r){return new od(r).inlineTokens(t)}lex(t){t=t.replace(Kt.carriageReturn,`
111
+ `),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let n=this.inlineQueue[r];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],n=!1){var o,a,l;for(this.options.pedantic&&(t=t.replace(Kt.tabCharGlobal," ").replace(Kt.spaceLine,""));t;){let c;if((a=(o=this.options.extensions)==null?void 0:o.block)!=null&&a.some(d=>(c=d.call({lexer:this},t,r))?(t=t.substring(c.raw.length),r.push(c),!0):!1))continue;if(c=this.tokenizer.space(t)){t=t.substring(c.raw.length);let d=r.at(-1);c.raw.length===1&&d!==void 0?d.raw+=`
112
+ `:r.push(c);continue}if(c=this.tokenizer.code(t)){t=t.substring(c.raw.length);let d=r.at(-1);(d==null?void 0:d.type)==="paragraph"||(d==null?void 0:d.type)==="text"?(d.raw+=(d.raw.endsWith(`
118
113
  `)?"":`
119
- `)+c.raw,g.text+=`
120
- `+c.text,this.inlineQueue.at(-1).src=g.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 g=r.at(-1);(g==null?void 0:g.type)==="paragraph"||(g==null?void 0:g.type)==="text"?(g.raw+=(g.raw.endsWith(`
114
+ `)+c.raw,d.text+=`
115
+ `+c.text,this.inlineQueue.at(-1).src=d.text):r.push(c);continue}if(c=this.tokenizer.fences(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.heading(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.hr(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.blockquote(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.list(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.html(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.def(t)){t=t.substring(c.raw.length);let d=r.at(-1);(d==null?void 0:d.type)==="paragraph"||(d==null?void 0:d.type)==="text"?(d.raw+=(d.raw.endsWith(`
121
116
  `)?"":`
122
- `)+c.raw,g.text+=`
123
- `+c.raw,this.inlineQueue.at(-1).src=g.text):this.tokens.links[c.tag]||(this.tokens.links[c.tag]={href:c.href,title:c.title},r.push(c));continue}if(c=this.tokenizer.table(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.lheading(t)){t=t.substring(c.raw.length),r.push(c);continue}let f=t;if((u=this.options.extensions)!=null&&u.startBlock){let g=1/0,h=t.slice(1),v;this.options.extensions.startBlock.forEach(p=>{v=p.call({lexer:this},h),typeof v=="number"&&v>=0&&(g=Math.min(g,v))}),g<1/0&&g>=0&&(f=t.substring(0,g+1))}if(this.state.top&&(c=this.tokenizer.paragraph(f))){let g=r.at(-1);i&&(g==null?void 0:g.type)==="paragraph"?(g.raw+=(g.raw.endsWith(`
117
+ `)+c.raw,d.text+=`
118
+ `+c.raw,this.inlineQueue.at(-1).src=d.text):this.tokens.links[c.tag]||(this.tokens.links[c.tag]={href:c.href,title:c.title},r.push(c));continue}if(c=this.tokenizer.table(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.lheading(t)){t=t.substring(c.raw.length),r.push(c);continue}let u=t;if((l=this.options.extensions)!=null&&l.startBlock){let d=1/0,p=t.slice(1),h;this.options.extensions.startBlock.forEach(g=>{h=g.call({lexer:this},p),typeof h=="number"&&h>=0&&(d=Math.min(d,h))}),d<1/0&&d>=0&&(u=t.substring(0,d+1))}if(this.state.top&&(c=this.tokenizer.paragraph(u))){let d=r.at(-1);n&&(d==null?void 0:d.type)==="paragraph"?(d.raw+=(d.raw.endsWith(`
124
119
  `)?"":`
125
- `)+c.raw,g.text+=`
126
- `+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=g.text):r.push(c),i=f.length!==t.length,t=t.substring(c.raw.length);continue}if(c=this.tokenizer.text(t)){t=t.substring(c.raw.length);let g=r.at(-1);(g==null?void 0:g.type)==="text"?(g.raw+=(g.raw.endsWith(`
120
+ `)+c.raw,d.text+=`
121
+ `+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=d.text):r.push(c),n=u.length!==t.length,t=t.substring(c.raw.length);continue}if(c=this.tokenizer.text(t)){t=t.substring(c.raw.length);let d=r.at(-1);(d==null?void 0:d.type)==="text"?(d.raw+=(d.raw.endsWith(`
127
122
  `)?"":`
128
- `)+c.raw,g.text+=`
129
- `+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=g.text):r.push(c);continue}if(t){let g="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(g);break}else throw new Error(g)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var c,f,g,h,v;let i=t,s=null;if(this.tokens.links){let p=Object.keys(this.tokens.links);if(p.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)p.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);for(;(s=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)i=i.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=((f=(c=this.options.hooks)==null?void 0:c.emStrongMask)==null?void 0:f.call({lexer:this},i))??i;let a=!1,u="";for(;t;){a||(u=""),a=!1;let p;if((h=(g=this.options.extensions)==null?void 0:g.inline)!=null&&h.some(x=>(p=x.call({lexer:this},t,r))?(t=t.substring(p.raw.length),r.push(p),!0):!1))continue;if(p=this.tokenizer.escape(t)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.tag(t)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.link(t)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(p.raw.length);let x=r.at(-1);p.type==="text"&&(x==null?void 0:x.type)==="text"?(x.raw+=p.raw,x.text+=p.text):r.push(p);continue}if(p=this.tokenizer.emStrong(t,i,u)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.codespan(t)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.br(t)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.del(t)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.autolink(t)){t=t.substring(p.raw.length),r.push(p);continue}if(!this.state.inLink&&(p=this.tokenizer.url(t))){t=t.substring(p.raw.length),r.push(p);continue}let y=t;if((v=this.options.extensions)!=null&&v.startInline){let x=1/0,d=t.slice(1),b;this.options.extensions.startInline.forEach(m=>{b=m.call({lexer:this},d),typeof b=="number"&&b>=0&&(x=Math.min(x,b))}),x<1/0&&x>=0&&(y=t.substring(0,x+1))}if(p=this.tokenizer.inlineText(y)){t=t.substring(p.raw.length),p.raw.slice(-1)!=="_"&&(u=p.raw.slice(-1)),a=!0;let x=r.at(-1);(x==null?void 0:x.type)==="text"?(x.raw+=p.raw,x.text+=p.text):r.push(p);continue}if(t){let x="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(x);break}else throw new Error(x)}}return r}},Aa=class{constructor(t){ve(this,"options");ve(this,"parser");this.options=t||Qn}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-'+Or(s)+'">'+(i?a:Or(a,!0))+`</code></pre>
131
- `:"<pre><code>"+(i?a:Or(a,!0))+`</code></pre>
123
+ `)+c.raw,d.text+=`
124
+ `+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=d.text):r.push(c);continue}if(t){let d="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var c,u,d,p,h;let n=t,o=null;if(this.tokens.links){let g=Object.keys(this.tokens.links);if(g.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)g.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,o.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(o=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)n=n.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=((u=(c=this.options.hooks)==null?void 0:c.emStrongMask)==null?void 0:u.call({lexer:this},n))??n;let a=!1,l="";for(;t;){a||(l=""),a=!1;let g;if((p=(d=this.options.extensions)==null?void 0:d.inline)!=null&&p.some(S=>(g=S.call({lexer:this},t,r))?(t=t.substring(g.raw.length),r.push(g),!0):!1))continue;if(g=this.tokenizer.escape(t)){t=t.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.tag(t)){t=t.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.link(t)){t=t.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(g.raw.length);let S=r.at(-1);g.type==="text"&&(S==null?void 0:S.type)==="text"?(S.raw+=g.raw,S.text+=g.text):r.push(g);continue}if(g=this.tokenizer.emStrong(t,n,l)){t=t.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.codespan(t)){t=t.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.br(t)){t=t.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.del(t)){t=t.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.autolink(t)){t=t.substring(g.raw.length),r.push(g);continue}if(!this.state.inLink&&(g=this.tokenizer.url(t))){t=t.substring(g.raw.length),r.push(g);continue}let y=t;if((h=this.options.extensions)!=null&&h.startInline){let S=1/0,v=t.slice(1),b;this.options.extensions.startInline.forEach(m=>{b=m.call({lexer:this},v),typeof b=="number"&&b>=0&&(S=Math.min(S,b))}),S<1/0&&S>=0&&(y=t.substring(0,S+1))}if(g=this.tokenizer.inlineText(y)){t=t.substring(g.raw.length),g.raw.slice(-1)!=="_"&&(l=g.raw.slice(-1)),a=!0;let S=r.at(-1);(S==null?void 0:S.type)==="text"?(S.raw+=g.raw,S.text+=g.text):r.push(g);continue}if(t){let S="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(S);break}else throw new Error(S)}}return r}},Kl=class{constructor(t){Oe(this,"options");Oe(this,"parser");this.options=t||Li}space(t){return""}code({text:t,lang:r,escaped:n}){var l;let o=(l=(r||"").match(Kt.notSpaceStart))==null?void 0:l[0],a=t.replace(Kt.endingNewline,"")+`
125
+ `;return o?'<pre><code class="language-'+Qr(o)+'">'+(n?a:Qr(a,!0))+`</code></pre>
126
+ `:"<pre><code>"+(n?a:Qr(a,!0))+`</code></pre>
132
127
  `}blockquote({tokens:t}){return`<blockquote>
133
128
  ${this.parser.parse(t)}</blockquote>
134
129
  `}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
135
130
  `}hr(t){return`<hr>
136
- `}list(t){let r=t.ordered,i=t.start,s="";for(let c=0;c<t.items.length;c++){let f=t.items[c];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+" "+Or(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>
131
+ `}list(t){let r=t.ordered,n=t.start,o="";for(let c=0;c<t.items.length;c++){let u=t.items[c];o+=this.listitem(u)}let a=r?"ol":"ul",l=r&&n!==1?' start="'+n+'"':"";return"<"+a+l+`>
132
+ `+o+"</"+a+`>
133
+ `}listitem(t){var n;let r="";if(t.task){let o=this.checkbox({checked:!!t.checked});t.loose?((n=t.tokens[0])==null?void 0:n.type)==="paragraph"?(t.tokens[0].text=o+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=o+" "+Qr(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:o+" ",text:o+" ",escaped:!0}):r+=o+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`<li>${r}</li>
139
134
  `}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 c=0;c<u.length;c++)i+=this.tablecell(u[c]);s+=this.tablerow({text:i})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
135
+ `}table(t){let r="",n="";for(let a=0;a<t.header.length;a++)n+=this.tablecell(t.header[a]);r+=this.tablerow({text:n});let o="";for(let a=0;a<t.rows.length;a++){let l=t.rows[a];n="";for(let c=0;c<l.length;c++)n+=this.tablecell(l[c]);o+=this.tablerow({text:n})}return o&&(o=`<tbody>${o}</tbody>`),`<table>
141
136
  <thead>
142
137
  `+r+`</thead>
143
- `+s+`</table>
138
+ `+o+`</table>
144
139
  `}tablerow({text:t}){return`<tr>
145
140
  ${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>${Or(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=mm(t);if(a===null)return s;t=a;let u='<a href="'+t+'"';return r&&(u+=' title="'+Or(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=mm(t);if(a===null)return Or(i);t=a;let u=`<img src="${t}" alt="${i}"`;return r&&(u+=` title="${Or(r)}"`),u+=">",u}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Or(t.text)}},bf=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""}},mr=class Pc{constructor(t){ve(this,"options");ve(this,"renderer");ve(this,"textRenderer");this.options=t||Qn,this.options.renderer=this.options.renderer||new Aa,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new bf}static parse(t,r){return new Pc(r).parse(t)}static parseInline(t,r){return new Pc(r).parseInline(t)}parse(t,r=!0){var s,a;let i="";for(let u=0;u<t.length;u++){let c=t[u];if((a=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&a[c.type]){let g=c,h=this.options.extensions.renderers[g.type].call({parser:this},g);if(h!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(g.type)){i+=h||"";continue}}let f=c;switch(f.type){case"space":{i+=this.renderer.space(f);continue}case"hr":{i+=this.renderer.hr(f);continue}case"heading":{i+=this.renderer.heading(f);continue}case"code":{i+=this.renderer.code(f);continue}case"table":{i+=this.renderer.table(f);continue}case"blockquote":{i+=this.renderer.blockquote(f);continue}case"list":{i+=this.renderer.list(f);continue}case"html":{i+=this.renderer.html(f);continue}case"def":{i+=this.renderer.def(f);continue}case"paragraph":{i+=this.renderer.paragraph(f);continue}case"text":{let g=f,h=this.renderer.text(g);for(;u+1<t.length&&t[u+1].type==="text";)g=t[++u],h+=`
148
- `+this.renderer.text(g);r?i+=this.renderer.paragraph({type:"paragraph",raw:h,text:h,tokens:[{type:"text",raw:h,text:h,escaped:!0}]}):i+=h;continue}default:{let g='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(g),"";throw new Error(g)}}}return i}parseInline(t,r=this.renderer){var s,a;let i="";for(let u=0;u<t.length;u++){let c=t[u];if((a=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&a[c.type]){let g=this.options.extensions.renderers[c.type].call({parser:this},c);if(g!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(c.type)){i+=g||"";continue}}let f=c;switch(f.type){case"escape":{i+=r.text(f);break}case"html":{i+=r.html(f);break}case"link":{i+=r.link(f);break}case"image":{i+=r.image(f);break}case"strong":{i+=r.strong(f);break}case"em":{i+=r.em(f);break}case"codespan":{i+=r.codespan(f);break}case"br":{i+=r.br(f);break}case"del":{i+=r.del(f);break}case"text":{i+=r.text(f);break}default:{let g='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(g),"";throw new Error(g)}}}return i}},ua,bo=(ua=class{constructor(t){ve(this,"options");ve(this,"block");this.options=t||Qn}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?gr.lex:gr.lexInline}provideParser(){return this.block?mr.parse:mr.parseInline}},ve(ua,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),ve(ua,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),ua),My=class{constructor(...t){ve(this,"defaults",df());ve(this,"options",this.setOptions);ve(this,"parse",this.parseMarkdown(!0));ve(this,"parseInline",this.parseMarkdown(!1));ve(this,"Parser",mr);ve(this,"Renderer",Aa);ve(this,"TextRenderer",bf);ve(this,"Lexer",gr);ve(this,"Tokenizer",Ta);ve(this,"Hooks",bo);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 c=u;for(let f of c.header)i=i.concat(this.walkTokens(f.tokens,r));for(let f of c.rows)for(let g of f)i=i.concat(this.walkTokens(g.tokens,r));break}case"list":{let c=u;i=i.concat(this.walkTokens(c.items,r));break}default:{let c=u;(a=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&a[c.type]?this.defaults.extensions.childTokens[c.type].forEach(f=>{let g=c[f].flat(1/0);i=i.concat(this.walkTokens(g,r))}):c.tokens&&(i=i.concat(this.walkTokens(c.tokens,r)))}}return i}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let 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(...c){let f=a.renderer.apply(this,c);return f===!1&&(f=u.apply(this,c)),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 Aa(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 c=u,f=i.renderer[c],g=a[c];a[c]=(...h)=>{let v=f.apply(a,h);return v===!1&&(v=g.apply(a,h)),v||""}}s.renderer=a}if(i.tokenizer){let a=this.defaults.tokenizer||new Ta(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 c=u,f=i.tokenizer[c],g=a[c];a[c]=(...h)=>{let v=f.apply(a,h);return v===!1&&(v=g.apply(a,h)),v}}s.tokenizer=a}if(i.hooks){let a=this.defaults.hooks||new bo;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 c=u,f=i.hooks[c],g=a[c];bo.passThroughHooks.has(u)?a[c]=h=>{if(this.defaults.async&&bo.passThroughHooksRespectAsync.has(u))return(async()=>{let p=await f.call(a,h);return g.call(a,p)})();let v=f.call(a,h);return g.call(a,v)}:a[c]=(...h)=>{if(this.defaults.async)return(async()=>{let p=await f.apply(a,h);return p===!1&&(p=await g.apply(a,h)),p})();let v=f.apply(a,h);return v===!1&&(v=g.apply(a,h)),v}}s.hooks=a}if(i.walkTokens){let a=this.defaults.walkTokens,u=i.walkTokens;s.walkTokens=function(c){let f=[];return f.push(u.call(this,c)),a&&(f=f.concat(a.call(this,c))),f}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return gr.lex(t,r??this.defaults)}parser(t,r){return mr.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 c=a.hooks?await a.hooks.preprocess(r):r,f=await(a.hooks?await a.hooks.provideLexer():t?gr.lex:gr.lexInline)(c,a),g=a.hooks?await a.hooks.processAllTokens(f):f;a.walkTokens&&await Promise.all(this.walkTokens(g,a.walkTokens));let h=await(a.hooks?await a.hooks.provideParser():t?mr.parse:mr.parseInline)(g,a);return a.hooks?await a.hooks.postprocess(h):h})().catch(u);try{a.hooks&&(r=a.hooks.preprocess(r));let c=(a.hooks?a.hooks.provideLexer():t?gr.lex:gr.lexInline)(r,a);a.hooks&&(c=a.hooks.processAllTokens(c)),a.walkTokens&&this.walkTokens(c,a.walkTokens);let f=(a.hooks?a.hooks.provideParser():t?mr.parse:mr.parseInline)(c,a);return a.hooks&&(f=a.hooks.postprocess(f)),f}catch(c){return u(c)}}}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>"+Or(i.message+"",!0)+"</pre>";return r?Promise.resolve(s):s}if(r)return Promise.reject(i);throw i}}},Kn=new My;function ze(e,t){return Kn.parse(e,t)}ze.options=ze.setOptions=function(e){return Kn.setOptions(e),ze.defaults=Kn.defaults,_y(ze.defaults),ze};ze.getDefaults=df;ze.defaults=Qn;ze.use=function(...e){return Kn.use(...e),ze.defaults=Kn.defaults,_y(ze.defaults),ze};ze.walkTokens=function(e,t){return Kn.walkTokens(e,t)};ze.parseInline=Kn.parseInline;ze.Parser=mr;ze.parser=mr.parse;ze.Renderer=Aa;ze.TextRenderer=bf;ze.Lexer=gr;ze.lexer=gr.lex;ze.Tokenizer=Ta;ze.Hooks=bo;ze.parse=ze;ze.options;ze.setOptions;ze.use;ze.walkTokens;ze.parseInline;mr.parse;gr.lex;const Yk={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Dy=/&(?:amp|lt|gt|quot|#(?:0+)?39);/g,Xk=RegExp(Dy.source),wm=(e="")=>Xk.test(e)?e.replace(Dy,t=>Yk[t]||"'"):e,bm=(e,t)=>{if(!t)return e;try{return new URL(e,t).href}catch{return e}};var Jk=class{constructor(e){ve(this,"renderer");this.renderer=e.renderer}parse(e){this.renderer.elIdList.push(0);const t=e.map(r=>{switch(r.type){case"space":return null;case"heading":{const i=r.depth;return this.renderer.heading(this.parseInline(r.tokens),i)}case"paragraph":return this.renderer.paragraph(this.parseInline(r.tokens));case"text":{const i=r;return i.tokens?this.parseInline(i.tokens):r.text}case"blockquote":{const i=r,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((g,h)=>this.renderer.tableCell(this.parseInline(g.tokens),{header:!0,align:r.align[h]}));this.renderer.elIdList.pop();const a=this.renderer.tableRow(s),u=this.renderer.tableHeader(a);this.renderer.elIdList.push(0);const c=i.rows.map(g=>{this.renderer.elIdList.push(0);const h=g.map((v,p)=>this.renderer.tableCell(this.parseInline(v.tokens),{header:!1,align:r.align[p]}));return this.renderer.elIdList.pop(),this.renderer.tableRow(h)});this.renderer.elIdList.pop();const f=this.renderer.tableBody(c);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(wm(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(wm(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}},Qk=Jk,hn,He,it,Cc,Jm,e$=(Jm=class{constructor(e={}){Et(this,He);ve(this,"elIdList",[]);Et(this,hn);const{renderer:t}=e;tt(this,hn,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 $e(this,He,Cc).call(this),a.apply(this,u)},writable:!0,enumerable:!0,configurable:!0})})}get elementId(){return this.elIdList.join("-")}heading(e,t){return $e(this,He,it).call(this,`h${t}`,e)}paragraph(e){return $e(this,He,it).call(this,"p",e)}link(e,t){const r=bm(e,re(this,hn).baseURL),i=re(this,hn).openLinksInNewTab?"_blank":null;return $e(this,He,it).call(this,"a",t,{href:r,target:i})}image(e,t,r=null){const i=bm(e,re(this,hn).baseURL);return $e(this,He,it).call(this,"img",null,{src:i,alt:t,title:r})}codespan(e,t=null){const r=t?`${re(this,hn).langPrefix}${t}`:null;return $e(this,He,it).call(this,"code",e,{className:r})}code(e,t){return $e(this,He,it).call(this,"pre",this.codespan(e,t))}blockquote(e){return $e(this,He,it).call(this,"blockquote",e)}list(e,t,r){return $e(this,He,it).call(this,t?"ol":"ul",e,t&&r!==1?{start:r}:{})}listItem(e){return $e(this,He,it).call(this,"li",e)}checkbox(e){return $e(this,He,it).call(this,"input",null,{type:"checkbox",disabled:!0,checked:e})}table(e){return $e(this,He,it).call(this,"table",e)}tableHeader(e){return $e(this,He,it).call(this,"thead",e)}tableBody(e){return $e(this,He,it).call(this,"tbody",e)}tableRow(e){return $e(this,He,it).call(this,"tr",e)}tableCell(e,t){const r=t.header?"th":"td";return $e(this,He,it).call(this,r,e,{align:t.align})}strong(e){return $e(this,He,it).call(this,"strong",e)}em(e){return $e(this,He,it).call(this,"em",e)}del(e){return $e(this,He,it).call(this,"del",e)}text(e){return e}html(e){return e}hr(){return $e(this,He,it).call(this,"hr")}br(){return $e(this,He,it).call(this,"br")}},hn=new WeakMap,He=new WeakSet,it=function(e,t=null,r={}){const i={key:`marked-react-${this.elementId}`,suppressHydrationWarning:!0};return $e(this,He,Cc).call(this),B.createElement(e,{...r,...i},t)},Cc=function(){this.elIdList[this.elIdList.length-1]+=1},Jm),t$=e$;const r$=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}`)},n$={isInline:!1,breaks:!1,gfm:!0,baseURL:void 0,openLinksInNewTab:!0,langPrefix:"language-",renderer:void 0},i$=new My,o$=e=>{r$(e);const t={...n$,...e},r=t.instance??i$,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={renderer:new t$({renderer:t.renderer,baseURL:t.baseURL,openLinksInNewTab:t.openLinksInNewTab,langPrefix:t.langPrefix})},c=new Qk(u),f=t.isInline?c.parseInline(a):c.parse(a);return B.createElement(B.Fragment,null,f)};var s$=o$,a$=s$;const u$=({children:e,label:t,placement:r="top",className:i,isDisabled:s,container:a})=>{const[u,c]=B.useState(null),f=B.useRef(null),[g,h]=B.useState(null),[v,p]=B.useState(!1),{styles:y,attributes:x}=Vc(u,g,{placement:r,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{rootBoundary:"viewport",padding:8}}]}),d=B.Children.map(e,b=>B.isValidElement(b)?B.cloneElement(b,{ref:c,onMouseEnter:()=>p(!0),onMouseLeave:()=>{f.current=setTimeout(()=>p(!1),50)}}):b);return s?D.jsx(D.Fragment,{children:d}):D.jsxs(D.Fragment,{children:[d,v&&t&&Pi.createPortal(D.jsx("div",{ref:h,style:y.popper,...x.popper,className:je("z-10 select-none rounded bg-purple-200 font-poppins font-medium text-s px-2 py-0.5 text-purple-900 shadow-md",i),onMouseEnter:()=>{f.current&&clearTimeout(f.current),p(!0)},onMouseLeave:()=>p(!1),children:typeof t=="string"?D.jsx(a$,{openLinksInNewTab:!0,children:t}):t}),a||document.body)]})},Fy=({referenceElement:e,label:t})=>{const[r,i]=B.useState(null),{styles:s,attributes:a}=Vc(e,r,{placement:"bottom",modifiers:[{name:"offset",options:{offset:[0,5]}},{name:"preventOverflow",options:{rootBoundary:"viewport"}}]});return D.jsx("div",{className:"z-[1000] rounded bg-purple-200 font-poppins font-medium text-s px-2 py-0.5 text-purple-900 shadow-md",ref:i,style:s.popper,...a.popper,children:t})},l$=gc.keyframes`
141
+ `}tablecell(t){let r=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+r+`</${n}>
142
+ `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${Qr(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:n}){let o=this.parser.parseInline(n),a=ib(t);if(a===null)return o;t=a;let l='<a href="'+t+'"';return r&&(l+=' title="'+Qr(r)+'"'),l+=">"+o+"</a>",l}image({href:t,title:r,text:n,tokens:o}){o&&(n=this.parser.parseInline(o,this.parser.textRenderer));let a=ib(t);if(a===null)return Qr(n);t=a;let l=`<img src="${t}" alt="${n}"`;return r&&(l+=` title="${Qr(r)}"`),l+=">",l}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Qr(t.text)}},Jd=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},Wr=class ad{constructor(t){Oe(this,"options");Oe(this,"renderer");Oe(this,"textRenderer");this.options=t||Li,this.options.renderer=this.options.renderer||new Kl,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Jd}static parse(t,r){return new ad(r).parse(t)}static parseInline(t,r){return new ad(r).parseInline(t)}parse(t,r=!0){var o,a;let n="";for(let l=0;l<t.length;l++){let c=t[l];if((a=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&a[c.type]){let d=c,p=this.options.extensions.renderers[d.type].call({parser:this},d);if(p!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(d.type)){n+=p||"";continue}}let u=c;switch(u.type){case"space":{n+=this.renderer.space(u);continue}case"hr":{n+=this.renderer.hr(u);continue}case"heading":{n+=this.renderer.heading(u);continue}case"code":{n+=this.renderer.code(u);continue}case"table":{n+=this.renderer.table(u);continue}case"blockquote":{n+=this.renderer.blockquote(u);continue}case"list":{n+=this.renderer.list(u);continue}case"html":{n+=this.renderer.html(u);continue}case"def":{n+=this.renderer.def(u);continue}case"paragraph":{n+=this.renderer.paragraph(u);continue}case"text":{let d=u,p=this.renderer.text(d);for(;l+1<t.length&&t[l+1].type==="text";)d=t[++l],p+=`
143
+ `+this.renderer.text(d);r?n+=this.renderer.paragraph({type:"paragraph",raw:p,text:p,tokens:[{type:"text",raw:p,text:p,escaped:!0}]}):n+=p;continue}default:{let d='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(d),"";throw new Error(d)}}}return n}parseInline(t,r=this.renderer){var o,a;let n="";for(let l=0;l<t.length;l++){let c=t[l];if((a=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&a[c.type]){let d=this.options.extensions.renderers[c.type].call({parser:this},c);if(d!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(c.type)){n+=d||"";continue}}let u=c;switch(u.type){case"escape":{n+=r.text(u);break}case"html":{n+=r.html(u);break}case"link":{n+=r.link(u);break}case"image":{n+=r.image(u);break}case"strong":{n+=r.strong(u);break}case"em":{n+=r.em(u);break}case"codespan":{n+=r.codespan(u);break}case"br":{n+=r.br(u);break}case"del":{n+=r.del(u);break}case"text":{n+=r.text(u);break}default:{let d='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(d),"";throw new Error(d)}}}return n}},El,ya=(El=class{constructor(t){Oe(this,"options");Oe(this,"block");this.options=t||Li}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?Hr.lex:Hr.lexInline}provideParser(){return this.block?Wr.parse:Wr.parseInline}},Oe(El,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Oe(El,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),El),cw=class{constructor(...t){Oe(this,"defaults",Vd());Oe(this,"options",this.setOptions);Oe(this,"parse",this.parseMarkdown(!0));Oe(this,"parseInline",this.parseMarkdown(!1));Oe(this,"Parser",Wr);Oe(this,"Renderer",Kl);Oe(this,"TextRenderer",Jd);Oe(this,"Lexer",Hr);Oe(this,"Tokenizer",Yl);Oe(this,"Hooks",ya);this.use(...t)}walkTokens(t,r){var o,a;let n=[];for(let l of t)switch(n=n.concat(r.call(this,l)),l.type){case"table":{let c=l;for(let u of c.header)n=n.concat(this.walkTokens(u.tokens,r));for(let u of c.rows)for(let d of u)n=n.concat(this.walkTokens(d.tokens,r));break}case"list":{let c=l;n=n.concat(this.walkTokens(c.items,r));break}default:{let c=l;(a=(o=this.defaults.extensions)==null?void 0:o.childTokens)!=null&&a[c.type]?this.defaults.extensions.childTokens[c.type].forEach(u=>{let d=c[u].flat(1/0);n=n.concat(this.walkTokens(d,r))}):c.tokens&&(n=n.concat(this.walkTokens(c.tokens,r)))}}return n}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{let o={...n};if(o.async=this.defaults.async||o.async||!1,n.extensions&&(n.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let l=r.renderers[a.name];l?r.renderers[a.name]=function(...c){let u=a.renderer.apply(this,c);return u===!1&&(u=l.apply(this,c)),u}:r.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let l=r[a.level];l?l.unshift(a.tokenizer):r[a.level]=[a.tokenizer],a.start&&(a.level==="block"?r.startBlock?r.startBlock.push(a.start):r.startBlock=[a.start]:a.level==="inline"&&(r.startInline?r.startInline.push(a.start):r.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(r.childTokens[a.name]=a.childTokens)}),o.extensions=r),n.renderer){let a=this.defaults.renderer||new Kl(this.defaults);for(let l in n.renderer){if(!(l in a))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let c=l,u=n.renderer[c],d=a[c];a[c]=(...p)=>{let h=u.apply(a,p);return h===!1&&(h=d.apply(a,p)),h||""}}o.renderer=a}if(n.tokenizer){let a=this.defaults.tokenizer||new Yl(this.defaults);for(let l in n.tokenizer){if(!(l in a))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let c=l,u=n.tokenizer[c],d=a[c];a[c]=(...p)=>{let h=u.apply(a,p);return h===!1&&(h=d.apply(a,p)),h}}o.tokenizer=a}if(n.hooks){let a=this.defaults.hooks||new ya;for(let l in n.hooks){if(!(l in a))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;let c=l,u=n.hooks[c],d=a[c];ya.passThroughHooks.has(l)?a[c]=p=>{if(this.defaults.async&&ya.passThroughHooksRespectAsync.has(l))return(async()=>{let g=await u.call(a,p);return d.call(a,g)})();let h=u.call(a,p);return d.call(a,h)}:a[c]=(...p)=>{if(this.defaults.async)return(async()=>{let g=await u.apply(a,p);return g===!1&&(g=await d.apply(a,p)),g})();let h=u.apply(a,p);return h===!1&&(h=d.apply(a,p)),h}}o.hooks=a}if(n.walkTokens){let a=this.defaults.walkTokens,l=n.walkTokens;o.walkTokens=function(c){let u=[];return u.push(l.call(this,c)),a&&(u=u.concat(a.call(this,c))),u}}this.defaults={...this.defaults,...o}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return Hr.lex(t,r??this.defaults)}parser(t,r){return Wr.parse(t,r??this.defaults)}parseMarkdown(t){return(r,n)=>{let o={...n},a={...this.defaults,...o},l=this.onError(!!a.silent,!!a.async);if(this.defaults.async===!0&&o.async===!1)return l(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=t),a.async)return(async()=>{let c=a.hooks?await a.hooks.preprocess(r):r,u=await(a.hooks?await a.hooks.provideLexer():t?Hr.lex:Hr.lexInline)(c,a),d=a.hooks?await a.hooks.processAllTokens(u):u;a.walkTokens&&await Promise.all(this.walkTokens(d,a.walkTokens));let p=await(a.hooks?await a.hooks.provideParser():t?Wr.parse:Wr.parseInline)(d,a);return a.hooks?await a.hooks.postprocess(p):p})().catch(l);try{a.hooks&&(r=a.hooks.preprocess(r));let c=(a.hooks?a.hooks.provideLexer():t?Hr.lex:Hr.lexInline)(r,a);a.hooks&&(c=a.hooks.processAllTokens(c)),a.walkTokens&&this.walkTokens(c,a.walkTokens);let u=(a.hooks?a.hooks.provideParser():t?Wr.parse:Wr.parseInline)(c,a);return a.hooks&&(u=a.hooks.postprocess(u)),u}catch(c){return l(c)}}}onError(t,r){return n=>{if(n.message+=`
144
+ Please report this to https://github.com/markedjs/marked.`,t){let o="<p>An error occurred:</p><pre>"+Qr(n.message+"",!0)+"</pre>";return r?Promise.resolve(o):o}if(r)return Promise.reject(n);throw n}}},Mi=new cw;function Qe(e,t){return Mi.parse(e,t)}Qe.options=Qe.setOptions=function(e){return Mi.setOptions(e),Qe.defaults=Mi.defaults,Jy(Qe.defaults),Qe};Qe.getDefaults=Vd;Qe.defaults=Li;Qe.use=function(...e){return Mi.use(...e),Qe.defaults=Mi.defaults,Jy(Qe.defaults),Qe};Qe.walkTokens=function(e,t){return Mi.walkTokens(e,t)};Qe.parseInline=Mi.parseInline;Qe.Parser=Wr;Qe.parser=Wr.parse;Qe.Renderer=Kl;Qe.TextRenderer=Jd;Qe.Lexer=Hr;Qe.lexer=Hr.lex;Qe.Tokenizer=Yl;Qe.Hooks=ya;Qe.parse=Qe;Qe.options;Qe.setOptions;Qe.use;Qe.walkTokens;Qe.parseInline;Wr.parse;Hr.lex;const QN={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},uw=/&(?:amp|lt|gt|quot|#(?:0+)?39);/g,eM=RegExp(uw.source),sb=(e="")=>eM.test(e)?e.replace(uw,t=>QN[t]||"'"):e,lb=(e,t)=>{if(!t)return e;try{return new URL(e,t).href}catch{return e}};var tM=class{constructor(e){Oe(this,"renderer");this.renderer=e.renderer}parse(e){this.renderer.elIdList.push(0);const t=e.map(r=>{switch(r.type){case"space":return null;case"heading":{const n=r.depth;return this.renderer.heading(this.parseInline(r.tokens),n)}case"paragraph":return this.renderer.paragraph(this.parseInline(r.tokens));case"text":{const n=r;return n.tokens?this.parseInline(n.tokens):r.text}case"blockquote":{const n=r,o=this.parse(n.tokens);return this.renderer.blockquote(o)}case"list":{const n=r;this.renderer.elIdList.push(0);const o=n.items.map(a=>{const l=[];return a.task&&l.push(this.renderer.checkbox(a.checked??!1)),l.push(this.parse(a.tokens)),this.renderer.listItem(l)});return this.renderer.elIdList.pop(),this.renderer.list(o,r.ordered,r.ordered?r.start:void 0)}case"code":return this.renderer.code(r.text,r.lang);case"html":return this.renderer.html(r.text);case"table":{const n=r;this.renderer.elIdList.push(0);const o=n.header.map((d,p)=>this.renderer.tableCell(this.parseInline(d.tokens),{header:!0,align:r.align[p]}));this.renderer.elIdList.pop();const a=this.renderer.tableRow(o),l=this.renderer.tableHeader(a);this.renderer.elIdList.push(0);const c=n.rows.map(d=>{this.renderer.elIdList.push(0);const p=d.map((h,g)=>this.renderer.tableCell(this.parseInline(h.tokens),{header:!1,align:r.align[g]}));return this.renderer.elIdList.pop(),this.renderer.tableRow(p)});this.renderer.elIdList.pop();const u=this.renderer.tableBody(c);return this.renderer.table([l,u])}case"hr":return this.renderer.hr();default:return console.warn(`Token with "${r.type}" type was not found`),null}});return this.renderer.elIdList.pop(),t}parseInline(e=[]){this.renderer.elIdList.push(0);const t=e.map(r=>{switch(r.type){case"text":return this.renderer.text(sb(r.text));case"strong":return this.renderer.strong(this.parseInline(r.tokens));case"em":return this.renderer.em(this.parseInline(r.tokens));case"del":return this.renderer.del(this.parseInline(r.tokens));case"codespan":return this.renderer.codespan(sb(r.text));case"link":return this.renderer.link(r.href,this.parseInline(r.tokens));case"image":return this.renderer.image(r.href,r.text,r.title);case"html":return this.renderer.html(r.text);case"br":return this.renderer.br();case"escape":return this.renderer.text(r.text);default:return console.warn(`Token with "${r.type}" type was not found`),null}});return this.renderer.elIdList.pop(),t}},rM=tM,Kn,nt,bt,sd,z0,nM=(z0=class{constructor(e={}){Ht(this,nt);Oe(this,"elIdList",[]);Ht(this,Kn);const{renderer:t}=e;gt(this,Kn,e),t&&typeof t=="object"&&Object.entries(t).forEach(([r,n])=>{const o=r,a=n;!this[o]||o==="elementId"||o==="elIdList"||typeof a!="function"||Object.defineProperty(this,o,{value(...l){return We(this,nt,sd).call(this),a.apply(this,l)},writable:!0,enumerable:!0,configurable:!0})})}get elementId(){return this.elIdList.join("-")}heading(e,t){return We(this,nt,bt).call(this,`h${t}`,e)}paragraph(e){return We(this,nt,bt).call(this,"p",e)}link(e,t){const r=lb(e,de(this,Kn).baseURL),n=de(this,Kn).openLinksInNewTab?"_blank":null;return We(this,nt,bt).call(this,"a",t,{href:r,target:n})}image(e,t,r=null){const n=lb(e,de(this,Kn).baseURL);return We(this,nt,bt).call(this,"img",null,{src:n,alt:t,title:r})}codespan(e,t=null){const r=t?`${de(this,Kn).langPrefix}${t}`:null;return We(this,nt,bt).call(this,"code",e,{className:r})}code(e,t){return We(this,nt,bt).call(this,"pre",this.codespan(e,t))}blockquote(e){return We(this,nt,bt).call(this,"blockquote",e)}list(e,t,r){return We(this,nt,bt).call(this,t?"ol":"ul",e,t&&r!==1?{start:r}:{})}listItem(e){return We(this,nt,bt).call(this,"li",e)}checkbox(e){return We(this,nt,bt).call(this,"input",null,{type:"checkbox",disabled:!0,checked:e})}table(e){return We(this,nt,bt).call(this,"table",e)}tableHeader(e){return We(this,nt,bt).call(this,"thead",e)}tableBody(e){return We(this,nt,bt).call(this,"tbody",e)}tableRow(e){return We(this,nt,bt).call(this,"tr",e)}tableCell(e,t){const r=t.header?"th":"td";return We(this,nt,bt).call(this,r,e,{align:t.align})}strong(e){return We(this,nt,bt).call(this,"strong",e)}em(e){return We(this,nt,bt).call(this,"em",e)}del(e){return We(this,nt,bt).call(this,"del",e)}text(e){return e}html(e){return e}hr(){return We(this,nt,bt).call(this,"hr")}br(){return We(this,nt,bt).call(this,"br")}},Kn=new WeakMap,nt=new WeakSet,bt=function(e,t=null,r={}){const n={key:`marked-react-${this.elementId}`,suppressHydrationWarning:!0};return We(this,nt,sd).call(this),H.createElement(e,{...r,...n},t)},sd=function(){this.elIdList[this.elIdList.length-1]+=1},z0),iM=nM;const oM=e=>{if(e.value&&typeof e.value!="string")throw new TypeError(`[marked-react]: Expected value to be of type string but got ${typeof e.value}`);if(e.children&&typeof e.children!="string")throw new TypeError(`[marked-react]: Expected children to be of type string but got ${typeof e.children}`)},aM={isInline:!1,breaks:!1,gfm:!0,baseURL:void 0,openLinksInNewTab:!0,langPrefix:"language-",renderer:void 0},sM=new cw,lM=e=>{oM(e);const t={...aM,...e},r=t.instance??sM,n={breaks:t.breaks,gfm:t.gfm,tokenizer:r.defaults.tokenizer},o=t.value??t.children??"",a=t.isInline?r.Lexer.lexInline(o,n):r.lexer(o,n),l={renderer:new iM({renderer:t.renderer,baseURL:t.baseURL,openLinksInNewTab:t.openLinksInNewTab,langPrefix:t.langPrefix})},c=new rM(l),u=t.isInline?c.parseInline(a):c.parse(a);return H.createElement(H.Fragment,null,u)};var cM=lM,uM=cM;const fM=({children:e,label:t,placement:r="top",className:n,isDisabled:o,container:a})=>{const[l,c]=H.useState(null),u=H.useRef(null),[d,p]=H.useState(null),[h,g]=H.useState(!1),{styles:y,attributes:S}=Md(l,d,{placement:r,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{rootBoundary:"viewport",padding:8}}]}),v=H.Children.map(e,b=>H.isValidElement(b)?H.cloneElement(b,{ref:c,onMouseEnter:()=>g(!0),onMouseLeave:()=>{u.current=setTimeout(()=>g(!1),50)}}):b);return o?C.jsx(C.Fragment,{children:v}):C.jsxs(C.Fragment,{children:[v,h&&t&&ti.createPortal(C.jsx("div",{ref:p,style:y.popper,...S.popper,className:tt("z-10 select-none rounded bg-purple-200 font-poppins font-medium text-s px-2 py-0.5 text-purple-900 shadow-md",n),onMouseEnter:()=>{u.current&&clearTimeout(u.current),g(!0)},onMouseLeave:()=>g(!1),children:typeof t=="string"?C.jsx(uM,{openLinksInNewTab:!0,children:t}):t}),a||document.body)]})},fw=({referenceElement:e,label:t})=>{const[r,n]=H.useState(null),{styles:o,attributes:a}=Md(e,r,{placement:"bottom",modifiers:[{name:"offset",options:{offset:[0,5]}},{name:"preventOverflow",options:{rootBoundary:"viewport"}}]});return C.jsx("div",{className:"z-[1000] rounded bg-purple-200 font-poppins font-medium text-s px-2 py-0.5 text-purple-900 shadow-md",ref:n,style:o.popper,...a.popper,children:t})},dM=Kf.keyframes`
150
145
  to {
151
146
  fill: url(#d);
152
147
  stroke-dashoffset: 0;
153
148
  }
154
- `,Ny=xa.svg`
149
+ `,dw=Ul.svg`
155
150
  & .e {
156
151
  fill: url(#d);
157
152
  }
@@ -162,7 +157,7 @@ Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error
162
157
  fill: transparent;
163
158
  stroke-dasharray: 700;
164
159
  stroke-dashoffset: 700;
165
- animation: ${l$} 1.5s ease-in-out infinite alternate-reverse;
160
+ animation: ${dM} 1.5s ease-in-out infinite alternate-reverse;
166
161
  }
167
162
 
168
163
  & #circle {
@@ -172,37 +167,88 @@ Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error
172
167
  stroke-dasharray: 700;
173
168
  stroke-dashoffset: 700;
174
169
  }
175
- `,c$=({message:e,version:t})=>D.jsx("div",{className:"absolute inset-0 flex h-screen w-screen flex-col items-center justify-center bg-fd-gray-default text-white",children:D.jsxs("div",{className:"flex flex-col text-center",children:[D.jsx("div",{className:"relative mr-4 self-center",children:D.jsx("div",{className:"flex items-center justify-center rounded",children:D.jsxs(Ny,{className:"h-60 w-60",viewBox:"0 0 143.14 136.27",children:[D.jsx("defs",{children:D.jsxs("linearGradient",{id:"d",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[D.jsx("stop",{offset:"0%",stopColor:"#2743a6",children:D.jsx("animate",{attributeName:"stop-color",values:"#ffa4c0; #2743a6;",dur:"6s",repeatCount:"indefinite"})}),D.jsx("stop",{offset:"100%",stopColor:"#ffa4c0",children:D.jsx("animate",{attributeName:"stop-color",values:"#2743a6; #ffa4c0;",dur:"2ds",repeatCount:"indefinite"})})]})}),D.jsx("g",{id:"a"}),D.jsx("g",{id:"b",children:D.jsx("g",{id:"c",children:D.jsxs("g",{children:[D.jsx("path",{id:"tail",className:"e",d:"M134.13,79.9l.25-1.2h-21.87l-.21,.7c-.03,.08-2.41,7.72-7.11,14.56-5.87,8.54-12.57,12.63-12.63,12.67l-1,.6,24.25,28.96h27.33l-22.61-26.46c2.2-2.67,10.06-13.09,13.6-29.83Z"}),D.jsx("path",{id:"circle",className:"f",d:"M83.08,113.64l18.93,22.6-33.68,.03-11.17-.03c-9.38,.01-18.55-2.45-26.56-7.11-2.94-1.71-5.72-3.71-8.29-6-8.79-7.8-17.6-19.72-20.92-37.37-.01-.02-.02-.03-.03-.05v-.09c-1.68-9.04-1.93-19.58,0-31.84C8.57,21.67,36.68-.66,69.93,.02c12.81,.27,25.06,4.28,35.59,11.48,.31,.2,.62,.41,.92,.62,.25,.18,.5,.35,.74,.53,8.82,6.31,16.06,14.69,21.02,24.42,.17,.33,.34,.65,.5,.98,.1,.21,.2,.41,.3,.61,4.35,8.92,6.63,18.54,6.54,28.06,0,.36,.02,.71,.02,1.06,0,.82-.03,1.62-.06,2.43h-22c.04-.81,.06-1.61,.06-2.43,0-1.52-.08-3.02-.23-4.5-2.68-22.17-21.26-39.86-43.98-40.63-4.43-.15-8.75,.29-12.88,1.28-.02,0-.04,.01-.05,.01-.48,.12-.95,.24-1.42,.38-.97,.26-1.94,.56-2.89,.9-.23,.07-.46,.15-.69,.24-6.2,2.27-11.84,5.87-16.59,10.67-8.99,9.09-13.84,21.44-13.3,33.9,0,19.98,17.86,39.48,35.59,42.56,6.4,1.37,24.04,1.24,25.96,1.05Z"})]})})})]})})}),D.jsxs("div",{children:[D.jsx("span",{className:"text-xs text-grey-200",children:t}),D.jsx("h2",{className:"text-lg text-grey-100",children:e})]})]})});var xo={exports:{}};/**
170
+ `,pM=({message:e,version:t})=>C.jsx("div",{className:"absolute inset-0 flex h-screen w-screen flex-col items-center justify-center bg-fd-gray-default text-white",children:C.jsxs("div",{className:"flex flex-col text-center",children:[C.jsx("div",{className:"relative mr-4 self-center",children:C.jsx("div",{className:"flex items-center justify-center rounded",children:C.jsxs(dw,{className:"h-60 w-60",viewBox:"0 0 143.14 136.27",children:[C.jsx("defs",{children:C.jsxs("linearGradient",{id:"d",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[C.jsx("stop",{offset:"0%",stopColor:"#2743a6",children:C.jsx("animate",{attributeName:"stop-color",values:"#ffa4c0; #2743a6;",dur:"6s",repeatCount:"indefinite"})}),C.jsx("stop",{offset:"100%",stopColor:"#ffa4c0",children:C.jsx("animate",{attributeName:"stop-color",values:"#2743a6; #ffa4c0;",dur:"2ds",repeatCount:"indefinite"})})]})}),C.jsx("g",{id:"a"}),C.jsx("g",{id:"b",children:C.jsx("g",{id:"c",children:C.jsxs("g",{children:[C.jsx("path",{id:"tail",className:"e",d:"M134.13,79.9l.25-1.2h-21.87l-.21,.7c-.03,.08-2.41,7.72-7.11,14.56-5.87,8.54-12.57,12.63-12.63,12.67l-1,.6,24.25,28.96h27.33l-22.61-26.46c2.2-2.67,10.06-13.09,13.6-29.83Z"}),C.jsx("path",{id:"circle",className:"f",d:"M83.08,113.64l18.93,22.6-33.68,.03-11.17-.03c-9.38,.01-18.55-2.45-26.56-7.11-2.94-1.71-5.72-3.71-8.29-6-8.79-7.8-17.6-19.72-20.92-37.37-.01-.02-.02-.03-.03-.05v-.09c-1.68-9.04-1.93-19.58,0-31.84C8.57,21.67,36.68-.66,69.93,.02c12.81,.27,25.06,4.28,35.59,11.48,.31,.2,.62,.41,.92,.62,.25,.18,.5,.35,.74,.53,8.82,6.31,16.06,14.69,21.02,24.42,.17,.33,.34,.65,.5,.98,.1,.21,.2,.41,.3,.61,4.35,8.92,6.63,18.54,6.54,28.06,0,.36,.02,.71,.02,1.06,0,.82-.03,1.62-.06,2.43h-22c.04-.81,.06-1.61,.06-2.43,0-1.52-.08-3.02-.23-4.5-2.68-22.17-21.26-39.86-43.98-40.63-4.43-.15-8.75,.29-12.88,1.28-.02,0-.04,.01-.05,.01-.48,.12-.95,.24-1.42,.38-.97,.26-1.94,.56-2.89,.9-.23,.07-.46,.15-.69,.24-6.2,2.27-11.84,5.87-16.59,10.67-8.99,9.09-13.84,21.44-13.3,33.9,0,19.98,17.86,39.48,35.59,42.56,6.4,1.37,24.04,1.24,25.96,1.05Z"})]})})})]})})}),C.jsxs("div",{children:[C.jsx("span",{className:"text-xs text-grey-200",children:t}),C.jsx("h2",{className:"text-lg text-grey-100",children:e})]})]})});var hM=Object.defineProperty,gM=(e,t,r)=>t in e?hM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,yf=(e,t,r)=>(gM(e,typeof t!="symbol"?t+"":t,r),r);let vM=class{constructor(){yf(this,"current",this.detect()),yf(this,"handoffState","pending"),yf(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Il=new vM,Da=(e,t)=>{Il.isServer?H.useEffect(e,t):H.useLayoutEffect(e,t)};function ho(e){let t=H.useRef(e);return Da(()=>{t.current=e},[e]),t}let An=function(e){let t=ho(e);return H.useCallback((...r)=>t.current(...r),[t])};function mM(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Za(){let e=[],t={addEventListener(r,n,o,a){return r.addEventListener(n,o,a),t.add(()=>r.removeEventListener(n,o,a))},requestAnimationFrame(...r){let n=requestAnimationFrame(...r);return t.add(()=>cancelAnimationFrame(n))},nextFrame(...r){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...r))},setTimeout(...r){let n=setTimeout(...r);return t.add(()=>clearTimeout(n))},microTask(...r){let n={current:!0};return mM(()=>{n.current&&r[0]()}),t.add(()=>{n.current=!1})},style(r,n,o){let a=r.style.getPropertyValue(n);return Object.assign(r.style,{[n]:o}),this.add(()=>{Object.assign(r.style,{[n]:a})})},group(r){let n=Za();return r(n),this.add(()=>n.dispose())},add(r){return e.push(r),()=>{let n=e.indexOf(r);if(n>=0)for(let o of e.splice(n,1))o()}},dispose(){for(let r of e.splice(0))r()}};return t}function pw(){let[e]=H.useState(Za);return H.useEffect(()=>()=>e.dispose(),[e]),e}function bM(){let e=typeof document>"u";return"useSyncExternalStore"in z?(t=>t.useSyncExternalStore)(z)(()=>()=>{},()=>!1,()=>!e):!1}function hw(){let e=bM(),[t,r]=z.useState(Il.isHandoffComplete);return t&&Il.isHandoffComplete===!1&&r(!1),z.useEffect(()=>{t!==!0&&r(!0)},[t]),z.useEffect(()=>Il.handoff(),[]),e?!1:t}function on(e,t,...r){if(e in t){let o=t[e];return typeof o=="function"?o(...r):o}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,on),n}let yM=Symbol();function gw(...e){let t=H.useRef(e);H.useEffect(()=>{t.current=e},[e]);let r=An(n=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(n):o.current=n)});return e.every(n=>n==null||(n==null?void 0:n[yM]))?void 0:r}function Zl(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var vw=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(vw||{}),Jn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Jn||{});function mw({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:o,visible:a=!0,name:l,mergeRefs:c}){c=c??wM;let u=bw(t,e);if(a)return al(u,r,n,l,c);let d=o??0;if(d&2){let{static:p=!1,...h}=u;if(p)return al(h,r,n,l,c)}if(d&1){let{unmount:p=!0,...h}=u;return on(p?0:1,{0(){return null},1(){return al({...h,hidden:!0,style:{display:"none"}},r,n,l,c)}})}return al(u,r,n,l,c)}function al(e,t={},r,n,o){let{as:a=r,children:l,refName:c="ref",...u}=wf(e,["unmount","static"]),d=e.ref!==void 0?{[c]:e.ref}:{},p=typeof l=="function"?l(t):l;"className"in u&&u.className&&typeof u.className=="function"&&(u.className=u.className(t));let h={};if(t){let g=!1,y=[];for(let[S,v]of Object.entries(t))typeof v=="boolean"&&(g=!0),v===!0&&y.push(S);g&&(h["data-headlessui-state"]=y.join(" "))}if(a===H.Fragment&&Object.keys(cb(u)).length>0){if(!H.isValidElement(p)||Array.isArray(p)&&p.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(u).map(v=>` - ${v}`).join(`
171
+ `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(v=>` - ${v}`).join(`
172
+ `)].join(`
173
+ `));let g=p.props,y=typeof(g==null?void 0:g.className)=="function"?(...v)=>Zl(g==null?void 0:g.className(...v),u.className):Zl(g==null?void 0:g.className,u.className),S=y?{className:y}:{};return H.cloneElement(p,Object.assign({},bw(p.props,cb(wf(u,["ref"]))),h,d,{ref:o(p.ref,d.ref)},S))}return H.createElement(a,Object.assign({},wf(u,["ref"]),a!==H.Fragment&&d,a!==H.Fragment&&h),p)}function wM(...e){return e.every(t=>t==null)?void 0:t=>{for(let r of e)r!=null&&(typeof r=="function"?r(t):r.current=t)}}function bw(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let n of e)for(let o in n)o.startsWith("on")&&typeof n[o]=="function"?(r[o]!=null||(r[o]=[]),r[o].push(n[o])):t[o]=n[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(n=>[n,void 0])));for(let n in r)Object.assign(t,{[n](o,...a){let l=r[n];for(let c of l){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;c(o,...a)}}});return t}function Qd(e){var t;return Object.assign(H.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function cb(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function wf(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}let ep=H.createContext(null);ep.displayName="OpenClosedContext";var kn=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(kn||{});function yw(){return H.useContext(ep)}function xM({value:e,children:t}){return H.createElement(ep.Provider,{value:e},t)}function tp(){let e=H.useRef(!1);return Da(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function SM(e=0){let[t,r]=H.useState(e),n=tp(),o=H.useCallback(u=>{n.current&&r(d=>d|u)},[t,n]),a=H.useCallback(u=>!!(t&u),[t]),l=H.useCallback(u=>{n.current&&r(d=>d&~u)},[r,n]),c=H.useCallback(u=>{n.current&&r(d=>d^u)},[r]);return{flags:t,addFlag:o,hasFlag:a,removeFlag:l,toggleFlag:c}}function _M(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function xf(e,...t){e&&t.length>0&&e.classList.add(...t)}function Sf(e,...t){e&&t.length>0&&e.classList.remove(...t)}function EM(e,t){let r=Za();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:o}=getComputedStyle(e),[a,l]=[n,o].map(u=>{let[d=0]=u.split(",").filter(Boolean).map(p=>p.includes("ms")?parseFloat(p):parseFloat(p)*1e3).sort((p,h)=>h-p);return d}),c=a+l;if(c!==0){r.group(d=>{d.setTimeout(()=>{t(),d.dispose()},c),d.addEventListener(e,"transitionrun",p=>{p.target===p.currentTarget&&d.dispose()})});let u=r.addEventListener(e,"transitionend",d=>{d.target===d.currentTarget&&(t(),u())})}else t();return r.add(()=>t()),r.dispose}function kM(e,t,r,n){let o=r?"enter":"leave",a=Za(),l=n!==void 0?_M(n):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let c=on(o,{enter:()=>t.enter,leave:()=>t.leave}),u=on(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),d=on(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Sf(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),xf(e,...t.base,...c,...d),a.nextFrame(()=>{Sf(e,...t.base,...c,...d),xf(e,...t.base,...c,...u),EM(e,()=>(Sf(e,...t.base,...c),xf(e,...t.base,...t.entered),l()))}),a.dispose}function OM({immediate:e,container:t,direction:r,classes:n,onStart:o,onStop:a}){let l=tp(),c=pw(),u=ho(r);Da(()=>{e&&(u.current="enter")},[e]),Da(()=>{let d=Za();c.add(d.dispose);let p=t.current;if(p&&u.current!=="idle"&&l.current)return d.dispose(),o.current(u.current),d.add(kM(p,n.current,u.current==="enter",()=>{d.dispose(),a.current(u.current)})),d.dispose},[r])}function Vn(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let wc=H.createContext(null);wc.displayName="TransitionContext";var AM=(e=>(e.Visible="visible",e.Hidden="hidden",e))(AM||{});function TM(){let e=H.useContext(wc);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function RM(){let e=H.useContext(xc);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let xc=H.createContext(null);xc.displayName="NestingContext";function Sc(e){return"children"in e?Sc(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function ww(e,t){let r=ho(e),n=H.useRef([]),o=tp(),a=pw(),l=An((y,S=Jn.Hidden)=>{let v=n.current.findIndex(({el:b})=>b===y);v!==-1&&(on(S,{[Jn.Unmount](){n.current.splice(v,1)},[Jn.Hidden](){n.current[v].state="hidden"}}),a.microTask(()=>{var b;!Sc(n)&&o.current&&((b=r.current)==null||b.call(r))}))}),c=An(y=>{let S=n.current.find(({el:v})=>v===y);return S?S.state!=="visible"&&(S.state="visible"):n.current.push({el:y,state:"visible"}),()=>l(y,Jn.Unmount)}),u=H.useRef([]),d=H.useRef(Promise.resolve()),p=H.useRef({enter:[],leave:[],idle:[]}),h=An((y,S,v)=>{u.current.splice(0),t&&(t.chains.current[S]=t.chains.current[S].filter(([b])=>b!==y)),t==null||t.chains.current[S].push([y,new Promise(b=>{u.current.push(b)})]),t==null||t.chains.current[S].push([y,new Promise(b=>{Promise.all(p.current[S].map(([m,w])=>w)).then(()=>b())})]),S==="enter"?d.current=d.current.then(()=>t==null?void 0:t.wait.current).then(()=>v(S)):v(S)}),g=An((y,S,v)=>{Promise.all(p.current[S].splice(0).map(([b,m])=>m)).then(()=>{var b;(b=u.current.shift())==null||b()}).then(()=>v(S))});return H.useMemo(()=>({children:n,register:c,unregister:l,onStart:h,onStop:g,wait:d,chains:p}),[c,l,n,h,g,p,d])}function CM(){}let PM=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function ub(e){var t;let r={};for(let n of PM)r[n]=(t=e[n])!=null?t:CM;return r}function IM(e){let t=H.useRef(ub(e));return H.useEffect(()=>{t.current=ub(e)},[e]),t}let NM="div",xw=vw.RenderStrategy;function MM(e,t){var r,n;let{beforeEnter:o,afterEnter:a,beforeLeave:l,afterLeave:c,enter:u,enterFrom:d,enterTo:p,entered:h,leave:g,leaveFrom:y,leaveTo:S,...v}=e,b=H.useRef(null),m=gw(b,t),w=(r=v.unmount)==null||r?Jn.Unmount:Jn.Hidden,{show:x,appear:k,initial:E}=TM(),[R,F]=H.useState(x?"visible":"hidden"),A=RM(),{register:N,unregister:V}=A;H.useEffect(()=>N(b),[N,b]),H.useEffect(()=>{if(w===Jn.Hidden&&b.current){if(x&&R!=="visible"){F("visible");return}return on(R,{hidden:()=>V(b),visible:()=>N(b)})}},[R,b,N,V,x,w]);let $=ho({base:Vn(v.className),enter:Vn(u),enterFrom:Vn(d),enterTo:Vn(p),entered:Vn(h),leave:Vn(g),leaveFrom:Vn(y),leaveTo:Vn(S)}),M=IM({beforeEnter:o,afterEnter:a,beforeLeave:l,afterLeave:c}),B=hw();H.useEffect(()=>{if(B&&R==="visible"&&b.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[b,R,B]);let j=E&&!k,I=k&&x&&E,Y=!B||j?"idle":x?"enter":"leave",X=SM(0),K=An(J=>on(J,{enter:()=>{X.addFlag(kn.Opening),M.current.beforeEnter()},leave:()=>{X.addFlag(kn.Closing),M.current.beforeLeave()},idle:()=>{}})),me=An(J=>on(J,{enter:()=>{X.removeFlag(kn.Opening),M.current.afterEnter()},leave:()=>{X.removeFlag(kn.Closing),M.current.afterLeave()},idle:()=>{}})),L=ww(()=>{F("hidden"),V(b)},A),U=H.useRef(!1);OM({immediate:I,container:b,classes:$,direction:Y,onStart:ho(J=>{U.current=!0,L.onStart(b,J,K)}),onStop:ho(J=>{U.current=!1,L.onStop(b,J,me),J==="leave"&&!Sc(L)&&(F("hidden"),V(b))})});let te=v,ee={ref:m};return I?te={...te,className:Zl(v.className,...$.current.enter,...$.current.enterFrom)}:U.current&&(te.className=Zl(v.className,(n=b.current)==null?void 0:n.className),te.className===""&&delete te.className),H.createElement(xc.Provider,{value:L},H.createElement(xM,{value:on(R,{visible:kn.Open,hidden:kn.Closed})|X.flags},mw({ourProps:ee,theirProps:te,defaultTag:NM,features:xw,visible:R==="visible",name:"Transition.Child"})))}function DM(e,t){let{show:r,appear:n=!1,unmount:o=!0,...a}=e,l=H.useRef(null),c=gw(l,t);hw();let u=yw();if(r===void 0&&u!==null&&(r=(u&kn.Open)===kn.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[d,p]=H.useState(r?"visible":"hidden"),h=ww(()=>{p("hidden")}),[g,y]=H.useState(!0),S=H.useRef([r]);Da(()=>{g!==!1&&S.current[S.current.length-1]!==r&&(S.current.push(r),y(!1))},[S,r]);let v=H.useMemo(()=>({show:r,appear:n,initial:g}),[r,n,g]);H.useEffect(()=>{if(r)p("visible");else if(!Sc(h))p("hidden");else{let x=l.current;if(!x)return;let k=x.getBoundingClientRect();k.x===0&&k.y===0&&k.width===0&&k.height===0&&p("hidden")}},[r,h]);let b={unmount:o},m=An(()=>{var x;g&&y(!1),(x=e.beforeEnter)==null||x.call(e)}),w=An(()=>{var x;g&&y(!1),(x=e.beforeLeave)==null||x.call(e)});return H.createElement(xc.Provider,{value:h},H.createElement(wc.Provider,{value:v},mw({ourProps:{...b,as:H.Fragment,children:H.createElement(Sw,{ref:c,...b,...a,beforeEnter:m,beforeLeave:w})},theirProps:{},defaultTag:H.Fragment,features:xw,visible:d==="visible",name:"Transition"})))}function $M(e,t){let r=H.useContext(wc)!==null,n=yw()!==null;return H.createElement(H.Fragment,null,!r&&n?H.createElement(ld,{ref:t,...e}):H.createElement(Sw,{ref:t,...e}))}let ld=Qd(DM),Sw=Qd(MM),LM=Qd($M),Xl=Object.assign(ld,{Child:LM,Root:ld});var wa={exports:{}};/**
176
174
  * @license
177
175
  * Lodash <https://lodash.com/>
178
176
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
179
177
  * Released under MIT license <https://lodash.com/license>
180
178
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
181
179
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
182
- */var f$=xo.exports,xm;function d$(){return xm||(xm=1,(function(e,t){(function(){var r,i="4.17.21",s=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",c="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",g=500,h="__lodash_placeholder__",v=1,p=2,y=4,x=1,d=2,b=1,m=2,S=4,E=8,R=16,O=32,k=64,W=128,M=256,F=512,G=30,j="...",L=800,H=16,q=1,C=2,J=3,Y=1/0,te=9007199254740991,de=17976931348623157e292,Z=NaN,Q=4294967295,se=Q-1,ue=Q>>>1,ne=[["ary",W],["bind",b],["bindKey",m],["curry",E],["curryRight",R],["flip",F],["partial",O],["partialRight",k],["rearg",M]],ce="[object Arguments]",fe="[object Array]",ye="[object AsyncFunction]",me="[object Boolean]",Ee="[object Date]",Te="[object DOMException]",Ve="[object Error]",ie="[object Function]",wt="[object GeneratorFunction]",ft="[object Map]",wr="[object Number]",Yo="[object Null]",Vt="[object Object]",Xo="[object Promise]",ru="[object Proxy]",Ft="[object RegExp]",bt="[object Set]",Jr="[object String]",_n="[object Symbol]",$i="[object Undefined]",Qr="[object WeakMap]",Jo="[object WeakSet]",en="[object ArrayBuffer]",Mr="[object DataView]",nu="[object Float32Array]",iu="[object Float64Array]",ou="[object Int8Array]",su="[object Int16Array]",au="[object Int32Array]",uu="[object Uint8Array]",lu="[object Uint8ClampedArray]",cu="[object Uint16Array]",fu="[object Uint32Array]",J0=/\b__p \+= '';/g,Q0=/\b(__p \+=) '' \+/g,ew=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Wf=/&(?:amp|lt|gt|quot|#39);/g,Hf=/[&<>"']/g,tw=RegExp(Wf.source),rw=RegExp(Hf.source),nw=/<%-([\s\S]+?)%>/g,iw=/<%([\s\S]+?)%>/g,Uf=/<%=([\s\S]+?)%>/g,ow=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,sw=/^\w*$/,aw=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,du=/[\\^$.*+?()[\]{}|]/g,uw=RegExp(du.source),pu=/^\s+/,lw=/\s/,cw=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,fw=/\{\n\/\* \[wrapped with (.+)\] \*/,dw=/,? & /,pw=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,hw=/[()=,{}\[\]\/\s]/,gw=/\\(\\)?/g,mw=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qf=/\w*$/,vw=/^[-+]0x[0-9a-f]+$/i,yw=/^0b[01]+$/i,ww=/^\[object .+?Constructor\]$/,bw=/^0o[0-7]+$/i,xw=/^(?:0|[1-9]\d*)$/,Sw=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qo=/($^)/,Ew=/['\n\r\u2028\u2029\\]/g,es="\\ud800-\\udfff",_w="\\u0300-\\u036f",Ow="\\ufe20-\\ufe2f",Tw="\\u20d0-\\u20ff",Zf=_w+Ow+Tw,Gf="\\u2700-\\u27bf",Kf="a-z\\xdf-\\xf6\\xf8-\\xff",Aw="\\xac\\xb1\\xd7\\xf7",Rw="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Pw="\\u2000-\\u206f",Cw=" \\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",Vf="A-Z\\xc0-\\xd6\\xd8-\\xde",Yf="\\ufe0e\\ufe0f",Xf=Aw+Rw+Pw+Cw,hu="['’]",kw="["+es+"]",Jf="["+Xf+"]",ts="["+Zf+"]",Qf="\\d+",$w="["+Gf+"]",ed="["+Kf+"]",td="[^"+es+Xf+Qf+Gf+Kf+Vf+"]",gu="\\ud83c[\\udffb-\\udfff]",Iw="(?:"+ts+"|"+gu+")",rd="[^"+es+"]",mu="(?:\\ud83c[\\udde6-\\uddff]){2}",vu="[\\ud800-\\udbff][\\udc00-\\udfff]",ei="["+Vf+"]",nd="\\u200d",id="(?:"+ed+"|"+td+")",Lw="(?:"+ei+"|"+td+")",od="(?:"+hu+"(?:d|ll|m|re|s|t|ve))?",sd="(?:"+hu+"(?:D|LL|M|RE|S|T|VE))?",ad=Iw+"?",ud="["+Yf+"]?",Mw="(?:"+nd+"(?:"+[rd,mu,vu].join("|")+")"+ud+ad+")*",Dw="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Fw="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ld=ud+ad+Mw,Nw="(?:"+[$w,mu,vu].join("|")+")"+ld,jw="(?:"+[rd+ts+"?",ts,mu,vu,kw].join("|")+")",zw=RegExp(hu,"g"),Bw=RegExp(ts,"g"),yu=RegExp(gu+"(?="+gu+")|"+jw+ld,"g"),Ww=RegExp([ei+"?"+ed+"+"+od+"(?="+[Jf,ei,"$"].join("|")+")",Lw+"+"+sd+"(?="+[Jf,ei+id,"$"].join("|")+")",ei+"?"+id+"+"+od,ei+"+"+sd,Fw,Dw,Qf,Nw].join("|"),"g"),Hw=RegExp("["+nd+es+Zf+Yf+"]"),Uw=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,qw=["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"],Zw=-1,Ue={};Ue[nu]=Ue[iu]=Ue[ou]=Ue[su]=Ue[au]=Ue[uu]=Ue[lu]=Ue[cu]=Ue[fu]=!0,Ue[ce]=Ue[fe]=Ue[en]=Ue[me]=Ue[Mr]=Ue[Ee]=Ue[Ve]=Ue[ie]=Ue[ft]=Ue[wr]=Ue[Vt]=Ue[Ft]=Ue[bt]=Ue[Jr]=Ue[Qr]=!1;var We={};We[ce]=We[fe]=We[en]=We[Mr]=We[me]=We[Ee]=We[nu]=We[iu]=We[ou]=We[su]=We[au]=We[ft]=We[wr]=We[Vt]=We[Ft]=We[bt]=We[Jr]=We[_n]=We[uu]=We[lu]=We[cu]=We[fu]=!0,We[Ve]=We[ie]=We[Qr]=!1;var Gw={À:"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"},Kw={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Vw={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Yw={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Xw=parseFloat,Jw=parseInt,cd=typeof Ws=="object"&&Ws&&Ws.Object===Object&&Ws,Qw=typeof self=="object"&&self&&self.Object===Object&&self,ht=cd||Qw||Function("return this")(),wu=t&&!t.nodeType&&t,On=wu&&!0&&e&&!e.nodeType&&e,fd=On&&On.exports===wu,bu=fd&&cd.process,Yt=(function(){try{var N=On&&On.require&&On.require("util").types;return N||bu&&bu.binding&&bu.binding("util")}catch{}})(),dd=Yt&&Yt.isArrayBuffer,pd=Yt&&Yt.isDate,hd=Yt&&Yt.isMap,gd=Yt&&Yt.isRegExp,md=Yt&&Yt.isSet,vd=Yt&&Yt.isTypedArray;function Nt(N,K,U){switch(U.length){case 0:return N.call(K);case 1:return N.call(K,U[0]);case 2:return N.call(K,U[0],U[1]);case 3:return N.call(K,U[0],U[1],U[2])}return N.apply(K,U)}function eb(N,K,U,ae){for(var we=-1,Pe=N==null?0:N.length;++we<Pe;){var ut=N[we];K(ae,ut,U(ut),N)}return ae}function Xt(N,K){for(var U=-1,ae=N==null?0:N.length;++U<ae&&K(N[U],U,N)!==!1;);return N}function tb(N,K){for(var U=N==null?0:N.length;U--&&K(N[U],U,N)!==!1;);return N}function yd(N,K){for(var U=-1,ae=N==null?0:N.length;++U<ae;)if(!K(N[U],U,N))return!1;return!0}function tn(N,K){for(var U=-1,ae=N==null?0:N.length,we=0,Pe=[];++U<ae;){var ut=N[U];K(ut,U,N)&&(Pe[we++]=ut)}return Pe}function rs(N,K){var U=N==null?0:N.length;return!!U&&ti(N,K,0)>-1}function xu(N,K,U){for(var ae=-1,we=N==null?0:N.length;++ae<we;)if(U(K,N[ae]))return!0;return!1}function Ze(N,K){for(var U=-1,ae=N==null?0:N.length,we=Array(ae);++U<ae;)we[U]=K(N[U],U,N);return we}function rn(N,K){for(var U=-1,ae=K.length,we=N.length;++U<ae;)N[we+U]=K[U];return N}function Su(N,K,U,ae){var we=-1,Pe=N==null?0:N.length;for(ae&&Pe&&(U=N[++we]);++we<Pe;)U=K(U,N[we],we,N);return U}function rb(N,K,U,ae){var we=N==null?0:N.length;for(ae&&we&&(U=N[--we]);we--;)U=K(U,N[we],we,N);return U}function Eu(N,K){for(var U=-1,ae=N==null?0:N.length;++U<ae;)if(K(N[U],U,N))return!0;return!1}var nb=_u("length");function ib(N){return N.split("")}function ob(N){return N.match(pw)||[]}function wd(N,K,U){var ae;return U(N,function(we,Pe,ut){if(K(we,Pe,ut))return ae=Pe,!1}),ae}function ns(N,K,U,ae){for(var we=N.length,Pe=U+(ae?1:-1);ae?Pe--:++Pe<we;)if(K(N[Pe],Pe,N))return Pe;return-1}function ti(N,K,U){return K===K?vb(N,K,U):ns(N,bd,U)}function sb(N,K,U,ae){for(var we=U-1,Pe=N.length;++we<Pe;)if(ae(N[we],K))return we;return-1}function bd(N){return N!==N}function xd(N,K){var U=N==null?0:N.length;return U?Tu(N,K)/U:Z}function _u(N){return function(K){return K==null?r:K[N]}}function Ou(N){return function(K){return N==null?r:N[K]}}function Sd(N,K,U,ae,we){return we(N,function(Pe,ut,Be){U=ae?(ae=!1,Pe):K(U,Pe,ut,Be)}),U}function ab(N,K){var U=N.length;for(N.sort(K);U--;)N[U]=N[U].value;return N}function Tu(N,K){for(var U,ae=-1,we=N.length;++ae<we;){var Pe=K(N[ae]);Pe!==r&&(U=U===r?Pe:U+Pe)}return U}function Au(N,K){for(var U=-1,ae=Array(N);++U<N;)ae[U]=K(U);return ae}function ub(N,K){return Ze(K,function(U){return[U,N[U]]})}function Ed(N){return N&&N.slice(0,Ad(N)+1).replace(pu,"")}function jt(N){return function(K){return N(K)}}function Ru(N,K){return Ze(K,function(U){return N[U]})}function Ii(N,K){return N.has(K)}function _d(N,K){for(var U=-1,ae=N.length;++U<ae&&ti(K,N[U],0)>-1;);return U}function Od(N,K){for(var U=N.length;U--&&ti(K,N[U],0)>-1;);return U}function lb(N,K){for(var U=N.length,ae=0;U--;)N[U]===K&&++ae;return ae}var cb=Ou(Gw),fb=Ou(Kw);function db(N){return"\\"+Yw[N]}function pb(N,K){return N==null?r:N[K]}function ri(N){return Hw.test(N)}function hb(N){return Uw.test(N)}function gb(N){for(var K,U=[];!(K=N.next()).done;)U.push(K.value);return U}function Pu(N){var K=-1,U=Array(N.size);return N.forEach(function(ae,we){U[++K]=[we,ae]}),U}function Td(N,K){return function(U){return N(K(U))}}function nn(N,K){for(var U=-1,ae=N.length,we=0,Pe=[];++U<ae;){var ut=N[U];(ut===K||ut===h)&&(N[U]=h,Pe[we++]=U)}return Pe}function is(N){var K=-1,U=Array(N.size);return N.forEach(function(ae){U[++K]=ae}),U}function mb(N){var K=-1,U=Array(N.size);return N.forEach(function(ae){U[++K]=[ae,ae]}),U}function vb(N,K,U){for(var ae=U-1,we=N.length;++ae<we;)if(N[ae]===K)return ae;return-1}function yb(N,K,U){for(var ae=U+1;ae--;)if(N[ae]===K)return ae;return ae}function ni(N){return ri(N)?bb(N):nb(N)}function cr(N){return ri(N)?xb(N):ib(N)}function Ad(N){for(var K=N.length;K--&&lw.test(N.charAt(K)););return K}var wb=Ou(Vw);function bb(N){for(var K=yu.lastIndex=0;yu.test(N);)++K;return K}function xb(N){return N.match(yu)||[]}function Sb(N){return N.match(Ww)||[]}var Eb=(function N(K){K=K==null?ht:ii.defaults(ht.Object(),K,ii.pick(ht,qw));var U=K.Array,ae=K.Date,we=K.Error,Pe=K.Function,ut=K.Math,Be=K.Object,Cu=K.RegExp,_b=K.String,Jt=K.TypeError,os=U.prototype,Ob=Pe.prototype,oi=Be.prototype,ss=K["__core-js_shared__"],as=Ob.toString,Fe=oi.hasOwnProperty,Tb=0,Rd=(function(){var n=/[^.]+$/.exec(ss&&ss.keys&&ss.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})(),us=oi.toString,Ab=as.call(Be),Rb=ht._,Pb=Cu("^"+as.call(Fe).replace(du,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ls=fd?K.Buffer:r,on=K.Symbol,cs=K.Uint8Array,Pd=ls?ls.allocUnsafe:r,fs=Td(Be.getPrototypeOf,Be),Cd=Be.create,kd=oi.propertyIsEnumerable,ds=os.splice,$d=on?on.isConcatSpreadable:r,Li=on?on.iterator:r,Tn=on?on.toStringTag:r,ps=(function(){try{var n=kn(Be,"defineProperty");return n({},"",{}),n}catch{}})(),Cb=K.clearTimeout!==ht.clearTimeout&&K.clearTimeout,kb=ae&&ae.now!==ht.Date.now&&ae.now,$b=K.setTimeout!==ht.setTimeout&&K.setTimeout,hs=ut.ceil,gs=ut.floor,ku=Be.getOwnPropertySymbols,Ib=ls?ls.isBuffer:r,Id=K.isFinite,Lb=os.join,Mb=Td(Be.keys,Be),lt=ut.max,xt=ut.min,Db=ae.now,Fb=K.parseInt,Ld=ut.random,Nb=os.reverse,$u=kn(K,"DataView"),Mi=kn(K,"Map"),Iu=kn(K,"Promise"),si=kn(K,"Set"),Di=kn(K,"WeakMap"),Fi=kn(Be,"create"),ms=Di&&new Di,ai={},jb=$n($u),zb=$n(Mi),Bb=$n(Iu),Wb=$n(si),Hb=$n(Di),vs=on?on.prototype:r,Ni=vs?vs.valueOf:r,Md=vs?vs.toString:r;function T(n){if(et(n)&&!be(n)&&!(n instanceof Ae)){if(n instanceof Qt)return n;if(Fe.call(n,"__wrapped__"))return Dp(n)}return new Qt(n)}var ui=(function(){function n(){}return function(o){if(!Ye(o))return{};if(Cd)return Cd(o);n.prototype=o;var l=new n;return n.prototype=r,l}})();function ys(){}function Qt(n,o){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=r}T.templateSettings={escape:nw,evaluate:iw,interpolate:Uf,variable:"",imports:{_:T}},T.prototype=ys.prototype,T.prototype.constructor=T,Qt.prototype=ui(ys.prototype),Qt.prototype.constructor=Qt;function Ae(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Q,this.__views__=[]}function Ub(){var n=new Ae(this.__wrapped__);return n.__actions__=kt(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=kt(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=kt(this.__views__),n}function qb(){if(this.__filtered__){var n=new Ae(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function Zb(){var n=this.__wrapped__.value(),o=this.__dir__,l=be(n),w=o<0,_=l?n.length:0,A=ix(0,_,this.__views__),P=A.start,I=A.end,z=I-P,V=w?I:P-1,X=this.__iteratees__,ee=X.length,oe=0,le=xt(z,this.__takeCount__);if(!l||!w&&_==z&&le==z)return op(n,this.__actions__);var he=[];e:for(;z--&&oe<le;){V+=o;for(var Se=-1,ge=n[V];++Se<ee;){var Oe=X[Se],Re=Oe.iteratee,Wt=Oe.type,Rt=Re(ge);if(Wt==C)ge=Rt;else if(!Rt){if(Wt==q)continue e;break e}}he[oe++]=ge}return he}Ae.prototype=ui(ys.prototype),Ae.prototype.constructor=Ae;function An(n){var o=-1,l=n==null?0:n.length;for(this.clear();++o<l;){var w=n[o];this.set(w[0],w[1])}}function Gb(){this.__data__=Fi?Fi(null):{},this.size=0}function Kb(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}function Vb(n){var o=this.__data__;if(Fi){var l=o[n];return l===f?r:l}return Fe.call(o,n)?o[n]:r}function Yb(n){var o=this.__data__;return Fi?o[n]!==r:Fe.call(o,n)}function Xb(n,o){var l=this.__data__;return this.size+=this.has(n)?0:1,l[n]=Fi&&o===r?f:o,this}An.prototype.clear=Gb,An.prototype.delete=Kb,An.prototype.get=Vb,An.prototype.has=Yb,An.prototype.set=Xb;function Dr(n){var o=-1,l=n==null?0:n.length;for(this.clear();++o<l;){var w=n[o];this.set(w[0],w[1])}}function Jb(){this.__data__=[],this.size=0}function Qb(n){var o=this.__data__,l=ws(o,n);if(l<0)return!1;var w=o.length-1;return l==w?o.pop():ds.call(o,l,1),--this.size,!0}function e1(n){var o=this.__data__,l=ws(o,n);return l<0?r:o[l][1]}function t1(n){return ws(this.__data__,n)>-1}function r1(n,o){var l=this.__data__,w=ws(l,n);return w<0?(++this.size,l.push([n,o])):l[w][1]=o,this}Dr.prototype.clear=Jb,Dr.prototype.delete=Qb,Dr.prototype.get=e1,Dr.prototype.has=t1,Dr.prototype.set=r1;function Fr(n){var o=-1,l=n==null?0:n.length;for(this.clear();++o<l;){var w=n[o];this.set(w[0],w[1])}}function n1(){this.size=0,this.__data__={hash:new An,map:new(Mi||Dr),string:new An}}function i1(n){var o=ks(this,n).delete(n);return this.size-=o?1:0,o}function o1(n){return ks(this,n).get(n)}function s1(n){return ks(this,n).has(n)}function a1(n,o){var l=ks(this,n),w=l.size;return l.set(n,o),this.size+=l.size==w?0:1,this}Fr.prototype.clear=n1,Fr.prototype.delete=i1,Fr.prototype.get=o1,Fr.prototype.has=s1,Fr.prototype.set=a1;function Rn(n){var o=-1,l=n==null?0:n.length;for(this.__data__=new Fr;++o<l;)this.add(n[o])}function u1(n){return this.__data__.set(n,f),this}function l1(n){return this.__data__.has(n)}Rn.prototype.add=Rn.prototype.push=u1,Rn.prototype.has=l1;function fr(n){var o=this.__data__=new Dr(n);this.size=o.size}function c1(){this.__data__=new Dr,this.size=0}function f1(n){var o=this.__data__,l=o.delete(n);return this.size=o.size,l}function d1(n){return this.__data__.get(n)}function p1(n){return this.__data__.has(n)}function h1(n,o){var l=this.__data__;if(l instanceof Dr){var w=l.__data__;if(!Mi||w.length<s-1)return w.push([n,o]),this.size=++l.size,this;l=this.__data__=new Fr(w)}return l.set(n,o),this.size=l.size,this}fr.prototype.clear=c1,fr.prototype.delete=f1,fr.prototype.get=d1,fr.prototype.has=p1,fr.prototype.set=h1;function Dd(n,o){var l=be(n),w=!l&&In(n),_=!l&&!w&&cn(n),A=!l&&!w&&!_&&di(n),P=l||w||_||A,I=P?Au(n.length,_b):[],z=I.length;for(var V in n)(o||Fe.call(n,V))&&!(P&&(V=="length"||_&&(V=="offset"||V=="parent")||A&&(V=="buffer"||V=="byteLength"||V=="byteOffset")||Br(V,z)))&&I.push(V);return I}function Fd(n){var o=n.length;return o?n[Uu(0,o-1)]:r}function g1(n,o){return $s(kt(n),Pn(o,0,n.length))}function m1(n){return $s(kt(n))}function Lu(n,o,l){(l!==r&&!dr(n[o],l)||l===r&&!(o in n))&&Nr(n,o,l)}function ji(n,o,l){var w=n[o];(!(Fe.call(n,o)&&dr(w,l))||l===r&&!(o in n))&&Nr(n,o,l)}function ws(n,o){for(var l=n.length;l--;)if(dr(n[l][0],o))return l;return-1}function v1(n,o,l,w){return sn(n,function(_,A,P){o(w,_,l(_),P)}),w}function Nd(n,o){return n&&xr(o,dt(o),n)}function y1(n,o){return n&&xr(o,It(o),n)}function Nr(n,o,l){o=="__proto__"&&ps?ps(n,o,{configurable:!0,enumerable:!0,value:l,writable:!0}):n[o]=l}function Mu(n,o){for(var l=-1,w=o.length,_=U(w),A=n==null;++l<w;)_[l]=A?r:gl(n,o[l]);return _}function Pn(n,o,l){return n===n&&(l!==r&&(n=n<=l?n:l),o!==r&&(n=n>=o?n:o)),n}function er(n,o,l,w,_,A){var P,I=o&v,z=o&p,V=o&y;if(l&&(P=_?l(n,w,_,A):l(n)),P!==r)return P;if(!Ye(n))return n;var X=be(n);if(X){if(P=sx(n),!I)return kt(n,P)}else{var ee=St(n),oe=ee==ie||ee==wt;if(cn(n))return up(n,I);if(ee==Vt||ee==ce||oe&&!_){if(P=z||oe?{}:Ap(n),!I)return z?V1(n,y1(P,n)):K1(n,Nd(P,n))}else{if(!We[ee])return _?n:{};P=ax(n,ee,I)}}A||(A=new fr);var le=A.get(n);if(le)return le;A.set(n,P),rh(n)?n.forEach(function(ge){P.add(er(ge,o,l,ge,n,A))}):eh(n)&&n.forEach(function(ge,Oe){P.set(Oe,er(ge,o,l,Oe,n,A))});var he=V?z?tl:el:z?It:dt,Se=X?r:he(n);return Xt(Se||n,function(ge,Oe){Se&&(Oe=ge,ge=n[Oe]),ji(P,Oe,er(ge,o,l,Oe,n,A))}),P}function w1(n){var o=dt(n);return function(l){return jd(l,n,o)}}function jd(n,o,l){var w=l.length;if(n==null)return!w;for(n=Be(n);w--;){var _=l[w],A=o[_],P=n[_];if(P===r&&!(_ in n)||!A(P))return!1}return!0}function zd(n,o,l){if(typeof n!="function")throw new Jt(u);return Zi(function(){n.apply(r,l)},o)}function zi(n,o,l,w){var _=-1,A=rs,P=!0,I=n.length,z=[],V=o.length;if(!I)return z;l&&(o=Ze(o,jt(l))),w?(A=xu,P=!1):o.length>=s&&(A=Ii,P=!1,o=new Rn(o));e:for(;++_<I;){var X=n[_],ee=l==null?X:l(X);if(X=w||X!==0?X:0,P&&ee===ee){for(var oe=V;oe--;)if(o[oe]===ee)continue e;z.push(X)}else A(o,ee,w)||z.push(X)}return z}var sn=pp(br),Bd=pp(Fu,!0);function b1(n,o){var l=!0;return sn(n,function(w,_,A){return l=!!o(w,_,A),l}),l}function bs(n,o,l){for(var w=-1,_=n.length;++w<_;){var A=n[w],P=o(A);if(P!=null&&(I===r?P===P&&!Bt(P):l(P,I)))var I=P,z=A}return z}function x1(n,o,l,w){var _=n.length;for(l=xe(l),l<0&&(l=-l>_?0:_+l),w=w===r||w>_?_:xe(w),w<0&&(w+=_),w=l>w?0:ih(w);l<w;)n[l++]=o;return n}function Wd(n,o){var l=[];return sn(n,function(w,_,A){o(w,_,A)&&l.push(w)}),l}function gt(n,o,l,w,_){var A=-1,P=n.length;for(l||(l=lx),_||(_=[]);++A<P;){var I=n[A];o>0&&l(I)?o>1?gt(I,o-1,l,w,_):rn(_,I):w||(_[_.length]=I)}return _}var Du=hp(),Hd=hp(!0);function br(n,o){return n&&Du(n,o,dt)}function Fu(n,o){return n&&Hd(n,o,dt)}function xs(n,o){return tn(o,function(l){return Wr(n[l])})}function Cn(n,o){o=un(o,n);for(var l=0,w=o.length;n!=null&&l<w;)n=n[Sr(o[l++])];return l&&l==w?n:r}function Ud(n,o,l){var w=o(n);return be(n)?w:rn(w,l(n))}function Tt(n){return n==null?n===r?$i:Yo:Tn&&Tn in Be(n)?nx(n):mx(n)}function Nu(n,o){return n>o}function S1(n,o){return n!=null&&Fe.call(n,o)}function E1(n,o){return n!=null&&o in Be(n)}function _1(n,o,l){return n>=xt(o,l)&&n<lt(o,l)}function ju(n,o,l){for(var w=l?xu:rs,_=n[0].length,A=n.length,P=A,I=U(A),z=1/0,V=[];P--;){var X=n[P];P&&o&&(X=Ze(X,jt(o))),z=xt(X.length,z),I[P]=!l&&(o||_>=120&&X.length>=120)?new Rn(P&&X):r}X=n[0];var ee=-1,oe=I[0];e:for(;++ee<_&&V.length<z;){var le=X[ee],he=o?o(le):le;if(le=l||le!==0?le:0,!(oe?Ii(oe,he):w(V,he,l))){for(P=A;--P;){var Se=I[P];if(!(Se?Ii(Se,he):w(n[P],he,l)))continue e}oe&&oe.push(he),V.push(le)}}return V}function O1(n,o,l,w){return br(n,function(_,A,P){o(w,l(_),A,P)}),w}function Bi(n,o,l){o=un(o,n),n=kp(n,o);var w=n==null?n:n[Sr(rr(o))];return w==null?r:Nt(w,n,l)}function qd(n){return et(n)&&Tt(n)==ce}function T1(n){return et(n)&&Tt(n)==en}function A1(n){return et(n)&&Tt(n)==Ee}function Wi(n,o,l,w,_){return n===o?!0:n==null||o==null||!et(n)&&!et(o)?n!==n&&o!==o:R1(n,o,l,w,Wi,_)}function R1(n,o,l,w,_,A){var P=be(n),I=be(o),z=P?fe:St(n),V=I?fe:St(o);z=z==ce?Vt:z,V=V==ce?Vt:V;var X=z==Vt,ee=V==Vt,oe=z==V;if(oe&&cn(n)){if(!cn(o))return!1;P=!0,X=!1}if(oe&&!X)return A||(A=new fr),P||di(n)?_p(n,o,l,w,_,A):tx(n,o,z,l,w,_,A);if(!(l&x)){var le=X&&Fe.call(n,"__wrapped__"),he=ee&&Fe.call(o,"__wrapped__");if(le||he){var Se=le?n.value():n,ge=he?o.value():o;return A||(A=new fr),_(Se,ge,l,w,A)}}return oe?(A||(A=new fr),rx(n,o,l,w,_,A)):!1}function P1(n){return et(n)&&St(n)==ft}function zu(n,o,l,w){var _=l.length,A=_,P=!w;if(n==null)return!A;for(n=Be(n);_--;){var I=l[_];if(P&&I[2]?I[1]!==n[I[0]]:!(I[0]in n))return!1}for(;++_<A;){I=l[_];var z=I[0],V=n[z],X=I[1];if(P&&I[2]){if(V===r&&!(z in n))return!1}else{var ee=new fr;if(w)var oe=w(V,X,z,n,o,ee);if(!(oe===r?Wi(X,V,x|d,w,ee):oe))return!1}}return!0}function Zd(n){if(!Ye(n)||fx(n))return!1;var o=Wr(n)?Pb:ww;return o.test($n(n))}function C1(n){return et(n)&&Tt(n)==Ft}function k1(n){return et(n)&&St(n)==bt}function $1(n){return et(n)&&Ns(n.length)&&!!Ue[Tt(n)]}function Gd(n){return typeof n=="function"?n:n==null?Lt:typeof n=="object"?be(n)?Yd(n[0],n[1]):Vd(n):gh(n)}function Bu(n){if(!qi(n))return Mb(n);var o=[];for(var l in Be(n))Fe.call(n,l)&&l!="constructor"&&o.push(l);return o}function I1(n){if(!Ye(n))return gx(n);var o=qi(n),l=[];for(var w in n)w=="constructor"&&(o||!Fe.call(n,w))||l.push(w);return l}function Wu(n,o){return n<o}function Kd(n,o){var l=-1,w=$t(n)?U(n.length):[];return sn(n,function(_,A,P){w[++l]=o(_,A,P)}),w}function Vd(n){var o=nl(n);return o.length==1&&o[0][2]?Pp(o[0][0],o[0][1]):function(l){return l===n||zu(l,n,o)}}function Yd(n,o){return ol(n)&&Rp(o)?Pp(Sr(n),o):function(l){var w=gl(l,n);return w===r&&w===o?ml(l,n):Wi(o,w,x|d)}}function Ss(n,o,l,w,_){n!==o&&Du(o,function(A,P){if(_||(_=new fr),Ye(A))L1(n,o,P,l,Ss,w,_);else{var I=w?w(al(n,P),A,P+"",n,o,_):r;I===r&&(I=A),Lu(n,P,I)}},It)}function L1(n,o,l,w,_,A,P){var I=al(n,l),z=al(o,l),V=P.get(z);if(V){Lu(n,l,V);return}var X=A?A(I,z,l+"",n,o,P):r,ee=X===r;if(ee){var oe=be(z),le=!oe&&cn(z),he=!oe&&!le&&di(z);X=z,oe||le||he?be(I)?X=I:rt(I)?X=kt(I):le?(ee=!1,X=up(z,!0)):he?(ee=!1,X=lp(z,!0)):X=[]:Gi(z)||In(z)?(X=I,In(I)?X=oh(I):(!Ye(I)||Wr(I))&&(X=Ap(z))):ee=!1}ee&&(P.set(z,X),_(X,z,w,A,P),P.delete(z)),Lu(n,l,X)}function Xd(n,o){var l=n.length;if(l)return o+=o<0?l:0,Br(o,l)?n[o]:r}function Jd(n,o,l){o.length?o=Ze(o,function(A){return be(A)?function(P){return Cn(P,A.length===1?A[0]:A)}:A}):o=[Lt];var w=-1;o=Ze(o,jt(pe()));var _=Kd(n,function(A,P,I){var z=Ze(o,function(V){return V(A)});return{criteria:z,index:++w,value:A}});return ab(_,function(A,P){return G1(A,P,l)})}function M1(n,o){return Qd(n,o,function(l,w){return ml(n,w)})}function Qd(n,o,l){for(var w=-1,_=o.length,A={};++w<_;){var P=o[w],I=Cn(n,P);l(I,P)&&Hi(A,un(P,n),I)}return A}function D1(n){return function(o){return Cn(o,n)}}function Hu(n,o,l,w){var _=w?sb:ti,A=-1,P=o.length,I=n;for(n===o&&(o=kt(o)),l&&(I=Ze(n,jt(l)));++A<P;)for(var z=0,V=o[A],X=l?l(V):V;(z=_(I,X,z,w))>-1;)I!==n&&ds.call(I,z,1),ds.call(n,z,1);return n}function ep(n,o){for(var l=n?o.length:0,w=l-1;l--;){var _=o[l];if(l==w||_!==A){var A=_;Br(_)?ds.call(n,_,1):Gu(n,_)}}return n}function Uu(n,o){return n+gs(Ld()*(o-n+1))}function F1(n,o,l,w){for(var _=-1,A=lt(hs((o-n)/(l||1)),0),P=U(A);A--;)P[w?A:++_]=n,n+=l;return P}function qu(n,o){var l="";if(!n||o<1||o>te)return l;do o%2&&(l+=n),o=gs(o/2),o&&(n+=n);while(o);return l}function _e(n,o){return ul(Cp(n,o,Lt),n+"")}function N1(n){return Fd(pi(n))}function j1(n,o){var l=pi(n);return $s(l,Pn(o,0,l.length))}function Hi(n,o,l,w){if(!Ye(n))return n;o=un(o,n);for(var _=-1,A=o.length,P=A-1,I=n;I!=null&&++_<A;){var z=Sr(o[_]),V=l;if(z==="__proto__"||z==="constructor"||z==="prototype")return n;if(_!=P){var X=I[z];V=w?w(X,z,I):r,V===r&&(V=Ye(X)?X:Br(o[_+1])?[]:{})}ji(I,z,V),I=I[z]}return n}var tp=ms?function(n,o){return ms.set(n,o),n}:Lt,z1=ps?function(n,o){return ps(n,"toString",{configurable:!0,enumerable:!1,value:yl(o),writable:!0})}:Lt;function B1(n){return $s(pi(n))}function tr(n,o,l){var w=-1,_=n.length;o<0&&(o=-o>_?0:_+o),l=l>_?_:l,l<0&&(l+=_),_=o>l?0:l-o>>>0,o>>>=0;for(var A=U(_);++w<_;)A[w]=n[w+o];return A}function W1(n,o){var l;return sn(n,function(w,_,A){return l=o(w,_,A),!l}),!!l}function Es(n,o,l){var w=0,_=n==null?w:n.length;if(typeof o=="number"&&o===o&&_<=ue){for(;w<_;){var A=w+_>>>1,P=n[A];P!==null&&!Bt(P)&&(l?P<=o:P<o)?w=A+1:_=A}return _}return Zu(n,o,Lt,l)}function Zu(n,o,l,w){var _=0,A=n==null?0:n.length;if(A===0)return 0;o=l(o);for(var P=o!==o,I=o===null,z=Bt(o),V=o===r;_<A;){var X=gs((_+A)/2),ee=l(n[X]),oe=ee!==r,le=ee===null,he=ee===ee,Se=Bt(ee);if(P)var ge=w||he;else V?ge=he&&(w||oe):I?ge=he&&oe&&(w||!le):z?ge=he&&oe&&!le&&(w||!Se):le||Se?ge=!1:ge=w?ee<=o:ee<o;ge?_=X+1:A=X}return xt(A,se)}function rp(n,o){for(var l=-1,w=n.length,_=0,A=[];++l<w;){var P=n[l],I=o?o(P):P;if(!l||!dr(I,z)){var z=I;A[_++]=P===0?0:P}}return A}function np(n){return typeof n=="number"?n:Bt(n)?Z:+n}function zt(n){if(typeof n=="string")return n;if(be(n))return Ze(n,zt)+"";if(Bt(n))return Md?Md.call(n):"";var o=n+"";return o=="0"&&1/n==-Y?"-0":o}function an(n,o,l){var w=-1,_=rs,A=n.length,P=!0,I=[],z=I;if(l)P=!1,_=xu;else if(A>=s){var V=o?null:Q1(n);if(V)return is(V);P=!1,_=Ii,z=new Rn}else z=o?[]:I;e:for(;++w<A;){var X=n[w],ee=o?o(X):X;if(X=l||X!==0?X:0,P&&ee===ee){for(var oe=z.length;oe--;)if(z[oe]===ee)continue e;o&&z.push(ee),I.push(X)}else _(z,ee,l)||(z!==I&&z.push(ee),I.push(X))}return I}function Gu(n,o){return o=un(o,n),n=kp(n,o),n==null||delete n[Sr(rr(o))]}function ip(n,o,l,w){return Hi(n,o,l(Cn(n,o)),w)}function _s(n,o,l,w){for(var _=n.length,A=w?_:-1;(w?A--:++A<_)&&o(n[A],A,n););return l?tr(n,w?0:A,w?A+1:_):tr(n,w?A+1:0,w?_:A)}function op(n,o){var l=n;return l instanceof Ae&&(l=l.value()),Su(o,function(w,_){return _.func.apply(_.thisArg,rn([w],_.args))},l)}function Ku(n,o,l){var w=n.length;if(w<2)return w?an(n[0]):[];for(var _=-1,A=U(w);++_<w;)for(var P=n[_],I=-1;++I<w;)I!=_&&(A[_]=zi(A[_]||P,n[I],o,l));return an(gt(A,1),o,l)}function sp(n,o,l){for(var w=-1,_=n.length,A=o.length,P={};++w<_;){var I=w<A?o[w]:r;l(P,n[w],I)}return P}function Vu(n){return rt(n)?n:[]}function Yu(n){return typeof n=="function"?n:Lt}function un(n,o){return be(n)?n:ol(n,o)?[n]:Mp(ke(n))}var H1=_e;function ln(n,o,l){var w=n.length;return l=l===r?w:l,!o&&l>=w?n:tr(n,o,l)}var ap=Cb||function(n){return ht.clearTimeout(n)};function up(n,o){if(o)return n.slice();var l=n.length,w=Pd?Pd(l):new n.constructor(l);return n.copy(w),w}function Xu(n){var o=new n.constructor(n.byteLength);return new cs(o).set(new cs(n)),o}function U1(n,o){var l=o?Xu(n.buffer):n.buffer;return new n.constructor(l,n.byteOffset,n.byteLength)}function q1(n){var o=new n.constructor(n.source,qf.exec(n));return o.lastIndex=n.lastIndex,o}function Z1(n){return Ni?Be(Ni.call(n)):{}}function lp(n,o){var l=o?Xu(n.buffer):n.buffer;return new n.constructor(l,n.byteOffset,n.length)}function cp(n,o){if(n!==o){var l=n!==r,w=n===null,_=n===n,A=Bt(n),P=o!==r,I=o===null,z=o===o,V=Bt(o);if(!I&&!V&&!A&&n>o||A&&P&&z&&!I&&!V||w&&P&&z||!l&&z||!_)return 1;if(!w&&!A&&!V&&n<o||V&&l&&_&&!w&&!A||I&&l&&_||!P&&_||!z)return-1}return 0}function G1(n,o,l){for(var w=-1,_=n.criteria,A=o.criteria,P=_.length,I=l.length;++w<P;){var z=cp(_[w],A[w]);if(z){if(w>=I)return z;var V=l[w];return z*(V=="desc"?-1:1)}}return n.index-o.index}function fp(n,o,l,w){for(var _=-1,A=n.length,P=l.length,I=-1,z=o.length,V=lt(A-P,0),X=U(z+V),ee=!w;++I<z;)X[I]=o[I];for(;++_<P;)(ee||_<A)&&(X[l[_]]=n[_]);for(;V--;)X[I++]=n[_++];return X}function dp(n,o,l,w){for(var _=-1,A=n.length,P=-1,I=l.length,z=-1,V=o.length,X=lt(A-I,0),ee=U(X+V),oe=!w;++_<X;)ee[_]=n[_];for(var le=_;++z<V;)ee[le+z]=o[z];for(;++P<I;)(oe||_<A)&&(ee[le+l[P]]=n[_++]);return ee}function kt(n,o){var l=-1,w=n.length;for(o||(o=U(w));++l<w;)o[l]=n[l];return o}function xr(n,o,l,w){var _=!l;l||(l={});for(var A=-1,P=o.length;++A<P;){var I=o[A],z=w?w(l[I],n[I],I,l,n):r;z===r&&(z=n[I]),_?Nr(l,I,z):ji(l,I,z)}return l}function K1(n,o){return xr(n,il(n),o)}function V1(n,o){return xr(n,Op(n),o)}function Os(n,o){return function(l,w){var _=be(l)?eb:v1,A=o?o():{};return _(l,n,pe(w,2),A)}}function li(n){return _e(function(o,l){var w=-1,_=l.length,A=_>1?l[_-1]:r,P=_>2?l[2]:r;for(A=n.length>3&&typeof A=="function"?(_--,A):r,P&&At(l[0],l[1],P)&&(A=_<3?r:A,_=1),o=Be(o);++w<_;){var I=l[w];I&&n(o,I,w,A)}return o})}function pp(n,o){return function(l,w){if(l==null)return l;if(!$t(l))return n(l,w);for(var _=l.length,A=o?_:-1,P=Be(l);(o?A--:++A<_)&&w(P[A],A,P)!==!1;);return l}}function hp(n){return function(o,l,w){for(var _=-1,A=Be(o),P=w(o),I=P.length;I--;){var z=P[n?I:++_];if(l(A[z],z,A)===!1)break}return o}}function Y1(n,o,l){var w=o&b,_=Ui(n);function A(){var P=this&&this!==ht&&this instanceof A?_:n;return P.apply(w?l:this,arguments)}return A}function gp(n){return function(o){o=ke(o);var l=ri(o)?cr(o):r,w=l?l[0]:o.charAt(0),_=l?ln(l,1).join(""):o.slice(1);return w[n]()+_}}function ci(n){return function(o){return Su(ph(dh(o).replace(zw,"")),n,"")}}function Ui(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 l=ui(n.prototype),w=n.apply(l,o);return Ye(w)?w:l}}function X1(n,o,l){var w=Ui(n);function _(){for(var A=arguments.length,P=U(A),I=A,z=fi(_);I--;)P[I]=arguments[I];var V=A<3&&P[0]!==z&&P[A-1]!==z?[]:nn(P,z);if(A-=V.length,A<l)return bp(n,o,Ts,_.placeholder,r,P,V,r,r,l-A);var X=this&&this!==ht&&this instanceof _?w:n;return Nt(X,this,P)}return _}function mp(n){return function(o,l,w){var _=Be(o);if(!$t(o)){var A=pe(l,3);o=dt(o),l=function(I){return A(_[I],I,_)}}var P=n(o,l,w);return P>-1?_[A?o[P]:P]:r}}function vp(n){return zr(function(o){var l=o.length,w=l,_=Qt.prototype.thru;for(n&&o.reverse();w--;){var A=o[w];if(typeof A!="function")throw new Jt(u);if(_&&!P&&Cs(A)=="wrapper")var P=new Qt([],!0)}for(w=P?w:l;++w<l;){A=o[w];var I=Cs(A),z=I=="wrapper"?rl(A):r;z&&sl(z[0])&&z[1]==(W|E|O|M)&&!z[4].length&&z[9]==1?P=P[Cs(z[0])].apply(P,z[3]):P=A.length==1&&sl(A)?P[I]():P.thru(A)}return function(){var V=arguments,X=V[0];if(P&&V.length==1&&be(X))return P.plant(X).value();for(var ee=0,oe=l?o[ee].apply(this,V):X;++ee<l;)oe=o[ee].call(this,oe);return oe}})}function Ts(n,o,l,w,_,A,P,I,z,V){var X=o&W,ee=o&b,oe=o&m,le=o&(E|R),he=o&F,Se=oe?r:Ui(n);function ge(){for(var Oe=arguments.length,Re=U(Oe),Wt=Oe;Wt--;)Re[Wt]=arguments[Wt];if(le)var Rt=fi(ge),Ht=lb(Re,Rt);if(w&&(Re=fp(Re,w,_,le)),A&&(Re=dp(Re,A,P,le)),Oe-=Ht,le&&Oe<V){var nt=nn(Re,Rt);return bp(n,o,Ts,ge.placeholder,l,Re,nt,I,z,V-Oe)}var pr=ee?l:this,Ur=oe?pr[n]:n;return Oe=Re.length,I?Re=vx(Re,I):he&&Oe>1&&Re.reverse(),X&&z<Oe&&(Re.length=z),this&&this!==ht&&this instanceof ge&&(Ur=Se||Ui(Ur)),Ur.apply(pr,Re)}return ge}function yp(n,o){return function(l,w){return O1(l,n,o(w),{})}}function As(n,o){return function(l,w){var _;if(l===r&&w===r)return o;if(l!==r&&(_=l),w!==r){if(_===r)return w;typeof l=="string"||typeof w=="string"?(l=zt(l),w=zt(w)):(l=np(l),w=np(w)),_=n(l,w)}return _}}function Ju(n){return zr(function(o){return o=Ze(o,jt(pe())),_e(function(l){var w=this;return n(o,function(_){return Nt(_,w,l)})})})}function Rs(n,o){o=o===r?" ":zt(o);var l=o.length;if(l<2)return l?qu(o,n):o;var w=qu(o,hs(n/ni(o)));return ri(o)?ln(cr(w),0,n).join(""):w.slice(0,n)}function J1(n,o,l,w){var _=o&b,A=Ui(n);function P(){for(var I=-1,z=arguments.length,V=-1,X=w.length,ee=U(X+z),oe=this&&this!==ht&&this instanceof P?A:n;++V<X;)ee[V]=w[V];for(;z--;)ee[V++]=arguments[++I];return Nt(oe,_?l:this,ee)}return P}function wp(n){return function(o,l,w){return w&&typeof w!="number"&&At(o,l,w)&&(l=w=r),o=Hr(o),l===r?(l=o,o=0):l=Hr(l),w=w===r?o<l?1:-1:Hr(w),F1(o,l,w,n)}}function Ps(n){return function(o,l){return typeof o=="string"&&typeof l=="string"||(o=nr(o),l=nr(l)),n(o,l)}}function bp(n,o,l,w,_,A,P,I,z,V){var X=o&E,ee=X?P:r,oe=X?r:P,le=X?A:r,he=X?r:A;o|=X?O:k,o&=~(X?k:O),o&S||(o&=-4);var Se=[n,o,_,le,ee,he,oe,I,z,V],ge=l.apply(r,Se);return sl(n)&&$p(ge,Se),ge.placeholder=w,Ip(ge,n,o)}function Qu(n){var o=ut[n];return function(l,w){if(l=nr(l),w=w==null?0:xt(xe(w),292),w&&Id(l)){var _=(ke(l)+"e").split("e"),A=o(_[0]+"e"+(+_[1]+w));return _=(ke(A)+"e").split("e"),+(_[0]+"e"+(+_[1]-w))}return o(l)}}var Q1=si&&1/is(new si([,-0]))[1]==Y?function(n){return new si(n)}:xl;function xp(n){return function(o){var l=St(o);return l==ft?Pu(o):l==bt?mb(o):ub(o,n(o))}}function jr(n,o,l,w,_,A,P,I){var z=o&m;if(!z&&typeof n!="function")throw new Jt(u);var V=w?w.length:0;if(V||(o&=-97,w=_=r),P=P===r?P:lt(xe(P),0),I=I===r?I:xe(I),V-=_?_.length:0,o&k){var X=w,ee=_;w=_=r}var oe=z?r:rl(n),le=[n,o,l,w,_,X,ee,A,P,I];if(oe&&hx(le,oe),n=le[0],o=le[1],l=le[2],w=le[3],_=le[4],I=le[9]=le[9]===r?z?0:n.length:lt(le[9]-V,0),!I&&o&(E|R)&&(o&=-25),!o||o==b)var he=Y1(n,o,l);else o==E||o==R?he=X1(n,o,I):(o==O||o==(b|O))&&!_.length?he=J1(n,o,l,w):he=Ts.apply(r,le);var Se=oe?tp:$p;return Ip(Se(he,le),n,o)}function Sp(n,o,l,w){return n===r||dr(n,oi[l])&&!Fe.call(w,l)?o:n}function Ep(n,o,l,w,_,A){return Ye(n)&&Ye(o)&&(A.set(o,n),Ss(n,o,r,Ep,A),A.delete(o)),n}function ex(n){return Gi(n)?r:n}function _p(n,o,l,w,_,A){var P=l&x,I=n.length,z=o.length;if(I!=z&&!(P&&z>I))return!1;var V=A.get(n),X=A.get(o);if(V&&X)return V==o&&X==n;var ee=-1,oe=!0,le=l&d?new Rn:r;for(A.set(n,o),A.set(o,n);++ee<I;){var he=n[ee],Se=o[ee];if(w)var ge=P?w(Se,he,ee,o,n,A):w(he,Se,ee,n,o,A);if(ge!==r){if(ge)continue;oe=!1;break}if(le){if(!Eu(o,function(Oe,Re){if(!Ii(le,Re)&&(he===Oe||_(he,Oe,l,w,A)))return le.push(Re)})){oe=!1;break}}else if(!(he===Se||_(he,Se,l,w,A))){oe=!1;break}}return A.delete(n),A.delete(o),oe}function tx(n,o,l,w,_,A,P){switch(l){case Mr:if(n.byteLength!=o.byteLength||n.byteOffset!=o.byteOffset)return!1;n=n.buffer,o=o.buffer;case en:return!(n.byteLength!=o.byteLength||!A(new cs(n),new cs(o)));case me:case Ee:case wr:return dr(+n,+o);case Ve:return n.name==o.name&&n.message==o.message;case Ft:case Jr:return n==o+"";case ft:var I=Pu;case bt:var z=w&x;if(I||(I=is),n.size!=o.size&&!z)return!1;var V=P.get(n);if(V)return V==o;w|=d,P.set(n,o);var X=_p(I(n),I(o),w,_,A,P);return P.delete(n),X;case _n:if(Ni)return Ni.call(n)==Ni.call(o)}return!1}function rx(n,o,l,w,_,A){var P=l&x,I=el(n),z=I.length,V=el(o),X=V.length;if(z!=X&&!P)return!1;for(var ee=z;ee--;){var oe=I[ee];if(!(P?oe in o:Fe.call(o,oe)))return!1}var le=A.get(n),he=A.get(o);if(le&&he)return le==o&&he==n;var Se=!0;A.set(n,o),A.set(o,n);for(var ge=P;++ee<z;){oe=I[ee];var Oe=n[oe],Re=o[oe];if(w)var Wt=P?w(Re,Oe,oe,o,n,A):w(Oe,Re,oe,n,o,A);if(!(Wt===r?Oe===Re||_(Oe,Re,l,w,A):Wt)){Se=!1;break}ge||(ge=oe=="constructor")}if(Se&&!ge){var Rt=n.constructor,Ht=o.constructor;Rt!=Ht&&"constructor"in n&&"constructor"in o&&!(typeof Rt=="function"&&Rt instanceof Rt&&typeof Ht=="function"&&Ht instanceof Ht)&&(Se=!1)}return A.delete(n),A.delete(o),Se}function zr(n){return ul(Cp(n,r,jp),n+"")}function el(n){return Ud(n,dt,il)}function tl(n){return Ud(n,It,Op)}var rl=ms?function(n){return ms.get(n)}:xl;function Cs(n){for(var o=n.name+"",l=ai[o],w=Fe.call(ai,o)?l.length:0;w--;){var _=l[w],A=_.func;if(A==null||A==n)return _.name}return o}function fi(n){var o=Fe.call(T,"placeholder")?T:n;return o.placeholder}function pe(){var n=T.iteratee||wl;return n=n===wl?Gd:n,arguments.length?n(arguments[0],arguments[1]):n}function ks(n,o){var l=n.__data__;return cx(o)?l[typeof o=="string"?"string":"hash"]:l.map}function nl(n){for(var o=dt(n),l=o.length;l--;){var w=o[l],_=n[w];o[l]=[w,_,Rp(_)]}return o}function kn(n,o){var l=pb(n,o);return Zd(l)?l:r}function nx(n){var o=Fe.call(n,Tn),l=n[Tn];try{n[Tn]=r;var w=!0}catch{}var _=us.call(n);return w&&(o?n[Tn]=l:delete n[Tn]),_}var il=ku?function(n){return n==null?[]:(n=Be(n),tn(ku(n),function(o){return kd.call(n,o)}))}:Sl,Op=ku?function(n){for(var o=[];n;)rn(o,il(n)),n=fs(n);return o}:Sl,St=Tt;($u&&St(new $u(new ArrayBuffer(1)))!=Mr||Mi&&St(new Mi)!=ft||Iu&&St(Iu.resolve())!=Xo||si&&St(new si)!=bt||Di&&St(new Di)!=Qr)&&(St=function(n){var o=Tt(n),l=o==Vt?n.constructor:r,w=l?$n(l):"";if(w)switch(w){case jb:return Mr;case zb:return ft;case Bb:return Xo;case Wb:return bt;case Hb:return Qr}return o});function ix(n,o,l){for(var w=-1,_=l.length;++w<_;){var A=l[w],P=A.size;switch(A.type){case"drop":n+=P;break;case"dropRight":o-=P;break;case"take":o=xt(o,n+P);break;case"takeRight":n=lt(n,o-P);break}}return{start:n,end:o}}function ox(n){var o=n.match(fw);return o?o[1].split(dw):[]}function Tp(n,o,l){o=un(o,n);for(var w=-1,_=o.length,A=!1;++w<_;){var P=Sr(o[w]);if(!(A=n!=null&&l(n,P)))break;n=n[P]}return A||++w!=_?A:(_=n==null?0:n.length,!!_&&Ns(_)&&Br(P,_)&&(be(n)||In(n)))}function sx(n){var o=n.length,l=new n.constructor(o);return o&&typeof n[0]=="string"&&Fe.call(n,"index")&&(l.index=n.index,l.input=n.input),l}function Ap(n){return typeof n.constructor=="function"&&!qi(n)?ui(fs(n)):{}}function ax(n,o,l){var w=n.constructor;switch(o){case en:return Xu(n);case me:case Ee:return new w(+n);case Mr:return U1(n,l);case nu:case iu:case ou:case su:case au:case uu:case lu:case cu:case fu:return lp(n,l);case ft:return new w;case wr:case Jr:return new w(n);case Ft:return q1(n);case bt:return new w;case _n:return Z1(n)}}function ux(n,o){var l=o.length;if(!l)return n;var w=l-1;return o[w]=(l>1?"& ":"")+o[w],o=o.join(l>2?", ":" "),n.replace(cw,`{
183
- /* [wrapped with `+o+`] */
184
- `)}function lx(n){return be(n)||In(n)||!!($d&&n&&n[$d])}function Br(n,o){var l=typeof n;return o=o??te,!!o&&(l=="number"||l!="symbol"&&xw.test(n))&&n>-1&&n%1==0&&n<o}function At(n,o,l){if(!Ye(l))return!1;var w=typeof o;return(w=="number"?$t(l)&&Br(o,l.length):w=="string"&&o in l)?dr(l[o],n):!1}function ol(n,o){if(be(n))return!1;var l=typeof n;return l=="number"||l=="symbol"||l=="boolean"||n==null||Bt(n)?!0:sw.test(n)||!ow.test(n)||o!=null&&n in Be(o)}function cx(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}function sl(n){var o=Cs(n),l=T[o];if(typeof l!="function"||!(o in Ae.prototype))return!1;if(n===l)return!0;var w=rl(l);return!!w&&n===w[0]}function fx(n){return!!Rd&&Rd in n}var dx=ss?Wr:El;function qi(n){var o=n&&n.constructor,l=typeof o=="function"&&o.prototype||oi;return n===l}function Rp(n){return n===n&&!Ye(n)}function Pp(n,o){return function(l){return l==null?!1:l[n]===o&&(o!==r||n in Be(l))}}function px(n){var o=Ds(n,function(w){return l.size===g&&l.clear(),w}),l=o.cache;return o}function hx(n,o){var l=n[1],w=o[1],_=l|w,A=_<(b|m|W),P=w==W&&l==E||w==W&&l==M&&n[7].length<=o[8]||w==(W|M)&&o[7].length<=o[8]&&l==E;if(!(A||P))return n;w&b&&(n[2]=o[2],_|=l&b?0:S);var I=o[3];if(I){var z=n[3];n[3]=z?fp(z,I,o[4]):I,n[4]=z?nn(n[3],h):o[4]}return I=o[5],I&&(z=n[5],n[5]=z?dp(z,I,o[6]):I,n[6]=z?nn(n[5],h):o[6]),I=o[7],I&&(n[7]=I),w&W&&(n[8]=n[8]==null?o[8]:xt(n[8],o[8])),n[9]==null&&(n[9]=o[9]),n[0]=o[0],n[1]=_,n}function gx(n){var o=[];if(n!=null)for(var l in Be(n))o.push(l);return o}function mx(n){return us.call(n)}function Cp(n,o,l){return o=lt(o===r?n.length-1:o,0),function(){for(var w=arguments,_=-1,A=lt(w.length-o,0),P=U(A);++_<A;)P[_]=w[o+_];_=-1;for(var I=U(o+1);++_<o;)I[_]=w[_];return I[o]=l(P),Nt(n,this,I)}}function kp(n,o){return o.length<2?n:Cn(n,tr(o,0,-1))}function vx(n,o){for(var l=n.length,w=xt(o.length,l),_=kt(n);w--;){var A=o[w];n[w]=Br(A,l)?_[A]:r}return n}function al(n,o){if(!(o==="constructor"&&typeof n[o]=="function")&&o!="__proto__")return n[o]}var $p=Lp(tp),Zi=$b||function(n,o){return ht.setTimeout(n,o)},ul=Lp(z1);function Ip(n,o,l){var w=o+"";return ul(n,ux(w,yx(ox(w),l)))}function Lp(n){var o=0,l=0;return function(){var w=Db(),_=H-(w-l);if(l=w,_>0){if(++o>=L)return arguments[0]}else o=0;return n.apply(r,arguments)}}function $s(n,o){var l=-1,w=n.length,_=w-1;for(o=o===r?w:o;++l<o;){var A=Uu(l,_),P=n[A];n[A]=n[l],n[l]=P}return n.length=o,n}var Mp=px(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(aw,function(l,w,_,A){o.push(_?A.replace(gw,"$1"):w||l)}),o});function Sr(n){if(typeof n=="string"||Bt(n))return n;var o=n+"";return o=="0"&&1/n==-Y?"-0":o}function $n(n){if(n!=null){try{return as.call(n)}catch{}try{return n+""}catch{}}return""}function yx(n,o){return Xt(ne,function(l){var w="_."+l[0];o&l[1]&&!rs(n,w)&&n.push(w)}),n.sort()}function Dp(n){if(n instanceof Ae)return n.clone();var o=new Qt(n.__wrapped__,n.__chain__);return o.__actions__=kt(n.__actions__),o.__index__=n.__index__,o.__values__=n.__values__,o}function wx(n,o,l){(l?At(n,o,l):o===r)?o=1:o=lt(xe(o),0);var w=n==null?0:n.length;if(!w||o<1)return[];for(var _=0,A=0,P=U(hs(w/o));_<w;)P[A++]=tr(n,_,_+=o);return P}function bx(n){for(var o=-1,l=n==null?0:n.length,w=0,_=[];++o<l;){var A=n[o];A&&(_[w++]=A)}return _}function xx(){var n=arguments.length;if(!n)return[];for(var o=U(n-1),l=arguments[0],w=n;w--;)o[w-1]=arguments[w];return rn(be(l)?kt(l):[l],gt(o,1))}var Sx=_e(function(n,o){return rt(n)?zi(n,gt(o,1,rt,!0)):[]}),Ex=_e(function(n,o){var l=rr(o);return rt(l)&&(l=r),rt(n)?zi(n,gt(o,1,rt,!0),pe(l,2)):[]}),_x=_e(function(n,o){var l=rr(o);return rt(l)&&(l=r),rt(n)?zi(n,gt(o,1,rt,!0),r,l):[]});function Ox(n,o,l){var w=n==null?0:n.length;return w?(o=l||o===r?1:xe(o),tr(n,o<0?0:o,w)):[]}function Tx(n,o,l){var w=n==null?0:n.length;return w?(o=l||o===r?1:xe(o),o=w-o,tr(n,0,o<0?0:o)):[]}function Ax(n,o){return n&&n.length?_s(n,pe(o,3),!0,!0):[]}function Rx(n,o){return n&&n.length?_s(n,pe(o,3),!0):[]}function Px(n,o,l,w){var _=n==null?0:n.length;return _?(l&&typeof l!="number"&&At(n,o,l)&&(l=0,w=_),x1(n,o,l,w)):[]}function Fp(n,o,l){var w=n==null?0:n.length;if(!w)return-1;var _=l==null?0:xe(l);return _<0&&(_=lt(w+_,0)),ns(n,pe(o,3),_)}function Np(n,o,l){var w=n==null?0:n.length;if(!w)return-1;var _=w-1;return l!==r&&(_=xe(l),_=l<0?lt(w+_,0):xt(_,w-1)),ns(n,pe(o,3),_,!0)}function jp(n){var o=n==null?0:n.length;return o?gt(n,1):[]}function Cx(n){var o=n==null?0:n.length;return o?gt(n,Y):[]}function kx(n,o){var l=n==null?0:n.length;return l?(o=o===r?1:xe(o),gt(n,o)):[]}function $x(n){for(var o=-1,l=n==null?0:n.length,w={};++o<l;){var _=n[o];w[_[0]]=_[1]}return w}function zp(n){return n&&n.length?n[0]:r}function Ix(n,o,l){var w=n==null?0:n.length;if(!w)return-1;var _=l==null?0:xe(l);return _<0&&(_=lt(w+_,0)),ti(n,o,_)}function Lx(n){var o=n==null?0:n.length;return o?tr(n,0,-1):[]}var Mx=_e(function(n){var o=Ze(n,Vu);return o.length&&o[0]===n[0]?ju(o):[]}),Dx=_e(function(n){var o=rr(n),l=Ze(n,Vu);return o===rr(l)?o=r:l.pop(),l.length&&l[0]===n[0]?ju(l,pe(o,2)):[]}),Fx=_e(function(n){var o=rr(n),l=Ze(n,Vu);return o=typeof o=="function"?o:r,o&&l.pop(),l.length&&l[0]===n[0]?ju(l,r,o):[]});function Nx(n,o){return n==null?"":Lb.call(n,o)}function rr(n){var o=n==null?0:n.length;return o?n[o-1]:r}function jx(n,o,l){var w=n==null?0:n.length;if(!w)return-1;var _=w;return l!==r&&(_=xe(l),_=_<0?lt(w+_,0):xt(_,w-1)),o===o?yb(n,o,_):ns(n,bd,_,!0)}function zx(n,o){return n&&n.length?Xd(n,xe(o)):r}var Bx=_e(Bp);function Bp(n,o){return n&&n.length&&o&&o.length?Hu(n,o):n}function Wx(n,o,l){return n&&n.length&&o&&o.length?Hu(n,o,pe(l,2)):n}function Hx(n,o,l){return n&&n.length&&o&&o.length?Hu(n,o,r,l):n}var Ux=zr(function(n,o){var l=n==null?0:n.length,w=Mu(n,o);return ep(n,Ze(o,function(_){return Br(_,l)?+_:_}).sort(cp)),w});function qx(n,o){var l=[];if(!(n&&n.length))return l;var w=-1,_=[],A=n.length;for(o=pe(o,3);++w<A;){var P=n[w];o(P,w,n)&&(l.push(P),_.push(w))}return ep(n,_),l}function ll(n){return n==null?n:Nb.call(n)}function Zx(n,o,l){var w=n==null?0:n.length;return w?(l&&typeof l!="number"&&At(n,o,l)?(o=0,l=w):(o=o==null?0:xe(o),l=l===r?w:xe(l)),tr(n,o,l)):[]}function Gx(n,o){return Es(n,o)}function Kx(n,o,l){return Zu(n,o,pe(l,2))}function Vx(n,o){var l=n==null?0:n.length;if(l){var w=Es(n,o);if(w<l&&dr(n[w],o))return w}return-1}function Yx(n,o){return Es(n,o,!0)}function Xx(n,o,l){return Zu(n,o,pe(l,2),!0)}function Jx(n,o){var l=n==null?0:n.length;if(l){var w=Es(n,o,!0)-1;if(dr(n[w],o))return w}return-1}function Qx(n){return n&&n.length?rp(n):[]}function eS(n,o){return n&&n.length?rp(n,pe(o,2)):[]}function tS(n){var o=n==null?0:n.length;return o?tr(n,1,o):[]}function rS(n,o,l){return n&&n.length?(o=l||o===r?1:xe(o),tr(n,0,o<0?0:o)):[]}function nS(n,o,l){var w=n==null?0:n.length;return w?(o=l||o===r?1:xe(o),o=w-o,tr(n,o<0?0:o,w)):[]}function iS(n,o){return n&&n.length?_s(n,pe(o,3),!1,!0):[]}function oS(n,o){return n&&n.length?_s(n,pe(o,3)):[]}var sS=_e(function(n){return an(gt(n,1,rt,!0))}),aS=_e(function(n){var o=rr(n);return rt(o)&&(o=r),an(gt(n,1,rt,!0),pe(o,2))}),uS=_e(function(n){var o=rr(n);return o=typeof o=="function"?o:r,an(gt(n,1,rt,!0),r,o)});function lS(n){return n&&n.length?an(n):[]}function cS(n,o){return n&&n.length?an(n,pe(o,2)):[]}function fS(n,o){return o=typeof o=="function"?o:r,n&&n.length?an(n,r,o):[]}function cl(n){if(!(n&&n.length))return[];var o=0;return n=tn(n,function(l){if(rt(l))return o=lt(l.length,o),!0}),Au(o,function(l){return Ze(n,_u(l))})}function Wp(n,o){if(!(n&&n.length))return[];var l=cl(n);return o==null?l:Ze(l,function(w){return Nt(o,r,w)})}var dS=_e(function(n,o){return rt(n)?zi(n,o):[]}),pS=_e(function(n){return Ku(tn(n,rt))}),hS=_e(function(n){var o=rr(n);return rt(o)&&(o=r),Ku(tn(n,rt),pe(o,2))}),gS=_e(function(n){var o=rr(n);return o=typeof o=="function"?o:r,Ku(tn(n,rt),r,o)}),mS=_e(cl);function vS(n,o){return sp(n||[],o||[],ji)}function yS(n,o){return sp(n||[],o||[],Hi)}var wS=_e(function(n){var o=n.length,l=o>1?n[o-1]:r;return l=typeof l=="function"?(n.pop(),l):r,Wp(n,l)});function Hp(n){var o=T(n);return o.__chain__=!0,o}function bS(n,o){return o(n),n}function Is(n,o){return o(n)}var xS=zr(function(n){var o=n.length,l=o?n[0]:0,w=this.__wrapped__,_=function(A){return Mu(A,n)};return o>1||this.__actions__.length||!(w instanceof Ae)||!Br(l)?this.thru(_):(w=w.slice(l,+l+(o?1:0)),w.__actions__.push({func:Is,args:[_],thisArg:r}),new Qt(w,this.__chain__).thru(function(A){return o&&!A.length&&A.push(r),A}))});function SS(){return Hp(this)}function ES(){return new Qt(this.value(),this.__chain__)}function _S(){this.__values__===r&&(this.__values__=nh(this.value()));var n=this.__index__>=this.__values__.length,o=n?r:this.__values__[this.__index__++];return{done:n,value:o}}function OS(){return this}function TS(n){for(var o,l=this;l instanceof ys;){var w=Dp(l);w.__index__=0,w.__values__=r,o?_.__wrapped__=w:o=w;var _=w;l=l.__wrapped__}return _.__wrapped__=n,o}function AS(){var n=this.__wrapped__;if(n instanceof Ae){var o=n;return this.__actions__.length&&(o=new Ae(this)),o=o.reverse(),o.__actions__.push({func:Is,args:[ll],thisArg:r}),new Qt(o,this.__chain__)}return this.thru(ll)}function RS(){return op(this.__wrapped__,this.__actions__)}var PS=Os(function(n,o,l){Fe.call(n,l)?++n[l]:Nr(n,l,1)});function CS(n,o,l){var w=be(n)?yd:b1;return l&&At(n,o,l)&&(o=r),w(n,pe(o,3))}function kS(n,o){var l=be(n)?tn:Wd;return l(n,pe(o,3))}var $S=mp(Fp),IS=mp(Np);function LS(n,o){return gt(Ls(n,o),1)}function MS(n,o){return gt(Ls(n,o),Y)}function DS(n,o,l){return l=l===r?1:xe(l),gt(Ls(n,o),l)}function Up(n,o){var l=be(n)?Xt:sn;return l(n,pe(o,3))}function qp(n,o){var l=be(n)?tb:Bd;return l(n,pe(o,3))}var FS=Os(function(n,o,l){Fe.call(n,l)?n[l].push(o):Nr(n,l,[o])});function NS(n,o,l,w){n=$t(n)?n:pi(n),l=l&&!w?xe(l):0;var _=n.length;return l<0&&(l=lt(_+l,0)),js(n)?l<=_&&n.indexOf(o,l)>-1:!!_&&ti(n,o,l)>-1}var jS=_e(function(n,o,l){var w=-1,_=typeof o=="function",A=$t(n)?U(n.length):[];return sn(n,function(P){A[++w]=_?Nt(o,P,l):Bi(P,o,l)}),A}),zS=Os(function(n,o,l){Nr(n,l,o)});function Ls(n,o){var l=be(n)?Ze:Kd;return l(n,pe(o,3))}function BS(n,o,l,w){return n==null?[]:(be(o)||(o=o==null?[]:[o]),l=w?r:l,be(l)||(l=l==null?[]:[l]),Jd(n,o,l))}var WS=Os(function(n,o,l){n[l?0:1].push(o)},function(){return[[],[]]});function HS(n,o,l){var w=be(n)?Su:Sd,_=arguments.length<3;return w(n,pe(o,4),l,_,sn)}function US(n,o,l){var w=be(n)?rb:Sd,_=arguments.length<3;return w(n,pe(o,4),l,_,Bd)}function qS(n,o){var l=be(n)?tn:Wd;return l(n,Fs(pe(o,3)))}function ZS(n){var o=be(n)?Fd:N1;return o(n)}function GS(n,o,l){(l?At(n,o,l):o===r)?o=1:o=xe(o);var w=be(n)?g1:j1;return w(n,o)}function KS(n){var o=be(n)?m1:B1;return o(n)}function VS(n){if(n==null)return 0;if($t(n))return js(n)?ni(n):n.length;var o=St(n);return o==ft||o==bt?n.size:Bu(n).length}function YS(n,o,l){var w=be(n)?Eu:W1;return l&&At(n,o,l)&&(o=r),w(n,pe(o,3))}var XS=_e(function(n,o){if(n==null)return[];var l=o.length;return l>1&&At(n,o[0],o[1])?o=[]:l>2&&At(o[0],o[1],o[2])&&(o=[o[0]]),Jd(n,gt(o,1),[])}),Ms=kb||function(){return ht.Date.now()};function JS(n,o){if(typeof o!="function")throw new Jt(u);return n=xe(n),function(){if(--n<1)return o.apply(this,arguments)}}function Zp(n,o,l){return o=l?r:o,o=n&&o==null?n.length:o,jr(n,W,r,r,r,r,o)}function Gp(n,o){var l;if(typeof o!="function")throw new Jt(u);return n=xe(n),function(){return--n>0&&(l=o.apply(this,arguments)),n<=1&&(o=r),l}}var fl=_e(function(n,o,l){var w=b;if(l.length){var _=nn(l,fi(fl));w|=O}return jr(n,w,o,l,_)}),Kp=_e(function(n,o,l){var w=b|m;if(l.length){var _=nn(l,fi(Kp));w|=O}return jr(o,w,n,l,_)});function Vp(n,o,l){o=l?r:o;var w=jr(n,E,r,r,r,r,r,o);return w.placeholder=Vp.placeholder,w}function Yp(n,o,l){o=l?r:o;var w=jr(n,R,r,r,r,r,r,o);return w.placeholder=Yp.placeholder,w}function Xp(n,o,l){var w,_,A,P,I,z,V=0,X=!1,ee=!1,oe=!0;if(typeof n!="function")throw new Jt(u);o=nr(o)||0,Ye(l)&&(X=!!l.leading,ee="maxWait"in l,A=ee?lt(nr(l.maxWait)||0,o):A,oe="trailing"in l?!!l.trailing:oe);function le(nt){var pr=w,Ur=_;return w=_=r,V=nt,P=n.apply(Ur,pr),P}function he(nt){return V=nt,I=Zi(Oe,o),X?le(nt):P}function Se(nt){var pr=nt-z,Ur=nt-V,mh=o-pr;return ee?xt(mh,A-Ur):mh}function ge(nt){var pr=nt-z,Ur=nt-V;return z===r||pr>=o||pr<0||ee&&Ur>=A}function Oe(){var nt=Ms();if(ge(nt))return Re(nt);I=Zi(Oe,Se(nt))}function Re(nt){return I=r,oe&&w?le(nt):(w=_=r,P)}function Wt(){I!==r&&ap(I),V=0,w=z=_=I=r}function Rt(){return I===r?P:Re(Ms())}function Ht(){var nt=Ms(),pr=ge(nt);if(w=arguments,_=this,z=nt,pr){if(I===r)return he(z);if(ee)return ap(I),I=Zi(Oe,o),le(z)}return I===r&&(I=Zi(Oe,o)),P}return Ht.cancel=Wt,Ht.flush=Rt,Ht}var QS=_e(function(n,o){return zd(n,1,o)}),eE=_e(function(n,o,l){return zd(n,nr(o)||0,l)});function tE(n){return jr(n,F)}function Ds(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new Jt(u);var l=function(){var w=arguments,_=o?o.apply(this,w):w[0],A=l.cache;if(A.has(_))return A.get(_);var P=n.apply(this,w);return l.cache=A.set(_,P)||A,P};return l.cache=new(Ds.Cache||Fr),l}Ds.Cache=Fr;function Fs(n){if(typeof n!="function")throw new Jt(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 rE(n){return Gp(2,n)}var nE=H1(function(n,o){o=o.length==1&&be(o[0])?Ze(o[0],jt(pe())):Ze(gt(o,1),jt(pe()));var l=o.length;return _e(function(w){for(var _=-1,A=xt(w.length,l);++_<A;)w[_]=o[_].call(this,w[_]);return Nt(n,this,w)})}),dl=_e(function(n,o){var l=nn(o,fi(dl));return jr(n,O,r,o,l)}),Jp=_e(function(n,o){var l=nn(o,fi(Jp));return jr(n,k,r,o,l)}),iE=zr(function(n,o){return jr(n,M,r,r,r,o)});function oE(n,o){if(typeof n!="function")throw new Jt(u);return o=o===r?o:xe(o),_e(n,o)}function sE(n,o){if(typeof n!="function")throw new Jt(u);return o=o==null?0:lt(xe(o),0),_e(function(l){var w=l[o],_=ln(l,0,o);return w&&rn(_,w),Nt(n,this,_)})}function aE(n,o,l){var w=!0,_=!0;if(typeof n!="function")throw new Jt(u);return Ye(l)&&(w="leading"in l?!!l.leading:w,_="trailing"in l?!!l.trailing:_),Xp(n,o,{leading:w,maxWait:o,trailing:_})}function uE(n){return Zp(n,1)}function lE(n,o){return dl(Yu(o),n)}function cE(){if(!arguments.length)return[];var n=arguments[0];return be(n)?n:[n]}function fE(n){return er(n,y)}function dE(n,o){return o=typeof o=="function"?o:r,er(n,y,o)}function pE(n){return er(n,v|y)}function hE(n,o){return o=typeof o=="function"?o:r,er(n,v|y,o)}function gE(n,o){return o==null||jd(n,o,dt(o))}function dr(n,o){return n===o||n!==n&&o!==o}var mE=Ps(Nu),vE=Ps(function(n,o){return n>=o}),In=qd((function(){return arguments})())?qd:function(n){return et(n)&&Fe.call(n,"callee")&&!kd.call(n,"callee")},be=U.isArray,yE=dd?jt(dd):T1;function $t(n){return n!=null&&Ns(n.length)&&!Wr(n)}function rt(n){return et(n)&&$t(n)}function wE(n){return n===!0||n===!1||et(n)&&Tt(n)==me}var cn=Ib||El,bE=pd?jt(pd):A1;function xE(n){return et(n)&&n.nodeType===1&&!Gi(n)}function SE(n){if(n==null)return!0;if($t(n)&&(be(n)||typeof n=="string"||typeof n.splice=="function"||cn(n)||di(n)||In(n)))return!n.length;var o=St(n);if(o==ft||o==bt)return!n.size;if(qi(n))return!Bu(n).length;for(var l in n)if(Fe.call(n,l))return!1;return!0}function EE(n,o){return Wi(n,o)}function _E(n,o,l){l=typeof l=="function"?l:r;var w=l?l(n,o):r;return w===r?Wi(n,o,r,l):!!w}function pl(n){if(!et(n))return!1;var o=Tt(n);return o==Ve||o==Te||typeof n.message=="string"&&typeof n.name=="string"&&!Gi(n)}function OE(n){return typeof n=="number"&&Id(n)}function Wr(n){if(!Ye(n))return!1;var o=Tt(n);return o==ie||o==wt||o==ye||o==ru}function Qp(n){return typeof n=="number"&&n==xe(n)}function Ns(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=te}function Ye(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}function et(n){return n!=null&&typeof n=="object"}var eh=hd?jt(hd):P1;function TE(n,o){return n===o||zu(n,o,nl(o))}function AE(n,o,l){return l=typeof l=="function"?l:r,zu(n,o,nl(o),l)}function RE(n){return th(n)&&n!=+n}function PE(n){if(dx(n))throw new we(a);return Zd(n)}function CE(n){return n===null}function kE(n){return n==null}function th(n){return typeof n=="number"||et(n)&&Tt(n)==wr}function Gi(n){if(!et(n)||Tt(n)!=Vt)return!1;var o=fs(n);if(o===null)return!0;var l=Fe.call(o,"constructor")&&o.constructor;return typeof l=="function"&&l instanceof l&&as.call(l)==Ab}var hl=gd?jt(gd):C1;function $E(n){return Qp(n)&&n>=-te&&n<=te}var rh=md?jt(md):k1;function js(n){return typeof n=="string"||!be(n)&&et(n)&&Tt(n)==Jr}function Bt(n){return typeof n=="symbol"||et(n)&&Tt(n)==_n}var di=vd?jt(vd):$1;function IE(n){return n===r}function LE(n){return et(n)&&St(n)==Qr}function ME(n){return et(n)&&Tt(n)==Jo}var DE=Ps(Wu),FE=Ps(function(n,o){return n<=o});function nh(n){if(!n)return[];if($t(n))return js(n)?cr(n):kt(n);if(Li&&n[Li])return gb(n[Li]());var o=St(n),l=o==ft?Pu:o==bt?is:pi;return l(n)}function Hr(n){if(!n)return n===0?n:0;if(n=nr(n),n===Y||n===-Y){var o=n<0?-1:1;return o*de}return n===n?n:0}function xe(n){var o=Hr(n),l=o%1;return o===o?l?o-l:o:0}function ih(n){return n?Pn(xe(n),0,Q):0}function nr(n){if(typeof n=="number")return n;if(Bt(n))return Z;if(Ye(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=Ye(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=Ed(n);var l=yw.test(n);return l||bw.test(n)?Jw(n.slice(2),l?2:8):vw.test(n)?Z:+n}function oh(n){return xr(n,It(n))}function NE(n){return n?Pn(xe(n),-te,te):n===0?n:0}function ke(n){return n==null?"":zt(n)}var jE=li(function(n,o){if(qi(o)||$t(o)){xr(o,dt(o),n);return}for(var l in o)Fe.call(o,l)&&ji(n,l,o[l])}),sh=li(function(n,o){xr(o,It(o),n)}),zs=li(function(n,o,l,w){xr(o,It(o),n,w)}),zE=li(function(n,o,l,w){xr(o,dt(o),n,w)}),BE=zr(Mu);function WE(n,o){var l=ui(n);return o==null?l:Nd(l,o)}var HE=_e(function(n,o){n=Be(n);var l=-1,w=o.length,_=w>2?o[2]:r;for(_&&At(o[0],o[1],_)&&(w=1);++l<w;)for(var A=o[l],P=It(A),I=-1,z=P.length;++I<z;){var V=P[I],X=n[V];(X===r||dr(X,oi[V])&&!Fe.call(n,V))&&(n[V]=A[V])}return n}),UE=_e(function(n){return n.push(r,Ep),Nt(ah,r,n)});function qE(n,o){return wd(n,pe(o,3),br)}function ZE(n,o){return wd(n,pe(o,3),Fu)}function GE(n,o){return n==null?n:Du(n,pe(o,3),It)}function KE(n,o){return n==null?n:Hd(n,pe(o,3),It)}function VE(n,o){return n&&br(n,pe(o,3))}function YE(n,o){return n&&Fu(n,pe(o,3))}function XE(n){return n==null?[]:xs(n,dt(n))}function JE(n){return n==null?[]:xs(n,It(n))}function gl(n,o,l){var w=n==null?r:Cn(n,o);return w===r?l:w}function QE(n,o){return n!=null&&Tp(n,o,S1)}function ml(n,o){return n!=null&&Tp(n,o,E1)}var e_=yp(function(n,o,l){o!=null&&typeof o.toString!="function"&&(o=us.call(o)),n[o]=l},yl(Lt)),t_=yp(function(n,o,l){o!=null&&typeof o.toString!="function"&&(o=us.call(o)),Fe.call(n,o)?n[o].push(l):n[o]=[l]},pe),r_=_e(Bi);function dt(n){return $t(n)?Dd(n):Bu(n)}function It(n){return $t(n)?Dd(n,!0):I1(n)}function n_(n,o){var l={};return o=pe(o,3),br(n,function(w,_,A){Nr(l,o(w,_,A),w)}),l}function i_(n,o){var l={};return o=pe(o,3),br(n,function(w,_,A){Nr(l,_,o(w,_,A))}),l}var o_=li(function(n,o,l){Ss(n,o,l)}),ah=li(function(n,o,l,w){Ss(n,o,l,w)}),s_=zr(function(n,o){var l={};if(n==null)return l;var w=!1;o=Ze(o,function(A){return A=un(A,n),w||(w=A.length>1),A}),xr(n,tl(n),l),w&&(l=er(l,v|p|y,ex));for(var _=o.length;_--;)Gu(l,o[_]);return l});function a_(n,o){return uh(n,Fs(pe(o)))}var u_=zr(function(n,o){return n==null?{}:M1(n,o)});function uh(n,o){if(n==null)return{};var l=Ze(tl(n),function(w){return[w]});return o=pe(o),Qd(n,l,function(w,_){return o(w,_[0])})}function l_(n,o,l){o=un(o,n);var w=-1,_=o.length;for(_||(_=1,n=r);++w<_;){var A=n==null?r:n[Sr(o[w])];A===r&&(w=_,A=l),n=Wr(A)?A.call(n):A}return n}function c_(n,o,l){return n==null?n:Hi(n,o,l)}function f_(n,o,l,w){return w=typeof w=="function"?w:r,n==null?n:Hi(n,o,l,w)}var lh=xp(dt),ch=xp(It);function d_(n,o,l){var w=be(n),_=w||cn(n)||di(n);if(o=pe(o,4),l==null){var A=n&&n.constructor;_?l=w?new A:[]:Ye(n)?l=Wr(A)?ui(fs(n)):{}:l={}}return(_?Xt:br)(n,function(P,I,z){return o(l,P,I,z)}),l}function p_(n,o){return n==null?!0:Gu(n,o)}function h_(n,o,l){return n==null?n:ip(n,o,Yu(l))}function g_(n,o,l,w){return w=typeof w=="function"?w:r,n==null?n:ip(n,o,Yu(l),w)}function pi(n){return n==null?[]:Ru(n,dt(n))}function m_(n){return n==null?[]:Ru(n,It(n))}function v_(n,o,l){return l===r&&(l=o,o=r),l!==r&&(l=nr(l),l=l===l?l:0),o!==r&&(o=nr(o),o=o===o?o:0),Pn(nr(n),o,l)}function y_(n,o,l){return o=Hr(o),l===r?(l=o,o=0):l=Hr(l),n=nr(n),_1(n,o,l)}function w_(n,o,l){if(l&&typeof l!="boolean"&&At(n,o,l)&&(o=l=r),l===r&&(typeof o=="boolean"?(l=o,o=r):typeof n=="boolean"&&(l=n,n=r)),n===r&&o===r?(n=0,o=1):(n=Hr(n),o===r?(o=n,n=0):o=Hr(o)),n>o){var w=n;n=o,o=w}if(l||n%1||o%1){var _=Ld();return xt(n+_*(o-n+Xw("1e-"+((_+"").length-1))),o)}return Uu(n,o)}var b_=ci(function(n,o,l){return o=o.toLowerCase(),n+(l?fh(o):o)});function fh(n){return vl(ke(n).toLowerCase())}function dh(n){return n=ke(n),n&&n.replace(Sw,cb).replace(Bw,"")}function x_(n,o,l){n=ke(n),o=zt(o);var w=n.length;l=l===r?w:Pn(xe(l),0,w);var _=l;return l-=o.length,l>=0&&n.slice(l,_)==o}function S_(n){return n=ke(n),n&&rw.test(n)?n.replace(Hf,fb):n}function E_(n){return n=ke(n),n&&uw.test(n)?n.replace(du,"\\$&"):n}var __=ci(function(n,o,l){return n+(l?"-":"")+o.toLowerCase()}),O_=ci(function(n,o,l){return n+(l?" ":"")+o.toLowerCase()}),T_=gp("toLowerCase");function A_(n,o,l){n=ke(n),o=xe(o);var w=o?ni(n):0;if(!o||w>=o)return n;var _=(o-w)/2;return Rs(gs(_),l)+n+Rs(hs(_),l)}function R_(n,o,l){n=ke(n),o=xe(o);var w=o?ni(n):0;return o&&w<o?n+Rs(o-w,l):n}function P_(n,o,l){n=ke(n),o=xe(o);var w=o?ni(n):0;return o&&w<o?Rs(o-w,l)+n:n}function C_(n,o,l){return l||o==null?o=0:o&&(o=+o),Fb(ke(n).replace(pu,""),o||0)}function k_(n,o,l){return(l?At(n,o,l):o===r)?o=1:o=xe(o),qu(ke(n),o)}function $_(){var n=arguments,o=ke(n[0]);return n.length<3?o:o.replace(n[1],n[2])}var I_=ci(function(n,o,l){return n+(l?"_":"")+o.toLowerCase()});function L_(n,o,l){return l&&typeof l!="number"&&At(n,o,l)&&(o=l=r),l=l===r?Q:l>>>0,l?(n=ke(n),n&&(typeof o=="string"||o!=null&&!hl(o))&&(o=zt(o),!o&&ri(n))?ln(cr(n),0,l):n.split(o,l)):[]}var M_=ci(function(n,o,l){return n+(l?" ":"")+vl(o)});function D_(n,o,l){return n=ke(n),l=l==null?0:Pn(xe(l),0,n.length),o=zt(o),n.slice(l,l+o.length)==o}function F_(n,o,l){var w=T.templateSettings;l&&At(n,o,l)&&(o=r),n=ke(n),o=zs({},o,w,Sp);var _=zs({},o.imports,w.imports,Sp),A=dt(_),P=Ru(_,A),I,z,V=0,X=o.interpolate||Qo,ee="__p += '",oe=Cu((o.escape||Qo).source+"|"+X.source+"|"+(X===Uf?mw:Qo).source+"|"+(o.evaluate||Qo).source+"|$","g"),le="//# sourceURL="+(Fe.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Zw+"]")+`
185
- `;n.replace(oe,function(ge,Oe,Re,Wt,Rt,Ht){return Re||(Re=Wt),ee+=n.slice(V,Ht).replace(Ew,db),Oe&&(I=!0,ee+=`' +
186
- __e(`+Oe+`) +
187
- '`),Rt&&(z=!0,ee+=`';
188
- `+Rt+`;
189
- __p += '`),Re&&(ee+=`' +
190
- ((__t = (`+Re+`)) == null ? '' : __t) +
191
- '`),V=Ht+ge.length,ge}),ee+=`';
192
- `;var he=Fe.call(o,"variable")&&o.variable;if(!he)ee=`with (obj) {
193
- `+ee+`
180
+ */var zM=wa.exports,fb;function jM(){return fb||(fb=1,(function(e,t){(function(){var r,n="4.17.21",o=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",d=500,p="__lodash_placeholder__",h=1,g=2,y=4,S=1,v=2,b=1,m=2,w=4,x=8,k=16,E=32,R=64,F=128,A=256,N=512,V=30,$="...",M=800,B=16,j=1,I=2,Y=3,X=1/0,K=9007199254740991,me=17976931348623157e292,L=NaN,U=4294967295,te=U-1,ee=U>>>1,J=[["ary",F],["bind",b],["bindKey",m],["curry",x],["curryRight",k],["flip",N],["partial",E],["partialRight",R],["rearg",A]],ae="[object Arguments]",se="[object Array]",ne="[object AsyncFunction]",ce="[object Boolean]",he="[object Date]",pe="[object DOMException]",Se="[object Error]",Z="[object Function]",Pe="[object GeneratorFunction]",ge="[object Map]",Et="[object Number]",vr="[object Null]",Ct="[object Object]",zi="[object Promise]",ji="[object Proxy]",zt="[object RegExp]",kt="[object Set]",qr="[object String]",Nr="[object Symbol]",ai="[object Undefined]",Mr="[object WeakMap]",Fi="[object WeakSet]",Dr="[object ArrayBuffer]",Re="[object DataView]",ze="[object Float32Array]",Vt="[object Float64Array]",un="[object Int8Array]",Pn="[object Int16Array]",In="[object Int32Array]",si="[object Uint8Array]",li="[object Uint8ClampedArray]",fn="[object Uint16Array]",ci="[object Uint32Array]",X1=/\b__p \+= '';/g,J1=/\b(__p \+=) '' \+/g,Q1=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Np=/&(?:amp|lt|gt|quot|#39);/g,Mp=/[&<>"']/g,eS=RegExp(Np.source),tS=RegExp(Mp.source),rS=/<%-([\s\S]+?)%>/g,nS=/<%([\s\S]+?)%>/g,Dp=/<%=([\s\S]+?)%>/g,iS=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,oS=/^\w*$/,aS=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Nc=/[\\^$.*+?()[\]{}|]/g,sS=RegExp(Nc.source),Mc=/^\s+/,lS=/\s/,cS=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,uS=/\{\n\/\* \[wrapped with (.+)\] \*/,fS=/,? & /,dS=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pS=/[()=,{}\[\]\/\s]/,hS=/\\(\\)?/g,gS=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$p=/\w*$/,vS=/^[-+]0x[0-9a-f]+$/i,mS=/^0b[01]+$/i,bS=/^\[object .+?Constructor\]$/,yS=/^0o[0-7]+$/i,wS=/^(?:0|[1-9]\d*)$/,xS=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rs=/($^)/,SS=/['\n\r\u2028\u2029\\]/g,ns="\\ud800-\\udfff",_S="\\u0300-\\u036f",ES="\\ufe20-\\ufe2f",kS="\\u20d0-\\u20ff",Lp=_S+ES+kS,zp="\\u2700-\\u27bf",jp="a-z\\xdf-\\xf6\\xf8-\\xff",OS="\\xac\\xb1\\xd7\\xf7",AS="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",TS="\\u2000-\\u206f",RS=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Fp="A-Z\\xc0-\\xd6\\xd8-\\xde",Hp="\\ufe0e\\ufe0f",Wp=OS+AS+TS+RS,Dc="['’]",CS="["+ns+"]",Bp="["+Wp+"]",is="["+Lp+"]",Vp="\\d+",PS="["+zp+"]",Up="["+jp+"]",qp="[^"+ns+Wp+Vp+zp+jp+Fp+"]",$c="\\ud83c[\\udffb-\\udfff]",IS="(?:"+is+"|"+$c+")",Gp="[^"+ns+"]",Lc="(?:\\ud83c[\\udde6-\\uddff]){2}",zc="[\\ud800-\\udbff][\\udc00-\\udfff]",Hi="["+Fp+"]",Yp="\\u200d",Kp="(?:"+Up+"|"+qp+")",NS="(?:"+Hi+"|"+qp+")",Zp="(?:"+Dc+"(?:d|ll|m|re|s|t|ve))?",Xp="(?:"+Dc+"(?:D|LL|M|RE|S|T|VE))?",Jp=IS+"?",Qp="["+Hp+"]?",MS="(?:"+Yp+"(?:"+[Gp,Lc,zc].join("|")+")"+Qp+Jp+")*",DS="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$S="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",eh=Qp+Jp+MS,LS="(?:"+[PS,Lc,zc].join("|")+")"+eh,zS="(?:"+[Gp+is+"?",is,Lc,zc,CS].join("|")+")",jS=RegExp(Dc,"g"),FS=RegExp(is,"g"),jc=RegExp($c+"(?="+$c+")|"+zS+eh,"g"),HS=RegExp([Hi+"?"+Up+"+"+Zp+"(?="+[Bp,Hi,"$"].join("|")+")",NS+"+"+Xp+"(?="+[Bp,Hi+Kp,"$"].join("|")+")",Hi+"?"+Kp+"+"+Zp,Hi+"+"+Xp,$S,DS,Vp,LS].join("|"),"g"),WS=RegExp("["+Yp+ns+Lp+Hp+"]"),BS=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,VS=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],US=-1,it={};it[ze]=it[Vt]=it[un]=it[Pn]=it[In]=it[si]=it[li]=it[fn]=it[ci]=!0,it[ae]=it[se]=it[Dr]=it[ce]=it[Re]=it[he]=it[Se]=it[Z]=it[ge]=it[Et]=it[Ct]=it[zt]=it[kt]=it[qr]=it[Mr]=!1;var rt={};rt[ae]=rt[se]=rt[Dr]=rt[Re]=rt[ce]=rt[he]=rt[ze]=rt[Vt]=rt[un]=rt[Pn]=rt[In]=rt[ge]=rt[Et]=rt[Ct]=rt[zt]=rt[kt]=rt[qr]=rt[Nr]=rt[si]=rt[li]=rt[fn]=rt[ci]=!0,rt[Se]=rt[Z]=rt[Mr]=!1;var qS={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},GS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},YS={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},KS={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ZS=parseFloat,XS=parseInt,th=typeof Us=="object"&&Us&&Us.Object===Object&&Us,JS=typeof self=="object"&&self&&self.Object===Object&&self,Nt=th||JS||Function("return this")(),Fc=t&&!t.nodeType&&t,ui=Fc&&!0&&e&&!e.nodeType&&e,rh=ui&&ui.exports===Fc,Hc=rh&&th.process,mr=(function(){try{var q=ui&&ui.require&&ui.require("util").types;return q||Hc&&Hc.binding&&Hc.binding("util")}catch{}})(),nh=mr&&mr.isArrayBuffer,ih=mr&&mr.isDate,oh=mr&&mr.isMap,ah=mr&&mr.isRegExp,sh=mr&&mr.isSet,lh=mr&&mr.isTypedArray;function ir(q,re,Q){switch(Q.length){case 0:return q.call(re);case 1:return q.call(re,Q[0]);case 2:return q.call(re,Q[0],Q[1]);case 3:return q.call(re,Q[0],Q[1],Q[2])}return q.apply(re,Q)}function QS(q,re,Q,be){for(var Ae=-1,je=q==null?0:q.length;++Ae<je;){var Ot=q[Ae];re(be,Ot,Q(Ot),q)}return be}function br(q,re){for(var Q=-1,be=q==null?0:q.length;++Q<be&&re(q[Q],Q,q)!==!1;);return q}function e_(q,re){for(var Q=q==null?0:q.length;Q--&&re(q[Q],Q,q)!==!1;);return q}function ch(q,re){for(var Q=-1,be=q==null?0:q.length;++Q<be;)if(!re(q[Q],Q,q))return!1;return!0}function Nn(q,re){for(var Q=-1,be=q==null?0:q.length,Ae=0,je=[];++Q<be;){var Ot=q[Q];re(Ot,Q,q)&&(je[Ae++]=Ot)}return je}function os(q,re){var Q=q==null?0:q.length;return!!Q&&Wi(q,re,0)>-1}function Wc(q,re,Q){for(var be=-1,Ae=q==null?0:q.length;++be<Ae;)if(Q(re,q[be]))return!0;return!1}function st(q,re){for(var Q=-1,be=q==null?0:q.length,Ae=Array(be);++Q<be;)Ae[Q]=re(q[Q],Q,q);return Ae}function Mn(q,re){for(var Q=-1,be=re.length,Ae=q.length;++Q<be;)q[Ae+Q]=re[Q];return q}function Bc(q,re,Q,be){var Ae=-1,je=q==null?0:q.length;for(be&&je&&(Q=q[++Ae]);++Ae<je;)Q=re(Q,q[Ae],Ae,q);return Q}function t_(q,re,Q,be){var Ae=q==null?0:q.length;for(be&&Ae&&(Q=q[--Ae]);Ae--;)Q=re(Q,q[Ae],Ae,q);return Q}function Vc(q,re){for(var Q=-1,be=q==null?0:q.length;++Q<be;)if(re(q[Q],Q,q))return!0;return!1}var r_=Uc("length");function n_(q){return q.split("")}function i_(q){return q.match(dS)||[]}function uh(q,re,Q){var be;return Q(q,function(Ae,je,Ot){if(re(Ae,je,Ot))return be=je,!1}),be}function as(q,re,Q,be){for(var Ae=q.length,je=Q+(be?1:-1);be?je--:++je<Ae;)if(re(q[je],je,q))return je;return-1}function Wi(q,re,Q){return re===re?v_(q,re,Q):as(q,fh,Q)}function o_(q,re,Q,be){for(var Ae=Q-1,je=q.length;++Ae<je;)if(be(q[Ae],re))return Ae;return-1}function fh(q){return q!==q}function dh(q,re){var Q=q==null?0:q.length;return Q?Gc(q,re)/Q:L}function Uc(q){return function(re){return re==null?r:re[q]}}function qc(q){return function(re){return q==null?r:q[re]}}function ph(q,re,Q,be,Ae){return Ae(q,function(je,Ot,et){Q=be?(be=!1,je):re(Q,je,Ot,et)}),Q}function a_(q,re){var Q=q.length;for(q.sort(re);Q--;)q[Q]=q[Q].value;return q}function Gc(q,re){for(var Q,be=-1,Ae=q.length;++be<Ae;){var je=re(q[be]);je!==r&&(Q=Q===r?je:Q+je)}return Q}function Yc(q,re){for(var Q=-1,be=Array(q);++Q<q;)be[Q]=re(Q);return be}function s_(q,re){return st(re,function(Q){return[Q,q[Q]]})}function hh(q){return q&&q.slice(0,bh(q)+1).replace(Mc,"")}function or(q){return function(re){return q(re)}}function Kc(q,re){return st(re,function(Q){return q[Q]})}function Ro(q,re){return q.has(re)}function gh(q,re){for(var Q=-1,be=q.length;++Q<be&&Wi(re,q[Q],0)>-1;);return Q}function vh(q,re){for(var Q=q.length;Q--&&Wi(re,q[Q],0)>-1;);return Q}function l_(q,re){for(var Q=q.length,be=0;Q--;)q[Q]===re&&++be;return be}var c_=qc(qS),u_=qc(GS);function f_(q){return"\\"+KS[q]}function d_(q,re){return q==null?r:q[re]}function Bi(q){return WS.test(q)}function p_(q){return BS.test(q)}function h_(q){for(var re,Q=[];!(re=q.next()).done;)Q.push(re.value);return Q}function Zc(q){var re=-1,Q=Array(q.size);return q.forEach(function(be,Ae){Q[++re]=[Ae,be]}),Q}function mh(q,re){return function(Q){return q(re(Q))}}function Dn(q,re){for(var Q=-1,be=q.length,Ae=0,je=[];++Q<be;){var Ot=q[Q];(Ot===re||Ot===p)&&(q[Q]=p,je[Ae++]=Q)}return je}function ss(q){var re=-1,Q=Array(q.size);return q.forEach(function(be){Q[++re]=be}),Q}function g_(q){var re=-1,Q=Array(q.size);return q.forEach(function(be){Q[++re]=[be,be]}),Q}function v_(q,re,Q){for(var be=Q-1,Ae=q.length;++be<Ae;)if(q[be]===re)return be;return-1}function m_(q,re,Q){for(var be=Q+1;be--;)if(q[be]===re)return be;return be}function Vi(q){return Bi(q)?y_(q):r_(q)}function $r(q){return Bi(q)?w_(q):n_(q)}function bh(q){for(var re=q.length;re--&&lS.test(q.charAt(re)););return re}var b_=qc(YS);function y_(q){for(var re=jc.lastIndex=0;jc.test(q);)++re;return re}function w_(q){return q.match(jc)||[]}function x_(q){return q.match(HS)||[]}var S_=(function q(re){re=re==null?Nt:Ui.defaults(Nt.Object(),re,Ui.pick(Nt,VS));var Q=re.Array,be=re.Date,Ae=re.Error,je=re.Function,Ot=re.Math,et=re.Object,Xc=re.RegExp,__=re.String,yr=re.TypeError,ls=Q.prototype,E_=je.prototype,qi=et.prototype,cs=re["__core-js_shared__"],us=E_.toString,Ke=qi.hasOwnProperty,k_=0,yh=(function(){var i=/[^.]+$/.exec(cs&&cs.keys&&cs.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})(),fs=qi.toString,O_=us.call(et),A_=Nt._,T_=Xc("^"+us.call(Ke).replace(Nc,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ds=rh?re.Buffer:r,$n=re.Symbol,ps=re.Uint8Array,wh=ds?ds.allocUnsafe:r,hs=mh(et.getPrototypeOf,et),xh=et.create,Sh=qi.propertyIsEnumerable,gs=ls.splice,_h=$n?$n.isConcatSpreadable:r,Co=$n?$n.iterator:r,fi=$n?$n.toStringTag:r,vs=(function(){try{var i=vi(et,"defineProperty");return i({},"",{}),i}catch{}})(),R_=re.clearTimeout!==Nt.clearTimeout&&re.clearTimeout,C_=be&&be.now!==Nt.Date.now&&be.now,P_=re.setTimeout!==Nt.setTimeout&&re.setTimeout,ms=Ot.ceil,bs=Ot.floor,Jc=et.getOwnPropertySymbols,I_=ds?ds.isBuffer:r,Eh=re.isFinite,N_=ls.join,M_=mh(et.keys,et),At=Ot.max,jt=Ot.min,D_=be.now,$_=re.parseInt,kh=Ot.random,L_=ls.reverse,Qc=vi(re,"DataView"),Po=vi(re,"Map"),eu=vi(re,"Promise"),Gi=vi(re,"Set"),Io=vi(re,"WeakMap"),No=vi(et,"create"),ys=Io&&new Io,Yi={},z_=mi(Qc),j_=mi(Po),F_=mi(eu),H_=mi(Gi),W_=mi(Io),ws=$n?$n.prototype:r,Mo=ws?ws.valueOf:r,Oh=ws?ws.toString:r;function T(i){if(ht(i)&&!Te(i)&&!(i instanceof $e)){if(i instanceof wr)return i;if(Ke.call(i,"__wrapped__"))return Ag(i)}return new wr(i)}var Ki=(function(){function i(){}return function(s){if(!ut(s))return{};if(xh)return xh(s);i.prototype=s;var f=new i;return i.prototype=r,f}})();function xs(){}function wr(i,s){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!s,this.__index__=0,this.__values__=r}T.templateSettings={escape:rS,evaluate:nS,interpolate:Dp,variable:"",imports:{_:T}},T.prototype=xs.prototype,T.prototype.constructor=T,wr.prototype=Ki(xs.prototype),wr.prototype.constructor=wr;function $e(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=U,this.__views__=[]}function B_(){var i=new $e(this.__wrapped__);return i.__actions__=Xt(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=Xt(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=Xt(this.__views__),i}function V_(){if(this.__filtered__){var i=new $e(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function U_(){var i=this.__wrapped__.value(),s=this.__dir__,f=Te(i),_=s<0,O=f?i.length:0,P=nk(0,O,this.__views__),D=P.start,W=P.end,G=W-D,ie=_?W:D-1,oe=this.__iteratees__,le=oe.length,ve=0,xe=jt(G,this.__takeCount__);if(!f||!_&&O==G&&xe==G)return Zh(i,this.__actions__);var Ee=[];e:for(;G--&&ve<xe;){ie+=s;for(var Ie=-1,ke=i[ie];++Ie<le;){var De=oe[Ie],Le=De.iteratee,lr=De.type,Gt=Le(ke);if(lr==I)ke=Gt;else if(!Gt){if(lr==j)continue e;break e}}Ee[ve++]=ke}return Ee}$e.prototype=Ki(xs.prototype),$e.prototype.constructor=$e;function di(i){var s=-1,f=i==null?0:i.length;for(this.clear();++s<f;){var _=i[s];this.set(_[0],_[1])}}function q_(){this.__data__=No?No(null):{},this.size=0}function G_(i){var s=this.has(i)&&delete this.__data__[i];return this.size-=s?1:0,s}function Y_(i){var s=this.__data__;if(No){var f=s[i];return f===u?r:f}return Ke.call(s,i)?s[i]:r}function K_(i){var s=this.__data__;return No?s[i]!==r:Ke.call(s,i)}function Z_(i,s){var f=this.__data__;return this.size+=this.has(i)?0:1,f[i]=No&&s===r?u:s,this}di.prototype.clear=q_,di.prototype.delete=G_,di.prototype.get=Y_,di.prototype.has=K_,di.prototype.set=Z_;function dn(i){var s=-1,f=i==null?0:i.length;for(this.clear();++s<f;){var _=i[s];this.set(_[0],_[1])}}function X_(){this.__data__=[],this.size=0}function J_(i){var s=this.__data__,f=Ss(s,i);if(f<0)return!1;var _=s.length-1;return f==_?s.pop():gs.call(s,f,1),--this.size,!0}function Q_(i){var s=this.__data__,f=Ss(s,i);return f<0?r:s[f][1]}function eE(i){return Ss(this.__data__,i)>-1}function tE(i,s){var f=this.__data__,_=Ss(f,i);return _<0?(++this.size,f.push([i,s])):f[_][1]=s,this}dn.prototype.clear=X_,dn.prototype.delete=J_,dn.prototype.get=Q_,dn.prototype.has=eE,dn.prototype.set=tE;function pn(i){var s=-1,f=i==null?0:i.length;for(this.clear();++s<f;){var _=i[s];this.set(_[0],_[1])}}function rE(){this.size=0,this.__data__={hash:new di,map:new(Po||dn),string:new di}}function nE(i){var s=Ms(this,i).delete(i);return this.size-=s?1:0,s}function iE(i){return Ms(this,i).get(i)}function oE(i){return Ms(this,i).has(i)}function aE(i,s){var f=Ms(this,i),_=f.size;return f.set(i,s),this.size+=f.size==_?0:1,this}pn.prototype.clear=rE,pn.prototype.delete=nE,pn.prototype.get=iE,pn.prototype.has=oE,pn.prototype.set=aE;function pi(i){var s=-1,f=i==null?0:i.length;for(this.__data__=new pn;++s<f;)this.add(i[s])}function sE(i){return this.__data__.set(i,u),this}function lE(i){return this.__data__.has(i)}pi.prototype.add=pi.prototype.push=sE,pi.prototype.has=lE;function Lr(i){var s=this.__data__=new dn(i);this.size=s.size}function cE(){this.__data__=new dn,this.size=0}function uE(i){var s=this.__data__,f=s.delete(i);return this.size=s.size,f}function fE(i){return this.__data__.get(i)}function dE(i){return this.__data__.has(i)}function pE(i,s){var f=this.__data__;if(f instanceof dn){var _=f.__data__;if(!Po||_.length<o-1)return _.push([i,s]),this.size=++f.size,this;f=this.__data__=new pn(_)}return f.set(i,s),this.size=f.size,this}Lr.prototype.clear=cE,Lr.prototype.delete=uE,Lr.prototype.get=fE,Lr.prototype.has=dE,Lr.prototype.set=pE;function Ah(i,s){var f=Te(i),_=!f&&bi(i),O=!f&&!_&&Hn(i),P=!f&&!_&&!O&&Qi(i),D=f||_||O||P,W=D?Yc(i.length,__):[],G=W.length;for(var ie in i)(s||Ke.call(i,ie))&&!(D&&(ie=="length"||O&&(ie=="offset"||ie=="parent")||P&&(ie=="buffer"||ie=="byteLength"||ie=="byteOffset")||mn(ie,G)))&&W.push(ie);return W}function Th(i){var s=i.length;return s?i[fu(0,s-1)]:r}function hE(i,s){return Ds(Xt(i),hi(s,0,i.length))}function gE(i){return Ds(Xt(i))}function tu(i,s,f){(f!==r&&!zr(i[s],f)||f===r&&!(s in i))&&hn(i,s,f)}function Do(i,s,f){var _=i[s];(!(Ke.call(i,s)&&zr(_,f))||f===r&&!(s in i))&&hn(i,s,f)}function Ss(i,s){for(var f=i.length;f--;)if(zr(i[f][0],s))return f;return-1}function vE(i,s,f,_){return Ln(i,function(O,P,D){s(_,O,f(O),D)}),_}function Rh(i,s){return i&&Yr(s,Pt(s),i)}function mE(i,s){return i&&Yr(s,Qt(s),i)}function hn(i,s,f){s=="__proto__"&&vs?vs(i,s,{configurable:!0,enumerable:!0,value:f,writable:!0}):i[s]=f}function ru(i,s){for(var f=-1,_=s.length,O=Q(_),P=i==null;++f<_;)O[f]=P?r:$u(i,s[f]);return O}function hi(i,s,f){return i===i&&(f!==r&&(i=i<=f?i:f),s!==r&&(i=i>=s?i:s)),i}function xr(i,s,f,_,O,P){var D,W=s&h,G=s&g,ie=s&y;if(f&&(D=O?f(i,_,O,P):f(i)),D!==r)return D;if(!ut(i))return i;var oe=Te(i);if(oe){if(D=ok(i),!W)return Xt(i,D)}else{var le=Ft(i),ve=le==Z||le==Pe;if(Hn(i))return Qh(i,W);if(le==Ct||le==ae||ve&&!O){if(D=G||ve?{}:bg(i),!W)return G?YE(i,mE(D,i)):GE(i,Rh(D,i))}else{if(!rt[le])return O?i:{};D=ak(i,le,W)}}P||(P=new Lr);var xe=P.get(i);if(xe)return xe;P.set(i,D),Gg(i)?i.forEach(function(ke){D.add(xr(ke,s,f,ke,i,P))}):Ug(i)&&i.forEach(function(ke,De){D.set(De,xr(ke,s,f,De,i,P))});var Ee=ie?G?Su:xu:G?Qt:Pt,Ie=oe?r:Ee(i);return br(Ie||i,function(ke,De){Ie&&(De=ke,ke=i[De]),Do(D,De,xr(ke,s,f,De,i,P))}),D}function bE(i){var s=Pt(i);return function(f){return Ch(f,i,s)}}function Ch(i,s,f){var _=f.length;if(i==null)return!_;for(i=et(i);_--;){var O=f[_],P=s[O],D=i[O];if(D===r&&!(O in i)||!P(D))return!1}return!0}function Ph(i,s,f){if(typeof i!="function")throw new yr(l);return Wo(function(){i.apply(r,f)},s)}function $o(i,s,f,_){var O=-1,P=os,D=!0,W=i.length,G=[],ie=s.length;if(!W)return G;f&&(s=st(s,or(f))),_?(P=Wc,D=!1):s.length>=o&&(P=Ro,D=!1,s=new pi(s));e:for(;++O<W;){var oe=i[O],le=f==null?oe:f(oe);if(oe=_||oe!==0?oe:0,D&&le===le){for(var ve=ie;ve--;)if(s[ve]===le)continue e;G.push(oe)}else P(s,le,_)||G.push(oe)}return G}var Ln=ig(Gr),Ih=ig(iu,!0);function yE(i,s){var f=!0;return Ln(i,function(_,O,P){return f=!!s(_,O,P),f}),f}function _s(i,s,f){for(var _=-1,O=i.length;++_<O;){var P=i[_],D=s(P);if(D!=null&&(W===r?D===D&&!sr(D):f(D,W)))var W=D,G=P}return G}function wE(i,s,f,_){var O=i.length;for(f=Ce(f),f<0&&(f=-f>O?0:O+f),_=_===r||_>O?O:Ce(_),_<0&&(_+=O),_=f>_?0:Kg(_);f<_;)i[f++]=s;return i}function Nh(i,s){var f=[];return Ln(i,function(_,O,P){s(_,O,P)&&f.push(_)}),f}function Mt(i,s,f,_,O){var P=-1,D=i.length;for(f||(f=lk),O||(O=[]);++P<D;){var W=i[P];s>0&&f(W)?s>1?Mt(W,s-1,f,_,O):Mn(O,W):_||(O[O.length]=W)}return O}var nu=og(),Mh=og(!0);function Gr(i,s){return i&&nu(i,s,Pt)}function iu(i,s){return i&&Mh(i,s,Pt)}function Es(i,s){return Nn(s,function(f){return bn(i[f])})}function gi(i,s){s=jn(s,i);for(var f=0,_=s.length;i!=null&&f<_;)i=i[Kr(s[f++])];return f&&f==_?i:r}function Dh(i,s,f){var _=s(i);return Te(i)?_:Mn(_,f(i))}function Ut(i){return i==null?i===r?ai:vr:fi&&fi in et(i)?rk(i):gk(i)}function ou(i,s){return i>s}function xE(i,s){return i!=null&&Ke.call(i,s)}function SE(i,s){return i!=null&&s in et(i)}function _E(i,s,f){return i>=jt(s,f)&&i<At(s,f)}function au(i,s,f){for(var _=f?Wc:os,O=i[0].length,P=i.length,D=P,W=Q(P),G=1/0,ie=[];D--;){var oe=i[D];D&&s&&(oe=st(oe,or(s))),G=jt(oe.length,G),W[D]=!f&&(s||O>=120&&oe.length>=120)?new pi(D&&oe):r}oe=i[0];var le=-1,ve=W[0];e:for(;++le<O&&ie.length<G;){var xe=oe[le],Ee=s?s(xe):xe;if(xe=f||xe!==0?xe:0,!(ve?Ro(ve,Ee):_(ie,Ee,f))){for(D=P;--D;){var Ie=W[D];if(!(Ie?Ro(Ie,Ee):_(i[D],Ee,f)))continue e}ve&&ve.push(Ee),ie.push(xe)}}return ie}function EE(i,s,f,_){return Gr(i,function(O,P,D){s(_,f(O),P,D)}),_}function Lo(i,s,f){s=jn(s,i),i=Sg(i,s);var _=i==null?i:i[Kr(_r(s))];return _==null?r:ir(_,i,f)}function $h(i){return ht(i)&&Ut(i)==ae}function kE(i){return ht(i)&&Ut(i)==Dr}function OE(i){return ht(i)&&Ut(i)==he}function zo(i,s,f,_,O){return i===s?!0:i==null||s==null||!ht(i)&&!ht(s)?i!==i&&s!==s:AE(i,s,f,_,zo,O)}function AE(i,s,f,_,O,P){var D=Te(i),W=Te(s),G=D?se:Ft(i),ie=W?se:Ft(s);G=G==ae?Ct:G,ie=ie==ae?Ct:ie;var oe=G==Ct,le=ie==Ct,ve=G==ie;if(ve&&Hn(i)){if(!Hn(s))return!1;D=!0,oe=!1}if(ve&&!oe)return P||(P=new Lr),D||Qi(i)?gg(i,s,f,_,O,P):ek(i,s,G,f,_,O,P);if(!(f&S)){var xe=oe&&Ke.call(i,"__wrapped__"),Ee=le&&Ke.call(s,"__wrapped__");if(xe||Ee){var Ie=xe?i.value():i,ke=Ee?s.value():s;return P||(P=new Lr),O(Ie,ke,f,_,P)}}return ve?(P||(P=new Lr),tk(i,s,f,_,O,P)):!1}function TE(i){return ht(i)&&Ft(i)==ge}function su(i,s,f,_){var O=f.length,P=O,D=!_;if(i==null)return!P;for(i=et(i);O--;){var W=f[O];if(D&&W[2]?W[1]!==i[W[0]]:!(W[0]in i))return!1}for(;++O<P;){W=f[O];var G=W[0],ie=i[G],oe=W[1];if(D&&W[2]){if(ie===r&&!(G in i))return!1}else{var le=new Lr;if(_)var ve=_(ie,oe,G,i,s,le);if(!(ve===r?zo(oe,ie,S|v,_,le):ve))return!1}}return!0}function Lh(i){if(!ut(i)||uk(i))return!1;var s=bn(i)?T_:bS;return s.test(mi(i))}function RE(i){return ht(i)&&Ut(i)==zt}function CE(i){return ht(i)&&Ft(i)==kt}function PE(i){return ht(i)&&Hs(i.length)&&!!it[Ut(i)]}function zh(i){return typeof i=="function"?i:i==null?er:typeof i=="object"?Te(i)?Hh(i[0],i[1]):Fh(i):av(i)}function lu(i){if(!Ho(i))return M_(i);var s=[];for(var f in et(i))Ke.call(i,f)&&f!="constructor"&&s.push(f);return s}function IE(i){if(!ut(i))return hk(i);var s=Ho(i),f=[];for(var _ in i)_=="constructor"&&(s||!Ke.call(i,_))||f.push(_);return f}function cu(i,s){return i<s}function jh(i,s){var f=-1,_=Jt(i)?Q(i.length):[];return Ln(i,function(O,P,D){_[++f]=s(O,P,D)}),_}function Fh(i){var s=Eu(i);return s.length==1&&s[0][2]?wg(s[0][0],s[0][1]):function(f){return f===i||su(f,i,s)}}function Hh(i,s){return Ou(i)&&yg(s)?wg(Kr(i),s):function(f){var _=$u(f,i);return _===r&&_===s?Lu(f,i):zo(s,_,S|v)}}function ks(i,s,f,_,O){i!==s&&nu(s,function(P,D){if(O||(O=new Lr),ut(P))NE(i,s,D,f,ks,_,O);else{var W=_?_(Tu(i,D),P,D+"",i,s,O):r;W===r&&(W=P),tu(i,D,W)}},Qt)}function NE(i,s,f,_,O,P,D){var W=Tu(i,f),G=Tu(s,f),ie=D.get(G);if(ie){tu(i,f,ie);return}var oe=P?P(W,G,f+"",i,s,D):r,le=oe===r;if(le){var ve=Te(G),xe=!ve&&Hn(G),Ee=!ve&&!xe&&Qi(G);oe=G,ve||xe||Ee?Te(W)?oe=W:vt(W)?oe=Xt(W):xe?(le=!1,oe=Qh(G,!0)):Ee?(le=!1,oe=eg(G,!0)):oe=[]:Bo(G)||bi(G)?(oe=W,bi(W)?oe=Zg(W):(!ut(W)||bn(W))&&(oe=bg(G))):le=!1}le&&(D.set(G,oe),O(oe,G,_,P,D),D.delete(G)),tu(i,f,oe)}function Wh(i,s){var f=i.length;if(f)return s+=s<0?f:0,mn(s,f)?i[s]:r}function Bh(i,s,f){s.length?s=st(s,function(P){return Te(P)?function(D){return gi(D,P.length===1?P[0]:P)}:P}):s=[er];var _=-1;s=st(s,or(_e()));var O=jh(i,function(P,D,W){var G=st(s,function(ie){return ie(P)});return{criteria:G,index:++_,value:P}});return a_(O,function(P,D){return qE(P,D,f)})}function ME(i,s){return Vh(i,s,function(f,_){return Lu(i,_)})}function Vh(i,s,f){for(var _=-1,O=s.length,P={};++_<O;){var D=s[_],W=gi(i,D);f(W,D)&&jo(P,jn(D,i),W)}return P}function DE(i){return function(s){return gi(s,i)}}function uu(i,s,f,_){var O=_?o_:Wi,P=-1,D=s.length,W=i;for(i===s&&(s=Xt(s)),f&&(W=st(i,or(f)));++P<D;)for(var G=0,ie=s[P],oe=f?f(ie):ie;(G=O(W,oe,G,_))>-1;)W!==i&&gs.call(W,G,1),gs.call(i,G,1);return i}function Uh(i,s){for(var f=i?s.length:0,_=f-1;f--;){var O=s[f];if(f==_||O!==P){var P=O;mn(O)?gs.call(i,O,1):hu(i,O)}}return i}function fu(i,s){return i+bs(kh()*(s-i+1))}function $E(i,s,f,_){for(var O=-1,P=At(ms((s-i)/(f||1)),0),D=Q(P);P--;)D[_?P:++O]=i,i+=f;return D}function du(i,s){var f="";if(!i||s<1||s>K)return f;do s%2&&(f+=i),s=bs(s/2),s&&(i+=i);while(s);return f}function Ne(i,s){return Ru(xg(i,s,er),i+"")}function LE(i){return Th(eo(i))}function zE(i,s){var f=eo(i);return Ds(f,hi(s,0,f.length))}function jo(i,s,f,_){if(!ut(i))return i;s=jn(s,i);for(var O=-1,P=s.length,D=P-1,W=i;W!=null&&++O<P;){var G=Kr(s[O]),ie=f;if(G==="__proto__"||G==="constructor"||G==="prototype")return i;if(O!=D){var oe=W[G];ie=_?_(oe,G,W):r,ie===r&&(ie=ut(oe)?oe:mn(s[O+1])?[]:{})}Do(W,G,ie),W=W[G]}return i}var qh=ys?function(i,s){return ys.set(i,s),i}:er,jE=vs?function(i,s){return vs(i,"toString",{configurable:!0,enumerable:!1,value:ju(s),writable:!0})}:er;function FE(i){return Ds(eo(i))}function Sr(i,s,f){var _=-1,O=i.length;s<0&&(s=-s>O?0:O+s),f=f>O?O:f,f<0&&(f+=O),O=s>f?0:f-s>>>0,s>>>=0;for(var P=Q(O);++_<O;)P[_]=i[_+s];return P}function HE(i,s){var f;return Ln(i,function(_,O,P){return f=s(_,O,P),!f}),!!f}function Os(i,s,f){var _=0,O=i==null?_:i.length;if(typeof s=="number"&&s===s&&O<=ee){for(;_<O;){var P=_+O>>>1,D=i[P];D!==null&&!sr(D)&&(f?D<=s:D<s)?_=P+1:O=P}return O}return pu(i,s,er,f)}function pu(i,s,f,_){var O=0,P=i==null?0:i.length;if(P===0)return 0;s=f(s);for(var D=s!==s,W=s===null,G=sr(s),ie=s===r;O<P;){var oe=bs((O+P)/2),le=f(i[oe]),ve=le!==r,xe=le===null,Ee=le===le,Ie=sr(le);if(D)var ke=_||Ee;else ie?ke=Ee&&(_||ve):W?ke=Ee&&ve&&(_||!xe):G?ke=Ee&&ve&&!xe&&(_||!Ie):xe||Ie?ke=!1:ke=_?le<=s:le<s;ke?O=oe+1:P=oe}return jt(P,te)}function Gh(i,s){for(var f=-1,_=i.length,O=0,P=[];++f<_;){var D=i[f],W=s?s(D):D;if(!f||!zr(W,G)){var G=W;P[O++]=D===0?0:D}}return P}function Yh(i){return typeof i=="number"?i:sr(i)?L:+i}function ar(i){if(typeof i=="string")return i;if(Te(i))return st(i,ar)+"";if(sr(i))return Oh?Oh.call(i):"";var s=i+"";return s=="0"&&1/i==-X?"-0":s}function zn(i,s,f){var _=-1,O=os,P=i.length,D=!0,W=[],G=W;if(f)D=!1,O=Wc;else if(P>=o){var ie=s?null:JE(i);if(ie)return ss(ie);D=!1,O=Ro,G=new pi}else G=s?[]:W;e:for(;++_<P;){var oe=i[_],le=s?s(oe):oe;if(oe=f||oe!==0?oe:0,D&&le===le){for(var ve=G.length;ve--;)if(G[ve]===le)continue e;s&&G.push(le),W.push(oe)}else O(G,le,f)||(G!==W&&G.push(le),W.push(oe))}return W}function hu(i,s){return s=jn(s,i),i=Sg(i,s),i==null||delete i[Kr(_r(s))]}function Kh(i,s,f,_){return jo(i,s,f(gi(i,s)),_)}function As(i,s,f,_){for(var O=i.length,P=_?O:-1;(_?P--:++P<O)&&s(i[P],P,i););return f?Sr(i,_?0:P,_?P+1:O):Sr(i,_?P+1:0,_?O:P)}function Zh(i,s){var f=i;return f instanceof $e&&(f=f.value()),Bc(s,function(_,O){return O.func.apply(O.thisArg,Mn([_],O.args))},f)}function gu(i,s,f){var _=i.length;if(_<2)return _?zn(i[0]):[];for(var O=-1,P=Q(_);++O<_;)for(var D=i[O],W=-1;++W<_;)W!=O&&(P[O]=$o(P[O]||D,i[W],s,f));return zn(Mt(P,1),s,f)}function Xh(i,s,f){for(var _=-1,O=i.length,P=s.length,D={};++_<O;){var W=_<P?s[_]:r;f(D,i[_],W)}return D}function vu(i){return vt(i)?i:[]}function mu(i){return typeof i=="function"?i:er}function jn(i,s){return Te(i)?i:Ou(i,s)?[i]:Og(He(i))}var WE=Ne;function Fn(i,s,f){var _=i.length;return f=f===r?_:f,!s&&f>=_?i:Sr(i,s,f)}var Jh=R_||function(i){return Nt.clearTimeout(i)};function Qh(i,s){if(s)return i.slice();var f=i.length,_=wh?wh(f):new i.constructor(f);return i.copy(_),_}function bu(i){var s=new i.constructor(i.byteLength);return new ps(s).set(new ps(i)),s}function BE(i,s){var f=s?bu(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.byteLength)}function VE(i){var s=new i.constructor(i.source,$p.exec(i));return s.lastIndex=i.lastIndex,s}function UE(i){return Mo?et(Mo.call(i)):{}}function eg(i,s){var f=s?bu(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.length)}function tg(i,s){if(i!==s){var f=i!==r,_=i===null,O=i===i,P=sr(i),D=s!==r,W=s===null,G=s===s,ie=sr(s);if(!W&&!ie&&!P&&i>s||P&&D&&G&&!W&&!ie||_&&D&&G||!f&&G||!O)return 1;if(!_&&!P&&!ie&&i<s||ie&&f&&O&&!_&&!P||W&&f&&O||!D&&O||!G)return-1}return 0}function qE(i,s,f){for(var _=-1,O=i.criteria,P=s.criteria,D=O.length,W=f.length;++_<D;){var G=tg(O[_],P[_]);if(G){if(_>=W)return G;var ie=f[_];return G*(ie=="desc"?-1:1)}}return i.index-s.index}function rg(i,s,f,_){for(var O=-1,P=i.length,D=f.length,W=-1,G=s.length,ie=At(P-D,0),oe=Q(G+ie),le=!_;++W<G;)oe[W]=s[W];for(;++O<D;)(le||O<P)&&(oe[f[O]]=i[O]);for(;ie--;)oe[W++]=i[O++];return oe}function ng(i,s,f,_){for(var O=-1,P=i.length,D=-1,W=f.length,G=-1,ie=s.length,oe=At(P-W,0),le=Q(oe+ie),ve=!_;++O<oe;)le[O]=i[O];for(var xe=O;++G<ie;)le[xe+G]=s[G];for(;++D<W;)(ve||O<P)&&(le[xe+f[D]]=i[O++]);return le}function Xt(i,s){var f=-1,_=i.length;for(s||(s=Q(_));++f<_;)s[f]=i[f];return s}function Yr(i,s,f,_){var O=!f;f||(f={});for(var P=-1,D=s.length;++P<D;){var W=s[P],G=_?_(f[W],i[W],W,f,i):r;G===r&&(G=i[W]),O?hn(f,W,G):Do(f,W,G)}return f}function GE(i,s){return Yr(i,ku(i),s)}function YE(i,s){return Yr(i,vg(i),s)}function Ts(i,s){return function(f,_){var O=Te(f)?QS:vE,P=s?s():{};return O(f,i,_e(_,2),P)}}function Zi(i){return Ne(function(s,f){var _=-1,O=f.length,P=O>1?f[O-1]:r,D=O>2?f[2]:r;for(P=i.length>3&&typeof P=="function"?(O--,P):r,D&&qt(f[0],f[1],D)&&(P=O<3?r:P,O=1),s=et(s);++_<O;){var W=f[_];W&&i(s,W,_,P)}return s})}function ig(i,s){return function(f,_){if(f==null)return f;if(!Jt(f))return i(f,_);for(var O=f.length,P=s?O:-1,D=et(f);(s?P--:++P<O)&&_(D[P],P,D)!==!1;);return f}}function og(i){return function(s,f,_){for(var O=-1,P=et(s),D=_(s),W=D.length;W--;){var G=D[i?W:++O];if(f(P[G],G,P)===!1)break}return s}}function KE(i,s,f){var _=s&b,O=Fo(i);function P(){var D=this&&this!==Nt&&this instanceof P?O:i;return D.apply(_?f:this,arguments)}return P}function ag(i){return function(s){s=He(s);var f=Bi(s)?$r(s):r,_=f?f[0]:s.charAt(0),O=f?Fn(f,1).join(""):s.slice(1);return _[i]()+O}}function Xi(i){return function(s){return Bc(iv(nv(s).replace(jS,"")),i,"")}}function Fo(i){return function(){var s=arguments;switch(s.length){case 0:return new i;case 1:return new i(s[0]);case 2:return new i(s[0],s[1]);case 3:return new i(s[0],s[1],s[2]);case 4:return new i(s[0],s[1],s[2],s[3]);case 5:return new i(s[0],s[1],s[2],s[3],s[4]);case 6:return new i(s[0],s[1],s[2],s[3],s[4],s[5]);case 7:return new i(s[0],s[1],s[2],s[3],s[4],s[5],s[6])}var f=Ki(i.prototype),_=i.apply(f,s);return ut(_)?_:f}}function ZE(i,s,f){var _=Fo(i);function O(){for(var P=arguments.length,D=Q(P),W=P,G=Ji(O);W--;)D[W]=arguments[W];var ie=P<3&&D[0]!==G&&D[P-1]!==G?[]:Dn(D,G);if(P-=ie.length,P<f)return fg(i,s,Rs,O.placeholder,r,D,ie,r,r,f-P);var oe=this&&this!==Nt&&this instanceof O?_:i;return ir(oe,this,D)}return O}function sg(i){return function(s,f,_){var O=et(s);if(!Jt(s)){var P=_e(f,3);s=Pt(s),f=function(W){return P(O[W],W,O)}}var D=i(s,f,_);return D>-1?O[P?s[D]:D]:r}}function lg(i){return vn(function(s){var f=s.length,_=f,O=wr.prototype.thru;for(i&&s.reverse();_--;){var P=s[_];if(typeof P!="function")throw new yr(l);if(O&&!D&&Ns(P)=="wrapper")var D=new wr([],!0)}for(_=D?_:f;++_<f;){P=s[_];var W=Ns(P),G=W=="wrapper"?_u(P):r;G&&Au(G[0])&&G[1]==(F|x|E|A)&&!G[4].length&&G[9]==1?D=D[Ns(G[0])].apply(D,G[3]):D=P.length==1&&Au(P)?D[W]():D.thru(P)}return function(){var ie=arguments,oe=ie[0];if(D&&ie.length==1&&Te(oe))return D.plant(oe).value();for(var le=0,ve=f?s[le].apply(this,ie):oe;++le<f;)ve=s[le].call(this,ve);return ve}})}function Rs(i,s,f,_,O,P,D,W,G,ie){var oe=s&F,le=s&b,ve=s&m,xe=s&(x|k),Ee=s&N,Ie=ve?r:Fo(i);function ke(){for(var De=arguments.length,Le=Q(De),lr=De;lr--;)Le[lr]=arguments[lr];if(xe)var Gt=Ji(ke),cr=l_(Le,Gt);if(_&&(Le=rg(Le,_,O,xe)),P&&(Le=ng(Le,P,D,xe)),De-=cr,xe&&De<ie){var mt=Dn(Le,Gt);return fg(i,s,Rs,ke.placeholder,f,Le,mt,W,G,ie-De)}var jr=le?f:this,wn=ve?jr[i]:i;return De=Le.length,W?Le=vk(Le,W):Ee&&De>1&&Le.reverse(),oe&&G<De&&(Le.length=G),this&&this!==Nt&&this instanceof ke&&(wn=Ie||Fo(wn)),wn.apply(jr,Le)}return ke}function cg(i,s){return function(f,_){return EE(f,i,s(_),{})}}function Cs(i,s){return function(f,_){var O;if(f===r&&_===r)return s;if(f!==r&&(O=f),_!==r){if(O===r)return _;typeof f=="string"||typeof _=="string"?(f=ar(f),_=ar(_)):(f=Yh(f),_=Yh(_)),O=i(f,_)}return O}}function yu(i){return vn(function(s){return s=st(s,or(_e())),Ne(function(f){var _=this;return i(s,function(O){return ir(O,_,f)})})})}function Ps(i,s){s=s===r?" ":ar(s);var f=s.length;if(f<2)return f?du(s,i):s;var _=du(s,ms(i/Vi(s)));return Bi(s)?Fn($r(_),0,i).join(""):_.slice(0,i)}function XE(i,s,f,_){var O=s&b,P=Fo(i);function D(){for(var W=-1,G=arguments.length,ie=-1,oe=_.length,le=Q(oe+G),ve=this&&this!==Nt&&this instanceof D?P:i;++ie<oe;)le[ie]=_[ie];for(;G--;)le[ie++]=arguments[++W];return ir(ve,O?f:this,le)}return D}function ug(i){return function(s,f,_){return _&&typeof _!="number"&&qt(s,f,_)&&(f=_=r),s=yn(s),f===r?(f=s,s=0):f=yn(f),_=_===r?s<f?1:-1:yn(_),$E(s,f,_,i)}}function Is(i){return function(s,f){return typeof s=="string"&&typeof f=="string"||(s=Er(s),f=Er(f)),i(s,f)}}function fg(i,s,f,_,O,P,D,W,G,ie){var oe=s&x,le=oe?D:r,ve=oe?r:D,xe=oe?P:r,Ee=oe?r:P;s|=oe?E:R,s&=~(oe?R:E),s&w||(s&=-4);var Ie=[i,s,O,xe,le,Ee,ve,W,G,ie],ke=f.apply(r,Ie);return Au(i)&&_g(ke,Ie),ke.placeholder=_,Eg(ke,i,s)}function wu(i){var s=Ot[i];return function(f,_){if(f=Er(f),_=_==null?0:jt(Ce(_),292),_&&Eh(f)){var O=(He(f)+"e").split("e"),P=s(O[0]+"e"+(+O[1]+_));return O=(He(P)+"e").split("e"),+(O[0]+"e"+(+O[1]-_))}return s(f)}}var JE=Gi&&1/ss(new Gi([,-0]))[1]==X?function(i){return new Gi(i)}:Wu;function dg(i){return function(s){var f=Ft(s);return f==ge?Zc(s):f==kt?g_(s):s_(s,i(s))}}function gn(i,s,f,_,O,P,D,W){var G=s&m;if(!G&&typeof i!="function")throw new yr(l);var ie=_?_.length:0;if(ie||(s&=-97,_=O=r),D=D===r?D:At(Ce(D),0),W=W===r?W:Ce(W),ie-=O?O.length:0,s&R){var oe=_,le=O;_=O=r}var ve=G?r:_u(i),xe=[i,s,f,_,O,oe,le,P,D,W];if(ve&&pk(xe,ve),i=xe[0],s=xe[1],f=xe[2],_=xe[3],O=xe[4],W=xe[9]=xe[9]===r?G?0:i.length:At(xe[9]-ie,0),!W&&s&(x|k)&&(s&=-25),!s||s==b)var Ee=KE(i,s,f);else s==x||s==k?Ee=ZE(i,s,W):(s==E||s==(b|E))&&!O.length?Ee=XE(i,s,f,_):Ee=Rs.apply(r,xe);var Ie=ve?qh:_g;return Eg(Ie(Ee,xe),i,s)}function pg(i,s,f,_){return i===r||zr(i,qi[f])&&!Ke.call(_,f)?s:i}function hg(i,s,f,_,O,P){return ut(i)&&ut(s)&&(P.set(s,i),ks(i,s,r,hg,P),P.delete(s)),i}function QE(i){return Bo(i)?r:i}function gg(i,s,f,_,O,P){var D=f&S,W=i.length,G=s.length;if(W!=G&&!(D&&G>W))return!1;var ie=P.get(i),oe=P.get(s);if(ie&&oe)return ie==s&&oe==i;var le=-1,ve=!0,xe=f&v?new pi:r;for(P.set(i,s),P.set(s,i);++le<W;){var Ee=i[le],Ie=s[le];if(_)var ke=D?_(Ie,Ee,le,s,i,P):_(Ee,Ie,le,i,s,P);if(ke!==r){if(ke)continue;ve=!1;break}if(xe){if(!Vc(s,function(De,Le){if(!Ro(xe,Le)&&(Ee===De||O(Ee,De,f,_,P)))return xe.push(Le)})){ve=!1;break}}else if(!(Ee===Ie||O(Ee,Ie,f,_,P))){ve=!1;break}}return P.delete(i),P.delete(s),ve}function ek(i,s,f,_,O,P,D){switch(f){case Re:if(i.byteLength!=s.byteLength||i.byteOffset!=s.byteOffset)return!1;i=i.buffer,s=s.buffer;case Dr:return!(i.byteLength!=s.byteLength||!P(new ps(i),new ps(s)));case ce:case he:case Et:return zr(+i,+s);case Se:return i.name==s.name&&i.message==s.message;case zt:case qr:return i==s+"";case ge:var W=Zc;case kt:var G=_&S;if(W||(W=ss),i.size!=s.size&&!G)return!1;var ie=D.get(i);if(ie)return ie==s;_|=v,D.set(i,s);var oe=gg(W(i),W(s),_,O,P,D);return D.delete(i),oe;case Nr:if(Mo)return Mo.call(i)==Mo.call(s)}return!1}function tk(i,s,f,_,O,P){var D=f&S,W=xu(i),G=W.length,ie=xu(s),oe=ie.length;if(G!=oe&&!D)return!1;for(var le=G;le--;){var ve=W[le];if(!(D?ve in s:Ke.call(s,ve)))return!1}var xe=P.get(i),Ee=P.get(s);if(xe&&Ee)return xe==s&&Ee==i;var Ie=!0;P.set(i,s),P.set(s,i);for(var ke=D;++le<G;){ve=W[le];var De=i[ve],Le=s[ve];if(_)var lr=D?_(Le,De,ve,s,i,P):_(De,Le,ve,i,s,P);if(!(lr===r?De===Le||O(De,Le,f,_,P):lr)){Ie=!1;break}ke||(ke=ve=="constructor")}if(Ie&&!ke){var Gt=i.constructor,cr=s.constructor;Gt!=cr&&"constructor"in i&&"constructor"in s&&!(typeof Gt=="function"&&Gt instanceof Gt&&typeof cr=="function"&&cr instanceof cr)&&(Ie=!1)}return P.delete(i),P.delete(s),Ie}function vn(i){return Ru(xg(i,r,Cg),i+"")}function xu(i){return Dh(i,Pt,ku)}function Su(i){return Dh(i,Qt,vg)}var _u=ys?function(i){return ys.get(i)}:Wu;function Ns(i){for(var s=i.name+"",f=Yi[s],_=Ke.call(Yi,s)?f.length:0;_--;){var O=f[_],P=O.func;if(P==null||P==i)return O.name}return s}function Ji(i){var s=Ke.call(T,"placeholder")?T:i;return s.placeholder}function _e(){var i=T.iteratee||Fu;return i=i===Fu?zh:i,arguments.length?i(arguments[0],arguments[1]):i}function Ms(i,s){var f=i.__data__;return ck(s)?f[typeof s=="string"?"string":"hash"]:f.map}function Eu(i){for(var s=Pt(i),f=s.length;f--;){var _=s[f],O=i[_];s[f]=[_,O,yg(O)]}return s}function vi(i,s){var f=d_(i,s);return Lh(f)?f:r}function rk(i){var s=Ke.call(i,fi),f=i[fi];try{i[fi]=r;var _=!0}catch{}var O=fs.call(i);return _&&(s?i[fi]=f:delete i[fi]),O}var ku=Jc?function(i){return i==null?[]:(i=et(i),Nn(Jc(i),function(s){return Sh.call(i,s)}))}:Bu,vg=Jc?function(i){for(var s=[];i;)Mn(s,ku(i)),i=hs(i);return s}:Bu,Ft=Ut;(Qc&&Ft(new Qc(new ArrayBuffer(1)))!=Re||Po&&Ft(new Po)!=ge||eu&&Ft(eu.resolve())!=zi||Gi&&Ft(new Gi)!=kt||Io&&Ft(new Io)!=Mr)&&(Ft=function(i){var s=Ut(i),f=s==Ct?i.constructor:r,_=f?mi(f):"";if(_)switch(_){case z_:return Re;case j_:return ge;case F_:return zi;case H_:return kt;case W_:return Mr}return s});function nk(i,s,f){for(var _=-1,O=f.length;++_<O;){var P=f[_],D=P.size;switch(P.type){case"drop":i+=D;break;case"dropRight":s-=D;break;case"take":s=jt(s,i+D);break;case"takeRight":i=At(i,s-D);break}}return{start:i,end:s}}function ik(i){var s=i.match(uS);return s?s[1].split(fS):[]}function mg(i,s,f){s=jn(s,i);for(var _=-1,O=s.length,P=!1;++_<O;){var D=Kr(s[_]);if(!(P=i!=null&&f(i,D)))break;i=i[D]}return P||++_!=O?P:(O=i==null?0:i.length,!!O&&Hs(O)&&mn(D,O)&&(Te(i)||bi(i)))}function ok(i){var s=i.length,f=new i.constructor(s);return s&&typeof i[0]=="string"&&Ke.call(i,"index")&&(f.index=i.index,f.input=i.input),f}function bg(i){return typeof i.constructor=="function"&&!Ho(i)?Ki(hs(i)):{}}function ak(i,s,f){var _=i.constructor;switch(s){case Dr:return bu(i);case ce:case he:return new _(+i);case Re:return BE(i,f);case ze:case Vt:case un:case Pn:case In:case si:case li:case fn:case ci:return eg(i,f);case ge:return new _;case Et:case qr:return new _(i);case zt:return VE(i);case kt:return new _;case Nr:return UE(i)}}function sk(i,s){var f=s.length;if(!f)return i;var _=f-1;return s[_]=(f>1?"& ":"")+s[_],s=s.join(f>2?", ":" "),i.replace(cS,`{
181
+ /* [wrapped with `+s+`] */
182
+ `)}function lk(i){return Te(i)||bi(i)||!!(_h&&i&&i[_h])}function mn(i,s){var f=typeof i;return s=s??K,!!s&&(f=="number"||f!="symbol"&&wS.test(i))&&i>-1&&i%1==0&&i<s}function qt(i,s,f){if(!ut(f))return!1;var _=typeof s;return(_=="number"?Jt(f)&&mn(s,f.length):_=="string"&&s in f)?zr(f[s],i):!1}function Ou(i,s){if(Te(i))return!1;var f=typeof i;return f=="number"||f=="symbol"||f=="boolean"||i==null||sr(i)?!0:oS.test(i)||!iS.test(i)||s!=null&&i in et(s)}function ck(i){var s=typeof i;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?i!=="__proto__":i===null}function Au(i){var s=Ns(i),f=T[s];if(typeof f!="function"||!(s in $e.prototype))return!1;if(i===f)return!0;var _=_u(f);return!!_&&i===_[0]}function uk(i){return!!yh&&yh in i}var fk=cs?bn:Vu;function Ho(i){var s=i&&i.constructor,f=typeof s=="function"&&s.prototype||qi;return i===f}function yg(i){return i===i&&!ut(i)}function wg(i,s){return function(f){return f==null?!1:f[i]===s&&(s!==r||i in et(f))}}function dk(i){var s=js(i,function(_){return f.size===d&&f.clear(),_}),f=s.cache;return s}function pk(i,s){var f=i[1],_=s[1],O=f|_,P=O<(b|m|F),D=_==F&&f==x||_==F&&f==A&&i[7].length<=s[8]||_==(F|A)&&s[7].length<=s[8]&&f==x;if(!(P||D))return i;_&b&&(i[2]=s[2],O|=f&b?0:w);var W=s[3];if(W){var G=i[3];i[3]=G?rg(G,W,s[4]):W,i[4]=G?Dn(i[3],p):s[4]}return W=s[5],W&&(G=i[5],i[5]=G?ng(G,W,s[6]):W,i[6]=G?Dn(i[5],p):s[6]),W=s[7],W&&(i[7]=W),_&F&&(i[8]=i[8]==null?s[8]:jt(i[8],s[8])),i[9]==null&&(i[9]=s[9]),i[0]=s[0],i[1]=O,i}function hk(i){var s=[];if(i!=null)for(var f in et(i))s.push(f);return s}function gk(i){return fs.call(i)}function xg(i,s,f){return s=At(s===r?i.length-1:s,0),function(){for(var _=arguments,O=-1,P=At(_.length-s,0),D=Q(P);++O<P;)D[O]=_[s+O];O=-1;for(var W=Q(s+1);++O<s;)W[O]=_[O];return W[s]=f(D),ir(i,this,W)}}function Sg(i,s){return s.length<2?i:gi(i,Sr(s,0,-1))}function vk(i,s){for(var f=i.length,_=jt(s.length,f),O=Xt(i);_--;){var P=s[_];i[_]=mn(P,f)?O[P]:r}return i}function Tu(i,s){if(!(s==="constructor"&&typeof i[s]=="function")&&s!="__proto__")return i[s]}var _g=kg(qh),Wo=P_||function(i,s){return Nt.setTimeout(i,s)},Ru=kg(jE);function Eg(i,s,f){var _=s+"";return Ru(i,sk(_,mk(ik(_),f)))}function kg(i){var s=0,f=0;return function(){var _=D_(),O=B-(_-f);if(f=_,O>0){if(++s>=M)return arguments[0]}else s=0;return i.apply(r,arguments)}}function Ds(i,s){var f=-1,_=i.length,O=_-1;for(s=s===r?_:s;++f<s;){var P=fu(f,O),D=i[P];i[P]=i[f],i[f]=D}return i.length=s,i}var Og=dk(function(i){var s=[];return i.charCodeAt(0)===46&&s.push(""),i.replace(aS,function(f,_,O,P){s.push(O?P.replace(hS,"$1"):_||f)}),s});function Kr(i){if(typeof i=="string"||sr(i))return i;var s=i+"";return s=="0"&&1/i==-X?"-0":s}function mi(i){if(i!=null){try{return us.call(i)}catch{}try{return i+""}catch{}}return""}function mk(i,s){return br(J,function(f){var _="_."+f[0];s&f[1]&&!os(i,_)&&i.push(_)}),i.sort()}function Ag(i){if(i instanceof $e)return i.clone();var s=new wr(i.__wrapped__,i.__chain__);return s.__actions__=Xt(i.__actions__),s.__index__=i.__index__,s.__values__=i.__values__,s}function bk(i,s,f){(f?qt(i,s,f):s===r)?s=1:s=At(Ce(s),0);var _=i==null?0:i.length;if(!_||s<1)return[];for(var O=0,P=0,D=Q(ms(_/s));O<_;)D[P++]=Sr(i,O,O+=s);return D}function yk(i){for(var s=-1,f=i==null?0:i.length,_=0,O=[];++s<f;){var P=i[s];P&&(O[_++]=P)}return O}function wk(){var i=arguments.length;if(!i)return[];for(var s=Q(i-1),f=arguments[0],_=i;_--;)s[_-1]=arguments[_];return Mn(Te(f)?Xt(f):[f],Mt(s,1))}var xk=Ne(function(i,s){return vt(i)?$o(i,Mt(s,1,vt,!0)):[]}),Sk=Ne(function(i,s){var f=_r(s);return vt(f)&&(f=r),vt(i)?$o(i,Mt(s,1,vt,!0),_e(f,2)):[]}),_k=Ne(function(i,s){var f=_r(s);return vt(f)&&(f=r),vt(i)?$o(i,Mt(s,1,vt,!0),r,f):[]});function Ek(i,s,f){var _=i==null?0:i.length;return _?(s=f||s===r?1:Ce(s),Sr(i,s<0?0:s,_)):[]}function kk(i,s,f){var _=i==null?0:i.length;return _?(s=f||s===r?1:Ce(s),s=_-s,Sr(i,0,s<0?0:s)):[]}function Ok(i,s){return i&&i.length?As(i,_e(s,3),!0,!0):[]}function Ak(i,s){return i&&i.length?As(i,_e(s,3),!0):[]}function Tk(i,s,f,_){var O=i==null?0:i.length;return O?(f&&typeof f!="number"&&qt(i,s,f)&&(f=0,_=O),wE(i,s,f,_)):[]}function Tg(i,s,f){var _=i==null?0:i.length;if(!_)return-1;var O=f==null?0:Ce(f);return O<0&&(O=At(_+O,0)),as(i,_e(s,3),O)}function Rg(i,s,f){var _=i==null?0:i.length;if(!_)return-1;var O=_-1;return f!==r&&(O=Ce(f),O=f<0?At(_+O,0):jt(O,_-1)),as(i,_e(s,3),O,!0)}function Cg(i){var s=i==null?0:i.length;return s?Mt(i,1):[]}function Rk(i){var s=i==null?0:i.length;return s?Mt(i,X):[]}function Ck(i,s){var f=i==null?0:i.length;return f?(s=s===r?1:Ce(s),Mt(i,s)):[]}function Pk(i){for(var s=-1,f=i==null?0:i.length,_={};++s<f;){var O=i[s];_[O[0]]=O[1]}return _}function Pg(i){return i&&i.length?i[0]:r}function Ik(i,s,f){var _=i==null?0:i.length;if(!_)return-1;var O=f==null?0:Ce(f);return O<0&&(O=At(_+O,0)),Wi(i,s,O)}function Nk(i){var s=i==null?0:i.length;return s?Sr(i,0,-1):[]}var Mk=Ne(function(i){var s=st(i,vu);return s.length&&s[0]===i[0]?au(s):[]}),Dk=Ne(function(i){var s=_r(i),f=st(i,vu);return s===_r(f)?s=r:f.pop(),f.length&&f[0]===i[0]?au(f,_e(s,2)):[]}),$k=Ne(function(i){var s=_r(i),f=st(i,vu);return s=typeof s=="function"?s:r,s&&f.pop(),f.length&&f[0]===i[0]?au(f,r,s):[]});function Lk(i,s){return i==null?"":N_.call(i,s)}function _r(i){var s=i==null?0:i.length;return s?i[s-1]:r}function zk(i,s,f){var _=i==null?0:i.length;if(!_)return-1;var O=_;return f!==r&&(O=Ce(f),O=O<0?At(_+O,0):jt(O,_-1)),s===s?m_(i,s,O):as(i,fh,O,!0)}function jk(i,s){return i&&i.length?Wh(i,Ce(s)):r}var Fk=Ne(Ig);function Ig(i,s){return i&&i.length&&s&&s.length?uu(i,s):i}function Hk(i,s,f){return i&&i.length&&s&&s.length?uu(i,s,_e(f,2)):i}function Wk(i,s,f){return i&&i.length&&s&&s.length?uu(i,s,r,f):i}var Bk=vn(function(i,s){var f=i==null?0:i.length,_=ru(i,s);return Uh(i,st(s,function(O){return mn(O,f)?+O:O}).sort(tg)),_});function Vk(i,s){var f=[];if(!(i&&i.length))return f;var _=-1,O=[],P=i.length;for(s=_e(s,3);++_<P;){var D=i[_];s(D,_,i)&&(f.push(D),O.push(_))}return Uh(i,O),f}function Cu(i){return i==null?i:L_.call(i)}function Uk(i,s,f){var _=i==null?0:i.length;return _?(f&&typeof f!="number"&&qt(i,s,f)?(s=0,f=_):(s=s==null?0:Ce(s),f=f===r?_:Ce(f)),Sr(i,s,f)):[]}function qk(i,s){return Os(i,s)}function Gk(i,s,f){return pu(i,s,_e(f,2))}function Yk(i,s){var f=i==null?0:i.length;if(f){var _=Os(i,s);if(_<f&&zr(i[_],s))return _}return-1}function Kk(i,s){return Os(i,s,!0)}function Zk(i,s,f){return pu(i,s,_e(f,2),!0)}function Xk(i,s){var f=i==null?0:i.length;if(f){var _=Os(i,s,!0)-1;if(zr(i[_],s))return _}return-1}function Jk(i){return i&&i.length?Gh(i):[]}function Qk(i,s){return i&&i.length?Gh(i,_e(s,2)):[]}function eO(i){var s=i==null?0:i.length;return s?Sr(i,1,s):[]}function tO(i,s,f){return i&&i.length?(s=f||s===r?1:Ce(s),Sr(i,0,s<0?0:s)):[]}function rO(i,s,f){var _=i==null?0:i.length;return _?(s=f||s===r?1:Ce(s),s=_-s,Sr(i,s<0?0:s,_)):[]}function nO(i,s){return i&&i.length?As(i,_e(s,3),!1,!0):[]}function iO(i,s){return i&&i.length?As(i,_e(s,3)):[]}var oO=Ne(function(i){return zn(Mt(i,1,vt,!0))}),aO=Ne(function(i){var s=_r(i);return vt(s)&&(s=r),zn(Mt(i,1,vt,!0),_e(s,2))}),sO=Ne(function(i){var s=_r(i);return s=typeof s=="function"?s:r,zn(Mt(i,1,vt,!0),r,s)});function lO(i){return i&&i.length?zn(i):[]}function cO(i,s){return i&&i.length?zn(i,_e(s,2)):[]}function uO(i,s){return s=typeof s=="function"?s:r,i&&i.length?zn(i,r,s):[]}function Pu(i){if(!(i&&i.length))return[];var s=0;return i=Nn(i,function(f){if(vt(f))return s=At(f.length,s),!0}),Yc(s,function(f){return st(i,Uc(f))})}function Ng(i,s){if(!(i&&i.length))return[];var f=Pu(i);return s==null?f:st(f,function(_){return ir(s,r,_)})}var fO=Ne(function(i,s){return vt(i)?$o(i,s):[]}),dO=Ne(function(i){return gu(Nn(i,vt))}),pO=Ne(function(i){var s=_r(i);return vt(s)&&(s=r),gu(Nn(i,vt),_e(s,2))}),hO=Ne(function(i){var s=_r(i);return s=typeof s=="function"?s:r,gu(Nn(i,vt),r,s)}),gO=Ne(Pu);function vO(i,s){return Xh(i||[],s||[],Do)}function mO(i,s){return Xh(i||[],s||[],jo)}var bO=Ne(function(i){var s=i.length,f=s>1?i[s-1]:r;return f=typeof f=="function"?(i.pop(),f):r,Ng(i,f)});function Mg(i){var s=T(i);return s.__chain__=!0,s}function yO(i,s){return s(i),i}function $s(i,s){return s(i)}var wO=vn(function(i){var s=i.length,f=s?i[0]:0,_=this.__wrapped__,O=function(P){return ru(P,i)};return s>1||this.__actions__.length||!(_ instanceof $e)||!mn(f)?this.thru(O):(_=_.slice(f,+f+(s?1:0)),_.__actions__.push({func:$s,args:[O],thisArg:r}),new wr(_,this.__chain__).thru(function(P){return s&&!P.length&&P.push(r),P}))});function xO(){return Mg(this)}function SO(){return new wr(this.value(),this.__chain__)}function _O(){this.__values__===r&&(this.__values__=Yg(this.value()));var i=this.__index__>=this.__values__.length,s=i?r:this.__values__[this.__index__++];return{done:i,value:s}}function EO(){return this}function kO(i){for(var s,f=this;f instanceof xs;){var _=Ag(f);_.__index__=0,_.__values__=r,s?O.__wrapped__=_:s=_;var O=_;f=f.__wrapped__}return O.__wrapped__=i,s}function OO(){var i=this.__wrapped__;if(i instanceof $e){var s=i;return this.__actions__.length&&(s=new $e(this)),s=s.reverse(),s.__actions__.push({func:$s,args:[Cu],thisArg:r}),new wr(s,this.__chain__)}return this.thru(Cu)}function AO(){return Zh(this.__wrapped__,this.__actions__)}var TO=Ts(function(i,s,f){Ke.call(i,f)?++i[f]:hn(i,f,1)});function RO(i,s,f){var _=Te(i)?ch:yE;return f&&qt(i,s,f)&&(s=r),_(i,_e(s,3))}function CO(i,s){var f=Te(i)?Nn:Nh;return f(i,_e(s,3))}var PO=sg(Tg),IO=sg(Rg);function NO(i,s){return Mt(Ls(i,s),1)}function MO(i,s){return Mt(Ls(i,s),X)}function DO(i,s,f){return f=f===r?1:Ce(f),Mt(Ls(i,s),f)}function Dg(i,s){var f=Te(i)?br:Ln;return f(i,_e(s,3))}function $g(i,s){var f=Te(i)?e_:Ih;return f(i,_e(s,3))}var $O=Ts(function(i,s,f){Ke.call(i,f)?i[f].push(s):hn(i,f,[s])});function LO(i,s,f,_){i=Jt(i)?i:eo(i),f=f&&!_?Ce(f):0;var O=i.length;return f<0&&(f=At(O+f,0)),Ws(i)?f<=O&&i.indexOf(s,f)>-1:!!O&&Wi(i,s,f)>-1}var zO=Ne(function(i,s,f){var _=-1,O=typeof s=="function",P=Jt(i)?Q(i.length):[];return Ln(i,function(D){P[++_]=O?ir(s,D,f):Lo(D,s,f)}),P}),jO=Ts(function(i,s,f){hn(i,f,s)});function Ls(i,s){var f=Te(i)?st:jh;return f(i,_e(s,3))}function FO(i,s,f,_){return i==null?[]:(Te(s)||(s=s==null?[]:[s]),f=_?r:f,Te(f)||(f=f==null?[]:[f]),Bh(i,s,f))}var HO=Ts(function(i,s,f){i[f?0:1].push(s)},function(){return[[],[]]});function WO(i,s,f){var _=Te(i)?Bc:ph,O=arguments.length<3;return _(i,_e(s,4),f,O,Ln)}function BO(i,s,f){var _=Te(i)?t_:ph,O=arguments.length<3;return _(i,_e(s,4),f,O,Ih)}function VO(i,s){var f=Te(i)?Nn:Nh;return f(i,Fs(_e(s,3)))}function UO(i){var s=Te(i)?Th:LE;return s(i)}function qO(i,s,f){(f?qt(i,s,f):s===r)?s=1:s=Ce(s);var _=Te(i)?hE:zE;return _(i,s)}function GO(i){var s=Te(i)?gE:FE;return s(i)}function YO(i){if(i==null)return 0;if(Jt(i))return Ws(i)?Vi(i):i.length;var s=Ft(i);return s==ge||s==kt?i.size:lu(i).length}function KO(i,s,f){var _=Te(i)?Vc:HE;return f&&qt(i,s,f)&&(s=r),_(i,_e(s,3))}var ZO=Ne(function(i,s){if(i==null)return[];var f=s.length;return f>1&&qt(i,s[0],s[1])?s=[]:f>2&&qt(s[0],s[1],s[2])&&(s=[s[0]]),Bh(i,Mt(s,1),[])}),zs=C_||function(){return Nt.Date.now()};function XO(i,s){if(typeof s!="function")throw new yr(l);return i=Ce(i),function(){if(--i<1)return s.apply(this,arguments)}}function Lg(i,s,f){return s=f?r:s,s=i&&s==null?i.length:s,gn(i,F,r,r,r,r,s)}function zg(i,s){var f;if(typeof s!="function")throw new yr(l);return i=Ce(i),function(){return--i>0&&(f=s.apply(this,arguments)),i<=1&&(s=r),f}}var Iu=Ne(function(i,s,f){var _=b;if(f.length){var O=Dn(f,Ji(Iu));_|=E}return gn(i,_,s,f,O)}),jg=Ne(function(i,s,f){var _=b|m;if(f.length){var O=Dn(f,Ji(jg));_|=E}return gn(s,_,i,f,O)});function Fg(i,s,f){s=f?r:s;var _=gn(i,x,r,r,r,r,r,s);return _.placeholder=Fg.placeholder,_}function Hg(i,s,f){s=f?r:s;var _=gn(i,k,r,r,r,r,r,s);return _.placeholder=Hg.placeholder,_}function Wg(i,s,f){var _,O,P,D,W,G,ie=0,oe=!1,le=!1,ve=!0;if(typeof i!="function")throw new yr(l);s=Er(s)||0,ut(f)&&(oe=!!f.leading,le="maxWait"in f,P=le?At(Er(f.maxWait)||0,s):P,ve="trailing"in f?!!f.trailing:ve);function xe(mt){var jr=_,wn=O;return _=O=r,ie=mt,D=i.apply(wn,jr),D}function Ee(mt){return ie=mt,W=Wo(De,s),oe?xe(mt):D}function Ie(mt){var jr=mt-G,wn=mt-ie,sv=s-jr;return le?jt(sv,P-wn):sv}function ke(mt){var jr=mt-G,wn=mt-ie;return G===r||jr>=s||jr<0||le&&wn>=P}function De(){var mt=zs();if(ke(mt))return Le(mt);W=Wo(De,Ie(mt))}function Le(mt){return W=r,ve&&_?xe(mt):(_=O=r,D)}function lr(){W!==r&&Jh(W),ie=0,_=G=O=W=r}function Gt(){return W===r?D:Le(zs())}function cr(){var mt=zs(),jr=ke(mt);if(_=arguments,O=this,G=mt,jr){if(W===r)return Ee(G);if(le)return Jh(W),W=Wo(De,s),xe(G)}return W===r&&(W=Wo(De,s)),D}return cr.cancel=lr,cr.flush=Gt,cr}var JO=Ne(function(i,s){return Ph(i,1,s)}),QO=Ne(function(i,s,f){return Ph(i,Er(s)||0,f)});function eA(i){return gn(i,N)}function js(i,s){if(typeof i!="function"||s!=null&&typeof s!="function")throw new yr(l);var f=function(){var _=arguments,O=s?s.apply(this,_):_[0],P=f.cache;if(P.has(O))return P.get(O);var D=i.apply(this,_);return f.cache=P.set(O,D)||P,D};return f.cache=new(js.Cache||pn),f}js.Cache=pn;function Fs(i){if(typeof i!="function")throw new yr(l);return function(){var s=arguments;switch(s.length){case 0:return!i.call(this);case 1:return!i.call(this,s[0]);case 2:return!i.call(this,s[0],s[1]);case 3:return!i.call(this,s[0],s[1],s[2])}return!i.apply(this,s)}}function tA(i){return zg(2,i)}var rA=WE(function(i,s){s=s.length==1&&Te(s[0])?st(s[0],or(_e())):st(Mt(s,1),or(_e()));var f=s.length;return Ne(function(_){for(var O=-1,P=jt(_.length,f);++O<P;)_[O]=s[O].call(this,_[O]);return ir(i,this,_)})}),Nu=Ne(function(i,s){var f=Dn(s,Ji(Nu));return gn(i,E,r,s,f)}),Bg=Ne(function(i,s){var f=Dn(s,Ji(Bg));return gn(i,R,r,s,f)}),nA=vn(function(i,s){return gn(i,A,r,r,r,s)});function iA(i,s){if(typeof i!="function")throw new yr(l);return s=s===r?s:Ce(s),Ne(i,s)}function oA(i,s){if(typeof i!="function")throw new yr(l);return s=s==null?0:At(Ce(s),0),Ne(function(f){var _=f[s],O=Fn(f,0,s);return _&&Mn(O,_),ir(i,this,O)})}function aA(i,s,f){var _=!0,O=!0;if(typeof i!="function")throw new yr(l);return ut(f)&&(_="leading"in f?!!f.leading:_,O="trailing"in f?!!f.trailing:O),Wg(i,s,{leading:_,maxWait:s,trailing:O})}function sA(i){return Lg(i,1)}function lA(i,s){return Nu(mu(s),i)}function cA(){if(!arguments.length)return[];var i=arguments[0];return Te(i)?i:[i]}function uA(i){return xr(i,y)}function fA(i,s){return s=typeof s=="function"?s:r,xr(i,y,s)}function dA(i){return xr(i,h|y)}function pA(i,s){return s=typeof s=="function"?s:r,xr(i,h|y,s)}function hA(i,s){return s==null||Ch(i,s,Pt(s))}function zr(i,s){return i===s||i!==i&&s!==s}var gA=Is(ou),vA=Is(function(i,s){return i>=s}),bi=$h((function(){return arguments})())?$h:function(i){return ht(i)&&Ke.call(i,"callee")&&!Sh.call(i,"callee")},Te=Q.isArray,mA=nh?or(nh):kE;function Jt(i){return i!=null&&Hs(i.length)&&!bn(i)}function vt(i){return ht(i)&&Jt(i)}function bA(i){return i===!0||i===!1||ht(i)&&Ut(i)==ce}var Hn=I_||Vu,yA=ih?or(ih):OE;function wA(i){return ht(i)&&i.nodeType===1&&!Bo(i)}function xA(i){if(i==null)return!0;if(Jt(i)&&(Te(i)||typeof i=="string"||typeof i.splice=="function"||Hn(i)||Qi(i)||bi(i)))return!i.length;var s=Ft(i);if(s==ge||s==kt)return!i.size;if(Ho(i))return!lu(i).length;for(var f in i)if(Ke.call(i,f))return!1;return!0}function SA(i,s){return zo(i,s)}function _A(i,s,f){f=typeof f=="function"?f:r;var _=f?f(i,s):r;return _===r?zo(i,s,r,f):!!_}function Mu(i){if(!ht(i))return!1;var s=Ut(i);return s==Se||s==pe||typeof i.message=="string"&&typeof i.name=="string"&&!Bo(i)}function EA(i){return typeof i=="number"&&Eh(i)}function bn(i){if(!ut(i))return!1;var s=Ut(i);return s==Z||s==Pe||s==ne||s==ji}function Vg(i){return typeof i=="number"&&i==Ce(i)}function Hs(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=K}function ut(i){var s=typeof i;return i!=null&&(s=="object"||s=="function")}function ht(i){return i!=null&&typeof i=="object"}var Ug=oh?or(oh):TE;function kA(i,s){return i===s||su(i,s,Eu(s))}function OA(i,s,f){return f=typeof f=="function"?f:r,su(i,s,Eu(s),f)}function AA(i){return qg(i)&&i!=+i}function TA(i){if(fk(i))throw new Ae(a);return Lh(i)}function RA(i){return i===null}function CA(i){return i==null}function qg(i){return typeof i=="number"||ht(i)&&Ut(i)==Et}function Bo(i){if(!ht(i)||Ut(i)!=Ct)return!1;var s=hs(i);if(s===null)return!0;var f=Ke.call(s,"constructor")&&s.constructor;return typeof f=="function"&&f instanceof f&&us.call(f)==O_}var Du=ah?or(ah):RE;function PA(i){return Vg(i)&&i>=-K&&i<=K}var Gg=sh?or(sh):CE;function Ws(i){return typeof i=="string"||!Te(i)&&ht(i)&&Ut(i)==qr}function sr(i){return typeof i=="symbol"||ht(i)&&Ut(i)==Nr}var Qi=lh?or(lh):PE;function IA(i){return i===r}function NA(i){return ht(i)&&Ft(i)==Mr}function MA(i){return ht(i)&&Ut(i)==Fi}var DA=Is(cu),$A=Is(function(i,s){return i<=s});function Yg(i){if(!i)return[];if(Jt(i))return Ws(i)?$r(i):Xt(i);if(Co&&i[Co])return h_(i[Co]());var s=Ft(i),f=s==ge?Zc:s==kt?ss:eo;return f(i)}function yn(i){if(!i)return i===0?i:0;if(i=Er(i),i===X||i===-X){var s=i<0?-1:1;return s*me}return i===i?i:0}function Ce(i){var s=yn(i),f=s%1;return s===s?f?s-f:s:0}function Kg(i){return i?hi(Ce(i),0,U):0}function Er(i){if(typeof i=="number")return i;if(sr(i))return L;if(ut(i)){var s=typeof i.valueOf=="function"?i.valueOf():i;i=ut(s)?s+"":s}if(typeof i!="string")return i===0?i:+i;i=hh(i);var f=mS.test(i);return f||yS.test(i)?XS(i.slice(2),f?2:8):vS.test(i)?L:+i}function Zg(i){return Yr(i,Qt(i))}function LA(i){return i?hi(Ce(i),-K,K):i===0?i:0}function He(i){return i==null?"":ar(i)}var zA=Zi(function(i,s){if(Ho(s)||Jt(s)){Yr(s,Pt(s),i);return}for(var f in s)Ke.call(s,f)&&Do(i,f,s[f])}),Xg=Zi(function(i,s){Yr(s,Qt(s),i)}),Bs=Zi(function(i,s,f,_){Yr(s,Qt(s),i,_)}),jA=Zi(function(i,s,f,_){Yr(s,Pt(s),i,_)}),FA=vn(ru);function HA(i,s){var f=Ki(i);return s==null?f:Rh(f,s)}var WA=Ne(function(i,s){i=et(i);var f=-1,_=s.length,O=_>2?s[2]:r;for(O&&qt(s[0],s[1],O)&&(_=1);++f<_;)for(var P=s[f],D=Qt(P),W=-1,G=D.length;++W<G;){var ie=D[W],oe=i[ie];(oe===r||zr(oe,qi[ie])&&!Ke.call(i,ie))&&(i[ie]=P[ie])}return i}),BA=Ne(function(i){return i.push(r,hg),ir(Jg,r,i)});function VA(i,s){return uh(i,_e(s,3),Gr)}function UA(i,s){return uh(i,_e(s,3),iu)}function qA(i,s){return i==null?i:nu(i,_e(s,3),Qt)}function GA(i,s){return i==null?i:Mh(i,_e(s,3),Qt)}function YA(i,s){return i&&Gr(i,_e(s,3))}function KA(i,s){return i&&iu(i,_e(s,3))}function ZA(i){return i==null?[]:Es(i,Pt(i))}function XA(i){return i==null?[]:Es(i,Qt(i))}function $u(i,s,f){var _=i==null?r:gi(i,s);return _===r?f:_}function JA(i,s){return i!=null&&mg(i,s,xE)}function Lu(i,s){return i!=null&&mg(i,s,SE)}var QA=cg(function(i,s,f){s!=null&&typeof s.toString!="function"&&(s=fs.call(s)),i[s]=f},ju(er)),eT=cg(function(i,s,f){s!=null&&typeof s.toString!="function"&&(s=fs.call(s)),Ke.call(i,s)?i[s].push(f):i[s]=[f]},_e),tT=Ne(Lo);function Pt(i){return Jt(i)?Ah(i):lu(i)}function Qt(i){return Jt(i)?Ah(i,!0):IE(i)}function rT(i,s){var f={};return s=_e(s,3),Gr(i,function(_,O,P){hn(f,s(_,O,P),_)}),f}function nT(i,s){var f={};return s=_e(s,3),Gr(i,function(_,O,P){hn(f,O,s(_,O,P))}),f}var iT=Zi(function(i,s,f){ks(i,s,f)}),Jg=Zi(function(i,s,f,_){ks(i,s,f,_)}),oT=vn(function(i,s){var f={};if(i==null)return f;var _=!1;s=st(s,function(P){return P=jn(P,i),_||(_=P.length>1),P}),Yr(i,Su(i),f),_&&(f=xr(f,h|g|y,QE));for(var O=s.length;O--;)hu(f,s[O]);return f});function aT(i,s){return Qg(i,Fs(_e(s)))}var sT=vn(function(i,s){return i==null?{}:ME(i,s)});function Qg(i,s){if(i==null)return{};var f=st(Su(i),function(_){return[_]});return s=_e(s),Vh(i,f,function(_,O){return s(_,O[0])})}function lT(i,s,f){s=jn(s,i);var _=-1,O=s.length;for(O||(O=1,i=r);++_<O;){var P=i==null?r:i[Kr(s[_])];P===r&&(_=O,P=f),i=bn(P)?P.call(i):P}return i}function cT(i,s,f){return i==null?i:jo(i,s,f)}function uT(i,s,f,_){return _=typeof _=="function"?_:r,i==null?i:jo(i,s,f,_)}var ev=dg(Pt),tv=dg(Qt);function fT(i,s,f){var _=Te(i),O=_||Hn(i)||Qi(i);if(s=_e(s,4),f==null){var P=i&&i.constructor;O?f=_?new P:[]:ut(i)?f=bn(P)?Ki(hs(i)):{}:f={}}return(O?br:Gr)(i,function(D,W,G){return s(f,D,W,G)}),f}function dT(i,s){return i==null?!0:hu(i,s)}function pT(i,s,f){return i==null?i:Kh(i,s,mu(f))}function hT(i,s,f,_){return _=typeof _=="function"?_:r,i==null?i:Kh(i,s,mu(f),_)}function eo(i){return i==null?[]:Kc(i,Pt(i))}function gT(i){return i==null?[]:Kc(i,Qt(i))}function vT(i,s,f){return f===r&&(f=s,s=r),f!==r&&(f=Er(f),f=f===f?f:0),s!==r&&(s=Er(s),s=s===s?s:0),hi(Er(i),s,f)}function mT(i,s,f){return s=yn(s),f===r?(f=s,s=0):f=yn(f),i=Er(i),_E(i,s,f)}function bT(i,s,f){if(f&&typeof f!="boolean"&&qt(i,s,f)&&(s=f=r),f===r&&(typeof s=="boolean"?(f=s,s=r):typeof i=="boolean"&&(f=i,i=r)),i===r&&s===r?(i=0,s=1):(i=yn(i),s===r?(s=i,i=0):s=yn(s)),i>s){var _=i;i=s,s=_}if(f||i%1||s%1){var O=kh();return jt(i+O*(s-i+ZS("1e-"+((O+"").length-1))),s)}return fu(i,s)}var yT=Xi(function(i,s,f){return s=s.toLowerCase(),i+(f?rv(s):s)});function rv(i){return zu(He(i).toLowerCase())}function nv(i){return i=He(i),i&&i.replace(xS,c_).replace(FS,"")}function wT(i,s,f){i=He(i),s=ar(s);var _=i.length;f=f===r?_:hi(Ce(f),0,_);var O=f;return f-=s.length,f>=0&&i.slice(f,O)==s}function xT(i){return i=He(i),i&&tS.test(i)?i.replace(Mp,u_):i}function ST(i){return i=He(i),i&&sS.test(i)?i.replace(Nc,"\\$&"):i}var _T=Xi(function(i,s,f){return i+(f?"-":"")+s.toLowerCase()}),ET=Xi(function(i,s,f){return i+(f?" ":"")+s.toLowerCase()}),kT=ag("toLowerCase");function OT(i,s,f){i=He(i),s=Ce(s);var _=s?Vi(i):0;if(!s||_>=s)return i;var O=(s-_)/2;return Ps(bs(O),f)+i+Ps(ms(O),f)}function AT(i,s,f){i=He(i),s=Ce(s);var _=s?Vi(i):0;return s&&_<s?i+Ps(s-_,f):i}function TT(i,s,f){i=He(i),s=Ce(s);var _=s?Vi(i):0;return s&&_<s?Ps(s-_,f)+i:i}function RT(i,s,f){return f||s==null?s=0:s&&(s=+s),$_(He(i).replace(Mc,""),s||0)}function CT(i,s,f){return(f?qt(i,s,f):s===r)?s=1:s=Ce(s),du(He(i),s)}function PT(){var i=arguments,s=He(i[0]);return i.length<3?s:s.replace(i[1],i[2])}var IT=Xi(function(i,s,f){return i+(f?"_":"")+s.toLowerCase()});function NT(i,s,f){return f&&typeof f!="number"&&qt(i,s,f)&&(s=f=r),f=f===r?U:f>>>0,f?(i=He(i),i&&(typeof s=="string"||s!=null&&!Du(s))&&(s=ar(s),!s&&Bi(i))?Fn($r(i),0,f):i.split(s,f)):[]}var MT=Xi(function(i,s,f){return i+(f?" ":"")+zu(s)});function DT(i,s,f){return i=He(i),f=f==null?0:hi(Ce(f),0,i.length),s=ar(s),i.slice(f,f+s.length)==s}function $T(i,s,f){var _=T.templateSettings;f&&qt(i,s,f)&&(s=r),i=He(i),s=Bs({},s,_,pg);var O=Bs({},s.imports,_.imports,pg),P=Pt(O),D=Kc(O,P),W,G,ie=0,oe=s.interpolate||rs,le="__p += '",ve=Xc((s.escape||rs).source+"|"+oe.source+"|"+(oe===Dp?gS:rs).source+"|"+(s.evaluate||rs).source+"|$","g"),xe="//# sourceURL="+(Ke.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++US+"]")+`
183
+ `;i.replace(ve,function(ke,De,Le,lr,Gt,cr){return Le||(Le=lr),le+=i.slice(ie,cr).replace(SS,f_),De&&(W=!0,le+=`' +
184
+ __e(`+De+`) +
185
+ '`),Gt&&(G=!0,le+=`';
186
+ `+Gt+`;
187
+ __p += '`),Le&&(le+=`' +
188
+ ((__t = (`+Le+`)) == null ? '' : __t) +
189
+ '`),ie=cr+ke.length,ke}),le+=`';
190
+ `;var Ee=Ke.call(s,"variable")&&s.variable;if(!Ee)le=`with (obj) {
191
+ `+le+`
194
192
  }
195
- `;else if(hw.test(he))throw new we(c);ee=(z?ee.replace(J0,""):ee).replace(Q0,"$1").replace(ew,"$1;"),ee="function("+(he||"obj")+`) {
196
- `+(he?"":`obj || (obj = {});
197
- `)+"var __t, __p = ''"+(I?", __e = _.escape":"")+(z?`, __j = Array.prototype.join;
193
+ `;else if(pS.test(Ee))throw new Ae(c);le=(G?le.replace(X1,""):le).replace(J1,"$1").replace(Q1,"$1;"),le="function("+(Ee||"obj")+`) {
194
+ `+(Ee?"":`obj || (obj = {});
195
+ `)+"var __t, __p = ''"+(W?", __e = _.escape":"")+(G?`, __j = Array.prototype.join;
198
196
  function print() { __p += __j.call(arguments, '') }
199
197
  `:`;
200
- `)+ee+`return __p
201
- }`;var Se=hh(function(){return Pe(A,le+"return "+ee).apply(r,P)});if(Se.source=ee,pl(Se))throw Se;return Se}function N_(n){return ke(n).toLowerCase()}function j_(n){return ke(n).toUpperCase()}function z_(n,o,l){if(n=ke(n),n&&(l||o===r))return Ed(n);if(!n||!(o=zt(o)))return n;var w=cr(n),_=cr(o),A=_d(w,_),P=Od(w,_)+1;return ln(w,A,P).join("")}function B_(n,o,l){if(n=ke(n),n&&(l||o===r))return n.slice(0,Ad(n)+1);if(!n||!(o=zt(o)))return n;var w=cr(n),_=Od(w,cr(o))+1;return ln(w,0,_).join("")}function W_(n,o,l){if(n=ke(n),n&&(l||o===r))return n.replace(pu,"");if(!n||!(o=zt(o)))return n;var w=cr(n),_=_d(w,cr(o));return ln(w,_).join("")}function H_(n,o){var l=G,w=j;if(Ye(o)){var _="separator"in o?o.separator:_;l="length"in o?xe(o.length):l,w="omission"in o?zt(o.omission):w}n=ke(n);var A=n.length;if(ri(n)){var P=cr(n);A=P.length}if(l>=A)return n;var I=l-ni(w);if(I<1)return w;var z=P?ln(P,0,I).join(""):n.slice(0,I);if(_===r)return z+w;if(P&&(I+=z.length-I),hl(_)){if(n.slice(I).search(_)){var V,X=z;for(_.global||(_=Cu(_.source,ke(qf.exec(_))+"g")),_.lastIndex=0;V=_.exec(X);)var ee=V.index;z=z.slice(0,ee===r?I:ee)}}else if(n.indexOf(zt(_),I)!=I){var oe=z.lastIndexOf(_);oe>-1&&(z=z.slice(0,oe))}return z+w}function U_(n){return n=ke(n),n&&tw.test(n)?n.replace(Wf,wb):n}var q_=ci(function(n,o,l){return n+(l?" ":"")+o.toUpperCase()}),vl=gp("toUpperCase");function ph(n,o,l){return n=ke(n),o=l?r:o,o===r?hb(n)?Sb(n):ob(n):n.match(o)||[]}var hh=_e(function(n,o){try{return Nt(n,r,o)}catch(l){return pl(l)?l:new we(l)}}),Z_=zr(function(n,o){return Xt(o,function(l){l=Sr(l),Nr(n,l,fl(n[l],n))}),n});function G_(n){var o=n==null?0:n.length,l=pe();return n=o?Ze(n,function(w){if(typeof w[1]!="function")throw new Jt(u);return[l(w[0]),w[1]]}):[],_e(function(w){for(var _=-1;++_<o;){var A=n[_];if(Nt(A[0],this,w))return Nt(A[1],this,w)}})}function K_(n){return w1(er(n,v))}function yl(n){return function(){return n}}function V_(n,o){return n==null||n!==n?o:n}var Y_=vp(),X_=vp(!0);function Lt(n){return n}function wl(n){return Gd(typeof n=="function"?n:er(n,v))}function J_(n){return Vd(er(n,v))}function Q_(n,o){return Yd(n,er(o,v))}var eO=_e(function(n,o){return function(l){return Bi(l,n,o)}}),tO=_e(function(n,o){return function(l){return Bi(n,l,o)}});function bl(n,o,l){var w=dt(o),_=xs(o,w);l==null&&!(Ye(o)&&(_.length||!w.length))&&(l=o,o=n,n=this,_=xs(o,dt(o)));var A=!(Ye(l)&&"chain"in l)||!!l.chain,P=Wr(n);return Xt(_,function(I){var z=o[I];n[I]=z,P&&(n.prototype[I]=function(){var V=this.__chain__;if(A||V){var X=n(this.__wrapped__),ee=X.__actions__=kt(this.__actions__);return ee.push({func:z,args:arguments,thisArg:n}),X.__chain__=V,X}return z.apply(n,rn([this.value()],arguments))})}),n}function rO(){return ht._===this&&(ht._=Rb),this}function xl(){}function nO(n){return n=xe(n),_e(function(o){return Xd(o,n)})}var iO=Ju(Ze),oO=Ju(yd),sO=Ju(Eu);function gh(n){return ol(n)?_u(Sr(n)):D1(n)}function aO(n){return function(o){return n==null?r:Cn(n,o)}}var uO=wp(),lO=wp(!0);function Sl(){return[]}function El(){return!1}function cO(){return{}}function fO(){return""}function dO(){return!0}function pO(n,o){if(n=xe(n),n<1||n>te)return[];var l=Q,w=xt(n,Q);o=pe(o),n-=Q;for(var _=Au(w,o);++l<n;)o(l);return _}function hO(n){return be(n)?Ze(n,Sr):Bt(n)?[n]:kt(Mp(ke(n)))}function gO(n){var o=++Tb;return ke(n)+o}var mO=As(function(n,o){return n+o},0),vO=Qu("ceil"),yO=As(function(n,o){return n/o},1),wO=Qu("floor");function bO(n){return n&&n.length?bs(n,Lt,Nu):r}function xO(n,o){return n&&n.length?bs(n,pe(o,2),Nu):r}function SO(n){return xd(n,Lt)}function EO(n,o){return xd(n,pe(o,2))}function _O(n){return n&&n.length?bs(n,Lt,Wu):r}function OO(n,o){return n&&n.length?bs(n,pe(o,2),Wu):r}var TO=As(function(n,o){return n*o},1),AO=Qu("round"),RO=As(function(n,o){return n-o},0);function PO(n){return n&&n.length?Tu(n,Lt):0}function CO(n,o){return n&&n.length?Tu(n,pe(o,2)):0}return T.after=JS,T.ary=Zp,T.assign=jE,T.assignIn=sh,T.assignInWith=zs,T.assignWith=zE,T.at=BE,T.before=Gp,T.bind=fl,T.bindAll=Z_,T.bindKey=Kp,T.castArray=cE,T.chain=Hp,T.chunk=wx,T.compact=bx,T.concat=xx,T.cond=G_,T.conforms=K_,T.constant=yl,T.countBy=PS,T.create=WE,T.curry=Vp,T.curryRight=Yp,T.debounce=Xp,T.defaults=HE,T.defaultsDeep=UE,T.defer=QS,T.delay=eE,T.difference=Sx,T.differenceBy=Ex,T.differenceWith=_x,T.drop=Ox,T.dropRight=Tx,T.dropRightWhile=Ax,T.dropWhile=Rx,T.fill=Px,T.filter=kS,T.flatMap=LS,T.flatMapDeep=MS,T.flatMapDepth=DS,T.flatten=jp,T.flattenDeep=Cx,T.flattenDepth=kx,T.flip=tE,T.flow=Y_,T.flowRight=X_,T.fromPairs=$x,T.functions=XE,T.functionsIn=JE,T.groupBy=FS,T.initial=Lx,T.intersection=Mx,T.intersectionBy=Dx,T.intersectionWith=Fx,T.invert=e_,T.invertBy=t_,T.invokeMap=jS,T.iteratee=wl,T.keyBy=zS,T.keys=dt,T.keysIn=It,T.map=Ls,T.mapKeys=n_,T.mapValues=i_,T.matches=J_,T.matchesProperty=Q_,T.memoize=Ds,T.merge=o_,T.mergeWith=ah,T.method=eO,T.methodOf=tO,T.mixin=bl,T.negate=Fs,T.nthArg=nO,T.omit=s_,T.omitBy=a_,T.once=rE,T.orderBy=BS,T.over=iO,T.overArgs=nE,T.overEvery=oO,T.overSome=sO,T.partial=dl,T.partialRight=Jp,T.partition=WS,T.pick=u_,T.pickBy=uh,T.property=gh,T.propertyOf=aO,T.pull=Bx,T.pullAll=Bp,T.pullAllBy=Wx,T.pullAllWith=Hx,T.pullAt=Ux,T.range=uO,T.rangeRight=lO,T.rearg=iE,T.reject=qS,T.remove=qx,T.rest=oE,T.reverse=ll,T.sampleSize=GS,T.set=c_,T.setWith=f_,T.shuffle=KS,T.slice=Zx,T.sortBy=XS,T.sortedUniq=Qx,T.sortedUniqBy=eS,T.split=L_,T.spread=sE,T.tail=tS,T.take=rS,T.takeRight=nS,T.takeRightWhile=iS,T.takeWhile=oS,T.tap=bS,T.throttle=aE,T.thru=Is,T.toArray=nh,T.toPairs=lh,T.toPairsIn=ch,T.toPath=hO,T.toPlainObject=oh,T.transform=d_,T.unary=uE,T.union=sS,T.unionBy=aS,T.unionWith=uS,T.uniq=lS,T.uniqBy=cS,T.uniqWith=fS,T.unset=p_,T.unzip=cl,T.unzipWith=Wp,T.update=h_,T.updateWith=g_,T.values=pi,T.valuesIn=m_,T.without=dS,T.words=ph,T.wrap=lE,T.xor=pS,T.xorBy=hS,T.xorWith=gS,T.zip=mS,T.zipObject=vS,T.zipObjectDeep=yS,T.zipWith=wS,T.entries=lh,T.entriesIn=ch,T.extend=sh,T.extendWith=zs,bl(T,T),T.add=mO,T.attempt=hh,T.camelCase=b_,T.capitalize=fh,T.ceil=vO,T.clamp=v_,T.clone=fE,T.cloneDeep=pE,T.cloneDeepWith=hE,T.cloneWith=dE,T.conformsTo=gE,T.deburr=dh,T.defaultTo=V_,T.divide=yO,T.endsWith=x_,T.eq=dr,T.escape=S_,T.escapeRegExp=E_,T.every=CS,T.find=$S,T.findIndex=Fp,T.findKey=qE,T.findLast=IS,T.findLastIndex=Np,T.findLastKey=ZE,T.floor=wO,T.forEach=Up,T.forEachRight=qp,T.forIn=GE,T.forInRight=KE,T.forOwn=VE,T.forOwnRight=YE,T.get=gl,T.gt=mE,T.gte=vE,T.has=QE,T.hasIn=ml,T.head=zp,T.identity=Lt,T.includes=NS,T.indexOf=Ix,T.inRange=y_,T.invoke=r_,T.isArguments=In,T.isArray=be,T.isArrayBuffer=yE,T.isArrayLike=$t,T.isArrayLikeObject=rt,T.isBoolean=wE,T.isBuffer=cn,T.isDate=bE,T.isElement=xE,T.isEmpty=SE,T.isEqual=EE,T.isEqualWith=_E,T.isError=pl,T.isFinite=OE,T.isFunction=Wr,T.isInteger=Qp,T.isLength=Ns,T.isMap=eh,T.isMatch=TE,T.isMatchWith=AE,T.isNaN=RE,T.isNative=PE,T.isNil=kE,T.isNull=CE,T.isNumber=th,T.isObject=Ye,T.isObjectLike=et,T.isPlainObject=Gi,T.isRegExp=hl,T.isSafeInteger=$E,T.isSet=rh,T.isString=js,T.isSymbol=Bt,T.isTypedArray=di,T.isUndefined=IE,T.isWeakMap=LE,T.isWeakSet=ME,T.join=Nx,T.kebabCase=__,T.last=rr,T.lastIndexOf=jx,T.lowerCase=O_,T.lowerFirst=T_,T.lt=DE,T.lte=FE,T.max=bO,T.maxBy=xO,T.mean=SO,T.meanBy=EO,T.min=_O,T.minBy=OO,T.stubArray=Sl,T.stubFalse=El,T.stubObject=cO,T.stubString=fO,T.stubTrue=dO,T.multiply=TO,T.nth=zx,T.noConflict=rO,T.noop=xl,T.now=Ms,T.pad=A_,T.padEnd=R_,T.padStart=P_,T.parseInt=C_,T.random=w_,T.reduce=HS,T.reduceRight=US,T.repeat=k_,T.replace=$_,T.result=l_,T.round=AO,T.runInContext=N,T.sample=ZS,T.size=VS,T.snakeCase=I_,T.some=YS,T.sortedIndex=Gx,T.sortedIndexBy=Kx,T.sortedIndexOf=Vx,T.sortedLastIndex=Yx,T.sortedLastIndexBy=Xx,T.sortedLastIndexOf=Jx,T.startCase=M_,T.startsWith=D_,T.subtract=RO,T.sum=PO,T.sumBy=CO,T.template=F_,T.times=pO,T.toFinite=Hr,T.toInteger=xe,T.toLength=ih,T.toLower=N_,T.toNumber=nr,T.toSafeInteger=NE,T.toString=ke,T.toUpper=j_,T.trim=z_,T.trimEnd=B_,T.trimStart=W_,T.truncate=H_,T.unescape=U_,T.uniqueId=gO,T.upperCase=q_,T.upperFirst=vl,T.each=Up,T.eachRight=qp,T.first=zp,bl(T,(function(){var n={};return br(T,function(o,l){Fe.call(T.prototype,l)||(n[l]=o)}),n})(),{chain:!1}),T.VERSION=i,Xt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){T[n].placeholder=T}),Xt(["drop","take"],function(n,o){Ae.prototype[n]=function(l){l=l===r?1:lt(xe(l),0);var w=this.__filtered__&&!o?new Ae(this):this.clone();return w.__filtered__?w.__takeCount__=xt(l,w.__takeCount__):w.__views__.push({size:xt(l,Q),type:n+(w.__dir__<0?"Right":"")}),w},Ae.prototype[n+"Right"]=function(l){return this.reverse()[n](l).reverse()}}),Xt(["filter","map","takeWhile"],function(n,o){var l=o+1,w=l==q||l==J;Ae.prototype[n]=function(_){var A=this.clone();return A.__iteratees__.push({iteratee:pe(_,3),type:l}),A.__filtered__=A.__filtered__||w,A}}),Xt(["head","last"],function(n,o){var l="take"+(o?"Right":"");Ae.prototype[n]=function(){return this[l](1).value()[0]}}),Xt(["initial","tail"],function(n,o){var l="drop"+(o?"":"Right");Ae.prototype[n]=function(){return this.__filtered__?new Ae(this):this[l](1)}}),Ae.prototype.compact=function(){return this.filter(Lt)},Ae.prototype.find=function(n){return this.filter(n).head()},Ae.prototype.findLast=function(n){return this.reverse().find(n)},Ae.prototype.invokeMap=_e(function(n,o){return typeof n=="function"?new Ae(this):this.map(function(l){return Bi(l,n,o)})}),Ae.prototype.reject=function(n){return this.filter(Fs(pe(n)))},Ae.prototype.slice=function(n,o){n=xe(n);var l=this;return l.__filtered__&&(n>0||o<0)?new Ae(l):(n<0?l=l.takeRight(-n):n&&(l=l.drop(n)),o!==r&&(o=xe(o),l=o<0?l.dropRight(-o):l.take(o-n)),l)},Ae.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Ae.prototype.toArray=function(){return this.take(Q)},br(Ae.prototype,function(n,o){var l=/^(?:filter|find|map|reject)|While$/.test(o),w=/^(?:head|last)$/.test(o),_=T[w?"take"+(o=="last"?"Right":""):o],A=w||/^find/.test(o);_&&(T.prototype[o]=function(){var P=this.__wrapped__,I=w?[1]:arguments,z=P instanceof Ae,V=I[0],X=z||be(P),ee=function(Oe){var Re=_.apply(T,rn([Oe],I));return w&&oe?Re[0]:Re};X&&l&&typeof V=="function"&&V.length!=1&&(z=X=!1);var oe=this.__chain__,le=!!this.__actions__.length,he=A&&!oe,Se=z&&!le;if(!A&&X){P=Se?P:new Ae(this);var ge=n.apply(P,I);return ge.__actions__.push({func:Is,args:[ee],thisArg:r}),new Qt(ge,oe)}return he&&Se?n.apply(this,I):(ge=this.thru(ee),he?w?ge.value()[0]:ge.value():ge)})}),Xt(["pop","push","shift","sort","splice","unshift"],function(n){var o=os[n],l=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",w=/^(?:pop|shift)$/.test(n);T.prototype[n]=function(){var _=arguments;if(w&&!this.__chain__){var A=this.value();return o.apply(be(A)?A:[],_)}return this[l](function(P){return o.apply(be(P)?P:[],_)})}}),br(Ae.prototype,function(n,o){var l=T[o];if(l){var w=l.name+"";Fe.call(ai,w)||(ai[w]=[]),ai[w].push({name:o,func:l})}}),ai[Ts(r,m).name]=[{name:"wrapper",func:r}],Ae.prototype.clone=Ub,Ae.prototype.reverse=qb,Ae.prototype.value=Zb,T.prototype.at=xS,T.prototype.chain=SS,T.prototype.commit=ES,T.prototype.next=_S,T.prototype.plant=TS,T.prototype.reverse=AS,T.prototype.toJSON=T.prototype.valueOf=T.prototype.value=RS,T.prototype.first=T.prototype.head,Li&&(T.prototype[Li]=OS),T}),ii=Eb();On?((On.exports=ii)._=ii,wu._=ii):ht._=ii}).call(f$)})(xo,xo.exports)),xo.exports}var Ne=d$();const kc={FdSave:ot.FdSave,FdWarningDanger:ot.FdWarningDanger,FdInfoCircle:ot.FdInfoCircle,FdInfoBold:ot.FdInfoBold};var xf=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(xf||{}),Un=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(Un||{}),yi=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(yi||{});const jy={[Un.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[Un.DANGER]:{icon:"red-500",button:"primary-dark"},[Un.WARNING]:{icon:"yellow-400",button:"primary-dark"}},rc=({color:e=Un.PRIMARY,variant:t="solid",children:r,autoFocus:i,...s})=>{const a=jy[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 D.jsx("button",{autoFocus:i,className:je("w-16 rounded px-2 py-1 text-xs font-medium hover:font-bold focus:outline-none",u),...s,children:r})},p$=({name:e,color:t=Un.PRIMARY,className:r="w-8 h-8"})=>{const i=kc[e]||kc.FdInfoCircle,s=`text-${jy[t].icon}`;return D.jsx(i,{className:je(r,s)})},h$=({id:e,title:t,message:r,icon:i,type:s,color:a,zIndex:u=3e3,views:c,width:f=520,hasOverlay:g=!0,container:h,onClose:v,onEdit:p})=>{const y=b=>{v({id:e,reason:b})};B.useEffect(()=>{function b(m){m.key==="Escape"&&y(yi.CANCELED)}return window.addEventListener("keyup",b),()=>{window.removeEventListener("keyup",b)}},[]);const x=Ne.merge(Ne.values(c==null?void 0:c.toggles).flatMap(b=>b.value?b.warnings||[]:[]),c==null?void 0:c.tips),d=(b,m)=>{var E;if(!(c!=null&&c.toggles))return;const S=Ne.cloneDeep(c);(E=S.toggles)!=null&&E[b]&&(S.toggles[b].value=m),p({id:e,views:S})};return Pi.createPortal(D.jsx(_a,{appear:!0,show:!0,as:B.Fragment,children:D.jsx("div",{className:je("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":g}),style:{zIndex:u},onClick:()=>y(yi.CANCELED),children:D.jsx(_a.Child,{as:B.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:D.jsx("div",{"data-cy":"confirmation-modal-cy",className:"relative rounded-md border border-grey-50 bg-grey-900",style:{width:f},onClick:b=>b.stopPropagation(),children:D.jsxs("div",{className:"flex flex-col items-center gap-3 p-6 px-12",children:[i?D.jsx("div",{className:"flex items-center justify-center",children:D.jsx(p$,{name:i,color:a,className:"w-6 h-6"})}):null,D.jsx(g$,{condition:t,children:D.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-white text-center",children:t})}),D.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium text-white",children:r}),D.jsx("div",{className:"text-xs text-white",children:Ne.values(c==null?void 0:c.toggles).map(b=>D.jsx("div",{children:D.jsxs("label",{htmlFor:b.key,className:"flex items-center",children:[D.jsx(Ey,{size:"xs",value:b.value,onChange:m=>d(b.key,m)}),D.jsx("span",{className:"ml-1",children:b.title})]})},b.key))}),D.jsx(m$,{warnings:x}),D.jsx("div",{className:"flex items-center gap-4",children:s===xf.CONFIRM?D.jsxs(D.Fragment,{children:[D.jsx(rc,{autoFocus:!0,color:a,onClick:()=>y(yi.CONFIRMED),children:"Confirm"}),D.jsx(rc,{color:a,variant:"outlined",onClick:()=>y(yi.CANCELED),children:"Cancel"})]}):D.jsx(rc,{autoFocus:!0,onClick:()=>y(),children:"OK"})})]})})})})}),h||document.body)},g$=e=>e.condition?D.jsx(D.Fragment,{children:e.children}):null,m$=e=>e.warnings?D.jsx(_a,{appear:!0,show:!!e.warnings.length,as:B.Fragment,children:D.jsx("div",{className:"flex flex-col gap-1 rounded-sm bg-grey-600 p-2 text-xs text-white",children:e.warnings.map((t,r)=>D.jsx(_a.Child,{as:B.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:D.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[D.jsx(ot.FdWarningDanger,{className:je({"h-3 w-3":!0,"text-yellow-500":t.type==="warning","text-red-400":t.type==="error","text-primary-dark":t.type==="info"},"mr-3")}),D.jsx("div",{className:"flex-1",children:t.message})]})},`modal-warnings-${r}`))})}):null;var zy=(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))(zy||{});const v$=({zoom:e,minZoom:t=.5,maxZoom:r=10,handleZoomIn:i,handleZoomOut:s})=>D.jsxs("div",{className:"flex items-center rounded bg-grey-300 p-1",children:[D.jsx(ot.FdMinusNaked,{onClick:s,className:je("h-5 w-5 p-1",{"text-grey-200":e<=t,"cursor-pointer rounded hover:bg-purple-800":e>t})}),D.jsxs("span",{className:"mx-1 w-10 select-none text-center text-xs",children:[(e*100).toFixed(0),"%"]}),D.jsx(ot.FdPlusNaked,{onClick:i,className:je("h-5 w-5 p-1",{"text-grey-200":e>=r,"cursor-pointer rounded hover:bg-purple-800":e<r})})]}),y$=$.forwardRef(((e,t)=>$.createElement(Sn.span,Qe({},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}})))),w$=y$;function Sm(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[By]=tf("Tooltip",[Ha]),Sf=Ha(),b$=700,[Z2,x$]=By("TooltipProvider",{isOpenDelayed:!0,delayDuration:b$,onOpen:()=>{},onClose:()=>{}}),[S$,Va]=By("Tooltip"),E$=e=>{const{__scopeTooltip:t,children:r,open:i,defaultOpen:s=!1,onOpenChange:a,delayDuration:u}=e,c=x$("Tooltip",t),f=Sf(t),[g,h]=$.useState(null),v=zv(),p=$.useRef(0),y=u??c.delayDuration,x=$.useRef(!1),{onOpen:d,onClose:b}=c,[m=!1,S]=Jv({prop:i,defaultProp:s,onChange:k=>{k&&(document.dispatchEvent(new CustomEvent("tooltip.open")),d()),a==null||a(k)}}),E=$.useMemo((()=>m?x.current?"delayed-open":"instant-open":"closed"),[m]),R=$.useCallback((()=>{window.clearTimeout(p.current),x.current=!1,S(!0)}),[S]),O=$.useCallback((()=>{window.clearTimeout(p.current),p.current=window.setTimeout((()=>{x.current=!0,S(!0)}),y)}),[y,S]);return $.useEffect((()=>()=>window.clearTimeout(p.current)),[]),$.createElement(Vv,f,$.createElement(S$,{scope:t,contentId:v,open:m,stateAttribute:E,trigger:g,onTriggerChange:h,onTriggerEnter:$.useCallback((()=>{c.isOpenDelayed?O():R()}),[c.isOpenDelayed,O,R]),onOpen:$.useCallback(R,[R]),onClose:$.useCallback((()=>{window.clearTimeout(p.current),S(!1),b()}),[S,b])},r))},_$=$.forwardRef(((e,t)=>{const{__scopeTooltip:r,...i}=e,s=Va("TooltipTrigger",r),a=Sf(r),u=xn(t,s.onTriggerChange),c=$.useRef(!1),f=$.useCallback((()=>c.current=!1),[]);return $.useEffect((()=>()=>document.removeEventListener("mouseup",f)),[f]),$.createElement(Yv,Qe({asChild:!0},a),$.createElement(Sn.button,Qe({"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute},i,{ref:u,onMouseEnter:qt(e.onMouseEnter,s.onTriggerEnter),onMouseLeave:qt(e.onMouseLeave,s.onClose),onMouseDown:qt(e.onMouseDown,(()=>{s.onClose(),c.current=!0,document.addEventListener("mouseup",f,{once:!0})})),onFocus:qt(e.onFocus,(()=>{c.current||s.onOpen()})),onBlur:qt(e.onBlur,s.onClose),onClick:qt(e.onClick,(g=>{g.detail===0&&s.onClose()}))})))})),O$=$.forwardRef(((e,t)=>{const{forceMount:r,...i}=e,s=Va("TooltipContent",e.__scopeTooltip);return $.createElement(Qc,{present:r||s.open},$.createElement(T$,Qe({ref:t},i)))})),T$=$.forwardRef(((e,t)=>{const{__scopeTooltip:r,children:i,"aria-label":s,portalled:a=!0,...u}=e,c=Va("TooltipContent",r),f=Sf(r),g=a?ef:$.Fragment,{onClose:h}=c;return Uv((()=>h())),$.useEffect((()=>(document.addEventListener("tooltip.open",h),()=>document.removeEventListener("tooltip.open",h))),[h]),$.createElement(g,null,$.createElement(A$,{__scopeTooltip:r}),$.createElement(Xv,Qe({"data-state":c.stateAttribute},f,u,{ref:t,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),$.createElement(Hv,null,i),$.createElement(w$,{id:c.contentId,role:"tooltip"},s||i)))}));function A$(e){const{__scopeTooltip:t}=e,r=Va("CheckTriggerMoved",t),i=Zv(r.trigger),s=i==null?void 0:i.left,a=Sm(s),u=i==null?void 0:i.top,c=Sm(u),f=r.onClose;return $.useEffect((()=>{(a!==void 0&&a!==s||c!==void 0&&c!==u)&&f()}),[f,a,c,s,u]),null}const R$=E$,P$=_$,C$=O$;function k$(e){return D.jsxs(R$,{delayDuration:e.delayDuration,open:e.open,children:[D.jsx(P$,{tabIndex:-1,asChild:!0,children:D.jsx("span",{children:e.children})}),D.jsxs(C$,{side:e.side,sideOffset:e.sideOffset,alignOffset:e.alignOffset,children:[typeof e.message=="string"&&D.jsx("p",{className:"max-w-[240px] rounded-md bg-primary-light px-1 py-2 text-s font-semibold text-primary-dark",children:e.message}),typeof e.message!="string"&&e.message]})]})}const Fn=30,ma=500,$$=()=>D.jsx("div",{className:"h-2 w-full bg-opacity-40 hover:bg-primary-hover"}),I$=e=>{const[t,r]=B.useState(Fn),i=B.useRef(),s=t>Fn,a=B.useRef(null);return B.useEffect(()=>{e.isOpen&&!s&&r(ma),!e.isOpen&&s&&r(Fn)},[e.isOpen]),D.jsxs("div",{className:"relative w-full select-none isolate",style:{zIndex:49},children:[D.jsx(IO.Resizable,{enable:{top:!0,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},className:"w-full select-none border-t border-grey-900 bg-grey-800",size:{height:t,width:"100%"},maxHeight:700,minHeight:Fn,onResizeStart:()=>{i.current&&Date.now()-i.current<200?r(s?Fn:ma):i.current=Date.now()},onResize:(u,c,f)=>{a.current&&cancelAnimationFrame(a.current),a.current=requestAnimationFrame(()=>{var g;(g=e.onResize)==null||g.call(e),a.current=null})},onResizeStop:(u,c,f,g)=>{r(t+g.height)},handleComponent:{top:D.jsx($$,{})}}),D.jsxs("div",{"data-cy":"contextualPanel",className:"absolute inset-0 flex flex-col overflow-hidden",id:`__cp-${Ne.kebabCase(e.path)}`,children:[D.jsxs("div",{className:je("flex justify-between items-center px-3 py-0.5",{"flex-1":!s}),children:[D.jsxs("div",{className:"group flex items-center justify-start",children:[D.jsx("span",{className:"mr-2 text-sm text-fd-gray-lighter",children:"Contextual panel"}),D.jsx("span",{}),e.tipKey?D.jsx(fy,{tipKey:e.tipKey,alwaysOn:!0,asButton:!0}):null,D.jsx("button",{className:"rounded p-1 text-white hover:bg-primary-hover focus:outline-none",onClick:()=>{s?(r(Fn),e.onClose()):(r(ma),e.onOpen())},children:s?D.jsx(ot.FdDoubleArrowDown,{className:"h-4 w-4 text-white"}):D.jsx(ot.FdDoubleArrowUp,{className:"h-4 w-4 text-white"})})]}),e.headerRightSide]}),D.jsxs(da,{of:s,children:[D.jsx(da,{of:e.render,children:e.render}),D.jsx(da,{of:!e.render,children:e.children})]})]})]})};function Wy({children:e,viewBox:t="0 0 24 24",...r}){return D.jsx("svg",{viewBox:t,width:"1em",height:"1em",fill:"none",className:"base-icon",...Ne.omit(r,"isIndeterminate","isChecked"),children:e})}function Hy(e){const t=e.isIndeterminate?"M2 12h20":"M4 11.5L9 17L20 6";return D.jsx(Wy,{viewBox:"0 0 24 24",...e,children:D.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",d:t})})}function L$({isChecked:e,isIndeterminate:t,isInvalid:r,icon:i,label:s,className:a="",style:u,...c}){const f=B.useRef(null),g=i||D.jsx(Hy,{}),h=c.checked??e;B.useEffect(()=>{f.current&&(f.current.indeterminate=!!t)},[t]);const v=h||t,p=["base-checkbox-container",a].join(" ");return D.jsxs("label",{className:p,style:u,"data-invalid":r,children:[D.jsx("input",{ref:f,type:"checkbox",className:"base-checkbox-input",checked:h,...c,"aria-invalid":r||void 0}),D.jsx("span",{className:"base-checkbox-control",children:v&&g&&B.cloneElement(g,{isChecked:h,isIndeterminate:t,className:"base-checkbox-icon"})}),s&&D.jsx("span",{className:"base-checkbox-label",children:s})]})}const M$=B.forwardRef(({label:e,Icon:t,as:r="button",className:i="",disableHover:s=!1,iconClassname:a,...u},c)=>{const[f,g]=B.useState(null),[h,v]=B.useState(!1);return B.useImperativeHandle(c,()=>f,[f]),D.jsxs(D.Fragment,{children:[D.jsx(r,{ref:g,className:je("rounded p-1 text-white focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",{"hover:bg-primary-hover":!s},i),onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),onMouseDown:()=>v(!1),...u,children:D.jsx(t,{className:je("h-4 w-4",a)})}),h&&Pi.createPortal(D.jsx(Fy,{label:e,referenceElement:f}),document.body)]})});function D$(e,t){const r=B.useRef(!1);B.useEffect(()=>{if(r.current)return e();r.current=!0},t)}const nc=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function ic(e,t,r,i){e.addEventListener?e.addEventListener(t,r,i):e.attachEvent&&e.attachEvent("on".concat(t),r)}function yo(e,t,r,i){e.removeEventListener?e.removeEventListener(t,r,i):e.detachEvent&&e.detachEvent("on".concat(t),r)}function Uy(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 qy(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 F$(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 Lo={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,"-":nc?173:189,"=":nc?61:187,";":nc?59:186,"'":222,"{":219,"}":221,"[":219,"]":221,"\\":220},yr={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,meta:91,command:91},So={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},Je={};for(let e=1;e<20;e++)Lo["f".concat(e)]=111+e;let Ke=[],Co=null,Zy="all";const Zr=new Map,Ci=e=>Lo[e.toLowerCase()]||yr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),N$=e=>Object.keys(Lo).find(t=>Lo[t]===e),j$=e=>Object.keys(yr).find(t=>yr[t]===e);function Gy(e){Zy=e||"all"}function Mo(){return Zy||"all"}function z$(){return Ke.slice(0)}function B$(){return Ke.map(e=>N$(e)||j$(e)||String.fromCharCode(e))}function W$(){const e=[];return Object.keys(Je).forEach(t=>{Je[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(c=>Ci(c))})})}),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=Ci(e)),Ke.indexOf(e)!==-1}function q$(e,t){let r,i;e||(e=Mo());for(const s in Je)if(Object.prototype.hasOwnProperty.call(Je,s))for(r=Je[s],i=0;i<r.length;)r[i].scope===e?r.splice(i,1).forEach(u=>{let{element:c}=u;return Ef(c)}):i++;Mo()===e&&Gy(t||"all")}function Z$(e){let t=e.keyCode||e.which||e.charCode;e.key&&e.key.toLowerCase()==="capslock"&&(t=Ci(e.key));const r=Ke.indexOf(t);if(r>=0&&Ke.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&Ke.splice(0,Ke.length),(t===93||t===224)&&(t=91),t in vt){vt[t]=!1;for(const i in yr)yr[i]===t&&(vr[i]=!1)}}function Ky(e){if(typeof e>"u")Object.keys(Je).forEach(s=>{Array.isArray(Je[s])&&Je[s].forEach(a=>ia(a)),delete Je[s]}),Ef(null);else if(Array.isArray(e))e.forEach(s=>{s.key&&ia(s)});else if(typeof e=="object")e.key&&ia(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=""),ia({key:e,scope:s,method:a,splitKey:"+"})}}const ia=e=>{let{key:t,scope:r,method:i,splitKey:s="+"}=e;qy(t).forEach(u=>{const c=u.split(s),f=c.length,g=c[f-1],h=g==="*"?"*":Ci(g);if(!Je[h])return;r||(r=Mo());const v=f>1?Uy(yr,c):[],p=[];Je[h]=Je[h].filter(y=>{const d=(i?y.method===i:!0)&&y.scope===r&&F$(y.mods,v);return d&&p.push(y.element),!d}),p.forEach(y=>Ef(y))})};function Em(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 vt)Object.prototype.hasOwnProperty.call(vt,a)&&(!vt[a]&&t.mods.indexOf(+a)>-1||vt[a]&&t.mods.indexOf(+a)===-1)&&(s=!1);(t.mods.length===0&&!vt[16]&&!vt[18]&&!vt[17]&&!vt[91]||s||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(Ke),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function _m(e,t){const r=Je["*"];let i=e.keyCode||e.which||e.charCode;if(e.key&&e.key.toLowerCase()==="capslock"||!vr.filter.call(this,e))return;if((i===93||i===224)&&(i=91),Ke.indexOf(i)===-1&&i!==229&&Ke.push(i),["metaKey","ctrlKey","altKey","shiftKey"].forEach(c=>{const f=So[c];e[c]&&Ke.indexOf(f)===-1?Ke.push(f):!e[c]&&Ke.indexOf(f)>-1?Ke.splice(Ke.indexOf(f),1):c==="metaKey"&&e[c]&&(Ke=Ke.filter(g=>g in So||g===i))}),i in vt){vt[i]=!0;for(const c in yr)if(Object.prototype.hasOwnProperty.call(yr,c)){const f=So[yr[c]];vr[c]=e[f]}if(!r)return}for(const c in vt)Object.prototype.hasOwnProperty.call(vt,c)&&(vt[c]=e[So[c]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Ke.indexOf(17)===-1&&Ke.push(17),Ke.indexOf(18)===-1&&Ke.push(18),vt[17]=!0,vt[18]=!0);const s=Mo();if(r)for(let c=0;c<r.length;c++)r[c].scope===s&&(e.type==="keydown"&&r[c].keydown||e.type==="keyup"&&r[c].keyup)&&Em(e,r[c],s,t);if(!(i in Je))return;const a=Je[i],u=a.length;for(let c=0;c<u;c++)if((e.type==="keydown"&&a[c].keydown||e.type==="keyup"&&a[c].keyup)&&a[c].key){const f=a[c],{splitKey:g}=f,h=f.key.split(g),v=[];for(let p=0;p<h.length;p++)v.push(Ci(h[p]));v.sort().join("")===Ke.sort().join("")&&Em(e,f,s,t)}}function vr(e,t,r){Ke=[];const i=qy(e);let s=[],a="all",u=document,c=0,f=!1,g=!0,h="+",v=!1,p=!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&&(g=t.keydown),t.capture!==void 0&&(v=t.capture),typeof t.splitKey=="string"&&(h=t.splitKey),t.single===!0&&(p=!0)),typeof t=="string"&&(a=t),p&&Ky(e,a);c<i.length;c++)e=i[c].split(h),s=[],e.length>1&&(s=Uy(yr,e)),e=e[e.length-1],e=e==="*"?"*":Ci(e),e in Je||(Je[e]=[]),Je[e].push({keyup:f,keydown:g,scope:a,mods:s,shortcut:i[c],method:r,key:i[c],splitKey:h,element:u});if(typeof u<"u"&&window){if(!Zr.has(u)){const y=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return _m(d,u)},x=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;_m(d,u),Z$(d)};Zr.set(u,{keydownListener:y,keyupListenr:x,capture:v}),ic(u,"keydown",y,v),ic(u,"keyup",x,v)}if(!Co){const y=()=>{Ke=[]};Co={listener:y,capture:v},ic(window,"focus",y,v)}}}function G$(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(Je).forEach(r=>{Je[r].filter(s=>s.scope===t&&s.shortcut===e).forEach(s=>{s&&s.method&&s.method()})})}function Ef(e){const t=Object.values(Je).flat();if(t.findIndex(i=>{let{element:s}=i;return s===e})<0){const{keydownListener:i,keyupListenr:s,capture:a}=Zr.get(e)||{};i&&s&&(yo(e,"keyup",s,a),yo(e,"keydown",i,a),Zr.delete(e))}if((t.length<=0||Zr.size<=0)&&(Object.keys(Zr).forEach(s=>{const{keydownListener:a,keyupListenr:u,capture:c}=Zr.get(s)||{};a&&u&&(yo(s,"keyup",u,c),yo(s,"keydown",a,c),Zr.delete(s))}),Zr.clear(),Object.keys(Je).forEach(s=>delete Je[s]),Co)){const{listener:s,capture:a}=Co;yo(window,"focus",s,a),Co=null}}const oc={getPressedKeyString:B$,setScope:Gy,getScope:Mo,deleteScope:q$,getPressedKeyCodes:z$,getAllKeyCodes:W$,isPressed:U$,filter:H$,trigger:G$,unbind:Ky,keyMap:Lo,modifier:yr,modifierMap:So};for(const e in oc)Object.prototype.hasOwnProperty.call(oc,e)&&(vr[e]=oc[e]);if(typeof window<"u"){const e=window.hotkeys;vr.noConflict=t=>(t&&window.hotkeys===vr&&(window.hotkeys=e),vr),window.hotkeys=vr}vr.filter=()=>!0;function K$(e,t,r,i){r instanceof Array&&(i=r,r=void 0),i=i||[],r=r||{};const{preventDefault:s=!0}=r,a=B.useCallback((c,f)=>{s&&c.preventDefault(),setTimeout(()=>t(c,f))},i),u=()=>{vr.unbind(e,a)};B.useEffect(()=>(vr(e,r,a),u),[e,r,a])}const V$=e=>{const t=B.useRef(null);return B.useEffect(()=>{const r=i=>{t.current&&!t.current.contains(i.target)&&e(i)};return document.addEventListener("click",r,!0),()=>{document.removeEventListener("click",r,!0)}},[e]),t};function Y$(e){const t=B.useRef();return B.useEffect(()=>{t.current=e},[e]),t.current}function X$(e){const t=B.useRef(e);return B.useEffect(()=>{t.current=e},[e]),t}function J$(e){const t=B.useRef(null);return B.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}function Q$(e){const[t,r]=B.useState(e),i=(a,u)=>{r(c=>({...c,features:{...c.features,[a]:{enabled:u}}}))},s=B.useCallback((...a)=>a.every(u=>{var c;return(c=t.features[u])==null?void 0:c.enabled}),[t.features]);return{setFeature:i,isFeatureEnabled:s}}const Vy=B.createContext(""),eI=e=>D.jsx(Vy.Provider,{value:e.value,children:e.children}),tI=()=>{const e=B.useContext(Vy);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function rI(e){const[t,r]=B.useState(e),i=B.useMemo(()=>nI(t,r),[]);return{state:t,actions:{...i,set:s=>{r(typeof s=="function"?s:a=>({...a,...s}))}}}}function nI(e,t=()=>{}){return Object.keys(e).reduce((i,s)=>({...i,[`set${Ne.upperFirst(s)}`]:a=>t(u=>({...u,[s]:a}))}),{})}const iI=(e,t,r={})=>{r={timeout:200,...r};const i=B.useRef(),s=()=>{i.current&&(clearTimeout(i.current),i.current=null)};return B.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 yt(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=fI[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 Ai(e){return!!e&&!!e[Gt]}function Vn(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)===dI})(e)||Array.isArray(e)||!!e[$m]||!!(!((t=e.constructor)===null||t===void 0)&&t[$m])||_f(e)||Of(e))}function Do(e,t,r){r===void 0&&(r=!1),ki(e)===0?(r?Object.keys:Pf)(e).forEach((function(i){r&&typeof i=="symbol"||t(i,e[i],e)})):e.forEach((function(i,s){return t(s,i,e)}))}function ki(e){var t=e[Gt];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:_f(e)?2:Of(e)?3:0}function $c(e,t){return ki(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function oI(e,t){return ki(e)===2?e.get(t):e[t]}function Yy(e,t,r){var i=ki(e);i===2?e.set(t,r):i===3?e.add(r):e[t]=r}function sI(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function _f(e){return lI&&e instanceof Map}function Of(e){return cI&&e instanceof Set}function Nn(e){return e.o||e.t}function Tf(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=pI(e);delete t[Gt];for(var r=Pf(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 Fo(e,t){return t===void 0&&(t=!1),Af(e)||Ai(e)||!Vn(e)||(ki(e)>1&&(e.set=e.add=e.clear=e.delete=aI),Object.freeze(e),t&&Do(e,(function(r,i){return Fo(i,!0)}),!0)),e}function aI(){yt(2)}function Af(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function kr(e){var t=hI[e];return t||yt(18,e),t}function Om(){return process.env.NODE_ENV==="production"||Ri||yt(0),Ri}function sc(e,t){t&&(kr("Patches"),e.u=[],e.s=[],e.v=t)}function Ra(e){Ic(e),e.p.forEach(uI),e.p=null}function Ic(e){e===Ri&&(Ri=e.l)}function Tm(e){return Ri={p:[],l:Ri,h:e,m:!0,_:0}}function uI(e){var t=e[Gt];t.i===0||t.i===1?t.j():t.g=!0}function ac(e,t){t._=t.p.length;var r=t.p[0],i=e!==void 0&&e!==r;return t.h.O||kr("ES5").S(t,e,i),i?(r[Gt].P&&(Ra(t),yt(4)),Vn(e)&&(e=Pa(t,e),t.l||Ca(t,e)),t.u&&kr("Patches").M(r[Gt].t,e,t.u,t.s)):e=Pa(t,r,[]),Ra(t),t.u&&t.v(t.u,t.s),e!==Jy?e:void 0}function Pa(e,t,r){if(Af(t))return t;var i=t[Gt];if(!i)return Do(t,(function(c,f){return Am(e,i,t,c,f,r)}),!0),t;if(i.A!==e)return t;if(!i.P)return Ca(e,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var s=i.i===4||i.i===5?i.o=Tf(i.k):i.o,a=s,u=!1;i.i===3&&(a=new Set(s),s.clear(),u=!0),Do(a,(function(c,f){return Am(e,i,s,c,f,r,u)})),Ca(e,s,!1),r&&e.u&&kr("Patches").N(i,r,e.u,e.s)}return i.o}function Am(e,t,r,i,s,a,u){if(process.env.NODE_ENV!=="production"&&s===r&&yt(5),Ai(s)){var c=Pa(e,s,a&&t&&t.i!==3&&!$c(t.R,i)?a.concat(i):void 0);if(Yy(r,i,c),!Ai(c))return;e.m=!1}else u&&r.add(s);if(Vn(s)&&!Af(s)){if(!e.h.D&&e._<1)return;Pa(e,s),t&&t.A.l||Ca(e,s)}}function Ca(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Fo(t,r)}function uc(e,t){var r=e[Gt];return(r?Nn(r):e)[t]}function Rm(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 Lc(e){e.P||(e.P=!0,e.l&&Lc(e.l))}function lc(e){e.o||(e.o=Tf(e.t))}function Mc(e,t,r){var i=_f(t)?kr("MapSet").F(t,r):Of(t)?kr("MapSet").T(t,r):e.O?(function(s,a){var u=Array.isArray(s),c={i:u?1:0,A:a?a.A:Om(),P:!1,I:!1,R:{},l:a,t:s,k:null,o:null,j:null,C:!1},f=c,g=Dc;u&&(f=[c],g=Eo);var h=Proxy.revocable(f,g),v=h.revoke,p=h.proxy;return c.k=p,c.j=v,p})(t,r):kr("ES5").J(t,r);return(r?r.A:Om()).p.push(i),i}function Xy(e){return Ai(e)||yt(22,e),(function t(r){if(!Vn(r))return r;var i,s=r[Gt],a=ki(r);if(s){if(!s.P&&(s.i<4||!kr("ES5").K(s)))return s.t;s.I=!0,i=Pm(r,a),s.I=!1}else i=Pm(r,a);return Do(i,(function(u,c){s&&oI(s.t,u)===c||Yy(i,u,t(c))})),a===3?new Set(i):i})(e)}function Pm(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Tf(e)}var Cm,Ri,Rf=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",lI=typeof Map<"u",cI=typeof Set<"u",km=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Jy=Rf?Symbol.for("immer-nothing"):((Cm={})["immer-nothing"]=!0,Cm),$m=Rf?Symbol.for("immer-draftable"):"__$immer_draftable",Gt=Rf?Symbol.for("immer-state"):"__$immer_state",fI={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"},dI=""+Object.prototype.constructor,Pf=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,pI=Object.getOwnPropertyDescriptors||function(e){var t={};return Pf(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},hI={},Dc={get:function(e,t){if(t===Gt)return e;var r=Nn(e);if(!$c(r,t))return(function(s,a,u){var c,f=Rm(a,u);return f?"value"in f?f.value:(c=f.get)===null||c===void 0?void 0:c.call(s.k):void 0})(e,r,t);var i=r[t];return e.I||!Vn(i)?i:i===uc(e.t,t)?(lc(e),e.o[t]=Mc(e.A.h,i,e)):i},has:function(e,t){return t in Nn(e)},ownKeys:function(e){return Reflect.ownKeys(Nn(e))},set:function(e,t,r){var i=Rm(Nn(e),t);if(i!=null&&i.set)return i.set.call(e.k,r),!0;if(!e.P){var s=uc(Nn(e),t),a=s==null?void 0:s[Gt];if(a&&a.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(sI(r,s)&&(r!==void 0||$c(e.t,t)))return!0;lc(e),Lc(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 uc(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,lc(e),Lc(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Nn(e),i=Reflect.getOwnPropertyDescriptor(r,t);return i&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:i.enumerable,value:r[t]}},defineProperty:function(){yt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){yt(12)}},Eo={};Do(Dc,(function(e,t){Eo[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Eo.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&yt(13),Eo.set.call(this,e,t,void 0)},Eo.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&yt(14),Dc.set.call(this,e[0],t,r,e[0])};var gI=(function(){function e(r){var i=this;this.O=km,this.D=!0,this.produce=function(s,a,u){if(typeof s=="function"&&typeof a!="function"){var c=a;a=s;var f=i;return function(d){var b=this;d===void 0&&(d=c);for(var m=arguments.length,S=Array(m>1?m-1:0),E=1;E<m;E++)S[E-1]=arguments[E];return f.produce(d,(function(R){var O;return(O=a).call.apply(O,[b,R].concat(S))}))}}var g;if(typeof a!="function"&&yt(6),u!==void 0&&typeof u!="function"&&yt(7),Vn(s)){var h=Tm(i),v=Mc(i,s,void 0),p=!0;try{g=a(v),p=!1}finally{p?Ra(h):Ic(h)}return typeof Promise<"u"&&g instanceof Promise?g.then((function(d){return sc(h,u),ac(d,h)}),(function(d){throw Ra(h),d})):(sc(h,u),ac(g,h))}if(!s||typeof s!="object"){if((g=a(s))===void 0&&(g=s),g===Jy&&(g=void 0),i.D&&Fo(g,!0),u){var y=[],x=[];kr("Patches").M(s,g,y,x),u(y,x)}return g}yt(21,s)},this.produceWithPatches=function(s,a){if(typeof s=="function")return function(g){for(var h=arguments.length,v=Array(h>1?h-1:0),p=1;p<h;p++)v[p-1]=arguments[p];return i.produceWithPatches(g,(function(y){return s.apply(void 0,[y].concat(v))}))};var u,c,f=i.produce(s,a,(function(g,h){u=g,c=h}));return typeof Promise<"u"&&f instanceof Promise?f.then((function(g){return[g,u,c]})):[f,u,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){Vn(r)||yt(8),Ai(r)&&(r=Xy(r));var i=Tm(this),s=Mc(this,r,void 0);return s[Gt].C=!0,Ic(i),s},t.finishDraft=function(r,i){var s=r&&r[Gt];process.env.NODE_ENV!=="production"&&(s&&s.C||yt(9),s.I&&yt(10));var a=s.A;return sc(a,i),ac(void 0,a)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!km&&yt(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=kr("Patches").$;return Ai(r)?u(r,i):this.produce(r,(function(c){return u(c,i)}))},e})(),Kt=new gI,mI=Kt.produce;Kt.produceWithPatches.bind(Kt);Kt.setAutoFreeze.bind(Kt);Kt.setUseProxies.bind(Kt);Kt.applyPatches.bind(Kt);Kt.createDraft.bind(Kt);Kt.finishDraft.bind(Kt);function vI(e){var t=B.useState(function(){return Fo(typeof e=="function"?e():e,!0)}),r=t[1];return[t[0],B.useCallback(function(i){r(typeof i=="function"?mI(i):Fo(i))},[])]}const yI=process.env.NODE_ENV==="development",cc=yI&&typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null,wI=(e,t,r)=>{const[i,s]=vI(e),a=B.useRef(null);B.useEffect(()=>{var f;return r&&(a.current=cc==null?void 0:cc.connect({name:r,trace:!0}),(f=a.current)==null||f.init(e)),()=>{var g,h;(h=(g=a.current)==null?void 0:g.disconnect)==null||h.call(g)}},[]);const u=t&&typeof t=="object"?t:{},c=B.useMemo(()=>Object.keys(u).reduce((f,g)=>({...f,[g]:h=>(s(v=>{var p;u[g](v,h),(p=a.current)==null||p.send({type:u[g].name},Xy(v))}),c)}),{}),[s]);return{state:i,dispatch:c}};function Vr(e){return typeof e=="function"}function Qy(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 fc=Qy(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 Fc(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Ya=(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 c=wc(u),f=c.next();!f.done;f=c.next()){var g=f.value;g.remove(this)}}catch(d){t={error:d}}finally{try{f&&!f.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}else u.remove(this);var h=this.initialTeardown;if(Vr(h))try{h()}catch(d){a=d instanceof fc?d.errors:[d]}var v=this._finalizers;if(v){this._finalizers=null;try{for(var p=wc(v),y=p.next();!y.done;y=p.next()){var x=y.value;try{Im(x)}catch(d){a=a??[],d instanceof fc?a=Sa(Sa([],bc(a)),bc(d.errors)):a.push(d)}}}catch(d){i={error:d}}finally{try{y&&!y.done&&(s=p.return)&&s.call(p)}finally{if(i)throw i.error}}}if(a)throw new fc(a)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Im(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)&&Fc(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Fc(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),e0=Ya.EMPTY;function t0(e){return e instanceof Ya||e&&"closed"in e&&Vr(e.remove)&&Vr(e.add)&&Vr(e.unsubscribe)}function Im(e){Vr(e)?e():e.unsubscribe()}var bI={Promise:void 0},xI={setTimeout:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setTimeout.apply(void 0,Sa([e,t],bc(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function SI(e){xI.setTimeout(function(){throw e})}function Lm(){}function va(e){e()}var r0=(function(e){Ba(t,e);function t(r){var i=e.call(this)||this;return i.isStopped=!1,r?(i.destination=r,t0(r)&&r.add(i)):i.destination=OI,i}return t.create=function(r,i,s){return new Nc(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})(Ya),EI=(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){oa(i)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(i){oa(i)}else oa(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){oa(r)}},e})(),Nc=(function(e){Ba(t,e);function t(r,i,s){var a=e.call(this)||this,u;return Vr(r)||!r?u={next:r??void 0,error:i??void 0,complete:s??void 0}:u=r,a.destination=new EI(u),a}return t})(r0);function oa(e){SI(e)}function _I(e){throw e}var OI={closed:!0,next:Lm,error:_I,complete:Lm},TI=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function AI(e){return e}function RI(e){return e.length===0?AI:e.length===1?e[0]:function(r){return e.reduce(function(i,s){return s(i)},r)}}var Mm=(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=CI(t)?t:new Nc(t,r,i);return va(function(){var u=s,c=u.operator,f=u.source;a.add(c?c.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=Dm(r),new r(function(s,a){var u=new Nc({next:function(c){try{t(c)}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[TI]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return RI(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Dm(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 Dm(e){var t;return(t=e??bI.Promise)!==null&&t!==void 0?t:Promise}function PI(e){return e&&Vr(e.next)&&Vr(e.error)&&Vr(e.complete)}function CI(e){return e&&e instanceof r0||PI(e)&&t0(e)}var kI=Qy(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Lr=(function(e){Ba(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 Fm(this,this);return i.operator=r,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new kI},t.prototype.next=function(r){var i=this;va(function(){var s,a;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var u=wc(i.currentObservers),c=u.next();!c.done;c=u.next()){var f=c.value;f.next(r)}}catch(g){s={error:g}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(s)throw s.error}}}})},t.prototype.error=function(r){var i=this;va(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;va(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,c=s.observers;return a||u?e0:(this.currentObservers=null,c.push(r),new Ya(function(){i.currentObservers=null,Fc(c,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 Mm;return r.source=this,r},t.create=function(r,i){return new Fm(r,i)},t})(Mm),Fm=(function(e){Ba(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:e0},t})(Lr),n0=(e=>(e.RELOAD="reload",e.RECOMPUTE="recompute",e))(n0||{}),i0=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(i0||{});const $I=new Lr,II=new Lr,o0=new Lr;var s0=(e=>(e.SAVE_ALL="save-all",e))(s0||{});const LI=new Lr;var a0=(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))(a0||{});const MI=new Lr;var u0=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(u0||{});const DI=new Lr,FI=new Lr;var No=(e=>(e.EVENT_STARTED="event-started",e.EVENT_ENDED="event-ended",e.EVENT_EMITED="event-emited",e.REQUEST_SENT="request-sent",e))(No||{});const ka=new Lr,NI=new Lr,Cf=255;var kf=(e=>(e.EMPTY="Please enter a valid name",e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${Cf} 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))(kf||{});function Xa(e,t){const r=t?e.replace(/\.[^.]+$/,""):e;if(e==="")throw new Error("Please enter a valid name");if(e.length>Cf)throw new Error(kf.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 jI(e){if(!e)return null;if(typeof e=="string")try{Xa(e)}catch(t){return t.message}}function zI(e,t){let r="";if(["array","object"].includes(t))try{const i=JSON.parse(e);t==="array"&&(!Array.isArray(i)||!Ne.isObject(i))&&(r=`Invalid value for type ${t}`),t==="object"&&(!Ne.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 BI(){return{PLACEHOLDER_PREFIX:`@!MASK_${Date.now().toString(36)+Math.random().toString(36).substring(2,8)}_`,counter:0}}function Ja(e){const{PLACEHOLDER_PREFIX:t,counter:r}=BI();let i=r;const s=[],a="@!",u=h=>(s.push(h),`${t}${i++}${a}`);let c=e.replace(/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,u);c=c.replace(/([\{\s]\s*\w+\s*)(:\s*\d+)/g,(h,v,p)=>v+u(p)),c=c.replace(/:\d{2}:\d{2}/g,u);const f=new RegExp(":(?!4D\\.\\w+)[CPK]?\\d+","g");let g=c.replace(f,"");for(let h=0;h<s.length;h++){const p=`${t}${h}${a}`.replace(/([.*+?^${}()|[\]\\])/g,"\\$1"),y=new RegExp(p,"g");g=g.replace(y,s[h])}return g}var $f=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))($f||{});const yn={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms",CLASSES_FOLDER:"ClassesFolder",REPORTS:"Reports",DEBUGGER:"Debugger"};var Xe=(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))(Xe||{}),En=(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))(En||{}),If=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(If||{});const l0="roles.json",c0="qodlyApp.json",WI="model.4DModel",f0="HTTPHandlers.json",d0="Shared/i18n.json";function HI(e){const t=Lf(e);switch(t){case Xe.SETTINGS:return{filename:"Settings",type:t};case Xe.HTTP_HANDLERS:return{filename:"HTTP Handlers",type:t};case Xe.ROLES:return{filename:"Roles & Privileges",type:t};case Xe.LOCALIZATION:return{filename:"Localization",type:t};case Xe.MODEL:return{filename:"Model",type:t};default:{const r=e.split("/"),[i]=r[1].split(".");return{filename:i,type:t}}}}function Lf(e){const t=e.split("."),r=t.pop(),i=t.join(".").split("/")[0];switch(!0){case r==="4DModel":return Xe.MODEL;case r==="WebForm":return Xe.WEBFORM;case(["4dm","4qs","4qm"].includes(r)&&i===yn.METHODS):return Xe.METHOD;case(["4dm","4qs","4qm"].includes(r)&&i===yn.CLASSES):return Xe.CLASS;case e===l0:return Xe.ROLES;case e===f0:return Xe.HTTP_HANDLERS;case e===c0:return Xe.SETTINGS;case e===d0:return Xe.LOCALIZATION;default:return Xe.TEXT}}function UI(e,t=!1){switch(e){case yn.REPORTS:case"report":return"QoDoc";case yn.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case yn.CLASSES:case yn.METHODS:return t?"4qs":"4dm";default:return""}}function qI(e,t=""){const r=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return r?r[1]:t}function ZI(e,t,r){switch(t){case Xe.MOBILEFORM:return`${e}.MForm`;case Xe.WEBFORM:return`${e}.WebForm`;case Xe.REPORT:return`${e}.QoDoc`;case Xe.METHOD:case Xe.CLASS:return`${e}.${r?"4qs":"4dm"}`;default:return e}}class p0{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 Mf(){const e=new p0;return async t=>{const r=await e.lock();try{const i=await t();return r(),i}catch(i){console.error(i),r();return}}}const h0=Ne.curry((e,t,r)=>e&&Ne.get(r,e)===t),GI=Ne.curry((e,t,r)=>Ne.get(r,e)!==t),KI=Ne.curry((e,t)=>Ne.get(t,"id")!==e),VI=Ne.curry((e,t)=>Ne.get(t,"id")===e),YI=Ne.curry((e,t)=>Ne.get(t,"path")===e);function XI(e="id",t,r){return r.findIndex(h0(e,t))!==-1}function JI(e,t){return e.localeCompare(t,void 0,{numeric:!0})}function QI(e){if(!e)return"";const{id:t,namespace:r}=e;return r&&t?`${r}:${t}`:t}function g0(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function eL(e){return e.type==="object"}function m0(e){var t;return e.kind==="relatedEntities"||((t=e.type)==null?void 0:t.includes("Selection"))||e.behavior==="relatedEntities"}function v0(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!g0(e)}function tL(e){return m0(e)||v0(e)}function rL(e){return e.applyTo==="dataStore"}function nL(e){return e.applyTo==="dataClass"}function iL(e){return e.applyTo==="entity"}function oL(e){return e.applyTo==="entityCollection"}function sL(e){return e.type==="entity"}function aL(e){return e.type==="entitysel"}function y0(e){return e.dataType==="array"}function w0(e){return e.dataType==="object"}function b0(e){return e.type==="scalar"}function uL(e){return y0(e)||w0(e)||b0(e)}const lL=e=>e!=null&&e.type==="entity",cL=e=>e.type==="entitysel",fL=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",dL=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",pL=e=>e.type==="scalar"&&e.dataType==="date";function hL(){return new Promise((e,t)=>{window.addEventListener("bundle:ready",r=>r.data?e():t(r.caughtErr))})}function gL(){return new Promise(e=>{window.addEventListener("i18n:ready",()=>e())})}var jo=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(jo||{}),x0=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(x0||{}),Df=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(Df||{});const mL={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function vL(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:jo.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!r,publishedRestOptions:r||{table:"",scope:Df.table}},...i}}function S0(e){const t={};return e.invisible&&(t.invisible=!0),e.shared&&(t.shared=!0),e.executedOnServer&&(t.executedOnServer=!0),e.preemptive&&[jo.capable,jo.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 yL(e,t,r=!1){const i=Ne.isString(t)?t:S0(t);if(!r&&E0(e))return e;const s=_0(e);return`//%attributes = ${i}\r
204
- ${s}`}function E0(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function _0(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const wL=()=>Zn.uuid().replaceAll("-","").toUpperCase(),bL=e=>e.toLowerCase().replace(/[^a-z0-9]/g,"_").replace(/_{2,}/g,"_").replace(/^_|_$/g,"");var Me=(e=>(e.DATACLASS="dataclass",e.METHOD="method",e.ATTRIBUTE="attribute",e.DATASTORE="datastore",e.SINGLETON="singleton",e.SINGLETON_METHOD="singletonMethod",e))(Me||{}),qe=(e=>(e.DS_METHOD="dsMethod",e.DATACLASS_METHOD="dataclassMethod",e.ENTITY_METHOD="entityMethod",e.ENTITY_SEL_METHOD="entityselMethod",e))(qe||{});const xL=[Me.DATASTORE,Me.DATACLASS,Me.ATTRIBUTE,Me.SINGLETON_METHOD,Me.SINGLETON,Me.METHOD,qe.DS_METHOD,qe.DATACLASS_METHOD,qe.ENTITY_METHOD,qe.ENTITY_SEL_METHOD],Nm=e=>[qe.DS_METHOD,qe.ENTITY_METHOD,qe.DATACLASS_METHOD].includes(e)?Me.METHOD:e,$a="guest",Ff=[{key:"read",label:"Read",canApplyTo:[Me.DATASTORE,Me.DATACLASS,Me.ATTRIBUTE]},{key:"create",label:"Create",canApplyTo:[Me.DATASTORE,Me.DATACLASS,Me.ATTRIBUTE]},{key:"update",label:"Update",canApplyTo:[Me.DATASTORE,Me.DATACLASS,Me.ATTRIBUTE]},{key:"drop",label:"Delete",canApplyTo:[Me.DATASTORE,Me.DATACLASS,Me.ATTRIBUTE]},{key:"execute",label:"Execute",canApplyTo:[Me.DATASTORE,Me.DATACLASS,Me.METHOD,qe.DS_METHOD,qe.DATACLASS_METHOD,qe.ENTITY_METHOD,qe.ENTITY_SEL_METHOD,Me.SINGLETON,Me.SINGLETON_METHOD]},{key:"promote",label:"Promote",canApplyTo:[Me.METHOD,qe.DS_METHOD,qe.DATACLASS_METHOD,qe.ENTITY_METHOD,qe.ENTITY_SEL_METHOD,Me.SINGLETON_METHOD]}];function lr(e,...t){return Array.from(new Set([...e,...t]))}function O0(e){const t={},r=new Map;e.forEach(f=>{const g=f.id||Zn.generate();t[g]={...f,id:g,parents:[],includes:lr(f.includes||[]),resources:[]},r.set(f.privilege,g)}),Object.entries(t).forEach(([f,g])=>{const h=g.includes.map(v=>{const p=r.get(v);return p?(t[p].parents=lr(t[p].parents,p),p):""}).filter(Boolean);t[f]={...g,includes:h}});const i=T0(t),s=new Set;function a(f){s.add(f.id),f.includes=f.includes.filter(g=>!s.has(g))}if(i.forEach(a),i.forEach(f=>f.parents=[]),i.forEach(f=>{f.includes.forEach(g=>t[g].parents.push(f.id))}),Object.values(t).find(({privilege:f})=>f===$a))return t;const c=Zn.generate();return{[c]:{id:c,privilege:$a,includes:[],parents:[],resources:[]},...t}}function T0(e){return Object.values(e).sort((t,r)=>t.parents.length-r.parents.length)}function Qa(e,t){const r=t[e];let i=[];return r&&r.parents.forEach(s=>{i=lr(i,...Qa(s,t),s)}),i}function Ia(e,t){const r=t[e];let i=[];return r&&r.includes.forEach(s=>{i=lr(i,...Ia(s,t),s)}),i}function SL(e,t){const r=t[e];if(!r)return[];const i=[e,...Qa(e,t),...r.includes];return Object.keys(t).filter(s=>!i.includes(s))}function EL(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 _L(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 OL(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 TL(e,t){Xa(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=Zn.generate();return{[r]:{id:r,privilege:e,includes:[],parents:[],resources:[]},...t}}function AL(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 RL(e,t){return e.map(r=>Xr(r,t))}function Xr(e,t){return t[e]?t[e]:null}function A0({applyTo:e,type:t,...r}){return Object.entries(r).reduce((i,[s,a])=>{const u=Ne.find(Ff,["key",s]);return!u||!u.canApplyTo.includes(t)||(typeof a=="string"?a.split(","):a).forEach(f=>{i[f]=lr(i[f]||[],s)}),i},{})}const jm=(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 Nf(e){return{permissions:Ff.filter(({canApplyTo:t})=>t.includes(e.type)).map(({key:t,label:r})=>{const i={name:t,from:[]};switch(e.type){case Me.DATASTORE:return{...i,info:jm(r,!0)};case Me.DATACLASS:return{...i,info:jm(r)};default:return i}}),resource:e.applyTo,type:e.type}}function R0(e,t){const r=P0(t),i={};return e.filter(({type:s})=>xL.includes(s)).forEach(s=>{const a=A0(s);Object.entries(a).forEach(([u,c])=>{var h;const f=(h=r[u])==null?void 0:h.id;if(!f)return;i[f]=i[f]||{...t[f]};let g=Ne.find(i[f].resources,{resource:s.applyTo,type:s.type});g||(g=Nf(s),i[f].resources.push(g)),g.permissions=g.permissions.map(v=>({...v,checked:v.checked||c.includes(v.name)}))})}),{...t,...i}}function P0(e){return Object.values(e).reduce((t,r)=>({...t,[r.privilege]:r}),{})}function PL(e){var r;if(!e)throw new Error("Invalid roles data");const t=O0(e.privileges||[]);return{forceLogin:(e==null?void 0:e.forceLogin)||!1,restrictedByDefault:(e==null?void 0:e.restrictedByDefault)||!1,privileges:R0(((r=e==null?void 0:e.permissions)==null?void 0:r.allowed)||[],t),roles:((e==null?void 0:e.roles)||[]).map(({id:i=Zn.generate(),role:s,privileges:a=[]})=>({id:i,role:s,privileges:lr(a).map(u=>{var c;return(c=Object.values(t).find(({privilege:f})=>f===u))==null?void 0:c.id}).filter(Boolean)})).reduce((i,s)=>({...i,[s.id]:{...s}}),{})}}function CL(e){const t=Object.values(e.privileges).filter(({includes:i})=>i.length===0).map(({id:i})=>i),r=[...t,...t.map(i=>Qa(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:c})=>{let f=Ne.find(i,{applyTo:u,type:Nm(c)});f||(f={applyTo:u,type:Nm(c)},i.push(f)),a.forEach(({name:g,checked:h})=>{h&&f&&(f[g]=f[g]||[],f[g].push(s.privilege))})}),i),[])},privileges:r.filter(({privilege:i})=>i!==$a).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 kL(e,t){const r=t[e],i={children:[],links:[],parents:[],selected:e};if(!r)return i;function s(c,f,g=[]){const h=c.reduce((v,p)=>[...v,...t[p][f]],[]);return h.length===0?g:(g.push(h),s(h,f,g))}function a(c){const f=[],g=[];for(let h=c.length-1;h>=0;h-=1){const v=c[h].filter(p=>f.includes(p)?!1:(f.push(p),!0));v.length>0&&g.unshift(lr(v))}return g}function u(c,f){const g=[];return c.reduce((h,v)=>(v.forEach(p=>{t[p][f==="parents"?"includes":"parents"].forEach(x=>{g.includes(x)&&h.push(f==="parents"?{source:p,target:x}:{source:x,target:p})}),g.push(p)}),h),[])}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 $L(e,t,r){const i=Xr(e,r);if(!i||Ne.find(i.resources,{resource:t.applyTo,type:t.type}))return r;const s={...i,resources:[...i.resources,Nf(t)]};return{...r,[e]:s}}function IL(e,t,r){const i=Xr(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 LL(e,t){const r=Object.entries(e).map(([i,s])=>{const a=Xr(i,t);if(!a)return{[i]:t[i]};const u={...a,resources:a.resources.filter(({resource:c,type:f})=>!s.some(g=>g.applyTo===c&&g.type===f))};return{[i]:u}}).reduce((i,s)=>({...i,...s}),{});return{...t,...r}}function ML(e,t){const r=Xr(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 DL(e,t,r,i){const s=Xr(e,i);if(!s)return i;const u=Ne.find(s.resources,{type:t.type,resource:t.resource})?{...s,resources:s.resources.map(c=>c.type===t.type&&c.resource===t.resource?{...c,permissions:t.permissions.map(f=>f.name===r.name?{...f,checked:!f.checked,from:[]}:f)}:c)}:{...s,resources:[...s.resources,{...t,permissions:t.permissions.map(c=>({...c,checked:r.name===c.name,from:[]}))}]};return{...i,[e]:u}}function FL(e,t){var f;const r=C0(e,t)||[],i=((f=Xr(e,t))==null?void 0:f.resources)||[],u=([...r,...i].filter(({type:g})=>[qe.DS_METHOD,qe.DATACLASS_METHOD,qe.ENTITY_METHOD,qe.ENTITY_SEL_METHOD].includes(g))||[]).map(({resource:g})=>g);return Object.entries(t).reduce((g,[h,{resources:v}])=>(v.filter(({resource:p,type:y})=>[qe.DS_METHOD,qe.DATACLASS_METHOD,qe.ENTITY_METHOD,qe.ENTITY_SEL_METHOD].includes(y)&&u.includes(p)).forEach(({permissions:p,resource:y})=>{var d;((d=p.find(({name:b})=>b==="promote"))==null?void 0:d.checked)&&(g[y]=lr(g[y]||[],h))}),g),{})}function C0(e,t){var u;const r=Xr(e,t);if(!r)return[];const i=(u=Object.values(t).find(c=>c.privilege===$a))==null?void 0:u.id;return(i&&i!==e?lr(Ia(e,t),i):Ia(e,t)).reduce((c,f)=>(t[f].resources.forEach(h=>{if(h.permissions.filter(({checked:y,name:x})=>y&&x!=="promote").length===0)return;const p=Ne.find(c,{type:h.type,resource:h.resource});if(!p){c.push({...h,permissions:h.permissions.map(y=>({...y,from:y.checked?[f]:[],checked:!1}))});return}p.permissions=p.permissions.map((y,x)=>{let{from:d=[]}=y;return h.permissions[x].checked&&!d.includes(f)&&(d=[...d,f]),{...y,from:d,checked:y.checked}})}),c),Ne.clone(r.resources.map(c=>({...c,permissions:c.permissions.map(({checked:f,...g})=>({...g,checked:!!f}))}))))}const NL=(e,t,r)=>{const i={id:e,role:t,privileges:[]};return{...r,[i.id]:i}},jL=(e,t)=>t[e]?Object.values(t).reduce((r,i)=>e===i.id||i.role===""?r:{...r,[i.id]:i},{}):t,zL=(e,t)=>{if(Xa(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},{})},at="/rest/$designer",Ko="/rest/$designer-ext";function BL(...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 De(e,t){var s;ka.next({action:No.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))&&ka.next({action:No.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 WL(e){return ka.next({action:No.REQUEST_SENT}),e}var _r={},mt={},zm;function zn(){if(zm)return mt;zm=1;var e=mt.ValidationError=function(d,b,m,S,E,R){if(Array.isArray(S)?(this.path=S,this.property=S.reduce(function(k,W){return k+c(W)},"instance")):S!==void 0&&(this.property=S),d&&(this.message=d),m){var O=m.$id||m.id;this.schema=O||m}b!==void 0&&(this.instance=b),this.name=E,this.argument=R,this.stack=this.toString()};e.prototype.toString=function(){return this.property+" "+this.message};var t=mt.ValidatorResult=function(d,b,m,S){this.instance=d,this.schema=b,this.options=m,this.path=S.path,this.propertyPath=S.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(d){var b;if(typeof d=="string")b=new e(d,this.instance,this.schema,this.path);else{if(!d)throw new Error("Missing error detail");if(!d.message)throw new Error("Missing error message");if(!d.name)throw new Error("Missing validator type");b=new e(d.message,this.instance,this.schema,this.path,d.name,d.argument)}if(this.errors.push(b),this.throwFirst)throw new i(this);if(this.throwError)throw b;return b},t.prototype.importErrors=function(d){typeof d=="string"||d&&d.validatorType?this.addError(d):d&&d.errors&&(this.errors=this.errors.concat(d.errors))};function r(x,d){return d+": "+x.toString()+`
205
- `}t.prototype.toString=function(d){return this.errors.map(r).join("")},Object.defineProperty(t.prototype,"valid",{get:function(){return!this.errors.length}}),mt.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=mt.SchemaError=function x(d,b){this.message=d,this.schema=b,Error.call(this,d),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=mt.SchemaContext=function(d,b,m,S,E){this.schema=d,this.options=b,Array.isArray(m)?(this.path=m,this.propertyPath=m.reduce(function(R,O){return R+c(O)},"instance")):this.propertyPath=m,this.base=S,this.schemas=E};a.prototype.resolve=function(d){return y(this.base,d)},a.prototype.makeChild=function(d,b){var m=b===void 0?this.path:this.path.concat([b]),S=d.$id||d.id;let E=y(this.base,S||"");var R=new a(d,this.options,m,E,Object.create(this.schemas));return S&&!R.schemas[E]&&(R.schemas[E]=d),R};var u=mt.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,duration:/P(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S)|\d+(D|M(\d+D)?|Y(\d+M(\d+D)?)?)(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S))?|\d+W)/i,email:/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,"idn-email":/^("(?:[!#-\[\]-\u{10FFFF}]|\\[\t -\u{10FFFF}])*"|[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*)@([!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*|\[[!-Z\^-\u{10FFFF}]*\])$/u,"ip-address":/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,ipv6:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,uri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"uri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/,iri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"iri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~-\u{10FFFF}]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~-\u{10FFFF}])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/u,uuid:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,"uri-template":/(%[0-9a-f]{2}|[!#$&(-;=?@\[\]_a-z~]|\{[!#&+,./;=?@|]?(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?(,(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?)*\})*/iu,"json-pointer":/^(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*$/iu,"relative-json-pointer":/^\d+(#|(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*)$/iu,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"utc-millisec":function(x){return typeof x=="string"&&parseFloat(x)===parseInt(x,10)&&!isNaN(x)},regex:function(x){var d=!0;try{new RegExp(x)}catch{d=!1}return d},style:/[\r\n\t ]*[^\r\n\t ][^:]*:[\r\n\t ]*[^\r\n\t ;]*[\r\n\t ]*;?/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/};u.regexp=u.regex,u.pattern=u.regex,u.ipv4=u["ip-address"],mt.isFormat=function(d,b,m){if(typeof d=="string"&&u[b]!==void 0){if(u[b]instanceof RegExp)return u[b].test(d);if(typeof u[b]=="function")return u[b](d)}else if(m&&m.customFormats&&typeof m.customFormats[b]=="function")return m.customFormats[b](d);return!0};var c=mt.makeSuffix=function(d){return d=d.toString(),!d.match(/[.\s\[\]]/)&&!d.match(/^[\d]/)?"."+d:d.match(/^\d+$/)?"["+d+"]":"["+JSON.stringify(d)+"]"};mt.deepCompareStrict=function x(d,b){if(typeof d!=typeof b)return!1;if(Array.isArray(d))return!Array.isArray(b)||d.length!==b.length?!1:d.every(function(E,R){return x(d[R],b[R])});if(typeof d=="object"){if(!d||!b)return d===b;var m=Object.keys(d),S=Object.keys(b);return m.length!==S.length?!1:m.every(function(E){return x(d[E],b[E])})}return d===b};function f(x,d,b,m){typeof b=="object"?d[m]=v(x[m],b):x.indexOf(b)===-1&&d.push(b)}function g(x,d,b){d[b]=x[b]}function h(x,d,b,m){typeof d[m]!="object"||!d[m]?b[m]=d[m]:x[m]?b[m]=v(x[m],d[m]):b[m]=d[m]}function v(x,d){var b=Array.isArray(d),m=b&&[]||{};return b?(x=x||[],m=m.concat(x),d.forEach(f.bind(null,x,m))):(x&&typeof x=="object"&&Object.keys(x).forEach(g.bind(null,x,m)),Object.keys(d).forEach(h.bind(null,x,d,m))),m}mt.deepMerge=v,mt.objectGetPath=function(d,b){for(var m=b.split("/").slice(1),S;typeof(S=m.shift())=="string";){var E=decodeURIComponent(S.replace(/~0/,"~").replace(/~1/g,"/"));if(!(E in d))return;d=d[E]}return d};function p(x){return"/"+encodeURIComponent(x).replace(/~/g,"%7E")}mt.encodePath=function(d){return d.map(p).join("")},mt.getDecimalPlaces=function(d){var b=0;if(isNaN(d))return b;typeof d!="number"&&(d=Number(d));var m=d.toString().split("e");if(m.length===2){if(m[1][0]!=="-")return b;b=Number(m[1].slice(1))}var S=m[0].split(".");return S.length===2&&(b+=S[1].length),b},mt.isSchema=function(d){return typeof d=="object"&&d||typeof d=="boolean"};var y=mt.resolveUrl=function(d,b){const m=new URL(b,new URL(d,"resolve://"));if(m.protocol==="resolve:"){const{pathname:S,search:E,hash:R}=m;return S+E+R}return m.toString()};return mt}var dc,Bm;function HL(){if(Bm)return dc;Bm=1;var e=zn(),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(v,p,y,x){if(v===void 0)return null;var d=new t(v,p,y,x),b=Array.isArray(p.type)?p.type:[p.type];if(!b.some(this.testType.bind(this,v,p,y,x))){var m=b.map(function(S){if(S){var E=S.$id||S.id;return E?"<"+E+">":S+""}});d.addError({name:"type",argument:m,message:"is not of a type(s) "+m})}return d};function a(h,v,p,y,x){var d=v.throwError,b=v.throwAll;v.throwError=!1,v.throwAll=!1;var m=this.validateSchema(h,x,v,p);return v.throwError=d,v.throwAll=b,!m.valid&&y instanceof Function&&y(m),m.valid}s.anyOf=function(v,p,y,x){if(v===void 0)return null;var d=new t(v,p,y,x),b=new t(v,p,y,x);if(!Array.isArray(p.anyOf))throw new r("anyOf must be an array");if(!p.anyOf.some(a.bind(this,v,y,x,function(S){b.importErrors(S)}))){var m=p.anyOf.map(function(S,E){var R=S.$id||S.id;return R?"<"+R+">":S.title&&JSON.stringify(S.title)||S.$ref&&"<"+S.$ref+">"||"[subschema "+E+"]"});y.nestedErrors&&d.importErrors(b),d.addError({name:"anyOf",argument:m,message:"is not any of "+m.join(",")})}return d},s.allOf=function(v,p,y,x){if(v===void 0)return null;if(!Array.isArray(p.allOf))throw new r("allOf must be an array");var d=new t(v,p,y,x),b=this;return p.allOf.forEach(function(m,S){var E=b.validateSchema(v,m,y,x);if(!E.valid){var R=m.$id||m.id,O=R||m.title&&JSON.stringify(m.title)||m.$ref&&"<"+m.$ref+">"||"[subschema "+S+"]";d.addError({name:"allOf",argument:{id:O,length:E.errors.length,valid:E},message:"does not match allOf schema "+O+" with "+E.errors.length+" error[s]:"}),d.importErrors(E)}}),d},s.oneOf=function(v,p,y,x){if(v===void 0)return null;if(!Array.isArray(p.oneOf))throw new r("oneOf must be an array");var d=new t(v,p,y,x),b=new t(v,p,y,x),m=p.oneOf.filter(a.bind(this,v,y,x,function(E){b.importErrors(E)})).length,S=p.oneOf.map(function(E,R){var O=E.$id||E.id;return O||E.title&&JSON.stringify(E.title)||E.$ref&&"<"+E.$ref+">"||"[subschema "+R+"]"});return m!==1&&(y.nestedErrors&&d.importErrors(b),d.addError({name:"oneOf",argument:S,message:"is not exactly one from "+S.join(",")})),d},s.if=function(v,p,y,x){if(v===void 0)return null;if(!e.isSchema(p.if))throw new Error('Expected "if" keyword to be a schema');var d=a.call(this,v,y,x,null,p.if),b=new t(v,p,y,x),m;if(d){if(p.then===void 0)return;if(!e.isSchema(p.then))throw new Error('Expected "then" keyword to be a schema');m=this.validateSchema(v,p.then,y,x.makeChild(p.then)),b.importErrors(m)}else{if(p.else===void 0)return;if(!e.isSchema(p.else))throw new Error('Expected "else" keyword to be a schema');m=this.validateSchema(v,p.else,y,x.makeChild(p.else)),b.importErrors(m)}return b};function u(h,v){if(Object.hasOwnProperty.call(h,v))return h[v];if(v in h){for(;h=Object.getPrototypeOf(h);)if(Object.propertyIsEnumerable.call(h,v))return h[v]}}s.propertyNames=function(v,p,y,x){if(this.types.object(v)){var d=new t(v,p,y,x),b=p.propertyNames!==void 0?p.propertyNames:{};if(!e.isSchema(b))throw new r('Expected "propertyNames" to be a schema (object or boolean)');for(var m in v)if(u(v,m)!==void 0){var S=this.validateSchema(m,b,y,x.makeChild(b));d.importErrors(S)}return d}},s.properties=function(v,p,y,x){if(this.types.object(v)){var d=new t(v,p,y,x),b=p.properties||{};for(var m in b){var S=b[m];if(S!==void 0){if(S===null)throw new r('Unexpected null, expected schema in "properties"');typeof y.preValidateProperty=="function"&&y.preValidateProperty(v,m,S,y,x);var E=u(v,m),R=this.validateSchema(E,S,y,x.makeChild(S,m));R.instance!==d.instance[m]&&(d.instance[m]=R.instance),d.importErrors(R)}}return d}};function c(h,v,p,y,x,d){if(this.types.object(h)&&!(v.properties&&v.properties[x]!==void 0))if(v.additionalProperties===!1)d.addError({name:"additionalProperties",argument:x,message:"is not allowed to have the additional property "+JSON.stringify(x)});else{var b=v.additionalProperties||{};typeof p.preValidateProperty=="function"&&p.preValidateProperty(h,x,b,p,y);var m=this.validateSchema(h[x],b,p,y.makeChild(b,x));m.instance!==d.instance[x]&&(d.instance[x]=m.instance),d.importErrors(m)}}s.patternProperties=function(v,p,y,x){if(this.types.object(v)){var d=new t(v,p,y,x),b=p.patternProperties||{};for(var m in v){var S=!0;for(var E in b){var R=b[E];if(R!==void 0){if(R===null)throw new r('Unexpected null, expected schema in "patternProperties"');try{var O=new RegExp(E,"u")}catch{O=new RegExp(E)}if(O.test(m)){S=!1,typeof y.preValidateProperty=="function"&&y.preValidateProperty(v,m,R,y,x);var k=this.validateSchema(v[m],R,y,x.makeChild(R,m));k.instance!==d.instance[m]&&(d.instance[m]=k.instance),d.importErrors(k)}}}S&&c.call(this,v,p,y,x,m,d)}return d}},s.additionalProperties=function(v,p,y,x){if(this.types.object(v)){if(p.patternProperties)return null;var d=new t(v,p,y,x);for(var b in v)c.call(this,v,p,y,x,b,d);return d}},s.minProperties=function(v,p,y,x){if(this.types.object(v)){var d=new t(v,p,y,x),b=Object.keys(v);return b.length>=p.minProperties||d.addError({name:"minProperties",argument:p.minProperties,message:"does not meet minimum property length of "+p.minProperties}),d}},s.maxProperties=function(v,p,y,x){if(this.types.object(v)){var d=new t(v,p,y,x),b=Object.keys(v);return b.length<=p.maxProperties||d.addError({name:"maxProperties",argument:p.maxProperties,message:"does not meet maximum property length of "+p.maxProperties}),d}},s.items=function(v,p,y,x){var d=this;if(this.types.array(v)&&p.items!==void 0){var b=new t(v,p,y,x);return v.every(function(m,S){if(Array.isArray(p.items))var E=p.items[S]===void 0?p.additionalItems:p.items[S];else var E=p.items;if(E===void 0)return!0;if(E===!1)return b.addError({name:"items",message:"additionalItems not permitted"}),!1;var R=d.validateSchema(m,E,y,x.makeChild(E,S));return R.instance!==b.instance[S]&&(b.instance[S]=R.instance),b.importErrors(R),!0}),b}},s.contains=function(v,p,y,x){var d=this;if(this.types.array(v)&&p.contains!==void 0){if(!e.isSchema(p.contains))throw new Error('Expected "contains" keyword to be a schema');var b=new t(v,p,y,x),m=v.some(function(S,E){var R=d.validateSchema(S,p.contains,y,x.makeChild(p.contains,E));return R.errors.length===0});return m===!1&&b.addError({name:"contains",argument:p.contains,message:"must contain an item matching given schema"}),b}},s.minimum=function(v,p,y,x){if(this.types.number(v)){var d=new t(v,p,y,x);return p.exclusiveMinimum&&p.exclusiveMinimum===!0?v>p.minimum||d.addError({name:"minimum",argument:p.minimum,message:"must be greater than "+p.minimum}):v>=p.minimum||d.addError({name:"minimum",argument:p.minimum,message:"must be greater than or equal to "+p.minimum}),d}},s.maximum=function(v,p,y,x){if(this.types.number(v)){var d=new t(v,p,y,x);return p.exclusiveMaximum&&p.exclusiveMaximum===!0?v<p.maximum||d.addError({name:"maximum",argument:p.maximum,message:"must be less than "+p.maximum}):v<=p.maximum||d.addError({name:"maximum",argument:p.maximum,message:"must be less than or equal to "+p.maximum}),d}},s.exclusiveMinimum=function(v,p,y,x){if(typeof p.exclusiveMinimum!="boolean"&&this.types.number(v)){var d=new t(v,p,y,x),b=v>p.exclusiveMinimum;return b||d.addError({name:"exclusiveMinimum",argument:p.exclusiveMinimum,message:"must be strictly greater than "+p.exclusiveMinimum}),d}},s.exclusiveMaximum=function(v,p,y,x){if(typeof p.exclusiveMaximum!="boolean"&&this.types.number(v)){var d=new t(v,p,y,x),b=v<p.exclusiveMaximum;return b||d.addError({name:"exclusiveMaximum",argument:p.exclusiveMaximum,message:"must be strictly less than "+p.exclusiveMaximum}),d}};var f=function(v,p,y,x,d,b){if(this.types.number(v)){var m=p[d];if(m==0)throw new r(d+" cannot be zero");var S=new t(v,p,y,x),E=e.getDecimalPlaces(v),R=e.getDecimalPlaces(m),O=Math.max(E,R),k=Math.pow(10,O);return Math.round(v*k)%Math.round(m*k)!==0&&S.addError({name:d,argument:m,message:b+JSON.stringify(m)}),S}};s.multipleOf=function(v,p,y,x){return f.call(this,v,p,y,x,"multipleOf","is not a multiple of (divisible by) ")},s.divisibleBy=function(v,p,y,x){return f.call(this,v,p,y,x,"divisibleBy","is not divisible by (multiple of) ")},s.required=function(v,p,y,x){var d=new t(v,p,y,x);return v===void 0&&p.required===!0?d.addError({name:"required",message:"is required"}):this.types.object(v)&&Array.isArray(p.required)&&p.required.forEach(function(b){u(v,b)===void 0&&d.addError({name:"required",argument:b,message:"requires property "+JSON.stringify(b)})}),d},s.pattern=function(v,p,y,x){if(this.types.string(v)){var d=new t(v,p,y,x),b=p.pattern;try{var m=new RegExp(b,"u")}catch{m=new RegExp(b)}return v.match(m)||d.addError({name:"pattern",argument:p.pattern,message:"does not match pattern "+JSON.stringify(p.pattern.toString())}),d}},s.format=function(v,p,y,x){if(v!==void 0){var d=new t(v,p,y,x);return!d.disableFormat&&!e.isFormat(v,p.format,this)&&d.addError({name:"format",argument:p.format,message:"does not conform to the "+JSON.stringify(p.format)+" format"}),d}},s.minLength=function(v,p,y,x){if(this.types.string(v)){var d=new t(v,p,y,x),b=v.match(/[\uDC00-\uDFFF]/g),m=v.length-(b?b.length:0);return m>=p.minLength||d.addError({name:"minLength",argument:p.minLength,message:"does not meet minimum length of "+p.minLength}),d}},s.maxLength=function(v,p,y,x){if(this.types.string(v)){var d=new t(v,p,y,x),b=v.match(/[\uDC00-\uDFFF]/g),m=v.length-(b?b.length:0);return m<=p.maxLength||d.addError({name:"maxLength",argument:p.maxLength,message:"does not meet maximum length of "+p.maxLength}),d}},s.minItems=function(v,p,y,x){if(this.types.array(v)){var d=new t(v,p,y,x);return v.length>=p.minItems||d.addError({name:"minItems",argument:p.minItems,message:"does not meet minimum length of "+p.minItems}),d}},s.maxItems=function(v,p,y,x){if(this.types.array(v)){var d=new t(v,p,y,x);return v.length<=p.maxItems||d.addError({name:"maxItems",argument:p.maxItems,message:"does not meet maximum length of "+p.maxItems}),d}};function g(h,v,p){var y,x=p.length;for(y=v+1,x;y<x;y++)if(e.deepCompareStrict(h,p[y]))return!1;return!0}return s.uniqueItems=function(v,p,y,x){if(p.uniqueItems===!0&&this.types.array(v)){var d=new t(v,p,y,x);return v.every(g)||d.addError({name:"uniqueItems",message:"contains duplicate item"}),d}},s.dependencies=function(v,p,y,x){if(this.types.object(v)){var d=new t(v,p,y,x);for(var b in p.dependencies)if(v[b]!==void 0){var m=p.dependencies[b],S=x.makeChild(m,b);if(typeof m=="string"&&(m=[m]),Array.isArray(m))m.forEach(function(R){v[R]===void 0&&d.addError({name:"dependencies",argument:S.propertyPath,message:"property "+R+" not found, required by "+S.propertyPath})});else{var E=this.validateSchema(v,m,y,S);d.instance!==E.instance&&(d.instance=E.instance),E&&E.errors.length&&(d.addError({name:"dependencies",argument:S.propertyPath,message:"does not meet dependency required by "+S.propertyPath}),d.importErrors(E))}}return d}},s.enum=function(v,p,y,x){if(v===void 0)return null;if(!Array.isArray(p.enum))throw new r("enum expects an array",p);var d=new t(v,p,y,x);return p.enum.some(e.deepCompareStrict.bind(null,v))||d.addError({name:"enum",argument:p.enum,message:"is not one of enum values: "+p.enum.map(String).join(",")}),d},s.const=function(v,p,y,x){if(v===void 0)return null;var d=new t(v,p,y,x);return e.deepCompareStrict(p.const,v)||d.addError({name:"const",argument:p.const,message:"does not exactly match expected constant: "+p.const}),d},s.not=s.disallow=function(v,p,y,x){var d=this;if(v===void 0)return null;var b=new t(v,p,y,x),m=p.not||p.disallow;return m?(Array.isArray(m)||(m=[m]),m.forEach(function(S){if(d.testType(v,p,y,x,S)){var E=S&&(S.$id||S.id),R=E||S;b.addError({name:"not",argument:R,message:"is of prohibited type "+R})}}),b):null},dc=i,dc}var sa={},Wm;function zc(){if(Wm)return sa;Wm=1;var e=zn();sa.SchemaScanResult=t;function t(r,i){this.id=r,this.ref=i}return sa.scan=function(i,s){function a(h,v){if(!v||typeof v!="object")return;if(v.$ref){let d=e.resolveUrl(h,v.$ref);g[d]=g[d]?g[d]+1:0;return}var p=v.$id||v.id;let y=e.resolveUrl(h,p);var x=p?y:h;if(x){if(x.indexOf("#")<0&&(x+="#"),f[x]){if(!e.deepCompareStrict(f[x],v))throw new Error("Schema <"+x+"> already exists with different definition");return f[x]}f[x]=v,x[x.length-1]=="#"&&(f[x.substring(0,x.length-1)]=v)}u(x+"/items",Array.isArray(v.items)?v.items:[v.items]),u(x+"/extends",Array.isArray(v.extends)?v.extends:[v.extends]),a(x+"/additionalItems",v.additionalItems),c(x+"/properties",v.properties),a(x+"/additionalProperties",v.additionalProperties),c(x+"/definitions",v.definitions),c(x+"/patternProperties",v.patternProperties),c(x+"/dependencies",v.dependencies),u(x+"/disallow",v.disallow),u(x+"/allOf",v.allOf),u(x+"/anyOf",v.anyOf),u(x+"/oneOf",v.oneOf),a(x+"/not",v.not)}function u(h,v){if(Array.isArray(v))for(var p=0;p<v.length;p++)a(h+"/"+p,v[p])}function c(h,v){if(!(!v||typeof v!="object"))for(var p in v)a(h+"/"+p,v[p])}var f={},g={};return a(i,s),new t(f,g)},sa}var pc,Hm;function UL(){if(Hm)return pc;Hm=1;var e=HL(),t=zn(),r=zc().scan,i=t.ValidatorResult,s=t.ValidatorResultError,a=t.SchemaError,u=t.SchemaContext,c="/",f=function v(){this.customFormats=Object.create(v.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(h),this.attributes=Object.create(e.validators)};f.prototype.customFormats={},f.prototype.schemas=null,f.prototype.types=null,f.prototype.attributes=null,f.prototype.unresolvedRefs=null,f.prototype.addSchema=function(p,y){var x=this;if(!p)return null;var d=r(y||c,p),b=y||p.$id||p.id;for(var m in d.id)this.schemas[m]=d.id[m];for(var m in d.ref)this.unresolvedRefs.push(m);return this.unresolvedRefs=this.unresolvedRefs.filter(function(S){return typeof x.schemas[S]>"u"}),this.schemas[b]},f.prototype.addSubSchemaArray=function(p,y){if(Array.isArray(y))for(var x=0;x<y.length;x++)this.addSubSchema(p,y[x])},f.prototype.addSubSchemaObject=function(p,y){if(!(!y||typeof y!="object"))for(var x in y)this.addSubSchema(p,y[x])},f.prototype.setSchemas=function(p){this.schemas=p},f.prototype.getSchema=function(p){return this.schemas[p]},f.prototype.validate=function(p,y,x,d){if(typeof y!="boolean"&&typeof y!="object"||y===null)throw new a("Expected `schema` to be an object or boolean");x||(x={});var b=y.$id||y.id;let m=t.resolveUrl(x.base,b||"");if(!d){d=new u(y,x,[],m,Object.create(this.schemas)),d.schemas[m]||(d.schemas[m]=y);var S=r(m,y);for(var E in S.id){var R=S.id[E];d.schemas[E]=R}}if(x.required&&p===void 0){var O=new i(p,y,x,d);return O.addError("is required, but is undefined"),O}var O=this.validateSchema(p,y,x,d);if(O){if(x.throwAll&&O.errors.length)throw new s(O)}else throw new Error("Result undefined");return O};function g(v){var p=typeof v=="string"?v:v.$ref;return typeof p=="string"?p:!1}f.prototype.validateSchema=function(p,y,x,d){var b=new i(p,y,x,d);if(typeof y=="boolean")y===!0?y={}:y===!1&&(y={type:[]});else if(!y)throw new Error("schema is undefined");if(y.extends)if(Array.isArray(y.extends)){var m={schema:y,ctx:d};y.extends.forEach(this.schemaTraverser.bind(this,m)),y=m.schema,m.schema=null,m.ctx=null,m=null}else y=t.deepMerge(y,this.superResolve(y.extends,d));var S=g(y);if(S){var E=this.resolve(y,S,d),R=new u(E.subschema,x,d.path,E.switchSchema,d.schemas);return this.validateSchema(p,E.subschema,x,R)}var O=x&&x.skipAttributes||[];for(var k in y)if(!e.ignoreProperties[k]&&O.indexOf(k)<0){var W=null,M=this.attributes[k];if(M)W=M.call(this,p,y,x,d);else if(x.allowUnknownAttributes===!1)throw new a("Unsupported attribute: "+k,y);W&&b.importErrors(W)}if(typeof x.rewrite=="function"){var F=x.rewrite.call(this,p,y,x,d);b.instance=F}return b},f.prototype.schemaTraverser=function(p,y){p.schema=t.deepMerge(p.schema,this.superResolve(y,p.ctx))},f.prototype.superResolve=function(p,y){var x=g(p);return x?this.resolve(p,x,y).subschema:p},f.prototype.resolve=function(p,y,x){if(y=x.resolve(y),x.schemas[y])return{subschema:x.schemas[y],switchSchema:y};let b=new URL(y,"thismessage::/").hash;var m=b&&b.length&&y.substr(0,y.length-b.length);if(!m||!x.schemas[m])throw new a("no such schema <"+y+">",p);var S=t.objectGetPath(x.schemas[m],b.substr(1));if(S===void 0)throw new a("no such schema "+b+" located in <"+m+">",p);return{subschema:S,switchSchema:y}},f.prototype.testType=function(p,y,x,d,b){if(b!==void 0){if(b===null)throw new a('Unexpected null in "type" keyword');if(typeof this.types[b]=="function")return this.types[b].call(this,p);if(b&&typeof b=="object"){var m=this.validateSchema(p,b,x,d);return m===void 0||!(m&&m.errors.length)}return!0}};var h=f.prototype.types={};return h.string=function(p){return typeof p=="string"},h.number=function(p){return typeof p=="number"&&isFinite(p)},h.integer=function(p){return typeof p=="number"&&p%1===0},h.boolean=function(p){return typeof p=="boolean"},h.array=function(p){return Array.isArray(p)},h.null=function(p){return p===null},h.date=function(p){return p instanceof Date},h.any=function(p){return!0},h.object=function(p){return p&&typeof p=="object"&&!Array.isArray(p)&&!(p instanceof Date)},pc=f,pc}var Um;function qL(){if(Um)return _r;Um=1;var e=_r.Validator=UL();return _r.ValidatorResult=zn().ValidatorResult,_r.ValidatorResultError=zn().ValidatorResultError,_r.ValidationError=zn().ValidationError,_r.SchemaError=zn().SchemaError,_r.SchemaScanResult=zc().SchemaScanResult,_r.scan=zc().scan,_r.validate=function(t,r,i){var s=new e;return s.validate(t,r,i)},_r}var ZL=qL();const k0=(e,t,r)=>{const i=e instanceof RegExp?qm(e,r):e,s=t instanceof RegExp?qm(t,r):t,a=i!==null&&s!=null&&GL(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)}},qm=(e,t)=>{const r=t.match(e);return r?r[0]:null},GL=(e,t,r)=>{let i,s,a,u,c,f=r.indexOf(e),g=r.indexOf(t,f+1),h=f;if(f>=0&&g>0){if(e===t)return[f,g];for(i=[],a=r.length;h>=0&&!c;){if(h===f)i.push(h),f=r.indexOf(e,h+1);else if(i.length===1){const v=i.pop();v!==void 0&&(c=[v,g])}else s=i.pop(),s!==void 0&&s<a&&(a=s,u=g),g=r.indexOf(t,h+1);h=f<g&&f>=0?f:g}i.length&&u!==void 0&&(c=[a,u])}return c},$0="\0SLASH"+Math.random()+"\0",I0="\0OPEN"+Math.random()+"\0",jf="\0CLOSE"+Math.random()+"\0",L0="\0COMMA"+Math.random()+"\0",M0="\0PERIOD"+Math.random()+"\0",KL=new RegExp($0,"g"),VL=new RegExp(I0,"g"),YL=new RegExp(jf,"g"),XL=new RegExp(L0,"g"),JL=new RegExp(M0,"g"),QL=/\\\\/g,eM=/\\{/g,tM=/\\}/g,rM=/\\,/g,nM=/\\./g;function hc(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function iM(e){return e.replace(QL,$0).replace(eM,I0).replace(tM,jf).replace(rM,L0).replace(nM,M0)}function oM(e){return e.replace(KL,"\\").replace(VL,"{").replace(YL,"}").replace(XL,",").replace(JL,".")}function D0(e){if(!e)return[""];const t=[],r=k0("{","}",e);if(!r)return e.split(",");const{pre:i,body:s,post:a}=r,u=i.split(",");u[u.length-1]+="{"+s+"}";const c=D0(a);return a.length&&(u[u.length-1]+=c.shift(),u.push.apply(u,c)),t.push.apply(t,u),t}function sM(e){return e?(e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),_o(iM(e),!0).map(oM)):[]}function aM(e){return"{"+e+"}"}function uM(e){return/^-?0\d/.test(e)}function lM(e,t){return e<=t}function cM(e,t){return e>=t}function _o(e,t){const r=[],i=k0("{","}",e);if(!i)return[e];const s=i.pre,a=i.post.length?_o(i.post,!1):[""];if(/\$$/.test(i.pre))for(let u=0;u<a.length;u++){const c=s+"{"+i.body+"}"+a[u];r.push(c)}else{const u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),f=u||c,g=i.body.indexOf(",")>=0;if(!f&&!g)return i.post.match(/,(?!,).*\}/)?(e=i.pre+"{"+i.body+jf+i.post,_o(e)):[e];let h;if(f)h=i.body.split(/\.\./);else if(h=D0(i.body),h.length===1&&h[0]!==void 0&&(h=_o(h[0],!1).map(aM),h.length===1))return a.map(p=>i.pre+h[0]+p);let v;if(f&&h[0]!==void 0&&h[1]!==void 0){const p=hc(h[0]),y=hc(h[1]),x=Math.max(h[0].length,h[1].length);let d=h.length===3&&h[2]!==void 0?Math.abs(hc(h[2])):1,b=lM;y<p&&(d*=-1,b=cM);const S=h.some(uM);v=[];for(let E=p;b(E,y);E+=d){let R;if(c)R=String.fromCharCode(E),R==="\\"&&(R="");else if(R=String(E),S){const O=x-R.length;if(O>0){const k=new Array(O+1).join("0");E<0?R="-"+k+R.slice(1):R=k+R}}v.push(R)}}else{v=[];for(let p=0;p<h.length;p++)v.push.apply(v,_o(h[p],!1))}for(let p=0;p<v.length;p++)for(let y=0;y<a.length;y++){const x=s+v[p]+a[y];(!t||f||x)&&r.push(x)}}return r}const fM=1024*64,La=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>fM)throw new TypeError("pattern is too long")},dM={"[: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]},wo=e=>e.replace(/[[\]\\-]/g,"\\$&"),pM=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Zm=e=>e.join(""),hM=(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,c=!1,f=!1,g=!1,h=r,v="";e:for(;a<e.length;){const d=e.charAt(a);if((d==="!"||d==="^")&&a===r+1){g=!0,a++;continue}if(d==="]"&&u&&!f){h=a+1;break}if(u=!0,d==="\\"&&!f){f=!0,a++;continue}if(d==="["&&!f){for(const[b,[m,S,E]]of Object.entries(dM))if(e.startsWith(b,a)){if(v)return["$.",!1,e.length-r,!0];a+=b.length,E?s.push(m):i.push(m),c=c||S;continue e}}if(f=!1,v){d>v?i.push(wo(v)+"-"+wo(d)):d===v&&i.push(wo(d)),v="",a++;continue}if(e.startsWith("-]",a+1)){i.push(wo(d+"-")),a+=2;continue}if(e.startsWith("-",a+1)){v=d,a+=2;continue}i.push(wo(d)),a++}if(h<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])&&!g){const d=i[0].length===2?i[0].slice(-1):i[0];return[pM(d),!1,h-r,!1]}const p="["+(g?"^":"")+Zm(i)+"]",y="["+(g?"":"^")+Zm(s)+"]";return[i.length&&s.length?"("+p+"|"+y+")":i.length?p:y,c,h-r,!0]},Oo=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),gM=new Set(["!","?","+","*","@"]),Gm=e=>gM.has(e),mM="(?!(?:^|/)\\.\\.?(?:$|/))",aa="(?!\\.)",vM=new Set(["[","."]),yM=new Set(["..","."]),wM=new Set("().*{}+?[]^$\\!"),bM=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),zf="[^/]",Km=zf+"*?",Vm=zf+"+?";var ct,pt,Kr,Ge,st,gn,Bn,mn,Tr,Wn,Bo,Yn,F0,wn,ya,Bc,N0;const Pt=class Pt{constructor(t,r,i={}){Et(this,Yn);ve(this,"type");Et(this,ct);Et(this,pt);Et(this,Kr,!1);Et(this,Ge,[]);Et(this,st);Et(this,gn);Et(this,Bn);Et(this,mn,!1);Et(this,Tr);Et(this,Wn);Et(this,Bo,!1);this.type=t,t&&tt(this,pt,!0),tt(this,st,r),tt(this,ct,re(this,st)?re(re(this,st),ct):this),tt(this,Tr,re(this,ct)===this?i:re(re(this,ct),Tr)),tt(this,Bn,re(this,ct)===this?[]:re(re(this,ct),Bn)),t==="!"&&!re(re(this,ct),mn)&&re(this,Bn).push(this),tt(this,gn,re(this,st)?re(re(this,st),Ge).length:0)}get hasMagic(){if(re(this,pt)!==void 0)return re(this,pt);for(const t of re(this,Ge))if(typeof t!="string"&&(t.type||t.hasMagic))return tt(this,pt,!0);return re(this,pt)}toString(){return re(this,Wn)!==void 0?re(this,Wn):this.type?tt(this,Wn,this.type+"("+re(this,Ge).map(t=>String(t)).join("|")+")"):tt(this,Wn,re(this,Ge).map(t=>String(t)).join(""))}push(...t){for(const r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof Pt&&re(r,st)===this))throw new Error("invalid part: "+r);re(this,Ge).push(r)}}toJSON(){var r;const t=this.type===null?re(this,Ge).slice().map(i=>typeof i=="string"?i:i.toJSON()):[this.type,...re(this,Ge).map(i=>i.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===re(this,ct)||re(re(this,ct),mn)&&((r=re(this,st))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(re(this,ct)===this)return!0;if(!((r=re(this,st))!=null&&r.isStart()))return!1;if(re(this,gn)===0)return!0;const t=re(this,st);for(let i=0;i<re(this,gn);i++){const s=re(t,Ge)[i];if(!(s instanceof Pt&&s.type==="!"))return!1}return!0}isEnd(){var r,i,s;if(re(this,ct)===this||((r=re(this,st))==null?void 0:r.type)==="!")return!0;if(!((i=re(this,st))!=null&&i.isEnd()))return!1;if(!this.type)return(s=re(this,st))==null?void 0:s.isEnd();const t=re(this,st)?re(re(this,st),Ge).length:0;return re(this,gn)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new Pt(this.type,t);for(const i of re(this,Ge))r.copyIn(i);return r}static fromGlob(t,r={}){var s;const i=new Pt(null,void 0,r);return $e(s=Pt,wn,ya).call(s,t,i,0,r),i}toMMPattern(){if(this!==re(this,ct))return re(this,ct).toMMPattern();const t=this.toString(),[r,i,s,a]=this.toRegExpSource();if(!(s||re(this,pt)||re(this,Tr).nocase&&!re(this,Tr).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return i;const c=(re(this,Tr).nocase?"i":"")+(a?"u":"");return Object.assign(new RegExp(`^${r}$`,c),{_src:r,_glob:t})}get options(){return re(this,Tr)}toRegExpSource(t){var f;const r=t??!!re(this,Tr).dot;if(re(this,ct)===this&&$e(this,Yn,F0).call(this),!this.type){const g=this.isStart()&&this.isEnd(),h=re(this,Ge).map(x=>{var E;const[d,b,m,S]=typeof x=="string"?$e(E=Pt,wn,N0).call(E,x,re(this,pt),g):x.toRegExpSource(t);return tt(this,pt,re(this,pt)||m),tt(this,Kr,re(this,Kr)||S),d}).join("");let v="";if(this.isStart()&&typeof re(this,Ge)[0]=="string"&&!(re(this,Ge).length===1&&yM.has(re(this,Ge)[0]))){const d=vM,b=r&&d.has(h.charAt(0))||h.startsWith("\\.")&&d.has(h.charAt(2))||h.startsWith("\\.\\.")&&d.has(h.charAt(4)),m=!r&&!t&&d.has(h.charAt(0));v=b?mM:m?aa:""}let p="";return this.isEnd()&&re(re(this,ct),mn)&&((f=re(this,st))==null?void 0:f.type)==="!"&&(p="(?:$|\\/)"),[v+h+p,Oo(h),tt(this,pt,!!re(this,pt)),re(this,Kr)]}const i=this.type==="*"||this.type==="+",s=this.type==="!"?"(?:(?!(?:":"(?:";let a=$e(this,Yn,Bc).call(this,r);if(this.isStart()&&this.isEnd()&&!a&&this.type!=="!"){const g=this.toString();return tt(this,Ge,[g]),this.type=null,tt(this,pt,void 0),[g,Oo(this.toString()),!1,!1]}let u=!i||t||r||!aa?"":$e(this,Yn,Bc).call(this,!0);u===a&&(u=""),u&&(a=`(?:${a})(?:${u})*?`);let c="";if(this.type==="!"&&re(this,Bo))c=(this.isStart()&&!r?aa:"")+Vm;else{const g=this.type==="!"?"))"+(this.isStart()&&!r&&!t?aa:"")+Km+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&u?")":this.type==="*"&&u?")?":`)${this.type}`;c=s+a+g}return[c,Oo(a),tt(this,pt,!!re(this,pt)),re(this,Kr)]}};ct=new WeakMap,pt=new WeakMap,Kr=new WeakMap,Ge=new WeakMap,st=new WeakMap,gn=new WeakMap,Bn=new WeakMap,mn=new WeakMap,Tr=new WeakMap,Wn=new WeakMap,Bo=new WeakMap,Yn=new WeakSet,F0=function(){if(this!==re(this,ct))throw new Error("should only call on root");if(re(this,mn))return this;this.toString(),tt(this,mn,!0);let t;for(;t=re(this,Bn).pop();){if(t.type!=="!")continue;let r=t,i=re(r,st);for(;i;){for(let s=re(r,gn)+1;!i.type&&s<re(i,Ge).length;s++)for(const a of re(t,Ge)){if(typeof a=="string")throw new Error("string part in extglob AST??");a.copyIn(re(i,Ge)[s])}r=i,i=re(r,st)}}return this},wn=new WeakSet,ya=function(t,r,i,s){var y,x;let a=!1,u=!1,c=-1,f=!1;if(r.type===null){let d=i,b="";for(;d<t.length;){const m=t.charAt(d++);if(a||m==="\\"){a=!a,b+=m;continue}if(u){d===c+1?(m==="^"||m==="!")&&(f=!0):m==="]"&&!(d===c+2&&f)&&(u=!1),b+=m;continue}else if(m==="["){u=!0,c=d,f=!1,b+=m;continue}if(!s.noext&&Gm(m)&&t.charAt(d)==="("){r.push(b),b="";const S=new Pt(m,r);d=$e(y=Pt,wn,ya).call(y,t,S,d,s),r.push(S);continue}b+=m}return r.push(b),d}let g=i+1,h=new Pt(null,r);const v=[];let p="";for(;g<t.length;){const d=t.charAt(g++);if(a||d==="\\"){a=!a,p+=d;continue}if(u){g===c+1?(d==="^"||d==="!")&&(f=!0):d==="]"&&!(g===c+2&&f)&&(u=!1),p+=d;continue}else if(d==="["){u=!0,c=g,f=!1,p+=d;continue}if(Gm(d)&&t.charAt(g)==="("){h.push(p),p="";const b=new Pt(d,h);h.push(b),g=$e(x=Pt,wn,ya).call(x,t,b,g,s);continue}if(d==="|"){h.push(p),p="",v.push(h),h=new Pt(null,r);continue}if(d===")")return p===""&&re(r,Ge).length===0&&tt(r,Bo,!0),h.push(p),p="",r.push(...v,h),g;p+=d}return r.type=null,tt(r,pt,void 0),tt(r,Ge,[t.substring(i-1)]),g},Bc=function(t){return re(this,Ge).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[i,s,a,u]=r.toRegExpSource(t);return tt(this,Kr,re(this,Kr)||u),i}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},N0=function(t,r,i=!1){let s=!1,a="",u=!1;for(let c=0;c<t.length;c++){const f=t.charAt(c);if(s){s=!1,a+=(wM.has(f)?"\\":"")+f;continue}if(f==="\\"){c===t.length-1?a+="\\\\":s=!0;continue}if(f==="["){const[g,h,v,p]=hM(t,c);if(v){a+=g,u=u||h,c+=v-1,r=r||p;continue}}if(f==="*"){i&&t==="*"?a+=Vm:a+=Km,r=!0;continue}if(f==="?"){a+=zf,r=!0;continue}a+=bM(f)}return[a,Oo(t),!!r,u]},Et(Pt,wn);let Ma=Pt;const xM=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),Ot=(e,t,r={})=>(La(t),!r.nocomment&&t.charAt(0)==="#"?!1:new eu(t,r).match(e)),SM=/^\*+([^+@!?\*\[\(]*)$/,EM=e=>t=>!t.startsWith(".")&&t.endsWith(e),_M=e=>t=>t.endsWith(e),OM=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),TM=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),AM=/^\*+\.\*+$/,RM=e=>!e.startsWith(".")&&e.includes("."),PM=e=>e!=="."&&e!==".."&&e.includes("."),CM=/^\.\*+$/,kM=e=>e!=="."&&e!==".."&&e.startsWith("."),$M=/^\*+$/,IM=e=>e.length!==0&&!e.startsWith("."),LM=e=>e.length!==0&&e!=="."&&e!=="..",MM=/^\?+([^+@!?\*\[\(]*)?$/,DM=([e,t=""])=>{const r=j0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},FM=([e,t=""])=>{const r=z0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},NM=([e,t=""])=>{const r=z0([e]);return t?i=>r(i)&&i.endsWith(t):r},jM=([e,t=""])=>{const r=j0([e]);return t?i=>r(i)&&i.endsWith(t):r},j0=([e])=>{const t=e.length;return r=>r.length===t&&!r.startsWith(".")},z0=([e])=>{const t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},B0=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Ym={win32:{sep:"\\"},posix:{sep:"/"}},zM=B0==="win32"?Ym.win32.sep:Ym.posix.sep;Ot.sep=zM;const or=Symbol("globstar **");Ot.GLOBSTAR=or;const BM="[^/]",WM=BM+"*?",HM="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",UM="(?:(?!(?:\\/|^)\\.).)*?",qM=(e,t={})=>r=>Ot(r,e,t);Ot.filter=qM;const ir=(e,t={})=>Object.assign({},e,t),ZM=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Ot;const t=Ot;return Object.assign((i,s,a={})=>t(i,s,ir(e,a)),{Minimatch:class extends t.Minimatch{constructor(s,a={}){super(s,ir(e,a))}static defaults(s){return t.defaults(ir(e,s)).Minimatch}},AST:class extends t.AST{constructor(s,a,u={}){super(s,a,ir(e,u))}static fromGlob(s,a={}){return t.AST.fromGlob(s,ir(e,a))}},unescape:(i,s={})=>t.unescape(i,ir(e,s)),escape:(i,s={})=>t.escape(i,ir(e,s)),filter:(i,s={})=>t.filter(i,ir(e,s)),defaults:i=>t.defaults(ir(e,i)),makeRe:(i,s={})=>t.makeRe(i,ir(e,s)),braceExpand:(i,s={})=>t.braceExpand(i,ir(e,s)),match:(i,s,a={})=>t.match(i,s,ir(e,a)),sep:t.sep,GLOBSTAR:or})};Ot.defaults=ZM;const W0=(e,t={})=>(La(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:sM(e));Ot.braceExpand=W0;const GM=(e,t={})=>new eu(e,t).makeRe();Ot.makeRe=GM;const KM=(e,t,r={})=>{const i=new eu(t,r);return e=e.filter(s=>i.match(s)),i.options.nonull&&!e.length&&e.push(t),e};Ot.match=KM;const Xm=/[?*]|[+@!]\(.*?\)|\[|\]/,VM=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class eu{constructor(t,r={}){ve(this,"options");ve(this,"set");ve(this,"pattern");ve(this,"windowsPathsNoEscape");ve(this,"nonegate");ve(this,"negate");ve(this,"comment");ve(this,"empty");ve(this,"preserveMultipleSlashes");ve(this,"partial");ve(this,"globSet");ve(this,"globParts");ve(this,"nocase");ve(this,"isWindows");ve(this,"platform");ve(this,"windowsNoMagicRoot");ve(this,"regexp");La(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||B0,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){const t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...a)=>console.error(...a)),this.debug(this.pattern,this.globSet);const 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,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){const f=a[0]===""&&a[1]===""&&(a[2]==="?"||!Xm.test(a[2]))&&!Xm.test(a[3]),g=/^[a-z]:/i.test(a[0]);if(f)return[...a.slice(0,4),...a.slice(4).map(h=>this.parse(h))];if(g)return[a[0],...a.slice(1).map(h=>this.parse(h))]}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(let i=0;i<t.length;i++)for(let s=0;s<t[i].length;s++)t[i][s]==="**"&&(t[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!=="**"&&(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 c=i[s+1];const f=i[s+2],g=i[s+3];if(c!==".."||!f||f==="."||f===".."||!g||g==="."||g==="..")continue;r=!0,i.splice(s,1);const h=i.slice(0);h[s]="**",t.push(h),s--}if(!this.preserveMultipleSlashes){for(let u=1;u<i.length-1;u++){const c=i[u];u===1&&c===""&&i[0]===""||(c==="."||c==="")&&(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=[],c="";for(;s<t.length&&a<r.length;)if(t[s]===r[a])u.push(c==="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(c==="b")return!1;c="a",u.push(t[s]),s++,a++}else if(r[a]==="*"&&t[s]&&(this.options.dot||!t[s].startsWith("."))&&t[s]!=="**"){if(c==="a")return!1;c="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){const s=this.options;if(this.isWindows){const d=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),b=!d&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),m=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),S=!m&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),E=b?3:d?0:void 0,R=S?3:m?0:void 0;if(typeof E=="number"&&typeof R=="number"){const[O,k]=[t[E],r[R]];O.toLowerCase()===k.toLowerCase()&&(r[R]=O,R>E?r=r.slice(R):E>R&&(t=t.slice(E)))}}const{optimizationLevel:a=1}=this.options;a>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var u=0,c=0,f=t.length,g=r.length;u<f&&c<g;u++,c++){this.debug("matchOne loop");var h=r[c],v=t[u];if(this.debug(r,h,v),h===!1)return!1;if(h===or){this.debug("GLOBSTAR",[r,h,v]);var p=u,y=c+1;if(y===g){for(this.debug("** at the end");u<f;u++)if(t[u]==="."||t[u]===".."||!s.dot&&t[u].charAt(0)===".")return!1;return!0}for(;p<f;){var x=t[p];if(this.debug(`
206
- globstar while`,t,p,r,y,x),this.matchOne(t.slice(p),r.slice(y),i))return this.debug("globstar found match!",p,f,x),!0;if(x==="."||x===".."||!s.dot&&x.charAt(0)==="."){this.debug("dot detected!",t,p,r,y);break}this.debug("globstar swallow a segment, and continue"),p++}return!!(i&&(this.debug(`
207
- >>> no match, partial?`,t,p,r,y),p===f))}let d;if(typeof h=="string"?(d=v===h,this.debug("string match",h,v,d)):(d=h.test(v),this.debug("pattern match",h,v,d)),!d)return!1}if(u===f&&c===g)return!0;if(u===f)return i;if(c===g)return u===f-1&&t[u]==="";throw new Error("wtf?")}braceExpand(){return W0(this.pattern,this.options)}parse(t){La(t);const r=this.options;if(t==="**")return or;if(t==="")return"";let i,s=null;(i=t.match($M))?s=r.dot?LM:IM:(i=t.match(SM))?s=(r.nocase?r.dot?TM:OM:r.dot?_M:EM)(i[1]):(i=t.match(MM))?s=(r.nocase?r.dot?FM:DM:r.dot?NM:jM)(i):(i=t.match(AM))?s=r.dot?PM:RM:(i=t.match(CM))&&(s=kM);const a=Ma.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?WM:r.dot?HM:UM,s=new Set(r.nocase?["i"]:[]);let a=t.map(f=>{const g=f.map(h=>{if(h instanceof RegExp)for(const v of h.flags.split(""))s.add(v);return typeof h=="string"?VM(h):h===or?or:h._src});return g.forEach((h,v)=>{const p=g[v+1],y=g[v-1];h!==or||y===or||(y===void 0?p!==void 0&&p!==or?g[v+1]="(?:\\/|"+i+"\\/)?"+p:g[v]=i:p===void 0?g[v-1]=y+"(?:\\/|"+i+")?":p!==or&&(g[v-1]=y+"(?:\\/|\\/"+i+"\\/)"+p,g[v+1]=or))}),g.filter(h=>h!==or).join("/")}).join("|");const[u,c]=t.length>1?["(?:",")"]:["",""];a="^"+u+a+c+"$",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 c=s.length-2;!u&&c>=0;c--)u=s[c];for(let c=0;c<a.length;c++){const f=a[c];let g=s;if(i.matchBase&&f.length===1&&(g=[u]),this.matchOne(g,f,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(t){return Ot.defaults(t).Minimatch}}Ot.AST=Ma;Ot.Minimatch=eu;Ot.escape=xM;Ot.unescape=Oo;const zo="/$shared",YM={"**/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 H0(e){const t=Object.entries(YM).find(([r])=>Ot(e,r));return t==null?void 0:t[1]}function tu(e){var i;const t=(i=H0(e))==null?void 0:i.content;if(!t)return;const r=e.replace(`${zo}/`,"Shared/");Bf({name:r,content:t,asText:typeof t=="string"})}async function XM(){const e=["CustomComponents/manifest.json","shared_app_events.json","shared_css.json","saved_conditions.json","i18n.json"];for(const t of e)try{await De(`${zo}/${t}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch(r){U0(r)&&tu(`${zo}/${t}`)}}function Vo({path:e,createIfNotExists:t=!1}){const r=`${zo}/${e}`;return De(`${r}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})}).then(i=>{const s=H0(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 ZL.Validator().validate(a,s.schema).valid)throw new Error("Invalid Schema");return a}).catch(i=>{if(U0(i)&&t){const s=JM(i,e);o0.next({message:s,kind:"warning"}),tu(r)}throw i})}function U0(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 JM(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 QM(e){return De(Ko,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function e2(e){return De(Ko,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const q0=()=>{const{host:e,protocol:t}=window.location,r=t==="https:";return{projectOpened:!1,remoteDebuggerMode:If.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${r?"s":""}://${e}/remoteDebugger`,lsp:`ws${r?"s":""}://${e}/LSP`},isRestActive:!0}};async function t2(){const{hostname:e,host:t,protocol:r}=window.location,i=r==="https:";try{const s=await De(at,{method:"POST",body:JSON.stringify({verb:En.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),a=(()=>{if(s.rendererPath)return s.rendererPath;const u=`http://${e}:${s.webServerHTTPPort}`,c=`https://${e}:${s.webServerHTTPSPort}`;return s.webServerHTTPPort&&s.webServerHTTPSPort?i?c:u:s.webServerHTTPPort?u:c})();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),q0()}}async function Z0(e){return await De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function r2(...e){return(await Promise.all(e.map(i=>Z0({root:i,verb:En.GET_FOLDER})))).map(({children:i})=>i.map(({name:s,date:a,type:u})=>({name:s,type:u,date:a,path:`${u}/${s}`}))).flat()}function n2(e,t={}){const{sanitize:r=!0}=t;return De(`/rest/$getWebForm/${e}`,{method:"GET"}).then(i=>{if(!(i!=null&&i.components)||!r)return i;const s=new Map;return{...i,components:Ne.entries(i.components).map(([a,u])=>{const c=a,{resolvedName:f}=u.type;if(f==="WebformLoader"){const g=Zn.generate();s.set(a,g),a=g}return[a,u,c]}).reduce((a,[u,c,f])=>{var g;return c.nodes&&(c.nodes=c.nodes.map(h=>s.get(h)||h)),c.linkedNodes&&(c.linkedNodes=Ne.entries(c.linkedNodes).reduce((h,[v,p])=>({...h,[v]:s.get(p)||p}),{})),(g=c.props)!=null&&g.events&&(c.props.events=c.props.events.map(h=>(h.type==="navigation"&&h.loader&&(h.loader=s.get(h.loader)||h.loader),h))),{...a,[u]:{...c,props:{...c.props,__originalID:f}}}},{})}})}function i2(e){return De(at,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(t=>({...t,content:[Xe.METHOD,Xe.CLASS].includes(t.type)?Ja(t.content):t.content}))}function o2(e){return e.type==="folder"?De(Ko,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function s2(e){return e.type==="folder"?(await De(Ko,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function a2(e){return De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function u2(e){return De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function l2(e){return(await De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function c2(...e){return await De(at,{method:"POST",body:JSON.stringify({verb:En.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function f2(e){const t=await De("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return t.isLogged&&t.success}async function d2(){return await De("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function p2(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 h2({name:e,path:t="",root:r="root",asText:i=!1}){return De(at,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:r,path:t,name:e,asText:i}),headers:new Headers({"Content-Type":"application/json"})})}async function g2(e={}){try{return await Vo({path:"shared_datasources.json",...e})}catch{return{}}}async function m2(e={}){try{return await Vo({path:"shared_app_events.json",...e})}catch{return[]}}async function v2(e={}){try{return await Vo({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function y2(e={}){try{return await Vo({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function w2(){try{return await De("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function b2(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const x2=Mf(),S2=async e=>{const t={verb:En.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:e};return x2(async()=>(await De(at,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}),e))},E2=Mf(),_2=async e=>{const t={verb:En.SET_FILE_CONTENT,asText:!1,name:"shared_app_events.json",path:"",root:"shared",content:e};return E2(async()=>(await De(at,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}),e))},Bf=async e=>{const t=await De(at,{method:"POST",body:JSON.stringify({...e,verb:En.SET_FILE_CONTENT,root:$f.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),r=Lf(`${e.path||"Sources"}/${e.name}`);return{...t,type:r,size:0}},O2=async e=>await Bf({name:"crafted_components.json",path:yn.WEBFORMS,content:e});function T2(e){return De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function A2(e){return De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function R2(e){return De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function P2(e){return De(at,{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)?Ja(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&&tu(e.path),t})}function C2(e){return De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function k2(e){const t=new RegExp(/^\((.+)(?=\))/gi).exec(e);return t!==null?t[1]:""}function $2(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 I2(e){const t=k2(e).split(/[;,]/g).filter(Boolean).map(s=>{const a=s.split(":")[0].trim(),u=s.split(":")[1].trim();return{name:a,type:u}}),r=$2(e),i=r?{name:r.split(":")[0].trim(),type:r.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:t,result:i}}async function L2(e,t){const i=e.split(".").pop();try{const s=await De(at,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:t,functionName:i}),headers:new Headers({"Content-Type":"application/json"})});s.content=Ja(s.content);const{params:a,result:u}=I2(s.parameters);return{...s,params:a,returns:u}}catch(s){return console.error(s),{className:t,functionName:i,filePath:e,content:"",params:[]}}}var G0=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(G0||{});function M2(e,t){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...t}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(r=>{})}function D2(e){window.pagesense=window.pagesense||[],window.pagesense.push(["trackEvent",e])}var K0=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(K0||{}),V0=(e=>(e[e.METHOD=1]="METHOD",e[e.CLASS=10]="CLASS",e))(V0||{}),Y0=(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))(Y0||{}),X0=(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))(X0||{});const F2={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},N2={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=at;exports.AppLoader=c$;exports.BaseCheckboxIcon=Wy;exports.Checkbox=L$;exports.ControlledSwitch=Ey;exports.DATASOURCE_THEMES=F2;exports.DatasourcesActions=i0;exports.DebuggerActions=u0;exports.DefaultCheckboxIcon=Hy;exports.DesignerRequestVerb=En;exports.Dialog=qT;exports.DialogBody=dv;exports.EActivity=G0;exports.EDITOR=N2;exports.EIDENTIFIERS=Y0;exports.EPermissionType=Me;exports.ERROR_CODES=X0;exports.ESubPermissionType=qe;exports.EWebFormStyleClassScope=K0;exports.EXT_API_PREFIX=Ko;exports.FileFolderType=Xe;exports.FloatingTooltip=k$;exports.FolderRootPath=yn;exports.FolderRootType=$f;exports.HTTPError=jc;exports.HTTP_HANDLERS_TAB_PATH=f0;exports.IPreemptive=jo;exports.IPublished=x0;exports.IPublishedRestScope=Df;exports.IdentityProvider=eI;exports.Incase=da;exports.IndentLines=Tv;exports.LOCALIZATION_TAB_PATH=d0;exports.LogoSVG=Ny;exports.LspActions=a0;exports.MAX_FILE_NAME_LENGTH=Cf;exports.MODEL_TAB_PATH=WI;exports.Modal=h$;exports.ModalCloseReason=yi;exports.ModalColor=Un;exports.ModalIcons=kc;exports.ModalType=xf;exports.Mutex=p0;exports.NameError=kf;exports.Overlay=fv;exports.PANEL_EXPANDED_HEIGHT=ma;exports.PANEL_INITIAL_HEIGHT=Fn;exports.PERMISSIONS=Ff;exports.Panel=I$;exports.PopperTooltip=Fy;exports.Portal=ev;exports.PublishOptions=mL;exports.ROLES_TAB_PATH=l0;exports.RemoteDebuggerMode=If;exports.SETTINGS_TAB_PATH=c0;exports.SHARED_API_PREFIX=zo;exports.SourceCodeDescriptor=V0;exports.Switcher=Av;exports.TabEventsActions=s0;exports.Tip=fy;exports.TipsProvider=yC;exports.Toast=JA;exports.ToolbarIcon=M$;exports.Tooltip=u$;exports.Tree=mR;exports.TreeIcon=Sv;exports.TreeNode=Jc;exports.WebformActions=n0;exports.WebformEventsActions=No;exports.ZoomComponent=v$;exports.ZoomLevel=zy;exports._isArrayDatasource=fL;exports._isObjectDatasource=dL;exports.actionsToPrivs=A0;exports.addAttributesToContent=yL;exports.addFolder=a2;exports.addPermission=$L;exports.addPrivilegeIn=_L;exports.allowed=SL;exports.by=h0;exports.byId=VI;exports.byPath=YI;exports.callServerSideParser=WL;exports.checkUpdates=QM;exports.children=Ia;exports.createFolder=T2;exports.createPrivilege=TL;exports.createRole=NL;exports.datasourcesSubject=$I;exports.debuggerSubject=DI;exports.dropFile=s2;exports.dropFolder=l2;exports.exists=XI;exports.extractWebformName=qI;exports.generateUUID=wL;exports.getAppSettings=t2;exports.getCatalog=d2;exports.getDatasourceId=QI;exports.getDefaultAppSettings=q0;exports.getDictByName=P0;exports.getFile=i2;exports.getFileContent=h2;exports.getFileExtentionFromType=UI;exports.getFilenameAndTypeFromPath=HI;exports.getFilenameFromType=ZI;exports.getFilesInfo=c2;exports.getFolder=Z0;exports.getFolders=r2;exports.getFunctionContent=L2;exports.getGraphData=kL;exports.getInheritedResources=C0;exports.getMonacoTheme=b2;exports.getNodeInfo=P2;exports.getPrivilegeById=Xr;exports.getPromotions=FL;exports.getResourceFromType=Nf;exports.getSavedConditions=y2;exports.getSharedAppEvents=m2;exports.getSharedCSS=v2;exports.getSharedDatasources=g2;exports.getSharedResource=Vo;exports.getSupportedLanguages=p2;exports.getTypeFromExtension=Lf;exports.getUserPrivileges=w2;exports.getWebForm=n2;exports.hasAttributesString=E0;exports.http=De;exports.i18nSubject=NI;exports.initializeDefaultProjectFiles=XM;exports.installUpdates=e2;exports.isArrayDatasource=y0;exports.isDataClassMethod=nL;exports.isDataStoreMethod=rL;exports.isDateDatasource=pL;exports.isEntity=lL;exports.isEntityDatasource=sL;exports.isEntityMethod=iL;exports.isEntitySelection=cL;exports.isEntitySelectionDatasource=aL;exports.isEntitySelectionMethod=oL;exports.isObjectAttribute=eL;exports.isObjectDatasource=w0;exports.isRelatedAttribute=tL;exports.isRelatedEntitiesAttribute=m0;exports.isRelatedEntityAttribute=v0;exports.isScalarDatasource=b0;exports.isSimpleAttribute=g0;exports.isSimpleDatasource=uL;exports.loadDS=hL;exports.loadI18n=gL;exports.localeCompare=JI;exports.log=M2;exports.login=f2;exports.lspSubject=MI;exports.moveItem=R2;exports.outBy=GI;exports.outById=KI;exports.parents=Qa;exports.parseAttributes=vL;exports.populateShallow=RL;exports.queue=Mf;exports.removeAttributesString=_0;exports.removeItem=A2;exports.removeMultiplePermissions=LL;exports.removePermission=IL;exports.removePrivilege=EL;exports.removePrivilegeFrom=OL;exports.removeRole=jL;exports.renameFile=o2;exports.renameFolder=u2;exports.renamePrivilege=AL;exports.resetResources=ML;exports.rolesToAPI=CL;exports.sanitizeContent=Ja;exports.sanitizeNameCY=bL;exports.sanitizePermissions=R0;exports.sanitizePrivileges=O0;exports.sanitizeRoles=PL;exports.saveContent=C2;exports.saveRole=zL;exports.setCraftedComponents=O2;exports.setFileContent=Bf;exports.setSharedAppEvents=_2;exports.setSharedSources=S2;exports.sortPrivileges=T0;exports.stringifyAttributes=S0;exports.tabEventsSubject=LI;exports.tasksManagerSubject=FI;exports.toastSubject=o0;exports.togglePermission=DL;exports.trackEvent=D2;exports.transformDates=BL;exports.tryCreateSharedResource=tu;exports.uniquePush=lr;exports.useDidMountEffect=D$;exports.useDoubleClick=iI;exports.useEnhancedState=wI;exports.useFeatureFlags=Q$;exports.useForwardedRef=J$;exports.useHotkeys=K$;exports.useIdentity=tI;exports.useOutsideClick=V$;exports.usePrevious=Y$;exports.useStateObject=rI;exports.useStateRef=X$;exports.useTip=cy;exports.validateName=Xa;exports.validateServerSide=jI;exports.validateValue=zI;exports.webformEventsSubject=ka;exports.webformSubject=II;
198
+ `)+le+`return __p
199
+ }`;var Ie=ov(function(){return je(P,xe+"return "+le).apply(r,D)});if(Ie.source=le,Mu(Ie))throw Ie;return Ie}function LT(i){return He(i).toLowerCase()}function zT(i){return He(i).toUpperCase()}function jT(i,s,f){if(i=He(i),i&&(f||s===r))return hh(i);if(!i||!(s=ar(s)))return i;var _=$r(i),O=$r(s),P=gh(_,O),D=vh(_,O)+1;return Fn(_,P,D).join("")}function FT(i,s,f){if(i=He(i),i&&(f||s===r))return i.slice(0,bh(i)+1);if(!i||!(s=ar(s)))return i;var _=$r(i),O=vh(_,$r(s))+1;return Fn(_,0,O).join("")}function HT(i,s,f){if(i=He(i),i&&(f||s===r))return i.replace(Mc,"");if(!i||!(s=ar(s)))return i;var _=$r(i),O=gh(_,$r(s));return Fn(_,O).join("")}function WT(i,s){var f=V,_=$;if(ut(s)){var O="separator"in s?s.separator:O;f="length"in s?Ce(s.length):f,_="omission"in s?ar(s.omission):_}i=He(i);var P=i.length;if(Bi(i)){var D=$r(i);P=D.length}if(f>=P)return i;var W=f-Vi(_);if(W<1)return _;var G=D?Fn(D,0,W).join(""):i.slice(0,W);if(O===r)return G+_;if(D&&(W+=G.length-W),Du(O)){if(i.slice(W).search(O)){var ie,oe=G;for(O.global||(O=Xc(O.source,He($p.exec(O))+"g")),O.lastIndex=0;ie=O.exec(oe);)var le=ie.index;G=G.slice(0,le===r?W:le)}}else if(i.indexOf(ar(O),W)!=W){var ve=G.lastIndexOf(O);ve>-1&&(G=G.slice(0,ve))}return G+_}function BT(i){return i=He(i),i&&eS.test(i)?i.replace(Np,b_):i}var VT=Xi(function(i,s,f){return i+(f?" ":"")+s.toUpperCase()}),zu=ag("toUpperCase");function iv(i,s,f){return i=He(i),s=f?r:s,s===r?p_(i)?x_(i):i_(i):i.match(s)||[]}var ov=Ne(function(i,s){try{return ir(i,r,s)}catch(f){return Mu(f)?f:new Ae(f)}}),UT=vn(function(i,s){return br(s,function(f){f=Kr(f),hn(i,f,Iu(i[f],i))}),i});function qT(i){var s=i==null?0:i.length,f=_e();return i=s?st(i,function(_){if(typeof _[1]!="function")throw new yr(l);return[f(_[0]),_[1]]}):[],Ne(function(_){for(var O=-1;++O<s;){var P=i[O];if(ir(P[0],this,_))return ir(P[1],this,_)}})}function GT(i){return bE(xr(i,h))}function ju(i){return function(){return i}}function YT(i,s){return i==null||i!==i?s:i}var KT=lg(),ZT=lg(!0);function er(i){return i}function Fu(i){return zh(typeof i=="function"?i:xr(i,h))}function XT(i){return Fh(xr(i,h))}function JT(i,s){return Hh(i,xr(s,h))}var QT=Ne(function(i,s){return function(f){return Lo(f,i,s)}}),eR=Ne(function(i,s){return function(f){return Lo(i,f,s)}});function Hu(i,s,f){var _=Pt(s),O=Es(s,_);f==null&&!(ut(s)&&(O.length||!_.length))&&(f=s,s=i,i=this,O=Es(s,Pt(s)));var P=!(ut(f)&&"chain"in f)||!!f.chain,D=bn(i);return br(O,function(W){var G=s[W];i[W]=G,D&&(i.prototype[W]=function(){var ie=this.__chain__;if(P||ie){var oe=i(this.__wrapped__),le=oe.__actions__=Xt(this.__actions__);return le.push({func:G,args:arguments,thisArg:i}),oe.__chain__=ie,oe}return G.apply(i,Mn([this.value()],arguments))})}),i}function tR(){return Nt._===this&&(Nt._=A_),this}function Wu(){}function rR(i){return i=Ce(i),Ne(function(s){return Wh(s,i)})}var nR=yu(st),iR=yu(ch),oR=yu(Vc);function av(i){return Ou(i)?Uc(Kr(i)):DE(i)}function aR(i){return function(s){return i==null?r:gi(i,s)}}var sR=ug(),lR=ug(!0);function Bu(){return[]}function Vu(){return!1}function cR(){return{}}function uR(){return""}function fR(){return!0}function dR(i,s){if(i=Ce(i),i<1||i>K)return[];var f=U,_=jt(i,U);s=_e(s),i-=U;for(var O=Yc(_,s);++f<i;)s(f);return O}function pR(i){return Te(i)?st(i,Kr):sr(i)?[i]:Xt(Og(He(i)))}function hR(i){var s=++k_;return He(i)+s}var gR=Cs(function(i,s){return i+s},0),vR=wu("ceil"),mR=Cs(function(i,s){return i/s},1),bR=wu("floor");function yR(i){return i&&i.length?_s(i,er,ou):r}function wR(i,s){return i&&i.length?_s(i,_e(s,2),ou):r}function xR(i){return dh(i,er)}function SR(i,s){return dh(i,_e(s,2))}function _R(i){return i&&i.length?_s(i,er,cu):r}function ER(i,s){return i&&i.length?_s(i,_e(s,2),cu):r}var kR=Cs(function(i,s){return i*s},1),OR=wu("round"),AR=Cs(function(i,s){return i-s},0);function TR(i){return i&&i.length?Gc(i,er):0}function RR(i,s){return i&&i.length?Gc(i,_e(s,2)):0}return T.after=XO,T.ary=Lg,T.assign=zA,T.assignIn=Xg,T.assignInWith=Bs,T.assignWith=jA,T.at=FA,T.before=zg,T.bind=Iu,T.bindAll=UT,T.bindKey=jg,T.castArray=cA,T.chain=Mg,T.chunk=bk,T.compact=yk,T.concat=wk,T.cond=qT,T.conforms=GT,T.constant=ju,T.countBy=TO,T.create=HA,T.curry=Fg,T.curryRight=Hg,T.debounce=Wg,T.defaults=WA,T.defaultsDeep=BA,T.defer=JO,T.delay=QO,T.difference=xk,T.differenceBy=Sk,T.differenceWith=_k,T.drop=Ek,T.dropRight=kk,T.dropRightWhile=Ok,T.dropWhile=Ak,T.fill=Tk,T.filter=CO,T.flatMap=NO,T.flatMapDeep=MO,T.flatMapDepth=DO,T.flatten=Cg,T.flattenDeep=Rk,T.flattenDepth=Ck,T.flip=eA,T.flow=KT,T.flowRight=ZT,T.fromPairs=Pk,T.functions=ZA,T.functionsIn=XA,T.groupBy=$O,T.initial=Nk,T.intersection=Mk,T.intersectionBy=Dk,T.intersectionWith=$k,T.invert=QA,T.invertBy=eT,T.invokeMap=zO,T.iteratee=Fu,T.keyBy=jO,T.keys=Pt,T.keysIn=Qt,T.map=Ls,T.mapKeys=rT,T.mapValues=nT,T.matches=XT,T.matchesProperty=JT,T.memoize=js,T.merge=iT,T.mergeWith=Jg,T.method=QT,T.methodOf=eR,T.mixin=Hu,T.negate=Fs,T.nthArg=rR,T.omit=oT,T.omitBy=aT,T.once=tA,T.orderBy=FO,T.over=nR,T.overArgs=rA,T.overEvery=iR,T.overSome=oR,T.partial=Nu,T.partialRight=Bg,T.partition=HO,T.pick=sT,T.pickBy=Qg,T.property=av,T.propertyOf=aR,T.pull=Fk,T.pullAll=Ig,T.pullAllBy=Hk,T.pullAllWith=Wk,T.pullAt=Bk,T.range=sR,T.rangeRight=lR,T.rearg=nA,T.reject=VO,T.remove=Vk,T.rest=iA,T.reverse=Cu,T.sampleSize=qO,T.set=cT,T.setWith=uT,T.shuffle=GO,T.slice=Uk,T.sortBy=ZO,T.sortedUniq=Jk,T.sortedUniqBy=Qk,T.split=NT,T.spread=oA,T.tail=eO,T.take=tO,T.takeRight=rO,T.takeRightWhile=nO,T.takeWhile=iO,T.tap=yO,T.throttle=aA,T.thru=$s,T.toArray=Yg,T.toPairs=ev,T.toPairsIn=tv,T.toPath=pR,T.toPlainObject=Zg,T.transform=fT,T.unary=sA,T.union=oO,T.unionBy=aO,T.unionWith=sO,T.uniq=lO,T.uniqBy=cO,T.uniqWith=uO,T.unset=dT,T.unzip=Pu,T.unzipWith=Ng,T.update=pT,T.updateWith=hT,T.values=eo,T.valuesIn=gT,T.without=fO,T.words=iv,T.wrap=lA,T.xor=dO,T.xorBy=pO,T.xorWith=hO,T.zip=gO,T.zipObject=vO,T.zipObjectDeep=mO,T.zipWith=bO,T.entries=ev,T.entriesIn=tv,T.extend=Xg,T.extendWith=Bs,Hu(T,T),T.add=gR,T.attempt=ov,T.camelCase=yT,T.capitalize=rv,T.ceil=vR,T.clamp=vT,T.clone=uA,T.cloneDeep=dA,T.cloneDeepWith=pA,T.cloneWith=fA,T.conformsTo=hA,T.deburr=nv,T.defaultTo=YT,T.divide=mR,T.endsWith=wT,T.eq=zr,T.escape=xT,T.escapeRegExp=ST,T.every=RO,T.find=PO,T.findIndex=Tg,T.findKey=VA,T.findLast=IO,T.findLastIndex=Rg,T.findLastKey=UA,T.floor=bR,T.forEach=Dg,T.forEachRight=$g,T.forIn=qA,T.forInRight=GA,T.forOwn=YA,T.forOwnRight=KA,T.get=$u,T.gt=gA,T.gte=vA,T.has=JA,T.hasIn=Lu,T.head=Pg,T.identity=er,T.includes=LO,T.indexOf=Ik,T.inRange=mT,T.invoke=tT,T.isArguments=bi,T.isArray=Te,T.isArrayBuffer=mA,T.isArrayLike=Jt,T.isArrayLikeObject=vt,T.isBoolean=bA,T.isBuffer=Hn,T.isDate=yA,T.isElement=wA,T.isEmpty=xA,T.isEqual=SA,T.isEqualWith=_A,T.isError=Mu,T.isFinite=EA,T.isFunction=bn,T.isInteger=Vg,T.isLength=Hs,T.isMap=Ug,T.isMatch=kA,T.isMatchWith=OA,T.isNaN=AA,T.isNative=TA,T.isNil=CA,T.isNull=RA,T.isNumber=qg,T.isObject=ut,T.isObjectLike=ht,T.isPlainObject=Bo,T.isRegExp=Du,T.isSafeInteger=PA,T.isSet=Gg,T.isString=Ws,T.isSymbol=sr,T.isTypedArray=Qi,T.isUndefined=IA,T.isWeakMap=NA,T.isWeakSet=MA,T.join=Lk,T.kebabCase=_T,T.last=_r,T.lastIndexOf=zk,T.lowerCase=ET,T.lowerFirst=kT,T.lt=DA,T.lte=$A,T.max=yR,T.maxBy=wR,T.mean=xR,T.meanBy=SR,T.min=_R,T.minBy=ER,T.stubArray=Bu,T.stubFalse=Vu,T.stubObject=cR,T.stubString=uR,T.stubTrue=fR,T.multiply=kR,T.nth=jk,T.noConflict=tR,T.noop=Wu,T.now=zs,T.pad=OT,T.padEnd=AT,T.padStart=TT,T.parseInt=RT,T.random=bT,T.reduce=WO,T.reduceRight=BO,T.repeat=CT,T.replace=PT,T.result=lT,T.round=OR,T.runInContext=q,T.sample=UO,T.size=YO,T.snakeCase=IT,T.some=KO,T.sortedIndex=qk,T.sortedIndexBy=Gk,T.sortedIndexOf=Yk,T.sortedLastIndex=Kk,T.sortedLastIndexBy=Zk,T.sortedLastIndexOf=Xk,T.startCase=MT,T.startsWith=DT,T.subtract=AR,T.sum=TR,T.sumBy=RR,T.template=$T,T.times=dR,T.toFinite=yn,T.toInteger=Ce,T.toLength=Kg,T.toLower=LT,T.toNumber=Er,T.toSafeInteger=LA,T.toString=He,T.toUpper=zT,T.trim=jT,T.trimEnd=FT,T.trimStart=HT,T.truncate=WT,T.unescape=BT,T.uniqueId=hR,T.upperCase=VT,T.upperFirst=zu,T.each=Dg,T.eachRight=$g,T.first=Pg,Hu(T,(function(){var i={};return Gr(T,function(s,f){Ke.call(T.prototype,f)||(i[f]=s)}),i})(),{chain:!1}),T.VERSION=n,br(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){T[i].placeholder=T}),br(["drop","take"],function(i,s){$e.prototype[i]=function(f){f=f===r?1:At(Ce(f),0);var _=this.__filtered__&&!s?new $e(this):this.clone();return _.__filtered__?_.__takeCount__=jt(f,_.__takeCount__):_.__views__.push({size:jt(f,U),type:i+(_.__dir__<0?"Right":"")}),_},$e.prototype[i+"Right"]=function(f){return this.reverse()[i](f).reverse()}}),br(["filter","map","takeWhile"],function(i,s){var f=s+1,_=f==j||f==Y;$e.prototype[i]=function(O){var P=this.clone();return P.__iteratees__.push({iteratee:_e(O,3),type:f}),P.__filtered__=P.__filtered__||_,P}}),br(["head","last"],function(i,s){var f="take"+(s?"Right":"");$e.prototype[i]=function(){return this[f](1).value()[0]}}),br(["initial","tail"],function(i,s){var f="drop"+(s?"":"Right");$e.prototype[i]=function(){return this.__filtered__?new $e(this):this[f](1)}}),$e.prototype.compact=function(){return this.filter(er)},$e.prototype.find=function(i){return this.filter(i).head()},$e.prototype.findLast=function(i){return this.reverse().find(i)},$e.prototype.invokeMap=Ne(function(i,s){return typeof i=="function"?new $e(this):this.map(function(f){return Lo(f,i,s)})}),$e.prototype.reject=function(i){return this.filter(Fs(_e(i)))},$e.prototype.slice=function(i,s){i=Ce(i);var f=this;return f.__filtered__&&(i>0||s<0)?new $e(f):(i<0?f=f.takeRight(-i):i&&(f=f.drop(i)),s!==r&&(s=Ce(s),f=s<0?f.dropRight(-s):f.take(s-i)),f)},$e.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},$e.prototype.toArray=function(){return this.take(U)},Gr($e.prototype,function(i,s){var f=/^(?:filter|find|map|reject)|While$/.test(s),_=/^(?:head|last)$/.test(s),O=T[_?"take"+(s=="last"?"Right":""):s],P=_||/^find/.test(s);O&&(T.prototype[s]=function(){var D=this.__wrapped__,W=_?[1]:arguments,G=D instanceof $e,ie=W[0],oe=G||Te(D),le=function(De){var Le=O.apply(T,Mn([De],W));return _&&ve?Le[0]:Le};oe&&f&&typeof ie=="function"&&ie.length!=1&&(G=oe=!1);var ve=this.__chain__,xe=!!this.__actions__.length,Ee=P&&!ve,Ie=G&&!xe;if(!P&&oe){D=Ie?D:new $e(this);var ke=i.apply(D,W);return ke.__actions__.push({func:$s,args:[le],thisArg:r}),new wr(ke,ve)}return Ee&&Ie?i.apply(this,W):(ke=this.thru(le),Ee?_?ke.value()[0]:ke.value():ke)})}),br(["pop","push","shift","sort","splice","unshift"],function(i){var s=ls[i],f=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",_=/^(?:pop|shift)$/.test(i);T.prototype[i]=function(){var O=arguments;if(_&&!this.__chain__){var P=this.value();return s.apply(Te(P)?P:[],O)}return this[f](function(D){return s.apply(Te(D)?D:[],O)})}}),Gr($e.prototype,function(i,s){var f=T[s];if(f){var _=f.name+"";Ke.call(Yi,_)||(Yi[_]=[]),Yi[_].push({name:s,func:f})}}),Yi[Rs(r,m).name]=[{name:"wrapper",func:r}],$e.prototype.clone=B_,$e.prototype.reverse=V_,$e.prototype.value=U_,T.prototype.at=wO,T.prototype.chain=xO,T.prototype.commit=SO,T.prototype.next=_O,T.prototype.plant=kO,T.prototype.reverse=OO,T.prototype.toJSON=T.prototype.valueOf=T.prototype.value=AO,T.prototype.first=T.prototype.head,Co&&(T.prototype[Co]=EO),T}),Ui=S_();ui?((ui.exports=Ui)._=Ui,Fc._=Ui):Nt._=Ui}).call(zM)})(wa,wa.exports)),wa.exports}var Je=jM();const cd={FdSave:wt.FdSave,FdWarningDanger:wt.FdWarningDanger,FdInfoCircle:wt.FdInfoCircle,FdInfoBold:wt.FdInfoBold};var rp=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(rp||{}),Ci=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(Ci||{}),co=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(co||{});const _w={[Ci.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[Ci.DANGER]:{icon:"red-500",button:"primary-dark"},[Ci.WARNING]:{icon:"yellow-400",button:"primary-dark"}},_f=({color:e=Ci.PRIMARY,variant:t="solid",children:r,autoFocus:n,...o})=>{const a=_w[e].button,l=t==="outlined"?`bg-transparent text-white border border-white hover:border-white hover:bg-white hover:text-${a}`:`text-white bg-${a} border border-${a} hover:border-white hover:bg-primary-hover hover:text-white`;return C.jsx("button",{autoFocus:n,className:tt("w-16 rounded px-2 py-1 text-xs font-medium hover:font-bold focus:outline-none",l),...o,children:r})},FM=({name:e,color:t=Ci.PRIMARY,className:r="w-8 h-8"})=>{const n=cd[e]||cd.FdInfoCircle,o=`text-${_w[t].icon}`;return C.jsx(n,{className:tt(r,o)})};(function(){try{const e=document.createElement("style");e.setAttribute("data-vite-dev-id","ui-components.css"),e.textContent=`/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial}}:root:not(#\\#),:host:not(#\\#){--color-green-500:oklch(72.3% .219 149.579);--color-blue-500:oklch(62.3% .214 259.815);--color-pink-500:oklch(65.6% .241 354.308);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-800:oklch(27.8% .033 256.848);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--text-xs:.65rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--text-9xl:8rem;--text-9xl--line-height:1;--font-weight-thin:100;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-xs:.125rem;--radius-md:.375rem;--radius-lg:.5rem;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-bounce:bounce 1s infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--color-grey-50:var(--ws-grey-50);--color-grey-100:var(--ws-grey-100);--color-grey-200:var(--ws-grey-200);--color-grey-300:var(--ws-grey-300);--color-grey-400:var(--ws-grey-400);--color-grey-500:var(--ws-grey-500);--color-grey-600:var(--ws-grey-600);--color-grey-700:var(--ws-grey-700);--color-grey-800:var(--ws-grey-800);--color-primary-500:var(--ws-primary-500);--color-primary-600:var(--ws-primary-600);--color-primary-700:var(--ws-primary-700);--color-positive-200:var(--ws-positive-200);--color-positive-400:var(--ws-positive-400);--color-positive-500:var(--ws-positive-500);--color-positive-600:var(--ws-positive-600);--color-warning-500:var(--ws-warning-500);--color-warning-600:var(--ws-warning-600);--color-negative-400:var(--ws-negative-400);--color-negative-500:var(--ws-negative-500);--color-negative-600:var(--ws-negative-600);--text-xxs:.55rem;--text-s:.75rem;--min-height-6:1.5rem;--color-canvas-default:var(--ws-bg-default);--color-canvas-subtle:var(--ws-grey-100);--color-panel:var(--ws-grey-300);--color-panel-subtle:var(--ws-grey-200);--color-card:var(--ws-card-bg);--color-card-border:var(--ws-card-border);--color-body:var(--ws-bg-foreground);--color-body-bg:var(--ws-bg-default);--color-body-light:var(--ws-grey-100);--color-muted:var(--ws-grey-200);--color-neutral:var(--ws-grey-200);--color-button-text:var(--ws-button-fg);--color-primary:var(--ws-primary-default);--color-primary-hover:var(--ws-primary-hover);--color-primary-light:var(--ws-primary-light);--color-primary-dark:var(--ws-primary-dark);--color-positive:var(--ws-positive-500);--color-positive-hover:var(--ws-positive-hover);--color-positive-text:var(--ws-positive-text);--color-positive-bg:var(--ws-positive-bg);--color-positive-light:var(--ws-positive-light);--color-positive-dark:var(--ws-positive-dark);--color-negative:var(--ws-negative-500);--color-negative-hover:var(--ws-negative-hover);--color-negative-text:var(--ws-negative-text);--color-negative-bg:var(--ws-negative-bg);--color-negative-light:var(--ws-negative-light);--color-negative-dark:var(--ws-negative-dark);--color-warning:var(--ws-warning-500);--color-warning-hover:var(--ws-warning-hover);--color-warning-text:var(--ws-warning-text);--color-warning-bg:var(--ws-warning-bg);--color-warning-light:var(--ws-warning-light);--color-warning-dark:var(--ws-warning-dark);--color-input-bg:var(--ws-input-bg);--color-input-border:var(--ws-input-border);--color-input-text:var(--ws-input-text);--color-input-placeholder:var(--ws-input-placeholder);--color-input-focus-border:var(--ws-input-focus-border);--color-select-bg:var(--ws-select-bg);--color-select-border:var(--ws-select-border);--color-select-text:var(--ws-select-text);--color-select-list-bg:var(--ws-select-list-bg);--color-input-option-hover-bg:var(--ws-input-option-hover-bg);--color-input-option-active-bg:var(--ws-input-option-active-bg);--color-input-option-active-text:var(--ws-input-option-active-text);--color-input-error-border:var(--ws-input-error-border);--color-input-error-bg:var(--ws-input-error-bg);--color-input-warning-border:var(--ws-input-warning-border);--color-input-warning-bg:var(--ws-input-warning-bg);--color-input-message-bg:var(--ws-input-message-bg);--color-input-message-text:var(--ws-input-message-text);--color-input-disable:var(--ws-disable-input);--color-inactive-text:var(--ws-inactive-text);--color-panel-0:var(--ws-panel-0);--color-panel-1:var(--ws-panel-1);--color-panel-2:var(--ws-panel-2);--color-panel-3:var(--ws-panel-3);--color-panel-4:var(--ws-panel-4);--color-panel-5:var(--ws-panel-5);--color-panel-border-subtle:var(--ws-panel-border-subtle);--color-tab-bg-default:var(--ws-tab-bg-default);--color-tab-border:var(--ws-tab-border);--color-tab-active-bg:var(--ws-tab-active-bg);--color-tab-active-fg:var(--ws-tab-active-fg);--color-tab-inactive-bg:var(--ws-tab-inactive-bg);--color-tab-inactive-fg:var(--ws-tab-inactive-fg);--color-panel-border:var(--ws-panel-border)}.pointer-events-auto:not(#\\#){pointer-events:auto}.pointer-events-none:not(#\\#){pointer-events:none}.visible:not(#\\#){visibility:visible}.sr-only:not(#\\#){clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute:not(#\\#){position:absolute}.fixed:not(#\\#){position:fixed}.relative:not(#\\#){position:relative}.static:not(#\\#){position:static}.inset-0:not(#\\#){inset:calc(var(--spacing)*0)}.-top-1\\/5:not(#\\#){top:-20%}.top-0:not(#\\#){top:calc(var(--spacing)*0)}.top-1:not(#\\#){top:calc(var(--spacing)*1)}.top-full:not(#\\#){top:100%}.-right-12:not(#\\#){right:calc(var(--spacing)*-12)}.right-0:not(#\\#){right:calc(var(--spacing)*0)}.right-1:not(#\\#){right:calc(var(--spacing)*1)}.bottom-0:not(#\\#){bottom:calc(var(--spacing)*0)}.bottom-full:not(#\\#){bottom:100%}.left-0:not(#\\#){left:calc(var(--spacing)*0)}.left-0\\.5:not(#\\#){left:calc(var(--spacing)*.5)}.left-1\\/2:not(#\\#){left:50%}.left-3\\.5:not(#\\#){left:calc(var(--spacing)*3.5)}.left-4:not(#\\#){left:calc(var(--spacing)*4)}.left-4\\.5:not(#\\#){left:calc(var(--spacing)*4.5)}.left-5\\.5:not(#\\#){left:calc(var(--spacing)*5.5)}.left-full:not(#\\#){left:100%}.z-1:not(#\\#){z-index:1}.z-2:not(#\\#){z-index:2}.z-10:not(#\\#){z-index:10}.z-40:not(#\\#){z-index:40}.z-50:not(#\\#){z-index:50}.z-60:not(#\\#){z-index:60}.z-9999:not(#\\#){z-index:9999}.container:not(#\\#){width:100%}@media(min-width:40rem){.container:not(#\\#){max-width:40rem}}@media(min-width:48rem){.container:not(#\\#){max-width:48rem}}@media(min-width:64rem){.container:not(#\\#){max-width:64rem}}@media(min-width:80rem){.container:not(#\\#){max-width:80rem}}@media(min-width:96rem){.container:not(#\\#){max-width:96rem}}.m-0:not(#\\#){margin:calc(var(--spacing)*0)}.m-0\\.5:not(#\\#){margin:calc(var(--spacing)*.5)}.m-px:not(#\\#){margin:1px}.mx-1:not(#\\#){margin-inline:calc(var(--spacing)*1)}.-my-1:not(#\\#){margin-block:calc(var(--spacing)*-1)}.my-1:not(#\\#){margin-block:calc(var(--spacing)*1)}.mt-1:not(#\\#){margin-top:calc(var(--spacing)*1)}.mt-2:not(#\\#){margin-top:calc(var(--spacing)*2)}.mt-4:not(#\\#){margin-top:calc(var(--spacing)*4)}.mt-8:not(#\\#){margin-top:calc(var(--spacing)*8)}.mr-1:not(#\\#){margin-right:calc(var(--spacing)*1)}.mr-2:not(#\\#){margin-right:calc(var(--spacing)*2)}.mb-1:not(#\\#){margin-bottom:calc(var(--spacing)*1)}.mb-2:not(#\\#){margin-bottom:calc(var(--spacing)*2)}.mb-4:not(#\\#){margin-bottom:calc(var(--spacing)*4)}.ml-1:not(#\\#){margin-left:calc(var(--spacing)*1)}.ml-1\\.5:not(#\\#){margin-left:calc(var(--spacing)*1.5)}.ml-2:not(#\\#){margin-left:calc(var(--spacing)*2)}.box-border:not(#\\#){box-sizing:border-box}.flex:not(#\\#){display:flex}.grid:not(#\\#){display:grid}.hidden:not(#\\#){display:none}.inline:not(#\\#){display:inline}.inline-block:not(#\\#){display:inline-block}.inline-flex:not(#\\#){display:inline-flex}.table:not(#\\#){display:table}.size-1\\.5:not(#\\#){width:calc(var(--spacing)*1.5);height:calc(var(--spacing)*1.5)}.size-1\\.75:not(#\\#){width:calc(var(--spacing)*1.75);height:calc(var(--spacing)*1.75)}.size-2:not(#\\#){width:calc(var(--spacing)*2);height:calc(var(--spacing)*2)}.size-2\\.5:not(#\\#){width:calc(var(--spacing)*2.5);height:calc(var(--spacing)*2.5)}.size-3:not(#\\#){width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.size-3\\.5:not(#\\#){width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-3\\.25:not(#\\#){width:calc(var(--spacing)*3.25);height:calc(var(--spacing)*3.25)}.size-4:not(#\\#){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-5:not(#\\#){width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.size-6:not(#\\#){width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.size-fit:not(#\\#){width:fit-content;height:fit-content}.h-2:not(#\\#){height:calc(var(--spacing)*2)}.h-3:not(#\\#){height:calc(var(--spacing)*3)}.h-3\\.5:not(#\\#){height:calc(var(--spacing)*3.5)}.h-4:not(#\\#){height:calc(var(--spacing)*4)}.h-4\\.5:not(#\\#){height:calc(var(--spacing)*4.5)}.h-5:not(#\\#){height:calc(var(--spacing)*5)}.h-5\\.5:not(#\\#){height:calc(var(--spacing)*5.5)}.h-6:not(#\\#){height:calc(var(--spacing)*6)}.h-7:not(#\\#){height:calc(var(--spacing)*7)}.h-7\\.5:not(#\\#){height:calc(var(--spacing)*7.5)}.h-8:not(#\\#){height:calc(var(--spacing)*8)}.h-10:not(#\\#){height:calc(var(--spacing)*10)}.h-14:not(#\\#){height:calc(var(--spacing)*14)}.h-20:not(#\\#){height:calc(var(--spacing)*20)}.h-100:not(#\\#){height:calc(var(--spacing)*100)}.h-fit:not(#\\#){height:fit-content}.h-full:not(#\\#){height:100%}.max-h-\\[400px\\]:not(#\\#){max-height:400px}.max-h-full:not(#\\#){max-height:100%}.min-h-5:not(#\\#){min-height:calc(var(--spacing)*5)}.min-h-6:not(#\\#){min-height:var(--min-height-6)}.min-h-7:not(#\\#){min-height:calc(var(--spacing)*7)}.min-h-\\[100px\\]:not(#\\#){min-height:100px}.min-h-fit:not(#\\#){min-height:fit-content}.min-h-screen:not(#\\#){min-height:100vh}.w-0\\.5:not(#\\#){width:calc(var(--spacing)*.5)}.w-1\\/2:not(#\\#){width:50%}.w-3:not(#\\#){width:calc(var(--spacing)*3)}.w-3\\.5:not(#\\#){width:calc(var(--spacing)*3.5)}.w-4:not(#\\#){width:calc(var(--spacing)*4)}.w-5:not(#\\#){width:calc(var(--spacing)*5)}.w-6:not(#\\#){width:calc(var(--spacing)*6)}.w-7:not(#\\#){width:calc(var(--spacing)*7)}.w-8:not(#\\#){width:calc(var(--spacing)*8)}.w-9:not(#\\#){width:calc(var(--spacing)*9)}.w-11:not(#\\#){width:calc(var(--spacing)*11)}.w-16:not(#\\#){width:calc(var(--spacing)*16)}.w-20:not(#\\#){width:calc(var(--spacing)*20)}.w-32:not(#\\#){width:calc(var(--spacing)*32)}.w-48:not(#\\#){width:calc(var(--spacing)*48)}.w-52:not(#\\#){width:calc(var(--spacing)*52)}.w-60:not(#\\#){width:calc(var(--spacing)*60)}.w-64:not(#\\#){width:calc(var(--spacing)*64)}.w-80:not(#\\#){width:calc(var(--spacing)*80)}.w-96:not(#\\#){width:calc(var(--spacing)*96)}.w-auto:not(#\\#){width:auto}.w-fit:not(#\\#){width:fit-content}.w-full:not(#\\#){width:100%}.w-px:not(#\\#){width:1px}.max-w-100:not(#\\#){max-width:calc(var(--spacing)*100)}.max-w-\\[300px\\]:not(#\\#){max-width:300px}.max-w-md:not(#\\#){max-width:var(--container-md)}.min-w-0:not(#\\#){min-width:calc(var(--spacing)*0)}.min-w-3\\.5:not(#\\#){min-width:calc(var(--spacing)*3.5)}.min-w-4\\.5:not(#\\#){min-width:calc(var(--spacing)*4.5)}.min-w-5:not(#\\#){min-width:calc(var(--spacing)*5)}.min-w-7\\.5:not(#\\#){min-width:calc(var(--spacing)*7.5)}.min-w-50:not(#\\#){min-width:calc(var(--spacing)*50)}.min-w-\\[150px\\]:not(#\\#){min-width:150px}.min-w-fit:not(#\\#){min-width:fit-content}.min-w-full:not(#\\#){min-width:100%}.flex-1:not(#\\#){flex:1}.flex-3:not(#\\#){flex:3}.flex-none:not(#\\#){flex:none}.shrink-0:not(#\\#){flex-shrink:0}.origin-top-right:not(#\\#){transform-origin:100% 0}.-translate-x-1\\/2:not(#\\#){--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-full:not(#\\#){--tw-translate-x:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-0:not(#\\#){--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-full:not(#\\#){--tw-translate-x:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-full:not(#\\#){--tw-translate-y:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0:not(#\\#){--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-1\\/2:not(#\\#){--tw-translate-y: 50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-full:not(#\\#){--tw-translate-y:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-0:not(#\\#){--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-95:not(#\\#){--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-100:not(#\\#){--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-110:not(#\\#){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.-rotate-45:not(#\\#){rotate:-45deg}.rotate-45:not(#\\#){rotate:45deg}.rotate-90:not(#\\#){rotate:90deg}.rotate-180:not(#\\#){rotate:180deg}.transform:not(#\\#){transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-bounce:not(#\\#){animation:var(--animate-bounce)}.cursor-auto:not(#\\#){cursor:auto}.cursor-not-allowed:not(#\\#){cursor:not-allowed}.cursor-pointer:not(#\\#){cursor:pointer}.cursor-se-resize:not(#\\#){cursor:se-resize}.resize:not(#\\#){resize:both}.resize-none:not(#\\#){resize:none}.list-disc:not(#\\#){list-style-type:disc}.appearance-none:not(#\\#){-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-2:not(#\\#){grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3:not(#\\#){grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col:not(#\\#){flex-direction:column}.flex-row:not(#\\#){flex-direction:row}.flex-wrap:not(#\\#){flex-wrap:wrap}.place-content-center:not(#\\#){place-content:center}.place-items-center:not(#\\#){place-items:center}.content-center:not(#\\#){align-content:center}.items-center:not(#\\#){align-items:center}.items-end:not(#\\#){align-items:flex-end}.items-start:not(#\\#){align-items:flex-start}.justify-around:not(#\\#){justify-content:space-around}.justify-between:not(#\\#){justify-content:space-between}.justify-center:not(#\\#){justify-content:center}.gap-0\\.5:not(#\\#){gap:calc(var(--spacing)*.5)}.gap-1:not(#\\#){gap:calc(var(--spacing)*1)}.gap-1\\.5:not(#\\#){gap:calc(var(--spacing)*1.5)}.gap-2:not(#\\#){gap:calc(var(--spacing)*2)}.gap-2\\.5:not(#\\#){gap:calc(var(--spacing)*2.5)}.gap-3:not(#\\#){gap:calc(var(--spacing)*3)}.gap-4:not(#\\#){gap:calc(var(--spacing)*4)}.gap-6:not(#\\#){gap:calc(var(--spacing)*6)}.gap-8:not(#\\#){gap:calc(var(--spacing)*8)}.gap-10:not(#\\#){gap:calc(var(--spacing)*10)}.gap-14:not(#\\#){gap:calc(var(--spacing)*14)}:where(.space-y-1>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-1:not(#\\#){column-gap:calc(var(--spacing)*1)}.gap-x-2:not(#\\#){column-gap:calc(var(--spacing)*2)}.gap-x-3:not(#\\#){column-gap:calc(var(--spacing)*3)}.gap-x-4:not(#\\#){column-gap:calc(var(--spacing)*4)}.gap-x-20:not(#\\#){column-gap:calc(var(--spacing)*20)}:where(.space-x-4>:not(:last-child)):not(#\\#){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*4)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-x-reverse)))}.truncate:not(#\\#){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden:not(#\\#){overflow:hidden}.overflow-y-auto:not(#\\#){overflow-y:auto}.rounded:not(#\\#){border-radius:.25rem}.rounded-full:not(#\\#){border-radius:3.40282e38px}.rounded-lg:not(#\\#){border-radius:var(--radius-lg)}.rounded-md:not(#\\#){border-radius:var(--radius-md)}.rounded-xs:not(#\\#){border-radius:var(--radius-xs)}.rounded-t:not(#\\#){border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-none:not(#\\#){border-top-left-radius:0;border-top-right-radius:0}.rounded-b-none:not(#\\#){border-bottom-right-radius:0;border-bottom-left-radius:0}.border:not(#\\#){border-style:var(--tw-border-style);border-width:1px}.border-0:not(#\\#){border-style:var(--tw-border-style);border-width:0}.border-2:not(#\\#){border-style:var(--tw-border-style);border-width:2px}.border-px:not(#\\#){border-width:1px}.divide:not(#\\#){border-width:.5px}.border-t:not(#\\#){border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-0:not(#\\#){border-top-style:var(--tw-border-style);border-top-width:0}.border-r:not(#\\#){border-right-style:var(--tw-border-style);border-right-width:1px}.border-b:not(#\\#){border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-0:not(#\\#){border-bottom-style:var(--tw-border-style);border-bottom-width:0}.border-dashed:not(#\\#){--tw-border-style:dashed;border-style:dashed}.border-body:not(#\\#){border-color:var(--color-body)}.border-body-light:not(#\\#){border-color:var(--color-body-light)}.border-canvas-default:not(#\\#){border-color:var(--color-canvas-default)}.border-card-border:not(#\\#){border-color:var(--color-card-border)}.border-grey-100:not(#\\#){border-color:var(--color-grey-100)}.border-grey-200:not(#\\#){border-color:var(--color-grey-200)}.border-input-border:not(#\\#){border-color:var(--color-input-border)}.border-input-disable:not(#\\#){border-color:var(--color-input-disable)}.border-input-error-border:not(#\\#){border-color:var(--color-input-error-border)}.border-input-focus-border:not(#\\#){border-color:var(--color-input-focus-border)}.border-input-warning-border:not(#\\#){border-color:var(--color-input-warning-border)}.border-negative:not(#\\#){border-color:var(--color-negative)}.border-negative-400:not(#\\#){border-color:var(--color-negative-400)}.border-negative-500:not(#\\#){border-color:var(--color-negative-500)}.border-neutral:not(#\\#){border-color:var(--color-neutral)}.border-panel:not(#\\#){border-color:var(--color-panel)}.border-panel-border:not(#\\#){border-color:var(--color-panel-border)}.border-panel-border-subtle:not(#\\#){border-color:var(--color-panel-border-subtle)}.border-panel-subtle:not(#\\#){border-color:var(--color-panel-subtle)}.border-positive:not(#\\#){border-color:var(--color-positive)}.border-positive-500:not(#\\#){border-color:var(--color-positive-500)}.border-positive-text:not(#\\#){border-color:var(--color-positive-text)}.border-primary:not(#\\#){border-color:var(--color-primary)}.border-primary-700:not(#\\#){border-color:var(--color-primary-700)}.border-primary-hover:not(#\\#){border-color:var(--color-primary-hover)}.border-select-border:not(#\\#){border-color:var(--color-select-border)}.border-tab-border:not(#\\#){border-color:var(--color-tab-border)}.border-transparent:not(#\\#){border-color:#0000}.border-warning:not(#\\#){border-color:var(--color-warning)}.border-warning-500:not(#\\#){border-color:var(--color-warning-500)}.border-warning-bg:not(#\\#){border-color:var(--color-warning-bg)}.border-white:not(#\\#){border-color:var(--color-white)}.bg-blue-500:not(#\\#){background-color:var(--color-blue-500)}.bg-body:not(#\\#){background-color:var(--color-body)}.bg-body-bg:not(#\\#){background-color:var(--color-body-bg)}.bg-canvas-default:not(#\\#){background-color:var(--color-canvas-default)}.bg-canvas-subtle:not(#\\#){background-color:var(--color-canvas-subtle)}.bg-card:not(#\\#){background-color:var(--color-card)}.bg-gray-100:not(#\\#){background-color:var(--color-gray-100)}.bg-grey-50:not(#\\#){background-color:var(--color-grey-50)}.bg-grey-200:not(#\\#){background-color:var(--color-grey-200)}.bg-grey-300:not(#\\#){background-color:var(--color-grey-300)}.bg-grey-400:not(#\\#){background-color:var(--color-grey-400)}.bg-grey-500:not(#\\#){background-color:var(--color-grey-500)}.bg-grey-600:not(#\\#){background-color:var(--color-grey-600)}.bg-grey-700:not(#\\#){background-color:var(--color-grey-700)}.bg-grey-800:not(#\\#){background-color:var(--color-grey-800)}.bg-input-bg:not(#\\#){background-color:var(--color-input-bg)}.bg-input-border:not(#\\#){background-color:var(--color-input-border)}.bg-input-disable:not(#\\#){background-color:var(--color-input-disable)}.bg-input-error-bg:not(#\\#){background-color:var(--color-input-error-bg)}.bg-input-message-bg:not(#\\#){background-color:var(--color-input-message-bg)}.bg-input-option-active-bg:not(#\\#){background-color:var(--color-input-option-active-bg)}.bg-input-option-hover-bg:not(#\\#){background-color:var(--color-input-option-hover-bg)}.bg-input-warning-bg:not(#\\#){background-color:var(--color-input-warning-bg)}.bg-negative:not(#\\#){background-color:var(--color-negative)}.bg-negative-400:not(#\\#){background-color:var(--color-negative-400)}.bg-negative-500:not(#\\#){background-color:var(--color-negative-500)}.bg-negative-bg:not(#\\#){background-color:var(--color-negative-bg)}.bg-negative-hover:not(#\\#){background-color:var(--color-negative-hover)}.bg-negative-light:not(#\\#){background-color:var(--color-negative-light)}.bg-panel:not(#\\#){background-color:var(--color-panel)}.bg-panel-0:not(#\\#){background-color:var(--color-panel-0)}.bg-panel-1:not(#\\#){background-color:var(--color-panel-1)}.bg-panel-2:not(#\\#){background-color:var(--color-panel-2)}.bg-panel-3:not(#\\#){background-color:var(--color-panel-3)}.bg-panel-4:not(#\\#){background-color:var(--color-panel-4)}.bg-panel-5:not(#\\#){background-color:var(--color-panel-5)}.bg-panel-subtle:not(#\\#){background-color:var(--color-panel-subtle)}.bg-positive:not(#\\#){background-color:var(--color-positive)}.bg-positive-200:not(#\\#){background-color:var(--color-positive-200)}.bg-positive-500:not(#\\#){background-color:var(--color-positive-500)}.bg-positive-bg:not(#\\#){background-color:var(--color-positive-bg)}.bg-positive-hover:not(#\\#){background-color:var(--color-positive-hover)}.bg-positive-light:not(#\\#){background-color:var(--color-positive-light)}.bg-primary:not(#\\#){background-color:var(--color-primary)}.bg-primary-500:not(#\\#){background-color:var(--color-primary-500)}.bg-primary-600:not(#\\#){background-color:var(--color-primary-600)}.bg-primary-hover:not(#\\#){background-color:var(--color-primary-hover)}.bg-primary-light:not(#\\#){background-color:var(--color-primary-light)}.bg-primary\\/30:not(#\\#){background-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.bg-primary\\/30:not(#\\#){background-color:color-mix(in oklab,var(--color-primary)30%,transparent)}}.bg-select-bg:not(#\\#){background-color:var(--color-select-bg)}.bg-select-list-bg:not(#\\#){background-color:var(--color-select-list-bg)}.bg-tab-active-bg:not(#\\#){background-color:var(--color-tab-active-bg)}.bg-tab-bg-default:not(#\\#){background-color:var(--color-tab-bg-default)}.bg-tab-inactive-bg:not(#\\#){background-color:var(--color-tab-inactive-bg)}.bg-transparent:not(#\\#){background-color:#0000}.bg-warning:not(#\\#){background-color:var(--color-warning)}.bg-warning-500:not(#\\#){background-color:var(--color-warning-500)}.bg-warning-bg:not(#\\#){background-color:var(--color-warning-bg)}.bg-warning-hover:not(#\\#){background-color:var(--color-warning-hover)}.bg-warning-light:not(#\\#){background-color:var(--color-warning-light)}.bg-white:not(#\\#){background-color:var(--color-white)}.bg-linear-to-r:not(#\\#){--tw-gradient-position:to right}@supports (background-image:linear-gradient(in lab,red,red)){.bg-linear-to-r:not(#\\#){--tw-gradient-position:to right in oklab}}.bg-linear-to-r:not(#\\#){background-image:linear-gradient(var(--tw-gradient-stops))}.from-green-500:not(#\\#){--tw-gradient-from:var(--color-green-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-primary:not(#\\#){--tw-gradient-from:var(--color-primary);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-blue-500:not(#\\#){--tw-gradient-to:var(--color-blue-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-pink-500:not(#\\#){--tw-gradient-to:var(--color-pink-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.stroke-current:not(#\\#){stroke:currentColor}.p-0:not(#\\#){padding:calc(var(--spacing)*0)}.p-0\\.5:not(#\\#){padding:calc(var(--spacing)*.5)}.p-1:not(#\\#){padding:calc(var(--spacing)*1)}.p-1\\!{padding:calc(var(--spacing)*1)!important}.p-1\\.5:not(#\\#){padding:calc(var(--spacing)*1.5)}.p-2:not(#\\#){padding:calc(var(--spacing)*2)}.p-2\\.5:not(#\\#){padding:calc(var(--spacing)*2.5)}.p-3:not(#\\#){padding:calc(var(--spacing)*3)}.p-4:not(#\\#){padding:calc(var(--spacing)*4)}.p-6:not(#\\#){padding:calc(var(--spacing)*6)}.p-8:not(#\\#){padding:calc(var(--spacing)*8)}.p-10:not(#\\#){padding:calc(var(--spacing)*10)}.p-50:not(#\\#){padding:calc(var(--spacing)*50)}.p-px:not(#\\#){padding:1px}.px-0\\.5:not(#\\#){padding-inline:calc(var(--spacing)*.5)}.px-1:not(#\\#){padding-inline:calc(var(--spacing)*1)}.px-1\\.5:not(#\\#){padding-inline:calc(var(--spacing)*1.5)}.px-2:not(#\\#){padding-inline:calc(var(--spacing)*2)}.px-3:not(#\\#){padding-inline:calc(var(--spacing)*3)}.px-4:not(#\\#){padding-inline:calc(var(--spacing)*4)}.px-6:not(#\\#){padding-inline:calc(var(--spacing)*6)}.px-7:not(#\\#){padding-inline:calc(var(--spacing)*7)}.px-8:not(#\\#){padding-inline:calc(var(--spacing)*8)}.py-0\\.5:not(#\\#){padding-block:calc(var(--spacing)*.5)}.py-1:not(#\\#){padding-block:calc(var(--spacing)*1)}.py-1\\.5:not(#\\#){padding-block:calc(var(--spacing)*1.5)}.py-2:not(#\\#){padding-block:calc(var(--spacing)*2)}.py-3:not(#\\#){padding-block:calc(var(--spacing)*3)}.pt-0\\.5:not(#\\#){padding-top:calc(var(--spacing)*.5)}.pt-1:not(#\\#){padding-top:calc(var(--spacing)*1)}.pt-1\\.5:not(#\\#){padding-top:calc(var(--spacing)*1.5)}.pt-2:not(#\\#){padding-top:calc(var(--spacing)*2)}.pl-1:not(#\\#){padding-left:calc(var(--spacing)*1)}.pl-4:not(#\\#){padding-left:calc(var(--spacing)*4)}.text-center:not(#\\#){text-align:center}.text-left:not(#\\#){text-align:left}.text-2xl:not(#\\#){font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl:not(#\\#){font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl:not(#\\#){font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl:not(#\\#){font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-6xl:not(#\\#){font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}.text-7xl:not(#\\#){font-size:var(--text-7xl);line-height:var(--tw-leading,var(--text-7xl--line-height))}.text-8xl:not(#\\#){font-size:var(--text-8xl);line-height:var(--tw-leading,var(--text-8xl--line-height))}.text-9xl:not(#\\#){font-size:var(--text-9xl);line-height:var(--tw-leading,var(--text-9xl--line-height))}.text-base:not(#\\#){font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg:not(#\\#){font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm:not(#\\#){font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl:not(#\\#){font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs:not(#\\#){font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-s:not(#\\#){font-size:var(--text-s)}.text-xxs:not(#\\#){font-size:var(--text-xxs)}.leading-3:not(#\\#){--tw-leading:calc(var(--spacing)*3);line-height:calc(var(--spacing)*3)}.leading-4:not(#\\#){--tw-leading:calc(var(--spacing)*4);line-height:calc(var(--spacing)*4)}.leading-5:not(#\\#){--tw-leading:calc(var(--spacing)*5);line-height:calc(var(--spacing)*5)}.leading-none:not(#\\#){--tw-leading:1;line-height:1}.font-bold:not(#\\#){--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium:not(#\\#){--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold:not(#\\#){--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.font-thin:not(#\\#){--tw-font-weight:var(--font-weight-thin);font-weight:var(--font-weight-thin)}.whitespace-nowrap:not(#\\#){white-space:nowrap}.text-body:not(#\\#){color:var(--color-body)}.text-button-text:not(#\\#){color:var(--color-button-text)}.text-gray-50:not(#\\#){color:var(--color-gray-50)}.text-gray-400:not(#\\#){color:var(--color-gray-400)}.text-gray-500:not(#\\#){color:var(--color-gray-500)}.text-gray-800:not(#\\#){color:var(--color-gray-800)}.text-grey-100:not(#\\#){color:var(--color-grey-100)}.text-grey-200:not(#\\#){color:var(--color-grey-200)}.text-grey-300:not(#\\#){color:var(--color-grey-300)}.text-grey-700:not(#\\#){color:var(--color-grey-700)}.text-inactive-text:not(#\\#){color:var(--color-inactive-text)}.text-inherit:not(#\\#){color:inherit}.text-input-disable:not(#\\#){color:var(--color-input-disable)}.text-input-message-text:not(#\\#){color:var(--color-input-message-text)}.text-input-option-active-text:not(#\\#){color:var(--color-input-option-active-text)}.text-input-placeholder:not(#\\#){color:var(--color-input-placeholder)}.text-input-text:not(#\\#){color:var(--color-input-text)}.text-muted:not(#\\#){color:var(--color-muted)}.text-negative:not(#\\#){color:var(--color-negative)}.text-negative-500:not(#\\#){color:var(--color-negative-500)}.text-negative-dark:not(#\\#){color:var(--color-negative-dark)}.text-negative-text:not(#\\#){color:var(--color-negative-text)}.text-panel-subtle:not(#\\#){color:var(--color-panel-subtle)}.text-positive:not(#\\#){color:var(--color-positive)}.text-positive-500:not(#\\#){color:var(--color-positive-500)}.text-positive-600:not(#\\#){color:var(--color-positive-600)}.text-positive-dark:not(#\\#){color:var(--color-positive-dark)}.text-positive-text:not(#\\#),.text-positive-text\\/70:not(#\\#){color:var(--color-positive-text)}@supports (color:color-mix(in lab,red,red)){.text-positive-text\\/70:not(#\\#){color:color-mix(in oklab,var(--color-positive-text)70%,transparent)}}.text-primary:not(#\\#){color:var(--color-primary)}.text-primary-dark:not(#\\#){color:var(--color-primary-dark)}.text-primary-hover:not(#\\#){color:var(--color-primary-hover)}.text-select-text:not(#\\#){color:var(--color-select-text)}.text-tab-active-fg:not(#\\#){color:var(--color-tab-active-fg)}.text-tab-inactive-fg:not(#\\#){color:var(--color-tab-inactive-fg)}.text-warning:not(#\\#){color:var(--color-warning)}.text-warning-dark:not(#\\#){color:var(--color-warning-dark)}.text-warning-text:not(#\\#){color:var(--color-warning-text)}.capitalize:not(#\\#){text-transform:capitalize}.italic:not(#\\#){font-style:italic}.decoration-transparent:not(#\\#){text-decoration-color:#0000}.opacity-0:not(#\\#){opacity:0}.opacity-50:not(#\\#){opacity:.5}.opacity-60:not(#\\#){opacity:.6}.opacity-80:not(#\\#){opacity:.8}.opacity-100:not(#\\#){opacity:1}.shadow:not(#\\#){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-inner:not(#\\#){--tw-shadow:inset 0 2px 4px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg:not(#\\#){--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md:not(#\\#){--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs:not(#\\#){--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-input-error-border:not(#\\#){--tw-ring-color:var(--color-input-error-border)}.ring-input-focus-border:not(#\\#){--tw-ring-color:var(--color-input-focus-border)}.ring-input-warning-border:not(#\\#){--tw-ring-color:var(--color-input-warning-border)}.ring-positive:not(#\\#){--tw-ring-color:var(--color-positive)}.outline-hidden:not(#\\#){--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.outline-hidden:not(#\\#){outline-offset:2px;outline:2px solid #0000}}.outline:not(#\\#),.outline-1:not(#\\#){outline-style:var(--tw-outline-style);outline-width:1px}.outline-s:not(#\\#){outline-width:.5px}.outline-xs:not(#\\#){outline-width:.3px}.outline-xxs:not(#\\#){outline-width:.1px}.outline-canvas-default:not(#\\#){outline-color:var(--color-canvas-default)}.outline-primary:not(#\\#){outline-color:var(--color-primary)}.blur:not(#\\#){--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter:not(#\\#){filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition:not(#\\#){transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all:not(#\\#){transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors:not(#\\#){transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform:not(#\\#){transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150:not(#\\#){--tw-duration:.15s;transition-duration:.15s}.duration-200:not(#\\#){--tw-duration:.2s;transition-duration:.2s}.duration-300:not(#\\#){--tw-duration:.3s;transition-duration:.3s}.ease-in-out:not(#\\#){--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out:not(#\\#){--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-solid:not(#\\#){--tw-outline-style:solid;outline-style:solid}.select-none:not(#\\#){-webkit-user-select:none;user-select:none}@media(hover:hover){.group-hover\\:flex:is(:where(.group):hover *):not(#\\#){display:flex}.group-hover\\:grid:is(:where(.group):hover *):not(#\\#){display:grid}.group-hover\\:border-body:is(:where(.group):hover *):not(#\\#){border-color:var(--color-body)}.group-hover\\:border-negative-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-negative-text)}.group-hover\\:border-positive-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-positive-text)}.group-hover\\:border-warning-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-warning-text)}.group-hover\\:bg-grey-400:is(:where(.group):hover *):not(#\\#){background-color:var(--color-grey-400)}.group-hover\\:bg-negative-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-negative-hover)}.group-hover\\:bg-negative-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-negative-light)}.group-hover\\:bg-positive-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-positive-hover)}.group-hover\\:bg-positive-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-positive-light)}.group-hover\\:bg-primary-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-primary-hover)}.group-hover\\:bg-primary-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-primary-light)}.group-hover\\:bg-warning-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-warning-hover)}.group-hover\\:bg-warning-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-warning-light)}.group-hover\\:opacity-100:is(:where(.group):hover *):not(#\\#){opacity:1}}.placeholder\\:text-input-placeholder:not(#\\#)::placeholder{color:var(--color-input-placeholder)}.placeholder\\:opacity-60:not(#\\#)::placeholder{opacity:.6}.first\\:-ml-1\\.5:first-child:not(#\\#){margin-left:calc(var(--spacing)*-1.5)}.first\\:rounded-t:first-child:not(#\\#){border-top-left-radius:.25rem;border-top-right-radius:.25rem}.first\\:rounded-l:first-child:not(#\\#){border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.last\\:-mr-1\\.5:last-child:not(#\\#){margin-right:calc(var(--spacing)*-1.5)}.last\\:rounded-r:last-child:not(#\\#){border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.last\\:rounded-b:last-child:not(#\\#){border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.only\\:-mx-0\\.5:only-child:not(#\\#){margin-inline:calc(var(--spacing)*-.5)}.only\\:rounded:only-child:not(#\\#){border-radius:.25rem}.focus-within\\:border-input-error-border:focus-within:not(#\\#){border-color:var(--color-input-error-border)}.focus-within\\:border-input-focus-border:focus-within:not(#\\#){border-color:var(--color-input-focus-border)}.focus-within\\:border-input-warning-border:focus-within:not(#\\#){border-color:var(--color-input-warning-border)}.focus-within\\:border-positive:focus-within:not(#\\#){border-color:var(--color-positive)}@media(hover:hover){.hover\\:border-black:hover:not(#\\#){border-color:var(--color-black)}.hover\\:border-canvas-subtle:hover:not(#\\#){border-color:var(--color-canvas-subtle)}.hover\\:border-negative-hover:hover:not(#\\#){border-color:var(--color-negative-hover)}.hover\\:border-positive-hover:hover:not(#\\#){border-color:var(--color-positive-hover)}.hover\\:border-primary-hover:hover:not(#\\#){border-color:var(--color-primary-hover)}.hover\\:border-warning-hover:hover:not(#\\#){border-color:var(--color-warning-hover)}.hover\\:bg-canvas-subtle:hover:not(#\\#){background-color:var(--color-canvas-subtle)}.hover\\:bg-grey-500:hover:not(#\\#){background-color:var(--color-grey-500)}.hover\\:bg-grey-700:hover:not(#\\#){background-color:var(--color-grey-700)}.hover\\:bg-input-option-hover-bg:hover:not(#\\#){background-color:var(--color-input-option-hover-bg)}.hover\\:bg-negative:hover:not(#\\#){background-color:var(--color-negative)}.hover\\:bg-negative-600:hover:not(#\\#){background-color:var(--color-negative-600)}.hover\\:bg-negative-hover:hover:not(#\\#){background-color:var(--color-negative-hover)}.hover\\:bg-positive:hover:not(#\\#){background-color:var(--color-positive)}.hover\\:bg-positive-600:hover:not(#\\#){background-color:var(--color-positive-600)}.hover\\:bg-positive-hover:hover:not(#\\#){background-color:var(--color-positive-hover)}.hover\\:bg-primary-600:hover:not(#\\#){background-color:var(--color-primary-600)}.hover\\:bg-primary-hover:hover:not(#\\#){background-color:var(--color-primary-hover)}.hover\\:bg-primary\\/20:hover:not(#\\#){background-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-primary\\/20:hover:not(#\\#){background-color:color-mix(in oklab,var(--color-primary)20%,transparent)}}.hover\\:bg-transparent:hover:not(#\\#){background-color:#0000}.hover\\:bg-warning:hover:not(#\\#){background-color:var(--color-warning)}.hover\\:bg-warning-600:hover:not(#\\#){background-color:var(--color-warning-600)}.hover\\:bg-warning-hover:hover:not(#\\#){background-color:var(--color-warning-hover)}.hover\\:text-body:hover:not(#\\#){color:var(--color-body)}.hover\\:text-button-text:hover:not(#\\#){color:var(--color-button-text)}.hover\\:text-gray-50:hover:not(#\\#){color:var(--color-gray-50)}.hover\\:text-grey-200:hover:not(#\\#){color:var(--color-grey-200)}.hover\\:text-negative-400:hover:not(#\\#){color:var(--color-negative-400)}.hover\\:text-negative-hover:hover:not(#\\#){color:var(--color-negative-hover)}.hover\\:text-positive-400:hover:not(#\\#){color:var(--color-positive-400)}.hover\\:text-positive-hover:hover:not(#\\#){color:var(--color-positive-hover)}.hover\\:text-positive-text:hover:not(#\\#){color:var(--color-positive-text)}.hover\\:text-primary-hover:hover:not(#\\#){color:var(--color-primary-hover)}.hover\\:text-tab-active-fg:hover:not(#\\#){color:var(--color-tab-active-fg)}.hover\\:text-warning-hover:hover:not(#\\#){color:var(--color-warning-hover)}.hover\\:decoration-current:hover:not(#\\#){text-decoration-color:currentColor}}.focus\\:bg-transparent:focus:not(#\\#){background-color:#0000}.focus\\:ring-2:focus:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-negative:focus:not(#\\#){--tw-ring-color:var(--color-negative)}.focus\\:ring-positive:focus:not(#\\#){--tw-ring-color:var(--color-positive)}.focus\\:ring-primary:focus:not(#\\#){--tw-ring-color:var(--color-primary)}.focus\\:ring-warning:focus:not(#\\#){--tw-ring-color:var(--color-warning)}.focus\\:ring-offset-0:focus:not(#\\#){--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:ring-offset-2:focus:not(#\\#){--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:outline-hidden:focus:not(#\\#){--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.focus\\:outline-hidden:focus:not(#\\#){outline-offset:2px;outline:2px solid #0000}}.focus-visible\\:ring-2:focus-visible:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-primary:focus-visible:not(#\\#){--tw-ring-color:var(--color-primary)}.focus-visible\\:ring-offset-2:focus-visible:not(#\\#){--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}:root:not(#\\#){--ws-primary-50:#f2ddff;--ws-primary-100:#edd0ff;--ws-primary-300:#d0acef;--ws-primary-400:#c190ea;--ws-primary-600:#935ebf;--ws-primary-800:#563374;--ws-primary-900:#381e4f;--ws-primary-950:#29133c;--ws-positive-50:#ecf9f2;--ws-positive-100:#d9f2e6;--ws-positive-300:#8ed9b3;--ws-positive-400:#68cd99;--ws-positive-700:#28734d;--ws-positive-800:#28734d;--ws-positive-900:#0d261a;--ws-positive-950:#07130d;--ws-warning-50:#fff7e6;--ws-warning-100:#ffefcc;--ws-warning-300:#fed066;--ws-warning-400:#fdc133;--ws-warning-700:#986a00;--ws-warning-800:#654700;--ws-warning-900:#332300;--ws-warning-950:#191200;--ws-negative-50:#feeeee;--ws-negative-100:#fcdcdc;--ws-negative-300:#f69797;--ws-negative-400:#f37575;--ws-negative-700:#9a3232;--ws-negative-800:#6e2222;--ws-negative-900:#431212;--ws-negative-950:#2e0a0a;--ws-grey-300:#535353;--ws-grey-400:#484848;--ws-grey-600:#3f3f3f;--ws-palette-primary-200:#e0c7f5;--ws-palette-primary-500:#b174e5;--ws-palette-primary-700:#75499a;--ws-button-bg:var(--vscode-button-background,var(--theia-button-background,var(--ws-palette-primary-500)));--ws-button-fg:var(--vscode-button-foreground,var(--theia-button-foreground,var(--ws-palette-white)));--ws-primary-default:var(--ws-button-bg);--ws-button-text:var(--ws-button-fg);--ws-primary-hover:var(--vscode-button-hoverBackground,var(--theia-button-hoverBackground,var(--ws-palette-primary-700)));--ws-primary-light:var(--vscode-editorInfo-foreground,var(--theia-button-hoverBackground,var(--ws-palette-primary-200)));--ws-primary-dark:var(--vscode-editor-lineHighlightBackground,var(--theia-button-hoverBackground,var(--ws-palette-primary-700)));--ws-primary-200:var(--ws-primary-light);--ws-primary-500:var(--ws-primary-default);--ws-primary-700:var(--ws-primary-hover);--ws-palette-positive-200:#b3e6cc;--ws-palette-positive-500:#42c080;--ws-palette-positive-600:#359a66;--ws-positive-dark:var(--vscode-gitDecoration-addedResourceForeground,var(--ws-palette-positive-600));--ws-positive-hover:var(--ws-positive-dark);--ws-positive-bg:var(--ws-palette-positive-100);--ws-positive-light:var(--ws-palette-positive-200);--ws-positive-border:var(--ws-positive-500);--ws-positive-text:var(--ws-positive-500);--ws-positive-500:var(--vscode-testing-iconPassed,var(--ws-palette-positive-500));--ws-positive-200:var(--ws-positive-light);--ws-positive-600:var(--ws-positive-dark);--ws-palette-warning-200:#fee099;--ws-palette-warning-500:#fdb100;--ws-palette-warning-600:#ca8e00;--ws-warning-hover:var(--ws-warning-600);--ws-warning-text:var(--ws-warning-500);--ws-warning-border:var(--ws-warning-500);--ws-warning-500:var(--vscode-list-warningForeground,var(--ws-palette-warning-500));--ws-warning-bg:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-500));--ws-warning-light:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-200));--ws-warning-dark:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-600));--ws-warning-200:var(--ws-warning-light);--ws-warning-600:var(--ws-warning-dark);--ws-palette-negative-200:#f9baba;--ws-palette-negative-500:#f05252;--ws-palette-negative-600:#c54242;--ws-negative-hover:var(--ws-negative-600);--ws-negative-text:var(--ws-negative-500);--ws-negative-500:var(--vscode-errorForeground,var(--ws-palette-negative-500));--ws-negative-light:var(--vscode-inputValidation-errorBackground,var(--ws-palette-negative-200));--ws-negative-dark:var(--vscode-inputValidation-errorBackground,var(--ws-palette-negative-600));--ws-negative-200:var(--ws-negative-light);--ws-negative-600:var(--ws-negative-dark);--ws-palette-white:#fff;--ws-palette-grey-50:#f1f5f9;--ws-palette-grey-100:#ccc;--ws-palette-grey-200:#888;--ws-palette-grey-300:#535353;--ws-palette-grey-400:#484848;--ws-palette-grey-500:#444;--ws-palette-grey-600:#3f3f3f;--ws-palette-grey-700:#393939;--ws-palette-grey-800:#383838;--ws-palette-grey-900:#262626;--ws-palette-grey-950:#151515;--ws-bg-default:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-white)));--ws-bg-foreground:var(--vscode-editor-foreground,var(--theia-panel-foreground,var(--ws-palette-grey-50)));--ws-grey-50:var(--ws-bg-foreground);--ws-grey-100:var(--vscode-panel-background,var(--theia-panel-background,var(--ws-palette-grey-100)));--ws-grey-200:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-grey-200)));--ws-grey-950:var(--vscode-panel-border,var(--theia-border-color,var(--ws-palette-grey-950)));--ws-grey-500:var(--vscode-descriptionForeground,var(--ws-palette-grey-500));--ws-grey-800:var(--vscode-descriptionForeground,var(--ws-palette-grey-800));--ws-card-bg:var(--vscode-editorGroupHeader-tabsBackground,var(--theia-editor-group-header-background,var(--ws-palette-grey-900)));--ws-card-border:var(--vscode-editorGroupHeader-tabsBorder,var(--theia-editor-group-header-background,var(--ws-palette-grey-50)));--ws-palette-input-bg:var(--ws-palette-grey-300);--ws-palette-input-border:var(--ws-palette-grey-300);--ws-palette-input-text:var(--ws-palette-grey-50);--ws-palette-input-placeholder:var(--ws-palette-grey-200);--ws-palette-input-focus-border:var(--ws-palette-grey-50);--ws-input-bg:var(--vscode-input-background,var(--theia-input-background,var(--ws-palette-input-bg)));--ws-input-border:var(--vscode-input-border,var(--theia-input-border,var(--ws-palette-input-border)));--ws-input-text:var(--vscode-input-foreground,var(--theia-input-foreground,var(--ws-palette-input-text)));--ws-input-placeholder:var(--vscode-input-placeholderForeground,var(--theia-input-placeholderForeground,var(--ws-palette-input-placeholder)));--ws-input-focus-border:var(--vscode-focusBorder,var(--theia-focusBorder,var(--ws-palette-primary-500)));--ws-select-bg:var(--vscode-dropdown-background,var(--theia-dropdown-background,var(--ws-input-bg)));--ws-select-border:var(--vscode-dropdown-border,var(--theia-dropdown-border,var(--ws-input-border)));--ws-select-text:var(--vscode-dropdown-foreground,var(--theia-dropdown-foreground,var(--ws-input-text)));--ws-select-list-bg:var(--vscode-dropdown-listBackground,var(--theia-dropdown-listBackground,var(--ws-palette-grey-900)));--ws-input-option-hover-bg:var(--vscode-list-hoverBackground,var(--theia-list-hoverBackground,var(--ws-palette-primary-700)));--ws-input-option-active-bg:var(--vscode-list-activeSelectionBackground,var(--theia-list-activeSelectionBackground,var(--ws-palette-primary-500)));--ws-input-option-active-text:var(--vscode-list-activeSelectionForeground,var(--theia-list-activeSelectionForeground,var(--ws-palette-white)));--ws-input-error-border:var(--vscode-inputValidation-errorBorder,var(--theia-inputValidation-errorBorder,var(--ws-palette-negative-500)));--ws-input-error-bg:var(--vscode-inputValidation-errorBackground,var(--theia-inputValidation-errorBackground,var(--ws-palette-negative-200)));--ws-input-warning-border:var(--vscode-inputValidation-warningBorder,var(--theia-inputValidation-warningBorder,var(--ws-palette-warning-500)));--ws-input-warning-bg:var(--vscode-inputValidation-warningBackground,var(--theia-inputValidation-warningBackground,var(--ws-palette-warning-200)));--ws-input-info-bg:var(--vscode-panel-background,var(--theia-inputValidation-infoBackground,var(--ws-palette-primary-200)));--ws-input-message-bg:var(--vscode-editor-lineHighlightBackground,var(--theia-inputValidation-infoBackground,var(--ws-palette-primary-200)));--ws-input-message-text:var(--vscode-editorInfo-foreground,var(--theia-inputValidation-infoForeground,var(--ws-palette-primary-500)));--ws-inactive-text:var(--vscode-disabledForeground,var(--theia-disabled-foreground,var(--ws-palette-grey-200)));--ws-disable-bg:var(--vscode-button-disabledBackground,var(--theia-button-disabledBackground,var(--ws-palette-grey-300)));--ws-disable-input:var(--vscode-button-disabledBackground,var(--theia-button-disabledBackground,var(--ws-palette-grey-200)));--ws-panel-0:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-grey-900)));--ws-panel-1:var(--vscode-sideBar-background,var(--theia-sideBar-background,var(--ws-palette-grey-700)));--ws-panel-2:var(--vscode-panel-background,var(--theia-panel-background,var(--ws-palette-grey-900)));--ws-panel-3:var(--vscode-editorGroupHeader-tabsBackground,var(--theia-editor-group-header-background,var(--ws-palette-grey-900)));--ws-panel-4:var(--vscode-editorWidget-background,var(--theia-editorWidget-background,var(--ws-palette-grey-300)));--ws-panel-5:var(--vscode-editorWidget-background,var(--theia-editorWidget-background,var(--ws-palette-grey-950)));--ws-panel-border-subtle:var(--vscode-panel-border,var(--theia-border-color,var(--ws-palette-grey-100)));--ws-panel-border-strong:var(--vscode-contrastBorder,var(--theia-contrastBorder,var(--ws-palette-grey-300)));--ws-tab-bg-default:var(--vscode-editorGroupHeader-tabsBackground,var(--ws-palette-grey-900));--ws-tab-border:var(--vscode-tab-border,var(--ws-palette-grey-950));--ws-tab-active-bg:var(--vscode-tab-activeBackground,var(--ws-palette-grey-800));--ws-tab-active-fg:var(--vscode-tab-activeForeground,var(--ws-bg-foreground));--ws-tab-inactive-bg:var(--vscode-tab-inactiveBackground,var(--ws-palette-grey-900));--ws-tab-inactive-fg:var(--vscode-tab-inactiveForeground,var(--ws-palette-grey-200));--ws-tab-hover-bg:var(--vscode-tab-hoverBackground,var(--ws-palette-grey-700));--ws-panel-header-bg:var(--vscode-sideBarSectionHeader-background,var(--ws-palette-grey-800));--ws-panel-header-fg:var(--vscode-sideBarSectionHeader-foreground,var(--ws-bg-foreground));--ws-panel-bg:var(--vscode-panel-background,var(--ws-bg-default));--ws-panel-border:var(--vscode-panel-border,var(--ws-palette-grey-950));--ws-panel-title-active-border:var(--vscode-panelTitle-activeBorder,var(--ws-palette-primary-500));--ws-panel-title-active-fg:var(--vscode-panelTitle-activeForeground,var(--ws-bg-foreground));--ws-panel-title-inactive-fg:var(--vscode-panelTitle-inactiveForeground,var(--ws-palette-grey-100))}.center-absolute:not(#\\#){--tw-translate-x: -50% ;--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y);transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,);position:absolute;top:50%;left:50%}.ws-group:hover .ws-checkbox-hover-target{opacity:1!important}.simplebar-scrollbar:not(#\\#):before{background-color:#ccc}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
200
+ `,document.head.appendChild(e)}catch(e){console.error("vite-plugin-inject-css: failed to inject css",e)}})();const HM=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:C.jsx("path",{d:"M21.66 6.28a.5.5 0 0 0 0-.697l-.967-.993a.5.5 0 0 0-.716 0L8.499 16.373 4.023 11.78a.5.5 0 0 0-.716 0l-.967.993a.5.5 0 0 0 0 .697l5.889 6.046.014-.014a.377.377 0 0 0 .54 0L21.66 6.28Z",fill:"currentColor"})}),WM=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:C.jsx("path",{d:"M10.84 2.714c0-.394.346-.714.773-.714h.774c.427 0 .773.32.773.714V9.5h5.025c.427 0 .773.32.773.714v3.572H5.042v-3.572c0-.394.346-.714.773-.714h5.025V2.714ZM5.042 14.5h13.916l1.034 6.685c.067.43-.295.815-.765.815h-2.1l-.681-5.929L15.764 22h-3.236l-.721-2.143L11.086 22h-2.85l-.682-3.929L6.872 22H4.773c-.47 0-.832-.385-.765-.815L5.042 14.5Z",fill:"currentColor"})}),_c=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:C.jsx("path",{d:"M4.497 5.361a.5.5 0 0 0 0 .707L10.429 12l-5.932 5.932a.5.5 0 0 0 0 .707l.864.864a.5.5 0 0 0 .707 0L12 13.571l5.932 5.932a.5.5 0 0 0 .707 0l.864-.864a.5.5 0 0 0 0-.707L13.571 12l5.932-5.932a.5.5 0 0 0 0-.707l-.864-.864a.5.5 0 0 0-.707 0L12 10.429 6.068 4.497a.5.5 0 0 0-.707 0l-.864.864Z",fill:"currentColor"})}),BM=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:C.jsx("path",{d:"M11.701 18.797c.206.195.52.195.726 0l2.487-2.349-.008-.007 6.973-6.585a.58.58 0 0 0 0-.835l-2.045-1.932a.524.524 0 0 0-.726 0l-7.052 6.66-7.051-6.66a.524.524 0 0 0-.726 0L2.234 9.021a.58.58 0 0 0 0 .835l9.467 8.941Z",fill:"currentColor"})}),VM=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:C.jsx("path",{d:"M20.673 5.133c.136.24.053.55-.185.69l-16.25 9.623a.487.487 0 0 1-.676-.18l-.497-.884a.513.513 0 0 1 .185-.69L19.5 4.069c.238-.141.54-.06.676.18l.497.884ZM20.938 9.657c.136.24.053.55-.185.69L7.925 17.944a.487.487 0 0 1-.676-.181l-.497-.884a.513.513 0 0 1 .185-.69l12.829-7.597c.237-.14.54-.06.675.181l.497.884ZM20.16 15.376c.237-.14.32-.45.184-.69l-.497-.884a.487.487 0 0 0-.676-.18l-7.695 4.556a.513.513 0 0 0-.185.69l.498.884c.135.24.437.322.675.181l7.695-4.557Z",fill:"currentColor"})}),UM=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},qM=(e,t)=>({classGroupId:e,validator:t}),Ew=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Jl="-",db=[],GM="arbitrary..",YM=e=>{const t=ZM(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return KM(o);const a=o.split(Jl),l=a[0]===""&&a.length>1?1:0;return kw(a,l,t)},getConflictingClassGroupIds:(o,a)=>{if(a){const l=n[o],c=r[o];return l?c?UM(c,l):l:c||db}return r[o]||db}}},kw=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const n=e[t],o=r.nextPart.get(n);if(o){const u=kw(e,t+1,o);if(u)return u}const a=r.validators;if(a===null)return;const l=t===0?e.join(Jl):e.slice(t).join(Jl),c=a.length;for(let u=0;u<c;u++){const d=a[u];if(d.validator(l))return d.classGroupId}},KM=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?GM+n:void 0})(),ZM=e=>{const{theme:t,classGroups:r}=e;return XM(r,t)},XM=(e,t)=>{const r=Ew();for(const n in e){const o=e[n];np(o,r,n,t)}return r},np=(e,t,r,n)=>{const o=e.length;for(let a=0;a<o;a++){const l=e[a];JM(l,t,r,n)}},JM=(e,t,r,n)=>{if(typeof e=="string"){QM(e,t,r);return}if(typeof e=="function"){eD(e,t,r,n);return}tD(e,t,r,n)},QM=(e,t,r)=>{const n=e===""?t:Ow(t,e);n.classGroupId=r},eD=(e,t,r,n)=>{if(rD(e)){np(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(qM(r,e))},tD=(e,t,r,n)=>{const o=Object.entries(e),a=o.length;for(let l=0;l<a;l++){const[c,u]=o[l];np(u,Ow(t,c),r,n)}},Ow=(e,t)=>{let r=e;const n=t.split(Jl),o=n.length;for(let a=0;a<o;a++){const l=n[a];let c=r.nextPart.get(l);c||(c=Ew(),r.nextPart.set(l,c)),r=c}return r},rD=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,nD=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(a,l)=>{r[a]=l,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(a){let l=r[a];if(l!==void 0)return l;if((l=n[a])!==void 0)return o(a,l),l},set(a,l){a in r?r[a]=l:o(a,l)}}},ud="!",pb=":",iD=[],hb=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),oD=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let l=0,c=0,u=0,d;const p=o.length;for(let v=0;v<p;v++){const b=o[v];if(l===0&&c===0){if(b===pb){a.push(o.slice(u,v)),u=v+1;continue}if(b==="/"){d=v;continue}}b==="["?l++:b==="]"?l--:b==="("?c++:b===")"&&c--}const h=a.length===0?o:o.slice(u);let g=h,y=!1;h.endsWith(ud)?(g=h.slice(0,-1),y=!0):h.startsWith(ud)&&(g=h.slice(1),y=!0);const S=d&&d>u?d-u:void 0;return hb(a,y,g,S)};if(t){const o=t+pb,a=n;n=l=>l.startsWith(o)?a(l.slice(o.length)):hb(iD,!1,l,void 0,!0)}if(r){const o=n;n=a=>r({className:a,parseClassName:o})}return n},aD=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let o=[];for(let a=0;a<r.length;a++){const l=r[a],c=l[0]==="[",u=t.has(l);c||u?(o.length>0&&(o.sort(),n.push(...o),o=[]),n.push(l)):o.push(l)}return o.length>0&&(o.sort(),n.push(...o)),n}},sD=e=>({cache:nD(e.cacheSize),parseClassName:oD(e),sortModifiers:aD(e),...YM(e)}),lD=/\s+/,cD=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,l=[],c=e.trim().split(lD);let u="";for(let d=c.length-1;d>=0;d-=1){const p=c[d],{isExternal:h,modifiers:g,hasImportantModifier:y,baseClassName:S,maybePostfixModifierPosition:v}=r(p);if(h){u=p+(u.length>0?" "+u:u);continue}let b=!!v,m=n(b?S.substring(0,v):S);if(!m){if(!b){u=p+(u.length>0?" "+u:u);continue}if(m=n(S),!m){u=p+(u.length>0?" "+u:u);continue}b=!1}const w=g.length===0?"":g.length===1?g[0]:a(g).join(":"),x=y?w+ud:w,k=x+m;if(l.indexOf(k)>-1)continue;l.push(k);const E=o(m,b);for(let R=0;R<E.length;++R){const F=E[R];l.push(x+F)}u=p+(u.length>0?" "+u:u)}return u},uD=(...e)=>{let t=0,r,n,o="";for(;t<e.length;)(r=e[t++])&&(n=Aw(r))&&(o&&(o+=" "),o+=n);return o},Aw=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Aw(e[n]))&&(r&&(r+=" "),r+=t);return r},gb=(e,...t)=>{let r,n,o,a;const l=u=>{const d=t.reduce((p,h)=>h(p),e());return r=sD(d),n=r.cache.get,o=r.cache.set,a=c,c(u)},c=u=>{const d=n(u);if(d)return d;const p=cD(u,r);return o(u,p),p};return a=l,(...u)=>a(uD(...u))},fD=[],Tt=e=>{const t=r=>r[e]||fD;return t.isThemeGetter=!0,t},Tw=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Rw=/^\((?:(\w[\w-]*):)?(.+)\)$/i,dD=/^\d+\/\d+$/,pD=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hD=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,gD=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,vD=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,mD=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,oo=e=>dD.test(e),Me=e=>!!e&&!Number.isNaN(Number(e)),Un=e=>!!e&&Number.isInteger(Number(e)),Ef=e=>e.endsWith("%")&&Me(e.slice(0,-1)),Sn=e=>pD.test(e),bD=()=>!0,yD=e=>hD.test(e)&&!gD.test(e),Cw=()=>!1,wD=e=>vD.test(e),xD=e=>mD.test(e),SD=e=>!ye(e)&&!we(e),_D=e=>_o(e,Nw,Cw),ye=e=>Tw.test(e),xi=e=>_o(e,Mw,yD),kf=e=>_o(e,TD,Me),vb=e=>_o(e,Pw,Cw),ED=e=>_o(e,Iw,xD),sl=e=>_o(e,Dw,wD),we=e=>Rw.test(e),pa=e=>Eo(e,Mw),kD=e=>Eo(e,RD),mb=e=>Eo(e,Pw),OD=e=>Eo(e,Nw),AD=e=>Eo(e,Iw),ll=e=>Eo(e,Dw,!0),_o=(e,t,r)=>{const n=Tw.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Eo=(e,t,r=!1)=>{const n=Rw.exec(e);return n?n[1]?t(n[1]):r:!1},Pw=e=>e==="position"||e==="percentage",Iw=e=>e==="image"||e==="url",Nw=e=>e==="length"||e==="size"||e==="bg-size",Mw=e=>e==="length",TD=e=>e==="number",RD=e=>e==="family-name",Dw=e=>e==="shadow",bb=()=>{const e=Tt("color"),t=Tt("font"),r=Tt("text"),n=Tt("font-weight"),o=Tt("tracking"),a=Tt("leading"),l=Tt("breakpoint"),c=Tt("container"),u=Tt("spacing"),d=Tt("radius"),p=Tt("shadow"),h=Tt("inset-shadow"),g=Tt("text-shadow"),y=Tt("drop-shadow"),S=Tt("blur"),v=Tt("perspective"),b=Tt("aspect"),m=Tt("ease"),w=Tt("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...k(),we,ye],R=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],A=()=>[we,ye,u],N=()=>[oo,"full","auto",...A()],V=()=>[Un,"none","subgrid",we,ye],$=()=>["auto",{span:["full",Un,we,ye]},Un,we,ye],M=()=>[Un,"auto",we,ye],B=()=>["auto","min","max","fr",we,ye],j=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],I=()=>["start","end","center","stretch","center-safe","end-safe"],Y=()=>["auto",...A()],X=()=>[oo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...A()],K=()=>[e,we,ye],me=()=>[...k(),mb,vb,{position:[we,ye]}],L=()=>["no-repeat",{repeat:["","x","y","space","round"]}],U=()=>["auto","cover","contain",OD,_D,{size:[we,ye]}],te=()=>[Ef,pa,xi],ee=()=>["","none","full",d,we,ye],J=()=>["",Me,pa,xi],ae=()=>["solid","dashed","dotted","double"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ne=()=>[Me,Ef,mb,vb],ce=()=>["","none",S,we,ye],he=()=>["none",Me,we,ye],pe=()=>["none",Me,we,ye],Se=()=>[Me,we,ye],Z=()=>[oo,"full",...A()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Sn],breakpoint:[Sn],color:[bD],container:[Sn],"drop-shadow":[Sn],ease:["in","out","in-out"],font:[SD],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Sn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Sn],shadow:[Sn],spacing:["px",Me],text:[Sn],"text-shadow":[Sn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",oo,ye,we,b]}],container:["container"],columns:[{columns:[Me,ye,we,c]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:N()}],"inset-x":[{"inset-x":N()}],"inset-y":[{"inset-y":N()}],start:[{start:N()}],end:[{end:N()}],top:[{top:N()}],right:[{right:N()}],bottom:[{bottom:N()}],left:[{left:N()}],visibility:["visible","invisible","collapse"],z:[{z:[Un,"auto",we,ye]}],basis:[{basis:[oo,"full","auto",c,...A()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Me,oo,"auto","initial","none",ye]}],grow:[{grow:["",Me,we,ye]}],shrink:[{shrink:["",Me,we,ye]}],order:[{order:[Un,"first","last","none",we,ye]}],"grid-cols":[{"grid-cols":V()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":V()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":B()}],"auto-rows":[{"auto-rows":B()}],gap:[{gap:A()}],"gap-x":[{"gap-x":A()}],"gap-y":[{"gap-y":A()}],"justify-content":[{justify:[...j(),"normal"]}],"justify-items":[{"justify-items":[...I(),"normal"]}],"justify-self":[{"justify-self":["auto",...I()]}],"align-content":[{content:["normal",...j()]}],"align-items":[{items:[...I(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...I(),{baseline:["","last"]}]}],"place-content":[{"place-content":j()}],"place-items":[{"place-items":[...I(),"baseline"]}],"place-self":[{"place-self":["auto",...I()]}],p:[{p:A()}],px:[{px:A()}],py:[{py:A()}],ps:[{ps:A()}],pe:[{pe:A()}],pt:[{pt:A()}],pr:[{pr:A()}],pb:[{pb:A()}],pl:[{pl:A()}],m:[{m:Y()}],mx:[{mx:Y()}],my:[{my:Y()}],ms:[{ms:Y()}],me:[{me:Y()}],mt:[{mt:Y()}],mr:[{mr:Y()}],mb:[{mb:Y()}],ml:[{ml:Y()}],"space-x":[{"space-x":A()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":A()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],w:[{w:[c,"screen",...X()]}],"min-w":[{"min-w":[c,"screen","none",...X()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[l]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",r,pa,xi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,we,kf]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ef,ye]}],"font-family":[{font:[kD,ye,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,we,ye]}],"line-clamp":[{"line-clamp":[Me,"none",we,kf]}],leading:[{leading:[a,...A()]}],"list-image":[{"list-image":["none",we,ye]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",we,ye]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:K()}],"text-color":[{text:K()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[Me,"from-font","auto",we,xi]}],"text-decoration-color":[{decoration:K()}],"underline-offset":[{"underline-offset":[Me,"auto",we,ye]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",we,ye]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",we,ye]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:me()}],"bg-repeat":[{bg:L()}],"bg-size":[{bg:U()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Un,we,ye],radial:["",we,ye],conic:[Un,we,ye]},AD,ED]}],"bg-color":[{bg:K()}],"gradient-from-pos":[{from:te()}],"gradient-via-pos":[{via:te()}],"gradient-to-pos":[{to:te()}],"gradient-from":[{from:K()}],"gradient-via":[{via:K()}],"gradient-to":[{to:K()}],rounded:[{rounded:ee()}],"rounded-s":[{"rounded-s":ee()}],"rounded-e":[{"rounded-e":ee()}],"rounded-t":[{"rounded-t":ee()}],"rounded-r":[{"rounded-r":ee()}],"rounded-b":[{"rounded-b":ee()}],"rounded-l":[{"rounded-l":ee()}],"rounded-ss":[{"rounded-ss":ee()}],"rounded-se":[{"rounded-se":ee()}],"rounded-ee":[{"rounded-ee":ee()}],"rounded-es":[{"rounded-es":ee()}],"rounded-tl":[{"rounded-tl":ee()}],"rounded-tr":[{"rounded-tr":ee()}],"rounded-br":[{"rounded-br":ee()}],"rounded-bl":[{"rounded-bl":ee()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ae(),"hidden","none"]}],"divide-style":[{divide:[...ae(),"hidden","none"]}],"border-color":[{border:K()}],"border-color-x":[{"border-x":K()}],"border-color-y":[{"border-y":K()}],"border-color-s":[{"border-s":K()}],"border-color-e":[{"border-e":K()}],"border-color-t":[{"border-t":K()}],"border-color-r":[{"border-r":K()}],"border-color-b":[{"border-b":K()}],"border-color-l":[{"border-l":K()}],"divide-color":[{divide:K()}],"outline-style":[{outline:[...ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Me,we,ye]}],"outline-w":[{outline:["",Me,pa,xi]}],"outline-color":[{outline:K()}],shadow:[{shadow:["","none",p,ll,sl]}],"shadow-color":[{shadow:K()}],"inset-shadow":[{"inset-shadow":["none",h,ll,sl]}],"inset-shadow-color":[{"inset-shadow":K()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:K()}],"ring-offset-w":[{"ring-offset":[Me,xi]}],"ring-offset-color":[{"ring-offset":K()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":K()}],"text-shadow":[{"text-shadow":["none",g,ll,sl]}],"text-shadow-color":[{"text-shadow":K()}],opacity:[{opacity:[Me,we,ye]}],"mix-blend":[{"mix-blend":[...se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":se()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Me]}],"mask-image-linear-from-pos":[{"mask-linear-from":ne()}],"mask-image-linear-to-pos":[{"mask-linear-to":ne()}],"mask-image-linear-from-color":[{"mask-linear-from":K()}],"mask-image-linear-to-color":[{"mask-linear-to":K()}],"mask-image-t-from-pos":[{"mask-t-from":ne()}],"mask-image-t-to-pos":[{"mask-t-to":ne()}],"mask-image-t-from-color":[{"mask-t-from":K()}],"mask-image-t-to-color":[{"mask-t-to":K()}],"mask-image-r-from-pos":[{"mask-r-from":ne()}],"mask-image-r-to-pos":[{"mask-r-to":ne()}],"mask-image-r-from-color":[{"mask-r-from":K()}],"mask-image-r-to-color":[{"mask-r-to":K()}],"mask-image-b-from-pos":[{"mask-b-from":ne()}],"mask-image-b-to-pos":[{"mask-b-to":ne()}],"mask-image-b-from-color":[{"mask-b-from":K()}],"mask-image-b-to-color":[{"mask-b-to":K()}],"mask-image-l-from-pos":[{"mask-l-from":ne()}],"mask-image-l-to-pos":[{"mask-l-to":ne()}],"mask-image-l-from-color":[{"mask-l-from":K()}],"mask-image-l-to-color":[{"mask-l-to":K()}],"mask-image-x-from-pos":[{"mask-x-from":ne()}],"mask-image-x-to-pos":[{"mask-x-to":ne()}],"mask-image-x-from-color":[{"mask-x-from":K()}],"mask-image-x-to-color":[{"mask-x-to":K()}],"mask-image-y-from-pos":[{"mask-y-from":ne()}],"mask-image-y-to-pos":[{"mask-y-to":ne()}],"mask-image-y-from-color":[{"mask-y-from":K()}],"mask-image-y-to-color":[{"mask-y-to":K()}],"mask-image-radial":[{"mask-radial":[we,ye]}],"mask-image-radial-from-pos":[{"mask-radial-from":ne()}],"mask-image-radial-to-pos":[{"mask-radial-to":ne()}],"mask-image-radial-from-color":[{"mask-radial-from":K()}],"mask-image-radial-to-color":[{"mask-radial-to":K()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k()}],"mask-image-conic-pos":[{"mask-conic":[Me]}],"mask-image-conic-from-pos":[{"mask-conic-from":ne()}],"mask-image-conic-to-pos":[{"mask-conic-to":ne()}],"mask-image-conic-from-color":[{"mask-conic-from":K()}],"mask-image-conic-to-color":[{"mask-conic-to":K()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:me()}],"mask-repeat":[{mask:L()}],"mask-size":[{mask:U()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",we,ye]}],filter:[{filter:["","none",we,ye]}],blur:[{blur:ce()}],brightness:[{brightness:[Me,we,ye]}],contrast:[{contrast:[Me,we,ye]}],"drop-shadow":[{"drop-shadow":["","none",y,ll,sl]}],"drop-shadow-color":[{"drop-shadow":K()}],grayscale:[{grayscale:["",Me,we,ye]}],"hue-rotate":[{"hue-rotate":[Me,we,ye]}],invert:[{invert:["",Me,we,ye]}],saturate:[{saturate:[Me,we,ye]}],sepia:[{sepia:["",Me,we,ye]}],"backdrop-filter":[{"backdrop-filter":["","none",we,ye]}],"backdrop-blur":[{"backdrop-blur":ce()}],"backdrop-brightness":[{"backdrop-brightness":[Me,we,ye]}],"backdrop-contrast":[{"backdrop-contrast":[Me,we,ye]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Me,we,ye]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Me,we,ye]}],"backdrop-invert":[{"backdrop-invert":["",Me,we,ye]}],"backdrop-opacity":[{"backdrop-opacity":[Me,we,ye]}],"backdrop-saturate":[{"backdrop-saturate":[Me,we,ye]}],"backdrop-sepia":[{"backdrop-sepia":["",Me,we,ye]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":A()}],"border-spacing-x":[{"border-spacing-x":A()}],"border-spacing-y":[{"border-spacing-y":A()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",we,ye]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Me,"initial",we,ye]}],ease:[{ease:["linear","initial",m,we,ye]}],delay:[{delay:[Me,we,ye]}],animate:[{animate:["none",w,we,ye]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,we,ye]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:he()}],"rotate-x":[{"rotate-x":he()}],"rotate-y":[{"rotate-y":he()}],"rotate-z":[{"rotate-z":he()}],scale:[{scale:pe()}],"scale-x":[{"scale-x":pe()}],"scale-y":[{"scale-y":pe()}],"scale-z":[{"scale-z":pe()}],"scale-3d":["scale-3d"],skew:[{skew:Se()}],"skew-x":[{"skew-x":Se()}],"skew-y":[{"skew-y":Se()}],transform:[{transform:[we,ye,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Z()}],"translate-x":[{"translate-x":Z()}],"translate-y":[{"translate-y":Z()}],"translate-z":[{"translate-z":Z()}],"translate-none":["translate-none"],accent:[{accent:K()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:K()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",we,ye]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",we,ye]}],fill:[{fill:["none",...K()]}],"stroke-w":[{stroke:[Me,pa,xi,kf]}],stroke:[{stroke:["none",...K()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},CD=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:o={},override:a={}})=>(xa(e,"cacheSize",t),xa(e,"prefix",r),xa(e,"experimentalParseClassName",n),cl(e.theme,a.theme),cl(e.classGroups,a.classGroups),cl(e.conflictingClassGroups,a.conflictingClassGroups),cl(e.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),xa(e,"orderSensitiveModifiers",a.orderSensitiveModifiers),ul(e.theme,o.theme),ul(e.classGroups,o.classGroups),ul(e.conflictingClassGroups,o.conflictingClassGroups),ul(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),$w(e,o,"orderSensitiveModifiers"),e),xa=(e,t,r)=>{r!==void 0&&(e[t]=r)},cl=(e,t)=>{if(t)for(const r in t)xa(e,r,t[r])},ul=(e,t)=>{if(t)for(const r in t)$w(e,t,r)},$w=(e,t,r)=>{const n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},PD=(e,...t)=>typeof e=="function"?gb(bb,e,...t):gb(()=>CD(bb(),e),...t);function Lw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yb={exports:{}};/*!
201
+ Copyright (c) 2018 Jed Watson.
202
+ Licensed under the MIT License (MIT), see
203
+ http://jedwatson.github.io/classnames
204
+ */var wb;function ID(){return wb||(wb=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(a=o(a,n(c)))}return a}function n(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var l="";for(var c in a)t.call(a,c)&&a[c]&&(l=o(l,c));return l}function o(a,l){return l?a?a+" "+l:a+l:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(yb)),yb.exports}var ND=ID();const ko=Lw(ND),MD=PD({extend:{classGroups:{"font-size":["text-xxs","text-xs","text-s","text-sm","text-base","text-lg","text-xl","text-2xl","text-3xl","text-4xl","text-5xl","text-6xl","text-7xl","text-8xl","text-9xl"],"text-color":["text-body","text-muted","text-inactive-text","text-button-text","text-positive-text","text-negative-text","text-negative","text-warning-text","text-input-text","text-select-text","text-input-message-text","text-placeholder"]}}});function fe(...e){return MD(ko(e))}const Xa={sm:{checkbox:"size-4",hoverSquare:"size-2.5",text:"text-xs",spacing:"gap-1",icon:"size-3.25"},md:{checkbox:"size-5",hoverSquare:"size-3.5",text:"text-sm",spacing:"gap-1.5",icon:"size-4"},lg:{checkbox:"size-6",hoverSquare:"size-4",text:"text-base",spacing:"gap-2",icon:"size-5"}},Ar={primary:{checked:"bg-primary border-primary",unchecked:"border border-body bg-transparent",checkedHover:"hover:bg-primary-hover hover:border-primary-hover",hoverSquare:"bg-primary-hover",focus:"focus:ring-primary",label:"text-body"},positive:{checked:"bg-positive border-positive",unchecked:"border border-positive bg-transparent",checkedHover:"hover:bg-positive-hover hover:border-positive-hover",hoverSquare:"bg-positive-hover",focus:"focus:ring-positive",label:"text-positive"},warning:{checked:"bg-warning border-warning",unchecked:"border border-warning bg-transparent",checkedHover:"hover:bg-warning-hover hover:border-warning-hover",hoverSquare:"bg-warning-hover",focus:"focus:ring-warning",label:"text-warning"},negative:{checked:"bg-negative border-negative",unchecked:"border border-negative bg-transparent",checkedHover:"hover:bg-negative-hover hover:border-negative-hover",hoverSquare:"bg-negative-hover",focus:"focus:ring-negative",label:"text-negative"}},DD=`
205
+ appearance-none border rounded transition-all duration-200
206
+ focus:ring-2 focus:ring-offset-2 focus:outline-hidden
207
+ relative
208
+ `,$D=(e,t,r)=>{const{isChecked:n,isIndeterminate:o,isDisabled:a,isInvalid:l}=r,c=n||o;return fe(DD,Xa[e].checkbox,{"cursor-pointer":!a},l?{[Ar.negative.checked]:c,[Ar.negative.unchecked]:!c,[Ar.negative.checkedHover]:!a&&c,[Ar.negative.focus]:!a,"border-input-disable":a}:{[Ar[t].checked]:c&&!a,[Ar[t].unchecked]:!c&&!a,[Ar[t].checkedHover]:!a&&c,[Ar[t].focus]:!a,"border-input-disable":a,"bg-input-disable text-inactive-text":a&&c})},LD=(e,t,r)=>{const{isDisabled:n,isInvalid:o}=r;return fe(Xa[e].text,o?{[Ar.negative.label]:o}:{"text-input-disable":n,[Ar[t].label]:!n,"cursor-pointer":!n})},zD=e=>fe("inline-flex items-center ws-group",Xa[e].spacing),jD=(e,t,r)=>fe("center-absolute rounded-xs transition-all duration-200 opacity-0 ws-checkbox-hover-target",Xa[e].hoverSquare,{[Ar.negative.hoverSquare]:r,[Ar[t].hoverSquare]:!r}),FD=e=>`${Xa[e].icon}`,HD=e=>C.jsx("svg",{className:`absolute inset-0 ${e.className}`,fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",xmlns:"http://www.w3.org/2000/svg",...e,children:C.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",fill:"none"})}),WD=H.forwardRef(({label:e,isDisabled:t=!1,isInvalid:r=!1,isRequired:n=!1,size:o="md",color:a="primary",onChange:l,onFocus:c,onBlur:u,value:d,defaultValue:p,name:h,id:g,...y},S)=>{const[v,b]=H.useState(p),m=d===!0||v===!0,w=d===null,x=m||w,k={isChecked:m,isIndeterminate:w,isDisabled:t,isInvalid:r},E=$D(o,a,k),R=LD(o,a,k),F=zD(o),A=jD(o,a,r),N=FD(o);return C.jsxs("label",{"data-qui":"Checkbox",className:F,children:[C.jsxs("div",{className:E,children:[C.jsx("input",{ref:S,type:"checkbox",className:"sr-only",checked:m,disabled:t,required:n,onChange:V=>{d===void 0&&b(V.target.checked),l==null||l(V)},onFocus:c,onBlur:u,name:h,id:g,...y}),x&&C.jsx("div",{className:"center-absolute",children:w?C.jsx(HD,{className:N}):C.jsx(HM,{className:N})}),!x&&!t&&C.jsx("div",{className:A})]}),e&&C.jsxs("span",{className:R,children:[e,n&&C.jsx("span",{className:"text-negative ml-1",children:"*"})]})]})});WD.displayName="Checkbox";const Ja={sm:{container:"gap-2",radio:"size-3",label:"text-xs",dot:"size-2",hoverDot:"size-1.5"},md:{container:"gap-2.5",radio:"size-4",label:"text-sm",dot:"size-2.5",hoverDot:"size-2"},lg:{container:"gap-3",radio:"size-6",label:"text-base",dot:"size-4",hoverDot:"size-3"}},$a={primary:{radio:"border-body-light group-hover:border-body",radioInvalid:"border-negative",dot:"bg-primary group-hover:bg-primary-hover",hoverDot:"bg-primary-hover",label:"text-body"},positive:{radio:"border-positive group-hover:border-positive-text",radioInvalid:"border-negative",dot:"bg-positive group-hover:bg-positive-hover",hoverDot:"bg-positive-bg",label:"text-positive-text"},warning:{radio:"border-warning group-hover:border-warning-text",radioInvalid:"border-negative",dot:"bg-warning group-hover:bg-warning-hover",hoverDot:"bg-warning-bg",label:"text-warning-text"},negative:{radio:"border-negative group-hover:border-negative-text",radioInvalid:"border-negative",dot:"bg-negative group-hover:bg-negative-hover",hoverDot:"bg-negative-bg",label:"text-negative"}},BD=`
209
+ relative rounded-full border transition-all duration-200 ease-in-out bg-transparent
210
+ focus:outline-hidden focus:ring-2 focus:ring-offset-0
211
+ cursor-pointer peer
212
+ `,VD=(e,t,r)=>{const{isDisabled:n,isInvalid:o}=r;return ko(BD,Ja[e].radio,o?$a[t].radioInvalid:{[$a[t].radio]:!n,"cursor-not-allowed opacity-60":n})},UD=(e,t,r)=>{const{checked:n,isDisabled:o,isInvalid:a}=r;return ko("center-absolute rounded-full transition-all duration-200 ease-in-out",Ja[e].dot,a?"bg-negative":{[$a[t].dot]:!o,"border-neutral":o,"opacity-0 scale-0":!n,"opacity-100 scale-100":n&&!o})},qD=(e,t,r)=>ko("center-absolute rounded-full transition-all duration-200 opacity-0 group-hover:opacity-100",Ja[e].hoverDot,{[$a[t].hoverDot]:!r,"bg-negative-bg":r}),GD=(e,t,r)=>{const{isDisabled:n,isInvalid:o}=r;return ko("cursor-pointer select-none transition-colors duration-200",Ja[e].label,o?{"text-negative":o}:{[$a[t].label]:!n,"text-muted":n})},YD=(e,t)=>ko("inline-flex items-center group",Ja[e].container,t),KD=H.createContext(null),ZD=()=>{const e=H.useContext(KD);if(!e)throw new Error("Radio.Item must be used within Radio.Group");return e},XD=H.forwardRef(({value:e,label:t,size:r,color:n,isDisabled:o,isInvalid:a,isRequired:l,className:c,...u},d)=>{const p=ZD(),h=r??p.size,g=n??p.color,y=o??p.isDisabled,S=a??p.isInvalid,v=l??p.isRequired,b=p.value===e,m={checked:b,isDisabled:y,isInvalid:S},w=VD(h,g,m),x=UD(h,g,m),k=qD(h,g,S),E=GD(h,g,m),R=YD(h,c),F=()=>{y||p.onChange(e)};return C.jsxs("label",{"data-qui":"RadioItem",className:R,children:[C.jsxs("div",{className:"relative",children:[C.jsx("input",{ref:d,type:"radio",value:e,checked:b,disabled:y,required:v,"aria-invalid":S,"aria-label":t?void 0:u["aria-label"],name:p.name,onChange:F,className:"sr-only",...u}),C.jsxs("div",{className:w,children:[C.jsx("div",{className:x}),!b&&!y&&C.jsx("div",{className:k})]})]}),t&&C.jsxs("span",{className:E,children:[t,v&&C.jsx("span",{className:"text-negative ml-1",children:"*"})]})]})});XD.displayName="RadioItem";const zw={sm:{container:"h-4.5 p-1 rounded",text:"text-xxs"},md:{container:"h-6 p-1 rounded",text:"text-s"},lg:{container:"h-7 p-1 rounded",text:"text-sm"},xl:{container:"h-7.5 p-1 rounded",text:"text-lg"}},JD={primary:{bg:{solid:"bg-primary",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-primary",ghost:"text-primary"},border:{solid:"border-primary",outline:"border-primary",ghost:"border-transparent"},hover:{solid:"hover:bg-primary-hover hover:border-primary-hover",outline:"hover:border-black hover:text-primary-hover",ghost:"hover:bg-primary-hover hover:text-body"}},white:{bg:{solid:"bg-white",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-primary",outline:"text-body",ghost:"text-body"},border:{solid:"border-white",outline:"border-white",ghost:"border-transparent"},hover:{solid:"hover:bg-canvas-subtle hover:border-canvas-subtle",outline:"hover:border-canvas hover:text-canvas",ghost:"hover:bg-primary-hover hover:text-body"}},positive:{bg:{solid:"bg-positive",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-positive-text",ghost:"text-positive-text"},border:{solid:"border-positive",outline:"border-positive",ghost:"border-transparent"},hover:{solid:"hover:bg-positive-hover hover:border-positive-hover",outline:"hover:border-positive-hover hover:text-positive-hover",ghost:"hover:bg-positive-hover hover:text-body"}},warning:{bg:{solid:"bg-warning",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-warning-text",ghost:"text-warning-text"},border:{solid:"border-warning",outline:"border-warning",ghost:"border-transparent"},hover:{solid:"hover:bg-warning-hover hover:border-warning-hover",outline:"hover:border-warning-hover hover:text-warning-hover",ghost:"hover:bg-warning-hover hover:text-body"}},negative:{bg:{solid:"bg-negative",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-negative",ghost:"text-negative"},border:{solid:"border-negative",outline:"border-negative",ghost:"border-transparent"},hover:{solid:"hover:bg-negative-hover hover:border-negative-hover",outline:"hover:border-negative-hover hover:text-negative-hover",ghost:"hover:bg-negative-hover hover:text-body"}}},QD=(e,t,r,n)=>{const o=zw[e],a=JD[r],l=fe("inline-flex items-center justify-center font-medium transition-colors duration-200 focus:outline-hidden border",{"cursor-pointer":!n},o.container);return n?fe(l,"text-inactive-text",{"border-panel":t!=="ghost"&&t==="solid","border-panel-subtle":t==="outline","bg-panel":t==="solid","bg-transparent ":t==="outline"||t==="ghost","border-transparent":t==="ghost"}):fe(l,a.bg[t],a.text[t],a.hover[t],a.border[t])},e5=e=>fe("flex items-center justify-center gap-1",zw[e].text),t5=H.forwardRef(({size:e="md",variant:t="solid",color:r="primary",className:n,children:o,disabled:a,...l},c)=>C.jsx("button",{"data-qui":"Button",ref:c,type:"button",className:fe(QD(e,t,r,a),e5(e),n),disabled:a,...l,children:o}));t5.displayName="Button";const jw=H.createContext(null),Qa=()=>{const e=H.useContext(jw);if(!e)throw new Error("Input components must be used within Input.Root");return e},Oo={sm:{group:"h-5 min-h-fit",input:"text-2.25",message:"text-2.25 p-1.5",icon:"text-sm"},md:{group:"h-6 min-h-fit",input:"text-xs",message:"text-xs p-2",icon:"text-base"},lg:{group:"h-7 min-h-fit",input:"text-s",message:"text-s p-2.5",icon:"text-lg"}},Vr={primary:{border:"border border-input-border focus-within:border-input-focus-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-focus-border",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-input-message-text",messageBackground:"bg-input-message-bg",icon:"text-input-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},positive:{border:"border border-input-border focus-within:border-positive",borderInvalid:"ring-input-error-border",borderMessage:"ring-positive",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-positive-dark",messageBackground:"bg-positive-light",icon:"text-positive-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},warning:{border:"border border-input-border focus-within:border-input-warning-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-warning-border",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-warning-dark",messageBackground:"bg-input-warning-bg",icon:"text-warning-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},negative:{border:"border border-input-border focus-within:border-input-error-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-error-border",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-negative-dark",messageBackground:"bg-input-error-bg",icon:"text-negative",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"}},r5=()=>fe("flex flex-col"),n5=({size:e,color:t,isDisabled:r,isReadOnly:n,hasMessage:o,hasArea:a})=>fe("bg-input-bg flex gap-1 relative px-1 transition-all duration-200 ease-in-out only:rounded first:rounded-t last:rounded-b",Vr[t].text,o?Vr[t].borderMessage:!n&&Vr[t].border,Oo[e].group,{"ring-1":o,"opacity-60":r,"items-center":!a}),i5=({size:e,color:t})=>fe("bg-transparent ring-0 w-full","focus:outline-hidden",[Oo[e].input],Vr[t].placeholder),xb=({size:e,color:t})=>fe("bg-transparent ring-0 w-full h-fit resize-none py-0.5","focus:outline-hidden",Oo[e].input,Vr[t].placeholder),o5=({size:e,color:t,isDisabled:r,isAction:n})=>fe("transition-colors duration-200 rounded max-h-full h-fit",Oo[e].icon,e==="sm"?"m-px":"m-0.5",r?"text-muted opacity-60 pointer-events-none":n?Vr[t].action:Vr[t].icon,{"cursor-pointer p-0.5":n&&!r,[Vr[t].actionHover]:n&&!r,"pointer-events-none":!n}),a5=({size:e,color:t,isDisabled:r})=>fe("flex items-start gap-x-2 ring-1 ring-t-0 only:rounded first:rounded-t last:rounded-b",r?"text-muted":Vr[t].messageText,Vr[t].borderMessage,Vr[t].messageBackground,Oo[e].message,{"opacity-60":r}),s5=({size:e})=>fe(Oo[e].icon);function Ql(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var l5=typeof global=="object"&&global&&global.Object===Object&&global,c5=typeof self=="object"&&self&&self.Object===Object&&self,Fw=l5||c5||Function("return this")(),Of=function(){return Fw.Date.now()},u5=/\s/;function f5(e){for(var t=e.length;t--&&u5.test(e.charAt(t)););return t}var d5=/^\s+/;function p5(e){return e&&e.slice(0,f5(e)+1).replace(d5,"")}var ec=Fw.Symbol,Hw=Object.prototype,h5=Hw.hasOwnProperty,g5=Hw.toString,ha=ec?ec.toStringTag:void 0;function v5(e){var t=h5.call(e,ha),r=e[ha];try{e[ha]=void 0;var n=!0}catch{}var o=g5.call(e);return n&&(t?e[ha]=r:delete e[ha]),o}var m5=Object.prototype,b5=m5.toString;function y5(e){return b5.call(e)}var w5="[object Null]",x5="[object Undefined]",Sb=ec?ec.toStringTag:void 0;function S5(e){return e==null?e===void 0?x5:w5:Sb&&Sb in Object(e)?v5(e):y5(e)}function _5(e){return e!=null&&typeof e=="object"}var E5="[object Symbol]";function k5(e){return typeof e=="symbol"||_5(e)&&S5(e)==E5}var _b=NaN,O5=/^[-+]0x[0-9a-f]+$/i,A5=/^0b[01]+$/i,T5=/^0o[0-7]+$/i,R5=parseInt;function Eb(e){if(typeof e=="number")return e;if(k5(e))return _b;if(Ql(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ql(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=p5(e);var r=A5.test(e);return r||T5.test(e)?R5(e.slice(2),r?2:8):O5.test(e)?_b:+e}var C5="Expected a function",P5=Math.max,I5=Math.min;function Nl(e,t,r){var n,o,a,l,c,u,d=0,p=!1,h=!1,g=!0;if(typeof e!="function")throw new TypeError(C5);t=Eb(t)||0,Ql(r)&&(p=!!r.leading,h="maxWait"in r,a=h?P5(Eb(r.maxWait)||0,t):a,g="trailing"in r?!!r.trailing:g);function y(R){var F=n,A=o;return n=o=void 0,d=R,l=e.apply(A,F),l}function S(R){return d=R,c=setTimeout(m,t),p?y(R):l}function v(R){var F=R-u,A=R-d,N=t-F;return h?I5(N,a-A):N}function b(R){var F=R-u,A=R-d;return u===void 0||F>=t||F<0||h&&A>=a}function m(){var R=Of();if(b(R))return w(R);c=setTimeout(m,v(R))}function w(R){return c=void 0,g&&n?y(R):(n=o=void 0,l)}function x(){c!==void 0&&clearTimeout(c),d=0,n=u=o=c=void 0}function k(){return c===void 0?l:w(Of())}function E(){var R=Of(),F=b(R);if(n=arguments,o=this,u=R,F){if(c===void 0)return S(u);if(h)return clearTimeout(c),c=setTimeout(m,t),y(u)}return c===void 0&&(c=setTimeout(m,t)),l}return E.cancel=x,E.flush=k,E}var N5="Expected a function";function M5(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError(N5);return Ql(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),Nl(e,t,{leading:n,maxWait:t,trailing:o})}var uo=function(){return uo=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},uo.apply(this,arguments)};function Ww(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function Bw(e){return!e||!e.ownerDocument?document:e.ownerDocument}var Vw=function(e){var t={},r=Array.prototype.reduce.call(e,function(n,o){var a=o.name.match(/data-simplebar-(.+)/);if(a){var l=a[1].replace(/\W+(.)/g,function(c,u){return u.toUpperCase()});switch(o.value){case"true":n[l]=!0;break;case"false":n[l]=!1;break;case void 0:n[l]=!0;break;default:n[l]=o.value}}return n},t);return r};function Uw(e,t){var r;e&&(r=e.classList).add.apply(r,t.split(" "))}function qw(e,t){e&&t.split(" ").forEach(function(r){e.classList.remove(r)})}function Gw(e){return".".concat(e.split(" ").join("."))}var ip=!!(typeof window<"u"&&window.document&&window.document.createElement),D5=Object.freeze({__proto__:null,addClasses:Uw,canUseDOM:ip,classNamesToQuery:Gw,getElementDocument:Bw,getElementWindow:Ww,getOptions:Vw,removeClasses:qw}),lo=null,kb=null;ip&&window.addEventListener("resize",function(){kb!==window.devicePixelRatio&&(kb=window.devicePixelRatio,lo=null)});function Ob(){if(lo===null){if(typeof document>"u")return lo=0,lo;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var r=t.getBoundingClientRect().right;e.removeChild(t),lo=r}return lo}var qn=Ww,Af=Bw,$5=Vw,Gn=Uw,Yn=qw,tr=Gw,ga=(function(){function e(t,r){r===void 0&&(r={});var n=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var o=qn(n.el);n.scrollXTicking||(o.requestAnimationFrame(n.scrollX),n.scrollXTicking=!0),n.scrollYTicking||(o.requestAnimationFrame(n.scrollY),n.scrollYTicking=!0),n.isScrolling||(n.isScrolling=!0,Gn(n.el,n.classNames.scrolling)),n.showScrollbar("x"),n.showScrollbar("y"),n.onStopScrolling()},this.scrollX=function(){n.axis.x.isOverflowing&&n.positionScrollbar("x"),n.scrollXTicking=!1},this.scrollY=function(){n.axis.y.isOverflowing&&n.positionScrollbar("y"),n.scrollYTicking=!1},this._onStopScrolling=function(){Yn(n.el,n.classNames.scrolling),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isScrolling=!1},this.onMouseEnter=function(){n.isMouseEntering||(Gn(n.el,n.classNames.mouseEntered),n.showScrollbar("x"),n.showScrollbar("y"),n.isMouseEntering=!0),n.onMouseEntered()},this._onMouseEntered=function(){Yn(n.el,n.classNames.mouseEntered),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isMouseEntering=!1},this._onMouseMove=function(o){n.mouseX=o.clientX,n.mouseY=o.clientY,(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseMoveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseMoveForAxis("y")},this.onMouseLeave=function(){n.onMouseMove.cancel(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseLeaveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseLeaveForAxis("y"),n.mouseX=-1,n.mouseY=-1},this._onWindowResize=function(){n.scrollbarWidth=n.getScrollbarWidth(),n.hideNativeScrollbar()},this.onPointerEvent=function(o){if(!(!n.axis.x.track.el||!n.axis.y.track.el||!n.axis.x.scrollbar.el||!n.axis.y.scrollbar.el)){var a,l;n.axis.x.track.rect=n.axis.x.track.el.getBoundingClientRect(),n.axis.y.track.rect=n.axis.y.track.el.getBoundingClientRect(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&(a=n.isWithinBounds(n.axis.x.track.rect)),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&(l=n.isWithinBounds(n.axis.y.track.rect)),(a||l)&&(o.stopPropagation(),o.type==="pointerdown"&&o.pointerType!=="touch"&&(a&&(n.axis.x.scrollbar.rect=n.axis.x.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.x.scrollbar.rect)?n.onDragStart(o,"x"):n.onTrackClick(o,"x")),l&&(n.axis.y.scrollbar.rect=n.axis.y.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.y.scrollbar.rect)?n.onDragStart(o,"y"):n.onTrackClick(o,"y"))))}},this.drag=function(o){var a,l,c,u,d,p,h,g,y,S,v;if(!(!n.draggedAxis||!n.contentWrapperEl)){var b,m=n.axis[n.draggedAxis].track,w=(l=(a=m.rect)===null||a===void 0?void 0:a[n.axis[n.draggedAxis].sizeAttr])!==null&&l!==void 0?l:0,x=n.axis[n.draggedAxis].scrollbar,k=(u=(c=n.contentWrapperEl)===null||c===void 0?void 0:c[n.axis[n.draggedAxis].scrollSizeAttr])!==null&&u!==void 0?u:0,E=parseInt((p=(d=n.elStyles)===null||d===void 0?void 0:d[n.axis[n.draggedAxis].sizeAttr])!==null&&p!==void 0?p:"0px",10);o.preventDefault(),o.stopPropagation(),n.draggedAxis==="y"?b=o.pageY:b=o.pageX;var R=b-((g=(h=m.rect)===null||h===void 0?void 0:h[n.axis[n.draggedAxis].offsetAttr])!==null&&g!==void 0?g:0)-n.axis[n.draggedAxis].dragOffset;R=n.draggedAxis==="x"&&n.isRtl?((S=(y=m.rect)===null||y===void 0?void 0:y[n.axis[n.draggedAxis].sizeAttr])!==null&&S!==void 0?S:0)-x.size-R:R;var F=R/(w-x.size),A=F*(k-E);n.draggedAxis==="x"&&n.isRtl&&(A=!((v=e.getRtlHelpers())===null||v===void 0)&&v.isScrollingToNegative?-A:A),n.contentWrapperEl[n.axis[n.draggedAxis].scrollOffsetAttr]=A}},this.onEndDrag=function(o){n.isDragging=!1;var a=Af(n.el),l=qn(n.el);o.preventDefault(),o.stopPropagation(),Yn(n.el,n.classNames.dragging),n.onStopScrolling(),a.removeEventListener("mousemove",n.drag,!0),a.removeEventListener("mouseup",n.onEndDrag,!0),n.removePreventClickId=l.setTimeout(function(){a.removeEventListener("click",n.preventClick,!0),a.removeEventListener("dblclick",n.preventClick,!0),n.removePreventClickId=null})},this.preventClick=function(o){o.preventDefault(),o.stopPropagation()},this.el=t,this.options=uo(uo({},e.defaultOptions),r),this.classNames=uo(uo({},e.defaultOptions.classNames),r.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=M5(this._onMouseMove,64),this.onWindowResize=Nl(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Nl(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Nl(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var r=t.firstElementChild,n=r==null?void 0:r.firstElementChild;if(!n)return null;document.body.appendChild(r),r.scrollLeft=0;var o=e.getOffset(r),a=e.getOffset(n);r.scrollLeft=-999;var l=e.getOffset(n);return document.body.removeChild(r),e.rtlHelpers={isScrollOriginAtZero:o.left!==a.left,isScrollingToNegative:a.left!==l.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:Ob()}catch{return Ob()}},e.getOffset=function(t){var r=t.getBoundingClientRect(),n=Af(t),o=qn(t);return{top:r.top+(o.pageYOffset||n.documentElement.scrollTop),left:r.left+(o.pageXOffset||n.documentElement.scrollLeft)}},e.prototype.init=function(){ip&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,r;this.wrapperEl=this.el.querySelector(tr(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(tr(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(tr(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(tr(this.classNames.offset)),this.maskEl=this.el.querySelector(tr(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,tr(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(tr(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(tr(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(tr(this.classNames.track)).concat(tr(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(tr(this.classNames.track)).concat(tr(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(tr(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((r=this.axis.y.track.el)===null||r===void 0?void 0:r.querySelector(tr(this.classNames.scrollbar)))||null,this.options.autoHide||(Gn(this.axis.x.scrollbar.el,this.classNames.visible),Gn(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,r,n=qn(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(r=this.contentWrapperEl)===null||r===void 0||r.addEventListener("scroll",this.onScroll),n.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var o=!1,a=n.ResizeObserver||ResizeObserver;this.resizeObserver=new a(function(){o&&n.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),n.requestAnimationFrame(function(){o=!0})}this.mutationObserver=new n.MutationObserver(function(){n.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=qn(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var r=this.contentEl.offsetWidth,n=this.heightAutoObserverEl.offsetHeight<=1,o=this.heightAutoObserverEl.offsetWidth<=1||r>0,a=this.contentWrapperEl.offsetWidth,l=this.elStyles.overflowX,c=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var u=this.contentEl.scrollHeight,d=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=n?"auto":"100%",this.placeholderEl.style.width=o?"".concat(r||d,"px"):"auto",this.placeholderEl.style.height="".concat(u,"px");var p=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=r!==0&&d>r,this.axis.y.isOverflowing=u>p,this.axis.x.isOverflowing=l==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=c==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var h=this.axis.x.isOverflowing?this.scrollbarWidth:0,g=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&d>a-g,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&u>p-h,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(t){var r,n;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var o=this.contentEl[this.axis[t].scrollSizeAttr],a=(n=(r=this.axis[t].track.el)===null||r===void 0?void 0:r[this.axis[t].offsetSizeAttr])!==null&&n!==void 0?n:0,l=a/o,c;return c=Math.max(~~(l*a),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(c=Math.min(c,this.options.scrollbarMaxSize)),c},e.prototype.positionScrollbar=function(t){var r,n,o;t===void 0&&(t="y");var a=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!a.el||!this.elStyles)){var l=this.contentWrapperEl[this.axis[t].scrollSizeAttr],c=((r=this.axis[t].track.el)===null||r===void 0?void 0:r[this.axis[t].offsetSizeAttr])||0,u=parseInt(this.elStyles[this.axis[t].sizeAttr],10),d=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];d=t==="x"&&this.isRtl&&!((n=e.getRtlHelpers())===null||n===void 0)&&n.isScrollOriginAtZero?-d:d,t==="x"&&this.isRtl&&(d=!((o=e.getRtlHelpers())===null||o===void 0)&&o.isScrollingToNegative?d:-d);var p=d/(l-u),h=~~((c-a.size)*p);h=t==="x"&&this.isRtl?-h+(c-a.size):h,a.el.style.transform=t==="x"?"translate3d(".concat(h,"px, 0, 0)"):"translate3d(0, ".concat(h,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var r=this.axis[t].track.el,n=this.axis[t].scrollbar.el;!r||!n||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(r.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(r.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?n.style.display="block":n.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(Gn(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),!this.isDragging&&this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(Yn(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var r=this.axis[t];!r.track.el||!r.scrollbar.el||(r.track.rect=r.track.el.getBoundingClientRect(),r.scrollbar.rect=r.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(r.track.rect)?(this.showScrollbar(t),Gn(r.track.el,this.classNames.hover),this.isWithinBounds(r.scrollbar.rect)?Gn(r.scrollbar.el,this.classNames.hover):Yn(r.scrollbar.el,this.classNames.hover)):(Yn(r.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),Yn(this.axis[t].track.el,this.classNames.hover),Yn(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,r){var n;r===void 0&&(r="y"),this.isDragging=!0;var o=Af(this.el),a=qn(this.el),l=this.axis[r].scrollbar,c=r==="y"?t.pageY:t.pageX;this.axis[r].dragOffset=c-(((n=l.rect)===null||n===void 0?void 0:n[this.axis[r].offsetAttr])||0),this.draggedAxis=r,Gn(this.el,this.classNames.dragging),o.addEventListener("mousemove",this.drag,!0),o.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(o.addEventListener("click",this.preventClick,!0),o.addEventListener("dblclick",this.preventClick,!0)):(a.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,r){var n=this,o,a,l,c;r===void 0&&(r="y");var u=this.axis[r];if(!(!this.options.clickOnTrack||!u.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var d=qn(this.el);this.axis[r].scrollbar.rect=u.scrollbar.el.getBoundingClientRect();var p=this.axis[r].scrollbar,h=(a=(o=p.rect)===null||o===void 0?void 0:o[this.axis[r].offsetAttr])!==null&&a!==void 0?a:0,g=parseInt((c=(l=this.elStyles)===null||l===void 0?void 0:l[this.axis[r].sizeAttr])!==null&&c!==void 0?c:"0px",10),y=this.contentWrapperEl[this.axis[r].scrollOffsetAttr],S=r==="y"?this.mouseY-h:this.mouseX-h,v=S<0?-1:1,b=v===-1?y-g:y+g,m=40,w=function(){n.contentWrapperEl&&(v===-1?y>b&&(y-=m,n.contentWrapperEl[n.axis[r].scrollOffsetAttr]=y,d.requestAnimationFrame(w)):y<b&&(y+=m,n.contentWrapperEl[n.axis[r].scrollOffsetAttr]=y,d.requestAnimationFrame(w)))};w()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=qn(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,r){var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(o){return n.call(o,r)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=$5,e.helpers=D5,e})(),fr=function(){return fr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},fr.apply(this,arguments)};function L5(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}var op=z.forwardRef(function(e,t){var r=e.children,n=e.scrollableNodeProps,o=n===void 0?{}:n,a=L5(e,["children","scrollableNodeProps"]),l=z.useRef(),c=z.useRef(),u=z.useRef(),d={},p={};Object.keys(a).forEach(function(y){Object.prototype.hasOwnProperty.call(ga.defaultOptions,y)?d[y]=a[y]:p[y]=a[y]});var h=fr(fr({},ga.defaultOptions.classNames),d.classNames),g=fr(fr({},o),{className:"".concat(h.contentWrapper).concat(o.className?" ".concat(o.className):""),tabIndex:d.tabIndex||ga.defaultOptions.tabIndex,role:"region","aria-label":d.ariaLabel||ga.defaultOptions.ariaLabel});return z.useEffect(function(){var y;return c.current=g.ref?g.ref.current:c.current,l.current&&(y=new ga(l.current,fr(fr(fr({},d),c.current&&{scrollableNode:c.current}),u.current&&{contentNode:u.current})),typeof t=="function"?t(y):t&&(t.current=y)),function(){y==null||y.unMount(),y=null,typeof t=="function"&&t(null)}},[]),z.createElement("div",fr({"data-simplebar":"init",ref:l},p),z.createElement("div",{className:h.wrapper},z.createElement("div",{className:h.heightAutoObserverWrapperEl},z.createElement("div",{className:h.heightAutoObserverEl})),z.createElement("div",{className:h.mask},z.createElement("div",{className:h.offset},typeof r=="function"?r({scrollableNodeRef:c,scrollableNodeProps:fr(fr({},g),{ref:c}),contentNodeRef:u,contentNodeProps:{className:h.contentEl,ref:u}}):z.createElement("div",fr({},g),z.createElement("div",{className:h.contentEl},r)))),z.createElement("div",{className:h.placeholder})),z.createElement("div",{className:"".concat(h.track," ").concat(h.horizontal)},z.createElement("div",{className:h.scrollbar})),z.createElement("div",{className:"".concat(h.track," ").concat(h.vertical)},z.createElement("div",{className:h.scrollbar})))});op.displayName="SimpleBar";const z5=H.forwardRef(({size:e="md",color:t="primary",isInvalid:r=!1,isDisabled:n=!1,isReadOnly:o=!1,className:a,children:l,...c},u)=>{const[d,p]=H.useState(!1),[h,g]=H.useState(!1),y={size:e,color:t,isInvalid:r,isDisabled:n,isReadOnly:o,hasMessage:d,setHasMessage:p,hasArea:h,setHasArea:g};return C.jsx(jw.Provider,{value:y,children:C.jsx("div",{ref:u,"data-qui":"Input",className:fe(r5(),a),...c,children:l})})}),j5=H.forwardRef(({className:e,children:t,...r},n)=>{const{size:o,color:a,isDisabled:l,isReadOnly:c,hasMessage:u,hasArea:d}=Qa();return C.jsx("div",{ref:n,"data-qui":"InputGroup",className:fe(n5({size:o,color:a,isDisabled:l,isReadOnly:c,hasMessage:u,hasArea:d}),e),...r,children:t})}),F5=H.forwardRef(({className:e,...t},r)=>{const{size:n,color:o,isInvalid:a,isDisabled:l,isReadOnly:c}=Qa(),{isDisabled:u,isReadOnly:d,...p}=t;return C.jsx("input",{ref:r,disabled:l||u,readOnly:d||c||!1,"aria-invalid":a,className:fe(i5({size:n,color:o}),e),...p})}),H5=H.forwardRef(({className:e,autoHeight:t,...r},n)=>{const{size:o,color:a,isInvalid:l,isDisabled:c,setHasArea:u}=Qa(),d=H.useRef(null),p=n||d,h=H.useRef(null);H.useEffect(()=>(u(!0),()=>{u(!1)}),[u]);const g=H.useCallback(()=>{if(d.current){const w=d.current;w.style.height="auto",w.style.height=`${w.scrollHeight}px`}},[]),y=w=>{var x;g(),(x=r.onInput)==null||x.call(r,w)};H.useEffect(()=>{g()},[g,r.value]);const S=w=>{w.preventDefault();const x=h.current;if(!x)return;const k=w.clientY,E=x.offsetHeight,R=A=>{const N=E+(A.clientY-k);N>30&&(x.style.height=N+"px")},F=()=>{document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",F)};document.addEventListener("mousemove",R),document.addEventListener("mouseup",F)},{isDisabled:v,isReadOnly:b,...m}=r;return C.jsxs("div",{ref:h,className:"w-full relative",style:t?void 0:{height:"120px"},children:[t?C.jsx("textarea",{ref:p,rows:1,className:fe(xb({size:o,color:a}),e),disabled:c||v,onInput:y,readOnly:b||!1,"aria-invalid":l,style:{overflow:"hidden"},...m}):C.jsx(op,{style:{height:"100%"},children:C.jsx("textarea",{ref:p,rows:1,className:fe(xb({size:o,color:a}),e),disabled:c||v,onInput:y,readOnly:b||!1,"aria-invalid":l,style:{height:"auto",overflow:"hidden",width:"100%"},...m})}),!t&&C.jsx("div",{className:"absolute right-0 bottom-0 -translate-x-full -translate-y-full size-1.75 text-sm cursor-se-resize z-10",onMouseDown:S,children:C.jsx(VM,{})})]})}),W5=H.forwardRef(({isAction:e=!1,className:t,isDisabled:r=!1,style:n,children:o,...a},l)=>{const{size:c,color:u,isDisabled:d}=Qa(),p=r||d,h=o5({size:c,color:u,isDisabled:p,isAction:e});return C.jsx("div",{ref:l,"data-qui":"InputIcon",className:fe(h,t),style:n,role:e||a.onClick?"button":void 0,tabIndex:(e||a.onClick)&&!p?0:void 0,"aria-disabled":p,...a,children:o})}),B5=H.forwardRef(({icon:e,className:t,children:r,...n},o)=>{const{size:a,color:l,setHasMessage:c,isDisabled:u}=Qa();return H.useEffect(()=>(c(!0),()=>{c(!1)}),[c]),C.jsxs("div",{ref:o,"data-qui":"InputMessage",role:"alert",className:fe(a5({size:a,color:l,isDisabled:u}),t),...n,children:[e!==void 0&&C.jsx("div",{className:fe(s5({size:a}),t),children:e}),C.jsx("p",{children:r})]})});z5.displayName="InputRoot";j5.displayName="InputGroup";F5.displayName="InputField";H5.displayName="InputArea";W5.displayName="InputIcon";B5.displayName="InputMessage";const La={primary:{container:"bg-primary-light",text:"text-primary-dark",icon:"text-primary-dark",button:"hover:bg-primary-hover hover:text-body"},positive:{container:"bg-positive-light",text:"text-positive-dark",icon:"text-positive-dark",button:"hover:bg-positive hover:text-body"},negative:{container:"bg-negative-light",text:"text-negative-dark",icon:"text-negative-dark",button:"hover:bg-negative hover:text-body"},warning:{container:"bg-warning-light",text:"text-warning-dark",icon:"text-warning-dark",button:"hover:bg-warning hover:text-body"}},V5=({color:e})=>fe("h-6 absolute py-0.5 px-1 rounded whitespace-nowrap flex items-center gap-1",La[e].container,La[e].icon),U5=({color:e})=>fe("text-xs font-medium leading-3",La[e].text),q5=({color:e})=>fe("p-0.5 rounded cursor-pointer",La[e].button,La[e].icon),G5=({label:e,color:t="primary",position:r="up",showCloseButton:n=!1,icon:o,children:a,delay:l=2e3,trigger:c="hover"})=>{const[u,d]=H.useState(!1),[p,h]=H.useState(!1),[g,y]=H.useState({position:r,transform:""}),S=H.useRef(null),v=H.useRef(null),b=H.useRef(null),m=H.useCallback(()=>{if(!S.current||!v.current)return;const A=S.current.getBoundingClientRect(),N=v.current.getBoundingClientRect(),V=window.innerWidth,$=window.innerHeight,M=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth,V),B=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight,$),j=4;let I=r,Y={position:I,transform:""};const X={up:{fits:A.top-N.height-j>=0,styles:{bottom:`calc(100% + ${j}px)`,left:"50%",transform:"translateX(-50%)"}},"up-start":{fits:A.top-N.height-j>=0&&A.left+N.width<=V,styles:{bottom:`calc(100% + ${j}px)`,left:"0",transform:"translateX(0)"}},"up-end":{fits:A.top-N.height-j>=0&&A.right-N.width>=0,styles:{bottom:`calc(100% + ${j}px)`,right:"0",transform:"translateX(0)"}},down:{fits:A.bottom+N.height+j<=$&&A.bottom+N.height+j<=B,styles:{top:`calc(100% + ${j}px)`,left:"50%",transform:"translateX(-50%)"}},"down-start":{fits:A.bottom+N.height+j<=$&&A.bottom+N.height+j<=B&&A.left+N.width<=V,styles:{top:`calc(100% + ${j}px)`,left:"0",transform:"translateX(0)"}},"down-end":{fits:A.bottom+N.height+j<=$&&A.bottom+N.height+j<=B&&A.right-N.width>=0,styles:{top:`calc(100% + ${j}px)`,right:"0",transform:"translateX(0)"}},left:{fits:A.left-N.width-j>=0,styles:{right:`calc(100% + ${j}px)`,top:"50%",transform:"translateY(-50%)"}},"left-start":{fits:A.left-N.width-j>=0&&A.top+N.height<=$,styles:{right:`calc(100% + ${j}px)`,top:"0",transform:"translateY(0)"}},"left-end":{fits:A.left-N.width-j>=0&&A.bottom-N.height>=0,styles:{right:`calc(100% + ${j}px)`,bottom:"0",transform:"translateY(0)"}},right:{fits:A.right+N.width+j<=V&&A.right+N.width+j<=M,styles:{left:`calc(100% + ${j}px)`,top:"50%",transform:"translateY(-50%)"}},"right-start":{fits:A.right+N.width+j<=V&&A.right+N.width+j<=M&&A.top+N.height<=$,styles:{left:`calc(100% + ${j}px)`,top:"0",transform:"translateY(0)"}},"right-end":{fits:A.right+N.width+j<=V&&A.right+N.width+j<=M&&A.bottom-N.height>=0,styles:{left:`calc(100% + ${j}px)`,bottom:"0",transform:"translateY(0)"}}},K=A.left+A.width/2-N.width/2,me=A.left+A.width/2+N.width/2;if((r==="up"||r==="down")&&(K<0||me>V)&&(X[r].fits=!1),X[r].fits)Y={position:r,...X[r].styles};else{const L=["up","up-start","up-end","down","down-start","down-end","right","right-start","right-end","left","left-start","left-end"].find(U=>X[U].fits);if(L)I=L,Y={position:I,...X[L].styles};else{const U={up:A.top,"up-start":A.top,"up-end":A.top,down:Math.min($-A.bottom,B-A.bottom),"down-start":Math.min($-A.bottom,B-A.bottom),"down-end":Math.min($-A.bottom,B-A.bottom),left:A.left,"left-start":A.left,"left-end":A.left,right:Math.min(V-A.right,M-A.right),"right-start":Math.min(V-A.right,M-A.right),"right-end":Math.min(V-A.right,M-A.right)},te=Object.entries(U).reduce((ee,[J,ae])=>ae>ee.space?{position:J,space:ae}:ee,{position:"up",space:0}).position;I=te,Y={position:I,...X[te].styles}}}y(Y)},[r]),w=()=>{c==="click"&&(d(!0),b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{p||d(!1)},l))},x=A=>{A.stopPropagation(),d(!1),b.current&&clearTimeout(b.current)},k=()=>{h(!0),b.current&&clearTimeout(b.current)},E=()=>{h(!1),u&&(b.current=setTimeout(()=>{d(!1)},l))},R=()=>{c==="hover"&&d(!0)},F=()=>{c==="hover"&&d(!1)};return H.useEffect(()=>{if(u&&v.current){const A=requestAnimationFrame(()=>{m()});return()=>cancelAnimationFrame(A)}},[u,e,m]),H.useEffect(()=>{const A=()=>{u&&m()},N=()=>{u&&m()};return window.addEventListener("resize",A),window.addEventListener("scroll",N,!0),()=>{window.removeEventListener("resize",A),window.removeEventListener("scroll",N,!0),b.current&&clearTimeout(b.current)}},[u,m]),C.jsxs("div",{"data-qui":"Tooltip",ref:S,onClick:w,onMouseEnter:R,onMouseLeave:F,className:"relative h-full flex items-center",children:[a,u&&C.jsxs("div",{ref:v,role:"tooltip",className:V5({color:t}),style:{position:"absolute",left:g.left,right:g.right,top:g.top,bottom:g.bottom,transform:g.transform,zIndex:1e3},onMouseEnter:k,onMouseLeave:E,children:[o&&C.jsx("span",{children:o}),C.jsx("p",{className:U5({color:t}),children:e}),n&&C.jsx("div",{onClick:x,className:q5({color:t}),role:"button",children:C.jsx(_c,{})})]})]})};var Ab;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Ab||(Ab={}));const Y5=Object.freeze({x:0,y:0});var fo;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(fo||(fo={}));var Tb;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Tb||(Tb={}));var Tr;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Tr||(Tr={}));Tr.Space,Tr.Enter,Tr.Esc,Tr.Space,Tr.Enter,Tr.Tab;var Rb;(function(e){e[e.RightClick=2]="RightClick"})(Rb||(Rb={}));var Cb;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Cb||(Cb={}));var Pb;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Pb||(Pb={}));fo.Backward+"",fo.Forward+"",fo.Backward+"",fo.Forward+"";var fd;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(fd||(fd={}));var dd;(function(e){e.Optimized="optimized"})(dd||(dd={}));fd.WhileDragging,dd.Optimized;({...Y5});var Ib;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Ib||(Ib={}));Tr.Down,Tr.Right,Tr.Up,Tr.Left;const Yw={sm:{padding:"px-4 py-0.5",text:"text-xxs",icon:"w-3 h-3",gap:"gap-0.5",badge:"min-w-3.5 h-3.5 text-2"},md:{padding:"px-6 py-1",text:"text-s",icon:"w-4 h-4",gap:"gap-1",badge:"min-w-4.5 h-4.5 text-xxs"},lg:{padding:"px-8 py-1.5",text:"text-base",icon:"w-5 h-5",gap:"gap-1.5",badge:"min-w-5 h-5 text-xs"}},K5={primary:{active:{bg:"bg-primary",text:"text-tab-active-fg",border:"border-primary"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-primary-hover",text:"hover:text-tab-active-fg"}},positive:{active:{bg:"bg-positive-500",text:"text-gray-50",border:"border-positive-500"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-positive-600",text:"hover:text-gray-50"}},negative:{active:{bg:"bg-negative-400",text:"text-gray-50",border:"border-negative-400"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-negative-600",text:"hover:text-gray-50"}},warning:{active:{bg:"bg-warning-500",text:"text-gray-50",border:"border-warning-500"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-warning-600",text:"hover:text-gray-50"}}},Z5=(e,t,r,n)=>{const o=K5[e],a=Yw[t],l="relative inline-flex items-center font-medium cursor-pointer transition-all duration-200";return n?fe(l,a.padding,a.text,a.gap,"pointer-events-none cursor-not-allowed opacity-50","bg-card","text-inactive-text"):r?fe(l,a.padding,a.text,a.gap,o.active.bg,o.active.text,"shadow-xs"):fe(l,a.padding,a.text,a.gap,o.inactive.bg,o.inactive.text,o.hover.bg,o.hover.text)},X5=(e,t)=>fe("flex items-center justify-center",Yw[e].icon,{"opacity-50":t}),J5=()=>fe("whitespace-nowrap"),Kw=(e,t)=>{const r=fe("group flex items-center justify-between space-x-4","rounded-t px-2 text-xs","focus:outline-hidden");return e&&!t?fe(r,"z-2 border border-b-0 border-tab-border","bg-tab-active-bg font-semibold text-tab-active-fg"):t&&!e?fe(r,"border border-transparent bg-tab-inactive-bg text-inactive-text"):fe(r,"border border-transparent bg-tab-inactive-bg text-tab-inactive-fg","hover:text-tab-active-fg")},Q5=H.createContext(void 0),e$=H.forwardRef(({value:e,label:t,icon:r,disabled:n,children:o,className:a,onClick:l,active:c,content:u,...d},p)=>{const h=H.useContext(Q5);if(!h)return null;const{activeTab:g,onTabChange:y,variant:S,color:v,size:b,showIcons:m,disabled:w}=h,x=c!==void 0?c:g===e,k=n||w,E=R=>{k||(y(e),l==null||l(R))};return S==="file"?C.jsx("div",{"data-qui":"FileTabItem",className:fe(Kw(x,!1),"cursor-pointer",a),onClick:R=>!k&&E(R),children:o||C.jsx(C.Fragment,{children:C.jsxs("span",{className:"flex items-center gap-2",children:[r,C.jsx("span",{children:t})]})})}):C.jsxs("button",{ref:p,"data-qui":"TabItem",type:"button",role:"tab","aria-selected":x,"aria-disabled":k,className:fe(Z5(v,b,x,k||!1),a),onClick:E,disabled:k,...d,children:[m&&r&&C.jsx("span",{className:X5(b,k||!1),children:r}),C.jsx("span",{className:J5(),children:o||t})]})});e$.displayName="TabItem";const t$=H.forwardRef(({isActive:e=!1,isDesactive:t=!1,children:r,...n},o)=>C.jsx("div",{"data-qui":"TabNavContainer",className:Kw(e,t),ref:o,...n,children:r}));t$.displayName="TabNavContainer";var St=function(){return St=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},St.apply(this,arguments)},Nb={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},Mb={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},fl={width:"20px",height:"20px",position:"absolute",zIndex:1},r$={top:St(St({},Nb),{top:"-5px"}),right:St(St({},Mb),{left:void 0,right:"-5px"}),bottom:St(St({},Nb),{top:void 0,bottom:"-5px"}),left:St(St({},Mb),{left:"-5px"}),topRight:St(St({},fl),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:St(St({},fl),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:St(St({},fl),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:St(St({},fl),{left:"-10px",top:"-10px",cursor:"nw-resize"})},n$=H.memo(function(e){var t=e.onResizeStart,r=e.direction,n=e.children,o=e.replaceStyles,a=e.className,l=H.useCallback(function(d){t(d,r)},[t,r]),c=H.useCallback(function(d){t(d,r)},[t,r]),u=H.useMemo(function(){return St(St({position:"absolute",userSelect:"none"},r$[r]),o??{})},[o,r]);return C.jsx("div",{className:a||void 0,style:u,onMouseDown:l,onTouchStart:c,children:n})}),i$=(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(n[a]=o[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),en=function(){return en=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},en.apply(this,arguments)},o$={width:"auto",height:"auto"},dl=function(e,t,r){return Math.max(Math.min(e,r),t)},Db=function(e,t,r){var n=Math.round(e/t);return n*t+r*(n-1)},ao=function(e,t){return new RegExp(e,"i").test(t)},pl=function(e){return!!(e.touches&&e.touches.length)},a$=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},$b=function(e,t,r){r===void 0&&(r=0);var n=t.reduce(function(a,l,c){return Math.abs(l-e)<Math.abs(t[a]-e)?c:a},0),o=Math.abs(t[n]-e);return r===0||o<r?t[n]:e},Tf=function(e){return e=e.toString(),e==="auto"||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:"".concat(e,"px")},hl=function(e,t,r,n){if(e&&typeof e=="string"){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var o=Number(e.replace("%",""))/100;return t*o}if(e.endsWith("vw")){var o=Number(e.replace("vw",""))/100;return r*o}if(e.endsWith("vh")){var o=Number(e.replace("vh",""))/100;return n*o}}return e},s$=function(e,t,r,n,o,a,l){return n=hl(n,e.width,t,r),o=hl(o,e.height,t,r),a=hl(a,e.width,t,r),l=hl(l,e.height,t,r),{maxWidth:typeof n>"u"?void 0:Number(n),maxHeight:typeof o>"u"?void 0:Number(o),minWidth:typeof a>"u"?void 0:Number(a),minHeight:typeof l>"u"?void 0:Number(l)}},l$=function(e){return Array.isArray(e)?e:[e,e]},c$=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],Lb="__resizable_base__",u$=(function(e){i$(t,e);function t(r){var n,o,a,l,c=e.call(this,r)||this;return c.ratio=1,c.resizable=null,c.parentLeft=0,c.parentTop=0,c.resizableLeft=0,c.resizableRight=0,c.resizableTop=0,c.resizableBottom=0,c.targetLeft=0,c.targetTop=0,c.delta={width:0,height:0},c.appendBase=function(){if(!c.resizable||!c.window)return null;var u=c.parentNode;if(!u)return null;var d=c.window.document.createElement("div");return d.style.width="100%",d.style.height="100%",d.style.position="absolute",d.style.transform="scale(0, 0)",d.style.left="0",d.style.flex="0 0 100%",d.classList?d.classList.add(Lb):d.className+=Lb,u.appendChild(d),d},c.removeBase=function(u){var d=c.parentNode;d&&d.removeChild(u)},c.state={isResizing:!1,width:(o=(n=c.propsSize)===null||n===void 0?void 0:n.width)!==null&&o!==void 0?o:"auto",height:(l=(a=c.propsSize)===null||a===void 0?void 0:a.height)!==null&&l!==void 0?l:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},c.onResizeStart=c.onResizeStart.bind(c),c.onMouseMove=c.onMouseMove.bind(c),c.onMouseUp=c.onMouseUp.bind(c),c}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||o$},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var r=0,n=0;if(this.resizable&&this.window){var o=this.resizable.offsetWidth,a=this.resizable.offsetHeight,l=this.resizable.style.position;l!=="relative"&&(this.resizable.style.position="relative"),r=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:o,n=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:a,this.resizable.style.position=l}return{width:r,height:n}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var r=this,n=this.props.size,o=function(c){var u;if(typeof r.state[c]>"u"||r.state[c]==="auto")return"auto";if(r.propsSize&&r.propsSize[c]&&!((u=r.propsSize[c])===null||u===void 0)&&u.toString().endsWith("%")){if(r.state[c].toString().endsWith("%"))return r.state[c].toString();var d=r.getParentSize(),p=Number(r.state[c].toString().replace("px","")),h=p/d[c]*100;return"".concat(h,"%")}return Tf(r.state[c])},a=n&&typeof n.width<"u"&&!this.state.isResizing?Tf(n.width):o("width"),l=n&&typeof n.height<"u"&&!this.state.isResizing?Tf(n.height):o("height");return{width:a,height:l}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var r=this.appendBase();if(!r)return{width:0,height:0};var n=!1,o=this.parentNode.style.flexWrap;o!=="wrap"&&(n=!0,this.parentNode.style.flexWrap="wrap"),r.style.position="relative",r.style.minWidth="100%",r.style.minHeight="100%";var a={width:r.offsetWidth,height:r.offsetHeight};return n&&(this.parentNode.style.flexWrap=o),this.removeBase(r),a},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var r=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:r.flexBasis!=="auto"?r.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(r,n){var o=this.propsSize&&this.propsSize[n];return this.state[n]==="auto"&&this.state.original[n]===r&&(typeof o>"u"||o==="auto")?"auto":r},t.prototype.calculateNewMaxFromBoundary=function(r,n){var o=this.props.boundsByDirection,a=this.state.direction,l=o&&ao("left",a),c=o&&ao("top",a),u,d;if(this.props.bounds==="parent"){var p=this.parentNode;p&&(u=l?this.resizableRight-this.parentLeft:p.offsetWidth+(this.parentLeft-this.resizableLeft),d=c?this.resizableBottom-this.parentTop:p.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(u=l?this.resizableRight:this.window.innerWidth-this.resizableLeft,d=c?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(u=l?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),d=c?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return u&&Number.isFinite(u)&&(r=r&&r<u?r:u),d&&Number.isFinite(d)&&(n=n&&n<d?n:d),{maxWidth:r,maxHeight:n}},t.prototype.calculateNewSizeFromDirection=function(r,n){var o=this.props.scale||1,a=l$(this.props.resizeRatio||1),l=a[0],c=a[1],u=this.state,d=u.direction,p=u.original,h=this.props,g=h.lockAspectRatio,y=h.lockAspectRatioExtraHeight,S=h.lockAspectRatioExtraWidth,v=p.width,b=p.height,m=y||0,w=S||0;return ao("right",d)&&(v=p.width+(r-p.x)*l/o,g&&(b=(v-w)/this.ratio+m)),ao("left",d)&&(v=p.width-(r-p.x)*l/o,g&&(b=(v-w)/this.ratio+m)),ao("bottom",d)&&(b=p.height+(n-p.y)*c/o,g&&(v=(b-m)*this.ratio+w)),ao("top",d)&&(b=p.height-(n-p.y)*c/o,g&&(v=(b-m)*this.ratio+w)),{newWidth:v,newHeight:b}},t.prototype.calculateNewSizeFromAspectRatio=function(r,n,o,a){var l=this.props,c=l.lockAspectRatio,u=l.lockAspectRatioExtraHeight,d=l.lockAspectRatioExtraWidth,p=typeof a.width>"u"?10:a.width,h=typeof o.width>"u"||o.width<0?r:o.width,g=typeof a.height>"u"?10:a.height,y=typeof o.height>"u"||o.height<0?n:o.height,S=u||0,v=d||0;if(c){var b=(g-S)*this.ratio+v,m=(y-S)*this.ratio+v,w=(p-v)/this.ratio+S,x=(h-v)/this.ratio+S,k=Math.max(p,b),E=Math.min(h,m),R=Math.max(g,w),F=Math.min(y,x);r=dl(r,k,E),n=dl(n,R,F)}else r=dl(r,p,h),n=dl(n,g,y);return{newWidth:r,newHeight:n}},t.prototype.setBoundingClientRect=function(){var r=1/(this.props.scale||1);if(this.props.bounds==="parent"){var n=this.parentNode;if(n){var o=n.getBoundingClientRect();this.parentLeft=o.left*r,this.parentTop=o.top*r}}if(this.props.bounds&&typeof this.props.bounds!="string"){var a=this.props.bounds.getBoundingClientRect();this.targetLeft=a.left*r,this.targetTop=a.top*r}if(this.resizable){var l=this.resizable.getBoundingClientRect(),c=l.left,u=l.top,d=l.right,p=l.bottom;this.resizableLeft=c*r,this.resizableRight=d*r,this.resizableTop=u*r,this.resizableBottom=p*r}},t.prototype.onResizeStart=function(r,n){if(!(!this.resizable||!this.window)){var o=0,a=0;if(r.nativeEvent&&a$(r.nativeEvent)?(o=r.nativeEvent.clientX,a=r.nativeEvent.clientY):r.nativeEvent&&pl(r.nativeEvent)&&(o=r.nativeEvent.touches[0].clientX,a=r.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var l=this.props.onResizeStart(r,n,this.resizable);if(l===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var c,u=this.window.getComputedStyle(this.resizable);if(u.flexBasis!=="auto"){var d=this.parentNode;if(d){var p=this.window.getComputedStyle(d).flexDirection;this.flexDir=p.startsWith("row")?"row":"column",c=u.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var h={original:{x:o,y:a,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:en(en({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(r.target).cursor||"auto"}),direction:n,flexBasis:c};this.setState(h)}},t.prototype.onMouseMove=function(r){var n=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&pl(r))try{r.preventDefault(),r.stopPropagation()}catch{}var o=this.props,a=o.maxWidth,l=o.maxHeight,c=o.minWidth,u=o.minHeight,d=pl(r)?r.touches[0].clientX:r.clientX,p=pl(r)?r.touches[0].clientY:r.clientY,h=this.state,g=h.direction,y=h.original,S=h.width,v=h.height,b=this.getParentSize(),m=s$(b,this.window.innerWidth,this.window.innerHeight,a,l,c,u);a=m.maxWidth,l=m.maxHeight,c=m.minWidth,u=m.minHeight;var w=this.calculateNewSizeFromDirection(d,p),x=w.newHeight,k=w.newWidth,E=this.calculateNewMaxFromBoundary(a,l);this.props.snap&&this.props.snap.x&&(k=$b(k,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(x=$b(x,this.props.snap.y,this.props.snapGap));var R=this.calculateNewSizeFromAspectRatio(k,x,{width:E.maxWidth,height:E.maxHeight},{width:c,height:u});if(k=R.newWidth,x=R.newHeight,this.props.grid){var F=Db(k,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),A=Db(x,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),N=this.props.snapGap||0,V=N===0||Math.abs(F-k)<=N?F:k,$=N===0||Math.abs(A-x)<=N?A:x;k=V,x=$}var M={width:k-y.width,height:x-y.height};if(this.delta=M,S&&typeof S=="string"){if(S.endsWith("%")){var B=k/b.width*100;k="".concat(B,"%")}else if(S.endsWith("vw")){var j=k/this.window.innerWidth*100;k="".concat(j,"vw")}else if(S.endsWith("vh")){var I=k/this.window.innerHeight*100;k="".concat(I,"vh")}}if(v&&typeof v=="string"){if(v.endsWith("%")){var B=x/b.height*100;x="".concat(B,"%")}else if(v.endsWith("vw")){var j=x/this.window.innerWidth*100;x="".concat(j,"vw")}else if(v.endsWith("vh")){var I=x/this.window.innerHeight*100;x="".concat(I,"vh")}}var Y={width:this.createSizeForCssProperty(k,"width"),height:this.createSizeForCssProperty(x,"height")};this.flexDir==="row"?Y.flexBasis=Y.width:this.flexDir==="column"&&(Y.flexBasis=Y.height);var X=this.state.width!==Y.width,K=this.state.height!==Y.height,me=this.state.flexBasis!==Y.flexBasis,L=X||K||me;L&&ti.flushSync(function(){n.setState(Y)}),this.props.onResize&&L&&this.props.onResize(r,g,this.resizable,M)}},t.prototype.onMouseUp=function(r){var n,o,a=this.state,l=a.isResizing,c=a.direction;a.original,!(!l||!this.resizable)&&(this.props.onResizeStop&&this.props.onResizeStop(r,c,this.resizable,this.delta),this.props.size&&this.setState({width:(n=this.props.size.width)!==null&&n!==void 0?n:"auto",height:(o=this.props.size.height)!==null&&o!==void 0?o:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:en(en({},this.state.backgroundStyle),{cursor:"auto"})}))},t.prototype.updateSize=function(r){var n,o;this.setState({width:(n=r.width)!==null&&n!==void 0?n:"auto",height:(o=r.height)!==null&&o!==void 0?o:"auto"})},t.prototype.renderResizer=function(){var r=this,n=this.props,o=n.enable,a=n.handleStyles,l=n.handleClasses,c=n.handleWrapperStyle,u=n.handleWrapperClass,d=n.handleComponent;if(!o)return null;var p=Object.keys(o).map(function(h){return o[h]!==!1?C.jsx(n$,{direction:h,onResizeStart:r.onResizeStart,replaceStyles:a&&a[h],className:l&&l[h],children:d&&d[h]?d[h]:null},h):null});return C.jsx("div",{className:u,style:c,children:p})},t.prototype.render=function(){var r=this,n=Object.keys(this.props).reduce(function(l,c){return c$.indexOf(c)!==-1||(l[c]=r.props[c]),l},{}),o=en(en(en({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(o.flexBasis=this.state.flexBasis);var a=this.props.as||"div";return C.jsxs(a,en({style:o,className:this.props.className},n,{ref:function(l){l&&(r.resizable=l)},children:[this.state.isResizing&&C.jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t})(H.PureComponent);const f$={0:"bg-panel-0",1:"bg-panel-1",2:"bg-panel-2",3:"bg-panel-3",4:"bg-panel-4",5:"bg-panel-5"},d$={tabs:"border-tab-border",primary:"border-primary",negative:"border-input-error-border",positive:"border-positive",light:"border-panel-border-subtle",default:"border-panel-border"},Zw=({depth:e=0,className:t,borderType:r,disabled:n})=>fe("transition-colors duration-200",{"text-body":!n,"text-inactive-text":n},r?d$[r]:"border-panel-border",f$[e],t),p$=e=>{if(!e)return{};const t={},r=e.match(/min-w-\[(\d+)px\]/);r&&(t.minWidth=parseInt(r[1],10));const n=e.match(/max-w-\[(\d+)px\]/);n&&(t.maxWidth=parseInt(n[1],10));const o=e.match(/min-h-\[(\d+)px\]/);o&&(t.minHeight=parseInt(o[1],10));const a=e.match(/max-h-\[(\d+)px\]/);return a&&(t.maxHeight=parseInt(a[1],10)),t},Xw=H.forwardRef(({children:e,width:t,height:r,minWidth:n=10,minHeight:o=10,maxWidth:a,maxHeight:l,defaultWidth:c,defaultHeight:u,defaultSize:d,size:p,grid:h,snap:g,lockAspectRatio:y=!1,enable:S,handleStyles:v={},handleClasses:b={},handleComponent:m={},style:w={},className:x,onResizeStart:k,onResize:E,onResizeStop:R,scale:F=1,bounds:A,snapGap:N,as:V="div",depth:$,disabled:M},B)=>{const j=Zw({depth:$,className:x,disabled:M}),I=p$(x),Y=p?{size:p}:t!==void 0||r!==void 0?{size:{width:t??"auto",height:r??"auto"}}:{},X=d?{defaultSize:d}:c!==void 0||u!==void 0?{defaultSize:{width:c??"auto",height:u??"auto"}}:{},K=H.useRef(null);return H.useImperativeHandle(B,()=>{var me;return(me=K.current)==null?void 0:me.resizable}),C.jsx(u$,{"data-qui":"Resizable",ref:K,...Y,...X,minWidth:n??I.minWidth,minHeight:o??I.minHeight,maxWidth:a??I.maxWidth,maxHeight:l??I.maxHeight,grid:h,snap:g,lockAspectRatio:y,enable:S,handleStyles:v,handleClasses:b,handleComponent:m,style:w,className:fe("relative box-border",j),onResizeStart:k,onResize:E,onResizeStop:R,scale:F,bounds:A,snapGap:N,as:V,children:e})});Xw.displayName="Resizable";const Jw=({isDragging:e=!1,className:t})=>C.jsx("div",{className:fe("absolute inset-0 flex items-center justify-center transition-colors",{"bg-primary/30":e},t),children:C.jsx("div",{className:fe("h-full w-full transition-all",{"bg-primary":e,"bg-transparent hover:bg-primary/20":!e})})});Jw.displayName="Handle";const so={sm:{track:"h-4 w-7",thumb:"size-3",thumbUnchecked:"left-0.5",thumbChecked:"left-3.5",label:"text-xs",gap:"gap-2"},md:{track:"h-5 w-9",thumb:"size-4",thumbUnchecked:"left-0.5",thumbChecked:"left-4.5",label:"text-sm",gap:"gap-2.5"},lg:{track:"h-6 w-11",thumb:"size-5",thumbUnchecked:"left-0.5",thumbChecked:"left-5.5",label:"text-base",gap:"gap-3"}},gl={primary:{bg:"bg-primary",thumb:"bg-white group-hover:bg-primary-light",icon:"text-primary"},positive:{bg:"bg-positive",thumb:"bg-white group-hover:bg-positive-light",icon:"text-positive"},warning:{bg:"bg-warning",thumb:"bg-white group-hover:bg-warning-light",icon:"text-warning"},negative:{bg:"bg-negative",thumb:"bg-white group-hover:bg-negative-light",icon:"text-negative"}},h$=(e,t,r,n,o,a)=>({container:fe("inline-flex items-center",so[e].gap,a),track:fe("relative inline-flex items-center shrink-0 group","transition-colors duration-200 ease-in-out","focus:outline-hidden focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2","rounded-full justify-between px-0.5",so[e].track,{[gl[t].bg]:r&&!n&&!o,"bg-panel":!r&&!n||o,"bg-panel cursor-not-allowed":n,"cursor-pointer":!n}),thumb:fe("pointer-events-none inline-flex items-center justify-center shadow-xs","transition-all duration-200 ease-in-out","rounded-full absolute",so[e].thumb,r?so[e].thumbChecked:so[e].thumbUnchecked,{[gl[t].thumb]:!n,"bg-canvas-subtle":n}),iconLeft:fe("flex items-center justify-center z-10 w-1/2 p-0.5",{[gl[t].icon]:!r&&!n,"text-panel-subtle":n||r}),iconRight:fe("flex items-center justify-center z-10 w-1/2 p-0.5",{[gl[t].icon]:r&&!n,"text-panel-subtle":n||!r}),label:fe("font-medium text-body",so[e].label,{"cursor-pointer":!n,"cursor-not-allowed text-muted":n})}),Qw=H.forwardRef(({label:e,checked:t,defaultChecked:r=!1,disabled:n=!1,size:o="md",color:a="primary",icons:l,onChange:c,className:u,id:d,name:p,...h},g)=>{const[y,S]=H.useState(r),v=t!==void 0,b=v?t:y,m=()=>{const x=!b;v||S(x),c==null||c(x)},w=h$(o,a,b,n,!!l,u);return C.jsxs("div",{"data-qui":"Toggle",className:w.container,children:[e&&C.jsx("label",{htmlFor:d,className:w.label,children:e}),C.jsxs("button",{ref:g,...h,type:"button",role:"switch","aria-checked":b,"aria-label":e,disabled:n,onClick:m,name:p,id:d,className:w.track,children:[l&&C.jsx("span",{className:w.iconLeft,children:l.unchecked}),C.jsx("span",{className:w.thumb,"aria-hidden":"true"}),l&&C.jsx("span",{className:w.iconRight,children:l.checked})]})]})});Qw.displayName="Toggle";H.createContext(null);const ex=H.forwardRef(({depth:e=0,className:t,children:r,borderType:n,disabled:o,...a},l)=>{const c=Zw({depth:e,className:t,borderType:n,disabled:o});return C.jsx("div",{"data-qui":"Panel",ref:l,className:c,"aria-disabled":o,...a,children:r})});ex.displayName="Panel";const Ec={sm:{container:"h-5 px-0.5 gap-1 rounded",text:"text-xxs leading-3",icon:"text-s",iconButton:"text-s p-0.5 cursor-pointer"},md:{container:"h-5.5 px-1 gap-1 rounded",text:"text-xs leading-4",icon:"text-sm",iconButton:" text-sm p-0.5 cursor-pointer"},lg:{container:"h-6 px-1.5 gap-1.5 rounded",text:"text-s leading-none",icon:"text-base",iconButton:"text-base p-0.5 cursor-pointer"}},Ml={primary:{bg:"bg-primary",text:"text-body",border:"border-primary",buttonHover:"hover:bg-primary-hover"},white:{bg:"bg-canvas-default",text:"text-primary",border:"border-canvas-default",buttonHover:"hover:bg-primary-hover hover:text-body"},positive:{bg:"bg-positive",text:"text-body",border:"border-positive",buttonHover:"hover:bg-positive-hover"},warning:{bg:"bg-warning",text:"text-body",border:"border-warning",buttonHover:"hover:bg-warning-hover"},negative:{bg:"bg-negative",text:"text-body",border:"border-negative",buttonHover:"hover:bg-negative-hover"}},g$=(e,t)=>fe("inline-flex items-center justify-center font-medium border",Ec[e].container,Ml[t].bg,Ml[t].text,Ml[t].border),v$=(e,t,r)=>fe({[Ec[e].icon]:!r,"bg-canvas-default outline-canvas-default text-primary":r&&t!=="white"||r,"bg-primary outline-primary text-body":r&&t==="white"&&!r,"outline-solid outline-1 h-full py-0.5 grid place-items-center -my-1 only:-mx-0.5 first:-ml-1.5 last:-mr-1.5 only:rounded first:rounded-l last:rounded-r":r||r}),m$=e=>fe(Ec[e].text),tx=(e,t)=>fe("inline-flex items-center justify-center rounded transition-colors duration-200 focus:outline-hidden ",Ec[e].iconButton,Ml[t].buttonHover),rx=H.createContext(null),kc=()=>{const e=H.useContext(rx);if(!e)throw new Error("Pill components must be used within a Pill.Root");return e},ap=H.forwardRef(({size:e="md",color:t="primary",className:r,children:n,...o},a)=>{const l={size:e,color:t};return C.jsx(rx.Provider,{value:l,children:C.jsx("div",{"data-qui":"Pill",ref:a,className:fe(g$(e,t),r),...o,children:n})})});ap.displayName="Pill.Root";const sp=H.forwardRef(({className:e,children:t,...r},n)=>{const{size:o}=kc();return C.jsx("span",{ref:n,className:fe(m$(o),e),...r,children:t})});sp.displayName="Pill.Text";const lp=H.forwardRef(({className:e,children:t,label:r,position:n,...o},a)=>{const{size:l,color:c}=kc(),u=!!r,d=C.jsx("span",{ref:a,className:fe(v$(l,c,u),e),...o,children:t});return u?C.jsx(G5,{label:r||"",position:n||"up",children:d}):d});lp.displayName="Pill.Icon";const nx=H.forwardRef(({className:e,children:t,...r},n)=>{const{size:o,color:a}=kc();return C.jsx("button",{ref:n,type:"button",className:fe(tx(o,a),e),...r,children:t})});nx.displayName="Pill.Button";const cp=H.forwardRef(({className:e,onClose:t,"aria-label":r="Remove pill",children:n,...o},a)=>{const{size:l,color:c}=kc();return C.jsx("button",{ref:a,type:"button",className:fe(tx(l,c),e),onClick:t,"aria-label":r,...o,children:n||C.jsx(_c,{})})});cp.displayName="Pill.Close";const ix=H.forwardRef(({size:e="md",color:t="primary",label:r,icon:n,onClose:o,closable:a=!1,className:l,...c},u)=>C.jsxs(ap,{ref:u,size:e,color:t,className:l,...c,children:[n&&C.jsx(lp,{children:n}),C.jsx(sp,{children:r}),a&&C.jsx(cp,{onClose:o})]}));ix.displayName="Pill";Object.assign(ix,{Root:ap,Text:sp,Icon:lp,Button:nx,Close:cp});const b$=H.createContext(null),Zt=()=>{const e=H.useContext(b$);if(!e)throw new Error("Select compound components must be used within Select.Root");return e},Bt={sm:{trigger:"h-5 min-h-fit",control:"min-h-5 p-0.5 gap-1",input:"text-2.25 h-3.5",placeholder:"text-2.25",singleValue:"text-2.25",multiValue:"h-3.5 px-0.5 gap-1 text-2",multiValueLabel:"text-2",multiValueRemove:"w-3 h-3",indicatorsContainer:"gap-1",clearIndicator:"p-0.5 size-3",dropdownIndicator:"p-0.5 size-3",indicatorSeparator:"h-3",loadingIndicator:"w-3 h-3",menu:"m-0",menuList:"py-1",option:"px-1 py-0.5 text-xs",group:"pt-1",groupHeading:"px-2 py-0.5 text-2",noOptionsMessage:"px-2 py-1 text-2.25",loadingMessage:"px-2 py-1 text-2.25",message:"text-2.25 p-1.5",icon:"text-sm"},md:{trigger:"h-6 min-h-fit",control:"min-h-6 p-1 gap-1.5",input:"text-xs h-4",placeholder:"text-xs",singleValue:"text-xs",multiValue:"h-4 p-1 gap-1 text-2.5",multiValueLabel:"text-2.5",multiValueRemove:"w-3.5 h-3.5",indicatorsContainer:"gap-1",clearIndicator:"p-0.5 size-4",dropdownIndicator:"p-0.5 size-4",indicatorSeparator:"h-4",loadingIndicator:"w-4 h-4",menu:"m-0",menuList:"my-1",option:"px-2 py-1 text-s",group:"pt-1.5",groupHeading:"px-3 py-1 text-2.5",noOptionsMessage:"px-2 py-1.5 text-xs",loadingMessage:"px-3 py-1.5 text-xs",message:"text-xs p-2",icon:"text-base"},lg:{trigger:"h-7 min-h-fit",control:"min-h-7 p-1.5 gap-2",input:"text-s h-5",placeholder:"text-s",singleValue:"text-s",multiValue:"h-5 px-1.5 gap-1.5 text-xs",multiValueLabel:"text-xs",multiValueRemove:"w-4 h-4",indicatorsContainer:"gap-1.5",clearIndicator:"p-0.5 size-5",dropdownIndicator:"p-1 size-5",indicatorSeparator:"h-5",loadingIndicator:"w-5 h-5",menu:"m-0",menuList:"py-1.5",option:"px-3 py-2 text-sm",group:"pt-2",groupHeading:"px-4 py-1.5 text-xs",noOptionsMessage:"px-4 py-2 text-s",loadingMessage:"px-4 py-2 text-s",message:"text-s p-2.5",icon:"text-lg"}},at={primary:{control:"cursor-pointer bg-select-bg text-select-text",controlFocused:"border-input-focus-border",controlDisabled:"opacity-60",controlInvalid:"bg-select-bg border-input-error-border text-select-text",placeholder:"text-input-placeholder placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-primary",menu:"bg-select-list-bg border-select-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-primary-dark",messageBackground:"bg-input-message-bg",messageBorder:"border-input-info-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},positive:{control:"cursor-pointer bg-select-bg text-select-text",controlFocused:"border-positive",controlDisabled:"opacity-60",controlInvalid:"bg-select-bg border-input-error-border text-select-text",placeholder:"text-input-placeholder placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-positive",menu:"bg-select-list-bg border-select-border shadow-lg",menuList:"",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-positive-dark",messageBackground:"bg-positive-light",messageBorder:"border-positive",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},warning:{control:"cursor-pointer bg-select-bg text-select-text",controlFocused:"border-input-warning-border",controlDisabled:"opacity-60",controlInvalid:"bg-select-bg border-input-error-border text-select-text",placeholder:"text-input-placeholder placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-warning",menu:"bg-select-list-bg border-select-border shadow-lg",menuList:"bg-select-list-bg border-select-border shadow-lg",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-warning-dark",messageBackground:"bg-input-warning-bg",messageBorder:"border-input-warning-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},negative:{control:"cursor-pointer bg-select-bg text-select-text",controlFocused:"border-input-error-border",controlDisabled:"opacity-60",controlInvalid:"bg-select-bg border-input-error-border text-select-text",placeholder:"text-input-placeholder placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-negative",menu:"bg-select-list-bg border-select-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-negative-dark",messageBackground:"bg-input-error-bg",messageBorder:"border-input-error-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"}},y$=({size:e,color:t,isDisabled:r,isFocused:n,isInvalid:o,hasMessage:a})=>fe("flex items-center justify-between border border-select-border only:rounded first:rounded-t last:rounded-b",Bt[e].control,o&&!n?at[t].controlInvalid:at[t].control,{[at[t].controlFocused]:n&&!a,[at[t].controlDisabled]:r,"border-0 ring-1":a,[at[t].messageBorder]:a}),w$=({isMulti:e})=>fe("flex items-center gap-1 flex-1 min-w-0 overflow-hidden",{"flex-wrap":e,"px-0.5":!e}),x$=({size:e,color:t})=>fe("bg-transparent border-0 outline-hidden flex-1 min-w-7.5 px-1",Bt[e].input,at[t].placeholder),S$=({size:e,color:t})=>fe("select-none truncate",Bt[e].placeholder,at[t].placeholder),_$=({size:e,color:t,isDisabled:r})=>fe("truncate",Bt[e].singleValue,r?at[t].singleValueDisabled:at[t].singleValue),E$=({size:e,color:t,isDisabled:r,isFocused:n})=>fe("inline-flex items-center rounded-xs",Bt[e].multiValue,r?at[t].multiValueDisabled:at[t].multiValue,{"border border-white":n&&!r}),k$=({size:e})=>fe("truncate",Bt[e].multiValueLabel),O$=({size:e,color:t,isDisabled:r})=>fe("flex items-center justify-center cursor-pointer transition-colors",Bt[e].multiValueRemove,at[t].multiValueRemove),ox=({size:e,color:t,isDisabled:r})=>fe("flex items-center justify-center transition-colors rounded",Bt[e].clearIndicator,r?"hidden":[at[t].clearIndicator,at[t].clearIndicatorHover]),A$=({size:e,color:t,isDisabled:r})=>fe("flex items-center justify-center transition-colors rounded",Bt[e].dropdownIndicator,r?"text-grey-200":[at[t].dropdownIndicator,at[t].dropdownIndicatorHover]),T$=({size:e,placement:t,hasMessage:r,color:n})=>{const o={auto:"top-full rounded-t-none",bottom:"top-full rounded-t-none",top:"bottom-full rounded-b-none"};return fe("absolute w-full z-50 rounded overflow-hidden border border-t-0",at.primary.menu,{[at[n].messageBorder]:r},o[t||"auto"],Bt[e].menu)},R$=({size:e})=>fe("overflow-y-auto",Bt[e].menuList,at.primary.menuList),C$=({size:e,color:t,isDisabled:r,isFocused:n,isSelected:o})=>fe("transition-colors duration-150 cursor-pointer mx-1 rounded",Bt[e].option,{[at[t].optionDisabled]:r,[at[t].optionSelected]:o&&!r,[at[t].optionFocused]:n&&!o&&!r,[at[t].option]:!o&&!n&&!r}),P$=({size:e})=>fe(Bt[e].group),I$=({size:e,color:t})=>fe(Bt[e].groupHeading,at[t].groupHeading),N$=({size:e})=>fe("text-grey-100",Bt[e].loadingMessage),M$=({size:e})=>fe(Bt[e].noOptionsMessage,at.primary.noOptionsMessage),D$=e=>e.length>0&&"options"in e[0];function va(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function yt(){return yt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yt.apply(null,arguments)}function pd(e,t){return pd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},pd(e,t)}function $$(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,pd(e,t)}var vl={exports:{}},Rf={exports:{}},Ue={};/** @license React v16.13.1
213
+ * react-is.production.min.js
214
+ *
215
+ * Copyright (c) Facebook, Inc. and its affiliates.
216
+ *
217
+ * This source code is licensed under the MIT license found in the
218
+ * LICENSE file in the root directory of this source tree.
219
+ */var zb;function L$(){if(zb)return Ue;zb=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(E){if(typeof E=="object"&&E!==null){var R=E.$$typeof;switch(R){case t:switch(E=E.type,E){case u:case d:case n:case a:case o:case h:return E;default:switch(E=E&&E.$$typeof,E){case c:case p:case S:case y:case l:return E;default:return R}}case r:return R}}}function k(E){return x(E)===d}return Ue.AsyncMode=u,Ue.ConcurrentMode=d,Ue.ContextConsumer=c,Ue.ContextProvider=l,Ue.Element=t,Ue.ForwardRef=p,Ue.Fragment=n,Ue.Lazy=S,Ue.Memo=y,Ue.Portal=r,Ue.Profiler=a,Ue.StrictMode=o,Ue.Suspense=h,Ue.isAsyncMode=function(E){return k(E)||x(E)===u},Ue.isConcurrentMode=k,Ue.isContextConsumer=function(E){return x(E)===c},Ue.isContextProvider=function(E){return x(E)===l},Ue.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===t},Ue.isForwardRef=function(E){return x(E)===p},Ue.isFragment=function(E){return x(E)===n},Ue.isLazy=function(E){return x(E)===S},Ue.isMemo=function(E){return x(E)===y},Ue.isPortal=function(E){return x(E)===r},Ue.isProfiler=function(E){return x(E)===a},Ue.isStrictMode=function(E){return x(E)===o},Ue.isSuspense=function(E){return x(E)===h},Ue.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===n||E===d||E===a||E===o||E===h||E===g||typeof E=="object"&&E!==null&&(E.$$typeof===S||E.$$typeof===y||E.$$typeof===l||E.$$typeof===c||E.$$typeof===p||E.$$typeof===b||E.$$typeof===m||E.$$typeof===w||E.$$typeof===v)},Ue.typeOf=x,Ue}var Ze={};/** @license React v16.13.1
220
+ * react-is.development.js
221
+ *
222
+ * Copyright (c) Facebook, Inc. and its affiliates.
223
+ *
224
+ * This source code is licensed under the MIT license found in the
225
+ * LICENSE file in the root directory of this source tree.
226
+ */var jb;function z$(){return jb||(jb=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(Z){return typeof Z=="string"||typeof Z=="function"||Z===n||Z===d||Z===a||Z===o||Z===h||Z===g||typeof Z=="object"&&Z!==null&&(Z.$$typeof===S||Z.$$typeof===y||Z.$$typeof===l||Z.$$typeof===c||Z.$$typeof===p||Z.$$typeof===b||Z.$$typeof===m||Z.$$typeof===w||Z.$$typeof===v)}function k(Z){if(typeof Z=="object"&&Z!==null){var Pe=Z.$$typeof;switch(Pe){case t:var ge=Z.type;switch(ge){case u:case d:case n:case a:case o:case h:return ge;default:var Et=ge&&ge.$$typeof;switch(Et){case c:case p:case S:case y:case l:return Et;default:return Pe}}case r:return Pe}}}var E=u,R=d,F=c,A=l,N=t,V=p,$=n,M=S,B=y,j=r,I=a,Y=o,X=h,K=!1;function me(Z){return K||(K=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(Z)||k(Z)===u}function L(Z){return k(Z)===d}function U(Z){return k(Z)===c}function te(Z){return k(Z)===l}function ee(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===t}function J(Z){return k(Z)===p}function ae(Z){return k(Z)===n}function se(Z){return k(Z)===S}function ne(Z){return k(Z)===y}function ce(Z){return k(Z)===r}function he(Z){return k(Z)===a}function pe(Z){return k(Z)===o}function Se(Z){return k(Z)===h}Ze.AsyncMode=E,Ze.ConcurrentMode=R,Ze.ContextConsumer=F,Ze.ContextProvider=A,Ze.Element=N,Ze.ForwardRef=V,Ze.Fragment=$,Ze.Lazy=M,Ze.Memo=B,Ze.Portal=j,Ze.Profiler=I,Ze.StrictMode=Y,Ze.Suspense=X,Ze.isAsyncMode=me,Ze.isConcurrentMode=L,Ze.isContextConsumer=U,Ze.isContextProvider=te,Ze.isElement=ee,Ze.isForwardRef=J,Ze.isFragment=ae,Ze.isLazy=se,Ze.isMemo=ne,Ze.isPortal=ce,Ze.isProfiler=he,Ze.isStrictMode=pe,Ze.isSuspense=Se,Ze.isValidElementType=x,Ze.typeOf=k})()),Ze}var Fb;function ax(){return Fb||(Fb=1,process.env.NODE_ENV==="production"?Rf.exports=L$():Rf.exports=z$()),Rf.exports}/*
227
+ object-assign
228
+ (c) Sindre Sorhus
229
+ @license MIT
230
+ */var Cf,Hb;function j$(){if(Hb)return Cf;Hb=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function o(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var l={},c=0;c<10;c++)l["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(l).map(function(p){return l[p]});if(u.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(p){d[p]=p}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Cf=o()?Object.assign:function(a,l){for(var c,u=n(a),d,p=1;p<arguments.length;p++){c=Object(arguments[p]);for(var h in c)t.call(c,h)&&(u[h]=c[h]);if(e){d=e(c);for(var g=0;g<d.length;g++)r.call(c,d[g])&&(u[d[g]]=c[d[g]])}}return u},Cf}var Pf,Wb;function up(){if(Wb)return Pf;Wb=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Pf=e,Pf}var Bb,Vb;function sx(){return Vb||(Vb=1,Bb=Function.call.bind(Object.prototype.hasOwnProperty)),Bb}var If,Ub;function F$(){if(Ub)return If;Ub=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=up(),r={},n=sx();e=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function o(a,l,c,u,d){if(process.env.NODE_ENV!=="production"){for(var p in a)if(n(a,p)){var h;try{if(typeof a[p]!="function"){var g=Error((u||"React class")+": "+c+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}h=a[p](l,p,u,c,null,t)}catch(S){h=S}if(h&&!(h instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+p+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in r)){r[h.message]=!0;var y=d?d():"";e("Failed "+c+" type: "+h.message+(y??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},If=o,If}var Nf,qb;function H$(){if(qb)return Nf;qb=1;var e=ax(),t=j$(),r=up(),n=sx(),o=F$(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function l(){return null}return Nf=function(c,u){var d=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function h(L){var U=L&&(d&&L[d]||L[p]);if(typeof U=="function")return U}var g="<<anonymous>>",y={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:w(),arrayOf:x,element:k(),elementType:E(),instanceOf:R,node:V(),objectOf:A,oneOf:F,oneOfType:N,shape:M,exact:B};function S(L,U){return L===U?L!==0||1/L===1/U:L!==L&&U!==U}function v(L,U){this.message=L,this.data=U&&typeof U=="object"?U:{},this.stack=""}v.prototype=Error.prototype;function b(L){if(process.env.NODE_ENV!=="production")var U={},te=0;function ee(ae,se,ne,ce,he,pe,Se){if(ce=ce||g,pe=pe||ne,Se!==r){if(u){var Z=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Z.name="Invariant Violation",Z}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Pe=ce+":"+ne;!U[Pe]&&te<3&&(a("You are manually calling a React.PropTypes validation function for the `"+pe+"` prop on `"+ce+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),U[Pe]=!0,te++)}}return se[ne]==null?ae?se[ne]===null?new v("The "+he+" `"+pe+"` is marked as required "+("in `"+ce+"`, but its value is `null`.")):new v("The "+he+" `"+pe+"` is marked as required in "+("`"+ce+"`, but its value is `undefined`.")):null:L(se,ne,ce,he,pe)}var J=ee.bind(null,!1);return J.isRequired=ee.bind(null,!0),J}function m(L){function U(te,ee,J,ae,se,ne){var ce=te[ee],he=Y(ce);if(he!==L){var pe=X(ce);return new v("Invalid "+ae+" `"+se+"` of type "+("`"+pe+"` supplied to `"+J+"`, expected ")+("`"+L+"`."),{expectedType:L})}return null}return b(U)}function w(){return b(l)}function x(L){function U(te,ee,J,ae,se){if(typeof L!="function")return new v("Property `"+se+"` of component `"+J+"` has invalid PropType notation inside arrayOf.");var ne=te[ee];if(!Array.isArray(ne)){var ce=Y(ne);return new v("Invalid "+ae+" `"+se+"` of type "+("`"+ce+"` supplied to `"+J+"`, expected an array."))}for(var he=0;he<ne.length;he++){var pe=L(ne,he,J,ae,se+"["+he+"]",r);if(pe instanceof Error)return pe}return null}return b(U)}function k(){function L(U,te,ee,J,ae){var se=U[te];if(!c(se)){var ne=Y(se);return new v("Invalid "+J+" `"+ae+"` of type "+("`"+ne+"` supplied to `"+ee+"`, expected a single ReactElement."))}return null}return b(L)}function E(){function L(U,te,ee,J,ae){var se=U[te];if(!e.isValidElementType(se)){var ne=Y(se);return new v("Invalid "+J+" `"+ae+"` of type "+("`"+ne+"` supplied to `"+ee+"`, expected a single ReactElement type."))}return null}return b(L)}function R(L){function U(te,ee,J,ae,se){if(!(te[ee]instanceof L)){var ne=L.name||g,ce=me(te[ee]);return new v("Invalid "+ae+" `"+se+"` of type "+("`"+ce+"` supplied to `"+J+"`, expected ")+("instance of `"+ne+"`."))}return null}return b(U)}function F(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),l;function U(te,ee,J,ae,se){for(var ne=te[ee],ce=0;ce<L.length;ce++)if(S(ne,L[ce]))return null;var he=JSON.stringify(L,function(pe,Se){var Z=X(Se);return Z==="symbol"?String(Se):Se});return new v("Invalid "+ae+" `"+se+"` of value `"+String(ne)+"` "+("supplied to `"+J+"`, expected one of "+he+"."))}return b(U)}function A(L){function U(te,ee,J,ae,se){if(typeof L!="function")return new v("Property `"+se+"` of component `"+J+"` has invalid PropType notation inside objectOf.");var ne=te[ee],ce=Y(ne);if(ce!=="object")return new v("Invalid "+ae+" `"+se+"` of type "+("`"+ce+"` supplied to `"+J+"`, expected an object."));for(var he in ne)if(n(ne,he)){var pe=L(ne,he,J,ae,se+"."+he,r);if(pe instanceof Error)return pe}return null}return b(U)}function N(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var U=0;U<L.length;U++){var te=L[U];if(typeof te!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+K(te)+" at index "+U+"."),l}function ee(J,ae,se,ne,ce){for(var he=[],pe=0;pe<L.length;pe++){var Se=L[pe],Z=Se(J,ae,se,ne,ce,r);if(Z==null)return null;Z.data&&n(Z.data,"expectedType")&&he.push(Z.data.expectedType)}var Pe=he.length>0?", expected one of type ["+he.join(", ")+"]":"";return new v("Invalid "+ne+" `"+ce+"` supplied to "+("`"+se+"`"+Pe+"."))}return b(ee)}function V(){function L(U,te,ee,J,ae){return j(U[te])?null:new v("Invalid "+J+" `"+ae+"` supplied to "+("`"+ee+"`, expected a ReactNode."))}return b(L)}function $(L,U,te,ee,J){return new v((L||"React class")+": "+U+" type `"+te+"."+ee+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+J+"`.")}function M(L){function U(te,ee,J,ae,se){var ne=te[ee],ce=Y(ne);if(ce!=="object")return new v("Invalid "+ae+" `"+se+"` of type `"+ce+"` "+("supplied to `"+J+"`, expected `object`."));for(var he in L){var pe=L[he];if(typeof pe!="function")return $(J,ae,se,he,X(pe));var Se=pe(ne,he,J,ae,se+"."+he,r);if(Se)return Se}return null}return b(U)}function B(L){function U(te,ee,J,ae,se){var ne=te[ee],ce=Y(ne);if(ce!=="object")return new v("Invalid "+ae+" `"+se+"` of type `"+ce+"` "+("supplied to `"+J+"`, expected `object`."));var he=t({},te[ee],L);for(var pe in he){var Se=L[pe];if(n(L,pe)&&typeof Se!="function")return $(J,ae,se,pe,X(Se));if(!Se)return new v("Invalid "+ae+" `"+se+"` key `"+pe+"` supplied to `"+J+"`.\nBad object: "+JSON.stringify(te[ee],null," ")+`
231
+ Valid keys: `+JSON.stringify(Object.keys(L),null," "));var Z=Se(ne,pe,J,ae,se+"."+pe,r);if(Z)return Z}return null}return b(U)}function j(L){switch(typeof L){case"number":case"string":case"undefined":return!0;case"boolean":return!L;case"object":if(Array.isArray(L))return L.every(j);if(L===null||c(L))return!0;var U=h(L);if(U){var te=U.call(L),ee;if(U!==L.entries){for(;!(ee=te.next()).done;)if(!j(ee.value))return!1}else for(;!(ee=te.next()).done;){var J=ee.value;if(J&&!j(J[1]))return!1}}else return!1;return!0;default:return!1}}function I(L,U){return L==="symbol"?!0:U?U["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&U instanceof Symbol:!1}function Y(L){var U=typeof L;return Array.isArray(L)?"array":L instanceof RegExp?"object":I(U,L)?"symbol":U}function X(L){if(typeof L>"u"||L===null)return""+L;var U=Y(L);if(U==="object"){if(L instanceof Date)return"date";if(L instanceof RegExp)return"regexp"}return U}function K(L){var U=X(L);switch(U){case"array":case"object":return"an "+U;case"boolean":case"date":case"regexp":return"a "+U;default:return U}}function me(L){return!L.constructor||!L.constructor.name?g:L.constructor.name}return y.checkPropTypes=o,y.resetWarningCache=o.resetWarningCache,y.PropTypes=y,y},Nf}var Mf,Gb;function W$(){if(Gb)return Mf;Gb=1;var e=up();function t(){}function r(){}return r.resetWarningCache=t,Mf=function(){function n(l,c,u,d,p,h){if(h!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}n.isRequired=n;function o(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Mf}var Yb;function B$(){if(Yb)return vl.exports;if(Yb=1,process.env.NODE_ENV!=="production"){var e=ax(),t=!0;vl.exports=H$()(e.isElement,t)}else vl.exports=W$()();return vl.exports}var V$=B$();const ue=Lw(V$);var Df={exports:{}},qe={};/**
232
+ * @license React
233
+ * react-is.production.min.js
234
+ *
235
+ * Copyright (c) Facebook, Inc. and its affiliates.
236
+ *
237
+ * This source code is licensed under the MIT license found in the
238
+ * LICENSE file in the root directory of this source tree.
239
+ */var Kb;function U$(){if(Kb)return qe;Kb=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),S;S=Symbol.for("react.module.reference");function v(b){if(typeof b=="object"&&b!==null){var m=b.$$typeof;switch(m){case e:switch(b=b.type,b){case r:case o:case n:case d:case p:return b;default:switch(b=b&&b.$$typeof,b){case c:case l:case u:case g:case h:case a:return b;default:return m}}case t:return m}}}return qe.ContextConsumer=l,qe.ContextProvider=a,qe.Element=e,qe.ForwardRef=u,qe.Fragment=r,qe.Lazy=g,qe.Memo=h,qe.Portal=t,qe.Profiler=o,qe.StrictMode=n,qe.Suspense=d,qe.SuspenseList=p,qe.isAsyncMode=function(){return!1},qe.isConcurrentMode=function(){return!1},qe.isContextConsumer=function(b){return v(b)===l},qe.isContextProvider=function(b){return v(b)===a},qe.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},qe.isForwardRef=function(b){return v(b)===u},qe.isFragment=function(b){return v(b)===r},qe.isLazy=function(b){return v(b)===g},qe.isMemo=function(b){return v(b)===h},qe.isPortal=function(b){return v(b)===t},qe.isProfiler=function(b){return v(b)===o},qe.isStrictMode=function(b){return v(b)===n},qe.isSuspense=function(b){return v(b)===d},qe.isSuspenseList=function(b){return v(b)===p},qe.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===o||b===n||b===d||b===p||b===y||typeof b=="object"&&b!==null&&(b.$$typeof===g||b.$$typeof===h||b.$$typeof===a||b.$$typeof===l||b.$$typeof===u||b.$$typeof===S||b.getModuleId!==void 0)},qe.typeOf=v,qe}var Xe={};/**
240
+ * @license React
241
+ * react-is.development.js
242
+ *
243
+ * Copyright (c) Facebook, Inc. and its affiliates.
244
+ *
245
+ * This source code is licensed under the MIT license found in the
246
+ * LICENSE file in the root directory of this source tree.
247
+ */var Zb;function q$(){return Zb||(Zb=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),S=!1,v=!1,b=!1,m=!1,w=!1,x;x=Symbol.for("react.module.reference");function k(ge){return!!(typeof ge=="string"||typeof ge=="function"||ge===r||ge===o||w||ge===n||ge===d||ge===p||m||ge===y||S||v||b||typeof ge=="object"&&ge!==null&&(ge.$$typeof===g||ge.$$typeof===h||ge.$$typeof===a||ge.$$typeof===l||ge.$$typeof===u||ge.$$typeof===x||ge.getModuleId!==void 0))}function E(ge){if(typeof ge=="object"&&ge!==null){var Et=ge.$$typeof;switch(Et){case e:var vr=ge.type;switch(vr){case r:case o:case n:case d:case p:return vr;default:var Ct=vr&&vr.$$typeof;switch(Ct){case c:case l:case u:case g:case h:case a:return Ct;default:return Et}}case t:return Et}}}var R=l,F=a,A=e,N=u,V=r,$=g,M=h,B=t,j=o,I=n,Y=d,X=p,K=!1,me=!1;function L(ge){return K||(K=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function U(ge){return me||(me=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function te(ge){return E(ge)===l}function ee(ge){return E(ge)===a}function J(ge){return typeof ge=="object"&&ge!==null&&ge.$$typeof===e}function ae(ge){return E(ge)===u}function se(ge){return E(ge)===r}function ne(ge){return E(ge)===g}function ce(ge){return E(ge)===h}function he(ge){return E(ge)===t}function pe(ge){return E(ge)===o}function Se(ge){return E(ge)===n}function Z(ge){return E(ge)===d}function Pe(ge){return E(ge)===p}Xe.ContextConsumer=R,Xe.ContextProvider=F,Xe.Element=A,Xe.ForwardRef=N,Xe.Fragment=V,Xe.Lazy=$,Xe.Memo=M,Xe.Portal=B,Xe.Profiler=j,Xe.StrictMode=I,Xe.Suspense=Y,Xe.SuspenseList=X,Xe.isAsyncMode=L,Xe.isConcurrentMode=U,Xe.isContextConsumer=te,Xe.isContextProvider=ee,Xe.isElement=J,Xe.isForwardRef=ae,Xe.isFragment=se,Xe.isLazy=ne,Xe.isMemo=ce,Xe.isPortal=he,Xe.isProfiler=pe,Xe.isStrictMode=Se,Xe.isSuspense=Z,Xe.isSuspenseList=Pe,Xe.isValidElementType=k,Xe.typeOf=E})()),Xe}var Xb;function G$(){return Xb||(Xb=1,process.env.NODE_ENV==="production"?Df.exports=U$():Df.exports=q$()),Df.exports}var Jb=G$();const Qb=e=>typeof e=="object"&&e!=null&&e.nodeType===1,e0=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",ml=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const r=getComputedStyle(e,null);return e0(r.overflowY,t)||e0(r.overflowX,t)||(n=>{const o=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(n);return!!o&&(o.clientHeight<n.scrollHeight||o.clientWidth<n.scrollWidth)})(e)}return!1},bl=(e,t,r,n,o,a,l,c)=>a<e&&l>t||a>e&&l<t?0:a<=e&&c<=r||l>=t&&c>=r?a-e-n:l>t&&c<r||a<e&&c>r?l-t+o:0,Y$=e=>e.parentElement??(e.getRootNode().host||null),K$=(e,t)=>{var r,n,o,a;if(typeof document>"u")return[];const{inline:l,boundary:c,skipOverflowHiddenElements:u}=t,d=typeof c=="function"?c:B=>B!==c;if(!Qb(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,h=[];let g=e;for(;Qb(g)&&d(g);){if(g=Y$(g),g===p){h.push(g);break}g!=null&&g===document.body&&ml(g)&&!ml(document.documentElement)||g!=null&&ml(g,u)&&h.push(g)}const y=(n=(r=window.visualViewport)==null?void 0:r.width)!=null?n:innerWidth,S=(a=(o=window.visualViewport)==null?void 0:o.height)!=null?a:innerHeight,{scrollX:v,scrollY:b}=window,{height:m,width:w,top:x,right:k,bottom:E,left:R}=e.getBoundingClientRect(),{top:F,right:A,left:N}=(B=>{const j=window.getComputedStyle(B);return{top:parseFloat(j.scrollMarginTop)||0,right:parseFloat(j.scrollMarginRight)||0,bottom:parseFloat(j.scrollMarginBottom)||0,left:parseFloat(j.scrollMarginLeft)||0}})(e);let V=x-F,$=l==="center"?R+w/2-N+A:l==="end"?k+A:R-N;const M=[];for(let B=0;B<h.length;B++){const j=h[B],{height:I,width:Y,top:X,right:K,bottom:me,left:L}=j.getBoundingClientRect();if(x>=0&&R>=0&&E<=S&&k<=y&&(j===p&&!ml(j)||x>=X&&E<=me&&R>=L&&k<=K))return M;const U=getComputedStyle(j),te=parseInt(U.borderLeftWidth,10),ee=parseInt(U.borderTopWidth,10),J=parseInt(U.borderRightWidth,10),ae=parseInt(U.borderBottomWidth,10);let se=0,ne=0;const ce="offsetWidth"in j?j.offsetWidth-j.clientWidth-te-J:0,he="offsetHeight"in j?j.offsetHeight-j.clientHeight-ee-ae:0,pe="offsetWidth"in j?j.offsetWidth===0?0:Y/j.offsetWidth:0,Se="offsetHeight"in j?j.offsetHeight===0?0:I/j.offsetHeight:0;if(p===j)se=bl(b,b+S,S,ee,ae,b+V,b+V+m,m),ne=l==="start"?$:l==="center"?$-y/2:l==="end"?$-y:bl(v,v+y,y,te,J,v+$,v+$+w,w),se=Math.max(0,se+b),ne=Math.max(0,ne+v);else{se=bl(X,me,I,ee,ae+he,V,V+m,m),ne=l==="start"?$-L-te:l==="center"?$-(L+Y/2)+ce/2:l==="end"?$-K+J+ce:bl(L,K,Y,te,J+ce,$,$+w,w);const{scrollLeft:Z,scrollTop:Pe}=j;se=Se===0?0:Math.max(0,Math.min(Pe+se/Se,j.scrollHeight-I/Se+he)),ne=pe===0?0:Math.max(0,Math.min(Z+ne/pe,j.scrollWidth-Y/pe+ce)),V+=Pe-se,$+=Z-ne}M.push({el:j,top:se,left:ne})}return M};var wo=function(){return wo=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},wo.apply(this,arguments)},Z$=0;function t0(e){return typeof e=="function"?e:_n}function _n(){}function lx(e,t){if(e){var r=K$(e,{boundary:t});r.forEach(function(n){var o=n.el,a=n.top,l=n.left;o.scrollTop=a,o.scrollLeft=l})}}function r0(e,t,r){var n=e===t||t instanceof r.Node&&e.contains&&e.contains(t);return n}function fp(e,t){var r;function n(){r&&clearTimeout(r)}function o(){for(var a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];n(),r=setTimeout(function(){r=null,e.apply(void 0,l)},t)}return o.cancel=n,o}function Xr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){for(var o=arguments.length,a=new Array(o>1?o-1:0),l=1;l<o;l++)a[l-1]=arguments[l];return t.some(function(c){return c&&c.apply(void 0,[n].concat(a)),n.preventDownshiftDefault||n.hasOwnProperty("nativeEvent")&&n.nativeEvent.preventDownshiftDefault})}}function n0(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){t.forEach(function(o){typeof o=="function"?o(n):o&&(o.current=n)})}}function X$(){return String(Z$++)}function J$(e){var t=e.isOpen,r=e.resultCount,n=e.previousResultCount;return t?r?r!==n?r+" result"+(r===1?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function i0(e,t){return e=Array.isArray(e)?e[0]:e,!e&&t?t:e}function cx(e){return typeof e.type=="string"}function ux(e){return e.props}function Q$(e,t){console.error('The property "'+t+'" is required in "'+e+'"')}var eL=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function yl(e){e===void 0&&(e={});var t={};return eL.forEach(function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}function tL(e,t){return!e||!t?e:Object.keys(e).reduce(function(r,n){return r[n]=hd(t,n)?t[n]:e[n],r},{})}function hd(e,t){return e[t]!==void 0}function o0(e){var t=e.key,r=e.keyCode;return r>=37&&r<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function rL(e){return Object.prototype.toString.call(e)==="[object Object]"}function $f(e,t,r,n,o){var a=r.length;if(a===0)return-1;var l=a-1;(typeof e!="number"||e<0||e>l)&&(e=t>0?-1:l+1);var c=e+t;c<0?c=l:c>l&&(c=0);var u=tc(c,t<0,r,n,o);return u===-1?e>=a?-1:e:u}function tc(e,t,r,n,o){o===void 0&&(o=!1);var a=r.length;if(t){for(var l=e;l>=0;l--)if(!n(r[l],l))return l}else for(var c=e;c<a;c++)if(!n(r[c],c))return c;return o?tc(t?a-1:0,t,r,n):-1}function a0(e,t,r,n){return n===void 0&&(n=!0),r&&t.some(function(o){return o&&(r0(o,e,r)||n&&r0(o,r.document.activeElement,r))})}var dp=_n;process.env.NODE_ENV!=="production"&&(dp=function(e,t,r){var n="This prop should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled Downshift element for the lifetime of the component. More info: https://github.com/downshift-js/downshift#control-props";Object.keys(e).forEach(function(o){t[o]!==void 0&&r[o]===void 0?console.error('downshift: A component has changed the controlled prop "'+o+'" to be uncontrolled. '+n):t[o]===void 0&&r[o]!==void 0&&console.error('downshift: A component has changed the uncontrolled prop "'+o+'" to be controlled. '+n)})});var nL=fp(function(e){fx(e).textContent=""},500);function fx(e){var t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}function dx(e,t){if(!(!e||!t)){var r=fx(t);r.textContent=e,nL(t)}}var px=process.env.NODE_ENV!=="production"?"__autocomplete_unknown__":0,hx=process.env.NODE_ENV!=="production"?"__autocomplete_mouseup__":1,gx=process.env.NODE_ENV!=="production"?"__autocomplete_item_mouseenter__":2,Dl=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_up__":3,$l=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_down__":4,vx=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_escape__":5,mx=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_enter__":6,bx=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_home__":7,yx=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_end__":8,wx=process.env.NODE_ENV!=="production"?"__autocomplete_click_item__":9,xx=process.env.NODE_ENV!=="production"?"__autocomplete_blur_input__":10,Sx=process.env.NODE_ENV!=="production"?"__autocomplete_change_input__":11,_x=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_space_button__":12,gd=process.env.NODE_ENV!=="production"?"__autocomplete_click_button__":13,Ex=process.env.NODE_ENV!=="production"?"__autocomplete_blur_button__":14,kx=process.env.NODE_ENV!=="production"?"__autocomplete_controlled_prop_updated_selected_item__":15,Ox=process.env.NODE_ENV!=="production"?"__autocomplete_touchend__":16,iL=Object.freeze({__proto__:null,blurButton:Ex,blurInput:xx,changeInput:Sx,clickButton:gd,clickItem:wx,controlledPropUpdatedSelectedItem:kx,itemMouseEnter:gx,keyDownArrowDown:$l,keyDownArrowUp:Dl,keyDownEnd:yx,keyDownEnter:mx,keyDownEscape:vx,keyDownHome:bx,keyDownSpaceButton:_x,mouseUp:hx,touchEnd:Ox,unknown:px}),oL=["refKey","ref"],aL=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],sL=["onKeyDown","onBlur","onChange","onInput","onChangeText"],lL=["refKey","ref"],cL=["onMouseMove","onMouseDown","onClick","onPress","index","item"],uL=(function(){var e=(function(t){function r(o){var a;a=t.call(this,o)||this,a.id=a.props.id||"downshift-"+X$(),a.menuId=a.props.menuId||a.id+"-menu",a.labelId=a.props.labelId||a.id+"-label",a.inputId=a.props.inputId||a.id+"-input",a.getItemId=a.props.getItemId||function(w){return a.id+"-item-"+w},a.items=[],a.itemCount=null,a.previousResultCount=0,a.timeoutIds=[],a.internalSetTimeout=function(w,x){var k=setTimeout(function(){a.timeoutIds=a.timeoutIds.filter(function(E){return E!==k}),w()},x);a.timeoutIds.push(k)},a.setItemCount=function(w){a.itemCount=w},a.unsetItemCount=function(){a.itemCount=null},a.isItemDisabled=function(w,x){var k=a.getItemNodeFromIndex(x);return k&&k.hasAttribute("disabled")},a.setHighlightedIndex=function(w,x){w===void 0&&(w=a.props.defaultHighlightedIndex),x===void 0&&(x={}),x=yl(x),a.internalSetState(yt({highlightedIndex:w},x))},a.clearSelection=function(w){a.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:a.props.defaultHighlightedIndex,isOpen:a.props.defaultIsOpen},w)},a.selectItem=function(w,x,k){x=yl(x),a.internalSetState(yt({isOpen:a.props.defaultIsOpen,highlightedIndex:a.props.defaultHighlightedIndex,selectedItem:w,inputValue:a.props.itemToString(w)},x),k)},a.selectItemAtIndex=function(w,x,k){var E=a.items[w];E!=null&&a.selectItem(E,x,k)},a.selectHighlightedItem=function(w,x){return a.selectItemAtIndex(a.getState().highlightedIndex,w,x)},a.internalSetState=function(w,x){var k,E,R={},F=typeof w=="function";return!F&&w.hasOwnProperty("inputValue")&&a.props.onInputValueChange(w.inputValue,yt({},a.getStateAndHelpers(),w)),a.setState(function(A){var N;A=a.getState(A);var V=F?w(A):w;V=a.props.stateReducer(A,V),k=V.hasOwnProperty("selectedItem");var $={};return k&&V.selectedItem!==A.selectedItem&&(E=V.selectedItem),(N=V).type||(N.type=px),Object.keys(V).forEach(function(M){A[M]!==V[M]&&(R[M]=V[M]),M!=="type"&&(V[M],hd(a.props,M)||($[M]=V[M]))}),F&&V.hasOwnProperty("inputValue")&&a.props.onInputValueChange(V.inputValue,yt({},a.getStateAndHelpers(),V)),$},function(){t0(x)();var A=Object.keys(R).length>1;A&&a.props.onStateChange(R,a.getStateAndHelpers()),k&&a.props.onSelect(w.selectedItem,a.getStateAndHelpers()),E!==void 0&&a.props.onChange(E,a.getStateAndHelpers()),a.props.onUserAction(R,a.getStateAndHelpers())})},a.rootRef=function(w){return a._rootNode=w},a.getRootProps=function(w,x){var k,E=w===void 0?{}:w,R=E.refKey,F=R===void 0?"ref":R,A=E.ref,N=va(E,oL),V=x===void 0?{}:x,$=V.suppressRefError,M=$===void 0?!1:$;a.getRootProps.called=!0,a.getRootProps.refKey=F,a.getRootProps.suppressRefError=M;var B=a.getState(),j=B.isOpen;return yt((k={},k[F]=n0(A,a.rootRef),k.role="combobox",k["aria-expanded"]=j,k["aria-haspopup"]="listbox",k["aria-owns"]=j?a.menuId:void 0,k["aria-labelledby"]=a.labelId,k),N)},a.keyDownHandlers={ArrowDown:function(w){var x=this;if(w.preventDefault(),this.getState().isOpen){var k=w.shiftKey?5:1;this.moveHighlightedIndex(k,{type:$l})}else this.internalSetState({isOpen:!0,type:$l},function(){var E=x.getItemCount();if(E>0){var R=x.getState(),F=R.highlightedIndex,A=$f(F,1,{length:E},x.isItemDisabled,!0);x.setHighlightedIndex(A,{type:$l})}})},ArrowUp:function(w){var x=this;if(w.preventDefault(),this.getState().isOpen){var k=w.shiftKey?-5:-1;this.moveHighlightedIndex(k,{type:Dl})}else this.internalSetState({isOpen:!0,type:Dl},function(){var E=x.getItemCount();if(E>0){var R=x.getState(),F=R.highlightedIndex,A=$f(F,-1,{length:E},x.isItemDisabled,!0);x.setHighlightedIndex(A,{type:Dl})}})},Enter:function(w){if(w.which!==229){var x=this.getState(),k=x.isOpen,E=x.highlightedIndex;if(k&&E!=null){w.preventDefault();var R=this.items[E],F=this.getItemNodeFromIndex(E);if(R==null||F&&F.hasAttribute("disabled"))return;this.selectHighlightedItem({type:mx})}}},Escape:function(w){w.preventDefault(),this.reset(yt({type:vx},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}},a.buttonKeyDownHandlers=yt({},a.keyDownHandlers,{" ":function(w){w.preventDefault(),this.toggleMenu({type:_x})}}),a.inputKeyDownHandlers=yt({},a.keyDownHandlers,{Home:function(w){var x=this.getState(),k=x.isOpen;if(k){w.preventDefault();var E=this.getItemCount();if(!(E<=0||!k)){var R=tc(0,!1,{length:E},this.isItemDisabled);this.setHighlightedIndex(R,{type:bx})}}},End:function(w){var x=this.getState(),k=x.isOpen;if(k){w.preventDefault();var E=this.getItemCount();if(!(E<=0||!k)){var R=tc(E-1,!0,{length:E},this.isItemDisabled);this.setHighlightedIndex(R,{type:yx})}}}}),a.getToggleButtonProps=function(w){var x=w===void 0?{}:w,k=x.onClick;x.onPress;var E=x.onKeyDown,R=x.onKeyUp,F=x.onBlur,A=va(x,aL),N=a.getState(),V=N.isOpen,$={onClick:Xr(k,a.buttonHandleClick),onKeyDown:Xr(E,a.buttonHandleKeyDown),onKeyUp:Xr(R,a.buttonHandleKeyUp),onBlur:Xr(F,a.buttonHandleBlur)},M=A.disabled?{}:$;return yt({type:"button",role:"button","aria-label":V?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},M,A)},a.buttonHandleKeyUp=function(w){w.preventDefault()},a.buttonHandleKeyDown=function(w){var x=o0(w);a.buttonKeyDownHandlers[x]&&a.buttonKeyDownHandlers[x].call(a,w)},a.buttonHandleClick=function(w){if(w.preventDefault(),a.props.environment){var x=a.props.environment.document,k=x.body,E=x.activeElement;k&&k===E&&w.target.focus()}process.env.NODE_ENV==="test"?a.toggleMenu({type:gd}):a.internalSetTimeout(function(){return a.toggleMenu({type:gd})})},a.buttonHandleBlur=function(w){var x=w.target;a.internalSetTimeout(function(){if(!(a.isMouseDown||!a.props.environment)){var k=a.props.environment.document.activeElement;(k==null||k.id!==a.inputId)&&k!==x&&a.reset({type:Ex})}})},a.getLabelProps=function(w){return yt({htmlFor:a.inputId,id:a.labelId},w)},a.getInputProps=function(w){var x=w===void 0?{}:w,k=x.onKeyDown,E=x.onBlur,R=x.onChange,F=x.onInput;x.onChangeText;var A=va(x,sL),N,V={};N="onChange";var $=a.getState(),M=$.inputValue,B=$.isOpen,j=$.highlightedIndex;if(!A.disabled){var I;V=(I={},I[N]=Xr(R,F,a.inputHandleChange),I.onKeyDown=Xr(k,a.inputHandleKeyDown),I.onBlur=Xr(E,a.inputHandleBlur),I)}return yt({"aria-autocomplete":"list","aria-activedescendant":B&&typeof j=="number"&&j>=0?a.getItemId(j):void 0,"aria-controls":B?a.menuId:void 0,"aria-labelledby":A&&A["aria-label"]?void 0:a.labelId,autoComplete:"off",value:M,id:a.inputId},V,A)},a.inputHandleKeyDown=function(w){var x=o0(w);x&&a.inputKeyDownHandlers[x]&&a.inputKeyDownHandlers[x].call(a,w)},a.inputHandleChange=function(w){a.internalSetState({type:Sx,isOpen:!0,inputValue:w.target.value,highlightedIndex:a.props.defaultHighlightedIndex})},a.inputHandleBlur=function(){a.internalSetTimeout(function(){var w;if(!(a.isMouseDown||!a.props.environment)){var x=a.props.environment.document.activeElement,k=(x==null||(w=x.dataset)==null?void 0:w.toggle)&&a._rootNode&&a._rootNode.contains(x);k||a.reset({type:xx})}})},a.menuRef=function(w){a._menuNode=w},a.getMenuProps=function(w,x){var k,E=w===void 0?{}:w,R=E.refKey,F=R===void 0?"ref":R,A=E.ref,N=va(E,lL),V=x===void 0?{}:x,$=V.suppressRefError,M=$===void 0?!1:$;return a.getMenuProps.called=!0,a.getMenuProps.refKey=F,a.getMenuProps.suppressRefError=M,yt((k={},k[F]=n0(A,a.menuRef),k.role="listbox",k["aria-labelledby"]=N&&N["aria-label"]?void 0:a.labelId,k.id=a.menuId,k),N)},a.getItemProps=function(w){var x,k=w===void 0?{}:w,E=k.onMouseMove,R=k.onMouseDown,F=k.onClick;k.onPress;var A=k.index,N=k.item,V=N===void 0?process.env.NODE_ENV==="production"?void 0:Q$("getItemProps","item"):N,$=va(k,cL);A===void 0?(a.items.push(V),A=a.items.indexOf(V)):a.items[A]=V;var M="onClick",B=F,j=(x={onMouseMove:Xr(E,function(){A!==a.getState().highlightedIndex&&(a.setHighlightedIndex(A,{type:gx}),a.avoidScrolling=!0,a.internalSetTimeout(function(){return a.avoidScrolling=!1},250))}),onMouseDown:Xr(R,function(Y){Y.preventDefault()})},x[M]=Xr(B,function(){a.selectItemAtIndex(A,{type:wx})}),x),I=$.disabled?{onMouseDown:j.onMouseDown}:j;return yt({id:a.getItemId(A),role:"option","aria-selected":a.getState().highlightedIndex===A},I,$)},a.clearItems=function(){a.items=[]},a.reset=function(w,x){w===void 0&&(w={}),w=yl(w),a.internalSetState(function(k){var E=k.selectedItem;return yt({isOpen:a.props.defaultIsOpen,highlightedIndex:a.props.defaultHighlightedIndex,inputValue:a.props.itemToString(E)},w)},x)},a.toggleMenu=function(w,x){w===void 0&&(w={}),w=yl(w),a.internalSetState(function(k){var E=k.isOpen;return yt({isOpen:!E},E&&{highlightedIndex:a.props.defaultHighlightedIndex},w)},function(){var k=a.getState(),E=k.isOpen,R=k.highlightedIndex;E&&a.getItemCount()>0&&typeof R=="number"&&a.setHighlightedIndex(R,w),t0(x)()})},a.openMenu=function(w){a.internalSetState({isOpen:!0},w)},a.closeMenu=function(w){a.internalSetState({isOpen:!1},w)},a.updateStatus=fp(function(){var w;if((w=a.props)!=null&&(w=w.environment)!=null&&w.document){var x=a.getState(),k=a.items[x.highlightedIndex],E=a.getItemCount(),R=a.props.getA11yStatusMessage(yt({itemToString:a.props.itemToString,previousResultCount:a.previousResultCount,resultCount:E,highlightedItem:k},x));a.previousResultCount=E,dx(R,a.props.environment.document)}},200);var l=a.props,c=l.defaultHighlightedIndex,u=l.initialHighlightedIndex,d=u===void 0?c:u,p=l.defaultIsOpen,h=l.initialIsOpen,g=h===void 0?p:h,y=l.initialInputValue,S=y===void 0?"":y,v=l.initialSelectedItem,b=v===void 0?null:v,m=a.getState({highlightedIndex:d,isOpen:g,inputValue:S,selectedItem:b});return m.selectedItem!=null&&a.props.initialInputValue===void 0&&(m.inputValue=a.props.itemToString(m.selectedItem)),a.state=m,a}$$(r,t);var n=r.prototype;return n.internalClearTimeouts=function(){this.timeoutIds.forEach(function(o){clearTimeout(o)}),this.timeoutIds=[]},n.getState=function(o){return o===void 0&&(o=this.state),tL(o,this.props)},n.getItemCount=function(){var o=this.items.length;return this.itemCount!=null?o=this.itemCount:this.props.itemCount!==void 0&&(o=this.props.itemCount),o},n.getItemNodeFromIndex=function(o){return this.props.environment?this.props.environment.document.getElementById(this.getItemId(o)):null},n.scrollHighlightedItemIntoView=function(){{var o=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(o,this._menuNode)}},n.moveHighlightedIndex=function(o,a){var l=this.getItemCount(),c=this.getState(),u=c.highlightedIndex;if(l>0){var d=$f(u,o,{length:l},this.isItemDisabled,!0);this.setHighlightedIndex(d,a)}},n.getStateAndHelpers=function(){var o=this.getState(),a=o.highlightedIndex,l=o.inputValue,c=o.selectedItem,u=o.isOpen,d=this.props.itemToString,p=this.id,h=this.getRootProps,g=this.getToggleButtonProps,y=this.getLabelProps,S=this.getMenuProps,v=this.getInputProps,b=this.getItemProps,m=this.openMenu,w=this.closeMenu,x=this.toggleMenu,k=this.selectItem,E=this.selectItemAtIndex,R=this.selectHighlightedItem,F=this.setHighlightedIndex,A=this.clearSelection,N=this.clearItems,V=this.reset,$=this.setItemCount,M=this.unsetItemCount,B=this.internalSetState;return{getRootProps:h,getToggleButtonProps:g,getLabelProps:y,getMenuProps:S,getInputProps:v,getItemProps:b,reset:V,openMenu:m,closeMenu:w,toggleMenu:x,selectItem:k,selectItemAtIndex:E,selectHighlightedItem:R,setHighlightedIndex:F,clearSelection:A,clearItems:N,setItemCount:$,unsetItemCount:M,setState:B,itemToString:d,id:p,highlightedIndex:a,inputValue:l,isOpen:u,selectedItem:c}},n.componentDidMount=function(){var o=this;if(process.env.NODE_ENV!=="production"&&this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&s0(this._menuNode,this.getMenuProps),!this.props.environment)this.cleanup=function(){o.internalClearTimeouts()};else{var a=function(){o.isMouseDown=!0},l=function(h){o.isMouseDown=!1;var g=a0(h.target,[o._rootNode,o._menuNode],o.props.environment);!g&&o.getState().isOpen&&o.reset({type:hx},function(){return o.props.onOuterClick(o.getStateAndHelpers())})},c=function(){o.isTouchMove=!1},u=function(){o.isTouchMove=!0},d=function(h){var g=a0(h.target,[o._rootNode,o._menuNode],o.props.environment,!1);!o.isTouchMove&&!g&&o.getState().isOpen&&o.reset({type:Ox},function(){return o.props.onOuterClick(o.getStateAndHelpers())})},p=this.props.environment;p.addEventListener("mousedown",a),p.addEventListener("mouseup",l),p.addEventListener("touchstart",c),p.addEventListener("touchmove",u),p.addEventListener("touchend",d),this.cleanup=function(){o.internalClearTimeouts(),o.updateStatus.cancel(),p.removeEventListener("mousedown",a),p.removeEventListener("mouseup",l),p.removeEventListener("touchstart",c),p.removeEventListener("touchmove",u),p.removeEventListener("touchend",d)}}},n.shouldScroll=function(o,a){var l=this.props.highlightedIndex===void 0?this.getState():this.props,c=l.highlightedIndex,u=a.highlightedIndex===void 0?o:a,d=u.highlightedIndex,p=c&&this.getState().isOpen&&!o.isOpen,h=c!==d;return p||h},n.componentDidUpdate=function(o,a){process.env.NODE_ENV!=="production"&&(dp(this.state,o,this.props),this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&s0(this._menuNode,this.getMenuProps)),hd(this.props,"selectedItem")&&this.props.selectedItemChanged(o.selectedItem,this.props.selectedItem)&&this.internalSetState({type:kx,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(a,o)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},n.componentWillUnmount=function(){this.cleanup()},n.render=function(){var o=i0(this.props.children,_n);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var a=i0(o(this.getStateAndHelpers()));if(!a)return null;if(this.getRootProps.called||this.props.suppressRefError)return process.env.NODE_ENV!=="production"&&!this.getRootProps.suppressRefError&&!this.props.suppressRefError&&fL(a,this.getRootProps),a;if(cx(a))return H.cloneElement(a,this.getRootProps(ux(a)));if(process.env.NODE_ENV!=="production")throw new Error("downshift: If you return a non-DOM element, you must apply the getRootProps function")},r})(H.Component);return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:J$,itemToString:function(t){return t==null?"":(process.env.NODE_ENV!=="production"&&rL(t)&&!t.hasOwnProperty("toString")&&console.warn("downshift: An object was passed to the default implementation of `itemToString`. You should probably provide your own `itemToString` implementation. Please refer to the `itemToString` API documentation.","The object that was passed:",t),String(t))},onStateChange:_n,onInputValueChange:_n,onUserAction:_n,onChange:_n,onSelect:_n,onOuterClick:_n,selectedItemChanged:function(t,r){return t!==r},environment:typeof window>"u"?void 0:window,stateReducer:function(t,r){return r},suppressRefError:!1,scrollIntoView:lx},e.stateChangeTypes=iL,e})();process.env.NODE_ENV!=="production"&&(uL.propTypes={children:ue.func,defaultHighlightedIndex:ue.number,defaultIsOpen:ue.bool,initialHighlightedIndex:ue.number,initialSelectedItem:ue.any,initialInputValue:ue.string,initialIsOpen:ue.bool,getA11yStatusMessage:ue.func,itemToString:ue.func,onChange:ue.func,onSelect:ue.func,onStateChange:ue.func,onInputValueChange:ue.func,onUserAction:ue.func,onOuterClick:ue.func,selectedItemChanged:ue.func,stateReducer:ue.func,itemCount:ue.number,id:ue.string,environment:ue.shape({addEventListener:ue.func.isRequired,removeEventListener:ue.func.isRequired,document:ue.shape({createElement:ue.func.isRequired,getElementById:ue.func.isRequired,activeElement:ue.any.isRequired,body:ue.any.isRequired}).isRequired,Node:ue.func.isRequired}),suppressRefError:ue.bool,scrollIntoView:ue.func,selectedItem:ue.any,isOpen:ue.bool,inputValue:ue.string,highlightedIndex:ue.number,labelId:ue.string,inputId:ue.string,menuId:ue.string,getItemId:ue.func});function s0(e,t){var r=t.refKey;e||console.error('downshift: The ref prop "'+r+'" from getMenuProps was not applied correctly on your menu element.')}function fL(e,t){var r=t.refKey,n=r!=="ref",o=!cx(e);o&&!n&&!Jb.isForwardRef(e)?console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps"):!o&&n&&console.error('downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "'+r+'"'),!Jb.isForwardRef(e)&&!ux(e)[r]&&console.error('downshift: You must apply the ref prop "'+r+'" from getRootProps onto your root element.')}function dL(e,t){return t.changes}fp(function(e,t){dx(e,t)},200);var Ca={itemToString:function(e){return e?String(e):""},itemToKey:function(e){return e},stateReducer:dL,scrollIntoView:lx,environment:typeof window>"u"?void 0:window};process.env.NODE_ENV;process.env.NODE_ENV;function pL(){var e=H.useRef(!0);return H.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]),e.current}var Ll={environment:ue.shape({addEventListener:ue.func.isRequired,removeEventListener:ue.func.isRequired,document:ue.shape({createElement:ue.func.isRequired,getElementById:ue.func.isRequired,activeElement:ue.any.isRequired,body:ue.any.isRequired}).isRequired,Node:ue.func.isRequired}),itemToString:ue.func,itemToKey:ue.func,stateReducer:ue.func},Ax=yt({},Ll,{getA11yStatusMessage:ue.func,highlightedIndex:ue.number,defaultHighlightedIndex:ue.number,initialHighlightedIndex:ue.number,isOpen:ue.bool,defaultIsOpen:ue.bool,initialIsOpen:ue.bool,selectedItem:ue.any,initialSelectedItem:ue.any,defaultSelectedItem:ue.any,id:ue.string,labelId:ue.string,menuId:ue.string,getItemId:ue.func,toggleButtonId:ue.string,onSelectedItemChange:ue.func,onHighlightedIndexChange:ue.func,onStateChange:ue.func,onIsOpenChange:ue.func,scrollIntoView:ue.func}),hL=wo(wo({},Ax),{items:ue.array.isRequired,isItemDisabled:ue.func});wo(wo({},Ca),{isItemDisabled:function(){return!1}});process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;var gL=yt({},Ax,{items:ue.array.isRequired,isItemDisabled:ue.func,inputValue:ue.string,defaultInputValue:ue.string,initialInputValue:ue.string,inputId:ue.string,onInputValueChange:ue.func});process.env.NODE_ENV;yt({},Ca,{isItemDisabled:function(){return!1}});var vL={stateReducer:Ll.stateReducer,itemToKey:Ll.itemToKey,environment:Ll.environment,selectedItems:ue.array,initialSelectedItems:ue.array,defaultSelectedItems:ue.array,getA11yStatusMessage:ue.func,activeIndex:ue.number,initialActiveIndex:ue.number,defaultActiveIndex:ue.number,onActiveIndexChange:ue.func,onSelectedItemsChange:ue.func,keyNavigationNext:ue.string,keyNavigationPrevious:ue.string};Ca.itemToKey,Ca.stateReducer,Ca.environment;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;const Tx=H.forwardRef(({className:e,children:t,isFocused:r,isDisabled:n,...o},a)=>{const{size:l,color:c,isDisabled:u,hasMessage:d,downshift:p,isInvalid:h}=Zt(),g=n??u,y=r??p.isOpen;return C.jsx("div",{ref:a,className:fe(y$({size:l,color:c,isDisabled:g,isFocused:!!y,isInvalid:h&&!p.isOpen,hasMessage:d}),e),"aria-disabled":g,"aria-invalid":h,role:"combobox",tabIndex:g?-1:0,...o,children:t})}),Rx=({className:e,children:t,isMulti:r})=>C.jsx("div",{className:fe(w$({isMulti:r}),e),children:t}),zl=H.forwardRef(({isHidden:e,inputClassName:t,...r},n)=>{const{size:o,color:a}=Zt();return e?C.jsx("input",{ref:n,type:"text",style:{position:"absolute",top:0,left:0,opacity:0,width:"100%",height:"100%",pointerEvents:"none"},tabIndex:-1,...r}):C.jsx("input",{ref:n,type:"text",className:fe(x$({size:o,color:a}),t),...r})}),Cx=({className:e,children:t})=>{const{size:r,color:n}=Zt();return C.jsx("div",{className:fe(S$({size:r,color:n}),e),children:t})},Px=({className:e,children:t,data:r,isDisabled:n})=>{const{size:o,color:a}=Zt();return C.jsx("div",{className:fe(_$({size:o,color:a,isDisabled:n}),e),children:t||r.label})},Ix=({className:e,children:t,data:r,isDisabled:n,isFocused:o,onRemove:a})=>{const{size:l,color:c,downshift:u}=Zt(),d=()=>{a?a(r):u.removeItem(r)};return C.jsxs("div",{className:fe(E$({size:l,color:c,isDisabled:n,isFocused:o}),e),children:[C.jsx("div",{className:k$({size:l}),children:t||r.label}),!n&&C.jsx("div",{className:O$({size:l,color:c,isDisabled:!1}),onClick:d,children:C.jsx(_c,{className:"w-3 h-3"})})]})},Nx=({color:e,className:t,children:r,onClick:n,isDisabled:o,...a})=>{const{size:l,color:c,isDisabled:u,downshift:d}=Zt(),p=o??u,h=d.selectedItems.length>0;if(p||!h)return null;const g=y=>{y.stopPropagation(),n?n(y):d.clearSelection()};return C.jsx("div",{className:fe(ox({size:l,color:e||c,isDisabled:p}),t),onClick:g,role:"button",tabIndex:0,"aria-label":"Clear selection",...a,children:r||C.jsx(WM,{})})},mL=({className:e,children:t,onClick:r,isDisabled:n,...o})=>{const{size:a,color:l,isDisabled:c,downshift:u}=Zt(),d=n??c,p=u.inputValue.length>0&&u.isSearchable;if(d||!p)return null;const h=g=>{g.stopPropagation(),r?r(g):u.setInputValue("")};return C.jsx("div",{className:fe(ox({size:a,color:l,isDisabled:d}),e),onClick:h,role:"button",tabIndex:0,"aria-label":"Clear selection",...o,children:t||C.jsx(_c,{})})},Mx=({color:e,className:t,children:r,onClick:n,isDisabled:o,...a})=>{const{size:l,color:c,isDisabled:u,downshift:d}=Zt(),p=o??u,h=d.isOpen,g=y=>{y.stopPropagation(),p||(n?n(y):d.toggleMenu())};return C.jsx("div",{className:fe(A$({size:l,color:e||c,isDisabled:p}),"cursor-pointer",t),onClick:g,role:"button",tabIndex:p?-1:0,"aria-label":h?"Close menu":"Open menu","aria-expanded":h,"aria-disabled":p,...a,children:r||C.jsx(BM,{className:fe("transition-transform duration-200",{"rotate-180":h})})})},Dx=H.forwardRef(({className:e,children:t,placement:r,...n},o)=>{const{size:a,hasMessage:l,color:c}=Zt();return C.jsx("div",{"data-qui":"SelectMenu",ref:o,className:fe(T$({size:a,placement:r,hasMessage:l,color:c}),e),...n,children:t})}),$x=H.forwardRef(({className:e,children:t,maxHeight:r=300,...n},o)=>{const{size:a}=Zt();return C.jsx(op,{scrollableNodeProps:{ref:o},className:fe(R$({size:a}),e),style:{maxHeight:r},...n,children:t})}),vd=({className:e,children:t,data:r,isDisabled:n,isFocused:o,isSelected:a,innerProps:l,...c})=>{const{size:u,color:d}=Zt();return C.jsx("div",{"data-qui":"SelectOption",className:fe(C$({size:u,color:d,isDisabled:n,isFocused:o,isSelected:a}),e),...l,...c,children:t||r.label})},Lx=({className:e,children:t,data:r,label:n})=>{const{size:o}=Zt();return C.jsxs("div",{"data-qui":"SelectGroup",className:fe(P$({size:o}),e),children:[C.jsx(zx,{children:n||r.label}),t]})},zx=({className:e,children:t})=>{const{size:r,color:n}=Zt();return C.jsx("div",{className:fe(I$({size:r,color:n}),e),children:t})},jl=({className:e,children:t,inputValue:r})=>{const{size:n}=Zt();return C.jsx("div",{className:fe(M$({size:n}),e),children:t||`No options found${r?` for "${r}"`:""}`})},bL=({isOpen:e,usePortal:t,controlRef:r,children:n})=>{const[o,a]=H.useState(null);return H.useLayoutEffect(()=>{if(t&&e&&r.current){const l=()=>{var c;const u=(c=r.current)==null?void 0:c.getBoundingClientRect();u&&a({top:u.top+window.scrollY,left:u.left+window.scrollX,width:u.width,height:u.height})};return l(),window.addEventListener("resize",l),window.addEventListener("scroll",l,!0),()=>{window.removeEventListener("resize",l),window.removeEventListener("scroll",l,!0)}}},[e,t,r]),e?t&&o?ti.createPortal(C.jsx("div",{className:"absolute z-50",style:{top:o.top,left:o.left,width:o.width,height:o.height,pointerEvents:"none"},children:C.jsx("div",{className:"relative w-full h-full",children:C.jsx("div",{style:{pointerEvents:"auto"},children:n})})}),document.body):C.jsx(C.Fragment,{children:n}):null},yL=e=>t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})},wL=H.forwardRef(({placeholder:e,noOptionsMessage:t="",hideNoOptions:r=!1,loadingMessage:n="Loading...",isClearable:o=!1,isSearchClearable:a=!1,isLoading:l=!1,isRequired:c=!1,hideIndicators:u=!1,hideDropdownIndicator:d=!1,searchPlacement:p="trigger",hideSelectedOptions:h=!1,onFocus:g,onBlur:y,renderMenuHeader:S,formatOptionLabel:v,displayFormattedOption:b=!1,isOptionDisabled:m=j=>j.isDisabled||!1,inputRef:w,controlShouldRenderValue:x=!0,name:k,id:E,onSelectionComplete:R,"aria-label":F,"aria-labelledby":A,"aria-describedby":N,children:V,usePortal:$=!1,...M},B)=>{const{size:j,isInvalid:I,isDisabled:Y,downshift:X,options:K=[]}=Zt(),me=H.useRef(null),L=w||me,U=H.useRef(null),{isOpen:te,openMenu:ee,selectedItem:J,inputValue:ae,highlightedIndex:se,getToggleButtonProps:ne,getMenuProps:ce,getInputProps:he,getItemProps:pe,isMulti:Se,isSearchable:Z}=X,Pe=Se?X.selectedItems??[]:J?[J]:[],ge=Pe.length>0,Et=a&&!Y&&!u,vr=o&&ge&&!Y&&!u,Ct=!d&&!u,zi=!ge&&(!Z||!ae)||!x,ji={},zt={};Object.entries(M).forEach(([Re,ze])=>{Re.startsWith("data-")||Re.startsWith("aria-")||Re==="role"?ji[Re]=ze:zt[Re]=ze});const kt=H.useMemo(()=>yL([U,B]),[B]),qr=ne({disabled:Y,ref:kt}),Nr=(he==null?void 0:he({disabled:Y,required:c,name:k,id:E,"aria-label":F,"aria-labelledby":A,"aria-describedby":N,"aria-invalid":I,onFocus:g,onBlur:y,...zt}))??{},ai=Re=>Pe.some(ze=>ze.value===Re.value),Mr=Re=>h?Re.filter(ze=>!ai(ze)):Re,Fi=Re=>h?Re.map(ze=>({...ze,options:Mr(ze.options)})).filter(ze=>ze.options.length>0):Re,Dr=Re=>{R==null||R(Re.value,Re)};return C.jsxs("div",{className:"relative",children:[C.jsxs(Tx,{...Z?{ref:kt}:qr,...ji,isFocused:te,isDisabled:Y,onClick:Re=>{Re.stopPropagation(),ee()},children:[V||C.jsxs(Rx,{isMulti:Se,children:[Se&&x&&Pe.map((Re,ze)=>C.jsx(Ix,{data:Re,index:ze,isDisabled:Y},Re.value)),!Se&&ge&&x&&C.jsx("div",{className:"flex items-center gap-2",children:C.jsx(Px,{data:Pe[0],isDisabled:Y,children:v&&b?v(Pe[0]):Pe[0].label})}),Z&&p==="trigger"?C.jsx(zl,{ref:L,...Nr,placeholder:e}):C.jsxs(C.Fragment,{children:[C.jsx(zl,{ref:L,isHidden:!0,value:Pe.map(Re=>Re.value).join(","),...Nr}),zi&&C.jsx(Cx,{children:e})]})]}),C.jsxs("div",{className:fe("flex items-center size-fit gap-1",{hidden:!vr&&!Ct}),children:[Et&&C.jsx(mL,{}),vr&&C.jsx(Nx,{}),Ct&&C.jsx(Mx,{})]})]}),C.jsx(bL,{isOpen:te,usePortal:$,controlRef:U,children:r&&X.filteredItems.length===0?null:C.jsxs(Dx,{...ce(),children:[S&&S(X),Z&&p==="menu"&&C.jsx("div",{className:"p-2",children:C.jsx(zl,{ref:L,...Nr,autoFocus:!0,placeholder:e,onClick:Re=>Re.stopPropagation()})}),C.jsx($x,{children:l?C.jsx("div",{className:N$({size:j}),children:n}):X.filteredItems.length===0?C.jsx(jl,{inputValue:ae,children:typeof t=="function"?t(ae):t}):D$(K)?(()=>{const Re=Fi(K);return Re.length===0?C.jsx(jl,{inputValue:ae,children:typeof t=="function"?t(ae):t}):Re.map(ze=>C.jsx(Lx,{data:ze,label:ze.label,options:ze.options,children:ze.options.map(Vt=>{const un=Vt.value,Pn=Pe.some(ci=>ci.value===un),In=X.filteredItems.findIndex(ci=>ci.value===un),si=se===In,li=m(Vt),fn=pe({item:Vt,index:In,onClick:()=>Dr(Vt)});return C.jsx(vd,{...fn,data:Vt,isDisabled:li,isFocused:si,isSelected:Pn,children:v?v(Vt):Vt.label},un)})},ze.label))})():(()=>{const Re=Mr(X.filteredItems);return Re.length===0?C.jsx(jl,{inputValue:ae,children:typeof t=="function"?t(ae):t}):Re.map(ze=>{const Vt=ze.value,un=Pe.some(fn=>fn.value===Vt),Pn=X.filteredItems.findIndex(fn=>fn.value===Vt),In=se===Pn,si=m(ze),li=pe({item:ze,index:Pn,onClick:()=>Dr(ze)});return C.jsx(vd,{...li,data:ze,isDisabled:si,isFocused:In,isSelected:un,children:v?v(ze):ze.label},Vt)})})()})]})})]})});Tx.displayName="Select.Control";Rx.displayName="Select.ValueContainer";zl.displayName="Select.Input";Cx.displayName="Select.Placeholder";Px.displayName="Select.SingleValue";Ix.displayName="Select.MultiValue";Nx.displayName="Select.ClearIndicator";Mx.displayName="Select.DropdownIndicator";Dx.displayName="Select.Menu";$x.displayName="Select.MenuList";vd.displayName="Select.Option";Lx.displayName="Select.Group";zx.displayName="Select.GroupHeading";jl.displayName="Select.NoOptionsMessage";wL.displayName="Select.Field";H.createContext(void 0);const xL=({active:e,disabled:t,error:r,isOpen:n,className:o})=>fe("flex w-full items-center justify-between text-left leading-5 transition-colors duration-200",{"cursor-pointer":!t,"text-inactive-text":t,"bg-primary hover:bg-primary-hover text-tab-active-fg":e&&!t,"text-negative":r&&!e&&!t,"bg-primary":n&&!e&&!t,"text-tab-inactive-fg":!e&&!t&&!r,"hover:bg-primary-hover hover:text-tab-active-fg":!t&&!e},o),SL=H.forwardRef(({active:e,disabled:t,error:r,isOpen:n,className:o,children:a,as:l="div",...c},u)=>{const d=xL({active:e,disabled:t,error:r,isOpen:n,className:o});return C.jsx(l,{"data-qui":"ListItem",ref:u,className:d,"aria-disabled":t,"aria-selected":e,"aria-invalid":r,"aria-expanded":n,role:c.onClick?"button":"listitem",...c,children:a})});SL.displayName="ListItem";const _L=({id:e,title:t,message:r,icon:n,type:o,color:a,zIndex:l=3e3,views:c,width:u=520,hasOverlay:d=!0,container:p,onClose:h,onEdit:g})=>{const y=b=>{h({id:e,reason:b})};H.useEffect(()=>{function b(m){m.key==="Escape"&&y(co.CANCELED)}return window.addEventListener("keyup",b),()=>{window.removeEventListener("keyup",b)}},[]);const S=Je.merge(Je.values(c==null?void 0:c.toggles).flatMap(b=>b.value?b.warnings||[]:[]),c==null?void 0:c.tips),v=(b,m)=>{var x;if(!(c!=null&&c.toggles))return;const w=Je.cloneDeep(c);(x=w.toggles)!=null&&x[b]&&(w.toggles[b].value=m),g({id:e,views:w})};return ti.createPortal(C.jsx(Xl,{appear:!0,show:!0,as:H.Fragment,children:C.jsx("div",{className:tt("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":d}),style:{zIndex:l},onClick:()=>y(co.CANCELED),children:C.jsx(Xl.Child,{as:H.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:C.jsx("div",{"data-cy":"confirmation-modal-cy",className:"relative rounded-md border border-grey-50 bg-grey-900",style:{width:u},onClick:b=>b.stopPropagation(),children:C.jsxs("div",{className:"flex flex-col items-center gap-3 p-6 px-12",children:[n?C.jsx("div",{className:"flex items-center justify-center",children:C.jsx(FM,{name:n,color:a,className:"w-6 h-6"})}):null,C.jsx(EL,{condition:t,children:C.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-white text-center",children:t})}),C.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium text-white",children:r}),C.jsx("div",{className:"text-xs text-white",children:Je.values(c==null?void 0:c.toggles).map(b=>C.jsx("div",{children:C.jsxs("label",{htmlFor:b.key,className:"flex items-center",children:[C.jsx(Qw,{size:"sm",checked:b.value,onChange:m=>v(b.key,m)}),C.jsxs("span",{className:"ml-1",children:[b.title," "]})]})},b.key))}),C.jsx(kL,{warnings:S}),C.jsx("div",{className:"flex items-center gap-4",children:o===rp.CONFIRM?C.jsxs(C.Fragment,{children:[C.jsx(_f,{autoFocus:!0,color:a,onClick:()=>y(co.CONFIRMED),children:"Confirm"}),C.jsx(_f,{color:a,variant:"outlined",onClick:()=>y(co.CANCELED),children:"Cancel"})]}):C.jsx(_f,{autoFocus:!0,onClick:()=>y(),children:"OK"})})]})})})})}),p||document.body)},EL=e=>e.condition?C.jsx(C.Fragment,{children:e.children}):null,kL=e=>e.warnings?C.jsx(Xl,{appear:!0,show:!!e.warnings.length,as:H.Fragment,children:C.jsx("div",{className:"flex flex-col gap-1 rounded-sm bg-grey-600 p-2 text-xs text-white",children:e.warnings.map((t,r)=>C.jsx(Xl.Child,{as:H.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:C.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[C.jsx(wt.FdWarningDanger,{className:tt({"h-3 w-3":!0,"text-yellow-500":t.type==="warning","text-red-400":t.type==="error","text-primary-dark":t.type==="info"},"mr-3")}),C.jsx("div",{className:"flex-1",children:t.message})]})},`modal-warnings-${r}`))})}):null;var jx=(e=>(e[e.MIN=.5]="MIN",e[e.MAX=10]="MAX",e[e.STEP=.5]="STEP",e[e.INIT=1]="INIT",e[e.TRANSITION=200]="TRANSITION",e))(jx||{});const OL=({zoom:e,minZoom:t=.5,maxZoom:r=10,handleZoomIn:n,handleZoomOut:o})=>C.jsxs(ex,{className:"flex items-center rounded p-1",depth:4,children:[C.jsx(wt.FdMinusNaked,{onClick:o,className:tt("h-5 w-5 p-1",{"text-grey-200":e<=t,"cursor-pointer rounded hover:bg-purple-800":e>t})}),C.jsxs("span",{className:"mx-1 w-10 select-none text-center text-xs",children:[(e*100).toFixed(0),"%"]}),C.jsx(wt.FdPlusNaked,{onClick:n,className:tt("h-5 w-5 p-1",{"text-grey-200":e>=r,"cursor-pointer rounded hover:bg-purple-800":e<r})})]}),AL=z.forwardRef(((e,t)=>z.createElement(ii.span,pt({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),TL=AL;function l0(e){const t=z.useRef({value:e,previous:e});return z.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}const[Fx]=Fd("Tooltip",[mc]),pp=mc(),RL=700,[e4,CL]=Fx("TooltipProvider",{isOpenDelayed:!0,delayDuration:RL,onOpen:()=>{},onClose:()=>{}}),[PL,Oc]=Fx("Tooltip"),IL=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o=!1,onOpenChange:a,delayDuration:l}=e,c=CL("Tooltip",t),u=pp(t),[d,p]=z.useState(null),h=Oy(),g=z.useRef(0),y=l??c.delayDuration,S=z.useRef(!1),{onOpen:v,onClose:b}=c,[m=!1,w]=zy({prop:n,defaultProp:o,onChange:R=>{R&&(document.dispatchEvent(new CustomEvent("tooltip.open")),v()),a==null||a(R)}}),x=z.useMemo((()=>m?S.current?"delayed-open":"instant-open":"closed"),[m]),k=z.useCallback((()=>{window.clearTimeout(g.current),S.current=!1,w(!0)}),[w]),E=z.useCallback((()=>{window.clearTimeout(g.current),g.current=window.setTimeout((()=>{S.current=!0,w(!0)}),y)}),[y,w]);return z.useEffect((()=>()=>window.clearTimeout(g.current)),[]),z.createElement(Dy,u,z.createElement(PL,{scope:t,contentId:h,open:m,stateAttribute:x,trigger:d,onTriggerChange:p,onTriggerEnter:z.useCallback((()=>{c.isOpenDelayed?E():k()}),[c.isOpenDelayed,E,k]),onOpen:z.useCallback(k,[k]),onClose:z.useCallback((()=>{window.clearTimeout(g.current),w(!1),b()}),[w,b])},r))},NL=z.forwardRef(((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Oc("TooltipTrigger",r),a=pp(r),l=ni(t,o.onTriggerChange),c=z.useRef(!1),u=z.useCallback((()=>c.current=!1),[]);return z.useEffect((()=>()=>document.removeEventListener("mouseup",u)),[u]),z.createElement($y,pt({asChild:!0},a),z.createElement(ii.button,pt({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},n,{ref:l,onMouseEnter:dr(e.onMouseEnter,o.onTriggerEnter),onMouseLeave:dr(e.onMouseLeave,o.onClose),onMouseDown:dr(e.onMouseDown,(()=>{o.onClose(),c.current=!0,document.addEventListener("mouseup",u,{once:!0})})),onFocus:dr(e.onFocus,(()=>{c.current||o.onOpen()})),onBlur:dr(e.onBlur,o.onClose),onClick:dr(e.onClick,(d=>{d.detail===0&&o.onClose()}))})))})),ML=z.forwardRef(((e,t)=>{const{forceMount:r,...n}=e,o=Oc("TooltipContent",e.__scopeTooltip);return z.createElement(zd,{present:r||o.open},z.createElement(DL,pt({ref:t},n)))})),DL=z.forwardRef(((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,portalled:a=!0,...l}=e,c=Oc("TooltipContent",r),u=pp(r),d=a?jd:z.Fragment,{onClose:p}=c;return Cy((()=>p())),z.useEffect((()=>(document.addEventListener("tooltip.open",p),()=>document.removeEventListener("tooltip.open",p))),[p]),z.createElement(d,null,z.createElement($L,{__scopeTooltip:r}),z.createElement(Ly,pt({"data-state":c.stateAttribute},u,l,{ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),z.createElement(Ry,null,n),z.createElement(TL,{id:c.contentId,role:"tooltip"},o||n)))}));function $L(e){const{__scopeTooltip:t}=e,r=Oc("CheckTriggerMoved",t),n=Iy(r.trigger),o=n==null?void 0:n.left,a=l0(o),l=n==null?void 0:n.top,c=l0(l),u=r.onClose;return z.useEffect((()=>{(a!==void 0&&a!==o||c!==void 0&&c!==l)&&u()}),[u,a,c,o,l]),null}const LL=IL,zL=NL,jL=ML;function FL(e){return C.jsxs(LL,{delayDuration:e.delayDuration,open:e.open,children:[C.jsx(zL,{tabIndex:-1,asChild:!0,children:C.jsx("span",{children:e.children})}),C.jsxs(jL,{side:e.side,sideOffset:e.sideOffset,alignOffset:e.alignOffset,children:[typeof e.message=="string"&&C.jsx("p",{className:"max-w-[240px] rounded-md bg-primary-light px-1 py-2 text-s font-semibold text-primary-dark",children:e.message}),typeof e.message!="string"&&e.message]})]})}const _i=30,Fl=500,HL=e=>{const[t,r]=H.useState(_i),[n,o]=H.useState(!1),a=H.useRef(),l=t>_i,c=H.useRef(null);return H.useEffect(()=>{e.isOpen&&!l&&r(Fl),!e.isOpen&&l&&r(_i)},[e.isOpen]),C.jsx(Xw,{enable:{top:!0},className:"relative w-full select-none border-t isolate",style:{zIndex:49},size:{height:t,width:"100%"},maxHeight:700,minHeight:_i,onResizeStart:()=>{o(!0),a.current&&Date.now()-a.current<200?r(l?_i:Fl):a.current=Date.now()},onResize:(u,d,p)=>{c.current&&cancelAnimationFrame(c.current),c.current=requestAnimationFrame(()=>{var h;(h=e.onResize)==null||h.call(e),c.current=null})},onResizeStop:(u,d,p,h)=>{r(t+h.height),o(!1)},handleComponent:{top:C.jsx(Jw,{isDragging:n})},depth:1,children:C.jsxs("div",{"data-cy":"contextualPanel",className:"absolute inset-0 flex flex-col overflow-hidden",id:`__cp-${Je.kebabCase(e.path)}`,children:[C.jsxs("div",{className:tt("flex justify-between items-center px-3 py-0.5",{"flex-1":!l}),children:[C.jsxs("div",{className:"group flex items-center justify-start",children:[C.jsx("span",{className:"mr-2 text-sm",children:"Contextual panel"}),C.jsx("span",{}),e.tipKey?C.jsx(Xy,{tipKey:e.tipKey,alwaysOn:!0,asButton:!0}):null,C.jsx("button",{className:"rounded p-1 text-white hover:bg-primary-hover focus:outline-none",onClick:()=>{l?(r(_i),e.onClose()):(r(Fl),e.onOpen())},children:l?C.jsx(wt.FdDoubleArrowDown,{className:"h-4 w-4 text-white"}):C.jsx(wt.FdDoubleArrowUp,{className:"h-4 w-4 text-white"})})]}),e.headerRightSide]}),C.jsxs(Tl,{of:l,children:[C.jsx(Tl,{of:e.render,children:e.render}),C.jsx(Tl,{of:!e.render,children:e.children})]})]})})};function Hx({children:e,viewBox:t="0 0 24 24",...r}){return C.jsx("svg",{viewBox:t,width:"1em",height:"1em",fill:"none",className:"base-icon",...Je.omit(r,"isIndeterminate","isChecked"),children:e})}function Wx(e){const t=e.isIndeterminate?"M2 12h20":"M4 11.5L9 17L20 6";return C.jsx(Hx,{viewBox:"0 0 24 24",...e,children:C.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",d:t})})}function WL({isChecked:e,isIndeterminate:t,isInvalid:r,icon:n,label:o,className:a="",style:l,...c}){const u=H.useRef(null),d=n||C.jsx(Wx,{}),p=c.checked??e;H.useEffect(()=>{u.current&&(u.current.indeterminate=!!t)},[t]);const h=p||t,g=["base-checkbox-container",a].join(" ");return C.jsxs("label",{className:g,style:l,"data-invalid":r,children:[C.jsx("input",{ref:u,type:"checkbox",className:"base-checkbox-input",checked:p,...c,"aria-invalid":r||void 0}),C.jsx("span",{className:"base-checkbox-control",children:h&&d&&H.cloneElement(d,{isChecked:p,isIndeterminate:t,className:"base-checkbox-icon"})}),o&&C.jsx("span",{className:"base-checkbox-label",children:o})]})}const BL=H.forwardRef(({label:e,Icon:t,as:r="button",className:n="",disableHover:o=!1,iconClassname:a,...l},c)=>{const[u,d]=H.useState(null),[p,h]=H.useState(!1);return H.useImperativeHandle(c,()=>u,[u]),C.jsxs(C.Fragment,{children:[C.jsx(r,{ref:d,className:tt("rounded p-1 text-white focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",{"hover:bg-primary-hover":!o},n),onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),onMouseDown:()=>h(!1),...l,children:C.jsx(t,{className:tt("h-4 w-4",a)})}),p&&ti.createPortal(C.jsx(fw,{label:e,referenceElement:u}),document.body)]})});function VL(e,t){const r=H.useRef(!1);H.useEffect(()=>{if(r.current)return e();r.current=!0},t)}const Lf=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function zf(e,t,r,n){e.addEventListener?e.addEventListener(t,r,n):e.attachEvent&&e.attachEvent("on".concat(t),r)}function ma(e,t,r,n){e.removeEventListener?e.removeEventListener(t,r,n):e.detachEvent&&e.detachEvent("on".concat(t),r)}function Bx(e,t){const r=t.slice(0,t.length-1);for(let n=0;n<r.length;n++)r[n]=e[r[n].toLowerCase()];return r}function Vx(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");const t=e.split(",");let r=t.lastIndexOf("");for(;r>=0;)t[r-1]+=",",t.splice(r,1),r=t.lastIndexOf("");return t}function UL(e,t){const r=e.length>=t.length?e:t,n=e.length>=t.length?t:e;let o=!0;for(let a=0;a<r.length;a++)n.indexOf(r[a])===-1&&(o=!1);return o}const za={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,arrowup:38,arrowdown:40,arrowleft:37,arrowright:39,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Lf?173:189,"=":Lf?61:187,";":Lf?59:186,"'":222,"{":219,"}":221,"[":219,"]":221,"\\":220},Ur={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,meta:91,command:91},Sa={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},$t={16:!1,18:!1,17:!1,91:!1},dt={};for(let e=1;e<20;e++)za["f".concat(e)]=111+e;let ct=[],Pa=null,Ux="all";const En=new Map,Ao=e=>za[e.toLowerCase()]||Ur[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),qL=e=>Object.keys(za).find(t=>za[t]===e),GL=e=>Object.keys(Ur).find(t=>Ur[t]===e);function qx(e){Ux=e||"all"}function ja(){return Ux||"all"}function YL(){return ct.slice(0)}function KL(){return ct.map(e=>qL(e)||GL(e)||String.fromCharCode(e))}function ZL(){const e=[];return Object.keys(dt).forEach(t=>{dt[t].forEach(r=>{let{key:n,scope:o,mods:a,shortcut:l}=r;e.push({scope:o,shortcut:l,mods:a,keys:n.split("+").map(c=>Ao(c))})})}),e}function XL(e){const t=e.target||e.srcElement,{tagName:r}=t;let n=!0;const o=r==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(t.type);return(t.isContentEditable||(o||r==="TEXTAREA"||r==="SELECT")&&!t.readOnly)&&(n=!1),n}function JL(e){return typeof e=="string"&&(e=Ao(e)),ct.indexOf(e)!==-1}function QL(e,t){let r,n;e||(e=ja());for(const o in dt)if(Object.prototype.hasOwnProperty.call(dt,o))for(r=dt[o],n=0;n<r.length;)r[n].scope===e?r.splice(n,1).forEach(l=>{let{element:c}=l;return hp(c)}):n++;ja()===e&&qx(t||"all")}function ez(e){let t=e.keyCode||e.which||e.charCode;e.key&&e.key.toLowerCase()==="capslock"&&(t=Ao(e.key));const r=ct.indexOf(t);if(r>=0&&ct.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&ct.splice(0,ct.length),(t===93||t===224)&&(t=91),t in $t){$t[t]=!1;for(const n in Ur)Ur[n]===t&&(Br[n]=!1)}}function Gx(e){if(typeof e>"u")Object.keys(dt).forEach(o=>{Array.isArray(dt[o])&&dt[o].forEach(a=>wl(a)),delete dt[o]}),hp(null);else if(Array.isArray(e))e.forEach(o=>{o.key&&wl(o)});else if(typeof e=="object")e.key&&wl(e);else if(typeof e=="string"){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];let[o,a]=r;typeof o=="function"&&(a=o,o=""),wl({key:e,scope:o,method:a,splitKey:"+"})}}const wl=e=>{let{key:t,scope:r,method:n,splitKey:o="+"}=e;Vx(t).forEach(l=>{const c=l.split(o),u=c.length,d=c[u-1],p=d==="*"?"*":Ao(d);if(!dt[p])return;r||(r=ja());const h=u>1?Bx(Ur,c):[],g=[];dt[p]=dt[p].filter(y=>{const v=(n?y.method===n:!0)&&y.scope===r&&UL(y.mods,h);return v&&g.push(y.element),!v}),g.forEach(y=>hp(y))})};function c0(e,t,r,n){if(t.element!==n)return;let o;if(t.scope===r||t.scope==="all"){o=t.mods.length>0;for(const a in $t)Object.prototype.hasOwnProperty.call($t,a)&&(!$t[a]&&t.mods.indexOf(+a)>-1||$t[a]&&t.mods.indexOf(+a)===-1)&&(o=!1);(t.mods.length===0&&!$t[16]&&!$t[18]&&!$t[17]&&!$t[91]||o||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(ct),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function u0(e,t){const r=dt["*"];let n=e.keyCode||e.which||e.charCode;if(e.key&&e.key.toLowerCase()==="capslock"||!Br.filter.call(this,e))return;if((n===93||n===224)&&(n=91),ct.indexOf(n)===-1&&n!==229&&ct.push(n),["metaKey","ctrlKey","altKey","shiftKey"].forEach(c=>{const u=Sa[c];e[c]&&ct.indexOf(u)===-1?ct.push(u):!e[c]&&ct.indexOf(u)>-1?ct.splice(ct.indexOf(u),1):c==="metaKey"&&e[c]&&(ct=ct.filter(d=>d in Sa||d===n))}),n in $t){$t[n]=!0;for(const c in Ur)if(Object.prototype.hasOwnProperty.call(Ur,c)){const u=Sa[Ur[c]];Br[c]=e[u]}if(!r)return}for(const c in $t)Object.prototype.hasOwnProperty.call($t,c)&&($t[c]=e[Sa[c]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(ct.indexOf(17)===-1&&ct.push(17),ct.indexOf(18)===-1&&ct.push(18),$t[17]=!0,$t[18]=!0);const o=ja();if(r)for(let c=0;c<r.length;c++)r[c].scope===o&&(e.type==="keydown"&&r[c].keydown||e.type==="keyup"&&r[c].keyup)&&c0(e,r[c],o,t);if(!(n in dt))return;const a=dt[n],l=a.length;for(let c=0;c<l;c++)if((e.type==="keydown"&&a[c].keydown||e.type==="keyup"&&a[c].keyup)&&a[c].key){const u=a[c],{splitKey:d}=u,p=u.key.split(d),h=[];for(let g=0;g<p.length;g++)h.push(Ao(p[g]));h.sort().join("")===ct.sort().join("")&&c0(e,u,o,t)}}function Br(e,t,r){ct=[];const n=Vx(e);let o=[],a="all",l=document,c=0,u=!1,d=!0,p="+",h=!1,g=!1;for(r===void 0&&typeof t=="function"&&(r=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(a=t.scope),t.element&&(l=t.element),t.keyup&&(u=t.keyup),t.keydown!==void 0&&(d=t.keydown),t.capture!==void 0&&(h=t.capture),typeof t.splitKey=="string"&&(p=t.splitKey),t.single===!0&&(g=!0)),typeof t=="string"&&(a=t),g&&Gx(e,a);c<n.length;c++)e=n[c].split(p),o=[],e.length>1&&(o=Bx(Ur,e)),e=e[e.length-1],e=e==="*"?"*":Ao(e),e in dt||(dt[e]=[]),dt[e].push({keyup:u,keydown:d,scope:a,mods:o,shortcut:n[c],method:r,key:n[c],splitKey:p,element:l});if(typeof l<"u"&&window){if(!En.has(l)){const y=function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return u0(v,l)},S=function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;u0(v,l),ez(v)};En.set(l,{keydownListener:y,keyupListenr:S,capture:h}),zf(l,"keydown",y,h),zf(l,"keyup",S,h)}if(!Pa){const y=()=>{ct=[]};Pa={listener:y,capture:h},zf(window,"focus",y,h)}}}function tz(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(dt).forEach(r=>{dt[r].filter(o=>o.scope===t&&o.shortcut===e).forEach(o=>{o&&o.method&&o.method()})})}function hp(e){const t=Object.values(dt).flat();if(t.findIndex(n=>{let{element:o}=n;return o===e})<0){const{keydownListener:n,keyupListenr:o,capture:a}=En.get(e)||{};n&&o&&(ma(e,"keyup",o,a),ma(e,"keydown",n,a),En.delete(e))}if((t.length<=0||En.size<=0)&&(Object.keys(En).forEach(o=>{const{keydownListener:a,keyupListenr:l,capture:c}=En.get(o)||{};a&&l&&(ma(o,"keyup",l,c),ma(o,"keydown",a,c),En.delete(o))}),En.clear(),Object.keys(dt).forEach(o=>delete dt[o]),Pa)){const{listener:o,capture:a}=Pa;ma(window,"focus",o,a),Pa=null}}const jf={getPressedKeyString:KL,setScope:qx,getScope:ja,deleteScope:QL,getPressedKeyCodes:YL,getAllKeyCodes:ZL,isPressed:JL,filter:XL,trigger:tz,unbind:Gx,keyMap:za,modifier:Ur,modifierMap:Sa};for(const e in jf)Object.prototype.hasOwnProperty.call(jf,e)&&(Br[e]=jf[e]);if(typeof window<"u"){const e=window.hotkeys;Br.noConflict=t=>(t&&window.hotkeys===Br&&(window.hotkeys=e),Br),window.hotkeys=Br}Br.filter=()=>!0;function rz(e,t,r,n){r instanceof Array&&(n=r,r=void 0),n=n||[],r=r||{};const{preventDefault:o=!0}=r,a=H.useCallback((c,u)=>{o&&c.preventDefault(),setTimeout(()=>t(c,u))},n),l=()=>{Br.unbind(e,a)};H.useEffect(()=>(Br(e,r,a),l),[e,r,a])}const nz=e=>{const t=H.useRef(null);return H.useEffect(()=>{const r=n=>{t.current&&!t.current.contains(n.target)&&e(n)};return document.addEventListener("click",r,!0),()=>{document.removeEventListener("click",r,!0)}},[e]),t};function iz(e){const t=H.useRef();return H.useEffect(()=>{t.current=e},[e]),t.current}function oz(e){const t=H.useRef(e);return H.useEffect(()=>{t.current=e},[e]),t}function az(e){const t=H.useRef(null);return H.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}function sz(e){const[t,r]=H.useState(e),n=(a,l)=>{r(c=>({...c,features:{...c.features,[a]:{enabled:l}}}))},o=H.useCallback((...a)=>a.every(l=>{var c;return(c=t.features[l])==null?void 0:c.enabled}),[t.features]);return{setFeature:n,isFeatureEnabled:o}}const Yx=H.createContext(""),lz=e=>C.jsx(Yx.Provider,{value:e.value,children:e.children}),cz=()=>{const e=H.useContext(Yx);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function uz(e){const[t,r]=H.useState(e),n=H.useMemo(()=>fz(t,r),[]);return{state:t,actions:{...n,set:o=>{r(typeof o=="function"?o:a=>({...a,...o}))}}}}function fz(e,t=()=>{}){return Object.keys(e).reduce((n,o)=>({...n,[`set${Je.upperFirst(o)}`]:a=>t(l=>({...l,[o]:a}))}),{})}const dz=(e,t,r={})=>{r={timeout:200,...r};const n=H.useRef(),o=()=>{n.current&&(clearTimeout(n.current),n.current=null)};return H.useCallback((a,...l)=>{o(),t&&a.detail===1&&(n.current=setTimeout(()=>{t(a,...l)},r.timeout)),a.detail%2===0&&e(a,...l)},[t,e,r.timeout])};function Lt(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(process.env.NODE_ENV!=="production"){var o=yz[e],a=o?typeof o=="function"?o.apply(null,r):o:"unknown error nr: "+e;throw Error("[Immer] "+a)}throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(l){return"'"+l+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function xo(e){return!!e&&!!e[hr]}function Di(e){var t;return!!e&&((function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var o=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===wz})(e)||Array.isArray(e)||!!e[b0]||!!(!((t=e.constructor)===null||t===void 0)&&t[b0])||gp(e)||vp(e))}function Fa(e,t,r){r===void 0&&(r=!1),To(e)===0?(r?Object.keys:wp)(e).forEach((function(n){r&&typeof n=="symbol"||t(n,e[n],e)})):e.forEach((function(n,o){return t(o,n,e)}))}function To(e){var t=e[hr];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:gp(e)?2:vp(e)?3:0}function md(e,t){return To(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function pz(e,t){return To(e)===2?e.get(t):e[t]}function Kx(e,t,r){var n=To(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function hz(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function gp(e){return mz&&e instanceof Map}function vp(e){return bz&&e instanceof Set}function Ei(e){return e.o||e.t}function mp(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=xz(e);delete t[hr];for(var r=wp(t),n=0;n<r.length;n++){var o=r[n],a=t[o];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Ha(e,t){return t===void 0&&(t=!1),bp(e)||xo(e)||!Di(e)||(To(e)>1&&(e.set=e.add=e.clear=e.delete=gz),Object.freeze(e),t&&Fa(e,(function(r,n){return Ha(n,!0)}),!0)),e}function gz(){Lt(2)}function bp(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function sn(e){var t=Sz[e];return t||Lt(18,e),t}function f0(){return process.env.NODE_ENV==="production"||So||Lt(0),So}function Ff(e,t){t&&(sn("Patches"),e.u=[],e.s=[],e.v=t)}function rc(e){bd(e),e.p.forEach(vz),e.p=null}function bd(e){e===So&&(So=e.l)}function d0(e){return So={p:[],l:So,h:e,m:!0,_:0}}function vz(e){var t=e[hr];t.i===0||t.i===1?t.j():t.g=!0}function Hf(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||sn("ES5").S(t,e,n),n?(r[hr].P&&(rc(t),Lt(4)),Di(e)&&(e=nc(t,e),t.l||ic(t,e)),t.u&&sn("Patches").M(r[hr].t,e,t.u,t.s)):e=nc(t,r,[]),rc(t),t.u&&t.v(t.u,t.s),e!==Xx?e:void 0}function nc(e,t,r){if(bp(t))return t;var n=t[hr];if(!n)return Fa(t,(function(c,u){return p0(e,n,t,c,u,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return ic(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=mp(n.k):n.o,a=o,l=!1;n.i===3&&(a=new Set(o),o.clear(),l=!0),Fa(a,(function(c,u){return p0(e,n,o,c,u,r,l)})),ic(e,o,!1),r&&e.u&&sn("Patches").N(n,r,e.u,e.s)}return n.o}function p0(e,t,r,n,o,a,l){if(process.env.NODE_ENV!=="production"&&o===r&&Lt(5),xo(o)){var c=nc(e,o,a&&t&&t.i!==3&&!md(t.R,n)?a.concat(n):void 0);if(Kx(r,n,c),!xo(c))return;e.m=!1}else l&&r.add(o);if(Di(o)&&!bp(o)){if(!e.h.D&&e._<1)return;nc(e,o),t&&t.A.l||ic(e,o)}}function ic(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Ha(t,r)}function Wf(e,t){var r=e[hr];return(r?Ei(r):e)[t]}function h0(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function yd(e){e.P||(e.P=!0,e.l&&yd(e.l))}function Bf(e){e.o||(e.o=mp(e.t))}function wd(e,t,r){var n=gp(t)?sn("MapSet").F(t,r):vp(t)?sn("MapSet").T(t,r):e.O?(function(o,a){var l=Array.isArray(o),c={i:l?1:0,A:a?a.A:f0(),P:!1,I:!1,R:{},l:a,t:o,k:null,o:null,j:null,C:!1},u=c,d=xd;l&&(u=[c],d=_a);var p=Proxy.revocable(u,d),h=p.revoke,g=p.proxy;return c.k=g,c.j=h,g})(t,r):sn("ES5").J(t,r);return(r?r.A:f0()).p.push(n),n}function Zx(e){return xo(e)||Lt(22,e),(function t(r){if(!Di(r))return r;var n,o=r[hr],a=To(r);if(o){if(!o.P&&(o.i<4||!sn("ES5").K(o)))return o.t;o.I=!0,n=g0(r,a),o.I=!1}else n=g0(r,a);return Fa(n,(function(l,c){o&&pz(o.t,l)===c||Kx(n,l,t(c))})),a===3?new Set(n):n})(e)}function g0(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return mp(e)}var v0,So,yp=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",mz=typeof Map<"u",bz=typeof Set<"u",m0=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Xx=yp?Symbol.for("immer-nothing"):((v0={})["immer-nothing"]=!0,v0),b0=yp?Symbol.for("immer-draftable"):"__$immer_draftable",hr=yp?Symbol.for("immer-state"):"__$immer_state",yz={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},wz=""+Object.prototype.constructor,wp=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,xz=Object.getOwnPropertyDescriptors||function(e){var t={};return wp(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},Sz={},xd={get:function(e,t){if(t===hr)return e;var r=Ei(e);if(!md(r,t))return(function(o,a,l){var c,u=h0(a,l);return u?"value"in u?u.value:(c=u.get)===null||c===void 0?void 0:c.call(o.k):void 0})(e,r,t);var n=r[t];return e.I||!Di(n)?n:n===Wf(e.t,t)?(Bf(e),e.o[t]=wd(e.A.h,n,e)):n},has:function(e,t){return t in Ei(e)},ownKeys:function(e){return Reflect.ownKeys(Ei(e))},set:function(e,t,r){var n=h0(Ei(e),t);if(n!=null&&n.set)return n.set.call(e.k,r),!0;if(!e.P){var o=Wf(Ei(e),t),a=o==null?void 0:o[hr];if(a&&a.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(hz(r,o)&&(r!==void 0||md(e.t,t)))return!0;Bf(e),yd(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return Wf(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Bf(e),yd(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Ei(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){Lt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Lt(12)}},_a={};Fa(xd,(function(e,t){_a[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),_a.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Lt(13),_a.set.call(this,e,t,void 0)},_a.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Lt(14),xd.set.call(this,e[0],t,r,e[0])};var _z=(function(){function e(r){var n=this;this.O=m0,this.D=!0,this.produce=function(o,a,l){if(typeof o=="function"&&typeof a!="function"){var c=a;a=o;var u=n;return function(v){var b=this;v===void 0&&(v=c);for(var m=arguments.length,w=Array(m>1?m-1:0),x=1;x<m;x++)w[x-1]=arguments[x];return u.produce(v,(function(k){var E;return(E=a).call.apply(E,[b,k].concat(w))}))}}var d;if(typeof a!="function"&&Lt(6),l!==void 0&&typeof l!="function"&&Lt(7),Di(o)){var p=d0(n),h=wd(n,o,void 0),g=!0;try{d=a(h),g=!1}finally{g?rc(p):bd(p)}return typeof Promise<"u"&&d instanceof Promise?d.then((function(v){return Ff(p,l),Hf(v,p)}),(function(v){throw rc(p),v})):(Ff(p,l),Hf(d,p))}if(!o||typeof o!="object"){if((d=a(o))===void 0&&(d=o),d===Xx&&(d=void 0),n.D&&Ha(d,!0),l){var y=[],S=[];sn("Patches").M(o,d,y,S),l(y,S)}return d}Lt(21,o)},this.produceWithPatches=function(o,a){if(typeof o=="function")return function(d){for(var p=arguments.length,h=Array(p>1?p-1:0),g=1;g<p;g++)h[g-1]=arguments[g];return n.produceWithPatches(d,(function(y){return o.apply(void 0,[y].concat(h))}))};var l,c,u=n.produce(o,a,(function(d,p){l=d,c=p}));return typeof Promise<"u"&&u instanceof Promise?u.then((function(d){return[d,l,c]})):[u,l,c]},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){Di(r)||Lt(8),xo(r)&&(r=Zx(r));var n=d0(this),o=wd(this,r,void 0);return o[hr].C=!0,bd(n),o},t.finishDraft=function(r,n){var o=r&&r[hr];process.env.NODE_ENV!=="production"&&(o&&o.C||Lt(9),o.I&&Lt(10));var a=o.A;return Ff(a,n),Hf(void 0,a)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!m0&&Lt(20),this.O=r},t.applyPatches=function(r,n){var o;for(o=n.length-1;o>=0;o--){var a=n[o];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}o>-1&&(n=n.slice(o+1));var l=sn("Patches").$;return xo(r)?l(r,n):this.produce(r,(function(c){return l(c,n)}))},e})(),gr=new _z,Ez=gr.produce;gr.produceWithPatches.bind(gr);gr.setAutoFreeze.bind(gr);gr.setUseProxies.bind(gr);gr.applyPatches.bind(gr);gr.createDraft.bind(gr);gr.finishDraft.bind(gr);function kz(e){var t=H.useState(function(){return Ha(typeof e=="function"?e():e,!0)}),r=t[1];return[t[0],H.useCallback(function(n){r(typeof n=="function"?Ez(n):Ha(n))},[])]}const Oz=process.env.NODE_ENV==="development",Vf=Oz&&typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null,Az=(e,t,r)=>{const[n,o]=kz(e),a=H.useRef(null);H.useEffect(()=>{var u;return r&&(a.current=Vf==null?void 0:Vf.connect({name:r,trace:!0}),(u=a.current)==null||u.init(e)),()=>{var d,p;(p=(d=a.current)==null?void 0:d.disconnect)==null||p.call(d)}},[]);const l=t&&typeof t=="object"?t:{},c=H.useMemo(()=>Object.keys(l).reduce((u,d)=>({...u,[d]:p=>(o(h=>{var g;l[d](h,p),(g=a.current)==null||g.send({type:l[d].name},Zx(h))}),c)}),{}),[o]);return{state:n,dispatch:c}};function Tn(e){return typeof e=="function"}function Jx(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Uf=Jx(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
248
+ `+r.map(function(n,o){return o+1+") "+n.toString()}).join(`
249
+ `):"",this.name="UnsubscriptionError",this.errors=r}});function Sd(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Ac=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,o,a;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var c=Qf(l),u=c.next();!u.done;u=c.next()){var d=u.value;d.remove(this)}}catch(v){t={error:v}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}else l.remove(this);var p=this.initialTeardown;if(Tn(p))try{p()}catch(v){a=v instanceof Uf?v.errors:[v]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var g=Qf(h),y=g.next();!y.done;y=g.next()){var S=y.value;try{y0(S)}catch(v){a=a??[],v instanceof Uf?a=ql(ql([],ed(a)),ed(v.errors)):a.push(v)}}}catch(v){n={error:v}}finally{try{y&&!y.done&&(o=g.return)&&o.call(g)}finally{if(n)throw n.error}}}if(a)throw new Uf(a)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)y0(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&Sd(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Sd(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),Qx=Ac.EMPTY;function e1(e){return e instanceof Ac||e&&"closed"in e&&Tn(e.remove)&&Tn(e.add)&&Tn(e.unsubscribe)}function y0(e){Tn(e)?e():e.unsubscribe()}var Tz={Promise:void 0},Rz={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,ql([e,t],ed(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Cz(e){Rz.setTimeout(function(){throw e})}function w0(){}function Hl(e){e()}var t1=(function(e){gc(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,e1(r)&&r.add(n)):n.destination=Nz,n}return t.create=function(r,n,o){return new _d(r,n,o)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(Ac),Pz=(function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){xl(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){xl(n)}else xl(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){xl(r)}},e})(),_d=(function(e){gc(t,e);function t(r,n,o){var a=e.call(this)||this,l;return Tn(r)||!r?l={next:r??void 0,error:n??void 0,complete:o??void 0}:l=r,a.destination=new Pz(l),a}return t})(t1);function xl(e){Cz(e)}function Iz(e){throw e}var Nz={closed:!0,next:w0,error:Iz,complete:w0},Mz=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function Dz(e){return e}function $z(e){return e.length===0?Dz:e.length===1?e[0]:function(r){return e.reduce(function(n,o){return o(n)},r)}}var x0=(function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var o=this,a=zz(t)?t:new _d(t,r,n);return Hl(function(){var l=o,c=l.operator,u=l.source;a.add(c?c.call(a,u):u?o._subscribe(a):o._trySubscribe(a))}),a},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=S0(r),new r(function(o,a){var l=new _d({next:function(c){try{t(c)}catch(u){a(u),l.unsubscribe()}},error:a,complete:o});n.subscribe(l)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[Mz]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return $z(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=S0(t),new t(function(n,o){var a;r.subscribe(function(l){return a=l},function(l){return o(l)},function(){return n(a)})})},e.create=function(t){return new e(t)},e})();function S0(e){var t;return(t=e??Tz.Promise)!==null&&t!==void 0?t:Promise}function Lz(e){return e&&Tn(e.next)&&Tn(e.error)&&Tn(e.complete)}function zz(e){return e&&e instanceof t1||Lz(e)&&e1(e)}var jz=Jx(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),cn=(function(e){gc(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new _0(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new jz},t.prototype.next=function(r){var n=this;Hl(function(){var o,a;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var l=Qf(n.currentObservers),c=l.next();!c.done;c=l.next()){var u=c.value;u.next(r)}}catch(d){o={error:d}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(o)throw o.error}}}})},t.prototype.error=function(r){var n=this;Hl(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var o=n.observers;o.length;)o.shift().error(r)}})},t.prototype.complete=function(){var r=this;Hl(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,o=this,a=o.hasError,l=o.isStopped,c=o.observers;return a||l?Qx:(this.currentObservers=null,c.push(r),new Ac(function(){n.currentObservers=null,Sd(c,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,a=n.thrownError,l=n.isStopped;o?r.error(a):l&&r.complete()},t.prototype.asObservable=function(){var r=new x0;return r.source=this,r},t.create=function(r,n){return new _0(r,n)},t})(x0),_0=(function(e){gc(t,e);function t(r,n){var o=e.call(this)||this;return o.destination=r,o.source=n,o}return t.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},t.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:Qx},t})(cn),r1=(e=>(e.RELOAD="reload",e.RECOMPUTE="recompute",e))(r1||{}),n1=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(n1||{});const Fz=new cn,Hz=new cn,i1=new cn;var o1=(e=>(e.SAVE_ALL="save-all",e))(o1||{});const Wz=new cn;var a1=(e=>(e.WILL_SAVE="will-save",e.DID_SAVE="did-save",e.WILL_CREATE="will-create",e.WILL_RENAME="will-rename",e.WILL_DELETE="will-delete",e.DID_CREATE="did-create",e.DID_RENAME="did-rename",e.DID_DELETE="did-delete",e.DIAGNOSTIC_REFRESH="diagnostic-refresh",e))(a1||{});const Bz=new cn;var s1=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(s1||{});const Vz=new cn,Uz=new cn;var Wa=(e=>(e.EVENT_STARTED="event-started",e.EVENT_ENDED="event-ended",e.EVENT_EMITED="event-emited",e.REQUEST_SENT="request-sent",e))(Wa||{});const oc=new cn,qz=new cn,xp=255;var Sp=(e=>(e.EMPTY="Please enter a valid name",e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${xp} characters (including extension)`,e.SHOULD_START_WITH_LETTER="The name can only start with a letter or a Japanese character",e.INVALID="Invalid name",e))(Sp||{});function Tc(e,t){const r=t?e.replace(/\.[^.]+$/,""):e;if(e==="")throw new Error("Please enter a valid name");if(e.length>xp)throw new Error(Sp.LENGTH_EXCEEDED);if(!/^[a-zA-Z\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF]/.test(r))throw new Error("The name can only start with a letter or a Japanese character");if(!/^[\w\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF-]+$/i.test(r))throw new Error("Invalid name");return!0}function Gz(e){if(!e)return null;if(typeof e=="string")try{Tc(e)}catch(t){return t.message}}function Yz(e,t){let r="";if(["array","object"].includes(t))try{const n=JSON.parse(e);t==="array"&&(!Array.isArray(n)||!Je.isObject(n))&&(r=`Invalid value for type ${t}`),t==="object"&&(!Je.isObject(n)||Array.isArray(n))&&(r=`Invalid value for type ${t}`)}catch{r=`Invalid value for type ${t}`}return t==="date"&&(new RegExp(/^(0?[1-9]|[12][0-9]|3[01])[/-](0?[1-9]|1[012])[/-]\d{4}$/).test(e)||(r=`Invalid value for type ${t}`)),t==="number"&&isNaN(+e)&&(r=`Invalid value for type ${t}`),["boolean","bool"].includes(t)&&typeof e!="boolean"&&!["true","false"].includes(e)&&(r=`Invalid value for type ${t}`),r}function Kz(){return{PLACEHOLDER_PREFIX:`@!MASK_${Date.now().toString(36)+Math.random().toString(36).substring(2,8)}_`,counter:0}}function Rc(e){const{PLACEHOLDER_PREFIX:t,counter:r}=Kz();let n=r;const o=[],a="@!",l=p=>(o.push(p),`${t}${n++}${a}`);let c=e.replace(/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,l);c=c.replace(/([\{\s]\s*\w+\s*)(:\s*\d+)/g,(p,h,g)=>h+l(g)),c=c.replace(/:\d{2}:\d{2}/g,l);const u=new RegExp(":(?!4D\\.\\w+)[CPK]?\\d+","g");let d=c.replace(u,"");for(let p=0;p<o.length;p++){const g=`${t}${p}${a}`.replace(/([.*+?^${}()|[\]\\])/g,"\\$1"),y=new RegExp(g,"g");d=d.replace(y,o[p])}return d}var _p=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(_p||{});const Qn={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms",CLASSES_FOLDER:"ClassesFolder",REPORTS:"Reports",DEBUGGER:"Debugger"};var ft=(e=>(e.FOLDER="folder",e.WEBFORM="webform",e.REPORT="report",e.METHOD="method",e.CLASS="class",e.CLASS_FOLDER="classfolder",e.DEBUGGER="debugger",e.WELCOME="welcome",e.SETTINGS="settings",e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.DEBUGGERS="debugger",e.MODELS="models",e.ROLES="roles",e.HTTP_HANDLERS="http-handlers",e.LOCALIZATION="localization",e.MODEL="model",e.DATA_EXPLORER="dataexplorer",e.MOBILE="mobile",e.MOBILEFORM="mform",e.FILE="file",e.TEXT="text",e))(ft||{}),oi=(e=>(e.GET_FOLDER="getFolder",e.GET="get",e.SAVE="save",e.RENAME="rename",e.DROP="drop",e.ADD_FOLDER="addFolder",e.CREATE_FOLDER="mkdir",e.RENAME_FOLDER="renameFolder",e.DROP_FOLDER="dropFolder",e.REMOVE_ITEM="removeItem",e.MOVE_ITEM="moveItem",e.GET_INFO="getInfo",e.SAVE_CONTENT="save",e.UPDATE_CHECK="update:check",e.UPDATE_INSTALL="update:install",e.GET_APP_SETTINGS="getWebServerInfo",e.GET_FILE_CONTENT="getFileContent",e.SET_FILE_CONTENT="setFileContent",e.GET_FILES_INFO="getFilesInfo",e))(oi||{}),Ep=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(Ep||{});const l1="roles.json",c1="qodlyApp.json",Zz="model.4DModel",u1="HTTPHandlers.json",f1="Shared/i18n.json";function Xz(e){const t=kp(e);switch(t){case ft.SETTINGS:return{filename:"Settings",type:t};case ft.HTTP_HANDLERS:return{filename:"HTTP Handlers",type:t};case ft.ROLES:return{filename:"Roles & Privileges",type:t};case ft.LOCALIZATION:return{filename:"Localization",type:t};case ft.MODEL:return{filename:"Model",type:t};default:{const r=e.split("/"),[n]=r[1].split(".");return{filename:n,type:t}}}}function kp(e){const t=e.split("."),r=t.pop(),n=t.join(".").split("/")[0];switch(!0){case r==="4DModel":return ft.MODEL;case r==="WebForm":return ft.WEBFORM;case(["4dm","4qs","4qm"].includes(r)&&n===Qn.METHODS):return ft.METHOD;case(["4dm","4qs","4qm"].includes(r)&&n===Qn.CLASSES):return ft.CLASS;case e===l1:return ft.ROLES;case e===u1:return ft.HTTP_HANDLERS;case e===c1:return ft.SETTINGS;case e===f1:return ft.LOCALIZATION;default:return ft.TEXT}}function Jz(e,t=!1){switch(e){case Qn.REPORTS:case"report":return"QoDoc";case Qn.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case Qn.CLASSES:case Qn.METHODS:return t?"4qs":"4dm";default:return""}}function Qz(e,t=""){const r=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return r?r[1]:t}function e3(e,t,r){switch(t){case ft.MOBILEFORM:return`${e}.MForm`;case ft.WEBFORM:return`${e}.WebForm`;case ft.REPORT:return`${e}.QoDoc`;case ft.METHOD:case ft.CLASS:return`${e}.${r?"4qs":"4dm"}`;default:return e}}class d1{constructor(){this.current=Promise.resolve()}lock(){let t;const r=new Promise(o=>{t=o}),n=this.current.then(()=>t);return this.current=r,n}}function Op(){const e=new d1;return async t=>{const r=await e.lock();try{const n=await t();return r(),n}catch(n){console.error(n),r();return}}}const p1=Je.curry((e,t,r)=>e&&Je.get(r,e)===t),t3=Je.curry((e,t,r)=>Je.get(r,e)!==t),r3=Je.curry((e,t)=>Je.get(t,"id")!==e),n3=Je.curry((e,t)=>Je.get(t,"id")===e),i3=Je.curry((e,t)=>Je.get(t,"path")===e);function o3(e="id",t,r){return r.findIndex(p1(e,t))!==-1}function a3(e,t){return e.localeCompare(t,void 0,{numeric:!0})}function s3(e){if(!e)return"";const{id:t,namespace:r}=e;return r&&t?`${r}:${t}`:t}function h1(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function l3(e){return e.type==="object"}function g1(e){var t;return e.kind==="relatedEntities"||((t=e.type)==null?void 0:t.includes("Selection"))||e.behavior==="relatedEntities"}function v1(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!h1(e)}function c3(e){return g1(e)||v1(e)}function u3(e){return e.applyTo==="dataStore"}function f3(e){return e.applyTo==="dataClass"}function d3(e){return e.applyTo==="entity"}function p3(e){return e.applyTo==="entityCollection"}function h3(e){return e.type==="entity"}function g3(e){return e.type==="entitysel"}function m1(e){return e.dataType==="array"}function b1(e){return e.dataType==="object"}function y1(e){return e.type==="scalar"}function v3(e){return m1(e)||b1(e)||y1(e)}const m3=e=>e!=null&&e.type==="entity",b3=e=>e.type==="entitysel",y3=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",w3=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",x3=e=>e.type==="scalar"&&e.dataType==="date";function S3(){return new Promise((e,t)=>{window.addEventListener("bundle:ready",r=>r.data?e():t(r.caughtErr))})}function _3(){return new Promise(e=>{window.addEventListener("i18n:ready",()=>e())})}var Ba=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(Ba||{}),w1=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(w1||{}),Ap=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(Ap||{});const E3={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function k3(e){var a;let t={};try{const l=((a=e.match(/\/\/%attributes = (.*)/))==null?void 0:a[1])||"";t=JSON.parse(l)}catch{}const{published4DMobile:r,...n}=t;return{...{invisible:!1,shared:!1,executedOnServer:!1,preemptive:Ba.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!r,publishedRestOptions:r||{table:"",scope:Ap.table}},...n}}function x1(e){const t={};return e.invisible&&(t.invisible=!0),e.shared&&(t.shared=!0),e.executedOnServer&&(t.executedOnServer=!0),e.preemptive&&[Ba.capable,Ba.incapable].includes(e.preemptive)&&(t.preemptive=e.preemptive),e.publishedSoap&&(t.publishedSoap=!0,e.publishedWsdl&&(t.publishedWsdl=!0)),e.publishedWeb&&(t.publishedWeb=!0),e.publishedSql&&(t.publishedSql=!0),e.publishedRest&&e.publishedRestOptions&&(t.published4DMobile=e.publishedRestOptions),JSON.stringify(t).replace(/"(true|false)"/g,"$1")}function O3(e,t,r=!1){const n=Je.isString(t)?t:x1(t);if(!r&&S1(e))return e;const o=_1(e);return`//%attributes = ${n}\r
250
+ ${o}`}function S1(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function _1(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const A3=()=>Ii.uuid().replaceAll("-","").toUpperCase(),T3=e=>e.toLowerCase().replace(/[^a-z0-9]/g,"_").replace(/_{2,}/g,"_").replace(/^_|_$/g,"");var Ge=(e=>(e.DATACLASS="dataclass",e.METHOD="method",e.ATTRIBUTE="attribute",e.DATASTORE="datastore",e.SINGLETON="singleton",e.SINGLETON_METHOD="singletonMethod",e))(Ge||{}),ot=(e=>(e.DS_METHOD="dsMethod",e.DATACLASS_METHOD="dataclassMethod",e.ENTITY_METHOD="entityMethod",e.ENTITY_SEL_METHOD="entityselMethod",e))(ot||{});const R3=[Ge.DATASTORE,Ge.DATACLASS,Ge.ATTRIBUTE,Ge.SINGLETON_METHOD,Ge.SINGLETON,Ge.METHOD,ot.DS_METHOD,ot.DATACLASS_METHOD,ot.ENTITY_METHOD,ot.ENTITY_SEL_METHOD],E0=e=>[ot.DS_METHOD,ot.ENTITY_METHOD,ot.DATACLASS_METHOD].includes(e)?Ge.METHOD:e,ac="guest",Tp=[{key:"read",label:"Read",canApplyTo:[Ge.DATASTORE,Ge.DATACLASS,Ge.ATTRIBUTE]},{key:"create",label:"Create",canApplyTo:[Ge.DATASTORE,Ge.DATACLASS,Ge.ATTRIBUTE]},{key:"update",label:"Update",canApplyTo:[Ge.DATASTORE,Ge.DATACLASS,Ge.ATTRIBUTE]},{key:"drop",label:"Delete",canApplyTo:[Ge.DATASTORE,Ge.DATACLASS,Ge.ATTRIBUTE]},{key:"execute",label:"Execute",canApplyTo:[Ge.DATASTORE,Ge.DATACLASS,Ge.METHOD,ot.DS_METHOD,ot.DATACLASS_METHOD,ot.ENTITY_METHOD,ot.ENTITY_SEL_METHOD,Ge.SINGLETON,Ge.SINGLETON_METHOD]},{key:"promote",label:"Promote",canApplyTo:[Ge.METHOD,ot.DS_METHOD,ot.DATACLASS_METHOD,ot.ENTITY_METHOD,ot.ENTITY_SEL_METHOD,Ge.SINGLETON_METHOD]}];function Ir(e,...t){return Array.from(new Set([...e,...t]))}function E1(e){const t={},r=new Map;e.forEach(u=>{const d=u.id||Ii.generate();t[d]={...u,id:d,parents:[],includes:Ir(u.includes||[]),resources:[]},r.set(u.privilege,d)}),Object.entries(t).forEach(([u,d])=>{const p=d.includes.map(h=>{const g=r.get(h);return g?(t[g].parents=Ir(t[g].parents,g),g):""}).filter(Boolean);t[u]={...d,includes:p}});const n=k1(t),o=new Set;function a(u){o.add(u.id),u.includes=u.includes.filter(d=>!o.has(d))}if(n.forEach(a),n.forEach(u=>u.parents=[]),n.forEach(u=>{u.includes.forEach(d=>t[d].parents.push(u.id))}),Object.values(t).find(({privilege:u})=>u===ac))return t;const c=Ii.generate();return{[c]:{id:c,privilege:ac,includes:[],parents:[],resources:[]},...t}}function k1(e){return Object.values(e).sort((t,r)=>t.parents.length-r.parents.length)}function Cc(e,t){const r=t[e];let n=[];return r&&r.parents.forEach(o=>{n=Ir(n,...Cc(o,t),o)}),n}function sc(e,t){const r=t[e];let n=[];return r&&r.includes.forEach(o=>{n=Ir(n,...sc(o,t),o)}),n}function C3(e,t){const r=t[e];if(!r)return[];const n=[e,...Cc(e,t),...r.includes];return Object.keys(t).filter(o=>!n.includes(o))}function P3(e,t){return t[e]?Object.keys(t).reduce((n,o)=>o===e?n:{...n,[o]:{...t[o],parents:t[o].parents.filter(a=>a!==e),includes:t[o].includes.filter(a=>a!==e)}},{}):t}function I3(e,t,r){const n=r[e],o=r[t];return!n||!o?r:{...r,[e]:{...r[e],includes:Ir(n.includes,t)},[t]:{...r[t],parents:Ir(o.parents,e)}}}function N3(e,t,r){const n=r[e],o=r[t];return!n||!o?r:{...r,[e]:{...r[e],includes:r[e].includes.filter(a=>a!==t)},[t]:{...r[t],parents:r[t].parents.filter(a=>a!==e)}}}function M3(e,t){Tc(e),Object.entries(t).forEach(([,{privilege:n}])=>{if(e.toLowerCase()===n.toLowerCase())throw new Error(`There's already a Privilege with the name ${e}`)});const r=Ii.generate();return{[r]:{id:r,privilege:e,includes:[],parents:[],resources:[]},...t}}function D3(e,t,r){if(!e)throw new Error("Please enter a name");if(!r[t])throw new Error("Invalid privilege");return Object.entries(r).forEach(([,{privilege:n,id:o}])=>{if(e.toLowerCase()===n.toLowerCase()&&t!==o)throw new Error(`There's already a Privilege with the name ${e}`)}),{...r,[t]:{...r[t],privilege:e}}}function $3(e,t){return e.map(r=>Cn(r,t))}function Cn(e,t){return t[e]?t[e]:null}function O1({applyTo:e,type:t,...r}){return Object.entries(r).reduce((n,[o,a])=>{const l=Je.find(Tp,["key",o]);return!l||!l.canApplyTo.includes(t)||(typeof a=="string"?a.split(","):a).forEach(u=>{n[u]=Ir(n[u]||[],o)}),n},{})}const k0=(e,t=!1)=>["read","create","update","delete"].includes(e.toLowerCase())?`All ${t?"dataclasses and ":""}attributes have the '${e.toLowerCase()}' permission`:e.toLowerCase()==="execute"?`All functions defined ${t?"through the model (DataStore, Dataclasses, Entity selections, Entities) have the execute permission":"on this Dataclass, Entity selection class, Entity class have the execute permission"}`:`All ${t?"dataclasses, ":""}attributes and functions have the '${e.toLowerCase()}' permission`;function Rp(e){return{permissions:Tp.filter(({canApplyTo:t})=>t.includes(e.type)).map(({key:t,label:r})=>{const n={name:t,from:[]};switch(e.type){case Ge.DATASTORE:return{...n,info:k0(r,!0)};case Ge.DATACLASS:return{...n,info:k0(r)};default:return n}}),resource:e.applyTo,type:e.type}}function A1(e,t){const r=T1(t),n={};return e.filter(({type:o})=>R3.includes(o)).forEach(o=>{const a=O1(o);Object.entries(a).forEach(([l,c])=>{var p;const u=(p=r[l])==null?void 0:p.id;if(!u)return;n[u]=n[u]||{...t[u]};let d=Je.find(n[u].resources,{resource:o.applyTo,type:o.type});d||(d=Rp(o),n[u].resources.push(d)),d.permissions=d.permissions.map(h=>({...h,checked:h.checked||c.includes(h.name)}))})}),{...t,...n}}function T1(e){return Object.values(e).reduce((t,r)=>({...t,[r.privilege]:r}),{})}function L3(e){var r;if(!e)throw new Error("Invalid roles data");const t=E1(e.privileges||[]);return{forceLogin:(e==null?void 0:e.forceLogin)||!1,restrictedByDefault:(e==null?void 0:e.restrictedByDefault)||!1,privileges:A1(((r=e==null?void 0:e.permissions)==null?void 0:r.allowed)||[],t),roles:((e==null?void 0:e.roles)||[]).map(({id:n=Ii.generate(),role:o,privileges:a=[]})=>({id:n,role:o,privileges:Ir(a).map(l=>{var c;return(c=Object.values(t).find(({privilege:u})=>u===l))==null?void 0:c.id}).filter(Boolean)})).reduce((n,o)=>({...n,[o.id]:{...o}}),{})}}function z3(e){const t=Object.values(e.privileges).filter(({includes:n})=>n.length===0).map(({id:n})=>n),r=[...t,...t.map(n=>Cc(n,e.privileges).reverse())].flat().filter((n,o,a)=>a.indexOf(n)===o).map(n=>e.privileges[n]);return{forceLogin:e.forceLogin||!1,restrictedByDefault:e.restrictedByDefault||!1,permissions:{allowed:Object.values(e.privileges).reduce((n,o)=>(o.resources.forEach(({permissions:a,resource:l,type:c})=>{let u=Je.find(n,{applyTo:l,type:E0(c)});u||(u={applyTo:l,type:E0(c)},n.push(u)),a.forEach(({name:d,checked:p})=>{p&&u&&(u[d]=u[d]||[],u[d].push(o.privilege))})}),n),[])},privileges:r.filter(({privilege:n})=>n!==ac).map(({id:n,includes:o,privilege:a})=>({id:n,privilege:a,includes:o.map(l=>e.privileges[l].privilege)})),roles:Object.values(e.roles).map(n=>({...n,privileges:n.privileges.map(o=>{var a;return(a=e.privileges[o])==null?void 0:a.privilege}).filter(Boolean)}))}}function j3(e,t){const r=t[e],n={children:[],links:[],parents:[],selected:e};if(!r)return n;function o(c,u,d=[]){const p=c.reduce((h,g)=>[...h,...t[g][u]],[]);return p.length===0?d:(d.push(p),o(p,u,d))}function a(c){const u=[],d=[];for(let p=c.length-1;p>=0;p-=1){const h=c[p].filter(g=>u.includes(g)?!1:(u.push(g),!0));h.length>0&&d.unshift(Ir(h))}return d}function l(c,u){const d=[];return c.reduce((p,h)=>(h.forEach(g=>{t[g][u==="parents"?"includes":"parents"].forEach(S=>{d.includes(S)&&p.push(u==="parents"?{source:g,target:S}:{source:S,target:g})}),d.push(g)}),p),[])}return n.children=o([e],"includes"),n.children=a(n.children),n.parents=o([e],"parents"),n.parents=a(n.parents),n.links=[...l([[e],...n.parents],"parents"),...l([[e],...n.children],"includes")],n}function F3(e,t,r){const n=Cn(e,r);if(!n||Je.find(n.resources,{resource:t.applyTo,type:t.type}))return r;const o={...n,resources:[...n.resources,Rp(t)]};return{...r,[e]:o}}function H3(e,t,r){const n=Cn(e,r);if(!n)return r;const o={...n,resources:n.resources.filter(({resource:a,type:l})=>a!==t.applyTo||l!==t.type)};return{...r,[e]:o}}function W3(e,t){const r=Object.entries(e).map(([n,o])=>{const a=Cn(n,t);if(!a)return{[n]:t[n]};const l={...a,resources:a.resources.filter(({resource:c,type:u})=>!o.some(d=>d.applyTo===c&&d.type===u))};return{[n]:l}}).reduce((n,o)=>({...n,...o}),{});return{...t,...r}}function B3(e,t){const r=Cn(e,t);if(!r)return t;const n={...r,resources:r.resources.filter(o=>o.permissions.some(a=>a.from.length)).map(o=>({...o,permissions:o.permissions.map(a=>({...a,checked:!1}))}))};return{...t,[e]:n}}function V3(e,t,r,n){const o=Cn(e,n);if(!o)return n;const l=Je.find(o.resources,{type:t.type,resource:t.resource})?{...o,resources:o.resources.map(c=>c.type===t.type&&c.resource===t.resource?{...c,permissions:t.permissions.map(u=>u.name===r.name?{...u,checked:!u.checked,from:[]}:u)}:c)}:{...o,resources:[...o.resources,{...t,permissions:t.permissions.map(c=>({...c,checked:r.name===c.name,from:[]}))}]};return{...n,[e]:l}}function U3(e,t){var u;const r=R1(e,t)||[],n=((u=Cn(e,t))==null?void 0:u.resources)||[],l=([...r,...n].filter(({type:d})=>[ot.DS_METHOD,ot.DATACLASS_METHOD,ot.ENTITY_METHOD,ot.ENTITY_SEL_METHOD].includes(d))||[]).map(({resource:d})=>d);return Object.entries(t).reduce((d,[p,{resources:h}])=>(h.filter(({resource:g,type:y})=>[ot.DS_METHOD,ot.DATACLASS_METHOD,ot.ENTITY_METHOD,ot.ENTITY_SEL_METHOD].includes(y)&&l.includes(g)).forEach(({permissions:g,resource:y})=>{var v;((v=g.find(({name:b})=>b==="promote"))==null?void 0:v.checked)&&(d[y]=Ir(d[y]||[],p))}),d),{})}function R1(e,t){var l;const r=Cn(e,t);if(!r)return[];const n=(l=Object.values(t).find(c=>c.privilege===ac))==null?void 0:l.id;return(n&&n!==e?Ir(sc(e,t),n):sc(e,t)).reduce((c,u)=>(t[u].resources.forEach(p=>{if(p.permissions.filter(({checked:y,name:S})=>y&&S!=="promote").length===0)return;const g=Je.find(c,{type:p.type,resource:p.resource});if(!g){c.push({...p,permissions:p.permissions.map(y=>({...y,from:y.checked?[u]:[],checked:!1}))});return}g.permissions=g.permissions.map((y,S)=>{let{from:v=[]}=y;return p.permissions[S].checked&&!v.includes(u)&&(v=[...v,u]),{...y,from:v,checked:y.checked}})}),c),Je.clone(r.resources.map(c=>({...c,permissions:c.permissions.map(({checked:u,...d})=>({...d,checked:!!u}))}))))}const q3=(e,t,r)=>{const n={id:e,role:t,privileges:[]};return{...r,[n.id]:n}},G3=(e,t)=>t[e]?Object.values(t).reduce((r,n)=>e===n.id||n.role===""?r:{...r,[n.id]:n},{}):t,Y3=(e,t)=>{if(Tc(e.role),Object.values(t).find(n=>n.role===e.role))throw new Error(`a role with the name ${e.role} already exists`);return Object.values(t).reduce((n,o)=>e.id===o.id?{...n,[e.id]:e}:{...n,[o.id]:o},{})},_t="/rest/$designer",es="/rest/$designer-ext";function K3(...e){return t=>{if(e.length===0)return t;const r={...t};return e.forEach(n=>{typeof r[n]=="string"&&(r[n]=new Date(r[n]))}),r}}class Ed extends Error{constructor(t,r,n){super(),this.url=t,this.response=r,this.data=n}log(){console.error("Error while sending the request",this)}}async function Ye(e,t){var o;oc.next({action:Wa.REQUEST_SENT});const r=await window.fetch(e,t);if(/401/.test(r.status.toString())&&(window.location.href="/login.html?redirect=studio"),/^[45]/.test(r.status.toString())){let a;try{const l=await r.json();((o=l==null?void 0:l.__ERROR)==null?void 0:o.some(u=>u.errCode===1651))&&oc.next({action:Wa.EVENT_EMITED,payload:{eventName:"onsessionexpired"}}),a=new Ed(e,r,l)}catch{a=new Ed(e,r)}throw a.log(),a}return await r.json()}function Z3(e){return oc.next({action:Wa.REQUEST_SENT}),e}var Jr={},Dt={},O0;function Oi(){if(O0)return Dt;O0=1;var e=Dt.ValidationError=function(v,b,m,w,x,k){if(Array.isArray(w)?(this.path=w,this.property=w.reduce(function(R,F){return R+c(F)},"instance")):w!==void 0&&(this.property=w),v&&(this.message=v),m){var E=m.$id||m.id;this.schema=E||m}b!==void 0&&(this.instance=b),this.name=x,this.argument=k,this.stack=this.toString()};e.prototype.toString=function(){return this.property+" "+this.message};var t=Dt.ValidatorResult=function(v,b,m,w){this.instance=v,this.schema=b,this.options=m,this.path=w.path,this.propertyPath=w.propertyPath,this.errors=[],this.throwError=m&&m.throwError,this.throwFirst=m&&m.throwFirst,this.throwAll=m&&m.throwAll,this.disableFormat=m&&m.disableFormat===!0};t.prototype.addError=function(v){var b;if(typeof v=="string")b=new e(v,this.instance,this.schema,this.path);else{if(!v)throw new Error("Missing error detail");if(!v.message)throw new Error("Missing error message");if(!v.name)throw new Error("Missing validator type");b=new e(v.message,this.instance,this.schema,this.path,v.name,v.argument)}if(this.errors.push(b),this.throwFirst)throw new n(this);if(this.throwError)throw b;return b},t.prototype.importErrors=function(v){typeof v=="string"||v&&v.validatorType?this.addError(v):v&&v.errors&&(this.errors=this.errors.concat(v.errors))};function r(S,v){return v+": "+S.toString()+`
251
+ `}t.prototype.toString=function(v){return this.errors.map(r).join("")},Object.defineProperty(t.prototype,"valid",{get:function(){return!this.errors.length}}),Dt.ValidatorResultError=n;function n(S){typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,n),this.instance=S.instance,this.schema=S.schema,this.options=S.options,this.errors=S.errors}n.prototype=new Error,n.prototype.constructor=n,n.prototype.name="Validation Error";var o=Dt.SchemaError=function S(v,b){this.message=v,this.schema=b,Error.call(this,v),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,S)};o.prototype=Object.create(Error.prototype,{constructor:{value:o,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var a=Dt.SchemaContext=function(v,b,m,w,x){this.schema=v,this.options=b,Array.isArray(m)?(this.path=m,this.propertyPath=m.reduce(function(k,E){return k+c(E)},"instance")):this.propertyPath=m,this.base=w,this.schemas=x};a.prototype.resolve=function(v){return y(this.base,v)},a.prototype.makeChild=function(v,b){var m=b===void 0?this.path:this.path.concat([b]),w=v.$id||v.id;let x=y(this.base,w||"");var k=new a(v,this.options,m,x,Object.create(this.schemas));return w&&!k.schemas[x]&&(k.schemas[x]=v),k};var l=Dt.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,duration:/P(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S)|\d+(D|M(\d+D)?|Y(\d+M(\d+D)?)?)(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S))?|\d+W)/i,email:/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,"idn-email":/^("(?:[!#-\[\]-\u{10FFFF}]|\\[\t -\u{10FFFF}])*"|[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*)@([!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*|\[[!-Z\^-\u{10FFFF}]*\])$/u,"ip-address":/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,ipv6:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,uri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"uri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/,iri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"iri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~-\u{10FFFF}]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~-\u{10FFFF}])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/u,uuid:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,"uri-template":/(%[0-9a-f]{2}|[!#$&(-;=?@\[\]_a-z~]|\{[!#&+,./;=?@|]?(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?(,(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?)*\})*/iu,"json-pointer":/^(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*$/iu,"relative-json-pointer":/^\d+(#|(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*)$/iu,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"utc-millisec":function(S){return typeof S=="string"&&parseFloat(S)===parseInt(S,10)&&!isNaN(S)},regex:function(S){var v=!0;try{new RegExp(S)}catch{v=!1}return v},style:/[\r\n\t ]*[^\r\n\t ][^:]*:[\r\n\t ]*[^\r\n\t ;]*[\r\n\t ]*;?/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/};l.regexp=l.regex,l.pattern=l.regex,l.ipv4=l["ip-address"],Dt.isFormat=function(v,b,m){if(typeof v=="string"&&l[b]!==void 0){if(l[b]instanceof RegExp)return l[b].test(v);if(typeof l[b]=="function")return l[b](v)}else if(m&&m.customFormats&&typeof m.customFormats[b]=="function")return m.customFormats[b](v);return!0};var c=Dt.makeSuffix=function(v){return v=v.toString(),!v.match(/[.\s\[\]]/)&&!v.match(/^[\d]/)?"."+v:v.match(/^\d+$/)?"["+v+"]":"["+JSON.stringify(v)+"]"};Dt.deepCompareStrict=function S(v,b){if(typeof v!=typeof b)return!1;if(Array.isArray(v))return!Array.isArray(b)||v.length!==b.length?!1:v.every(function(x,k){return S(v[k],b[k])});if(typeof v=="object"){if(!v||!b)return v===b;var m=Object.keys(v),w=Object.keys(b);return m.length!==w.length?!1:m.every(function(x){return S(v[x],b[x])})}return v===b};function u(S,v,b,m){typeof b=="object"?v[m]=h(S[m],b):S.indexOf(b)===-1&&v.push(b)}function d(S,v,b){v[b]=S[b]}function p(S,v,b,m){typeof v[m]!="object"||!v[m]?b[m]=v[m]:S[m]?b[m]=h(S[m],v[m]):b[m]=v[m]}function h(S,v){var b=Array.isArray(v),m=b&&[]||{};return b?(S=S||[],m=m.concat(S),v.forEach(u.bind(null,S,m))):(S&&typeof S=="object"&&Object.keys(S).forEach(d.bind(null,S,m)),Object.keys(v).forEach(p.bind(null,S,v,m))),m}Dt.deepMerge=h,Dt.objectGetPath=function(v,b){for(var m=b.split("/").slice(1),w;typeof(w=m.shift())=="string";){var x=decodeURIComponent(w.replace(/~0/,"~").replace(/~1/g,"/"));if(!(x in v))return;v=v[x]}return v};function g(S){return"/"+encodeURIComponent(S).replace(/~/g,"%7E")}Dt.encodePath=function(v){return v.map(g).join("")},Dt.getDecimalPlaces=function(v){var b=0;if(isNaN(v))return b;typeof v!="number"&&(v=Number(v));var m=v.toString().split("e");if(m.length===2){if(m[1][0]!=="-")return b;b=Number(m[1].slice(1))}var w=m[0].split(".");return w.length===2&&(b+=w[1].length),b},Dt.isSchema=function(v){return typeof v=="object"&&v||typeof v=="boolean"};var y=Dt.resolveUrl=function(v,b){const m=new URL(b,new URL(v,"resolve://"));if(m.protocol==="resolve:"){const{pathname:w,search:x,hash:k}=m;return w+x+k}return m.toString()};return Dt}var qf,A0;function X3(){if(A0)return qf;A0=1;var e=Oi(),t=e.ValidatorResult,r=e.SchemaError,n={};n.ignoreProperties={id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0};var o=n.validators={};o.type=function(h,g,y,S){if(h===void 0)return null;var v=new t(h,g,y,S),b=Array.isArray(g.type)?g.type:[g.type];if(!b.some(this.testType.bind(this,h,g,y,S))){var m=b.map(function(w){if(w){var x=w.$id||w.id;return x?"<"+x+">":w+""}});v.addError({name:"type",argument:m,message:"is not of a type(s) "+m})}return v};function a(p,h,g,y,S){var v=h.throwError,b=h.throwAll;h.throwError=!1,h.throwAll=!1;var m=this.validateSchema(p,S,h,g);return h.throwError=v,h.throwAll=b,!m.valid&&y instanceof Function&&y(m),m.valid}o.anyOf=function(h,g,y,S){if(h===void 0)return null;var v=new t(h,g,y,S),b=new t(h,g,y,S);if(!Array.isArray(g.anyOf))throw new r("anyOf must be an array");if(!g.anyOf.some(a.bind(this,h,y,S,function(w){b.importErrors(w)}))){var m=g.anyOf.map(function(w,x){var k=w.$id||w.id;return k?"<"+k+">":w.title&&JSON.stringify(w.title)||w.$ref&&"<"+w.$ref+">"||"[subschema "+x+"]"});y.nestedErrors&&v.importErrors(b),v.addError({name:"anyOf",argument:m,message:"is not any of "+m.join(",")})}return v},o.allOf=function(h,g,y,S){if(h===void 0)return null;if(!Array.isArray(g.allOf))throw new r("allOf must be an array");var v=new t(h,g,y,S),b=this;return g.allOf.forEach(function(m,w){var x=b.validateSchema(h,m,y,S);if(!x.valid){var k=m.$id||m.id,E=k||m.title&&JSON.stringify(m.title)||m.$ref&&"<"+m.$ref+">"||"[subschema "+w+"]";v.addError({name:"allOf",argument:{id:E,length:x.errors.length,valid:x},message:"does not match allOf schema "+E+" with "+x.errors.length+" error[s]:"}),v.importErrors(x)}}),v},o.oneOf=function(h,g,y,S){if(h===void 0)return null;if(!Array.isArray(g.oneOf))throw new r("oneOf must be an array");var v=new t(h,g,y,S),b=new t(h,g,y,S),m=g.oneOf.filter(a.bind(this,h,y,S,function(x){b.importErrors(x)})).length,w=g.oneOf.map(function(x,k){var E=x.$id||x.id;return E||x.title&&JSON.stringify(x.title)||x.$ref&&"<"+x.$ref+">"||"[subschema "+k+"]"});return m!==1&&(y.nestedErrors&&v.importErrors(b),v.addError({name:"oneOf",argument:w,message:"is not exactly one from "+w.join(",")})),v},o.if=function(h,g,y,S){if(h===void 0)return null;if(!e.isSchema(g.if))throw new Error('Expected "if" keyword to be a schema');var v=a.call(this,h,y,S,null,g.if),b=new t(h,g,y,S),m;if(v){if(g.then===void 0)return;if(!e.isSchema(g.then))throw new Error('Expected "then" keyword to be a schema');m=this.validateSchema(h,g.then,y,S.makeChild(g.then)),b.importErrors(m)}else{if(g.else===void 0)return;if(!e.isSchema(g.else))throw new Error('Expected "else" keyword to be a schema');m=this.validateSchema(h,g.else,y,S.makeChild(g.else)),b.importErrors(m)}return b};function l(p,h){if(Object.hasOwnProperty.call(p,h))return p[h];if(h in p){for(;p=Object.getPrototypeOf(p);)if(Object.propertyIsEnumerable.call(p,h))return p[h]}}o.propertyNames=function(h,g,y,S){if(this.types.object(h)){var v=new t(h,g,y,S),b=g.propertyNames!==void 0?g.propertyNames:{};if(!e.isSchema(b))throw new r('Expected "propertyNames" to be a schema (object or boolean)');for(var m in h)if(l(h,m)!==void 0){var w=this.validateSchema(m,b,y,S.makeChild(b));v.importErrors(w)}return v}},o.properties=function(h,g,y,S){if(this.types.object(h)){var v=new t(h,g,y,S),b=g.properties||{};for(var m in b){var w=b[m];if(w!==void 0){if(w===null)throw new r('Unexpected null, expected schema in "properties"');typeof y.preValidateProperty=="function"&&y.preValidateProperty(h,m,w,y,S);var x=l(h,m),k=this.validateSchema(x,w,y,S.makeChild(w,m));k.instance!==v.instance[m]&&(v.instance[m]=k.instance),v.importErrors(k)}}return v}};function c(p,h,g,y,S,v){if(this.types.object(p)&&!(h.properties&&h.properties[S]!==void 0))if(h.additionalProperties===!1)v.addError({name:"additionalProperties",argument:S,message:"is not allowed to have the additional property "+JSON.stringify(S)});else{var b=h.additionalProperties||{};typeof g.preValidateProperty=="function"&&g.preValidateProperty(p,S,b,g,y);var m=this.validateSchema(p[S],b,g,y.makeChild(b,S));m.instance!==v.instance[S]&&(v.instance[S]=m.instance),v.importErrors(m)}}o.patternProperties=function(h,g,y,S){if(this.types.object(h)){var v=new t(h,g,y,S),b=g.patternProperties||{};for(var m in h){var w=!0;for(var x in b){var k=b[x];if(k!==void 0){if(k===null)throw new r('Unexpected null, expected schema in "patternProperties"');try{var E=new RegExp(x,"u")}catch{E=new RegExp(x)}if(E.test(m)){w=!1,typeof y.preValidateProperty=="function"&&y.preValidateProperty(h,m,k,y,S);var R=this.validateSchema(h[m],k,y,S.makeChild(k,m));R.instance!==v.instance[m]&&(v.instance[m]=R.instance),v.importErrors(R)}}}w&&c.call(this,h,g,y,S,m,v)}return v}},o.additionalProperties=function(h,g,y,S){if(this.types.object(h)){if(g.patternProperties)return null;var v=new t(h,g,y,S);for(var b in h)c.call(this,h,g,y,S,b,v);return v}},o.minProperties=function(h,g,y,S){if(this.types.object(h)){var v=new t(h,g,y,S),b=Object.keys(h);return b.length>=g.minProperties||v.addError({name:"minProperties",argument:g.minProperties,message:"does not meet minimum property length of "+g.minProperties}),v}},o.maxProperties=function(h,g,y,S){if(this.types.object(h)){var v=new t(h,g,y,S),b=Object.keys(h);return b.length<=g.maxProperties||v.addError({name:"maxProperties",argument:g.maxProperties,message:"does not meet maximum property length of "+g.maxProperties}),v}},o.items=function(h,g,y,S){var v=this;if(this.types.array(h)&&g.items!==void 0){var b=new t(h,g,y,S);return h.every(function(m,w){if(Array.isArray(g.items))var x=g.items[w]===void 0?g.additionalItems:g.items[w];else var x=g.items;if(x===void 0)return!0;if(x===!1)return b.addError({name:"items",message:"additionalItems not permitted"}),!1;var k=v.validateSchema(m,x,y,S.makeChild(x,w));return k.instance!==b.instance[w]&&(b.instance[w]=k.instance),b.importErrors(k),!0}),b}},o.contains=function(h,g,y,S){var v=this;if(this.types.array(h)&&g.contains!==void 0){if(!e.isSchema(g.contains))throw new Error('Expected "contains" keyword to be a schema');var b=new t(h,g,y,S),m=h.some(function(w,x){var k=v.validateSchema(w,g.contains,y,S.makeChild(g.contains,x));return k.errors.length===0});return m===!1&&b.addError({name:"contains",argument:g.contains,message:"must contain an item matching given schema"}),b}},o.minimum=function(h,g,y,S){if(this.types.number(h)){var v=new t(h,g,y,S);return g.exclusiveMinimum&&g.exclusiveMinimum===!0?h>g.minimum||v.addError({name:"minimum",argument:g.minimum,message:"must be greater than "+g.minimum}):h>=g.minimum||v.addError({name:"minimum",argument:g.minimum,message:"must be greater than or equal to "+g.minimum}),v}},o.maximum=function(h,g,y,S){if(this.types.number(h)){var v=new t(h,g,y,S);return g.exclusiveMaximum&&g.exclusiveMaximum===!0?h<g.maximum||v.addError({name:"maximum",argument:g.maximum,message:"must be less than "+g.maximum}):h<=g.maximum||v.addError({name:"maximum",argument:g.maximum,message:"must be less than or equal to "+g.maximum}),v}},o.exclusiveMinimum=function(h,g,y,S){if(typeof g.exclusiveMinimum!="boolean"&&this.types.number(h)){var v=new t(h,g,y,S),b=h>g.exclusiveMinimum;return b||v.addError({name:"exclusiveMinimum",argument:g.exclusiveMinimum,message:"must be strictly greater than "+g.exclusiveMinimum}),v}},o.exclusiveMaximum=function(h,g,y,S){if(typeof g.exclusiveMaximum!="boolean"&&this.types.number(h)){var v=new t(h,g,y,S),b=h<g.exclusiveMaximum;return b||v.addError({name:"exclusiveMaximum",argument:g.exclusiveMaximum,message:"must be strictly less than "+g.exclusiveMaximum}),v}};var u=function(h,g,y,S,v,b){if(this.types.number(h)){var m=g[v];if(m==0)throw new r(v+" cannot be zero");var w=new t(h,g,y,S),x=e.getDecimalPlaces(h),k=e.getDecimalPlaces(m),E=Math.max(x,k),R=Math.pow(10,E);return Math.round(h*R)%Math.round(m*R)!==0&&w.addError({name:v,argument:m,message:b+JSON.stringify(m)}),w}};o.multipleOf=function(h,g,y,S){return u.call(this,h,g,y,S,"multipleOf","is not a multiple of (divisible by) ")},o.divisibleBy=function(h,g,y,S){return u.call(this,h,g,y,S,"divisibleBy","is not divisible by (multiple of) ")},o.required=function(h,g,y,S){var v=new t(h,g,y,S);return h===void 0&&g.required===!0?v.addError({name:"required",message:"is required"}):this.types.object(h)&&Array.isArray(g.required)&&g.required.forEach(function(b){l(h,b)===void 0&&v.addError({name:"required",argument:b,message:"requires property "+JSON.stringify(b)})}),v},o.pattern=function(h,g,y,S){if(this.types.string(h)){var v=new t(h,g,y,S),b=g.pattern;try{var m=new RegExp(b,"u")}catch{m=new RegExp(b)}return h.match(m)||v.addError({name:"pattern",argument:g.pattern,message:"does not match pattern "+JSON.stringify(g.pattern.toString())}),v}},o.format=function(h,g,y,S){if(h!==void 0){var v=new t(h,g,y,S);return!v.disableFormat&&!e.isFormat(h,g.format,this)&&v.addError({name:"format",argument:g.format,message:"does not conform to the "+JSON.stringify(g.format)+" format"}),v}},o.minLength=function(h,g,y,S){if(this.types.string(h)){var v=new t(h,g,y,S),b=h.match(/[\uDC00-\uDFFF]/g),m=h.length-(b?b.length:0);return m>=g.minLength||v.addError({name:"minLength",argument:g.minLength,message:"does not meet minimum length of "+g.minLength}),v}},o.maxLength=function(h,g,y,S){if(this.types.string(h)){var v=new t(h,g,y,S),b=h.match(/[\uDC00-\uDFFF]/g),m=h.length-(b?b.length:0);return m<=g.maxLength||v.addError({name:"maxLength",argument:g.maxLength,message:"does not meet maximum length of "+g.maxLength}),v}},o.minItems=function(h,g,y,S){if(this.types.array(h)){var v=new t(h,g,y,S);return h.length>=g.minItems||v.addError({name:"minItems",argument:g.minItems,message:"does not meet minimum length of "+g.minItems}),v}},o.maxItems=function(h,g,y,S){if(this.types.array(h)){var v=new t(h,g,y,S);return h.length<=g.maxItems||v.addError({name:"maxItems",argument:g.maxItems,message:"does not meet maximum length of "+g.maxItems}),v}};function d(p,h,g){var y,S=g.length;for(y=h+1,S;y<S;y++)if(e.deepCompareStrict(p,g[y]))return!1;return!0}return o.uniqueItems=function(h,g,y,S){if(g.uniqueItems===!0&&this.types.array(h)){var v=new t(h,g,y,S);return h.every(d)||v.addError({name:"uniqueItems",message:"contains duplicate item"}),v}},o.dependencies=function(h,g,y,S){if(this.types.object(h)){var v=new t(h,g,y,S);for(var b in g.dependencies)if(h[b]!==void 0){var m=g.dependencies[b],w=S.makeChild(m,b);if(typeof m=="string"&&(m=[m]),Array.isArray(m))m.forEach(function(k){h[k]===void 0&&v.addError({name:"dependencies",argument:w.propertyPath,message:"property "+k+" not found, required by "+w.propertyPath})});else{var x=this.validateSchema(h,m,y,w);v.instance!==x.instance&&(v.instance=x.instance),x&&x.errors.length&&(v.addError({name:"dependencies",argument:w.propertyPath,message:"does not meet dependency required by "+w.propertyPath}),v.importErrors(x))}}return v}},o.enum=function(h,g,y,S){if(h===void 0)return null;if(!Array.isArray(g.enum))throw new r("enum expects an array",g);var v=new t(h,g,y,S);return g.enum.some(e.deepCompareStrict.bind(null,h))||v.addError({name:"enum",argument:g.enum,message:"is not one of enum values: "+g.enum.map(String).join(",")}),v},o.const=function(h,g,y,S){if(h===void 0)return null;var v=new t(h,g,y,S);return e.deepCompareStrict(g.const,h)||v.addError({name:"const",argument:g.const,message:"does not exactly match expected constant: "+g.const}),v},o.not=o.disallow=function(h,g,y,S){var v=this;if(h===void 0)return null;var b=new t(h,g,y,S),m=g.not||g.disallow;return m?(Array.isArray(m)||(m=[m]),m.forEach(function(w){if(v.testType(h,g,y,S,w)){var x=w&&(w.$id||w.id),k=x||w;b.addError({name:"not",argument:k,message:"is of prohibited type "+k})}}),b):null},qf=n,qf}var Sl={},T0;function kd(){if(T0)return Sl;T0=1;var e=Oi();Sl.SchemaScanResult=t;function t(r,n){this.id=r,this.ref=n}return Sl.scan=function(n,o){function a(p,h){if(!h||typeof h!="object")return;if(h.$ref){let v=e.resolveUrl(p,h.$ref);d[v]=d[v]?d[v]+1:0;return}var g=h.$id||h.id;let y=e.resolveUrl(p,g);var S=g?y:p;if(S){if(S.indexOf("#")<0&&(S+="#"),u[S]){if(!e.deepCompareStrict(u[S],h))throw new Error("Schema <"+S+"> already exists with different definition");return u[S]}u[S]=h,S[S.length-1]=="#"&&(u[S.substring(0,S.length-1)]=h)}l(S+"/items",Array.isArray(h.items)?h.items:[h.items]),l(S+"/extends",Array.isArray(h.extends)?h.extends:[h.extends]),a(S+"/additionalItems",h.additionalItems),c(S+"/properties",h.properties),a(S+"/additionalProperties",h.additionalProperties),c(S+"/definitions",h.definitions),c(S+"/patternProperties",h.patternProperties),c(S+"/dependencies",h.dependencies),l(S+"/disallow",h.disallow),l(S+"/allOf",h.allOf),l(S+"/anyOf",h.anyOf),l(S+"/oneOf",h.oneOf),a(S+"/not",h.not)}function l(p,h){if(Array.isArray(h))for(var g=0;g<h.length;g++)a(p+"/"+g,h[g])}function c(p,h){if(!(!h||typeof h!="object"))for(var g in h)a(p+"/"+g,h[g])}var u={},d={};return a(n,o),new t(u,d)},Sl}var Gf,R0;function J3(){if(R0)return Gf;R0=1;var e=X3(),t=Oi(),r=kd().scan,n=t.ValidatorResult,o=t.ValidatorResultError,a=t.SchemaError,l=t.SchemaContext,c="/",u=function h(){this.customFormats=Object.create(h.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(p),this.attributes=Object.create(e.validators)};u.prototype.customFormats={},u.prototype.schemas=null,u.prototype.types=null,u.prototype.attributes=null,u.prototype.unresolvedRefs=null,u.prototype.addSchema=function(g,y){var S=this;if(!g)return null;var v=r(y||c,g),b=y||g.$id||g.id;for(var m in v.id)this.schemas[m]=v.id[m];for(var m in v.ref)this.unresolvedRefs.push(m);return this.unresolvedRefs=this.unresolvedRefs.filter(function(w){return typeof S.schemas[w]>"u"}),this.schemas[b]},u.prototype.addSubSchemaArray=function(g,y){if(Array.isArray(y))for(var S=0;S<y.length;S++)this.addSubSchema(g,y[S])},u.prototype.addSubSchemaObject=function(g,y){if(!(!y||typeof y!="object"))for(var S in y)this.addSubSchema(g,y[S])},u.prototype.setSchemas=function(g){this.schemas=g},u.prototype.getSchema=function(g){return this.schemas[g]},u.prototype.validate=function(g,y,S,v){if(typeof y!="boolean"&&typeof y!="object"||y===null)throw new a("Expected `schema` to be an object or boolean");S||(S={});var b=y.$id||y.id;let m=t.resolveUrl(S.base,b||"");if(!v){v=new l(y,S,[],m,Object.create(this.schemas)),v.schemas[m]||(v.schemas[m]=y);var w=r(m,y);for(var x in w.id){var k=w.id[x];v.schemas[x]=k}}if(S.required&&g===void 0){var E=new n(g,y,S,v);return E.addError("is required, but is undefined"),E}var E=this.validateSchema(g,y,S,v);if(E){if(S.throwAll&&E.errors.length)throw new o(E)}else throw new Error("Result undefined");return E};function d(h){var g=typeof h=="string"?h:h.$ref;return typeof g=="string"?g:!1}u.prototype.validateSchema=function(g,y,S,v){var b=new n(g,y,S,v);if(typeof y=="boolean")y===!0?y={}:y===!1&&(y={type:[]});else if(!y)throw new Error("schema is undefined");if(y.extends)if(Array.isArray(y.extends)){var m={schema:y,ctx:v};y.extends.forEach(this.schemaTraverser.bind(this,m)),y=m.schema,m.schema=null,m.ctx=null,m=null}else y=t.deepMerge(y,this.superResolve(y.extends,v));var w=d(y);if(w){var x=this.resolve(y,w,v),k=new l(x.subschema,S,v.path,x.switchSchema,v.schemas);return this.validateSchema(g,x.subschema,S,k)}var E=S&&S.skipAttributes||[];for(var R in y)if(!e.ignoreProperties[R]&&E.indexOf(R)<0){var F=null,A=this.attributes[R];if(A)F=A.call(this,g,y,S,v);else if(S.allowUnknownAttributes===!1)throw new a("Unsupported attribute: "+R,y);F&&b.importErrors(F)}if(typeof S.rewrite=="function"){var N=S.rewrite.call(this,g,y,S,v);b.instance=N}return b},u.prototype.schemaTraverser=function(g,y){g.schema=t.deepMerge(g.schema,this.superResolve(y,g.ctx))},u.prototype.superResolve=function(g,y){var S=d(g);return S?this.resolve(g,S,y).subschema:g},u.prototype.resolve=function(g,y,S){if(y=S.resolve(y),S.schemas[y])return{subschema:S.schemas[y],switchSchema:y};let b=new URL(y,"thismessage::/").hash;var m=b&&b.length&&y.substr(0,y.length-b.length);if(!m||!S.schemas[m])throw new a("no such schema <"+y+">",g);var w=t.objectGetPath(S.schemas[m],b.substr(1));if(w===void 0)throw new a("no such schema "+b+" located in <"+m+">",g);return{subschema:w,switchSchema:y}},u.prototype.testType=function(g,y,S,v,b){if(b!==void 0){if(b===null)throw new a('Unexpected null in "type" keyword');if(typeof this.types[b]=="function")return this.types[b].call(this,g);if(b&&typeof b=="object"){var m=this.validateSchema(g,b,S,v);return m===void 0||!(m&&m.errors.length)}return!0}};var p=u.prototype.types={};return p.string=function(g){return typeof g=="string"},p.number=function(g){return typeof g=="number"&&isFinite(g)},p.integer=function(g){return typeof g=="number"&&g%1===0},p.boolean=function(g){return typeof g=="boolean"},p.array=function(g){return Array.isArray(g)},p.null=function(g){return g===null},p.date=function(g){return g instanceof Date},p.any=function(g){return!0},p.object=function(g){return g&&typeof g=="object"&&!Array.isArray(g)&&!(g instanceof Date)},Gf=u,Gf}var C0;function Q3(){if(C0)return Jr;C0=1;var e=Jr.Validator=J3();return Jr.ValidatorResult=Oi().ValidatorResult,Jr.ValidatorResultError=Oi().ValidatorResultError,Jr.ValidationError=Oi().ValidationError,Jr.SchemaError=Oi().SchemaError,Jr.SchemaScanResult=kd().SchemaScanResult,Jr.scan=kd().scan,Jr.validate=function(t,r,n){var o=new e;return o.validate(t,r,n)},Jr}var ej=Q3();const C1=(e,t,r)=>{const n=e instanceof RegExp?P0(e,r):e,o=t instanceof RegExp?P0(t,r):t,a=n!==null&&o!=null&&tj(n,o,r);return a&&{start:a[0],end:a[1],pre:r.slice(0,a[0]),body:r.slice(a[0]+n.length,a[1]),post:r.slice(a[1]+o.length)}},P0=(e,t)=>{const r=t.match(e);return r?r[0]:null},tj=(e,t,r)=>{let n,o,a,l,c,u=r.indexOf(e),d=r.indexOf(t,u+1),p=u;if(u>=0&&d>0){if(e===t)return[u,d];for(n=[],a=r.length;p>=0&&!c;){if(p===u)n.push(p),u=r.indexOf(e,p+1);else if(n.length===1){const h=n.pop();h!==void 0&&(c=[h,d])}else o=n.pop(),o!==void 0&&o<a&&(a=o,l=d),d=r.indexOf(t,p+1);p=u<d&&u>=0?u:d}n.length&&l!==void 0&&(c=[a,l])}return c},P1="\0SLASH"+Math.random()+"\0",I1="\0OPEN"+Math.random()+"\0",Cp="\0CLOSE"+Math.random()+"\0",N1="\0COMMA"+Math.random()+"\0",M1="\0PERIOD"+Math.random()+"\0",rj=new RegExp(P1,"g"),nj=new RegExp(I1,"g"),ij=new RegExp(Cp,"g"),oj=new RegExp(N1,"g"),aj=new RegExp(M1,"g"),sj=/\\\\/g,lj=/\\{/g,cj=/\\}/g,uj=/\\,/g,fj=/\\./g;function Yf(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function dj(e){return e.replace(sj,P1).replace(lj,I1).replace(cj,Cp).replace(uj,N1).replace(fj,M1)}function pj(e){return e.replace(rj,"\\").replace(nj,"{").replace(ij,"}").replace(oj,",").replace(aj,".")}function D1(e){if(!e)return[""];const t=[],r=C1("{","}",e);if(!r)return e.split(",");const{pre:n,body:o,post:a}=r,l=n.split(",");l[l.length-1]+="{"+o+"}";const c=D1(a);return a.length&&(l[l.length-1]+=c.shift(),l.push.apply(l,c)),t.push.apply(t,l),t}function hj(e){return e?(e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),Ea(dj(e),!0).map(pj)):[]}function gj(e){return"{"+e+"}"}function vj(e){return/^-?0\d/.test(e)}function mj(e,t){return e<=t}function bj(e,t){return e>=t}function Ea(e,t){const r=[],n=C1("{","}",e);if(!n)return[e];const o=n.pre,a=n.post.length?Ea(n.post,!1):[""];if(/\$$/.test(n.pre))for(let l=0;l<a.length;l++){const c=o+"{"+n.body+"}"+a[l];r.push(c)}else{const l=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),u=l||c,d=n.body.indexOf(",")>=0;if(!u&&!d)return n.post.match(/,(?!,).*\}/)?(e=n.pre+"{"+n.body+Cp+n.post,Ea(e)):[e];let p;if(u)p=n.body.split(/\.\./);else if(p=D1(n.body),p.length===1&&p[0]!==void 0&&(p=Ea(p[0],!1).map(gj),p.length===1))return a.map(g=>n.pre+p[0]+g);let h;if(u&&p[0]!==void 0&&p[1]!==void 0){const g=Yf(p[0]),y=Yf(p[1]),S=Math.max(p[0].length,p[1].length);let v=p.length===3&&p[2]!==void 0?Math.abs(Yf(p[2])):1,b=mj;y<g&&(v*=-1,b=bj);const w=p.some(vj);h=[];for(let x=g;b(x,y);x+=v){let k;if(c)k=String.fromCharCode(x),k==="\\"&&(k="");else if(k=String(x),w){const E=S-k.length;if(E>0){const R=new Array(E+1).join("0");x<0?k="-"+R+k.slice(1):k=R+k}}h.push(k)}}else{h=[];for(let g=0;g<p.length;g++)h.push.apply(h,Ea(p[g],!1))}for(let g=0;g<h.length;g++)for(let y=0;y<a.length;y++){const S=o+h[g]+a[y];(!t||u||S)&&r.push(S)}}return r}const yj=1024*64,lc=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>yj)throw new TypeError("pattern is too long")},wj={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},ba=e=>e.replace(/[[\]\\-]/g,"\\$&"),xj=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),I0=e=>e.join(""),Sj=(e,t)=>{const r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");const n=[],o=[];let a=r+1,l=!1,c=!1,u=!1,d=!1,p=r,h="";e:for(;a<e.length;){const v=e.charAt(a);if((v==="!"||v==="^")&&a===r+1){d=!0,a++;continue}if(v==="]"&&l&&!u){p=a+1;break}if(l=!0,v==="\\"&&!u){u=!0,a++;continue}if(v==="["&&!u){for(const[b,[m,w,x]]of Object.entries(wj))if(e.startsWith(b,a)){if(h)return["$.",!1,e.length-r,!0];a+=b.length,x?o.push(m):n.push(m),c=c||w;continue e}}if(u=!1,h){v>h?n.push(ba(h)+"-"+ba(v)):v===h&&n.push(ba(v)),h="",a++;continue}if(e.startsWith("-]",a+1)){n.push(ba(v+"-")),a+=2;continue}if(e.startsWith("-",a+1)){h=v,a+=2;continue}n.push(ba(v)),a++}if(p<a)return["",!1,0,!1];if(!n.length&&!o.length)return["$.",!1,e.length-r,!0];if(o.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!d){const v=n[0].length===2?n[0].slice(-1):n[0];return[xj(v),!1,p-r,!1]}const g="["+(d?"^":"")+I0(n)+"]",y="["+(d?"":"^")+I0(o)+"]";return[n.length&&o.length?"("+g+"|"+y+")":n.length?g:y,c,p-r,!0]},ka=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),_j=new Set(["!","?","+","*","@"]),N0=e=>_j.has(e),Ej="(?!(?:^|/)\\.\\.?(?:$|/))",_l="(?!\\.)",kj=new Set(["[","."]),Oj=new Set(["..","."]),Aj=new Set("().*{}+?[]^$\\!"),Tj=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Pp="[^/]",M0=Pp+"*?",D0=Pp+"+?";var Rt,It,On,lt,xt,Zn,Ai,Xn,tn,Ti,Ua,$i,$1,ei,Wl,Od,L1;const Yt=class Yt{constructor(t,r,n={}){Ht(this,$i);Oe(this,"type");Ht(this,Rt);Ht(this,It);Ht(this,On,!1);Ht(this,lt,[]);Ht(this,xt);Ht(this,Zn);Ht(this,Ai);Ht(this,Xn,!1);Ht(this,tn);Ht(this,Ti);Ht(this,Ua,!1);this.type=t,t&&gt(this,It,!0),gt(this,xt,r),gt(this,Rt,de(this,xt)?de(de(this,xt),Rt):this),gt(this,tn,de(this,Rt)===this?n:de(de(this,Rt),tn)),gt(this,Ai,de(this,Rt)===this?[]:de(de(this,Rt),Ai)),t==="!"&&!de(de(this,Rt),Xn)&&de(this,Ai).push(this),gt(this,Zn,de(this,xt)?de(de(this,xt),lt).length:0)}get hasMagic(){if(de(this,It)!==void 0)return de(this,It);for(const t of de(this,lt))if(typeof t!="string"&&(t.type||t.hasMagic))return gt(this,It,!0);return de(this,It)}toString(){return de(this,Ti)!==void 0?de(this,Ti):this.type?gt(this,Ti,this.type+"("+de(this,lt).map(t=>String(t)).join("|")+")"):gt(this,Ti,de(this,lt).map(t=>String(t)).join(""))}push(...t){for(const r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof Yt&&de(r,xt)===this))throw new Error("invalid part: "+r);de(this,lt).push(r)}}toJSON(){var r;const t=this.type===null?de(this,lt).slice().map(n=>typeof n=="string"?n:n.toJSON()):[this.type,...de(this,lt).map(n=>n.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===de(this,Rt)||de(de(this,Rt),Xn)&&((r=de(this,xt))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(de(this,Rt)===this)return!0;if(!((r=de(this,xt))!=null&&r.isStart()))return!1;if(de(this,Zn)===0)return!0;const t=de(this,xt);for(let n=0;n<de(this,Zn);n++){const o=de(t,lt)[n];if(!(o instanceof Yt&&o.type==="!"))return!1}return!0}isEnd(){var r,n,o;if(de(this,Rt)===this||((r=de(this,xt))==null?void 0:r.type)==="!")return!0;if(!((n=de(this,xt))!=null&&n.isEnd()))return!1;if(!this.type)return(o=de(this,xt))==null?void 0:o.isEnd();const t=de(this,xt)?de(de(this,xt),lt).length:0;return de(this,Zn)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new Yt(this.type,t);for(const n of de(this,lt))r.copyIn(n);return r}static fromGlob(t,r={}){var o;const n=new Yt(null,void 0,r);return We(o=Yt,ei,Wl).call(o,t,n,0,r),n}toMMPattern(){if(this!==de(this,Rt))return de(this,Rt).toMMPattern();const t=this.toString(),[r,n,o,a]=this.toRegExpSource();if(!(o||de(this,It)||de(this,tn).nocase&&!de(this,tn).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return n;const c=(de(this,tn).nocase?"i":"")+(a?"u":"");return Object.assign(new RegExp(`^${r}$`,c),{_src:r,_glob:t})}get options(){return de(this,tn)}toRegExpSource(t){var u;const r=t??!!de(this,tn).dot;if(de(this,Rt)===this&&We(this,$i,$1).call(this),!this.type){const d=this.isStart()&&this.isEnd(),p=de(this,lt).map(S=>{var x;const[v,b,m,w]=typeof S=="string"?We(x=Yt,ei,L1).call(x,S,de(this,It),d):S.toRegExpSource(t);return gt(this,It,de(this,It)||m),gt(this,On,de(this,On)||w),v}).join("");let h="";if(this.isStart()&&typeof de(this,lt)[0]=="string"&&!(de(this,lt).length===1&&Oj.has(de(this,lt)[0]))){const v=kj,b=r&&v.has(p.charAt(0))||p.startsWith("\\.")&&v.has(p.charAt(2))||p.startsWith("\\.\\.")&&v.has(p.charAt(4)),m=!r&&!t&&v.has(p.charAt(0));h=b?Ej:m?_l:""}let g="";return this.isEnd()&&de(de(this,Rt),Xn)&&((u=de(this,xt))==null?void 0:u.type)==="!"&&(g="(?:$|\\/)"),[h+p+g,ka(p),gt(this,It,!!de(this,It)),de(this,On)]}const n=this.type==="*"||this.type==="+",o=this.type==="!"?"(?:(?!(?:":"(?:";let a=We(this,$i,Od).call(this,r);if(this.isStart()&&this.isEnd()&&!a&&this.type!=="!"){const d=this.toString();return gt(this,lt,[d]),this.type=null,gt(this,It,void 0),[d,ka(this.toString()),!1,!1]}let l=!n||t||r||!_l?"":We(this,$i,Od).call(this,!0);l===a&&(l=""),l&&(a=`(?:${a})(?:${l})*?`);let c="";if(this.type==="!"&&de(this,Ua))c=(this.isStart()&&!r?_l:"")+D0;else{const d=this.type==="!"?"))"+(this.isStart()&&!r&&!t?_l:"")+M0+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&l?")":this.type==="*"&&l?")?":`)${this.type}`;c=o+a+d}return[c,ka(a),gt(this,It,!!de(this,It)),de(this,On)]}};Rt=new WeakMap,It=new WeakMap,On=new WeakMap,lt=new WeakMap,xt=new WeakMap,Zn=new WeakMap,Ai=new WeakMap,Xn=new WeakMap,tn=new WeakMap,Ti=new WeakMap,Ua=new WeakMap,$i=new WeakSet,$1=function(){if(this!==de(this,Rt))throw new Error("should only call on root");if(de(this,Xn))return this;this.toString(),gt(this,Xn,!0);let t;for(;t=de(this,Ai).pop();){if(t.type!=="!")continue;let r=t,n=de(r,xt);for(;n;){for(let o=de(r,Zn)+1;!n.type&&o<de(n,lt).length;o++)for(const a of de(t,lt)){if(typeof a=="string")throw new Error("string part in extglob AST??");a.copyIn(de(n,lt)[o])}r=n,n=de(r,xt)}}return this},ei=new WeakSet,Wl=function(t,r,n,o){var y,S;let a=!1,l=!1,c=-1,u=!1;if(r.type===null){let v=n,b="";for(;v<t.length;){const m=t.charAt(v++);if(a||m==="\\"){a=!a,b+=m;continue}if(l){v===c+1?(m==="^"||m==="!")&&(u=!0):m==="]"&&!(v===c+2&&u)&&(l=!1),b+=m;continue}else if(m==="["){l=!0,c=v,u=!1,b+=m;continue}if(!o.noext&&N0(m)&&t.charAt(v)==="("){r.push(b),b="";const w=new Yt(m,r);v=We(y=Yt,ei,Wl).call(y,t,w,v,o),r.push(w);continue}b+=m}return r.push(b),v}let d=n+1,p=new Yt(null,r);const h=[];let g="";for(;d<t.length;){const v=t.charAt(d++);if(a||v==="\\"){a=!a,g+=v;continue}if(l){d===c+1?(v==="^"||v==="!")&&(u=!0):v==="]"&&!(d===c+2&&u)&&(l=!1),g+=v;continue}else if(v==="["){l=!0,c=d,u=!1,g+=v;continue}if(N0(v)&&t.charAt(d)==="("){p.push(g),g="";const b=new Yt(v,p);p.push(b),d=We(S=Yt,ei,Wl).call(S,t,b,d,o);continue}if(v==="|"){p.push(g),g="",h.push(p),p=new Yt(null,r);continue}if(v===")")return g===""&&de(r,lt).length===0&&gt(r,Ua,!0),p.push(g),g="",r.push(...h,p),d;g+=v}return r.type=null,gt(r,It,void 0),gt(r,lt,[t.substring(n-1)]),d},Od=function(t){return de(this,lt).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[n,o,a,l]=r.toRegExpSource(t);return gt(this,On,de(this,On)||l),n}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},L1=function(t,r,n=!1){let o=!1,a="",l=!1;for(let c=0;c<t.length;c++){const u=t.charAt(c);if(o){o=!1,a+=(Aj.has(u)?"\\":"")+u;continue}if(u==="\\"){c===t.length-1?a+="\\\\":o=!0;continue}if(u==="["){const[d,p,h,g]=Sj(t,c);if(h){a+=d,l=l||p,c+=h-1,r=r||g;continue}}if(u==="*"){n&&t==="*"?a+=D0:a+=M0,r=!0;continue}if(u==="?"){a+=Pp,r=!0;continue}a+=Tj(u)}return[a,ka(t),!!r,l]},Ht(Yt,ei);let cc=Yt;const Rj=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),Wt=(e,t,r={})=>(lc(t),!r.nocomment&&t.charAt(0)==="#"?!1:new Pc(t,r).match(e)),Cj=/^\*+([^+@!?\*\[\(]*)$/,Pj=e=>t=>!t.startsWith(".")&&t.endsWith(e),Ij=e=>t=>t.endsWith(e),Nj=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),Mj=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),Dj=/^\*+\.\*+$/,$j=e=>!e.startsWith(".")&&e.includes("."),Lj=e=>e!=="."&&e!==".."&&e.includes("."),zj=/^\.\*+$/,jj=e=>e!=="."&&e!==".."&&e.startsWith("."),Fj=/^\*+$/,Hj=e=>e.length!==0&&!e.startsWith("."),Wj=e=>e.length!==0&&e!=="."&&e!=="..",Bj=/^\?+([^+@!?\*\[\(]*)?$/,Vj=([e,t=""])=>{const r=z1([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},Uj=([e,t=""])=>{const r=j1([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},qj=([e,t=""])=>{const r=j1([e]);return t?n=>r(n)&&n.endsWith(t):r},Gj=([e,t=""])=>{const r=z1([e]);return t?n=>r(n)&&n.endsWith(t):r},z1=([e])=>{const t=e.length;return r=>r.length===t&&!r.startsWith(".")},j1=([e])=>{const t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},F1=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",$0={win32:{sep:"\\"},posix:{sep:"/"}},Yj=F1==="win32"?$0.win32.sep:$0.posix.sep;Wt.sep=Yj;const Or=Symbol("globstar **");Wt.GLOBSTAR=Or;const Kj="[^/]",Zj=Kj+"*?",Xj="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Jj="(?:(?!(?:\\/|^)\\.).)*?",Qj=(e,t={})=>r=>Wt(r,e,t);Wt.filter=Qj;const kr=(e,t={})=>Object.assign({},e,t),eF=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Wt;const t=Wt;return Object.assign((n,o,a={})=>t(n,o,kr(e,a)),{Minimatch:class extends t.Minimatch{constructor(o,a={}){super(o,kr(e,a))}static defaults(o){return t.defaults(kr(e,o)).Minimatch}},AST:class extends t.AST{constructor(o,a,l={}){super(o,a,kr(e,l))}static fromGlob(o,a={}){return t.AST.fromGlob(o,kr(e,a))}},unescape:(n,o={})=>t.unescape(n,kr(e,o)),escape:(n,o={})=>t.escape(n,kr(e,o)),filter:(n,o={})=>t.filter(n,kr(e,o)),defaults:n=>t.defaults(kr(e,n)),makeRe:(n,o={})=>t.makeRe(n,kr(e,o)),braceExpand:(n,o={})=>t.braceExpand(n,kr(e,o)),match:(n,o,a={})=>t.match(n,o,kr(e,a)),sep:t.sep,GLOBSTAR:Or})};Wt.defaults=eF;const H1=(e,t={})=>(lc(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:hj(e));Wt.braceExpand=H1;const tF=(e,t={})=>new Pc(e,t).makeRe();Wt.makeRe=tF;const rF=(e,t,r={})=>{const n=new Pc(t,r);return e=e.filter(o=>n.match(o)),n.options.nonull&&!e.length&&e.push(t),e};Wt.match=rF;const L0=/[?*]|[+@!]\(.*?\)|\[|\]/,nF=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class Pc{constructor(t,r={}){Oe(this,"options");Oe(this,"set");Oe(this,"pattern");Oe(this,"windowsPathsNoEscape");Oe(this,"nonegate");Oe(this,"negate");Oe(this,"comment");Oe(this,"empty");Oe(this,"preserveMultipleSlashes");Oe(this,"partial");Oe(this,"globSet");Oe(this,"globParts");Oe(this,"nocase");Oe(this,"isWindows");Oe(this,"platform");Oe(this,"windowsNoMagicRoot");Oe(this,"regexp");lc(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||F1,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){const t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...a)=>console.error(...a)),this.debug(this.pattern,this.globSet);const n=this.globSet.map(a=>this.slashSplit(a));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let o=this.globParts.map((a,l,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){const u=a[0]===""&&a[1]===""&&(a[2]==="?"||!L0.test(a[2]))&&!L0.test(a[3]),d=/^[a-z]:/i.test(a[0]);if(u)return[...a.slice(0,4),...a.slice(4).map(p=>this.parse(p))];if(d)return[a[0],...a.slice(1).map(p=>this.parse(p))]}return a.map(u=>this.parse(u))});if(this.debug(this.pattern,o),this.set=o.filter(a=>a.indexOf(!1)===-1),this.isWindows)for(let a=0;a<this.set.length;a++){const l=this.set[a];l[0]===""&&l[1]===""&&this.globParts[a][2]==="?"&&typeof l[3]=="string"&&/^[a-z]:$/i.test(l[3])&&(l[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let n=0;n<t.length;n++)for(let o=0;o<t[n].length;o++)t[n][o]==="**"&&(t[n][o]="*");const{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):r>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(r=>{let n=-1;for(;(n=r.indexOf("**",n+1))!==-1;){let o=n;for(;r[o+1]==="**";)o++;o!==n&&r.splice(n,o-n)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((n,o)=>{const a=n[n.length-1];return o==="**"&&a==="**"?n:o===".."&&a&&a!==".."&&a!=="."&&a!=="**"?(n.pop(),n):(n.push(o),n)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let o=1;o<t.length-1;o++){const a=t[o];o===1&&a===""&&t[0]===""||(a==="."||a==="")&&(r=!0,t.splice(o,1),o--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let n=0;for(;(n=t.indexOf("..",n+1))!==-1;){const o=t[n-1];o&&o!=="."&&o!==".."&&o!=="**"&&(r=!0,t.splice(n-1,2),n-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let n of t){let o=-1;for(;(o=n.indexOf("**",o+1))!==-1;){let l=o;for(;n[l+1]==="**";)l++;l>o&&n.splice(o+1,l-o);let c=n[o+1];const u=n[o+2],d=n[o+3];if(c!==".."||!u||u==="."||u===".."||!d||d==="."||d==="..")continue;r=!0,n.splice(o,1);const p=n.slice(0);p[o]="**",t.push(p),o--}if(!this.preserveMultipleSlashes){for(let l=1;l<n.length-1;l++){const c=n[l];l===1&&c===""&&n[0]===""||(c==="."||c==="")&&(r=!0,n.splice(l,1),l--)}n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")&&(r=!0,n.pop())}let a=0;for(;(a=n.indexOf("..",a+1))!==-1;){const l=n[a-1];if(l&&l!=="."&&l!==".."&&l!=="**"){r=!0;const u=a===1&&n[a+1]==="**"?["."]:[];n.splice(a-1,2,...u),n.length===0&&n.push(""),a-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let n=r+1;n<t.length;n++){const o=this.partsMatch(t[r],t[n],!this.preserveMultipleSlashes);if(o){t[r]=[],t[n]=o;break}}return t.filter(r=>r.length)}partsMatch(t,r,n=!1){let o=0,a=0,l=[],c="";for(;o<t.length&&a<r.length;)if(t[o]===r[a])l.push(c==="b"?r[a]:t[o]),o++,a++;else if(n&&t[o]==="**"&&r[a]===t[o+1])l.push(t[o]),o++;else if(n&&r[a]==="**"&&t[o]===r[a+1])l.push(r[a]),a++;else if(t[o]==="*"&&r[a]&&(this.options.dot||!r[a].startsWith("."))&&r[a]!=="**"){if(c==="b")return!1;c="a",l.push(t[o]),o++,a++}else if(r[a]==="*"&&t[o]&&(this.options.dot||!t[o].startsWith("."))&&t[o]!=="**"){if(c==="a")return!1;c="b",l.push(r[a]),o++,a++}else return!1;return t.length===r.length&&l}parseNegate(){if(this.nonegate)return;const t=this.pattern;let r=!1,n=0;for(let o=0;o<t.length&&t.charAt(o)==="!";o++)r=!r,n++;n&&(this.pattern=t.slice(n)),this.negate=r}matchOne(t,r,n=!1){const o=this.options;if(this.isWindows){const v=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),b=!v&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),m=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),w=!m&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),x=b?3:v?0:void 0,k=w?3:m?0:void 0;if(typeof x=="number"&&typeof k=="number"){const[E,R]=[t[x],r[k]];E.toLowerCase()===R.toLowerCase()&&(r[k]=E,k>x?r=r.slice(k):x>k&&(t=t.slice(x)))}}const{optimizationLevel:a=1}=this.options;a>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var l=0,c=0,u=t.length,d=r.length;l<u&&c<d;l++,c++){this.debug("matchOne loop");var p=r[c],h=t[l];if(this.debug(r,p,h),p===!1)return!1;if(p===Or){this.debug("GLOBSTAR",[r,p,h]);var g=l,y=c+1;if(y===d){for(this.debug("** at the end");l<u;l++)if(t[l]==="."||t[l]===".."||!o.dot&&t[l].charAt(0)===".")return!1;return!0}for(;g<u;){var S=t[g];if(this.debug(`
252
+ globstar while`,t,g,r,y,S),this.matchOne(t.slice(g),r.slice(y),n))return this.debug("globstar found match!",g,u,S),!0;if(S==="."||S===".."||!o.dot&&S.charAt(0)==="."){this.debug("dot detected!",t,g,r,y);break}this.debug("globstar swallow a segment, and continue"),g++}return!!(n&&(this.debug(`
253
+ >>> no match, partial?`,t,g,r,y),g===u))}let v;if(typeof p=="string"?(v=h===p,this.debug("string match",p,h,v)):(v=p.test(h),this.debug("pattern match",p,h,v)),!v)return!1}if(l===u&&c===d)return!0;if(l===u)return n;if(c===d)return l===u-1&&t[l]==="";throw new Error("wtf?")}braceExpand(){return H1(this.pattern,this.options)}parse(t){lc(t);const r=this.options;if(t==="**")return Or;if(t==="")return"";let n,o=null;(n=t.match(Fj))?o=r.dot?Wj:Hj:(n=t.match(Cj))?o=(r.nocase?r.dot?Mj:Nj:r.dot?Ij:Pj)(n[1]):(n=t.match(Bj))?o=(r.nocase?r.dot?Uj:Vj:r.dot?qj:Gj)(n):(n=t.match(Dj))?o=r.dot?Lj:$j:(n=t.match(zj))&&(o=jj);const a=cc.fromGlob(t,this.options).toMMPattern();return o&&typeof a=="object"&&Reflect.defineProperty(a,"test",{value:o}),a}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const r=this.options,n=r.noglobstar?Zj:r.dot?Xj:Jj,o=new Set(r.nocase?["i"]:[]);let a=t.map(u=>{const d=u.map(p=>{if(p instanceof RegExp)for(const h of p.flags.split(""))o.add(h);return typeof p=="string"?nF(p):p===Or?Or:p._src});return d.forEach((p,h)=>{const g=d[h+1],y=d[h-1];p!==Or||y===Or||(y===void 0?g!==void 0&&g!==Or?d[h+1]="(?:\\/|"+n+"\\/)?"+g:d[h]=n:g===void 0?d[h-1]=y+"(?:\\/|"+n+")?":g!==Or&&(d[h-1]=y+"(?:\\/|\\/"+n+"\\/)"+g,d[h+1]=Or))}),d.filter(p=>p!==Or).join("/")}).join("|");const[l,c]=t.length>1?["(?:",")"]:["",""];a="^"+l+a+c+"$",this.negate&&(a="^(?!"+a+").+$");try{this.regexp=new RegExp(a,[...o].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;const n=this.options;this.isWindows&&(t=t.split("\\").join("/"));const o=this.slashSplit(t);this.debug(this.pattern,"split",o);const a=this.set;this.debug(this.pattern,"set",a);let l=o[o.length-1];if(!l)for(let c=o.length-2;!l&&c>=0;c--)l=o[c];for(let c=0;c<a.length;c++){const u=a[c];let d=o;if(n.matchBase&&u.length===1&&(d=[l]),this.matchOne(d,u,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(t){return Wt.defaults(t).Minimatch}}Wt.AST=cc;Wt.Minimatch=Pc;Wt.escape=Rj;Wt.unescape=ka;const Va="/$shared",iF={"**/saved_conditions.json":{parser:"json",content:{conditions:[]},schema:{type:"object",properties:{conditions:{type:"array",items:{type:"object"}}},required:["conditions"]}},"**/shared_datasources.json":{parser:"json",content:{},schema:{type:"object",additionalProperties:!0,patternProperties:{"^.*$":{type:"array"}}}},"**/shared_css.json":{parser:"json",content:{classes:[]},schema:{type:"object",properties:{classes:{type:"array",items:{type:"object"}}},required:["classes"]}},"**/shared_app_events.json":{parser:"json",content:[]},"**/CustomComponents/manifest.json":{parser:"json",content:[],schema:{type:"array",items:{type:"object"}}},"**/crafted_components.json":{parser:"json",content:[],schema:{type:"array"}},"**/HTTPHandlers.json":{parser:"json",content:[],schema:{type:"array"}},"**/i18n.json":{parser:"json",content:{keys:{},userLang:{primary:"",supported:[]}},schema:{type:"object",properties:{keys:{type:"object"},userLang:{type:"object",properties:{primary:{type:"string"},supported:{type:"array",items:{type:"string"}}},required:["primary","supported"]}},required:["keys","userLang"]}},"**/*.json":{parser:"json",content:{}}};function W1(e){const t=Object.entries(iF).find(([r])=>Wt(e,r));return t==null?void 0:t[1]}function Ic(e){var n;const t=(n=W1(e))==null?void 0:n.content;if(!t)return;const r=e.replace(`${Va}/`,"Shared/");Ip({name:r,content:t,asText:typeof t=="string"})}async function oF(){const e=["CustomComponents/manifest.json","shared_app_events.json","shared_css.json","saved_conditions.json","i18n.json"];for(const t of e)try{await Ye(`${Va}/${t}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch(r){B1(r)&&Ic(`${Va}/${t}`)}}function ts({path:e,createIfNotExists:t=!1}){const r=`${Va}/${e}`;return Ye(`${r}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})}).then(n=>{const o=W1(e);let a=n;if(!o)return a;if(typeof a=="string")try{switch(o.parser){case"json":a=JSON.parse(a);break;default:break}}catch{throw new Error("Cannot parse")}if(o.schema&&!new ej.Validator().validate(a,o.schema).valid)throw new Error("Invalid Schema");return a}).catch(n=>{if(B1(n)&&t){const o=aF(n,e);i1.next({message:o,kind:"warning"}),Ic(r)}throw n})}function B1(e){var t;return((t=e==null?void 0:e.response)==null?void 0:t.status)===404||(e==null?void 0:e.message)==="Invalid Schema"||(e==null?void 0:e.message)==="Cannot parse"||(e==null?void 0:e.name)==="SyntaxError"}function aF(e,t){var r;switch(!0){case((e==null?void 0:e.message)==="Cannot parse "||(e==null?void 0:e.name)==="SyntaxError"):return`Cannot parse file '${t}', resetting...`;case(e==null?void 0:e.message)==="Invalid Schema":return`File '${t}' is corrupt, resetting...`;case((r=e==null?void 0:e.response)==null?void 0:r.status)===404:return`File '${t}' not found, creating...`;default:return e==null?void 0:e.message}}function sF(e){return Ye(es,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function lF(e){return Ye(es,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const V1=()=>{const{host:e,protocol:t}=window.location,r=t==="https:";return{projectOpened:!1,remoteDebuggerMode:Ep.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${r?"s":""}://${e}/remoteDebugger`,lsp:`ws${r?"s":""}://${e}/LSP`},isRestActive:!0}};async function cF(){const{hostname:e,host:t,protocol:r}=window.location,n=r==="https:";try{const o=await Ye(_t,{method:"POST",body:JSON.stringify({verb:oi.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),a=(()=>{if(o.rendererPath)return o.rendererPath;const l=`http://${e}:${o.webServerHTTPPort}`,c=`https://${e}:${o.webServerHTTPSPort}`;return o.webServerHTTPPort&&o.webServerHTTPSPort?n?c:l:o.webServerHTTPPort?l:c})();return{projectOpened:o.webServerHTTPSPort>0||o.webServerHTTPPort>0,remoteDebuggerMode:o.remoteDebuggerMode,baseUrl:a,qodly:typeof o.qodly>"u"?!0:o.qodly,urls:{renderer:o.rendererPath||`${a}/$lib/renderer/`,debugger:`ws${n?"s":""}://${t}/remoteDebugger`,lsp:`ws${n?"s":""}://${t}/LSP`},isRestActive:o.isRESTActive}}catch(o){return console.error(o),V1()}}async function U1(e){return await Ye(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function uF(...e){return(await Promise.all(e.map(n=>U1({root:n,verb:oi.GET_FOLDER})))).map(({children:n})=>n.map(({name:o,date:a,type:l})=>({name:o,type:l,date:a,path:`${l}/${o}`}))).flat()}function fF(e,t={}){const{sanitize:r=!0}=t;return Ye(`/rest/$getWebForm/${e}`,{method:"GET"}).then(n=>{if(!(n!=null&&n.components)||!r)return n;const o=new Map;return{...n,components:Je.entries(n.components).map(([a,l])=>{const c=a,{resolvedName:u}=l.type;if(u==="WebformLoader"){const d=Ii.generate();o.set(a,d),a=d}return[a,l,c]}).reduce((a,[l,c,u])=>{var d;return c.nodes&&(c.nodes=c.nodes.map(p=>o.get(p)||p)),c.linkedNodes&&(c.linkedNodes=Je.entries(c.linkedNodes).reduce((p,[h,g])=>({...p,[h]:o.get(g)||g}),{})),(d=c.props)!=null&&d.events&&(c.props.events=c.props.events.map(p=>(p.type==="navigation"&&p.loader&&(p.loader=o.get(p.loader)||p.loader),p))),{...a,[l]:{...c,props:{...c.props,__originalID:u}}}},{})}})}function dF(e){return Ye(_t,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(t=>({...t,content:[ft.METHOD,ft.CLASS].includes(t.type)?Rc(t.content):t.content}))}function pF(e){return e.type==="folder"?Ye(es,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):Ye(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function hF(e){return e.type==="folder"?(await Ye(es,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await Ye(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function gF(e){return Ye(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function vF(e){return Ye(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function mF(e){return(await Ye(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function bF(...e){return await Ye(_t,{method:"POST",body:JSON.stringify({verb:oi.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function yF(e){const t=await Ye("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return t.isLogged&&t.success}async function wF(){return await Ye("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function xF(e){try{const t=process.env.NODE_ENV==="development"?"/i18n/languages.json":`/$lib/${e?"studio":"renderer"}/i18n/languages.json`,n=await(await fetch(t)).text(),{supported:o}=JSON.parse(n);return o}catch{return[]}}async function SF({name:e,path:t="",root:r="root",asText:n=!1}){return Ye(_t,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:r,path:t,name:e,asText:n}),headers:new Headers({"Content-Type":"application/json"})})}async function _F(e={}){try{return await ts({path:"shared_datasources.json",...e})}catch{return{}}}async function EF(e={}){try{return await ts({path:"shared_app_events.json",...e})}catch{return[]}}async function kF(e={}){try{return await ts({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function OF(e={}){try{return await ts({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function AF(){try{return await Ye("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function TF(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const RF=Op(),CF=async e=>{const t={verb:oi.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:e};return RF(async()=>(await Ye(_t,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}),e))},PF=Op(),IF=async e=>{const t={verb:oi.SET_FILE_CONTENT,asText:!1,name:"shared_app_events.json",path:"",root:"shared",content:e};return PF(async()=>(await Ye(_t,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}),e))},Ip=async e=>{const t=await Ye(_t,{method:"POST",body:JSON.stringify({...e,verb:oi.SET_FILE_CONTENT,root:_p.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),r=kp(`${e.path||"Sources"}/${e.name}`);return{...t,type:r,size:0}},NF=async e=>await Ip({name:"crafted_components.json",path:Qn.WEBFORMS,content:e});function MF(e){return Ye(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function DF(e){return Ye(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function $F(e){return Ye(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function LF(e){return Ye(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}).then(t=>Array.isArray(t)?t:{...t,content:["4dm","4qm","4qs"].includes(t.ext)?Rc(t.content):t.content}).catch(t=>{var r,n;throw((n=(r=t.data)==null?void 0:r.__ERROR[0])==null?void 0:n.errCode)===1839&&Ic(e.path),t})}function zF(e){return Ye(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function jF(e){const t=new RegExp(/^\((.+)(?=\))/gi).exec(e);return t!==null?t[1]:""}function FF(e){const t=new RegExp(/(->)(.*)/gi).exec(e);if(t!==null)return t[0].replace("->","");const r=/:([^)]*)$/.exec(e);return r!==null?`result : ${r[1].trim()}`:""}function HF(e){const t=jF(e).split(/[;,]/g).filter(Boolean).map(o=>{const a=o.split(":")[0].trim(),l=o.split(":")[1].trim();return{name:a,type:l}}),r=FF(e),n=r?{name:r.split(":")[0].trim(),type:r.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:t,result:n}}async function WF(e,t){const n=e.split(".").pop();try{const o=await Ye(_t,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:t,functionName:n}),headers:new Headers({"Content-Type":"application/json"})});o.content=Rc(o.content);const{params:a,result:l}=HF(o.parameters);return{...o,params:a,returns:l}}catch(o){return console.error(o),{className:t,functionName:n,filePath:e,content:"",params:[]}}}var q1=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(q1||{});function BF(e,t){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...t}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(r=>{})}function VF(e){window.pagesense=window.pagesense||[],window.pagesense.push(["trackEvent",e])}var G1=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(G1||{}),Y1=(e=>(e[e.METHOD=1]="METHOD",e[e.CLASS=10]="CLASS",e))(Y1||{}),K1=(e=>(e.WelCome="WelCome",e.ActionPanel="ActionPanel",e.SideBar="SideBar",e.Settings="Settings",e.Main="Main",e.Explorer="Explorer",e.Header="Header",e.ComponentList="ComponentList",e))(K1||{}),Z1=(e=>(e[e.FILE_NOT_FOUND=1839]="FILE_NOT_FOUND",e[e.JSON_MALFORMED=554]="JSON_MALFORMED",e[e.JSON_MALFORMED_AT_LINE=550]="JSON_MALFORMED_AT_LINE",e))(Z1||{});const UF={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},qF={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=_t;exports.AppLoader=pM;exports.BaseCheckboxIcon=Hx;exports.Checkbox=WL;exports.DATASOURCE_THEMES=UF;exports.DatasourcesActions=n1;exports.DebuggerActions=s1;exports.DefaultCheckboxIcon=Wx;exports.DesignerRequestVerb=oi;exports.Dialog=BC;exports.DialogBody=J0;exports.EActivity=q1;exports.EDITOR=qF;exports.EIDENTIFIERS=K1;exports.EPermissionType=Ge;exports.ERROR_CODES=Z1;exports.ESubPermissionType=ot;exports.EWebFormStyleClassScope=G1;exports.EXT_API_PREFIX=es;exports.FileFolderType=ft;exports.FloatingTooltip=FL;exports.FolderRootPath=Qn;exports.FolderRootType=_p;exports.HTTPError=Ed;exports.HTTP_HANDLERS_TAB_PATH=u1;exports.IPreemptive=Ba;exports.IPublished=w1;exports.IPublishedRestScope=Ap;exports.IdentityProvider=lz;exports.Incase=Tl;exports.IndentLines=dy;exports.LOCALIZATION_TAB_PATH=f1;exports.LogoSVG=dw;exports.LspActions=a1;exports.MAX_FILE_NAME_LENGTH=xp;exports.MODEL_TAB_PATH=Zz;exports.Modal=_L;exports.ModalCloseReason=co;exports.ModalColor=Ci;exports.ModalIcons=cd;exports.ModalType=rp;exports.Mutex=d1;exports.NameError=Sp;exports.Overlay=X0;exports.PANEL_EXPANDED_HEIGHT=Fl;exports.PANEL_INITIAL_HEIGHT=_i;exports.PERMISSIONS=Tp;exports.Panel=HL;exports.PopperTooltip=fw;exports.Portal=F0;exports.PublishOptions=E3;exports.ROLES_TAB_PATH=l1;exports.RemoteDebuggerMode=Ep;exports.SETTINGS_TAB_PATH=c1;exports.SHARED_API_PREFIX=Va;exports.SourceCodeDescriptor=Y1;exports.Switcher=py;exports.TabEventsActions=o1;exports.Tip=Xy;exports.TipsProvider=vN;exports.Toast=ZP;exports.ToolbarIcon=BL;exports.Tooltip=fM;exports.Tree=hI;exports.TreeIcon=ly;exports.TreeNode=Ld;exports.WebformActions=r1;exports.WebformEventsActions=Wa;exports.ZoomComponent=OL;exports.ZoomLevel=jx;exports._isArrayDatasource=y3;exports._isObjectDatasource=w3;exports.actionsToPrivs=O1;exports.addAttributesToContent=O3;exports.addFolder=gF;exports.addPermission=F3;exports.addPrivilegeIn=I3;exports.allowed=C3;exports.by=p1;exports.byId=n3;exports.byPath=i3;exports.callServerSideParser=Z3;exports.checkUpdates=sF;exports.children=sc;exports.createFolder=MF;exports.createPrivilege=M3;exports.createRole=q3;exports.datasourcesSubject=Fz;exports.debuggerSubject=Vz;exports.dropFile=hF;exports.dropFolder=mF;exports.exists=o3;exports.extractWebformName=Qz;exports.generateUUID=A3;exports.getAppSettings=cF;exports.getCatalog=wF;exports.getDatasourceId=s3;exports.getDefaultAppSettings=V1;exports.getDictByName=T1;exports.getFile=dF;exports.getFileContent=SF;exports.getFileExtentionFromType=Jz;exports.getFilenameAndTypeFromPath=Xz;exports.getFilenameFromType=e3;exports.getFilesInfo=bF;exports.getFolder=U1;exports.getFolders=uF;exports.getFunctionContent=WF;exports.getGraphData=j3;exports.getInheritedResources=R1;exports.getMonacoTheme=TF;exports.getNodeInfo=LF;exports.getPrivilegeById=Cn;exports.getPromotions=U3;exports.getResourceFromType=Rp;exports.getSavedConditions=OF;exports.getSharedAppEvents=EF;exports.getSharedCSS=kF;exports.getSharedDatasources=_F;exports.getSharedResource=ts;exports.getSupportedLanguages=xF;exports.getTypeFromExtension=kp;exports.getUserPrivileges=AF;exports.getWebForm=fF;exports.hasAttributesString=S1;exports.http=Ye;exports.i18nSubject=qz;exports.initializeDefaultProjectFiles=oF;exports.installUpdates=lF;exports.isArrayDatasource=m1;exports.isDataClassMethod=f3;exports.isDataStoreMethod=u3;exports.isDateDatasource=x3;exports.isEntity=m3;exports.isEntityDatasource=h3;exports.isEntityMethod=d3;exports.isEntitySelection=b3;exports.isEntitySelectionDatasource=g3;exports.isEntitySelectionMethod=p3;exports.isObjectAttribute=l3;exports.isObjectDatasource=b1;exports.isRelatedAttribute=c3;exports.isRelatedEntitiesAttribute=g1;exports.isRelatedEntityAttribute=v1;exports.isScalarDatasource=y1;exports.isSimpleAttribute=h1;exports.isSimpleDatasource=v3;exports.loadDS=S3;exports.loadI18n=_3;exports.localeCompare=a3;exports.log=BF;exports.login=yF;exports.lspSubject=Bz;exports.moveItem=$F;exports.outBy=t3;exports.outById=r3;exports.parents=Cc;exports.parseAttributes=k3;exports.populateShallow=$3;exports.queue=Op;exports.removeAttributesString=_1;exports.removeItem=DF;exports.removeMultiplePermissions=W3;exports.removePermission=H3;exports.removePrivilege=P3;exports.removePrivilegeFrom=N3;exports.removeRole=G3;exports.renameFile=pF;exports.renameFolder=vF;exports.renamePrivilege=D3;exports.resetResources=B3;exports.rolesToAPI=z3;exports.sanitizeContent=Rc;exports.sanitizeNameCY=T3;exports.sanitizePermissions=A1;exports.sanitizePrivileges=E1;exports.sanitizeRoles=L3;exports.saveContent=zF;exports.saveRole=Y3;exports.setCraftedComponents=NF;exports.setFileContent=Ip;exports.setSharedAppEvents=IF;exports.setSharedSources=CF;exports.sortPrivileges=k1;exports.stringifyAttributes=x1;exports.tabEventsSubject=Wz;exports.tasksManagerSubject=Uz;exports.toastSubject=i1;exports.togglePermission=V3;exports.trackEvent=VF;exports.transformDates=K3;exports.tryCreateSharedResource=Ic;exports.uniquePush=Ir;exports.useDidMountEffect=VL;exports.useDoubleClick=dz;exports.useEnhancedState=Az;exports.useFeatureFlags=sz;exports.useForwardedRef=az;exports.useHotkeys=rz;exports.useIdentity=cz;exports.useOutsideClick=nz;exports.usePrevious=iz;exports.useStateObject=uz;exports.useStateRef=oz;exports.useTip=Zy;exports.validateName=Tc;exports.validateServerSide=Gz;exports.validateValue=Yz;exports.webformEventsSubject=oc;exports.webformSubject=Hz;
208
254
  //# sourceMappingURL=index.cjs.js.map