@ws-ui/shared 1.8.1 → 1.8.4-rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/FloatingTooltip/index.d.ts +11 -0
- package/dist/components/Panel.d.ts +18 -0
- package/dist/components/Tooltip.d.ts +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/use-enhanced-state/setupDevTools.d.ts +27 -0
- package/dist/hooks/use-enhanced-state/useEnhancedState.d.ts +16 -0
- package/dist/index.cjs.js +116 -116
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +7979 -7453
- package/dist/index.es.js.map +1 -1
- package/package.json +5 -2
- package/README.md +0 -7
package/dist/index.cjs.js
CHANGED
|
@@ -1,157 +1,157 @@
|
|
|
1
|
-
"use strict";var a_=Object.defineProperty;var bp=e=>{throw TypeError(e)};var u_=(e,t,r)=>t in e?a_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var me=(e,t,r)=>u_(e,typeof t!="symbol"?t+"":t,r),Vu=(e,t,r)=>t.has(e)||bp("Cannot "+r);var re=(e,t,r)=>(Vu(e,t,"read from private field"),r?r.call(e):t.get(e)),bt=(e,t,r)=>t.has(e)?bp("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Ve=(e,t,r,o)=>(Vu(e,t,"write to private field"),o?o.call(e,r):t.set(e,r),r),$e=(e,t,r)=>(Vu(e,t,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("react/jsx-runtime"),W=require("react"),Eo=require("react-dom"),st=require("@ws-ui/icons"),Ml=require("@emotion/react");function qg(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const D=qg(W),l_=qg(Eo),Zg=({children:e})=>Eo.createPortal(e,document.querySelector("body"));var xp=function(t){return t.reduce(function(r,o){var s=o[0],a=o[1];return r[s]=a,r},{})},Sp=typeof window<"u"&&window.document&&window.document.createElement?D.useLayoutEffect:D.useEffect,$t="top",tr="bottom",rr="right",It="left",nc="auto",_o=[$t,tr,rr,It],li="start",ho="end",c_="clippingParents",Gg="viewport",$i="popper",f_="reference",Ep=_o.reduce(function(e,t){return e.concat([t+"-"+li,t+"-"+ho])},[]),Kg=[].concat(_o,[nc]).reduce(function(e,t){return e.concat([t,t+"-"+li,t+"-"+ho])},[]),d_="beforeRead",p_="read",h_="afterRead",g_="beforeMain",v_="main",m_="afterMain",y_="beforeWrite",w_="write",b_="afterWrite",x_=[d_,p_,h_,g_,v_,m_,y_,w_,b_];function _r(e){return e?(e.nodeName||"").toLowerCase():null}function Bt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function In(e){var t=Bt(e).Element;return e instanceof t||e instanceof Element}function er(e){var t=Bt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ic(e){if(typeof ShadowRoot>"u")return!1;var t=Bt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function S_(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var o=t.styles[r]||{},s=t.attributes[r]||{},a=t.elements[r];!er(a)||!_r(a)||(Object.assign(a.style,o),Object.keys(s).forEach(function(l){var c=s[l];c===!1?a.removeAttribute(l):a.setAttribute(l,c===!0?"":c)}))})}function E_(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(o){var s=t.elements[o],a=t.attributes[o]||{},l=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:r[o]),c=l.reduce(function(h,y){return h[y]="",h},{});!er(s)||!_r(s)||(Object.assign(s.style,c),Object.keys(a).forEach(function(h){s.removeAttribute(h)}))})}}const __={name:"applyStyles",enabled:!0,phase:"write",fn:S_,effect:E_,requires:["computeStyles"]};function Er(e){return e.split("-")[0]}var Cn=Math.max,Qs=Math.min,ci=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 Vg(){return!/^((?!chrome|android).)*safari/i.test(Fl())}function fi(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var o=e.getBoundingClientRect(),s=1,a=1;t&&er(e)&&(s=e.offsetWidth>0&&ci(o.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ci(o.height)/e.offsetHeight||1);var l=In(e)?Bt(e):window,c=l.visualViewport,h=!Vg()&&r,y=(o.left+(h&&c?c.offsetLeft:0))/s,v=(o.top+(h&&c?c.offsetTop:0))/a,g=o.width/s,d=o.height/a;return{width:g,height:d,top:v,right:y+g,bottom:v+d,left:y,x:y,y:v}}function oc(e){var t=fi(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function Yg(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&ic(r)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Br(e){return Bt(e).getComputedStyle(e)}function A_(e){return["table","td","th"].indexOf(_r(e))>=0}function fn(e){return((In(e)?e.ownerDocument:e.document)||window.document).documentElement}function fa(e){return _r(e)==="html"?e:e.assignedSlot||e.parentNode||(ic(e)?e.host:null)||fn(e)}function _p(e){return!er(e)||Br(e).position==="fixed"?null:e.offsetParent}function O_(e){var t=/firefox/i.test(Fl()),r=/Trident/i.test(Fl());if(r&&er(e)){var o=Br(e);if(o.position==="fixed")return null}var s=fa(e);for(ic(s)&&(s=s.host);er(s)&&["html","body"].indexOf(_r(s))<0;){var a=Br(s);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return s;s=s.parentNode}return null}function Ao(e){for(var t=Bt(e),r=_p(e);r&&A_(r)&&Br(r).position==="static";)r=_p(r);return r&&(_r(r)==="html"||_r(r)==="body"&&Br(r).position==="static")?t:r||O_(e)||t}function sc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function uo(e,t,r){return Cn(e,Qs(t,r))}function T_(e,t,r){var o=uo(e,t,r);return o>r?r:o}function Xg(){return{top:0,right:0,bottom:0,left:0}}function Jg(e){return Object.assign({},Xg(),e)}function Qg(e,t){return t.reduce(function(r,o){return r[o]=e,r},{})}var R_=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Jg(typeof t!="number"?t:Qg(t,_o))};function P_(e){var t,r=e.state,o=e.name,s=e.options,a=r.elements.arrow,l=r.modifiersData.popperOffsets,c=Er(r.placement),h=sc(c),y=[It,rr].indexOf(c)>=0,v=y?"height":"width";if(!(!a||!l)){var g=R_(s.padding,r),d=oc(a),w=h==="y"?$t:It,x=h==="y"?tr:rr,f=r.rects.reference[v]+r.rects.reference[h]-l[h]-r.rects.popper[v],b=l[h]-r.rects.reference[h],p=Ao(a),S=p?h==="y"?p.clientHeight||0:p.clientWidth||0:0,E=f/2-b/2,R=g[w],O=S-d[v]-g[x],k=S/2-d[v]/2+E,B=uo(R,k,O),L=h;r.modifiersData[o]=(t={},t[L]=B,t.centerOffset=B-k,t)}}function C_(e){var t=e.state,r=e.options,o=r.element,s=o===void 0?"[data-popper-arrow]":o;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||Yg(t.elements.popper,s)&&(t.elements.arrow=s))}const k_={name:"arrow",enabled:!0,phase:"main",fn:P_,effect:C_,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function di(e){return e.split("-")[1]}var $_={top:"auto",right:"auto",bottom:"auto",left:"auto"};function I_(e,t){var r=e.x,o=e.y,s=t.devicePixelRatio||1;return{x:ci(r*s)/s||0,y:ci(o*s)/s||0}}function Ap(e){var t,r=e.popper,o=e.popperRect,s=e.placement,a=e.variation,l=e.offsets,c=e.position,h=e.gpuAcceleration,y=e.adaptive,v=e.roundOffsets,g=e.isFixed,d=l.x,w=d===void 0?0:d,x=l.y,f=x===void 0?0:x,b=typeof v=="function"?v({x:w,y:f}):{x:w,y:f};w=b.x,f=b.y;var p=l.hasOwnProperty("x"),S=l.hasOwnProperty("y"),E=It,R=$t,O=window;if(y){var k=Ao(r),B="clientHeight",L="clientWidth";if(k===Bt(r)&&(k=fn(r),Br(k).position!=="static"&&c==="absolute"&&(B="scrollHeight",L="scrollWidth")),k=k,s===$t||(s===It||s===rr)&&a===ho){R=tr;var M=g&&k===O&&O.visualViewport?O.visualViewport.height:k[B];f-=M-o.height,f*=h?1:-1}if(s===It||(s===$t||s===tr)&&a===ho){E=rr;var G=g&&k===O&&O.visualViewport?O.visualViewport.width:k[L];w-=G-o.width,w*=h?1:-1}}var N=Object.assign({position:c},y&&$_),I=v===!0?I_({x:w,y:f},Bt(r)):{x:w,y:f};if(w=I.x,f=I.y,h){var U;return Object.assign({},N,(U={},U[R]=S?"0":"",U[E]=p?"0":"",U.transform=(O.devicePixelRatio||1)<=1?"translate("+w+"px, "+f+"px)":"translate3d("+w+"px, "+f+"px, 0)",U))}return Object.assign({},N,(t={},t[R]=S?f+"px":"",t[E]=p?w+"px":"",t.transform="",t))}function L_(e){var t=e.state,r=e.options,o=r.gpuAcceleration,s=o===void 0?!0:o,a=r.adaptive,l=a===void 0?!0:a,c=r.roundOffsets,h=c===void 0?!0:c,y={placement:Er(t.placement),variation:di(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ap(Object.assign({},y,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:h})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ap(Object.assign({},y,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:h})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const M_={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:L_,data:{}};var Es={passive:!0};function F_(e){var t=e.state,r=e.instance,o=e.options,s=o.scroll,a=s===void 0?!0:s,l=o.resize,c=l===void 0?!0:l,h=Bt(t.elements.popper),y=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&y.forEach(function(v){v.addEventListener("scroll",r.update,Es)}),c&&h.addEventListener("resize",r.update,Es),function(){a&&y.forEach(function(v){v.removeEventListener("scroll",r.update,Es)}),c&&h.removeEventListener("resize",r.update,Es)}}const D_={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:F_,data:{}};var N_={left:"right",right:"left",bottom:"top",top:"bottom"};function qs(e){return e.replace(/left|right|bottom|top/g,function(t){return N_[t]})}var j_={start:"end",end:"start"};function Op(e){return e.replace(/start|end/g,function(t){return j_[t]})}function ac(e){var t=Bt(e),r=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:r,scrollTop:o}}function uc(e){return fi(fn(e)).left+ac(e).scrollLeft}function z_(e,t){var r=Bt(e),o=fn(e),s=r.visualViewport,a=o.clientWidth,l=o.clientHeight,c=0,h=0;if(s){a=s.width,l=s.height;var y=Vg();(y||!y&&t==="fixed")&&(c=s.offsetLeft,h=s.offsetTop)}return{width:a,height:l,x:c+uc(e),y:h}}function W_(e){var t,r=fn(e),o=ac(e),s=(t=e.ownerDocument)==null?void 0:t.body,a=Cn(r.scrollWidth,r.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),l=Cn(r.scrollHeight,r.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),c=-o.scrollLeft+uc(e),h=-o.scrollTop;return Br(s||r).direction==="rtl"&&(c+=Cn(r.clientWidth,s?s.clientWidth:0)-a),{width:a,height:l,x:c,y:h}}function lc(e){var t=Br(e),r=t.overflow,o=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+s+o)}function ev(e){return["html","body","#document"].indexOf(_r(e))>=0?e.ownerDocument.body:er(e)&&lc(e)?e:ev(fa(e))}function lo(e,t){var r;t===void 0&&(t=[]);var o=ev(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=Bt(o),l=s?[a].concat(a.visualViewport||[],lc(o)?o:[]):o,c=t.concat(l);return s?c:c.concat(lo(fa(l)))}function Dl(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function B_(e,t){var r=fi(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 Tp(e,t,r){return t===Gg?Dl(z_(e,r)):In(t)?B_(t,r):Dl(W_(fn(e)))}function U_(e){var t=lo(fa(e)),r=["absolute","fixed"].indexOf(Br(e).position)>=0,o=r&&er(e)?Ao(e):e;return In(o)?t.filter(function(s){return In(s)&&Yg(s,o)&&_r(s)!=="body"}):[]}function H_(e,t,r,o){var s=t==="clippingParents"?U_(e):[].concat(t),a=[].concat(s,[r]),l=a[0],c=a.reduce(function(h,y){var v=Tp(e,y,o);return h.top=Cn(v.top,h.top),h.right=Qs(v.right,h.right),h.bottom=Qs(v.bottom,h.bottom),h.left=Cn(v.left,h.left),h},Tp(e,l,o));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function tv(e){var t=e.reference,r=e.element,o=e.placement,s=o?Er(o):null,a=o?di(o):null,l=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,h;switch(s){case $t:h={x:l,y:t.y-r.height};break;case tr:h={x:l,y:t.y+t.height};break;case rr:h={x:t.x+t.width,y:c};break;case It:h={x:t.x-r.width,y:c};break;default:h={x:t.x,y:t.y}}var y=s?sc(s):null;if(y!=null){var v=y==="y"?"height":"width";switch(a){case li:h[y]=h[y]-(t[v]/2-r[v]/2);break;case ho:h[y]=h[y]+(t[v]/2-r[v]/2);break}}return h}function go(e,t){t===void 0&&(t={});var r=t,o=r.placement,s=o===void 0?e.placement:o,a=r.strategy,l=a===void 0?e.strategy:a,c=r.boundary,h=c===void 0?c_:c,y=r.rootBoundary,v=y===void 0?Gg:y,g=r.elementContext,d=g===void 0?$i:g,w=r.altBoundary,x=w===void 0?!1:w,f=r.padding,b=f===void 0?0:f,p=Jg(typeof b!="number"?b:Qg(b,_o)),S=d===$i?f_:$i,E=e.rects.popper,R=e.elements[x?S:d],O=H_(In(R)?R:R.contextElement||fn(e.elements.popper),h,v,l),k=fi(e.elements.reference),B=tv({reference:k,element:E,placement:s}),L=Dl(Object.assign({},E,B)),M=d===$i?L:k,G={top:O.top-M.top+p.top,bottom:M.bottom-O.bottom+p.bottom,left:O.left-M.left+p.left,right:M.right-O.right+p.right},N=e.modifiersData.offset;if(d===$i&&N){var I=N[s];Object.keys(G).forEach(function(U){var q=[rr,tr].indexOf(U)>=0?1:-1,C=[$t,tr].indexOf(U)>=0?"y":"x";G[U]+=I[C]*q})}return G}function q_(e,t){t===void 0&&(t={});var r=t,o=r.placement,s=r.boundary,a=r.rootBoundary,l=r.padding,c=r.flipVariations,h=r.allowedAutoPlacements,y=h===void 0?Kg:h,v=di(o),g=v?c?Ep:Ep.filter(function(x){return di(x)===v}):_o,d=g.filter(function(x){return y.indexOf(x)>=0});d.length===0&&(d=g);var w=d.reduce(function(x,f){return x[f]=go(e,{placement:f,boundary:s,rootBoundary:a,padding:l})[Er(f)],x},{});return Object.keys(w).sort(function(x,f){return w[x]-w[f]})}function Z_(e){if(Er(e)===nc)return[];var t=qs(e);return[Op(e),t,Op(t)]}function G_(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var s=r.mainAxis,a=s===void 0?!0:s,l=r.altAxis,c=l===void 0?!0:l,h=r.fallbackPlacements,y=r.padding,v=r.boundary,g=r.rootBoundary,d=r.altBoundary,w=r.flipVariations,x=w===void 0?!0:w,f=r.allowedAutoPlacements,b=t.options.placement,p=Er(b),S=p===b,E=h||(S||!x?[qs(b)]:Z_(b)),R=[b].concat(E).reduce(function(ne,ce){return ne.concat(Er(ce)===nc?q_(t,{placement:ce,boundary:v,rootBoundary:g,padding:y,flipVariations:x,allowedAutoPlacements:f}):ce)},[]),O=t.rects.reference,k=t.rects.popper,B=new Map,L=!0,M=R[0],G=0;G<R.length;G++){var N=R[G],I=Er(N),U=di(N)===li,q=[$t,tr].indexOf(I)>=0,C=q?"width":"height",J=go(t,{placement:N,boundary:v,rootBoundary:g,altBoundary:d,padding:y}),Y=q?U?rr:It:U?tr:$t;O[C]>k[C]&&(Y=qs(Y));var te=qs(Y),de=[];if(a&&de.push(J[I]<=0),c&&de.push(J[Y]<=0,J[te]<=0),de.every(function(ne){return ne})){M=N,L=!1;break}B.set(N,de)}if(L)for(var Z=x?3:1,Q=function(ce){var fe=R.find(function(ye){var ve=B.get(ye);if(ve)return ve.slice(0,ce).every(function(Ee){return Ee})});if(fe)return M=fe,"break"},se=Z;se>0;se--){var ue=Q(se);if(ue==="break")break}t.placement!==M&&(t.modifiersData[o]._skip=!0,t.placement=M,t.reset=!0)}}const K_={name:"flip",enabled:!0,phase:"main",fn:G_,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 Pp(e){return[$t,rr,tr,It].some(function(t){return e[t]>=0})}function V_(e){var t=e.state,r=e.name,o=t.rects.reference,s=t.rects.popper,a=t.modifiersData.preventOverflow,l=go(t,{elementContext:"reference"}),c=go(t,{altBoundary:!0}),h=Rp(l,o),y=Rp(c,s,a),v=Pp(h),g=Pp(y);t.modifiersData[r]={referenceClippingOffsets:h,popperEscapeOffsets:y,isReferenceHidden:v,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":v,"data-popper-escaped":g})}const Y_={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:V_};function X_(e,t,r){var o=Er(e),s=[It,$t].indexOf(o)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,l=a[0],c=a[1];return l=l||0,c=(c||0)*s,[It,rr].indexOf(o)>=0?{x:c,y:l}:{x:l,y:c}}function J_(e){var t=e.state,r=e.options,o=e.name,s=r.offset,a=s===void 0?[0,0]:s,l=Kg.reduce(function(v,g){return v[g]=X_(g,t.rects,a),v},{}),c=l[t.placement],h=c.x,y=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=h,t.modifiersData.popperOffsets.y+=y),t.modifiersData[o]=l}const Q_={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:J_};function eA(e){var t=e.state,r=e.name;t.modifiersData[r]=tv({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const tA={name:"popperOffsets",enabled:!0,phase:"read",fn:eA,data:{}};function rA(e){return e==="x"?"y":"x"}function nA(e){var t=e.state,r=e.options,o=e.name,s=r.mainAxis,a=s===void 0?!0:s,l=r.altAxis,c=l===void 0?!1:l,h=r.boundary,y=r.rootBoundary,v=r.altBoundary,g=r.padding,d=r.tether,w=d===void 0?!0:d,x=r.tetherOffset,f=x===void 0?0:x,b=go(t,{boundary:h,rootBoundary:y,padding:g,altBoundary:v}),p=Er(t.placement),S=di(t.placement),E=!S,R=sc(p),O=rA(R),k=t.modifiersData.popperOffsets,B=t.rects.reference,L=t.rects.popper,M=typeof f=="function"?f(Object.assign({},t.rects,{placement:t.placement})):f,G=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(k){if(a){var U,q=R==="y"?$t:It,C=R==="y"?tr:rr,J=R==="y"?"height":"width",Y=k[R],te=Y+b[q],de=Y-b[C],Z=w?-L[J]/2:0,Q=S===li?B[J]:L[J],se=S===li?-L[J]:-B[J],ue=t.elements.arrow,ne=w&&ue?oc(ue):{width:0,height:0},ce=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Xg(),fe=ce[q],ye=ce[C],ve=uo(0,B[J],ne[J]),Ee=E?B[J]/2-Z-ve-fe-G.mainAxis:Q-ve-fe-G.mainAxis,Oe=E?-B[J]/2+Z+ve+ye+G.mainAxis:se+ve+ye+G.mainAxis,qe=t.elements.arrow&&Ao(t.elements.arrow),ie=qe?R==="y"?qe.clientTop||0:qe.clientLeft||0:0,vt=(U=N==null?void 0:N[R])!=null?U:0,at=Y+Ee-vt-ie,dr=Y+Oe-vt,$o=uo(w?Qs(te,at):te,Y,w?Cn(de,dr):de);k[R]=$o,I[R]=$o-Y}if(c){var Ut,Io=R==="x"?$t:It,Ta=R==="x"?tr:rr,Lt=k[O],mt=O==="y"?"height":"width",Ur=Lt+b[Io],pn=Lt-b[Ta],vi=[$t,It].indexOf(p)!==-1,Hr=(Ut=N==null?void 0:N[O])!=null?Ut:0,Lo=vi?Ur:Lt-B[mt]-L[mt]-Hr+G.altAxis,qr=vi?Lt+B[mt]+L[mt]-Hr-G.altAxis:pn,Tr=w&&vi?T_(Lo,Lt,qr):uo(w?Lo:Ur,Lt,w?qr:pn);k[O]=Tr,I[O]=Tr-Lt}t.modifiersData[o]=I}}const iA={name:"preventOverflow",enabled:!0,phase:"main",fn:nA,requiresIfExists:["offset"]};function oA(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function sA(e){return e===Bt(e)||!er(e)?ac(e):oA(e)}function aA(e){var t=e.getBoundingClientRect(),r=ci(t.width)/e.offsetWidth||1,o=ci(t.height)/e.offsetHeight||1;return r!==1||o!==1}function uA(e,t,r){r===void 0&&(r=!1);var o=er(t),s=er(t)&&aA(t),a=fn(t),l=fi(e,s,r),c={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(o||!o&&!r)&&((_r(t)!=="body"||lc(a))&&(c=sA(t)),er(t)?(h=fi(t,!0),h.x+=t.clientLeft,h.y+=t.clientTop):a&&(h.x=uc(a))),{x:l.left+c.scrollLeft-h.x,y:l.top+c.scrollTop-h.y,width:l.width,height:l.height}}function lA(e){var t=new Map,r=new Set,o=[];e.forEach(function(a){t.set(a.name,a)});function s(a){r.add(a.name);var l=[].concat(a.requires||[],a.requiresIfExists||[]);l.forEach(function(c){if(!r.has(c)){var h=t.get(c);h&&s(h)}}),o.push(a)}return e.forEach(function(a){r.has(a.name)||s(a)}),o}function cA(e){var t=lA(e);return x_.reduce(function(r,o){return r.concat(t.filter(function(s){return s.phase===o}))},[])}function fA(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function dA(e){var t=e.reduce(function(r,o){var s=r[o.name];return r[o.name]=s?Object.assign({},s,o,{options:Object.assign({},s.options,o.options),data:Object.assign({},s.data,o.data)}):o,r},{});return Object.keys(t).map(function(r){return t[r]})}var Cp={placement:"bottom",modifiers:[],strategy:"absolute"};function kp(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function pA(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,o=r===void 0?[]:r,s=t.defaultOptions,a=s===void 0?Cp:s;return function(c,h,y){y===void 0&&(y=a);var v={placement:"bottom",orderedModifiers:[],options:Object.assign({},Cp,a),modifiersData:{},elements:{reference:c,popper:h},attributes:{},styles:{}},g=[],d=!1,w={state:v,setOptions:function(p){var S=typeof p=="function"?p(v.options):p;f(),v.options=Object.assign({},a,v.options,S),v.scrollParents={reference:In(c)?lo(c):c.contextElement?lo(c.contextElement):[],popper:lo(h)};var E=cA(dA([].concat(o,v.options.modifiers)));return v.orderedModifiers=E.filter(function(R){return R.enabled}),x(),w.update()},forceUpdate:function(){if(!d){var p=v.elements,S=p.reference,E=p.popper;if(kp(S,E)){v.rects={reference:uA(S,Ao(E),v.options.strategy==="fixed"),popper:oc(E)},v.reset=!1,v.placement=v.options.placement,v.orderedModifiers.forEach(function(G){return v.modifiersData[G.name]=Object.assign({},G.data)});for(var R=0;R<v.orderedModifiers.length;R++){if(v.reset===!0){v.reset=!1,R=-1;continue}var O=v.orderedModifiers[R],k=O.fn,B=O.options,L=B===void 0?{}:B,M=O.name;typeof k=="function"&&(v=k({state:v,options:L,name:M,instance:w})||v)}}}},update:fA(function(){return new Promise(function(b){w.forceUpdate(),b(v)})}),destroy:function(){f(),d=!0}};if(!kp(c,h))return w;w.setOptions(y).then(function(b){!d&&y.onFirstUpdate&&y.onFirstUpdate(b)});function x(){v.orderedModifiers.forEach(function(b){var p=b.name,S=b.options,E=S===void 0?{}:S,R=b.effect;if(typeof R=="function"){var O=R({state:v,name:p,instance:w,options:E}),k=function(){};g.push(O||k)}})}function f(){g.forEach(function(b){return b()}),g=[]}return w}}var hA=[D_,tA,M_,__,Q_,K_,iA,k_,Y_],gA=pA({defaultModifiers:hA}),_s=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yu,$p;function vA(){if($p)return Yu;$p=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",o=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function s(a,l){if(a===l)return!0;if(a&&l&&typeof a=="object"&&typeof l=="object"){if(a.constructor!==l.constructor)return!1;var c,h,y;if(Array.isArray(a)){if(c=a.length,c!=l.length)return!1;for(h=c;h--!==0;)if(!s(a[h],l[h]))return!1;return!0}var v;if(t&&a instanceof Map&&l instanceof Map){if(a.size!==l.size)return!1;for(v=a.entries();!(h=v.next()).done;)if(!l.has(h.value[0]))return!1;for(v=a.entries();!(h=v.next()).done;)if(!s(h.value[1],l.get(h.value[0])))return!1;return!0}if(r&&a instanceof Set&&l instanceof Set){if(a.size!==l.size)return!1;for(v=a.entries();!(h=v.next()).done;)if(!l.has(h.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(l)){if(c=a.length,c!=l.length)return!1;for(h=c;h--!==0;)if(a[h]!==l[h])return!1;return!0}if(a.constructor===RegExp)return a.source===l.source&&a.flags===l.flags;if(a.valueOf!==Object.prototype.valueOf&&typeof a.valueOf=="function"&&typeof l.valueOf=="function")return a.valueOf()===l.valueOf();if(a.toString!==Object.prototype.toString&&typeof a.toString=="function"&&typeof l.toString=="function")return a.toString()===l.toString();if(y=Object.keys(a),c=y.length,c!==Object.keys(l).length)return!1;for(h=c;h--!==0;)if(!Object.prototype.hasOwnProperty.call(l,y[h]))return!1;if(e&&a instanceof Element)return!1;for(h=c;h--!==0;)if(!((y[h]==="_owner"||y[h]==="__v"||y[h]==="__o")&&a.$$typeof)&&!s(a[y[h]],l[y[h]]))return!1;return!0}return a!==a&&l!==l}return Yu=function(l,c){try{return s(l,c)}catch(h){if((h.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw h}},Yu}var mA=vA();const yA=rv(mA);var wA=[],nv=function(t,r,o){o===void 0&&(o={});var s=D.useRef(null),a={onFirstUpdate:o.onFirstUpdate,placement:o.placement||"bottom",strategy:o.strategy||"absolute",modifiers:o.modifiers||wA},l=D.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=l[0],h=l[1],y=D.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(w){var x=w.state,f=Object.keys(x.elements);l_.flushSync(function(){h({styles:xp(f.map(function(b){return[b,x.styles[b]||{}]})),attributes:xp(f.map(function(b){return[b,x.attributes[b]]}))})})},requires:["computeStyles"]}},[]),v=D.useMemo(function(){var d={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[y,{name:"applyStyles",enabled:!1}])};return yA(s.current,d)?s.current||d:(s.current=d,d)},[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,y]),g=D.useRef();return Sp(function(){g.current&&g.current.setOptions(v)},[v]),Sp(function(){if(!(t==null||r==null)){var d=o.createPopper||gA,w=d(t,r,v);return g.current=w,function(){w.destroy(),g.current=null}}},[t,r,o.createPopper]),{state:g.current?g.current.state:null,styles:c.styles,attributes:c.attributes,update:g.current?g.current.update:null,forceUpdate:g.current?g.current.forceUpdate:null}};const iv=e=>z.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),ov=W.forwardRef(({children:e,style:t,attributes:r},o)=>z.jsx("div",{style:{...t,zIndex:2e3},...r,ref:o,className:"w-60 rounded border rounded border border-grey-50 bg-grey-900 shadow-2xl","data-cy":"dialogBody",children:e})),bA=({referenceElement:e,placement:t,isOpen:r,children:o,onClose:s})=>{const[a,l]=W.useState(null),{styles:c,attributes:h}=nv(e,a,{placement:t||"bottom-start"}),y=W.useCallback(()=>{s&&s()},[s]);return r?z.jsxs(Zg,{children:[z.jsx(iv,{onClick:()=>y()}),z.jsx(ov,{ref:l,style:c.popper,attributes:h.popper,children:o})]}):null};var Xu={exports:{}};/*!
|
|
1
|
+
"use strict";var fO=Object.defineProperty;var ah=e=>{throw TypeError(e)};var dO=(e,t,r)=>t in e?fO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var me=(e,t,r)=>dO(e,typeof t!="symbol"?t+"":t,r),gl=(e,t,r)=>t.has(e)||ah("Cannot "+r);var re=(e,t,r)=>(gl(e,t,"read from private field"),r?r.call(e):t.get(e)),xt=(e,t,r)=>t.has(e)?ah("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Xe=(e,t,r,i)=>(gl(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),$e=(e,t,r)=>(gl(e,t,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("react/jsx-runtime"),W=require("react"),Fo=require("react-dom"),et=require("@ws-ui/icons"),ac=require("@emotion/react"),pO=require("re-resizable");function zv(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 $=zv(W),hO=zv(Fo),Wv=({children:e})=>Fo.createPortal(e,document.querySelector("body"));var sh=function(t){return t.reduce(function(r,i){var a=i[0],s=i[1];return r[a]=s,r},{})},uh=typeof window<"u"&&window.document&&window.document.createElement?$.useLayoutEffect:$.useEffect,It="top",or="bottom",ar="right",Lt="left",Ic="auto",Do=[It,or,ar,Lt],mi="start",Oo="end",gO="clippingParents",Bv="viewport",Bi="popper",vO="reference",lh=Do.reduce(function(e,t){return e.concat([t+"-"+mi,t+"-"+Oo])},[]),Uv=[].concat(Do,[Ic]).reduce(function(e,t){return e.concat([t,t+"-"+mi,t+"-"+Oo])},[]),mO="beforeRead",yO="read",wO="afterRead",bO="beforeMain",xO="main",SO="afterMain",EO="beforeWrite",_O="write",OO="afterWrite",AO=[mO,yO,wO,bO,xO,SO,EO,_O,OO];function Pr(e){return e?(e.nodeName||"").toLowerCase():null}function Ht(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Wn(e){var t=Ht(e).Element;return e instanceof t||e instanceof Element}function ir(e){var t=Ht(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Lc(e){if(typeof ShadowRoot>"u")return!1;var t=Ht(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function TO(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var i=t.styles[r]||{},a=t.attributes[r]||{},s=t.elements[r];!ir(s)||!Pr(s)||(Object.assign(s.style,i),Object.keys(a).forEach(function(l){var c=a[l];c===!1?s.removeAttribute(l):s.setAttribute(l,c===!0?"":c)}))})}function RO(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(i){var a=t.elements[i],s=t.attributes[i]||{},l=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:r[i]),c=l.reduce(function(d,m){return d[m]="",d},{});!ir(a)||!Pr(a)||(Object.assign(a.style,c),Object.keys(s).forEach(function(d){a.removeAttribute(d)}))})}}const PO={name:"applyStyles",enabled:!0,phase:"write",fn:TO,effect:RO,requires:["computeStyles"]};function Tr(e){return e.split("-")[0]}var jn=Math.max,hs=Math.min,yi=Math.round;function sc(){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 Hv(){return!/^((?!chrome|android).)*safari/i.test(sc())}function wi(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var i=e.getBoundingClientRect(),a=1,s=1;t&&ir(e)&&(a=e.offsetWidth>0&&yi(i.width)/e.offsetWidth||1,s=e.offsetHeight>0&&yi(i.height)/e.offsetHeight||1);var l=Wn(e)?Ht(e):window,c=l.visualViewport,d=!Hv()&&r,m=(i.left+(d&&c?c.offsetLeft:0))/a,v=(i.top+(d&&c?c.offsetTop:0))/s,g=i.width/a,p=i.height/s;return{width:g,height:p,top:v,right:m+g,bottom:v+p,left:m,x:m,y:v}}function Mc(e){var t=wi(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 qv(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Lc(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Gr(e){return Ht(e).getComputedStyle(e)}function CO(e){return["table","td","th"].indexOf(Pr(e))>=0}function vn(e){return((Wn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ps(e){return Pr(e)==="html"?e:e.assignedSlot||e.parentNode||(Lc(e)?e.host:null)||vn(e)}function ch(e){return!ir(e)||Gr(e).position==="fixed"?null:e.offsetParent}function kO(e){var t=/firefox/i.test(sc()),r=/Trident/i.test(sc());if(r&&ir(e)){var i=Gr(e);if(i.position==="fixed")return null}var a=Ps(e);for(Lc(a)&&(a=a.host);ir(a)&&["html","body"].indexOf(Pr(a))<0;){var s=Gr(a);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return a;a=a.parentNode}return null}function No(e){for(var t=Ht(e),r=ch(e);r&&CO(r)&&Gr(r).position==="static";)r=ch(r);return r&&(Pr(r)==="html"||Pr(r)==="body"&&Gr(r).position==="static")?t:r||kO(e)||t}function Fc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function bo(e,t,r){return jn(e,hs(t,r))}function $O(e,t,r){var i=bo(e,t,r);return i>r?r:i}function Zv(){return{top:0,right:0,bottom:0,left:0}}function Gv(e){return Object.assign({},Zv(),e)}function Kv(e,t){return t.reduce(function(r,i){return r[i]=e,r},{})}var IO=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Gv(typeof t!="number"?t:Kv(t,Do))};function LO(e){var t,r=e.state,i=e.name,a=e.options,s=r.elements.arrow,l=r.modifiersData.popperOffsets,c=Tr(r.placement),d=Fc(c),m=[Lt,ar].indexOf(c)>=0,v=m?"height":"width";if(!(!s||!l)){var g=IO(a.padding,r),p=Mc(s),w=d==="y"?It:Lt,x=d==="y"?or:ar,f=r.rects.reference[v]+r.rects.reference[d]-l[d]-r.rects.popper[v],b=l[d]-r.rects.reference[d],h=No(s),S=h?d==="y"?h.clientHeight||0:h.clientWidth||0:0,E=f/2-b/2,R=g[w],O=S-p[v]-g[x],k=S/2-p[v]/2+E,B=bo(R,k,O),M=d;r.modifiersData[i]=(t={},t[M]=B,t.centerOffset=B-k,t)}}function MO(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)||qv(t.elements.popper,a)&&(t.elements.arrow=a))}const FO={name:"arrow",enabled:!0,phase:"main",fn:LO,effect:MO,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function bi(e){return e.split("-")[1]}var DO={top:"auto",right:"auto",bottom:"auto",left:"auto"};function NO(e,t){var r=e.x,i=e.y,a=t.devicePixelRatio||1;return{x:yi(r*a)/a||0,y:yi(i*a)/a||0}}function fh(e){var t,r=e.popper,i=e.popperRect,a=e.placement,s=e.variation,l=e.offsets,c=e.position,d=e.gpuAcceleration,m=e.adaptive,v=e.roundOffsets,g=e.isFixed,p=l.x,w=p===void 0?0:p,x=l.y,f=x===void 0?0:x,b=typeof v=="function"?v({x:w,y:f}):{x:w,y:f};w=b.x,f=b.y;var h=l.hasOwnProperty("x"),S=l.hasOwnProperty("y"),E=Lt,R=It,O=window;if(m){var k=No(r),B="clientHeight",M="clientWidth";if(k===Ht(r)&&(k=vn(r),Gr(k).position!=="static"&&c==="absolute"&&(B="scrollHeight",M="scrollWidth")),k=k,a===It||(a===Lt||a===ar)&&s===Oo){R=or;var F=g&&k===O&&O.visualViewport?O.visualViewport.height:k[B];f-=F-i.height,f*=d?1:-1}if(a===Lt||(a===It||a===or)&&s===Oo){E=ar;var G=g&&k===O&&O.visualViewport?O.visualViewport.width:k[M];w-=G-i.width,w*=d?1:-1}}var N=Object.assign({position:c},m&&DO),L=v===!0?NO({x:w,y:f},Ht(r)):{x:w,y:f};if(w=L.x,f=L.y,d){var U;return Object.assign({},N,(U={},U[R]=S?"0":"",U[E]=h?"0":"",U.transform=(O.devicePixelRatio||1)<=1?"translate("+w+"px, "+f+"px)":"translate3d("+w+"px, "+f+"px, 0)",U))}return Object.assign({},N,(t={},t[R]=S?f+"px":"",t[E]=h?w+"px":"",t.transform="",t))}function jO(e){var t=e.state,r=e.options,i=r.gpuAcceleration,a=i===void 0?!0:i,s=r.adaptive,l=s===void 0?!0:s,c=r.roundOffsets,d=c===void 0?!0:c,m={placement:Tr(t.placement),variation:bi(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,fh(Object.assign({},m,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,fh(Object.assign({},m,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const zO={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:jO,data:{}};var Fa={passive:!0};function WO(e){var t=e.state,r=e.instance,i=e.options,a=i.scroll,s=a===void 0?!0:a,l=i.resize,c=l===void 0?!0:l,d=Ht(t.elements.popper),m=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&m.forEach(function(v){v.addEventListener("scroll",r.update,Fa)}),c&&d.addEventListener("resize",r.update,Fa),function(){s&&m.forEach(function(v){v.removeEventListener("scroll",r.update,Fa)}),c&&d.removeEventListener("resize",r.update,Fa)}}const BO={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:WO,data:{}};var UO={left:"right",right:"left",bottom:"top",top:"bottom"};function is(e){return e.replace(/left|right|bottom|top/g,function(t){return UO[t]})}var HO={start:"end",end:"start"};function dh(e){return e.replace(/start|end/g,function(t){return HO[t]})}function Dc(e){var t=Ht(e),r=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function Nc(e){return wi(vn(e)).left+Dc(e).scrollLeft}function qO(e,t){var r=Ht(e),i=vn(e),a=r.visualViewport,s=i.clientWidth,l=i.clientHeight,c=0,d=0;if(a){s=a.width,l=a.height;var m=Hv();(m||!m&&t==="fixed")&&(c=a.offsetLeft,d=a.offsetTop)}return{width:s,height:l,x:c+Nc(e),y:d}}function ZO(e){var t,r=vn(e),i=Dc(e),a=(t=e.ownerDocument)==null?void 0:t.body,s=jn(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),l=jn(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),c=-i.scrollLeft+Nc(e),d=-i.scrollTop;return Gr(a||r).direction==="rtl"&&(c+=jn(r.clientWidth,a?a.clientWidth:0)-s),{width:s,height:l,x:c,y:d}}function jc(e){var t=Gr(e),r=t.overflow,i=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+i)}function Vv(e){return["html","body","#document"].indexOf(Pr(e))>=0?e.ownerDocument.body:ir(e)&&jc(e)?e:Vv(Ps(e))}function xo(e,t){var r;t===void 0&&(t=[]);var i=Vv(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),s=Ht(i),l=a?[s].concat(s.visualViewport||[],jc(i)?i:[]):i,c=t.concat(l);return a?c:c.concat(xo(Ps(l)))}function uc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function GO(e,t){var r=wi(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 ph(e,t,r){return t===Bv?uc(qO(e,r)):Wn(t)?GO(t,r):uc(ZO(vn(e)))}function KO(e){var t=xo(Ps(e)),r=["absolute","fixed"].indexOf(Gr(e).position)>=0,i=r&&ir(e)?No(e):e;return Wn(i)?t.filter(function(a){return Wn(a)&&qv(a,i)&&Pr(a)!=="body"}):[]}function VO(e,t,r,i){var a=t==="clippingParents"?KO(e):[].concat(t),s=[].concat(a,[r]),l=s[0],c=s.reduce(function(d,m){var v=ph(e,m,i);return d.top=jn(v.top,d.top),d.right=hs(v.right,d.right),d.bottom=hs(v.bottom,d.bottom),d.left=jn(v.left,d.left),d},ph(e,l,i));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Xv(e){var t=e.reference,r=e.element,i=e.placement,a=i?Tr(i):null,s=i?bi(i):null,l=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,d;switch(a){case It:d={x:l,y:t.y-r.height};break;case or:d={x:l,y:t.y+t.height};break;case ar:d={x:t.x+t.width,y:c};break;case Lt:d={x:t.x-r.width,y:c};break;default:d={x:t.x,y:t.y}}var m=a?Fc(a):null;if(m!=null){var v=m==="y"?"height":"width";switch(s){case mi:d[m]=d[m]-(t[v]/2-r[v]/2);break;case Oo:d[m]=d[m]+(t[v]/2-r[v]/2);break}}return d}function Ao(e,t){t===void 0&&(t={});var r=t,i=r.placement,a=i===void 0?e.placement:i,s=r.strategy,l=s===void 0?e.strategy:s,c=r.boundary,d=c===void 0?gO:c,m=r.rootBoundary,v=m===void 0?Bv:m,g=r.elementContext,p=g===void 0?Bi:g,w=r.altBoundary,x=w===void 0?!1:w,f=r.padding,b=f===void 0?0:f,h=Gv(typeof b!="number"?b:Kv(b,Do)),S=p===Bi?vO:Bi,E=e.rects.popper,R=e.elements[x?S:p],O=VO(Wn(R)?R:R.contextElement||vn(e.elements.popper),d,v,l),k=wi(e.elements.reference),B=Xv({reference:k,element:E,placement:a}),M=uc(Object.assign({},E,B)),F=p===Bi?M:k,G={top:O.top-F.top+h.top,bottom:F.bottom-O.bottom+h.bottom,left:O.left-F.left+h.left,right:F.right-O.right+h.right},N=e.modifiersData.offset;if(p===Bi&&N){var L=N[a];Object.keys(G).forEach(function(U){var q=[ar,or].indexOf(U)>=0?1:-1,C=[It,or].indexOf(U)>=0?"y":"x";G[U]+=L[C]*q})}return G}function XO(e,t){t===void 0&&(t={});var r=t,i=r.placement,a=r.boundary,s=r.rootBoundary,l=r.padding,c=r.flipVariations,d=r.allowedAutoPlacements,m=d===void 0?Uv:d,v=bi(i),g=v?c?lh:lh.filter(function(x){return bi(x)===v}):Do,p=g.filter(function(x){return m.indexOf(x)>=0});p.length===0&&(p=g);var w=p.reduce(function(x,f){return x[f]=Ao(e,{placement:f,boundary:a,rootBoundary:s,padding:l})[Tr(f)],x},{});return Object.keys(w).sort(function(x,f){return w[x]-w[f]})}function YO(e){if(Tr(e)===Ic)return[];var t=is(e);return[dh(e),t,dh(t)]}function JO(e){var t=e.state,r=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var a=r.mainAxis,s=a===void 0?!0:a,l=r.altAxis,c=l===void 0?!0:l,d=r.fallbackPlacements,m=r.padding,v=r.boundary,g=r.rootBoundary,p=r.altBoundary,w=r.flipVariations,x=w===void 0?!0:w,f=r.allowedAutoPlacements,b=t.options.placement,h=Tr(b),S=h===b,E=d||(S||!x?[is(b)]:YO(b)),R=[b].concat(E).reduce(function(ne,ce){return ne.concat(Tr(ce)===Ic?XO(t,{placement:ce,boundary:v,rootBoundary:g,padding:m,flipVariations:x,allowedAutoPlacements:f}):ce)},[]),O=t.rects.reference,k=t.rects.popper,B=new Map,M=!0,F=R[0],G=0;G<R.length;G++){var N=R[G],L=Tr(N),U=bi(N)===mi,q=[It,or].indexOf(L)>=0,C=q?"width":"height",J=Ao(t,{placement:N,boundary:v,rootBoundary:g,altBoundary:p,padding:m}),X=q?U?ar:Lt:U?or:It;O[C]>k[C]&&(X=is(X));var te=is(X),de=[];if(s&&de.push(J[L]<=0),c&&de.push(J[X]<=0,J[te]<=0),de.every(function(ne){return ne})){F=N,M=!1;break}B.set(N,de)}if(M)for(var Z=x?3:1,Q=function(ce){var fe=R.find(function(ye){var ve=B.get(ye);if(ve)return ve.slice(0,ce).every(function(Ee){return Ee})});if(fe)return F=fe,"break"},ae=Z;ae>0;ae--){var ue=Q(ae);if(ue==="break")break}t.placement!==F&&(t.modifiersData[i]._skip=!0,t.placement=F,t.reset=!0)}}const QO={name:"flip",enabled:!0,phase:"main",fn:JO,requiresIfExists:["offset"],data:{_skip:!1}};function hh(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 gh(e){return[It,ar,or,Lt].some(function(t){return e[t]>=0})}function eA(e){var t=e.state,r=e.name,i=t.rects.reference,a=t.rects.popper,s=t.modifiersData.preventOverflow,l=Ao(t,{elementContext:"reference"}),c=Ao(t,{altBoundary:!0}),d=hh(l,i),m=hh(c,a,s),v=gh(d),g=gh(m);t.modifiersData[r]={referenceClippingOffsets:d,popperEscapeOffsets:m,isReferenceHidden:v,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":v,"data-popper-escaped":g})}const tA={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:eA};function rA(e,t,r){var i=Tr(e),a=[Lt,It].indexOf(i)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,l=s[0],c=s[1];return l=l||0,c=(c||0)*a,[Lt,ar].indexOf(i)>=0?{x:c,y:l}:{x:l,y:c}}function nA(e){var t=e.state,r=e.options,i=e.name,a=r.offset,s=a===void 0?[0,0]:a,l=Uv.reduce(function(v,g){return v[g]=rA(g,t.rects,s),v},{}),c=l[t.placement],d=c.x,m=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=m),t.modifiersData[i]=l}const iA={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:nA};function oA(e){var t=e.state,r=e.name;t.modifiersData[r]=Xv({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const aA={name:"popperOffsets",enabled:!0,phase:"read",fn:oA,data:{}};function sA(e){return e==="x"?"y":"x"}function uA(e){var t=e.state,r=e.options,i=e.name,a=r.mainAxis,s=a===void 0?!0:a,l=r.altAxis,c=l===void 0?!1:l,d=r.boundary,m=r.rootBoundary,v=r.altBoundary,g=r.padding,p=r.tether,w=p===void 0?!0:p,x=r.tetherOffset,f=x===void 0?0:x,b=Ao(t,{boundary:d,rootBoundary:m,padding:g,altBoundary:v}),h=Tr(t.placement),S=bi(t.placement),E=!S,R=Fc(h),O=sA(R),k=t.modifiersData.popperOffsets,B=t.rects.reference,M=t.rects.popper,F=typeof f=="function"?f(Object.assign({},t.rects,{placement:t.placement})):f,G=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(k){if(s){var U,q=R==="y"?It:Lt,C=R==="y"?or:ar,J=R==="y"?"height":"width",X=k[R],te=X+b[q],de=X-b[C],Z=w?-M[J]/2:0,Q=S===mi?B[J]:M[J],ae=S===mi?-M[J]:-B[J],ue=t.elements.arrow,ne=w&&ue?Mc(ue):{width:0,height:0},ce=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Zv(),fe=ce[q],ye=ce[C],ve=bo(0,B[J],ne[J]),Ee=E?B[J]/2-Z-ve-fe-G.mainAxis:Q-ve-fe-G.mainAxis,Ae=E?-B[J]/2+Z+ve+ye+G.mainAxis:ae+ve+ye+G.mainAxis,qe=t.elements.arrow&&No(t.elements.arrow),ie=qe?R==="y"?qe.clientTop||0:qe.clientLeft||0:0,mt=(U=N==null?void 0:N[R])!=null?U:0,ut=X+Ee-mt-ie,vr=X+Ae-mt,qo=bo(w?hs(te,ut):te,X,w?jn(de,vr):de);k[R]=qo,L[R]=qo-X}if(c){var Gt,Zo=R==="x"?It:Lt,Gs=R==="x"?or:ar,Mt=k[O],yt=O==="y"?"height":"width",Kr=Mt+b[Zo],bn=Mt-b[Gs],Ai=[It,Lt].indexOf(h)!==-1,Vr=(Gt=N==null?void 0:N[O])!=null?Gt:0,Go=Ai?Kr:Mt-B[yt]-M[yt]-Vr+G.altAxis,Xr=Ai?Mt+B[yt]+M[yt]-Vr-G.altAxis:bn,$r=w&&Ai?$O(Go,Mt,Xr):bo(w?Go:Kr,Mt,w?Xr:bn);k[O]=$r,L[O]=$r-Mt}t.modifiersData[i]=L}}const lA={name:"preventOverflow",enabled:!0,phase:"main",fn:uA,requiresIfExists:["offset"]};function cA(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function fA(e){return e===Ht(e)||!ir(e)?Dc(e):cA(e)}function dA(e){var t=e.getBoundingClientRect(),r=yi(t.width)/e.offsetWidth||1,i=yi(t.height)/e.offsetHeight||1;return r!==1||i!==1}function pA(e,t,r){r===void 0&&(r=!1);var i=ir(t),a=ir(t)&&dA(t),s=vn(t),l=wi(e,a,r),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(i||!i&&!r)&&((Pr(t)!=="body"||jc(s))&&(c=fA(t)),ir(t)?(d=wi(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):s&&(d.x=Nc(s))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function hA(e){var t=new Map,r=new Set,i=[];e.forEach(function(s){t.set(s.name,s)});function a(s){r.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(c){if(!r.has(c)){var d=t.get(c);d&&a(d)}}),i.push(s)}return e.forEach(function(s){r.has(s.name)||a(s)}),i}function gA(e){var t=hA(e);return AO.reduce(function(r,i){return r.concat(t.filter(function(a){return a.phase===i}))},[])}function vA(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function mA(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 vh={placement:"bottom",modifiers:[],strategy:"absolute"};function mh(){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 yA(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,i=r===void 0?[]:r,a=t.defaultOptions,s=a===void 0?vh:a;return function(c,d,m){m===void 0&&(m=s);var v={placement:"bottom",orderedModifiers:[],options:Object.assign({},vh,s),modifiersData:{},elements:{reference:c,popper:d},attributes:{},styles:{}},g=[],p=!1,w={state:v,setOptions:function(h){var S=typeof h=="function"?h(v.options):h;f(),v.options=Object.assign({},s,v.options,S),v.scrollParents={reference:Wn(c)?xo(c):c.contextElement?xo(c.contextElement):[],popper:xo(d)};var E=gA(mA([].concat(i,v.options.modifiers)));return v.orderedModifiers=E.filter(function(R){return R.enabled}),x(),w.update()},forceUpdate:function(){if(!p){var h=v.elements,S=h.reference,E=h.popper;if(mh(S,E)){v.rects={reference:pA(S,No(E),v.options.strategy==="fixed"),popper:Mc(E)},v.reset=!1,v.placement=v.options.placement,v.orderedModifiers.forEach(function(G){return v.modifiersData[G.name]=Object.assign({},G.data)});for(var R=0;R<v.orderedModifiers.length;R++){if(v.reset===!0){v.reset=!1,R=-1;continue}var O=v.orderedModifiers[R],k=O.fn,B=O.options,M=B===void 0?{}:B,F=O.name;typeof k=="function"&&(v=k({state:v,options:M,name:F,instance:w})||v)}}}},update:vA(function(){return new Promise(function(b){w.forceUpdate(),b(v)})}),destroy:function(){f(),p=!0}};if(!mh(c,d))return w;w.setOptions(m).then(function(b){!p&&m.onFirstUpdate&&m.onFirstUpdate(b)});function x(){v.orderedModifiers.forEach(function(b){var h=b.name,S=b.options,E=S===void 0?{}:S,R=b.effect;if(typeof R=="function"){var O=R({state:v,name:h,instance:w,options:E}),k=function(){};g.push(O||k)}})}function f(){g.forEach(function(b){return b()}),g=[]}return w}}var wA=[BO,aA,zO,PO,iA,QO,lA,FO,tA],bA=yA({defaultModifiers:wA}),Da=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Yv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vl,yh;function xA(){if(yh)return vl;yh=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",i=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function a(s,l){if(s===l)return!0;if(s&&l&&typeof s=="object"&&typeof l=="object"){if(s.constructor!==l.constructor)return!1;var c,d,m;if(Array.isArray(s)){if(c=s.length,c!=l.length)return!1;for(d=c;d--!==0;)if(!a(s[d],l[d]))return!1;return!0}var v;if(t&&s instanceof Map&&l instanceof Map){if(s.size!==l.size)return!1;for(v=s.entries();!(d=v.next()).done;)if(!l.has(d.value[0]))return!1;for(v=s.entries();!(d=v.next()).done;)if(!a(d.value[1],l.get(d.value[0])))return!1;return!0}if(r&&s instanceof Set&&l instanceof Set){if(s.size!==l.size)return!1;for(v=s.entries();!(d=v.next()).done;)if(!l.has(d.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(s)&&ArrayBuffer.isView(l)){if(c=s.length,c!=l.length)return!1;for(d=c;d--!==0;)if(s[d]!==l[d])return!1;return!0}if(s.constructor===RegExp)return s.source===l.source&&s.flags===l.flags;if(s.valueOf!==Object.prototype.valueOf&&typeof s.valueOf=="function"&&typeof l.valueOf=="function")return s.valueOf()===l.valueOf();if(s.toString!==Object.prototype.toString&&typeof s.toString=="function"&&typeof l.toString=="function")return s.toString()===l.toString();if(m=Object.keys(s),c=m.length,c!==Object.keys(l).length)return!1;for(d=c;d--!==0;)if(!Object.prototype.hasOwnProperty.call(l,m[d]))return!1;if(e&&s instanceof Element)return!1;for(d=c;d--!==0;)if(!((m[d]==="_owner"||m[d]==="__v"||m[d]==="__o")&&s.$$typeof)&&!a(s[m[d]],l[m[d]]))return!1;return!0}return s!==s&&l!==l}return vl=function(l,c){try{return a(l,c)}catch(d){if((d.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw d}},vl}var SA=xA();const EA=Yv(SA);var _A=[],Jv=function(t,r,i){i===void 0&&(i={});var a=$.useRef(null),s={onFirstUpdate:i.onFirstUpdate,placement:i.placement||"bottom",strategy:i.strategy||"absolute",modifiers:i.modifiers||_A},l=$.useState({styles:{popper:{position:s.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=l[0],d=l[1],m=$.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(w){var x=w.state,f=Object.keys(x.elements);hO.flushSync(function(){d({styles:sh(f.map(function(b){return[b,x.styles[b]||{}]})),attributes:sh(f.map(function(b){return[b,x.attributes[b]]}))})})},requires:["computeStyles"]}},[]),v=$.useMemo(function(){var p={onFirstUpdate:s.onFirstUpdate,placement:s.placement,strategy:s.strategy,modifiers:[].concat(s.modifiers,[m,{name:"applyStyles",enabled:!1}])};return EA(a.current,p)?a.current||p:(a.current=p,p)},[s.onFirstUpdate,s.placement,s.strategy,s.modifiers,m]),g=$.useRef();return uh(function(){g.current&&g.current.setOptions(v)},[v]),uh(function(){if(!(t==null||r==null)){var p=i.createPopper||bA,w=p(t,r,v);return g.current=w,function(){w.destroy(),g.current=null}}},[t,r,i.createPopper]),{state:g.current?g.current.state:null,styles:c.styles,attributes:c.attributes,update:g.current?g.current.update:null,forceUpdate:g.current?g.current.forceUpdate:null}};const Qv=e=>j.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),em=W.forwardRef(({children:e,style:t,attributes:r},i)=>j.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})),OA=({referenceElement:e,placement:t,isOpen:r,children:i,onClose:a})=>{const[s,l]=W.useState(null),{styles:c,attributes:d}=Jv(e,s,{placement:t||"bottom-start"}),m=W.useCallback(()=>{a&&a()},[a]);return r?j.jsxs(Wv,{children:[j.jsx(Qv,{onClick:()=>m()}),j.jsx(em,{ref:l,style:c.popper,attributes:d.popper,children:i})]}):null};var ml={exports:{}};/*!
|
|
2
2
|
Copyright (c) 2018 Jed Watson.
|
|
3
3
|
Licensed under the MIT License (MIT), see
|
|
4
4
|
http://jedwatson.github.io/classnames
|
|
5
|
-
*/var
|
|
6
|
-
`).match(
|
|
5
|
+
*/var wh;function tm(){return wh||(wh=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var s="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(s=a(s,i(c)))}return s}function i(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return r.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var l="";for(var c in s)t.call(s,c)&&s[c]&&(l=a(l,c));return l}function a(s,l){return l?s?s+" "+l:s+l:s}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(ml)),ml.exports}var AA=tm();const rt=Yv(AA);function Mn(){return Mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Mn.apply(this,arguments)}const TA=["children","options"],bh=["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"}),xh={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},RA=["style","script","pre"],PA=["src","href","data","formAction","srcDoc","action"],CA=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,kA=/\n{2,}$/,Sh=/^(\s*>[\s\S]*?)(?=\n\n|$)/,$A=/^ *> ?/gm,IA=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,LA=/^ {2,}\n/,MA=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,Eh=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,_h=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,FA=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,DA=/^(?:\n *)*\n/,NA=/\r\n?/g,jA=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,zA=/^\[\^([^\]]+)]/,WA=/\f/g,BA=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,UA=/^\s*?\[(x|\s)\]/,Oh=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Ah=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Th=/^([^\n]+)\n *(=|-)\2{2,} *\n/,yl=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,HA=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Rh=/^<!--[\s\S]*?(?:-->)/,qA=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,wl=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,ZA=/^\{.*\}$/,GA=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,KA=/^<([^ >]+[:@\/][^ >]+)>/,VA=/-([a-z])?/gi,Ph=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,XA=/^[^\n]+(?: \n|\n{2,})/,YA=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,JA=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,QA=/^\[([^\]]*)\] ?\[([^\]]*)\]/,eT=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,tT=/\t/g,rT=/(^ *\||\| *$)/g,nT=/^ *:-+: *$/,iT=/^ *:-+ *$/,oT=/^ *-+: *$/,Cs=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,ks="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",aT=RegExp(`^([*_])\\1${Cs(1)}${ks}\\1\\1(?!\\1)`),sT=RegExp(`^([*_])${Cs(0)}${ks}\\1(?!\\1)`),uT=RegExp(`^(==)${Cs(0)}${ks}\\1`),lT=RegExp(`^(~~)${Cs(0)}${ks}\\1`),cT=/^(:[a-zA-Z0-9-_]+:)/,fT=/^\\([^0-9A-Za-z\s])/,dT=/\\([^0-9A-Za-z\s])/g,pT=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,hT=/^\n+/,gT=/^([ \t]*)/,vT=/(?:^|\n)( *)$/,zc="(?:\\d+\\.)",Wc="(?:[*+-])";function rm(e){return"( *)("+(e===1?zc:Wc)+") +"}const nm=rm(1),im=rm(2);function om(e){return RegExp("^"+(e===1?nm:im))}const mT=om(1),yT=om(2);function am(e){return RegExp("^"+(e===1?nm:im)+"[^\\n]*(?:\\n(?!\\1"+(e===1?zc:Wc)+" )[^\\n]*)*(\\n|$)","gm")}const wT=am(1),bT=am(2);function sm(e){const t=e===1?zc:Wc;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const um=sm(1),lm=sm(2);function Ch(e,t){const r=t===1,i=r?um:lm,a=r?wT:bT,s=r?mT:yT;return{t:l=>s.test(l),o:xi(function(l,c){const d=vT.exec(c.prevCapture);return d&&(c.list||!c.inline&&!c.simple)?i.exec(l=d[1]+l):null}),i:1,u(l,c,d){const m=r?+l[2]:void 0,v=l[0].replace(kA,`
|
|
6
|
+
`).match(a);let g=!1;return{items:v.map(function(p,w){const x=s.exec(p)[0].length,f=RegExp("^ {1,"+x+"}","gm"),b=p.replace(f,"").replace(s,""),h=w===v.length-1,S=b.indexOf(`
|
|
7
7
|
|
|
8
|
-
`)!==-1||
|
|
8
|
+
`)!==-1||h&&g;g=S;const E=d.inline,R=d.list;let O;d.list=!0,S?(d.inline=!1,O=So(b)+`
|
|
9
9
|
|
|
10
|
-
`):(
|
|
11
|
-
`).map(function(
|
|
10
|
+
`):(d.inline=!0,O=So(b));const k=c(O,d);return d.inline=E,d.list=R,k}),ordered:r,start:m}},l:(l,c,d)=>e(l.ordered?"ol":"ul",{key:d.key,start:l.type==="20"?l.start:void 0},l.items.map(function(m,v){return e("li",{key:v},c(m,d))}))}}const xT=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),ST=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function kh(e){return typeof e=="string"}function So(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function os(e,t){return e.startsWith(t)}function ET(e,t,r){if(Array.isArray(r)){for(let i=0;i<r.length;i++)if(os(e,r[i]))return!0;return!1}return r(e,t)}function Ui(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 _T(e){return oT.test(e)?"right":nT.test(e)?"center":iT.test(e)?"left":null}function $h(e,t,r,i){const a=r.inTable;r.inTable=!0;let s=[[]],l="";function c(){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,m,v)=>{d.trim()==="|"&&(c(),i)?m!==0&&m!==v.length-1&&s.push([]):l+=d}),c(),r.inTable=a,s}function OT(e,t,r){r.inline=!0;const i=e[2]?e[2].replace(rT,"").split("|").map(_T):[],a=e[3]?(function(l,c,d){return l.trim().split(`
|
|
11
|
+
`).map(function(m){return $h(m,c,d,!0)})})(e[3],t,r):[],s=$h(e[1],t,r,!!a.length);return r.inline=!1,a.length?{align:i,cells:a,header:s,type:"25"}:{children:s,type:"21"}}function Ih(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function xi(e){return e.inline=1,e}function Cn(e){return xi(function(t,r){return r.inline?e.exec(t):null})}function sn(e){return xi(function(t,r){return r.inline||r.simple?e.exec(t):null})}function Br(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function Na(e){return xi(function(t){return e.exec(t)})}const AT=/(javascript|vbscript|data(?!:image)):/i;function TT(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(AT.test(t))return null}catch{return null}return e}function br(e){return e&&e.replace(dT,"$1")}function as(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 RT(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 PT(e,t,r){const i=r.inline||!1;r.inline=!1;const a=e(t,r);return r.inline=i,a}const bl=(e,t,r)=>({children:as(t,e[2],r)});function xl(){return{}}function Sl(){return null}function CT(...e){return e.filter(Boolean).join(" ")}function El(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 kT(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?Mn({},xh,t.namedCodesToUnicode):xh;const r=t.slugify||Ui,i=t.sanitizer||TT,a=t.createElement||$.createElement,s=[Sh,Eh,_h,t.enforceAtxHeadings?Ah:Oh,Th,Ph,um,lm],l=[...s,XA,yl,Rh,wl];function c(h,S){for(let E=0;E<h.length;E++)if(h[E].test(S))return!0;return!1}function d(h,S,...E){const R=El(t.overrides,h+".props",{});return a((function(O,k){const B=El(k,O);return B?typeof B=="function"||typeof B=="object"&&"render"in B?B:El(k,O+".component",O):O})(h,t.overrides),Mn({},S,R,{className:CT(S==null?void 0:S.className,R.className)||void 0}),...E)}function m(h){h=h.replace(BA,"");let S=!1;t.forceInline?S=!0:t.forceBlock||(S=eT.test(h)===!1);const E=f(x(S?h:So(h).replace(hT,"")+`
|
|
12
12
|
|
|
13
|
-
`,{inline:S}));for(;
|
|
14
|
-
`);return S>0&&S<
|
|
15
|
-
`],o:
|
|
16
|
-
`},21:{o:
|
|
13
|
+
`,{inline:S}));for(;kh(E[E.length-1])&&!E[E.length-1].trim();)E.pop();if(t.wrapper===null)return E;const R=t.wrapper||(S?"span":"div");let O;if(E.length>1||t.forceWrapper)O=E;else{if(E.length===1)return O=E[0],typeof O=="string"?d("span",{key:"outer"},O):O;O=null}return a(R,{key:"outer"},O)}function v(h,S){if(!S||!S.trim())return null;const E=S.match(CA);return E?E.reduce(function(R,O){const k=O.indexOf("=");if(k!==-1){const B=(function(N){return N.indexOf("-")!==-1&&N.match(qA)===null&&(N=N.replace(VA,function(L,U){return U.toUpperCase()})),N})(O.slice(0,k)).trim(),M=(function(N){const L=N[0];return(L==='"'||L==="'")&&N.length>=2&&N[N.length-1]===L?N.slice(1,-1):N})(O.slice(k+1).trim()),F=bh[B]||B;if(F==="ref")return R;const G=R[F]=(function(N,L,U,q){return L==="style"?(function(C){const J=[];let X="",te=!1,de=!1,Z="";if(!C)return J;for(let ae=0;ae<C.length;ae++){const ue=C[ae];if(ue!=='"'&&ue!=="'"||te||(de?ue===Z&&(de=!1,Z=""):(de=!0,Z=ue)),ue==="("&&X.endsWith("url")?te=!0:ue===")"&&te&&(te=!1),ue!==";"||de||te)X+=ue;else{const ne=X.trim();if(ne){const ce=ne.indexOf(":");if(ce>0){const fe=ne.slice(0,ce).trim(),ye=ne.slice(ce+1).trim();J.push([fe,ye])}}X=""}}const Q=X.trim();if(Q){const ae=Q.indexOf(":");if(ae>0){const ue=Q.slice(0,ae).trim(),ne=Q.slice(ae+1).trim();J.push([ue,ne])}}return J})(U).reduce(function(C,[J,X]){return C[J.replace(/(-[a-z])/g,te=>te[1].toUpperCase())]=q(X,N,J),C},{}):PA.indexOf(L)!==-1?q(br(U),N,L):(U.match(ZA)&&(U=br(U.slice(1,U.length-1))),U==="true"||U!=="false"&&U)})(h,B,M,i);typeof G=="string"&&(yl.test(G)||wl.test(G))&&(R[F]=m(G.trim()))}else O!=="style"&&(R[bh[O]||O]=!0);return R},{}):null}const g=[],p={},w={0:{t:[">"],o:Br(Sh),i:1,u(h,S,E){const[,R,O]=h[0].replace($A,"").match(IA);return{alert:R,children:S(O,E)}},l(h,S,E){const R={key:E.key};return h.alert&&(R.className="markdown-alert-"+r(h.alert.toLowerCase(),Ui),h.children.unshift({attrs:{},children:[{type:"27",text:h.alert}],noInnerParse:!0,type:"11",tag:"header"})),d("blockquote",R,S(h.children,E))}},1:{t:[" "],o:Na(LA),i:1,u:xl,l:(h,S,E)=>d("br",{key:E.key})},2:{t:["--","__","**","- ","* ","_ "],o:Br(MA),i:1,u:xl,l:(h,S,E)=>d("hr",{key:E.key})},3:{t:[" "],o:Br(_h),i:0,u:h=>({lang:void 0,text:br(So(h[0].replace(/^ {4}/gm,"")))}),l:(h,S,E)=>d("pre",{key:E.key},d("code",Mn({},h.attrs,{className:h.lang?"lang-"+h.lang:""}),h.text))},4:{t:["```","~~~"],o:Br(Eh),i:0,u:h=>({attrs:v("code",h[3]||""),lang:h[2]||void 0,text:h[4],type:"3"})},5:{t:["`"],o:sn(FA),i:3,u:h=>({text:br(h[2])}),l:(h,S,E)=>d("code",{key:E.key},h.text)},6:{t:["[^"],o:Br(jA),i:0,u:h=>(g.push({footnote:h[2],identifier:h[1]}),{}),l:Sl},7:{t:["[^"],o:Cn(zA),i:1,u:h=>({target:"#"+r(h[1],Ui),text:h[1]}),l:(h,S,E)=>d("a",{key:E.key,href:i(h.target,"a","href")},d("sup",{key:E.key},h.text))},8:{t:["[ ]","[x]"],o:Cn(UA),i:1,u:h=>({completed:h[1].toLowerCase()==="x"}),l:(h,S,E)=>d("input",{checked:h.completed,key:E.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:Br(t.enforceAtxHeadings?Ah:Oh),i:1,u:(h,S,E)=>({children:as(S,h[2],E),id:r(h[2],Ui),level:h[1].length}),l:(h,S,E)=>d("h"+h.level,{id:h.id,key:E.key},S(h.children,E))},10:{t:h=>{const S=h.indexOf(`
|
|
14
|
+
`);return S>0&&S<h.length-1&&(h[S+1]==="="||h[S+1]==="-")},o:Br(Th),i:0,u:(h,S,E)=>({children:as(S,h[1],E),level:h[2]==="="?1:2,type:"9"})},11:{t:["<"],o:Na(yl),i:1,u(h,S,E){const[,R]=h[3].match(gT),O=RegExp("^"+R,"gm"),k=h[3].replace(O,""),B=c(l,k)?PT:as,M=h[1].toLowerCase(),F=RA.indexOf(M)!==-1,G=(F?M:h[1]).trim(),N={attrs:v(G,h[2]),noInnerParse:F,tag:G};if(E.inAnchor=E.inAnchor||M==="a",F)N.text=h[3];else{const L=E.inHTML;E.inHTML=!0,N.children=B(S,k,E),E.inHTML=L}return E.inAnchor=!1,N},l:(h,S,E)=>d(h.tag,Mn({key:E.key},h.attrs),h.text||(h.children?S(h.children,E):""))},13:{t:["<"],o:Na(wl),i:1,u(h){const S=h[1].trim();return{attrs:v(S,h[2]||""),tag:S}},l:(h,S,E)=>d(h.tag,Mn({},h.attrs,{key:E.key}))},12:{t:["<!--"],o:Na(Rh),i:1,u:()=>({}),l:Sl},14:{t:["!["],o:sn(ST),i:1,u:h=>({alt:br(h[1]),target:br(h[2]),title:br(h[3])}),l:(h,S,E)=>d("img",{key:E.key,alt:h.alt||void 0,title:h.title||void 0,src:i(h.target,"img","src")})},15:{t:["["],o:Cn(xT),i:3,u:(h,S,E)=>({children:RT(S,h[1],E),target:br(h[2]),title:br(h[3])}),l:(h,S,E)=>d("a",{key:E.key,href:i(h.target,"a","href"),title:h.title},S(h.children,E))},16:{t:["<"],o:Cn(KA),i:0,u(h){let S=h[1],E=!1;return S.indexOf("@")!==-1&&S.indexOf("//")===-1&&(E=!0,S=S.replace("mailto:","")),{children:[{text:S,type:"27"}],target:E?"mailto:"+S:S,type:"15"}}},17:{t:(h,S)=>!S.inAnchor&&!t.disableAutoLink&&(os(h,"http://")||os(h,"https://")),o:Cn(GA),i:0,u:h=>({children:[{text:h[1],type:"27"}],target:h[1],title:void 0,type:"15"})},20:Ch(d,1),33:Ch(d,2),19:{t:[`
|
|
15
|
+
`],o:Br(DA),i:3,u:xl,l:()=>`
|
|
16
|
+
`},21:{o:xi(function(h,S){if(S.inline||S.simple||S.inHTML&&h.indexOf(`
|
|
17
17
|
|
|
18
18
|
`)===-1&&S.prevCapture.indexOf(`
|
|
19
19
|
|
|
20
|
-
`)===-1)return null;let E="",R=0;for(;;){const k=
|
|
21
|
-
`,R),B=
|
|
22
|
-
`).replace(FA,"").replace(YA," ")})(R),O)}})(w),f=(function(p,S){return function E(R,O={}){if(Array.isArray(R)){const k=O.key,B=[];let L=!1;for(let M=0;M<R.length;M++){O.key=M;const G=E(R[M],O),N=qp(G);N&&L?B[B.length-1]+=G:G!==null&&B.push(G),L=N}return O.key=k,B}return(function(k,B,L){const M=p[k.type].l;return S?S(()=>M(k,B,L),k,B,L):M(k,B,L)})(R,E,O)}})(w,t.renderRule),b=y(e);return g.length?h("div",null,b,h("footer",{key:"footer"},g.map(function(p){return h("div",{id:r(p.identifier,Ii),key:p.identifier},p.identifier,f(x(p.footnote,{inline:!0})))}))):b}const ea=e=>{let{children:t="",options:r}=e,o=(function(s,a){if(s==null)return{};var l,c,h={},y=Object.keys(s);for(c=0;c<y.length;c++)a.indexOf(l=y[c])>=0||(h[l]=s[l]);return h})(e,SA);return D.cloneElement(OO(t,r),o)},Kp=({kind:e,customIcon:t})=>{if(t)return z.jsx(t,{className:"mr-1 h-6 w-6 flex-none"});switch(e){case"error":case"danger":return z.jsx(st.FdSanityCheckInfo,{className:"flex-none h-6 w-6"});case"info":return z.jsx(z.Fragment,{children:z.jsx(st.FdInfoBold,{className:"flex-none h-6 w-6"})});case"warning":return z.jsx(z.Fragment,{children:z.jsx(st.FdWarningDanger,{className:"flex-none h-6 w-6"})});case"message":return z.jsx(z.Fragment,{children:z.jsx(st.FdInfoBold,{className:"flex-none h-6 w-6"})});default:return null}},TO=({id:e,onClose:t,kind:r,message:o,markdown:s,customIcon:a})=>{const l=({className:c}={})=>z.jsx("button",{onClick:t,className:tt("flex items-center justify-center p-1",c),children:z.jsx(st.FdCloseNaked,{className:"h-5 w-5 font-thin stroke-current"})});return z.jsx("div",{className:tt("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 o=="string"?z.jsxs("div",{className:"w-full flex items-center justify-between gap-x-3",children:[z.jsxs("div",{className:"flex items-center gap-1",children:[z.jsx(Kp,{kind:r,customIcon:a}),s?z.jsx(ea,{children:o}):z.jsx(z.Fragment,{children:o})]}),l()]}):z.jsxs("div",{className:"flex items-start",children:[z.jsx("div",{className:"flex flex-col gap-2 justify-between",children:o.filter(c=>c.messages.length>0).map(c=>z.jsxs(z.Fragment,{children:[c.title&&z.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[z.jsx(Kp,{kind:r,customIcon:a}),z.jsxs("span",{children:[c.title," :"]})]}),z.jsx("ul",{className:tt("list-disc",{"px-12":c.title,"px-6":!c.title}),children:c.messages.map(h=>z.jsx("li",{children:s?z.jsx(ea,{children:h}):z.jsx(z.Fragment,{children:h})}))})]}))}),l({className:"absolute top-1 right-1"})]})},e)},gv=({children:e,size:t,className:r,...o})=>z.jsx("div",{style:{"--width":`${t||24}px`},className:tt("h-6 flex items-center pr-1 w-[--width]",r),...o,children:e});var il={},Li={},Os={},Vp;function vv(){if(Vp)return Os;Vp=1,Object.defineProperty(Os,"__esModule",{value:!0}),Os.default=r;let e;const t=new Uint8Array(16);function r(){if(!e&&(e=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!e))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(t)}return Os}var ti={},Mi={},Fi={},Yp;function RO(){if(Yp)return Fi;Yp=1,Object.defineProperty(Fi,"__esModule",{value:!0}),Fi.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 Fi.default=e,Fi}var Xp;function ha(){if(Xp)return Mi;Xp=1,Object.defineProperty(Mi,"__esModule",{value:!0}),Mi.default=void 0;var e=t(RO());function t(s){return s&&s.__esModule?s:{default:s}}function r(s){return typeof s=="string"&&e.default.test(s)}var o=r;return Mi.default=o,Mi}var Jp;function ga(){if(Jp)return ti;Jp=1,Object.defineProperty(ti,"__esModule",{value:!0}),ti.default=void 0,ti.unsafeStringify=o;var e=t(ha());function t(l){return l&&l.__esModule?l:{default:l}}const r=[];for(let l=0;l<256;++l)r.push((l+256).toString(16).slice(1));function o(l,c=0){return r[l[c+0]]+r[l[c+1]]+r[l[c+2]]+r[l[c+3]]+"-"+r[l[c+4]]+r[l[c+5]]+"-"+r[l[c+6]]+r[l[c+7]]+"-"+r[l[c+8]]+r[l[c+9]]+"-"+r[l[c+10]]+r[l[c+11]]+r[l[c+12]]+r[l[c+13]]+r[l[c+14]]+r[l[c+15]]}function s(l,c=0){const h=o(l,c);if(!(0,e.default)(h))throw TypeError("Stringified UUID is invalid");return h}var a=s;return ti.default=a,ti}var Qp;function PO(){if(Qp)return Li;Qp=1,Object.defineProperty(Li,"__esModule",{value:!0}),Li.default=void 0;var e=r(vv()),t=ga();function r(y){return y&&y.__esModule?y:{default:y}}let o,s,a=0,l=0;function c(y,v,g){let d=v&&g||0;const w=v||new Array(16);y=y||{};let x=y.node||o,f=y.clockseq!==void 0?y.clockseq:s;if(x==null||f==null){const O=y.random||(y.rng||e.default)();x==null&&(x=o=[O[0]|1,O[1],O[2],O[3],O[4],O[5]]),f==null&&(f=s=(O[6]<<8|O[7])&16383)}let b=y.msecs!==void 0?y.msecs:Date.now(),p=y.nsecs!==void 0?y.nsecs:l+1;const S=b-a+(p-l)/1e4;if(S<0&&y.clockseq===void 0&&(f=f+1&16383),(S<0||b>a)&&y.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=b,l=p,s=f,b+=122192928e5;const E=((b&268435455)*1e4+p)%4294967296;w[d++]=E>>>24&255,w[d++]=E>>>16&255,w[d++]=E>>>8&255,w[d++]=E&255;const R=b/4294967296*1e4&268435455;w[d++]=R>>>8&255,w[d++]=R&255,w[d++]=R>>>24&15|16,w[d++]=R>>>16&255,w[d++]=f>>>8|128,w[d++]=f&255;for(let O=0;O<6;++O)w[d+O]=x[O];return v||(0,t.unsafeStringify)(w)}var h=c;return Li.default=h,Li}var Di={},rn={},Ni={},eh;function mv(){if(eh)return Ni;eh=1,Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.default=void 0;var e=t(ha());function t(s){return s&&s.__esModule?s:{default:s}}function r(s){if(!(0,e.default)(s))throw TypeError("Invalid UUID");let a;const l=new Uint8Array(16);return l[0]=(a=parseInt(s.slice(0,8),16))>>>24,l[1]=a>>>16&255,l[2]=a>>>8&255,l[3]=a&255,l[4]=(a=parseInt(s.slice(9,13),16))>>>8,l[5]=a&255,l[6]=(a=parseInt(s.slice(14,18),16))>>>8,l[7]=a&255,l[8]=(a=parseInt(s.slice(19,23),16))>>>8,l[9]=a&255,l[10]=(a=parseInt(s.slice(24,36),16))/1099511627776&255,l[11]=a/4294967296&255,l[12]=a>>>24&255,l[13]=a>>>16&255,l[14]=a>>>8&255,l[15]=a&255,l}var o=r;return Ni.default=o,Ni}var th;function yv(){if(th)return rn;th=1,Object.defineProperty(rn,"__esModule",{value:!0}),rn.URL=rn.DNS=void 0,rn.default=l;var e=ga(),t=r(mv());function r(c){return c&&c.__esModule?c:{default:c}}function o(c){c=unescape(encodeURIComponent(c));const h=[];for(let y=0;y<c.length;++y)h.push(c.charCodeAt(y));return h}const s="6ba7b810-9dad-11d1-80b4-00c04fd430c8";rn.DNS=s;const a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";rn.URL=a;function l(c,h,y){function v(g,d,w,x){var f;if(typeof g=="string"&&(g=o(g)),typeof d=="string"&&(d=(0,t.default)(d)),((f=d)===null||f===void 0?void 0:f.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let b=new Uint8Array(16+g.length);if(b.set(d),b.set(g,d.length),b=y(b),b[6]=b[6]&15|h,b[8]=b[8]&63|128,w){x=x||0;for(let p=0;p<16;++p)w[x+p]=b[p];return w}return(0,e.unsafeStringify)(b)}try{v.name=c}catch{}return v.DNS=s,v.URL=a,v}return rn}var ji={},rh;function CO(){if(rh)return ji;rh=1,Object.defineProperty(ji,"__esModule",{value:!0}),ji.default=void 0;function e(w){if(typeof w=="string"){const x=unescape(encodeURIComponent(w));w=new Uint8Array(x.length);for(let f=0;f<x.length;++f)w[f]=x.charCodeAt(f)}return t(o(s(w),w.length*8))}function t(w){const x=[],f=w.length*32,b="0123456789abcdef";for(let p=0;p<f;p+=8){const S=w[p>>5]>>>p%32&255,E=parseInt(b.charAt(S>>>4&15)+b.charAt(S&15),16);x.push(E)}return x}function r(w){return(w+64>>>9<<4)+14+1}function o(w,x){w[x>>5]|=128<<x%32,w[r(x)-1]=x;let f=1732584193,b=-271733879,p=-1732584194,S=271733878;for(let E=0;E<w.length;E+=16){const R=f,O=b,k=p,B=S;f=h(f,b,p,S,w[E],7,-680876936),S=h(S,f,b,p,w[E+1],12,-389564586),p=h(p,S,f,b,w[E+2],17,606105819),b=h(b,p,S,f,w[E+3],22,-1044525330),f=h(f,b,p,S,w[E+4],7,-176418897),S=h(S,f,b,p,w[E+5],12,1200080426),p=h(p,S,f,b,w[E+6],17,-1473231341),b=h(b,p,S,f,w[E+7],22,-45705983),f=h(f,b,p,S,w[E+8],7,1770035416),S=h(S,f,b,p,w[E+9],12,-1958414417),p=h(p,S,f,b,w[E+10],17,-42063),b=h(b,p,S,f,w[E+11],22,-1990404162),f=h(f,b,p,S,w[E+12],7,1804603682),S=h(S,f,b,p,w[E+13],12,-40341101),p=h(p,S,f,b,w[E+14],17,-1502002290),b=h(b,p,S,f,w[E+15],22,1236535329),f=y(f,b,p,S,w[E+1],5,-165796510),S=y(S,f,b,p,w[E+6],9,-1069501632),p=y(p,S,f,b,w[E+11],14,643717713),b=y(b,p,S,f,w[E],20,-373897302),f=y(f,b,p,S,w[E+5],5,-701558691),S=y(S,f,b,p,w[E+10],9,38016083),p=y(p,S,f,b,w[E+15],14,-660478335),b=y(b,p,S,f,w[E+4],20,-405537848),f=y(f,b,p,S,w[E+9],5,568446438),S=y(S,f,b,p,w[E+14],9,-1019803690),p=y(p,S,f,b,w[E+3],14,-187363961),b=y(b,p,S,f,w[E+8],20,1163531501),f=y(f,b,p,S,w[E+13],5,-1444681467),S=y(S,f,b,p,w[E+2],9,-51403784),p=y(p,S,f,b,w[E+7],14,1735328473),b=y(b,p,S,f,w[E+12],20,-1926607734),f=v(f,b,p,S,w[E+5],4,-378558),S=v(S,f,b,p,w[E+8],11,-2022574463),p=v(p,S,f,b,w[E+11],16,1839030562),b=v(b,p,S,f,w[E+14],23,-35309556),f=v(f,b,p,S,w[E+1],4,-1530992060),S=v(S,f,b,p,w[E+4],11,1272893353),p=v(p,S,f,b,w[E+7],16,-155497632),b=v(b,p,S,f,w[E+10],23,-1094730640),f=v(f,b,p,S,w[E+13],4,681279174),S=v(S,f,b,p,w[E],11,-358537222),p=v(p,S,f,b,w[E+3],16,-722521979),b=v(b,p,S,f,w[E+6],23,76029189),f=v(f,b,p,S,w[E+9],4,-640364487),S=v(S,f,b,p,w[E+12],11,-421815835),p=v(p,S,f,b,w[E+15],16,530742520),b=v(b,p,S,f,w[E+2],23,-995338651),f=g(f,b,p,S,w[E],6,-198630844),S=g(S,f,b,p,w[E+7],10,1126891415),p=g(p,S,f,b,w[E+14],15,-1416354905),b=g(b,p,S,f,w[E+5],21,-57434055),f=g(f,b,p,S,w[E+12],6,1700485571),S=g(S,f,b,p,w[E+3],10,-1894986606),p=g(p,S,f,b,w[E+10],15,-1051523),b=g(b,p,S,f,w[E+1],21,-2054922799),f=g(f,b,p,S,w[E+8],6,1873313359),S=g(S,f,b,p,w[E+15],10,-30611744),p=g(p,S,f,b,w[E+6],15,-1560198380),b=g(b,p,S,f,w[E+13],21,1309151649),f=g(f,b,p,S,w[E+4],6,-145523070),S=g(S,f,b,p,w[E+11],10,-1120210379),p=g(p,S,f,b,w[E+2],15,718787259),b=g(b,p,S,f,w[E+9],21,-343485551),f=a(f,R),b=a(b,O),p=a(p,k),S=a(S,B)}return[f,b,p,S]}function s(w){if(w.length===0)return[];const x=w.length*8,f=new Uint32Array(r(x));for(let b=0;b<x;b+=8)f[b>>5]|=(w[b/8]&255)<<b%32;return f}function a(w,x){const f=(w&65535)+(x&65535);return(w>>16)+(x>>16)+(f>>16)<<16|f&65535}function l(w,x){return w<<x|w>>>32-x}function c(w,x,f,b,p,S){return a(l(a(a(x,w),a(b,S)),p),f)}function h(w,x,f,b,p,S,E){return c(x&f|~x&b,w,x,p,S,E)}function y(w,x,f,b,p,S,E){return c(x&b|f&~b,w,x,p,S,E)}function v(w,x,f,b,p,S,E){return c(x^f^b,w,x,p,S,E)}function g(w,x,f,b,p,S,E){return c(f^(x|~b),w,x,p,S,E)}var d=e;return ji.default=d,ji}var nh;function kO(){if(nh)return Di;nh=1,Object.defineProperty(Di,"__esModule",{value:!0}),Di.default=void 0;var e=r(yv()),t=r(CO());function r(a){return a&&a.__esModule?a:{default:a}}var s=(0,e.default)("v3",48,t.default);return Di.default=s,Di}var zi={},Wi={},ih;function $O(){if(ih)return Wi;ih=1,Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return Wi.default=t,Wi}var oh;function IO(){if(oh)return zi;oh=1,Object.defineProperty(zi,"__esModule",{value:!0}),zi.default=void 0;var e=o($O()),t=o(vv()),r=ga();function o(l){return l&&l.__esModule?l:{default:l}}function s(l,c,h){if(e.default.randomUUID&&!c&&!l)return e.default.randomUUID();l=l||{};const y=l.random||(l.rng||t.default)();if(y[6]=y[6]&15|64,y[8]=y[8]&63|128,c){h=h||0;for(let v=0;v<16;++v)c[h+v]=y[v];return c}return(0,r.unsafeStringify)(y)}var a=s;return zi.default=a,zi}var Bi={},Ui={},sh;function LO(){if(sh)return Ui;sh=1,Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.default=void 0;function e(s,a,l,c){switch(s){case 0:return a&l^~a&c;case 1:return a^l^c;case 2:return a&l^a&c^l&c;case 3:return a^l^c}}function t(s,a){return s<<a|s>>>32-a}function r(s){const a=[1518500249,1859775393,2400959708,3395469782],l=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof s=="string"){const v=unescape(encodeURIComponent(s));s=[];for(let g=0;g<v.length;++g)s.push(v.charCodeAt(g))}else Array.isArray(s)||(s=Array.prototype.slice.call(s));s.push(128);const c=s.length/4+2,h=Math.ceil(c/16),y=new Array(h);for(let v=0;v<h;++v){const g=new Uint32Array(16);for(let d=0;d<16;++d)g[d]=s[v*64+d*4]<<24|s[v*64+d*4+1]<<16|s[v*64+d*4+2]<<8|s[v*64+d*4+3];y[v]=g}y[h-1][14]=(s.length-1)*8/Math.pow(2,32),y[h-1][14]=Math.floor(y[h-1][14]),y[h-1][15]=(s.length-1)*8&4294967295;for(let v=0;v<h;++v){const g=new Uint32Array(80);for(let p=0;p<16;++p)g[p]=y[v][p];for(let p=16;p<80;++p)g[p]=t(g[p-3]^g[p-8]^g[p-14]^g[p-16],1);let d=l[0],w=l[1],x=l[2],f=l[3],b=l[4];for(let p=0;p<80;++p){const S=Math.floor(p/20),E=t(d,5)+e(S,w,x,f)+b+a[S]+g[p]>>>0;b=f,f=x,x=t(w,30)>>>0,w=d,d=E}l[0]=l[0]+d>>>0,l[1]=l[1]+w>>>0,l[2]=l[2]+x>>>0,l[3]=l[3]+f>>>0,l[4]=l[4]+b>>>0}return[l[0]>>24&255,l[0]>>16&255,l[0]>>8&255,l[0]&255,l[1]>>24&255,l[1]>>16&255,l[1]>>8&255,l[1]&255,l[2]>>24&255,l[2]>>16&255,l[2]>>8&255,l[2]&255,l[3]>>24&255,l[3]>>16&255,l[3]>>8&255,l[3]&255,l[4]>>24&255,l[4]>>16&255,l[4]>>8&255,l[4]&255]}var o=r;return Ui.default=o,Ui}var ah;function MO(){if(ah)return Bi;ah=1,Object.defineProperty(Bi,"__esModule",{value:!0}),Bi.default=void 0;var e=r(yv()),t=r(LO());function r(a){return a&&a.__esModule?a:{default:a}}var s=(0,e.default)("v5",80,t.default);return Bi.default=s,Bi}var Hi={},uh;function FO(){if(uh)return Hi;uh=1,Object.defineProperty(Hi,"__esModule",{value:!0}),Hi.default=void 0;var e="00000000-0000-0000-0000-000000000000";return Hi.default=e,Hi}var qi={},lh;function DO(){if(lh)return qi;lh=1,Object.defineProperty(qi,"__esModule",{value:!0}),qi.default=void 0;var e=t(ha());function t(s){return s&&s.__esModule?s:{default:s}}function r(s){if(!(0,e.default)(s))throw TypeError("Invalid UUID");return parseInt(s.slice(14,15),16)}var o=r;return qi.default=o,qi}var ch;function NO(){return ch||(ch=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return l.default}});var t=v(PO()),r=v(kO()),o=v(IO()),s=v(MO()),a=v(FO()),l=v(DO()),c=v(ha()),h=v(ga()),y=v(mv());function v(g){return g&&g.__esModule?g:{default:g}}})(il)),il}var ol,fh;function jO(){if(fh)return ol;fh=1;function e(t,r){if(!t||!r||!t.length||!r.length)throw new Error("Bad alphabet");this.srcAlphabet=t,this.dstAlphabet=r}return e.prototype.convert=function(t){var r,o,s,a={},l=this.srcAlphabet.length,c=this.dstAlphabet.length,h=t.length,y=typeof t=="string"?"":[];if(!this.isValid(t))throw new Error('Number "'+t+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return t;for(r=0;r<h;r++)a[r]=this.srcAlphabet.indexOf(t[r]);do{for(o=0,s=0,r=0;r<h;r++)o=o*l+a[r],o>=c?(a[s++]=parseInt(o/c,10),o=o%c):s>0&&(a[s++]=0);h=s,y=this.dstAlphabet.slice(o,o+1).concat(y)}while(s!==0);return y},e.prototype.isValid=function(t){for(var r=0;r<t.length;++r)if(this.srcAlphabet.indexOf(t[r])===-1)return!1;return!0},ol=e,ol}var sl,dh;function zO(){if(dh)return sl;dh=1;var e=jO();function t(r,o){var s=new e(r,o);return function(a){return s.convert(a)}}return t.BIN="01",t.OCT="01234567",t.DEC="0123456789",t.HEX="0123456789abcdef",sl=t,sl}var al,ph;function WO(){if(ph)return al;ph=1;const{v4:e,validate:t}=NO(),r=zO(),o={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},s={consistentLength:!0};let a;const l=(y,v,g)=>{const d=v(y.toLowerCase().replace(/-/g,""));return!g||!g.consistentLength?d:d.padStart(g.shortIdLength,g.paddingChar)},c=(y,v)=>{const d=v(y).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[d[1],d[2],d[3],d[4],d[5]].join("-")},h=y=>Math.ceil(Math.log(2**128)/Math.log(y));return al=(()=>{const y=(v,g)=>{const d=v||o.flickrBase58,w={...s,...g};if([...new Set(Array.from(d))].length!==d.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const x=h(d.length),f={shortIdLength:x,consistentLength:w.consistentLength,paddingChar:d[0]},b=r(r.HEX,d),p=r(d,r.HEX),S=()=>l(e(),b,f),R={alphabet:d,fromUUID:O=>l(O,b,f),maxLength:x,generate:S,new:S,toUUID:O=>c(O,p),uuid:e,validate:(O,k=!1)=>{if(!O||typeof O!="string")return!1;const B=w.consistentLength?O.length===x:O.length<=x,L=O.split("").every(M=>d.includes(M));return k===!1?B&&L:B&&L&&t(c(O,p))}};return Object.freeze(R),R};return y.constants=o,y.uuid=e,y.generate=()=>(a||(a=y(o.flickrBase58).generate),a()),y})(),al}var dc=WO();const wv=({depth:e,height:t=24,width:r=11,showLines:o=!0,stroke:s="rgb(241, 245, 249)"})=>{const a=`indent_line_${dc.generate()}`;return z.jsxs("svg",{viewBox:`0 0 ${11*e} ${t}`,width:`${11*e}`,height:t,children:[z.jsx("defs",{children:z.jsx("pattern",{id:a,x:"0",y:"0",width:r,height:t,patternUnits:"userSpaceOnUse",children:z.jsx("line",{x1:r/2,y1:"0",x2:r/2,y2:t,stroke:s})})}),o?z.jsx("rect",{fill:`url(#${a})`,x:"0",y:"0",width:`${11*e}`,height:t}):z.jsx("rect",{fill:o?`url(#${a})`:"",x:"0",y:"0",width:0,height:t})]})},bv=({show:e,expanded:t,onClick:r,variant:o="arrow"})=>e?z.jsx("div",{className:"flex h-6 w-5 items-center",onClick:s=>r&&r(s),children:(()=>{switch(o){case"arrow":return z.jsx(st.FdDown,{className:tt(["h-3 w-3 transform text-grey-50 transition ease-in-out",{"rotate-0":t,"-rotate-90":!t}])});case"caret":return t?z.jsx(st.FdDown,{}):z.jsx(st.FdRight,{});default:return z.jsx(st.FdDown,{className:"h-3 w-3 transform text-grey-50 transition ease-in-out"})}})()}):z.jsx("div",{className:"flex h-6 w-3 items-center"}),pc=({node:e,depth:t,expandedKeys:r,selectedKeys:o,actions:s,searchQuery:a,renderNode:l,onNodeClick:c})=>{var w;const{key:h,children:y}=e,v=W.useMemo(()=>({expanded:r.includes(e.key),selected:o.includes(e.key)}),[r,e.key,o]),g=l&&typeof l=="function"?l(e,t,v,s,a):HO(e,t,v,c);return!((w=e.options)!=null&&w.filterable)||!a||e.title.toLowerCase().includes(a.toLowerCase())?z.jsxs(z.Fragment,{children:[z.jsx("div",{className:"flex items-center space-x-2",children:g},h),UO(y||[],t,a,r,o,v.expanded,s,c,l)]}):null},BO=function(e,t){var l;const{title:r,icon:o,subtitle:s}=e;let a=null;return o&&(a=z.jsx(gv,{children:o})),z.jsxs("div",{className:"flex flex-1 select-none items-center overflow-hidden text-ellipsis whitespace-nowrap",draggable:(l=e.options)==null?void 0:l.draggable,onClick:()=>{t&&t(e)},children:[a,z.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:r}),s&&z.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:s})]})},UO=function(e,t,r,o,s,a,l,c,h){return e.length&&a?e.map(y=>z.jsx(pc,{actions:l,node:y,searchQuery:r,depth:t+1,expandedKeys:o,selectedKeys:s,onNodeClick:c,renderNode:h},y.key)):null},HO=function(e,t,r,o){return z.jsxs(z.Fragment,{children:[z.jsx(wv,{showLines:!0,depth:t}),z.jsx(bv,{show:e.children&&e.children.length>0||!1,expanded:r.expanded}),BO(e,o)]})},Ts=e=>t=>e===t,qO=function({treeData:t,renderNode:r,onNodeClick:o,onExpandNode:s,searchQuery:a,expandedKeys:l,expandCondition:c="always",encapsulated:h,className:y}){const[v,g]=W.useState(()=>({expandedKeys:l||[],selectedKeys:[]}));W.useEffect(()=>{c==="when-collapsed"&&v.expandedKeys.length>0||g({...v,expandedKeys:l||v.expandedKeys})},[l]);const d=W.useCallback(p=>{if(!p)return;const S=v.expandedKeys.findIndex(Ts(p.key));let E=[];S===-1?(E=[...v.expandedKeys,p.key],g(()=>({...v,expandedKeys:E})),s&&s(E)):(E=v.expandedKeys.filter(R=>R!==p.key),g(()=>({...v,expandedKeys:E})),s&&s(E))},[v]),w=W.useCallback(p=>{var E;if(!((E=p==null?void 0:p.options)!=null&&E.selectable))return;v.selectedKeys.findIndex(Ts(p.key))===-1&&g({...v,selectedKeys:[...v.selectedKeys,p.key]})},[v]),x=W.useCallback(p=>{var E;if(!((E=p==null?void 0:p.options)!=null&&E.selectable))return;v.selectedKeys.findIndex(Ts(p.key))===-1&&g({...v,selectedKeys:[p.key]})},[v]),f=W.useCallback(p=>{var E;if(!((E=p==null?void 0:p.options)!=null&&E.selectable)){g({...v,selectedKeys:[]});return}v.selectedKeys.findIndex(Ts(p.key))!==-1&&g({...v,selectedKeys:v.selectedKeys.filter(R=>R!==p.key)})},[v]),b=W.useMemo(()=>({expand:d,select:w,selectSingle:x,deselect:f}),[f,d,w,x]);return z.jsx("div",{className:tt("fd-tree",y,{"pl-2 mb-1 rounded border bg-grey-900 p-1":h}),children:t.map(p=>z.jsx(pc,{node:p,searchQuery:a||"",depth:0,expandedKeys:v.expandedKeys,selectedKeys:v.selectedKeys,actions:b,renderNode:r,onNodeClick:o},p.key))})};function ZO(e){return e.of&&e.children?z.jsx(z.Fragment,{children:e.children}):null}function ft(){return ft=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},ft.apply(null,arguments)}function GO(e){for(var t=0,r,o=0,s=e.length;s>=4;++o,s-=4)r=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&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 KO={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 xv(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var VO=/[A-Z]|^ms/g,YO=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Sv=function(t){return t.charCodeAt(1)===45},hh=function(t){return t!=null&&typeof t!="boolean"},ul=xv(function(e){return Sv(e)?e:e.replace(VO,"-$&").toLowerCase()}),gh=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(YO,function(o,s,a){return br={name:s,styles:a,next:br},s})}return KO[t]!==1&&!Sv(t)&&typeof r=="number"&&r!==0?r+"px":r};function vo(e,t,r){if(r==null)return"";var o=r;if(o.__emotion_styles!==void 0)return o;switch(typeof r){case"boolean":return"";case"object":{var s=r;if(s.anim===1)return br={name:s.name,styles:s.styles,next:br},s.name;var a=r;if(a.styles!==void 0){var l=a.next;if(l!==void 0)for(;l!==void 0;)br={name:l.name,styles:l.styles,next:br},l=l.next;var c=a.styles+";";return c}return XO(e,t,r)}case"function":{if(e!==void 0){var h=br,y=r(e);return br=h,vo(e,t,y)}break}}var v=r;if(t==null)return v;var g=t[v];return g!==void 0?g:v}function XO(e,t,r){var o="";if(Array.isArray(r))for(var s=0;s<r.length;s++)o+=vo(e,t,r[s])+";";else for(var a in r){var l=r[a];if(typeof l!="object"){var c=l;t!=null&&t[c]!==void 0?o+=a+"{"+t[c]+"}":hh(c)&&(o+=ul(a)+":"+gh(a,c)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var h=0;h<l.length;h++)hh(l[h])&&(o+=ul(a)+":"+gh(a,l[h])+";");else{var y=vo(e,t,l);switch(a){case"animation":case"animationName":{o+=ul(a)+":"+y+";";break}default:o+=a+"{"+y+"}"}}}return o}var vh=/label:\s*([^\s;{]+)\s*(;|$)/g,br;function JO(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,s="";br=void 0;var a=e[0];if(a==null||a.raw===void 0)o=!1,s+=vo(r,t,a);else{var l=a;s+=l[0]}for(var c=1;c<e.length;c++)if(s+=vo(r,t,e[c]),o){var h=a;s+=h[c]}vh.lastIndex=0;for(var y="",v;(v=vh.exec(s))!==null;)y+="-"+v[1];var g=GO(s)+y;return{name:g,styles:s,next:br}}var QO=function(t){return t()},eT=D.useInsertionEffect?D.useInsertionEffect:!1,tT=eT||QO,rT=!0;function nT(e,t,r){var o="";return r.split(" ").forEach(function(s){e[s]!==void 0?t.push(e[s]+";"):s&&(o+=s+" ")}),o}var Ev=function(t,r,o){var s=t.key+"-"+r.name;(o===!1||rT===!1)&&t.registered[s]===void 0&&(t.registered[s]=r.styles)},iT=function(t,r,o){Ev(t,r,o);var s=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+s:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}},oT=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,sT=xv(function(e){return oT.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),aT=sT,uT=function(t){return t!=="theme"},mh=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?aT:uT},yh=function(t,r,o){var s;if(r){var a=r.shouldForwardProp;s=t.__emotion_forwardProp&&a?function(l){return t.__emotion_forwardProp(l)&&a(l)}:a}return typeof s!="function"&&o&&(s=t.__emotion_forwardProp),s},lT=function(t){var r=t.cache,o=t.serialized,s=t.isStringTag;return Ev(r,o,s),tT(function(){return iT(r,o,s)}),null},cT=function e(t,r){var o=t.__emotion_real===t,s=o&&t.__emotion_base||t,a,l;r!==void 0&&(a=r.label,l=r.target);var c=yh(t,r,o),h=c||mh(s),y=!h("as");return function(){var v=arguments,g=o&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&g.push("label:"+a+";"),v[0]==null||v[0].raw===void 0)g.push.apply(g,v);else{var d=v[0];g.push(d[0]);for(var w=v.length,x=1;x<w;x++)g.push(v[x],d[x])}var f=Ml.withEmotionCache(function(b,p,S){var E=y&&b.as||s,R="",O=[],k=b;if(b.theme==null){k={};for(var B in b)k[B]=b[B];k.theme=D.useContext(Ml.ThemeContext)}typeof b.className=="string"?R=nT(p.registered,O,b.className):b.className!=null&&(R=b.className+" ");var L=JO(g.concat(O),p.registered,k);R+=p.key+"-"+L.name,l!==void 0&&(R+=" "+l);var M=y&&c===void 0?mh(E):h,G={};for(var N in b)y&&N==="as"||M(N)&&(G[N]=b[N]);return G.className=R,S&&(G.ref=S),D.createElement(D.Fragment,null,D.createElement(lT,{cache:p,serialized:L,isStringTag:typeof E=="string"}),D.createElement(E,G))});return f.displayName=a!==void 0?a:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=s,f.__emotion_styles=g,f.__emotion_forwardProp=c,Object.defineProperty(f,"toString",{value:function(){return"."+l}}),f.withComponent=function(b,p){var S=e(b,ft({},r,p,{shouldForwardProp:yh(f,p,!0)}));return S.apply(void 0,g)},f}},fT=["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"],ta=cT.bind(null);fT.forEach(function(e){ta[e]=ta(e)});var dT=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ri=new WeakMap,Rs=new WeakMap,Ps={},ll=0,_v=function(e){return e&&(e.host||_v(e.parentNode))},pT=function(e,t){return t.map(function(r){if(e.contains(r))return r;var o=_v(r);return o&&e.contains(o)?o:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},hT=function(e,t,r,o){var s=pT(t,Array.isArray(e)?e:[e]);Ps[r]||(Ps[r]=new WeakMap);var a=Ps[r],l=[],c=new Set,h=new Set(s),y=function(g){!g||c.has(g)||(c.add(g),y(g.parentNode))};s.forEach(y);var v=function(g){!g||h.has(g)||Array.prototype.forEach.call(g.children,function(d){if(c.has(d))v(d);else try{var w=d.getAttribute(o),x=w!==null&&w!=="false",f=(ri.get(d)||0)+1,b=(a.get(d)||0)+1;ri.set(d,f),a.set(d,b),l.push(d),f===1&&x&&Rs.set(d,!0),b===1&&d.setAttribute(r,"true"),x||d.setAttribute(o,"true")}catch(p){console.error("aria-hidden: cannot operate on ",d,p)}})};return v(t),c.clear(),ll++,function(){l.forEach(function(g){var d=ri.get(g)-1,w=a.get(g)-1;ri.set(g,d),a.set(g,w),d||(Rs.has(g)||g.removeAttribute(o),Rs.delete(g)),w||g.removeAttribute(r)}),ll--,ll||(ri=new WeakMap,ri=new WeakMap,Rs=new WeakMap,Ps={})}},gT=function(e,t,r){r===void 0&&(r="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),s=dT(e);return s?(o.push.apply(o,Array.from(s.querySelectorAll("[aria-live], script"))),hT(o,s,r,"aria-hidden")):function(){return null}},Nl=function(e,t){return Nl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(r[s]=o[s])},Nl(e,t)};function va(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Nl(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var xr=function(){return xr=Object.assign||function(t){for(var r,o=1,s=arguments.length;o<s;o++){r=arguments[o];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},xr.apply(this,arguments)};function Av(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(e);s<o.length;s++)t.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(e,o[s])&&(r[o[s]]=e[o[s]]);return r}function jl(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.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(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function zl(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var o=r.call(e),s,a=[],l;try{for(;(t===void 0||t-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(c){l={error:c}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(l)throw l.error}}return a}function ra(e,t,r){if(r||arguments.length===2)for(var o=0,s=t.length,a;o<s;o++)(a||!(o in t))&&(a||(a=Array.prototype.slice.call(t,0,o)),a[o]=t[o]);return e.concat(a||Array.prototype.slice.call(t))}var Ks="right-scroll-bar-position",Vs="width-before-scroll-bar",vT="with-scroll-bars-hidden",mT="--removed-body-scroll-bar-size";function cl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function yT(e,t){var r=W.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(o){var s=r.value;s!==o&&(r.value=o,r.callback(o,s))}}}})[0];return r.callback=t,r.facade}var wT=typeof window<"u"?D.useLayoutEffect:D.useEffect,wh=new WeakMap;function bT(e,t){var r=yT(null,function(o){return e.forEach(function(s){return cl(s,o)})});return wT(function(){var o=wh.get(r);if(o){var s=new Set(o),a=new Set(e),l=r.current;s.forEach(function(c){a.has(c)||cl(c,null)}),a.forEach(function(c){s.has(c)||cl(c,l)})}wh.set(r,e)},[e]),r}function xT(e){return e}function ST(e,t){t===void 0&&(t=xT);var r=[],o=!1,s={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var l=t(a,o);return r.push(l),function(){r=r.filter(function(c){return c!==l})}},assignSyncMedium:function(a){for(o=!0;r.length;){var l=r;r=[],l.forEach(a)}r={push:function(c){return a(c)},filter:function(){return r}}},assignMedium:function(a){o=!0;var l=[];if(r.length){var c=r;r=[],c.forEach(a),l=r}var h=function(){var v=l;l=[],v.forEach(a)},y=function(){return Promise.resolve().then(h)};y(),r={push:function(v){l.push(v),y()},filter:function(v){return l=l.filter(v),r}}}};return s}function ET(e){e===void 0&&(e={});var t=ST(null);return t.options=xr({async:!0,ssr:!1},e),t}var Ov=function(e){var t=e.sideCar,r=Av(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return D.createElement(o,xr({},r))};Ov.isSideCarExport=!0;function _T(e,t){return e.useMedium(t),Ov}var Tv=ET(),fl=function(){},ma=D.forwardRef(function(e,t){var r=D.useRef(null),o=D.useState({onScrollCapture:fl,onWheelCapture:fl,onTouchMoveCapture:fl}),s=o[0],a=o[1],l=e.forwardProps,c=e.children,h=e.className,y=e.removeScrollBar,v=e.enabled,g=e.shards,d=e.sideCar,w=e.noRelative,x=e.noIsolation,f=e.inert,b=e.allowPinchZoom,p=e.as,S=p===void 0?"div":p,E=e.gapMode,R=Av(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=d,k=bT([r,t]),B=xr(xr({},R),s);return D.createElement(D.Fragment,null,v&&D.createElement(O,{sideCar:Tv,removeScrollBar:y,shards:g,noRelative:w,noIsolation:x,inert:f,setCallbacks:a,allowPinchZoom:!!b,lockRef:r,gapMode:E}),l?D.cloneElement(D.Children.only(c),xr(xr({},B),{ref:k})):D.createElement(S,xr({},B,{className:h,ref:k}),c))});ma.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ma.classNames={fullWidth:Vs,zeroRight:Ks};var AT=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function OT(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=AT();return t&&e.setAttribute("nonce",t),e}function TT(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function RT(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var PT=function(){var e=0,t=null;return{add:function(r){e==0&&(t=OT())&&(TT(t,r),RT(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},CT=function(){var e=PT();return function(t,r){D.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Rv=function(){var e=CT(),t=function(r){var o=r.styles,s=r.dynamic;return e(o,s),null};return t},kT={left:0,top:0,right:0,gap:0},dl=function(e){return parseInt(e||"",10)||0},$T=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[dl(r),dl(o),dl(s)]},IT=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return kT;var t=$T(e),r=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-r+t[2]-t[0])}},LT=Rv(),si="data-scroll-locked",MT=function(e,t,r,o){var s=e.left,a=e.top,l=e.right,c=e.gap;return r===void 0&&(r="margin"),`
|
|
23
|
-
.`.concat(
|
|
24
|
-
overflow: hidden `).concat(
|
|
25
|
-
padding-right: `).concat(c,"px ").concat(
|
|
20
|
+
`)===-1)return null;let E="",R=0;for(;;){const k=h.indexOf(`
|
|
21
|
+
`,R),B=h.slice(R,k===-1?void 0:k+1);if(c(s,B)||(E+=B,k===-1||!B.trim()))break;R=k+1}const O=So(E);return O===""?null:[E,,O]}),i:3,u:bl,l:(h,S,E)=>d("p",{key:E.key},S(h.children,E))},22:{t:["["],o:Cn(YA),i:0,u:h=>(p[h[1]]={target:h[2],title:h[4]},{}),l:Sl},23:{t:["!["],o:sn(JA),i:0,u:h=>({alt:h[1]?br(h[1]):void 0,ref:h[2]}),l:(h,S,E)=>p[h.ref]?d("img",{key:E.key,alt:h.alt,src:i(p[h.ref].target,"img","src"),title:p[h.ref].title}):null},24:{t:h=>h[0]==="["&&h.indexOf("](")===-1,o:Cn(QA),i:0,u:(h,S,E)=>({children:S(h[1],E),fallbackChildren:h[0],ref:h[2]}),l:(h,S,E)=>p[h.ref]?d("a",{key:E.key,href:i(p[h.ref].target,"a","href"),title:p[h.ref].title},S(h.children,E)):d("span",{key:E.key},h.fallbackChildren)},25:{t:["|"],o:Br(Ph),i:1,u:OT,l(h,S,E){const R=h;return d("table",{key:E.key},d("thead",null,d("tr",null,R.header.map(function(O,k){return d("th",{key:k,style:Ih(R,k)},S(O,E))}))),d("tbody",null,R.cells.map(function(O,k){return d("tr",{key:k},O.map(function(B,M){return d("td",{key:M,style:Ih(R,M)},S(B,E))}))})))}},27:{o:xi(function(h,S){let E;return os(h,":")&&(E=cT.exec(h)),E||pT.exec(h)}),i:4,u(h){const S=h[0];return{text:S.indexOf("&")===-1?S:S.replace(HA,(E,R)=>t.namedCodesToUnicode[R]||E)}},l:h=>h.text},28:{t:["**","__"],o:sn(aT),i:2,u:(h,S,E)=>({children:S(h[2],E)}),l:(h,S,E)=>d("strong",{key:E.key},S(h.children,E))},29:{t:h=>{const S=h[0];return(S==="*"||S==="_")&&h[1]!==S},o:sn(sT),i:3,u:(h,S,E)=>({children:S(h[2],E)}),l:(h,S,E)=>d("em",{key:E.key},S(h.children,E))},30:{t:["\\"],o:sn(fT),i:1,u:h=>({text:h[1],type:"27"})},31:{t:["=="],o:sn(uT),i:3,u:bl,l:(h,S,E)=>d("mark",{key:E.key},S(h.children,E))},32:{t:["~~"],o:sn(lT),i:3,u:bl,l:(h,S,E)=>d("del",{key:E.key},S(h.children,E))}};t.disableParsingRawHTML===!0&&(delete w[11],delete w[13]);const x=(function(h){var S=Object.keys(h);function E(R,O){var k=[];if(O.prevCapture=O.prevCapture||"",R.trim())for(;R;)for(var B=0;B<S.length;){var M=S[B],F=h[M];if(!F.t||ET(R,O,F.t)){var G=F.o(R,O);if(G&&G[0]){R=R.substring(G[0].length);var N=F.u(G,E,O);O.prevCapture+=G[0],N.type||(N.type=M),k.push(N);break}B++}else B++}return O.prevCapture="",k}return S.sort(function(R,O){return h[R].i-h[O].i||(R<O?-1:1)}),function(R,O){return E((function(k){return k.replace(NA,`
|
|
22
|
+
`).replace(WA,"").replace(tT," ")})(R),O)}})(w),f=(function(h,S){return function E(R,O={}){if(Array.isArray(R)){const k=O.key,B=[];let M=!1;for(let F=0;F<R.length;F++){O.key=F;const G=E(R[F],O),N=kh(G);N&&M?B[B.length-1]+=G:G!==null&&B.push(G),M=N}return O.key=k,B}return(function(k,B,M){const F=h[k.type].l;return S?S(()=>F(k,B,M),k,B,M):F(k,B,M)})(R,E,O)}})(w,t.renderRule),b=m(e);return g.length?d("div",null,b,d("footer",{key:"footer"},g.map(function(h){return d("div",{id:r(h.identifier,Ui),key:h.identifier},h.identifier,f(x(h.footnote,{inline:!0})))}))):b}const gs=e=>{let{children:t="",options:r}=e,i=(function(a,s){if(a==null)return{};var l,c,d={},m=Object.keys(a);for(c=0;c<m.length;c++)s.indexOf(l=m[c])>=0||(d[l]=a[l]);return d})(e,TA);return $.cloneElement(kT(t,r),i)},Lh=({kind:e,customIcon:t})=>{if(t)return j.jsx(t,{className:"mr-1 h-6 w-6 flex-none"});switch(e){case"error":case"danger":return j.jsx(et.FdSanityCheckInfo,{className:"flex-none h-6 w-6"});case"info":return j.jsx(j.Fragment,{children:j.jsx(et.FdInfoBold,{className:"flex-none h-6 w-6"})});case"warning":return j.jsx(j.Fragment,{children:j.jsx(et.FdWarningDanger,{className:"flex-none h-6 w-6"})});case"message":return j.jsx(j.Fragment,{children:j.jsx(et.FdInfoBold,{className:"flex-none h-6 w-6"})});default:return null}},$T=({id:e,onClose:t,kind:r,message:i,markdown:a,customIcon:s})=>{const l=({className:c}={})=>j.jsx("button",{onClick:t,className:rt("flex items-center justify-center p-1",c),children:j.jsx(et.FdCloseNaked,{className:"h-5 w-5 font-thin stroke-current"})});return j.jsx("div",{className:rt("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"?j.jsxs("div",{className:"w-full flex items-center justify-between gap-x-3",children:[j.jsxs("div",{className:"flex items-center gap-1",children:[j.jsx(Lh,{kind:r,customIcon:s}),a?j.jsx(gs,{children:i}):j.jsx(j.Fragment,{children:i})]}),l()]}):j.jsxs("div",{className:"flex items-start",children:[j.jsx("div",{className:"flex flex-col gap-2 justify-between",children:i.filter(c=>c.messages.length>0).map(c=>j.jsxs(j.Fragment,{children:[c.title&&j.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[j.jsx(Lh,{kind:r,customIcon:s}),j.jsxs("span",{children:[c.title," :"]})]}),j.jsx("ul",{className:rt("list-disc",{"px-12":c.title,"px-6":!c.title}),children:c.messages.map(d=>j.jsx("li",{children:a?j.jsx(gs,{children:d}):j.jsx(j.Fragment,{children:d})}))})]}))}),l({className:"absolute top-1 right-1"})]})},e)},cm=({children:e,size:t,className:r,...i})=>j.jsx("div",{style:{"--width":`${t||24}px`},className:rt("h-6 flex items-center pr-1 w-[--width]",r),...i,children:e});var _l={},Hi={},ja={},Mh;function fm(){if(Mh)return ja;Mh=1,Object.defineProperty(ja,"__esModule",{value:!0}),ja.default=r;let e;const t=new Uint8Array(16);function r(){if(!e&&(e=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!e))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(t)}return ja}var li={},qi={},Zi={},Fh;function IT(){if(Fh)return Zi;Fh=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.default=void 0;var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return Zi.default=e,Zi}var Dh;function $s(){if(Dh)return qi;Dh=1,Object.defineProperty(qi,"__esModule",{value:!0}),qi.default=void 0;var e=t(IT());function t(a){return a&&a.__esModule?a:{default:a}}function r(a){return typeof a=="string"&&e.default.test(a)}var i=r;return qi.default=i,qi}var Nh;function Is(){if(Nh)return li;Nh=1,Object.defineProperty(li,"__esModule",{value:!0}),li.default=void 0,li.unsafeStringify=i;var e=t($s());function t(l){return l&&l.__esModule?l:{default:l}}const r=[];for(let l=0;l<256;++l)r.push((l+256).toString(16).slice(1));function i(l,c=0){return r[l[c+0]]+r[l[c+1]]+r[l[c+2]]+r[l[c+3]]+"-"+r[l[c+4]]+r[l[c+5]]+"-"+r[l[c+6]]+r[l[c+7]]+"-"+r[l[c+8]]+r[l[c+9]]+"-"+r[l[c+10]]+r[l[c+11]]+r[l[c+12]]+r[l[c+13]]+r[l[c+14]]+r[l[c+15]]}function a(l,c=0){const d=i(l,c);if(!(0,e.default)(d))throw TypeError("Stringified UUID is invalid");return d}var s=a;return li.default=s,li}var jh;function LT(){if(jh)return Hi;jh=1,Object.defineProperty(Hi,"__esModule",{value:!0}),Hi.default=void 0;var e=r(fm()),t=Is();function r(m){return m&&m.__esModule?m:{default:m}}let i,a,s=0,l=0;function c(m,v,g){let p=v&&g||0;const w=v||new Array(16);m=m||{};let x=m.node||i,f=m.clockseq!==void 0?m.clockseq:a;if(x==null||f==null){const O=m.random||(m.rng||e.default)();x==null&&(x=i=[O[0]|1,O[1],O[2],O[3],O[4],O[5]]),f==null&&(f=a=(O[6]<<8|O[7])&16383)}let b=m.msecs!==void 0?m.msecs:Date.now(),h=m.nsecs!==void 0?m.nsecs:l+1;const S=b-s+(h-l)/1e4;if(S<0&&m.clockseq===void 0&&(f=f+1&16383),(S<0||b>s)&&m.nsecs===void 0&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=b,l=h,a=f,b+=122192928e5;const E=((b&268435455)*1e4+h)%4294967296;w[p++]=E>>>24&255,w[p++]=E>>>16&255,w[p++]=E>>>8&255,w[p++]=E&255;const R=b/4294967296*1e4&268435455;w[p++]=R>>>8&255,w[p++]=R&255,w[p++]=R>>>24&15|16,w[p++]=R>>>16&255,w[p++]=f>>>8|128,w[p++]=f&255;for(let O=0;O<6;++O)w[p+O]=x[O];return v||(0,t.unsafeStringify)(w)}var d=c;return Hi.default=d,Hi}var Gi={},un={},Ki={},zh;function dm(){if(zh)return Ki;zh=1,Object.defineProperty(Ki,"__esModule",{value:!0}),Ki.default=void 0;var e=t($s());function t(a){return a&&a.__esModule?a:{default:a}}function r(a){if(!(0,e.default)(a))throw TypeError("Invalid UUID");let s;const l=new Uint8Array(16);return l[0]=(s=parseInt(a.slice(0,8),16))>>>24,l[1]=s>>>16&255,l[2]=s>>>8&255,l[3]=s&255,l[4]=(s=parseInt(a.slice(9,13),16))>>>8,l[5]=s&255,l[6]=(s=parseInt(a.slice(14,18),16))>>>8,l[7]=s&255,l[8]=(s=parseInt(a.slice(19,23),16))>>>8,l[9]=s&255,l[10]=(s=parseInt(a.slice(24,36),16))/1099511627776&255,l[11]=s/4294967296&255,l[12]=s>>>24&255,l[13]=s>>>16&255,l[14]=s>>>8&255,l[15]=s&255,l}var i=r;return Ki.default=i,Ki}var Wh;function pm(){if(Wh)return un;Wh=1,Object.defineProperty(un,"__esModule",{value:!0}),un.URL=un.DNS=void 0,un.default=l;var e=Is(),t=r(dm());function r(c){return c&&c.__esModule?c:{default:c}}function i(c){c=unescape(encodeURIComponent(c));const d=[];for(let m=0;m<c.length;++m)d.push(c.charCodeAt(m));return d}const a="6ba7b810-9dad-11d1-80b4-00c04fd430c8";un.DNS=a;const s="6ba7b811-9dad-11d1-80b4-00c04fd430c8";un.URL=s;function l(c,d,m){function v(g,p,w,x){var f;if(typeof g=="string"&&(g=i(g)),typeof p=="string"&&(p=(0,t.default)(p)),((f=p)===null||f===void 0?void 0:f.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let b=new Uint8Array(16+g.length);if(b.set(p),b.set(g,p.length),b=m(b),b[6]=b[6]&15|d,b[8]=b[8]&63|128,w){x=x||0;for(let h=0;h<16;++h)w[x+h]=b[h];return w}return(0,e.unsafeStringify)(b)}try{v.name=c}catch{}return v.DNS=a,v.URL=s,v}return un}var Vi={},Bh;function MT(){if(Bh)return Vi;Bh=1,Object.defineProperty(Vi,"__esModule",{value:!0}),Vi.default=void 0;function e(w){if(typeof w=="string"){const x=unescape(encodeURIComponent(w));w=new Uint8Array(x.length);for(let f=0;f<x.length;++f)w[f]=x.charCodeAt(f)}return t(i(a(w),w.length*8))}function t(w){const x=[],f=w.length*32,b="0123456789abcdef";for(let h=0;h<f;h+=8){const S=w[h>>5]>>>h%32&255,E=parseInt(b.charAt(S>>>4&15)+b.charAt(S&15),16);x.push(E)}return x}function r(w){return(w+64>>>9<<4)+14+1}function i(w,x){w[x>>5]|=128<<x%32,w[r(x)-1]=x;let f=1732584193,b=-271733879,h=-1732584194,S=271733878;for(let E=0;E<w.length;E+=16){const R=f,O=b,k=h,B=S;f=d(f,b,h,S,w[E],7,-680876936),S=d(S,f,b,h,w[E+1],12,-389564586),h=d(h,S,f,b,w[E+2],17,606105819),b=d(b,h,S,f,w[E+3],22,-1044525330),f=d(f,b,h,S,w[E+4],7,-176418897),S=d(S,f,b,h,w[E+5],12,1200080426),h=d(h,S,f,b,w[E+6],17,-1473231341),b=d(b,h,S,f,w[E+7],22,-45705983),f=d(f,b,h,S,w[E+8],7,1770035416),S=d(S,f,b,h,w[E+9],12,-1958414417),h=d(h,S,f,b,w[E+10],17,-42063),b=d(b,h,S,f,w[E+11],22,-1990404162),f=d(f,b,h,S,w[E+12],7,1804603682),S=d(S,f,b,h,w[E+13],12,-40341101),h=d(h,S,f,b,w[E+14],17,-1502002290),b=d(b,h,S,f,w[E+15],22,1236535329),f=m(f,b,h,S,w[E+1],5,-165796510),S=m(S,f,b,h,w[E+6],9,-1069501632),h=m(h,S,f,b,w[E+11],14,643717713),b=m(b,h,S,f,w[E],20,-373897302),f=m(f,b,h,S,w[E+5],5,-701558691),S=m(S,f,b,h,w[E+10],9,38016083),h=m(h,S,f,b,w[E+15],14,-660478335),b=m(b,h,S,f,w[E+4],20,-405537848),f=m(f,b,h,S,w[E+9],5,568446438),S=m(S,f,b,h,w[E+14],9,-1019803690),h=m(h,S,f,b,w[E+3],14,-187363961),b=m(b,h,S,f,w[E+8],20,1163531501),f=m(f,b,h,S,w[E+13],5,-1444681467),S=m(S,f,b,h,w[E+2],9,-51403784),h=m(h,S,f,b,w[E+7],14,1735328473),b=m(b,h,S,f,w[E+12],20,-1926607734),f=v(f,b,h,S,w[E+5],4,-378558),S=v(S,f,b,h,w[E+8],11,-2022574463),h=v(h,S,f,b,w[E+11],16,1839030562),b=v(b,h,S,f,w[E+14],23,-35309556),f=v(f,b,h,S,w[E+1],4,-1530992060),S=v(S,f,b,h,w[E+4],11,1272893353),h=v(h,S,f,b,w[E+7],16,-155497632),b=v(b,h,S,f,w[E+10],23,-1094730640),f=v(f,b,h,S,w[E+13],4,681279174),S=v(S,f,b,h,w[E],11,-358537222),h=v(h,S,f,b,w[E+3],16,-722521979),b=v(b,h,S,f,w[E+6],23,76029189),f=v(f,b,h,S,w[E+9],4,-640364487),S=v(S,f,b,h,w[E+12],11,-421815835),h=v(h,S,f,b,w[E+15],16,530742520),b=v(b,h,S,f,w[E+2],23,-995338651),f=g(f,b,h,S,w[E],6,-198630844),S=g(S,f,b,h,w[E+7],10,1126891415),h=g(h,S,f,b,w[E+14],15,-1416354905),b=g(b,h,S,f,w[E+5],21,-57434055),f=g(f,b,h,S,w[E+12],6,1700485571),S=g(S,f,b,h,w[E+3],10,-1894986606),h=g(h,S,f,b,w[E+10],15,-1051523),b=g(b,h,S,f,w[E+1],21,-2054922799),f=g(f,b,h,S,w[E+8],6,1873313359),S=g(S,f,b,h,w[E+15],10,-30611744),h=g(h,S,f,b,w[E+6],15,-1560198380),b=g(b,h,S,f,w[E+13],21,1309151649),f=g(f,b,h,S,w[E+4],6,-145523070),S=g(S,f,b,h,w[E+11],10,-1120210379),h=g(h,S,f,b,w[E+2],15,718787259),b=g(b,h,S,f,w[E+9],21,-343485551),f=s(f,R),b=s(b,O),h=s(h,k),S=s(S,B)}return[f,b,h,S]}function a(w){if(w.length===0)return[];const x=w.length*8,f=new Uint32Array(r(x));for(let b=0;b<x;b+=8)f[b>>5]|=(w[b/8]&255)<<b%32;return f}function s(w,x){const f=(w&65535)+(x&65535);return(w>>16)+(x>>16)+(f>>16)<<16|f&65535}function l(w,x){return w<<x|w>>>32-x}function c(w,x,f,b,h,S){return s(l(s(s(x,w),s(b,S)),h),f)}function d(w,x,f,b,h,S,E){return c(x&f|~x&b,w,x,h,S,E)}function m(w,x,f,b,h,S,E){return c(x&b|f&~b,w,x,h,S,E)}function v(w,x,f,b,h,S,E){return c(x^f^b,w,x,h,S,E)}function g(w,x,f,b,h,S,E){return c(f^(x|~b),w,x,h,S,E)}var p=e;return Vi.default=p,Vi}var Uh;function FT(){if(Uh)return Gi;Uh=1,Object.defineProperty(Gi,"__esModule",{value:!0}),Gi.default=void 0;var e=r(pm()),t=r(MT());function r(s){return s&&s.__esModule?s:{default:s}}var a=(0,e.default)("v3",48,t.default);return Gi.default=a,Gi}var Xi={},Yi={},Hh;function DT(){if(Hh)return Yi;Hh=1,Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return Yi.default=t,Yi}var qh;function NT(){if(qh)return Xi;qh=1,Object.defineProperty(Xi,"__esModule",{value:!0}),Xi.default=void 0;var e=i(DT()),t=i(fm()),r=Is();function i(l){return l&&l.__esModule?l:{default:l}}function a(l,c,d){if(e.default.randomUUID&&!c&&!l)return e.default.randomUUID();l=l||{};const m=l.random||(l.rng||t.default)();if(m[6]=m[6]&15|64,m[8]=m[8]&63|128,c){d=d||0;for(let v=0;v<16;++v)c[d+v]=m[v];return c}return(0,r.unsafeStringify)(m)}var s=a;return Xi.default=s,Xi}var Ji={},Qi={},Zh;function jT(){if(Zh)return Qi;Zh=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.default=void 0;function e(a,s,l,c){switch(a){case 0:return s&l^~s&c;case 1:return s^l^c;case 2:return s&l^s&c^l&c;case 3:return s^l^c}}function t(a,s){return a<<s|a>>>32-s}function r(a){const s=[1518500249,1859775393,2400959708,3395469782],l=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof a=="string"){const v=unescape(encodeURIComponent(a));a=[];for(let g=0;g<v.length;++g)a.push(v.charCodeAt(g))}else Array.isArray(a)||(a=Array.prototype.slice.call(a));a.push(128);const c=a.length/4+2,d=Math.ceil(c/16),m=new Array(d);for(let v=0;v<d;++v){const g=new Uint32Array(16);for(let p=0;p<16;++p)g[p]=a[v*64+p*4]<<24|a[v*64+p*4+1]<<16|a[v*64+p*4+2]<<8|a[v*64+p*4+3];m[v]=g}m[d-1][14]=(a.length-1)*8/Math.pow(2,32),m[d-1][14]=Math.floor(m[d-1][14]),m[d-1][15]=(a.length-1)*8&4294967295;for(let v=0;v<d;++v){const g=new Uint32Array(80);for(let h=0;h<16;++h)g[h]=m[v][h];for(let h=16;h<80;++h)g[h]=t(g[h-3]^g[h-8]^g[h-14]^g[h-16],1);let p=l[0],w=l[1],x=l[2],f=l[3],b=l[4];for(let h=0;h<80;++h){const S=Math.floor(h/20),E=t(p,5)+e(S,w,x,f)+b+s[S]+g[h]>>>0;b=f,f=x,x=t(w,30)>>>0,w=p,p=E}l[0]=l[0]+p>>>0,l[1]=l[1]+w>>>0,l[2]=l[2]+x>>>0,l[3]=l[3]+f>>>0,l[4]=l[4]+b>>>0}return[l[0]>>24&255,l[0]>>16&255,l[0]>>8&255,l[0]&255,l[1]>>24&255,l[1]>>16&255,l[1]>>8&255,l[1]&255,l[2]>>24&255,l[2]>>16&255,l[2]>>8&255,l[2]&255,l[3]>>24&255,l[3]>>16&255,l[3]>>8&255,l[3]&255,l[4]>>24&255,l[4]>>16&255,l[4]>>8&255,l[4]&255]}var i=r;return Qi.default=i,Qi}var Gh;function zT(){if(Gh)return Ji;Gh=1,Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.default=void 0;var e=r(pm()),t=r(jT());function r(s){return s&&s.__esModule?s:{default:s}}var a=(0,e.default)("v5",80,t.default);return Ji.default=a,Ji}var eo={},Kh;function WT(){if(Kh)return eo;Kh=1,Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=void 0;var e="00000000-0000-0000-0000-000000000000";return eo.default=e,eo}var to={},Vh;function BT(){if(Vh)return to;Vh=1,Object.defineProperty(to,"__esModule",{value:!0}),to.default=void 0;var e=t($s());function t(a){return a&&a.__esModule?a:{default:a}}function r(a){if(!(0,e.default)(a))throw TypeError("Invalid UUID");return parseInt(a.slice(14,15),16)}var i=r;return to.default=i,to}var Xh;function UT(){return Xh||(Xh=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return l.default}});var t=v(LT()),r=v(FT()),i=v(NT()),a=v(zT()),s=v(WT()),l=v(BT()),c=v($s()),d=v(Is()),m=v(dm());function v(g){return g&&g.__esModule?g:{default:g}}})(_l)),_l}var Ol,Yh;function HT(){if(Yh)return Ol;Yh=1;function e(t,r){if(!t||!r||!t.length||!r.length)throw new Error("Bad alphabet");this.srcAlphabet=t,this.dstAlphabet=r}return e.prototype.convert=function(t){var r,i,a,s={},l=this.srcAlphabet.length,c=this.dstAlphabet.length,d=t.length,m=typeof t=="string"?"":[];if(!this.isValid(t))throw new Error('Number "'+t+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return t;for(r=0;r<d;r++)s[r]=this.srcAlphabet.indexOf(t[r]);do{for(i=0,a=0,r=0;r<d;r++)i=i*l+s[r],i>=c?(s[a++]=parseInt(i/c,10),i=i%c):a>0&&(s[a++]=0);d=a,m=this.dstAlphabet.slice(i,i+1).concat(m)}while(a!==0);return m},e.prototype.isValid=function(t){for(var r=0;r<t.length;++r)if(this.srcAlphabet.indexOf(t[r])===-1)return!1;return!0},Ol=e,Ol}var Al,Jh;function qT(){if(Jh)return Al;Jh=1;var e=HT();function t(r,i){var a=new e(r,i);return function(s){return a.convert(s)}}return t.BIN="01",t.OCT="01234567",t.DEC="0123456789",t.HEX="0123456789abcdef",Al=t,Al}var Tl,Qh;function ZT(){if(Qh)return Tl;Qh=1;const{v4:e,validate:t}=UT(),r=qT(),i={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},a={consistentLength:!0};let s;const l=(m,v,g)=>{const p=v(m.toLowerCase().replace(/-/g,""));return!g||!g.consistentLength?p:p.padStart(g.shortIdLength,g.paddingChar)},c=(m,v)=>{const p=v(m).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[p[1],p[2],p[3],p[4],p[5]].join("-")},d=m=>Math.ceil(Math.log(2**128)/Math.log(m));return Tl=(()=>{const m=(v,g)=>{const p=v||i.flickrBase58,w={...a,...g};if([...new Set(Array.from(p))].length!==p.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const x=d(p.length),f={shortIdLength:x,consistentLength:w.consistentLength,paddingChar:p[0]},b=r(r.HEX,p),h=r(p,r.HEX),S=()=>l(e(),b,f),R={alphabet:p,fromUUID:O=>l(O,b,f),maxLength:x,generate:S,new:S,toUUID:O=>c(O,h),uuid:e,validate:(O,k=!1)=>{if(!O||typeof O!="string")return!1;const B=w.consistentLength?O.length===x:O.length<=x,M=O.split("").every(F=>p.includes(F));return k===!1?B&&M:B&&M&&t(c(O,h))}};return Object.freeze(R),R};return m.constants=i,m.uuid=e,m.generate=()=>(s||(s=m(i.flickrBase58).generate),s()),m})(),Tl}var Bc=ZT();const hm=({depth:e,height:t=24,width:r=11,showLines:i=!0,stroke:a="rgb(241, 245, 249)"})=>{const s=`indent_line_${Bc.generate()}`;return j.jsxs("svg",{viewBox:`0 0 ${11*e} ${t}`,width:`${11*e}`,height:t,children:[j.jsx("defs",{children:j.jsx("pattern",{id:s,x:"0",y:"0",width:r,height:t,patternUnits:"userSpaceOnUse",children:j.jsx("line",{x1:r/2,y1:"0",x2:r/2,y2:t,stroke:a})})}),i?j.jsx("rect",{fill:`url(#${s})`,x:"0",y:"0",width:`${11*e}`,height:t}):j.jsx("rect",{fill:i?`url(#${s})`:"",x:"0",y:"0",width:0,height:t})]})},gm=({show:e,expanded:t,onClick:r,variant:i="arrow"})=>e?j.jsx("div",{className:"flex h-6 w-5 items-center",onClick:a=>r&&r(a),children:(()=>{switch(i){case"arrow":return j.jsx(et.FdDown,{className:rt(["h-3 w-3 transform text-grey-50 transition ease-in-out",{"rotate-0":t,"-rotate-90":!t}])});case"caret":return t?j.jsx(et.FdDown,{}):j.jsx(et.FdRight,{});default:return j.jsx(et.FdDown,{className:"h-3 w-3 transform text-grey-50 transition ease-in-out"})}})()}):j.jsx("div",{className:"flex h-6 w-3 items-center"}),Uc=({node:e,depth:t,expandedKeys:r,selectedKeys:i,actions:a,searchQuery:s,renderNode:l,onNodeClick:c})=>{var w;const{key:d,children:m}=e,v=W.useMemo(()=>({expanded:r.includes(e.key),selected:i.includes(e.key)}),[r,e.key,i]),g=l&&typeof l=="function"?l(e,t,v,a,s):VT(e,t,v,c);return!((w=e.options)!=null&&w.filterable)||!s||e.title.toLowerCase().includes(s.toLowerCase())?j.jsxs(j.Fragment,{children:[j.jsx("div",{className:"flex items-center space-x-2",children:g},d),KT(m||[],t,s,r,i,v.expanded,a,c,l)]}):null},GT=function(e,t){var l;const{title:r,icon:i,subtitle:a}=e;let s=null;return i&&(s=j.jsx(cm,{children:i})),j.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,j.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:r}),a&&j.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:a})]})},KT=function(e,t,r,i,a,s,l,c,d){return e.length&&s?e.map(m=>j.jsx(Uc,{actions:l,node:m,searchQuery:r,depth:t+1,expandedKeys:i,selectedKeys:a,onNodeClick:c,renderNode:d},m.key)):null},VT=function(e,t,r,i){return j.jsxs(j.Fragment,{children:[j.jsx(hm,{showLines:!0,depth:t}),j.jsx(gm,{show:e.children&&e.children.length>0||!1,expanded:r.expanded}),GT(e,i)]})},za=e=>t=>e===t,XT=function({treeData:t,renderNode:r,onNodeClick:i,onExpandNode:a,searchQuery:s,expandedKeys:l,expandCondition:c="always",encapsulated:d,className:m}){const[v,g]=W.useState(()=>({expandedKeys:l||[],selectedKeys:[]}));W.useEffect(()=>{c==="when-collapsed"&&v.expandedKeys.length>0||g({...v,expandedKeys:l||v.expandedKeys})},[l]);const p=W.useCallback(h=>{if(!h)return;const S=v.expandedKeys.findIndex(za(h.key));let E=[];S===-1?(E=[...v.expandedKeys,h.key],g(()=>({...v,expandedKeys:E})),a&&a(E)):(E=v.expandedKeys.filter(R=>R!==h.key),g(()=>({...v,expandedKeys:E})),a&&a(E))},[v]),w=W.useCallback(h=>{var E;if(!((E=h==null?void 0:h.options)!=null&&E.selectable))return;v.selectedKeys.findIndex(za(h.key))===-1&&g({...v,selectedKeys:[...v.selectedKeys,h.key]})},[v]),x=W.useCallback(h=>{var E;if(!((E=h==null?void 0:h.options)!=null&&E.selectable))return;v.selectedKeys.findIndex(za(h.key))===-1&&g({...v,selectedKeys:[h.key]})},[v]),f=W.useCallback(h=>{var E;if(!((E=h==null?void 0:h.options)!=null&&E.selectable)){g({...v,selectedKeys:[]});return}v.selectedKeys.findIndex(za(h.key))!==-1&&g({...v,selectedKeys:v.selectedKeys.filter(R=>R!==h.key)})},[v]),b=W.useMemo(()=>({expand:p,select:w,selectSingle:x,deselect:f}),[f,p,w,x]);return j.jsx("div",{className:rt("fd-tree",m,{"pl-2 mb-1 rounded border bg-grey-900 p-1":d}),children:t.map(h=>j.jsx(Uc,{node:h,searchQuery:s||"",depth:0,expandedKeys:v.expandedKeys,selectedKeys:v.selectedKeys,actions:b,renderNode:r,onNodeClick:i},h.key))})};function ss(e){return e.of&&e.children?j.jsx(j.Fragment,{children:e.children}):null}function Ke(){return Ke=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},Ke.apply(null,arguments)}function YT(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 JT={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 vm(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var QT=/[A-Z]|^ms/g,eR=/_EMO_([^_]+?)_([^]*?)_EMO_/g,mm=function(t){return t.charCodeAt(1)===45},eg=function(t){return t!=null&&typeof t!="boolean"},Rl=vm(function(e){return mm(e)?e:e.replace(QT,"-$&").toLowerCase()}),tg=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(eR,function(i,a,s){return _r={name:a,styles:s,next:_r},a})}return JT[t]!==1&&!mm(t)&&typeof r=="number"&&r!==0?r+"px":r};function To(e,t,r){if(r==null)return"";var i=r;if(i.__emotion_styles!==void 0)return i;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return _r={name:a.name,styles:a.styles,next:_r},a.name;var s=r;if(s.styles!==void 0){var l=s.next;if(l!==void 0)for(;l!==void 0;)_r={name:l.name,styles:l.styles,next:_r},l=l.next;var c=s.styles+";";return c}return tR(e,t,r)}case"function":{if(e!==void 0){var d=_r,m=r(e);return _r=d,To(e,t,m)}break}}var v=r;if(t==null)return v;var g=t[v];return g!==void 0?g:v}function tR(e,t,r){var i="";if(Array.isArray(r))for(var a=0;a<r.length;a++)i+=To(e,t,r[a])+";";else for(var s in r){var l=r[s];if(typeof l!="object"){var c=l;t!=null&&t[c]!==void 0?i+=s+"{"+t[c]+"}":eg(c)&&(i+=Rl(s)+":"+tg(s,c)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var d=0;d<l.length;d++)eg(l[d])&&(i+=Rl(s)+":"+tg(s,l[d])+";");else{var m=To(e,t,l);switch(s){case"animation":case"animationName":{i+=Rl(s)+":"+m+";";break}default:i+=s+"{"+m+"}"}}}return i}var rg=/label:\s*([^\s;{]+)\s*(;|$)/g,_r;function rR(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,a="";_r=void 0;var s=e[0];if(s==null||s.raw===void 0)i=!1,a+=To(r,t,s);else{var l=s;a+=l[0]}for(var c=1;c<e.length;c++)if(a+=To(r,t,e[c]),i){var d=s;a+=d[c]}rg.lastIndex=0;for(var m="",v;(v=rg.exec(a))!==null;)m+="-"+v[1];var g=YT(a)+m;return{name:g,styles:a,next:_r}}var nR=function(t){return t()},iR=$.useInsertionEffect?$.useInsertionEffect:!1,oR=iR||nR,aR=!0;function sR(e,t,r){var i="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(i+=a+" ")}),i}var ym=function(t,r,i){var a=t.key+"-"+r.name;(i===!1||aR===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},uR=function(t,r,i){ym(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)}},lR=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,cR=vm(function(e){return lR.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),fR=cR,dR=function(t){return t!=="theme"},ng=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?fR:dR},ig=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},pR=function(t){var r=t.cache,i=t.serialized,a=t.isStringTag;return ym(r,i,a),oR(function(){return uR(r,i,a)}),null},hR=function e(t,r){var i=t.__emotion_real===t,a=i&&t.__emotion_base||t,s,l;r!==void 0&&(s=r.label,l=r.target);var c=ig(t,r,i),d=c||ng(a),m=!d("as");return function(){var v=arguments,g=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&g.push("label:"+s+";"),v[0]==null||v[0].raw===void 0)g.push.apply(g,v);else{var p=v[0];g.push(p[0]);for(var w=v.length,x=1;x<w;x++)g.push(v[x],p[x])}var f=ac.withEmotionCache(function(b,h,S){var E=m&&b.as||a,R="",O=[],k=b;if(b.theme==null){k={};for(var B in b)k[B]=b[B];k.theme=$.useContext(ac.ThemeContext)}typeof b.className=="string"?R=sR(h.registered,O,b.className):b.className!=null&&(R=b.className+" ");var M=rR(g.concat(O),h.registered,k);R+=h.key+"-"+M.name,l!==void 0&&(R+=" "+l);var F=m&&c===void 0?ng(E):d,G={};for(var N in b)m&&N==="as"||F(N)&&(G[N]=b[N]);return G.className=R,S&&(G.ref=S),$.createElement($.Fragment,null,$.createElement(pR,{cache:h,serialized:M,isStringTag:typeof E=="string"}),$.createElement(E,G))});return f.displayName=s!==void 0?s:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=a,f.__emotion_styles=g,f.__emotion_forwardProp=c,Object.defineProperty(f,"toString",{value:function(){return"."+l}}),f.withComponent=function(b,h){var S=e(b,Ke({},r,h,{shouldForwardProp:ig(f,h,!0)}));return S.apply(void 0,g)},f}},gR=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],vs=hR.bind(null);gR.forEach(function(e){vs[e]=vs(e)});var vR=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ci=new WeakMap,Wa=new WeakMap,Ba={},Pl=0,wm=function(e){return e&&(e.host||wm(e.parentNode))},mR=function(e,t){return t.map(function(r){if(e.contains(r))return r;var i=wm(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})},yR=function(e,t,r,i){var a=mR(t,Array.isArray(e)?e:[e]);Ba[r]||(Ba[r]=new WeakMap);var s=Ba[r],l=[],c=new Set,d=new Set(a),m=function(g){!g||c.has(g)||(c.add(g),m(g.parentNode))};a.forEach(m);var v=function(g){!g||d.has(g)||Array.prototype.forEach.call(g.children,function(p){if(c.has(p))v(p);else try{var w=p.getAttribute(i),x=w!==null&&w!=="false",f=(ci.get(p)||0)+1,b=(s.get(p)||0)+1;ci.set(p,f),s.set(p,b),l.push(p),f===1&&x&&Wa.set(p,!0),b===1&&p.setAttribute(r,"true"),x||p.setAttribute(i,"true")}catch(h){console.error("aria-hidden: cannot operate on ",p,h)}})};return v(t),c.clear(),Pl++,function(){l.forEach(function(g){var p=ci.get(g)-1,w=s.get(g)-1;ci.set(g,p),s.set(g,w),p||(Wa.has(g)||g.removeAttribute(i),Wa.delete(g)),w||g.removeAttribute(r)}),Pl--,Pl||(ci=new WeakMap,ci=new WeakMap,Wa=new WeakMap,Ba={})}},wR=function(e,t,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),a=vR(e);return a?(i.push.apply(i,Array.from(a.querySelectorAll("[aria-live], script"))),yR(i,a,r,"aria-hidden")):function(){return null}},lc=function(e,t){return lc=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])},lc(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");lc(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Or=function(){return Or=Object.assign||function(t){for(var r,i=1,a=arguments.length;i<a;i++){r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},Or.apply(this,arguments)};function bm(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 cc(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 fc(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),a,s=[],l;try{for(;(t===void 0||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(c){l={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(l)throw l.error}}return s}function ms(e,t,r){if(r||arguments.length===2)for(var i=0,a=t.length,s;i<a;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return e.concat(s||Array.prototype.slice.call(t))}var us="right-scroll-bar-position",ls="width-before-scroll-bar",bR="with-scroll-bars-hidden",xR="--removed-body-scroll-bar-size";function Cl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function SR(e,t){var r=W.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(i){var a=r.value;a!==i&&(r.value=i,r.callback(i,a))}}}})[0];return r.callback=t,r.facade}var ER=typeof window<"u"?$.useLayoutEffect:$.useEffect,og=new WeakMap;function _R(e,t){var r=SR(null,function(i){return e.forEach(function(a){return Cl(a,i)})});return ER(function(){var i=og.get(r);if(i){var a=new Set(i),s=new Set(e),l=r.current;a.forEach(function(c){s.has(c)||Cl(c,null)}),s.forEach(function(c){a.has(c)||Cl(c,l)})}og.set(r,e)},[e]),r}function OR(e){return e}function AR(e,t){t===void 0&&(t=OR);var r=[],i=!1,a={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(s){var l=t(s,i);return r.push(l),function(){r=r.filter(function(c){return c!==l})}},assignSyncMedium:function(s){for(i=!0;r.length;){var l=r;r=[],l.forEach(s)}r={push:function(c){return s(c)},filter:function(){return r}}},assignMedium:function(s){i=!0;var l=[];if(r.length){var c=r;r=[],c.forEach(s),l=r}var d=function(){var v=l;l=[],v.forEach(s)},m=function(){return Promise.resolve().then(d)};m(),r={push:function(v){l.push(v),m()},filter:function(v){return l=l.filter(v),r}}}};return a}function TR(e){e===void 0&&(e={});var t=AR(null);return t.options=Or({async:!0,ssr:!1},e),t}var xm=function(e){var t=e.sideCar,r=bm(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return $.createElement(i,Or({},r))};xm.isSideCarExport=!0;function RR(e,t){return e.useMedium(t),xm}var Sm=TR(),kl=function(){},Ms=$.forwardRef(function(e,t){var r=$.useRef(null),i=$.useState({onScrollCapture:kl,onWheelCapture:kl,onTouchMoveCapture:kl}),a=i[0],s=i[1],l=e.forwardProps,c=e.children,d=e.className,m=e.removeScrollBar,v=e.enabled,g=e.shards,p=e.sideCar,w=e.noRelative,x=e.noIsolation,f=e.inert,b=e.allowPinchZoom,h=e.as,S=h===void 0?"div":h,E=e.gapMode,R=bm(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=p,k=_R([r,t]),B=Or(Or({},R),a);return $.createElement($.Fragment,null,v&&$.createElement(O,{sideCar:Sm,removeScrollBar:m,shards:g,noRelative:w,noIsolation:x,inert:f,setCallbacks:s,allowPinchZoom:!!b,lockRef:r,gapMode:E}),l?$.cloneElement($.Children.only(c),Or(Or({},B),{ref:k})):$.createElement(S,Or({},B,{className:d,ref:k}),c))});Ms.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ms.classNames={fullWidth:ls,zeroRight:us};var PR=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function CR(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=PR();return t&&e.setAttribute("nonce",t),e}function kR(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function $R(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var IR=function(){var e=0,t=null;return{add:function(r){e==0&&(t=CR())&&(kR(t,r),$R(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},LR=function(){var e=IR();return function(t,r){$.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Em=function(){var e=LR(),t=function(r){var i=r.styles,a=r.dynamic;return e(i,a),null};return t},MR={left:0,top:0,right:0,gap:0},$l=function(e){return parseInt(e||"",10)||0},FR=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[$l(r),$l(i),$l(a)]},DR=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return MR;var t=FR(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])}},NR=Em(),hi="data-scroll-locked",jR=function(e,t,r,i){var a=e.left,s=e.top,l=e.right,c=e.gap;return r===void 0&&(r="margin"),`
|
|
23
|
+
.`.concat(bR,` {
|
|
24
|
+
overflow: hidden `).concat(i,`;
|
|
25
|
+
padding-right: `).concat(c,"px ").concat(i,`;
|
|
26
26
|
}
|
|
27
|
-
body[`).concat(
|
|
28
|
-
overflow: hidden `).concat(
|
|
27
|
+
body[`).concat(hi,`] {
|
|
28
|
+
overflow: hidden `).concat(i,`;
|
|
29
29
|
overscroll-behavior: contain;
|
|
30
|
-
`).concat([t&&"position: relative ".concat(
|
|
31
|
-
padding-left: `.concat(
|
|
32
|
-
padding-top: `).concat(
|
|
30
|
+
`).concat([t&&"position: relative ".concat(i,";"),r==="margin"&&`
|
|
31
|
+
padding-left: `.concat(a,`px;
|
|
32
|
+
padding-top: `).concat(s,`px;
|
|
33
33
|
padding-right: `).concat(l,`px;
|
|
34
34
|
margin-left:0;
|
|
35
35
|
margin-top:0;
|
|
36
|
-
margin-right: `).concat(c,"px ").concat(
|
|
37
|
-
`),r==="padding"&&"padding-right: ".concat(c,"px ").concat(
|
|
36
|
+
margin-right: `).concat(c,"px ").concat(i,`;
|
|
37
|
+
`),r==="padding"&&"padding-right: ".concat(c,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
.`).concat(
|
|
41
|
-
right: `).concat(c,"px ").concat(
|
|
40
|
+
.`).concat(us,` {
|
|
41
|
+
right: `).concat(c,"px ").concat(i,`;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
.`).concat(
|
|
45
|
-
margin-right: `).concat(c,"px ").concat(
|
|
44
|
+
.`).concat(ls,` {
|
|
45
|
+
margin-right: `).concat(c,"px ").concat(i,`;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
.`).concat(
|
|
49
|
-
right: 0 `).concat(
|
|
48
|
+
.`).concat(us," .").concat(us,` {
|
|
49
|
+
right: 0 `).concat(i,`;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
.`).concat(
|
|
53
|
-
margin-right: 0 `).concat(
|
|
52
|
+
.`).concat(ls," .").concat(ls,` {
|
|
53
|
+
margin-right: 0 `).concat(i,`;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
body[`).concat(
|
|
57
|
-
`).concat(
|
|
56
|
+
body[`).concat(hi,`] {
|
|
57
|
+
`).concat(xR,": ").concat(c,`px;
|
|
58
58
|
}
|
|
59
|
-
`)},
|
|
59
|
+
`)},ag=function(){var e=parseInt(document.body.getAttribute(hi)||"0",10);return isFinite(e)?e:0},zR=function(){$.useEffect(function(){return document.body.setAttribute(hi,(ag()+1).toString()),function(){var e=ag()-1;e<=0?document.body.removeAttribute(hi):document.body.setAttribute(hi,e.toString())}},[])},WR=function(e){var t=e.noRelative,r=e.noImportant,i=e.gapMode,a=i===void 0?"margin":i;zR();var s=$.useMemo(function(){return DR(a)},[a]);return $.createElement(NR,{styles:jR(s,!t,a,r?"":"!important")})},dc=!1;if(typeof window<"u")try{var Ua=Object.defineProperty({},"passive",{get:function(){return dc=!0,!0}});window.addEventListener("test",Ua,Ua),window.removeEventListener("test",Ua,Ua)}catch{dc=!1}var fi=dc?{passive:!1}:!1,BR=function(e){return e.tagName==="TEXTAREA"},_m=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!BR(e)&&r[t]==="visible")},UR=function(e){return _m(e,"overflowY")},HR=function(e){return _m(e,"overflowX")},sg=function(e,t){var r=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var a=Om(e,i);if(a){var s=Am(e,i),l=s[1],c=s[2];if(l>c)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},qR=function(e){var t=e.scrollTop,r=e.scrollHeight,i=e.clientHeight;return[t,r,i]},ZR=function(e){var t=e.scrollLeft,r=e.scrollWidth,i=e.clientWidth;return[t,r,i]},Om=function(e,t){return e==="v"?UR(t):HR(t)},Am=function(e,t){return e==="v"?qR(t):ZR(t)},GR=function(e,t){return e==="h"&&t==="rtl"?-1:1},KR=function(e,t,r,i,a){var s=GR(e,window.getComputedStyle(t).direction),l=s*i,c=r.target,d=t.contains(c),m=!1,v=l>0,g=0,p=0;do{if(!c)break;var w=Am(e,c),x=w[0],f=w[1],b=w[2],h=f-b-s*x;(x||h)&&Om(e,c)&&(g+=h,p+=x);var S=c.parentNode;c=S&&S.nodeType===Node.DOCUMENT_FRAGMENT_NODE?S.host:S}while(!d&&c!==document.body||d&&(t.contains(c)||t===c));return(v&&Math.abs(g)<1||!v&&Math.abs(p)<1)&&(m=!0),m},Ha=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ug=function(e){return[e.deltaX,e.deltaY]},lg=function(e){return e&&"current"in e?e.current:e},VR=function(e,t){return e[0]===t[0]&&e[1]===t[1]},XR=function(e){return`
|
|
60
60
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
61
61
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
62
|
-
`)},GT=0,ii=[];function KT(e){var t=D.useRef([]),r=D.useRef([0,0]),o=D.useRef(),s=D.useState(GT++)[0],a=D.useState(Rv)[0],l=D.useRef(e);D.useEffect(function(){l.current=e},[e]),D.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var f=ra([e.lockRef.current],(e.shards||[]).map(Eh),!0).filter(Boolean);return f.forEach(function(b){return b.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),f.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var c=D.useCallback(function(f,b){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!l.current.allowPinchZoom;var p=ks(f),S=r.current,E="deltaX"in f?f.deltaX:S[0]-p[0],R="deltaY"in f?f.deltaY:S[1]-p[1],O,k=f.target,B=Math.abs(E)>Math.abs(R)?"h":"v";if("touches"in f&&B==="h"&&k.type==="range")return!1;var L=xh(B,k);if(!L)return!0;if(L?O=B:(O=B==="v"?"h":"v",L=xh(B,k)),!L)return!1;if(!o.current&&"changedTouches"in f&&(E||R)&&(o.current=O),!O)return!0;var M=o.current||O;return HT(M,b,f,M==="h"?E:R)},[]),h=D.useCallback(function(f){var b=f;if(!(!ii.length||ii[ii.length-1]!==a)){var p="deltaY"in b?Sh(b):ks(b),S=t.current.filter(function(O){return O.name===b.type&&(O.target===b.target||b.target===O.shadowParent)&&qT(O.delta,p)})[0];if(S&&S.should){b.cancelable&&b.preventDefault();return}if(!S){var E=(l.current.shards||[]).map(Eh).filter(Boolean).filter(function(O){return O.contains(b.target)}),R=E.length>0?c(b,E[0]):!l.current.noIsolation;R&&b.cancelable&&b.preventDefault()}}},[]),y=D.useCallback(function(f,b,p,S){var E={name:f,delta:b,target:p,should:S,shadowParent:VT(p)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(R){return R!==E})},1)},[]),v=D.useCallback(function(f){r.current=ks(f),o.current=void 0},[]),g=D.useCallback(function(f){y(f.type,Sh(f),f.target,c(f,e.lockRef.current))},[]),d=D.useCallback(function(f){y(f.type,ks(f),f.target,c(f,e.lockRef.current))},[]);D.useEffect(function(){return ii.push(a),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:d}),document.addEventListener("wheel",h,ni),document.addEventListener("touchmove",h,ni),document.addEventListener("touchstart",v,ni),function(){ii=ii.filter(function(f){return f!==a}),document.removeEventListener("wheel",h,ni),document.removeEventListener("touchmove",h,ni),document.removeEventListener("touchstart",v,ni)}},[]);var w=e.removeScrollBar,x=e.inert;return D.createElement(D.Fragment,null,x?D.createElement(a,{styles:ZT(s)}):null,w?D.createElement(DT,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function VT(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const YT=_T(Tv,KT);var $v=D.forwardRef(function(e,t){return D.createElement(ma,xr({},e,{ref:t,sideCar:YT}))});$v.classNames=ma.classNames;const XT=globalThis!=null&&globalThis.document?D.useLayoutEffect:()=>{},JT=D.useId||(()=>{});let QT=0;function eR(e){const[t,r]=D.useState(JT());return XT((()=>{r((o=>o??String(QT++)))}),[e]),e||(t?`radix-${t}`:"")}function Iv(...e){return t=>e.forEach((r=>(function(o,s){typeof o=="function"?o(s):o!=null&&(o.current=s)})(r,t)))}function Dn(...e){return D.useCallback(Iv(...e),e)}const Lv=D.forwardRef(((e,t)=>{const{children:r,...o}=e;return D.Children.toArray(r).some(_h)?D.createElement(D.Fragment,null,D.Children.map(r,(s=>_h(s)?D.createElement(Bl,ft({},o,{ref:t}),s.props.children):s))):D.createElement(Bl,ft({},o,{ref:t}),r)}));Lv.displayName="Slot";const Bl=D.forwardRef(((e,t)=>{const{children:r,...o}=e;return D.isValidElement(r)?D.cloneElement(r,{...rR(o,r.props),ref:Iv(t,r.ref)}):D.Children.count(r)>1?D.Children.only(null):null}));Bl.displayName="SlotClone";const tR=({children:e})=>D.createElement(D.Fragment,null,e);function _h(e){return D.isValidElement(e)&&e.type===tR}function rR(e,t){const r={...t};for(const o in t){const s=e[o],a=t[o];/^on[A-Z]/.test(o)?r[o]=(...l)=>{a==null||a(...l),s==null||s(...l)}:o==="style"?r[o]={...s,...a}:o==="className"&&(r[o]=[s,a].filter(Boolean).join(" "))}return{...e,...r}}const hi=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>({...e,[t]:D.forwardRef(((r,o)=>{const{asChild:s,...a}=r,l=s?Lv:t;return D.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),D.createElement(l,ft({},a,{ref:o}))}))})),{}),Ah=globalThis!=null&&globalThis.document?D.useLayoutEffect:()=>{},Mv=e=>{const{present:t,children:r}=e,o=(function(l){const[c,h]=D.useState(),y=D.useRef({}),v=D.useRef(l),g=D.useRef("none"),d=l?"mounted":"unmounted",[w,x]=(function(f,b){return D.useReducer(((p,S)=>{const E=b[p][S];return E??p}),f)})(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return D.useEffect((()=>{const f=$s(y.current);g.current=w==="mounted"?f:"none"}),[w]),Ah((()=>{const f=y.current,b=v.current;if(b!==l){const p=g.current,S=$s(f);l?x("MOUNT"):S==="none"||(f==null?void 0:f.display)==="none"?x("UNMOUNT"):x(b&&p!==S?"ANIMATION_OUT":"UNMOUNT"),v.current=l}}),[l,x]),Ah((()=>{if(c){const f=p=>{const S=$s(y.current).includes(p.animationName);p.target===c&&S&&x("ANIMATION_END")},b=p=>{p.target===c&&(g.current=$s(y.current))};return c.addEventListener("animationstart",b),c.addEventListener("animationcancel",f),c.addEventListener("animationend",f),()=>{c.removeEventListener("animationstart",b),c.removeEventListener("animationcancel",f),c.removeEventListener("animationend",f)}}x("ANIMATION_END")}),[c,x]),{isPresent:["mounted","unmountSuspended"].includes(w),ref:D.useCallback((f=>{f&&(y.current=getComputedStyle(f)),h(f)}),[])}})(t),s=typeof r=="function"?r({present:o.isPresent}):D.Children.only(r),a=Dn(o.ref,s.ref);return typeof r=="function"||o.isPresent?D.cloneElement(s,{ref:a}):null};function $s(e){return(e==null?void 0:e.animationName)||"none"}Mv.displayName="Presence";let pl=0;function nR(){D.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:Oh()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:Oh()),pl++,()=>{pl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach((o=>o.remove())),pl--}}),[])}function Oh(){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 iR=globalThis!=null&&globalThis.document?D.useLayoutEffect:()=>{},Fv=D.forwardRef(((e,t)=>{var r,o;const{containerRef:s,style:a,...l}=e,c=(r=s==null?void 0:s.current)!==null&&r!==void 0?r:globalThis==null||(o=globalThis.document)===null||o===void 0?void 0:o.body,[,h]=D.useState({});return iR((()=>{h({})}),[]),c?Eo.createPortal(D.createElement(hi.div,ft({"data-radix-portal":""},l,{ref:t,style:c===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...a}:void 0})),c):null}));function Ln(e){const t=D.useRef(e);return D.useEffect((()=>{t.current=e})),D.useMemo((()=>(...r)=>{var o;return(o=t.current)===null||o===void 0?void 0:o.call(t,...r)}),[])}const Th={bubbles:!1,cancelable:!0},oR=D.forwardRef(((e,t)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:s,onUnmountAutoFocus:a,...l}=e,[c,h]=D.useState(null),y=Ln(s),v=Ln(a),g=D.useRef(null),d=Dn(t,(f=>h(f))),w=D.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;D.useEffect((()=>{if(o){let f=function(p){if(w.paused||!c)return;const S=p.target;c.contains(S)?g.current=S:_n(g.current,{select:!0})},b=function(p){!w.paused&&c&&(c.contains(p.relatedTarget)||_n(g.current,{select:!0}))};return document.addEventListener("focusin",f),document.addEventListener("focusout",b),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",b)}}}),[o,c,w.paused]),D.useEffect((()=>{if(c){Ch.add(w);const b=document.activeElement;if(!c.contains(b)){const p=new Event("focusScope.autoFocusOnMount",Th);c.addEventListener("focusScope.autoFocusOnMount",y),c.dispatchEvent(p),p.defaultPrevented||((function(S,{select:E=!1}={}){const R=document.activeElement;for(const O of S)if(_n(O,{select:E}),document.activeElement!==R)return})((f=Rh(c),f.filter((S=>S.tagName!=="A"))),{select:!0}),document.activeElement===b&&_n(c))}return()=>{c.removeEventListener("focusScope.autoFocusOnMount",y),setTimeout((()=>{const p=new Event("focusScope.autoFocusOnUnmount",Th);c.addEventListener("focusScope.autoFocusOnUnmount",v),c.dispatchEvent(p),p.defaultPrevented||_n(b??document.body,{select:!0}),c.removeEventListener("focusScope.autoFocusOnUnmount",v),Ch.remove(w)}),0)}}var f}),[c,y,v,w]);const x=D.useCallback((f=>{if(!r&&!o||w.paused)return;const b=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,p=document.activeElement;if(b&&p){const S=f.currentTarget,[E,R]=(function(O){const k=Rh(O),B=Ph(k,O),L=Ph(k.reverse(),O);return[B,L]})(S);E&&R?f.shiftKey||p!==R?f.shiftKey&&p===E&&(f.preventDefault(),r&&_n(R,{select:!0})):(f.preventDefault(),r&&_n(E,{select:!0})):p===S&&f.preventDefault()}}),[r,o,w.paused]);return D.createElement(hi.div,ft({tabIndex:-1},l,{ref:d,onKeyDown:x}))}));function Rh(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const s=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||s?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Ph(e,t){for(const r of e)if(!sR(r,{upTo:t}))return r}function sR(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(o){return o instanceof HTMLInputElement&&"select"in o})(e)&&t&&e.select()}}const Ch=(function(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=kh(e,t),e.unshift(t)},remove(t){var r;e=kh(e,t),(r=e[0])===null||r===void 0||r.resume()}}})();function kh(e,t){const r=[...e],o=r.indexOf(t);return o!==-1&&r.splice(o,1),r}function aR(e){const t=Ln(e);D.useEffect((()=>{const r=o=>{o.key==="Escape"&&t(o)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)}),[t])}const uR=globalThis!=null&&globalThis.document?D.useLayoutEffect:()=>{};let $h,Is=0;function lR({disabled:e}){const t=D.useRef(!1);uR((()=>{if(e){let r=function(){Is--,Is===0&&(document.body.style.pointerEvents=$h)},o=function(s){t.current=s.pointerType!=="mouse"};return Is===0&&($h=document.body.style.pointerEvents),document.body.style.pointerEvents="none",Is++,document.addEventListener("pointerup",o),()=>{t.current?document.addEventListener("click",r,{once:!0}):r(),document.removeEventListener("pointerup",o)}}}),[e])}function kn(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}const cR=D.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),fR=D.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:l,onDismiss:c,...h}=e,y=D.useContext(cR),[v,g]=D.useState(null),[,d]=D.useState({}),w=Dn(t,(k=>g(k))),x=Array.from(y.layers),[f]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),b=x.indexOf(f),p=v?x.indexOf(v):-1,S=y.layersWithOutsidePointerEventsDisabled.size>0,E=p>=b,R=(function(k){const B=Ln(k),L=D.useRef(!1);return D.useEffect((()=>{const M=N=>{N.target&&!L.current&&Lh("dismissableLayer.pointerDownOutside",B,{originalEvent:N}),L.current=!1},G=window.setTimeout((()=>{document.addEventListener("pointerdown",M)}),0);return()=>{window.clearTimeout(G),document.removeEventListener("pointerdown",M)}}),[B]),{onPointerDownCapture:()=>L.current=!0}})((k=>{const B=k.target,L=[...y.branches].some((M=>M.contains(B)));E&&!L&&(s==null||s(k),l==null||l(k),k.defaultPrevented||c==null||c())})),O=(function(k){const B=Ln(k),L=D.useRef(!1);return D.useEffect((()=>{const M=G=>{G.target&&!L.current&&Lh("dismissableLayer.focusOutside",B,{originalEvent:G})};return document.addEventListener("focusin",M),()=>document.removeEventListener("focusin",M)}),[B]),{onFocusCapture:()=>L.current=!0,onBlurCapture:()=>L.current=!1}})((k=>{const B=k.target;[...y.branches].some((L=>L.contains(B)))||(a==null||a(k),l==null||l(k),k.defaultPrevented||c==null||c())}));return aR((k=>{p===y.layers.size-1&&(o==null||o(k),k.defaultPrevented||c==null||c())})),lR({disabled:r}),D.useEffect((()=>{v&&(r&&y.layersWithOutsidePointerEventsDisabled.add(v),y.layers.add(v),Ih())}),[v,r,y]),D.useEffect((()=>()=>{v&&(y.layers.delete(v),y.layersWithOutsidePointerEventsDisabled.delete(v),Ih())}),[v,y]),D.useEffect((()=>{const k=()=>d({});return document.addEventListener("dismissableLayer.update",k),()=>document.removeEventListener("dismissableLayer.update",k)}),[]),D.createElement(hi.div,ft({},h,{ref:w,style:{pointerEvents:S?E?"auto":"none":void 0,...e.style},onFocusCapture:kn(e.onFocusCapture,O.onFocusCapture),onBlurCapture:kn(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:kn(e.onPointerDownCapture,R.onPointerDownCapture)}))}));function Ih(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function Lh(e,t,r){const o=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});return t&&o.addEventListener(e,t,{once:!0}),!o.dispatchEvent(s)}function Mh(e){const[t,r]=D.useState(void 0);return D.useEffect((()=>{if(e){const o=new ResizeObserver((s=>{if(!Array.isArray(s)||!s.length)return;const a=s[0];let l,c;if("borderBoxSize"in a){const h=a.borderBoxSize,y=Array.isArray(h)?h[0]:h;l=y.inlineSize,c=y.blockSize}else{const h=e.getBoundingClientRect();l=h.width,c=h.height}r({width:l,height:c})}));return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}r(void 0)}),[e]),t}function dR(e,t){const r=An.get(e);return r===void 0?(An.set(e,{rect:{},callbacks:[t]}),An.size===1&&(Ul=requestAnimationFrame(Dv))):(r.callbacks.push(t),t(e.getBoundingClientRect())),()=>{const o=An.get(e);if(o===void 0)return;const s=o.callbacks.indexOf(t);s>-1&&o.callbacks.splice(s,1),o.callbacks.length===0&&(An.delete(e),An.size===0&&cancelAnimationFrame(Ul))}}let Ul;const An=new Map;function Dv(){const e=[];An.forEach(((t,r)=>{const o=r.getBoundingClientRect();var s,a;s=t.rect,a=o,(s.width!==a.width||s.height!==a.height||s.top!==a.top||s.right!==a.right||s.bottom!==a.bottom||s.left!==a.left)&&(t.rect=o,e.push(t))})),e.forEach((t=>{t.callbacks.forEach((r=>r(t.rect)))})),Ul=requestAnimationFrame(Dv)}function pR(e){const[t,r]=D.useState();return D.useEffect((()=>{if(e){const o=dR(e,r);return()=>{r(void 0),o()}}}),[e]),t}function Nv(e,t=[]){let r=[];const o=()=>{const s=r.map((a=>D.createContext(a)));return function(a){const l=(a==null?void 0:a[e])||s;return D.useMemo((()=>({[`__scope${e}`]:{...a,[e]:l}})),[a,l])}};return o.scopeName=e,[function(s,a){const l=D.createContext(a),c=r.length;function h(y){const{scope:v,children:g,...d}=y,w=(v==null?void 0:v[e][c])||l,x=D.useMemo((()=>d),Object.values(d));return D.createElement(w.Provider,{value:x},g)}return r=[...r,a],h.displayName=s+"Provider",[h,function(y,v){const g=(v==null?void 0:v[e][c])||l,d=D.useContext(g);if(d)return d;if(a!==void 0)return a;throw new Error(`\`${y}\` must be used within \`${s}\``)}]},hR(o,...t)]}function hR(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const o=e.map((s=>({useScope:s(),scopeName:s.scopeName})));return function(s){const a=o.reduce(((l,{useScope:c,scopeName:h})=>({...l,...c(s)[`__scope${h}`]})),{});return D.useMemo((()=>({[`__scope${t.scopeName}`]:a})),[a])}};return r.scopeName=t.scopeName,r}function gR({anchorRect:e,popperSize:t,arrowSize:r,arrowOffset:o=0,side:s,sideOffset:a=0,align:l,alignOffset:c=0,shouldAvoidCollisions:h=!0,collisionBoundariesRect:y,collisionTolerance:v=0}){if(!e||!t||!y)return{popperStyles:vR,arrowStyles:hl};const g=(function(B,L,M=0,G=0,N){const I=N?N.height:0,U=Fh(L,B,"x"),q=Fh(L,B,"y"),C=q.before-M-I,J=q.after+M+I,Y=U.before-M-I,te=U.after+M+I;return{top:{start:{x:U.start+G,y:C},center:{x:U.center,y:C},end:{x:U.end-G,y:C}},right:{start:{x:te,y:q.start+G},center:{x:te,y:q.center},end:{x:te,y:q.end-G}},bottom:{start:{x:U.start+G,y:J},center:{x:U.center,y:J},end:{x:U.end-G,y:J}},left:{start:{x:Y,y:q.start+G},center:{x:Y,y:q.center},end:{x:Y,y:q.end-G}}}})(t,e,a,c,r),d=g[s][l];if(h===!1){const B=Dh(d);let L=hl;return r&&(L=jh({popperSize:t,arrowSize:r,arrowOffset:o,side:s,align:l})),{popperStyles:{...B,"--radix-popper-transform-origin":Nh(t,s,l,o,r)},arrowStyles:L,placedSide:s,placedAlign:l}}const w=DOMRect.fromRect({...t,...d}),x=(f=y,b=v,DOMRect.fromRect({width:f.width-2*b,height:f.height-2*b,x:f.left+b,y:f.top+b}));var f,b;const p=Wh(w,x),S=g[zh(s)][l],E=(function(B,L,M){const G=zh(B);return L[B]&&!M[G]?G:B})(s,p,Wh(DOMRect.fromRect({...t,...S}),x)),R=(function(B,L,M,G,N){const I=M==="top"||M==="bottom",U=I?"left":"top",q=I?"right":"bottom",C=I?"width":"height",J=L[C]>B[C];return(G==="start"||G==="center")&&(N[U]&&J||N[q]&&!J)?"end":(G==="end"||G==="center")&&(N[q]&&J||N[U]&&!J)?"start":G})(t,e,s,l,p),O=Dh(g[E][R]);let k=hl;return r&&(k=jh({popperSize:t,arrowSize:r,arrowOffset:o,side:E,align:R})),{popperStyles:{...O,"--radix-popper-transform-origin":Nh(t,E,R,o,r)},arrowStyles:k,placedSide:E,placedAlign:R}}function Fh(e,t,r){const o=e[r==="x"?"left":"top"],s=r==="x"?"width":"height",a=e[s],l=t[s];return{before:o-l,start:o,center:o+(a-l)/2,end:o+a-l,after:o+a}}function Dh(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 Nh(e,t,r,o,s){const a=t==="top"||t==="bottom",l=s?s.width:0,c=s?s.height:0,h=l/2+o;let y="",v="";return a?(y={start:`${h}px`,center:"center",end:e.width-h+"px"}[r],v=t==="top"?`${e.height+c}px`:-c+"px"):(y=t==="left"?`${e.width+c}px`:-c+"px",v={start:`${h}px`,center:"center",end:e.height-h+"px"}[r]),`${y} ${v}`}const vR={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},hl={position:"absolute",opacity:0};function jh({popperSize:e,arrowSize:t,arrowOffset:r,side:o,align:s}){const a=(e.width-t.width)/2,l=(e.height-t.width)/2,c={top:0,right:90,bottom:180,left:-90}[o],h=Math.max(t.width,t.height),y={width:`${h}px`,height:`${h}px`,transform:`rotate(${c}deg)`,willChange:"transform",position:"absolute",[o]:"100%",direction:mR(o,s)};return o!=="top"&&o!=="bottom"||(s==="start"&&(y.left=`${r}px`),s==="center"&&(y.left=`${a}px`),s==="end"&&(y.right=`${r}px`)),o!=="left"&&o!=="right"||(s==="start"&&(y.top=`${r}px`),s==="center"&&(y.top=`${l}px`),s==="end"&&(y.bottom=`${r}px`)),y}function mR(e,t){return(e!=="top"&&e!=="right"||t!=="end")&&(e!=="bottom"&&e!=="left"||t==="end")?"ltr":"rtl"}function zh(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function Wh(e,t){return{top:e.top<t.top,right:e.right>t.right,bottom:e.bottom>t.bottom,left:e.left<t.left}}const[jv,zv]=Nv("Popper"),[yR,Wv]=jv("Popper"),wR=e=>{const{__scopePopper:t,children:r}=e,[o,s]=D.useState(null);return D.createElement(yR,{scope:t,anchor:o,onAnchorChange:s},r)},bR=D.forwardRef(((e,t)=>{const{__scopePopper:r,virtualRef:o,...s}=e,a=Wv("PopperAnchor",r),l=D.useRef(null),c=Dn(t,l);return D.useEffect((()=>{a.onAnchorChange((o==null?void 0:o.current)||l.current)})),o?null:D.createElement(hi.div,ft({},s,{ref:c}))})),[xR,EL]=jv("PopperContent"),SR=D.forwardRef(((e,t)=>{const{__scopePopper:r,side:o="bottom",sideOffset:s,align:a="center",alignOffset:l,collisionTolerance:c,avoidCollisions:h=!0,...y}=e,v=Wv("PopperContent",r),[g,d]=D.useState(),w=pR(v.anchor),[x,f]=D.useState(null),b=Mh(x),[p,S]=D.useState(null),E=Mh(p),R=Dn(t,(I=>f(I))),O=(function(){const[I,U]=D.useState(void 0);return D.useEffect((()=>{let q;function C(){U({width:window.innerWidth,height:window.innerHeight})}function J(){window.clearTimeout(q),q=window.setTimeout(C,100)}return C(),window.addEventListener("resize",J),()=>window.removeEventListener("resize",J)}),[]),I})(),k=O?DOMRect.fromRect({...O,x:0,y:0}):void 0,{popperStyles:B,arrowStyles:L,placedSide:M,placedAlign:G}=gR({anchorRect:w,popperSize:b,arrowSize:E,arrowOffset:g,side:o,sideOffset:s,align:a,alignOffset:l,shouldAvoidCollisions:h,collisionBoundariesRect:k,collisionTolerance:c}),N=M!==void 0;return D.createElement("div",{style:B,"data-radix-popper-content-wrapper":""},D.createElement(xR,{scope:r,arrowStyles:L,onArrowChange:S,onArrowOffsetChange:d},D.createElement(hi.div,ft({"data-side":M,"data-align":G},y,{style:{...y.style,animation:N?void 0:"none"},ref:R}))))})),ER=wR,_R=bR,AR=SR;function OR({prop:e,defaultProp:t,onChange:r=(()=>{})}){const[o,s]=(function({defaultProp:h,onChange:y}){const v=D.useState(h),[g]=v,d=D.useRef(g),w=Ln(y);return D.useEffect((()=>{d.current!==g&&(w(g),d.current=g)}),[g,d,w]),v})({defaultProp:t,onChange:r}),a=e!==void 0,l=a?e:o,c=Ln(r);return[l,D.useCallback((h=>{if(a){const y=h,v=typeof h=="function"?y(e):h;v!==e&&c(v)}else s(h)}),[a,e,s,c])]}const[TR]=Nv("Popover",[zv]),hc=zv(),[RR,Oo]=TR("Popover"),PR=e=>{const{__scopePopover:t,children:r,open:o,defaultOpen:s,onOpenChange:a,modal:l=!1}=e,c=hc(t),h=D.useRef(null),[y,v]=D.useState(!1),[g=!1,d]=OR({prop:o,defaultProp:s,onChange:a});return D.createElement(ER,c,D.createElement(RR,{scope:t,contentId:eR(),triggerRef:h,open:g,onOpenChange:d,onOpenToggle:D.useCallback((()=>d((w=>!w))),[d]),hasCustomAnchor:y,onCustomAnchorAdd:D.useCallback((()=>v(!0)),[]),onCustomAnchorRemove:D.useCallback((()=>v(!1)),[]),modal:l},r))},CR=D.forwardRef(((e,t)=>{const{__scopePopover:r,...o}=e,s=Oo("PopoverTrigger",r),a=hc(r),l=Dn(t,s.triggerRef),c=D.createElement(hi.button,ft({type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Uv(s.open)},o,{ref:l,onClick:kn(e.onClick,s.onOpenToggle)}));return s.hasCustomAnchor?c:D.createElement(_R,ft({asChild:!0},a),c)})),kR=D.forwardRef(((e,t)=>{const{forceMount:r,...o}=e,s=Oo("PopoverContent",e.__scopePopover);return D.createElement(Mv,{present:r||s.open},s.modal?D.createElement($R,ft({},o,{ref:t})):D.createElement(IR,ft({},o,{ref:t})))})),$R=D.forwardRef(((e,t)=>{const{allowPinchZoom:r,portalled:o=!0,...s}=e,a=Oo("PopoverContent",e.__scopePopover),l=D.useRef(null),c=Dn(t,l),h=D.useRef(!1);D.useEffect((()=>{const v=l.current;if(v)return gT(v)}),[]);const y=o?Fv:D.Fragment;return D.createElement(y,null,D.createElement($v,{allowPinchZoom:r},D.createElement(Bv,ft({},s,{ref:c,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:kn(e.onCloseAutoFocus,(v=>{var g;v.preventDefault(),h.current||(g=a.triggerRef.current)===null||g===void 0||g.focus()})),onPointerDownOutside:kn(e.onPointerDownOutside,(v=>{const g=v.detail.originalEvent,d=g.button===0&&g.ctrlKey===!0,w=g.button===2||d;h.current=w}),{checkForDefaultPrevented:!1}),onFocusOutside:kn(e.onFocusOutside,(v=>v.preventDefault()),{checkForDefaultPrevented:!1})}))))})),IR=D.forwardRef(((e,t)=>{const{portalled:r=!0,...o}=e,s=Oo("PopoverContent",e.__scopePopover),a=D.useRef(!1),l=r?Fv:D.Fragment;return D.createElement(l,null,D.createElement(Bv,ft({},o,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var h,y;(h=e.onCloseAutoFocus)===null||h===void 0||h.call(e,c),c.defaultPrevented||(a.current||(y=s.triggerRef.current)===null||y===void 0||y.focus(),c.preventDefault()),a.current=!1},onInteractOutside:c=>{var h,y;(h=e.onInteractOutside)===null||h===void 0||h.call(e,c),c.defaultPrevented||(a.current=!0);const v=c.target;!((y=s.triggerRef.current)===null||y===void 0)&&y.contains(v)&&c.preventDefault()}})))})),Bv=D.forwardRef(((e,t)=>{const{__scopePopover:r,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:h,onFocusOutside:y,onInteractOutside:v,...g}=e,d=Oo("PopoverContent",r),w=hc(r);return nR(),D.createElement(oR,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:s,onUnmountAutoFocus:a},D.createElement(fR,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:v,onEscapeKeyDown:c,onPointerDownOutside:h,onFocusOutside:y,onDismiss:()=>d.onOpenChange(!1)},D.createElement(AR,ft({"data-state":Uv(d.open),role:"dialog",id:d.contentId},w,g,{ref:t,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))}));function Uv(e){return e?"open":"closed"}const LR=PR,MR=CR,FR=kR;var Ys=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(Ys||{}),gl={},Zi={},Ls={},Ms={},Fs={exports:{}},Ds={exports:{}},Ie={};/** @license React v16.13.1
|
|
62
|
+
`)},YR=0,di=[];function JR(e){var t=$.useRef([]),r=$.useRef([0,0]),i=$.useRef(),a=$.useState(YR++)[0],s=$.useState(Em)[0],l=$.useRef(e);$.useEffect(function(){l.current=e},[e]),$.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var f=ms([e.lockRef.current],(e.shards||[]).map(lg),!0).filter(Boolean);return f.forEach(function(b){return b.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),f.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var c=$.useCallback(function(f,b){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!l.current.allowPinchZoom;var h=Ha(f),S=r.current,E="deltaX"in f?f.deltaX:S[0]-h[0],R="deltaY"in f?f.deltaY:S[1]-h[1],O,k=f.target,B=Math.abs(E)>Math.abs(R)?"h":"v";if("touches"in f&&B==="h"&&k.type==="range")return!1;var M=sg(B,k);if(!M)return!0;if(M?O=B:(O=B==="v"?"h":"v",M=sg(B,k)),!M)return!1;if(!i.current&&"changedTouches"in f&&(E||R)&&(i.current=O),!O)return!0;var F=i.current||O;return KR(F,b,f,F==="h"?E:R)},[]),d=$.useCallback(function(f){var b=f;if(!(!di.length||di[di.length-1]!==s)){var h="deltaY"in b?ug(b):Ha(b),S=t.current.filter(function(O){return O.name===b.type&&(O.target===b.target||b.target===O.shadowParent)&&VR(O.delta,h)})[0];if(S&&S.should){b.cancelable&&b.preventDefault();return}if(!S){var E=(l.current.shards||[]).map(lg).filter(Boolean).filter(function(O){return O.contains(b.target)}),R=E.length>0?c(b,E[0]):!l.current.noIsolation;R&&b.cancelable&&b.preventDefault()}}},[]),m=$.useCallback(function(f,b,h,S){var E={name:f,delta:b,target:h,should:S,shadowParent:QR(h)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(R){return R!==E})},1)},[]),v=$.useCallback(function(f){r.current=Ha(f),i.current=void 0},[]),g=$.useCallback(function(f){m(f.type,ug(f),f.target,c(f,e.lockRef.current))},[]),p=$.useCallback(function(f){m(f.type,Ha(f),f.target,c(f,e.lockRef.current))},[]);$.useEffect(function(){return di.push(s),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:p}),document.addEventListener("wheel",d,fi),document.addEventListener("touchmove",d,fi),document.addEventListener("touchstart",v,fi),function(){di=di.filter(function(f){return f!==s}),document.removeEventListener("wheel",d,fi),document.removeEventListener("touchmove",d,fi),document.removeEventListener("touchstart",v,fi)}},[]);var w=e.removeScrollBar,x=e.inert;return $.createElement($.Fragment,null,x?$.createElement(s,{styles:XR(a)}):null,w?$.createElement(WR,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function QR(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const eP=RR(Sm,JR);var Tm=$.forwardRef(function(e,t){return $.createElement(Ms,Or({},e,{ref:t,sideCar:eP}))});Tm.classNames=Ms.classNames;const tP=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},rP=$.useId||(()=>{});let nP=0;function Rm(e){const[t,r]=$.useState(rP());return tP((()=>{r((i=>i??String(nP++)))}),[e]),e||(t?`radix-${t}`:"")}function Pm(...e){return t=>e.forEach((r=>(function(i,a){typeof i=="function"?i(a):i!=null&&(i.current=a)})(r,t)))}function mn(...e){return $.useCallback(Pm(...e),e)}const Cm=$.forwardRef(((e,t)=>{const{children:r,...i}=e;return $.Children.toArray(r).some(cg)?$.createElement($.Fragment,null,$.Children.map(r,(a=>cg(a)?$.createElement(pc,Ke({},i,{ref:t}),a.props.children):a))):$.createElement(pc,Ke({},i,{ref:t}),r)}));Cm.displayName="Slot";const pc=$.forwardRef(((e,t)=>{const{children:r,...i}=e;return $.isValidElement(r)?$.cloneElement(r,{...iP(i,r.props),ref:Pm(t,r.ref)}):$.Children.count(r)>1?$.Children.only(null):null}));pc.displayName="SlotClone";const km=({children:e})=>$.createElement($.Fragment,null,e);function cg(e){return $.isValidElement(e)&&e.type===km}function iP(e,t){const r={...t};for(const i in t){const a=e[i],s=t[i];/^on[A-Z]/.test(i)?r[i]=(...l)=>{s==null||s(...l),a==null||a(...l)}:i==="style"?r[i]={...a,...s}:i==="className"&&(r[i]=[a,s].filter(Boolean).join(" "))}return{...e,...r}}const yn=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>({...e,[t]:$.forwardRef(((r,i)=>{const{asChild:a,...s}=r,l=a?Cm:t;return $.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),$.createElement(l,Ke({},s,{ref:i}))}))})),{}),fg=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},Hc=e=>{const{present:t,children:r}=e,i=(function(l){const[c,d]=$.useState(),m=$.useRef({}),v=$.useRef(l),g=$.useRef("none"),p=l?"mounted":"unmounted",[w,x]=(function(f,b){return $.useReducer(((h,S)=>{const E=b[h][S];return E??h}),f)})(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return $.useEffect((()=>{const f=qa(m.current);g.current=w==="mounted"?f:"none"}),[w]),fg((()=>{const f=m.current,b=v.current;if(b!==l){const h=g.current,S=qa(f);l?x("MOUNT"):S==="none"||(f==null?void 0:f.display)==="none"?x("UNMOUNT"):x(b&&h!==S?"ANIMATION_OUT":"UNMOUNT"),v.current=l}}),[l,x]),fg((()=>{if(c){const f=h=>{const S=qa(m.current).includes(h.animationName);h.target===c&&S&&x("ANIMATION_END")},b=h=>{h.target===c&&(g.current=qa(m.current))};return c.addEventListener("animationstart",b),c.addEventListener("animationcancel",f),c.addEventListener("animationend",f),()=>{c.removeEventListener("animationstart",b),c.removeEventListener("animationcancel",f),c.removeEventListener("animationend",f)}}x("ANIMATION_END")}),[c,x]),{isPresent:["mounted","unmountSuspended"].includes(w),ref:$.useCallback((f=>{f&&(m.current=getComputedStyle(f)),d(f)}),[])}})(t),a=typeof r=="function"?r({present:i.isPresent}):$.Children.only(r),s=mn(i.ref,a.ref);return typeof r=="function"||i.isPresent?$.cloneElement(a,{ref:s}):null};function qa(e){return(e==null?void 0:e.animationName)||"none"}Hc.displayName="Presence";let Il=0;function oP(){$.useEffect((()=>{var e,t;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:dg()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:dg()),Il++,()=>{Il===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach((i=>i.remove())),Il--}}),[])}function dg(){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 aP=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},qc=$.forwardRef(((e,t)=>{var r,i;const{containerRef:a,style:s,...l}=e,c=(r=a==null?void 0:a.current)!==null&&r!==void 0?r:globalThis==null||(i=globalThis.document)===null||i===void 0?void 0:i.body,[,d]=$.useState({});return aP((()=>{d({})}),[]),c?Fo.createPortal($.createElement(yn.div,Ke({"data-radix-portal":""},l,{ref:t,style:c===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...s}:void 0})),c):null}));function Bn(e){const t=$.useRef(e);return $.useEffect((()=>{t.current=e})),$.useMemo((()=>(...r)=>{var i;return(i=t.current)===null||i===void 0?void 0:i.call(t,...r)}),[])}const pg={bubbles:!1,cancelable:!0},sP=$.forwardRef(((e,t)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:s,...l}=e,[c,d]=$.useState(null),m=Bn(a),v=Bn(s),g=$.useRef(null),p=mn(t,(f=>d(f))),w=$.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;$.useEffect((()=>{if(i){let f=function(h){if(w.paused||!c)return;const S=h.target;c.contains(S)?g.current=S:kn(g.current,{select:!0})},b=function(h){!w.paused&&c&&(c.contains(h.relatedTarget)||kn(g.current,{select:!0}))};return document.addEventListener("focusin",f),document.addEventListener("focusout",b),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",b)}}}),[i,c,w.paused]),$.useEffect((()=>{if(c){vg.add(w);const b=document.activeElement;if(!c.contains(b)){const h=new Event("focusScope.autoFocusOnMount",pg);c.addEventListener("focusScope.autoFocusOnMount",m),c.dispatchEvent(h),h.defaultPrevented||((function(S,{select:E=!1}={}){const R=document.activeElement;for(const O of S)if(kn(O,{select:E}),document.activeElement!==R)return})((f=hg(c),f.filter((S=>S.tagName!=="A"))),{select:!0}),document.activeElement===b&&kn(c))}return()=>{c.removeEventListener("focusScope.autoFocusOnMount",m),setTimeout((()=>{const h=new Event("focusScope.autoFocusOnUnmount",pg);c.addEventListener("focusScope.autoFocusOnUnmount",v),c.dispatchEvent(h),h.defaultPrevented||kn(b??document.body,{select:!0}),c.removeEventListener("focusScope.autoFocusOnUnmount",v),vg.remove(w)}),0)}}var f}),[c,m,v,w]);const x=$.useCallback((f=>{if(!r&&!i||w.paused)return;const b=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,h=document.activeElement;if(b&&h){const S=f.currentTarget,[E,R]=(function(O){const k=hg(O),B=gg(k,O),M=gg(k.reverse(),O);return[B,M]})(S);E&&R?f.shiftKey||h!==R?f.shiftKey&&h===E&&(f.preventDefault(),r&&kn(R,{select:!0})):(f.preventDefault(),r&&kn(E,{select:!0})):h===S&&f.preventDefault()}}),[r,i,w.paused]);return $.createElement(yn.div,Ke({tabIndex:-1},l,{ref:p,onKeyDown:x}))}));function hg(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 gg(e,t){for(const r of e)if(!uP(r,{upTo:t}))return r}function uP(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function kn(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(function(i){return i instanceof HTMLInputElement&&"select"in i})(e)&&t&&e.select()}}const vg=(function(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=mg(e,t),e.unshift(t)},remove(t){var r;e=mg(e,t),(r=e[0])===null||r===void 0||r.resume()}}})();function mg(e,t){const r=[...e],i=r.indexOf(t);return i!==-1&&r.splice(i,1),r}function $m(e){const t=Bn(e);$.useEffect((()=>{const r=i=>{i.key==="Escape"&&t(i)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)}),[t])}const lP=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{};let yg,Za=0;function cP({disabled:e}){const t=$.useRef(!1);lP((()=>{if(e){let r=function(){Za--,Za===0&&(document.body.style.pointerEvents=yg)},i=function(a){t.current=a.pointerType!=="mouse"};return Za===0&&(yg=document.body.style.pointerEvents),document.body.style.pointerEvents="none",Za++,document.addEventListener("pointerup",i),()=>{t.current?document.addEventListener("click",r,{once:!0}):r(),document.removeEventListener("pointerup",i)}}}),[e])}function Ut(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 fP=$.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),dP=$.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:c,...d}=e,m=$.useContext(fP),[v,g]=$.useState(null),[,p]=$.useState({}),w=mn(t,(k=>g(k))),x=Array.from(m.layers),[f]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),b=x.indexOf(f),h=v?x.indexOf(v):-1,S=m.layersWithOutsidePointerEventsDisabled.size>0,E=h>=b,R=(function(k){const B=Bn(k),M=$.useRef(!1);return $.useEffect((()=>{const F=N=>{N.target&&!M.current&&bg("dismissableLayer.pointerDownOutside",B,{originalEvent:N}),M.current=!1},G=window.setTimeout((()=>{document.addEventListener("pointerdown",F)}),0);return()=>{window.clearTimeout(G),document.removeEventListener("pointerdown",F)}}),[B]),{onPointerDownCapture:()=>M.current=!0}})((k=>{const B=k.target,M=[...m.branches].some((F=>F.contains(B)));E&&!M&&(a==null||a(k),l==null||l(k),k.defaultPrevented||c==null||c())})),O=(function(k){const B=Bn(k),M=$.useRef(!1);return $.useEffect((()=>{const F=G=>{G.target&&!M.current&&bg("dismissableLayer.focusOutside",B,{originalEvent:G})};return document.addEventListener("focusin",F),()=>document.removeEventListener("focusin",F)}),[B]),{onFocusCapture:()=>M.current=!0,onBlurCapture:()=>M.current=!1}})((k=>{const B=k.target;[...m.branches].some((M=>M.contains(B)))||(s==null||s(k),l==null||l(k),k.defaultPrevented||c==null||c())}));return $m((k=>{h===m.layers.size-1&&(i==null||i(k),k.defaultPrevented||c==null||c())})),cP({disabled:r}),$.useEffect((()=>{v&&(r&&m.layersWithOutsidePointerEventsDisabled.add(v),m.layers.add(v),wg())}),[v,r,m]),$.useEffect((()=>()=>{v&&(m.layers.delete(v),m.layersWithOutsidePointerEventsDisabled.delete(v),wg())}),[v,m]),$.useEffect((()=>{const k=()=>p({});return document.addEventListener("dismissableLayer.update",k),()=>document.removeEventListener("dismissableLayer.update",k)}),[]),$.createElement(yn.div,Ke({},d,{ref:w,style:{pointerEvents:S?E?"auto":"none":void 0,...e.style},onFocusCapture:Ut(e.onFocusCapture,O.onFocusCapture),onBlurCapture:Ut(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:Ut(e.onPointerDownCapture,R.onPointerDownCapture)}))}));function wg(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function bg(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 xg(e){const[t,r]=$.useState(void 0);return $.useEffect((()=>{if(e){const i=new ResizeObserver((a=>{if(!Array.isArray(a)||!a.length)return;const s=a[0];let l,c;if("borderBoxSize"in s){const d=s.borderBoxSize,m=Array.isArray(d)?d[0]:d;l=m.inlineSize,c=m.blockSize}else{const d=e.getBoundingClientRect();l=d.width,c=d.height}r({width:l,height:c})}));return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}r(void 0)}),[e]),t}function pP(e,t){const r=$n.get(e);return r===void 0?($n.set(e,{rect:{},callbacks:[t]}),$n.size===1&&(hc=requestAnimationFrame(Im))):(r.callbacks.push(t),t(e.getBoundingClientRect())),()=>{const i=$n.get(e);if(i===void 0)return;const a=i.callbacks.indexOf(t);a>-1&&i.callbacks.splice(a,1),i.callbacks.length===0&&($n.delete(e),$n.size===0&&cancelAnimationFrame(hc))}}let hc;const $n=new Map;function Im(){const e=[];$n.forEach(((t,r)=>{const i=r.getBoundingClientRect();var a,s;a=t.rect,s=i,(a.width!==s.width||a.height!==s.height||a.top!==s.top||a.right!==s.right||a.bottom!==s.bottom||a.left!==s.left)&&(t.rect=i,e.push(t))})),e.forEach((t=>{t.callbacks.forEach((r=>r(t.rect)))})),hc=requestAnimationFrame(Im)}function Lm(e){const[t,r]=$.useState();return $.useEffect((()=>{if(e){const i=pP(e,r);return()=>{r(void 0),i()}}}),[e]),t}function Zc(e,t=[]){let r=[];const i=()=>{const a=r.map((s=>$.createContext(s)));return function(s){const l=(s==null?void 0:s[e])||a;return $.useMemo((()=>({[`__scope${e}`]:{...s,[e]:l}})),[s,l])}};return i.scopeName=e,[function(a,s){const l=$.createContext(s),c=r.length;function d(m){const{scope:v,children:g,...p}=m,w=(v==null?void 0:v[e][c])||l,x=$.useMemo((()=>p),Object.values(p));return $.createElement(w.Provider,{value:x},g)}return r=[...r,s],d.displayName=a+"Provider",[d,function(m,v){const g=(v==null?void 0:v[e][c])||l,p=$.useContext(g);if(p)return p;if(s!==void 0)return s;throw new Error(`\`${m}\` must be used within \`${a}\``)}]},hP(i,...t)]}function hP(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const i=e.map((a=>({useScope:a(),scopeName:a.scopeName})));return function(a){const s=i.reduce(((l,{useScope:c,scopeName:d})=>({...l,...c(a)[`__scope${d}`]})),{});return $.useMemo((()=>({[`__scope${t.scopeName}`]:s})),[s])}};return r.scopeName=t.scopeName,r}function gP({anchorRect:e,popperSize:t,arrowSize:r,arrowOffset:i=0,side:a,sideOffset:s=0,align:l,alignOffset:c=0,shouldAvoidCollisions:d=!0,collisionBoundariesRect:m,collisionTolerance:v=0}){if(!e||!t||!m)return{popperStyles:vP,arrowStyles:Ll};const g=(function(B,M,F=0,G=0,N){const L=N?N.height:0,U=Sg(M,B,"x"),q=Sg(M,B,"y"),C=q.before-F-L,J=q.after+F+L,X=U.before-F-L,te=U.after+F+L;return{top:{start:{x:U.start+G,y:C},center:{x:U.center,y:C},end:{x:U.end-G,y:C}},right:{start:{x:te,y:q.start+G},center:{x:te,y:q.center},end:{x:te,y:q.end-G}},bottom:{start:{x:U.start+G,y:J},center:{x:U.center,y:J},end:{x:U.end-G,y:J}},left:{start:{x:X,y:q.start+G},center:{x:X,y:q.center},end:{x:X,y:q.end-G}}}})(t,e,s,c,r),p=g[a][l];if(d===!1){const B=Eg(p);let M=Ll;return r&&(M=Og({popperSize:t,arrowSize:r,arrowOffset:i,side:a,align:l})),{popperStyles:{...B,"--radix-popper-transform-origin":_g(t,a,l,i,r)},arrowStyles:M,placedSide:a,placedAlign:l}}const w=DOMRect.fromRect({...t,...p}),x=(f=m,b=v,DOMRect.fromRect({width:f.width-2*b,height:f.height-2*b,x:f.left+b,y:f.top+b}));var f,b;const h=Tg(w,x),S=g[Ag(a)][l],E=(function(B,M,F){const G=Ag(B);return M[B]&&!F[G]?G:B})(a,h,Tg(DOMRect.fromRect({...t,...S}),x)),R=(function(B,M,F,G,N){const L=F==="top"||F==="bottom",U=L?"left":"top",q=L?"right":"bottom",C=L?"width":"height",J=M[C]>B[C];return(G==="start"||G==="center")&&(N[U]&&J||N[q]&&!J)?"end":(G==="end"||G==="center")&&(N[q]&&J||N[U]&&!J)?"start":G})(t,e,a,l,h),O=Eg(g[E][R]);let k=Ll;return r&&(k=Og({popperSize:t,arrowSize:r,arrowOffset:i,side:E,align:R})),{popperStyles:{...O,"--radix-popper-transform-origin":_g(t,E,R,i,r)},arrowStyles:k,placedSide:E,placedAlign:R}}function Sg(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 Eg(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 _g(e,t,r,i,a){const s=t==="top"||t==="bottom",l=a?a.width:0,c=a?a.height:0,d=l/2+i;let m="",v="";return s?(m={start:`${d}px`,center:"center",end:e.width-d+"px"}[r],v=t==="top"?`${e.height+c}px`:-c+"px"):(m=t==="left"?`${e.width+c}px`:-c+"px",v={start:`${d}px`,center:"center",end:e.height-d+"px"}[r]),`${m} ${v}`}const vP={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},Ll={position:"absolute",opacity:0};function Og({popperSize:e,arrowSize:t,arrowOffset:r,side:i,align:a}){const s=(e.width-t.width)/2,l=(e.height-t.width)/2,c={top:0,right:90,bottom:180,left:-90}[i],d=Math.max(t.width,t.height),m={width:`${d}px`,height:`${d}px`,transform:`rotate(${c}deg)`,willChange:"transform",position:"absolute",[i]:"100%",direction:mP(i,a)};return i!=="top"&&i!=="bottom"||(a==="start"&&(m.left=`${r}px`),a==="center"&&(m.left=`${s}px`),a==="end"&&(m.right=`${r}px`)),i!=="left"&&i!=="right"||(a==="start"&&(m.top=`${r}px`),a==="center"&&(m.top=`${l}px`),a==="end"&&(m.bottom=`${r}px`)),m}function mP(e,t){return(e!=="top"&&e!=="right"||t!=="end")&&(e!=="bottom"&&e!=="left"||t==="end")?"ltr":"rtl"}function Ag(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function Tg(e,t){return{top:e.top<t.top,right:e.right>t.right,bottom:e.bottom>t.bottom,left:e.left<t.left}}const[Mm,Fs]=Zc("Popper"),[yP,Fm]=Mm("Popper"),wP=e=>{const{__scopePopper:t,children:r}=e,[i,a]=$.useState(null);return $.createElement(yP,{scope:t,anchor:i,onAnchorChange:a},r)},bP=$.forwardRef(((e,t)=>{const{__scopePopper:r,virtualRef:i,...a}=e,s=Fm("PopperAnchor",r),l=$.useRef(null),c=mn(t,l);return $.useEffect((()=>{s.onAnchorChange((i==null?void 0:i.current)||l.current)})),i?null:$.createElement(yn.div,Ke({},a,{ref:c}))})),[xP,VL]=Mm("PopperContent"),SP=$.forwardRef(((e,t)=>{const{__scopePopper:r,side:i="bottom",sideOffset:a,align:s="center",alignOffset:l,collisionTolerance:c,avoidCollisions:d=!0,...m}=e,v=Fm("PopperContent",r),[g,p]=$.useState(),w=Lm(v.anchor),[x,f]=$.useState(null),b=xg(x),[h,S]=$.useState(null),E=xg(h),R=mn(t,(L=>f(L))),O=(function(){const[L,U]=$.useState(void 0);return $.useEffect((()=>{let q;function C(){U({width:window.innerWidth,height:window.innerHeight})}function J(){window.clearTimeout(q),q=window.setTimeout(C,100)}return C(),window.addEventListener("resize",J),()=>window.removeEventListener("resize",J)}),[]),L})(),k=O?DOMRect.fromRect({...O,x:0,y:0}):void 0,{popperStyles:B,arrowStyles:M,placedSide:F,placedAlign:G}=gP({anchorRect:w,popperSize:b,arrowSize:E,arrowOffset:g,side:i,sideOffset:a,align:s,alignOffset:l,shouldAvoidCollisions:d,collisionBoundariesRect:k,collisionTolerance:c}),N=F!==void 0;return $.createElement("div",{style:B,"data-radix-popper-content-wrapper":""},$.createElement(xP,{scope:r,arrowStyles:M,onArrowChange:S,onArrowOffsetChange:p},$.createElement(yn.div,Ke({"data-side":F,"data-align":G},m,{style:{...m.style,animation:N?void 0:"none"},ref:R}))))})),Dm=wP,Nm=bP,jm=SP;function zm({prop:e,defaultProp:t,onChange:r=(()=>{})}){const[i,a]=(function({defaultProp:d,onChange:m}){const v=$.useState(d),[g]=v,p=$.useRef(g),w=Bn(m);return $.useEffect((()=>{p.current!==g&&(w(g),p.current=g)}),[g,p,w]),v})({defaultProp:t,onChange:r}),s=e!==void 0,l=s?e:i,c=Bn(r);return[l,$.useCallback((d=>{if(s){const m=d,v=typeof d=="function"?m(e):d;v!==e&&c(v)}else a(d)}),[s,e,a,c])]}const[EP]=Zc("Popover",[Fs]),Gc=Fs(),[_P,jo]=EP("Popover"),OP=e=>{const{__scopePopover:t,children:r,open:i,defaultOpen:a,onOpenChange:s,modal:l=!1}=e,c=Gc(t),d=$.useRef(null),[m,v]=$.useState(!1),[g=!1,p]=zm({prop:i,defaultProp:a,onChange:s});return $.createElement(Dm,c,$.createElement(_P,{scope:t,contentId:Rm(),triggerRef:d,open:g,onOpenChange:p,onOpenToggle:$.useCallback((()=>p((w=>!w))),[p]),hasCustomAnchor:m,onCustomAnchorAdd:$.useCallback((()=>v(!0)),[]),onCustomAnchorRemove:$.useCallback((()=>v(!1)),[]),modal:l},r))},AP=$.forwardRef(((e,t)=>{const{__scopePopover:r,...i}=e,a=jo("PopoverTrigger",r),s=Gc(r),l=mn(t,a.triggerRef),c=$.createElement(yn.button,Ke({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Bm(a.open)},i,{ref:l,onClick:Ut(e.onClick,a.onOpenToggle)}));return a.hasCustomAnchor?c:$.createElement(Nm,Ke({asChild:!0},s),c)})),TP=$.forwardRef(((e,t)=>{const{forceMount:r,...i}=e,a=jo("PopoverContent",e.__scopePopover);return $.createElement(Hc,{present:r||a.open},a.modal?$.createElement(RP,Ke({},i,{ref:t})):$.createElement(PP,Ke({},i,{ref:t})))})),RP=$.forwardRef(((e,t)=>{const{allowPinchZoom:r,portalled:i=!0,...a}=e,s=jo("PopoverContent",e.__scopePopover),l=$.useRef(null),c=mn(t,l),d=$.useRef(!1);$.useEffect((()=>{const v=l.current;if(v)return wR(v)}),[]);const m=i?qc:$.Fragment;return $.createElement(m,null,$.createElement(Tm,{allowPinchZoom:r},$.createElement(Wm,Ke({},a,{ref:c,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ut(e.onCloseAutoFocus,(v=>{var g;v.preventDefault(),d.current||(g=s.triggerRef.current)===null||g===void 0||g.focus()})),onPointerDownOutside:Ut(e.onPointerDownOutside,(v=>{const g=v.detail.originalEvent,p=g.button===0&&g.ctrlKey===!0,w=g.button===2||p;d.current=w}),{checkForDefaultPrevented:!1}),onFocusOutside:Ut(e.onFocusOutside,(v=>v.preventDefault()),{checkForDefaultPrevented:!1})}))))})),PP=$.forwardRef(((e,t)=>{const{portalled:r=!0,...i}=e,a=jo("PopoverContent",e.__scopePopover),s=$.useRef(!1),l=r?qc:$.Fragment;return $.createElement(l,null,$.createElement(Wm,Ke({},i,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var d,m;(d=e.onCloseAutoFocus)===null||d===void 0||d.call(e,c),c.defaultPrevented||(s.current||(m=a.triggerRef.current)===null||m===void 0||m.focus(),c.preventDefault()),s.current=!1},onInteractOutside:c=>{var d,m;(d=e.onInteractOutside)===null||d===void 0||d.call(e,c),c.defaultPrevented||(s.current=!0);const v=c.target;!((m=a.triggerRef.current)===null||m===void 0)&&m.contains(v)&&c.preventDefault()}})))})),Wm=$.forwardRef(((e,t)=>{const{__scopePopover:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:m,onInteractOutside:v,...g}=e,p=jo("PopoverContent",r),w=Gc(r);return oP(),$.createElement(sP,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:s},$.createElement(dP,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:v,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:m,onDismiss:()=>p.onOpenChange(!1)},$.createElement(jm,Ke({"data-state":Bm(p.open),role:"dialog",id:p.contentId},w,g,{ref:t,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))}));function Bm(e){return e?"open":"closed"}const CP=OP,kP=AP,$P=TP;var cs=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(cs||{}),Ml={},ro={},Ga={},Ka={},Va={exports:{}},Xa={exports:{}},Ie={};/** @license React v16.13.1
|
|
63
63
|
* react-is.production.min.js
|
|
64
64
|
*
|
|
65
65
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
66
66
|
*
|
|
67
67
|
* This source code is licensed under the MIT license found in the
|
|
68
68
|
* LICENSE file in the root directory of this source tree.
|
|
69
|
-
*/var
|
|
69
|
+
*/var Rg;function IP(){if(Rg)return Ie;Rg=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function E(O){if(typeof O=="object"&&O!==null){var k=O.$$typeof;switch(k){case t:switch(O=O.type,O){case d:case m:case i:case s:case a:case g:return O;default:switch(O=O&&O.$$typeof,O){case c:case v:case x:case w:case l:return O;default:return k}}case r:return k}}}function R(O){return E(O)===m}return Ie.AsyncMode=d,Ie.ConcurrentMode=m,Ie.ContextConsumer=c,Ie.ContextProvider=l,Ie.Element=t,Ie.ForwardRef=v,Ie.Fragment=i,Ie.Lazy=x,Ie.Memo=w,Ie.Portal=r,Ie.Profiler=s,Ie.StrictMode=a,Ie.Suspense=g,Ie.isAsyncMode=function(O){return R(O)||E(O)===d},Ie.isConcurrentMode=R,Ie.isContextConsumer=function(O){return E(O)===c},Ie.isContextProvider=function(O){return E(O)===l},Ie.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===t},Ie.isForwardRef=function(O){return E(O)===v},Ie.isFragment=function(O){return E(O)===i},Ie.isLazy=function(O){return E(O)===x},Ie.isMemo=function(O){return E(O)===w},Ie.isPortal=function(O){return E(O)===r},Ie.isProfiler=function(O){return E(O)===s},Ie.isStrictMode=function(O){return E(O)===a},Ie.isSuspense=function(O){return E(O)===g},Ie.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===i||O===m||O===s||O===a||O===g||O===p||typeof O=="object"&&O!==null&&(O.$$typeof===x||O.$$typeof===w||O.$$typeof===l||O.$$typeof===c||O.$$typeof===v||O.$$typeof===b||O.$$typeof===h||O.$$typeof===S||O.$$typeof===f)},Ie.typeOf=E,Ie}var Le={};/** @license React v16.13.1
|
|
70
70
|
* react-is.development.js
|
|
71
71
|
*
|
|
72
72
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
73
73
|
*
|
|
74
74
|
* This source code is licensed under the MIT license found in the
|
|
75
75
|
* LICENSE file in the root directory of this source tree.
|
|
76
|
-
*/var
|
|
76
|
+
*/var Pg;function LP(){return Pg||(Pg=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function E(ie){return typeof ie=="string"||typeof ie=="function"||ie===i||ie===m||ie===s||ie===a||ie===g||ie===p||typeof ie=="object"&&ie!==null&&(ie.$$typeof===x||ie.$$typeof===w||ie.$$typeof===l||ie.$$typeof===c||ie.$$typeof===v||ie.$$typeof===b||ie.$$typeof===h||ie.$$typeof===S||ie.$$typeof===f)}function R(ie){if(typeof ie=="object"&&ie!==null){var mt=ie.$$typeof;switch(mt){case t:var ut=ie.type;switch(ut){case d:case m:case i:case s:case a:case g:return ut;default:var vr=ut&&ut.$$typeof;switch(vr){case c:case v:case x:case w:case l:return vr;default:return mt}}case r:return mt}}}var O=d,k=m,B=c,M=l,F=t,G=v,N=i,L=x,U=w,q=r,C=s,J=a,X=g,te=!1;function de(ie){return te||(te=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Z(ie)||R(ie)===d}function Z(ie){return R(ie)===m}function Q(ie){return R(ie)===c}function ae(ie){return R(ie)===l}function ue(ie){return typeof ie=="object"&&ie!==null&&ie.$$typeof===t}function ne(ie){return R(ie)===v}function ce(ie){return R(ie)===i}function fe(ie){return R(ie)===x}function ye(ie){return R(ie)===w}function ve(ie){return R(ie)===r}function Ee(ie){return R(ie)===s}function Ae(ie){return R(ie)===a}function qe(ie){return R(ie)===g}Le.AsyncMode=O,Le.ConcurrentMode=k,Le.ContextConsumer=B,Le.ContextProvider=M,Le.Element=F,Le.ForwardRef=G,Le.Fragment=N,Le.Lazy=L,Le.Memo=U,Le.Portal=q,Le.Profiler=C,Le.StrictMode=J,Le.Suspense=X,Le.isAsyncMode=de,Le.isConcurrentMode=Z,Le.isContextConsumer=Q,Le.isContextProvider=ae,Le.isElement=ue,Le.isForwardRef=ne,Le.isFragment=ce,Le.isLazy=fe,Le.isMemo=ye,Le.isPortal=ve,Le.isProfiler=Ee,Le.isStrictMode=Ae,Le.isSuspense=qe,Le.isValidElementType=E,Le.typeOf=R})()),Le}var Cg;function Um(){return Cg||(Cg=1,process.env.NODE_ENV==="production"?Xa.exports=IP():Xa.exports=LP()),Xa.exports}/*
|
|
77
77
|
object-assign
|
|
78
78
|
(c) Sindre Sorhus
|
|
79
79
|
@license MIT
|
|
80
|
-
*/var
|
|
81
|
-
Valid keys: `+JSON.stringify(Object.keys(Z),null," "));var ie=qe(ye,Oe,ne,ce,fe+"."+Oe,r);if(ie)return ie}return null}return b(Q)}function q(Z){switch(typeof Z){case"number":case"string":case"undefined":return!0;case"boolean":return!Z;case"object":if(Array.isArray(Z))return Z.every(q);if(Z===null||c(Z))return!0;var Q=g(Z);if(Q){var se=Q.call(Z),ue;if(Q!==Z.entries){for(;!(ue=se.next()).done;)if(!q(ue.value))return!1}else for(;!(ue=se.next()).done;){var ne=ue.value;if(ne&&!q(ne[1]))return!1}}else return!1;return!0;default:return!1}}function C(Z,Q){return Z==="symbol"?!0:Q?Q["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Q instanceof Symbol:!1}function J(Z){var Q=typeof Z;return Array.isArray(Z)?"array":Z instanceof RegExp?"object":C(Q,Z)?"symbol":Q}function Y(Z){if(typeof Z>"u"||Z===null)return""+Z;var Q=J(Z);if(Q==="object"){if(Z instanceof Date)return"date";if(Z instanceof RegExp)return"regexp"}return Q}function te(Z){var Q=Y(Z);switch(Q){case"array":case"object":return"an "+Q;case"boolean":case"date":case"regexp":return"a "+Q;default:return Q}}function de(Z){return!Z.constructor||!Z.constructor.name?d:Z.constructor.name}return w.checkPropTypes=s,w.resetWarningCache=s.resetWarningCache,w.PropTypes=w,w},bl}var xl,Yh;function BR(){if(Yh)return xl;Yh=1;var e=gc();function t(){}function r(){}return r.resetWarningCache=t,xl=function(){function o(l,c,h,y,v,g){if(g!==e){var d=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 d.name="Invariant Violation",d}}o.isRequired=o;function s(){return o}var a={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:s,element:o,elementType:o,instanceOf:s,node:o,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},xl}var Xh;function UR(){if(Xh)return Fs.exports;if(Xh=1,process.env.NODE_ENV!=="production"){var e=Hv(),t=!0;Fs.exports=WR()(e.isElement,t)}else Fs.exports=BR()();return Fs.exports}var Jh;function HR(){return Jh||(Jh=1,(function(e){(function(t,r){r(e,W,UR())})(Ms,function(t,r,o){Object.defineProperty(t,"__esModule",{value:!0}),t.setHasSupportToCaptureOption=x;var s=l(r),a=l(o);function l(S){return S&&S.__esModule?S:{default:S}}var c=Object.assign||function(S){for(var E=1;E<arguments.length;E++){var R=arguments[E];for(var O in R)Object.prototype.hasOwnProperty.call(R,O)&&(S[O]=R[O])}return S};function h(S,E){var R={};for(var O in S)E.indexOf(O)>=0||Object.prototype.hasOwnProperty.call(S,O)&&(R[O]=S[O]);return R}function y(S,E){if(!(S instanceof E))throw new TypeError("Cannot call a class as a function")}var v=(function(){function S(E,R){for(var O=0;O<R.length;O++){var k=R[O];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(E,k.key,k)}}return function(E,R,O){return R&&S(E.prototype,R),O&&S(E,O),E}})();function g(S,E){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:S}function d(S,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);S.prototype=Object.create(E&&E.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(S,E):S.__proto__=E)}var w=!1;function x(S){w=S}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){x(!0)}}))}catch{}function f(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return w?S:S.capture}function b(S){if("touches"in S){var E=S.touches[0],R=E.pageX,O=E.pageY;return{x:R,y:O}}var k=S.screenX,B=S.screenY;return{x:k,y:B}}var p=(function(S){d(E,S);function E(){var R;y(this,E);for(var O=arguments.length,k=Array(O),B=0;B<O;B++)k[B]=arguments[B];var L=g(this,(R=E.__proto__||Object.getPrototypeOf(E)).call.apply(R,[this].concat(k)));return L._handleSwipeStart=L._handleSwipeStart.bind(L),L._handleSwipeMove=L._handleSwipeMove.bind(L),L._handleSwipeEnd=L._handleSwipeEnd.bind(L),L._onMouseDown=L._onMouseDown.bind(L),L._onMouseMove=L._onMouseMove.bind(L),L._onMouseUp=L._onMouseUp.bind(L),L._setSwiperRef=L._setSwiperRef.bind(L),L}return v(E,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,f({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,f({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(O){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(O))}},{key:"_onMouseMove",value:function(O){this.mouseDown&&this._handleSwipeMove(O)}},{key:"_onMouseUp",value:function(O){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(O)}},{key:"_handleSwipeStart",value:function(O){var k=b(O),B=k.x,L=k.y;this.moveStart={x:B,y:L},this.props.onSwipeStart(O)}},{key:"_handleSwipeMove",value:function(O){if(this.moveStart){var k=b(O),B=k.x,L=k.y,M=B-this.moveStart.x,G=L-this.moveStart.y;this.moving=!0;var N=this.props.onSwipeMove({x:M,y:G},O);N&&O.cancelable&&O.preventDefault(),this.movePosition={deltaX:M,deltaY:G}}}},{key:"_handleSwipeEnd",value:function(O){this.props.onSwipeEnd(O);var k=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-k?this.props.onSwipeLeft(1,O):this.movePosition.deltaX>k&&this.props.onSwipeRight(1,O),this.movePosition.deltaY<-k?this.props.onSwipeUp(1,O):this.movePosition.deltaY>k&&this.props.onSwipeDown(1,O)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(O){this.swiper=O,this.props.innerRef(O)}},{key:"render",value:function(){var O=this.props;O.tagName;var k=O.className,B=O.style,L=O.children;O.allowMouseEvents,O.onSwipeUp,O.onSwipeDown,O.onSwipeLeft,O.onSwipeRight,O.onSwipeStart,O.onSwipeMove,O.onSwipeEnd,O.innerRef,O.tolerance;var M=h(O,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return s.default.createElement(this.props.tagName,c({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:k,style:B},M),L)}}]),E})(r.Component);p.displayName="ReactSwipe",p.propTypes={tagName:a.default.string,className:a.default.string,style:a.default.object,children:a.default.node,allowMouseEvents:a.default.bool,onSwipeUp:a.default.func,onSwipeDown:a.default.func,onSwipeLeft:a.default.func,onSwipeRight:a.default.func,onSwipeStart:a.default.func,onSwipeMove:a.default.func,onSwipeEnd:a.default.func,innerRef:a.default.func,tolerance:a.default.number.isRequired},p.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=p})})(Ms)),Ms}var Qh;function Zv(){return Qh||(Qh=1,(function(e){(function(t,r){r(e,HR())})(Ls,function(t,r){Object.defineProperty(t,"__esModule",{value:!0});var o=s(r);function s(a){return a&&a.__esModule?a:{default:a}}t.default=o.default})})(Ls)),Ls}var Gi={},eg;function Gv(){if(eg)return Gi;eg=1,Object.defineProperty(Gi,"__esModule",{value:!0}),Gi.default=void 0;var e=t(sv());function t(s){return s&&s.__esModule?s:{default:s}}function r(s,a,l){return a in s?Object.defineProperty(s,a,{value:l,enumerable:!0,configurable:!0,writable:!0}):s[a]=l,s}var o={ROOT:function(a){return(0,e.default)(r({"carousel-root":!0},a||"",!!a))},CAROUSEL:function(a){return(0,e.default)({carousel:!0,"carousel-slider":a})},WRAPPER:function(a,l){return(0,e.default)({"thumbs-wrapper":!a,"slider-wrapper":a,"axis-horizontal":l==="horizontal","axis-vertical":l!=="horizontal"})},SLIDER:function(a,l){return(0,e.default)({thumbs:!a,slider:a,animated:!l})},ITEM:function(a,l,c){return(0,e.default)({thumb:!a,slide:a,selected:l,previous:c})},ARROW_PREV:function(a){return(0,e.default)({"control-arrow control-prev":!0,"control-disabled":a})},ARROW_NEXT:function(a){return(0,e.default)({"control-arrow control-next":!0,"control-disabled":a})},DOT:function(a){return(0,e.default)({dot:!0,selected:a})}};return Gi.default=o,Gi}var Ki={},Vi={},tg;function qR(){if(tg)return Vi;tg=1,Object.defineProperty(Vi,"__esModule",{value:!0}),Vi.outerWidth=void 0;var e=function(r){var o=r.offsetWidth,s=getComputedStyle(r);return o+=parseInt(s.marginLeft)+parseInt(s.marginRight),o};return Vi.outerWidth=e,Vi}var Yi={},rg;function vc(){if(rg)return Yi;rg=1,Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.default=void 0;var e=function(r,o,s){var a=r===0?r:r+o,l=s==="horizontal"?[a,0,0]:[0,a,0],c="translate3d",h="("+l.join(",")+")";return c+h};return Yi.default=e,Yi}var Xi={},ng;function Kv(){if(ng)return Xi;ng=1,Object.defineProperty(Xi,"__esModule",{value:!0}),Xi.default=void 0;var e=function(){return window};return Xi.default=e,Xi}var ig;function Vv(){if(ig)return Ki;ig=1,Object.defineProperty(Ki,"__esModule",{value:!0}),Ki.default=void 0;var e=h(W),t=l(Gv()),r=qR(),o=l(vc()),s=l(Zv()),a=l(Kv());function l(L){return L&&L.__esModule?L:{default:L}}function c(){if(typeof WeakMap!="function")return null;var L=new WeakMap;return c=function(){return L},L}function h(L){if(L&&L.__esModule)return L;if(L===null||y(L)!=="object"&&typeof L!="function")return{default:L};var M=c();if(M&&M.has(L))return M.get(L);var G={},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var I in L)if(Object.prototype.hasOwnProperty.call(L,I)){var U=N?Object.getOwnPropertyDescriptor(L,I):null;U&&(U.get||U.set)?Object.defineProperty(G,I,U):G[I]=L[I]}return G.default=L,M&&M.set(L,G),G}function y(L){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(G){return typeof G}:y=function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},y(L)}function v(){return v=Object.assign||function(L){for(var M=1;M<arguments.length;M++){var G=arguments[M];for(var N in G)Object.prototype.hasOwnProperty.call(G,N)&&(L[N]=G[N])}return L},v.apply(this,arguments)}function g(L,M){if(!(L instanceof M))throw new TypeError("Cannot call a class as a function")}function d(L,M){for(var G=0;G<M.length;G++){var N=M[G];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(L,N.key,N)}}function w(L,M,G){return M&&d(L.prototype,M),L}function x(L,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(M&&M.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),M&&f(L,M)}function f(L,M){return f=Object.setPrototypeOf||function(N,I){return N.__proto__=I,N},f(L,M)}function b(L){var M=E();return function(){var N=R(L),I;if(M){var U=R(this).constructor;I=Reflect.construct(N,arguments,U)}else I=N.apply(this,arguments);return p(this,I)}}function p(L,M){return M&&(y(M)==="object"||typeof M=="function")?M:S(L)}function S(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}function E(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function R(L){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(G){return G.__proto__||Object.getPrototypeOf(G)},R(L)}function O(L,M,G){return M in L?Object.defineProperty(L,M,{value:G,enumerable:!0,configurable:!0,writable:!0}):L[M]=G,L}var k=function(M){return M.hasOwnProperty("key")},B=(function(L){x(G,L);var M=b(G);function G(N){var I;return g(this,G),I=M.call(this,N),O(S(I),"itemsWrapperRef",void 0),O(S(I),"itemsListRef",void 0),O(S(I),"thumbsRef",void 0),O(S(I),"setItemsWrapperRef",function(U){I.itemsWrapperRef=U}),O(S(I),"setItemsListRef",function(U){I.itemsListRef=U}),O(S(I),"setThumbsRef",function(U,q){I.thumbsRef||(I.thumbsRef=[]),I.thumbsRef[q]=U}),O(S(I),"updateSizes",function(){if(!(!I.props.children||!I.itemsWrapperRef||!I.thumbsRef)){var U=e.Children.count(I.props.children),q=I.itemsWrapperRef.clientWidth,C=I.props.thumbWidth?I.props.thumbWidth:(0,r.outerWidth)(I.thumbsRef[0]),J=Math.floor(q/C),Y=J<U,te=Y?U-J:0;I.setState(function(de,Z){return{itemSize:C,visibleItems:J,firstItem:Y?I.getFirstItem(Z.selectedItem):0,lastPosition:te,showArrows:Y}})}}),O(S(I),"handleClickItem",function(U,q,C){if(!k(C)||C.key==="Enter"){var J=I.props.onSelectItem;typeof J=="function"&&J(U,q)}}),O(S(I),"onSwipeStart",function(){I.setState({swiping:!0})}),O(S(I),"onSwipeEnd",function(){I.setState({swiping:!1})}),O(S(I),"onSwipeMove",function(U){var q=U.x;if(!I.state.itemSize||!I.itemsWrapperRef||!I.state.visibleItems)return!1;var C=0,J=e.Children.count(I.props.children),Y=-(I.state.firstItem*100)/I.state.visibleItems,te=Math.max(J-I.state.visibleItems,0),de=-te*100/I.state.visibleItems;Y===C&&q>0&&(q=0),Y===de&&q<0&&(q=0);var Z=I.itemsWrapperRef.clientWidth,Q=Y+100/(Z/q);return I.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(se){I.itemsListRef.style[se]=(0,o.default)(Q,"%",I.props.axis)}),!0}),O(S(I),"slideRight",function(U){I.moveTo(I.state.firstItem-(typeof U=="number"?U:1))}),O(S(I),"slideLeft",function(U){I.moveTo(I.state.firstItem+(typeof U=="number"?U:1))}),O(S(I),"moveTo",function(U){U=U<0?0:U,U=U>=I.state.lastPosition?I.state.lastPosition:U,I.setState({firstItem:U})}),I.state={selectedItem:N.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},I}return w(G,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(I){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==I.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,a.default)().addEventListener("resize",this.updateSizes),(0,a.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,a.default)().removeEventListener("resize",this.updateSizes),(0,a.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(I){var U=I;return I>=this.state.lastPosition&&(U=this.state.lastPosition),I<this.state.firstItem+this.state.visibleItems&&(U=this.state.firstItem),I<this.state.firstItem&&(U=I),U}},{key:"renderItems",value:function(){var I=this;return this.props.children.map(function(U,q){var C=t.default.ITEM(!1,q===I.state.selectedItem),J={key:q,ref:function(te){return I.setThumbsRef(te,q)},className:C,onClick:I.handleClickItem.bind(I,q,I.props.children[q]),onKeyDown:I.handleClickItem.bind(I,q,I.props.children[q]),"aria-label":"".concat(I.props.labels.item," ").concat(q+1),style:{width:I.props.thumbWidth}};return e.default.createElement("li",v({},J,{role:"button",tabIndex:0}),U)})}},{key:"render",value:function(){var I=this;if(!this.props.children)return null;var U=e.Children.count(this.props.children)>1,q=this.state.showArrows&&this.state.firstItem>0,C=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,J={},Y=-this.state.firstItem*(this.state.itemSize||0),te=(0,o.default)(Y,"px",this.props.axis),de=this.props.transitionTime+"ms";return J={WebkitTransform:te,MozTransform:te,MsTransform:te,OTransform:te,transform:te,msTransform:te,WebkitTransitionDuration:de,MozTransitionDuration:de,MsTransitionDuration:de,OTransitionDuration:de,transitionDuration:de,msTransitionDuration:de},e.default.createElement("div",{className:t.default.CAROUSEL(!1)},e.default.createElement("div",{className:t.default.WRAPPER(!1),ref:this.setItemsWrapperRef},e.default.createElement("button",{type:"button",className:t.default.ARROW_PREV(!q),onClick:function(){return I.slideRight()},"aria-label":this.props.labels.leftArrow}),U?e.default.createElement(s.default,{tagName:"ul",className:t.default.SLIDER(!1,this.state.swiping),onSwipeLeft:this.slideLeft,onSwipeRight:this.slideRight,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:J,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):e.default.createElement("ul",{className:t.default.SLIDER(!1,this.state.swiping),ref:function(Q){return I.setItemsListRef(Q)},style:J},this.renderItems()),e.default.createElement("button",{type:"button",className:t.default.ARROW_NEXT(!C),onClick:function(){return I.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),G})(e.Component);return Ki.default=B,O(B,"displayName","Thumbs"),O(B,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350}),Ki}var Ji={},og;function ZR(){if(og)return Ji;og=1,Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.default=void 0;var e=function(){return document};return Ji.default=e,Ji}var Wt={},sg;function Yv(){if(sg)return Wt;sg=1,Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.setPosition=Wt.getPosition=Wt.isKeyboardEvent=Wt.defaultStatusFormatter=Wt.noop=void 0;var e=W,t=r(vc());function r(h){return h&&h.__esModule?h:{default:h}}var o=function(){};Wt.noop=o;var s=function(y,v){return"".concat(y," of ").concat(v)};Wt.defaultStatusFormatter=s;var a=function(y){return y?y.hasOwnProperty("key"):!1};Wt.isKeyboardEvent=a;var l=function(y,v){if(v.infiniteLoop&&++y,y===0)return 0;var g=e.Children.count(v.children);if(v.centerMode&&v.axis==="horizontal"){var d=-y*v.centerSlidePercentage,w=g-1;return y&&(y!==w||v.infiniteLoop)?d+=(100-v.centerSlidePercentage)/2:y===w&&(d+=100-v.centerSlidePercentage),d}return-y*100};Wt.getPosition=l;var c=function(y,v){var g={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(d){g[d]=(0,t.default)(y,"%",v)}),g};return Wt.setPosition=c,Wt}var ar={},ag;function GR(){if(ag)return ar;ag=1,Object.defineProperty(ar,"__esModule",{value:!0}),ar.fadeAnimationHandler=ar.slideStopSwipingHandler=ar.slideSwipeAnimationHandler=ar.slideAnimationHandler=void 0;var e=W,t=o(vc()),r=Yv();function o(g){return g&&g.__esModule?g:{default:g}}function s(g,d){var w=Object.keys(g);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(g);d&&(x=x.filter(function(f){return Object.getOwnPropertyDescriptor(g,f).enumerable})),w.push.apply(w,x)}return w}function a(g){for(var d=1;d<arguments.length;d++){var w=arguments[d]!=null?arguments[d]:{};d%2?s(Object(w),!0).forEach(function(x){l(g,x,w[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(w)):s(Object(w)).forEach(function(x){Object.defineProperty(g,x,Object.getOwnPropertyDescriptor(w,x))})}return g}function l(g,d,w){return d in g?Object.defineProperty(g,d,{value:w,enumerable:!0,configurable:!0,writable:!0}):g[d]=w,g}var c=function(d,w){var x={},f=w.selectedItem,b=f,p=e.Children.count(d.children)-1,S=d.infiniteLoop&&(f<0||f>p);if(S)return b<0?d.centerMode&&d.centerSlidePercentage&&d.axis==="horizontal"?x.itemListStyle=(0,r.setPosition)(-(p+2)*d.centerSlidePercentage-(100-d.centerSlidePercentage)/2,d.axis):x.itemListStyle=(0,r.setPosition)(-(p+2)*100,d.axis):b>p&&(x.itemListStyle=(0,r.setPosition)(0,d.axis)),x;var E=(0,r.getPosition)(f,d),R=(0,t.default)(E,"%",d.axis),O=d.transitionTime+"ms";return x.itemListStyle={WebkitTransform:R,msTransform:R,OTransform:R,transform:R},w.swiping||(x.itemListStyle=a(a({},x.itemListStyle),{},{WebkitTransitionDuration:O,MozTransitionDuration:O,OTransitionDuration:O,transitionDuration:O,msTransitionDuration:O})),x};ar.slideAnimationHandler=c;var h=function(d,w,x,f){var b={},p=w.axis==="horizontal",S=e.Children.count(w.children),E=0,R=(0,r.getPosition)(x.selectedItem,w),O=w.infiniteLoop?(0,r.getPosition)(S-1,w)-100:(0,r.getPosition)(S-1,w),k=p?d.x:d.y,B=k;R===E&&k>0&&(B=0),R===O&&k<0&&(B=0);var L=R+100/(x.itemSize/B),M=Math.abs(k)>w.swipeScrollTolerance;return w.infiniteLoop&&M&&(x.selectedItem===0&&L>-100?L-=S*100:x.selectedItem===S-1&&L<-S*100&&(L+=S*100)),(!w.preventMovementUntilSwipeScrollTolerance||M||x.swipeMovementStarted)&&(x.swipeMovementStarted||f({swipeMovementStarted:!0}),b.itemListStyle=(0,r.setPosition)(L,w.axis)),M&&!x.cancelClick&&f({cancelClick:!0}),b};ar.slideSwipeAnimationHandler=h;var y=function(d,w){var x=(0,r.getPosition)(w.selectedItem,d),f=(0,r.setPosition)(x,d.axis);return{itemListStyle:f}};ar.slideStopSwipingHandler=y;var v=function(d,w){var x=d.transitionTime+"ms",f="ease-in-out",b={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:f,msTransitionTimingFunction:f,MozTransitionTimingFunction:f,WebkitTransitionTimingFunction:f,OTransitionTimingFunction:f};return w.swiping||(b=a(a({},b),{},{WebkitTransitionDuration:x,MozTransitionDuration:x,OTransitionDuration:x,transitionDuration:x,msTransitionDuration:x})),{slideStyle:b,selectedStyle:a(a({},b),{},{opacity:1,position:"relative"}),prevStyle:a({},b)}};return ar.fadeAnimationHandler=v,ar}var ug;function KR(){if(ug)return Zi;ug=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.default=void 0;var e=v(W),t=h(Zv()),r=h(Gv()),o=h(Vv()),s=h(ZR()),a=h(Kv()),l=Yv(),c=GR();function h(N){return N&&N.__esModule?N:{default:N}}function y(){if(typeof WeakMap!="function")return null;var N=new WeakMap;return y=function(){return N},N}function v(N){if(N&&N.__esModule)return N;if(N===null||g(N)!=="object"&&typeof N!="function")return{default:N};var I=y();if(I&&I.has(N))return I.get(N);var U={},q=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in N)if(Object.prototype.hasOwnProperty.call(N,C)){var J=q?Object.getOwnPropertyDescriptor(N,C):null;J&&(J.get||J.set)?Object.defineProperty(U,C,J):U[C]=N[C]}return U.default=N,I&&I.set(N,U),U}function g(N){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?g=function(U){return typeof U}:g=function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},g(N)}function d(){return d=Object.assign||function(N){for(var I=1;I<arguments.length;I++){var U=arguments[I];for(var q in U)Object.prototype.hasOwnProperty.call(U,q)&&(N[q]=U[q])}return N},d.apply(this,arguments)}function w(N,I){var U=Object.keys(N);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(N);I&&(q=q.filter(function(C){return Object.getOwnPropertyDescriptor(N,C).enumerable})),U.push.apply(U,q)}return U}function x(N){for(var I=1;I<arguments.length;I++){var U=arguments[I]!=null?arguments[I]:{};I%2?w(Object(U),!0).forEach(function(q){M(N,q,U[q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(U)):w(Object(U)).forEach(function(q){Object.defineProperty(N,q,Object.getOwnPropertyDescriptor(U,q))})}return N}function f(N,I){if(!(N instanceof I))throw new TypeError("Cannot call a class as a function")}function b(N,I){for(var U=0;U<I.length;U++){var q=I[U];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(N,q.key,q)}}function p(N,I,U){return I&&b(N.prototype,I),N}function S(N,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(I&&I.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),I&&E(N,I)}function E(N,I){return E=Object.setPrototypeOf||function(q,C){return q.__proto__=C,q},E(N,I)}function R(N){var I=B();return function(){var q=L(N),C;if(I){var J=L(this).constructor;C=Reflect.construct(q,arguments,J)}else C=q.apply(this,arguments);return O(this,C)}}function O(N,I){return I&&(g(I)==="object"||typeof I=="function")?I:k(N)}function k(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function B(){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 L(N){return L=Object.setPrototypeOf?Object.getPrototypeOf:function(U){return U.__proto__||Object.getPrototypeOf(U)},L(N)}function M(N,I,U){return I in N?Object.defineProperty(N,I,{value:U,enumerable:!0,configurable:!0,writable:!0}):N[I]=U,N}var G=(function(N){S(U,N);var I=R(U);function U(q){var C;f(this,U),C=I.call(this,q),M(k(C),"thumbsRef",void 0),M(k(C),"carouselWrapperRef",void 0),M(k(C),"listRef",void 0),M(k(C),"itemsRef",void 0),M(k(C),"timer",void 0),M(k(C),"animationHandler",void 0),M(k(C),"setThumbsRef",function(Y){C.thumbsRef=Y}),M(k(C),"setCarouselWrapperRef",function(Y){C.carouselWrapperRef=Y}),M(k(C),"setListRef",function(Y){C.listRef=Y}),M(k(C),"setItemsRef",function(Y,te){C.itemsRef||(C.itemsRef=[]),C.itemsRef[te]=Y}),M(k(C),"autoPlay",function(){e.Children.count(C.props.children)<=1||(C.clearAutoPlay(),C.props.autoPlay&&(C.timer=setTimeout(function(){C.increment()},C.props.interval)))}),M(k(C),"clearAutoPlay",function(){C.timer&&clearTimeout(C.timer)}),M(k(C),"resetAutoPlay",function(){C.clearAutoPlay(),C.autoPlay()}),M(k(C),"stopOnHover",function(){C.setState({isMouseEntered:!0},C.clearAutoPlay)}),M(k(C),"startOnLeave",function(){C.setState({isMouseEntered:!1},C.autoPlay)}),M(k(C),"isFocusWithinTheCarousel",function(){return C.carouselWrapperRef?!!((0,s.default)().activeElement===C.carouselWrapperRef||C.carouselWrapperRef.contains((0,s.default)().activeElement)):!1}),M(k(C),"navigateWithKeyboard",function(Y){if(C.isFocusWithinTheCarousel()){var te=C.props.axis,de=te==="horizontal",Z={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},Q=de?Z.ArrowRight:Z.ArrowDown,se=de?Z.ArrowLeft:Z.ArrowUp;Q===Y.keyCode?C.increment():se===Y.keyCode&&C.decrement()}}),M(k(C),"updateSizes",function(){if(!(!C.state.initialized||!C.itemsRef||C.itemsRef.length===0)){var Y=C.props.axis==="horizontal",te=C.itemsRef[0];if(te){var de=Y?te.clientWidth:te.clientHeight;C.setState({itemSize:de}),C.thumbsRef&&C.thumbsRef.updateSizes()}}}),M(k(C),"setMountState",function(){C.setState({hasMount:!0}),C.updateSizes()}),M(k(C),"handleClickItem",function(Y,te){if(e.Children.count(C.props.children)!==0){if(C.state.cancelClick){C.setState({cancelClick:!1});return}C.props.onClickItem(Y,te),Y!==C.state.selectedItem&&C.setState({selectedItem:Y})}}),M(k(C),"handleOnChange",function(Y,te){e.Children.count(C.props.children)<=1||C.props.onChange(Y,te)}),M(k(C),"handleClickThumb",function(Y,te){C.props.onClickThumb(Y,te),C.moveTo(Y)}),M(k(C),"onSwipeStart",function(Y){C.setState({swiping:!0}),C.props.onSwipeStart(Y)}),M(k(C),"onSwipeEnd",function(Y){C.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),C.props.onSwipeEnd(Y),C.clearAutoPlay(),C.state.autoPlay&&C.autoPlay()}),M(k(C),"onSwipeMove",function(Y,te){C.props.onSwipeMove(te);var de=C.props.swipeAnimationHandler(Y,C.props,C.state,C.setState.bind(k(C)));return C.setState(x({},de)),!!Object.keys(de).length}),M(k(C),"decrement",function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;C.moveTo(C.state.selectedItem-(typeof Y=="number"?Y:1))}),M(k(C),"increment",function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;C.moveTo(C.state.selectedItem+(typeof Y=="number"?Y:1))}),M(k(C),"moveTo",function(Y){if(typeof Y=="number"){var te=e.Children.count(C.props.children)-1;Y<0&&(Y=C.props.infiniteLoop?te:0),Y>te&&(Y=C.props.infiniteLoop?0:te),C.selectItem({selectedItem:Y}),C.state.autoPlay&&C.state.isMouseEntered===!1&&C.resetAutoPlay()}}),M(k(C),"onClickNext",function(){C.increment(1)}),M(k(C),"onClickPrev",function(){C.decrement(1)}),M(k(C),"onSwipeForward",function(){C.increment(1),C.props.emulateTouch&&C.setState({cancelClick:!0})}),M(k(C),"onSwipeBackwards",function(){C.decrement(1),C.props.emulateTouch&&C.setState({cancelClick:!0})}),M(k(C),"changeItem",function(Y){return function(te){(!(0,l.isKeyboardEvent)(te)||te.key==="Enter")&&C.moveTo(Y)}}),M(k(C),"selectItem",function(Y){C.setState(x({previousItem:C.state.selectedItem},Y),function(){C.setState(C.animationHandler(C.props,C.state))}),C.handleOnChange(Y.selectedItem,e.Children.toArray(C.props.children)[Y.selectedItem])}),M(k(C),"getInitialImage",function(){var Y=C.props.selectedItem,te=C.itemsRef&&C.itemsRef[Y],de=te&&te.getElementsByTagName("img")||[];return de[0]}),M(k(C),"getVariableItemHeight",function(Y){var te=C.itemsRef&&C.itemsRef[Y];if(C.state.hasMount&&te&&te.children.length){var de=te.children[0].getElementsByTagName("img")||[];if(de.length>0){var Z=de[0];if(!Z.complete){var Q=function ne(){C.forceUpdate(),Z.removeEventListener("load",ne)};Z.addEventListener("load",Q)}}var se=de[0]||te.children[0],ue=se.clientHeight;return ue>0?ue:null}return null});var J={initialized:!1,previousItem:q.selectedItem,selectedItem:q.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:q.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return C.animationHandler=typeof q.animationHandler=="function"&&q.animationHandler||q.animationHandler==="fade"&&c.fadeAnimationHandler||c.slideAnimationHandler,C.state=x(x({},J),C.animationHandler(q,J)),C}return p(U,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(C,J){!C.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!C.autoFocus&&this.props.autoFocus&&this.forceFocus(),J.swiping&&!this.state.swiping&&this.setState(x({},this.props.stopSwipingHandler(this.props,this.state))),(C.selectedItem!==this.props.selectedItem||C.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),C.autoPlay!==this.props.autoPlay&&(this.props.autoPlay?this.setupAutoPlay():this.destroyAutoPlay(),this.setState({autoPlay:this.props.autoPlay}))}},{key:"componentWillUnmount",value:function(){this.destroyCarousel()}},{key:"setupCarousel",value:function(){var C=this;this.bindEvents(),this.state.autoPlay&&e.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},function(){var J=C.getInitialImage();J&&!J.complete?J.addEventListener("load",C.setMountState):C.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var C=this.carouselWrapperRef;this.props.stopOnHover&&C&&(C.addEventListener("mouseenter",this.stopOnHover),C.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var C=this.carouselWrapperRef;this.props.stopOnHover&&C&&(C.removeEventListener("mouseenter",this.stopOnHover),C.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,a.default)().addEventListener("resize",this.updateSizes),(0,a.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,s.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,a.default)().removeEventListener("resize",this.updateSizes),(0,a.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var C=this.getInitialImage();C&&C.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,s.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var C;(C=this.carouselWrapperRef)===null||C===void 0||C.focus()}},{key:"renderItems",value:function(C){var J=this;return this.props.children?e.Children.map(this.props.children,function(Y,te){var de=te===J.state.selectedItem,Z=te===J.state.previousItem,Q=de&&J.state.selectedStyle||Z&&J.state.prevStyle||J.state.slideStyle||{};J.props.centerMode&&J.props.axis==="horizontal"&&(Q=x(x({},Q),{},{minWidth:J.props.centerSlidePercentage+"%"})),J.state.swiping&&J.state.swipeMovementStarted&&(Q=x(x({},Q),{},{pointerEvents:"none"}));var se={ref:function(ne){return J.setItemsRef(ne,te)},key:"itemKey"+te+(C?"clone":""),className:r.default.ITEM(!0,te===J.state.selectedItem,te===J.state.previousItem),onClick:J.handleClickItem.bind(J,te,Y),style:Q};return e.default.createElement("li",se,J.props.renderItem(Y,{isSelected:te===J.state.selectedItem,isPrevious:te===J.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var C=this,J=this.props,Y=J.showIndicators,te=J.labels,de=J.renderIndicator,Z=J.children;return Y?e.default.createElement("ul",{className:"control-dots"},e.Children.map(Z,function(Q,se){return de&&de(C.changeItem(se),se===C.state.selectedItem,se,te.item)})):null}},{key:"renderStatus",value:function(){return this.props.showStatus?e.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,e.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return!this.props.showThumbs||!this.props.children||e.Children.count(this.props.children)===0?null:e.default.createElement(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 C=this;if(!this.props.children||e.Children.count(this.props.children)===0)return null;var J=this.props.swipeable&&e.Children.count(this.props.children)>1,Y=this.props.axis==="horizontal",te=this.props.showArrows&&e.Children.count(this.props.children)>1,de=te&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,Z=te&&(this.state.selectedItem<e.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,Q=this.renderItems(!0),se=Q.shift(),ue=Q.pop(),ne={className:r.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},ce={};if(Y){if(ne.onSwipeLeft=this.onSwipeForward,ne.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var fe=this.getVariableItemHeight(this.state.selectedItem);ce.height=fe||"auto"}}else ne.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,ne.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,ne.style=x(x({},ne.style),{},{height:this.state.itemSize}),ce.height=this.state.itemSize;return e.default.createElement("div",{"aria-label":this.props.ariaLabel,className:r.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},e.default.createElement("div",{className:r.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,de,this.props.labels.leftArrow),e.default.createElement("div",{className:r.default.WRAPPER(!0,this.props.axis),style:ce},J?e.default.createElement(t.default,d({tagName:"ul",innerRef:this.setListRef},ne,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&ue,this.renderItems(),this.props.infiniteLoop&&se):e.default.createElement("ul",{className:r.default.SLIDER(!0,this.state.swiping),ref:function(ve){return C.setListRef(ve)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&ue,this.renderItems(),this.props.infiniteLoop&&se)),this.props.renderArrowNext(this.onClickNext,Z,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),U})(e.default.Component);return Zi.default=G,M(G,"displayName","Carousel"),M(G,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:l.noop,onClickThumb:l.noop,onChange:l.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(I,U,q){return e.default.createElement("button",{type:"button","aria-label":q,className:r.default.ARROW_PREV(!U),onClick:I})},renderArrowNext:function(I,U,q){return e.default.createElement("button",{type:"button","aria-label":q,className:r.default.ARROW_NEXT(!U),onClick:I})},renderIndicator:function(I,U,q,C){return e.default.createElement("li",{className:r.default.DOT(U),onClick:I,onKeyDown:I,value:q,key:q,role:"button",tabIndex:0,"aria-label":"".concat(C," ").concat(q+1)})},renderItem:function(I){return I},renderThumbs:function(I){var U=e.Children.map(I,function(q){var C=q;if(q.type!=="img"&&(C=e.Children.toArray(q.props.children).find(function(J){return J.type==="img"})),!!C)return C});return U.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"),[]):U},statusFormatter:l.defaultStatusFormatter,selectedItem:0,showArrows:!0,showIndicators:!0,showStatus:!0,showThumbs:!0,stopOnHover:!0,swipeScrollTolerance:5,swipeable:!0,transitionTime:350,verticalSwipe:"standard",width:"100%",animationHandler:"slide",swipeAnimationHandler:c.slideSwipeAnimationHandler,stopSwipingHandler:c.slideStopSwipingHandler}),Zi}var lg={},cg;function VR(){return cg||(cg=1),lg}var fg;function YR(){return fg||(fg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Carousel",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"CarouselProps",{enumerable:!0,get:function(){return r.CarouselProps}}),Object.defineProperty(e,"Thumbs",{enumerable:!0,get:function(){return o.default}});var t=s(KR()),r=VR(),o=s(Vv());function s(a){return a&&a.__esModule?a:{default:a}}})(gl)),gl}var XR=YR();const JR=({tip:e})=>z.jsx("div",{className:"h-full grid pb-8 px-8 place-content-center",children:Xv(e,!0)}),QR=({pages:e})=>z.jsx("div",{className:"min-h-[10rem] w-96",children:z.jsx(XR.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(t=>z.jsx(JR,{tip:t},t.key))})}),eP=({body:e,isInsideCarousel:t})=>z.jsx("article",{className:tt(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-grey-100 ",{"w-60":!t}]),children:z.jsx(ea,{children:e,options:{overrides:{a:{component:({children:r,...o})=>z.jsxs("a",{...o,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary-dark",children:[r,z.jsx(st.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),tP=({video:e,body:t,title:r,isInsideCarousel:o})=>z.jsxs("div",{className:tt([{"flex flex-row":!o,"flex max-h-[10rem] flex-col overflow-y-auto":o}]),children:[z.jsx("div",{className:tt([{"mr-1":!o,"mb-1":o}]),children:z.jsx("iframe",{height:o?"auto":90,width:o?"100%":160,src:e==null?void 0:e.link,title:r,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}),z.jsx("article",{className:tt(["prose prose-sm p-1 text-left text-xs text-grey-100",{"w-60 overflow-auto":!o,"-mt-6":o}]),children:z.jsx(ea,{children:t||"",options:{overrides:{a:{component:({children:s,...a})=>z.jsxs("a",{...a,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[s,z.jsx(st.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),Xv=(e,t)=>{switch(e.type){case Ys.TEXT:return z.jsx(eP,{body:e.body,isInsideCarousel:t});case Ys.VIDEO:return z.jsx(tP,{video:e.video,body:e.body,title:e.title,isInsideCarousel:t});case Ys.CAROUSEL:return z.jsx(QR,{pages:e.pages})}},Jv=W.createContext(void 0);function dg(e,t){const r=[];return e.forEach(o=>{o.key===t&&r.push(o)}),r}const rP=({children:e,enabled:t,baseUrl:r="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:o,show:s},a]=W.useState({tips:{},show:!0});W.useEffect(()=>{const c=new AbortController;try{fetch(`${r}/tips.json`,{signal:c.signal}).then(h=>h.json()).then(h=>{const y=h.reduce((v,g)=>dg(h,g.key).length>1?{...v,[g.key]:{type:"carousel",pages:dg(h,g.key)}}:{...v,[g.key]:g},{});a(v=>({...v,tips:y}))})}catch{}return()=>{c.abort()}},[]);const l=()=>{a(c=>({...c,show:!s}))};return z.jsx(Jv.Provider,{value:{tips:o,toggleTips:l,show:s,enabled:t},children:e})},Qv=e=>{const t=W.useContext(Jv);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}},nP=ta(MR)`
|
|
80
|
+
*/var Fl,kg;function MP(){if(kg)return Fl;kg=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function a(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var l={},c=0;c<10;c++)l["_"+String.fromCharCode(c)]=c;var d=Object.getOwnPropertyNames(l).map(function(v){return l[v]});if(d.join("")!=="0123456789")return!1;var m={};return"abcdefghijklmnopqrst".split("").forEach(function(v){m[v]=v}),Object.keys(Object.assign({},m)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Fl=a()?Object.assign:function(s,l){for(var c,d=i(s),m,v=1;v<arguments.length;v++){c=Object(arguments[v]);for(var g in c)t.call(c,g)&&(d[g]=c[g]);if(e){m=e(c);for(var p=0;p<m.length;p++)r.call(c,m[p])&&(d[m[p]]=c[m[p]])}}return d},Fl}var Dl,$g;function Kc(){if($g)return Dl;$g=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Dl=e,Dl}var Nl,Ig;function Hm(){return Ig||(Ig=1,Nl=Function.call.bind(Object.prototype.hasOwnProperty)),Nl}var jl,Lg;function FP(){if(Lg)return jl;Lg=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Kc(),r={},i=Hm();e=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function a(s,l,c,d,m){if(process.env.NODE_ENV!=="production"){for(var v in s)if(i(s,v)){var g;try{if(typeof s[v]!="function"){var p=Error((d||"React class")+": "+c+" type `"+v+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[v]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}g=s[v](l,v,d,c,null,t)}catch(x){g=x}if(g&&!(g instanceof Error)&&e((d||"React class")+": type specification of "+c+" `"+v+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in r)){r[g.message]=!0;var w=m?m():"";e("Failed "+c+" type: "+g.message+(w??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},jl=a,jl}var zl,Mg;function DP(){if(Mg)return zl;Mg=1;var e=Um(),t=MP(),r=Kc(),i=Hm(),a=FP(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(c){var d="Warning: "+c;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function l(){return null}return zl=function(c,d){var m=typeof Symbol=="function"&&Symbol.iterator,v="@@iterator";function g(Z){var Q=Z&&(m&&Z[m]||Z[v]);if(typeof Q=="function")return Q}var p="<<anonymous>>",w={array:h("array"),bigint:h("bigint"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:S(),arrayOf:E,element:R(),elementType:O(),instanceOf:k,node:G(),objectOf:M,oneOf:B,oneOfType:F,shape:L,exact:U};function x(Z,Q){return Z===Q?Z!==0||1/Z===1/Q:Z!==Z&&Q!==Q}function f(Z,Q){this.message=Z,this.data=Q&&typeof Q=="object"?Q:{},this.stack=""}f.prototype=Error.prototype;function b(Z){if(process.env.NODE_ENV!=="production")var Q={},ae=0;function ue(ce,fe,ye,ve,Ee,Ae,qe){if(ve=ve||p,Ae=Ae||ye,qe!==r){if(d){var ie=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw ie.name="Invariant Violation",ie}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var mt=ve+":"+ye;!Q[mt]&&ae<3&&(s("You are manually calling a React.PropTypes validation function for the `"+Ae+"` prop on `"+ve+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),Q[mt]=!0,ae++)}}return fe[ye]==null?ce?fe[ye]===null?new f("The "+Ee+" `"+Ae+"` is marked as required "+("in `"+ve+"`, but its value is `null`.")):new f("The "+Ee+" `"+Ae+"` is marked as required in "+("`"+ve+"`, but its value is `undefined`.")):null:Z(fe,ye,ve,Ee,Ae)}var ne=ue.bind(null,!1);return ne.isRequired=ue.bind(null,!0),ne}function h(Z){function Q(ae,ue,ne,ce,fe,ye){var ve=ae[ue],Ee=J(ve);if(Ee!==Z){var Ae=X(ve);return new f("Invalid "+ce+" `"+fe+"` of type "+("`"+Ae+"` supplied to `"+ne+"`, expected ")+("`"+Z+"`."),{expectedType:Z})}return null}return b(Q)}function S(){return b(l)}function E(Z){function Q(ae,ue,ne,ce,fe){if(typeof Z!="function")return new f("Property `"+fe+"` of component `"+ne+"` has invalid PropType notation inside arrayOf.");var ye=ae[ue];if(!Array.isArray(ye)){var ve=J(ye);return new f("Invalid "+ce+" `"+fe+"` of type "+("`"+ve+"` supplied to `"+ne+"`, expected an array."))}for(var Ee=0;Ee<ye.length;Ee++){var Ae=Z(ye,Ee,ne,ce,fe+"["+Ee+"]",r);if(Ae instanceof Error)return Ae}return null}return b(Q)}function R(){function Z(Q,ae,ue,ne,ce){var fe=Q[ae];if(!c(fe)){var ye=J(fe);return new f("Invalid "+ne+" `"+ce+"` of type "+("`"+ye+"` supplied to `"+ue+"`, expected a single ReactElement."))}return null}return b(Z)}function O(){function Z(Q,ae,ue,ne,ce){var fe=Q[ae];if(!e.isValidElementType(fe)){var ye=J(fe);return new f("Invalid "+ne+" `"+ce+"` of type "+("`"+ye+"` supplied to `"+ue+"`, expected a single ReactElement type."))}return null}return b(Z)}function k(Z){function Q(ae,ue,ne,ce,fe){if(!(ae[ue]instanceof Z)){var ye=Z.name||p,ve=de(ae[ue]);return new f("Invalid "+ce+" `"+fe+"` of type "+("`"+ve+"` supplied to `"+ne+"`, expected ")+("instance of `"+ye+"`."))}return null}return b(Q)}function B(Z){if(!Array.isArray(Z))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),l;function Q(ae,ue,ne,ce,fe){for(var ye=ae[ue],ve=0;ve<Z.length;ve++)if(x(ye,Z[ve]))return null;var Ee=JSON.stringify(Z,function(qe,ie){var mt=X(ie);return mt==="symbol"?String(ie):ie});return new f("Invalid "+ce+" `"+fe+"` of value `"+String(ye)+"` "+("supplied to `"+ne+"`, expected one of "+Ee+"."))}return b(Q)}function M(Z){function Q(ae,ue,ne,ce,fe){if(typeof Z!="function")return new f("Property `"+fe+"` of component `"+ne+"` has invalid PropType notation inside objectOf.");var ye=ae[ue],ve=J(ye);if(ve!=="object")return new f("Invalid "+ce+" `"+fe+"` of type "+("`"+ve+"` supplied to `"+ne+"`, expected an object."));for(var Ee in ye)if(i(ye,Ee)){var Ae=Z(ye,Ee,ne,ce,fe+"."+Ee,r);if(Ae instanceof Error)return Ae}return null}return b(Q)}function F(Z){if(!Array.isArray(Z))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var Q=0;Q<Z.length;Q++){var ae=Z[Q];if(typeof ae!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+te(ae)+" at index "+Q+"."),l}function ue(ne,ce,fe,ye,ve){for(var Ee=[],Ae=0;Ae<Z.length;Ae++){var qe=Z[Ae],ie=qe(ne,ce,fe,ye,ve,r);if(ie==null)return null;ie.data&&i(ie.data,"expectedType")&&Ee.push(ie.data.expectedType)}var mt=Ee.length>0?", expected one of type ["+Ee.join(", ")+"]":"";return new f("Invalid "+ye+" `"+ve+"` supplied to "+("`"+fe+"`"+mt+"."))}return b(ue)}function G(){function Z(Q,ae,ue,ne,ce){return q(Q[ae])?null:new f("Invalid "+ne+" `"+ce+"` supplied to "+("`"+ue+"`, expected a ReactNode."))}return b(Z)}function N(Z,Q,ae,ue,ne){return new f((Z||"React class")+": "+Q+" type `"+ae+"."+ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ne+"`.")}function L(Z){function Q(ae,ue,ne,ce,fe){var ye=ae[ue],ve=J(ye);if(ve!=="object")return new f("Invalid "+ce+" `"+fe+"` of type `"+ve+"` "+("supplied to `"+ne+"`, expected `object`."));for(var Ee in Z){var Ae=Z[Ee];if(typeof Ae!="function")return N(ne,ce,fe,Ee,X(Ae));var qe=Ae(ye,Ee,ne,ce,fe+"."+Ee,r);if(qe)return qe}return null}return b(Q)}function U(Z){function Q(ae,ue,ne,ce,fe){var ye=ae[ue],ve=J(ye);if(ve!=="object")return new f("Invalid "+ce+" `"+fe+"` of type `"+ve+"` "+("supplied to `"+ne+"`, expected `object`."));var Ee=t({},ae[ue],Z);for(var Ae in Ee){var qe=Z[Ae];if(i(Z,Ae)&&typeof qe!="function")return N(ne,ce,fe,Ae,X(qe));if(!qe)return new f("Invalid "+ce+" `"+fe+"` key `"+Ae+"` supplied to `"+ne+"`.\nBad object: "+JSON.stringify(ae[ue],null," ")+`
|
|
81
|
+
Valid keys: `+JSON.stringify(Object.keys(Z),null," "));var ie=qe(ye,Ae,ne,ce,fe+"."+Ae,r);if(ie)return ie}return null}return b(Q)}function q(Z){switch(typeof Z){case"number":case"string":case"undefined":return!0;case"boolean":return!Z;case"object":if(Array.isArray(Z))return Z.every(q);if(Z===null||c(Z))return!0;var Q=g(Z);if(Q){var ae=Q.call(Z),ue;if(Q!==Z.entries){for(;!(ue=ae.next()).done;)if(!q(ue.value))return!1}else for(;!(ue=ae.next()).done;){var ne=ue.value;if(ne&&!q(ne[1]))return!1}}else return!1;return!0;default:return!1}}function C(Z,Q){return Z==="symbol"?!0:Q?Q["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Q instanceof Symbol:!1}function J(Z){var Q=typeof Z;return Array.isArray(Z)?"array":Z instanceof RegExp?"object":C(Q,Z)?"symbol":Q}function X(Z){if(typeof Z>"u"||Z===null)return""+Z;var Q=J(Z);if(Q==="object"){if(Z instanceof Date)return"date";if(Z instanceof RegExp)return"regexp"}return Q}function te(Z){var Q=X(Z);switch(Q){case"array":case"object":return"an "+Q;case"boolean":case"date":case"regexp":return"a "+Q;default:return Q}}function de(Z){return!Z.constructor||!Z.constructor.name?p:Z.constructor.name}return w.checkPropTypes=a,w.resetWarningCache=a.resetWarningCache,w.PropTypes=w,w},zl}var Wl,Fg;function NP(){if(Fg)return Wl;Fg=1;var e=Kc();function t(){}function r(){}return r.resetWarningCache=t,Wl=function(){function i(l,c,d,m,v,g){if(g!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}i.isRequired=i;function a(){return i}var s={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:a,element:i,elementType:i,instanceOf:a,node:i,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return s.PropTypes=s,s},Wl}var Dg;function jP(){if(Dg)return Va.exports;if(Dg=1,process.env.NODE_ENV!=="production"){var e=Um(),t=!0;Va.exports=DP()(e.isElement,t)}else Va.exports=NP()();return Va.exports}var Ng;function zP(){return Ng||(Ng=1,(function(e){(function(t,r){r(e,W,jP())})(Ka,function(t,r,i){Object.defineProperty(t,"__esModule",{value:!0}),t.setHasSupportToCaptureOption=x;var a=l(r),s=l(i);function l(S){return S&&S.__esModule?S:{default:S}}var c=Object.assign||function(S){for(var E=1;E<arguments.length;E++){var R=arguments[E];for(var O in R)Object.prototype.hasOwnProperty.call(R,O)&&(S[O]=R[O])}return S};function d(S,E){var R={};for(var O in S)E.indexOf(O)>=0||Object.prototype.hasOwnProperty.call(S,O)&&(R[O]=S[O]);return R}function m(S,E){if(!(S instanceof E))throw new TypeError("Cannot call a class as a function")}var v=(function(){function S(E,R){for(var O=0;O<R.length;O++){var k=R[O];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(E,k.key,k)}}return function(E,R,O){return R&&S(E.prototype,R),O&&S(E,O),E}})();function g(S,E){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:S}function p(S,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);S.prototype=Object.create(E&&E.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(S,E):S.__proto__=E)}var w=!1;function x(S){w=S}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){x(!0)}}))}catch{}function f(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return w?S:S.capture}function b(S){if("touches"in S){var E=S.touches[0],R=E.pageX,O=E.pageY;return{x:R,y:O}}var k=S.screenX,B=S.screenY;return{x:k,y:B}}var h=(function(S){p(E,S);function E(){var R;m(this,E);for(var O=arguments.length,k=Array(O),B=0;B<O;B++)k[B]=arguments[B];var M=g(this,(R=E.__proto__||Object.getPrototypeOf(E)).call.apply(R,[this].concat(k)));return M._handleSwipeStart=M._handleSwipeStart.bind(M),M._handleSwipeMove=M._handleSwipeMove.bind(M),M._handleSwipeEnd=M._handleSwipeEnd.bind(M),M._onMouseDown=M._onMouseDown.bind(M),M._onMouseMove=M._onMouseMove.bind(M),M._onMouseUp=M._onMouseUp.bind(M),M._setSwiperRef=M._setSwiperRef.bind(M),M}return v(E,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,f({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,f({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(O){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(O))}},{key:"_onMouseMove",value:function(O){this.mouseDown&&this._handleSwipeMove(O)}},{key:"_onMouseUp",value:function(O){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(O)}},{key:"_handleSwipeStart",value:function(O){var k=b(O),B=k.x,M=k.y;this.moveStart={x:B,y:M},this.props.onSwipeStart(O)}},{key:"_handleSwipeMove",value:function(O){if(this.moveStart){var k=b(O),B=k.x,M=k.y,F=B-this.moveStart.x,G=M-this.moveStart.y;this.moving=!0;var N=this.props.onSwipeMove({x:F,y:G},O);N&&O.cancelable&&O.preventDefault(),this.movePosition={deltaX:F,deltaY:G}}}},{key:"_handleSwipeEnd",value:function(O){this.props.onSwipeEnd(O);var k=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-k?this.props.onSwipeLeft(1,O):this.movePosition.deltaX>k&&this.props.onSwipeRight(1,O),this.movePosition.deltaY<-k?this.props.onSwipeUp(1,O):this.movePosition.deltaY>k&&this.props.onSwipeDown(1,O)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(O){this.swiper=O,this.props.innerRef(O)}},{key:"render",value:function(){var O=this.props;O.tagName;var k=O.className,B=O.style,M=O.children;O.allowMouseEvents,O.onSwipeUp,O.onSwipeDown,O.onSwipeLeft,O.onSwipeRight,O.onSwipeStart,O.onSwipeMove,O.onSwipeEnd,O.innerRef,O.tolerance;var F=d(O,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return a.default.createElement(this.props.tagName,c({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:k,style:B},F),M)}}]),E})(r.Component);h.displayName="ReactSwipe",h.propTypes={tagName:s.default.string,className:s.default.string,style:s.default.object,children:s.default.node,allowMouseEvents:s.default.bool,onSwipeUp:s.default.func,onSwipeDown:s.default.func,onSwipeLeft:s.default.func,onSwipeRight:s.default.func,onSwipeStart:s.default.func,onSwipeMove:s.default.func,onSwipeEnd:s.default.func,innerRef:s.default.func,tolerance:s.default.number.isRequired},h.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},t.default=h})})(Ka)),Ka}var jg;function qm(){return jg||(jg=1,(function(e){(function(t,r){r(e,zP())})(Ga,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})})(Ga)),Ga}var no={},zg;function Zm(){if(zg)return no;zg=1,Object.defineProperty(no,"__esModule",{value:!0}),no.default=void 0;var e=t(tm());function t(a){return a&&a.__esModule?a:{default:a}}function r(a,s,l){return s in a?Object.defineProperty(a,s,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[s]=l,a}var i={ROOT:function(s){return(0,e.default)(r({"carousel-root":!0},s||"",!!s))},CAROUSEL:function(s){return(0,e.default)({carousel:!0,"carousel-slider":s})},WRAPPER:function(s,l){return(0,e.default)({"thumbs-wrapper":!s,"slider-wrapper":s,"axis-horizontal":l==="horizontal","axis-vertical":l!=="horizontal"})},SLIDER:function(s,l){return(0,e.default)({thumbs:!s,slider:s,animated:!l})},ITEM:function(s,l,c){return(0,e.default)({thumb:!s,slide:s,selected:l,previous:c})},ARROW_PREV:function(s){return(0,e.default)({"control-arrow control-prev":!0,"control-disabled":s})},ARROW_NEXT:function(s){return(0,e.default)({"control-arrow control-next":!0,"control-disabled":s})},DOT:function(s){return(0,e.default)({dot:!0,selected:s})}};return no.default=i,no}var io={},oo={},Wg;function WP(){if(Wg)return oo;Wg=1,Object.defineProperty(oo,"__esModule",{value:!0}),oo.outerWidth=void 0;var e=function(r){var i=r.offsetWidth,a=getComputedStyle(r);return i+=parseInt(a.marginLeft)+parseInt(a.marginRight),i};return oo.outerWidth=e,oo}var ao={},Bg;function Vc(){if(Bg)return ao;Bg=1,Object.defineProperty(ao,"__esModule",{value:!0}),ao.default=void 0;var e=function(r,i,a){var s=r===0?r:r+i,l=a==="horizontal"?[s,0,0]:[0,s,0],c="translate3d",d="("+l.join(",")+")";return c+d};return ao.default=e,ao}var so={},Ug;function Gm(){if(Ug)return so;Ug=1,Object.defineProperty(so,"__esModule",{value:!0}),so.default=void 0;var e=function(){return window};return so.default=e,so}var Hg;function Km(){if(Hg)return io;Hg=1,Object.defineProperty(io,"__esModule",{value:!0}),io.default=void 0;var e=d(W),t=l(Zm()),r=WP(),i=l(Vc()),a=l(qm()),s=l(Gm());function l(M){return M&&M.__esModule?M:{default:M}}function c(){if(typeof WeakMap!="function")return null;var M=new WeakMap;return c=function(){return M},M}function d(M){if(M&&M.__esModule)return M;if(M===null||m(M)!=="object"&&typeof M!="function")return{default:M};var F=c();if(F&&F.has(M))return F.get(M);var G={},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var L in M)if(Object.prototype.hasOwnProperty.call(M,L)){var U=N?Object.getOwnPropertyDescriptor(M,L):null;U&&(U.get||U.set)?Object.defineProperty(G,L,U):G[L]=M[L]}return G.default=M,F&&F.set(M,G),G}function m(M){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m=function(G){return typeof G}:m=function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},m(M)}function v(){return v=Object.assign||function(M){for(var F=1;F<arguments.length;F++){var G=arguments[F];for(var N in G)Object.prototype.hasOwnProperty.call(G,N)&&(M[N]=G[N])}return M},v.apply(this,arguments)}function g(M,F){if(!(M instanceof F))throw new TypeError("Cannot call a class as a function")}function p(M,F){for(var G=0;G<F.length;G++){var N=F[G];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(M,N.key,N)}}function w(M,F,G){return F&&p(M.prototype,F),M}function x(M,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(F&&F.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),F&&f(M,F)}function f(M,F){return f=Object.setPrototypeOf||function(N,L){return N.__proto__=L,N},f(M,F)}function b(M){var F=E();return function(){var N=R(M),L;if(F){var U=R(this).constructor;L=Reflect.construct(N,arguments,U)}else L=N.apply(this,arguments);return h(this,L)}}function h(M,F){return F&&(m(F)==="object"||typeof F=="function")?F:S(M)}function S(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function E(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function R(M){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(G){return G.__proto__||Object.getPrototypeOf(G)},R(M)}function O(M,F,G){return F in M?Object.defineProperty(M,F,{value:G,enumerable:!0,configurable:!0,writable:!0}):M[F]=G,M}var k=function(F){return F.hasOwnProperty("key")},B=(function(M){x(G,M);var F=b(G);function G(N){var L;return g(this,G),L=F.call(this,N),O(S(L),"itemsWrapperRef",void 0),O(S(L),"itemsListRef",void 0),O(S(L),"thumbsRef",void 0),O(S(L),"setItemsWrapperRef",function(U){L.itemsWrapperRef=U}),O(S(L),"setItemsListRef",function(U){L.itemsListRef=U}),O(S(L),"setThumbsRef",function(U,q){L.thumbsRef||(L.thumbsRef=[]),L.thumbsRef[q]=U}),O(S(L),"updateSizes",function(){if(!(!L.props.children||!L.itemsWrapperRef||!L.thumbsRef)){var U=e.Children.count(L.props.children),q=L.itemsWrapperRef.clientWidth,C=L.props.thumbWidth?L.props.thumbWidth:(0,r.outerWidth)(L.thumbsRef[0]),J=Math.floor(q/C),X=J<U,te=X?U-J:0;L.setState(function(de,Z){return{itemSize:C,visibleItems:J,firstItem:X?L.getFirstItem(Z.selectedItem):0,lastPosition:te,showArrows:X}})}}),O(S(L),"handleClickItem",function(U,q,C){if(!k(C)||C.key==="Enter"){var J=L.props.onSelectItem;typeof J=="function"&&J(U,q)}}),O(S(L),"onSwipeStart",function(){L.setState({swiping:!0})}),O(S(L),"onSwipeEnd",function(){L.setState({swiping:!1})}),O(S(L),"onSwipeMove",function(U){var q=U.x;if(!L.state.itemSize||!L.itemsWrapperRef||!L.state.visibleItems)return!1;var C=0,J=e.Children.count(L.props.children),X=-(L.state.firstItem*100)/L.state.visibleItems,te=Math.max(J-L.state.visibleItems,0),de=-te*100/L.state.visibleItems;X===C&&q>0&&(q=0),X===de&&q<0&&(q=0);var Z=L.itemsWrapperRef.clientWidth,Q=X+100/(Z/q);return L.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(ae){L.itemsListRef.style[ae]=(0,i.default)(Q,"%",L.props.axis)}),!0}),O(S(L),"slideRight",function(U){L.moveTo(L.state.firstItem-(typeof U=="number"?U:1))}),O(S(L),"slideLeft",function(U){L.moveTo(L.state.firstItem+(typeof U=="number"?U:1))}),O(S(L),"moveTo",function(U){U=U<0?0:U,U=U>=L.state.lastPosition?L.state.lastPosition:U,L.setState({firstItem:U})}),L.state={selectedItem:N.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},L}return w(G,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(L){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==L.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,s.default)().addEventListener("resize",this.updateSizes),(0,s.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,s.default)().removeEventListener("resize",this.updateSizes),(0,s.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(L){var U=L;return L>=this.state.lastPosition&&(U=this.state.lastPosition),L<this.state.firstItem+this.state.visibleItems&&(U=this.state.firstItem),L<this.state.firstItem&&(U=L),U}},{key:"renderItems",value:function(){var L=this;return this.props.children.map(function(U,q){var C=t.default.ITEM(!1,q===L.state.selectedItem),J={key:q,ref:function(te){return L.setThumbsRef(te,q)},className:C,onClick:L.handleClickItem.bind(L,q,L.props.children[q]),onKeyDown:L.handleClickItem.bind(L,q,L.props.children[q]),"aria-label":"".concat(L.props.labels.item," ").concat(q+1),style:{width:L.props.thumbWidth}};return e.default.createElement("li",v({},J,{role:"button",tabIndex:0}),U)})}},{key:"render",value:function(){var L=this;if(!this.props.children)return null;var U=e.Children.count(this.props.children)>1,q=this.state.showArrows&&this.state.firstItem>0,C=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,J={},X=-this.state.firstItem*(this.state.itemSize||0),te=(0,i.default)(X,"px",this.props.axis),de=this.props.transitionTime+"ms";return J={WebkitTransform:te,MozTransform:te,MsTransform:te,OTransform:te,transform:te,msTransform:te,WebkitTransitionDuration:de,MozTransitionDuration:de,MsTransitionDuration:de,OTransitionDuration:de,transitionDuration:de,msTransitionDuration:de},e.default.createElement("div",{className:t.default.CAROUSEL(!1)},e.default.createElement("div",{className:t.default.WRAPPER(!1),ref:this.setItemsWrapperRef},e.default.createElement("button",{type:"button",className:t.default.ARROW_PREV(!q),onClick:function(){return L.slideRight()},"aria-label":this.props.labels.leftArrow}),U?e.default.createElement(a.default,{tagName:"ul",className:t.default.SLIDER(!1,this.state.swiping),onSwipeLeft:this.slideLeft,onSwipeRight:this.slideRight,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:J,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):e.default.createElement("ul",{className:t.default.SLIDER(!1,this.state.swiping),ref:function(Q){return L.setItemsListRef(Q)},style:J},this.renderItems()),e.default.createElement("button",{type:"button",className:t.default.ARROW_NEXT(!C),onClick:function(){return L.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),G})(e.Component);return io.default=B,O(B,"displayName","Thumbs"),O(B,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350}),io}var uo={},qg;function BP(){if(qg)return uo;qg=1,Object.defineProperty(uo,"__esModule",{value:!0}),uo.default=void 0;var e=function(){return document};return uo.default=e,uo}var Bt={},Zg;function Vm(){if(Zg)return Bt;Zg=1,Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.setPosition=Bt.getPosition=Bt.isKeyboardEvent=Bt.defaultStatusFormatter=Bt.noop=void 0;var e=W,t=r(Vc());function r(d){return d&&d.__esModule?d:{default:d}}var i=function(){};Bt.noop=i;var a=function(m,v){return"".concat(m," of ").concat(v)};Bt.defaultStatusFormatter=a;var s=function(m){return m?m.hasOwnProperty("key"):!1};Bt.isKeyboardEvent=s;var l=function(m,v){if(v.infiniteLoop&&++m,m===0)return 0;var g=e.Children.count(v.children);if(v.centerMode&&v.axis==="horizontal"){var p=-m*v.centerSlidePercentage,w=g-1;return m&&(m!==w||v.infiniteLoop)?p+=(100-v.centerSlidePercentage)/2:m===w&&(p+=100-v.centerSlidePercentage),p}return-m*100};Bt.getPosition=l;var c=function(m,v){var g={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(p){g[p]=(0,t.default)(m,"%",v)}),g};return Bt.setPosition=c,Bt}var fr={},Gg;function UP(){if(Gg)return fr;Gg=1,Object.defineProperty(fr,"__esModule",{value:!0}),fr.fadeAnimationHandler=fr.slideStopSwipingHandler=fr.slideSwipeAnimationHandler=fr.slideAnimationHandler=void 0;var e=W,t=i(Vc()),r=Vm();function i(g){return g&&g.__esModule?g:{default:g}}function a(g,p){var w=Object.keys(g);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(g);p&&(x=x.filter(function(f){return Object.getOwnPropertyDescriptor(g,f).enumerable})),w.push.apply(w,x)}return w}function s(g){for(var p=1;p<arguments.length;p++){var w=arguments[p]!=null?arguments[p]:{};p%2?a(Object(w),!0).forEach(function(x){l(g,x,w[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(w)):a(Object(w)).forEach(function(x){Object.defineProperty(g,x,Object.getOwnPropertyDescriptor(w,x))})}return g}function l(g,p,w){return p in g?Object.defineProperty(g,p,{value:w,enumerable:!0,configurable:!0,writable:!0}):g[p]=w,g}var c=function(p,w){var x={},f=w.selectedItem,b=f,h=e.Children.count(p.children)-1,S=p.infiniteLoop&&(f<0||f>h);if(S)return b<0?p.centerMode&&p.centerSlidePercentage&&p.axis==="horizontal"?x.itemListStyle=(0,r.setPosition)(-(h+2)*p.centerSlidePercentage-(100-p.centerSlidePercentage)/2,p.axis):x.itemListStyle=(0,r.setPosition)(-(h+2)*100,p.axis):b>h&&(x.itemListStyle=(0,r.setPosition)(0,p.axis)),x;var E=(0,r.getPosition)(f,p),R=(0,t.default)(E,"%",p.axis),O=p.transitionTime+"ms";return x.itemListStyle={WebkitTransform:R,msTransform:R,OTransform:R,transform:R},w.swiping||(x.itemListStyle=s(s({},x.itemListStyle),{},{WebkitTransitionDuration:O,MozTransitionDuration:O,OTransitionDuration:O,transitionDuration:O,msTransitionDuration:O})),x};fr.slideAnimationHandler=c;var d=function(p,w,x,f){var b={},h=w.axis==="horizontal",S=e.Children.count(w.children),E=0,R=(0,r.getPosition)(x.selectedItem,w),O=w.infiniteLoop?(0,r.getPosition)(S-1,w)-100:(0,r.getPosition)(S-1,w),k=h?p.x:p.y,B=k;R===E&&k>0&&(B=0),R===O&&k<0&&(B=0);var M=R+100/(x.itemSize/B),F=Math.abs(k)>w.swipeScrollTolerance;return w.infiniteLoop&&F&&(x.selectedItem===0&&M>-100?M-=S*100:x.selectedItem===S-1&&M<-S*100&&(M+=S*100)),(!w.preventMovementUntilSwipeScrollTolerance||F||x.swipeMovementStarted)&&(x.swipeMovementStarted||f({swipeMovementStarted:!0}),b.itemListStyle=(0,r.setPosition)(M,w.axis)),F&&!x.cancelClick&&f({cancelClick:!0}),b};fr.slideSwipeAnimationHandler=d;var m=function(p,w){var x=(0,r.getPosition)(w.selectedItem,p),f=(0,r.setPosition)(x,p.axis);return{itemListStyle:f}};fr.slideStopSwipingHandler=m;var v=function(p,w){var x=p.transitionTime+"ms",f="ease-in-out",b={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:f,msTransitionTimingFunction:f,MozTransitionTimingFunction:f,WebkitTransitionTimingFunction:f,OTransitionTimingFunction:f};return w.swiping||(b=s(s({},b),{},{WebkitTransitionDuration:x,MozTransitionDuration:x,OTransitionDuration:x,transitionDuration:x,msTransitionDuration:x})),{slideStyle:b,selectedStyle:s(s({},b),{},{opacity:1,position:"relative"}),prevStyle:s({},b)}};return fr.fadeAnimationHandler=v,fr}var Kg;function HP(){if(Kg)return ro;Kg=1,Object.defineProperty(ro,"__esModule",{value:!0}),ro.default=void 0;var e=v(W),t=d(qm()),r=d(Zm()),i=d(Km()),a=d(BP()),s=d(Gm()),l=Vm(),c=UP();function d(N){return N&&N.__esModule?N:{default:N}}function m(){if(typeof WeakMap!="function")return null;var N=new WeakMap;return m=function(){return N},N}function v(N){if(N&&N.__esModule)return N;if(N===null||g(N)!=="object"&&typeof N!="function")return{default:N};var L=m();if(L&&L.has(N))return L.get(N);var U={},q=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in N)if(Object.prototype.hasOwnProperty.call(N,C)){var J=q?Object.getOwnPropertyDescriptor(N,C):null;J&&(J.get||J.set)?Object.defineProperty(U,C,J):U[C]=N[C]}return U.default=N,L&&L.set(N,U),U}function g(N){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?g=function(U){return typeof U}:g=function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},g(N)}function p(){return p=Object.assign||function(N){for(var L=1;L<arguments.length;L++){var U=arguments[L];for(var q in U)Object.prototype.hasOwnProperty.call(U,q)&&(N[q]=U[q])}return N},p.apply(this,arguments)}function w(N,L){var U=Object.keys(N);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(N);L&&(q=q.filter(function(C){return Object.getOwnPropertyDescriptor(N,C).enumerable})),U.push.apply(U,q)}return U}function x(N){for(var L=1;L<arguments.length;L++){var U=arguments[L]!=null?arguments[L]:{};L%2?w(Object(U),!0).forEach(function(q){F(N,q,U[q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(U)):w(Object(U)).forEach(function(q){Object.defineProperty(N,q,Object.getOwnPropertyDescriptor(U,q))})}return N}function f(N,L){if(!(N instanceof L))throw new TypeError("Cannot call a class as a function")}function b(N,L){for(var U=0;U<L.length;U++){var q=L[U];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(N,q.key,q)}}function h(N,L,U){return L&&b(N.prototype,L),N}function S(N,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(L&&L.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),L&&E(N,L)}function E(N,L){return E=Object.setPrototypeOf||function(q,C){return q.__proto__=C,q},E(N,L)}function R(N){var L=B();return function(){var q=M(N),C;if(L){var J=M(this).constructor;C=Reflect.construct(q,arguments,J)}else C=q.apply(this,arguments);return O(this,C)}}function O(N,L){return L&&(g(L)==="object"||typeof L=="function")?L:k(N)}function k(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function B(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function M(N){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(U){return U.__proto__||Object.getPrototypeOf(U)},M(N)}function F(N,L,U){return L in N?Object.defineProperty(N,L,{value:U,enumerable:!0,configurable:!0,writable:!0}):N[L]=U,N}var G=(function(N){S(U,N);var L=R(U);function U(q){var C;f(this,U),C=L.call(this,q),F(k(C),"thumbsRef",void 0),F(k(C),"carouselWrapperRef",void 0),F(k(C),"listRef",void 0),F(k(C),"itemsRef",void 0),F(k(C),"timer",void 0),F(k(C),"animationHandler",void 0),F(k(C),"setThumbsRef",function(X){C.thumbsRef=X}),F(k(C),"setCarouselWrapperRef",function(X){C.carouselWrapperRef=X}),F(k(C),"setListRef",function(X){C.listRef=X}),F(k(C),"setItemsRef",function(X,te){C.itemsRef||(C.itemsRef=[]),C.itemsRef[te]=X}),F(k(C),"autoPlay",function(){e.Children.count(C.props.children)<=1||(C.clearAutoPlay(),C.props.autoPlay&&(C.timer=setTimeout(function(){C.increment()},C.props.interval)))}),F(k(C),"clearAutoPlay",function(){C.timer&&clearTimeout(C.timer)}),F(k(C),"resetAutoPlay",function(){C.clearAutoPlay(),C.autoPlay()}),F(k(C),"stopOnHover",function(){C.setState({isMouseEntered:!0},C.clearAutoPlay)}),F(k(C),"startOnLeave",function(){C.setState({isMouseEntered:!1},C.autoPlay)}),F(k(C),"isFocusWithinTheCarousel",function(){return C.carouselWrapperRef?!!((0,a.default)().activeElement===C.carouselWrapperRef||C.carouselWrapperRef.contains((0,a.default)().activeElement)):!1}),F(k(C),"navigateWithKeyboard",function(X){if(C.isFocusWithinTheCarousel()){var te=C.props.axis,de=te==="horizontal",Z={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},Q=de?Z.ArrowRight:Z.ArrowDown,ae=de?Z.ArrowLeft:Z.ArrowUp;Q===X.keyCode?C.increment():ae===X.keyCode&&C.decrement()}}),F(k(C),"updateSizes",function(){if(!(!C.state.initialized||!C.itemsRef||C.itemsRef.length===0)){var X=C.props.axis==="horizontal",te=C.itemsRef[0];if(te){var de=X?te.clientWidth:te.clientHeight;C.setState({itemSize:de}),C.thumbsRef&&C.thumbsRef.updateSizes()}}}),F(k(C),"setMountState",function(){C.setState({hasMount:!0}),C.updateSizes()}),F(k(C),"handleClickItem",function(X,te){if(e.Children.count(C.props.children)!==0){if(C.state.cancelClick){C.setState({cancelClick:!1});return}C.props.onClickItem(X,te),X!==C.state.selectedItem&&C.setState({selectedItem:X})}}),F(k(C),"handleOnChange",function(X,te){e.Children.count(C.props.children)<=1||C.props.onChange(X,te)}),F(k(C),"handleClickThumb",function(X,te){C.props.onClickThumb(X,te),C.moveTo(X)}),F(k(C),"onSwipeStart",function(X){C.setState({swiping:!0}),C.props.onSwipeStart(X)}),F(k(C),"onSwipeEnd",function(X){C.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),C.props.onSwipeEnd(X),C.clearAutoPlay(),C.state.autoPlay&&C.autoPlay()}),F(k(C),"onSwipeMove",function(X,te){C.props.onSwipeMove(te);var de=C.props.swipeAnimationHandler(X,C.props,C.state,C.setState.bind(k(C)));return C.setState(x({},de)),!!Object.keys(de).length}),F(k(C),"decrement",function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;C.moveTo(C.state.selectedItem-(typeof X=="number"?X:1))}),F(k(C),"increment",function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;C.moveTo(C.state.selectedItem+(typeof X=="number"?X:1))}),F(k(C),"moveTo",function(X){if(typeof X=="number"){var te=e.Children.count(C.props.children)-1;X<0&&(X=C.props.infiniteLoop?te:0),X>te&&(X=C.props.infiniteLoop?0:te),C.selectItem({selectedItem:X}),C.state.autoPlay&&C.state.isMouseEntered===!1&&C.resetAutoPlay()}}),F(k(C),"onClickNext",function(){C.increment(1)}),F(k(C),"onClickPrev",function(){C.decrement(1)}),F(k(C),"onSwipeForward",function(){C.increment(1),C.props.emulateTouch&&C.setState({cancelClick:!0})}),F(k(C),"onSwipeBackwards",function(){C.decrement(1),C.props.emulateTouch&&C.setState({cancelClick:!0})}),F(k(C),"changeItem",function(X){return function(te){(!(0,l.isKeyboardEvent)(te)||te.key==="Enter")&&C.moveTo(X)}}),F(k(C),"selectItem",function(X){C.setState(x({previousItem:C.state.selectedItem},X),function(){C.setState(C.animationHandler(C.props,C.state))}),C.handleOnChange(X.selectedItem,e.Children.toArray(C.props.children)[X.selectedItem])}),F(k(C),"getInitialImage",function(){var X=C.props.selectedItem,te=C.itemsRef&&C.itemsRef[X],de=te&&te.getElementsByTagName("img")||[];return de[0]}),F(k(C),"getVariableItemHeight",function(X){var te=C.itemsRef&&C.itemsRef[X];if(C.state.hasMount&&te&&te.children.length){var de=te.children[0].getElementsByTagName("img")||[];if(de.length>0){var Z=de[0];if(!Z.complete){var Q=function ne(){C.forceUpdate(),Z.removeEventListener("load",ne)};Z.addEventListener("load",Q)}}var ae=de[0]||te.children[0],ue=ae.clientHeight;return ue>0?ue:null}return null});var J={initialized:!1,previousItem:q.selectedItem,selectedItem:q.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:q.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return C.animationHandler=typeof q.animationHandler=="function"&&q.animationHandler||q.animationHandler==="fade"&&c.fadeAnimationHandler||c.slideAnimationHandler,C.state=x(x({},J),C.animationHandler(q,J)),C}return h(U,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(C,J){!C.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!C.autoFocus&&this.props.autoFocus&&this.forceFocus(),J.swiping&&!this.state.swiping&&this.setState(x({},this.props.stopSwipingHandler(this.props,this.state))),(C.selectedItem!==this.props.selectedItem||C.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),C.autoPlay!==this.props.autoPlay&&(this.props.autoPlay?this.setupAutoPlay():this.destroyAutoPlay(),this.setState({autoPlay:this.props.autoPlay}))}},{key:"componentWillUnmount",value:function(){this.destroyCarousel()}},{key:"setupCarousel",value:function(){var C=this;this.bindEvents(),this.state.autoPlay&&e.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},function(){var J=C.getInitialImage();J&&!J.complete?J.addEventListener("load",C.setMountState):C.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var C=this.carouselWrapperRef;this.props.stopOnHover&&C&&(C.addEventListener("mouseenter",this.stopOnHover),C.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var C=this.carouselWrapperRef;this.props.stopOnHover&&C&&(C.removeEventListener("mouseenter",this.stopOnHover),C.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,s.default)().addEventListener("resize",this.updateSizes),(0,s.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,a.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,s.default)().removeEventListener("resize",this.updateSizes),(0,s.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var C=this.getInitialImage();C&&C.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,a.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var C;(C=this.carouselWrapperRef)===null||C===void 0||C.focus()}},{key:"renderItems",value:function(C){var J=this;return this.props.children?e.Children.map(this.props.children,function(X,te){var de=te===J.state.selectedItem,Z=te===J.state.previousItem,Q=de&&J.state.selectedStyle||Z&&J.state.prevStyle||J.state.slideStyle||{};J.props.centerMode&&J.props.axis==="horizontal"&&(Q=x(x({},Q),{},{minWidth:J.props.centerSlidePercentage+"%"})),J.state.swiping&&J.state.swipeMovementStarted&&(Q=x(x({},Q),{},{pointerEvents:"none"}));var ae={ref:function(ne){return J.setItemsRef(ne,te)},key:"itemKey"+te+(C?"clone":""),className:r.default.ITEM(!0,te===J.state.selectedItem,te===J.state.previousItem),onClick:J.handleClickItem.bind(J,te,X),style:Q};return e.default.createElement("li",ae,J.props.renderItem(X,{isSelected:te===J.state.selectedItem,isPrevious:te===J.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var C=this,J=this.props,X=J.showIndicators,te=J.labels,de=J.renderIndicator,Z=J.children;return X?e.default.createElement("ul",{className:"control-dots"},e.Children.map(Z,function(Q,ae){return de&&de(C.changeItem(ae),ae===C.state.selectedItem,ae,te.item)})):null}},{key:"renderStatus",value:function(){return this.props.showStatus?e.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,e.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return!this.props.showThumbs||!this.props.children||e.Children.count(this.props.children)===0?null:e.default.createElement(i.default,{ref:this.setThumbsRef,onSelectItem:this.handleClickThumb,selectedItem:this.state.selectedItem,transitionTime:this.props.transitionTime,thumbWidth:this.props.thumbWidth,labels:this.props.labels,emulateTouch:this.props.emulateTouch},this.props.renderThumbs(this.props.children))}},{key:"render",value:function(){var C=this;if(!this.props.children||e.Children.count(this.props.children)===0)return null;var J=this.props.swipeable&&e.Children.count(this.props.children)>1,X=this.props.axis==="horizontal",te=this.props.showArrows&&e.Children.count(this.props.children)>1,de=te&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,Z=te&&(this.state.selectedItem<e.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,Q=this.renderItems(!0),ae=Q.shift(),ue=Q.pop(),ne={className:r.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},ce={};if(X){if(ne.onSwipeLeft=this.onSwipeForward,ne.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var fe=this.getVariableItemHeight(this.state.selectedItem);ce.height=fe||"auto"}}else ne.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,ne.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,ne.style=x(x({},ne.style),{},{height:this.state.itemSize}),ce.height=this.state.itemSize;return e.default.createElement("div",{"aria-label":this.props.ariaLabel,className:r.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},e.default.createElement("div",{className:r.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,de,this.props.labels.leftArrow),e.default.createElement("div",{className:r.default.WRAPPER(!0,this.props.axis),style:ce},J?e.default.createElement(t.default,p({tagName:"ul",innerRef:this.setListRef},ne,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&ue,this.renderItems(),this.props.infiniteLoop&&ae):e.default.createElement("ul",{className:r.default.SLIDER(!0,this.state.swiping),ref:function(ve){return C.setListRef(ve)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&ue,this.renderItems(),this.props.infiniteLoop&&ae)),this.props.renderArrowNext(this.onClickNext,Z,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),U})(e.default.Component);return ro.default=G,F(G,"displayName","Carousel"),F(G,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:l.noop,onClickThumb:l.noop,onChange:l.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(L,U,q){return e.default.createElement("button",{type:"button","aria-label":q,className:r.default.ARROW_PREV(!U),onClick:L})},renderArrowNext:function(L,U,q){return e.default.createElement("button",{type:"button","aria-label":q,className:r.default.ARROW_NEXT(!U),onClick:L})},renderIndicator:function(L,U,q,C){return e.default.createElement("li",{className:r.default.DOT(U),onClick:L,onKeyDown:L,value:q,key:q,role:"button",tabIndex:0,"aria-label":"".concat(C," ").concat(q+1)})},renderItem:function(L){return L},renderThumbs:function(L){var U=e.Children.map(L,function(q){var C=q;if(q.type!=="img"&&(C=e.Children.toArray(q.props.children).find(function(J){return J.type==="img"})),!!C)return C});return U.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"),[]):U},statusFormatter:l.defaultStatusFormatter,selectedItem:0,showArrows:!0,showIndicators:!0,showStatus:!0,showThumbs:!0,stopOnHover:!0,swipeScrollTolerance:5,swipeable:!0,transitionTime:350,verticalSwipe:"standard",width:"100%",animationHandler:"slide",swipeAnimationHandler:c.slideSwipeAnimationHandler,stopSwipingHandler:c.slideStopSwipingHandler}),ro}var Vg={},Xg;function qP(){return Xg||(Xg=1),Vg}var Yg;function ZP(){return Yg||(Yg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Carousel",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"CarouselProps",{enumerable:!0,get:function(){return r.CarouselProps}}),Object.defineProperty(e,"Thumbs",{enumerable:!0,get:function(){return i.default}});var t=a(HP()),r=qP(),i=a(Km());function a(s){return s&&s.__esModule?s:{default:s}}})(Ml)),Ml}var GP=ZP();const KP=({tip:e})=>j.jsx("div",{className:"h-full grid pb-8 px-8 place-content-center",children:Xm(e,!0)}),VP=({pages:e})=>j.jsx("div",{className:"min-h-[10rem] w-96",children:j.jsx(GP.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(t=>j.jsx(KP,{tip:t},t.key))})}),XP=({body:e,isInsideCarousel:t})=>j.jsx("article",{className:rt(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-grey-100 ",{"w-60":!t}]),children:j.jsx(gs,{children:e,options:{overrides:{a:{component:({children:r,...i})=>j.jsxs("a",{...i,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary-dark",children:[r,j.jsx(et.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),YP=({video:e,body:t,title:r,isInsideCarousel:i})=>j.jsxs("div",{className:rt([{"flex flex-row":!i,"flex max-h-[10rem] flex-col overflow-y-auto":i}]),children:[j.jsx("div",{className:rt([{"mr-1":!i,"mb-1":i}]),children:j.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})}),j.jsx("article",{className:rt(["prose prose-sm p-1 text-left text-xs text-grey-100",{"w-60 overflow-auto":!i,"-mt-6":i}]),children:j.jsx(gs,{children:t||"",options:{overrides:{a:{component:({children:a,...s})=>j.jsxs("a",{...s,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[a,j.jsx(et.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),Xm=(e,t)=>{switch(e.type){case cs.TEXT:return j.jsx(XP,{body:e.body,isInsideCarousel:t});case cs.VIDEO:return j.jsx(YP,{video:e.video,body:e.body,title:e.title,isInsideCarousel:t});case cs.CAROUSEL:return j.jsx(VP,{pages:e.pages})}},Ym=W.createContext(void 0);function Jg(e,t){const r=[];return e.forEach(i=>{i.key===t&&r.push(i)}),r}const JP=({children:e,enabled:t,baseUrl:r="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:i,show:a},s]=W.useState({tips:{},show:!0});W.useEffect(()=>{const c=new AbortController;try{fetch(`${r}/tips.json`,{signal:c.signal}).then(d=>d.json()).then(d=>{const m=d.reduce((v,g)=>Jg(d,g.key).length>1?{...v,[g.key]:{type:"carousel",pages:Jg(d,g.key)}}:{...v,[g.key]:g},{});s(v=>({...v,tips:m}))})}catch{}return()=>{c.abort()}},[]);const l=()=>{s(c=>({...c,show:!a}))};return j.jsx(Ym.Provider,{value:{tips:i,toggleTips:l,show:a,enabled:t},children:e})},Jm=e=>{const t=W.useContext(Ym);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}},QP=vs(kP)`
|
|
82
82
|
&[data-state='open'] > * {
|
|
83
83
|
display: block !important;
|
|
84
84
|
}
|
|
85
|
-
`,
|
|
85
|
+
`,Qm=({tipKey:e,side:t="right",alwaysOn:r,asButton:i=!1})=>{const{tip:a,enabled:s}=Jm(e),[l,c]=W.useState(!1),d=W.useRef(null);return W.useEffect(()=>{if(d.current){const m=new IntersectionObserver(v=>{v[0].isIntersecting||c(!1)});return m.observe(d.current),()=>{d.current&&m.unobserve(d.current)}}},[]),a&&s?j.jsxs(CP,{open:l,onOpenChange:c,children:[j.jsx(QP,{ref:d,className:rt("focus:outline-none",{"rounded p-1 text-gray-100 hover:bg-primary-hover":i}),onClick:m=>m.stopPropagation(),children:j.jsx("span",{className:rt("group-hover:block",{hidden:!r}),children:j.jsx(et.FdBulb,{className:"h-4 w-4 text-yellow-300"})})}),j.jsx($P,{side:t,sideOffset:5,onClick:m=>m.stopPropagation(),children:j.jsx("div",{className:"relative rounded border border-grey-50 bg-grey-900 p-2 text-xs text-white shadow-2xl",children:Xm(a)})})]}):null};var eC=Object.defineProperty,tC=(e,t,r)=>t in e?eC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Bl=(e,t,r)=>(tC(e,typeof t!="symbol"?t+"":t,r),r);let rC=class{constructor(){Bl(this,"current",this.detect()),Bl(this,"handoffState","pending"),Bl(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},gi=new rC,Cr=(e,t)=>{gi.isServer?W.useEffect(e,t):W.useLayoutEffect(e,t)};function vi(e){let t=W.useRef(e);return Cr(()=>{t.current=e},[e]),t}let St=function(e){let t=vi(e);return W.useCallback((...r)=>t.current(...r),[t])};function nC(e,t,r){let[i,a]=W.useState(r),s=e!==void 0,l=W.useRef(s),c=W.useRef(!1),d=W.useRef(!1);return s&&!l.current&&!c.current?(c.current=!0,l.current=s,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!s&&l.current&&!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,St(m=>(s||a(m),t==null?void 0:t(m)))]}function iC(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function zo(){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 iC(()=>{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=zo();return r(i),this.add(()=>i.dispose())},add(r){return e.push(r),()=>{let i=e.indexOf(r);if(i>=0)for(let a of e.splice(i,1))a()}},dispose(){for(let r of e.splice(0))r()}};return t}function Xc(){let[e]=W.useState(zo);return W.useEffect(()=>()=>e.dispose(),[e]),e}function oC(){let e=typeof document>"u";return"useSyncExternalStore"in $?(t=>t.useSyncExternalStore)($)(()=>()=>{},()=>!1,()=>!e):!1}function Yc(){let e=oC(),[t,r]=$.useState(gi.isHandoffComplete);return t&&gi.isHandoffComplete===!1&&r(!1),$.useEffect(()=>{t!==!0&&r(!0)},[t]),$.useEffect(()=>gi.handoff(),[]),e?!1:t}var Qg;let Jc=(Qg=W.useId)!=null?Qg:function(){let e=Yc(),[t,r]=W.useState(e?()=>gi.nextId():null);return Cr(()=>{t===null&&r(gi.nextId())},[t]),t!=null?""+t:void 0};function Ar(e,t,...r){if(e in t){let a=t[e];return typeof a=="function"?a(...r):a}let i=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(a=>`"${a}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,Ar),i}function ev(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 aC(e,t){let[r,i]=W.useState(()=>ev(e));return Cr(()=>{i(ev(e))},[e.type,e.as]),Cr(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&i("button")},[r,t]),r}let sC=Symbol();function Wo(...e){let t=W.useRef(e);W.useEffect(()=>{t.current=e},[e]);let r=St(i=>{for(let a of t.current)a!=null&&(typeof a=="function"?a(i):a.current=i)});return e.every(i=>i==null||(i==null?void 0:i[sC]))?void 0:r}function ys(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var ey=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(ey||{}),pn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(pn||{});function Zn({ourProps:e,theirProps:t,slot:r,defaultTag:i,features:a,visible:s=!0,name:l,mergeRefs:c}){c=c??uC;let d=ty(t,e);if(s)return Ya(d,r,i,l,c);let m=a??0;if(m&2){let{static:v=!1,...g}=d;if(v)return Ya(g,r,i,l,c)}if(m&1){let{unmount:v=!0,...g}=d;return Ar(v?0:1,{0(){return null},1(){return Ya({...g,hidden:!0,style:{display:"none"}},r,i,l,c)}})}return Ya(d,r,i,l,c)}function Ya(e,t={},r,i,a){let{as:s=r,children:l,refName:c="ref",...d}=Ul(e,["unmount","static"]),m=e.ref!==void 0?{[c]:e.ref}:{},v=typeof l=="function"?l(t):l;"className"in d&&d.className&&typeof d.className=="function"&&(d.className=d.className(t));let g={};if(t){let p=!1,w=[];for(let[x,f]of Object.entries(t))typeof f=="boolean"&&(p=!0),f===!0&&w.push(x);p&&(g["data-headlessui-state"]=w.join(" "))}if(s===W.Fragment&&Object.keys(gc(d)).length>0){if(!W.isValidElement(v)||Array.isArray(v)&&v.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(f=>` - ${f}`).join(`
|
|
86
86
|
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(f=>` - ${f}`).join(`
|
|
87
87
|
`)].join(`
|
|
88
|
-
`));let d=v.props,w=typeof(d==null?void 0:d.className)=="function"?(...f)=>na(d==null?void 0:d.className(...f),h.className):na(d==null?void 0:d.className,h.className),x=w?{className:w}:{};return W.cloneElement(v,Object.assign({},tm(v.props,Hl(El(h,["ref"]))),g,y,{ref:s(v.ref,y.ref)},x))}return W.createElement(a,Object.assign({},El(h,["ref"]),a!==W.Fragment&&y,a!==W.Fragment&&g),v)}function pP(...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 tm(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let o of e)for(let s in o)s.startsWith("on")&&typeof o[s]=="function"?(r[s]!=null||(r[s]=[]),r[s].push(o[s])):t[s]=o[s];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(o=>[o,void 0])));for(let o in r)Object.assign(t,{[o](s,...a){let l=r[o];for(let c of l){if((s instanceof Event||(s==null?void 0:s.nativeEvent)instanceof Event)&&s.defaultPrevented)return;c(s,...a)}}});return t}function jn(e){var t;return Object.assign(W.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Hl(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function El(e,t=[]){let r=Object.assign({},e);for(let o of t)o in r&&delete r[o];return r}let hP="div";var rm=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(rm||{});function gP(e,t){var r;let{features:o=1,...s}=e,a={ref:t,"aria-hidden":(o&2)===2?!0:(r=s["aria-hidden"])!=null?r: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 Nn({ourProps:a,theirProps:s,slot:{},defaultTag:hP,name:"Hidden"})}let vP=jn(gP),bc=W.createContext(null);bc.displayName="OpenClosedContext";var jr=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(jr||{});function nm(){return W.useContext(bc)}function mP({value:e,children:t}){return W.createElement(bc.Provider,{value:e},t)}function yP(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let o=(t==null?void 0:t.getAttribute("disabled"))==="";return o&&wP(r)?!1:o}function wP(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function bP(e){var t,r;let o=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(o){for(let s of o.elements)if(s!==e&&(s.tagName==="INPUT"&&s.type==="submit"||s.tagName==="BUTTON"&&s.type==="submit"||s.nodeName==="INPUT"&&s.type==="image")){s.click();return}(r=o.requestSubmit)==null||r.call(o)}}var ql=(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))(ql||{});function xc(){let e=W.useRef(!1);return Ar(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let im=W.createContext(null);function om(){let e=W.useContext(im);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,om),t}return e}function xP(){let[e,t]=W.useState([]);return[e.length>0?e.join(" "):void 0,W.useMemo(()=>function(r){let o=xt(a=>(t(l=>[...l,a]),()=>t(l=>{let c=l.slice(),h=c.indexOf(a);return h!==-1&&c.splice(h,1),c}))),s=W.useMemo(()=>({register:o,slot:r.slot,name:r.name,props:r.props}),[o,r.slot,r.name,r.props]);return W.createElement(im.Provider,{value:s},r.children)},[t])]}let SP="p";function EP(e,t){let r=wc(),{id:o=`headlessui-description-${r}`,...s}=e,a=om(),l=Ro(t);Ar(()=>a.register(o),[o,a.register]);let c={ref:l,...a.props,id:o};return Nn({ourProps:c,theirProps:s,slot:a.slot||{},defaultTag:SP,name:a.name||"Description"})}let _P=jn(EP),AP=Object.assign(_P,{}),sm=W.createContext(null);function am(){let e=W.useContext(sm);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,am),t}return e}function OP(){let[e,t]=W.useState([]);return[e.length>0?e.join(" "):void 0,W.useMemo(()=>function(r){let o=xt(a=>(t(l=>[...l,a]),()=>t(l=>{let c=l.slice(),h=c.indexOf(a);return h!==-1&&c.splice(h,1),c}))),s=W.useMemo(()=>({register:o,slot:r.slot,name:r.name,props:r.props}),[o,r.slot,r.name,r.props]);return W.createElement(sm.Provider,{value:s},r.children)},[t])]}let TP="label";function RP(e,t){let r=wc(),{id:o=`headlessui-label-${r}`,passive:s=!1,...a}=e,l=am(),c=Ro(t);Ar(()=>l.register(o),[o,l.register]);let h={ref:c,...l.props,id:o};return s&&("onClick"in h&&(delete h.htmlFor,delete h.onClick),"onClick"in a&&delete a.onClick),Nn({ourProps:h,theirProps:a,slot:l.slot||{},defaultTag:TP,name:l.name||"Label"})}let PP=jn(RP),CP=Object.assign(PP,{});function kP(e=0){let[t,r]=W.useState(e),o=xc(),s=W.useCallback(h=>{o.current&&r(y=>y|h)},[t,o]),a=W.useCallback(h=>!!(t&h),[t]),l=W.useCallback(h=>{o.current&&r(y=>y&~h)},[r,o]),c=W.useCallback(h=>{o.current&&r(y=>y^h)},[r]);return{flags:t,addFlag:s,hasFlag:a,removeFlag:l,toggleFlag:c}}let Sc=W.createContext(null);Sc.displayName="GroupContext";let $P=W.Fragment;function IP(e){var t;let[r,o]=W.useState(null),[s,a]=OP(),[l,c]=xP(),h=W.useMemo(()=>({switch:r,setSwitch:o,labelledby:s,describedby:l}),[r,o,s,l]),y={},v=e;return W.createElement(c,{name:"Switch.Description"},W.createElement(a,{name:"Switch.Label",props:{htmlFor:(t=h.switch)==null?void 0:t.id,onClick(g){r&&(g.currentTarget.tagName==="LABEL"&&g.preventDefault(),r.click(),r.focus({preventScroll:!0}))}}},W.createElement(Sc.Provider,{value:h},Nn({ourProps:y,theirProps:v,defaultTag:$P,name:"Switch.Group"}))))}let LP="button";function MP(e,t){var r;let o=wc(),{id:s=`headlessui-switch-${o}`,checked:a,defaultChecked:l=!1,onChange:c,disabled:h=!1,name:y,value:v,form:g,...d}=e,w=W.useContext(Sc),x=W.useRef(null),f=Ro(x,t,w===null?null:w.setSwitch),[b,p]=uP(a,c,l),S=xt(()=>p==null?void 0:p(!b)),E=xt(M=>{if(yP(M.currentTarget))return M.preventDefault();M.preventDefault(),S()}),R=xt(M=>{M.key===ql.Space?(M.preventDefault(),S()):M.key===ql.Enter&&bP(M.currentTarget)}),O=xt(M=>M.preventDefault()),k=W.useMemo(()=>({checked:b}),[b]),B={id:s,ref:f,role:"switch",type:fP(e,x),tabIndex:e.tabIndex===-1?0:(r=e.tabIndex)!=null?r:0,"aria-checked":b,"aria-labelledby":w==null?void 0:w.labelledby,"aria-describedby":w==null?void 0:w.describedby,disabled:h,onClick:E,onKeyUp:R,onKeyPress:O},L=mc();return W.useEffect(()=>{var M;let G=(M=x.current)==null?void 0:M.closest("form");G&&l!==void 0&&L.addEventListener(G,"reset",()=>{p(l)})},[x,p]),W.createElement(W.Fragment,null,y!=null&&b&&W.createElement(vP,{features:rm.Hidden,...Hl({as:"input",type:"checkbox",hidden:!0,readOnly:!0,disabled:h,form:g,checked:b,name:y,value:v})}),Nn({ourProps:B,theirProps:d,slot:k,defaultTag:LP,name:"Switch"}))}let FP=jn(MP),DP=IP,NP=Object.assign(FP,{Group:DP,Label:CP,Description:AP});function jP(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function _l(e,...t){e&&t.length>0&&e.classList.add(...t)}function Al(e,...t){e&&t.length>0&&e.classList.remove(...t)}function zP(e,t){let r=To();if(!e)return r.dispose;let{transitionDuration:o,transitionDelay:s}=getComputedStyle(e),[a,l]=[o,s].map(h=>{let[y=0]=h.split(",").filter(Boolean).map(v=>v.includes("ms")?parseFloat(v):parseFloat(v)*1e3).sort((v,g)=>g-v);return y}),c=a+l;if(c!==0){r.group(y=>{y.setTimeout(()=>{t(),y.dispose()},c),y.addEventListener(e,"transitionrun",v=>{v.target===v.currentTarget&&y.dispose()})});let h=r.addEventListener(e,"transitionend",y=>{y.target===y.currentTarget&&(t(),h())})}else t();return r.add(()=>t()),r.dispose}function WP(e,t,r,o){let s=r?"enter":"leave",a=To(),l=o!==void 0?jP(o):()=>{};s==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let c=Sr(s,{enter:()=>t.enter,leave:()=>t.leave}),h=Sr(s,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),y=Sr(s,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Al(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),_l(e,...t.base,...c,...y),a.nextFrame(()=>{Al(e,...t.base,...c,...y),_l(e,...t.base,...c,...h),zP(e,()=>(Al(e,...t.base,...c),_l(e,...t.base,...t.entered),l()))}),a.dispose}function BP({immediate:e,container:t,direction:r,classes:o,onStart:s,onStop:a}){let l=xc(),c=mc(),h=ui(r);Ar(()=>{e&&(h.current="enter")},[e]),Ar(()=>{let y=To();c.add(y.dispose);let v=t.current;if(v&&h.current!=="idle"&&l.current)return y.dispose(),s.current(h.current),y.add(WP(v,o.current,h.current==="enter",()=>{y.dispose(),a.current(h.current)})),y.dispose},[r])}function nn(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let ya=W.createContext(null);ya.displayName="TransitionContext";var UP=(e=>(e.Visible="visible",e.Hidden="hidden",e))(UP||{});function HP(){let e=W.useContext(ya);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function qP(){let e=W.useContext(wa);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let wa=W.createContext(null);wa.displayName="NestingContext";function ba(e){return"children"in e?ba(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function um(e,t){let r=ui(e),o=W.useRef([]),s=xc(),a=mc(),l=xt((w,x=un.Hidden)=>{let f=o.current.findIndex(({el:b})=>b===w);f!==-1&&(Sr(x,{[un.Unmount](){o.current.splice(f,1)},[un.Hidden](){o.current[f].state="hidden"}}),a.microTask(()=>{var b;!ba(o)&&s.current&&((b=r.current)==null||b.call(r))}))}),c=xt(w=>{let x=o.current.find(({el:f})=>f===w);return x?x.state!=="visible"&&(x.state="visible"):o.current.push({el:w,state:"visible"}),()=>l(w,un.Unmount)}),h=W.useRef([]),y=W.useRef(Promise.resolve()),v=W.useRef({enter:[],leave:[],idle:[]}),g=xt((w,x,f)=>{h.current.splice(0),t&&(t.chains.current[x]=t.chains.current[x].filter(([b])=>b!==w)),t==null||t.chains.current[x].push([w,new Promise(b=>{h.current.push(b)})]),t==null||t.chains.current[x].push([w,new Promise(b=>{Promise.all(v.current[x].map(([p,S])=>S)).then(()=>b())})]),x==="enter"?y.current=y.current.then(()=>t==null?void 0:t.wait.current).then(()=>f(x)):f(x)}),d=xt((w,x,f)=>{Promise.all(v.current[x].splice(0).map(([b,p])=>p)).then(()=>{var b;(b=h.current.shift())==null||b()}).then(()=>f(x))});return W.useMemo(()=>({children:o,register:c,unregister:l,onStart:g,onStop:d,wait:y,chains:v}),[c,l,o,g,d,v,y])}function ZP(){}let GP=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function gg(e){var t;let r={};for(let o of GP)r[o]=(t=e[o])!=null?t:ZP;return r}function KP(e){let t=W.useRef(gg(e));return W.useEffect(()=>{t.current=gg(e)},[e]),t}let VP="div",lm=em.RenderStrategy;function YP(e,t){var r,o;let{beforeEnter:s,afterEnter:a,beforeLeave:l,afterLeave:c,enter:h,enterFrom:y,enterTo:v,entered:g,leave:d,leaveFrom:w,leaveTo:x,...f}=e,b=W.useRef(null),p=Ro(b,t),S=(r=f.unmount)==null||r?un.Unmount:un.Hidden,{show:E,appear:R,initial:O}=HP(),[k,B]=W.useState(E?"visible":"hidden"),L=qP(),{register:M,unregister:G}=L;W.useEffect(()=>M(b),[M,b]),W.useEffect(()=>{if(S===un.Hidden&&b.current){if(E&&k!=="visible"){B("visible");return}return Sr(k,{hidden:()=>G(b),visible:()=>M(b)})}},[k,b,M,G,E,S]);let N=ui({base:nn(f.className),enter:nn(h),enterFrom:nn(y),enterTo:nn(v),entered:nn(g),leave:nn(d),leaveFrom:nn(w),leaveTo:nn(x)}),I=KP({beforeEnter:s,afterEnter:a,beforeLeave:l,afterLeave:c}),U=yc();W.useEffect(()=>{if(U&&k==="visible"&&b.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[b,k,U]);let q=O&&!R,C=R&&E&&O,J=!U||q?"idle":E?"enter":"leave",Y=kP(0),te=xt(ne=>Sr(ne,{enter:()=>{Y.addFlag(jr.Opening),I.current.beforeEnter()},leave:()=>{Y.addFlag(jr.Closing),I.current.beforeLeave()},idle:()=>{}})),de=xt(ne=>Sr(ne,{enter:()=>{Y.removeFlag(jr.Opening),I.current.afterEnter()},leave:()=>{Y.removeFlag(jr.Closing),I.current.afterLeave()},idle:()=>{}})),Z=um(()=>{B("hidden"),G(b)},L),Q=W.useRef(!1);BP({immediate:C,container:b,classes:N,direction:J,onStart:ui(ne=>{Q.current=!0,Z.onStart(b,ne,te)}),onStop:ui(ne=>{Q.current=!1,Z.onStop(b,ne,de),ne==="leave"&&!ba(Z)&&(B("hidden"),G(b))})});let se=f,ue={ref:p};return C?se={...se,className:na(f.className,...N.current.enter,...N.current.enterFrom)}:Q.current&&(se.className=na(f.className,(o=b.current)==null?void 0:o.className),se.className===""&&delete se.className),W.createElement(wa.Provider,{value:Z},W.createElement(mP,{value:Sr(k,{visible:jr.Open,hidden:jr.Closed})|Y.flags},Nn({ourProps:ue,theirProps:se,defaultTag:VP,features:lm,visible:k==="visible",name:"Transition.Child"})))}function XP(e,t){let{show:r,appear:o=!1,unmount:s=!0,...a}=e,l=W.useRef(null),c=Ro(l,t);yc();let h=nm();if(r===void 0&&h!==null&&(r=(h&jr.Open)===jr.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[y,v]=W.useState(r?"visible":"hidden"),g=um(()=>{v("hidden")}),[d,w]=W.useState(!0),x=W.useRef([r]);Ar(()=>{d!==!1&&x.current[x.current.length-1]!==r&&(x.current.push(r),w(!1))},[x,r]);let f=W.useMemo(()=>({show:r,appear:o,initial:d}),[r,o,d]);W.useEffect(()=>{if(r)v("visible");else if(!ba(g))v("hidden");else{let E=l.current;if(!E)return;let R=E.getBoundingClientRect();R.x===0&&R.y===0&&R.width===0&&R.height===0&&v("hidden")}},[r,g]);let b={unmount:s},p=xt(()=>{var E;d&&w(!1),(E=e.beforeEnter)==null||E.call(e)}),S=xt(()=>{var E;d&&w(!1),(E=e.beforeLeave)==null||E.call(e)});return W.createElement(wa.Provider,{value:g},W.createElement(ya.Provider,{value:f},Nn({ourProps:{...b,as:W.Fragment,children:W.createElement(cm,{ref:c,...b,...a,beforeEnter:p,beforeLeave:S})},theirProps:{},defaultTag:W.Fragment,features:lm,visible:y==="visible",name:"Transition"})))}function JP(e,t){let r=W.useContext(ya)!==null,o=nm()!==null;return W.createElement(W.Fragment,null,!r&&o?W.createElement(Zl,{ref:t,...e}):W.createElement(cm,{ref:t,...e}))}let Zl=jn(XP),cm=jn(YP),QP=jn(JP),ia=Object.assign(Zl,{Child:QP,Root:Zl});const Ol={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"}},fm=W.forwardRef(({onChange:e,value:t,size:r="md",className:o="ml-auto"},s)=>{const a=l=>{e(l)};return z.jsx("div",{className:tt("flex items-center",o),children:z.jsx(NP,{as:"span",ref:s,checked:t,onChange:a,onKeyDown:l=>{l.key==="Enter"&&a(!t)},className:`${t?"bg-primary-dark":"bg-grey-200"}
|
|
89
|
-
relative inline-flex shrink-0 ${
|
|
90
|
-
pointer-events-none inline-block ${
|
|
91
|
-
]`).replace("lheading",
|
|
92
|
-
`).map(
|
|
93
|
-
`)}var
|
|
94
|
-
`)}}}fences(
|
|
95
|
-
`)}}blockquote(
|
|
88
|
+
`));let p=v.props,w=typeof(p==null?void 0:p.className)=="function"?(...f)=>ys(p==null?void 0:p.className(...f),d.className):ys(p==null?void 0:p.className,d.className),x=w?{className:w}:{};return W.cloneElement(v,Object.assign({},ty(v.props,gc(Ul(d,["ref"]))),g,m,{ref:a(v.ref,m.ref)},x))}return W.createElement(s,Object.assign({},Ul(d,["ref"]),s!==W.Fragment&&m,s!==W.Fragment&&g),v)}function uC(...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 ty(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let i of e)for(let a in i)a.startsWith("on")&&typeof i[a]=="function"?(r[a]!=null||(r[a]=[]),r[a].push(i[a])):t[a]=i[a];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(i=>[i,void 0])));for(let i in r)Object.assign(t,{[i](a,...s){let l=r[i];for(let c of l){if((a instanceof Event||(a==null?void 0:a.nativeEvent)instanceof Event)&&a.defaultPrevented)return;c(a,...s)}}});return t}function Gn(e){var t;return Object.assign(W.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function gc(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function Ul(e,t=[]){let r=Object.assign({},e);for(let i of t)i in r&&delete r[i];return r}let lC="div";var ry=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(ry||{});function cC(e,t){var r;let{features:i=1,...a}=e,s={ref:t,"aria-hidden":(i&2)===2?!0:(r=a["aria-hidden"])!=null?r:void 0,hidden:(i&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(i&4)===4&&(i&2)!==2&&{display:"none"}}};return Zn({ourProps:s,theirProps:a,slot:{},defaultTag:lC,name:"Hidden"})}let fC=Gn(cC),Qc=W.createContext(null);Qc.displayName="OpenClosedContext";var Hr=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Hr||{});function ny(){return W.useContext(Qc)}function dC({value:e,children:t}){return W.createElement(Qc.Provider,{value:e},t)}function pC(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&&hC(r)?!1:i}function hC(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function gC(e){var t,r;let i=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(i){for(let a of i.elements)if(a!==e&&(a.tagName==="INPUT"&&a.type==="submit"||a.tagName==="BUTTON"&&a.type==="submit"||a.nodeName==="INPUT"&&a.type==="image")){a.click();return}(r=i.requestSubmit)==null||r.call(i)}}var vc=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(vc||{});function ef(){let e=W.useRef(!1);return Cr(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let iy=W.createContext(null);function oy(){let e=W.useContext(iy);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,oy),t}return e}function vC(){let[e,t]=W.useState([]);return[e.length>0?e.join(" "):void 0,W.useMemo(()=>function(r){let i=St(s=>(t(l=>[...l,s]),()=>t(l=>{let c=l.slice(),d=c.indexOf(s);return d!==-1&&c.splice(d,1),c}))),a=W.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return W.createElement(iy.Provider,{value:a},r.children)},[t])]}let mC="p";function yC(e,t){let r=Jc(),{id:i=`headlessui-description-${r}`,...a}=e,s=oy(),l=Wo(t);Cr(()=>s.register(i),[i,s.register]);let c={ref:l,...s.props,id:i};return Zn({ourProps:c,theirProps:a,slot:s.slot||{},defaultTag:mC,name:s.name||"Description"})}let wC=Gn(yC),bC=Object.assign(wC,{}),ay=W.createContext(null);function sy(){let e=W.useContext(ay);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,sy),t}return e}function xC(){let[e,t]=W.useState([]);return[e.length>0?e.join(" "):void 0,W.useMemo(()=>function(r){let i=St(s=>(t(l=>[...l,s]),()=>t(l=>{let c=l.slice(),d=c.indexOf(s);return d!==-1&&c.splice(d,1),c}))),a=W.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return W.createElement(ay.Provider,{value:a},r.children)},[t])]}let SC="label";function EC(e,t){let r=Jc(),{id:i=`headlessui-label-${r}`,passive:a=!1,...s}=e,l=sy(),c=Wo(t);Cr(()=>l.register(i),[i,l.register]);let d={ref:c,...l.props,id:i};return a&&("onClick"in d&&(delete d.htmlFor,delete d.onClick),"onClick"in s&&delete s.onClick),Zn({ourProps:d,theirProps:s,slot:l.slot||{},defaultTag:SC,name:l.name||"Label"})}let _C=Gn(EC),OC=Object.assign(_C,{});function AC(e=0){let[t,r]=W.useState(e),i=ef(),a=W.useCallback(d=>{i.current&&r(m=>m|d)},[t,i]),s=W.useCallback(d=>!!(t&d),[t]),l=W.useCallback(d=>{i.current&&r(m=>m&~d)},[r,i]),c=W.useCallback(d=>{i.current&&r(m=>m^d)},[r]);return{flags:t,addFlag:a,hasFlag:s,removeFlag:l,toggleFlag:c}}let tf=W.createContext(null);tf.displayName="GroupContext";let TC=W.Fragment;function RC(e){var t;let[r,i]=W.useState(null),[a,s]=xC(),[l,c]=vC(),d=W.useMemo(()=>({switch:r,setSwitch:i,labelledby:a,describedby:l}),[r,i,a,l]),m={},v=e;return W.createElement(c,{name:"Switch.Description"},W.createElement(s,{name:"Switch.Label",props:{htmlFor:(t=d.switch)==null?void 0:t.id,onClick(g){r&&(g.currentTarget.tagName==="LABEL"&&g.preventDefault(),r.click(),r.focus({preventScroll:!0}))}}},W.createElement(tf.Provider,{value:d},Zn({ourProps:m,theirProps:v,defaultTag:TC,name:"Switch.Group"}))))}let PC="button";function CC(e,t){var r;let i=Jc(),{id:a=`headlessui-switch-${i}`,checked:s,defaultChecked:l=!1,onChange:c,disabled:d=!1,name:m,value:v,form:g,...p}=e,w=W.useContext(tf),x=W.useRef(null),f=Wo(x,t,w===null?null:w.setSwitch),[b,h]=nC(s,c,l),S=St(()=>h==null?void 0:h(!b)),E=St(F=>{if(pC(F.currentTarget))return F.preventDefault();F.preventDefault(),S()}),R=St(F=>{F.key===vc.Space?(F.preventDefault(),S()):F.key===vc.Enter&&gC(F.currentTarget)}),O=St(F=>F.preventDefault()),k=W.useMemo(()=>({checked:b}),[b]),B={id:a,ref:f,role:"switch",type:aC(e,x),tabIndex:e.tabIndex===-1?0:(r=e.tabIndex)!=null?r:0,"aria-checked":b,"aria-labelledby":w==null?void 0:w.labelledby,"aria-describedby":w==null?void 0:w.describedby,disabled:d,onClick:E,onKeyUp:R,onKeyPress:O},M=Xc();return W.useEffect(()=>{var F;let G=(F=x.current)==null?void 0:F.closest("form");G&&l!==void 0&&M.addEventListener(G,"reset",()=>{h(l)})},[x,h]),W.createElement(W.Fragment,null,m!=null&&b&&W.createElement(fC,{features:ry.Hidden,...gc({as:"input",type:"checkbox",hidden:!0,readOnly:!0,disabled:d,form:g,checked:b,name:m,value:v})}),Zn({ourProps:B,theirProps:p,slot:k,defaultTag:PC,name:"Switch"}))}let kC=Gn(CC),$C=RC,IC=Object.assign(kC,{Group:$C,Label:OC,Description:bC});function LC(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function Hl(e,...t){e&&t.length>0&&e.classList.add(...t)}function ql(e,...t){e&&t.length>0&&e.classList.remove(...t)}function MC(e,t){let r=zo();if(!e)return r.dispose;let{transitionDuration:i,transitionDelay:a}=getComputedStyle(e),[s,l]=[i,a].map(d=>{let[m=0]=d.split(",").filter(Boolean).map(v=>v.includes("ms")?parseFloat(v):parseFloat(v)*1e3).sort((v,g)=>g-v);return m}),c=s+l;if(c!==0){r.group(m=>{m.setTimeout(()=>{t(),m.dispose()},c),m.addEventListener(e,"transitionrun",v=>{v.target===v.currentTarget&&m.dispose()})});let d=r.addEventListener(e,"transitionend",m=>{m.target===m.currentTarget&&(t(),d())})}else t();return r.add(()=>t()),r.dispose}function FC(e,t,r,i){let a=r?"enter":"leave",s=zo(),l=i!==void 0?LC(i):()=>{};a==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let c=Ar(a,{enter:()=>t.enter,leave:()=>t.leave}),d=Ar(a,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),m=Ar(a,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return ql(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Hl(e,...t.base,...c,...m),s.nextFrame(()=>{ql(e,...t.base,...c,...m),Hl(e,...t.base,...c,...d),MC(e,()=>(ql(e,...t.base,...c),Hl(e,...t.base,...t.entered),l()))}),s.dispose}function DC({immediate:e,container:t,direction:r,classes:i,onStart:a,onStop:s}){let l=ef(),c=Xc(),d=vi(r);Cr(()=>{e&&(d.current="enter")},[e]),Cr(()=>{let m=zo();c.add(m.dispose);let v=t.current;if(v&&d.current!=="idle"&&l.current)return m.dispose(),a.current(d.current),m.add(FC(v,i.current,d.current==="enter",()=>{m.dispose(),s.current(d.current)})),m.dispose},[r])}function ln(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let Ds=W.createContext(null);Ds.displayName="TransitionContext";var NC=(e=>(e.Visible="visible",e.Hidden="hidden",e))(NC||{});function jC(){let e=W.useContext(Ds);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function zC(){let e=W.useContext(Ns);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Ns=W.createContext(null);Ns.displayName="NestingContext";function js(e){return"children"in e?js(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function uy(e,t){let r=vi(e),i=W.useRef([]),a=ef(),s=Xc(),l=St((w,x=pn.Hidden)=>{let f=i.current.findIndex(({el:b})=>b===w);f!==-1&&(Ar(x,{[pn.Unmount](){i.current.splice(f,1)},[pn.Hidden](){i.current[f].state="hidden"}}),s.microTask(()=>{var b;!js(i)&&a.current&&((b=r.current)==null||b.call(r))}))}),c=St(w=>{let x=i.current.find(({el:f})=>f===w);return x?x.state!=="visible"&&(x.state="visible"):i.current.push({el:w,state:"visible"}),()=>l(w,pn.Unmount)}),d=W.useRef([]),m=W.useRef(Promise.resolve()),v=W.useRef({enter:[],leave:[],idle:[]}),g=St((w,x,f)=>{d.current.splice(0),t&&(t.chains.current[x]=t.chains.current[x].filter(([b])=>b!==w)),t==null||t.chains.current[x].push([w,new Promise(b=>{d.current.push(b)})]),t==null||t.chains.current[x].push([w,new Promise(b=>{Promise.all(v.current[x].map(([h,S])=>S)).then(()=>b())})]),x==="enter"?m.current=m.current.then(()=>t==null?void 0:t.wait.current).then(()=>f(x)):f(x)}),p=St((w,x,f)=>{Promise.all(v.current[x].splice(0).map(([b,h])=>h)).then(()=>{var b;(b=d.current.shift())==null||b()}).then(()=>f(x))});return W.useMemo(()=>({children:i,register:c,unregister:l,onStart:g,onStop:p,wait:m,chains:v}),[c,l,i,g,p,v,m])}function WC(){}let BC=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function tv(e){var t;let r={};for(let i of BC)r[i]=(t=e[i])!=null?t:WC;return r}function UC(e){let t=W.useRef(tv(e));return W.useEffect(()=>{t.current=tv(e)},[e]),t}let HC="div",ly=ey.RenderStrategy;function qC(e,t){var r,i;let{beforeEnter:a,afterEnter:s,beforeLeave:l,afterLeave:c,enter:d,enterFrom:m,enterTo:v,entered:g,leave:p,leaveFrom:w,leaveTo:x,...f}=e,b=W.useRef(null),h=Wo(b,t),S=(r=f.unmount)==null||r?pn.Unmount:pn.Hidden,{show:E,appear:R,initial:O}=jC(),[k,B]=W.useState(E?"visible":"hidden"),M=zC(),{register:F,unregister:G}=M;W.useEffect(()=>F(b),[F,b]),W.useEffect(()=>{if(S===pn.Hidden&&b.current){if(E&&k!=="visible"){B("visible");return}return Ar(k,{hidden:()=>G(b),visible:()=>F(b)})}},[k,b,F,G,E,S]);let N=vi({base:ln(f.className),enter:ln(d),enterFrom:ln(m),enterTo:ln(v),entered:ln(g),leave:ln(p),leaveFrom:ln(w),leaveTo:ln(x)}),L=UC({beforeEnter:a,afterEnter:s,beforeLeave:l,afterLeave:c}),U=Yc();W.useEffect(()=>{if(U&&k==="visible"&&b.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[b,k,U]);let q=O&&!R,C=R&&E&&O,J=!U||q?"idle":E?"enter":"leave",X=AC(0),te=St(ne=>Ar(ne,{enter:()=>{X.addFlag(Hr.Opening),L.current.beforeEnter()},leave:()=>{X.addFlag(Hr.Closing),L.current.beforeLeave()},idle:()=>{}})),de=St(ne=>Ar(ne,{enter:()=>{X.removeFlag(Hr.Opening),L.current.afterEnter()},leave:()=>{X.removeFlag(Hr.Closing),L.current.afterLeave()},idle:()=>{}})),Z=uy(()=>{B("hidden"),G(b)},M),Q=W.useRef(!1);DC({immediate:C,container:b,classes:N,direction:J,onStart:vi(ne=>{Q.current=!0,Z.onStart(b,ne,te)}),onStop:vi(ne=>{Q.current=!1,Z.onStop(b,ne,de),ne==="leave"&&!js(Z)&&(B("hidden"),G(b))})});let ae=f,ue={ref:h};return C?ae={...ae,className:ys(f.className,...N.current.enter,...N.current.enterFrom)}:Q.current&&(ae.className=ys(f.className,(i=b.current)==null?void 0:i.className),ae.className===""&&delete ae.className),W.createElement(Ns.Provider,{value:Z},W.createElement(dC,{value:Ar(k,{visible:Hr.Open,hidden:Hr.Closed})|X.flags},Zn({ourProps:ue,theirProps:ae,defaultTag:HC,features:ly,visible:k==="visible",name:"Transition.Child"})))}function ZC(e,t){let{show:r,appear:i=!1,unmount:a=!0,...s}=e,l=W.useRef(null),c=Wo(l,t);Yc();let d=ny();if(r===void 0&&d!==null&&(r=(d&Hr.Open)===Hr.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[m,v]=W.useState(r?"visible":"hidden"),g=uy(()=>{v("hidden")}),[p,w]=W.useState(!0),x=W.useRef([r]);Cr(()=>{p!==!1&&x.current[x.current.length-1]!==r&&(x.current.push(r),w(!1))},[x,r]);let f=W.useMemo(()=>({show:r,appear:i,initial:p}),[r,i,p]);W.useEffect(()=>{if(r)v("visible");else if(!js(g))v("hidden");else{let E=l.current;if(!E)return;let R=E.getBoundingClientRect();R.x===0&&R.y===0&&R.width===0&&R.height===0&&v("hidden")}},[r,g]);let b={unmount:a},h=St(()=>{var E;p&&w(!1),(E=e.beforeEnter)==null||E.call(e)}),S=St(()=>{var E;p&&w(!1),(E=e.beforeLeave)==null||E.call(e)});return W.createElement(Ns.Provider,{value:g},W.createElement(Ds.Provider,{value:f},Zn({ourProps:{...b,as:W.Fragment,children:W.createElement(cy,{ref:c,...b,...s,beforeEnter:h,beforeLeave:S})},theirProps:{},defaultTag:W.Fragment,features:ly,visible:m==="visible",name:"Transition"})))}function GC(e,t){let r=W.useContext(Ds)!==null,i=ny()!==null;return W.createElement(W.Fragment,null,!r&&i?W.createElement(mc,{ref:t,...e}):W.createElement(cy,{ref:t,...e}))}let mc=Gn(ZC),cy=Gn(qC),KC=Gn(GC),ws=Object.assign(mc,{Child:KC,Root:mc});const Zl={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"}},fy=W.forwardRef(({onChange:e,value:t,size:r="md",className:i="ml-auto"},a)=>{const s=l=>{e(l)};return j.jsx("div",{className:rt("flex items-center",i),children:j.jsx(IC,{as:"span",ref:a,checked:t,onChange:s,onKeyDown:l=>{l.key==="Enter"&&s(!t)},className:`${t?"bg-primary-dark":"bg-grey-200"}
|
|
89
|
+
relative inline-flex shrink-0 ${Zl[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:j.jsx("span",{"aria-hidden":"true",className:`${t?Zl[r].translate:"translate-x-0"}
|
|
90
|
+
pointer-events-none inline-block ${Zl[r].switch} transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})})})});function rf(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Kn=rf();function dy(e){Kn=e}var Eo={exec:()=>null};function Ce(e,t=""){let r=typeof e=="string"?e:e.source,i={replace:(a,s)=>{let l=typeof s=="string"?s:s.source;return l=l.replace(Rt.caret,"$1"),r=r.replace(a,l),i},getRegex:()=>new RegExp(r,t)};return i}var Rt={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},VC=/^(?:[ \t]*(?:\n|$))+/,XC=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,YC=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Bo=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,JC=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,nf=/(?:[*+-]|\d{1,9}[.)])/,py=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,hy=Ce(py).replace(/bull/g,nf).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),QC=Ce(py).replace(/bull/g,nf).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),of=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ek=/^[^\n]+/,af=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,tk=Ce(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",af).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),rk=Ce(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,nf).getRegex(),zs="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",sf=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,nk=Ce("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",sf).replace("tag",zs).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),gy=Ce(of).replace("hr",Bo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",zs).getRegex(),ik=Ce(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",gy).getRegex(),uf={blockquote:ik,code:XC,def:tk,fences:YC,heading:JC,hr:Bo,html:nk,lheading:hy,list:rk,newline:VC,paragraph:gy,table:Eo,text:ek},rv=Ce("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Bo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",zs).getRegex(),ok={...uf,lheading:QC,table:rv,paragraph:Ce(of).replace("hr",Bo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",rv).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",zs).getRegex()},ak={...uf,html:Ce(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",sf).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Eo,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ce(of).replace("hr",Bo).replace("heading",` *#{1,6} *[^
|
|
91
|
+
]`).replace("lheading",hy).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},sk=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,uk=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,vy=/^( {2,}|\\)\n(?!\s*$)/,lk=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ws=/[\p{P}\p{S}]/u,lf=/[\s\p{P}\p{S}]/u,my=/[^\s\p{P}\p{S}]/u,ck=Ce(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,lf).getRegex(),yy=/(?!~)[\p{P}\p{S}]/u,fk=/(?!~)[\s\p{P}\p{S}]/u,dk=/(?:[^\s\p{P}\p{S}]|~)/u,pk=/\[(?:[^\[\]`]|`[^`]*?`)*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,wy=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,hk=Ce(wy,"u").replace(/punct/g,Ws).getRegex(),gk=Ce(wy,"u").replace(/punct/g,yy).getRegex(),by="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",vk=Ce(by,"gu").replace(/notPunctSpace/g,my).replace(/punctSpace/g,lf).replace(/punct/g,Ws).getRegex(),mk=Ce(by,"gu").replace(/notPunctSpace/g,dk).replace(/punctSpace/g,fk).replace(/punct/g,yy).getRegex(),yk=Ce("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,my).replace(/punctSpace/g,lf).replace(/punct/g,Ws).getRegex(),wk=Ce(/\\(punct)/,"gu").replace(/punct/g,Ws).getRegex(),bk=Ce(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),xk=Ce(sf).replace("(?:-->|$)","-->").getRegex(),Sk=Ce("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",xk).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),bs=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Ek=Ce(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",bs).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),xy=Ce(/^!?\[(label)\]\[(ref)\]/).replace("label",bs).replace("ref",af).getRegex(),Sy=Ce(/^!?\[(ref)\](?:\[\])?/).replace("ref",af).getRegex(),_k=Ce("reflink|nolink(?!\\()","g").replace("reflink",xy).replace("nolink",Sy).getRegex(),nv=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,cf={_backpedal:Eo,anyPunctuation:wk,autolink:bk,blockSkip:pk,br:vy,code:uk,del:Eo,emStrongLDelim:hk,emStrongRDelimAst:vk,emStrongRDelimUnd:yk,escape:sk,link:Ek,nolink:Sy,punctuation:ck,reflink:xy,reflinkSearch:_k,tag:Sk,text:lk,url:Eo},Ok={...cf,link:Ce(/^!?\[(label)\]\((.*?)\)/).replace("label",bs).getRegex(),reflink:Ce(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",bs).getRegex()},yc={...cf,emStrongRDelimAst:mk,emStrongLDelim:gk,url:Ce(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",nv).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Ce(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",nv).getRegex()},Ak={...yc,br:Ce(vy).replace("{2,}","*").getRegex(),text:Ce(yc.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Ja={normal:uf,gfm:ok,pedantic:ak},lo={normal:cf,gfm:yc,breaks:Ak,pedantic:Ok},Tk={"&":"&","<":"<",">":">",'"':""","'":"'"},iv=e=>Tk[e];function Sr(e,t){if(t){if(Rt.escapeTest.test(e))return e.replace(Rt.escapeReplace,iv)}else if(Rt.escapeTestNoEncode.test(e))return e.replace(Rt.escapeReplaceNoEncode,iv);return e}function ov(e){try{e=encodeURI(e).replace(Rt.percentDecode,"%")}catch{return null}return e}function av(e,t){var s;let r=e.replace(Rt.findPipe,(l,c,d)=>{let m=!1,v=c;for(;--v>=0&&d[v]==="\\";)m=!m;return m?"|":" |"}),i=r.split(Rt.splitPipe),a=0;if(i[0].trim()||i.shift(),i.length>0&&!((s=i.at(-1))!=null&&s.trim())&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;a<i.length;a++)i[a]=i[a].trim().replace(Rt.slashPipe,"|");return i}function co(e,t,r){let i=e.length;if(i===0)return"";let a=0;for(;a<i&&e.charAt(i-a-1)===t;)a++;return e.slice(0,i-a)}function Rk(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let i=0;i<e.length;i++)if(e[i]==="\\")i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&(r--,r<0))return i;return r>0?-2:-1}function sv(e,t,r,i,a){let s=t.href,l=t.title||null,c=e[1].replace(a.other.outputLinkReplace,"$1");i.state.inLink=!0;let d={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:s,title:l,text:c,tokens:i.inlineTokens(c)};return i.state.inLink=!1,d}function Pk(e,t,r){let i=e.match(r.other.indentCodeCompensation);if(i===null)return t;let a=i[1];return t.split(`
|
|
92
|
+
`).map(s=>{let l=s.match(r.other.beginningSpace);if(l===null)return s;let[c]=l;return c.length>=a.length?s.slice(a.length):s}).join(`
|
|
93
|
+
`)}var xs=class{constructor(t){me(this,"options");me(this,"rules");me(this,"lexer");this.options=t||Kn}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let i=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?i:co(i,`
|
|
94
|
+
`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let i=r[0],a=Pk(i,r[3]||"",this.rules);return{type:"code",raw:i,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:a}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let i=r[2].trim();if(this.rules.other.endingHash.test(i)){let a=co(i,"#");(this.options.pedantic||!a||this.rules.other.endingSpaceChar.test(a))&&(i=a.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:co(r[0],`
|
|
95
|
+
`)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let i=co(r[0],`
|
|
96
96
|
`).split(`
|
|
97
|
-
`),
|
|
98
|
-
`),v
|
|
99
|
-
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");
|
|
100
|
-
${
|
|
101
|
-
${
|
|
102
|
-
`+
|
|
103
|
-
`),
|
|
104
|
-
`+
|
|
105
|
-
`),
|
|
106
|
-
`);continue}}return{type:"blockquote",raw:
|
|
107
|
-
`,1)[0].replace(this.rules.other.listReplaceTabs,
|
|
108
|
-
`,1)[0],
|
|
109
|
-
`,
|
|
110
|
-
`,1)[0],
|
|
111
|
-
`+
|
|
112
|
-
`+
|
|
113
|
-
`,
|
|
114
|
-
`):[],
|
|
115
|
-
`?
|
|
116
|
-
`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let
|
|
117
|
-
`:r.push(c);continue}if(c=this.tokenizer.code(t)){t=t.substring(c.raw.length);let
|
|
97
|
+
`),a="",s="",l=[];for(;i.length>0;){let c=!1,d=[],m;for(m=0;m<i.length;m++)if(this.rules.other.blockquoteStart.test(i[m]))d.push(i[m]),c=!0;else if(!c)d.push(i[m]);else break;i=i.slice(m);let v=d.join(`
|
|
98
|
+
`),g=v.replace(this.rules.other.blockquoteSetextReplace,`
|
|
99
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");a=a?`${a}
|
|
100
|
+
${v}`:v,s=s?`${s}
|
|
101
|
+
${g}`:g;let p=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(g,l,!0),this.lexer.state.top=p,i.length===0)break;let w=l.at(-1);if((w==null?void 0:w.type)==="code")break;if((w==null?void 0:w.type)==="blockquote"){let x=w,f=x.raw+`
|
|
102
|
+
`+i.join(`
|
|
103
|
+
`),b=this.blockquote(f);l[l.length-1]=b,a=a.substring(0,a.length-x.raw.length)+b.raw,s=s.substring(0,s.length-x.text.length)+b.text;break}else if((w==null?void 0:w.type)==="list"){let x=w,f=x.raw+`
|
|
104
|
+
`+i.join(`
|
|
105
|
+
`),b=this.list(f);l[l.length-1]=b,a=a.substring(0,a.length-w.raw.length)+b.raw,s=s.substring(0,s.length-x.raw.length)+b.raw,i=f.substring(l.at(-1).raw.length).split(`
|
|
106
|
+
`);continue}}return{type:"blockquote",raw:a,tokens:l,text:s}}}list(t){let r=this.rules.block.list.exec(t);if(r){let i=r[1].trim(),a=i.length>1,s={type:"list",raw:"",ordered:a,start:a?+i.slice(0,-1):"",loose:!1,items:[]};i=a?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=a?i:"[*+-]");let l=this.rules.other.listItemRegex(i),c=!1;for(;t;){let m=!1,v="",g="";if(!(r=l.exec(t))||this.rules.block.hr.test(t))break;v=r[0],t=t.substring(v.length);let p=r[2].split(`
|
|
107
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,S=>" ".repeat(3*S.length)),w=t.split(`
|
|
108
|
+
`,1)[0],x=!p.trim(),f=0;if(this.options.pedantic?(f=2,g=p.trimStart()):x?f=r[1].length+1:(f=r[2].search(this.rules.other.nonSpaceChar),f=f>4?1:f,g=p.slice(f),f+=r[1].length),x&&this.rules.other.blankLine.test(w)&&(v+=w+`
|
|
109
|
+
`,t=t.substring(w.length+1),m=!0),!m){let S=this.rules.other.nextBulletRegex(f),E=this.rules.other.hrRegex(f),R=this.rules.other.fencesBeginRegex(f),O=this.rules.other.headingBeginRegex(f),k=this.rules.other.htmlBeginRegex(f);for(;t;){let B=t.split(`
|
|
110
|
+
`,1)[0],M;if(w=B,this.options.pedantic?(w=w.replace(this.rules.other.listReplaceNesting," "),M=w):M=w.replace(this.rules.other.tabCharGlobal," "),R.test(w)||O.test(w)||k.test(w)||S.test(w)||E.test(w))break;if(M.search(this.rules.other.nonSpaceChar)>=f||!w.trim())g+=`
|
|
111
|
+
`+M.slice(f);else{if(x||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||R.test(p)||O.test(p)||E.test(p))break;g+=`
|
|
112
|
+
`+w}!x&&!w.trim()&&(x=!0),v+=B+`
|
|
113
|
+
`,t=t.substring(B.length+1),p=M.slice(f)}}s.loose||(c?s.loose=!0:this.rules.other.doubleBlankLine.test(v)&&(c=!0));let b=null,h;this.options.gfm&&(b=this.rules.other.listIsTask.exec(g),b&&(h=b[0]!=="[ ] ",g=g.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:v,task:!!b,checked:h,loose:!1,text:g,tokens:[]}),s.raw+=v}let d=s.items.at(-1);if(d)d.raw=d.raw.trimEnd(),d.text=d.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let m=0;m<s.items.length;m++)if(this.lexer.state.top=!1,s.items[m].tokens=this.lexer.blockTokens(s.items[m].text,[]),!s.loose){let v=s.items[m].tokens.filter(p=>p.type==="space"),g=v.length>0&&v.some(p=>this.rules.other.anyLine.test(p.raw));s.loose=g}if(s.loose)for(let m=0;m<s.items.length;m++)s.items[m].loose=!0;return s}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let i=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),a=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:i,raw:r[0],href:a,title:s}}}table(t){var c;let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let i=av(r[1]),a=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=(c=r[3])!=null&&c.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
114
|
+
`):[],l={type:"table",raw:r[0],header:[],align:[],rows:[]};if(i.length===a.length){for(let d of a)this.rules.other.tableAlignRight.test(d)?l.align.push("right"):this.rules.other.tableAlignCenter.test(d)?l.align.push("center"):this.rules.other.tableAlignLeft.test(d)?l.align.push("left"):l.align.push(null);for(let d=0;d<i.length;d++)l.header.push({text:i[d],tokens:this.lexer.inline(i[d]),header:!0,align:l.align[d]});for(let d of s)l.rows.push(av(d,l.header.length).map((m,v)=>({text:m,tokens:this.lexer.inline(m),header:!1,align:l.align[v]})));return l}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let i=r[1].charAt(r[1].length-1)===`
|
|
115
|
+
`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:i,tokens:this.lexer.inline(i)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let i=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let l=co(i.slice(0,-1),"\\");if((i.length-l.length)%2===0)return}else{let l=Rk(r[2],"()");if(l===-2)return;if(l>-1){let c=(r[0].indexOf("!")===0?5:4)+r[1].length+l;r[2]=r[2].substring(0,l),r[0]=r[0].substring(0,c).trim(),r[3]=""}}let a=r[2],s="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(a);l&&(a=l[1],s=l[3])}else s=r[3]?r[3].slice(1,-1):"";return a=a.trim(),this.rules.other.startAngleBracket.test(a)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?a=a.slice(1):a=a.slice(1,-1)),sv(r,{href:a&&a.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let a=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=r[a.toLowerCase()];if(!s){let l=i[0].charAt(0);return{type:"text",raw:l,text:l}}return sv(i,s,i[0],this.lexer,this.rules)}}emStrong(t,r,i=""){let a=this.rules.inline.emStrongLDelim.exec(t);if(!(!a||a[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(a[1]||a[2])||!i||this.rules.inline.punctuation.exec(i))){let s=[...a[0]].length-1,l,c,d=s,m=0,v=a[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(v.lastIndex=0,r=r.slice(-1*t.length+s);(a=v.exec(r))!=null;){if(l=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!l)continue;if(c=[...l].length,a[3]||a[4]){d+=c;continue}else if((a[5]||a[6])&&s%3&&!((s+c)%3)){m+=c;continue}if(d-=c,d>0)continue;c=Math.min(c,c+d+m);let g=[...a[0]][0].length,p=t.slice(0,s+a.index+g+c);if(Math.min(s,c)%2){let x=p.slice(1,-1);return{type:"em",raw:p,text:x,tokens:this.lexer.inlineTokens(x)}}let w=p.slice(2,-2);return{type:"strong",raw:p,text:w,tokens:this.lexer.inlineTokens(w)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let i=r[2].replace(this.rules.other.newLineCharGlobal," "),a=this.rules.other.nonSpaceChar.test(i),s=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return a&&s&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:r[0],text:i}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let i,a;return r[2]==="@"?(i=r[1],a="mailto:"+i):(i=r[1],a=i),{type:"link",raw:r[0],text:i,href:a,tokens:[{type:"text",raw:i,text:i}]}}}url(t){var i;let r;if(r=this.rules.inline.url.exec(t)){let a,s;if(r[2]==="@")a=r[0],s="mailto:"+a;else{let l;do l=r[0],r[0]=((i=this.rules.inline._backpedal.exec(r[0]))==null?void 0:i[0])??"";while(l!==r[0]);a=r[0],r[1]==="www."?s="http://"+r[0]:s=r[0]}return{type:"link",raw:r[0],text:a,href:s,tokens:[{type:"text",raw:a,text:a}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let i=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:i}}}},dr=class wc{constructor(t){me(this,"tokens");me(this,"options");me(this,"state");me(this,"tokenizer");me(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Kn,this.options.tokenizer=this.options.tokenizer||new xs,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Rt,block:Ja.normal,inline:lo.normal};this.options.pedantic?(r.block=Ja.pedantic,r.inline=lo.pedantic):this.options.gfm&&(r.block=Ja.gfm,this.options.breaks?r.inline=lo.breaks:r.inline=lo.gfm),this.tokenizer.rules=r}static get rules(){return{block:Ja,inline:lo}}static lex(t,r){return new wc(r).lex(t)}static lexInline(t,r){return new wc(r).inlineTokens(t)}lex(t){t=t.replace(Rt.carriageReturn,`
|
|
116
|
+
`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let i=this.inlineQueue[r];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],i=!1){var a,s,l;for(this.options.pedantic&&(t=t.replace(Rt.tabCharGlobal," ").replace(Rt.spaceLine,""));t;){let c;if((s=(a=this.options.extensions)==null?void 0:a.block)!=null&&s.some(m=>(c=m.call({lexer:this},t,r))?(t=t.substring(c.raw.length),r.push(c),!0):!1))continue;if(c=this.tokenizer.space(t)){t=t.substring(c.raw.length);let m=r.at(-1);c.raw.length===1&&m!==void 0?m.raw+=`
|
|
117
|
+
`:r.push(c);continue}if(c=this.tokenizer.code(t)){t=t.substring(c.raw.length);let m=r.at(-1);(m==null?void 0:m.type)==="paragraph"||(m==null?void 0:m.type)==="text"?(m.raw+=(m.raw.endsWith(`
|
|
118
118
|
`)?"":`
|
|
119
|
-
`)+c.raw,
|
|
120
|
-
`+c.text,this.inlineQueue.at(-1).src=
|
|
119
|
+
`)+c.raw,m.text+=`
|
|
120
|
+
`+c.text,this.inlineQueue.at(-1).src=m.text):r.push(c);continue}if(c=this.tokenizer.fences(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.heading(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.hr(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.blockquote(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.list(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.html(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.def(t)){t=t.substring(c.raw.length);let m=r.at(-1);(m==null?void 0:m.type)==="paragraph"||(m==null?void 0:m.type)==="text"?(m.raw+=(m.raw.endsWith(`
|
|
121
121
|
`)?"":`
|
|
122
|
-
`)+c.raw,
|
|
123
|
-
`+c.raw,this.inlineQueue.at(-1).src=
|
|
122
|
+
`)+c.raw,m.text+=`
|
|
123
|
+
`+c.raw,this.inlineQueue.at(-1).src=m.text):this.tokens.links[c.tag]||(this.tokens.links[c.tag]={href:c.href,title:c.title},r.push(c));continue}if(c=this.tokenizer.table(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.lheading(t)){t=t.substring(c.raw.length),r.push(c);continue}let d=t;if((l=this.options.extensions)!=null&&l.startBlock){let m=1/0,v=t.slice(1),g;this.options.extensions.startBlock.forEach(p=>{g=p.call({lexer:this},v),typeof g=="number"&&g>=0&&(m=Math.min(m,g))}),m<1/0&&m>=0&&(d=t.substring(0,m+1))}if(this.state.top&&(c=this.tokenizer.paragraph(d))){let m=r.at(-1);i&&(m==null?void 0:m.type)==="paragraph"?(m.raw+=(m.raw.endsWith(`
|
|
124
124
|
`)?"":`
|
|
125
|
-
`)+c.raw,
|
|
126
|
-
`+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=
|
|
125
|
+
`)+c.raw,m.text+=`
|
|
126
|
+
`+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=m.text):r.push(c),i=d.length!==t.length,t=t.substring(c.raw.length);continue}if(c=this.tokenizer.text(t)){t=t.substring(c.raw.length);let m=r.at(-1);(m==null?void 0:m.type)==="text"?(m.raw+=(m.raw.endsWith(`
|
|
127
127
|
`)?"":`
|
|
128
|
-
`)+c.raw,
|
|
129
|
-
`+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=
|
|
130
|
-
`;return
|
|
131
|
-
`:"<pre><code>"+(
|
|
132
|
-
`}blockquote({tokens:
|
|
133
|
-
${this.parser.parse(
|
|
134
|
-
`}html({text:
|
|
135
|
-
`}hr(
|
|
136
|
-
`}list(
|
|
137
|
-
`+
|
|
138
|
-
`}listitem(
|
|
139
|
-
`}checkbox({checked:
|
|
140
|
-
`}table(
|
|
128
|
+
`)+c.raw,m.text+=`
|
|
129
|
+
`+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=m.text):r.push(c);continue}if(t){let m="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(m);break}else throw new Error(m)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var c,d,m,v,g;let i=t,a=null;if(this.tokens.links){let p=Object.keys(this.tokens.links);if(p.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)p.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,a.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(a=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)i=i.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=((d=(c=this.options.hooks)==null?void 0:c.emStrongMask)==null?void 0:d.call({lexer:this},i))??i;let s=!1,l="";for(;t;){s||(l=""),s=!1;let p;if((v=(m=this.options.extensions)==null?void 0:m.inline)!=null&&v.some(x=>(p=x.call({lexer:this},t,r))?(t=t.substring(p.raw.length),r.push(p),!0):!1))continue;if(p=this.tokenizer.escape(t)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.tag(t)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.link(t)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(p.raw.length);let x=r.at(-1);p.type==="text"&&(x==null?void 0:x.type)==="text"?(x.raw+=p.raw,x.text+=p.text):r.push(p);continue}if(p=this.tokenizer.emStrong(t,i,l)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.codespan(t)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.br(t)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.del(t)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.autolink(t)){t=t.substring(p.raw.length),r.push(p);continue}if(!this.state.inLink&&(p=this.tokenizer.url(t))){t=t.substring(p.raw.length),r.push(p);continue}let w=t;if((g=this.options.extensions)!=null&&g.startInline){let x=1/0,f=t.slice(1),b;this.options.extensions.startInline.forEach(h=>{b=h.call({lexer:this},f),typeof b=="number"&&b>=0&&(x=Math.min(x,b))}),x<1/0&&x>=0&&(w=t.substring(0,x+1))}if(p=this.tokenizer.inlineText(w)){t=t.substring(p.raw.length),p.raw.slice(-1)!=="_"&&(l=p.raw.slice(-1)),s=!0;let x=r.at(-1);(x==null?void 0:x.type)==="text"?(x.raw+=p.raw,x.text+=p.text):r.push(p);continue}if(t){let x="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(x);break}else throw new Error(x)}}return r}},Ss=class{constructor(t){me(this,"options");me(this,"parser");this.options=t||Kn}space(t){return""}code({text:t,lang:r,escaped:i}){var l;let a=(l=(r||"").match(Rt.notSpaceStart))==null?void 0:l[0],s=t.replace(Rt.endingNewline,"")+`
|
|
130
|
+
`;return a?'<pre><code class="language-'+Sr(a)+'">'+(i?s:Sr(s,!0))+`</code></pre>
|
|
131
|
+
`:"<pre><code>"+(i?s:Sr(s,!0))+`</code></pre>
|
|
132
|
+
`}blockquote({tokens:t}){return`<blockquote>
|
|
133
|
+
${this.parser.parse(t)}</blockquote>
|
|
134
|
+
`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
|
|
135
|
+
`}hr(t){return`<hr>
|
|
136
|
+
`}list(t){let r=t.ordered,i=t.start,a="";for(let c=0;c<t.items.length;c++){let d=t.items[c];a+=this.listitem(d)}let s=r?"ol":"ul",l=r&&i!==1?' start="'+i+'"':"";return"<"+s+l+`>
|
|
137
|
+
`+a+"</"+s+`>
|
|
138
|
+
`}listitem(t){var i;let r="";if(t.task){let a=this.checkbox({checked:!!t.checked});t.loose?((i=t.tokens[0])==null?void 0:i.type)==="paragraph"?(t.tokens[0].text=a+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=a+" "+Sr(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:a+" ",text:a+" ",escaped:!0}):r+=a+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`<li>${r}</li>
|
|
139
|
+
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|
140
|
+
`}table(t){let r="",i="";for(let s=0;s<t.header.length;s++)i+=this.tablecell(t.header[s]);r+=this.tablerow({text:i});let a="";for(let s=0;s<t.rows.length;s++){let l=t.rows[s];i="";for(let c=0;c<l.length;c++)i+=this.tablecell(l[c]);a+=this.tablerow({text:i})}return a&&(a=`<tbody>${a}</tbody>`),`<table>
|
|
141
141
|
<thead>
|
|
142
|
-
`+
|
|
143
|
-
`+
|
|
144
|
-
`}tablerow({text:
|
|
145
|
-
${
|
|
146
|
-
`}tablecell(
|
|
147
|
-
`}strong({tokens:
|
|
148
|
-
`+this.renderer.text(
|
|
149
|
-
Please report this to https://github.com/markedjs/marked.`,
|
|
142
|
+
`+r+`</thead>
|
|
143
|
+
`+a+`</table>
|
|
144
|
+
`}tablerow({text:t}){return`<tr>
|
|
145
|
+
${t}</tr>
|
|
146
|
+
`}tablecell(t){let r=this.parser.parseInline(t.tokens),i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+r+`</${i}>
|
|
147
|
+
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${Sr(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:i}){let a=this.parser.parseInline(i),s=ov(t);if(s===null)return a;t=s;let l='<a href="'+t+'"';return r&&(l+=' title="'+Sr(r)+'"'),l+=">"+a+"</a>",l}image({href:t,title:r,text:i,tokens:a}){a&&(i=this.parser.parseInline(a,this.parser.textRenderer));let s=ov(t);if(s===null)return Sr(i);t=s;let l=`<img src="${t}" alt="${i}"`;return r&&(l+=` title="${Sr(r)}"`),l+=">",l}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Sr(t.text)}},ff=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},pr=class bc{constructor(t){me(this,"options");me(this,"renderer");me(this,"textRenderer");this.options=t||Kn,this.options.renderer=this.options.renderer||new Ss,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ff}static parse(t,r){return new bc(r).parse(t)}static parseInline(t,r){return new bc(r).parseInline(t)}parse(t,r=!0){var a,s;let i="";for(let l=0;l<t.length;l++){let c=t[l];if((s=(a=this.options.extensions)==null?void 0:a.renderers)!=null&&s[c.type]){let m=c,v=this.options.extensions.renderers[m.type].call({parser:this},m);if(v!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(m.type)){i+=v||"";continue}}let d=c;switch(d.type){case"space":{i+=this.renderer.space(d);continue}case"hr":{i+=this.renderer.hr(d);continue}case"heading":{i+=this.renderer.heading(d);continue}case"code":{i+=this.renderer.code(d);continue}case"table":{i+=this.renderer.table(d);continue}case"blockquote":{i+=this.renderer.blockquote(d);continue}case"list":{i+=this.renderer.list(d);continue}case"html":{i+=this.renderer.html(d);continue}case"def":{i+=this.renderer.def(d);continue}case"paragraph":{i+=this.renderer.paragraph(d);continue}case"text":{let m=d,v=this.renderer.text(m);for(;l+1<t.length&&t[l+1].type==="text";)m=t[++l],v+=`
|
|
148
|
+
`+this.renderer.text(m);r?i+=this.renderer.paragraph({type:"paragraph",raw:v,text:v,tokens:[{type:"text",raw:v,text:v,escaped:!0}]}):i+=v;continue}default:{let m='Token with "'+d.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return i}parseInline(t,r=this.renderer){var a,s;let i="";for(let l=0;l<t.length;l++){let c=t[l];if((s=(a=this.options.extensions)==null?void 0:a.renderers)!=null&&s[c.type]){let m=this.options.extensions.renderers[c.type].call({parser:this},c);if(m!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(c.type)){i+=m||"";continue}}let d=c;switch(d.type){case"escape":{i+=r.text(d);break}case"html":{i+=r.html(d);break}case"link":{i+=r.link(d);break}case"image":{i+=r.image(d);break}case"strong":{i+=r.strong(d);break}case"em":{i+=r.em(d);break}case"codespan":{i+=r.codespan(d);break}case"br":{i+=r.br(d);break}case"del":{i+=r.del(d);break}case"text":{i+=r.text(d);break}default:{let m='Token with "'+d.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return i}},ns,ho=(ns=class{constructor(t){me(this,"options");me(this,"block");this.options=t||Kn}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?dr.lex:dr.lexInline}provideParser(){return this.block?pr.parse:pr.parseInline}},me(ns,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),me(ns,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),ns),Ey=class{constructor(...t){me(this,"defaults",rf());me(this,"options",this.setOptions);me(this,"parse",this.parseMarkdown(!0));me(this,"parseInline",this.parseMarkdown(!1));me(this,"Parser",pr);me(this,"Renderer",Ss);me(this,"TextRenderer",ff);me(this,"Lexer",dr);me(this,"Tokenizer",xs);me(this,"Hooks",ho);this.use(...t)}walkTokens(t,r){var a,s;let i=[];for(let l of t)switch(i=i.concat(r.call(this,l)),l.type){case"table":{let c=l;for(let d of c.header)i=i.concat(this.walkTokens(d.tokens,r));for(let d of c.rows)for(let m of d)i=i.concat(this.walkTokens(m.tokens,r));break}case"list":{let c=l;i=i.concat(this.walkTokens(c.items,r));break}default:{let c=l;(s=(a=this.defaults.extensions)==null?void 0:a.childTokens)!=null&&s[c.type]?this.defaults.extensions.childTokens[c.type].forEach(d=>{let m=c[d].flat(1/0);i=i.concat(this.walkTokens(m,r))}):c.tokens&&(i=i.concat(this.walkTokens(c.tokens,r)))}}return i}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let a={...i};if(a.async=this.defaults.async||a.async||!1,i.extensions&&(i.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){let l=r.renderers[s.name];l?r.renderers[s.name]=function(...c){let d=s.renderer.apply(this,c);return d===!1&&(d=l.apply(this,c)),d}:r.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let l=r[s.level];l?l.unshift(s.tokenizer):r[s.level]=[s.tokenizer],s.start&&(s.level==="block"?r.startBlock?r.startBlock.push(s.start):r.startBlock=[s.start]:s.level==="inline"&&(r.startInline?r.startInline.push(s.start):r.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(r.childTokens[s.name]=s.childTokens)}),a.extensions=r),i.renderer){let s=this.defaults.renderer||new Ss(this.defaults);for(let l in i.renderer){if(!(l in s))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let c=l,d=i.renderer[c],m=s[c];s[c]=(...v)=>{let g=d.apply(s,v);return g===!1&&(g=m.apply(s,v)),g||""}}a.renderer=s}if(i.tokenizer){let s=this.defaults.tokenizer||new xs(this.defaults);for(let l in i.tokenizer){if(!(l in s))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let c=l,d=i.tokenizer[c],m=s[c];s[c]=(...v)=>{let g=d.apply(s,v);return g===!1&&(g=m.apply(s,v)),g}}a.tokenizer=s}if(i.hooks){let s=this.defaults.hooks||new ho;for(let l in i.hooks){if(!(l in s))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;let c=l,d=i.hooks[c],m=s[c];ho.passThroughHooks.has(l)?s[c]=v=>{if(this.defaults.async&&ho.passThroughHooksRespectAsync.has(l))return(async()=>{let p=await d.call(s,v);return m.call(s,p)})();let g=d.call(s,v);return m.call(s,g)}:s[c]=(...v)=>{if(this.defaults.async)return(async()=>{let p=await d.apply(s,v);return p===!1&&(p=await m.apply(s,v)),p})();let g=d.apply(s,v);return g===!1&&(g=m.apply(s,v)),g}}a.hooks=s}if(i.walkTokens){let s=this.defaults.walkTokens,l=i.walkTokens;a.walkTokens=function(c){let d=[];return d.push(l.call(this,c)),s&&(d=d.concat(s.call(this,c))),d}}this.defaults={...this.defaults,...a}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return dr.lex(t,r??this.defaults)}parser(t,r){return pr.parse(t,r??this.defaults)}parseMarkdown(t){return(r,i)=>{let a={...i},s={...this.defaults,...a},l=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&a.async===!1)return l(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(s.hooks&&(s.hooks.options=s,s.hooks.block=t),s.async)return(async()=>{let c=s.hooks?await s.hooks.preprocess(r):r,d=await(s.hooks?await s.hooks.provideLexer():t?dr.lex:dr.lexInline)(c,s),m=s.hooks?await s.hooks.processAllTokens(d):d;s.walkTokens&&await Promise.all(this.walkTokens(m,s.walkTokens));let v=await(s.hooks?await s.hooks.provideParser():t?pr.parse:pr.parseInline)(m,s);return s.hooks?await s.hooks.postprocess(v):v})().catch(l);try{s.hooks&&(r=s.hooks.preprocess(r));let c=(s.hooks?s.hooks.provideLexer():t?dr.lex:dr.lexInline)(r,s);s.hooks&&(c=s.hooks.processAllTokens(c)),s.walkTokens&&this.walkTokens(c,s.walkTokens);let d=(s.hooks?s.hooks.provideParser():t?pr.parse:pr.parseInline)(c,s);return s.hooks&&(d=s.hooks.postprocess(d)),d}catch(c){return l(c)}}}onError(t,r){return i=>{if(i.message+=`
|
|
149
|
+
Please report this to https://github.com/markedjs/marked.`,t){let a="<p>An error occurred:</p><pre>"+Sr(i.message+"",!0)+"</pre>";return r?Promise.resolve(a):a}if(r)return Promise.reject(i);throw i}}},Un=new Ey;function De(e,t){return Un.parse(e,t)}De.options=De.setOptions=function(e){return Un.setOptions(e),De.defaults=Un.defaults,dy(De.defaults),De};De.getDefaults=rf;De.defaults=Kn;De.use=function(...e){return Un.use(...e),De.defaults=Un.defaults,dy(De.defaults),De};De.walkTokens=function(e,t){return Un.walkTokens(e,t)};De.parseInline=Un.parseInline;De.Parser=pr;De.parser=pr.parse;De.Renderer=Ss;De.TextRenderer=ff;De.Lexer=dr;De.lexer=dr.lex;De.Tokenizer=xs;De.Hooks=ho;De.parse=De;De.options;De.setOptions;De.use;De.walkTokens;De.parseInline;pr.parse;dr.lex;const Ck={"&":"&","<":"<",">":">",""":'"',"'":"'"},_y=/&(?:amp|lt|gt|quot|#(?:0+)?39);/g,kk=RegExp(_y.source),uv=(e="")=>kk.test(e)?e.replace(_y,t=>Ck[t]||"'"):e,lv=(e,t)=>{if(!t)return e;try{return new URL(e,t).href}catch{return e}};var $k=class{constructor(e){me(this,"renderer");this.renderer=e.renderer}parse(e){this.renderer.elIdList.push(0);const t=e.map(r=>{switch(r.type){case"space":return null;case"heading":{const i=r.depth;return this.renderer.heading(this.parseInline(r.tokens),i)}case"paragraph":return this.renderer.paragraph(this.parseInline(r.tokens));case"text":{const i=r;return i.tokens?this.parseInline(i.tokens):r.text}case"blockquote":{const i=r,a=this.parse(i.tokens);return this.renderer.blockquote(a)}case"list":{const i=r;this.renderer.elIdList.push(0);const a=i.items.map(s=>{const l=[];return s.task&&l.push(this.renderer.checkbox(s.checked??!1)),l.push(this.parse(s.tokens)),this.renderer.listItem(l)});return this.renderer.elIdList.pop(),this.renderer.list(a,r.ordered,r.ordered?r.start:void 0)}case"code":return this.renderer.code(r.text,r.lang);case"html":return this.renderer.html(r.text);case"table":{const i=r;this.renderer.elIdList.push(0);const a=i.header.map((m,v)=>this.renderer.tableCell(this.parseInline(m.tokens),{header:!0,align:r.align[v]}));this.renderer.elIdList.pop();const s=this.renderer.tableRow(a),l=this.renderer.tableHeader(s);this.renderer.elIdList.push(0);const c=i.rows.map(m=>{this.renderer.elIdList.push(0);const v=m.map((g,p)=>this.renderer.tableCell(this.parseInline(g.tokens),{header:!1,align:r.align[p]}));return this.renderer.elIdList.pop(),this.renderer.tableRow(v)});this.renderer.elIdList.pop();const d=this.renderer.tableBody(c);return this.renderer.table([l,d])}case"hr":return this.renderer.hr();default:return console.warn(`Token with "${r.type}" type was not found`),null}});return this.renderer.elIdList.pop(),t}parseInline(e=[]){this.renderer.elIdList.push(0);const t=e.map(r=>{switch(r.type){case"text":return this.renderer.text(uv(r.text));case"strong":return this.renderer.strong(this.parseInline(r.tokens));case"em":return this.renderer.em(this.parseInline(r.tokens));case"del":return this.renderer.del(this.parseInline(r.tokens));case"codespan":return this.renderer.codespan(uv(r.text));case"link":return this.renderer.link(r.href,this.parseInline(r.tokens));case"image":return this.renderer.image(r.href,r.text,r.title);case"html":return this.renderer.html(r.text);case"br":return this.renderer.br();case"escape":return this.renderer.text(r.text);default:return console.warn(`Token with "${r.type}" type was not found`),null}});return this.renderer.elIdList.pop(),t}},Ik=$k,cn,ze,Qe,xc,jv,Lk=(jv=class{constructor(e={}){xt(this,ze);me(this,"elIdList",[]);xt(this,cn);const{renderer:t}=e;Xe(this,cn,e),t&&typeof t=="object"&&Object.entries(t).forEach(([r,i])=>{const a=r,s=i;!this[a]||a==="elementId"||a==="elIdList"||typeof s!="function"||Object.defineProperty(this,a,{value(...l){return $e(this,ze,xc).call(this),s.apply(this,l)},writable:!0,enumerable:!0,configurable:!0})})}get elementId(){return this.elIdList.join("-")}heading(e,t){return $e(this,ze,Qe).call(this,`h${t}`,e)}paragraph(e){return $e(this,ze,Qe).call(this,"p",e)}link(e,t){const r=lv(e,re(this,cn).baseURL),i=re(this,cn).openLinksInNewTab?"_blank":null;return $e(this,ze,Qe).call(this,"a",t,{href:r,target:i})}image(e,t,r=null){const i=lv(e,re(this,cn).baseURL);return $e(this,ze,Qe).call(this,"img",null,{src:i,alt:t,title:r})}codespan(e,t=null){const r=t?`${re(this,cn).langPrefix}${t}`:null;return $e(this,ze,Qe).call(this,"code",e,{className:r})}code(e,t){return $e(this,ze,Qe).call(this,"pre",this.codespan(e,t))}blockquote(e){return $e(this,ze,Qe).call(this,"blockquote",e)}list(e,t,r){return $e(this,ze,Qe).call(this,t?"ol":"ul",e,t&&r!==1?{start:r}:{})}listItem(e){return $e(this,ze,Qe).call(this,"li",e)}checkbox(e){return $e(this,ze,Qe).call(this,"input",null,{type:"checkbox",disabled:!0,checked:e})}table(e){return $e(this,ze,Qe).call(this,"table",e)}tableHeader(e){return $e(this,ze,Qe).call(this,"thead",e)}tableBody(e){return $e(this,ze,Qe).call(this,"tbody",e)}tableRow(e){return $e(this,ze,Qe).call(this,"tr",e)}tableCell(e,t){const r=t.header?"th":"td";return $e(this,ze,Qe).call(this,r,e,{align:t.align})}strong(e){return $e(this,ze,Qe).call(this,"strong",e)}em(e){return $e(this,ze,Qe).call(this,"em",e)}del(e){return $e(this,ze,Qe).call(this,"del",e)}text(e){return e}html(e){return e}hr(){return $e(this,ze,Qe).call(this,"hr")}br(){return $e(this,ze,Qe).call(this,"br")}},cn=new WeakMap,ze=new WeakSet,Qe=function(e,t=null,r={}){const i={key:`marked-react-${this.elementId}`,suppressHydrationWarning:!0};return $e(this,ze,xc).call(this),W.createElement(e,{...r,...i},t)},xc=function(){this.elIdList[this.elIdList.length-1]+=1},jv),Mk=Lk;const Fk=e=>{if(e.value&&typeof e.value!="string")throw new TypeError(`[marked-react]: Expected value to be of type string but got ${typeof e.value}`);if(e.children&&typeof e.children!="string")throw new TypeError(`[marked-react]: Expected children to be of type string but got ${typeof e.children}`)},Dk={isInline:!1,breaks:!1,gfm:!0,baseURL:void 0,openLinksInNewTab:!0,langPrefix:"language-",renderer:void 0},Nk=new Ey,jk=e=>{Fk(e);const t={...Dk,...e},r=t.instance??Nk,i={breaks:t.breaks,gfm:t.gfm,tokenizer:r.defaults.tokenizer},a=t.value??t.children??"",s=t.isInline?r.Lexer.lexInline(a,i):r.lexer(a,i),l={renderer:new Mk({renderer:t.renderer,baseURL:t.baseURL,openLinksInNewTab:t.openLinksInNewTab,langPrefix:t.langPrefix})},c=new Ik(l),d=t.isInline?c.parseInline(s):c.parse(s);return W.createElement(W.Fragment,null,d)};var zk=jk,Wk=zk;const Bk=({children:e,label:t,placement:r="top",className:i,isDisabled:a})=>{const[s,l]=W.useState(null),c=W.useRef(null),[d,m]=W.useState(null),[v,g]=W.useState(!1),{styles:p,attributes:w}=Jv(s,d,{placement:r,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{rootBoundary:"viewport",padding:8}}]}),x=W.Children.map(e,f=>W.isValidElement(f)?W.cloneElement(f,{ref:l,onMouseEnter:()=>g(!0),onMouseLeave:()=>{c.current=setTimeout(()=>g(!1),50)}}):f);return a?j.jsx(j.Fragment,{children:x}):j.jsxs(j.Fragment,{children:[x,v&&t&&Fo.createPortal(j.jsx("div",{ref:m,style:p.popper,...w.popper,className:rt("z-10 select-none rounded bg-purple-200 font-poppins font-medium text-s px-2 py-0.5 text-purple-900 shadow-md",i),onMouseEnter:()=>{c.current&&clearTimeout(c.current),g(!0)},onMouseLeave:()=>g(!1),children:j.jsx(Wk,{openLinksInNewTab:!0,children:t})}),document.querySelector("body"))]})},Uk=ac.keyframes`
|
|
150
150
|
to {
|
|
151
151
|
fill: url(#d);
|
|
152
152
|
stroke-dashoffset: 0;
|
|
153
153
|
}
|
|
154
|
-
`,
|
|
154
|
+
`,Oy=vs.svg`
|
|
155
155
|
& .e {
|
|
156
156
|
fill: url(#d);
|
|
157
157
|
}
|
|
@@ -162,7 +162,7 @@ Please report this to https://github.com/markedjs/marked.`,e){let o="<p>An error
|
|
|
162
162
|
fill: transparent;
|
|
163
163
|
stroke-dasharray: 700;
|
|
164
164
|
stroke-dashoffset: 700;
|
|
165
|
-
animation: ${
|
|
165
|
+
animation: ${Uk} 1.5s ease-in-out infinite alternate-reverse;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
& #circle {
|
|
@@ -172,37 +172,37 @@ Please report this to https://github.com/markedjs/marked.`,e){let o="<p>An error
|
|
|
172
172
|
stroke-dasharray: 700;
|
|
173
173
|
stroke-dashoffset: 700;
|
|
174
174
|
}
|
|
175
|
-
`,
|
|
175
|
+
`,Hk=({message:e,version:t})=>j.jsx("div",{className:"absolute inset-0 flex h-screen w-screen flex-col items-center justify-center bg-fd-gray-default text-white",children:j.jsxs("div",{className:"flex flex-col text-center",children:[j.jsx("div",{className:"relative mr-4 self-center",children:j.jsx("div",{className:"flex items-center justify-center rounded",children:j.jsxs(Oy,{className:"h-60 w-60",viewBox:"0 0 143.14 136.27",children:[j.jsx("defs",{children:j.jsxs("linearGradient",{id:"d",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[j.jsx("stop",{offset:"0%",stopColor:"#2743a6",children:j.jsx("animate",{attributeName:"stop-color",values:"#ffa4c0; #2743a6;",dur:"6s",repeatCount:"indefinite"})}),j.jsx("stop",{offset:"100%",stopColor:"#ffa4c0",children:j.jsx("animate",{attributeName:"stop-color",values:"#2743a6; #ffa4c0;",dur:"2ds",repeatCount:"indefinite"})})]})}),j.jsx("g",{id:"a"}),j.jsx("g",{id:"b",children:j.jsx("g",{id:"c",children:j.jsxs("g",{children:[j.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"}),j.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"})]})})})]})})}),j.jsxs("div",{children:[j.jsx("span",{className:"text-xs text-grey-200",children:t}),j.jsx("h2",{className:"text-lg text-grey-100",children:e})]})]})});var go={exports:{}};/**
|
|
176
176
|
* @license
|
|
177
177
|
* Lodash <https://lodash.com/>
|
|
178
178
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
179
179
|
* Released under MIT license <https://lodash.com/license>
|
|
180
180
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
181
181
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
182
|
-
*/var YC=io.exports,_g;function XC(){return _g||(_g=1,(function(e,t){(function(){var r,o="4.17.21",s=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",y=500,v="__lodash_placeholder__",g=1,d=2,w=4,x=1,f=2,b=1,p=2,S=4,E=8,R=16,O=32,k=64,B=128,L=256,M=512,G=30,N="...",I=800,U=16,q=1,C=2,J=3,Y=1/0,te=9007199254740991,de=17976931348623157e292,Z=NaN,Q=4294967295,se=Q-1,ue=Q>>>1,ne=[["ary",B],["bind",b],["bindKey",p],["curry",E],["curryRight",R],["flip",M],["partial",O],["partialRight",k],["rearg",L]],ce="[object Arguments]",fe="[object Array]",ye="[object AsyncFunction]",ve="[object Boolean]",Ee="[object Date]",Oe="[object DOMException]",qe="[object Error]",ie="[object Function]",vt="[object GeneratorFunction]",at="[object Map]",dr="[object Number]",$o="[object Null]",Ut="[object Object]",Io="[object Promise]",Ta="[object Proxy]",Lt="[object RegExp]",mt="[object Set]",Ur="[object String]",pn="[object Symbol]",vi="[object Undefined]",Hr="[object WeakMap]",Lo="[object WeakSet]",qr="[object ArrayBuffer]",Tr="[object DataView]",Ra="[object Float32Array]",Pa="[object Float64Array]",Ca="[object Int8Array]",ka="[object Int16Array]",$a="[object Int32Array]",Ia="[object Uint8Array]",La="[object Uint8ClampedArray]",Ma="[object Uint16Array]",Fa="[object Uint32Array]",R0=/\b__p \+= '';/g,P0=/\b(__p \+=) '' \+/g,C0=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Hc=/&(?:amp|lt|gt|quot|#39);/g,qc=/[&<>"']/g,k0=RegExp(Hc.source),$0=RegExp(qc.source),I0=/<%-([\s\S]+?)%>/g,L0=/<%([\s\S]+?)%>/g,Zc=/<%=([\s\S]+?)%>/g,M0=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,F0=/^\w*$/,D0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Da=/[\\^$.*+?()[\]{}|]/g,N0=RegExp(Da.source),Na=/^\s+/,j0=/\s/,z0=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,W0=/\{\n\/\* \[wrapped with (.+)\] \*/,B0=/,? & /,U0=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,H0=/[()=,{}\[\]\/\s]/,q0=/\\(\\)?/g,Z0=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Gc=/\w*$/,G0=/^[-+]0x[0-9a-f]+$/i,K0=/^0b[01]+$/i,V0=/^\[object .+?Constructor\]$/,Y0=/^0o[0-7]+$/i,X0=/^(?:0|[1-9]\d*)$/,J0=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Mo=/($^)/,Q0=/['\n\r\u2028\u2029\\]/g,Fo="\\ud800-\\udfff",ey="\\u0300-\\u036f",ty="\\ufe20-\\ufe2f",ry="\\u20d0-\\u20ff",Kc=ey+ty+ry,Vc="\\u2700-\\u27bf",Yc="a-z\\xdf-\\xf6\\xf8-\\xff",ny="\\xac\\xb1\\xd7\\xf7",iy="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",oy="\\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",Xc="A-Z\\xc0-\\xd6\\xd8-\\xde",Jc="\\ufe0e\\ufe0f",Qc=ny+iy+oy+sy,ja="['’]",ay="["+Fo+"]",ef="["+Qc+"]",Do="["+Kc+"]",tf="\\d+",uy="["+Vc+"]",rf="["+Yc+"]",nf="[^"+Fo+Qc+tf+Vc+Yc+Xc+"]",za="\\ud83c[\\udffb-\\udfff]",ly="(?:"+Do+"|"+za+")",of="[^"+Fo+"]",Wa="(?:\\ud83c[\\udde6-\\uddff]){2}",Ba="[\\ud800-\\udbff][\\udc00-\\udfff]",Wn="["+Xc+"]",sf="\\u200d",af="(?:"+rf+"|"+nf+")",cy="(?:"+Wn+"|"+nf+")",uf="(?:"+ja+"(?:d|ll|m|re|s|t|ve))?",lf="(?:"+ja+"(?:D|LL|M|RE|S|T|VE))?",cf=ly+"?",ff="["+Jc+"]?",fy="(?:"+sf+"(?:"+[of,Wa,Ba].join("|")+")"+ff+cf+")*",dy="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",py="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",df=ff+cf+fy,hy="(?:"+[uy,Wa,Ba].join("|")+")"+df,gy="(?:"+[of+Do+"?",Do,Wa,Ba,ay].join("|")+")",vy=RegExp(ja,"g"),my=RegExp(Do,"g"),Ua=RegExp(za+"(?="+za+")|"+gy+df,"g"),yy=RegExp([Wn+"?"+rf+"+"+uf+"(?="+[ef,Wn,"$"].join("|")+")",cy+"+"+lf+"(?="+[ef,Wn+af,"$"].join("|")+")",Wn+"?"+af+"+"+uf,Wn+"+"+lf,py,dy,tf,hy].join("|"),"g"),wy=RegExp("["+sf+Fo+Kc+Jc+"]"),by=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,xy=["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"],Sy=-1,We={};We[Ra]=We[Pa]=We[Ca]=We[ka]=We[$a]=We[Ia]=We[La]=We[Ma]=We[Fa]=!0,We[ce]=We[fe]=We[qr]=We[ve]=We[Tr]=We[Ee]=We[qe]=We[ie]=We[at]=We[dr]=We[Ut]=We[Lt]=We[mt]=We[Ur]=We[Hr]=!1;var je={};je[ce]=je[fe]=je[qr]=je[Tr]=je[ve]=je[Ee]=je[Ra]=je[Pa]=je[Ca]=je[ka]=je[$a]=je[at]=je[dr]=je[Ut]=je[Lt]=je[mt]=je[Ur]=je[pn]=je[Ia]=je[La]=je[Ma]=je[Fa]=!0,je[qe]=je[ie]=je[Hr]=!1;var Ey={À:"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"},_y={"&":"&","<":"<",">":">",'"':""","'":"'"},Ay={"&":"&","<":"<",">":">",""":'"',"'":"'"},Oy={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ty=parseFloat,Ry=parseInt,pf=typeof _s=="object"&&_s&&_s.Object===Object&&_s,Py=typeof self=="object"&&self&&self.Object===Object&&self,dt=pf||Py||Function("return this")(),Ha=t&&!t.nodeType&&t,hn=Ha&&!0&&e&&!e.nodeType&&e,hf=hn&&hn.exports===Ha,qa=hf&&pf.process,Ht=(function(){try{var F=hn&&hn.require&&hn.require("util").types;return F||qa&&qa.binding&&qa.binding("util")}catch{}})(),gf=Ht&&Ht.isArrayBuffer,vf=Ht&&Ht.isDate,mf=Ht&&Ht.isMap,yf=Ht&&Ht.isRegExp,wf=Ht&&Ht.isSet,bf=Ht&&Ht.isTypedArray;function Mt(F,K,H){switch(H.length){case 0:return F.call(K);case 1:return F.call(K,H[0]);case 2:return F.call(K,H[0],H[1]);case 3:return F.call(K,H[0],H[1],H[2])}return F.apply(K,H)}function Cy(F,K,H,ae){for(var we=-1,Pe=F==null?0:F.length;++we<Pe;){var nt=F[we];K(ae,nt,H(nt),F)}return ae}function qt(F,K){for(var H=-1,ae=F==null?0:F.length;++H<ae&&K(F[H],H,F)!==!1;);return F}function ky(F,K){for(var H=F==null?0:F.length;H--&&K(F[H],H,F)!==!1;);return F}function xf(F,K){for(var H=-1,ae=F==null?0:F.length;++H<ae;)if(!K(F[H],H,F))return!1;return!0}function Zr(F,K){for(var H=-1,ae=F==null?0:F.length,we=0,Pe=[];++H<ae;){var nt=F[H];K(nt,H,F)&&(Pe[we++]=nt)}return Pe}function No(F,K){var H=F==null?0:F.length;return!!H&&Bn(F,K,0)>-1}function Za(F,K,H){for(var ae=-1,we=F==null?0:F.length;++ae<we;)if(H(K,F[ae]))return!0;return!1}function Be(F,K){for(var H=-1,ae=F==null?0:F.length,we=Array(ae);++H<ae;)we[H]=K(F[H],H,F);return we}function Gr(F,K){for(var H=-1,ae=K.length,we=F.length;++H<ae;)F[we+H]=K[H];return F}function Ga(F,K,H,ae){var we=-1,Pe=F==null?0:F.length;for(ae&&Pe&&(H=F[++we]);++we<Pe;)H=K(H,F[we],we,F);return H}function $y(F,K,H,ae){var we=F==null?0:F.length;for(ae&&we&&(H=F[--we]);we--;)H=K(H,F[we],we,F);return H}function Ka(F,K){for(var H=-1,ae=F==null?0:F.length;++H<ae;)if(K(F[H],H,F))return!0;return!1}var Iy=Va("length");function Ly(F){return F.split("")}function My(F){return F.match(U0)||[]}function Sf(F,K,H){var ae;return H(F,function(we,Pe,nt){if(K(we,Pe,nt))return ae=Pe,!1}),ae}function jo(F,K,H,ae){for(var we=F.length,Pe=H+(ae?1:-1);ae?Pe--:++Pe<we;)if(K(F[Pe],Pe,F))return Pe;return-1}function Bn(F,K,H){return K===K?Gy(F,K,H):jo(F,Ef,H)}function Fy(F,K,H,ae){for(var we=H-1,Pe=F.length;++we<Pe;)if(ae(F[we],K))return we;return-1}function Ef(F){return F!==F}function _f(F,K){var H=F==null?0:F.length;return H?Xa(F,K)/H:Z}function Va(F){return function(K){return K==null?r:K[F]}}function Ya(F){return function(K){return F==null?r:F[K]}}function Af(F,K,H,ae,we){return we(F,function(Pe,nt,Ne){H=ae?(ae=!1,Pe):K(H,Pe,nt,Ne)}),H}function Dy(F,K){var H=F.length;for(F.sort(K);H--;)F[H]=F[H].value;return F}function Xa(F,K){for(var H,ae=-1,we=F.length;++ae<we;){var Pe=K(F[ae]);Pe!==r&&(H=H===r?Pe:H+Pe)}return H}function Ja(F,K){for(var H=-1,ae=Array(F);++H<F;)ae[H]=K(H);return ae}function Ny(F,K){return Be(K,function(H){return[H,F[H]]})}function Of(F){return F&&F.slice(0,Cf(F)+1).replace(Na,"")}function Ft(F){return function(K){return F(K)}}function Qa(F,K){return Be(K,function(H){return F[H]})}function mi(F,K){return F.has(K)}function Tf(F,K){for(var H=-1,ae=F.length;++H<ae&&Bn(K,F[H],0)>-1;);return H}function Rf(F,K){for(var H=F.length;H--&&Bn(K,F[H],0)>-1;);return H}function jy(F,K){for(var H=F.length,ae=0;H--;)F[H]===K&&++ae;return ae}var zy=Ya(Ey),Wy=Ya(_y);function By(F){return"\\"+Oy[F]}function Uy(F,K){return F==null?r:F[K]}function Un(F){return wy.test(F)}function Hy(F){return by.test(F)}function qy(F){for(var K,H=[];!(K=F.next()).done;)H.push(K.value);return H}function eu(F){var K=-1,H=Array(F.size);return F.forEach(function(ae,we){H[++K]=[we,ae]}),H}function Pf(F,K){return function(H){return F(K(H))}}function Kr(F,K){for(var H=-1,ae=F.length,we=0,Pe=[];++H<ae;){var nt=F[H];(nt===K||nt===v)&&(F[H]=v,Pe[we++]=H)}return Pe}function zo(F){var K=-1,H=Array(F.size);return F.forEach(function(ae){H[++K]=ae}),H}function Zy(F){var K=-1,H=Array(F.size);return F.forEach(function(ae){H[++K]=[ae,ae]}),H}function Gy(F,K,H){for(var ae=H-1,we=F.length;++ae<we;)if(F[ae]===K)return ae;return-1}function Ky(F,K,H){for(var ae=H+1;ae--;)if(F[ae]===K)return ae;return ae}function Hn(F){return Un(F)?Yy(F):Iy(F)}function nr(F){return Un(F)?Xy(F):Ly(F)}function Cf(F){for(var K=F.length;K--&&j0.test(F.charAt(K)););return K}var Vy=Ya(Ay);function Yy(F){for(var K=Ua.lastIndex=0;Ua.test(F);)++K;return K}function Xy(F){return F.match(Ua)||[]}function Jy(F){return F.match(yy)||[]}var Qy=(function F(K){K=K==null?dt:qn.defaults(dt.Object(),K,qn.pick(dt,xy));var H=K.Array,ae=K.Date,we=K.Error,Pe=K.Function,nt=K.Math,Ne=K.Object,tu=K.RegExp,ew=K.String,Zt=K.TypeError,Wo=H.prototype,tw=Pe.prototype,Zn=Ne.prototype,Bo=K["__core-js_shared__"],Uo=tw.toString,Fe=Zn.hasOwnProperty,rw=0,kf=(function(){var n=/[^.]+$/.exec(Bo&&Bo.keys&&Bo.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})(),Ho=Zn.toString,nw=Uo.call(Ne),iw=dt._,ow=tu("^"+Uo.call(Fe).replace(Da,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qo=hf?K.Buffer:r,Vr=K.Symbol,Zo=K.Uint8Array,$f=qo?qo.allocUnsafe:r,Go=Pf(Ne.getPrototypeOf,Ne),If=Ne.create,Lf=Zn.propertyIsEnumerable,Ko=Wo.splice,Mf=Vr?Vr.isConcatSpreadable:r,yi=Vr?Vr.iterator:r,gn=Vr?Vr.toStringTag:r,Vo=(function(){try{var n=bn(Ne,"defineProperty");return n({},"",{}),n}catch{}})(),sw=K.clearTimeout!==dt.clearTimeout&&K.clearTimeout,aw=ae&&ae.now!==dt.Date.now&&ae.now,uw=K.setTimeout!==dt.setTimeout&&K.setTimeout,Yo=nt.ceil,Xo=nt.floor,ru=Ne.getOwnPropertySymbols,lw=qo?qo.isBuffer:r,Ff=K.isFinite,cw=Wo.join,fw=Pf(Ne.keys,Ne),it=nt.max,yt=nt.min,dw=ae.now,pw=K.parseInt,Df=nt.random,hw=Wo.reverse,nu=bn(K,"DataView"),wi=bn(K,"Map"),iu=bn(K,"Promise"),Gn=bn(K,"Set"),bi=bn(K,"WeakMap"),xi=bn(Ne,"create"),Jo=bi&&new bi,Kn={},gw=xn(nu),vw=xn(wi),mw=xn(iu),yw=xn(Gn),ww=xn(bi),Qo=Vr?Vr.prototype:r,Si=Qo?Qo.valueOf:r,Nf=Qo?Qo.toString:r;function A(n){if(Ke(n)&&!be(n)&&!(n instanceof Te)){if(n instanceof Gt)return n;if(Fe.call(n,"__wrapped__"))return jd(n)}return new Gt(n)}var Vn=(function(){function n(){}return function(i){if(!Ze(i))return{};if(If)return If(i);n.prototype=i;var u=new n;return n.prototype=r,u}})();function es(){}function Gt(n,i){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=r}A.templateSettings={escape:I0,evaluate:L0,interpolate:Zc,variable:"",imports:{_:A}},A.prototype=es.prototype,A.prototype.constructor=A,Gt.prototype=Vn(es.prototype),Gt.prototype.constructor=Gt;function Te(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Q,this.__views__=[]}function bw(){var n=new Te(this.__wrapped__);return n.__actions__=Rt(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Rt(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Rt(this.__views__),n}function xw(){if(this.__filtered__){var n=new Te(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function Sw(){var n=this.__wrapped__.value(),i=this.__dir__,u=be(n),m=i<0,_=u?n.length:0,T=L1(0,_,this.__views__),P=T.start,$=T.end,j=$-P,V=m?$:P-1,X=this.__iteratees__,ee=X.length,oe=0,le=yt(j,this.__takeCount__);if(!u||!m&&_==j&&le==j)return ud(n,this.__actions__);var he=[];e:for(;j--&&oe<le;){V+=i;for(var Se=-1,ge=n[V];++Se<ee;){var Ae=X[Se],Re=Ae.iteratee,jt=Ae.type,At=Re(ge);if(jt==C)ge=At;else if(!At){if(jt==q)continue e;break e}}he[oe++]=ge}return he}Te.prototype=Vn(es.prototype),Te.prototype.constructor=Te;function vn(n){var i=-1,u=n==null?0:n.length;for(this.clear();++i<u;){var m=n[i];this.set(m[0],m[1])}}function Ew(){this.__data__=xi?xi(null):{},this.size=0}function _w(n){var i=this.has(n)&&delete this.__data__[n];return this.size-=i?1:0,i}function Aw(n){var i=this.__data__;if(xi){var u=i[n];return u===h?r:u}return Fe.call(i,n)?i[n]:r}function Ow(n){var i=this.__data__;return xi?i[n]!==r:Fe.call(i,n)}function Tw(n,i){var u=this.__data__;return this.size+=this.has(n)?0:1,u[n]=xi&&i===r?h:i,this}vn.prototype.clear=Ew,vn.prototype.delete=_w,vn.prototype.get=Aw,vn.prototype.has=Ow,vn.prototype.set=Tw;function Rr(n){var i=-1,u=n==null?0:n.length;for(this.clear();++i<u;){var m=n[i];this.set(m[0],m[1])}}function Rw(){this.__data__=[],this.size=0}function Pw(n){var i=this.__data__,u=ts(i,n);if(u<0)return!1;var m=i.length-1;return u==m?i.pop():Ko.call(i,u,1),--this.size,!0}function Cw(n){var i=this.__data__,u=ts(i,n);return u<0?r:i[u][1]}function kw(n){return ts(this.__data__,n)>-1}function $w(n,i){var u=this.__data__,m=ts(u,n);return m<0?(++this.size,u.push([n,i])):u[m][1]=i,this}Rr.prototype.clear=Rw,Rr.prototype.delete=Pw,Rr.prototype.get=Cw,Rr.prototype.has=kw,Rr.prototype.set=$w;function Pr(n){var i=-1,u=n==null?0:n.length;for(this.clear();++i<u;){var m=n[i];this.set(m[0],m[1])}}function Iw(){this.size=0,this.__data__={hash:new vn,map:new(wi||Rr),string:new vn}}function Lw(n){var i=ps(this,n).delete(n);return this.size-=i?1:0,i}function Mw(n){return ps(this,n).get(n)}function Fw(n){return ps(this,n).has(n)}function Dw(n,i){var u=ps(this,n),m=u.size;return u.set(n,i),this.size+=u.size==m?0:1,this}Pr.prototype.clear=Iw,Pr.prototype.delete=Lw,Pr.prototype.get=Mw,Pr.prototype.has=Fw,Pr.prototype.set=Dw;function mn(n){var i=-1,u=n==null?0:n.length;for(this.__data__=new Pr;++i<u;)this.add(n[i])}function Nw(n){return this.__data__.set(n,h),this}function jw(n){return this.__data__.has(n)}mn.prototype.add=mn.prototype.push=Nw,mn.prototype.has=jw;function ir(n){var i=this.__data__=new Rr(n);this.size=i.size}function zw(){this.__data__=new Rr,this.size=0}function Ww(n){var i=this.__data__,u=i.delete(n);return this.size=i.size,u}function Bw(n){return this.__data__.get(n)}function Uw(n){return this.__data__.has(n)}function Hw(n,i){var u=this.__data__;if(u instanceof Rr){var m=u.__data__;if(!wi||m.length<s-1)return m.push([n,i]),this.size=++u.size,this;u=this.__data__=new Pr(m)}return u.set(n,i),this.size=u.size,this}ir.prototype.clear=zw,ir.prototype.delete=Ww,ir.prototype.get=Bw,ir.prototype.has=Uw,ir.prototype.set=Hw;function jf(n,i){var u=be(n),m=!u&&Sn(n),_=!u&&!m&&en(n),T=!u&&!m&&!_&&Qn(n),P=u||m||_||T,$=P?Ja(n.length,ew):[],j=$.length;for(var V in n)(i||Fe.call(n,V))&&!(P&&(V=="length"||_&&(V=="offset"||V=="parent")||T&&(V=="buffer"||V=="byteLength"||V=="byteOffset")||Ir(V,j)))&&$.push(V);return $}function zf(n){var i=n.length;return i?n[gu(0,i-1)]:r}function qw(n,i){return hs(Rt(n),yn(i,0,n.length))}function Zw(n){return hs(Rt(n))}function ou(n,i,u){(u!==r&&!or(n[i],u)||u===r&&!(i in n))&&Cr(n,i,u)}function Ei(n,i,u){var m=n[i];(!(Fe.call(n,i)&&or(m,u))||u===r&&!(i in n))&&Cr(n,i,u)}function ts(n,i){for(var u=n.length;u--;)if(or(n[u][0],i))return u;return-1}function Gw(n,i,u,m){return Yr(n,function(_,T,P){i(m,_,u(_),P)}),m}function Wf(n,i){return n&&hr(i,ut(i),n)}function Kw(n,i){return n&&hr(i,Ct(i),n)}function Cr(n,i,u){i=="__proto__"&&Vo?Vo(n,i,{configurable:!0,enumerable:!0,value:u,writable:!0}):n[i]=u}function su(n,i){for(var u=-1,m=i.length,_=H(m),T=n==null;++u<m;)_[u]=T?r:zu(n,i[u]);return _}function yn(n,i,u){return n===n&&(u!==r&&(n=n<=u?n:u),i!==r&&(n=n>=i?n:i)),n}function Kt(n,i,u,m,_,T){var P,$=i&g,j=i&d,V=i&w;if(u&&(P=_?u(n,m,_,T):u(n)),P!==r)return P;if(!Ze(n))return n;var X=be(n);if(X){if(P=F1(n),!$)return Rt(n,P)}else{var ee=wt(n),oe=ee==ie||ee==vt;if(en(n))return fd(n,$);if(ee==Ut||ee==ce||oe&&!_){if(P=j||oe?{}:Cd(n),!$)return j?A1(n,Kw(P,n)):_1(n,Wf(P,n))}else{if(!je[ee])return _?n:{};P=D1(n,ee,$)}}T||(T=new ir);var le=T.get(n);if(le)return le;T.set(n,P),op(n)?n.forEach(function(ge){P.add(Kt(ge,i,u,ge,n,T))}):np(n)&&n.forEach(function(ge,Ae){P.set(Ae,Kt(ge,i,u,Ae,n,T))});var he=V?j?Ou:Au:j?Ct:ut,Se=X?r:he(n);return qt(Se||n,function(ge,Ae){Se&&(Ae=ge,ge=n[Ae]),Ei(P,Ae,Kt(ge,i,u,Ae,n,T))}),P}function Vw(n){var i=ut(n);return function(u){return Bf(u,n,i)}}function Bf(n,i,u){var m=u.length;if(n==null)return!m;for(n=Ne(n);m--;){var _=u[m],T=i[_],P=n[_];if(P===r&&!(_ in n)||!T(P))return!1}return!0}function Uf(n,i,u){if(typeof n!="function")throw new Zt(l);return Ci(function(){n.apply(r,u)},i)}function _i(n,i,u,m){var _=-1,T=No,P=!0,$=n.length,j=[],V=i.length;if(!$)return j;u&&(i=Be(i,Ft(u))),m?(T=Za,P=!1):i.length>=s&&(T=mi,P=!1,i=new mn(i));e:for(;++_<$;){var X=n[_],ee=u==null?X:u(X);if(X=m||X!==0?X:0,P&&ee===ee){for(var oe=V;oe--;)if(i[oe]===ee)continue e;j.push(X)}else T(i,ee,m)||j.push(X)}return j}var Yr=vd(pr),Hf=vd(uu,!0);function Yw(n,i){var u=!0;return Yr(n,function(m,_,T){return u=!!i(m,_,T),u}),u}function rs(n,i,u){for(var m=-1,_=n.length;++m<_;){var T=n[m],P=i(T);if(P!=null&&($===r?P===P&&!Nt(P):u(P,$)))var $=P,j=T}return j}function Xw(n,i,u,m){var _=n.length;for(u=xe(u),u<0&&(u=-u>_?0:_+u),m=m===r||m>_?_:xe(m),m<0&&(m+=_),m=u>m?0:ap(m);u<m;)n[u++]=i;return n}function qf(n,i){var u=[];return Yr(n,function(m,_,T){i(m,_,T)&&u.push(m)}),u}function pt(n,i,u,m,_){var T=-1,P=n.length;for(u||(u=j1),_||(_=[]);++T<P;){var $=n[T];i>0&&u($)?i>1?pt($,i-1,u,m,_):Gr(_,$):m||(_[_.length]=$)}return _}var au=md(),Zf=md(!0);function pr(n,i){return n&&au(n,i,ut)}function uu(n,i){return n&&Zf(n,i,ut)}function ns(n,i){return Zr(i,function(u){return Lr(n[u])})}function wn(n,i){i=Jr(i,n);for(var u=0,m=i.length;n!=null&&u<m;)n=n[gr(i[u++])];return u&&u==m?n:r}function Gf(n,i,u){var m=i(n);return be(n)?m:Gr(m,u(n))}function Et(n){return n==null?n===r?vi:$o:gn&&gn in Ne(n)?I1(n):Z1(n)}function lu(n,i){return n>i}function Jw(n,i){return n!=null&&Fe.call(n,i)}function Qw(n,i){return n!=null&&i in Ne(n)}function e1(n,i,u){return n>=yt(i,u)&&n<it(i,u)}function cu(n,i,u){for(var m=u?Za:No,_=n[0].length,T=n.length,P=T,$=H(T),j=1/0,V=[];P--;){var X=n[P];P&&i&&(X=Be(X,Ft(i))),j=yt(X.length,j),$[P]=!u&&(i||_>=120&&X.length>=120)?new mn(P&&X):r}X=n[0];var ee=-1,oe=$[0];e:for(;++ee<_&&V.length<j;){var le=X[ee],he=i?i(le):le;if(le=u||le!==0?le:0,!(oe?mi(oe,he):m(V,he,u))){for(P=T;--P;){var Se=$[P];if(!(Se?mi(Se,he):m(n[P],he,u)))continue e}oe&&oe.push(he),V.push(le)}}return V}function t1(n,i,u,m){return pr(n,function(_,T,P){i(m,u(_),T,P)}),m}function Ai(n,i,u){i=Jr(i,n),n=Ld(n,i);var m=n==null?n:n[gr(Yt(i))];return m==null?r:Mt(m,n,u)}function Kf(n){return Ke(n)&&Et(n)==ce}function r1(n){return Ke(n)&&Et(n)==qr}function n1(n){return Ke(n)&&Et(n)==Ee}function Oi(n,i,u,m,_){return n===i?!0:n==null||i==null||!Ke(n)&&!Ke(i)?n!==n&&i!==i:i1(n,i,u,m,Oi,_)}function i1(n,i,u,m,_,T){var P=be(n),$=be(i),j=P?fe:wt(n),V=$?fe:wt(i);j=j==ce?Ut:j,V=V==ce?Ut:V;var X=j==Ut,ee=V==Ut,oe=j==V;if(oe&&en(n)){if(!en(i))return!1;P=!0,X=!1}if(oe&&!X)return T||(T=new ir),P||Qn(n)?Td(n,i,u,m,_,T):k1(n,i,j,u,m,_,T);if(!(u&x)){var le=X&&Fe.call(n,"__wrapped__"),he=ee&&Fe.call(i,"__wrapped__");if(le||he){var Se=le?n.value():n,ge=he?i.value():i;return T||(T=new ir),_(Se,ge,u,m,T)}}return oe?(T||(T=new ir),$1(n,i,u,m,_,T)):!1}function o1(n){return Ke(n)&&wt(n)==at}function fu(n,i,u,m){var _=u.length,T=_,P=!m;if(n==null)return!T;for(n=Ne(n);_--;){var $=u[_];if(P&&$[2]?$[1]!==n[$[0]]:!($[0]in n))return!1}for(;++_<T;){$=u[_];var j=$[0],V=n[j],X=$[1];if(P&&$[2]){if(V===r&&!(j in n))return!1}else{var ee=new ir;if(m)var oe=m(V,X,j,n,i,ee);if(!(oe===r?Oi(X,V,x|f,m,ee):oe))return!1}}return!0}function Vf(n){if(!Ze(n)||W1(n))return!1;var i=Lr(n)?ow:V0;return i.test(xn(n))}function s1(n){return Ke(n)&&Et(n)==Lt}function a1(n){return Ke(n)&&wt(n)==mt}function u1(n){return Ke(n)&&bs(n.length)&&!!We[Et(n)]}function Yf(n){return typeof n=="function"?n:n==null?kt:typeof n=="object"?be(n)?Qf(n[0],n[1]):Jf(n):yp(n)}function du(n){if(!Pi(n))return fw(n);var i=[];for(var u in Ne(n))Fe.call(n,u)&&u!="constructor"&&i.push(u);return i}function l1(n){if(!Ze(n))return q1(n);var i=Pi(n),u=[];for(var m in n)m=="constructor"&&(i||!Fe.call(n,m))||u.push(m);return u}function pu(n,i){return n<i}function Xf(n,i){var u=-1,m=Pt(n)?H(n.length):[];return Yr(n,function(_,T,P){m[++u]=i(_,T,P)}),m}function Jf(n){var i=Ru(n);return i.length==1&&i[0][2]?$d(i[0][0],i[0][1]):function(u){return u===n||fu(u,n,i)}}function Qf(n,i){return Cu(n)&&kd(i)?$d(gr(n),i):function(u){var m=zu(u,n);return m===r&&m===i?Wu(u,n):Oi(i,m,x|f)}}function is(n,i,u,m,_){n!==i&&au(i,function(T,P){if(_||(_=new ir),Ze(T))c1(n,i,P,u,is,m,_);else{var $=m?m($u(n,P),T,P+"",n,i,_):r;$===r&&($=T),ou(n,P,$)}},Ct)}function c1(n,i,u,m,_,T,P){var $=$u(n,u),j=$u(i,u),V=P.get(j);if(V){ou(n,u,V);return}var X=T?T($,j,u+"",n,i,P):r,ee=X===r;if(ee){var oe=be(j),le=!oe&&en(j),he=!oe&&!le&&Qn(j);X=j,oe||le||he?be($)?X=$:Ye($)?X=Rt($):le?(ee=!1,X=fd(j,!0)):he?(ee=!1,X=dd(j,!0)):X=[]:ki(j)||Sn(j)?(X=$,Sn($)?X=up($):(!Ze($)||Lr($))&&(X=Cd(j))):ee=!1}ee&&(P.set(j,X),_(X,j,m,T,P),P.delete(j)),ou(n,u,X)}function ed(n,i){var u=n.length;if(u)return i+=i<0?u:0,Ir(i,u)?n[i]:r}function td(n,i,u){i.length?i=Be(i,function(T){return be(T)?function(P){return wn(P,T.length===1?T[0]:T)}:T}):i=[kt];var m=-1;i=Be(i,Ft(pe()));var _=Xf(n,function(T,P,$){var j=Be(i,function(V){return V(T)});return{criteria:j,index:++m,value:T}});return Dy(_,function(T,P){return E1(T,P,u)})}function f1(n,i){return rd(n,i,function(u,m){return Wu(n,m)})}function rd(n,i,u){for(var m=-1,_=i.length,T={};++m<_;){var P=i[m],$=wn(n,P);u($,P)&&Ti(T,Jr(P,n),$)}return T}function d1(n){return function(i){return wn(i,n)}}function hu(n,i,u,m){var _=m?Fy:Bn,T=-1,P=i.length,$=n;for(n===i&&(i=Rt(i)),u&&($=Be(n,Ft(u)));++T<P;)for(var j=0,V=i[T],X=u?u(V):V;(j=_($,X,j,m))>-1;)$!==n&&Ko.call($,j,1),Ko.call(n,j,1);return n}function nd(n,i){for(var u=n?i.length:0,m=u-1;u--;){var _=i[u];if(u==m||_!==T){var T=_;Ir(_)?Ko.call(n,_,1):yu(n,_)}}return n}function gu(n,i){return n+Xo(Df()*(i-n+1))}function p1(n,i,u,m){for(var _=-1,T=it(Yo((i-n)/(u||1)),0),P=H(T);T--;)P[m?T:++_]=n,n+=u;return P}function vu(n,i){var u="";if(!n||i<1||i>te)return u;do i%2&&(u+=n),i=Xo(i/2),i&&(n+=n);while(i);return u}function _e(n,i){return Iu(Id(n,i,kt),n+"")}function h1(n){return zf(ei(n))}function g1(n,i){var u=ei(n);return hs(u,yn(i,0,u.length))}function Ti(n,i,u,m){if(!Ze(n))return n;i=Jr(i,n);for(var _=-1,T=i.length,P=T-1,$=n;$!=null&&++_<T;){var j=gr(i[_]),V=u;if(j==="__proto__"||j==="constructor"||j==="prototype")return n;if(_!=P){var X=$[j];V=m?m(X,j,$):r,V===r&&(V=Ze(X)?X:Ir(i[_+1])?[]:{})}Ei($,j,V),$=$[j]}return n}var id=Jo?function(n,i){return Jo.set(n,i),n}:kt,v1=Vo?function(n,i){return Vo(n,"toString",{configurable:!0,enumerable:!1,value:Uu(i),writable:!0})}:kt;function m1(n){return hs(ei(n))}function Vt(n,i,u){var m=-1,_=n.length;i<0&&(i=-i>_?0:_+i),u=u>_?_:u,u<0&&(u+=_),_=i>u?0:u-i>>>0,i>>>=0;for(var T=H(_);++m<_;)T[m]=n[m+i];return T}function y1(n,i){var u;return Yr(n,function(m,_,T){return u=i(m,_,T),!u}),!!u}function os(n,i,u){var m=0,_=n==null?m:n.length;if(typeof i=="number"&&i===i&&_<=ue){for(;m<_;){var T=m+_>>>1,P=n[T];P!==null&&!Nt(P)&&(u?P<=i:P<i)?m=T+1:_=T}return _}return mu(n,i,kt,u)}function mu(n,i,u,m){var _=0,T=n==null?0:n.length;if(T===0)return 0;i=u(i);for(var P=i!==i,$=i===null,j=Nt(i),V=i===r;_<T;){var X=Xo((_+T)/2),ee=u(n[X]),oe=ee!==r,le=ee===null,he=ee===ee,Se=Nt(ee);if(P)var ge=m||he;else V?ge=he&&(m||oe):$?ge=he&&oe&&(m||!le):j?ge=he&&oe&&!le&&(m||!Se):le||Se?ge=!1:ge=m?ee<=i:ee<i;ge?_=X+1:T=X}return yt(T,se)}function od(n,i){for(var u=-1,m=n.length,_=0,T=[];++u<m;){var P=n[u],$=i?i(P):P;if(!u||!or($,j)){var j=$;T[_++]=P===0?0:P}}return T}function sd(n){return typeof n=="number"?n:Nt(n)?Z:+n}function Dt(n){if(typeof n=="string")return n;if(be(n))return Be(n,Dt)+"";if(Nt(n))return Nf?Nf.call(n):"";var i=n+"";return i=="0"&&1/n==-Y?"-0":i}function Xr(n,i,u){var m=-1,_=No,T=n.length,P=!0,$=[],j=$;if(u)P=!1,_=Za;else if(T>=s){var V=i?null:P1(n);if(V)return zo(V);P=!1,_=mi,j=new mn}else j=i?[]:$;e:for(;++m<T;){var X=n[m],ee=i?i(X):X;if(X=u||X!==0?X:0,P&&ee===ee){for(var oe=j.length;oe--;)if(j[oe]===ee)continue e;i&&j.push(ee),$.push(X)}else _(j,ee,u)||(j!==$&&j.push(ee),$.push(X))}return $}function yu(n,i){return i=Jr(i,n),n=Ld(n,i),n==null||delete n[gr(Yt(i))]}function ad(n,i,u,m){return Ti(n,i,u(wn(n,i)),m)}function ss(n,i,u,m){for(var _=n.length,T=m?_:-1;(m?T--:++T<_)&&i(n[T],T,n););return u?Vt(n,m?0:T,m?T+1:_):Vt(n,m?T+1:0,m?_:T)}function ud(n,i){var u=n;return u instanceof Te&&(u=u.value()),Ga(i,function(m,_){return _.func.apply(_.thisArg,Gr([m],_.args))},u)}function wu(n,i,u){var m=n.length;if(m<2)return m?Xr(n[0]):[];for(var _=-1,T=H(m);++_<m;)for(var P=n[_],$=-1;++$<m;)$!=_&&(T[_]=_i(T[_]||P,n[$],i,u));return Xr(pt(T,1),i,u)}function ld(n,i,u){for(var m=-1,_=n.length,T=i.length,P={};++m<_;){var $=m<T?i[m]:r;u(P,n[m],$)}return P}function bu(n){return Ye(n)?n:[]}function xu(n){return typeof n=="function"?n:kt}function Jr(n,i){return be(n)?n:Cu(n,i)?[n]:Nd(ke(n))}var w1=_e;function Qr(n,i,u){var m=n.length;return u=u===r?m:u,!i&&u>=m?n:Vt(n,i,u)}var cd=sw||function(n){return dt.clearTimeout(n)};function fd(n,i){if(i)return n.slice();var u=n.length,m=$f?$f(u):new n.constructor(u);return n.copy(m),m}function Su(n){var i=new n.constructor(n.byteLength);return new Zo(i).set(new Zo(n)),i}function b1(n,i){var u=i?Su(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.byteLength)}function x1(n){var i=new n.constructor(n.source,Gc.exec(n));return i.lastIndex=n.lastIndex,i}function S1(n){return Si?Ne(Si.call(n)):{}}function dd(n,i){var u=i?Su(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.length)}function pd(n,i){if(n!==i){var u=n!==r,m=n===null,_=n===n,T=Nt(n),P=i!==r,$=i===null,j=i===i,V=Nt(i);if(!$&&!V&&!T&&n>i||T&&P&&j&&!$&&!V||m&&P&&j||!u&&j||!_)return 1;if(!m&&!T&&!V&&n<i||V&&u&&_&&!m&&!T||$&&u&&_||!P&&_||!j)return-1}return 0}function E1(n,i,u){for(var m=-1,_=n.criteria,T=i.criteria,P=_.length,$=u.length;++m<P;){var j=pd(_[m],T[m]);if(j){if(m>=$)return j;var V=u[m];return j*(V=="desc"?-1:1)}}return n.index-i.index}function hd(n,i,u,m){for(var _=-1,T=n.length,P=u.length,$=-1,j=i.length,V=it(T-P,0),X=H(j+V),ee=!m;++$<j;)X[$]=i[$];for(;++_<P;)(ee||_<T)&&(X[u[_]]=n[_]);for(;V--;)X[$++]=n[_++];return X}function gd(n,i,u,m){for(var _=-1,T=n.length,P=-1,$=u.length,j=-1,V=i.length,X=it(T-$,0),ee=H(X+V),oe=!m;++_<X;)ee[_]=n[_];for(var le=_;++j<V;)ee[le+j]=i[j];for(;++P<$;)(oe||_<T)&&(ee[le+u[P]]=n[_++]);return ee}function Rt(n,i){var u=-1,m=n.length;for(i||(i=H(m));++u<m;)i[u]=n[u];return i}function hr(n,i,u,m){var _=!u;u||(u={});for(var T=-1,P=i.length;++T<P;){var $=i[T],j=m?m(u[$],n[$],$,u,n):r;j===r&&(j=n[$]),_?Cr(u,$,j):Ei(u,$,j)}return u}function _1(n,i){return hr(n,Pu(n),i)}function A1(n,i){return hr(n,Rd(n),i)}function as(n,i){return function(u,m){var _=be(u)?Cy:Gw,T=i?i():{};return _(u,n,pe(m,2),T)}}function Yn(n){return _e(function(i,u){var m=-1,_=u.length,T=_>1?u[_-1]:r,P=_>2?u[2]:r;for(T=n.length>3&&typeof T=="function"?(_--,T):r,P&&_t(u[0],u[1],P)&&(T=_<3?r:T,_=1),i=Ne(i);++m<_;){var $=u[m];$&&n(i,$,m,T)}return i})}function vd(n,i){return function(u,m){if(u==null)return u;if(!Pt(u))return n(u,m);for(var _=u.length,T=i?_:-1,P=Ne(u);(i?T--:++T<_)&&m(P[T],T,P)!==!1;);return u}}function md(n){return function(i,u,m){for(var _=-1,T=Ne(i),P=m(i),$=P.length;$--;){var j=P[n?$:++_];if(u(T[j],j,T)===!1)break}return i}}function O1(n,i,u){var m=i&b,_=Ri(n);function T(){var P=this&&this!==dt&&this instanceof T?_:n;return P.apply(m?u:this,arguments)}return T}function yd(n){return function(i){i=ke(i);var u=Un(i)?nr(i):r,m=u?u[0]:i.charAt(0),_=u?Qr(u,1).join(""):i.slice(1);return m[n]()+_}}function Xn(n){return function(i){return Ga(vp(gp(i).replace(vy,"")),n,"")}}function Ri(n){return function(){var i=arguments;switch(i.length){case 0:return new n;case 1:return new n(i[0]);case 2:return new n(i[0],i[1]);case 3:return new n(i[0],i[1],i[2]);case 4:return new n(i[0],i[1],i[2],i[3]);case 5:return new n(i[0],i[1],i[2],i[3],i[4]);case 6:return new n(i[0],i[1],i[2],i[3],i[4],i[5]);case 7:return new n(i[0],i[1],i[2],i[3],i[4],i[5],i[6])}var u=Vn(n.prototype),m=n.apply(u,i);return Ze(m)?m:u}}function T1(n,i,u){var m=Ri(n);function _(){for(var T=arguments.length,P=H(T),$=T,j=Jn(_);$--;)P[$]=arguments[$];var V=T<3&&P[0]!==j&&P[T-1]!==j?[]:Kr(P,j);if(T-=V.length,T<u)return Ed(n,i,us,_.placeholder,r,P,V,r,r,u-T);var X=this&&this!==dt&&this instanceof _?m:n;return Mt(X,this,P)}return _}function wd(n){return function(i,u,m){var _=Ne(i);if(!Pt(i)){var T=pe(u,3);i=ut(i),u=function($){return T(_[$],$,_)}}var P=n(i,u,m);return P>-1?_[T?i[P]:P]:r}}function bd(n){return $r(function(i){var u=i.length,m=u,_=Gt.prototype.thru;for(n&&i.reverse();m--;){var T=i[m];if(typeof T!="function")throw new Zt(l);if(_&&!P&&ds(T)=="wrapper")var P=new Gt([],!0)}for(m=P?m:u;++m<u;){T=i[m];var $=ds(T),j=$=="wrapper"?Tu(T):r;j&&ku(j[0])&&j[1]==(B|E|O|L)&&!j[4].length&&j[9]==1?P=P[ds(j[0])].apply(P,j[3]):P=T.length==1&&ku(T)?P[$]():P.thru(T)}return function(){var V=arguments,X=V[0];if(P&&V.length==1&&be(X))return P.plant(X).value();for(var ee=0,oe=u?i[ee].apply(this,V):X;++ee<u;)oe=i[ee].call(this,oe);return oe}})}function us(n,i,u,m,_,T,P,$,j,V){var X=i&B,ee=i&b,oe=i&p,le=i&(E|R),he=i&M,Se=oe?r:Ri(n);function ge(){for(var Ae=arguments.length,Re=H(Ae),jt=Ae;jt--;)Re[jt]=arguments[jt];if(le)var At=Jn(ge),zt=jy(Re,At);if(m&&(Re=hd(Re,m,_,le)),T&&(Re=gd(Re,T,P,le)),Ae-=zt,le&&Ae<V){var Xe=Kr(Re,At);return Ed(n,i,us,ge.placeholder,u,Re,Xe,$,j,V-Ae)}var sr=ee?u:this,Fr=oe?sr[n]:n;return Ae=Re.length,$?Re=G1(Re,$):he&&Ae>1&&Re.reverse(),X&&j<Ae&&(Re.length=j),this&&this!==dt&&this instanceof ge&&(Fr=Se||Ri(Fr)),Fr.apply(sr,Re)}return ge}function xd(n,i){return function(u,m){return t1(u,n,i(m),{})}}function ls(n,i){return function(u,m){var _;if(u===r&&m===r)return i;if(u!==r&&(_=u),m!==r){if(_===r)return m;typeof u=="string"||typeof m=="string"?(u=Dt(u),m=Dt(m)):(u=sd(u),m=sd(m)),_=n(u,m)}return _}}function Eu(n){return $r(function(i){return i=Be(i,Ft(pe())),_e(function(u){var m=this;return n(i,function(_){return Mt(_,m,u)})})})}function cs(n,i){i=i===r?" ":Dt(i);var u=i.length;if(u<2)return u?vu(i,n):i;var m=vu(i,Yo(n/Hn(i)));return Un(i)?Qr(nr(m),0,n).join(""):m.slice(0,n)}function R1(n,i,u,m){var _=i&b,T=Ri(n);function P(){for(var $=-1,j=arguments.length,V=-1,X=m.length,ee=H(X+j),oe=this&&this!==dt&&this instanceof P?T:n;++V<X;)ee[V]=m[V];for(;j--;)ee[V++]=arguments[++$];return Mt(oe,_?u:this,ee)}return P}function Sd(n){return function(i,u,m){return m&&typeof m!="number"&&_t(i,u,m)&&(u=m=r),i=Mr(i),u===r?(u=i,i=0):u=Mr(u),m=m===r?i<u?1:-1:Mr(m),p1(i,u,m,n)}}function fs(n){return function(i,u){return typeof i=="string"&&typeof u=="string"||(i=Xt(i),u=Xt(u)),n(i,u)}}function Ed(n,i,u,m,_,T,P,$,j,V){var X=i&E,ee=X?P:r,oe=X?r:P,le=X?T:r,he=X?r:T;i|=X?O:k,i&=~(X?k:O),i&S||(i&=-4);var Se=[n,i,_,le,ee,he,oe,$,j,V],ge=u.apply(r,Se);return ku(n)&&Md(ge,Se),ge.placeholder=m,Fd(ge,n,i)}function _u(n){var i=nt[n];return function(u,m){if(u=Xt(u),m=m==null?0:yt(xe(m),292),m&&Ff(u)){var _=(ke(u)+"e").split("e"),T=i(_[0]+"e"+(+_[1]+m));return _=(ke(T)+"e").split("e"),+(_[0]+"e"+(+_[1]-m))}return i(u)}}var P1=Gn&&1/zo(new Gn([,-0]))[1]==Y?function(n){return new Gn(n)}:Zu;function _d(n){return function(i){var u=wt(i);return u==at?eu(i):u==mt?Zy(i):Ny(i,n(i))}}function kr(n,i,u,m,_,T,P,$){var j=i&p;if(!j&&typeof n!="function")throw new Zt(l);var V=m?m.length:0;if(V||(i&=-97,m=_=r),P=P===r?P:it(xe(P),0),$=$===r?$:xe($),V-=_?_.length:0,i&k){var X=m,ee=_;m=_=r}var oe=j?r:Tu(n),le=[n,i,u,m,_,X,ee,T,P,$];if(oe&&H1(le,oe),n=le[0],i=le[1],u=le[2],m=le[3],_=le[4],$=le[9]=le[9]===r?j?0:n.length:it(le[9]-V,0),!$&&i&(E|R)&&(i&=-25),!i||i==b)var he=O1(n,i,u);else i==E||i==R?he=T1(n,i,$):(i==O||i==(b|O))&&!_.length?he=R1(n,i,u,m):he=us.apply(r,le);var Se=oe?id:Md;return Fd(Se(he,le),n,i)}function Ad(n,i,u,m){return n===r||or(n,Zn[u])&&!Fe.call(m,u)?i:n}function Od(n,i,u,m,_,T){return Ze(n)&&Ze(i)&&(T.set(i,n),is(n,i,r,Od,T),T.delete(i)),n}function C1(n){return ki(n)?r:n}function Td(n,i,u,m,_,T){var P=u&x,$=n.length,j=i.length;if($!=j&&!(P&&j>$))return!1;var V=T.get(n),X=T.get(i);if(V&&X)return V==i&&X==n;var ee=-1,oe=!0,le=u&f?new mn:r;for(T.set(n,i),T.set(i,n);++ee<$;){var he=n[ee],Se=i[ee];if(m)var ge=P?m(Se,he,ee,i,n,T):m(he,Se,ee,n,i,T);if(ge!==r){if(ge)continue;oe=!1;break}if(le){if(!Ka(i,function(Ae,Re){if(!mi(le,Re)&&(he===Ae||_(he,Ae,u,m,T)))return le.push(Re)})){oe=!1;break}}else if(!(he===Se||_(he,Se,u,m,T))){oe=!1;break}}return T.delete(n),T.delete(i),oe}function k1(n,i,u,m,_,T,P){switch(u){case Tr:if(n.byteLength!=i.byteLength||n.byteOffset!=i.byteOffset)return!1;n=n.buffer,i=i.buffer;case qr:return!(n.byteLength!=i.byteLength||!T(new Zo(n),new Zo(i)));case ve:case Ee:case dr:return or(+n,+i);case qe:return n.name==i.name&&n.message==i.message;case Lt:case Ur:return n==i+"";case at:var $=eu;case mt:var j=m&x;if($||($=zo),n.size!=i.size&&!j)return!1;var V=P.get(n);if(V)return V==i;m|=f,P.set(n,i);var X=Td($(n),$(i),m,_,T,P);return P.delete(n),X;case pn:if(Si)return Si.call(n)==Si.call(i)}return!1}function $1(n,i,u,m,_,T){var P=u&x,$=Au(n),j=$.length,V=Au(i),X=V.length;if(j!=X&&!P)return!1;for(var ee=j;ee--;){var oe=$[ee];if(!(P?oe in i:Fe.call(i,oe)))return!1}var le=T.get(n),he=T.get(i);if(le&&he)return le==i&&he==n;var Se=!0;T.set(n,i),T.set(i,n);for(var ge=P;++ee<j;){oe=$[ee];var Ae=n[oe],Re=i[oe];if(m)var jt=P?m(Re,Ae,oe,i,n,T):m(Ae,Re,oe,n,i,T);if(!(jt===r?Ae===Re||_(Ae,Re,u,m,T):jt)){Se=!1;break}ge||(ge=oe=="constructor")}if(Se&&!ge){var At=n.constructor,zt=i.constructor;At!=zt&&"constructor"in n&&"constructor"in i&&!(typeof At=="function"&&At instanceof At&&typeof zt=="function"&&zt instanceof zt)&&(Se=!1)}return T.delete(n),T.delete(i),Se}function $r(n){return Iu(Id(n,r,Bd),n+"")}function Au(n){return Gf(n,ut,Pu)}function Ou(n){return Gf(n,Ct,Rd)}var Tu=Jo?function(n){return Jo.get(n)}:Zu;function ds(n){for(var i=n.name+"",u=Kn[i],m=Fe.call(Kn,i)?u.length:0;m--;){var _=u[m],T=_.func;if(T==null||T==n)return _.name}return i}function Jn(n){var i=Fe.call(A,"placeholder")?A:n;return i.placeholder}function pe(){var n=A.iteratee||Hu;return n=n===Hu?Yf:n,arguments.length?n(arguments[0],arguments[1]):n}function ps(n,i){var u=n.__data__;return z1(i)?u[typeof i=="string"?"string":"hash"]:u.map}function Ru(n){for(var i=ut(n),u=i.length;u--;){var m=i[u],_=n[m];i[u]=[m,_,kd(_)]}return i}function bn(n,i){var u=Uy(n,i);return Vf(u)?u:r}function I1(n){var i=Fe.call(n,gn),u=n[gn];try{n[gn]=r;var m=!0}catch{}var _=Ho.call(n);return m&&(i?n[gn]=u:delete n[gn]),_}var Pu=ru?function(n){return n==null?[]:(n=Ne(n),Zr(ru(n),function(i){return Lf.call(n,i)}))}:Gu,Rd=ru?function(n){for(var i=[];n;)Gr(i,Pu(n)),n=Go(n);return i}:Gu,wt=Et;(nu&&wt(new nu(new ArrayBuffer(1)))!=Tr||wi&&wt(new wi)!=at||iu&&wt(iu.resolve())!=Io||Gn&&wt(new Gn)!=mt||bi&&wt(new bi)!=Hr)&&(wt=function(n){var i=Et(n),u=i==Ut?n.constructor:r,m=u?xn(u):"";if(m)switch(m){case gw:return Tr;case vw:return at;case mw:return Io;case yw:return mt;case ww:return Hr}return i});function L1(n,i,u){for(var m=-1,_=u.length;++m<_;){var T=u[m],P=T.size;switch(T.type){case"drop":n+=P;break;case"dropRight":i-=P;break;case"take":i=yt(i,n+P);break;case"takeRight":n=it(n,i-P);break}}return{start:n,end:i}}function M1(n){var i=n.match(W0);return i?i[1].split(B0):[]}function Pd(n,i,u){i=Jr(i,n);for(var m=-1,_=i.length,T=!1;++m<_;){var P=gr(i[m]);if(!(T=n!=null&&u(n,P)))break;n=n[P]}return T||++m!=_?T:(_=n==null?0:n.length,!!_&&bs(_)&&Ir(P,_)&&(be(n)||Sn(n)))}function F1(n){var i=n.length,u=new n.constructor(i);return i&&typeof n[0]=="string"&&Fe.call(n,"index")&&(u.index=n.index,u.input=n.input),u}function Cd(n){return typeof n.constructor=="function"&&!Pi(n)?Vn(Go(n)):{}}function D1(n,i,u){var m=n.constructor;switch(i){case qr:return Su(n);case ve:case Ee:return new m(+n);case Tr:return b1(n,u);case Ra:case Pa:case Ca:case ka:case $a:case Ia:case La:case Ma:case Fa:return dd(n,u);case at:return new m;case dr:case Ur:return new m(n);case Lt:return x1(n);case mt:return new m;case pn:return S1(n)}}function N1(n,i){var u=i.length;if(!u)return n;var m=u-1;return i[m]=(u>1?"& ":"")+i[m],i=i.join(u>2?", ":" "),n.replace(z0,`{
|
|
183
|
-
/* [wrapped with `+
|
|
184
|
-
`)}function j1(n){return be(n)||Sn(n)||!!(Mf&&n&&n[Mf])}function Ir(n,i){var u=typeof n;return i=i??te,!!i&&(u=="number"||u!="symbol"&&X0.test(n))&&n>-1&&n%1==0&&n<i}function _t(n,i,u){if(!Ze(u))return!1;var m=typeof i;return(m=="number"?Pt(u)&&Ir(i,u.length):m=="string"&&i in u)?or(u[i],n):!1}function Cu(n,i){if(be(n))return!1;var u=typeof n;return u=="number"||u=="symbol"||u=="boolean"||n==null||Nt(n)?!0:F0.test(n)||!M0.test(n)||i!=null&&n in Ne(i)}function z1(n){var i=typeof n;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?n!=="__proto__":n===null}function ku(n){var i=ds(n),u=A[i];if(typeof u!="function"||!(i in Te.prototype))return!1;if(n===u)return!0;var m=Tu(u);return!!m&&n===m[0]}function W1(n){return!!kf&&kf in n}var B1=Bo?Lr:Ku;function Pi(n){var i=n&&n.constructor,u=typeof i=="function"&&i.prototype||Zn;return n===u}function kd(n){return n===n&&!Ze(n)}function $d(n,i){return function(u){return u==null?!1:u[n]===i&&(i!==r||n in Ne(u))}}function U1(n){var i=ys(n,function(m){return u.size===y&&u.clear(),m}),u=i.cache;return i}function H1(n,i){var u=n[1],m=i[1],_=u|m,T=_<(b|p|B),P=m==B&&u==E||m==B&&u==L&&n[7].length<=i[8]||m==(B|L)&&i[7].length<=i[8]&&u==E;if(!(T||P))return n;m&b&&(n[2]=i[2],_|=u&b?0:S);var $=i[3];if($){var j=n[3];n[3]=j?hd(j,$,i[4]):$,n[4]=j?Kr(n[3],v):i[4]}return $=i[5],$&&(j=n[5],n[5]=j?gd(j,$,i[6]):$,n[6]=j?Kr(n[5],v):i[6]),$=i[7],$&&(n[7]=$),m&B&&(n[8]=n[8]==null?i[8]:yt(n[8],i[8])),n[9]==null&&(n[9]=i[9]),n[0]=i[0],n[1]=_,n}function q1(n){var i=[];if(n!=null)for(var u in Ne(n))i.push(u);return i}function Z1(n){return Ho.call(n)}function Id(n,i,u){return i=it(i===r?n.length-1:i,0),function(){for(var m=arguments,_=-1,T=it(m.length-i,0),P=H(T);++_<T;)P[_]=m[i+_];_=-1;for(var $=H(i+1);++_<i;)$[_]=m[_];return $[i]=u(P),Mt(n,this,$)}}function Ld(n,i){return i.length<2?n:wn(n,Vt(i,0,-1))}function G1(n,i){for(var u=n.length,m=yt(i.length,u),_=Rt(n);m--;){var T=i[m];n[m]=Ir(T,u)?_[T]:r}return n}function $u(n,i){if(!(i==="constructor"&&typeof n[i]=="function")&&i!="__proto__")return n[i]}var Md=Dd(id),Ci=uw||function(n,i){return dt.setTimeout(n,i)},Iu=Dd(v1);function Fd(n,i,u){var m=i+"";return Iu(n,N1(m,K1(M1(m),u)))}function Dd(n){var i=0,u=0;return function(){var m=dw(),_=U-(m-u);if(u=m,_>0){if(++i>=I)return arguments[0]}else i=0;return n.apply(r,arguments)}}function hs(n,i){var u=-1,m=n.length,_=m-1;for(i=i===r?m:i;++u<i;){var T=gu(u,_),P=n[T];n[T]=n[u],n[u]=P}return n.length=i,n}var Nd=U1(function(n){var i=[];return n.charCodeAt(0)===46&&i.push(""),n.replace(D0,function(u,m,_,T){i.push(_?T.replace(q0,"$1"):m||u)}),i});function gr(n){if(typeof n=="string"||Nt(n))return n;var i=n+"";return i=="0"&&1/n==-Y?"-0":i}function xn(n){if(n!=null){try{return Uo.call(n)}catch{}try{return n+""}catch{}}return""}function K1(n,i){return qt(ne,function(u){var m="_."+u[0];i&u[1]&&!No(n,m)&&n.push(m)}),n.sort()}function jd(n){if(n instanceof Te)return n.clone();var i=new Gt(n.__wrapped__,n.__chain__);return i.__actions__=Rt(n.__actions__),i.__index__=n.__index__,i.__values__=n.__values__,i}function V1(n,i,u){(u?_t(n,i,u):i===r)?i=1:i=it(xe(i),0);var m=n==null?0:n.length;if(!m||i<1)return[];for(var _=0,T=0,P=H(Yo(m/i));_<m;)P[T++]=Vt(n,_,_+=i);return P}function Y1(n){for(var i=-1,u=n==null?0:n.length,m=0,_=[];++i<u;){var T=n[i];T&&(_[m++]=T)}return _}function X1(){var n=arguments.length;if(!n)return[];for(var i=H(n-1),u=arguments[0],m=n;m--;)i[m-1]=arguments[m];return Gr(be(u)?Rt(u):[u],pt(i,1))}var J1=_e(function(n,i){return Ye(n)?_i(n,pt(i,1,Ye,!0)):[]}),Q1=_e(function(n,i){var u=Yt(i);return Ye(u)&&(u=r),Ye(n)?_i(n,pt(i,1,Ye,!0),pe(u,2)):[]}),eb=_e(function(n,i){var u=Yt(i);return Ye(u)&&(u=r),Ye(n)?_i(n,pt(i,1,Ye,!0),r,u):[]});function tb(n,i,u){var m=n==null?0:n.length;return m?(i=u||i===r?1:xe(i),Vt(n,i<0?0:i,m)):[]}function rb(n,i,u){var m=n==null?0:n.length;return m?(i=u||i===r?1:xe(i),i=m-i,Vt(n,0,i<0?0:i)):[]}function nb(n,i){return n&&n.length?ss(n,pe(i,3),!0,!0):[]}function ib(n,i){return n&&n.length?ss(n,pe(i,3),!0):[]}function ob(n,i,u,m){var _=n==null?0:n.length;return _?(u&&typeof u!="number"&&_t(n,i,u)&&(u=0,m=_),Xw(n,i,u,m)):[]}function zd(n,i,u){var m=n==null?0:n.length;if(!m)return-1;var _=u==null?0:xe(u);return _<0&&(_=it(m+_,0)),jo(n,pe(i,3),_)}function Wd(n,i,u){var m=n==null?0:n.length;if(!m)return-1;var _=m-1;return u!==r&&(_=xe(u),_=u<0?it(m+_,0):yt(_,m-1)),jo(n,pe(i,3),_,!0)}function Bd(n){var i=n==null?0:n.length;return i?pt(n,1):[]}function sb(n){var i=n==null?0:n.length;return i?pt(n,Y):[]}function ab(n,i){var u=n==null?0:n.length;return u?(i=i===r?1:xe(i),pt(n,i)):[]}function ub(n){for(var i=-1,u=n==null?0:n.length,m={};++i<u;){var _=n[i];m[_[0]]=_[1]}return m}function Ud(n){return n&&n.length?n[0]:r}function lb(n,i,u){var m=n==null?0:n.length;if(!m)return-1;var _=u==null?0:xe(u);return _<0&&(_=it(m+_,0)),Bn(n,i,_)}function cb(n){var i=n==null?0:n.length;return i?Vt(n,0,-1):[]}var fb=_e(function(n){var i=Be(n,bu);return i.length&&i[0]===n[0]?cu(i):[]}),db=_e(function(n){var i=Yt(n),u=Be(n,bu);return i===Yt(u)?i=r:u.pop(),u.length&&u[0]===n[0]?cu(u,pe(i,2)):[]}),pb=_e(function(n){var i=Yt(n),u=Be(n,bu);return i=typeof i=="function"?i:r,i&&u.pop(),u.length&&u[0]===n[0]?cu(u,r,i):[]});function hb(n,i){return n==null?"":cw.call(n,i)}function Yt(n){var i=n==null?0:n.length;return i?n[i-1]:r}function gb(n,i,u){var m=n==null?0:n.length;if(!m)return-1;var _=m;return u!==r&&(_=xe(u),_=_<0?it(m+_,0):yt(_,m-1)),i===i?Ky(n,i,_):jo(n,Ef,_,!0)}function vb(n,i){return n&&n.length?ed(n,xe(i)):r}var mb=_e(Hd);function Hd(n,i){return n&&n.length&&i&&i.length?hu(n,i):n}function yb(n,i,u){return n&&n.length&&i&&i.length?hu(n,i,pe(u,2)):n}function wb(n,i,u){return n&&n.length&&i&&i.length?hu(n,i,r,u):n}var bb=$r(function(n,i){var u=n==null?0:n.length,m=su(n,i);return nd(n,Be(i,function(_){return Ir(_,u)?+_:_}).sort(pd)),m});function xb(n,i){var u=[];if(!(n&&n.length))return u;var m=-1,_=[],T=n.length;for(i=pe(i,3);++m<T;){var P=n[m];i(P,m,n)&&(u.push(P),_.push(m))}return nd(n,_),u}function Lu(n){return n==null?n:hw.call(n)}function Sb(n,i,u){var m=n==null?0:n.length;return m?(u&&typeof u!="number"&&_t(n,i,u)?(i=0,u=m):(i=i==null?0:xe(i),u=u===r?m:xe(u)),Vt(n,i,u)):[]}function Eb(n,i){return os(n,i)}function _b(n,i,u){return mu(n,i,pe(u,2))}function Ab(n,i){var u=n==null?0:n.length;if(u){var m=os(n,i);if(m<u&&or(n[m],i))return m}return-1}function Ob(n,i){return os(n,i,!0)}function Tb(n,i,u){return mu(n,i,pe(u,2),!0)}function Rb(n,i){var u=n==null?0:n.length;if(u){var m=os(n,i,!0)-1;if(or(n[m],i))return m}return-1}function Pb(n){return n&&n.length?od(n):[]}function Cb(n,i){return n&&n.length?od(n,pe(i,2)):[]}function kb(n){var i=n==null?0:n.length;return i?Vt(n,1,i):[]}function $b(n,i,u){return n&&n.length?(i=u||i===r?1:xe(i),Vt(n,0,i<0?0:i)):[]}function Ib(n,i,u){var m=n==null?0:n.length;return m?(i=u||i===r?1:xe(i),i=m-i,Vt(n,i<0?0:i,m)):[]}function Lb(n,i){return n&&n.length?ss(n,pe(i,3),!1,!0):[]}function Mb(n,i){return n&&n.length?ss(n,pe(i,3)):[]}var Fb=_e(function(n){return Xr(pt(n,1,Ye,!0))}),Db=_e(function(n){var i=Yt(n);return Ye(i)&&(i=r),Xr(pt(n,1,Ye,!0),pe(i,2))}),Nb=_e(function(n){var i=Yt(n);return i=typeof i=="function"?i:r,Xr(pt(n,1,Ye,!0),r,i)});function jb(n){return n&&n.length?Xr(n):[]}function zb(n,i){return n&&n.length?Xr(n,pe(i,2)):[]}function Wb(n,i){return i=typeof i=="function"?i:r,n&&n.length?Xr(n,r,i):[]}function Mu(n){if(!(n&&n.length))return[];var i=0;return n=Zr(n,function(u){if(Ye(u))return i=it(u.length,i),!0}),Ja(i,function(u){return Be(n,Va(u))})}function qd(n,i){if(!(n&&n.length))return[];var u=Mu(n);return i==null?u:Be(u,function(m){return Mt(i,r,m)})}var Bb=_e(function(n,i){return Ye(n)?_i(n,i):[]}),Ub=_e(function(n){return wu(Zr(n,Ye))}),Hb=_e(function(n){var i=Yt(n);return Ye(i)&&(i=r),wu(Zr(n,Ye),pe(i,2))}),qb=_e(function(n){var i=Yt(n);return i=typeof i=="function"?i:r,wu(Zr(n,Ye),r,i)}),Zb=_e(Mu);function Gb(n,i){return ld(n||[],i||[],Ei)}function Kb(n,i){return ld(n||[],i||[],Ti)}var Vb=_e(function(n){var i=n.length,u=i>1?n[i-1]:r;return u=typeof u=="function"?(n.pop(),u):r,qd(n,u)});function Zd(n){var i=A(n);return i.__chain__=!0,i}function Yb(n,i){return i(n),n}function gs(n,i){return i(n)}var Xb=$r(function(n){var i=n.length,u=i?n[0]:0,m=this.__wrapped__,_=function(T){return su(T,n)};return i>1||this.__actions__.length||!(m instanceof Te)||!Ir(u)?this.thru(_):(m=m.slice(u,+u+(i?1:0)),m.__actions__.push({func:gs,args:[_],thisArg:r}),new Gt(m,this.__chain__).thru(function(T){return i&&!T.length&&T.push(r),T}))});function Jb(){return Zd(this)}function Qb(){return new Gt(this.value(),this.__chain__)}function ex(){this.__values__===r&&(this.__values__=sp(this.value()));var n=this.__index__>=this.__values__.length,i=n?r:this.__values__[this.__index__++];return{done:n,value:i}}function tx(){return this}function rx(n){for(var i,u=this;u instanceof es;){var m=jd(u);m.__index__=0,m.__values__=r,i?_.__wrapped__=m:i=m;var _=m;u=u.__wrapped__}return _.__wrapped__=n,i}function nx(){var n=this.__wrapped__;if(n instanceof Te){var i=n;return this.__actions__.length&&(i=new Te(this)),i=i.reverse(),i.__actions__.push({func:gs,args:[Lu],thisArg:r}),new Gt(i,this.__chain__)}return this.thru(Lu)}function ix(){return ud(this.__wrapped__,this.__actions__)}var ox=as(function(n,i,u){Fe.call(n,u)?++n[u]:Cr(n,u,1)});function sx(n,i,u){var m=be(n)?xf:Yw;return u&&_t(n,i,u)&&(i=r),m(n,pe(i,3))}function ax(n,i){var u=be(n)?Zr:qf;return u(n,pe(i,3))}var ux=wd(zd),lx=wd(Wd);function cx(n,i){return pt(vs(n,i),1)}function fx(n,i){return pt(vs(n,i),Y)}function dx(n,i,u){return u=u===r?1:xe(u),pt(vs(n,i),u)}function Gd(n,i){var u=be(n)?qt:Yr;return u(n,pe(i,3))}function Kd(n,i){var u=be(n)?ky:Hf;return u(n,pe(i,3))}var px=as(function(n,i,u){Fe.call(n,u)?n[u].push(i):Cr(n,u,[i])});function hx(n,i,u,m){n=Pt(n)?n:ei(n),u=u&&!m?xe(u):0;var _=n.length;return u<0&&(u=it(_+u,0)),xs(n)?u<=_&&n.indexOf(i,u)>-1:!!_&&Bn(n,i,u)>-1}var gx=_e(function(n,i,u){var m=-1,_=typeof i=="function",T=Pt(n)?H(n.length):[];return Yr(n,function(P){T[++m]=_?Mt(i,P,u):Ai(P,i,u)}),T}),vx=as(function(n,i,u){Cr(n,u,i)});function vs(n,i){var u=be(n)?Be:Xf;return u(n,pe(i,3))}function mx(n,i,u,m){return n==null?[]:(be(i)||(i=i==null?[]:[i]),u=m?r:u,be(u)||(u=u==null?[]:[u]),td(n,i,u))}var yx=as(function(n,i,u){n[u?0:1].push(i)},function(){return[[],[]]});function wx(n,i,u){var m=be(n)?Ga:Af,_=arguments.length<3;return m(n,pe(i,4),u,_,Yr)}function bx(n,i,u){var m=be(n)?$y:Af,_=arguments.length<3;return m(n,pe(i,4),u,_,Hf)}function xx(n,i){var u=be(n)?Zr:qf;return u(n,ws(pe(i,3)))}function Sx(n){var i=be(n)?zf:h1;return i(n)}function Ex(n,i,u){(u?_t(n,i,u):i===r)?i=1:i=xe(i);var m=be(n)?qw:g1;return m(n,i)}function _x(n){var i=be(n)?Zw:m1;return i(n)}function Ax(n){if(n==null)return 0;if(Pt(n))return xs(n)?Hn(n):n.length;var i=wt(n);return i==at||i==mt?n.size:du(n).length}function Ox(n,i,u){var m=be(n)?Ka:y1;return u&&_t(n,i,u)&&(i=r),m(n,pe(i,3))}var Tx=_e(function(n,i){if(n==null)return[];var u=i.length;return u>1&&_t(n,i[0],i[1])?i=[]:u>2&&_t(i[0],i[1],i[2])&&(i=[i[0]]),td(n,pt(i,1),[])}),ms=aw||function(){return dt.Date.now()};function Rx(n,i){if(typeof i!="function")throw new Zt(l);return n=xe(n),function(){if(--n<1)return i.apply(this,arguments)}}function Vd(n,i,u){return i=u?r:i,i=n&&i==null?n.length:i,kr(n,B,r,r,r,r,i)}function Yd(n,i){var u;if(typeof i!="function")throw new Zt(l);return n=xe(n),function(){return--n>0&&(u=i.apply(this,arguments)),n<=1&&(i=r),u}}var Fu=_e(function(n,i,u){var m=b;if(u.length){var _=Kr(u,Jn(Fu));m|=O}return kr(n,m,i,u,_)}),Xd=_e(function(n,i,u){var m=b|p;if(u.length){var _=Kr(u,Jn(Xd));m|=O}return kr(i,m,n,u,_)});function Jd(n,i,u){i=u?r:i;var m=kr(n,E,r,r,r,r,r,i);return m.placeholder=Jd.placeholder,m}function Qd(n,i,u){i=u?r:i;var m=kr(n,R,r,r,r,r,r,i);return m.placeholder=Qd.placeholder,m}function ep(n,i,u){var m,_,T,P,$,j,V=0,X=!1,ee=!1,oe=!0;if(typeof n!="function")throw new Zt(l);i=Xt(i)||0,Ze(u)&&(X=!!u.leading,ee="maxWait"in u,T=ee?it(Xt(u.maxWait)||0,i):T,oe="trailing"in u?!!u.trailing:oe);function le(Xe){var sr=m,Fr=_;return m=_=r,V=Xe,P=n.apply(Fr,sr),P}function he(Xe){return V=Xe,$=Ci(Ae,i),X?le(Xe):P}function Se(Xe){var sr=Xe-j,Fr=Xe-V,wp=i-sr;return ee?yt(wp,T-Fr):wp}function ge(Xe){var sr=Xe-j,Fr=Xe-V;return j===r||sr>=i||sr<0||ee&&Fr>=T}function Ae(){var Xe=ms();if(ge(Xe))return Re(Xe);$=Ci(Ae,Se(Xe))}function Re(Xe){return $=r,oe&&m?le(Xe):(m=_=r,P)}function jt(){$!==r&&cd($),V=0,m=j=_=$=r}function At(){return $===r?P:Re(ms())}function zt(){var Xe=ms(),sr=ge(Xe);if(m=arguments,_=this,j=Xe,sr){if($===r)return he(j);if(ee)return cd($),$=Ci(Ae,i),le(j)}return $===r&&($=Ci(Ae,i)),P}return zt.cancel=jt,zt.flush=At,zt}var Px=_e(function(n,i){return Uf(n,1,i)}),Cx=_e(function(n,i,u){return Uf(n,Xt(i)||0,u)});function kx(n){return kr(n,M)}function ys(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new Zt(l);var u=function(){var m=arguments,_=i?i.apply(this,m):m[0],T=u.cache;if(T.has(_))return T.get(_);var P=n.apply(this,m);return u.cache=T.set(_,P)||T,P};return u.cache=new(ys.Cache||Pr),u}ys.Cache=Pr;function ws(n){if(typeof n!="function")throw new Zt(l);return function(){var i=arguments;switch(i.length){case 0:return!n.call(this);case 1:return!n.call(this,i[0]);case 2:return!n.call(this,i[0],i[1]);case 3:return!n.call(this,i[0],i[1],i[2])}return!n.apply(this,i)}}function $x(n){return Yd(2,n)}var Ix=w1(function(n,i){i=i.length==1&&be(i[0])?Be(i[0],Ft(pe())):Be(pt(i,1),Ft(pe()));var u=i.length;return _e(function(m){for(var _=-1,T=yt(m.length,u);++_<T;)m[_]=i[_].call(this,m[_]);return Mt(n,this,m)})}),Du=_e(function(n,i){var u=Kr(i,Jn(Du));return kr(n,O,r,i,u)}),tp=_e(function(n,i){var u=Kr(i,Jn(tp));return kr(n,k,r,i,u)}),Lx=$r(function(n,i){return kr(n,L,r,r,r,i)});function Mx(n,i){if(typeof n!="function")throw new Zt(l);return i=i===r?i:xe(i),_e(n,i)}function Fx(n,i){if(typeof n!="function")throw new Zt(l);return i=i==null?0:it(xe(i),0),_e(function(u){var m=u[i],_=Qr(u,0,i);return m&&Gr(_,m),Mt(n,this,_)})}function Dx(n,i,u){var m=!0,_=!0;if(typeof n!="function")throw new Zt(l);return Ze(u)&&(m="leading"in u?!!u.leading:m,_="trailing"in u?!!u.trailing:_),ep(n,i,{leading:m,maxWait:i,trailing:_})}function Nx(n){return Vd(n,1)}function jx(n,i){return Du(xu(i),n)}function zx(){if(!arguments.length)return[];var n=arguments[0];return be(n)?n:[n]}function Wx(n){return Kt(n,w)}function Bx(n,i){return i=typeof i=="function"?i:r,Kt(n,w,i)}function Ux(n){return Kt(n,g|w)}function Hx(n,i){return i=typeof i=="function"?i:r,Kt(n,g|w,i)}function qx(n,i){return i==null||Bf(n,i,ut(i))}function or(n,i){return n===i||n!==n&&i!==i}var Zx=fs(lu),Gx=fs(function(n,i){return n>=i}),Sn=Kf((function(){return arguments})())?Kf:function(n){return Ke(n)&&Fe.call(n,"callee")&&!Lf.call(n,"callee")},be=H.isArray,Kx=gf?Ft(gf):r1;function Pt(n){return n!=null&&bs(n.length)&&!Lr(n)}function Ye(n){return Ke(n)&&Pt(n)}function Vx(n){return n===!0||n===!1||Ke(n)&&Et(n)==ve}var en=lw||Ku,Yx=vf?Ft(vf):n1;function Xx(n){return Ke(n)&&n.nodeType===1&&!ki(n)}function Jx(n){if(n==null)return!0;if(Pt(n)&&(be(n)||typeof n=="string"||typeof n.splice=="function"||en(n)||Qn(n)||Sn(n)))return!n.length;var i=wt(n);if(i==at||i==mt)return!n.size;if(Pi(n))return!du(n).length;for(var u in n)if(Fe.call(n,u))return!1;return!0}function Qx(n,i){return Oi(n,i)}function eS(n,i,u){u=typeof u=="function"?u:r;var m=u?u(n,i):r;return m===r?Oi(n,i,r,u):!!m}function Nu(n){if(!Ke(n))return!1;var i=Et(n);return i==qe||i==Oe||typeof n.message=="string"&&typeof n.name=="string"&&!ki(n)}function tS(n){return typeof n=="number"&&Ff(n)}function Lr(n){if(!Ze(n))return!1;var i=Et(n);return i==ie||i==vt||i==ye||i==Ta}function rp(n){return typeof n=="number"&&n==xe(n)}function bs(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=te}function Ze(n){var i=typeof n;return n!=null&&(i=="object"||i=="function")}function Ke(n){return n!=null&&typeof n=="object"}var np=mf?Ft(mf):o1;function rS(n,i){return n===i||fu(n,i,Ru(i))}function nS(n,i,u){return u=typeof u=="function"?u:r,fu(n,i,Ru(i),u)}function iS(n){return ip(n)&&n!=+n}function oS(n){if(B1(n))throw new we(a);return Vf(n)}function sS(n){return n===null}function aS(n){return n==null}function ip(n){return typeof n=="number"||Ke(n)&&Et(n)==dr}function ki(n){if(!Ke(n)||Et(n)!=Ut)return!1;var i=Go(n);if(i===null)return!0;var u=Fe.call(i,"constructor")&&i.constructor;return typeof u=="function"&&u instanceof u&&Uo.call(u)==nw}var ju=yf?Ft(yf):s1;function uS(n){return rp(n)&&n>=-te&&n<=te}var op=wf?Ft(wf):a1;function xs(n){return typeof n=="string"||!be(n)&&Ke(n)&&Et(n)==Ur}function Nt(n){return typeof n=="symbol"||Ke(n)&&Et(n)==pn}var Qn=bf?Ft(bf):u1;function lS(n){return n===r}function cS(n){return Ke(n)&&wt(n)==Hr}function fS(n){return Ke(n)&&Et(n)==Lo}var dS=fs(pu),pS=fs(function(n,i){return n<=i});function sp(n){if(!n)return[];if(Pt(n))return xs(n)?nr(n):Rt(n);if(yi&&n[yi])return qy(n[yi]());var i=wt(n),u=i==at?eu:i==mt?zo:ei;return u(n)}function Mr(n){if(!n)return n===0?n:0;if(n=Xt(n),n===Y||n===-Y){var i=n<0?-1:1;return i*de}return n===n?n:0}function xe(n){var i=Mr(n),u=i%1;return i===i?u?i-u:i:0}function ap(n){return n?yn(xe(n),0,Q):0}function Xt(n){if(typeof n=="number")return n;if(Nt(n))return Z;if(Ze(n)){var i=typeof n.valueOf=="function"?n.valueOf():n;n=Ze(i)?i+"":i}if(typeof n!="string")return n===0?n:+n;n=Of(n);var u=K0.test(n);return u||Y0.test(n)?Ry(n.slice(2),u?2:8):G0.test(n)?Z:+n}function up(n){return hr(n,Ct(n))}function hS(n){return n?yn(xe(n),-te,te):n===0?n:0}function ke(n){return n==null?"":Dt(n)}var gS=Yn(function(n,i){if(Pi(i)||Pt(i)){hr(i,ut(i),n);return}for(var u in i)Fe.call(i,u)&&Ei(n,u,i[u])}),lp=Yn(function(n,i){hr(i,Ct(i),n)}),Ss=Yn(function(n,i,u,m){hr(i,Ct(i),n,m)}),vS=Yn(function(n,i,u,m){hr(i,ut(i),n,m)}),mS=$r(su);function yS(n,i){var u=Vn(n);return i==null?u:Wf(u,i)}var wS=_e(function(n,i){n=Ne(n);var u=-1,m=i.length,_=m>2?i[2]:r;for(_&&_t(i[0],i[1],_)&&(m=1);++u<m;)for(var T=i[u],P=Ct(T),$=-1,j=P.length;++$<j;){var V=P[$],X=n[V];(X===r||or(X,Zn[V])&&!Fe.call(n,V))&&(n[V]=T[V])}return n}),bS=_e(function(n){return n.push(r,Od),Mt(cp,r,n)});function xS(n,i){return Sf(n,pe(i,3),pr)}function SS(n,i){return Sf(n,pe(i,3),uu)}function ES(n,i){return n==null?n:au(n,pe(i,3),Ct)}function _S(n,i){return n==null?n:Zf(n,pe(i,3),Ct)}function AS(n,i){return n&&pr(n,pe(i,3))}function OS(n,i){return n&&uu(n,pe(i,3))}function TS(n){return n==null?[]:ns(n,ut(n))}function RS(n){return n==null?[]:ns(n,Ct(n))}function zu(n,i,u){var m=n==null?r:wn(n,i);return m===r?u:m}function PS(n,i){return n!=null&&Pd(n,i,Jw)}function Wu(n,i){return n!=null&&Pd(n,i,Qw)}var CS=xd(function(n,i,u){i!=null&&typeof i.toString!="function"&&(i=Ho.call(i)),n[i]=u},Uu(kt)),kS=xd(function(n,i,u){i!=null&&typeof i.toString!="function"&&(i=Ho.call(i)),Fe.call(n,i)?n[i].push(u):n[i]=[u]},pe),$S=_e(Ai);function ut(n){return Pt(n)?jf(n):du(n)}function Ct(n){return Pt(n)?jf(n,!0):l1(n)}function IS(n,i){var u={};return i=pe(i,3),pr(n,function(m,_,T){Cr(u,i(m,_,T),m)}),u}function LS(n,i){var u={};return i=pe(i,3),pr(n,function(m,_,T){Cr(u,_,i(m,_,T))}),u}var MS=Yn(function(n,i,u){is(n,i,u)}),cp=Yn(function(n,i,u,m){is(n,i,u,m)}),FS=$r(function(n,i){var u={};if(n==null)return u;var m=!1;i=Be(i,function(T){return T=Jr(T,n),m||(m=T.length>1),T}),hr(n,Ou(n),u),m&&(u=Kt(u,g|d|w,C1));for(var _=i.length;_--;)yu(u,i[_]);return u});function DS(n,i){return fp(n,ws(pe(i)))}var NS=$r(function(n,i){return n==null?{}:f1(n,i)});function fp(n,i){if(n==null)return{};var u=Be(Ou(n),function(m){return[m]});return i=pe(i),rd(n,u,function(m,_){return i(m,_[0])})}function jS(n,i,u){i=Jr(i,n);var m=-1,_=i.length;for(_||(_=1,n=r);++m<_;){var T=n==null?r:n[gr(i[m])];T===r&&(m=_,T=u),n=Lr(T)?T.call(n):T}return n}function zS(n,i,u){return n==null?n:Ti(n,i,u)}function WS(n,i,u,m){return m=typeof m=="function"?m:r,n==null?n:Ti(n,i,u,m)}var dp=_d(ut),pp=_d(Ct);function BS(n,i,u){var m=be(n),_=m||en(n)||Qn(n);if(i=pe(i,4),u==null){var T=n&&n.constructor;_?u=m?new T:[]:Ze(n)?u=Lr(T)?Vn(Go(n)):{}:u={}}return(_?qt:pr)(n,function(P,$,j){return i(u,P,$,j)}),u}function US(n,i){return n==null?!0:yu(n,i)}function HS(n,i,u){return n==null?n:ad(n,i,xu(u))}function qS(n,i,u,m){return m=typeof m=="function"?m:r,n==null?n:ad(n,i,xu(u),m)}function ei(n){return n==null?[]:Qa(n,ut(n))}function ZS(n){return n==null?[]:Qa(n,Ct(n))}function GS(n,i,u){return u===r&&(u=i,i=r),u!==r&&(u=Xt(u),u=u===u?u:0),i!==r&&(i=Xt(i),i=i===i?i:0),yn(Xt(n),i,u)}function KS(n,i,u){return i=Mr(i),u===r?(u=i,i=0):u=Mr(u),n=Xt(n),e1(n,i,u)}function VS(n,i,u){if(u&&typeof u!="boolean"&&_t(n,i,u)&&(i=u=r),u===r&&(typeof i=="boolean"?(u=i,i=r):typeof n=="boolean"&&(u=n,n=r)),n===r&&i===r?(n=0,i=1):(n=Mr(n),i===r?(i=n,n=0):i=Mr(i)),n>i){var m=n;n=i,i=m}if(u||n%1||i%1){var _=Df();return yt(n+_*(i-n+Ty("1e-"+((_+"").length-1))),i)}return gu(n,i)}var YS=Xn(function(n,i,u){return i=i.toLowerCase(),n+(u?hp(i):i)});function hp(n){return Bu(ke(n).toLowerCase())}function gp(n){return n=ke(n),n&&n.replace(J0,zy).replace(my,"")}function XS(n,i,u){n=ke(n),i=Dt(i);var m=n.length;u=u===r?m:yn(xe(u),0,m);var _=u;return u-=i.length,u>=0&&n.slice(u,_)==i}function JS(n){return n=ke(n),n&&$0.test(n)?n.replace(qc,Wy):n}function QS(n){return n=ke(n),n&&N0.test(n)?n.replace(Da,"\\$&"):n}var eE=Xn(function(n,i,u){return n+(u?"-":"")+i.toLowerCase()}),tE=Xn(function(n,i,u){return n+(u?" ":"")+i.toLowerCase()}),rE=yd("toLowerCase");function nE(n,i,u){n=ke(n),i=xe(i);var m=i?Hn(n):0;if(!i||m>=i)return n;var _=(i-m)/2;return cs(Xo(_),u)+n+cs(Yo(_),u)}function iE(n,i,u){n=ke(n),i=xe(i);var m=i?Hn(n):0;return i&&m<i?n+cs(i-m,u):n}function oE(n,i,u){n=ke(n),i=xe(i);var m=i?Hn(n):0;return i&&m<i?cs(i-m,u)+n:n}function sE(n,i,u){return u||i==null?i=0:i&&(i=+i),pw(ke(n).replace(Na,""),i||0)}function aE(n,i,u){return(u?_t(n,i,u):i===r)?i=1:i=xe(i),vu(ke(n),i)}function uE(){var n=arguments,i=ke(n[0]);return n.length<3?i:i.replace(n[1],n[2])}var lE=Xn(function(n,i,u){return n+(u?"_":"")+i.toLowerCase()});function cE(n,i,u){return u&&typeof u!="number"&&_t(n,i,u)&&(i=u=r),u=u===r?Q:u>>>0,u?(n=ke(n),n&&(typeof i=="string"||i!=null&&!ju(i))&&(i=Dt(i),!i&&Un(n))?Qr(nr(n),0,u):n.split(i,u)):[]}var fE=Xn(function(n,i,u){return n+(u?" ":"")+Bu(i)});function dE(n,i,u){return n=ke(n),u=u==null?0:yn(xe(u),0,n.length),i=Dt(i),n.slice(u,u+i.length)==i}function pE(n,i,u){var m=A.templateSettings;u&&_t(n,i,u)&&(i=r),n=ke(n),i=Ss({},i,m,Ad);var _=Ss({},i.imports,m.imports,Ad),T=ut(_),P=Qa(_,T),$,j,V=0,X=i.interpolate||Mo,ee="__p += '",oe=tu((i.escape||Mo).source+"|"+X.source+"|"+(X===Zc?Z0:Mo).source+"|"+(i.evaluate||Mo).source+"|$","g"),le="//# sourceURL="+(Fe.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Sy+"]")+`
|
|
185
|
-
`;n.replace(oe,function(ge,
|
|
186
|
-
__e(`+
|
|
187
|
-
'`),At&&(
|
|
182
|
+
*/var qk=go.exports,cv;function Zk(){return cv||(cv=1,(function(e,t){(function(){var r,i="4.17.21",a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",m=500,v="__lodash_placeholder__",g=1,p=2,w=4,x=1,f=2,b=1,h=2,S=4,E=8,R=16,O=32,k=64,B=128,M=256,F=512,G=30,N="...",L=800,U=16,q=1,C=2,J=3,X=1/0,te=9007199254740991,de=17976931348623157e292,Z=NaN,Q=4294967295,ae=Q-1,ue=Q>>>1,ne=[["ary",B],["bind",b],["bindKey",h],["curry",E],["curryRight",R],["flip",F],["partial",O],["partialRight",k],["rearg",M]],ce="[object Arguments]",fe="[object Array]",ye="[object AsyncFunction]",ve="[object Boolean]",Ee="[object Date]",Ae="[object DOMException]",qe="[object Error]",ie="[object Function]",mt="[object GeneratorFunction]",ut="[object Map]",vr="[object Number]",qo="[object Null]",Gt="[object Object]",Zo="[object Promise]",Gs="[object Proxy]",Mt="[object RegExp]",yt="[object Set]",Kr="[object String]",bn="[object Symbol]",Ai="[object Undefined]",Vr="[object WeakMap]",Go="[object WeakSet]",Xr="[object ArrayBuffer]",$r="[object DataView]",Ks="[object Float32Array]",Vs="[object Float64Array]",Xs="[object Int8Array]",Ys="[object Int16Array]",Js="[object Int32Array]",Qs="[object Uint8Array]",eu="[object Uint8ClampedArray]",tu="[object Uint16Array]",ru="[object Uint32Array]",$0=/\b__p \+= '';/g,I0=/\b(__p \+=) '' \+/g,L0=/(__e\(.*?\)|\b__t\)) \+\n'';/g,kf=/&(?:amp|lt|gt|quot|#39);/g,$f=/[&<>"']/g,M0=RegExp(kf.source),F0=RegExp($f.source),D0=/<%-([\s\S]+?)%>/g,N0=/<%([\s\S]+?)%>/g,If=/<%=([\s\S]+?)%>/g,j0=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,z0=/^\w*$/,W0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nu=/[\\^$.*+?()[\]{}|]/g,B0=RegExp(nu.source),iu=/^\s+/,U0=/\s/,H0=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,q0=/\{\n\/\* \[wrapped with (.+)\] \*/,Z0=/,? & /,G0=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,K0=/[()=,{}\[\]\/\s]/,V0=/\\(\\)?/g,X0=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Lf=/\w*$/,Y0=/^[-+]0x[0-9a-f]+$/i,J0=/^0b[01]+$/i,Q0=/^\[object .+?Constructor\]$/,ew=/^0o[0-7]+$/i,tw=/^(?:0|[1-9]\d*)$/,rw=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ko=/($^)/,nw=/['\n\r\u2028\u2029\\]/g,Vo="\\ud800-\\udfff",iw="\\u0300-\\u036f",ow="\\ufe20-\\ufe2f",aw="\\u20d0-\\u20ff",Mf=iw+ow+aw,Ff="\\u2700-\\u27bf",Df="a-z\\xdf-\\xf6\\xf8-\\xff",sw="\\xac\\xb1\\xd7\\xf7",uw="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",lw="\\u2000-\\u206f",cw=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Nf="A-Z\\xc0-\\xd6\\xd8-\\xde",jf="\\ufe0e\\ufe0f",zf=sw+uw+lw+cw,ou="['’]",fw="["+Vo+"]",Wf="["+zf+"]",Xo="["+Mf+"]",Bf="\\d+",dw="["+Ff+"]",Uf="["+Df+"]",Hf="[^"+Vo+zf+Bf+Ff+Df+Nf+"]",au="\\ud83c[\\udffb-\\udfff]",pw="(?:"+Xo+"|"+au+")",qf="[^"+Vo+"]",su="(?:\\ud83c[\\udde6-\\uddff]){2}",uu="[\\ud800-\\udbff][\\udc00-\\udfff]",Vn="["+Nf+"]",Zf="\\u200d",Gf="(?:"+Uf+"|"+Hf+")",hw="(?:"+Vn+"|"+Hf+")",Kf="(?:"+ou+"(?:d|ll|m|re|s|t|ve))?",Vf="(?:"+ou+"(?:D|LL|M|RE|S|T|VE))?",Xf=pw+"?",Yf="["+jf+"]?",gw="(?:"+Zf+"(?:"+[qf,su,uu].join("|")+")"+Yf+Xf+")*",vw="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",mw="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Jf=Yf+Xf+gw,yw="(?:"+[dw,su,uu].join("|")+")"+Jf,ww="(?:"+[qf+Xo+"?",Xo,su,uu,fw].join("|")+")",bw=RegExp(ou,"g"),xw=RegExp(Xo,"g"),lu=RegExp(au+"(?="+au+")|"+ww+Jf,"g"),Sw=RegExp([Vn+"?"+Uf+"+"+Kf+"(?="+[Wf,Vn,"$"].join("|")+")",hw+"+"+Vf+"(?="+[Wf,Vn+Gf,"$"].join("|")+")",Vn+"?"+Gf+"+"+Kf,Vn+"+"+Vf,mw,vw,Bf,yw].join("|"),"g"),Ew=RegExp("["+Zf+Vo+Mf+jf+"]"),_w=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ow=["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"],Aw=-1,We={};We[Ks]=We[Vs]=We[Xs]=We[Ys]=We[Js]=We[Qs]=We[eu]=We[tu]=We[ru]=!0,We[ce]=We[fe]=We[Xr]=We[ve]=We[$r]=We[Ee]=We[qe]=We[ie]=We[ut]=We[vr]=We[Gt]=We[Mt]=We[yt]=We[Kr]=We[Vr]=!1;var je={};je[ce]=je[fe]=je[Xr]=je[$r]=je[ve]=je[Ee]=je[Ks]=je[Vs]=je[Xs]=je[Ys]=je[Js]=je[ut]=je[vr]=je[Gt]=je[Mt]=je[yt]=je[Kr]=je[bn]=je[Qs]=je[eu]=je[tu]=je[ru]=!0,je[qe]=je[ie]=je[Vr]=!1;var Tw={À:"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"},Rw={"&":"&","<":"<",">":">",'"':""","'":"'"},Pw={"&":"&","<":"<",">":">",""":'"',"'":"'"},Cw={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},kw=parseFloat,$w=parseInt,Qf=typeof Da=="object"&&Da&&Da.Object===Object&&Da,Iw=typeof self=="object"&&self&&self.Object===Object&&self,dt=Qf||Iw||Function("return this")(),cu=t&&!t.nodeType&&t,xn=cu&&!0&&e&&!e.nodeType&&e,ed=xn&&xn.exports===cu,fu=ed&&Qf.process,Kt=(function(){try{var D=xn&&xn.require&&xn.require("util").types;return D||fu&&fu.binding&&fu.binding("util")}catch{}})(),td=Kt&&Kt.isArrayBuffer,rd=Kt&&Kt.isDate,nd=Kt&&Kt.isMap,id=Kt&&Kt.isRegExp,od=Kt&&Kt.isSet,ad=Kt&&Kt.isTypedArray;function Ft(D,K,H){switch(H.length){case 0:return D.call(K);case 1:return D.call(K,H[0]);case 2:return D.call(K,H[0],H[1]);case 3:return D.call(K,H[0],H[1],H[2])}return D.apply(K,H)}function Lw(D,K,H,se){for(var we=-1,Pe=D==null?0:D.length;++we<Pe;){var ot=D[we];K(se,ot,H(ot),D)}return se}function Vt(D,K){for(var H=-1,se=D==null?0:D.length;++H<se&&K(D[H],H,D)!==!1;);return D}function Mw(D,K){for(var H=D==null?0:D.length;H--&&K(D[H],H,D)!==!1;);return D}function sd(D,K){for(var H=-1,se=D==null?0:D.length;++H<se;)if(!K(D[H],H,D))return!1;return!0}function Yr(D,K){for(var H=-1,se=D==null?0:D.length,we=0,Pe=[];++H<se;){var ot=D[H];K(ot,H,D)&&(Pe[we++]=ot)}return Pe}function Yo(D,K){var H=D==null?0:D.length;return!!H&&Xn(D,K,0)>-1}function du(D,K,H){for(var se=-1,we=D==null?0:D.length;++se<we;)if(H(K,D[se]))return!0;return!1}function Be(D,K){for(var H=-1,se=D==null?0:D.length,we=Array(se);++H<se;)we[H]=K(D[H],H,D);return we}function Jr(D,K){for(var H=-1,se=K.length,we=D.length;++H<se;)D[we+H]=K[H];return D}function pu(D,K,H,se){var we=-1,Pe=D==null?0:D.length;for(se&&Pe&&(H=D[++we]);++we<Pe;)H=K(H,D[we],we,D);return H}function Fw(D,K,H,se){var we=D==null?0:D.length;for(se&&we&&(H=D[--we]);we--;)H=K(H,D[we],we,D);return H}function hu(D,K){for(var H=-1,se=D==null?0:D.length;++H<se;)if(K(D[H],H,D))return!0;return!1}var Dw=gu("length");function Nw(D){return D.split("")}function jw(D){return D.match(G0)||[]}function ud(D,K,H){var se;return H(D,function(we,Pe,ot){if(K(we,Pe,ot))return se=Pe,!1}),se}function Jo(D,K,H,se){for(var we=D.length,Pe=H+(se?1:-1);se?Pe--:++Pe<we;)if(K(D[Pe],Pe,D))return Pe;return-1}function Xn(D,K,H){return K===K?Yw(D,K,H):Jo(D,ld,H)}function zw(D,K,H,se){for(var we=H-1,Pe=D.length;++we<Pe;)if(se(D[we],K))return we;return-1}function ld(D){return D!==D}function cd(D,K){var H=D==null?0:D.length;return H?mu(D,K)/H:Z}function gu(D){return function(K){return K==null?r:K[D]}}function vu(D){return function(K){return D==null?r:D[K]}}function fd(D,K,H,se,we){return we(D,function(Pe,ot,Ne){H=se?(se=!1,Pe):K(H,Pe,ot,Ne)}),H}function Ww(D,K){var H=D.length;for(D.sort(K);H--;)D[H]=D[H].value;return D}function mu(D,K){for(var H,se=-1,we=D.length;++se<we;){var Pe=K(D[se]);Pe!==r&&(H=H===r?Pe:H+Pe)}return H}function yu(D,K){for(var H=-1,se=Array(D);++H<D;)se[H]=K(H);return se}function Bw(D,K){return Be(K,function(H){return[H,D[H]]})}function dd(D){return D&&D.slice(0,vd(D)+1).replace(iu,"")}function Dt(D){return function(K){return D(K)}}function wu(D,K){return Be(K,function(H){return D[H]})}function Ti(D,K){return D.has(K)}function pd(D,K){for(var H=-1,se=D.length;++H<se&&Xn(K,D[H],0)>-1;);return H}function hd(D,K){for(var H=D.length;H--&&Xn(K,D[H],0)>-1;);return H}function Uw(D,K){for(var H=D.length,se=0;H--;)D[H]===K&&++se;return se}var Hw=vu(Tw),qw=vu(Rw);function Zw(D){return"\\"+Cw[D]}function Gw(D,K){return D==null?r:D[K]}function Yn(D){return Ew.test(D)}function Kw(D){return _w.test(D)}function Vw(D){for(var K,H=[];!(K=D.next()).done;)H.push(K.value);return H}function bu(D){var K=-1,H=Array(D.size);return D.forEach(function(se,we){H[++K]=[we,se]}),H}function gd(D,K){return function(H){return D(K(H))}}function Qr(D,K){for(var H=-1,se=D.length,we=0,Pe=[];++H<se;){var ot=D[H];(ot===K||ot===v)&&(D[H]=v,Pe[we++]=H)}return Pe}function Qo(D){var K=-1,H=Array(D.size);return D.forEach(function(se){H[++K]=se}),H}function Xw(D){var K=-1,H=Array(D.size);return D.forEach(function(se){H[++K]=[se,se]}),H}function Yw(D,K,H){for(var se=H-1,we=D.length;++se<we;)if(D[se]===K)return se;return-1}function Jw(D,K,H){for(var se=H+1;se--;)if(D[se]===K)return se;return se}function Jn(D){return Yn(D)?eb(D):Dw(D)}function sr(D){return Yn(D)?tb(D):Nw(D)}function vd(D){for(var K=D.length;K--&&U0.test(D.charAt(K)););return K}var Qw=vu(Pw);function eb(D){for(var K=lu.lastIndex=0;lu.test(D);)++K;return K}function tb(D){return D.match(lu)||[]}function rb(D){return D.match(Sw)||[]}var nb=(function D(K){K=K==null?dt:Qn.defaults(dt.Object(),K,Qn.pick(dt,Ow));var H=K.Array,se=K.Date,we=K.Error,Pe=K.Function,ot=K.Math,Ne=K.Object,xu=K.RegExp,ib=K.String,Xt=K.TypeError,ea=H.prototype,ob=Pe.prototype,ei=Ne.prototype,ta=K["__core-js_shared__"],ra=ob.toString,Fe=ei.hasOwnProperty,ab=0,md=(function(){var n=/[^.]+$/.exec(ta&&ta.keys&&ta.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})(),na=ei.toString,sb=ra.call(Ne),ub=dt._,lb=xu("^"+ra.call(Fe).replace(nu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ia=ed?K.Buffer:r,en=K.Symbol,oa=K.Uint8Array,yd=ia?ia.allocUnsafe:r,aa=gd(Ne.getPrototypeOf,Ne),wd=Ne.create,bd=ei.propertyIsEnumerable,sa=ea.splice,xd=en?en.isConcatSpreadable:r,Ri=en?en.iterator:r,Sn=en?en.toStringTag:r,ua=(function(){try{var n=Tn(Ne,"defineProperty");return n({},"",{}),n}catch{}})(),cb=K.clearTimeout!==dt.clearTimeout&&K.clearTimeout,fb=se&&se.now!==dt.Date.now&&se.now,db=K.setTimeout!==dt.setTimeout&&K.setTimeout,la=ot.ceil,ca=ot.floor,Su=Ne.getOwnPropertySymbols,pb=ia?ia.isBuffer:r,Sd=K.isFinite,hb=ea.join,gb=gd(Ne.keys,Ne),at=ot.max,wt=ot.min,vb=se.now,mb=K.parseInt,Ed=ot.random,yb=ea.reverse,Eu=Tn(K,"DataView"),Pi=Tn(K,"Map"),_u=Tn(K,"Promise"),ti=Tn(K,"Set"),Ci=Tn(K,"WeakMap"),ki=Tn(Ne,"create"),fa=Ci&&new Ci,ri={},wb=Rn(Eu),bb=Rn(Pi),xb=Rn(_u),Sb=Rn(ti),Eb=Rn(Ci),da=en?en.prototype:r,$i=da?da.valueOf:r,_d=da?da.toString:r;function A(n){if(Ve(n)&&!be(n)&&!(n instanceof Te)){if(n instanceof Yt)return n;if(Fe.call(n,"__wrapped__"))return Op(n)}return new Yt(n)}var ni=(function(){function n(){}return function(o){if(!Ze(o))return{};if(wd)return wd(o);n.prototype=o;var u=new n;return n.prototype=r,u}})();function pa(){}function Yt(n,o){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=r}A.templateSettings={escape:D0,evaluate:N0,interpolate:If,variable:"",imports:{_:A}},A.prototype=pa.prototype,A.prototype.constructor=A,Yt.prototype=ni(pa.prototype),Yt.prototype.constructor=Yt;function Te(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Q,this.__views__=[]}function _b(){var n=new Te(this.__wrapped__);return n.__actions__=Pt(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Pt(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Pt(this.__views__),n}function Ob(){if(this.__filtered__){var n=new Te(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function Ab(){var n=this.__wrapped__.value(),o=this.__dir__,u=be(n),y=o<0,_=u?n.length:0,T=N1(0,_,this.__views__),P=T.start,I=T.end,z=I-P,V=y?I:P-1,Y=this.__iteratees__,ee=Y.length,oe=0,le=wt(z,this.__takeCount__);if(!u||!y&&_==z&&le==z)return Kd(n,this.__actions__);var he=[];e:for(;z--&&oe<le;){V+=o;for(var Se=-1,ge=n[V];++Se<ee;){var Oe=Y[Se],Re=Oe.iteratee,zt=Oe.type,At=Re(ge);if(zt==C)ge=At;else if(!At){if(zt==q)continue e;break e}}he[oe++]=ge}return he}Te.prototype=ni(pa.prototype),Te.prototype.constructor=Te;function En(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var y=n[o];this.set(y[0],y[1])}}function Tb(){this.__data__=ki?ki(null):{},this.size=0}function Rb(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}function Pb(n){var o=this.__data__;if(ki){var u=o[n];return u===d?r:u}return Fe.call(o,n)?o[n]:r}function Cb(n){var o=this.__data__;return ki?o[n]!==r:Fe.call(o,n)}function kb(n,o){var u=this.__data__;return this.size+=this.has(n)?0:1,u[n]=ki&&o===r?d:o,this}En.prototype.clear=Tb,En.prototype.delete=Rb,En.prototype.get=Pb,En.prototype.has=Cb,En.prototype.set=kb;function Ir(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var y=n[o];this.set(y[0],y[1])}}function $b(){this.__data__=[],this.size=0}function Ib(n){var o=this.__data__,u=ha(o,n);if(u<0)return!1;var y=o.length-1;return u==y?o.pop():sa.call(o,u,1),--this.size,!0}function Lb(n){var o=this.__data__,u=ha(o,n);return u<0?r:o[u][1]}function Mb(n){return ha(this.__data__,n)>-1}function Fb(n,o){var u=this.__data__,y=ha(u,n);return y<0?(++this.size,u.push([n,o])):u[y][1]=o,this}Ir.prototype.clear=$b,Ir.prototype.delete=Ib,Ir.prototype.get=Lb,Ir.prototype.has=Mb,Ir.prototype.set=Fb;function Lr(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var y=n[o];this.set(y[0],y[1])}}function Db(){this.size=0,this.__data__={hash:new En,map:new(Pi||Ir),string:new En}}function Nb(n){var o=Aa(this,n).delete(n);return this.size-=o?1:0,o}function jb(n){return Aa(this,n).get(n)}function zb(n){return Aa(this,n).has(n)}function Wb(n,o){var u=Aa(this,n),y=u.size;return u.set(n,o),this.size+=u.size==y?0:1,this}Lr.prototype.clear=Db,Lr.prototype.delete=Nb,Lr.prototype.get=jb,Lr.prototype.has=zb,Lr.prototype.set=Wb;function _n(n){var o=-1,u=n==null?0:n.length;for(this.__data__=new Lr;++o<u;)this.add(n[o])}function Bb(n){return this.__data__.set(n,d),this}function Ub(n){return this.__data__.has(n)}_n.prototype.add=_n.prototype.push=Bb,_n.prototype.has=Ub;function ur(n){var o=this.__data__=new Ir(n);this.size=o.size}function Hb(){this.__data__=new Ir,this.size=0}function qb(n){var o=this.__data__,u=o.delete(n);return this.size=o.size,u}function Zb(n){return this.__data__.get(n)}function Gb(n){return this.__data__.has(n)}function Kb(n,o){var u=this.__data__;if(u instanceof Ir){var y=u.__data__;if(!Pi||y.length<a-1)return y.push([n,o]),this.size=++u.size,this;u=this.__data__=new Lr(y)}return u.set(n,o),this.size=u.size,this}ur.prototype.clear=Hb,ur.prototype.delete=qb,ur.prototype.get=Zb,ur.prototype.has=Gb,ur.prototype.set=Kb;function Od(n,o){var u=be(n),y=!u&&Pn(n),_=!u&&!y&&an(n),T=!u&&!y&&!_&&si(n),P=u||y||_||T,I=P?yu(n.length,ib):[],z=I.length;for(var V in n)(o||Fe.call(n,V))&&!(P&&(V=="length"||_&&(V=="offset"||V=="parent")||T&&(V=="buffer"||V=="byteLength"||V=="byteOffset")||Nr(V,z)))&&I.push(V);return I}function Ad(n){var o=n.length;return o?n[Mu(0,o-1)]:r}function Vb(n,o){return Ta(Pt(n),On(o,0,n.length))}function Xb(n){return Ta(Pt(n))}function Ou(n,o,u){(u!==r&&!lr(n[o],u)||u===r&&!(o in n))&&Mr(n,o,u)}function Ii(n,o,u){var y=n[o];(!(Fe.call(n,o)&&lr(y,u))||u===r&&!(o in n))&&Mr(n,o,u)}function ha(n,o){for(var u=n.length;u--;)if(lr(n[u][0],o))return u;return-1}function Yb(n,o,u,y){return tn(n,function(_,T,P){o(y,_,u(_),P)}),y}function Td(n,o){return n&&yr(o,lt(o),n)}function Jb(n,o){return n&&yr(o,kt(o),n)}function Mr(n,o,u){o=="__proto__"&&ua?ua(n,o,{configurable:!0,enumerable:!0,value:u,writable:!0}):n[o]=u}function Au(n,o){for(var u=-1,y=o.length,_=H(y),T=n==null;++u<y;)_[u]=T?r:al(n,o[u]);return _}function On(n,o,u){return n===n&&(u!==r&&(n=n<=u?n:u),o!==r&&(n=n>=o?n:o)),n}function Jt(n,o,u,y,_,T){var P,I=o&g,z=o&p,V=o&w;if(u&&(P=_?u(n,y,_,T):u(n)),P!==r)return P;if(!Ze(n))return n;var Y=be(n);if(Y){if(P=z1(n),!I)return Pt(n,P)}else{var ee=bt(n),oe=ee==ie||ee==mt;if(an(n))return Yd(n,I);if(ee==Gt||ee==ce||oe&&!_){if(P=z||oe?{}:vp(n),!I)return z?P1(n,Jb(P,n)):R1(n,Td(P,n))}else{if(!je[ee])return _?n:{};P=W1(n,ee,I)}}T||(T=new ur);var le=T.get(n);if(le)return le;T.set(n,P),qp(n)?n.forEach(function(ge){P.add(Jt(ge,o,u,ge,n,T))}):Up(n)&&n.forEach(function(ge,Oe){P.set(Oe,Jt(ge,o,u,Oe,n,T))});var he=V?z?Zu:qu:z?kt:lt,Se=Y?r:he(n);return Vt(Se||n,function(ge,Oe){Se&&(Oe=ge,ge=n[Oe]),Ii(P,Oe,Jt(ge,o,u,Oe,n,T))}),P}function Qb(n){var o=lt(n);return function(u){return Rd(u,n,o)}}function Rd(n,o,u){var y=u.length;if(n==null)return!y;for(n=Ne(n);y--;){var _=u[y],T=o[_],P=n[_];if(P===r&&!(_ in n)||!T(P))return!1}return!0}function Pd(n,o,u){if(typeof n!="function")throw new Xt(l);return zi(function(){n.apply(r,u)},o)}function Li(n,o,u,y){var _=-1,T=Yo,P=!0,I=n.length,z=[],V=o.length;if(!I)return z;u&&(o=Be(o,Dt(u))),y?(T=du,P=!1):o.length>=a&&(T=Ti,P=!1,o=new _n(o));e:for(;++_<I;){var Y=n[_],ee=u==null?Y:u(Y);if(Y=y||Y!==0?Y:0,P&&ee===ee){for(var oe=V;oe--;)if(o[oe]===ee)continue e;z.push(Y)}else T(o,ee,y)||z.push(Y)}return z}var tn=rp(mr),Cd=rp(Ru,!0);function e1(n,o){var u=!0;return tn(n,function(y,_,T){return u=!!o(y,_,T),u}),u}function ga(n,o,u){for(var y=-1,_=n.length;++y<_;){var T=n[y],P=o(T);if(P!=null&&(I===r?P===P&&!jt(P):u(P,I)))var I=P,z=T}return z}function t1(n,o,u,y){var _=n.length;for(u=xe(u),u<0&&(u=-u>_?0:_+u),y=y===r||y>_?_:xe(y),y<0&&(y+=_),y=u>y?0:Gp(y);u<y;)n[u++]=o;return n}function kd(n,o){var u=[];return tn(n,function(y,_,T){o(y,_,T)&&u.push(y)}),u}function pt(n,o,u,y,_){var T=-1,P=n.length;for(u||(u=U1),_||(_=[]);++T<P;){var I=n[T];o>0&&u(I)?o>1?pt(I,o-1,u,y,_):Jr(_,I):y||(_[_.length]=I)}return _}var Tu=np(),$d=np(!0);function mr(n,o){return n&&Tu(n,o,lt)}function Ru(n,o){return n&&$d(n,o,lt)}function va(n,o){return Yr(o,function(u){return jr(n[u])})}function An(n,o){o=nn(o,n);for(var u=0,y=o.length;n!=null&&u<y;)n=n[wr(o[u++])];return u&&u==y?n:r}function Id(n,o,u){var y=o(n);return be(n)?y:Jr(y,u(n))}function _t(n){return n==null?n===r?Ai:qo:Sn&&Sn in Ne(n)?D1(n):X1(n)}function Pu(n,o){return n>o}function r1(n,o){return n!=null&&Fe.call(n,o)}function n1(n,o){return n!=null&&o in Ne(n)}function i1(n,o,u){return n>=wt(o,u)&&n<at(o,u)}function Cu(n,o,u){for(var y=u?du:Yo,_=n[0].length,T=n.length,P=T,I=H(T),z=1/0,V=[];P--;){var Y=n[P];P&&o&&(Y=Be(Y,Dt(o))),z=wt(Y.length,z),I[P]=!u&&(o||_>=120&&Y.length>=120)?new _n(P&&Y):r}Y=n[0];var ee=-1,oe=I[0];e:for(;++ee<_&&V.length<z;){var le=Y[ee],he=o?o(le):le;if(le=u||le!==0?le:0,!(oe?Ti(oe,he):y(V,he,u))){for(P=T;--P;){var Se=I[P];if(!(Se?Ti(Se,he):y(n[P],he,u)))continue e}oe&&oe.push(he),V.push(le)}}return V}function o1(n,o,u,y){return mr(n,function(_,T,P){o(y,u(_),T,P)}),y}function Mi(n,o,u){o=nn(o,n),n=bp(n,o);var y=n==null?n:n[wr(er(o))];return y==null?r:Ft(y,n,u)}function Ld(n){return Ve(n)&&_t(n)==ce}function a1(n){return Ve(n)&&_t(n)==Xr}function s1(n){return Ve(n)&&_t(n)==Ee}function Fi(n,o,u,y,_){return n===o?!0:n==null||o==null||!Ve(n)&&!Ve(o)?n!==n&&o!==o:u1(n,o,u,y,Fi,_)}function u1(n,o,u,y,_,T){var P=be(n),I=be(o),z=P?fe:bt(n),V=I?fe:bt(o);z=z==ce?Gt:z,V=V==ce?Gt:V;var Y=z==Gt,ee=V==Gt,oe=z==V;if(oe&&an(n)){if(!an(o))return!1;P=!0,Y=!1}if(oe&&!Y)return T||(T=new ur),P||si(n)?pp(n,o,u,y,_,T):M1(n,o,z,u,y,_,T);if(!(u&x)){var le=Y&&Fe.call(n,"__wrapped__"),he=ee&&Fe.call(o,"__wrapped__");if(le||he){var Se=le?n.value():n,ge=he?o.value():o;return T||(T=new ur),_(Se,ge,u,y,T)}}return oe?(T||(T=new ur),F1(n,o,u,y,_,T)):!1}function l1(n){return Ve(n)&&bt(n)==ut}function ku(n,o,u,y){var _=u.length,T=_,P=!y;if(n==null)return!T;for(n=Ne(n);_--;){var I=u[_];if(P&&I[2]?I[1]!==n[I[0]]:!(I[0]in n))return!1}for(;++_<T;){I=u[_];var z=I[0],V=n[z],Y=I[1];if(P&&I[2]){if(V===r&&!(z in n))return!1}else{var ee=new ur;if(y)var oe=y(V,Y,z,n,o,ee);if(!(oe===r?Fi(Y,V,x|f,y,ee):oe))return!1}}return!0}function Md(n){if(!Ze(n)||q1(n))return!1;var o=jr(n)?lb:Q0;return o.test(Rn(n))}function c1(n){return Ve(n)&&_t(n)==Mt}function f1(n){return Ve(n)&&bt(n)==yt}function d1(n){return Ve(n)&&Ia(n.length)&&!!We[_t(n)]}function Fd(n){return typeof n=="function"?n:n==null?$t:typeof n=="object"?be(n)?jd(n[0],n[1]):Nd(n):ih(n)}function $u(n){if(!ji(n))return gb(n);var o=[];for(var u in Ne(n))Fe.call(n,u)&&u!="constructor"&&o.push(u);return o}function p1(n){if(!Ze(n))return V1(n);var o=ji(n),u=[];for(var y in n)y=="constructor"&&(o||!Fe.call(n,y))||u.push(y);return u}function Iu(n,o){return n<o}function Dd(n,o){var u=-1,y=Ct(n)?H(n.length):[];return tn(n,function(_,T,P){y[++u]=o(_,T,P)}),y}function Nd(n){var o=Ku(n);return o.length==1&&o[0][2]?yp(o[0][0],o[0][1]):function(u){return u===n||ku(u,n,o)}}function jd(n,o){return Xu(n)&&mp(o)?yp(wr(n),o):function(u){var y=al(u,n);return y===r&&y===o?sl(u,n):Fi(o,y,x|f)}}function ma(n,o,u,y,_){n!==o&&Tu(o,function(T,P){if(_||(_=new ur),Ze(T))h1(n,o,P,u,ma,y,_);else{var I=y?y(Ju(n,P),T,P+"",n,o,_):r;I===r&&(I=T),Ou(n,P,I)}},kt)}function h1(n,o,u,y,_,T,P){var I=Ju(n,u),z=Ju(o,u),V=P.get(z);if(V){Ou(n,u,V);return}var Y=T?T(I,z,u+"",n,o,P):r,ee=Y===r;if(ee){var oe=be(z),le=!oe&&an(z),he=!oe&&!le&&si(z);Y=z,oe||le||he?be(I)?Y=I:Ye(I)?Y=Pt(I):le?(ee=!1,Y=Yd(z,!0)):he?(ee=!1,Y=Jd(z,!0)):Y=[]:Wi(z)||Pn(z)?(Y=I,Pn(I)?Y=Kp(I):(!Ze(I)||jr(I))&&(Y=vp(z))):ee=!1}ee&&(P.set(z,Y),_(Y,z,y,T,P),P.delete(z)),Ou(n,u,Y)}function zd(n,o){var u=n.length;if(u)return o+=o<0?u:0,Nr(o,u)?n[o]:r}function Wd(n,o,u){o.length?o=Be(o,function(T){return be(T)?function(P){return An(P,T.length===1?T[0]:T)}:T}):o=[$t];var y=-1;o=Be(o,Dt(pe()));var _=Dd(n,function(T,P,I){var z=Be(o,function(V){return V(T)});return{criteria:z,index:++y,value:T}});return Ww(_,function(T,P){return T1(T,P,u)})}function g1(n,o){return Bd(n,o,function(u,y){return sl(n,y)})}function Bd(n,o,u){for(var y=-1,_=o.length,T={};++y<_;){var P=o[y],I=An(n,P);u(I,P)&&Di(T,nn(P,n),I)}return T}function v1(n){return function(o){return An(o,n)}}function Lu(n,o,u,y){var _=y?zw:Xn,T=-1,P=o.length,I=n;for(n===o&&(o=Pt(o)),u&&(I=Be(n,Dt(u)));++T<P;)for(var z=0,V=o[T],Y=u?u(V):V;(z=_(I,Y,z,y))>-1;)I!==n&&sa.call(I,z,1),sa.call(n,z,1);return n}function Ud(n,o){for(var u=n?o.length:0,y=u-1;u--;){var _=o[u];if(u==y||_!==T){var T=_;Nr(_)?sa.call(n,_,1):Nu(n,_)}}return n}function Mu(n,o){return n+ca(Ed()*(o-n+1))}function m1(n,o,u,y){for(var _=-1,T=at(la((o-n)/(u||1)),0),P=H(T);T--;)P[y?T:++_]=n,n+=u;return P}function Fu(n,o){var u="";if(!n||o<1||o>te)return u;do o%2&&(u+=n),o=ca(o/2),o&&(n+=n);while(o);return u}function _e(n,o){return Qu(wp(n,o,$t),n+"")}function y1(n){return Ad(ui(n))}function w1(n,o){var u=ui(n);return Ta(u,On(o,0,u.length))}function Di(n,o,u,y){if(!Ze(n))return n;o=nn(o,n);for(var _=-1,T=o.length,P=T-1,I=n;I!=null&&++_<T;){var z=wr(o[_]),V=u;if(z==="__proto__"||z==="constructor"||z==="prototype")return n;if(_!=P){var Y=I[z];V=y?y(Y,z,I):r,V===r&&(V=Ze(Y)?Y:Nr(o[_+1])?[]:{})}Ii(I,z,V),I=I[z]}return n}var Hd=fa?function(n,o){return fa.set(n,o),n}:$t,b1=ua?function(n,o){return ua(n,"toString",{configurable:!0,enumerable:!1,value:ll(o),writable:!0})}:$t;function x1(n){return Ta(ui(n))}function Qt(n,o,u){var y=-1,_=n.length;o<0&&(o=-o>_?0:_+o),u=u>_?_:u,u<0&&(u+=_),_=o>u?0:u-o>>>0,o>>>=0;for(var T=H(_);++y<_;)T[y]=n[y+o];return T}function S1(n,o){var u;return tn(n,function(y,_,T){return u=o(y,_,T),!u}),!!u}function ya(n,o,u){var y=0,_=n==null?y:n.length;if(typeof o=="number"&&o===o&&_<=ue){for(;y<_;){var T=y+_>>>1,P=n[T];P!==null&&!jt(P)&&(u?P<=o:P<o)?y=T+1:_=T}return _}return Du(n,o,$t,u)}function Du(n,o,u,y){var _=0,T=n==null?0:n.length;if(T===0)return 0;o=u(o);for(var P=o!==o,I=o===null,z=jt(o),V=o===r;_<T;){var Y=ca((_+T)/2),ee=u(n[Y]),oe=ee!==r,le=ee===null,he=ee===ee,Se=jt(ee);if(P)var ge=y||he;else V?ge=he&&(y||oe):I?ge=he&&oe&&(y||!le):z?ge=he&&oe&&!le&&(y||!Se):le||Se?ge=!1:ge=y?ee<=o:ee<o;ge?_=Y+1:T=Y}return wt(T,ae)}function qd(n,o){for(var u=-1,y=n.length,_=0,T=[];++u<y;){var P=n[u],I=o?o(P):P;if(!u||!lr(I,z)){var z=I;T[_++]=P===0?0:P}}return T}function Zd(n){return typeof n=="number"?n:jt(n)?Z:+n}function Nt(n){if(typeof n=="string")return n;if(be(n))return Be(n,Nt)+"";if(jt(n))return _d?_d.call(n):"";var o=n+"";return o=="0"&&1/n==-X?"-0":o}function rn(n,o,u){var y=-1,_=Yo,T=n.length,P=!0,I=[],z=I;if(u)P=!1,_=du;else if(T>=a){var V=o?null:I1(n);if(V)return Qo(V);P=!1,_=Ti,z=new _n}else z=o?[]:I;e:for(;++y<T;){var Y=n[y],ee=o?o(Y):Y;if(Y=u||Y!==0?Y:0,P&&ee===ee){for(var oe=z.length;oe--;)if(z[oe]===ee)continue e;o&&z.push(ee),I.push(Y)}else _(z,ee,u)||(z!==I&&z.push(ee),I.push(Y))}return I}function Nu(n,o){return o=nn(o,n),n=bp(n,o),n==null||delete n[wr(er(o))]}function Gd(n,o,u,y){return Di(n,o,u(An(n,o)),y)}function wa(n,o,u,y){for(var _=n.length,T=y?_:-1;(y?T--:++T<_)&&o(n[T],T,n););return u?Qt(n,y?0:T,y?T+1:_):Qt(n,y?T+1:0,y?_:T)}function Kd(n,o){var u=n;return u instanceof Te&&(u=u.value()),pu(o,function(y,_){return _.func.apply(_.thisArg,Jr([y],_.args))},u)}function ju(n,o,u){var y=n.length;if(y<2)return y?rn(n[0]):[];for(var _=-1,T=H(y);++_<y;)for(var P=n[_],I=-1;++I<y;)I!=_&&(T[_]=Li(T[_]||P,n[I],o,u));return rn(pt(T,1),o,u)}function Vd(n,o,u){for(var y=-1,_=n.length,T=o.length,P={};++y<_;){var I=y<T?o[y]:r;u(P,n[y],I)}return P}function zu(n){return Ye(n)?n:[]}function Wu(n){return typeof n=="function"?n:$t}function nn(n,o){return be(n)?n:Xu(n,o)?[n]:_p(ke(n))}var E1=_e;function on(n,o,u){var y=n.length;return u=u===r?y:u,!o&&u>=y?n:Qt(n,o,u)}var Xd=cb||function(n){return dt.clearTimeout(n)};function Yd(n,o){if(o)return n.slice();var u=n.length,y=yd?yd(u):new n.constructor(u);return n.copy(y),y}function Bu(n){var o=new n.constructor(n.byteLength);return new oa(o).set(new oa(n)),o}function _1(n,o){var u=o?Bu(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.byteLength)}function O1(n){var o=new n.constructor(n.source,Lf.exec(n));return o.lastIndex=n.lastIndex,o}function A1(n){return $i?Ne($i.call(n)):{}}function Jd(n,o){var u=o?Bu(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.length)}function Qd(n,o){if(n!==o){var u=n!==r,y=n===null,_=n===n,T=jt(n),P=o!==r,I=o===null,z=o===o,V=jt(o);if(!I&&!V&&!T&&n>o||T&&P&&z&&!I&&!V||y&&P&&z||!u&&z||!_)return 1;if(!y&&!T&&!V&&n<o||V&&u&&_&&!y&&!T||I&&u&&_||!P&&_||!z)return-1}return 0}function T1(n,o,u){for(var y=-1,_=n.criteria,T=o.criteria,P=_.length,I=u.length;++y<P;){var z=Qd(_[y],T[y]);if(z){if(y>=I)return z;var V=u[y];return z*(V=="desc"?-1:1)}}return n.index-o.index}function ep(n,o,u,y){for(var _=-1,T=n.length,P=u.length,I=-1,z=o.length,V=at(T-P,0),Y=H(z+V),ee=!y;++I<z;)Y[I]=o[I];for(;++_<P;)(ee||_<T)&&(Y[u[_]]=n[_]);for(;V--;)Y[I++]=n[_++];return Y}function tp(n,o,u,y){for(var _=-1,T=n.length,P=-1,I=u.length,z=-1,V=o.length,Y=at(T-I,0),ee=H(Y+V),oe=!y;++_<Y;)ee[_]=n[_];for(var le=_;++z<V;)ee[le+z]=o[z];for(;++P<I;)(oe||_<T)&&(ee[le+u[P]]=n[_++]);return ee}function Pt(n,o){var u=-1,y=n.length;for(o||(o=H(y));++u<y;)o[u]=n[u];return o}function yr(n,o,u,y){var _=!u;u||(u={});for(var T=-1,P=o.length;++T<P;){var I=o[T],z=y?y(u[I],n[I],I,u,n):r;z===r&&(z=n[I]),_?Mr(u,I,z):Ii(u,I,z)}return u}function R1(n,o){return yr(n,Vu(n),o)}function P1(n,o){return yr(n,hp(n),o)}function ba(n,o){return function(u,y){var _=be(u)?Lw:Yb,T=o?o():{};return _(u,n,pe(y,2),T)}}function ii(n){return _e(function(o,u){var y=-1,_=u.length,T=_>1?u[_-1]:r,P=_>2?u[2]:r;for(T=n.length>3&&typeof T=="function"?(_--,T):r,P&&Ot(u[0],u[1],P)&&(T=_<3?r:T,_=1),o=Ne(o);++y<_;){var I=u[y];I&&n(o,I,y,T)}return o})}function rp(n,o){return function(u,y){if(u==null)return u;if(!Ct(u))return n(u,y);for(var _=u.length,T=o?_:-1,P=Ne(u);(o?T--:++T<_)&&y(P[T],T,P)!==!1;);return u}}function np(n){return function(o,u,y){for(var _=-1,T=Ne(o),P=y(o),I=P.length;I--;){var z=P[n?I:++_];if(u(T[z],z,T)===!1)break}return o}}function C1(n,o,u){var y=o&b,_=Ni(n);function T(){var P=this&&this!==dt&&this instanceof T?_:n;return P.apply(y?u:this,arguments)}return T}function ip(n){return function(o){o=ke(o);var u=Yn(o)?sr(o):r,y=u?u[0]:o.charAt(0),_=u?on(u,1).join(""):o.slice(1);return y[n]()+_}}function oi(n){return function(o){return pu(rh(th(o).replace(bw,"")),n,"")}}function Ni(n){return function(){var o=arguments;switch(o.length){case 0:return new n;case 1:return new n(o[0]);case 2:return new n(o[0],o[1]);case 3:return new n(o[0],o[1],o[2]);case 4:return new n(o[0],o[1],o[2],o[3]);case 5:return new n(o[0],o[1],o[2],o[3],o[4]);case 6:return new n(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new n(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var u=ni(n.prototype),y=n.apply(u,o);return Ze(y)?y:u}}function k1(n,o,u){var y=Ni(n);function _(){for(var T=arguments.length,P=H(T),I=T,z=ai(_);I--;)P[I]=arguments[I];var V=T<3&&P[0]!==z&&P[T-1]!==z?[]:Qr(P,z);if(T-=V.length,T<u)return lp(n,o,xa,_.placeholder,r,P,V,r,r,u-T);var Y=this&&this!==dt&&this instanceof _?y:n;return Ft(Y,this,P)}return _}function op(n){return function(o,u,y){var _=Ne(o);if(!Ct(o)){var T=pe(u,3);o=lt(o),u=function(I){return T(_[I],I,_)}}var P=n(o,u,y);return P>-1?_[T?o[P]:P]:r}}function ap(n){return Dr(function(o){var u=o.length,y=u,_=Yt.prototype.thru;for(n&&o.reverse();y--;){var T=o[y];if(typeof T!="function")throw new Xt(l);if(_&&!P&&Oa(T)=="wrapper")var P=new Yt([],!0)}for(y=P?y:u;++y<u;){T=o[y];var I=Oa(T),z=I=="wrapper"?Gu(T):r;z&&Yu(z[0])&&z[1]==(B|E|O|M)&&!z[4].length&&z[9]==1?P=P[Oa(z[0])].apply(P,z[3]):P=T.length==1&&Yu(T)?P[I]():P.thru(T)}return function(){var V=arguments,Y=V[0];if(P&&V.length==1&&be(Y))return P.plant(Y).value();for(var ee=0,oe=u?o[ee].apply(this,V):Y;++ee<u;)oe=o[ee].call(this,oe);return oe}})}function xa(n,o,u,y,_,T,P,I,z,V){var Y=o&B,ee=o&b,oe=o&h,le=o&(E|R),he=o&F,Se=oe?r:Ni(n);function ge(){for(var Oe=arguments.length,Re=H(Oe),zt=Oe;zt--;)Re[zt]=arguments[zt];if(le)var At=ai(ge),Wt=Uw(Re,At);if(y&&(Re=ep(Re,y,_,le)),T&&(Re=tp(Re,T,P,le)),Oe-=Wt,le&&Oe<V){var Je=Qr(Re,At);return lp(n,o,xa,ge.placeholder,u,Re,Je,I,z,V-Oe)}var cr=ee?u:this,Wr=oe?cr[n]:n;return Oe=Re.length,I?Re=Y1(Re,I):he&&Oe>1&&Re.reverse(),Y&&z<Oe&&(Re.length=z),this&&this!==dt&&this instanceof ge&&(Wr=Se||Ni(Wr)),Wr.apply(cr,Re)}return ge}function sp(n,o){return function(u,y){return o1(u,n,o(y),{})}}function Sa(n,o){return function(u,y){var _;if(u===r&&y===r)return o;if(u!==r&&(_=u),y!==r){if(_===r)return y;typeof u=="string"||typeof y=="string"?(u=Nt(u),y=Nt(y)):(u=Zd(u),y=Zd(y)),_=n(u,y)}return _}}function Uu(n){return Dr(function(o){return o=Be(o,Dt(pe())),_e(function(u){var y=this;return n(o,function(_){return Ft(_,y,u)})})})}function Ea(n,o){o=o===r?" ":Nt(o);var u=o.length;if(u<2)return u?Fu(o,n):o;var y=Fu(o,la(n/Jn(o)));return Yn(o)?on(sr(y),0,n).join(""):y.slice(0,n)}function $1(n,o,u,y){var _=o&b,T=Ni(n);function P(){for(var I=-1,z=arguments.length,V=-1,Y=y.length,ee=H(Y+z),oe=this&&this!==dt&&this instanceof P?T:n;++V<Y;)ee[V]=y[V];for(;z--;)ee[V++]=arguments[++I];return Ft(oe,_?u:this,ee)}return P}function up(n){return function(o,u,y){return y&&typeof y!="number"&&Ot(o,u,y)&&(u=y=r),o=zr(o),u===r?(u=o,o=0):u=zr(u),y=y===r?o<u?1:-1:zr(y),m1(o,u,y,n)}}function _a(n){return function(o,u){return typeof o=="string"&&typeof u=="string"||(o=tr(o),u=tr(u)),n(o,u)}}function lp(n,o,u,y,_,T,P,I,z,V){var Y=o&E,ee=Y?P:r,oe=Y?r:P,le=Y?T:r,he=Y?r:T;o|=Y?O:k,o&=~(Y?k:O),o&S||(o&=-4);var Se=[n,o,_,le,ee,he,oe,I,z,V],ge=u.apply(r,Se);return Yu(n)&&xp(ge,Se),ge.placeholder=y,Sp(ge,n,o)}function Hu(n){var o=ot[n];return function(u,y){if(u=tr(u),y=y==null?0:wt(xe(y),292),y&&Sd(u)){var _=(ke(u)+"e").split("e"),T=o(_[0]+"e"+(+_[1]+y));return _=(ke(T)+"e").split("e"),+(_[0]+"e"+(+_[1]-y))}return o(u)}}var I1=ti&&1/Qo(new ti([,-0]))[1]==X?function(n){return new ti(n)}:dl;function cp(n){return function(o){var u=bt(o);return u==ut?bu(o):u==yt?Xw(o):Bw(o,n(o))}}function Fr(n,o,u,y,_,T,P,I){var z=o&h;if(!z&&typeof n!="function")throw new Xt(l);var V=y?y.length:0;if(V||(o&=-97,y=_=r),P=P===r?P:at(xe(P),0),I=I===r?I:xe(I),V-=_?_.length:0,o&k){var Y=y,ee=_;y=_=r}var oe=z?r:Gu(n),le=[n,o,u,y,_,Y,ee,T,P,I];if(oe&&K1(le,oe),n=le[0],o=le[1],u=le[2],y=le[3],_=le[4],I=le[9]=le[9]===r?z?0:n.length:at(le[9]-V,0),!I&&o&(E|R)&&(o&=-25),!o||o==b)var he=C1(n,o,u);else o==E||o==R?he=k1(n,o,I):(o==O||o==(b|O))&&!_.length?he=$1(n,o,u,y):he=xa.apply(r,le);var Se=oe?Hd:xp;return Sp(Se(he,le),n,o)}function fp(n,o,u,y){return n===r||lr(n,ei[u])&&!Fe.call(y,u)?o:n}function dp(n,o,u,y,_,T){return Ze(n)&&Ze(o)&&(T.set(o,n),ma(n,o,r,dp,T),T.delete(o)),n}function L1(n){return Wi(n)?r:n}function pp(n,o,u,y,_,T){var P=u&x,I=n.length,z=o.length;if(I!=z&&!(P&&z>I))return!1;var V=T.get(n),Y=T.get(o);if(V&&Y)return V==o&&Y==n;var ee=-1,oe=!0,le=u&f?new _n:r;for(T.set(n,o),T.set(o,n);++ee<I;){var he=n[ee],Se=o[ee];if(y)var ge=P?y(Se,he,ee,o,n,T):y(he,Se,ee,n,o,T);if(ge!==r){if(ge)continue;oe=!1;break}if(le){if(!hu(o,function(Oe,Re){if(!Ti(le,Re)&&(he===Oe||_(he,Oe,u,y,T)))return le.push(Re)})){oe=!1;break}}else if(!(he===Se||_(he,Se,u,y,T))){oe=!1;break}}return T.delete(n),T.delete(o),oe}function M1(n,o,u,y,_,T,P){switch(u){case $r:if(n.byteLength!=o.byteLength||n.byteOffset!=o.byteOffset)return!1;n=n.buffer,o=o.buffer;case Xr:return!(n.byteLength!=o.byteLength||!T(new oa(n),new oa(o)));case ve:case Ee:case vr:return lr(+n,+o);case qe:return n.name==o.name&&n.message==o.message;case Mt:case Kr:return n==o+"";case ut:var I=bu;case yt:var z=y&x;if(I||(I=Qo),n.size!=o.size&&!z)return!1;var V=P.get(n);if(V)return V==o;y|=f,P.set(n,o);var Y=pp(I(n),I(o),y,_,T,P);return P.delete(n),Y;case bn:if($i)return $i.call(n)==$i.call(o)}return!1}function F1(n,o,u,y,_,T){var P=u&x,I=qu(n),z=I.length,V=qu(o),Y=V.length;if(z!=Y&&!P)return!1;for(var ee=z;ee--;){var oe=I[ee];if(!(P?oe in o:Fe.call(o,oe)))return!1}var le=T.get(n),he=T.get(o);if(le&&he)return le==o&&he==n;var Se=!0;T.set(n,o),T.set(o,n);for(var ge=P;++ee<z;){oe=I[ee];var Oe=n[oe],Re=o[oe];if(y)var zt=P?y(Re,Oe,oe,o,n,T):y(Oe,Re,oe,n,o,T);if(!(zt===r?Oe===Re||_(Oe,Re,u,y,T):zt)){Se=!1;break}ge||(ge=oe=="constructor")}if(Se&&!ge){var At=n.constructor,Wt=o.constructor;At!=Wt&&"constructor"in n&&"constructor"in o&&!(typeof At=="function"&&At instanceof At&&typeof Wt=="function"&&Wt instanceof Wt)&&(Se=!1)}return T.delete(n),T.delete(o),Se}function Dr(n){return Qu(wp(n,r,Rp),n+"")}function qu(n){return Id(n,lt,Vu)}function Zu(n){return Id(n,kt,hp)}var Gu=fa?function(n){return fa.get(n)}:dl;function Oa(n){for(var o=n.name+"",u=ri[o],y=Fe.call(ri,o)?u.length:0;y--;){var _=u[y],T=_.func;if(T==null||T==n)return _.name}return o}function ai(n){var o=Fe.call(A,"placeholder")?A:n;return o.placeholder}function pe(){var n=A.iteratee||cl;return n=n===cl?Fd:n,arguments.length?n(arguments[0],arguments[1]):n}function Aa(n,o){var u=n.__data__;return H1(o)?u[typeof o=="string"?"string":"hash"]:u.map}function Ku(n){for(var o=lt(n),u=o.length;u--;){var y=o[u],_=n[y];o[u]=[y,_,mp(_)]}return o}function Tn(n,o){var u=Gw(n,o);return Md(u)?u:r}function D1(n){var o=Fe.call(n,Sn),u=n[Sn];try{n[Sn]=r;var y=!0}catch{}var _=na.call(n);return y&&(o?n[Sn]=u:delete n[Sn]),_}var Vu=Su?function(n){return n==null?[]:(n=Ne(n),Yr(Su(n),function(o){return bd.call(n,o)}))}:pl,hp=Su?function(n){for(var o=[];n;)Jr(o,Vu(n)),n=aa(n);return o}:pl,bt=_t;(Eu&&bt(new Eu(new ArrayBuffer(1)))!=$r||Pi&&bt(new Pi)!=ut||_u&&bt(_u.resolve())!=Zo||ti&&bt(new ti)!=yt||Ci&&bt(new Ci)!=Vr)&&(bt=function(n){var o=_t(n),u=o==Gt?n.constructor:r,y=u?Rn(u):"";if(y)switch(y){case wb:return $r;case bb:return ut;case xb:return Zo;case Sb:return yt;case Eb:return Vr}return o});function N1(n,o,u){for(var y=-1,_=u.length;++y<_;){var T=u[y],P=T.size;switch(T.type){case"drop":n+=P;break;case"dropRight":o-=P;break;case"take":o=wt(o,n+P);break;case"takeRight":n=at(n,o-P);break}}return{start:n,end:o}}function j1(n){var o=n.match(q0);return o?o[1].split(Z0):[]}function gp(n,o,u){o=nn(o,n);for(var y=-1,_=o.length,T=!1;++y<_;){var P=wr(o[y]);if(!(T=n!=null&&u(n,P)))break;n=n[P]}return T||++y!=_?T:(_=n==null?0:n.length,!!_&&Ia(_)&&Nr(P,_)&&(be(n)||Pn(n)))}function z1(n){var o=n.length,u=new n.constructor(o);return o&&typeof n[0]=="string"&&Fe.call(n,"index")&&(u.index=n.index,u.input=n.input),u}function vp(n){return typeof n.constructor=="function"&&!ji(n)?ni(aa(n)):{}}function W1(n,o,u){var y=n.constructor;switch(o){case Xr:return Bu(n);case ve:case Ee:return new y(+n);case $r:return _1(n,u);case Ks:case Vs:case Xs:case Ys:case Js:case Qs:case eu:case tu:case ru:return Jd(n,u);case ut:return new y;case vr:case Kr:return new y(n);case Mt:return O1(n);case yt:return new y;case bn:return A1(n)}}function B1(n,o){var u=o.length;if(!u)return n;var y=u-1;return o[y]=(u>1?"& ":"")+o[y],o=o.join(u>2?", ":" "),n.replace(H0,`{
|
|
183
|
+
/* [wrapped with `+o+`] */
|
|
184
|
+
`)}function U1(n){return be(n)||Pn(n)||!!(xd&&n&&n[xd])}function Nr(n,o){var u=typeof n;return o=o??te,!!o&&(u=="number"||u!="symbol"&&tw.test(n))&&n>-1&&n%1==0&&n<o}function Ot(n,o,u){if(!Ze(u))return!1;var y=typeof o;return(y=="number"?Ct(u)&&Nr(o,u.length):y=="string"&&o in u)?lr(u[o],n):!1}function Xu(n,o){if(be(n))return!1;var u=typeof n;return u=="number"||u=="symbol"||u=="boolean"||n==null||jt(n)?!0:z0.test(n)||!j0.test(n)||o!=null&&n in Ne(o)}function H1(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}function Yu(n){var o=Oa(n),u=A[o];if(typeof u!="function"||!(o in Te.prototype))return!1;if(n===u)return!0;var y=Gu(u);return!!y&&n===y[0]}function q1(n){return!!md&&md in n}var Z1=ta?jr:hl;function ji(n){var o=n&&n.constructor,u=typeof o=="function"&&o.prototype||ei;return n===u}function mp(n){return n===n&&!Ze(n)}function yp(n,o){return function(u){return u==null?!1:u[n]===o&&(o!==r||n in Ne(u))}}function G1(n){var o=ka(n,function(y){return u.size===m&&u.clear(),y}),u=o.cache;return o}function K1(n,o){var u=n[1],y=o[1],_=u|y,T=_<(b|h|B),P=y==B&&u==E||y==B&&u==M&&n[7].length<=o[8]||y==(B|M)&&o[7].length<=o[8]&&u==E;if(!(T||P))return n;y&b&&(n[2]=o[2],_|=u&b?0:S);var I=o[3];if(I){var z=n[3];n[3]=z?ep(z,I,o[4]):I,n[4]=z?Qr(n[3],v):o[4]}return I=o[5],I&&(z=n[5],n[5]=z?tp(z,I,o[6]):I,n[6]=z?Qr(n[5],v):o[6]),I=o[7],I&&(n[7]=I),y&B&&(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]=_,n}function V1(n){var o=[];if(n!=null)for(var u in Ne(n))o.push(u);return o}function X1(n){return na.call(n)}function wp(n,o,u){return o=at(o===r?n.length-1:o,0),function(){for(var y=arguments,_=-1,T=at(y.length-o,0),P=H(T);++_<T;)P[_]=y[o+_];_=-1;for(var I=H(o+1);++_<o;)I[_]=y[_];return I[o]=u(P),Ft(n,this,I)}}function bp(n,o){return o.length<2?n:An(n,Qt(o,0,-1))}function Y1(n,o){for(var u=n.length,y=wt(o.length,u),_=Pt(n);y--;){var T=o[y];n[y]=Nr(T,u)?_[T]:r}return n}function Ju(n,o){if(!(o==="constructor"&&typeof n[o]=="function")&&o!="__proto__")return n[o]}var xp=Ep(Hd),zi=db||function(n,o){return dt.setTimeout(n,o)},Qu=Ep(b1);function Sp(n,o,u){var y=o+"";return Qu(n,B1(y,J1(j1(y),u)))}function Ep(n){var o=0,u=0;return function(){var y=vb(),_=U-(y-u);if(u=y,_>0){if(++o>=L)return arguments[0]}else o=0;return n.apply(r,arguments)}}function Ta(n,o){var u=-1,y=n.length,_=y-1;for(o=o===r?y:o;++u<o;){var T=Mu(u,_),P=n[T];n[T]=n[u],n[u]=P}return n.length=o,n}var _p=G1(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(W0,function(u,y,_,T){o.push(_?T.replace(V0,"$1"):y||u)}),o});function wr(n){if(typeof n=="string"||jt(n))return n;var o=n+"";return o=="0"&&1/n==-X?"-0":o}function Rn(n){if(n!=null){try{return ra.call(n)}catch{}try{return n+""}catch{}}return""}function J1(n,o){return Vt(ne,function(u){var y="_."+u[0];o&u[1]&&!Yo(n,y)&&n.push(y)}),n.sort()}function Op(n){if(n instanceof Te)return n.clone();var o=new Yt(n.__wrapped__,n.__chain__);return o.__actions__=Pt(n.__actions__),o.__index__=n.__index__,o.__values__=n.__values__,o}function Q1(n,o,u){(u?Ot(n,o,u):o===r)?o=1:o=at(xe(o),0);var y=n==null?0:n.length;if(!y||o<1)return[];for(var _=0,T=0,P=H(la(y/o));_<y;)P[T++]=Qt(n,_,_+=o);return P}function ex(n){for(var o=-1,u=n==null?0:n.length,y=0,_=[];++o<u;){var T=n[o];T&&(_[y++]=T)}return _}function tx(){var n=arguments.length;if(!n)return[];for(var o=H(n-1),u=arguments[0],y=n;y--;)o[y-1]=arguments[y];return Jr(be(u)?Pt(u):[u],pt(o,1))}var rx=_e(function(n,o){return Ye(n)?Li(n,pt(o,1,Ye,!0)):[]}),nx=_e(function(n,o){var u=er(o);return Ye(u)&&(u=r),Ye(n)?Li(n,pt(o,1,Ye,!0),pe(u,2)):[]}),ix=_e(function(n,o){var u=er(o);return Ye(u)&&(u=r),Ye(n)?Li(n,pt(o,1,Ye,!0),r,u):[]});function ox(n,o,u){var y=n==null?0:n.length;return y?(o=u||o===r?1:xe(o),Qt(n,o<0?0:o,y)):[]}function ax(n,o,u){var y=n==null?0:n.length;return y?(o=u||o===r?1:xe(o),o=y-o,Qt(n,0,o<0?0:o)):[]}function sx(n,o){return n&&n.length?wa(n,pe(o,3),!0,!0):[]}function ux(n,o){return n&&n.length?wa(n,pe(o,3),!0):[]}function lx(n,o,u,y){var _=n==null?0:n.length;return _?(u&&typeof u!="number"&&Ot(n,o,u)&&(u=0,y=_),t1(n,o,u,y)):[]}function Ap(n,o,u){var y=n==null?0:n.length;if(!y)return-1;var _=u==null?0:xe(u);return _<0&&(_=at(y+_,0)),Jo(n,pe(o,3),_)}function Tp(n,o,u){var y=n==null?0:n.length;if(!y)return-1;var _=y-1;return u!==r&&(_=xe(u),_=u<0?at(y+_,0):wt(_,y-1)),Jo(n,pe(o,3),_,!0)}function Rp(n){var o=n==null?0:n.length;return o?pt(n,1):[]}function cx(n){var o=n==null?0:n.length;return o?pt(n,X):[]}function fx(n,o){var u=n==null?0:n.length;return u?(o=o===r?1:xe(o),pt(n,o)):[]}function dx(n){for(var o=-1,u=n==null?0:n.length,y={};++o<u;){var _=n[o];y[_[0]]=_[1]}return y}function Pp(n){return n&&n.length?n[0]:r}function px(n,o,u){var y=n==null?0:n.length;if(!y)return-1;var _=u==null?0:xe(u);return _<0&&(_=at(y+_,0)),Xn(n,o,_)}function hx(n){var o=n==null?0:n.length;return o?Qt(n,0,-1):[]}var gx=_e(function(n){var o=Be(n,zu);return o.length&&o[0]===n[0]?Cu(o):[]}),vx=_e(function(n){var o=er(n),u=Be(n,zu);return o===er(u)?o=r:u.pop(),u.length&&u[0]===n[0]?Cu(u,pe(o,2)):[]}),mx=_e(function(n){var o=er(n),u=Be(n,zu);return o=typeof o=="function"?o:r,o&&u.pop(),u.length&&u[0]===n[0]?Cu(u,r,o):[]});function yx(n,o){return n==null?"":hb.call(n,o)}function er(n){var o=n==null?0:n.length;return o?n[o-1]:r}function wx(n,o,u){var y=n==null?0:n.length;if(!y)return-1;var _=y;return u!==r&&(_=xe(u),_=_<0?at(y+_,0):wt(_,y-1)),o===o?Jw(n,o,_):Jo(n,ld,_,!0)}function bx(n,o){return n&&n.length?zd(n,xe(o)):r}var xx=_e(Cp);function Cp(n,o){return n&&n.length&&o&&o.length?Lu(n,o):n}function Sx(n,o,u){return n&&n.length&&o&&o.length?Lu(n,o,pe(u,2)):n}function Ex(n,o,u){return n&&n.length&&o&&o.length?Lu(n,o,r,u):n}var _x=Dr(function(n,o){var u=n==null?0:n.length,y=Au(n,o);return Ud(n,Be(o,function(_){return Nr(_,u)?+_:_}).sort(Qd)),y});function Ox(n,o){var u=[];if(!(n&&n.length))return u;var y=-1,_=[],T=n.length;for(o=pe(o,3);++y<T;){var P=n[y];o(P,y,n)&&(u.push(P),_.push(y))}return Ud(n,_),u}function el(n){return n==null?n:yb.call(n)}function Ax(n,o,u){var y=n==null?0:n.length;return y?(u&&typeof u!="number"&&Ot(n,o,u)?(o=0,u=y):(o=o==null?0:xe(o),u=u===r?y:xe(u)),Qt(n,o,u)):[]}function Tx(n,o){return ya(n,o)}function Rx(n,o,u){return Du(n,o,pe(u,2))}function Px(n,o){var u=n==null?0:n.length;if(u){var y=ya(n,o);if(y<u&&lr(n[y],o))return y}return-1}function Cx(n,o){return ya(n,o,!0)}function kx(n,o,u){return Du(n,o,pe(u,2),!0)}function $x(n,o){var u=n==null?0:n.length;if(u){var y=ya(n,o,!0)-1;if(lr(n[y],o))return y}return-1}function Ix(n){return n&&n.length?qd(n):[]}function Lx(n,o){return n&&n.length?qd(n,pe(o,2)):[]}function Mx(n){var o=n==null?0:n.length;return o?Qt(n,1,o):[]}function Fx(n,o,u){return n&&n.length?(o=u||o===r?1:xe(o),Qt(n,0,o<0?0:o)):[]}function Dx(n,o,u){var y=n==null?0:n.length;return y?(o=u||o===r?1:xe(o),o=y-o,Qt(n,o<0?0:o,y)):[]}function Nx(n,o){return n&&n.length?wa(n,pe(o,3),!1,!0):[]}function jx(n,o){return n&&n.length?wa(n,pe(o,3)):[]}var zx=_e(function(n){return rn(pt(n,1,Ye,!0))}),Wx=_e(function(n){var o=er(n);return Ye(o)&&(o=r),rn(pt(n,1,Ye,!0),pe(o,2))}),Bx=_e(function(n){var o=er(n);return o=typeof o=="function"?o:r,rn(pt(n,1,Ye,!0),r,o)});function Ux(n){return n&&n.length?rn(n):[]}function Hx(n,o){return n&&n.length?rn(n,pe(o,2)):[]}function qx(n,o){return o=typeof o=="function"?o:r,n&&n.length?rn(n,r,o):[]}function tl(n){if(!(n&&n.length))return[];var o=0;return n=Yr(n,function(u){if(Ye(u))return o=at(u.length,o),!0}),yu(o,function(u){return Be(n,gu(u))})}function kp(n,o){if(!(n&&n.length))return[];var u=tl(n);return o==null?u:Be(u,function(y){return Ft(o,r,y)})}var Zx=_e(function(n,o){return Ye(n)?Li(n,o):[]}),Gx=_e(function(n){return ju(Yr(n,Ye))}),Kx=_e(function(n){var o=er(n);return Ye(o)&&(o=r),ju(Yr(n,Ye),pe(o,2))}),Vx=_e(function(n){var o=er(n);return o=typeof o=="function"?o:r,ju(Yr(n,Ye),r,o)}),Xx=_e(tl);function Yx(n,o){return Vd(n||[],o||[],Ii)}function Jx(n,o){return Vd(n||[],o||[],Di)}var Qx=_e(function(n){var o=n.length,u=o>1?n[o-1]:r;return u=typeof u=="function"?(n.pop(),u):r,kp(n,u)});function $p(n){var o=A(n);return o.__chain__=!0,o}function eS(n,o){return o(n),n}function Ra(n,o){return o(n)}var tS=Dr(function(n){var o=n.length,u=o?n[0]:0,y=this.__wrapped__,_=function(T){return Au(T,n)};return o>1||this.__actions__.length||!(y instanceof Te)||!Nr(u)?this.thru(_):(y=y.slice(u,+u+(o?1:0)),y.__actions__.push({func:Ra,args:[_],thisArg:r}),new Yt(y,this.__chain__).thru(function(T){return o&&!T.length&&T.push(r),T}))});function rS(){return $p(this)}function nS(){return new Yt(this.value(),this.__chain__)}function iS(){this.__values__===r&&(this.__values__=Zp(this.value()));var n=this.__index__>=this.__values__.length,o=n?r:this.__values__[this.__index__++];return{done:n,value:o}}function oS(){return this}function aS(n){for(var o,u=this;u instanceof pa;){var y=Op(u);y.__index__=0,y.__values__=r,o?_.__wrapped__=y:o=y;var _=y;u=u.__wrapped__}return _.__wrapped__=n,o}function sS(){var n=this.__wrapped__;if(n instanceof Te){var o=n;return this.__actions__.length&&(o=new Te(this)),o=o.reverse(),o.__actions__.push({func:Ra,args:[el],thisArg:r}),new Yt(o,this.__chain__)}return this.thru(el)}function uS(){return Kd(this.__wrapped__,this.__actions__)}var lS=ba(function(n,o,u){Fe.call(n,u)?++n[u]:Mr(n,u,1)});function cS(n,o,u){var y=be(n)?sd:e1;return u&&Ot(n,o,u)&&(o=r),y(n,pe(o,3))}function fS(n,o){var u=be(n)?Yr:kd;return u(n,pe(o,3))}var dS=op(Ap),pS=op(Tp);function hS(n,o){return pt(Pa(n,o),1)}function gS(n,o){return pt(Pa(n,o),X)}function vS(n,o,u){return u=u===r?1:xe(u),pt(Pa(n,o),u)}function Ip(n,o){var u=be(n)?Vt:tn;return u(n,pe(o,3))}function Lp(n,o){var u=be(n)?Mw:Cd;return u(n,pe(o,3))}var mS=ba(function(n,o,u){Fe.call(n,u)?n[u].push(o):Mr(n,u,[o])});function yS(n,o,u,y){n=Ct(n)?n:ui(n),u=u&&!y?xe(u):0;var _=n.length;return u<0&&(u=at(_+u,0)),La(n)?u<=_&&n.indexOf(o,u)>-1:!!_&&Xn(n,o,u)>-1}var wS=_e(function(n,o,u){var y=-1,_=typeof o=="function",T=Ct(n)?H(n.length):[];return tn(n,function(P){T[++y]=_?Ft(o,P,u):Mi(P,o,u)}),T}),bS=ba(function(n,o,u){Mr(n,u,o)});function Pa(n,o){var u=be(n)?Be:Dd;return u(n,pe(o,3))}function xS(n,o,u,y){return n==null?[]:(be(o)||(o=o==null?[]:[o]),u=y?r:u,be(u)||(u=u==null?[]:[u]),Wd(n,o,u))}var SS=ba(function(n,o,u){n[u?0:1].push(o)},function(){return[[],[]]});function ES(n,o,u){var y=be(n)?pu:fd,_=arguments.length<3;return y(n,pe(o,4),u,_,tn)}function _S(n,o,u){var y=be(n)?Fw:fd,_=arguments.length<3;return y(n,pe(o,4),u,_,Cd)}function OS(n,o){var u=be(n)?Yr:kd;return u(n,$a(pe(o,3)))}function AS(n){var o=be(n)?Ad:y1;return o(n)}function TS(n,o,u){(u?Ot(n,o,u):o===r)?o=1:o=xe(o);var y=be(n)?Vb:w1;return y(n,o)}function RS(n){var o=be(n)?Xb:x1;return o(n)}function PS(n){if(n==null)return 0;if(Ct(n))return La(n)?Jn(n):n.length;var o=bt(n);return o==ut||o==yt?n.size:$u(n).length}function CS(n,o,u){var y=be(n)?hu:S1;return u&&Ot(n,o,u)&&(o=r),y(n,pe(o,3))}var kS=_e(function(n,o){if(n==null)return[];var u=o.length;return u>1&&Ot(n,o[0],o[1])?o=[]:u>2&&Ot(o[0],o[1],o[2])&&(o=[o[0]]),Wd(n,pt(o,1),[])}),Ca=fb||function(){return dt.Date.now()};function $S(n,o){if(typeof o!="function")throw new Xt(l);return n=xe(n),function(){if(--n<1)return o.apply(this,arguments)}}function Mp(n,o,u){return o=u?r:o,o=n&&o==null?n.length:o,Fr(n,B,r,r,r,r,o)}function Fp(n,o){var u;if(typeof o!="function")throw new Xt(l);return n=xe(n),function(){return--n>0&&(u=o.apply(this,arguments)),n<=1&&(o=r),u}}var rl=_e(function(n,o,u){var y=b;if(u.length){var _=Qr(u,ai(rl));y|=O}return Fr(n,y,o,u,_)}),Dp=_e(function(n,o,u){var y=b|h;if(u.length){var _=Qr(u,ai(Dp));y|=O}return Fr(o,y,n,u,_)});function Np(n,o,u){o=u?r:o;var y=Fr(n,E,r,r,r,r,r,o);return y.placeholder=Np.placeholder,y}function jp(n,o,u){o=u?r:o;var y=Fr(n,R,r,r,r,r,r,o);return y.placeholder=jp.placeholder,y}function zp(n,o,u){var y,_,T,P,I,z,V=0,Y=!1,ee=!1,oe=!0;if(typeof n!="function")throw new Xt(l);o=tr(o)||0,Ze(u)&&(Y=!!u.leading,ee="maxWait"in u,T=ee?at(tr(u.maxWait)||0,o):T,oe="trailing"in u?!!u.trailing:oe);function le(Je){var cr=y,Wr=_;return y=_=r,V=Je,P=n.apply(Wr,cr),P}function he(Je){return V=Je,I=zi(Oe,o),Y?le(Je):P}function Se(Je){var cr=Je-z,Wr=Je-V,oh=o-cr;return ee?wt(oh,T-Wr):oh}function ge(Je){var cr=Je-z,Wr=Je-V;return z===r||cr>=o||cr<0||ee&&Wr>=T}function Oe(){var Je=Ca();if(ge(Je))return Re(Je);I=zi(Oe,Se(Je))}function Re(Je){return I=r,oe&&y?le(Je):(y=_=r,P)}function zt(){I!==r&&Xd(I),V=0,y=z=_=I=r}function At(){return I===r?P:Re(Ca())}function Wt(){var Je=Ca(),cr=ge(Je);if(y=arguments,_=this,z=Je,cr){if(I===r)return he(z);if(ee)return Xd(I),I=zi(Oe,o),le(z)}return I===r&&(I=zi(Oe,o)),P}return Wt.cancel=zt,Wt.flush=At,Wt}var IS=_e(function(n,o){return Pd(n,1,o)}),LS=_e(function(n,o,u){return Pd(n,tr(o)||0,u)});function MS(n){return Fr(n,F)}function ka(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new Xt(l);var u=function(){var y=arguments,_=o?o.apply(this,y):y[0],T=u.cache;if(T.has(_))return T.get(_);var P=n.apply(this,y);return u.cache=T.set(_,P)||T,P};return u.cache=new(ka.Cache||Lr),u}ka.Cache=Lr;function $a(n){if(typeof n!="function")throw new Xt(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 FS(n){return Fp(2,n)}var DS=E1(function(n,o){o=o.length==1&&be(o[0])?Be(o[0],Dt(pe())):Be(pt(o,1),Dt(pe()));var u=o.length;return _e(function(y){for(var _=-1,T=wt(y.length,u);++_<T;)y[_]=o[_].call(this,y[_]);return Ft(n,this,y)})}),nl=_e(function(n,o){var u=Qr(o,ai(nl));return Fr(n,O,r,o,u)}),Wp=_e(function(n,o){var u=Qr(o,ai(Wp));return Fr(n,k,r,o,u)}),NS=Dr(function(n,o){return Fr(n,M,r,r,r,o)});function jS(n,o){if(typeof n!="function")throw new Xt(l);return o=o===r?o:xe(o),_e(n,o)}function zS(n,o){if(typeof n!="function")throw new Xt(l);return o=o==null?0:at(xe(o),0),_e(function(u){var y=u[o],_=on(u,0,o);return y&&Jr(_,y),Ft(n,this,_)})}function WS(n,o,u){var y=!0,_=!0;if(typeof n!="function")throw new Xt(l);return Ze(u)&&(y="leading"in u?!!u.leading:y,_="trailing"in u?!!u.trailing:_),zp(n,o,{leading:y,maxWait:o,trailing:_})}function BS(n){return Mp(n,1)}function US(n,o){return nl(Wu(o),n)}function HS(){if(!arguments.length)return[];var n=arguments[0];return be(n)?n:[n]}function qS(n){return Jt(n,w)}function ZS(n,o){return o=typeof o=="function"?o:r,Jt(n,w,o)}function GS(n){return Jt(n,g|w)}function KS(n,o){return o=typeof o=="function"?o:r,Jt(n,g|w,o)}function VS(n,o){return o==null||Rd(n,o,lt(o))}function lr(n,o){return n===o||n!==n&&o!==o}var XS=_a(Pu),YS=_a(function(n,o){return n>=o}),Pn=Ld((function(){return arguments})())?Ld:function(n){return Ve(n)&&Fe.call(n,"callee")&&!bd.call(n,"callee")},be=H.isArray,JS=td?Dt(td):a1;function Ct(n){return n!=null&&Ia(n.length)&&!jr(n)}function Ye(n){return Ve(n)&&Ct(n)}function QS(n){return n===!0||n===!1||Ve(n)&&_t(n)==ve}var an=pb||hl,eE=rd?Dt(rd):s1;function tE(n){return Ve(n)&&n.nodeType===1&&!Wi(n)}function rE(n){if(n==null)return!0;if(Ct(n)&&(be(n)||typeof n=="string"||typeof n.splice=="function"||an(n)||si(n)||Pn(n)))return!n.length;var o=bt(n);if(o==ut||o==yt)return!n.size;if(ji(n))return!$u(n).length;for(var u in n)if(Fe.call(n,u))return!1;return!0}function nE(n,o){return Fi(n,o)}function iE(n,o,u){u=typeof u=="function"?u:r;var y=u?u(n,o):r;return y===r?Fi(n,o,r,u):!!y}function il(n){if(!Ve(n))return!1;var o=_t(n);return o==qe||o==Ae||typeof n.message=="string"&&typeof n.name=="string"&&!Wi(n)}function oE(n){return typeof n=="number"&&Sd(n)}function jr(n){if(!Ze(n))return!1;var o=_t(n);return o==ie||o==mt||o==ye||o==Gs}function Bp(n){return typeof n=="number"&&n==xe(n)}function Ia(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=te}function Ze(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}function Ve(n){return n!=null&&typeof n=="object"}var Up=nd?Dt(nd):l1;function aE(n,o){return n===o||ku(n,o,Ku(o))}function sE(n,o,u){return u=typeof u=="function"?u:r,ku(n,o,Ku(o),u)}function uE(n){return Hp(n)&&n!=+n}function lE(n){if(Z1(n))throw new we(s);return Md(n)}function cE(n){return n===null}function fE(n){return n==null}function Hp(n){return typeof n=="number"||Ve(n)&&_t(n)==vr}function Wi(n){if(!Ve(n)||_t(n)!=Gt)return!1;var o=aa(n);if(o===null)return!0;var u=Fe.call(o,"constructor")&&o.constructor;return typeof u=="function"&&u instanceof u&&ra.call(u)==sb}var ol=id?Dt(id):c1;function dE(n){return Bp(n)&&n>=-te&&n<=te}var qp=od?Dt(od):f1;function La(n){return typeof n=="string"||!be(n)&&Ve(n)&&_t(n)==Kr}function jt(n){return typeof n=="symbol"||Ve(n)&&_t(n)==bn}var si=ad?Dt(ad):d1;function pE(n){return n===r}function hE(n){return Ve(n)&&bt(n)==Vr}function gE(n){return Ve(n)&&_t(n)==Go}var vE=_a(Iu),mE=_a(function(n,o){return n<=o});function Zp(n){if(!n)return[];if(Ct(n))return La(n)?sr(n):Pt(n);if(Ri&&n[Ri])return Vw(n[Ri]());var o=bt(n),u=o==ut?bu:o==yt?Qo:ui;return u(n)}function zr(n){if(!n)return n===0?n:0;if(n=tr(n),n===X||n===-X){var o=n<0?-1:1;return o*de}return n===n?n:0}function xe(n){var o=zr(n),u=o%1;return o===o?u?o-u:o:0}function Gp(n){return n?On(xe(n),0,Q):0}function tr(n){if(typeof n=="number")return n;if(jt(n))return Z;if(Ze(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=Ze(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=dd(n);var u=J0.test(n);return u||ew.test(n)?$w(n.slice(2),u?2:8):Y0.test(n)?Z:+n}function Kp(n){return yr(n,kt(n))}function yE(n){return n?On(xe(n),-te,te):n===0?n:0}function ke(n){return n==null?"":Nt(n)}var wE=ii(function(n,o){if(ji(o)||Ct(o)){yr(o,lt(o),n);return}for(var u in o)Fe.call(o,u)&&Ii(n,u,o[u])}),Vp=ii(function(n,o){yr(o,kt(o),n)}),Ma=ii(function(n,o,u,y){yr(o,kt(o),n,y)}),bE=ii(function(n,o,u,y){yr(o,lt(o),n,y)}),xE=Dr(Au);function SE(n,o){var u=ni(n);return o==null?u:Td(u,o)}var EE=_e(function(n,o){n=Ne(n);var u=-1,y=o.length,_=y>2?o[2]:r;for(_&&Ot(o[0],o[1],_)&&(y=1);++u<y;)for(var T=o[u],P=kt(T),I=-1,z=P.length;++I<z;){var V=P[I],Y=n[V];(Y===r||lr(Y,ei[V])&&!Fe.call(n,V))&&(n[V]=T[V])}return n}),_E=_e(function(n){return n.push(r,dp),Ft(Xp,r,n)});function OE(n,o){return ud(n,pe(o,3),mr)}function AE(n,o){return ud(n,pe(o,3),Ru)}function TE(n,o){return n==null?n:Tu(n,pe(o,3),kt)}function RE(n,o){return n==null?n:$d(n,pe(o,3),kt)}function PE(n,o){return n&&mr(n,pe(o,3))}function CE(n,o){return n&&Ru(n,pe(o,3))}function kE(n){return n==null?[]:va(n,lt(n))}function $E(n){return n==null?[]:va(n,kt(n))}function al(n,o,u){var y=n==null?r:An(n,o);return y===r?u:y}function IE(n,o){return n!=null&&gp(n,o,r1)}function sl(n,o){return n!=null&&gp(n,o,n1)}var LE=sp(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=na.call(o)),n[o]=u},ll($t)),ME=sp(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=na.call(o)),Fe.call(n,o)?n[o].push(u):n[o]=[u]},pe),FE=_e(Mi);function lt(n){return Ct(n)?Od(n):$u(n)}function kt(n){return Ct(n)?Od(n,!0):p1(n)}function DE(n,o){var u={};return o=pe(o,3),mr(n,function(y,_,T){Mr(u,o(y,_,T),y)}),u}function NE(n,o){var u={};return o=pe(o,3),mr(n,function(y,_,T){Mr(u,_,o(y,_,T))}),u}var jE=ii(function(n,o,u){ma(n,o,u)}),Xp=ii(function(n,o,u,y){ma(n,o,u,y)}),zE=Dr(function(n,o){var u={};if(n==null)return u;var y=!1;o=Be(o,function(T){return T=nn(T,n),y||(y=T.length>1),T}),yr(n,Zu(n),u),y&&(u=Jt(u,g|p|w,L1));for(var _=o.length;_--;)Nu(u,o[_]);return u});function WE(n,o){return Yp(n,$a(pe(o)))}var BE=Dr(function(n,o){return n==null?{}:g1(n,o)});function Yp(n,o){if(n==null)return{};var u=Be(Zu(n),function(y){return[y]});return o=pe(o),Bd(n,u,function(y,_){return o(y,_[0])})}function UE(n,o,u){o=nn(o,n);var y=-1,_=o.length;for(_||(_=1,n=r);++y<_;){var T=n==null?r:n[wr(o[y])];T===r&&(y=_,T=u),n=jr(T)?T.call(n):T}return n}function HE(n,o,u){return n==null?n:Di(n,o,u)}function qE(n,o,u,y){return y=typeof y=="function"?y:r,n==null?n:Di(n,o,u,y)}var Jp=cp(lt),Qp=cp(kt);function ZE(n,o,u){var y=be(n),_=y||an(n)||si(n);if(o=pe(o,4),u==null){var T=n&&n.constructor;_?u=y?new T:[]:Ze(n)?u=jr(T)?ni(aa(n)):{}:u={}}return(_?Vt:mr)(n,function(P,I,z){return o(u,P,I,z)}),u}function GE(n,o){return n==null?!0:Nu(n,o)}function KE(n,o,u){return n==null?n:Gd(n,o,Wu(u))}function VE(n,o,u,y){return y=typeof y=="function"?y:r,n==null?n:Gd(n,o,Wu(u),y)}function ui(n){return n==null?[]:wu(n,lt(n))}function XE(n){return n==null?[]:wu(n,kt(n))}function YE(n,o,u){return u===r&&(u=o,o=r),u!==r&&(u=tr(u),u=u===u?u:0),o!==r&&(o=tr(o),o=o===o?o:0),On(tr(n),o,u)}function JE(n,o,u){return o=zr(o),u===r?(u=o,o=0):u=zr(u),n=tr(n),i1(n,o,u)}function QE(n,o,u){if(u&&typeof u!="boolean"&&Ot(n,o,u)&&(o=u=r),u===r&&(typeof o=="boolean"?(u=o,o=r):typeof n=="boolean"&&(u=n,n=r)),n===r&&o===r?(n=0,o=1):(n=zr(n),o===r?(o=n,n=0):o=zr(o)),n>o){var y=n;n=o,o=y}if(u||n%1||o%1){var _=Ed();return wt(n+_*(o-n+kw("1e-"+((_+"").length-1))),o)}return Mu(n,o)}var e_=oi(function(n,o,u){return o=o.toLowerCase(),n+(u?eh(o):o)});function eh(n){return ul(ke(n).toLowerCase())}function th(n){return n=ke(n),n&&n.replace(rw,Hw).replace(xw,"")}function t_(n,o,u){n=ke(n),o=Nt(o);var y=n.length;u=u===r?y:On(xe(u),0,y);var _=u;return u-=o.length,u>=0&&n.slice(u,_)==o}function r_(n){return n=ke(n),n&&F0.test(n)?n.replace($f,qw):n}function n_(n){return n=ke(n),n&&B0.test(n)?n.replace(nu,"\\$&"):n}var i_=oi(function(n,o,u){return n+(u?"-":"")+o.toLowerCase()}),o_=oi(function(n,o,u){return n+(u?" ":"")+o.toLowerCase()}),a_=ip("toLowerCase");function s_(n,o,u){n=ke(n),o=xe(o);var y=o?Jn(n):0;if(!o||y>=o)return n;var _=(o-y)/2;return Ea(ca(_),u)+n+Ea(la(_),u)}function u_(n,o,u){n=ke(n),o=xe(o);var y=o?Jn(n):0;return o&&y<o?n+Ea(o-y,u):n}function l_(n,o,u){n=ke(n),o=xe(o);var y=o?Jn(n):0;return o&&y<o?Ea(o-y,u)+n:n}function c_(n,o,u){return u||o==null?o=0:o&&(o=+o),mb(ke(n).replace(iu,""),o||0)}function f_(n,o,u){return(u?Ot(n,o,u):o===r)?o=1:o=xe(o),Fu(ke(n),o)}function d_(){var n=arguments,o=ke(n[0]);return n.length<3?o:o.replace(n[1],n[2])}var p_=oi(function(n,o,u){return n+(u?"_":"")+o.toLowerCase()});function h_(n,o,u){return u&&typeof u!="number"&&Ot(n,o,u)&&(o=u=r),u=u===r?Q:u>>>0,u?(n=ke(n),n&&(typeof o=="string"||o!=null&&!ol(o))&&(o=Nt(o),!o&&Yn(n))?on(sr(n),0,u):n.split(o,u)):[]}var g_=oi(function(n,o,u){return n+(u?" ":"")+ul(o)});function v_(n,o,u){return n=ke(n),u=u==null?0:On(xe(u),0,n.length),o=Nt(o),n.slice(u,u+o.length)==o}function m_(n,o,u){var y=A.templateSettings;u&&Ot(n,o,u)&&(o=r),n=ke(n),o=Ma({},o,y,fp);var _=Ma({},o.imports,y.imports,fp),T=lt(_),P=wu(_,T),I,z,V=0,Y=o.interpolate||Ko,ee="__p += '",oe=xu((o.escape||Ko).source+"|"+Y.source+"|"+(Y===If?X0:Ko).source+"|"+(o.evaluate||Ko).source+"|$","g"),le="//# sourceURL="+(Fe.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Aw+"]")+`
|
|
185
|
+
`;n.replace(oe,function(ge,Oe,Re,zt,At,Wt){return Re||(Re=zt),ee+=n.slice(V,Wt).replace(nw,Zw),Oe&&(I=!0,ee+=`' +
|
|
186
|
+
__e(`+Oe+`) +
|
|
187
|
+
'`),At&&(z=!0,ee+=`';
|
|
188
188
|
`+At+`;
|
|
189
189
|
__p += '`),Re&&(ee+=`' +
|
|
190
190
|
((__t = (`+Re+`)) == null ? '' : __t) +
|
|
191
|
-
'`),V=
|
|
192
|
-
`;var he=Fe.call(
|
|
191
|
+
'`),V=Wt+ge.length,ge}),ee+=`';
|
|
192
|
+
`;var he=Fe.call(o,"variable")&&o.variable;if(!he)ee=`with (obj) {
|
|
193
193
|
`+ee+`
|
|
194
194
|
}
|
|
195
|
-
`;else if(
|
|
195
|
+
`;else if(K0.test(he))throw new we(c);ee=(z?ee.replace($0,""):ee).replace(I0,"$1").replace(L0,"$1;"),ee="function("+(he||"obj")+`) {
|
|
196
196
|
`+(he?"":`obj || (obj = {});
|
|
197
|
-
`)+"var __t, __p = ''"+(
|
|
197
|
+
`)+"var __t, __p = ''"+(I?", __e = _.escape":"")+(z?`, __j = Array.prototype.join;
|
|
198
198
|
function print() { __p += __j.call(arguments, '') }
|
|
199
199
|
`:`;
|
|
200
200
|
`)+ee+`return __p
|
|
201
|
-
}`;var Se=mp(function(){return Pe(T,le+"return "+ee).apply(r,P)});if(Se.source=ee,Nu(Se))throw Se;return Se}function hE(n){return ke(n).toLowerCase()}function gE(n){return ke(n).toUpperCase()}function vE(n,i,u){if(n=ke(n),n&&(u||i===r))return Of(n);if(!n||!(i=Dt(i)))return n;var m=nr(n),_=nr(i),T=Tf(m,_),P=Rf(m,_)+1;return Qr(m,T,P).join("")}function mE(n,i,u){if(n=ke(n),n&&(u||i===r))return n.slice(0,Cf(n)+1);if(!n||!(i=Dt(i)))return n;var m=nr(n),_=Rf(m,nr(i))+1;return Qr(m,0,_).join("")}function yE(n,i,u){if(n=ke(n),n&&(u||i===r))return n.replace(Na,"");if(!n||!(i=Dt(i)))return n;var m=nr(n),_=Tf(m,nr(i));return Qr(m,_).join("")}function wE(n,i){var u=G,m=N;if(Ze(i)){var _="separator"in i?i.separator:_;u="length"in i?xe(i.length):u,m="omission"in i?Dt(i.omission):m}n=ke(n);var T=n.length;if(Un(n)){var P=nr(n);T=P.length}if(u>=T)return n;var $=u-Hn(m);if($<1)return m;var j=P?Qr(P,0,$).join(""):n.slice(0,$);if(_===r)return j+m;if(P&&($+=j.length-$),ju(_)){if(n.slice($).search(_)){var V,X=j;for(_.global||(_=tu(_.source,ke(Gc.exec(_))+"g")),_.lastIndex=0;V=_.exec(X);)var ee=V.index;j=j.slice(0,ee===r?$:ee)}}else if(n.indexOf(Dt(_),$)!=$){var oe=j.lastIndexOf(_);oe>-1&&(j=j.slice(0,oe))}return j+m}function bE(n){return n=ke(n),n&&k0.test(n)?n.replace(Hc,Vy):n}var xE=Xn(function(n,i,u){return n+(u?" ":"")+i.toUpperCase()}),Bu=yd("toUpperCase");function vp(n,i,u){return n=ke(n),i=u?r:i,i===r?Hy(n)?Jy(n):My(n):n.match(i)||[]}var mp=_e(function(n,i){try{return Mt(n,r,i)}catch(u){return Nu(u)?u:new we(u)}}),SE=$r(function(n,i){return qt(i,function(u){u=gr(u),Cr(n,u,Fu(n[u],n))}),n});function EE(n){var i=n==null?0:n.length,u=pe();return n=i?Be(n,function(m){if(typeof m[1]!="function")throw new Zt(l);return[u(m[0]),m[1]]}):[],_e(function(m){for(var _=-1;++_<i;){var T=n[_];if(Mt(T[0],this,m))return Mt(T[1],this,m)}})}function _E(n){return Vw(Kt(n,g))}function Uu(n){return function(){return n}}function AE(n,i){return n==null||n!==n?i:n}var OE=bd(),TE=bd(!0);function kt(n){return n}function Hu(n){return Yf(typeof n=="function"?n:Kt(n,g))}function RE(n){return Jf(Kt(n,g))}function PE(n,i){return Qf(n,Kt(i,g))}var CE=_e(function(n,i){return function(u){return Ai(u,n,i)}}),kE=_e(function(n,i){return function(u){return Ai(n,u,i)}});function qu(n,i,u){var m=ut(i),_=ns(i,m);u==null&&!(Ze(i)&&(_.length||!m.length))&&(u=i,i=n,n=this,_=ns(i,ut(i)));var T=!(Ze(u)&&"chain"in u)||!!u.chain,P=Lr(n);return qt(_,function($){var j=i[$];n[$]=j,P&&(n.prototype[$]=function(){var V=this.__chain__;if(T||V){var X=n(this.__wrapped__),ee=X.__actions__=Rt(this.__actions__);return ee.push({func:j,args:arguments,thisArg:n}),X.__chain__=V,X}return j.apply(n,Gr([this.value()],arguments))})}),n}function $E(){return dt._===this&&(dt._=iw),this}function Zu(){}function IE(n){return n=xe(n),_e(function(i){return ed(i,n)})}var LE=Eu(Be),ME=Eu(xf),FE=Eu(Ka);function yp(n){return Cu(n)?Va(gr(n)):d1(n)}function DE(n){return function(i){return n==null?r:wn(n,i)}}var NE=Sd(),jE=Sd(!0);function Gu(){return[]}function Ku(){return!1}function zE(){return{}}function WE(){return""}function BE(){return!0}function UE(n,i){if(n=xe(n),n<1||n>te)return[];var u=Q,m=yt(n,Q);i=pe(i),n-=Q;for(var _=Ja(m,i);++u<n;)i(u);return _}function HE(n){return be(n)?Be(n,gr):Nt(n)?[n]:Rt(Nd(ke(n)))}function qE(n){var i=++rw;return ke(n)+i}var ZE=ls(function(n,i){return n+i},0),GE=_u("ceil"),KE=ls(function(n,i){return n/i},1),VE=_u("floor");function YE(n){return n&&n.length?rs(n,kt,lu):r}function XE(n,i){return n&&n.length?rs(n,pe(i,2),lu):r}function JE(n){return _f(n,kt)}function QE(n,i){return _f(n,pe(i,2))}function e_(n){return n&&n.length?rs(n,kt,pu):r}function t_(n,i){return n&&n.length?rs(n,pe(i,2),pu):r}var r_=ls(function(n,i){return n*i},1),n_=_u("round"),i_=ls(function(n,i){return n-i},0);function o_(n){return n&&n.length?Xa(n,kt):0}function s_(n,i){return n&&n.length?Xa(n,pe(i,2)):0}return A.after=Rx,A.ary=Vd,A.assign=gS,A.assignIn=lp,A.assignInWith=Ss,A.assignWith=vS,A.at=mS,A.before=Yd,A.bind=Fu,A.bindAll=SE,A.bindKey=Xd,A.castArray=zx,A.chain=Zd,A.chunk=V1,A.compact=Y1,A.concat=X1,A.cond=EE,A.conforms=_E,A.constant=Uu,A.countBy=ox,A.create=yS,A.curry=Jd,A.curryRight=Qd,A.debounce=ep,A.defaults=wS,A.defaultsDeep=bS,A.defer=Px,A.delay=Cx,A.difference=J1,A.differenceBy=Q1,A.differenceWith=eb,A.drop=tb,A.dropRight=rb,A.dropRightWhile=nb,A.dropWhile=ib,A.fill=ob,A.filter=ax,A.flatMap=cx,A.flatMapDeep=fx,A.flatMapDepth=dx,A.flatten=Bd,A.flattenDeep=sb,A.flattenDepth=ab,A.flip=kx,A.flow=OE,A.flowRight=TE,A.fromPairs=ub,A.functions=TS,A.functionsIn=RS,A.groupBy=px,A.initial=cb,A.intersection=fb,A.intersectionBy=db,A.intersectionWith=pb,A.invert=CS,A.invertBy=kS,A.invokeMap=gx,A.iteratee=Hu,A.keyBy=vx,A.keys=ut,A.keysIn=Ct,A.map=vs,A.mapKeys=IS,A.mapValues=LS,A.matches=RE,A.matchesProperty=PE,A.memoize=ys,A.merge=MS,A.mergeWith=cp,A.method=CE,A.methodOf=kE,A.mixin=qu,A.negate=ws,A.nthArg=IE,A.omit=FS,A.omitBy=DS,A.once=$x,A.orderBy=mx,A.over=LE,A.overArgs=Ix,A.overEvery=ME,A.overSome=FE,A.partial=Du,A.partialRight=tp,A.partition=yx,A.pick=NS,A.pickBy=fp,A.property=yp,A.propertyOf=DE,A.pull=mb,A.pullAll=Hd,A.pullAllBy=yb,A.pullAllWith=wb,A.pullAt=bb,A.range=NE,A.rangeRight=jE,A.rearg=Lx,A.reject=xx,A.remove=xb,A.rest=Mx,A.reverse=Lu,A.sampleSize=Ex,A.set=zS,A.setWith=WS,A.shuffle=_x,A.slice=Sb,A.sortBy=Tx,A.sortedUniq=Pb,A.sortedUniqBy=Cb,A.split=cE,A.spread=Fx,A.tail=kb,A.take=$b,A.takeRight=Ib,A.takeRightWhile=Lb,A.takeWhile=Mb,A.tap=Yb,A.throttle=Dx,A.thru=gs,A.toArray=sp,A.toPairs=dp,A.toPairsIn=pp,A.toPath=HE,A.toPlainObject=up,A.transform=BS,A.unary=Nx,A.union=Fb,A.unionBy=Db,A.unionWith=Nb,A.uniq=jb,A.uniqBy=zb,A.uniqWith=Wb,A.unset=US,A.unzip=Mu,A.unzipWith=qd,A.update=HS,A.updateWith=qS,A.values=ei,A.valuesIn=ZS,A.without=Bb,A.words=vp,A.wrap=jx,A.xor=Ub,A.xorBy=Hb,A.xorWith=qb,A.zip=Zb,A.zipObject=Gb,A.zipObjectDeep=Kb,A.zipWith=Vb,A.entries=dp,A.entriesIn=pp,A.extend=lp,A.extendWith=Ss,qu(A,A),A.add=ZE,A.attempt=mp,A.camelCase=YS,A.capitalize=hp,A.ceil=GE,A.clamp=GS,A.clone=Wx,A.cloneDeep=Ux,A.cloneDeepWith=Hx,A.cloneWith=Bx,A.conformsTo=qx,A.deburr=gp,A.defaultTo=AE,A.divide=KE,A.endsWith=XS,A.eq=or,A.escape=JS,A.escapeRegExp=QS,A.every=sx,A.find=ux,A.findIndex=zd,A.findKey=xS,A.findLast=lx,A.findLastIndex=Wd,A.findLastKey=SS,A.floor=VE,A.forEach=Gd,A.forEachRight=Kd,A.forIn=ES,A.forInRight=_S,A.forOwn=AS,A.forOwnRight=OS,A.get=zu,A.gt=Zx,A.gte=Gx,A.has=PS,A.hasIn=Wu,A.head=Ud,A.identity=kt,A.includes=hx,A.indexOf=lb,A.inRange=KS,A.invoke=$S,A.isArguments=Sn,A.isArray=be,A.isArrayBuffer=Kx,A.isArrayLike=Pt,A.isArrayLikeObject=Ye,A.isBoolean=Vx,A.isBuffer=en,A.isDate=Yx,A.isElement=Xx,A.isEmpty=Jx,A.isEqual=Qx,A.isEqualWith=eS,A.isError=Nu,A.isFinite=tS,A.isFunction=Lr,A.isInteger=rp,A.isLength=bs,A.isMap=np,A.isMatch=rS,A.isMatchWith=nS,A.isNaN=iS,A.isNative=oS,A.isNil=aS,A.isNull=sS,A.isNumber=ip,A.isObject=Ze,A.isObjectLike=Ke,A.isPlainObject=ki,A.isRegExp=ju,A.isSafeInteger=uS,A.isSet=op,A.isString=xs,A.isSymbol=Nt,A.isTypedArray=Qn,A.isUndefined=lS,A.isWeakMap=cS,A.isWeakSet=fS,A.join=hb,A.kebabCase=eE,A.last=Yt,A.lastIndexOf=gb,A.lowerCase=tE,A.lowerFirst=rE,A.lt=dS,A.lte=pS,A.max=YE,A.maxBy=XE,A.mean=JE,A.meanBy=QE,A.min=e_,A.minBy=t_,A.stubArray=Gu,A.stubFalse=Ku,A.stubObject=zE,A.stubString=WE,A.stubTrue=BE,A.multiply=r_,A.nth=vb,A.noConflict=$E,A.noop=Zu,A.now=ms,A.pad=nE,A.padEnd=iE,A.padStart=oE,A.parseInt=sE,A.random=VS,A.reduce=wx,A.reduceRight=bx,A.repeat=aE,A.replace=uE,A.result=jS,A.round=n_,A.runInContext=F,A.sample=Sx,A.size=Ax,A.snakeCase=lE,A.some=Ox,A.sortedIndex=Eb,A.sortedIndexBy=_b,A.sortedIndexOf=Ab,A.sortedLastIndex=Ob,A.sortedLastIndexBy=Tb,A.sortedLastIndexOf=Rb,A.startCase=fE,A.startsWith=dE,A.subtract=i_,A.sum=o_,A.sumBy=s_,A.template=pE,A.times=UE,A.toFinite=Mr,A.toInteger=xe,A.toLength=ap,A.toLower=hE,A.toNumber=Xt,A.toSafeInteger=hS,A.toString=ke,A.toUpper=gE,A.trim=vE,A.trimEnd=mE,A.trimStart=yE,A.truncate=wE,A.unescape=bE,A.uniqueId=qE,A.upperCase=xE,A.upperFirst=Bu,A.each=Gd,A.eachRight=Kd,A.first=Ud,qu(A,(function(){var n={};return pr(A,function(i,u){Fe.call(A.prototype,u)||(n[u]=i)}),n})(),{chain:!1}),A.VERSION=o,qt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){A[n].placeholder=A}),qt(["drop","take"],function(n,i){Te.prototype[n]=function(u){u=u===r?1:it(xe(u),0);var m=this.__filtered__&&!i?new Te(this):this.clone();return m.__filtered__?m.__takeCount__=yt(u,m.__takeCount__):m.__views__.push({size:yt(u,Q),type:n+(m.__dir__<0?"Right":"")}),m},Te.prototype[n+"Right"]=function(u){return this.reverse()[n](u).reverse()}}),qt(["filter","map","takeWhile"],function(n,i){var u=i+1,m=u==q||u==J;Te.prototype[n]=function(_){var T=this.clone();return T.__iteratees__.push({iteratee:pe(_,3),type:u}),T.__filtered__=T.__filtered__||m,T}}),qt(["head","last"],function(n,i){var u="take"+(i?"Right":"");Te.prototype[n]=function(){return this[u](1).value()[0]}}),qt(["initial","tail"],function(n,i){var u="drop"+(i?"":"Right");Te.prototype[n]=function(){return this.__filtered__?new Te(this):this[u](1)}}),Te.prototype.compact=function(){return this.filter(kt)},Te.prototype.find=function(n){return this.filter(n).head()},Te.prototype.findLast=function(n){return this.reverse().find(n)},Te.prototype.invokeMap=_e(function(n,i){return typeof n=="function"?new Te(this):this.map(function(u){return Ai(u,n,i)})}),Te.prototype.reject=function(n){return this.filter(ws(pe(n)))},Te.prototype.slice=function(n,i){n=xe(n);var u=this;return u.__filtered__&&(n>0||i<0)?new Te(u):(n<0?u=u.takeRight(-n):n&&(u=u.drop(n)),i!==r&&(i=xe(i),u=i<0?u.dropRight(-i):u.take(i-n)),u)},Te.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Te.prototype.toArray=function(){return this.take(Q)},pr(Te.prototype,function(n,i){var u=/^(?:filter|find|map|reject)|While$/.test(i),m=/^(?:head|last)$/.test(i),_=A[m?"take"+(i=="last"?"Right":""):i],T=m||/^find/.test(i);_&&(A.prototype[i]=function(){var P=this.__wrapped__,$=m?[1]:arguments,j=P instanceof Te,V=$[0],X=j||be(P),ee=function(Ae){var Re=_.apply(A,Gr([Ae],$));return m&&oe?Re[0]:Re};X&&u&&typeof V=="function"&&V.length!=1&&(j=X=!1);var oe=this.__chain__,le=!!this.__actions__.length,he=T&&!oe,Se=j&&!le;if(!T&&X){P=Se?P:new Te(this);var ge=n.apply(P,$);return ge.__actions__.push({func:gs,args:[ee],thisArg:r}),new Gt(ge,oe)}return he&&Se?n.apply(this,$):(ge=this.thru(ee),he?m?ge.value()[0]:ge.value():ge)})}),qt(["pop","push","shift","sort","splice","unshift"],function(n){var i=Wo[n],u=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",m=/^(?:pop|shift)$/.test(n);A.prototype[n]=function(){var _=arguments;if(m&&!this.__chain__){var T=this.value();return i.apply(be(T)?T:[],_)}return this[u](function(P){return i.apply(be(P)?P:[],_)})}}),pr(Te.prototype,function(n,i){var u=A[i];if(u){var m=u.name+"";Fe.call(Kn,m)||(Kn[m]=[]),Kn[m].push({name:i,func:u})}}),Kn[us(r,p).name]=[{name:"wrapper",func:r}],Te.prototype.clone=bw,Te.prototype.reverse=xw,Te.prototype.value=Sw,A.prototype.at=Xb,A.prototype.chain=Jb,A.prototype.commit=Qb,A.prototype.next=ex,A.prototype.plant=rx,A.prototype.reverse=nx,A.prototype.toJSON=A.prototype.valueOf=A.prototype.value=ix,A.prototype.first=A.prototype.head,yi&&(A.prototype[yi]=tx),A}),qn=Qy();hn?((hn.exports=qn)._=qn,Ha._=qn):dt._=qn}).call(YC)})(io,io.exports)),io.exports}var et=XC();const Xl={FdSave:st.FdSave,FdWarningDanger:st.FdWarningDanger,FdInfoCircle:st.FdInfoCircle,FdInfoBold:st.FdInfoBold};var $c=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))($c||{}),$n=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))($n||{}),oi=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(oi||{});const Om={[$n.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[$n.DANGER]:{icon:"red-500",button:"primary-dark"},[$n.WARNING]:{icon:"yellow-400",button:"primary-dark"}},Tl=({color:e=$n.PRIMARY,variant:t="solid",children:r,autoFocus:o,...s})=>{const a=Om[e].button,l=t==="outlined"?`bg-transparent text-white border border-white hover:border-white hover:bg-white hover:text-${a}`:`text-white bg-${a} border border-${a} hover:border-white hover:bg-primary-hover hover:text-white`;return z.jsx("button",{autoFocus:o,className:tt("w-16 rounded px-2 py-1 text-xs font-medium hover:font-bold focus:outline-none",l),...s,children:r})},JC=({name:e,color:t=$n.PRIMARY,className:r="w-8 h-8"})=>{const o=Xl[e]||Xl.FdInfoCircle,s=`text-${Om[t].icon}`;return z.jsx(o,{className:tt(r,s)})},QC=({id:e,title:t,message:r,icon:o,type:s,color:a,zIndex:l=3e3,views:c,width:h=520,hasOverlay:y=!0,onClose:v,onEdit:g})=>{const d=f=>{v({id:e,reason:f})};W.useEffect(()=>{function f(b){b.key==="Escape"&&d(oi.CANCELED)}return window.addEventListener("keyup",f),()=>{window.removeEventListener("keyup",f)}},[]);const w=et.merge(et.values(c==null?void 0:c.toggles).flatMap(f=>f.value?f.warnings||[]:[]),c==null?void 0:c.tips),x=(f,b)=>{var S;if(!(c!=null&&c.toggles))return;const p=et.cloneDeep(c);(S=p.toggles)!=null&&S[f]&&(p.toggles[f].value=b),g({id:e,views:p})};return Eo.createPortal(z.jsx(ia,{appear:!0,show:!0,as:W.Fragment,children:z.jsx("div",{className:tt("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":y}),style:{zIndex:l},onClick:()=>d(oi.CANCELED),children:z.jsx(ia.Child,{as:W.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:z.jsx("div",{"data-cy":"confirmation-modal-cy",className:"relative rounded-md border border-grey-50 bg-grey-900",style:{width:h},onClick:f=>f.stopPropagation(),children:z.jsxs("div",{className:"flex flex-col items-center gap-3 p-6 px-12",children:[o?z.jsx("div",{className:"flex items-center justify-center",children:z.jsx(JC,{name:o,color:a,className:"w-6 h-6"})}):null,z.jsx(ek,{condition:t,children:z.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-white text-center",children:t})}),z.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium text-white",children:r}),z.jsx("div",{className:"text-xs text-white",children:et.values(c==null?void 0:c.toggles).map(f=>z.jsx("div",{children:z.jsxs("label",{htmlFor:f.key,className:"flex items-center",children:[z.jsx(fm,{size:"xs",value:f.value,onChange:b=>x(f.key,b)}),z.jsx("span",{className:"ml-1",children:f.title})]})},f.key))}),z.jsx(tk,{warnings:w}),z.jsx("div",{className:"flex items-center gap-4",children:s===$c.CONFIRM?z.jsxs(z.Fragment,{children:[z.jsx(Tl,{autoFocus:!0,color:a,onClick:()=>d(oi.CONFIRMED),children:"Confirm"}),z.jsx(Tl,{color:a,variant:"outlined",onClick:()=>d(oi.CANCELED),children:"Cancel"})]}):z.jsx(Tl,{autoFocus:!0,onClick:()=>d(),children:"OK"})})]})})})})}),document.querySelector("body"))},ek=e=>e.condition?z.jsx(z.Fragment,{children:e.children}):null,tk=e=>e.warnings?z.jsx(ia,{appear:!0,show:!!e.warnings.length,as:W.Fragment,children:z.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)=>z.jsx(ia.Child,{as:W.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:z.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[z.jsx(st.FdWarningDanger,{className:tt({"h-3 w-3":!0,"text-yellow-500":t.type==="warning","text-red-400":t.type==="error","text-primary-dark":t.type==="info"},"mr-3")}),z.jsx("div",{className:"flex-1",children:t.message})]})},`modal-warnings-${r}`))})}):null;var Tm=(e=>(e[e.MIN=.5]="MIN",e[e.MAX=10]="MAX",e[e.STEP=.5]="STEP",e[e.INIT=1]="INIT",e[e.TRANSITION=200]="TRANSITION",e))(Tm||{});const rk=({zoom:e,minZoom:t=.5,maxZoom:r=10,handleZoomIn:o,handleZoomOut:s})=>z.jsxs("div",{className:"flex items-center rounded bg-grey-300 p-1",children:[z.jsx(st.FdMinusNaked,{onClick:s,className:tt("h-5 w-5 p-1",{"text-grey-200":e<=t,"cursor-pointer rounded hover:bg-purple-800":e>t})}),z.jsxs("span",{className:"mx-1 w-10 select-none text-center text-xs",children:[(e*100).toFixed(0),"%"]}),z.jsx(st.FdPlusNaked,{onClick:o,className:tt("h-5 w-5 p-1",{"text-grey-200":e>=r,"cursor-pointer rounded hover:bg-purple-800":e<r})})]});function nk(e,t){const r=W.useRef(!1);W.useEffect(()=>{if(r.current)return e();r.current=!0},t)}const Rl=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Pl(e,t,r,o){e.addEventListener?e.addEventListener(t,r,o):e.attachEvent&&e.attachEvent("on".concat(t),r)}function to(e,t,r,o){e.removeEventListener?e.removeEventListener(t,r,o):e.detachEvent&&e.detachEvent("on".concat(t),r)}function Rm(e,t){const r=t.slice(0,t.length-1);for(let o=0;o<r.length;o++)r[o]=e[r[o].toLowerCase()];return r}function Pm(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 ik(e,t){const r=e.length>=t.length?e:t,o=e.length>=t.length?t:e;let s=!0;for(let a=0;a<r.length;a++)o.indexOf(r[a])===-1&&(s=!1);return s}const mo={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,arrowup:38,arrowdown:40,arrowleft:37,arrowright:39,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Rl?173:189,"=":Rl?61:187,";":Rl?59:186,"'":222,"{":219,"}":221,"[":219,"]":221,"\\":220},fr={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,meta:91,command:91},oo={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},gt={16:!1,18:!1,17:!1,91:!1},Ge={};for(let e=1;e<20;e++)mo["f".concat(e)]=111+e;let He=[],po=null,Cm="all";const Nr=new Map,gi=e=>mo[e.toLowerCase()]||fr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),ok=e=>Object.keys(mo).find(t=>mo[t]===e),sk=e=>Object.keys(fr).find(t=>fr[t]===e);function km(e){Cm=e||"all"}function yo(){return Cm||"all"}function ak(){return He.slice(0)}function uk(){return He.map(e=>ok(e)||sk(e)||String.fromCharCode(e))}function lk(){const e=[];return Object.keys(Ge).forEach(t=>{Ge[t].forEach(r=>{let{key:o,scope:s,mods:a,shortcut:l}=r;e.push({scope:s,shortcut:l,mods:a,keys:o.split("+").map(c=>gi(c))})})}),e}function ck(e){const t=e.target||e.srcElement,{tagName:r}=t;let o=!0;const s=r==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(t.type);return(t.isContentEditable||(s||r==="TEXTAREA"||r==="SELECT")&&!t.readOnly)&&(o=!1),o}function fk(e){return typeof e=="string"&&(e=gi(e)),He.indexOf(e)!==-1}function dk(e,t){let r,o;e||(e=yo());for(const s in Ge)if(Object.prototype.hasOwnProperty.call(Ge,s))for(r=Ge[s],o=0;o<r.length;)r[o].scope===e?r.splice(o,1).forEach(l=>{let{element:c}=l;return Ic(c)}):o++;yo()===e&&km(t||"all")}function pk(e){let t=e.keyCode||e.which||e.charCode;e.key&&e.key.toLowerCase()==="capslock"&&(t=gi(e.key));const r=He.indexOf(t);if(r>=0&&He.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&He.splice(0,He.length),(t===93||t===224)&&(t=91),t in gt){gt[t]=!1;for(const o in fr)fr[o]===t&&(cr[o]=!1)}}function $m(e){if(typeof e>"u")Object.keys(Ge).forEach(s=>{Array.isArray(Ge[s])&&Ge[s].forEach(a=>zs(a)),delete Ge[s]}),Ic(null);else if(Array.isArray(e))e.forEach(s=>{s.key&&zs(s)});else if(typeof e=="object")e.key&&zs(e);else if(typeof e=="string"){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];let[s,a]=r;typeof s=="function"&&(a=s,s=""),zs({key:e,scope:s,method:a,splitKey:"+"})}}const zs=e=>{let{key:t,scope:r,method:o,splitKey:s="+"}=e;Pm(t).forEach(l=>{const c=l.split(s),h=c.length,y=c[h-1],v=y==="*"?"*":gi(y);if(!Ge[v])return;r||(r=yo());const g=h>1?Rm(fr,c):[],d=[];Ge[v]=Ge[v].filter(w=>{const f=(o?w.method===o:!0)&&w.scope===r&&ik(w.mods,g);return f&&d.push(w.element),!f}),d.forEach(w=>Ic(w))})};function Ag(e,t,r,o){if(t.element!==o)return;let s;if(t.scope===r||t.scope==="all"){s=t.mods.length>0;for(const a in gt)Object.prototype.hasOwnProperty.call(gt,a)&&(!gt[a]&&t.mods.indexOf(+a)>-1||gt[a]&&t.mods.indexOf(+a)===-1)&&(s=!1);(t.mods.length===0&&!gt[16]&&!gt[18]&&!gt[17]&&!gt[91]||s||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(He),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function Og(e,t){const r=Ge["*"];let o=e.keyCode||e.which||e.charCode;if(e.key&&e.key.toLowerCase()==="capslock"||!cr.filter.call(this,e))return;if((o===93||o===224)&&(o=91),He.indexOf(o)===-1&&o!==229&&He.push(o),["metaKey","ctrlKey","altKey","shiftKey"].forEach(c=>{const h=oo[c];e[c]&&He.indexOf(h)===-1?He.push(h):!e[c]&&He.indexOf(h)>-1?He.splice(He.indexOf(h),1):c==="metaKey"&&e[c]&&(He=He.filter(y=>y in oo||y===o))}),o in gt){gt[o]=!0;for(const c in fr)if(Object.prototype.hasOwnProperty.call(fr,c)){const h=oo[fr[c]];cr[c]=e[h]}if(!r)return}for(const c in gt)Object.prototype.hasOwnProperty.call(gt,c)&&(gt[c]=e[oo[c]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(He.indexOf(17)===-1&&He.push(17),He.indexOf(18)===-1&&He.push(18),gt[17]=!0,gt[18]=!0);const s=yo();if(r)for(let c=0;c<r.length;c++)r[c].scope===s&&(e.type==="keydown"&&r[c].keydown||e.type==="keyup"&&r[c].keyup)&&Ag(e,r[c],s,t);if(!(o in Ge))return;const a=Ge[o],l=a.length;for(let c=0;c<l;c++)if((e.type==="keydown"&&a[c].keydown||e.type==="keyup"&&a[c].keyup)&&a[c].key){const h=a[c],{splitKey:y}=h,v=h.key.split(y),g=[];for(let d=0;d<v.length;d++)g.push(gi(v[d]));g.sort().join("")===He.sort().join("")&&Ag(e,h,s,t)}}function cr(e,t,r){He=[];const o=Pm(e);let s=[],a="all",l=document,c=0,h=!1,y=!0,v="+",g=!1,d=!1;for(r===void 0&&typeof t=="function"&&(r=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(a=t.scope),t.element&&(l=t.element),t.keyup&&(h=t.keyup),t.keydown!==void 0&&(y=t.keydown),t.capture!==void 0&&(g=t.capture),typeof t.splitKey=="string"&&(v=t.splitKey),t.single===!0&&(d=!0)),typeof t=="string"&&(a=t),d&&$m(e,a);c<o.length;c++)e=o[c].split(v),s=[],e.length>1&&(s=Rm(fr,e)),e=e[e.length-1],e=e==="*"?"*":gi(e),e in Ge||(Ge[e]=[]),Ge[e].push({keyup:h,keydown:y,scope:a,mods:s,shortcut:o[c],method:r,key:o[c],splitKey:v,element:l});if(typeof l<"u"&&window){if(!Nr.has(l)){const w=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return Og(f,l)},x=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;Og(f,l),pk(f)};Nr.set(l,{keydownListener:w,keyupListenr:x,capture:g}),Pl(l,"keydown",w,g),Pl(l,"keyup",x,g)}if(!po){const w=()=>{He=[]};po={listener:w,capture:g},Pl(window,"focus",w,g)}}}function hk(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(Ge).forEach(r=>{Ge[r].filter(s=>s.scope===t&&s.shortcut===e).forEach(s=>{s&&s.method&&s.method()})})}function Ic(e){const t=Object.values(Ge).flat();if(t.findIndex(o=>{let{element:s}=o;return s===e})<0){const{keydownListener:o,keyupListenr:s,capture:a}=Nr.get(e)||{};o&&s&&(to(e,"keyup",s,a),to(e,"keydown",o,a),Nr.delete(e))}if((t.length<=0||Nr.size<=0)&&(Object.keys(Nr).forEach(s=>{const{keydownListener:a,keyupListenr:l,capture:c}=Nr.get(s)||{};a&&l&&(to(s,"keyup",l,c),to(s,"keydown",a,c),Nr.delete(s))}),Nr.clear(),Object.keys(Ge).forEach(s=>delete Ge[s]),po)){const{listener:s,capture:a}=po;to(window,"focus",s,a),po=null}}const Cl={getPressedKeyString:uk,setScope:km,getScope:yo,deleteScope:dk,getPressedKeyCodes:ak,getAllKeyCodes:lk,isPressed:fk,filter:ck,trigger:hk,unbind:$m,keyMap:mo,modifier:fr,modifierMap:oo};for(const e in Cl)Object.prototype.hasOwnProperty.call(Cl,e)&&(cr[e]=Cl[e]);if(typeof window<"u"){const e=window.hotkeys;cr.noConflict=t=>(t&&window.hotkeys===cr&&(window.hotkeys=e),cr),window.hotkeys=cr}cr.filter=()=>!0;function gk(e,t,r,o){r instanceof Array&&(o=r,r=void 0),o=o||[],r=r||{};const{preventDefault:s=!0}=r,a=W.useCallback((c,h)=>{s&&c.preventDefault(),setTimeout(()=>t(c,h))},o),l=()=>{cr.unbind(e,a)};W.useEffect(()=>(cr(e,r,a),l),[e,r,a])}const vk=e=>{const t=W.useRef(null);return W.useEffect(()=>{const r=o=>{t.current&&!t.current.contains(o.target)&&e(o)};return document.addEventListener("click",r,!0),()=>{document.removeEventListener("click",r,!0)}},[e]),t};function mk(e){const t=W.useRef();return W.useEffect(()=>{t.current=e},[e]),t.current}function yk(e){const t=W.useRef(e);return W.useEffect(()=>{t.current=e},[e]),t}function wk(e){const t=W.useRef(null);return W.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}function bk(e){const[t,r]=W.useState(e),o=(a,l)=>{r(c=>({...c,features:{...c.features,[a]:{enabled:l}}}))},s=W.useCallback((...a)=>a.every(l=>{var c;return(c=t.features[l])==null?void 0:c.enabled}),[t.features]);return{setFeature:o,isFeatureEnabled:s}}const Im=W.createContext(""),xk=e=>z.jsx(Im.Provider,{value:e.value,children:e.children}),Sk=()=>{const e=W.useContext(Im);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function Ek(e){const[t,r]=W.useState(e),o=W.useMemo(()=>_k(t,r),[]);return{state:t,actions:{...o,set:s=>{r(typeof s=="function"?s:a=>({...a,...s}))}}}}function _k(e,t=()=>{}){return Object.keys(e).reduce((o,s)=>({...o,[`set${et.upperFirst(s)}`]:a=>t(l=>({...l,[s]:a}))}),{})}const Ak=(e,t,r={})=>{r={timeout:200,...r};const o=W.useRef(),s=()=>{o.current&&(clearTimeout(o.current),o.current=null)};return W.useCallback((a,...l)=>{s(),t&&a.detail===1&&(o.current=setTimeout(()=>{t(a,...l)},r.timeout)),a.detail%2===0&&e(a,...l)},[t,e,r.timeout])};function Wr(e){return typeof e=="function"}function Lm(e){var t=function(o){Error.call(o),o.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var kl=Lm(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
202
|
-
`+r.map(function(
|
|
203
|
-
`):"",this.name="UnsubscriptionError",this.errors=r}});function Jl(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Ea=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,o,s,a;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var c=jl(l),h=c.next();!h.done;h=c.next()){var y=h.value;y.remove(this)}}catch(f){t={error:f}}finally{try{h&&!h.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}else l.remove(this);var v=this.initialTeardown;if(Wr(v))try{v()}catch(f){a=f instanceof kl?f.errors:[f]}var g=this._finalizers;if(g){this._finalizers=null;try{for(var d=jl(g),w=d.next();!w.done;w=d.next()){var x=w.value;try{Tg(x)}catch(f){a=a??[],f instanceof kl?a=ra(ra([],zl(a)),zl(f.errors)):a.push(f)}}}catch(f){o={error:f}}finally{try{w&&!w.done&&(s=d.return)&&s.call(d)}finally{if(o)throw o.error}}}if(a)throw new kl(a)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Tg(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)&&Jl(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Jl(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),Mm=Ea.EMPTY;function Fm(e){return e instanceof Ea||e&&"closed"in e&&Wr(e.remove)&&Wr(e.add)&&Wr(e.unsubscribe)}function Tg(e){Wr(e)?e():e.unsubscribe()}var Ok={Promise:void 0},Tk={setTimeout:function(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];return setTimeout.apply(void 0,ra([e,t],zl(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Rk(e){Tk.setTimeout(function(){throw e})}function Rg(){}function Xs(e){e()}var Dm=(function(e){va(t,e);function t(r){var o=e.call(this)||this;return o.isStopped=!1,r?(o.destination=r,Fm(r)&&r.add(o)):o.destination=kk,o}return t.create=function(r,o,s){return new Ql(r,o,s)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(Ea),Pk=(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(o){Ws(o)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(o){Ws(o)}else Ws(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Ws(r)}},e})(),Ql=(function(e){va(t,e);function t(r,o,s){var a=e.call(this)||this,l;return Wr(r)||!r?l={next:r??void 0,error:o??void 0,complete:s??void 0}:l=r,a.destination=new Pk(l),a}return t})(Dm);function Ws(e){Rk(e)}function Ck(e){throw e}var kk={closed:!0,next:Rg,error:Ck,complete:Rg},$k=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function Ik(e){return e}function Lk(e){return e.length===0?Ik:e.length===1?e[0]:function(r){return e.reduce(function(o,s){return s(o)},r)}}var Pg=(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,o){var s=this,a=Fk(t)?t:new Ql(t,r,o);return Xs(function(){var l=s,c=l.operator,h=l.source;a.add(c?c.call(a,h):h?s._subscribe(a):s._trySubscribe(a))}),a},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var o=this;return r=Cg(r),new r(function(s,a){var l=new Ql({next:function(c){try{t(c)}catch(h){a(h),l.unsubscribe()}},error:a,complete:s});o.subscribe(l)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[$k]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Lk(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Cg(t),new t(function(o,s){var a;r.subscribe(function(l){return a=l},function(l){return s(l)},function(){return o(a)})})},e.create=function(t){return new e(t)},e})();function Cg(e){var t;return(t=e??Ok.Promise)!==null&&t!==void 0?t:Promise}function Mk(e){return e&&Wr(e.next)&&Wr(e.error)&&Wr(e.complete)}function Fk(e){return e&&e instanceof Dm||Mk(e)&&Fm(e)}var Dk=Lm(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Or=(function(e){va(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 o=new kg(this,this);return o.operator=r,o},t.prototype._throwIfClosed=function(){if(this.closed)throw new Dk},t.prototype.next=function(r){var o=this;Xs(function(){var s,a;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var l=jl(o.currentObservers),c=l.next();!c.done;c=l.next()){var h=c.value;h.next(r)}}catch(y){s={error:y}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(s)throw s.error}}}})},t.prototype.error=function(r){var o=this;Xs(function(){if(o._throwIfClosed(),!o.isStopped){o.hasError=o.isStopped=!0,o.thrownError=r;for(var s=o.observers;s.length;)s.shift().error(r)}})},t.prototype.complete=function(){var r=this;Xs(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var o=r.observers;o.length;)o.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 o=this,s=this,a=s.hasError,l=s.isStopped,c=s.observers;return a||l?Mm:(this.currentObservers=null,c.push(r),new Ea(function(){o.currentObservers=null,Jl(c,r)}))},t.prototype._checkFinalizedStatuses=function(r){var o=this,s=o.hasError,a=o.thrownError,l=o.isStopped;s?r.error(a):l&&r.complete()},t.prototype.asObservable=function(){var r=new Pg;return r.source=this,r},t.create=function(r,o){return new kg(r,o)},t})(Pg),kg=(function(e){va(t,e);function t(r,o){var s=e.call(this)||this;return s.destination=r,s.source=o,s}return t.prototype.next=function(r){var o,s;(s=(o=this.destination)===null||o===void 0?void 0:o.next)===null||s===void 0||s.call(o,r)},t.prototype.error=function(r){var o,s;(s=(o=this.destination)===null||o===void 0?void 0:o.error)===null||s===void 0||s.call(o,r)},t.prototype.complete=function(){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||o===void 0||o.call(r)},t.prototype._subscribe=function(r){var o,s;return(s=(o=this.source)===null||o===void 0?void 0:o.subscribe(r))!==null&&s!==void 0?s:Mm},t})(Or),Nm=(e=>(e.RELOAD="reload",e.RECOMPUTE="recompute",e))(Nm||{}),jm=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(jm||{});const Nk=new Or,jk=new Or,zm=new Or;var Wm=(e=>(e.SAVE_ALL="save-all",e))(Wm||{});const zk=new Or;var Bm=(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))(Bm||{});const Wk=new Or;var Um=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(Um||{});const Bk=new Or,Uk=new Or;var wo=(e=>(e.EVENT_STARTED="event-started",e.EVENT_ENDED="event-ended",e.EVENT_EMITED="event-emited",e.REQUEST_SENT="request-sent",e))(wo||{});const ua=new Or,Hk=new Or,Lc=31;var Mc=(e=>(e.EMPTY="Please enter a valid name",e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${Lc} characters`,e.SHOULD_START_WITH_LETTER="The name can only start with a letter or a Japanese character",e.INVALID="Invalid name",e))(Mc||{});function Hm(e){if(e==="")throw new Error("Please enter a valid name");if(e.length>Lc)throw new Error(Mc.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 qk(e){if(!e)return null;if(typeof e=="string")try{Hm(e)}catch(t){return t.message}}function Zk(e,t){let r="";if(["array","object"].includes(t))try{const o=JSON.parse(e);t==="array"&&(!Array.isArray(o)||!et.isObject(o))&&(r=`Invalid value for type ${t}`),t==="object"&&(!et.isObject(o)||Array.isArray(o))&&(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 Gk(){return{PLACEHOLDER_PREFIX:`@!MASK_${Date.now().toString(36)+Math.random().toString(36).substring(2,8)}_`,counter:0}}function _a(e){const{PLACEHOLDER_PREFIX:t,counter:r}=Gk();let o=r;const s=[],a="@!",l=v=>(s.push(v),`${t}${o++}${a}`);let c=e.replace(/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,l);c=c.replace(/([\{\s]\s*\w+\s*)(:\s*\d+)/g,(v,g,d)=>g+l(d)),c=c.replace(/:\d{2}:\d{2}/g,l);const h=new RegExp(":(?!4D\\.\\w+)[CPK]?\\d+","g");let y=c.replace(h,"");for(let v=0;v<s.length;v++){const d=`${t}${v}${a}`.replace(/([.*+?^${}()|[\]\\])/g,"\\$1"),w=new RegExp(d,"g");y=y.replace(w,s[v])}return y}var Fc=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(Fc||{});const ln={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms",CLASSES_FOLDER:"ClassesFolder",REPORTS:"Reports",DEBUGGER:"Debugger"};var ct=(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))(ct||{}),dn=(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))(dn||{}),Dc=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(Dc||{});const qm="roles.json",Zm="qodlyApp.json",Kk="model.4DModel",Gm="HTTPHandlers.json",Km="Shared/i18n.json";function Vk(e){const t=Nc(e);switch(t){case ct.SETTINGS:return{filename:"Settings",type:t};case ct.HTTP_HANDLERS:return{filename:"HTTP Handlers",type:t};case ct.ROLES:return{filename:"Roles & Privileges",type:t};case ct.LOCALIZATION:return{filename:"Localization",type:t};case ct.MODEL:return{filename:"Model",type:t};default:{const r=e.split("/"),[o]=r[1].split(".");return{filename:o,type:t}}}}function Nc(e){const t=e.split("."),r=t.pop(),o=t.join(".").split("/")[0];switch(!0){case r==="4DModel":return ct.MODEL;case r==="WebForm":return ct.WEBFORM;case(["4dm","4qs","4qm"].includes(r)&&o===ln.METHODS):return ct.METHOD;case(["4dm","4qs","4qm"].includes(r)&&o===ln.CLASSES):return ct.CLASS;case e===qm:return ct.ROLES;case e===Gm:return ct.HTTP_HANDLERS;case e===Zm:return ct.SETTINGS;case e===Km:return ct.LOCALIZATION;default:return ct.TEXT}}function Yk(e,t=!1){switch(e){case ln.REPORTS:case"report":return"QoDoc";case ln.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case ln.CLASSES:case ln.METHODS:return t?"4qs":"4dm";default:return""}}function Xk(e,t=""){const r=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return r?r[1]:t}class Vm{constructor(){this.current=Promise.resolve()}lock(){let t;const r=new Promise(s=>{t=s}),o=this.current.then(()=>t);return this.current=r,o}}function jc(){const e=new Vm;return async t=>{const r=await e.lock();try{const o=await t();return r(),o}catch(o){console.error(o),r();return}}}const Ym=et.curry((e,t,r)=>e&&et.get(r,e)===t),Jk=et.curry((e,t,r)=>et.get(r,e)!==t),Qk=et.curry((e,t)=>et.get(t,"id")!==e),e$=et.curry((e,t)=>et.get(t,"id")===e),t$=et.curry((e,t)=>et.get(t,"path")===e);function r$(e="id",t,r){return r.findIndex(Ym(e,t))!==-1}function n$(e){if(!e)return"";const{id:t,namespace:r}=e;return r&&t?`${r}:${t}`:t}function Xm(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function i$(e){return e.type==="object"}function Jm(e){var t;return e.kind==="relatedEntities"||((t=e.type)==null?void 0:t.includes("Selection"))||e.behavior==="relatedEntities"}function Qm(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!Xm(e)}function o$(e){return Jm(e)||Qm(e)}function s$(e){return e.applyTo==="dataStore"}function a$(e){return e.applyTo==="dataClass"}function u$(e){return e.applyTo==="entity"}function l$(e){return e.applyTo==="entityCollection"}function c$(e){return e.type==="entity"}function f$(e){return e.type==="entitysel"}function e0(e){return e.dataType==="array"}function t0(e){return e.dataType==="object"}function r0(e){return e.type==="scalar"}function d$(e){return e0(e)||t0(e)||r0(e)}const p$=e=>e!=null&&e.type==="entity",h$=e=>e.type==="entitysel",g$=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",v$=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",m$=e=>e.type==="scalar"&&e.dataType==="date";function y$(){return new Promise((e,t)=>{window.addEventListener("bundle:ready",r=>r.data?e():t(r.caughtErr))})}function w$(){return new Promise(e=>{window.addEventListener("i18n:ready",()=>e())})}var bo=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(bo||{}),n0=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(n0||{}),zc=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(zc||{});const b$={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function x$(e){var a;let t={};try{const l=((a=e.match(/\/\/%attributes = (.*)/))==null?void 0:a[1])||"";t=JSON.parse(l)}catch{}const{published4DMobile:r,...o}=t;return{...{invisible:!1,shared:!1,executedOnServer:!1,preemptive:bo.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!r,publishedRestOptions:r||{table:"",scope:zc.table}},...o}}function i0(e){const t={};return e.invisible&&(t.invisible=!0),e.shared&&(t.shared=!0),e.executedOnServer&&(t.executedOnServer=!0),e.preemptive&&[bo.capable,bo.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 S$(e,t,r=!1){const o=et.isString(t)?t:i0(t);if(!r&&o0(e))return e;const s=s0(e);return`//%attributes = ${o}\r
|
|
204
|
-
${
|
|
205
|
-
`}t.prototype.toString=function(f){return this.errors.map(r).join("")},Object.defineProperty(t.prototype,"valid",{get:function(){return!this.errors.length}}),ht.ValidatorResultError=o;function o(x){typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,o),this.instance=x.instance,this.schema=x.schema,this.options=x.options,this.errors=x.errors}o.prototype=new Error,o.prototype.constructor=o,o.prototype.name="Validation Error";var s=ht.SchemaError=function x(f,b){this.message=f,this.schema=b,Error.call(this,f),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,x)};s.prototype=Object.create(Error.prototype,{constructor:{value:s,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var a=ht.SchemaContext=function(f,b,p,S,E){this.schema=f,this.options=b,Array.isArray(p)?(this.path=p,this.propertyPath=p.reduce(function(R,O){return R+c(O)},"instance")):this.propertyPath=p,this.base=S,this.schemas=E};a.prototype.resolve=function(f){return w(this.base,f)},a.prototype.makeChild=function(f,b){var p=b===void 0?this.path:this.path.concat([b]),S=f.$id||f.id;let E=w(this.base,S||"");var R=new a(f,this.options,p,E,Object.create(this.schemas));return S&&!R.schemas[E]&&(R.schemas[E]=f),R};var l=ht.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,duration:/P(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S)|\d+(D|M(\d+D)?|Y(\d+M(\d+D)?)?)(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S))?|\d+W)/i,email:/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,"idn-email":/^("(?:[!#-\[\]-\u{10FFFF}]|\\[\t -\u{10FFFF}])*"|[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*)@([!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*|\[[!-Z\^-\u{10FFFF}]*\])$/u,"ip-address":/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,ipv6:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,uri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"uri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/,iri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"iri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~-\u{10FFFF}]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~-\u{10FFFF}])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/u,uuid:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,"uri-template":/(%[0-9a-f]{2}|[!#$&(-;=?@\[\]_a-z~]|\{[!#&+,./;=?@|]?(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?(,(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?)*\})*/iu,"json-pointer":/^(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*$/iu,"relative-json-pointer":/^\d+(#|(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*)$/iu,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"utc-millisec":function(x){return typeof x=="string"&&parseFloat(x)===parseInt(x,10)&&!isNaN(x)},regex:function(x){var f=!0;try{new RegExp(x)}catch{f=!1}return f},style:/[\r\n\t ]*[^\r\n\t ][^:]*:[\r\n\t ]*[^\r\n\t ;]*[\r\n\t ]*;?/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/};l.regexp=l.regex,l.pattern=l.regex,l.ipv4=l["ip-address"],ht.isFormat=function(f,b,p){if(typeof f=="string"&&l[b]!==void 0){if(l[b]instanceof RegExp)return l[b].test(f);if(typeof l[b]=="function")return l[b](f)}else if(p&&p.customFormats&&typeof p.customFormats[b]=="function")return p.customFormats[b](f);return!0};var c=ht.makeSuffix=function(f){return f=f.toString(),!f.match(/[.\s\[\]]/)&&!f.match(/^[\d]/)?"."+f:f.match(/^\d+$/)?"["+f+"]":"["+JSON.stringify(f)+"]"};ht.deepCompareStrict=function x(f,b){if(typeof f!=typeof b)return!1;if(Array.isArray(f))return!Array.isArray(b)||f.length!==b.length?!1:f.every(function(E,R){return x(f[R],b[R])});if(typeof f=="object"){if(!f||!b)return f===b;var p=Object.keys(f),S=Object.keys(b);return p.length!==S.length?!1:p.every(function(E){return x(f[E],b[E])})}return f===b};function h(x,f,b,p){typeof b=="object"?f[p]=g(x[p],b):x.indexOf(b)===-1&&f.push(b)}function y(x,f,b){f[b]=x[b]}function v(x,f,b,p){typeof f[p]!="object"||!f[p]?b[p]=f[p]:x[p]?b[p]=g(x[p],f[p]):b[p]=f[p]}function g(x,f){var b=Array.isArray(f),p=b&&[]||{};return b?(x=x||[],p=p.concat(x),f.forEach(h.bind(null,x,p))):(x&&typeof x=="object"&&Object.keys(x).forEach(y.bind(null,x,p)),Object.keys(f).forEach(v.bind(null,x,f,p))),p}ht.deepMerge=g,ht.objectGetPath=function(f,b){for(var p=b.split("/").slice(1),S;typeof(S=p.shift())=="string";){var E=decodeURIComponent(S.replace(/~0/,"~").replace(/~1/g,"/"));if(!(E in f))return;f=f[E]}return f};function d(x){return"/"+encodeURIComponent(x).replace(/~/g,"%7E")}ht.encodePath=function(f){return f.map(d).join("")},ht.getDecimalPlaces=function(f){var b=0;if(isNaN(f))return b;typeof f!="number"&&(f=Number(f));var p=f.toString().split("e");if(p.length===2){if(p[1][0]!=="-")return b;b=Number(p[1].slice(1))}var S=p[0].split(".");return S.length===2&&(b+=S[1].length),b},ht.isSchema=function(f){return typeof f=="object"&&f||typeof f=="boolean"};var w=ht.resolveUrl=function(f,b){const p=new URL(b,new URL(f,"resolve://"));if(p.protocol==="resolve:"){const{pathname:S,search:E,hash:R}=p;return S+E+R}return p.toString()};return ht}var $l,Ig;function O$(){if(Ig)return $l;Ig=1;var e=Tn(),t=e.ValidatorResult,r=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 s=o.validators={};s.type=function(g,d,w,x){if(g===void 0)return null;var f=new t(g,d,w,x),b=Array.isArray(d.type)?d.type:[d.type];if(!b.some(this.testType.bind(this,g,d,w,x))){var p=b.map(function(S){if(S){var E=S.$id||S.id;return E?"<"+E+">":S+""}});f.addError({name:"type",argument:p,message:"is not of a type(s) "+p})}return f};function a(v,g,d,w,x){var f=g.throwError,b=g.throwAll;g.throwError=!1,g.throwAll=!1;var p=this.validateSchema(v,x,g,d);return g.throwError=f,g.throwAll=b,!p.valid&&w instanceof Function&&w(p),p.valid}s.anyOf=function(g,d,w,x){if(g===void 0)return null;var f=new t(g,d,w,x),b=new t(g,d,w,x);if(!Array.isArray(d.anyOf))throw new r("anyOf must be an array");if(!d.anyOf.some(a.bind(this,g,w,x,function(S){b.importErrors(S)}))){var p=d.anyOf.map(function(S,E){var R=S.$id||S.id;return R?"<"+R+">":S.title&&JSON.stringify(S.title)||S.$ref&&"<"+S.$ref+">"||"[subschema "+E+"]"});w.nestedErrors&&f.importErrors(b),f.addError({name:"anyOf",argument:p,message:"is not any of "+p.join(",")})}return f},s.allOf=function(g,d,w,x){if(g===void 0)return null;if(!Array.isArray(d.allOf))throw new r("allOf must be an array");var f=new t(g,d,w,x),b=this;return d.allOf.forEach(function(p,S){var E=b.validateSchema(g,p,w,x);if(!E.valid){var R=p.$id||p.id,O=R||p.title&&JSON.stringify(p.title)||p.$ref&&"<"+p.$ref+">"||"[subschema "+S+"]";f.addError({name:"allOf",argument:{id:O,length:E.errors.length,valid:E},message:"does not match allOf schema "+O+" with "+E.errors.length+" error[s]:"}),f.importErrors(E)}}),f},s.oneOf=function(g,d,w,x){if(g===void 0)return null;if(!Array.isArray(d.oneOf))throw new r("oneOf must be an array");var f=new t(g,d,w,x),b=new t(g,d,w,x),p=d.oneOf.filter(a.bind(this,g,w,x,function(E){b.importErrors(E)})).length,S=d.oneOf.map(function(E,R){var O=E.$id||E.id;return O||E.title&&JSON.stringify(E.title)||E.$ref&&"<"+E.$ref+">"||"[subschema "+R+"]"});return p!==1&&(w.nestedErrors&&f.importErrors(b),f.addError({name:"oneOf",argument:S,message:"is not exactly one from "+S.join(",")})),f},s.if=function(g,d,w,x){if(g===void 0)return null;if(!e.isSchema(d.if))throw new Error('Expected "if" keyword to be a schema');var f=a.call(this,g,w,x,null,d.if),b=new t(g,d,w,x),p;if(f){if(d.then===void 0)return;if(!e.isSchema(d.then))throw new Error('Expected "then" keyword to be a schema');p=this.validateSchema(g,d.then,w,x.makeChild(d.then)),b.importErrors(p)}else{if(d.else===void 0)return;if(!e.isSchema(d.else))throw new Error('Expected "else" keyword to be a schema');p=this.validateSchema(g,d.else,w,x.makeChild(d.else)),b.importErrors(p)}return b};function l(v,g){if(Object.hasOwnProperty.call(v,g))return v[g];if(g in v){for(;v=Object.getPrototypeOf(v);)if(Object.propertyIsEnumerable.call(v,g))return v[g]}}s.propertyNames=function(g,d,w,x){if(this.types.object(g)){var f=new t(g,d,w,x),b=d.propertyNames!==void 0?d.propertyNames:{};if(!e.isSchema(b))throw new r('Expected "propertyNames" to be a schema (object or boolean)');for(var p in g)if(l(g,p)!==void 0){var S=this.validateSchema(p,b,w,x.makeChild(b));f.importErrors(S)}return f}},s.properties=function(g,d,w,x){if(this.types.object(g)){var f=new t(g,d,w,x),b=d.properties||{};for(var p in b){var S=b[p];if(S!==void 0){if(S===null)throw new r('Unexpected null, expected schema in "properties"');typeof w.preValidateProperty=="function"&&w.preValidateProperty(g,p,S,w,x);var E=l(g,p),R=this.validateSchema(E,S,w,x.makeChild(S,p));R.instance!==f.instance[p]&&(f.instance[p]=R.instance),f.importErrors(R)}}return f}};function c(v,g,d,w,x,f){if(this.types.object(v)&&!(g.properties&&g.properties[x]!==void 0))if(g.additionalProperties===!1)f.addError({name:"additionalProperties",argument:x,message:"is not allowed to have the additional property "+JSON.stringify(x)});else{var b=g.additionalProperties||{};typeof d.preValidateProperty=="function"&&d.preValidateProperty(v,x,b,d,w);var p=this.validateSchema(v[x],b,d,w.makeChild(b,x));p.instance!==f.instance[x]&&(f.instance[x]=p.instance),f.importErrors(p)}}s.patternProperties=function(g,d,w,x){if(this.types.object(g)){var f=new t(g,d,w,x),b=d.patternProperties||{};for(var p in g){var S=!0;for(var E in b){var R=b[E];if(R!==void 0){if(R===null)throw new r('Unexpected null, expected schema in "patternProperties"');try{var O=new RegExp(E,"u")}catch{O=new RegExp(E)}if(O.test(p)){S=!1,typeof w.preValidateProperty=="function"&&w.preValidateProperty(g,p,R,w,x);var k=this.validateSchema(g[p],R,w,x.makeChild(R,p));k.instance!==f.instance[p]&&(f.instance[p]=k.instance),f.importErrors(k)}}}S&&c.call(this,g,d,w,x,p,f)}return f}},s.additionalProperties=function(g,d,w,x){if(this.types.object(g)){if(d.patternProperties)return null;var f=new t(g,d,w,x);for(var b in g)c.call(this,g,d,w,x,b,f);return f}},s.minProperties=function(g,d,w,x){if(this.types.object(g)){var f=new t(g,d,w,x),b=Object.keys(g);return b.length>=d.minProperties||f.addError({name:"minProperties",argument:d.minProperties,message:"does not meet minimum property length of "+d.minProperties}),f}},s.maxProperties=function(g,d,w,x){if(this.types.object(g)){var f=new t(g,d,w,x),b=Object.keys(g);return b.length<=d.maxProperties||f.addError({name:"maxProperties",argument:d.maxProperties,message:"does not meet maximum property length of "+d.maxProperties}),f}},s.items=function(g,d,w,x){var f=this;if(this.types.array(g)&&d.items!==void 0){var b=new t(g,d,w,x);return g.every(function(p,S){if(Array.isArray(d.items))var E=d.items[S]===void 0?d.additionalItems:d.items[S];else var E=d.items;if(E===void 0)return!0;if(E===!1)return b.addError({name:"items",message:"additionalItems not permitted"}),!1;var R=f.validateSchema(p,E,w,x.makeChild(E,S));return R.instance!==b.instance[S]&&(b.instance[S]=R.instance),b.importErrors(R),!0}),b}},s.contains=function(g,d,w,x){var f=this;if(this.types.array(g)&&d.contains!==void 0){if(!e.isSchema(d.contains))throw new Error('Expected "contains" keyword to be a schema');var b=new t(g,d,w,x),p=g.some(function(S,E){var R=f.validateSchema(S,d.contains,w,x.makeChild(d.contains,E));return R.errors.length===0});return p===!1&&b.addError({name:"contains",argument:d.contains,message:"must contain an item matching given schema"}),b}},s.minimum=function(g,d,w,x){if(this.types.number(g)){var f=new t(g,d,w,x);return d.exclusiveMinimum&&d.exclusiveMinimum===!0?g>d.minimum||f.addError({name:"minimum",argument:d.minimum,message:"must be greater than "+d.minimum}):g>=d.minimum||f.addError({name:"minimum",argument:d.minimum,message:"must be greater than or equal to "+d.minimum}),f}},s.maximum=function(g,d,w,x){if(this.types.number(g)){var f=new t(g,d,w,x);return d.exclusiveMaximum&&d.exclusiveMaximum===!0?g<d.maximum||f.addError({name:"maximum",argument:d.maximum,message:"must be less than "+d.maximum}):g<=d.maximum||f.addError({name:"maximum",argument:d.maximum,message:"must be less than or equal to "+d.maximum}),f}},s.exclusiveMinimum=function(g,d,w,x){if(typeof d.exclusiveMinimum!="boolean"&&this.types.number(g)){var f=new t(g,d,w,x),b=g>d.exclusiveMinimum;return b||f.addError({name:"exclusiveMinimum",argument:d.exclusiveMinimum,message:"must be strictly greater than "+d.exclusiveMinimum}),f}},s.exclusiveMaximum=function(g,d,w,x){if(typeof d.exclusiveMaximum!="boolean"&&this.types.number(g)){var f=new t(g,d,w,x),b=g<d.exclusiveMaximum;return b||f.addError({name:"exclusiveMaximum",argument:d.exclusiveMaximum,message:"must be strictly less than "+d.exclusiveMaximum}),f}};var h=function(g,d,w,x,f,b){if(this.types.number(g)){var p=d[f];if(p==0)throw new r(f+" cannot be zero");var S=new t(g,d,w,x),E=e.getDecimalPlaces(g),R=e.getDecimalPlaces(p),O=Math.max(E,R),k=Math.pow(10,O);return Math.round(g*k)%Math.round(p*k)!==0&&S.addError({name:f,argument:p,message:b+JSON.stringify(p)}),S}};s.multipleOf=function(g,d,w,x){return h.call(this,g,d,w,x,"multipleOf","is not a multiple of (divisible by) ")},s.divisibleBy=function(g,d,w,x){return h.call(this,g,d,w,x,"divisibleBy","is not divisible by (multiple of) ")},s.required=function(g,d,w,x){var f=new t(g,d,w,x);return g===void 0&&d.required===!0?f.addError({name:"required",message:"is required"}):this.types.object(g)&&Array.isArray(d.required)&&d.required.forEach(function(b){l(g,b)===void 0&&f.addError({name:"required",argument:b,message:"requires property "+JSON.stringify(b)})}),f},s.pattern=function(g,d,w,x){if(this.types.string(g)){var f=new t(g,d,w,x),b=d.pattern;try{var p=new RegExp(b,"u")}catch{p=new RegExp(b)}return g.match(p)||f.addError({name:"pattern",argument:d.pattern,message:"does not match pattern "+JSON.stringify(d.pattern.toString())}),f}},s.format=function(g,d,w,x){if(g!==void 0){var f=new t(g,d,w,x);return!f.disableFormat&&!e.isFormat(g,d.format,this)&&f.addError({name:"format",argument:d.format,message:"does not conform to the "+JSON.stringify(d.format)+" format"}),f}},s.minLength=function(g,d,w,x){if(this.types.string(g)){var f=new t(g,d,w,x),b=g.match(/[\uDC00-\uDFFF]/g),p=g.length-(b?b.length:0);return p>=d.minLength||f.addError({name:"minLength",argument:d.minLength,message:"does not meet minimum length of "+d.minLength}),f}},s.maxLength=function(g,d,w,x){if(this.types.string(g)){var f=new t(g,d,w,x),b=g.match(/[\uDC00-\uDFFF]/g),p=g.length-(b?b.length:0);return p<=d.maxLength||f.addError({name:"maxLength",argument:d.maxLength,message:"does not meet maximum length of "+d.maxLength}),f}},s.minItems=function(g,d,w,x){if(this.types.array(g)){var f=new t(g,d,w,x);return g.length>=d.minItems||f.addError({name:"minItems",argument:d.minItems,message:"does not meet minimum length of "+d.minItems}),f}},s.maxItems=function(g,d,w,x){if(this.types.array(g)){var f=new t(g,d,w,x);return g.length<=d.maxItems||f.addError({name:"maxItems",argument:d.maxItems,message:"does not meet maximum length of "+d.maxItems}),f}};function y(v,g,d){var w,x=d.length;for(w=g+1,x;w<x;w++)if(e.deepCompareStrict(v,d[w]))return!1;return!0}return s.uniqueItems=function(g,d,w,x){if(d.uniqueItems===!0&&this.types.array(g)){var f=new t(g,d,w,x);return g.every(y)||f.addError({name:"uniqueItems",message:"contains duplicate item"}),f}},s.dependencies=function(g,d,w,x){if(this.types.object(g)){var f=new t(g,d,w,x);for(var b in d.dependencies)if(g[b]!==void 0){var p=d.dependencies[b],S=x.makeChild(p,b);if(typeof p=="string"&&(p=[p]),Array.isArray(p))p.forEach(function(R){g[R]===void 0&&f.addError({name:"dependencies",argument:S.propertyPath,message:"property "+R+" not found, required by "+S.propertyPath})});else{var E=this.validateSchema(g,p,w,S);f.instance!==E.instance&&(f.instance=E.instance),E&&E.errors.length&&(f.addError({name:"dependencies",argument:S.propertyPath,message:"does not meet dependency required by "+S.propertyPath}),f.importErrors(E))}}return f}},s.enum=function(g,d,w,x){if(g===void 0)return null;if(!Array.isArray(d.enum))throw new r("enum expects an array",d);var f=new t(g,d,w,x);return d.enum.some(e.deepCompareStrict.bind(null,g))||f.addError({name:"enum",argument:d.enum,message:"is not one of enum values: "+d.enum.map(String).join(",")}),f},s.const=function(g,d,w,x){if(g===void 0)return null;var f=new t(g,d,w,x);return e.deepCompareStrict(d.const,g)||f.addError({name:"const",argument:d.const,message:"does not exactly match expected constant: "+d.const}),f},s.not=s.disallow=function(g,d,w,x){var f=this;if(g===void 0)return null;var b=new t(g,d,w,x),p=d.not||d.disallow;return p?(Array.isArray(p)||(p=[p]),p.forEach(function(S){if(f.testType(g,d,w,x,S)){var E=S&&(S.$id||S.id),R=E||S;b.addError({name:"not",argument:R,message:"is of prohibited type "+R})}}),b):null},$l=o,$l}var Bs={},Lg;function tc(){if(Lg)return Bs;Lg=1;var e=Tn();Bs.SchemaScanResult=t;function t(r,o){this.id=r,this.ref=o}return Bs.scan=function(o,s){function a(v,g){if(!g||typeof g!="object")return;if(g.$ref){let f=e.resolveUrl(v,g.$ref);y[f]=y[f]?y[f]+1:0;return}var d=g.$id||g.id;let w=e.resolveUrl(v,d);var x=d?w:v;if(x){if(x.indexOf("#")<0&&(x+="#"),h[x]){if(!e.deepCompareStrict(h[x],g))throw new Error("Schema <"+x+"> already exists with different definition");return h[x]}h[x]=g,x[x.length-1]=="#"&&(h[x.substring(0,x.length-1)]=g)}l(x+"/items",Array.isArray(g.items)?g.items:[g.items]),l(x+"/extends",Array.isArray(g.extends)?g.extends:[g.extends]),a(x+"/additionalItems",g.additionalItems),c(x+"/properties",g.properties),a(x+"/additionalProperties",g.additionalProperties),c(x+"/definitions",g.definitions),c(x+"/patternProperties",g.patternProperties),c(x+"/dependencies",g.dependencies),l(x+"/disallow",g.disallow),l(x+"/allOf",g.allOf),l(x+"/anyOf",g.anyOf),l(x+"/oneOf",g.oneOf),a(x+"/not",g.not)}function l(v,g){if(Array.isArray(g))for(var d=0;d<g.length;d++)a(v+"/"+d,g[d])}function c(v,g){if(!(!g||typeof g!="object"))for(var d in g)a(v+"/"+d,g[d])}var h={},y={};return a(o,s),new t(h,y)},Bs}var Il,Mg;function T$(){if(Mg)return Il;Mg=1;var e=O$(),t=Tn(),r=tc().scan,o=t.ValidatorResult,s=t.ValidatorResultError,a=t.SchemaError,l=t.SchemaContext,c="/",h=function g(){this.customFormats=Object.create(g.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(v),this.attributes=Object.create(e.validators)};h.prototype.customFormats={},h.prototype.schemas=null,h.prototype.types=null,h.prototype.attributes=null,h.prototype.unresolvedRefs=null,h.prototype.addSchema=function(d,w){var x=this;if(!d)return null;var f=r(w||c,d),b=w||d.$id||d.id;for(var p in f.id)this.schemas[p]=f.id[p];for(var p in f.ref)this.unresolvedRefs.push(p);return this.unresolvedRefs=this.unresolvedRefs.filter(function(S){return typeof x.schemas[S]>"u"}),this.schemas[b]},h.prototype.addSubSchemaArray=function(d,w){if(Array.isArray(w))for(var x=0;x<w.length;x++)this.addSubSchema(d,w[x])},h.prototype.addSubSchemaObject=function(d,w){if(!(!w||typeof w!="object"))for(var x in w)this.addSubSchema(d,w[x])},h.prototype.setSchemas=function(d){this.schemas=d},h.prototype.getSchema=function(d){return this.schemas[d]},h.prototype.validate=function(d,w,x,f){if(typeof w!="boolean"&&typeof w!="object"||w===null)throw new a("Expected `schema` to be an object or boolean");x||(x={});var b=w.$id||w.id;let p=t.resolveUrl(x.base,b||"");if(!f){f=new l(w,x,[],p,Object.create(this.schemas)),f.schemas[p]||(f.schemas[p]=w);var S=r(p,w);for(var E in S.id){var R=S.id[E];f.schemas[E]=R}}if(x.required&&d===void 0){var O=new o(d,w,x,f);return O.addError("is required, but is undefined"),O}var O=this.validateSchema(d,w,x,f);if(O){if(x.throwAll&&O.errors.length)throw new s(O)}else throw new Error("Result undefined");return O};function y(g){var d=typeof g=="string"?g:g.$ref;return typeof d=="string"?d:!1}h.prototype.validateSchema=function(d,w,x,f){var b=new o(d,w,x,f);if(typeof w=="boolean")w===!0?w={}:w===!1&&(w={type:[]});else if(!w)throw new Error("schema is undefined");if(w.extends)if(Array.isArray(w.extends)){var p={schema:w,ctx:f};w.extends.forEach(this.schemaTraverser.bind(this,p)),w=p.schema,p.schema=null,p.ctx=null,p=null}else w=t.deepMerge(w,this.superResolve(w.extends,f));var S=y(w);if(S){var E=this.resolve(w,S,f),R=new l(E.subschema,x,f.path,E.switchSchema,f.schemas);return this.validateSchema(d,E.subschema,x,R)}var O=x&&x.skipAttributes||[];for(var k in w)if(!e.ignoreProperties[k]&&O.indexOf(k)<0){var B=null,L=this.attributes[k];if(L)B=L.call(this,d,w,x,f);else if(x.allowUnknownAttributes===!1)throw new a("Unsupported attribute: "+k,w);B&&b.importErrors(B)}if(typeof x.rewrite=="function"){var M=x.rewrite.call(this,d,w,x,f);b.instance=M}return b},h.prototype.schemaTraverser=function(d,w){d.schema=t.deepMerge(d.schema,this.superResolve(w,d.ctx))},h.prototype.superResolve=function(d,w){var x=y(d);return x?this.resolve(d,x,w).subschema:d},h.prototype.resolve=function(d,w,x){if(w=x.resolve(w),x.schemas[w])return{subschema:x.schemas[w],switchSchema:w};let b=new URL(w,"thismessage::/").hash;var p=b&&b.length&&w.substr(0,w.length-b.length);if(!p||!x.schemas[p])throw new a("no such schema <"+w+">",d);var S=t.objectGetPath(x.schemas[p],b.substr(1));if(S===void 0)throw new a("no such schema "+b+" located in <"+p+">",d);return{subschema:S,switchSchema:w}},h.prototype.testType=function(d,w,x,f,b){if(b!==void 0){if(b===null)throw new a('Unexpected null in "type" keyword');if(typeof this.types[b]=="function")return this.types[b].call(this,d);if(b&&typeof b=="object"){var p=this.validateSchema(d,b,x,f);return p===void 0||!(p&&p.errors.length)}return!0}};var v=h.prototype.types={};return v.string=function(d){return typeof d=="string"},v.number=function(d){return typeof d=="number"&&isFinite(d)},v.integer=function(d){return typeof d=="number"&&d%1===0},v.boolean=function(d){return typeof d=="boolean"},v.array=function(d){return Array.isArray(d)},v.null=function(d){return d===null},v.date=function(d){return d instanceof Date},v.any=function(d){return!0},v.object=function(d){return d&&typeof d=="object"&&!Array.isArray(d)&&!(d instanceof Date)},Il=h,Il}var Fg;function R$(){if(Fg)return mr;Fg=1;var e=mr.Validator=T$();return mr.ValidatorResult=Tn().ValidatorResult,mr.ValidatorResultError=Tn().ValidatorResultError,mr.ValidationError=Tn().ValidationError,mr.SchemaError=Tn().SchemaError,mr.SchemaScanResult=tc().SchemaScanResult,mr.scan=tc().scan,mr.validate=function(t,r,o){var s=new e;return s.validate(t,r,o)},mr}var P$=R$();const a0=(e,t,r)=>{const o=e instanceof RegExp?Dg(e,r):e,s=t instanceof RegExp?Dg(t,r):t,a=o!==null&&s!=null&&C$(o,s,r);return a&&{start:a[0],end:a[1],pre:r.slice(0,a[0]),body:r.slice(a[0]+o.length,a[1]),post:r.slice(a[1]+s.length)}},Dg=(e,t)=>{const r=t.match(e);return r?r[0]:null},C$=(e,t,r)=>{let o,s,a,l,c,h=r.indexOf(e),y=r.indexOf(t,h+1),v=h;if(h>=0&&y>0){if(e===t)return[h,y];for(o=[],a=r.length;v>=0&&!c;){if(v===h)o.push(v),h=r.indexOf(e,v+1);else if(o.length===1){const g=o.pop();g!==void 0&&(c=[g,y])}else s=o.pop(),s!==void 0&&s<a&&(a=s,l=y),y=r.indexOf(t,v+1);v=h<y&&h>=0?h:y}o.length&&l!==void 0&&(c=[a,l])}return c},u0="\0SLASH"+Math.random()+"\0",l0="\0OPEN"+Math.random()+"\0",Wc="\0CLOSE"+Math.random()+"\0",c0="\0COMMA"+Math.random()+"\0",f0="\0PERIOD"+Math.random()+"\0",k$=new RegExp(u0,"g"),$$=new RegExp(l0,"g"),I$=new RegExp(Wc,"g"),L$=new RegExp(c0,"g"),M$=new RegExp(f0,"g"),F$=/\\\\/g,D$=/\\{/g,N$=/\\}/g,j$=/\\,/g,z$=/\\./g;function Ll(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function W$(e){return e.replace(F$,u0).replace(D$,l0).replace(N$,Wc).replace(j$,c0).replace(z$,f0)}function B$(e){return e.replace(k$,"\\").replace($$,"{").replace(I$,"}").replace(L$,",").replace(M$,".")}function d0(e){if(!e)return[""];const t=[],r=a0("{","}",e);if(!r)return e.split(",");const{pre:o,body:s,post:a}=r,l=o.split(",");l[l.length-1]+="{"+s+"}";const c=d0(a);return a.length&&(l[l.length-1]+=c.shift(),l.push.apply(l,c)),t.push.apply(t,l),t}function U$(e){return e?(e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),so(W$(e),!0).map(B$)):[]}function H$(e){return"{"+e+"}"}function q$(e){return/^-?0\d/.test(e)}function Z$(e,t){return e<=t}function G$(e,t){return e>=t}function so(e,t){const r=[],o=a0("{","}",e);if(!o)return[e];const s=o.pre,a=o.post.length?so(o.post,!1):[""];if(/\$$/.test(o.pre))for(let l=0;l<a.length;l++){const c=s+"{"+o.body+"}"+a[l];r.push(c)}else{const l=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(o.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(o.body),h=l||c,y=o.body.indexOf(",")>=0;if(!h&&!y)return o.post.match(/,(?!,).*\}/)?(e=o.pre+"{"+o.body+Wc+o.post,so(e)):[e];let v;if(h)v=o.body.split(/\.\./);else if(v=d0(o.body),v.length===1&&v[0]!==void 0&&(v=so(v[0],!1).map(H$),v.length===1))return a.map(d=>o.pre+v[0]+d);let g;if(h&&v[0]!==void 0&&v[1]!==void 0){const d=Ll(v[0]),w=Ll(v[1]),x=Math.max(v[0].length,v[1].length);let f=v.length===3&&v[2]!==void 0?Math.abs(Ll(v[2])):1,b=Z$;w<d&&(f*=-1,b=G$);const S=v.some(q$);g=[];for(let E=d;b(E,w);E+=f){let R;if(c)R=String.fromCharCode(E),R==="\\"&&(R="");else if(R=String(E),S){const O=x-R.length;if(O>0){const k=new Array(O+1).join("0");E<0?R="-"+k+R.slice(1):R=k+R}}g.push(R)}}else{g=[];for(let d=0;d<v.length;d++)g.push.apply(g,so(v[d],!1))}for(let d=0;d<g.length;d++)for(let w=0;w<a.length;w++){const x=s+g[d]+a[w];(!t||h||x)&&r.push(x)}}return r}const K$=1024*64,la=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>K$)throw new TypeError("pattern is too long")},V$={"[: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]},ro=e=>e.replace(/[[\]\\-]/g,"\\$&"),Y$=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Ng=e=>e.join(""),X$=(e,t)=>{const r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");const o=[],s=[];let a=r+1,l=!1,c=!1,h=!1,y=!1,v=r,g="";e:for(;a<e.length;){const f=e.charAt(a);if((f==="!"||f==="^")&&a===r+1){y=!0,a++;continue}if(f==="]"&&l&&!h){v=a+1;break}if(l=!0,f==="\\"&&!h){h=!0,a++;continue}if(f==="["&&!h){for(const[b,[p,S,E]]of Object.entries(V$))if(e.startsWith(b,a)){if(g)return["$.",!1,e.length-r,!0];a+=b.length,E?s.push(p):o.push(p),c=c||S;continue e}}if(h=!1,g){f>g?o.push(ro(g)+"-"+ro(f)):f===g&&o.push(ro(f)),g="",a++;continue}if(e.startsWith("-]",a+1)){o.push(ro(f+"-")),a+=2;continue}if(e.startsWith("-",a+1)){g=f,a+=2;continue}o.push(ro(f)),a++}if(v<a)return["",!1,0,!1];if(!o.length&&!s.length)return["$.",!1,e.length-r,!0];if(s.length===0&&o.length===1&&/^\\?.$/.test(o[0])&&!y){const f=o[0].length===2?o[0].slice(-1):o[0];return[Y$(f),!1,v-r,!1]}const d="["+(y?"^":"")+Ng(o)+"]",w="["+(y?"":"^")+Ng(s)+"]";return[o.length&&s.length?"("+d+"|"+w+")":o.length?d:w,c,v-r,!0]},ao=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),J$=new Set(["!","?","+","*","@"]),jg=e=>J$.has(e),Q$="(?!(?:^|/)\\.\\.?(?:$|/))",Us="(?!\\.)",eI=new Set(["[","."]),tI=new Set(["..","."]),rI=new Set("().*{}+?[]^$\\!"),nI=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Bc="[^/]",zg=Bc+"*?",Wg=Bc+"+?";var ot,lt,zr,Ue,Qe,sn,Rn,an,wr,Pn,So,Fn,p0,cn,Js,rc,h0;const Ot=class Ot{constructor(t,r,o={}){bt(this,Fn);me(this,"type");bt(this,ot);bt(this,lt);bt(this,zr,!1);bt(this,Ue,[]);bt(this,Qe);bt(this,sn);bt(this,Rn);bt(this,an,!1);bt(this,wr);bt(this,Pn);bt(this,So,!1);this.type=t,t&&Ve(this,lt,!0),Ve(this,Qe,r),Ve(this,ot,re(this,Qe)?re(re(this,Qe),ot):this),Ve(this,wr,re(this,ot)===this?o:re(re(this,ot),wr)),Ve(this,Rn,re(this,ot)===this?[]:re(re(this,ot),Rn)),t==="!"&&!re(re(this,ot),an)&&re(this,Rn).push(this),Ve(this,sn,re(this,Qe)?re(re(this,Qe),Ue).length:0)}get hasMagic(){if(re(this,lt)!==void 0)return re(this,lt);for(const t of re(this,Ue))if(typeof t!="string"&&(t.type||t.hasMagic))return Ve(this,lt,!0);return re(this,lt)}toString(){return re(this,Pn)!==void 0?re(this,Pn):this.type?Ve(this,Pn,this.type+"("+re(this,Ue).map(t=>String(t)).join("|")+")"):Ve(this,Pn,re(this,Ue).map(t=>String(t)).join(""))}push(...t){for(const r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof Ot&&re(r,Qe)===this))throw new Error("invalid part: "+r);re(this,Ue).push(r)}}toJSON(){var r;const t=this.type===null?re(this,Ue).slice().map(o=>typeof o=="string"?o:o.toJSON()):[this.type,...re(this,Ue).map(o=>o.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===re(this,ot)||re(re(this,ot),an)&&((r=re(this,Qe))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(re(this,ot)===this)return!0;if(!((r=re(this,Qe))!=null&&r.isStart()))return!1;if(re(this,sn)===0)return!0;const t=re(this,Qe);for(let o=0;o<re(this,sn);o++){const s=re(t,Ue)[o];if(!(s instanceof Ot&&s.type==="!"))return!1}return!0}isEnd(){var r,o,s;if(re(this,ot)===this||((r=re(this,Qe))==null?void 0:r.type)==="!")return!0;if(!((o=re(this,Qe))!=null&&o.isEnd()))return!1;if(!this.type)return(s=re(this,Qe))==null?void 0:s.isEnd();const t=re(this,Qe)?re(re(this,Qe),Ue).length:0;return re(this,sn)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new Ot(this.type,t);for(const o of re(this,Ue))r.copyIn(o);return r}static fromGlob(t,r={}){var s;const o=new Ot(null,void 0,r);return $e(s=Ot,cn,Js).call(s,t,o,0,r),o}toMMPattern(){if(this!==re(this,ot))return re(this,ot).toMMPattern();const t=this.toString(),[r,o,s,a]=this.toRegExpSource();if(!(s||re(this,lt)||re(this,wr).nocase&&!re(this,wr).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return o;const c=(re(this,wr).nocase?"i":"")+(a?"u":"");return Object.assign(new RegExp(`^${r}$`,c),{_src:r,_glob:t})}get options(){return re(this,wr)}toRegExpSource(t){var h;const r=t??!!re(this,wr).dot;if(re(this,ot)===this&&$e(this,Fn,p0).call(this),!this.type){const y=this.isStart()&&this.isEnd(),v=re(this,Ue).map(x=>{var E;const[f,b,p,S]=typeof x=="string"?$e(E=Ot,cn,h0).call(E,x,re(this,lt),y):x.toRegExpSource(t);return Ve(this,lt,re(this,lt)||p),Ve(this,zr,re(this,zr)||S),f}).join("");let g="";if(this.isStart()&&typeof re(this,Ue)[0]=="string"&&!(re(this,Ue).length===1&&tI.has(re(this,Ue)[0]))){const f=eI,b=r&&f.has(v.charAt(0))||v.startsWith("\\.")&&f.has(v.charAt(2))||v.startsWith("\\.\\.")&&f.has(v.charAt(4)),p=!r&&!t&&f.has(v.charAt(0));g=b?Q$:p?Us:""}let d="";return this.isEnd()&&re(re(this,ot),an)&&((h=re(this,Qe))==null?void 0:h.type)==="!"&&(d="(?:$|\\/)"),[g+v+d,ao(v),Ve(this,lt,!!re(this,lt)),re(this,zr)]}const o=this.type==="*"||this.type==="+",s=this.type==="!"?"(?:(?!(?:":"(?:";let a=$e(this,Fn,rc).call(this,r);if(this.isStart()&&this.isEnd()&&!a&&this.type!=="!"){const y=this.toString();return Ve(this,Ue,[y]),this.type=null,Ve(this,lt,void 0),[y,ao(this.toString()),!1,!1]}let l=!o||t||r||!Us?"":$e(this,Fn,rc).call(this,!0);l===a&&(l=""),l&&(a=`(?:${a})(?:${l})*?`);let c="";if(this.type==="!"&&re(this,So))c=(this.isStart()&&!r?Us:"")+Wg;else{const y=this.type==="!"?"))"+(this.isStart()&&!r&&!t?Us:"")+zg+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&l?")":this.type==="*"&&l?")?":`)${this.type}`;c=s+a+y}return[c,ao(a),Ve(this,lt,!!re(this,lt)),re(this,zr)]}};ot=new WeakMap,lt=new WeakMap,zr=new WeakMap,Ue=new WeakMap,Qe=new WeakMap,sn=new WeakMap,Rn=new WeakMap,an=new WeakMap,wr=new WeakMap,Pn=new WeakMap,So=new WeakMap,Fn=new WeakSet,p0=function(){if(this!==re(this,ot))throw new Error("should only call on root");if(re(this,an))return this;this.toString(),Ve(this,an,!0);let t;for(;t=re(this,Rn).pop();){if(t.type!=="!")continue;let r=t,o=re(r,Qe);for(;o;){for(let s=re(r,sn)+1;!o.type&&s<re(o,Ue).length;s++)for(const a of re(t,Ue)){if(typeof a=="string")throw new Error("string part in extglob AST??");a.copyIn(re(o,Ue)[s])}r=o,o=re(r,Qe)}}return this},cn=new WeakSet,Js=function(t,r,o,s){var w,x;let a=!1,l=!1,c=-1,h=!1;if(r.type===null){let f=o,b="";for(;f<t.length;){const p=t.charAt(f++);if(a||p==="\\"){a=!a,b+=p;continue}if(l){f===c+1?(p==="^"||p==="!")&&(h=!0):p==="]"&&!(f===c+2&&h)&&(l=!1),b+=p;continue}else if(p==="["){l=!0,c=f,h=!1,b+=p;continue}if(!s.noext&&jg(p)&&t.charAt(f)==="("){r.push(b),b="";const S=new Ot(p,r);f=$e(w=Ot,cn,Js).call(w,t,S,f,s),r.push(S);continue}b+=p}return r.push(b),f}let y=o+1,v=new Ot(null,r);const g=[];let d="";for(;y<t.length;){const f=t.charAt(y++);if(a||f==="\\"){a=!a,d+=f;continue}if(l){y===c+1?(f==="^"||f==="!")&&(h=!0):f==="]"&&!(y===c+2&&h)&&(l=!1),d+=f;continue}else if(f==="["){l=!0,c=y,h=!1,d+=f;continue}if(jg(f)&&t.charAt(y)==="("){v.push(d),d="";const b=new Ot(f,v);v.push(b),y=$e(x=Ot,cn,Js).call(x,t,b,y,s);continue}if(f==="|"){v.push(d),d="",g.push(v),v=new Ot(null,r);continue}if(f===")")return d===""&&re(r,Ue).length===0&&Ve(r,So,!0),v.push(d),d="",r.push(...g,v),y;d+=f}return r.type=null,Ve(r,lt,void 0),Ve(r,Ue,[t.substring(o-1)]),y},rc=function(t){return re(this,Ue).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[o,s,a,l]=r.toRegExpSource(t);return Ve(this,zr,re(this,zr)||l),o}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},h0=function(t,r,o=!1){let s=!1,a="",l=!1;for(let c=0;c<t.length;c++){const h=t.charAt(c);if(s){s=!1,a+=(rI.has(h)?"\\":"")+h;continue}if(h==="\\"){c===t.length-1?a+="\\\\":s=!0;continue}if(h==="["){const[y,v,g,d]=X$(t,c);if(g){a+=y,l=l||v,c+=g-1,r=r||d;continue}}if(h==="*"){o&&t==="*"?a+=Wg:a+=zg,r=!0;continue}if(h==="?"){a+=Bc,r=!0;continue}a+=nI(h)}return[a,ao(t),!!r,l]},bt(Ot,cn);let ca=Ot;const iI=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),St=(e,t,r={})=>(la(t),!r.nocomment&&t.charAt(0)==="#"?!1:new Aa(t,r).match(e)),oI=/^\*+([^+@!?\*\[\(]*)$/,sI=e=>t=>!t.startsWith(".")&&t.endsWith(e),aI=e=>t=>t.endsWith(e),uI=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),lI=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),cI=/^\*+\.\*+$/,fI=e=>!e.startsWith(".")&&e.includes("."),dI=e=>e!=="."&&e!==".."&&e.includes("."),pI=/^\.\*+$/,hI=e=>e!=="."&&e!==".."&&e.startsWith("."),gI=/^\*+$/,vI=e=>e.length!==0&&!e.startsWith("."),mI=e=>e.length!==0&&e!=="."&&e!=="..",yI=/^\?+([^+@!?\*\[\(]*)?$/,wI=([e,t=""])=>{const r=g0([e]);return t?(t=t.toLowerCase(),o=>r(o)&&o.toLowerCase().endsWith(t)):r},bI=([e,t=""])=>{const r=v0([e]);return t?(t=t.toLowerCase(),o=>r(o)&&o.toLowerCase().endsWith(t)):r},xI=([e,t=""])=>{const r=v0([e]);return t?o=>r(o)&&o.endsWith(t):r},SI=([e,t=""])=>{const r=g0([e]);return t?o=>r(o)&&o.endsWith(t):r},g0=([e])=>{const t=e.length;return r=>r.length===t&&!r.startsWith(".")},v0=([e])=>{const t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},m0=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Bg={win32:{sep:"\\"},posix:{sep:"/"}},EI=m0==="win32"?Bg.win32.sep:Bg.posix.sep;St.sep=EI;const Qt=Symbol("globstar **");St.GLOBSTAR=Qt;const _I="[^/]",AI=_I+"*?",OI="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",TI="(?:(?!(?:\\/|^)\\.).)*?",RI=(e,t={})=>r=>St(r,e,t);St.filter=RI;const Jt=(e,t={})=>Object.assign({},e,t),PI=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return St;const t=St;return Object.assign((o,s,a={})=>t(o,s,Jt(e,a)),{Minimatch:class extends t.Minimatch{constructor(s,a={}){super(s,Jt(e,a))}static defaults(s){return t.defaults(Jt(e,s)).Minimatch}},AST:class extends t.AST{constructor(s,a,l={}){super(s,a,Jt(e,l))}static fromGlob(s,a={}){return t.AST.fromGlob(s,Jt(e,a))}},unescape:(o,s={})=>t.unescape(o,Jt(e,s)),escape:(o,s={})=>t.escape(o,Jt(e,s)),filter:(o,s={})=>t.filter(o,Jt(e,s)),defaults:o=>t.defaults(Jt(e,o)),makeRe:(o,s={})=>t.makeRe(o,Jt(e,s)),braceExpand:(o,s={})=>t.braceExpand(o,Jt(e,s)),match:(o,s,a={})=>t.match(o,s,Jt(e,a)),sep:t.sep,GLOBSTAR:Qt})};St.defaults=PI;const y0=(e,t={})=>(la(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:U$(e));St.braceExpand=y0;const CI=(e,t={})=>new Aa(e,t).makeRe();St.makeRe=CI;const kI=(e,t,r={})=>{const o=new Aa(t,r);return e=e.filter(s=>o.match(s)),o.options.nonull&&!e.length&&e.push(t),e};St.match=kI;const Ug=/[?*]|[+@!]\(.*?\)|\[|\]/,$I=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class Aa{constructor(t,r={}){me(this,"options");me(this,"set");me(this,"pattern");me(this,"windowsPathsNoEscape");me(this,"nonegate");me(this,"negate");me(this,"comment");me(this,"empty");me(this,"preserveMultipleSlashes");me(this,"partial");me(this,"globSet");me(this,"globParts");me(this,"nocase");me(this,"isWindows");me(this,"platform");me(this,"windowsNoMagicRoot");me(this,"regexp");la(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||m0,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){const t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...a)=>console.error(...a)),this.debug(this.pattern,this.globSet);const o=this.globSet.map(a=>this.slashSplit(a));this.globParts=this.preprocess(o),this.debug(this.pattern,this.globParts);let s=this.globParts.map((a,l,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){const h=a[0]===""&&a[1]===""&&(a[2]==="?"||!Ug.test(a[2]))&&!Ug.test(a[3]),y=/^[a-z]:/i.test(a[0]);if(h)return[...a.slice(0,4),...a.slice(4).map(v=>this.parse(v))];if(y)return[a[0],...a.slice(1).map(v=>this.parse(v))]}return a.map(h=>this.parse(h))});if(this.debug(this.pattern,s),this.set=s.filter(a=>a.indexOf(!1)===-1),this.isWindows)for(let a=0;a<this.set.length;a++){const l=this.set[a];l[0]===""&&l[1]===""&&this.globParts[a][2]==="?"&&typeof l[3]=="string"&&/^[a-z]:$/i.test(l[3])&&(l[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let o=0;o<t.length;o++)for(let s=0;s<t[o].length;s++)t[o][s]==="**"&&(t[o][s]="*");const{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):r>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(r=>{let o=-1;for(;(o=r.indexOf("**",o+1))!==-1;){let s=o;for(;r[s+1]==="**";)s++;s!==o&&r.splice(o,s-o)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((o,s)=>{const a=o[o.length-1];return s==="**"&&a==="**"?o:s===".."&&a&&a!==".."&&a!=="."&&a!=="**"?(o.pop(),o):(o.push(s),o)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let s=1;s<t.length-1;s++){const a=t[s];s===1&&a===""&&t[0]===""||(a==="."||a==="")&&(r=!0,t.splice(s,1),s--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let o=0;for(;(o=t.indexOf("..",o+1))!==-1;){const s=t[o-1];s&&s!=="."&&s!==".."&&s!=="**"&&(r=!0,t.splice(o-1,2),o-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let o of t){let s=-1;for(;(s=o.indexOf("**",s+1))!==-1;){let l=s;for(;o[l+1]==="**";)l++;l>s&&o.splice(s+1,l-s);let c=o[s+1];const h=o[s+2],y=o[s+3];if(c!==".."||!h||h==="."||h===".."||!y||y==="."||y==="..")continue;r=!0,o.splice(s,1);const v=o.slice(0);v[s]="**",t.push(v),s--}if(!this.preserveMultipleSlashes){for(let l=1;l<o.length-1;l++){const c=o[l];l===1&&c===""&&o[0]===""||(c==="."||c==="")&&(r=!0,o.splice(l,1),l--)}o[0]==="."&&o.length===2&&(o[1]==="."||o[1]==="")&&(r=!0,o.pop())}let a=0;for(;(a=o.indexOf("..",a+1))!==-1;){const l=o[a-1];if(l&&l!=="."&&l!==".."&&l!=="**"){r=!0;const h=a===1&&o[a+1]==="**"?["."]:[];o.splice(a-1,2,...h),o.length===0&&o.push(""),a-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let o=r+1;o<t.length;o++){const s=this.partsMatch(t[r],t[o],!this.preserveMultipleSlashes);if(s){t[r]=[],t[o]=s;break}}return t.filter(r=>r.length)}partsMatch(t,r,o=!1){let s=0,a=0,l=[],c="";for(;s<t.length&&a<r.length;)if(t[s]===r[a])l.push(c==="b"?r[a]:t[s]),s++,a++;else if(o&&t[s]==="**"&&r[a]===t[s+1])l.push(t[s]),s++;else if(o&&r[a]==="**"&&t[s]===r[a+1])l.push(r[a]),a++;else if(t[s]==="*"&&r[a]&&(this.options.dot||!r[a].startsWith("."))&&r[a]!=="**"){if(c==="b")return!1;c="a",l.push(t[s]),s++,a++}else if(r[a]==="*"&&t[s]&&(this.options.dot||!t[s].startsWith("."))&&t[s]!=="**"){if(c==="a")return!1;c="b",l.push(r[a]),s++,a++}else return!1;return t.length===r.length&&l}parseNegate(){if(this.nonegate)return;const t=this.pattern;let r=!1,o=0;for(let s=0;s<t.length&&t.charAt(s)==="!";s++)r=!r,o++;o&&(this.pattern=t.slice(o)),this.negate=r}matchOne(t,r,o=!1){const s=this.options;if(this.isWindows){const f=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),b=!f&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),p=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),S=!p&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),E=b?3:f?0:void 0,R=S?3:p?0:void 0;if(typeof E=="number"&&typeof R=="number"){const[O,k]=[t[E],r[R]];O.toLowerCase()===k.toLowerCase()&&(r[R]=O,R>E?r=r.slice(R):E>R&&(t=t.slice(E)))}}const{optimizationLevel:a=1}=this.options;a>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var l=0,c=0,h=t.length,y=r.length;l<h&&c<y;l++,c++){this.debug("matchOne loop");var v=r[c],g=t[l];if(this.debug(r,v,g),v===!1)return!1;if(v===Qt){this.debug("GLOBSTAR",[r,v,g]);var d=l,w=c+1;if(w===y){for(this.debug("** at the end");l<h;l++)if(t[l]==="."||t[l]===".."||!s.dot&&t[l].charAt(0)===".")return!1;return!0}for(;d<h;){var x=t[d];if(this.debug(`
|
|
206
|
-
globstar while`,t,
|
|
207
|
-
>>> no match, partial?`,t,d,r,w),d===h))}let f;if(typeof v=="string"?(f=g===v,this.debug("string match",v,g,f)):(f=v.test(g),this.debug("pattern match",v,g,f)),!f)return!1}if(l===h&&c===y)return!0;if(l===h)return o;if(c===y)return l===h-1&&t[l]==="";throw new Error("wtf?")}braceExpand(){return y0(this.pattern,this.options)}parse(t){la(t);const r=this.options;if(t==="**")return Qt;if(t==="")return"";let o,s=null;(o=t.match(gI))?s=r.dot?mI:vI:(o=t.match(oI))?s=(r.nocase?r.dot?lI:uI:r.dot?aI:sI)(o[1]):(o=t.match(yI))?s=(r.nocase?r.dot?bI:wI:r.dot?xI:SI)(o):(o=t.match(cI))?s=r.dot?dI:fI:(o=t.match(pI))&&(s=hI);const a=ca.fromGlob(t,this.options).toMMPattern();return s&&typeof a=="object"&&Reflect.defineProperty(a,"test",{value:s}),a}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const r=this.options,o=r.noglobstar?AI:r.dot?OI:TI,s=new Set(r.nocase?["i"]:[]);let a=t.map(h=>{const y=h.map(v=>{if(v instanceof RegExp)for(const g of v.flags.split(""))s.add(g);return typeof v=="string"?$I(v):v===Qt?Qt:v._src});return y.forEach((v,g)=>{const d=y[g+1],w=y[g-1];v!==Qt||w===Qt||(w===void 0?d!==void 0&&d!==Qt?y[g+1]="(?:\\/|"+o+"\\/)?"+d:y[g]=o:d===void 0?y[g-1]=w+"(?:\\/|"+o+")?":d!==Qt&&(y[g-1]=w+"(?:\\/|\\/"+o+"\\/)"+d,y[g+1]=Qt))}),y.filter(v=>v!==Qt).join("/")}).join("|");const[l,c]=t.length>1?["(?:",")"]:["",""];a="^"+l+a+c+"$",this.negate&&(a="^(?!"+a+").+$");try{this.regexp=new RegExp(a,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;const o=this.options;this.isWindows&&(t=t.split("\\").join("/"));const s=this.slashSplit(t);this.debug(this.pattern,"split",s);const a=this.set;this.debug(this.pattern,"set",a);let l=s[s.length-1];if(!l)for(let c=s.length-2;!l&&c>=0;c--)l=s[c];for(let c=0;c<a.length;c++){const h=a[c];let y=s;if(o.matchBase&&h.length===1&&(y=[l]),this.matchOne(y,h,r))return o.flipNegate?!0:!this.negate}return o.flipNegate?!1:this.negate}static defaults(t){return St.defaults(t).Minimatch}}St.AST=ca;St.Minimatch=Aa;St.escape=iI;St.unescape=ao;const xo="/$shared",II={"**/saved_conditions.json":{parser:"json",content:{conditions:[]},schema:{type:"object",properties:{conditions:{type:"array",items:{type:"object"}}},required:["conditions"]}},"**/shared_datasources.json":{parser:"json",content:{},schema:{type:"object",additionalProperties:!0,patternProperties:{"^.*$":{type:"array"}}}},"**/shared_css.json":{parser:"json",content:{classes:[]},schema:{type:"object",properties:{classes:{type:"array",items:{type:"object"}}},required:["classes"]}},"**/shared_app_events.json":{parser:"json",content:[]},"**/CustomComponents/manifest.json":{parser:"json",content:[],schema:{type:"array",items:{type:"object"}}},"**/crafted_components.json":{parser:"json",content:[],schema:{type:"array"}},"**/HTTPHandlers.json":{parser:"json",content:[],schema:{type:"array"}},"**/*.json":{parser:"json",content:{}}};function w0(e){const t=Object.entries(II).find(([r])=>St(e,r));return t==null?void 0:t[1]}function Oa(e){var o;const t=(o=w0(e))==null?void 0:o.content;if(!t)return;const r=e.replace(`${xo}/`,"Shared/");Uc({name:r,content:t,asText:typeof t=="string"})}async function LI(){const e=["CustomComponents/manifest.json","shared_app_events.json","shared_css.json","saved_conditions.json"];for(const t of e)try{await Me(`${xo}/${t}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch(r){b0(r)&&Oa(`${xo}/${t}`)}}function ko({path:e,createIfNotExists:t=!1}){const r=`${xo}/${e}`;return Me(`${r}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})}).then(o=>{const s=w0(e);let a=o;if(!s)return a;if(typeof a=="string")try{switch(s.parser){case"json":a=JSON.parse(a);break;default:break}}catch{throw new Error("Cannot parse")}if(s.schema&&!new P$.Validator().validate(a,s.schema).valid)throw new Error("Invalid Schema");return a}).catch(o=>{if(b0(o)&&t){const s=MI(o,e);zm.next({message:s,kind:"warning"}),Oa(r)}throw o})}function b0(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 MI(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 FI(e){return Me(Co,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function DI(e){return Me(Co,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const x0=()=>{const{host:e,protocol:t}=window.location,r=t==="https:";return{projectOpened:!1,remoteDebuggerMode:Dc.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${r?"s":""}://${e}/remoteDebugger`,lsp:`ws${r?"s":""}://${e}/LSP`},isRestActive:!0}};async function NI(){const{hostname:e,host:t,protocol:r}=window.location,o=r==="https:";try{const s=await Me(rt,{method:"POST",body:JSON.stringify({verb:dn.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),a=(()=>{if(s.rendererPath)return s.rendererPath;const l=`http://${e}:${s.webServerHTTPPort}`,c=`https://${e}:${s.webServerHTTPSPort}`;return s.webServerHTTPPort&&s.webServerHTTPSPort?o?c:l:s.webServerHTTPPort?l:c})();return{projectOpened:s.webServerHTTPSPort>0||s.webServerHTTPPort>0,remoteDebuggerMode:s.remoteDebuggerMode,baseUrl:a,qodly:typeof s.qodly>"u"?!0:s.qodly,urls:{renderer:s.rendererPath||`${a}/$lib/renderer/`,debugger:`ws${o?"s":""}://${t}/remoteDebugger`,lsp:`ws${o?"s":""}://${t}/LSP`},isRestActive:s.isRESTActive}}catch(s){return console.error(s),x0()}}async function S0(e){return await Me(rt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function jI(...e){return(await Promise.all(e.map(o=>S0({root:o,verb:dn.GET_FOLDER})))).map(({children:o})=>o.map(({name:s,date:a,type:l})=>({name:s,type:l,date:a,path:`${l}/${s}`}))).flat()}function zI(e,t={}){const{sanitize:r=!0}=t;return Me(`/rest/$getWebForm/${e}`,{method:"GET"}).then(o=>{if(!(o!=null&&o.components)||!r)return o;const s=new Map;return{...o,components:et.entries(o.components).map(([a,l])=>{const c=a,{resolvedName:h}=l.type;if(h==="WebformLoader"){const y=dc.generate();s.set(a,y),a=y}return[a,l,c]}).reduce((a,[l,c,h])=>{var y;return c.nodes&&(c.nodes=c.nodes.map(v=>s.get(v)||v)),c.linkedNodes&&(c.linkedNodes=et.entries(c.linkedNodes).reduce((v,[g,d])=>({...v,[g]:s.get(d)||d}),{})),(y=c.props)!=null&&y.events&&(c.props.events=c.props.events.map(v=>(v.type==="navigation"&&v.loader&&(v.loader=s.get(v.loader)||v.loader),v))),{...a,[l]:{...c,props:{...c.props,__originalID:h}}}},{})}})}function WI(e){return Me(rt,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(t=>({...t,content:[ct.METHOD,ct.CLASS].includes(t.type)?_a(t.content):t.content}))}function BI(e){return e.type==="folder"?Me(Co,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):Me(rt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function UI(e){return e.type==="folder"?(await Me(Co,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await Me(rt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function HI(e){return Me(rt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function qI(e){return Me(rt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function ZI(e){return(await Me(rt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function GI(...e){return await Me(rt,{method:"POST",body:JSON.stringify({verb:dn.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function KI(e){const t=await Me("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return t.isLogged&&t.success}async function VI(){return await Me("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function YI(e){try{const t=process.env.NODE_ENV==="development"?"/i18n/languages.json":`/$lib/${e?"studio":"renderer"}/i18n/languages.json`,o=await(await fetch(t)).text(),{supported:s}=JSON.parse(o);return s}catch{return[]}}async function XI({name:e,path:t="",root:r="root",asText:o=!1}){return Me(rt,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:r,path:t,name:e,asText:o}),headers:new Headers({"Content-Type":"application/json"})})}async function JI(e={}){try{return await ko({path:"shared_datasources.json",...e})}catch{return{}}}async function QI(e={}){try{return await ko({path:"shared_app_events.json",...e})}catch{return[]}}async function eL(e={}){try{return await ko({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function tL(e={}){try{return await ko({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function rL(){try{return await Me("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function nL(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const iL=jc(),oL=async e=>{const t={verb:dn.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:e};return iL(async()=>(await Me(rt,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}),e))},sL=jc(),aL=async e=>{const t={verb:dn.SET_FILE_CONTENT,asText:!1,name:"shared_app_events.json",path:"",root:"shared",content:e};return sL(async()=>(await Me(rt,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}),e))},Uc=async e=>{const t=await Me(rt,{method:"POST",body:JSON.stringify({...e,verb:dn.SET_FILE_CONTENT,root:Fc.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),r=Nc(`${e.path||"Sources"}/${e.name}`);return{...t,type:r,size:0}},uL=async e=>await Uc({name:"crafted_components.json",path:ln.WEBFORMS,content:e});function lL(e){return Me(rt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function cL(e){return Me(rt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function fL(e){return Me(rt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function dL(e){return Me(rt,{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)?_a(t.content):t.content}).catch(t=>{var r,o;throw((o=(r=t.data)==null?void 0:r.__ERROR[0])==null?void 0:o.errCode)===1839&&Oa(e.path),t})}function pL(e){return Me(rt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function hL(e){const t=new RegExp(/^\((.+)(?=\))/gi).exec(e);return t!==null?t[1]:""}function gL(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 vL(e){const t=hL(e).split(/[;,]/g).filter(Boolean).map(s=>{const a=s.split(":")[0].trim(),l=s.split(":")[1].trim();return{name:a,type:l}}),r=gL(e),o=r?{name:r.split(":")[0].trim(),type:r.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:t,result:o}}async function mL(e,t){const o=e.split(".").pop();try{const s=await Me(rt,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:t,functionName:o}),headers:new Headers({"Content-Type":"application/json"})});s.content=_a(s.content);const{params:a,result:l}=vL(s.parameters);return{...s,params:a,returns:l}}catch(s){return console.error(s),{className:t,functionName:o,filePath:e,content:"",params:[]}}}var E0=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(E0||{});function yL(e,t){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...t}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(r=>{})}function wL(e){window.pagesense=window.pagesense||[],window.pagesense.push(["trackEvent",e])}var _0=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(_0||{}),A0=(e=>(e[e.METHOD=1]="METHOD",e[e.CLASS=10]="CLASS",e))(A0||{}),O0=(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))(O0||{}),T0=(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))(T0||{});const bL={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},xL={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=rt;exports.AppLoader=VC;exports.ControlledSwitch=fm;exports.DATASOURCE_THEMES=bL;exports.DatasourcesActions=jm;exports.DebuggerActions=Um;exports.DesignerRequestVerb=dn;exports.Dialog=bA;exports.DialogBody=ov;exports.EActivity=E0;exports.EDITOR=xL;exports.EIDENTIFIERS=O0;exports.ERROR_CODES=T0;exports.EWebFormStyleClassScope=_0;exports.EXT_API_PREFIX=Co;exports.FileFolderType=ct;exports.FolderRootPath=ln;exports.FolderRootType=Fc;exports.HTTPError=ec;exports.HTTP_HANDLERS_TAB_PATH=Gm;exports.IPreemptive=bo;exports.IPublished=n0;exports.IPublishedRestScope=zc;exports.IdentityProvider=xk;exports.Incase=ZO;exports.IndentLines=wv;exports.LOCALIZATION_TAB_PATH=Km;exports.LogoSVG=Am;exports.LspActions=Bm;exports.MAX_FILE_NAME_LENGTH=Lc;exports.MODEL_TAB_PATH=Kk;exports.Modal=QC;exports.ModalCloseReason=oi;exports.ModalColor=$n;exports.ModalIcons=Xl;exports.ModalType=$c;exports.Mutex=Vm;exports.NameError=Mc;exports.Overlay=iv;exports.Portal=Zg;exports.PublishOptions=b$;exports.ROLES_TAB_PATH=qm;exports.RemoteDebuggerMode=Dc;exports.SETTINGS_TAB_PATH=Zm;exports.SHARED_API_PREFIX=xo;exports.SourceCodeDescriptor=A0;exports.Switcher=bv;exports.TabEventsActions=Wm;exports.Tip=iP;exports.TipsProvider=rP;exports.Toast=TO;exports.Tooltip=GC;exports.Tree=qO;exports.TreeIcon=gv;exports.TreeNode=pc;exports.WebformActions=Nm;exports.WebformEventsActions=wo;exports.ZoomComponent=rk;exports.ZoomLevel=Tm;exports._isArrayDatasource=g$;exports._isObjectDatasource=v$;exports.addAttributesToContent=S$;exports.addFolder=HI;exports.by=Ym;exports.byId=e$;exports.byPath=t$;exports.callServerSideParser=A$;exports.checkUpdates=FI;exports.createFolder=lL;exports.datasourcesSubject=Nk;exports.debuggerSubject=Bk;exports.dropFile=UI;exports.dropFolder=ZI;exports.exists=r$;exports.extractWebformName=Xk;exports.generateUUID=E$;exports.getAppSettings=NI;exports.getCatalog=VI;exports.getDatasourceId=n$;exports.getDefaultAppSettings=x0;exports.getFile=WI;exports.getFileContent=XI;exports.getFileExtentionFromType=Yk;exports.getFilenameAndTypeFromPath=Vk;exports.getFilesInfo=GI;exports.getFolder=S0;exports.getFolders=jI;exports.getFunctionContent=mL;exports.getMonacoTheme=nL;exports.getNodeInfo=dL;exports.getSavedConditions=tL;exports.getSharedAppEvents=QI;exports.getSharedCSS=eL;exports.getSharedDatasources=JI;exports.getSharedResource=ko;exports.getSupportedLanguages=YI;exports.getTypeFromExtension=Nc;exports.getUserPrivileges=rL;exports.getWebForm=zI;exports.hasAttributesString=o0;exports.http=Me;exports.i18nSubject=Hk;exports.initializeDefaultProjectFiles=LI;exports.installUpdates=DI;exports.isArrayDatasource=e0;exports.isDataClassMethod=a$;exports.isDataStoreMethod=s$;exports.isDateDatasource=m$;exports.isEntity=p$;exports.isEntityDatasource=c$;exports.isEntityMethod=u$;exports.isEntitySelection=h$;exports.isEntitySelectionDatasource=f$;exports.isEntitySelectionMethod=l$;exports.isObjectAttribute=i$;exports.isObjectDatasource=t0;exports.isRelatedAttribute=o$;exports.isRelatedEntitiesAttribute=Jm;exports.isRelatedEntityAttribute=Qm;exports.isScalarDatasource=r0;exports.isSimpleAttribute=Xm;exports.isSimpleDatasource=d$;exports.loadDS=y$;exports.loadI18n=w$;exports.log=yL;exports.login=KI;exports.lspSubject=Wk;exports.moveItem=fL;exports.outBy=Jk;exports.outById=Qk;exports.parseAttributes=x$;exports.queue=jc;exports.removeAttributesString=s0;exports.removeItem=cL;exports.renameFile=BI;exports.renameFolder=qI;exports.sanitizeContent=_a;exports.saveContent=pL;exports.setCraftedComponents=uL;exports.setFileContent=Uc;exports.setSharedAppEvents=aL;exports.setSharedSources=oL;exports.stringifyAttributes=i0;exports.tabEventsSubject=zk;exports.tasksManagerSubject=Uk;exports.toastSubject=zm;exports.trackEvent=wL;exports.transformDates=_$;exports.tryCreateSharedResource=Oa;exports.useDidMountEffect=nk;exports.useDoubleClick=Ak;exports.useFeatureFlags=bk;exports.useForwardedRef=wk;exports.useHotkeys=gk;exports.useIdentity=Sk;exports.useOutsideClick=vk;exports.usePrevious=mk;exports.useStateObject=Ek;exports.useStateRef=yk;exports.useTip=Qv;exports.validateName=Hm;exports.validateServerSide=qk;exports.validateValue=Zk;exports.webformEventsSubject=ua;exports.webformSubject=jk;
|
|
201
|
+
}`;var Se=nh(function(){return Pe(T,le+"return "+ee).apply(r,P)});if(Se.source=ee,il(Se))throw Se;return Se}function y_(n){return ke(n).toLowerCase()}function w_(n){return ke(n).toUpperCase()}function b_(n,o,u){if(n=ke(n),n&&(u||o===r))return dd(n);if(!n||!(o=Nt(o)))return n;var y=sr(n),_=sr(o),T=pd(y,_),P=hd(y,_)+1;return on(y,T,P).join("")}function x_(n,o,u){if(n=ke(n),n&&(u||o===r))return n.slice(0,vd(n)+1);if(!n||!(o=Nt(o)))return n;var y=sr(n),_=hd(y,sr(o))+1;return on(y,0,_).join("")}function S_(n,o,u){if(n=ke(n),n&&(u||o===r))return n.replace(iu,"");if(!n||!(o=Nt(o)))return n;var y=sr(n),_=pd(y,sr(o));return on(y,_).join("")}function E_(n,o){var u=G,y=N;if(Ze(o)){var _="separator"in o?o.separator:_;u="length"in o?xe(o.length):u,y="omission"in o?Nt(o.omission):y}n=ke(n);var T=n.length;if(Yn(n)){var P=sr(n);T=P.length}if(u>=T)return n;var I=u-Jn(y);if(I<1)return y;var z=P?on(P,0,I).join(""):n.slice(0,I);if(_===r)return z+y;if(P&&(I+=z.length-I),ol(_)){if(n.slice(I).search(_)){var V,Y=z;for(_.global||(_=xu(_.source,ke(Lf.exec(_))+"g")),_.lastIndex=0;V=_.exec(Y);)var ee=V.index;z=z.slice(0,ee===r?I:ee)}}else if(n.indexOf(Nt(_),I)!=I){var oe=z.lastIndexOf(_);oe>-1&&(z=z.slice(0,oe))}return z+y}function __(n){return n=ke(n),n&&M0.test(n)?n.replace(kf,Qw):n}var O_=oi(function(n,o,u){return n+(u?" ":"")+o.toUpperCase()}),ul=ip("toUpperCase");function rh(n,o,u){return n=ke(n),o=u?r:o,o===r?Kw(n)?rb(n):jw(n):n.match(o)||[]}var nh=_e(function(n,o){try{return Ft(n,r,o)}catch(u){return il(u)?u:new we(u)}}),A_=Dr(function(n,o){return Vt(o,function(u){u=wr(u),Mr(n,u,rl(n[u],n))}),n});function T_(n){var o=n==null?0:n.length,u=pe();return n=o?Be(n,function(y){if(typeof y[1]!="function")throw new Xt(l);return[u(y[0]),y[1]]}):[],_e(function(y){for(var _=-1;++_<o;){var T=n[_];if(Ft(T[0],this,y))return Ft(T[1],this,y)}})}function R_(n){return Qb(Jt(n,g))}function ll(n){return function(){return n}}function P_(n,o){return n==null||n!==n?o:n}var C_=ap(),k_=ap(!0);function $t(n){return n}function cl(n){return Fd(typeof n=="function"?n:Jt(n,g))}function $_(n){return Nd(Jt(n,g))}function I_(n,o){return jd(n,Jt(o,g))}var L_=_e(function(n,o){return function(u){return Mi(u,n,o)}}),M_=_e(function(n,o){return function(u){return Mi(n,u,o)}});function fl(n,o,u){var y=lt(o),_=va(o,y);u==null&&!(Ze(o)&&(_.length||!y.length))&&(u=o,o=n,n=this,_=va(o,lt(o)));var T=!(Ze(u)&&"chain"in u)||!!u.chain,P=jr(n);return Vt(_,function(I){var z=o[I];n[I]=z,P&&(n.prototype[I]=function(){var V=this.__chain__;if(T||V){var Y=n(this.__wrapped__),ee=Y.__actions__=Pt(this.__actions__);return ee.push({func:z,args:arguments,thisArg:n}),Y.__chain__=V,Y}return z.apply(n,Jr([this.value()],arguments))})}),n}function F_(){return dt._===this&&(dt._=ub),this}function dl(){}function D_(n){return n=xe(n),_e(function(o){return zd(o,n)})}var N_=Uu(Be),j_=Uu(sd),z_=Uu(hu);function ih(n){return Xu(n)?gu(wr(n)):v1(n)}function W_(n){return function(o){return n==null?r:An(n,o)}}var B_=up(),U_=up(!0);function pl(){return[]}function hl(){return!1}function H_(){return{}}function q_(){return""}function Z_(){return!0}function G_(n,o){if(n=xe(n),n<1||n>te)return[];var u=Q,y=wt(n,Q);o=pe(o),n-=Q;for(var _=yu(y,o);++u<n;)o(u);return _}function K_(n){return be(n)?Be(n,wr):jt(n)?[n]:Pt(_p(ke(n)))}function V_(n){var o=++ab;return ke(n)+o}var X_=Sa(function(n,o){return n+o},0),Y_=Hu("ceil"),J_=Sa(function(n,o){return n/o},1),Q_=Hu("floor");function eO(n){return n&&n.length?ga(n,$t,Pu):r}function tO(n,o){return n&&n.length?ga(n,pe(o,2),Pu):r}function rO(n){return cd(n,$t)}function nO(n,o){return cd(n,pe(o,2))}function iO(n){return n&&n.length?ga(n,$t,Iu):r}function oO(n,o){return n&&n.length?ga(n,pe(o,2),Iu):r}var aO=Sa(function(n,o){return n*o},1),sO=Hu("round"),uO=Sa(function(n,o){return n-o},0);function lO(n){return n&&n.length?mu(n,$t):0}function cO(n,o){return n&&n.length?mu(n,pe(o,2)):0}return A.after=$S,A.ary=Mp,A.assign=wE,A.assignIn=Vp,A.assignInWith=Ma,A.assignWith=bE,A.at=xE,A.before=Fp,A.bind=rl,A.bindAll=A_,A.bindKey=Dp,A.castArray=HS,A.chain=$p,A.chunk=Q1,A.compact=ex,A.concat=tx,A.cond=T_,A.conforms=R_,A.constant=ll,A.countBy=lS,A.create=SE,A.curry=Np,A.curryRight=jp,A.debounce=zp,A.defaults=EE,A.defaultsDeep=_E,A.defer=IS,A.delay=LS,A.difference=rx,A.differenceBy=nx,A.differenceWith=ix,A.drop=ox,A.dropRight=ax,A.dropRightWhile=sx,A.dropWhile=ux,A.fill=lx,A.filter=fS,A.flatMap=hS,A.flatMapDeep=gS,A.flatMapDepth=vS,A.flatten=Rp,A.flattenDeep=cx,A.flattenDepth=fx,A.flip=MS,A.flow=C_,A.flowRight=k_,A.fromPairs=dx,A.functions=kE,A.functionsIn=$E,A.groupBy=mS,A.initial=hx,A.intersection=gx,A.intersectionBy=vx,A.intersectionWith=mx,A.invert=LE,A.invertBy=ME,A.invokeMap=wS,A.iteratee=cl,A.keyBy=bS,A.keys=lt,A.keysIn=kt,A.map=Pa,A.mapKeys=DE,A.mapValues=NE,A.matches=$_,A.matchesProperty=I_,A.memoize=ka,A.merge=jE,A.mergeWith=Xp,A.method=L_,A.methodOf=M_,A.mixin=fl,A.negate=$a,A.nthArg=D_,A.omit=zE,A.omitBy=WE,A.once=FS,A.orderBy=xS,A.over=N_,A.overArgs=DS,A.overEvery=j_,A.overSome=z_,A.partial=nl,A.partialRight=Wp,A.partition=SS,A.pick=BE,A.pickBy=Yp,A.property=ih,A.propertyOf=W_,A.pull=xx,A.pullAll=Cp,A.pullAllBy=Sx,A.pullAllWith=Ex,A.pullAt=_x,A.range=B_,A.rangeRight=U_,A.rearg=NS,A.reject=OS,A.remove=Ox,A.rest=jS,A.reverse=el,A.sampleSize=TS,A.set=HE,A.setWith=qE,A.shuffle=RS,A.slice=Ax,A.sortBy=kS,A.sortedUniq=Ix,A.sortedUniqBy=Lx,A.split=h_,A.spread=zS,A.tail=Mx,A.take=Fx,A.takeRight=Dx,A.takeRightWhile=Nx,A.takeWhile=jx,A.tap=eS,A.throttle=WS,A.thru=Ra,A.toArray=Zp,A.toPairs=Jp,A.toPairsIn=Qp,A.toPath=K_,A.toPlainObject=Kp,A.transform=ZE,A.unary=BS,A.union=zx,A.unionBy=Wx,A.unionWith=Bx,A.uniq=Ux,A.uniqBy=Hx,A.uniqWith=qx,A.unset=GE,A.unzip=tl,A.unzipWith=kp,A.update=KE,A.updateWith=VE,A.values=ui,A.valuesIn=XE,A.without=Zx,A.words=rh,A.wrap=US,A.xor=Gx,A.xorBy=Kx,A.xorWith=Vx,A.zip=Xx,A.zipObject=Yx,A.zipObjectDeep=Jx,A.zipWith=Qx,A.entries=Jp,A.entriesIn=Qp,A.extend=Vp,A.extendWith=Ma,fl(A,A),A.add=X_,A.attempt=nh,A.camelCase=e_,A.capitalize=eh,A.ceil=Y_,A.clamp=YE,A.clone=qS,A.cloneDeep=GS,A.cloneDeepWith=KS,A.cloneWith=ZS,A.conformsTo=VS,A.deburr=th,A.defaultTo=P_,A.divide=J_,A.endsWith=t_,A.eq=lr,A.escape=r_,A.escapeRegExp=n_,A.every=cS,A.find=dS,A.findIndex=Ap,A.findKey=OE,A.findLast=pS,A.findLastIndex=Tp,A.findLastKey=AE,A.floor=Q_,A.forEach=Ip,A.forEachRight=Lp,A.forIn=TE,A.forInRight=RE,A.forOwn=PE,A.forOwnRight=CE,A.get=al,A.gt=XS,A.gte=YS,A.has=IE,A.hasIn=sl,A.head=Pp,A.identity=$t,A.includes=yS,A.indexOf=px,A.inRange=JE,A.invoke=FE,A.isArguments=Pn,A.isArray=be,A.isArrayBuffer=JS,A.isArrayLike=Ct,A.isArrayLikeObject=Ye,A.isBoolean=QS,A.isBuffer=an,A.isDate=eE,A.isElement=tE,A.isEmpty=rE,A.isEqual=nE,A.isEqualWith=iE,A.isError=il,A.isFinite=oE,A.isFunction=jr,A.isInteger=Bp,A.isLength=Ia,A.isMap=Up,A.isMatch=aE,A.isMatchWith=sE,A.isNaN=uE,A.isNative=lE,A.isNil=fE,A.isNull=cE,A.isNumber=Hp,A.isObject=Ze,A.isObjectLike=Ve,A.isPlainObject=Wi,A.isRegExp=ol,A.isSafeInteger=dE,A.isSet=qp,A.isString=La,A.isSymbol=jt,A.isTypedArray=si,A.isUndefined=pE,A.isWeakMap=hE,A.isWeakSet=gE,A.join=yx,A.kebabCase=i_,A.last=er,A.lastIndexOf=wx,A.lowerCase=o_,A.lowerFirst=a_,A.lt=vE,A.lte=mE,A.max=eO,A.maxBy=tO,A.mean=rO,A.meanBy=nO,A.min=iO,A.minBy=oO,A.stubArray=pl,A.stubFalse=hl,A.stubObject=H_,A.stubString=q_,A.stubTrue=Z_,A.multiply=aO,A.nth=bx,A.noConflict=F_,A.noop=dl,A.now=Ca,A.pad=s_,A.padEnd=u_,A.padStart=l_,A.parseInt=c_,A.random=QE,A.reduce=ES,A.reduceRight=_S,A.repeat=f_,A.replace=d_,A.result=UE,A.round=sO,A.runInContext=D,A.sample=AS,A.size=PS,A.snakeCase=p_,A.some=CS,A.sortedIndex=Tx,A.sortedIndexBy=Rx,A.sortedIndexOf=Px,A.sortedLastIndex=Cx,A.sortedLastIndexBy=kx,A.sortedLastIndexOf=$x,A.startCase=g_,A.startsWith=v_,A.subtract=uO,A.sum=lO,A.sumBy=cO,A.template=m_,A.times=G_,A.toFinite=zr,A.toInteger=xe,A.toLength=Gp,A.toLower=y_,A.toNumber=tr,A.toSafeInteger=yE,A.toString=ke,A.toUpper=w_,A.trim=b_,A.trimEnd=x_,A.trimStart=S_,A.truncate=E_,A.unescape=__,A.uniqueId=V_,A.upperCase=O_,A.upperFirst=ul,A.each=Ip,A.eachRight=Lp,A.first=Pp,fl(A,(function(){var n={};return mr(A,function(o,u){Fe.call(A.prototype,u)||(n[u]=o)}),n})(),{chain:!1}),A.VERSION=i,Vt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){A[n].placeholder=A}),Vt(["drop","take"],function(n,o){Te.prototype[n]=function(u){u=u===r?1:at(xe(u),0);var y=this.__filtered__&&!o?new Te(this):this.clone();return y.__filtered__?y.__takeCount__=wt(u,y.__takeCount__):y.__views__.push({size:wt(u,Q),type:n+(y.__dir__<0?"Right":"")}),y},Te.prototype[n+"Right"]=function(u){return this.reverse()[n](u).reverse()}}),Vt(["filter","map","takeWhile"],function(n,o){var u=o+1,y=u==q||u==J;Te.prototype[n]=function(_){var T=this.clone();return T.__iteratees__.push({iteratee:pe(_,3),type:u}),T.__filtered__=T.__filtered__||y,T}}),Vt(["head","last"],function(n,o){var u="take"+(o?"Right":"");Te.prototype[n]=function(){return this[u](1).value()[0]}}),Vt(["initial","tail"],function(n,o){var u="drop"+(o?"":"Right");Te.prototype[n]=function(){return this.__filtered__?new Te(this):this[u](1)}}),Te.prototype.compact=function(){return this.filter($t)},Te.prototype.find=function(n){return this.filter(n).head()},Te.prototype.findLast=function(n){return this.reverse().find(n)},Te.prototype.invokeMap=_e(function(n,o){return typeof n=="function"?new Te(this):this.map(function(u){return Mi(u,n,o)})}),Te.prototype.reject=function(n){return this.filter($a(pe(n)))},Te.prototype.slice=function(n,o){n=xe(n);var u=this;return u.__filtered__&&(n>0||o<0)?new Te(u):(n<0?u=u.takeRight(-n):n&&(u=u.drop(n)),o!==r&&(o=xe(o),u=o<0?u.dropRight(-o):u.take(o-n)),u)},Te.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Te.prototype.toArray=function(){return this.take(Q)},mr(Te.prototype,function(n,o){var u=/^(?:filter|find|map|reject)|While$/.test(o),y=/^(?:head|last)$/.test(o),_=A[y?"take"+(o=="last"?"Right":""):o],T=y||/^find/.test(o);_&&(A.prototype[o]=function(){var P=this.__wrapped__,I=y?[1]:arguments,z=P instanceof Te,V=I[0],Y=z||be(P),ee=function(Oe){var Re=_.apply(A,Jr([Oe],I));return y&&oe?Re[0]:Re};Y&&u&&typeof V=="function"&&V.length!=1&&(z=Y=!1);var oe=this.__chain__,le=!!this.__actions__.length,he=T&&!oe,Se=z&&!le;if(!T&&Y){P=Se?P:new Te(this);var ge=n.apply(P,I);return ge.__actions__.push({func:Ra,args:[ee],thisArg:r}),new Yt(ge,oe)}return he&&Se?n.apply(this,I):(ge=this.thru(ee),he?y?ge.value()[0]:ge.value():ge)})}),Vt(["pop","push","shift","sort","splice","unshift"],function(n){var o=ea[n],u=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",y=/^(?:pop|shift)$/.test(n);A.prototype[n]=function(){var _=arguments;if(y&&!this.__chain__){var T=this.value();return o.apply(be(T)?T:[],_)}return this[u](function(P){return o.apply(be(P)?P:[],_)})}}),mr(Te.prototype,function(n,o){var u=A[o];if(u){var y=u.name+"";Fe.call(ri,y)||(ri[y]=[]),ri[y].push({name:o,func:u})}}),ri[xa(r,h).name]=[{name:"wrapper",func:r}],Te.prototype.clone=_b,Te.prototype.reverse=Ob,Te.prototype.value=Ab,A.prototype.at=tS,A.prototype.chain=rS,A.prototype.commit=nS,A.prototype.next=iS,A.prototype.plant=aS,A.prototype.reverse=sS,A.prototype.toJSON=A.prototype.valueOf=A.prototype.value=uS,A.prototype.first=A.prototype.head,Ri&&(A.prototype[Ri]=oS),A}),Qn=nb();xn?((xn.exports=Qn)._=Qn,cu._=Qn):dt._=Qn}).call(qk)})(go,go.exports)),go.exports}var tt=Zk();const Sc={FdSave:et.FdSave,FdWarningDanger:et.FdWarningDanger,FdInfoCircle:et.FdInfoCircle,FdInfoBold:et.FdInfoBold};var df=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(df||{}),zn=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(zn||{}),pi=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(pi||{});const Ay={[zn.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[zn.DANGER]:{icon:"red-500",button:"primary-dark"},[zn.WARNING]:{icon:"yellow-400",button:"primary-dark"}},Gl=({color:e=zn.PRIMARY,variant:t="solid",children:r,autoFocus:i,...a})=>{const s=Ay[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 j.jsx("button",{autoFocus:i,className:rt("w-16 rounded px-2 py-1 text-xs font-medium hover:font-bold focus:outline-none",l),...a,children:r})},Gk=({name:e,color:t=zn.PRIMARY,className:r="w-8 h-8"})=>{const i=Sc[e]||Sc.FdInfoCircle,a=`text-${Ay[t].icon}`;return j.jsx(i,{className:rt(r,a)})},Kk=({id:e,title:t,message:r,icon:i,type:a,color:s,zIndex:l=3e3,views:c,width:d=520,hasOverlay:m=!0,onClose:v,onEdit:g})=>{const p=f=>{v({id:e,reason:f})};W.useEffect(()=>{function f(b){b.key==="Escape"&&p(pi.CANCELED)}return window.addEventListener("keyup",f),()=>{window.removeEventListener("keyup",f)}},[]);const w=tt.merge(tt.values(c==null?void 0:c.toggles).flatMap(f=>f.value?f.warnings||[]:[]),c==null?void 0:c.tips),x=(f,b)=>{var S;if(!(c!=null&&c.toggles))return;const h=tt.cloneDeep(c);(S=h.toggles)!=null&&S[f]&&(h.toggles[f].value=b),g({id:e,views:h})};return Fo.createPortal(j.jsx(ws,{appear:!0,show:!0,as:W.Fragment,children:j.jsx("div",{className:rt("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":m}),style:{zIndex:l},onClick:()=>p(pi.CANCELED),children:j.jsx(ws.Child,{as:W.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:j.jsx("div",{"data-cy":"confirmation-modal-cy",className:"relative rounded-md border border-grey-50 bg-grey-900",style:{width:d},onClick:f=>f.stopPropagation(),children:j.jsxs("div",{className:"flex flex-col items-center gap-3 p-6 px-12",children:[i?j.jsx("div",{className:"flex items-center justify-center",children:j.jsx(Gk,{name:i,color:s,className:"w-6 h-6"})}):null,j.jsx(Vk,{condition:t,children:j.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-white text-center",children:t})}),j.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium text-white",children:r}),j.jsx("div",{className:"text-xs text-white",children:tt.values(c==null?void 0:c.toggles).map(f=>j.jsx("div",{children:j.jsxs("label",{htmlFor:f.key,className:"flex items-center",children:[j.jsx(fy,{size:"xs",value:f.value,onChange:b=>x(f.key,b)}),j.jsx("span",{className:"ml-1",children:f.title})]})},f.key))}),j.jsx(Xk,{warnings:w}),j.jsx("div",{className:"flex items-center gap-4",children:a===df.CONFIRM?j.jsxs(j.Fragment,{children:[j.jsx(Gl,{autoFocus:!0,color:s,onClick:()=>p(pi.CONFIRMED),children:"Confirm"}),j.jsx(Gl,{color:s,variant:"outlined",onClick:()=>p(pi.CANCELED),children:"Cancel"})]}):j.jsx(Gl,{autoFocus:!0,onClick:()=>p(),children:"OK"})})]})})})})}),document.querySelector("body"))},Vk=e=>e.condition?j.jsx(j.Fragment,{children:e.children}):null,Xk=e=>e.warnings?j.jsx(ws,{appear:!0,show:!!e.warnings.length,as:W.Fragment,children:j.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)=>j.jsx(ws.Child,{as:W.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:j.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[j.jsx(et.FdWarningDanger,{className:rt({"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")}),j.jsx("div",{className:"flex-1",children:t.message})]})},`modal-warnings-${r}`))})}):null;var Ty=(e=>(e[e.MIN=.5]="MIN",e[e.MAX=10]="MAX",e[e.STEP=.5]="STEP",e[e.INIT=1]="INIT",e[e.TRANSITION=200]="TRANSITION",e))(Ty||{});const Yk=({zoom:e,minZoom:t=.5,maxZoom:r=10,handleZoomIn:i,handleZoomOut:a})=>j.jsxs("div",{className:"flex items-center rounded bg-grey-300 p-1",children:[j.jsx(et.FdMinusNaked,{onClick:a,className:rt("h-5 w-5 p-1",{"text-grey-200":e<=t,"cursor-pointer rounded hover:bg-purple-800":e>t})}),j.jsxs("span",{className:"mx-1 w-10 select-none text-center text-xs",children:[(e*100).toFixed(0),"%"]}),j.jsx(et.FdPlusNaked,{onClick:i,className:rt("h-5 w-5 p-1",{"text-grey-200":e>=r,"cursor-pointer rounded hover:bg-purple-800":e<r})})]}),Jk=$.forwardRef(((e,t)=>$.createElement(yn.span,Ke({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),Qk=Jk;function fv(e){const t=$.useRef({value:e,previous:e});return $.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}const[Ry]=Zc("Tooltip",[Fs]),pf=Fs(),e$=700,[tM,t$]=Ry("TooltipProvider",{isOpenDelayed:!0,delayDuration:e$,onOpen:()=>{},onClose:()=>{}}),[r$,Bs]=Ry("Tooltip"),n$=e=>{const{__scopeTooltip:t,children:r,open:i,defaultOpen:a=!1,onOpenChange:s,delayDuration:l}=e,c=t$("Tooltip",t),d=pf(t),[m,v]=$.useState(null),g=Rm(),p=$.useRef(0),w=l??c.delayDuration,x=$.useRef(!1),{onOpen:f,onClose:b}=c,[h=!1,S]=zm({prop:i,defaultProp:a,onChange:k=>{k&&(document.dispatchEvent(new CustomEvent("tooltip.open")),f()),s==null||s(k)}}),E=$.useMemo((()=>h?x.current?"delayed-open":"instant-open":"closed"),[h]),R=$.useCallback((()=>{window.clearTimeout(p.current),x.current=!1,S(!0)}),[S]),O=$.useCallback((()=>{window.clearTimeout(p.current),p.current=window.setTimeout((()=>{x.current=!0,S(!0)}),w)}),[w,S]);return $.useEffect((()=>()=>window.clearTimeout(p.current)),[]),$.createElement(Dm,d,$.createElement(r$,{scope:t,contentId:g,open:h,stateAttribute:E,trigger:m,onTriggerChange:v,onTriggerEnter:$.useCallback((()=>{c.isOpenDelayed?O():R()}),[c.isOpenDelayed,O,R]),onOpen:$.useCallback(R,[R]),onClose:$.useCallback((()=>{window.clearTimeout(p.current),S(!1),b()}),[S,b])},r))},i$=$.forwardRef(((e,t)=>{const{__scopeTooltip:r,...i}=e,a=Bs("TooltipTrigger",r),s=pf(r),l=mn(t,a.onTriggerChange),c=$.useRef(!1),d=$.useCallback((()=>c.current=!1),[]);return $.useEffect((()=>()=>document.removeEventListener("mouseup",d)),[d]),$.createElement(Nm,Ke({asChild:!0},s),$.createElement(yn.button,Ke({"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute},i,{ref:l,onMouseEnter:Ut(e.onMouseEnter,a.onTriggerEnter),onMouseLeave:Ut(e.onMouseLeave,a.onClose),onMouseDown:Ut(e.onMouseDown,(()=>{a.onClose(),c.current=!0,document.addEventListener("mouseup",d,{once:!0})})),onFocus:Ut(e.onFocus,(()=>{c.current||a.onOpen()})),onBlur:Ut(e.onBlur,a.onClose),onClick:Ut(e.onClick,(m=>{m.detail===0&&a.onClose()}))})))})),o$=$.forwardRef(((e,t)=>{const{forceMount:r,...i}=e,a=Bs("TooltipContent",e.__scopeTooltip);return $.createElement(Hc,{present:r||a.open},$.createElement(a$,Ke({ref:t},i)))})),a$=$.forwardRef(((e,t)=>{const{__scopeTooltip:r,children:i,"aria-label":a,portalled:s=!0,...l}=e,c=Bs("TooltipContent",r),d=pf(r),m=s?qc:$.Fragment,{onClose:v}=c;return $m((()=>v())),$.useEffect((()=>(document.addEventListener("tooltip.open",v),()=>document.removeEventListener("tooltip.open",v))),[v]),$.createElement(m,null,$.createElement(s$,{__scopeTooltip:r}),$.createElement(jm,Ke({"data-state":c.stateAttribute},d,l,{ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),$.createElement(km,null,i),$.createElement(Qk,{id:c.contentId,role:"tooltip"},a||i)))}));function s$(e){const{__scopeTooltip:t}=e,r=Bs("CheckTriggerMoved",t),i=Lm(r.trigger),a=i==null?void 0:i.left,s=fv(a),l=i==null?void 0:i.top,c=fv(l),d=r.onClose;return $.useEffect((()=>{(s!==void 0&&s!==a||c!==void 0&&c!==l)&&d()}),[d,s,c,a,l]),null}const u$=n$,l$=i$,c$=o$;function f$(e){return j.jsxs(u$,{delayDuration:e.delayDuration,open:e.open,children:[j.jsx(l$,{tabIndex:-1,asChild:!0,children:j.jsx("span",{children:e.children})}),j.jsxs(c$,{side:e.side,sideOffset:e.sideOffset,alignOffset:e.alignOffset,children:[typeof e.message=="string"&&j.jsx("p",{className:"max-w-[240px] rounded-md bg-primary-light px-1 py-2 text-s font-semibold text-primary-dark",children:e.message}),typeof e.message!="string"&&e.message]})]})}const In=30,fs=500,d$=()=>j.jsx("div",{className:"h-2 w-full bg-opacity-40 hover:bg-primary-hover"}),p$=e=>{const[t,r]=W.useState(In),i=W.useRef(),a=t>In,s=W.useRef(null);return W.useEffect(()=>{e.isOpen&&!a&&r(fs),!e.isOpen&&a&&r(In)},[e.isOpen]),j.jsxs("div",{className:"relative w-full select-none isolate",style:{zIndex:49},children:[j.jsx(pO.Resizable,{enable:{top:!0,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},className:"w-full select-none border-t border-grey-900 bg-grey-800",size:{height:t,width:"100%"},maxHeight:700,minHeight:In,onResizeStart:()=>{i.current&&Date.now()-i.current<200?r(a?In:fs):i.current=Date.now()},onResize:(l,c,d)=>{s.current&&cancelAnimationFrame(s.current),s.current=requestAnimationFrame(()=>{var m;(m=e.onResize)==null||m.call(e),s.current=null})},onResizeStop:(l,c,d,m)=>{r(t+m.height)},handleComponent:{top:j.jsx(d$,{})}}),j.jsxs("div",{"data-cy":"contextualPanel",className:"absolute inset-0 flex flex-col overflow-hidden",id:`__cp-${tt.kebabCase(e.path)}`,children:[j.jsxs("div",{className:rt("flex justify-between items-center px-3 py-0.5",{"flex-1":!a}),children:[j.jsxs("div",{className:"group flex items-center justify-start",children:[j.jsx("span",{className:"mr-2 text-sm text-fd-gray-lighter",children:"Contextual panel"}),j.jsx("span",{}),e.tipKey?j.jsx(Qm,{tipKey:e.tipKey,alwaysOn:!0,asButton:!0}):null,j.jsx("button",{className:"rounded p-1 text-white hover:bg-primary-hover focus:outline-none",onClick:()=>{a?(r(In),e.onClose()):(r(fs),e.onOpen())},children:a?j.jsx(et.FdDoubleArrowDown,{className:"h-4 w-4 text-white"}):j.jsx(et.FdDoubleArrowUp,{className:"h-4 w-4 text-white"})})]}),e.headerRightSide]}),j.jsxs(ss,{of:a,children:[j.jsx(ss,{of:e.render,children:e.render}),j.jsx(ss,{of:!e.render,children:e.children})]})]})]})};function h$(e,t){const r=W.useRef(!1);W.useEffect(()=>{if(r.current)return e();r.current=!0},t)}const Kl=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Vl(e,t,r,i){e.addEventListener?e.addEventListener(t,r,i):e.attachEvent&&e.attachEvent("on".concat(t),r)}function fo(e,t,r,i){e.removeEventListener?e.removeEventListener(t,r,i):e.detachEvent&&e.detachEvent("on".concat(t),r)}function Py(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 Cy(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 g$(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 Ro={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,arrowup:38,arrowdown:40,arrowleft:37,arrowright:39,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Kl?173:189,"=":Kl?61:187,";":Kl?59:186,"'":222,"{":219,"}":221,"[":219,"]":221,"\\":220},gr={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,meta:91,command:91},vo={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},gt={16:!1,18:!1,17:!1,91:!1},Ge={};for(let e=1;e<20;e++)Ro["f".concat(e)]=111+e;let He=[],_o=null,ky="all";const Ur=new Map,_i=e=>Ro[e.toLowerCase()]||gr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),v$=e=>Object.keys(Ro).find(t=>Ro[t]===e),m$=e=>Object.keys(gr).find(t=>gr[t]===e);function $y(e){ky=e||"all"}function Po(){return ky||"all"}function y$(){return He.slice(0)}function w$(){return He.map(e=>v$(e)||m$(e)||String.fromCharCode(e))}function b$(){const e=[];return Object.keys(Ge).forEach(t=>{Ge[t].forEach(r=>{let{key:i,scope:a,mods:s,shortcut:l}=r;e.push({scope:a,shortcut:l,mods:s,keys:i.split("+").map(c=>_i(c))})})}),e}function x$(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 S$(e){return typeof e=="string"&&(e=_i(e)),He.indexOf(e)!==-1}function E$(e,t){let r,i;e||(e=Po());for(const a in Ge)if(Object.prototype.hasOwnProperty.call(Ge,a))for(r=Ge[a],i=0;i<r.length;)r[i].scope===e?r.splice(i,1).forEach(l=>{let{element:c}=l;return hf(c)}):i++;Po()===e&&$y(t||"all")}function _$(e){let t=e.keyCode||e.which||e.charCode;e.key&&e.key.toLowerCase()==="capslock"&&(t=_i(e.key));const r=He.indexOf(t);if(r>=0&&He.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&He.splice(0,He.length),(t===93||t===224)&&(t=91),t in gt){gt[t]=!1;for(const i in gr)gr[i]===t&&(hr[i]=!1)}}function Iy(e){if(typeof e>"u")Object.keys(Ge).forEach(a=>{Array.isArray(Ge[a])&&Ge[a].forEach(s=>Qa(s)),delete Ge[a]}),hf(null);else if(Array.isArray(e))e.forEach(a=>{a.key&&Qa(a)});else if(typeof e=="object")e.key&&Qa(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=""),Qa({key:e,scope:a,method:s,splitKey:"+"})}}const Qa=e=>{let{key:t,scope:r,method:i,splitKey:a="+"}=e;Cy(t).forEach(l=>{const c=l.split(a),d=c.length,m=c[d-1],v=m==="*"?"*":_i(m);if(!Ge[v])return;r||(r=Po());const g=d>1?Py(gr,c):[],p=[];Ge[v]=Ge[v].filter(w=>{const f=(i?w.method===i:!0)&&w.scope===r&&g$(w.mods,g);return f&&p.push(w.element),!f}),p.forEach(w=>hf(w))})};function dv(e,t,r,i){if(t.element!==i)return;let a;if(t.scope===r||t.scope==="all"){a=t.mods.length>0;for(const s in gt)Object.prototype.hasOwnProperty.call(gt,s)&&(!gt[s]&&t.mods.indexOf(+s)>-1||gt[s]&&t.mods.indexOf(+s)===-1)&&(a=!1);(t.mods.length===0&&!gt[16]&&!gt[18]&&!gt[17]&&!gt[91]||a||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(He),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function pv(e,t){const r=Ge["*"];let i=e.keyCode||e.which||e.charCode;if(e.key&&e.key.toLowerCase()==="capslock"||!hr.filter.call(this,e))return;if((i===93||i===224)&&(i=91),He.indexOf(i)===-1&&i!==229&&He.push(i),["metaKey","ctrlKey","altKey","shiftKey"].forEach(c=>{const d=vo[c];e[c]&&He.indexOf(d)===-1?He.push(d):!e[c]&&He.indexOf(d)>-1?He.splice(He.indexOf(d),1):c==="metaKey"&&e[c]&&(He=He.filter(m=>m in vo||m===i))}),i in gt){gt[i]=!0;for(const c in gr)if(Object.prototype.hasOwnProperty.call(gr,c)){const d=vo[gr[c]];hr[c]=e[d]}if(!r)return}for(const c in gt)Object.prototype.hasOwnProperty.call(gt,c)&&(gt[c]=e[vo[c]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(He.indexOf(17)===-1&&He.push(17),He.indexOf(18)===-1&&He.push(18),gt[17]=!0,gt[18]=!0);const a=Po();if(r)for(let c=0;c<r.length;c++)r[c].scope===a&&(e.type==="keydown"&&r[c].keydown||e.type==="keyup"&&r[c].keyup)&&dv(e,r[c],a,t);if(!(i in Ge))return;const s=Ge[i],l=s.length;for(let c=0;c<l;c++)if((e.type==="keydown"&&s[c].keydown||e.type==="keyup"&&s[c].keyup)&&s[c].key){const d=s[c],{splitKey:m}=d,v=d.key.split(m),g=[];for(let p=0;p<v.length;p++)g.push(_i(v[p]));g.sort().join("")===He.sort().join("")&&dv(e,d,a,t)}}function hr(e,t,r){He=[];const i=Cy(e);let a=[],s="all",l=document,c=0,d=!1,m=!0,v="+",g=!1,p=!1;for(r===void 0&&typeof t=="function"&&(r=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(s=t.scope),t.element&&(l=t.element),t.keyup&&(d=t.keyup),t.keydown!==void 0&&(m=t.keydown),t.capture!==void 0&&(g=t.capture),typeof t.splitKey=="string"&&(v=t.splitKey),t.single===!0&&(p=!0)),typeof t=="string"&&(s=t),p&&Iy(e,s);c<i.length;c++)e=i[c].split(v),a=[],e.length>1&&(a=Py(gr,e)),e=e[e.length-1],e=e==="*"?"*":_i(e),e in Ge||(Ge[e]=[]),Ge[e].push({keyup:d,keydown:m,scope:s,mods:a,shortcut:i[c],method:r,key:i[c],splitKey:v,element:l});if(typeof l<"u"&&window){if(!Ur.has(l)){const w=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return pv(f,l)},x=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;pv(f,l),_$(f)};Ur.set(l,{keydownListener:w,keyupListenr:x,capture:g}),Vl(l,"keydown",w,g),Vl(l,"keyup",x,g)}if(!_o){const w=()=>{He=[]};_o={listener:w,capture:g},Vl(window,"focus",w,g)}}}function O$(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(Ge).forEach(r=>{Ge[r].filter(a=>a.scope===t&&a.shortcut===e).forEach(a=>{a&&a.method&&a.method()})})}function hf(e){const t=Object.values(Ge).flat();if(t.findIndex(i=>{let{element:a}=i;return a===e})<0){const{keydownListener:i,keyupListenr:a,capture:s}=Ur.get(e)||{};i&&a&&(fo(e,"keyup",a,s),fo(e,"keydown",i,s),Ur.delete(e))}if((t.length<=0||Ur.size<=0)&&(Object.keys(Ur).forEach(a=>{const{keydownListener:s,keyupListenr:l,capture:c}=Ur.get(a)||{};s&&l&&(fo(a,"keyup",l,c),fo(a,"keydown",s,c),Ur.delete(a))}),Ur.clear(),Object.keys(Ge).forEach(a=>delete Ge[a]),_o)){const{listener:a,capture:s}=_o;fo(window,"focus",a,s),_o=null}}const Xl={getPressedKeyString:w$,setScope:$y,getScope:Po,deleteScope:E$,getPressedKeyCodes:y$,getAllKeyCodes:b$,isPressed:S$,filter:x$,trigger:O$,unbind:Iy,keyMap:Ro,modifier:gr,modifierMap:vo};for(const e in Xl)Object.prototype.hasOwnProperty.call(Xl,e)&&(hr[e]=Xl[e]);if(typeof window<"u"){const e=window.hotkeys;hr.noConflict=t=>(t&&window.hotkeys===hr&&(window.hotkeys=e),hr),window.hotkeys=hr}hr.filter=()=>!0;function A$(e,t,r,i){r instanceof Array&&(i=r,r=void 0),i=i||[],r=r||{};const{preventDefault:a=!0}=r,s=W.useCallback((c,d)=>{a&&c.preventDefault(),setTimeout(()=>t(c,d))},i),l=()=>{hr.unbind(e,s)};W.useEffect(()=>(hr(e,r,s),l),[e,r,s])}const T$=e=>{const t=W.useRef(null);return W.useEffect(()=>{const r=i=>{t.current&&!t.current.contains(i.target)&&e(i)};return document.addEventListener("click",r,!0),()=>{document.removeEventListener("click",r,!0)}},[e]),t};function R$(e){const t=W.useRef();return W.useEffect(()=>{t.current=e},[e]),t.current}function P$(e){const t=W.useRef(e);return W.useEffect(()=>{t.current=e},[e]),t}function C$(e){const t=W.useRef(null);return W.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}function k$(e){const[t,r]=W.useState(e),i=(s,l)=>{r(c=>({...c,features:{...c.features,[s]:{enabled:l}}}))},a=W.useCallback((...s)=>s.every(l=>{var c;return(c=t.features[l])==null?void 0:c.enabled}),[t.features]);return{setFeature:i,isFeatureEnabled:a}}const Ly=W.createContext(""),$$=e=>j.jsx(Ly.Provider,{value:e.value,children:e.children}),I$=()=>{const e=W.useContext(Ly);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function L$(e){const[t,r]=W.useState(e),i=W.useMemo(()=>M$(t,r),[]);return{state:t,actions:{...i,set:a=>{r(typeof a=="function"?a:s=>({...s,...a}))}}}}function M$(e,t=()=>{}){return Object.keys(e).reduce((i,a)=>({...i,[`set${tt.upperFirst(a)}`]:s=>t(l=>({...l,[a]:s}))}),{})}const F$=(e,t,r={})=>{r={timeout:200,...r};const i=W.useRef(),a=()=>{i.current&&(clearTimeout(i.current),i.current=null)};return W.useCallback((s,...l)=>{a(),t&&s.detail===1&&(i.current=setTimeout(()=>{t(s,...l)},r.timeout)),s.detail%2===0&&e(s,...l)},[t,e,r.timeout])};function vt(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];if(process.env.NODE_ENV!=="production"){var a=U$[e],s=a?typeof a=="function"?a.apply(null,r):a:"unknown error nr: "+e;throw Error("[Immer] "+s)}throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(l){return"'"+l+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Si(e){return!!e&&!!e[qt]}function Hn(e){var t;return!!e&&((function(r){if(!r||typeof r!="object")return!1;var i=Object.getPrototypeOf(r);if(i===null)return!0;var a=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===H$})(e)||Array.isArray(e)||!!e[xv]||!!(!((t=e.constructor)===null||t===void 0)&&t[xv])||gf(e)||vf(e))}function Co(e,t,r){r===void 0&&(r=!1),Oi(e)===0?(r?Object.keys:bf)(e).forEach((function(i){r&&typeof i=="symbol"||t(i,e[i],e)})):e.forEach((function(i,a){return t(a,i,e)}))}function Oi(e){var t=e[qt];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:gf(e)?2:vf(e)?3:0}function Ec(e,t){return Oi(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function D$(e,t){return Oi(e)===2?e.get(t):e[t]}function My(e,t,r){var i=Oi(e);i===2?e.set(t,r):i===3?e.add(r):e[t]=r}function N$(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function gf(e){return W$&&e instanceof Map}function vf(e){return B$&&e instanceof Set}function Ln(e){return e.o||e.t}function mf(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=q$(e);delete t[qt];for(var r=bf(t),i=0;i<r.length;i++){var a=r[i],s=t[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(t[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function ko(e,t){return t===void 0&&(t=!1),yf(e)||Si(e)||!Hn(e)||(Oi(e)>1&&(e.set=e.add=e.clear=e.delete=j$),Object.freeze(e),t&&Co(e,(function(r,i){return ko(i,!0)}),!0)),e}function j$(){vt(2)}function yf(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Rr(e){var t=Z$[e];return t||vt(18,e),t}function hv(){return process.env.NODE_ENV==="production"||Ei||vt(0),Ei}function Yl(e,t){t&&(Rr("Patches"),e.u=[],e.s=[],e.v=t)}function Es(e){_c(e),e.p.forEach(z$),e.p=null}function _c(e){e===Ei&&(Ei=e.l)}function gv(e){return Ei={p:[],l:Ei,h:e,m:!0,_:0}}function z$(e){var t=e[qt];t.i===0||t.i===1?t.j():t.g=!0}function Jl(e,t){t._=t.p.length;var r=t.p[0],i=e!==void 0&&e!==r;return t.h.O||Rr("ES5").S(t,e,i),i?(r[qt].P&&(Es(t),vt(4)),Hn(e)&&(e=_s(t,e),t.l||Os(t,e)),t.u&&Rr("Patches").M(r[qt].t,e,t.u,t.s)):e=_s(t,r,[]),Es(t),t.u&&t.v(t.u,t.s),e!==Dy?e:void 0}function _s(e,t,r){if(yf(t))return t;var i=t[qt];if(!i)return Co(t,(function(c,d){return vv(e,i,t,c,d,r)}),!0),t;if(i.A!==e)return t;if(!i.P)return Os(e,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var a=i.i===4||i.i===5?i.o=mf(i.k):i.o,s=a,l=!1;i.i===3&&(s=new Set(a),a.clear(),l=!0),Co(s,(function(c,d){return vv(e,i,a,c,d,r,l)})),Os(e,a,!1),r&&e.u&&Rr("Patches").N(i,r,e.u,e.s)}return i.o}function vv(e,t,r,i,a,s,l){if(process.env.NODE_ENV!=="production"&&a===r&&vt(5),Si(a)){var c=_s(e,a,s&&t&&t.i!==3&&!Ec(t.R,i)?s.concat(i):void 0);if(My(r,i,c),!Si(c))return;e.m=!1}else l&&r.add(a);if(Hn(a)&&!yf(a)){if(!e.h.D&&e._<1)return;_s(e,a),t&&t.A.l||Os(e,a)}}function Os(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&ko(t,r)}function Ql(e,t){var r=e[qt];return(r?Ln(r):e)[t]}function mv(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var i=Object.getOwnPropertyDescriptor(r,t);if(i)return i;r=Object.getPrototypeOf(r)}}function Oc(e){e.P||(e.P=!0,e.l&&Oc(e.l))}function ec(e){e.o||(e.o=mf(e.t))}function Ac(e,t,r){var i=gf(t)?Rr("MapSet").F(t,r):vf(t)?Rr("MapSet").T(t,r):e.O?(function(a,s){var l=Array.isArray(a),c={i:l?1:0,A:s?s.A:hv(),P:!1,I:!1,R:{},l:s,t:a,k:null,o:null,j:null,C:!1},d=c,m=Tc;l&&(d=[c],m=mo);var v=Proxy.revocable(d,m),g=v.revoke,p=v.proxy;return c.k=p,c.j=g,p})(t,r):Rr("ES5").J(t,r);return(r?r.A:hv()).p.push(i),i}function Fy(e){return Si(e)||vt(22,e),(function t(r){if(!Hn(r))return r;var i,a=r[qt],s=Oi(r);if(a){if(!a.P&&(a.i<4||!Rr("ES5").K(a)))return a.t;a.I=!0,i=yv(r,s),a.I=!1}else i=yv(r,s);return Co(i,(function(l,c){a&&D$(a.t,l)===c||My(i,l,t(c))})),s===3?new Set(i):i})(e)}function yv(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return mf(e)}var wv,Ei,wf=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",W$=typeof Map<"u",B$=typeof Set<"u",bv=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Dy=wf?Symbol.for("immer-nothing"):((wv={})["immer-nothing"]=!0,wv),xv=wf?Symbol.for("immer-draftable"):"__$immer_draftable",qt=wf?Symbol.for("immer-state"):"__$immer_state",U$={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},H$=""+Object.prototype.constructor,bf=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,q$=Object.getOwnPropertyDescriptors||function(e){var t={};return bf(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},Z$={},Tc={get:function(e,t){if(t===qt)return e;var r=Ln(e);if(!Ec(r,t))return(function(a,s,l){var c,d=mv(s,l);return d?"value"in d?d.value:(c=d.get)===null||c===void 0?void 0:c.call(a.k):void 0})(e,r,t);var i=r[t];return e.I||!Hn(i)?i:i===Ql(e.t,t)?(ec(e),e.o[t]=Ac(e.A.h,i,e)):i},has:function(e,t){return t in Ln(e)},ownKeys:function(e){return Reflect.ownKeys(Ln(e))},set:function(e,t,r){var i=mv(Ln(e),t);if(i!=null&&i.set)return i.set.call(e.k,r),!0;if(!e.P){var a=Ql(Ln(e),t),s=a==null?void 0:a[qt];if(s&&s.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(N$(r,a)&&(r!==void 0||Ec(e.t,t)))return!0;ec(e),Oc(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return Ql(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,ec(e),Oc(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Ln(e),i=Reflect.getOwnPropertyDescriptor(r,t);return i&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:i.enumerable,value:r[t]}},defineProperty:function(){vt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){vt(12)}},mo={};Co(Tc,(function(e,t){mo[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),mo.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&vt(13),mo.set.call(this,e,t,void 0)},mo.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&vt(14),Tc.set.call(this,e[0],t,r,e[0])};var G$=(function(){function e(r){var i=this;this.O=bv,this.D=!0,this.produce=function(a,s,l){if(typeof a=="function"&&typeof s!="function"){var c=s;s=a;var d=i;return function(f){var b=this;f===void 0&&(f=c);for(var h=arguments.length,S=Array(h>1?h-1:0),E=1;E<h;E++)S[E-1]=arguments[E];return d.produce(f,(function(R){var O;return(O=s).call.apply(O,[b,R].concat(S))}))}}var m;if(typeof s!="function"&&vt(6),l!==void 0&&typeof l!="function"&&vt(7),Hn(a)){var v=gv(i),g=Ac(i,a,void 0),p=!0;try{m=s(g),p=!1}finally{p?Es(v):_c(v)}return typeof Promise<"u"&&m instanceof Promise?m.then((function(f){return Yl(v,l),Jl(f,v)}),(function(f){throw Es(v),f})):(Yl(v,l),Jl(m,v))}if(!a||typeof a!="object"){if((m=s(a))===void 0&&(m=a),m===Dy&&(m=void 0),i.D&&ko(m,!0),l){var w=[],x=[];Rr("Patches").M(a,m,w,x),l(w,x)}return m}vt(21,a)},this.produceWithPatches=function(a,s){if(typeof a=="function")return function(m){for(var v=arguments.length,g=Array(v>1?v-1:0),p=1;p<v;p++)g[p-1]=arguments[p];return i.produceWithPatches(m,(function(w){return a.apply(void 0,[w].concat(g))}))};var l,c,d=i.produce(a,s,(function(m,v){l=m,c=v}));return typeof Promise<"u"&&d instanceof Promise?d.then((function(m){return[m,l,c]})):[d,l,c]},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){Hn(r)||vt(8),Si(r)&&(r=Fy(r));var i=gv(this),a=Ac(this,r,void 0);return a[qt].C=!0,_c(i),a},t.finishDraft=function(r,i){var a=r&&r[qt];process.env.NODE_ENV!=="production"&&(a&&a.C||vt(9),a.I&&vt(10));var s=a.A;return Yl(s,i),Jl(void 0,s)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!bv&&vt(20),this.O=r},t.applyPatches=function(r,i){var a;for(a=i.length-1;a>=0;a--){var s=i[a];if(s.path.length===0&&s.op==="replace"){r=s.value;break}}a>-1&&(i=i.slice(a+1));var l=Rr("Patches").$;return Si(r)?l(r,i):this.produce(r,(function(c){return l(c,i)}))},e})(),Zt=new G$,K$=Zt.produce;Zt.produceWithPatches.bind(Zt);Zt.setAutoFreeze.bind(Zt);Zt.setUseProxies.bind(Zt);Zt.applyPatches.bind(Zt);Zt.createDraft.bind(Zt);Zt.finishDraft.bind(Zt);function V$(e){var t=W.useState(function(){return ko(typeof e=="function"?e():e,!0)}),r=t[1];return[t[0],W.useCallback(function(i){r(typeof i=="function"?K$(i):ko(i))},[])]}const X$=process.env.NODE_ENV==="development",tc=X$&&typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null,Y$=(e,t,r)=>{const[i,a]=V$(e),s=W.useRef(null);W.useEffect(()=>{var d;return r&&(s.current=tc==null?void 0:tc.connect({name:r,trace:!0}),(d=s.current)==null||d.init(e)),()=>{var m,v;(v=(m=s.current)==null?void 0:m.disconnect)==null||v.call(m)}},[]);const l=t&&typeof t=="object"?t:{},c=W.useMemo(()=>Object.keys(l).reduce((d,m)=>({...d,[m]:v=>(a(g=>{var p;l[m](g,v),(p=s.current)==null||p.send({type:l[m].name},Fy(g))}),c)}),{}),[a]);return{state:i,dispatch:c}};function Zr(e){return typeof e=="function"}function Ny(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 rc=Ny(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
202
|
+
`+r.map(function(i,a){return a+1+") "+i.toString()}).join(`
|
|
203
|
+
`):"",this.name="UnsubscriptionError",this.errors=r}});function Rc(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Us=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,i,a,s;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var c=cc(l),d=c.next();!d.done;d=c.next()){var m=d.value;m.remove(this)}}catch(f){t={error:f}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}else l.remove(this);var v=this.initialTeardown;if(Zr(v))try{v()}catch(f){s=f instanceof rc?f.errors:[f]}var g=this._finalizers;if(g){this._finalizers=null;try{for(var p=cc(g),w=p.next();!w.done;w=p.next()){var x=w.value;try{Sv(x)}catch(f){s=s??[],f instanceof rc?s=ms(ms([],fc(s)),fc(f.errors)):s.push(f)}}}catch(f){i={error:f}}finally{try{w&&!w.done&&(a=p.return)&&a.call(p)}finally{if(i)throw i.error}}}if(s)throw new rc(s)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Sv(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)&&Rc(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Rc(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),jy=Us.EMPTY;function zy(e){return e instanceof Us||e&&"closed"in e&&Zr(e.remove)&&Zr(e.add)&&Zr(e.unsubscribe)}function Sv(e){Zr(e)?e():e.unsubscribe()}var J$={Promise:void 0},Q$={setTimeout:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setTimeout.apply(void 0,ms([e,t],fc(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function eI(e){Q$.setTimeout(function(){throw e})}function Ev(){}function ds(e){e()}var Wy=(function(e){Ls(t,e);function t(r){var i=e.call(this)||this;return i.isStopped=!1,r?(i.destination=r,zy(r)&&r.add(i)):i.destination=nI,i}return t.create=function(r,i,a){return new Pc(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})(Us),tI=(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){es(i)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(i){es(i)}else es(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){es(r)}},e})(),Pc=(function(e){Ls(t,e);function t(r,i,a){var s=e.call(this)||this,l;return Zr(r)||!r?l={next:r??void 0,error:i??void 0,complete:a??void 0}:l=r,s.destination=new tI(l),s}return t})(Wy);function es(e){eI(e)}function rI(e){throw e}var nI={closed:!0,next:Ev,error:rI,complete:Ev},iI=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function oI(e){return e}function aI(e){return e.length===0?oI:e.length===1?e[0]:function(r){return e.reduce(function(i,a){return a(i)},r)}}var _v=(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=uI(t)?t:new Pc(t,r,i);return ds(function(){var l=a,c=l.operator,d=l.source;s.add(c?c.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=Ov(r),new r(function(a,s){var l=new Pc({next:function(c){try{t(c)}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[iI]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return aI(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Ov(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 Ov(e){var t;return(t=e??J$.Promise)!==null&&t!==void 0?t:Promise}function sI(e){return e&&Zr(e.next)&&Zr(e.error)&&Zr(e.complete)}function uI(e){return e&&e instanceof Wy||sI(e)&&zy(e)}var lI=Ny(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),kr=(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 Av(this,this);return i.operator=r,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new lI},t.prototype.next=function(r){var i=this;ds(function(){var a,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var l=cc(i.currentObservers),c=l.next();!c.done;c=l.next()){var d=c.value;d.next(r)}}catch(m){a={error:m}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(a)throw a.error}}}})},t.prototype.error=function(r){var i=this;ds(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;ds(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var i=r.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var i=this,a=this,s=a.hasError,l=a.isStopped,c=a.observers;return s||l?jy:(this.currentObservers=null,c.push(r),new Us(function(){i.currentObservers=null,Rc(c,r)}))},t.prototype._checkFinalizedStatuses=function(r){var i=this,a=i.hasError,s=i.thrownError,l=i.isStopped;a?r.error(s):l&&r.complete()},t.prototype.asObservable=function(){var r=new _v;return r.source=this,r},t.create=function(r,i){return new Av(r,i)},t})(_v),Av=(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:jy},t})(kr),By=(e=>(e.RELOAD="reload",e.RECOMPUTE="recompute",e))(By||{}),Uy=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(Uy||{});const cI=new kr,fI=new kr,Hy=new kr;var qy=(e=>(e.SAVE_ALL="save-all",e))(qy||{});const dI=new kr;var Zy=(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))(Zy||{});const pI=new kr;var Gy=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(Gy||{});const hI=new kr,gI=new kr;var $o=(e=>(e.EVENT_STARTED="event-started",e.EVENT_ENDED="event-ended",e.EVENT_EMITED="event-emited",e.REQUEST_SENT="request-sent",e))($o||{});const As=new kr,vI=new kr,xf=31;var Sf=(e=>(e.EMPTY="Please enter a valid name",e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${xf} characters`,e.SHOULD_START_WITH_LETTER="The name can only start with a letter or a Japanese character",e.INVALID="Invalid name",e))(Sf||{});function Ky(e){if(e==="")throw new Error("Please enter a valid name");if(e.length>xf)throw new Error(Sf.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 mI(e){if(!e)return null;if(typeof e=="string")try{Ky(e)}catch(t){return t.message}}function yI(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 wI(){return{PLACEHOLDER_PREFIX:`@!MASK_${Date.now().toString(36)+Math.random().toString(36).substring(2,8)}_`,counter:0}}function Hs(e){const{PLACEHOLDER_PREFIX:t,counter:r}=wI();let i=r;const a=[],s="@!",l=v=>(a.push(v),`${t}${i++}${s}`);let c=e.replace(/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,l);c=c.replace(/([\{\s]\s*\w+\s*)(:\s*\d+)/g,(v,g,p)=>g+l(p)),c=c.replace(/:\d{2}:\d{2}/g,l);const d=new RegExp(":(?!4D\\.\\w+)[CPK]?\\d+","g");let m=c.replace(d,"");for(let v=0;v<a.length;v++){const p=`${t}${v}${s}`.replace(/([.*+?^${}()|[\]\\])/g,"\\$1"),w=new RegExp(p,"g");m=m.replace(w,a[v])}return m}var Ef=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(Ef||{});const hn={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms",CLASSES_FOLDER:"ClassesFolder",REPORTS:"Reports",DEBUGGER:"Debugger"};var ft=(e=>(e.FOLDER="folder",e.WEBFORM="webform",e.REPORT="report",e.METHOD="method",e.CLASS="class",e.CLASS_FOLDER="classfolder",e.DEBUGGER="debugger",e.WELCOME="welcome",e.SETTINGS="settings",e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.DEBUGGERS="debugger",e.MODELS="models",e.ROLES="roles",e.HTTP_HANDLERS="http-handlers",e.LOCALIZATION="localization",e.MODEL="model",e.DATA_EXPLORER="dataexplorer",e.MOBILE="mobile",e.MOBILEFORM="mform",e.FILE="file",e.TEXT="text",e))(ft||{}),wn=(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))(wn||{}),_f=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(_f||{});const Vy="roles.json",Xy="qodlyApp.json",bI="model.4DModel",Yy="HTTPHandlers.json",Jy="Shared/i18n.json";function xI(e){const t=Of(e);switch(t){case ft.SETTINGS:return{filename:"Settings",type:t};case ft.HTTP_HANDLERS:return{filename:"HTTP Handlers",type:t};case ft.ROLES:return{filename:"Roles & Privileges",type:t};case ft.LOCALIZATION:return{filename:"Localization",type:t};case ft.MODEL:return{filename:"Model",type:t};default:{const r=e.split("/"),[i]=r[1].split(".");return{filename:i,type:t}}}}function Of(e){const t=e.split("."),r=t.pop(),i=t.join(".").split("/")[0];switch(!0){case r==="4DModel":return ft.MODEL;case r==="WebForm":return ft.WEBFORM;case(["4dm","4qs","4qm"].includes(r)&&i===hn.METHODS):return ft.METHOD;case(["4dm","4qs","4qm"].includes(r)&&i===hn.CLASSES):return ft.CLASS;case e===Vy:return ft.ROLES;case e===Yy:return ft.HTTP_HANDLERS;case e===Xy:return ft.SETTINGS;case e===Jy:return ft.LOCALIZATION;default:return ft.TEXT}}function SI(e,t=!1){switch(e){case hn.REPORTS:case"report":return"QoDoc";case hn.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case hn.CLASSES:case hn.METHODS:return t?"4qs":"4dm";default:return""}}function EI(e,t=""){const r=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return r?r[1]:t}class Qy{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 Af(){const e=new Qy;return async t=>{const r=await e.lock();try{const i=await t();return r(),i}catch(i){console.error(i),r();return}}}const e0=tt.curry((e,t,r)=>e&&tt.get(r,e)===t),_I=tt.curry((e,t,r)=>tt.get(r,e)!==t),OI=tt.curry((e,t)=>tt.get(t,"id")!==e),AI=tt.curry((e,t)=>tt.get(t,"id")===e),TI=tt.curry((e,t)=>tt.get(t,"path")===e);function RI(e="id",t,r){return r.findIndex(e0(e,t))!==-1}function PI(e){if(!e)return"";const{id:t,namespace:r}=e;return r&&t?`${r}:${t}`:t}function t0(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function CI(e){return e.type==="object"}function r0(e){var t;return e.kind==="relatedEntities"||((t=e.type)==null?void 0:t.includes("Selection"))||e.behavior==="relatedEntities"}function n0(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!t0(e)}function kI(e){return r0(e)||n0(e)}function $I(e){return e.applyTo==="dataStore"}function II(e){return e.applyTo==="dataClass"}function LI(e){return e.applyTo==="entity"}function MI(e){return e.applyTo==="entityCollection"}function FI(e){return e.type==="entity"}function DI(e){return e.type==="entitysel"}function i0(e){return e.dataType==="array"}function o0(e){return e.dataType==="object"}function a0(e){return e.type==="scalar"}function NI(e){return i0(e)||o0(e)||a0(e)}const jI=e=>e!=null&&e.type==="entity",zI=e=>e.type==="entitysel",WI=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",BI=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",UI=e=>e.type==="scalar"&&e.dataType==="date";function HI(){return new Promise((e,t)=>{window.addEventListener("bundle:ready",r=>r.data?e():t(r.caughtErr))})}function qI(){return new Promise(e=>{window.addEventListener("i18n:ready",()=>e())})}var Io=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(Io||{}),s0=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(s0||{}),Tf=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(Tf||{});const ZI={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function GI(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:Io.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!r,publishedRestOptions:r||{table:"",scope:Tf.table}},...i}}function u0(e){const t={};return e.invisible&&(t.invisible=!0),e.shared&&(t.shared=!0),e.executedOnServer&&(t.executedOnServer=!0),e.preemptive&&[Io.capable,Io.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:u0(t);if(!r&&l0(e))return e;const a=c0(e);return`//%attributes = ${i}\r
|
|
204
|
+
${a}`}function l0(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function c0(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const VI=()=>Bc.uuid().replaceAll("-","").toUpperCase(),it="/rest/$designer",Uo="/rest/$designer-ext";function XI(...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 Cc extends Error{constructor(t,r,i){super(),this.url=t,this.response=r,this.data=i}log(){console.error("Error while sending the request",this)}}async function Me(e,t){var a;As.next({action:$o.REQUEST_SENT});const r=await window.fetch(e,t);if(/401/.test(r.status.toString())&&(window.location.href="/login.html?redirect=studio"),/^[45]/.test(r.status.toString())){let s;try{const l=await r.json();((a=l==null?void 0:l.__ERROR)==null?void 0:a.some(d=>d.errCode===1651))&&As.next({action:$o.EVENT_EMITED,payload:{eventName:"onsessionexpired"}}),s=new Cc(e,r,l)}catch{s=new Cc(e,r)}throw s.log(),s}return await r.json()}function YI(e){return As.next({action:$o.REQUEST_SENT}),e}var xr={},ht={},Tv;function Fn(){if(Tv)return ht;Tv=1;var e=ht.ValidationError=function(f,b,h,S,E,R){if(Array.isArray(S)?(this.path=S,this.property=S.reduce(function(k,B){return k+c(B)},"instance")):S!==void 0&&(this.property=S),f&&(this.message=f),h){var O=h.$id||h.id;this.schema=O||h}b!==void 0&&(this.instance=b),this.name=E,this.argument=R,this.stack=this.toString()};e.prototype.toString=function(){return this.property+" "+this.message};var t=ht.ValidatorResult=function(f,b,h,S){this.instance=f,this.schema=b,this.options=h,this.path=S.path,this.propertyPath=S.propertyPath,this.errors=[],this.throwError=h&&h.throwError,this.throwFirst=h&&h.throwFirst,this.throwAll=h&&h.throwAll,this.disableFormat=h&&h.disableFormat===!0};t.prototype.addError=function(f){var b;if(typeof f=="string")b=new e(f,this.instance,this.schema,this.path);else{if(!f)throw new Error("Missing error detail");if(!f.message)throw new Error("Missing error message");if(!f.name)throw new Error("Missing validator type");b=new e(f.message,this.instance,this.schema,this.path,f.name,f.argument)}if(this.errors.push(b),this.throwFirst)throw new i(this);if(this.throwError)throw b;return b},t.prototype.importErrors=function(f){typeof f=="string"||f&&f.validatorType?this.addError(f):f&&f.errors&&(this.errors=this.errors.concat(f.errors))};function r(x,f){return f+": "+x.toString()+`
|
|
205
|
+
`}t.prototype.toString=function(f){return this.errors.map(r).join("")},Object.defineProperty(t.prototype,"valid",{get:function(){return!this.errors.length}}),ht.ValidatorResultError=i;function i(x){typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,i),this.instance=x.instance,this.schema=x.schema,this.options=x.options,this.errors=x.errors}i.prototype=new Error,i.prototype.constructor=i,i.prototype.name="Validation Error";var a=ht.SchemaError=function x(f,b){this.message=f,this.schema=b,Error.call(this,f),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,x)};a.prototype=Object.create(Error.prototype,{constructor:{value:a,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var s=ht.SchemaContext=function(f,b,h,S,E){this.schema=f,this.options=b,Array.isArray(h)?(this.path=h,this.propertyPath=h.reduce(function(R,O){return R+c(O)},"instance")):this.propertyPath=h,this.base=S,this.schemas=E};s.prototype.resolve=function(f){return w(this.base,f)},s.prototype.makeChild=function(f,b){var h=b===void 0?this.path:this.path.concat([b]),S=f.$id||f.id;let E=w(this.base,S||"");var R=new s(f,this.options,h,E,Object.create(this.schemas));return S&&!R.schemas[E]&&(R.schemas[E]=f),R};var l=ht.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,duration:/P(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S)|\d+(D|M(\d+D)?|Y(\d+M(\d+D)?)?)(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S))?|\d+W)/i,email:/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,"idn-email":/^("(?:[!#-\[\]-\u{10FFFF}]|\\[\t -\u{10FFFF}])*"|[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*)@([!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*|\[[!-Z\^-\u{10FFFF}]*\])$/u,"ip-address":/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,ipv6:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,uri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"uri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/,iri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"iri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~-\u{10FFFF}]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~-\u{10FFFF}])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/u,uuid:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,"uri-template":/(%[0-9a-f]{2}|[!#$&(-;=?@\[\]_a-z~]|\{[!#&+,./;=?@|]?(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?(,(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?)*\})*/iu,"json-pointer":/^(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*$/iu,"relative-json-pointer":/^\d+(#|(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*)$/iu,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"utc-millisec":function(x){return typeof x=="string"&&parseFloat(x)===parseInt(x,10)&&!isNaN(x)},regex:function(x){var f=!0;try{new RegExp(x)}catch{f=!1}return f},style:/[\r\n\t ]*[^\r\n\t ][^:]*:[\r\n\t ]*[^\r\n\t ;]*[\r\n\t ]*;?/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/};l.regexp=l.regex,l.pattern=l.regex,l.ipv4=l["ip-address"],ht.isFormat=function(f,b,h){if(typeof f=="string"&&l[b]!==void 0){if(l[b]instanceof RegExp)return l[b].test(f);if(typeof l[b]=="function")return l[b](f)}else if(h&&h.customFormats&&typeof h.customFormats[b]=="function")return h.customFormats[b](f);return!0};var c=ht.makeSuffix=function(f){return f=f.toString(),!f.match(/[.\s\[\]]/)&&!f.match(/^[\d]/)?"."+f:f.match(/^\d+$/)?"["+f+"]":"["+JSON.stringify(f)+"]"};ht.deepCompareStrict=function x(f,b){if(typeof f!=typeof b)return!1;if(Array.isArray(f))return!Array.isArray(b)||f.length!==b.length?!1:f.every(function(E,R){return x(f[R],b[R])});if(typeof f=="object"){if(!f||!b)return f===b;var h=Object.keys(f),S=Object.keys(b);return h.length!==S.length?!1:h.every(function(E){return x(f[E],b[E])})}return f===b};function d(x,f,b,h){typeof b=="object"?f[h]=g(x[h],b):x.indexOf(b)===-1&&f.push(b)}function m(x,f,b){f[b]=x[b]}function v(x,f,b,h){typeof f[h]!="object"||!f[h]?b[h]=f[h]:x[h]?b[h]=g(x[h],f[h]):b[h]=f[h]}function g(x,f){var b=Array.isArray(f),h=b&&[]||{};return b?(x=x||[],h=h.concat(x),f.forEach(d.bind(null,x,h))):(x&&typeof x=="object"&&Object.keys(x).forEach(m.bind(null,x,h)),Object.keys(f).forEach(v.bind(null,x,f,h))),h}ht.deepMerge=g,ht.objectGetPath=function(f,b){for(var h=b.split("/").slice(1),S;typeof(S=h.shift())=="string";){var E=decodeURIComponent(S.replace(/~0/,"~").replace(/~1/g,"/"));if(!(E in f))return;f=f[E]}return f};function p(x){return"/"+encodeURIComponent(x).replace(/~/g,"%7E")}ht.encodePath=function(f){return f.map(p).join("")},ht.getDecimalPlaces=function(f){var b=0;if(isNaN(f))return b;typeof f!="number"&&(f=Number(f));var h=f.toString().split("e");if(h.length===2){if(h[1][0]!=="-")return b;b=Number(h[1].slice(1))}var S=h[0].split(".");return S.length===2&&(b+=S[1].length),b},ht.isSchema=function(f){return typeof f=="object"&&f||typeof f=="boolean"};var w=ht.resolveUrl=function(f,b){const h=new URL(b,new URL(f,"resolve://"));if(h.protocol==="resolve:"){const{pathname:S,search:E,hash:R}=h;return S+E+R}return h.toString()};return ht}var nc,Rv;function JI(){if(Rv)return nc;Rv=1;var e=Fn(),t=e.ValidatorResult,r=e.SchemaError,i={};i.ignoreProperties={id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0};var a=i.validators={};a.type=function(g,p,w,x){if(g===void 0)return null;var f=new t(g,p,w,x),b=Array.isArray(p.type)?p.type:[p.type];if(!b.some(this.testType.bind(this,g,p,w,x))){var h=b.map(function(S){if(S){var E=S.$id||S.id;return E?"<"+E+">":S+""}});f.addError({name:"type",argument:h,message:"is not of a type(s) "+h})}return f};function s(v,g,p,w,x){var f=g.throwError,b=g.throwAll;g.throwError=!1,g.throwAll=!1;var h=this.validateSchema(v,x,g,p);return g.throwError=f,g.throwAll=b,!h.valid&&w instanceof Function&&w(h),h.valid}a.anyOf=function(g,p,w,x){if(g===void 0)return null;var f=new t(g,p,w,x),b=new t(g,p,w,x);if(!Array.isArray(p.anyOf))throw new r("anyOf must be an array");if(!p.anyOf.some(s.bind(this,g,w,x,function(S){b.importErrors(S)}))){var h=p.anyOf.map(function(S,E){var R=S.$id||S.id;return R?"<"+R+">":S.title&&JSON.stringify(S.title)||S.$ref&&"<"+S.$ref+">"||"[subschema "+E+"]"});w.nestedErrors&&f.importErrors(b),f.addError({name:"anyOf",argument:h,message:"is not any of "+h.join(",")})}return f},a.allOf=function(g,p,w,x){if(g===void 0)return null;if(!Array.isArray(p.allOf))throw new r("allOf must be an array");var f=new t(g,p,w,x),b=this;return p.allOf.forEach(function(h,S){var E=b.validateSchema(g,h,w,x);if(!E.valid){var R=h.$id||h.id,O=R||h.title&&JSON.stringify(h.title)||h.$ref&&"<"+h.$ref+">"||"[subschema "+S+"]";f.addError({name:"allOf",argument:{id:O,length:E.errors.length,valid:E},message:"does not match allOf schema "+O+" with "+E.errors.length+" error[s]:"}),f.importErrors(E)}}),f},a.oneOf=function(g,p,w,x){if(g===void 0)return null;if(!Array.isArray(p.oneOf))throw new r("oneOf must be an array");var f=new t(g,p,w,x),b=new t(g,p,w,x),h=p.oneOf.filter(s.bind(this,g,w,x,function(E){b.importErrors(E)})).length,S=p.oneOf.map(function(E,R){var O=E.$id||E.id;return O||E.title&&JSON.stringify(E.title)||E.$ref&&"<"+E.$ref+">"||"[subschema "+R+"]"});return h!==1&&(w.nestedErrors&&f.importErrors(b),f.addError({name:"oneOf",argument:S,message:"is not exactly one from "+S.join(",")})),f},a.if=function(g,p,w,x){if(g===void 0)return null;if(!e.isSchema(p.if))throw new Error('Expected "if" keyword to be a schema');var f=s.call(this,g,w,x,null,p.if),b=new t(g,p,w,x),h;if(f){if(p.then===void 0)return;if(!e.isSchema(p.then))throw new Error('Expected "then" keyword to be a schema');h=this.validateSchema(g,p.then,w,x.makeChild(p.then)),b.importErrors(h)}else{if(p.else===void 0)return;if(!e.isSchema(p.else))throw new Error('Expected "else" keyword to be a schema');h=this.validateSchema(g,p.else,w,x.makeChild(p.else)),b.importErrors(h)}return b};function l(v,g){if(Object.hasOwnProperty.call(v,g))return v[g];if(g in v){for(;v=Object.getPrototypeOf(v);)if(Object.propertyIsEnumerable.call(v,g))return v[g]}}a.propertyNames=function(g,p,w,x){if(this.types.object(g)){var f=new t(g,p,w,x),b=p.propertyNames!==void 0?p.propertyNames:{};if(!e.isSchema(b))throw new r('Expected "propertyNames" to be a schema (object or boolean)');for(var h in g)if(l(g,h)!==void 0){var S=this.validateSchema(h,b,w,x.makeChild(b));f.importErrors(S)}return f}},a.properties=function(g,p,w,x){if(this.types.object(g)){var f=new t(g,p,w,x),b=p.properties||{};for(var h in b){var S=b[h];if(S!==void 0){if(S===null)throw new r('Unexpected null, expected schema in "properties"');typeof w.preValidateProperty=="function"&&w.preValidateProperty(g,h,S,w,x);var E=l(g,h),R=this.validateSchema(E,S,w,x.makeChild(S,h));R.instance!==f.instance[h]&&(f.instance[h]=R.instance),f.importErrors(R)}}return f}};function c(v,g,p,w,x,f){if(this.types.object(v)&&!(g.properties&&g.properties[x]!==void 0))if(g.additionalProperties===!1)f.addError({name:"additionalProperties",argument:x,message:"is not allowed to have the additional property "+JSON.stringify(x)});else{var b=g.additionalProperties||{};typeof p.preValidateProperty=="function"&&p.preValidateProperty(v,x,b,p,w);var h=this.validateSchema(v[x],b,p,w.makeChild(b,x));h.instance!==f.instance[x]&&(f.instance[x]=h.instance),f.importErrors(h)}}a.patternProperties=function(g,p,w,x){if(this.types.object(g)){var f=new t(g,p,w,x),b=p.patternProperties||{};for(var h in g){var S=!0;for(var E in b){var R=b[E];if(R!==void 0){if(R===null)throw new r('Unexpected null, expected schema in "patternProperties"');try{var O=new RegExp(E,"u")}catch{O=new RegExp(E)}if(O.test(h)){S=!1,typeof w.preValidateProperty=="function"&&w.preValidateProperty(g,h,R,w,x);var k=this.validateSchema(g[h],R,w,x.makeChild(R,h));k.instance!==f.instance[h]&&(f.instance[h]=k.instance),f.importErrors(k)}}}S&&c.call(this,g,p,w,x,h,f)}return f}},a.additionalProperties=function(g,p,w,x){if(this.types.object(g)){if(p.patternProperties)return null;var f=new t(g,p,w,x);for(var b in g)c.call(this,g,p,w,x,b,f);return f}},a.minProperties=function(g,p,w,x){if(this.types.object(g)){var f=new t(g,p,w,x),b=Object.keys(g);return b.length>=p.minProperties||f.addError({name:"minProperties",argument:p.minProperties,message:"does not meet minimum property length of "+p.minProperties}),f}},a.maxProperties=function(g,p,w,x){if(this.types.object(g)){var f=new t(g,p,w,x),b=Object.keys(g);return b.length<=p.maxProperties||f.addError({name:"maxProperties",argument:p.maxProperties,message:"does not meet maximum property length of "+p.maxProperties}),f}},a.items=function(g,p,w,x){var f=this;if(this.types.array(g)&&p.items!==void 0){var b=new t(g,p,w,x);return g.every(function(h,S){if(Array.isArray(p.items))var E=p.items[S]===void 0?p.additionalItems:p.items[S];else var E=p.items;if(E===void 0)return!0;if(E===!1)return b.addError({name:"items",message:"additionalItems not permitted"}),!1;var R=f.validateSchema(h,E,w,x.makeChild(E,S));return R.instance!==b.instance[S]&&(b.instance[S]=R.instance),b.importErrors(R),!0}),b}},a.contains=function(g,p,w,x){var f=this;if(this.types.array(g)&&p.contains!==void 0){if(!e.isSchema(p.contains))throw new Error('Expected "contains" keyword to be a schema');var b=new t(g,p,w,x),h=g.some(function(S,E){var R=f.validateSchema(S,p.contains,w,x.makeChild(p.contains,E));return R.errors.length===0});return h===!1&&b.addError({name:"contains",argument:p.contains,message:"must contain an item matching given schema"}),b}},a.minimum=function(g,p,w,x){if(this.types.number(g)){var f=new t(g,p,w,x);return p.exclusiveMinimum&&p.exclusiveMinimum===!0?g>p.minimum||f.addError({name:"minimum",argument:p.minimum,message:"must be greater than "+p.minimum}):g>=p.minimum||f.addError({name:"minimum",argument:p.minimum,message:"must be greater than or equal to "+p.minimum}),f}},a.maximum=function(g,p,w,x){if(this.types.number(g)){var f=new t(g,p,w,x);return p.exclusiveMaximum&&p.exclusiveMaximum===!0?g<p.maximum||f.addError({name:"maximum",argument:p.maximum,message:"must be less than "+p.maximum}):g<=p.maximum||f.addError({name:"maximum",argument:p.maximum,message:"must be less than or equal to "+p.maximum}),f}},a.exclusiveMinimum=function(g,p,w,x){if(typeof p.exclusiveMinimum!="boolean"&&this.types.number(g)){var f=new t(g,p,w,x),b=g>p.exclusiveMinimum;return b||f.addError({name:"exclusiveMinimum",argument:p.exclusiveMinimum,message:"must be strictly greater than "+p.exclusiveMinimum}),f}},a.exclusiveMaximum=function(g,p,w,x){if(typeof p.exclusiveMaximum!="boolean"&&this.types.number(g)){var f=new t(g,p,w,x),b=g<p.exclusiveMaximum;return b||f.addError({name:"exclusiveMaximum",argument:p.exclusiveMaximum,message:"must be strictly less than "+p.exclusiveMaximum}),f}};var d=function(g,p,w,x,f,b){if(this.types.number(g)){var h=p[f];if(h==0)throw new r(f+" cannot be zero");var S=new t(g,p,w,x),E=e.getDecimalPlaces(g),R=e.getDecimalPlaces(h),O=Math.max(E,R),k=Math.pow(10,O);return Math.round(g*k)%Math.round(h*k)!==0&&S.addError({name:f,argument:h,message:b+JSON.stringify(h)}),S}};a.multipleOf=function(g,p,w,x){return d.call(this,g,p,w,x,"multipleOf","is not a multiple of (divisible by) ")},a.divisibleBy=function(g,p,w,x){return d.call(this,g,p,w,x,"divisibleBy","is not divisible by (multiple of) ")},a.required=function(g,p,w,x){var f=new t(g,p,w,x);return g===void 0&&p.required===!0?f.addError({name:"required",message:"is required"}):this.types.object(g)&&Array.isArray(p.required)&&p.required.forEach(function(b){l(g,b)===void 0&&f.addError({name:"required",argument:b,message:"requires property "+JSON.stringify(b)})}),f},a.pattern=function(g,p,w,x){if(this.types.string(g)){var f=new t(g,p,w,x),b=p.pattern;try{var h=new RegExp(b,"u")}catch{h=new RegExp(b)}return g.match(h)||f.addError({name:"pattern",argument:p.pattern,message:"does not match pattern "+JSON.stringify(p.pattern.toString())}),f}},a.format=function(g,p,w,x){if(g!==void 0){var f=new t(g,p,w,x);return!f.disableFormat&&!e.isFormat(g,p.format,this)&&f.addError({name:"format",argument:p.format,message:"does not conform to the "+JSON.stringify(p.format)+" format"}),f}},a.minLength=function(g,p,w,x){if(this.types.string(g)){var f=new t(g,p,w,x),b=g.match(/[\uDC00-\uDFFF]/g),h=g.length-(b?b.length:0);return h>=p.minLength||f.addError({name:"minLength",argument:p.minLength,message:"does not meet minimum length of "+p.minLength}),f}},a.maxLength=function(g,p,w,x){if(this.types.string(g)){var f=new t(g,p,w,x),b=g.match(/[\uDC00-\uDFFF]/g),h=g.length-(b?b.length:0);return h<=p.maxLength||f.addError({name:"maxLength",argument:p.maxLength,message:"does not meet maximum length of "+p.maxLength}),f}},a.minItems=function(g,p,w,x){if(this.types.array(g)){var f=new t(g,p,w,x);return g.length>=p.minItems||f.addError({name:"minItems",argument:p.minItems,message:"does not meet minimum length of "+p.minItems}),f}},a.maxItems=function(g,p,w,x){if(this.types.array(g)){var f=new t(g,p,w,x);return g.length<=p.maxItems||f.addError({name:"maxItems",argument:p.maxItems,message:"does not meet maximum length of "+p.maxItems}),f}};function m(v,g,p){var w,x=p.length;for(w=g+1,x;w<x;w++)if(e.deepCompareStrict(v,p[w]))return!1;return!0}return a.uniqueItems=function(g,p,w,x){if(p.uniqueItems===!0&&this.types.array(g)){var f=new t(g,p,w,x);return g.every(m)||f.addError({name:"uniqueItems",message:"contains duplicate item"}),f}},a.dependencies=function(g,p,w,x){if(this.types.object(g)){var f=new t(g,p,w,x);for(var b in p.dependencies)if(g[b]!==void 0){var h=p.dependencies[b],S=x.makeChild(h,b);if(typeof h=="string"&&(h=[h]),Array.isArray(h))h.forEach(function(R){g[R]===void 0&&f.addError({name:"dependencies",argument:S.propertyPath,message:"property "+R+" not found, required by "+S.propertyPath})});else{var E=this.validateSchema(g,h,w,S);f.instance!==E.instance&&(f.instance=E.instance),E&&E.errors.length&&(f.addError({name:"dependencies",argument:S.propertyPath,message:"does not meet dependency required by "+S.propertyPath}),f.importErrors(E))}}return f}},a.enum=function(g,p,w,x){if(g===void 0)return null;if(!Array.isArray(p.enum))throw new r("enum expects an array",p);var f=new t(g,p,w,x);return p.enum.some(e.deepCompareStrict.bind(null,g))||f.addError({name:"enum",argument:p.enum,message:"is not one of enum values: "+p.enum.map(String).join(",")}),f},a.const=function(g,p,w,x){if(g===void 0)return null;var f=new t(g,p,w,x);return e.deepCompareStrict(p.const,g)||f.addError({name:"const",argument:p.const,message:"does not exactly match expected constant: "+p.const}),f},a.not=a.disallow=function(g,p,w,x){var f=this;if(g===void 0)return null;var b=new t(g,p,w,x),h=p.not||p.disallow;return h?(Array.isArray(h)||(h=[h]),h.forEach(function(S){if(f.testType(g,p,w,x,S)){var E=S&&(S.$id||S.id),R=E||S;b.addError({name:"not",argument:R,message:"is of prohibited type "+R})}}),b):null},nc=i,nc}var ts={},Pv;function kc(){if(Pv)return ts;Pv=1;var e=Fn();ts.SchemaScanResult=t;function t(r,i){this.id=r,this.ref=i}return ts.scan=function(i,a){function s(v,g){if(!g||typeof g!="object")return;if(g.$ref){let f=e.resolveUrl(v,g.$ref);m[f]=m[f]?m[f]+1:0;return}var p=g.$id||g.id;let w=e.resolveUrl(v,p);var x=p?w:v;if(x){if(x.indexOf("#")<0&&(x+="#"),d[x]){if(!e.deepCompareStrict(d[x],g))throw new Error("Schema <"+x+"> already exists with different definition");return d[x]}d[x]=g,x[x.length-1]=="#"&&(d[x.substring(0,x.length-1)]=g)}l(x+"/items",Array.isArray(g.items)?g.items:[g.items]),l(x+"/extends",Array.isArray(g.extends)?g.extends:[g.extends]),s(x+"/additionalItems",g.additionalItems),c(x+"/properties",g.properties),s(x+"/additionalProperties",g.additionalProperties),c(x+"/definitions",g.definitions),c(x+"/patternProperties",g.patternProperties),c(x+"/dependencies",g.dependencies),l(x+"/disallow",g.disallow),l(x+"/allOf",g.allOf),l(x+"/anyOf",g.anyOf),l(x+"/oneOf",g.oneOf),s(x+"/not",g.not)}function l(v,g){if(Array.isArray(g))for(var p=0;p<g.length;p++)s(v+"/"+p,g[p])}function c(v,g){if(!(!g||typeof g!="object"))for(var p in g)s(v+"/"+p,g[p])}var d={},m={};return s(i,a),new t(d,m)},ts}var ic,Cv;function QI(){if(Cv)return ic;Cv=1;var e=JI(),t=Fn(),r=kc().scan,i=t.ValidatorResult,a=t.ValidatorResultError,s=t.SchemaError,l=t.SchemaContext,c="/",d=function g(){this.customFormats=Object.create(g.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(v),this.attributes=Object.create(e.validators)};d.prototype.customFormats={},d.prototype.schemas=null,d.prototype.types=null,d.prototype.attributes=null,d.prototype.unresolvedRefs=null,d.prototype.addSchema=function(p,w){var x=this;if(!p)return null;var f=r(w||c,p),b=w||p.$id||p.id;for(var h in f.id)this.schemas[h]=f.id[h];for(var h in f.ref)this.unresolvedRefs.push(h);return this.unresolvedRefs=this.unresolvedRefs.filter(function(S){return typeof x.schemas[S]>"u"}),this.schemas[b]},d.prototype.addSubSchemaArray=function(p,w){if(Array.isArray(w))for(var x=0;x<w.length;x++)this.addSubSchema(p,w[x])},d.prototype.addSubSchemaObject=function(p,w){if(!(!w||typeof w!="object"))for(var x in w)this.addSubSchema(p,w[x])},d.prototype.setSchemas=function(p){this.schemas=p},d.prototype.getSchema=function(p){return this.schemas[p]},d.prototype.validate=function(p,w,x,f){if(typeof w!="boolean"&&typeof w!="object"||w===null)throw new s("Expected `schema` to be an object or boolean");x||(x={});var b=w.$id||w.id;let h=t.resolveUrl(x.base,b||"");if(!f){f=new l(w,x,[],h,Object.create(this.schemas)),f.schemas[h]||(f.schemas[h]=w);var S=r(h,w);for(var E in S.id){var R=S.id[E];f.schemas[E]=R}}if(x.required&&p===void 0){var O=new i(p,w,x,f);return O.addError("is required, but is undefined"),O}var O=this.validateSchema(p,w,x,f);if(O){if(x.throwAll&&O.errors.length)throw new a(O)}else throw new Error("Result undefined");return O};function m(g){var p=typeof g=="string"?g:g.$ref;return typeof p=="string"?p:!1}d.prototype.validateSchema=function(p,w,x,f){var b=new i(p,w,x,f);if(typeof w=="boolean")w===!0?w={}:w===!1&&(w={type:[]});else if(!w)throw new Error("schema is undefined");if(w.extends)if(Array.isArray(w.extends)){var h={schema:w,ctx:f};w.extends.forEach(this.schemaTraverser.bind(this,h)),w=h.schema,h.schema=null,h.ctx=null,h=null}else w=t.deepMerge(w,this.superResolve(w.extends,f));var S=m(w);if(S){var E=this.resolve(w,S,f),R=new l(E.subschema,x,f.path,E.switchSchema,f.schemas);return this.validateSchema(p,E.subschema,x,R)}var O=x&&x.skipAttributes||[];for(var k in w)if(!e.ignoreProperties[k]&&O.indexOf(k)<0){var B=null,M=this.attributes[k];if(M)B=M.call(this,p,w,x,f);else if(x.allowUnknownAttributes===!1)throw new s("Unsupported attribute: "+k,w);B&&b.importErrors(B)}if(typeof x.rewrite=="function"){var F=x.rewrite.call(this,p,w,x,f);b.instance=F}return b},d.prototype.schemaTraverser=function(p,w){p.schema=t.deepMerge(p.schema,this.superResolve(w,p.ctx))},d.prototype.superResolve=function(p,w){var x=m(p);return x?this.resolve(p,x,w).subschema:p},d.prototype.resolve=function(p,w,x){if(w=x.resolve(w),x.schemas[w])return{subschema:x.schemas[w],switchSchema:w};let b=new URL(w,"thismessage::/").hash;var h=b&&b.length&&w.substr(0,w.length-b.length);if(!h||!x.schemas[h])throw new s("no such schema <"+w+">",p);var S=t.objectGetPath(x.schemas[h],b.substr(1));if(S===void 0)throw new s("no such schema "+b+" located in <"+h+">",p);return{subschema:S,switchSchema:w}},d.prototype.testType=function(p,w,x,f,b){if(b!==void 0){if(b===null)throw new s('Unexpected null in "type" keyword');if(typeof this.types[b]=="function")return this.types[b].call(this,p);if(b&&typeof b=="object"){var h=this.validateSchema(p,b,x,f);return h===void 0||!(h&&h.errors.length)}return!0}};var v=d.prototype.types={};return v.string=function(p){return typeof p=="string"},v.number=function(p){return typeof p=="number"&&isFinite(p)},v.integer=function(p){return typeof p=="number"&&p%1===0},v.boolean=function(p){return typeof p=="boolean"},v.array=function(p){return Array.isArray(p)},v.null=function(p){return p===null},v.date=function(p){return p instanceof Date},v.any=function(p){return!0},v.object=function(p){return p&&typeof p=="object"&&!Array.isArray(p)&&!(p instanceof Date)},ic=d,ic}var kv;function e2(){if(kv)return xr;kv=1;var e=xr.Validator=QI();return xr.ValidatorResult=Fn().ValidatorResult,xr.ValidatorResultError=Fn().ValidatorResultError,xr.ValidationError=Fn().ValidationError,xr.SchemaError=Fn().SchemaError,xr.SchemaScanResult=kc().SchemaScanResult,xr.scan=kc().scan,xr.validate=function(t,r,i){var a=new e;return a.validate(t,r,i)},xr}var t2=e2();const f0=(e,t,r)=>{const i=e instanceof RegExp?$v(e,r):e,a=t instanceof RegExp?$v(t,r):t,s=i!==null&&a!=null&&r2(i,a,r);return s&&{start:s[0],end:s[1],pre:r.slice(0,s[0]),body:r.slice(s[0]+i.length,s[1]),post:r.slice(s[1]+a.length)}},$v=(e,t)=>{const r=t.match(e);return r?r[0]:null},r2=(e,t,r)=>{let i,a,s,l,c,d=r.indexOf(e),m=r.indexOf(t,d+1),v=d;if(d>=0&&m>0){if(e===t)return[d,m];for(i=[],s=r.length;v>=0&&!c;){if(v===d)i.push(v),d=r.indexOf(e,v+1);else if(i.length===1){const g=i.pop();g!==void 0&&(c=[g,m])}else a=i.pop(),a!==void 0&&a<s&&(s=a,l=m),m=r.indexOf(t,v+1);v=d<m&&d>=0?d:m}i.length&&l!==void 0&&(c=[s,l])}return c},d0="\0SLASH"+Math.random()+"\0",p0="\0OPEN"+Math.random()+"\0",Rf="\0CLOSE"+Math.random()+"\0",h0="\0COMMA"+Math.random()+"\0",g0="\0PERIOD"+Math.random()+"\0",n2=new RegExp(d0,"g"),i2=new RegExp(p0,"g"),o2=new RegExp(Rf,"g"),a2=new RegExp(h0,"g"),s2=new RegExp(g0,"g"),u2=/\\\\/g,l2=/\\{/g,c2=/\\}/g,f2=/\\,/g,d2=/\\./g;function oc(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function p2(e){return e.replace(u2,d0).replace(l2,p0).replace(c2,Rf).replace(f2,h0).replace(d2,g0)}function h2(e){return e.replace(n2,"\\").replace(i2,"{").replace(o2,"}").replace(a2,",").replace(s2,".")}function v0(e){if(!e)return[""];const t=[],r=f0("{","}",e);if(!r)return e.split(",");const{pre:i,body:a,post:s}=r,l=i.split(",");l[l.length-1]+="{"+a+"}";const c=v0(s);return s.length&&(l[l.length-1]+=c.shift(),l.push.apply(l,c)),t.push.apply(t,l),t}function g2(e){return e?(e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),yo(p2(e),!0).map(h2)):[]}function v2(e){return"{"+e+"}"}function m2(e){return/^-?0\d/.test(e)}function y2(e,t){return e<=t}function w2(e,t){return e>=t}function yo(e,t){const r=[],i=f0("{","}",e);if(!i)return[e];const a=i.pre,s=i.post.length?yo(i.post,!1):[""];if(/\$$/.test(i.pre))for(let l=0;l<s.length;l++){const c=a+"{"+i.body+"}"+s[l];r.push(c)}else{const l=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),d=l||c,m=i.body.indexOf(",")>=0;if(!d&&!m)return i.post.match(/,(?!,).*\}/)?(e=i.pre+"{"+i.body+Rf+i.post,yo(e)):[e];let v;if(d)v=i.body.split(/\.\./);else if(v=v0(i.body),v.length===1&&v[0]!==void 0&&(v=yo(v[0],!1).map(v2),v.length===1))return s.map(p=>i.pre+v[0]+p);let g;if(d&&v[0]!==void 0&&v[1]!==void 0){const p=oc(v[0]),w=oc(v[1]),x=Math.max(v[0].length,v[1].length);let f=v.length===3&&v[2]!==void 0?Math.abs(oc(v[2])):1,b=y2;w<p&&(f*=-1,b=w2);const S=v.some(m2);g=[];for(let E=p;b(E,w);E+=f){let R;if(c)R=String.fromCharCode(E),R==="\\"&&(R="");else if(R=String(E),S){const O=x-R.length;if(O>0){const k=new Array(O+1).join("0");E<0?R="-"+k+R.slice(1):R=k+R}}g.push(R)}}else{g=[];for(let p=0;p<v.length;p++)g.push.apply(g,yo(v[p],!1))}for(let p=0;p<g.length;p++)for(let w=0;w<s.length;w++){const x=a+g[p]+s[w];(!t||d||x)&&r.push(x)}}return r}const b2=1024*64,Ts=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>b2)throw new TypeError("pattern is too long")},x2={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},po=e=>e.replace(/[[\]\\-]/g,"\\$&"),S2=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Iv=e=>e.join(""),E2=(e,t)=>{const r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");const i=[],a=[];let s=r+1,l=!1,c=!1,d=!1,m=!1,v=r,g="";e:for(;s<e.length;){const f=e.charAt(s);if((f==="!"||f==="^")&&s===r+1){m=!0,s++;continue}if(f==="]"&&l&&!d){v=s+1;break}if(l=!0,f==="\\"&&!d){d=!0,s++;continue}if(f==="["&&!d){for(const[b,[h,S,E]]of Object.entries(x2))if(e.startsWith(b,s)){if(g)return["$.",!1,e.length-r,!0];s+=b.length,E?a.push(h):i.push(h),c=c||S;continue e}}if(d=!1,g){f>g?i.push(po(g)+"-"+po(f)):f===g&&i.push(po(f)),g="",s++;continue}if(e.startsWith("-]",s+1)){i.push(po(f+"-")),s+=2;continue}if(e.startsWith("-",s+1)){g=f,s+=2;continue}i.push(po(f)),s++}if(v<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])&&!m){const f=i[0].length===2?i[0].slice(-1):i[0];return[S2(f),!1,v-r,!1]}const p="["+(m?"^":"")+Iv(i)+"]",w="["+(m?"":"^")+Iv(a)+"]";return[i.length&&a.length?"("+p+"|"+w+")":i.length?p:w,c,v-r,!0]},wo=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),_2=new Set(["!","?","+","*","@"]),Lv=e=>_2.has(e),O2="(?!(?:^|/)\\.\\.?(?:$|/))",rs="(?!\\.)",A2=new Set(["[","."]),T2=new Set(["..","."]),R2=new Set("().*{}+?[]^$\\!"),P2=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Pf="[^/]",Mv=Pf+"*?",Fv=Pf+"+?";var st,ct,qr,Ue,nt,fn,Dn,dn,Er,Nn,Mo,qn,m0,gn,ps,$c,y0;const Tt=class Tt{constructor(t,r,i={}){xt(this,qn);me(this,"type");xt(this,st);xt(this,ct);xt(this,qr,!1);xt(this,Ue,[]);xt(this,nt);xt(this,fn);xt(this,Dn);xt(this,dn,!1);xt(this,Er);xt(this,Nn);xt(this,Mo,!1);this.type=t,t&&Xe(this,ct,!0),Xe(this,nt,r),Xe(this,st,re(this,nt)?re(re(this,nt),st):this),Xe(this,Er,re(this,st)===this?i:re(re(this,st),Er)),Xe(this,Dn,re(this,st)===this?[]:re(re(this,st),Dn)),t==="!"&&!re(re(this,st),dn)&&re(this,Dn).push(this),Xe(this,fn,re(this,nt)?re(re(this,nt),Ue).length:0)}get hasMagic(){if(re(this,ct)!==void 0)return re(this,ct);for(const t of re(this,Ue))if(typeof t!="string"&&(t.type||t.hasMagic))return Xe(this,ct,!0);return re(this,ct)}toString(){return re(this,Nn)!==void 0?re(this,Nn):this.type?Xe(this,Nn,this.type+"("+re(this,Ue).map(t=>String(t)).join("|")+")"):Xe(this,Nn,re(this,Ue).map(t=>String(t)).join(""))}push(...t){for(const r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof Tt&&re(r,nt)===this))throw new Error("invalid part: "+r);re(this,Ue).push(r)}}toJSON(){var r;const t=this.type===null?re(this,Ue).slice().map(i=>typeof i=="string"?i:i.toJSON()):[this.type,...re(this,Ue).map(i=>i.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===re(this,st)||re(re(this,st),dn)&&((r=re(this,nt))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(re(this,st)===this)return!0;if(!((r=re(this,nt))!=null&&r.isStart()))return!1;if(re(this,fn)===0)return!0;const t=re(this,nt);for(let i=0;i<re(this,fn);i++){const a=re(t,Ue)[i];if(!(a instanceof Tt&&a.type==="!"))return!1}return!0}isEnd(){var r,i,a;if(re(this,st)===this||((r=re(this,nt))==null?void 0:r.type)==="!")return!0;if(!((i=re(this,nt))!=null&&i.isEnd()))return!1;if(!this.type)return(a=re(this,nt))==null?void 0:a.isEnd();const t=re(this,nt)?re(re(this,nt),Ue).length:0;return re(this,fn)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new Tt(this.type,t);for(const i of re(this,Ue))r.copyIn(i);return r}static fromGlob(t,r={}){var a;const i=new Tt(null,void 0,r);return $e(a=Tt,gn,ps).call(a,t,i,0,r),i}toMMPattern(){if(this!==re(this,st))return re(this,st).toMMPattern();const t=this.toString(),[r,i,a,s]=this.toRegExpSource();if(!(a||re(this,ct)||re(this,Er).nocase&&!re(this,Er).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return i;const c=(re(this,Er).nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${r}$`,c),{_src:r,_glob:t})}get options(){return re(this,Er)}toRegExpSource(t){var d;const r=t??!!re(this,Er).dot;if(re(this,st)===this&&$e(this,qn,m0).call(this),!this.type){const m=this.isStart()&&this.isEnd(),v=re(this,Ue).map(x=>{var E;const[f,b,h,S]=typeof x=="string"?$e(E=Tt,gn,y0).call(E,x,re(this,ct),m):x.toRegExpSource(t);return Xe(this,ct,re(this,ct)||h),Xe(this,qr,re(this,qr)||S),f}).join("");let g="";if(this.isStart()&&typeof re(this,Ue)[0]=="string"&&!(re(this,Ue).length===1&&T2.has(re(this,Ue)[0]))){const f=A2,b=r&&f.has(v.charAt(0))||v.startsWith("\\.")&&f.has(v.charAt(2))||v.startsWith("\\.\\.")&&f.has(v.charAt(4)),h=!r&&!t&&f.has(v.charAt(0));g=b?O2:h?rs:""}let p="";return this.isEnd()&&re(re(this,st),dn)&&((d=re(this,nt))==null?void 0:d.type)==="!"&&(p="(?:$|\\/)"),[g+v+p,wo(v),Xe(this,ct,!!re(this,ct)),re(this,qr)]}const i=this.type==="*"||this.type==="+",a=this.type==="!"?"(?:(?!(?:":"(?:";let s=$e(this,qn,$c).call(this,r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){const m=this.toString();return Xe(this,Ue,[m]),this.type=null,Xe(this,ct,void 0),[m,wo(this.toString()),!1,!1]}let l=!i||t||r||!rs?"":$e(this,qn,$c).call(this,!0);l===s&&(l=""),l&&(s=`(?:${s})(?:${l})*?`);let c="";if(this.type==="!"&&re(this,Mo))c=(this.isStart()&&!r?rs:"")+Fv;else{const m=this.type==="!"?"))"+(this.isStart()&&!r&&!t?rs:"")+Mv+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&l?")":this.type==="*"&&l?")?":`)${this.type}`;c=a+s+m}return[c,wo(s),Xe(this,ct,!!re(this,ct)),re(this,qr)]}};st=new WeakMap,ct=new WeakMap,qr=new WeakMap,Ue=new WeakMap,nt=new WeakMap,fn=new WeakMap,Dn=new WeakMap,dn=new WeakMap,Er=new WeakMap,Nn=new WeakMap,Mo=new WeakMap,qn=new WeakSet,m0=function(){if(this!==re(this,st))throw new Error("should only call on root");if(re(this,dn))return this;this.toString(),Xe(this,dn,!0);let t;for(;t=re(this,Dn).pop();){if(t.type!=="!")continue;let r=t,i=re(r,nt);for(;i;){for(let a=re(r,fn)+1;!i.type&&a<re(i,Ue).length;a++)for(const s of re(t,Ue)){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(re(i,Ue)[a])}r=i,i=re(r,nt)}}return this},gn=new WeakSet,ps=function(t,r,i,a){var w,x;let s=!1,l=!1,c=-1,d=!1;if(r.type===null){let f=i,b="";for(;f<t.length;){const h=t.charAt(f++);if(s||h==="\\"){s=!s,b+=h;continue}if(l){f===c+1?(h==="^"||h==="!")&&(d=!0):h==="]"&&!(f===c+2&&d)&&(l=!1),b+=h;continue}else if(h==="["){l=!0,c=f,d=!1,b+=h;continue}if(!a.noext&&Lv(h)&&t.charAt(f)==="("){r.push(b),b="";const S=new Tt(h,r);f=$e(w=Tt,gn,ps).call(w,t,S,f,a),r.push(S);continue}b+=h}return r.push(b),f}let m=i+1,v=new Tt(null,r);const g=[];let p="";for(;m<t.length;){const f=t.charAt(m++);if(s||f==="\\"){s=!s,p+=f;continue}if(l){m===c+1?(f==="^"||f==="!")&&(d=!0):f==="]"&&!(m===c+2&&d)&&(l=!1),p+=f;continue}else if(f==="["){l=!0,c=m,d=!1,p+=f;continue}if(Lv(f)&&t.charAt(m)==="("){v.push(p),p="";const b=new Tt(f,v);v.push(b),m=$e(x=Tt,gn,ps).call(x,t,b,m,a);continue}if(f==="|"){v.push(p),p="",g.push(v),v=new Tt(null,r);continue}if(f===")")return p===""&&re(r,Ue).length===0&&Xe(r,Mo,!0),v.push(p),p="",r.push(...g,v),m;p+=f}return r.type=null,Xe(r,ct,void 0),Xe(r,Ue,[t.substring(i-1)]),m},$c=function(t){return re(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 Xe(this,qr,re(this,qr)||l),i}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},y0=function(t,r,i=!1){let a=!1,s="",l=!1;for(let c=0;c<t.length;c++){const d=t.charAt(c);if(a){a=!1,s+=(R2.has(d)?"\\":"")+d;continue}if(d==="\\"){c===t.length-1?s+="\\\\":a=!0;continue}if(d==="["){const[m,v,g,p]=E2(t,c);if(g){s+=m,l=l||v,c+=g-1,r=r||p;continue}}if(d==="*"){i&&t==="*"?s+=Fv:s+=Mv,r=!0;continue}if(d==="?"){s+=Pf,r=!0;continue}s+=P2(d)}return[s,wo(t),!!r,l]},xt(Tt,gn);let Rs=Tt;const C2=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),Et=(e,t,r={})=>(Ts(t),!r.nocomment&&t.charAt(0)==="#"?!1:new qs(t,r).match(e)),k2=/^\*+([^+@!?\*\[\(]*)$/,$2=e=>t=>!t.startsWith(".")&&t.endsWith(e),I2=e=>t=>t.endsWith(e),L2=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),M2=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),F2=/^\*+\.\*+$/,D2=e=>!e.startsWith(".")&&e.includes("."),N2=e=>e!=="."&&e!==".."&&e.includes("."),j2=/^\.\*+$/,z2=e=>e!=="."&&e!==".."&&e.startsWith("."),W2=/^\*+$/,B2=e=>e.length!==0&&!e.startsWith("."),U2=e=>e.length!==0&&e!=="."&&e!=="..",H2=/^\?+([^+@!?\*\[\(]*)?$/,q2=([e,t=""])=>{const r=w0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},Z2=([e,t=""])=>{const r=b0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},G2=([e,t=""])=>{const r=b0([e]);return t?i=>r(i)&&i.endsWith(t):r},K2=([e,t=""])=>{const r=w0([e]);return t?i=>r(i)&&i.endsWith(t):r},w0=([e])=>{const t=e.length;return r=>r.length===t&&!r.startsWith(".")},b0=([e])=>{const t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},x0=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Dv={win32:{sep:"\\"},posix:{sep:"/"}},V2=x0==="win32"?Dv.win32.sep:Dv.posix.sep;Et.sep=V2;const nr=Symbol("globstar **");Et.GLOBSTAR=nr;const X2="[^/]",Y2=X2+"*?",J2="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Q2="(?:(?!(?:\\/|^)\\.).)*?",eL=(e,t={})=>r=>Et(r,e,t);Et.filter=eL;const rr=(e,t={})=>Object.assign({},e,t),tL=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Et;const t=Et;return Object.assign((i,a,s={})=>t(i,a,rr(e,s)),{Minimatch:class extends t.Minimatch{constructor(a,s={}){super(a,rr(e,s))}static defaults(a){return t.defaults(rr(e,a)).Minimatch}},AST:class extends t.AST{constructor(a,s,l={}){super(a,s,rr(e,l))}static fromGlob(a,s={}){return t.AST.fromGlob(a,rr(e,s))}},unescape:(i,a={})=>t.unescape(i,rr(e,a)),escape:(i,a={})=>t.escape(i,rr(e,a)),filter:(i,a={})=>t.filter(i,rr(e,a)),defaults:i=>t.defaults(rr(e,i)),makeRe:(i,a={})=>t.makeRe(i,rr(e,a)),braceExpand:(i,a={})=>t.braceExpand(i,rr(e,a)),match:(i,a,s={})=>t.match(i,a,rr(e,s)),sep:t.sep,GLOBSTAR:nr})};Et.defaults=tL;const S0=(e,t={})=>(Ts(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:g2(e));Et.braceExpand=S0;const rL=(e,t={})=>new qs(e,t).makeRe();Et.makeRe=rL;const nL=(e,t,r={})=>{const i=new qs(t,r);return e=e.filter(a=>i.match(a)),i.options.nonull&&!e.length&&e.push(t),e};Et.match=nL;const Nv=/[?*]|[+@!]\(.*?\)|\[|\]/,iL=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class qs{constructor(t,r={}){me(this,"options");me(this,"set");me(this,"pattern");me(this,"windowsPathsNoEscape");me(this,"nonegate");me(this,"negate");me(this,"comment");me(this,"empty");me(this,"preserveMultipleSlashes");me(this,"partial");me(this,"globSet");me(this,"globParts");me(this,"nocase");me(this,"isWindows");me(this,"platform");me(this,"windowsNoMagicRoot");me(this,"regexp");Ts(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||x0,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){const t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);const i=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let a=this.globParts.map((s,l,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){const d=s[0]===""&&s[1]===""&&(s[2]==="?"||!Nv.test(s[2]))&&!Nv.test(s[3]),m=/^[a-z]:/i.test(s[0]);if(d)return[...s.slice(0,4),...s.slice(4).map(v=>this.parse(v))];if(m)return[s[0],...s.slice(1).map(v=>this.parse(v))]}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 c=i[a+1];const d=i[a+2],m=i[a+3];if(c!==".."||!d||d==="."||d===".."||!m||m==="."||m==="..")continue;r=!0,i.splice(a,1);const v=i.slice(0);v[a]="**",t.push(v),a--}if(!this.preserveMultipleSlashes){for(let l=1;l<i.length-1;l++){const c=i[l];l===1&&c===""&&i[0]===""||(c==="."||c==="")&&(r=!0,i.splice(l,1),l--)}i[0]==="."&&i.length===2&&(i[1]==="."||i[1]==="")&&(r=!0,i.pop())}let s=0;for(;(s=i.indexOf("..",s+1))!==-1;){const l=i[s-1];if(l&&l!=="."&&l!==".."&&l!=="**"){r=!0;const 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=[],c="";for(;a<t.length&&s<r.length;)if(t[a]===r[s])l.push(c==="b"?r[s]:t[a]),a++,s++;else if(i&&t[a]==="**"&&r[s]===t[a+1])l.push(t[a]),a++;else if(i&&r[s]==="**"&&t[a]===r[s+1])l.push(r[s]),s++;else if(t[a]==="*"&&r[s]&&(this.options.dot||!r[s].startsWith("."))&&r[s]!=="**"){if(c==="b")return!1;c="a",l.push(t[a]),a++,s++}else if(r[s]==="*"&&t[a]&&(this.options.dot||!t[a].startsWith("."))&&t[a]!=="**"){if(c==="a")return!1;c="b",l.push(r[s]),a++,s++}else return!1;return t.length===r.length&&l}parseNegate(){if(this.nonegate)return;const t=this.pattern;let r=!1,i=0;for(let a=0;a<t.length&&t.charAt(a)==="!";a++)r=!r,i++;i&&(this.pattern=t.slice(i)),this.negate=r}matchOne(t,r,i=!1){const a=this.options;if(this.isWindows){const f=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),b=!f&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),h=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),S=!h&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),E=b?3:f?0:void 0,R=S?3:h?0:void 0;if(typeof E=="number"&&typeof R=="number"){const[O,k]=[t[E],r[R]];O.toLowerCase()===k.toLowerCase()&&(r[R]=O,R>E?r=r.slice(R):E>R&&(t=t.slice(E)))}}const{optimizationLevel:s=1}=this.options;s>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var l=0,c=0,d=t.length,m=r.length;l<d&&c<m;l++,c++){this.debug("matchOne loop");var v=r[c],g=t[l];if(this.debug(r,v,g),v===!1)return!1;if(v===nr){this.debug("GLOBSTAR",[r,v,g]);var p=l,w=c+1;if(w===m){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(;p<d;){var x=t[p];if(this.debug(`
|
|
206
|
+
globstar while`,t,p,r,w,x),this.matchOne(t.slice(p),r.slice(w),i))return this.debug("globstar found match!",p,d,x),!0;if(x==="."||x===".."||!a.dot&&x.charAt(0)==="."){this.debug("dot detected!",t,p,r,w);break}this.debug("globstar swallow a segment, and continue"),p++}return!!(i&&(this.debug(`
|
|
207
|
+
>>> no match, partial?`,t,p,r,w),p===d))}let f;if(typeof v=="string"?(f=g===v,this.debug("string match",v,g,f)):(f=v.test(g),this.debug("pattern match",v,g,f)),!f)return!1}if(l===d&&c===m)return!0;if(l===d)return i;if(c===m)return l===d-1&&t[l]==="";throw new Error("wtf?")}braceExpand(){return S0(this.pattern,this.options)}parse(t){Ts(t);const r=this.options;if(t==="**")return nr;if(t==="")return"";let i,a=null;(i=t.match(W2))?a=r.dot?U2:B2:(i=t.match(k2))?a=(r.nocase?r.dot?M2:L2:r.dot?I2:$2)(i[1]):(i=t.match(H2))?a=(r.nocase?r.dot?Z2:q2:r.dot?G2:K2)(i):(i=t.match(F2))?a=r.dot?N2:D2:(i=t.match(j2))&&(a=z2);const s=Rs.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?Y2:r.dot?J2:Q2,a=new Set(r.nocase?["i"]:[]);let s=t.map(d=>{const m=d.map(v=>{if(v instanceof RegExp)for(const g of v.flags.split(""))a.add(g);return typeof v=="string"?iL(v):v===nr?nr:v._src});return m.forEach((v,g)=>{const p=m[g+1],w=m[g-1];v!==nr||w===nr||(w===void 0?p!==void 0&&p!==nr?m[g+1]="(?:\\/|"+i+"\\/)?"+p:m[g]=i:p===void 0?m[g-1]=w+"(?:\\/|"+i+")?":p!==nr&&(m[g-1]=w+"(?:\\/|\\/"+i+"\\/)"+p,m[g+1]=nr))}),m.filter(v=>v!==nr).join("/")}).join("|");const[l,c]=t.length>1?["(?:",")"]:["",""];s="^"+l+s+c+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...a].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;const i=this.options;this.isWindows&&(t=t.split("\\").join("/"));const a=this.slashSplit(t);this.debug(this.pattern,"split",a);const s=this.set;this.debug(this.pattern,"set",s);let l=a[a.length-1];if(!l)for(let c=a.length-2;!l&&c>=0;c--)l=a[c];for(let c=0;c<s.length;c++){const d=s[c];let m=a;if(i.matchBase&&d.length===1&&(m=[l]),this.matchOne(m,d,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(t){return Et.defaults(t).Minimatch}}Et.AST=Rs;Et.Minimatch=qs;Et.escape=C2;Et.unescape=wo;const Lo="/$shared",oL={"**/saved_conditions.json":{parser:"json",content:{conditions:[]},schema:{type:"object",properties:{conditions:{type:"array",items:{type:"object"}}},required:["conditions"]}},"**/shared_datasources.json":{parser:"json",content:{},schema:{type:"object",additionalProperties:!0,patternProperties:{"^.*$":{type:"array"}}}},"**/shared_css.json":{parser:"json",content:{classes:[]},schema:{type:"object",properties:{classes:{type:"array",items:{type:"object"}}},required:["classes"]}},"**/shared_app_events.json":{parser:"json",content:[]},"**/CustomComponents/manifest.json":{parser:"json",content:[],schema:{type:"array",items:{type:"object"}}},"**/crafted_components.json":{parser:"json",content:[],schema:{type:"array"}},"**/HTTPHandlers.json":{parser:"json",content:[],schema:{type:"array"}},"**/*.json":{parser:"json",content:{}}};function E0(e){const t=Object.entries(oL).find(([r])=>Et(e,r));return t==null?void 0:t[1]}function Zs(e){var i;const t=(i=E0(e))==null?void 0:i.content;if(!t)return;const r=e.replace(`${Lo}/`,"Shared/");Cf({name:r,content:t,asText:typeof t=="string"})}async function aL(){const e=["CustomComponents/manifest.json","shared_app_events.json","shared_css.json","saved_conditions.json"];for(const t of e)try{await Me(`${Lo}/${t}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch(r){_0(r)&&Zs(`${Lo}/${t}`)}}function Ho({path:e,createIfNotExists:t=!1}){const r=`${Lo}/${e}`;return Me(`${r}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})}).then(i=>{const a=E0(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 t2.Validator().validate(s,a.schema).valid)throw new Error("Invalid Schema");return s}).catch(i=>{if(_0(i)&&t){const a=sL(i,e);Hy.next({message:a,kind:"warning"}),Zs(r)}throw i})}function _0(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 sL(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 uL(e){return Me(Uo,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function lL(e){return Me(Uo,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const O0=()=>{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 cL(){const{hostname:e,host:t,protocol:r}=window.location,i=r==="https:";try{const a=await Me(it,{method:"POST",body:JSON.stringify({verb:wn.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),s=(()=>{if(a.rendererPath)return a.rendererPath;const l=`http://${e}:${a.webServerHTTPPort}`,c=`https://${e}:${a.webServerHTTPSPort}`;return a.webServerHTTPPort&&a.webServerHTTPSPort?i?c:l:a.webServerHTTPPort?l:c})();return{projectOpened:a.webServerHTTPSPort>0||a.webServerHTTPPort>0,remoteDebuggerMode:a.remoteDebuggerMode,baseUrl:s,qodly:typeof a.qodly>"u"?!0:a.qodly,urls:{renderer:a.rendererPath||`${s}/$lib/renderer/`,debugger:`ws${i?"s":""}://${t}/remoteDebugger`,lsp:`ws${i?"s":""}://${t}/LSP`},isRestActive:a.isRESTActive}}catch(a){return console.error(a),O0()}}async function A0(e){return await Me(it,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function fL(...e){return(await Promise.all(e.map(i=>A0({root:i,verb:wn.GET_FOLDER})))).map(({children:i})=>i.map(({name:a,date:s,type:l})=>({name:a,type:l,date:s,path:`${l}/${a}`}))).flat()}function dL(e,t={}){const{sanitize:r=!0}=t;return Me(`/rest/$getWebForm/${e}`,{method:"GET"}).then(i=>{if(!(i!=null&&i.components)||!r)return i;const a=new Map;return{...i,components:tt.entries(i.components).map(([s,l])=>{const c=s,{resolvedName:d}=l.type;if(d==="WebformLoader"){const m=Bc.generate();a.set(s,m),s=m}return[s,l,c]}).reduce((s,[l,c,d])=>{var m;return c.nodes&&(c.nodes=c.nodes.map(v=>a.get(v)||v)),c.linkedNodes&&(c.linkedNodes=tt.entries(c.linkedNodes).reduce((v,[g,p])=>({...v,[g]:a.get(p)||p}),{})),(m=c.props)!=null&&m.events&&(c.props.events=c.props.events.map(v=>(v.type==="navigation"&&v.loader&&(v.loader=a.get(v.loader)||v.loader),v))),{...s,[l]:{...c,props:{...c.props,__originalID:d}}}},{})}})}function pL(e){return Me(it,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(t=>({...t,content:[ft.METHOD,ft.CLASS].includes(t.type)?Hs(t.content):t.content}))}function hL(e){return e.type==="folder"?Me(Uo,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):Me(it,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function gL(e){return e.type==="folder"?(await Me(Uo,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await Me(it,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function vL(e){return Me(it,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function mL(e){return Me(it,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function yL(e){return(await Me(it,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function wL(...e){return await Me(it,{method:"POST",body:JSON.stringify({verb:wn.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function bL(e){const t=await Me("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return t.isLogged&&t.success}async function xL(){return await Me("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function SL(e){try{const t=process.env.NODE_ENV==="development"?"/i18n/languages.json":`/$lib/${e?"studio":"renderer"}/i18n/languages.json`,i=await(await fetch(t)).text(),{supported:a}=JSON.parse(i);return a}catch{return[]}}async function EL({name:e,path:t="",root:r="root",asText:i=!1}){return Me(it,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:r,path:t,name:e,asText:i}),headers:new Headers({"Content-Type":"application/json"})})}async function _L(e={}){try{return await Ho({path:"shared_datasources.json",...e})}catch{return{}}}async function OL(e={}){try{return await Ho({path:"shared_app_events.json",...e})}catch{return[]}}async function AL(e={}){try{return await Ho({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function TL(e={}){try{return await Ho({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function RL(){try{return await Me("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function PL(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const CL=Af(),kL=async e=>{const t={verb:wn.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:e};return CL(async()=>(await Me(it,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}),e))},$L=Af(),IL=async e=>{const t={verb:wn.SET_FILE_CONTENT,asText:!1,name:"shared_app_events.json",path:"",root:"shared",content:e};return $L(async()=>(await Me(it,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}),e))},Cf=async e=>{const t=await Me(it,{method:"POST",body:JSON.stringify({...e,verb:wn.SET_FILE_CONTENT,root:Ef.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),r=Of(`${e.path||"Sources"}/${e.name}`);return{...t,type:r,size:0}},LL=async e=>await Cf({name:"crafted_components.json",path:hn.WEBFORMS,content:e});function ML(e){return Me(it,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function FL(e){return Me(it,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function DL(e){return Me(it,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function NL(e){return Me(it,{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)?Hs(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&&Zs(e.path),t})}function jL(e){return Me(it,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function zL(e){const t=new RegExp(/^\((.+)(?=\))/gi).exec(e);return t!==null?t[1]:""}function WL(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 BL(e){const t=zL(e).split(/[;,]/g).filter(Boolean).map(a=>{const s=a.split(":")[0].trim(),l=a.split(":")[1].trim();return{name:s,type:l}}),r=WL(e),i=r?{name:r.split(":")[0].trim(),type:r.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:t,result:i}}async function UL(e,t){const i=e.split(".").pop();try{const a=await Me(it,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:t,functionName:i}),headers:new Headers({"Content-Type":"application/json"})});a.content=Hs(a.content);const{params:s,result:l}=BL(a.parameters);return{...a,params:s,returns:l}}catch(a){return console.error(a),{className:t,functionName:i,filePath:e,content:"",params:[]}}}var T0=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(T0||{});function HL(e,t){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...t}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(r=>{})}function qL(e){window.pagesense=window.pagesense||[],window.pagesense.push(["trackEvent",e])}var R0=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(R0||{}),P0=(e=>(e[e.METHOD=1]="METHOD",e[e.CLASS=10]="CLASS",e))(P0||{}),C0=(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))(C0||{}),k0=(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))(k0||{});const ZL={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},GL={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=it;exports.AppLoader=Hk;exports.ControlledSwitch=fy;exports.DATASOURCE_THEMES=ZL;exports.DatasourcesActions=Uy;exports.DebuggerActions=Gy;exports.DesignerRequestVerb=wn;exports.Dialog=OA;exports.DialogBody=em;exports.EActivity=T0;exports.EDITOR=GL;exports.EIDENTIFIERS=C0;exports.ERROR_CODES=k0;exports.EWebFormStyleClassScope=R0;exports.EXT_API_PREFIX=Uo;exports.FileFolderType=ft;exports.FloatingTooltip=f$;exports.FolderRootPath=hn;exports.FolderRootType=Ef;exports.HTTPError=Cc;exports.HTTP_HANDLERS_TAB_PATH=Yy;exports.IPreemptive=Io;exports.IPublished=s0;exports.IPublishedRestScope=Tf;exports.IdentityProvider=$$;exports.Incase=ss;exports.IndentLines=hm;exports.LOCALIZATION_TAB_PATH=Jy;exports.LogoSVG=Oy;exports.LspActions=Zy;exports.MAX_FILE_NAME_LENGTH=xf;exports.MODEL_TAB_PATH=bI;exports.Modal=Kk;exports.ModalCloseReason=pi;exports.ModalColor=zn;exports.ModalIcons=Sc;exports.ModalType=df;exports.Mutex=Qy;exports.NameError=Sf;exports.Overlay=Qv;exports.PANEL_EXPANDED_HEIGHT=fs;exports.PANEL_INITIAL_HEIGHT=In;exports.Panel=p$;exports.Portal=Wv;exports.PublishOptions=ZI;exports.ROLES_TAB_PATH=Vy;exports.RemoteDebuggerMode=_f;exports.SETTINGS_TAB_PATH=Xy;exports.SHARED_API_PREFIX=Lo;exports.SourceCodeDescriptor=P0;exports.Switcher=gm;exports.TabEventsActions=qy;exports.Tip=Qm;exports.TipsProvider=JP;exports.Toast=$T;exports.Tooltip=Bk;exports.Tree=XT;exports.TreeIcon=cm;exports.TreeNode=Uc;exports.WebformActions=By;exports.WebformEventsActions=$o;exports.ZoomComponent=Yk;exports.ZoomLevel=Ty;exports._isArrayDatasource=WI;exports._isObjectDatasource=BI;exports.addAttributesToContent=KI;exports.addFolder=vL;exports.by=e0;exports.byId=AI;exports.byPath=TI;exports.callServerSideParser=YI;exports.checkUpdates=uL;exports.createFolder=ML;exports.datasourcesSubject=cI;exports.debuggerSubject=hI;exports.dropFile=gL;exports.dropFolder=yL;exports.exists=RI;exports.extractWebformName=EI;exports.generateUUID=VI;exports.getAppSettings=cL;exports.getCatalog=xL;exports.getDatasourceId=PI;exports.getDefaultAppSettings=O0;exports.getFile=pL;exports.getFileContent=EL;exports.getFileExtentionFromType=SI;exports.getFilenameAndTypeFromPath=xI;exports.getFilesInfo=wL;exports.getFolder=A0;exports.getFolders=fL;exports.getFunctionContent=UL;exports.getMonacoTheme=PL;exports.getNodeInfo=NL;exports.getSavedConditions=TL;exports.getSharedAppEvents=OL;exports.getSharedCSS=AL;exports.getSharedDatasources=_L;exports.getSharedResource=Ho;exports.getSupportedLanguages=SL;exports.getTypeFromExtension=Of;exports.getUserPrivileges=RL;exports.getWebForm=dL;exports.hasAttributesString=l0;exports.http=Me;exports.i18nSubject=vI;exports.initializeDefaultProjectFiles=aL;exports.installUpdates=lL;exports.isArrayDatasource=i0;exports.isDataClassMethod=II;exports.isDataStoreMethod=$I;exports.isDateDatasource=UI;exports.isEntity=jI;exports.isEntityDatasource=FI;exports.isEntityMethod=LI;exports.isEntitySelection=zI;exports.isEntitySelectionDatasource=DI;exports.isEntitySelectionMethod=MI;exports.isObjectAttribute=CI;exports.isObjectDatasource=o0;exports.isRelatedAttribute=kI;exports.isRelatedEntitiesAttribute=r0;exports.isRelatedEntityAttribute=n0;exports.isScalarDatasource=a0;exports.isSimpleAttribute=t0;exports.isSimpleDatasource=NI;exports.loadDS=HI;exports.loadI18n=qI;exports.log=HL;exports.login=bL;exports.lspSubject=pI;exports.moveItem=DL;exports.outBy=_I;exports.outById=OI;exports.parseAttributes=GI;exports.queue=Af;exports.removeAttributesString=c0;exports.removeItem=FL;exports.renameFile=hL;exports.renameFolder=mL;exports.sanitizeContent=Hs;exports.saveContent=jL;exports.setCraftedComponents=LL;exports.setFileContent=Cf;exports.setSharedAppEvents=IL;exports.setSharedSources=kL;exports.stringifyAttributes=u0;exports.tabEventsSubject=dI;exports.tasksManagerSubject=gI;exports.toastSubject=Hy;exports.trackEvent=qL;exports.transformDates=XI;exports.tryCreateSharedResource=Zs;exports.useDidMountEffect=h$;exports.useDoubleClick=F$;exports.useEnhancedState=Y$;exports.useFeatureFlags=k$;exports.useForwardedRef=C$;exports.useHotkeys=A$;exports.useIdentity=I$;exports.useOutsideClick=T$;exports.usePrevious=R$;exports.useStateObject=L$;exports.useStateRef=P$;exports.useTip=Jm;exports.validateName=Ky;exports.validateServerSide=mI;exports.validateValue=yI;exports.webformEventsSubject=As;exports.webformSubject=fI;
|
|
208
208
|
//# sourceMappingURL=index.cjs.js.map
|