@ws-ui/shared 1.5.7 → 1.5.9

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.
Files changed (54) hide show
  1. package/dist/components/AppLoader.d.ts +2 -3
  2. package/dist/components/ControlledSwitch.d.ts +0 -1
  3. package/dist/components/Dialog.d.ts +0 -1
  4. package/dist/components/Incase/index.d.ts +0 -1
  5. package/dist/components/Modal/Button.d.ts +0 -1
  6. package/dist/components/Modal/Icon.d.ts +0 -1
  7. package/dist/components/Modal/colors.d.ts +4 -3
  8. package/dist/components/Modal/index.d.ts +0 -1
  9. package/dist/components/Portal.d.ts +0 -1
  10. package/dist/components/Tips/components/CarouselTip.d.ts +0 -1
  11. package/dist/components/Tips/components/TextTip.d.ts +0 -1
  12. package/dist/components/Tips/components/VideoTip.d.ts +0 -1
  13. package/dist/components/Tips/components/index.d.ts +0 -1
  14. package/dist/components/Tips/index.d.ts +0 -1
  15. package/dist/components/Tips/provider.d.ts +0 -1
  16. package/dist/components/Toast.d.ts +0 -1
  17. package/dist/components/Tooltip.d.ts +0 -1
  18. package/dist/components/Tree/components/IndentLines.d.ts +0 -1
  19. package/dist/components/Tree/components/Switcher.d.ts +0 -1
  20. package/dist/components/Tree/components/Tree.d.ts +0 -1
  21. package/dist/components/Tree/components/TreeNode.d.ts +0 -1
  22. package/dist/components/Tree/index.d.ts +0 -1
  23. package/dist/components/Tree/interfaces.d.ts +0 -1
  24. package/dist/components/Tree/styled.d.ts +0 -1
  25. package/dist/constants.d.ts +0 -1
  26. package/dist/datasource-themes.d.ts +0 -1
  27. package/dist/declarations/webform/webform.d.ts +1 -0
  28. package/dist/hooks/use-didmounteffect.d.ts +0 -1
  29. package/dist/hooks/use-forwarded-ref.d.ts +0 -1
  30. package/dist/hooks/use-hotkeys.d.ts +0 -1
  31. package/dist/hooks/use-outside-click.d.ts +0 -1
  32. package/dist/hooks/use-state-ref.d.ts +0 -1
  33. package/dist/hooks/useDoubleClick.d.ts +0 -1
  34. package/dist/hooks/useIdentity.d.ts +0 -1
  35. package/dist/hooks/useStateObject.d.ts +0 -1
  36. package/dist/index.cjs.js +69 -82
  37. package/dist/index.cjs.js.map +1 -1
  38. package/dist/index.es.js +11247 -11027
  39. package/dist/index.es.js.map +1 -1
  40. package/dist/services/api.d.ts +9 -20
  41. package/dist/services/common.d.ts +2 -2
  42. package/dist/services/explorer.d.ts +2 -10
  43. package/dist/types/api.d.ts +0 -1
  44. package/dist/types/debugger.d.ts +0 -1
  45. package/dist/types/modal.d.ts +4 -5
  46. package/dist/types/shared.d.ts +0 -1
  47. package/dist/types/webform-editor.d.ts +0 -1
  48. package/dist/utils/code.d.ts +0 -1
  49. package/dist/utils/common.d.ts +0 -2
  50. package/dist/utils/explorer.d.ts +0 -1
  51. package/dist/utils/subjects.d.ts +2 -3
  52. package/package.json +25 -29
  53. package/dist/package.json +0 -70
  54. /package/dist/{style.css → shared.css} +0 -0
package/dist/index.cjs.js CHANGED
@@ -1,106 +1,93 @@
1
- "use strict";var Ex=Object.defineProperty;var Ep=e=>{throw TypeError(e)};var xx=(e,t,r)=>t in e?Ex(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var it=(e,t,r)=>xx(e,typeof t!="symbol"?t+"":t,r),qu=(e,t,r)=>t.has(e)||Ep("Cannot "+r);var Z=(e,t,r)=>(qu(e,t,"read from private field"),r?r.call(e):t.get(e)),Nt=(e,t,r)=>t.has(e)?Ep("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Je=(e,t,r,i)=>(qu(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),fn=(e,t,r)=>(qu(e,t,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=require("react/jsx-runtime"),D=require("react"),ho=require("react-dom"),mt=require("@ws-ui/icons"),Ml=require("@emotion/react");function Jh(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 C=Jh(D),_x=Jh(ho),Qh=({children:e})=>ho.createPortal(e,document.querySelector("body"));var xp=function(t){return t.reduce(function(r,i){var a=i[0],s=i[1];return r[a]=s,r},{})},_p=typeof window<"u"&&window.document&&window.document.createElement?C.useLayoutEffect:C.useEffect,jt="top",fr="bottom",cr="right",Wt="left",af="auto",vo=[jt,fr,cr,Wt],bi="start",ro="end",Ox="clippingParents",ev="viewport",Bi="popper",Ax="reference",Op=vo.reduce(function(e,t){return e.concat([t+"-"+bi,t+"-"+ro])},[]),tv=[].concat(vo,[af]).reduce(function(e,t){return e.concat([t,t+"-"+bi,t+"-"+ro])},[]),Tx="beforeRead",Cx="read",Px="afterRead",Rx="beforeMain",Ix="main",Mx="afterMain",Fx="beforeWrite",Lx="write",$x="afterWrite",Dx=[Tx,Cx,Px,Rx,Ix,Mx,Fx,Lx,$x];function Rr(e){return e?(e.nodeName||"").toLowerCase():null}function Vt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Zn(e){var t=Vt(e).Element;return e instanceof t||e instanceof Element}function lr(e){var t=Vt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function sf(e){if(typeof ShadowRoot>"u")return!1;var t=Vt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function kx(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var i=t.styles[r]||{},a=t.attributes[r]||{},s=t.elements[r];!lr(s)||!Rr(s)||(Object.assign(s.style,i),Object.keys(a).forEach(function(l){var f=a[l];f===!1?s.removeAttribute(l):s.setAttribute(l,f===!0?"":f)}))})}function Nx(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(i){var a=t.elements[i],s=t.attributes[i]||{},l=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:r[i]),f=l.reduce(function(d,p){return d[p]="",d},{});!lr(a)||!Rr(a)||(Object.assign(a.style,f),Object.keys(s).forEach(function(d){a.removeAttribute(d)}))})}}const jx={name:"applyStyles",enabled:!0,phase:"write",fn:kx,effect:Nx,requires:["computeStyles"]};function Pr(e){return e.split("-")[0]}var Bn=Math.max,Za=Math.min,Si=Math.round;function Fl(){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 rv(){return!/^((?!chrome|android).)*safari/i.test(Fl())}function Ei(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var i=e.getBoundingClientRect(),a=1,s=1;t&&lr(e)&&(a=e.offsetWidth>0&&Si(i.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Si(i.height)/e.offsetHeight||1);var l=Zn(e)?Vt(e):window,f=l.visualViewport,d=!rv()&&r,p=(i.left+(d&&f?f.offsetLeft:0))/a,h=(i.top+(d&&f?f.offsetTop:0))/s,b=i.width/a,v=i.height/s;return{width:b,height:v,top:h,right:p+b,bottom:h+v,left:p,x:p,y:h}}function uf(e){var t=Ei(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 nv(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&sf(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Vr(e){return Vt(e).getComputedStyle(e)}function Wx(e){return["table","td","th"].indexOf(Rr(e))>=0}function Sn(e){return((Zn(e)?e.ownerDocument:e.document)||window.document).documentElement}function is(e){return Rr(e)==="html"?e:e.assignedSlot||e.parentNode||(sf(e)?e.host:null)||Sn(e)}function Ap(e){return!lr(e)||Vr(e).position==="fixed"?null:e.offsetParent}function zx(e){var t=/firefox/i.test(Fl()),r=/Trident/i.test(Fl());if(r&&lr(e)){var i=Vr(e);if(i.position==="fixed")return null}var a=is(e);for(sf(a)&&(a=a.host);lr(a)&&["html","body"].indexOf(Rr(a))<0;){var s=Vr(a);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return a;a=a.parentNode}return null}function mo(e){for(var t=Vt(e),r=Ap(e);r&&Wx(r)&&Vr(r).position==="static";)r=Ap(r);return r&&(Rr(r)==="html"||Rr(r)==="body"&&Vr(r).position==="static")?t:r||zx(e)||t}function lf(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Xi(e,t,r){return Bn(e,Za(t,r))}function Ux(e,t,r){var i=Xi(e,t,r);return i>r?r:i}function iv(){return{top:0,right:0,bottom:0,left:0}}function ov(e){return Object.assign({},iv(),e)}function av(e,t){return t.reduce(function(r,i){return r[i]=e,r},{})}var Bx=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,ov(typeof t!="number"?t:av(t,vo))};function Hx(e){var t,r=e.state,i=e.name,a=e.options,s=r.elements.arrow,l=r.modifiersData.popperOffsets,f=Pr(r.placement),d=lf(f),p=[Wt,cr].indexOf(f)>=0,h=p?"height":"width";if(!(!s||!l)){var b=Bx(a.padding,r),v=uf(s),w=d==="y"?jt:Wt,E=d==="y"?fr:cr,y=r.rects.reference[h]+r.rects.reference[d]-l[d]-r.rects.popper[h],x=l[d]-r.rects.reference[d],A=mo(s),I=A?d==="y"?A.clientHeight||0:A.clientWidth||0:0,P=y/2-x/2,F=b[w],O=I-v[h]-b[E],L=I/2-v[h]/2+P,U=Xi(F,L,O),z=d;r.modifiersData[i]=(t={},t[z]=U,t.centerOffset=U-L,t)}}function qx(e){var t=e.state,r=e.options,i=r.element,a=i===void 0?"[data-popper-arrow]":i;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||nv(t.elements.popper,a)&&(t.elements.arrow=a))}const Zx={name:"arrow",enabled:!0,phase:"main",fn:Hx,effect:qx,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function xi(e){return e.split("-")[1]}var Gx={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Kx(e,t){var r=e.x,i=e.y,a=t.devicePixelRatio||1;return{x:Si(r*a)/a||0,y:Si(i*a)/a||0}}function Tp(e){var t,r=e.popper,i=e.popperRect,a=e.placement,s=e.variation,l=e.offsets,f=e.position,d=e.gpuAcceleration,p=e.adaptive,h=e.roundOffsets,b=e.isFixed,v=l.x,w=v===void 0?0:v,E=l.y,y=E===void 0?0:E,x=typeof h=="function"?h({x:w,y}):{x:w,y};w=x.x,y=x.y;var A=l.hasOwnProperty("x"),I=l.hasOwnProperty("y"),P=Wt,F=jt,O=window;if(p){var L=mo(r),U="clientHeight",z="clientWidth";if(L===Vt(r)&&(L=Sn(r),Vr(L).position!=="static"&&f==="absolute"&&(U="scrollHeight",z="scrollWidth")),L=L,a===jt||(a===Wt||a===cr)&&s===ro){F=fr;var q=b&&L===O&&O.visualViewport?O.visualViewport.height:L[U];y-=q-i.height,y*=d?1:-1}if(a===Wt||(a===jt||a===fr)&&s===ro){P=cr;var V=b&&L===O&&O.visualViewport?O.visualViewport.width:L[z];w-=V-i.width,w*=d?1:-1}}var ee=Object.assign({position:f},p&&Gx),be=h===!0?Kx({x:w,y},Vt(r)):{x:w,y};if(w=be.x,y=be.y,d){var pe;return Object.assign({},ee,(pe={},pe[F]=I?"0":"",pe[P]=A?"0":"",pe.transform=(O.devicePixelRatio||1)<=1?"translate("+w+"px, "+y+"px)":"translate3d("+w+"px, "+y+"px, 0)",pe))}return Object.assign({},ee,(t={},t[F]=I?y+"px":"",t[P]=A?w+"px":"",t.transform="",t))}function Yx(e){var t=e.state,r=e.options,i=r.gpuAcceleration,a=i===void 0?!0:i,s=r.adaptive,l=s===void 0?!0:s,f=r.roundOffsets,d=f===void 0?!0:f,p={placement:Pr(t.placement),variation:xi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Tp(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Tp(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Vx={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Yx,data:{}};var wa={passive:!0};function Xx(e){var t=e.state,r=e.instance,i=e.options,a=i.scroll,s=a===void 0?!0:a,l=i.resize,f=l===void 0?!0:l,d=Vt(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&p.forEach(function(h){h.addEventListener("scroll",r.update,wa)}),f&&d.addEventListener("resize",r.update,wa),function(){s&&p.forEach(function(h){h.removeEventListener("scroll",r.update,wa)}),f&&d.removeEventListener("resize",r.update,wa)}}const Jx={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Xx,data:{}};var Qx={left:"right",right:"left",bottom:"top",top:"bottom"};function ka(e){return e.replace(/left|right|bottom|top/g,function(t){return Qx[t]})}var e_={start:"end",end:"start"};function Cp(e){return e.replace(/start|end/g,function(t){return e_[t]})}function ff(e){var t=Vt(e),r=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function cf(e){return Ei(Sn(e)).left+ff(e).scrollLeft}function t_(e,t){var r=Vt(e),i=Sn(e),a=r.visualViewport,s=i.clientWidth,l=i.clientHeight,f=0,d=0;if(a){s=a.width,l=a.height;var p=rv();(p||!p&&t==="fixed")&&(f=a.offsetLeft,d=a.offsetTop)}return{width:s,height:l,x:f+cf(e),y:d}}function r_(e){var t,r=Sn(e),i=ff(e),a=(t=e.ownerDocument)==null?void 0:t.body,s=Bn(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),l=Bn(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),f=-i.scrollLeft+cf(e),d=-i.scrollTop;return Vr(a||r).direction==="rtl"&&(f+=Bn(r.clientWidth,a?a.clientWidth:0)-s),{width:s,height:l,x:f,y:d}}function df(e){var t=Vr(e),r=t.overflow,i=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+i)}function sv(e){return["html","body","#document"].indexOf(Rr(e))>=0?e.ownerDocument.body:lr(e)&&df(e)?e:sv(is(e))}function Ji(e,t){var r;t===void 0&&(t=[]);var i=sv(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),s=Vt(i),l=a?[s].concat(s.visualViewport||[],df(i)?i:[]):i,f=t.concat(l);return a?f:f.concat(Ji(is(l)))}function Ll(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function n_(e,t){var r=Ei(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 Pp(e,t,r){return t===ev?Ll(t_(e,r)):Zn(t)?n_(t,r):Ll(r_(Sn(e)))}function i_(e){var t=Ji(is(e)),r=["absolute","fixed"].indexOf(Vr(e).position)>=0,i=r&&lr(e)?mo(e):e;return Zn(i)?t.filter(function(a){return Zn(a)&&nv(a,i)&&Rr(a)!=="body"}):[]}function o_(e,t,r,i){var a=t==="clippingParents"?i_(e):[].concat(t),s=[].concat(a,[r]),l=s[0],f=s.reduce(function(d,p){var h=Pp(e,p,i);return d.top=Bn(h.top,d.top),d.right=Za(h.right,d.right),d.bottom=Za(h.bottom,d.bottom),d.left=Bn(h.left,d.left),d},Pp(e,l,i));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}function uv(e){var t=e.reference,r=e.element,i=e.placement,a=i?Pr(i):null,s=i?xi(i):null,l=t.x+t.width/2-r.width/2,f=t.y+t.height/2-r.height/2,d;switch(a){case jt:d={x:l,y:t.y-r.height};break;case fr:d={x:l,y:t.y+t.height};break;case cr:d={x:t.x+t.width,y:f};break;case Wt:d={x:t.x-r.width,y:f};break;default:d={x:t.x,y:t.y}}var p=a?lf(a):null;if(p!=null){var h=p==="y"?"height":"width";switch(s){case bi:d[p]=d[p]-(t[h]/2-r[h]/2);break;case ro:d[p]=d[p]+(t[h]/2-r[h]/2);break}}return d}function no(e,t){t===void 0&&(t={});var r=t,i=r.placement,a=i===void 0?e.placement:i,s=r.strategy,l=s===void 0?e.strategy:s,f=r.boundary,d=f===void 0?Ox:f,p=r.rootBoundary,h=p===void 0?ev:p,b=r.elementContext,v=b===void 0?Bi:b,w=r.altBoundary,E=w===void 0?!1:w,y=r.padding,x=y===void 0?0:y,A=ov(typeof x!="number"?x:av(x,vo)),I=v===Bi?Ax:Bi,P=e.rects.popper,F=e.elements[E?I:v],O=o_(Zn(F)?F:F.contextElement||Sn(e.elements.popper),d,h,l),L=Ei(e.elements.reference),U=uv({reference:L,element:P,placement:a}),z=Ll(Object.assign({},P,U)),q=v===Bi?z:L,V={top:O.top-q.top+A.top,bottom:q.bottom-O.bottom+A.bottom,left:O.left-q.left+A.left,right:q.right-O.right+A.right},ee=e.modifiersData.offset;if(v===Bi&&ee){var be=ee[a];Object.keys(V).forEach(function(pe){var Ae=[cr,fr].indexOf(pe)>=0?1:-1,Ne=[jt,fr].indexOf(pe)>=0?"y":"x";V[pe]+=be[Ne]*Ae})}return V}function a_(e,t){t===void 0&&(t={});var r=t,i=r.placement,a=r.boundary,s=r.rootBoundary,l=r.padding,f=r.flipVariations,d=r.allowedAutoPlacements,p=d===void 0?tv:d,h=xi(i),b=h?f?Op:Op.filter(function(E){return xi(E)===h}):vo,v=b.filter(function(E){return p.indexOf(E)>=0});v.length===0&&(v=b);var w=v.reduce(function(E,y){return E[y]=no(e,{placement:y,boundary:a,rootBoundary:s,padding:l})[Pr(y)],E},{});return Object.keys(w).sort(function(E,y){return w[E]-w[y]})}function s_(e){if(Pr(e)===af)return[];var t=ka(e);return[Cp(e),t,Cp(t)]}function u_(e){var t=e.state,r=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var a=r.mainAxis,s=a===void 0?!0:a,l=r.altAxis,f=l===void 0?!0:l,d=r.fallbackPlacements,p=r.padding,h=r.boundary,b=r.rootBoundary,v=r.altBoundary,w=r.flipVariations,E=w===void 0?!0:w,y=r.allowedAutoPlacements,x=t.options.placement,A=Pr(x),I=A===x,P=d||(I||!E?[ka(x)]:s_(x)),F=[x].concat(P).reduce(function(Q,ae){return Q.concat(Pr(ae)===af?a_(t,{placement:ae,boundary:h,rootBoundary:b,padding:p,flipVariations:E,allowedAutoPlacements:y}):ae)},[]),O=t.rects.reference,L=t.rects.popper,U=new Map,z=!0,q=F[0],V=0;V<F.length;V++){var ee=F[V],be=Pr(ee),pe=xi(ee)===bi,Ae=[jt,fr].indexOf(be)>=0,Ne=Ae?"width":"height",ve=no(t,{placement:ee,boundary:h,rootBoundary:b,altBoundary:v,padding:p}),Te=Ae?pe?cr:Wt:pe?fr:jt;O[Ne]>L[Ne]&&(Te=ka(Te));var Ge=ka(Te),Ct=[];if(s&&Ct.push(ve[be]<=0),f&&Ct.push(ve[Te]<=0,ve[Ge]<=0),Ct.every(function(Q){return Q})){q=ee,z=!1;break}U.set(ee,Ct)}if(z)for(var H=E?3:1,G=function(ae){var se=F.find(function(ce){var ue=U.get(ce);if(ue)return ue.slice(0,ae).every(function(ge){return ge})});if(se)return q=se,"break"},re=H;re>0;re--){var le=G(re);if(le==="break")break}t.placement!==q&&(t.modifiersData[i]._skip=!0,t.placement=q,t.reset=!0)}}const l_={name:"flip",enabled:!0,phase:"main",fn:u_,requiresIfExists:["offset"],data:{_skip:!1}};function Rp(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 Ip(e){return[jt,cr,fr,Wt].some(function(t){return e[t]>=0})}function f_(e){var t=e.state,r=e.name,i=t.rects.reference,a=t.rects.popper,s=t.modifiersData.preventOverflow,l=no(t,{elementContext:"reference"}),f=no(t,{altBoundary:!0}),d=Rp(l,i),p=Rp(f,a,s),h=Ip(d),b=Ip(p);t.modifiersData[r]={referenceClippingOffsets:d,popperEscapeOffsets:p,isReferenceHidden:h,hasPopperEscaped:b},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":b})}const c_={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:f_};function d_(e,t,r){var i=Pr(e),a=[Wt,jt].indexOf(i)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,l=s[0],f=s[1];return l=l||0,f=(f||0)*a,[Wt,cr].indexOf(i)>=0?{x:f,y:l}:{x:l,y:f}}function p_(e){var t=e.state,r=e.options,i=e.name,a=r.offset,s=a===void 0?[0,0]:a,l=tv.reduce(function(h,b){return h[b]=d_(b,t.rects,s),h},{}),f=l[t.placement],d=f.x,p=f.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=p),t.modifiersData[i]=l}const h_={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:p_};function v_(e){var t=e.state,r=e.name;t.modifiersData[r]=uv({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const m_={name:"popperOffsets",enabled:!0,phase:"read",fn:v_,data:{}};function g_(e){return e==="x"?"y":"x"}function y_(e){var t=e.state,r=e.options,i=e.name,a=r.mainAxis,s=a===void 0?!0:a,l=r.altAxis,f=l===void 0?!1:l,d=r.boundary,p=r.rootBoundary,h=r.altBoundary,b=r.padding,v=r.tether,w=v===void 0?!0:v,E=r.tetherOffset,y=E===void 0?0:E,x=no(t,{boundary:d,rootBoundary:p,padding:b,altBoundary:h}),A=Pr(t.placement),I=xi(t.placement),P=!I,F=lf(A),O=g_(F),L=t.modifiersData.popperOffsets,U=t.rects.reference,z=t.rects.popper,q=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,V=typeof q=="number"?{mainAxis:q,altAxis:q}:Object.assign({mainAxis:0,altAxis:0},q),ee=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,be={x:0,y:0};if(L){if(s){var pe,Ae=F==="y"?jt:Wt,Ne=F==="y"?fr:cr,ve=F==="y"?"height":"width",Te=L[F],Ge=Te+x[Ae],Ct=Te-x[Ne],H=w?-z[ve]/2:0,G=I===bi?U[ve]:z[ve],re=I===bi?-z[ve]:-U[ve],le=t.elements.arrow,Q=w&&le?uf(le):{width:0,height:0},ae=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:iv(),se=ae[Ae],ce=ae[Ne],ue=Xi(0,U[ve],Q[ve]),ge=P?U[ve]/2-H-ue-se-V.mainAxis:G-ue-se-V.mainAxis,xe=P?-U[ve]/2+H+ue+ce+V.mainAxis:re+ue+ce+V.mainAxis,He=t.elements.arrow&&mo(t.elements.arrow),K=He?F==="y"?He.clientTop||0:He.clientLeft||0:0,gt=(pe=ee==null?void 0:ee[F])!=null?pe:0,st=Te+ge-gt-K,br=Te+xe-gt,Co=Xi(w?Za(Ge,st):Ge,Te,w?Bn(Ct,br):Ct);L[F]=Co,be[F]=Co-Te}if(f){var Xt,Po=F==="x"?jt:Wt,xs=F==="x"?fr:cr,zt=L[O],yt=O==="y"?"height":"width",Xr=zt+x[Po],On=zt-x[xs],Ti=[jt,Wt].indexOf(A)!==-1,Jr=(Xt=ee==null?void 0:ee[O])!=null?Xt:0,Ro=Ti?Xr:zt-U[yt]-z[yt]-Jr+V.altAxis,Qr=Ti?zt+U[yt]+z[yt]-Jr-V.altAxis:On,Lr=w&&Ti?Ux(Ro,zt,Qr):Xi(w?Ro:Xr,zt,w?Qr:On);L[O]=Lr,be[O]=Lr-zt}t.modifiersData[i]=be}}const w_={name:"preventOverflow",enabled:!0,phase:"main",fn:y_,requiresIfExists:["offset"]};function b_(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function S_(e){return e===Vt(e)||!lr(e)?ff(e):b_(e)}function E_(e){var t=e.getBoundingClientRect(),r=Si(t.width)/e.offsetWidth||1,i=Si(t.height)/e.offsetHeight||1;return r!==1||i!==1}function x_(e,t,r){r===void 0&&(r=!1);var i=lr(t),a=lr(t)&&E_(t),s=Sn(t),l=Ei(e,a,r),f={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(i||!i&&!r)&&((Rr(t)!=="body"||df(s))&&(f=S_(t)),lr(t)?(d=Ei(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):s&&(d.x=cf(s))),{x:l.left+f.scrollLeft-d.x,y:l.top+f.scrollTop-d.y,width:l.width,height:l.height}}function __(e){var t=new Map,r=new Set,i=[];e.forEach(function(s){t.set(s.name,s)});function a(s){r.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(f){if(!r.has(f)){var d=t.get(f);d&&a(d)}}),i.push(s)}return e.forEach(function(s){r.has(s.name)||a(s)}),i}function O_(e){var t=__(e);return Dx.reduce(function(r,i){return r.concat(t.filter(function(a){return a.phase===i}))},[])}function A_(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function T_(e){var t=e.reduce(function(r,i){var a=r[i.name];return r[i.name]=a?Object.assign({},a,i,{options:Object.assign({},a.options,i.options),data:Object.assign({},a.data,i.data)}):i,r},{});return Object.keys(t).map(function(r){return t[r]})}var Mp={placement:"bottom",modifiers:[],strategy:"absolute"};function Fp(){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 C_(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,i=r===void 0?[]:r,a=t.defaultOptions,s=a===void 0?Mp:a;return function(f,d,p){p===void 0&&(p=s);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},Mp,s),modifiersData:{},elements:{reference:f,popper:d},attributes:{},styles:{}},b=[],v=!1,w={state:h,setOptions:function(A){var I=typeof A=="function"?A(h.options):A;y(),h.options=Object.assign({},s,h.options,I),h.scrollParents={reference:Zn(f)?Ji(f):f.contextElement?Ji(f.contextElement):[],popper:Ji(d)};var P=O_(T_([].concat(i,h.options.modifiers)));return h.orderedModifiers=P.filter(function(F){return F.enabled}),E(),w.update()},forceUpdate:function(){if(!v){var A=h.elements,I=A.reference,P=A.popper;if(Fp(I,P)){h.rects={reference:x_(I,mo(P),h.options.strategy==="fixed"),popper:uf(P)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(V){return h.modifiersData[V.name]=Object.assign({},V.data)});for(var F=0;F<h.orderedModifiers.length;F++){if(h.reset===!0){h.reset=!1,F=-1;continue}var O=h.orderedModifiers[F],L=O.fn,U=O.options,z=U===void 0?{}:U,q=O.name;typeof L=="function"&&(h=L({state:h,options:z,name:q,instance:w})||h)}}}},update:A_(function(){return new Promise(function(x){w.forceUpdate(),x(h)})}),destroy:function(){y(),v=!0}};if(!Fp(f,d))return w;w.setOptions(p).then(function(x){!v&&p.onFirstUpdate&&p.onFirstUpdate(x)});function E(){h.orderedModifiers.forEach(function(x){var A=x.name,I=x.options,P=I===void 0?{}:I,F=x.effect;if(typeof F=="function"){var O=F({state:h,name:A,instance:w,options:P}),L=function(){};b.push(O||L)}})}function y(){b.forEach(function(x){return x()}),b=[]}return w}}var P_=[Jx,m_,Vx,jx,h_,l_,w_,Zx,c_],R_=C_({defaultModifiers:P_}),Nn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function I_(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var a=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,a.get?a:{enumerable:!0,get:function(){return e[i]}})}),r}var M_=typeof Element<"u",F_=typeof Map=="function",L_=typeof Set=="function",$_=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Na(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,i,a;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(i=r;i--!==0;)if(!Na(e[i],t[i]))return!1;return!0}var s;if(F_&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(i=s.next()).done;)if(!t.has(i.value[0]))return!1;for(s=e.entries();!(i=s.next()).done;)if(!Na(i.value[1],t.get(i.value[0])))return!1;return!0}if(L_&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(i=s.next()).done;)if(!t.has(i.value[0]))return!1;return!0}if($_&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(i=r;i--!==0;)if(e[i]!==t[i])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[i]))return!1;if(M_&&e instanceof Element)return!1;for(i=r;i--!==0;)if(!((a[i]==="_owner"||a[i]==="__v"||a[i]==="__o")&&e.$$typeof)&&!Na(e[a[i]],t[a[i]]))return!1;return!0}return e!==e&&t!==t}var D_=function(t,r){try{return Na(t,r)}catch(i){if((i.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw i}};const k_=pf(D_);var N_=[],lv=function(t,r,i){i===void 0&&(i={});var a=C.useRef(null),s={onFirstUpdate:i.onFirstUpdate,placement:i.placement||"bottom",strategy:i.strategy||"absolute",modifiers:i.modifiers||N_},l=C.useState({styles:{popper:{position:s.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),f=l[0],d=l[1],p=C.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(w){var E=w.state,y=Object.keys(E.elements);_x.flushSync(function(){d({styles:xp(y.map(function(x){return[x,E.styles[x]||{}]})),attributes:xp(y.map(function(x){return[x,E.attributes[x]]}))})})},requires:["computeStyles"]}},[]),h=C.useMemo(function(){var v={onFirstUpdate:s.onFirstUpdate,placement:s.placement,strategy:s.strategy,modifiers:[].concat(s.modifiers,[p,{name:"applyStyles",enabled:!1}])};return k_(a.current,v)?a.current||v:(a.current=v,v)},[s.onFirstUpdate,s.placement,s.strategy,s.modifiers,p]),b=C.useRef();return _p(function(){b.current&&b.current.setOptions(h)},[h]),_p(function(){if(!(t==null||r==null)){var v=i.createPopper||R_,w=v(t,r,h);return b.current=w,function(){w.destroy(),b.current=null}}},[t,r,i.createPopper]),{state:b.current?b.current.state:null,styles:f.styles,attributes:f.attributes,update:b.current?b.current.update:null,forceUpdate:b.current?b.current.forceUpdate:null}};const fv=e=>$.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),cv=D.forwardRef(({children:e,style:t,attributes:r},i)=>$.jsx("div",{style:{...t,zIndex:2e3},...r,ref:i,className:"w-60 rounded border rounded border border-grey-50 bg-grey-900 shadow-2xl","data-cy":"dialogBody",children:e})),j_=({referenceElement:e,placement:t,isOpen:r,children:i,onClose:a})=>{const[s,l]=D.useState(null),{styles:f,attributes:d}=lv(e,s,{placement:t||"bottom-start"}),p=D.useCallback(()=>{a&&a()},[a]);return r?$.jsxs(Qh,{children:[$.jsx(fv,{onClick:()=>p()}),$.jsx(cv,{ref:l,style:f.popper,attributes:d.popper,children:i})]}):null};var dv={exports:{}};/*!
1
+ "use strict";var QE=Object.defineProperty;var Id=e=>{throw TypeError(e)};var e_=(e,r,n)=>r in e?QE(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n;var Je=(e,r,n)=>e_(e,typeof r!="symbol"?r+"":r,n),bu=(e,r,n)=>r.has(e)||Id("Cannot "+n);var re=(e,r,n)=>(bu(e,r,"read from private field"),n?n.call(e):r.get(e)),Ot=(e,r,n)=>r.has(e)?Id("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,n),Ge=(e,r,n,o)=>(bu(e,r,"write to private field"),o?o.call(e,n):r.set(e,n),n),qr=(e,r,n)=>(bu(e,r,"access private method"),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("react/jsx-runtime"),U=require("react"),ao=require("react-dom"),ft=require("@ws-ui/icons"),il=require("@emotion/react");function zh(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return r.default=e,Object.freeze(r)}const D=zh(U),t_=zh(ao),Bh=({children:e})=>ao.createPortal(e,document.querySelector("body"));var Ld=function(r){return r.reduce(function(n,o){var a=o[0],u=o[1];return n[a]=u,n},{})},Fd=typeof window<"u"&&window.document&&window.document.createElement?D.useLayoutEffect:D.useEffect,At="top",Yt="bottom",Xt="right",Tt="left",xl="auto",so=[At,Yt,Xt,Tt],Qn="start",Qi="end",r_="clippingParents",Hh="viewport",Ei="popper",n_="reference",$d=so.reduce(function(e,r){return e.concat([r+"-"+Qn,r+"-"+Qi])},[]),qh=[].concat(so,[xl]).reduce(function(e,r){return e.concat([r,r+"-"+Qn,r+"-"+Qi])},[]),i_="beforeRead",o_="read",a_="afterRead",s_="beforeMain",u_="main",l_="afterMain",f_="beforeWrite",c_="write",d_="afterWrite",p_=[i_,o_,a_,s_,u_,l_,f_,c_,d_];function vr(e){return e?(e.nodeName||"").toLowerCase():null}function Dt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var r=e.ownerDocument;return r&&r.defaultView||window}return e}function _n(e){var r=Dt(e).Element;return e instanceof r||e instanceof Element}function Vt(e){var r=Dt(e).HTMLElement;return e instanceof r||e instanceof HTMLElement}function Ol(e){if(typeof ShadowRoot>"u")return!1;var r=Dt(e).ShadowRoot;return e instanceof r||e instanceof ShadowRoot}function h_(e){var r=e.state;Object.keys(r.elements).forEach(function(n){var o=r.styles[n]||{},a=r.attributes[n]||{},u=r.elements[n];!Vt(u)||!vr(u)||(Object.assign(u.style,o),Object.keys(a).forEach(function(f){var d=a[f];d===!1?u.removeAttribute(f):u.setAttribute(f,d===!0?"":d)}))})}function v_(e){var r=e.state,n={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(r.elements.popper.style,n.popper),r.styles=n,r.elements.arrow&&Object.assign(r.elements.arrow.style,n.arrow),function(){Object.keys(r.elements).forEach(function(o){var a=r.elements[o],u=r.attributes[o]||{},f=Object.keys(r.styles.hasOwnProperty(o)?r.styles[o]:n[o]),d=f.reduce(function(w,S){return w[S]="",w},{});!Vt(a)||!vr(a)||(Object.assign(a.style,d),Object.keys(u).forEach(function(w){a.removeAttribute(w)}))})}}const m_={name:"applyStyles",enabled:!0,phase:"write",fn:h_,effect:v_,requires:["computeStyles"]};function hr(e){return e.split("-")[0]}var bn=Math.max,Ma=Math.min,ei=Math.round;function ol(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(r){return r.brand+"/"+r.version}).join(" "):navigator.userAgent}function Zh(){return!/^((?!chrome|android).)*safari/i.test(ol())}function ti(e,r,n){r===void 0&&(r=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),a=1,u=1;r&&Vt(e)&&(a=e.offsetWidth>0&&ei(o.width)/e.offsetWidth||1,u=e.offsetHeight>0&&ei(o.height)/e.offsetHeight||1);var f=_n(e)?Dt(e):window,d=f.visualViewport,w=!Zh()&&n,S=(o.left+(w&&d?d.offsetLeft:0))/a,y=(o.top+(w&&d?d.offsetTop:0))/u,h=o.width/a,l=o.height/u;return{width:h,height:l,top:y,right:S+h,bottom:y+l,left:S,x:S,y}}function Al(e){var r=ti(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(r.width-n)<=1&&(n=r.width),Math.abs(r.height-o)<=1&&(o=r.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function Gh(e,r){var n=r.getRootNode&&r.getRootNode();if(e.contains(r))return!0;if(n&&Ol(n)){var o=r;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Ir(e){return Dt(e).getComputedStyle(e)}function g_(e){return["table","td","th"].indexOf(vr(e))>=0}function tn(e){return((_n(e)?e.ownerDocument:e.document)||window.document).documentElement}function ja(e){return vr(e)==="html"?e:e.assignedSlot||e.parentNode||(Ol(e)?e.host:null)||tn(e)}function Dd(e){return!Vt(e)||Ir(e).position==="fixed"?null:e.offsetParent}function y_(e){var r=/firefox/i.test(ol()),n=/Trident/i.test(ol());if(n&&Vt(e)){var o=Ir(e);if(o.position==="fixed")return null}var a=ja(e);for(Ol(a)&&(a=a.host);Vt(a)&&["html","body"].indexOf(vr(a))<0;){var u=Ir(a);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||r&&u.willChange==="filter"||r&&u.filter&&u.filter!=="none")return a;a=a.parentNode}return null}function uo(e){for(var r=Dt(e),n=Dd(e);n&&g_(n)&&Ir(n).position==="static";)n=Dd(n);return n&&(vr(n)==="html"||vr(n)==="body"&&Ir(n).position==="static")?r:n||y_(e)||r}function Tl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Yi(e,r,n){return bn(e,Ma(r,n))}function w_(e,r,n){var o=Yi(e,r,n);return o>n?n:o}function Kh(){return{top:0,right:0,bottom:0,left:0}}function Vh(e){return Object.assign({},Kh(),e)}function Yh(e,r){return r.reduce(function(n,o){return n[o]=e,n},{})}var b_=function(r,n){return r=typeof r=="function"?r(Object.assign({},n.rects,{placement:n.placement})):r,Vh(typeof r!="number"?r:Yh(r,so))};function S_(e){var r,n=e.state,o=e.name,a=e.options,u=n.elements.arrow,f=n.modifiersData.popperOffsets,d=hr(n.placement),w=Tl(d),S=[Tt,Xt].indexOf(d)>=0,y=S?"height":"width";if(!(!u||!f)){var h=b_(a.padding,n),l=Al(u),p=w==="y"?At:Tt,m=w==="y"?Yt:Xt,c=n.rects.reference[y]+n.rects.reference[w]-f[w]-n.rects.popper[y],g=f[w]-n.rects.reference[w],b=uo(u),_=b?w==="y"?b.clientHeight||0:b.clientWidth||0:0,x=c/2-g/2,C=h[p],T=_-l[y]-h[m],M=_/2-l[y]/2+x,H=Yi(C,M,T),F=w;n.modifiersData[o]=(r={},r[F]=H,r.centerOffset=H-M,r)}}function E_(e){var r=e.state,n=e.options,o=n.element,a=o===void 0?"[data-popper-arrow]":o;a!=null&&(typeof a=="string"&&(a=r.elements.popper.querySelector(a),!a)||Gh(r.elements.popper,a)&&(r.elements.arrow=a))}const __={name:"arrow",enabled:!0,phase:"main",fn:S_,effect:E_,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ri(e){return e.split("-")[1]}var x_={top:"auto",right:"auto",bottom:"auto",left:"auto"};function O_(e,r){var n=e.x,o=e.y,a=r.devicePixelRatio||1;return{x:ei(n*a)/a||0,y:ei(o*a)/a||0}}function kd(e){var r,n=e.popper,o=e.popperRect,a=e.placement,u=e.variation,f=e.offsets,d=e.position,w=e.gpuAcceleration,S=e.adaptive,y=e.roundOffsets,h=e.isFixed,l=f.x,p=l===void 0?0:l,m=f.y,c=m===void 0?0:m,g=typeof y=="function"?y({x:p,y:c}):{x:p,y:c};p=g.x,c=g.y;var b=f.hasOwnProperty("x"),_=f.hasOwnProperty("y"),x=Tt,C=At,T=window;if(S){var M=uo(n),H="clientHeight",F="clientWidth";if(M===Dt(n)&&(M=tn(n),Ir(M).position!=="static"&&d==="absolute"&&(H="scrollHeight",F="scrollWidth")),M=M,a===At||(a===Tt||a===Xt)&&u===Qi){C=Yt;var N=h&&M===T&&T.visualViewport?T.visualViewport.height:M[H];c-=N-o.height,c*=w?1:-1}if(a===Tt||(a===At||a===Yt)&&u===Qi){x=Xt;var X=h&&M===T&&T.visualViewport?T.visualViewport.width:M[F];p-=X-o.width,p*=w?1:-1}}var j=Object.assign({position:d},S&&x_),L=y===!0?O_({x:p,y:c},Dt(n)):{x:p,y:c};if(p=L.x,c=L.y,w){var z;return Object.assign({},j,(z={},z[C]=_?"0":"",z[x]=b?"0":"",z.transform=(T.devicePixelRatio||1)<=1?"translate("+p+"px, "+c+"px)":"translate3d("+p+"px, "+c+"px, 0)",z))}return Object.assign({},j,(r={},r[C]=_?c+"px":"",r[x]=b?p+"px":"",r.transform="",r))}function A_(e){var r=e.state,n=e.options,o=n.gpuAcceleration,a=o===void 0?!0:o,u=n.adaptive,f=u===void 0?!0:u,d=n.roundOffsets,w=d===void 0?!0:d,S={placement:hr(r.placement),variation:ri(r.placement),popper:r.elements.popper,popperRect:r.rects.popper,gpuAcceleration:a,isFixed:r.options.strategy==="fixed"};r.modifiersData.popperOffsets!=null&&(r.styles.popper=Object.assign({},r.styles.popper,kd(Object.assign({},S,{offsets:r.modifiersData.popperOffsets,position:r.options.strategy,adaptive:f,roundOffsets:w})))),r.modifiersData.arrow!=null&&(r.styles.arrow=Object.assign({},r.styles.arrow,kd(Object.assign({},S,{offsets:r.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:w})))),r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-placement":r.placement})}const T_={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:A_,data:{}};var oa={passive:!0};function C_(e){var r=e.state,n=e.instance,o=e.options,a=o.scroll,u=a===void 0?!0:a,f=o.resize,d=f===void 0?!0:f,w=Dt(r.elements.popper),S=[].concat(r.scrollParents.reference,r.scrollParents.popper);return u&&S.forEach(function(y){y.addEventListener("scroll",n.update,oa)}),d&&w.addEventListener("resize",n.update,oa),function(){u&&S.forEach(function(y){y.removeEventListener("scroll",n.update,oa)}),d&&w.removeEventListener("resize",n.update,oa)}}const P_={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:C_,data:{}};var R_={left:"right",right:"left",bottom:"top",top:"bottom"};function xa(e){return e.replace(/left|right|bottom|top/g,function(r){return R_[r]})}var M_={start:"end",end:"start"};function Nd(e){return e.replace(/start|end/g,function(r){return M_[r]})}function Cl(e){var r=Dt(e),n=r.pageXOffset,o=r.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Pl(e){return ti(tn(e)).left+Cl(e).scrollLeft}function I_(e,r){var n=Dt(e),o=tn(e),a=n.visualViewport,u=o.clientWidth,f=o.clientHeight,d=0,w=0;if(a){u=a.width,f=a.height;var S=Zh();(S||!S&&r==="fixed")&&(d=a.offsetLeft,w=a.offsetTop)}return{width:u,height:f,x:d+Pl(e),y:w}}function L_(e){var r,n=tn(e),o=Cl(e),a=(r=e.ownerDocument)==null?void 0:r.body,u=bn(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),f=bn(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),d=-o.scrollLeft+Pl(e),w=-o.scrollTop;return Ir(a||n).direction==="rtl"&&(d+=bn(n.clientWidth,a?a.clientWidth:0)-u),{width:u,height:f,x:d,y:w}}function Rl(e){var r=Ir(e),n=r.overflow,o=r.overflowX,a=r.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+o)}function Xh(e){return["html","body","#document"].indexOf(vr(e))>=0?e.ownerDocument.body:Vt(e)&&Rl(e)?e:Xh(ja(e))}function Xi(e,r){var n;r===void 0&&(r=[]);var o=Xh(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),u=Dt(o),f=a?[u].concat(u.visualViewport||[],Rl(o)?o:[]):o,d=r.concat(f);return a?d:d.concat(Xi(ja(f)))}function al(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function F_(e,r){var n=ti(e,!1,r==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function jd(e,r,n){return r===Hh?al(I_(e,n)):_n(r)?F_(r,n):al(L_(tn(e)))}function $_(e){var r=Xi(ja(e)),n=["absolute","fixed"].indexOf(Ir(e).position)>=0,o=n&&Vt(e)?uo(e):e;return _n(o)?r.filter(function(a){return _n(a)&&Gh(a,o)&&vr(a)!=="body"}):[]}function D_(e,r,n,o){var a=r==="clippingParents"?$_(e):[].concat(r),u=[].concat(a,[n]),f=u[0],d=u.reduce(function(w,S){var y=jd(e,S,o);return w.top=bn(y.top,w.top),w.right=Ma(y.right,w.right),w.bottom=Ma(y.bottom,w.bottom),w.left=bn(y.left,w.left),w},jd(e,f,o));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function Jh(e){var r=e.reference,n=e.element,o=e.placement,a=o?hr(o):null,u=o?ri(o):null,f=r.x+r.width/2-n.width/2,d=r.y+r.height/2-n.height/2,w;switch(a){case At:w={x:f,y:r.y-n.height};break;case Yt:w={x:f,y:r.y+r.height};break;case Xt:w={x:r.x+r.width,y:d};break;case Tt:w={x:r.x-n.width,y:d};break;default:w={x:r.x,y:r.y}}var S=a?Tl(a):null;if(S!=null){var y=S==="y"?"height":"width";switch(u){case Qn:w[S]=w[S]-(r[y]/2-n[y]/2);break;case Qi:w[S]=w[S]+(r[y]/2-n[y]/2);break}}return w}function eo(e,r){r===void 0&&(r={});var n=r,o=n.placement,a=o===void 0?e.placement:o,u=n.strategy,f=u===void 0?e.strategy:u,d=n.boundary,w=d===void 0?r_:d,S=n.rootBoundary,y=S===void 0?Hh:S,h=n.elementContext,l=h===void 0?Ei:h,p=n.altBoundary,m=p===void 0?!1:p,c=n.padding,g=c===void 0?0:c,b=Vh(typeof g!="number"?g:Yh(g,so)),_=l===Ei?n_:Ei,x=e.rects.popper,C=e.elements[m?_:l],T=D_(_n(C)?C:C.contextElement||tn(e.elements.popper),w,y,f),M=ti(e.elements.reference),H=Jh({reference:M,element:x,placement:a}),F=al(Object.assign({},x,H)),N=l===Ei?F:M,X={top:T.top-N.top+b.top,bottom:N.bottom-T.bottom+b.bottom,left:T.left-N.left+b.left,right:N.right-T.right+b.right},j=e.modifiersData.offset;if(l===Ei&&j){var L=j[a];Object.keys(X).forEach(function(z){var q=[Xt,Yt].indexOf(z)>=0?1:-1,R=[At,Yt].indexOf(z)>=0?"y":"x";X[z]+=L[R]*q})}return X}function k_(e,r){r===void 0&&(r={});var n=r,o=n.placement,a=n.boundary,u=n.rootBoundary,f=n.padding,d=n.flipVariations,w=n.allowedAutoPlacements,S=w===void 0?qh:w,y=ri(o),h=y?d?$d:$d.filter(function(m){return ri(m)===y}):so,l=h.filter(function(m){return S.indexOf(m)>=0});l.length===0&&(l=h);var p=l.reduce(function(m,c){return m[c]=eo(e,{placement:c,boundary:a,rootBoundary:u,padding:f})[hr(c)],m},{});return Object.keys(p).sort(function(m,c){return p[m]-p[c]})}function N_(e){if(hr(e)===xl)return[];var r=xa(e);return[Nd(e),r,Nd(r)]}function j_(e){var r=e.state,n=e.options,o=e.name;if(!r.modifiersData[o]._skip){for(var a=n.mainAxis,u=a===void 0?!0:a,f=n.altAxis,d=f===void 0?!0:f,w=n.fallbackPlacements,S=n.padding,y=n.boundary,h=n.rootBoundary,l=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,c=n.allowedAutoPlacements,g=r.options.placement,b=hr(g),_=b===g,x=w||(_||!m?[xa(g)]:N_(g)),C=[g].concat(x).reduce(function(oe,ce){return oe.concat(hr(ce)===xl?k_(r,{placement:ce,boundary:y,rootBoundary:h,padding:S,flipVariations:m,allowedAutoPlacements:c}):ce)},[]),T=r.rects.reference,M=r.rects.popper,H=new Map,F=!0,N=C[0],X=0;X<C.length;X++){var j=C[X],L=hr(j),z=ri(j)===Qn,q=[At,Yt].indexOf(L)>=0,R=q?"width":"height",J=eo(r,{placement:j,boundary:y,rootBoundary:h,altBoundary:l,padding:S}),V=q?z?Xt:Tt:z?Yt:At;T[R]>M[R]&&(V=xa(V));var te=xa(V),le=[];if(u&&le.push(J[L]<=0),d&&le.push(J[V]<=0,J[te]<=0),le.every(function(oe){return oe})){N=j,F=!1;break}H.set(j,le)}if(F)for(var Z=m?3:1,ee=function(ce){var pe=C.find(function(ye){var ge=H.get(ye);if(ge)return ge.slice(0,ce).every(function(_e){return _e})});if(pe)return N=pe,"break"},ae=Z;ae>0;ae--){var fe=ee(ae);if(fe==="break")break}r.placement!==N&&(r.modifiersData[o]._skip=!0,r.placement=N,r.reset=!0)}}const W_={name:"flip",enabled:!0,phase:"main",fn:j_,requiresIfExists:["offset"],data:{_skip:!1}};function Wd(e,r,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-r.height-n.y,right:e.right-r.width+n.x,bottom:e.bottom-r.height+n.y,left:e.left-r.width-n.x}}function Ud(e){return[At,Xt,Yt,Tt].some(function(r){return e[r]>=0})}function U_(e){var r=e.state,n=e.name,o=r.rects.reference,a=r.rects.popper,u=r.modifiersData.preventOverflow,f=eo(r,{elementContext:"reference"}),d=eo(r,{altBoundary:!0}),w=Wd(f,o),S=Wd(d,a,u),y=Ud(w),h=Ud(S);r.modifiersData[n]={referenceClippingOffsets:w,popperEscapeOffsets:S,isReferenceHidden:y,hasPopperEscaped:h},r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-reference-hidden":y,"data-popper-escaped":h})}const z_={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:U_};function B_(e,r,n){var o=hr(e),a=[Tt,At].indexOf(o)>=0?-1:1,u=typeof n=="function"?n(Object.assign({},r,{placement:e})):n,f=u[0],d=u[1];return f=f||0,d=(d||0)*a,[Tt,Xt].indexOf(o)>=0?{x:d,y:f}:{x:f,y:d}}function H_(e){var r=e.state,n=e.options,o=e.name,a=n.offset,u=a===void 0?[0,0]:a,f=qh.reduce(function(y,h){return y[h]=B_(h,r.rects,u),y},{}),d=f[r.placement],w=d.x,S=d.y;r.modifiersData.popperOffsets!=null&&(r.modifiersData.popperOffsets.x+=w,r.modifiersData.popperOffsets.y+=S),r.modifiersData[o]=f}const q_={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:H_};function Z_(e){var r=e.state,n=e.name;r.modifiersData[n]=Jh({reference:r.rects.reference,element:r.rects.popper,placement:r.placement})}const G_={name:"popperOffsets",enabled:!0,phase:"read",fn:Z_,data:{}};function K_(e){return e==="x"?"y":"x"}function V_(e){var r=e.state,n=e.options,o=e.name,a=n.mainAxis,u=a===void 0?!0:a,f=n.altAxis,d=f===void 0?!1:f,w=n.boundary,S=n.rootBoundary,y=n.altBoundary,h=n.padding,l=n.tether,p=l===void 0?!0:l,m=n.tetherOffset,c=m===void 0?0:m,g=eo(r,{boundary:w,rootBoundary:S,padding:h,altBoundary:y}),b=hr(r.placement),_=ri(r.placement),x=!_,C=Tl(b),T=K_(C),M=r.modifiersData.popperOffsets,H=r.rects.reference,F=r.rects.popper,N=typeof c=="function"?c(Object.assign({},r.rects,{placement:r.placement})):c,X=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),j=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null,L={x:0,y:0};if(M){if(u){var z,q=C==="y"?At:Tt,R=C==="y"?Yt:Xt,J=C==="y"?"height":"width",V=M[C],te=V+g[q],le=V-g[R],Z=p?-F[J]/2:0,ee=_===Qn?H[J]:F[J],ae=_===Qn?-F[J]:-H[J],fe=r.elements.arrow,oe=p&&fe?Al(fe):{width:0,height:0},ce=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:Kh(),pe=ce[q],ye=ce[R],ge=Yi(0,H[J],oe[J]),_e=x?H[J]/2-Z-ge-pe-X.mainAxis:ee-ge-pe-X.mainAxis,Ae=x?-H[J]/2+Z+ge+ye+X.mainAxis:ae+ge+ye+X.mainAxis,Ue=r.elements.arrow&&uo(r.elements.arrow),ne=Ue?C==="y"?Ue.clientTop||0:Ue.clientLeft||0:0,ct=(z=j==null?void 0:j[C])!=null?z:0,tt=V+_e-ct-ne,or=V+Ae-ct,ho=Yi(p?Ma(te,tt):te,V,p?bn(le,or):le);M[C]=ho,L[C]=ho-V}if(d){var kt,vo=C==="x"?At:Tt,Ja=C==="x"?Yt:Xt,Ct=M[T],dt=T==="y"?"height":"width",Lr=Ct+g[vo],nn=Ct-g[Ja],ai=[At,Tt].indexOf(b)!==-1,Fr=(kt=j==null?void 0:j[T])!=null?kt:0,mo=ai?Lr:Ct-H[dt]-F[dt]-Fr+X.altAxis,$r=ai?Ct+H[dt]+F[dt]-Fr-X.altAxis:nn,gr=p&&ai?w_(mo,Ct,$r):Yi(p?mo:Lr,Ct,p?$r:nn);M[T]=gr,L[T]=gr-Ct}r.modifiersData[o]=L}}const Y_={name:"preventOverflow",enabled:!0,phase:"main",fn:V_,requiresIfExists:["offset"]};function X_(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function J_(e){return e===Dt(e)||!Vt(e)?Cl(e):X_(e)}function Q_(e){var r=e.getBoundingClientRect(),n=ei(r.width)/e.offsetWidth||1,o=ei(r.height)/e.offsetHeight||1;return n!==1||o!==1}function ex(e,r,n){n===void 0&&(n=!1);var o=Vt(r),a=Vt(r)&&Q_(r),u=tn(r),f=ti(e,a,n),d={scrollLeft:0,scrollTop:0},w={x:0,y:0};return(o||!o&&!n)&&((vr(r)!=="body"||Rl(u))&&(d=J_(r)),Vt(r)?(w=ti(r,!0),w.x+=r.clientLeft,w.y+=r.clientTop):u&&(w.x=Pl(u))),{x:f.left+d.scrollLeft-w.x,y:f.top+d.scrollTop-w.y,width:f.width,height:f.height}}function tx(e){var r=new Map,n=new Set,o=[];e.forEach(function(u){r.set(u.name,u)});function a(u){n.add(u.name);var f=[].concat(u.requires||[],u.requiresIfExists||[]);f.forEach(function(d){if(!n.has(d)){var w=r.get(d);w&&a(w)}}),o.push(u)}return e.forEach(function(u){n.has(u.name)||a(u)}),o}function rx(e){var r=tx(e);return p_.reduce(function(n,o){return n.concat(r.filter(function(a){return a.phase===o}))},[])}function nx(e){var r;return function(){return r||(r=new Promise(function(n){Promise.resolve().then(function(){r=void 0,n(e())})})),r}}function ix(e){var r=e.reduce(function(n,o){var a=n[o.name];return n[o.name]=a?Object.assign({},a,o,{options:Object.assign({},a.options,o.options),data:Object.assign({},a.data,o.data)}):o,n},{});return Object.keys(r).map(function(n){return r[n]})}var zd={placement:"bottom",modifiers:[],strategy:"absolute"};function Bd(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return!r.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function ox(e){e===void 0&&(e={});var r=e,n=r.defaultModifiers,o=n===void 0?[]:n,a=r.defaultOptions,u=a===void 0?zd:a;return function(d,w,S){S===void 0&&(S=u);var y={placement:"bottom",orderedModifiers:[],options:Object.assign({},zd,u),modifiersData:{},elements:{reference:d,popper:w},attributes:{},styles:{}},h=[],l=!1,p={state:y,setOptions:function(b){var _=typeof b=="function"?b(y.options):b;c(),y.options=Object.assign({},u,y.options,_),y.scrollParents={reference:_n(d)?Xi(d):d.contextElement?Xi(d.contextElement):[],popper:Xi(w)};var x=rx(ix([].concat(o,y.options.modifiers)));return y.orderedModifiers=x.filter(function(C){return C.enabled}),m(),p.update()},forceUpdate:function(){if(!l){var b=y.elements,_=b.reference,x=b.popper;if(Bd(_,x)){y.rects={reference:ex(_,uo(x),y.options.strategy==="fixed"),popper:Al(x)},y.reset=!1,y.placement=y.options.placement,y.orderedModifiers.forEach(function(X){return y.modifiersData[X.name]=Object.assign({},X.data)});for(var C=0;C<y.orderedModifiers.length;C++){if(y.reset===!0){y.reset=!1,C=-1;continue}var T=y.orderedModifiers[C],M=T.fn,H=T.options,F=H===void 0?{}:H,N=T.name;typeof M=="function"&&(y=M({state:y,options:F,name:N,instance:p})||y)}}}},update:nx(function(){return new Promise(function(g){p.forceUpdate(),g(y)})}),destroy:function(){c(),l=!0}};if(!Bd(d,w))return p;p.setOptions(S).then(function(g){!l&&S.onFirstUpdate&&S.onFirstUpdate(g)});function m(){y.orderedModifiers.forEach(function(g){var b=g.name,_=g.options,x=_===void 0?{}:_,C=g.effect;if(typeof C=="function"){var T=C({state:y,name:b,instance:p,options:x}),M=function(){};h.push(T||M)}})}function c(){h.forEach(function(g){return g()}),h=[]}return p}}var ax=[P_,G_,T_,m_,q_,W_,Y_,__,z_],sx=ox({defaultModifiers:ax}),aa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Su,Hd;function ux(){if(Hd)return Su;Hd=1;var e=typeof Element<"u",r=typeof Map=="function",n=typeof Set=="function",o=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function a(u,f){if(u===f)return!0;if(u&&f&&typeof u=="object"&&typeof f=="object"){if(u.constructor!==f.constructor)return!1;var d,w,S;if(Array.isArray(u)){if(d=u.length,d!=f.length)return!1;for(w=d;w--!==0;)if(!a(u[w],f[w]))return!1;return!0}var y;if(r&&u instanceof Map&&f instanceof Map){if(u.size!==f.size)return!1;for(y=u.entries();!(w=y.next()).done;)if(!f.has(w.value[0]))return!1;for(y=u.entries();!(w=y.next()).done;)if(!a(w.value[1],f.get(w.value[0])))return!1;return!0}if(n&&u instanceof Set&&f instanceof Set){if(u.size!==f.size)return!1;for(y=u.entries();!(w=y.next()).done;)if(!f.has(w.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(u)&&ArrayBuffer.isView(f)){if(d=u.length,d!=f.length)return!1;for(w=d;w--!==0;)if(u[w]!==f[w])return!1;return!0}if(u.constructor===RegExp)return u.source===f.source&&u.flags===f.flags;if(u.valueOf!==Object.prototype.valueOf&&typeof u.valueOf=="function"&&typeof f.valueOf=="function")return u.valueOf()===f.valueOf();if(u.toString!==Object.prototype.toString&&typeof u.toString=="function"&&typeof f.toString=="function")return u.toString()===f.toString();if(S=Object.keys(u),d=S.length,d!==Object.keys(f).length)return!1;for(w=d;w--!==0;)if(!Object.prototype.hasOwnProperty.call(f,S[w]))return!1;if(e&&u instanceof Element)return!1;for(w=d;w--!==0;)if(!((S[w]==="_owner"||S[w]==="__v"||S[w]==="__o")&&u.$$typeof)&&!a(u[S[w]],f[S[w]]))return!1;return!0}return u!==u&&f!==f}return Su=function(f,d){try{return a(f,d)}catch(w){if((w.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw w}},Su}var lx=ux();const fx=Qh(lx);var cx=[],ev=function(r,n,o){o===void 0&&(o={});var a=D.useRef(null),u={onFirstUpdate:o.onFirstUpdate,placement:o.placement||"bottom",strategy:o.strategy||"absolute",modifiers:o.modifiers||cx},f=D.useState({styles:{popper:{position:u.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),d=f[0],w=f[1],S=D.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(p){var m=p.state,c=Object.keys(m.elements);t_.flushSync(function(){w({styles:Ld(c.map(function(g){return[g,m.styles[g]||{}]})),attributes:Ld(c.map(function(g){return[g,m.attributes[g]]}))})})},requires:["computeStyles"]}},[]),y=D.useMemo(function(){var l={onFirstUpdate:u.onFirstUpdate,placement:u.placement,strategy:u.strategy,modifiers:[].concat(u.modifiers,[S,{name:"applyStyles",enabled:!1}])};return fx(a.current,l)?a.current||l:(a.current=l,l)},[u.onFirstUpdate,u.placement,u.strategy,u.modifiers,S]),h=D.useRef();return Fd(function(){h.current&&h.current.setOptions(y)},[y]),Fd(function(){if(!(r==null||n==null)){var l=o.createPopper||sx,p=l(r,n,y);return h.current=p,function(){p.destroy(),h.current=null}}},[r,n,o.createPopper]),{state:h.current?h.current.state:null,styles:d.styles,attributes:d.attributes,update:h.current?h.current.update:null,forceUpdate:h.current?h.current.forceUpdate:null}};const tv=e=>W.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),rv=U.forwardRef(({children:e,style:r,attributes:n},o)=>W.jsx("div",{style:{...r,zIndex:2e3},...n,ref:o,className:"w-60 rounded border rounded border border-grey-50 bg-grey-900 shadow-2xl","data-cy":"dialogBody",children:e})),dx=({referenceElement:e,placement:r,isOpen:n,children:o,onClose:a})=>{const[u,f]=U.useState(null),{styles:d,attributes:w}=ev(e,u,{placement:r||"bottom-start"}),S=U.useCallback(()=>{a&&a()},[a]);return n?W.jsxs(Bh,{children:[W.jsx(tv,{onClick:()=>S()}),W.jsx(rv,{ref:f,style:d.popper,attributes:w.popper,children:o})]}):null};var Eu={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
- */(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var s="",l=0;l<arguments.length;l++){var f=arguments[l];f&&(s=a(s,i(f)))}return s}function i(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return r.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var l="";for(var f in s)t.call(s,f)&&s[f]&&(l=a(l,f));return l}function a(s,l){return l?s?s+" "+l:s+l:s}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(dv);var pv=dv.exports;const ft=pf(pv);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 W_=["children","options"],oe={blockQuote:"0",breakLine:"1",breakThematic:"2",codeBlock:"3",codeFenced:"4",codeInline:"5",footnote:"6",footnoteReference:"7",gfmTask:"8",heading:"9",headingSetext:"10",htmlBlock:"11",htmlComment:"12",htmlSelfClosing:"13",image:"14",link:"15",linkAngleBraceStyleDetector:"16",linkBareUrlDetector:"17",linkMailtoDetector:"18",newlineCoalescer:"19",orderedList:"20",paragraph:"21",ref:"22",refImage:"23",refLink:"24",table:"25",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"};var Lp;(function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"})(Lp||(Lp={}));const $p=["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"}),Dp={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},z_=["style","script"],U_=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,B_=/mailto:/i,H_=/\n{2,}$/,hv=/^(\s*>[\s\S]*?)(?=\n\n|$)/,q_=/^ *> ?/gm,Z_=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,G_=/^ {2,}\n/,K_=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,vv=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,mv=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,Y_=/^(`+)((?:\\`|[^`])+)\1/,V_=/^(?:\n *)*\n/,X_=/\r\n?/g,J_=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,Q_=/^\[\^([^\]]+)]/,eO=/\f/g,tO=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,rO=/^\s*?\[(x|\s)\]/,gv=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,yv=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,wv=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,$l=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,nO=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,bv=/^<!--[\s\S]*?(?:-->)/,iO=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Dl=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,oO=/^\{.*\}$/,aO=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,sO=/^<([^ >]+@[^ >]+)>/,uO=/^<([^ >]+:\/[^ >]+)>/,lO=/-([a-z])?/gi,Sv=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,fO=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,cO=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,dO=/^\[([^\]]*)\] ?\[([^\]]*)\]/,pO=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,hO=/\t/g,vO=/(^ *\||\| *$)/g,mO=/^ *:-+: *$/,gO=/^ *:-+ *$/,yO=/^ *-+: *$/,os="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",wO=new RegExp(`^([*_])\\1${os}\\1\\1(?!\\1)`),bO=new RegExp(`^([*_])${os}\\1(?!\\1)`),SO=new RegExp(`^(==)${os}\\1`),EO=new RegExp(`^(~~)${os}\\1`),xO=/^\\([^0-9A-Za-z\s])/,Zu=/\\([^0-9A-Za-z\s])/g,_O=/^([\s\S](?:(?! |[0-9]\.)[^*_~\-\n<`\\\[!])*)/,OO=/^\n+/,AO=/^([ \t]*)/,TO=/\\([^\\])/g,CO=/(?:^|\n)( *)$/,hf="(?:\\d+\\.)",vf="(?:[*+-])";function Ev(e){return"( *)("+(e===1?hf:vf)+") +"}const xv=Ev(1),_v=Ev(2);function Ov(e){return new RegExp("^"+(e===1?xv:_v))}const PO=Ov(1),RO=Ov(2);function Av(e){return new RegExp("^"+(e===1?xv:_v)+"[^\\n]*(?:\\n(?!\\1"+(e===1?hf:vf)+" )[^\\n]*)*(\\n|$)","gm")}const IO=Av(1),MO=Av(2);function Tv(e){const t=e===1?hf:vf;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const Cv=Tv(1),Pv=Tv(2);function kp(e,t){const r=t===1,i=r?Cv:Pv,a=r?IO:MO,s=r?PO:RO;return{match:_i(function(l,f){const d=CO.exec(f.prevCapture);return d&&(f.list||!f.inline&&!f.simple)?i.exec(l=d[1]+l):null}),order:1,parse(l,f,d){const p=r?+l[2]:void 0,h=l[0].replace(H_,`
6
- `).match(a);let b=!1;return{items:h.map(function(v,w){const E=s.exec(v)[0].length,y=new RegExp("^ {1,"+E+"}","gm"),x=v.replace(y,"").replace(s,""),A=w===h.length-1,I=x.indexOf(`
5
+ */var qd;function nv(){return qd||(qd=1,function(e){(function(){var r={}.hasOwnProperty;function n(){for(var u="",f=0;f<arguments.length;f++){var d=arguments[f];d&&(u=a(u,o(d)))}return u}function o(u){if(typeof u=="string"||typeof u=="number")return u;if(typeof u!="object")return"";if(Array.isArray(u))return n.apply(null,u);if(u.toString!==Object.prototype.toString&&!u.toString.toString().includes("[native code]"))return u.toString();var f="";for(var d in u)r.call(u,d)&&u[d]&&(f=a(f,d));return f}function a(u,f){return f?u?u+" "+f:u+f:u}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(Eu)),Eu.exports}var px=nv();const it=Qh(px);function mn(){return mn=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},mn.apply(this,arguments)}const hx=["children","options"],me={blockQuote:"0",breakLine:"1",breakThematic:"2",codeBlock:"3",codeFenced:"4",codeInline:"5",footnote:"6",footnoteReference:"7",gfmTask:"8",heading:"9",headingSetext:"10",htmlBlock:"11",htmlComment:"12",htmlSelfClosing:"13",image:"14",link:"15",linkAngleBraceStyleDetector:"16",linkBareUrlDetector:"17",linkMailtoDetector:"18",newlineCoalescer:"19",orderedList:"20",paragraph:"21",ref:"22",refImage:"23",refLink:"24",table:"25",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"};var Zd;(function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"})(Zd||(Zd={}));const Gd=["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,r)=>(e[r.toLowerCase()]=r,e),{class:"className",for:"htmlFor"}),Kd={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},vx=["style","script"],mx=["src","href","data","formAction","srcDoc","action"],gx=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,yx=/mailto:/i,wx=/\n{2,}$/,iv=/^(\s*>[\s\S]*?)(?=\n\n|$)/,bx=/^ *> ?/gm,Sx=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,Ex=/^ {2,}\n/,_x=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,ov=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,av=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,xx=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,Ox=/^(?:\n *)*\n/,Ax=/\r\n?/g,Tx=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,Cx=/^\[\^([^\]]+)]/,Px=/\f/g,Rx=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,Mx=/^\s*?\[(x|\s)\]/,sv=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,uv=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,lv=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,sl=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,Ix=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,fv=/^<!--[\s\S]*?(?:-->)/,Lx=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,ul=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,Fx=/^\{.*\}$/,$x=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,Dx=/^<([^ >]+@[^ >]+)>/,kx=/^<([^ >]+:\/[^ >]+)>/,Nx=/-([a-z])?/gi,cv=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,jx=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,Wx=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,Ux=/^\[([^\]]*)\] ?\[([^\]]*)\]/,zx=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,Bx=/\t/g,Hx=/(^ *\||\| *$)/g,qx=/^ *:-+: *$/,Zx=/^ *:-+ *$/,Gx=/^ *-+: *$/,Wa="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",Kx=new RegExp(`^([*_])\\1${Wa}\\1\\1(?!\\1)`),Vx=new RegExp(`^([*_])${Wa}\\1(?!\\1)`),Yx=new RegExp(`^(==)${Wa}\\1`),Xx=new RegExp(`^(~~)${Wa}\\1`),Jx=/^\\([^0-9A-Za-z\s])/,Vd=/\\([^0-9A-Za-z\s])/g,Qx=/^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/,eO=/^\n+/,tO=/^([ \t]*)/,rO=/\\([^\\])/g,nO=/(?:^|\n)( *)$/,Ml="(?:\\d+\\.)",Il="(?:[*+-])";function dv(e){return"( *)("+(e===1?Ml:Il)+") +"}const pv=dv(1),hv=dv(2);function vv(e){return new RegExp("^"+(e===1?pv:hv))}const iO=vv(1),oO=vv(2);function mv(e){return new RegExp("^"+(e===1?pv:hv)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Ml:Il)+" )[^\\n]*)*(\\n|$)","gm")}const aO=mv(1),sO=mv(2);function gv(e){const r=e===1?Ml:Il;return new RegExp("^( *)("+r+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+r+" (?!"+r+" ))\\n*|\\s*\\n*$)")}const yv=gv(1),wv=gv(2);function Yd(e,r){const n=r===1,o=n?yv:wv,a=n?aO:sO,u=n?iO:oO;return{match:ni(function(f,d){const w=nO.exec(d.prevCapture);return w&&(d.list||!d.inline&&!d.simple)?o.exec(f=w[1]+f):null}),order:1,parse(f,d,w){const S=n?+f[2]:void 0,y=f[0].replace(wx,`
6
+ `).match(a);let h=!1;return{items:y.map(function(l,p){const m=u.exec(l)[0].length,c=new RegExp("^ {1,"+m+"}","gm"),g=l.replace(c,"").replace(u,""),b=p===y.length-1,_=g.indexOf(`
7
7
 
8
- `)!==-1||A&&b;b=I;const P=d.inline,F=d.list;let O;d.list=!0,I?(d.inline=!1,O=io(x)+`
8
+ `)!==-1||b&&h;h=_;const x=w.inline,C=w.list;let T;w.list=!0,_?(w.inline=!1,T=to(g)+`
9
9
 
10
- `):(d.inline=!0,O=io(x));const L=f(O,d);return d.inline=P,d.list=F,L}),ordered:r,start:p}},render:(l,f,d)=>e(l.ordered?"ol":"ul",{key:d.key,start:l.type===oe.orderedList?l.start:void 0},l.items.map(function(p,h){return e("li",{key:h},f(p,d))}))}}const FO=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),LO=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Rv=[hv,vv,mv,gv,wv,yv,Sv,Cv,Pv],$O=[...Rv,/^[^\n]+(?: \n|\n{2,})/,$l,bv,Dl];function io(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function Hi(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 DO(e){return yO.test(e)?"right":mO.test(e)?"center":gO.test(e)?"left":null}function Np(e,t,r,i){const a=r.inTable;r.inTable=!0;let s=[[]],l="";function f(){if(!l)return;const d=s[s.length-1];d.push.apply(d,t(l,r)),l=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((d,p,h)=>{d.trim()==="|"&&(f(),i)?p!==0&&p!==h.length-1&&s.push([]):l+=d}),f(),r.inTable=a,s}function kO(e,t,r){r.inline=!0;const i=e[2]?e[2].replace(vO,"").split("|").map(DO):[],a=e[3]?function(l,f,d){return l.trim().split(`
11
- `).map(function(p){return Np(p,f,d,!0)})}(e[3],t,r):[],s=Np(e[1],t,r,!!a.length);return r.inline=!1,a.length?{align:i,cells:a,header:s,type:oe.table}:{children:s,type:oe.paragraph}}function jp(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function _i(e){return e.inline=1,e}function cn(e){return _i(function(t,r){return r.inline?e.exec(t):null})}function dn(e){return _i(function(t,r){return r.inline||r.simple?e.exec(t):null})}function Hr(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function qi(e){return _i(function(t){return e.exec(t)})}function NO(e,t){if(t.inline||t.simple)return null;let r="";e.split(`
10
+ `):(w.inline=!0,T=to(g));const M=d(T,w);return w.inline=x,w.list=C,M}),ordered:n,start:S}},render:(f,d,w)=>e(f.ordered?"ol":"ul",{key:w.key,start:f.type===me.orderedList?f.start:void 0},f.items.map(function(S,y){return e("li",{key:y},d(S,w))}))}}const uO=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),lO=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,bv=[iv,ov,av,sv,lv,uv,cv,yv,wv],fO=[...bv,/^[^\n]+(?: \n|\n{2,})/,sl,fv,ul];function to(e){let r=e.length;for(;r>0&&e[r-1]<=" ";)r--;return e.slice(0,r)}function _i(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 cO(e){return Gx.test(e)?"right":qx.test(e)?"center":Zx.test(e)?"left":null}function Xd(e,r,n,o){const a=n.inTable;n.inTable=!0;let u=[[]],f="";function d(){if(!f)return;const w=u[u.length-1];w.push.apply(w,r(f,n)),f=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((w,S,y)=>{w.trim()==="|"&&(d(),o)?S!==0&&S!==y.length-1&&u.push([]):f+=w}),d(),n.inTable=a,u}function dO(e,r,n){n.inline=!0;const o=e[2]?e[2].replace(Hx,"").split("|").map(cO):[],a=e[3]?function(f,d,w){return f.trim().split(`
11
+ `).map(function(S){return Xd(S,d,w,!0)})}(e[3],r,n):[],u=Xd(e[1],r,n,!!a.length);return n.inline=!1,a.length?{align:o,cells:a,header:u,type:me.table}:{children:u,type:me.paragraph}}function Jd(e,r){return e.align[r]==null?{}:{textAlign:e.align[r]}}function ni(e){return e.inline=1,e}function Zr(e){return ni(function(r,n){return n.inline?e.exec(r):null})}function Gr(e){return ni(function(r,n){return n.inline||n.simple?e.exec(r):null})}function Tr(e){return function(r,n){return n.inline||n.simple?null:e.exec(r)}}function xi(e){return ni(function(r){return e.exec(r)})}function pO(e,r){if(r.inline||r.simple)return null;let n="";e.split(`
12
12
  `).every(a=>(a+=`
13
- `,!Rv.some(s=>s.test(a))&&(r+=a,!!a.trim())));const i=io(r);return i==""?null:[r,,i]}function jO(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return null}catch{return null}return e}function Wp(e){return e.replace(TO,"$1")}function ja(e,t,r){const i=r.inline||!1,a=r.simple||!1;r.inline=!0,r.simple=!0;const s=e(t,r);return r.inline=i,r.simple=a,s}function WO(e,t,r){const i=r.inline||!1,a=r.simple||!1;r.inline=!1,r.simple=!0;const s=e(t,r);return r.inline=i,r.simple=a,s}function zO(e,t,r){const i=r.inline||!1;r.inline=!1;const a=e(t,r);return r.inline=i,a}const Gu=(e,t,r)=>({children:ja(t,e[2],r)});function Ku(){return{}}function Yu(){return null}function UO(...e){return e.filter(Boolean).join(" ")}function Vu(e,t,r){let i=e;const a=t.split(".");for(;a.length&&(i=i[a[0]],i!==void 0);)a.shift();return i||r}function BO(e="",t={}){function r(v,w,...E){const y=Vu(t.overrides,`${v}.props`,{});return t.createElement(function(x,A){const I=Vu(A,x);return I?typeof I=="function"||typeof I=="object"&&"render"in I?I:Vu(A,`${x}.component`,x):x}(v,t.overrides),jn({},w,y,{className:UO(w==null?void 0:w.className,y.className)||void 0}),...E)}function i(v){v=v.replace(tO,"");let w=!1;t.forceInline?w=!0:t.forceBlock||(w=pO.test(v)===!1);const E=p(d(w?v:`${io(v).replace(OO,"")}
13
+ `,!bv.some(u=>u.test(a))&&(n+=a,!!a.trim())));const o=to(n);return o==""?null:[n,,o]}const hO=/(javascript|vbscript|data(?!:image)):/i;function vO(e){try{const r=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(hO.test(r))return null}catch{return null}return e}function Qd(e){return e.replace(rO,"$1")}function Oa(e,r,n){const o=n.inline||!1,a=n.simple||!1;n.inline=!0,n.simple=!0;const u=e(r,n);return n.inline=o,n.simple=a,u}function mO(e,r,n){const o=n.inline||!1,a=n.simple||!1;n.inline=!1,n.simple=!0;const u=e(r,n);return n.inline=o,n.simple=a,u}function gO(e,r,n){const o=n.inline||!1;n.inline=!1;const a=e(r,n);return n.inline=o,a}const _u=(e,r,n)=>({children:Oa(r,e[2],n)});function xu(){return{}}function Ou(){return null}function yO(...e){return e.filter(Boolean).join(" ")}function Au(e,r,n){let o=e;const a=r.split(".");for(;a.length&&(o=o[a[0]],o!==void 0);)a.shift();return o||n}function wO(e="",r={}){function n(l,p,...m){const c=Au(r.overrides,`${l}.props`,{});return r.createElement(function(g,b){const _=Au(b,g);return _?typeof _=="function"||typeof _=="object"&&"render"in _?_:Au(b,`${g}.component`,g):g}(l,r.overrides),mn({},p,c,{className:yO(p==null?void 0:p.className,c.className)||void 0}),...m)}function o(l){l=l.replace(Rx,"");let p=!1;r.forceInline?p=!0:r.forceBlock||(p=zx.test(l)===!1);const m=S(w(p?l:`${to(l).replace(eO,"")}
14
14
 
15
- `,{inline:w}));for(;typeof E[E.length-1]=="string"&&!E[E.length-1].trim();)E.pop();if(t.wrapper===null)return E;const y=t.wrapper||(w?"span":"div");let x;if(E.length>1||t.forceWrapper)x=E;else{if(E.length===1)return x=E[0],typeof x=="string"?r("span",{key:"outer"},x):x;x=null}return t.createElement(y,{key:"outer"},x)}function a(v,w){const E=w.match(U_);return E?E.reduce(function(y,x){const A=x.indexOf("=");if(A!==-1){const I=function(L){return L.indexOf("-")!==-1&&L.match(iO)===null&&(L=L.replace(lO,function(U,z){return z.toUpperCase()})),L}(x.slice(0,A)).trim(),P=function(L){const U=L[0];return(U==='"'||U==="'")&&L.length>=2&&L[L.length-1]===U?L.slice(1,-1):L}(x.slice(A+1).trim()),F=$p[I]||I;if(F==="ref")return y;const O=y[F]=function(L,U,z,q){return U==="style"?z.split(/;\s?/).reduce(function(V,ee){const be=ee.slice(0,ee.indexOf(":"));return V[be.trim().replace(/(-[a-z])/g,pe=>pe[1].toUpperCase())]=ee.slice(be.length+1).trim(),V},{}):U==="href"||U==="src"?q(z,L,U):(z.match(oO)&&(z=z.slice(1,z.length-1)),z==="true"||z!=="false"&&z)}(v,I,P,t.sanitizer);typeof O=="string"&&($l.test(O)||Dl.test(O))&&(y[F]=i(O.trim()))}else x!=="style"&&(y[$p[x]||x]=!0);return y},{}):null}t.overrides=t.overrides||{},t.sanitizer=t.sanitizer||jO,t.slugify=t.slugify||Hi,t.namedCodesToUnicode=t.namedCodesToUnicode?jn({},Dp,t.namedCodesToUnicode):Dp,t.createElement=t.createElement||C.createElement;const s=[],l={},f={[oe.blockQuote]:{match:Hr(hv),order:1,parse(v,w,E){const[,y,x]=v[0].replace(q_,"").match(Z_);return{alert:y,children:w(x,E)}},render(v,w,E){const y={key:E.key};return v.alert&&(y.className="markdown-alert-"+t.slugify(v.alert.toLowerCase(),Hi),v.children.unshift({attrs:{},children:[{type:oe.text,text:v.alert}],noInnerParse:!0,type:oe.htmlBlock,tag:"header"})),r("blockquote",y,w(v.children,E))}},[oe.breakLine]:{match:qi(G_),order:1,parse:Ku,render:(v,w,E)=>r("br",{key:E.key})},[oe.breakThematic]:{match:Hr(K_),order:1,parse:Ku,render:(v,w,E)=>r("hr",{key:E.key})},[oe.codeBlock]:{match:Hr(mv),order:0,parse:v=>({lang:void 0,text:io(v[0].replace(/^ {4}/gm,"")).replace(Zu,"$1")}),render:(v,w,E)=>r("pre",{key:E.key},r("code",jn({},v.attrs,{className:v.lang?`lang-${v.lang}`:""}),v.text))},[oe.codeFenced]:{match:Hr(vv),order:0,parse:v=>({attrs:a("code",v[3]||""),lang:v[2]||void 0,text:v[4].replace(Zu,"$1"),type:oe.codeBlock})},[oe.codeInline]:{match:dn(Y_),order:3,parse:v=>({text:v[2].replace(Zu,"$1")}),render:(v,w,E)=>r("code",{key:E.key},v.text)},[oe.footnote]:{match:Hr(J_),order:0,parse:v=>(s.push({footnote:v[2],identifier:v[1]}),{}),render:Yu},[oe.footnoteReference]:{match:cn(Q_),order:1,parse:v=>({target:`#${t.slugify(v[1],Hi)}`,text:v[1]}),render:(v,w,E)=>r("a",{key:E.key,href:t.sanitizer(v.target,"a","href")},r("sup",{key:E.key},v.text))},[oe.gfmTask]:{match:cn(rO),order:1,parse:v=>({completed:v[1].toLowerCase()==="x"}),render:(v,w,E)=>r("input",{checked:v.completed,key:E.key,readOnly:!0,type:"checkbox"})},[oe.heading]:{match:Hr(t.enforceAtxHeadings?yv:gv),order:1,parse:(v,w,E)=>({children:ja(w,v[2],E),id:t.slugify(v[2],Hi),level:v[1].length}),render:(v,w,E)=>r(`h${v.level}`,{id:v.id,key:E.key},w(v.children,E))},[oe.headingSetext]:{match:Hr(wv),order:0,parse:(v,w,E)=>({children:ja(w,v[1],E),level:v[2]==="="?1:2,type:oe.heading})},[oe.htmlBlock]:{match:qi($l),order:1,parse(v,w,E){const[,y]=v[3].match(AO),x=new RegExp(`^${y}`,"gm"),A=v[3].replace(x,""),I=(P=A,$O.some(z=>z.test(P))?zO:ja);var P;const F=v[1].toLowerCase(),O=z_.indexOf(F)!==-1,L=(O?F:v[1]).trim(),U={attrs:a(L,v[2]),noInnerParse:O,tag:L};return E.inAnchor=E.inAnchor||F==="a",O?U.text=v[3]:U.children=I(w,A,E),E.inAnchor=!1,U},render:(v,w,E)=>r(v.tag,jn({key:E.key},v.attrs),v.text||(v.children?w(v.children,E):""))},[oe.htmlSelfClosing]:{match:qi(Dl),order:1,parse(v){const w=v[1].trim();return{attrs:a(w,v[2]||""),tag:w}},render:(v,w,E)=>r(v.tag,jn({},v.attrs,{key:E.key}))},[oe.htmlComment]:{match:qi(bv),order:1,parse:()=>({}),render:Yu},[oe.image]:{match:dn(LO),order:1,parse:v=>({alt:v[1],target:Wp(v[2]),title:v[3]}),render:(v,w,E)=>r("img",{key:E.key,alt:v.alt||void 0,title:v.title||void 0,src:t.sanitizer(v.target,"img","src")})},[oe.link]:{match:cn(FO),order:3,parse:(v,w,E)=>({children:WO(w,v[1],E),target:Wp(v[2]),title:v[3]}),render:(v,w,E)=>r("a",{key:E.key,href:t.sanitizer(v.target,"a","href"),title:v.title},w(v.children,E))},[oe.linkAngleBraceStyleDetector]:{match:cn(uO),order:0,parse:v=>({children:[{text:v[1],type:oe.text}],target:v[1],type:oe.link})},[oe.linkBareUrlDetector]:{match:_i((v,w)=>w.inAnchor||t.disableAutoLink?null:cn(aO)(v,w)),order:0,parse:v=>({children:[{text:v[1],type:oe.text}],target:v[1],title:void 0,type:oe.link})},[oe.linkMailtoDetector]:{match:cn(sO),order:0,parse(v){let w=v[1],E=v[1];return B_.test(E)||(E="mailto:"+E),{children:[{text:w.replace("mailto:",""),type:oe.text}],target:E,type:oe.link}}},[oe.orderedList]:kp(r,1),[oe.unorderedList]:kp(r,2),[oe.newlineCoalescer]:{match:Hr(V_),order:3,parse:Ku,render:()=>`
16
- `},[oe.paragraph]:{match:_i(NO),order:3,parse:Gu,render:(v,w,E)=>r("p",{key:E.key},w(v.children,E))},[oe.ref]:{match:cn(fO),order:0,parse:v=>(l[v[1]]={target:v[2],title:v[4]},{}),render:Yu},[oe.refImage]:{match:dn(cO),order:0,parse:v=>({alt:v[1]||void 0,ref:v[2]}),render:(v,w,E)=>l[v.ref]?r("img",{key:E.key,alt:v.alt,src:t.sanitizer(l[v.ref].target,"img","src"),title:l[v.ref].title}):null},[oe.refLink]:{match:cn(dO),order:0,parse:(v,w,E)=>({children:w(v[1],E),fallbackChildren:v[0],ref:v[2]}),render:(v,w,E)=>l[v.ref]?r("a",{key:E.key,href:t.sanitizer(l[v.ref].target,"a","href"),title:l[v.ref].title},w(v.children,E)):r("span",{key:E.key},v.fallbackChildren)},[oe.table]:{match:Hr(Sv),order:1,parse:kO,render(v,w,E){const y=v;return r("table",{key:E.key},r("thead",null,r("tr",null,y.header.map(function(x,A){return r("th",{key:A,style:jp(y,A)},w(x,E))}))),r("tbody",null,y.cells.map(function(x,A){return r("tr",{key:A},x.map(function(I,P){return r("td",{key:P,style:jp(y,P)},w(I,E))}))})))}},[oe.text]:{match:qi(_O),order:4,parse:v=>({text:v[0].replace(nO,(w,E)=>t.namedCodesToUnicode[E]?t.namedCodesToUnicode[E]:w)}),render:v=>v.text},[oe.textBolded]:{match:dn(wO),order:2,parse:(v,w,E)=>({children:w(v[2],E)}),render:(v,w,E)=>r("strong",{key:E.key},w(v.children,E))},[oe.textEmphasized]:{match:dn(bO),order:3,parse:(v,w,E)=>({children:w(v[2],E)}),render:(v,w,E)=>r("em",{key:E.key},w(v.children,E))},[oe.textEscaped]:{match:dn(xO),order:1,parse:v=>({text:v[1],type:oe.text})},[oe.textMarked]:{match:dn(SO),order:3,parse:Gu,render:(v,w,E)=>r("mark",{key:E.key},w(v.children,E))},[oe.textStrikethroughed]:{match:dn(EO),order:3,parse:Gu,render:(v,w,E)=>r("del",{key:E.key},w(v.children,E))}};t.disableParsingRawHTML===!0&&(delete f[oe.htmlBlock],delete f[oe.htmlSelfClosing]);const d=function(v){let w=Object.keys(v);function E(y,x){let A,I,P=[],F="",O="";for(x.prevCapture=x.prevCapture||"";y;){let L=0;for(;L<w.length;){if(F=w[L],A=v[F],x.inline&&!A.match.inline){L++;continue}const U=A.match(y,x);if(U){O=U[0],x.prevCapture+=O,y=y.substring(O.length),I=A.parse(U,E,x),I.type==null&&(I.type=F),P.push(I);break}L++}}return x.prevCapture="",P}return w.sort(function(y,x){let A=v[y].order,I=v[x].order;return A!==I?A-I:y<x?-1:1}),function(y,x){return E(function(A){return A.replace(X_,`
17
- `).replace(eO,"").replace(hO," ")}(y),x)}}(f),p=(h=function(v,w){return function(E,y,x){const A=v[E.type].render;return w?w(()=>A(E,y,x),E,y,x):A(E,y,x)}}(f,t.renderRule),function v(w,E={}){if(Array.isArray(w)){const y=E.key,x=[];let A=!1;for(let I=0;I<w.length;I++){E.key=I;const P=v(w[I],E),F=typeof P=="string";F&&A?x[x.length-1]+=P:P!==null&&x.push(P),A=F}return E.key=y,x}return h(w,v,E)});var h;const b=i(e);return s.length?r("div",null,b,r("footer",{key:"footer"},s.map(function(v){return r("div",{id:t.slugify(v.identifier,Hi),key:v.identifier},v.identifier,p(d(v.footnote,{inline:!0})))}))):b}const Ga=e=>{let{children:t="",options:r}=e,i=function(a,s){if(a==null)return{};var l,f,d={},p=Object.keys(a);for(f=0;f<p.length;f++)s.indexOf(l=p[f])>=0||(d[l]=a[l]);return d}(e,W_);return C.cloneElement(BO(t,r),i)},zp=({kind:e,customIcon:t})=>{if(t)return $.jsx(t,{className:"mr-1 h-6 w-6 flex-none"});switch(e){case"error":case"danger":return $.jsx(mt.FdSanityCheckInfo,{className:"flex-none h-6 w-6"});case"info":return $.jsx($.Fragment,{children:$.jsx(mt.FdInfoBold,{className:"flex-none h-6 w-6"})});case"warning":return $.jsx($.Fragment,{children:$.jsx(mt.FdWarningDanger,{className:"flex-none h-6 w-6"})});case"message":return $.jsx($.Fragment,{children:$.jsx(mt.FdInfoBold,{className:"flex-none h-6 w-6"})});default:return null}},HO=({id:e,onClose:t,kind:r,message:i,markdown:a,customIcon:s})=>{const l=({className:f}={})=>$.jsx("button",{onClick:t,className:ft("flex items-center justify-center p-1",f),children:$.jsx(mt.FdCloseNaked,{className:"h-5 w-5 font-thin stroke-current"})});return $.jsx("div",{className:ft("relative flex items-center rounded-lg py-2 px-4 font-semibold",{"bg-yellow-100 text-yellow-400":r==="warning","bg-red-200 text-red-500":r==="danger"||r==="error","bg-primary-light text-primary":r==="info","bg-green-200 text-green-500":r==="message"}),children:typeof i=="string"?$.jsxs("div",{className:"w-full flex items-center justify-between gap-x-3",children:[$.jsxs("div",{className:"flex items-center gap-1",children:[$.jsx(zp,{kind:r,customIcon:s}),a?$.jsx(Ga,{children:i}):$.jsx($.Fragment,{children:i})]}),l()]}):$.jsxs("div",{className:"flex items-start",children:[$.jsx("div",{className:"flex flex-col gap-2 justify-between",children:i.filter(f=>f.messages.length>0).map(f=>$.jsxs($.Fragment,{children:[f.title&&$.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[$.jsx(zp,{kind:r,customIcon:s}),$.jsxs("span",{children:[f.title," :"]})]}),$.jsx("ul",{className:ft("list-disc",{"px-12":f.title,"px-6":!f.title}),children:f.messages.map(d=>$.jsx("li",{children:a?$.jsx(Ga,{children:d}):$.jsx($.Fragment,{children:d})}))})]}))}),l({className:"absolute top-1 right-1"})]})},e)},Iv=({children:e,size:t,className:r,...i})=>$.jsx("div",{style:{"--width":`${t||24}px`},className:ft("h-6 flex items-center pr-1 w-[--width]",r),...i,children:e});var ba,qO=new Uint8Array(16);function Mv(){if(!ba&&(ba=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!ba))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ba(qO)}const ZO=/^(?:[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;function as(e){return typeof e=="string"&&ZO.test(e)}var ht=[];for(var Xu=0;Xu<256;++Xu)ht.push((Xu+256).toString(16).substr(1));function ss(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(ht[e[t+0]]+ht[e[t+1]]+ht[e[t+2]]+ht[e[t+3]]+"-"+ht[e[t+4]]+ht[e[t+5]]+"-"+ht[e[t+6]]+ht[e[t+7]]+"-"+ht[e[t+8]]+ht[e[t+9]]+"-"+ht[e[t+10]]+ht[e[t+11]]+ht[e[t+12]]+ht[e[t+13]]+ht[e[t+14]]+ht[e[t+15]]).toLowerCase();if(!as(r))throw TypeError("Stringified UUID is invalid");return r}var Up,Ju,Qu=0,el=0;function GO(e,t,r){var i=t&&r||0,a=t||new Array(16);e=e||{};var s=e.node||Up,l=e.clockseq!==void 0?e.clockseq:Ju;if(s==null||l==null){var f=e.random||(e.rng||Mv)();s==null&&(s=Up=[f[0]|1,f[1],f[2],f[3],f[4],f[5]]),l==null&&(l=Ju=(f[6]<<8|f[7])&16383)}var d=e.msecs!==void 0?e.msecs:Date.now(),p=e.nsecs!==void 0?e.nsecs:el+1,h=d-Qu+(p-el)/1e4;if(h<0&&e.clockseq===void 0&&(l=l+1&16383),(h<0||d>Qu)&&e.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Qu=d,el=p,Ju=l,d+=122192928e5;var b=((d&268435455)*1e4+p)%4294967296;a[i++]=b>>>24&255,a[i++]=b>>>16&255,a[i++]=b>>>8&255,a[i++]=b&255;var v=d/4294967296*1e4&268435455;a[i++]=v>>>8&255,a[i++]=v&255,a[i++]=v>>>24&15|16,a[i++]=v>>>16&255,a[i++]=l>>>8|128,a[i++]=l&255;for(var w=0;w<6;++w)a[i+w]=s[w];return t||ss(a)}function Fv(e){if(!as(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=t&255,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=t&255,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=t&255,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=t&255,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=t&255,r}function KO(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}var YO="6ba7b810-9dad-11d1-80b4-00c04fd430c8",VO="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Lv(e,t,r){function i(a,s,l,f){if(typeof a=="string"&&(a=KO(a)),typeof s=="string"&&(s=Fv(s)),s.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var d=new Uint8Array(16+a.length);if(d.set(s),d.set(a,s.length),d=r(d),d[6]=d[6]&15|t,d[8]=d[8]&63|128,l){f=f||0;for(var p=0;p<16;++p)l[f+p]=d[p];return l}return ss(d)}try{i.name=e}catch{}return i.DNS=YO,i.URL=VO,i}function XO(e){if(typeof e=="string"){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return JO(QO(eA(e),e.length*8))}function JO(e){for(var t=[],r=e.length*32,i="0123456789abcdef",a=0;a<r;a+=8){var s=e[a>>5]>>>a%32&255,l=parseInt(i.charAt(s>>>4&15)+i.charAt(s&15),16);t.push(l)}return t}function $v(e){return(e+64>>>9<<4)+14+1}function QO(e,t){e[t>>5]|=128<<t%32,e[$v(t)-1]=t;for(var r=1732584193,i=-271733879,a=-1732584194,s=271733878,l=0;l<e.length;l+=16){var f=r,d=i,p=a,h=s;r=St(r,i,a,s,e[l],7,-680876936),s=St(s,r,i,a,e[l+1],12,-389564586),a=St(a,s,r,i,e[l+2],17,606105819),i=St(i,a,s,r,e[l+3],22,-1044525330),r=St(r,i,a,s,e[l+4],7,-176418897),s=St(s,r,i,a,e[l+5],12,1200080426),a=St(a,s,r,i,e[l+6],17,-1473231341),i=St(i,a,s,r,e[l+7],22,-45705983),r=St(r,i,a,s,e[l+8],7,1770035416),s=St(s,r,i,a,e[l+9],12,-1958414417),a=St(a,s,r,i,e[l+10],17,-42063),i=St(i,a,s,r,e[l+11],22,-1990404162),r=St(r,i,a,s,e[l+12],7,1804603682),s=St(s,r,i,a,e[l+13],12,-40341101),a=St(a,s,r,i,e[l+14],17,-1502002290),i=St(i,a,s,r,e[l+15],22,1236535329),r=Et(r,i,a,s,e[l+1],5,-165796510),s=Et(s,r,i,a,e[l+6],9,-1069501632),a=Et(a,s,r,i,e[l+11],14,643717713),i=Et(i,a,s,r,e[l],20,-373897302),r=Et(r,i,a,s,e[l+5],5,-701558691),s=Et(s,r,i,a,e[l+10],9,38016083),a=Et(a,s,r,i,e[l+15],14,-660478335),i=Et(i,a,s,r,e[l+4],20,-405537848),r=Et(r,i,a,s,e[l+9],5,568446438),s=Et(s,r,i,a,e[l+14],9,-1019803690),a=Et(a,s,r,i,e[l+3],14,-187363961),i=Et(i,a,s,r,e[l+8],20,1163531501),r=Et(r,i,a,s,e[l+13],5,-1444681467),s=Et(s,r,i,a,e[l+2],9,-51403784),a=Et(a,s,r,i,e[l+7],14,1735328473),i=Et(i,a,s,r,e[l+12],20,-1926607734),r=xt(r,i,a,s,e[l+5],4,-378558),s=xt(s,r,i,a,e[l+8],11,-2022574463),a=xt(a,s,r,i,e[l+11],16,1839030562),i=xt(i,a,s,r,e[l+14],23,-35309556),r=xt(r,i,a,s,e[l+1],4,-1530992060),s=xt(s,r,i,a,e[l+4],11,1272893353),a=xt(a,s,r,i,e[l+7],16,-155497632),i=xt(i,a,s,r,e[l+10],23,-1094730640),r=xt(r,i,a,s,e[l+13],4,681279174),s=xt(s,r,i,a,e[l],11,-358537222),a=xt(a,s,r,i,e[l+3],16,-722521979),i=xt(i,a,s,r,e[l+6],23,76029189),r=xt(r,i,a,s,e[l+9],4,-640364487),s=xt(s,r,i,a,e[l+12],11,-421815835),a=xt(a,s,r,i,e[l+15],16,530742520),i=xt(i,a,s,r,e[l+2],23,-995338651),r=_t(r,i,a,s,e[l],6,-198630844),s=_t(s,r,i,a,e[l+7],10,1126891415),a=_t(a,s,r,i,e[l+14],15,-1416354905),i=_t(i,a,s,r,e[l+5],21,-57434055),r=_t(r,i,a,s,e[l+12],6,1700485571),s=_t(s,r,i,a,e[l+3],10,-1894986606),a=_t(a,s,r,i,e[l+10],15,-1051523),i=_t(i,a,s,r,e[l+1],21,-2054922799),r=_t(r,i,a,s,e[l+8],6,1873313359),s=_t(s,r,i,a,e[l+15],10,-30611744),a=_t(a,s,r,i,e[l+6],15,-1560198380),i=_t(i,a,s,r,e[l+13],21,1309151649),r=_t(r,i,a,s,e[l+4],6,-145523070),s=_t(s,r,i,a,e[l+11],10,-1120210379),a=_t(a,s,r,i,e[l+2],15,718787259),i=_t(i,a,s,r,e[l+9],21,-343485551),r=gn(r,f),i=gn(i,d),a=gn(a,p),s=gn(s,h)}return[r,i,a,s]}function eA(e){if(e.length===0)return[];for(var t=e.length*8,r=new Uint32Array($v(t)),i=0;i<t;i+=8)r[i>>5]|=(e[i/8]&255)<<i%32;return r}function gn(e,t){var r=(e&65535)+(t&65535),i=(e>>16)+(t>>16)+(r>>16);return i<<16|r&65535}function tA(e,t){return e<<t|e>>>32-t}function us(e,t,r,i,a,s){return gn(tA(gn(gn(t,e),gn(i,s)),a),r)}function St(e,t,r,i,a,s,l){return us(t&r|~t&i,e,t,a,s,l)}function Et(e,t,r,i,a,s,l){return us(t&i|r&~i,e,t,a,s,l)}function xt(e,t,r,i,a,s,l){return us(t^r^i,e,t,a,s,l)}function _t(e,t,r,i,a,s,l){return us(r^(t|~i),e,t,a,s,l)}var rA=Lv("v3",48,XO);function nA(e,t,r){e=e||{};var i=e.random||(e.rng||Mv)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){r=r||0;for(var a=0;a<16;++a)t[r+a]=i[a];return t}return ss(i)}function iA(e,t,r,i){switch(e){case 0:return t&r^~t&i;case 1:return t^r^i;case 2:return t&r^t&i^r&i;case 3:return t^r^i}}function tl(e,t){return e<<t|e>>>32-t}function oA(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var i=unescape(encodeURIComponent(e));e=[];for(var a=0;a<i.length;++a)e.push(i.charCodeAt(a))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var s=e.length/4+2,l=Math.ceil(s/16),f=new Array(l),d=0;d<l;++d){for(var p=new Uint32Array(16),h=0;h<16;++h)p[h]=e[d*64+h*4]<<24|e[d*64+h*4+1]<<16|e[d*64+h*4+2]<<8|e[d*64+h*4+3];f[d]=p}f[l-1][14]=(e.length-1)*8/Math.pow(2,32),f[l-1][14]=Math.floor(f[l-1][14]),f[l-1][15]=(e.length-1)*8&4294967295;for(var b=0;b<l;++b){for(var v=new Uint32Array(80),w=0;w<16;++w)v[w]=f[b][w];for(var E=16;E<80;++E)v[E]=tl(v[E-3]^v[E-8]^v[E-14]^v[E-16],1);for(var y=r[0],x=r[1],A=r[2],I=r[3],P=r[4],F=0;F<80;++F){var O=Math.floor(F/20),L=tl(y,5)+iA(O,x,A,I)+P+t[O]+v[F]>>>0;P=I,I=A,A=tl(x,30)>>>0,x=y,y=L}r[0]=r[0]+y>>>0,r[1]=r[1]+x>>>0,r[2]=r[2]+A>>>0,r[3]=r[3]+I>>>0,r[4]=r[4]+P>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}var aA=Lv("v5",80,oA);const sA="00000000-0000-0000-0000-000000000000";function uA(e){if(!as(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const lA=Object.freeze(Object.defineProperty({__proto__:null,NIL:sA,parse:Fv,stringify:ss,v1:GO,v3:rA,v4:nA,v5:aA,validate:as,version:uA},Symbol.toStringTag,{value:"Module"})),fA=I_(lA);function mf(e,t){if(!e||!t||!e.length||!t.length)throw new Error("Bad alphabet");this.srcAlphabet=e,this.dstAlphabet=t}mf.prototype.convert=function(e){var t,r,i,a={},s=this.srcAlphabet.length,l=this.dstAlphabet.length,f=e.length,d=typeof e=="string"?"":[];if(!this.isValid(e))throw new Error('Number "'+e+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return e;for(t=0;t<f;t++)a[t]=this.srcAlphabet.indexOf(e[t]);do{for(r=0,i=0,t=0;t<f;t++)r=r*s+a[t],r>=l?(a[i++]=parseInt(r/l,10),r=r%l):i>0&&(a[i++]=0);f=i,d=this.dstAlphabet.slice(r,r+1).concat(d)}while(i!==0);return d};mf.prototype.isValid=function(e){for(var t=0;t<e.length;++t)if(this.srcAlphabet.indexOf(e[t])===-1)return!1;return!0};var cA=mf,dA=cA;function go(e,t){var r=new dA(e,t);return function(i){return r.convert(i)}}go.BIN="01";go.OCT="01234567";go.DEC="0123456789";go.HEX="0123456789abcdef";var pA=go;const{v4:rl}=fA,Sa=pA,nl="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",hA="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",vA={consistentLength:!0};let il;const Bp=(e,t,r)=>{const i=t(e.toLowerCase().replace(/-/g,""));return!r||!r.consistentLength?i:i.padStart(r.shortIdLength,r.paddingChar)},mA=(e,t)=>{const i=t(e).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[i[1],i[2],i[3],i[4],i[5]].join("-")},gA=e=>Math.ceil(Math.log(2**128)/Math.log(e));var gf=(()=>{const e=(t,r)=>{const i=t||nl,a={...vA,...r};if([...new Set(Array.from(i))].length!==i.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const s=gA(i.length),l={shortIdLength:s,consistentLength:a.consistentLength,paddingChar:i[0]},f=Sa(Sa.HEX,i),d=Sa(i,Sa.HEX),p=()=>Bp(rl(),f,l),h={new:p,generate:p,uuid:rl,fromUUID:b=>Bp(b,f,l),toUUID:b=>mA(b,d),alphabet:i,maxLength:s};return Object.freeze(h),h};return e.constants={flickrBase58:nl,cookieBase90:hA},e.uuid=rl,e.generate=()=>(il||(il=e(nl).generate),il()),e})();const Dv=({depth:e,height:t=24,width:r=11,showLines:i=!0,stroke:a="rgb(241, 245, 249)"})=>{const s=`indent_line_${gf.generate()}`;return $.jsxs("svg",{viewBox:`0 0 ${11*e} 24`,width:`${11*e}`,height:t,children:[$.jsx("defs",{children:$.jsx("pattern",{id:s,x:"0",y:"0",width:r,height:t,patternUnits:"userSpaceOnUse",children:$.jsx("line",{x1:r/2,y1:"0",x2:r/2,y2:t,stroke:a})})}),i?$.jsx("rect",{fill:`url(#${s})`,x:"0",y:"0",width:`${11*e}`,height:t}):$.jsx("rect",{fill:i?`url(#${s})`:"",x:"0",y:"0",width:0,height:t})]})},kv=({show:e,expanded:t,onClick:r,variant:i="arrow"})=>e?$.jsx("div",{className:"flex h-6 w-5 items-center",onClick:a=>r&&r(a),children:(()=>{switch(i){case"arrow":return $.jsx(mt.FdDown,{className:ft(["h-3 w-3 transform text-grey-50 transition ease-in-out",{"rotate-0":t,"-rotate-90":!t}])});case"caret":return t?$.jsx(mt.FdDown,{}):$.jsx(mt.FdRight,{});default:return $.jsx(mt.FdDown,{className:"h-3 w-3 transform text-grey-50 transition ease-in-out"})}})()}):$.jsx("div",{className:"flex h-6 w-3 items-center"}),yf=({node:e,depth:t,expandedKeys:r,selectedKeys:i,actions:a,searchQuery:s,renderNode:l,onNodeClick:f})=>{var w;const{key:d,children:p}=e,h=D.useMemo(()=>({expanded:r.includes(e.key),selected:i.includes(e.key)}),[r,e.key,i]),b=l&&typeof l=="function"?l(e,t,h,a,s):bA(e,t,h,f);return!((w=e.options)!=null&&w.filterable)||!s||e.title.toLowerCase().includes(s.toLowerCase())?$.jsxs($.Fragment,{children:[$.jsx("div",{className:"flex items-center space-x-2",children:b},d),wA(p||[],t,s,r,i,h.expanded,a,f,l)]}):null},yA=function(e,t){var l;const{title:r,icon:i,subtitle:a}=e;let s=null;return i&&(s=$.jsx(Iv,{children:i})),$.jsxs("div",{className:"flex flex-1 select-none items-center overflow-hidden text-ellipsis whitespace-nowrap",draggable:(l=e.options)==null?void 0:l.draggable,onClick:()=>{t&&t(e)},children:[s,$.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:r}),a&&$.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:a})]})},wA=function(e,t,r,i,a,s,l,f,d){return e.length&&s?e.map(p=>$.jsx(yf,{actions:l,node:p,searchQuery:r,depth:t+1,expandedKeys:i,selectedKeys:a,onNodeClick:f,renderNode:d},p.key)):null},bA=function(e,t,r,i){return $.jsxs($.Fragment,{children:[$.jsx(Dv,{showLines:!0,depth:t}),$.jsx(kv,{show:e.children&&e.children.length>0||!1,expanded:r.expanded}),yA(e,i)]})},Ea=e=>t=>e===t,SA=function({treeData:t,renderNode:r,onNodeClick:i,onExpandNode:a,searchQuery:s,expandedKeys:l,expandCondition:f="always",encapsulated:d,className:p}){const[h,b]=D.useState(()=>({expandedKeys:l||[],selectedKeys:[]}));D.useEffect(()=>{f==="when-collapsed"&&h.expandedKeys.length>0||b({...h,expandedKeys:l||h.expandedKeys})},[l]);const v=D.useCallback(A=>{if(!A)return;const I=h.expandedKeys.findIndex(Ea(A.key));let P=[];I===-1?(P=[...h.expandedKeys,A.key],b(()=>({...h,expandedKeys:P})),a&&a(P)):(P=h.expandedKeys.filter(F=>F!==A.key),b(()=>({...h,expandedKeys:P})),a&&a(P))},[h]),w=D.useCallback(A=>{var P;if(!((P=A==null?void 0:A.options)!=null&&P.selectable))return;h.selectedKeys.findIndex(Ea(A.key))===-1&&b({...h,selectedKeys:[...h.selectedKeys,A.key]})},[h]),E=D.useCallback(A=>{var P;if(!((P=A==null?void 0:A.options)!=null&&P.selectable))return;h.selectedKeys.findIndex(Ea(A.key))===-1&&b({...h,selectedKeys:[A.key]})},[h]),y=D.useCallback(A=>{var P;if(!((P=A==null?void 0:A.options)!=null&&P.selectable)){b({...h,selectedKeys:[]});return}h.selectedKeys.findIndex(Ea(A.key))!==-1&&b({...h,selectedKeys:h.selectedKeys.filter(F=>F!==A.key)})},[h]),x=D.useMemo(()=>({expand:v,select:w,selectSingle:E,deselect:y}),[y,v,w,E]);return $.jsx("div",{className:ft("fd-tree",p,{"pl-2 mb-1 rounded border bg-grey-900 p-1":d}),children:t.map(A=>$.jsx(yf,{node:A,searchQuery:s||"",depth:0,expandedKeys:h.expandedKeys,selectedKeys:h.selectedKeys,actions:x,renderNode:r,onNodeClick:i},A.key))})};function EA(e){return e.of&&e.children?$.jsx($.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 xA(e){for(var t=0,r,i=0,a=e.length;a>=4;++i,a-=4)r=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var _A={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 Nv(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var OA=/[A-Z]|^ms/g,AA=/_EMO_([^_]+?)_([^]*?)_EMO_/g,jv=function(t){return t.charCodeAt(1)===45},Hp=function(t){return t!=null&&typeof t!="boolean"},ol=Nv(function(e){return jv(e)?e:e.replace(OA,"-$&").toLowerCase()}),qp=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(AA,function(i,a,s){return Or={name:a,styles:s,next:Or},a})}return _A[t]!==1&&!jv(t)&&typeof r=="number"&&r!==0?r+"px":r};function oo(e,t,r){if(r==null)return"";var i=r;if(i.__emotion_styles!==void 0)return i;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return Or={name:a.name,styles:a.styles,next:Or},a.name;var s=r;if(s.styles!==void 0){var l=s.next;if(l!==void 0)for(;l!==void 0;)Or={name:l.name,styles:l.styles,next:Or},l=l.next;var f=s.styles+";";return f}return TA(e,t,r)}case"function":{if(e!==void 0){var d=Or,p=r(e);return Or=d,oo(e,t,p)}break}}var h=r;if(t==null)return h;var b=t[h];return b!==void 0?b:h}function TA(e,t,r){var i="";if(Array.isArray(r))for(var a=0;a<r.length;a++)i+=oo(e,t,r[a])+";";else for(var s in r){var l=r[s];if(typeof l!="object"){var f=l;t!=null&&t[f]!==void 0?i+=s+"{"+t[f]+"}":Hp(f)&&(i+=ol(s)+":"+qp(s,f)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var d=0;d<l.length;d++)Hp(l[d])&&(i+=ol(s)+":"+qp(s,l[d])+";");else{var p=oo(e,t,l);switch(s){case"animation":case"animationName":{i+=ol(s)+":"+p+";";break}default:i+=s+"{"+p+"}"}}}return i}var Zp=/label:\s*([^\s;{]+)\s*(;|$)/g,Or;function CA(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,a="";Or=void 0;var s=e[0];if(s==null||s.raw===void 0)i=!1,a+=oo(r,t,s);else{var l=s;a+=l[0]}for(var f=1;f<e.length;f++)if(a+=oo(r,t,e[f]),i){var d=s;a+=d[f]}Zp.lastIndex=0;for(var p="",h;(h=Zp.exec(a))!==null;)p+="-"+h[1];var b=xA(a)+p;return{name:b,styles:a,next:Or}}var PA=function(t){return t()},RA=C.useInsertionEffect?C.useInsertionEffect:!1,IA=RA||PA,MA=!0;function FA(e,t,r){var i="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(i+=a+" ")}),i}var Wv=function(t,r,i){var a=t.key+"-"+r.name;(i===!1||MA===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},LA=function(t,r,i){Wv(t,r,i);var a=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var s=r;do t.insert(r===s?"."+a:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}},$A=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,DA=Nv(function(e){return $A.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),kA=DA,NA=function(t){return t!=="theme"},Gp=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?kA:NA},Kp=function(t,r,i){var a;if(r){var s=r.shouldForwardProp;a=t.__emotion_forwardProp&&s?function(l){return t.__emotion_forwardProp(l)&&s(l)}:s}return typeof a!="function"&&i&&(a=t.__emotion_forwardProp),a},jA=function(t){var r=t.cache,i=t.serialized,a=t.isStringTag;return Wv(r,i,a),IA(function(){return LA(r,i,a)}),null},WA=function e(t,r){var i=t.__emotion_real===t,a=i&&t.__emotion_base||t,s,l;r!==void 0&&(s=r.label,l=r.target);var f=Kp(t,r,i),d=f||Gp(a),p=!d("as");return function(){var h=arguments,b=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&b.push("label:"+s+";"),h[0]==null||h[0].raw===void 0)b.push.apply(b,h);else{var v=h[0];b.push(v[0]);for(var w=h.length,E=1;E<w;E++)b.push(h[E],v[E])}var y=Ml.withEmotionCache(function(x,A,I){var P=p&&x.as||a,F="",O=[],L=x;if(x.theme==null){L={};for(var U in x)L[U]=x[U];L.theme=C.useContext(Ml.ThemeContext)}typeof x.className=="string"?F=FA(A.registered,O,x.className):x.className!=null&&(F=x.className+" ");var z=CA(b.concat(O),A.registered,L);F+=A.key+"-"+z.name,l!==void 0&&(F+=" "+l);var q=p&&f===void 0?Gp(P):d,V={};for(var ee in x)p&&ee==="as"||q(ee)&&(V[ee]=x[ee]);return V.className=F,I&&(V.ref=I),C.createElement(C.Fragment,null,C.createElement(jA,{cache:A,serialized:z,isStringTag:typeof P=="string"}),C.createElement(P,V))});return y.displayName=s!==void 0?s:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=a,y.__emotion_styles=b,y.__emotion_forwardProp=f,Object.defineProperty(y,"toString",{value:function(){return"."+l}}),y.withComponent=function(x,A){var I=e(x,Qe({},r,A,{shouldForwardProp:Kp(y,A,!0)}));return I.apply(void 0,b)},y}},zA=["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"],Ka=WA.bind(null);zA.forEach(function(e){Ka[e]=Ka(e)});var UA=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},di=new WeakMap,xa=new WeakMap,_a={},al=0,zv=function(e){return e&&(e.host||zv(e.parentNode))},BA=function(e,t){return t.map(function(r){if(e.contains(r))return r;var i=zv(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})},HA=function(e,t,r,i){var a=BA(t,Array.isArray(e)?e:[e]);_a[r]||(_a[r]=new WeakMap);var s=_a[r],l=[],f=new Set,d=new Set(a),p=function(b){!b||f.has(b)||(f.add(b),p(b.parentNode))};a.forEach(p);var h=function(b){!b||d.has(b)||Array.prototype.forEach.call(b.children,function(v){if(f.has(v))h(v);else try{var w=v.getAttribute(i),E=w!==null&&w!=="false",y=(di.get(v)||0)+1,x=(s.get(v)||0)+1;di.set(v,y),s.set(v,x),l.push(v),y===1&&E&&xa.set(v,!0),x===1&&v.setAttribute(r,"true"),E||v.setAttribute(i,"true")}catch(A){console.error("aria-hidden: cannot operate on ",v,A)}})};return h(t),f.clear(),al++,function(){l.forEach(function(b){var v=di.get(b)-1,w=s.get(b)-1;di.set(b,v),s.set(b,w),v||(xa.has(b)||b.removeAttribute(i),xa.delete(b)),w||b.removeAttribute(r)}),al--,al||(di=new WeakMap,di=new WeakMap,xa=new WeakMap,_a={})}},qA=function(e,t,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),a=UA(e);return a?(i.push.apply(i,Array.from(a.querySelectorAll("[aria-live]"))),HA(i,a,r,"aria-hidden")):function(){return null}};/*! *****************************************************************************
18
- Copyright (c) Microsoft Corporation.
19
-
20
- Permission to use, copy, modify, and/or distribute this software for any
21
- purpose with or without fee is hereby granted.
22
-
23
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
24
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
25
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
26
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
27
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
28
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
29
- PERFORMANCE OF THIS SOFTWARE.
30
- ***************************************************************************** */var mi=function(){return mi=Object.assign||function(t){for(var r,i=1,a=arguments.length;i<a;i++){r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},mi.apply(this,arguments)};function ZA(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(r[i[a]]=e[i[a]]);return r}var Wa="right-scroll-bar-position",za="width-before-scroll-bar",GA="with-scroll-bars-hidden",KA="--removed-body-scroll-bar-size",kl=function(e,t){return kl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},kl(e,t)};function ls(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");kl(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Ya=function(){return Ya=Object.assign||function(t){for(var r,i=1,a=arguments.length;i<a;i++){r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},Ya.apply(this,arguments)};function YA(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(r[i[a]]=e[i[a]]);return r}function Nl(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 jl(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),a,s=[],l;try{for(;(t===void 0||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(f){l={error:f}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(l)throw l.error}}return s}function Wl(e,t,r){if(r||arguments.length===2)for(var i=0,a=t.length,s;i<a;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return e.concat(s||Array.prototype.slice.call(t))}function VA(e){return e}function XA(e,t){t===void 0&&(t=VA);var r=[],i=!1,a={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(s){var l=t(s,i);return r.push(l),function(){r=r.filter(function(f){return f!==l})}},assignSyncMedium:function(s){for(i=!0;r.length;){var l=r;r=[],l.forEach(s)}r={push:function(f){return s(f)},filter:function(){return r}}},assignMedium:function(s){i=!0;var l=[];if(r.length){var f=r;r=[],f.forEach(s),l=r}var d=function(){var h=l;l=[],h.forEach(s)},p=function(){return Promise.resolve().then(d)};p(),r={push:function(h){l.push(h),p()},filter:function(h){return l=l.filter(h),r}}}};return a}function JA(e){e===void 0&&(e={});var t=XA(null);return t.options=Ya({async:!0,ssr:!1},e),t}var Uv=function(e){var t=e.sideCar,r=YA(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 C.createElement(i,Ya({},r))};Uv.isSideCarExport=!0;function QA(e,t){return e.useMedium(t),Uv}var Bv=JA();function sl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function eT(e,t){var r=D.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(i){var a=r.value;a!==i&&(r.value=i,r.callback(i,a))}}}})[0];return r.callback=t,r.facade}var tT=typeof window<"u"?C.useLayoutEffect:C.useEffect,Yp=new WeakMap;function rT(e,t){var r=eT(null,function(i){return e.forEach(function(a){return sl(a,i)})});return tT(function(){var i=Yp.get(r);if(i){var a=new Set(i),s=new Set(e),l=r.current;a.forEach(function(f){s.has(f)||sl(f,null)}),s.forEach(function(f){a.has(f)||sl(f,l)})}Yp.set(r,e)},[e]),r}var ul=function(){},fs=C.forwardRef(function(e,t){var r=C.useRef(null),i=C.useState({onScrollCapture:ul,onWheelCapture:ul,onTouchMoveCapture:ul}),a=i[0],s=i[1],l=e.forwardProps,f=e.children,d=e.className,p=e.removeScrollBar,h=e.enabled,b=e.shards,v=e.sideCar,w=e.noIsolation,E=e.inert,y=e.allowPinchZoom,x=e.as,A=x===void 0?"div":x,I=ZA(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),P=v,F=rT([r,t]),O=mi({},I,a);return C.createElement(C.Fragment,null,h&&C.createElement(P,{sideCar:Bv,removeScrollBar:p,shards:b,noIsolation:w,inert:E,setCallbacks:s,allowPinchZoom:!!y,lockRef:r}),l?C.cloneElement(C.Children.only(f),mi({},O,{ref:F})):C.createElement(A,mi({},O,{className:d,ref:F}),f))});fs.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};fs.classNames={fullWidth:za,zeroRight:Wa};var nT=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function iT(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=nT();return t&&e.setAttribute("nonce",t),e}function oT(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function aT(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var sT=function(){var e=0,t=null;return{add:function(r){e==0&&(t=iT())&&(oT(t,r),aT(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},uT=function(){var e=sT();return function(t,r){C.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Hv=function(){var e=uT(),t=function(r){var i=r.styles,a=r.dynamic;return e(i,a),null};return t},lT={left:0,top:0,right:0,gap:0},ll=function(e){return parseInt(e||"",10)||0},fT=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[ll(r),ll(i),ll(a)]},cT=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return lT;var t=fT(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])}},dT=Hv(),gi="data-scroll-locked",pT=function(e,t,r,i){var a=e.left,s=e.top,l=e.right,f=e.gap;return r===void 0&&(r="margin"),`
31
- .`.concat(GA,` {
32
- overflow: hidden `).concat(i,`;
33
- padding-right: `).concat(f,"px ").concat(i,`;
15
+ `,{inline:p}));for(;typeof m[m.length-1]=="string"&&!m[m.length-1].trim();)m.pop();if(r.wrapper===null)return m;const c=r.wrapper||(p?"span":"div");let g;if(m.length>1||r.forceWrapper)g=m;else{if(m.length===1)return g=m[0],typeof g=="string"?n("span",{key:"outer"},g):g;g=null}return r.createElement(c,{key:"outer"},g)}function a(l,p){const m=p.match(gx);return m?m.reduce(function(c,g){const b=g.indexOf("=");if(b!==-1){const _=function(M){return M.indexOf("-")!==-1&&M.match(Lx)===null&&(M=M.replace(Nx,function(H,F){return F.toUpperCase()})),M}(g.slice(0,b)).trim(),x=function(M){const H=M[0];return(H==='"'||H==="'")&&M.length>=2&&M[M.length-1]===H?M.slice(1,-1):M}(g.slice(b+1).trim()),C=Gd[_]||_;if(C==="ref")return c;const T=c[C]=function(M,H,F,N){return H==="style"?function(X){const j=[];let L="",z=!1,q=!1,R="";if(!X)return j;for(let V=0;V<X.length;V++){const te=X[V];if(te!=='"'&&te!=="'"||z||(q?te===R&&(q=!1,R=""):(q=!0,R=te)),te==="("&&L.endsWith("url")?z=!0:te===")"&&z&&(z=!1),te!==";"||q||z)L+=te;else{const le=L.trim();if(le){const Z=le.indexOf(":");if(Z>0){const ee=le.slice(0,Z).trim(),ae=le.slice(Z+1).trim();j.push([ee,ae])}}L=""}}const J=L.trim();if(J){const V=J.indexOf(":");if(V>0){const te=J.slice(0,V).trim(),le=J.slice(V+1).trim();j.push([te,le])}}return j}(F).reduce(function(X,[j,L]){return X[j.replace(/(-[a-z])/g,z=>z[1].toUpperCase())]=N(L,M,j),X},{}):mx.indexOf(H)!==-1?N(F,M,H):(F.match(Fx)&&(F=F.slice(1,F.length-1)),F==="true"||F!=="false"&&F)}(l,_,x,r.sanitizer);typeof T=="string"&&(sl.test(T)||ul.test(T))&&(c[C]=o(T.trim()))}else g!=="style"&&(c[Gd[g]||g]=!0);return c},{}):null}r.overrides=r.overrides||{},r.sanitizer=r.sanitizer||vO,r.slugify=r.slugify||_i,r.namedCodesToUnicode=r.namedCodesToUnicode?mn({},Kd,r.namedCodesToUnicode):Kd,r.createElement=r.createElement||D.createElement;const u=[],f={},d={[me.blockQuote]:{match:Tr(iv),order:1,parse(l,p,m){const[,c,g]=l[0].replace(bx,"").match(Sx);return{alert:c,children:p(g,m)}},render(l,p,m){const c={key:m.key};return l.alert&&(c.className="markdown-alert-"+r.slugify(l.alert.toLowerCase(),_i),l.children.unshift({attrs:{},children:[{type:me.text,text:l.alert}],noInnerParse:!0,type:me.htmlBlock,tag:"header"})),n("blockquote",c,p(l.children,m))}},[me.breakLine]:{match:xi(Ex),order:1,parse:xu,render:(l,p,m)=>n("br",{key:m.key})},[me.breakThematic]:{match:Tr(_x),order:1,parse:xu,render:(l,p,m)=>n("hr",{key:m.key})},[me.codeBlock]:{match:Tr(av),order:0,parse:l=>({lang:void 0,text:to(l[0].replace(/^ {4}/gm,"")).replace(Vd,"$1")}),render:(l,p,m)=>n("pre",{key:m.key},n("code",mn({},l.attrs,{className:l.lang?`lang-${l.lang}`:""}),l.text))},[me.codeFenced]:{match:Tr(ov),order:0,parse:l=>({attrs:a("code",l[3]||""),lang:l[2]||void 0,text:l[4],type:me.codeBlock})},[me.codeInline]:{match:Gr(xx),order:3,parse:l=>({text:l[2].replace(Vd,"$1")}),render:(l,p,m)=>n("code",{key:m.key},l.text)},[me.footnote]:{match:Tr(Tx),order:0,parse:l=>(u.push({footnote:l[2],identifier:l[1]}),{}),render:Ou},[me.footnoteReference]:{match:Zr(Cx),order:1,parse:l=>({target:`#${r.slugify(l[1],_i)}`,text:l[1]}),render:(l,p,m)=>n("a",{key:m.key,href:r.sanitizer(l.target,"a","href")},n("sup",{key:m.key},l.text))},[me.gfmTask]:{match:Zr(Mx),order:1,parse:l=>({completed:l[1].toLowerCase()==="x"}),render:(l,p,m)=>n("input",{checked:l.completed,key:m.key,readOnly:!0,type:"checkbox"})},[me.heading]:{match:Tr(r.enforceAtxHeadings?uv:sv),order:1,parse:(l,p,m)=>({children:Oa(p,l[2],m),id:r.slugify(l[2],_i),level:l[1].length}),render:(l,p,m)=>n(`h${l.level}`,{id:l.id,key:m.key},p(l.children,m))},[me.headingSetext]:{match:Tr(lv),order:0,parse:(l,p,m)=>({children:Oa(p,l[1],m),level:l[2]==="="?1:2,type:me.heading})},[me.htmlBlock]:{match:xi(sl),order:1,parse(l,p,m){const[,c]=l[3].match(tO),g=new RegExp(`^${c}`,"gm"),b=l[3].replace(g,""),_=(x=b,fO.some(F=>F.test(x))?gO:Oa);var x;const C=l[1].toLowerCase(),T=vx.indexOf(C)!==-1,M=(T?C:l[1]).trim(),H={attrs:a(M,l[2]),noInnerParse:T,tag:M};return m.inAnchor=m.inAnchor||C==="a",T?H.text=l[3]:H.children=_(p,b,m),m.inAnchor=!1,H},render:(l,p,m)=>n(l.tag,mn({key:m.key},l.attrs),l.text||(l.children?p(l.children,m):""))},[me.htmlSelfClosing]:{match:xi(ul),order:1,parse(l){const p=l[1].trim();return{attrs:a(p,l[2]||""),tag:p}},render:(l,p,m)=>n(l.tag,mn({},l.attrs,{key:m.key}))},[me.htmlComment]:{match:xi(fv),order:1,parse:()=>({}),render:Ou},[me.image]:{match:Gr(lO),order:1,parse:l=>({alt:l[1],target:Qd(l[2]),title:l[3]}),render:(l,p,m)=>n("img",{key:m.key,alt:l.alt||void 0,title:l.title||void 0,src:r.sanitizer(l.target,"img","src")})},[me.link]:{match:Zr(uO),order:3,parse:(l,p,m)=>({children:mO(p,l[1],m),target:Qd(l[2]),title:l[3]}),render:(l,p,m)=>n("a",{key:m.key,href:r.sanitizer(l.target,"a","href"),title:l.title},p(l.children,m))},[me.linkAngleBraceStyleDetector]:{match:Zr(kx),order:0,parse:l=>({children:[{text:l[1],type:me.text}],target:l[1],type:me.link})},[me.linkBareUrlDetector]:{match:ni((l,p)=>p.inAnchor||r.disableAutoLink?null:Zr($x)(l,p)),order:0,parse:l=>({children:[{text:l[1],type:me.text}],target:l[1],title:void 0,type:me.link})},[me.linkMailtoDetector]:{match:Zr(Dx),order:0,parse(l){let p=l[1],m=l[1];return yx.test(m)||(m="mailto:"+m),{children:[{text:p.replace("mailto:",""),type:me.text}],target:m,type:me.link}}},[me.orderedList]:Yd(n,1),[me.unorderedList]:Yd(n,2),[me.newlineCoalescer]:{match:Tr(Ox),order:3,parse:xu,render:()=>`
16
+ `},[me.paragraph]:{match:ni(pO),order:3,parse:_u,render:(l,p,m)=>n("p",{key:m.key},p(l.children,m))},[me.ref]:{match:Zr(jx),order:0,parse:l=>(f[l[1]]={target:l[2],title:l[4]},{}),render:Ou},[me.refImage]:{match:Gr(Wx),order:0,parse:l=>({alt:l[1]||void 0,ref:l[2]}),render:(l,p,m)=>f[l.ref]?n("img",{key:m.key,alt:l.alt,src:r.sanitizer(f[l.ref].target,"img","src"),title:f[l.ref].title}):null},[me.refLink]:{match:Zr(Ux),order:0,parse:(l,p,m)=>({children:p(l[1],m),fallbackChildren:l[0],ref:l[2]}),render:(l,p,m)=>f[l.ref]?n("a",{key:m.key,href:r.sanitizer(f[l.ref].target,"a","href"),title:f[l.ref].title},p(l.children,m)):n("span",{key:m.key},l.fallbackChildren)},[me.table]:{match:Tr(cv),order:1,parse:dO,render(l,p,m){const c=l;return n("table",{key:m.key},n("thead",null,n("tr",null,c.header.map(function(g,b){return n("th",{key:b,style:Jd(c,b)},p(g,m))}))),n("tbody",null,c.cells.map(function(g,b){return n("tr",{key:b},g.map(function(_,x){return n("td",{key:x,style:Jd(c,x)},p(_,m))}))})))}},[me.text]:{match:xi(Qx),order:4,parse:l=>({text:l[0].replace(Ix,(p,m)=>r.namedCodesToUnicode[m]?r.namedCodesToUnicode[m]:p)}),render:l=>l.text},[me.textBolded]:{match:Gr(Kx),order:2,parse:(l,p,m)=>({children:p(l[2],m)}),render:(l,p,m)=>n("strong",{key:m.key},p(l.children,m))},[me.textEmphasized]:{match:Gr(Vx),order:3,parse:(l,p,m)=>({children:p(l[2],m)}),render:(l,p,m)=>n("em",{key:m.key},p(l.children,m))},[me.textEscaped]:{match:Gr(Jx),order:1,parse:l=>({text:l[1],type:me.text})},[me.textMarked]:{match:Gr(Yx),order:3,parse:_u,render:(l,p,m)=>n("mark",{key:m.key},p(l.children,m))},[me.textStrikethroughed]:{match:Gr(Xx),order:3,parse:_u,render:(l,p,m)=>n("del",{key:m.key},p(l.children,m))}};r.disableParsingRawHTML===!0&&(delete d[me.htmlBlock],delete d[me.htmlSelfClosing]);const w=function(l){let p=Object.keys(l);function m(c,g){let b,_,x=[],C="",T="";for(g.prevCapture=g.prevCapture||"";c;){let M=0;for(;M<p.length;){if(C=p[M],b=l[C],g.inline&&!b.match.inline){M++;continue}const H=b.match(c,g);if(H){T=H[0],g.prevCapture+=T,c=c.substring(T.length),_=b.parse(H,m,g),_.type==null&&(_.type=C),x.push(_);break}M++}}return g.prevCapture="",x}return p.sort(function(c,g){let b=l[c].order,_=l[g].order;return b!==_?b-_:c<g?-1:1}),function(c,g){return m(function(b){return b.replace(Ax,`
17
+ `).replace(Px,"").replace(Bx," ")}(c),g)}}(d),S=(y=function(l,p){return function(m,c,g){const b=l[m.type].render;return p?p(()=>b(m,c,g),m,c,g):b(m,c,g)}}(d,r.renderRule),function l(p,m={}){if(Array.isArray(p)){const c=m.key,g=[];let b=!1;for(let _=0;_<p.length;_++){m.key=_;const x=l(p[_],m),C=typeof x=="string";C&&b?g[g.length-1]+=x:x!==null&&g.push(x),b=C}return m.key=c,g}return y(p,l,m)});var y;const h=o(e);return u.length?n("div",null,h,n("footer",{key:"footer"},u.map(function(l){return n("div",{id:r.slugify(l.identifier,_i),key:l.identifier},l.identifier,S(w(l.footnote,{inline:!0})))}))):h}const Ia=e=>{let{children:r="",options:n}=e,o=function(a,u){if(a==null)return{};var f,d,w={},S=Object.keys(a);for(d=0;d<S.length;d++)u.indexOf(f=S[d])>=0||(w[f]=a[f]);return w}(e,hx);return D.cloneElement(wO(r,n),o)},ep=({kind:e,customIcon:r})=>{if(r)return W.jsx(r,{className:"mr-1 h-6 w-6 flex-none"});switch(e){case"error":case"danger":return W.jsx(ft.FdSanityCheckInfo,{className:"flex-none h-6 w-6"});case"info":return W.jsx(W.Fragment,{children:W.jsx(ft.FdInfoBold,{className:"flex-none h-6 w-6"})});case"warning":return W.jsx(W.Fragment,{children:W.jsx(ft.FdWarningDanger,{className:"flex-none h-6 w-6"})});case"message":return W.jsx(W.Fragment,{children:W.jsx(ft.FdInfoBold,{className:"flex-none h-6 w-6"})});default:return null}},bO=({id:e,onClose:r,kind:n,message:o,markdown:a,customIcon:u})=>{const f=({className:d}={})=>W.jsx("button",{onClick:r,className:it("flex items-center justify-center p-1",d),children:W.jsx(ft.FdCloseNaked,{className:"h-5 w-5 font-thin stroke-current"})});return W.jsx("div",{className:it("relative flex items-center rounded-lg py-2 px-4 font-semibold",{"bg-yellow-100 text-yellow-400":n==="warning","bg-red-200 text-red-500":n==="danger"||n==="error","bg-primary-light text-primary":n==="info","bg-green-200 text-green-500":n==="message"}),children:typeof o=="string"?W.jsxs("div",{className:"w-full flex items-center justify-between gap-x-3",children:[W.jsxs("div",{className:"flex items-center gap-1",children:[W.jsx(ep,{kind:n,customIcon:u}),a?W.jsx(Ia,{children:o}):W.jsx(W.Fragment,{children:o})]}),f()]}):W.jsxs("div",{className:"flex items-start",children:[W.jsx("div",{className:"flex flex-col gap-2 justify-between",children:o.filter(d=>d.messages.length>0).map(d=>W.jsxs(W.Fragment,{children:[d.title&&W.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[W.jsx(ep,{kind:n,customIcon:u}),W.jsxs("span",{children:[d.title," :"]})]}),W.jsx("ul",{className:it("list-disc",{"px-12":d.title,"px-6":!d.title}),children:d.messages.map(w=>W.jsx("li",{children:a?W.jsx(Ia,{children:w}):W.jsx(W.Fragment,{children:w})}))})]}))}),f({className:"absolute top-1 right-1"})]})},e)},Sv=({children:e,size:r,className:n,...o})=>W.jsx("div",{style:{"--width":`${r||24}px`},className:it("h-6 flex items-center pr-1 w-[--width]",n),...o,children:e});var Tu={},Oi={},sa={},tp;function Ev(){if(tp)return sa;tp=1,Object.defineProperty(sa,"__esModule",{value:!0}),sa.default=n;let e;const r=new Uint8Array(16);function n(){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(r)}return sa}var qn={},Ai={},Ti={},rp;function SO(){if(rp)return Ti;rp=1,Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.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 Ti.default=e,Ti}var np;function Ua(){if(np)return Ai;np=1,Object.defineProperty(Ai,"__esModule",{value:!0}),Ai.default=void 0;var e=r(SO());function r(a){return a&&a.__esModule?a:{default:a}}function n(a){return typeof a=="string"&&e.default.test(a)}var o=n;return Ai.default=o,Ai}var ip;function za(){if(ip)return qn;ip=1,Object.defineProperty(qn,"__esModule",{value:!0}),qn.default=void 0,qn.unsafeStringify=o;var e=r(Ua());function r(f){return f&&f.__esModule?f:{default:f}}const n=[];for(let f=0;f<256;++f)n.push((f+256).toString(16).slice(1));function o(f,d=0){return n[f[d+0]]+n[f[d+1]]+n[f[d+2]]+n[f[d+3]]+"-"+n[f[d+4]]+n[f[d+5]]+"-"+n[f[d+6]]+n[f[d+7]]+"-"+n[f[d+8]]+n[f[d+9]]+"-"+n[f[d+10]]+n[f[d+11]]+n[f[d+12]]+n[f[d+13]]+n[f[d+14]]+n[f[d+15]]}function a(f,d=0){const w=o(f,d);if(!(0,e.default)(w))throw TypeError("Stringified UUID is invalid");return w}var u=a;return qn.default=u,qn}var op;function EO(){if(op)return Oi;op=1,Object.defineProperty(Oi,"__esModule",{value:!0}),Oi.default=void 0;var e=n(Ev()),r=za();function n(S){return S&&S.__esModule?S:{default:S}}let o,a,u=0,f=0;function d(S,y,h){let l=y&&h||0;const p=y||new Array(16);S=S||{};let m=S.node||o,c=S.clockseq!==void 0?S.clockseq:a;if(m==null||c==null){const T=S.random||(S.rng||e.default)();m==null&&(m=o=[T[0]|1,T[1],T[2],T[3],T[4],T[5]]),c==null&&(c=a=(T[6]<<8|T[7])&16383)}let g=S.msecs!==void 0?S.msecs:Date.now(),b=S.nsecs!==void 0?S.nsecs:f+1;const _=g-u+(b-f)/1e4;if(_<0&&S.clockseq===void 0&&(c=c+1&16383),(_<0||g>u)&&S.nsecs===void 0&&(b=0),b>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=g,f=b,a=c,g+=122192928e5;const x=((g&268435455)*1e4+b)%4294967296;p[l++]=x>>>24&255,p[l++]=x>>>16&255,p[l++]=x>>>8&255,p[l++]=x&255;const C=g/4294967296*1e4&268435455;p[l++]=C>>>8&255,p[l++]=C&255,p[l++]=C>>>24&15|16,p[l++]=C>>>16&255,p[l++]=c>>>8|128,p[l++]=c&255;for(let T=0;T<6;++T)p[l+T]=m[T];return y||(0,r.unsafeStringify)(p)}var w=d;return Oi.default=w,Oi}var Ci={},Kr={},Pi={},ap;function _v(){if(ap)return Pi;ap=1,Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.default=void 0;var e=r(Ua());function r(a){return a&&a.__esModule?a:{default:a}}function n(a){if(!(0,e.default)(a))throw TypeError("Invalid UUID");let u;const f=new Uint8Array(16);return f[0]=(u=parseInt(a.slice(0,8),16))>>>24,f[1]=u>>>16&255,f[2]=u>>>8&255,f[3]=u&255,f[4]=(u=parseInt(a.slice(9,13),16))>>>8,f[5]=u&255,f[6]=(u=parseInt(a.slice(14,18),16))>>>8,f[7]=u&255,f[8]=(u=parseInt(a.slice(19,23),16))>>>8,f[9]=u&255,f[10]=(u=parseInt(a.slice(24,36),16))/1099511627776&255,f[11]=u/4294967296&255,f[12]=u>>>24&255,f[13]=u>>>16&255,f[14]=u>>>8&255,f[15]=u&255,f}var o=n;return Pi.default=o,Pi}var sp;function xv(){if(sp)return Kr;sp=1,Object.defineProperty(Kr,"__esModule",{value:!0}),Kr.URL=Kr.DNS=void 0,Kr.default=f;var e=za(),r=n(_v());function n(d){return d&&d.__esModule?d:{default:d}}function o(d){d=unescape(encodeURIComponent(d));const w=[];for(let S=0;S<d.length;++S)w.push(d.charCodeAt(S));return w}const a="6ba7b810-9dad-11d1-80b4-00c04fd430c8";Kr.DNS=a;const u="6ba7b811-9dad-11d1-80b4-00c04fd430c8";Kr.URL=u;function f(d,w,S){function y(h,l,p,m){var c;if(typeof h=="string"&&(h=o(h)),typeof l=="string"&&(l=(0,r.default)(l)),((c=l)===null||c===void 0?void 0:c.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let g=new Uint8Array(16+h.length);if(g.set(l),g.set(h,l.length),g=S(g),g[6]=g[6]&15|w,g[8]=g[8]&63|128,p){m=m||0;for(let b=0;b<16;++b)p[m+b]=g[b];return p}return(0,e.unsafeStringify)(g)}try{y.name=d}catch{}return y.DNS=a,y.URL=u,y}return Kr}var Ri={},up;function _O(){if(up)return Ri;up=1,Object.defineProperty(Ri,"__esModule",{value:!0}),Ri.default=void 0;function e(p){if(typeof p=="string"){const m=unescape(encodeURIComponent(p));p=new Uint8Array(m.length);for(let c=0;c<m.length;++c)p[c]=m.charCodeAt(c)}return r(o(a(p),p.length*8))}function r(p){const m=[],c=p.length*32,g="0123456789abcdef";for(let b=0;b<c;b+=8){const _=p[b>>5]>>>b%32&255,x=parseInt(g.charAt(_>>>4&15)+g.charAt(_&15),16);m.push(x)}return m}function n(p){return(p+64>>>9<<4)+14+1}function o(p,m){p[m>>5]|=128<<m%32,p[n(m)-1]=m;let c=1732584193,g=-271733879,b=-1732584194,_=271733878;for(let x=0;x<p.length;x+=16){const C=c,T=g,M=b,H=_;c=w(c,g,b,_,p[x],7,-680876936),_=w(_,c,g,b,p[x+1],12,-389564586),b=w(b,_,c,g,p[x+2],17,606105819),g=w(g,b,_,c,p[x+3],22,-1044525330),c=w(c,g,b,_,p[x+4],7,-176418897),_=w(_,c,g,b,p[x+5],12,1200080426),b=w(b,_,c,g,p[x+6],17,-1473231341),g=w(g,b,_,c,p[x+7],22,-45705983),c=w(c,g,b,_,p[x+8],7,1770035416),_=w(_,c,g,b,p[x+9],12,-1958414417),b=w(b,_,c,g,p[x+10],17,-42063),g=w(g,b,_,c,p[x+11],22,-1990404162),c=w(c,g,b,_,p[x+12],7,1804603682),_=w(_,c,g,b,p[x+13],12,-40341101),b=w(b,_,c,g,p[x+14],17,-1502002290),g=w(g,b,_,c,p[x+15],22,1236535329),c=S(c,g,b,_,p[x+1],5,-165796510),_=S(_,c,g,b,p[x+6],9,-1069501632),b=S(b,_,c,g,p[x+11],14,643717713),g=S(g,b,_,c,p[x],20,-373897302),c=S(c,g,b,_,p[x+5],5,-701558691),_=S(_,c,g,b,p[x+10],9,38016083),b=S(b,_,c,g,p[x+15],14,-660478335),g=S(g,b,_,c,p[x+4],20,-405537848),c=S(c,g,b,_,p[x+9],5,568446438),_=S(_,c,g,b,p[x+14],9,-1019803690),b=S(b,_,c,g,p[x+3],14,-187363961),g=S(g,b,_,c,p[x+8],20,1163531501),c=S(c,g,b,_,p[x+13],5,-1444681467),_=S(_,c,g,b,p[x+2],9,-51403784),b=S(b,_,c,g,p[x+7],14,1735328473),g=S(g,b,_,c,p[x+12],20,-1926607734),c=y(c,g,b,_,p[x+5],4,-378558),_=y(_,c,g,b,p[x+8],11,-2022574463),b=y(b,_,c,g,p[x+11],16,1839030562),g=y(g,b,_,c,p[x+14],23,-35309556),c=y(c,g,b,_,p[x+1],4,-1530992060),_=y(_,c,g,b,p[x+4],11,1272893353),b=y(b,_,c,g,p[x+7],16,-155497632),g=y(g,b,_,c,p[x+10],23,-1094730640),c=y(c,g,b,_,p[x+13],4,681279174),_=y(_,c,g,b,p[x],11,-358537222),b=y(b,_,c,g,p[x+3],16,-722521979),g=y(g,b,_,c,p[x+6],23,76029189),c=y(c,g,b,_,p[x+9],4,-640364487),_=y(_,c,g,b,p[x+12],11,-421815835),b=y(b,_,c,g,p[x+15],16,530742520),g=y(g,b,_,c,p[x+2],23,-995338651),c=h(c,g,b,_,p[x],6,-198630844),_=h(_,c,g,b,p[x+7],10,1126891415),b=h(b,_,c,g,p[x+14],15,-1416354905),g=h(g,b,_,c,p[x+5],21,-57434055),c=h(c,g,b,_,p[x+12],6,1700485571),_=h(_,c,g,b,p[x+3],10,-1894986606),b=h(b,_,c,g,p[x+10],15,-1051523),g=h(g,b,_,c,p[x+1],21,-2054922799),c=h(c,g,b,_,p[x+8],6,1873313359),_=h(_,c,g,b,p[x+15],10,-30611744),b=h(b,_,c,g,p[x+6],15,-1560198380),g=h(g,b,_,c,p[x+13],21,1309151649),c=h(c,g,b,_,p[x+4],6,-145523070),_=h(_,c,g,b,p[x+11],10,-1120210379),b=h(b,_,c,g,p[x+2],15,718787259),g=h(g,b,_,c,p[x+9],21,-343485551),c=u(c,C),g=u(g,T),b=u(b,M),_=u(_,H)}return[c,g,b,_]}function a(p){if(p.length===0)return[];const m=p.length*8,c=new Uint32Array(n(m));for(let g=0;g<m;g+=8)c[g>>5]|=(p[g/8]&255)<<g%32;return c}function u(p,m){const c=(p&65535)+(m&65535);return(p>>16)+(m>>16)+(c>>16)<<16|c&65535}function f(p,m){return p<<m|p>>>32-m}function d(p,m,c,g,b,_){return u(f(u(u(m,p),u(g,_)),b),c)}function w(p,m,c,g,b,_,x){return d(m&c|~m&g,p,m,b,_,x)}function S(p,m,c,g,b,_,x){return d(m&g|c&~g,p,m,b,_,x)}function y(p,m,c,g,b,_,x){return d(m^c^g,p,m,b,_,x)}function h(p,m,c,g,b,_,x){return d(c^(m|~g),p,m,b,_,x)}var l=e;return Ri.default=l,Ri}var lp;function xO(){if(lp)return Ci;lp=1,Object.defineProperty(Ci,"__esModule",{value:!0}),Ci.default=void 0;var e=n(xv()),r=n(_O());function n(u){return u&&u.__esModule?u:{default:u}}var a=(0,e.default)("v3",48,r.default);return Ci.default=a,Ci}var Mi={},Ii={},fp;function OO(){if(fp)return Ii;fp=1,Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.default=void 0;var r={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return Ii.default=r,Ii}var cp;function AO(){if(cp)return Mi;cp=1,Object.defineProperty(Mi,"__esModule",{value:!0}),Mi.default=void 0;var e=o(OO()),r=o(Ev()),n=za();function o(f){return f&&f.__esModule?f:{default:f}}function a(f,d,w){if(e.default.randomUUID&&!d&&!f)return e.default.randomUUID();f=f||{};const S=f.random||(f.rng||r.default)();if(S[6]=S[6]&15|64,S[8]=S[8]&63|128,d){w=w||0;for(let y=0;y<16;++y)d[w+y]=S[y];return d}return(0,n.unsafeStringify)(S)}var u=a;return Mi.default=u,Mi}var Li={},Fi={},dp;function TO(){if(dp)return Fi;dp=1,Object.defineProperty(Fi,"__esModule",{value:!0}),Fi.default=void 0;function e(a,u,f,d){switch(a){case 0:return u&f^~u&d;case 1:return u^f^d;case 2:return u&f^u&d^f&d;case 3:return u^f^d}}function r(a,u){return a<<u|a>>>32-u}function n(a){const u=[1518500249,1859775393,2400959708,3395469782],f=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof a=="string"){const y=unescape(encodeURIComponent(a));a=[];for(let h=0;h<y.length;++h)a.push(y.charCodeAt(h))}else Array.isArray(a)||(a=Array.prototype.slice.call(a));a.push(128);const d=a.length/4+2,w=Math.ceil(d/16),S=new Array(w);for(let y=0;y<w;++y){const h=new Uint32Array(16);for(let l=0;l<16;++l)h[l]=a[y*64+l*4]<<24|a[y*64+l*4+1]<<16|a[y*64+l*4+2]<<8|a[y*64+l*4+3];S[y]=h}S[w-1][14]=(a.length-1)*8/Math.pow(2,32),S[w-1][14]=Math.floor(S[w-1][14]),S[w-1][15]=(a.length-1)*8&4294967295;for(let y=0;y<w;++y){const h=new Uint32Array(80);for(let b=0;b<16;++b)h[b]=S[y][b];for(let b=16;b<80;++b)h[b]=r(h[b-3]^h[b-8]^h[b-14]^h[b-16],1);let l=f[0],p=f[1],m=f[2],c=f[3],g=f[4];for(let b=0;b<80;++b){const _=Math.floor(b/20),x=r(l,5)+e(_,p,m,c)+g+u[_]+h[b]>>>0;g=c,c=m,m=r(p,30)>>>0,p=l,l=x}f[0]=f[0]+l>>>0,f[1]=f[1]+p>>>0,f[2]=f[2]+m>>>0,f[3]=f[3]+c>>>0,f[4]=f[4]+g>>>0}return[f[0]>>24&255,f[0]>>16&255,f[0]>>8&255,f[0]&255,f[1]>>24&255,f[1]>>16&255,f[1]>>8&255,f[1]&255,f[2]>>24&255,f[2]>>16&255,f[2]>>8&255,f[2]&255,f[3]>>24&255,f[3]>>16&255,f[3]>>8&255,f[3]&255,f[4]>>24&255,f[4]>>16&255,f[4]>>8&255,f[4]&255]}var o=n;return Fi.default=o,Fi}var pp;function CO(){if(pp)return Li;pp=1,Object.defineProperty(Li,"__esModule",{value:!0}),Li.default=void 0;var e=n(xv()),r=n(TO());function n(u){return u&&u.__esModule?u:{default:u}}var a=(0,e.default)("v5",80,r.default);return Li.default=a,Li}var $i={},hp;function PO(){if(hp)return $i;hp=1,Object.defineProperty($i,"__esModule",{value:!0}),$i.default=void 0;var e="00000000-0000-0000-0000-000000000000";return $i.default=e,$i}var Di={},vp;function RO(){if(vp)return Di;vp=1,Object.defineProperty(Di,"__esModule",{value:!0}),Di.default=void 0;var e=r(Ua());function r(a){return a&&a.__esModule?a:{default:a}}function n(a){if(!(0,e.default)(a))throw TypeError("Invalid UUID");return parseInt(a.slice(14,15),16)}var o=n;return Di.default=o,Di}var mp;function MO(){return mp||(mp=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return f.default}});var r=y(EO()),n=y(xO()),o=y(AO()),a=y(CO()),u=y(PO()),f=y(RO()),d=y(Ua()),w=y(za()),S=y(_v());function y(h){return h&&h.__esModule?h:{default:h}}}(Tu)),Tu}var Cu,gp;function IO(){if(gp)return Cu;gp=1;function e(r,n){if(!r||!n||!r.length||!n.length)throw new Error("Bad alphabet");this.srcAlphabet=r,this.dstAlphabet=n}return e.prototype.convert=function(r){var n,o,a,u={},f=this.srcAlphabet.length,d=this.dstAlphabet.length,w=r.length,S=typeof r=="string"?"":[];if(!this.isValid(r))throw new Error('Number "'+r+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return r;for(n=0;n<w;n++)u[n]=this.srcAlphabet.indexOf(r[n]);do{for(o=0,a=0,n=0;n<w;n++)o=o*f+u[n],o>=d?(u[a++]=parseInt(o/d,10),o=o%d):a>0&&(u[a++]=0);w=a,S=this.dstAlphabet.slice(o,o+1).concat(S)}while(a!==0);return S},e.prototype.isValid=function(r){for(var n=0;n<r.length;++n)if(this.srcAlphabet.indexOf(r[n])===-1)return!1;return!0},Cu=e,Cu}var Pu,yp;function LO(){if(yp)return Pu;yp=1;var e=IO();function r(n,o){var a=new e(n,o);return function(u){return a.convert(u)}}return r.BIN="01",r.OCT="01234567",r.DEC="0123456789",r.HEX="0123456789abcdef",Pu=r,Pu}var Ru,wp;function FO(){if(wp)return Ru;wp=1;const{v4:e,validate:r}=MO(),n=LO(),o={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},a={consistentLength:!0};let u;const f=(S,y,h)=>{const l=y(S.toLowerCase().replace(/-/g,""));return!h||!h.consistentLength?l:l.padStart(h.shortIdLength,h.paddingChar)},d=(S,y)=>{const l=y(S).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[l[1],l[2],l[3],l[4],l[5]].join("-")},w=S=>Math.ceil(Math.log(2**128)/Math.log(S));return Ru=(()=>{const S=(y,h)=>{const l=y||o.flickrBase58,p={...a,...h};if([...new Set(Array.from(l))].length!==l.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const m=w(l.length),c={shortIdLength:m,consistentLength:p.consistentLength,paddingChar:l[0]},g=n(n.HEX,l),b=n(l,n.HEX),_=()=>f(e(),g,c),C={alphabet:l,fromUUID:T=>f(T,g,c),maxLength:m,generate:_,new:_,toUUID:T=>d(T,b),uuid:e,validate:(T,M=!1)=>{if(!T||typeof T!="string")return!1;const H=p.consistentLength?T.length===m:T.length<=m,F=T.split("").every(N=>l.includes(N));return M===!1?H&&F:H&&F&&r(d(T,b))}};return Object.freeze(C),C};return S.constants=o,S.uuid=e,S.generate=()=>(u||(u=S(o.flickrBase58).generate),u()),S})(),Ru}var Ll=FO();const Ov=({depth:e,height:r=24,width:n=11,showLines:o=!0,stroke:a="rgb(241, 245, 249)"})=>{const u=`indent_line_${Ll.generate()}`;return W.jsxs("svg",{viewBox:`0 0 ${11*e} 24`,width:`${11*e}`,height:r,children:[W.jsx("defs",{children:W.jsx("pattern",{id:u,x:"0",y:"0",width:n,height:r,patternUnits:"userSpaceOnUse",children:W.jsx("line",{x1:n/2,y1:"0",x2:n/2,y2:r,stroke:a})})}),o?W.jsx("rect",{fill:`url(#${u})`,x:"0",y:"0",width:`${11*e}`,height:r}):W.jsx("rect",{fill:o?`url(#${u})`:"",x:"0",y:"0",width:0,height:r})]})},Av=({show:e,expanded:r,onClick:n,variant:o="arrow"})=>e?W.jsx("div",{className:"flex h-6 w-5 items-center",onClick:a=>n&&n(a),children:(()=>{switch(o){case"arrow":return W.jsx(ft.FdDown,{className:it(["h-3 w-3 transform text-grey-50 transition ease-in-out",{"rotate-0":r,"-rotate-90":!r}])});case"caret":return r?W.jsx(ft.FdDown,{}):W.jsx(ft.FdRight,{});default:return W.jsx(ft.FdDown,{className:"h-3 w-3 transform text-grey-50 transition ease-in-out"})}})()}):W.jsx("div",{className:"flex h-6 w-3 items-center"}),Fl=({node:e,depth:r,expandedKeys:n,selectedKeys:o,actions:a,searchQuery:u,renderNode:f,onNodeClick:d})=>{var p;const{key:w,children:S}=e,y=U.useMemo(()=>({expanded:n.includes(e.key),selected:o.includes(e.key)}),[n,e.key,o]),h=f&&typeof f=="function"?f(e,r,y,a,u):kO(e,r,y,d);return!((p=e.options)!=null&&p.filterable)||!u||e.title.toLowerCase().includes(u.toLowerCase())?W.jsxs(W.Fragment,{children:[W.jsx("div",{className:"flex items-center space-x-2",children:h},w),DO(S||[],r,u,n,o,y.expanded,a,d,f)]}):null},$O=function(e,r){var f;const{title:n,icon:o,subtitle:a}=e;let u=null;return o&&(u=W.jsx(Sv,{children:o})),W.jsxs("div",{className:"flex flex-1 select-none items-center overflow-hidden text-ellipsis whitespace-nowrap",draggable:(f=e.options)==null?void 0:f.draggable,onClick:()=>{r&&r(e)},children:[u,W.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:n}),a&&W.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:a})]})},DO=function(e,r,n,o,a,u,f,d,w){return e.length&&u?e.map(S=>W.jsx(Fl,{actions:f,node:S,searchQuery:n,depth:r+1,expandedKeys:o,selectedKeys:a,onNodeClick:d,renderNode:w},S.key)):null},kO=function(e,r,n,o){return W.jsxs(W.Fragment,{children:[W.jsx(Ov,{showLines:!0,depth:r}),W.jsx(Av,{show:e.children&&e.children.length>0||!1,expanded:n.expanded}),$O(e,o)]})},ua=e=>r=>e===r,NO=function({treeData:r,renderNode:n,onNodeClick:o,onExpandNode:a,searchQuery:u,expandedKeys:f,expandCondition:d="always",encapsulated:w,className:S}){const[y,h]=U.useState(()=>({expandedKeys:f||[],selectedKeys:[]}));U.useEffect(()=>{d==="when-collapsed"&&y.expandedKeys.length>0||h({...y,expandedKeys:f||y.expandedKeys})},[f]);const l=U.useCallback(b=>{if(!b)return;const _=y.expandedKeys.findIndex(ua(b.key));let x=[];_===-1?(x=[...y.expandedKeys,b.key],h(()=>({...y,expandedKeys:x})),a&&a(x)):(x=y.expandedKeys.filter(C=>C!==b.key),h(()=>({...y,expandedKeys:x})),a&&a(x))},[y]),p=U.useCallback(b=>{var x;if(!((x=b==null?void 0:b.options)!=null&&x.selectable))return;y.selectedKeys.findIndex(ua(b.key))===-1&&h({...y,selectedKeys:[...y.selectedKeys,b.key]})},[y]),m=U.useCallback(b=>{var x;if(!((x=b==null?void 0:b.options)!=null&&x.selectable))return;y.selectedKeys.findIndex(ua(b.key))===-1&&h({...y,selectedKeys:[b.key]})},[y]),c=U.useCallback(b=>{var x;if(!((x=b==null?void 0:b.options)!=null&&x.selectable)){h({...y,selectedKeys:[]});return}y.selectedKeys.findIndex(ua(b.key))!==-1&&h({...y,selectedKeys:y.selectedKeys.filter(C=>C!==b.key)})},[y]),g=U.useMemo(()=>({expand:l,select:p,selectSingle:m,deselect:c}),[c,l,p,m]);return W.jsx("div",{className:it("fd-tree",S,{"pl-2 mb-1 rounded border bg-grey-900 p-1":w}),children:r.map(b=>W.jsx(Fl,{node:b,searchQuery:u||"",depth:0,expandedKeys:y.expandedKeys,selectedKeys:y.selectedKeys,actions:g,renderNode:n,onNodeClick:o},b.key))})};function jO(e){return e.of&&e.children?W.jsx(W.Fragment,{children:e.children}):null}function ot(){return ot=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ot.apply(null,arguments)}function WO(e){for(var r=0,n,o=0,a=e.length;a>=4;++o,a-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,r=(n&65535)*1540483477+((n>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(a){case 3:r^=(e.charCodeAt(o+2)&255)<<16;case 2:r^=(e.charCodeAt(o+1)&255)<<8;case 1:r^=e.charCodeAt(o)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var UO={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 Tv(e){var r=Object.create(null);return function(n){return r[n]===void 0&&(r[n]=e(n)),r[n]}}var zO=/[A-Z]|^ms/g,BO=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Cv=function(r){return r.charCodeAt(1)===45},bp=function(r){return r!=null&&typeof r!="boolean"},Mu=Tv(function(e){return Cv(e)?e:e.replace(zO,"-$&").toLowerCase()}),Sp=function(r,n){switch(r){case"animation":case"animationName":if(typeof n=="string")return n.replace(BO,function(o,a,u){return cr={name:a,styles:u,next:cr},a})}return UO[r]!==1&&!Cv(r)&&typeof n=="number"&&n!==0?n+"px":n};function ro(e,r,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var a=n;if(a.anim===1)return cr={name:a.name,styles:a.styles,next:cr},a.name;var u=n;if(u.styles!==void 0){var f=u.next;if(f!==void 0)for(;f!==void 0;)cr={name:f.name,styles:f.styles,next:cr},f=f.next;var d=u.styles+";";return d}return HO(e,r,n)}case"function":{if(e!==void 0){var w=cr,S=n(e);return cr=w,ro(e,r,S)}break}}var y=n;if(r==null)return y;var h=r[y];return h!==void 0?h:y}function HO(e,r,n){var o="";if(Array.isArray(n))for(var a=0;a<n.length;a++)o+=ro(e,r,n[a])+";";else for(var u in n){var f=n[u];if(typeof f!="object"){var d=f;r!=null&&r[d]!==void 0?o+=u+"{"+r[d]+"}":bp(d)&&(o+=Mu(u)+":"+Sp(u,d)+";")}else if(Array.isArray(f)&&typeof f[0]=="string"&&(r==null||r[f[0]]===void 0))for(var w=0;w<f.length;w++)bp(f[w])&&(o+=Mu(u)+":"+Sp(u,f[w])+";");else{var S=ro(e,r,f);switch(u){case"animation":case"animationName":{o+=Mu(u)+":"+S+";";break}default:o+=u+"{"+S+"}"}}}return o}var Ep=/label:\s*([^\s;{]+)\s*(;|$)/g,cr;function qO(e,r,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,a="";cr=void 0;var u=e[0];if(u==null||u.raw===void 0)o=!1,a+=ro(n,r,u);else{var f=u;a+=f[0]}for(var d=1;d<e.length;d++)if(a+=ro(n,r,e[d]),o){var w=u;a+=w[d]}Ep.lastIndex=0;for(var S="",y;(y=Ep.exec(a))!==null;)S+="-"+y[1];var h=WO(a)+S;return{name:h,styles:a,next:cr}}var ZO=function(r){return r()},GO=D.useInsertionEffect?D.useInsertionEffect:!1,KO=GO||ZO,VO=!0;function YO(e,r,n){var o="";return n.split(" ").forEach(function(a){e[a]!==void 0?r.push(e[a]+";"):a&&(o+=a+" ")}),o}var Pv=function(r,n,o){var a=r.key+"-"+n.name;(o===!1||VO===!1)&&r.registered[a]===void 0&&(r.registered[a]=n.styles)},XO=function(r,n,o){Pv(r,n,o);var a=r.key+"-"+n.name;if(r.inserted[n.name]===void 0){var u=n;do r.insert(n===u?"."+a:"",u,r.sheet,!0),u=u.next;while(u!==void 0)}},JO=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,QO=Tv(function(e){return JO.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),eA=QO,tA=function(r){return r!=="theme"},_p=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?eA:tA},xp=function(r,n,o){var a;if(n){var u=n.shouldForwardProp;a=r.__emotion_forwardProp&&u?function(f){return r.__emotion_forwardProp(f)&&u(f)}:u}return typeof a!="function"&&o&&(a=r.__emotion_forwardProp),a},rA=function(r){var n=r.cache,o=r.serialized,a=r.isStringTag;return Pv(n,o,a),KO(function(){return XO(n,o,a)}),null},nA=function e(r,n){var o=r.__emotion_real===r,a=o&&r.__emotion_base||r,u,f;n!==void 0&&(u=n.label,f=n.target);var d=xp(r,n,o),w=d||_p(a),S=!w("as");return function(){var y=arguments,h=o&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(u!==void 0&&h.push("label:"+u+";"),y[0]==null||y[0].raw===void 0)h.push.apply(h,y);else{var l=y[0];h.push(l[0]);for(var p=y.length,m=1;m<p;m++)h.push(y[m],l[m])}var c=il.withEmotionCache(function(g,b,_){var x=S&&g.as||a,C="",T=[],M=g;if(g.theme==null){M={};for(var H in g)M[H]=g[H];M.theme=D.useContext(il.ThemeContext)}typeof g.className=="string"?C=YO(b.registered,T,g.className):g.className!=null&&(C=g.className+" ");var F=qO(h.concat(T),b.registered,M);C+=b.key+"-"+F.name,f!==void 0&&(C+=" "+f);var N=S&&d===void 0?_p(x):w,X={};for(var j in g)S&&j==="as"||N(j)&&(X[j]=g[j]);return X.className=C,_&&(X.ref=_),D.createElement(D.Fragment,null,D.createElement(rA,{cache:b,serialized:F,isStringTag:typeof x=="string"}),D.createElement(x,X))});return c.displayName=u!==void 0?u:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",c.defaultProps=r.defaultProps,c.__emotion_real=c,c.__emotion_base=a,c.__emotion_styles=h,c.__emotion_forwardProp=d,Object.defineProperty(c,"toString",{value:function(){return"."+f}}),c.withComponent=function(g,b){var _=e(g,ot({},n,b,{shouldForwardProp:xp(c,b,!0)}));return _.apply(void 0,h)},c}},iA=["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"],La=nA.bind(null);iA.forEach(function(e){La[e]=La(e)});var oA=function(e){if(typeof document>"u")return null;var r=Array.isArray(e)?e[0]:e;return r.ownerDocument.body},Zn=new WeakMap,la=new WeakMap,fa={},Iu=0,Rv=function(e){return e&&(e.host||Rv(e.parentNode))},aA=function(e,r){return r.map(function(n){if(e.contains(n))return n;var o=Rv(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},sA=function(e,r,n,o){var a=aA(r,Array.isArray(e)?e:[e]);fa[n]||(fa[n]=new WeakMap);var u=fa[n],f=[],d=new Set,w=new Set(a),S=function(h){!h||d.has(h)||(d.add(h),S(h.parentNode))};a.forEach(S);var y=function(h){!h||w.has(h)||Array.prototype.forEach.call(h.children,function(l){if(d.has(l))y(l);else try{var p=l.getAttribute(o),m=p!==null&&p!=="false",c=(Zn.get(l)||0)+1,g=(u.get(l)||0)+1;Zn.set(l,c),u.set(l,g),f.push(l),c===1&&m&&la.set(l,!0),g===1&&l.setAttribute(n,"true"),m||l.setAttribute(o,"true")}catch(b){console.error("aria-hidden: cannot operate on ",l,b)}})};return y(r),d.clear(),Iu++,function(){f.forEach(function(h){var l=Zn.get(h)-1,p=u.get(h)-1;Zn.set(h,l),u.set(h,p),l||(la.has(h)||h.removeAttribute(o),la.delete(h)),p||h.removeAttribute(n)}),Iu--,Iu||(Zn=new WeakMap,Zn=new WeakMap,la=new WeakMap,fa={})}},uA=function(e,r,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),a=oA(e);return a?(o.push.apply(o,Array.from(a.querySelectorAll("[aria-live], script"))),sA(o,a,n,"aria-hidden")):function(){return null}},ll=function(e,r){return ll=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])},ll(e,r)};function Ba(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");ll(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}var dr=function(){return dr=Object.assign||function(r){for(var n,o=1,a=arguments.length;o<a;o++){n=arguments[o];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(r[u]=n[u])}return r},dr.apply(this,arguments)};function Mv(e,r){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)r.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n}function fl(e){var r=typeof Symbol=="function"&&Symbol.iterator,n=r&&e[r],o=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function cl(e,r){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var o=n.call(e),a,u=[],f;try{for(;(r===void 0||r-- >0)&&!(a=o.next()).done;)u.push(a.value)}catch(d){f={error:d}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(f)throw f.error}}return u}function Fa(e,r,n){if(n||arguments.length===2)for(var o=0,a=r.length,u;o<a;o++)(u||!(o in r))&&(u||(u=Array.prototype.slice.call(r,0,o)),u[o]=r[o]);return e.concat(u||Array.prototype.slice.call(r))}var Aa="right-scroll-bar-position",Ta="width-before-scroll-bar",lA="with-scroll-bars-hidden",fA="--removed-body-scroll-bar-size";function Lu(e,r){return typeof e=="function"?e(r):e&&(e.current=r),e}function cA(e,r){var n=U.useState(function(){return{value:e,callback:r,facade:{get current(){return n.value},set current(o){var a=n.value;a!==o&&(n.value=o,n.callback(o,a))}}}})[0];return n.callback=r,n.facade}var dA=typeof window<"u"?D.useLayoutEffect:D.useEffect,Op=new WeakMap;function pA(e,r){var n=cA(null,function(o){return e.forEach(function(a){return Lu(a,o)})});return dA(function(){var o=Op.get(n);if(o){var a=new Set(o),u=new Set(e),f=n.current;a.forEach(function(d){u.has(d)||Lu(d,null)}),u.forEach(function(d){a.has(d)||Lu(d,f)})}Op.set(n,e)},[e]),n}function hA(e){return e}function vA(e,r){r===void 0&&(r=hA);var n=[],o=!1,a={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(u){var f=r(u,o);return n.push(f),function(){n=n.filter(function(d){return d!==f})}},assignSyncMedium:function(u){for(o=!0;n.length;){var f=n;n=[],f.forEach(u)}n={push:function(d){return u(d)},filter:function(){return n}}},assignMedium:function(u){o=!0;var f=[];if(n.length){var d=n;n=[],d.forEach(u),f=n}var w=function(){var y=f;f=[],y.forEach(u)},S=function(){return Promise.resolve().then(w)};S(),n={push:function(y){f.push(y),S()},filter:function(y){return f=f.filter(y),n}}}};return a}function mA(e){e===void 0&&(e={});var r=vA(null);return r.options=dr({async:!0,ssr:!1},e),r}var Iv=function(e){var r=e.sideCar,n=Mv(e,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=r.read();if(!o)throw new Error("Sidecar medium not found");return D.createElement(o,dr({},n))};Iv.isSideCarExport=!0;function gA(e,r){return e.useMedium(r),Iv}var Lv=mA(),Fu=function(){},Ha=D.forwardRef(function(e,r){var n=D.useRef(null),o=D.useState({onScrollCapture:Fu,onWheelCapture:Fu,onTouchMoveCapture:Fu}),a=o[0],u=o[1],f=e.forwardProps,d=e.children,w=e.className,S=e.removeScrollBar,y=e.enabled,h=e.shards,l=e.sideCar,p=e.noRelative,m=e.noIsolation,c=e.inert,g=e.allowPinchZoom,b=e.as,_=b===void 0?"div":b,x=e.gapMode,C=Mv(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=l,M=pA([n,r]),H=dr(dr({},C),a);return D.createElement(D.Fragment,null,y&&D.createElement(T,{sideCar:Lv,removeScrollBar:S,shards:h,noRelative:p,noIsolation:m,inert:c,setCallbacks:u,allowPinchZoom:!!g,lockRef:n,gapMode:x}),f?D.cloneElement(D.Children.only(d),dr(dr({},H),{ref:M})):D.createElement(_,dr({},H,{className:w,ref:M}),d))});Ha.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ha.classNames={fullWidth:Ta,zeroRight:Aa};var yA=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function wA(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var r=yA();return r&&e.setAttribute("nonce",r),e}function bA(e,r){e.styleSheet?e.styleSheet.cssText=r:e.appendChild(document.createTextNode(r))}function SA(e){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(e)}var EA=function(){var e=0,r=null;return{add:function(n){e==0&&(r=wA())&&(bA(r,n),SA(r)),e++},remove:function(){e--,!e&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},_A=function(){var e=EA();return function(r,n){D.useEffect(function(){return e.add(r),function(){e.remove()}},[r&&n])}},Fv=function(){var e=_A(),r=function(n){var o=n.styles,a=n.dynamic;return e(o,a),null};return r},xA={left:0,top:0,right:0,gap:0},$u=function(e){return parseInt(e||"",10)||0},OA=function(e){var r=window.getComputedStyle(document.body),n=r[e==="padding"?"paddingLeft":"marginLeft"],o=r[e==="padding"?"paddingTop":"marginTop"],a=r[e==="padding"?"paddingRight":"marginRight"];return[$u(n),$u(o),$u(a)]},AA=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return xA;var r=OA(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,o-n+r[2]-r[0])}},TA=Fv(),Yn="data-scroll-locked",CA=function(e,r,n,o){var a=e.left,u=e.top,f=e.right,d=e.gap;return n===void 0&&(n="margin"),`
18
+ .`.concat(lA,` {
19
+ overflow: hidden `).concat(o,`;
20
+ padding-right: `).concat(d,"px ").concat(o,`;
34
21
  }
35
- body[`).concat(gi,`] {
36
- overflow: hidden `).concat(i,`;
22
+ body[`).concat(Yn,`] {
23
+ overflow: hidden `).concat(o,`;
37
24
  overscroll-behavior: contain;
38
- `).concat([t&&"position: relative ".concat(i,";"),r==="margin"&&`
25
+ `).concat([r&&"position: relative ".concat(o,";"),n==="margin"&&`
39
26
  padding-left: `.concat(a,`px;
40
- padding-top: `).concat(s,`px;
41
- padding-right: `).concat(l,`px;
27
+ padding-top: `).concat(u,`px;
28
+ padding-right: `).concat(f,`px;
42
29
  margin-left:0;
43
30
  margin-top:0;
44
- margin-right: `).concat(f,"px ").concat(i,`;
45
- `),r==="padding"&&"padding-right: ".concat(f,"px ").concat(i,";")].filter(Boolean).join(""),`
31
+ margin-right: `).concat(d,"px ").concat(o,`;
32
+ `),n==="padding"&&"padding-right: ".concat(d,"px ").concat(o,";")].filter(Boolean).join(""),`
46
33
  }
47
34
 
48
- .`).concat(Wa,` {
49
- right: `).concat(f,"px ").concat(i,`;
35
+ .`).concat(Aa,` {
36
+ right: `).concat(d,"px ").concat(o,`;
50
37
  }
51
38
 
52
- .`).concat(za,` {
53
- margin-right: `).concat(f,"px ").concat(i,`;
39
+ .`).concat(Ta,` {
40
+ margin-right: `).concat(d,"px ").concat(o,`;
54
41
  }
55
42
 
56
- .`).concat(Wa," .").concat(Wa,` {
57
- right: 0 `).concat(i,`;
43
+ .`).concat(Aa," .").concat(Aa,` {
44
+ right: 0 `).concat(o,`;
58
45
  }
59
46
 
60
- .`).concat(za," .").concat(za,` {
61
- margin-right: 0 `).concat(i,`;
47
+ .`).concat(Ta," .").concat(Ta,` {
48
+ margin-right: 0 `).concat(o,`;
62
49
  }
63
50
 
64
- body[`).concat(gi,`] {
65
- `).concat(KA,": ").concat(f,`px;
51
+ body[`).concat(Yn,`] {
52
+ `).concat(fA,": ").concat(d,`px;
66
53
  }
67
- `)},Vp=function(){var e=parseInt(document.body.getAttribute(gi)||"0",10);return isFinite(e)?e:0},hT=function(){C.useEffect(function(){return document.body.setAttribute(gi,(Vp()+1).toString()),function(){var e=Vp()-1;e<=0?document.body.removeAttribute(gi):document.body.setAttribute(gi,e.toString())}},[])},vT=function(e){var t=e.noRelative,r=e.noImportant,i=e.gapMode,a=i===void 0?"margin":i;hT();var s=C.useMemo(function(){return cT(a)},[a]);return C.createElement(dT,{styles:pT(s,!t,a,r?"":"!important")})},mT=function(e){var t=window.getComputedStyle(e);return t.overflowY!=="hidden"&&!(t.overflowY===t.overflowX&&t.overflowY==="visible")},gT=function(e){var t=window.getComputedStyle(e);return t.overflowX!=="hidden"&&!(t.overflowY===t.overflowX&&t.overflowX==="visible")},Xp=function(e,t){var r=t;do{var i=qv(e,r);if(i){var a=Zv(e,r),s=a[1],l=a[2];if(s>l)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},yT=function(e){var t=e.scrollTop,r=e.scrollHeight,i=e.clientHeight;return[t,r,i]},wT=function(e){var t=e.scrollLeft,r=e.scrollWidth,i=e.clientWidth;return[t,r,i]},qv=function(e,t){return e==="v"?mT(t):gT(t)},Zv=function(e,t){return e==="v"?yT(t):wT(t)},bT=function(e,t,r,i,a){var s=i,l=r.target,f=t.contains(l),d=!1,p=s>0,h=0,b=0;do{var v=Zv(e,l),w=v[0],E=v[1],y=v[2],x=E-y-w;(w||x)&&qv(e,l)&&(h+=x,b+=w),l=l.parentNode}while(!f&&l!==document.body||f&&(t.contains(l)||t===l));return(p&&h===0||!p&&b===0)&&(d=!0),d},zl=!1;if(typeof window<"u")try{var Oa=Object.defineProperty({},"passive",{get:function(){return zl=!0,!0}});window.addEventListener("test",Oa,Oa),window.removeEventListener("test",Oa,Oa)}catch{zl=!1}var pi=zl?{passive:!1}:!1,Aa=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Jp=function(e){return[e.deltaX,e.deltaY]},Qp=function(e){return e&&"current"in e?e.current:e},ST=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ET=function(e){return`
68
- .block-interactivity-`+e+` {pointer-events: none;}
69
- .allow-interactivity-`+e+` {pointer-events: all;}
70
- `},xT=0,hi=[];function _T(e){var t=C.useRef([]),r=C.useRef([0,0]),i=C.useRef(),a=C.useState(xT++)[0],s=C.useState(function(){return Hv()})[0],l=C.useRef(e);C.useEffect(function(){l.current=e},[e]),C.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-"+a);var y=[e.lockRef.current].concat((e.shards||[]).map(Qp)).filter(Boolean);return y.forEach(function(x){return x.classList.add("allow-interactivity-"+a)}),function(){document.body.classList.remove("block-interactivity-"+a),y.forEach(function(x){return x.classList.remove("allow-interactivity-"+a)})}}},[e.inert,e.lockRef.current,e.shards]);var f=C.useCallback(function(y,x){if("touches"in y&&y.touches.length===2)return!l.current.allowPinchZoom;var A=Aa(y),I=r.current,P="deltaX"in y?y.deltaX:I[0]-A[0],F="deltaY"in y?y.deltaY:I[1]-A[1],O,L=y.target,U=Math.abs(P)>Math.abs(F)?"h":"v",z=Xp(U,L);if(!z)return!0;if(z?O=U:(O=U==="v"?"h":"v",z=Xp(U,L)),!z)return!1;if(!i.current&&"changedTouches"in y&&(P||F)&&(i.current=O),!O)return!0;var q=i.current||O;return bT(q,x,y,q==="h"?P:F)},[]),d=C.useCallback(function(y){var x=y;if(!(!hi.length||hi[hi.length-1]!==s)){var A="deltaY"in x?Jp(x):Aa(x),I=t.current.filter(function(O){return O.name===x.type&&O.target===x.target&&ST(O.delta,A)})[0];if(I&&I.should){x.preventDefault();return}if(!I){var P=(l.current.shards||[]).map(Qp).filter(Boolean).filter(function(O){return O.contains(x.target)}),F=P.length>0?f(x,P[0]):!l.current.noIsolation;F&&x.preventDefault()}}},[]),p=C.useCallback(function(y,x,A,I){var P={name:y,delta:x,target:A,should:I};t.current.push(P),setTimeout(function(){t.current=t.current.filter(function(F){return F!==P})},1)},[]),h=C.useCallback(function(y){r.current=Aa(y),i.current=void 0},[]),b=C.useCallback(function(y){p(y.type,Jp(y),y.target,f(y,e.lockRef.current))},[]),v=C.useCallback(function(y){p(y.type,Aa(y),y.target,f(y,e.lockRef.current))},[]);C.useEffect(function(){return hi.push(s),e.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:v}),document.addEventListener("wheel",d,pi),document.addEventListener("touchmove",d,pi),document.addEventListener("touchstart",h,pi),function(){hi=hi.filter(function(y){return y!==s}),document.removeEventListener("wheel",d,pi),document.removeEventListener("touchmove",d,pi),document.removeEventListener("touchstart",h,pi)}},[]);var w=e.removeScrollBar,E=e.inert;return C.createElement(C.Fragment,null,E?C.createElement(s,{styles:ET(a)}):null,w?C.createElement(vT,{gapMode:"margin"}):null)}const OT=QA(Bv,_T);var Gv=C.forwardRef(function(e,t){return C.createElement(fs,mi({},e,{ref:t,sideCar:OT}))});Gv.classNames=fs.classNames;const ao=globalThis!=null&&globalThis.document?C.useLayoutEffect:()=>{},AT=C.useId||(()=>{});let TT=0;function CT(e){const[t,r]=C.useState(AT());return ao(()=>{r(i=>i??String(TT++))},[e]),e||(t?`radix-${t}`:"")}function Kv(...e){return t=>e.forEach(r=>function(i,a){typeof i=="function"?i(a):i!=null&&(i.current=a)}(r,t))}function Oi(...e){return C.useCallback(Kv(...e),e)}const Yv=C.forwardRef((e,t)=>{const{children:r,...i}=e;return C.Children.toArray(r).some(eh)?C.createElement(C.Fragment,null,C.Children.map(r,a=>eh(a)?C.createElement(Ul,Qe({},i,{ref:t}),a.props.children):a)):C.createElement(Ul,Qe({},i,{ref:t}),r)});Yv.displayName="Slot";const Ul=C.forwardRef((e,t)=>{const{children:r,...i}=e;return C.isValidElement(r)?C.cloneElement(r,{...RT(i,r.props),ref:Kv(t,r.ref)}):C.Children.count(r)>1?C.Children.only(null):null});Ul.displayName="SlotClone";const PT=({children:e})=>C.createElement(C.Fragment,null,e);function eh(e){return C.isValidElement(e)&&e.type===PT}function RT(e,t){const r={...t};for(const i in t){const a=e[i],s=t[i];/^on[A-Z]/.test(i)?r[i]=(...l)=>{s==null||s(...l),a==null||a(...l)}:i==="style"?r[i]={...a,...s}:i==="className"&&(r[i]=[a,s].filter(Boolean).join(" "))}return{...e,...r}}const yo=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>({...e,[t]:C.forwardRef((r,i)=>{const{asChild:a,...s}=r,l=a?Yv:t;return C.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),C.createElement(l,Qe({},s,{ref:i}))})}),{}),Vv=e=>{const{present:t,children:r}=e,i=function(l){const[f,d]=C.useState(),p=C.useRef({}),h=C.useRef(l),b=C.useRef("none"),v=l?"mounted":"unmounted",[w,E]=function(y,x){return C.useReducer((A,I)=>{const P=x[A][I];return P??A},y)}(v,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return C.useEffect(()=>{const y=Ta(p.current);b.current=w==="mounted"?y:"none"},[w]),ao(()=>{const y=p.current,x=h.current;if(x!==l){const A=b.current,I=Ta(y);l?E("MOUNT"):I==="none"||(y==null?void 0:y.display)==="none"?E("UNMOUNT"):E(x&&A!==I?"ANIMATION_OUT":"UNMOUNT"),h.current=l}},[l,E]),ao(()=>{if(f){const y=A=>{const I=Ta(p.current).includes(A.animationName);A.target===f&&I&&E("ANIMATION_END")},x=A=>{A.target===f&&(b.current=Ta(p.current))};return f.addEventListener("animationstart",x),f.addEventListener("animationcancel",y),f.addEventListener("animationend",y),()=>{f.removeEventListener("animationstart",x),f.removeEventListener("animationcancel",y),f.removeEventListener("animationend",y)}}E("ANIMATION_END")},[f,E]),{isPresent:["mounted","unmountSuspended"].includes(w),ref:C.useCallback(y=>{y&&(p.current=getComputedStyle(y)),d(y)},[])}}(t),a=typeof r=="function"?r({present:i.isPresent}):C.Children.only(r),s=Oi(i.ref,a.ref);return typeof r=="function"||i.isPresent?C.cloneElement(a,{ref:s}):null};function Ta(e){return(e==null?void 0:e.animationName)||"none"}Vv.displayName="Presence";let fl=0;function IT(){C.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:th()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:th()),fl++,()=>{fl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(i=>i.remove()),fl--}},[])}function th(){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 Xv=C.forwardRef((e,t)=>{var r,i;const{containerRef:a,style:s,...l}=e,f=(r=a==null?void 0:a.current)!==null&&r!==void 0?r:globalThis==null||(i=globalThis.document)===null||i===void 0?void 0:i.body,[,d]=C.useState({});return ao(()=>{d({})},[]),f?ho.createPortal(C.createElement(yo.div,Qe({"data-radix-portal":""},l,{ref:t,style:f===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...s}:void 0})),f):null});function rh(e){const t=C.useRef(e);return C.useEffect(()=>{t.current=e}),C.useMemo(()=>(...r)=>{var i;return(i=t.current)===null||i===void 0?void 0:i.call(t,...r)},[])}function Jv(...e){return t=>e.forEach(r=>function(i,a){typeof i=="function"?i(a):i!=null&&(i.current=a)}(r,t))}function MT(...e){return C.useCallback(Jv(...e),e)}const Qv=C.forwardRef((e,t)=>{const{children:r,...i}=e;return C.Children.toArray(r).some(nh)?C.createElement(C.Fragment,null,C.Children.map(r,a=>nh(a)?C.createElement(Bl,Qe({},i,{ref:t}),a.props.children):a)):C.createElement(Bl,Qe({},i,{ref:t}),r)});Qv.displayName="Slot";const Bl=C.forwardRef((e,t)=>{const{children:r,...i}=e;return C.isValidElement(r)?C.cloneElement(r,{...LT(i,r.props),ref:Jv(t,r.ref)}):C.Children.count(r)>1?C.Children.only(null):null});Bl.displayName="SlotClone";const FT=({children:e})=>C.createElement(C.Fragment,null,e);function nh(e){return C.isValidElement(e)&&e.type===FT}function LT(e,t){const r={...t};for(const i in t){const a=e[i],s=t[i];/^on[A-Z]/.test(i)?r[i]=(...l)=>{s==null||s(...l),a==null||a(...l)}:i==="style"?r[i]={...a,...s}:i==="className"&&(r[i]=[a,s].filter(Boolean).join(" "))}return{...e,...r}}const $T=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>({...e,[t]:C.forwardRef((r,i)=>{const{asChild:a,...s}=r,l=a?Qv:t;return C.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),C.createElement(l,Qe({},s,{ref:i}))})}),{}),ih={bubbles:!1,cancelable:!0},DT=C.forwardRef((e,t)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:s,...l}=e,[f,d]=C.useState(null),p=rh(a),h=rh(s),b=C.useRef(null),v=MT(t,y=>d(y)),w=C.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;C.useEffect(()=>{if(i){let y=function(A){if(w.paused||!f)return;const I=A.target;f.contains(I)?b.current=I:$n(b.current,{select:!0})},x=function(A){!w.paused&&f&&(f.contains(A.relatedTarget)||$n(b.current,{select:!0}))};return document.addEventListener("focusin",y),document.addEventListener("focusout",x),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",x)}}},[i,f,w.paused]),C.useEffect(()=>{if(f){sh.add(w);const x=document.activeElement;if(!f.contains(x)){const A=new Event("focusScope.autoFocusOnMount",ih);f.addEventListener("focusScope.autoFocusOnMount",p),f.dispatchEvent(A),A.defaultPrevented||(function(I,{select:P=!1}={}){const F=document.activeElement;for(const O of I)if($n(O,{select:P}),document.activeElement!==F)return}((y=oh(f),y.filter(I=>I.tagName!=="A")),{select:!0}),document.activeElement===x&&$n(f))}return()=>{f.removeEventListener("focusScope.autoFocusOnMount",p),setTimeout(()=>{const A=new Event("focusScope.autoFocusOnUnmount",ih);f.addEventListener("focusScope.autoFocusOnUnmount",h),f.dispatchEvent(A),A.defaultPrevented||$n(x??document.body,{select:!0}),f.removeEventListener("focusScope.autoFocusOnUnmount",h),sh.remove(w)},0)}}var y},[f,p,h,w]);const E=C.useCallback(y=>{if(!r&&!i||w.paused)return;const x=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,A=document.activeElement;if(x&&A){const I=y.currentTarget,[P,F]=function(O){const L=oh(O),U=ah(L,O),z=ah(L.reverse(),O);return[U,z]}(I);P&&F?y.shiftKey||A!==F?y.shiftKey&&A===P&&(y.preventDefault(),r&&$n(F,{select:!0})):(y.preventDefault(),r&&$n(P,{select:!0})):A===I&&y.preventDefault()}},[r,i,w.paused]);return C.createElement($T.div,Qe({tabIndex:-1},l,{ref:v,onKeyDown:E}))});function oh(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const a=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||a?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function ah(e,t){for(const r of e)if(!kT(r,{upTo:t}))return r}function kT(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 $n(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 sh=function(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=uh(e,t),e.unshift(t)},remove(t){var r;e=uh(e,t),(r=e[0])===null||r===void 0||r.resume()}}}();function uh(e,t){const r=[...e],i=r.indexOf(t);return i!==-1&&r.splice(i,1),r}function so(e){const t=C.useRef(e);return C.useEffect(()=>{t.current=e}),C.useMemo(()=>(...r)=>{var i;return(i=t.current)===null||i===void 0?void 0:i.call(t,...r)},[])}function NT(e){const t=so(e);C.useEffect(()=>{const r=i=>{i.key==="Escape"&&t(i)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[t])}let lh,Ca=0;function jT({disabled:e}){const t=C.useRef(!1);ao(()=>{if(e){let r=function(){Ca--,Ca===0&&(document.body.style.pointerEvents=lh)},i=function(a){t.current=a.pointerType!=="mouse"};return Ca===0&&(lh=document.body.style.pointerEvents),document.body.style.pointerEvents="none",Ca++,document.addEventListener("pointerup",i),()=>{t.current?document.addEventListener("click",r,{once:!0}):r(),document.removeEventListener("pointerup",i)}}},[e])}function Hn(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 WT=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),zT=C.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:f,...d}=e,p=C.useContext(WT),[h,b]=C.useState(null),[,v]=C.useState({}),w=Oi(t,L=>b(L)),E=Array.from(p.layers),[y]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),x=E.indexOf(y),A=h?E.indexOf(h):-1,I=p.layersWithOutsidePointerEventsDisabled.size>0,P=A>=x,F=function(L){const U=so(L),z=C.useRef(!1);return C.useEffect(()=>{const q=ee=>{ee.target&&!z.current&&ch("dismissableLayer.pointerDownOutside",U,{originalEvent:ee}),z.current=!1},V=window.setTimeout(()=>{document.addEventListener("pointerdown",q)},0);return()=>{window.clearTimeout(V),document.removeEventListener("pointerdown",q)}},[U]),{onPointerDownCapture:()=>z.current=!0}}(L=>{const U=L.target,z=[...p.branches].some(q=>q.contains(U));P&&!z&&(a==null||a(L),l==null||l(L),L.defaultPrevented||f==null||f())}),O=function(L){const U=so(L),z=C.useRef(!1);return C.useEffect(()=>{const q=V=>{V.target&&!z.current&&ch("dismissableLayer.focusOutside",U,{originalEvent:V})};return document.addEventListener("focusin",q),()=>document.removeEventListener("focusin",q)},[U]),{onFocusCapture:()=>z.current=!0,onBlurCapture:()=>z.current=!1}}(L=>{const U=L.target;[...p.branches].some(z=>z.contains(U))||(s==null||s(L),l==null||l(L),L.defaultPrevented||f==null||f())});return NT(L=>{A===p.layers.size-1&&(i==null||i(L),L.defaultPrevented||f==null||f())}),jT({disabled:r}),C.useEffect(()=>{h&&(r&&p.layersWithOutsidePointerEventsDisabled.add(h),p.layers.add(h),fh())},[h,r,p]),C.useEffect(()=>()=>{h&&(p.layers.delete(h),p.layersWithOutsidePointerEventsDisabled.delete(h),fh())},[h,p]),C.useEffect(()=>{const L=()=>v({});return document.addEventListener("dismissableLayer.update",L),()=>document.removeEventListener("dismissableLayer.update",L)},[]),C.createElement(yo.div,Qe({},d,{ref:w,style:{pointerEvents:I?P?"auto":"none":void 0,...e.style},onFocusCapture:Hn(e.onFocusCapture,O.onFocusCapture),onBlurCapture:Hn(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:Hn(e.onPointerDownCapture,F.onPointerDownCapture)}))});function fh(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function ch(e,t,r){const i=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});return t&&i.addEventListener(e,t,{once:!0}),!i.dispatchEvent(a)}function dh(e){const[t,r]=C.useState(void 0);return C.useEffect(()=>{if(e){const i=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const s=a[0];let l,f;if("borderBoxSize"in s){const d=s.borderBoxSize,p=Array.isArray(d)?d[0]:d;l=p.inlineSize,f=p.blockSize}else{const d=e.getBoundingClientRect();l=d.width,f=d.height}r({width:l,height:f})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}r(void 0)},[e]),t}function UT(e,t){const r=kn.get(e);return r===void 0?(kn.set(e,{rect:{},callbacks:[t]}),kn.size===1&&(Hl=requestAnimationFrame(em))):(r.callbacks.push(t),t(e.getBoundingClientRect())),()=>{const i=kn.get(e);if(i===void 0)return;const a=i.callbacks.indexOf(t);a>-1&&i.callbacks.splice(a,1),i.callbacks.length===0&&(kn.delete(e),kn.size===0&&cancelAnimationFrame(Hl))}}let Hl;const kn=new Map;function em(){const e=[];kn.forEach((t,r)=>{const i=r.getBoundingClientRect();var a,s;a=t.rect,s=i,(a.width!==s.width||a.height!==s.height||a.top!==s.top||a.right!==s.right||a.bottom!==s.bottom||a.left!==s.left)&&(t.rect=i,e.push(t))}),e.forEach(t=>{t.callbacks.forEach(r=>r(t.rect))}),Hl=requestAnimationFrame(em)}function BT(e){const[t,r]=C.useState();return C.useEffect(()=>{if(e){const i=UT(e,r);return()=>{r(void 0),i()}}},[e]),t}function tm(e,t=[]){let r=[];const i=()=>{const a=r.map(s=>C.createContext(s));return function(s){const l=(s==null?void 0:s[e])||a;return C.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return i.scopeName=e,[function(a,s){const l=C.createContext(s),f=r.length;function d(p){const{scope:h,children:b,...v}=p,w=(h==null?void 0:h[e][f])||l,E=C.useMemo(()=>v,Object.values(v));return C.createElement(w.Provider,{value:E},b)}return r=[...r,s],d.displayName=a+"Provider",[d,function(p,h){const b=(h==null?void 0:h[e][f])||l,v=C.useContext(b);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${a}\``)}]},HT(i,...t)]}function HT(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const i=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(a){const s=i.reduce((l,{useScope:f,scopeName:d})=>({...l,...f(a)[`__scope${d}`]}),{});return C.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function qT({anchorRect:e,popperSize:t,arrowSize:r,arrowOffset:i=0,side:a,sideOffset:s=0,align:l,alignOffset:f=0,shouldAvoidCollisions:d=!0,collisionBoundariesRect:p,collisionTolerance:h=0}){if(!e||!t||!p)return{popperStyles:ZT,arrowStyles:cl};const b=function(U,z,q=0,V=0,ee){const be=ee?ee.height:0,pe=ph(z,U,"x"),Ae=ph(z,U,"y"),Ne=Ae.before-q-be,ve=Ae.after+q+be,Te=pe.before-q-be,Ge=pe.after+q+be;return{top:{start:{x:pe.start+V,y:Ne},center:{x:pe.center,y:Ne},end:{x:pe.end-V,y:Ne}},right:{start:{x:Ge,y:Ae.start+V},center:{x:Ge,y:Ae.center},end:{x:Ge,y:Ae.end-V}},bottom:{start:{x:pe.start+V,y:ve},center:{x:pe.center,y:ve},end:{x:pe.end-V,y:ve}},left:{start:{x:Te,y:Ae.start+V},center:{x:Te,y:Ae.center},end:{x:Te,y:Ae.end-V}}}}(t,e,s,f,r),v=b[a][l];if(d===!1){const U=hh(v);let z=cl;return r&&(z=mh({popperSize:t,arrowSize:r,arrowOffset:i,side:a,align:l})),{popperStyles:{...U,"--radix-popper-transform-origin":vh(t,a,l,i,r)},arrowStyles:z,placedSide:a,placedAlign:l}}const w=DOMRect.fromRect({...t,...v}),E=(y=p,x=h,DOMRect.fromRect({width:y.width-2*x,height:y.height-2*x,x:y.left+x,y:y.top+x}));var y,x;const A=yh(w,E),I=b[gh(a)][l],P=function(U,z,q){const V=gh(U);return z[U]&&!q[V]?V:U}(a,A,yh(DOMRect.fromRect({...t,...I}),E)),F=function(U,z,q,V,ee){const be=q==="top"||q==="bottom",pe=be?"left":"top",Ae=be?"right":"bottom",Ne=be?"width":"height",ve=z[Ne]>U[Ne];return(V==="start"||V==="center")&&(ee[pe]&&ve||ee[Ae]&&!ve)?"end":(V==="end"||V==="center")&&(ee[Ae]&&ve||ee[pe]&&!ve)?"start":V}(t,e,a,l,A),O=hh(b[P][F]);let L=cl;return r&&(L=mh({popperSize:t,arrowSize:r,arrowOffset:i,side:P,align:F})),{popperStyles:{...O,"--radix-popper-transform-origin":vh(t,P,F,i,r)},arrowStyles:L,placedSide:P,placedAlign:F}}function ph(e,t,r){const i=e[r==="x"?"left":"top"],a=r==="x"?"width":"height",s=e[a],l=t[a];return{before:i-l,start:i,center:i+(s-l)/2,end:i+s-l,after:i+s}}function hh(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 vh(e,t,r,i,a){const s=t==="top"||t==="bottom",l=a?a.width:0,f=a?a.height:0,d=l/2+i;let p="",h="";return s?(p={start:`${d}px`,center:"center",end:e.width-d+"px"}[r],h=t==="top"?`${e.height+f}px`:-f+"px"):(p=t==="left"?`${e.width+f}px`:-f+"px",h={start:`${d}px`,center:"center",end:e.height-d+"px"}[r]),`${p} ${h}`}const ZT={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},cl={position:"absolute",opacity:0};function mh({popperSize:e,arrowSize:t,arrowOffset:r,side:i,align:a}){const s=(e.width-t.width)/2,l=(e.height-t.width)/2,f={top:0,right:90,bottom:180,left:-90}[i],d=Math.max(t.width,t.height),p={width:`${d}px`,height:`${d}px`,transform:`rotate(${f}deg)`,willChange:"transform",position:"absolute",[i]:"100%",direction:GT(i,a)};return i!=="top"&&i!=="bottom"||(a==="start"&&(p.left=`${r}px`),a==="center"&&(p.left=`${s}px`),a==="end"&&(p.right=`${r}px`)),i!=="left"&&i!=="right"||(a==="start"&&(p.top=`${r}px`),a==="center"&&(p.top=`${l}px`),a==="end"&&(p.bottom=`${r}px`)),p}function GT(e,t){return(e!=="top"&&e!=="right"||t!=="end")&&(e!=="bottom"&&e!=="left"||t==="end")?"ltr":"rtl"}function gh(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function yh(e,t){return{top:e.top<t.top,right:e.right>t.right,bottom:e.bottom>t.bottom,left:e.left<t.left}}const[rm,nm]=tm("Popper"),[KT,im]=rm("Popper"),YT=e=>{const{__scopePopper:t,children:r}=e,[i,a]=C.useState(null);return C.createElement(KT,{scope:t,anchor:i,onAnchorChange:a},r)},VT=C.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:i,...a}=e,s=im("PopperAnchor",r),l=C.useRef(null),f=Oi(t,l);return C.useEffect(()=>{s.onAnchorChange((i==null?void 0:i.current)||l.current)}),i?null:C.createElement(yo.div,Qe({},a,{ref:f}))}),[XT,I2]=rm("PopperContent"),JT=C.forwardRef((e,t)=>{const{__scopePopper:r,side:i="bottom",sideOffset:a,align:s="center",alignOffset:l,collisionTolerance:f,avoidCollisions:d=!0,...p}=e,h=im("PopperContent",r),[b,v]=C.useState(),w=BT(h.anchor),[E,y]=C.useState(null),x=dh(E),[A,I]=C.useState(null),P=dh(A),F=Oi(t,be=>y(be)),O=function(){const[be,pe]=C.useState(void 0);return C.useEffect(()=>{let Ae;function Ne(){pe({width:window.innerWidth,height:window.innerHeight})}function ve(){window.clearTimeout(Ae),Ae=window.setTimeout(Ne,100)}return Ne(),window.addEventListener("resize",ve),()=>window.removeEventListener("resize",ve)},[]),be}(),L=O?DOMRect.fromRect({...O,x:0,y:0}):void 0,{popperStyles:U,arrowStyles:z,placedSide:q,placedAlign:V}=qT({anchorRect:w,popperSize:x,arrowSize:P,arrowOffset:b,side:i,sideOffset:a,align:s,alignOffset:l,shouldAvoidCollisions:d,collisionBoundariesRect:L,collisionTolerance:f}),ee=q!==void 0;return C.createElement("div",{style:U,"data-radix-popper-content-wrapper":""},C.createElement(XT,{scope:r,arrowStyles:z,onArrowChange:I,onArrowOffsetChange:v},C.createElement(yo.div,Qe({"data-side":q,"data-align":V},p,{style:{...p.style,animation:ee?void 0:"none"},ref:F}))))}),QT=YT,eC=VT,tC=JT;function rC({prop:e,defaultProp:t,onChange:r=()=>{}}){const[i,a]=function({defaultProp:d,onChange:p}){const h=C.useState(d),[b]=h,v=C.useRef(b),w=so(p);return C.useEffect(()=>{v.current!==b&&(w(b),v.current=b)},[b,v,w]),h}({defaultProp:t,onChange:r}),s=e!==void 0,l=s?e:i,f=so(r);return[l,C.useCallback(d=>{if(s){const p=d,h=typeof d=="function"?p(e):d;h!==e&&f(h)}else a(d)},[s,e,a,f])]}const[nC,M2]=tm("Popover",[nm]),wf=nm(),[iC,wo]=nC("Popover"),oC=e=>{const{__scopePopover:t,children:r,open:i,defaultOpen:a,onOpenChange:s,modal:l=!1}=e,f=wf(t),d=C.useRef(null),[p,h]=C.useState(!1),[b=!1,v]=rC({prop:i,defaultProp:a,onChange:s});return C.createElement(QT,f,C.createElement(iC,{scope:t,contentId:CT(),triggerRef:d,open:b,onOpenChange:v,onOpenToggle:C.useCallback(()=>v(w=>!w),[v]),hasCustomAnchor:p,onCustomAnchorAdd:C.useCallback(()=>h(!0),[]),onCustomAnchorRemove:C.useCallback(()=>h(!1),[]),modal:l},r))},aC=C.forwardRef((e,t)=>{const{__scopePopover:r,...i}=e,a=wo("PopoverTrigger",r),s=wf(r),l=Oi(t,a.triggerRef),f=C.createElement(yo.button,Qe({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":am(a.open)},i,{ref:l,onClick:Hn(e.onClick,a.onOpenToggle)}));return a.hasCustomAnchor?f:C.createElement(eC,Qe({asChild:!0},s),f)}),sC=C.forwardRef((e,t)=>{const{forceMount:r,...i}=e,a=wo("PopoverContent",e.__scopePopover);return C.createElement(Vv,{present:r||a.open},a.modal?C.createElement(uC,Qe({},i,{ref:t})):C.createElement(lC,Qe({},i,{ref:t})))}),uC=C.forwardRef((e,t)=>{const{allowPinchZoom:r,portalled:i=!0,...a}=e,s=wo("PopoverContent",e.__scopePopover),l=C.useRef(null),f=Oi(t,l),d=C.useRef(!1);C.useEffect(()=>{const h=l.current;if(h)return qA(h)},[]);const p=i?Xv:C.Fragment;return C.createElement(p,null,C.createElement(Gv,{allowPinchZoom:r},C.createElement(om,Qe({},a,{ref:f,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Hn(e.onCloseAutoFocus,h=>{var b;h.preventDefault(),d.current||(b=s.triggerRef.current)===null||b===void 0||b.focus()}),onPointerDownOutside:Hn(e.onPointerDownOutside,h=>{const b=h.detail.originalEvent,v=b.button===0&&b.ctrlKey===!0,w=b.button===2||v;d.current=w},{checkForDefaultPrevented:!1}),onFocusOutside:Hn(e.onFocusOutside,h=>h.preventDefault(),{checkForDefaultPrevented:!1})}))))}),lC=C.forwardRef((e,t)=>{const{portalled:r=!0,...i}=e,a=wo("PopoverContent",e.__scopePopover),s=C.useRef(!1),l=r?Xv:C.Fragment;return C.createElement(l,null,C.createElement(om,Qe({},i,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{var d,p;(d=e.onCloseAutoFocus)===null||d===void 0||d.call(e,f),f.defaultPrevented||(s.current||(p=a.triggerRef.current)===null||p===void 0||p.focus(),f.preventDefault()),s.current=!1},onInteractOutside:f=>{var d,p;(d=e.onInteractOutside)===null||d===void 0||d.call(e,f),f.defaultPrevented||(s.current=!0);const h=f.target;!((p=a.triggerRef.current)===null||p===void 0)&&p.contains(h)&&f.preventDefault()}})))}),om=C.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:h,...b}=e,v=wo("PopoverContent",r),w=wf(r);return IT(),C.createElement(DT,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:s},C.createElement(zT,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:h,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:p,onDismiss:()=>v.onOpenChange(!1)},C.createElement(tC,Qe({"data-state":am(v.open),role:"dialog",id:v.contentId},w,b,{ref:t,style:{...b.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))});function am(e){return e?"open":"closed"}const fC=oC,cC=aC,dC=sC;var Ua=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(Ua||{}),sm={},cs={},bf={},dl={},Pa={exports:{}},Ra={exports:{}},Me={};/** @license React v16.13.1
54
+ `)},Ap=function(){var e=parseInt(document.body.getAttribute(Yn)||"0",10);return isFinite(e)?e:0},PA=function(){D.useEffect(function(){return document.body.setAttribute(Yn,(Ap()+1).toString()),function(){var e=Ap()-1;e<=0?document.body.removeAttribute(Yn):document.body.setAttribute(Yn,e.toString())}},[])},RA=function(e){var r=e.noRelative,n=e.noImportant,o=e.gapMode,a=o===void 0?"margin":o;PA();var u=D.useMemo(function(){return AA(a)},[a]);return D.createElement(TA,{styles:CA(u,!r,a,n?"":"!important")})},dl=!1;if(typeof window<"u")try{var ca=Object.defineProperty({},"passive",{get:function(){return dl=!0,!0}});window.addEventListener("test",ca,ca),window.removeEventListener("test",ca,ca)}catch{dl=!1}var Gn=dl?{passive:!1}:!1,MA=function(e){return e.tagName==="TEXTAREA"},$v=function(e,r){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[r]!=="hidden"&&!(n.overflowY===n.overflowX&&!MA(e)&&n[r]==="visible")},IA=function(e){return $v(e,"overflowY")},LA=function(e){return $v(e,"overflowX")},Tp=function(e,r){var n=r.ownerDocument,o=r;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var a=Dv(e,o);if(a){var u=kv(e,o),f=u[1],d=u[2];if(f>d)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},FA=function(e){var r=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[r,n,o]},$A=function(e){var r=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[r,n,o]},Dv=function(e,r){return e==="v"?IA(r):LA(r)},kv=function(e,r){return e==="v"?FA(r):$A(r)},DA=function(e,r){return e==="h"&&r==="rtl"?-1:1},kA=function(e,r,n,o,a){var u=DA(e,window.getComputedStyle(r).direction),f=u*o,d=n.target,w=r.contains(d),S=!1,y=f>0,h=0,l=0;do{if(!d)break;var p=kv(e,d),m=p[0],c=p[1],g=p[2],b=c-g-u*m;(m||b)&&Dv(e,d)&&(h+=b,l+=m);var _=d.parentNode;d=_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE?_.host:_}while(!w&&d!==document.body||w&&(r.contains(d)||r===d));return(y&&Math.abs(h)<1||!y&&Math.abs(l)<1)&&(S=!0),S},da=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Cp=function(e){return[e.deltaX,e.deltaY]},Pp=function(e){return e&&"current"in e?e.current:e},NA=function(e,r){return e[0]===r[0]&&e[1]===r[1]},jA=function(e){return`
55
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
56
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
57
+ `)},WA=0,Kn=[];function UA(e){var r=D.useRef([]),n=D.useRef([0,0]),o=D.useRef(),a=D.useState(WA++)[0],u=D.useState(Fv)[0],f=D.useRef(e);D.useEffect(function(){f.current=e},[e]),D.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var c=Fa([e.lockRef.current],(e.shards||[]).map(Pp),!0).filter(Boolean);return c.forEach(function(g){return g.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),c.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var d=D.useCallback(function(c,g){if("touches"in c&&c.touches.length===2||c.type==="wheel"&&c.ctrlKey)return!f.current.allowPinchZoom;var b=da(c),_=n.current,x="deltaX"in c?c.deltaX:_[0]-b[0],C="deltaY"in c?c.deltaY:_[1]-b[1],T,M=c.target,H=Math.abs(x)>Math.abs(C)?"h":"v";if("touches"in c&&H==="h"&&M.type==="range")return!1;var F=Tp(H,M);if(!F)return!0;if(F?T=H:(T=H==="v"?"h":"v",F=Tp(H,M)),!F)return!1;if(!o.current&&"changedTouches"in c&&(x||C)&&(o.current=T),!T)return!0;var N=o.current||T;return kA(N,g,c,N==="h"?x:C)},[]),w=D.useCallback(function(c){var g=c;if(!(!Kn.length||Kn[Kn.length-1]!==u)){var b="deltaY"in g?Cp(g):da(g),_=r.current.filter(function(T){return T.name===g.type&&(T.target===g.target||g.target===T.shadowParent)&&NA(T.delta,b)})[0];if(_&&_.should){g.cancelable&&g.preventDefault();return}if(!_){var x=(f.current.shards||[]).map(Pp).filter(Boolean).filter(function(T){return T.contains(g.target)}),C=x.length>0?d(g,x[0]):!f.current.noIsolation;C&&g.cancelable&&g.preventDefault()}}},[]),S=D.useCallback(function(c,g,b,_){var x={name:c,delta:g,target:b,should:_,shadowParent:zA(b)};r.current.push(x),setTimeout(function(){r.current=r.current.filter(function(C){return C!==x})},1)},[]),y=D.useCallback(function(c){n.current=da(c),o.current=void 0},[]),h=D.useCallback(function(c){S(c.type,Cp(c),c.target,d(c,e.lockRef.current))},[]),l=D.useCallback(function(c){S(c.type,da(c),c.target,d(c,e.lockRef.current))},[]);D.useEffect(function(){return Kn.push(u),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:l}),document.addEventListener("wheel",w,Gn),document.addEventListener("touchmove",w,Gn),document.addEventListener("touchstart",y,Gn),function(){Kn=Kn.filter(function(c){return c!==u}),document.removeEventListener("wheel",w,Gn),document.removeEventListener("touchmove",w,Gn),document.removeEventListener("touchstart",y,Gn)}},[]);var p=e.removeScrollBar,m=e.inert;return D.createElement(D.Fragment,null,m?D.createElement(u,{styles:jA(a)}):null,p?D.createElement(RA,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function zA(e){for(var r=null;e!==null;)e instanceof ShadowRoot&&(r=e.host,e=e.host),e=e.parentNode;return r}const BA=gA(Lv,UA);var Nv=D.forwardRef(function(e,r){return D.createElement(Ha,dr({},e,{ref:r,sideCar:BA}))});Nv.classNames=Ha.classNames;const HA=globalThis!=null&&globalThis.document?D.useLayoutEffect:()=>{},qA=D.useId||(()=>{});let ZA=0;function GA(e){const[r,n]=D.useState(qA());return HA(()=>{n(o=>o??String(ZA++))},[e]),e||(r?`radix-${r}`:"")}function jv(...e){return r=>e.forEach(n=>function(o,a){typeof o=="function"?o(a):o!=null&&(o.current=a)}(n,r))}function Tn(...e){return D.useCallback(jv(...e),e)}const Wv=D.forwardRef((e,r)=>{const{children:n,...o}=e;return D.Children.toArray(n).some(Rp)?D.createElement(D.Fragment,null,D.Children.map(n,a=>Rp(a)?D.createElement(pl,ot({},o,{ref:r}),a.props.children):a)):D.createElement(pl,ot({},o,{ref:r}),n)});Wv.displayName="Slot";const pl=D.forwardRef((e,r)=>{const{children:n,...o}=e;return D.isValidElement(n)?D.cloneElement(n,{...VA(o,n.props),ref:jv(r,n.ref)}):D.Children.count(n)>1?D.Children.only(null):null});pl.displayName="SlotClone";const KA=({children:e})=>D.createElement(D.Fragment,null,e);function Rp(e){return D.isValidElement(e)&&e.type===KA}function VA(e,r){const n={...r};for(const o in r){const a=e[o],u=r[o];/^on[A-Z]/.test(o)?n[o]=(...f)=>{u==null||u(...f),a==null||a(...f)}:o==="style"?n[o]={...a,...u}:o==="className"&&(n[o]=[a,u].filter(Boolean).join(" "))}return{...e,...n}}const oi=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,r)=>({...e,[r]:D.forwardRef((n,o)=>{const{asChild:a,...u}=n,f=a?Wv:r;return D.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),D.createElement(f,ot({},u,{ref:o}))})}),{}),Mp=globalThis!=null&&globalThis.document?D.useLayoutEffect:()=>{},Uv=e=>{const{present:r,children:n}=e,o=function(f){const[d,w]=D.useState(),S=D.useRef({}),y=D.useRef(f),h=D.useRef("none"),l=f?"mounted":"unmounted",[p,m]=function(c,g){return D.useReducer((b,_)=>{const x=g[b][_];return x??b},c)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return D.useEffect(()=>{const c=pa(S.current);h.current=p==="mounted"?c:"none"},[p]),Mp(()=>{const c=S.current,g=y.current;if(g!==f){const b=h.current,_=pa(c);f?m("MOUNT"):_==="none"||(c==null?void 0:c.display)==="none"?m("UNMOUNT"):m(g&&b!==_?"ANIMATION_OUT":"UNMOUNT"),y.current=f}},[f,m]),Mp(()=>{if(d){const c=b=>{const _=pa(S.current).includes(b.animationName);b.target===d&&_&&m("ANIMATION_END")},g=b=>{b.target===d&&(h.current=pa(S.current))};return d.addEventListener("animationstart",g),d.addEventListener("animationcancel",c),d.addEventListener("animationend",c),()=>{d.removeEventListener("animationstart",g),d.removeEventListener("animationcancel",c),d.removeEventListener("animationend",c)}}m("ANIMATION_END")},[d,m]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:D.useCallback(c=>{c&&(S.current=getComputedStyle(c)),w(c)},[])}}(r),a=typeof n=="function"?n({present:o.isPresent}):D.Children.only(n),u=Tn(o.ref,a.ref);return typeof n=="function"||o.isPresent?D.cloneElement(a,{ref:u}):null};function pa(e){return(e==null?void 0:e.animationName)||"none"}Uv.displayName="Presence";let Du=0;function YA(){D.useEffect(()=>{var e,r;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Ip()),document.body.insertAdjacentElement("beforeend",(r=n[1])!==null&&r!==void 0?r:Ip()),Du++,()=>{Du===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),Du--}},[])}function Ip(){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 XA=globalThis!=null&&globalThis.document?D.useLayoutEffect:()=>{},zv=D.forwardRef((e,r)=>{var n,o;const{containerRef:a,style:u,...f}=e,d=(n=a==null?void 0:a.current)!==null&&n!==void 0?n:globalThis==null||(o=globalThis.document)===null||o===void 0?void 0:o.body,[,w]=D.useState({});return XA(()=>{w({})},[]),d?ao.createPortal(D.createElement(oi.div,ot({"data-radix-portal":""},f,{ref:r,style:d===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...u}:void 0})),d):null});function xn(e){const r=D.useRef(e);return D.useEffect(()=>{r.current=e}),D.useMemo(()=>(...n)=>{var o;return(o=r.current)===null||o===void 0?void 0:o.call(r,...n)},[])}const Lp={bubbles:!1,cancelable:!0},JA=D.forwardRef((e,r)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:a,onUnmountAutoFocus:u,...f}=e,[d,w]=D.useState(null),S=xn(a),y=xn(u),h=D.useRef(null),l=Tn(r,c=>w(c)),p=D.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;D.useEffect(()=>{if(o){let c=function(b){if(p.paused||!d)return;const _=b.target;d.contains(_)?h.current=_:hn(h.current,{select:!0})},g=function(b){!p.paused&&d&&(d.contains(b.relatedTarget)||hn(h.current,{select:!0}))};return document.addEventListener("focusin",c),document.addEventListener("focusout",g),()=>{document.removeEventListener("focusin",c),document.removeEventListener("focusout",g)}}},[o,d,p.paused]),D.useEffect(()=>{if(d){Dp.add(p);const g=document.activeElement;if(!d.contains(g)){const b=new Event("focusScope.autoFocusOnMount",Lp);d.addEventListener("focusScope.autoFocusOnMount",S),d.dispatchEvent(b),b.defaultPrevented||(function(_,{select:x=!1}={}){const C=document.activeElement;for(const T of _)if(hn(T,{select:x}),document.activeElement!==C)return}((c=Fp(d),c.filter(_=>_.tagName!=="A")),{select:!0}),document.activeElement===g&&hn(d))}return()=>{d.removeEventListener("focusScope.autoFocusOnMount",S),setTimeout(()=>{const b=new Event("focusScope.autoFocusOnUnmount",Lp);d.addEventListener("focusScope.autoFocusOnUnmount",y),d.dispatchEvent(b),b.defaultPrevented||hn(g??document.body,{select:!0}),d.removeEventListener("focusScope.autoFocusOnUnmount",y),Dp.remove(p)},0)}}var c},[d,S,y,p]);const m=D.useCallback(c=>{if(!n&&!o||p.paused)return;const g=c.key==="Tab"&&!c.altKey&&!c.ctrlKey&&!c.metaKey,b=document.activeElement;if(g&&b){const _=c.currentTarget,[x,C]=function(T){const M=Fp(T),H=$p(M,T),F=$p(M.reverse(),T);return[H,F]}(_);x&&C?c.shiftKey||b!==C?c.shiftKey&&b===x&&(c.preventDefault(),n&&hn(C,{select:!0})):(c.preventDefault(),n&&hn(x,{select:!0})):b===_&&c.preventDefault()}},[n,o,p.paused]);return D.createElement(oi.div,ot({tabIndex:-1},f,{ref:l,onKeyDown:m}))});function Fp(e){const r=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const a=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||a?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)r.push(n.currentNode);return r}function $p(e,r){for(const n of e)if(!QA(n,{upTo:r}))return n}function QA(e,{upTo:r}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(r!==void 0&&e===r)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function hn(e,{select:r=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(o){return o instanceof HTMLInputElement&&"select"in o}(e)&&r&&e.select()}}const Dp=function(){let e=[];return{add(r){const n=e[0];r!==n&&(n==null||n.pause()),e=kp(e,r),e.unshift(r)},remove(r){var n;e=kp(e,r),(n=e[0])===null||n===void 0||n.resume()}}}();function kp(e,r){const n=[...e],o=n.indexOf(r);return o!==-1&&n.splice(o,1),n}function eT(e){const r=xn(e);D.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[r])}const tT=globalThis!=null&&globalThis.document?D.useLayoutEffect:()=>{};let Np,ha=0;function rT({disabled:e}){const r=D.useRef(!1);tT(()=>{if(e){let n=function(){ha--,ha===0&&(document.body.style.pointerEvents=Np)},o=function(a){r.current=a.pointerType!=="mouse"};return ha===0&&(Np=document.body.style.pointerEvents),document.body.style.pointerEvents="none",ha++,document.addEventListener("pointerup",o),()=>{r.current?document.addEventListener("click",n,{once:!0}):n(),document.removeEventListener("pointerup",o)}}},[e])}function Sn(e,r,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return r==null?void 0:r(o)}}const nT=D.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),iT=D.forwardRef((e,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:u,onInteractOutside:f,onDismiss:d,...w}=e,S=D.useContext(nT),[y,h]=D.useState(null),[,l]=D.useState({}),p=Tn(r,M=>h(M)),m=Array.from(S.layers),[c]=[...S.layersWithOutsidePointerEventsDisabled].slice(-1),g=m.indexOf(c),b=y?m.indexOf(y):-1,_=S.layersWithOutsidePointerEventsDisabled.size>0,x=b>=g,C=function(M){const H=xn(M),F=D.useRef(!1);return D.useEffect(()=>{const N=j=>{j.target&&!F.current&&Wp("dismissableLayer.pointerDownOutside",H,{originalEvent:j}),F.current=!1},X=window.setTimeout(()=>{document.addEventListener("pointerdown",N)},0);return()=>{window.clearTimeout(X),document.removeEventListener("pointerdown",N)}},[H]),{onPointerDownCapture:()=>F.current=!0}}(M=>{const H=M.target,F=[...S.branches].some(N=>N.contains(H));x&&!F&&(a==null||a(M),f==null||f(M),M.defaultPrevented||d==null||d())}),T=function(M){const H=xn(M),F=D.useRef(!1);return D.useEffect(()=>{const N=X=>{X.target&&!F.current&&Wp("dismissableLayer.focusOutside",H,{originalEvent:X})};return document.addEventListener("focusin",N),()=>document.removeEventListener("focusin",N)},[H]),{onFocusCapture:()=>F.current=!0,onBlurCapture:()=>F.current=!1}}(M=>{const H=M.target;[...S.branches].some(F=>F.contains(H))||(u==null||u(M),f==null||f(M),M.defaultPrevented||d==null||d())});return eT(M=>{b===S.layers.size-1&&(o==null||o(M),M.defaultPrevented||d==null||d())}),rT({disabled:n}),D.useEffect(()=>{y&&(n&&S.layersWithOutsidePointerEventsDisabled.add(y),S.layers.add(y),jp())},[y,n,S]),D.useEffect(()=>()=>{y&&(S.layers.delete(y),S.layersWithOutsidePointerEventsDisabled.delete(y),jp())},[y,S]),D.useEffect(()=>{const M=()=>l({});return document.addEventListener("dismissableLayer.update",M),()=>document.removeEventListener("dismissableLayer.update",M)},[]),D.createElement(oi.div,ot({},w,{ref:p,style:{pointerEvents:_?x?"auto":"none":void 0,...e.style},onFocusCapture:Sn(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Sn(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Sn(e.onPointerDownCapture,C.onPointerDownCapture)}))});function jp(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function Wp(e,r,n){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});return r&&o.addEventListener(e,r,{once:!0}),!o.dispatchEvent(a)}function Up(e){const[r,n]=D.useState(void 0);return D.useEffect(()=>{if(e){const o=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const u=a[0];let f,d;if("borderBoxSize"in u){const w=u.borderBoxSize,S=Array.isArray(w)?w[0]:w;f=S.inlineSize,d=S.blockSize}else{const w=e.getBoundingClientRect();f=w.width,d=w.height}n({width:f,height:d})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}n(void 0)},[e]),r}function oT(e,r){const n=vn.get(e);return n===void 0?(vn.set(e,{rect:{},callbacks:[r]}),vn.size===1&&(hl=requestAnimationFrame(Bv))):(n.callbacks.push(r),r(e.getBoundingClientRect())),()=>{const o=vn.get(e);if(o===void 0)return;const a=o.callbacks.indexOf(r);a>-1&&o.callbacks.splice(a,1),o.callbacks.length===0&&(vn.delete(e),vn.size===0&&cancelAnimationFrame(hl))}}let hl;const vn=new Map;function Bv(){const e=[];vn.forEach((r,n)=>{const o=n.getBoundingClientRect();var a,u;a=r.rect,u=o,(a.width!==u.width||a.height!==u.height||a.top!==u.top||a.right!==u.right||a.bottom!==u.bottom||a.left!==u.left)&&(r.rect=o,e.push(r))}),e.forEach(r=>{r.callbacks.forEach(n=>n(r.rect))}),hl=requestAnimationFrame(Bv)}function aT(e){const[r,n]=D.useState();return D.useEffect(()=>{if(e){const o=oT(e,n);return()=>{n(void 0),o()}}},[e]),r}function Hv(e,r=[]){let n=[];const o=()=>{const a=n.map(u=>D.createContext(u));return function(u){const f=(u==null?void 0:u[e])||a;return D.useMemo(()=>({[`__scope${e}`]:{...u,[e]:f}}),[u,f])}};return o.scopeName=e,[function(a,u){const f=D.createContext(u),d=n.length;function w(S){const{scope:y,children:h,...l}=S,p=(y==null?void 0:y[e][d])||f,m=D.useMemo(()=>l,Object.values(l));return D.createElement(p.Provider,{value:m},h)}return n=[...n,u],w.displayName=a+"Provider",[w,function(S,y){const h=(y==null?void 0:y[e][d])||f,l=D.useContext(h);if(l)return l;if(u!==void 0)return u;throw new Error(`\`${S}\` must be used within \`${a}\``)}]},sT(o,...r)]}function sT(...e){const r=e[0];if(e.length===1)return r;const n=()=>{const o=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(a){const u=o.reduce((f,{useScope:d,scopeName:w})=>({...f,...d(a)[`__scope${w}`]}),{});return D.useMemo(()=>({[`__scope${r.scopeName}`]:u}),[u])}};return n.scopeName=r.scopeName,n}function uT({anchorRect:e,popperSize:r,arrowSize:n,arrowOffset:o=0,side:a,sideOffset:u=0,align:f,alignOffset:d=0,shouldAvoidCollisions:w=!0,collisionBoundariesRect:S,collisionTolerance:y=0}){if(!e||!r||!S)return{popperStyles:lT,arrowStyles:ku};const h=function(H,F,N=0,X=0,j){const L=j?j.height:0,z=zp(F,H,"x"),q=zp(F,H,"y"),R=q.before-N-L,J=q.after+N+L,V=z.before-N-L,te=z.after+N+L;return{top:{start:{x:z.start+X,y:R},center:{x:z.center,y:R},end:{x:z.end-X,y:R}},right:{start:{x:te,y:q.start+X},center:{x:te,y:q.center},end:{x:te,y:q.end-X}},bottom:{start:{x:z.start+X,y:J},center:{x:z.center,y:J},end:{x:z.end-X,y:J}},left:{start:{x:V,y:q.start+X},center:{x:V,y:q.center},end:{x:V,y:q.end-X}}}}(r,e,u,d,n),l=h[a][f];if(w===!1){const H=Bp(l);let F=ku;return n&&(F=qp({popperSize:r,arrowSize:n,arrowOffset:o,side:a,align:f})),{popperStyles:{...H,"--radix-popper-transform-origin":Hp(r,a,f,o,n)},arrowStyles:F,placedSide:a,placedAlign:f}}const p=DOMRect.fromRect({...r,...l}),m=(c=S,g=y,DOMRect.fromRect({width:c.width-2*g,height:c.height-2*g,x:c.left+g,y:c.top+g}));var c,g;const b=Gp(p,m),_=h[Zp(a)][f],x=function(H,F,N){const X=Zp(H);return F[H]&&!N[X]?X:H}(a,b,Gp(DOMRect.fromRect({...r,..._}),m)),C=function(H,F,N,X,j){const L=N==="top"||N==="bottom",z=L?"left":"top",q=L?"right":"bottom",R=L?"width":"height",J=F[R]>H[R];return(X==="start"||X==="center")&&(j[z]&&J||j[q]&&!J)?"end":(X==="end"||X==="center")&&(j[q]&&J||j[z]&&!J)?"start":X}(r,e,a,f,b),T=Bp(h[x][C]);let M=ku;return n&&(M=qp({popperSize:r,arrowSize:n,arrowOffset:o,side:x,align:C})),{popperStyles:{...T,"--radix-popper-transform-origin":Hp(r,x,C,o,n)},arrowStyles:M,placedSide:x,placedAlign:C}}function zp(e,r,n){const o=e[n==="x"?"left":"top"],a=n==="x"?"width":"height",u=e[a],f=r[a];return{before:o-f,start:o,center:o+(u-f)/2,end:o+u-f,after:o+u}}function Bp(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 Hp(e,r,n,o,a){const u=r==="top"||r==="bottom",f=a?a.width:0,d=a?a.height:0,w=f/2+o;let S="",y="";return u?(S={start:`${w}px`,center:"center",end:e.width-w+"px"}[n],y=r==="top"?`${e.height+d}px`:-d+"px"):(S=r==="left"?`${e.width+d}px`:-d+"px",y={start:`${w}px`,center:"center",end:e.height-w+"px"}[n]),`${S} ${y}`}const lT={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},ku={position:"absolute",opacity:0};function qp({popperSize:e,arrowSize:r,arrowOffset:n,side:o,align:a}){const u=(e.width-r.width)/2,f=(e.height-r.width)/2,d={top:0,right:90,bottom:180,left:-90}[o],w=Math.max(r.width,r.height),S={width:`${w}px`,height:`${w}px`,transform:`rotate(${d}deg)`,willChange:"transform",position:"absolute",[o]:"100%",direction:fT(o,a)};return o!=="top"&&o!=="bottom"||(a==="start"&&(S.left=`${n}px`),a==="center"&&(S.left=`${u}px`),a==="end"&&(S.right=`${n}px`)),o!=="left"&&o!=="right"||(a==="start"&&(S.top=`${n}px`),a==="center"&&(S.top=`${f}px`),a==="end"&&(S.bottom=`${n}px`)),S}function fT(e,r){return(e!=="top"&&e!=="right"||r!=="end")&&(e!=="bottom"&&e!=="left"||r==="end")?"ltr":"rtl"}function Zp(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function Gp(e,r){return{top:e.top<r.top,right:e.right>r.right,bottom:e.bottom>r.bottom,left:e.left<r.left}}const[qv,Zv]=Hv("Popper"),[cT,Gv]=qv("Popper"),dT=e=>{const{__scopePopper:r,children:n}=e,[o,a]=D.useState(null);return D.createElement(cT,{scope:r,anchor:o,onAnchorChange:a},n)},pT=D.forwardRef((e,r)=>{const{__scopePopper:n,virtualRef:o,...a}=e,u=Gv("PopperAnchor",n),f=D.useRef(null),d=Tn(r,f);return D.useEffect(()=>{u.onAnchorChange((o==null?void 0:o.current)||f.current)}),o?null:D.createElement(oi.div,ot({},a,{ref:d}))}),[hT,vI]=qv("PopperContent"),vT=D.forwardRef((e,r)=>{const{__scopePopper:n,side:o="bottom",sideOffset:a,align:u="center",alignOffset:f,collisionTolerance:d,avoidCollisions:w=!0,...S}=e,y=Gv("PopperContent",n),[h,l]=D.useState(),p=aT(y.anchor),[m,c]=D.useState(null),g=Up(m),[b,_]=D.useState(null),x=Up(b),C=Tn(r,L=>c(L)),T=function(){const[L,z]=D.useState(void 0);return D.useEffect(()=>{let q;function R(){z({width:window.innerWidth,height:window.innerHeight})}function J(){window.clearTimeout(q),q=window.setTimeout(R,100)}return R(),window.addEventListener("resize",J),()=>window.removeEventListener("resize",J)},[]),L}(),M=T?DOMRect.fromRect({...T,x:0,y:0}):void 0,{popperStyles:H,arrowStyles:F,placedSide:N,placedAlign:X}=uT({anchorRect:p,popperSize:g,arrowSize:x,arrowOffset:h,side:o,sideOffset:a,align:u,alignOffset:f,shouldAvoidCollisions:w,collisionBoundariesRect:M,collisionTolerance:d}),j=N!==void 0;return D.createElement("div",{style:H,"data-radix-popper-content-wrapper":""},D.createElement(hT,{scope:n,arrowStyles:F,onArrowChange:_,onArrowOffsetChange:l},D.createElement(oi.div,ot({"data-side":N,"data-align":X},S,{style:{...S.style,animation:j?void 0:"none"},ref:C}))))}),mT=dT,gT=pT,yT=vT;function wT({prop:e,defaultProp:r,onChange:n=()=>{}}){const[o,a]=function({defaultProp:w,onChange:S}){const y=D.useState(w),[h]=y,l=D.useRef(h),p=xn(S);return D.useEffect(()=>{l.current!==h&&(p(h),l.current=h)},[h,l,p]),y}({defaultProp:r,onChange:n}),u=e!==void 0,f=u?e:o,d=xn(n);return[f,D.useCallback(w=>{if(u){const S=w,y=typeof w=="function"?S(e):w;y!==e&&d(y)}else a(w)},[u,e,a,d])]}const[bT,mI]=Hv("Popover",[Zv]),$l=Zv(),[ST,lo]=bT("Popover"),ET=e=>{const{__scopePopover:r,children:n,open:o,defaultOpen:a,onOpenChange:u,modal:f=!1}=e,d=$l(r),w=D.useRef(null),[S,y]=D.useState(!1),[h=!1,l]=wT({prop:o,defaultProp:a,onChange:u});return D.createElement(mT,d,D.createElement(ST,{scope:r,contentId:GA(),triggerRef:w,open:h,onOpenChange:l,onOpenToggle:D.useCallback(()=>l(p=>!p),[l]),hasCustomAnchor:S,onCustomAnchorAdd:D.useCallback(()=>y(!0),[]),onCustomAnchorRemove:D.useCallback(()=>y(!1),[]),modal:f},n))},_T=D.forwardRef((e,r)=>{const{__scopePopover:n,...o}=e,a=lo("PopoverTrigger",n),u=$l(n),f=Tn(r,a.triggerRef),d=D.createElement(oi.button,ot({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Vv(a.open)},o,{ref:f,onClick:Sn(e.onClick,a.onOpenToggle)}));return a.hasCustomAnchor?d:D.createElement(gT,ot({asChild:!0},u),d)}),xT=D.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=lo("PopoverContent",e.__scopePopover);return D.createElement(Uv,{present:n||a.open},a.modal?D.createElement(OT,ot({},o,{ref:r})):D.createElement(AT,ot({},o,{ref:r})))}),OT=D.forwardRef((e,r)=>{const{allowPinchZoom:n,portalled:o=!0,...a}=e,u=lo("PopoverContent",e.__scopePopover),f=D.useRef(null),d=Tn(r,f),w=D.useRef(!1);D.useEffect(()=>{const y=f.current;if(y)return uA(y)},[]);const S=o?zv:D.Fragment;return D.createElement(S,null,D.createElement(Nv,{allowPinchZoom:n},D.createElement(Kv,ot({},a,{ref:d,trapFocus:u.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Sn(e.onCloseAutoFocus,y=>{var h;y.preventDefault(),w.current||(h=u.triggerRef.current)===null||h===void 0||h.focus()}),onPointerDownOutside:Sn(e.onPointerDownOutside,y=>{const h=y.detail.originalEvent,l=h.button===0&&h.ctrlKey===!0,p=h.button===2||l;w.current=p},{checkForDefaultPrevented:!1}),onFocusOutside:Sn(e.onFocusOutside,y=>y.preventDefault(),{checkForDefaultPrevented:!1})}))))}),AT=D.forwardRef((e,r)=>{const{portalled:n=!0,...o}=e,a=lo("PopoverContent",e.__scopePopover),u=D.useRef(!1),f=n?zv:D.Fragment;return D.createElement(f,null,D.createElement(Kv,ot({},o,{ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:d=>{var w,S;(w=e.onCloseAutoFocus)===null||w===void 0||w.call(e,d),d.defaultPrevented||(u.current||(S=a.triggerRef.current)===null||S===void 0||S.focus(),d.preventDefault()),u.current=!1},onInteractOutside:d=>{var w,S;(w=e.onInteractOutside)===null||w===void 0||w.call(e,d),d.defaultPrevented||(u.current=!0);const y=d.target;!((S=a.triggerRef.current)===null||S===void 0)&&S.contains(y)&&d.preventDefault()}})))}),Kv=D.forwardRef((e,r)=>{const{__scopePopover:n,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:u,disableOutsidePointerEvents:f,onEscapeKeyDown:d,onPointerDownOutside:w,onFocusOutside:S,onInteractOutside:y,...h}=e,l=lo("PopoverContent",n),p=$l(n);return YA(),D.createElement(JA,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:u},D.createElement(iT,{asChild:!0,disableOutsidePointerEvents:f,onInteractOutside:y,onEscapeKeyDown:d,onPointerDownOutside:w,onFocusOutside:S,onDismiss:()=>l.onOpenChange(!1)},D.createElement(yT,ot({"data-state":Vv(l.open),role:"dialog",id:l.contentId},p,h,{ref:r,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))});function Vv(e){return e?"open":"closed"}const TT=ET,CT=_T,PT=xT;var Ca=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(Ca||{}),Nu={},ki={},va={},ma={},ga={exports:{}},ya={exports:{}},Me={};/** @license React v16.13.1
71
58
  * react-is.production.min.js
72
59
  *
73
60
  * Copyright (c) Facebook, Inc. and its affiliates.
74
61
  *
75
62
  * This source code is licensed under the MIT license found in the
76
63
  * LICENSE file in the root directory of this source tree.
77
- */var wh;function pC(){if(wh)return Me;wh=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,b=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,E=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,A=e?Symbol.for("react.responder"):60118,I=e?Symbol.for("react.scope"):60119;function P(O){if(typeof O=="object"&&O!==null){var L=O.$$typeof;switch(L){case t:switch(O=O.type,O){case d:case p:case i:case s:case a:case b:return O;default:switch(O=O&&O.$$typeof,O){case f:case h:case E:case w:case l:return O;default:return L}}case r:return L}}}function F(O){return P(O)===p}return Me.AsyncMode=d,Me.ConcurrentMode=p,Me.ContextConsumer=f,Me.ContextProvider=l,Me.Element=t,Me.ForwardRef=h,Me.Fragment=i,Me.Lazy=E,Me.Memo=w,Me.Portal=r,Me.Profiler=s,Me.StrictMode=a,Me.Suspense=b,Me.isAsyncMode=function(O){return F(O)||P(O)===d},Me.isConcurrentMode=F,Me.isContextConsumer=function(O){return P(O)===f},Me.isContextProvider=function(O){return P(O)===l},Me.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===t},Me.isForwardRef=function(O){return P(O)===h},Me.isFragment=function(O){return P(O)===i},Me.isLazy=function(O){return P(O)===E},Me.isMemo=function(O){return P(O)===w},Me.isPortal=function(O){return P(O)===r},Me.isProfiler=function(O){return P(O)===s},Me.isStrictMode=function(O){return P(O)===a},Me.isSuspense=function(O){return P(O)===b},Me.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===i||O===p||O===s||O===a||O===b||O===v||typeof O=="object"&&O!==null&&(O.$$typeof===E||O.$$typeof===w||O.$$typeof===l||O.$$typeof===f||O.$$typeof===h||O.$$typeof===x||O.$$typeof===A||O.$$typeof===I||O.$$typeof===y)},Me.typeOf=P,Me}var Fe={};/** @license React v16.13.1
64
+ */var Kp;function RT(){if(Kp)return Me;Kp=1;var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,u=e?Symbol.for("react.profiler"):60114,f=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,w=e?Symbol.for("react.async_mode"):60111,S=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,l=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,c=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function x(T){if(typeof T=="object"&&T!==null){var M=T.$$typeof;switch(M){case r:switch(T=T.type,T){case w:case S:case o:case u:case a:case h:return T;default:switch(T=T&&T.$$typeof,T){case d:case y:case m:case p:case f:return T;default:return M}}case n:return M}}}function C(T){return x(T)===S}return Me.AsyncMode=w,Me.ConcurrentMode=S,Me.ContextConsumer=d,Me.ContextProvider=f,Me.Element=r,Me.ForwardRef=y,Me.Fragment=o,Me.Lazy=m,Me.Memo=p,Me.Portal=n,Me.Profiler=u,Me.StrictMode=a,Me.Suspense=h,Me.isAsyncMode=function(T){return C(T)||x(T)===w},Me.isConcurrentMode=C,Me.isContextConsumer=function(T){return x(T)===d},Me.isContextProvider=function(T){return x(T)===f},Me.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===r},Me.isForwardRef=function(T){return x(T)===y},Me.isFragment=function(T){return x(T)===o},Me.isLazy=function(T){return x(T)===m},Me.isMemo=function(T){return x(T)===p},Me.isPortal=function(T){return x(T)===n},Me.isProfiler=function(T){return x(T)===u},Me.isStrictMode=function(T){return x(T)===a},Me.isSuspense=function(T){return x(T)===h},Me.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===o||T===S||T===u||T===a||T===h||T===l||typeof T=="object"&&T!==null&&(T.$$typeof===m||T.$$typeof===p||T.$$typeof===f||T.$$typeof===d||T.$$typeof===y||T.$$typeof===g||T.$$typeof===b||T.$$typeof===_||T.$$typeof===c)},Me.typeOf=x,Me}var Ie={};/** @license React v16.13.1
78
65
  * react-is.development.js
79
66
  *
80
67
  * Copyright (c) Facebook, Inc. and its affiliates.
81
68
  *
82
69
  * This source code is licensed under the MIT license found in the
83
70
  * LICENSE file in the root directory of this source tree.
84
- */var bh;function hC(){return bh||(bh=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,b=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,E=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,A=e?Symbol.for("react.responder"):60118,I=e?Symbol.for("react.scope"):60119;function P(K){return typeof K=="string"||typeof K=="function"||K===i||K===p||K===s||K===a||K===b||K===v||typeof K=="object"&&K!==null&&(K.$$typeof===E||K.$$typeof===w||K.$$typeof===l||K.$$typeof===f||K.$$typeof===h||K.$$typeof===x||K.$$typeof===A||K.$$typeof===I||K.$$typeof===y)}function F(K){if(typeof K=="object"&&K!==null){var gt=K.$$typeof;switch(gt){case t:var st=K.type;switch(st){case d:case p:case i:case s:case a:case b:return st;default:var br=st&&st.$$typeof;switch(br){case f:case h:case E:case w:case l:return br;default:return gt}}case r:return gt}}}var O=d,L=p,U=f,z=l,q=t,V=h,ee=i,be=E,pe=w,Ae=r,Ne=s,ve=a,Te=b,Ge=!1;function Ct(K){return Ge||(Ge=!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.")),H(K)||F(K)===d}function H(K){return F(K)===p}function G(K){return F(K)===f}function re(K){return F(K)===l}function le(K){return typeof K=="object"&&K!==null&&K.$$typeof===t}function Q(K){return F(K)===h}function ae(K){return F(K)===i}function se(K){return F(K)===E}function ce(K){return F(K)===w}function ue(K){return F(K)===r}function ge(K){return F(K)===s}function xe(K){return F(K)===a}function He(K){return F(K)===b}Fe.AsyncMode=O,Fe.ConcurrentMode=L,Fe.ContextConsumer=U,Fe.ContextProvider=z,Fe.Element=q,Fe.ForwardRef=V,Fe.Fragment=ee,Fe.Lazy=be,Fe.Memo=pe,Fe.Portal=Ae,Fe.Profiler=Ne,Fe.StrictMode=ve,Fe.Suspense=Te,Fe.isAsyncMode=Ct,Fe.isConcurrentMode=H,Fe.isContextConsumer=G,Fe.isContextProvider=re,Fe.isElement=le,Fe.isForwardRef=Q,Fe.isFragment=ae,Fe.isLazy=se,Fe.isMemo=ce,Fe.isPortal=ue,Fe.isProfiler=ge,Fe.isStrictMode=xe,Fe.isSuspense=He,Fe.isValidElementType=P,Fe.typeOf=F}()),Fe}var Sh;function um(){return Sh||(Sh=1,process.env.NODE_ENV==="production"?Ra.exports=pC():Ra.exports=hC()),Ra.exports}/*
71
+ */var Vp;function MT(){return Vp||(Vp=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,u=e?Symbol.for("react.profiler"):60114,f=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,w=e?Symbol.for("react.async_mode"):60111,S=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,l=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,c=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function x(ne){return typeof ne=="string"||typeof ne=="function"||ne===o||ne===S||ne===u||ne===a||ne===h||ne===l||typeof ne=="object"&&ne!==null&&(ne.$$typeof===m||ne.$$typeof===p||ne.$$typeof===f||ne.$$typeof===d||ne.$$typeof===y||ne.$$typeof===g||ne.$$typeof===b||ne.$$typeof===_||ne.$$typeof===c)}function C(ne){if(typeof ne=="object"&&ne!==null){var ct=ne.$$typeof;switch(ct){case r:var tt=ne.type;switch(tt){case w:case S:case o:case u:case a:case h:return tt;default:var or=tt&&tt.$$typeof;switch(or){case d:case y:case m:case p:case f:return or;default:return ct}}case n:return ct}}}var T=w,M=S,H=d,F=f,N=r,X=y,j=o,L=m,z=p,q=n,R=u,J=a,V=h,te=!1;function le(ne){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(ne)||C(ne)===w}function Z(ne){return C(ne)===S}function ee(ne){return C(ne)===d}function ae(ne){return C(ne)===f}function fe(ne){return typeof ne=="object"&&ne!==null&&ne.$$typeof===r}function oe(ne){return C(ne)===y}function ce(ne){return C(ne)===o}function pe(ne){return C(ne)===m}function ye(ne){return C(ne)===p}function ge(ne){return C(ne)===n}function _e(ne){return C(ne)===u}function Ae(ne){return C(ne)===a}function Ue(ne){return C(ne)===h}Ie.AsyncMode=T,Ie.ConcurrentMode=M,Ie.ContextConsumer=H,Ie.ContextProvider=F,Ie.Element=N,Ie.ForwardRef=X,Ie.Fragment=j,Ie.Lazy=L,Ie.Memo=z,Ie.Portal=q,Ie.Profiler=R,Ie.StrictMode=J,Ie.Suspense=V,Ie.isAsyncMode=le,Ie.isConcurrentMode=Z,Ie.isContextConsumer=ee,Ie.isContextProvider=ae,Ie.isElement=fe,Ie.isForwardRef=oe,Ie.isFragment=ce,Ie.isLazy=pe,Ie.isMemo=ye,Ie.isPortal=ge,Ie.isProfiler=_e,Ie.isStrictMode=Ae,Ie.isSuspense=Ue,Ie.isValidElementType=x,Ie.typeOf=C}()),Ie}var Yp;function Yv(){return Yp||(Yp=1,process.env.NODE_ENV==="production"?ya.exports=RT():ya.exports=MT()),ya.exports}/*
85
72
  object-assign
86
73
  (c) Sindre Sorhus
87
74
  @license MIT
88
- */var pl,Eh;function vC(){if(Eh)return pl;Eh=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function a(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var l={},f=0;f<10;f++)l["_"+String.fromCharCode(f)]=f;var d=Object.getOwnPropertyNames(l).map(function(h){return l[h]});if(d.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(h){p[h]=h}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return pl=a()?Object.assign:function(s,l){for(var f,d=i(s),p,h=1;h<arguments.length;h++){f=Object(arguments[h]);for(var b in f)t.call(f,b)&&(d[b]=f[b]);if(e){p=e(f);for(var v=0;v<p.length;v++)r.call(f,p[v])&&(d[p[v]]=f[p[v]])}}return d},pl}var hl,xh;function Sf(){if(xh)return hl;xh=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return hl=e,hl}var vl,_h;function lm(){return _h||(_h=1,vl=Function.call.bind(Object.prototype.hasOwnProperty)),vl}var ml,Oh;function mC(){if(Oh)return ml;Oh=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Sf(),r={},i=lm();e=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function a(s,l,f,d,p){if(process.env.NODE_ENV!=="production"){for(var h in s)if(i(s,h)){var b;try{if(typeof s[h]!="function"){var v=Error((d||"React class")+": "+f+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}b=s[h](l,h,d,f,null,t)}catch(E){b=E}if(b&&!(b instanceof Error)&&e((d||"React class")+": type specification of "+f+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof b+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),b instanceof Error&&!(b.message in r)){r[b.message]=!0;var w=p?p():"";e("Failed "+f+" type: "+b.message+(w??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},ml=a,ml}var gl,Ah;function gC(){if(Ah)return gl;Ah=1;var e=um(),t=vC(),r=Sf(),i=lm(),a=mC(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(f){var d="Warning: "+f;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function l(){return null}return gl=function(f,d){var p=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function b(H){var G=H&&(p&&H[p]||H[h]);if(typeof G=="function")return G}var v="<<anonymous>>",w={array:A("array"),bigint:A("bigint"),bool:A("boolean"),func:A("function"),number:A("number"),object:A("object"),string:A("string"),symbol:A("symbol"),any:I(),arrayOf:P,element:F(),elementType:O(),instanceOf:L,node:V(),objectOf:z,oneOf:U,oneOfType:q,shape:be,exact:pe};function E(H,G){return H===G?H!==0||1/H===1/G:H!==H&&G!==G}function y(H,G){this.message=H,this.data=G&&typeof G=="object"?G:{},this.stack=""}y.prototype=Error.prototype;function x(H){if(process.env.NODE_ENV!=="production")var G={},re=0;function le(ae,se,ce,ue,ge,xe,He){if(ue=ue||v,xe=xe||ce,He!==r){if(d){var K=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw K.name="Invariant Violation",K}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var gt=ue+":"+ce;!G[gt]&&re<3&&(s("You are manually calling a React.PropTypes validation function for the `"+xe+"` prop on `"+ue+"`. 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."),G[gt]=!0,re++)}}return se[ce]==null?ae?se[ce]===null?new y("The "+ge+" `"+xe+"` is marked as required "+("in `"+ue+"`, but its value is `null`.")):new y("The "+ge+" `"+xe+"` is marked as required in "+("`"+ue+"`, but its value is `undefined`.")):null:H(se,ce,ue,ge,xe)}var Q=le.bind(null,!1);return Q.isRequired=le.bind(null,!0),Q}function A(H){function G(re,le,Q,ae,se,ce){var ue=re[le],ge=ve(ue);if(ge!==H){var xe=Te(ue);return new y("Invalid "+ae+" `"+se+"` of type "+("`"+xe+"` supplied to `"+Q+"`, expected ")+("`"+H+"`."),{expectedType:H})}return null}return x(G)}function I(){return x(l)}function P(H){function G(re,le,Q,ae,se){if(typeof H!="function")return new y("Property `"+se+"` of component `"+Q+"` has invalid PropType notation inside arrayOf.");var ce=re[le];if(!Array.isArray(ce)){var ue=ve(ce);return new y("Invalid "+ae+" `"+se+"` of type "+("`"+ue+"` supplied to `"+Q+"`, expected an array."))}for(var ge=0;ge<ce.length;ge++){var xe=H(ce,ge,Q,ae,se+"["+ge+"]",r);if(xe instanceof Error)return xe}return null}return x(G)}function F(){function H(G,re,le,Q,ae){var se=G[re];if(!f(se)){var ce=ve(se);return new y("Invalid "+Q+" `"+ae+"` of type "+("`"+ce+"` supplied to `"+le+"`, expected a single ReactElement."))}return null}return x(H)}function O(){function H(G,re,le,Q,ae){var se=G[re];if(!e.isValidElementType(se)){var ce=ve(se);return new y("Invalid "+Q+" `"+ae+"` of type "+("`"+ce+"` supplied to `"+le+"`, expected a single ReactElement type."))}return null}return x(H)}function L(H){function G(re,le,Q,ae,se){if(!(re[le]instanceof H)){var ce=H.name||v,ue=Ct(re[le]);return new y("Invalid "+ae+" `"+se+"` of type "+("`"+ue+"` supplied to `"+Q+"`, expected ")+("instance of `"+ce+"`."))}return null}return x(G)}function U(H){if(!Array.isArray(H))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),l;function G(re,le,Q,ae,se){for(var ce=re[le],ue=0;ue<H.length;ue++)if(E(ce,H[ue]))return null;var ge=JSON.stringify(H,function(He,K){var gt=Te(K);return gt==="symbol"?String(K):K});return new y("Invalid "+ae+" `"+se+"` of value `"+String(ce)+"` "+("supplied to `"+Q+"`, expected one of "+ge+"."))}return x(G)}function z(H){function G(re,le,Q,ae,se){if(typeof H!="function")return new y("Property `"+se+"` of component `"+Q+"` has invalid PropType notation inside objectOf.");var ce=re[le],ue=ve(ce);if(ue!=="object")return new y("Invalid "+ae+" `"+se+"` of type "+("`"+ue+"` supplied to `"+Q+"`, expected an object."));for(var ge in ce)if(i(ce,ge)){var xe=H(ce,ge,Q,ae,se+"."+ge,r);if(xe instanceof Error)return xe}return null}return x(G)}function q(H){if(!Array.isArray(H))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var G=0;G<H.length;G++){var re=H[G];if(typeof re!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ge(re)+" at index "+G+"."),l}function le(Q,ae,se,ce,ue){for(var ge=[],xe=0;xe<H.length;xe++){var He=H[xe],K=He(Q,ae,se,ce,ue,r);if(K==null)return null;K.data&&i(K.data,"expectedType")&&ge.push(K.data.expectedType)}var gt=ge.length>0?", expected one of type ["+ge.join(", ")+"]":"";return new y("Invalid "+ce+" `"+ue+"` supplied to "+("`"+se+"`"+gt+"."))}return x(le)}function V(){function H(G,re,le,Q,ae){return Ae(G[re])?null:new y("Invalid "+Q+" `"+ae+"` supplied to "+("`"+le+"`, expected a ReactNode."))}return x(H)}function ee(H,G,re,le,Q){return new y((H||"React class")+": "+G+" type `"+re+"."+le+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Q+"`.")}function be(H){function G(re,le,Q,ae,se){var ce=re[le],ue=ve(ce);if(ue!=="object")return new y("Invalid "+ae+" `"+se+"` of type `"+ue+"` "+("supplied to `"+Q+"`, expected `object`."));for(var ge in H){var xe=H[ge];if(typeof xe!="function")return ee(Q,ae,se,ge,Te(xe));var He=xe(ce,ge,Q,ae,se+"."+ge,r);if(He)return He}return null}return x(G)}function pe(H){function G(re,le,Q,ae,se){var ce=re[le],ue=ve(ce);if(ue!=="object")return new y("Invalid "+ae+" `"+se+"` of type `"+ue+"` "+("supplied to `"+Q+"`, expected `object`."));var ge=t({},re[le],H);for(var xe in ge){var He=H[xe];if(i(H,xe)&&typeof He!="function")return ee(Q,ae,se,xe,Te(He));if(!He)return new y("Invalid "+ae+" `"+se+"` key `"+xe+"` supplied to `"+Q+"`.\nBad object: "+JSON.stringify(re[le],null," ")+`
89
- Valid keys: `+JSON.stringify(Object.keys(H),null," "));var K=He(ce,xe,Q,ae,se+"."+xe,r);if(K)return K}return null}return x(G)}function Ae(H){switch(typeof H){case"number":case"string":case"undefined":return!0;case"boolean":return!H;case"object":if(Array.isArray(H))return H.every(Ae);if(H===null||f(H))return!0;var G=b(H);if(G){var re=G.call(H),le;if(G!==H.entries){for(;!(le=re.next()).done;)if(!Ae(le.value))return!1}else for(;!(le=re.next()).done;){var Q=le.value;if(Q&&!Ae(Q[1]))return!1}}else return!1;return!0;default:return!1}}function Ne(H,G){return H==="symbol"?!0:G?G["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&G instanceof Symbol:!1}function ve(H){var G=typeof H;return Array.isArray(H)?"array":H instanceof RegExp?"object":Ne(G,H)?"symbol":G}function Te(H){if(typeof H>"u"||H===null)return""+H;var G=ve(H);if(G==="object"){if(H instanceof Date)return"date";if(H instanceof RegExp)return"regexp"}return G}function Ge(H){var G=Te(H);switch(G){case"array":case"object":return"an "+G;case"boolean":case"date":case"regexp":return"a "+G;default:return G}}function Ct(H){return!H.constructor||!H.constructor.name?v:H.constructor.name}return w.checkPropTypes=a,w.resetWarningCache=a.resetWarningCache,w.PropTypes=w,w},gl}var yl,Th;function yC(){if(Th)return yl;Th=1;var e=Sf();function t(){}function r(){}return r.resetWarningCache=t,yl=function(){function i(l,f,d,p,h,b){if(b!==e){var v=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 v.name="Invariant Violation",v}}i.isRequired=i;function a(){return i}var s={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:a,element:i,elementType:i,instanceOf:a,node:i,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return s.PropTypes=s,s},yl}var Ch;function wC(){if(Ch)return Pa.exports;if(Ch=1,process.env.NODE_ENV!=="production"){var e=um(),t=!0;Pa.exports=gC()(e.isElement,t)}else Pa.exports=yC()();return Pa.exports}var Ph;function bC(){return Ph||(Ph=1,function(e){(function(t,r){r(e,D,wC())})(Nn,function(t,r,i){Object.defineProperty(t,"__esModule",{value:!0}),t.setHasSupportToCaptureOption=E;var a=l(r),s=l(i);function l(I){return I&&I.__esModule?I:{default:I}}var f=Object.assign||function(I){for(var P=1;P<arguments.length;P++){var F=arguments[P];for(var O in F)Object.prototype.hasOwnProperty.call(F,O)&&(I[O]=F[O])}return I};function d(I,P){var F={};for(var O in I)P.indexOf(O)>=0||Object.prototype.hasOwnProperty.call(I,O)&&(F[O]=I[O]);return F}function p(I,P){if(!(I instanceof P))throw new TypeError("Cannot call a class as a function")}var h=function(){function I(P,F){for(var O=0;O<F.length;O++){var L=F[O];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(P,L.key,L)}}return function(P,F,O){return F&&I(P.prototype,F),O&&I(P,O),P}}();function b(I,P){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:I}function v(I,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);I.prototype=Object.create(P&&P.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(I,P):I.__proto__=P)}var w=!1;function E(I){w=I}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){E(!0)}}))}catch{}function y(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return w?I:I.capture}function x(I){if("touches"in I){var P=I.touches[0],F=P.pageX,O=P.pageY;return{x:F,y:O}}var L=I.screenX,U=I.screenY;return{x:L,y:U}}var A=function(I){v(P,I);function P(){var F;p(this,P);for(var O=arguments.length,L=Array(O),U=0;U<O;U++)L[U]=arguments[U];var z=b(this,(F=P.__proto__||Object.getPrototypeOf(P)).call.apply(F,[this].concat(L)));return z._handleSwipeStart=z._handleSwipeStart.bind(z),z._handleSwipeMove=z._handleSwipeMove.bind(z),z._handleSwipeEnd=z._handleSwipeEnd.bind(z),z._onMouseDown=z._onMouseDown.bind(z),z._onMouseMove=z._onMouseMove.bind(z),z._onMouseUp=z._onMouseUp.bind(z),z._setSwiperRef=z._setSwiperRef.bind(z),z}return h(P,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,y({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,y({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 L=x(O),U=L.x,z=L.y;this.moveStart={x:U,y:z},this.props.onSwipeStart(O)}},{key:"_handleSwipeMove",value:function(O){if(this.moveStart){var L=x(O),U=L.x,z=L.y,q=U-this.moveStart.x,V=z-this.moveStart.y;this.moving=!0;var ee=this.props.onSwipeMove({x:q,y:V},O);ee&&O.cancelable&&O.preventDefault(),this.movePosition={deltaX:q,deltaY:V}}}},{key:"_handleSwipeEnd",value:function(O){this.props.onSwipeEnd(O);var L=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-L?this.props.onSwipeLeft(1,O):this.movePosition.deltaX>L&&this.props.onSwipeRight(1,O),this.movePosition.deltaY<-L?this.props.onSwipeUp(1,O):this.movePosition.deltaY>L&&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 L=O.className,U=O.style,z=O.children;O.allowMouseEvents,O.onSwipeUp,O.onSwipeDown,O.onSwipeLeft,O.onSwipeRight,O.onSwipeStart,O.onSwipeMove,O.onSwipeEnd,O.innerRef,O.tolerance;var q=d(O,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return a.default.createElement(this.props.tagName,f({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:L,style:U},q),z)}}]),P}(r.Component);A.displayName="ReactSwipe",A.propTypes={tagName:s.default.string,className:s.default.string,style:s.default.object,children:s.default.node,allowMouseEvents:s.default.bool,onSwipeUp:s.default.func,onSwipeDown:s.default.func,onSwipeLeft:s.default.func,onSwipeRight:s.default.func,onSwipeStart:s.default.func,onSwipeMove:s.default.func,onSwipeEnd:s.default.func,innerRef:s.default.func,tolerance:s.default.number.isRequired},A.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=A})}(dl)),dl}(function(e){(function(t,r){r(e,bC())})(Nn,function(t,r){Object.defineProperty(t,"__esModule",{value:!0});var i=a(r);function a(s){return s&&s.__esModule?s:{default:s}}t.default=i.default})})(bf);var bo={};Object.defineProperty(bo,"__esModule",{value:!0});bo.default=void 0;var pn=SC(pv);function SC(e){return e&&e.__esModule?e:{default:e}}function EC(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var xC={ROOT:function(t){return(0,pn.default)(EC({"carousel-root":!0},t||"",!!t))},CAROUSEL:function(t){return(0,pn.default)({carousel:!0,"carousel-slider":t})},WRAPPER:function(t,r){return(0,pn.default)({"thumbs-wrapper":!t,"slider-wrapper":t,"axis-horizontal":r==="horizontal","axis-vertical":r!=="horizontal"})},SLIDER:function(t,r){return(0,pn.default)({thumbs:!t,slider:t,animated:!r})},ITEM:function(t,r,i){return(0,pn.default)({thumb:!t,slide:t,selected:r,previous:i})},ARROW_PREV:function(t){return(0,pn.default)({"control-arrow control-prev":!0,"control-disabled":t})},ARROW_NEXT:function(t){return(0,pn.default)({"control-arrow control-next":!0,"control-disabled":t})},DOT:function(t){return(0,pn.default)({dot:!0,selected:t})}};bo.default=xC;var So={},ds={};Object.defineProperty(ds,"__esModule",{value:!0});ds.outerWidth=void 0;var _C=function(t){var r=t.offsetWidth,i=getComputedStyle(t);return r+=parseInt(i.marginLeft)+parseInt(i.marginRight),r};ds.outerWidth=_C;var Ai={};Object.defineProperty(Ai,"__esModule",{value:!0});Ai.default=void 0;var OC=function(t,r,i){var a=t===0?t:t+r,s=i==="horizontal"?[a,0,0]:[0,a,0],l="translate3d",f="("+s.join(",")+")";return l+f};Ai.default=OC;var Eo={};Object.defineProperty(Eo,"__esModule",{value:!0});Eo.default=void 0;var AC=function(){return window};Eo.default=AC;Object.defineProperty(So,"__esModule",{value:!0});So.default=void 0;var mr=PC(D),Dn=ps(bo),TC=ds,Rh=ps(Ai),CC=ps(bf),Ia=ps(Eo);function ps(e){return e&&e.__esModule?e:{default:e}}function fm(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return fm=function(){return e},e}function PC(e){if(e&&e.__esModule)return e;if(e===null||Qi(e)!=="object"&&typeof e!="function")return{default:e};var t=fm();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,t&&t.set(e,r),r}function Qi(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Qi=function(r){return typeof r}:Qi=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Qi(e)}function ql(){return ql=Object.assign||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},ql.apply(this,arguments)}function RC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IC(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function MC(e,t,r){return t&&IC(e.prototype,t),e}function FC(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Zl(e,t)}function Zl(e,t){return Zl=Object.setPrototypeOf||function(i,a){return i.__proto__=a,i},Zl(e,t)}function LC(e){var t=DC();return function(){var i=Va(e),a;if(t){var s=Va(this).constructor;a=Reflect.construct(i,arguments,s)}else a=i.apply(this,arguments);return $C(this,a)}}function $C(e,t){return t&&(Qi(t)==="object"||typeof t=="function")?t:Mt(e)}function Mt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function DC(){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 Va(e){return Va=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Va(e)}function Ot(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var kC=function(t){return t.hasOwnProperty("key")},Ef=function(e){FC(r,e);var t=LC(r);function r(i){var a;return RC(this,r),a=t.call(this,i),Ot(Mt(a),"itemsWrapperRef",void 0),Ot(Mt(a),"itemsListRef",void 0),Ot(Mt(a),"thumbsRef",void 0),Ot(Mt(a),"setItemsWrapperRef",function(s){a.itemsWrapperRef=s}),Ot(Mt(a),"setItemsListRef",function(s){a.itemsListRef=s}),Ot(Mt(a),"setThumbsRef",function(s,l){a.thumbsRef||(a.thumbsRef=[]),a.thumbsRef[l]=s}),Ot(Mt(a),"updateSizes",function(){if(!(!a.props.children||!a.itemsWrapperRef||!a.thumbsRef)){var s=mr.Children.count(a.props.children),l=a.itemsWrapperRef.clientWidth,f=a.props.thumbWidth?a.props.thumbWidth:(0,TC.outerWidth)(a.thumbsRef[0]),d=Math.floor(l/f),p=d<s,h=p?s-d:0;a.setState(function(b,v){return{itemSize:f,visibleItems:d,firstItem:p?a.getFirstItem(v.selectedItem):0,lastPosition:h,showArrows:p}})}}),Ot(Mt(a),"handleClickItem",function(s,l,f){if(!kC(f)||f.key==="Enter"){var d=a.props.onSelectItem;typeof d=="function"&&d(s,l)}}),Ot(Mt(a),"onSwipeStart",function(){a.setState({swiping:!0})}),Ot(Mt(a),"onSwipeEnd",function(){a.setState({swiping:!1})}),Ot(Mt(a),"onSwipeMove",function(s){var l=s.x;if(!a.state.itemSize||!a.itemsWrapperRef||!a.state.visibleItems)return!1;var f=0,d=mr.Children.count(a.props.children),p=-(a.state.firstItem*100)/a.state.visibleItems,h=Math.max(d-a.state.visibleItems,0),b=-h*100/a.state.visibleItems;p===f&&l>0&&(l=0),p===b&&l<0&&(l=0);var v=a.itemsWrapperRef.clientWidth,w=p+100/(v/l);return a.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(E){a.itemsListRef.style[E]=(0,Rh.default)(w,"%",a.props.axis)}),!0}),Ot(Mt(a),"slideRight",function(s){a.moveTo(a.state.firstItem-(typeof s=="number"?s:1))}),Ot(Mt(a),"slideLeft",function(s){a.moveTo(a.state.firstItem+(typeof s=="number"?s:1))}),Ot(Mt(a),"moveTo",function(s){s=s<0?0:s,s=s>=a.state.lastPosition?a.state.lastPosition:s,a.setState({firstItem:s})}),a.state={selectedItem:i.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},a}return MC(r,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(a){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==a.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,Ia.default)().addEventListener("resize",this.updateSizes),(0,Ia.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,Ia.default)().removeEventListener("resize",this.updateSizes),(0,Ia.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(a){var s=a;return a>=this.state.lastPosition&&(s=this.state.lastPosition),a<this.state.firstItem+this.state.visibleItems&&(s=this.state.firstItem),a<this.state.firstItem&&(s=a),s}},{key:"renderItems",value:function(){var a=this;return this.props.children.map(function(s,l){var f=Dn.default.ITEM(!1,l===a.state.selectedItem),d={key:l,ref:function(h){return a.setThumbsRef(h,l)},className:f,onClick:a.handleClickItem.bind(a,l,a.props.children[l]),onKeyDown:a.handleClickItem.bind(a,l,a.props.children[l]),"aria-label":"".concat(a.props.labels.item," ").concat(l+1),style:{width:a.props.thumbWidth}};return mr.default.createElement("li",ql({},d,{role:"button",tabIndex:0}),s)})}},{key:"render",value:function(){var a=this;if(!this.props.children)return null;var s=mr.Children.count(this.props.children)>1,l=this.state.showArrows&&this.state.firstItem>0,f=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,d={},p=-this.state.firstItem*(this.state.itemSize||0),h=(0,Rh.default)(p,"px",this.props.axis),b=this.props.transitionTime+"ms";return d={WebkitTransform:h,MozTransform:h,MsTransform:h,OTransform:h,transform:h,msTransform:h,WebkitTransitionDuration:b,MozTransitionDuration:b,MsTransitionDuration:b,OTransitionDuration:b,transitionDuration:b,msTransitionDuration:b},mr.default.createElement("div",{className:Dn.default.CAROUSEL(!1)},mr.default.createElement("div",{className:Dn.default.WRAPPER(!1),ref:this.setItemsWrapperRef},mr.default.createElement("button",{type:"button",className:Dn.default.ARROW_PREV(!l),onClick:function(){return a.slideRight()},"aria-label":this.props.labels.leftArrow}),s?mr.default.createElement(CC.default,{tagName:"ul",className:Dn.default.SLIDER(!1,this.state.swiping),onSwipeLeft:this.slideLeft,onSwipeRight:this.slideRight,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:d,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):mr.default.createElement("ul",{className:Dn.default.SLIDER(!1,this.state.swiping),ref:function(w){return a.setItemsListRef(w)},style:d},this.renderItems()),mr.default.createElement("button",{type:"button",className:Dn.default.ARROW_NEXT(!f),onClick:function(){return a.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),r}(mr.Component);So.default=Ef;Ot(Ef,"displayName","Thumbs");Ot(Ef,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350});var hs={};Object.defineProperty(hs,"__esModule",{value:!0});hs.default=void 0;var NC=function(){return document};hs.default=NC;var Kt={};Object.defineProperty(Kt,"__esModule",{value:!0});Kt.setPosition=Kt.getPosition=Kt.isKeyboardEvent=Kt.defaultStatusFormatter=Kt.noop=void 0;var jC=D,WC=zC(Ai);function zC(e){return e&&e.__esModule?e:{default:e}}var UC=function(){};Kt.noop=UC;var BC=function(t,r){return"".concat(t," of ").concat(r)};Kt.defaultStatusFormatter=BC;var HC=function(t){return t?t.hasOwnProperty("key"):!1};Kt.isKeyboardEvent=HC;var qC=function(t,r){if(r.infiniteLoop&&++t,t===0)return 0;var i=jC.Children.count(r.children);if(r.centerMode&&r.axis==="horizontal"){var a=-t*r.centerSlidePercentage,s=i-1;return t&&(t!==s||r.infiniteLoop)?a+=(100-r.centerSlidePercentage)/2:t===s&&(a+=100-r.centerSlidePercentage),a}return-t*100};Kt.getPosition=qC;var ZC=function(t,r){var i={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(a){i[a]=(0,WC.default)(t,"%",r)}),i};Kt.setPosition=ZC;var Ar={};Object.defineProperty(Ar,"__esModule",{value:!0});Ar.fadeAnimationHandler=Ar.slideStopSwipingHandler=Ar.slideSwipeAnimationHandler=Ar.slideAnimationHandler=void 0;var cm=D,GC=KC(Ai),Tr=Kt;function KC(e){return e&&e.__esModule?e:{default:e}}function Ih(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,i)}return r}function Wn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ih(Object(r),!0).forEach(function(i){YC(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ih(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function YC(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var VC=function(t,r){var i={},a=r.selectedItem,s=a,l=cm.Children.count(t.children)-1,f=t.infiniteLoop&&(a<0||a>l);if(f)return s<0?t.centerMode&&t.centerSlidePercentage&&t.axis==="horizontal"?i.itemListStyle=(0,Tr.setPosition)(-(l+2)*t.centerSlidePercentage-(100-t.centerSlidePercentage)/2,t.axis):i.itemListStyle=(0,Tr.setPosition)(-(l+2)*100,t.axis):s>l&&(i.itemListStyle=(0,Tr.setPosition)(0,t.axis)),i;var d=(0,Tr.getPosition)(a,t),p=(0,GC.default)(d,"%",t.axis),h=t.transitionTime+"ms";return i.itemListStyle={WebkitTransform:p,msTransform:p,OTransform:p,transform:p},r.swiping||(i.itemListStyle=Wn(Wn({},i.itemListStyle),{},{WebkitTransitionDuration:h,MozTransitionDuration:h,OTransitionDuration:h,transitionDuration:h,msTransitionDuration:h})),i};Ar.slideAnimationHandler=VC;var XC=function(t,r,i,a){var s={},l=r.axis==="horizontal",f=cm.Children.count(r.children),d=0,p=(0,Tr.getPosition)(i.selectedItem,r),h=r.infiniteLoop?(0,Tr.getPosition)(f-1,r)-100:(0,Tr.getPosition)(f-1,r),b=l?t.x:t.y,v=b;p===d&&b>0&&(v=0),p===h&&b<0&&(v=0);var w=p+100/(i.itemSize/v),E=Math.abs(b)>r.swipeScrollTolerance;return r.infiniteLoop&&E&&(i.selectedItem===0&&w>-100?w-=f*100:i.selectedItem===f-1&&w<-f*100&&(w+=f*100)),(!r.preventMovementUntilSwipeScrollTolerance||E||i.swipeMovementStarted)&&(i.swipeMovementStarted||a({swipeMovementStarted:!0}),s.itemListStyle=(0,Tr.setPosition)(w,r.axis)),E&&!i.cancelClick&&a({cancelClick:!0}),s};Ar.slideSwipeAnimationHandler=XC;var JC=function(t,r){var i=(0,Tr.getPosition)(r.selectedItem,t),a=(0,Tr.setPosition)(i,t.axis);return{itemListStyle:a}};Ar.slideStopSwipingHandler=JC;var QC=function(t,r){var i=t.transitionTime+"ms",a="ease-in-out",s={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:a,msTransitionTimingFunction:a,MozTransitionTimingFunction:a,WebkitTransitionTimingFunction:a,OTransitionTimingFunction:a};return r.swiping||(s=Wn(Wn({},s),{},{WebkitTransitionDuration:i,MozTransitionDuration:i,OTransitionDuration:i,transitionDuration:i,msTransitionDuration:i})),{slideStyle:s,selectedStyle:Wn(Wn({},s),{},{opacity:1,position:"relative"}),prevStyle:Wn({},s)}};Ar.fadeAnimationHandler=QC;Object.defineProperty(cs,"__esModule",{value:!0});cs.default=void 0;var $e=rP(D),eP=xo(bf),Zr=xo(bo),tP=xo(So),Ma=xo(hs),Fa=xo(Eo),Ki=Kt,Xa=Ar;function xo(e){return e&&e.__esModule?e:{default:e}}function dm(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return dm=function(){return e},e}function rP(e){if(e&&e.__esModule)return e;if(e===null||eo(e)!=="object"&&typeof e!="function")return{default:e};var t=dm();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,t&&t.set(e,r),r}function eo(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?eo=function(r){return typeof r}:eo=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},eo(e)}function Gl(){return Gl=Object.assign||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},Gl.apply(this,arguments)}function Mh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,i)}return r}function gr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mh(Object(r),!0).forEach(function(i){we(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mh(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function nP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iP(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function oP(e,t,r){return t&&iP(e.prototype,t),e}function aP(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Kl(e,t)}function Kl(e,t){return Kl=Object.setPrototypeOf||function(i,a){return i.__proto__=a,i},Kl(e,t)}function sP(e){var t=lP();return function(){var i=Ja(e),a;if(t){var s=Ja(this).constructor;a=Reflect.construct(i,arguments,s)}else a=i.apply(this,arguments);return uP(this,a)}}function uP(e,t){return t&&(eo(t)==="object"||typeof t=="function")?t:Se(e)}function Se(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lP(){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 Ja(e){return Ja=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ja(e)}function we(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var xf=function(e){aP(r,e);var t=sP(r);function r(i){var a;nP(this,r),a=t.call(this,i),we(Se(a),"thumbsRef",void 0),we(Se(a),"carouselWrapperRef",void 0),we(Se(a),"listRef",void 0),we(Se(a),"itemsRef",void 0),we(Se(a),"timer",void 0),we(Se(a),"animationHandler",void 0),we(Se(a),"setThumbsRef",function(l){a.thumbsRef=l}),we(Se(a),"setCarouselWrapperRef",function(l){a.carouselWrapperRef=l}),we(Se(a),"setListRef",function(l){a.listRef=l}),we(Se(a),"setItemsRef",function(l,f){a.itemsRef||(a.itemsRef=[]),a.itemsRef[f]=l}),we(Se(a),"autoPlay",function(){$e.Children.count(a.props.children)<=1||(a.clearAutoPlay(),a.props.autoPlay&&(a.timer=setTimeout(function(){a.increment()},a.props.interval)))}),we(Se(a),"clearAutoPlay",function(){a.timer&&clearTimeout(a.timer)}),we(Se(a),"resetAutoPlay",function(){a.clearAutoPlay(),a.autoPlay()}),we(Se(a),"stopOnHover",function(){a.setState({isMouseEntered:!0},a.clearAutoPlay)}),we(Se(a),"startOnLeave",function(){a.setState({isMouseEntered:!1},a.autoPlay)}),we(Se(a),"isFocusWithinTheCarousel",function(){return a.carouselWrapperRef?!!((0,Ma.default)().activeElement===a.carouselWrapperRef||a.carouselWrapperRef.contains((0,Ma.default)().activeElement)):!1}),we(Se(a),"navigateWithKeyboard",function(l){if(a.isFocusWithinTheCarousel()){var f=a.props.axis,d=f==="horizontal",p={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},h=d?p.ArrowRight:p.ArrowDown,b=d?p.ArrowLeft:p.ArrowUp;h===l.keyCode?a.increment():b===l.keyCode&&a.decrement()}}),we(Se(a),"updateSizes",function(){if(!(!a.state.initialized||!a.itemsRef||a.itemsRef.length===0)){var l=a.props.axis==="horizontal",f=a.itemsRef[0];if(f){var d=l?f.clientWidth:f.clientHeight;a.setState({itemSize:d}),a.thumbsRef&&a.thumbsRef.updateSizes()}}}),we(Se(a),"setMountState",function(){a.setState({hasMount:!0}),a.updateSizes()}),we(Se(a),"handleClickItem",function(l,f){if($e.Children.count(a.props.children)!==0){if(a.state.cancelClick){a.setState({cancelClick:!1});return}a.props.onClickItem(l,f),l!==a.state.selectedItem&&a.setState({selectedItem:l})}}),we(Se(a),"handleOnChange",function(l,f){$e.Children.count(a.props.children)<=1||a.props.onChange(l,f)}),we(Se(a),"handleClickThumb",function(l,f){a.props.onClickThumb(l,f),a.moveTo(l)}),we(Se(a),"onSwipeStart",function(l){a.setState({swiping:!0}),a.props.onSwipeStart(l)}),we(Se(a),"onSwipeEnd",function(l){a.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),a.props.onSwipeEnd(l),a.clearAutoPlay(),a.state.autoPlay&&a.autoPlay()}),we(Se(a),"onSwipeMove",function(l,f){a.props.onSwipeMove(f);var d=a.props.swipeAnimationHandler(l,a.props,a.state,a.setState.bind(Se(a)));return a.setState(gr({},d)),!!Object.keys(d).length}),we(Se(a),"decrement",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;a.moveTo(a.state.selectedItem-(typeof l=="number"?l:1))}),we(Se(a),"increment",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;a.moveTo(a.state.selectedItem+(typeof l=="number"?l:1))}),we(Se(a),"moveTo",function(l){if(typeof l=="number"){var f=$e.Children.count(a.props.children)-1;l<0&&(l=a.props.infiniteLoop?f:0),l>f&&(l=a.props.infiniteLoop?0:f),a.selectItem({selectedItem:l}),a.state.autoPlay&&a.state.isMouseEntered===!1&&a.resetAutoPlay()}}),we(Se(a),"onClickNext",function(){a.increment(1)}),we(Se(a),"onClickPrev",function(){a.decrement(1)}),we(Se(a),"onSwipeForward",function(){a.increment(1),a.props.emulateTouch&&a.setState({cancelClick:!0})}),we(Se(a),"onSwipeBackwards",function(){a.decrement(1),a.props.emulateTouch&&a.setState({cancelClick:!0})}),we(Se(a),"changeItem",function(l){return function(f){(!(0,Ki.isKeyboardEvent)(f)||f.key==="Enter")&&a.moveTo(l)}}),we(Se(a),"selectItem",function(l){a.setState(gr({previousItem:a.state.selectedItem},l),function(){a.setState(a.animationHandler(a.props,a.state))}),a.handleOnChange(l.selectedItem,$e.Children.toArray(a.props.children)[l.selectedItem])}),we(Se(a),"getInitialImage",function(){var l=a.props.selectedItem,f=a.itemsRef&&a.itemsRef[l],d=f&&f.getElementsByTagName("img")||[];return d[0]}),we(Se(a),"getVariableItemHeight",function(l){var f=a.itemsRef&&a.itemsRef[l];if(a.state.hasMount&&f&&f.children.length){var d=f.children[0].getElementsByTagName("img")||[];if(d.length>0){var p=d[0];if(!p.complete){var h=function w(){a.forceUpdate(),p.removeEventListener("load",w)};p.addEventListener("load",h)}}var b=d[0]||f.children[0],v=b.clientHeight;return v>0?v:null}return null});var s={initialized:!1,previousItem:i.selectedItem,selectedItem:i.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:i.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return a.animationHandler=typeof i.animationHandler=="function"&&i.animationHandler||i.animationHandler==="fade"&&Xa.fadeAnimationHandler||Xa.slideAnimationHandler,a.state=gr(gr({},s),a.animationHandler(i,s)),a}return oP(r,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(a,s){!a.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!a.autoFocus&&this.props.autoFocus&&this.forceFocus(),s.swiping&&!this.state.swiping&&this.setState(gr({},this.props.stopSwipingHandler(this.props,this.state))),(a.selectedItem!==this.props.selectedItem||a.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),a.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 a=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 s=a.getInitialImage();s&&!s.complete?s.addEventListener("load",a.setMountState):a.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var a=this.carouselWrapperRef;this.props.stopOnHover&&a&&(a.addEventListener("mouseenter",this.stopOnHover),a.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var a=this.carouselWrapperRef;this.props.stopOnHover&&a&&(a.removeEventListener("mouseenter",this.stopOnHover),a.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,Fa.default)().addEventListener("resize",this.updateSizes),(0,Fa.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,Ma.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,Fa.default)().removeEventListener("resize",this.updateSizes),(0,Fa.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var a=this.getInitialImage();a&&a.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,Ma.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var a;(a=this.carouselWrapperRef)===null||a===void 0||a.focus()}},{key:"renderItems",value:function(a){var s=this;return this.props.children?$e.Children.map(this.props.children,function(l,f){var d=f===s.state.selectedItem,p=f===s.state.previousItem,h=d&&s.state.selectedStyle||p&&s.state.prevStyle||s.state.slideStyle||{};s.props.centerMode&&s.props.axis==="horizontal"&&(h=gr(gr({},h),{},{minWidth:s.props.centerSlidePercentage+"%"})),s.state.swiping&&s.state.swipeMovementStarted&&(h=gr(gr({},h),{},{pointerEvents:"none"}));var b={ref:function(w){return s.setItemsRef(w,f)},key:"itemKey"+f+(a?"clone":""),className:Zr.default.ITEM(!0,f===s.state.selectedItem,f===s.state.previousItem),onClick:s.handleClickItem.bind(s,f,l),style:h};return $e.default.createElement("li",b,s.props.renderItem(l,{isSelected:f===s.state.selectedItem,isPrevious:f===s.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var a=this,s=this.props,l=s.showIndicators,f=s.labels,d=s.renderIndicator,p=s.children;return l?$e.default.createElement("ul",{className:"control-dots"},$e.Children.map(p,function(h,b){return d&&d(a.changeItem(b),b===a.state.selectedItem,b,f.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(tP.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 a=this;if(!this.props.children||$e.Children.count(this.props.children)===0)return null;var s=this.props.swipeable&&$e.Children.count(this.props.children)>1,l=this.props.axis==="horizontal",f=this.props.showArrows&&$e.Children.count(this.props.children)>1,d=f&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,p=f&&(this.state.selectedItem<$e.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,h=this.renderItems(!0),b=h.shift(),v=h.pop(),w={className:Zr.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},E={};if(l){if(w.onSwipeLeft=this.onSwipeForward,w.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var y=this.getVariableItemHeight(this.state.selectedItem);E.height=y||"auto"}}else w.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,w.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,w.style=gr(gr({},w.style),{},{height:this.state.itemSize}),E.height=this.state.itemSize;return $e.default.createElement("div",{"aria-label":this.props.ariaLabel,className:Zr.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},$e.default.createElement("div",{className:Zr.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,d,this.props.labels.leftArrow),$e.default.createElement("div",{className:Zr.default.WRAPPER(!0,this.props.axis),style:E},s?$e.default.createElement(eP.default,Gl({tagName:"ul",innerRef:this.setListRef},w,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&v,this.renderItems(),this.props.infiniteLoop&&b):$e.default.createElement("ul",{className:Zr.default.SLIDER(!0,this.state.swiping),ref:function(A){return a.setListRef(A)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&v,this.renderItems(),this.props.infiniteLoop&&b)),this.props.renderArrowNext(this.onClickNext,p,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),r}($e.default.Component);cs.default=xf;we(xf,"displayName","Carousel");we(xf,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:Ki.noop,onClickThumb:Ki.noop,onChange:Ki.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(t,r,i){return $e.default.createElement("button",{type:"button","aria-label":i,className:Zr.default.ARROW_PREV(!r),onClick:t})},renderArrowNext:function(t,r,i){return $e.default.createElement("button",{type:"button","aria-label":i,className:Zr.default.ARROW_NEXT(!r),onClick:t})},renderIndicator:function(t,r,i,a){return $e.default.createElement("li",{className:Zr.default.DOT(r),onClick:t,onKeyDown:t,value:i,key:i,role:"button",tabIndex:0,"aria-label":"".concat(a," ").concat(i+1)})},renderItem:function(t){return t},renderThumbs:function(t){var r=$e.Children.map(t,function(i){var a=i;if(i.type!=="img"&&(a=$e.Children.toArray(i.props.children).find(function(s){return s.type==="img"})),!!a)return a});return r.filter(function(i){return i}).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"),[]):r},statusFormatter:Ki.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:Xa.slideSwipeAnimationHandler,stopSwipingHandler:Xa.slideStopSwipingHandler});var fP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Carousel",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"CarouselProps",{enumerable:!0,get:function(){return r.CarouselProps}}),Object.defineProperty(e,"Thumbs",{enumerable:!0,get:function(){return i.default}});var t=a(cs),r=fP,i=a(So);function a(s){return s&&s.__esModule?s:{default:s}}})(sm);const cP=({tip:e})=>$.jsx("div",{className:"h-full grid pb-8 px-8 place-content-center",children:pm(e,!0)}),dP=({pages:e})=>$.jsx("div",{className:"min-h-[10rem] w-96",children:$.jsx(sm.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(t=>$.jsx(cP,{tip:t},t.key))})}),pP=({body:e,isInsideCarousel:t})=>$.jsx("article",{className:ft(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-grey-100 ",{"w-60":!t}]),children:$.jsx(Ga,{children:e,options:{overrides:{a:{component:({children:r,...i})=>$.jsxs("a",{...i,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary-dark",children:[r,$.jsx(mt.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),hP=({video:e,body:t,title:r,isInsideCarousel:i})=>$.jsxs("div",{className:ft([{"flex flex-row":!i,"flex max-h-[10rem] flex-col overflow-y-auto":i}]),children:[$.jsx("div",{className:ft([{"mr-1":!i,"mb-1":i}]),children:$.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})}),$.jsx("article",{className:ft(["prose prose-sm p-1 text-left text-xs text-grey-100",{"w-60 overflow-auto":!i,"-mt-6":i}]),children:$.jsx(Ga,{children:t||"",options:{overrides:{a:{component:({children:a,...s})=>$.jsxs("a",{...s,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[a,$.jsx(mt.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),pm=(e,t)=>{switch(e.type){case Ua.TEXT:return $.jsx(pP,{body:e.body,isInsideCarousel:t});case Ua.VIDEO:return $.jsx(hP,{video:e.video,body:e.body,title:e.title,isInsideCarousel:t});case Ua.CAROUSEL:return $.jsx(dP,{pages:e.pages})}},hm=D.createContext(void 0);function Fh(e,t){const r=[];return e.forEach(i=>{i.key===t&&r.push(i)}),r}const vP=({children:e,enabled:t,baseUrl:r="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:i,show:a},s]=D.useState({tips:{},show:!0});D.useEffect(()=>{const f=new AbortController;try{fetch(`${r}/tips.json`,{signal:f.signal}).then(d=>d.json()).then(d=>{const p=d.reduce((h,b)=>Fh(d,b.key).length>1?{...h,[b.key]:{type:"carousel",pages:Fh(d,b.key)}}:{...h,[b.key]:b},{});s(h=>({...h,tips:p}))})}catch{}return()=>{f.abort()}},[]);const l=()=>{s(f=>({...f,show:!a}))};return $.jsx(hm.Provider,{value:{tips:i,toggleTips:l,show:a,enabled:t},children:e})},vm=e=>{const t=D.useContext(hm);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}},mP=Ka(cC)`
75
+ */var ju,Xp;function IT(){if(Xp)return ju;Xp=1;var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(u){if(u==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(u)}function a(){try{if(!Object.assign)return!1;var u=new String("abc");if(u[5]="de",Object.getOwnPropertyNames(u)[0]==="5")return!1;for(var f={},d=0;d<10;d++)f["_"+String.fromCharCode(d)]=d;var w=Object.getOwnPropertyNames(f).map(function(y){return f[y]});if(w.join("")!=="0123456789")return!1;var S={};return"abcdefghijklmnopqrst".split("").forEach(function(y){S[y]=y}),Object.keys(Object.assign({},S)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ju=a()?Object.assign:function(u,f){for(var d,w=o(u),S,y=1;y<arguments.length;y++){d=Object(arguments[y]);for(var h in d)r.call(d,h)&&(w[h]=d[h]);if(e){S=e(d);for(var l=0;l<S.length;l++)n.call(d,S[l])&&(w[S[l]]=d[S[l]])}}return w},ju}var Wu,Jp;function Dl(){if(Jp)return Wu;Jp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Wu=e,Wu}var Uu,Qp;function Xv(){return Qp||(Qp=1,Uu=Function.call.bind(Object.prototype.hasOwnProperty)),Uu}var zu,eh;function LT(){if(eh)return zu;eh=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var r=Dl(),n={},o=Xv();e=function(u){var f="Warning: "+u;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}}}function a(u,f,d,w,S){if(process.env.NODE_ENV!=="production"){for(var y in u)if(o(u,y)){var h;try{if(typeof u[y]!="function"){var l=Error((w||"React class")+": "+d+" type `"+y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof u[y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}h=u[y](f,y,w,d,null,r)}catch(m){h=m}if(h&&!(h instanceof Error)&&e((w||"React class")+": type specification of "+d+" `"+y+"` 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 n)){n[h.message]=!0;var p=S?S():"";e("Failed "+d+" type: "+h.message+(p??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},zu=a,zu}var Bu,th;function FT(){if(th)return Bu;th=1;var e=Yv(),r=IT(),n=Dl(),o=Xv(),a=LT(),u=function(){};process.env.NODE_ENV!=="production"&&(u=function(d){var w="Warning: "+d;typeof console<"u"&&console.error(w);try{throw new Error(w)}catch{}});function f(){return null}return Bu=function(d,w){var S=typeof Symbol=="function"&&Symbol.iterator,y="@@iterator";function h(Z){var ee=Z&&(S&&Z[S]||Z[y]);if(typeof ee=="function")return ee}var l="<<anonymous>>",p={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:_(),arrayOf:x,element:C(),elementType:T(),instanceOf:M,node:X(),objectOf:F,oneOf:H,oneOfType:N,shape:L,exact:z};function m(Z,ee){return Z===ee?Z!==0||1/Z===1/ee:Z!==Z&&ee!==ee}function c(Z,ee){this.message=Z,this.data=ee&&typeof ee=="object"?ee:{},this.stack=""}c.prototype=Error.prototype;function g(Z){if(process.env.NODE_ENV!=="production")var ee={},ae=0;function fe(ce,pe,ye,ge,_e,Ae,Ue){if(ge=ge||l,Ae=Ae||ye,Ue!==n){if(w){var ne=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 ne.name="Invariant Violation",ne}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ct=ge+":"+ye;!ee[ct]&&ae<3&&(u("You are manually calling a React.PropTypes validation function for the `"+Ae+"` prop on `"+ge+"`. 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."),ee[ct]=!0,ae++)}}return pe[ye]==null?ce?pe[ye]===null?new c("The "+_e+" `"+Ae+"` is marked as required "+("in `"+ge+"`, but its value is `null`.")):new c("The "+_e+" `"+Ae+"` is marked as required in "+("`"+ge+"`, but its value is `undefined`.")):null:Z(pe,ye,ge,_e,Ae)}var oe=fe.bind(null,!1);return oe.isRequired=fe.bind(null,!0),oe}function b(Z){function ee(ae,fe,oe,ce,pe,ye){var ge=ae[fe],_e=J(ge);if(_e!==Z){var Ae=V(ge);return new c("Invalid "+ce+" `"+pe+"` of type "+("`"+Ae+"` supplied to `"+oe+"`, expected ")+("`"+Z+"`."),{expectedType:Z})}return null}return g(ee)}function _(){return g(f)}function x(Z){function ee(ae,fe,oe,ce,pe){if(typeof Z!="function")return new c("Property `"+pe+"` of component `"+oe+"` has invalid PropType notation inside arrayOf.");var ye=ae[fe];if(!Array.isArray(ye)){var ge=J(ye);return new c("Invalid "+ce+" `"+pe+"` of type "+("`"+ge+"` supplied to `"+oe+"`, expected an array."))}for(var _e=0;_e<ye.length;_e++){var Ae=Z(ye,_e,oe,ce,pe+"["+_e+"]",n);if(Ae instanceof Error)return Ae}return null}return g(ee)}function C(){function Z(ee,ae,fe,oe,ce){var pe=ee[ae];if(!d(pe)){var ye=J(pe);return new c("Invalid "+oe+" `"+ce+"` of type "+("`"+ye+"` supplied to `"+fe+"`, expected a single ReactElement."))}return null}return g(Z)}function T(){function Z(ee,ae,fe,oe,ce){var pe=ee[ae];if(!e.isValidElementType(pe)){var ye=J(pe);return new c("Invalid "+oe+" `"+ce+"` of type "+("`"+ye+"` supplied to `"+fe+"`, expected a single ReactElement type."))}return null}return g(Z)}function M(Z){function ee(ae,fe,oe,ce,pe){if(!(ae[fe]instanceof Z)){var ye=Z.name||l,ge=le(ae[fe]);return new c("Invalid "+ce+" `"+pe+"` of type "+("`"+ge+"` supplied to `"+oe+"`, expected ")+("instance of `"+ye+"`."))}return null}return g(ee)}function H(Z){if(!Array.isArray(Z))return process.env.NODE_ENV!=="production"&&(arguments.length>1?u("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])."):u("Invalid argument supplied to oneOf, expected an array.")),f;function ee(ae,fe,oe,ce,pe){for(var ye=ae[fe],ge=0;ge<Z.length;ge++)if(m(ye,Z[ge]))return null;var _e=JSON.stringify(Z,function(Ue,ne){var ct=V(ne);return ct==="symbol"?String(ne):ne});return new c("Invalid "+ce+" `"+pe+"` of value `"+String(ye)+"` "+("supplied to `"+oe+"`, expected one of "+_e+"."))}return g(ee)}function F(Z){function ee(ae,fe,oe,ce,pe){if(typeof Z!="function")return new c("Property `"+pe+"` of component `"+oe+"` has invalid PropType notation inside objectOf.");var ye=ae[fe],ge=J(ye);if(ge!=="object")return new c("Invalid "+ce+" `"+pe+"` of type "+("`"+ge+"` supplied to `"+oe+"`, expected an object."));for(var _e in ye)if(o(ye,_e)){var Ae=Z(ye,_e,oe,ce,pe+"."+_e,n);if(Ae instanceof Error)return Ae}return null}return g(ee)}function N(Z){if(!Array.isArray(Z))return process.env.NODE_ENV!=="production"&&u("Invalid argument supplied to oneOfType, expected an instance of array."),f;for(var ee=0;ee<Z.length;ee++){var ae=Z[ee];if(typeof ae!="function")return u("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+te(ae)+" at index "+ee+"."),f}function fe(oe,ce,pe,ye,ge){for(var _e=[],Ae=0;Ae<Z.length;Ae++){var Ue=Z[Ae],ne=Ue(oe,ce,pe,ye,ge,n);if(ne==null)return null;ne.data&&o(ne.data,"expectedType")&&_e.push(ne.data.expectedType)}var ct=_e.length>0?", expected one of type ["+_e.join(", ")+"]":"";return new c("Invalid "+ye+" `"+ge+"` supplied to "+("`"+pe+"`"+ct+"."))}return g(fe)}function X(){function Z(ee,ae,fe,oe,ce){return q(ee[ae])?null:new c("Invalid "+oe+" `"+ce+"` supplied to "+("`"+fe+"`, expected a ReactNode."))}return g(Z)}function j(Z,ee,ae,fe,oe){return new c((Z||"React class")+": "+ee+" type `"+ae+"."+fe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+oe+"`.")}function L(Z){function ee(ae,fe,oe,ce,pe){var ye=ae[fe],ge=J(ye);if(ge!=="object")return new c("Invalid "+ce+" `"+pe+"` of type `"+ge+"` "+("supplied to `"+oe+"`, expected `object`."));for(var _e in Z){var Ae=Z[_e];if(typeof Ae!="function")return j(oe,ce,pe,_e,V(Ae));var Ue=Ae(ye,_e,oe,ce,pe+"."+_e,n);if(Ue)return Ue}return null}return g(ee)}function z(Z){function ee(ae,fe,oe,ce,pe){var ye=ae[fe],ge=J(ye);if(ge!=="object")return new c("Invalid "+ce+" `"+pe+"` of type `"+ge+"` "+("supplied to `"+oe+"`, expected `object`."));var _e=r({},ae[fe],Z);for(var Ae in _e){var Ue=Z[Ae];if(o(Z,Ae)&&typeof Ue!="function")return j(oe,ce,pe,Ae,V(Ue));if(!Ue)return new c("Invalid "+ce+" `"+pe+"` key `"+Ae+"` supplied to `"+oe+"`.\nBad object: "+JSON.stringify(ae[fe],null," ")+`
76
+ Valid keys: `+JSON.stringify(Object.keys(Z),null," "));var ne=Ue(ye,Ae,oe,ce,pe+"."+Ae,n);if(ne)return ne}return null}return g(ee)}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||d(Z))return!0;var ee=h(Z);if(ee){var ae=ee.call(Z),fe;if(ee!==Z.entries){for(;!(fe=ae.next()).done;)if(!q(fe.value))return!1}else for(;!(fe=ae.next()).done;){var oe=fe.value;if(oe&&!q(oe[1]))return!1}}else return!1;return!0;default:return!1}}function R(Z,ee){return Z==="symbol"?!0:ee?ee["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ee instanceof Symbol:!1}function J(Z){var ee=typeof Z;return Array.isArray(Z)?"array":Z instanceof RegExp?"object":R(ee,Z)?"symbol":ee}function V(Z){if(typeof Z>"u"||Z===null)return""+Z;var ee=J(Z);if(ee==="object"){if(Z instanceof Date)return"date";if(Z instanceof RegExp)return"regexp"}return ee}function te(Z){var ee=V(Z);switch(ee){case"array":case"object":return"an "+ee;case"boolean":case"date":case"regexp":return"a "+ee;default:return ee}}function le(Z){return!Z.constructor||!Z.constructor.name?l:Z.constructor.name}return p.checkPropTypes=a,p.resetWarningCache=a.resetWarningCache,p.PropTypes=p,p},Bu}var Hu,rh;function $T(){if(rh)return Hu;rh=1;var e=Dl();function r(){}function n(){}return n.resetWarningCache=r,Hu=function(){function o(f,d,w,S,y,h){if(h!==e){var l=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 l.name="Invariant Violation",l}}o.isRequired=o;function a(){return o}var u={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:a,element:o,elementType:o,instanceOf:a,node:o,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:r};return u.PropTypes=u,u},Hu}var nh;function DT(){if(nh)return ga.exports;if(nh=1,process.env.NODE_ENV!=="production"){var e=Yv(),r=!0;ga.exports=FT()(e.isElement,r)}else ga.exports=$T()();return ga.exports}var ih;function kT(){return ih||(ih=1,function(e){(function(r,n){n(e,U,DT())})(ma,function(r,n,o){Object.defineProperty(r,"__esModule",{value:!0}),r.setHasSupportToCaptureOption=m;var a=f(n),u=f(o);function f(_){return _&&_.__esModule?_:{default:_}}var d=Object.assign||function(_){for(var x=1;x<arguments.length;x++){var C=arguments[x];for(var T in C)Object.prototype.hasOwnProperty.call(C,T)&&(_[T]=C[T])}return _};function w(_,x){var C={};for(var T in _)x.indexOf(T)>=0||Object.prototype.hasOwnProperty.call(_,T)&&(C[T]=_[T]);return C}function S(_,x){if(!(_ instanceof x))throw new TypeError("Cannot call a class as a function")}var y=function(){function _(x,C){for(var T=0;T<C.length;T++){var M=C[T];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(x,M.key,M)}}return function(x,C,T){return C&&_(x.prototype,C),T&&_(x,T),x}}();function h(_,x){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:_}function l(_,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);_.prototype=Object.create(x&&x.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(_,x):_.__proto__=x)}var p=!1;function m(_){p=_}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){m(!0)}}))}catch{}function c(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return p?_:_.capture}function g(_){if("touches"in _){var x=_.touches[0],C=x.pageX,T=x.pageY;return{x:C,y:T}}var M=_.screenX,H=_.screenY;return{x:M,y:H}}var b=function(_){l(x,_);function x(){var C;S(this,x);for(var T=arguments.length,M=Array(T),H=0;H<T;H++)M[H]=arguments[H];var F=h(this,(C=x.__proto__||Object.getPrototypeOf(x)).call.apply(C,[this].concat(M)));return F._handleSwipeStart=F._handleSwipeStart.bind(F),F._handleSwipeMove=F._handleSwipeMove.bind(F),F._handleSwipeEnd=F._handleSwipeEnd.bind(F),F._onMouseDown=F._onMouseDown.bind(F),F._onMouseMove=F._onMouseMove.bind(F),F._onMouseUp=F._onMouseUp.bind(F),F._setSwiperRef=F._setSwiperRef.bind(F),F}return y(x,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,c({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,c({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(T){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(T))}},{key:"_onMouseMove",value:function(T){this.mouseDown&&this._handleSwipeMove(T)}},{key:"_onMouseUp",value:function(T){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(T)}},{key:"_handleSwipeStart",value:function(T){var M=g(T),H=M.x,F=M.y;this.moveStart={x:H,y:F},this.props.onSwipeStart(T)}},{key:"_handleSwipeMove",value:function(T){if(this.moveStart){var M=g(T),H=M.x,F=M.y,N=H-this.moveStart.x,X=F-this.moveStart.y;this.moving=!0;var j=this.props.onSwipeMove({x:N,y:X},T);j&&T.cancelable&&T.preventDefault(),this.movePosition={deltaX:N,deltaY:X}}}},{key:"_handleSwipeEnd",value:function(T){this.props.onSwipeEnd(T);var M=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-M?this.props.onSwipeLeft(1,T):this.movePosition.deltaX>M&&this.props.onSwipeRight(1,T),this.movePosition.deltaY<-M?this.props.onSwipeUp(1,T):this.movePosition.deltaY>M&&this.props.onSwipeDown(1,T)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(T){this.swiper=T,this.props.innerRef(T)}},{key:"render",value:function(){var T=this.props;T.tagName;var M=T.className,H=T.style,F=T.children;T.allowMouseEvents,T.onSwipeUp,T.onSwipeDown,T.onSwipeLeft,T.onSwipeRight,T.onSwipeStart,T.onSwipeMove,T.onSwipeEnd,T.innerRef,T.tolerance;var N=w(T,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return a.default.createElement(this.props.tagName,d({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:M,style:H},N),F)}}]),x}(n.Component);b.displayName="ReactSwipe",b.propTypes={tagName:u.default.string,className:u.default.string,style:u.default.object,children:u.default.node,allowMouseEvents:u.default.bool,onSwipeUp:u.default.func,onSwipeDown:u.default.func,onSwipeLeft:u.default.func,onSwipeRight:u.default.func,onSwipeStart:u.default.func,onSwipeMove:u.default.func,onSwipeEnd:u.default.func,innerRef:u.default.func,tolerance:u.default.number.isRequired},b.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},r.default=b})}(ma)),ma}var oh;function Jv(){return oh||(oh=1,function(e){(function(r,n){n(e,kT())})(va,function(r,n){Object.defineProperty(r,"__esModule",{value:!0});var o=a(n);function a(u){return u&&u.__esModule?u:{default:u}}r.default=o.default})}(va)),va}var Ni={},ah;function Qv(){if(ah)return Ni;ah=1,Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.default=void 0;var e=r(nv());function r(a){return a&&a.__esModule?a:{default:a}}function n(a,u,f){return u in a?Object.defineProperty(a,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):a[u]=f,a}var o={ROOT:function(u){return(0,e.default)(n({"carousel-root":!0},u||"",!!u))},CAROUSEL:function(u){return(0,e.default)({carousel:!0,"carousel-slider":u})},WRAPPER:function(u,f){return(0,e.default)({"thumbs-wrapper":!u,"slider-wrapper":u,"axis-horizontal":f==="horizontal","axis-vertical":f!=="horizontal"})},SLIDER:function(u,f){return(0,e.default)({thumbs:!u,slider:u,animated:!f})},ITEM:function(u,f,d){return(0,e.default)({thumb:!u,slide:u,selected:f,previous:d})},ARROW_PREV:function(u){return(0,e.default)({"control-arrow control-prev":!0,"control-disabled":u})},ARROW_NEXT:function(u){return(0,e.default)({"control-arrow control-next":!0,"control-disabled":u})},DOT:function(u){return(0,e.default)({dot:!0,selected:u})}};return Ni.default=o,Ni}var ji={},Wi={},sh;function NT(){if(sh)return Wi;sh=1,Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.outerWidth=void 0;var e=function(n){var o=n.offsetWidth,a=getComputedStyle(n);return o+=parseInt(a.marginLeft)+parseInt(a.marginRight),o};return Wi.outerWidth=e,Wi}var Ui={},uh;function kl(){if(uh)return Ui;uh=1,Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.default=void 0;var e=function(n,o,a){var u=n===0?n:n+o,f=a==="horizontal"?[u,0,0]:[0,u,0],d="translate3d",w="("+f.join(",")+")";return d+w};return Ui.default=e,Ui}var zi={},lh;function em(){if(lh)return zi;lh=1,Object.defineProperty(zi,"__esModule",{value:!0}),zi.default=void 0;var e=function(){return window};return zi.default=e,zi}var fh;function tm(){if(fh)return ji;fh=1,Object.defineProperty(ji,"__esModule",{value:!0}),ji.default=void 0;var e=w(U),r=f(Qv()),n=NT(),o=f(kl()),a=f(Jv()),u=f(em());function f(F){return F&&F.__esModule?F:{default:F}}function d(){if(typeof WeakMap!="function")return null;var F=new WeakMap;return d=function(){return F},F}function w(F){if(F&&F.__esModule)return F;if(F===null||S(F)!=="object"&&typeof F!="function")return{default:F};var N=d();if(N&&N.has(F))return N.get(F);var X={},j=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var L in F)if(Object.prototype.hasOwnProperty.call(F,L)){var z=j?Object.getOwnPropertyDescriptor(F,L):null;z&&(z.get||z.set)?Object.defineProperty(X,L,z):X[L]=F[L]}return X.default=F,N&&N.set(F,X),X}function S(F){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(X){return typeof X}:S=function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},S(F)}function y(){return y=Object.assign||function(F){for(var N=1;N<arguments.length;N++){var X=arguments[N];for(var j in X)Object.prototype.hasOwnProperty.call(X,j)&&(F[j]=X[j])}return F},y.apply(this,arguments)}function h(F,N){if(!(F instanceof N))throw new TypeError("Cannot call a class as a function")}function l(F,N){for(var X=0;X<N.length;X++){var j=N[X];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(F,j.key,j)}}function p(F,N,X){return N&&l(F.prototype,N),F}function m(F,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function");F.prototype=Object.create(N&&N.prototype,{constructor:{value:F,writable:!0,configurable:!0}}),N&&c(F,N)}function c(F,N){return c=Object.setPrototypeOf||function(j,L){return j.__proto__=L,j},c(F,N)}function g(F){var N=x();return function(){var j=C(F),L;if(N){var z=C(this).constructor;L=Reflect.construct(j,arguments,z)}else L=j.apply(this,arguments);return b(this,L)}}function b(F,N){return N&&(S(N)==="object"||typeof N=="function")?N:_(F)}function _(F){if(F===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}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 C(F){return C=Object.setPrototypeOf?Object.getPrototypeOf:function(X){return X.__proto__||Object.getPrototypeOf(X)},C(F)}function T(F,N,X){return N in F?Object.defineProperty(F,N,{value:X,enumerable:!0,configurable:!0,writable:!0}):F[N]=X,F}var M=function(N){return N.hasOwnProperty("key")},H=function(F){m(X,F);var N=g(X);function X(j){var L;return h(this,X),L=N.call(this,j),T(_(L),"itemsWrapperRef",void 0),T(_(L),"itemsListRef",void 0),T(_(L),"thumbsRef",void 0),T(_(L),"setItemsWrapperRef",function(z){L.itemsWrapperRef=z}),T(_(L),"setItemsListRef",function(z){L.itemsListRef=z}),T(_(L),"setThumbsRef",function(z,q){L.thumbsRef||(L.thumbsRef=[]),L.thumbsRef[q]=z}),T(_(L),"updateSizes",function(){if(!(!L.props.children||!L.itemsWrapperRef||!L.thumbsRef)){var z=e.Children.count(L.props.children),q=L.itemsWrapperRef.clientWidth,R=L.props.thumbWidth?L.props.thumbWidth:(0,n.outerWidth)(L.thumbsRef[0]),J=Math.floor(q/R),V=J<z,te=V?z-J:0;L.setState(function(le,Z){return{itemSize:R,visibleItems:J,firstItem:V?L.getFirstItem(Z.selectedItem):0,lastPosition:te,showArrows:V}})}}),T(_(L),"handleClickItem",function(z,q,R){if(!M(R)||R.key==="Enter"){var J=L.props.onSelectItem;typeof J=="function"&&J(z,q)}}),T(_(L),"onSwipeStart",function(){L.setState({swiping:!0})}),T(_(L),"onSwipeEnd",function(){L.setState({swiping:!1})}),T(_(L),"onSwipeMove",function(z){var q=z.x;if(!L.state.itemSize||!L.itemsWrapperRef||!L.state.visibleItems)return!1;var R=0,J=e.Children.count(L.props.children),V=-(L.state.firstItem*100)/L.state.visibleItems,te=Math.max(J-L.state.visibleItems,0),le=-te*100/L.state.visibleItems;V===R&&q>0&&(q=0),V===le&&q<0&&(q=0);var Z=L.itemsWrapperRef.clientWidth,ee=V+100/(Z/q);return L.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(ae){L.itemsListRef.style[ae]=(0,o.default)(ee,"%",L.props.axis)}),!0}),T(_(L),"slideRight",function(z){L.moveTo(L.state.firstItem-(typeof z=="number"?z:1))}),T(_(L),"slideLeft",function(z){L.moveTo(L.state.firstItem+(typeof z=="number"?z:1))}),T(_(L),"moveTo",function(z){z=z<0?0:z,z=z>=L.state.lastPosition?L.state.lastPosition:z,L.setState({firstItem:z})}),L.state={selectedItem:j.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},L}return p(X,[{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,u.default)().addEventListener("resize",this.updateSizes),(0,u.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,u.default)().removeEventListener("resize",this.updateSizes),(0,u.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(L){var z=L;return L>=this.state.lastPosition&&(z=this.state.lastPosition),L<this.state.firstItem+this.state.visibleItems&&(z=this.state.firstItem),L<this.state.firstItem&&(z=L),z}},{key:"renderItems",value:function(){var L=this;return this.props.children.map(function(z,q){var R=r.default.ITEM(!1,q===L.state.selectedItem),J={key:q,ref:function(te){return L.setThumbsRef(te,q)},className:R,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",y({},J,{role:"button",tabIndex:0}),z)})}},{key:"render",value:function(){var L=this;if(!this.props.children)return null;var z=e.Children.count(this.props.children)>1,q=this.state.showArrows&&this.state.firstItem>0,R=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,J={},V=-this.state.firstItem*(this.state.itemSize||0),te=(0,o.default)(V,"px",this.props.axis),le=this.props.transitionTime+"ms";return J={WebkitTransform:te,MozTransform:te,MsTransform:te,OTransform:te,transform:te,msTransform:te,WebkitTransitionDuration:le,MozTransitionDuration:le,MsTransitionDuration:le,OTransitionDuration:le,transitionDuration:le,msTransitionDuration:le},e.default.createElement("div",{className:r.default.CAROUSEL(!1)},e.default.createElement("div",{className:r.default.WRAPPER(!1),ref:this.setItemsWrapperRef},e.default.createElement("button",{type:"button",className:r.default.ARROW_PREV(!q),onClick:function(){return L.slideRight()},"aria-label":this.props.labels.leftArrow}),z?e.default.createElement(a.default,{tagName:"ul",className:r.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:r.default.SLIDER(!1,this.state.swiping),ref:function(ee){return L.setItemsListRef(ee)},style:J},this.renderItems()),e.default.createElement("button",{type:"button",className:r.default.ARROW_NEXT(!R),onClick:function(){return L.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),X}(e.Component);return ji.default=H,T(H,"displayName","Thumbs"),T(H,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350}),ji}var Bi={},ch;function jT(){if(ch)return Bi;ch=1,Object.defineProperty(Bi,"__esModule",{value:!0}),Bi.default=void 0;var e=function(){return document};return Bi.default=e,Bi}var $t={},dh;function rm(){if(dh)return $t;dh=1,Object.defineProperty($t,"__esModule",{value:!0}),$t.setPosition=$t.getPosition=$t.isKeyboardEvent=$t.defaultStatusFormatter=$t.noop=void 0;var e=U,r=n(kl());function n(w){return w&&w.__esModule?w:{default:w}}var o=function(){};$t.noop=o;var a=function(S,y){return"".concat(S," of ").concat(y)};$t.defaultStatusFormatter=a;var u=function(S){return S?S.hasOwnProperty("key"):!1};$t.isKeyboardEvent=u;var f=function(S,y){if(y.infiniteLoop&&++S,S===0)return 0;var h=e.Children.count(y.children);if(y.centerMode&&y.axis==="horizontal"){var l=-S*y.centerSlidePercentage,p=h-1;return S&&(S!==p||y.infiniteLoop)?l+=(100-y.centerSlidePercentage)/2:S===p&&(l+=100-y.centerSlidePercentage),l}return-S*100};$t.getPosition=f;var d=function(S,y){var h={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(l){h[l]=(0,r.default)(S,"%",y)}),h};return $t.setPosition=d,$t}var rr={},ph;function WT(){if(ph)return rr;ph=1,Object.defineProperty(rr,"__esModule",{value:!0}),rr.fadeAnimationHandler=rr.slideStopSwipingHandler=rr.slideSwipeAnimationHandler=rr.slideAnimationHandler=void 0;var e=U,r=o(kl()),n=rm();function o(h){return h&&h.__esModule?h:{default:h}}function a(h,l){var p=Object.keys(h);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(h);l&&(m=m.filter(function(c){return Object.getOwnPropertyDescriptor(h,c).enumerable})),p.push.apply(p,m)}return p}function u(h){for(var l=1;l<arguments.length;l++){var p=arguments[l]!=null?arguments[l]:{};l%2?a(Object(p),!0).forEach(function(m){f(h,m,p[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(p)):a(Object(p)).forEach(function(m){Object.defineProperty(h,m,Object.getOwnPropertyDescriptor(p,m))})}return h}function f(h,l,p){return l in h?Object.defineProperty(h,l,{value:p,enumerable:!0,configurable:!0,writable:!0}):h[l]=p,h}var d=function(l,p){var m={},c=p.selectedItem,g=c,b=e.Children.count(l.children)-1,_=l.infiniteLoop&&(c<0||c>b);if(_)return g<0?l.centerMode&&l.centerSlidePercentage&&l.axis==="horizontal"?m.itemListStyle=(0,n.setPosition)(-(b+2)*l.centerSlidePercentage-(100-l.centerSlidePercentage)/2,l.axis):m.itemListStyle=(0,n.setPosition)(-(b+2)*100,l.axis):g>b&&(m.itemListStyle=(0,n.setPosition)(0,l.axis)),m;var x=(0,n.getPosition)(c,l),C=(0,r.default)(x,"%",l.axis),T=l.transitionTime+"ms";return m.itemListStyle={WebkitTransform:C,msTransform:C,OTransform:C,transform:C},p.swiping||(m.itemListStyle=u(u({},m.itemListStyle),{},{WebkitTransitionDuration:T,MozTransitionDuration:T,OTransitionDuration:T,transitionDuration:T,msTransitionDuration:T})),m};rr.slideAnimationHandler=d;var w=function(l,p,m,c){var g={},b=p.axis==="horizontal",_=e.Children.count(p.children),x=0,C=(0,n.getPosition)(m.selectedItem,p),T=p.infiniteLoop?(0,n.getPosition)(_-1,p)-100:(0,n.getPosition)(_-1,p),M=b?l.x:l.y,H=M;C===x&&M>0&&(H=0),C===T&&M<0&&(H=0);var F=C+100/(m.itemSize/H),N=Math.abs(M)>p.swipeScrollTolerance;return p.infiniteLoop&&N&&(m.selectedItem===0&&F>-100?F-=_*100:m.selectedItem===_-1&&F<-_*100&&(F+=_*100)),(!p.preventMovementUntilSwipeScrollTolerance||N||m.swipeMovementStarted)&&(m.swipeMovementStarted||c({swipeMovementStarted:!0}),g.itemListStyle=(0,n.setPosition)(F,p.axis)),N&&!m.cancelClick&&c({cancelClick:!0}),g};rr.slideSwipeAnimationHandler=w;var S=function(l,p){var m=(0,n.getPosition)(p.selectedItem,l),c=(0,n.setPosition)(m,l.axis);return{itemListStyle:c}};rr.slideStopSwipingHandler=S;var y=function(l,p){var m=l.transitionTime+"ms",c="ease-in-out",g={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:c,msTransitionTimingFunction:c,MozTransitionTimingFunction:c,WebkitTransitionTimingFunction:c,OTransitionTimingFunction:c};return p.swiping||(g=u(u({},g),{},{WebkitTransitionDuration:m,MozTransitionDuration:m,OTransitionDuration:m,transitionDuration:m,msTransitionDuration:m})),{slideStyle:g,selectedStyle:u(u({},g),{},{opacity:1,position:"relative"}),prevStyle:u({},g)}};return rr.fadeAnimationHandler=y,rr}var hh;function UT(){if(hh)return ki;hh=1,Object.defineProperty(ki,"__esModule",{value:!0}),ki.default=void 0;var e=y(U),r=w(Jv()),n=w(Qv()),o=w(tm()),a=w(jT()),u=w(em()),f=rm(),d=WT();function w(j){return j&&j.__esModule?j:{default:j}}function S(){if(typeof WeakMap!="function")return null;var j=new WeakMap;return S=function(){return j},j}function y(j){if(j&&j.__esModule)return j;if(j===null||h(j)!=="object"&&typeof j!="function")return{default:j};var L=S();if(L&&L.has(j))return L.get(j);var z={},q=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var R in j)if(Object.prototype.hasOwnProperty.call(j,R)){var J=q?Object.getOwnPropertyDescriptor(j,R):null;J&&(J.get||J.set)?Object.defineProperty(z,R,J):z[R]=j[R]}return z.default=j,L&&L.set(j,z),z}function h(j){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?h=function(z){return typeof z}:h=function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},h(j)}function l(){return l=Object.assign||function(j){for(var L=1;L<arguments.length;L++){var z=arguments[L];for(var q in z)Object.prototype.hasOwnProperty.call(z,q)&&(j[q]=z[q])}return j},l.apply(this,arguments)}function p(j,L){var z=Object.keys(j);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(j);L&&(q=q.filter(function(R){return Object.getOwnPropertyDescriptor(j,R).enumerable})),z.push.apply(z,q)}return z}function m(j){for(var L=1;L<arguments.length;L++){var z=arguments[L]!=null?arguments[L]:{};L%2?p(Object(z),!0).forEach(function(q){N(j,q,z[q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(z)):p(Object(z)).forEach(function(q){Object.defineProperty(j,q,Object.getOwnPropertyDescriptor(z,q))})}return j}function c(j,L){if(!(j instanceof L))throw new TypeError("Cannot call a class as a function")}function g(j,L){for(var z=0;z<L.length;z++){var q=L[z];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(j,q.key,q)}}function b(j,L,z){return L&&g(j.prototype,L),j}function _(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&&x(j,L)}function x(j,L){return x=Object.setPrototypeOf||function(q,R){return q.__proto__=R,q},x(j,L)}function C(j){var L=H();return function(){var q=F(j),R;if(L){var J=F(this).constructor;R=Reflect.construct(q,arguments,J)}else R=q.apply(this,arguments);return T(this,R)}}function T(j,L){return L&&(h(L)==="object"||typeof L=="function")?L:M(j)}function M(j){if(j===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j}function H(){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 F(j){return F=Object.setPrototypeOf?Object.getPrototypeOf:function(z){return z.__proto__||Object.getPrototypeOf(z)},F(j)}function N(j,L,z){return L in j?Object.defineProperty(j,L,{value:z,enumerable:!0,configurable:!0,writable:!0}):j[L]=z,j}var X=function(j){_(z,j);var L=C(z);function z(q){var R;c(this,z),R=L.call(this,q),N(M(R),"thumbsRef",void 0),N(M(R),"carouselWrapperRef",void 0),N(M(R),"listRef",void 0),N(M(R),"itemsRef",void 0),N(M(R),"timer",void 0),N(M(R),"animationHandler",void 0),N(M(R),"setThumbsRef",function(V){R.thumbsRef=V}),N(M(R),"setCarouselWrapperRef",function(V){R.carouselWrapperRef=V}),N(M(R),"setListRef",function(V){R.listRef=V}),N(M(R),"setItemsRef",function(V,te){R.itemsRef||(R.itemsRef=[]),R.itemsRef[te]=V}),N(M(R),"autoPlay",function(){e.Children.count(R.props.children)<=1||(R.clearAutoPlay(),R.props.autoPlay&&(R.timer=setTimeout(function(){R.increment()},R.props.interval)))}),N(M(R),"clearAutoPlay",function(){R.timer&&clearTimeout(R.timer)}),N(M(R),"resetAutoPlay",function(){R.clearAutoPlay(),R.autoPlay()}),N(M(R),"stopOnHover",function(){R.setState({isMouseEntered:!0},R.clearAutoPlay)}),N(M(R),"startOnLeave",function(){R.setState({isMouseEntered:!1},R.autoPlay)}),N(M(R),"isFocusWithinTheCarousel",function(){return R.carouselWrapperRef?!!((0,a.default)().activeElement===R.carouselWrapperRef||R.carouselWrapperRef.contains((0,a.default)().activeElement)):!1}),N(M(R),"navigateWithKeyboard",function(V){if(R.isFocusWithinTheCarousel()){var te=R.props.axis,le=te==="horizontal",Z={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},ee=le?Z.ArrowRight:Z.ArrowDown,ae=le?Z.ArrowLeft:Z.ArrowUp;ee===V.keyCode?R.increment():ae===V.keyCode&&R.decrement()}}),N(M(R),"updateSizes",function(){if(!(!R.state.initialized||!R.itemsRef||R.itemsRef.length===0)){var V=R.props.axis==="horizontal",te=R.itemsRef[0];if(te){var le=V?te.clientWidth:te.clientHeight;R.setState({itemSize:le}),R.thumbsRef&&R.thumbsRef.updateSizes()}}}),N(M(R),"setMountState",function(){R.setState({hasMount:!0}),R.updateSizes()}),N(M(R),"handleClickItem",function(V,te){if(e.Children.count(R.props.children)!==0){if(R.state.cancelClick){R.setState({cancelClick:!1});return}R.props.onClickItem(V,te),V!==R.state.selectedItem&&R.setState({selectedItem:V})}}),N(M(R),"handleOnChange",function(V,te){e.Children.count(R.props.children)<=1||R.props.onChange(V,te)}),N(M(R),"handleClickThumb",function(V,te){R.props.onClickThumb(V,te),R.moveTo(V)}),N(M(R),"onSwipeStart",function(V){R.setState({swiping:!0}),R.props.onSwipeStart(V)}),N(M(R),"onSwipeEnd",function(V){R.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),R.props.onSwipeEnd(V),R.clearAutoPlay(),R.state.autoPlay&&R.autoPlay()}),N(M(R),"onSwipeMove",function(V,te){R.props.onSwipeMove(te);var le=R.props.swipeAnimationHandler(V,R.props,R.state,R.setState.bind(M(R)));return R.setState(m({},le)),!!Object.keys(le).length}),N(M(R),"decrement",function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;R.moveTo(R.state.selectedItem-(typeof V=="number"?V:1))}),N(M(R),"increment",function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;R.moveTo(R.state.selectedItem+(typeof V=="number"?V:1))}),N(M(R),"moveTo",function(V){if(typeof V=="number"){var te=e.Children.count(R.props.children)-1;V<0&&(V=R.props.infiniteLoop?te:0),V>te&&(V=R.props.infiniteLoop?0:te),R.selectItem({selectedItem:V}),R.state.autoPlay&&R.state.isMouseEntered===!1&&R.resetAutoPlay()}}),N(M(R),"onClickNext",function(){R.increment(1)}),N(M(R),"onClickPrev",function(){R.decrement(1)}),N(M(R),"onSwipeForward",function(){R.increment(1),R.props.emulateTouch&&R.setState({cancelClick:!0})}),N(M(R),"onSwipeBackwards",function(){R.decrement(1),R.props.emulateTouch&&R.setState({cancelClick:!0})}),N(M(R),"changeItem",function(V){return function(te){(!(0,f.isKeyboardEvent)(te)||te.key==="Enter")&&R.moveTo(V)}}),N(M(R),"selectItem",function(V){R.setState(m({previousItem:R.state.selectedItem},V),function(){R.setState(R.animationHandler(R.props,R.state))}),R.handleOnChange(V.selectedItem,e.Children.toArray(R.props.children)[V.selectedItem])}),N(M(R),"getInitialImage",function(){var V=R.props.selectedItem,te=R.itemsRef&&R.itemsRef[V],le=te&&te.getElementsByTagName("img")||[];return le[0]}),N(M(R),"getVariableItemHeight",function(V){var te=R.itemsRef&&R.itemsRef[V];if(R.state.hasMount&&te&&te.children.length){var le=te.children[0].getElementsByTagName("img")||[];if(le.length>0){var Z=le[0];if(!Z.complete){var ee=function oe(){R.forceUpdate(),Z.removeEventListener("load",oe)};Z.addEventListener("load",ee)}}var ae=le[0]||te.children[0],fe=ae.clientHeight;return fe>0?fe: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 R.animationHandler=typeof q.animationHandler=="function"&&q.animationHandler||q.animationHandler==="fade"&&d.fadeAnimationHandler||d.slideAnimationHandler,R.state=m(m({},J),R.animationHandler(q,J)),R}return b(z,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(R,J){!R.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!R.autoFocus&&this.props.autoFocus&&this.forceFocus(),J.swiping&&!this.state.swiping&&this.setState(m({},this.props.stopSwipingHandler(this.props,this.state))),(R.selectedItem!==this.props.selectedItem||R.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),R.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 R=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=R.getInitialImage();J&&!J.complete?J.addEventListener("load",R.setMountState):R.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var R=this.carouselWrapperRef;this.props.stopOnHover&&R&&(R.addEventListener("mouseenter",this.stopOnHover),R.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var R=this.carouselWrapperRef;this.props.stopOnHover&&R&&(R.removeEventListener("mouseenter",this.stopOnHover),R.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,u.default)().addEventListener("resize",this.updateSizes),(0,u.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,a.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,u.default)().removeEventListener("resize",this.updateSizes),(0,u.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var R=this.getInitialImage();R&&R.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,a.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var R;(R=this.carouselWrapperRef)===null||R===void 0||R.focus()}},{key:"renderItems",value:function(R){var J=this;return this.props.children?e.Children.map(this.props.children,function(V,te){var le=te===J.state.selectedItem,Z=te===J.state.previousItem,ee=le&&J.state.selectedStyle||Z&&J.state.prevStyle||J.state.slideStyle||{};J.props.centerMode&&J.props.axis==="horizontal"&&(ee=m(m({},ee),{},{minWidth:J.props.centerSlidePercentage+"%"})),J.state.swiping&&J.state.swipeMovementStarted&&(ee=m(m({},ee),{},{pointerEvents:"none"}));var ae={ref:function(oe){return J.setItemsRef(oe,te)},key:"itemKey"+te+(R?"clone":""),className:n.default.ITEM(!0,te===J.state.selectedItem,te===J.state.previousItem),onClick:J.handleClickItem.bind(J,te,V),style:ee};return e.default.createElement("li",ae,J.props.renderItem(V,{isSelected:te===J.state.selectedItem,isPrevious:te===J.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var R=this,J=this.props,V=J.showIndicators,te=J.labels,le=J.renderIndicator,Z=J.children;return V?e.default.createElement("ul",{className:"control-dots"},e.Children.map(Z,function(ee,ae){return le&&le(R.changeItem(ae),ae===R.state.selectedItem,ae,te.item)})):null}},{key:"renderStatus",value:function(){return this.props.showStatus?e.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,e.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return!this.props.showThumbs||!this.props.children||e.Children.count(this.props.children)===0?null:e.default.createElement(o.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 R=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,V=this.props.axis==="horizontal",te=this.props.showArrows&&e.Children.count(this.props.children)>1,le=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,ee=this.renderItems(!0),ae=ee.shift(),fe=ee.pop(),oe={className:n.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(V){if(oe.onSwipeLeft=this.onSwipeForward,oe.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var pe=this.getVariableItemHeight(this.state.selectedItem);ce.height=pe||"auto"}}else oe.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,oe.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,oe.style=m(m({},oe.style),{},{height:this.state.itemSize}),ce.height=this.state.itemSize;return e.default.createElement("div",{"aria-label":this.props.ariaLabel,className:n.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},e.default.createElement("div",{className:n.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,le,this.props.labels.leftArrow),e.default.createElement("div",{className:n.default.WRAPPER(!0,this.props.axis),style:ce},J?e.default.createElement(r.default,l({tagName:"ul",innerRef:this.setListRef},oe,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&fe,this.renderItems(),this.props.infiniteLoop&&ae):e.default.createElement("ul",{className:n.default.SLIDER(!0,this.state.swiping),ref:function(ge){return R.setListRef(ge)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&fe,this.renderItems(),this.props.infiniteLoop&&ae)),this.props.renderArrowNext(this.onClickNext,Z,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),z}(e.default.Component);return ki.default=X,N(X,"displayName","Carousel"),N(X,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:f.noop,onClickThumb:f.noop,onChange:f.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(L,z,q){return e.default.createElement("button",{type:"button","aria-label":q,className:n.default.ARROW_PREV(!z),onClick:L})},renderArrowNext:function(L,z,q){return e.default.createElement("button",{type:"button","aria-label":q,className:n.default.ARROW_NEXT(!z),onClick:L})},renderIndicator:function(L,z,q,R){return e.default.createElement("li",{className:n.default.DOT(z),onClick:L,onKeyDown:L,value:q,key:q,role:"button",tabIndex:0,"aria-label":"".concat(R," ").concat(q+1)})},renderItem:function(L){return L},renderThumbs:function(L){var z=e.Children.map(L,function(q){var R=q;if(q.type!=="img"&&(R=e.Children.toArray(q.props.children).find(function(J){return J.type==="img"})),!!R)return R});return z.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"),[]):z},statusFormatter:f.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:d.slideSwipeAnimationHandler,stopSwipingHandler:d.slideStopSwipingHandler}),ki}var vh={},mh;function zT(){return mh||(mh=1),vh}var gh;function BT(){return gh||(gh=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Carousel",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"CarouselProps",{enumerable:!0,get:function(){return n.CarouselProps}}),Object.defineProperty(e,"Thumbs",{enumerable:!0,get:function(){return o.default}});var r=a(UT()),n=zT(),o=a(tm());function a(u){return u&&u.__esModule?u:{default:u}}}(Nu)),Nu}var HT=BT();const qT=({tip:e})=>W.jsx("div",{className:"h-full grid pb-8 px-8 place-content-center",children:nm(e,!0)}),ZT=({pages:e})=>W.jsx("div",{className:"min-h-[10rem] w-96",children:W.jsx(HT.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(r=>W.jsx(qT,{tip:r},r.key))})}),GT=({body:e,isInsideCarousel:r})=>W.jsx("article",{className:it(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-grey-100 ",{"w-60":!r}]),children:W.jsx(Ia,{children:e,options:{overrides:{a:{component:({children:n,...o})=>W.jsxs("a",{...o,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary-dark",children:[n,W.jsx(ft.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),KT=({video:e,body:r,title:n,isInsideCarousel:o})=>W.jsxs("div",{className:it([{"flex flex-row":!o,"flex max-h-[10rem] flex-col overflow-y-auto":o}]),children:[W.jsx("div",{className:it([{"mr-1":!o,"mb-1":o}]),children:W.jsx("iframe",{height:o?"auto":90,width:o?"100%":160,src:e==null?void 0:e.link,title:n,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}),W.jsx("article",{className:it(["prose prose-sm p-1 text-left text-xs text-grey-100",{"w-60 overflow-auto":!o,"-mt-6":o}]),children:W.jsx(Ia,{children:r||"",options:{overrides:{a:{component:({children:a,...u})=>W.jsxs("a",{...u,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[a,W.jsx(ft.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),nm=(e,r)=>{switch(e.type){case Ca.TEXT:return W.jsx(GT,{body:e.body,isInsideCarousel:r});case Ca.VIDEO:return W.jsx(KT,{video:e.video,body:e.body,title:e.title,isInsideCarousel:r});case Ca.CAROUSEL:return W.jsx(ZT,{pages:e.pages})}},im=U.createContext(void 0);function yh(e,r){const n=[];return e.forEach(o=>{o.key===r&&n.push(o)}),n}const VT=({children:e,enabled:r,baseUrl:n="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:o,show:a},u]=U.useState({tips:{},show:!0});U.useEffect(()=>{const d=new AbortController;try{fetch(`${n}/tips.json`,{signal:d.signal}).then(w=>w.json()).then(w=>{const S=w.reduce((y,h)=>yh(w,h.key).length>1?{...y,[h.key]:{type:"carousel",pages:yh(w,h.key)}}:{...y,[h.key]:h},{});u(y=>({...y,tips:S}))})}catch{}return()=>{d.abort()}},[]);const f=()=>{u(d=>({...d,show:!a}))};return W.jsx(im.Provider,{value:{tips:o,toggleTips:f,show:a,enabled:r},children:e})},om=e=>{const r=U.useContext(im);if(r===void 0)throw new Error("useTip must be used within a TipsContext");return{tip:e?r.tips[e]:null,toggleTips:r.toggleTips,show:r.show,enabled:r.enabled}},YT=La(CT)`
90
77
  &[data-state='open'] > * {
91
78
  display: block !important;
92
79
  }
93
- `,gP=({tipKey:e,side:t="right",alwaysOn:r,asButton:i=!1})=>{const{tip:a,enabled:s}=vm(e),[l,f]=D.useState(!1),d=D.useRef(null);return D.useEffect(()=>{if(d.current){const p=new IntersectionObserver(h=>{h[0].isIntersecting||f(!1)});return p.observe(d.current),()=>{d.current&&p.unobserve(d.current)}}},[]),a&&s?$.jsxs(fC,{open:l,onOpenChange:f,children:[$.jsx(mP,{ref:d,className:ft("focus:outline-none",{"rounded p-1 text-gray-100 hover:bg-primary-hover":i}),onClick:p=>p.stopPropagation(),children:$.jsx("span",{className:ft("group-hover:block",{hidden:!r}),children:$.jsx(mt.FdBulb,{className:"h-4 w-4 text-yellow-300"})})}),$.jsx(dC,{side:t,sideOffset:5,onClick:p=>p.stopPropagation(),children:$.jsx("div",{className:"relative rounded border border-grey-50 bg-grey-900 p-2 text-xs text-white shadow-2xl",children:pm(a)})})]}):null};var yP=Object.defineProperty,wP=(e,t,r)=>t in e?yP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wl=(e,t,r)=>(wP(e,typeof t!="symbol"?t+"":t,r),r);let bP=class{constructor(){wl(this,"current",this.detect()),wl(this,"handoffState","pending"),wl(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"}},yi=new bP,Ir=(e,t)=>{yi.isServer?D.useEffect(e,t):D.useLayoutEffect(e,t)};function wi(e){let t=D.useRef(e);return Ir(()=>{t.current=e},[e]),t}let At=function(e){let t=wi(e);return D.useCallback((...r)=>t.current(...r),[t])};function SP(e,t,r){let[i,a]=D.useState(r),s=e!==void 0,l=D.useRef(s),f=D.useRef(!1),d=D.useRef(!1);return s&&!l.current&&!f.current?(f.current=!0,l.current=s,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!s&&l.current&&!d.current&&(d.current=!0,l.current=s,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[s?e:i,At(p=>(s||a(p),t==null?void 0:t(p)))]}function EP(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function _o(){let e=[],t={addEventListener(r,i,a,s){return r.addEventListener(i,a,s),t.add(()=>r.removeEventListener(i,a,s))},requestAnimationFrame(...r){let i=requestAnimationFrame(...r);return t.add(()=>cancelAnimationFrame(i))},nextFrame(...r){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...r))},setTimeout(...r){let i=setTimeout(...r);return t.add(()=>clearTimeout(i))},microTask(...r){let i={current:!0};return EP(()=>{i.current&&r[0]()}),t.add(()=>{i.current=!1})},style(r,i,a){let s=r.style.getPropertyValue(i);return Object.assign(r.style,{[i]:a}),this.add(()=>{Object.assign(r.style,{[i]:s})})},group(r){let i=_o();return r(i),this.add(()=>i.dispose())},add(r){return e.push(r),()=>{let i=e.indexOf(r);if(i>=0)for(let a of e.splice(i,1))a()}},dispose(){for(let r of e.splice(0))r()}};return t}function _f(){let[e]=D.useState(_o);return D.useEffect(()=>()=>e.dispose(),[e]),e}function xP(){let e=typeof document>"u";return"useSyncExternalStore"in C?(t=>t.useSyncExternalStore)(C)(()=>()=>{},()=>!1,()=>!e):!1}function Of(){let e=xP(),[t,r]=C.useState(yi.isHandoffComplete);return t&&yi.isHandoffComplete===!1&&r(!1),C.useEffect(()=>{t!==!0&&r(!0)},[t]),C.useEffect(()=>yi.handoff(),[]),e?!1:t}var Lh;let Af=(Lh=D.useId)!=null?Lh:function(){let e=Of(),[t,r]=D.useState(e?()=>yi.nextId():null);return Ir(()=>{t===null&&r(yi.nextId())},[t]),t!=null?""+t:void 0};function Cr(e,t,...r){if(e in t){let a=t[e];return typeof a=="function"?a(...r):a}let i=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(a=>`"${a}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,Cr),i}function $h(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 _P(e,t){let[r,i]=D.useState(()=>$h(e));return Ir(()=>{i($h(e))},[e.type,e.as]),Ir(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&i("button")},[r,t]),r}let OP=Symbol();function Oo(...e){let t=D.useRef(e);D.useEffect(()=>{t.current=e},[e]);let r=At(i=>{for(let a of t.current)a!=null&&(typeof a=="function"?a(i):a.current=i)});return e.every(i=>i==null||(i==null?void 0:i[OP]))?void 0:r}function Qa(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var mm=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(mm||{}),yn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(yn||{});function Yn({ourProps:e,theirProps:t,slot:r,defaultTag:i,features:a,visible:s=!0,name:l,mergeRefs:f}){f=f??AP;let d=gm(t,e);if(s)return La(d,r,i,l,f);let p=a??0;if(p&2){let{static:h=!1,...b}=d;if(h)return La(b,r,i,l,f)}if(p&1){let{unmount:h=!0,...b}=d;return Cr(h?0:1,{0(){return null},1(){return La({...b,hidden:!0,style:{display:"none"}},r,i,l,f)}})}return La(d,r,i,l,f)}function La(e,t={},r,i,a){let{as:s=r,children:l,refName:f="ref",...d}=bl(e,["unmount","static"]),p=e.ref!==void 0?{[f]:e.ref}:{},h=typeof l=="function"?l(t):l;"className"in d&&d.className&&typeof d.className=="function"&&(d.className=d.className(t));let b={};if(t){let v=!1,w=[];for(let[E,y]of Object.entries(t))typeof y=="boolean"&&(v=!0),y===!0&&w.push(E);v&&(b["data-headlessui-state"]=w.join(" "))}if(s===D.Fragment&&Object.keys(Yl(d)).length>0){if(!D.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(d).map(y=>` - ${y}`).join(`
94
- `),"","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(y=>` - ${y}`).join(`
80
+ `,XT=({tipKey:e,side:r="right",alwaysOn:n,asButton:o=!1})=>{const{tip:a,enabled:u}=om(e),[f,d]=U.useState(!1),w=U.useRef(null);return U.useEffect(()=>{if(w.current){const S=new IntersectionObserver(y=>{y[0].isIntersecting||d(!1)});return S.observe(w.current),()=>{w.current&&S.unobserve(w.current)}}},[]),a&&u?W.jsxs(TT,{open:f,onOpenChange:d,children:[W.jsx(YT,{ref:w,className:it("focus:outline-none",{"rounded p-1 text-gray-100 hover:bg-primary-hover":o}),onClick:S=>S.stopPropagation(),children:W.jsx("span",{className:it("group-hover:block",{hidden:!n}),children:W.jsx(ft.FdBulb,{className:"h-4 w-4 text-yellow-300"})})}),W.jsx(PT,{side:r,sideOffset:5,onClick:S=>S.stopPropagation(),children:W.jsx("div",{className:"relative rounded border border-grey-50 bg-grey-900 p-2 text-xs text-white shadow-2xl",children:nm(a)})})]}):null};var JT=Object.defineProperty,QT=(e,r,n)=>r in e?JT(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,qu=(e,r,n)=>(QT(e,typeof r!="symbol"?r+"":r,n),n);let eC=class{constructor(){qu(this,"current",this.detect()),qu(this,"handoffState","pending"),qu(this,"currentId",0)}set(r){this.current!==r&&(this.handoffState="pending",this.currentId=0,this.current=r)}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"}},Xn=new eC,mr=(e,r)=>{Xn.isServer?U.useEffect(e,r):U.useLayoutEffect(e,r)};function Jn(e){let r=U.useRef(e);return mr(()=>{r.current=e},[e]),r}let vt=function(e){let r=Jn(e);return U.useCallback((...n)=>r.current(...n),[r])};function tC(e,r,n){let[o,a]=U.useState(n),u=e!==void 0,f=U.useRef(u),d=U.useRef(!1),w=U.useRef(!1);return u&&!f.current&&!d.current?(d.current=!0,f.current=u,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.")):!u&&f.current&&!w.current&&(w.current=!0,f.current=u,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.")),[u?e:o,vt(S=>(u||a(S),r==null?void 0:r(S)))]}function rC(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(r=>setTimeout(()=>{throw r}))}function fo(){let e=[],r={addEventListener(n,o,a,u){return n.addEventListener(o,a,u),r.add(()=>n.removeEventListener(o,a,u))},requestAnimationFrame(...n){let o=requestAnimationFrame(...n);return r.add(()=>cancelAnimationFrame(o))},nextFrame(...n){return r.requestAnimationFrame(()=>r.requestAnimationFrame(...n))},setTimeout(...n){let o=setTimeout(...n);return r.add(()=>clearTimeout(o))},microTask(...n){let o={current:!0};return rC(()=>{o.current&&n[0]()}),r.add(()=>{o.current=!1})},style(n,o,a){let u=n.style.getPropertyValue(o);return Object.assign(n.style,{[o]:a}),this.add(()=>{Object.assign(n.style,{[o]:u})})},group(n){let o=fo();return n(o),this.add(()=>o.dispose())},add(n){return e.push(n),()=>{let o=e.indexOf(n);if(o>=0)for(let a of e.splice(o,1))a()}},dispose(){for(let n of e.splice(0))n()}};return r}function Nl(){let[e]=U.useState(fo);return U.useEffect(()=>()=>e.dispose(),[e]),e}function nC(){let e=typeof document>"u";return"useSyncExternalStore"in D?(r=>r.useSyncExternalStore)(D)(()=>()=>{},()=>!1,()=>!e):!1}function jl(){let e=nC(),[r,n]=D.useState(Xn.isHandoffComplete);return r&&Xn.isHandoffComplete===!1&&n(!1),D.useEffect(()=>{r!==!0&&n(!0)},[r]),D.useEffect(()=>Xn.handoff(),[]),e?!1:r}var wh;let Wl=(wh=U.useId)!=null?wh:function(){let e=jl(),[r,n]=U.useState(e?()=>Xn.nextId():null);return mr(()=>{r===null&&n(Xn.nextId())},[r]),r!=null?""+r:void 0};function pr(e,r,...n){if(e in r){let a=r[e];return typeof a=="function"?a(...n):a}let o=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(r).map(a=>`"${a}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,pr),o}function bh(e){var r;if(e.type)return e.type;let n=(r=e.as)!=null?r:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function iC(e,r){let[n,o]=U.useState(()=>bh(e));return mr(()=>{o(bh(e))},[e.type,e.as]),mr(()=>{n||r.current&&r.current instanceof HTMLButtonElement&&!r.current.hasAttribute("type")&&o("button")},[n,r]),n}let oC=Symbol();function co(...e){let r=U.useRef(e);U.useEffect(()=>{r.current=e},[e]);let n=vt(o=>{for(let a of r.current)a!=null&&(typeof a=="function"?a(o):a.current=o)});return e.every(o=>o==null||(o==null?void 0:o[oC]))?void 0:n}function $a(...e){return Array.from(new Set(e.flatMap(r=>typeof r=="string"?r.split(" "):[]))).filter(Boolean).join(" ")}var am=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(am||{}),Jr=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Jr||{});function Cn({ourProps:e,theirProps:r,slot:n,defaultTag:o,features:a,visible:u=!0,name:f,mergeRefs:d}){d=d??aC;let w=sm(r,e);if(u)return wa(w,n,o,f,d);let S=a??0;if(S&2){let{static:y=!1,...h}=w;if(y)return wa(h,n,o,f,d)}if(S&1){let{unmount:y=!0,...h}=w;return pr(y?0:1,{0(){return null},1(){return wa({...h,hidden:!0,style:{display:"none"}},n,o,f,d)}})}return wa(w,n,o,f,d)}function wa(e,r={},n,o,a){let{as:u=n,children:f,refName:d="ref",...w}=Zu(e,["unmount","static"]),S=e.ref!==void 0?{[d]:e.ref}:{},y=typeof f=="function"?f(r):f;"className"in w&&w.className&&typeof w.className=="function"&&(w.className=w.className(r));let h={};if(r){let l=!1,p=[];for(let[m,c]of Object.entries(r))typeof c=="boolean"&&(l=!0),c===!0&&p.push(m);l&&(h["data-headlessui-state"]=p.join(" "))}if(u===U.Fragment&&Object.keys(vl(w)).length>0){if(!U.isValidElement(y)||Array.isArray(y)&&y.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${o} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(w).map(c=>` - ${c}`).join(`
81
+ `),"","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(c=>` - ${c}`).join(`
95
82
  `)].join(`
96
- `));let v=h.props,w=typeof(v==null?void 0:v.className)=="function"?(...y)=>Qa(v==null?void 0:v.className(...y),d.className):Qa(v==null?void 0:v.className,d.className),E=w?{className:w}:{};return D.cloneElement(h,Object.assign({},gm(h.props,Yl(bl(d,["ref"]))),b,p,{ref:a(h.ref,p.ref)},E))}return D.createElement(s,Object.assign({},bl(d,["ref"]),s!==D.Fragment&&p,s!==D.Fragment&&b),h)}function AP(...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 gm(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let i of e)for(let a in i)a.startsWith("on")&&typeof i[a]=="function"?(r[a]!=null||(r[a]=[]),r[a].push(i[a])):t[a]=i[a];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(i=>[i,void 0])));for(let i in r)Object.assign(t,{[i](a,...s){let l=r[i];for(let f of l){if((a instanceof Event||(a==null?void 0:a.nativeEvent)instanceof Event)&&a.defaultPrevented)return;f(a,...s)}}});return t}function Vn(e){var t;return Object.assign(D.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Yl(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function bl(e,t=[]){let r=Object.assign({},e);for(let i of t)i in r&&delete r[i];return r}let TP="div";var ym=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(ym||{});function CP(e,t){var r;let{features:i=1,...a}=e,s={ref:t,"aria-hidden":(i&2)===2?!0:(r=a["aria-hidden"])!=null?r:void 0,hidden:(i&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(i&4)===4&&(i&2)!==2&&{display:"none"}}};return Yn({ourProps:s,theirProps:a,slot:{},defaultTag:TP,name:"Hidden"})}let PP=Vn(CP),Tf=D.createContext(null);Tf.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 wm(){return D.useContext(Tf)}function RP({value:e,children:t}){return D.createElement(Tf.Provider,{value:e},t)}function IP(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&&MP(r)?!1:i}function MP(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function FP(e){var t,r;let i=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(i){for(let a of i.elements)if(a!==e&&(a.tagName==="INPUT"&&a.type==="submit"||a.tagName==="BUTTON"&&a.type==="submit"||a.nodeName==="INPUT"&&a.type==="image")){a.click();return}(r=i.requestSubmit)==null||r.call(i)}}var Vl=(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))(Vl||{});function Cf(){let e=D.useRef(!1);return Ir(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let bm=D.createContext(null);function Sm(){let e=D.useContext(bm);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,Sm),t}return e}function LP(){let[e,t]=D.useState([]);return[e.length>0?e.join(" "):void 0,D.useMemo(()=>function(r){let i=At(s=>(t(l=>[...l,s]),()=>t(l=>{let f=l.slice(),d=f.indexOf(s);return d!==-1&&f.splice(d,1),f}))),a=D.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return D.createElement(bm.Provider,{value:a},r.children)},[t])]}let $P="p";function DP(e,t){let r=Af(),{id:i=`headlessui-description-${r}`,...a}=e,s=Sm(),l=Oo(t);Ir(()=>s.register(i),[i,s.register]);let f={ref:l,...s.props,id:i};return Yn({ourProps:f,theirProps:a,slot:s.slot||{},defaultTag:$P,name:s.name||"Description"})}let kP=Vn(DP),NP=Object.assign(kP,{}),Em=D.createContext(null);function xm(){let e=D.useContext(Em);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,xm),t}return e}function jP(){let[e,t]=D.useState([]);return[e.length>0?e.join(" "):void 0,D.useMemo(()=>function(r){let i=At(s=>(t(l=>[...l,s]),()=>t(l=>{let f=l.slice(),d=f.indexOf(s);return d!==-1&&f.splice(d,1),f}))),a=D.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return D.createElement(Em.Provider,{value:a},r.children)},[t])]}let WP="label";function zP(e,t){let r=Af(),{id:i=`headlessui-label-${r}`,passive:a=!1,...s}=e,l=xm(),f=Oo(t);Ir(()=>l.register(i),[i,l.register]);let d={ref:f,...l.props,id:i};return a&&("onClick"in d&&(delete d.htmlFor,delete d.onClick),"onClick"in s&&delete s.onClick),Yn({ourProps:d,theirProps:s,slot:l.slot||{},defaultTag:WP,name:l.name||"Label"})}let UP=Vn(zP),BP=Object.assign(UP,{});function HP(e=0){let[t,r]=D.useState(e),i=Cf(),a=D.useCallback(d=>{i.current&&r(p=>p|d)},[t,i]),s=D.useCallback(d=>!!(t&d),[t]),l=D.useCallback(d=>{i.current&&r(p=>p&~d)},[r,i]),f=D.useCallback(d=>{i.current&&r(p=>p^d)},[r]);return{flags:t,addFlag:a,hasFlag:s,removeFlag:l,toggleFlag:f}}let Pf=D.createContext(null);Pf.displayName="GroupContext";let qP=D.Fragment;function ZP(e){var t;let[r,i]=D.useState(null),[a,s]=jP(),[l,f]=LP(),d=D.useMemo(()=>({switch:r,setSwitch:i,labelledby:a,describedby:l}),[r,i,a,l]),p={},h=e;return D.createElement(f,{name:"Switch.Description"},D.createElement(s,{name:"Switch.Label",props:{htmlFor:(t=d.switch)==null?void 0:t.id,onClick(b){r&&(b.currentTarget.tagName==="LABEL"&&b.preventDefault(),r.click(),r.focus({preventScroll:!0}))}}},D.createElement(Pf.Provider,{value:d},Yn({ourProps:p,theirProps:h,defaultTag:qP,name:"Switch.Group"}))))}let GP="button";function KP(e,t){var r;let i=Af(),{id:a=`headlessui-switch-${i}`,checked:s,defaultChecked:l=!1,onChange:f,disabled:d=!1,name:p,value:h,form:b,...v}=e,w=D.useContext(Pf),E=D.useRef(null),y=Oo(E,t,w===null?null:w.setSwitch),[x,A]=SP(s,f,l),I=At(()=>A==null?void 0:A(!x)),P=At(q=>{if(IP(q.currentTarget))return q.preventDefault();q.preventDefault(),I()}),F=At(q=>{q.key===Vl.Space?(q.preventDefault(),I()):q.key===Vl.Enter&&FP(q.currentTarget)}),O=At(q=>q.preventDefault()),L=D.useMemo(()=>({checked:x}),[x]),U={id:a,ref:y,role:"switch",type:_P(e,E),tabIndex:e.tabIndex===-1?0:(r=e.tabIndex)!=null?r:0,"aria-checked":x,"aria-labelledby":w==null?void 0:w.labelledby,"aria-describedby":w==null?void 0:w.describedby,disabled:d,onClick:P,onKeyUp:F,onKeyPress:O},z=_f();return D.useEffect(()=>{var q;let V=(q=E.current)==null?void 0:q.closest("form");V&&l!==void 0&&z.addEventListener(V,"reset",()=>{A(l)})},[E,A]),D.createElement(D.Fragment,null,p!=null&&x&&D.createElement(PP,{features:ym.Hidden,...Yl({as:"input",type:"checkbox",hidden:!0,readOnly:!0,disabled:d,form:b,checked:x,name:p,value:h})}),Yn({ourProps:U,theirProps:v,slot:L,defaultTag:GP,name:"Switch"}))}let YP=Vn(KP),VP=ZP,XP=Object.assign(YP,{Group:VP,Label:BP,Description:NP});function JP(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function Sl(e,...t){e&&t.length>0&&e.classList.add(...t)}function El(e,...t){e&&t.length>0&&e.classList.remove(...t)}function QP(e,t){let r=_o();if(!e)return r.dispose;let{transitionDuration:i,transitionDelay:a}=getComputedStyle(e),[s,l]=[i,a].map(d=>{let[p=0]=d.split(",").filter(Boolean).map(h=>h.includes("ms")?parseFloat(h):parseFloat(h)*1e3).sort((h,b)=>b-h);return p}),f=s+l;if(f!==0){r.group(p=>{p.setTimeout(()=>{t(),p.dispose()},f),p.addEventListener(e,"transitionrun",h=>{h.target===h.currentTarget&&p.dispose()})});let d=r.addEventListener(e,"transitionend",p=>{p.target===p.currentTarget&&(t(),d())})}else t();return r.add(()=>t()),r.dispose}function eR(e,t,r,i){let a=r?"enter":"leave",s=_o(),l=i!==void 0?JP(i):()=>{};a==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let f=Cr(a,{enter:()=>t.enter,leave:()=>t.leave}),d=Cr(a,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),p=Cr(a,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return El(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Sl(e,...t.base,...f,...p),s.nextFrame(()=>{El(e,...t.base,...f,...p),Sl(e,...t.base,...f,...d),QP(e,()=>(El(e,...t.base,...f),Sl(e,...t.base,...t.entered),l()))}),s.dispose}function tR({immediate:e,container:t,direction:r,classes:i,onStart:a,onStop:s}){let l=Cf(),f=_f(),d=wi(r);Ir(()=>{e&&(d.current="enter")},[e]),Ir(()=>{let p=_o();f.add(p.dispose);let h=t.current;if(h&&d.current!=="idle"&&l.current)return p.dispose(),a.current(d.current),p.add(eR(h,i.current,d.current==="enter",()=>{p.dispose(),s.current(d.current)})),p.dispose},[r])}function hn(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let vs=D.createContext(null);vs.displayName="TransitionContext";var rR=(e=>(e.Visible="visible",e.Hidden="hidden",e))(rR||{});function nR(){let e=D.useContext(vs);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function iR(){let e=D.useContext(ms);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let ms=D.createContext(null);ms.displayName="NestingContext";function gs(e){return"children"in e?gs(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function _m(e,t){let r=wi(e),i=D.useRef([]),a=Cf(),s=_f(),l=At((w,E=yn.Hidden)=>{let y=i.current.findIndex(({el:x})=>x===w);y!==-1&&(Cr(E,{[yn.Unmount](){i.current.splice(y,1)},[yn.Hidden](){i.current[y].state="hidden"}}),s.microTask(()=>{var x;!gs(i)&&a.current&&((x=r.current)==null||x.call(r))}))}),f=At(w=>{let E=i.current.find(({el:y})=>y===w);return E?E.state!=="visible"&&(E.state="visible"):i.current.push({el:w,state:"visible"}),()=>l(w,yn.Unmount)}),d=D.useRef([]),p=D.useRef(Promise.resolve()),h=D.useRef({enter:[],leave:[],idle:[]}),b=At((w,E,y)=>{d.current.splice(0),t&&(t.chains.current[E]=t.chains.current[E].filter(([x])=>x!==w)),t==null||t.chains.current[E].push([w,new Promise(x=>{d.current.push(x)})]),t==null||t.chains.current[E].push([w,new Promise(x=>{Promise.all(h.current[E].map(([A,I])=>I)).then(()=>x())})]),E==="enter"?p.current=p.current.then(()=>t==null?void 0:t.wait.current).then(()=>y(E)):y(E)}),v=At((w,E,y)=>{Promise.all(h.current[E].splice(0).map(([x,A])=>A)).then(()=>{var x;(x=d.current.shift())==null||x()}).then(()=>y(E))});return D.useMemo(()=>({children:i,register:f,unregister:l,onStart:b,onStop:v,wait:p,chains:h}),[f,l,i,b,v,h,p])}function oR(){}let aR=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Dh(e){var t;let r={};for(let i of aR)r[i]=(t=e[i])!=null?t:oR;return r}function sR(e){let t=D.useRef(Dh(e));return D.useEffect(()=>{t.current=Dh(e)},[e]),t}let uR="div",Om=mm.RenderStrategy;function lR(e,t){var r,i;let{beforeEnter:a,afterEnter:s,beforeLeave:l,afterLeave:f,enter:d,enterFrom:p,enterTo:h,entered:b,leave:v,leaveFrom:w,leaveTo:E,...y}=e,x=D.useRef(null),A=Oo(x,t),I=(r=y.unmount)==null||r?yn.Unmount:yn.Hidden,{show:P,appear:F,initial:O}=nR(),[L,U]=D.useState(P?"visible":"hidden"),z=iR(),{register:q,unregister:V}=z;D.useEffect(()=>q(x),[q,x]),D.useEffect(()=>{if(I===yn.Hidden&&x.current){if(P&&L!=="visible"){U("visible");return}return Cr(L,{hidden:()=>V(x),visible:()=>q(x)})}},[L,x,q,V,P,I]);let ee=wi({base:hn(y.className),enter:hn(d),enterFrom:hn(p),enterTo:hn(h),entered:hn(b),leave:hn(v),leaveFrom:hn(w),leaveTo:hn(E)}),be=sR({beforeEnter:a,afterEnter:s,beforeLeave:l,afterLeave:f}),pe=Of();D.useEffect(()=>{if(pe&&L==="visible"&&x.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[x,L,pe]);let Ae=O&&!F,Ne=F&&P&&O,ve=!pe||Ae?"idle":P?"enter":"leave",Te=HP(0),Ge=At(Q=>Cr(Q,{enter:()=>{Te.addFlag(Gr.Opening),be.current.beforeEnter()},leave:()=>{Te.addFlag(Gr.Closing),be.current.beforeLeave()},idle:()=>{}})),Ct=At(Q=>Cr(Q,{enter:()=>{Te.removeFlag(Gr.Opening),be.current.afterEnter()},leave:()=>{Te.removeFlag(Gr.Closing),be.current.afterLeave()},idle:()=>{}})),H=_m(()=>{U("hidden"),V(x)},z),G=D.useRef(!1);tR({immediate:Ne,container:x,classes:ee,direction:ve,onStart:wi(Q=>{G.current=!0,H.onStart(x,Q,Ge)}),onStop:wi(Q=>{G.current=!1,H.onStop(x,Q,Ct),Q==="leave"&&!gs(H)&&(U("hidden"),V(x))})});let re=y,le={ref:A};return Ne?re={...re,className:Qa(y.className,...ee.current.enter,...ee.current.enterFrom)}:G.current&&(re.className=Qa(y.className,(i=x.current)==null?void 0:i.className),re.className===""&&delete re.className),D.createElement(ms.Provider,{value:H},D.createElement(RP,{value:Cr(L,{visible:Gr.Open,hidden:Gr.Closed})|Te.flags},Yn({ourProps:le,theirProps:re,defaultTag:uR,features:Om,visible:L==="visible",name:"Transition.Child"})))}function fR(e,t){let{show:r,appear:i=!1,unmount:a=!0,...s}=e,l=D.useRef(null),f=Oo(l,t);Of();let d=wm();if(r===void 0&&d!==null&&(r=(d&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[p,h]=D.useState(r?"visible":"hidden"),b=_m(()=>{h("hidden")}),[v,w]=D.useState(!0),E=D.useRef([r]);Ir(()=>{v!==!1&&E.current[E.current.length-1]!==r&&(E.current.push(r),w(!1))},[E,r]);let y=D.useMemo(()=>({show:r,appear:i,initial:v}),[r,i,v]);D.useEffect(()=>{if(r)h("visible");else if(!gs(b))h("hidden");else{let P=l.current;if(!P)return;let F=P.getBoundingClientRect();F.x===0&&F.y===0&&F.width===0&&F.height===0&&h("hidden")}},[r,b]);let x={unmount:a},A=At(()=>{var P;v&&w(!1),(P=e.beforeEnter)==null||P.call(e)}),I=At(()=>{var P;v&&w(!1),(P=e.beforeLeave)==null||P.call(e)});return D.createElement(ms.Provider,{value:b},D.createElement(vs.Provider,{value:y},Yn({ourProps:{...x,as:D.Fragment,children:D.createElement(Am,{ref:f,...x,...s,beforeEnter:A,beforeLeave:I})},theirProps:{},defaultTag:D.Fragment,features:Om,visible:p==="visible",name:"Transition"})))}function cR(e,t){let r=D.useContext(vs)!==null,i=wm()!==null;return D.createElement(D.Fragment,null,!r&&i?D.createElement(Xl,{ref:t,...e}):D.createElement(Am,{ref:t,...e}))}let Xl=Vn(fR),Am=Vn(lR),dR=Vn(cR),es=Object.assign(Xl,{Child:dR,Root:Xl});const xl={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"}},Tm=D.forwardRef(({onChange:e,value:t,size:r="md",className:i="ml-auto"},a)=>{const s=l=>{e(l)};return $.jsx("div",{className:ft("flex items-center",i),children:$.jsx(XP,{as:"span",ref:a,checked:t,onChange:s,onKeyDown:l=>{l.key==="Enter"&&s(!t)},className:`${t?"bg-primary-dark":"bg-grey-200"}
97
- relative inline-flex shrink-0 ${xl[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:$.jsx("span",{"aria-hidden":"true",className:`${t?xl[r].translate:"translate-x-0"}
98
- pointer-events-none inline-block ${xl[r].switch} transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})})})}),pR=({children:e,label:t,placement:r="top",className:i})=>{const[a,s]=D.useState(null),[l,f]=D.useState(null),[d,p]=D.useState(!1),{styles:h,attributes:b}=lv(a,l,{placement:r,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{rootBoundary:"viewport",padding:8}}]}),v=D.Children.map(e,w=>D.isValidElement(w)?D.cloneElement(w,{ref:s,onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1)}):w);return $.jsxs($.Fragment,{children:[v,d&&ho.createPortal($.jsx("div",{ref:f,style:h.popper,...b.popper,className:ft("z-10 select-none rounded bg-gray-50 px-2 py-1 text-xs text-gray-800",i),children:t}),document.querySelector("body"))]})},hR=Ml.keyframes`
83
+ `));let l=y.props,p=typeof(l==null?void 0:l.className)=="function"?(...c)=>$a(l==null?void 0:l.className(...c),w.className):$a(l==null?void 0:l.className,w.className),m=p?{className:p}:{};return U.cloneElement(y,Object.assign({},sm(y.props,vl(Zu(w,["ref"]))),h,S,{ref:a(y.ref,S.ref)},m))}return U.createElement(u,Object.assign({},Zu(w,["ref"]),u!==U.Fragment&&S,u!==U.Fragment&&h),y)}function aC(...e){return e.every(r=>r==null)?void 0:r=>{for(let n of e)n!=null&&(typeof n=="function"?n(r):n.current=r)}}function sm(...e){if(e.length===0)return{};if(e.length===1)return e[0];let r={},n={};for(let o of e)for(let a in o)a.startsWith("on")&&typeof o[a]=="function"?(n[a]!=null||(n[a]=[]),n[a].push(o[a])):r[a]=o[a];if(r.disabled||r["aria-disabled"])return Object.assign(r,Object.fromEntries(Object.keys(n).map(o=>[o,void 0])));for(let o in n)Object.assign(r,{[o](a,...u){let f=n[o];for(let d of f){if((a instanceof Event||(a==null?void 0:a.nativeEvent)instanceof Event)&&a.defaultPrevented)return;d(a,...u)}}});return r}function Pn(e){var r;return Object.assign(U.forwardRef(e),{displayName:(r=e.displayName)!=null?r:e.name})}function vl(e){let r=Object.assign({},e);for(let n in r)r[n]===void 0&&delete r[n];return r}function Zu(e,r=[]){let n=Object.assign({},e);for(let o of r)o in n&&delete n[o];return n}let sC="div";var um=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(um||{});function uC(e,r){var n;let{features:o=1,...a}=e,u={ref:r,"aria-hidden":(o&2)===2?!0:(n=a["aria-hidden"])!=null?n:void 0,hidden:(o&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",...(o&4)===4&&(o&2)!==2&&{display:"none"}}};return Cn({ourProps:u,theirProps:a,slot:{},defaultTag:sC,name:"Hidden"})}let lC=Pn(uC),Ul=U.createContext(null);Ul.displayName="OpenClosedContext";var Pr=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Pr||{});function lm(){return U.useContext(Ul)}function fC({value:e,children:r}){return U.createElement(Ul.Provider,{value:e},r)}function cC(e){let r=e.parentElement,n=null;for(;r&&!(r instanceof HTMLFieldSetElement);)r instanceof HTMLLegendElement&&(n=r),r=r.parentElement;let o=(r==null?void 0:r.getAttribute("disabled"))==="";return o&&dC(n)?!1:o}function dC(e){if(!e)return!1;let r=e.previousElementSibling;for(;r!==null;){if(r instanceof HTMLLegendElement)return!1;r=r.previousElementSibling}return!0}function pC(e){var r,n;let o=(r=e==null?void 0:e.form)!=null?r:e.closest("form");if(o){for(let a of o.elements)if(a!==e&&(a.tagName==="INPUT"&&a.type==="submit"||a.tagName==="BUTTON"&&a.type==="submit"||a.nodeName==="INPUT"&&a.type==="image")){a.click();return}(n=o.requestSubmit)==null||n.call(o)}}var ml=(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))(ml||{});function zl(){let e=U.useRef(!1);return mr(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let fm=U.createContext(null);function cm(){let e=U.useContext(fm);if(e===null){let r=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(r,cm),r}return e}function hC(){let[e,r]=U.useState([]);return[e.length>0?e.join(" "):void 0,U.useMemo(()=>function(n){let o=vt(u=>(r(f=>[...f,u]),()=>r(f=>{let d=f.slice(),w=d.indexOf(u);return w!==-1&&d.splice(w,1),d}))),a=U.useMemo(()=>({register:o,slot:n.slot,name:n.name,props:n.props}),[o,n.slot,n.name,n.props]);return U.createElement(fm.Provider,{value:a},n.children)},[r])]}let vC="p";function mC(e,r){let n=Wl(),{id:o=`headlessui-description-${n}`,...a}=e,u=cm(),f=co(r);mr(()=>u.register(o),[o,u.register]);let d={ref:f,...u.props,id:o};return Cn({ourProps:d,theirProps:a,slot:u.slot||{},defaultTag:vC,name:u.name||"Description"})}let gC=Pn(mC),yC=Object.assign(gC,{}),dm=U.createContext(null);function pm(){let e=U.useContext(dm);if(e===null){let r=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(r,pm),r}return e}function wC(){let[e,r]=U.useState([]);return[e.length>0?e.join(" "):void 0,U.useMemo(()=>function(n){let o=vt(u=>(r(f=>[...f,u]),()=>r(f=>{let d=f.slice(),w=d.indexOf(u);return w!==-1&&d.splice(w,1),d}))),a=U.useMemo(()=>({register:o,slot:n.slot,name:n.name,props:n.props}),[o,n.slot,n.name,n.props]);return U.createElement(dm.Provider,{value:a},n.children)},[r])]}let bC="label";function SC(e,r){let n=Wl(),{id:o=`headlessui-label-${n}`,passive:a=!1,...u}=e,f=pm(),d=co(r);mr(()=>f.register(o),[o,f.register]);let w={ref:d,...f.props,id:o};return a&&("onClick"in w&&(delete w.htmlFor,delete w.onClick),"onClick"in u&&delete u.onClick),Cn({ourProps:w,theirProps:u,slot:f.slot||{},defaultTag:bC,name:f.name||"Label"})}let EC=Pn(SC),_C=Object.assign(EC,{});function xC(e=0){let[r,n]=U.useState(e),o=zl(),a=U.useCallback(w=>{o.current&&n(S=>S|w)},[r,o]),u=U.useCallback(w=>!!(r&w),[r]),f=U.useCallback(w=>{o.current&&n(S=>S&~w)},[n,o]),d=U.useCallback(w=>{o.current&&n(S=>S^w)},[n]);return{flags:r,addFlag:a,hasFlag:u,removeFlag:f,toggleFlag:d}}let Bl=U.createContext(null);Bl.displayName="GroupContext";let OC=U.Fragment;function AC(e){var r;let[n,o]=U.useState(null),[a,u]=wC(),[f,d]=hC(),w=U.useMemo(()=>({switch:n,setSwitch:o,labelledby:a,describedby:f}),[n,o,a,f]),S={},y=e;return U.createElement(d,{name:"Switch.Description"},U.createElement(u,{name:"Switch.Label",props:{htmlFor:(r=w.switch)==null?void 0:r.id,onClick(h){n&&(h.currentTarget.tagName==="LABEL"&&h.preventDefault(),n.click(),n.focus({preventScroll:!0}))}}},U.createElement(Bl.Provider,{value:w},Cn({ourProps:S,theirProps:y,defaultTag:OC,name:"Switch.Group"}))))}let TC="button";function CC(e,r){var n;let o=Wl(),{id:a=`headlessui-switch-${o}`,checked:u,defaultChecked:f=!1,onChange:d,disabled:w=!1,name:S,value:y,form:h,...l}=e,p=U.useContext(Bl),m=U.useRef(null),c=co(m,r,p===null?null:p.setSwitch),[g,b]=tC(u,d,f),_=vt(()=>b==null?void 0:b(!g)),x=vt(N=>{if(cC(N.currentTarget))return N.preventDefault();N.preventDefault(),_()}),C=vt(N=>{N.key===ml.Space?(N.preventDefault(),_()):N.key===ml.Enter&&pC(N.currentTarget)}),T=vt(N=>N.preventDefault()),M=U.useMemo(()=>({checked:g}),[g]),H={id:a,ref:c,role:"switch",type:iC(e,m),tabIndex:e.tabIndex===-1?0:(n=e.tabIndex)!=null?n:0,"aria-checked":g,"aria-labelledby":p==null?void 0:p.labelledby,"aria-describedby":p==null?void 0:p.describedby,disabled:w,onClick:x,onKeyUp:C,onKeyPress:T},F=Nl();return U.useEffect(()=>{var N;let X=(N=m.current)==null?void 0:N.closest("form");X&&f!==void 0&&F.addEventListener(X,"reset",()=>{b(f)})},[m,b]),U.createElement(U.Fragment,null,S!=null&&g&&U.createElement(lC,{features:um.Hidden,...vl({as:"input",type:"checkbox",hidden:!0,readOnly:!0,disabled:w,form:h,checked:g,name:S,value:y})}),Cn({ourProps:H,theirProps:l,slot:M,defaultTag:TC,name:"Switch"}))}let PC=Pn(CC),RC=AC,MC=Object.assign(PC,{Group:RC,Label:_C,Description:yC});function IC(e){let r={called:!1};return(...n)=>{if(!r.called)return r.called=!0,e(...n)}}function Gu(e,...r){e&&r.length>0&&e.classList.add(...r)}function Ku(e,...r){e&&r.length>0&&e.classList.remove(...r)}function LC(e,r){let n=fo();if(!e)return n.dispose;let{transitionDuration:o,transitionDelay:a}=getComputedStyle(e),[u,f]=[o,a].map(w=>{let[S=0]=w.split(",").filter(Boolean).map(y=>y.includes("ms")?parseFloat(y):parseFloat(y)*1e3).sort((y,h)=>h-y);return S}),d=u+f;if(d!==0){n.group(S=>{S.setTimeout(()=>{r(),S.dispose()},d),S.addEventListener(e,"transitionrun",y=>{y.target===y.currentTarget&&S.dispose()})});let w=n.addEventListener(e,"transitionend",S=>{S.target===S.currentTarget&&(r(),w())})}else r();return n.add(()=>r()),n.dispose}function FC(e,r,n,o){let a=n?"enter":"leave",u=fo(),f=o!==void 0?IC(o):()=>{};a==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let d=pr(a,{enter:()=>r.enter,leave:()=>r.leave}),w=pr(a,{enter:()=>r.enterTo,leave:()=>r.leaveTo}),S=pr(a,{enter:()=>r.enterFrom,leave:()=>r.leaveFrom});return Ku(e,...r.base,...r.enter,...r.enterTo,...r.enterFrom,...r.leave,...r.leaveFrom,...r.leaveTo,...r.entered),Gu(e,...r.base,...d,...S),u.nextFrame(()=>{Ku(e,...r.base,...d,...S),Gu(e,...r.base,...d,...w),LC(e,()=>(Ku(e,...r.base,...d),Gu(e,...r.base,...r.entered),f()))}),u.dispose}function $C({immediate:e,container:r,direction:n,classes:o,onStart:a,onStop:u}){let f=zl(),d=Nl(),w=Jn(n);mr(()=>{e&&(w.current="enter")},[e]),mr(()=>{let S=fo();d.add(S.dispose);let y=r.current;if(y&&w.current!=="idle"&&f.current)return S.dispose(),a.current(w.current),S.add(FC(y,o.current,w.current==="enter",()=>{S.dispose(),u.current(w.current)})),S.dispose},[n])}function Vr(e=""){return e.split(/\s+/).filter(r=>r.length>1)}let qa=U.createContext(null);qa.displayName="TransitionContext";var DC=(e=>(e.Visible="visible",e.Hidden="hidden",e))(DC||{});function kC(){let e=U.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}function NC(){let e=U.useContext(Za);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Za=U.createContext(null);Za.displayName="NestingContext";function Ga(e){return"children"in e?Ga(e.children):e.current.filter(({el:r})=>r.current!==null).filter(({state:r})=>r==="visible").length>0}function hm(e,r){let n=Jn(e),o=U.useRef([]),a=zl(),u=Nl(),f=vt((p,m=Jr.Hidden)=>{let c=o.current.findIndex(({el:g})=>g===p);c!==-1&&(pr(m,{[Jr.Unmount](){o.current.splice(c,1)},[Jr.Hidden](){o.current[c].state="hidden"}}),u.microTask(()=>{var g;!Ga(o)&&a.current&&((g=n.current)==null||g.call(n))}))}),d=vt(p=>{let m=o.current.find(({el:c})=>c===p);return m?m.state!=="visible"&&(m.state="visible"):o.current.push({el:p,state:"visible"}),()=>f(p,Jr.Unmount)}),w=U.useRef([]),S=U.useRef(Promise.resolve()),y=U.useRef({enter:[],leave:[],idle:[]}),h=vt((p,m,c)=>{w.current.splice(0),r&&(r.chains.current[m]=r.chains.current[m].filter(([g])=>g!==p)),r==null||r.chains.current[m].push([p,new Promise(g=>{w.current.push(g)})]),r==null||r.chains.current[m].push([p,new Promise(g=>{Promise.all(y.current[m].map(([b,_])=>_)).then(()=>g())})]),m==="enter"?S.current=S.current.then(()=>r==null?void 0:r.wait.current).then(()=>c(m)):c(m)}),l=vt((p,m,c)=>{Promise.all(y.current[m].splice(0).map(([g,b])=>b)).then(()=>{var g;(g=w.current.shift())==null||g()}).then(()=>c(m))});return U.useMemo(()=>({children:o,register:d,unregister:f,onStart:h,onStop:l,wait:S,chains:y}),[d,f,o,h,l,y,S])}function jC(){}let WC=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Sh(e){var r;let n={};for(let o of WC)n[o]=(r=e[o])!=null?r:jC;return n}function UC(e){let r=U.useRef(Sh(e));return U.useEffect(()=>{r.current=Sh(e)},[e]),r}let zC="div",vm=am.RenderStrategy;function BC(e,r){var n,o;let{beforeEnter:a,afterEnter:u,beforeLeave:f,afterLeave:d,enter:w,enterFrom:S,enterTo:y,entered:h,leave:l,leaveFrom:p,leaveTo:m,...c}=e,g=U.useRef(null),b=co(g,r),_=(n=c.unmount)==null||n?Jr.Unmount:Jr.Hidden,{show:x,appear:C,initial:T}=kC(),[M,H]=U.useState(x?"visible":"hidden"),F=NC(),{register:N,unregister:X}=F;U.useEffect(()=>N(g),[N,g]),U.useEffect(()=>{if(_===Jr.Hidden&&g.current){if(x&&M!=="visible"){H("visible");return}return pr(M,{hidden:()=>X(g),visible:()=>N(g)})}},[M,g,N,X,x,_]);let j=Jn({base:Vr(c.className),enter:Vr(w),enterFrom:Vr(S),enterTo:Vr(y),entered:Vr(h),leave:Vr(l),leaveFrom:Vr(p),leaveTo:Vr(m)}),L=UC({beforeEnter:a,afterEnter:u,beforeLeave:f,afterLeave:d}),z=jl();U.useEffect(()=>{if(z&&M==="visible"&&g.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[g,M,z]);let q=T&&!C,R=C&&x&&T,J=!z||q?"idle":x?"enter":"leave",V=xC(0),te=vt(oe=>pr(oe,{enter:()=>{V.addFlag(Pr.Opening),L.current.beforeEnter()},leave:()=>{V.addFlag(Pr.Closing),L.current.beforeLeave()},idle:()=>{}})),le=vt(oe=>pr(oe,{enter:()=>{V.removeFlag(Pr.Opening),L.current.afterEnter()},leave:()=>{V.removeFlag(Pr.Closing),L.current.afterLeave()},idle:()=>{}})),Z=hm(()=>{H("hidden"),X(g)},F),ee=U.useRef(!1);$C({immediate:R,container:g,classes:j,direction:J,onStart:Jn(oe=>{ee.current=!0,Z.onStart(g,oe,te)}),onStop:Jn(oe=>{ee.current=!1,Z.onStop(g,oe,le),oe==="leave"&&!Ga(Z)&&(H("hidden"),X(g))})});let ae=c,fe={ref:b};return R?ae={...ae,className:$a(c.className,...j.current.enter,...j.current.enterFrom)}:ee.current&&(ae.className=$a(c.className,(o=g.current)==null?void 0:o.className),ae.className===""&&delete ae.className),U.createElement(Za.Provider,{value:Z},U.createElement(fC,{value:pr(M,{visible:Pr.Open,hidden:Pr.Closed})|V.flags},Cn({ourProps:fe,theirProps:ae,defaultTag:zC,features:vm,visible:M==="visible",name:"Transition.Child"})))}function HC(e,r){let{show:n,appear:o=!1,unmount:a=!0,...u}=e,f=U.useRef(null),d=co(f,r);jl();let w=lm();if(n===void 0&&w!==null&&(n=(w&Pr.Open)===Pr.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[S,y]=U.useState(n?"visible":"hidden"),h=hm(()=>{y("hidden")}),[l,p]=U.useState(!0),m=U.useRef([n]);mr(()=>{l!==!1&&m.current[m.current.length-1]!==n&&(m.current.push(n),p(!1))},[m,n]);let c=U.useMemo(()=>({show:n,appear:o,initial:l}),[n,o,l]);U.useEffect(()=>{if(n)y("visible");else if(!Ga(h))y("hidden");else{let x=f.current;if(!x)return;let C=x.getBoundingClientRect();C.x===0&&C.y===0&&C.width===0&&C.height===0&&y("hidden")}},[n,h]);let g={unmount:a},b=vt(()=>{var x;l&&p(!1),(x=e.beforeEnter)==null||x.call(e)}),_=vt(()=>{var x;l&&p(!1),(x=e.beforeLeave)==null||x.call(e)});return U.createElement(Za.Provider,{value:h},U.createElement(qa.Provider,{value:c},Cn({ourProps:{...g,as:U.Fragment,children:U.createElement(mm,{ref:d,...g,...u,beforeEnter:b,beforeLeave:_})},theirProps:{},defaultTag:U.Fragment,features:vm,visible:S==="visible",name:"Transition"})))}function qC(e,r){let n=U.useContext(qa)!==null,o=lm()!==null;return U.createElement(U.Fragment,null,!n&&o?U.createElement(gl,{ref:r,...e}):U.createElement(mm,{ref:r,...e}))}let gl=Pn(HC),mm=Pn(BC),ZC=Pn(qC),Da=Object.assign(gl,{Child:ZC,Root:gl});const Vu={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"}},gm=U.forwardRef(({onChange:e,value:r,size:n="md",className:o="ml-auto"},a)=>{const u=f=>{e(f)};return W.jsx("div",{className:it("flex items-center",o),children:W.jsx(MC,{as:"span",ref:a,checked:r,onChange:u,onKeyDown:f=>{f.key==="Enter"&&u(!r)},className:`${r?"bg-primary-dark":"bg-grey-200"}
84
+ relative inline-flex shrink-0 ${Vu[n].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:W.jsx("span",{"aria-hidden":"true",className:`${r?Vu[n].translate:"translate-x-0"}
85
+ pointer-events-none inline-block ${Vu[n].switch} transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})})})}),GC=({children:e,label:r,placement:n="top",className:o})=>{const[a,u]=U.useState(null),[f,d]=U.useState(null),[w,S]=U.useState(!1),{styles:y,attributes:h}=ev(a,f,{placement:n,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{rootBoundary:"viewport",padding:8}}]}),l=U.Children.map(e,p=>U.isValidElement(p)?U.cloneElement(p,{ref:u,onMouseEnter:()=>S(!0),onMouseLeave:()=>S(!1)}):p);return W.jsxs(W.Fragment,{children:[l,w&&ao.createPortal(W.jsx("div",{ref:d,style:y.popper,...h.popper,className:it("z-10 select-none rounded bg-gray-50 px-2 py-1 text-xs text-gray-800",o),children:r}),document.querySelector("body"))]})},KC=il.keyframes`
99
86
  to {
100
87
  fill: url(#d);
101
88
  stroke-dashoffset: 0;
102
89
  }
103
- `,Cm=Ka.svg`
90
+ `,ym=La.svg`
104
91
  & .e {
105
92
  fill: url(#d);
106
93
  }
@@ -111,7 +98,7 @@ pointer-events-none inline-block ${xl[r].switch} transform rounded-full bg-white
111
98
  fill: transparent;
112
99
  stroke-dasharray: 700;
113
100
  stroke-dashoffset: 700;
114
- animation: ${hR} 1.5s ease-in-out infinite alternate-reverse;
101
+ animation: ${KC} 1.5s ease-in-out infinite alternate-reverse;
115
102
  }
116
103
 
117
104
  & #circle {
@@ -121,37 +108,37 @@ pointer-events-none inline-block ${xl[r].switch} transform rounded-full bg-white
121
108
  stroke-dasharray: 700;
122
109
  stroke-dashoffset: 700;
123
110
  }
124
- `,vR=({message:e,version:t})=>$.jsx("div",{className:"absolute inset-0 flex h-screen w-screen flex-col items-center justify-center bg-fd-gray-default text-white",children:$.jsxs("div",{className:"flex flex-col text-center",children:[$.jsx("div",{className:"relative mr-4 self-center",children:$.jsx("div",{className:"flex items-center justify-center rounded",children:$.jsxs(Cm,{className:"h-60 w-60",viewBox:"0 0 143.14 136.27",children:[$.jsx("defs",{children:$.jsxs("linearGradient",{id:"d",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[$.jsx("stop",{offset:"0%",stopColor:"#2743a6",children:$.jsx("animate",{attributeName:"stop-color",values:"#ffa4c0; #2743a6;",dur:"6s",repeatCount:"indefinite"})}),$.jsx("stop",{offset:"100%",stopColor:"#ffa4c0",children:$.jsx("animate",{attributeName:"stop-color",values:"#2743a6; #ffa4c0;",dur:"2ds",repeatCount:"indefinite"})})]})}),$.jsx("g",{id:"a"}),$.jsx("g",{id:"b",children:$.jsx("g",{id:"c",children:$.jsxs("g",{children:[$.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"}),$.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"})]})})})]})})}),$.jsxs("div",{children:[$.jsx("span",{className:"text-xs text-grey-200",children:t}),$.jsx("h2",{className:"text-lg text-grey-100",children:e})]})]})});var ts={exports:{}};/**
111
+ `,VC=({message:e,version:r})=>W.jsx("div",{className:"absolute inset-0 flex h-screen w-screen flex-col items-center justify-center bg-fd-gray-default text-white",children:W.jsxs("div",{className:"flex flex-col text-center",children:[W.jsx("div",{className:"relative mr-4 self-center",children:W.jsx("div",{className:"flex items-center justify-center rounded",children:W.jsxs(ym,{className:"h-60 w-60",viewBox:"0 0 143.14 136.27",children:[W.jsx("defs",{children:W.jsxs("linearGradient",{id:"d",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[W.jsx("stop",{offset:"0%",stopColor:"#2743a6",children:W.jsx("animate",{attributeName:"stop-color",values:"#ffa4c0; #2743a6;",dur:"6s",repeatCount:"indefinite"})}),W.jsx("stop",{offset:"100%",stopColor:"#ffa4c0",children:W.jsx("animate",{attributeName:"stop-color",values:"#2743a6; #ffa4c0;",dur:"2ds",repeatCount:"indefinite"})})]})}),W.jsx("g",{id:"a"}),W.jsx("g",{id:"b",children:W.jsx("g",{id:"c",children:W.jsxs("g",{children:[W.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"}),W.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"})]})})})]})})}),W.jsxs("div",{children:[W.jsx("span",{className:"text-xs text-grey-200",children:r}),W.jsx("h2",{className:"text-lg text-grey-100",children:e})]})]})});var Zi={exports:{}};/**
125
112
  * @license
126
113
  * Lodash <https://lodash.com/>
127
114
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
128
115
  * Released under MIT license <https://lodash.com/license>
129
116
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
130
117
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
131
- */ts.exports;(function(e,t){(function(){var r,i="4.17.21",a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",f="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",p=500,h="__lodash_placeholder__",b=1,v=2,w=4,E=1,y=2,x=1,A=2,I=4,P=8,F=16,O=32,L=64,U=128,z=256,q=512,V=30,ee="...",be=800,pe=16,Ae=1,Ne=2,ve=3,Te=1/0,Ge=9007199254740991,Ct=17976931348623157e292,H=NaN,G=4294967295,re=G-1,le=G>>>1,Q=[["ary",U],["bind",x],["bindKey",A],["curry",P],["curryRight",F],["flip",q],["partial",O],["partialRight",L],["rearg",z]],ae="[object Arguments]",se="[object Array]",ce="[object AsyncFunction]",ue="[object Boolean]",ge="[object Date]",xe="[object DOMException]",He="[object Error]",K="[object Function]",gt="[object GeneratorFunction]",st="[object Map]",br="[object Number]",Co="[object Null]",Xt="[object Object]",Po="[object Promise]",xs="[object Proxy]",zt="[object RegExp]",yt="[object Set]",Xr="[object String]",On="[object Symbol]",Ti="[object Undefined]",Jr="[object WeakMap]",Ro="[object WeakSet]",Qr="[object ArrayBuffer]",Lr="[object DataView]",_s="[object Float32Array]",Os="[object Float64Array]",As="[object Int8Array]",Ts="[object Int16Array]",Cs="[object Int32Array]",Ps="[object Uint8Array]",Rs="[object Uint8ClampedArray]",Is="[object Uint16Array]",Ms="[object Uint32Array]",Bg=/\b__p \+= '';/g,Hg=/\b(__p \+=) '' \+/g,qg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Gf=/&(?:amp|lt|gt|quot|#39);/g,Kf=/[&<>"']/g,Zg=RegExp(Gf.source),Gg=RegExp(Kf.source),Kg=/<%-([\s\S]+?)%>/g,Yg=/<%([\s\S]+?)%>/g,Yf=/<%=([\s\S]+?)%>/g,Vg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xg=/^\w*$/,Jg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fs=/[\\^$.*+?()[\]{}|]/g,Qg=RegExp(Fs.source),Ls=/^\s+/,ey=/\s/,ty=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ry=/\{\n\/\* \[wrapped with (.+)\] \*/,ny=/,? & /,iy=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,oy=/[()=,{}\[\]\/\s]/,ay=/\\(\\)?/g,sy=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Vf=/\w*$/,uy=/^[-+]0x[0-9a-f]+$/i,ly=/^0b[01]+$/i,fy=/^\[object .+?Constructor\]$/,cy=/^0o[0-7]+$/i,dy=/^(?:0|[1-9]\d*)$/,py=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Io=/($^)/,hy=/['\n\r\u2028\u2029\\]/g,Mo="\\ud800-\\udfff",vy="\\u0300-\\u036f",my="\\ufe20-\\ufe2f",gy="\\u20d0-\\u20ff",Xf=vy+my+gy,Jf="\\u2700-\\u27bf",Qf="a-z\\xdf-\\xf6\\xf8-\\xff",yy="\\xac\\xb1\\xd7\\xf7",wy="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",by="\\u2000-\\u206f",Sy=" \\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",ec="A-Z\\xc0-\\xd6\\xd8-\\xde",tc="\\ufe0e\\ufe0f",rc=yy+wy+by+Sy,$s="['’]",Ey="["+Mo+"]",nc="["+rc+"]",Fo="["+Xf+"]",ic="\\d+",xy="["+Jf+"]",oc="["+Qf+"]",ac="[^"+Mo+rc+ic+Jf+Qf+ec+"]",Ds="\\ud83c[\\udffb-\\udfff]",_y="(?:"+Fo+"|"+Ds+")",sc="[^"+Mo+"]",ks="(?:\\ud83c[\\udde6-\\uddff]){2}",Ns="[\\ud800-\\udbff][\\udc00-\\udfff]",Jn="["+ec+"]",uc="\\u200d",lc="(?:"+oc+"|"+ac+")",Oy="(?:"+Jn+"|"+ac+")",fc="(?:"+$s+"(?:d|ll|m|re|s|t|ve))?",cc="(?:"+$s+"(?:D|LL|M|RE|S|T|VE))?",dc=_y+"?",pc="["+tc+"]?",Ay="(?:"+uc+"(?:"+[sc,ks,Ns].join("|")+")"+pc+dc+")*",Ty="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Cy="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",hc=pc+dc+Ay,Py="(?:"+[xy,ks,Ns].join("|")+")"+hc,Ry="(?:"+[sc+Fo+"?",Fo,ks,Ns,Ey].join("|")+")",Iy=RegExp($s,"g"),My=RegExp(Fo,"g"),js=RegExp(Ds+"(?="+Ds+")|"+Ry+hc,"g"),Fy=RegExp([Jn+"?"+oc+"+"+fc+"(?="+[nc,Jn,"$"].join("|")+")",Oy+"+"+cc+"(?="+[nc,Jn+lc,"$"].join("|")+")",Jn+"?"+lc+"+"+fc,Jn+"+"+cc,Cy,Ty,ic,Py].join("|"),"g"),Ly=RegExp("["+uc+Mo+Xf+tc+"]"),$y=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Dy=["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"],ky=-1,We={};We[_s]=We[Os]=We[As]=We[Ts]=We[Cs]=We[Ps]=We[Rs]=We[Is]=We[Ms]=!0,We[ae]=We[se]=We[Qr]=We[ue]=We[Lr]=We[ge]=We[He]=We[K]=We[st]=We[br]=We[Xt]=We[zt]=We[yt]=We[Xr]=We[Jr]=!1;var je={};je[ae]=je[se]=je[Qr]=je[Lr]=je[ue]=je[ge]=je[_s]=je[Os]=je[As]=je[Ts]=je[Cs]=je[st]=je[br]=je[Xt]=je[zt]=je[yt]=je[Xr]=je[On]=je[Ps]=je[Rs]=je[Is]=je[Ms]=!0,je[He]=je[K]=je[Jr]=!1;var Ny={À:"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"},jy={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Wy={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},zy={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Uy=parseFloat,By=parseInt,vc=typeof Nn=="object"&&Nn&&Nn.Object===Object&&Nn,Hy=typeof self=="object"&&self&&self.Object===Object&&self,dt=vc||Hy||Function("return this")(),Ws=t&&!t.nodeType&&t,An=Ws&&!0&&e&&!e.nodeType&&e,mc=An&&An.exports===Ws,zs=mc&&vc.process,Jt=function(){try{var R=An&&An.require&&An.require("util").types;return R||zs&&zs.binding&&zs.binding("util")}catch{}}(),gc=Jt&&Jt.isArrayBuffer,yc=Jt&&Jt.isDate,wc=Jt&&Jt.isMap,bc=Jt&&Jt.isRegExp,Sc=Jt&&Jt.isSet,Ec=Jt&&Jt.isTypedArray;function Ut(R,N,k){switch(k.length){case 0:return R.call(N);case 1:return R.call(N,k[0]);case 2:return R.call(N,k[0],k[1]);case 3:return R.call(N,k[0],k[1],k[2])}return R.apply(N,k)}function qy(R,N,k,X){for(var fe=-1,Re=R==null?0:R.length;++fe<Re;){var rt=R[fe];N(X,rt,k(rt),R)}return X}function Qt(R,N){for(var k=-1,X=R==null?0:R.length;++k<X&&N(R[k],k,R)!==!1;);return R}function Zy(R,N){for(var k=R==null?0:R.length;k--&&N(R[k],k,R)!==!1;);return R}function xc(R,N){for(var k=-1,X=R==null?0:R.length;++k<X;)if(!N(R[k],k,R))return!1;return!0}function en(R,N){for(var k=-1,X=R==null?0:R.length,fe=0,Re=[];++k<X;){var rt=R[k];N(rt,k,R)&&(Re[fe++]=rt)}return Re}function Lo(R,N){var k=R==null?0:R.length;return!!k&&Qn(R,N,0)>-1}function Us(R,N,k){for(var X=-1,fe=R==null?0:R.length;++X<fe;)if(k(N,R[X]))return!0;return!1}function ze(R,N){for(var k=-1,X=R==null?0:R.length,fe=Array(X);++k<X;)fe[k]=N(R[k],k,R);return fe}function tn(R,N){for(var k=-1,X=N.length,fe=R.length;++k<X;)R[fe+k]=N[k];return R}function Bs(R,N,k,X){var fe=-1,Re=R==null?0:R.length;for(X&&Re&&(k=R[++fe]);++fe<Re;)k=N(k,R[fe],fe,R);return k}function Gy(R,N,k,X){var fe=R==null?0:R.length;for(X&&fe&&(k=R[--fe]);fe--;)k=N(k,R[fe],fe,R);return k}function Hs(R,N){for(var k=-1,X=R==null?0:R.length;++k<X;)if(N(R[k],k,R))return!0;return!1}var Ky=qs("length");function Yy(R){return R.split("")}function Vy(R){return R.match(iy)||[]}function _c(R,N,k){var X;return k(R,function(fe,Re,rt){if(N(fe,Re,rt))return X=Re,!1}),X}function $o(R,N,k,X){for(var fe=R.length,Re=k+(X?1:-1);X?Re--:++Re<fe;)if(N(R[Re],Re,R))return Re;return-1}function Qn(R,N,k){return N===N?u0(R,N,k):$o(R,Oc,k)}function Xy(R,N,k,X){for(var fe=k-1,Re=R.length;++fe<Re;)if(X(R[fe],N))return fe;return-1}function Oc(R){return R!==R}function Ac(R,N){var k=R==null?0:R.length;return k?Gs(R,N)/k:H}function qs(R){return function(N){return N==null?r:N[R]}}function Zs(R){return function(N){return R==null?r:R[N]}}function Tc(R,N,k,X,fe){return fe(R,function(Re,rt,ke){k=X?(X=!1,Re):N(k,Re,rt,ke)}),k}function Jy(R,N){var k=R.length;for(R.sort(N);k--;)R[k]=R[k].value;return R}function Gs(R,N){for(var k,X=-1,fe=R.length;++X<fe;){var Re=N(R[X]);Re!==r&&(k=k===r?Re:k+Re)}return k}function Ks(R,N){for(var k=-1,X=Array(R);++k<R;)X[k]=N(k);return X}function Qy(R,N){return ze(N,function(k){return[k,R[k]]})}function Cc(R){return R&&R.slice(0,Mc(R)+1).replace(Ls,"")}function Bt(R){return function(N){return R(N)}}function Ys(R,N){return ze(N,function(k){return R[k]})}function Ci(R,N){return R.has(N)}function Pc(R,N){for(var k=-1,X=R.length;++k<X&&Qn(N,R[k],0)>-1;);return k}function Rc(R,N){for(var k=R.length;k--&&Qn(N,R[k],0)>-1;);return k}function e0(R,N){for(var k=R.length,X=0;k--;)R[k]===N&&++X;return X}var t0=Zs(Ny),r0=Zs(jy);function n0(R){return"\\"+zy[R]}function i0(R,N){return R==null?r:R[N]}function ei(R){return Ly.test(R)}function o0(R){return $y.test(R)}function a0(R){for(var N,k=[];!(N=R.next()).done;)k.push(N.value);return k}function Vs(R){var N=-1,k=Array(R.size);return R.forEach(function(X,fe){k[++N]=[fe,X]}),k}function Ic(R,N){return function(k){return R(N(k))}}function rn(R,N){for(var k=-1,X=R.length,fe=0,Re=[];++k<X;){var rt=R[k];(rt===N||rt===h)&&(R[k]=h,Re[fe++]=k)}return Re}function Do(R){var N=-1,k=Array(R.size);return R.forEach(function(X){k[++N]=X}),k}function s0(R){var N=-1,k=Array(R.size);return R.forEach(function(X){k[++N]=[X,X]}),k}function u0(R,N,k){for(var X=k-1,fe=R.length;++X<fe;)if(R[X]===N)return X;return-1}function l0(R,N,k){for(var X=k+1;X--;)if(R[X]===N)return X;return X}function ti(R){return ei(R)?c0(R):Ky(R)}function dr(R){return ei(R)?d0(R):Yy(R)}function Mc(R){for(var N=R.length;N--&&ey.test(R.charAt(N)););return N}var f0=Zs(Wy);function c0(R){for(var N=js.lastIndex=0;js.test(R);)++N;return N}function d0(R){return R.match(js)||[]}function p0(R){return R.match(Fy)||[]}var h0=function R(N){N=N==null?dt:ri.defaults(dt.Object(),N,ri.pick(dt,Dy));var k=N.Array,X=N.Date,fe=N.Error,Re=N.Function,rt=N.Math,ke=N.Object,Xs=N.RegExp,v0=N.String,er=N.TypeError,ko=k.prototype,m0=Re.prototype,ni=ke.prototype,No=N["__core-js_shared__"],jo=m0.toString,Le=ni.hasOwnProperty,g0=0,Fc=function(){var n=/[^.]+$/.exec(No&&No.keys&&No.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),Wo=ni.toString,y0=jo.call(ke),w0=dt._,b0=Xs("^"+jo.call(Le).replace(Fs,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),zo=mc?N.Buffer:r,nn=N.Symbol,Uo=N.Uint8Array,Lc=zo?zo.allocUnsafe:r,Bo=Ic(ke.getPrototypeOf,ke),$c=ke.create,Dc=ni.propertyIsEnumerable,Ho=ko.splice,kc=nn?nn.isConcatSpreadable:r,Pi=nn?nn.iterator:r,Tn=nn?nn.toStringTag:r,qo=function(){try{var n=Mn(ke,"defineProperty");return n({},"",{}),n}catch{}}(),S0=N.clearTimeout!==dt.clearTimeout&&N.clearTimeout,E0=X&&X.now!==dt.Date.now&&X.now,x0=N.setTimeout!==dt.setTimeout&&N.setTimeout,Zo=rt.ceil,Go=rt.floor,Js=ke.getOwnPropertySymbols,_0=zo?zo.isBuffer:r,Nc=N.isFinite,O0=ko.join,A0=Ic(ke.keys,ke),nt=rt.max,wt=rt.min,T0=X.now,C0=N.parseInt,jc=rt.random,P0=ko.reverse,Qs=Mn(N,"DataView"),Ri=Mn(N,"Map"),eu=Mn(N,"Promise"),ii=Mn(N,"Set"),Ii=Mn(N,"WeakMap"),Mi=Mn(ke,"create"),Ko=Ii&&new Ii,oi={},R0=Fn(Qs),I0=Fn(Ri),M0=Fn(eu),F0=Fn(ii),L0=Fn(Ii),Yo=nn?nn.prototype:r,Fi=Yo?Yo.valueOf:r,Wc=Yo?Yo.toString:r;function g(n){if(Ke(n)&&!de(n)&&!(n instanceof _e)){if(n instanceof tr)return n;if(Le.call(n,"__wrapped__"))return zd(n)}return new tr(n)}var ai=function(){function n(){}return function(o){if(!qe(o))return{};if($c)return $c(o);n.prototype=o;var u=new n;return n.prototype=r,u}}();function Vo(){}function tr(n,o){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=r}g.templateSettings={escape:Kg,evaluate:Yg,interpolate:Yf,variable:"",imports:{_:g}},g.prototype=Vo.prototype,g.prototype.constructor=g,tr.prototype=ai(Vo.prototype),tr.prototype.constructor=tr;function _e(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=G,this.__views__=[]}function $0(){var n=new _e(this.__wrapped__);return n.__actions__=Lt(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Lt(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Lt(this.__views__),n}function D0(){if(this.__filtered__){var n=new _e(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function k0(){var n=this.__wrapped__.value(),o=this.__dir__,u=de(n),c=o<0,m=u?n.length:0,S=Y1(0,m,this.__views__),_=S.start,T=S.end,M=T-_,j=c?T:_-1,W=this.__iteratees__,B=W.length,Y=0,J=wt(M,this.__takeCount__);if(!u||!c&&m==M&&J==M)return fd(n,this.__actions__);var ne=[];e:for(;M--&&Y<J;){j+=o;for(var me=-1,ie=n[j];++me<B;){var Ee=W[me],Oe=Ee.iteratee,Zt=Ee.type,It=Oe(ie);if(Zt==Ne)ie=It;else if(!It){if(Zt==Ae)continue e;break e}}ne[Y++]=ie}return ne}_e.prototype=ai(Vo.prototype),_e.prototype.constructor=_e;function Cn(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var c=n[o];this.set(c[0],c[1])}}function N0(){this.__data__=Mi?Mi(null):{},this.size=0}function j0(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}function W0(n){var o=this.__data__;if(Mi){var u=o[n];return u===d?r:u}return Le.call(o,n)?o[n]:r}function z0(n){var o=this.__data__;return Mi?o[n]!==r:Le.call(o,n)}function U0(n,o){var u=this.__data__;return this.size+=this.has(n)?0:1,u[n]=Mi&&o===r?d:o,this}Cn.prototype.clear=N0,Cn.prototype.delete=j0,Cn.prototype.get=W0,Cn.prototype.has=z0,Cn.prototype.set=U0;function $r(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var c=n[o];this.set(c[0],c[1])}}function B0(){this.__data__=[],this.size=0}function H0(n){var o=this.__data__,u=Xo(o,n);if(u<0)return!1;var c=o.length-1;return u==c?o.pop():Ho.call(o,u,1),--this.size,!0}function q0(n){var o=this.__data__,u=Xo(o,n);return u<0?r:o[u][1]}function Z0(n){return Xo(this.__data__,n)>-1}function G0(n,o){var u=this.__data__,c=Xo(u,n);return c<0?(++this.size,u.push([n,o])):u[c][1]=o,this}$r.prototype.clear=B0,$r.prototype.delete=H0,$r.prototype.get=q0,$r.prototype.has=Z0,$r.prototype.set=G0;function Dr(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var c=n[o];this.set(c[0],c[1])}}function K0(){this.size=0,this.__data__={hash:new Cn,map:new(Ri||$r),string:new Cn}}function Y0(n){var o=la(this,n).delete(n);return this.size-=o?1:0,o}function V0(n){return la(this,n).get(n)}function X0(n){return la(this,n).has(n)}function J0(n,o){var u=la(this,n),c=u.size;return u.set(n,o),this.size+=u.size==c?0:1,this}Dr.prototype.clear=K0,Dr.prototype.delete=Y0,Dr.prototype.get=V0,Dr.prototype.has=X0,Dr.prototype.set=J0;function Pn(n){var o=-1,u=n==null?0:n.length;for(this.__data__=new Dr;++o<u;)this.add(n[o])}function Q0(n){return this.__data__.set(n,d),this}function e1(n){return this.__data__.has(n)}Pn.prototype.add=Pn.prototype.push=Q0,Pn.prototype.has=e1;function pr(n){var o=this.__data__=new $r(n);this.size=o.size}function t1(){this.__data__=new $r,this.size=0}function r1(n){var o=this.__data__,u=o.delete(n);return this.size=o.size,u}function n1(n){return this.__data__.get(n)}function i1(n){return this.__data__.has(n)}function o1(n,o){var u=this.__data__;if(u instanceof $r){var c=u.__data__;if(!Ri||c.length<a-1)return c.push([n,o]),this.size=++u.size,this;u=this.__data__=new Dr(c)}return u.set(n,o),this.size=u.size,this}pr.prototype.clear=t1,pr.prototype.delete=r1,pr.prototype.get=n1,pr.prototype.has=i1,pr.prototype.set=o1;function zc(n,o){var u=de(n),c=!u&&Ln(n),m=!u&&!c&&ln(n),S=!u&&!c&&!m&&fi(n),_=u||c||m||S,T=_?Ks(n.length,v0):[],M=T.length;for(var j in n)(o||Le.call(n,j))&&!(_&&(j=="length"||m&&(j=="offset"||j=="parent")||S&&(j=="buffer"||j=="byteLength"||j=="byteOffset")||Wr(j,M)))&&T.push(j);return T}function Uc(n){var o=n.length;return o?n[cu(0,o-1)]:r}function a1(n,o){return fa(Lt(n),Rn(o,0,n.length))}function s1(n){return fa(Lt(n))}function tu(n,o,u){(u!==r&&!hr(n[o],u)||u===r&&!(o in n))&&kr(n,o,u)}function Li(n,o,u){var c=n[o];(!(Le.call(n,o)&&hr(c,u))||u===r&&!(o in n))&&kr(n,o,u)}function Xo(n,o){for(var u=n.length;u--;)if(hr(n[u][0],o))return u;return-1}function u1(n,o,u,c){return on(n,function(m,S,_){o(c,m,u(m),_)}),c}function Bc(n,o){return n&&Er(o,ut(o),n)}function l1(n,o){return n&&Er(o,Dt(o),n)}function kr(n,o,u){o=="__proto__"&&qo?qo(n,o,{configurable:!0,enumerable:!0,value:u,writable:!0}):n[o]=u}function ru(n,o){for(var u=-1,c=o.length,m=k(c),S=n==null;++u<c;)m[u]=S?r:Du(n,o[u]);return m}function Rn(n,o,u){return n===n&&(u!==r&&(n=n<=u?n:u),o!==r&&(n=n>=o?n:o)),n}function rr(n,o,u,c,m,S){var _,T=o&b,M=o&v,j=o&w;if(u&&(_=m?u(n,c,m,S):u(n)),_!==r)return _;if(!qe(n))return n;var W=de(n);if(W){if(_=X1(n),!T)return Lt(n,_)}else{var B=bt(n),Y=B==K||B==gt;if(ln(n))return pd(n,T);if(B==Xt||B==ae||Y&&!m){if(_=M||Y?{}:Md(n),!T)return M?W1(n,l1(_,n)):j1(n,Bc(_,n))}else{if(!je[B])return m?n:{};_=J1(n,B,T)}}S||(S=new pr);var J=S.get(n);if(J)return J;S.set(n,_),sp(n)?n.forEach(function(ie){_.add(rr(ie,o,u,ie,n,S))}):op(n)&&n.forEach(function(ie,Ee){_.set(Ee,rr(ie,o,u,Ee,n,S))});var ne=j?M?Eu:Su:M?Dt:ut,me=W?r:ne(n);return Qt(me||n,function(ie,Ee){me&&(Ee=ie,ie=n[Ee]),Li(_,Ee,rr(ie,o,u,Ee,n,S))}),_}function f1(n){var o=ut(n);return function(u){return Hc(u,n,o)}}function Hc(n,o,u){var c=u.length;if(n==null)return!c;for(n=ke(n);c--;){var m=u[c],S=o[m],_=n[m];if(_===r&&!(m in n)||!S(_))return!1}return!0}function qc(n,o,u){if(typeof n!="function")throw new er(l);return zi(function(){n.apply(r,u)},o)}function $i(n,o,u,c){var m=-1,S=Lo,_=!0,T=n.length,M=[],j=o.length;if(!T)return M;u&&(o=ze(o,Bt(u))),c?(S=Us,_=!1):o.length>=a&&(S=Ci,_=!1,o=new Pn(o));e:for(;++m<T;){var W=n[m],B=u==null?W:u(W);if(W=c||W!==0?W:0,_&&B===B){for(var Y=j;Y--;)if(o[Y]===B)continue e;M.push(W)}else S(o,B,c)||M.push(W)}return M}var on=yd(Sr),Zc=yd(iu,!0);function c1(n,o){var u=!0;return on(n,function(c,m,S){return u=!!o(c,m,S),u}),u}function Jo(n,o,u){for(var c=-1,m=n.length;++c<m;){var S=n[c],_=o(S);if(_!=null&&(T===r?_===_&&!qt(_):u(_,T)))var T=_,M=S}return M}function d1(n,o,u,c){var m=n.length;for(u=he(u),u<0&&(u=-u>m?0:m+u),c=c===r||c>m?m:he(c),c<0&&(c+=m),c=u>c?0:lp(c);u<c;)n[u++]=o;return n}function Gc(n,o){var u=[];return on(n,function(c,m,S){o(c,m,S)&&u.push(c)}),u}function pt(n,o,u,c,m){var S=-1,_=n.length;for(u||(u=ew),m||(m=[]);++S<_;){var T=n[S];o>0&&u(T)?o>1?pt(T,o-1,u,c,m):tn(m,T):c||(m[m.length]=T)}return m}var nu=wd(),Kc=wd(!0);function Sr(n,o){return n&&nu(n,o,ut)}function iu(n,o){return n&&Kc(n,o,ut)}function Qo(n,o){return en(o,function(u){return zr(n[u])})}function In(n,o){o=sn(o,n);for(var u=0,c=o.length;n!=null&&u<c;)n=n[xr(o[u++])];return u&&u==c?n:r}function Yc(n,o,u){var c=o(n);return de(n)?c:tn(c,u(n))}function Pt(n){return n==null?n===r?Ti:Co:Tn&&Tn in ke(n)?K1(n):sw(n)}function ou(n,o){return n>o}function p1(n,o){return n!=null&&Le.call(n,o)}function h1(n,o){return n!=null&&o in ke(n)}function v1(n,o,u){return n>=wt(o,u)&&n<nt(o,u)}function au(n,o,u){for(var c=u?Us:Lo,m=n[0].length,S=n.length,_=S,T=k(S),M=1/0,j=[];_--;){var W=n[_];_&&o&&(W=ze(W,Bt(o))),M=wt(W.length,M),T[_]=!u&&(o||m>=120&&W.length>=120)?new Pn(_&&W):r}W=n[0];var B=-1,Y=T[0];e:for(;++B<m&&j.length<M;){var J=W[B],ne=o?o(J):J;if(J=u||J!==0?J:0,!(Y?Ci(Y,ne):c(j,ne,u))){for(_=S;--_;){var me=T[_];if(!(me?Ci(me,ne):c(n[_],ne,u)))continue e}Y&&Y.push(ne),j.push(J)}}return j}function m1(n,o,u,c){return Sr(n,function(m,S,_){o(c,u(m),S,_)}),c}function Di(n,o,u){o=sn(o,n),n=Dd(n,o);var c=n==null?n:n[xr(ir(o))];return c==null?r:Ut(c,n,u)}function Vc(n){return Ke(n)&&Pt(n)==ae}function g1(n){return Ke(n)&&Pt(n)==Qr}function y1(n){return Ke(n)&&Pt(n)==ge}function ki(n,o,u,c,m){return n===o?!0:n==null||o==null||!Ke(n)&&!Ke(o)?n!==n&&o!==o:w1(n,o,u,c,ki,m)}function w1(n,o,u,c,m,S){var _=de(n),T=de(o),M=_?se:bt(n),j=T?se:bt(o);M=M==ae?Xt:M,j=j==ae?Xt:j;var W=M==Xt,B=j==Xt,Y=M==j;if(Y&&ln(n)){if(!ln(o))return!1;_=!0,W=!1}if(Y&&!W)return S||(S=new pr),_||fi(n)?Pd(n,o,u,c,m,S):Z1(n,o,M,u,c,m,S);if(!(u&E)){var J=W&&Le.call(n,"__wrapped__"),ne=B&&Le.call(o,"__wrapped__");if(J||ne){var me=J?n.value():n,ie=ne?o.value():o;return S||(S=new pr),m(me,ie,u,c,S)}}return Y?(S||(S=new pr),G1(n,o,u,c,m,S)):!1}function b1(n){return Ke(n)&&bt(n)==st}function su(n,o,u,c){var m=u.length,S=m,_=!c;if(n==null)return!S;for(n=ke(n);m--;){var T=u[m];if(_&&T[2]?T[1]!==n[T[0]]:!(T[0]in n))return!1}for(;++m<S;){T=u[m];var M=T[0],j=n[M],W=T[1];if(_&&T[2]){if(j===r&&!(M in n))return!1}else{var B=new pr;if(c)var Y=c(j,W,M,n,o,B);if(!(Y===r?ki(W,j,E|y,c,B):Y))return!1}}return!0}function Xc(n){if(!qe(n)||rw(n))return!1;var o=zr(n)?b0:fy;return o.test(Fn(n))}function S1(n){return Ke(n)&&Pt(n)==zt}function E1(n){return Ke(n)&&bt(n)==yt}function x1(n){return Ke(n)&&ma(n.length)&&!!We[Pt(n)]}function Jc(n){return typeof n=="function"?n:n==null?kt:typeof n=="object"?de(n)?td(n[0],n[1]):ed(n):bp(n)}function uu(n){if(!Wi(n))return A0(n);var o=[];for(var u in ke(n))Le.call(n,u)&&u!="constructor"&&o.push(u);return o}function _1(n){if(!qe(n))return aw(n);var o=Wi(n),u=[];for(var c in n)c=="constructor"&&(o||!Le.call(n,c))||u.push(c);return u}function lu(n,o){return n<o}function Qc(n,o){var u=-1,c=$t(n)?k(n.length):[];return on(n,function(m,S,_){c[++u]=o(m,S,_)}),c}function ed(n){var o=_u(n);return o.length==1&&o[0][2]?Ld(o[0][0],o[0][1]):function(u){return u===n||su(u,n,o)}}function td(n,o){return Au(n)&&Fd(o)?Ld(xr(n),o):function(u){var c=Du(u,n);return c===r&&c===o?ku(u,n):ki(o,c,E|y)}}function ea(n,o,u,c,m){n!==o&&nu(o,function(S,_){if(m||(m=new pr),qe(S))O1(n,o,_,u,ea,c,m);else{var T=c?c(Cu(n,_),S,_+"",n,o,m):r;T===r&&(T=S),tu(n,_,T)}},Dt)}function O1(n,o,u,c,m,S,_){var T=Cu(n,u),M=Cu(o,u),j=_.get(M);if(j){tu(n,u,j);return}var W=S?S(T,M,u+"",n,o,_):r,B=W===r;if(B){var Y=de(M),J=!Y&&ln(M),ne=!Y&&!J&&fi(M);W=M,Y||J||ne?de(T)?W=T:Ve(T)?W=Lt(T):J?(B=!1,W=pd(M,!0)):ne?(B=!1,W=hd(M,!0)):W=[]:Ui(M)||Ln(M)?(W=T,Ln(T)?W=fp(T):(!qe(T)||zr(T))&&(W=Md(M))):B=!1}B&&(_.set(M,W),m(W,M,c,S,_),_.delete(M)),tu(n,u,W)}function rd(n,o){var u=n.length;if(u)return o+=o<0?u:0,Wr(o,u)?n[o]:r}function nd(n,o,u){o.length?o=ze(o,function(S){return de(S)?function(_){return In(_,S.length===1?S[0]:S)}:S}):o=[kt];var c=-1;o=ze(o,Bt(te()));var m=Qc(n,function(S,_,T){var M=ze(o,function(j){return j(S)});return{criteria:M,index:++c,value:S}});return Jy(m,function(S,_){return N1(S,_,u)})}function A1(n,o){return id(n,o,function(u,c){return ku(n,c)})}function id(n,o,u){for(var c=-1,m=o.length,S={};++c<m;){var _=o[c],T=In(n,_);u(T,_)&&Ni(S,sn(_,n),T)}return S}function T1(n){return function(o){return In(o,n)}}function fu(n,o,u,c){var m=c?Xy:Qn,S=-1,_=o.length,T=n;for(n===o&&(o=Lt(o)),u&&(T=ze(n,Bt(u)));++S<_;)for(var M=0,j=o[S],W=u?u(j):j;(M=m(T,W,M,c))>-1;)T!==n&&Ho.call(T,M,1),Ho.call(n,M,1);return n}function od(n,o){for(var u=n?o.length:0,c=u-1;u--;){var m=o[u];if(u==c||m!==S){var S=m;Wr(m)?Ho.call(n,m,1):hu(n,m)}}return n}function cu(n,o){return n+Go(jc()*(o-n+1))}function C1(n,o,u,c){for(var m=-1,S=nt(Zo((o-n)/(u||1)),0),_=k(S);S--;)_[c?S:++m]=n,n+=u;return _}function du(n,o){var u="";if(!n||o<1||o>Ge)return u;do o%2&&(u+=n),o=Go(o/2),o&&(n+=n);while(o);return u}function ye(n,o){return Pu($d(n,o,kt),n+"")}function P1(n){return Uc(ci(n))}function R1(n,o){var u=ci(n);return fa(u,Rn(o,0,u.length))}function Ni(n,o,u,c){if(!qe(n))return n;o=sn(o,n);for(var m=-1,S=o.length,_=S-1,T=n;T!=null&&++m<S;){var M=xr(o[m]),j=u;if(M==="__proto__"||M==="constructor"||M==="prototype")return n;if(m!=_){var W=T[M];j=c?c(W,M,T):r,j===r&&(j=qe(W)?W:Wr(o[m+1])?[]:{})}Li(T,M,j),T=T[M]}return n}var ad=Ko?function(n,o){return Ko.set(n,o),n}:kt,I1=qo?function(n,o){return qo(n,"toString",{configurable:!0,enumerable:!1,value:ju(o),writable:!0})}:kt;function M1(n){return fa(ci(n))}function nr(n,o,u){var c=-1,m=n.length;o<0&&(o=-o>m?0:m+o),u=u>m?m:u,u<0&&(u+=m),m=o>u?0:u-o>>>0,o>>>=0;for(var S=k(m);++c<m;)S[c]=n[c+o];return S}function F1(n,o){var u;return on(n,function(c,m,S){return u=o(c,m,S),!u}),!!u}function ta(n,o,u){var c=0,m=n==null?c:n.length;if(typeof o=="number"&&o===o&&m<=le){for(;c<m;){var S=c+m>>>1,_=n[S];_!==null&&!qt(_)&&(u?_<=o:_<o)?c=S+1:m=S}return m}return pu(n,o,kt,u)}function pu(n,o,u,c){var m=0,S=n==null?0:n.length;if(S===0)return 0;o=u(o);for(var _=o!==o,T=o===null,M=qt(o),j=o===r;m<S;){var W=Go((m+S)/2),B=u(n[W]),Y=B!==r,J=B===null,ne=B===B,me=qt(B);if(_)var ie=c||ne;else j?ie=ne&&(c||Y):T?ie=ne&&Y&&(c||!J):M?ie=ne&&Y&&!J&&(c||!me):J||me?ie=!1:ie=c?B<=o:B<o;ie?m=W+1:S=W}return wt(S,re)}function sd(n,o){for(var u=-1,c=n.length,m=0,S=[];++u<c;){var _=n[u],T=o?o(_):_;if(!u||!hr(T,M)){var M=T;S[m++]=_===0?0:_}}return S}function ud(n){return typeof n=="number"?n:qt(n)?H:+n}function Ht(n){if(typeof n=="string")return n;if(de(n))return ze(n,Ht)+"";if(qt(n))return Wc?Wc.call(n):"";var o=n+"";return o=="0"&&1/n==-1/0?"-0":o}function an(n,o,u){var c=-1,m=Lo,S=n.length,_=!0,T=[],M=T;if(u)_=!1,m=Us;else if(S>=a){var j=o?null:H1(n);if(j)return Do(j);_=!1,m=Ci,M=new Pn}else M=o?[]:T;e:for(;++c<S;){var W=n[c],B=o?o(W):W;if(W=u||W!==0?W:0,_&&B===B){for(var Y=M.length;Y--;)if(M[Y]===B)continue e;o&&M.push(B),T.push(W)}else m(M,B,u)||(M!==T&&M.push(B),T.push(W))}return T}function hu(n,o){return o=sn(o,n),n=Dd(n,o),n==null||delete n[xr(ir(o))]}function ld(n,o,u,c){return Ni(n,o,u(In(n,o)),c)}function ra(n,o,u,c){for(var m=n.length,S=c?m:-1;(c?S--:++S<m)&&o(n[S],S,n););return u?nr(n,c?0:S,c?S+1:m):nr(n,c?S+1:0,c?m:S)}function fd(n,o){var u=n;return u instanceof _e&&(u=u.value()),Bs(o,function(c,m){return m.func.apply(m.thisArg,tn([c],m.args))},u)}function vu(n,o,u){var c=n.length;if(c<2)return c?an(n[0]):[];for(var m=-1,S=k(c);++m<c;)for(var _=n[m],T=-1;++T<c;)T!=m&&(S[m]=$i(S[m]||_,n[T],o,u));return an(pt(S,1),o,u)}function cd(n,o,u){for(var c=-1,m=n.length,S=o.length,_={};++c<m;){var T=c<S?o[c]:r;u(_,n[c],T)}return _}function mu(n){return Ve(n)?n:[]}function gu(n){return typeof n=="function"?n:kt}function sn(n,o){return de(n)?n:Au(n,o)?[n]:Wd(Ie(n))}var L1=ye;function un(n,o,u){var c=n.length;return u=u===r?c:u,!o&&u>=c?n:nr(n,o,u)}var dd=S0||function(n){return dt.clearTimeout(n)};function pd(n,o){if(o)return n.slice();var u=n.length,c=Lc?Lc(u):new n.constructor(u);return n.copy(c),c}function yu(n){var o=new n.constructor(n.byteLength);return new Uo(o).set(new Uo(n)),o}function $1(n,o){var u=o?yu(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.byteLength)}function D1(n){var o=new n.constructor(n.source,Vf.exec(n));return o.lastIndex=n.lastIndex,o}function k1(n){return Fi?ke(Fi.call(n)):{}}function hd(n,o){var u=o?yu(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.length)}function vd(n,o){if(n!==o){var u=n!==r,c=n===null,m=n===n,S=qt(n),_=o!==r,T=o===null,M=o===o,j=qt(o);if(!T&&!j&&!S&&n>o||S&&_&&M&&!T&&!j||c&&_&&M||!u&&M||!m)return 1;if(!c&&!S&&!j&&n<o||j&&u&&m&&!c&&!S||T&&u&&m||!_&&m||!M)return-1}return 0}function N1(n,o,u){for(var c=-1,m=n.criteria,S=o.criteria,_=m.length,T=u.length;++c<_;){var M=vd(m[c],S[c]);if(M){if(c>=T)return M;var j=u[c];return M*(j=="desc"?-1:1)}}return n.index-o.index}function md(n,o,u,c){for(var m=-1,S=n.length,_=u.length,T=-1,M=o.length,j=nt(S-_,0),W=k(M+j),B=!c;++T<M;)W[T]=o[T];for(;++m<_;)(B||m<S)&&(W[u[m]]=n[m]);for(;j--;)W[T++]=n[m++];return W}function gd(n,o,u,c){for(var m=-1,S=n.length,_=-1,T=u.length,M=-1,j=o.length,W=nt(S-T,0),B=k(W+j),Y=!c;++m<W;)B[m]=n[m];for(var J=m;++M<j;)B[J+M]=o[M];for(;++_<T;)(Y||m<S)&&(B[J+u[_]]=n[m++]);return B}function Lt(n,o){var u=-1,c=n.length;for(o||(o=k(c));++u<c;)o[u]=n[u];return o}function Er(n,o,u,c){var m=!u;u||(u={});for(var S=-1,_=o.length;++S<_;){var T=o[S],M=c?c(u[T],n[T],T,u,n):r;M===r&&(M=n[T]),m?kr(u,T,M):Li(u,T,M)}return u}function j1(n,o){return Er(n,Ou(n),o)}function W1(n,o){return Er(n,Rd(n),o)}function na(n,o){return function(u,c){var m=de(u)?qy:u1,S=o?o():{};return m(u,n,te(c,2),S)}}function si(n){return ye(function(o,u){var c=-1,m=u.length,S=m>1?u[m-1]:r,_=m>2?u[2]:r;for(S=n.length>3&&typeof S=="function"?(m--,S):r,_&&Rt(u[0],u[1],_)&&(S=m<3?r:S,m=1),o=ke(o);++c<m;){var T=u[c];T&&n(o,T,c,S)}return o})}function yd(n,o){return function(u,c){if(u==null)return u;if(!$t(u))return n(u,c);for(var m=u.length,S=o?m:-1,_=ke(u);(o?S--:++S<m)&&c(_[S],S,_)!==!1;);return u}}function wd(n){return function(o,u,c){for(var m=-1,S=ke(o),_=c(o),T=_.length;T--;){var M=_[n?T:++m];if(u(S[M],M,S)===!1)break}return o}}function z1(n,o,u){var c=o&x,m=ji(n);function S(){var _=this&&this!==dt&&this instanceof S?m:n;return _.apply(c?u:this,arguments)}return S}function bd(n){return function(o){o=Ie(o);var u=ei(o)?dr(o):r,c=u?u[0]:o.charAt(0),m=u?un(u,1).join(""):o.slice(1);return c[n]()+m}}function ui(n){return function(o){return Bs(yp(gp(o).replace(Iy,"")),n,"")}}function ji(n){return function(){var o=arguments;switch(o.length){case 0:return new n;case 1:return new n(o[0]);case 2:return new n(o[0],o[1]);case 3:return new n(o[0],o[1],o[2]);case 4:return new n(o[0],o[1],o[2],o[3]);case 5:return new n(o[0],o[1],o[2],o[3],o[4]);case 6:return new n(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new n(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var u=ai(n.prototype),c=n.apply(u,o);return qe(c)?c:u}}function U1(n,o,u){var c=ji(n);function m(){for(var S=arguments.length,_=k(S),T=S,M=li(m);T--;)_[T]=arguments[T];var j=S<3&&_[0]!==M&&_[S-1]!==M?[]:rn(_,M);if(S-=j.length,S<u)return Od(n,o,ia,m.placeholder,r,_,j,r,r,u-S);var W=this&&this!==dt&&this instanceof m?c:n;return Ut(W,this,_)}return m}function Sd(n){return function(o,u,c){var m=ke(o);if(!$t(o)){var S=te(u,3);o=ut(o),u=function(T){return S(m[T],T,m)}}var _=n(o,u,c);return _>-1?m[S?o[_]:_]:r}}function Ed(n){return jr(function(o){var u=o.length,c=u,m=tr.prototype.thru;for(n&&o.reverse();c--;){var S=o[c];if(typeof S!="function")throw new er(l);if(m&&!_&&ua(S)=="wrapper")var _=new tr([],!0)}for(c=_?c:u;++c<u;){S=o[c];var T=ua(S),M=T=="wrapper"?xu(S):r;M&&Tu(M[0])&&M[1]==(U|P|O|z)&&!M[4].length&&M[9]==1?_=_[ua(M[0])].apply(_,M[3]):_=S.length==1&&Tu(S)?_[T]():_.thru(S)}return function(){var j=arguments,W=j[0];if(_&&j.length==1&&de(W))return _.plant(W).value();for(var B=0,Y=u?o[B].apply(this,j):W;++B<u;)Y=o[B].call(this,Y);return Y}})}function ia(n,o,u,c,m,S,_,T,M,j){var W=o&U,B=o&x,Y=o&A,J=o&(P|F),ne=o&q,me=Y?r:ji(n);function ie(){for(var Ee=arguments.length,Oe=k(Ee),Zt=Ee;Zt--;)Oe[Zt]=arguments[Zt];if(J)var It=li(ie),Gt=e0(Oe,It);if(c&&(Oe=md(Oe,c,m,J)),S&&(Oe=gd(Oe,S,_,J)),Ee-=Gt,J&&Ee<j){var Xe=rn(Oe,It);return Od(n,o,ia,ie.placeholder,u,Oe,Xe,T,M,j-Ee)}var vr=B?u:this,Br=Y?vr[n]:n;return Ee=Oe.length,T?Oe=uw(Oe,T):ne&&Ee>1&&Oe.reverse(),W&&M<Ee&&(Oe.length=M),this&&this!==dt&&this instanceof ie&&(Br=me||ji(Br)),Br.apply(vr,Oe)}return ie}function xd(n,o){return function(u,c){return m1(u,n,o(c),{})}}function oa(n,o){return function(u,c){var m;if(u===r&&c===r)return o;if(u!==r&&(m=u),c!==r){if(m===r)return c;typeof u=="string"||typeof c=="string"?(u=Ht(u),c=Ht(c)):(u=ud(u),c=ud(c)),m=n(u,c)}return m}}function wu(n){return jr(function(o){return o=ze(o,Bt(te())),ye(function(u){var c=this;return n(o,function(m){return Ut(m,c,u)})})})}function aa(n,o){o=o===r?" ":Ht(o);var u=o.length;if(u<2)return u?du(o,n):o;var c=du(o,Zo(n/ti(o)));return ei(o)?un(dr(c),0,n).join(""):c.slice(0,n)}function B1(n,o,u,c){var m=o&x,S=ji(n);function _(){for(var T=-1,M=arguments.length,j=-1,W=c.length,B=k(W+M),Y=this&&this!==dt&&this instanceof _?S:n;++j<W;)B[j]=c[j];for(;M--;)B[j++]=arguments[++T];return Ut(Y,m?u:this,B)}return _}function _d(n){return function(o,u,c){return c&&typeof c!="number"&&Rt(o,u,c)&&(u=c=r),o=Ur(o),u===r?(u=o,o=0):u=Ur(u),c=c===r?o<u?1:-1:Ur(c),C1(o,u,c,n)}}function sa(n){return function(o,u){return typeof o=="string"&&typeof u=="string"||(o=or(o),u=or(u)),n(o,u)}}function Od(n,o,u,c,m,S,_,T,M,j){var W=o&P,B=W?_:r,Y=W?r:_,J=W?S:r,ne=W?r:S;o|=W?O:L,o&=~(W?L:O),o&I||(o&=-4);var me=[n,o,m,J,B,ne,Y,T,M,j],ie=u.apply(r,me);return Tu(n)&&kd(ie,me),ie.placeholder=c,Nd(ie,n,o)}function bu(n){var o=rt[n];return function(u,c){if(u=or(u),c=c==null?0:wt(he(c),292),c&&Nc(u)){var m=(Ie(u)+"e").split("e"),S=o(m[0]+"e"+(+m[1]+c));return m=(Ie(S)+"e").split("e"),+(m[0]+"e"+(+m[1]-c))}return o(u)}}var H1=ii&&1/Do(new ii([,-0]))[1]==Te?function(n){return new ii(n)}:Uu;function Ad(n){return function(o){var u=bt(o);return u==st?Vs(o):u==yt?s0(o):Qy(o,n(o))}}function Nr(n,o,u,c,m,S,_,T){var M=o&A;if(!M&&typeof n!="function")throw new er(l);var j=c?c.length:0;if(j||(o&=-97,c=m=r),_=_===r?_:nt(he(_),0),T=T===r?T:he(T),j-=m?m.length:0,o&L){var W=c,B=m;c=m=r}var Y=M?r:xu(n),J=[n,o,u,c,m,W,B,S,_,T];if(Y&&ow(J,Y),n=J[0],o=J[1],u=J[2],c=J[3],m=J[4],T=J[9]=J[9]===r?M?0:n.length:nt(J[9]-j,0),!T&&o&(P|F)&&(o&=-25),!o||o==x)var ne=z1(n,o,u);else o==P||o==F?ne=U1(n,o,T):(o==O||o==(x|O))&&!m.length?ne=B1(n,o,u,c):ne=ia.apply(r,J);var me=Y?ad:kd;return Nd(me(ne,J),n,o)}function Td(n,o,u,c){return n===r||hr(n,ni[u])&&!Le.call(c,u)?o:n}function Cd(n,o,u,c,m,S){return qe(n)&&qe(o)&&(S.set(o,n),ea(n,o,r,Cd,S),S.delete(o)),n}function q1(n){return Ui(n)?r:n}function Pd(n,o,u,c,m,S){var _=u&E,T=n.length,M=o.length;if(T!=M&&!(_&&M>T))return!1;var j=S.get(n),W=S.get(o);if(j&&W)return j==o&&W==n;var B=-1,Y=!0,J=u&y?new Pn:r;for(S.set(n,o),S.set(o,n);++B<T;){var ne=n[B],me=o[B];if(c)var ie=_?c(me,ne,B,o,n,S):c(ne,me,B,n,o,S);if(ie!==r){if(ie)continue;Y=!1;break}if(J){if(!Hs(o,function(Ee,Oe){if(!Ci(J,Oe)&&(ne===Ee||m(ne,Ee,u,c,S)))return J.push(Oe)})){Y=!1;break}}else if(!(ne===me||m(ne,me,u,c,S))){Y=!1;break}}return S.delete(n),S.delete(o),Y}function Z1(n,o,u,c,m,S,_){switch(u){case Lr:if(n.byteLength!=o.byteLength||n.byteOffset!=o.byteOffset)return!1;n=n.buffer,o=o.buffer;case Qr:return!(n.byteLength!=o.byteLength||!S(new Uo(n),new Uo(o)));case ue:case ge:case br:return hr(+n,+o);case He:return n.name==o.name&&n.message==o.message;case zt:case Xr:return n==o+"";case st:var T=Vs;case yt:var M=c&E;if(T||(T=Do),n.size!=o.size&&!M)return!1;var j=_.get(n);if(j)return j==o;c|=y,_.set(n,o);var W=Pd(T(n),T(o),c,m,S,_);return _.delete(n),W;case On:if(Fi)return Fi.call(n)==Fi.call(o)}return!1}function G1(n,o,u,c,m,S){var _=u&E,T=Su(n),M=T.length,j=Su(o),W=j.length;if(M!=W&&!_)return!1;for(var B=M;B--;){var Y=T[B];if(!(_?Y in o:Le.call(o,Y)))return!1}var J=S.get(n),ne=S.get(o);if(J&&ne)return J==o&&ne==n;var me=!0;S.set(n,o),S.set(o,n);for(var ie=_;++B<M;){Y=T[B];var Ee=n[Y],Oe=o[Y];if(c)var Zt=_?c(Oe,Ee,Y,o,n,S):c(Ee,Oe,Y,n,o,S);if(!(Zt===r?Ee===Oe||m(Ee,Oe,u,c,S):Zt)){me=!1;break}ie||(ie=Y=="constructor")}if(me&&!ie){var It=n.constructor,Gt=o.constructor;It!=Gt&&"constructor"in n&&"constructor"in o&&!(typeof It=="function"&&It instanceof It&&typeof Gt=="function"&&Gt instanceof Gt)&&(me=!1)}return S.delete(n),S.delete(o),me}function jr(n){return Pu($d(n,r,Hd),n+"")}function Su(n){return Yc(n,ut,Ou)}function Eu(n){return Yc(n,Dt,Rd)}var xu=Ko?function(n){return Ko.get(n)}:Uu;function ua(n){for(var o=n.name+"",u=oi[o],c=Le.call(oi,o)?u.length:0;c--;){var m=u[c],S=m.func;if(S==null||S==n)return m.name}return o}function li(n){var o=Le.call(g,"placeholder")?g:n;return o.placeholder}function te(){var n=g.iteratee||Wu;return n=n===Wu?Jc:n,arguments.length?n(arguments[0],arguments[1]):n}function la(n,o){var u=n.__data__;return tw(o)?u[typeof o=="string"?"string":"hash"]:u.map}function _u(n){for(var o=ut(n),u=o.length;u--;){var c=o[u],m=n[c];o[u]=[c,m,Fd(m)]}return o}function Mn(n,o){var u=i0(n,o);return Xc(u)?u:r}function K1(n){var o=Le.call(n,Tn),u=n[Tn];try{n[Tn]=r;var c=!0}catch{}var m=Wo.call(n);return c&&(o?n[Tn]=u:delete n[Tn]),m}var Ou=Js?function(n){return n==null?[]:(n=ke(n),en(Js(n),function(o){return Dc.call(n,o)}))}:Bu,Rd=Js?function(n){for(var o=[];n;)tn(o,Ou(n)),n=Bo(n);return o}:Bu,bt=Pt;(Qs&&bt(new Qs(new ArrayBuffer(1)))!=Lr||Ri&&bt(new Ri)!=st||eu&&bt(eu.resolve())!=Po||ii&&bt(new ii)!=yt||Ii&&bt(new Ii)!=Jr)&&(bt=function(n){var o=Pt(n),u=o==Xt?n.constructor:r,c=u?Fn(u):"";if(c)switch(c){case R0:return Lr;case I0:return st;case M0:return Po;case F0:return yt;case L0:return Jr}return o});function Y1(n,o,u){for(var c=-1,m=u.length;++c<m;){var S=u[c],_=S.size;switch(S.type){case"drop":n+=_;break;case"dropRight":o-=_;break;case"take":o=wt(o,n+_);break;case"takeRight":n=nt(n,o-_);break}}return{start:n,end:o}}function V1(n){var o=n.match(ry);return o?o[1].split(ny):[]}function Id(n,o,u){o=sn(o,n);for(var c=-1,m=o.length,S=!1;++c<m;){var _=xr(o[c]);if(!(S=n!=null&&u(n,_)))break;n=n[_]}return S||++c!=m?S:(m=n==null?0:n.length,!!m&&ma(m)&&Wr(_,m)&&(de(n)||Ln(n)))}function X1(n){var o=n.length,u=new n.constructor(o);return o&&typeof n[0]=="string"&&Le.call(n,"index")&&(u.index=n.index,u.input=n.input),u}function Md(n){return typeof n.constructor=="function"&&!Wi(n)?ai(Bo(n)):{}}function J1(n,o,u){var c=n.constructor;switch(o){case Qr:return yu(n);case ue:case ge:return new c(+n);case Lr:return $1(n,u);case _s:case Os:case As:case Ts:case Cs:case Ps:case Rs:case Is:case Ms:return hd(n,u);case st:return new c;case br:case Xr:return new c(n);case zt:return D1(n);case yt:return new c;case On:return k1(n)}}function Q1(n,o){var u=o.length;if(!u)return n;var c=u-1;return o[c]=(u>1?"& ":"")+o[c],o=o.join(u>2?", ":" "),n.replace(ty,`{
132
- /* [wrapped with `+o+`] */
133
- `)}function ew(n){return de(n)||Ln(n)||!!(kc&&n&&n[kc])}function Wr(n,o){var u=typeof n;return o=o??Ge,!!o&&(u=="number"||u!="symbol"&&dy.test(n))&&n>-1&&n%1==0&&n<o}function Rt(n,o,u){if(!qe(u))return!1;var c=typeof o;return(c=="number"?$t(u)&&Wr(o,u.length):c=="string"&&o in u)?hr(u[o],n):!1}function Au(n,o){if(de(n))return!1;var u=typeof n;return u=="number"||u=="symbol"||u=="boolean"||n==null||qt(n)?!0:Xg.test(n)||!Vg.test(n)||o!=null&&n in ke(o)}function tw(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}function Tu(n){var o=ua(n),u=g[o];if(typeof u!="function"||!(o in _e.prototype))return!1;if(n===u)return!0;var c=xu(u);return!!c&&n===c[0]}function rw(n){return!!Fc&&Fc in n}var nw=No?zr:Hu;function Wi(n){var o=n&&n.constructor,u=typeof o=="function"&&o.prototype||ni;return n===u}function Fd(n){return n===n&&!qe(n)}function Ld(n,o){return function(u){return u==null?!1:u[n]===o&&(o!==r||n in ke(u))}}function iw(n){var o=ha(n,function(c){return u.size===p&&u.clear(),c}),u=o.cache;return o}function ow(n,o){var u=n[1],c=o[1],m=u|c,S=m<(x|A|U),_=c==U&&u==P||c==U&&u==z&&n[7].length<=o[8]||c==(U|z)&&o[7].length<=o[8]&&u==P;if(!(S||_))return n;c&x&&(n[2]=o[2],m|=u&x?0:I);var T=o[3];if(T){var M=n[3];n[3]=M?md(M,T,o[4]):T,n[4]=M?rn(n[3],h):o[4]}return T=o[5],T&&(M=n[5],n[5]=M?gd(M,T,o[6]):T,n[6]=M?rn(n[5],h):o[6]),T=o[7],T&&(n[7]=T),c&U&&(n[8]=n[8]==null?o[8]:wt(n[8],o[8])),n[9]==null&&(n[9]=o[9]),n[0]=o[0],n[1]=m,n}function aw(n){var o=[];if(n!=null)for(var u in ke(n))o.push(u);return o}function sw(n){return Wo.call(n)}function $d(n,o,u){return o=nt(o===r?n.length-1:o,0),function(){for(var c=arguments,m=-1,S=nt(c.length-o,0),_=k(S);++m<S;)_[m]=c[o+m];m=-1;for(var T=k(o+1);++m<o;)T[m]=c[m];return T[o]=u(_),Ut(n,this,T)}}function Dd(n,o){return o.length<2?n:In(n,nr(o,0,-1))}function uw(n,o){for(var u=n.length,c=wt(o.length,u),m=Lt(n);c--;){var S=o[c];n[c]=Wr(S,u)?m[S]:r}return n}function Cu(n,o){if(!(o==="constructor"&&typeof n[o]=="function")&&o!="__proto__")return n[o]}var kd=jd(ad),zi=x0||function(n,o){return dt.setTimeout(n,o)},Pu=jd(I1);function Nd(n,o,u){var c=o+"";return Pu(n,Q1(c,lw(V1(c),u)))}function jd(n){var o=0,u=0;return function(){var c=T0(),m=pe-(c-u);if(u=c,m>0){if(++o>=be)return arguments[0]}else o=0;return n.apply(r,arguments)}}function fa(n,o){var u=-1,c=n.length,m=c-1;for(o=o===r?c:o;++u<o;){var S=cu(u,m),_=n[S];n[S]=n[u],n[u]=_}return n.length=o,n}var Wd=iw(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(Jg,function(u,c,m,S){o.push(m?S.replace(ay,"$1"):c||u)}),o});function xr(n){if(typeof n=="string"||qt(n))return n;var o=n+"";return o=="0"&&1/n==-1/0?"-0":o}function Fn(n){if(n!=null){try{return jo.call(n)}catch{}try{return n+""}catch{}}return""}function lw(n,o){return Qt(Q,function(u){var c="_."+u[0];o&u[1]&&!Lo(n,c)&&n.push(c)}),n.sort()}function zd(n){if(n instanceof _e)return n.clone();var o=new tr(n.__wrapped__,n.__chain__);return o.__actions__=Lt(n.__actions__),o.__index__=n.__index__,o.__values__=n.__values__,o}function fw(n,o,u){(u?Rt(n,o,u):o===r)?o=1:o=nt(he(o),0);var c=n==null?0:n.length;if(!c||o<1)return[];for(var m=0,S=0,_=k(Zo(c/o));m<c;)_[S++]=nr(n,m,m+=o);return _}function cw(n){for(var o=-1,u=n==null?0:n.length,c=0,m=[];++o<u;){var S=n[o];S&&(m[c++]=S)}return m}function dw(){var n=arguments.length;if(!n)return[];for(var o=k(n-1),u=arguments[0],c=n;c--;)o[c-1]=arguments[c];return tn(de(u)?Lt(u):[u],pt(o,1))}var pw=ye(function(n,o){return Ve(n)?$i(n,pt(o,1,Ve,!0)):[]}),hw=ye(function(n,o){var u=ir(o);return Ve(u)&&(u=r),Ve(n)?$i(n,pt(o,1,Ve,!0),te(u,2)):[]}),vw=ye(function(n,o){var u=ir(o);return Ve(u)&&(u=r),Ve(n)?$i(n,pt(o,1,Ve,!0),r,u):[]});function mw(n,o,u){var c=n==null?0:n.length;return c?(o=u||o===r?1:he(o),nr(n,o<0?0:o,c)):[]}function gw(n,o,u){var c=n==null?0:n.length;return c?(o=u||o===r?1:he(o),o=c-o,nr(n,0,o<0?0:o)):[]}function yw(n,o){return n&&n.length?ra(n,te(o,3),!0,!0):[]}function ww(n,o){return n&&n.length?ra(n,te(o,3),!0):[]}function bw(n,o,u,c){var m=n==null?0:n.length;return m?(u&&typeof u!="number"&&Rt(n,o,u)&&(u=0,c=m),d1(n,o,u,c)):[]}function Ud(n,o,u){var c=n==null?0:n.length;if(!c)return-1;var m=u==null?0:he(u);return m<0&&(m=nt(c+m,0)),$o(n,te(o,3),m)}function Bd(n,o,u){var c=n==null?0:n.length;if(!c)return-1;var m=c-1;return u!==r&&(m=he(u),m=u<0?nt(c+m,0):wt(m,c-1)),$o(n,te(o,3),m,!0)}function Hd(n){var o=n==null?0:n.length;return o?pt(n,1):[]}function Sw(n){var o=n==null?0:n.length;return o?pt(n,Te):[]}function Ew(n,o){var u=n==null?0:n.length;return u?(o=o===r?1:he(o),pt(n,o)):[]}function xw(n){for(var o=-1,u=n==null?0:n.length,c={};++o<u;){var m=n[o];c[m[0]]=m[1]}return c}function qd(n){return n&&n.length?n[0]:r}function _w(n,o,u){var c=n==null?0:n.length;if(!c)return-1;var m=u==null?0:he(u);return m<0&&(m=nt(c+m,0)),Qn(n,o,m)}function Ow(n){var o=n==null?0:n.length;return o?nr(n,0,-1):[]}var Aw=ye(function(n){var o=ze(n,mu);return o.length&&o[0]===n[0]?au(o):[]}),Tw=ye(function(n){var o=ir(n),u=ze(n,mu);return o===ir(u)?o=r:u.pop(),u.length&&u[0]===n[0]?au(u,te(o,2)):[]}),Cw=ye(function(n){var o=ir(n),u=ze(n,mu);return o=typeof o=="function"?o:r,o&&u.pop(),u.length&&u[0]===n[0]?au(u,r,o):[]});function Pw(n,o){return n==null?"":O0.call(n,o)}function ir(n){var o=n==null?0:n.length;return o?n[o-1]:r}function Rw(n,o,u){var c=n==null?0:n.length;if(!c)return-1;var m=c;return u!==r&&(m=he(u),m=m<0?nt(c+m,0):wt(m,c-1)),o===o?l0(n,o,m):$o(n,Oc,m,!0)}function Iw(n,o){return n&&n.length?rd(n,he(o)):r}var Mw=ye(Zd);function Zd(n,o){return n&&n.length&&o&&o.length?fu(n,o):n}function Fw(n,o,u){return n&&n.length&&o&&o.length?fu(n,o,te(u,2)):n}function Lw(n,o,u){return n&&n.length&&o&&o.length?fu(n,o,r,u):n}var $w=jr(function(n,o){var u=n==null?0:n.length,c=ru(n,o);return od(n,ze(o,function(m){return Wr(m,u)?+m:m}).sort(vd)),c});function Dw(n,o){var u=[];if(!(n&&n.length))return u;var c=-1,m=[],S=n.length;for(o=te(o,3);++c<S;){var _=n[c];o(_,c,n)&&(u.push(_),m.push(c))}return od(n,m),u}function Ru(n){return n==null?n:P0.call(n)}function kw(n,o,u){var c=n==null?0:n.length;return c?(u&&typeof u!="number"&&Rt(n,o,u)?(o=0,u=c):(o=o==null?0:he(o),u=u===r?c:he(u)),nr(n,o,u)):[]}function Nw(n,o){return ta(n,o)}function jw(n,o,u){return pu(n,o,te(u,2))}function Ww(n,o){var u=n==null?0:n.length;if(u){var c=ta(n,o);if(c<u&&hr(n[c],o))return c}return-1}function zw(n,o){return ta(n,o,!0)}function Uw(n,o,u){return pu(n,o,te(u,2),!0)}function Bw(n,o){var u=n==null?0:n.length;if(u){var c=ta(n,o,!0)-1;if(hr(n[c],o))return c}return-1}function Hw(n){return n&&n.length?sd(n):[]}function qw(n,o){return n&&n.length?sd(n,te(o,2)):[]}function Zw(n){var o=n==null?0:n.length;return o?nr(n,1,o):[]}function Gw(n,o,u){return n&&n.length?(o=u||o===r?1:he(o),nr(n,0,o<0?0:o)):[]}function Kw(n,o,u){var c=n==null?0:n.length;return c?(o=u||o===r?1:he(o),o=c-o,nr(n,o<0?0:o,c)):[]}function Yw(n,o){return n&&n.length?ra(n,te(o,3),!1,!0):[]}function Vw(n,o){return n&&n.length?ra(n,te(o,3)):[]}var Xw=ye(function(n){return an(pt(n,1,Ve,!0))}),Jw=ye(function(n){var o=ir(n);return Ve(o)&&(o=r),an(pt(n,1,Ve,!0),te(o,2))}),Qw=ye(function(n){var o=ir(n);return o=typeof o=="function"?o:r,an(pt(n,1,Ve,!0),r,o)});function eb(n){return n&&n.length?an(n):[]}function tb(n,o){return n&&n.length?an(n,te(o,2)):[]}function rb(n,o){return o=typeof o=="function"?o:r,n&&n.length?an(n,r,o):[]}function Iu(n){if(!(n&&n.length))return[];var o=0;return n=en(n,function(u){if(Ve(u))return o=nt(u.length,o),!0}),Ks(o,function(u){return ze(n,qs(u))})}function Gd(n,o){if(!(n&&n.length))return[];var u=Iu(n);return o==null?u:ze(u,function(c){return Ut(o,r,c)})}var nb=ye(function(n,o){return Ve(n)?$i(n,o):[]}),ib=ye(function(n){return vu(en(n,Ve))}),ob=ye(function(n){var o=ir(n);return Ve(o)&&(o=r),vu(en(n,Ve),te(o,2))}),ab=ye(function(n){var o=ir(n);return o=typeof o=="function"?o:r,vu(en(n,Ve),r,o)}),sb=ye(Iu);function ub(n,o){return cd(n||[],o||[],Li)}function lb(n,o){return cd(n||[],o||[],Ni)}var fb=ye(function(n){var o=n.length,u=o>1?n[o-1]:r;return u=typeof u=="function"?(n.pop(),u):r,Gd(n,u)});function Kd(n){var o=g(n);return o.__chain__=!0,o}function cb(n,o){return o(n),n}function ca(n,o){return o(n)}var db=jr(function(n){var o=n.length,u=o?n[0]:0,c=this.__wrapped__,m=function(S){return ru(S,n)};return o>1||this.__actions__.length||!(c instanceof _e)||!Wr(u)?this.thru(m):(c=c.slice(u,+u+(o?1:0)),c.__actions__.push({func:ca,args:[m],thisArg:r}),new tr(c,this.__chain__).thru(function(S){return o&&!S.length&&S.push(r),S}))});function pb(){return Kd(this)}function hb(){return new tr(this.value(),this.__chain__)}function vb(){this.__values__===r&&(this.__values__=up(this.value()));var n=this.__index__>=this.__values__.length,o=n?r:this.__values__[this.__index__++];return{done:n,value:o}}function mb(){return this}function gb(n){for(var o,u=this;u instanceof Vo;){var c=zd(u);c.__index__=0,c.__values__=r,o?m.__wrapped__=c:o=c;var m=c;u=u.__wrapped__}return m.__wrapped__=n,o}function yb(){var n=this.__wrapped__;if(n instanceof _e){var o=n;return this.__actions__.length&&(o=new _e(this)),o=o.reverse(),o.__actions__.push({func:ca,args:[Ru],thisArg:r}),new tr(o,this.__chain__)}return this.thru(Ru)}function wb(){return fd(this.__wrapped__,this.__actions__)}var bb=na(function(n,o,u){Le.call(n,u)?++n[u]:kr(n,u,1)});function Sb(n,o,u){var c=de(n)?xc:c1;return u&&Rt(n,o,u)&&(o=r),c(n,te(o,3))}function Eb(n,o){var u=de(n)?en:Gc;return u(n,te(o,3))}var xb=Sd(Ud),_b=Sd(Bd);function Ob(n,o){return pt(da(n,o),1)}function Ab(n,o){return pt(da(n,o),Te)}function Tb(n,o,u){return u=u===r?1:he(u),pt(da(n,o),u)}function Yd(n,o){var u=de(n)?Qt:on;return u(n,te(o,3))}function Vd(n,o){var u=de(n)?Zy:Zc;return u(n,te(o,3))}var Cb=na(function(n,o,u){Le.call(n,u)?n[u].push(o):kr(n,u,[o])});function Pb(n,o,u,c){n=$t(n)?n:ci(n),u=u&&!c?he(u):0;var m=n.length;return u<0&&(u=nt(m+u,0)),ga(n)?u<=m&&n.indexOf(o,u)>-1:!!m&&Qn(n,o,u)>-1}var Rb=ye(function(n,o,u){var c=-1,m=typeof o=="function",S=$t(n)?k(n.length):[];return on(n,function(_){S[++c]=m?Ut(o,_,u):Di(_,o,u)}),S}),Ib=na(function(n,o,u){kr(n,u,o)});function da(n,o){var u=de(n)?ze:Qc;return u(n,te(o,3))}function Mb(n,o,u,c){return n==null?[]:(de(o)||(o=o==null?[]:[o]),u=c?r:u,de(u)||(u=u==null?[]:[u]),nd(n,o,u))}var Fb=na(function(n,o,u){n[u?0:1].push(o)},function(){return[[],[]]});function Lb(n,o,u){var c=de(n)?Bs:Tc,m=arguments.length<3;return c(n,te(o,4),u,m,on)}function $b(n,o,u){var c=de(n)?Gy:Tc,m=arguments.length<3;return c(n,te(o,4),u,m,Zc)}function Db(n,o){var u=de(n)?en:Gc;return u(n,va(te(o,3)))}function kb(n){var o=de(n)?Uc:P1;return o(n)}function Nb(n,o,u){(u?Rt(n,o,u):o===r)?o=1:o=he(o);var c=de(n)?a1:R1;return c(n,o)}function jb(n){var o=de(n)?s1:M1;return o(n)}function Wb(n){if(n==null)return 0;if($t(n))return ga(n)?ti(n):n.length;var o=bt(n);return o==st||o==yt?n.size:uu(n).length}function zb(n,o,u){var c=de(n)?Hs:F1;return u&&Rt(n,o,u)&&(o=r),c(n,te(o,3))}var Ub=ye(function(n,o){if(n==null)return[];var u=o.length;return u>1&&Rt(n,o[0],o[1])?o=[]:u>2&&Rt(o[0],o[1],o[2])&&(o=[o[0]]),nd(n,pt(o,1),[])}),pa=E0||function(){return dt.Date.now()};function Bb(n,o){if(typeof o!="function")throw new er(l);return n=he(n),function(){if(--n<1)return o.apply(this,arguments)}}function Xd(n,o,u){return o=u?r:o,o=n&&o==null?n.length:o,Nr(n,U,r,r,r,r,o)}function Jd(n,o){var u;if(typeof o!="function")throw new er(l);return n=he(n),function(){return--n>0&&(u=o.apply(this,arguments)),n<=1&&(o=r),u}}var Mu=ye(function(n,o,u){var c=x;if(u.length){var m=rn(u,li(Mu));c|=O}return Nr(n,c,o,u,m)}),Qd=ye(function(n,o,u){var c=x|A;if(u.length){var m=rn(u,li(Qd));c|=O}return Nr(o,c,n,u,m)});function ep(n,o,u){o=u?r:o;var c=Nr(n,P,r,r,r,r,r,o);return c.placeholder=ep.placeholder,c}function tp(n,o,u){o=u?r:o;var c=Nr(n,F,r,r,r,r,r,o);return c.placeholder=tp.placeholder,c}function rp(n,o,u){var c,m,S,_,T,M,j=0,W=!1,B=!1,Y=!0;if(typeof n!="function")throw new er(l);o=or(o)||0,qe(u)&&(W=!!u.leading,B="maxWait"in u,S=B?nt(or(u.maxWait)||0,o):S,Y="trailing"in u?!!u.trailing:Y);function J(Xe){var vr=c,Br=m;return c=m=r,j=Xe,_=n.apply(Br,vr),_}function ne(Xe){return j=Xe,T=zi(Ee,o),W?J(Xe):_}function me(Xe){var vr=Xe-M,Br=Xe-j,Sp=o-vr;return B?wt(Sp,S-Br):Sp}function ie(Xe){var vr=Xe-M,Br=Xe-j;return M===r||vr>=o||vr<0||B&&Br>=S}function Ee(){var Xe=pa();if(ie(Xe))return Oe(Xe);T=zi(Ee,me(Xe))}function Oe(Xe){return T=r,Y&&c?J(Xe):(c=m=r,_)}function Zt(){T!==r&&dd(T),j=0,c=M=m=T=r}function It(){return T===r?_:Oe(pa())}function Gt(){var Xe=pa(),vr=ie(Xe);if(c=arguments,m=this,M=Xe,vr){if(T===r)return ne(M);if(B)return dd(T),T=zi(Ee,o),J(M)}return T===r&&(T=zi(Ee,o)),_}return Gt.cancel=Zt,Gt.flush=It,Gt}var Hb=ye(function(n,o){return qc(n,1,o)}),qb=ye(function(n,o,u){return qc(n,or(o)||0,u)});function Zb(n){return Nr(n,q)}function ha(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new er(l);var u=function(){var c=arguments,m=o?o.apply(this,c):c[0],S=u.cache;if(S.has(m))return S.get(m);var _=n.apply(this,c);return u.cache=S.set(m,_)||S,_};return u.cache=new(ha.Cache||Dr),u}ha.Cache=Dr;function va(n){if(typeof n!="function")throw new er(l);return function(){var o=arguments;switch(o.length){case 0:return!n.call(this);case 1:return!n.call(this,o[0]);case 2:return!n.call(this,o[0],o[1]);case 3:return!n.call(this,o[0],o[1],o[2])}return!n.apply(this,o)}}function Gb(n){return Jd(2,n)}var Kb=L1(function(n,o){o=o.length==1&&de(o[0])?ze(o[0],Bt(te())):ze(pt(o,1),Bt(te()));var u=o.length;return ye(function(c){for(var m=-1,S=wt(c.length,u);++m<S;)c[m]=o[m].call(this,c[m]);return Ut(n,this,c)})}),Fu=ye(function(n,o){var u=rn(o,li(Fu));return Nr(n,O,r,o,u)}),np=ye(function(n,o){var u=rn(o,li(np));return Nr(n,L,r,o,u)}),Yb=jr(function(n,o){return Nr(n,z,r,r,r,o)});function Vb(n,o){if(typeof n!="function")throw new er(l);return o=o===r?o:he(o),ye(n,o)}function Xb(n,o){if(typeof n!="function")throw new er(l);return o=o==null?0:nt(he(o),0),ye(function(u){var c=u[o],m=un(u,0,o);return c&&tn(m,c),Ut(n,this,m)})}function Jb(n,o,u){var c=!0,m=!0;if(typeof n!="function")throw new er(l);return qe(u)&&(c="leading"in u?!!u.leading:c,m="trailing"in u?!!u.trailing:m),rp(n,o,{leading:c,maxWait:o,trailing:m})}function Qb(n){return Xd(n,1)}function eS(n,o){return Fu(gu(o),n)}function tS(){if(!arguments.length)return[];var n=arguments[0];return de(n)?n:[n]}function rS(n){return rr(n,w)}function nS(n,o){return o=typeof o=="function"?o:r,rr(n,w,o)}function iS(n){return rr(n,b|w)}function oS(n,o){return o=typeof o=="function"?o:r,rr(n,b|w,o)}function aS(n,o){return o==null||Hc(n,o,ut(o))}function hr(n,o){return n===o||n!==n&&o!==o}var sS=sa(ou),uS=sa(function(n,o){return n>=o}),Ln=Vc(function(){return arguments}())?Vc:function(n){return Ke(n)&&Le.call(n,"callee")&&!Dc.call(n,"callee")},de=k.isArray,lS=gc?Bt(gc):g1;function $t(n){return n!=null&&ma(n.length)&&!zr(n)}function Ve(n){return Ke(n)&&$t(n)}function fS(n){return n===!0||n===!1||Ke(n)&&Pt(n)==ue}var ln=_0||Hu,cS=yc?Bt(yc):y1;function dS(n){return Ke(n)&&n.nodeType===1&&!Ui(n)}function pS(n){if(n==null)return!0;if($t(n)&&(de(n)||typeof n=="string"||typeof n.splice=="function"||ln(n)||fi(n)||Ln(n)))return!n.length;var o=bt(n);if(o==st||o==yt)return!n.size;if(Wi(n))return!uu(n).length;for(var u in n)if(Le.call(n,u))return!1;return!0}function hS(n,o){return ki(n,o)}function vS(n,o,u){u=typeof u=="function"?u:r;var c=u?u(n,o):r;return c===r?ki(n,o,r,u):!!c}function Lu(n){if(!Ke(n))return!1;var o=Pt(n);return o==He||o==xe||typeof n.message=="string"&&typeof n.name=="string"&&!Ui(n)}function mS(n){return typeof n=="number"&&Nc(n)}function zr(n){if(!qe(n))return!1;var o=Pt(n);return o==K||o==gt||o==ce||o==xs}function ip(n){return typeof n=="number"&&n==he(n)}function ma(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=Ge}function qe(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}function Ke(n){return n!=null&&typeof n=="object"}var op=wc?Bt(wc):b1;function gS(n,o){return n===o||su(n,o,_u(o))}function yS(n,o,u){return u=typeof u=="function"?u:r,su(n,o,_u(o),u)}function wS(n){return ap(n)&&n!=+n}function bS(n){if(nw(n))throw new fe(s);return Xc(n)}function SS(n){return n===null}function ES(n){return n==null}function ap(n){return typeof n=="number"||Ke(n)&&Pt(n)==br}function Ui(n){if(!Ke(n)||Pt(n)!=Xt)return!1;var o=Bo(n);if(o===null)return!0;var u=Le.call(o,"constructor")&&o.constructor;return typeof u=="function"&&u instanceof u&&jo.call(u)==y0}var $u=bc?Bt(bc):S1;function xS(n){return ip(n)&&n>=-9007199254740991&&n<=Ge}var sp=Sc?Bt(Sc):E1;function ga(n){return typeof n=="string"||!de(n)&&Ke(n)&&Pt(n)==Xr}function qt(n){return typeof n=="symbol"||Ke(n)&&Pt(n)==On}var fi=Ec?Bt(Ec):x1;function _S(n){return n===r}function OS(n){return Ke(n)&&bt(n)==Jr}function AS(n){return Ke(n)&&Pt(n)==Ro}var TS=sa(lu),CS=sa(function(n,o){return n<=o});function up(n){if(!n)return[];if($t(n))return ga(n)?dr(n):Lt(n);if(Pi&&n[Pi])return a0(n[Pi]());var o=bt(n),u=o==st?Vs:o==yt?Do:ci;return u(n)}function Ur(n){if(!n)return n===0?n:0;if(n=or(n),n===Te||n===-1/0){var o=n<0?-1:1;return o*Ct}return n===n?n:0}function he(n){var o=Ur(n),u=o%1;return o===o?u?o-u:o:0}function lp(n){return n?Rn(he(n),0,G):0}function or(n){if(typeof n=="number")return n;if(qt(n))return H;if(qe(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=qe(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=Cc(n);var u=ly.test(n);return u||cy.test(n)?By(n.slice(2),u?2:8):uy.test(n)?H:+n}function fp(n){return Er(n,Dt(n))}function PS(n){return n?Rn(he(n),-9007199254740991,Ge):n===0?n:0}function Ie(n){return n==null?"":Ht(n)}var RS=si(function(n,o){if(Wi(o)||$t(o)){Er(o,ut(o),n);return}for(var u in o)Le.call(o,u)&&Li(n,u,o[u])}),cp=si(function(n,o){Er(o,Dt(o),n)}),ya=si(function(n,o,u,c){Er(o,Dt(o),n,c)}),IS=si(function(n,o,u,c){Er(o,ut(o),n,c)}),MS=jr(ru);function FS(n,o){var u=ai(n);return o==null?u:Bc(u,o)}var LS=ye(function(n,o){n=ke(n);var u=-1,c=o.length,m=c>2?o[2]:r;for(m&&Rt(o[0],o[1],m)&&(c=1);++u<c;)for(var S=o[u],_=Dt(S),T=-1,M=_.length;++T<M;){var j=_[T],W=n[j];(W===r||hr(W,ni[j])&&!Le.call(n,j))&&(n[j]=S[j])}return n}),$S=ye(function(n){return n.push(r,Cd),Ut(dp,r,n)});function DS(n,o){return _c(n,te(o,3),Sr)}function kS(n,o){return _c(n,te(o,3),iu)}function NS(n,o){return n==null?n:nu(n,te(o,3),Dt)}function jS(n,o){return n==null?n:Kc(n,te(o,3),Dt)}function WS(n,o){return n&&Sr(n,te(o,3))}function zS(n,o){return n&&iu(n,te(o,3))}function US(n){return n==null?[]:Qo(n,ut(n))}function BS(n){return n==null?[]:Qo(n,Dt(n))}function Du(n,o,u){var c=n==null?r:In(n,o);return c===r?u:c}function HS(n,o){return n!=null&&Id(n,o,p1)}function ku(n,o){return n!=null&&Id(n,o,h1)}var qS=xd(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=Wo.call(o)),n[o]=u},ju(kt)),ZS=xd(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=Wo.call(o)),Le.call(n,o)?n[o].push(u):n[o]=[u]},te),GS=ye(Di);function ut(n){return $t(n)?zc(n):uu(n)}function Dt(n){return $t(n)?zc(n,!0):_1(n)}function KS(n,o){var u={};return o=te(o,3),Sr(n,function(c,m,S){kr(u,o(c,m,S),c)}),u}function YS(n,o){var u={};return o=te(o,3),Sr(n,function(c,m,S){kr(u,m,o(c,m,S))}),u}var VS=si(function(n,o,u){ea(n,o,u)}),dp=si(function(n,o,u,c){ea(n,o,u,c)}),XS=jr(function(n,o){var u={};if(n==null)return u;var c=!1;o=ze(o,function(S){return S=sn(S,n),c||(c=S.length>1),S}),Er(n,Eu(n),u),c&&(u=rr(u,b|v|w,q1));for(var m=o.length;m--;)hu(u,o[m]);return u});function JS(n,o){return pp(n,va(te(o)))}var QS=jr(function(n,o){return n==null?{}:A1(n,o)});function pp(n,o){if(n==null)return{};var u=ze(Eu(n),function(c){return[c]});return o=te(o),id(n,u,function(c,m){return o(c,m[0])})}function eE(n,o,u){o=sn(o,n);var c=-1,m=o.length;for(m||(m=1,n=r);++c<m;){var S=n==null?r:n[xr(o[c])];S===r&&(c=m,S=u),n=zr(S)?S.call(n):S}return n}function tE(n,o,u){return n==null?n:Ni(n,o,u)}function rE(n,o,u,c){return c=typeof c=="function"?c:r,n==null?n:Ni(n,o,u,c)}var hp=Ad(ut),vp=Ad(Dt);function nE(n,o,u){var c=de(n),m=c||ln(n)||fi(n);if(o=te(o,4),u==null){var S=n&&n.constructor;m?u=c?new S:[]:qe(n)?u=zr(S)?ai(Bo(n)):{}:u={}}return(m?Qt:Sr)(n,function(_,T,M){return o(u,_,T,M)}),u}function iE(n,o){return n==null?!0:hu(n,o)}function oE(n,o,u){return n==null?n:ld(n,o,gu(u))}function aE(n,o,u,c){return c=typeof c=="function"?c:r,n==null?n:ld(n,o,gu(u),c)}function ci(n){return n==null?[]:Ys(n,ut(n))}function sE(n){return n==null?[]:Ys(n,Dt(n))}function uE(n,o,u){return u===r&&(u=o,o=r),u!==r&&(u=or(u),u=u===u?u:0),o!==r&&(o=or(o),o=o===o?o:0),Rn(or(n),o,u)}function lE(n,o,u){return o=Ur(o),u===r?(u=o,o=0):u=Ur(u),n=or(n),v1(n,o,u)}function fE(n,o,u){if(u&&typeof u!="boolean"&&Rt(n,o,u)&&(o=u=r),u===r&&(typeof o=="boolean"?(u=o,o=r):typeof n=="boolean"&&(u=n,n=r)),n===r&&o===r?(n=0,o=1):(n=Ur(n),o===r?(o=n,n=0):o=Ur(o)),n>o){var c=n;n=o,o=c}if(u||n%1||o%1){var m=jc();return wt(n+m*(o-n+Uy("1e-"+((m+"").length-1))),o)}return cu(n,o)}var cE=ui(function(n,o,u){return o=o.toLowerCase(),n+(u?mp(o):o)});function mp(n){return Nu(Ie(n).toLowerCase())}function gp(n){return n=Ie(n),n&&n.replace(py,t0).replace(My,"")}function dE(n,o,u){n=Ie(n),o=Ht(o);var c=n.length;u=u===r?c:Rn(he(u),0,c);var m=u;return u-=o.length,u>=0&&n.slice(u,m)==o}function pE(n){return n=Ie(n),n&&Gg.test(n)?n.replace(Kf,r0):n}function hE(n){return n=Ie(n),n&&Qg.test(n)?n.replace(Fs,"\\$&"):n}var vE=ui(function(n,o,u){return n+(u?"-":"")+o.toLowerCase()}),mE=ui(function(n,o,u){return n+(u?" ":"")+o.toLowerCase()}),gE=bd("toLowerCase");function yE(n,o,u){n=Ie(n),o=he(o);var c=o?ti(n):0;if(!o||c>=o)return n;var m=(o-c)/2;return aa(Go(m),u)+n+aa(Zo(m),u)}function wE(n,o,u){n=Ie(n),o=he(o);var c=o?ti(n):0;return o&&c<o?n+aa(o-c,u):n}function bE(n,o,u){n=Ie(n),o=he(o);var c=o?ti(n):0;return o&&c<o?aa(o-c,u)+n:n}function SE(n,o,u){return u||o==null?o=0:o&&(o=+o),C0(Ie(n).replace(Ls,""),o||0)}function EE(n,o,u){return(u?Rt(n,o,u):o===r)?o=1:o=he(o),du(Ie(n),o)}function xE(){var n=arguments,o=Ie(n[0]);return n.length<3?o:o.replace(n[1],n[2])}var _E=ui(function(n,o,u){return n+(u?"_":"")+o.toLowerCase()});function OE(n,o,u){return u&&typeof u!="number"&&Rt(n,o,u)&&(o=u=r),u=u===r?G:u>>>0,u?(n=Ie(n),n&&(typeof o=="string"||o!=null&&!$u(o))&&(o=Ht(o),!o&&ei(n))?un(dr(n),0,u):n.split(o,u)):[]}var AE=ui(function(n,o,u){return n+(u?" ":"")+Nu(o)});function TE(n,o,u){return n=Ie(n),u=u==null?0:Rn(he(u),0,n.length),o=Ht(o),n.slice(u,u+o.length)==o}function CE(n,o,u){var c=g.templateSettings;u&&Rt(n,o,u)&&(o=r),n=Ie(n),o=ya({},o,c,Td);var m=ya({},o.imports,c.imports,Td),S=ut(m),_=Ys(m,S),T,M,j=0,W=o.interpolate||Io,B="__p += '",Y=Xs((o.escape||Io).source+"|"+W.source+"|"+(W===Yf?sy:Io).source+"|"+(o.evaluate||Io).source+"|$","g"),J="//# sourceURL="+(Le.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ky+"]")+`
134
- `;n.replace(Y,function(ie,Ee,Oe,Zt,It,Gt){return Oe||(Oe=Zt),B+=n.slice(j,Gt).replace(hy,n0),Ee&&(T=!0,B+=`' +
135
- __e(`+Ee+`) +
136
- '`),It&&(M=!0,B+=`';
137
- `+It+`;
138
- __p += '`),Oe&&(B+=`' +
139
- ((__t = (`+Oe+`)) == null ? '' : __t) +
140
- '`),j=Gt+ie.length,ie}),B+=`';
141
- `;var ne=Le.call(o,"variable")&&o.variable;if(!ne)B=`with (obj) {
142
- `+B+`
118
+ */var YC=Zi.exports,Eh;function XC(){return Eh||(Eh=1,function(e,r){(function(){var n,o="4.17.21",a=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",f="Expected a function",d="Invalid `variable` option passed into `_.template`",w="__lodash_hash_undefined__",S=500,y="__lodash_placeholder__",h=1,l=2,p=4,m=1,c=2,g=1,b=2,_=4,x=8,C=16,T=32,M=64,H=128,F=256,N=512,X=30,j="...",L=800,z=16,q=1,R=2,J=3,V=1/0,te=9007199254740991,le=17976931348623157e292,Z=NaN,ee=4294967295,ae=ee-1,fe=ee>>>1,oe=[["ary",H],["bind",g],["bindKey",b],["curry",x],["curryRight",C],["flip",N],["partial",T],["partialRight",M],["rearg",F]],ce="[object Arguments]",pe="[object Array]",ye="[object AsyncFunction]",ge="[object Boolean]",_e="[object Date]",Ae="[object DOMException]",Ue="[object Error]",ne="[object Function]",ct="[object GeneratorFunction]",tt="[object Map]",or="[object Number]",ho="[object Null]",kt="[object Object]",vo="[object Promise]",Ja="[object Proxy]",Ct="[object RegExp]",dt="[object Set]",Lr="[object String]",nn="[object Symbol]",ai="[object Undefined]",Fr="[object WeakMap]",mo="[object WeakSet]",$r="[object ArrayBuffer]",gr="[object DataView]",Qa="[object Float32Array]",es="[object Float64Array]",ts="[object Int8Array]",rs="[object Int16Array]",ns="[object Int32Array]",is="[object Uint8Array]",os="[object Uint8ClampedArray]",as="[object Uint16Array]",ss="[object Uint32Array]",bg=/\b__p \+= '';/g,Sg=/\b(__p \+=) '' \+/g,Eg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,rf=/&(?:amp|lt|gt|quot|#39);/g,nf=/[&<>"']/g,_g=RegExp(rf.source),xg=RegExp(nf.source),Og=/<%-([\s\S]+?)%>/g,Ag=/<%([\s\S]+?)%>/g,of=/<%=([\s\S]+?)%>/g,Tg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Cg=/^\w*$/,Pg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,us=/[\\^$.*+?()[\]{}|]/g,Rg=RegExp(us.source),ls=/^\s+/,Mg=/\s/,Ig=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Lg=/\{\n\/\* \[wrapped with (.+)\] \*/,Fg=/,? & /,$g=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Dg=/[()=,{}\[\]\/\s]/,kg=/\\(\\)?/g,Ng=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,af=/\w*$/,jg=/^[-+]0x[0-9a-f]+$/i,Wg=/^0b[01]+$/i,Ug=/^\[object .+?Constructor\]$/,zg=/^0o[0-7]+$/i,Bg=/^(?:0|[1-9]\d*)$/,Hg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,go=/($^)/,qg=/['\n\r\u2028\u2029\\]/g,yo="\\ud800-\\udfff",Zg="\\u0300-\\u036f",Gg="\\ufe20-\\ufe2f",Kg="\\u20d0-\\u20ff",sf=Zg+Gg+Kg,uf="\\u2700-\\u27bf",lf="a-z\\xdf-\\xf6\\xf8-\\xff",Vg="\\xac\\xb1\\xd7\\xf7",Yg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Xg="\\u2000-\\u206f",Jg=" \\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",ff="A-Z\\xc0-\\xd6\\xd8-\\xde",cf="\\ufe0e\\ufe0f",df=Vg+Yg+Xg+Jg,fs="['’]",Qg="["+yo+"]",pf="["+df+"]",wo="["+sf+"]",hf="\\d+",ey="["+uf+"]",vf="["+lf+"]",mf="[^"+yo+df+hf+uf+lf+ff+"]",cs="\\ud83c[\\udffb-\\udfff]",ty="(?:"+wo+"|"+cs+")",gf="[^"+yo+"]",ds="(?:\\ud83c[\\udde6-\\uddff]){2}",ps="[\\ud800-\\udbff][\\udc00-\\udfff]",Mn="["+ff+"]",yf="\\u200d",wf="(?:"+vf+"|"+mf+")",ry="(?:"+Mn+"|"+mf+")",bf="(?:"+fs+"(?:d|ll|m|re|s|t|ve))?",Sf="(?:"+fs+"(?:D|LL|M|RE|S|T|VE))?",Ef=ty+"?",_f="["+cf+"]?",ny="(?:"+yf+"(?:"+[gf,ds,ps].join("|")+")"+_f+Ef+")*",iy="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",oy="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",xf=_f+Ef+ny,ay="(?:"+[ey,ds,ps].join("|")+")"+xf,sy="(?:"+[gf+wo+"?",wo,ds,ps,Qg].join("|")+")",uy=RegExp(fs,"g"),ly=RegExp(wo,"g"),hs=RegExp(cs+"(?="+cs+")|"+sy+xf,"g"),fy=RegExp([Mn+"?"+vf+"+"+bf+"(?="+[pf,Mn,"$"].join("|")+")",ry+"+"+Sf+"(?="+[pf,Mn+wf,"$"].join("|")+")",Mn+"?"+wf+"+"+bf,Mn+"+"+Sf,oy,iy,hf,ay].join("|"),"g"),cy=RegExp("["+yf+yo+sf+cf+"]"),dy=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,py=["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"],hy=-1,ke={};ke[Qa]=ke[es]=ke[ts]=ke[rs]=ke[ns]=ke[is]=ke[os]=ke[as]=ke[ss]=!0,ke[ce]=ke[pe]=ke[$r]=ke[ge]=ke[gr]=ke[_e]=ke[Ue]=ke[ne]=ke[tt]=ke[or]=ke[kt]=ke[Ct]=ke[dt]=ke[Lr]=ke[Fr]=!1;var De={};De[ce]=De[pe]=De[$r]=De[gr]=De[ge]=De[_e]=De[Qa]=De[es]=De[ts]=De[rs]=De[ns]=De[tt]=De[or]=De[kt]=De[Ct]=De[dt]=De[Lr]=De[nn]=De[is]=De[os]=De[as]=De[ss]=!0,De[Ue]=De[ne]=De[Fr]=!1;var vy={À:"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"},my={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},gy={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},yy={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},wy=parseFloat,by=parseInt,Of=typeof aa=="object"&&aa&&aa.Object===Object&&aa,Sy=typeof self=="object"&&self&&self.Object===Object&&self,at=Of||Sy||Function("return this")(),vs=r&&!r.nodeType&&r,on=vs&&!0&&e&&!e.nodeType&&e,Af=on&&on.exports===vs,ms=Af&&Of.process,Nt=function(){try{var $=on&&on.require&&on.require("util").types;return $||ms&&ms.binding&&ms.binding("util")}catch{}}(),Tf=Nt&&Nt.isArrayBuffer,Cf=Nt&&Nt.isDate,Pf=Nt&&Nt.isMap,Rf=Nt&&Nt.isRegExp,Mf=Nt&&Nt.isSet,If=Nt&&Nt.isTypedArray;function Pt($,G,B){switch(B.length){case 0:return $.call(G);case 1:return $.call(G,B[0]);case 2:return $.call(G,B[0],B[1]);case 3:return $.call(G,B[0],B[1],B[2])}return $.apply(G,B)}function Ey($,G,B,se){for(var we=-1,Pe=$==null?0:$.length;++we<Pe;){var Ye=$[we];G(se,Ye,B(Ye),$)}return se}function jt($,G){for(var B=-1,se=$==null?0:$.length;++B<se&&G($[B],B,$)!==!1;);return $}function _y($,G){for(var B=$==null?0:$.length;B--&&G($[B],B,$)!==!1;);return $}function Lf($,G){for(var B=-1,se=$==null?0:$.length;++B<se;)if(!G($[B],B,$))return!1;return!0}function Dr($,G){for(var B=-1,se=$==null?0:$.length,we=0,Pe=[];++B<se;){var Ye=$[B];G(Ye,B,$)&&(Pe[we++]=Ye)}return Pe}function bo($,G){var B=$==null?0:$.length;return!!B&&In($,G,0)>-1}function gs($,G,B){for(var se=-1,we=$==null?0:$.length;++se<we;)if(B(G,$[se]))return!0;return!1}function Ne($,G){for(var B=-1,se=$==null?0:$.length,we=Array(se);++B<se;)we[B]=G($[B],B,$);return we}function kr($,G){for(var B=-1,se=G.length,we=$.length;++B<se;)$[we+B]=G[B];return $}function ys($,G,B,se){var we=-1,Pe=$==null?0:$.length;for(se&&Pe&&(B=$[++we]);++we<Pe;)B=G(B,$[we],we,$);return B}function xy($,G,B,se){var we=$==null?0:$.length;for(se&&we&&(B=$[--we]);we--;)B=G(B,$[we],we,$);return B}function ws($,G){for(var B=-1,se=$==null?0:$.length;++B<se;)if(G($[B],B,$))return!0;return!1}var Oy=bs("length");function Ay($){return $.split("")}function Ty($){return $.match($g)||[]}function Ff($,G,B){var se;return B($,function(we,Pe,Ye){if(G(we,Pe,Ye))return se=Pe,!1}),se}function So($,G,B,se){for(var we=$.length,Pe=B+(se?1:-1);se?Pe--:++Pe<we;)if(G($[Pe],Pe,$))return Pe;return-1}function In($,G,B){return G===G?jy($,G,B):So($,$f,B)}function Cy($,G,B,se){for(var we=B-1,Pe=$.length;++we<Pe;)if(se($[we],G))return we;return-1}function $f($){return $!==$}function Df($,G){var B=$==null?0:$.length;return B?Es($,G)/B:Z}function bs($){return function(G){return G==null?n:G[$]}}function Ss($){return function(G){return $==null?n:$[G]}}function kf($,G,B,se,we){return we($,function(Pe,Ye,$e){B=se?(se=!1,Pe):G(B,Pe,Ye,$e)}),B}function Py($,G){var B=$.length;for($.sort(G);B--;)$[B]=$[B].value;return $}function Es($,G){for(var B,se=-1,we=$.length;++se<we;){var Pe=G($[se]);Pe!==n&&(B=B===n?Pe:B+Pe)}return B}function _s($,G){for(var B=-1,se=Array($);++B<$;)se[B]=G(B);return se}function Ry($,G){return Ne(G,function(B){return[B,$[B]]})}function Nf($){return $&&$.slice(0,zf($)+1).replace(ls,"")}function Rt($){return function(G){return $(G)}}function xs($,G){return Ne(G,function(B){return $[B]})}function si($,G){return $.has(G)}function jf($,G){for(var B=-1,se=$.length;++B<se&&In(G,$[B],0)>-1;);return B}function Wf($,G){for(var B=$.length;B--&&In(G,$[B],0)>-1;);return B}function My($,G){for(var B=$.length,se=0;B--;)$[B]===G&&++se;return se}var Iy=Ss(vy),Ly=Ss(my);function Fy($){return"\\"+yy[$]}function $y($,G){return $==null?n:$[G]}function Ln($){return cy.test($)}function Dy($){return dy.test($)}function ky($){for(var G,B=[];!(G=$.next()).done;)B.push(G.value);return B}function Os($){var G=-1,B=Array($.size);return $.forEach(function(se,we){B[++G]=[we,se]}),B}function Uf($,G){return function(B){return $(G(B))}}function Nr($,G){for(var B=-1,se=$.length,we=0,Pe=[];++B<se;){var Ye=$[B];(Ye===G||Ye===y)&&($[B]=y,Pe[we++]=B)}return Pe}function Eo($){var G=-1,B=Array($.size);return $.forEach(function(se){B[++G]=se}),B}function Ny($){var G=-1,B=Array($.size);return $.forEach(function(se){B[++G]=[se,se]}),B}function jy($,G,B){for(var se=B-1,we=$.length;++se<we;)if($[se]===G)return se;return-1}function Wy($,G,B){for(var se=B+1;se--;)if($[se]===G)return se;return se}function Fn($){return Ln($)?zy($):Oy($)}function Jt($){return Ln($)?By($):Ay($)}function zf($){for(var G=$.length;G--&&Mg.test($.charAt(G)););return G}var Uy=Ss(gy);function zy($){for(var G=hs.lastIndex=0;hs.test($);)++G;return G}function By($){return $.match(hs)||[]}function Hy($){return $.match(fy)||[]}var qy=function $(G){G=G==null?at:$n.defaults(at.Object(),G,$n.pick(at,py));var B=G.Array,se=G.Date,we=G.Error,Pe=G.Function,Ye=G.Math,$e=G.Object,As=G.RegExp,Zy=G.String,Wt=G.TypeError,_o=B.prototype,Gy=Pe.prototype,Dn=$e.prototype,xo=G["__core-js_shared__"],Oo=Gy.toString,Le=Dn.hasOwnProperty,Ky=0,Bf=function(){var t=/[^.]+$/.exec(xo&&xo.keys&&xo.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Ao=Dn.toString,Vy=Oo.call($e),Yy=at._,Xy=As("^"+Oo.call(Le).replace(us,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),To=Af?G.Buffer:n,jr=G.Symbol,Co=G.Uint8Array,Hf=To?To.allocUnsafe:n,Po=Uf($e.getPrototypeOf,$e),qf=$e.create,Zf=Dn.propertyIsEnumerable,Ro=_o.splice,Gf=jr?jr.isConcatSpreadable:n,ui=jr?jr.iterator:n,an=jr?jr.toStringTag:n,Mo=function(){try{var t=cn($e,"defineProperty");return t({},"",{}),t}catch{}}(),Jy=G.clearTimeout!==at.clearTimeout&&G.clearTimeout,Qy=se&&se.now!==at.Date.now&&se.now,e0=G.setTimeout!==at.setTimeout&&G.setTimeout,Io=Ye.ceil,Lo=Ye.floor,Ts=$e.getOwnPropertySymbols,t0=To?To.isBuffer:n,Kf=G.isFinite,r0=_o.join,n0=Uf($e.keys,$e),Xe=Ye.max,pt=Ye.min,i0=se.now,o0=G.parseInt,Vf=Ye.random,a0=_o.reverse,Cs=cn(G,"DataView"),li=cn(G,"Map"),Ps=cn(G,"Promise"),kn=cn(G,"Set"),fi=cn(G,"WeakMap"),ci=cn($e,"create"),Fo=fi&&new fi,Nn={},s0=dn(Cs),u0=dn(li),l0=dn(Ps),f0=dn(kn),c0=dn(fi),$o=jr?jr.prototype:n,di=$o?$o.valueOf:n,Yf=$o?$o.toString:n;function O(t){if(He(t)&&!be(t)&&!(t instanceof Te)){if(t instanceof Ut)return t;if(Le.call(t,"__wrapped__"))return Xc(t)}return new Ut(t)}var jn=function(){function t(){}return function(i){if(!ze(i))return{};if(qf)return qf(i);t.prototype=i;var s=new t;return t.prototype=n,s}}();function Do(){}function Ut(t,i){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=n}O.templateSettings={escape:Og,evaluate:Ag,interpolate:of,variable:"",imports:{_:O}},O.prototype=Do.prototype,O.prototype.constructor=O,Ut.prototype=jn(Do.prototype),Ut.prototype.constructor=Ut;function Te(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ee,this.__views__=[]}function d0(){var t=new Te(this.__wrapped__);return t.__actions__=St(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=St(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=St(this.__views__),t}function p0(){if(this.__filtered__){var t=new Te(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function h0(){var t=this.__wrapped__.value(),i=this.__dir__,s=be(t),v=i<0,E=s?t.length:0,A=A1(0,E,this.__views__),P=A.start,I=A.end,k=I-P,K=v?I:P-1,Y=this.__iteratees__,Q=Y.length,ie=0,ue=pt(k,this.__takeCount__);if(!s||!v&&E==k&&ue==k)return bc(t,this.__actions__);var he=[];e:for(;k--&&ie<ue;){K+=i;for(var Ee=-1,ve=t[K];++Ee<Q;){var Oe=Y[Ee],Ce=Oe.iteratee,Lt=Oe.type,wt=Ce(ve);if(Lt==R)ve=wt;else if(!wt){if(Lt==q)continue e;break e}}he[ie++]=ve}return he}Te.prototype=jn(Do.prototype),Te.prototype.constructor=Te;function sn(t){var i=-1,s=t==null?0:t.length;for(this.clear();++i<s;){var v=t[i];this.set(v[0],v[1])}}function v0(){this.__data__=ci?ci(null):{},this.size=0}function m0(t){var i=this.has(t)&&delete this.__data__[t];return this.size-=i?1:0,i}function g0(t){var i=this.__data__;if(ci){var s=i[t];return s===w?n:s}return Le.call(i,t)?i[t]:n}function y0(t){var i=this.__data__;return ci?i[t]!==n:Le.call(i,t)}function w0(t,i){var s=this.__data__;return this.size+=this.has(t)?0:1,s[t]=ci&&i===n?w:i,this}sn.prototype.clear=v0,sn.prototype.delete=m0,sn.prototype.get=g0,sn.prototype.has=y0,sn.prototype.set=w0;function yr(t){var i=-1,s=t==null?0:t.length;for(this.clear();++i<s;){var v=t[i];this.set(v[0],v[1])}}function b0(){this.__data__=[],this.size=0}function S0(t){var i=this.__data__,s=ko(i,t);if(s<0)return!1;var v=i.length-1;return s==v?i.pop():Ro.call(i,s,1),--this.size,!0}function E0(t){var i=this.__data__,s=ko(i,t);return s<0?n:i[s][1]}function _0(t){return ko(this.__data__,t)>-1}function x0(t,i){var s=this.__data__,v=ko(s,t);return v<0?(++this.size,s.push([t,i])):s[v][1]=i,this}yr.prototype.clear=b0,yr.prototype.delete=S0,yr.prototype.get=E0,yr.prototype.has=_0,yr.prototype.set=x0;function wr(t){var i=-1,s=t==null?0:t.length;for(this.clear();++i<s;){var v=t[i];this.set(v[0],v[1])}}function O0(){this.size=0,this.__data__={hash:new sn,map:new(li||yr),string:new sn}}function A0(t){var i=Vo(this,t).delete(t);return this.size-=i?1:0,i}function T0(t){return Vo(this,t).get(t)}function C0(t){return Vo(this,t).has(t)}function P0(t,i){var s=Vo(this,t),v=s.size;return s.set(t,i),this.size+=s.size==v?0:1,this}wr.prototype.clear=O0,wr.prototype.delete=A0,wr.prototype.get=T0,wr.prototype.has=C0,wr.prototype.set=P0;function un(t){var i=-1,s=t==null?0:t.length;for(this.__data__=new wr;++i<s;)this.add(t[i])}function R0(t){return this.__data__.set(t,w),this}function M0(t){return this.__data__.has(t)}un.prototype.add=un.prototype.push=R0,un.prototype.has=M0;function Qt(t){var i=this.__data__=new yr(t);this.size=i.size}function I0(){this.__data__=new yr,this.size=0}function L0(t){var i=this.__data__,s=i.delete(t);return this.size=i.size,s}function F0(t){return this.__data__.get(t)}function $0(t){return this.__data__.has(t)}function D0(t,i){var s=this.__data__;if(s instanceof yr){var v=s.__data__;if(!li||v.length<a-1)return v.push([t,i]),this.size=++s.size,this;s=this.__data__=new wr(v)}return s.set(t,i),this.size=s.size,this}Qt.prototype.clear=I0,Qt.prototype.delete=L0,Qt.prototype.get=F0,Qt.prototype.has=$0,Qt.prototype.set=D0;function Xf(t,i){var s=be(t),v=!s&&pn(t),E=!s&&!v&&Hr(t),A=!s&&!v&&!E&&Bn(t),P=s||v||E||A,I=P?_s(t.length,Zy):[],k=I.length;for(var K in t)(i||Le.call(t,K))&&!(P&&(K=="length"||E&&(K=="offset"||K=="parent")||A&&(K=="buffer"||K=="byteLength"||K=="byteOffset")||_r(K,k)))&&I.push(K);return I}function Jf(t){var i=t.length;return i?t[Ws(0,i-1)]:n}function k0(t,i){return Yo(St(t),ln(i,0,t.length))}function N0(t){return Yo(St(t))}function Rs(t,i,s){(s!==n&&!er(t[i],s)||s===n&&!(i in t))&&br(t,i,s)}function pi(t,i,s){var v=t[i];(!(Le.call(t,i)&&er(v,s))||s===n&&!(i in t))&&br(t,i,s)}function ko(t,i){for(var s=t.length;s--;)if(er(t[s][0],i))return s;return-1}function j0(t,i,s,v){return Wr(t,function(E,A,P){i(v,E,s(E),P)}),v}function Qf(t,i){return t&&sr(i,rt(i),t)}function W0(t,i){return t&&sr(i,_t(i),t)}function br(t,i,s){i=="__proto__"&&Mo?Mo(t,i,{configurable:!0,enumerable:!0,value:s,writable:!0}):t[i]=s}function Ms(t,i){for(var s=-1,v=i.length,E=B(v),A=t==null;++s<v;)E[s]=A?n:cu(t,i[s]);return E}function ln(t,i,s){return t===t&&(s!==n&&(t=t<=s?t:s),i!==n&&(t=t>=i?t:i)),t}function zt(t,i,s,v,E,A){var P,I=i&h,k=i&l,K=i&p;if(s&&(P=E?s(t,v,E,A):s(t)),P!==n)return P;if(!ze(t))return t;var Y=be(t);if(Y){if(P=C1(t),!I)return St(t,P)}else{var Q=ht(t),ie=Q==ne||Q==ct;if(Hr(t))return _c(t,I);if(Q==kt||Q==ce||ie&&!E){if(P=k||ie?{}:zc(t),!I)return k?g1(t,W0(P,t)):m1(t,Qf(P,t))}else{if(!De[Q])return E?t:{};P=P1(t,Q,I)}}A||(A=new Qt);var ue=A.get(t);if(ue)return ue;A.set(t,P),gd(t)?t.forEach(function(ve){P.add(zt(ve,i,s,ve,t,A))}):vd(t)&&t.forEach(function(ve,Oe){P.set(Oe,zt(ve,i,s,Oe,t,A))});var he=K?k?Xs:Ys:k?_t:rt,Ee=Y?n:he(t);return jt(Ee||t,function(ve,Oe){Ee&&(Oe=ve,ve=t[Oe]),pi(P,Oe,zt(ve,i,s,Oe,t,A))}),P}function U0(t){var i=rt(t);return function(s){return ec(s,t,i)}}function ec(t,i,s){var v=s.length;if(t==null)return!v;for(t=$e(t);v--;){var E=s[v],A=i[E],P=t[E];if(P===n&&!(E in t)||!A(P))return!1}return!0}function tc(t,i,s){if(typeof t!="function")throw new Wt(f);return bi(function(){t.apply(n,s)},i)}function hi(t,i,s,v){var E=-1,A=bo,P=!0,I=t.length,k=[],K=i.length;if(!I)return k;s&&(i=Ne(i,Rt(s))),v?(A=gs,P=!1):i.length>=a&&(A=si,P=!1,i=new un(i));e:for(;++E<I;){var Y=t[E],Q=s==null?Y:s(Y);if(Y=v||Y!==0?Y:0,P&&Q===Q){for(var ie=K;ie--;)if(i[ie]===Q)continue e;k.push(Y)}else A(i,Q,v)||k.push(Y)}return k}var Wr=Cc(ar),rc=Cc(Ls,!0);function z0(t,i){var s=!0;return Wr(t,function(v,E,A){return s=!!i(v,E,A),s}),s}function No(t,i,s){for(var v=-1,E=t.length;++v<E;){var A=t[v],P=i(A);if(P!=null&&(I===n?P===P&&!It(P):s(P,I)))var I=P,k=A}return k}function B0(t,i,s,v){var E=t.length;for(s=Se(s),s<0&&(s=-s>E?0:E+s),v=v===n||v>E?E:Se(v),v<0&&(v+=E),v=s>v?0:wd(v);s<v;)t[s++]=i;return t}function nc(t,i){var s=[];return Wr(t,function(v,E,A){i(v,E,A)&&s.push(v)}),s}function st(t,i,s,v,E){var A=-1,P=t.length;for(s||(s=M1),E||(E=[]);++A<P;){var I=t[A];i>0&&s(I)?i>1?st(I,i-1,s,v,E):kr(E,I):v||(E[E.length]=I)}return E}var Is=Pc(),ic=Pc(!0);function ar(t,i){return t&&Is(t,i,rt)}function Ls(t,i){return t&&ic(t,i,rt)}function jo(t,i){return Dr(i,function(s){return xr(t[s])})}function fn(t,i){i=zr(i,t);for(var s=0,v=i.length;t!=null&&s<v;)t=t[ur(i[s++])];return s&&s==v?t:n}function oc(t,i,s){var v=i(t);return be(t)?v:kr(v,s(t))}function gt(t){return t==null?t===n?ai:ho:an&&an in $e(t)?O1(t):N1(t)}function Fs(t,i){return t>i}function H0(t,i){return t!=null&&Le.call(t,i)}function q0(t,i){return t!=null&&i in $e(t)}function Z0(t,i,s){return t>=pt(i,s)&&t<Xe(i,s)}function $s(t,i,s){for(var v=s?gs:bo,E=t[0].length,A=t.length,P=A,I=B(A),k=1/0,K=[];P--;){var Y=t[P];P&&i&&(Y=Ne(Y,Rt(i))),k=pt(Y.length,k),I[P]=!s&&(i||E>=120&&Y.length>=120)?new un(P&&Y):n}Y=t[0];var Q=-1,ie=I[0];e:for(;++Q<E&&K.length<k;){var ue=Y[Q],he=i?i(ue):ue;if(ue=s||ue!==0?ue:0,!(ie?si(ie,he):v(K,he,s))){for(P=A;--P;){var Ee=I[P];if(!(Ee?si(Ee,he):v(t[P],he,s)))continue e}ie&&ie.push(he),K.push(ue)}}return K}function G0(t,i,s,v){return ar(t,function(E,A,P){i(v,s(E),A,P)}),v}function vi(t,i,s){i=zr(i,t),t=Zc(t,i);var v=t==null?t:t[ur(Ht(i))];return v==null?n:Pt(v,t,s)}function ac(t){return He(t)&&gt(t)==ce}function K0(t){return He(t)&&gt(t)==$r}function V0(t){return He(t)&&gt(t)==_e}function mi(t,i,s,v,E){return t===i?!0:t==null||i==null||!He(t)&&!He(i)?t!==t&&i!==i:Y0(t,i,s,v,mi,E)}function Y0(t,i,s,v,E,A){var P=be(t),I=be(i),k=P?pe:ht(t),K=I?pe:ht(i);k=k==ce?kt:k,K=K==ce?kt:K;var Y=k==kt,Q=K==kt,ie=k==K;if(ie&&Hr(t)){if(!Hr(i))return!1;P=!0,Y=!1}if(ie&&!Y)return A||(A=new Qt),P||Bn(t)?jc(t,i,s,v,E,A):_1(t,i,k,s,v,E,A);if(!(s&m)){var ue=Y&&Le.call(t,"__wrapped__"),he=Q&&Le.call(i,"__wrapped__");if(ue||he){var Ee=ue?t.value():t,ve=he?i.value():i;return A||(A=new Qt),E(Ee,ve,s,v,A)}}return ie?(A||(A=new Qt),x1(t,i,s,v,E,A)):!1}function X0(t){return He(t)&&ht(t)==tt}function Ds(t,i,s,v){var E=s.length,A=E,P=!v;if(t==null)return!A;for(t=$e(t);E--;){var I=s[E];if(P&&I[2]?I[1]!==t[I[0]]:!(I[0]in t))return!1}for(;++E<A;){I=s[E];var k=I[0],K=t[k],Y=I[1];if(P&&I[2]){if(K===n&&!(k in t))return!1}else{var Q=new Qt;if(v)var ie=v(K,Y,k,t,i,Q);if(!(ie===n?mi(Y,K,m|c,v,Q):ie))return!1}}return!0}function sc(t){if(!ze(t)||L1(t))return!1;var i=xr(t)?Xy:Ug;return i.test(dn(t))}function J0(t){return He(t)&&gt(t)==Ct}function Q0(t){return He(t)&&ht(t)==dt}function e1(t){return He(t)&&ra(t.length)&&!!ke[gt(t)]}function uc(t){return typeof t=="function"?t:t==null?xt:typeof t=="object"?be(t)?cc(t[0],t[1]):fc(t):Rd(t)}function ks(t){if(!wi(t))return n0(t);var i=[];for(var s in $e(t))Le.call(t,s)&&s!="constructor"&&i.push(s);return i}function t1(t){if(!ze(t))return k1(t);var i=wi(t),s=[];for(var v in t)v=="constructor"&&(i||!Le.call(t,v))||s.push(v);return s}function Ns(t,i){return t<i}function lc(t,i){var s=-1,v=Et(t)?B(t.length):[];return Wr(t,function(E,A,P){v[++s]=i(E,A,P)}),v}function fc(t){var i=Qs(t);return i.length==1&&i[0][2]?Hc(i[0][0],i[0][1]):function(s){return s===t||Ds(s,t,i)}}function cc(t,i){return tu(t)&&Bc(i)?Hc(ur(t),i):function(s){var v=cu(s,t);return v===n&&v===i?du(s,t):mi(i,v,m|c)}}function Wo(t,i,s,v,E){t!==i&&Is(i,function(A,P){if(E||(E=new Qt),ze(A))r1(t,i,P,s,Wo,v,E);else{var I=v?v(nu(t,P),A,P+"",t,i,E):n;I===n&&(I=A),Rs(t,P,I)}},_t)}function r1(t,i,s,v,E,A,P){var I=nu(t,s),k=nu(i,s),K=P.get(k);if(K){Rs(t,s,K);return}var Y=A?A(I,k,s+"",t,i,P):n,Q=Y===n;if(Q){var ie=be(k),ue=!ie&&Hr(k),he=!ie&&!ue&&Bn(k);Y=k,ie||ue||he?be(I)?Y=I:qe(I)?Y=St(I):ue?(Q=!1,Y=_c(k,!0)):he?(Q=!1,Y=xc(k,!0)):Y=[]:Si(k)||pn(k)?(Y=I,pn(I)?Y=bd(I):(!ze(I)||xr(I))&&(Y=zc(k))):Q=!1}Q&&(P.set(k,Y),E(Y,k,v,A,P),P.delete(k)),Rs(t,s,Y)}function dc(t,i){var s=t.length;if(s)return i+=i<0?s:0,_r(i,s)?t[i]:n}function pc(t,i,s){i.length?i=Ne(i,function(A){return be(A)?function(P){return fn(P,A.length===1?A[0]:A)}:A}):i=[xt];var v=-1;i=Ne(i,Rt(de()));var E=lc(t,function(A,P,I){var k=Ne(i,function(K){return K(A)});return{criteria:k,index:++v,value:A}});return Py(E,function(A,P){return v1(A,P,s)})}function n1(t,i){return hc(t,i,function(s,v){return du(t,v)})}function hc(t,i,s){for(var v=-1,E=i.length,A={};++v<E;){var P=i[v],I=fn(t,P);s(I,P)&&gi(A,zr(P,t),I)}return A}function i1(t){return function(i){return fn(i,t)}}function js(t,i,s,v){var E=v?Cy:In,A=-1,P=i.length,I=t;for(t===i&&(i=St(i)),s&&(I=Ne(t,Rt(s)));++A<P;)for(var k=0,K=i[A],Y=s?s(K):K;(k=E(I,Y,k,v))>-1;)I!==t&&Ro.call(I,k,1),Ro.call(t,k,1);return t}function vc(t,i){for(var s=t?i.length:0,v=s-1;s--;){var E=i[s];if(s==v||E!==A){var A=E;_r(E)?Ro.call(t,E,1):Bs(t,E)}}return t}function Ws(t,i){return t+Lo(Vf()*(i-t+1))}function o1(t,i,s,v){for(var E=-1,A=Xe(Io((i-t)/(s||1)),0),P=B(A);A--;)P[v?A:++E]=t,t+=s;return P}function Us(t,i){var s="";if(!t||i<1||i>te)return s;do i%2&&(s+=t),i=Lo(i/2),i&&(t+=t);while(i);return s}function xe(t,i){return iu(qc(t,i,xt),t+"")}function a1(t){return Jf(Hn(t))}function s1(t,i){var s=Hn(t);return Yo(s,ln(i,0,s.length))}function gi(t,i,s,v){if(!ze(t))return t;i=zr(i,t);for(var E=-1,A=i.length,P=A-1,I=t;I!=null&&++E<A;){var k=ur(i[E]),K=s;if(k==="__proto__"||k==="constructor"||k==="prototype")return t;if(E!=P){var Y=I[k];K=v?v(Y,k,I):n,K===n&&(K=ze(Y)?Y:_r(i[E+1])?[]:{})}pi(I,k,K),I=I[k]}return t}var mc=Fo?function(t,i){return Fo.set(t,i),t}:xt,u1=Mo?function(t,i){return Mo(t,"toString",{configurable:!0,enumerable:!1,value:hu(i),writable:!0})}:xt;function l1(t){return Yo(Hn(t))}function Bt(t,i,s){var v=-1,E=t.length;i<0&&(i=-i>E?0:E+i),s=s>E?E:s,s<0&&(s+=E),E=i>s?0:s-i>>>0,i>>>=0;for(var A=B(E);++v<E;)A[v]=t[v+i];return A}function f1(t,i){var s;return Wr(t,function(v,E,A){return s=i(v,E,A),!s}),!!s}function Uo(t,i,s){var v=0,E=t==null?v:t.length;if(typeof i=="number"&&i===i&&E<=fe){for(;v<E;){var A=v+E>>>1,P=t[A];P!==null&&!It(P)&&(s?P<=i:P<i)?v=A+1:E=A}return E}return zs(t,i,xt,s)}function zs(t,i,s,v){var E=0,A=t==null?0:t.length;if(A===0)return 0;i=s(i);for(var P=i!==i,I=i===null,k=It(i),K=i===n;E<A;){var Y=Lo((E+A)/2),Q=s(t[Y]),ie=Q!==n,ue=Q===null,he=Q===Q,Ee=It(Q);if(P)var ve=v||he;else K?ve=he&&(v||ie):I?ve=he&&ie&&(v||!ue):k?ve=he&&ie&&!ue&&(v||!Ee):ue||Ee?ve=!1:ve=v?Q<=i:Q<i;ve?E=Y+1:A=Y}return pt(A,ae)}function gc(t,i){for(var s=-1,v=t.length,E=0,A=[];++s<v;){var P=t[s],I=i?i(P):P;if(!s||!er(I,k)){var k=I;A[E++]=P===0?0:P}}return A}function yc(t){return typeof t=="number"?t:It(t)?Z:+t}function Mt(t){if(typeof t=="string")return t;if(be(t))return Ne(t,Mt)+"";if(It(t))return Yf?Yf.call(t):"";var i=t+"";return i=="0"&&1/t==-V?"-0":i}function Ur(t,i,s){var v=-1,E=bo,A=t.length,P=!0,I=[],k=I;if(s)P=!1,E=gs;else if(A>=a){var K=i?null:S1(t);if(K)return Eo(K);P=!1,E=si,k=new un}else k=i?[]:I;e:for(;++v<A;){var Y=t[v],Q=i?i(Y):Y;if(Y=s||Y!==0?Y:0,P&&Q===Q){for(var ie=k.length;ie--;)if(k[ie]===Q)continue e;i&&k.push(Q),I.push(Y)}else E(k,Q,s)||(k!==I&&k.push(Q),I.push(Y))}return I}function Bs(t,i){return i=zr(i,t),t=Zc(t,i),t==null||delete t[ur(Ht(i))]}function wc(t,i,s,v){return gi(t,i,s(fn(t,i)),v)}function zo(t,i,s,v){for(var E=t.length,A=v?E:-1;(v?A--:++A<E)&&i(t[A],A,t););return s?Bt(t,v?0:A,v?A+1:E):Bt(t,v?A+1:0,v?E:A)}function bc(t,i){var s=t;return s instanceof Te&&(s=s.value()),ys(i,function(v,E){return E.func.apply(E.thisArg,kr([v],E.args))},s)}function Hs(t,i,s){var v=t.length;if(v<2)return v?Ur(t[0]):[];for(var E=-1,A=B(v);++E<v;)for(var P=t[E],I=-1;++I<v;)I!=E&&(A[E]=hi(A[E]||P,t[I],i,s));return Ur(st(A,1),i,s)}function Sc(t,i,s){for(var v=-1,E=t.length,A=i.length,P={};++v<E;){var I=v<A?i[v]:n;s(P,t[v],I)}return P}function qs(t){return qe(t)?t:[]}function Zs(t){return typeof t=="function"?t:xt}function zr(t,i){return be(t)?t:tu(t,i)?[t]:Yc(Re(t))}var c1=xe;function Br(t,i,s){var v=t.length;return s=s===n?v:s,!i&&s>=v?t:Bt(t,i,s)}var Ec=Jy||function(t){return at.clearTimeout(t)};function _c(t,i){if(i)return t.slice();var s=t.length,v=Hf?Hf(s):new t.constructor(s);return t.copy(v),v}function Gs(t){var i=new t.constructor(t.byteLength);return new Co(i).set(new Co(t)),i}function d1(t,i){var s=i?Gs(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.byteLength)}function p1(t){var i=new t.constructor(t.source,af.exec(t));return i.lastIndex=t.lastIndex,i}function h1(t){return di?$e(di.call(t)):{}}function xc(t,i){var s=i?Gs(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.length)}function Oc(t,i){if(t!==i){var s=t!==n,v=t===null,E=t===t,A=It(t),P=i!==n,I=i===null,k=i===i,K=It(i);if(!I&&!K&&!A&&t>i||A&&P&&k&&!I&&!K||v&&P&&k||!s&&k||!E)return 1;if(!v&&!A&&!K&&t<i||K&&s&&E&&!v&&!A||I&&s&&E||!P&&E||!k)return-1}return 0}function v1(t,i,s){for(var v=-1,E=t.criteria,A=i.criteria,P=E.length,I=s.length;++v<P;){var k=Oc(E[v],A[v]);if(k){if(v>=I)return k;var K=s[v];return k*(K=="desc"?-1:1)}}return t.index-i.index}function Ac(t,i,s,v){for(var E=-1,A=t.length,P=s.length,I=-1,k=i.length,K=Xe(A-P,0),Y=B(k+K),Q=!v;++I<k;)Y[I]=i[I];for(;++E<P;)(Q||E<A)&&(Y[s[E]]=t[E]);for(;K--;)Y[I++]=t[E++];return Y}function Tc(t,i,s,v){for(var E=-1,A=t.length,P=-1,I=s.length,k=-1,K=i.length,Y=Xe(A-I,0),Q=B(Y+K),ie=!v;++E<Y;)Q[E]=t[E];for(var ue=E;++k<K;)Q[ue+k]=i[k];for(;++P<I;)(ie||E<A)&&(Q[ue+s[P]]=t[E++]);return Q}function St(t,i){var s=-1,v=t.length;for(i||(i=B(v));++s<v;)i[s]=t[s];return i}function sr(t,i,s,v){var E=!s;s||(s={});for(var A=-1,P=i.length;++A<P;){var I=i[A],k=v?v(s[I],t[I],I,s,t):n;k===n&&(k=t[I]),E?br(s,I,k):pi(s,I,k)}return s}function m1(t,i){return sr(t,eu(t),i)}function g1(t,i){return sr(t,Wc(t),i)}function Bo(t,i){return function(s,v){var E=be(s)?Ey:j0,A=i?i():{};return E(s,t,de(v,2),A)}}function Wn(t){return xe(function(i,s){var v=-1,E=s.length,A=E>1?s[E-1]:n,P=E>2?s[2]:n;for(A=t.length>3&&typeof A=="function"?(E--,A):n,P&&yt(s[0],s[1],P)&&(A=E<3?n:A,E=1),i=$e(i);++v<E;){var I=s[v];I&&t(i,I,v,A)}return i})}function Cc(t,i){return function(s,v){if(s==null)return s;if(!Et(s))return t(s,v);for(var E=s.length,A=i?E:-1,P=$e(s);(i?A--:++A<E)&&v(P[A],A,P)!==!1;);return s}}function Pc(t){return function(i,s,v){for(var E=-1,A=$e(i),P=v(i),I=P.length;I--;){var k=P[t?I:++E];if(s(A[k],k,A)===!1)break}return i}}function y1(t,i,s){var v=i&g,E=yi(t);function A(){var P=this&&this!==at&&this instanceof A?E:t;return P.apply(v?s:this,arguments)}return A}function Rc(t){return function(i){i=Re(i);var s=Ln(i)?Jt(i):n,v=s?s[0]:i.charAt(0),E=s?Br(s,1).join(""):i.slice(1);return v[t]()+E}}function Un(t){return function(i){return ys(Cd(Td(i).replace(uy,"")),t,"")}}function yi(t){return function(){var i=arguments;switch(i.length){case 0:return new t;case 1:return new t(i[0]);case 2:return new t(i[0],i[1]);case 3:return new t(i[0],i[1],i[2]);case 4:return new t(i[0],i[1],i[2],i[3]);case 5:return new t(i[0],i[1],i[2],i[3],i[4]);case 6:return new t(i[0],i[1],i[2],i[3],i[4],i[5]);case 7:return new t(i[0],i[1],i[2],i[3],i[4],i[5],i[6])}var s=jn(t.prototype),v=t.apply(s,i);return ze(v)?v:s}}function w1(t,i,s){var v=yi(t);function E(){for(var A=arguments.length,P=B(A),I=A,k=zn(E);I--;)P[I]=arguments[I];var K=A<3&&P[0]!==k&&P[A-1]!==k?[]:Nr(P,k);if(A-=K.length,A<s)return $c(t,i,Ho,E.placeholder,n,P,K,n,n,s-A);var Y=this&&this!==at&&this instanceof E?v:t;return Pt(Y,this,P)}return E}function Mc(t){return function(i,s,v){var E=$e(i);if(!Et(i)){var A=de(s,3);i=rt(i),s=function(I){return A(E[I],I,E)}}var P=t(i,s,v);return P>-1?E[A?i[P]:P]:n}}function Ic(t){return Er(function(i){var s=i.length,v=s,E=Ut.prototype.thru;for(t&&i.reverse();v--;){var A=i[v];if(typeof A!="function")throw new Wt(f);if(E&&!P&&Ko(A)=="wrapper")var P=new Ut([],!0)}for(v=P?v:s;++v<s;){A=i[v];var I=Ko(A),k=I=="wrapper"?Js(A):n;k&&ru(k[0])&&k[1]==(H|x|T|F)&&!k[4].length&&k[9]==1?P=P[Ko(k[0])].apply(P,k[3]):P=A.length==1&&ru(A)?P[I]():P.thru(A)}return function(){var K=arguments,Y=K[0];if(P&&K.length==1&&be(Y))return P.plant(Y).value();for(var Q=0,ie=s?i[Q].apply(this,K):Y;++Q<s;)ie=i[Q].call(this,ie);return ie}})}function Ho(t,i,s,v,E,A,P,I,k,K){var Y=i&H,Q=i&g,ie=i&b,ue=i&(x|C),he=i&N,Ee=ie?n:yi(t);function ve(){for(var Oe=arguments.length,Ce=B(Oe),Lt=Oe;Lt--;)Ce[Lt]=arguments[Lt];if(ue)var wt=zn(ve),Ft=My(Ce,wt);if(v&&(Ce=Ac(Ce,v,E,ue)),A&&(Ce=Tc(Ce,A,P,ue)),Oe-=Ft,ue&&Oe<K){var Ze=Nr(Ce,wt);return $c(t,i,Ho,ve.placeholder,s,Ce,Ze,I,k,K-Oe)}var tr=Q?s:this,Ar=ie?tr[t]:t;return Oe=Ce.length,I?Ce=j1(Ce,I):he&&Oe>1&&Ce.reverse(),Y&&k<Oe&&(Ce.length=k),this&&this!==at&&this instanceof ve&&(Ar=Ee||yi(Ar)),Ar.apply(tr,Ce)}return ve}function Lc(t,i){return function(s,v){return G0(s,t,i(v),{})}}function qo(t,i){return function(s,v){var E;if(s===n&&v===n)return i;if(s!==n&&(E=s),v!==n){if(E===n)return v;typeof s=="string"||typeof v=="string"?(s=Mt(s),v=Mt(v)):(s=yc(s),v=yc(v)),E=t(s,v)}return E}}function Ks(t){return Er(function(i){return i=Ne(i,Rt(de())),xe(function(s){var v=this;return t(i,function(E){return Pt(E,v,s)})})})}function Zo(t,i){i=i===n?" ":Mt(i);var s=i.length;if(s<2)return s?Us(i,t):i;var v=Us(i,Io(t/Fn(i)));return Ln(i)?Br(Jt(v),0,t).join(""):v.slice(0,t)}function b1(t,i,s,v){var E=i&g,A=yi(t);function P(){for(var I=-1,k=arguments.length,K=-1,Y=v.length,Q=B(Y+k),ie=this&&this!==at&&this instanceof P?A:t;++K<Y;)Q[K]=v[K];for(;k--;)Q[K++]=arguments[++I];return Pt(ie,E?s:this,Q)}return P}function Fc(t){return function(i,s,v){return v&&typeof v!="number"&&yt(i,s,v)&&(s=v=n),i=Or(i),s===n?(s=i,i=0):s=Or(s),v=v===n?i<s?1:-1:Or(v),o1(i,s,v,t)}}function Go(t){return function(i,s){return typeof i=="string"&&typeof s=="string"||(i=qt(i),s=qt(s)),t(i,s)}}function $c(t,i,s,v,E,A,P,I,k,K){var Y=i&x,Q=Y?P:n,ie=Y?n:P,ue=Y?A:n,he=Y?n:A;i|=Y?T:M,i&=~(Y?M:T),i&_||(i&=-4);var Ee=[t,i,E,ue,Q,he,ie,I,k,K],ve=s.apply(n,Ee);return ru(t)&&Gc(ve,Ee),ve.placeholder=v,Kc(ve,t,i)}function Vs(t){var i=Ye[t];return function(s,v){if(s=qt(s),v=v==null?0:pt(Se(v),292),v&&Kf(s)){var E=(Re(s)+"e").split("e"),A=i(E[0]+"e"+(+E[1]+v));return E=(Re(A)+"e").split("e"),+(E[0]+"e"+(+E[1]-v))}return i(s)}}var S1=kn&&1/Eo(new kn([,-0]))[1]==V?function(t){return new kn(t)}:gu;function Dc(t){return function(i){var s=ht(i);return s==tt?Os(i):s==dt?Ny(i):Ry(i,t(i))}}function Sr(t,i,s,v,E,A,P,I){var k=i&b;if(!k&&typeof t!="function")throw new Wt(f);var K=v?v.length:0;if(K||(i&=-97,v=E=n),P=P===n?P:Xe(Se(P),0),I=I===n?I:Se(I),K-=E?E.length:0,i&M){var Y=v,Q=E;v=E=n}var ie=k?n:Js(t),ue=[t,i,s,v,E,Y,Q,A,P,I];if(ie&&D1(ue,ie),t=ue[0],i=ue[1],s=ue[2],v=ue[3],E=ue[4],I=ue[9]=ue[9]===n?k?0:t.length:Xe(ue[9]-K,0),!I&&i&(x|C)&&(i&=-25),!i||i==g)var he=y1(t,i,s);else i==x||i==C?he=w1(t,i,I):(i==T||i==(g|T))&&!E.length?he=b1(t,i,s,v):he=Ho.apply(n,ue);var Ee=ie?mc:Gc;return Kc(Ee(he,ue),t,i)}function kc(t,i,s,v){return t===n||er(t,Dn[s])&&!Le.call(v,s)?i:t}function Nc(t,i,s,v,E,A){return ze(t)&&ze(i)&&(A.set(i,t),Wo(t,i,n,Nc,A),A.delete(i)),t}function E1(t){return Si(t)?n:t}function jc(t,i,s,v,E,A){var P=s&m,I=t.length,k=i.length;if(I!=k&&!(P&&k>I))return!1;var K=A.get(t),Y=A.get(i);if(K&&Y)return K==i&&Y==t;var Q=-1,ie=!0,ue=s&c?new un:n;for(A.set(t,i),A.set(i,t);++Q<I;){var he=t[Q],Ee=i[Q];if(v)var ve=P?v(Ee,he,Q,i,t,A):v(he,Ee,Q,t,i,A);if(ve!==n){if(ve)continue;ie=!1;break}if(ue){if(!ws(i,function(Oe,Ce){if(!si(ue,Ce)&&(he===Oe||E(he,Oe,s,v,A)))return ue.push(Ce)})){ie=!1;break}}else if(!(he===Ee||E(he,Ee,s,v,A))){ie=!1;break}}return A.delete(t),A.delete(i),ie}function _1(t,i,s,v,E,A,P){switch(s){case gr:if(t.byteLength!=i.byteLength||t.byteOffset!=i.byteOffset)return!1;t=t.buffer,i=i.buffer;case $r:return!(t.byteLength!=i.byteLength||!A(new Co(t),new Co(i)));case ge:case _e:case or:return er(+t,+i);case Ue:return t.name==i.name&&t.message==i.message;case Ct:case Lr:return t==i+"";case tt:var I=Os;case dt:var k=v&m;if(I||(I=Eo),t.size!=i.size&&!k)return!1;var K=P.get(t);if(K)return K==i;v|=c,P.set(t,i);var Y=jc(I(t),I(i),v,E,A,P);return P.delete(t),Y;case nn:if(di)return di.call(t)==di.call(i)}return!1}function x1(t,i,s,v,E,A){var P=s&m,I=Ys(t),k=I.length,K=Ys(i),Y=K.length;if(k!=Y&&!P)return!1;for(var Q=k;Q--;){var ie=I[Q];if(!(P?ie in i:Le.call(i,ie)))return!1}var ue=A.get(t),he=A.get(i);if(ue&&he)return ue==i&&he==t;var Ee=!0;A.set(t,i),A.set(i,t);for(var ve=P;++Q<k;){ie=I[Q];var Oe=t[ie],Ce=i[ie];if(v)var Lt=P?v(Ce,Oe,ie,i,t,A):v(Oe,Ce,ie,t,i,A);if(!(Lt===n?Oe===Ce||E(Oe,Ce,s,v,A):Lt)){Ee=!1;break}ve||(ve=ie=="constructor")}if(Ee&&!ve){var wt=t.constructor,Ft=i.constructor;wt!=Ft&&"constructor"in t&&"constructor"in i&&!(typeof wt=="function"&&wt instanceof wt&&typeof Ft=="function"&&Ft instanceof Ft)&&(Ee=!1)}return A.delete(t),A.delete(i),Ee}function Er(t){return iu(qc(t,n,ed),t+"")}function Ys(t){return oc(t,rt,eu)}function Xs(t){return oc(t,_t,Wc)}var Js=Fo?function(t){return Fo.get(t)}:gu;function Ko(t){for(var i=t.name+"",s=Nn[i],v=Le.call(Nn,i)?s.length:0;v--;){var E=s[v],A=E.func;if(A==null||A==t)return E.name}return i}function zn(t){var i=Le.call(O,"placeholder")?O:t;return i.placeholder}function de(){var t=O.iteratee||vu;return t=t===vu?uc:t,arguments.length?t(arguments[0],arguments[1]):t}function Vo(t,i){var s=t.__data__;return I1(i)?s[typeof i=="string"?"string":"hash"]:s.map}function Qs(t){for(var i=rt(t),s=i.length;s--;){var v=i[s],E=t[v];i[s]=[v,E,Bc(E)]}return i}function cn(t,i){var s=$y(t,i);return sc(s)?s:n}function O1(t){var i=Le.call(t,an),s=t[an];try{t[an]=n;var v=!0}catch{}var E=Ao.call(t);return v&&(i?t[an]=s:delete t[an]),E}var eu=Ts?function(t){return t==null?[]:(t=$e(t),Dr(Ts(t),function(i){return Zf.call(t,i)}))}:yu,Wc=Ts?function(t){for(var i=[];t;)kr(i,eu(t)),t=Po(t);return i}:yu,ht=gt;(Cs&&ht(new Cs(new ArrayBuffer(1)))!=gr||li&&ht(new li)!=tt||Ps&&ht(Ps.resolve())!=vo||kn&&ht(new kn)!=dt||fi&&ht(new fi)!=Fr)&&(ht=function(t){var i=gt(t),s=i==kt?t.constructor:n,v=s?dn(s):"";if(v)switch(v){case s0:return gr;case u0:return tt;case l0:return vo;case f0:return dt;case c0:return Fr}return i});function A1(t,i,s){for(var v=-1,E=s.length;++v<E;){var A=s[v],P=A.size;switch(A.type){case"drop":t+=P;break;case"dropRight":i-=P;break;case"take":i=pt(i,t+P);break;case"takeRight":t=Xe(t,i-P);break}}return{start:t,end:i}}function T1(t){var i=t.match(Lg);return i?i[1].split(Fg):[]}function Uc(t,i,s){i=zr(i,t);for(var v=-1,E=i.length,A=!1;++v<E;){var P=ur(i[v]);if(!(A=t!=null&&s(t,P)))break;t=t[P]}return A||++v!=E?A:(E=t==null?0:t.length,!!E&&ra(E)&&_r(P,E)&&(be(t)||pn(t)))}function C1(t){var i=t.length,s=new t.constructor(i);return i&&typeof t[0]=="string"&&Le.call(t,"index")&&(s.index=t.index,s.input=t.input),s}function zc(t){return typeof t.constructor=="function"&&!wi(t)?jn(Po(t)):{}}function P1(t,i,s){var v=t.constructor;switch(i){case $r:return Gs(t);case ge:case _e:return new v(+t);case gr:return d1(t,s);case Qa:case es:case ts:case rs:case ns:case is:case os:case as:case ss:return xc(t,s);case tt:return new v;case or:case Lr:return new v(t);case Ct:return p1(t);case dt:return new v;case nn:return h1(t)}}function R1(t,i){var s=i.length;if(!s)return t;var v=s-1;return i[v]=(s>1?"& ":"")+i[v],i=i.join(s>2?", ":" "),t.replace(Ig,`{
119
+ /* [wrapped with `+i+`] */
120
+ `)}function M1(t){return be(t)||pn(t)||!!(Gf&&t&&t[Gf])}function _r(t,i){var s=typeof t;return i=i??te,!!i&&(s=="number"||s!="symbol"&&Bg.test(t))&&t>-1&&t%1==0&&t<i}function yt(t,i,s){if(!ze(s))return!1;var v=typeof i;return(v=="number"?Et(s)&&_r(i,s.length):v=="string"&&i in s)?er(s[i],t):!1}function tu(t,i){if(be(t))return!1;var s=typeof t;return s=="number"||s=="symbol"||s=="boolean"||t==null||It(t)?!0:Cg.test(t)||!Tg.test(t)||i!=null&&t in $e(i)}function I1(t){var i=typeof t;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?t!=="__proto__":t===null}function ru(t){var i=Ko(t),s=O[i];if(typeof s!="function"||!(i in Te.prototype))return!1;if(t===s)return!0;var v=Js(s);return!!v&&t===v[0]}function L1(t){return!!Bf&&Bf in t}var F1=xo?xr:wu;function wi(t){var i=t&&t.constructor,s=typeof i=="function"&&i.prototype||Dn;return t===s}function Bc(t){return t===t&&!ze(t)}function Hc(t,i){return function(s){return s==null?!1:s[t]===i&&(i!==n||t in $e(s))}}function $1(t){var i=ea(t,function(v){return s.size===S&&s.clear(),v}),s=i.cache;return i}function D1(t,i){var s=t[1],v=i[1],E=s|v,A=E<(g|b|H),P=v==H&&s==x||v==H&&s==F&&t[7].length<=i[8]||v==(H|F)&&i[7].length<=i[8]&&s==x;if(!(A||P))return t;v&g&&(t[2]=i[2],E|=s&g?0:_);var I=i[3];if(I){var k=t[3];t[3]=k?Ac(k,I,i[4]):I,t[4]=k?Nr(t[3],y):i[4]}return I=i[5],I&&(k=t[5],t[5]=k?Tc(k,I,i[6]):I,t[6]=k?Nr(t[5],y):i[6]),I=i[7],I&&(t[7]=I),v&H&&(t[8]=t[8]==null?i[8]:pt(t[8],i[8])),t[9]==null&&(t[9]=i[9]),t[0]=i[0],t[1]=E,t}function k1(t){var i=[];if(t!=null)for(var s in $e(t))i.push(s);return i}function N1(t){return Ao.call(t)}function qc(t,i,s){return i=Xe(i===n?t.length-1:i,0),function(){for(var v=arguments,E=-1,A=Xe(v.length-i,0),P=B(A);++E<A;)P[E]=v[i+E];E=-1;for(var I=B(i+1);++E<i;)I[E]=v[E];return I[i]=s(P),Pt(t,this,I)}}function Zc(t,i){return i.length<2?t:fn(t,Bt(i,0,-1))}function j1(t,i){for(var s=t.length,v=pt(i.length,s),E=St(t);v--;){var A=i[v];t[v]=_r(A,s)?E[A]:n}return t}function nu(t,i){if(!(i==="constructor"&&typeof t[i]=="function")&&i!="__proto__")return t[i]}var Gc=Vc(mc),bi=e0||function(t,i){return at.setTimeout(t,i)},iu=Vc(u1);function Kc(t,i,s){var v=i+"";return iu(t,R1(v,W1(T1(v),s)))}function Vc(t){var i=0,s=0;return function(){var v=i0(),E=z-(v-s);if(s=v,E>0){if(++i>=L)return arguments[0]}else i=0;return t.apply(n,arguments)}}function Yo(t,i){var s=-1,v=t.length,E=v-1;for(i=i===n?v:i;++s<i;){var A=Ws(s,E),P=t[A];t[A]=t[s],t[s]=P}return t.length=i,t}var Yc=$1(function(t){var i=[];return t.charCodeAt(0)===46&&i.push(""),t.replace(Pg,function(s,v,E,A){i.push(E?A.replace(kg,"$1"):v||s)}),i});function ur(t){if(typeof t=="string"||It(t))return t;var i=t+"";return i=="0"&&1/t==-V?"-0":i}function dn(t){if(t!=null){try{return Oo.call(t)}catch{}try{return t+""}catch{}}return""}function W1(t,i){return jt(oe,function(s){var v="_."+s[0];i&s[1]&&!bo(t,v)&&t.push(v)}),t.sort()}function Xc(t){if(t instanceof Te)return t.clone();var i=new Ut(t.__wrapped__,t.__chain__);return i.__actions__=St(t.__actions__),i.__index__=t.__index__,i.__values__=t.__values__,i}function U1(t,i,s){(s?yt(t,i,s):i===n)?i=1:i=Xe(Se(i),0);var v=t==null?0:t.length;if(!v||i<1)return[];for(var E=0,A=0,P=B(Io(v/i));E<v;)P[A++]=Bt(t,E,E+=i);return P}function z1(t){for(var i=-1,s=t==null?0:t.length,v=0,E=[];++i<s;){var A=t[i];A&&(E[v++]=A)}return E}function B1(){var t=arguments.length;if(!t)return[];for(var i=B(t-1),s=arguments[0],v=t;v--;)i[v-1]=arguments[v];return kr(be(s)?St(s):[s],st(i,1))}var H1=xe(function(t,i){return qe(t)?hi(t,st(i,1,qe,!0)):[]}),q1=xe(function(t,i){var s=Ht(i);return qe(s)&&(s=n),qe(t)?hi(t,st(i,1,qe,!0),de(s,2)):[]}),Z1=xe(function(t,i){var s=Ht(i);return qe(s)&&(s=n),qe(t)?hi(t,st(i,1,qe,!0),n,s):[]});function G1(t,i,s){var v=t==null?0:t.length;return v?(i=s||i===n?1:Se(i),Bt(t,i<0?0:i,v)):[]}function K1(t,i,s){var v=t==null?0:t.length;return v?(i=s||i===n?1:Se(i),i=v-i,Bt(t,0,i<0?0:i)):[]}function V1(t,i){return t&&t.length?zo(t,de(i,3),!0,!0):[]}function Y1(t,i){return t&&t.length?zo(t,de(i,3),!0):[]}function X1(t,i,s,v){var E=t==null?0:t.length;return E?(s&&typeof s!="number"&&yt(t,i,s)&&(s=0,v=E),B0(t,i,s,v)):[]}function Jc(t,i,s){var v=t==null?0:t.length;if(!v)return-1;var E=s==null?0:Se(s);return E<0&&(E=Xe(v+E,0)),So(t,de(i,3),E)}function Qc(t,i,s){var v=t==null?0:t.length;if(!v)return-1;var E=v-1;return s!==n&&(E=Se(s),E=s<0?Xe(v+E,0):pt(E,v-1)),So(t,de(i,3),E,!0)}function ed(t){var i=t==null?0:t.length;return i?st(t,1):[]}function J1(t){var i=t==null?0:t.length;return i?st(t,V):[]}function Q1(t,i){var s=t==null?0:t.length;return s?(i=i===n?1:Se(i),st(t,i)):[]}function ew(t){for(var i=-1,s=t==null?0:t.length,v={};++i<s;){var E=t[i];v[E[0]]=E[1]}return v}function td(t){return t&&t.length?t[0]:n}function tw(t,i,s){var v=t==null?0:t.length;if(!v)return-1;var E=s==null?0:Se(s);return E<0&&(E=Xe(v+E,0)),In(t,i,E)}function rw(t){var i=t==null?0:t.length;return i?Bt(t,0,-1):[]}var nw=xe(function(t){var i=Ne(t,qs);return i.length&&i[0]===t[0]?$s(i):[]}),iw=xe(function(t){var i=Ht(t),s=Ne(t,qs);return i===Ht(s)?i=n:s.pop(),s.length&&s[0]===t[0]?$s(s,de(i,2)):[]}),ow=xe(function(t){var i=Ht(t),s=Ne(t,qs);return i=typeof i=="function"?i:n,i&&s.pop(),s.length&&s[0]===t[0]?$s(s,n,i):[]});function aw(t,i){return t==null?"":r0.call(t,i)}function Ht(t){var i=t==null?0:t.length;return i?t[i-1]:n}function sw(t,i,s){var v=t==null?0:t.length;if(!v)return-1;var E=v;return s!==n&&(E=Se(s),E=E<0?Xe(v+E,0):pt(E,v-1)),i===i?Wy(t,i,E):So(t,$f,E,!0)}function uw(t,i){return t&&t.length?dc(t,Se(i)):n}var lw=xe(rd);function rd(t,i){return t&&t.length&&i&&i.length?js(t,i):t}function fw(t,i,s){return t&&t.length&&i&&i.length?js(t,i,de(s,2)):t}function cw(t,i,s){return t&&t.length&&i&&i.length?js(t,i,n,s):t}var dw=Er(function(t,i){var s=t==null?0:t.length,v=Ms(t,i);return vc(t,Ne(i,function(E){return _r(E,s)?+E:E}).sort(Oc)),v});function pw(t,i){var s=[];if(!(t&&t.length))return s;var v=-1,E=[],A=t.length;for(i=de(i,3);++v<A;){var P=t[v];i(P,v,t)&&(s.push(P),E.push(v))}return vc(t,E),s}function ou(t){return t==null?t:a0.call(t)}function hw(t,i,s){var v=t==null?0:t.length;return v?(s&&typeof s!="number"&&yt(t,i,s)?(i=0,s=v):(i=i==null?0:Se(i),s=s===n?v:Se(s)),Bt(t,i,s)):[]}function vw(t,i){return Uo(t,i)}function mw(t,i,s){return zs(t,i,de(s,2))}function gw(t,i){var s=t==null?0:t.length;if(s){var v=Uo(t,i);if(v<s&&er(t[v],i))return v}return-1}function yw(t,i){return Uo(t,i,!0)}function ww(t,i,s){return zs(t,i,de(s,2),!0)}function bw(t,i){var s=t==null?0:t.length;if(s){var v=Uo(t,i,!0)-1;if(er(t[v],i))return v}return-1}function Sw(t){return t&&t.length?gc(t):[]}function Ew(t,i){return t&&t.length?gc(t,de(i,2)):[]}function _w(t){var i=t==null?0:t.length;return i?Bt(t,1,i):[]}function xw(t,i,s){return t&&t.length?(i=s||i===n?1:Se(i),Bt(t,0,i<0?0:i)):[]}function Ow(t,i,s){var v=t==null?0:t.length;return v?(i=s||i===n?1:Se(i),i=v-i,Bt(t,i<0?0:i,v)):[]}function Aw(t,i){return t&&t.length?zo(t,de(i,3),!1,!0):[]}function Tw(t,i){return t&&t.length?zo(t,de(i,3)):[]}var Cw=xe(function(t){return Ur(st(t,1,qe,!0))}),Pw=xe(function(t){var i=Ht(t);return qe(i)&&(i=n),Ur(st(t,1,qe,!0),de(i,2))}),Rw=xe(function(t){var i=Ht(t);return i=typeof i=="function"?i:n,Ur(st(t,1,qe,!0),n,i)});function Mw(t){return t&&t.length?Ur(t):[]}function Iw(t,i){return t&&t.length?Ur(t,de(i,2)):[]}function Lw(t,i){return i=typeof i=="function"?i:n,t&&t.length?Ur(t,n,i):[]}function au(t){if(!(t&&t.length))return[];var i=0;return t=Dr(t,function(s){if(qe(s))return i=Xe(s.length,i),!0}),_s(i,function(s){return Ne(t,bs(s))})}function nd(t,i){if(!(t&&t.length))return[];var s=au(t);return i==null?s:Ne(s,function(v){return Pt(i,n,v)})}var Fw=xe(function(t,i){return qe(t)?hi(t,i):[]}),$w=xe(function(t){return Hs(Dr(t,qe))}),Dw=xe(function(t){var i=Ht(t);return qe(i)&&(i=n),Hs(Dr(t,qe),de(i,2))}),kw=xe(function(t){var i=Ht(t);return i=typeof i=="function"?i:n,Hs(Dr(t,qe),n,i)}),Nw=xe(au);function jw(t,i){return Sc(t||[],i||[],pi)}function Ww(t,i){return Sc(t||[],i||[],gi)}var Uw=xe(function(t){var i=t.length,s=i>1?t[i-1]:n;return s=typeof s=="function"?(t.pop(),s):n,nd(t,s)});function id(t){var i=O(t);return i.__chain__=!0,i}function zw(t,i){return i(t),t}function Xo(t,i){return i(t)}var Bw=Er(function(t){var i=t.length,s=i?t[0]:0,v=this.__wrapped__,E=function(A){return Ms(A,t)};return i>1||this.__actions__.length||!(v instanceof Te)||!_r(s)?this.thru(E):(v=v.slice(s,+s+(i?1:0)),v.__actions__.push({func:Xo,args:[E],thisArg:n}),new Ut(v,this.__chain__).thru(function(A){return i&&!A.length&&A.push(n),A}))});function Hw(){return id(this)}function qw(){return new Ut(this.value(),this.__chain__)}function Zw(){this.__values__===n&&(this.__values__=yd(this.value()));var t=this.__index__>=this.__values__.length,i=t?n:this.__values__[this.__index__++];return{done:t,value:i}}function Gw(){return this}function Kw(t){for(var i,s=this;s instanceof Do;){var v=Xc(s);v.__index__=0,v.__values__=n,i?E.__wrapped__=v:i=v;var E=v;s=s.__wrapped__}return E.__wrapped__=t,i}function Vw(){var t=this.__wrapped__;if(t instanceof Te){var i=t;return this.__actions__.length&&(i=new Te(this)),i=i.reverse(),i.__actions__.push({func:Xo,args:[ou],thisArg:n}),new Ut(i,this.__chain__)}return this.thru(ou)}function Yw(){return bc(this.__wrapped__,this.__actions__)}var Xw=Bo(function(t,i,s){Le.call(t,s)?++t[s]:br(t,s,1)});function Jw(t,i,s){var v=be(t)?Lf:z0;return s&&yt(t,i,s)&&(i=n),v(t,de(i,3))}function Qw(t,i){var s=be(t)?Dr:nc;return s(t,de(i,3))}var eb=Mc(Jc),tb=Mc(Qc);function rb(t,i){return st(Jo(t,i),1)}function nb(t,i){return st(Jo(t,i),V)}function ib(t,i,s){return s=s===n?1:Se(s),st(Jo(t,i),s)}function od(t,i){var s=be(t)?jt:Wr;return s(t,de(i,3))}function ad(t,i){var s=be(t)?_y:rc;return s(t,de(i,3))}var ob=Bo(function(t,i,s){Le.call(t,s)?t[s].push(i):br(t,s,[i])});function ab(t,i,s,v){t=Et(t)?t:Hn(t),s=s&&!v?Se(s):0;var E=t.length;return s<0&&(s=Xe(E+s,0)),na(t)?s<=E&&t.indexOf(i,s)>-1:!!E&&In(t,i,s)>-1}var sb=xe(function(t,i,s){var v=-1,E=typeof i=="function",A=Et(t)?B(t.length):[];return Wr(t,function(P){A[++v]=E?Pt(i,P,s):vi(P,i,s)}),A}),ub=Bo(function(t,i,s){br(t,s,i)});function Jo(t,i){var s=be(t)?Ne:lc;return s(t,de(i,3))}function lb(t,i,s,v){return t==null?[]:(be(i)||(i=i==null?[]:[i]),s=v?n:s,be(s)||(s=s==null?[]:[s]),pc(t,i,s))}var fb=Bo(function(t,i,s){t[s?0:1].push(i)},function(){return[[],[]]});function cb(t,i,s){var v=be(t)?ys:kf,E=arguments.length<3;return v(t,de(i,4),s,E,Wr)}function db(t,i,s){var v=be(t)?xy:kf,E=arguments.length<3;return v(t,de(i,4),s,E,rc)}function pb(t,i){var s=be(t)?Dr:nc;return s(t,ta(de(i,3)))}function hb(t){var i=be(t)?Jf:a1;return i(t)}function vb(t,i,s){(s?yt(t,i,s):i===n)?i=1:i=Se(i);var v=be(t)?k0:s1;return v(t,i)}function mb(t){var i=be(t)?N0:l1;return i(t)}function gb(t){if(t==null)return 0;if(Et(t))return na(t)?Fn(t):t.length;var i=ht(t);return i==tt||i==dt?t.size:ks(t).length}function yb(t,i,s){var v=be(t)?ws:f1;return s&&yt(t,i,s)&&(i=n),v(t,de(i,3))}var wb=xe(function(t,i){if(t==null)return[];var s=i.length;return s>1&&yt(t,i[0],i[1])?i=[]:s>2&&yt(i[0],i[1],i[2])&&(i=[i[0]]),pc(t,st(i,1),[])}),Qo=Qy||function(){return at.Date.now()};function bb(t,i){if(typeof i!="function")throw new Wt(f);return t=Se(t),function(){if(--t<1)return i.apply(this,arguments)}}function sd(t,i,s){return i=s?n:i,i=t&&i==null?t.length:i,Sr(t,H,n,n,n,n,i)}function ud(t,i){var s;if(typeof i!="function")throw new Wt(f);return t=Se(t),function(){return--t>0&&(s=i.apply(this,arguments)),t<=1&&(i=n),s}}var su=xe(function(t,i,s){var v=g;if(s.length){var E=Nr(s,zn(su));v|=T}return Sr(t,v,i,s,E)}),ld=xe(function(t,i,s){var v=g|b;if(s.length){var E=Nr(s,zn(ld));v|=T}return Sr(i,v,t,s,E)});function fd(t,i,s){i=s?n:i;var v=Sr(t,x,n,n,n,n,n,i);return v.placeholder=fd.placeholder,v}function cd(t,i,s){i=s?n:i;var v=Sr(t,C,n,n,n,n,n,i);return v.placeholder=cd.placeholder,v}function dd(t,i,s){var v,E,A,P,I,k,K=0,Y=!1,Q=!1,ie=!0;if(typeof t!="function")throw new Wt(f);i=qt(i)||0,ze(s)&&(Y=!!s.leading,Q="maxWait"in s,A=Q?Xe(qt(s.maxWait)||0,i):A,ie="trailing"in s?!!s.trailing:ie);function ue(Ze){var tr=v,Ar=E;return v=E=n,K=Ze,P=t.apply(Ar,tr),P}function he(Ze){return K=Ze,I=bi(Oe,i),Y?ue(Ze):P}function Ee(Ze){var tr=Ze-k,Ar=Ze-K,Md=i-tr;return Q?pt(Md,A-Ar):Md}function ve(Ze){var tr=Ze-k,Ar=Ze-K;return k===n||tr>=i||tr<0||Q&&Ar>=A}function Oe(){var Ze=Qo();if(ve(Ze))return Ce(Ze);I=bi(Oe,Ee(Ze))}function Ce(Ze){return I=n,ie&&v?ue(Ze):(v=E=n,P)}function Lt(){I!==n&&Ec(I),K=0,v=k=E=I=n}function wt(){return I===n?P:Ce(Qo())}function Ft(){var Ze=Qo(),tr=ve(Ze);if(v=arguments,E=this,k=Ze,tr){if(I===n)return he(k);if(Q)return Ec(I),I=bi(Oe,i),ue(k)}return I===n&&(I=bi(Oe,i)),P}return Ft.cancel=Lt,Ft.flush=wt,Ft}var Sb=xe(function(t,i){return tc(t,1,i)}),Eb=xe(function(t,i,s){return tc(t,qt(i)||0,s)});function _b(t){return Sr(t,N)}function ea(t,i){if(typeof t!="function"||i!=null&&typeof i!="function")throw new Wt(f);var s=function(){var v=arguments,E=i?i.apply(this,v):v[0],A=s.cache;if(A.has(E))return A.get(E);var P=t.apply(this,v);return s.cache=A.set(E,P)||A,P};return s.cache=new(ea.Cache||wr),s}ea.Cache=wr;function ta(t){if(typeof t!="function")throw new Wt(f);return function(){var i=arguments;switch(i.length){case 0:return!t.call(this);case 1:return!t.call(this,i[0]);case 2:return!t.call(this,i[0],i[1]);case 3:return!t.call(this,i[0],i[1],i[2])}return!t.apply(this,i)}}function xb(t){return ud(2,t)}var Ob=c1(function(t,i){i=i.length==1&&be(i[0])?Ne(i[0],Rt(de())):Ne(st(i,1),Rt(de()));var s=i.length;return xe(function(v){for(var E=-1,A=pt(v.length,s);++E<A;)v[E]=i[E].call(this,v[E]);return Pt(t,this,v)})}),uu=xe(function(t,i){var s=Nr(i,zn(uu));return Sr(t,T,n,i,s)}),pd=xe(function(t,i){var s=Nr(i,zn(pd));return Sr(t,M,n,i,s)}),Ab=Er(function(t,i){return Sr(t,F,n,n,n,i)});function Tb(t,i){if(typeof t!="function")throw new Wt(f);return i=i===n?i:Se(i),xe(t,i)}function Cb(t,i){if(typeof t!="function")throw new Wt(f);return i=i==null?0:Xe(Se(i),0),xe(function(s){var v=s[i],E=Br(s,0,i);return v&&kr(E,v),Pt(t,this,E)})}function Pb(t,i,s){var v=!0,E=!0;if(typeof t!="function")throw new Wt(f);return ze(s)&&(v="leading"in s?!!s.leading:v,E="trailing"in s?!!s.trailing:E),dd(t,i,{leading:v,maxWait:i,trailing:E})}function Rb(t){return sd(t,1)}function Mb(t,i){return uu(Zs(i),t)}function Ib(){if(!arguments.length)return[];var t=arguments[0];return be(t)?t:[t]}function Lb(t){return zt(t,p)}function Fb(t,i){return i=typeof i=="function"?i:n,zt(t,p,i)}function $b(t){return zt(t,h|p)}function Db(t,i){return i=typeof i=="function"?i:n,zt(t,h|p,i)}function kb(t,i){return i==null||ec(t,i,rt(i))}function er(t,i){return t===i||t!==t&&i!==i}var Nb=Go(Fs),jb=Go(function(t,i){return t>=i}),pn=ac(function(){return arguments}())?ac:function(t){return He(t)&&Le.call(t,"callee")&&!Zf.call(t,"callee")},be=B.isArray,Wb=Tf?Rt(Tf):K0;function Et(t){return t!=null&&ra(t.length)&&!xr(t)}function qe(t){return He(t)&&Et(t)}function Ub(t){return t===!0||t===!1||He(t)&&gt(t)==ge}var Hr=t0||wu,zb=Cf?Rt(Cf):V0;function Bb(t){return He(t)&&t.nodeType===1&&!Si(t)}function Hb(t){if(t==null)return!0;if(Et(t)&&(be(t)||typeof t=="string"||typeof t.splice=="function"||Hr(t)||Bn(t)||pn(t)))return!t.length;var i=ht(t);if(i==tt||i==dt)return!t.size;if(wi(t))return!ks(t).length;for(var s in t)if(Le.call(t,s))return!1;return!0}function qb(t,i){return mi(t,i)}function Zb(t,i,s){s=typeof s=="function"?s:n;var v=s?s(t,i):n;return v===n?mi(t,i,n,s):!!v}function lu(t){if(!He(t))return!1;var i=gt(t);return i==Ue||i==Ae||typeof t.message=="string"&&typeof t.name=="string"&&!Si(t)}function Gb(t){return typeof t=="number"&&Kf(t)}function xr(t){if(!ze(t))return!1;var i=gt(t);return i==ne||i==ct||i==ye||i==Ja}function hd(t){return typeof t=="number"&&t==Se(t)}function ra(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=te}function ze(t){var i=typeof t;return t!=null&&(i=="object"||i=="function")}function He(t){return t!=null&&typeof t=="object"}var vd=Pf?Rt(Pf):X0;function Kb(t,i){return t===i||Ds(t,i,Qs(i))}function Vb(t,i,s){return s=typeof s=="function"?s:n,Ds(t,i,Qs(i),s)}function Yb(t){return md(t)&&t!=+t}function Xb(t){if(F1(t))throw new we(u);return sc(t)}function Jb(t){return t===null}function Qb(t){return t==null}function md(t){return typeof t=="number"||He(t)&&gt(t)==or}function Si(t){if(!He(t)||gt(t)!=kt)return!1;var i=Po(t);if(i===null)return!0;var s=Le.call(i,"constructor")&&i.constructor;return typeof s=="function"&&s instanceof s&&Oo.call(s)==Vy}var fu=Rf?Rt(Rf):J0;function eS(t){return hd(t)&&t>=-te&&t<=te}var gd=Mf?Rt(Mf):Q0;function na(t){return typeof t=="string"||!be(t)&&He(t)&&gt(t)==Lr}function It(t){return typeof t=="symbol"||He(t)&&gt(t)==nn}var Bn=If?Rt(If):e1;function tS(t){return t===n}function rS(t){return He(t)&&ht(t)==Fr}function nS(t){return He(t)&&gt(t)==mo}var iS=Go(Ns),oS=Go(function(t,i){return t<=i});function yd(t){if(!t)return[];if(Et(t))return na(t)?Jt(t):St(t);if(ui&&t[ui])return ky(t[ui]());var i=ht(t),s=i==tt?Os:i==dt?Eo:Hn;return s(t)}function Or(t){if(!t)return t===0?t:0;if(t=qt(t),t===V||t===-V){var i=t<0?-1:1;return i*le}return t===t?t:0}function Se(t){var i=Or(t),s=i%1;return i===i?s?i-s:i:0}function wd(t){return t?ln(Se(t),0,ee):0}function qt(t){if(typeof t=="number")return t;if(It(t))return Z;if(ze(t)){var i=typeof t.valueOf=="function"?t.valueOf():t;t=ze(i)?i+"":i}if(typeof t!="string")return t===0?t:+t;t=Nf(t);var s=Wg.test(t);return s||zg.test(t)?by(t.slice(2),s?2:8):jg.test(t)?Z:+t}function bd(t){return sr(t,_t(t))}function aS(t){return t?ln(Se(t),-te,te):t===0?t:0}function Re(t){return t==null?"":Mt(t)}var sS=Wn(function(t,i){if(wi(i)||Et(i)){sr(i,rt(i),t);return}for(var s in i)Le.call(i,s)&&pi(t,s,i[s])}),Sd=Wn(function(t,i){sr(i,_t(i),t)}),ia=Wn(function(t,i,s,v){sr(i,_t(i),t,v)}),uS=Wn(function(t,i,s,v){sr(i,rt(i),t,v)}),lS=Er(Ms);function fS(t,i){var s=jn(t);return i==null?s:Qf(s,i)}var cS=xe(function(t,i){t=$e(t);var s=-1,v=i.length,E=v>2?i[2]:n;for(E&&yt(i[0],i[1],E)&&(v=1);++s<v;)for(var A=i[s],P=_t(A),I=-1,k=P.length;++I<k;){var K=P[I],Y=t[K];(Y===n||er(Y,Dn[K])&&!Le.call(t,K))&&(t[K]=A[K])}return t}),dS=xe(function(t){return t.push(n,Nc),Pt(Ed,n,t)});function pS(t,i){return Ff(t,de(i,3),ar)}function hS(t,i){return Ff(t,de(i,3),Ls)}function vS(t,i){return t==null?t:Is(t,de(i,3),_t)}function mS(t,i){return t==null?t:ic(t,de(i,3),_t)}function gS(t,i){return t&&ar(t,de(i,3))}function yS(t,i){return t&&Ls(t,de(i,3))}function wS(t){return t==null?[]:jo(t,rt(t))}function bS(t){return t==null?[]:jo(t,_t(t))}function cu(t,i,s){var v=t==null?n:fn(t,i);return v===n?s:v}function SS(t,i){return t!=null&&Uc(t,i,H0)}function du(t,i){return t!=null&&Uc(t,i,q0)}var ES=Lc(function(t,i,s){i!=null&&typeof i.toString!="function"&&(i=Ao.call(i)),t[i]=s},hu(xt)),_S=Lc(function(t,i,s){i!=null&&typeof i.toString!="function"&&(i=Ao.call(i)),Le.call(t,i)?t[i].push(s):t[i]=[s]},de),xS=xe(vi);function rt(t){return Et(t)?Xf(t):ks(t)}function _t(t){return Et(t)?Xf(t,!0):t1(t)}function OS(t,i){var s={};return i=de(i,3),ar(t,function(v,E,A){br(s,i(v,E,A),v)}),s}function AS(t,i){var s={};return i=de(i,3),ar(t,function(v,E,A){br(s,E,i(v,E,A))}),s}var TS=Wn(function(t,i,s){Wo(t,i,s)}),Ed=Wn(function(t,i,s,v){Wo(t,i,s,v)}),CS=Er(function(t,i){var s={};if(t==null)return s;var v=!1;i=Ne(i,function(A){return A=zr(A,t),v||(v=A.length>1),A}),sr(t,Xs(t),s),v&&(s=zt(s,h|l|p,E1));for(var E=i.length;E--;)Bs(s,i[E]);return s});function PS(t,i){return _d(t,ta(de(i)))}var RS=Er(function(t,i){return t==null?{}:n1(t,i)});function _d(t,i){if(t==null)return{};var s=Ne(Xs(t),function(v){return[v]});return i=de(i),hc(t,s,function(v,E){return i(v,E[0])})}function MS(t,i,s){i=zr(i,t);var v=-1,E=i.length;for(E||(E=1,t=n);++v<E;){var A=t==null?n:t[ur(i[v])];A===n&&(v=E,A=s),t=xr(A)?A.call(t):A}return t}function IS(t,i,s){return t==null?t:gi(t,i,s)}function LS(t,i,s,v){return v=typeof v=="function"?v:n,t==null?t:gi(t,i,s,v)}var xd=Dc(rt),Od=Dc(_t);function FS(t,i,s){var v=be(t),E=v||Hr(t)||Bn(t);if(i=de(i,4),s==null){var A=t&&t.constructor;E?s=v?new A:[]:ze(t)?s=xr(A)?jn(Po(t)):{}:s={}}return(E?jt:ar)(t,function(P,I,k){return i(s,P,I,k)}),s}function $S(t,i){return t==null?!0:Bs(t,i)}function DS(t,i,s){return t==null?t:wc(t,i,Zs(s))}function kS(t,i,s,v){return v=typeof v=="function"?v:n,t==null?t:wc(t,i,Zs(s),v)}function Hn(t){return t==null?[]:xs(t,rt(t))}function NS(t){return t==null?[]:xs(t,_t(t))}function jS(t,i,s){return s===n&&(s=i,i=n),s!==n&&(s=qt(s),s=s===s?s:0),i!==n&&(i=qt(i),i=i===i?i:0),ln(qt(t),i,s)}function WS(t,i,s){return i=Or(i),s===n?(s=i,i=0):s=Or(s),t=qt(t),Z0(t,i,s)}function US(t,i,s){if(s&&typeof s!="boolean"&&yt(t,i,s)&&(i=s=n),s===n&&(typeof i=="boolean"?(s=i,i=n):typeof t=="boolean"&&(s=t,t=n)),t===n&&i===n?(t=0,i=1):(t=Or(t),i===n?(i=t,t=0):i=Or(i)),t>i){var v=t;t=i,i=v}if(s||t%1||i%1){var E=Vf();return pt(t+E*(i-t+wy("1e-"+((E+"").length-1))),i)}return Ws(t,i)}var zS=Un(function(t,i,s){return i=i.toLowerCase(),t+(s?Ad(i):i)});function Ad(t){return pu(Re(t).toLowerCase())}function Td(t){return t=Re(t),t&&t.replace(Hg,Iy).replace(ly,"")}function BS(t,i,s){t=Re(t),i=Mt(i);var v=t.length;s=s===n?v:ln(Se(s),0,v);var E=s;return s-=i.length,s>=0&&t.slice(s,E)==i}function HS(t){return t=Re(t),t&&xg.test(t)?t.replace(nf,Ly):t}function qS(t){return t=Re(t),t&&Rg.test(t)?t.replace(us,"\\$&"):t}var ZS=Un(function(t,i,s){return t+(s?"-":"")+i.toLowerCase()}),GS=Un(function(t,i,s){return t+(s?" ":"")+i.toLowerCase()}),KS=Rc("toLowerCase");function VS(t,i,s){t=Re(t),i=Se(i);var v=i?Fn(t):0;if(!i||v>=i)return t;var E=(i-v)/2;return Zo(Lo(E),s)+t+Zo(Io(E),s)}function YS(t,i,s){t=Re(t),i=Se(i);var v=i?Fn(t):0;return i&&v<i?t+Zo(i-v,s):t}function XS(t,i,s){t=Re(t),i=Se(i);var v=i?Fn(t):0;return i&&v<i?Zo(i-v,s)+t:t}function JS(t,i,s){return s||i==null?i=0:i&&(i=+i),o0(Re(t).replace(ls,""),i||0)}function QS(t,i,s){return(s?yt(t,i,s):i===n)?i=1:i=Se(i),Us(Re(t),i)}function eE(){var t=arguments,i=Re(t[0]);return t.length<3?i:i.replace(t[1],t[2])}var tE=Un(function(t,i,s){return t+(s?"_":"")+i.toLowerCase()});function rE(t,i,s){return s&&typeof s!="number"&&yt(t,i,s)&&(i=s=n),s=s===n?ee:s>>>0,s?(t=Re(t),t&&(typeof i=="string"||i!=null&&!fu(i))&&(i=Mt(i),!i&&Ln(t))?Br(Jt(t),0,s):t.split(i,s)):[]}var nE=Un(function(t,i,s){return t+(s?" ":"")+pu(i)});function iE(t,i,s){return t=Re(t),s=s==null?0:ln(Se(s),0,t.length),i=Mt(i),t.slice(s,s+i.length)==i}function oE(t,i,s){var v=O.templateSettings;s&&yt(t,i,s)&&(i=n),t=Re(t),i=ia({},i,v,kc);var E=ia({},i.imports,v.imports,kc),A=rt(E),P=xs(E,A),I,k,K=0,Y=i.interpolate||go,Q="__p += '",ie=As((i.escape||go).source+"|"+Y.source+"|"+(Y===of?Ng:go).source+"|"+(i.evaluate||go).source+"|$","g"),ue="//# sourceURL="+(Le.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++hy+"]")+`
121
+ `;t.replace(ie,function(ve,Oe,Ce,Lt,wt,Ft){return Ce||(Ce=Lt),Q+=t.slice(K,Ft).replace(qg,Fy),Oe&&(I=!0,Q+=`' +
122
+ __e(`+Oe+`) +
123
+ '`),wt&&(k=!0,Q+=`';
124
+ `+wt+`;
125
+ __p += '`),Ce&&(Q+=`' +
126
+ ((__t = (`+Ce+`)) == null ? '' : __t) +
127
+ '`),K=Ft+ve.length,ve}),Q+=`';
128
+ `;var he=Le.call(i,"variable")&&i.variable;if(!he)Q=`with (obj) {
129
+ `+Q+`
143
130
  }
144
- `;else if(oy.test(ne))throw new fe(f);B=(M?B.replace(Bg,""):B).replace(Hg,"$1").replace(qg,"$1;"),B="function("+(ne||"obj")+`) {
145
- `+(ne?"":`obj || (obj = {});
146
- `)+"var __t, __p = ''"+(T?", __e = _.escape":"")+(M?`, __j = Array.prototype.join;
131
+ `;else if(Dg.test(he))throw new we(d);Q=(k?Q.replace(bg,""):Q).replace(Sg,"$1").replace(Eg,"$1;"),Q="function("+(he||"obj")+`) {
132
+ `+(he?"":`obj || (obj = {});
133
+ `)+"var __t, __p = ''"+(I?", __e = _.escape":"")+(k?`, __j = Array.prototype.join;
147
134
  function print() { __p += __j.call(arguments, '') }
148
135
  `:`;
149
- `)+B+`return __p
150
- }`;var me=wp(function(){return Re(S,J+"return "+B).apply(r,_)});if(me.source=B,Lu(me))throw me;return me}function PE(n){return Ie(n).toLowerCase()}function RE(n){return Ie(n).toUpperCase()}function IE(n,o,u){if(n=Ie(n),n&&(u||o===r))return Cc(n);if(!n||!(o=Ht(o)))return n;var c=dr(n),m=dr(o),S=Pc(c,m),_=Rc(c,m)+1;return un(c,S,_).join("")}function ME(n,o,u){if(n=Ie(n),n&&(u||o===r))return n.slice(0,Mc(n)+1);if(!n||!(o=Ht(o)))return n;var c=dr(n),m=Rc(c,dr(o))+1;return un(c,0,m).join("")}function FE(n,o,u){if(n=Ie(n),n&&(u||o===r))return n.replace(Ls,"");if(!n||!(o=Ht(o)))return n;var c=dr(n),m=Pc(c,dr(o));return un(c,m).join("")}function LE(n,o){var u=V,c=ee;if(qe(o)){var m="separator"in o?o.separator:m;u="length"in o?he(o.length):u,c="omission"in o?Ht(o.omission):c}n=Ie(n);var S=n.length;if(ei(n)){var _=dr(n);S=_.length}if(u>=S)return n;var T=u-ti(c);if(T<1)return c;var M=_?un(_,0,T).join(""):n.slice(0,T);if(m===r)return M+c;if(_&&(T+=M.length-T),$u(m)){if(n.slice(T).search(m)){var j,W=M;for(m.global||(m=Xs(m.source,Ie(Vf.exec(m))+"g")),m.lastIndex=0;j=m.exec(W);)var B=j.index;M=M.slice(0,B===r?T:B)}}else if(n.indexOf(Ht(m),T)!=T){var Y=M.lastIndexOf(m);Y>-1&&(M=M.slice(0,Y))}return M+c}function $E(n){return n=Ie(n),n&&Zg.test(n)?n.replace(Gf,f0):n}var DE=ui(function(n,o,u){return n+(u?" ":"")+o.toUpperCase()}),Nu=bd("toUpperCase");function yp(n,o,u){return n=Ie(n),o=u?r:o,o===r?o0(n)?p0(n):Vy(n):n.match(o)||[]}var wp=ye(function(n,o){try{return Ut(n,r,o)}catch(u){return Lu(u)?u:new fe(u)}}),kE=jr(function(n,o){return Qt(o,function(u){u=xr(u),kr(n,u,Mu(n[u],n))}),n});function NE(n){var o=n==null?0:n.length,u=te();return n=o?ze(n,function(c){if(typeof c[1]!="function")throw new er(l);return[u(c[0]),c[1]]}):[],ye(function(c){for(var m=-1;++m<o;){var S=n[m];if(Ut(S[0],this,c))return Ut(S[1],this,c)}})}function jE(n){return f1(rr(n,b))}function ju(n){return function(){return n}}function WE(n,o){return n==null||n!==n?o:n}var zE=Ed(),UE=Ed(!0);function kt(n){return n}function Wu(n){return Jc(typeof n=="function"?n:rr(n,b))}function BE(n){return ed(rr(n,b))}function HE(n,o){return td(n,rr(o,b))}var qE=ye(function(n,o){return function(u){return Di(u,n,o)}}),ZE=ye(function(n,o){return function(u){return Di(n,u,o)}});function zu(n,o,u){var c=ut(o),m=Qo(o,c);u==null&&!(qe(o)&&(m.length||!c.length))&&(u=o,o=n,n=this,m=Qo(o,ut(o)));var S=!(qe(u)&&"chain"in u)||!!u.chain,_=zr(n);return Qt(m,function(T){var M=o[T];n[T]=M,_&&(n.prototype[T]=function(){var j=this.__chain__;if(S||j){var W=n(this.__wrapped__),B=W.__actions__=Lt(this.__actions__);return B.push({func:M,args:arguments,thisArg:n}),W.__chain__=j,W}return M.apply(n,tn([this.value()],arguments))})}),n}function GE(){return dt._===this&&(dt._=w0),this}function Uu(){}function KE(n){return n=he(n),ye(function(o){return rd(o,n)})}var YE=wu(ze),VE=wu(xc),XE=wu(Hs);function bp(n){return Au(n)?qs(xr(n)):T1(n)}function JE(n){return function(o){return n==null?r:In(n,o)}}var QE=_d(),ex=_d(!0);function Bu(){return[]}function Hu(){return!1}function tx(){return{}}function rx(){return""}function nx(){return!0}function ix(n,o){if(n=he(n),n<1||n>Ge)return[];var u=G,c=wt(n,G);o=te(o),n-=G;for(var m=Ks(c,o);++u<n;)o(u);return m}function ox(n){return de(n)?ze(n,xr):qt(n)?[n]:Lt(Wd(Ie(n)))}function ax(n){var o=++g0;return Ie(n)+o}var sx=oa(function(n,o){return n+o},0),ux=bu("ceil"),lx=oa(function(n,o){return n/o},1),fx=bu("floor");function cx(n){return n&&n.length?Jo(n,kt,ou):r}function dx(n,o){return n&&n.length?Jo(n,te(o,2),ou):r}function px(n){return Ac(n,kt)}function hx(n,o){return Ac(n,te(o,2))}function vx(n){return n&&n.length?Jo(n,kt,lu):r}function mx(n,o){return n&&n.length?Jo(n,te(o,2),lu):r}var gx=oa(function(n,o){return n*o},1),yx=bu("round"),wx=oa(function(n,o){return n-o},0);function bx(n){return n&&n.length?Gs(n,kt):0}function Sx(n,o){return n&&n.length?Gs(n,te(o,2)):0}return g.after=Bb,g.ary=Xd,g.assign=RS,g.assignIn=cp,g.assignInWith=ya,g.assignWith=IS,g.at=MS,g.before=Jd,g.bind=Mu,g.bindAll=kE,g.bindKey=Qd,g.castArray=tS,g.chain=Kd,g.chunk=fw,g.compact=cw,g.concat=dw,g.cond=NE,g.conforms=jE,g.constant=ju,g.countBy=bb,g.create=FS,g.curry=ep,g.curryRight=tp,g.debounce=rp,g.defaults=LS,g.defaultsDeep=$S,g.defer=Hb,g.delay=qb,g.difference=pw,g.differenceBy=hw,g.differenceWith=vw,g.drop=mw,g.dropRight=gw,g.dropRightWhile=yw,g.dropWhile=ww,g.fill=bw,g.filter=Eb,g.flatMap=Ob,g.flatMapDeep=Ab,g.flatMapDepth=Tb,g.flatten=Hd,g.flattenDeep=Sw,g.flattenDepth=Ew,g.flip=Zb,g.flow=zE,g.flowRight=UE,g.fromPairs=xw,g.functions=US,g.functionsIn=BS,g.groupBy=Cb,g.initial=Ow,g.intersection=Aw,g.intersectionBy=Tw,g.intersectionWith=Cw,g.invert=qS,g.invertBy=ZS,g.invokeMap=Rb,g.iteratee=Wu,g.keyBy=Ib,g.keys=ut,g.keysIn=Dt,g.map=da,g.mapKeys=KS,g.mapValues=YS,g.matches=BE,g.matchesProperty=HE,g.memoize=ha,g.merge=VS,g.mergeWith=dp,g.method=qE,g.methodOf=ZE,g.mixin=zu,g.negate=va,g.nthArg=KE,g.omit=XS,g.omitBy=JS,g.once=Gb,g.orderBy=Mb,g.over=YE,g.overArgs=Kb,g.overEvery=VE,g.overSome=XE,g.partial=Fu,g.partialRight=np,g.partition=Fb,g.pick=QS,g.pickBy=pp,g.property=bp,g.propertyOf=JE,g.pull=Mw,g.pullAll=Zd,g.pullAllBy=Fw,g.pullAllWith=Lw,g.pullAt=$w,g.range=QE,g.rangeRight=ex,g.rearg=Yb,g.reject=Db,g.remove=Dw,g.rest=Vb,g.reverse=Ru,g.sampleSize=Nb,g.set=tE,g.setWith=rE,g.shuffle=jb,g.slice=kw,g.sortBy=Ub,g.sortedUniq=Hw,g.sortedUniqBy=qw,g.split=OE,g.spread=Xb,g.tail=Zw,g.take=Gw,g.takeRight=Kw,g.takeRightWhile=Yw,g.takeWhile=Vw,g.tap=cb,g.throttle=Jb,g.thru=ca,g.toArray=up,g.toPairs=hp,g.toPairsIn=vp,g.toPath=ox,g.toPlainObject=fp,g.transform=nE,g.unary=Qb,g.union=Xw,g.unionBy=Jw,g.unionWith=Qw,g.uniq=eb,g.uniqBy=tb,g.uniqWith=rb,g.unset=iE,g.unzip=Iu,g.unzipWith=Gd,g.update=oE,g.updateWith=aE,g.values=ci,g.valuesIn=sE,g.without=nb,g.words=yp,g.wrap=eS,g.xor=ib,g.xorBy=ob,g.xorWith=ab,g.zip=sb,g.zipObject=ub,g.zipObjectDeep=lb,g.zipWith=fb,g.entries=hp,g.entriesIn=vp,g.extend=cp,g.extendWith=ya,zu(g,g),g.add=sx,g.attempt=wp,g.camelCase=cE,g.capitalize=mp,g.ceil=ux,g.clamp=uE,g.clone=rS,g.cloneDeep=iS,g.cloneDeepWith=oS,g.cloneWith=nS,g.conformsTo=aS,g.deburr=gp,g.defaultTo=WE,g.divide=lx,g.endsWith=dE,g.eq=hr,g.escape=pE,g.escapeRegExp=hE,g.every=Sb,g.find=xb,g.findIndex=Ud,g.findKey=DS,g.findLast=_b,g.findLastIndex=Bd,g.findLastKey=kS,g.floor=fx,g.forEach=Yd,g.forEachRight=Vd,g.forIn=NS,g.forInRight=jS,g.forOwn=WS,g.forOwnRight=zS,g.get=Du,g.gt=sS,g.gte=uS,g.has=HS,g.hasIn=ku,g.head=qd,g.identity=kt,g.includes=Pb,g.indexOf=_w,g.inRange=lE,g.invoke=GS,g.isArguments=Ln,g.isArray=de,g.isArrayBuffer=lS,g.isArrayLike=$t,g.isArrayLikeObject=Ve,g.isBoolean=fS,g.isBuffer=ln,g.isDate=cS,g.isElement=dS,g.isEmpty=pS,g.isEqual=hS,g.isEqualWith=vS,g.isError=Lu,g.isFinite=mS,g.isFunction=zr,g.isInteger=ip,g.isLength=ma,g.isMap=op,g.isMatch=gS,g.isMatchWith=yS,g.isNaN=wS,g.isNative=bS,g.isNil=ES,g.isNull=SS,g.isNumber=ap,g.isObject=qe,g.isObjectLike=Ke,g.isPlainObject=Ui,g.isRegExp=$u,g.isSafeInteger=xS,g.isSet=sp,g.isString=ga,g.isSymbol=qt,g.isTypedArray=fi,g.isUndefined=_S,g.isWeakMap=OS,g.isWeakSet=AS,g.join=Pw,g.kebabCase=vE,g.last=ir,g.lastIndexOf=Rw,g.lowerCase=mE,g.lowerFirst=gE,g.lt=TS,g.lte=CS,g.max=cx,g.maxBy=dx,g.mean=px,g.meanBy=hx,g.min=vx,g.minBy=mx,g.stubArray=Bu,g.stubFalse=Hu,g.stubObject=tx,g.stubString=rx,g.stubTrue=nx,g.multiply=gx,g.nth=Iw,g.noConflict=GE,g.noop=Uu,g.now=pa,g.pad=yE,g.padEnd=wE,g.padStart=bE,g.parseInt=SE,g.random=fE,g.reduce=Lb,g.reduceRight=$b,g.repeat=EE,g.replace=xE,g.result=eE,g.round=yx,g.runInContext=R,g.sample=kb,g.size=Wb,g.snakeCase=_E,g.some=zb,g.sortedIndex=Nw,g.sortedIndexBy=jw,g.sortedIndexOf=Ww,g.sortedLastIndex=zw,g.sortedLastIndexBy=Uw,g.sortedLastIndexOf=Bw,g.startCase=AE,g.startsWith=TE,g.subtract=wx,g.sum=bx,g.sumBy=Sx,g.template=CE,g.times=ix,g.toFinite=Ur,g.toInteger=he,g.toLength=lp,g.toLower=PE,g.toNumber=or,g.toSafeInteger=PS,g.toString=Ie,g.toUpper=RE,g.trim=IE,g.trimEnd=ME,g.trimStart=FE,g.truncate=LE,g.unescape=$E,g.uniqueId=ax,g.upperCase=DE,g.upperFirst=Nu,g.each=Yd,g.eachRight=Vd,g.first=qd,zu(g,function(){var n={};return Sr(g,function(o,u){Le.call(g.prototype,u)||(n[u]=o)}),n}(),{chain:!1}),g.VERSION=i,Qt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){g[n].placeholder=g}),Qt(["drop","take"],function(n,o){_e.prototype[n]=function(u){u=u===r?1:nt(he(u),0);var c=this.__filtered__&&!o?new _e(this):this.clone();return c.__filtered__?c.__takeCount__=wt(u,c.__takeCount__):c.__views__.push({size:wt(u,G),type:n+(c.__dir__<0?"Right":"")}),c},_e.prototype[n+"Right"]=function(u){return this.reverse()[n](u).reverse()}}),Qt(["filter","map","takeWhile"],function(n,o){var u=o+1,c=u==Ae||u==ve;_e.prototype[n]=function(m){var S=this.clone();return S.__iteratees__.push({iteratee:te(m,3),type:u}),S.__filtered__=S.__filtered__||c,S}}),Qt(["head","last"],function(n,o){var u="take"+(o?"Right":"");_e.prototype[n]=function(){return this[u](1).value()[0]}}),Qt(["initial","tail"],function(n,o){var u="drop"+(o?"":"Right");_e.prototype[n]=function(){return this.__filtered__?new _e(this):this[u](1)}}),_e.prototype.compact=function(){return this.filter(kt)},_e.prototype.find=function(n){return this.filter(n).head()},_e.prototype.findLast=function(n){return this.reverse().find(n)},_e.prototype.invokeMap=ye(function(n,o){return typeof n=="function"?new _e(this):this.map(function(u){return Di(u,n,o)})}),_e.prototype.reject=function(n){return this.filter(va(te(n)))},_e.prototype.slice=function(n,o){n=he(n);var u=this;return u.__filtered__&&(n>0||o<0)?new _e(u):(n<0?u=u.takeRight(-n):n&&(u=u.drop(n)),o!==r&&(o=he(o),u=o<0?u.dropRight(-o):u.take(o-n)),u)},_e.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},_e.prototype.toArray=function(){return this.take(G)},Sr(_e.prototype,function(n,o){var u=/^(?:filter|find|map|reject)|While$/.test(o),c=/^(?:head|last)$/.test(o),m=g[c?"take"+(o=="last"?"Right":""):o],S=c||/^find/.test(o);m&&(g.prototype[o]=function(){var _=this.__wrapped__,T=c?[1]:arguments,M=_ instanceof _e,j=T[0],W=M||de(_),B=function(Ee){var Oe=m.apply(g,tn([Ee],T));return c&&Y?Oe[0]:Oe};W&&u&&typeof j=="function"&&j.length!=1&&(M=W=!1);var Y=this.__chain__,J=!!this.__actions__.length,ne=S&&!Y,me=M&&!J;if(!S&&W){_=me?_:new _e(this);var ie=n.apply(_,T);return ie.__actions__.push({func:ca,args:[B],thisArg:r}),new tr(ie,Y)}return ne&&me?n.apply(this,T):(ie=this.thru(B),ne?c?ie.value()[0]:ie.value():ie)})}),Qt(["pop","push","shift","sort","splice","unshift"],function(n){var o=ko[n],u=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",c=/^(?:pop|shift)$/.test(n);g.prototype[n]=function(){var m=arguments;if(c&&!this.__chain__){var S=this.value();return o.apply(de(S)?S:[],m)}return this[u](function(_){return o.apply(de(_)?_:[],m)})}}),Sr(_e.prototype,function(n,o){var u=g[o];if(u){var c=u.name+"";Le.call(oi,c)||(oi[c]=[]),oi[c].push({name:o,func:u})}}),oi[ia(r,A).name]=[{name:"wrapper",func:r}],_e.prototype.clone=$0,_e.prototype.reverse=D0,_e.prototype.value=k0,g.prototype.at=db,g.prototype.chain=pb,g.prototype.commit=hb,g.prototype.next=vb,g.prototype.plant=gb,g.prototype.reverse=yb,g.prototype.toJSON=g.prototype.valueOf=g.prototype.value=wb,g.prototype.first=g.prototype.head,Pi&&(g.prototype[Pi]=mb),g},ri=h0();An?((An.exports=ri)._=ri,Ws._=ri):dt._=ri}).call(Nn)})(ts,ts.exports);var tt=ts.exports;const Jl={FdSave:mt.FdSave,FdWarningDanger:mt.FdWarningDanger,FdInfoCircle:mt.FdInfoCircle,FdInfoBold:mt.FdInfoBold};var Rf=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(Rf||{}),qn=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(qn||{}),vi=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(vi||{});const Pm={[qn.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[qn.DANGER]:{icon:"red-500",button:"primary-dark"},[qn.WARNING]:{icon:"yellow-400",button:"primary-dark"}},_l=({color:e=qn.PRIMARY,variant:t="solid",children:r,autoFocus:i,...a})=>{const s=Pm[e].button,l=t==="outlined"?`bg-transparent text-white border border-white hover:border-white hover:bg-white hover:text-${s}`:`text-white bg-${s} border border-${s} hover:border-white hover:bg-primary-hover hover:text-white`;return $.jsx("button",{autoFocus:i,className:ft("w-16 rounded px-2 py-1 text-xs font-medium hover:font-bold focus:outline-none",l),...a,children:r})},mR=({name:e,color:t=qn.PRIMARY,className:r="w-8 h-8"})=>{const i=Jl[e]||Jl.FdInfoCircle,a=`text-${Pm[t].icon}`;return $.jsx(i,{className:ft(r,a)})},gR=({id:e,title:t,message:r,icon:i,type:a,color:s,zIndex:l=3e3,views:f,width:d=520,hasOverlay:p=!0,onClose:h,onEdit:b})=>{const v=y=>{h({id:e,reason:y})};D.useEffect(()=>{function y(x){x.key==="Escape"&&v(vi.CANCELED)}return window.addEventListener("keyup",y),()=>{window.removeEventListener("keyup",y)}},[]);const w=tt.merge(tt.values(f==null?void 0:f.toggles).flatMap(y=>y.value?y.warnings||[]:[]),f==null?void 0:f.tips),E=(y,x)=>{var I;if(!(f!=null&&f.toggles))return;const A=tt.cloneDeep(f);(I=A.toggles)!=null&&I[y]&&(A.toggles[y].value=x),b({id:e,views:A})};return ho.createPortal($.jsx(es,{appear:!0,show:!0,as:D.Fragment,children:$.jsx("div",{className:ft("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":p}),style:{zIndex:l},onClick:()=>v(vi.CANCELED),children:$.jsx(es.Child,{as:D.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:$.jsx("div",{"data-cy":"confirmation-modal-cy",className:"relative rounded-md border border-grey-50 bg-grey-900",style:{width:d},onClick:y=>y.stopPropagation(),children:$.jsxs("div",{className:"flex flex-col items-center gap-3 p-6 px-12",children:[i?$.jsx("div",{className:"flex items-center justify-center",children:$.jsx(mR,{name:i,color:s,className:"w-6 h-6"})}):null,$.jsx(yR,{condition:t,children:$.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-white text-center",children:t})}),$.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium text-white",children:r}),$.jsx("div",{className:"text-xs text-white",children:tt.values(f==null?void 0:f.toggles).map(y=>$.jsx("div",{children:$.jsxs("label",{htmlFor:y.key,className:"flex items-center",children:[$.jsx(Tm,{size:"xs",value:y.value,onChange:x=>E(y.key,x)}),$.jsx("span",{className:"ml-1",children:y.title})]})},y.key))}),$.jsx(wR,{warnings:w}),$.jsx("div",{className:"flex items-center gap-4",children:a===Rf.CONFIRM?$.jsxs($.Fragment,{children:[$.jsx(_l,{autoFocus:!0,color:s,onClick:()=>v(vi.CONFIRMED),children:"Confirm"}),$.jsx(_l,{color:s,variant:"outlined",onClick:()=>v(vi.CANCELED),children:"Cancel"})]}):$.jsx(_l,{autoFocus:!0,onClick:()=>v(),children:"OK"})})]})})})})}),document.querySelector("body"))},yR=e=>e.condition?$.jsx($.Fragment,{children:e.children}):null,wR=e=>e.warnings?$.jsx(es,{appear:!0,show:!!e.warnings.length,as:D.Fragment,children:$.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)=>$.jsx(es.Child,{as:D.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:$.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[$.jsx(mt.FdWarningDanger,{className:ft({"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")}),$.jsx("div",{className:"flex-1",children:t.message})]})},`modal-warnings-${r}`))})}):null;function bR(e,t){const r=D.useRef(!1);D.useEffect(()=>{if(r.current)return e();r.current=!0},t)}const Ol=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Al(e,t,r,i){e.addEventListener?e.addEventListener(t,r,i):e.attachEvent&&e.attachEvent("on".concat(t),r)}function Zi(e,t,r,i){e.removeEventListener?e.removeEventListener(t,r,i):e.detachEvent&&e.detachEvent("on".concat(t),r)}function Rm(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 Im(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 SR(e,t){const r=e.length>=t.length?e:t,i=e.length>=t.length?t:e;let a=!0;for(let s=0;s<r.length;s++)i.indexOf(r[s])===-1&&(a=!1);return a}const uo={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,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,"-":Ol?173:189,"=":Ol?61:187,";":Ol?59:186,"'":222,"[":219,"]":221,"\\":220},Mr={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},Ba={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},Ze={};for(let e=1;e<20;e++)uo["f".concat(e)]=111+e;let Be=[],to=null,Mm="all";const qr=new Map,Ao=e=>uo[e.toLowerCase()]||Mr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),ER=e=>Object.keys(uo).find(t=>uo[t]===e),xR=e=>Object.keys(Mr).find(t=>Mr[t]===e);function Fm(e){Mm=e||"all"}function lo(){return Mm||"all"}function _R(){return Be.slice(0)}function OR(){return Be.map(e=>ER(e)||xR(e)||String.fromCharCode(e))}function AR(){const e=[];return Object.keys(Ze).forEach(t=>{Ze[t].forEach(r=>{let{key:i,scope:a,mods:s,shortcut:l}=r;e.push({scope:a,shortcut:l,mods:s,keys:i.split("+").map(f=>Ao(f))})})}),e}function TR(e){const t=e.target||e.srcElement,{tagName:r}=t;let i=!0;const a=r==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(t.type);return(t.isContentEditable||(a||r==="TEXTAREA"||r==="SELECT")&&!t.readOnly)&&(i=!1),i}function CR(e){return typeof e=="string"&&(e=Ao(e)),Be.indexOf(e)!==-1}function PR(e,t){let r,i;e||(e=lo());for(const a in Ze)if(Object.prototype.hasOwnProperty.call(Ze,a))for(r=Ze[a],i=0;i<r.length;)r[i].scope===e?r.splice(i,1).forEach(l=>{let{element:f}=l;return If(f)}):i++;lo()===e&&Fm(t||"all")}function RR(e){let t=e.keyCode||e.which||e.charCode;const r=Be.indexOf(t);if(r>=0&&Be.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&Be.splice(0,Be.length),(t===93||t===224)&&(t=91),t in vt){vt[t]=!1;for(const i in Mr)Mr[i]===t&&(wr[i]=!1)}}function Lm(e){if(typeof e>"u")Object.keys(Ze).forEach(a=>{Array.isArray(Ze[a])&&Ze[a].forEach(s=>$a(s)),delete Ze[a]}),If(null);else if(Array.isArray(e))e.forEach(a=>{a.key&&$a(a)});else if(typeof e=="object")e.key&&$a(e);else if(typeof e=="string"){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];let[a,s]=r;typeof a=="function"&&(s=a,a=""),$a({key:e,scope:a,method:s,splitKey:"+"})}}const $a=e=>{let{key:t,scope:r,method:i,splitKey:a="+"}=e;Im(t).forEach(l=>{const f=l.split(a),d=f.length,p=f[d-1],h=p==="*"?"*":Ao(p);if(!Ze[h])return;r||(r=lo());const b=d>1?Rm(Mr,f):[],v=[];Ze[h]=Ze[h].filter(w=>{const y=(i?w.method===i:!0)&&w.scope===r&&SR(w.mods,b);return y&&v.push(w.element),!y}),v.forEach(w=>If(w))})};function kh(e,t,r,i){if(t.element!==i)return;let a;if(t.scope===r||t.scope==="all"){a=t.mods.length>0;for(const s in vt)Object.prototype.hasOwnProperty.call(vt,s)&&(!vt[s]&&t.mods.indexOf(+s)>-1||vt[s]&&t.mods.indexOf(+s)===-1)&&(a=!1);(t.mods.length===0&&!vt[16]&&!vt[18]&&!vt[17]&&!vt[91]||a||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(Be),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function Nh(e,t){const r=Ze["*"];let i=e.keyCode||e.which||e.charCode;if(!wr.filter.call(this,e))return;if((i===93||i===224)&&(i=91),Be.indexOf(i)===-1&&i!==229&&Be.push(i),["metaKey","ctrlKey","altKey","shiftKey"].forEach(f=>{const d=Ba[f];e[f]&&Be.indexOf(d)===-1?Be.push(d):!e[f]&&Be.indexOf(d)>-1?Be.splice(Be.indexOf(d),1):f==="metaKey"&&e[f]&&(Be=Be.filter(p=>p in Ba||p===i))}),i in vt){vt[i]=!0;for(const f in Mr)Mr[f]===i&&(wr[f]=!0);if(!r)return}for(const f in vt)Object.prototype.hasOwnProperty.call(vt,f)&&(vt[f]=e[Ba[f]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Be.indexOf(17)===-1&&Be.push(17),Be.indexOf(18)===-1&&Be.push(18),vt[17]=!0,vt[18]=!0);const a=lo();if(r)for(let f=0;f<r.length;f++)r[f].scope===a&&(e.type==="keydown"&&r[f].keydown||e.type==="keyup"&&r[f].keyup)&&kh(e,r[f],a,t);if(!(i in Ze))return;const s=Ze[i],l=s.length;for(let f=0;f<l;f++)if((e.type==="keydown"&&s[f].keydown||e.type==="keyup"&&s[f].keyup)&&s[f].key){const d=s[f],{splitKey:p}=d,h=d.key.split(p),b=[];for(let v=0;v<h.length;v++)b.push(Ao(h[v]));b.sort().join("")===Be.sort().join("")&&kh(e,d,a,t)}}function wr(e,t,r){Be=[];const i=Im(e);let a=[],s="all",l=document,f=0,d=!1,p=!0,h="+",b=!1,v=!1;for(r===void 0&&typeof t=="function"&&(r=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(s=t.scope),t.element&&(l=t.element),t.keyup&&(d=t.keyup),t.keydown!==void 0&&(p=t.keydown),t.capture!==void 0&&(b=t.capture),typeof t.splitKey=="string"&&(h=t.splitKey),t.single===!0&&(v=!0)),typeof t=="string"&&(s=t),v&&Lm(e,s);f<i.length;f++)e=i[f].split(h),a=[],e.length>1&&(a=Rm(Mr,e)),e=e[e.length-1],e=e==="*"?"*":Ao(e),e in Ze||(Ze[e]=[]),Ze[e].push({keyup:d,keydown:p,scope:s,mods:a,shortcut:i[f],method:r,key:i[f],splitKey:h,element:l});if(typeof l<"u"&&window){if(!qr.has(l)){const w=function(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return Nh(y,l)},E=function(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;Nh(y,l),RR(y)};qr.set(l,{keydownListener:w,keyupListenr:E,capture:b}),Al(l,"keydown",w,b),Al(l,"keyup",E,b)}if(!to){const w=()=>{Be=[]};to={listener:w,capture:b},Al(window,"focus",w,b)}}}function IR(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(Ze).forEach(r=>{Ze[r].filter(a=>a.scope===t&&a.shortcut===e).forEach(a=>{a&&a.method&&a.method()})})}function If(e){const t=Object.values(Ze).flat();if(t.findIndex(i=>{let{element:a}=i;return a===e})<0){const{keydownListener:i,keyupListenr:a,capture:s}=qr.get(e)||{};i&&a&&(Zi(e,"keyup",a,s),Zi(e,"keydown",i,s),qr.delete(e))}if((t.length<=0||qr.size<=0)&&(Object.keys(qr).forEach(a=>{const{keydownListener:s,keyupListenr:l,capture:f}=qr.get(a)||{};s&&l&&(Zi(a,"keyup",l,f),Zi(a,"keydown",s,f),qr.delete(a))}),qr.clear(),Object.keys(Ze).forEach(a=>delete Ze[a]),to)){const{listener:a,capture:s}=to;Zi(window,"focus",a,s),to=null}}const Tl={getPressedKeyString:OR,setScope:Fm,getScope:lo,deleteScope:PR,getPressedKeyCodes:_R,getAllKeyCodes:AR,isPressed:CR,filter:TR,trigger:IR,unbind:Lm,keyMap:uo,modifier:Mr,modifierMap:Ba};for(const e in Tl)Object.prototype.hasOwnProperty.call(Tl,e)&&(wr[e]=Tl[e]);if(typeof window<"u"){const e=window.hotkeys;wr.noConflict=t=>(t&&window.hotkeys===wr&&(window.hotkeys=e),wr),window.hotkeys=wr}wr.filter=()=>!0;function MR(e,t,r,i){r instanceof Array&&(i=r,r=void 0),i=i||[],r=r||{};const{preventDefault:a=!0}=r,s=D.useCallback((f,d)=>{a&&f.preventDefault(),setTimeout(()=>t(f,d))},i),l=()=>{wr.unbind(e,s)};D.useEffect(()=>(wr(e,r,s),l),[e,r,s])}const FR=e=>{const t=D.useRef(null);return D.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 LR(e){const t=D.useRef();return D.useEffect(()=>{t.current=e},[e]),t.current}function $R(e){const t=D.useRef(e);return D.useEffect(()=>{t.current=e},[e]),t}function DR(e){const t=D.useRef(null);return D.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}function kR(e){const[t,r]=D.useState(e),i=(s,l)=>{r(f=>({...f,features:{...f.features,[s]:{enabled:l}}}))},a=D.useCallback((...s)=>s.every(l=>{var f;return(f=t.features[l])==null?void 0:f.enabled}),[t.features]);return{setFeature:i,isFeatureEnabled:a}}const $m=D.createContext(""),NR=e=>$.jsx($m.Provider,{value:e.value,children:e.children}),jR=()=>{const e=D.useContext($m);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function WR(e){const[t,r]=D.useState(e),i=D.useMemo(()=>zR(t,r),[]);return{state:t,actions:{...i,set:a=>{r(typeof a=="function"?a:s=>({...s,...a}))}}}}function zR(e,t=()=>{}){return Object.keys(e).reduce((i,a)=>({...i,[`set${tt.upperFirst(a)}`]:s=>t(l=>({...l,[a]:s}))}),{})}const UR=(e,t,r={})=>{r={timeout:200,...r};const i=D.useRef(),a=()=>{i.current&&(clearTimeout(i.current),i.current=null)};return D.useCallback((s,...l)=>{a(),t&&s.detail===1&&(i.current=setTimeout(()=>{t(s,...l)},r.timeout)),s.detail%2===0&&e(s,...l)},[t,e,r.timeout])};function Yr(e){return typeof e=="function"}function Dm(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 Cl=Dm(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
151
- `+r.map(function(i,a){return a+1+") "+i.toString()}).join(`
152
- `):"",this.name="UnsubscriptionError",this.errors=r}});function Ql(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var ys=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,i,a,s;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var f=Nl(l),d=f.next();!d.done;d=f.next()){var p=d.value;p.remove(this)}}catch(y){t={error:y}}finally{try{d&&!d.done&&(r=f.return)&&r.call(f)}finally{if(t)throw t.error}}else l.remove(this);var h=this.initialTeardown;if(Yr(h))try{h()}catch(y){s=y instanceof Cl?y.errors:[y]}var b=this._finalizers;if(b){this._finalizers=null;try{for(var v=Nl(b),w=v.next();!w.done;w=v.next()){var E=w.value;try{jh(E)}catch(y){s=s??[],y instanceof Cl?s=Wl(Wl([],jl(s)),jl(y.errors)):s.push(y)}}}catch(y){i={error:y}}finally{try{w&&!w.done&&(a=v.return)&&a.call(v)}finally{if(i)throw i.error}}}if(s)throw new Cl(s)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)jh(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)&&Ql(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Ql(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),km=ys.EMPTY;function Nm(e){return e instanceof ys||e&&"closed"in e&&Yr(e.remove)&&Yr(e.add)&&Yr(e.unsubscribe)}function jh(e){Yr(e)?e():e.unsubscribe()}var BR={Promise:void 0},HR={setTimeout:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setTimeout.apply(void 0,Wl([e,t],jl(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function qR(e){HR.setTimeout(function(){throw e})}function Wh(){}function Ha(e){e()}var jm=function(e){ls(t,e);function t(r){var i=e.call(this)||this;return i.isStopped=!1,r?(i.destination=r,Nm(r)&&r.add(i)):i.destination=KR,i}return t.create=function(r,i,a){return new ef(r,i,a)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(ys),ZR=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){Da(i)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(i){Da(i)}else Da(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Da(r)}},e}(),ef=function(e){ls(t,e);function t(r,i,a){var s=e.call(this)||this,l;return Yr(r)||!r?l={next:r??void 0,error:i??void 0,complete:a??void 0}:l=r,s.destination=new ZR(l),s}return t}(jm);function Da(e){qR(e)}function GR(e){throw e}var KR={closed:!0,next:Wh,error:GR,complete:Wh},YR=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function VR(e){return e}function XR(e){return e.length===0?VR:e.length===1?e[0]:function(r){return e.reduce(function(i,a){return a(i)},r)}}var zh=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,i){var a=this,s=QR(t)?t:new ef(t,r,i);return Ha(function(){var l=a,f=l.operator,d=l.source;s.add(f?f.call(s,d):d?a._subscribe(s):a._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var i=this;return r=Uh(r),new r(function(a,s){var l=new ef({next:function(f){try{t(f)}catch(d){s(d),l.unsubscribe()}},error:s,complete:a});i.subscribe(l)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[YR]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return XR(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Uh(t),new t(function(i,a){var s;r.subscribe(function(l){return s=l},function(l){return a(l)},function(){return i(s)})})},e.create=function(t){return new e(t)},e}();function Uh(e){var t;return(t=e??BR.Promise)!==null&&t!==void 0?t:Promise}function JR(e){return e&&Yr(e.next)&&Yr(e.error)&&Yr(e.complete)}function QR(e){return e&&e instanceof jm||JR(e)&&Nm(e)}var eI=Dm(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),En=function(e){ls(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 Bh(this,this);return i.operator=r,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new eI},t.prototype.next=function(r){var i=this;Ha(function(){var a,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var l=Nl(i.currentObservers),f=l.next();!f.done;f=l.next()){var d=f.value;d.next(r)}}catch(p){a={error:p}}finally{try{f&&!f.done&&(s=l.return)&&s.call(l)}finally{if(a)throw a.error}}}})},t.prototype.error=function(r){var i=this;Ha(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=r;for(var a=i.observers;a.length;)a.shift().error(r)}})},t.prototype.complete=function(){var r=this;Ha(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var i=r.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var i=this,a=this,s=a.hasError,l=a.isStopped,f=a.observers;return s||l?km:(this.currentObservers=null,f.push(r),new ys(function(){i.currentObservers=null,Ql(f,r)}))},t.prototype._checkFinalizedStatuses=function(r){var i=this,a=i.hasError,s=i.thrownError,l=i.isStopped;a?r.error(s):l&&r.complete()},t.prototype.asObservable=function(){var r=new zh;return r.source=this,r},t.create=function(r,i){return new Bh(r,i)},t}(zh),Bh=function(e){ls(t,e);function t(r,i){var a=e.call(this)||this;return a.destination=r,a.source=i,a}return t.prototype.next=function(r){var i,a;(a=(i=this.destination)===null||i===void 0?void 0:i.next)===null||a===void 0||a.call(i,r)},t.prototype.error=function(r){var i,a;(a=(i=this.destination)===null||i===void 0?void 0:i.error)===null||a===void 0||a.call(i,r)},t.prototype.complete=function(){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||i===void 0||i.call(r)},t.prototype._subscribe=function(r){var i,a;return(a=(i=this.source)===null||i===void 0?void 0:i.subscribe(r))!==null&&a!==void 0?a:km},t}(En),Wm=(e=>(e.RELOAD="reload",e.RECOMPUTE="recompute",e))(Wm||{}),zm=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(zm||{});const tI=new En,rI=new En,Um=new En;var Bm=(e=>(e.SAVE_ALL="save-all",e))(Bm||{});const nI=new En;var Hm=(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))(Hm||{});const iI=new En;var qm=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(qm||{});const oI=new En,aI=new En,Mf=31;var Ff=(e=>(e.EMPTY="Please enter a valid name",e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${Mf} characters`,e.SHOULD_START_WITH_LETTER="The name can only start with a letter or a Japanese character",e.INVALID="Invalid name",e))(Ff||{});function Zm(e){if(e==="")throw new Error("Please enter a valid name");if(e.length>Mf)throw new Error(Ff.LENGTH_EXCEEDED);if(!/^[a-zA-Z\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF]/.test(e))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(e))throw new Error("Invalid name");return!0}function sI(e){if(!e)return null;if(typeof e=="string")try{Zm(e)}catch(t){return t.message}}function uI(e,t){let r="";if(["array","object"].includes(t))try{const i=JSON.parse(e);t==="array"&&(!Array.isArray(i)||!tt.isObject(i))&&(r=`Invalid value for type ${t}`),t==="object"&&(!tt.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 ws(e){const t=new RegExp(':(?!4D\\.\\w+)[CPK]?\\d+(?=(?:[^"{}\\[\\]\\\\]*(?:\\\\.|"(?:[^"{}\\[\\]\\\\]*\\\\.)*[^"{}\\[\\]\\\\]*"))*[^"}\\]]*$)',"gm");return e.replace(t,"")}var Lf=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(Lf||{});const wn={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms",CLASSES_FOLDER:"ClassesFolder",REPORTS:"Reports",DEBUGGER:"Debugger"};var ur=(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))(ur||{}),Xn=(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))(Xn||{}),$f=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))($f||{});const Gm="roles.json",Km="qodlyApp.json",lI="model.4DModel",Ym="HTTPHandlers.json",fI="Localization/i18n";function Vm(e){const t=e.split("."),r=t.pop(),i=t.join(".").split("/")[0];switch(!0){case r==="4DModel":return ur.MODEL;case r==="WebForm":return ur.WEBFORM;case(["4dm","4qs","4qm"].includes(r)&&i===wn.METHODS):return ur.METHOD;case(["4dm","4qs","4qm"].includes(r)&&i===wn.CLASSES):return ur.CLASS;case e===Gm:return ur.ROLES;case e===Ym:return ur.HTTP_HANDLERS;case e===Km:return ur.SETTINGS;default:return ur.TEXT}}function cI(e,t=!1){switch(e){case wn.REPORTS:case"report":return"QoDoc";case wn.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case wn.CLASSES:case wn.METHODS:return t?"4qs":"4dm";default:return""}}function dI(e,t=""){const r=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return r?r[1]:t}class Xm{constructor(){this.current=Promise.resolve()}lock(){let t;const r=new Promise(a=>{t=a}),i=this.current.then(()=>t);return this.current=r,i}}function Jm(){const e=new Xm;return async t=>{const r=await e.lock();try{const i=await t();return r(),i}catch(i){console.error(i),r();return}}}const Qm=tt.curry((e,t,r)=>e&&tt.get(r,e)===t),pI=tt.curry((e,t,r)=>tt.get(r,e)!==t),hI=tt.curry((e,t)=>tt.get(t,"id")!==e),vI=tt.curry((e,t)=>tt.get(t,"id")===e),mI=tt.curry((e,t)=>tt.get(t,"path")===e);function gI(e="id",t,r){return r.findIndex(Qm(e,t))!==-1}function yI(e){if(!e)return"";const{id:t,namespace:r}=e;return r&&t?`${r}:${t}`:t}function eg(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function wI(e){return e.type==="object"}function tg(e){var t;return e.kind==="relatedEntities"||((t=e.type)==null?void 0:t.includes("Selection"))||e.behavior==="relatedEntities"}function rg(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!eg(e)}function bI(e){return tg(e)||rg(e)}function SI(e){return e.applyTo==="dataStore"}function EI(e){return e.applyTo==="dataClass"}function xI(e){return e.applyTo==="entity"}function _I(e){return e.applyTo==="entityCollection"}function OI(e){return e.type==="entity"}function AI(e){return e.type==="entitysel"}function ng(e){return e.dataType==="array"}function ig(e){return e.dataType==="object"}function og(e){return e.type==="scalar"}function TI(e){return ng(e)||ig(e)||og(e)}const CI=e=>e!=null&&e.type==="entity",PI=e=>e.type==="entitysel",RI=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",II=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",MI=e=>e.type==="scalar"&&e.dataType==="date";function FI(){return new Promise((e,t)=>{window.addEventListener("bundle:ready",r=>r.data?e():t(r.caughtErr))})}function LI(){return new Promise(e=>{window.addEventListener("i18n:ready",()=>e())})}var fo=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(fo||{}),ag=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(ag||{}),Df=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(Df||{});const $I={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function DI(e){var s;let t={};try{const l=((s=e.match(/\/\/%attributes = (.*)/))==null?void 0:s[1])||"";t=JSON.parse(l)}catch{}const{published4DMobile:r,...i}=t;return{...{invisible:!1,shared:!1,executedOnServer:!1,preemptive:fo.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!r,publishedRestOptions:r||{table:"",scope:Df.table}},...i}}function sg(e){const t={};return e.invisible&&(t.invisible=!0),e.shared&&(t.shared=!0),e.executedOnServer&&(t.executedOnServer=!0),e.preemptive&&[fo.capable,fo.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 kI(e,t,r=!1){const i=tt.isString(t)?t:sg(t);if(!r&&ug(e))return e;const a=lg(e);return`//%attributes = ${i}\r
153
- ${a}`}function ug(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function lg(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const NI=()=>gf.uuid().replaceAll("-","").toUpperCase(),at="/rest/$designer",To="/rest/$designer-ext";function jI(...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 tf 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){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 s=await r.json();a=new tf(e,r,s)}catch{a=new tf(e,r)}throw a.log(),a}return await r.json()}var Ye={},rf=Ye.ValidationError=function(t,r,i,a,s,l){if(Array.isArray(a)?(this.path=a,this.property=a.reduce(function(d,p){return d+fg(p)},"instance")):a!==void 0&&(this.property=a),t&&(this.message=t),i){var f=i.$id||i.id;this.schema=f||i}r!==void 0&&(this.instance=r),this.name=s,this.argument=l,this.stack=this.toString()};rf.prototype.toString=function(){return this.property+" "+this.message};var bs=Ye.ValidatorResult=function(t,r,i,a){this.instance=t,this.schema=r,this.options=i,this.path=a.path,this.propertyPath=a.propertyPath,this.errors=[],this.throwError=i&&i.throwError,this.throwFirst=i&&i.throwFirst,this.throwAll=i&&i.throwAll,this.disableFormat=i&&i.disableFormat===!0};bs.prototype.addError=function(t){var r;if(typeof t=="string")r=new rf(t,this.instance,this.schema,this.path);else{if(!t)throw new Error("Missing error detail");if(!t.message)throw new Error("Missing error message");if(!t.name)throw new Error("Missing validator type");r=new rf(t.message,this.instance,this.schema,this.path,t.name,t.argument)}if(this.errors.push(r),this.throwFirst)throw new Gn(this);if(this.throwError)throw r;return r};bs.prototype.importErrors=function(t){typeof t=="string"||t&&t.validatorType?this.addError(t):t&&t.errors&&(this.errors=this.errors.concat(t.errors))};function WI(e,t){return t+": "+e.toString()+`
154
- `}bs.prototype.toString=function(t){return this.errors.map(WI).join("")};Object.defineProperty(bs.prototype,"valid",{get:function(){return!this.errors.length}});Ye.ValidatorResultError=Gn;function Gn(e){typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Gn),this.instance=e.instance,this.schema=e.schema,this.options=e.options,this.errors=e.errors}Gn.prototype=new Error;Gn.prototype.constructor=Gn;Gn.prototype.name="Validation Error";var Hh=Ye.SchemaError=function e(t,r){this.message=t,this.schema=r,Error.call(this,t),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,e)};Hh.prototype=Object.create(Error.prototype,{constructor:{value:Hh,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var nf=Ye.SchemaContext=function(t,r,i,a,s){this.schema=t,this.options=r,Array.isArray(i)?(this.path=i,this.propertyPath=i.reduce(function(l,f){return l+fg(f)},"instance")):this.propertyPath=i,this.base=a,this.schemas=s};nf.prototype.resolve=function(t){return cg(this.base,t)};nf.prototype.makeChild=function(t,r){var i=r===void 0?this.path:this.path.concat([r]),a=t.$id||t.id;let s=cg(this.base,a||"");var l=new nf(t,this.options,i,s,Object.create(this.schemas));return a&&!l.schemas[s]&&(l.schemas[s]=t),l};var yr=Ye.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(e){return typeof e=="string"&&parseFloat(e)===parseInt(e,10)&&!isNaN(e)},regex:function(e){var t=!0;try{new RegExp(e)}catch{t=!1}return t},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]+$/};yr.regexp=yr.regex;yr.pattern=yr.regex;yr.ipv4=yr["ip-address"];Ye.isFormat=function(t,r,i){if(typeof t=="string"&&yr[r]!==void 0){if(yr[r]instanceof RegExp)return yr[r].test(t);if(typeof yr[r]=="function")return yr[r](t)}else if(i&&i.customFormats&&typeof i.customFormats[r]=="function")return i.customFormats[r](t);return!0};var fg=Ye.makeSuffix=function(t){return t=t.toString(),!t.match(/[.\s\[\]]/)&&!t.match(/^[\d]/)?"."+t:t.match(/^\d+$/)?"["+t+"]":"["+JSON.stringify(t)+"]"};Ye.deepCompareStrict=function e(t,r){if(typeof t!=typeof r)return!1;if(Array.isArray(t))return!Array.isArray(r)||t.length!==r.length?!1:t.every(function(s,l){return e(t[l],r[l])});if(typeof t=="object"){if(!t||!r)return t===r;var i=Object.keys(t),a=Object.keys(r);return i.length!==a.length?!1:i.every(function(s){return e(t[s],r[s])})}return t===r};function zI(e,t,r,i){typeof r=="object"?t[i]=kf(e[i],r):e.indexOf(r)===-1&&t.push(r)}function UI(e,t,r){t[r]=e[r]}function BI(e,t,r,i){typeof t[i]!="object"||!t[i]?r[i]=t[i]:e[i]?r[i]=kf(e[i],t[i]):r[i]=t[i]}function kf(e,t){var r=Array.isArray(t),i=r&&[]||{};return r?(e=e||[],i=i.concat(e),t.forEach(zI.bind(null,e,i))):(e&&typeof e=="object"&&Object.keys(e).forEach(UI.bind(null,e,i)),Object.keys(t).forEach(BI.bind(null,e,t,i))),i}Ye.deepMerge=kf;Ye.objectGetPath=function(t,r){for(var i=r.split("/").slice(1),a;typeof(a=i.shift())=="string";){var s=decodeURIComponent(a.replace(/~0/,"~").replace(/~1/g,"/"));if(!(s in t))return;t=t[s]}return t};function HI(e){return"/"+encodeURIComponent(e).replace(/~/g,"%7E")}Ye.encodePath=function(t){return t.map(HI).join("")};Ye.getDecimalPlaces=function(t){var r=0;if(isNaN(t))return r;typeof t!="number"&&(t=Number(t));var i=t.toString().split("e");if(i.length===2){if(i[1][0]!=="-")return r;r=Number(i[1].slice(1))}var a=i[0].split(".");return a.length===2&&(r+=a[1].length),r};Ye.isSchema=function(t){return typeof t=="object"&&t||typeof t=="boolean"};var cg=Ye.resolveUrl=function(t,r){const i=new URL(r,new URL(t,"resolve://"));if(i.protocol==="resolve:"){const{pathname:a,search:s,hash:l}=i;return a+s+l}return i.toString()},Yt=Ye,Ce=Yt.ValidatorResult,xn=Yt.SchemaError,Nf={};Nf.ignoreProperties={id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0};var Pe=Nf.validators={};Pe.type=function(t,r,i,a){if(t===void 0)return null;var s=new Ce(t,r,i,a),l=Array.isArray(r.type)?r.type:[r.type];if(!l.some(this.testType.bind(this,t,r,i,a))){var f=l.map(function(d){if(d){var p=d.$id||d.id;return p?"<"+p+">":d+""}});s.addError({name:"type",argument:f,message:"is not of a type(s) "+f})}return s};function jf(e,t,r,i,a){var s=t.throwError,l=t.throwAll;t.throwError=!1,t.throwAll=!1;var f=this.validateSchema(e,a,t,r);return t.throwError=s,t.throwAll=l,!f.valid&&i instanceof Function&&i(f),f.valid}Pe.anyOf=function(t,r,i,a){if(t===void 0)return null;var s=new Ce(t,r,i,a),l=new Ce(t,r,i,a);if(!Array.isArray(r.anyOf))throw new xn("anyOf must be an array");if(!r.anyOf.some(jf.bind(this,t,i,a,function(d){l.importErrors(d)}))){var f=r.anyOf.map(function(d,p){var h=d.$id||d.id;return h?"<"+h+">":d.title&&JSON.stringify(d.title)||d.$ref&&"<"+d.$ref+">"||"[subschema "+p+"]"});i.nestedErrors&&s.importErrors(l),s.addError({name:"anyOf",argument:f,message:"is not any of "+f.join(",")})}return s};Pe.allOf=function(t,r,i,a){if(t===void 0)return null;if(!Array.isArray(r.allOf))throw new xn("allOf must be an array");var s=new Ce(t,r,i,a),l=this;return r.allOf.forEach(function(f,d){var p=l.validateSchema(t,f,i,a);if(!p.valid){var h=f.$id||f.id,b=h||f.title&&JSON.stringify(f.title)||f.$ref&&"<"+f.$ref+">"||"[subschema "+d+"]";s.addError({name:"allOf",argument:{id:b,length:p.errors.length,valid:p},message:"does not match allOf schema "+b+" with "+p.errors.length+" error[s]:"}),s.importErrors(p)}}),s};Pe.oneOf=function(t,r,i,a){if(t===void 0)return null;if(!Array.isArray(r.oneOf))throw new xn("oneOf must be an array");var s=new Ce(t,r,i,a),l=new Ce(t,r,i,a),f=r.oneOf.filter(jf.bind(this,t,i,a,function(p){l.importErrors(p)})).length,d=r.oneOf.map(function(p,h){var b=p.$id||p.id;return b||p.title&&JSON.stringify(p.title)||p.$ref&&"<"+p.$ref+">"||"[subschema "+h+"]"});return f!==1&&(i.nestedErrors&&s.importErrors(l),s.addError({name:"oneOf",argument:d,message:"is not exactly one from "+d.join(",")})),s};Pe.if=function(t,r,i,a){if(t===void 0)return null;if(!Yt.isSchema(r.if))throw new Error('Expected "if" keyword to be a schema');var s=jf.call(this,t,i,a,null,r.if),l=new Ce(t,r,i,a),f;if(s){if(r.then===void 0)return;if(!Yt.isSchema(r.then))throw new Error('Expected "then" keyword to be a schema');f=this.validateSchema(t,r.then,i,a.makeChild(r.then)),l.importErrors(f)}else{if(r.else===void 0)return;if(!Yt.isSchema(r.else))throw new Error('Expected "else" keyword to be a schema');f=this.validateSchema(t,r.else,i,a.makeChild(r.else)),l.importErrors(f)}return l};function Wf(e,t){if(Object.hasOwnProperty.call(e,t))return e[t];if(t in e){for(;e=Object.getPrototypeOf(e);)if(Object.propertyIsEnumerable.call(e,t))return e[t]}}Pe.propertyNames=function(t,r,i,a){if(this.types.object(t)){var s=new Ce(t,r,i,a),l=r.propertyNames!==void 0?r.propertyNames:{};if(!Yt.isSchema(l))throw new xn('Expected "propertyNames" to be a schema (object or boolean)');for(var f in t)if(Wf(t,f)!==void 0){var d=this.validateSchema(f,l,i,a.makeChild(l));s.importErrors(d)}return s}};Pe.properties=function(t,r,i,a){if(this.types.object(t)){var s=new Ce(t,r,i,a),l=r.properties||{};for(var f in l){var d=l[f];if(d!==void 0){if(d===null)throw new xn('Unexpected null, expected schema in "properties"');typeof i.preValidateProperty=="function"&&i.preValidateProperty(t,f,d,i,a);var p=Wf(t,f),h=this.validateSchema(p,d,i,a.makeChild(d,f));h.instance!==s.instance[f]&&(s.instance[f]=h.instance),s.importErrors(h)}}return s}};function dg(e,t,r,i,a,s){if(this.types.object(e)&&!(t.properties&&t.properties[a]!==void 0))if(t.additionalProperties===!1)s.addError({name:"additionalProperties",argument:a,message:"is not allowed to have the additional property "+JSON.stringify(a)});else{var l=t.additionalProperties||{};typeof r.preValidateProperty=="function"&&r.preValidateProperty(e,a,l,r,i);var f=this.validateSchema(e[a],l,r,i.makeChild(l,a));f.instance!==s.instance[a]&&(s.instance[a]=f.instance),s.importErrors(f)}}Pe.patternProperties=function(t,r,i,a){if(this.types.object(t)){var s=new Ce(t,r,i,a),l=r.patternProperties||{};for(var f in t){var d=!0;for(var p in l){var h=l[p];if(h!==void 0){if(h===null)throw new xn('Unexpected null, expected schema in "patternProperties"');try{var b=new RegExp(p,"u")}catch{b=new RegExp(p)}if(b.test(f)){d=!1,typeof i.preValidateProperty=="function"&&i.preValidateProperty(t,f,h,i,a);var v=this.validateSchema(t[f],h,i,a.makeChild(h,f));v.instance!==s.instance[f]&&(s.instance[f]=v.instance),s.importErrors(v)}}}d&&dg.call(this,t,r,i,a,f,s)}return s}};Pe.additionalProperties=function(t,r,i,a){if(this.types.object(t)){if(r.patternProperties)return null;var s=new Ce(t,r,i,a);for(var l in t)dg.call(this,t,r,i,a,l,s);return s}};Pe.minProperties=function(t,r,i,a){if(this.types.object(t)){var s=new Ce(t,r,i,a),l=Object.keys(t);return l.length>=r.minProperties||s.addError({name:"minProperties",argument:r.minProperties,message:"does not meet minimum property length of "+r.minProperties}),s}};Pe.maxProperties=function(t,r,i,a){if(this.types.object(t)){var s=new Ce(t,r,i,a),l=Object.keys(t);return l.length<=r.maxProperties||s.addError({name:"maxProperties",argument:r.maxProperties,message:"does not meet maximum property length of "+r.maxProperties}),s}};Pe.items=function(t,r,i,a){var s=this;if(this.types.array(t)&&r.items!==void 0){var l=new Ce(t,r,i,a);return t.every(function(f,d){if(Array.isArray(r.items))var p=r.items[d]===void 0?r.additionalItems:r.items[d];else var p=r.items;if(p===void 0)return!0;if(p===!1)return l.addError({name:"items",message:"additionalItems not permitted"}),!1;var h=s.validateSchema(f,p,i,a.makeChild(p,d));return h.instance!==l.instance[d]&&(l.instance[d]=h.instance),l.importErrors(h),!0}),l}};Pe.contains=function(t,r,i,a){var s=this;if(this.types.array(t)&&r.contains!==void 0){if(!Yt.isSchema(r.contains))throw new Error('Expected "contains" keyword to be a schema');var l=new Ce(t,r,i,a),f=t.some(function(d,p){var h=s.validateSchema(d,r.contains,i,a.makeChild(r.contains,p));return h.errors.length===0});return f===!1&&l.addError({name:"contains",argument:r.contains,message:"must contain an item matching given schema"}),l}};Pe.minimum=function(t,r,i,a){if(this.types.number(t)){var s=new Ce(t,r,i,a);return r.exclusiveMinimum&&r.exclusiveMinimum===!0?t>r.minimum||s.addError({name:"minimum",argument:r.minimum,message:"must be greater than "+r.minimum}):t>=r.minimum||s.addError({name:"minimum",argument:r.minimum,message:"must be greater than or equal to "+r.minimum}),s}};Pe.maximum=function(t,r,i,a){if(this.types.number(t)){var s=new Ce(t,r,i,a);return r.exclusiveMaximum&&r.exclusiveMaximum===!0?t<r.maximum||s.addError({name:"maximum",argument:r.maximum,message:"must be less than "+r.maximum}):t<=r.maximum||s.addError({name:"maximum",argument:r.maximum,message:"must be less than or equal to "+r.maximum}),s}};Pe.exclusiveMinimum=function(t,r,i,a){if(typeof r.exclusiveMinimum!="boolean"&&this.types.number(t)){var s=new Ce(t,r,i,a),l=t>r.exclusiveMinimum;return l||s.addError({name:"exclusiveMinimum",argument:r.exclusiveMinimum,message:"must be strictly greater than "+r.exclusiveMinimum}),s}};Pe.exclusiveMaximum=function(t,r,i,a){if(typeof r.exclusiveMaximum!="boolean"&&this.types.number(t)){var s=new Ce(t,r,i,a),l=t<r.exclusiveMaximum;return l||s.addError({name:"exclusiveMaximum",argument:r.exclusiveMaximum,message:"must be strictly less than "+r.exclusiveMaximum}),s}};var pg=function(t,r,i,a,s,l){if(this.types.number(t)){var f=r[s];if(f==0)throw new xn(s+" cannot be zero");var d=new Ce(t,r,i,a),p=Yt.getDecimalPlaces(t),h=Yt.getDecimalPlaces(f),b=Math.max(p,h),v=Math.pow(10,b);return Math.round(t*v)%Math.round(f*v)!==0&&d.addError({name:s,argument:f,message:l+JSON.stringify(f)}),d}};Pe.multipleOf=function(t,r,i,a){return pg.call(this,t,r,i,a,"multipleOf","is not a multiple of (divisible by) ")};Pe.divisibleBy=function(t,r,i,a){return pg.call(this,t,r,i,a,"divisibleBy","is not divisible by (multiple of) ")};Pe.required=function(t,r,i,a){var s=new Ce(t,r,i,a);return t===void 0&&r.required===!0?s.addError({name:"required",message:"is required"}):this.types.object(t)&&Array.isArray(r.required)&&r.required.forEach(function(l){Wf(t,l)===void 0&&s.addError({name:"required",argument:l,message:"requires property "+JSON.stringify(l)})}),s};Pe.pattern=function(t,r,i,a){if(this.types.string(t)){var s=new Ce(t,r,i,a),l=r.pattern;try{var f=new RegExp(l,"u")}catch{f=new RegExp(l)}return t.match(f)||s.addError({name:"pattern",argument:r.pattern,message:"does not match pattern "+JSON.stringify(r.pattern.toString())}),s}};Pe.format=function(t,r,i,a){if(t!==void 0){var s=new Ce(t,r,i,a);return!s.disableFormat&&!Yt.isFormat(t,r.format,this)&&s.addError({name:"format",argument:r.format,message:"does not conform to the "+JSON.stringify(r.format)+" format"}),s}};Pe.minLength=function(t,r,i,a){if(this.types.string(t)){var s=new Ce(t,r,i,a),l=t.match(/[\uDC00-\uDFFF]/g),f=t.length-(l?l.length:0);return f>=r.minLength||s.addError({name:"minLength",argument:r.minLength,message:"does not meet minimum length of "+r.minLength}),s}};Pe.maxLength=function(t,r,i,a){if(this.types.string(t)){var s=new Ce(t,r,i,a),l=t.match(/[\uDC00-\uDFFF]/g),f=t.length-(l?l.length:0);return f<=r.maxLength||s.addError({name:"maxLength",argument:r.maxLength,message:"does not meet maximum length of "+r.maxLength}),s}};Pe.minItems=function(t,r,i,a){if(this.types.array(t)){var s=new Ce(t,r,i,a);return t.length>=r.minItems||s.addError({name:"minItems",argument:r.minItems,message:"does not meet minimum length of "+r.minItems}),s}};Pe.maxItems=function(t,r,i,a){if(this.types.array(t)){var s=new Ce(t,r,i,a);return t.length<=r.maxItems||s.addError({name:"maxItems",argument:r.maxItems,message:"does not meet maximum length of "+r.maxItems}),s}};function qI(e,t,r){var i,a=r.length;for(i=t+1,a;i<a;i++)if(Yt.deepCompareStrict(e,r[i]))return!1;return!0}Pe.uniqueItems=function(t,r,i,a){if(r.uniqueItems===!0&&this.types.array(t)){var s=new Ce(t,r,i,a);return t.every(qI)||s.addError({name:"uniqueItems",message:"contains duplicate item"}),s}};Pe.dependencies=function(t,r,i,a){if(this.types.object(t)){var s=new Ce(t,r,i,a);for(var l in r.dependencies)if(t[l]!==void 0){var f=r.dependencies[l],d=a.makeChild(f,l);if(typeof f=="string"&&(f=[f]),Array.isArray(f))f.forEach(function(h){t[h]===void 0&&s.addError({name:"dependencies",argument:d.propertyPath,message:"property "+h+" not found, required by "+d.propertyPath})});else{var p=this.validateSchema(t,f,i,d);s.instance!==p.instance&&(s.instance=p.instance),p&&p.errors.length&&(s.addError({name:"dependencies",argument:d.propertyPath,message:"does not meet dependency required by "+d.propertyPath}),s.importErrors(p))}}return s}};Pe.enum=function(t,r,i,a){if(t===void 0)return null;if(!Array.isArray(r.enum))throw new xn("enum expects an array",r);var s=new Ce(t,r,i,a);return r.enum.some(Yt.deepCompareStrict.bind(null,t))||s.addError({name:"enum",argument:r.enum,message:"is not one of enum values: "+r.enum.map(String).join(",")}),s};Pe.const=function(t,r,i,a){if(t===void 0)return null;var s=new Ce(t,r,i,a);return Yt.deepCompareStrict(r.const,t)||s.addError({name:"const",argument:r.const,message:"does not exactly match expected constant: "+r.const}),s};Pe.not=Pe.disallow=function(t,r,i,a){var s=this;if(t===void 0)return null;var l=new Ce(t,r,i,a),f=r.not||r.disallow;return f?(Array.isArray(f)||(f=[f]),f.forEach(function(d){if(s.testType(t,r,i,a,d)){var p=d&&(d.$id||d.id),h=p||d;l.addError({name:"not",argument:h,message:"is of prohibited type "+h})}}),l):null};var ZI=Nf,zf={},Pl=Ye;zf.SchemaScanResult=hg;function hg(e,t){this.id=e,this.ref=t}zf.scan=function(t,r){function i(d,p){if(!p||typeof p!="object")return;if(p.$ref){let w=Pl.resolveUrl(d,p.$ref);f[w]=f[w]?f[w]+1:0;return}var h=p.$id||p.id;let b=Pl.resolveUrl(d,h);var v=h?b:d;if(v){if(v.indexOf("#")<0&&(v+="#"),l[v]){if(!Pl.deepCompareStrict(l[v],p))throw new Error("Schema <"+v+"> already exists with different definition");return l[v]}l[v]=p,v[v.length-1]=="#"&&(l[v.substring(0,v.length-1)]=p)}a(v+"/items",Array.isArray(p.items)?p.items:[p.items]),a(v+"/extends",Array.isArray(p.extends)?p.extends:[p.extends]),i(v+"/additionalItems",p.additionalItems),s(v+"/properties",p.properties),i(v+"/additionalProperties",p.additionalProperties),s(v+"/definitions",p.definitions),s(v+"/patternProperties",p.patternProperties),s(v+"/dependencies",p.dependencies),a(v+"/disallow",p.disallow),a(v+"/allOf",p.allOf),a(v+"/anyOf",p.anyOf),a(v+"/oneOf",p.oneOf),i(v+"/not",p.not)}function a(d,p){if(Array.isArray(p))for(var h=0;h<p.length;h++)i(d+"/"+h,p[h])}function s(d,p){if(!(!p||typeof p!="object"))for(var h in p)i(d+"/"+h,p[h])}var l={},f={};return i(t,r),new hg(l,f)};var vg=ZI,_n=Ye,mg=zf.scan,gg=_n.ValidatorResult,GI=_n.ValidatorResultError,co=_n.SchemaError,yg=_n.SchemaContext,KI="/",ct=function e(){this.customFormats=Object.create(e.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(Fr),this.attributes=Object.create(vg.validators)};ct.prototype.customFormats={};ct.prototype.schemas=null;ct.prototype.types=null;ct.prototype.attributes=null;ct.prototype.unresolvedRefs=null;ct.prototype.addSchema=function(t,r){var i=this;if(!t)return null;var a=mg(r||KI,t),s=r||t.$id||t.id;for(var l in a.id)this.schemas[l]=a.id[l];for(var l in a.ref)this.unresolvedRefs.push(l);return this.unresolvedRefs=this.unresolvedRefs.filter(function(f){return typeof i.schemas[f]>"u"}),this.schemas[s]};ct.prototype.addSubSchemaArray=function(t,r){if(Array.isArray(r))for(var i=0;i<r.length;i++)this.addSubSchema(t,r[i])};ct.prototype.addSubSchemaObject=function(t,r){if(!(!r||typeof r!="object"))for(var i in r)this.addSubSchema(t,r[i])};ct.prototype.setSchemas=function(t){this.schemas=t};ct.prototype.getSchema=function(t){return this.schemas[t]};ct.prototype.validate=function(t,r,i,a){if(typeof r!="boolean"&&typeof r!="object"||r===null)throw new co("Expected `schema` to be an object or boolean");i||(i={});var s=r.$id||r.id;let l=_n.resolveUrl(i.base,s||"");if(!a){a=new yg(r,i,[],l,Object.create(this.schemas)),a.schemas[l]||(a.schemas[l]=r);var f=mg(l,r);for(var d in f.id){var p=f.id[d];a.schemas[d]=p}}if(i.required&&t===void 0){var h=new gg(t,r,i,a);return h.addError("is required, but is undefined"),h}var h=this.validateSchema(t,r,i,a);if(h){if(i.throwAll&&h.errors.length)throw new GI(h)}else throw new Error("Result undefined");return h};function wg(e){var t=typeof e=="string"?e:e.$ref;return typeof t=="string"?t:!1}ct.prototype.validateSchema=function(t,r,i,a){var s=new gg(t,r,i,a);if(typeof r=="boolean")r===!0?r={}:r===!1&&(r={type:[]});else if(!r)throw new Error("schema is undefined");if(r.extends)if(Array.isArray(r.extends)){var l={schema:r,ctx:a};r.extends.forEach(this.schemaTraverser.bind(this,l)),r=l.schema,l.schema=null,l.ctx=null,l=null}else r=_n.deepMerge(r,this.superResolve(r.extends,a));var f=wg(r);if(f){var d=this.resolve(r,f,a),p=new yg(d.subschema,i,a.path,d.switchSchema,a.schemas);return this.validateSchema(t,d.subschema,i,p)}var h=i&&i.skipAttributes||[];for(var b in r)if(!vg.ignoreProperties[b]&&h.indexOf(b)<0){var v=null,w=this.attributes[b];if(w)v=w.call(this,t,r,i,a);else if(i.allowUnknownAttributes===!1)throw new co("Unsupported attribute: "+b,r);v&&s.importErrors(v)}if(typeof i.rewrite=="function"){var E=i.rewrite.call(this,t,r,i,a);s.instance=E}return s};ct.prototype.schemaTraverser=function(t,r){t.schema=_n.deepMerge(t.schema,this.superResolve(r,t.ctx))};ct.prototype.superResolve=function(t,r){var i=wg(t);return i?this.resolve(t,i,r).subschema:t};ct.prototype.resolve=function(t,r,i){if(r=i.resolve(r),i.schemas[r])return{subschema:i.schemas[r],switchSchema:r};let s=new URL(r,"thismessage::/").hash;var l=s&&s.length&&r.substr(0,r.length-s.length);if(!l||!i.schemas[l])throw new co("no such schema <"+r+">",t);var f=_n.objectGetPath(i.schemas[l],s.substr(1));if(f===void 0)throw new co("no such schema "+s+" located in <"+l+">",t);return{subschema:f,switchSchema:r}};ct.prototype.testType=function(t,r,i,a,s){if(s!==void 0){if(s===null)throw new co('Unexpected null in "type" keyword');if(typeof this.types[s]=="function")return this.types[s].call(this,t);if(s&&typeof s=="object"){var l=this.validateSchema(t,s,i,a);return l===void 0||!(l&&l.errors.length)}return!0}};var Fr=ct.prototype.types={};Fr.string=function(t){return typeof t=="string"};Fr.number=function(t){return typeof t=="number"&&isFinite(t)};Fr.integer=function(t){return typeof t=="number"&&t%1===0};Fr.boolean=function(t){return typeof t=="boolean"};Fr.array=function(t){return Array.isArray(t)};Fr.null=function(t){return t===null};Fr.date=function(t){return t instanceof Date};Fr.any=function(t){return!0};Fr.object=function(t){return t&&typeof t=="object"&&!Array.isArray(t)&&!(t instanceof Date)};var YI=ct,bg;bg=YI;Ye.ValidatorResult;Ye.ValidatorResultError;Ye.ValidationError;Ye.SchemaError;var VI=Sg;function Sg(e,t,r){e instanceof RegExp&&(e=qh(e,r)),t instanceof RegExp&&(t=qh(t,r));var i=Eg(e,t,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+e.length,i[1]),post:r.slice(i[1]+t.length)}}function qh(e,t){var r=t.match(e);return r?r[0]:null}Sg.range=Eg;function Eg(e,t,r){var i,a,s,l,f,d=r.indexOf(e),p=r.indexOf(t,d+1),h=d;if(d>=0&&p>0){if(e===t)return[d,p];for(i=[],s=r.length;h>=0&&!f;)h==d?(i.push(h),d=r.indexOf(e,h+1)):i.length==1?f=[i.pop(),p]:(a=i.pop(),a<s&&(s=a,l=p),p=r.indexOf(t,h+1)),h=d<p&&d>=0?d:p;i.length&&(f=[s,l])}return f}var xg=VI,XI=eM,_g="\0SLASH"+Math.random()+"\0",Og="\0OPEN"+Math.random()+"\0",Uf="\0CLOSE"+Math.random()+"\0",Ag="\0COMMA"+Math.random()+"\0",Tg="\0PERIOD"+Math.random()+"\0";function Rl(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function JI(e){return e.split("\\\\").join(_g).split("\\{").join(Og).split("\\}").join(Uf).split("\\,").join(Ag).split("\\.").join(Tg)}function QI(e){return e.split(_g).join("\\").split(Og).join("{").split(Uf).join("}").split(Ag).join(",").split(Tg).join(".")}function Cg(e){if(!e)return[""];var t=[],r=xg("{","}",e);if(!r)return e.split(",");var i=r.pre,a=r.body,s=r.post,l=i.split(",");l[l.length-1]+="{"+a+"}";var f=Cg(s);return s.length&&(l[l.length-1]+=f.shift(),l.push.apply(l,f)),t.push.apply(t,l),t}function eM(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),Yi(JI(e),!0).map(QI)):[]}function tM(e){return"{"+e+"}"}function rM(e){return/^-?0\d/.test(e)}function nM(e,t){return e<=t}function iM(e,t){return e>=t}function Yi(e,t){var r=[],i=xg("{","}",e);if(!i)return[e];var a=i.pre,s=i.post.length?Yi(i.post,!1):[""];if(/\$$/.test(i.pre))for(var l=0;l<s.length;l++){var f=a+"{"+i.body+"}"+s[l];r.push(f)}else{var d=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),p=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),h=d||p,b=i.body.indexOf(",")>=0;if(!h&&!b)return i.post.match(/,.*\}/)?(e=i.pre+"{"+i.body+Uf+i.post,Yi(e)):[e];var v;if(h)v=i.body.split(/\.\./);else if(v=Cg(i.body),v.length===1&&(v=Yi(v[0],!1).map(tM),v.length===1))return s.map(function(V){return i.pre+v[0]+V});var w;if(h){var E=Rl(v[0]),y=Rl(v[1]),x=Math.max(v[0].length,v[1].length),A=v.length==3?Math.abs(Rl(v[2])):1,I=nM,P=y<E;P&&(A*=-1,I=iM);var F=v.some(rM);w=[];for(var O=E;I(O,y);O+=A){var L;if(p)L=String.fromCharCode(O),L==="\\"&&(L="");else if(L=String(O),F){var U=x-L.length;if(U>0){var z=new Array(U+1).join("0");O<0?L="-"+z+L.slice(1):L=z+L}}w.push(L)}}else{w=[];for(var q=0;q<v.length;q++)w.push.apply(w,Yi(v[q],!1))}for(var q=0;q<w.length;q++)for(var l=0;l<s.length;l++){var f=a+w[q]+s[l];(!t||h||f)&&r.push(f)}}return r}const oM=pf(XI),aM=1024*64,rs=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>aM)throw new TypeError("pattern is too long")},sM={"[: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]},Gi=e=>e.replace(/[[\]\\-]/g,"\\$&"),uM=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Zh=e=>e.join(""),lM=(e,t)=>{const r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");const i=[],a=[];let s=r+1,l=!1,f=!1,d=!1,p=!1,h=r,b="";e:for(;s<e.length;){const y=e.charAt(s);if((y==="!"||y==="^")&&s===r+1){p=!0,s++;continue}if(y==="]"&&l&&!d){h=s+1;break}if(l=!0,y==="\\"&&!d){d=!0,s++;continue}if(y==="["&&!d){for(const[x,[A,I,P]]of Object.entries(sM))if(e.startsWith(x,s)){if(b)return["$.",!1,e.length-r,!0];s+=x.length,P?a.push(A):i.push(A),f=f||I;continue e}}if(d=!1,b){y>b?i.push(Gi(b)+"-"+Gi(y)):y===b&&i.push(Gi(y)),b="",s++;continue}if(e.startsWith("-]",s+1)){i.push(Gi(y+"-")),s+=2;continue}if(e.startsWith("-",s+1)){b=y,s+=2;continue}i.push(Gi(y)),s++}if(h<s)return["",!1,0,!1];if(!i.length&&!a.length)return["$.",!1,e.length-r,!0];if(a.length===0&&i.length===1&&/^\\?.$/.test(i[0])&&!p){const y=i[0].length===2?i[0].slice(-1):i[0];return[uM(y),!1,h-r,!1]}const v="["+(p?"^":"")+Zh(i)+"]",w="["+(p?"":"^")+Zh(a)+"]";return[i.length&&a.length?"("+v+"|"+w+")":i.length?v:w,f,h-r,!0]},Vi=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),fM=new Set(["!","?","+","*","@"]),Gh=e=>fM.has(e),cM="(?!(?:^|/)\\.\\.?(?:$|/))",Il="(?!\\.)",dM=new Set(["[","."]),pM=new Set(["..","."]),hM=new Set("().*{}+?[]^$\\!"),vM=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Bf="[^/]",Kh=Bf+"*?",Yh=Bf+"+?";var ot,lt,Kr,Ue,et,vn,zn,mn,_r,Un,po,Kn,Pg,bn,qa,of,Rg;const Ft=class Ft{constructor(t,r,i={}){Nt(this,Kn);it(this,"type");Nt(this,ot);Nt(this,lt);Nt(this,Kr,!1);Nt(this,Ue,[]);Nt(this,et);Nt(this,vn);Nt(this,zn);Nt(this,mn,!1);Nt(this,_r);Nt(this,Un);Nt(this,po,!1);this.type=t,t&&Je(this,lt,!0),Je(this,et,r),Je(this,ot,Z(this,et)?Z(Z(this,et),ot):this),Je(this,_r,Z(this,ot)===this?i:Z(Z(this,ot),_r)),Je(this,zn,Z(this,ot)===this?[]:Z(Z(this,ot),zn)),t==="!"&&!Z(Z(this,ot),mn)&&Z(this,zn).push(this),Je(this,vn,Z(this,et)?Z(Z(this,et),Ue).length:0)}get hasMagic(){if(Z(this,lt)!==void 0)return Z(this,lt);for(const t of Z(this,Ue))if(typeof t!="string"&&(t.type||t.hasMagic))return Je(this,lt,!0);return Z(this,lt)}toString(){return Z(this,Un)!==void 0?Z(this,Un):this.type?Je(this,Un,this.type+"("+Z(this,Ue).map(t=>String(t)).join("|")+")"):Je(this,Un,Z(this,Ue).map(t=>String(t)).join(""))}push(...t){for(const r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof Ft&&Z(r,et)===this))throw new Error("invalid part: "+r);Z(this,Ue).push(r)}}toJSON(){var r;const t=this.type===null?Z(this,Ue).slice().map(i=>typeof i=="string"?i:i.toJSON()):[this.type,...Z(this,Ue).map(i=>i.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===Z(this,ot)||Z(Z(this,ot),mn)&&((r=Z(this,et))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(Z(this,ot)===this)return!0;if(!((r=Z(this,et))!=null&&r.isStart()))return!1;if(Z(this,vn)===0)return!0;const t=Z(this,et);for(let i=0;i<Z(this,vn);i++){const a=Z(t,Ue)[i];if(!(a instanceof Ft&&a.type==="!"))return!1}return!0}isEnd(){var r,i,a;if(Z(this,ot)===this||((r=Z(this,et))==null?void 0:r.type)==="!")return!0;if(!((i=Z(this,et))!=null&&i.isEnd()))return!1;if(!this.type)return(a=Z(this,et))==null?void 0:a.isEnd();const t=Z(this,et)?Z(Z(this,et),Ue).length:0;return Z(this,vn)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new Ft(this.type,t);for(const i of Z(this,Ue))r.copyIn(i);return r}static fromGlob(t,r={}){var a;const i=new Ft(null,void 0,r);return fn(a=Ft,bn,qa).call(a,t,i,0,r),i}toMMPattern(){if(this!==Z(this,ot))return Z(this,ot).toMMPattern();const t=this.toString(),[r,i,a,s]=this.toRegExpSource();if(!(a||Z(this,lt)||Z(this,_r).nocase&&!Z(this,_r).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return i;const f=(Z(this,_r).nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${r}$`,f),{_src:r,_glob:t})}get options(){return Z(this,_r)}toRegExpSource(t){var d;const r=t??!!Z(this,_r).dot;if(Z(this,ot)===this&&fn(this,Kn,Pg).call(this),!this.type){const p=this.isStart()&&this.isEnd(),h=Z(this,Ue).map(E=>{var P;const[y,x,A,I]=typeof E=="string"?fn(P=Ft,bn,Rg).call(P,E,Z(this,lt),p):E.toRegExpSource(t);return Je(this,lt,Z(this,lt)||A),Je(this,Kr,Z(this,Kr)||I),y}).join("");let b="";if(this.isStart()&&typeof Z(this,Ue)[0]=="string"&&!(Z(this,Ue).length===1&&pM.has(Z(this,Ue)[0]))){const y=dM,x=r&&y.has(h.charAt(0))||h.startsWith("\\.")&&y.has(h.charAt(2))||h.startsWith("\\.\\.")&&y.has(h.charAt(4)),A=!r&&!t&&y.has(h.charAt(0));b=x?cM:A?Il:""}let v="";return this.isEnd()&&Z(Z(this,ot),mn)&&((d=Z(this,et))==null?void 0:d.type)==="!"&&(v="(?:$|\\/)"),[b+h+v,Vi(h),Je(this,lt,!!Z(this,lt)),Z(this,Kr)]}const i=this.type==="*"||this.type==="+",a=this.type==="!"?"(?:(?!(?:":"(?:";let s=fn(this,Kn,of).call(this,r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){const p=this.toString();return Je(this,Ue,[p]),this.type=null,Je(this,lt,void 0),[p,Vi(this.toString()),!1,!1]}let l=!i||t||r?"":fn(this,Kn,of).call(this,!0);l===s&&(l=""),l&&(s=`(?:${s})(?:${l})*?`);let f="";if(this.type==="!"&&Z(this,po))f=(this.isStart()&&!r?Il:"")+Yh;else{const p=this.type==="!"?"))"+(this.isStart()&&!r&&!t?Il:"")+Kh+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&l?")":this.type==="*"&&l?")?":`)${this.type}`;f=a+s+p}return[f,Vi(s),Je(this,lt,!!Z(this,lt)),Z(this,Kr)]}};ot=new WeakMap,lt=new WeakMap,Kr=new WeakMap,Ue=new WeakMap,et=new WeakMap,vn=new WeakMap,zn=new WeakMap,mn=new WeakMap,_r=new WeakMap,Un=new WeakMap,po=new WeakMap,Kn=new WeakSet,Pg=function(){if(this!==Z(this,ot))throw new Error("should only call on root");if(Z(this,mn))return this;this.toString(),Je(this,mn,!0);let t;for(;t=Z(this,zn).pop();){if(t.type!=="!")continue;let r=t,i=Z(r,et);for(;i;){for(let a=Z(r,vn)+1;!i.type&&a<Z(i,Ue).length;a++)for(const s of Z(t,Ue)){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(Z(i,Ue)[a])}r=i,i=Z(r,et)}}return this},bn=new WeakSet,qa=function(t,r,i,a){var w,E;let s=!1,l=!1,f=-1,d=!1;if(r.type===null){let y=i,x="";for(;y<t.length;){const A=t.charAt(y++);if(s||A==="\\"){s=!s,x+=A;continue}if(l){y===f+1?(A==="^"||A==="!")&&(d=!0):A==="]"&&!(y===f+2&&d)&&(l=!1),x+=A;continue}else if(A==="["){l=!0,f=y,d=!1,x+=A;continue}if(!a.noext&&Gh(A)&&t.charAt(y)==="("){r.push(x),x="";const I=new Ft(A,r);y=fn(w=Ft,bn,qa).call(w,t,I,y,a),r.push(I);continue}x+=A}return r.push(x),y}let p=i+1,h=new Ft(null,r);const b=[];let v="";for(;p<t.length;){const y=t.charAt(p++);if(s||y==="\\"){s=!s,v+=y;continue}if(l){p===f+1?(y==="^"||y==="!")&&(d=!0):y==="]"&&!(p===f+2&&d)&&(l=!1),v+=y;continue}else if(y==="["){l=!0,f=p,d=!1,v+=y;continue}if(Gh(y)&&t.charAt(p)==="("){h.push(v),v="";const x=new Ft(y,h);h.push(x),p=fn(E=Ft,bn,qa).call(E,t,x,p,a);continue}if(y==="|"){h.push(v),v="",b.push(h),h=new Ft(null,r);continue}if(y===")")return v===""&&Z(r,Ue).length===0&&Je(r,po,!0),h.push(v),v="",r.push(...b,h),p;v+=y}return r.type=null,Je(r,lt,void 0),Je(r,Ue,[t.substring(i-1)]),p},of=function(t){return Z(this,Ue).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[i,a,s,l]=r.toRegExpSource(t);return Je(this,Kr,Z(this,Kr)||l),i}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},Rg=function(t,r,i=!1){let a=!1,s="",l=!1;for(let f=0;f<t.length;f++){const d=t.charAt(f);if(a){a=!1,s+=(hM.has(d)?"\\":"")+d;continue}if(d==="\\"){f===t.length-1?s+="\\\\":a=!0;continue}if(d==="["){const[p,h,b,v]=lM(t,f);if(b){s+=p,l=l||h,f+=b-1,r=r||v;continue}}if(d==="*"){i&&t==="*"?s+=Yh:s+=Kh,r=!0;continue}if(d==="?"){s+=Bf,r=!0;continue}s+=vM(d)}return[s,Vi(t),!!r,l]},Nt(Ft,bn);let ns=Ft;const mM=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),Tt=(e,t,r={})=>(rs(t),!r.nocomment&&t.charAt(0)==="#"?!1:new Ss(t,r).match(e)),gM=/^\*+([^+@!?\*\[\(]*)$/,yM=e=>t=>!t.startsWith(".")&&t.endsWith(e),wM=e=>t=>t.endsWith(e),bM=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),SM=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),EM=/^\*+\.\*+$/,xM=e=>!e.startsWith(".")&&e.includes("."),_M=e=>e!=="."&&e!==".."&&e.includes("."),OM=/^\.\*+$/,AM=e=>e!=="."&&e!==".."&&e.startsWith("."),TM=/^\*+$/,CM=e=>e.length!==0&&!e.startsWith("."),PM=e=>e.length!==0&&e!=="."&&e!=="..",RM=/^\?+([^+@!?\*\[\(]*)?$/,IM=([e,t=""])=>{const r=Ig([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},MM=([e,t=""])=>{const r=Mg([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},FM=([e,t=""])=>{const r=Mg([e]);return t?i=>r(i)&&i.endsWith(t):r},LM=([e,t=""])=>{const r=Ig([e]);return t?i=>r(i)&&i.endsWith(t):r},Ig=([e])=>{const t=e.length;return r=>r.length===t&&!r.startsWith(".")},Mg=([e])=>{const t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},Fg=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Vh={win32:{sep:"\\"},posix:{sep:"/"}},$M=Fg==="win32"?Vh.win32.sep:Vh.posix.sep;Tt.sep=$M;const sr=Symbol("globstar **");Tt.GLOBSTAR=sr;const DM="[^/]",kM=DM+"*?",NM="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",jM="(?:(?!(?:\\/|^)\\.).)*?",WM=(e,t={})=>r=>Tt(r,e,t);Tt.filter=WM;const ar=(e,t={})=>Object.assign({},e,t),zM=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Tt;const t=Tt;return Object.assign((i,a,s={})=>t(i,a,ar(e,s)),{Minimatch:class extends t.Minimatch{constructor(a,s={}){super(a,ar(e,s))}static defaults(a){return t.defaults(ar(e,a)).Minimatch}},AST:class extends t.AST{constructor(a,s,l={}){super(a,s,ar(e,l))}static fromGlob(a,s={}){return t.AST.fromGlob(a,ar(e,s))}},unescape:(i,a={})=>t.unescape(i,ar(e,a)),escape:(i,a={})=>t.escape(i,ar(e,a)),filter:(i,a={})=>t.filter(i,ar(e,a)),defaults:i=>t.defaults(ar(e,i)),makeRe:(i,a={})=>t.makeRe(i,ar(e,a)),braceExpand:(i,a={})=>t.braceExpand(i,ar(e,a)),match:(i,a,s={})=>t.match(i,a,ar(e,s)),sep:t.sep,GLOBSTAR:sr})};Tt.defaults=zM;const Lg=(e,t={})=>(rs(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:oM(e));Tt.braceExpand=Lg;const UM=(e,t={})=>new Ss(e,t).makeRe();Tt.makeRe=UM;const BM=(e,t,r={})=>{const i=new Ss(t,r);return e=e.filter(a=>i.match(a)),i.options.nonull&&!e.length&&e.push(t),e};Tt.match=BM;const Xh=/[?*]|[+@!]\(.*?\)|\[|\]/,HM=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class Ss{constructor(t,r={}){it(this,"options");it(this,"set");it(this,"pattern");it(this,"windowsPathsNoEscape");it(this,"nonegate");it(this,"negate");it(this,"comment");it(this,"empty");it(this,"preserveMultipleSlashes");it(this,"partial");it(this,"globSet");it(this,"globParts");it(this,"nocase");it(this,"isWindows");it(this,"platform");it(this,"windowsNoMagicRoot");it(this,"regexp");rs(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||Fg,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){const t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);const i=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let a=this.globParts.map((s,l,f)=>{if(this.isWindows&&this.windowsNoMagicRoot){const d=s[0]===""&&s[1]===""&&(s[2]==="?"||!Xh.test(s[2]))&&!Xh.test(s[3]),p=/^[a-z]:/i.test(s[0]);if(d)return[...s.slice(0,4),...s.slice(4).map(h=>this.parse(h))];if(p)return[s[0],...s.slice(1).map(h=>this.parse(h))]}return s.map(d=>this.parse(d))});if(this.debug(this.pattern,a),this.set=a.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){const l=this.set[s];l[0]===""&&l[1]===""&&this.globParts[s][2]==="?"&&typeof l[3]=="string"&&/^[a-z]:$/i.test(l[3])&&(l[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let i=0;i<t.length;i++)for(let a=0;a<t[i].length;a++)t[i][a]==="**"&&(t[i][a]="*");const{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):r>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(r=>{let i=-1;for(;(i=r.indexOf("**",i+1))!==-1;){let a=i;for(;r[a+1]==="**";)a++;a!==i&&r.splice(i,a-i)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((i,a)=>{const s=i[i.length-1];return a==="**"&&s==="**"?i:a===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(i.pop(),i):(i.push(a),i)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let a=1;a<t.length-1;a++){const s=t[a];a===1&&s===""&&t[0]===""||(s==="."||s==="")&&(r=!0,t.splice(a,1),a--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let i=0;for(;(i=t.indexOf("..",i+1))!==-1;){const a=t[i-1];a&&a!=="."&&a!==".."&&a!=="**"&&(r=!0,t.splice(i-1,2),i-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let i of t){let a=-1;for(;(a=i.indexOf("**",a+1))!==-1;){let l=a;for(;i[l+1]==="**";)l++;l>a&&i.splice(a+1,l-a);let f=i[a+1];const d=i[a+2],p=i[a+3];if(f!==".."||!d||d==="."||d===".."||!p||p==="."||p==="..")continue;r=!0,i.splice(a,1);const h=i.slice(0);h[a]="**",t.push(h),a--}if(!this.preserveMultipleSlashes){for(let l=1;l<i.length-1;l++){const f=i[l];l===1&&f===""&&i[0]===""||(f==="."||f==="")&&(r=!0,i.splice(l,1),l--)}i[0]==="."&&i.length===2&&(i[1]==="."||i[1]==="")&&(r=!0,i.pop())}let s=0;for(;(s=i.indexOf("..",s+1))!==-1;){const l=i[s-1];if(l&&l!=="."&&l!==".."&&l!=="**"){r=!0;const d=s===1&&i[s+1]==="**"?["."]:[];i.splice(s-1,2,...d),i.length===0&&i.push(""),s-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let i=r+1;i<t.length;i++){const a=this.partsMatch(t[r],t[i],!this.preserveMultipleSlashes);if(a){t[r]=[],t[i]=a;break}}return t.filter(r=>r.length)}partsMatch(t,r,i=!1){let a=0,s=0,l=[],f="";for(;a<t.length&&s<r.length;)if(t[a]===r[s])l.push(f==="b"?r[s]:t[a]),a++,s++;else if(i&&t[a]==="**"&&r[s]===t[a+1])l.push(t[a]),a++;else if(i&&r[s]==="**"&&t[a]===r[s+1])l.push(r[s]),s++;else if(t[a]==="*"&&r[s]&&(this.options.dot||!r[s].startsWith("."))&&r[s]!=="**"){if(f==="b")return!1;f="a",l.push(t[a]),a++,s++}else if(r[s]==="*"&&t[a]&&(this.options.dot||!t[a].startsWith("."))&&t[a]!=="**"){if(f==="a")return!1;f="b",l.push(r[s]),a++,s++}else return!1;return t.length===r.length&&l}parseNegate(){if(this.nonegate)return;const t=this.pattern;let r=!1,i=0;for(let a=0;a<t.length&&t.charAt(a)==="!";a++)r=!r,i++;i&&(this.pattern=t.slice(i)),this.negate=r}matchOne(t,r,i=!1){const a=this.options;if(this.isWindows){const y=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),x=!y&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),A=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),I=!A&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),P=x?3:y?0:void 0,F=I?3:A?0:void 0;if(typeof P=="number"&&typeof F=="number"){const[O,L]=[t[P],r[F]];O.toLowerCase()===L.toLowerCase()&&(r[F]=O,F>P?r=r.slice(F):P>F&&(t=t.slice(P)))}}const{optimizationLevel:s=1}=this.options;s>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var l=0,f=0,d=t.length,p=r.length;l<d&&f<p;l++,f++){this.debug("matchOne loop");var h=r[f],b=t[l];if(this.debug(r,h,b),h===!1)return!1;if(h===sr){this.debug("GLOBSTAR",[r,h,b]);var v=l,w=f+1;if(w===p){for(this.debug("** at the end");l<d;l++)if(t[l]==="."||t[l]===".."||!a.dot&&t[l].charAt(0)===".")return!1;return!0}for(;v<d;){var E=t[v];if(this.debug(`
155
- globstar while`,t,v,r,w,E),this.matchOne(t.slice(v),r.slice(w),i))return this.debug("globstar found match!",v,d,E),!0;if(E==="."||E===".."||!a.dot&&E.charAt(0)==="."){this.debug("dot detected!",t,v,r,w);break}this.debug("globstar swallow a segment, and continue"),v++}return!!(i&&(this.debug(`
156
- >>> no match, partial?`,t,v,r,w),v===d))}let y;if(typeof h=="string"?(y=b===h,this.debug("string match",h,b,y)):(y=h.test(b),this.debug("pattern match",h,b,y)),!y)return!1}if(l===d&&f===p)return!0;if(l===d)return i;if(f===p)return l===d-1&&t[l]==="";throw new Error("wtf?")}braceExpand(){return Lg(this.pattern,this.options)}parse(t){rs(t);const r=this.options;if(t==="**")return sr;if(t==="")return"";let i,a=null;(i=t.match(TM))?a=r.dot?PM:CM:(i=t.match(gM))?a=(r.nocase?r.dot?SM:bM:r.dot?wM:yM)(i[1]):(i=t.match(RM))?a=(r.nocase?r.dot?MM:IM:r.dot?FM:LM)(i):(i=t.match(EM))?a=r.dot?_M:xM:(i=t.match(OM))&&(a=AM);const s=ns.fromGlob(t,this.options).toMMPattern();return a&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:a}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const r=this.options,i=r.noglobstar?kM:r.dot?NM:jM,a=new Set(r.nocase?["i"]:[]);let s=t.map(d=>{const p=d.map(h=>{if(h instanceof RegExp)for(const b of h.flags.split(""))a.add(b);return typeof h=="string"?HM(h):h===sr?sr:h._src});return p.forEach((h,b)=>{const v=p[b+1],w=p[b-1];h!==sr||w===sr||(w===void 0?v!==void 0&&v!==sr?p[b+1]="(?:\\/|"+i+"\\/)?"+v:p[b]=i:v===void 0?p[b-1]=w+"(?:\\/|"+i+")?":v!==sr&&(p[b-1]=w+"(?:\\/|\\/"+i+"\\/)"+v,p[b+1]=sr))}),p.filter(h=>h!==sr).join("/")}).join("|");const[l,f]=t.length>1?["(?:",")"]:["",""];s="^"+l+s+f+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...a].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;const i=this.options;this.isWindows&&(t=t.split("\\").join("/"));const a=this.slashSplit(t);this.debug(this.pattern,"split",a);const s=this.set;this.debug(this.pattern,"set",s);let l=a[a.length-1];if(!l)for(let f=a.length-2;!l&&f>=0;f--)l=a[f];for(let f=0;f<s.length;f++){const d=s[f];let p=a;if(i.matchBase&&d.length===1&&(p=[l]),this.matchOne(p,d,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(t){return Tt.defaults(t).Minimatch}}Tt.AST=ns;Tt.Minimatch=Ss;Tt.escape=mM;Tt.unescape=Vi;const Hf="/$shared",qM={"**/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"]}},"**/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"}},"**/*.json":{parser:"json",content:{}}};function $g(e){const t=Object.entries(qM).find(([r])=>Tt(e,r));return t==null?void 0:t[1]}function qf(e){var i;const t=(i=$g(e))==null?void 0:i.content;if(!t)return;const r=e.replace(`${Hf}/`,"Shared/");Zf({name:r,content:t,asText:typeof t=="string"})}function Es({path:e,createIfNotExists:t=!1}){const r=`${Hf}/${e}`;return De(`${r}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})}).then(i=>{const a=$g(e);let s=i;if(!a)return s;if(typeof s=="string")try{switch(a.parser){case"json":s=JSON.parse(s);break;default:break}}catch{throw new Error("Cannot parse")}if(a.schema&&!new bg().validate(s,a.schema).valid)throw new Error("Invalid Schema");return s}).catch(i=>{if(ZM(i)&&t){const a=GM(i,e);Um.next({message:a,kind:"warning"}),qf(r)}throw i})}function ZM(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 GM(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 KM(e){return De(To,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function YM(e){return De(To,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const Dg=()=>{const{host:e,protocol:t}=window.location,r=t==="https:";return{projectOpened:!1,remoteDebuggerMode:$f.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${r?"s":""}://${e}/remoteDebugger`,lsp:`ws${r?"s":""}://${e}/LSP`},isRestActive:!0}};async function VM(){const{hostname:e,host:t,protocol:r}=window.location,i=r==="https:";try{const a=await De(at,{method:"POST",body:JSON.stringify({verb:Xn.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),s=(()=>{if(a.rendererPath)return a.rendererPath;const l=`http://${e}:${a.webServerHTTPPort}`,f=`https://${e}:${a.webServerHTTPSPort}`;return a.webServerHTTPPort&&a.webServerHTTPSPort?i?f:l:a.webServerHTTPPort?l:f})();return{projectOpened:a.webServerHTTPSPort>0||a.webServerHTTPPort>0,remoteDebuggerMode:a.remoteDebuggerMode,baseUrl:s,qodly:typeof a.qodly>"u"?!0:a.qodly,urls:{renderer:a.rendererPath||`${s}/$lib/renderer/`,debugger:`ws${i?"s":""}://${t}/remoteDebugger`,lsp:`ws${i?"s":""}://${t}/LSP`},isRestActive:a.isRESTActive}}catch(a){return console.error(a),Dg()}}async function kg(e){return await De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function XM(...e){return(await Promise.all(e.map(i=>kg({root:i,verb:Xn.GET_FOLDER})))).map(({children:i})=>i.map(({name:a,date:s,type:l})=>({name:a,type:l,date:s,path:`${l}/${a}`}))).flat()}function JM(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 a=new Map;return{...i,components:tt.entries(i.components).map(([s,l])=>{const f=s,{resolvedName:d}=l.type;if(d==="WebformLoader"){const p=gf.generate();a.set(s,p),s=p}return[s,l,f]}).reduce((s,[l,f,d])=>{var p;return f.nodes&&(f.nodes=f.nodes.map(h=>a.get(h)||h)),f.linkedNodes&&(f.linkedNodes=tt.entries(f.linkedNodes).reduce((h,[b,v])=>({...h,[b]:a.get(v)||v}),{})),(p=f.props)!=null&&p.events&&(f.props.events=f.props.events.map(h=>(h.type==="navigation"&&h.loader&&(h.loader=a.get(h.loader)||h.loader),h))),{...s,[l]:{...f,props:{...f.props,__originalID:d}}}},{})}})}function QM(e){return De(at,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(t=>({...t,content:[ur.METHOD,ur.CLASS].includes(t.type)?ws(t.content):t.content}))}function e2(e){return e.type==="folder"?De(To,{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 t2(e){return e.type==="folder"?(await De(To,{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 r2(e){return De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function n2(e){return De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function i2(e){return(await De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function o2(...e){return await De(at,{method:"POST",body:JSON.stringify({verb:Xn.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function a2(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 s2(){return await De("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function u2({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 l2(e={}){try{return await Es({path:"shared_datasources.json",...e})}catch{return{}}}async function f2(e={}){try{return await Es({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function c2(e={}){try{return await Es({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function d2(){try{return await De("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function p2(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const h2=Jm(),v2=async e=>{const t={verb:Xn.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:e};return h2(async()=>(await De(at,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}),e))},Zf=async e=>{const t=await De(at,{method:"POST",body:JSON.stringify({...e,verb:Xn.SET_FILE_CONTENT,root:Lf.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),r=Vm(`${e.path||"Sources"}/${e.name}`);return{...t,type:r,size:0}},m2=async e=>await Zf({name:"crafted_components.json",path:wn.WEBFORMS,content:e});function g2(e){return De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function y2(e){return De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function w2(e){return De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function b2(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)?ws(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&&qf(e.path),t})}function S2(e){return De(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function E2(e){const t=new RegExp(/^\((.+)(?=\))/gi).exec(e);return t!==null?t[1]:""}function x2(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 _2(e){const t=E2(e).split(/[;,]/g).filter(Boolean).map(a=>{const s=a.split(":")[0].trim(),l=a.split(":")[1].trim();return{name:s,type:l}}),r=x2(e),i=r?{name:r.split(":")[0].trim(),type:r.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:t,result:i}}async function O2(e,t){const i=e.split(".").pop();try{const a=await De(at,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:t,functionName:i}),headers:new Headers({"Content-Type":"application/json"})});a.content=ws(a.content);const{params:s,result:l}=_2(a.parameters);return{...a,params:s,returns:l}}catch(a){return console.error(a),{className:t,functionName:i,filePath:e,content:"",params:[]}}}var Ng=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(Ng||{});function A2(e,t){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...t}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(r=>{})}function T2(e){window.pagesense=window.pagesense||[],window.pagesense.push(["trackEvent",e])}var jg=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(jg||{}),Wg=(e=>(e[e.METHOD=1]="METHOD",e[e.CLASS=10]="CLASS",e))(Wg||{}),zg=(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))(zg||{}),Ug=(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))(Ug||{});const C2={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},P2={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=at;exports.AppLoader=vR;exports.ControlledSwitch=Tm;exports.DATASOURCE_THEMES=C2;exports.DatasourcesActions=zm;exports.DebuggerActions=qm;exports.DesignerRequestVerb=Xn;exports.Dialog=j_;exports.DialogBody=cv;exports.EActivity=Ng;exports.EDITOR=P2;exports.EIDENTIFIERS=zg;exports.ERROR_CODES=Ug;exports.EWebFormStyleClassScope=jg;exports.EXT_API_PREFIX=To;exports.FileFolderType=ur;exports.FolderRootPath=wn;exports.FolderRootType=Lf;exports.HTTPError=tf;exports.HTTP_HANDLERS_PATH=Ym;exports.IPreemptive=fo;exports.IPublished=ag;exports.IPublishedRestScope=Df;exports.IdentityProvider=NR;exports.Incase=EA;exports.IndentLines=Dv;exports.LOCALIZATION_PATH=fI;exports.LogoSVG=Cm;exports.LspActions=Hm;exports.MAX_FILE_NAME_LENGTH=Mf;exports.MODEL_TAB_PATH=lI;exports.Modal=gR;exports.ModalCloseReason=vi;exports.ModalColor=qn;exports.ModalIcons=Jl;exports.ModalType=Rf;exports.Mutex=Xm;exports.NameError=Ff;exports.Overlay=fv;exports.Portal=Qh;exports.PublishOptions=$I;exports.ROLES_TAB_PATH=Gm;exports.RemoteDebuggerMode=$f;exports.SETTINGS_TAB_PATH=Km;exports.SHARED_API_PREFIX=Hf;exports.SourceCodeDescriptor=Wg;exports.Switcher=kv;exports.TabEventsActions=Bm;exports.Tip=gP;exports.TipsProvider=vP;exports.Toast=HO;exports.Tooltip=pR;exports.Tree=SA;exports.TreeIcon=Iv;exports.TreeNode=yf;exports.WebformActions=Wm;exports._isArrayDatasource=RI;exports._isObjectDatasource=II;exports.addAttributesToContent=kI;exports.addFolder=r2;exports.by=Qm;exports.byId=vI;exports.byPath=mI;exports.checkUpdates=KM;exports.createFolder=g2;exports.datasourcesSubject=tI;exports.debuggerSubject=oI;exports.dropFile=t2;exports.dropFolder=i2;exports.exists=gI;exports.extractWebformName=dI;exports.generateUUID=NI;exports.getAppSettings=VM;exports.getCatalog=s2;exports.getDatasourceId=yI;exports.getDefaultAppSettings=Dg;exports.getFile=QM;exports.getFileContent=u2;exports.getFileExtentionFromType=cI;exports.getFilesInfo=o2;exports.getFolder=kg;exports.getFolders=XM;exports.getFunctionContent=O2;exports.getMonacoTheme=p2;exports.getNodeInfo=b2;exports.getSavedConditions=c2;exports.getSharedCSS=f2;exports.getSharedDatasources=l2;exports.getSharedResource=Es;exports.getTypeFromExtension=Vm;exports.getUserPrivileges=d2;exports.getWebForm=JM;exports.hasAttributesString=ug;exports.http=De;exports.installUpdates=YM;exports.isArrayDatasource=ng;exports.isDataClassMethod=EI;exports.isDataStoreMethod=SI;exports.isDateDatasource=MI;exports.isEntity=CI;exports.isEntityDatasource=OI;exports.isEntityMethod=xI;exports.isEntitySelection=PI;exports.isEntitySelectionDatasource=AI;exports.isEntitySelectionMethod=_I;exports.isObjectAttribute=wI;exports.isObjectDatasource=ig;exports.isRelatedAttribute=bI;exports.isRelatedEntitiesAttribute=tg;exports.isRelatedEntityAttribute=rg;exports.isScalarDatasource=og;exports.isSimpleAttribute=eg;exports.isSimpleDatasource=TI;exports.loadDS=FI;exports.loadI18n=LI;exports.log=A2;exports.login=a2;exports.lspSubject=iI;exports.moveItem=w2;exports.outBy=pI;exports.outById=hI;exports.parseAttributes=DI;exports.queue=Jm;exports.removeAttributesString=lg;exports.removeItem=y2;exports.renameFile=e2;exports.renameFolder=n2;exports.sanitizeContent=ws;exports.saveContent=S2;exports.setCraftedComponents=m2;exports.setFileContent=Zf;exports.setSharedSources=v2;exports.stringifyAttributes=sg;exports.tabEventsSubject=nI;exports.tasksManagerSubject=aI;exports.toastSubject=Um;exports.trackEvent=T2;exports.transformDates=jI;exports.tryCreateSharedResource=qf;exports.useDidMountEffect=bR;exports.useDoubleClick=UR;exports.useFeatureFlags=kR;exports.useForwardedRef=DR;exports.useHotkeys=MR;exports.useIdentity=jR;exports.useOutsideClick=FR;exports.usePrevious=LR;exports.useStateObject=WR;exports.useStateRef=$R;exports.useTip=vm;exports.validateName=Zm;exports.validateServerSide=sI;exports.validateValue=uI;exports.webformSubject=rI;
136
+ `)+Q+`return __p
137
+ }`;var Ee=Pd(function(){return Pe(A,ue+"return "+Q).apply(n,P)});if(Ee.source=Q,lu(Ee))throw Ee;return Ee}function aE(t){return Re(t).toLowerCase()}function sE(t){return Re(t).toUpperCase()}function uE(t,i,s){if(t=Re(t),t&&(s||i===n))return Nf(t);if(!t||!(i=Mt(i)))return t;var v=Jt(t),E=Jt(i),A=jf(v,E),P=Wf(v,E)+1;return Br(v,A,P).join("")}function lE(t,i,s){if(t=Re(t),t&&(s||i===n))return t.slice(0,zf(t)+1);if(!t||!(i=Mt(i)))return t;var v=Jt(t),E=Wf(v,Jt(i))+1;return Br(v,0,E).join("")}function fE(t,i,s){if(t=Re(t),t&&(s||i===n))return t.replace(ls,"");if(!t||!(i=Mt(i)))return t;var v=Jt(t),E=jf(v,Jt(i));return Br(v,E).join("")}function cE(t,i){var s=X,v=j;if(ze(i)){var E="separator"in i?i.separator:E;s="length"in i?Se(i.length):s,v="omission"in i?Mt(i.omission):v}t=Re(t);var A=t.length;if(Ln(t)){var P=Jt(t);A=P.length}if(s>=A)return t;var I=s-Fn(v);if(I<1)return v;var k=P?Br(P,0,I).join(""):t.slice(0,I);if(E===n)return k+v;if(P&&(I+=k.length-I),fu(E)){if(t.slice(I).search(E)){var K,Y=k;for(E.global||(E=As(E.source,Re(af.exec(E))+"g")),E.lastIndex=0;K=E.exec(Y);)var Q=K.index;k=k.slice(0,Q===n?I:Q)}}else if(t.indexOf(Mt(E),I)!=I){var ie=k.lastIndexOf(E);ie>-1&&(k=k.slice(0,ie))}return k+v}function dE(t){return t=Re(t),t&&_g.test(t)?t.replace(rf,Uy):t}var pE=Un(function(t,i,s){return t+(s?" ":"")+i.toUpperCase()}),pu=Rc("toUpperCase");function Cd(t,i,s){return t=Re(t),i=s?n:i,i===n?Dy(t)?Hy(t):Ty(t):t.match(i)||[]}var Pd=xe(function(t,i){try{return Pt(t,n,i)}catch(s){return lu(s)?s:new we(s)}}),hE=Er(function(t,i){return jt(i,function(s){s=ur(s),br(t,s,su(t[s],t))}),t});function vE(t){var i=t==null?0:t.length,s=de();return t=i?Ne(t,function(v){if(typeof v[1]!="function")throw new Wt(f);return[s(v[0]),v[1]]}):[],xe(function(v){for(var E=-1;++E<i;){var A=t[E];if(Pt(A[0],this,v))return Pt(A[1],this,v)}})}function mE(t){return U0(zt(t,h))}function hu(t){return function(){return t}}function gE(t,i){return t==null||t!==t?i:t}var yE=Ic(),wE=Ic(!0);function xt(t){return t}function vu(t){return uc(typeof t=="function"?t:zt(t,h))}function bE(t){return fc(zt(t,h))}function SE(t,i){return cc(t,zt(i,h))}var EE=xe(function(t,i){return function(s){return vi(s,t,i)}}),_E=xe(function(t,i){return function(s){return vi(t,s,i)}});function mu(t,i,s){var v=rt(i),E=jo(i,v);s==null&&!(ze(i)&&(E.length||!v.length))&&(s=i,i=t,t=this,E=jo(i,rt(i)));var A=!(ze(s)&&"chain"in s)||!!s.chain,P=xr(t);return jt(E,function(I){var k=i[I];t[I]=k,P&&(t.prototype[I]=function(){var K=this.__chain__;if(A||K){var Y=t(this.__wrapped__),Q=Y.__actions__=St(this.__actions__);return Q.push({func:k,args:arguments,thisArg:t}),Y.__chain__=K,Y}return k.apply(t,kr([this.value()],arguments))})}),t}function xE(){return at._===this&&(at._=Yy),this}function gu(){}function OE(t){return t=Se(t),xe(function(i){return dc(i,t)})}var AE=Ks(Ne),TE=Ks(Lf),CE=Ks(ws);function Rd(t){return tu(t)?bs(ur(t)):i1(t)}function PE(t){return function(i){return t==null?n:fn(t,i)}}var RE=Fc(),ME=Fc(!0);function yu(){return[]}function wu(){return!1}function IE(){return{}}function LE(){return""}function FE(){return!0}function $E(t,i){if(t=Se(t),t<1||t>te)return[];var s=ee,v=pt(t,ee);i=de(i),t-=ee;for(var E=_s(v,i);++s<t;)i(s);return E}function DE(t){return be(t)?Ne(t,ur):It(t)?[t]:St(Yc(Re(t)))}function kE(t){var i=++Ky;return Re(t)+i}var NE=qo(function(t,i){return t+i},0),jE=Vs("ceil"),WE=qo(function(t,i){return t/i},1),UE=Vs("floor");function zE(t){return t&&t.length?No(t,xt,Fs):n}function BE(t,i){return t&&t.length?No(t,de(i,2),Fs):n}function HE(t){return Df(t,xt)}function qE(t,i){return Df(t,de(i,2))}function ZE(t){return t&&t.length?No(t,xt,Ns):n}function GE(t,i){return t&&t.length?No(t,de(i,2),Ns):n}var KE=qo(function(t,i){return t*i},1),VE=Vs("round"),YE=qo(function(t,i){return t-i},0);function XE(t){return t&&t.length?Es(t,xt):0}function JE(t,i){return t&&t.length?Es(t,de(i,2)):0}return O.after=bb,O.ary=sd,O.assign=sS,O.assignIn=Sd,O.assignInWith=ia,O.assignWith=uS,O.at=lS,O.before=ud,O.bind=su,O.bindAll=hE,O.bindKey=ld,O.castArray=Ib,O.chain=id,O.chunk=U1,O.compact=z1,O.concat=B1,O.cond=vE,O.conforms=mE,O.constant=hu,O.countBy=Xw,O.create=fS,O.curry=fd,O.curryRight=cd,O.debounce=dd,O.defaults=cS,O.defaultsDeep=dS,O.defer=Sb,O.delay=Eb,O.difference=H1,O.differenceBy=q1,O.differenceWith=Z1,O.drop=G1,O.dropRight=K1,O.dropRightWhile=V1,O.dropWhile=Y1,O.fill=X1,O.filter=Qw,O.flatMap=rb,O.flatMapDeep=nb,O.flatMapDepth=ib,O.flatten=ed,O.flattenDeep=J1,O.flattenDepth=Q1,O.flip=_b,O.flow=yE,O.flowRight=wE,O.fromPairs=ew,O.functions=wS,O.functionsIn=bS,O.groupBy=ob,O.initial=rw,O.intersection=nw,O.intersectionBy=iw,O.intersectionWith=ow,O.invert=ES,O.invertBy=_S,O.invokeMap=sb,O.iteratee=vu,O.keyBy=ub,O.keys=rt,O.keysIn=_t,O.map=Jo,O.mapKeys=OS,O.mapValues=AS,O.matches=bE,O.matchesProperty=SE,O.memoize=ea,O.merge=TS,O.mergeWith=Ed,O.method=EE,O.methodOf=_E,O.mixin=mu,O.negate=ta,O.nthArg=OE,O.omit=CS,O.omitBy=PS,O.once=xb,O.orderBy=lb,O.over=AE,O.overArgs=Ob,O.overEvery=TE,O.overSome=CE,O.partial=uu,O.partialRight=pd,O.partition=fb,O.pick=RS,O.pickBy=_d,O.property=Rd,O.propertyOf=PE,O.pull=lw,O.pullAll=rd,O.pullAllBy=fw,O.pullAllWith=cw,O.pullAt=dw,O.range=RE,O.rangeRight=ME,O.rearg=Ab,O.reject=pb,O.remove=pw,O.rest=Tb,O.reverse=ou,O.sampleSize=vb,O.set=IS,O.setWith=LS,O.shuffle=mb,O.slice=hw,O.sortBy=wb,O.sortedUniq=Sw,O.sortedUniqBy=Ew,O.split=rE,O.spread=Cb,O.tail=_w,O.take=xw,O.takeRight=Ow,O.takeRightWhile=Aw,O.takeWhile=Tw,O.tap=zw,O.throttle=Pb,O.thru=Xo,O.toArray=yd,O.toPairs=xd,O.toPairsIn=Od,O.toPath=DE,O.toPlainObject=bd,O.transform=FS,O.unary=Rb,O.union=Cw,O.unionBy=Pw,O.unionWith=Rw,O.uniq=Mw,O.uniqBy=Iw,O.uniqWith=Lw,O.unset=$S,O.unzip=au,O.unzipWith=nd,O.update=DS,O.updateWith=kS,O.values=Hn,O.valuesIn=NS,O.without=Fw,O.words=Cd,O.wrap=Mb,O.xor=$w,O.xorBy=Dw,O.xorWith=kw,O.zip=Nw,O.zipObject=jw,O.zipObjectDeep=Ww,O.zipWith=Uw,O.entries=xd,O.entriesIn=Od,O.extend=Sd,O.extendWith=ia,mu(O,O),O.add=NE,O.attempt=Pd,O.camelCase=zS,O.capitalize=Ad,O.ceil=jE,O.clamp=jS,O.clone=Lb,O.cloneDeep=$b,O.cloneDeepWith=Db,O.cloneWith=Fb,O.conformsTo=kb,O.deburr=Td,O.defaultTo=gE,O.divide=WE,O.endsWith=BS,O.eq=er,O.escape=HS,O.escapeRegExp=qS,O.every=Jw,O.find=eb,O.findIndex=Jc,O.findKey=pS,O.findLast=tb,O.findLastIndex=Qc,O.findLastKey=hS,O.floor=UE,O.forEach=od,O.forEachRight=ad,O.forIn=vS,O.forInRight=mS,O.forOwn=gS,O.forOwnRight=yS,O.get=cu,O.gt=Nb,O.gte=jb,O.has=SS,O.hasIn=du,O.head=td,O.identity=xt,O.includes=ab,O.indexOf=tw,O.inRange=WS,O.invoke=xS,O.isArguments=pn,O.isArray=be,O.isArrayBuffer=Wb,O.isArrayLike=Et,O.isArrayLikeObject=qe,O.isBoolean=Ub,O.isBuffer=Hr,O.isDate=zb,O.isElement=Bb,O.isEmpty=Hb,O.isEqual=qb,O.isEqualWith=Zb,O.isError=lu,O.isFinite=Gb,O.isFunction=xr,O.isInteger=hd,O.isLength=ra,O.isMap=vd,O.isMatch=Kb,O.isMatchWith=Vb,O.isNaN=Yb,O.isNative=Xb,O.isNil=Qb,O.isNull=Jb,O.isNumber=md,O.isObject=ze,O.isObjectLike=He,O.isPlainObject=Si,O.isRegExp=fu,O.isSafeInteger=eS,O.isSet=gd,O.isString=na,O.isSymbol=It,O.isTypedArray=Bn,O.isUndefined=tS,O.isWeakMap=rS,O.isWeakSet=nS,O.join=aw,O.kebabCase=ZS,O.last=Ht,O.lastIndexOf=sw,O.lowerCase=GS,O.lowerFirst=KS,O.lt=iS,O.lte=oS,O.max=zE,O.maxBy=BE,O.mean=HE,O.meanBy=qE,O.min=ZE,O.minBy=GE,O.stubArray=yu,O.stubFalse=wu,O.stubObject=IE,O.stubString=LE,O.stubTrue=FE,O.multiply=KE,O.nth=uw,O.noConflict=xE,O.noop=gu,O.now=Qo,O.pad=VS,O.padEnd=YS,O.padStart=XS,O.parseInt=JS,O.random=US,O.reduce=cb,O.reduceRight=db,O.repeat=QS,O.replace=eE,O.result=MS,O.round=VE,O.runInContext=$,O.sample=hb,O.size=gb,O.snakeCase=tE,O.some=yb,O.sortedIndex=vw,O.sortedIndexBy=mw,O.sortedIndexOf=gw,O.sortedLastIndex=yw,O.sortedLastIndexBy=ww,O.sortedLastIndexOf=bw,O.startCase=nE,O.startsWith=iE,O.subtract=YE,O.sum=XE,O.sumBy=JE,O.template=oE,O.times=$E,O.toFinite=Or,O.toInteger=Se,O.toLength=wd,O.toLower=aE,O.toNumber=qt,O.toSafeInteger=aS,O.toString=Re,O.toUpper=sE,O.trim=uE,O.trimEnd=lE,O.trimStart=fE,O.truncate=cE,O.unescape=dE,O.uniqueId=kE,O.upperCase=pE,O.upperFirst=pu,O.each=od,O.eachRight=ad,O.first=td,mu(O,function(){var t={};return ar(O,function(i,s){Le.call(O.prototype,s)||(t[s]=i)}),t}(),{chain:!1}),O.VERSION=o,jt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){O[t].placeholder=O}),jt(["drop","take"],function(t,i){Te.prototype[t]=function(s){s=s===n?1:Xe(Se(s),0);var v=this.__filtered__&&!i?new Te(this):this.clone();return v.__filtered__?v.__takeCount__=pt(s,v.__takeCount__):v.__views__.push({size:pt(s,ee),type:t+(v.__dir__<0?"Right":"")}),v},Te.prototype[t+"Right"]=function(s){return this.reverse()[t](s).reverse()}}),jt(["filter","map","takeWhile"],function(t,i){var s=i+1,v=s==q||s==J;Te.prototype[t]=function(E){var A=this.clone();return A.__iteratees__.push({iteratee:de(E,3),type:s}),A.__filtered__=A.__filtered__||v,A}}),jt(["head","last"],function(t,i){var s="take"+(i?"Right":"");Te.prototype[t]=function(){return this[s](1).value()[0]}}),jt(["initial","tail"],function(t,i){var s="drop"+(i?"":"Right");Te.prototype[t]=function(){return this.__filtered__?new Te(this):this[s](1)}}),Te.prototype.compact=function(){return this.filter(xt)},Te.prototype.find=function(t){return this.filter(t).head()},Te.prototype.findLast=function(t){return this.reverse().find(t)},Te.prototype.invokeMap=xe(function(t,i){return typeof t=="function"?new Te(this):this.map(function(s){return vi(s,t,i)})}),Te.prototype.reject=function(t){return this.filter(ta(de(t)))},Te.prototype.slice=function(t,i){t=Se(t);var s=this;return s.__filtered__&&(t>0||i<0)?new Te(s):(t<0?s=s.takeRight(-t):t&&(s=s.drop(t)),i!==n&&(i=Se(i),s=i<0?s.dropRight(-i):s.take(i-t)),s)},Te.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Te.prototype.toArray=function(){return this.take(ee)},ar(Te.prototype,function(t,i){var s=/^(?:filter|find|map|reject)|While$/.test(i),v=/^(?:head|last)$/.test(i),E=O[v?"take"+(i=="last"?"Right":""):i],A=v||/^find/.test(i);E&&(O.prototype[i]=function(){var P=this.__wrapped__,I=v?[1]:arguments,k=P instanceof Te,K=I[0],Y=k||be(P),Q=function(Oe){var Ce=E.apply(O,kr([Oe],I));return v&&ie?Ce[0]:Ce};Y&&s&&typeof K=="function"&&K.length!=1&&(k=Y=!1);var ie=this.__chain__,ue=!!this.__actions__.length,he=A&&!ie,Ee=k&&!ue;if(!A&&Y){P=Ee?P:new Te(this);var ve=t.apply(P,I);return ve.__actions__.push({func:Xo,args:[Q],thisArg:n}),new Ut(ve,ie)}return he&&Ee?t.apply(this,I):(ve=this.thru(Q),he?v?ve.value()[0]:ve.value():ve)})}),jt(["pop","push","shift","sort","splice","unshift"],function(t){var i=_o[t],s=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",v=/^(?:pop|shift)$/.test(t);O.prototype[t]=function(){var E=arguments;if(v&&!this.__chain__){var A=this.value();return i.apply(be(A)?A:[],E)}return this[s](function(P){return i.apply(be(P)?P:[],E)})}}),ar(Te.prototype,function(t,i){var s=O[i];if(s){var v=s.name+"";Le.call(Nn,v)||(Nn[v]=[]),Nn[v].push({name:i,func:s})}}),Nn[Ho(n,b).name]=[{name:"wrapper",func:n}],Te.prototype.clone=d0,Te.prototype.reverse=p0,Te.prototype.value=h0,O.prototype.at=Bw,O.prototype.chain=Hw,O.prototype.commit=qw,O.prototype.next=Zw,O.prototype.plant=Kw,O.prototype.reverse=Vw,O.prototype.toJSON=O.prototype.valueOf=O.prototype.value=Yw,O.prototype.first=O.prototype.head,ui&&(O.prototype[ui]=Gw),O},$n=qy();on?((on.exports=$n)._=$n,vs._=$n):at._=$n}).call(YC)}(Zi,Zi.exports)),Zi.exports}var Ve=XC();const yl={FdSave:ft.FdSave,FdWarningDanger:ft.FdWarningDanger,FdInfoCircle:ft.FdInfoCircle,FdInfoBold:ft.FdInfoBold};var Hl=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(Hl||{}),En=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(En||{}),Vn=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(Vn||{});const wm={[En.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[En.DANGER]:{icon:"red-500",button:"primary-dark"},[En.WARNING]:{icon:"yellow-400",button:"primary-dark"}},Yu=({color:e=En.PRIMARY,variant:r="solid",children:n,autoFocus:o,...a})=>{const u=wm[e].button,f=r==="outlined"?`bg-transparent text-white border border-white hover:border-white hover:bg-white hover:text-${u}`:`text-white bg-${u} border border-${u} hover:border-white hover:bg-primary-hover hover:text-white`;return W.jsx("button",{autoFocus:o,className:it("w-16 rounded px-2 py-1 text-xs font-medium hover:font-bold focus:outline-none",f),...a,children:n})},JC=({name:e,color:r=En.PRIMARY,className:n="w-8 h-8"})=>{const o=yl[e]||yl.FdInfoCircle,a=`text-${wm[r].icon}`;return W.jsx(o,{className:it(n,a)})},QC=({id:e,title:r,message:n,icon:o,type:a,color:u,zIndex:f=3e3,views:d,width:w=520,hasOverlay:S=!0,onClose:y,onEdit:h})=>{const l=c=>{y({id:e,reason:c})};U.useEffect(()=>{function c(g){g.key==="Escape"&&l(Vn.CANCELED)}return window.addEventListener("keyup",c),()=>{window.removeEventListener("keyup",c)}},[]);const p=Ve.merge(Ve.values(d==null?void 0:d.toggles).flatMap(c=>c.value?c.warnings||[]:[]),d==null?void 0:d.tips),m=(c,g)=>{var _;if(!(d!=null&&d.toggles))return;const b=Ve.cloneDeep(d);(_=b.toggles)!=null&&_[c]&&(b.toggles[c].value=g),h({id:e,views:b})};return ao.createPortal(W.jsx(Da,{appear:!0,show:!0,as:U.Fragment,children:W.jsx("div",{className:it("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":S}),style:{zIndex:f},onClick:()=>l(Vn.CANCELED),children:W.jsx(Da.Child,{as:U.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:W.jsx("div",{"data-cy":"confirmation-modal-cy",className:"relative rounded-md border border-grey-50 bg-grey-900",style:{width:w},onClick:c=>c.stopPropagation(),children:W.jsxs("div",{className:"flex flex-col items-center gap-3 p-6 px-12",children:[o?W.jsx("div",{className:"flex items-center justify-center",children:W.jsx(JC,{name:o,color:u,className:"w-6 h-6"})}):null,W.jsx(eP,{condition:r,children:W.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-white text-center",children:r})}),W.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium text-white",children:n}),W.jsx("div",{className:"text-xs text-white",children:Ve.values(d==null?void 0:d.toggles).map(c=>W.jsx("div",{children:W.jsxs("label",{htmlFor:c.key,className:"flex items-center",children:[W.jsx(gm,{size:"xs",value:c.value,onChange:g=>m(c.key,g)}),W.jsx("span",{className:"ml-1",children:c.title})]})},c.key))}),W.jsx(tP,{warnings:p}),W.jsx("div",{className:"flex items-center gap-4",children:a===Hl.CONFIRM?W.jsxs(W.Fragment,{children:[W.jsx(Yu,{autoFocus:!0,color:u,onClick:()=>l(Vn.CONFIRMED),children:"Confirm"}),W.jsx(Yu,{color:u,variant:"outlined",onClick:()=>l(Vn.CANCELED),children:"Cancel"})]}):W.jsx(Yu,{autoFocus:!0,onClick:()=>l(),children:"OK"})})]})})})})}),document.querySelector("body"))},eP=e=>e.condition?W.jsx(W.Fragment,{children:e.children}):null,tP=e=>e.warnings?W.jsx(Da,{appear:!0,show:!!e.warnings.length,as:U.Fragment,children:W.jsx("div",{className:"flex flex-col gap-1 rounded-sm bg-grey-600 p-2 text-xs text-white",children:e.warnings.map((r,n)=>W.jsx(Da.Child,{as:U.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:W.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[W.jsx(ft.FdWarningDanger,{className:it({"h-3 w-3":!0,"text-yellow-500":r.type==="warning","text-red-400":r.type==="error","text-primary-dark":r.type==="info"},"mr-3")}),W.jsx("div",{className:"flex-1",children:r.message})]})},`modal-warnings-${n}`))})}):null;function rP(e,r){const n=U.useRef(!1);U.useEffect(()=>{if(n.current)return e();n.current=!0},r)}const Xu=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Ju(e,r,n,o){e.addEventListener?e.addEventListener(r,n,o):e.attachEvent&&e.attachEvent("on".concat(r),n)}function Hi(e,r,n,o){e.removeEventListener?e.removeEventListener(r,n,o):e.detachEvent&&e.detachEvent("on".concat(r),n)}function bm(e,r){const n=r.slice(0,r.length-1);for(let o=0;o<n.length;o++)n[o]=e[n[o].toLowerCase()];return n}function Sm(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");const r=e.split(",");let n=r.lastIndexOf("");for(;n>=0;)r[n-1]+=",",r.splice(n,1),n=r.lastIndexOf("");return r}function nP(e,r){const n=e.length>=r.length?e:r,o=e.length>=r.length?r:e;let a=!0;for(let u=0;u<n.length;u++)o.indexOf(n[u])===-1&&(a=!1);return a}const ii={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,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,"-":Xu?173:189,"=":Xu?61:187,";":Xu?59:186,"'":222,"[":219,"]":221,"\\":220},ir={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},Gi={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},lt={16:!1,18:!1,17:!1,91:!1},Be={};for(let e=1;e<20;e++)ii["f".concat(e)]=111+e;let We=[],Ji=null,Em="all";const Cr=new Map,On=e=>ii[e.toLowerCase()]||ir[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),iP=e=>Object.keys(ii).find(r=>ii[r]===e),oP=e=>Object.keys(ir).find(r=>ir[r]===e);function _m(e){Em=e||"all"}function no(){return Em||"all"}function aP(){return We.slice(0)}function sP(){return We.map(e=>iP(e)||oP(e)||String.fromCharCode(e))}function uP(){const e=[];return Object.keys(Be).forEach(r=>{Be[r].forEach(n=>{let{key:o,scope:a,mods:u,shortcut:f}=n;e.push({scope:a,shortcut:f,mods:u,keys:o.split("+").map(d=>On(d))})})}),e}function lP(e){const r=e.target||e.srcElement,{tagName:n}=r;let o=!0;const a=n==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(r.type);return(r.isContentEditable||(a||n==="TEXTAREA"||n==="SELECT")&&!r.readOnly)&&(o=!1),o}function fP(e){return typeof e=="string"&&(e=On(e)),We.indexOf(e)!==-1}function cP(e,r){let n,o;e||(e=no());for(const a in Be)if(Object.prototype.hasOwnProperty.call(Be,a))for(n=Be[a],o=0;o<n.length;)n[o].scope===e?n.splice(o,1).forEach(f=>{let{element:d}=f;return ql(d)}):o++;no()===e&&_m(r||"all")}function dP(e){let r=e.keyCode||e.which||e.charCode;e.key&&(r=On(e.key));const n=We.indexOf(r);if(n>=0&&We.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&We.splice(0,We.length),(r===93||r===224)&&(r=91),r in lt){lt[r]=!1;for(const o in ir)ir[o]===r&&(nr[o]=!1)}}function xm(e){if(typeof e>"u")Object.keys(Be).forEach(a=>{Array.isArray(Be[a])&&Be[a].forEach(u=>ba(u)),delete Be[a]}),ql(null);else if(Array.isArray(e))e.forEach(a=>{a.key&&ba(a)});else if(typeof e=="object")e.key&&ba(e);else if(typeof e=="string"){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];let[a,u]=n;typeof a=="function"&&(u=a,a=""),ba({key:e,scope:a,method:u,splitKey:"+"})}}const ba=e=>{let{key:r,scope:n,method:o,splitKey:a="+"}=e;Sm(r).forEach(f=>{const d=f.split(a),w=d.length,S=d[w-1],y=S==="*"?"*":On(S);if(!Be[y])return;n||(n=no());const h=w>1?bm(ir,d):[],l=[];Be[y]=Be[y].filter(p=>{const c=(o?p.method===o:!0)&&p.scope===n&&nP(p.mods,h);return c&&l.push(p.element),!c}),l.forEach(p=>ql(p))})};function _h(e,r,n,o){if(r.element!==o)return;let a;if(r.scope===n||r.scope==="all"){a=r.mods.length>0;for(const u in lt)Object.prototype.hasOwnProperty.call(lt,u)&&(!lt[u]&&r.mods.indexOf(+u)>-1||lt[u]&&r.mods.indexOf(+u)===-1)&&(a=!1);(r.mods.length===0&&!lt[16]&&!lt[18]&&!lt[17]&&!lt[91]||a||r.shortcut==="*")&&(r.keys=[],r.keys=r.keys.concat(We),r.method(e,r)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function xh(e,r){const n=Be["*"];let o=e.keyCode||e.which||e.charCode;if(e.key&&(o=On(e.key)),o===ii.capslock||!nr.filter.call(this,e))return;if((o===93||o===224)&&(o=91),We.indexOf(o)===-1&&o!==229&&We.push(o),["metaKey","ctrlKey","altKey","shiftKey"].forEach(d=>{const w=Gi[d];e[d]&&We.indexOf(w)===-1?We.push(w):!e[d]&&We.indexOf(w)>-1?We.splice(We.indexOf(w),1):d==="metaKey"&&e[d]&&(We=We.filter(S=>S in Gi||S===o))}),o in lt){lt[o]=!0;for(const d in ir)if(Object.prototype.hasOwnProperty.call(ir,d)){const w=Gi[ir[d]];nr[d]=e[w]}if(!n)return}for(const d in lt)Object.prototype.hasOwnProperty.call(lt,d)&&(lt[d]=e[Gi[d]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(We.indexOf(17)===-1&&We.push(17),We.indexOf(18)===-1&&We.push(18),lt[17]=!0,lt[18]=!0);const a=no();if(n)for(let d=0;d<n.length;d++)n[d].scope===a&&(e.type==="keydown"&&n[d].keydown||e.type==="keyup"&&n[d].keyup)&&_h(e,n[d],a,r);if(!(o in Be))return;const u=Be[o],f=u.length;for(let d=0;d<f;d++)if((e.type==="keydown"&&u[d].keydown||e.type==="keyup"&&u[d].keyup)&&u[d].key){const w=u[d],{splitKey:S}=w,y=w.key.split(S),h=[];for(let l=0;l<y.length;l++)h.push(On(y[l]));h.sort().join("")===We.sort().join("")&&_h(e,w,a,r)}}function nr(e,r,n){We=[];const o=Sm(e);let a=[],u="all",f=document,d=0,w=!1,S=!0,y="+",h=!1,l=!1;for(n===void 0&&typeof r=="function"&&(n=r),Object.prototype.toString.call(r)==="[object Object]"&&(r.scope&&(u=r.scope),r.element&&(f=r.element),r.keyup&&(w=r.keyup),r.keydown!==void 0&&(S=r.keydown),r.capture!==void 0&&(h=r.capture),typeof r.splitKey=="string"&&(y=r.splitKey),r.single===!0&&(l=!0)),typeof r=="string"&&(u=r),l&&xm(e,u);d<o.length;d++)e=o[d].split(y),a=[],e.length>1&&(a=bm(ir,e)),e=e[e.length-1],e=e==="*"?"*":On(e),e in Be||(Be[e]=[]),Be[e].push({keyup:w,keydown:S,scope:u,mods:a,shortcut:o[d],method:n,key:o[d],splitKey:y,element:f});if(typeof f<"u"&&window){if(!Cr.has(f)){const p=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return xh(c,f)},m=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;xh(c,f),dP(c)};Cr.set(f,{keydownListener:p,keyupListenr:m,capture:h}),Ju(f,"keydown",p,h),Ju(f,"keyup",m,h)}if(!Ji){const p=()=>{We=[]};Ji={listener:p,capture:h},Ju(window,"focus",p,h)}}}function pP(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(Be).forEach(n=>{Be[n].filter(a=>a.scope===r&&a.shortcut===e).forEach(a=>{a&&a.method&&a.method()})})}function ql(e){const r=Object.values(Be).flat();if(r.findIndex(o=>{let{element:a}=o;return a===e})<0){const{keydownListener:o,keyupListenr:a,capture:u}=Cr.get(e)||{};o&&a&&(Hi(e,"keyup",a,u),Hi(e,"keydown",o,u),Cr.delete(e))}if((r.length<=0||Cr.size<=0)&&(Object.keys(Cr).forEach(a=>{const{keydownListener:u,keyupListenr:f,capture:d}=Cr.get(a)||{};u&&f&&(Hi(a,"keyup",f,d),Hi(a,"keydown",u,d),Cr.delete(a))}),Cr.clear(),Object.keys(Be).forEach(a=>delete Be[a]),Ji)){const{listener:a,capture:u}=Ji;Hi(window,"focus",a,u),Ji=null}}const Qu={getPressedKeyString:sP,setScope:_m,getScope:no,deleteScope:cP,getPressedKeyCodes:aP,getAllKeyCodes:uP,isPressed:fP,filter:lP,trigger:pP,unbind:xm,keyMap:ii,modifier:ir,modifierMap:Gi};for(const e in Qu)Object.prototype.hasOwnProperty.call(Qu,e)&&(nr[e]=Qu[e]);if(typeof window<"u"){const e=window.hotkeys;nr.noConflict=r=>(r&&window.hotkeys===nr&&(window.hotkeys=e),nr),window.hotkeys=nr}nr.filter=()=>!0;function hP(e,r,n,o){n instanceof Array&&(o=n,n=void 0),o=o||[],n=n||{};const{preventDefault:a=!0}=n,u=U.useCallback((d,w)=>{a&&d.preventDefault(),setTimeout(()=>r(d,w))},o),f=()=>{nr.unbind(e,u)};U.useEffect(()=>(nr(e,n,u),f),[e,n,u])}const vP=e=>{const r=U.useRef(null);return U.useEffect(()=>{const n=o=>{r.current&&!r.current.contains(o.target)&&e(o)};return document.addEventListener("click",n,!0),()=>{document.removeEventListener("click",n,!0)}},[e]),r};function mP(e){const r=U.useRef();return U.useEffect(()=>{r.current=e},[e]),r.current}function gP(e){const r=U.useRef(e);return U.useEffect(()=>{r.current=e},[e]),r}function yP(e){const r=U.useRef(null);return U.useEffect(()=>{e&&(typeof e=="function"?e(r.current):e.current=r.current)}),r}function wP(e){const[r,n]=U.useState(e),o=(u,f)=>{n(d=>({...d,features:{...d.features,[u]:{enabled:f}}}))},a=U.useCallback((...u)=>u.every(f=>{var d;return(d=r.features[f])==null?void 0:d.enabled}),[r.features]);return{setFeature:o,isFeatureEnabled:a}}const Om=U.createContext(""),bP=e=>W.jsx(Om.Provider,{value:e.value,children:e.children}),SP=()=>{const e=U.useContext(Om);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function EP(e){const[r,n]=U.useState(e),o=U.useMemo(()=>_P(r,n),[]);return{state:r,actions:{...o,set:a=>{n(typeof a=="function"?a:u=>({...u,...a}))}}}}function _P(e,r=()=>{}){return Object.keys(e).reduce((o,a)=>({...o,[`set${Ve.upperFirst(a)}`]:u=>r(f=>({...f,[a]:u}))}),{})}const xP=(e,r,n={})=>{n={timeout:200,...n};const o=U.useRef(),a=()=>{o.current&&(clearTimeout(o.current),o.current=null)};return U.useCallback((u,...f)=>{a(),r&&u.detail===1&&(o.current=setTimeout(()=>{r(u,...f)},n.timeout)),u.detail%2===0&&e(u,...f)},[r,e,n.timeout])};function Mr(e){return typeof e=="function"}function Am(e){var r=function(o){Error.call(o),o.stack=new Error().stack},n=e(r);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var el=Am(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
138
+ `+n.map(function(o,a){return a+1+") "+o.toString()}).join(`
139
+ `):"",this.name="UnsubscriptionError",this.errors=n}});function wl(e,r){if(e){var n=e.indexOf(r);0<=n&&e.splice(n,1)}}var Ka=function(){function e(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var r,n,o,a,u;if(!this.closed){this.closed=!0;var f=this._parentage;if(f)if(this._parentage=null,Array.isArray(f))try{for(var d=fl(f),w=d.next();!w.done;w=d.next()){var S=w.value;S.remove(this)}}catch(c){r={error:c}}finally{try{w&&!w.done&&(n=d.return)&&n.call(d)}finally{if(r)throw r.error}}else f.remove(this);var y=this.initialTeardown;if(Mr(y))try{y()}catch(c){u=c instanceof el?c.errors:[c]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var l=fl(h),p=l.next();!p.done;p=l.next()){var m=p.value;try{Oh(m)}catch(c){u=u??[],c instanceof el?u=Fa(Fa([],cl(u)),cl(c.errors)):u.push(c)}}}catch(c){o={error:c}}finally{try{p&&!p.done&&(a=l.return)&&a.call(l)}finally{if(o)throw o.error}}}if(u)throw new el(u)}},e.prototype.add=function(r){var n;if(r&&r!==this)if(this.closed)Oh(r);else{if(r instanceof e){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(r)}},e.prototype._hasParent=function(r){var n=this._parentage;return n===r||Array.isArray(n)&&n.includes(r)},e.prototype._addParent=function(r){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(r),n):n?[n,r]:r},e.prototype._removeParent=function(r){var n=this._parentage;n===r?this._parentage=null:Array.isArray(n)&&wl(n,r)},e.prototype.remove=function(r){var n=this._finalizers;n&&wl(n,r),r instanceof e&&r._removeParent(this)},e.EMPTY=function(){var r=new e;return r.closed=!0,r}(),e}(),Tm=Ka.EMPTY;function Cm(e){return e instanceof Ka||e&&"closed"in e&&Mr(e.remove)&&Mr(e.add)&&Mr(e.unsubscribe)}function Oh(e){Mr(e)?e():e.unsubscribe()}var OP={Promise:void 0},AP={setTimeout:function(e,r){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];return setTimeout.apply(void 0,Fa([e,r],cl(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function TP(e){AP.setTimeout(function(){throw e})}function Ah(){}function Pa(e){e()}var Pm=function(e){Ba(r,e);function r(n){var o=e.call(this)||this;return o.isStopped=!1,n?(o.destination=n,Cm(n)&&n.add(o)):o.destination=RP,o}return r.create=function(n,o,a){return new bl(n,o,a)},r.prototype.next=function(n){this.isStopped||this._next(n)},r.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(n){this.destination.next(n)},r.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(Ka),CP=function(){function e(r){this.partialObserver=r}return e.prototype.next=function(r){var n=this.partialObserver;if(n.next)try{n.next(r)}catch(o){Sa(o)}},e.prototype.error=function(r){var n=this.partialObserver;if(n.error)try{n.error(r)}catch(o){Sa(o)}else Sa(r)},e.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(n){Sa(n)}},e}(),bl=function(e){Ba(r,e);function r(n,o,a){var u=e.call(this)||this,f;return Mr(n)||!n?f={next:n??void 0,error:o??void 0,complete:a??void 0}:f=n,u.destination=new CP(f),u}return r}(Pm);function Sa(e){TP(e)}function PP(e){throw e}var RP={closed:!0,next:Ah,error:PP,complete:Ah},MP=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function IP(e){return e}function LP(e){return e.length===0?IP:e.length===1?e[0]:function(n){return e.reduce(function(o,a){return a(o)},n)}}var Th=function(){function e(r){r&&(this._subscribe=r)}return e.prototype.lift=function(r){var n=new e;return n.source=this,n.operator=r,n},e.prototype.subscribe=function(r,n,o){var a=this,u=$P(r)?r:new bl(r,n,o);return Pa(function(){var f=a,d=f.operator,w=f.source;u.add(d?d.call(u,w):w?a._subscribe(u):a._trySubscribe(u))}),u},e.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(n){r.error(n)}},e.prototype.forEach=function(r,n){var o=this;return n=Ch(n),new n(function(a,u){var f=new bl({next:function(d){try{r(d)}catch(w){u(w),f.unsubscribe()}},error:u,complete:a});o.subscribe(f)})},e.prototype._subscribe=function(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)},e.prototype[MP]=function(){return this},e.prototype.pipe=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return LP(r)(this)},e.prototype.toPromise=function(r){var n=this;return r=Ch(r),new r(function(o,a){var u;n.subscribe(function(f){return u=f},function(f){return a(f)},function(){return o(u)})})},e.create=function(r){return new e(r)},e}();function Ch(e){var r;return(r=e??OP.Promise)!==null&&r!==void 0?r:Promise}function FP(e){return e&&Mr(e.next)&&Mr(e.error)&&Mr(e.complete)}function $P(e){return e&&e instanceof Pm||FP(e)&&Cm(e)}var DP=Am(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),rn=function(e){Ba(r,e);function r(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return r.prototype.lift=function(n){var o=new Ph(this,this);return o.operator=n,o},r.prototype._throwIfClosed=function(){if(this.closed)throw new DP},r.prototype.next=function(n){var o=this;Pa(function(){var a,u;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var f=fl(o.currentObservers),d=f.next();!d.done;d=f.next()){var w=d.value;w.next(n)}}catch(S){a={error:S}}finally{try{d&&!d.done&&(u=f.return)&&u.call(f)}finally{if(a)throw a.error}}}})},r.prototype.error=function(n){var o=this;Pa(function(){if(o._throwIfClosed(),!o.isStopped){o.hasError=o.isStopped=!0,o.thrownError=n;for(var a=o.observers;a.length;)a.shift().error(n)}})},r.prototype.complete=function(){var n=this;Pa(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var o=n.observers;o.length;)o.shift().complete()}})},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(r.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},r.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},r.prototype._innerSubscribe=function(n){var o=this,a=this,u=a.hasError,f=a.isStopped,d=a.observers;return u||f?Tm:(this.currentObservers=null,d.push(n),new Ka(function(){o.currentObservers=null,wl(d,n)}))},r.prototype._checkFinalizedStatuses=function(n){var o=this,a=o.hasError,u=o.thrownError,f=o.isStopped;a?n.error(u):f&&n.complete()},r.prototype.asObservable=function(){var n=new Th;return n.source=this,n},r.create=function(n,o){return new Ph(n,o)},r}(Th),Ph=function(e){Ba(r,e);function r(n,o){var a=e.call(this)||this;return a.destination=n,a.source=o,a}return r.prototype.next=function(n){var o,a;(a=(o=this.destination)===null||o===void 0?void 0:o.next)===null||a===void 0||a.call(o,n)},r.prototype.error=function(n){var o,a;(a=(o=this.destination)===null||o===void 0?void 0:o.error)===null||a===void 0||a.call(o,n)},r.prototype.complete=function(){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||o===void 0||o.call(n)},r.prototype._subscribe=function(n){var o,a;return(a=(o=this.source)===null||o===void 0?void 0:o.subscribe(n))!==null&&a!==void 0?a:Tm},r}(rn),Rm=(e=>(e.RELOAD="reload",e.RECOMPUTE="recompute",e))(Rm||{}),Mm=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(Mm||{});const kP=new rn,NP=new rn,Im=new rn;var Lm=(e=>(e.SAVE_ALL="save-all",e))(Lm||{});const jP=new rn;var Fm=(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))(Fm||{});const WP=new rn;var $m=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))($m||{});const UP=new rn,zP=new rn,Zl=31;var Gl=(e=>(e.EMPTY="Please enter a valid name",e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${Zl} characters`,e.SHOULD_START_WITH_LETTER="The name can only start with a letter or a Japanese character",e.INVALID="Invalid name",e))(Gl||{});function Dm(e){if(e==="")throw new Error("Please enter a valid name");if(e.length>Zl)throw new Error(Gl.LENGTH_EXCEEDED);if(!/^[a-zA-Z\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF]/.test(e))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(e))throw new Error("Invalid name");return!0}function BP(e){if(!e)return null;if(typeof e=="string")try{Dm(e)}catch(r){return r.message}}function HP(e,r){let n="";if(["array","object"].includes(r))try{const o=JSON.parse(e);r==="array"&&(!Array.isArray(o)||!Ve.isObject(o))&&(n=`Invalid value for type ${r}`),r==="object"&&(!Ve.isObject(o)||Array.isArray(o))&&(n=`Invalid value for type ${r}`)}catch{n=`Invalid value for type ${r}`}return r==="date"&&(new RegExp(/^(0?[1-9]|[12][0-9]|3[01])[/-](0?[1-9]|1[012])[/-]\d{4}$/).test(e)||(n=`Invalid value for type ${r}`)),r==="number"&&isNaN(+e)&&(n=`Invalid value for type ${r}`),["boolean","bool"].includes(r)&&typeof e!="boolean"&&!["true","false"].includes(e)&&(n=`Invalid value for type ${r}`),n}function Va(e){const r=new RegExp(':(?!4D\\.\\w+)[CPK]?\\d+(?=(?:[^"{}\\[\\]\\\\]*(?:\\\\.|"(?:[^"{}\\[\\]\\\\]*\\\\.)*[^"{}\\[\\]\\\\]*"))*[^"}\\]]*$)',"gm");return e.replace(r,"")}var Kl=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(Kl||{});const Qr={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms",CLASSES_FOLDER:"ClassesFolder",REPORTS:"Reports",DEBUGGER:"Debugger"};var Kt=(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))(Kt||{}),Rn=(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))(Rn||{}),Vl=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(Vl||{});const km="roles.json",Nm="qodlyApp.json",qP="model.4DModel",jm="HTTPHandlers.json",ZP="Localization/i18n";function Wm(e){const r=e.split("."),n=r.pop(),o=r.join(".").split("/")[0];switch(!0){case n==="4DModel":return Kt.MODEL;case n==="WebForm":return Kt.WEBFORM;case(["4dm","4qs","4qm"].includes(n)&&o===Qr.METHODS):return Kt.METHOD;case(["4dm","4qs","4qm"].includes(n)&&o===Qr.CLASSES):return Kt.CLASS;case e===km:return Kt.ROLES;case e===jm:return Kt.HTTP_HANDLERS;case e===Nm:return Kt.SETTINGS;default:return Kt.TEXT}}function GP(e,r=!1){switch(e){case Qr.REPORTS:case"report":return"QoDoc";case Qr.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case Qr.CLASSES:case Qr.METHODS:return r?"4qs":"4dm";default:return""}}function KP(e,r=""){const n=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return n?n[1]:r}class Um{constructor(){this.current=Promise.resolve()}lock(){let r;const n=new Promise(a=>{r=a}),o=this.current.then(()=>r);return this.current=n,o}}function zm(){const e=new Um;return async r=>{const n=await e.lock();try{const o=await r();return n(),o}catch(o){console.error(o),n();return}}}const Bm=Ve.curry((e,r,n)=>e&&Ve.get(n,e)===r),VP=Ve.curry((e,r,n)=>Ve.get(n,e)!==r),YP=Ve.curry((e,r)=>Ve.get(r,"id")!==e),XP=Ve.curry((e,r)=>Ve.get(r,"id")===e),JP=Ve.curry((e,r)=>Ve.get(r,"path")===e);function QP(e="id",r,n){return n.findIndex(Bm(e,r))!==-1}function eR(e){if(!e)return"";const{id:r,namespace:n}=e;return n&&r?`${n}:${r}`:r}function Hm(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function tR(e){return e.type==="object"}function qm(e){var r;return e.kind==="relatedEntities"||((r=e.type)==null?void 0:r.includes("Selection"))||e.behavior==="relatedEntities"}function Zm(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!Hm(e)}function rR(e){return qm(e)||Zm(e)}function nR(e){return e.applyTo==="dataStore"}function iR(e){return e.applyTo==="dataClass"}function oR(e){return e.applyTo==="entity"}function aR(e){return e.applyTo==="entityCollection"}function sR(e){return e.type==="entity"}function uR(e){return e.type==="entitysel"}function Gm(e){return e.dataType==="array"}function Km(e){return e.dataType==="object"}function Vm(e){return e.type==="scalar"}function lR(e){return Gm(e)||Km(e)||Vm(e)}const fR=e=>e!=null&&e.type==="entity",cR=e=>e.type==="entitysel",dR=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",pR=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",hR=e=>e.type==="scalar"&&e.dataType==="date";function vR(){return new Promise((e,r)=>{window.addEventListener("bundle:ready",n=>n.data?e():r(n.caughtErr))})}function mR(){return new Promise(e=>{window.addEventListener("i18n:ready",()=>e())})}var io=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(io||{}),Ym=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(Ym||{}),Yl=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(Yl||{});const gR={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function yR(e){var u;let r={};try{const f=((u=e.match(/\/\/%attributes = (.*)/))==null?void 0:u[1])||"";r=JSON.parse(f)}catch{}const{published4DMobile:n,...o}=r;return{...{invisible:!1,shared:!1,executedOnServer:!1,preemptive:io.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!n,publishedRestOptions:n||{table:"",scope:Yl.table}},...o}}function Xm(e){const r={};return e.invisible&&(r.invisible=!0),e.shared&&(r.shared=!0),e.executedOnServer&&(r.executedOnServer=!0),e.preemptive&&[io.capable,io.incapable].includes(e.preemptive)&&(r.preemptive=e.preemptive),e.publishedSoap&&(r.publishedSoap=!0,e.publishedWsdl&&(r.publishedWsdl=!0)),e.publishedWeb&&(r.publishedWeb=!0),e.publishedSql&&(r.publishedSql=!0),e.publishedRest&&e.publishedRestOptions&&(r.published4DMobile=e.publishedRestOptions),JSON.stringify(r).replace(/"(true|false)"/g,"$1")}function wR(e,r,n=!1){const o=Ve.isString(r)?r:Xm(r);if(!n&&Jm(e))return e;const a=Qm(e);return`//%attributes = ${o}\r
140
+ ${a}`}function Jm(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function Qm(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const bR=()=>Ll.uuid().replaceAll("-","").toUpperCase(),et="/rest/$designer",po="/rest/$designer-ext";function SR(...e){return r=>{if(e.length===0)return r;const n={...r};return e.forEach(o=>{typeof n[o]=="string"&&(n[o]=new Date(n[o]))}),n}}class Sl extends Error{constructor(r,n,o){super(),this.url=r,this.response=n,this.data=o}log(){console.error("Error while sending the request",this)}}async function Fe(e,r){const n=await window.fetch(e,r);if(/401/.test(n.status.toString())&&(window.location.href="/login.html?redirect=studio"),/^[45]/.test(n.status.toString())){let a;try{const u=await n.json();a=new Sl(e,n,u)}catch{a=new Sl(e,n)}throw a.log(),a}return await n.json()}var lr={},ut={},Rh;function gn(){if(Rh)return ut;Rh=1;var e=ut.ValidationError=function(c,g,b,_,x,C){if(Array.isArray(_)?(this.path=_,this.property=_.reduce(function(M,H){return M+d(H)},"instance")):_!==void 0&&(this.property=_),c&&(this.message=c),b){var T=b.$id||b.id;this.schema=T||b}g!==void 0&&(this.instance=g),this.name=x,this.argument=C,this.stack=this.toString()};e.prototype.toString=function(){return this.property+" "+this.message};var r=ut.ValidatorResult=function(c,g,b,_){this.instance=c,this.schema=g,this.options=b,this.path=_.path,this.propertyPath=_.propertyPath,this.errors=[],this.throwError=b&&b.throwError,this.throwFirst=b&&b.throwFirst,this.throwAll=b&&b.throwAll,this.disableFormat=b&&b.disableFormat===!0};r.prototype.addError=function(c){var g;if(typeof c=="string")g=new e(c,this.instance,this.schema,this.path);else{if(!c)throw new Error("Missing error detail");if(!c.message)throw new Error("Missing error message");if(!c.name)throw new Error("Missing validator type");g=new e(c.message,this.instance,this.schema,this.path,c.name,c.argument)}if(this.errors.push(g),this.throwFirst)throw new o(this);if(this.throwError)throw g;return g},r.prototype.importErrors=function(c){typeof c=="string"||c&&c.validatorType?this.addError(c):c&&c.errors&&(this.errors=this.errors.concat(c.errors))};function n(m,c){return c+": "+m.toString()+`
141
+ `}r.prototype.toString=function(c){return this.errors.map(n).join("")},Object.defineProperty(r.prototype,"valid",{get:function(){return!this.errors.length}}),ut.ValidatorResultError=o;function o(m){typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,o),this.instance=m.instance,this.schema=m.schema,this.options=m.options,this.errors=m.errors}o.prototype=new Error,o.prototype.constructor=o,o.prototype.name="Validation Error";var a=ut.SchemaError=function m(c,g){this.message=c,this.schema=g,Error.call(this,c),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,m)};a.prototype=Object.create(Error.prototype,{constructor:{value:a,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var u=ut.SchemaContext=function(c,g,b,_,x){this.schema=c,this.options=g,Array.isArray(b)?(this.path=b,this.propertyPath=b.reduce(function(C,T){return C+d(T)},"instance")):this.propertyPath=b,this.base=_,this.schemas=x};u.prototype.resolve=function(c){return p(this.base,c)},u.prototype.makeChild=function(c,g){var b=g===void 0?this.path:this.path.concat([g]),_=c.$id||c.id;let x=p(this.base,_||"");var C=new u(c,this.options,b,x,Object.create(this.schemas));return _&&!C.schemas[x]&&(C.schemas[x]=c),C};var f=ut.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(m){return typeof m=="string"&&parseFloat(m)===parseInt(m,10)&&!isNaN(m)},regex:function(m){var c=!0;try{new RegExp(m)}catch{c=!1}return c},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]+$/};f.regexp=f.regex,f.pattern=f.regex,f.ipv4=f["ip-address"],ut.isFormat=function(c,g,b){if(typeof c=="string"&&f[g]!==void 0){if(f[g]instanceof RegExp)return f[g].test(c);if(typeof f[g]=="function")return f[g](c)}else if(b&&b.customFormats&&typeof b.customFormats[g]=="function")return b.customFormats[g](c);return!0};var d=ut.makeSuffix=function(c){return c=c.toString(),!c.match(/[.\s\[\]]/)&&!c.match(/^[\d]/)?"."+c:c.match(/^\d+$/)?"["+c+"]":"["+JSON.stringify(c)+"]"};ut.deepCompareStrict=function m(c,g){if(typeof c!=typeof g)return!1;if(Array.isArray(c))return!Array.isArray(g)||c.length!==g.length?!1:c.every(function(x,C){return m(c[C],g[C])});if(typeof c=="object"){if(!c||!g)return c===g;var b=Object.keys(c),_=Object.keys(g);return b.length!==_.length?!1:b.every(function(x){return m(c[x],g[x])})}return c===g};function w(m,c,g,b){typeof g=="object"?c[b]=h(m[b],g):m.indexOf(g)===-1&&c.push(g)}function S(m,c,g){c[g]=m[g]}function y(m,c,g,b){typeof c[b]!="object"||!c[b]?g[b]=c[b]:m[b]?g[b]=h(m[b],c[b]):g[b]=c[b]}function h(m,c){var g=Array.isArray(c),b=g&&[]||{};return g?(m=m||[],b=b.concat(m),c.forEach(w.bind(null,m,b))):(m&&typeof m=="object"&&Object.keys(m).forEach(S.bind(null,m,b)),Object.keys(c).forEach(y.bind(null,m,c,b))),b}ut.deepMerge=h,ut.objectGetPath=function(c,g){for(var b=g.split("/").slice(1),_;typeof(_=b.shift())=="string";){var x=decodeURIComponent(_.replace(/~0/,"~").replace(/~1/g,"/"));if(!(x in c))return;c=c[x]}return c};function l(m){return"/"+encodeURIComponent(m).replace(/~/g,"%7E")}ut.encodePath=function(c){return c.map(l).join("")},ut.getDecimalPlaces=function(c){var g=0;if(isNaN(c))return g;typeof c!="number"&&(c=Number(c));var b=c.toString().split("e");if(b.length===2){if(b[1][0]!=="-")return g;g=Number(b[1].slice(1))}var _=b[0].split(".");return _.length===2&&(g+=_[1].length),g},ut.isSchema=function(c){return typeof c=="object"&&c||typeof c=="boolean"};var p=ut.resolveUrl=function(c,g){const b=new URL(g,new URL(c,"resolve://"));if(b.protocol==="resolve:"){const{pathname:_,search:x,hash:C}=b;return _+x+C}return b.toString()};return ut}var tl,Mh;function ER(){if(Mh)return tl;Mh=1;var e=gn(),r=e.ValidatorResult,n=e.SchemaError,o={};o.ignoreProperties={id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0};var a=o.validators={};a.type=function(h,l,p,m){if(h===void 0)return null;var c=new r(h,l,p,m),g=Array.isArray(l.type)?l.type:[l.type];if(!g.some(this.testType.bind(this,h,l,p,m))){var b=g.map(function(_){if(_){var x=_.$id||_.id;return x?"<"+x+">":_+""}});c.addError({name:"type",argument:b,message:"is not of a type(s) "+b})}return c};function u(y,h,l,p,m){var c=h.throwError,g=h.throwAll;h.throwError=!1,h.throwAll=!1;var b=this.validateSchema(y,m,h,l);return h.throwError=c,h.throwAll=g,!b.valid&&p instanceof Function&&p(b),b.valid}a.anyOf=function(h,l,p,m){if(h===void 0)return null;var c=new r(h,l,p,m),g=new r(h,l,p,m);if(!Array.isArray(l.anyOf))throw new n("anyOf must be an array");if(!l.anyOf.some(u.bind(this,h,p,m,function(_){g.importErrors(_)}))){var b=l.anyOf.map(function(_,x){var C=_.$id||_.id;return C?"<"+C+">":_.title&&JSON.stringify(_.title)||_.$ref&&"<"+_.$ref+">"||"[subschema "+x+"]"});p.nestedErrors&&c.importErrors(g),c.addError({name:"anyOf",argument:b,message:"is not any of "+b.join(",")})}return c},a.allOf=function(h,l,p,m){if(h===void 0)return null;if(!Array.isArray(l.allOf))throw new n("allOf must be an array");var c=new r(h,l,p,m),g=this;return l.allOf.forEach(function(b,_){var x=g.validateSchema(h,b,p,m);if(!x.valid){var C=b.$id||b.id,T=C||b.title&&JSON.stringify(b.title)||b.$ref&&"<"+b.$ref+">"||"[subschema "+_+"]";c.addError({name:"allOf",argument:{id:T,length:x.errors.length,valid:x},message:"does not match allOf schema "+T+" with "+x.errors.length+" error[s]:"}),c.importErrors(x)}}),c},a.oneOf=function(h,l,p,m){if(h===void 0)return null;if(!Array.isArray(l.oneOf))throw new n("oneOf must be an array");var c=new r(h,l,p,m),g=new r(h,l,p,m),b=l.oneOf.filter(u.bind(this,h,p,m,function(x){g.importErrors(x)})).length,_=l.oneOf.map(function(x,C){var T=x.$id||x.id;return T||x.title&&JSON.stringify(x.title)||x.$ref&&"<"+x.$ref+">"||"[subschema "+C+"]"});return b!==1&&(p.nestedErrors&&c.importErrors(g),c.addError({name:"oneOf",argument:_,message:"is not exactly one from "+_.join(",")})),c},a.if=function(h,l,p,m){if(h===void 0)return null;if(!e.isSchema(l.if))throw new Error('Expected "if" keyword to be a schema');var c=u.call(this,h,p,m,null,l.if),g=new r(h,l,p,m),b;if(c){if(l.then===void 0)return;if(!e.isSchema(l.then))throw new Error('Expected "then" keyword to be a schema');b=this.validateSchema(h,l.then,p,m.makeChild(l.then)),g.importErrors(b)}else{if(l.else===void 0)return;if(!e.isSchema(l.else))throw new Error('Expected "else" keyword to be a schema');b=this.validateSchema(h,l.else,p,m.makeChild(l.else)),g.importErrors(b)}return g};function f(y,h){if(Object.hasOwnProperty.call(y,h))return y[h];if(h in y){for(;y=Object.getPrototypeOf(y);)if(Object.propertyIsEnumerable.call(y,h))return y[h]}}a.propertyNames=function(h,l,p,m){if(this.types.object(h)){var c=new r(h,l,p,m),g=l.propertyNames!==void 0?l.propertyNames:{};if(!e.isSchema(g))throw new n('Expected "propertyNames" to be a schema (object or boolean)');for(var b in h)if(f(h,b)!==void 0){var _=this.validateSchema(b,g,p,m.makeChild(g));c.importErrors(_)}return c}},a.properties=function(h,l,p,m){if(this.types.object(h)){var c=new r(h,l,p,m),g=l.properties||{};for(var b in g){var _=g[b];if(_!==void 0){if(_===null)throw new n('Unexpected null, expected schema in "properties"');typeof p.preValidateProperty=="function"&&p.preValidateProperty(h,b,_,p,m);var x=f(h,b),C=this.validateSchema(x,_,p,m.makeChild(_,b));C.instance!==c.instance[b]&&(c.instance[b]=C.instance),c.importErrors(C)}}return c}};function d(y,h,l,p,m,c){if(this.types.object(y)&&!(h.properties&&h.properties[m]!==void 0))if(h.additionalProperties===!1)c.addError({name:"additionalProperties",argument:m,message:"is not allowed to have the additional property "+JSON.stringify(m)});else{var g=h.additionalProperties||{};typeof l.preValidateProperty=="function"&&l.preValidateProperty(y,m,g,l,p);var b=this.validateSchema(y[m],g,l,p.makeChild(g,m));b.instance!==c.instance[m]&&(c.instance[m]=b.instance),c.importErrors(b)}}a.patternProperties=function(h,l,p,m){if(this.types.object(h)){var c=new r(h,l,p,m),g=l.patternProperties||{};for(var b in h){var _=!0;for(var x in g){var C=g[x];if(C!==void 0){if(C===null)throw new n('Unexpected null, expected schema in "patternProperties"');try{var T=new RegExp(x,"u")}catch{T=new RegExp(x)}if(T.test(b)){_=!1,typeof p.preValidateProperty=="function"&&p.preValidateProperty(h,b,C,p,m);var M=this.validateSchema(h[b],C,p,m.makeChild(C,b));M.instance!==c.instance[b]&&(c.instance[b]=M.instance),c.importErrors(M)}}}_&&d.call(this,h,l,p,m,b,c)}return c}},a.additionalProperties=function(h,l,p,m){if(this.types.object(h)){if(l.patternProperties)return null;var c=new r(h,l,p,m);for(var g in h)d.call(this,h,l,p,m,g,c);return c}},a.minProperties=function(h,l,p,m){if(this.types.object(h)){var c=new r(h,l,p,m),g=Object.keys(h);return g.length>=l.minProperties||c.addError({name:"minProperties",argument:l.minProperties,message:"does not meet minimum property length of "+l.minProperties}),c}},a.maxProperties=function(h,l,p,m){if(this.types.object(h)){var c=new r(h,l,p,m),g=Object.keys(h);return g.length<=l.maxProperties||c.addError({name:"maxProperties",argument:l.maxProperties,message:"does not meet maximum property length of "+l.maxProperties}),c}},a.items=function(h,l,p,m){var c=this;if(this.types.array(h)&&l.items!==void 0){var g=new r(h,l,p,m);return h.every(function(b,_){if(Array.isArray(l.items))var x=l.items[_]===void 0?l.additionalItems:l.items[_];else var x=l.items;if(x===void 0)return!0;if(x===!1)return g.addError({name:"items",message:"additionalItems not permitted"}),!1;var C=c.validateSchema(b,x,p,m.makeChild(x,_));return C.instance!==g.instance[_]&&(g.instance[_]=C.instance),g.importErrors(C),!0}),g}},a.contains=function(h,l,p,m){var c=this;if(this.types.array(h)&&l.contains!==void 0){if(!e.isSchema(l.contains))throw new Error('Expected "contains" keyword to be a schema');var g=new r(h,l,p,m),b=h.some(function(_,x){var C=c.validateSchema(_,l.contains,p,m.makeChild(l.contains,x));return C.errors.length===0});return b===!1&&g.addError({name:"contains",argument:l.contains,message:"must contain an item matching given schema"}),g}},a.minimum=function(h,l,p,m){if(this.types.number(h)){var c=new r(h,l,p,m);return l.exclusiveMinimum&&l.exclusiveMinimum===!0?h>l.minimum||c.addError({name:"minimum",argument:l.minimum,message:"must be greater than "+l.minimum}):h>=l.minimum||c.addError({name:"minimum",argument:l.minimum,message:"must be greater than or equal to "+l.minimum}),c}},a.maximum=function(h,l,p,m){if(this.types.number(h)){var c=new r(h,l,p,m);return l.exclusiveMaximum&&l.exclusiveMaximum===!0?h<l.maximum||c.addError({name:"maximum",argument:l.maximum,message:"must be less than "+l.maximum}):h<=l.maximum||c.addError({name:"maximum",argument:l.maximum,message:"must be less than or equal to "+l.maximum}),c}},a.exclusiveMinimum=function(h,l,p,m){if(typeof l.exclusiveMinimum!="boolean"&&this.types.number(h)){var c=new r(h,l,p,m),g=h>l.exclusiveMinimum;return g||c.addError({name:"exclusiveMinimum",argument:l.exclusiveMinimum,message:"must be strictly greater than "+l.exclusiveMinimum}),c}},a.exclusiveMaximum=function(h,l,p,m){if(typeof l.exclusiveMaximum!="boolean"&&this.types.number(h)){var c=new r(h,l,p,m),g=h<l.exclusiveMaximum;return g||c.addError({name:"exclusiveMaximum",argument:l.exclusiveMaximum,message:"must be strictly less than "+l.exclusiveMaximum}),c}};var w=function(h,l,p,m,c,g){if(this.types.number(h)){var b=l[c];if(b==0)throw new n(c+" cannot be zero");var _=new r(h,l,p,m),x=e.getDecimalPlaces(h),C=e.getDecimalPlaces(b),T=Math.max(x,C),M=Math.pow(10,T);return Math.round(h*M)%Math.round(b*M)!==0&&_.addError({name:c,argument:b,message:g+JSON.stringify(b)}),_}};a.multipleOf=function(h,l,p,m){return w.call(this,h,l,p,m,"multipleOf","is not a multiple of (divisible by) ")},a.divisibleBy=function(h,l,p,m){return w.call(this,h,l,p,m,"divisibleBy","is not divisible by (multiple of) ")},a.required=function(h,l,p,m){var c=new r(h,l,p,m);return h===void 0&&l.required===!0?c.addError({name:"required",message:"is required"}):this.types.object(h)&&Array.isArray(l.required)&&l.required.forEach(function(g){f(h,g)===void 0&&c.addError({name:"required",argument:g,message:"requires property "+JSON.stringify(g)})}),c},a.pattern=function(h,l,p,m){if(this.types.string(h)){var c=new r(h,l,p,m),g=l.pattern;try{var b=new RegExp(g,"u")}catch{b=new RegExp(g)}return h.match(b)||c.addError({name:"pattern",argument:l.pattern,message:"does not match pattern "+JSON.stringify(l.pattern.toString())}),c}},a.format=function(h,l,p,m){if(h!==void 0){var c=new r(h,l,p,m);return!c.disableFormat&&!e.isFormat(h,l.format,this)&&c.addError({name:"format",argument:l.format,message:"does not conform to the "+JSON.stringify(l.format)+" format"}),c}},a.minLength=function(h,l,p,m){if(this.types.string(h)){var c=new r(h,l,p,m),g=h.match(/[\uDC00-\uDFFF]/g),b=h.length-(g?g.length:0);return b>=l.minLength||c.addError({name:"minLength",argument:l.minLength,message:"does not meet minimum length of "+l.minLength}),c}},a.maxLength=function(h,l,p,m){if(this.types.string(h)){var c=new r(h,l,p,m),g=h.match(/[\uDC00-\uDFFF]/g),b=h.length-(g?g.length:0);return b<=l.maxLength||c.addError({name:"maxLength",argument:l.maxLength,message:"does not meet maximum length of "+l.maxLength}),c}},a.minItems=function(h,l,p,m){if(this.types.array(h)){var c=new r(h,l,p,m);return h.length>=l.minItems||c.addError({name:"minItems",argument:l.minItems,message:"does not meet minimum length of "+l.minItems}),c}},a.maxItems=function(h,l,p,m){if(this.types.array(h)){var c=new r(h,l,p,m);return h.length<=l.maxItems||c.addError({name:"maxItems",argument:l.maxItems,message:"does not meet maximum length of "+l.maxItems}),c}};function S(y,h,l){var p,m=l.length;for(p=h+1,m;p<m;p++)if(e.deepCompareStrict(y,l[p]))return!1;return!0}return a.uniqueItems=function(h,l,p,m){if(l.uniqueItems===!0&&this.types.array(h)){var c=new r(h,l,p,m);return h.every(S)||c.addError({name:"uniqueItems",message:"contains duplicate item"}),c}},a.dependencies=function(h,l,p,m){if(this.types.object(h)){var c=new r(h,l,p,m);for(var g in l.dependencies)if(h[g]!==void 0){var b=l.dependencies[g],_=m.makeChild(b,g);if(typeof b=="string"&&(b=[b]),Array.isArray(b))b.forEach(function(C){h[C]===void 0&&c.addError({name:"dependencies",argument:_.propertyPath,message:"property "+C+" not found, required by "+_.propertyPath})});else{var x=this.validateSchema(h,b,p,_);c.instance!==x.instance&&(c.instance=x.instance),x&&x.errors.length&&(c.addError({name:"dependencies",argument:_.propertyPath,message:"does not meet dependency required by "+_.propertyPath}),c.importErrors(x))}}return c}},a.enum=function(h,l,p,m){if(h===void 0)return null;if(!Array.isArray(l.enum))throw new n("enum expects an array",l);var c=new r(h,l,p,m);return l.enum.some(e.deepCompareStrict.bind(null,h))||c.addError({name:"enum",argument:l.enum,message:"is not one of enum values: "+l.enum.map(String).join(",")}),c},a.const=function(h,l,p,m){if(h===void 0)return null;var c=new r(h,l,p,m);return e.deepCompareStrict(l.const,h)||c.addError({name:"const",argument:l.const,message:"does not exactly match expected constant: "+l.const}),c},a.not=a.disallow=function(h,l,p,m){var c=this;if(h===void 0)return null;var g=new r(h,l,p,m),b=l.not||l.disallow;return b?(Array.isArray(b)||(b=[b]),b.forEach(function(_){if(c.testType(h,l,p,m,_)){var x=_&&(_.$id||_.id),C=x||_;g.addError({name:"not",argument:C,message:"is of prohibited type "+C})}}),g):null},tl=o,tl}var Ea={},Ih;function El(){if(Ih)return Ea;Ih=1;var e=gn();Ea.SchemaScanResult=r;function r(n,o){this.id=n,this.ref=o}return Ea.scan=function(o,a){function u(y,h){if(!h||typeof h!="object")return;if(h.$ref){let c=e.resolveUrl(y,h.$ref);S[c]=S[c]?S[c]+1:0;return}var l=h.$id||h.id;let p=e.resolveUrl(y,l);var m=l?p:y;if(m){if(m.indexOf("#")<0&&(m+="#"),w[m]){if(!e.deepCompareStrict(w[m],h))throw new Error("Schema <"+m+"> already exists with different definition");return w[m]}w[m]=h,m[m.length-1]=="#"&&(w[m.substring(0,m.length-1)]=h)}f(m+"/items",Array.isArray(h.items)?h.items:[h.items]),f(m+"/extends",Array.isArray(h.extends)?h.extends:[h.extends]),u(m+"/additionalItems",h.additionalItems),d(m+"/properties",h.properties),u(m+"/additionalProperties",h.additionalProperties),d(m+"/definitions",h.definitions),d(m+"/patternProperties",h.patternProperties),d(m+"/dependencies",h.dependencies),f(m+"/disallow",h.disallow),f(m+"/allOf",h.allOf),f(m+"/anyOf",h.anyOf),f(m+"/oneOf",h.oneOf),u(m+"/not",h.not)}function f(y,h){if(Array.isArray(h))for(var l=0;l<h.length;l++)u(y+"/"+l,h[l])}function d(y,h){if(!(!h||typeof h!="object"))for(var l in h)u(y+"/"+l,h[l])}var w={},S={};return u(o,a),new r(w,S)},Ea}var rl,Lh;function _R(){if(Lh)return rl;Lh=1;var e=ER(),r=gn(),n=El().scan,o=r.ValidatorResult,a=r.ValidatorResultError,u=r.SchemaError,f=r.SchemaContext,d="/",w=function h(){this.customFormats=Object.create(h.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(y),this.attributes=Object.create(e.validators)};w.prototype.customFormats={},w.prototype.schemas=null,w.prototype.types=null,w.prototype.attributes=null,w.prototype.unresolvedRefs=null,w.prototype.addSchema=function(l,p){var m=this;if(!l)return null;var c=n(p||d,l),g=p||l.$id||l.id;for(var b in c.id)this.schemas[b]=c.id[b];for(var b in c.ref)this.unresolvedRefs.push(b);return this.unresolvedRefs=this.unresolvedRefs.filter(function(_){return typeof m.schemas[_]>"u"}),this.schemas[g]},w.prototype.addSubSchemaArray=function(l,p){if(Array.isArray(p))for(var m=0;m<p.length;m++)this.addSubSchema(l,p[m])},w.prototype.addSubSchemaObject=function(l,p){if(!(!p||typeof p!="object"))for(var m in p)this.addSubSchema(l,p[m])},w.prototype.setSchemas=function(l){this.schemas=l},w.prototype.getSchema=function(l){return this.schemas[l]},w.prototype.validate=function(l,p,m,c){if(typeof p!="boolean"&&typeof p!="object"||p===null)throw new u("Expected `schema` to be an object or boolean");m||(m={});var g=p.$id||p.id;let b=r.resolveUrl(m.base,g||"");if(!c){c=new f(p,m,[],b,Object.create(this.schemas)),c.schemas[b]||(c.schemas[b]=p);var _=n(b,p);for(var x in _.id){var C=_.id[x];c.schemas[x]=C}}if(m.required&&l===void 0){var T=new o(l,p,m,c);return T.addError("is required, but is undefined"),T}var T=this.validateSchema(l,p,m,c);if(T){if(m.throwAll&&T.errors.length)throw new a(T)}else throw new Error("Result undefined");return T};function S(h){var l=typeof h=="string"?h:h.$ref;return typeof l=="string"?l:!1}w.prototype.validateSchema=function(l,p,m,c){var g=new o(l,p,m,c);if(typeof p=="boolean")p===!0?p={}:p===!1&&(p={type:[]});else if(!p)throw new Error("schema is undefined");if(p.extends)if(Array.isArray(p.extends)){var b={schema:p,ctx:c};p.extends.forEach(this.schemaTraverser.bind(this,b)),p=b.schema,b.schema=null,b.ctx=null,b=null}else p=r.deepMerge(p,this.superResolve(p.extends,c));var _=S(p);if(_){var x=this.resolve(p,_,c),C=new f(x.subschema,m,c.path,x.switchSchema,c.schemas);return this.validateSchema(l,x.subschema,m,C)}var T=m&&m.skipAttributes||[];for(var M in p)if(!e.ignoreProperties[M]&&T.indexOf(M)<0){var H=null,F=this.attributes[M];if(F)H=F.call(this,l,p,m,c);else if(m.allowUnknownAttributes===!1)throw new u("Unsupported attribute: "+M,p);H&&g.importErrors(H)}if(typeof m.rewrite=="function"){var N=m.rewrite.call(this,l,p,m,c);g.instance=N}return g},w.prototype.schemaTraverser=function(l,p){l.schema=r.deepMerge(l.schema,this.superResolve(p,l.ctx))},w.prototype.superResolve=function(l,p){var m=S(l);return m?this.resolve(l,m,p).subschema:l},w.prototype.resolve=function(l,p,m){if(p=m.resolve(p),m.schemas[p])return{subschema:m.schemas[p],switchSchema:p};let g=new URL(p,"thismessage::/").hash;var b=g&&g.length&&p.substr(0,p.length-g.length);if(!b||!m.schemas[b])throw new u("no such schema <"+p+">",l);var _=r.objectGetPath(m.schemas[b],g.substr(1));if(_===void 0)throw new u("no such schema "+g+" located in <"+b+">",l);return{subschema:_,switchSchema:p}},w.prototype.testType=function(l,p,m,c,g){if(g!==void 0){if(g===null)throw new u('Unexpected null in "type" keyword');if(typeof this.types[g]=="function")return this.types[g].call(this,l);if(g&&typeof g=="object"){var b=this.validateSchema(l,g,m,c);return b===void 0||!(b&&b.errors.length)}return!0}};var y=w.prototype.types={};return y.string=function(l){return typeof l=="string"},y.number=function(l){return typeof l=="number"&&isFinite(l)},y.integer=function(l){return typeof l=="number"&&l%1===0},y.boolean=function(l){return typeof l=="boolean"},y.array=function(l){return Array.isArray(l)},y.null=function(l){return l===null},y.date=function(l){return l instanceof Date},y.any=function(l){return!0},y.object=function(l){return l&&typeof l=="object"&&!Array.isArray(l)&&!(l instanceof Date)},rl=w,rl}var Fh;function xR(){if(Fh)return lr;Fh=1;var e=lr.Validator=_R();return lr.ValidatorResult=gn().ValidatorResult,lr.ValidatorResultError=gn().ValidatorResultError,lr.ValidationError=gn().ValidationError,lr.SchemaError=gn().SchemaError,lr.SchemaScanResult=El().SchemaScanResult,lr.scan=El().scan,lr.validate=function(r,n,o){var a=new e;return a.validate(r,n,o)},lr}var OR=xR();const eg=(e,r,n)=>{const o=e instanceof RegExp?$h(e,n):e,a=r instanceof RegExp?$h(r,n):r,u=o!==null&&a!=null&&AR(o,a,n);return u&&{start:u[0],end:u[1],pre:n.slice(0,u[0]),body:n.slice(u[0]+o.length,u[1]),post:n.slice(u[1]+a.length)}},$h=(e,r)=>{const n=r.match(e);return n?n[0]:null},AR=(e,r,n)=>{let o,a,u,f,d,w=n.indexOf(e),S=n.indexOf(r,w+1),y=w;if(w>=0&&S>0){if(e===r)return[w,S];for(o=[],u=n.length;y>=0&&!d;){if(y===w)o.push(y),w=n.indexOf(e,y+1);else if(o.length===1){const h=o.pop();h!==void 0&&(d=[h,S])}else a=o.pop(),a!==void 0&&a<u&&(u=a,f=S),S=n.indexOf(r,y+1);y=w<S&&w>=0?w:S}o.length&&f!==void 0&&(d=[u,f])}return d},tg="\0SLASH"+Math.random()+"\0",rg="\0OPEN"+Math.random()+"\0",Xl="\0CLOSE"+Math.random()+"\0",ng="\0COMMA"+Math.random()+"\0",ig="\0PERIOD"+Math.random()+"\0",TR=new RegExp(tg,"g"),CR=new RegExp(rg,"g"),PR=new RegExp(Xl,"g"),RR=new RegExp(ng,"g"),MR=new RegExp(ig,"g"),IR=/\\\\/g,LR=/\\{/g,FR=/\\}/g,$R=/\\,/g,DR=/\\./g;function nl(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function kR(e){return e.replace(IR,tg).replace(LR,rg).replace(FR,Xl).replace($R,ng).replace(DR,ig)}function NR(e){return e.replace(TR,"\\").replace(CR,"{").replace(PR,"}").replace(RR,",").replace(MR,".")}function og(e){if(!e)return[""];const r=[],n=eg("{","}",e);if(!n)return e.split(",");const{pre:o,body:a,post:u}=n,f=o.split(",");f[f.length-1]+="{"+a+"}";const d=og(u);return u.length&&(f[f.length-1]+=d.shift(),f.push.apply(f,d)),r.push.apply(r,f),r}function jR(e){return e?(e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),Ki(kR(e),!0).map(NR)):[]}function WR(e){return"{"+e+"}"}function UR(e){return/^-?0\d/.test(e)}function zR(e,r){return e<=r}function BR(e,r){return e>=r}function Ki(e,r){const n=[],o=eg("{","}",e);if(!o)return[e];const a=o.pre,u=o.post.length?Ki(o.post,!1):[""];if(/\$$/.test(o.pre))for(let f=0;f<u.length;f++){const d=a+"{"+o.body+"}"+u[f];n.push(d)}else{const f=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(o.body),d=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(o.body),w=f||d,S=o.body.indexOf(",")>=0;if(!w&&!S)return o.post.match(/,(?!,).*\}/)?(e=o.pre+"{"+o.body+Xl+o.post,Ki(e)):[e];let y;if(w)y=o.body.split(/\.\./);else if(y=og(o.body),y.length===1&&y[0]!==void 0&&(y=Ki(y[0],!1).map(WR),y.length===1))return u.map(l=>o.pre+y[0]+l);let h;if(w&&y[0]!==void 0&&y[1]!==void 0){const l=nl(y[0]),p=nl(y[1]),m=Math.max(y[0].length,y[1].length);let c=y.length===3&&y[2]!==void 0?Math.abs(nl(y[2])):1,g=zR;p<l&&(c*=-1,g=BR);const _=y.some(UR);h=[];for(let x=l;g(x,p);x+=c){let C;if(d)C=String.fromCharCode(x),C==="\\"&&(C="");else if(C=String(x),_){const T=m-C.length;if(T>0){const M=new Array(T+1).join("0");x<0?C="-"+M+C.slice(1):C=M+C}}h.push(C)}}else{h=[];for(let l=0;l<y.length;l++)h.push.apply(h,Ki(y[l],!1))}for(let l=0;l<h.length;l++)for(let p=0;p<u.length;p++){const m=a+h[l]+u[p];(!r||w||m)&&n.push(m)}}return n}const HR=1024*64,ka=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>HR)throw new TypeError("pattern is too long")},qR={"[: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]},qi=e=>e.replace(/[[\]\\-]/g,"\\$&"),ZR=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Dh=e=>e.join(""),GR=(e,r)=>{const n=r;if(e.charAt(n)!=="[")throw new Error("not in a brace expression");const o=[],a=[];let u=n+1,f=!1,d=!1,w=!1,S=!1,y=n,h="";e:for(;u<e.length;){const c=e.charAt(u);if((c==="!"||c==="^")&&u===n+1){S=!0,u++;continue}if(c==="]"&&f&&!w){y=u+1;break}if(f=!0,c==="\\"&&!w){w=!0,u++;continue}if(c==="["&&!w){for(const[g,[b,_,x]]of Object.entries(qR))if(e.startsWith(g,u)){if(h)return["$.",!1,e.length-n,!0];u+=g.length,x?a.push(b):o.push(b),d=d||_;continue e}}if(w=!1,h){c>h?o.push(qi(h)+"-"+qi(c)):c===h&&o.push(qi(c)),h="",u++;continue}if(e.startsWith("-]",u+1)){o.push(qi(c+"-")),u+=2;continue}if(e.startsWith("-",u+1)){h=c,u+=2;continue}o.push(qi(c)),u++}if(y<u)return["",!1,0,!1];if(!o.length&&!a.length)return["$.",!1,e.length-n,!0];if(a.length===0&&o.length===1&&/^\\?.$/.test(o[0])&&!S){const c=o[0].length===2?o[0].slice(-1):o[0];return[ZR(c),!1,y-n,!1]}const l="["+(S?"^":"")+Dh(o)+"]",p="["+(S?"":"^")+Dh(a)+"]";return[o.length&&a.length?"("+l+"|"+p+")":o.length?l:p,d,y-n,!0]},Vi=(e,{windowsPathsNoEscape:r=!1}={})=>r?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),KR=new Set(["!","?","+","*","@"]),kh=e=>KR.has(e),VR="(?!(?:^|/)\\.\\.?(?:$|/))",_a="(?!\\.)",YR=new Set(["[","."]),XR=new Set(["..","."]),JR=new Set("().*{}+?[]^$\\!"),QR=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Jl="[^/]",Nh=Jl+"*?",jh=Jl+"+?";var Qe,nt,Rr,je,Ke,Yr,yn,Xr,fr,wn,oo,An,ag,en,Ra,_l,sg;const bt=class bt{constructor(r,n,o={}){Ot(this,An);Je(this,"type");Ot(this,Qe);Ot(this,nt);Ot(this,Rr,!1);Ot(this,je,[]);Ot(this,Ke);Ot(this,Yr);Ot(this,yn);Ot(this,Xr,!1);Ot(this,fr);Ot(this,wn);Ot(this,oo,!1);this.type=r,r&&Ge(this,nt,!0),Ge(this,Ke,n),Ge(this,Qe,re(this,Ke)?re(re(this,Ke),Qe):this),Ge(this,fr,re(this,Qe)===this?o:re(re(this,Qe),fr)),Ge(this,yn,re(this,Qe)===this?[]:re(re(this,Qe),yn)),r==="!"&&!re(re(this,Qe),Xr)&&re(this,yn).push(this),Ge(this,Yr,re(this,Ke)?re(re(this,Ke),je).length:0)}get hasMagic(){if(re(this,nt)!==void 0)return re(this,nt);for(const r of re(this,je))if(typeof r!="string"&&(r.type||r.hasMagic))return Ge(this,nt,!0);return re(this,nt)}toString(){return re(this,wn)!==void 0?re(this,wn):this.type?Ge(this,wn,this.type+"("+re(this,je).map(r=>String(r)).join("|")+")"):Ge(this,wn,re(this,je).map(r=>String(r)).join(""))}push(...r){for(const n of r)if(n!==""){if(typeof n!="string"&&!(n instanceof bt&&re(n,Ke)===this))throw new Error("invalid part: "+n);re(this,je).push(n)}}toJSON(){var n;const r=this.type===null?re(this,je).slice().map(o=>typeof o=="string"?o:o.toJSON()):[this.type,...re(this,je).map(o=>o.toJSON())];return this.isStart()&&!this.type&&r.unshift([]),this.isEnd()&&(this===re(this,Qe)||re(re(this,Qe),Xr)&&((n=re(this,Ke))==null?void 0:n.type)==="!")&&r.push({}),r}isStart(){var n;if(re(this,Qe)===this)return!0;if(!((n=re(this,Ke))!=null&&n.isStart()))return!1;if(re(this,Yr)===0)return!0;const r=re(this,Ke);for(let o=0;o<re(this,Yr);o++){const a=re(r,je)[o];if(!(a instanceof bt&&a.type==="!"))return!1}return!0}isEnd(){var n,o,a;if(re(this,Qe)===this||((n=re(this,Ke))==null?void 0:n.type)==="!")return!0;if(!((o=re(this,Ke))!=null&&o.isEnd()))return!1;if(!this.type)return(a=re(this,Ke))==null?void 0:a.isEnd();const r=re(this,Ke)?re(re(this,Ke),je).length:0;return re(this,Yr)===r-1}copyIn(r){typeof r=="string"?this.push(r):this.push(r.clone(this))}clone(r){const n=new bt(this.type,r);for(const o of re(this,je))n.copyIn(o);return n}static fromGlob(r,n={}){var a;const o=new bt(null,void 0,n);return qr(a=bt,en,Ra).call(a,r,o,0,n),o}toMMPattern(){if(this!==re(this,Qe))return re(this,Qe).toMMPattern();const r=this.toString(),[n,o,a,u]=this.toRegExpSource();if(!(a||re(this,nt)||re(this,fr).nocase&&!re(this,fr).nocaseMagicOnly&&r.toUpperCase()!==r.toLowerCase()))return o;const d=(re(this,fr).nocase?"i":"")+(u?"u":"");return Object.assign(new RegExp(`^${n}$`,d),{_src:n,_glob:r})}get options(){return re(this,fr)}toRegExpSource(r){var w;const n=r??!!re(this,fr).dot;if(re(this,Qe)===this&&qr(this,An,ag).call(this),!this.type){const S=this.isStart()&&this.isEnd(),y=re(this,je).map(m=>{var x;const[c,g,b,_]=typeof m=="string"?qr(x=bt,en,sg).call(x,m,re(this,nt),S):m.toRegExpSource(r);return Ge(this,nt,re(this,nt)||b),Ge(this,Rr,re(this,Rr)||_),c}).join("");let h="";if(this.isStart()&&typeof re(this,je)[0]=="string"&&!(re(this,je).length===1&&XR.has(re(this,je)[0]))){const c=YR,g=n&&c.has(y.charAt(0))||y.startsWith("\\.")&&c.has(y.charAt(2))||y.startsWith("\\.\\.")&&c.has(y.charAt(4)),b=!n&&!r&&c.has(y.charAt(0));h=g?VR:b?_a:""}let l="";return this.isEnd()&&re(re(this,Qe),Xr)&&((w=re(this,Ke))==null?void 0:w.type)==="!"&&(l="(?:$|\\/)"),[h+y+l,Vi(y),Ge(this,nt,!!re(this,nt)),re(this,Rr)]}const o=this.type==="*"||this.type==="+",a=this.type==="!"?"(?:(?!(?:":"(?:";let u=qr(this,An,_l).call(this,n);if(this.isStart()&&this.isEnd()&&!u&&this.type!=="!"){const S=this.toString();return Ge(this,je,[S]),this.type=null,Ge(this,nt,void 0),[S,Vi(this.toString()),!1,!1]}let f=!o||r||n||!_a?"":qr(this,An,_l).call(this,!0);f===u&&(f=""),f&&(u=`(?:${u})(?:${f})*?`);let d="";if(this.type==="!"&&re(this,oo))d=(this.isStart()&&!n?_a:"")+jh;else{const S=this.type==="!"?"))"+(this.isStart()&&!n&&!r?_a:"")+Nh+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&f?")":this.type==="*"&&f?")?":`)${this.type}`;d=a+u+S}return[d,Vi(u),Ge(this,nt,!!re(this,nt)),re(this,Rr)]}};Qe=new WeakMap,nt=new WeakMap,Rr=new WeakMap,je=new WeakMap,Ke=new WeakMap,Yr=new WeakMap,yn=new WeakMap,Xr=new WeakMap,fr=new WeakMap,wn=new WeakMap,oo=new WeakMap,An=new WeakSet,ag=function(){if(this!==re(this,Qe))throw new Error("should only call on root");if(re(this,Xr))return this;this.toString(),Ge(this,Xr,!0);let r;for(;r=re(this,yn).pop();){if(r.type!=="!")continue;let n=r,o=re(n,Ke);for(;o;){for(let a=re(n,Yr)+1;!o.type&&a<re(o,je).length;a++)for(const u of re(r,je)){if(typeof u=="string")throw new Error("string part in extglob AST??");u.copyIn(re(o,je)[a])}n=o,o=re(n,Ke)}}return this},en=new WeakSet,Ra=function(r,n,o,a){var p,m;let u=!1,f=!1,d=-1,w=!1;if(n.type===null){let c=o,g="";for(;c<r.length;){const b=r.charAt(c++);if(u||b==="\\"){u=!u,g+=b;continue}if(f){c===d+1?(b==="^"||b==="!")&&(w=!0):b==="]"&&!(c===d+2&&w)&&(f=!1),g+=b;continue}else if(b==="["){f=!0,d=c,w=!1,g+=b;continue}if(!a.noext&&kh(b)&&r.charAt(c)==="("){n.push(g),g="";const _=new bt(b,n);c=qr(p=bt,en,Ra).call(p,r,_,c,a),n.push(_);continue}g+=b}return n.push(g),c}let S=o+1,y=new bt(null,n);const h=[];let l="";for(;S<r.length;){const c=r.charAt(S++);if(u||c==="\\"){u=!u,l+=c;continue}if(f){S===d+1?(c==="^"||c==="!")&&(w=!0):c==="]"&&!(S===d+2&&w)&&(f=!1),l+=c;continue}else if(c==="["){f=!0,d=S,w=!1,l+=c;continue}if(kh(c)&&r.charAt(S)==="("){y.push(l),l="";const g=new bt(c,y);y.push(g),S=qr(m=bt,en,Ra).call(m,r,g,S,a);continue}if(c==="|"){y.push(l),l="",h.push(y),y=new bt(null,n);continue}if(c===")")return l===""&&re(n,je).length===0&&Ge(n,oo,!0),y.push(l),l="",n.push(...h,y),S;l+=c}return n.type=null,Ge(n,nt,void 0),Ge(n,je,[r.substring(o-1)]),S},_l=function(r){return re(this,je).map(n=>{if(typeof n=="string")throw new Error("string type in extglob ast??");const[o,a,u,f]=n.toRegExpSource(r);return Ge(this,Rr,re(this,Rr)||f),o}).filter(n=>!(this.isStart()&&this.isEnd())||!!n).join("|")},sg=function(r,n,o=!1){let a=!1,u="",f=!1;for(let d=0;d<r.length;d++){const w=r.charAt(d);if(a){a=!1,u+=(JR.has(w)?"\\":"")+w;continue}if(w==="\\"){d===r.length-1?u+="\\\\":a=!0;continue}if(w==="["){const[S,y,h,l]=GR(r,d);if(h){u+=S,f=f||y,d+=h-1,n=n||l;continue}}if(w==="*"){o&&r==="*"?u+=jh:u+=Nh,n=!0;continue}if(w==="?"){u+=Jl,n=!0;continue}u+=QR(w)}return[u,Vi(r),!!n,f]},Ot(bt,en);let Na=bt;const eM=(e,{windowsPathsNoEscape:r=!1}={})=>r?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),mt=(e,r,n={})=>(ka(r),!n.nocomment&&r.charAt(0)==="#"?!1:new Ya(r,n).match(e)),tM=/^\*+([^+@!?\*\[\(]*)$/,rM=e=>r=>!r.startsWith(".")&&r.endsWith(e),nM=e=>r=>r.endsWith(e),iM=e=>(e=e.toLowerCase(),r=>!r.startsWith(".")&&r.toLowerCase().endsWith(e)),oM=e=>(e=e.toLowerCase(),r=>r.toLowerCase().endsWith(e)),aM=/^\*+\.\*+$/,sM=e=>!e.startsWith(".")&&e.includes("."),uM=e=>e!=="."&&e!==".."&&e.includes("."),lM=/^\.\*+$/,fM=e=>e!=="."&&e!==".."&&e.startsWith("."),cM=/^\*+$/,dM=e=>e.length!==0&&!e.startsWith("."),pM=e=>e.length!==0&&e!=="."&&e!=="..",hM=/^\?+([^+@!?\*\[\(]*)?$/,vM=([e,r=""])=>{const n=ug([e]);return r?(r=r.toLowerCase(),o=>n(o)&&o.toLowerCase().endsWith(r)):n},mM=([e,r=""])=>{const n=lg([e]);return r?(r=r.toLowerCase(),o=>n(o)&&o.toLowerCase().endsWith(r)):n},gM=([e,r=""])=>{const n=lg([e]);return r?o=>n(o)&&o.endsWith(r):n},yM=([e,r=""])=>{const n=ug([e]);return r?o=>n(o)&&o.endsWith(r):n},ug=([e])=>{const r=e.length;return n=>n.length===r&&!n.startsWith(".")},lg=([e])=>{const r=e.length;return n=>n.length===r&&n!=="."&&n!==".."},fg=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Wh={win32:{sep:"\\"},posix:{sep:"/"}},wM=fg==="win32"?Wh.win32.sep:Wh.posix.sep;mt.sep=wM;const Gt=Symbol("globstar **");mt.GLOBSTAR=Gt;const bM="[^/]",SM=bM+"*?",EM="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",_M="(?:(?!(?:\\/|^)\\.).)*?",xM=(e,r={})=>n=>mt(n,e,r);mt.filter=xM;const Zt=(e,r={})=>Object.assign({},e,r),OM=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return mt;const r=mt;return Object.assign((o,a,u={})=>r(o,a,Zt(e,u)),{Minimatch:class extends r.Minimatch{constructor(a,u={}){super(a,Zt(e,u))}static defaults(a){return r.defaults(Zt(e,a)).Minimatch}},AST:class extends r.AST{constructor(a,u,f={}){super(a,u,Zt(e,f))}static fromGlob(a,u={}){return r.AST.fromGlob(a,Zt(e,u))}},unescape:(o,a={})=>r.unescape(o,Zt(e,a)),escape:(o,a={})=>r.escape(o,Zt(e,a)),filter:(o,a={})=>r.filter(o,Zt(e,a)),defaults:o=>r.defaults(Zt(e,o)),makeRe:(o,a={})=>r.makeRe(o,Zt(e,a)),braceExpand:(o,a={})=>r.braceExpand(o,Zt(e,a)),match:(o,a,u={})=>r.match(o,a,Zt(e,u)),sep:r.sep,GLOBSTAR:Gt})};mt.defaults=OM;const cg=(e,r={})=>(ka(e),r.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:jR(e));mt.braceExpand=cg;const AM=(e,r={})=>new Ya(e,r).makeRe();mt.makeRe=AM;const TM=(e,r,n={})=>{const o=new Ya(r,n);return e=e.filter(a=>o.match(a)),o.options.nonull&&!e.length&&e.push(r),e};mt.match=TM;const Uh=/[?*]|[+@!]\(.*?\)|\[|\]/,CM=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class Ya{constructor(r,n={}){Je(this,"options");Je(this,"set");Je(this,"pattern");Je(this,"windowsPathsNoEscape");Je(this,"nonegate");Je(this,"negate");Je(this,"comment");Je(this,"empty");Je(this,"preserveMultipleSlashes");Je(this,"partial");Je(this,"globSet");Je(this,"globParts");Je(this,"nocase");Je(this,"isWindows");Je(this,"platform");Je(this,"windowsNoMagicRoot");Je(this,"regexp");ka(r),n=n||{},this.options=n,this.pattern=r,this.platform=n.platform||fg,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!n.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!n.nonegate,this.comment=!1,this.empty=!1,this.partial=!!n.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=n.windowsNoMagicRoot!==void 0?n.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 r of this.set)for(const n of r)if(typeof n!="string")return!0;return!1}debug(...r){}make(){const r=this.pattern,n=this.options;if(!n.nocomment&&r.charAt(0)==="#"){this.comment=!0;return}if(!r){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],n.debug&&(this.debug=(...u)=>console.error(...u)),this.debug(this.pattern,this.globSet);const o=this.globSet.map(u=>this.slashSplit(u));this.globParts=this.preprocess(o),this.debug(this.pattern,this.globParts);let a=this.globParts.map((u,f,d)=>{if(this.isWindows&&this.windowsNoMagicRoot){const w=u[0]===""&&u[1]===""&&(u[2]==="?"||!Uh.test(u[2]))&&!Uh.test(u[3]),S=/^[a-z]:/i.test(u[0]);if(w)return[...u.slice(0,4),...u.slice(4).map(y=>this.parse(y))];if(S)return[u[0],...u.slice(1).map(y=>this.parse(y))]}return u.map(w=>this.parse(w))});if(this.debug(this.pattern,a),this.set=a.filter(u=>u.indexOf(!1)===-1),this.isWindows)for(let u=0;u<this.set.length;u++){const f=this.set[u];f[0]===""&&f[1]===""&&this.globParts[u][2]==="?"&&typeof f[3]=="string"&&/^[a-z]:$/i.test(f[3])&&(f[2]="?")}this.debug(this.pattern,this.set)}preprocess(r){if(this.options.noglobstar)for(let o=0;o<r.length;o++)for(let a=0;a<r[o].length;a++)r[o][a]==="**"&&(r[o][a]="*");const{optimizationLevel:n=1}=this.options;return n>=2?(r=this.firstPhasePreProcess(r),r=this.secondPhasePreProcess(r)):n>=1?r=this.levelOneOptimize(r):r=this.adjascentGlobstarOptimize(r),r}adjascentGlobstarOptimize(r){return r.map(n=>{let o=-1;for(;(o=n.indexOf("**",o+1))!==-1;){let a=o;for(;n[a+1]==="**";)a++;a!==o&&n.splice(o,a-o)}return n})}levelOneOptimize(r){return r.map(n=>(n=n.reduce((o,a)=>{const u=o[o.length-1];return a==="**"&&u==="**"?o:a===".."&&u&&u!==".."&&u!=="."&&u!=="**"?(o.pop(),o):(o.push(a),o)},[]),n.length===0?[""]:n))}levelTwoFileOptimize(r){Array.isArray(r)||(r=this.slashSplit(r));let n=!1;do{if(n=!1,!this.preserveMultipleSlashes){for(let a=1;a<r.length-1;a++){const u=r[a];a===1&&u===""&&r[0]===""||(u==="."||u==="")&&(n=!0,r.splice(a,1),a--)}r[0]==="."&&r.length===2&&(r[1]==="."||r[1]==="")&&(n=!0,r.pop())}let o=0;for(;(o=r.indexOf("..",o+1))!==-1;){const a=r[o-1];a&&a!=="."&&a!==".."&&a!=="**"&&(n=!0,r.splice(o-1,2),o-=2)}}while(n);return r.length===0?[""]:r}firstPhasePreProcess(r){let n=!1;do{n=!1;for(let o of r){let a=-1;for(;(a=o.indexOf("**",a+1))!==-1;){let f=a;for(;o[f+1]==="**";)f++;f>a&&o.splice(a+1,f-a);let d=o[a+1];const w=o[a+2],S=o[a+3];if(d!==".."||!w||w==="."||w===".."||!S||S==="."||S==="..")continue;n=!0,o.splice(a,1);const y=o.slice(0);y[a]="**",r.push(y),a--}if(!this.preserveMultipleSlashes){for(let f=1;f<o.length-1;f++){const d=o[f];f===1&&d===""&&o[0]===""||(d==="."||d==="")&&(n=!0,o.splice(f,1),f--)}o[0]==="."&&o.length===2&&(o[1]==="."||o[1]==="")&&(n=!0,o.pop())}let u=0;for(;(u=o.indexOf("..",u+1))!==-1;){const f=o[u-1];if(f&&f!=="."&&f!==".."&&f!=="**"){n=!0;const w=u===1&&o[u+1]==="**"?["."]:[];o.splice(u-1,2,...w),o.length===0&&o.push(""),u-=2}}}}while(n);return r}secondPhasePreProcess(r){for(let n=0;n<r.length-1;n++)for(let o=n+1;o<r.length;o++){const a=this.partsMatch(r[n],r[o],!this.preserveMultipleSlashes);if(a){r[n]=[],r[o]=a;break}}return r.filter(n=>n.length)}partsMatch(r,n,o=!1){let a=0,u=0,f=[],d="";for(;a<r.length&&u<n.length;)if(r[a]===n[u])f.push(d==="b"?n[u]:r[a]),a++,u++;else if(o&&r[a]==="**"&&n[u]===r[a+1])f.push(r[a]),a++;else if(o&&n[u]==="**"&&r[a]===n[u+1])f.push(n[u]),u++;else if(r[a]==="*"&&n[u]&&(this.options.dot||!n[u].startsWith("."))&&n[u]!=="**"){if(d==="b")return!1;d="a",f.push(r[a]),a++,u++}else if(n[u]==="*"&&r[a]&&(this.options.dot||!r[a].startsWith("."))&&r[a]!=="**"){if(d==="a")return!1;d="b",f.push(n[u]),a++,u++}else return!1;return r.length===n.length&&f}parseNegate(){if(this.nonegate)return;const r=this.pattern;let n=!1,o=0;for(let a=0;a<r.length&&r.charAt(a)==="!";a++)n=!n,o++;o&&(this.pattern=r.slice(o)),this.negate=n}matchOne(r,n,o=!1){const a=this.options;if(this.isWindows){const c=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),g=!c&&r[0]===""&&r[1]===""&&r[2]==="?"&&/^[a-z]:$/i.test(r[3]),b=typeof n[0]=="string"&&/^[a-z]:$/i.test(n[0]),_=!b&&n[0]===""&&n[1]===""&&n[2]==="?"&&typeof n[3]=="string"&&/^[a-z]:$/i.test(n[3]),x=g?3:c?0:void 0,C=_?3:b?0:void 0;if(typeof x=="number"&&typeof C=="number"){const[T,M]=[r[x],n[C]];T.toLowerCase()===M.toLowerCase()&&(n[C]=T,C>x?n=n.slice(C):x>C&&(r=r.slice(x)))}}const{optimizationLevel:u=1}=this.options;u>=2&&(r=this.levelTwoFileOptimize(r)),this.debug("matchOne",this,{file:r,pattern:n}),this.debug("matchOne",r.length,n.length);for(var f=0,d=0,w=r.length,S=n.length;f<w&&d<S;f++,d++){this.debug("matchOne loop");var y=n[d],h=r[f];if(this.debug(n,y,h),y===!1)return!1;if(y===Gt){this.debug("GLOBSTAR",[n,y,h]);var l=f,p=d+1;if(p===S){for(this.debug("** at the end");f<w;f++)if(r[f]==="."||r[f]===".."||!a.dot&&r[f].charAt(0)===".")return!1;return!0}for(;l<w;){var m=r[l];if(this.debug(`
142
+ globstar while`,r,l,n,p,m),this.matchOne(r.slice(l),n.slice(p),o))return this.debug("globstar found match!",l,w,m),!0;if(m==="."||m===".."||!a.dot&&m.charAt(0)==="."){this.debug("dot detected!",r,l,n,p);break}this.debug("globstar swallow a segment, and continue"),l++}return!!(o&&(this.debug(`
143
+ >>> no match, partial?`,r,l,n,p),l===w))}let c;if(typeof y=="string"?(c=h===y,this.debug("string match",y,h,c)):(c=y.test(h),this.debug("pattern match",y,h,c)),!c)return!1}if(f===w&&d===S)return!0;if(f===w)return o;if(d===S)return f===w-1&&r[f]==="";throw new Error("wtf?")}braceExpand(){return cg(this.pattern,this.options)}parse(r){ka(r);const n=this.options;if(r==="**")return Gt;if(r==="")return"";let o,a=null;(o=r.match(cM))?a=n.dot?pM:dM:(o=r.match(tM))?a=(n.nocase?n.dot?oM:iM:n.dot?nM:rM)(o[1]):(o=r.match(hM))?a=(n.nocase?n.dot?mM:vM:n.dot?gM:yM)(o):(o=r.match(aM))?a=n.dot?uM:sM:(o=r.match(lM))&&(a=fM);const u=Na.fromGlob(r,this.options).toMMPattern();return a&&typeof u=="object"&&Reflect.defineProperty(u,"test",{value:a}),u}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const r=this.set;if(!r.length)return this.regexp=!1,this.regexp;const n=this.options,o=n.noglobstar?SM:n.dot?EM:_M,a=new Set(n.nocase?["i"]:[]);let u=r.map(w=>{const S=w.map(y=>{if(y instanceof RegExp)for(const h of y.flags.split(""))a.add(h);return typeof y=="string"?CM(y):y===Gt?Gt:y._src});return S.forEach((y,h)=>{const l=S[h+1],p=S[h-1];y!==Gt||p===Gt||(p===void 0?l!==void 0&&l!==Gt?S[h+1]="(?:\\/|"+o+"\\/)?"+l:S[h]=o:l===void 0?S[h-1]=p+"(?:\\/|"+o+")?":l!==Gt&&(S[h-1]=p+"(?:\\/|\\/"+o+"\\/)"+l,S[h+1]=Gt))}),S.filter(y=>y!==Gt).join("/")}).join("|");const[f,d]=r.length>1?["(?:",")"]:["",""];u="^"+f+u+d+"$",this.negate&&(u="^(?!"+u+").+$");try{this.regexp=new RegExp(u,[...a].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(r){return this.preserveMultipleSlashes?r.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(r)?["",...r.split(/\/+/)]:r.split(/\/+/)}match(r,n=this.partial){if(this.debug("match",r,this.pattern),this.comment)return!1;if(this.empty)return r==="";if(r==="/"&&n)return!0;const o=this.options;this.isWindows&&(r=r.split("\\").join("/"));const a=this.slashSplit(r);this.debug(this.pattern,"split",a);const u=this.set;this.debug(this.pattern,"set",u);let f=a[a.length-1];if(!f)for(let d=a.length-2;!f&&d>=0;d--)f=a[d];for(let d=0;d<u.length;d++){const w=u[d];let S=a;if(o.matchBase&&w.length===1&&(S=[f]),this.matchOne(S,w,n))return o.flipNegate?!0:!this.negate}return o.flipNegate?!1:this.negate}static defaults(r){return mt.defaults(r).Minimatch}}mt.AST=Na;mt.Minimatch=Ya;mt.escape=eM;mt.unescape=Vi;const Ql="/$shared",PM={"**/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"]}},"**/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"}},"**/*.json":{parser:"json",content:{}}};function dg(e){const r=Object.entries(PM).find(([n])=>mt(e,n));return r==null?void 0:r[1]}function ef(e){var o;const r=(o=dg(e))==null?void 0:o.content;if(!r)return;const n=e.replace(`${Ql}/`,"Shared/");tf({name:n,content:r,asText:typeof r=="string"})}function Xa({path:e,createIfNotExists:r=!1}){const n=`${Ql}/${e}`;return Fe(`${n}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})}).then(o=>{const a=dg(e);let u=o;if(!a)return u;if(typeof u=="string")try{switch(a.parser){case"json":u=JSON.parse(u);break;default:break}}catch{throw new Error("Cannot parse")}if(a.schema&&!new OR.Validator().validate(u,a.schema).valid)throw new Error("Invalid Schema");return u}).catch(o=>{if(RM(o)&&r){const a=MM(o,e);Im.next({message:a,kind:"warning"}),ef(n)}throw o})}function RM(e){var r;return((r=e==null?void 0:e.response)==null?void 0:r.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 MM(e,r){var n;switch(!0){case((e==null?void 0:e.message)==="Cannot parse "||(e==null?void 0:e.name)==="SyntaxError"):return`Cannot parse file '${r}', resetting...`;case(e==null?void 0:e.message)==="Invalid Schema":return`File '${r}' is corrupt, resetting...`;case((n=e==null?void 0:e.response)==null?void 0:n.status)===404:return`File '${r}' not found, creating...`;default:return e==null?void 0:e.message}}function IM(e){return Fe(po,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function LM(e){return Fe(po,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const pg=()=>{const{host:e,protocol:r}=window.location,n=r==="https:";return{projectOpened:!1,remoteDebuggerMode:Vl.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${n?"s":""}://${e}/remoteDebugger`,lsp:`ws${n?"s":""}://${e}/LSP`},isRestActive:!0}};async function FM(){const{hostname:e,host:r,protocol:n}=window.location,o=n==="https:";try{const a=await Fe(et,{method:"POST",body:JSON.stringify({verb:Rn.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),u=(()=>{if(a.rendererPath)return a.rendererPath;const f=`http://${e}:${a.webServerHTTPPort}`,d=`https://${e}:${a.webServerHTTPSPort}`;return a.webServerHTTPPort&&a.webServerHTTPSPort?o?d:f:a.webServerHTTPPort?f:d})();return{projectOpened:a.webServerHTTPSPort>0||a.webServerHTTPPort>0,remoteDebuggerMode:a.remoteDebuggerMode,baseUrl:u,qodly:typeof a.qodly>"u"?!0:a.qodly,urls:{renderer:a.rendererPath||`${u}/$lib/renderer/`,debugger:`ws${o?"s":""}://${r}/remoteDebugger`,lsp:`ws${o?"s":""}://${r}/LSP`},isRestActive:a.isRESTActive}}catch(a){return console.error(a),pg()}}async function hg(e){return await Fe(et,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function $M(...e){return(await Promise.all(e.map(o=>hg({root:o,verb:Rn.GET_FOLDER})))).map(({children:o})=>o.map(({name:a,date:u,type:f})=>({name:a,type:f,date:u,path:`${f}/${a}`}))).flat()}function DM(e,r={}){const{sanitize:n=!0}=r;return Fe(`/rest/$getWebForm/${e}`,{method:"GET"}).then(o=>{if(!(o!=null&&o.components)||!n)return o;const a=new Map;return{...o,components:Ve.entries(o.components).map(([u,f])=>{const d=u,{resolvedName:w}=f.type;if(w==="WebformLoader"){const S=Ll.generate();a.set(u,S),u=S}return[u,f,d]}).reduce((u,[f,d,w])=>{var S;return d.nodes&&(d.nodes=d.nodes.map(y=>a.get(y)||y)),d.linkedNodes&&(d.linkedNodes=Ve.entries(d.linkedNodes).reduce((y,[h,l])=>({...y,[h]:a.get(l)||l}),{})),(S=d.props)!=null&&S.events&&(d.props.events=d.props.events.map(y=>(y.type==="navigation"&&y.loader&&(y.loader=a.get(y.loader)||y.loader),y))),{...u,[f]:{...d,props:{...d.props,__originalID:w}}}},{})}})}function kM(e){return Fe(et,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(r=>({...r,content:[Kt.METHOD,Kt.CLASS].includes(r.type)?Va(r.content):r.content}))}function NM(e){return e.type==="folder"?Fe(po,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):Fe(et,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function jM(e){return e.type==="folder"?(await Fe(po,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await Fe(et,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function WM(e){return Fe(et,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function UM(e){return Fe(et,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function zM(e){return(await Fe(et,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function BM(...e){return await Fe(et,{method:"POST",body:JSON.stringify({verb:Rn.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function HM(e){const r=await Fe("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return r.isLogged&&r.success}async function qM(){return await Fe("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function ZM({name:e,path:r="",root:n="root",asText:o=!1}){return Fe(et,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:n,path:r,name:e,asText:o}),headers:new Headers({"Content-Type":"application/json"})})}async function GM(e={}){try{return await Xa({path:"shared_datasources.json",...e})}catch{return{}}}async function KM(e={}){try{return await Xa({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function VM(e={}){try{return await Xa({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function YM(){try{return await Fe("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function XM(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const JM=zm(),QM=async e=>{const r={verb:Rn.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:e};return JM(async()=>(await Fe(et,{method:"POST",body:JSON.stringify(r),headers:new Headers({"Content-Type":"application/json"})}),e))},tf=async e=>{const r=await Fe(et,{method:"POST",body:JSON.stringify({...e,verb:Rn.SET_FILE_CONTENT,root:Kl.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),n=Wm(`${e.path||"Sources"}/${e.name}`);return{...r,type:n,size:0}},eI=async e=>await tf({name:"crafted_components.json",path:Qr.WEBFORMS,content:e});function tI(e){return Fe(et,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function rI(e){return Fe(et,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function nI(e){return Fe(et,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function iI(e){return Fe(et,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}).then(r=>Array.isArray(r)?r:{...r,content:["4dm","4qm","4qs"].includes(r.ext)?Va(r.content):r.content}).catch(r=>{var n,o;throw((o=(n=r.data)==null?void 0:n.__ERROR[0])==null?void 0:o.errCode)===1839&&ef(e.path),r})}function oI(e){return Fe(et,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function aI(e){const r=new RegExp(/^\((.+)(?=\))/gi).exec(e);return r!==null?r[1]:""}function sI(e){const r=new RegExp(/(->)(.*)/gi).exec(e);if(r!==null)return r[0].replace("->","");const n=/:([^)]*)$/.exec(e);return n!==null?`result : ${n[1].trim()}`:""}function uI(e){const r=aI(e).split(/[;,]/g).filter(Boolean).map(a=>{const u=a.split(":")[0].trim(),f=a.split(":")[1].trim();return{name:u,type:f}}),n=sI(e),o=n?{name:n.split(":")[0].trim(),type:n.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:r,result:o}}async function lI(e,r){const o=e.split(".").pop();try{const a=await Fe(et,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:r,functionName:o}),headers:new Headers({"Content-Type":"application/json"})});a.content=Va(a.content);const{params:u,result:f}=uI(a.parameters);return{...a,params:u,returns:f}}catch(a){return console.error(a),{className:r,functionName:o,filePath:e,content:"",params:[]}}}var vg=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(vg||{});function fI(e,r){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...r}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(n=>{})}function cI(e){window.pagesense=window.pagesense||[],window.pagesense.push(["trackEvent",e])}var mg=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(mg||{}),gg=(e=>(e[e.METHOD=1]="METHOD",e[e.CLASS=10]="CLASS",e))(gg||{}),yg=(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))(yg||{}),wg=(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))(wg||{});const dI={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},pI={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=et;exports.AppLoader=VC;exports.ControlledSwitch=gm;exports.DATASOURCE_THEMES=dI;exports.DatasourcesActions=Mm;exports.DebuggerActions=$m;exports.DesignerRequestVerb=Rn;exports.Dialog=dx;exports.DialogBody=rv;exports.EActivity=vg;exports.EDITOR=pI;exports.EIDENTIFIERS=yg;exports.ERROR_CODES=wg;exports.EWebFormStyleClassScope=mg;exports.EXT_API_PREFIX=po;exports.FileFolderType=Kt;exports.FolderRootPath=Qr;exports.FolderRootType=Kl;exports.HTTPError=Sl;exports.HTTP_HANDLERS_PATH=jm;exports.IPreemptive=io;exports.IPublished=Ym;exports.IPublishedRestScope=Yl;exports.IdentityProvider=bP;exports.Incase=jO;exports.IndentLines=Ov;exports.LOCALIZATION_PATH=ZP;exports.LogoSVG=ym;exports.LspActions=Fm;exports.MAX_FILE_NAME_LENGTH=Zl;exports.MODEL_TAB_PATH=qP;exports.Modal=QC;exports.ModalCloseReason=Vn;exports.ModalColor=En;exports.ModalIcons=yl;exports.ModalType=Hl;exports.Mutex=Um;exports.NameError=Gl;exports.Overlay=tv;exports.Portal=Bh;exports.PublishOptions=gR;exports.ROLES_TAB_PATH=km;exports.RemoteDebuggerMode=Vl;exports.SETTINGS_TAB_PATH=Nm;exports.SHARED_API_PREFIX=Ql;exports.SourceCodeDescriptor=gg;exports.Switcher=Av;exports.TabEventsActions=Lm;exports.Tip=XT;exports.TipsProvider=VT;exports.Toast=bO;exports.Tooltip=GC;exports.Tree=NO;exports.TreeIcon=Sv;exports.TreeNode=Fl;exports.WebformActions=Rm;exports._isArrayDatasource=dR;exports._isObjectDatasource=pR;exports.addAttributesToContent=wR;exports.addFolder=WM;exports.by=Bm;exports.byId=XP;exports.byPath=JP;exports.checkUpdates=IM;exports.createFolder=tI;exports.datasourcesSubject=kP;exports.debuggerSubject=UP;exports.dropFile=jM;exports.dropFolder=zM;exports.exists=QP;exports.extractWebformName=KP;exports.generateUUID=bR;exports.getAppSettings=FM;exports.getCatalog=qM;exports.getDatasourceId=eR;exports.getDefaultAppSettings=pg;exports.getFile=kM;exports.getFileContent=ZM;exports.getFileExtentionFromType=GP;exports.getFilesInfo=BM;exports.getFolder=hg;exports.getFolders=$M;exports.getFunctionContent=lI;exports.getMonacoTheme=XM;exports.getNodeInfo=iI;exports.getSavedConditions=VM;exports.getSharedCSS=KM;exports.getSharedDatasources=GM;exports.getSharedResource=Xa;exports.getTypeFromExtension=Wm;exports.getUserPrivileges=YM;exports.getWebForm=DM;exports.hasAttributesString=Jm;exports.http=Fe;exports.installUpdates=LM;exports.isArrayDatasource=Gm;exports.isDataClassMethod=iR;exports.isDataStoreMethod=nR;exports.isDateDatasource=hR;exports.isEntity=fR;exports.isEntityDatasource=sR;exports.isEntityMethod=oR;exports.isEntitySelection=cR;exports.isEntitySelectionDatasource=uR;exports.isEntitySelectionMethod=aR;exports.isObjectAttribute=tR;exports.isObjectDatasource=Km;exports.isRelatedAttribute=rR;exports.isRelatedEntitiesAttribute=qm;exports.isRelatedEntityAttribute=Zm;exports.isScalarDatasource=Vm;exports.isSimpleAttribute=Hm;exports.isSimpleDatasource=lR;exports.loadDS=vR;exports.loadI18n=mR;exports.log=fI;exports.login=HM;exports.lspSubject=WP;exports.moveItem=nI;exports.outBy=VP;exports.outById=YP;exports.parseAttributes=yR;exports.queue=zm;exports.removeAttributesString=Qm;exports.removeItem=rI;exports.renameFile=NM;exports.renameFolder=UM;exports.sanitizeContent=Va;exports.saveContent=oI;exports.setCraftedComponents=eI;exports.setFileContent=tf;exports.setSharedSources=QM;exports.stringifyAttributes=Xm;exports.tabEventsSubject=jP;exports.tasksManagerSubject=zP;exports.toastSubject=Im;exports.trackEvent=cI;exports.transformDates=SR;exports.tryCreateSharedResource=ef;exports.useDidMountEffect=rP;exports.useDoubleClick=xP;exports.useFeatureFlags=wP;exports.useForwardedRef=yP;exports.useHotkeys=hP;exports.useIdentity=SP;exports.useOutsideClick=vP;exports.usePrevious=mP;exports.useStateObject=EP;exports.useStateRef=gP;exports.useTip=om;exports.validateName=Dm;exports.validateServerSide=BP;exports.validateValue=HP;exports.webformSubject=NP;
157
144
  //# sourceMappingURL=index.cjs.js.map