@ws-ui/shared 0.2.12 → 0.2.13
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.
|
@@ -65,7 +65,7 @@ declare namespace datasources {
|
|
|
65
65
|
additionalData?: any,
|
|
66
66
|
addOwnerSourceAsParam?: boolean,
|
|
67
67
|
callFuncUrl?: string,
|
|
68
|
-
isAGet:true
|
|
68
|
+
isAGet: true,
|
|
69
69
|
): Promise<string>;
|
|
70
70
|
callServerSide(
|
|
71
71
|
widget: {
|
|
@@ -76,7 +76,7 @@ declare namespace datasources {
|
|
|
76
76
|
additionalData?: any,
|
|
77
77
|
addOwnerSourceAsParam?: boolean,
|
|
78
78
|
callFuncUrl?: string,
|
|
79
|
-
isAGet?:false
|
|
79
|
+
isAGet?: false,
|
|
80
80
|
): Promise<{
|
|
81
81
|
[refName: string]: IComponentAction;
|
|
82
82
|
__NOTIFICATION?: { message: string; type: string };
|
package/dist/index.cjs.js
CHANGED
|
@@ -54,7 +54,7 @@ Check the render method of \``+p+"`."}return""}}function Di(p){{if(p!==void 0){v
|
|
|
54
54
|
|
|
55
55
|
Check your code at `+P+":"+F+"."}return""}}var Rr={};function ri(p){{var P=Cr();if(!P){var F=typeof p=="string"?p:p.displayName||p.name;F&&(P=`
|
|
56
56
|
|
|
57
|
-
Check the top-level render call using <`+F+">.")}return P}}function ir(p,P){{if(!p._store||p._store.validated||p.key!=null)return;p._store.validated=!0;var F=ri(P);if(Rr[F])return;Rr[F]=!0;var Y="";p&&p._owner&&p._owner!==yn.current&&(Y=" It was passed a child from "+se(p._owner.type)+"."),bt(p),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',F,Y),bt(null)}}function Pr(p,P){{if(typeof p!="object")return;if(Array.isArray(p))for(var F=0;F<p.length;F++){var Y=p[F];bn(Y)&&ir(Y,P)}else if(bn(p))p._store&&(p._store.validated=!0);else if(p){var oe=U(p);if(typeof oe=="function"&&oe!==p.entries)for(var ae=oe.call(p),te;!(te=ae.next()).done;)bn(te.value)&&ir(te.value,P)}}}function ki(p){{var P=p.type;if(P==null||typeof P=="string")return;var F;if(typeof P=="function")F=P.propTypes;else if(typeof P=="object"&&(P.$$typeof===v||P.$$typeof===O))F=P.propTypes;else return;if(F){var Y=se(P);Sr(F,p.props,"prop",Y,p)}else if(P.PropTypes!==void 0&&!wn){wn=!0;var oe=se(P);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",oe||"Unknown")}typeof P.getDefaultProps=="function"&&!P.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ni(p){{for(var P=Object.keys(p.props),F=0;F<P.length;F++){var Y=P[F];if(Y!=="children"&&Y!=="key"){bt(p),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Y),bt(null);break}}p.ref!==null&&(bt(p),j("Invalid attribute `ref` supplied to `React.Fragment`."),bt(null))}}function Ar(p,P,F,Y,oe,ae){{var te=ge(p);if(!te){var Q="";(p===void 0||typeof p=="object"&&p!==null&&Object.keys(p).length===0)&&(Q+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var je=Di(oe);je?Q+=je:Q+=Cr();var Se;p===null?Se="null":Array.isArray(p)?Se="array":p!==void 0&&p.$$typeof===o?(Se="<"+(se(p.type)||"Unknown")+" />",Q=" Did you accidentally export a JSX literal instead of a component?"):Se=typeof p,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Se,Q)}var Oe=Tr(p,P,F,oe,ae);if(Oe==null)return Oe;if(te){var ot=P.children;if(ot!==void 0)if(Y)if(Array.isArray(ot)){for(var kt=0;kt<ot.length;kt++)Pr(ot[kt],p);Object.freeze&&Object.freeze(ot)}else j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Pr(ot,p)}return p===e.Fragment?Ni(Oe):ki(Oe),Oe}}function ii(p,P,F){return Ar(p,P,F,!0)}function $i(p,P,F){return Ar(p,P,F,!1)}var ji=$i,Fi=ii;e.jsx=ji,e.jsxs=Fi}()}(ap)),ap}process.env.NODE_ENV==="production"?gl.exports=_E():gl.exports=SE();var nt=gl.exports;const EE=e=>nt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:nt.jsx("path",{d:"M8.82 19.748c.001.245.075.486.214.69l.38 1.004c.117.172.573.312.758.41.185.097.391.148.601.148h2.454c.21 0 .417-.05.601-.148.185-.098.621-.238.737-.41l.402-1.003c.138-.205.213-.445.213-.691l.001-1.498H8.82l.002 1.498ZM5 8.875c0 1.733.654 3.314 1.732 4.522.658.737 1.685 2.275 2.077 3.573l.004.03h6.374l.004-.03c.392-1.298 1.42-2.836 2.076-3.573A6.766 6.766 0 0 0 19 8.875C19 5.07 15.854 1.988 11.978 2 7.921 2.012 5 5.241 5 8.875Z",fill:"currentColor"})}),xE=e=>nt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:nt.jsx("path",{d:"M4.497 5.361a.5.5 0 0 0 0 .707L10.429 12l-5.932 5.932a.5.5 0 0 0 0 .707l.864.864a.5.5 0 0 0 .707 0L12 13.571l5.932 5.932a.5.5 0 0 0 .707 0l.864-.864a.5.5 0 0 0 0-.707L13.571 12l5.932-5.932a.5.5 0 0 0 0-.707l-.864-.864a.5.5 0 0 0-.707 0L12 10.429 6.068 4.497a.5.5 0 0 0-.707 0l-.864.864Z",fill:"currentColor"})}),Pu=e=>nt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:nt.jsx("path",{d:"M11.701 18.797c.206.195.52.195.726 0l2.487-2.349-.008-.007 6.973-6.585a.58.58 0 0 0 0-.835l-2.045-1.932a.524.524 0 0 0-.726 0l-7.052 6.66-7.051-6.66a.524.524 0 0 0-.726 0L2.234 9.021a.58.58 0 0 0 0 .835l9.467 8.941Z",fill:"currentColor"})}),yl=e=>nt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:nt.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"
|
|
57
|
+
Check the top-level render call using <`+F+">.")}return P}}function ir(p,P){{if(!p._store||p._store.validated||p.key!=null)return;p._store.validated=!0;var F=ri(P);if(Rr[F])return;Rr[F]=!0;var Y="";p&&p._owner&&p._owner!==yn.current&&(Y=" It was passed a child from "+se(p._owner.type)+"."),bt(p),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',F,Y),bt(null)}}function Pr(p,P){{if(typeof p!="object")return;if(Array.isArray(p))for(var F=0;F<p.length;F++){var Y=p[F];bn(Y)&&ir(Y,P)}else if(bn(p))p._store&&(p._store.validated=!0);else if(p){var oe=U(p);if(typeof oe=="function"&&oe!==p.entries)for(var ae=oe.call(p),te;!(te=ae.next()).done;)bn(te.value)&&ir(te.value,P)}}}function ki(p){{var P=p.type;if(P==null||typeof P=="string")return;var F;if(typeof P=="function")F=P.propTypes;else if(typeof P=="object"&&(P.$$typeof===v||P.$$typeof===O))F=P.propTypes;else return;if(F){var Y=se(P);Sr(F,p.props,"prop",Y,p)}else if(P.PropTypes!==void 0&&!wn){wn=!0;var oe=se(P);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",oe||"Unknown")}typeof P.getDefaultProps=="function"&&!P.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ni(p){{for(var P=Object.keys(p.props),F=0;F<P.length;F++){var Y=P[F];if(Y!=="children"&&Y!=="key"){bt(p),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Y),bt(null);break}}p.ref!==null&&(bt(p),j("Invalid attribute `ref` supplied to `React.Fragment`."),bt(null))}}function Ar(p,P,F,Y,oe,ae){{var te=ge(p);if(!te){var Q="";(p===void 0||typeof p=="object"&&p!==null&&Object.keys(p).length===0)&&(Q+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var je=Di(oe);je?Q+=je:Q+=Cr();var Se;p===null?Se="null":Array.isArray(p)?Se="array":p!==void 0&&p.$$typeof===o?(Se="<"+(se(p.type)||"Unknown")+" />",Q=" Did you accidentally export a JSX literal instead of a component?"):Se=typeof p,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Se,Q)}var Oe=Tr(p,P,F,oe,ae);if(Oe==null)return Oe;if(te){var ot=P.children;if(ot!==void 0)if(Y)if(Array.isArray(ot)){for(var kt=0;kt<ot.length;kt++)Pr(ot[kt],p);Object.freeze&&Object.freeze(ot)}else j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Pr(ot,p)}return p===e.Fragment?Ni(Oe):ki(Oe),Oe}}function ii(p,P,F){return Ar(p,P,F,!0)}function $i(p,P,F){return Ar(p,P,F,!1)}var ji=$i,Fi=ii;e.jsx=ji,e.jsxs=Fi}()}(ap)),ap}process.env.NODE_ENV==="production"?gl.exports=_E():gl.exports=SE();var nt=gl.exports;const EE=e=>nt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:nt.jsx("path",{d:"M8.82 19.748c.001.245.075.486.214.69l.38 1.004c.117.172.573.312.758.41.185.097.391.148.601.148h2.454c.21 0 .417-.05.601-.148.185-.098.621-.238.737-.41l.402-1.003c.138-.205.213-.445.213-.691l.001-1.498H8.82l.002 1.498ZM5 8.875c0 1.733.654 3.314 1.732 4.522.658.737 1.685 2.275 2.077 3.573l.004.03h6.374l.004-.03c.392-1.298 1.42-2.836 2.076-3.573A6.766 6.766 0 0 0 19 8.875C19 5.07 15.854 1.988 11.978 2 7.921 2.012 5 5.241 5 8.875Z",fill:"currentColor"})}),xE=e=>nt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:nt.jsx("path",{d:"M4.497 5.361a.5.5 0 0 0 0 .707L10.429 12l-5.932 5.932a.5.5 0 0 0 0 .707l.864.864a.5.5 0 0 0 .707 0L12 13.571l5.932 5.932a.5.5 0 0 0 .707 0l.864-.864a.5.5 0 0 0 0-.707L13.571 12l5.932-5.932a.5.5 0 0 0 0-.707l-.864-.864a.5.5 0 0 0-.707 0L12 10.429 6.068 4.497a.5.5 0 0 0-.707 0l-.864.864Z",fill:"currentColor"})}),Pu=e=>nt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:nt.jsx("path",{d:"M11.701 18.797c.206.195.52.195.726 0l2.487-2.349-.008-.007 6.973-6.585a.58.58 0 0 0 0-.835l-2.045-1.932a.524.524 0 0 0-.726 0l-7.052 6.66-7.051-6.66a.524.524 0 0 0-.726 0L2.234 9.021a.58.58 0 0 0 0 .835l9.467 8.941Z",fill:"currentColor"})}),yl=e=>nt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:nt.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 21c5.523 0 10-4.477 10-10S16.523 1 11 1 1 5.477 1 11s4.477 10 10 10Zm0-14a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm1 1.5a.5.5 0 0 0-.5-.5h-2a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h.5v4h-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5H12V8.5Z",fill:"currentColor"})}),OE=e=>nt.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[nt.jsx("path",{d:"M13 17.5a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-8a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v8ZM12 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z",fill:"currentColor"}),nt.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z",fill:"currentColor"})]}),kh=e=>nt.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[nt.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.7 6.7v13.6h13.6v-8.925c0-.235.19-.425.425-.425h.85c.235 0 .425.19.425.425v9.775c0 .47-.38.85-.85.85H2.85a.85.85 0 0 1-.85-.85V5.85c0-.47.38-.85.85-.85h9.775c.235 0 .425.19.425.425v.85c0 .235-.19.425-.425.425H3.7Z",fill:"currentColor"}),nt.jsx("path",{d:"M21.435 2.01a.468.468 0 0 1 .554.555L20.42 9.757a.454.454 0 0 1-.77.215l-1.555-1.555-3.453 3.453a.444.444 0 0 1-.628 0L12.13 9.986a.444.444 0 0 1 0-.628l3.453-3.453-1.555-1.555a.454.454 0 0 1 .215-.77l7.192-1.57Z",fill:"currentColor"})]}),TE=e=>nt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:nt.jsx("path",{d:"M18.797 12.299a.524.524 0 0 0 0-.726l-2.349-2.487-.007.008L9.856 2.12a.58.58 0 0 0-.835 0L7.089 4.166a.524.524 0 0 0 0 .726l6.66 7.051-6.66 7.053a.524.524 0 0 0 0 .725l1.932 2.045a.58.58 0 0 0 .835 0l8.941-9.467Z",fill:"currentColor"})}),CE=e=>nt.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[nt.jsx("path",{d:"M10 18h4V5h-4v13Z",fill:"currentColor"}),nt.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10Zm1-15.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v7a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-7ZM11 17a1 1 0 1 0 2 0 1 1 0 0 0-2 0Z",fill:"currentColor"})]}),RE=e=>nt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:nt.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.076 2.203a.5.5 0 0 0-.354-.146H3.001a1 1 0 0 0-1 1v18a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1V8.335a.5.5 0 0 0-.147-.354l-5.778-5.778ZM12 19.057a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm-8-14.5a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-4Z",fill:"currentColor"})}),Kl=e=>nt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:nt.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.953 3.53c-.393-.707-1.513-.707-1.906 0L2.114 19.612c-.354.638.16 1.388.953 1.388h17.866c.792 0 1.307-.75.953-1.388L12.953 3.53ZM11.508 8a.504.504 0 0 0-.507.531l.491 8A.505.505 0 0 0 12 17c.269 0 .49-.205.508-.469l.492-8A.504.504 0 0 0 12.492 8h-.984ZM12 20c.561 0 1.016-.448 1.016-1s-.455-1-1.016-1c-.561 0-1.016.448-1.016 1s.455 1 1.016 1Z",fill:"currentColor"})});var Nh={exports:{}};/*!
|
|
58
58
|
Copyright (c) 2018 Jed Watson.
|
|
59
59
|
Licensed under the MIT License (MIT), see
|
|
60
60
|
http://jedwatson.github.io/classnames
|
|
@@ -123,7 +123,7 @@ You may have forgotten to import it.`);var o=r.__emotion_real===r,a=o&&r.__emoti
|
|
|
123
123
|
`)},sT=function(e){var r=e.noRelative,n=e.noImportant,o=e.gapMode,a=o===void 0?"margin":o,u=L.useMemo(function(){return iT(a)},[a]);return L.createElement(oT,{styles:aT(u,!r,a,n?"":"!important")})},El=!1;if(typeof window<"u")try{var xa=Object.defineProperty({},"passive",{get:function(){return El=!0,!0}});window.addEventListener("test",xa,xa),window.removeEventListener("test",xa,xa)}catch{El=!1}var Ei=El?{passive:!1}:!1,uT=function(e){return e.tagName==="TEXTAREA"},bv=function(e,r){var n=window.getComputedStyle(e);return n[r]!=="hidden"&&!(n.overflowY===n.overflowX&&!uT(e)&&n[r]==="visible")},lT=function(e){return bv(e,"overflowY")},cT=function(e){return bv(e,"overflowX")},Tp=function(e,r){var n=r.ownerDocument,o=r;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var a=_v(e,o);if(a){var u=Sv(e,o),l=u[1],f=u[2];if(l>f)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},fT=function(e){var r=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[r,n,o]},dT=function(e){var r=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[r,n,o]},_v=function(e,r){return e==="v"?lT(r):cT(r)},Sv=function(e,r){return e==="v"?fT(r):dT(r)},pT=function(e,r){return e==="h"&&r==="rtl"?-1:1},hT=function(e,r,n,o,a){var u=pT(e,window.getComputedStyle(r).direction),l=u*o,f=n.target,d=r.contains(f),v=!1,g=l>0,_=0,O=0;do{var m=Sv(e,f),S=m[0],y=m[1],E=m[2],D=y-E-u*S;(S||D)&&_v(e,f)&&(_+=D,O+=S),f instanceof ShadowRoot?f=f.host:f=f.parentNode}while(!d&&f!==document.body||d&&(r.contains(f)||r===f));return(g&&(a&&Math.abs(_)<1||!a&&l>_)||!g&&(a&&Math.abs(O)<1||!a&&-l>O))&&(v=!0),v},Oa=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Cp=function(e){return[e.deltaX,e.deltaY]},Rp=function(e){return e&&"current"in e?e.current:e},vT=function(e,r){return e[0]===r[0]&&e[1]===r[1]},mT=function(e){return`
|
|
124
124
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
125
125
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
126
|
-
`)},gT=0,xi=[];function yT(e){var r=L.useRef([]),n=L.useRef([0,0]),o=L.useRef(),a=L.useState(gT++)[0],u=L.useState(wv)[0],l=L.useRef(e);L.useEffect(function(){l.current=e},[e]),L.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var y=fo([e.lockRef.current],(e.shards||[]).map(Rp),!0).filter(Boolean);return y.forEach(function(E){return E.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),y.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var f=L.useCallback(function(y,E){if("touches"in y&&y.touches.length===2)return!l.current.allowPinchZoom;var D=Oa(y),I=n.current,C="deltaX"in y?y.deltaX:I[0]-D[0],k="deltaY"in y?y.deltaY:I[1]-D[1],T,U=y.target,H=Math.abs(C)>Math.abs(k)?"h":"v";if("touches"in y&&H==="h"&&U.type==="range")return!1;var j=Tp(H,U);if(!j)return!0;if(j?T=H:(T=H==="v"?"h":"v",j=Tp(H,U)),!j)return!1;if(!o.current&&"changedTouches"in y&&(C||k)&&(o.current=T),!T)return!0;var J=o.current||T;return hT(J,E,y,J==="h"?C:k,!0)},[]),d=L.useCallback(function(y){var E=y;if(!(!xi.length||xi[xi.length-1]!==u)){var D="deltaY"in E?Cp(E):Oa(E),I=r.current.filter(function(T){return T.name===E.type&&(T.target===E.target||E.target===T.shadowParent)&&vT(T.delta,D)})[0];if(I&&I.should){E.cancelable&&E.preventDefault();return}if(!I){var C=(l.current.shards||[]).map(Rp).filter(Boolean).filter(function(T){return T.contains(E.target)}),k=C.length>0?f(E,C[0]):!l.current.noIsolation;k&&E.cancelable&&E.preventDefault()}}},[]),v=L.useCallback(function(y,E,D,I){var C={name:y,delta:E,target:D,should:I,shadowParent:wT(D)};r.current.push(C),setTimeout(function(){r.current=r.current.filter(function(k){return k!==C})},1)},[]),g=L.useCallback(function(y){n.current=Oa(y),o.current=void 0},[]),_=L.useCallback(function(y){v(y.type,Cp(y),y.target,f(y,e.lockRef.current))},[]),O=L.useCallback(function(y){v(y.type,Oa(y),y.target,f(y,e.lockRef.current))},[]);L.useEffect(function(){return xi.push(u),e.setCallbacks({onScrollCapture:_,onWheelCapture:_,onTouchMoveCapture:O}),document.addEventListener("wheel",d,Ei),document.addEventListener("touchmove",d,Ei),document.addEventListener("touchstart",g,Ei),function(){xi=xi.filter(function(y){return y!==u}),document.removeEventListener("wheel",d,Ei),document.removeEventListener("touchmove",d,Ei),document.removeEventListener("touchstart",g,Ei)}},[]);var m=e.removeScrollBar,S=e.inert;return L.createElement(L.Fragment,null,S?L.createElement(u,{styles:mT(a)}):null,m?L.createElement(sT,{gapMode:e.gapMode}):null)}function wT(e){for(var r=null;e!==null;)e instanceof ShadowRoot&&(r=e.host,e=e.host),e=e.parentNode;return r}const bT=XO(yv,yT);var Ev=L.forwardRef(function(e,r){return L.createElement(os,Dn({},e,{ref:r,sideCar:bT}))});Ev.classNames=os.classNames;const _T=Ev,po=globalThis!=null&&globalThis.document?L.useLayoutEffect:()=>{},ST=L["useId".toString()]||(()=>{});let ET=0;function xT(e){const[r,n]=L.useState(ST());return po(()=>{e||n(o=>o??String(ET++))},[e]),e||(r?`radix-${r}`:"")}function xv(...e){return r=>e.forEach(n=>function(o,a){typeof o=="function"?o(a):o!=null&&(o.current=a)}(n,r))}function Zr(...e){return L.useCallback(xv(...e),e)}const Ov=L.forwardRef((e,r)=>{const{children:n,...o}=e;return L.Children.toArray(n).some(Pp)?L.createElement(L.Fragment,null,L.Children.map(n,a=>Pp(a)?L.createElement(xl,wt({},o,{ref:r}),a.props.children):a)):L.createElement(xl,wt({},o,{ref:r}),n)});Ov.displayName="Slot";const xl=L.forwardRef((e,r)=>{const{children:n,...o}=e;return L.isValidElement(n)?L.cloneElement(n,{...TT(o,n.props),ref:xv(r,n.ref)}):L.Children.count(n)>1?L.Children.only(null):null});xl.displayName="SlotClone";const OT=({children:e})=>L.createElement(L.Fragment,null,e);function Pp(e){return L.isValidElement(e)&&e.type===OT}function TT(e,r){const n={...r};for(const o in r){const a=e[o],u=r[o];/^on[A-Z]/.test(o)?n[o]=(...l)=>{u==null||u(...l),a==null||a(...l)}:o==="style"?n[o]={...a,...u}:o==="className"&&(n[o]=[a,u].filter(Boolean).join(" "))}return{...e,...n}}const Li=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,r)=>({...e,[r]:L.forwardRef((n,o)=>{const{asChild:a,...u}=n,l=a?Ov:r;return L.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),L.createElement(l,wt({},u,{ref:o}))})}),{}),Tv=e=>{const{present:r,children:n}=e,o=function(l){const[f,d]=L.useState(),v=L.useRef({}),g=L.useRef(l),_=L.useRef("none"),O=l?"mounted":"unmounted",[m,S]=function(y,E){return L.useReducer((D,I)=>{const C=E[D][I];return C??D},y)}(O,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return L.useEffect(()=>{const y=Ta(v.current);_.current=m==="mounted"?y:"none"},[m]),po(()=>{const y=v.current,E=g.current;if(E!==l){const D=_.current,I=Ta(y);l?S("MOUNT"):I==="none"||(y==null?void 0:y.display)==="none"?S("UNMOUNT"):S(E&&D!==I?"ANIMATION_OUT":"UNMOUNT"),g.current=l}},[l,S]),po(()=>{if(f){const y=D=>{const I=Ta(v.current).includes(D.animationName);D.target===f&&I&&S("ANIMATION_END")},E=D=>{D.target===f&&(_.current=Ta(v.current))};return f.addEventListener("animationstart",E),f.addEventListener("animationcancel",y),f.addEventListener("animationend",y),()=>{f.removeEventListener("animationstart",E),f.removeEventListener("animationcancel",y),f.removeEventListener("animationend",y)}}S("ANIMATION_END")},[f,S]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:L.useCallback(y=>{y&&(v.current=getComputedStyle(y)),d(y)},[])}}(r),a=typeof n=="function"?n({present:o.isPresent}):L.Children.only(n),u=Zr(o.ref,a.ref);return typeof n=="function"||o.isPresent?L.cloneElement(a,{ref:u}):null};function Ta(e){return(e==null?void 0:e.animationName)||"none"}Tv.displayName="Presence";let Gu=0;function CT(){L.useEffect(()=>{var e,r;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Ap()),document.body.insertAdjacentElement("beforeend",(r=n[1])!==null&&r!==void 0?r:Ap()),Gu++,()=>{Gu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),Gu--}},[])}function Ap(){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 Cv=L.forwardRef((e,r)=>{var n,o;const{containerRef:a,style:u,...l}=e,f=(n=a==null?void 0:a.current)!==null&&n!==void 0?n:globalThis==null||(o=globalThis.document)===null||o===void 0?void 0:o.body,[,d]=L.useState({});return po(()=>{d({})},[]),f?go.createPortal(L.createElement(Li.div,wt({"data-radix-portal":""},l,{ref:r,style:f===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...u}:void 0})),f):null});function Jr(e){const r=L.useRef(e);return L.useEffect(()=>{r.current=e}),L.useMemo(()=>(...n)=>{var o;return(o=r.current)===null||o===void 0?void 0:o.call(r,...n)},[])}const Ip={bubbles:!1,cancelable:!0},RT=L.forwardRef((e,r)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:a,onUnmountAutoFocus:u,...l}=e,[f,d]=L.useState(null),v=Jr(a),g=Jr(u),_=L.useRef(null),O=Zr(r,y=>d(y)),m=L.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;L.useEffect(()=>{if(o){let y=function(D){if(m.paused||!f)return;const I=D.target;f.contains(I)?_.current=I:Ur(_.current,{select:!0})},E=function(D){!m.paused&&f&&(f.contains(D.relatedTarget)||Ur(_.current,{select:!0}))};return document.addEventListener("focusin",y),document.addEventListener("focusout",E),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",E)}}},[o,f,m.paused]),L.useEffect(()=>{if(f){Dp.add(m);const E=document.activeElement;if(!f.contains(E)){const D=new Event("focusScope.autoFocusOnMount",Ip);f.addEventListener("focusScope.autoFocusOnMount",v),f.dispatchEvent(D),D.defaultPrevented||(function(I,{select:C=!1}={}){const k=document.activeElement;for(const T of I)if(Ur(T,{select:C}),document.activeElement!==k)return}((y=Lp(f),y.filter(I=>I.tagName!=="A")),{select:!0}),document.activeElement===E&&Ur(f))}return()=>{f.removeEventListener("focusScope.autoFocusOnMount",v),setTimeout(()=>{const D=new Event("focusScope.autoFocusOnUnmount",Ip);f.addEventListener("focusScope.autoFocusOnUnmount",g),f.dispatchEvent(D),D.defaultPrevented||Ur(E??document.body,{select:!0}),f.removeEventListener("focusScope.autoFocusOnUnmount",g),Dp.remove(m)},0)}}var y},[f,v,g,m]);const S=L.useCallback(y=>{if(!n&&!o||m.paused)return;const E=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,D=document.activeElement;if(E&&D){const I=y.currentTarget,[C,k]=function(T){const U=Lp(T),H=Mp(U,T),j=Mp(U.reverse(),T);return[H,j]}(I);C&&k?y.shiftKey||D!==k?y.shiftKey&&D===C&&(y.preventDefault(),n&&Ur(k,{select:!0})):(y.preventDefault(),n&&Ur(C,{select:!0})):D===I&&y.preventDefault()}},[n,o,m.paused]);return L.createElement(Li.div,wt({tabIndex:-1},l,{ref:O,onKeyDown:S}))});function Lp(e){const r=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const a=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||a?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)r.push(n.currentNode);return r}function Mp(e,r){for(const n of e)if(!PT(n,{upTo:r}))return n}function PT(e,{upTo:r}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(r!==void 0&&e===r)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Ur(e,{select:r=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(o){return o instanceof HTMLInputElement&&"select"in o}(e)&&r&&e.select()}}const Dp=function(){let e=[];return{add(r){const n=e[0];r!==n&&(n==null||n.pause()),e=kp(e,r),e.unshift(r)},remove(r){var n;e=kp(e,r),(n=e[0])===null||n===void 0||n.resume()}}}();function kp(e,r){const n=[...e],o=n.indexOf(r);return o!==-1&&n.splice(o,1),n}function AT(e){const r=Jr(e);L.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[r])}let Np,Ca=0;function IT({disabled:e}){const r=L.useRef(!1);po(()=>{if(e){let n=function(){Ca--,Ca===0&&(document.body.style.pointerEvents=Np)},o=function(a){r.current=a.pointerType!=="mouse"};return Ca===0&&(Np=document.body.style.pointerEvents),document.body.style.pointerEvents="none",Ca++,document.addEventListener("pointerup",o),()=>{r.current?document.addEventListener("click",n,{once:!0}):n(),document.removeEventListener("pointerup",o)}}},[e])}function Yr(e,r,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return r==null?void 0:r(o)}}const LT=L.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),MT=L.forwardRef((e,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:u,onInteractOutside:l,onDismiss:f,...d}=e,v=L.useContext(LT),[g,_]=L.useState(null),[,O]=L.useState({}),m=Zr(r,U=>_(U)),S=Array.from(v.layers),[y]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),E=S.indexOf(y),D=g?S.indexOf(g):-1,I=v.layersWithOutsidePointerEventsDisabled.size>0,C=D>=E,k=function(U){const H=Jr(U),j=L.useRef(!1);return L.useEffect(()=>{const J=ge=>{ge.target&&!j.current&&jp("dismissableLayer.pointerDownOutside",H,{originalEvent:ge}),j.current=!1},ee=window.setTimeout(()=>{document.addEventListener("pointerdown",J)},0);return()=>{window.clearTimeout(ee),document.removeEventListener("pointerdown",J)}},[H]),{onPointerDownCapture:()=>j.current=!0}}(U=>{const H=U.target,j=[...v.branches].some(J=>J.contains(H));C&&!j&&(a==null||a(U),l==null||l(U),U.defaultPrevented||f==null||f())}),T=function(U){const H=Jr(U),j=L.useRef(!1);return L.useEffect(()=>{const J=ee=>{ee.target&&!j.current&&jp("dismissableLayer.focusOutside",H,{originalEvent:ee})};return document.addEventListener("focusin",J),()=>document.removeEventListener("focusin",J)},[H]),{onFocusCapture:()=>j.current=!0,onBlurCapture:()=>j.current=!1}}(U=>{const H=U.target;[...v.branches].some(j=>j.contains(H))||(u==null||u(U),l==null||l(U),U.defaultPrevented||f==null||f())});return AT(U=>{D===v.layers.size-1&&(o==null||o(U),U.defaultPrevented||f==null||f())}),IT({disabled:n}),L.useEffect(()=>{g&&(n&&v.layersWithOutsidePointerEventsDisabled.add(g),v.layers.add(g),$p())},[g,n,v]),L.useEffect(()=>()=>{g&&(v.layers.delete(g),v.layersWithOutsidePointerEventsDisabled.delete(g),$p())},[g,v]),L.useEffect(()=>{const U=()=>O({});return document.addEventListener("dismissableLayer.update",U),()=>document.removeEventListener("dismissableLayer.update",U)},[]),L.createElement(Li.div,wt({},d,{ref:m,style:{pointerEvents:I?C?"auto":"none":void 0,...e.style},onFocusCapture:Yr(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Yr(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Yr(e.onPointerDownCapture,k.onPointerDownCapture)}))});function $p(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function jp(e,r,n){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});return r&&o.addEventListener(e,r,{once:!0}),!o.dispatchEvent(a)}function Fp(e){const[r,n]=L.useState(void 0);return L.useEffect(()=>{if(e){const o=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const u=a[0];let l,f;if("borderBoxSize"in u){const d=u.borderBoxSize,v=Array.isArray(d)?d[0]:d;l=v.inlineSize,f=v.blockSize}else{const d=e.getBoundingClientRect();l=d.width,f=d.height}n({width:l,height:f})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}n(void 0)},[e]),r}function DT(e,r){const n=Br.get(e);return n===void 0?(Br.set(e,{rect:{},callbacks:[r]}),Br.size===1&&(Ol=requestAnimationFrame(Rv))):(n.callbacks.push(r),r(e.getBoundingClientRect())),()=>{const o=Br.get(e);if(o===void 0)return;const a=o.callbacks.indexOf(r);a>-1&&o.callbacks.splice(a,1),o.callbacks.length===0&&(Br.delete(e),Br.size===0&&cancelAnimationFrame(Ol))}}let Ol;const Br=new Map;function Rv(){const e=[];Br.forEach((r,n)=>{const o=n.getBoundingClientRect();var a,u;a=r.rect,u=o,(a.width!==u.width||a.height!==u.height||a.top!==u.top||a.right!==u.right||a.bottom!==u.bottom||a.left!==u.left)&&(r.rect=o,e.push(r))}),e.forEach(r=>{r.callbacks.forEach(n=>n(r.rect))}),Ol=requestAnimationFrame(Rv)}function kT(e){const[r,n]=L.useState();return L.useEffect(()=>{if(e){const o=DT(e,n);return()=>{n(void 0),o()}}},[e]),r}function Pv(e,r=[]){let n=[];const o=()=>{const a=n.map(u=>L.createContext(u));return function(u){const l=(u==null?void 0:u[e])||a;return L.useMemo(()=>({[`__scope${e}`]:{...u,[e]:l}}),[u,l])}};return o.scopeName=e,[function(a,u){const l=L.createContext(u),f=n.length;function d(v){const{scope:g,children:_,...O}=v,m=(g==null?void 0:g[e][f])||l,S=L.useMemo(()=>O,Object.values(O));return L.createElement(m.Provider,{value:S},_)}return n=[...n,u],d.displayName=a+"Provider",[d,function(v,g){const _=(g==null?void 0:g[e][f])||l,O=L.useContext(_);if(O)return O;if(u!==void 0)return u;throw new Error(`\`${v}\` must be used within \`${a}\``)}]},NT(o,...r)]}function NT(...e){const r=e[0];if(e.length===1)return r;const n=()=>{const o=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(a){const u=o.reduce((l,{useScope:f,scopeName:d})=>({...l,...f(a)[`__scope${d}`]}),{});return L.useMemo(()=>({[`__scope${r.scopeName}`]:u}),[u])}};return n.scopeName=r.scopeName,n}function $T({anchorRect:e,popperSize:r,arrowSize:n,arrowOffset:o=0,side:a,sideOffset:u=0,align:l,alignOffset:f=0,shouldAvoidCollisions:d=!0,collisionBoundariesRect:v,collisionTolerance:g=0}){if(!e||!r||!v)return{popperStyles:jT,arrowStyles:Ku};const _=function(H,j,J=0,ee=0,ge){const Ce=ge?ge.height:0,_e=Wp(j,H,"x"),se=Wp(j,H,"y"),Le=se.before-J-Ce,we=se.after+J+Ce,xe=_e.before-J-Ce,We=_e.after+J+Ce;return{top:{start:{x:_e.start+ee,y:Le},center:{x:_e.center,y:Le},end:{x:_e.end-ee,y:Le}},right:{start:{x:We,y:se.start+ee},center:{x:We,y:se.center},end:{x:We,y:se.end-ee}},bottom:{start:{x:_e.start+ee,y:we},center:{x:_e.center,y:we},end:{x:_e.end-ee,y:we}},left:{start:{x:xe,y:se.start+ee},center:{x:xe,y:se.center},end:{x:xe,y:se.end-ee}}}}(r,e,u,f,n),O=_[a][l];if(d===!1){const H=Up(O);let j=Ku;return n&&(j=Bp({popperSize:r,arrowSize:n,arrowOffset:o,side:a,align:l})),{popperStyles:{...H,"--radix-popper-transform-origin":Hp(r,a,l,o,n)},arrowStyles:j,placedSide:a,placedAlign:l}}const m=DOMRect.fromRect({...r,...O}),S=(y=v,E=g,DOMRect.fromRect({width:y.width-2*E,height:y.height-2*E,x:y.left+E,y:y.top+E}));var y,E;const D=qp(m,S),I=_[zp(a)][l],C=function(H,j,J){const ee=zp(H);return j[H]&&!J[ee]?ee:H}(a,D,qp(DOMRect.fromRect({...r,...I}),S)),k=function(H,j,J,ee,ge){const Ce=J==="top"||J==="bottom",_e=Ce?"left":"top",se=Ce?"right":"bottom",Le=Ce?"width":"height",we=j[Le]>H[Le];return(ee==="start"||ee==="center")&&(ge[_e]&&we||ge[se]&&!we)?"end":(ee==="end"||ee==="center")&&(ge[se]&&we||ge[_e]&&!we)?"start":ee}(r,e,a,l,D),T=Up(_[C][k]);let U=Ku;return n&&(U=Bp({popperSize:r,arrowSize:n,arrowOffset:o,side:C,align:k})),{popperStyles:{...T,"--radix-popper-transform-origin":Hp(r,C,k,o,n)},arrowStyles:U,placedSide:C,placedAlign:k}}function Wp(e,r,n){const o=e[n==="x"?"left":"top"],a=n==="x"?"width":"height",u=e[a],l=r[a];return{before:o-l,start:o,center:o+(u-l)/2,end:o+u-l,after:o+u}}function Up(e){return{position:"absolute",top:0,left:0,minWidth:"max-content",willChange:"transform",transform:`translate3d(${Math.round(e.x+window.scrollX)}px, ${Math.round(e.y+window.scrollY)}px, 0)`}}function Hp(e,r,n,o,a){const u=r==="top"||r==="bottom",l=a?a.width:0,f=a?a.height:0,d=l/2+o;let v="",g="";return u?(v={start:`${d}px`,center:"center",end:e.width-d+"px"}[n],g=r==="top"?`${e.height+f}px`:-f+"px"):(v=r==="left"?`${e.width+f}px`:-f+"px",g={start:`${d}px`,center:"center",end:e.height-d+"px"}[n]),`${v} ${g}`}const jT={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},Ku={position:"absolute",opacity:0};function Bp({popperSize:e,arrowSize:r,arrowOffset:n,side:o,align:a}){const u=(e.width-r.width)/2,l=(e.height-r.width)/2,f={top:0,right:90,bottom:180,left:-90}[o],d=Math.max(r.width,r.height),v={width:`${d}px`,height:`${d}px`,transform:`rotate(${f}deg)`,willChange:"transform",position:"absolute",[o]:"100%",direction:FT(o,a)};return o!=="top"&&o!=="bottom"||(a==="start"&&(v.left=`${n}px`),a==="center"&&(v.left=`${u}px`),a==="end"&&(v.right=`${n}px`)),o!=="left"&&o!=="right"||(a==="start"&&(v.top=`${n}px`),a==="center"&&(v.top=`${l}px`),a==="end"&&(v.bottom=`${n}px`)),v}function FT(e,r){return(e!=="top"&&e!=="right"||r!=="end")&&(e!=="bottom"&&e!=="left"||r==="end")?"ltr":"rtl"}function zp(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function qp(e,r){return{top:e.top<r.top,right:e.right>r.right,bottom:e.bottom>r.bottom,left:e.left<r.left}}const[Av,Iv]=Pv("Popper"),[WT,Lv]=Av("Popper"),UT=e=>{const{__scopePopper:r,children:n}=e,[o,a]=L.useState(null);return L.createElement(WT,{scope:r,anchor:o,onAnchorChange:a},n)},HT=L.forwardRef((e,r)=>{const{__scopePopper:n,virtualRef:o,...a}=e,u=Lv("PopperAnchor",n),l=L.useRef(null),f=Zr(r,l);return L.useEffect(()=>{u.onAnchorChange((o==null?void 0:o.current)||l.current)}),o?null:L.createElement(Li.div,wt({},a,{ref:f}))}),[BT,f2]=Av("PopperContent"),zT=L.forwardRef((e,r)=>{const{__scopePopper:n,side:o="bottom",sideOffset:a,align:u="center",alignOffset:l,collisionTolerance:f,avoidCollisions:d=!0,...v}=e,g=Lv("PopperContent",n),[_,O]=L.useState(),m=kT(g.anchor),[S,y]=L.useState(null),E=Fp(S),[D,I]=L.useState(null),C=Fp(D),k=Zr(r,Ce=>y(Ce)),T=function(){const[Ce,_e]=L.useState(void 0);return L.useEffect(()=>{let se;function Le(){_e({width:window.innerWidth,height:window.innerHeight})}function we(){window.clearTimeout(se),se=window.setTimeout(Le,100)}return Le(),window.addEventListener("resize",we),()=>window.removeEventListener("resize",we)},[]),Ce}(),U=T?DOMRect.fromRect({...T,x:0,y:0}):void 0,{popperStyles:H,arrowStyles:j,placedSide:J,placedAlign:ee}=$T({anchorRect:m,popperSize:E,arrowSize:C,arrowOffset:_,side:o,sideOffset:a,align:u,alignOffset:l,shouldAvoidCollisions:d,collisionBoundariesRect:U,collisionTolerance:f}),ge=J!==void 0;return L.createElement("div",{style:H,"data-radix-popper-content-wrapper":""},L.createElement(BT,{scope:n,arrowStyles:j,onArrowChange:I,onArrowOffsetChange:O},L.createElement(Li.div,wt({"data-side":J,"data-align":ee},v,{style:{...v.style,animation:ge?void 0:"none"},ref:k}))))}),qT=UT,GT=HT,KT=zT;function YT({prop:e,defaultProp:r,onChange:n=()=>{}}){const[o,a]=function({defaultProp:d,onChange:v}){const g=L.useState(d),[_]=g,O=L.useRef(_),m=Jr(v);return L.useEffect(()=>{O.current!==_&&(m(_),O.current=_)},[_,O,m]),g}({defaultProp:r,onChange:n}),u=e!==void 0,l=u?e:o,f=Jr(n);return[l,L.useCallback(d=>{if(u){const v=d,g=typeof d=="function"?v(e):d;g!==e&&f(g)}else a(d)},[u,e,a,f])]}const[XT,d2]=Pv("Popover",[Iv]),ec=Iv(),[VT,_o]=XT("Popover"),JT=e=>{const{__scopePopover:r,children:n,open:o,defaultOpen:a,onOpenChange:u,modal:l=!1}=e,f=ec(r),d=L.useRef(null),[v,g]=L.useState(!1),[_=!1,O]=YT({prop:o,defaultProp:a,onChange:u});return L.createElement(qT,f,L.createElement(VT,{scope:r,contentId:xT(),triggerRef:d,open:_,onOpenChange:O,onOpenToggle:L.useCallback(()=>O(m=>!m),[O]),hasCustomAnchor:v,onCustomAnchorAdd:L.useCallback(()=>g(!0),[]),onCustomAnchorRemove:L.useCallback(()=>g(!1),[]),modal:l},n))},ZT=L.forwardRef((e,r)=>{const{__scopePopover:n,...o}=e,a=_o("PopoverTrigger",n),u=ec(n),l=Zr(r,a.triggerRef),f=L.createElement(Li.button,wt({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Dv(a.open)},o,{ref:l,onClick:Yr(e.onClick,a.onOpenToggle)}));return a.hasCustomAnchor?f:L.createElement(GT,wt({asChild:!0},u),f)}),QT=L.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=_o("PopoverContent",e.__scopePopover);return L.createElement(Tv,{present:n||a.open},a.modal?L.createElement(eC,wt({},o,{ref:r})):L.createElement(tC,wt({},o,{ref:r})))}),eC=L.forwardRef((e,r)=>{const{allowPinchZoom:n,portalled:o=!0,...a}=e,u=_o("PopoverContent",e.__scopePopover),l=L.useRef(null),f=Zr(r,l),d=L.useRef(!1);L.useEffect(()=>{const g=l.current;if(g)return WO(g)},[]);const v=o?Cv:L.Fragment;return L.createElement(v,null,L.createElement(_T,{allowPinchZoom:n},L.createElement(Mv,wt({},a,{ref:f,trapFocus:u.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Yr(e.onCloseAutoFocus,g=>{var _;g.preventDefault(),d.current||(_=u.triggerRef.current)===null||_===void 0||_.focus()}),onPointerDownOutside:Yr(e.onPointerDownOutside,g=>{const _=g.detail.originalEvent,O=_.button===0&&_.ctrlKey===!0,m=_.button===2||O;d.current=m},{checkForDefaultPrevented:!1}),onFocusOutside:Yr(e.onFocusOutside,g=>g.preventDefault(),{checkForDefaultPrevented:!1})}))))}),tC=L.forwardRef((e,r)=>{const{portalled:n=!0,...o}=e,a=_o("PopoverContent",e.__scopePopover),u=L.useRef(!1),l=n?Cv:L.Fragment;return L.createElement(l,null,L.createElement(Mv,wt({},o,{ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{var d,v;(d=e.onCloseAutoFocus)===null||d===void 0||d.call(e,f),f.defaultPrevented||(u.current||(v=a.triggerRef.current)===null||v===void 0||v.focus(),f.preventDefault()),u.current=!1},onInteractOutside:f=>{var d,v;(d=e.onInteractOutside)===null||d===void 0||d.call(e,f),f.defaultPrevented||(u.current=!0);const g=f.target;!((v=a.triggerRef.current)===null||v===void 0)&&v.contains(g)&&f.preventDefault()}})))}),Mv=L.forwardRef((e,r)=>{const{__scopePopover:n,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:u,disableOutsidePointerEvents:l,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:v,onInteractOutside:g,..._}=e,O=_o("PopoverContent",n),m=ec(n);return CT(),L.createElement(RT,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:u},L.createElement(MT,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:g,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:v,onDismiss:()=>O.onOpenChange(!1)},L.createElement(KT,wt({"data-state":Dv(O.open),role:"dialog",id:O.contentId},m,_,{ref:r,style:{..._.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))});function Dv(e){return e?"open":"closed"}const nC=JT,rC=ZT,iC=QT;var Ua=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(Ua||{});var kv={},as={},tc={},Yu={},Ra={exports:{}},Pa={exports:{}},He={};/** @license React v16.13.1
|
|
126
|
+
`)},gT=0,xi=[];function yT(e){var r=L.useRef([]),n=L.useRef([0,0]),o=L.useRef(),a=L.useState(gT++)[0],u=L.useState(wv)[0],l=L.useRef(e);L.useEffect(function(){l.current=e},[e]),L.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var y=fo([e.lockRef.current],(e.shards||[]).map(Rp),!0).filter(Boolean);return y.forEach(function(E){return E.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),y.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var f=L.useCallback(function(y,E){if("touches"in y&&y.touches.length===2)return!l.current.allowPinchZoom;var D=Oa(y),I=n.current,C="deltaX"in y?y.deltaX:I[0]-D[0],k="deltaY"in y?y.deltaY:I[1]-D[1],T,U=y.target,H=Math.abs(C)>Math.abs(k)?"h":"v";if("touches"in y&&H==="h"&&U.type==="range")return!1;var j=Tp(H,U);if(!j)return!0;if(j?T=H:(T=H==="v"?"h":"v",j=Tp(H,U)),!j)return!1;if(!o.current&&"changedTouches"in y&&(C||k)&&(o.current=T),!T)return!0;var J=o.current||T;return hT(J,E,y,J==="h"?C:k,!0)},[]),d=L.useCallback(function(y){var E=y;if(!(!xi.length||xi[xi.length-1]!==u)){var D="deltaY"in E?Cp(E):Oa(E),I=r.current.filter(function(T){return T.name===E.type&&(T.target===E.target||E.target===T.shadowParent)&&vT(T.delta,D)})[0];if(I&&I.should){E.cancelable&&E.preventDefault();return}if(!I){var C=(l.current.shards||[]).map(Rp).filter(Boolean).filter(function(T){return T.contains(E.target)}),k=C.length>0?f(E,C[0]):!l.current.noIsolation;k&&E.cancelable&&E.preventDefault()}}},[]),v=L.useCallback(function(y,E,D,I){var C={name:y,delta:E,target:D,should:I,shadowParent:wT(D)};r.current.push(C),setTimeout(function(){r.current=r.current.filter(function(k){return k!==C})},1)},[]),g=L.useCallback(function(y){n.current=Oa(y),o.current=void 0},[]),_=L.useCallback(function(y){v(y.type,Cp(y),y.target,f(y,e.lockRef.current))},[]),O=L.useCallback(function(y){v(y.type,Oa(y),y.target,f(y,e.lockRef.current))},[]);L.useEffect(function(){return xi.push(u),e.setCallbacks({onScrollCapture:_,onWheelCapture:_,onTouchMoveCapture:O}),document.addEventListener("wheel",d,Ei),document.addEventListener("touchmove",d,Ei),document.addEventListener("touchstart",g,Ei),function(){xi=xi.filter(function(y){return y!==u}),document.removeEventListener("wheel",d,Ei),document.removeEventListener("touchmove",d,Ei),document.removeEventListener("touchstart",g,Ei)}},[]);var m=e.removeScrollBar,S=e.inert;return L.createElement(L.Fragment,null,S?L.createElement(u,{styles:mT(a)}):null,m?L.createElement(sT,{gapMode:e.gapMode}):null)}function wT(e){for(var r=null;e!==null;)e instanceof ShadowRoot&&(r=e.host,e=e.host),e=e.parentNode;return r}const bT=XO(yv,yT);var Ev=L.forwardRef(function(e,r){return L.createElement(os,Dn({},e,{ref:r,sideCar:bT}))});Ev.classNames=os.classNames;const _T=Ev,po=globalThis!=null&&globalThis.document?L.useLayoutEffect:()=>{},ST=L["useId".toString()]||(()=>{});let ET=0;function xT(e){const[r,n]=L.useState(ST());return po(()=>{e||n(o=>o??String(ET++))},[e]),e||(r?`radix-${r}`:"")}function xv(...e){return r=>e.forEach(n=>function(o,a){typeof o=="function"?o(a):o!=null&&(o.current=a)}(n,r))}function Zr(...e){return L.useCallback(xv(...e),e)}const Ov=L.forwardRef((e,r)=>{const{children:n,...o}=e;return L.Children.toArray(n).some(Pp)?L.createElement(L.Fragment,null,L.Children.map(n,a=>Pp(a)?L.createElement(xl,wt({},o,{ref:r}),a.props.children):a)):L.createElement(xl,wt({},o,{ref:r}),n)});Ov.displayName="Slot";const xl=L.forwardRef((e,r)=>{const{children:n,...o}=e;return L.isValidElement(n)?L.cloneElement(n,{...TT(o,n.props),ref:xv(r,n.ref)}):L.Children.count(n)>1?L.Children.only(null):null});xl.displayName="SlotClone";const OT=({children:e})=>L.createElement(L.Fragment,null,e);function Pp(e){return L.isValidElement(e)&&e.type===OT}function TT(e,r){const n={...r};for(const o in r){const a=e[o],u=r[o];/^on[A-Z]/.test(o)?n[o]=(...l)=>{u==null||u(...l),a==null||a(...l)}:o==="style"?n[o]={...a,...u}:o==="className"&&(n[o]=[a,u].filter(Boolean).join(" "))}return{...e,...n}}const Li=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,r)=>({...e,[r]:L.forwardRef((n,o)=>{const{asChild:a,...u}=n,l=a?Ov:r;return L.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),L.createElement(l,wt({},u,{ref:o}))})}),{}),Tv=e=>{const{present:r,children:n}=e,o=function(l){const[f,d]=L.useState(),v=L.useRef({}),g=L.useRef(l),_=L.useRef("none"),O=l?"mounted":"unmounted",[m,S]=function(y,E){return L.useReducer((D,I)=>{const C=E[D][I];return C??D},y)}(O,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return L.useEffect(()=>{const y=Ta(v.current);_.current=m==="mounted"?y:"none"},[m]),po(()=>{const y=v.current,E=g.current;if(E!==l){const D=_.current,I=Ta(y);l?S("MOUNT"):I==="none"||(y==null?void 0:y.display)==="none"?S("UNMOUNT"):S(E&&D!==I?"ANIMATION_OUT":"UNMOUNT"),g.current=l}},[l,S]),po(()=>{if(f){const y=D=>{const I=Ta(v.current).includes(D.animationName);D.target===f&&I&&S("ANIMATION_END")},E=D=>{D.target===f&&(_.current=Ta(v.current))};return f.addEventListener("animationstart",E),f.addEventListener("animationcancel",y),f.addEventListener("animationend",y),()=>{f.removeEventListener("animationstart",E),f.removeEventListener("animationcancel",y),f.removeEventListener("animationend",y)}}S("ANIMATION_END")},[f,S]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:L.useCallback(y=>{y&&(v.current=getComputedStyle(y)),d(y)},[])}}(r),a=typeof n=="function"?n({present:o.isPresent}):L.Children.only(n),u=Zr(o.ref,a.ref);return typeof n=="function"||o.isPresent?L.cloneElement(a,{ref:u}):null};function Ta(e){return(e==null?void 0:e.animationName)||"none"}Tv.displayName="Presence";let Gu=0;function CT(){L.useEffect(()=>{var e,r;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Ap()),document.body.insertAdjacentElement("beforeend",(r=n[1])!==null&&r!==void 0?r:Ap()),Gu++,()=>{Gu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),Gu--}},[])}function Ap(){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 Cv=L.forwardRef((e,r)=>{var n,o;const{containerRef:a,style:u,...l}=e,f=(n=a==null?void 0:a.current)!==null&&n!==void 0?n:globalThis==null||(o=globalThis.document)===null||o===void 0?void 0:o.body,[,d]=L.useState({});return po(()=>{d({})},[]),f?go.createPortal(L.createElement(Li.div,wt({"data-radix-portal":""},l,{ref:r,style:f===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...u}:void 0})),f):null});function Jr(e){const r=L.useRef(e);return L.useEffect(()=>{r.current=e}),L.useMemo(()=>(...n)=>{var o;return(o=r.current)===null||o===void 0?void 0:o.call(r,...n)},[])}const Ip={bubbles:!1,cancelable:!0},RT=L.forwardRef((e,r)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:a,onUnmountAutoFocus:u,...l}=e,[f,d]=L.useState(null),v=Jr(a),g=Jr(u),_=L.useRef(null),O=Zr(r,y=>d(y)),m=L.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;L.useEffect(()=>{if(o){let y=function(D){if(m.paused||!f)return;const I=D.target;f.contains(I)?_.current=I:Ur(_.current,{select:!0})},E=function(D){!m.paused&&f&&(f.contains(D.relatedTarget)||Ur(_.current,{select:!0}))};return document.addEventListener("focusin",y),document.addEventListener("focusout",E),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",E)}}},[o,f,m.paused]),L.useEffect(()=>{if(f){Dp.add(m);const E=document.activeElement;if(!f.contains(E)){const D=new Event("focusScope.autoFocusOnMount",Ip);f.addEventListener("focusScope.autoFocusOnMount",v),f.dispatchEvent(D),D.defaultPrevented||(function(I,{select:C=!1}={}){const k=document.activeElement;for(const T of I)if(Ur(T,{select:C}),document.activeElement!==k)return}((y=Lp(f),y.filter(I=>I.tagName!=="A")),{select:!0}),document.activeElement===E&&Ur(f))}return()=>{f.removeEventListener("focusScope.autoFocusOnMount",v),setTimeout(()=>{const D=new Event("focusScope.autoFocusOnUnmount",Ip);f.addEventListener("focusScope.autoFocusOnUnmount",g),f.dispatchEvent(D),D.defaultPrevented||Ur(E??document.body,{select:!0}),f.removeEventListener("focusScope.autoFocusOnUnmount",g),Dp.remove(m)},0)}}var y},[f,v,g,m]);const S=L.useCallback(y=>{if(!n&&!o||m.paused)return;const E=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,D=document.activeElement;if(E&&D){const I=y.currentTarget,[C,k]=function(T){const U=Lp(T),H=Mp(U,T),j=Mp(U.reverse(),T);return[H,j]}(I);C&&k?y.shiftKey||D!==k?y.shiftKey&&D===C&&(y.preventDefault(),n&&Ur(k,{select:!0})):(y.preventDefault(),n&&Ur(C,{select:!0})):D===I&&y.preventDefault()}},[n,o,m.paused]);return L.createElement(Li.div,wt({tabIndex:-1},l,{ref:O,onKeyDown:S}))});function Lp(e){const r=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const a=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||a?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)r.push(n.currentNode);return r}function Mp(e,r){for(const n of e)if(!PT(n,{upTo:r}))return n}function PT(e,{upTo:r}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(r!==void 0&&e===r)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Ur(e,{select:r=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(o){return o instanceof HTMLInputElement&&"select"in o}(e)&&r&&e.select()}}const Dp=function(){let e=[];return{add(r){const n=e[0];r!==n&&(n==null||n.pause()),e=kp(e,r),e.unshift(r)},remove(r){var n;e=kp(e,r),(n=e[0])===null||n===void 0||n.resume()}}}();function kp(e,r){const n=[...e],o=n.indexOf(r);return o!==-1&&n.splice(o,1),n}function AT(e){const r=Jr(e);L.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[r])}let Np,Ca=0;function IT({disabled:e}){const r=L.useRef(!1);po(()=>{if(e){let n=function(){Ca--,Ca===0&&(document.body.style.pointerEvents=Np)},o=function(a){r.current=a.pointerType!=="mouse"};return Ca===0&&(Np=document.body.style.pointerEvents),document.body.style.pointerEvents="none",Ca++,document.addEventListener("pointerup",o),()=>{r.current?document.addEventListener("click",n,{once:!0}):n(),document.removeEventListener("pointerup",o)}}},[e])}function Yr(e,r,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return r==null?void 0:r(o)}}const LT=L.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),MT=L.forwardRef((e,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:u,onInteractOutside:l,onDismiss:f,...d}=e,v=L.useContext(LT),[g,_]=L.useState(null),[,O]=L.useState({}),m=Zr(r,U=>_(U)),S=Array.from(v.layers),[y]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),E=S.indexOf(y),D=g?S.indexOf(g):-1,I=v.layersWithOutsidePointerEventsDisabled.size>0,C=D>=E,k=function(U){const H=Jr(U),j=L.useRef(!1);return L.useEffect(()=>{const J=ge=>{ge.target&&!j.current&&jp("dismissableLayer.pointerDownOutside",H,{originalEvent:ge}),j.current=!1},ee=window.setTimeout(()=>{document.addEventListener("pointerdown",J)},0);return()=>{window.clearTimeout(ee),document.removeEventListener("pointerdown",J)}},[H]),{onPointerDownCapture:()=>j.current=!0}}(U=>{const H=U.target,j=[...v.branches].some(J=>J.contains(H));C&&!j&&(a==null||a(U),l==null||l(U),U.defaultPrevented||f==null||f())}),T=function(U){const H=Jr(U),j=L.useRef(!1);return L.useEffect(()=>{const J=ee=>{ee.target&&!j.current&&jp("dismissableLayer.focusOutside",H,{originalEvent:ee})};return document.addEventListener("focusin",J),()=>document.removeEventListener("focusin",J)},[H]),{onFocusCapture:()=>j.current=!0,onBlurCapture:()=>j.current=!1}}(U=>{const H=U.target;[...v.branches].some(j=>j.contains(H))||(u==null||u(U),l==null||l(U),U.defaultPrevented||f==null||f())});return AT(U=>{D===v.layers.size-1&&(o==null||o(U),U.defaultPrevented||f==null||f())}),IT({disabled:n}),L.useEffect(()=>{g&&(n&&v.layersWithOutsidePointerEventsDisabled.add(g),v.layers.add(g),$p())},[g,n,v]),L.useEffect(()=>()=>{g&&(v.layers.delete(g),v.layersWithOutsidePointerEventsDisabled.delete(g),$p())},[g,v]),L.useEffect(()=>{const U=()=>O({});return document.addEventListener("dismissableLayer.update",U),()=>document.removeEventListener("dismissableLayer.update",U)},[]),L.createElement(Li.div,wt({},d,{ref:m,style:{pointerEvents:I?C?"auto":"none":void 0,...e.style},onFocusCapture:Yr(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Yr(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Yr(e.onPointerDownCapture,k.onPointerDownCapture)}))});function $p(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function jp(e,r,n){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});return r&&o.addEventListener(e,r,{once:!0}),!o.dispatchEvent(a)}function Fp(e){const[r,n]=L.useState(void 0);return L.useEffect(()=>{if(e){const o=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const u=a[0];let l,f;if("borderBoxSize"in u){const d=u.borderBoxSize,v=Array.isArray(d)?d[0]:d;l=v.inlineSize,f=v.blockSize}else{const d=e.getBoundingClientRect();l=d.width,f=d.height}n({width:l,height:f})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}n(void 0)},[e]),r}function DT(e,r){const n=Br.get(e);return n===void 0?(Br.set(e,{rect:{},callbacks:[r]}),Br.size===1&&(Ol=requestAnimationFrame(Rv))):(n.callbacks.push(r),r(e.getBoundingClientRect())),()=>{const o=Br.get(e);if(o===void 0)return;const a=o.callbacks.indexOf(r);a>-1&&o.callbacks.splice(a,1),o.callbacks.length===0&&(Br.delete(e),Br.size===0&&cancelAnimationFrame(Ol))}}let Ol;const Br=new Map;function Rv(){const e=[];Br.forEach((r,n)=>{const o=n.getBoundingClientRect();var a,u;a=r.rect,u=o,(a.width!==u.width||a.height!==u.height||a.top!==u.top||a.right!==u.right||a.bottom!==u.bottom||a.left!==u.left)&&(r.rect=o,e.push(r))}),e.forEach(r=>{r.callbacks.forEach(n=>n(r.rect))}),Ol=requestAnimationFrame(Rv)}function kT(e){const[r,n]=L.useState();return L.useEffect(()=>{if(e){const o=DT(e,n);return()=>{n(void 0),o()}}},[e]),r}function Pv(e,r=[]){let n=[];const o=()=>{const a=n.map(u=>L.createContext(u));return function(u){const l=(u==null?void 0:u[e])||a;return L.useMemo(()=>({[`__scope${e}`]:{...u,[e]:l}}),[u,l])}};return o.scopeName=e,[function(a,u){const l=L.createContext(u),f=n.length;function d(v){const{scope:g,children:_,...O}=v,m=(g==null?void 0:g[e][f])||l,S=L.useMemo(()=>O,Object.values(O));return L.createElement(m.Provider,{value:S},_)}return n=[...n,u],d.displayName=a+"Provider",[d,function(v,g){const _=(g==null?void 0:g[e][f])||l,O=L.useContext(_);if(O)return O;if(u!==void 0)return u;throw new Error(`\`${v}\` must be used within \`${a}\``)}]},NT(o,...r)]}function NT(...e){const r=e[0];if(e.length===1)return r;const n=()=>{const o=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(a){const u=o.reduce((l,{useScope:f,scopeName:d})=>({...l,...f(a)[`__scope${d}`]}),{});return L.useMemo(()=>({[`__scope${r.scopeName}`]:u}),[u])}};return n.scopeName=r.scopeName,n}function $T({anchorRect:e,popperSize:r,arrowSize:n,arrowOffset:o=0,side:a,sideOffset:u=0,align:l,alignOffset:f=0,shouldAvoidCollisions:d=!0,collisionBoundariesRect:v,collisionTolerance:g=0}){if(!e||!r||!v)return{popperStyles:jT,arrowStyles:Ku};const _=function(H,j,J=0,ee=0,ge){const Ce=ge?ge.height:0,_e=Wp(j,H,"x"),se=Wp(j,H,"y"),Le=se.before-J-Ce,we=se.after+J+Ce,xe=_e.before-J-Ce,We=_e.after+J+Ce;return{top:{start:{x:_e.start+ee,y:Le},center:{x:_e.center,y:Le},end:{x:_e.end-ee,y:Le}},right:{start:{x:We,y:se.start+ee},center:{x:We,y:se.center},end:{x:We,y:se.end-ee}},bottom:{start:{x:_e.start+ee,y:we},center:{x:_e.center,y:we},end:{x:_e.end-ee,y:we}},left:{start:{x:xe,y:se.start+ee},center:{x:xe,y:se.center},end:{x:xe,y:se.end-ee}}}}(r,e,u,f,n),O=_[a][l];if(d===!1){const H=Up(O);let j=Ku;return n&&(j=Bp({popperSize:r,arrowSize:n,arrowOffset:o,side:a,align:l})),{popperStyles:{...H,"--radix-popper-transform-origin":Hp(r,a,l,o,n)},arrowStyles:j,placedSide:a,placedAlign:l}}const m=DOMRect.fromRect({...r,...O}),S=(y=v,E=g,DOMRect.fromRect({width:y.width-2*E,height:y.height-2*E,x:y.left+E,y:y.top+E}));var y,E;const D=qp(m,S),I=_[zp(a)][l],C=function(H,j,J){const ee=zp(H);return j[H]&&!J[ee]?ee:H}(a,D,qp(DOMRect.fromRect({...r,...I}),S)),k=function(H,j,J,ee,ge){const Ce=J==="top"||J==="bottom",_e=Ce?"left":"top",se=Ce?"right":"bottom",Le=Ce?"width":"height",we=j[Le]>H[Le];return(ee==="start"||ee==="center")&&(ge[_e]&&we||ge[se]&&!we)?"end":(ee==="end"||ee==="center")&&(ge[se]&&we||ge[_e]&&!we)?"start":ee}(r,e,a,l,D),T=Up(_[C][k]);let U=Ku;return n&&(U=Bp({popperSize:r,arrowSize:n,arrowOffset:o,side:C,align:k})),{popperStyles:{...T,"--radix-popper-transform-origin":Hp(r,C,k,o,n)},arrowStyles:U,placedSide:C,placedAlign:k}}function Wp(e,r,n){const o=e[n==="x"?"left":"top"],a=n==="x"?"width":"height",u=e[a],l=r[a];return{before:o-l,start:o,center:o+(u-l)/2,end:o+u-l,after:o+u}}function Up(e){return{position:"absolute",top:0,left:0,minWidth:"max-content",willChange:"transform",transform:`translate3d(${Math.round(e.x+window.scrollX)}px, ${Math.round(e.y+window.scrollY)}px, 0)`}}function Hp(e,r,n,o,a){const u=r==="top"||r==="bottom",l=a?a.width:0,f=a?a.height:0,d=l/2+o;let v="",g="";return u?(v={start:`${d}px`,center:"center",end:e.width-d+"px"}[n],g=r==="top"?`${e.height+f}px`:-f+"px"):(v=r==="left"?`${e.width+f}px`:-f+"px",g={start:`${d}px`,center:"center",end:e.height-d+"px"}[n]),`${v} ${g}`}const jT={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},Ku={position:"absolute",opacity:0};function Bp({popperSize:e,arrowSize:r,arrowOffset:n,side:o,align:a}){const u=(e.width-r.width)/2,l=(e.height-r.width)/2,f={top:0,right:90,bottom:180,left:-90}[o],d=Math.max(r.width,r.height),v={width:`${d}px`,height:`${d}px`,transform:`rotate(${f}deg)`,willChange:"transform",position:"absolute",[o]:"100%",direction:FT(o,a)};return o!=="top"&&o!=="bottom"||(a==="start"&&(v.left=`${n}px`),a==="center"&&(v.left=`${u}px`),a==="end"&&(v.right=`${n}px`)),o!=="left"&&o!=="right"||(a==="start"&&(v.top=`${n}px`),a==="center"&&(v.top=`${l}px`),a==="end"&&(v.bottom=`${n}px`)),v}function FT(e,r){return(e!=="top"&&e!=="right"||r!=="end")&&(e!=="bottom"&&e!=="left"||r==="end")?"ltr":"rtl"}function zp(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function qp(e,r){return{top:e.top<r.top,right:e.right>r.right,bottom:e.bottom>r.bottom,left:e.left<r.left}}const[Av,Iv]=Pv("Popper"),[WT,Lv]=Av("Popper"),UT=e=>{const{__scopePopper:r,children:n}=e,[o,a]=L.useState(null);return L.createElement(WT,{scope:r,anchor:o,onAnchorChange:a},n)},HT=L.forwardRef((e,r)=>{const{__scopePopper:n,virtualRef:o,...a}=e,u=Lv("PopperAnchor",n),l=L.useRef(null),f=Zr(r,l);return L.useEffect(()=>{u.onAnchorChange((o==null?void 0:o.current)||l.current)}),o?null:L.createElement(Li.div,wt({},a,{ref:f}))}),[BT,fI]=Av("PopperContent"),zT=L.forwardRef((e,r)=>{const{__scopePopper:n,side:o="bottom",sideOffset:a,align:u="center",alignOffset:l,collisionTolerance:f,avoidCollisions:d=!0,...v}=e,g=Lv("PopperContent",n),[_,O]=L.useState(),m=kT(g.anchor),[S,y]=L.useState(null),E=Fp(S),[D,I]=L.useState(null),C=Fp(D),k=Zr(r,Ce=>y(Ce)),T=function(){const[Ce,_e]=L.useState(void 0);return L.useEffect(()=>{let se;function Le(){_e({width:window.innerWidth,height:window.innerHeight})}function we(){window.clearTimeout(se),se=window.setTimeout(Le,100)}return Le(),window.addEventListener("resize",we),()=>window.removeEventListener("resize",we)},[]),Ce}(),U=T?DOMRect.fromRect({...T,x:0,y:0}):void 0,{popperStyles:H,arrowStyles:j,placedSide:J,placedAlign:ee}=$T({anchorRect:m,popperSize:E,arrowSize:C,arrowOffset:_,side:o,sideOffset:a,align:u,alignOffset:l,shouldAvoidCollisions:d,collisionBoundariesRect:U,collisionTolerance:f}),ge=J!==void 0;return L.createElement("div",{style:H,"data-radix-popper-content-wrapper":""},L.createElement(BT,{scope:n,arrowStyles:j,onArrowChange:I,onArrowOffsetChange:O},L.createElement(Li.div,wt({"data-side":J,"data-align":ee},v,{style:{...v.style,animation:ge?void 0:"none"},ref:k}))))}),qT=UT,GT=HT,KT=zT;function YT({prop:e,defaultProp:r,onChange:n=()=>{}}){const[o,a]=function({defaultProp:d,onChange:v}){const g=L.useState(d),[_]=g,O=L.useRef(_),m=Jr(v);return L.useEffect(()=>{O.current!==_&&(m(_),O.current=_)},[_,O,m]),g}({defaultProp:r,onChange:n}),u=e!==void 0,l=u?e:o,f=Jr(n);return[l,L.useCallback(d=>{if(u){const v=d,g=typeof d=="function"?v(e):d;g!==e&&f(g)}else a(d)},[u,e,a,f])]}const[XT,dI]=Pv("Popover",[Iv]),ec=Iv(),[VT,_o]=XT("Popover"),JT=e=>{const{__scopePopover:r,children:n,open:o,defaultOpen:a,onOpenChange:u,modal:l=!1}=e,f=ec(r),d=L.useRef(null),[v,g]=L.useState(!1),[_=!1,O]=YT({prop:o,defaultProp:a,onChange:u});return L.createElement(qT,f,L.createElement(VT,{scope:r,contentId:xT(),triggerRef:d,open:_,onOpenChange:O,onOpenToggle:L.useCallback(()=>O(m=>!m),[O]),hasCustomAnchor:v,onCustomAnchorAdd:L.useCallback(()=>g(!0),[]),onCustomAnchorRemove:L.useCallback(()=>g(!1),[]),modal:l},n))},ZT=L.forwardRef((e,r)=>{const{__scopePopover:n,...o}=e,a=_o("PopoverTrigger",n),u=ec(n),l=Zr(r,a.triggerRef),f=L.createElement(Li.button,wt({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Dv(a.open)},o,{ref:l,onClick:Yr(e.onClick,a.onOpenToggle)}));return a.hasCustomAnchor?f:L.createElement(GT,wt({asChild:!0},u),f)}),QT=L.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=_o("PopoverContent",e.__scopePopover);return L.createElement(Tv,{present:n||a.open},a.modal?L.createElement(eC,wt({},o,{ref:r})):L.createElement(tC,wt({},o,{ref:r})))}),eC=L.forwardRef((e,r)=>{const{allowPinchZoom:n,portalled:o=!0,...a}=e,u=_o("PopoverContent",e.__scopePopover),l=L.useRef(null),f=Zr(r,l),d=L.useRef(!1);L.useEffect(()=>{const g=l.current;if(g)return WO(g)},[]);const v=o?Cv:L.Fragment;return L.createElement(v,null,L.createElement(_T,{allowPinchZoom:n},L.createElement(Mv,wt({},a,{ref:f,trapFocus:u.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Yr(e.onCloseAutoFocus,g=>{var _;g.preventDefault(),d.current||(_=u.triggerRef.current)===null||_===void 0||_.focus()}),onPointerDownOutside:Yr(e.onPointerDownOutside,g=>{const _=g.detail.originalEvent,O=_.button===0&&_.ctrlKey===!0,m=_.button===2||O;d.current=m},{checkForDefaultPrevented:!1}),onFocusOutside:Yr(e.onFocusOutside,g=>g.preventDefault(),{checkForDefaultPrevented:!1})}))))}),tC=L.forwardRef((e,r)=>{const{portalled:n=!0,...o}=e,a=_o("PopoverContent",e.__scopePopover),u=L.useRef(!1),l=n?Cv:L.Fragment;return L.createElement(l,null,L.createElement(Mv,wt({},o,{ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{var d,v;(d=e.onCloseAutoFocus)===null||d===void 0||d.call(e,f),f.defaultPrevented||(u.current||(v=a.triggerRef.current)===null||v===void 0||v.focus(),f.preventDefault()),u.current=!1},onInteractOutside:f=>{var d,v;(d=e.onInteractOutside)===null||d===void 0||d.call(e,f),f.defaultPrevented||(u.current=!0);const g=f.target;!((v=a.triggerRef.current)===null||v===void 0)&&v.contains(g)&&f.preventDefault()}})))}),Mv=L.forwardRef((e,r)=>{const{__scopePopover:n,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:u,disableOutsidePointerEvents:l,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:v,onInteractOutside:g,..._}=e,O=_o("PopoverContent",n),m=ec(n);return CT(),L.createElement(RT,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:u},L.createElement(MT,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:g,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:v,onDismiss:()=>O.onOpenChange(!1)},L.createElement(KT,wt({"data-state":Dv(O.open),role:"dialog",id:O.contentId},m,_,{ref:r,style:{..._.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))});function Dv(e){return e?"open":"closed"}const nC=JT,rC=ZT,iC=QT;var Ua=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(Ua||{});var kv={},as={},tc={},Yu={},Ra={exports:{}},Pa={exports:{}},He={};/** @license React v16.13.1
|
|
127
127
|
* react-is.production.min.js
|
|
128
128
|
*
|
|
129
129
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -202,5 +202,5 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
202
202
|
}`;var Pe=Wd(function(){return Fe(b,re+"return "+K).apply(n,x)});if(Pe.source=K,vu(Pe))throw Pe;return Pe}function u_(t){return Ue(t).toLowerCase()}function l_(t){return Ue(t).toUpperCase()}function c_(t,i,s){if(t=Ue(t),t&&(s||i===n))return Yc(t);if(!t||!(i=Jt(i)))return t;var c=_n(t),h=_n(i),b=Xc(c,h),x=Vc(c,h)+1;return dr(c,b,x).join("")}function f_(t,i,s){if(t=Ue(t),t&&(s||i===n))return t.slice(0,Zc(t)+1);if(!t||!(i=Jt(i)))return t;var c=_n(t),h=Vc(c,_n(i))+1;return dr(c,0,h).join("")}function d_(t,i,s){if(t=Ue(t),t&&(s||i===n))return t.replace(F,"");if(!t||!(i=Jt(i)))return t;var c=_n(t),h=Xc(c,_n(i));return dr(c,h).join("")}function p_(t,i){var s=ee,c=ge;if(tt(i)){var h="separator"in i?i.separator:h;s="length"in i?Re(i.length):s,c="omission"in i?Jt(i.omission):c}t=Ue(t);var b=t.length;if(si(t)){var x=_n(t);b=x.length}if(s>=b)return t;var R=s-ui(c);if(R<1)return c;var M=x?dr(x,0,R).join(""):t.slice(0,R);if(h===n)return M+c;if(x&&(R+=M.length-R),mu(h)){if(t.slice(R).search(h)){var z,q=M;for(h.global||(h=Ls(h.source,Ue(ot.exec(h))+"g")),h.lastIndex=0;z=h.exec(q);)var K=z.index;M=M.slice(0,K===n?R:K)}}else if(t.indexOf(Jt(h),R)!=R){var Z=M.lastIndexOf(h);Z>-1&&(M=M.slice(0,Z))}return M+c}function h_(t){return t=Ue(t),t&&Pr.test(t)?t.replace(ri,Bg):t}var v_=vi(function(t,i,s){return t+(s?" ":"")+i.toUpperCase()}),wu=Uf("toUpperCase");function Fd(t,i,s){return t=Ue(t),i=s?n:i,i===n?jg(t)?Gg(t):Pg(t):t.match(i)||[]}var Wd=Ae(function(t,i){try{return Xt(t,n,i)}catch(s){return vu(s)?s:new Ee(s)}}),m_=Kn(function(t,i){return sn(i,function(s){s=Mn(s),qn(t,s,pu(t[s],t))}),t});function g_(t){var i=t==null?0:t.length,s=he();return t=i?et(t,function(c){if(typeof c[1]!="function")throw new un(l);return[s(c[0]),c[1]]}):[],Ae(function(c){for(var h=-1;++h<i;){var b=t[h];if(Xt(b[0],this,c))return Xt(b[1],this,c)}})}function y_(t){return B0(cn(t,_))}function bu(t){return function(){return t}}function w_(t,i){return t==null||t!==t?i:t}var b_=Bf(),__=Bf(!0);function zt(t){return t}function _u(t){return wf(typeof t=="function"?t:cn(t,_))}function S_(t){return _f(cn(t,_))}function E_(t,i){return Sf(t,cn(i,_))}var x_=Ae(function(t,i){return function(s){return Yi(s,t,i)}}),O_=Ae(function(t,i){return function(s){return Yi(t,s,i)}});function Su(t,i,s){var c=yt(i),h=Zo(i,c);s==null&&!(tt(i)&&(h.length||!c.length))&&(s=i,i=t,t=this,h=Zo(i,yt(i)));var b=!(tt(s)&&"chain"in s)||!!s.chain,x=Xn(t);return sn(h,function(R){var M=i[R];t[R]=M,x&&(t.prototype[R]=function(){var z=this.__chain__;if(b||z){var q=t(this.__wrapped__),K=q.__actions__=Ut(this.__actions__);return K.push({func:M,args:arguments,thisArg:t}),q.__chain__=z,q}return M.apply(t,ar([this.value()],arguments))})}),t}function T_(){return _t._===this&&(_t._=Zg),this}function Eu(){}function C_(t){return t=Re(t),Ae(function(i){return Ef(i,t)})}var R_=eu(et),P_=eu(Bc),A_=eu(Os);function Ud(t){return su(t)?Ts(Mn(t)):ay(t)}function I_(t){return function(i){return t==null?n:$r(t,i)}}var L_=qf(),M_=qf(!0);function xu(){return[]}function Ou(){return!1}function D_(){return{}}function k_(){return""}function N_(){return!0}function $_(t,i){if(t=Re(t),t<1||t>We)return[];var s=X,c=Ct(t,X);i=he(i),t-=X;for(var h=Ps(c,i);++s<t;)i(s);return h}function j_(t){return Te(t)?et(t,Mn):Zt(t)?[t]:Ut(sd(Ue(t)))}function F_(t){var i=++Vg;return Ue(t)+i}var W_=ia(function(t,i){return t+i},0),U_=tu("ceil"),H_=ia(function(t,i){return t/i},1),B_=tu("floor");function z_(t){return t&&t.length?Jo(t,zt,Ws):n}function q_(t,i){return t&&t.length?Jo(t,he(i,2),Ws):n}function G_(t){return Gc(t,zt)}function K_(t,i){return Gc(t,he(i,2))}function Y_(t){return t&&t.length?Jo(t,zt,zs):n}function X_(t,i){return t&&t.length?Jo(t,he(i,2),zs):n}var V_=ia(function(t,i){return t*i},1),J_=tu("round"),Z_=ia(function(t,i){return t-i},0);function Q_(t){return t&&t.length?Rs(t,zt):0}function eS(t,i){return t&&t.length?Rs(t,he(i,2)):0}return w.after=Sw,w.ary=yd,w.assign=lb,w.assignIn=Ld,w.assignInWith=ga,w.assignWith=cb,w.at=fb,w.before=wd,w.bind=pu,w.bindAll=m_,w.bindKey=bd,w.castArray=Dw,w.chain=vd,w.chunk=By,w.compact=zy,w.concat=qy,w.cond=g_,w.conforms=y_,w.constant=bu,w.countBy=Q1,w.create=db,w.curry=_d,w.curryRight=Sd,w.debounce=Ed,w.defaults=pb,w.defaultsDeep=hb,w.defer=Ew,w.delay=xw,w.difference=Gy,w.differenceBy=Ky,w.differenceWith=Yy,w.drop=Xy,w.dropRight=Vy,w.dropRightWhile=Jy,w.dropWhile=Zy,w.fill=Qy,w.filter=tw,w.flatMap=iw,w.flatMapDeep=ow,w.flatMapDepth=aw,w.flatten=fd,w.flattenDeep=e1,w.flattenDepth=t1,w.flip=Ow,w.flow=b_,w.flowRight=__,w.fromPairs=n1,w.functions=_b,w.functionsIn=Sb,w.groupBy=sw,w.initial=i1,w.intersection=o1,w.intersectionBy=a1,w.intersectionWith=s1,w.invert=xb,w.invertBy=Ob,w.invokeMap=lw,w.iteratee=_u,w.keyBy=cw,w.keys=yt,w.keysIn=Bt,w.map=fa,w.mapKeys=Cb,w.mapValues=Rb,w.matches=S_,w.matchesProperty=E_,w.memoize=pa,w.merge=Pb,w.mergeWith=Md,w.method=x_,w.methodOf=O_,w.mixin=Su,w.negate=ha,w.nthArg=C_,w.omit=Ab,w.omitBy=Ib,w.once=Tw,w.orderBy=fw,w.over=R_,w.overArgs=Cw,w.overEvery=P_,w.overSome=A_,w.partial=hu,w.partialRight=xd,w.partition=dw,w.pick=Lb,w.pickBy=Dd,w.property=Ud,w.propertyOf=I_,w.pull=f1,w.pullAll=pd,w.pullAllBy=d1,w.pullAllWith=p1,w.pullAt=h1,w.range=L_,w.rangeRight=M_,w.rearg=Rw,w.reject=vw,w.remove=v1,w.rest=Pw,w.reverse=fu,w.sampleSize=gw,w.set=Db,w.setWith=kb,w.shuffle=yw,w.slice=m1,w.sortBy=_w,w.sortedUniq=E1,w.sortedUniqBy=x1,w.split=i_,w.spread=Aw,w.tail=O1,w.take=T1,w.takeRight=C1,w.takeRightWhile=R1,w.takeWhile=P1,w.tap=z1,w.throttle=Iw,w.thru=ca,w.toArray=Pd,w.toPairs=kd,w.toPairsIn=Nd,w.toPath=j_,w.toPlainObject=Id,w.transform=Nb,w.unary=Lw,w.union=A1,w.unionBy=I1,w.unionWith=L1,w.uniq=M1,w.uniqBy=D1,w.uniqWith=k1,w.unset=$b,w.unzip=du,w.unzipWith=hd,w.update=jb,w.updateWith=Fb,w.values=yi,w.valuesIn=Wb,w.without=N1,w.words=Fd,w.wrap=Mw,w.xor=$1,w.xorBy=j1,w.xorWith=F1,w.zip=W1,w.zipObject=U1,w.zipObjectDeep=H1,w.zipWith=B1,w.entries=kd,w.entriesIn=Nd,w.extend=Ld,w.extendWith=ga,Su(w,w),w.add=W_,w.attempt=Wd,w.camelCase=zb,w.capitalize=$d,w.ceil=U_,w.clamp=Ub,w.clone=kw,w.cloneDeep=$w,w.cloneDeepWith=jw,w.cloneWith=Nw,w.conformsTo=Fw,w.deburr=jd,w.defaultTo=w_,w.divide=H_,w.endsWith=qb,w.eq=En,w.escape=Gb,w.escapeRegExp=Kb,w.every=ew,w.find=nw,w.findIndex=ld,w.findKey=vb,w.findLast=rw,w.findLastIndex=cd,w.findLastKey=mb,w.floor=B_,w.forEach=md,w.forEachRight=gd,w.forIn=gb,w.forInRight=yb,w.forOwn=wb,w.forOwnRight=bb,w.get=gu,w.gt=Ww,w.gte=Uw,w.has=Eb,w.hasIn=yu,w.head=dd,w.identity=zt,w.includes=uw,w.indexOf=r1,w.inRange=Hb,w.invoke=Tb,w.isArguments=Wr,w.isArray=Te,w.isArrayBuffer=Hw,w.isArrayLike=Ht,w.isArrayLikeObject=ct,w.isBoolean=Bw,w.isBuffer=pr,w.isDate=zw,w.isElement=qw,w.isEmpty=Gw,w.isEqual=Kw,w.isEqualWith=Yw,w.isError=vu,w.isFinite=Xw,w.isFunction=Xn,w.isInteger=Od,w.isLength=va,w.isMap=Td,w.isMatch=Vw,w.isMatchWith=Jw,w.isNaN=Zw,w.isNative=Qw,w.isNil=tb,w.isNull=eb,w.isNumber=Cd,w.isObject=tt,w.isObjectLike=at,w.isPlainObject=eo,w.isRegExp=mu,w.isSafeInteger=nb,w.isSet=Rd,w.isString=ma,w.isSymbol=Zt,w.isTypedArray=gi,w.isUndefined=rb,w.isWeakMap=ib,w.isWeakSet=ob,w.join=u1,w.kebabCase=Yb,w.last=dn,w.lastIndexOf=l1,w.lowerCase=Xb,w.lowerFirst=Vb,w.lt=ab,w.lte=sb,w.max=z_,w.maxBy=q_,w.mean=G_,w.meanBy=K_,w.min=Y_,w.minBy=X_,w.stubArray=xu,w.stubFalse=Ou,w.stubObject=D_,w.stubString=k_,w.stubTrue=N_,w.multiply=V_,w.nth=c1,w.noConflict=T_,w.noop=Eu,w.now=da,w.pad=Jb,w.padEnd=Zb,w.padStart=Qb,w.parseInt=e_,w.random=Bb,w.reduce=pw,w.reduceRight=hw,w.repeat=t_,w.replace=n_,w.result=Mb,w.round=J_,w.runInContext=A,w.sample=mw,w.size=ww,w.snakeCase=r_,w.some=bw,w.sortedIndex=g1,w.sortedIndexBy=y1,w.sortedIndexOf=w1,w.sortedLastIndex=b1,w.sortedLastIndexBy=_1,w.sortedLastIndexOf=S1,w.startCase=o_,w.startsWith=a_,w.subtract=Z_,w.sum=Q_,w.sumBy=eS,w.template=s_,w.times=$_,w.toFinite=Vn,w.toInteger=Re,w.toLength=Ad,w.toLower=u_,w.toNumber=pn,w.toSafeInteger=ub,w.toString=Ue,w.toUpper=l_,w.trim=c_,w.trimEnd=f_,w.trimStart=d_,w.truncate=p_,w.unescape=h_,w.uniqueId=F_,w.upperCase=v_,w.upperFirst=wu,w.each=md,w.eachRight=gd,w.first=dd,Su(w,function(){var t={};return In(w,function(i,s){qe.call(w.prototype,s)||(t[s]=i)}),t}(),{chain:!1}),w.VERSION=o,sn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){w[t].placeholder=w}),sn(["drop","take"],function(t,i){ke.prototype[t]=function(s){s=s===n?1:vt(Re(s),0);var c=this.__filtered__&&!i?new ke(this):this.clone();return c.__filtered__?c.__takeCount__=Ct(s,c.__takeCount__):c.__views__.push({size:Ct(s,X),type:t+(c.__dir__<0?"Right":"")}),c},ke.prototype[t+"Right"]=function(s){return this.reverse()[t](s).reverse()}}),sn(["filter","map","takeWhile"],function(t,i){var s=i+1,c=s==se||s==we;ke.prototype[t]=function(h){var b=this.clone();return b.__iteratees__.push({iteratee:he(h,3),type:s}),b.__filtered__=b.__filtered__||c,b}}),sn(["head","last"],function(t,i){var s="take"+(i?"Right":"");ke.prototype[t]=function(){return this[s](1).value()[0]}}),sn(["initial","tail"],function(t,i){var s="drop"+(i?"":"Right");ke.prototype[t]=function(){return this.__filtered__?new ke(this):this[s](1)}}),ke.prototype.compact=function(){return this.filter(zt)},ke.prototype.find=function(t){return this.filter(t).head()},ke.prototype.findLast=function(t){return this.reverse().find(t)},ke.prototype.invokeMap=Ae(function(t,i){return typeof t=="function"?new ke(this):this.map(function(s){return Yi(s,t,i)})}),ke.prototype.reject=function(t){return this.filter(ha(he(t)))},ke.prototype.slice=function(t,i){t=Re(t);var s=this;return s.__filtered__&&(t>0||i<0)?new ke(s):(t<0?s=s.takeRight(-t):t&&(s=s.drop(t)),i!==n&&(i=Re(i),s=i<0?s.dropRight(-i):s.take(i-t)),s)},ke.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},ke.prototype.toArray=function(){return this.take(X)},In(ke.prototype,function(t,i){var s=/^(?:filter|find|map|reject)|While$/.test(i),c=/^(?:head|last)$/.test(i),h=w[c?"take"+(i=="last"?"Right":""):i],b=c||/^find/.test(i);h&&(w.prototype[i]=function(){var x=this.__wrapped__,R=c?[1]:arguments,M=x instanceof ke,z=R[0],q=M||Te(x),K=function(De){var Ne=h.apply(w,ar([De],R));return c&&Z?Ne[0]:Ne};q&&s&&typeof z=="function"&&z.length!=1&&(M=q=!1);var Z=this.__chain__,re=!!this.__actions__.length,ve=b&&!Z,Pe=M&&!re;if(!b&&q){x=Pe?x:new ke(this);var me=t.apply(x,R);return me.__actions__.push({func:ca,args:[K],thisArg:n}),new ln(me,Z)}return ve&&Pe?t.apply(this,R):(me=this.thru(K),ve?c?me.value()[0]:me.value():me)})}),sn(["pop","push","shift","sort","splice","unshift"],function(t){var i=No[t],s=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",c=/^(?:pop|shift)$/.test(t);w.prototype[t]=function(){var h=arguments;if(c&&!this.__chain__){var b=this.value();return i.apply(Te(b)?b:[],h)}return this[s](function(x){return i.apply(Te(x)?x:[],h)})}}),In(ke.prototype,function(t,i){var s=w[i];if(s){var c=s.name+"";qe.call(di,c)||(di[c]=[]),di[c].push({name:i,func:s})}}),di[ra(n,D).name]=[{name:"wrapper",func:n}],ke.prototype.clone=h0,ke.prototype.reverse=v0,ke.prototype.value=m0,w.prototype.at=q1,w.prototype.chain=G1,w.prototype.commit=K1,w.prototype.next=Y1,w.prototype.plant=V1,w.prototype.reverse=J1,w.prototype.toJSON=w.prototype.valueOf=w.prototype.value=Z1,w.prototype.first=w.prototype.head,Ui&&(w.prototype[Ui]=X1),w},li=Kg();Lr?((Lr.exports=li)._=li,_s._=li):_t._=li}).call(zr)})(Qa,Qa.exports);var pt=Qa.exports;const Ml={FdSave:RE,FdWarningDanger:Kl,FdInfoCircle:OE,FdInfoBold:yl};var fc=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(fc||{}),Xr=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(Xr||{}),Oi=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(Oi||{});const rm={[Xr.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[Xr.DANGER]:{icon:"red-500",button:"primary-dark"},[Xr.WARNING]:{icon:"yellow-400",button:"primary-dark"}},ol=({color:e=Xr.PRIMARY,variant:r="solid",children:n,autoFocus:o,...a})=>{const u=rm[e].button,l=r==="outlined"?`bg-transparent text-white border border-white hover:border-white hover:bg-white hover:text-${u}`:`text-white bg-${u} border border-${u} hover:border-white hover:bg-white hover:text-${u}`;return $.jsx("button",{autoFocus:o,className:Ot("w-28 rounded p-1.5 text-xs font-medium hover:font-bold focus:outline-none",l),...a,children:n})},oP=({name:e,color:r=Xr.PRIMARY,className:n="w-10 h-10"})=>{const o=Ml[e]||Ml.FdInfoCircle,a=`text-${rm[r].icon}`;return $.jsx(o,{className:Ot(n,a)})},aP=({id:e,title:r,message:n,icon:o,type:a,color:u,zIndex:l=3e3,views:f,width:d=520,hasOverlay:v=!0,onClose:g,onEdit:_})=>{const O=y=>{g({id:e,reason:y})};N.useEffect(()=>{function y(E){E.key==="Escape"&&O(Oi.CANCELED)}return window.addEventListener("keyup",y),()=>{window.removeEventListener("keyup",y)}},[]);const m=pt.merge(pt.values(f==null?void 0:f.toggles).flatMap(y=>y.value?y.warnings||[]:[]),f==null?void 0:f.tips),S=(y,E)=>{var I;if(!(f!=null&&f.toggles))return;const D=pt.cloneDeep(f);(I=D.toggles)!=null&&I[y]&&(D.toggles[y].value=E),_({id:e,views:D})};return go.createPortal($.jsx(Za,{appear:!0,show:!0,as:N.Fragment,children:$.jsx("div",{className:Ot("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":v}),style:{zIndex:l},onClick:()=>O(Oi.CANCELED),children:$.jsx(Za.Child,{as:N.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:$.jsx("div",{"data-cy":"confirmation-modal-cy",className:"relative rounded-md border border-grey-200 bg-grey-500",style:{width:d},onClick:y=>y.stopPropagation(),children:$.jsxs("div",{className:"flex flex-col items-center gap-5 p-6 px-12",children:[o?$.jsx("div",{className:"flex items-center justify-center",children:$.jsx(oP,{name:o,color:u})}):null,$.jsx(sP,{condition:r,children:$.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-white text-center",children:r})}),$.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium text-white",children:n}),$.jsx("div",{className:"text-xs text-white",children:pt.values(f==null?void 0:f.toggles).map(y=>$.jsx("div",{children:$.jsxs("label",{htmlFor:y.key,className:"flex items-center",children:[$.jsx(tm,{size:"xs",value:y.value,onChange:E=>S(y.key,E)}),$.jsx("span",{className:"ml-1",children:y.title})]})},y.key))}),$.jsx(uP,{warnings:m}),$.jsx("div",{className:"flex items-center gap-4 p-1",children:a===fc.CONFIRM?$.jsxs($.Fragment,{children:[$.jsx(ol,{autoFocus:!0,color:u,onClick:()=>O(Oi.CONFIRMED),children:"Confirm"}),$.jsx(ol,{color:u,variant:"outlined",onClick:()=>O(Oi.CANCELED),children:"Cancel"})]}):$.jsx(ol,{autoFocus:!0,onClick:()=>O(),children:"OK"})})]})})})})}),document.querySelector("body"))},sP=e=>e.condition?$.jsx($.Fragment,{children:e.children}):null,uP=e=>e.warnings?$.jsx(Za,{appear:!0,show:!!e.warnings.length,as:N.Fragment,children:$.jsx("div",{className:"flex flex-col gap-1 rounded-sm bg-grey-600 p-2 text-xs text-white",children:e.warnings.map((r,n)=>$.jsx(Za.Child,{as:N.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:$.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[$.jsx(Kl,{className:Ot({"h-3 w-3":!0,"text-orange-400":r.type==="warning","text-red-400":r.type==="error","text-primary-dark":r.type==="info"},"mr-3")}),$.jsx("div",{className:"flex-1",children:r.message})]})},`modal-warnings-${n}`))})}):null;function lP(e,r){const n=N.useRef(!1);N.useEffect(()=>{if(n.current)return e();n.current=!0},r)}var al=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function sl(e,r,n,o){e.addEventListener?e.addEventListener(r,n,o):e.attachEvent&&e.attachEvent("on".concat(r),function(){n(window.event)})}function im(e,r){for(var n=r.slice(0,r.length-1),o=0;o<n.length;o++)n[o]=e[n[o].toLowerCase()];return n}function om(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");for(var r=e.split(","),n=r.lastIndexOf("");n>=0;)r[n-1]+=",",r.splice(n,1),n=r.lastIndexOf("");return r}function cP(e,r){for(var n=e.length>=r.length?e:r,o=e.length>=r.length?r:e,a=!0,u=0;u<n.length;u++)o.indexOf(n[u])===-1&&(a=!1);return a}var ho={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":al?173:189,"=":al?61:187,";":al?59:186,"'":222,"[":219,"]":221,"\\":220},Un={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},Dl={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},xt={16:!1,18:!1,17:!1,91:!1},st={};for(var Da=1;Da<20;Da++)ho["f".concat(Da)]=111+Da;var Ve=[],fh=!1,am="all",sm=[],Ro=function(r){return ho[r.toLowerCase()]||Un[r.toLowerCase()]||r.toUpperCase().charCodeAt(0)},fP=function(r){return Object.keys(ho).find(function(n){return ho[n]===r})},dP=function(r){return Object.keys(Un).find(function(n){return Un[n]===r})};function um(e){am=e||"all"}function vo(){return am||"all"}function pP(){return Ve.slice(0)}function hP(){return Ve.map(function(e){return fP(e)||dP(e)||String.fromCharCode(e)})}function vP(){var e=[];return Object.keys(st).forEach(function(r){st[r].forEach(function(n){var o=n.key,a=n.scope,u=n.mods,l=n.shortcut;e.push({scope:a,shortcut:l,mods:u,keys:o.split("+").map(function(f){return Ro(f)})})})}),e}function mP(e){var r=e.target||e.srcElement,n=r.tagName,o=!0;return(r.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!r.readOnly)&&(o=!1),o}function gP(e){return typeof e=="string"&&(e=Ro(e)),Ve.indexOf(e)!==-1}function yP(e,r){var n,o;e||(e=vo());for(var a in st)if(Object.prototype.hasOwnProperty.call(st,a))for(n=st[a],o=0;o<n.length;)n[o].scope===e?n.splice(o,1):o++;vo()===e&&um(r||"all")}function wP(e){var r=e.keyCode||e.which||e.charCode,n=Ve.indexOf(r);if(n>=0&&Ve.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&Ve.splice(0,Ve.length),(r===93||r===224)&&(r=91),r in xt){xt[r]=!1;for(var o in Un)Un[o]===r&&(Pn[o]=!1)}}function bP(e){if(typeof e>"u")Object.keys(st).forEach(function(l){return delete st[l]});else if(Array.isArray(e))e.forEach(function(l){l.key&&ul(l)});else if(typeof e=="object")e.key&&ul(e);else if(typeof e=="string"){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];var a=n[0],u=n[1];typeof a=="function"&&(u=a,a=""),ul({key:e,scope:a,method:u,splitKey:"+"})}}var ul=function(r){var n=r.key,o=r.scope,a=r.method,u=r.splitKey,l=u===void 0?"+":u,f=om(n);f.forEach(function(d){var v=d.split(l),g=v.length,_=v[g-1],O=_==="*"?"*":Ro(_);if(st[O]){o||(o=vo());var m=g>1?im(Un,v):[];st[O]=st[O].filter(function(S){var y=a?S.method===a:!0;return!(y&&S.scope===o&&cP(S.mods,m))})}})};function dh(e,r,n,o){if(r.element===o){var a;if(r.scope===n||r.scope==="all"){a=r.mods.length>0;for(var u in xt)Object.prototype.hasOwnProperty.call(xt,u)&&(!xt[u]&&r.mods.indexOf(+u)>-1||xt[u]&&r.mods.indexOf(+u)===-1)&&(a=!1);(r.mods.length===0&&!xt[16]&&!xt[18]&&!xt[17]&&!xt[91]||a||r.shortcut==="*")&&(r.keys=[],r.keys=r.keys.concat(Ve),r.method(e,r)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}}function ph(e,r){var n=st["*"],o=e.keyCode||e.which||e.charCode;if(Pn.filter.call(this,e)){if((o===93||o===224)&&(o=91),Ve.indexOf(o)===-1&&o!==229&&Ve.push(o),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(S){var y=Dl[S];e[S]&&Ve.indexOf(y)===-1?Ve.push(y):!e[S]&&Ve.indexOf(y)>-1?Ve.splice(Ve.indexOf(y),1):S==="metaKey"&&e[S]&&Ve.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(Ve=Ve.slice(Ve.indexOf(y))))}),o in xt){xt[o]=!0;for(var a in Un)Un[a]===o&&(Pn[a]=!0);if(!n)return}for(var u in xt)Object.prototype.hasOwnProperty.call(xt,u)&&(xt[u]=e[Dl[u]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Ve.indexOf(17)===-1&&Ve.push(17),Ve.indexOf(18)===-1&&Ve.push(18),xt[17]=!0,xt[18]=!0);var l=vo();if(n)for(var f=0;f<n.length;f++)n[f].scope===l&&(e.type==="keydown"&&n[f].keydown||e.type==="keyup"&&n[f].keyup)&&dh(e,n[f],l,r);if(o in st){for(var d=0;d<st[o].length;d++)if((e.type==="keydown"&&st[o][d].keydown||e.type==="keyup"&&st[o][d].keyup)&&st[o][d].key){for(var v=st[o][d],g=v.splitKey,_=v.key.split(g),O=[],m=0;m<_.length;m++)O.push(Ro(_[m]));O.sort().join("")===Ve.sort().join("")&&dh(e,v,l,r)}}}}function _P(e){return sm.indexOf(e)>-1}function Pn(e,r,n){Ve=[];var o=om(e),a=[],u="all",l=document,f=0,d=!1,v=!0,g="+",_=!1;for(n===void 0&&typeof r=="function"&&(n=r),Object.prototype.toString.call(r)==="[object Object]"&&(r.scope&&(u=r.scope),r.element&&(l=r.element),r.keyup&&(d=r.keyup),r.keydown!==void 0&&(v=r.keydown),r.capture!==void 0&&(_=r.capture),typeof r.splitKey=="string"&&(g=r.splitKey)),typeof r=="string"&&(u=r);f<o.length;f++)e=o[f].split(g),a=[],e.length>1&&(a=im(Un,e)),e=e[e.length-1],e=e==="*"?"*":Ro(e),e in st||(st[e]=[]),st[e].push({keyup:d,keydown:v,scope:u,mods:a,shortcut:o[f],method:n,key:o[f],splitKey:g,element:l});typeof l<"u"&&!_P(l)&&window&&(sm.push(l),sl(l,"keydown",function(O){ph(O,l)},_),fh||(fh=!0,sl(window,"focus",function(){Ve=[]},_)),sl(l,"keyup",function(O){ph(O,l),wP(O)},_))}function SP(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(st).forEach(function(n){var o=st[n].filter(function(a){return a.scope===r&&a.shortcut===e});o.forEach(function(a){a&&a.method&&a.method()})})}var ll={getPressedKeyString:hP,setScope:um,getScope:vo,deleteScope:yP,getPressedKeyCodes:pP,getAllKeyCodes:vP,isPressed:gP,filter:mP,trigger:SP,unbind:bP,keyMap:ho,modifier:Un,modifierMap:Dl};for(var cl in ll)Object.prototype.hasOwnProperty.call(ll,cl)&&(Pn[cl]=ll[cl]);if(typeof window<"u"){var EP=window.hotkeys;Pn.noConflict=function(e){return e&&window.hotkeys===Pn&&(window.hotkeys=EP),Pn},window.hotkeys=Pn}Pn.filter=()=>!0;function xP(e,r,n,o){n instanceof Array&&(o=n,n=void 0),o=o||[],n=n||{};const{preventDefault:a=!0}=n,u=N.useCallback((f,d)=>{a&&f.preventDefault(),setTimeout(()=>r(f,d))},o),l=()=>{Pn.unbind(e,u)};N.useEffect(()=>(Pn(e,n,u),l),[e,n,u])}const OP=e=>{const r=N.useRef(null);return N.useEffect(()=>{const n=o=>{r.current&&!r.current.contains(o.target)&&e(o)};return document.addEventListener("click",n,!0),()=>{document.removeEventListener("click",n,!0)}},[e]),r};function TP(e){const r=N.useRef();return N.useEffect(()=>{r.current=e},[e]),r.current}function CP(e){const r=N.useRef(e);return N.useEffect(()=>{r.current=e},[e]),r}function RP(e){const r=N.useRef(null);return N.useEffect(()=>{e&&(typeof e=="function"?e(r.current):e.current=r.current)}),r}function PP(e){const[r,n]=N.useState(e),o=(u,l)=>{n(f=>({...f,features:{...f.features,[u]:{enabled:l}}}))},a=N.useCallback((...u)=>u.every(l=>{var f;return(f=r.features[l])==null?void 0:f.enabled}),[r.features]);return{setFeature:o,isFeatureEnabled:a}}const lm=N.createContext(""),AP=e=>$.jsx(lm.Provider,{value:e.value,children:e.children}),IP=()=>{const e=N.useContext(lm);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function LP(e){const[r,n]=N.useState(e),o=N.useMemo(()=>MP(r,n),[]);return{state:r,actions:{...o,set:a=>{n(typeof a=="function"?a:u=>({...u,...a}))}}}}function MP(e,r=()=>{}){return Object.keys(e).reduce((o,a)=>({...o,[`set${pt.upperFirst(a)}`]:u=>r(l=>({...l,[a]:u}))}),{})}const DP=(e,r,n={})=>{n={timeout:200,...n};const o=N.useRef(),a=()=>{o.current&&(clearTimeout(o.current),o.current=null)};return N.useCallback((u,...l)=>{a(),r&&u.detail===1&&(o.current=setTimeout(()=>{r(u,...l)},n.timeout)),u.detail%2===0&&e(u,...l)},[r,e,n.timeout])};function tr(e){return typeof e=="function"}function cm(e){var r=function(o){Error.call(o),o.stack=new Error().stack},n=e(r);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var fl=cm(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
|
|
203
203
|
`+n.map(function(o,a){return a+1+") "+o.toString()}).join(`
|
|
204
204
|
`):"",this.name="UnsubscriptionError",this.errors=n}});function kl(e,r){if(e){var n=e.indexOf(r);0<=n&&e.splice(n,1)}}var ps=function(){function e(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var r,n,o,a,u;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var f=Sl(l),d=f.next();!d.done;d=f.next()){var v=d.value;v.remove(this)}}catch(y){r={error:y}}finally{try{d&&!d.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}else l.remove(this);var g=this.initialTeardown;if(tr(g))try{g()}catch(y){u=y instanceof fl?y.errors:[y]}var _=this._finalizers;if(_){this._finalizers=null;try{for(var O=Sl(_),m=O.next();!m.done;m=O.next()){var S=m.value;try{hh(S)}catch(y){u=u??[],y instanceof fl?u=fo(fo([],Ka(u)),Ka(y.errors)):u.push(y)}}}catch(y){o={error:y}}finally{try{m&&!m.done&&(a=O.return)&&a.call(O)}finally{if(o)throw o.error}}}if(u)throw new fl(u)}},e.prototype.add=function(r){var n;if(r&&r!==this)if(this.closed)hh(r);else{if(r instanceof e){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(r)}},e.prototype._hasParent=function(r){var n=this._parentage;return n===r||Array.isArray(n)&&n.includes(r)},e.prototype._addParent=function(r){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(r),n):n?[n,r]:r},e.prototype._removeParent=function(r){var n=this._parentage;n===r?this._parentage=null:Array.isArray(n)&&kl(n,r)},e.prototype.remove=function(r){var n=this._finalizers;n&&kl(n,r),r instanceof e&&r._removeParent(this)},e.EMPTY=function(){var r=new e;return r.closed=!0,r}(),e}(),fm=ps.EMPTY;function dm(e){return e instanceof ps||e&&"closed"in e&&tr(e.remove)&&tr(e.add)&&tr(e.unsubscribe)}function hh(e){tr(e)?e():e.unsubscribe()}var pm={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Nl={setTimeout:function(e,r){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var a=Nl.delegate;return a!=null&&a.setTimeout?a.setTimeout.apply(a,fo([e,r],Ka(n))):setTimeout.apply(void 0,fo([e,r],Ka(n)))},clearTimeout:function(e){var r=Nl.delegate;return((r==null?void 0:r.clearTimeout)||clearTimeout)(e)},delegate:void 0};function kP(e){Nl.setTimeout(function(){throw e})}function vh(){}function Ha(e){e()}var hm=function(e){is(r,e);function r(n){var o=e.call(this)||this;return o.isStopped=!1,n?(o.destination=n,dm(n)&&n.add(o)):o.destination=FP,o}return r.create=function(n,o,a){return new $l(n,o,a)},r.prototype.next=function(n){this.isStopped||this._next(n)},r.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(n){this.destination.next(n)},r.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(ps),NP=Function.prototype.bind;function dl(e,r){return NP.call(e,r)}var $P=function(){function e(r){this.partialObserver=r}return e.prototype.next=function(r){var n=this.partialObserver;if(n.next)try{n.next(r)}catch(o){ka(o)}},e.prototype.error=function(r){var n=this.partialObserver;if(n.error)try{n.error(r)}catch(o){ka(o)}else ka(r)},e.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(n){ka(n)}},e}(),$l=function(e){is(r,e);function r(n,o,a){var u=e.call(this)||this,l;if(tr(n)||!n)l={next:n??void 0,error:o??void 0,complete:a??void 0};else{var f;u&&pm.useDeprecatedNextContext?(f=Object.create(n),f.unsubscribe=function(){return u.unsubscribe()},l={next:n.next&&dl(n.next,f),error:n.error&&dl(n.error,f),complete:n.complete&&dl(n.complete,f)}):l=n}return u.destination=new $P(l),u}return r}(hm);function ka(e){kP(e)}function jP(e){throw e}var FP={closed:!0,next:vh,error:jP,complete:vh},WP=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function UP(e){return e}function HP(e){return e.length===0?UP:e.length===1?e[0]:function(n){return e.reduce(function(o,a){return a(o)},n)}}var mh=function(){function e(r){r&&(this._subscribe=r)}return e.prototype.lift=function(r){var n=new e;return n.source=this,n.operator=r,n},e.prototype.subscribe=function(r,n,o){var a=this,u=zP(r)?r:new $l(r,n,o);return Ha(function(){var l=a,f=l.operator,d=l.source;u.add(f?f.call(u,d):d?a._subscribe(u):a._trySubscribe(u))}),u},e.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(n){r.error(n)}},e.prototype.forEach=function(r,n){var o=this;return n=gh(n),new n(function(a,u){var l=new $l({next:function(f){try{r(f)}catch(d){u(d),l.unsubscribe()}},error:u,complete:a});o.subscribe(l)})},e.prototype._subscribe=function(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)},e.prototype[WP]=function(){return this},e.prototype.pipe=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return HP(r)(this)},e.prototype.toPromise=function(r){var n=this;return r=gh(r),new r(function(o,a){var u;n.subscribe(function(l){return u=l},function(l){return a(l)},function(){return o(u)})})},e.create=function(r){return new e(r)},e}();function gh(e){var r;return(r=e??pm.Promise)!==null&&r!==void 0?r:Promise}function BP(e){return e&&tr(e.next)&&tr(e.error)&&tr(e.complete)}function zP(e){return e&&e instanceof hm||BP(e)&&dm(e)}var qP=cm(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ti=function(e){is(r,e);function r(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return r.prototype.lift=function(n){var o=new yh(this,this);return o.operator=n,o},r.prototype._throwIfClosed=function(){if(this.closed)throw new qP},r.prototype.next=function(n){var o=this;Ha(function(){var a,u;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var l=Sl(o.currentObservers),f=l.next();!f.done;f=l.next()){var d=f.value;d.next(n)}}catch(v){a={error:v}}finally{try{f&&!f.done&&(u=l.return)&&u.call(l)}finally{if(a)throw a.error}}}})},r.prototype.error=function(n){var o=this;Ha(function(){if(o._throwIfClosed(),!o.isStopped){o.hasError=o.isStopped=!0,o.thrownError=n;for(var a=o.observers;a.length;)a.shift().error(n)}})},r.prototype.complete=function(){var n=this;Ha(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var o=n.observers;o.length;)o.shift().complete()}})},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(r.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},r.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},r.prototype._innerSubscribe=function(n){var o=this,a=this,u=a.hasError,l=a.isStopped,f=a.observers;return u||l?fm:(this.currentObservers=null,f.push(n),new ps(function(){o.currentObservers=null,kl(f,n)}))},r.prototype._checkFinalizedStatuses=function(n){var o=this,a=o.hasError,u=o.thrownError,l=o.isStopped;a?n.error(u):l&&n.complete()},r.prototype.asObservable=function(){var n=new mh;return n.source=this,n},r.create=function(n,o){return new yh(n,o)},r}(mh),yh=function(e){is(r,e);function r(n,o){var a=e.call(this)||this;return a.destination=n,a.source=o,a}return r.prototype.next=function(n){var o,a;(a=(o=this.destination)===null||o===void 0?void 0:o.next)===null||a===void 0||a.call(o,n)},r.prototype.error=function(n){var o,a;(a=(o=this.destination)===null||o===void 0?void 0:o.error)===null||a===void 0||a.call(o,n)},r.prototype.complete=function(){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||o===void 0||o.call(n)},r.prototype._subscribe=function(n){var o,a;return(a=(o=this.source)===null||o===void 0?void 0:o.subscribe(n))!==null&&a!==void 0?a:fm},r}(ti),vm=(e=>(e.RELOAD="reload",e))(vm||{}),mm=(e=>(e.RENAME="rename",e))(mm||{});const GP=new ti,KP=new ti,YP=new ti;var gm=(e=>(e.SAVE_ALL="save-all",e))(gm||{});const XP=new ti;var ym=(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))(ym||{});const VP=new ti;var wm=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(wm||{});const JP=new ti,dc=31;var pc=(e=>(e.EMPTY="Please enter a valid name",e[e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${dc} characters`]="LENGTH_EXCEEDED",e.SHOULD_START_WITH_LETTER="The name can only start with a letter or a Japanese character",e.INVALID="Invalid name",e))(pc||{});function bm(e){if(e==="")throw new Error("Please enter a valid name");if(e.length>dc)throw new Error(pc.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 ZP(e){if(!e)return null;if(typeof e=="string")try{bm(e)}catch(r){return r.message}}function QP(e,r){let n="";if(["array","object"].includes(r))try{const o=JSON.parse(e);r==="array"&&(!Array.isArray(o)||!pt.isObject(o))&&(n=`Invalid value for type ${r}`),r==="object"&&(!pt.isObject(o)||Array.isArray(o))&&(n=`Invalid value for type ${r}`)}catch{n=`Invalid value for type ${r}`}return r==="date"&&(new RegExp(/^(0?[1-9]|[12][0-9]|3[01])[/-](0?[1-9]|1[012])[/-]\d{4}$/).test(e)||(n=`Invalid value for type ${r}`)),r==="number"&&isNaN(+e)&&(n=`Invalid value for type ${r}`),["boolean","bool"].includes(r)&&typeof e!="boolean"&&!["true","false"].includes(e)&&(n=`Invalid value for type ${r}`),n}function hs(e){const r=new RegExp(':(?!4D\\.\\w+)[CPK]?\\d+(?=(?:[^"\\\\]*(?:\\\\.|"(?:[^"\\\\]*\\\\.)*[^"\\\\]*"))*[^"]*$)',"gm");return e.replace(r,"")}var hc=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(hc||{});const br={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms",CLASSES_FOLDER:"ClassesFolder",REPORTS:"Reports"};var Cn=(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.MODEL="model",e.DATA_EXPLORER="dataexplorer",e.MOBILE="mobile",e.MOBILEFORM="mform",e.FILE="file",e.TEXT="text",e))(Cn||{}),ni=(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))(ni||{}),vc=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(vc||{});const _m="roles.json",Sm="qodlyApp.json",eA="model.4DModel";function Em(e){const r=e.split("."),n=r.pop(),o=r.join(".").split("/")[0];switch(!0){case n==="4DModel":return Cn.MODEL;case n==="WebForm":return Cn.WEBFORM;case(["4dm","4qs","4qm"].includes(n)&&o===br.METHODS):return Cn.METHOD;case(["4dm","4qs","4qm"].includes(n)&&o===br.CLASSES):return Cn.CLASS;case e===_m:return Cn.ROLES;case e===Sm:return Cn.SETTINGS;default:return Cn.TEXT}}function tA(e,r=!1){switch(e){case br.REPORTS:case"report":return"QoDoc";case br.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case br.CLASSES:case br.METHODS:return r?"4qs":"4dm";default:return""}}function nA(e,r=""){const n=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return n?n[1]:r}class xm{constructor(){Bd(this,"current",Promise.resolve())}lock(){let r;const n=new Promise(a=>{r=a}),o=this.current.then(()=>r);return this.current=n,o}}function Om(){const e=new xm;return async r=>{const n=await e.lock();try{const o=await r();return n(),o}catch(o){console.error(o),n();return}}}const Tm=pt.curry((e,r,n)=>e&&pt.get(n,e)===r),rA=pt.curry((e,r,n)=>pt.get(n,e)!==r),iA=pt.curry((e,r)=>pt.get(r,"id")!==e),oA=pt.curry((e,r)=>pt.get(r,"id")===e),aA=pt.curry((e,r)=>pt.get(r,"path")===e);function sA(e="id",r,n){return n.findIndex(Tm(e,r))!==-1}function uA(e){if(!e)return"";const{id:r,namespace:n}=e;return n&&r?`${n}:${r}`:r}function Cm(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function lA(e){return e.type==="object"}function Rm(e){var r;return e.kind==="relatedEntities"||((r=e.type)==null?void 0:r.includes("Selection"))||e.behavior==="relatedEntities"}function Pm(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!Cm(e)}function cA(e){return Rm(e)||Pm(e)}function fA(e){return e.applyTo==="dataStore"}function dA(e){return e.applyTo==="dataClass"}function pA(e){return e.applyTo==="entity"}function hA(e){return e.applyTo==="entityCollection"}function vA(e){return e.type==="entity"}function mA(e){return e.type==="entitysel"}function Am(e){return e.dataType==="array"}function Im(e){return e.dataType==="object"}function Lm(e){return e.type==="scalar"}function gA(e){return Am(e)||Im(e)||Lm(e)}const yA=e=>e!=null&&e.type==="entity",wA=e=>e.type==="entitysel",bA=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",_A=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",SA=e=>e.type==="scalar"&&e.dataType==="date";function EA(){return new Promise((e,r)=>{window.addEventListener("bundle:ready",n=>n.data?e():r(n.caughtErr))})}var mo=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(mo||{}),Mm=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(Mm||{}),mc=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(mc||{});const xA={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function OA(e){var u;let r={};try{const l=((u=e.match(/\/\/%attributes = (.*)/))==null?void 0:u[1])||"";r=JSON.parse(l)}catch{}const{published4DMobile:n,...o}=r;return{...{invisible:!1,shared:!1,executedOnServer:!1,preemptive:mo.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!n,publishedRestOptions:n||{table:"",scope:mc.table}},...o}}function Dm(e){const r={};return e.invisible&&(r.invisible=!0),e.shared&&(r.shared=!0),e.executedOnServer&&(r.executedOnServer=!0),e.preemptive&&[mo.capable,mo.incapable].includes(e.preemptive)&&(r.preemptive=e.preemptive),e.publishedSoap&&(r.publishedSoap=!0,e.publishedWsdl&&(r.publishedWsdl=!0)),e.publishedWeb&&(r.publishedWeb=!0),e.publishedSql&&(r.publishedSql=!0),e.publishedRest&&e.publishedRestOptions&&(r.published4DMobile=e.publishedRestOptions),JSON.stringify(r).replace(/"(true|false)"/g,"$1")}function TA(e,r,n=!1){const o=pt.isString(r)?r:Dm(r);if(!n&&km(e))return e;const a=Nm(e);return`//%attributes = ${o}\r
|
|
205
|
-
${a}`}function km(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function Nm(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const CA=()=>Jl.uuid().replaceAll("-","").toUpperCase(),mt="/rest/$designer",Po="/rest/$designer-ext",vs="/$shared";function RA(...e){return r=>{if(e.length===0)return r;const n={...r};return e.forEach(o=>{typeof n[o]=="string"&&(n[o]=new Date(n[o]))}),n}}class jl extends Error{constructor(r,n,o){super(),this.url=r,this.response=n,this.data=o}log(){console.error("Error while sending the request",this)}}async function ze(e,r){const n=await window.fetch(e,r);if(/401/.test(n.status.toString())&&(window.location.href="/login.html?redirect=studio"),/^[45]/.test(n.status.toString())){let a;try{const u=await n.json();a=new jl(e,n,u)}catch{a=new jl(e,n)}throw a.log(),a}return await n.json()}function PA(e){return ze(Po,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function AA(e){return ze(Po,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const $m=()=>{const{host:e,protocol:r}=window.location,n=r==="https:";return{projectOpened:!1,remoteDebuggerMode:vc.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${n?"s":""}://${e}/remoteDebugger`,lsp:`ws${n?"s":""}://${e}/LSP`},isRestActive:!0}};async function IA(){const{hostname:e,host:r,protocol:n}=window.location,o=n==="https:";try{const a=await ze(mt,{method:"POST",body:JSON.stringify({verb:ni.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),u=(()=>{if(a.rendererPath)return a.rendererPath;const l=`http://${e}:${a.webServerHTTPPort}`,f=`https://${e}:${a.webServerHTTPSPort}`;return a.webServerHTTPPort&&a.webServerHTTPSPort?o?f:l:a.webServerHTTPPort?l:f})();return{projectOpened:a.webServerHTTPSPort>0||a.webServerHTTPPort>0,remoteDebuggerMode:a.remoteDebuggerMode,baseUrl:u,qodly:typeof a.qodly>"u"?!0:a.qodly,urls:{renderer:a.rendererPath||`${u}/$lib/renderer/`,debugger:`ws${o?"s":""}://${r}/remoteDebugger`,lsp:`ws${o?"s":""}://${r}/LSP`},isRestActive:a.isRESTActive}}catch(a){return console.error(a),$m()}}async function jm(e){return await ze(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function LA(...e){return(await Promise.all(e.map(o=>jm({root:o,verb:ni.GET_FOLDER})))).map(({children:o})=>o.map(({name:a,date:u,type:l})=>({name:a,type:l,date:u,path:`${l}/${a}`}))).flat()}function MA(e,r={}){const{sanitize:n=!0}=r;return ze(`/rest/$getWebForm/${e}`,{method:"GET"}).then(o=>{if(!(o!=null&&o.components)||!n)return o;const a=new Map;return{...o,components:pt.entries(o.components).map(([u,l])=>{const{resolvedName:f}=l.type;if(f==="WebformLoader"){const d=Jl.generate();a.set(u,d),u=d}return[u,l]}).reduce((u,[l,f])=>{var d;return f.nodes&&(f.nodes=f.nodes.map(v=>a.get(v)||v)),f.linkedNodes&&(f.linkedNodes=pt.entries(f.linkedNodes).reduce((v,[g,_])=>({...v,[g]:a.get(_)||_}),{})),(d=f.props)!=null&&d.events&&(f.props.events=f.props.events.map(v=>(v.type==="navigation"&&v.loader&&(v.loader=a.get(v.loader)||v.loader),v))),{...u,[l]:f}},{})}})}function DA(e){return ze(mt,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(r=>({...r,content:[Cn.METHOD,Cn.CLASS].includes(r.type)?hs(r.content):r.content}))}function kA(e){return e.type==="folder"?ze(Po,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):ze(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function NA(e){return e.type==="folder"?(await ze(Po,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await ze(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function $A(e){return ze(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function jA(e){return ze(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function FA(e){return(await ze(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function WA(...e){return await ze(mt,{method:"POST",body:JSON.stringify({verb:ni.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function UA(e){const r=await ze("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return r.isLogged&&r.success}async function HA(){return await ze("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function BA({name:e,path:r="",root:n="root",asText:o=!1}){return ze(mt,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:n,path:r,name:e,asText:o}),headers:new Headers({"Content-Type":"application/json"})})}async function zA(){try{const e=await ze(`${vs}/shared_datasources.json?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})});return typeof e=="string"?JSON.parse(e):e}catch{return{}}}async function qA(){try{const e=await ze(`${vs}/shared_css.json?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})});return typeof e=="string"?JSON.parse(e):e}catch{return{classes:[]}}}async function GA(){try{const e=await ze(`${vs}/saved_conditions.json?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})});return typeof e=="string"?JSON.parse(e):e}catch{return{conditions:[]}}}async function KA(){try{return await ze("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function YA(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const XA=Om(),VA=async e=>{const r={verb:ni.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:e};return XA(async()=>(await ze(mt,{method:"POST",body:JSON.stringify(r),headers:new Headers({"Content-Type":"application/json"})}),e))},Fm=async e=>{const r=await ze(mt,{method:"POST",body:JSON.stringify({...e,verb:ni.SET_FILE_CONTENT,root:hc.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),n=Em(`${e.path||"Sources"}/${e.name}`);return{...r,type:n,size:0}},JA=async e=>await Fm({name:"crafted_components.json",path:br.WEBFORMS,content:e});function ZA(e){return ze(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function QA(e){return ze(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function e2(e){return ze(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function t2(e){return ze(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}).then(r=>Array.isArray(r)?r:{...r,content:["4dm","4qm","4qs"].includes(r.ext)?hs(r.content):r.content})}function n2(e){return ze(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function r2(e){const r=new RegExp(/^\((.+)(?=\))/gi).exec(e);return r!==null?r[1]:""}function i2(e){const r=new RegExp(/(->)(.*)/gi).exec(e);if(r!==null)return r[0].replace("->","");const n=/:([^)]*)$/.exec(e);return n!==null?`result : ${n[1].trim()}`:""}function o2(e){const r=r2(e).split(/[;,]/g).filter(Boolean).map(a=>{const u=a.split(":")[0].trim(),l=a.split(":")[1].trim();return{name:u,type:l}}),n=i2(e),o=n?{name:n.split(":")[0].trim(),type:n.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:r,result:o}}async function a2(e,r){const o=e.split(".").pop();try{const a=await ze(mt,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:r,functionName:o}),headers:new Headers({"Content-Type":"application/json"})});a.content=hs(a.content);const{params:u,result:l}=o2(a.parameters);return{...a,params:u,returns:l}}catch(a){return console.error(a),{className:r,functionName:o,filePath:e,content:"",params:[]}}}var Wm=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(Wm||{});function s2(e,r){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...r}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(n=>{})}var Um=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(Um||{}),Hm=(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))(Hm||{}),Bm=(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))(Bm||{});const u2={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},l2={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=mt;exports.AppLoader=iP;exports.ControlledSwitch=tm;exports.DATASOURCE_THEMES=u2;exports.DatasourcesActions=mm;exports.DebuggerActions=wm;exports.DesignerRequestVerb=ni;exports.Dialog=bE;exports.DialogBody=Mh;exports.EActivity=Wm;exports.EDITOR=l2;exports.EIDENTIFIERS=Hm;exports.ERROR_CODES=Bm;exports.EWebFormStyleClassScope=Um;exports.EXT_API_PREFIX=Po;exports.FileFolderType=Cn;exports.FolderRootPath=br;exports.FolderRootType=hc;exports.HTTPError=jl;exports.IPreemptive=mo;exports.IPublished=Mm;exports.IPublishedRestScope=mc;exports.IdentityProvider=AP;exports.Incase=dO;exports.IndentLines=uv;exports.LogoSVG=nm;exports.LspActions=ym;exports.MAX_FILE_NAME_LENGTH=dc;exports.MODEL_TAB_PATH=eA;exports.Modal=aP;exports.ModalCloseReason=Oi;exports.ModalColor=Xr;exports.ModalIcons=Ml;exports.ModalType=fc;exports.Mutex=xm;exports.NameError=pc;exports.Overlay=Lh;exports.Portal=_h;exports.PublishOptions=xA;exports.ROLES_TAB_PATH=_m;exports.RemoteDebuggerMode=vc;exports.SETTINGS_TAB_PATH=Sm;exports.SHARED_API_PREFIX=vs;exports.Switcher=lv;exports.TabEventsActions=gm;exports.Tip=aR;exports.TipsProvider=iR;exports.Toast=Lx;exports.Tooltip=nP;exports.Tree=fO;exports.TreeIcon=rv;exports.TreeNode=Zl;exports.WebformActions=vm;exports._isArrayDatasource=bA;exports._isObjectDatasource=_A;exports.addAttributesToContent=TA;exports.addFolder=$A;exports.by=Tm;exports.byId=oA;exports.byPath=aA;exports.checkUpdates=PA;exports.createFolder=ZA;exports.datasourcesSubject=GP;exports.debuggerSubject=JP;exports.dropFile=NA;exports.dropFolder=FA;exports.exists=sA;exports.extractWebformName=nA;exports.generateUUID=CA;exports.getAppSettings=IA;exports.getCatalog=HA;exports.getDatasourceId=uA;exports.getDefaultAppSettings=$m;exports.getFile=DA;exports.getFileContent=BA;exports.getFileExtentionFromType=tA;exports.getFilesInfo=WA;exports.getFolder=jm;exports.getFolders=LA;exports.getFunctionContent=a2;exports.getMonacoTheme=YA;exports.getNodeInfo=t2;exports.getSavedConditions=GA;exports.getSharedCSS=qA;exports.getSharedDatasources=zA;exports.getTypeFromExtension=Em;exports.getUserPrivileges=KA;exports.getWebForm=MA;exports.hasAttributesString=km;exports.http=ze;exports.installUpdates=AA;exports.isArrayDatasource=Am;exports.isDataClassMethod=dA;exports.isDataStoreMethod=fA;exports.isDateDatasource=SA;exports.isEntity=yA;exports.isEntityDatasource=vA;exports.isEntityMethod=pA;exports.isEntitySelection=wA;exports.isEntitySelectionDatasource=mA;exports.isEntitySelectionMethod=hA;exports.isObjectAttribute=lA;exports.isObjectDatasource=Im;exports.isRelatedAttribute=cA;exports.isRelatedEntitiesAttribute=Rm;exports.isRelatedEntityAttribute=Pm;exports.isScalarDatasource=Lm;exports.isSimpleAttribute=Cm;exports.isSimpleDatasource=gA;exports.loadDS=EA;exports.log=s2;exports.login=UA;exports.lspSubject=VP;exports.moveItem=e2;exports.outBy=rA;exports.outById=iA;exports.parseAttributes=OA;exports.queue=Om;exports.removeAttributesString=Nm;exports.removeItem=QA;exports.renameFile=kA;exports.renameFolder=jA;exports.sanitizeContent=hs;exports.saveContent=n2;exports.setCraftedComponents=JA;exports.setFileContent=Fm;exports.setSharedSources=VA;exports.stringifyAttributes=Dm;exports.tabEventsSubject=XP;exports.toastSubject=YP;exports.transformDates=RA;exports.useDidMountEffect=lP;exports.useDoubleClick=DP;exports.useFeatureFlags=PP;exports.useForwardedRef=RP;exports.useHotkeys=xP;exports.useIdentity=IP;exports.useOutsideClick=OP;exports.usePrevious=TP;exports.useStateObject=LP;exports.useStateRef=CP;exports.useTip=Bv;exports.validateName=bm;exports.validateServerSide=ZP;exports.validateValue=QP;exports.webformSubject=KP;
|
|
205
|
+
${a}`}function km(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function Nm(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const CA=()=>Jl.uuid().replaceAll("-","").toUpperCase(),mt="/rest/$designer",Po="/rest/$designer-ext",vs="/$shared";function RA(...e){return r=>{if(e.length===0)return r;const n={...r};return e.forEach(o=>{typeof n[o]=="string"&&(n[o]=new Date(n[o]))}),n}}class jl extends Error{constructor(r,n,o){super(),this.url=r,this.response=n,this.data=o}log(){console.error("Error while sending the request",this)}}async function ze(e,r){const n=await window.fetch(e,r);if(/401/.test(n.status.toString())&&(window.location.href="/login.html?redirect=studio"),/^[45]/.test(n.status.toString())){let a;try{const u=await n.json();a=new jl(e,n,u)}catch{a=new jl(e,n)}throw a.log(),a}return await n.json()}function PA(e){return ze(Po,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function AA(e){return ze(Po,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const $m=()=>{const{host:e,protocol:r}=window.location,n=r==="https:";return{projectOpened:!1,remoteDebuggerMode:vc.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${n?"s":""}://${e}/remoteDebugger`,lsp:`ws${n?"s":""}://${e}/LSP`},isRestActive:!0}};async function IA(){const{hostname:e,host:r,protocol:n}=window.location,o=n==="https:";try{const a=await ze(mt,{method:"POST",body:JSON.stringify({verb:ni.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),u=(()=>{if(a.rendererPath)return a.rendererPath;const l=`http://${e}:${a.webServerHTTPPort}`,f=`https://${e}:${a.webServerHTTPSPort}`;return a.webServerHTTPPort&&a.webServerHTTPSPort?o?f:l:a.webServerHTTPPort?l:f})();return{projectOpened:a.webServerHTTPSPort>0||a.webServerHTTPPort>0,remoteDebuggerMode:a.remoteDebuggerMode,baseUrl:u,qodly:typeof a.qodly>"u"?!0:a.qodly,urls:{renderer:a.rendererPath||`${u}/$lib/renderer/`,debugger:`ws${o?"s":""}://${r}/remoteDebugger`,lsp:`ws${o?"s":""}://${r}/LSP`},isRestActive:a.isRESTActive}}catch(a){return console.error(a),$m()}}async function jm(e){return await ze(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function LA(...e){return(await Promise.all(e.map(o=>jm({root:o,verb:ni.GET_FOLDER})))).map(({children:o})=>o.map(({name:a,date:u,type:l})=>({name:a,type:l,date:u,path:`${l}/${a}`}))).flat()}function MA(e,r={}){const{sanitize:n=!0}=r;return ze(`/rest/$getWebForm/${e}`,{method:"GET"}).then(o=>{if(!(o!=null&&o.components)||!n)return o;const a=new Map;return{...o,components:pt.entries(o.components).map(([u,l])=>{const{resolvedName:f}=l.type;if(f==="WebformLoader"){const d=Jl.generate();a.set(u,d),u=d}return[u,l]}).reduce((u,[l,f])=>{var d;return f.nodes&&(f.nodes=f.nodes.map(v=>a.get(v)||v)),f.linkedNodes&&(f.linkedNodes=pt.entries(f.linkedNodes).reduce((v,[g,_])=>({...v,[g]:a.get(_)||_}),{})),(d=f.props)!=null&&d.events&&(f.props.events=f.props.events.map(v=>(v.type==="navigation"&&v.loader&&(v.loader=a.get(v.loader)||v.loader),v))),{...u,[l]:f}},{})}})}function DA(e){return ze(mt,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(r=>({...r,content:[Cn.METHOD,Cn.CLASS].includes(r.type)?hs(r.content):r.content}))}function kA(e){return e.type==="folder"?ze(Po,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):ze(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function NA(e){return e.type==="folder"?(await ze(Po,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await ze(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function $A(e){return ze(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function jA(e){return ze(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function FA(e){return(await ze(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function WA(...e){return await ze(mt,{method:"POST",body:JSON.stringify({verb:ni.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function UA(e){const r=await ze("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return r.isLogged&&r.success}async function HA(){return await ze("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function BA({name:e,path:r="",root:n="root",asText:o=!1}){return ze(mt,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:n,path:r,name:e,asText:o}),headers:new Headers({"Content-Type":"application/json"})})}async function zA(){try{const e=await ze(`${vs}/shared_datasources.json?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})});return typeof e=="string"?JSON.parse(e):e}catch{return{}}}async function qA(){try{const e=await ze(`${vs}/shared_css.json?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})});return typeof e=="string"?JSON.parse(e):e}catch{return{classes:[]}}}async function GA(){try{const e=await ze(`${vs}/saved_conditions.json?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})});return typeof e=="string"?JSON.parse(e):e}catch{return{conditions:[]}}}async function KA(){try{return await ze("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function YA(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const XA=Om(),VA=async e=>{const r={verb:ni.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:e};return XA(async()=>(await ze(mt,{method:"POST",body:JSON.stringify(r),headers:new Headers({"Content-Type":"application/json"})}),e))},Fm=async e=>{const r=await ze(mt,{method:"POST",body:JSON.stringify({...e,verb:ni.SET_FILE_CONTENT,root:hc.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),n=Em(`${e.path||"Sources"}/${e.name}`);return{...r,type:n,size:0}},JA=async e=>await Fm({name:"crafted_components.json",path:br.WEBFORMS,content:e});function ZA(e){return ze(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function QA(e){return ze(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function eI(e){return ze(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function tI(e){return ze(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}).then(r=>Array.isArray(r)?r:{...r,content:["4dm","4qm","4qs"].includes(r.ext)?hs(r.content):r.content})}function nI(e){return ze(mt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function rI(e){const r=new RegExp(/^\((.+)(?=\))/gi).exec(e);return r!==null?r[1]:""}function iI(e){const r=new RegExp(/(->)(.*)/gi).exec(e);if(r!==null)return r[0].replace("->","");const n=/:([^)]*)$/.exec(e);return n!==null?`result : ${n[1].trim()}`:""}function oI(e){const r=rI(e).split(/[;,]/g).filter(Boolean).map(a=>{const u=a.split(":")[0].trim(),l=a.split(":")[1].trim();return{name:u,type:l}}),n=iI(e),o=n?{name:n.split(":")[0].trim(),type:n.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:r,result:o}}async function aI(e,r){const o=e.split(".").pop();try{const a=await ze(mt,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:r,functionName:o}),headers:new Headers({"Content-Type":"application/json"})});a.content=hs(a.content);const{params:u,result:l}=oI(a.parameters);return{...a,params:u,returns:l}}catch(a){return console.error(a),{className:r,functionName:o,filePath:e,content:"",params:[]}}}var Wm=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(Wm||{});function sI(e,r){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...r}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(n=>{})}var Um=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(Um||{}),Hm=(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))(Hm||{}),Bm=(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))(Bm||{});const uI={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},lI={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=mt;exports.AppLoader=iP;exports.ControlledSwitch=tm;exports.DATASOURCE_THEMES=uI;exports.DatasourcesActions=mm;exports.DebuggerActions=wm;exports.DesignerRequestVerb=ni;exports.Dialog=bE;exports.DialogBody=Mh;exports.EActivity=Wm;exports.EDITOR=lI;exports.EIDENTIFIERS=Hm;exports.ERROR_CODES=Bm;exports.EWebFormStyleClassScope=Um;exports.EXT_API_PREFIX=Po;exports.FileFolderType=Cn;exports.FolderRootPath=br;exports.FolderRootType=hc;exports.HTTPError=jl;exports.IPreemptive=mo;exports.IPublished=Mm;exports.IPublishedRestScope=mc;exports.IdentityProvider=AP;exports.Incase=dO;exports.IndentLines=uv;exports.LogoSVG=nm;exports.LspActions=ym;exports.MAX_FILE_NAME_LENGTH=dc;exports.MODEL_TAB_PATH=eA;exports.Modal=aP;exports.ModalCloseReason=Oi;exports.ModalColor=Xr;exports.ModalIcons=Ml;exports.ModalType=fc;exports.Mutex=xm;exports.NameError=pc;exports.Overlay=Lh;exports.Portal=_h;exports.PublishOptions=xA;exports.ROLES_TAB_PATH=_m;exports.RemoteDebuggerMode=vc;exports.SETTINGS_TAB_PATH=Sm;exports.SHARED_API_PREFIX=vs;exports.Switcher=lv;exports.TabEventsActions=gm;exports.Tip=aR;exports.TipsProvider=iR;exports.Toast=Lx;exports.Tooltip=nP;exports.Tree=fO;exports.TreeIcon=rv;exports.TreeNode=Zl;exports.WebformActions=vm;exports._isArrayDatasource=bA;exports._isObjectDatasource=_A;exports.addAttributesToContent=TA;exports.addFolder=$A;exports.by=Tm;exports.byId=oA;exports.byPath=aA;exports.checkUpdates=PA;exports.createFolder=ZA;exports.datasourcesSubject=GP;exports.debuggerSubject=JP;exports.dropFile=NA;exports.dropFolder=FA;exports.exists=sA;exports.extractWebformName=nA;exports.generateUUID=CA;exports.getAppSettings=IA;exports.getCatalog=HA;exports.getDatasourceId=uA;exports.getDefaultAppSettings=$m;exports.getFile=DA;exports.getFileContent=BA;exports.getFileExtentionFromType=tA;exports.getFilesInfo=WA;exports.getFolder=jm;exports.getFolders=LA;exports.getFunctionContent=aI;exports.getMonacoTheme=YA;exports.getNodeInfo=tI;exports.getSavedConditions=GA;exports.getSharedCSS=qA;exports.getSharedDatasources=zA;exports.getTypeFromExtension=Em;exports.getUserPrivileges=KA;exports.getWebForm=MA;exports.hasAttributesString=km;exports.http=ze;exports.installUpdates=AA;exports.isArrayDatasource=Am;exports.isDataClassMethod=dA;exports.isDataStoreMethod=fA;exports.isDateDatasource=SA;exports.isEntity=yA;exports.isEntityDatasource=vA;exports.isEntityMethod=pA;exports.isEntitySelection=wA;exports.isEntitySelectionDatasource=mA;exports.isEntitySelectionMethod=hA;exports.isObjectAttribute=lA;exports.isObjectDatasource=Im;exports.isRelatedAttribute=cA;exports.isRelatedEntitiesAttribute=Rm;exports.isRelatedEntityAttribute=Pm;exports.isScalarDatasource=Lm;exports.isSimpleAttribute=Cm;exports.isSimpleDatasource=gA;exports.loadDS=EA;exports.log=sI;exports.login=UA;exports.lspSubject=VP;exports.moveItem=eI;exports.outBy=rA;exports.outById=iA;exports.parseAttributes=OA;exports.queue=Om;exports.removeAttributesString=Nm;exports.removeItem=QA;exports.renameFile=kA;exports.renameFolder=jA;exports.sanitizeContent=hs;exports.saveContent=nI;exports.setCraftedComponents=JA;exports.setFileContent=Fm;exports.setSharedSources=VA;exports.stringifyAttributes=Dm;exports.tabEventsSubject=XP;exports.toastSubject=YP;exports.transformDates=RA;exports.useDidMountEffect=lP;exports.useDoubleClick=DP;exports.useFeatureFlags=PP;exports.useForwardedRef=RP;exports.useHotkeys=xP;exports.useIdentity=IP;exports.useOutsideClick=OP;exports.usePrevious=TP;exports.useStateObject=LP;exports.useStateRef=CP;exports.useTip=Bv;exports.validateName=bm;exports.validateServerSide=ZP;exports.validateValue=QP;exports.webformSubject=KP;
|
|
206
206
|
//# sourceMappingURL=index.cjs.js.map
|