@react-form-builder/viewer-bundle 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -49,7 +49,7 @@ Error generating stack: `+l.message+`
49
49
  `+l.stack}return{value:t,source:e,stack:a,digest:null}}function _h(t,e,n){return{value:t,source:null,stack:n??null,digest:e??null}}function $h(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var xD=typeof WeakMap=="function"?WeakMap:Map;function dR(t,e,n){n=Kl(-1,n),n.tag=3,n.payload={element:null};var c=e.value;return n.callback=function(){OW||(OW=!0,yX=c),$h(t,e)},n}function oR(t,e,n){n=Kl(-1,n),n.tag=3;var c=t.type.getDerivedStateFromError;if(typeof c=="function"){var a=e.value;n.payload=function(){return c(a)},n.callback=function(){$h(t,e)}}var l=t.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){$h(t,e),typeof c!="function"&&(Qr===null?Qr=new Set([this]):Qr.add(this));var r=e.stack;this.componentDidCatch(e.value,{componentStack:r!==null?r:""})}),n}function uR(t,e,n){var c=t.pingCache;if(c===null){c=t.pingCache=new xD;var a=new Set;c.set(e,a)}else a=c.get(e),a===void 0&&(a=new Set,c.set(e,a));a.has(n)||(a.add(n),t=_D.bind(null,t,e,n),e.then(t,t))}function bR(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function sR(t,e,n,c,a){return t.mode&1?(t.flags|=65536,t.lanes=a,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=Kl(-1,1),e.tag=2,Dr(n,e,1))),n.lanes|=1),t)}var kD=Dl.ReactCurrentOwner,Tc=!1;function Jc(t,e,n,c){e.child=t===null?Iz(e,null,n,c):Xo(e,t.child,n,c)}function yR(t,e,n,c,a){n=n.render;var l=e.ref;return ho(e,a),c=Bh(t,e,n,c,l,a),n=Qh(),t!==null&&!Tc?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~a,_l(t,e,a)):(rn&&n&&Mh(e),e.flags|=1,Jc(t,e,c,a),e.child)}function ZR(t,e,n,c,a){if(t===null){var l=n.type;return typeof l=="function"&&!vX(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=l,WR(t,e,l,c,a)):(t=HW(n.type,null,c,e,e.mode,a),t.ref=e.ref,t.return=e,e.child=t)}if(l=t.child,!(t.lanes&a)){var r=l.memoizedProps;if(n=n.compare,n=n!==null?n:jb,n(r,c)&&t.ref===e.ref)return _l(t,e,a)}return e.flags|=1,t=Kr(l,c),t.ref=e.ref,t.return=e,e.child=t}function WR(t,e,n,c,a){if(t!==null){var l=t.memoizedProps;if(jb(l,c)&&t.ref===e.ref)if(Tc=!1,e.pendingProps=c=l,(t.lanes&a)!==0)t.flags&131072&&(Tc=!0);else return e.lanes=t.lanes,_l(t,e,a)}return qh(t,e,n,c,a)}function mR(t,e,n){var c=e.pendingProps,a=c.children,l=t!==null?t.memoizedState:null;if(c.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},Be(po,la),la|=n;else{if(!(n&1073741824))return t=l!==null?l.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,Be(po,la),la|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=l!==null?l.baseLanes:n,Be(po,la),la|=c}else l!==null?(c=l.baseLanes|n,e.memoizedState=null):c=n,Be(po,la),la|=c;return Jc(t,e,a,n),e.child}function LR(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function qh(t,e,n,c,a){var l=Hc(n)?ki:oc.current;return l=yo(e,l),ho(e,a),n=Bh(t,e,n,c,l,a),c=Qh(),t!==null&&!Tc?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~a,_l(t,e,a)):(rn&&c&&Mh(e),e.flags|=1,Jc(t,e,n,a),e.child)}function hR(t,e,n,c,a){if(Hc(n)){var l=!0;yW(e)}else l=!1;if(ho(e,a),e.stateNode===null)VW(t,e),Az(e,n,c),kh(e,n,c,a),c=!0;else if(t===null){var r=e.stateNode,d=e.memoizedProps;r.props=d;var o=r.context,i=n.contextType;typeof i=="object"&&i!==null?i=Ya(i):(i=Hc(n)?ki:oc.current,i=yo(e,i));var u=n.getDerivedStateFromProps,b=typeof u=="function"||typeof r.getSnapshotBeforeUpdate=="function";b||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(d!==c||o!==i)&&Oz(e,r,c,i),Tr=!1;var s=e.memoizedState;r.state=s,GW(e,c,r,a),o=e.memoizedState,d!==c||s!==o||Fc.current||Tr?(typeof u=="function"&&(xh(e,n,u,c),o=e.memoizedState),(d=Tr||jz(e,n,d,c,s,o,i))?(b||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(e.flags|=4194308)):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=c,e.memoizedState=o),r.props=c,r.state=o,r.context=i,c=d):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),c=!1)}else{r=e.stateNode,wz(t,e),d=e.memoizedProps,i=e.type===e.elementType?d:Qa(e.type,d),r.props=i,b=e.pendingProps,s=r.context,o=n.contextType,typeof o=="object"&&o!==null?o=Ya(o):(o=Hc(n)?ki:oc.current,o=yo(e,o));var Z=n.getDerivedStateFromProps;(u=typeof Z=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(d!==b||s!==o)&&Oz(e,r,c,o),Tr=!1,s=e.memoizedState,r.state=s,GW(e,c,r,a);var W=e.memoizedState;d!==b||s!==W||Fc.current||Tr?(typeof Z=="function"&&(xh(e,n,Z,c),W=e.memoizedState),(i=Tr||jz(e,n,i,c,s,W,o)||!1)?(u||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(c,W,o),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(c,W,o)),typeof r.componentDidUpdate=="function"&&(e.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof r.componentDidUpdate!="function"||d===t.memoizedProps&&s===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||d===t.memoizedProps&&s===t.memoizedState||(e.flags|=1024),e.memoizedProps=c,e.memoizedState=W),r.props=c,r.state=W,r.context=o,c=i):(typeof r.componentDidUpdate!="function"||d===t.memoizedProps&&s===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||d===t.memoizedProps&&s===t.memoizedState||(e.flags|=1024),c=!1)}return tX(t,e,n,c,l,a)}function tX(t,e,n,c,a,l){LR(t,e);var r=(e.flags&128)!==0;if(!c&&!r)return a&&Yz(e,n,!1),_l(t,e,l);c=e.stateNode,kD.current=e;var d=r&&typeof n.getDerivedStateFromError!="function"?null:c.render();return e.flags|=1,t!==null&&r?(e.child=Xo(e,t.child,null,l),e.child=Xo(e,null,d,l)):Jc(t,e,d,l),e.memoizedState=c.state,a&&Yz(e,n,!0),e.child}function XR(t){var e=t.stateNode;e.pendingContext?vz(t,e.pendingContext,e.pendingContext!==e.context):e.context&&vz(t,e.context,!1),Ih(t,e.containerInfo)}function vR(t,e,n,c,a){return mo(),wh(a),e.flags|=256,Jc(t,e,n,c),e.child}var eX={dehydrated:null,treeContext:null,retryLane:0};function nX(t){return{baseLanes:t,cachePool:null,transitions:null}}function GR(t,e,n){var c=e.pendingProps,a=Wn.current,l=!1,r=(e.flags&128)!==0,d;if((d=r)||(d=t!==null&&t.memoizedState===null?!1:(a&2)!==0),d?(l=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(a|=1),Be(Wn,a&1),t===null)return Rh(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(r=c.children,t=c.fallback,l?(c=e.mode,l=e.child,r={mode:"hidden",children:r},!(c&1)&&l!==null?(l.childLanes=0,l.pendingProps=r):l=TW(r,c,0,null),t=Ei(t,c,n,null),l.return=e,t.return=e,l.sibling=t,e.child=l,e.child.memoizedState=nX(n),e.memoizedState=eX,t):cX(e,r));if(a=t.memoizedState,a!==null&&(d=a.dehydrated,d!==null))return ID(t,e,r,c,d,a,n);if(l){l=c.fallback,r=e.mode,a=t.child,d=a.sibling;var o={mode:"hidden",children:c.children};return!(r&1)&&e.child!==a?(c=e.child,c.childLanes=0,c.pendingProps=o,e.deletions=null):(c=Kr(a,o),c.subtreeFlags=a.subtreeFlags&14680064),d!==null?l=Kr(d,l):(l=Ei(l,r,n,null),l.flags|=2),l.return=e,c.return=e,c.sibling=l,e.child=c,c=l,l=e.child,r=t.child.memoizedState,r=r===null?nX(n):{baseLanes:r.baseLanes|n,cachePool:null,transitions:r.transitions},l.memoizedState=r,l.childLanes=t.childLanes&~n,e.memoizedState=eX,c}return l=t.child,t=l.sibling,c=Kr(l,{mode:"visible",children:c.children}),!(e.mode&1)&&(c.lanes=n),c.return=e,c.sibling=null,t!==null&&(n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=c,e.memoizedState=null,c}function cX(t,e){return e=TW({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function wW(t,e,n,c){return c!==null&&wh(c),Xo(e,t.child,null,n),t=cX(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function ID(t,e,n,c,a,l,r){if(n)return e.flags&256?(e.flags&=-257,c=_h(Error(Wt(422))),wW(t,e,r,c)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(l=c.fallback,a=e.mode,c=TW({mode:"visible",children:c.children},a,0,null),l=Ei(l,a,r,null),l.flags|=2,c.return=e,l.return=e,c.sibling=l,e.child=c,e.mode&1&&Xo(e,t.child,null,r),e.child.memoizedState=nX(r),e.memoizedState=eX,l);if(!(e.mode&1))return wW(t,e,r,null);if(a.data==="$!"){if(c=a.nextSibling&&a.nextSibling.dataset,c)var d=c.dgst;return c=d,l=Error(Wt(419)),c=_h(l,c,void 0),wW(t,e,r,c)}if(d=(r&t.childLanes)!==0,Tc||d){if(c=Qn,c!==null){switch(r&-r){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=a&(c.suspendedLanes|r)?0:a,a!==0&&a!==l.retryLane&&(l.retryLane=a,Pl(t,a),Pa(c,t,a,-1))}return XX(),c=_h(Error(Wt(421))),wW(t,e,r,c)}return a.data==="$?"?(e.flags|=128,e.child=t.child,e=$D.bind(null,t),a._reactRetry=e,null):(t=l.treeContext,aa=Ir(a.nextSibling),ca=e,rn=!0,Ba=null,t!==null&&(va[Ga++]=Ul,va[Ga++]=El,va[Ga++]=Ii,Ul=t.id,El=t.overflow,Ii=e),e=cX(e,c.children),e.flags|=4096,e)}function YR(t,e,n){t.lanes|=e;var c=t.alternate;c!==null&&(c.lanes|=e),jh(t.return,e,n)}function aX(t,e,n,c,a){var l=t.memoizedState;l===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:c,tail:n,tailMode:a}:(l.isBackwards=e,l.rendering=null,l.renderingStartTime=0,l.last=c,l.tail=n,l.tailMode=a)}function pR(t,e,n){var c=e.pendingProps,a=c.revealOrder,l=c.tail;if(Jc(t,e,c.children,n),c=Wn.current,c&2)c=c&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&YR(t,n,e);else if(t.tag===19)YR(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}c&=1}if(Be(Wn,c),!(e.mode&1))e.memoizedState=null;else switch(a){case"forwards":for(n=e.child,a=null;n!==null;)t=n.alternate,t!==null&&JW(t)===null&&(a=n),n=n.sibling;n=a,n===null?(a=e.child,e.child=null):(a=n.sibling,n.sibling=null),aX(e,!1,a,n,l);break;case"backwards":for(n=null,a=e.child,e.child=null;a!==null;){if(t=a.alternate,t!==null&&JW(t)===null){e.child=a;break}t=a.sibling,a.sibling=n,n=a,a=t}aX(e,!0,n,null,l);break;case"together":aX(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function VW(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function _l(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Di|=e.lanes,!(n&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(Wt(153));if(e.child!==null){for(t=e.child,n=Kr(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Kr(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function SD(t,e,n){switch(e.tag){case 3:XR(e),mo();break;case 5:Sz(e);break;case 1:Hc(e.type)&&yW(e);break;case 4:Ih(e,e.stateNode.containerInfo);break;case 10:var c=e.type._context,a=e.memoizedProps.value;Be(hW,c._currentValue),c._currentValue=a;break;case 13:if(c=e.memoizedState,c!==null)return c.dehydrated!==null?(Be(Wn,Wn.current&1),e.flags|=128,null):n&e.child.childLanes?GR(t,e,n):(Be(Wn,Wn.current&1),t=_l(t,e,n),t!==null?t.sibling:null);Be(Wn,Wn.current&1);break;case 19:if(c=(n&e.childLanes)!==0,t.flags&128){if(c)return pR(t,e,n);e.flags|=128}if(a=e.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Be(Wn,Wn.current),c)break;return null;case 22:case 23:return e.lanes=0,mR(t,e,n)}return _l(t,e,n)}var JR,lX,fR,MR;JR=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},lX=function(){},fR=function(t,e,n,c){var a=t.memoizedProps;if(a!==c){t=e.stateNode,Hi(Ll.current);var l=null;switch(n){case"input":a=j2(t,a),c=j2(t,c),l=[];break;case"select":a=Zn({},a,{value:void 0}),c=Zn({},c,{value:void 0}),l=[];break;case"textarea":a=x2(t,a),c=x2(t,c),l=[];break;default:typeof a.onClick!="function"&&typeof c.onClick=="function"&&(t.onclick=uW)}I2(n,c);var r;n=null;for(i in a)if(!c.hasOwnProperty(i)&&a.hasOwnProperty(i)&&a[i]!=null)if(i==="style"){var d=a[i];for(r in d)d.hasOwnProperty(r)&&(n||(n={}),n[r]="")}else i!=="dangerouslySetInnerHTML"&&i!=="children"&&i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(yb.hasOwnProperty(i)?l||(l=[]):(l=l||[]).push(i,null));for(i in c){var o=c[i];if(d=a!=null?a[i]:void 0,c.hasOwnProperty(i)&&o!==d&&(o!=null||d!=null))if(i==="style")if(d){for(r in d)!d.hasOwnProperty(r)||o&&o.hasOwnProperty(r)||(n||(n={}),n[r]="");for(r in o)o.hasOwnProperty(r)&&d[r]!==o[r]&&(n||(n={}),n[r]=o[r])}else n||(l||(l=[]),l.push(i,n)),n=o;else i==="dangerouslySetInnerHTML"?(o=o?o.__html:void 0,d=d?d.__html:void 0,o!=null&&d!==o&&(l=l||[]).push(i,o)):i==="children"?typeof o!="string"&&typeof o!="number"||(l=l||[]).push(i,""+o):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&(yb.hasOwnProperty(i)?(o!=null&&i==="onScroll"&&Ke("scroll",t),l||d===o||(l=[])):(l=l||[]).push(i,o))}n&&(l=l||[]).push("style",n);var i=l;(e.updateQueue=i)&&(e.flags|=4)}},MR=function(t,e,n,c){n!==c&&(e.flags|=4)};function Pb(t,e){if(!rn)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var c=null;n!==null;)n.alternate!==null&&(c=n),n=n.sibling;c===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:c.sibling=null}}function bc(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,c=0;if(e)for(var a=t.child;a!==null;)n|=a.lanes|a.childLanes,c|=a.subtreeFlags&14680064,c|=a.flags&14680064,a.return=t,a=a.sibling;else for(a=t.child;a!==null;)n|=a.lanes|a.childLanes,c|=a.subtreeFlags,c|=a.flags,a.return=t,a=a.sibling;return t.subtreeFlags|=c,t.childLanes=n,e}function FD(t,e,n){var c=e.pendingProps;switch(Nh(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return bc(e),null;case 1:return Hc(e.type)&&sW(),bc(e),null;case 3:return c=e.stateNode,vo(),_e(Fc),_e(oc),Hh(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(t===null||t.child===null)&&(LW(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Ba!==null&&(mX(Ba),Ba=null))),lX(t,e),bc(e),null;case 5:Sh(e);var a=Hi(Db.current);if(n=e.type,t!==null&&e.stateNode!=null)fR(t,e,n,c,a),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!c){if(e.stateNode===null)throw Error(Wt(166));return bc(e),null}if(t=Hi(Ll.current),LW(e)){c=e.stateNode,n=e.type;var l=e.memoizedProps;switch(c[ml]=e,c[Ib]=l,t=(e.mode&1)!==0,n){case"dialog":Ke("cancel",c),Ke("close",c);break;case"iframe":case"object":case"embed":Ke("load",c);break;case"video":case"audio":for(a=0;a<Ob.length;a++)Ke(Ob[a],c);break;case"source":Ke("error",c);break;case"img":case"image":case"link":Ke("error",c),Ke("load",c);break;case"details":Ke("toggle",c);break;case"input":lN(c,l),Ke("invalid",c);break;case"select":c._wrapperState={wasMultiple:!!l.multiple},Ke("invalid",c);break;case"textarea":dN(c,l),Ke("invalid",c)}I2(n,l),a=null;for(var r in l)if(l.hasOwnProperty(r)){var d=l[r];r==="children"?typeof d=="string"?c.textContent!==d&&(l.suppressHydrationWarning!==!0&&oW(c.textContent,d,t),a=["children",d]):typeof d=="number"&&c.textContent!==""+d&&(l.suppressHydrationWarning!==!0&&oW(c.textContent,d,t),a=["children",""+d]):yb.hasOwnProperty(r)&&d!=null&&r==="onScroll"&&Ke("scroll",c)}switch(n){case"input":SZ(c),iN(c,l,!0);break;case"textarea":SZ(c),uN(c);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(c.onclick=uW)}c=a,e.updateQueue=c,c!==null&&(e.flags|=4)}else{r=a.nodeType===9?a:a.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=bN(n)),t==="http://www.w3.org/1999/xhtml"?n==="script"?(t=r.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof c.is=="string"?t=r.createElement(n,{is:c.is}):(t=r.createElement(n),n==="select"&&(r=t,c.multiple?r.multiple=!0:c.size&&(r.size=c.size))):t=r.createElementNS(t,n),t[ml]=e,t[Ib]=c,JR(t,e,!1,!1),e.stateNode=t;t:{switch(r=S2(n,c),n){case"dialog":Ke("cancel",t),Ke("close",t),a=c;break;case"iframe":case"object":case"embed":Ke("load",t),a=c;break;case"video":case"audio":for(a=0;a<Ob.length;a++)Ke(Ob[a],t);a=c;break;case"source":Ke("error",t),a=c;break;case"img":case"image":case"link":Ke("error",t),Ke("load",t),a=c;break;case"details":Ke("toggle",t),a=c;break;case"input":lN(t,c),a=j2(t,c),Ke("invalid",t);break;case"option":a=c;break;case"select":t._wrapperState={wasMultiple:!!c.multiple},a=Zn({},c,{value:void 0}),Ke("invalid",t);break;case"textarea":dN(t,c),a=x2(t,c),Ke("invalid",t);break;default:a=c}I2(n,a),d=a;for(l in d)if(d.hasOwnProperty(l)){var o=d[l];l==="style"?ZN(t,o):l==="dangerouslySetInnerHTML"?(o=o?o.__html:void 0,o!=null&&sN(t,o)):l==="children"?typeof o=="string"?(n!=="textarea"||o!=="")&&Lb(t,o):typeof o=="number"&&Lb(t,""+o):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(yb.hasOwnProperty(l)?o!=null&&l==="onScroll"&&Ke("scroll",t):o!=null&&p2(t,l,o,r))}switch(n){case"input":SZ(t),iN(t,c,!1);break;case"textarea":SZ(t),uN(t);break;case"option":c.value!=null&&t.setAttribute("value",""+gr(c.value));break;case"select":t.multiple=!!c.multiple,l=c.value,l!=null?to(t,!!c.multiple,l,!1):c.defaultValue!=null&&to(t,!!c.multiple,c.defaultValue,!0);break;default:typeof a.onClick=="function"&&(t.onclick=uW)}switch(n){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break t;case"img":c=!0;break t;default:c=!1}}c&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return bc(e),null;case 6:if(t&&e.stateNode!=null)MR(t,e,t.memoizedProps,c);else{if(typeof c!="string"&&e.stateNode===null)throw Error(Wt(166));if(n=Hi(Db.current),Hi(Ll.current),LW(e)){if(c=e.stateNode,n=e.memoizedProps,c[ml]=e,(l=c.nodeValue!==n)&&(t=ca,t!==null))switch(t.tag){case 3:oW(c.nodeValue,n,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&oW(c.nodeValue,n,(t.mode&1)!==0)}l&&(e.flags|=4)}else c=(n.nodeType===9?n:n.ownerDocument).createTextNode(c),c[ml]=e,e.stateNode=c}return bc(e),null;case 13:if(_e(Wn),c=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(rn&&aa!==null&&e.mode&1&&!(e.flags&128))zz(),mo(),e.flags|=98560,l=!1;else if(l=LW(e),c!==null&&c.dehydrated!==null){if(t===null){if(!l)throw Error(Wt(318));if(l=e.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(Wt(317));l[ml]=e}else mo(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;bc(e),l=!1}else Ba!==null&&(mX(Ba),Ba=null),l=!0;if(!l)return e.flags&65536?e:null}return e.flags&128?(e.lanes=n,e):(c=c!==null,c!==(t!==null&&t.memoizedState!==null)&&c&&(e.child.flags|=8192,e.mode&1&&(t===null||Wn.current&1?Hn===0&&(Hn=3):XX())),e.updateQueue!==null&&(e.flags|=4),bc(e),null);case 4:return vo(),lX(t,e),t===null&&xb(e.stateNode.containerInfo),bc(e),null;case 10:return Ch(e.type._context),bc(e),null;case 17:return Hc(e.type)&&sW(),bc(e),null;case 19:if(_e(Wn),l=e.memoizedState,l===null)return bc(e),null;if(c=(e.flags&128)!==0,r=l.rendering,r===null)if(c)Pb(l,!1);else{if(Hn!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(r=JW(t),r!==null){for(e.flags|=128,Pb(l,!1),c=r.updateQueue,c!==null&&(e.updateQueue=c,e.flags|=4),e.subtreeFlags=0,c=n,n=e.child;n!==null;)l=n,t=c,l.flags&=14680066,r=l.alternate,r===null?(l.childLanes=0,l.lanes=t,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=r.childLanes,l.lanes=r.lanes,l.child=r.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=r.memoizedProps,l.memoizedState=r.memoizedState,l.updateQueue=r.updateQueue,l.type=r.type,t=r.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return Be(Wn,Wn.current&1|2),e.child}t=t.sibling}l.tail!==null&&zn()>Jo&&(e.flags|=128,c=!0,Pb(l,!1),e.lanes=4194304)}else{if(!c)if(t=JW(r),t!==null){if(e.flags|=128,c=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),Pb(l,!0),l.tail===null&&l.tailMode==="hidden"&&!r.alternate&&!rn)return bc(e),null}else 2*zn()-l.renderingStartTime>Jo&&n!==1073741824&&(e.flags|=128,c=!0,Pb(l,!1),e.lanes=4194304);l.isBackwards?(r.sibling=e.child,e.child=r):(n=l.last,n!==null?n.sibling=r:e.child=r,l.last=r)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=zn(),e.sibling=null,n=Wn.current,Be(Wn,c?n&1|2:n&1),e):(bc(e),null);case 22:case 23:return hX(),c=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==c&&(e.flags|=8192),c&&e.mode&1?la&1073741824&&(bc(e),e.subtreeFlags&6&&(e.flags|=8192)):bc(e),null;case 24:return null;case 25:return null}throw Error(Wt(156,e.tag))}function HD(t,e){switch(Nh(e),e.tag){case 1:return Hc(e.type)&&sW(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return vo(),_e(Fc),_e(oc),Hh(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return Sh(e),null;case 13:if(_e(Wn),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(Wt(340));mo()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return _e(Wn),null;case 4:return vo(),null;case 10:return Ch(e.type._context),null;case 22:case 23:return hX(),null;case 24:return null;default:return null}}var gW=!1,sc=!1,TD=typeof WeakSet=="function"?WeakSet:Set,Ot=null;function Yo(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(c){Jn(t,e,c)}else n.current=null}function rX(t,e,n){try{n()}catch(c){Jn(t,e,c)}}var NR=!1;function DD(t,e){if(hh=$Z,t=az(),uh(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var c=n.getSelection&&n.getSelection();if(c&&c.rangeCount!==0){n=c.anchorNode;var a=c.anchorOffset,l=c.focusNode;c=c.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break t}var r=0,d=-1,o=-1,i=0,u=0,b=t,s=null;e:for(;;){for(var Z;b!==n||a!==0&&b.nodeType!==3||(d=r+a),b!==l||c!==0&&b.nodeType!==3||(o=r+c),b.nodeType===3&&(r+=b.nodeValue.length),(Z=b.firstChild)!==null;)s=b,b=Z;for(;;){if(b===t)break e;if(s===n&&++i===a&&(d=r),s===l&&++u===c&&(o=r),(Z=b.nextSibling)!==null)break;b=s,s=b.parentNode}b=Z}n=d===-1||o===-1?null:{start:d,end:o}}else n=null}n=n||{start:0,end:0}}else n=null;for(Xh={focusedElem:t,selectionRange:n},$Z=!1,Ot=e;Ot!==null;)if(e=Ot,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Ot=t;else for(;Ot!==null;){e=Ot;try{var W=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(W!==null){var m=W.memoizedProps,v=W.memoizedState,L=e.stateNode,X=L.getSnapshotBeforeUpdate(e.elementType===e.type?m:Qa(e.type,m),v);L.__reactInternalSnapshotBeforeUpdate=X}break;case 3:var Y=e.stateNode.containerInfo;Y.nodeType===1?Y.textContent="":Y.nodeType===9&&Y.documentElement&&Y.removeChild(Y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Wt(163))}}catch(p){Jn(e,e.return,p)}if(t=e.sibling,t!==null){t.return=e.return,Ot=t;break}Ot=e.return}return W=NR,NR=!1,W}function Kb(t,e,n){var c=e.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var a=c=c.next;do{if((a.tag&t)===t){var l=a.destroy;a.destroy=void 0,l!==void 0&&rX(e,n,l)}a=a.next}while(a!==c)}}function CW(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var c=n.create;n.destroy=c()}n=n.next}while(n!==e)}}function iX(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function zR(t){var e=t.alternate;e!==null&&(t.alternate=null,zR(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[ml],delete e[Ib],delete e[ph],delete e[MD],delete e[ND])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function RR(t){return t.tag===5||t.tag===3||t.tag===4}function wR(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||RR(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function dX(t,e,n){var c=t.tag;if(c===5||c===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=uW));else if(c!==4&&(t=t.child,t!==null))for(dX(t,e,n),t=t.sibling;t!==null;)dX(t,e,n),t=t.sibling}function oX(t,e,n){var c=t.tag;if(c===5||c===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(c!==4&&(t=t.child,t!==null))for(oX(t,e,n),t=t.sibling;t!==null;)oX(t,e,n),t=t.sibling}var tc=null,Ua=!1;function Br(t,e,n){for(n=n.child;n!==null;)VR(t,e,n),n=n.sibling}function VR(t,e,n){if(Wl&&typeof Wl.onCommitFiberUnmount=="function")try{Wl.onCommitFiberUnmount(QZ,n)}catch{}switch(n.tag){case 5:sc||Yo(n,e);case 6:var c=tc,a=Ua;tc=null,Br(t,e,n),tc=c,Ua=a,tc!==null&&(Ua?(t=tc,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):tc.removeChild(n.stateNode));break;case 18:tc!==null&&(Ua?(t=tc,n=n.stateNode,t.nodeType===8?Yh(t.parentNode,n):t.nodeType===1&&Yh(t,n),zb(t)):Yh(tc,n.stateNode));break;case 4:c=tc,a=Ua,tc=n.stateNode.containerInfo,Ua=!0,Br(t,e,n),tc=c,Ua=a;break;case 0:case 11:case 14:case 15:if(!sc&&(c=n.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){a=c=c.next;do{var l=a,r=l.destroy;l=l.tag,r!==void 0&&(l&2||l&4)&&rX(n,e,r),a=a.next}while(a!==c)}Br(t,e,n);break;case 1:if(!sc&&(Yo(n,e),c=n.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=n.memoizedProps,c.state=n.memoizedState,c.componentWillUnmount()}catch(d){Jn(n,e,d)}Br(t,e,n);break;case 21:Br(t,e,n);break;case 22:n.mode&1?(sc=(c=sc)||n.memoizedState!==null,Br(t,e,n),sc=c):Br(t,e,n);break;default:Br(t,e,n)}}function gR(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new TD),e.forEach(function(c){var a=qD.bind(null,t,c);n.has(c)||(n.add(c),c.then(a,a))})}}function Ea(t,e){var n=e.deletions;if(n!==null)for(var c=0;c<n.length;c++){var a=n[c];try{var l=t,r=e,d=r;t:for(;d!==null;){switch(d.tag){case 5:tc=d.stateNode,Ua=!1;break t;case 3:tc=d.stateNode.containerInfo,Ua=!0;break t;case 4:tc=d.stateNode.containerInfo,Ua=!0;break t}d=d.return}if(tc===null)throw Error(Wt(160));VR(l,r,a),tc=null,Ua=!1;var o=a.alternate;o!==null&&(o.return=null),a.return=null}catch(i){Jn(a,e,i)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)CR(e,t),e=e.sibling}function CR(t,e){var n=t.alternate,c=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Ea(e,t),Xl(t),c&4){try{Kb(3,t,t.return),CW(3,t)}catch(m){Jn(t,t.return,m)}try{Kb(5,t,t.return)}catch(m){Jn(t,t.return,m)}}break;case 1:Ea(e,t),Xl(t),c&512&&n!==null&&Yo(n,n.return);break;case 5:if(Ea(e,t),Xl(t),c&512&&n!==null&&Yo(n,n.return),t.flags&32){var a=t.stateNode;try{Lb(a,"")}catch(m){Jn(t,t.return,m)}}if(c&4&&(a=t.stateNode,a!=null)){var l=t.memoizedProps,r=n!==null?n.memoizedProps:l,d=t.type,o=t.updateQueue;if(t.updateQueue=null,o!==null)try{d==="input"&&l.type==="radio"&&l.name!=null&&rN(a,l),S2(d,r);var i=S2(d,l);for(r=0;r<o.length;r+=2){var u=o[r],b=o[r+1];u==="style"?ZN(a,b):u==="dangerouslySetInnerHTML"?sN(a,b):u==="children"?Lb(a,b):p2(a,u,b,i)}switch(d){case"input":A2(a,l);break;case"textarea":oN(a,l);break;case"select":var s=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!l.multiple;var Z=l.value;Z!=null?to(a,!!l.multiple,Z,!1):s!==!!l.multiple&&(l.defaultValue!=null?to(a,!!l.multiple,l.defaultValue,!0):to(a,!!l.multiple,l.multiple?[]:"",!1))}a[Ib]=l}catch(m){Jn(t,t.return,m)}}break;case 6:if(Ea(e,t),Xl(t),c&4){if(t.stateNode===null)throw Error(Wt(162));a=t.stateNode,l=t.memoizedProps;try{a.nodeValue=l}catch(m){Jn(t,t.return,m)}}break;case 3:if(Ea(e,t),Xl(t),c&4&&n!==null&&n.memoizedState.isDehydrated)try{zb(e.containerInfo)}catch(m){Jn(t,t.return,m)}break;case 4:Ea(e,t),Xl(t);break;case 13:Ea(e,t),Xl(t),a=t.child,a.flags&8192&&(l=a.memoizedState!==null,a.stateNode.isHidden=l,!l||a.alternate!==null&&a.alternate.memoizedState!==null||(sX=zn())),c&4&&gR(t);break;case 22:if(u=n!==null&&n.memoizedState!==null,t.mode&1?(sc=(i=sc)||u,Ea(e,t),sc=i):Ea(e,t),Xl(t),c&8192){if(i=t.memoizedState!==null,(t.stateNode.isHidden=i)&&!u&&t.mode&1)for(Ot=t,u=t.child;u!==null;){for(b=Ot=u;Ot!==null;){switch(s=Ot,Z=s.child,s.tag){case 0:case 11:case 14:case 15:Kb(4,s,s.return);break;case 1:Yo(s,s.return);var W=s.stateNode;if(typeof W.componentWillUnmount=="function"){c=s,n=s.return;try{e=c,W.props=e.memoizedProps,W.state=e.memoizedState,W.componentWillUnmount()}catch(m){Jn(c,n,m)}}break;case 5:Yo(s,s.return);break;case 22:if(s.memoizedState!==null){OR(b);continue}}Z!==null?(Z.return=s,Ot=Z):OR(b)}u=u.sibling}t:for(u=null,b=t;;){if(b.tag===5){if(u===null){u=b;try{a=b.stateNode,i?(l=a.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(d=b.stateNode,o=b.memoizedProps.style,r=o!=null&&o.hasOwnProperty("display")?o.display:null,d.style.display=yN("display",r))}catch(m){Jn(t,t.return,m)}}}else if(b.tag===6){if(u===null)try{b.stateNode.nodeValue=i?"":b.memoizedProps}catch(m){Jn(t,t.return,m)}}else if((b.tag!==22&&b.tag!==23||b.memoizedState===null||b===t)&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===t)break t;for(;b.sibling===null;){if(b.return===null||b.return===t)break t;u===b&&(u=null),b=b.return}u===b&&(u=null),b.sibling.return=b.return,b=b.sibling}}break;case 19:Ea(e,t),Xl(t),c&4&&gR(t);break;case 21:break;default:Ea(e,t),Xl(t)}}function Xl(t){var e=t.flags;if(e&2){try{t:{for(var n=t.return;n!==null;){if(RR(n)){var c=n;break t}n=n.return}throw Error(Wt(160))}switch(c.tag){case 5:var a=c.stateNode;c.flags&32&&(Lb(a,""),c.flags&=-33);var l=wR(t);oX(t,l,a);break;case 3:case 4:var r=c.stateNode.containerInfo,d=wR(t);dX(t,d,r);break;default:throw Error(Wt(161))}}catch(o){Jn(t,t.return,o)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function BD(t,e,n){Ot=t,jR(t)}function jR(t,e,n){for(var c=(t.mode&1)!==0;Ot!==null;){var a=Ot,l=a.child;if(a.tag===22&&c){var r=a.memoizedState!==null||gW;if(!r){var d=a.alternate,o=d!==null&&d.memoizedState!==null||sc;d=gW;var i=sc;if(gW=r,(sc=o)&&!i)for(Ot=a;Ot!==null;)r=Ot,o=r.child,r.tag===22&&r.memoizedState!==null?xR(a):o!==null?(o.return=r,Ot=o):xR(a);for(;l!==null;)Ot=l,jR(l),l=l.sibling;Ot=a,gW=d,sc=i}AR(t)}else a.subtreeFlags&8772&&l!==null?(l.return=a,Ot=l):AR(t)}}function AR(t){for(;Ot!==null;){var e=Ot;if(e.flags&8772){var n=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:sc||CW(5,e);break;case 1:var c=e.stateNode;if(e.flags&4&&!sc)if(n===null)c.componentDidMount();else{var a=e.elementType===e.type?n.memoizedProps:Qa(e.type,n.memoizedProps);c.componentDidUpdate(a,n.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var l=e.updateQueue;l!==null&&gz(e,l,c);break;case 3:var r=e.updateQueue;if(r!==null){if(n=null,e.child!==null)switch(e.child.tag){case 5:n=e.child.stateNode;break;case 1:n=e.child.stateNode}gz(e,r,n)}break;case 5:var d=e.stateNode;if(n===null&&e.flags&4){n=d;var o=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":o.autoFocus&&n.focus();break;case"img":o.src&&(n.src=o.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var i=e.alternate;if(i!==null){var u=i.memoizedState;if(u!==null){var b=u.dehydrated;b!==null&&zb(b)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Wt(163))}sc||e.flags&512&&iX(e)}catch(s){Jn(e,e.return,s)}}if(e===t){Ot=null;break}if(n=e.sibling,n!==null){n.return=e.return,Ot=n;break}Ot=e.return}}function OR(t){for(;Ot!==null;){var e=Ot;if(e===t){Ot=null;break}var n=e.sibling;if(n!==null){n.return=e.return,Ot=n;break}Ot=e.return}}function xR(t){for(;Ot!==null;){var e=Ot;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{CW(4,e)}catch(o){Jn(e,n,o)}break;case 1:var c=e.stateNode;if(typeof c.componentDidMount=="function"){var a=e.return;try{c.componentDidMount()}catch(o){Jn(e,a,o)}}var l=e.return;try{iX(e)}catch(o){Jn(e,l,o)}break;case 5:var r=e.return;try{iX(e)}catch(o){Jn(e,r,o)}}}catch(o){Jn(e,e.return,o)}if(e===t){Ot=null;break}var d=e.sibling;if(d!==null){d.return=e.return,Ot=d;break}Ot=e.return}}var QD=Math.ceil,jW=Dl.ReactCurrentDispatcher,uX=Dl.ReactCurrentOwner,Ja=Dl.ReactCurrentBatchConfig,Ye=0,Qn=null,On=null,ec=0,la=0,po=Sr(0),Hn=0,_b=null,Di=0,AW=0,bX=0,$b=null,Dc=null,sX=0,Jo=1/0,$l=null,OW=!1,yX=null,Qr=null,xW=!1,Ur=null,kW=0,qb=0,ZX=null,IW=-1,SW=0;function fc(){return Ye&6?zn():IW!==-1?IW:IW=zn()}function Er(t){return t.mode&1?Ye&2&&ec!==0?ec&-ec:RD.transition!==null?(SW===0&&(SW=RN()),SW):(t=ke,t!==0||(t=window.event,t=t===void 0?16:kN(t.type)),t):1}function Pa(t,e,n,c){if(50<qb)throw qb=0,ZX=null,Error(Wt(185));pb(t,n,c),(!(Ye&2)||t!==Qn)&&(t===Qn&&(!(Ye&2)&&(AW|=n),Hn===4&&Pr(t,ec)),Bc(t,c),n===1&&Ye===0&&!(e.mode&1)&&(Jo=zn()+500,ZW&&Hr()))}function Bc(t,e){var n=t.callbackNode;R4(t,e);var c=PZ(t,t===Qn?ec:0);if(c===0)n!==null&&MN(n),t.callbackNode=null,t.callbackPriority=0;else if(e=c&-c,t.callbackPriority!==e){if(n!=null&&MN(n),e===1)t.tag===0?zD(IR.bind(null,t)):pz(IR.bind(null,t)),JD(function(){!(Ye&6)&&Hr()}),n=null;else{switch(wN(c)){case 1:n=U2;break;case 4:n=NN;break;case 16:n=BZ;break;case 536870912:n=zN;break;default:n=BZ}n=UR(n,kR.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function kR(t,e){if(IW=-1,SW=0,Ye&6)throw Error(Wt(327));var n=t.callbackNode;if(fo()&&t.callbackNode!==n)return null;var c=PZ(t,t===Qn?ec:0);if(c===0)return null;if(c&30||c&t.expiredLanes||e)e=FW(t,c);else{e=c;var a=Ye;Ye|=2;var l=FR();(Qn!==t||ec!==e)&&($l=null,Jo=zn()+500,Qi(t,e));do try{PD();break}catch(d){SR(t,d)}while(1);gh(),jW.current=l,Ye=a,On!==null?e=0:(Qn=null,ec=0,e=Hn)}if(e!==0){if(e===2&&(a=E2(t),a!==0&&(c=a,e=WX(t,a))),e===1)throw n=_b,Qi(t,0),Pr(t,c),Bc(t,zn()),n;if(e===6)Pr(t,c);else{if(a=t.current.alternate,!(c&30)&&!UD(a)&&(e=FW(t,c),e===2&&(l=E2(t),l!==0&&(c=l,e=WX(t,l))),e===1))throw n=_b,Qi(t,0),Pr(t,c),Bc(t,zn()),n;switch(t.finishedWork=a,t.finishedLanes=c,e){case 0:case 1:throw Error(Wt(345));case 2:Ui(t,Dc,$l);break;case 3:if(Pr(t,c),(c&130023424)===c&&(e=sX+500-zn(),10<e)){if(PZ(t,0)!==0)break;if(a=t.suspendedLanes,(a&c)!==c){fc(),t.pingedLanes|=t.suspendedLanes&a;break}t.timeoutHandle=Gh(Ui.bind(null,t,Dc,$l),e);break}Ui(t,Dc,$l);break;case 4:if(Pr(t,c),(c&4194240)===c)break;for(e=t.eventTimes,a=-1;0<c;){var r=31-Ta(c);l=1<<r,r=e[r],r>a&&(a=r),c&=~l}if(c=a,c=zn()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*QD(c/1960))-c,10<c){t.timeoutHandle=Gh(Ui.bind(null,t,Dc,$l),c);break}Ui(t,Dc,$l);break;case 5:Ui(t,Dc,$l);break;default:throw Error(Wt(329))}}}return Bc(t,zn()),t.callbackNode===n?kR.bind(null,t):null}function WX(t,e){var n=$b;return t.current.memoizedState.isDehydrated&&(Qi(t,e).flags|=256),t=FW(t,e),t!==2&&(e=Dc,Dc=n,e!==null&&mX(e)),t}function mX(t){Dc===null?Dc=t:Dc.push.apply(Dc,t)}function UD(t){for(var e=t;;){if(e.flags&16384){var n=e.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var c=0;c<n.length;c++){var a=n[c],l=a.getSnapshot;a=a.value;try{if(!Da(l(),a))return!1}catch{return!1}}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Pr(t,e){for(e&=~bX,e&=~AW,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-Ta(e),c=1<<n;t[n]=-1,e&=~c}}function IR(t){if(Ye&6)throw Error(Wt(327));fo();var e=PZ(t,0);if(!(e&1))return Bc(t,zn()),null;var n=FW(t,e);if(t.tag!==0&&n===2){var c=E2(t);c!==0&&(e=c,n=WX(t,c))}if(n===1)throw n=_b,Qi(t,0),Pr(t,e),Bc(t,zn()),n;if(n===6)throw Error(Wt(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,Ui(t,Dc,$l),Bc(t,zn()),null}function LX(t,e){var n=Ye;Ye|=1;try{return t(e)}finally{Ye=n,Ye===0&&(Jo=zn()+500,ZW&&Hr())}}function Bi(t){Ur!==null&&Ur.tag===0&&!(Ye&6)&&fo();var e=Ye;Ye|=1;var n=Ja.transition,c=ke;try{if(Ja.transition=null,ke=1,t)return t()}finally{ke=c,Ja.transition=n,Ye=e,!(Ye&6)&&Hr()}}function hX(){la=po.current,_e(po)}function Qi(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,pD(n)),On!==null)for(n=On.return;n!==null;){var c=n;switch(Nh(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&sW();break;case 3:vo(),_e(Fc),_e(oc),Hh();break;case 5:Sh(c);break;case 4:vo();break;case 13:_e(Wn);break;case 19:_e(Wn);break;case 10:Ch(c.type._context);break;case 22:case 23:hX()}n=n.return}if(Qn=t,On=t=Kr(t.current,null),ec=la=e,Hn=0,_b=null,bX=AW=Di=0,Dc=$b=null,Fi!==null){for(e=0;e<Fi.length;e++)if(n=Fi[e],c=n.interleaved,c!==null){n.interleaved=null;var a=c.next,l=n.pending;if(l!==null){var r=l.next;l.next=a,c.next=r}n.pending=c}Fi=null}return t}function SR(t,e){do{var n=On;try{if(gh(),fW.current=RW,MW){for(var c=mn.memoizedState;c!==null;){var a=c.queue;a!==null&&(a.pending=null),c=c.next}MW=!1}if(Ti=0,Bn=Fn=mn=null,Bb=!1,Qb=0,uX.current=null,n===null||n.return===null){Hn=1,_b=e,On=null;break}t:{var l=t,r=n.return,d=n,o=e;if(e=ec,d.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){var i=o,u=d,b=u.tag;if(!(u.mode&1)&&(b===0||b===11||b===15)){var s=u.alternate;s?(u.updateQueue=s.updateQueue,u.memoizedState=s.memoizedState,u.lanes=s.lanes):(u.updateQueue=null,u.memoizedState=null)}var Z=bR(r);if(Z!==null){Z.flags&=-257,sR(Z,r,d,l,e),Z.mode&1&&uR(l,i,e),e=Z,o=i;var W=e.updateQueue;if(W===null){var m=new Set;m.add(o),e.updateQueue=m}else W.add(o);break t}else{if(!(e&1)){uR(l,i,e),XX();break t}o=Error(Wt(426))}}else if(rn&&d.mode&1){var v=bR(r);if(v!==null){!(v.flags&65536)&&(v.flags|=256),sR(v,r,d,l,e),wh(Go(o,d));break t}}l=o=Go(o,d),Hn!==4&&(Hn=2),$b===null?$b=[l]:$b.push(l),l=r;do{switch(l.tag){case 3:l.flags|=65536,e&=-e,l.lanes|=e;var L=dR(l,o,e);Vz(l,L);break t;case 1:d=o;var X=l.type,Y=l.stateNode;if(!(l.flags&128)&&(typeof X.getDerivedStateFromError=="function"||Y!==null&&typeof Y.componentDidCatch=="function"&&(Qr===null||!Qr.has(Y)))){l.flags|=65536,e&=-e,l.lanes|=e;var p=oR(l,d,e);Vz(l,p);break t}}l=l.return}while(l!==null)}TR(n)}catch(J){e=J,On===n&&n!==null&&(On=n=n.return);continue}break}while(1)}function FR(){var t=jW.current;return jW.current=RW,t===null?RW:t}function XX(){(Hn===0||Hn===3||Hn===2)&&(Hn=4),Qn===null||!(Di&268435455)&&!(AW&268435455)||Pr(Qn,ec)}function FW(t,e){var n=Ye;Ye|=2;var c=FR();(Qn!==t||ec!==e)&&($l=null,Qi(t,e));do try{ED();break}catch(a){SR(t,a)}while(1);if(gh(),Ye=n,jW.current=c,On!==null)throw Error(Wt(261));return Qn=null,ec=0,Hn}function ED(){for(;On!==null;)HR(On)}function PD(){for(;On!==null&&!v4();)HR(On)}function HR(t){var e=QR(t.alternate,t,la);t.memoizedProps=t.pendingProps,e===null?TR(t):On=e,uX.current=null}function TR(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&32768){if(n=HD(n,e),n!==null){n.flags&=32767,On=n;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Hn=6,On=null;return}}else if(n=FD(n,e,la),n!==null){On=n;return}if(e=e.sibling,e!==null){On=e;return}On=e=t}while(e!==null);Hn===0&&(Hn=5)}function Ui(t,e,n){var c=ke,a=Ja.transition;try{Ja.transition=null,ke=1,KD(t,e,n,c)}finally{Ja.transition=a,ke=c}return null}function KD(t,e,n,c){do fo();while(Ur!==null);if(Ye&6)throw Error(Wt(327));n=t.finishedWork;var a=t.finishedLanes;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(Wt(177));t.callbackNode=null,t.callbackPriority=0;var l=n.lanes|n.childLanes;if(w4(t,l),t===Qn&&(On=Qn=null,ec=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||xW||(xW=!0,UR(BZ,function(){return fo(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=Ja.transition,Ja.transition=null;var r=ke;ke=1;var d=Ye;Ye|=4,uX.current=null,DD(t,n),CR(n,t),mD(Xh),$Z=!!hh,Xh=hh=null,t.current=n,BD(n),G4(),Ye=d,ke=r,Ja.transition=l}else t.current=n;if(xW&&(xW=!1,Ur=t,kW=a),l=t.pendingLanes,l===0&&(Qr=null),J4(n.stateNode),Bc(t,zn()),e!==null)for(c=t.onRecoverableError,n=0;n<e.length;n++)a=e[n],c(a.value,{componentStack:a.stack,digest:a.digest});if(OW)throw OW=!1,t=yX,yX=null,t;return kW&1&&t.tag!==0&&fo(),l=t.pendingLanes,l&1?t===ZX?qb++:(qb=0,ZX=t):qb=0,Hr(),null}function fo(){if(Ur!==null){var t=wN(kW),e=Ja.transition,n=ke;try{if(Ja.transition=null,ke=16>t?16:t,Ur===null)var c=!1;else{if(t=Ur,Ur=null,kW=0,Ye&6)throw Error(Wt(331));var a=Ye;for(Ye|=4,Ot=t.current;Ot!==null;){var l=Ot,r=l.child;if(Ot.flags&16){var d=l.deletions;if(d!==null){for(var o=0;o<d.length;o++){var i=d[o];for(Ot=i;Ot!==null;){var u=Ot;switch(u.tag){case 0:case 11:case 15:Kb(8,u,l)}var b=u.child;if(b!==null)b.return=u,Ot=b;else for(;Ot!==null;){u=Ot;var s=u.sibling,Z=u.return;if(zR(u),u===i){Ot=null;break}if(s!==null){s.return=Z,Ot=s;break}Ot=Z}}}var W=l.alternate;if(W!==null){var m=W.child;if(m!==null){W.child=null;do{var v=m.sibling;m.sibling=null,m=v}while(m!==null)}}Ot=l}}if(l.subtreeFlags&2064&&r!==null)r.return=l,Ot=r;else t:for(;Ot!==null;){if(l=Ot,l.flags&2048)switch(l.tag){case 0:case 11:case 15:Kb(9,l,l.return)}var L=l.sibling;if(L!==null){L.return=l.return,Ot=L;break t}Ot=l.return}}var X=t.current;for(Ot=X;Ot!==null;){r=Ot;var Y=r.child;if(r.subtreeFlags&2064&&Y!==null)Y.return=r,Ot=Y;else t:for(r=X;Ot!==null;){if(d=Ot,d.flags&2048)try{switch(d.tag){case 0:case 11:case 15:CW(9,d)}}catch(J){Jn(d,d.return,J)}if(d===r){Ot=null;break t}var p=d.sibling;if(p!==null){p.return=d.return,Ot=p;break t}Ot=d.return}}if(Ye=a,Hr(),Wl&&typeof Wl.onPostCommitFiberRoot=="function")try{Wl.onPostCommitFiberRoot(QZ,t)}catch{}c=!0}return c}finally{ke=n,Ja.transition=e}}return!1}function DR(t,e,n){e=Go(n,e),e=dR(t,e,1),t=Dr(t,e,1),e=fc(),t!==null&&(pb(t,1,e),Bc(t,e))}function Jn(t,e,n){if(t.tag===3)DR(t,t,n);else for(;e!==null;){if(e.tag===3){DR(e,t,n);break}else if(e.tag===1){var c=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Qr===null||!Qr.has(c))){t=Go(n,t),t=oR(e,t,1),e=Dr(e,t,1),t=fc(),e!==null&&(pb(e,1,t),Bc(e,t));break}}e=e.return}}function _D(t,e,n){var c=t.pingCache;c!==null&&c.delete(e),e=fc(),t.pingedLanes|=t.suspendedLanes&n,Qn===t&&(ec&n)===n&&(Hn===4||Hn===3&&(ec&130023424)===ec&&500>zn()-sX?Qi(t,0):bX|=n),Bc(t,e)}function BR(t,e){e===0&&(t.mode&1?(e=EZ,EZ<<=1,!(EZ&130023424)&&(EZ=4194304)):e=1);var n=fc();t=Pl(t,e),t!==null&&(pb(t,e,n),Bc(t,n))}function $D(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),BR(t,n)}function qD(t,e){var n=0;switch(t.tag){case 13:var c=t.stateNode,a=t.memoizedState;a!==null&&(n=a.retryLane);break;case 19:c=t.stateNode;break;default:throw Error(Wt(314))}c!==null&&c.delete(e),BR(t,n)}var QR;QR=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||Fc.current)Tc=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return Tc=!1,SD(t,e,n);Tc=!!(t.flags&131072)}else Tc=!1,rn&&e.flags&1048576&&Jz(e,mW,e.index);switch(e.lanes=0,e.tag){case 2:var c=e.type;VW(t,e),t=e.pendingProps;var a=yo(e,oc.current);ho(e,n),a=Bh(null,e,c,t,a,n);var l=Qh();return e.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Hc(c)?(l=!0,yW(e)):l=!1,e.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Oh(e),a.updater=YW,e.stateNode=a,a._reactInternals=e,kh(e,c,t,n),e=tX(null,e,c,!0,l,n)):(e.tag=0,rn&&l&&Mh(e),Jc(null,e,a,n),e=e.child),e;case 16:c=e.elementType;t:{switch(VW(t,e),t=e.pendingProps,a=c._init,c=a(c._payload),e.type=c,a=e.tag=eB(c),t=Qa(c,t),a){case 0:e=qh(null,e,c,t,n);break t;case 1:e=hR(null,e,c,t,n);break t;case 11:e=yR(null,e,c,t,n);break t;case 14:e=ZR(null,e,c,Qa(c.type,t),n);break t}throw Error(Wt(306,c,""))}return e;case 0:return c=e.type,a=e.pendingProps,a=e.elementType===c?a:Qa(c,a),qh(t,e,c,a,n);case 1:return c=e.type,a=e.pendingProps,a=e.elementType===c?a:Qa(c,a),hR(t,e,c,a,n);case 3:t:{if(XR(e),t===null)throw Error(Wt(387));c=e.pendingProps,l=e.memoizedState,a=l.element,wz(t,e),GW(e,c,null,n);var r=e.memoizedState;if(c=r.element,l.isDehydrated)if(l={element:c,isDehydrated:!1,cache:r.cache,pendingSuspenseBoundaries:r.pendingSuspenseBoundaries,transitions:r.transitions},e.updateQueue.baseState=l,e.memoizedState=l,e.flags&256){a=Go(Error(Wt(423)),e),e=vR(t,e,c,n,a);break t}else if(c!==a){a=Go(Error(Wt(424)),e),e=vR(t,e,c,n,a);break t}else for(aa=Ir(e.stateNode.containerInfo.firstChild),ca=e,rn=!0,Ba=null,n=Iz(e,null,c,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(mo(),c===a){e=_l(t,e,n);break t}Jc(t,e,c,n)}e=e.child}return e;case 5:return Sz(e),t===null&&Rh(e),c=e.type,a=e.pendingProps,l=t!==null?t.memoizedProps:null,r=a.children,vh(c,a)?r=null:l!==null&&vh(c,l)&&(e.flags|=32),LR(t,e),Jc(t,e,r,n),e.child;case 6:return t===null&&Rh(e),null;case 13:return GR(t,e,n);case 4:return Ih(e,e.stateNode.containerInfo),c=e.pendingProps,t===null?e.child=Xo(e,null,c,n):Jc(t,e,c,n),e.child;case 11:return c=e.type,a=e.pendingProps,a=e.elementType===c?a:Qa(c,a),yR(t,e,c,a,n);case 7:return Jc(t,e,e.pendingProps,n),e.child;case 8:return Jc(t,e,e.pendingProps.children,n),e.child;case 12:return Jc(t,e,e.pendingProps.children,n),e.child;case 10:t:{if(c=e.type._context,a=e.pendingProps,l=e.memoizedProps,r=a.value,Be(hW,c._currentValue),c._currentValue=r,l!==null)if(Da(l.value,r)){if(l.children===a.children&&!Fc.current){e=_l(t,e,n);break t}}else for(l=e.child,l!==null&&(l.return=e);l!==null;){var d=l.dependencies;if(d!==null){r=l.child;for(var o=d.firstContext;o!==null;){if(o.context===c){if(l.tag===1){o=Kl(-1,n&-n),o.tag=2;var i=l.updateQueue;if(i!==null){i=i.shared;var u=i.pending;u===null?o.next=o:(o.next=u.next,u.next=o),i.pending=o}}l.lanes|=n,o=l.alternate,o!==null&&(o.lanes|=n),jh(l.return,n,e),d.lanes|=n;break}o=o.next}}else if(l.tag===10)r=l.type===e.type?null:l.child;else if(l.tag===18){if(r=l.return,r===null)throw Error(Wt(341));r.lanes|=n,d=r.alternate,d!==null&&(d.lanes|=n),jh(r,n,e),r=l.sibling}else r=l.child;if(r!==null)r.return=l;else for(r=l;r!==null;){if(r===e){r=null;break}if(l=r.sibling,l!==null){l.return=r.return,r=l;break}r=r.return}l=r}Jc(t,e,a.children,n),e=e.child}return e;case 9:return a=e.type,c=e.pendingProps.children,ho(e,n),a=Ya(a),c=c(a),e.flags|=1,Jc(t,e,c,n),e.child;case 14:return c=e.type,a=Qa(c,e.pendingProps),a=Qa(c.type,a),ZR(t,e,c,a,n);case 15:return WR(t,e,e.type,e.pendingProps,n);case 17:return c=e.type,a=e.pendingProps,a=e.elementType===c?a:Qa(c,a),VW(t,e),e.tag=1,Hc(c)?(t=!0,yW(e)):t=!1,ho(e,n),Az(e,c,a),kh(e,c,a,n),tX(null,e,c,!0,t,n);case 19:return pR(t,e,n);case 22:return mR(t,e,n)}throw Error(Wt(156,e.tag))};function UR(t,e){return fN(t,e)}function tB(t,e,n,c){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function fa(t,e,n,c){return new tB(t,e,n,c)}function vX(t){return t=t.prototype,!(!t||!t.isReactComponent)}function eB(t){if(typeof t=="function")return vX(t)?1:0;if(t!=null){if(t=t.$$typeof,t===M2)return 11;if(t===R2)return 14}return 2}function Kr(t,e){var n=t.alternate;return n===null?(n=fa(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function HW(t,e,n,c,a,l){var r=2;if(c=t,typeof t=="function")vX(t)&&(r=1);else if(typeof t=="string")r=5;else t:switch(t){case qd:return Ei(n.children,a,l,e);case J2:r=8,a|=8;break;case f2:return t=fa(12,n,e,a|2),t.elementType=f2,t.lanes=l,t;case N2:return t=fa(13,n,e,a),t.elementType=N2,t.lanes=l,t;case z2:return t=fa(19,n,e,a),t.elementType=z2,t.lanes=l,t;case eN:return TW(n,a,l,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case qM:r=10;break t;case tN:r=9;break t;case M2:r=11;break t;case R2:r=14;break t;case Vr:r=16,c=null;break t}throw Error(Wt(130,t==null?t:typeof t,""))}return e=fa(r,n,e,a),e.elementType=t,e.type=c,e.lanes=l,e}function Ei(t,e,n,c){return t=fa(7,t,c,e),t.lanes=n,t}function TW(t,e,n,c){return t=fa(22,t,c,e),t.elementType=eN,t.lanes=n,t.stateNode={isHidden:!1},t}function GX(t,e,n){return t=fa(6,t,null,e),t.lanes=n,t}function YX(t,e,n){return e=fa(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function nB(t,e,n,c,a){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=P2(0),this.expirationTimes=P2(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=P2(0),this.identifierPrefix=c,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function pX(t,e,n,c,a,l,r,d,o){return t=new nB(t,e,n,d,o),e===1?(e=1,l===!0&&(e|=8)):e=0,l=fa(3,null,null,e),t.current=l,l.stateNode=t,l.memoizedState={element:c,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Oh(l),t}function cB(t,e,n){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:$d,key:c==null?null:""+c,children:t,containerInfo:e,implementation:n}}function ER(t){if(!t)return Fr;t=t._reactInternals;t:{if(Oi(t)!==t||t.tag!==1)throw Error(Wt(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break t;case 1:if(Hc(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break t}}e=e.return}while(e!==null);throw Error(Wt(171))}if(t.tag===1){var n=t.type;if(Hc(n))return Gz(t,n,e)}return e}function PR(t,e,n,c,a,l,r,d,o){return t=pX(n,c,!0,t,a,l,r,d,o),t.context=ER(null),n=t.current,c=fc(),a=Er(n),l=Kl(c,a),l.callback=e??null,Dr(n,l,a),t.current.lanes=a,pb(t,a,c),Bc(t,c),t}function DW(t,e,n,c){var a=e.current,l=fc(),r=Er(a);return n=ER(n),e.context===null?e.context=n:e.pendingContext=n,e=Kl(l,r),e.payload={element:t},c=c===void 0?null:c,c!==null&&(e.callback=c),t=Dr(a,e,r),t!==null&&(Pa(t,a,r,l),vW(t,a,r)),r}function BW(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function KR(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function JX(t,e){KR(t,e),(t=t.alternate)&&KR(t,e)}function aB(){return null}var _R=typeof reportError=="function"?reportError:function(t){console.error(t)};function fX(t){this._internalRoot=t}QW.prototype.render=fX.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(Wt(409));DW(t,e,null,null)},QW.prototype.unmount=fX.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Bi(function(){DW(null,t,null,null)}),e[Bl]=null}};function QW(t){this._internalRoot=t}QW.prototype.unstable_scheduleHydration=function(t){if(t){var e=CN();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Or.length&&e!==0&&e<Or[n].priority;n++);Or.splice(n,0,t),n===0&&ON(t)}};function MX(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function UW(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function $R(){}function lB(t,e,n,c,a){if(a){if(typeof c=="function"){var l=c;c=function(){var i=BW(r);l.call(i)}}var r=PR(e,c,t,0,null,!1,!1,"",$R);return t._reactRootContainer=r,t[Bl]=r.current,xb(t.nodeType===8?t.parentNode:t),Bi(),r}for(;a=t.lastChild;)t.removeChild(a);if(typeof c=="function"){var d=c;c=function(){var i=BW(o);d.call(i)}}var o=pX(t,0,!1,null,null,!1,!1,"",$R);return t._reactRootContainer=o,t[Bl]=o.current,xb(t.nodeType===8?t.parentNode:t),Bi(function(){DW(e,o,n,c)}),o}function EW(t,e,n,c,a){var l=n._reactRootContainer;if(l){var r=l;if(typeof a=="function"){var d=a;a=function(){var o=BW(r);d.call(o)}}DW(e,r,t,a)}else r=lB(n,e,t,a,c);return BW(r)}VN=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=Yb(e.pendingLanes);n!==0&&(K2(e,n|1),Bc(e,zn()),!(Ye&6)&&(Jo=zn()+500,Hr()))}break;case 13:Bi(function(){var c=Pl(t,1);if(c!==null){var a=fc();Pa(c,t,1,a)}}),JX(t,1)}},_2=function(t){if(t.tag===13){var e=Pl(t,134217728);if(e!==null){var n=fc();Pa(e,t,134217728,n)}JX(t,134217728)}},gN=function(t){if(t.tag===13){var e=Er(t),n=Pl(t,e);if(n!==null){var c=fc();Pa(n,t,e,c)}JX(t,e)}},CN=function(){return ke},jN=function(t,e){var n=ke;try{return ke=t,e()}finally{ke=n}},T2=function(t,e,n){switch(e){case"input":if(A2(t,n),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var c=n[e];if(c!==t&&c.form===t.form){var a=bW(c);if(!a)throw Error(Wt(90));aN(c),A2(c,a)}}}break;case"textarea":oN(t,n);break;case"select":e=n.value,e!=null&&to(t,!!n.multiple,e,!1)}},hN=LX,XN=Bi;var rB={usingClientEntryPoint:!1,Events:[Sb,bo,bW,mN,LN,LX]},ts={findFiberByHostInstance:xi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},iB={bundleType:ts.bundleType,version:ts.version,rendererPackageName:ts.rendererPackageName,rendererConfig:ts.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Dl.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=pN(t),t===null?null:t.stateNode},findFiberByHostInstance:ts.findFiberByHostInstance||aB,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var PW=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!PW.isDisabled&&PW.supportsFiber)try{QZ=PW.inject(iB),Wl=PW}catch{}}ta.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=rB,ta.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!MX(e))throw Error(Wt(200));return cB(t,e,null,n)},ta.createRoot=function(t,e){if(!MX(t))throw Error(Wt(299));var n=!1,c="",a=_R;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(c=e.identifierPrefix),e.onRecoverableError!==void 0&&(a=e.onRecoverableError)),e=pX(t,1,!1,null,null,n,!1,c,a),t[Bl]=e.current,xb(t.nodeType===8?t.parentNode:t),new fX(e)},ta.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(Wt(188)):(t=Object.keys(t).join(","),Error(Wt(268,t)));return t=pN(e),t=t===null?null:t.stateNode,t},ta.flushSync=function(t){return Bi(t)},ta.hydrate=function(t,e,n){if(!UW(e))throw Error(Wt(200));return EW(null,t,e,!0,n)},ta.hydrateRoot=function(t,e,n){if(!MX(t))throw Error(Wt(405));var c=n!=null&&n.hydratedSources||null,a=!1,l="",r=_R;if(n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(r=n.onRecoverableError)),e=PR(e,null,t,1,n??null,a,!1,l,r),t[Bl]=e.current,xb(t),c)for(t=0;t<c.length;t++)n=c[t],a=n._getVersion,a=a(n._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[n,a]:e.mutableSourceEagerHydrationData.push(n,a);return new QW(e)},ta.render=function(t,e,n){if(!UW(e))throw Error(Wt(200));return EW(null,t,e,!1,n)},ta.unmountComponentAtNode=function(t){if(!UW(t))throw Error(Wt(40));return t._reactRootContainer?(Bi(function(){EW(null,null,t,!1,function(){t._reactRootContainer=null,t[Bl]=null})}),!0):!1},ta.unstable_batchedUpdates=LX,ta.unstable_renderSubtreeIntoContainer=function(t,e,n,c){if(!UW(n))throw Error(Wt(200));if(t==null||t._reactInternals===void 0)throw Error(Wt(38));return EW(t,e,n,!1,c)},ta.version="18.2.0-next-9e3b772b8-20220608";function qR(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(qR)}catch(t){console.error(t)}}qR(),QM.exports=ta;var Pi=QM.exports;const es=wt(Pi),dB=Pe({__proto__:null,default:es},[Pi]);function oB(t){t()}function uB(t){t||(t=oB),vM({reactionScheduler:t})}function bB(t){return xT(t)}var sB=1e4,yB=1e4,ZB=function(){function t(e){var n=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(c){c===void 0&&(c=sB),clearTimeout(n.sweepTimeout),n.sweepTimeout=void 0;var a=Date.now();n.registrations.forEach(function(l,r){a-l.registeredAt>=c&&(n.finalize(l.value),n.registrations.delete(r))}),n.registrations.size>0&&n.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){n.sweep(0)}})}return Object.defineProperty(t.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(e,n,c){this.registrations.set(c,{value:n,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(t.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.registrations.delete(e)}}),Object.defineProperty(t.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,yB))}}),t}(),WB=typeof FinalizationRegistry<"u"?FinalizationRegistry:ZB,NX=new WB(function(t){var e;(e=t.reaction)===null||e===void 0||e.dispose(),t.reaction=null}),t3=globalThis&&globalThis.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var c=n.call(t),a,l=[],r;try{for(;(e===void 0||e-- >0)&&!(a=c.next()).done;)l.push(a.value)}catch(d){r={error:d}}finally{try{a&&!a.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}return l};function e3(t){return"observer".concat(t)}var mB=function(){function t(){}return t}();function LB(){return new mB}function hB(t,e){e===void 0&&(e="observed");var n=t3(h.useState(LB),1),c=n[0],a=t3(h.useState(),2),l=a[1],r=function(){return l([])},d=h.useRef(null);d.current||(d.current={reaction:null,mounted:!1,changedBeforeMount:!1});var o=d.current;o.reaction||(o.reaction=new gi(e3(e),function(){o.mounted?r():o.changedBeforeMount=!0}),NX.register(c,o,o)),h.useDebugValue(o.reaction,bB),h.useEffect(function(){return NX.unregister(o),o.mounted=!0,o.reaction?o.changedBeforeMount&&(o.changedBeforeMount=!1,r()):(o.reaction=new gi(e3(e),function(){r()}),r()),function(){o.reaction.dispose(),o.reaction=null,o.mounted=!1,o.changedBeforeMount=!1}},[]);var i,u;if(o.reaction.track(function(){try{i=t()}catch(b){u=b}}),u)throw u;return i}var n3=typeof Symbol=="function"&&Symbol.for,c3=n3?Symbol.for("react.forward_ref"):typeof G.forwardRef=="function"&&G.forwardRef(function(t){return null}).$$typeof,a3=n3?Symbol.for("react.memo"):typeof G.memo=="function"&&G.memo(function(t){return null}).$$typeof;function XB(t,e){var n;if(a3&&t.$$typeof===a3)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var c=(n=e==null?void 0:e.forwardRef)!==null&&n!==void 0?n:!1,a=t,l=t.displayName||t.name;if(c3&&t.$$typeof===c3&&(c=!0,a=t.render,typeof a!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var r=function(d,o){return hB(function(){return a(d,o)},l)};return l!==""&&(r.displayName=l),t.contextTypes&&(r.contextTypes=t.contextTypes),c&&(r=G.forwardRef(r)),r=G.memo(r),GB(t,r),r}var vB={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function GB(t,e){Object.keys(t).forEach(function(n){vB[n]||Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}globalThis&&globalThis.__read;var zX;uB(Pi.unstable_batchedUpdates),zX=NX.finalizeAllImmediately;var l3=0;function YB(t){if(typeof Symbol=="function")return Symbol(t);var e="__$mobx-react "+t+" ("+l3+")";return l3++,e}var RX={};function _r(t){return RX[t]||(RX[t]=YB(t)),RX[t]}function r3(t,e){if(i3(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),c=Object.keys(e);if(n.length!==c.length)return!1;for(var a=0;a<n.length;a++)if(!Object.hasOwnProperty.call(e,n[a])||!i3(t[n[a]],e[n[a]]))return!1;return!0}function i3(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}function ql(t,e,n){Object.hasOwnProperty.call(t,e)?t[e]=n:Object.defineProperty(t,e,{enumerable:!1,configurable:!0,writable:!0,value:n})}var d3=_r("patchMixins"),o3=_r("patchedDefinition");function pB(t,e){var n=t[d3]=t[d3]||{},c=n[e]=n[e]||{};return c.locks=c.locks||0,c.methods=c.methods||[],c}function u3(t,e){for(var n=this,c=arguments.length,a=new Array(c>2?c-2:0),l=2;l<c;l++)a[l-2]=arguments[l];e.locks++;try{var r;return t!=null&&(r=t.apply(this,a)),r}finally{e.locks--,e.locks===0&&e.methods.forEach(function(d){d.apply(n,a)})}}function b3(t,e){var n=function(){for(var a=arguments.length,l=new Array(a),r=0;r<a;r++)l[r]=arguments[r];u3.call.apply(u3,[this,t,e].concat(l))};return n}function s3(t,e,n){var c=pB(t,e);c.methods.indexOf(n)<0&&c.methods.push(n);var a=Object.getOwnPropertyDescriptor(t,e);if(!(a&&a[o3])){var l=t[e],r=y3(t,e,a?a.enumerable:void 0,c,l);Object.defineProperty(t,e,r)}}function y3(t,e,n,c,a){var l,r=b3(a,c);return l={},l[o3]=!0,l.get=function(){return r},l.set=function(o){if(this===t)r=b3(o,c);else{var i=y3(this,e,n,c,o);Object.defineProperty(this,e,i)}},l.configurable=!0,l.enumerable=n,l}var Mo=te||"$mobx",Z3=_r("isMobXReactObserver"),wX=_r("isUnmounted"),KW=_r("skipRender"),_W=_r("isForcingUpdate");function JB(t){var e=t.prototype;if(t[Z3]){var n=$W(e);console.warn("The provided component class ("+n+`)
50
50
  has already been declared as an observer component.`)}else t[Z3]=!0;if(e.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(t.__proto__!==G.PureComponent){if(!e.shouldComponentUpdate)e.shouldComponentUpdate=W3;else if(e.shouldComponentUpdate!==W3)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}VX(e,"props"),VX(e,"state"),t.contextType&&VX(e,"context");var c=e.render;if(typeof c!="function"){var a=$W(e);throw new Error("[mobx-react] class component ("+a+") is missing `render` method.\n`observer` requires `render` being a function defined on prototype.\n`render = () => {}` or `render = function() {}` is not supported.")}return e.render=function(){return this.render=fB.call(this,c),this.render()},s3(e,"componentDidMount",function(){this[wX]=!1,this.render[Mo]||G.Component.prototype.forceUpdate.call(this)}),s3(e,"componentWillUnmount",function(){var l=this.render[Mo];if(l)l.dispose(),this.render[Mo]=null;else{var r=$W(this);console.warn("The reactive render of an observer class component ("+r+`)
51
51
  was overridden after MobX attached. This may result in a memory leak if the
52
- overridden reactive render was not properly disposed.`)}this[wX]=!0}),t}function $W(t){return t.displayName||t.name||t.constructor&&(t.constructor.displayName||t.constructor.name)||"<component>"}function fB(t){var e=this;ql(this,KW,!1),ql(this,_W,!1);var n=$W(this),c=t.bind(this),a=!1,l=function(){var o=new gi(n+".render()",function(){if(!a&&(a=!0,e[wX]!==!0)){var i=!0;try{ql(e,_W,!0),e[KW]||G.Component.prototype.forceUpdate.call(e),i=!1}finally{ql(e,_W,!1),i&&(o.dispose(),e.render[Mo]=null)}}});return o.reactComponent=e,o};function r(){var d;a=!1;var o=(d=r[Mo])!=null?d:r[Mo]=l(),i=void 0,u=void 0;if(o.track(function(){try{u=l2(!1,c)}catch(b){i=b}}),i)throw i;return u}return r}function W3(t,e){return this.state!==e?!0:!r3(this.props,t)}function VX(t,e){var n=_r("reactProp_"+e+"_valueHolder"),c=_r("reactProp_"+e+"_atomHolder");function a(){return this[c]||ql(this,c,c2("reactive "+e)),this[c]}Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var r=!1;return Ed&&Mr&&(r=Ed(!0)),a.call(this).reportObserved(),Ed&&Mr&&Mr(r),this[n]},set:function(r){!this[_W]&&!r3(this[n],r)?(ql(this,n,r),ql(this,KW,!0),a.call(this).reportChanged(),ql(this,KW,!1)):ql(this,n,r)}})}function m3(t){return t.isMobxInjector===!0&&console.warn("Mobx observer: You are trying to use `observer` on a component that already has `inject`. Please apply `observer` before applying `inject`"),Object.prototype.isPrototypeOf.call(G.Component,t)||Object.prototype.isPrototypeOf.call(G.PureComponent,t)?JB(t):XB(t)}if(!G.Component)throw new Error("mobx-react requires React to be available");if(!xe)throw new Error("mobx-react requires mobx to be available");class Ki{constructor(e,n,c,a,l,r,d,o,i,u,b="component"){Nn(this,wy,void 0);bt(this,"component");this.actionsInitializer=c,this.valued=a,this.valueType=l,this.defaultProps=r,this.css=d,this.wrapperCss=o,this.typeName=i,this.icon=u,this.kind=b,this.component=m3(e),this.component.displayName=e.displayName||e.name,dl(this,wy,n)}get name(){return se(this,wy)??this.type}get type(){return this.typeName||this.component.displayName||this.component.name}}wy=new WeakMap;var Mc=(t=>(t.LTR="ltr",t.RTL="rtl",t))(Mc||{});class ns{constructor(e,n){bt(this,"key");bt(this,"name");bt(this,"editor");bt(this,"hint");bt(this,"localizable",!1);bt(this,"valued",!1);bt(this,"editorProps");bt(this,"default");bt(this,"type");bt(this,"required",!1);bt(this,"validator");bt(this,"errorMap");bt(this,"calculable",!0);bt(this,"slotConditionBuilder");this.key=e,this.name=n}clone(){return Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this))}}class MB extends ns{}var NB=typeof global=="object"&&global&&global.Object===Object&&global;const L3=NB;var zB=typeof self=="object"&&self&&self.Object===Object&&self,RB=L3||zB||Function("return this")();const vl=RB;var wB=vl.Symbol;const Gl=wB;var h3=Object.prototype,VB=h3.hasOwnProperty,gB=h3.toString,cs=Gl?Gl.toStringTag:void 0;function CB(t){var e=VB.call(t,cs),n=t[cs];try{t[cs]=void 0;var c=!0}catch{}var a=gB.call(t);return c&&(e?t[cs]=n:delete t[cs]),a}var jB=Object.prototype,AB=jB.toString;function OB(t){return AB.call(t)}var xB="[object Null]",kB="[object Undefined]",X3=Gl?Gl.toStringTag:void 0;function _i(t){return t==null?t===void 0?kB:xB:X3&&X3 in Object(t)?CB(t):OB(t)}function Yl(t){return t!=null&&typeof t=="object"}var IB="[object Symbol]";function gX(t){return typeof t=="symbol"||Yl(t)&&_i(t)==IB}function SB(t,e){for(var n=-1,c=t==null?0:t.length,a=Array(c);++n<c;)a[n]=e(t[n],n,t);return a}var FB=Array.isArray;const Nc=FB;var HB=1/0,v3=Gl?Gl.prototype:void 0,G3=v3?v3.toString:void 0;function Y3(t){if(typeof t=="string")return t;if(Nc(t))return SB(t,Y3)+"";if(gX(t))return G3?G3.call(t):"";var e=t+"";return e=="0"&&1/t==-HB?"-0":e}function Ka(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}function qW(t){return t}var TB="[object AsyncFunction]",DB="[object Function]",BB="[object GeneratorFunction]",QB="[object Proxy]";function CX(t){if(!Ka(t))return!1;var e=_i(t);return e==DB||e==BB||e==TB||e==QB}var UB=vl["__core-js_shared__"];const jX=UB;var p3=function(){var t=/[^.]+$/.exec(jX&&jX.keys&&jX.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function EB(t){return!!p3&&p3 in t}var PB=Function.prototype,KB=PB.toString;function $i(t){if(t!=null){try{return KB.call(t)}catch{}try{return t+""}catch{}}return""}var _B=/[\\^$.*+?()[\]{}|]/g,$B=/^\[object .+?Constructor\]$/,qB=Function.prototype,t6=Object.prototype,e6=qB.toString,n6=t6.hasOwnProperty,c6=RegExp("^"+e6.call(n6).replace(_B,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function a6(t){if(!Ka(t)||EB(t))return!1;var e=CX(t)?c6:$B;return e.test($i(t))}function l6(t,e){return t==null?void 0:t[e]}function qi(t,e){var n=l6(t,e);return a6(n)?n:void 0}var r6=qi(vl,"WeakMap");const AX=r6;var J3=Object.create,i6=function(){function t(){}return function(e){if(!Ka(e))return{};if(J3)return J3(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const d6=i6;function o6(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function f3(t,e){var n=-1,c=t.length;for(e||(e=Array(c));++n<c;)e[n]=t[n];return e}var u6=800,b6=16,s6=Date.now;function y6(t){var e=0,n=0;return function(){var c=s6(),a=b6-(c-n);if(n=c,a>0){if(++e>=u6)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function Z6(t){return function(){return t}}var W6=function(){try{var t=qi(Object,"defineProperty");return t({},"",{}),t}catch{}}();const tm=W6;var m6=tm?function(t,e){return tm(t,"toString",{configurable:!0,enumerable:!1,value:Z6(e),writable:!0})}:qW,L6=y6(m6);const h6=L6;function X6(t,e){for(var n=-1,c=t==null?0:t.length;++n<c&&e(t[n],n,t)!==!1;);return t}var v6=9007199254740991,G6=/^(?:0|[1-9]\d*)$/;function OX(t,e){var n=typeof t;return e=e??v6,!!e&&(n=="number"||n!="symbol"&&G6.test(t))&&t>-1&&t%1==0&&t<e}function xX(t,e,n){e=="__proto__"&&tm?tm(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function as(t,e){return t===e||t!==t&&e!==e}var Y6=Object.prototype,p6=Y6.hasOwnProperty;function kX(t,e,n){var c=t[e];(!(p6.call(t,e)&&as(c,n))||n===void 0&&!(e in t))&&xX(t,e,n)}function No(t,e,n,c){var a=!n;n||(n={});for(var l=-1,r=e.length;++l<r;){var d=e[l],o=c?c(n[d],t[d],d,n,t):void 0;o===void 0&&(o=t[d]),a?xX(n,d,o):kX(n,d,o)}return n}var M3=Math.max;function J6(t,e,n){return e=M3(e===void 0?t.length-1:e,0),function(){for(var c=arguments,a=-1,l=M3(c.length-e,0),r=Array(l);++a<l;)r[a]=c[e+a];a=-1;for(var d=Array(e+1);++a<e;)d[a]=c[a];return d[e]=n(r),o6(t,this,d)}}function f6(t,e){return h6(J6(t,e,qW),t+"")}var M6=9007199254740991;function IX(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=M6}function td(t){return t!=null&&IX(t.length)&&!CX(t)}function N6(t,e,n){if(!Ka(n))return!1;var c=typeof e;return(c=="number"?td(n)&&OX(e,n.length):c=="string"&&e in n)?as(n[e],t):!1}function N3(t){return f6(function(e,n){var c=-1,a=n.length,l=a>1?n[a-1]:void 0,r=a>2?n[2]:void 0;for(l=t.length>3&&typeof l=="function"?(a--,l):void 0,r&&N6(n[0],n[1],r)&&(l=a<3?void 0:l,a=1),e=Object(e);++c<a;){var d=n[c];d&&t(e,d,c,l)}return e})}var z6=Object.prototype;function ls(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||z6;return t===n}function R6(t,e){for(var n=-1,c=Array(t);++n<t;)c[n]=e(n);return c}var w6="[object Arguments]";function z3(t){return Yl(t)&&_i(t)==w6}var R3=Object.prototype,V6=R3.hasOwnProperty,g6=R3.propertyIsEnumerable,C6=z3(function(){return arguments}())?z3:function(t){return Yl(t)&&V6.call(t,"callee")&&!g6.call(t,"callee")};const rs=C6;function j6(){return!1}var w3=typeof oe=="object"&&oe&&!oe.nodeType&&oe,V3=w3&&typeof module=="object"&&module&&!module.nodeType&&module,A6=V3&&V3.exports===w3,g3=A6?vl.Buffer:void 0,O6=g3?g3.isBuffer:void 0,x6=O6||j6;const zo=x6;var k6="[object Arguments]",I6="[object Array]",S6="[object Boolean]",F6="[object Date]",H6="[object Error]",T6="[object Function]",D6="[object Map]",B6="[object Number]",Q6="[object Object]",U6="[object RegExp]",E6="[object Set]",P6="[object String]",K6="[object WeakMap]",_6="[object ArrayBuffer]",$6="[object DataView]",q6="[object Float32Array]",t7="[object Float64Array]",e7="[object Int8Array]",n7="[object Int16Array]",c7="[object Int32Array]",a7="[object Uint8Array]",l7="[object Uint8ClampedArray]",r7="[object Uint16Array]",i7="[object Uint32Array]",$e={};$e[q6]=$e[t7]=$e[e7]=$e[n7]=$e[c7]=$e[a7]=$e[l7]=$e[r7]=$e[i7]=!0,$e[k6]=$e[I6]=$e[_6]=$e[S6]=$e[$6]=$e[F6]=$e[H6]=$e[T6]=$e[D6]=$e[B6]=$e[Q6]=$e[U6]=$e[E6]=$e[P6]=$e[K6]=!1;function d7(t){return Yl(t)&&IX(t.length)&&!!$e[_i(t)]}function SX(t){return function(e){return t(e)}}var C3=typeof oe=="object"&&oe&&!oe.nodeType&&oe,is=C3&&typeof module=="object"&&module&&!module.nodeType&&module,o7=is&&is.exports===C3,FX=o7&&L3.process,u7=function(){try{var t=is&&is.require&&is.require("util").types;return t||FX&&FX.binding&&FX.binding("util")}catch{}}();const Ro=u7;var j3=Ro&&Ro.isTypedArray,b7=j3?SX(j3):d7;const em=b7;var s7=Object.prototype,y7=s7.hasOwnProperty;function A3(t,e){var n=Nc(t),c=!n&&rs(t),a=!n&&!c&&zo(t),l=!n&&!c&&!a&&em(t),r=n||c||a||l,d=r?R6(t.length,String):[],o=d.length;for(var i in t)(e||y7.call(t,i))&&!(r&&(i=="length"||a&&(i=="offset"||i=="parent")||l&&(i=="buffer"||i=="byteLength"||i=="byteOffset")||OX(i,o)))&&d.push(i);return d}function O3(t,e){return function(n){return t(e(n))}}var Z7=O3(Object.keys,Object);const W7=Z7;var m7=Object.prototype,L7=m7.hasOwnProperty;function x3(t){if(!ls(t))return W7(t);var e=[];for(var n in Object(t))L7.call(t,n)&&n!="constructor"&&e.push(n);return e}function wo(t){return td(t)?A3(t):x3(t)}var h7=Object.prototype,X7=h7.hasOwnProperty,v7=N3(function(t,e){if(ls(e)||td(e)){No(e,wo(e),t);return}for(var n in e)X7.call(e,n)&&kX(t,n,e[n])});const ed=v7;function G7(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var Y7=Object.prototype,p7=Y7.hasOwnProperty;function J7(t){if(!Ka(t))return G7(t);var e=ls(t),n=[];for(var c in t)c=="constructor"&&(e||!p7.call(t,c))||n.push(c);return n}function nd(t){return td(t)?A3(t,!0):J7(t)}var f7=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,M7=/^\w*$/;function HX(t,e){if(Nc(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||gX(t)?!0:M7.test(t)||!f7.test(t)||e!=null&&t in Object(e)}var N7=qi(Object,"create");const ds=N7;function z7(){this.__data__=ds?ds(null):{},this.size=0}function R7(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var w7="__lodash_hash_undefined__",V7=Object.prototype,g7=V7.hasOwnProperty;function C7(t){var e=this.__data__;if(ds){var n=e[t];return n===w7?void 0:n}return g7.call(e,t)?e[t]:void 0}var j7=Object.prototype,A7=j7.hasOwnProperty;function O7(t){var e=this.__data__;return ds?e[t]!==void 0:A7.call(e,t)}var x7="__lodash_hash_undefined__";function k7(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=ds&&e===void 0?x7:e,this}function cd(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var c=t[e];this.set(c[0],c[1])}}cd.prototype.clear=z7,cd.prototype.delete=R7,cd.prototype.get=C7,cd.prototype.has=O7,cd.prototype.set=k7;function I7(){this.__data__=[],this.size=0}function nm(t,e){for(var n=t.length;n--;)if(as(t[n][0],e))return n;return-1}var S7=Array.prototype,F7=S7.splice;function H7(t){var e=this.__data__,n=nm(e,t);if(n<0)return!1;var c=e.length-1;return n==c?e.pop():F7.call(e,n,1),--this.size,!0}function T7(t){var e=this.__data__,n=nm(e,t);return n<0?void 0:e[n][1]}function D7(t){return nm(this.__data__,t)>-1}function B7(t,e){var n=this.__data__,c=nm(n,t);return c<0?(++this.size,n.push([t,e])):n[c][1]=e,this}function tr(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var c=t[e];this.set(c[0],c[1])}}tr.prototype.clear=I7,tr.prototype.delete=H7,tr.prototype.get=T7,tr.prototype.has=D7,tr.prototype.set=B7;var Q7=qi(vl,"Map");const os=Q7;function U7(){this.size=0,this.__data__={hash:new cd,map:new(os||tr),string:new cd}}function E7(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function cm(t,e){var n=t.__data__;return E7(e)?n[typeof e=="string"?"string":"hash"]:n.map}function P7(t){var e=cm(this,t).delete(t);return this.size-=e?1:0,e}function K7(t){return cm(this,t).get(t)}function _7(t){return cm(this,t).has(t)}function $7(t,e){var n=cm(this,t),c=n.size;return n.set(t,e),this.size+=n.size==c?0:1,this}function er(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var c=t[e];this.set(c[0],c[1])}}er.prototype.clear=U7,er.prototype.delete=P7,er.prototype.get=K7,er.prototype.has=_7,er.prototype.set=$7;var q7="Expected a function";function TX(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(q7);var n=function(){var c=arguments,a=e?e.apply(this,c):c[0],l=n.cache;if(l.has(a))return l.get(a);var r=t.apply(this,c);return n.cache=l.set(a,r)||l,r};return n.cache=new(TX.Cache||er),n}TX.Cache=er;var tQ=500;function eQ(t){var e=TX(t,function(c){return n.size===tQ&&n.clear(),c}),n=e.cache;return e}var nQ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cQ=/\\(\\)?/g,aQ=eQ(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(nQ,function(n,c,a,l){e.push(a?l.replace(cQ,"$1"):c||n)}),e});const lQ=aQ;function am(t){return t==null?"":Y3(t)}function k3(t,e){return Nc(t)?t:HX(t,e)?[t]:lQ(am(t))}var rQ=1/0;function lm(t){if(typeof t=="string"||gX(t))return t;var e=t+"";return e=="0"&&1/t==-rQ?"-0":e}function I3(t,e){e=k3(e,t);for(var n=0,c=e.length;t!=null&&n<c;)t=t[lm(e[n++])];return n&&n==c?t:void 0}function iQ(t,e,n){var c=t==null?void 0:I3(t,e);return c===void 0?n:c}function S3(t,e){for(var n=-1,c=e.length,a=t.length;++n<c;)t[a+n]=e[n];return t}var dQ=O3(Object.getPrototypeOf,Object);const DX=dQ;var oQ="[object Object]",uQ=Function.prototype,bQ=Object.prototype,F3=uQ.toString,sQ=bQ.hasOwnProperty,yQ=F3.call(Object);function ZQ(t){if(!Yl(t)||_i(t)!=oQ)return!1;var e=DX(t);if(e===null)return!0;var n=sQ.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&F3.call(n)==yQ}function WQ(t,e,n){var c=-1,a=t.length;e<0&&(e=-e>a?0:a+e),n=n>a?a:n,n<0&&(n+=a),a=e>n?0:n-e>>>0,e>>>=0;for(var l=Array(a);++c<a;)l[c]=t[c+e];return l}function mQ(t,e,n){var c=t.length;return n=n===void 0?c:n,!e&&n>=c?t:WQ(t,e,n)}var LQ="\\ud800-\\udfff",hQ="\\u0300-\\u036f",XQ="\\ufe20-\\ufe2f",vQ="\\u20d0-\\u20ff",GQ=hQ+XQ+vQ,YQ="\\ufe0e\\ufe0f",pQ="\\u200d",JQ=RegExp("["+pQ+LQ+GQ+YQ+"]");function H3(t){return JQ.test(t)}function fQ(t){return t.split("")}var T3="\\ud800-\\udfff",MQ="\\u0300-\\u036f",NQ="\\ufe20-\\ufe2f",zQ="\\u20d0-\\u20ff",RQ=MQ+NQ+zQ,wQ="\\ufe0e\\ufe0f",VQ="["+T3+"]",BX="["+RQ+"]",QX="\\ud83c[\\udffb-\\udfff]",gQ="(?:"+BX+"|"+QX+")",D3="[^"+T3+"]",B3="(?:\\ud83c[\\udde6-\\uddff]){2}",Q3="[\\ud800-\\udbff][\\udc00-\\udfff]",CQ="\\u200d",U3=gQ+"?",E3="["+wQ+"]?",jQ="(?:"+CQ+"(?:"+[D3,B3,Q3].join("|")+")"+E3+U3+")*",AQ=E3+U3+jQ,OQ="(?:"+[D3+BX+"?",BX,B3,Q3,VQ].join("|")+")",xQ=RegExp(QX+"(?="+QX+")|"+OQ+AQ,"g");function kQ(t){return t.match(xQ)||[]}function IQ(t){return H3(t)?kQ(t):fQ(t)}function SQ(t){return function(e){e=am(e);var n=H3(e)?IQ(e):void 0,c=n?n[0]:e.charAt(0),a=n?mQ(n,1).join(""):e.slice(1);return c[t]()+a}}var FQ=SQ("toUpperCase");const P3=FQ;function K3(t,e,n,c){var a=-1,l=t==null?0:t.length;for(c&&l&&(n=t[++a]);++a<l;)n=e(n,t[a],a,t);return n}function HQ(t){return function(e){return t==null?void 0:t[e]}}var TQ={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},DQ=HQ(TQ);const BQ=DQ;var QQ=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,UQ="\\u0300-\\u036f",EQ="\\ufe20-\\ufe2f",PQ="\\u20d0-\\u20ff",KQ=UQ+EQ+PQ,_Q="["+KQ+"]",$Q=RegExp(_Q,"g");function qQ(t){return t=am(t),t&&t.replace(QQ,BQ).replace($Q,"")}var tU=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function eU(t){return t.match(tU)||[]}var nU=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function cU(t){return nU.test(t)}var _3="\\ud800-\\udfff",aU="\\u0300-\\u036f",lU="\\ufe20-\\ufe2f",rU="\\u20d0-\\u20ff",iU=aU+lU+rU,$3="\\u2700-\\u27bf",q3="a-z\\xdf-\\xf6\\xf8-\\xff",dU="\\xac\\xb1\\xd7\\xf7",oU="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",uU="\\u2000-\\u206f",bU=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",tw="A-Z\\xc0-\\xd6\\xd8-\\xde",sU="\\ufe0e\\ufe0f",ew=dU+oU+uU+bU,nw="['’]",cw="["+ew+"]",yU="["+iU+"]",aw="\\d+",ZU="["+$3+"]",lw="["+q3+"]",rw="[^"+_3+ew+aw+$3+q3+tw+"]",WU="\\ud83c[\\udffb-\\udfff]",mU="(?:"+yU+"|"+WU+")",LU="[^"+_3+"]",iw="(?:\\ud83c[\\udde6-\\uddff]){2}",dw="[\\ud800-\\udbff][\\udc00-\\udfff]",Vo="["+tw+"]",hU="\\u200d",ow="(?:"+lw+"|"+rw+")",XU="(?:"+Vo+"|"+rw+")",uw="(?:"+nw+"(?:d|ll|m|re|s|t|ve))?",bw="(?:"+nw+"(?:D|LL|M|RE|S|T|VE))?",sw=mU+"?",yw="["+sU+"]?",vU="(?:"+hU+"(?:"+[LU,iw,dw].join("|")+")"+yw+sw+")*",GU="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",YU="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",pU=yw+sw+vU,JU="(?:"+[ZU,iw,dw].join("|")+")"+pU,fU=RegExp([Vo+"?"+lw+"+"+uw+"(?="+[cw,Vo,"$"].join("|")+")",XU+"+"+bw+"(?="+[cw,Vo+ow,"$"].join("|")+")",Vo+"?"+ow+"+"+uw,Vo+"+"+bw,YU,GU,aw,JU].join("|"),"g");function MU(t){return t.match(fU)||[]}function NU(t,e,n){return t=am(t),e=n?void 0:e,e===void 0?cU(t)?MU(t):eU(t):t.match(e)||[]}var zU="['’]",RU=RegExp(zU,"g");function wU(t){return function(e){return K3(NU(qQ(e).replace(RU,"")),t,"")}}function VU(){this.__data__=new tr,this.size=0}function gU(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function CU(t){return this.__data__.get(t)}function jU(t){return this.__data__.has(t)}var AU=200;function OU(t,e){var n=this.__data__;if(n instanceof tr){var c=n.__data__;if(!os||c.length<AU-1)return c.push([t,e]),this.size=++n.size,this;n=this.__data__=new er(c)}return n.set(t,e),this.size=n.size,this}function _a(t){var e=this.__data__=new tr(t);this.size=e.size}_a.prototype.clear=VU,_a.prototype.delete=gU,_a.prototype.get=CU,_a.prototype.has=jU,_a.prototype.set=OU;function xU(t,e){return t&&No(e,wo(e),t)}function kU(t,e){return t&&No(e,nd(e),t)}var Zw=typeof oe=="object"&&oe&&!oe.nodeType&&oe,Ww=Zw&&typeof module=="object"&&module&&!module.nodeType&&module,IU=Ww&&Ww.exports===Zw,mw=IU?vl.Buffer:void 0,Lw=mw?mw.allocUnsafe:void 0;function hw(t,e){if(e)return t.slice();var n=t.length,c=Lw?Lw(n):new t.constructor(n);return t.copy(c),c}function SU(t,e){for(var n=-1,c=t==null?0:t.length,a=0,l=[];++n<c;){var r=t[n];e(r,n,t)&&(l[a++]=r)}return l}function Xw(){return[]}var FU=Object.prototype,HU=FU.propertyIsEnumerable,vw=Object.getOwnPropertySymbols,TU=vw?function(t){return t==null?[]:(t=Object(t),SU(vw(t),function(e){return HU.call(t,e)}))}:Xw;const UX=TU;function DU(t,e){return No(t,UX(t),e)}var BU=Object.getOwnPropertySymbols,QU=BU?function(t){for(var e=[];t;)S3(e,UX(t)),t=DX(t);return e}:Xw;const Gw=QU;function UU(t,e){return No(t,Gw(t),e)}function Yw(t,e,n){var c=e(t);return Nc(t)?c:S3(c,n(t))}function EX(t){return Yw(t,wo,UX)}function EU(t){return Yw(t,nd,Gw)}var PU=qi(vl,"DataView");const PX=PU;var KU=qi(vl,"Promise");const KX=KU;var _U=qi(vl,"Set");const _X=_U;var pw="[object Map]",$U="[object Object]",Jw="[object Promise]",fw="[object Set]",Mw="[object WeakMap]",Nw="[object DataView]",qU=$i(PX),tE=$i(os),eE=$i(KX),nE=$i(_X),cE=$i(AX),ad=_i;(PX&&ad(new PX(new ArrayBuffer(1)))!=Nw||os&&ad(new os)!=pw||KX&&ad(KX.resolve())!=Jw||_X&&ad(new _X)!=fw||AX&&ad(new AX)!=Mw)&&(ad=function(t){var e=_i(t),n=e==$U?t.constructor:void 0,c=n?$i(n):"";if(c)switch(c){case qU:return Nw;case tE:return pw;case eE:return Jw;case nE:return fw;case cE:return Mw}return e});const go=ad;var aE=Object.prototype,lE=aE.hasOwnProperty;function rE(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&lE.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var iE=vl.Uint8Array;const rm=iE;function $X(t){var e=new t.constructor(t.byteLength);return new rm(e).set(new rm(t)),e}function dE(t,e){var n=e?$X(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var oE=/\w*$/;function uE(t){var e=new t.constructor(t.source,oE.exec(t));return e.lastIndex=t.lastIndex,e}var zw=Gl?Gl.prototype:void 0,Rw=zw?zw.valueOf:void 0;function bE(t){return Rw?Object(Rw.call(t)):{}}function ww(t,e){var n=e?$X(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var sE="[object Boolean]",yE="[object Date]",ZE="[object Map]",WE="[object Number]",mE="[object RegExp]",LE="[object Set]",hE="[object String]",XE="[object Symbol]",vE="[object ArrayBuffer]",GE="[object DataView]",YE="[object Float32Array]",pE="[object Float64Array]",JE="[object Int8Array]",fE="[object Int16Array]",ME="[object Int32Array]",NE="[object Uint8Array]",zE="[object Uint8ClampedArray]",RE="[object Uint16Array]",wE="[object Uint32Array]";function VE(t,e,n){var c=t.constructor;switch(e){case vE:return $X(t);case sE:case yE:return new c(+t);case GE:return dE(t,n);case YE:case pE:case JE:case fE:case ME:case NE:case zE:case RE:case wE:return ww(t,n);case ZE:return new c;case WE:case hE:return new c(t);case mE:return uE(t);case LE:return new c;case XE:return bE(t)}}function Vw(t){return typeof t.constructor=="function"&&!ls(t)?d6(DX(t)):{}}var gE="[object Map]";function CE(t){return Yl(t)&&go(t)==gE}var gw=Ro&&Ro.isMap,jE=gw?SX(gw):CE;const AE=jE;var OE="[object Set]";function xE(t){return Yl(t)&&go(t)==OE}var Cw=Ro&&Ro.isSet,kE=Cw?SX(Cw):xE;const IE=kE;var SE=1,FE=2,HE=4,jw="[object Arguments]",TE="[object Array]",DE="[object Boolean]",BE="[object Date]",QE="[object Error]",Aw="[object Function]",UE="[object GeneratorFunction]",EE="[object Map]",PE="[object Number]",Ow="[object Object]",KE="[object RegExp]",_E="[object Set]",$E="[object String]",qE="[object Symbol]",tP="[object WeakMap]",eP="[object ArrayBuffer]",nP="[object DataView]",cP="[object Float32Array]",aP="[object Float64Array]",lP="[object Int8Array]",rP="[object Int16Array]",iP="[object Int32Array]",dP="[object Uint8Array]",oP="[object Uint8ClampedArray]",uP="[object Uint16Array]",bP="[object Uint32Array]",Qe={};Qe[jw]=Qe[TE]=Qe[eP]=Qe[nP]=Qe[DE]=Qe[BE]=Qe[cP]=Qe[aP]=Qe[lP]=Qe[rP]=Qe[iP]=Qe[EE]=Qe[PE]=Qe[Ow]=Qe[KE]=Qe[_E]=Qe[$E]=Qe[qE]=Qe[dP]=Qe[oP]=Qe[uP]=Qe[bP]=!0,Qe[QE]=Qe[Aw]=Qe[tP]=!1;function im(t,e,n,c,a,l){var r,d=e&SE,o=e&FE,i=e&HE;if(n&&(r=a?n(t,c,a,l):n(t)),r!==void 0)return r;if(!Ka(t))return t;var u=Nc(t);if(u){if(r=rE(t),!d)return f3(t,r)}else{var b=go(t),s=b==Aw||b==UE;if(zo(t))return hw(t,d);if(b==Ow||b==jw||s&&!a){if(r=o||s?{}:Vw(t),!d)return o?UU(t,kU(r,t)):DU(t,xU(r,t))}else{if(!Qe[b])return a?t:{};r=VE(t,b,d)}}l||(l=new _a);var Z=l.get(t);if(Z)return Z;l.set(t,r),IE(t)?t.forEach(function(v){r.add(im(v,e,n,v,t,l))}):AE(t)&&t.forEach(function(v,L){r.set(L,im(v,e,n,L,t,l))});var W=i?o?EU:EX:o?nd:wo,m=u?void 0:W(t);return X6(m||t,function(v,L){m&&(L=v,v=t[L]),kX(r,L,im(v,e,n,L,t,l))}),r}var sP=4;function qX(t){return im(t,sP)}var yP="__lodash_hash_undefined__";function ZP(t){return this.__data__.set(t,yP),this}function WP(t){return this.__data__.has(t)}function dm(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new er;++e<n;)this.add(t[e])}dm.prototype.add=dm.prototype.push=ZP,dm.prototype.has=WP;function mP(t,e){for(var n=-1,c=t==null?0:t.length;++n<c;)if(e(t[n],n,t))return!0;return!1}function LP(t,e){return t.has(e)}var hP=1,XP=2;function xw(t,e,n,c,a,l){var r=n&hP,d=t.length,o=e.length;if(d!=o&&!(r&&o>d))return!1;var i=l.get(t),u=l.get(e);if(i&&u)return i==e&&u==t;var b=-1,s=!0,Z=n&XP?new dm:void 0;for(l.set(t,e),l.set(e,t);++b<d;){var W=t[b],m=e[b];if(c)var v=r?c(m,W,b,e,t,l):c(W,m,b,t,e,l);if(v!==void 0){if(v)continue;s=!1;break}if(Z){if(!mP(e,function(L,X){if(!LP(Z,X)&&(W===L||a(W,L,n,c,l)))return Z.push(X)})){s=!1;break}}else if(!(W===m||a(W,m,n,c,l))){s=!1;break}}return l.delete(t),l.delete(e),s}function vP(t){var e=-1,n=Array(t.size);return t.forEach(function(c,a){n[++e]=[a,c]}),n}function GP(t){var e=-1,n=Array(t.size);return t.forEach(function(c){n[++e]=c}),n}var YP=1,pP=2,JP="[object Boolean]",fP="[object Date]",MP="[object Error]",NP="[object Map]",zP="[object Number]",RP="[object RegExp]",wP="[object Set]",VP="[object String]",gP="[object Symbol]",CP="[object ArrayBuffer]",jP="[object DataView]",kw=Gl?Gl.prototype:void 0,tv=kw?kw.valueOf:void 0;function AP(t,e,n,c,a,l,r){switch(n){case jP:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case CP:return!(t.byteLength!=e.byteLength||!l(new rm(t),new rm(e)));case JP:case fP:case zP:return as(+t,+e);case MP:return t.name==e.name&&t.message==e.message;case RP:case VP:return t==e+"";case NP:var d=vP;case wP:var o=c&YP;if(d||(d=GP),t.size!=e.size&&!o)return!1;var i=r.get(t);if(i)return i==e;c|=pP,r.set(t,e);var u=xw(d(t),d(e),c,a,l,r);return r.delete(t),u;case gP:if(tv)return tv.call(t)==tv.call(e)}return!1}var OP=1,xP=Object.prototype,kP=xP.hasOwnProperty;function IP(t,e,n,c,a,l){var r=n&OP,d=EX(t),o=d.length,i=EX(e),u=i.length;if(o!=u&&!r)return!1;for(var b=o;b--;){var s=d[b];if(!(r?s in e:kP.call(e,s)))return!1}var Z=l.get(t),W=l.get(e);if(Z&&W)return Z==e&&W==t;var m=!0;l.set(t,e),l.set(e,t);for(var v=r;++b<o;){s=d[b];var L=t[s],X=e[s];if(c)var Y=r?c(X,L,s,e,t,l):c(L,X,s,t,e,l);if(!(Y===void 0?L===X||a(L,X,n,c,l):Y)){m=!1;break}v||(v=s=="constructor")}if(m&&!v){var p=t.constructor,J=e.constructor;p!=J&&"constructor"in t&&"constructor"in e&&!(typeof p=="function"&&p instanceof p&&typeof J=="function"&&J instanceof J)&&(m=!1)}return l.delete(t),l.delete(e),m}var SP=1,Iw="[object Arguments]",Sw="[object Array]",om="[object Object]",FP=Object.prototype,Fw=FP.hasOwnProperty;function HP(t,e,n,c,a,l){var r=Nc(t),d=Nc(e),o=r?Sw:go(t),i=d?Sw:go(e);o=o==Iw?om:o,i=i==Iw?om:i;var u=o==om,b=i==om,s=o==i;if(s&&zo(t)){if(!zo(e))return!1;r=!0,u=!1}if(s&&!u)return l||(l=new _a),r||em(t)?xw(t,e,n,c,a,l):AP(t,e,o,n,c,a,l);if(!(n&SP)){var Z=u&&Fw.call(t,"__wrapped__"),W=b&&Fw.call(e,"__wrapped__");if(Z||W){var m=Z?t.value():t,v=W?e.value():e;return l||(l=new _a),a(m,v,n,c,l)}}return s?(l||(l=new _a),IP(t,e,n,c,a,l)):!1}function ev(t,e,n,c,a){return t===e?!0:t==null||e==null||!Yl(t)&&!Yl(e)?t!==t&&e!==e:HP(t,e,n,c,ev,a)}var TP=1,DP=2;function BP(t,e,n,c){var a=n.length,l=a,r=!c;if(t==null)return!l;for(t=Object(t);a--;){var d=n[a];if(r&&d[2]?d[1]!==t[d[0]]:!(d[0]in t))return!1}for(;++a<l;){d=n[a];var o=d[0],i=t[o],u=d[1];if(r&&d[2]){if(i===void 0&&!(o in t))return!1}else{var b=new _a;if(c)var s=c(i,u,o,t,e,b);if(!(s===void 0?ev(u,i,TP|DP,c,b):s))return!1}}return!0}function Hw(t){return t===t&&!Ka(t)}function QP(t){for(var e=wo(t),n=e.length;n--;){var c=e[n],a=t[c];e[n]=[c,a,Hw(a)]}return e}function Tw(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}function UP(t){var e=QP(t);return e.length==1&&e[0][2]?Tw(e[0][0],e[0][1]):function(n){return n===t||BP(n,t,e)}}function EP(t,e){return t!=null&&e in Object(t)}function PP(t,e,n){e=k3(e,t);for(var c=-1,a=e.length,l=!1;++c<a;){var r=lm(e[c]);if(!(l=t!=null&&n(t,r)))break;t=t[r]}return l||++c!=a?l:(a=t==null?0:t.length,!!a&&IX(a)&&OX(r,a)&&(Nc(t)||rs(t)))}function KP(t,e){return t!=null&&PP(t,e,EP)}var _P=1,$P=2;function qP(t,e){return HX(t)&&Hw(e)?Tw(lm(t),e):function(n){var c=iQ(n,t);return c===void 0&&c===e?KP(n,t):ev(e,c,_P|$P)}}function tK(t){return function(e){return e==null?void 0:e[t]}}function eK(t){return function(e){return I3(e,t)}}function nK(t){return HX(t)?tK(lm(t)):eK(t)}function cK(t){return typeof t=="function"?t:t==null?qW:typeof t=="object"?Nc(t)?qP(t[0],t[1]):UP(t):nK(t)}function aK(t){return function(e,n,c){for(var a=-1,l=Object(e),r=c(e),d=r.length;d--;){var o=r[t?d:++a];if(n(l[o],o,l)===!1)break}return e}}var lK=aK();const nv=lK;function rK(t,e){return t&&nv(t,e,wo)}function iK(t,e){return function(n,c){if(n==null)return n;if(!td(n))return t(n,c);for(var a=n.length,l=e?a:-1,r=Object(n);(e?l--:++l<a)&&c(r[l],l,r)!==!1;);return n}}var dK=iK(rK);const oK=dK;function cv(t,e,n){(n!==void 0&&!as(t[e],n)||n===void 0&&!(e in t))&&xX(t,e,n)}function uK(t){return Yl(t)&&td(t)}function av(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function bK(t){return No(t,nd(t))}function sK(t,e,n,c,a,l,r){var d=av(t,n),o=av(e,n),i=r.get(o);if(i){cv(t,n,i);return}var u=l?l(d,o,n+"",t,e,r):void 0,b=u===void 0;if(b){var s=Nc(o),Z=!s&&zo(o),W=!s&&!Z&&em(o);u=o,s||Z||W?Nc(d)?u=d:uK(d)?u=f3(d):Z?(b=!1,u=hw(o,!0)):W?(b=!1,u=ww(o,!0)):u=[]:ZQ(o)||rs(o)?(u=d,rs(d)?u=bK(d):(!Ka(d)||CX(d))&&(u=Vw(o))):b=!1}b&&(r.set(o,u),a(u,o,c,l,r),r.delete(o)),cv(t,n,u)}function Dw(t,e,n,c,a){t!==e&&nv(e,function(l,r){if(a||(a=new _a),Ka(l))sK(t,e,r,n,Dw,c,a);else{var d=c?c(av(t,r),l,r+"",t,e,a):void 0;d===void 0&&(d=l),cv(t,r,d)}},nd)}function yK(t){return typeof t=="function"?t:qW}function ZK(t,e){return t==null?t:nv(t,yK(e),nd)}var WK="[object Map]",mK="[object Set]",LK=Object.prototype,hK=LK.hasOwnProperty;function Bw(t){if(t==null)return!0;if(td(t)&&(Nc(t)||typeof t=="string"||typeof t.splice=="function"||zo(t)||em(t)||rs(t)))return!t.length;var e=go(t);if(e==WK||e==mK)return!t.size;if(ls(t))return!x3(t).length;for(var n in t)if(hK.call(t,n))return!1;return!0}function XK(t){return t===void 0}var vK=N3(function(t,e,n){Dw(t,e,n)});const Qw=vK;function GK(t,e,n,c,a){return a(t,function(l,r,d){n=c?(c=!1,l):e(n,l,r,d)}),n}function YK(t,e,n){var c=Nc(t)?K3:GK,a=arguments.length<3;return c(t,cK(e),n,a,oK)}var pK=wU(function(t,e,n){return t+(n?" ":"")+P3(e)});const Uw=pK;class JK extends ns{}class fK extends ns{}class MK extends ns{constructor(){super(...arguments);bt(this,"data")}}class NK extends ns{}const zK={Property:MK,Container:MB,Event:JK,Module:fK,Style:NK};class RK{constructor(){bt(this,"annotationType","Module");bt(this,"autoName",!0)}}class Ew{constructor(){bt(this,"annotation");bt(this,"options",new RK)}get valued(){return this.setup({valued:!0})}get localize(){return this.setup({localizable:!0})}get notLocalize(){return this.setup({localizable:!1})}named(e){return this.setup({name:e})}hinted(e){return this.setup({hint:e})}calculable(e){return this.setup({calculable:e})}setup(e){const{annotationType:n,autoName:c,...a}=e,l=this.clone();return l.options.annotationType=n??l.options.annotationType,l.options.autoName=c??l.options.autoName,ed(l.annotation,a),l}clone(){const e=qX(this);return e.options=qX(this.options),e.annotation=qX(this.annotation),e.annotation??(e.annotation={}),e}build(e){const n=this.getName(e),c=new zK[this.options.annotationType](e,n);return ed(c,this.annotation),c}withEditorProps(e){const n=this.clone();return ed(n.annotation,{editorProps:e}),n}getName(e){return this.annotation.name??(this.options.autoName?Uw(e):e)}}class lv extends Ew{get required(){return this.setup({required:!0})}default(e){return this.setup({default:e})}validated(e,n){return this.setup({validator:e,errorMap:n})}}class um extends lv{constructor(){super(...arguments);bt(this,"subType")}get ofString(){const n=new um().setup({...this.options,...this.annotation,type:"array",editor:"arrayOfString"});return n.subType="string",n}get ofObject(){const n=new um().setup({...this.options,...this.annotation,type:"array"});return n.subType="object",n}}class Pw extends lv{constructor(){super(...arguments);bt(this,"values");bt(this,"labels")}get required(){return super.required}labeled(...n){const c=this.clone();return c.labels=n,c}build(n){const c=super.build(n);return c.data=this.values.map((a,l)=>{var d;return{label:((d=this.labels)==null?void 0:d[l])??Uw(a.toString()),value:a}}),c}default(n){return this.setup({default:n})}}class wK extends Pw{radio(){return this.setup({editor:"radio"})}default(e){return super.default(e)}}class VK extends Pw{default(e){return super.default(e)}}const fL=class fL extends Ew{constructor(e){super(),this.annotation={editor:e}}get array(){return new um().setup({...this.options,...this.annotation,type:"array"})}typed(e){return new lv().setup({...this.options,...this.annotation,type:e})}oneOf(...e){const n=new wK().setup({...this.options,...this.annotation,type:"enum"});return n.values=e,n}someOf(...e){const n=new VK().setup({...this.options,...this.annotation,type:"enum"});return n.values=e,n}};bt(fL,"create",e=>new fL(e));let bm=fL;const pl=bm.create;function Ma(t){return pl(t).setup({annotationType:"Property"})}function Kw(t){return t.reduce((e,n)=>(e[n.key]=n.default,e),{})}function sm(t){return{any:{object:Kw(t)}}}class gK extends bm{constructor(e){super(e)}withSlotConditionBuilder(e){return this.setup({slotConditionBuilder:e})}}function CK(t){return new gK(t)}const jK=(t,e)=>e.reduceScreen((n,c)=>c.key===t?n+1:n,0)===1;pl("key").typed("string").required.hinted("Unique component key").calculable(!1).validated(jK,{code:"unique_key",message:"The key must be unique!"}).build("key");const AK=pl("htmlAttributes"),OK=pl("validation"),Tt=Ma("string").typed("string").localize,Ht=Ma("boolean").typed("boolean"),yc=Ma("number").typed("number"),xK=Ma("size").typed("string"),us=Ma("date").typed("date"),nr=Ma("array").array,Co=Ma("color").typed("string");pl("tooltipType").typed("string");const jo=pl("size").setup({calculable:!1}),_w=pl("color").setup({calculable:!1});Ma("string").calculable(!0).build("className");const Kt=pl("event").setup({annotationType:"Event"}),Zc=CK("node").setup({annotationType:"Container"}),Te=Ma("oneOf").oneOf.bind(Ma("oneOf")),kK=Ma("someOf").someOf.bind(Ma("someOf")),IK=pl("tooltipProps"),SK=pl("renderWhen").typed("boolean"),ym={width:jo.setup({default:"100%"}),height:jo,marginTop:jo,marginRight:jo,marginBottom:jo,marginLeft:jo,color:_w,backgroundColor:_w},Zm={flexDirection:Te("column","row","column-reverse","row-reverse"),gap:xK,alignItems:Te("start","center","baseline","end","stretch"),justifyContent:Te("flex-start","flex-end","center","space-between","space-around","space-evenly","start","end","left","right"),flexWrap:Te("wrap","nowrap","wrap-reverse")},$w=(async function(){}).constructor;class Na{constructor(e,n,c={}){this.func=e,this.body=n,this.params=c}static functionalAction(e,n={}){return new Na(e,void 0,n)}static sourceAction(e,n={}){const c=$w("e, args",e);return new Na(c,e,n)}static createFromObject(e){return Na.sourceAction(e.body,e.params)}}const FK=t=>{const e={};return t&&Object.keys(t).forEach(n=>{const c=t[n];e[n]=Na.createFromObject(c)}),e},rv="onDidMount",iv="onWillUnmount";function HK(t){return new Proxy(t,{get(e,n){return n==="toJSON"?()=>e.data:e.data[n]},set(e,n,c){var a;return(a=e.fields.get(n))==null||a.setValue(c),!0}})}class dv{constructor(e,n,c,a,l){Nn(this,Vy,void 0);bt(this,"renderedProps");bt(this,"setUserDefinedProps",e=>{this.sender.userDefinedProps=e});Nn(this,gy,e=>!!(e&&e.target&&e.type&&e.preventDefault));Nn(this,ML,e=>!se(this,gy).call(this,e));this.type=e,this.sender=n,this.store=c,this.args=a,this.renderedProps=l.get,dl(this,Vy,HK(this.store.formData))}get event(){return this.args.find(se(this,gy))}get value(){return this.args.filter(e=>typeof e<"u").find(se(this,ML))}get data(){return se(this,Vy)}}Vy=new WeakMap,gy=new WeakMap,ML=new WeakMap;const ov=[IK.build("tooltipProps"),SK.build("renderWhen"),AK.build("htmlAttributes"),OK.build("validation"),Kt.build(rv),Kt.build(iv)];class bs{constructor(e,n,c,a,l,r,d,o="component"){this.type=e,this.properties=n,this.css=c,this.wrapperCss=a,this.modules=l,this.customPreview=r,this.valuedAn=d,this.kind=o}}const qw=Symbol("key");function tV(t,e,n={}){return eV("autorun",t,e,n)}function cr(t,e={}){return eV("observable",t,void 0,e)}function eV(t,e,n,c={}){const a=Object.keys(c).map(l=>`${l}=${c[l]}`).join("_");return`${t}_${e}_${n?`${n}_`:""}${a}`}let nV=0;function cV(t){t[qw]||(++nV,t[qw]=`actionData_${nV}`)}function aV(t){var n;const e=t.events;e&&Object.values(e).forEach(c=>c.forEach(cV)),(n=t.children)==null||n.forEach(aV)}function Wm(t){return(t==null?void 0:t.computeType)==="function"}function lV(t){return(t==null?void 0:t.computeType)==="localization"}class ar{constructor(e,n){bt(this,"key","");bt(this,"type","");bt(this,"props",{});bt(this,"css");bt(this,"wrapperCss");bt(this,"events");bt(this,"children");bt(this,"schema");bt(this,"htmlAttributes");bt(this,"tooltipProps");bt(this,"slot");bt(this,"slotCondition");bt(this,"renderWhen");this.key=e,this.type=n,Nr(this,void 0,{name:cr("ComponentStore",{key:e})})}static createFromObject(e){const n=ed(new ar(e.key,e.type),e);return aV(n),n}static addEventHandler(e,n,c){var a;cV(c),e.events??(e.events={}),(a=e.events)[n]??(a[n]=[]),e.events[n].push(c)}}function rV(t){return typeof t=="string"}function TK(t){return typeof t=="number"}function uv(t){return typeof t=="object"&&typeof t.then=="function"}function DK(t){return typeof t=="object"}function Qc(t,e){const n=m3(e);return n.displayName=t,n}new ar("","");const zc=t=>t.replace(new RegExp(" ","g"),"_"),BK=t=>typeof t=="string"||typeof t=="number"||t instanceof Date?!0:typeof(t==null?void 0:t.value)<"u",QK=t=>{const e={};for(const[n,c]of Object.entries(t))BK(c)&&(e[zc(n)]=c);return e};function ss(t){const e=G.createContext(null);e.displayName=t;const n=UK(e),c=EK(e);return[n,c,e]}function UK(t){return()=>{const e=G.useContext(t);if(!e)throw new Error(`The context ${t.displayName} didn't found!`);return e}}function EK(t){return t.Provider}class iV{constructor(){bt(this,"handlers",[])}subscribe(e){this.handlers.push(e)}unsubscribe(e){this.handlers=this.handlers.filter(n=>n!==e)}get isSubscribed(){return this.handlers.length>0}invoke(e,n){this.handlers.slice().forEach(c=>c(e,n))}dispose(){this.handlers=[]}}function bv(t,e){var n;e(t),(n=t.children)==null||n.forEach(c=>bv(c,e))}let PK=0;function KK(t){return`${t}_${++PK}`}class _K{constructor(e,n){this.oldKey=e,this.newKey=n}}class $K{constructor(){bt(this,"onAfterKeyChanged",new iV);bt(this,"onBeforeDelete",new iV)}dispose(){this.onAfterKeyChanged.dispose(),this.onBeforeDelete.dispose()}}class qK{constructor(e,n,c,a,l){Nn(this,Cy,void 0);Nn(this,al,void 0);Nn(this,Xi,void 0);bt(this,"_state",{});bt(this,"id");bt(this,"store");bt(this,"model");bt(this,"field");bt(this,"parent");bt(this,"children",[]);bt(this,"userDefinedProps");bt(this,"validating",!1);var d;this.store=e,this.model=n,this.field=c,this.id=KK(this.model.type),dl(this,Xi,l),(d=e.children)==null||d.forEach(o=>{a(o).setParent(this)}),Nr(this,void 0,{name:cr("ComponentData",{key:e.key})}),dl(this,Cy,[(()=>wT(()=>this.key,(o,i)=>{this.invokeOnAfterKeyChanged(this,new _K(i,o))}))()])}setParent(e){var n;(n=this.parent)==null||n.removeChild(this),e.addChild(this),this.parent=e}insertAfterMe(e){this.insert(e,"after")}insertBeforeMe(e){this.insert(e,"before")}get state(){return this._state}get key(){return this.store.key}get events(){return se(this,al)||dl(this,al,new $K),se(this,al)}findByKey(e){if(this.key===e)return this;for(let n=0;n<this.children.length;n++){const a=this.children[n].findByKey(e);if(a)return a}}unifyKeys(e){const n=new Map,c=[];return bv(e,({key:a})=>{c.push(a)}),bv(this,a=>{let l=1;const r=()=>`${a.store.type} ${l}`;for(;c.includes(r());)l++;const d=r();n.set(d,a.key),a.store.key=d,c.push(d)}),n}get fields(){return this.collectAllFields(new Map)}delete(){var n;(n=this.parent)==null||n.removeChild(this);const e=this.collectAllNodesAsArray([]);this.invokeOnBeforeDeleted(e),this.disposeNodes(e)}get data(){const e={};for(const[n,c]of this.fields)if(c.storeDataInParentForm){const a=c.value||{};Object.keys(a).forEach(l=>e[l]=a[l])}else e[n]=c.value;return e}get fluentData(){const e=t_(this);return QK(e)}get errors(){const e={};for(const[n,c]of this.fields){c.error&&(e[n]=c.error);const a=c.errors;a&&c.storeDataInParentForm&&Object.keys(a).forEach(l=>e[l]=a[l]),a&&!c.storeDataInParentForm&&Object.keys(a).length>0&&(e[n]=a)}return e}get hasErrors(){return Object.keys(this.errors).length>0}setAllErrors(e){this.fields.forEach(n=>n.error=e)}async validate(){this.validating=!0;try{if(await Promise.allSettled([...this.fields.values()].map(a=>a.validate())),!se(this,Xi))return;const e=this.fields,n=se(this,Xi).map(a=>a(this.data));(await Promise.allSettled(n)).map(a=>{if(a.status==="rejected"){console.error(a.reason);return}return a.value}).forEach(a=>{a&&e.forEach((l,r)=>{if(a[r])return l.setError(a[r]);if(l.storeDataInParentForm)return l.setError(a)})})}finally{this.validating=!1}}async getValidationResult(){let e;const n=async([l,r])=>{const d=await r.getValidationResult();if(Bw(d))return;e??(e={});let o=e;if(!r.storeDataInParentForm){const i=Nc(d)?[]:{};e[l]??(e[l]=i),o=e[l]}Qw(o,d)},c=[...this.fields.entries()];if(await Promise.allSettled(c.map(n)),!se(this,Xi))return e;const a=async l=>{const r=await l(this.data);Bw(r)||(e??(e={}),Qw(e,r))};return await Promise.allSettled(se(this,Xi).map(a)),e}get isValidating(){return this.validating}reset(){this.fields.forEach(e=>e.reset())}clear(){this.fields.forEach(e=>e.clear())}dispose(){const e=this.collectAllNodesAsArray([]);this.disposeNodes(e)}get isRoot(){return!this.parent}insert(e,n){var o,i;const c=n==="before"?0:1;if(!this.parent)throw new Error(`Cannot insert without parent. Key = ${this.key}`);(o=e.parent)==null||o.removeChild(e),e.parent=this.parent;const a=this.parent.children,l=a.indexOf(this);if(l<0)throw new Error(`Cannot insert not existing element into ComponentData. Key = ${this.key}`);a.splice(l+c,0,e),(i=this.parent.store).children??(i.children=[]);const r=this.parent.store.children,d=r.indexOf(this.store);if(d<0)throw new Error(`Cannot insert not existing element into ComponentStore. Key = ${this.key}`);r.splice(d+c,0,e.store),e.store.slot=this.store.slot,e.store.slotCondition=this.store.slotCondition}disposeNodes(e){e.forEach(n=>{var c,a;(c=se(n,al))==null||c.dispose(),se(n,Cy).forEach(l=>l()),(a=n.field)==null||a.dispose(),n.parent=void 0,n.children=[]})}collectAllNodesAsArray(e){e.push(this);for(let n=0;n<this.children.length;n++)this.children[n].collectAllNodesAsArray(e);return e}collectAllFields(e){this.field&&e.set(this.key,this.field);for(let n=0;n<this.children.length;n++)this.children[n].collectAllFields(e);return e}addChild(e){var n;this.children.indexOf(e)<0&&this.children.push(e),(n=this.store).children??(n.children=[]),this.store.children.indexOf(e.store)<0&&this.store.children.push(e.store)}removeChild(e){var a;const n=this.children.indexOf(e);n>-1&&this.children.splice(n,1),(a=this.store).children??(a.children=[]);const c=this.store.children.indexOf(e.store);c>-1&&this.store.children.splice(c,1)}invokeOnAfterKeyChanged(e,n){var c,a;(c=se(this,al))!=null&&c.onAfterKeyChanged.isSubscribed&&se(this,al).onAfterKeyChanged.invoke(e,n),(a=this.parent)==null||a.invokeOnAfterKeyChanged(e,n)}invokeOnBeforeDeleted(e){var n,c;(n=se(this,al))!=null&&n.onBeforeDelete.isSubscribed&&e.forEach(a=>{var l;return(l=se(this,al))==null?void 0:l.onBeforeDelete.invoke(a,void 0)}),(c=this.parent)==null||c.invokeOnBeforeDeleted(e)}}Cy=new WeakMap,al=new WeakMap,Xi=new WeakMap;const t_=t=>{const e={};return t.fields.forEach((n,c)=>{e[c]=t.data[c]??""}),e},[lr,dV]=ss("ComponentDataContext"),[za,sv,e_]=ss("StoreContext"),[ld,oV]=ss("FormViewerPropsContext");function mm(t,e={}){return YK(t,(n,c,a)=>{var l;return n.push(((l=c==null?void 0:c.setup(e))==null?void 0:l.build(a))??Tt.setup(e).build(a)),n},[])}function Lm(t){return mm(t,{annotationType:"Style",calculable:!1})}function n_(t){const e=G.useRef(!1),[n,c]=G.useState(t);G.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]);const a=G.useCallback(l=>{e.current&&c(l)},[]);return G.useMemo(()=>[n,a],[n,a])}const c_=new Date(1718296034243),uV=":",bV="-",a_=`MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEJDKWHzXT9YZw7WDJy4wr/VMXBf+/afNB
52
+ overridden reactive render was not properly disposed.`)}this[wX]=!0}),t}function $W(t){return t.displayName||t.name||t.constructor&&(t.constructor.displayName||t.constructor.name)||"<component>"}function fB(t){var e=this;ql(this,KW,!1),ql(this,_W,!1);var n=$W(this),c=t.bind(this),a=!1,l=function(){var o=new gi(n+".render()",function(){if(!a&&(a=!0,e[wX]!==!0)){var i=!0;try{ql(e,_W,!0),e[KW]||G.Component.prototype.forceUpdate.call(e),i=!1}finally{ql(e,_W,!1),i&&(o.dispose(),e.render[Mo]=null)}}});return o.reactComponent=e,o};function r(){var d;a=!1;var o=(d=r[Mo])!=null?d:r[Mo]=l(),i=void 0,u=void 0;if(o.track(function(){try{u=l2(!1,c)}catch(b){i=b}}),i)throw i;return u}return r}function W3(t,e){return this.state!==e?!0:!r3(this.props,t)}function VX(t,e){var n=_r("reactProp_"+e+"_valueHolder"),c=_r("reactProp_"+e+"_atomHolder");function a(){return this[c]||ql(this,c,c2("reactive "+e)),this[c]}Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var r=!1;return Ed&&Mr&&(r=Ed(!0)),a.call(this).reportObserved(),Ed&&Mr&&Mr(r),this[n]},set:function(r){!this[_W]&&!r3(this[n],r)?(ql(this,n,r),ql(this,KW,!0),a.call(this).reportChanged(),ql(this,KW,!1)):ql(this,n,r)}})}function m3(t){return t.isMobxInjector===!0&&console.warn("Mobx observer: You are trying to use `observer` on a component that already has `inject`. Please apply `observer` before applying `inject`"),Object.prototype.isPrototypeOf.call(G.Component,t)||Object.prototype.isPrototypeOf.call(G.PureComponent,t)?JB(t):XB(t)}if(!G.Component)throw new Error("mobx-react requires React to be available");if(!xe)throw new Error("mobx-react requires mobx to be available");class Ki{constructor(e,n,c,a,l,r,d,o,i,u,b="component"){Nn(this,wy,void 0);bt(this,"component");this.actionsInitializer=c,this.valued=a,this.valueType=l,this.defaultProps=r,this.css=d,this.wrapperCss=o,this.typeName=i,this.icon=u,this.kind=b,this.component=m3(e),this.component.displayName=e.displayName||e.name,dl(this,wy,n)}get name(){return se(this,wy)??this.type}get type(){return this.typeName||this.component.displayName||this.component.name}}wy=new WeakMap;var Mc=(t=>(t.LTR="ltr",t.RTL="rtl",t))(Mc||{});class ns{constructor(e,n){bt(this,"key");bt(this,"name");bt(this,"editor");bt(this,"hint");bt(this,"localizable",!1);bt(this,"valued",!1);bt(this,"editorProps");bt(this,"default");bt(this,"type");bt(this,"required",!1);bt(this,"validator");bt(this,"errorMap");bt(this,"calculable",!0);bt(this,"slotConditionBuilder");this.key=e,this.name=n}clone(){return Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this))}}class MB extends ns{}var NB=typeof global=="object"&&global&&global.Object===Object&&global;const L3=NB;var zB=typeof self=="object"&&self&&self.Object===Object&&self,RB=L3||zB||Function("return this")();const vl=RB;var wB=vl.Symbol;const Gl=wB;var h3=Object.prototype,VB=h3.hasOwnProperty,gB=h3.toString,cs=Gl?Gl.toStringTag:void 0;function CB(t){var e=VB.call(t,cs),n=t[cs];try{t[cs]=void 0;var c=!0}catch{}var a=gB.call(t);return c&&(e?t[cs]=n:delete t[cs]),a}var jB=Object.prototype,AB=jB.toString;function OB(t){return AB.call(t)}var xB="[object Null]",kB="[object Undefined]",X3=Gl?Gl.toStringTag:void 0;function _i(t){return t==null?t===void 0?kB:xB:X3&&X3 in Object(t)?CB(t):OB(t)}function Yl(t){return t!=null&&typeof t=="object"}var IB="[object Symbol]";function gX(t){return typeof t=="symbol"||Yl(t)&&_i(t)==IB}function SB(t,e){for(var n=-1,c=t==null?0:t.length,a=Array(c);++n<c;)a[n]=e(t[n],n,t);return a}var FB=Array.isArray;const Nc=FB;var HB=1/0,v3=Gl?Gl.prototype:void 0,G3=v3?v3.toString:void 0;function Y3(t){if(typeof t=="string")return t;if(Nc(t))return SB(t,Y3)+"";if(gX(t))return G3?G3.call(t):"";var e=t+"";return e=="0"&&1/t==-HB?"-0":e}function Ka(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}function qW(t){return t}var TB="[object AsyncFunction]",DB="[object Function]",BB="[object GeneratorFunction]",QB="[object Proxy]";function CX(t){if(!Ka(t))return!1;var e=_i(t);return e==DB||e==BB||e==TB||e==QB}var UB=vl["__core-js_shared__"];const jX=UB;var p3=function(){var t=/[^.]+$/.exec(jX&&jX.keys&&jX.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function EB(t){return!!p3&&p3 in t}var PB=Function.prototype,KB=PB.toString;function $i(t){if(t!=null){try{return KB.call(t)}catch{}try{return t+""}catch{}}return""}var _B=/[\\^$.*+?()[\]{}|]/g,$B=/^\[object .+?Constructor\]$/,qB=Function.prototype,t6=Object.prototype,e6=qB.toString,n6=t6.hasOwnProperty,c6=RegExp("^"+e6.call(n6).replace(_B,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function a6(t){if(!Ka(t)||EB(t))return!1;var e=CX(t)?c6:$B;return e.test($i(t))}function l6(t,e){return t==null?void 0:t[e]}function qi(t,e){var n=l6(t,e);return a6(n)?n:void 0}var r6=qi(vl,"WeakMap");const AX=r6;var J3=Object.create,i6=function(){function t(){}return function(e){if(!Ka(e))return{};if(J3)return J3(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const d6=i6;function o6(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function f3(t,e){var n=-1,c=t.length;for(e||(e=Array(c));++n<c;)e[n]=t[n];return e}var u6=800,b6=16,s6=Date.now;function y6(t){var e=0,n=0;return function(){var c=s6(),a=b6-(c-n);if(n=c,a>0){if(++e>=u6)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function Z6(t){return function(){return t}}var W6=function(){try{var t=qi(Object,"defineProperty");return t({},"",{}),t}catch{}}();const tm=W6;var m6=tm?function(t,e){return tm(t,"toString",{configurable:!0,enumerable:!1,value:Z6(e),writable:!0})}:qW,L6=y6(m6);const h6=L6;function X6(t,e){for(var n=-1,c=t==null?0:t.length;++n<c&&e(t[n],n,t)!==!1;);return t}var v6=9007199254740991,G6=/^(?:0|[1-9]\d*)$/;function OX(t,e){var n=typeof t;return e=e??v6,!!e&&(n=="number"||n!="symbol"&&G6.test(t))&&t>-1&&t%1==0&&t<e}function xX(t,e,n){e=="__proto__"&&tm?tm(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function as(t,e){return t===e||t!==t&&e!==e}var Y6=Object.prototype,p6=Y6.hasOwnProperty;function kX(t,e,n){var c=t[e];(!(p6.call(t,e)&&as(c,n))||n===void 0&&!(e in t))&&xX(t,e,n)}function No(t,e,n,c){var a=!n;n||(n={});for(var l=-1,r=e.length;++l<r;){var d=e[l],o=c?c(n[d],t[d],d,n,t):void 0;o===void 0&&(o=t[d]),a?xX(n,d,o):kX(n,d,o)}return n}var M3=Math.max;function J6(t,e,n){return e=M3(e===void 0?t.length-1:e,0),function(){for(var c=arguments,a=-1,l=M3(c.length-e,0),r=Array(l);++a<l;)r[a]=c[e+a];a=-1;for(var d=Array(e+1);++a<e;)d[a]=c[a];return d[e]=n(r),o6(t,this,d)}}function f6(t,e){return h6(J6(t,e,qW),t+"")}var M6=9007199254740991;function IX(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=M6}function td(t){return t!=null&&IX(t.length)&&!CX(t)}function N6(t,e,n){if(!Ka(n))return!1;var c=typeof e;return(c=="number"?td(n)&&OX(e,n.length):c=="string"&&e in n)?as(n[e],t):!1}function N3(t){return f6(function(e,n){var c=-1,a=n.length,l=a>1?n[a-1]:void 0,r=a>2?n[2]:void 0;for(l=t.length>3&&typeof l=="function"?(a--,l):void 0,r&&N6(n[0],n[1],r)&&(l=a<3?void 0:l,a=1),e=Object(e);++c<a;){var d=n[c];d&&t(e,d,c,l)}return e})}var z6=Object.prototype;function ls(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||z6;return t===n}function R6(t,e){for(var n=-1,c=Array(t);++n<t;)c[n]=e(n);return c}var w6="[object Arguments]";function z3(t){return Yl(t)&&_i(t)==w6}var R3=Object.prototype,V6=R3.hasOwnProperty,g6=R3.propertyIsEnumerable,C6=z3(function(){return arguments}())?z3:function(t){return Yl(t)&&V6.call(t,"callee")&&!g6.call(t,"callee")};const rs=C6;function j6(){return!1}var w3=typeof oe=="object"&&oe&&!oe.nodeType&&oe,V3=w3&&typeof module=="object"&&module&&!module.nodeType&&module,A6=V3&&V3.exports===w3,g3=A6?vl.Buffer:void 0,O6=g3?g3.isBuffer:void 0,x6=O6||j6;const zo=x6;var k6="[object Arguments]",I6="[object Array]",S6="[object Boolean]",F6="[object Date]",H6="[object Error]",T6="[object Function]",D6="[object Map]",B6="[object Number]",Q6="[object Object]",U6="[object RegExp]",E6="[object Set]",P6="[object String]",K6="[object WeakMap]",_6="[object ArrayBuffer]",$6="[object DataView]",q6="[object Float32Array]",t7="[object Float64Array]",e7="[object Int8Array]",n7="[object Int16Array]",c7="[object Int32Array]",a7="[object Uint8Array]",l7="[object Uint8ClampedArray]",r7="[object Uint16Array]",i7="[object Uint32Array]",$e={};$e[q6]=$e[t7]=$e[e7]=$e[n7]=$e[c7]=$e[a7]=$e[l7]=$e[r7]=$e[i7]=!0,$e[k6]=$e[I6]=$e[_6]=$e[S6]=$e[$6]=$e[F6]=$e[H6]=$e[T6]=$e[D6]=$e[B6]=$e[Q6]=$e[U6]=$e[E6]=$e[P6]=$e[K6]=!1;function d7(t){return Yl(t)&&IX(t.length)&&!!$e[_i(t)]}function SX(t){return function(e){return t(e)}}var C3=typeof oe=="object"&&oe&&!oe.nodeType&&oe,is=C3&&typeof module=="object"&&module&&!module.nodeType&&module,o7=is&&is.exports===C3,FX=o7&&L3.process,u7=function(){try{var t=is&&is.require&&is.require("util").types;return t||FX&&FX.binding&&FX.binding("util")}catch{}}();const Ro=u7;var j3=Ro&&Ro.isTypedArray,b7=j3?SX(j3):d7;const em=b7;var s7=Object.prototype,y7=s7.hasOwnProperty;function A3(t,e){var n=Nc(t),c=!n&&rs(t),a=!n&&!c&&zo(t),l=!n&&!c&&!a&&em(t),r=n||c||a||l,d=r?R6(t.length,String):[],o=d.length;for(var i in t)(e||y7.call(t,i))&&!(r&&(i=="length"||a&&(i=="offset"||i=="parent")||l&&(i=="buffer"||i=="byteLength"||i=="byteOffset")||OX(i,o)))&&d.push(i);return d}function O3(t,e){return function(n){return t(e(n))}}var Z7=O3(Object.keys,Object);const W7=Z7;var m7=Object.prototype,L7=m7.hasOwnProperty;function x3(t){if(!ls(t))return W7(t);var e=[];for(var n in Object(t))L7.call(t,n)&&n!="constructor"&&e.push(n);return e}function wo(t){return td(t)?A3(t):x3(t)}var h7=Object.prototype,X7=h7.hasOwnProperty,v7=N3(function(t,e){if(ls(e)||td(e)){No(e,wo(e),t);return}for(var n in e)X7.call(e,n)&&kX(t,n,e[n])});const ed=v7;function G7(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var Y7=Object.prototype,p7=Y7.hasOwnProperty;function J7(t){if(!Ka(t))return G7(t);var e=ls(t),n=[];for(var c in t)c=="constructor"&&(e||!p7.call(t,c))||n.push(c);return n}function nd(t){return td(t)?A3(t,!0):J7(t)}var f7=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,M7=/^\w*$/;function HX(t,e){if(Nc(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||gX(t)?!0:M7.test(t)||!f7.test(t)||e!=null&&t in Object(e)}var N7=qi(Object,"create");const ds=N7;function z7(){this.__data__=ds?ds(null):{},this.size=0}function R7(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var w7="__lodash_hash_undefined__",V7=Object.prototype,g7=V7.hasOwnProperty;function C7(t){var e=this.__data__;if(ds){var n=e[t];return n===w7?void 0:n}return g7.call(e,t)?e[t]:void 0}var j7=Object.prototype,A7=j7.hasOwnProperty;function O7(t){var e=this.__data__;return ds?e[t]!==void 0:A7.call(e,t)}var x7="__lodash_hash_undefined__";function k7(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=ds&&e===void 0?x7:e,this}function cd(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var c=t[e];this.set(c[0],c[1])}}cd.prototype.clear=z7,cd.prototype.delete=R7,cd.prototype.get=C7,cd.prototype.has=O7,cd.prototype.set=k7;function I7(){this.__data__=[],this.size=0}function nm(t,e){for(var n=t.length;n--;)if(as(t[n][0],e))return n;return-1}var S7=Array.prototype,F7=S7.splice;function H7(t){var e=this.__data__,n=nm(e,t);if(n<0)return!1;var c=e.length-1;return n==c?e.pop():F7.call(e,n,1),--this.size,!0}function T7(t){var e=this.__data__,n=nm(e,t);return n<0?void 0:e[n][1]}function D7(t){return nm(this.__data__,t)>-1}function B7(t,e){var n=this.__data__,c=nm(n,t);return c<0?(++this.size,n.push([t,e])):n[c][1]=e,this}function tr(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var c=t[e];this.set(c[0],c[1])}}tr.prototype.clear=I7,tr.prototype.delete=H7,tr.prototype.get=T7,tr.prototype.has=D7,tr.prototype.set=B7;var Q7=qi(vl,"Map");const os=Q7;function U7(){this.size=0,this.__data__={hash:new cd,map:new(os||tr),string:new cd}}function E7(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function cm(t,e){var n=t.__data__;return E7(e)?n[typeof e=="string"?"string":"hash"]:n.map}function P7(t){var e=cm(this,t).delete(t);return this.size-=e?1:0,e}function K7(t){return cm(this,t).get(t)}function _7(t){return cm(this,t).has(t)}function $7(t,e){var n=cm(this,t),c=n.size;return n.set(t,e),this.size+=n.size==c?0:1,this}function er(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var c=t[e];this.set(c[0],c[1])}}er.prototype.clear=U7,er.prototype.delete=P7,er.prototype.get=K7,er.prototype.has=_7,er.prototype.set=$7;var q7="Expected a function";function TX(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(q7);var n=function(){var c=arguments,a=e?e.apply(this,c):c[0],l=n.cache;if(l.has(a))return l.get(a);var r=t.apply(this,c);return n.cache=l.set(a,r)||l,r};return n.cache=new(TX.Cache||er),n}TX.Cache=er;var tQ=500;function eQ(t){var e=TX(t,function(c){return n.size===tQ&&n.clear(),c}),n=e.cache;return e}var nQ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cQ=/\\(\\)?/g,aQ=eQ(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(nQ,function(n,c,a,l){e.push(a?l.replace(cQ,"$1"):c||n)}),e});const lQ=aQ;function am(t){return t==null?"":Y3(t)}function k3(t,e){return Nc(t)?t:HX(t,e)?[t]:lQ(am(t))}var rQ=1/0;function lm(t){if(typeof t=="string"||gX(t))return t;var e=t+"";return e=="0"&&1/t==-rQ?"-0":e}function I3(t,e){e=k3(e,t);for(var n=0,c=e.length;t!=null&&n<c;)t=t[lm(e[n++])];return n&&n==c?t:void 0}function iQ(t,e,n){var c=t==null?void 0:I3(t,e);return c===void 0?n:c}function S3(t,e){for(var n=-1,c=e.length,a=t.length;++n<c;)t[a+n]=e[n];return t}var dQ=O3(Object.getPrototypeOf,Object);const DX=dQ;var oQ="[object Object]",uQ=Function.prototype,bQ=Object.prototype,F3=uQ.toString,sQ=bQ.hasOwnProperty,yQ=F3.call(Object);function ZQ(t){if(!Yl(t)||_i(t)!=oQ)return!1;var e=DX(t);if(e===null)return!0;var n=sQ.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&F3.call(n)==yQ}function WQ(t,e,n){var c=-1,a=t.length;e<0&&(e=-e>a?0:a+e),n=n>a?a:n,n<0&&(n+=a),a=e>n?0:n-e>>>0,e>>>=0;for(var l=Array(a);++c<a;)l[c]=t[c+e];return l}function mQ(t,e,n){var c=t.length;return n=n===void 0?c:n,!e&&n>=c?t:WQ(t,e,n)}var LQ="\\ud800-\\udfff",hQ="\\u0300-\\u036f",XQ="\\ufe20-\\ufe2f",vQ="\\u20d0-\\u20ff",GQ=hQ+XQ+vQ,YQ="\\ufe0e\\ufe0f",pQ="\\u200d",JQ=RegExp("["+pQ+LQ+GQ+YQ+"]");function H3(t){return JQ.test(t)}function fQ(t){return t.split("")}var T3="\\ud800-\\udfff",MQ="\\u0300-\\u036f",NQ="\\ufe20-\\ufe2f",zQ="\\u20d0-\\u20ff",RQ=MQ+NQ+zQ,wQ="\\ufe0e\\ufe0f",VQ="["+T3+"]",BX="["+RQ+"]",QX="\\ud83c[\\udffb-\\udfff]",gQ="(?:"+BX+"|"+QX+")",D3="[^"+T3+"]",B3="(?:\\ud83c[\\udde6-\\uddff]){2}",Q3="[\\ud800-\\udbff][\\udc00-\\udfff]",CQ="\\u200d",U3=gQ+"?",E3="["+wQ+"]?",jQ="(?:"+CQ+"(?:"+[D3,B3,Q3].join("|")+")"+E3+U3+")*",AQ=E3+U3+jQ,OQ="(?:"+[D3+BX+"?",BX,B3,Q3,VQ].join("|")+")",xQ=RegExp(QX+"(?="+QX+")|"+OQ+AQ,"g");function kQ(t){return t.match(xQ)||[]}function IQ(t){return H3(t)?kQ(t):fQ(t)}function SQ(t){return function(e){e=am(e);var n=H3(e)?IQ(e):void 0,c=n?n[0]:e.charAt(0),a=n?mQ(n,1).join(""):e.slice(1);return c[t]()+a}}var FQ=SQ("toUpperCase");const P3=FQ;function K3(t,e,n,c){var a=-1,l=t==null?0:t.length;for(c&&l&&(n=t[++a]);++a<l;)n=e(n,t[a],a,t);return n}function HQ(t){return function(e){return t==null?void 0:t[e]}}var TQ={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},DQ=HQ(TQ);const BQ=DQ;var QQ=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,UQ="\\u0300-\\u036f",EQ="\\ufe20-\\ufe2f",PQ="\\u20d0-\\u20ff",KQ=UQ+EQ+PQ,_Q="["+KQ+"]",$Q=RegExp(_Q,"g");function qQ(t){return t=am(t),t&&t.replace(QQ,BQ).replace($Q,"")}var tU=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function eU(t){return t.match(tU)||[]}var nU=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function cU(t){return nU.test(t)}var _3="\\ud800-\\udfff",aU="\\u0300-\\u036f",lU="\\ufe20-\\ufe2f",rU="\\u20d0-\\u20ff",iU=aU+lU+rU,$3="\\u2700-\\u27bf",q3="a-z\\xdf-\\xf6\\xf8-\\xff",dU="\\xac\\xb1\\xd7\\xf7",oU="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",uU="\\u2000-\\u206f",bU=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",tw="A-Z\\xc0-\\xd6\\xd8-\\xde",sU="\\ufe0e\\ufe0f",ew=dU+oU+uU+bU,nw="['’]",cw="["+ew+"]",yU="["+iU+"]",aw="\\d+",ZU="["+$3+"]",lw="["+q3+"]",rw="[^"+_3+ew+aw+$3+q3+tw+"]",WU="\\ud83c[\\udffb-\\udfff]",mU="(?:"+yU+"|"+WU+")",LU="[^"+_3+"]",iw="(?:\\ud83c[\\udde6-\\uddff]){2}",dw="[\\ud800-\\udbff][\\udc00-\\udfff]",Vo="["+tw+"]",hU="\\u200d",ow="(?:"+lw+"|"+rw+")",XU="(?:"+Vo+"|"+rw+")",uw="(?:"+nw+"(?:d|ll|m|re|s|t|ve))?",bw="(?:"+nw+"(?:D|LL|M|RE|S|T|VE))?",sw=mU+"?",yw="["+sU+"]?",vU="(?:"+hU+"(?:"+[LU,iw,dw].join("|")+")"+yw+sw+")*",GU="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",YU="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",pU=yw+sw+vU,JU="(?:"+[ZU,iw,dw].join("|")+")"+pU,fU=RegExp([Vo+"?"+lw+"+"+uw+"(?="+[cw,Vo,"$"].join("|")+")",XU+"+"+bw+"(?="+[cw,Vo+ow,"$"].join("|")+")",Vo+"?"+ow+"+"+uw,Vo+"+"+bw,YU,GU,aw,JU].join("|"),"g");function MU(t){return t.match(fU)||[]}function NU(t,e,n){return t=am(t),e=n?void 0:e,e===void 0?cU(t)?MU(t):eU(t):t.match(e)||[]}var zU="['’]",RU=RegExp(zU,"g");function wU(t){return function(e){return K3(NU(qQ(e).replace(RU,"")),t,"")}}function VU(){this.__data__=new tr,this.size=0}function gU(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function CU(t){return this.__data__.get(t)}function jU(t){return this.__data__.has(t)}var AU=200;function OU(t,e){var n=this.__data__;if(n instanceof tr){var c=n.__data__;if(!os||c.length<AU-1)return c.push([t,e]),this.size=++n.size,this;n=this.__data__=new er(c)}return n.set(t,e),this.size=n.size,this}function _a(t){var e=this.__data__=new tr(t);this.size=e.size}_a.prototype.clear=VU,_a.prototype.delete=gU,_a.prototype.get=CU,_a.prototype.has=jU,_a.prototype.set=OU;function xU(t,e){return t&&No(e,wo(e),t)}function kU(t,e){return t&&No(e,nd(e),t)}var Zw=typeof oe=="object"&&oe&&!oe.nodeType&&oe,Ww=Zw&&typeof module=="object"&&module&&!module.nodeType&&module,IU=Ww&&Ww.exports===Zw,mw=IU?vl.Buffer:void 0,Lw=mw?mw.allocUnsafe:void 0;function hw(t,e){if(e)return t.slice();var n=t.length,c=Lw?Lw(n):new t.constructor(n);return t.copy(c),c}function SU(t,e){for(var n=-1,c=t==null?0:t.length,a=0,l=[];++n<c;){var r=t[n];e(r,n,t)&&(l[a++]=r)}return l}function Xw(){return[]}var FU=Object.prototype,HU=FU.propertyIsEnumerable,vw=Object.getOwnPropertySymbols,TU=vw?function(t){return t==null?[]:(t=Object(t),SU(vw(t),function(e){return HU.call(t,e)}))}:Xw;const UX=TU;function DU(t,e){return No(t,UX(t),e)}var BU=Object.getOwnPropertySymbols,QU=BU?function(t){for(var e=[];t;)S3(e,UX(t)),t=DX(t);return e}:Xw;const Gw=QU;function UU(t,e){return No(t,Gw(t),e)}function Yw(t,e,n){var c=e(t);return Nc(t)?c:S3(c,n(t))}function EX(t){return Yw(t,wo,UX)}function EU(t){return Yw(t,nd,Gw)}var PU=qi(vl,"DataView");const PX=PU;var KU=qi(vl,"Promise");const KX=KU;var _U=qi(vl,"Set");const _X=_U;var pw="[object Map]",$U="[object Object]",Jw="[object Promise]",fw="[object Set]",Mw="[object WeakMap]",Nw="[object DataView]",qU=$i(PX),tE=$i(os),eE=$i(KX),nE=$i(_X),cE=$i(AX),ad=_i;(PX&&ad(new PX(new ArrayBuffer(1)))!=Nw||os&&ad(new os)!=pw||KX&&ad(KX.resolve())!=Jw||_X&&ad(new _X)!=fw||AX&&ad(new AX)!=Mw)&&(ad=function(t){var e=_i(t),n=e==$U?t.constructor:void 0,c=n?$i(n):"";if(c)switch(c){case qU:return Nw;case tE:return pw;case eE:return Jw;case nE:return fw;case cE:return Mw}return e});const go=ad;var aE=Object.prototype,lE=aE.hasOwnProperty;function rE(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&lE.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var iE=vl.Uint8Array;const rm=iE;function $X(t){var e=new t.constructor(t.byteLength);return new rm(e).set(new rm(t)),e}function dE(t,e){var n=e?$X(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var oE=/\w*$/;function uE(t){var e=new t.constructor(t.source,oE.exec(t));return e.lastIndex=t.lastIndex,e}var zw=Gl?Gl.prototype:void 0,Rw=zw?zw.valueOf:void 0;function bE(t){return Rw?Object(Rw.call(t)):{}}function ww(t,e){var n=e?$X(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var sE="[object Boolean]",yE="[object Date]",ZE="[object Map]",WE="[object Number]",mE="[object RegExp]",LE="[object Set]",hE="[object String]",XE="[object Symbol]",vE="[object ArrayBuffer]",GE="[object DataView]",YE="[object Float32Array]",pE="[object Float64Array]",JE="[object Int8Array]",fE="[object Int16Array]",ME="[object Int32Array]",NE="[object Uint8Array]",zE="[object Uint8ClampedArray]",RE="[object Uint16Array]",wE="[object Uint32Array]";function VE(t,e,n){var c=t.constructor;switch(e){case vE:return $X(t);case sE:case yE:return new c(+t);case GE:return dE(t,n);case YE:case pE:case JE:case fE:case ME:case NE:case zE:case RE:case wE:return ww(t,n);case ZE:return new c;case WE:case hE:return new c(t);case mE:return uE(t);case LE:return new c;case XE:return bE(t)}}function Vw(t){return typeof t.constructor=="function"&&!ls(t)?d6(DX(t)):{}}var gE="[object Map]";function CE(t){return Yl(t)&&go(t)==gE}var gw=Ro&&Ro.isMap,jE=gw?SX(gw):CE;const AE=jE;var OE="[object Set]";function xE(t){return Yl(t)&&go(t)==OE}var Cw=Ro&&Ro.isSet,kE=Cw?SX(Cw):xE;const IE=kE;var SE=1,FE=2,HE=4,jw="[object Arguments]",TE="[object Array]",DE="[object Boolean]",BE="[object Date]",QE="[object Error]",Aw="[object Function]",UE="[object GeneratorFunction]",EE="[object Map]",PE="[object Number]",Ow="[object Object]",KE="[object RegExp]",_E="[object Set]",$E="[object String]",qE="[object Symbol]",tP="[object WeakMap]",eP="[object ArrayBuffer]",nP="[object DataView]",cP="[object Float32Array]",aP="[object Float64Array]",lP="[object Int8Array]",rP="[object Int16Array]",iP="[object Int32Array]",dP="[object Uint8Array]",oP="[object Uint8ClampedArray]",uP="[object Uint16Array]",bP="[object Uint32Array]",Qe={};Qe[jw]=Qe[TE]=Qe[eP]=Qe[nP]=Qe[DE]=Qe[BE]=Qe[cP]=Qe[aP]=Qe[lP]=Qe[rP]=Qe[iP]=Qe[EE]=Qe[PE]=Qe[Ow]=Qe[KE]=Qe[_E]=Qe[$E]=Qe[qE]=Qe[dP]=Qe[oP]=Qe[uP]=Qe[bP]=!0,Qe[QE]=Qe[Aw]=Qe[tP]=!1;function im(t,e,n,c,a,l){var r,d=e&SE,o=e&FE,i=e&HE;if(n&&(r=a?n(t,c,a,l):n(t)),r!==void 0)return r;if(!Ka(t))return t;var u=Nc(t);if(u){if(r=rE(t),!d)return f3(t,r)}else{var b=go(t),s=b==Aw||b==UE;if(zo(t))return hw(t,d);if(b==Ow||b==jw||s&&!a){if(r=o||s?{}:Vw(t),!d)return o?UU(t,kU(r,t)):DU(t,xU(r,t))}else{if(!Qe[b])return a?t:{};r=VE(t,b,d)}}l||(l=new _a);var Z=l.get(t);if(Z)return Z;l.set(t,r),IE(t)?t.forEach(function(v){r.add(im(v,e,n,v,t,l))}):AE(t)&&t.forEach(function(v,L){r.set(L,im(v,e,n,L,t,l))});var W=i?o?EU:EX:o?nd:wo,m=u?void 0:W(t);return X6(m||t,function(v,L){m&&(L=v,v=t[L]),kX(r,L,im(v,e,n,L,t,l))}),r}var sP=4;function qX(t){return im(t,sP)}var yP="__lodash_hash_undefined__";function ZP(t){return this.__data__.set(t,yP),this}function WP(t){return this.__data__.has(t)}function dm(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new er;++e<n;)this.add(t[e])}dm.prototype.add=dm.prototype.push=ZP,dm.prototype.has=WP;function mP(t,e){for(var n=-1,c=t==null?0:t.length;++n<c;)if(e(t[n],n,t))return!0;return!1}function LP(t,e){return t.has(e)}var hP=1,XP=2;function xw(t,e,n,c,a,l){var r=n&hP,d=t.length,o=e.length;if(d!=o&&!(r&&o>d))return!1;var i=l.get(t),u=l.get(e);if(i&&u)return i==e&&u==t;var b=-1,s=!0,Z=n&XP?new dm:void 0;for(l.set(t,e),l.set(e,t);++b<d;){var W=t[b],m=e[b];if(c)var v=r?c(m,W,b,e,t,l):c(W,m,b,t,e,l);if(v!==void 0){if(v)continue;s=!1;break}if(Z){if(!mP(e,function(L,X){if(!LP(Z,X)&&(W===L||a(W,L,n,c,l)))return Z.push(X)})){s=!1;break}}else if(!(W===m||a(W,m,n,c,l))){s=!1;break}}return l.delete(t),l.delete(e),s}function vP(t){var e=-1,n=Array(t.size);return t.forEach(function(c,a){n[++e]=[a,c]}),n}function GP(t){var e=-1,n=Array(t.size);return t.forEach(function(c){n[++e]=c}),n}var YP=1,pP=2,JP="[object Boolean]",fP="[object Date]",MP="[object Error]",NP="[object Map]",zP="[object Number]",RP="[object RegExp]",wP="[object Set]",VP="[object String]",gP="[object Symbol]",CP="[object ArrayBuffer]",jP="[object DataView]",kw=Gl?Gl.prototype:void 0,tv=kw?kw.valueOf:void 0;function AP(t,e,n,c,a,l,r){switch(n){case jP:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case CP:return!(t.byteLength!=e.byteLength||!l(new rm(t),new rm(e)));case JP:case fP:case zP:return as(+t,+e);case MP:return t.name==e.name&&t.message==e.message;case RP:case VP:return t==e+"";case NP:var d=vP;case wP:var o=c&YP;if(d||(d=GP),t.size!=e.size&&!o)return!1;var i=r.get(t);if(i)return i==e;c|=pP,r.set(t,e);var u=xw(d(t),d(e),c,a,l,r);return r.delete(t),u;case gP:if(tv)return tv.call(t)==tv.call(e)}return!1}var OP=1,xP=Object.prototype,kP=xP.hasOwnProperty;function IP(t,e,n,c,a,l){var r=n&OP,d=EX(t),o=d.length,i=EX(e),u=i.length;if(o!=u&&!r)return!1;for(var b=o;b--;){var s=d[b];if(!(r?s in e:kP.call(e,s)))return!1}var Z=l.get(t),W=l.get(e);if(Z&&W)return Z==e&&W==t;var m=!0;l.set(t,e),l.set(e,t);for(var v=r;++b<o;){s=d[b];var L=t[s],X=e[s];if(c)var Y=r?c(X,L,s,e,t,l):c(L,X,s,t,e,l);if(!(Y===void 0?L===X||a(L,X,n,c,l):Y)){m=!1;break}v||(v=s=="constructor")}if(m&&!v){var p=t.constructor,J=e.constructor;p!=J&&"constructor"in t&&"constructor"in e&&!(typeof p=="function"&&p instanceof p&&typeof J=="function"&&J instanceof J)&&(m=!1)}return l.delete(t),l.delete(e),m}var SP=1,Iw="[object Arguments]",Sw="[object Array]",om="[object Object]",FP=Object.prototype,Fw=FP.hasOwnProperty;function HP(t,e,n,c,a,l){var r=Nc(t),d=Nc(e),o=r?Sw:go(t),i=d?Sw:go(e);o=o==Iw?om:o,i=i==Iw?om:i;var u=o==om,b=i==om,s=o==i;if(s&&zo(t)){if(!zo(e))return!1;r=!0,u=!1}if(s&&!u)return l||(l=new _a),r||em(t)?xw(t,e,n,c,a,l):AP(t,e,o,n,c,a,l);if(!(n&SP)){var Z=u&&Fw.call(t,"__wrapped__"),W=b&&Fw.call(e,"__wrapped__");if(Z||W){var m=Z?t.value():t,v=W?e.value():e;return l||(l=new _a),a(m,v,n,c,l)}}return s?(l||(l=new _a),IP(t,e,n,c,a,l)):!1}function ev(t,e,n,c,a){return t===e?!0:t==null||e==null||!Yl(t)&&!Yl(e)?t!==t&&e!==e:HP(t,e,n,c,ev,a)}var TP=1,DP=2;function BP(t,e,n,c){var a=n.length,l=a,r=!c;if(t==null)return!l;for(t=Object(t);a--;){var d=n[a];if(r&&d[2]?d[1]!==t[d[0]]:!(d[0]in t))return!1}for(;++a<l;){d=n[a];var o=d[0],i=t[o],u=d[1];if(r&&d[2]){if(i===void 0&&!(o in t))return!1}else{var b=new _a;if(c)var s=c(i,u,o,t,e,b);if(!(s===void 0?ev(u,i,TP|DP,c,b):s))return!1}}return!0}function Hw(t){return t===t&&!Ka(t)}function QP(t){for(var e=wo(t),n=e.length;n--;){var c=e[n],a=t[c];e[n]=[c,a,Hw(a)]}return e}function Tw(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}function UP(t){var e=QP(t);return e.length==1&&e[0][2]?Tw(e[0][0],e[0][1]):function(n){return n===t||BP(n,t,e)}}function EP(t,e){return t!=null&&e in Object(t)}function PP(t,e,n){e=k3(e,t);for(var c=-1,a=e.length,l=!1;++c<a;){var r=lm(e[c]);if(!(l=t!=null&&n(t,r)))break;t=t[r]}return l||++c!=a?l:(a=t==null?0:t.length,!!a&&IX(a)&&OX(r,a)&&(Nc(t)||rs(t)))}function KP(t,e){return t!=null&&PP(t,e,EP)}var _P=1,$P=2;function qP(t,e){return HX(t)&&Hw(e)?Tw(lm(t),e):function(n){var c=iQ(n,t);return c===void 0&&c===e?KP(n,t):ev(e,c,_P|$P)}}function tK(t){return function(e){return e==null?void 0:e[t]}}function eK(t){return function(e){return I3(e,t)}}function nK(t){return HX(t)?tK(lm(t)):eK(t)}function cK(t){return typeof t=="function"?t:t==null?qW:typeof t=="object"?Nc(t)?qP(t[0],t[1]):UP(t):nK(t)}function aK(t){return function(e,n,c){for(var a=-1,l=Object(e),r=c(e),d=r.length;d--;){var o=r[t?d:++a];if(n(l[o],o,l)===!1)break}return e}}var lK=aK();const nv=lK;function rK(t,e){return t&&nv(t,e,wo)}function iK(t,e){return function(n,c){if(n==null)return n;if(!td(n))return t(n,c);for(var a=n.length,l=e?a:-1,r=Object(n);(e?l--:++l<a)&&c(r[l],l,r)!==!1;);return n}}var dK=iK(rK);const oK=dK;function cv(t,e,n){(n!==void 0&&!as(t[e],n)||n===void 0&&!(e in t))&&xX(t,e,n)}function uK(t){return Yl(t)&&td(t)}function av(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function bK(t){return No(t,nd(t))}function sK(t,e,n,c,a,l,r){var d=av(t,n),o=av(e,n),i=r.get(o);if(i){cv(t,n,i);return}var u=l?l(d,o,n+"",t,e,r):void 0,b=u===void 0;if(b){var s=Nc(o),Z=!s&&zo(o),W=!s&&!Z&&em(o);u=o,s||Z||W?Nc(d)?u=d:uK(d)?u=f3(d):Z?(b=!1,u=hw(o,!0)):W?(b=!1,u=ww(o,!0)):u=[]:ZQ(o)||rs(o)?(u=d,rs(d)?u=bK(d):(!Ka(d)||CX(d))&&(u=Vw(o))):b=!1}b&&(r.set(o,u),a(u,o,c,l,r),r.delete(o)),cv(t,n,u)}function Dw(t,e,n,c,a){t!==e&&nv(e,function(l,r){if(a||(a=new _a),Ka(l))sK(t,e,r,n,Dw,c,a);else{var d=c?c(av(t,r),l,r+"",t,e,a):void 0;d===void 0&&(d=l),cv(t,r,d)}},nd)}function yK(t){return typeof t=="function"?t:qW}function ZK(t,e){return t==null?t:nv(t,yK(e),nd)}var WK="[object Map]",mK="[object Set]",LK=Object.prototype,hK=LK.hasOwnProperty;function Bw(t){if(t==null)return!0;if(td(t)&&(Nc(t)||typeof t=="string"||typeof t.splice=="function"||zo(t)||em(t)||rs(t)))return!t.length;var e=go(t);if(e==WK||e==mK)return!t.size;if(ls(t))return!x3(t).length;for(var n in t)if(hK.call(t,n))return!1;return!0}function XK(t){return t===void 0}var vK=N3(function(t,e,n){Dw(t,e,n)});const Qw=vK;function GK(t,e,n,c,a){return a(t,function(l,r,d){n=c?(c=!1,l):e(n,l,r,d)}),n}function YK(t,e,n){var c=Nc(t)?K3:GK,a=arguments.length<3;return c(t,cK(e),n,a,oK)}var pK=wU(function(t,e,n){return t+(n?" ":"")+P3(e)});const Uw=pK;class JK extends ns{}class fK extends ns{}class MK extends ns{constructor(){super(...arguments);bt(this,"data")}}class NK extends ns{}const zK={Property:MK,Container:MB,Event:JK,Module:fK,Style:NK};class RK{constructor(){bt(this,"annotationType","Module");bt(this,"autoName",!0)}}class Ew{constructor(){bt(this,"annotation");bt(this,"options",new RK)}get valued(){return this.setup({valued:!0})}get localize(){return this.setup({localizable:!0})}get notLocalize(){return this.setup({localizable:!1})}named(e){return this.setup({name:e})}hinted(e){return this.setup({hint:e})}calculable(e){return this.setup({calculable:e})}setup(e){const{annotationType:n,autoName:c,...a}=e,l=this.clone();return l.options.annotationType=n??l.options.annotationType,l.options.autoName=c??l.options.autoName,ed(l.annotation,a),l}clone(){const e=qX(this);return e.options=qX(this.options),e.annotation=qX(this.annotation),e.annotation??(e.annotation={}),e}build(e){const n=this.getName(e),c=new zK[this.options.annotationType](e,n);return ed(c,this.annotation),c}withEditorProps(e){const n=this.clone();return ed(n.annotation,{editorProps:e}),n}getName(e){return this.annotation.name??(this.options.autoName?Uw(e):e)}}class lv extends Ew{get required(){return this.setup({required:!0})}default(e){return this.setup({default:e})}validated(e,n){return this.setup({validator:e,errorMap:n})}}class um extends lv{constructor(){super(...arguments);bt(this,"subType")}get ofString(){const n=new um().setup({...this.options,...this.annotation,type:"array",editor:"arrayOfString"});return n.subType="string",n}get ofObject(){const n=new um().setup({...this.options,...this.annotation,type:"array"});return n.subType="object",n}}class Pw extends lv{constructor(){super(...arguments);bt(this,"values");bt(this,"labels")}get required(){return super.required}labeled(...n){const c=this.clone();return c.labels=n,c}build(n){const c=super.build(n);return c.data=this.values.map((a,l)=>{var d;return{label:((d=this.labels)==null?void 0:d[l])??Uw(a.toString()),value:a}}),c}default(n){return this.setup({default:n})}}class wK extends Pw{radio(){return this.setup({editor:"radio"})}default(e){return super.default(e)}}class VK extends Pw{default(e){return super.default(e)}}const fL=class fL extends Ew{constructor(e){super(),this.annotation={editor:e}}get array(){return new um().setup({...this.options,...this.annotation,type:"array"})}typed(e){return new lv().setup({...this.options,...this.annotation,type:e})}oneOf(...e){const n=new wK().setup({...this.options,...this.annotation,type:"enum"});return n.values=e,n}someOf(...e){const n=new VK().setup({...this.options,...this.annotation,type:"enum"});return n.values=e,n}};bt(fL,"create",e=>new fL(e));let bm=fL;const pl=bm.create;function Ma(t){return pl(t).setup({annotationType:"Property"})}function Kw(t){return t.reduce((e,n)=>(e[n.key]=n.default,e),{})}function sm(t){return{any:{object:Kw(t)}}}class gK extends bm{constructor(e){super(e)}withSlotConditionBuilder(e){return this.setup({slotConditionBuilder:e})}}function CK(t){return new gK(t)}const jK=(t,e)=>e.reduceScreen((n,c)=>c.key===t?n+1:n,0)===1;pl("key").typed("string").required.hinted("Unique component key").calculable(!1).validated(jK,{code:"unique_key",message:"The key must be unique!"}).build("key");const AK=pl("htmlAttributes"),OK=pl("validation"),Tt=Ma("string").typed("string").localize,Ht=Ma("boolean").typed("boolean"),yc=Ma("number").typed("number"),xK=Ma("size").typed("string"),us=Ma("date").typed("date"),nr=Ma("array").array,Co=Ma("color").typed("string");pl("tooltipType").typed("string");const jo=pl("size").setup({calculable:!1}),_w=pl("color").setup({calculable:!1});Ma("string").calculable(!0).build("className");const Kt=pl("event").setup({annotationType:"Event"}),Zc=CK("node").setup({annotationType:"Container"}),Te=Ma("oneOf").oneOf.bind(Ma("oneOf")),kK=Ma("someOf").someOf.bind(Ma("someOf")),IK=pl("tooltipProps"),SK=pl("renderWhen").typed("boolean"),ym={width:jo.setup({default:"100%"}),height:jo,marginTop:jo,marginRight:jo,marginBottom:jo,marginLeft:jo,color:_w,backgroundColor:_w},Zm={flexDirection:Te("column","row","column-reverse","row-reverse"),gap:xK,alignItems:Te("start","center","baseline","end","stretch"),justifyContent:Te("flex-start","flex-end","center","space-between","space-around","space-evenly","start","end","left","right"),flexWrap:Te("wrap","nowrap","wrap-reverse")},$w=(async function(){}).constructor;class Na{constructor(e,n,c={}){this.func=e,this.body=n,this.params=c}static functionalAction(e,n={}){return new Na(e,void 0,n)}static sourceAction(e,n={}){const c=$w("e, args",e);return new Na(c,e,n)}static createFromObject(e){return Na.sourceAction(e.body,e.params)}}const FK=t=>{const e={};return t&&Object.keys(t).forEach(n=>{const c=t[n];e[n]=Na.createFromObject(c)}),e},rv="onDidMount",iv="onWillUnmount";function HK(t){return new Proxy(t,{get(e,n){return n==="toJSON"?()=>e.data:e.data[n]},set(e,n,c){var a;return(a=e.fields.get(n))==null||a.setValue(c),!0}})}class dv{constructor(e,n,c,a,l){Nn(this,Vy,void 0);bt(this,"renderedProps");bt(this,"setUserDefinedProps",e=>{this.sender.userDefinedProps=e});Nn(this,gy,e=>!!(e&&e.target&&e.type&&e.preventDefault));Nn(this,ML,e=>!se(this,gy).call(this,e));this.type=e,this.sender=n,this.store=c,this.args=a,this.renderedProps=l.get,dl(this,Vy,HK(this.store.formData))}get event(){return this.args.find(se(this,gy))}get value(){return this.args.filter(e=>typeof e<"u").find(se(this,ML))}get data(){return se(this,Vy)}}Vy=new WeakMap,gy=new WeakMap,ML=new WeakMap;const ov=[IK.build("tooltipProps"),SK.build("renderWhen"),AK.build("htmlAttributes"),OK.build("validation"),Kt.build(rv),Kt.build(iv)];class bs{constructor(e,n,c,a,l,r,d,o="component"){this.type=e,this.properties=n,this.css=c,this.wrapperCss=a,this.modules=l,this.customPreview=r,this.valuedAn=d,this.kind=o}}const qw=Symbol("key");function tV(t,e,n={}){return eV("autorun",t,e,n)}function cr(t,e={}){return eV("observable",t,void 0,e)}function eV(t,e,n,c={}){const a=Object.keys(c).map(l=>`${l}=${c[l]}`).join("_");return`${t}_${e}_${n?`${n}_`:""}${a}`}let nV=0;function cV(t){t[qw]||(++nV,t[qw]=`actionData_${nV}`)}function aV(t){var n;const e=t.events;e&&Object.values(e).forEach(c=>c.forEach(cV)),(n=t.children)==null||n.forEach(aV)}function Wm(t){return(t==null?void 0:t.computeType)==="function"}function lV(t){return(t==null?void 0:t.computeType)==="localization"}class ar{constructor(e,n){bt(this,"key","");bt(this,"type","");bt(this,"props",{});bt(this,"css");bt(this,"wrapperCss");bt(this,"events");bt(this,"children");bt(this,"schema");bt(this,"htmlAttributes");bt(this,"tooltipProps");bt(this,"slot");bt(this,"slotCondition");bt(this,"renderWhen");this.key=e,this.type=n,Nr(this,void 0,{name:cr("ComponentStore",{key:e})})}static createFromObject(e){const n=ed(new ar(e.key,e.type),e);return aV(n),n}static addEventHandler(e,n,c){var a;cV(c),e.events??(e.events={}),(a=e.events)[n]??(a[n]=[]),e.events[n].push(c)}}function rV(t){return typeof t=="string"}function TK(t){return typeof t=="number"}function uv(t){return typeof t=="object"&&typeof t.then=="function"}function DK(t){return typeof t=="object"}function Qc(t,e){const n=m3(e);return n.displayName=t,n}new ar("","");const zc=t=>t.replace(new RegExp(" ","g"),"_"),BK=t=>typeof t=="string"||typeof t=="number"||t instanceof Date?!0:typeof(t==null?void 0:t.value)<"u",QK=t=>{const e={};for(const[n,c]of Object.entries(t))BK(c)&&(e[zc(n)]=c);return e};function ss(t){const e=G.createContext(null);e.displayName=t;const n=UK(e),c=EK(e);return[n,c,e]}function UK(t){return()=>{const e=G.useContext(t);if(!e)throw new Error(`The context ${t.displayName} didn't found!`);return e}}function EK(t){return t.Provider}class iV{constructor(){bt(this,"handlers",[])}subscribe(e){this.handlers.push(e)}unsubscribe(e){this.handlers=this.handlers.filter(n=>n!==e)}get isSubscribed(){return this.handlers.length>0}invoke(e,n){this.handlers.slice().forEach(c=>c(e,n))}dispose(){this.handlers=[]}}function bv(t,e){var n;e(t),(n=t.children)==null||n.forEach(c=>bv(c,e))}let PK=0;function KK(t){return`${t}_${++PK}`}class _K{constructor(e,n){this.oldKey=e,this.newKey=n}}class $K{constructor(){bt(this,"onAfterKeyChanged",new iV);bt(this,"onBeforeDelete",new iV)}dispose(){this.onAfterKeyChanged.dispose(),this.onBeforeDelete.dispose()}}class qK{constructor(e,n,c,a,l){Nn(this,Cy,void 0);Nn(this,al,void 0);Nn(this,Xi,void 0);bt(this,"_state",{});bt(this,"id");bt(this,"store");bt(this,"model");bt(this,"field");bt(this,"parent");bt(this,"children",[]);bt(this,"userDefinedProps");bt(this,"validating",!1);var d;this.store=e,this.model=n,this.field=c,this.id=KK(this.model.type),dl(this,Xi,l),(d=e.children)==null||d.forEach(o=>{a(o).setParent(this)}),Nr(this,void 0,{name:cr("ComponentData",{key:e.key})}),dl(this,Cy,[(()=>wT(()=>this.key,(o,i)=>{this.invokeOnAfterKeyChanged(this,new _K(i,o))}))()])}setParent(e){var n;(n=this.parent)==null||n.removeChild(this),e.addChild(this),this.parent=e}insertAfterMe(e){this.insert(e,"after")}insertBeforeMe(e){this.insert(e,"before")}get state(){return this._state}get key(){return this.store.key}get events(){return se(this,al)||dl(this,al,new $K),se(this,al)}findByKey(e){if(this.key===e)return this;for(let n=0;n<this.children.length;n++){const a=this.children[n].findByKey(e);if(a)return a}}unifyKeys(e){const n=new Map,c=[];return bv(e,({key:a})=>{c.push(a)}),bv(this,a=>{let l=1;const r=()=>`${a.store.type} ${l}`;for(;c.includes(r());)l++;const d=r();n.set(d,a.key),a.store.key=d,c.push(d)}),n}get fields(){return this.collectAllFields(new Map)}delete(){var n;(n=this.parent)==null||n.removeChild(this);const e=this.collectAllNodesAsArray([]);this.invokeOnBeforeDeleted(e),this.disposeNodes(e)}get data(){const e={};for(const[n,c]of this.fields)if(c.storeDataInParentForm){const a=c.value||{};Object.keys(a).forEach(l=>e[l]=a[l])}else e[n]=c.value;return e}get fluentData(){const e=t_(this);return QK(e)}get errors(){const e={};for(const[n,c]of this.fields){c.error&&(e[n]=c.error);const a=c.errors;a&&c.storeDataInParentForm&&Object.keys(a).forEach(l=>e[l]=a[l]),a&&!c.storeDataInParentForm&&Object.keys(a).length>0&&(e[n]=a)}return e}get hasErrors(){return Object.keys(this.errors).length>0}setAllErrors(e){this.fields.forEach(n=>n.error=e)}async validate(){this.validating=!0;try{if(await Promise.allSettled([...this.fields.values()].map(a=>a.validate())),!se(this,Xi))return;const e=this.fields,n=se(this,Xi).map(a=>a(this.data));(await Promise.allSettled(n)).map(a=>{if(a.status==="rejected"){console.error(a.reason);return}return a.value}).forEach(a=>{a&&e.forEach((l,r)=>{if(a[r])return l.setError(a[r]);if(l.storeDataInParentForm)return l.setError(a)})})}finally{this.validating=!1}}async getValidationResult(){let e;const n=async([l,r])=>{const d=await r.getValidationResult();if(Bw(d))return;e??(e={});let o=e;if(!r.storeDataInParentForm){const i=Nc(d)?[]:{};e[l]??(e[l]=i),o=e[l]}Qw(o,d)},c=[...this.fields.entries()];if(await Promise.allSettled(c.map(n)),!se(this,Xi))return e;const a=async l=>{const r=await l(this.data);Bw(r)||(e??(e={}),Qw(e,r))};return await Promise.allSettled(se(this,Xi).map(a)),e}get isValidating(){return this.validating}reset(){this.fields.forEach(e=>e.reset())}clear(){this.fields.forEach(e=>e.clear())}dispose(){const e=this.collectAllNodesAsArray([]);this.disposeNodes(e)}get isRoot(){return!this.parent}insert(e,n){var o,i;const c=n==="before"?0:1;if(!this.parent)throw new Error(`Cannot insert without parent. Key = ${this.key}`);(o=e.parent)==null||o.removeChild(e),e.parent=this.parent;const a=this.parent.children,l=a.indexOf(this);if(l<0)throw new Error(`Cannot insert not existing element into ComponentData. Key = ${this.key}`);a.splice(l+c,0,e),(i=this.parent.store).children??(i.children=[]);const r=this.parent.store.children,d=r.indexOf(this.store);if(d<0)throw new Error(`Cannot insert not existing element into ComponentStore. Key = ${this.key}`);r.splice(d+c,0,e.store),e.store.slot=this.store.slot,e.store.slotCondition=this.store.slotCondition}disposeNodes(e){e.forEach(n=>{var c,a;(c=se(n,al))==null||c.dispose(),se(n,Cy).forEach(l=>l()),(a=n.field)==null||a.dispose(),n.parent=void 0,n.children=[]})}collectAllNodesAsArray(e){e.push(this);for(let n=0;n<this.children.length;n++)this.children[n].collectAllNodesAsArray(e);return e}collectAllFields(e){this.field&&e.set(this.key,this.field);for(let n=0;n<this.children.length;n++)this.children[n].collectAllFields(e);return e}addChild(e){var n;this.children.indexOf(e)<0&&this.children.push(e),(n=this.store).children??(n.children=[]),this.store.children.indexOf(e.store)<0&&this.store.children.push(e.store)}removeChild(e){var a;const n=this.children.indexOf(e);n>-1&&this.children.splice(n,1),(a=this.store).children??(a.children=[]);const c=this.store.children.indexOf(e.store);c>-1&&this.store.children.splice(c,1)}invokeOnAfterKeyChanged(e,n){var c,a;(c=se(this,al))!=null&&c.onAfterKeyChanged.isSubscribed&&se(this,al).onAfterKeyChanged.invoke(e,n),(a=this.parent)==null||a.invokeOnAfterKeyChanged(e,n)}invokeOnBeforeDeleted(e){var n,c;(n=se(this,al))!=null&&n.onBeforeDelete.isSubscribed&&e.forEach(a=>{var l;return(l=se(this,al))==null?void 0:l.onBeforeDelete.invoke(a,void 0)}),(c=this.parent)==null||c.invokeOnBeforeDeleted(e)}}Cy=new WeakMap,al=new WeakMap,Xi=new WeakMap;const t_=t=>{const e={};return t.fields.forEach((n,c)=>{e[c]=t.data[c]??""}),e},[lr,dV]=ss("ComponentDataContext"),[za,sv,e_]=ss("StoreContext"),[ld,oV]=ss("FormViewerPropsContext");function mm(t,e={}){return YK(t,(n,c,a)=>{var l;return n.push(((l=c==null?void 0:c.setup(e))==null?void 0:l.build(a))??Tt.setup(e).build(a)),n},[])}function Lm(t){return mm(t,{annotationType:"Style",calculable:!1})}function n_(t){const e=G.useRef(!1),[n,c]=G.useState(t);G.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]);const a=G.useCallback(l=>{e.current&&c(l)},[]);return G.useMemo(()=>[n,a],[n,a])}const c_=new Date(1718368265917),uV=":",bV="-",a_=`MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEJDKWHzXT9YZw7WDJy4wr/VMXBf+/afNB
53
53
  ppCLv1zZFVUQEmDRPhGC5nKux3WQcrtfl18iNFfISjcqN5vplR/kcAvIJd07tacn
54
54
  y1l39NGbMLIoPVzPY6GXTNzQpxRbGn99`;function sV(t){const e=window.atob(t),n=new Uint8Array(e.length);for(let c=0;c<e.length;c++)n[c]=e.charCodeAt(c);return n.buffer}function l_(t){return window.crypto.subtle.importKey("spki",sV(t),{name:"ECDSA",namedCurve:"P-384"},!0,["verify"])}async function r_(t,e,n){if(!window.crypto.subtle)return;const c=await l_(n),a=new TextEncoder().encode(t);return await window.crypto.subtle.verify({name:"ECDSA",hash:{name:"SHA-384"}},c,e,a)}function i_(t,e){const{licenseEndDate:n,restrictions:c,companyName:a}=JSON.parse(e)??{};if(t!==a)return!1;const l=n.split(".");if(l.length!==3)return!1;const r=`${l[2]}-${l[0]}-${l[1]}`,d=new Date(r),o=new Date;return c.StrictCheck===!0&&d<o?!1:d>c_}async function d_(t){if(t)try{let e=t.indexOf(bV);if(e===-1)return!1;const n=t.slice(0,e),c=t.slice(e+bV.length);if(e=c.indexOf(uV),e===-1)return!1;const a=window.atob(c.slice(0,e)),l=sV(c.slice(e+uV.length));return await r_(a,l,a_)?i_(n,a):!1}catch{return!1}}const o_=()=>{const{licenseKey:t}=ld(),[e,n]=n_(!0);return G.useEffect(()=>{d_(t).then(c=>{n(!!c)})},[t,n]),at("div",{children:!e&&at(u_,{children:pn(b_,{children:["This is a trial version of the product. To purchase a license, go to ",at("a",{href:"https://formengine.io/pricing",children:"https://formengine.io/pricing"})]})})})},u_=ln.div`
55
55
  display: flex;
@@ -84,7 +84,7 @@ Error generating stack: `+l.message+`
84
84
  height: 100%;
85
85
  `,mV=([t,...e],n,c)=>t?at(t,{language:n,children:mV(e,n,c)}):c,L_=({children:t})=>{const[e]=G.useState(window.onerror);return G.useEffect(()=>(window.onerror=n=>{if((n==null?void 0:n.toString().search("ResizeObserver"))!==-1){const c=document.getElementById("webpack-dev-server-client-overlay-div"),a=document.getElementById("webpack-dev-server-client-overlay");return a&&a.setAttribute("style","display: none"),c&&c.setAttribute("style","display: none"),!0}return!1},()=>{window.onerror=e}),[e]),at(Yc,{children:t})};var Zv=function(t,e){return Zv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,c){n.__proto__=c}||function(n,c){for(var a in c)Object.prototype.hasOwnProperty.call(c,a)&&(n[a]=c[a])},Zv(t,e)};function $r(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Zv(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function h_(t,e,n,c){function a(l){return l instanceof n?l:new n(function(r){r(l)})}return new(n||(n=Promise))(function(l,r){function d(u){try{i(c.next(u))}catch(b){r(b)}}function o(u){try{i(c.throw(u))}catch(b){r(b)}}function i(u){u.done?l(u.value):a(u.value).then(d,o)}i((c=c.apply(t,e||[])).next())})}function LV(t,e){var n={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},c,a,l,r;return r={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(r[Symbol.iterator]=function(){return this}),r;function d(i){return function(u){return o([i,u])}}function o(i){if(c)throw new TypeError("Generator is already executing.");for(;r&&(r=0,i[0]&&(n=0)),n;)try{if(c=1,a&&(l=i[0]&2?a.return:i[0]?a.throw||((l=a.return)&&l.call(a),0):a.next)&&!(l=l.call(a,i[1])).done)return l;switch(a=0,l&&(i=[i[0]&2,l.value]),i[0]){case 0:case 1:l=i;break;case 4:return n.label++,{value:i[1],done:!1};case 5:n.label++,a=i[1],i=[0];continue;case 7:i=n.ops.pop(),n.trys.pop();continue;default:if(l=n.trys,!(l=l.length>0&&l[l.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!l||i[1]>l[0]&&i[1]<l[3])){n.label=i[1];break}if(i[0]===6&&n.label<l[1]){n.label=l[1],l=i;break}if(l&&n.label<l[2]){n.label=l[2],n.ops.push(i);break}l[2]&&n.ops.pop(),n.trys.pop();continue}i=e.call(t,n)}catch(u){i=[6,u],a=0}finally{c=l=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}}function Ao(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],c=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&c>=t.length&&(t=void 0),{value:t&&t[c++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Oo(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var c=n.call(t),a,l=[],r;try{for(;(e===void 0||e-- >0)&&!(a=c.next()).done;)l.push(a.value)}catch(d){r={error:d}}finally{try{a&&!a.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}return l}function xo(t,e,n){if(n||arguments.length===2)for(var c=0,a=e.length,l;c<a;c++)(l||!(c in e))&&(l||(l=Array.prototype.slice.call(e,0,c)),l[c]=e[c]);return t.concat(l||Array.prototype.slice.call(e))}function ko(t){return this instanceof ko?(this.v=t,this):new ko(t)}function X_(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var c=n.apply(t,e||[]),a,l=[];return a={},r("next"),r("throw"),r("return"),a[Symbol.asyncIterator]=function(){return this},a;function r(s){c[s]&&(a[s]=function(Z){return new Promise(function(W,m){l.push([s,Z,W,m])>1||d(s,Z)})})}function d(s,Z){try{o(c[s](Z))}catch(W){b(l[0][3],W)}}function o(s){s.value instanceof ko?Promise.resolve(s.value.v).then(i,u):b(l[0][2],s)}function i(s){d("next",s)}function u(s){d("throw",s)}function b(s,Z){s(Z),l.shift(),l.length&&d(l[0][0],l[0][1])}}function v_(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof Ao=="function"?Ao(t):t[Symbol.iterator](),n={},c("next"),c("throw"),c("return"),n[Symbol.asyncIterator]=function(){return this},n);function c(l){n[l]=t[l]&&function(r){return new Promise(function(d,o){r=t[l](r),a(d,o,r.done,r.value)})}}function a(l,r,d,o){Promise.resolve(o).then(function(i){l({value:i,done:d})},r)}}function Un(t){return typeof t=="function"}function hV(t){var e=function(c){Error.call(c),c.stack=new Error().stack},n=t(e);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Wv=hV(function(t){return function(n){t(this),this.message=n?n.length+` errors occurred during unsubscription:
86
86
  `+n.map(function(c,a){return a+1+") "+c.toString()}).join(`
87
- `):"",this.name="UnsubscriptionError",this.errors=n}});function hm(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var ys=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,n,c,a,l;if(!this.closed){this.closed=!0;var r=this._parentage;if(r)if(this._parentage=null,Array.isArray(r))try{for(var d=Ao(r),o=d.next();!o.done;o=d.next()){var i=o.value;i.remove(this)}}catch(m){e={error:m}}finally{try{o&&!o.done&&(n=d.return)&&n.call(d)}finally{if(e)throw e.error}}else r.remove(this);var u=this.initialTeardown;if(Un(u))try{u()}catch(m){l=m instanceof Wv?m.errors:[m]}var b=this._finalizers;if(b){this._finalizers=null;try{for(var s=Ao(b),Z=s.next();!Z.done;Z=s.next()){var W=Z.value;try{GV(W)}catch(m){l=l??[],m instanceof Wv?l=xo(xo([],Oo(l)),Oo(m.errors)):l.push(m)}}}catch(m){c={error:m}}finally{try{Z&&!Z.done&&(a=s.return)&&a.call(s)}finally{if(c)throw c.error}}}if(l)throw new Wv(l)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)GV(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(e)}},t.prototype._hasParent=function(e){var n=this._parentage;return n===e||Array.isArray(n)&&n.includes(e)},t.prototype._addParent=function(e){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e},t.prototype._removeParent=function(e){var n=this._parentage;n===e?this._parentage=null:Array.isArray(n)&&hm(n,e)},t.prototype.remove=function(e){var n=this._finalizers;n&&hm(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),XV=ys.EMPTY;function vV(t){return t instanceof ys||t&&"closed"in t&&Un(t.remove)&&Un(t.add)&&Un(t.unsubscribe)}function GV(t){Un(t)?t():t.unsubscribe()}var YV={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},mv={setTimeout:function(t,e){for(var n=[],c=2;c<arguments.length;c++)n[c-2]=arguments[c];var a=mv.delegate;return a!=null&&a.setTimeout?a.setTimeout.apply(a,xo([t,e],Oo(n))):setTimeout.apply(void 0,xo([t,e],Oo(n)))},clearTimeout:function(t){var e=mv.delegate;return((e==null?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function pV(t){mv.setTimeout(function(){throw t})}function JV(){}function Xm(t){t()}var Lv=function(t){$r(e,t);function e(n){var c=t.call(this)||this;return c.isStopped=!1,n?(c.destination=n,vV(n)&&n.add(c)):c.destination=J_,c}return e.create=function(n,c,a){return new Xv(n,c,a)},e.prototype.next=function(n){this.isStopped||this._next(n)},e.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(n){this.destination.next(n)},e.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(ys),G_=Function.prototype.bind;function hv(t,e){return G_.call(t,e)}var Y_=function(){function t(e){this.partialObserver=e}return t.prototype.next=function(e){var n=this.partialObserver;if(n.next)try{n.next(e)}catch(c){vm(c)}},t.prototype.error=function(e){var n=this.partialObserver;if(n.error)try{n.error(e)}catch(c){vm(c)}else vm(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(n){vm(n)}},t}(),Xv=function(t){$r(e,t);function e(n,c,a){var l=t.call(this)||this,r;if(Un(n)||!n)r={next:n??void 0,error:c??void 0,complete:a??void 0};else{var d;l&&YV.useDeprecatedNextContext?(d=Object.create(n),d.unsubscribe=function(){return l.unsubscribe()},r={next:n.next&&hv(n.next,d),error:n.error&&hv(n.error,d),complete:n.complete&&hv(n.complete,d)}):r=n}return l.destination=new Y_(r),l}return e}(Lv);function vm(t){pV(t)}function p_(t){throw t}var J_={closed:!0,next:JV,error:p_,complete:JV},vv=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function f_(t){return t}function M_(t){return t.length===0?f_:t.length===1?t[0]:function(n){return t.reduce(function(c,a){return a(c)},n)}}var qr=function(){function t(e){e&&(this._subscribe=e)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(e,n,c){var a=this,l=z_(e)?e:new Xv(e,n,c);return Xm(function(){var r=a,d=r.operator,o=r.source;l.add(d?d.call(l,o):o?a._subscribe(l):a._trySubscribe(l))}),l},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(n){e.error(n)}},t.prototype.forEach=function(e,n){var c=this;return n=fV(n),new n(function(a,l){var r=new Xv({next:function(d){try{e(d)}catch(o){l(o),r.unsubscribe()}},error:l,complete:a});c.subscribe(r)})},t.prototype._subscribe=function(e){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(e)},t.prototype[vv]=function(){return this},t.prototype.pipe=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return M_(e)(this)},t.prototype.toPromise=function(e){var n=this;return e=fV(e),new e(function(c,a){var l;n.subscribe(function(r){return l=r},function(r){return a(r)},function(){return c(l)})})},t.create=function(e){return new t(e)},t}();function fV(t){var e;return(e=t??YV.Promise)!==null&&e!==void 0?e:Promise}function N_(t){return t&&Un(t.next)&&Un(t.error)&&Un(t.complete)}function z_(t){return t&&t instanceof Lv||N_(t)&&vV(t)}function R_(t){return Un(t==null?void 0:t.lift)}function Io(t){return function(e){if(R_(e))return e.lift(function(n){try{return t(n,this)}catch(c){this.error(c)}});throw new TypeError("Unable to lift unknown Observable type")}}function ti(t,e,n,c,a){return new w_(t,e,n,c,a)}var w_=function(t){$r(e,t);function e(n,c,a,l,r,d){var o=t.call(this,n)||this;return o.onFinalize=r,o.shouldUnsubscribe=d,o._next=c?function(i){try{c(i)}catch(u){n.error(u)}}:t.prototype._next,o._error=l?function(i){try{l(i)}catch(u){n.error(u)}finally{this.unsubscribe()}}:t.prototype._error,o._complete=a?function(){try{a()}catch(i){n.error(i)}finally{this.unsubscribe()}}:t.prototype._complete,o}return e.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var c=this.closed;t.prototype.unsubscribe.call(this),!c&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},e}(Lv),V_=hV(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Gv=function(t){$r(e,t);function e(){var n=t.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return e.prototype.lift=function(n){var c=new MV(this,this);return c.operator=n,c},e.prototype._throwIfClosed=function(){if(this.closed)throw new V_},e.prototype.next=function(n){var c=this;Xm(function(){var a,l;if(c._throwIfClosed(),!c.isStopped){c.currentObservers||(c.currentObservers=Array.from(c.observers));try{for(var r=Ao(c.currentObservers),d=r.next();!d.done;d=r.next()){var o=d.value;o.next(n)}}catch(i){a={error:i}}finally{try{d&&!d.done&&(l=r.return)&&l.call(r)}finally{if(a)throw a.error}}}})},e.prototype.error=function(n){var c=this;Xm(function(){if(c._throwIfClosed(),!c.isStopped){c.hasError=c.isStopped=!0,c.thrownError=n;for(var a=c.observers;a.length;)a.shift().error(n)}})},e.prototype.complete=function(){var n=this;Xm(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var c=n.observers;c.length;)c.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(n){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,n)},e.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},e.prototype._innerSubscribe=function(n){var c=this,a=this,l=a.hasError,r=a.isStopped,d=a.observers;return l||r?XV:(this.currentObservers=null,d.push(n),new ys(function(){c.currentObservers=null,hm(d,n)}))},e.prototype._checkFinalizedStatuses=function(n){var c=this,a=c.hasError,l=c.thrownError,r=c.isStopped;a?n.error(l):r&&n.complete()},e.prototype.asObservable=function(){var n=new qr;return n.source=this,n},e.create=function(n,c){return new MV(n,c)},e}(qr),MV=function(t){$r(e,t);function e(n,c){var a=t.call(this)||this;return a.destination=n,a.source=c,a}return e.prototype.next=function(n){var c,a;(a=(c=this.destination)===null||c===void 0?void 0:c.next)===null||a===void 0||a.call(c,n)},e.prototype.error=function(n){var c,a;(a=(c=this.destination)===null||c===void 0?void 0:c.error)===null||a===void 0||a.call(c,n)},e.prototype.complete=function(){var n,c;(c=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||c===void 0||c.call(n)},e.prototype._subscribe=function(n){var c,a;return(a=(c=this.source)===null||c===void 0?void 0:c.subscribe(n))!==null&&a!==void 0?a:XV},e}(Gv),NV={now:function(){return(NV.delegate||Date).now()},delegate:void 0},g_=function(t){$r(e,t);function e(n,c){return t.call(this)||this}return e.prototype.schedule=function(n,c){return this},e}(ys),Gm={setInterval:function(t,e){for(var n=[],c=2;c<arguments.length;c++)n[c-2]=arguments[c];var a=Gm.delegate;return a!=null&&a.setInterval?a.setInterval.apply(a,xo([t,e],Oo(n))):setInterval.apply(void 0,xo([t,e],Oo(n)))},clearInterval:function(t){var e=Gm.delegate;return((e==null?void 0:e.clearInterval)||clearInterval)(t)},delegate:void 0},C_=function(t){$r(e,t);function e(n,c){var a=t.call(this,n,c)||this;return a.scheduler=n,a.work=c,a.pending=!1,a}return e.prototype.schedule=function(n,c){var a;if(c===void 0&&(c=0),this.closed)return this;this.state=n;var l=this.id,r=this.scheduler;return l!=null&&(this.id=this.recycleAsyncId(r,l,c)),this.pending=!0,this.delay=c,this.id=(a=this.id)!==null&&a!==void 0?a:this.requestAsyncId(r,this.id,c),this},e.prototype.requestAsyncId=function(n,c,a){return a===void 0&&(a=0),Gm.setInterval(n.flush.bind(n,this),a)},e.prototype.recycleAsyncId=function(n,c,a){if(a===void 0&&(a=0),a!=null&&this.delay===a&&this.pending===!1)return c;c!=null&&Gm.clearInterval(c)},e.prototype.execute=function(n,c){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var a=this._execute(n,c);if(a)return a;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(n,c){var a=!1,l;try{this.work(n)}catch(r){a=!0,l=r||new Error("Scheduled action threw falsy error")}if(a)return this.unsubscribe(),l},e.prototype.unsubscribe=function(){if(!this.closed){var n=this,c=n.id,a=n.scheduler,l=a.actions;this.work=this.state=this.scheduler=null,this.pending=!1,hm(l,this),c!=null&&(this.id=this.recycleAsyncId(a,c,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(g_),zV=function(){function t(e,n){n===void 0&&(n=t.now),this.schedulerActionCtor=e,this.now=n}return t.prototype.schedule=function(e,n,c){return n===void 0&&(n=0),new this.schedulerActionCtor(this,e).schedule(c,n)},t.now=NV.now,t}(),j_=function(t){$r(e,t);function e(n,c){c===void 0&&(c=zV.now);var a=t.call(this,n,c)||this;return a.actions=[],a._active=!1,a}return e.prototype.flush=function(n){var c=this.actions;if(this._active){c.push(n);return}var a;this._active=!0;do if(a=n.execute(n.state,n.delay))break;while(n=c.shift());if(this._active=!1,a){for(;n=c.shift();)n.unsubscribe();throw a}},e}(zV),A_=new j_(C_),O_=function(t){return t&&typeof t.length=="number"&&typeof t!="function"};function x_(t){return Un(t==null?void 0:t.then)}function k_(t){return Un(t[vv])}function I_(t){return Symbol.asyncIterator&&Un(t==null?void 0:t[Symbol.asyncIterator])}function S_(t){return new TypeError("You provided "+(t!==null&&typeof t=="object"?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function F_(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var H_=F_();function T_(t){return Un(t==null?void 0:t[H_])}function D_(t){return X_(this,arguments,function(){var n,c,a,l;return LV(this,function(r){switch(r.label){case 0:n=t.getReader(),r.label=1;case 1:r.trys.push([1,,9,10]),r.label=2;case 2:return[4,ko(n.read())];case 3:return c=r.sent(),a=c.value,l=c.done,l?[4,ko(void 0)]:[3,5];case 4:return[2,r.sent()];case 5:return[4,ko(a)];case 6:return[4,r.sent()];case 7:return r.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function B_(t){return Un(t==null?void 0:t.getReader)}function Ym(t){if(t instanceof qr)return t;if(t!=null){if(k_(t))return Q_(t);if(O_(t))return U_(t);if(x_(t))return E_(t);if(I_(t))return RV(t);if(T_(t))return P_(t);if(B_(t))return K_(t)}throw S_(t)}function Q_(t){return new qr(function(e){var n=t[vv]();if(Un(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function U_(t){return new qr(function(e){for(var n=0;n<t.length&&!e.closed;n++)e.next(t[n]);e.complete()})}function E_(t){return new qr(function(e){t.then(function(n){e.closed||(e.next(n),e.complete())},function(n){return e.error(n)}).then(null,pV)})}function P_(t){return new qr(function(e){var n,c;try{for(var a=Ao(t),l=a.next();!l.done;l=a.next()){var r=l.value;if(e.next(r),e.closed)return}}catch(d){n={error:d}}finally{try{l&&!l.done&&(c=a.return)&&c.call(a)}finally{if(n)throw n.error}}e.complete()})}function RV(t){return new qr(function(e){__(t,e).catch(function(n){return e.error(n)})})}function K_(t){return RV(D_(t))}function __(t,e){var n,c,a,l;return h_(this,void 0,void 0,function(){var r,d;return LV(this,function(o){switch(o.label){case 0:o.trys.push([0,5,6,11]),n=v_(t),o.label=1;case 1:return[4,n.next()];case 2:if(c=o.sent(),!!c.done)return[3,4];if(r=c.value,e.next(r),e.closed)return[2];o.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return d=o.sent(),a={error:d},[3,11];case 6:return o.trys.push([6,,9,10]),c&&!c.done&&(l=n.return)?[4,l.call(n)]:[3,8];case 7:o.sent(),o.label=8;case 8:return[3,10];case 9:if(a)throw a.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function $_(t,e,n,c,a){c===void 0&&(c=0),a===void 0&&(a=!1);var l=e.schedule(function(){n(),a?t.add(this.schedule(null,c)):this.unsubscribe()},c);if(t.add(l),!a)return l}function Yv(t,e){return Io(function(n,c){var a=0;n.subscribe(ti(c,function(l){c.next(t.call(e,l,a++))}))})}function q_(t,e,n,c,a,l,r,d){var o=[],i=0,u=0,b=!1,s=function(){b&&!o.length&&!i&&e.complete()},Z=function(m){return i<c?W(m):o.push(m)},W=function(m){l&&e.next(m),i++;var v=!1;Ym(n(m,u++)).subscribe(ti(e,function(L){a==null||a(L),l?Z(L):e.next(L)},function(){v=!0},void 0,function(){if(v)try{i--;for(var L=function(){var X=o.shift();r?$_(e,r,function(){return W(X)}):W(X)};o.length&&i<c;)L();s()}catch(X){e.error(X)}}))};return t.subscribe(ti(e,Z,function(){b=!0,s()})),function(){d==null||d()}}function pv(t,e,n){return n===void 0&&(n=1/0),Un(e)?pv(function(c,a){return Yv(function(l,r){return e(c,l,a,r)})(Ym(t(c,a)))},n):(typeof e=="number"&&(n=e),Io(function(c,a){return q_(c,a,t,n)}))}function Zs(t,e){return Io(function(n,c){var a=0;n.subscribe(ti(c,function(l){return t.call(e,l,a++)&&c.next(l)}))})}function wV(t){return Io(function(e,n){var c=null,a=!1,l;c=e.subscribe(ti(n,void 0,void 0,function(r){l=Ym(t(r,wV(t)(e))),c?(c.unsubscribe(),c=null,l.subscribe(n)):a=!0})),a&&(c.unsubscribe(),c=null,l.subscribe(n))})}function t8(t,e){return Un(e)?pv(t,e,1):pv(t,1)}function e8(t,e){return e===void 0&&(e=A_),Io(function(n,c){var a=null,l=null,r=null,d=function(){if(a){a.unsubscribe(),a=null;var i=l;l=null,c.next(i)}};function o(){var i=r+t,u=e.now();if(u<i){a=this.schedule(void 0,i-u),c.add(a);return}d()}n.subscribe(ti(c,function(i){l=i,r=e.now(),a||(a=e.schedule(o,t),c.add(a))},function(){d(),c.complete()},void 0,function(){l=a=null}))})}function n8(t,e){return Io(function(n,c){var a=null,l=0,r=!1,d=function(){return r&&!a&&c.complete()};n.subscribe(ti(c,function(o){a==null||a.unsubscribe();var i=0,u=l++;Ym(t(o,u)).subscribe(a=ti(c,function(b){return c.next(e?e(o,b,u,i++):b)},function(){a=null,d()}))},function(){r=!0,d()}))})}class Ws{constructor(e){this.stream=e}filter(e){const n=this.stream.pipe(Zs(e));return new Ws(n)}keys(...e){const n=this.stream.pipe(Zs(c=>e.includes(c.sender.key)));return new Ws(n)}types(...e){const n=this.stream.pipe(Zs(c=>e.includes(c.type)));return new Ws(n)}listen(e){const n=this.stream.subscribe(e);return()=>n.unsubscribe()}}const[c8,a8]=ss("ComponentTreeContext");class ms{constructor(e=!1,n,c){this.error=e,this.result=n,this.exceptions=c}static success(e){return new ms(!1,e)}static error(e){return new ms(!0,void 0,e)}}const VV=new Map,l8=t=>{const e=VV.get(t);if(e)return e;const n=new Function("form",t);return VV.set(t,n),n},gV=(t,e)=>{try{const c=l8(t)(e);return ms.success(c)}catch(n){return ms.error([n,{name:"Function source",message:t}])}},Jv=(t,e)=>gV(t.fnSource||"",e),r8=(t,e)=>{if(Wm(t))return Jv(t,e).result;const n=t.value||"";return gV(`return ${n}`,e).result},i8=(t,e)=>{const n={};return Object.keys(t.props).forEach(c=>{const a=t.props[c];if(a){if(Wm(a)){const{result:l,error:r,exceptions:d}=Jv(a,e);if(r){const o=`Error in the calculable field '${c}' of the '${t.key}' component `;console.warn(o,d);return}n[c]=l}XK(a.value)||(n[c]=a.value)}}),n},d8=t=>{var e;return(e=t.htmlAttributes)==null?void 0:e.reduce((n,{name:c,value:a})=>{try{n[c]=JSON.parse(a)}catch{n[c]=a}return n},{})},o8=(t,e,n)=>{const c={},a=r=>{var d,o;return(o=(d=t.store.events)==null?void 0:d[r])==null?void 0:o.length},l=new Set(nd(t.store.events).filter(a));return l.add("onChange").add("onBlur"),l.delete(rv),l.delete(iv),l.forEach(r=>c[r]=(...d)=>e.eventSubject.next(new dv(r,t,e,d,n))),c};class CV{constructor(e,n,c,a){this.data=e,this.store=n,this.localizer=c,this.computeChildren=a,Nr(this,void 0,{name:cr("ComponentState",{key:e.key})})}get get(){const e=this.propsWithoutChildren;return Object.assign({},e,this.className,this.children(e))}get propsWithoutChildren(){return Object.assign({key:this.data.store.key},this.data.model.defaultProps,this.calculatedProps,this.localizedProps,this.value,this.events,this.htmlAttributes,this.data.userDefinedProps)}get value(){if(this.data.field)return{[this.data.field.valued]:this.data.field.value}}get calculatedProps(){return i8(this.data.store,this.store.form.componentTree)}get localizedProps(){return this.localizer(this.data.store)}get events(){return o8(this.data,this.store,this)}get className(){return{className:hZ(this.propsWithoutChildren.className,this.getClassNameFromCssPart("css"))}}get wrapperClassName(){return this.getClassNameFromCssPart("wrapperCss")}get htmlAttributes(){return d8(this.data.store)}children(e){return this.computeChildren(this.data,e)}getClassNameFromCssPart(e){var d,o,i,u,b,s,Z,W,m,v,L,X;const{model:n,store:c}=this.data,{viewMode:a}=this.store,l=ed({},(o=(d=n[e])==null?void 0:d.any)==null?void 0:o.object,(u=(i=c[e])==null?void 0:i.any)==null?void 0:u.object),r=ed({},(s=(b=n[e])==null?void 0:b[a])==null?void 0:s.object,(W=(Z=c[e])==null?void 0:Z[a])==null?void 0:W.object);return wf`
87
+ `):"",this.name="UnsubscriptionError",this.errors=n}});function hm(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var ys=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,n,c,a,l;if(!this.closed){this.closed=!0;var r=this._parentage;if(r)if(this._parentage=null,Array.isArray(r))try{for(var d=Ao(r),o=d.next();!o.done;o=d.next()){var i=o.value;i.remove(this)}}catch(m){e={error:m}}finally{try{o&&!o.done&&(n=d.return)&&n.call(d)}finally{if(e)throw e.error}}else r.remove(this);var u=this.initialTeardown;if(Un(u))try{u()}catch(m){l=m instanceof Wv?m.errors:[m]}var b=this._finalizers;if(b){this._finalizers=null;try{for(var s=Ao(b),Z=s.next();!Z.done;Z=s.next()){var W=Z.value;try{GV(W)}catch(m){l=l??[],m instanceof Wv?l=xo(xo([],Oo(l)),Oo(m.errors)):l.push(m)}}}catch(m){c={error:m}}finally{try{Z&&!Z.done&&(a=s.return)&&a.call(s)}finally{if(c)throw c.error}}}if(l)throw new Wv(l)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)GV(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(e)}},t.prototype._hasParent=function(e){var n=this._parentage;return n===e||Array.isArray(n)&&n.includes(e)},t.prototype._addParent=function(e){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e},t.prototype._removeParent=function(e){var n=this._parentage;n===e?this._parentage=null:Array.isArray(n)&&hm(n,e)},t.prototype.remove=function(e){var n=this._finalizers;n&&hm(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),XV=ys.EMPTY;function vV(t){return t instanceof ys||t&&"closed"in t&&Un(t.remove)&&Un(t.add)&&Un(t.unsubscribe)}function GV(t){Un(t)?t():t.unsubscribe()}var YV={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},mv={setTimeout:function(t,e){for(var n=[],c=2;c<arguments.length;c++)n[c-2]=arguments[c];var a=mv.delegate;return a!=null&&a.setTimeout?a.setTimeout.apply(a,xo([t,e],Oo(n))):setTimeout.apply(void 0,xo([t,e],Oo(n)))},clearTimeout:function(t){var e=mv.delegate;return((e==null?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function pV(t){mv.setTimeout(function(){throw t})}function JV(){}function Xm(t){t()}var Lv=function(t){$r(e,t);function e(n){var c=t.call(this)||this;return c.isStopped=!1,n?(c.destination=n,vV(n)&&n.add(c)):c.destination=J_,c}return e.create=function(n,c,a){return new Xv(n,c,a)},e.prototype.next=function(n){this.isStopped||this._next(n)},e.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(n){this.destination.next(n)},e.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(ys),G_=Function.prototype.bind;function hv(t,e){return G_.call(t,e)}var Y_=function(){function t(e){this.partialObserver=e}return t.prototype.next=function(e){var n=this.partialObserver;if(n.next)try{n.next(e)}catch(c){vm(c)}},t.prototype.error=function(e){var n=this.partialObserver;if(n.error)try{n.error(e)}catch(c){vm(c)}else vm(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(n){vm(n)}},t}(),Xv=function(t){$r(e,t);function e(n,c,a){var l=t.call(this)||this,r;if(Un(n)||!n)r={next:n??void 0,error:c??void 0,complete:a??void 0};else{var d;l&&YV.useDeprecatedNextContext?(d=Object.create(n),d.unsubscribe=function(){return l.unsubscribe()},r={next:n.next&&hv(n.next,d),error:n.error&&hv(n.error,d),complete:n.complete&&hv(n.complete,d)}):r=n}return l.destination=new Y_(r),l}return e}(Lv);function vm(t){pV(t)}function p_(t){throw t}var J_={closed:!0,next:JV,error:p_,complete:JV},vv=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function f_(t){return t}function M_(t){return t.length===0?f_:t.length===1?t[0]:function(n){return t.reduce(function(c,a){return a(c)},n)}}var qr=function(){function t(e){e&&(this._subscribe=e)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(e,n,c){var a=this,l=z_(e)?e:new Xv(e,n,c);return Xm(function(){var r=a,d=r.operator,o=r.source;l.add(d?d.call(l,o):o?a._subscribe(l):a._trySubscribe(l))}),l},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(n){e.error(n)}},t.prototype.forEach=function(e,n){var c=this;return n=fV(n),new n(function(a,l){var r=new Xv({next:function(d){try{e(d)}catch(o){l(o),r.unsubscribe()}},error:l,complete:a});c.subscribe(r)})},t.prototype._subscribe=function(e){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(e)},t.prototype[vv]=function(){return this},t.prototype.pipe=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return M_(e)(this)},t.prototype.toPromise=function(e){var n=this;return e=fV(e),new e(function(c,a){var l;n.subscribe(function(r){return l=r},function(r){return a(r)},function(){return c(l)})})},t.create=function(e){return new t(e)},t}();function fV(t){var e;return(e=t??YV.Promise)!==null&&e!==void 0?e:Promise}function N_(t){return t&&Un(t.next)&&Un(t.error)&&Un(t.complete)}function z_(t){return t&&t instanceof Lv||N_(t)&&vV(t)}function R_(t){return Un(t==null?void 0:t.lift)}function Io(t){return function(e){if(R_(e))return e.lift(function(n){try{return t(n,this)}catch(c){this.error(c)}});throw new TypeError("Unable to lift unknown Observable type")}}function ti(t,e,n,c,a){return new w_(t,e,n,c,a)}var w_=function(t){$r(e,t);function e(n,c,a,l,r,d){var o=t.call(this,n)||this;return o.onFinalize=r,o.shouldUnsubscribe=d,o._next=c?function(i){try{c(i)}catch(u){n.error(u)}}:t.prototype._next,o._error=l?function(i){try{l(i)}catch(u){n.error(u)}finally{this.unsubscribe()}}:t.prototype._error,o._complete=a?function(){try{a()}catch(i){n.error(i)}finally{this.unsubscribe()}}:t.prototype._complete,o}return e.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var c=this.closed;t.prototype.unsubscribe.call(this),!c&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},e}(Lv),V_=hV(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Gv=function(t){$r(e,t);function e(){var n=t.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return e.prototype.lift=function(n){var c=new MV(this,this);return c.operator=n,c},e.prototype._throwIfClosed=function(){if(this.closed)throw new V_},e.prototype.next=function(n){var c=this;Xm(function(){var a,l;if(c._throwIfClosed(),!c.isStopped){c.currentObservers||(c.currentObservers=Array.from(c.observers));try{for(var r=Ao(c.currentObservers),d=r.next();!d.done;d=r.next()){var o=d.value;o.next(n)}}catch(i){a={error:i}}finally{try{d&&!d.done&&(l=r.return)&&l.call(r)}finally{if(a)throw a.error}}}})},e.prototype.error=function(n){var c=this;Xm(function(){if(c._throwIfClosed(),!c.isStopped){c.hasError=c.isStopped=!0,c.thrownError=n;for(var a=c.observers;a.length;)a.shift().error(n)}})},e.prototype.complete=function(){var n=this;Xm(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var c=n.observers;c.length;)c.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(n){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,n)},e.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},e.prototype._innerSubscribe=function(n){var c=this,a=this,l=a.hasError,r=a.isStopped,d=a.observers;return l||r?XV:(this.currentObservers=null,d.push(n),new ys(function(){c.currentObservers=null,hm(d,n)}))},e.prototype._checkFinalizedStatuses=function(n){var c=this,a=c.hasError,l=c.thrownError,r=c.isStopped;a?n.error(l):r&&n.complete()},e.prototype.asObservable=function(){var n=new qr;return n.source=this,n},e.create=function(n,c){return new MV(n,c)},e}(qr),MV=function(t){$r(e,t);function e(n,c){var a=t.call(this)||this;return a.destination=n,a.source=c,a}return e.prototype.next=function(n){var c,a;(a=(c=this.destination)===null||c===void 0?void 0:c.next)===null||a===void 0||a.call(c,n)},e.prototype.error=function(n){var c,a;(a=(c=this.destination)===null||c===void 0?void 0:c.error)===null||a===void 0||a.call(c,n)},e.prototype.complete=function(){var n,c;(c=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||c===void 0||c.call(n)},e.prototype._subscribe=function(n){var c,a;return(a=(c=this.source)===null||c===void 0?void 0:c.subscribe(n))!==null&&a!==void 0?a:XV},e}(Gv),NV={now:function(){return(NV.delegate||Date).now()},delegate:void 0},g_=function(t){$r(e,t);function e(n,c){return t.call(this)||this}return e.prototype.schedule=function(n,c){return this},e}(ys),Gm={setInterval:function(t,e){for(var n=[],c=2;c<arguments.length;c++)n[c-2]=arguments[c];var a=Gm.delegate;return a!=null&&a.setInterval?a.setInterval.apply(a,xo([t,e],Oo(n))):setInterval.apply(void 0,xo([t,e],Oo(n)))},clearInterval:function(t){var e=Gm.delegate;return((e==null?void 0:e.clearInterval)||clearInterval)(t)},delegate:void 0},C_=function(t){$r(e,t);function e(n,c){var a=t.call(this,n,c)||this;return a.scheduler=n,a.work=c,a.pending=!1,a}return e.prototype.schedule=function(n,c){var a;if(c===void 0&&(c=0),this.closed)return this;this.state=n;var l=this.id,r=this.scheduler;return l!=null&&(this.id=this.recycleAsyncId(r,l,c)),this.pending=!0,this.delay=c,this.id=(a=this.id)!==null&&a!==void 0?a:this.requestAsyncId(r,this.id,c),this},e.prototype.requestAsyncId=function(n,c,a){return a===void 0&&(a=0),Gm.setInterval(n.flush.bind(n,this),a)},e.prototype.recycleAsyncId=function(n,c,a){if(a===void 0&&(a=0),a!=null&&this.delay===a&&this.pending===!1)return c;c!=null&&Gm.clearInterval(c)},e.prototype.execute=function(n,c){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var a=this._execute(n,c);if(a)return a;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(n,c){var a=!1,l;try{this.work(n)}catch(r){a=!0,l=r||new Error("Scheduled action threw falsy error")}if(a)return this.unsubscribe(),l},e.prototype.unsubscribe=function(){if(!this.closed){var n=this,c=n.id,a=n.scheduler,l=a.actions;this.work=this.state=this.scheduler=null,this.pending=!1,hm(l,this),c!=null&&(this.id=this.recycleAsyncId(a,c,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(g_),zV=function(){function t(e,n){n===void 0&&(n=t.now),this.schedulerActionCtor=e,this.now=n}return t.prototype.schedule=function(e,n,c){return n===void 0&&(n=0),new this.schedulerActionCtor(this,e).schedule(c,n)},t.now=NV.now,t}(),j_=function(t){$r(e,t);function e(n,c){c===void 0&&(c=zV.now);var a=t.call(this,n,c)||this;return a.actions=[],a._active=!1,a}return e.prototype.flush=function(n){var c=this.actions;if(this._active){c.push(n);return}var a;this._active=!0;do if(a=n.execute(n.state,n.delay))break;while(n=c.shift());if(this._active=!1,a){for(;n=c.shift();)n.unsubscribe();throw a}},e}(zV),A_=new j_(C_),O_=function(t){return t&&typeof t.length=="number"&&typeof t!="function"};function x_(t){return Un(t==null?void 0:t.then)}function k_(t){return Un(t[vv])}function I_(t){return Symbol.asyncIterator&&Un(t==null?void 0:t[Symbol.asyncIterator])}function S_(t){return new TypeError("You provided "+(t!==null&&typeof t=="object"?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function F_(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var H_=F_();function T_(t){return Un(t==null?void 0:t[H_])}function D_(t){return X_(this,arguments,function(){var n,c,a,l;return LV(this,function(r){switch(r.label){case 0:n=t.getReader(),r.label=1;case 1:r.trys.push([1,,9,10]),r.label=2;case 2:return[4,ko(n.read())];case 3:return c=r.sent(),a=c.value,l=c.done,l?[4,ko(void 0)]:[3,5];case 4:return[2,r.sent()];case 5:return[4,ko(a)];case 6:return[4,r.sent()];case 7:return r.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function B_(t){return Un(t==null?void 0:t.getReader)}function Ym(t){if(t instanceof qr)return t;if(t!=null){if(k_(t))return Q_(t);if(O_(t))return U_(t);if(x_(t))return E_(t);if(I_(t))return RV(t);if(T_(t))return P_(t);if(B_(t))return K_(t)}throw S_(t)}function Q_(t){return new qr(function(e){var n=t[vv]();if(Un(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function U_(t){return new qr(function(e){for(var n=0;n<t.length&&!e.closed;n++)e.next(t[n]);e.complete()})}function E_(t){return new qr(function(e){t.then(function(n){e.closed||(e.next(n),e.complete())},function(n){return e.error(n)}).then(null,pV)})}function P_(t){return new qr(function(e){var n,c;try{for(var a=Ao(t),l=a.next();!l.done;l=a.next()){var r=l.value;if(e.next(r),e.closed)return}}catch(d){n={error:d}}finally{try{l&&!l.done&&(c=a.return)&&c.call(a)}finally{if(n)throw n.error}}e.complete()})}function RV(t){return new qr(function(e){__(t,e).catch(function(n){return e.error(n)})})}function K_(t){return RV(D_(t))}function __(t,e){var n,c,a,l;return h_(this,void 0,void 0,function(){var r,d;return LV(this,function(o){switch(o.label){case 0:o.trys.push([0,5,6,11]),n=v_(t),o.label=1;case 1:return[4,n.next()];case 2:if(c=o.sent(),!!c.done)return[3,4];if(r=c.value,e.next(r),e.closed)return[2];o.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return d=o.sent(),a={error:d},[3,11];case 6:return o.trys.push([6,,9,10]),c&&!c.done&&(l=n.return)?[4,l.call(n)]:[3,8];case 7:o.sent(),o.label=8;case 8:return[3,10];case 9:if(a)throw a.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function $_(t,e,n,c,a){c===void 0&&(c=0),a===void 0&&(a=!1);var l=e.schedule(function(){n(),a?t.add(this.schedule(null,c)):this.unsubscribe()},c);if(t.add(l),!a)return l}function Yv(t,e){return Io(function(n,c){var a=0;n.subscribe(ti(c,function(l){c.next(t.call(e,l,a++))}))})}function q_(t,e,n,c,a,l,r,d){var o=[],i=0,u=0,b=!1,s=function(){b&&!o.length&&!i&&e.complete()},Z=function(m){return i<c?W(m):o.push(m)},W=function(m){l&&e.next(m),i++;var v=!1;Ym(n(m,u++)).subscribe(ti(e,function(L){a==null||a(L),l?Z(L):e.next(L)},function(){v=!0},void 0,function(){if(v)try{i--;for(var L=function(){var X=o.shift();r?$_(e,r,function(){return W(X)}):W(X)};o.length&&i<c;)L();s()}catch(X){e.error(X)}}))};return t.subscribe(ti(e,Z,function(){b=!0,s()})),function(){d==null||d()}}function pv(t,e,n){return n===void 0&&(n=1/0),Un(e)?pv(function(c,a){return Yv(function(l,r){return e(c,l,a,r)})(Ym(t(c,a)))},n):(typeof e=="number"&&(n=e),Io(function(c,a){return q_(c,a,t,n)}))}function Zs(t,e){return Io(function(n,c){var a=0;n.subscribe(ti(c,function(l){return t.call(e,l,a++)&&c.next(l)}))})}function wV(t){return Io(function(e,n){var c=null,a=!1,l;c=e.subscribe(ti(n,void 0,void 0,function(r){l=Ym(t(r,wV(t)(e))),c?(c.unsubscribe(),c=null,l.subscribe(n)):a=!0})),a&&(c.unsubscribe(),c=null,l.subscribe(n))})}function t8(t,e){return Un(e)?pv(t,e,1):pv(t,1)}function e8(t,e){return e===void 0&&(e=A_),Io(function(n,c){var a=null,l=null,r=null,d=function(){if(a){a.unsubscribe(),a=null;var i=l;l=null,c.next(i)}};function o(){var i=r+t,u=e.now();if(u<i){a=this.schedule(void 0,i-u),c.add(a);return}d()}n.subscribe(ti(c,function(i){l=i,r=e.now(),a||(a=e.schedule(o,t),c.add(a))},function(){d(),c.complete()},void 0,function(){l=a=null}))})}function n8(t,e){return Io(function(n,c){var a=null,l=0,r=!1,d=function(){return r&&!a&&c.complete()};n.subscribe(ti(c,function(o){a==null||a.unsubscribe();var i=0,u=l++;Ym(t(o,u)).subscribe(a=ti(c,function(b){return c.next(e?e(o,b,u,i++):b)},function(){a=null,d()}))},function(){r=!0,d()}))})}class Ws{constructor(e){this.stream=e}filter(e){const n=this.stream.pipe(Zs(e));return new Ws(n)}keys(...e){const n=this.stream.pipe(Zs(c=>e.includes(c.sender.key)));return new Ws(n)}types(...e){const n=this.stream.pipe(Zs(c=>e.includes(c.type)));return new Ws(n)}listen(e){const n=this.stream.subscribe(e);return()=>n.unsubscribe()}}const[c8,a8]=ss("ComponentTreeContext");class ms{constructor(e=!1,n,c){this.error=e,this.result=n,this.exceptions=c}static success(e){return new ms(!1,e)}static error(e){return new ms(!0,void 0,e)}}const VV=new Map,l8=t=>{const e=VV.get(t);if(e)return e;const n=new Function("form",t);return VV.set(t,n),n},gV=(t,e)=>{try{const c=l8(t)(e);return ms.success(c)}catch(n){return ms.error([n,{name:"Function source",message:t}])}},Jv=(t,e)=>gV(t.fnSource||"",e),r8=(t,e)=>{if(Wm(t))return Jv(t,e).result;const n=t.value||"";return gV(`return ${n}`,e).result},i8=(t,e)=>{const n={};return Object.keys(t.props).forEach(c=>{const a=t.props[c];if(a){if(Wm(a)){const{result:l,error:r,exceptions:d}=Jv(a,e);if(r){const o=`Error in the calculable field '${c}' of the '${t.key}' component `;console.warn(o,d);return}n[c]=l;return}XK(a.value)||(n[c]=a.value)}}),n},d8=t=>{var e;return(e=t.htmlAttributes)==null?void 0:e.reduce((n,{name:c,value:a})=>{try{n[c]=JSON.parse(a)}catch{n[c]=a}return n},{})},o8=(t,e,n)=>{const c={},a=r=>{var d,o;return(o=(d=t.store.events)==null?void 0:d[r])==null?void 0:o.length},l=new Set(nd(t.store.events).filter(a));return l.add("onChange").add("onBlur"),l.delete(rv),l.delete(iv),l.forEach(r=>c[r]=(...d)=>e.eventSubject.next(new dv(r,t,e,d,n))),c};class CV{constructor(e,n,c,a){this.data=e,this.store=n,this.localizer=c,this.computeChildren=a,Nr(this,void 0,{name:cr("ComponentState",{key:e.key})})}get get(){const e=this.propsWithoutChildren;return Object.assign({},e,this.className,this.children(e))}get propsWithoutChildren(){return Object.assign({key:this.data.store.key},this.data.model.defaultProps,this.calculatedProps,this.localizedProps,this.value,this.events,this.htmlAttributes,this.data.userDefinedProps)}get value(){if(this.data.field)return{[this.data.field.valued]:this.data.field.value}}get calculatedProps(){return i8(this.data.store,this.store.form.componentTree)}get localizedProps(){return this.localizer(this.data.store)}get events(){return o8(this.data,this.store,this)}get className(){return{className:hZ(this.propsWithoutChildren.className,this.getClassNameFromCssPart("css"))}}get wrapperClassName(){return this.getClassNameFromCssPart("wrapperCss")}get htmlAttributes(){return d8(this.data.store)}children(e){return this.computeChildren(this.data,e)}getClassNameFromCssPart(e){var d,o,i,u,b,s,Z,W,m,v,L,X;const{model:n,store:c}=this.data,{viewMode:a}=this.store,l=ed({},(o=(d=n[e])==null?void 0:d.any)==null?void 0:o.object,(u=(i=c[e])==null?void 0:i.any)==null?void 0:u.object),r=ed({},(s=(b=n[e])==null?void 0:b[a])==null?void 0:s.object,(W=(Z=c[e])==null?void 0:Z[a])==null?void 0:W.object);return wf`
88
88
  && {
89
89
  ${l}
90
90
  ${r}
package/dist/index.umd.js CHANGED
@@ -49,7 +49,7 @@ Error generating stack: `+l.message+`
49
49
  `+l.stack}return{value:t,source:e,stack:a,digest:null}}function _h(t,e,n){return{value:t,source:null,stack:n??null,digest:e??null}}function $h(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var xD=typeof WeakMap=="function"?WeakMap:Map;function dR(t,e,n){n=Kl(-1,n),n.tag=3,n.payload={element:null};var c=e.value;return n.callback=function(){OW||(OW=!0,yX=c),$h(t,e)},n}function oR(t,e,n){n=Kl(-1,n),n.tag=3;var c=t.type.getDerivedStateFromError;if(typeof c=="function"){var a=e.value;n.payload=function(){return c(a)},n.callback=function(){$h(t,e)}}var l=t.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){$h(t,e),typeof c!="function"&&(Qr===null?Qr=new Set([this]):Qr.add(this));var r=e.stack;this.componentDidCatch(e.value,{componentStack:r!==null?r:""})}),n}function uR(t,e,n){var c=t.pingCache;if(c===null){c=t.pingCache=new xD;var a=new Set;c.set(e,a)}else a=c.get(e),a===void 0&&(a=new Set,c.set(e,a));a.has(n)||(a.add(n),t=_D.bind(null,t,e,n),e.then(t,t))}function bR(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function sR(t,e,n,c,a){return t.mode&1?(t.flags|=65536,t.lanes=a,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=Kl(-1,1),e.tag=2,Dr(n,e,1))),n.lanes|=1),t)}var kD=Dl.ReactCurrentOwner,Tc=!1;function Jc(t,e,n,c){e.child=t===null?Iz(e,null,n,c):Xo(e,t.child,n,c)}function yR(t,e,n,c,a){n=n.render;var l=e.ref;return ho(e,a),c=Bh(t,e,n,c,l,a),n=Qh(),t!==null&&!Tc?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~a,_l(t,e,a)):(rn&&n&&Mh(e),e.flags|=1,Jc(t,e,c,a),e.child)}function ZR(t,e,n,c,a){if(t===null){var l=n.type;return typeof l=="function"&&!vX(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=l,WR(t,e,l,c,a)):(t=HW(n.type,null,c,e,e.mode,a),t.ref=e.ref,t.return=e,e.child=t)}if(l=t.child,!(t.lanes&a)){var r=l.memoizedProps;if(n=n.compare,n=n!==null?n:jb,n(r,c)&&t.ref===e.ref)return _l(t,e,a)}return e.flags|=1,t=Kr(l,c),t.ref=e.ref,t.return=e,e.child=t}function WR(t,e,n,c,a){if(t!==null){var l=t.memoizedProps;if(jb(l,c)&&t.ref===e.ref)if(Tc=!1,e.pendingProps=c=l,(t.lanes&a)!==0)t.flags&131072&&(Tc=!0);else return e.lanes=t.lanes,_l(t,e,a)}return qh(t,e,n,c,a)}function mR(t,e,n){var c=e.pendingProps,a=c.children,l=t!==null?t.memoizedState:null;if(c.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},Qe(po,la),la|=n;else{if(!(n&1073741824))return t=l!==null?l.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,Qe(po,la),la|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=l!==null?l.baseLanes:n,Qe(po,la),la|=c}else l!==null?(c=l.baseLanes|n,e.memoizedState=null):c=n,Qe(po,la),la|=c;return Jc(t,e,a,n),e.child}function LR(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function qh(t,e,n,c,a){var l=Hc(n)?ki:oc.current;return l=yo(e,l),ho(e,a),n=Bh(t,e,n,c,l,a),c=Qh(),t!==null&&!Tc?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~a,_l(t,e,a)):(rn&&c&&Mh(e),e.flags|=1,Jc(t,e,n,a),e.child)}function hR(t,e,n,c,a){if(Hc(n)){var l=!0;yW(e)}else l=!1;if(ho(e,a),e.stateNode===null)VW(t,e),Az(e,n,c),kh(e,n,c,a),c=!0;else if(t===null){var r=e.stateNode,d=e.memoizedProps;r.props=d;var o=r.context,i=n.contextType;typeof i=="object"&&i!==null?i=Ya(i):(i=Hc(n)?ki:oc.current,i=yo(e,i));var u=n.getDerivedStateFromProps,b=typeof u=="function"||typeof r.getSnapshotBeforeUpdate=="function";b||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(d!==c||o!==i)&&Oz(e,r,c,i),Tr=!1;var s=e.memoizedState;r.state=s,GW(e,c,r,a),o=e.memoizedState,d!==c||s!==o||Fc.current||Tr?(typeof u=="function"&&(xh(e,n,u,c),o=e.memoizedState),(d=Tr||jz(e,n,d,c,s,o,i))?(b||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(e.flags|=4194308)):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=c,e.memoizedState=o),r.props=c,r.state=o,r.context=i,c=d):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),c=!1)}else{r=e.stateNode,wz(t,e),d=e.memoizedProps,i=e.type===e.elementType?d:Qa(e.type,d),r.props=i,b=e.pendingProps,s=r.context,o=n.contextType,typeof o=="object"&&o!==null?o=Ya(o):(o=Hc(n)?ki:oc.current,o=yo(e,o));var Z=n.getDerivedStateFromProps;(u=typeof Z=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(d!==b||s!==o)&&Oz(e,r,c,o),Tr=!1,s=e.memoizedState,r.state=s,GW(e,c,r,a);var W=e.memoizedState;d!==b||s!==W||Fc.current||Tr?(typeof Z=="function"&&(xh(e,n,Z,c),W=e.memoizedState),(i=Tr||jz(e,n,i,c,s,W,o)||!1)?(u||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(c,W,o),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(c,W,o)),typeof r.componentDidUpdate=="function"&&(e.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof r.componentDidUpdate!="function"||d===t.memoizedProps&&s===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||d===t.memoizedProps&&s===t.memoizedState||(e.flags|=1024),e.memoizedProps=c,e.memoizedState=W),r.props=c,r.state=W,r.context=o,c=i):(typeof r.componentDidUpdate!="function"||d===t.memoizedProps&&s===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||d===t.memoizedProps&&s===t.memoizedState||(e.flags|=1024),c=!1)}return tX(t,e,n,c,l,a)}function tX(t,e,n,c,a,l){LR(t,e);var r=(e.flags&128)!==0;if(!c&&!r)return a&&Yz(e,n,!1),_l(t,e,l);c=e.stateNode,kD.current=e;var d=r&&typeof n.getDerivedStateFromError!="function"?null:c.render();return e.flags|=1,t!==null&&r?(e.child=Xo(e,t.child,null,l),e.child=Xo(e,null,d,l)):Jc(t,e,d,l),e.memoizedState=c.state,a&&Yz(e,n,!0),e.child}function XR(t){var e=t.stateNode;e.pendingContext?vz(t,e.pendingContext,e.pendingContext!==e.context):e.context&&vz(t,e.context,!1),Ih(t,e.containerInfo)}function vR(t,e,n,c,a){return mo(),wh(a),e.flags|=256,Jc(t,e,n,c),e.child}var eX={dehydrated:null,treeContext:null,retryLane:0};function nX(t){return{baseLanes:t,cachePool:null,transitions:null}}function GR(t,e,n){var c=e.pendingProps,a=Wn.current,l=!1,r=(e.flags&128)!==0,d;if((d=r)||(d=t!==null&&t.memoizedState===null?!1:(a&2)!==0),d?(l=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(a|=1),Qe(Wn,a&1),t===null)return Rh(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(r=c.children,t=c.fallback,l?(c=e.mode,l=e.child,r={mode:"hidden",children:r},!(c&1)&&l!==null?(l.childLanes=0,l.pendingProps=r):l=TW(r,c,0,null),t=Ei(t,c,n,null),l.return=e,t.return=e,l.sibling=t,e.child=l,e.child.memoizedState=nX(n),e.memoizedState=eX,t):cX(e,r));if(a=t.memoizedState,a!==null&&(d=a.dehydrated,d!==null))return ID(t,e,r,c,d,a,n);if(l){l=c.fallback,r=e.mode,a=t.child,d=a.sibling;var o={mode:"hidden",children:c.children};return!(r&1)&&e.child!==a?(c=e.child,c.childLanes=0,c.pendingProps=o,e.deletions=null):(c=Kr(a,o),c.subtreeFlags=a.subtreeFlags&14680064),d!==null?l=Kr(d,l):(l=Ei(l,r,n,null),l.flags|=2),l.return=e,c.return=e,c.sibling=l,e.child=c,c=l,l=e.child,r=t.child.memoizedState,r=r===null?nX(n):{baseLanes:r.baseLanes|n,cachePool:null,transitions:r.transitions},l.memoizedState=r,l.childLanes=t.childLanes&~n,e.memoizedState=eX,c}return l=t.child,t=l.sibling,c=Kr(l,{mode:"visible",children:c.children}),!(e.mode&1)&&(c.lanes=n),c.return=e,c.sibling=null,t!==null&&(n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=c,e.memoizedState=null,c}function cX(t,e){return e=TW({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function wW(t,e,n,c){return c!==null&&wh(c),Xo(e,t.child,null,n),t=cX(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function ID(t,e,n,c,a,l,r){if(n)return e.flags&256?(e.flags&=-257,c=_h(Error(Wt(422))),wW(t,e,r,c)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(l=c.fallback,a=e.mode,c=TW({mode:"visible",children:c.children},a,0,null),l=Ei(l,a,r,null),l.flags|=2,c.return=e,l.return=e,c.sibling=l,e.child=c,e.mode&1&&Xo(e,t.child,null,r),e.child.memoizedState=nX(r),e.memoizedState=eX,l);if(!(e.mode&1))return wW(t,e,r,null);if(a.data==="$!"){if(c=a.nextSibling&&a.nextSibling.dataset,c)var d=c.dgst;return c=d,l=Error(Wt(419)),c=_h(l,c,void 0),wW(t,e,r,c)}if(d=(r&t.childLanes)!==0,Tc||d){if(c=Qn,c!==null){switch(r&-r){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=a&(c.suspendedLanes|r)?0:a,a!==0&&a!==l.retryLane&&(l.retryLane=a,Pl(t,a),Pa(c,t,a,-1))}return XX(),c=_h(Error(Wt(421))),wW(t,e,r,c)}return a.data==="$?"?(e.flags|=128,e.child=t.child,e=$D.bind(null,t),a._reactRetry=e,null):(t=l.treeContext,aa=Ir(a.nextSibling),ca=e,rn=!0,Ba=null,t!==null&&(va[Ga++]=Ul,va[Ga++]=El,va[Ga++]=Ii,Ul=t.id,El=t.overflow,Ii=e),e=cX(e,c.children),e.flags|=4096,e)}function YR(t,e,n){t.lanes|=e;var c=t.alternate;c!==null&&(c.lanes|=e),jh(t.return,e,n)}function aX(t,e,n,c,a){var l=t.memoizedState;l===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:c,tail:n,tailMode:a}:(l.isBackwards=e,l.rendering=null,l.renderingStartTime=0,l.last=c,l.tail=n,l.tailMode=a)}function pR(t,e,n){var c=e.pendingProps,a=c.revealOrder,l=c.tail;if(Jc(t,e,c.children,n),c=Wn.current,c&2)c=c&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&YR(t,n,e);else if(t.tag===19)YR(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}c&=1}if(Qe(Wn,c),!(e.mode&1))e.memoizedState=null;else switch(a){case"forwards":for(n=e.child,a=null;n!==null;)t=n.alternate,t!==null&&JW(t)===null&&(a=n),n=n.sibling;n=a,n===null?(a=e.child,e.child=null):(a=n.sibling,n.sibling=null),aX(e,!1,a,n,l);break;case"backwards":for(n=null,a=e.child,e.child=null;a!==null;){if(t=a.alternate,t!==null&&JW(t)===null){e.child=a;break}t=a.sibling,a.sibling=n,n=a,a=t}aX(e,!0,n,null,l);break;case"together":aX(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function VW(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function _l(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Di|=e.lanes,!(n&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(Wt(153));if(e.child!==null){for(t=e.child,n=Kr(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Kr(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function SD(t,e,n){switch(e.tag){case 3:XR(e),mo();break;case 5:Sz(e);break;case 1:Hc(e.type)&&yW(e);break;case 4:Ih(e,e.stateNode.containerInfo);break;case 10:var c=e.type._context,a=e.memoizedProps.value;Qe(hW,c._currentValue),c._currentValue=a;break;case 13:if(c=e.memoizedState,c!==null)return c.dehydrated!==null?(Qe(Wn,Wn.current&1),e.flags|=128,null):n&e.child.childLanes?GR(t,e,n):(Qe(Wn,Wn.current&1),t=_l(t,e,n),t!==null?t.sibling:null);Qe(Wn,Wn.current&1);break;case 19:if(c=(n&e.childLanes)!==0,t.flags&128){if(c)return pR(t,e,n);e.flags|=128}if(a=e.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Qe(Wn,Wn.current),c)break;return null;case 22:case 23:return e.lanes=0,mR(t,e,n)}return _l(t,e,n)}var JR,lX,fR,MR;JR=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},lX=function(){},fR=function(t,e,n,c){var a=t.memoizedProps;if(a!==c){t=e.stateNode,Hi(Ll.current);var l=null;switch(n){case"input":a=j2(t,a),c=j2(t,c),l=[];break;case"select":a=Zn({},a,{value:void 0}),c=Zn({},c,{value:void 0}),l=[];break;case"textarea":a=x2(t,a),c=x2(t,c),l=[];break;default:typeof a.onClick!="function"&&typeof c.onClick=="function"&&(t.onclick=uW)}I2(n,c);var r;n=null;for(i in a)if(!c.hasOwnProperty(i)&&a.hasOwnProperty(i)&&a[i]!=null)if(i==="style"){var d=a[i];for(r in d)d.hasOwnProperty(r)&&(n||(n={}),n[r]="")}else i!=="dangerouslySetInnerHTML"&&i!=="children"&&i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(yb.hasOwnProperty(i)?l||(l=[]):(l=l||[]).push(i,null));for(i in c){var o=c[i];if(d=a!=null?a[i]:void 0,c.hasOwnProperty(i)&&o!==d&&(o!=null||d!=null))if(i==="style")if(d){for(r in d)!d.hasOwnProperty(r)||o&&o.hasOwnProperty(r)||(n||(n={}),n[r]="");for(r in o)o.hasOwnProperty(r)&&d[r]!==o[r]&&(n||(n={}),n[r]=o[r])}else n||(l||(l=[]),l.push(i,n)),n=o;else i==="dangerouslySetInnerHTML"?(o=o?o.__html:void 0,d=d?d.__html:void 0,o!=null&&d!==o&&(l=l||[]).push(i,o)):i==="children"?typeof o!="string"&&typeof o!="number"||(l=l||[]).push(i,""+o):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&(yb.hasOwnProperty(i)?(o!=null&&i==="onScroll"&&Ke("scroll",t),l||d===o||(l=[])):(l=l||[]).push(i,o))}n&&(l=l||[]).push("style",n);var i=l;(e.updateQueue=i)&&(e.flags|=4)}},MR=function(t,e,n,c){n!==c&&(e.flags|=4)};function Pb(t,e){if(!rn)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var c=null;n!==null;)n.alternate!==null&&(c=n),n=n.sibling;c===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:c.sibling=null}}function bc(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,c=0;if(e)for(var a=t.child;a!==null;)n|=a.lanes|a.childLanes,c|=a.subtreeFlags&14680064,c|=a.flags&14680064,a.return=t,a=a.sibling;else for(a=t.child;a!==null;)n|=a.lanes|a.childLanes,c|=a.subtreeFlags,c|=a.flags,a.return=t,a=a.sibling;return t.subtreeFlags|=c,t.childLanes=n,e}function FD(t,e,n){var c=e.pendingProps;switch(Nh(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return bc(e),null;case 1:return Hc(e.type)&&sW(),bc(e),null;case 3:return c=e.stateNode,vo(),_e(Fc),_e(oc),Hh(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(t===null||t.child===null)&&(LW(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Ba!==null&&(mX(Ba),Ba=null))),lX(t,e),bc(e),null;case 5:Sh(e);var a=Hi(Db.current);if(n=e.type,t!==null&&e.stateNode!=null)fR(t,e,n,c,a),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!c){if(e.stateNode===null)throw Error(Wt(166));return bc(e),null}if(t=Hi(Ll.current),LW(e)){c=e.stateNode,n=e.type;var l=e.memoizedProps;switch(c[ml]=e,c[Ib]=l,t=(e.mode&1)!==0,n){case"dialog":Ke("cancel",c),Ke("close",c);break;case"iframe":case"object":case"embed":Ke("load",c);break;case"video":case"audio":for(a=0;a<Ob.length;a++)Ke(Ob[a],c);break;case"source":Ke("error",c);break;case"img":case"image":case"link":Ke("error",c),Ke("load",c);break;case"details":Ke("toggle",c);break;case"input":lN(c,l),Ke("invalid",c);break;case"select":c._wrapperState={wasMultiple:!!l.multiple},Ke("invalid",c);break;case"textarea":dN(c,l),Ke("invalid",c)}I2(n,l),a=null;for(var r in l)if(l.hasOwnProperty(r)){var d=l[r];r==="children"?typeof d=="string"?c.textContent!==d&&(l.suppressHydrationWarning!==!0&&oW(c.textContent,d,t),a=["children",d]):typeof d=="number"&&c.textContent!==""+d&&(l.suppressHydrationWarning!==!0&&oW(c.textContent,d,t),a=["children",""+d]):yb.hasOwnProperty(r)&&d!=null&&r==="onScroll"&&Ke("scroll",c)}switch(n){case"input":SZ(c),iN(c,l,!0);break;case"textarea":SZ(c),uN(c);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(c.onclick=uW)}c=a,e.updateQueue=c,c!==null&&(e.flags|=4)}else{r=a.nodeType===9?a:a.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=bN(n)),t==="http://www.w3.org/1999/xhtml"?n==="script"?(t=r.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof c.is=="string"?t=r.createElement(n,{is:c.is}):(t=r.createElement(n),n==="select"&&(r=t,c.multiple?r.multiple=!0:c.size&&(r.size=c.size))):t=r.createElementNS(t,n),t[ml]=e,t[Ib]=c,JR(t,e,!1,!1),e.stateNode=t;t:{switch(r=S2(n,c),n){case"dialog":Ke("cancel",t),Ke("close",t),a=c;break;case"iframe":case"object":case"embed":Ke("load",t),a=c;break;case"video":case"audio":for(a=0;a<Ob.length;a++)Ke(Ob[a],t);a=c;break;case"source":Ke("error",t),a=c;break;case"img":case"image":case"link":Ke("error",t),Ke("load",t),a=c;break;case"details":Ke("toggle",t),a=c;break;case"input":lN(t,c),a=j2(t,c),Ke("invalid",t);break;case"option":a=c;break;case"select":t._wrapperState={wasMultiple:!!c.multiple},a=Zn({},c,{value:void 0}),Ke("invalid",t);break;case"textarea":dN(t,c),a=x2(t,c),Ke("invalid",t);break;default:a=c}I2(n,a),d=a;for(l in d)if(d.hasOwnProperty(l)){var o=d[l];l==="style"?ZN(t,o):l==="dangerouslySetInnerHTML"?(o=o?o.__html:void 0,o!=null&&sN(t,o)):l==="children"?typeof o=="string"?(n!=="textarea"||o!=="")&&Lb(t,o):typeof o=="number"&&Lb(t,""+o):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(yb.hasOwnProperty(l)?o!=null&&l==="onScroll"&&Ke("scroll",t):o!=null&&p2(t,l,o,r))}switch(n){case"input":SZ(t),iN(t,c,!1);break;case"textarea":SZ(t),uN(t);break;case"option":c.value!=null&&t.setAttribute("value",""+gr(c.value));break;case"select":t.multiple=!!c.multiple,l=c.value,l!=null?to(t,!!c.multiple,l,!1):c.defaultValue!=null&&to(t,!!c.multiple,c.defaultValue,!0);break;default:typeof a.onClick=="function"&&(t.onclick=uW)}switch(n){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break t;case"img":c=!0;break t;default:c=!1}}c&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return bc(e),null;case 6:if(t&&e.stateNode!=null)MR(t,e,t.memoizedProps,c);else{if(typeof c!="string"&&e.stateNode===null)throw Error(Wt(166));if(n=Hi(Db.current),Hi(Ll.current),LW(e)){if(c=e.stateNode,n=e.memoizedProps,c[ml]=e,(l=c.nodeValue!==n)&&(t=ca,t!==null))switch(t.tag){case 3:oW(c.nodeValue,n,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&oW(c.nodeValue,n,(t.mode&1)!==0)}l&&(e.flags|=4)}else c=(n.nodeType===9?n:n.ownerDocument).createTextNode(c),c[ml]=e,e.stateNode=c}return bc(e),null;case 13:if(_e(Wn),c=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(rn&&aa!==null&&e.mode&1&&!(e.flags&128))zz(),mo(),e.flags|=98560,l=!1;else if(l=LW(e),c!==null&&c.dehydrated!==null){if(t===null){if(!l)throw Error(Wt(318));if(l=e.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(Wt(317));l[ml]=e}else mo(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;bc(e),l=!1}else Ba!==null&&(mX(Ba),Ba=null),l=!0;if(!l)return e.flags&65536?e:null}return e.flags&128?(e.lanes=n,e):(c=c!==null,c!==(t!==null&&t.memoizedState!==null)&&c&&(e.child.flags|=8192,e.mode&1&&(t===null||Wn.current&1?Hn===0&&(Hn=3):XX())),e.updateQueue!==null&&(e.flags|=4),bc(e),null);case 4:return vo(),lX(t,e),t===null&&xb(e.stateNode.containerInfo),bc(e),null;case 10:return Ch(e.type._context),bc(e),null;case 17:return Hc(e.type)&&sW(),bc(e),null;case 19:if(_e(Wn),l=e.memoizedState,l===null)return bc(e),null;if(c=(e.flags&128)!==0,r=l.rendering,r===null)if(c)Pb(l,!1);else{if(Hn!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(r=JW(t),r!==null){for(e.flags|=128,Pb(l,!1),c=r.updateQueue,c!==null&&(e.updateQueue=c,e.flags|=4),e.subtreeFlags=0,c=n,n=e.child;n!==null;)l=n,t=c,l.flags&=14680066,r=l.alternate,r===null?(l.childLanes=0,l.lanes=t,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=r.childLanes,l.lanes=r.lanes,l.child=r.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=r.memoizedProps,l.memoizedState=r.memoizedState,l.updateQueue=r.updateQueue,l.type=r.type,t=r.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return Qe(Wn,Wn.current&1|2),e.child}t=t.sibling}l.tail!==null&&zn()>Jo&&(e.flags|=128,c=!0,Pb(l,!1),e.lanes=4194304)}else{if(!c)if(t=JW(r),t!==null){if(e.flags|=128,c=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),Pb(l,!0),l.tail===null&&l.tailMode==="hidden"&&!r.alternate&&!rn)return bc(e),null}else 2*zn()-l.renderingStartTime>Jo&&n!==1073741824&&(e.flags|=128,c=!0,Pb(l,!1),e.lanes=4194304);l.isBackwards?(r.sibling=e.child,e.child=r):(n=l.last,n!==null?n.sibling=r:e.child=r,l.last=r)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=zn(),e.sibling=null,n=Wn.current,Qe(Wn,c?n&1|2:n&1),e):(bc(e),null);case 22:case 23:return hX(),c=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==c&&(e.flags|=8192),c&&e.mode&1?la&1073741824&&(bc(e),e.subtreeFlags&6&&(e.flags|=8192)):bc(e),null;case 24:return null;case 25:return null}throw Error(Wt(156,e.tag))}function HD(t,e){switch(Nh(e),e.tag){case 1:return Hc(e.type)&&sW(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return vo(),_e(Fc),_e(oc),Hh(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return Sh(e),null;case 13:if(_e(Wn),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(Wt(340));mo()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return _e(Wn),null;case 4:return vo(),null;case 10:return Ch(e.type._context),null;case 22:case 23:return hX(),null;case 24:return null;default:return null}}var gW=!1,sc=!1,TD=typeof WeakSet=="function"?WeakSet:Set,Ot=null;function Yo(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(c){Jn(t,e,c)}else n.current=null}function rX(t,e,n){try{n()}catch(c){Jn(t,e,c)}}var NR=!1;function DD(t,e){if(hh=$Z,t=az(),uh(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var c=n.getSelection&&n.getSelection();if(c&&c.rangeCount!==0){n=c.anchorNode;var a=c.anchorOffset,l=c.focusNode;c=c.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break t}var r=0,d=-1,o=-1,i=0,u=0,b=t,s=null;e:for(;;){for(var Z;b!==n||a!==0&&b.nodeType!==3||(d=r+a),b!==l||c!==0&&b.nodeType!==3||(o=r+c),b.nodeType===3&&(r+=b.nodeValue.length),(Z=b.firstChild)!==null;)s=b,b=Z;for(;;){if(b===t)break e;if(s===n&&++i===a&&(d=r),s===l&&++u===c&&(o=r),(Z=b.nextSibling)!==null)break;b=s,s=b.parentNode}b=Z}n=d===-1||o===-1?null:{start:d,end:o}}else n=null}n=n||{start:0,end:0}}else n=null;for(Xh={focusedElem:t,selectionRange:n},$Z=!1,Ot=e;Ot!==null;)if(e=Ot,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Ot=t;else for(;Ot!==null;){e=Ot;try{var W=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(W!==null){var m=W.memoizedProps,v=W.memoizedState,L=e.stateNode,X=L.getSnapshotBeforeUpdate(e.elementType===e.type?m:Qa(e.type,m),v);L.__reactInternalSnapshotBeforeUpdate=X}break;case 3:var Y=e.stateNode.containerInfo;Y.nodeType===1?Y.textContent="":Y.nodeType===9&&Y.documentElement&&Y.removeChild(Y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Wt(163))}}catch(p){Jn(e,e.return,p)}if(t=e.sibling,t!==null){t.return=e.return,Ot=t;break}Ot=e.return}return W=NR,NR=!1,W}function Kb(t,e,n){var c=e.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var a=c=c.next;do{if((a.tag&t)===t){var l=a.destroy;a.destroy=void 0,l!==void 0&&rX(e,n,l)}a=a.next}while(a!==c)}}function CW(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var c=n.create;n.destroy=c()}n=n.next}while(n!==e)}}function iX(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function zR(t){var e=t.alternate;e!==null&&(t.alternate=null,zR(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[ml],delete e[Ib],delete e[ph],delete e[MD],delete e[ND])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function RR(t){return t.tag===5||t.tag===3||t.tag===4}function wR(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||RR(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function dX(t,e,n){var c=t.tag;if(c===5||c===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=uW));else if(c!==4&&(t=t.child,t!==null))for(dX(t,e,n),t=t.sibling;t!==null;)dX(t,e,n),t=t.sibling}function oX(t,e,n){var c=t.tag;if(c===5||c===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(c!==4&&(t=t.child,t!==null))for(oX(t,e,n),t=t.sibling;t!==null;)oX(t,e,n),t=t.sibling}var tc=null,Ua=!1;function Br(t,e,n){for(n=n.child;n!==null;)VR(t,e,n),n=n.sibling}function VR(t,e,n){if(Wl&&typeof Wl.onCommitFiberUnmount=="function")try{Wl.onCommitFiberUnmount(QZ,n)}catch{}switch(n.tag){case 5:sc||Yo(n,e);case 6:var c=tc,a=Ua;tc=null,Br(t,e,n),tc=c,Ua=a,tc!==null&&(Ua?(t=tc,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):tc.removeChild(n.stateNode));break;case 18:tc!==null&&(Ua?(t=tc,n=n.stateNode,t.nodeType===8?Yh(t.parentNode,n):t.nodeType===1&&Yh(t,n),zb(t)):Yh(tc,n.stateNode));break;case 4:c=tc,a=Ua,tc=n.stateNode.containerInfo,Ua=!0,Br(t,e,n),tc=c,Ua=a;break;case 0:case 11:case 14:case 15:if(!sc&&(c=n.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){a=c=c.next;do{var l=a,r=l.destroy;l=l.tag,r!==void 0&&(l&2||l&4)&&rX(n,e,r),a=a.next}while(a!==c)}Br(t,e,n);break;case 1:if(!sc&&(Yo(n,e),c=n.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=n.memoizedProps,c.state=n.memoizedState,c.componentWillUnmount()}catch(d){Jn(n,e,d)}Br(t,e,n);break;case 21:Br(t,e,n);break;case 22:n.mode&1?(sc=(c=sc)||n.memoizedState!==null,Br(t,e,n),sc=c):Br(t,e,n);break;default:Br(t,e,n)}}function gR(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new TD),e.forEach(function(c){var a=qD.bind(null,t,c);n.has(c)||(n.add(c),c.then(a,a))})}}function Ea(t,e){var n=e.deletions;if(n!==null)for(var c=0;c<n.length;c++){var a=n[c];try{var l=t,r=e,d=r;t:for(;d!==null;){switch(d.tag){case 5:tc=d.stateNode,Ua=!1;break t;case 3:tc=d.stateNode.containerInfo,Ua=!0;break t;case 4:tc=d.stateNode.containerInfo,Ua=!0;break t}d=d.return}if(tc===null)throw Error(Wt(160));VR(l,r,a),tc=null,Ua=!1;var o=a.alternate;o!==null&&(o.return=null),a.return=null}catch(i){Jn(a,e,i)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)CR(e,t),e=e.sibling}function CR(t,e){var n=t.alternate,c=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Ea(e,t),Xl(t),c&4){try{Kb(3,t,t.return),CW(3,t)}catch(m){Jn(t,t.return,m)}try{Kb(5,t,t.return)}catch(m){Jn(t,t.return,m)}}break;case 1:Ea(e,t),Xl(t),c&512&&n!==null&&Yo(n,n.return);break;case 5:if(Ea(e,t),Xl(t),c&512&&n!==null&&Yo(n,n.return),t.flags&32){var a=t.stateNode;try{Lb(a,"")}catch(m){Jn(t,t.return,m)}}if(c&4&&(a=t.stateNode,a!=null)){var l=t.memoizedProps,r=n!==null?n.memoizedProps:l,d=t.type,o=t.updateQueue;if(t.updateQueue=null,o!==null)try{d==="input"&&l.type==="radio"&&l.name!=null&&rN(a,l),S2(d,r);var i=S2(d,l);for(r=0;r<o.length;r+=2){var u=o[r],b=o[r+1];u==="style"?ZN(a,b):u==="dangerouslySetInnerHTML"?sN(a,b):u==="children"?Lb(a,b):p2(a,u,b,i)}switch(d){case"input":A2(a,l);break;case"textarea":oN(a,l);break;case"select":var s=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!l.multiple;var Z=l.value;Z!=null?to(a,!!l.multiple,Z,!1):s!==!!l.multiple&&(l.defaultValue!=null?to(a,!!l.multiple,l.defaultValue,!0):to(a,!!l.multiple,l.multiple?[]:"",!1))}a[Ib]=l}catch(m){Jn(t,t.return,m)}}break;case 6:if(Ea(e,t),Xl(t),c&4){if(t.stateNode===null)throw Error(Wt(162));a=t.stateNode,l=t.memoizedProps;try{a.nodeValue=l}catch(m){Jn(t,t.return,m)}}break;case 3:if(Ea(e,t),Xl(t),c&4&&n!==null&&n.memoizedState.isDehydrated)try{zb(e.containerInfo)}catch(m){Jn(t,t.return,m)}break;case 4:Ea(e,t),Xl(t);break;case 13:Ea(e,t),Xl(t),a=t.child,a.flags&8192&&(l=a.memoizedState!==null,a.stateNode.isHidden=l,!l||a.alternate!==null&&a.alternate.memoizedState!==null||(sX=zn())),c&4&&gR(t);break;case 22:if(u=n!==null&&n.memoizedState!==null,t.mode&1?(sc=(i=sc)||u,Ea(e,t),sc=i):Ea(e,t),Xl(t),c&8192){if(i=t.memoizedState!==null,(t.stateNode.isHidden=i)&&!u&&t.mode&1)for(Ot=t,u=t.child;u!==null;){for(b=Ot=u;Ot!==null;){switch(s=Ot,Z=s.child,s.tag){case 0:case 11:case 14:case 15:Kb(4,s,s.return);break;case 1:Yo(s,s.return);var W=s.stateNode;if(typeof W.componentWillUnmount=="function"){c=s,n=s.return;try{e=c,W.props=e.memoizedProps,W.state=e.memoizedState,W.componentWillUnmount()}catch(m){Jn(c,n,m)}}break;case 5:Yo(s,s.return);break;case 22:if(s.memoizedState!==null){OR(b);continue}}Z!==null?(Z.return=s,Ot=Z):OR(b)}u=u.sibling}t:for(u=null,b=t;;){if(b.tag===5){if(u===null){u=b;try{a=b.stateNode,i?(l=a.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(d=b.stateNode,o=b.memoizedProps.style,r=o!=null&&o.hasOwnProperty("display")?o.display:null,d.style.display=yN("display",r))}catch(m){Jn(t,t.return,m)}}}else if(b.tag===6){if(u===null)try{b.stateNode.nodeValue=i?"":b.memoizedProps}catch(m){Jn(t,t.return,m)}}else if((b.tag!==22&&b.tag!==23||b.memoizedState===null||b===t)&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===t)break t;for(;b.sibling===null;){if(b.return===null||b.return===t)break t;u===b&&(u=null),b=b.return}u===b&&(u=null),b.sibling.return=b.return,b=b.sibling}}break;case 19:Ea(e,t),Xl(t),c&4&&gR(t);break;case 21:break;default:Ea(e,t),Xl(t)}}function Xl(t){var e=t.flags;if(e&2){try{t:{for(var n=t.return;n!==null;){if(RR(n)){var c=n;break t}n=n.return}throw Error(Wt(160))}switch(c.tag){case 5:var a=c.stateNode;c.flags&32&&(Lb(a,""),c.flags&=-33);var l=wR(t);oX(t,l,a);break;case 3:case 4:var r=c.stateNode.containerInfo,d=wR(t);dX(t,d,r);break;default:throw Error(Wt(161))}}catch(o){Jn(t,t.return,o)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function BD(t,e,n){Ot=t,jR(t)}function jR(t,e,n){for(var c=(t.mode&1)!==0;Ot!==null;){var a=Ot,l=a.child;if(a.tag===22&&c){var r=a.memoizedState!==null||gW;if(!r){var d=a.alternate,o=d!==null&&d.memoizedState!==null||sc;d=gW;var i=sc;if(gW=r,(sc=o)&&!i)for(Ot=a;Ot!==null;)r=Ot,o=r.child,r.tag===22&&r.memoizedState!==null?xR(a):o!==null?(o.return=r,Ot=o):xR(a);for(;l!==null;)Ot=l,jR(l),l=l.sibling;Ot=a,gW=d,sc=i}AR(t)}else a.subtreeFlags&8772&&l!==null?(l.return=a,Ot=l):AR(t)}}function AR(t){for(;Ot!==null;){var e=Ot;if(e.flags&8772){var n=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:sc||CW(5,e);break;case 1:var c=e.stateNode;if(e.flags&4&&!sc)if(n===null)c.componentDidMount();else{var a=e.elementType===e.type?n.memoizedProps:Qa(e.type,n.memoizedProps);c.componentDidUpdate(a,n.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var l=e.updateQueue;l!==null&&gz(e,l,c);break;case 3:var r=e.updateQueue;if(r!==null){if(n=null,e.child!==null)switch(e.child.tag){case 5:n=e.child.stateNode;break;case 1:n=e.child.stateNode}gz(e,r,n)}break;case 5:var d=e.stateNode;if(n===null&&e.flags&4){n=d;var o=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":o.autoFocus&&n.focus();break;case"img":o.src&&(n.src=o.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var i=e.alternate;if(i!==null){var u=i.memoizedState;if(u!==null){var b=u.dehydrated;b!==null&&zb(b)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Wt(163))}sc||e.flags&512&&iX(e)}catch(s){Jn(e,e.return,s)}}if(e===t){Ot=null;break}if(n=e.sibling,n!==null){n.return=e.return,Ot=n;break}Ot=e.return}}function OR(t){for(;Ot!==null;){var e=Ot;if(e===t){Ot=null;break}var n=e.sibling;if(n!==null){n.return=e.return,Ot=n;break}Ot=e.return}}function xR(t){for(;Ot!==null;){var e=Ot;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{CW(4,e)}catch(o){Jn(e,n,o)}break;case 1:var c=e.stateNode;if(typeof c.componentDidMount=="function"){var a=e.return;try{c.componentDidMount()}catch(o){Jn(e,a,o)}}var l=e.return;try{iX(e)}catch(o){Jn(e,l,o)}break;case 5:var r=e.return;try{iX(e)}catch(o){Jn(e,r,o)}}}catch(o){Jn(e,e.return,o)}if(e===t){Ot=null;break}var d=e.sibling;if(d!==null){d.return=e.return,Ot=d;break}Ot=e.return}}var QD=Math.ceil,jW=Dl.ReactCurrentDispatcher,uX=Dl.ReactCurrentOwner,Ja=Dl.ReactCurrentBatchConfig,Ye=0,Qn=null,On=null,ec=0,la=0,po=Sr(0),Hn=0,_b=null,Di=0,AW=0,bX=0,$b=null,Dc=null,sX=0,Jo=1/0,$l=null,OW=!1,yX=null,Qr=null,xW=!1,Ur=null,kW=0,qb=0,ZX=null,IW=-1,SW=0;function fc(){return Ye&6?zn():IW!==-1?IW:IW=zn()}function Er(t){return t.mode&1?Ye&2&&ec!==0?ec&-ec:RD.transition!==null?(SW===0&&(SW=RN()),SW):(t=Ie,t!==0||(t=window.event,t=t===void 0?16:kN(t.type)),t):1}function Pa(t,e,n,c){if(50<qb)throw qb=0,ZX=null,Error(Wt(185));pb(t,n,c),(!(Ye&2)||t!==Qn)&&(t===Qn&&(!(Ye&2)&&(AW|=n),Hn===4&&Pr(t,ec)),Bc(t,c),n===1&&Ye===0&&!(e.mode&1)&&(Jo=zn()+500,ZW&&Hr()))}function Bc(t,e){var n=t.callbackNode;R4(t,e);var c=PZ(t,t===Qn?ec:0);if(c===0)n!==null&&MN(n),t.callbackNode=null,t.callbackPriority=0;else if(e=c&-c,t.callbackPriority!==e){if(n!=null&&MN(n),e===1)t.tag===0?zD(IR.bind(null,t)):pz(IR.bind(null,t)),JD(function(){!(Ye&6)&&Hr()}),n=null;else{switch(wN(c)){case 1:n=U2;break;case 4:n=NN;break;case 16:n=BZ;break;case 536870912:n=zN;break;default:n=BZ}n=UR(n,kR.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function kR(t,e){if(IW=-1,SW=0,Ye&6)throw Error(Wt(327));var n=t.callbackNode;if(fo()&&t.callbackNode!==n)return null;var c=PZ(t,t===Qn?ec:0);if(c===0)return null;if(c&30||c&t.expiredLanes||e)e=FW(t,c);else{e=c;var a=Ye;Ye|=2;var l=FR();(Qn!==t||ec!==e)&&($l=null,Jo=zn()+500,Qi(t,e));do try{PD();break}catch(d){SR(t,d)}while(1);gh(),jW.current=l,Ye=a,On!==null?e=0:(Qn=null,ec=0,e=Hn)}if(e!==0){if(e===2&&(a=E2(t),a!==0&&(c=a,e=WX(t,a))),e===1)throw n=_b,Qi(t,0),Pr(t,c),Bc(t,zn()),n;if(e===6)Pr(t,c);else{if(a=t.current.alternate,!(c&30)&&!UD(a)&&(e=FW(t,c),e===2&&(l=E2(t),l!==0&&(c=l,e=WX(t,l))),e===1))throw n=_b,Qi(t,0),Pr(t,c),Bc(t,zn()),n;switch(t.finishedWork=a,t.finishedLanes=c,e){case 0:case 1:throw Error(Wt(345));case 2:Ui(t,Dc,$l);break;case 3:if(Pr(t,c),(c&130023424)===c&&(e=sX+500-zn(),10<e)){if(PZ(t,0)!==0)break;if(a=t.suspendedLanes,(a&c)!==c){fc(),t.pingedLanes|=t.suspendedLanes&a;break}t.timeoutHandle=Gh(Ui.bind(null,t,Dc,$l),e);break}Ui(t,Dc,$l);break;case 4:if(Pr(t,c),(c&4194240)===c)break;for(e=t.eventTimes,a=-1;0<c;){var r=31-Ta(c);l=1<<r,r=e[r],r>a&&(a=r),c&=~l}if(c=a,c=zn()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*QD(c/1960))-c,10<c){t.timeoutHandle=Gh(Ui.bind(null,t,Dc,$l),c);break}Ui(t,Dc,$l);break;case 5:Ui(t,Dc,$l);break;default:throw Error(Wt(329))}}}return Bc(t,zn()),t.callbackNode===n?kR.bind(null,t):null}function WX(t,e){var n=$b;return t.current.memoizedState.isDehydrated&&(Qi(t,e).flags|=256),t=FW(t,e),t!==2&&(e=Dc,Dc=n,e!==null&&mX(e)),t}function mX(t){Dc===null?Dc=t:Dc.push.apply(Dc,t)}function UD(t){for(var e=t;;){if(e.flags&16384){var n=e.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var c=0;c<n.length;c++){var a=n[c],l=a.getSnapshot;a=a.value;try{if(!Da(l(),a))return!1}catch{return!1}}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Pr(t,e){for(e&=~bX,e&=~AW,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-Ta(e),c=1<<n;t[n]=-1,e&=~c}}function IR(t){if(Ye&6)throw Error(Wt(327));fo();var e=PZ(t,0);if(!(e&1))return Bc(t,zn()),null;var n=FW(t,e);if(t.tag!==0&&n===2){var c=E2(t);c!==0&&(e=c,n=WX(t,c))}if(n===1)throw n=_b,Qi(t,0),Pr(t,e),Bc(t,zn()),n;if(n===6)throw Error(Wt(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,Ui(t,Dc,$l),Bc(t,zn()),null}function LX(t,e){var n=Ye;Ye|=1;try{return t(e)}finally{Ye=n,Ye===0&&(Jo=zn()+500,ZW&&Hr())}}function Bi(t){Ur!==null&&Ur.tag===0&&!(Ye&6)&&fo();var e=Ye;Ye|=1;var n=Ja.transition,c=Ie;try{if(Ja.transition=null,Ie=1,t)return t()}finally{Ie=c,Ja.transition=n,Ye=e,!(Ye&6)&&Hr()}}function hX(){la=po.current,_e(po)}function Qi(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,pD(n)),On!==null)for(n=On.return;n!==null;){var c=n;switch(Nh(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&sW();break;case 3:vo(),_e(Fc),_e(oc),Hh();break;case 5:Sh(c);break;case 4:vo();break;case 13:_e(Wn);break;case 19:_e(Wn);break;case 10:Ch(c.type._context);break;case 22:case 23:hX()}n=n.return}if(Qn=t,On=t=Kr(t.current,null),ec=la=e,Hn=0,_b=null,bX=AW=Di=0,Dc=$b=null,Fi!==null){for(e=0;e<Fi.length;e++)if(n=Fi[e],c=n.interleaved,c!==null){n.interleaved=null;var a=c.next,l=n.pending;if(l!==null){var r=l.next;l.next=a,c.next=r}n.pending=c}Fi=null}return t}function SR(t,e){do{var n=On;try{if(gh(),fW.current=RW,MW){for(var c=mn.memoizedState;c!==null;){var a=c.queue;a!==null&&(a.pending=null),c=c.next}MW=!1}if(Ti=0,Bn=Fn=mn=null,Bb=!1,Qb=0,uX.current=null,n===null||n.return===null){Hn=1,_b=e,On=null;break}t:{var l=t,r=n.return,d=n,o=e;if(e=ec,d.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){var i=o,u=d,b=u.tag;if(!(u.mode&1)&&(b===0||b===11||b===15)){var s=u.alternate;s?(u.updateQueue=s.updateQueue,u.memoizedState=s.memoizedState,u.lanes=s.lanes):(u.updateQueue=null,u.memoizedState=null)}var Z=bR(r);if(Z!==null){Z.flags&=-257,sR(Z,r,d,l,e),Z.mode&1&&uR(l,i,e),e=Z,o=i;var W=e.updateQueue;if(W===null){var m=new Set;m.add(o),e.updateQueue=m}else W.add(o);break t}else{if(!(e&1)){uR(l,i,e),XX();break t}o=Error(Wt(426))}}else if(rn&&d.mode&1){var v=bR(r);if(v!==null){!(v.flags&65536)&&(v.flags|=256),sR(v,r,d,l,e),wh(Go(o,d));break t}}l=o=Go(o,d),Hn!==4&&(Hn=2),$b===null?$b=[l]:$b.push(l),l=r;do{switch(l.tag){case 3:l.flags|=65536,e&=-e,l.lanes|=e;var L=dR(l,o,e);Vz(l,L);break t;case 1:d=o;var X=l.type,Y=l.stateNode;if(!(l.flags&128)&&(typeof X.getDerivedStateFromError=="function"||Y!==null&&typeof Y.componentDidCatch=="function"&&(Qr===null||!Qr.has(Y)))){l.flags|=65536,e&=-e,l.lanes|=e;var p=oR(l,d,e);Vz(l,p);break t}}l=l.return}while(l!==null)}TR(n)}catch(J){e=J,On===n&&n!==null&&(On=n=n.return);continue}break}while(1)}function FR(){var t=jW.current;return jW.current=RW,t===null?RW:t}function XX(){(Hn===0||Hn===3||Hn===2)&&(Hn=4),Qn===null||!(Di&268435455)&&!(AW&268435455)||Pr(Qn,ec)}function FW(t,e){var n=Ye;Ye|=2;var c=FR();(Qn!==t||ec!==e)&&($l=null,Qi(t,e));do try{ED();break}catch(a){SR(t,a)}while(1);if(gh(),Ye=n,jW.current=c,On!==null)throw Error(Wt(261));return Qn=null,ec=0,Hn}function ED(){for(;On!==null;)HR(On)}function PD(){for(;On!==null&&!v4();)HR(On)}function HR(t){var e=QR(t.alternate,t,la);t.memoizedProps=t.pendingProps,e===null?TR(t):On=e,uX.current=null}function TR(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&32768){if(n=HD(n,e),n!==null){n.flags&=32767,On=n;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Hn=6,On=null;return}}else if(n=FD(n,e,la),n!==null){On=n;return}if(e=e.sibling,e!==null){On=e;return}On=e=t}while(e!==null);Hn===0&&(Hn=5)}function Ui(t,e,n){var c=Ie,a=Ja.transition;try{Ja.transition=null,Ie=1,KD(t,e,n,c)}finally{Ja.transition=a,Ie=c}return null}function KD(t,e,n,c){do fo();while(Ur!==null);if(Ye&6)throw Error(Wt(327));n=t.finishedWork;var a=t.finishedLanes;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(Wt(177));t.callbackNode=null,t.callbackPriority=0;var l=n.lanes|n.childLanes;if(w4(t,l),t===Qn&&(On=Qn=null,ec=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||xW||(xW=!0,UR(BZ,function(){return fo(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=Ja.transition,Ja.transition=null;var r=Ie;Ie=1;var d=Ye;Ye|=4,uX.current=null,DD(t,n),CR(n,t),mD(Xh),$Z=!!hh,Xh=hh=null,t.current=n,BD(n),G4(),Ye=d,Ie=r,Ja.transition=l}else t.current=n;if(xW&&(xW=!1,Ur=t,kW=a),l=t.pendingLanes,l===0&&(Qr=null),J4(n.stateNode),Bc(t,zn()),e!==null)for(c=t.onRecoverableError,n=0;n<e.length;n++)a=e[n],c(a.value,{componentStack:a.stack,digest:a.digest});if(OW)throw OW=!1,t=yX,yX=null,t;return kW&1&&t.tag!==0&&fo(),l=t.pendingLanes,l&1?t===ZX?qb++:(qb=0,ZX=t):qb=0,Hr(),null}function fo(){if(Ur!==null){var t=wN(kW),e=Ja.transition,n=Ie;try{if(Ja.transition=null,Ie=16>t?16:t,Ur===null)var c=!1;else{if(t=Ur,Ur=null,kW=0,Ye&6)throw Error(Wt(331));var a=Ye;for(Ye|=4,Ot=t.current;Ot!==null;){var l=Ot,r=l.child;if(Ot.flags&16){var d=l.deletions;if(d!==null){for(var o=0;o<d.length;o++){var i=d[o];for(Ot=i;Ot!==null;){var u=Ot;switch(u.tag){case 0:case 11:case 15:Kb(8,u,l)}var b=u.child;if(b!==null)b.return=u,Ot=b;else for(;Ot!==null;){u=Ot;var s=u.sibling,Z=u.return;if(zR(u),u===i){Ot=null;break}if(s!==null){s.return=Z,Ot=s;break}Ot=Z}}}var W=l.alternate;if(W!==null){var m=W.child;if(m!==null){W.child=null;do{var v=m.sibling;m.sibling=null,m=v}while(m!==null)}}Ot=l}}if(l.subtreeFlags&2064&&r!==null)r.return=l,Ot=r;else t:for(;Ot!==null;){if(l=Ot,l.flags&2048)switch(l.tag){case 0:case 11:case 15:Kb(9,l,l.return)}var L=l.sibling;if(L!==null){L.return=l.return,Ot=L;break t}Ot=l.return}}var X=t.current;for(Ot=X;Ot!==null;){r=Ot;var Y=r.child;if(r.subtreeFlags&2064&&Y!==null)Y.return=r,Ot=Y;else t:for(r=X;Ot!==null;){if(d=Ot,d.flags&2048)try{switch(d.tag){case 0:case 11:case 15:CW(9,d)}}catch(J){Jn(d,d.return,J)}if(d===r){Ot=null;break t}var p=d.sibling;if(p!==null){p.return=d.return,Ot=p;break t}Ot=d.return}}if(Ye=a,Hr(),Wl&&typeof Wl.onPostCommitFiberRoot=="function")try{Wl.onPostCommitFiberRoot(QZ,t)}catch{}c=!0}return c}finally{Ie=n,Ja.transition=e}}return!1}function DR(t,e,n){e=Go(n,e),e=dR(t,e,1),t=Dr(t,e,1),e=fc(),t!==null&&(pb(t,1,e),Bc(t,e))}function Jn(t,e,n){if(t.tag===3)DR(t,t,n);else for(;e!==null;){if(e.tag===3){DR(e,t,n);break}else if(e.tag===1){var c=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Qr===null||!Qr.has(c))){t=Go(n,t),t=oR(e,t,1),e=Dr(e,t,1),t=fc(),e!==null&&(pb(e,1,t),Bc(e,t));break}}e=e.return}}function _D(t,e,n){var c=t.pingCache;c!==null&&c.delete(e),e=fc(),t.pingedLanes|=t.suspendedLanes&n,Qn===t&&(ec&n)===n&&(Hn===4||Hn===3&&(ec&130023424)===ec&&500>zn()-sX?Qi(t,0):bX|=n),Bc(t,e)}function BR(t,e){e===0&&(t.mode&1?(e=EZ,EZ<<=1,!(EZ&130023424)&&(EZ=4194304)):e=1);var n=fc();t=Pl(t,e),t!==null&&(pb(t,e,n),Bc(t,n))}function $D(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),BR(t,n)}function qD(t,e){var n=0;switch(t.tag){case 13:var c=t.stateNode,a=t.memoizedState;a!==null&&(n=a.retryLane);break;case 19:c=t.stateNode;break;default:throw Error(Wt(314))}c!==null&&c.delete(e),BR(t,n)}var QR;QR=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||Fc.current)Tc=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return Tc=!1,SD(t,e,n);Tc=!!(t.flags&131072)}else Tc=!1,rn&&e.flags&1048576&&Jz(e,mW,e.index);switch(e.lanes=0,e.tag){case 2:var c=e.type;VW(t,e),t=e.pendingProps;var a=yo(e,oc.current);ho(e,n),a=Bh(null,e,c,t,a,n);var l=Qh();return e.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Hc(c)?(l=!0,yW(e)):l=!1,e.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Oh(e),a.updater=YW,e.stateNode=a,a._reactInternals=e,kh(e,c,t,n),e=tX(null,e,c,!0,l,n)):(e.tag=0,rn&&l&&Mh(e),Jc(null,e,a,n),e=e.child),e;case 16:c=e.elementType;t:{switch(VW(t,e),t=e.pendingProps,a=c._init,c=a(c._payload),e.type=c,a=e.tag=eB(c),t=Qa(c,t),a){case 0:e=qh(null,e,c,t,n);break t;case 1:e=hR(null,e,c,t,n);break t;case 11:e=yR(null,e,c,t,n);break t;case 14:e=ZR(null,e,c,Qa(c.type,t),n);break t}throw Error(Wt(306,c,""))}return e;case 0:return c=e.type,a=e.pendingProps,a=e.elementType===c?a:Qa(c,a),qh(t,e,c,a,n);case 1:return c=e.type,a=e.pendingProps,a=e.elementType===c?a:Qa(c,a),hR(t,e,c,a,n);case 3:t:{if(XR(e),t===null)throw Error(Wt(387));c=e.pendingProps,l=e.memoizedState,a=l.element,wz(t,e),GW(e,c,null,n);var r=e.memoizedState;if(c=r.element,l.isDehydrated)if(l={element:c,isDehydrated:!1,cache:r.cache,pendingSuspenseBoundaries:r.pendingSuspenseBoundaries,transitions:r.transitions},e.updateQueue.baseState=l,e.memoizedState=l,e.flags&256){a=Go(Error(Wt(423)),e),e=vR(t,e,c,n,a);break t}else if(c!==a){a=Go(Error(Wt(424)),e),e=vR(t,e,c,n,a);break t}else for(aa=Ir(e.stateNode.containerInfo.firstChild),ca=e,rn=!0,Ba=null,n=Iz(e,null,c,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(mo(),c===a){e=_l(t,e,n);break t}Jc(t,e,c,n)}e=e.child}return e;case 5:return Sz(e),t===null&&Rh(e),c=e.type,a=e.pendingProps,l=t!==null?t.memoizedProps:null,r=a.children,vh(c,a)?r=null:l!==null&&vh(c,l)&&(e.flags|=32),LR(t,e),Jc(t,e,r,n),e.child;case 6:return t===null&&Rh(e),null;case 13:return GR(t,e,n);case 4:return Ih(e,e.stateNode.containerInfo),c=e.pendingProps,t===null?e.child=Xo(e,null,c,n):Jc(t,e,c,n),e.child;case 11:return c=e.type,a=e.pendingProps,a=e.elementType===c?a:Qa(c,a),yR(t,e,c,a,n);case 7:return Jc(t,e,e.pendingProps,n),e.child;case 8:return Jc(t,e,e.pendingProps.children,n),e.child;case 12:return Jc(t,e,e.pendingProps.children,n),e.child;case 10:t:{if(c=e.type._context,a=e.pendingProps,l=e.memoizedProps,r=a.value,Qe(hW,c._currentValue),c._currentValue=r,l!==null)if(Da(l.value,r)){if(l.children===a.children&&!Fc.current){e=_l(t,e,n);break t}}else for(l=e.child,l!==null&&(l.return=e);l!==null;){var d=l.dependencies;if(d!==null){r=l.child;for(var o=d.firstContext;o!==null;){if(o.context===c){if(l.tag===1){o=Kl(-1,n&-n),o.tag=2;var i=l.updateQueue;if(i!==null){i=i.shared;var u=i.pending;u===null?o.next=o:(o.next=u.next,u.next=o),i.pending=o}}l.lanes|=n,o=l.alternate,o!==null&&(o.lanes|=n),jh(l.return,n,e),d.lanes|=n;break}o=o.next}}else if(l.tag===10)r=l.type===e.type?null:l.child;else if(l.tag===18){if(r=l.return,r===null)throw Error(Wt(341));r.lanes|=n,d=r.alternate,d!==null&&(d.lanes|=n),jh(r,n,e),r=l.sibling}else r=l.child;if(r!==null)r.return=l;else for(r=l;r!==null;){if(r===e){r=null;break}if(l=r.sibling,l!==null){l.return=r.return,r=l;break}r=r.return}l=r}Jc(t,e,a.children,n),e=e.child}return e;case 9:return a=e.type,c=e.pendingProps.children,ho(e,n),a=Ya(a),c=c(a),e.flags|=1,Jc(t,e,c,n),e.child;case 14:return c=e.type,a=Qa(c,e.pendingProps),a=Qa(c.type,a),ZR(t,e,c,a,n);case 15:return WR(t,e,e.type,e.pendingProps,n);case 17:return c=e.type,a=e.pendingProps,a=e.elementType===c?a:Qa(c,a),VW(t,e),e.tag=1,Hc(c)?(t=!0,yW(e)):t=!1,ho(e,n),Az(e,c,a),kh(e,c,a,n),tX(null,e,c,!0,t,n);case 19:return pR(t,e,n);case 22:return mR(t,e,n)}throw Error(Wt(156,e.tag))};function UR(t,e){return fN(t,e)}function tB(t,e,n,c){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function fa(t,e,n,c){return new tB(t,e,n,c)}function vX(t){return t=t.prototype,!(!t||!t.isReactComponent)}function eB(t){if(typeof t=="function")return vX(t)?1:0;if(t!=null){if(t=t.$$typeof,t===M2)return 11;if(t===R2)return 14}return 2}function Kr(t,e){var n=t.alternate;return n===null?(n=fa(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function HW(t,e,n,c,a,l){var r=2;if(c=t,typeof t=="function")vX(t)&&(r=1);else if(typeof t=="string")r=5;else t:switch(t){case qd:return Ei(n.children,a,l,e);case J2:r=8,a|=8;break;case f2:return t=fa(12,n,e,a|2),t.elementType=f2,t.lanes=l,t;case N2:return t=fa(13,n,e,a),t.elementType=N2,t.lanes=l,t;case z2:return t=fa(19,n,e,a),t.elementType=z2,t.lanes=l,t;case eN:return TW(n,a,l,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case qM:r=10;break t;case tN:r=9;break t;case M2:r=11;break t;case R2:r=14;break t;case Vr:r=16,c=null;break t}throw Error(Wt(130,t==null?t:typeof t,""))}return e=fa(r,n,e,a),e.elementType=t,e.type=c,e.lanes=l,e}function Ei(t,e,n,c){return t=fa(7,t,c,e),t.lanes=n,t}function TW(t,e,n,c){return t=fa(22,t,c,e),t.elementType=eN,t.lanes=n,t.stateNode={isHidden:!1},t}function GX(t,e,n){return t=fa(6,t,null,e),t.lanes=n,t}function YX(t,e,n){return e=fa(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function nB(t,e,n,c,a){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=P2(0),this.expirationTimes=P2(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=P2(0),this.identifierPrefix=c,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function pX(t,e,n,c,a,l,r,d,o){return t=new nB(t,e,n,d,o),e===1?(e=1,l===!0&&(e|=8)):e=0,l=fa(3,null,null,e),t.current=l,l.stateNode=t,l.memoizedState={element:c,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Oh(l),t}function cB(t,e,n){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:$d,key:c==null?null:""+c,children:t,containerInfo:e,implementation:n}}function ER(t){if(!t)return Fr;t=t._reactInternals;t:{if(Oi(t)!==t||t.tag!==1)throw Error(Wt(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break t;case 1:if(Hc(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break t}}e=e.return}while(e!==null);throw Error(Wt(171))}if(t.tag===1){var n=t.type;if(Hc(n))return Gz(t,n,e)}return e}function PR(t,e,n,c,a,l,r,d,o){return t=pX(n,c,!0,t,a,l,r,d,o),t.context=ER(null),n=t.current,c=fc(),a=Er(n),l=Kl(c,a),l.callback=e??null,Dr(n,l,a),t.current.lanes=a,pb(t,a,c),Bc(t,c),t}function DW(t,e,n,c){var a=e.current,l=fc(),r=Er(a);return n=ER(n),e.context===null?e.context=n:e.pendingContext=n,e=Kl(l,r),e.payload={element:t},c=c===void 0?null:c,c!==null&&(e.callback=c),t=Dr(a,e,r),t!==null&&(Pa(t,a,r,l),vW(t,a,r)),r}function BW(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function KR(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function JX(t,e){KR(t,e),(t=t.alternate)&&KR(t,e)}function aB(){return null}var _R=typeof reportError=="function"?reportError:function(t){console.error(t)};function fX(t){this._internalRoot=t}QW.prototype.render=fX.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(Wt(409));DW(t,e,null,null)},QW.prototype.unmount=fX.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Bi(function(){DW(null,t,null,null)}),e[Bl]=null}};function QW(t){this._internalRoot=t}QW.prototype.unstable_scheduleHydration=function(t){if(t){var e=CN();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Or.length&&e!==0&&e<Or[n].priority;n++);Or.splice(n,0,t),n===0&&ON(t)}};function MX(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function UW(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function $R(){}function lB(t,e,n,c,a){if(a){if(typeof c=="function"){var l=c;c=function(){var i=BW(r);l.call(i)}}var r=PR(e,c,t,0,null,!1,!1,"",$R);return t._reactRootContainer=r,t[Bl]=r.current,xb(t.nodeType===8?t.parentNode:t),Bi(),r}for(;a=t.lastChild;)t.removeChild(a);if(typeof c=="function"){var d=c;c=function(){var i=BW(o);d.call(i)}}var o=pX(t,0,!1,null,null,!1,!1,"",$R);return t._reactRootContainer=o,t[Bl]=o.current,xb(t.nodeType===8?t.parentNode:t),Bi(function(){DW(e,o,n,c)}),o}function EW(t,e,n,c,a){var l=n._reactRootContainer;if(l){var r=l;if(typeof a=="function"){var d=a;a=function(){var o=BW(r);d.call(o)}}DW(e,r,t,a)}else r=lB(n,e,t,a,c);return BW(r)}VN=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=Yb(e.pendingLanes);n!==0&&(K2(e,n|1),Bc(e,zn()),!(Ye&6)&&(Jo=zn()+500,Hr()))}break;case 13:Bi(function(){var c=Pl(t,1);if(c!==null){var a=fc();Pa(c,t,1,a)}}),JX(t,1)}},_2=function(t){if(t.tag===13){var e=Pl(t,134217728);if(e!==null){var n=fc();Pa(e,t,134217728,n)}JX(t,134217728)}},gN=function(t){if(t.tag===13){var e=Er(t),n=Pl(t,e);if(n!==null){var c=fc();Pa(n,t,e,c)}JX(t,e)}},CN=function(){return Ie},jN=function(t,e){var n=Ie;try{return Ie=t,e()}finally{Ie=n}},T2=function(t,e,n){switch(e){case"input":if(A2(t,n),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var c=n[e];if(c!==t&&c.form===t.form){var a=bW(c);if(!a)throw Error(Wt(90));aN(c),A2(c,a)}}}break;case"textarea":oN(t,n);break;case"select":e=n.value,e!=null&&to(t,!!n.multiple,e,!1)}},hN=LX,XN=Bi;var rB={usingClientEntryPoint:!1,Events:[Sb,bo,bW,mN,LN,LX]},ts={findFiberByHostInstance:xi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},iB={bundleType:ts.bundleType,version:ts.version,rendererPackageName:ts.rendererPackageName,rendererConfig:ts.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Dl.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=pN(t),t===null?null:t.stateNode},findFiberByHostInstance:ts.findFiberByHostInstance||aB,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var PW=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!PW.isDisabled&&PW.supportsFiber)try{QZ=PW.inject(iB),Wl=PW}catch{}}ta.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=rB,ta.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!MX(e))throw Error(Wt(200));return cB(t,e,null,n)},ta.createRoot=function(t,e){if(!MX(t))throw Error(Wt(299));var n=!1,c="",a=_R;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(c=e.identifierPrefix),e.onRecoverableError!==void 0&&(a=e.onRecoverableError)),e=pX(t,1,!1,null,null,n,!1,c,a),t[Bl]=e.current,xb(t.nodeType===8?t.parentNode:t),new fX(e)},ta.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(Wt(188)):(t=Object.keys(t).join(","),Error(Wt(268,t)));return t=pN(e),t=t===null?null:t.stateNode,t},ta.flushSync=function(t){return Bi(t)},ta.hydrate=function(t,e,n){if(!UW(e))throw Error(Wt(200));return EW(null,t,e,!0,n)},ta.hydrateRoot=function(t,e,n){if(!MX(t))throw Error(Wt(405));var c=n!=null&&n.hydratedSources||null,a=!1,l="",r=_R;if(n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(r=n.onRecoverableError)),e=PR(e,null,t,1,n??null,a,!1,l,r),t[Bl]=e.current,xb(t),c)for(t=0;t<c.length;t++)n=c[t],a=n._getVersion,a=a(n._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[n,a]:e.mutableSourceEagerHydrationData.push(n,a);return new QW(e)},ta.render=function(t,e,n){if(!UW(e))throw Error(Wt(200));return EW(null,t,e,!1,n)},ta.unmountComponentAtNode=function(t){if(!UW(t))throw Error(Wt(40));return t._reactRootContainer?(Bi(function(){EW(null,null,t,!1,function(){t._reactRootContainer=null,t[Bl]=null})}),!0):!1},ta.unstable_batchedUpdates=LX,ta.unstable_renderSubtreeIntoContainer=function(t,e,n,c){if(!UW(n))throw Error(Wt(200));if(t==null||t._reactInternals===void 0)throw Error(Wt(38));return EW(t,e,n,!1,c)},ta.version="18.2.0-next-9e3b772b8-20220608";function qR(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(qR)}catch(t){console.error(t)}}qR(),QM.exports=ta;var Pi=QM.exports;const es=wt(Pi),dB=Oe({__proto__:null,default:es},[Pi]);function oB(t){t()}function uB(t){t||(t=oB),vM({reactionScheduler:t})}function bB(t){return xT(t)}var sB=1e4,yB=1e4,ZB=function(){function t(e){var n=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(c){c===void 0&&(c=sB),clearTimeout(n.sweepTimeout),n.sweepTimeout=void 0;var a=Date.now();n.registrations.forEach(function(l,r){a-l.registeredAt>=c&&(n.finalize(l.value),n.registrations.delete(r))}),n.registrations.size>0&&n.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){n.sweep(0)}})}return Object.defineProperty(t.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(e,n,c){this.registrations.set(c,{value:n,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(t.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.registrations.delete(e)}}),Object.defineProperty(t.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,yB))}}),t}(),WB=typeof FinalizationRegistry<"u"?FinalizationRegistry:ZB,NX=new WB(function(t){var e;(e=t.reaction)===null||e===void 0||e.dispose(),t.reaction=null}),t3=globalThis&&globalThis.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var c=n.call(t),a,l=[],r;try{for(;(e===void 0||e-- >0)&&!(a=c.next()).done;)l.push(a.value)}catch(d){r={error:d}}finally{try{a&&!a.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}return l};function e3(t){return"observer".concat(t)}var mB=function(){function t(){}return t}();function LB(){return new mB}function hB(t,e){e===void 0&&(e="observed");var n=t3(h.useState(LB),1),c=n[0],a=t3(h.useState(),2),l=a[1],r=function(){return l([])},d=h.useRef(null);d.current||(d.current={reaction:null,mounted:!1,changedBeforeMount:!1});var o=d.current;o.reaction||(o.reaction=new gi(e3(e),function(){o.mounted?r():o.changedBeforeMount=!0}),NX.register(c,o,o)),h.useDebugValue(o.reaction,bB),h.useEffect(function(){return NX.unregister(o),o.mounted=!0,o.reaction?o.changedBeforeMount&&(o.changedBeforeMount=!1,r()):(o.reaction=new gi(e3(e),function(){r()}),r()),function(){o.reaction.dispose(),o.reaction=null,o.mounted=!1,o.changedBeforeMount=!1}},[]);var i,u;if(o.reaction.track(function(){try{i=t()}catch(b){u=b}}),u)throw u;return i}var n3=typeof Symbol=="function"&&Symbol.for,c3=n3?Symbol.for("react.forward_ref"):typeof G.forwardRef=="function"&&G.forwardRef(function(t){return null}).$$typeof,a3=n3?Symbol.for("react.memo"):typeof G.memo=="function"&&G.memo(function(t){return null}).$$typeof;function XB(t,e){var n;if(a3&&t.$$typeof===a3)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var c=(n=e==null?void 0:e.forwardRef)!==null&&n!==void 0?n:!1,a=t,l=t.displayName||t.name;if(c3&&t.$$typeof===c3&&(c=!0,a=t.render,typeof a!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var r=function(d,o){return hB(function(){return a(d,o)},l)};return l!==""&&(r.displayName=l),t.contextTypes&&(r.contextTypes=t.contextTypes),c&&(r=G.forwardRef(r)),r=G.memo(r),GB(t,r),r}var vB={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function GB(t,e){Object.keys(t).forEach(function(n){vB[n]||Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}globalThis&&globalThis.__read;var zX;uB(Pi.unstable_batchedUpdates),zX=NX.finalizeAllImmediately;var l3=0;function YB(t){if(typeof Symbol=="function")return Symbol(t);var e="__$mobx-react "+t+" ("+l3+")";return l3++,e}var RX={};function _r(t){return RX[t]||(RX[t]=YB(t)),RX[t]}function r3(t,e){if(i3(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),c=Object.keys(e);if(n.length!==c.length)return!1;for(var a=0;a<n.length;a++)if(!Object.hasOwnProperty.call(e,n[a])||!i3(t[n[a]],e[n[a]]))return!1;return!0}function i3(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}function ql(t,e,n){Object.hasOwnProperty.call(t,e)?t[e]=n:Object.defineProperty(t,e,{enumerable:!1,configurable:!0,writable:!0,value:n})}var d3=_r("patchMixins"),o3=_r("patchedDefinition");function pB(t,e){var n=t[d3]=t[d3]||{},c=n[e]=n[e]||{};return c.locks=c.locks||0,c.methods=c.methods||[],c}function u3(t,e){for(var n=this,c=arguments.length,a=new Array(c>2?c-2:0),l=2;l<c;l++)a[l-2]=arguments[l];e.locks++;try{var r;return t!=null&&(r=t.apply(this,a)),r}finally{e.locks--,e.locks===0&&e.methods.forEach(function(d){d.apply(n,a)})}}function b3(t,e){var n=function(){for(var a=arguments.length,l=new Array(a),r=0;r<a;r++)l[r]=arguments[r];u3.call.apply(u3,[this,t,e].concat(l))};return n}function s3(t,e,n){var c=pB(t,e);c.methods.indexOf(n)<0&&c.methods.push(n);var a=Object.getOwnPropertyDescriptor(t,e);if(!(a&&a[o3])){var l=t[e],r=y3(t,e,a?a.enumerable:void 0,c,l);Object.defineProperty(t,e,r)}}function y3(t,e,n,c,a){var l,r=b3(a,c);return l={},l[o3]=!0,l.get=function(){return r},l.set=function(o){if(this===t)r=b3(o,c);else{var i=y3(this,e,n,c,o);Object.defineProperty(this,e,i)}},l.configurable=!0,l.enumerable=n,l}var Mo=te||"$mobx",Z3=_r("isMobXReactObserver"),wX=_r("isUnmounted"),KW=_r("skipRender"),_W=_r("isForcingUpdate");function JB(t){var e=t.prototype;if(t[Z3]){var n=$W(e);console.warn("The provided component class ("+n+`)
50
50
  has already been declared as an observer component.`)}else t[Z3]=!0;if(e.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(t.__proto__!==G.PureComponent){if(!e.shouldComponentUpdate)e.shouldComponentUpdate=W3;else if(e.shouldComponentUpdate!==W3)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}VX(e,"props"),VX(e,"state"),t.contextType&&VX(e,"context");var c=e.render;if(typeof c!="function"){var a=$W(e);throw new Error("[mobx-react] class component ("+a+") is missing `render` method.\n`observer` requires `render` being a function defined on prototype.\n`render = () => {}` or `render = function() {}` is not supported.")}return e.render=function(){return this.render=fB.call(this,c),this.render()},s3(e,"componentDidMount",function(){this[wX]=!1,this.render[Mo]||G.Component.prototype.forceUpdate.call(this)}),s3(e,"componentWillUnmount",function(){var l=this.render[Mo];if(l)l.dispose(),this.render[Mo]=null;else{var r=$W(this);console.warn("The reactive render of an observer class component ("+r+`)
51
51
  was overridden after MobX attached. This may result in a memory leak if the
52
- overridden reactive render was not properly disposed.`)}this[wX]=!0}),t}function $W(t){return t.displayName||t.name||t.constructor&&(t.constructor.displayName||t.constructor.name)||"<component>"}function fB(t){var e=this;ql(this,KW,!1),ql(this,_W,!1);var n=$W(this),c=t.bind(this),a=!1,l=function(){var o=new gi(n+".render()",function(){if(!a&&(a=!0,e[wX]!==!0)){var i=!0;try{ql(e,_W,!0),e[KW]||G.Component.prototype.forceUpdate.call(e),i=!1}finally{ql(e,_W,!1),i&&(o.dispose(),e.render[Mo]=null)}}});return o.reactComponent=e,o};function r(){var d;a=!1;var o=(d=r[Mo])!=null?d:r[Mo]=l(),i=void 0,u=void 0;if(o.track(function(){try{u=l2(!1,c)}catch(b){i=b}}),i)throw i;return u}return r}function W3(t,e){return this.state!==e?!0:!r3(this.props,t)}function VX(t,e){var n=_r("reactProp_"+e+"_valueHolder"),c=_r("reactProp_"+e+"_atomHolder");function a(){return this[c]||ql(this,c,c2("reactive "+e)),this[c]}Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var r=!1;return Ed&&Mr&&(r=Ed(!0)),a.call(this).reportObserved(),Ed&&Mr&&Mr(r),this[n]},set:function(r){!this[_W]&&!r3(this[n],r)?(ql(this,n,r),ql(this,KW,!0),a.call(this).reportChanged(),ql(this,KW,!1)):ql(this,n,r)}})}function m3(t){return t.isMobxInjector===!0&&console.warn("Mobx observer: You are trying to use `observer` on a component that already has `inject`. Please apply `observer` before applying `inject`"),Object.prototype.isPrototypeOf.call(G.Component,t)||Object.prototype.isPrototypeOf.call(G.PureComponent,t)?JB(t):XB(t)}if(!G.Component)throw new Error("mobx-react requires React to be available");if(!ke)throw new Error("mobx-react requires mobx to be available");class Ki{constructor(e,n,c,a,l,r,d,o,i,u,b="component"){Nn(this,wy,void 0);bt(this,"component");this.actionsInitializer=c,this.valued=a,this.valueType=l,this.defaultProps=r,this.css=d,this.wrapperCss=o,this.typeName=i,this.icon=u,this.kind=b,this.component=m3(e),this.component.displayName=e.displayName||e.name,dl(this,wy,n)}get name(){return se(this,wy)??this.type}get type(){return this.typeName||this.component.displayName||this.component.name}}wy=new WeakMap;var Mc=(t=>(t.LTR="ltr",t.RTL="rtl",t))(Mc||{});class ns{constructor(e,n){bt(this,"key");bt(this,"name");bt(this,"editor");bt(this,"hint");bt(this,"localizable",!1);bt(this,"valued",!1);bt(this,"editorProps");bt(this,"default");bt(this,"type");bt(this,"required",!1);bt(this,"validator");bt(this,"errorMap");bt(this,"calculable",!0);bt(this,"slotConditionBuilder");this.key=e,this.name=n}clone(){return Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this))}}class MB extends ns{}var NB=typeof global=="object"&&global&&global.Object===Object&&global;const L3=NB;var zB=typeof self=="object"&&self&&self.Object===Object&&self,RB=L3||zB||Function("return this")();const vl=RB;var wB=vl.Symbol;const Gl=wB;var h3=Object.prototype,VB=h3.hasOwnProperty,gB=h3.toString,cs=Gl?Gl.toStringTag:void 0;function CB(t){var e=VB.call(t,cs),n=t[cs];try{t[cs]=void 0;var c=!0}catch{}var a=gB.call(t);return c&&(e?t[cs]=n:delete t[cs]),a}var jB=Object.prototype,AB=jB.toString;function OB(t){return AB.call(t)}var xB="[object Null]",kB="[object Undefined]",X3=Gl?Gl.toStringTag:void 0;function _i(t){return t==null?t===void 0?kB:xB:X3&&X3 in Object(t)?CB(t):OB(t)}function Yl(t){return t!=null&&typeof t=="object"}var IB="[object Symbol]";function gX(t){return typeof t=="symbol"||Yl(t)&&_i(t)==IB}function SB(t,e){for(var n=-1,c=t==null?0:t.length,a=Array(c);++n<c;)a[n]=e(t[n],n,t);return a}var FB=Array.isArray;const Nc=FB;var HB=1/0,v3=Gl?Gl.prototype:void 0,G3=v3?v3.toString:void 0;function Y3(t){if(typeof t=="string")return t;if(Nc(t))return SB(t,Y3)+"";if(gX(t))return G3?G3.call(t):"";var e=t+"";return e=="0"&&1/t==-HB?"-0":e}function Ka(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}function qW(t){return t}var TB="[object AsyncFunction]",DB="[object Function]",BB="[object GeneratorFunction]",QB="[object Proxy]";function CX(t){if(!Ka(t))return!1;var e=_i(t);return e==DB||e==BB||e==TB||e==QB}var UB=vl["__core-js_shared__"];const jX=UB;var p3=function(){var t=/[^.]+$/.exec(jX&&jX.keys&&jX.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function EB(t){return!!p3&&p3 in t}var PB=Function.prototype,KB=PB.toString;function $i(t){if(t!=null){try{return KB.call(t)}catch{}try{return t+""}catch{}}return""}var _B=/[\\^$.*+?()[\]{}|]/g,$B=/^\[object .+?Constructor\]$/,qB=Function.prototype,t6=Object.prototype,e6=qB.toString,n6=t6.hasOwnProperty,c6=RegExp("^"+e6.call(n6).replace(_B,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function a6(t){if(!Ka(t)||EB(t))return!1;var e=CX(t)?c6:$B;return e.test($i(t))}function l6(t,e){return t==null?void 0:t[e]}function qi(t,e){var n=l6(t,e);return a6(n)?n:void 0}var r6=qi(vl,"WeakMap");const AX=r6;var J3=Object.create,i6=function(){function t(){}return function(e){if(!Ka(e))return{};if(J3)return J3(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const d6=i6;function o6(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function f3(t,e){var n=-1,c=t.length;for(e||(e=Array(c));++n<c;)e[n]=t[n];return e}var u6=800,b6=16,s6=Date.now;function y6(t){var e=0,n=0;return function(){var c=s6(),a=b6-(c-n);if(n=c,a>0){if(++e>=u6)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function Z6(t){return function(){return t}}var W6=function(){try{var t=qi(Object,"defineProperty");return t({},"",{}),t}catch{}}();const tm=W6;var m6=tm?function(t,e){return tm(t,"toString",{configurable:!0,enumerable:!1,value:Z6(e),writable:!0})}:qW,L6=y6(m6);const h6=L6;function X6(t,e){for(var n=-1,c=t==null?0:t.length;++n<c&&e(t[n],n,t)!==!1;);return t}var v6=9007199254740991,G6=/^(?:0|[1-9]\d*)$/;function OX(t,e){var n=typeof t;return e=e??v6,!!e&&(n=="number"||n!="symbol"&&G6.test(t))&&t>-1&&t%1==0&&t<e}function xX(t,e,n){e=="__proto__"&&tm?tm(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function as(t,e){return t===e||t!==t&&e!==e}var Y6=Object.prototype,p6=Y6.hasOwnProperty;function kX(t,e,n){var c=t[e];(!(p6.call(t,e)&&as(c,n))||n===void 0&&!(e in t))&&xX(t,e,n)}function No(t,e,n,c){var a=!n;n||(n={});for(var l=-1,r=e.length;++l<r;){var d=e[l],o=c?c(n[d],t[d],d,n,t):void 0;o===void 0&&(o=t[d]),a?xX(n,d,o):kX(n,d,o)}return n}var M3=Math.max;function J6(t,e,n){return e=M3(e===void 0?t.length-1:e,0),function(){for(var c=arguments,a=-1,l=M3(c.length-e,0),r=Array(l);++a<l;)r[a]=c[e+a];a=-1;for(var d=Array(e+1);++a<e;)d[a]=c[a];return d[e]=n(r),o6(t,this,d)}}function f6(t,e){return h6(J6(t,e,qW),t+"")}var M6=9007199254740991;function IX(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=M6}function td(t){return t!=null&&IX(t.length)&&!CX(t)}function N6(t,e,n){if(!Ka(n))return!1;var c=typeof e;return(c=="number"?td(n)&&OX(e,n.length):c=="string"&&e in n)?as(n[e],t):!1}function N3(t){return f6(function(e,n){var c=-1,a=n.length,l=a>1?n[a-1]:void 0,r=a>2?n[2]:void 0;for(l=t.length>3&&typeof l=="function"?(a--,l):void 0,r&&N6(n[0],n[1],r)&&(l=a<3?void 0:l,a=1),e=Object(e);++c<a;){var d=n[c];d&&t(e,d,c,l)}return e})}var z6=Object.prototype;function ls(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||z6;return t===n}function R6(t,e){for(var n=-1,c=Array(t);++n<t;)c[n]=e(n);return c}var w6="[object Arguments]";function z3(t){return Yl(t)&&_i(t)==w6}var R3=Object.prototype,V6=R3.hasOwnProperty,g6=R3.propertyIsEnumerable,C6=z3(function(){return arguments}())?z3:function(t){return Yl(t)&&V6.call(t,"callee")&&!g6.call(t,"callee")};const rs=C6;function j6(){return!1}var w3=typeof le=="object"&&le&&!le.nodeType&&le,V3=w3&&typeof module=="object"&&module&&!module.nodeType&&module,A6=V3&&V3.exports===w3,g3=A6?vl.Buffer:void 0,O6=g3?g3.isBuffer:void 0,x6=O6||j6;const zo=x6;var k6="[object Arguments]",I6="[object Array]",S6="[object Boolean]",F6="[object Date]",H6="[object Error]",T6="[object Function]",D6="[object Map]",B6="[object Number]",Q6="[object Object]",U6="[object RegExp]",E6="[object Set]",P6="[object String]",K6="[object WeakMap]",_6="[object ArrayBuffer]",$6="[object DataView]",q6="[object Float32Array]",t7="[object Float64Array]",e7="[object Int8Array]",n7="[object Int16Array]",c7="[object Int32Array]",a7="[object Uint8Array]",l7="[object Uint8ClampedArray]",r7="[object Uint16Array]",i7="[object Uint32Array]",$e={};$e[q6]=$e[t7]=$e[e7]=$e[n7]=$e[c7]=$e[a7]=$e[l7]=$e[r7]=$e[i7]=!0,$e[k6]=$e[I6]=$e[_6]=$e[S6]=$e[$6]=$e[F6]=$e[H6]=$e[T6]=$e[D6]=$e[B6]=$e[Q6]=$e[U6]=$e[E6]=$e[P6]=$e[K6]=!1;function d7(t){return Yl(t)&&IX(t.length)&&!!$e[_i(t)]}function SX(t){return function(e){return t(e)}}var C3=typeof le=="object"&&le&&!le.nodeType&&le,is=C3&&typeof module=="object"&&module&&!module.nodeType&&module,o7=is&&is.exports===C3,FX=o7&&L3.process,u7=function(){try{var t=is&&is.require&&is.require("util").types;return t||FX&&FX.binding&&FX.binding("util")}catch{}}();const Ro=u7;var j3=Ro&&Ro.isTypedArray,b7=j3?SX(j3):d7;const em=b7;var s7=Object.prototype,y7=s7.hasOwnProperty;function A3(t,e){var n=Nc(t),c=!n&&rs(t),a=!n&&!c&&zo(t),l=!n&&!c&&!a&&em(t),r=n||c||a||l,d=r?R6(t.length,String):[],o=d.length;for(var i in t)(e||y7.call(t,i))&&!(r&&(i=="length"||a&&(i=="offset"||i=="parent")||l&&(i=="buffer"||i=="byteLength"||i=="byteOffset")||OX(i,o)))&&d.push(i);return d}function O3(t,e){return function(n){return t(e(n))}}var Z7=O3(Object.keys,Object);const W7=Z7;var m7=Object.prototype,L7=m7.hasOwnProperty;function x3(t){if(!ls(t))return W7(t);var e=[];for(var n in Object(t))L7.call(t,n)&&n!="constructor"&&e.push(n);return e}function wo(t){return td(t)?A3(t):x3(t)}var h7=Object.prototype,X7=h7.hasOwnProperty,v7=N3(function(t,e){if(ls(e)||td(e)){No(e,wo(e),t);return}for(var n in e)X7.call(e,n)&&kX(t,n,e[n])});const ed=v7;function G7(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var Y7=Object.prototype,p7=Y7.hasOwnProperty;function J7(t){if(!Ka(t))return G7(t);var e=ls(t),n=[];for(var c in t)c=="constructor"&&(e||!p7.call(t,c))||n.push(c);return n}function nd(t){return td(t)?A3(t,!0):J7(t)}var f7=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,M7=/^\w*$/;function HX(t,e){if(Nc(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||gX(t)?!0:M7.test(t)||!f7.test(t)||e!=null&&t in Object(e)}var N7=qi(Object,"create");const ds=N7;function z7(){this.__data__=ds?ds(null):{},this.size=0}function R7(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var w7="__lodash_hash_undefined__",V7=Object.prototype,g7=V7.hasOwnProperty;function C7(t){var e=this.__data__;if(ds){var n=e[t];return n===w7?void 0:n}return g7.call(e,t)?e[t]:void 0}var j7=Object.prototype,A7=j7.hasOwnProperty;function O7(t){var e=this.__data__;return ds?e[t]!==void 0:A7.call(e,t)}var x7="__lodash_hash_undefined__";function k7(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=ds&&e===void 0?x7:e,this}function cd(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var c=t[e];this.set(c[0],c[1])}}cd.prototype.clear=z7,cd.prototype.delete=R7,cd.prototype.get=C7,cd.prototype.has=O7,cd.prototype.set=k7;function I7(){this.__data__=[],this.size=0}function nm(t,e){for(var n=t.length;n--;)if(as(t[n][0],e))return n;return-1}var S7=Array.prototype,F7=S7.splice;function H7(t){var e=this.__data__,n=nm(e,t);if(n<0)return!1;var c=e.length-1;return n==c?e.pop():F7.call(e,n,1),--this.size,!0}function T7(t){var e=this.__data__,n=nm(e,t);return n<0?void 0:e[n][1]}function D7(t){return nm(this.__data__,t)>-1}function B7(t,e){var n=this.__data__,c=nm(n,t);return c<0?(++this.size,n.push([t,e])):n[c][1]=e,this}function tr(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var c=t[e];this.set(c[0],c[1])}}tr.prototype.clear=I7,tr.prototype.delete=H7,tr.prototype.get=T7,tr.prototype.has=D7,tr.prototype.set=B7;var Q7=qi(vl,"Map");const os=Q7;function U7(){this.size=0,this.__data__={hash:new cd,map:new(os||tr),string:new cd}}function E7(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function cm(t,e){var n=t.__data__;return E7(e)?n[typeof e=="string"?"string":"hash"]:n.map}function P7(t){var e=cm(this,t).delete(t);return this.size-=e?1:0,e}function K7(t){return cm(this,t).get(t)}function _7(t){return cm(this,t).has(t)}function $7(t,e){var n=cm(this,t),c=n.size;return n.set(t,e),this.size+=n.size==c?0:1,this}function er(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var c=t[e];this.set(c[0],c[1])}}er.prototype.clear=U7,er.prototype.delete=P7,er.prototype.get=K7,er.prototype.has=_7,er.prototype.set=$7;var q7="Expected a function";function TX(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(q7);var n=function(){var c=arguments,a=e?e.apply(this,c):c[0],l=n.cache;if(l.has(a))return l.get(a);var r=t.apply(this,c);return n.cache=l.set(a,r)||l,r};return n.cache=new(TX.Cache||er),n}TX.Cache=er;var tQ=500;function eQ(t){var e=TX(t,function(c){return n.size===tQ&&n.clear(),c}),n=e.cache;return e}var nQ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cQ=/\\(\\)?/g,aQ=eQ(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(nQ,function(n,c,a,l){e.push(a?l.replace(cQ,"$1"):c||n)}),e});const lQ=aQ;function am(t){return t==null?"":Y3(t)}function k3(t,e){return Nc(t)?t:HX(t,e)?[t]:lQ(am(t))}var rQ=1/0;function lm(t){if(typeof t=="string"||gX(t))return t;var e=t+"";return e=="0"&&1/t==-rQ?"-0":e}function I3(t,e){e=k3(e,t);for(var n=0,c=e.length;t!=null&&n<c;)t=t[lm(e[n++])];return n&&n==c?t:void 0}function iQ(t,e,n){var c=t==null?void 0:I3(t,e);return c===void 0?n:c}function S3(t,e){for(var n=-1,c=e.length,a=t.length;++n<c;)t[a+n]=e[n];return t}var dQ=O3(Object.getPrototypeOf,Object);const DX=dQ;var oQ="[object Object]",uQ=Function.prototype,bQ=Object.prototype,F3=uQ.toString,sQ=bQ.hasOwnProperty,yQ=F3.call(Object);function ZQ(t){if(!Yl(t)||_i(t)!=oQ)return!1;var e=DX(t);if(e===null)return!0;var n=sQ.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&F3.call(n)==yQ}function WQ(t,e,n){var c=-1,a=t.length;e<0&&(e=-e>a?0:a+e),n=n>a?a:n,n<0&&(n+=a),a=e>n?0:n-e>>>0,e>>>=0;for(var l=Array(a);++c<a;)l[c]=t[c+e];return l}function mQ(t,e,n){var c=t.length;return n=n===void 0?c:n,!e&&n>=c?t:WQ(t,e,n)}var LQ="\\ud800-\\udfff",hQ="\\u0300-\\u036f",XQ="\\ufe20-\\ufe2f",vQ="\\u20d0-\\u20ff",GQ=hQ+XQ+vQ,YQ="\\ufe0e\\ufe0f",pQ="\\u200d",JQ=RegExp("["+pQ+LQ+GQ+YQ+"]");function H3(t){return JQ.test(t)}function fQ(t){return t.split("")}var T3="\\ud800-\\udfff",MQ="\\u0300-\\u036f",NQ="\\ufe20-\\ufe2f",zQ="\\u20d0-\\u20ff",RQ=MQ+NQ+zQ,wQ="\\ufe0e\\ufe0f",VQ="["+T3+"]",BX="["+RQ+"]",QX="\\ud83c[\\udffb-\\udfff]",gQ="(?:"+BX+"|"+QX+")",D3="[^"+T3+"]",B3="(?:\\ud83c[\\udde6-\\uddff]){2}",Q3="[\\ud800-\\udbff][\\udc00-\\udfff]",CQ="\\u200d",U3=gQ+"?",E3="["+wQ+"]?",jQ="(?:"+CQ+"(?:"+[D3,B3,Q3].join("|")+")"+E3+U3+")*",AQ=E3+U3+jQ,OQ="(?:"+[D3+BX+"?",BX,B3,Q3,VQ].join("|")+")",xQ=RegExp(QX+"(?="+QX+")|"+OQ+AQ,"g");function kQ(t){return t.match(xQ)||[]}function IQ(t){return H3(t)?kQ(t):fQ(t)}function SQ(t){return function(e){e=am(e);var n=H3(e)?IQ(e):void 0,c=n?n[0]:e.charAt(0),a=n?mQ(n,1).join(""):e.slice(1);return c[t]()+a}}var FQ=SQ("toUpperCase");const P3=FQ;function K3(t,e,n,c){var a=-1,l=t==null?0:t.length;for(c&&l&&(n=t[++a]);++a<l;)n=e(n,t[a],a,t);return n}function HQ(t){return function(e){return t==null?void 0:t[e]}}var TQ={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},DQ=HQ(TQ);const BQ=DQ;var QQ=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,UQ="\\u0300-\\u036f",EQ="\\ufe20-\\ufe2f",PQ="\\u20d0-\\u20ff",KQ=UQ+EQ+PQ,_Q="["+KQ+"]",$Q=RegExp(_Q,"g");function qQ(t){return t=am(t),t&&t.replace(QQ,BQ).replace($Q,"")}var tU=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function eU(t){return t.match(tU)||[]}var nU=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function cU(t){return nU.test(t)}var _3="\\ud800-\\udfff",aU="\\u0300-\\u036f",lU="\\ufe20-\\ufe2f",rU="\\u20d0-\\u20ff",iU=aU+lU+rU,$3="\\u2700-\\u27bf",q3="a-z\\xdf-\\xf6\\xf8-\\xff",dU="\\xac\\xb1\\xd7\\xf7",oU="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",uU="\\u2000-\\u206f",bU=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",tw="A-Z\\xc0-\\xd6\\xd8-\\xde",sU="\\ufe0e\\ufe0f",ew=dU+oU+uU+bU,nw="['’]",cw="["+ew+"]",yU="["+iU+"]",aw="\\d+",ZU="["+$3+"]",lw="["+q3+"]",rw="[^"+_3+ew+aw+$3+q3+tw+"]",WU="\\ud83c[\\udffb-\\udfff]",mU="(?:"+yU+"|"+WU+")",LU="[^"+_3+"]",iw="(?:\\ud83c[\\udde6-\\uddff]){2}",dw="[\\ud800-\\udbff][\\udc00-\\udfff]",Vo="["+tw+"]",hU="\\u200d",ow="(?:"+lw+"|"+rw+")",XU="(?:"+Vo+"|"+rw+")",uw="(?:"+nw+"(?:d|ll|m|re|s|t|ve))?",bw="(?:"+nw+"(?:D|LL|M|RE|S|T|VE))?",sw=mU+"?",yw="["+sU+"]?",vU="(?:"+hU+"(?:"+[LU,iw,dw].join("|")+")"+yw+sw+")*",GU="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",YU="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",pU=yw+sw+vU,JU="(?:"+[ZU,iw,dw].join("|")+")"+pU,fU=RegExp([Vo+"?"+lw+"+"+uw+"(?="+[cw,Vo,"$"].join("|")+")",XU+"+"+bw+"(?="+[cw,Vo+ow,"$"].join("|")+")",Vo+"?"+ow+"+"+uw,Vo+"+"+bw,YU,GU,aw,JU].join("|"),"g");function MU(t){return t.match(fU)||[]}function NU(t,e,n){return t=am(t),e=n?void 0:e,e===void 0?cU(t)?MU(t):eU(t):t.match(e)||[]}var zU="['’]",RU=RegExp(zU,"g");function wU(t){return function(e){return K3(NU(qQ(e).replace(RU,"")),t,"")}}function VU(){this.__data__=new tr,this.size=0}function gU(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function CU(t){return this.__data__.get(t)}function jU(t){return this.__data__.has(t)}var AU=200;function OU(t,e){var n=this.__data__;if(n instanceof tr){var c=n.__data__;if(!os||c.length<AU-1)return c.push([t,e]),this.size=++n.size,this;n=this.__data__=new er(c)}return n.set(t,e),this.size=n.size,this}function _a(t){var e=this.__data__=new tr(t);this.size=e.size}_a.prototype.clear=VU,_a.prototype.delete=gU,_a.prototype.get=CU,_a.prototype.has=jU,_a.prototype.set=OU;function xU(t,e){return t&&No(e,wo(e),t)}function kU(t,e){return t&&No(e,nd(e),t)}var Zw=typeof le=="object"&&le&&!le.nodeType&&le,Ww=Zw&&typeof module=="object"&&module&&!module.nodeType&&module,IU=Ww&&Ww.exports===Zw,mw=IU?vl.Buffer:void 0,Lw=mw?mw.allocUnsafe:void 0;function hw(t,e){if(e)return t.slice();var n=t.length,c=Lw?Lw(n):new t.constructor(n);return t.copy(c),c}function SU(t,e){for(var n=-1,c=t==null?0:t.length,a=0,l=[];++n<c;){var r=t[n];e(r,n,t)&&(l[a++]=r)}return l}function Xw(){return[]}var FU=Object.prototype,HU=FU.propertyIsEnumerable,vw=Object.getOwnPropertySymbols,TU=vw?function(t){return t==null?[]:(t=Object(t),SU(vw(t),function(e){return HU.call(t,e)}))}:Xw;const UX=TU;function DU(t,e){return No(t,UX(t),e)}var BU=Object.getOwnPropertySymbols,QU=BU?function(t){for(var e=[];t;)S3(e,UX(t)),t=DX(t);return e}:Xw;const Gw=QU;function UU(t,e){return No(t,Gw(t),e)}function Yw(t,e,n){var c=e(t);return Nc(t)?c:S3(c,n(t))}function EX(t){return Yw(t,wo,UX)}function EU(t){return Yw(t,nd,Gw)}var PU=qi(vl,"DataView");const PX=PU;var KU=qi(vl,"Promise");const KX=KU;var _U=qi(vl,"Set");const _X=_U;var pw="[object Map]",$U="[object Object]",Jw="[object Promise]",fw="[object Set]",Mw="[object WeakMap]",Nw="[object DataView]",qU=$i(PX),tE=$i(os),eE=$i(KX),nE=$i(_X),cE=$i(AX),ad=_i;(PX&&ad(new PX(new ArrayBuffer(1)))!=Nw||os&&ad(new os)!=pw||KX&&ad(KX.resolve())!=Jw||_X&&ad(new _X)!=fw||AX&&ad(new AX)!=Mw)&&(ad=function(t){var e=_i(t),n=e==$U?t.constructor:void 0,c=n?$i(n):"";if(c)switch(c){case qU:return Nw;case tE:return pw;case eE:return Jw;case nE:return fw;case cE:return Mw}return e});const go=ad;var aE=Object.prototype,lE=aE.hasOwnProperty;function rE(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&lE.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var iE=vl.Uint8Array;const rm=iE;function $X(t){var e=new t.constructor(t.byteLength);return new rm(e).set(new rm(t)),e}function dE(t,e){var n=e?$X(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var oE=/\w*$/;function uE(t){var e=new t.constructor(t.source,oE.exec(t));return e.lastIndex=t.lastIndex,e}var zw=Gl?Gl.prototype:void 0,Rw=zw?zw.valueOf:void 0;function bE(t){return Rw?Object(Rw.call(t)):{}}function ww(t,e){var n=e?$X(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var sE="[object Boolean]",yE="[object Date]",ZE="[object Map]",WE="[object Number]",mE="[object RegExp]",LE="[object Set]",hE="[object String]",XE="[object Symbol]",vE="[object ArrayBuffer]",GE="[object DataView]",YE="[object Float32Array]",pE="[object Float64Array]",JE="[object Int8Array]",fE="[object Int16Array]",ME="[object Int32Array]",NE="[object Uint8Array]",zE="[object Uint8ClampedArray]",RE="[object Uint16Array]",wE="[object Uint32Array]";function VE(t,e,n){var c=t.constructor;switch(e){case vE:return $X(t);case sE:case yE:return new c(+t);case GE:return dE(t,n);case YE:case pE:case JE:case fE:case ME:case NE:case zE:case RE:case wE:return ww(t,n);case ZE:return new c;case WE:case hE:return new c(t);case mE:return uE(t);case LE:return new c;case XE:return bE(t)}}function Vw(t){return typeof t.constructor=="function"&&!ls(t)?d6(DX(t)):{}}var gE="[object Map]";function CE(t){return Yl(t)&&go(t)==gE}var gw=Ro&&Ro.isMap,jE=gw?SX(gw):CE;const AE=jE;var OE="[object Set]";function xE(t){return Yl(t)&&go(t)==OE}var Cw=Ro&&Ro.isSet,kE=Cw?SX(Cw):xE;const IE=kE;var SE=1,FE=2,HE=4,jw="[object Arguments]",TE="[object Array]",DE="[object Boolean]",BE="[object Date]",QE="[object Error]",Aw="[object Function]",UE="[object GeneratorFunction]",EE="[object Map]",PE="[object Number]",Ow="[object Object]",KE="[object RegExp]",_E="[object Set]",$E="[object String]",qE="[object Symbol]",tP="[object WeakMap]",eP="[object ArrayBuffer]",nP="[object DataView]",cP="[object Float32Array]",aP="[object Float64Array]",lP="[object Int8Array]",rP="[object Int16Array]",iP="[object Int32Array]",dP="[object Uint8Array]",oP="[object Uint8ClampedArray]",uP="[object Uint16Array]",bP="[object Uint32Array]",Ue={};Ue[jw]=Ue[TE]=Ue[eP]=Ue[nP]=Ue[DE]=Ue[BE]=Ue[cP]=Ue[aP]=Ue[lP]=Ue[rP]=Ue[iP]=Ue[EE]=Ue[PE]=Ue[Ow]=Ue[KE]=Ue[_E]=Ue[$E]=Ue[qE]=Ue[dP]=Ue[oP]=Ue[uP]=Ue[bP]=!0,Ue[QE]=Ue[Aw]=Ue[tP]=!1;function im(t,e,n,c,a,l){var r,d=e&SE,o=e&FE,i=e&HE;if(n&&(r=a?n(t,c,a,l):n(t)),r!==void 0)return r;if(!Ka(t))return t;var u=Nc(t);if(u){if(r=rE(t),!d)return f3(t,r)}else{var b=go(t),s=b==Aw||b==UE;if(zo(t))return hw(t,d);if(b==Ow||b==jw||s&&!a){if(r=o||s?{}:Vw(t),!d)return o?UU(t,kU(r,t)):DU(t,xU(r,t))}else{if(!Ue[b])return a?t:{};r=VE(t,b,d)}}l||(l=new _a);var Z=l.get(t);if(Z)return Z;l.set(t,r),IE(t)?t.forEach(function(v){r.add(im(v,e,n,v,t,l))}):AE(t)&&t.forEach(function(v,L){r.set(L,im(v,e,n,L,t,l))});var W=i?o?EU:EX:o?nd:wo,m=u?void 0:W(t);return X6(m||t,function(v,L){m&&(L=v,v=t[L]),kX(r,L,im(v,e,n,L,t,l))}),r}var sP=4;function qX(t){return im(t,sP)}var yP="__lodash_hash_undefined__";function ZP(t){return this.__data__.set(t,yP),this}function WP(t){return this.__data__.has(t)}function dm(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new er;++e<n;)this.add(t[e])}dm.prototype.add=dm.prototype.push=ZP,dm.prototype.has=WP;function mP(t,e){for(var n=-1,c=t==null?0:t.length;++n<c;)if(e(t[n],n,t))return!0;return!1}function LP(t,e){return t.has(e)}var hP=1,XP=2;function xw(t,e,n,c,a,l){var r=n&hP,d=t.length,o=e.length;if(d!=o&&!(r&&o>d))return!1;var i=l.get(t),u=l.get(e);if(i&&u)return i==e&&u==t;var b=-1,s=!0,Z=n&XP?new dm:void 0;for(l.set(t,e),l.set(e,t);++b<d;){var W=t[b],m=e[b];if(c)var v=r?c(m,W,b,e,t,l):c(W,m,b,t,e,l);if(v!==void 0){if(v)continue;s=!1;break}if(Z){if(!mP(e,function(L,X){if(!LP(Z,X)&&(W===L||a(W,L,n,c,l)))return Z.push(X)})){s=!1;break}}else if(!(W===m||a(W,m,n,c,l))){s=!1;break}}return l.delete(t),l.delete(e),s}function vP(t){var e=-1,n=Array(t.size);return t.forEach(function(c,a){n[++e]=[a,c]}),n}function GP(t){var e=-1,n=Array(t.size);return t.forEach(function(c){n[++e]=c}),n}var YP=1,pP=2,JP="[object Boolean]",fP="[object Date]",MP="[object Error]",NP="[object Map]",zP="[object Number]",RP="[object RegExp]",wP="[object Set]",VP="[object String]",gP="[object Symbol]",CP="[object ArrayBuffer]",jP="[object DataView]",kw=Gl?Gl.prototype:void 0,tv=kw?kw.valueOf:void 0;function AP(t,e,n,c,a,l,r){switch(n){case jP:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case CP:return!(t.byteLength!=e.byteLength||!l(new rm(t),new rm(e)));case JP:case fP:case zP:return as(+t,+e);case MP:return t.name==e.name&&t.message==e.message;case RP:case VP:return t==e+"";case NP:var d=vP;case wP:var o=c&YP;if(d||(d=GP),t.size!=e.size&&!o)return!1;var i=r.get(t);if(i)return i==e;c|=pP,r.set(t,e);var u=xw(d(t),d(e),c,a,l,r);return r.delete(t),u;case gP:if(tv)return tv.call(t)==tv.call(e)}return!1}var OP=1,xP=Object.prototype,kP=xP.hasOwnProperty;function IP(t,e,n,c,a,l){var r=n&OP,d=EX(t),o=d.length,i=EX(e),u=i.length;if(o!=u&&!r)return!1;for(var b=o;b--;){var s=d[b];if(!(r?s in e:kP.call(e,s)))return!1}var Z=l.get(t),W=l.get(e);if(Z&&W)return Z==e&&W==t;var m=!0;l.set(t,e),l.set(e,t);for(var v=r;++b<o;){s=d[b];var L=t[s],X=e[s];if(c)var Y=r?c(X,L,s,e,t,l):c(L,X,s,t,e,l);if(!(Y===void 0?L===X||a(L,X,n,c,l):Y)){m=!1;break}v||(v=s=="constructor")}if(m&&!v){var p=t.constructor,J=e.constructor;p!=J&&"constructor"in t&&"constructor"in e&&!(typeof p=="function"&&p instanceof p&&typeof J=="function"&&J instanceof J)&&(m=!1)}return l.delete(t),l.delete(e),m}var SP=1,Iw="[object Arguments]",Sw="[object Array]",om="[object Object]",FP=Object.prototype,Fw=FP.hasOwnProperty;function HP(t,e,n,c,a,l){var r=Nc(t),d=Nc(e),o=r?Sw:go(t),i=d?Sw:go(e);o=o==Iw?om:o,i=i==Iw?om:i;var u=o==om,b=i==om,s=o==i;if(s&&zo(t)){if(!zo(e))return!1;r=!0,u=!1}if(s&&!u)return l||(l=new _a),r||em(t)?xw(t,e,n,c,a,l):AP(t,e,o,n,c,a,l);if(!(n&SP)){var Z=u&&Fw.call(t,"__wrapped__"),W=b&&Fw.call(e,"__wrapped__");if(Z||W){var m=Z?t.value():t,v=W?e.value():e;return l||(l=new _a),a(m,v,n,c,l)}}return s?(l||(l=new _a),IP(t,e,n,c,a,l)):!1}function ev(t,e,n,c,a){return t===e?!0:t==null||e==null||!Yl(t)&&!Yl(e)?t!==t&&e!==e:HP(t,e,n,c,ev,a)}var TP=1,DP=2;function BP(t,e,n,c){var a=n.length,l=a,r=!c;if(t==null)return!l;for(t=Object(t);a--;){var d=n[a];if(r&&d[2]?d[1]!==t[d[0]]:!(d[0]in t))return!1}for(;++a<l;){d=n[a];var o=d[0],i=t[o],u=d[1];if(r&&d[2]){if(i===void 0&&!(o in t))return!1}else{var b=new _a;if(c)var s=c(i,u,o,t,e,b);if(!(s===void 0?ev(u,i,TP|DP,c,b):s))return!1}}return!0}function Hw(t){return t===t&&!Ka(t)}function QP(t){for(var e=wo(t),n=e.length;n--;){var c=e[n],a=t[c];e[n]=[c,a,Hw(a)]}return e}function Tw(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}function UP(t){var e=QP(t);return e.length==1&&e[0][2]?Tw(e[0][0],e[0][1]):function(n){return n===t||BP(n,t,e)}}function EP(t,e){return t!=null&&e in Object(t)}function PP(t,e,n){e=k3(e,t);for(var c=-1,a=e.length,l=!1;++c<a;){var r=lm(e[c]);if(!(l=t!=null&&n(t,r)))break;t=t[r]}return l||++c!=a?l:(a=t==null?0:t.length,!!a&&IX(a)&&OX(r,a)&&(Nc(t)||rs(t)))}function KP(t,e){return t!=null&&PP(t,e,EP)}var _P=1,$P=2;function qP(t,e){return HX(t)&&Hw(e)?Tw(lm(t),e):function(n){var c=iQ(n,t);return c===void 0&&c===e?KP(n,t):ev(e,c,_P|$P)}}function tK(t){return function(e){return e==null?void 0:e[t]}}function eK(t){return function(e){return I3(e,t)}}function nK(t){return HX(t)?tK(lm(t)):eK(t)}function cK(t){return typeof t=="function"?t:t==null?qW:typeof t=="object"?Nc(t)?qP(t[0],t[1]):UP(t):nK(t)}function aK(t){return function(e,n,c){for(var a=-1,l=Object(e),r=c(e),d=r.length;d--;){var o=r[t?d:++a];if(n(l[o],o,l)===!1)break}return e}}var lK=aK();const nv=lK;function rK(t,e){return t&&nv(t,e,wo)}function iK(t,e){return function(n,c){if(n==null)return n;if(!td(n))return t(n,c);for(var a=n.length,l=e?a:-1,r=Object(n);(e?l--:++l<a)&&c(r[l],l,r)!==!1;);return n}}var dK=iK(rK);const oK=dK;function cv(t,e,n){(n!==void 0&&!as(t[e],n)||n===void 0&&!(e in t))&&xX(t,e,n)}function uK(t){return Yl(t)&&td(t)}function av(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function bK(t){return No(t,nd(t))}function sK(t,e,n,c,a,l,r){var d=av(t,n),o=av(e,n),i=r.get(o);if(i){cv(t,n,i);return}var u=l?l(d,o,n+"",t,e,r):void 0,b=u===void 0;if(b){var s=Nc(o),Z=!s&&zo(o),W=!s&&!Z&&em(o);u=o,s||Z||W?Nc(d)?u=d:uK(d)?u=f3(d):Z?(b=!1,u=hw(o,!0)):W?(b=!1,u=ww(o,!0)):u=[]:ZQ(o)||rs(o)?(u=d,rs(d)?u=bK(d):(!Ka(d)||CX(d))&&(u=Vw(o))):b=!1}b&&(r.set(o,u),a(u,o,c,l,r),r.delete(o)),cv(t,n,u)}function Dw(t,e,n,c,a){t!==e&&nv(e,function(l,r){if(a||(a=new _a),Ka(l))sK(t,e,r,n,Dw,c,a);else{var d=c?c(av(t,r),l,r+"",t,e,a):void 0;d===void 0&&(d=l),cv(t,r,d)}},nd)}function yK(t){return typeof t=="function"?t:qW}function ZK(t,e){return t==null?t:nv(t,yK(e),nd)}var WK="[object Map]",mK="[object Set]",LK=Object.prototype,hK=LK.hasOwnProperty;function Bw(t){if(t==null)return!0;if(td(t)&&(Nc(t)||typeof t=="string"||typeof t.splice=="function"||zo(t)||em(t)||rs(t)))return!t.length;var e=go(t);if(e==WK||e==mK)return!t.size;if(ls(t))return!x3(t).length;for(var n in t)if(hK.call(t,n))return!1;return!0}function XK(t){return t===void 0}var vK=N3(function(t,e,n){Dw(t,e,n)});const Qw=vK;function GK(t,e,n,c,a){return a(t,function(l,r,d){n=c?(c=!1,l):e(n,l,r,d)}),n}function YK(t,e,n){var c=Nc(t)?K3:GK,a=arguments.length<3;return c(t,cK(e),n,a,oK)}var pK=wU(function(t,e,n){return t+(n?" ":"")+P3(e)});const Uw=pK;class JK extends ns{}class fK extends ns{}class MK extends ns{constructor(){super(...arguments);bt(this,"data")}}class NK extends ns{}const zK={Property:MK,Container:MB,Event:JK,Module:fK,Style:NK};class RK{constructor(){bt(this,"annotationType","Module");bt(this,"autoName",!0)}}class Ew{constructor(){bt(this,"annotation");bt(this,"options",new RK)}get valued(){return this.setup({valued:!0})}get localize(){return this.setup({localizable:!0})}get notLocalize(){return this.setup({localizable:!1})}named(e){return this.setup({name:e})}hinted(e){return this.setup({hint:e})}calculable(e){return this.setup({calculable:e})}setup(e){const{annotationType:n,autoName:c,...a}=e,l=this.clone();return l.options.annotationType=n??l.options.annotationType,l.options.autoName=c??l.options.autoName,ed(l.annotation,a),l}clone(){const e=qX(this);return e.options=qX(this.options),e.annotation=qX(this.annotation),e.annotation??(e.annotation={}),e}build(e){const n=this.getName(e),c=new zK[this.options.annotationType](e,n);return ed(c,this.annotation),c}withEditorProps(e){const n=this.clone();return ed(n.annotation,{editorProps:e}),n}getName(e){return this.annotation.name??(this.options.autoName?Uw(e):e)}}class lv extends Ew{get required(){return this.setup({required:!0})}default(e){return this.setup({default:e})}validated(e,n){return this.setup({validator:e,errorMap:n})}}class um extends lv{constructor(){super(...arguments);bt(this,"subType")}get ofString(){const n=new um().setup({...this.options,...this.annotation,type:"array",editor:"arrayOfString"});return n.subType="string",n}get ofObject(){const n=new um().setup({...this.options,...this.annotation,type:"array"});return n.subType="object",n}}class Pw extends lv{constructor(){super(...arguments);bt(this,"values");bt(this,"labels")}get required(){return super.required}labeled(...n){const c=this.clone();return c.labels=n,c}build(n){const c=super.build(n);return c.data=this.values.map((a,l)=>{var d;return{label:((d=this.labels)==null?void 0:d[l])??Uw(a.toString()),value:a}}),c}default(n){return this.setup({default:n})}}class wK extends Pw{radio(){return this.setup({editor:"radio"})}default(e){return super.default(e)}}class VK extends Pw{default(e){return super.default(e)}}const fL=class fL extends Ew{constructor(e){super(),this.annotation={editor:e}}get array(){return new um().setup({...this.options,...this.annotation,type:"array"})}typed(e){return new lv().setup({...this.options,...this.annotation,type:e})}oneOf(...e){const n=new wK().setup({...this.options,...this.annotation,type:"enum"});return n.values=e,n}someOf(...e){const n=new VK().setup({...this.options,...this.annotation,type:"enum"});return n.values=e,n}};bt(fL,"create",e=>new fL(e));let bm=fL;const pl=bm.create;function Ma(t){return pl(t).setup({annotationType:"Property"})}function Kw(t){return t.reduce((e,n)=>(e[n.key]=n.default,e),{})}function sm(t){return{any:{object:Kw(t)}}}class gK extends bm{constructor(e){super(e)}withSlotConditionBuilder(e){return this.setup({slotConditionBuilder:e})}}function CK(t){return new gK(t)}const jK=(t,e)=>e.reduceScreen((n,c)=>c.key===t?n+1:n,0)===1;pl("key").typed("string").required.hinted("Unique component key").calculable(!1).validated(jK,{code:"unique_key",message:"The key must be unique!"}).build("key");const AK=pl("htmlAttributes"),OK=pl("validation"),Tt=Ma("string").typed("string").localize,Ht=Ma("boolean").typed("boolean"),yc=Ma("number").typed("number"),xK=Ma("size").typed("string"),us=Ma("date").typed("date"),nr=Ma("array").array,Co=Ma("color").typed("string");pl("tooltipType").typed("string");const jo=pl("size").setup({calculable:!1}),_w=pl("color").setup({calculable:!1});Ma("string").calculable(!0).build("className");const Kt=pl("event").setup({annotationType:"Event"}),Zc=CK("node").setup({annotationType:"Container"}),De=Ma("oneOf").oneOf.bind(Ma("oneOf")),kK=Ma("someOf").someOf.bind(Ma("someOf")),IK=pl("tooltipProps"),SK=pl("renderWhen").typed("boolean"),ym={width:jo.setup({default:"100%"}),height:jo,marginTop:jo,marginRight:jo,marginBottom:jo,marginLeft:jo,color:_w,backgroundColor:_w},Zm={flexDirection:De("column","row","column-reverse","row-reverse"),gap:xK,alignItems:De("start","center","baseline","end","stretch"),justifyContent:De("flex-start","flex-end","center","space-between","space-around","space-evenly","start","end","left","right"),flexWrap:De("wrap","nowrap","wrap-reverse")},$w=(async function(){}).constructor;class Na{constructor(e,n,c={}){this.func=e,this.body=n,this.params=c}static functionalAction(e,n={}){return new Na(e,void 0,n)}static sourceAction(e,n={}){const c=$w("e, args",e);return new Na(c,e,n)}static createFromObject(e){return Na.sourceAction(e.body,e.params)}}const FK=t=>{const e={};return t&&Object.keys(t).forEach(n=>{const c=t[n];e[n]=Na.createFromObject(c)}),e},rv="onDidMount",iv="onWillUnmount";function HK(t){return new Proxy(t,{get(e,n){return n==="toJSON"?()=>e.data:e.data[n]},set(e,n,c){var a;return(a=e.fields.get(n))==null||a.setValue(c),!0}})}class dv{constructor(e,n,c,a,l){Nn(this,Vy,void 0);bt(this,"renderedProps");bt(this,"setUserDefinedProps",e=>{this.sender.userDefinedProps=e});Nn(this,gy,e=>!!(e&&e.target&&e.type&&e.preventDefault));Nn(this,ML,e=>!se(this,gy).call(this,e));this.type=e,this.sender=n,this.store=c,this.args=a,this.renderedProps=l.get,dl(this,Vy,HK(this.store.formData))}get event(){return this.args.find(se(this,gy))}get value(){return this.args.filter(e=>typeof e<"u").find(se(this,ML))}get data(){return se(this,Vy)}}Vy=new WeakMap,gy=new WeakMap,ML=new WeakMap;const ov=[IK.build("tooltipProps"),SK.build("renderWhen"),AK.build("htmlAttributes"),OK.build("validation"),Kt.build(rv),Kt.build(iv)];class bs{constructor(e,n,c,a,l,r,d,o="component"){this.type=e,this.properties=n,this.css=c,this.wrapperCss=a,this.modules=l,this.customPreview=r,this.valuedAn=d,this.kind=o}}const qw=Symbol("key");function tV(t,e,n={}){return eV("autorun",t,e,n)}function cr(t,e={}){return eV("observable",t,void 0,e)}function eV(t,e,n,c={}){const a=Object.keys(c).map(l=>`${l}=${c[l]}`).join("_");return`${t}_${e}_${n?`${n}_`:""}${a}`}let nV=0;function cV(t){t[qw]||(++nV,t[qw]=`actionData_${nV}`)}function aV(t){var n;const e=t.events;e&&Object.values(e).forEach(c=>c.forEach(cV)),(n=t.children)==null||n.forEach(aV)}function Wm(t){return(t==null?void 0:t.computeType)==="function"}function lV(t){return(t==null?void 0:t.computeType)==="localization"}class ar{constructor(e,n){bt(this,"key","");bt(this,"type","");bt(this,"props",{});bt(this,"css");bt(this,"wrapperCss");bt(this,"events");bt(this,"children");bt(this,"schema");bt(this,"htmlAttributes");bt(this,"tooltipProps");bt(this,"slot");bt(this,"slotCondition");bt(this,"renderWhen");this.key=e,this.type=n,Nr(this,void 0,{name:cr("ComponentStore",{key:e})})}static createFromObject(e){const n=ed(new ar(e.key,e.type),e);return aV(n),n}static addEventHandler(e,n,c){var a;cV(c),e.events??(e.events={}),(a=e.events)[n]??(a[n]=[]),e.events[n].push(c)}}function rV(t){return typeof t=="string"}function TK(t){return typeof t=="number"}function uv(t){return typeof t=="object"&&typeof t.then=="function"}function DK(t){return typeof t=="object"}function Qc(t,e){const n=m3(e);return n.displayName=t,n}new ar("","");const zc=t=>t.replace(new RegExp(" ","g"),"_"),BK=t=>typeof t=="string"||typeof t=="number"||t instanceof Date?!0:typeof(t==null?void 0:t.value)<"u",QK=t=>{const e={};for(const[n,c]of Object.entries(t))BK(c)&&(e[zc(n)]=c);return e};function ss(t){const e=G.createContext(null);e.displayName=t;const n=UK(e),c=EK(e);return[n,c,e]}function UK(t){return()=>{const e=G.useContext(t);if(!e)throw new Error(`The context ${t.displayName} didn't found!`);return e}}function EK(t){return t.Provider}class iV{constructor(){bt(this,"handlers",[])}subscribe(e){this.handlers.push(e)}unsubscribe(e){this.handlers=this.handlers.filter(n=>n!==e)}get isSubscribed(){return this.handlers.length>0}invoke(e,n){this.handlers.slice().forEach(c=>c(e,n))}dispose(){this.handlers=[]}}function bv(t,e){var n;e(t),(n=t.children)==null||n.forEach(c=>bv(c,e))}let PK=0;function KK(t){return`${t}_${++PK}`}class _K{constructor(e,n){this.oldKey=e,this.newKey=n}}class $K{constructor(){bt(this,"onAfterKeyChanged",new iV);bt(this,"onBeforeDelete",new iV)}dispose(){this.onAfterKeyChanged.dispose(),this.onBeforeDelete.dispose()}}class qK{constructor(e,n,c,a,l){Nn(this,Cy,void 0);Nn(this,al,void 0);Nn(this,Xi,void 0);bt(this,"_state",{});bt(this,"id");bt(this,"store");bt(this,"model");bt(this,"field");bt(this,"parent");bt(this,"children",[]);bt(this,"userDefinedProps");bt(this,"validating",!1);var d;this.store=e,this.model=n,this.field=c,this.id=KK(this.model.type),dl(this,Xi,l),(d=e.children)==null||d.forEach(o=>{a(o).setParent(this)}),Nr(this,void 0,{name:cr("ComponentData",{key:e.key})}),dl(this,Cy,[(()=>wT(()=>this.key,(o,i)=>{this.invokeOnAfterKeyChanged(this,new _K(i,o))}))()])}setParent(e){var n;(n=this.parent)==null||n.removeChild(this),e.addChild(this),this.parent=e}insertAfterMe(e){this.insert(e,"after")}insertBeforeMe(e){this.insert(e,"before")}get state(){return this._state}get key(){return this.store.key}get events(){return se(this,al)||dl(this,al,new $K),se(this,al)}findByKey(e){if(this.key===e)return this;for(let n=0;n<this.children.length;n++){const a=this.children[n].findByKey(e);if(a)return a}}unifyKeys(e){const n=new Map,c=[];return bv(e,({key:a})=>{c.push(a)}),bv(this,a=>{let l=1;const r=()=>`${a.store.type} ${l}`;for(;c.includes(r());)l++;const d=r();n.set(d,a.key),a.store.key=d,c.push(d)}),n}get fields(){return this.collectAllFields(new Map)}delete(){var n;(n=this.parent)==null||n.removeChild(this);const e=this.collectAllNodesAsArray([]);this.invokeOnBeforeDeleted(e),this.disposeNodes(e)}get data(){const e={};for(const[n,c]of this.fields)if(c.storeDataInParentForm){const a=c.value||{};Object.keys(a).forEach(l=>e[l]=a[l])}else e[n]=c.value;return e}get fluentData(){const e=t_(this);return QK(e)}get errors(){const e={};for(const[n,c]of this.fields){c.error&&(e[n]=c.error);const a=c.errors;a&&c.storeDataInParentForm&&Object.keys(a).forEach(l=>e[l]=a[l]),a&&!c.storeDataInParentForm&&Object.keys(a).length>0&&(e[n]=a)}return e}get hasErrors(){return Object.keys(this.errors).length>0}setAllErrors(e){this.fields.forEach(n=>n.error=e)}async validate(){this.validating=!0;try{if(await Promise.allSettled([...this.fields.values()].map(a=>a.validate())),!se(this,Xi))return;const e=this.fields,n=se(this,Xi).map(a=>a(this.data));(await Promise.allSettled(n)).map(a=>{if(a.status==="rejected"){console.error(a.reason);return}return a.value}).forEach(a=>{a&&e.forEach((l,r)=>{if(a[r])return l.setError(a[r]);if(l.storeDataInParentForm)return l.setError(a)})})}finally{this.validating=!1}}async getValidationResult(){let e;const n=async([l,r])=>{const d=await r.getValidationResult();if(Bw(d))return;e??(e={});let o=e;if(!r.storeDataInParentForm){const i=Nc(d)?[]:{};e[l]??(e[l]=i),o=e[l]}Qw(o,d)},c=[...this.fields.entries()];if(await Promise.allSettled(c.map(n)),!se(this,Xi))return e;const a=async l=>{const r=await l(this.data);Bw(r)||(e??(e={}),Qw(e,r))};return await Promise.allSettled(se(this,Xi).map(a)),e}get isValidating(){return this.validating}reset(){this.fields.forEach(e=>e.reset())}clear(){this.fields.forEach(e=>e.clear())}dispose(){const e=this.collectAllNodesAsArray([]);this.disposeNodes(e)}get isRoot(){return!this.parent}insert(e,n){var o,i;const c=n==="before"?0:1;if(!this.parent)throw new Error(`Cannot insert without parent. Key = ${this.key}`);(o=e.parent)==null||o.removeChild(e),e.parent=this.parent;const a=this.parent.children,l=a.indexOf(this);if(l<0)throw new Error(`Cannot insert not existing element into ComponentData. Key = ${this.key}`);a.splice(l+c,0,e),(i=this.parent.store).children??(i.children=[]);const r=this.parent.store.children,d=r.indexOf(this.store);if(d<0)throw new Error(`Cannot insert not existing element into ComponentStore. Key = ${this.key}`);r.splice(d+c,0,e.store),e.store.slot=this.store.slot,e.store.slotCondition=this.store.slotCondition}disposeNodes(e){e.forEach(n=>{var c,a;(c=se(n,al))==null||c.dispose(),se(n,Cy).forEach(l=>l()),(a=n.field)==null||a.dispose(),n.parent=void 0,n.children=[]})}collectAllNodesAsArray(e){e.push(this);for(let n=0;n<this.children.length;n++)this.children[n].collectAllNodesAsArray(e);return e}collectAllFields(e){this.field&&e.set(this.key,this.field);for(let n=0;n<this.children.length;n++)this.children[n].collectAllFields(e);return e}addChild(e){var n;this.children.indexOf(e)<0&&this.children.push(e),(n=this.store).children??(n.children=[]),this.store.children.indexOf(e.store)<0&&this.store.children.push(e.store)}removeChild(e){var a;const n=this.children.indexOf(e);n>-1&&this.children.splice(n,1),(a=this.store).children??(a.children=[]);const c=this.store.children.indexOf(e.store);c>-1&&this.store.children.splice(c,1)}invokeOnAfterKeyChanged(e,n){var c,a;(c=se(this,al))!=null&&c.onAfterKeyChanged.isSubscribed&&se(this,al).onAfterKeyChanged.invoke(e,n),(a=this.parent)==null||a.invokeOnAfterKeyChanged(e,n)}invokeOnBeforeDeleted(e){var n,c;(n=se(this,al))!=null&&n.onBeforeDelete.isSubscribed&&e.forEach(a=>{var l;return(l=se(this,al))==null?void 0:l.onBeforeDelete.invoke(a,void 0)}),(c=this.parent)==null||c.invokeOnBeforeDeleted(e)}}Cy=new WeakMap,al=new WeakMap,Xi=new WeakMap;const t_=t=>{const e={};return t.fields.forEach((n,c)=>{e[c]=t.data[c]??""}),e},[lr,dV]=ss("ComponentDataContext"),[za,sv,e_]=ss("StoreContext"),[ld,oV]=ss("FormViewerPropsContext");function mm(t,e={}){return YK(t,(n,c,a)=>{var l;return n.push(((l=c==null?void 0:c.setup(e))==null?void 0:l.build(a))??Tt.setup(e).build(a)),n},[])}function Lm(t){return mm(t,{annotationType:"Style",calculable:!1})}function n_(t){const e=G.useRef(!1),[n,c]=G.useState(t);G.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]);const a=G.useCallback(l=>{e.current&&c(l)},[]);return G.useMemo(()=>[n,a],[n,a])}const c_=new Date(1718296034243),uV=":",bV="-",a_=`MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEJDKWHzXT9YZw7WDJy4wr/VMXBf+/afNB
52
+ overridden reactive render was not properly disposed.`)}this[wX]=!0}),t}function $W(t){return t.displayName||t.name||t.constructor&&(t.constructor.displayName||t.constructor.name)||"<component>"}function fB(t){var e=this;ql(this,KW,!1),ql(this,_W,!1);var n=$W(this),c=t.bind(this),a=!1,l=function(){var o=new gi(n+".render()",function(){if(!a&&(a=!0,e[wX]!==!0)){var i=!0;try{ql(e,_W,!0),e[KW]||G.Component.prototype.forceUpdate.call(e),i=!1}finally{ql(e,_W,!1),i&&(o.dispose(),e.render[Mo]=null)}}});return o.reactComponent=e,o};function r(){var d;a=!1;var o=(d=r[Mo])!=null?d:r[Mo]=l(),i=void 0,u=void 0;if(o.track(function(){try{u=l2(!1,c)}catch(b){i=b}}),i)throw i;return u}return r}function W3(t,e){return this.state!==e?!0:!r3(this.props,t)}function VX(t,e){var n=_r("reactProp_"+e+"_valueHolder"),c=_r("reactProp_"+e+"_atomHolder");function a(){return this[c]||ql(this,c,c2("reactive "+e)),this[c]}Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var r=!1;return Ed&&Mr&&(r=Ed(!0)),a.call(this).reportObserved(),Ed&&Mr&&Mr(r),this[n]},set:function(r){!this[_W]&&!r3(this[n],r)?(ql(this,n,r),ql(this,KW,!0),a.call(this).reportChanged(),ql(this,KW,!1)):ql(this,n,r)}})}function m3(t){return t.isMobxInjector===!0&&console.warn("Mobx observer: You are trying to use `observer` on a component that already has `inject`. Please apply `observer` before applying `inject`"),Object.prototype.isPrototypeOf.call(G.Component,t)||Object.prototype.isPrototypeOf.call(G.PureComponent,t)?JB(t):XB(t)}if(!G.Component)throw new Error("mobx-react requires React to be available");if(!ke)throw new Error("mobx-react requires mobx to be available");class Ki{constructor(e,n,c,a,l,r,d,o,i,u,b="component"){Nn(this,wy,void 0);bt(this,"component");this.actionsInitializer=c,this.valued=a,this.valueType=l,this.defaultProps=r,this.css=d,this.wrapperCss=o,this.typeName=i,this.icon=u,this.kind=b,this.component=m3(e),this.component.displayName=e.displayName||e.name,dl(this,wy,n)}get name(){return se(this,wy)??this.type}get type(){return this.typeName||this.component.displayName||this.component.name}}wy=new WeakMap;var Mc=(t=>(t.LTR="ltr",t.RTL="rtl",t))(Mc||{});class ns{constructor(e,n){bt(this,"key");bt(this,"name");bt(this,"editor");bt(this,"hint");bt(this,"localizable",!1);bt(this,"valued",!1);bt(this,"editorProps");bt(this,"default");bt(this,"type");bt(this,"required",!1);bt(this,"validator");bt(this,"errorMap");bt(this,"calculable",!0);bt(this,"slotConditionBuilder");this.key=e,this.name=n}clone(){return Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this))}}class MB extends ns{}var NB=typeof global=="object"&&global&&global.Object===Object&&global;const L3=NB;var zB=typeof self=="object"&&self&&self.Object===Object&&self,RB=L3||zB||Function("return this")();const vl=RB;var wB=vl.Symbol;const Gl=wB;var h3=Object.prototype,VB=h3.hasOwnProperty,gB=h3.toString,cs=Gl?Gl.toStringTag:void 0;function CB(t){var e=VB.call(t,cs),n=t[cs];try{t[cs]=void 0;var c=!0}catch{}var a=gB.call(t);return c&&(e?t[cs]=n:delete t[cs]),a}var jB=Object.prototype,AB=jB.toString;function OB(t){return AB.call(t)}var xB="[object Null]",kB="[object Undefined]",X3=Gl?Gl.toStringTag:void 0;function _i(t){return t==null?t===void 0?kB:xB:X3&&X3 in Object(t)?CB(t):OB(t)}function Yl(t){return t!=null&&typeof t=="object"}var IB="[object Symbol]";function gX(t){return typeof t=="symbol"||Yl(t)&&_i(t)==IB}function SB(t,e){for(var n=-1,c=t==null?0:t.length,a=Array(c);++n<c;)a[n]=e(t[n],n,t);return a}var FB=Array.isArray;const Nc=FB;var HB=1/0,v3=Gl?Gl.prototype:void 0,G3=v3?v3.toString:void 0;function Y3(t){if(typeof t=="string")return t;if(Nc(t))return SB(t,Y3)+"";if(gX(t))return G3?G3.call(t):"";var e=t+"";return e=="0"&&1/t==-HB?"-0":e}function Ka(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}function qW(t){return t}var TB="[object AsyncFunction]",DB="[object Function]",BB="[object GeneratorFunction]",QB="[object Proxy]";function CX(t){if(!Ka(t))return!1;var e=_i(t);return e==DB||e==BB||e==TB||e==QB}var UB=vl["__core-js_shared__"];const jX=UB;var p3=function(){var t=/[^.]+$/.exec(jX&&jX.keys&&jX.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function EB(t){return!!p3&&p3 in t}var PB=Function.prototype,KB=PB.toString;function $i(t){if(t!=null){try{return KB.call(t)}catch{}try{return t+""}catch{}}return""}var _B=/[\\^$.*+?()[\]{}|]/g,$B=/^\[object .+?Constructor\]$/,qB=Function.prototype,t6=Object.prototype,e6=qB.toString,n6=t6.hasOwnProperty,c6=RegExp("^"+e6.call(n6).replace(_B,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function a6(t){if(!Ka(t)||EB(t))return!1;var e=CX(t)?c6:$B;return e.test($i(t))}function l6(t,e){return t==null?void 0:t[e]}function qi(t,e){var n=l6(t,e);return a6(n)?n:void 0}var r6=qi(vl,"WeakMap");const AX=r6;var J3=Object.create,i6=function(){function t(){}return function(e){if(!Ka(e))return{};if(J3)return J3(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const d6=i6;function o6(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function f3(t,e){var n=-1,c=t.length;for(e||(e=Array(c));++n<c;)e[n]=t[n];return e}var u6=800,b6=16,s6=Date.now;function y6(t){var e=0,n=0;return function(){var c=s6(),a=b6-(c-n);if(n=c,a>0){if(++e>=u6)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function Z6(t){return function(){return t}}var W6=function(){try{var t=qi(Object,"defineProperty");return t({},"",{}),t}catch{}}();const tm=W6;var m6=tm?function(t,e){return tm(t,"toString",{configurable:!0,enumerable:!1,value:Z6(e),writable:!0})}:qW,L6=y6(m6);const h6=L6;function X6(t,e){for(var n=-1,c=t==null?0:t.length;++n<c&&e(t[n],n,t)!==!1;);return t}var v6=9007199254740991,G6=/^(?:0|[1-9]\d*)$/;function OX(t,e){var n=typeof t;return e=e??v6,!!e&&(n=="number"||n!="symbol"&&G6.test(t))&&t>-1&&t%1==0&&t<e}function xX(t,e,n){e=="__proto__"&&tm?tm(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function as(t,e){return t===e||t!==t&&e!==e}var Y6=Object.prototype,p6=Y6.hasOwnProperty;function kX(t,e,n){var c=t[e];(!(p6.call(t,e)&&as(c,n))||n===void 0&&!(e in t))&&xX(t,e,n)}function No(t,e,n,c){var a=!n;n||(n={});for(var l=-1,r=e.length;++l<r;){var d=e[l],o=c?c(n[d],t[d],d,n,t):void 0;o===void 0&&(o=t[d]),a?xX(n,d,o):kX(n,d,o)}return n}var M3=Math.max;function J6(t,e,n){return e=M3(e===void 0?t.length-1:e,0),function(){for(var c=arguments,a=-1,l=M3(c.length-e,0),r=Array(l);++a<l;)r[a]=c[e+a];a=-1;for(var d=Array(e+1);++a<e;)d[a]=c[a];return d[e]=n(r),o6(t,this,d)}}function f6(t,e){return h6(J6(t,e,qW),t+"")}var M6=9007199254740991;function IX(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=M6}function td(t){return t!=null&&IX(t.length)&&!CX(t)}function N6(t,e,n){if(!Ka(n))return!1;var c=typeof e;return(c=="number"?td(n)&&OX(e,n.length):c=="string"&&e in n)?as(n[e],t):!1}function N3(t){return f6(function(e,n){var c=-1,a=n.length,l=a>1?n[a-1]:void 0,r=a>2?n[2]:void 0;for(l=t.length>3&&typeof l=="function"?(a--,l):void 0,r&&N6(n[0],n[1],r)&&(l=a<3?void 0:l,a=1),e=Object(e);++c<a;){var d=n[c];d&&t(e,d,c,l)}return e})}var z6=Object.prototype;function ls(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||z6;return t===n}function R6(t,e){for(var n=-1,c=Array(t);++n<t;)c[n]=e(n);return c}var w6="[object Arguments]";function z3(t){return Yl(t)&&_i(t)==w6}var R3=Object.prototype,V6=R3.hasOwnProperty,g6=R3.propertyIsEnumerable,C6=z3(function(){return arguments}())?z3:function(t){return Yl(t)&&V6.call(t,"callee")&&!g6.call(t,"callee")};const rs=C6;function j6(){return!1}var w3=typeof le=="object"&&le&&!le.nodeType&&le,V3=w3&&typeof module=="object"&&module&&!module.nodeType&&module,A6=V3&&V3.exports===w3,g3=A6?vl.Buffer:void 0,O6=g3?g3.isBuffer:void 0,x6=O6||j6;const zo=x6;var k6="[object Arguments]",I6="[object Array]",S6="[object Boolean]",F6="[object Date]",H6="[object Error]",T6="[object Function]",D6="[object Map]",B6="[object Number]",Q6="[object Object]",U6="[object RegExp]",E6="[object Set]",P6="[object String]",K6="[object WeakMap]",_6="[object ArrayBuffer]",$6="[object DataView]",q6="[object Float32Array]",t7="[object Float64Array]",e7="[object Int8Array]",n7="[object Int16Array]",c7="[object Int32Array]",a7="[object Uint8Array]",l7="[object Uint8ClampedArray]",r7="[object Uint16Array]",i7="[object Uint32Array]",$e={};$e[q6]=$e[t7]=$e[e7]=$e[n7]=$e[c7]=$e[a7]=$e[l7]=$e[r7]=$e[i7]=!0,$e[k6]=$e[I6]=$e[_6]=$e[S6]=$e[$6]=$e[F6]=$e[H6]=$e[T6]=$e[D6]=$e[B6]=$e[Q6]=$e[U6]=$e[E6]=$e[P6]=$e[K6]=!1;function d7(t){return Yl(t)&&IX(t.length)&&!!$e[_i(t)]}function SX(t){return function(e){return t(e)}}var C3=typeof le=="object"&&le&&!le.nodeType&&le,is=C3&&typeof module=="object"&&module&&!module.nodeType&&module,o7=is&&is.exports===C3,FX=o7&&L3.process,u7=function(){try{var t=is&&is.require&&is.require("util").types;return t||FX&&FX.binding&&FX.binding("util")}catch{}}();const Ro=u7;var j3=Ro&&Ro.isTypedArray,b7=j3?SX(j3):d7;const em=b7;var s7=Object.prototype,y7=s7.hasOwnProperty;function A3(t,e){var n=Nc(t),c=!n&&rs(t),a=!n&&!c&&zo(t),l=!n&&!c&&!a&&em(t),r=n||c||a||l,d=r?R6(t.length,String):[],o=d.length;for(var i in t)(e||y7.call(t,i))&&!(r&&(i=="length"||a&&(i=="offset"||i=="parent")||l&&(i=="buffer"||i=="byteLength"||i=="byteOffset")||OX(i,o)))&&d.push(i);return d}function O3(t,e){return function(n){return t(e(n))}}var Z7=O3(Object.keys,Object);const W7=Z7;var m7=Object.prototype,L7=m7.hasOwnProperty;function x3(t){if(!ls(t))return W7(t);var e=[];for(var n in Object(t))L7.call(t,n)&&n!="constructor"&&e.push(n);return e}function wo(t){return td(t)?A3(t):x3(t)}var h7=Object.prototype,X7=h7.hasOwnProperty,v7=N3(function(t,e){if(ls(e)||td(e)){No(e,wo(e),t);return}for(var n in e)X7.call(e,n)&&kX(t,n,e[n])});const ed=v7;function G7(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var Y7=Object.prototype,p7=Y7.hasOwnProperty;function J7(t){if(!Ka(t))return G7(t);var e=ls(t),n=[];for(var c in t)c=="constructor"&&(e||!p7.call(t,c))||n.push(c);return n}function nd(t){return td(t)?A3(t,!0):J7(t)}var f7=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,M7=/^\w*$/;function HX(t,e){if(Nc(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||gX(t)?!0:M7.test(t)||!f7.test(t)||e!=null&&t in Object(e)}var N7=qi(Object,"create");const ds=N7;function z7(){this.__data__=ds?ds(null):{},this.size=0}function R7(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var w7="__lodash_hash_undefined__",V7=Object.prototype,g7=V7.hasOwnProperty;function C7(t){var e=this.__data__;if(ds){var n=e[t];return n===w7?void 0:n}return g7.call(e,t)?e[t]:void 0}var j7=Object.prototype,A7=j7.hasOwnProperty;function O7(t){var e=this.__data__;return ds?e[t]!==void 0:A7.call(e,t)}var x7="__lodash_hash_undefined__";function k7(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=ds&&e===void 0?x7:e,this}function cd(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var c=t[e];this.set(c[0],c[1])}}cd.prototype.clear=z7,cd.prototype.delete=R7,cd.prototype.get=C7,cd.prototype.has=O7,cd.prototype.set=k7;function I7(){this.__data__=[],this.size=0}function nm(t,e){for(var n=t.length;n--;)if(as(t[n][0],e))return n;return-1}var S7=Array.prototype,F7=S7.splice;function H7(t){var e=this.__data__,n=nm(e,t);if(n<0)return!1;var c=e.length-1;return n==c?e.pop():F7.call(e,n,1),--this.size,!0}function T7(t){var e=this.__data__,n=nm(e,t);return n<0?void 0:e[n][1]}function D7(t){return nm(this.__data__,t)>-1}function B7(t,e){var n=this.__data__,c=nm(n,t);return c<0?(++this.size,n.push([t,e])):n[c][1]=e,this}function tr(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var c=t[e];this.set(c[0],c[1])}}tr.prototype.clear=I7,tr.prototype.delete=H7,tr.prototype.get=T7,tr.prototype.has=D7,tr.prototype.set=B7;var Q7=qi(vl,"Map");const os=Q7;function U7(){this.size=0,this.__data__={hash:new cd,map:new(os||tr),string:new cd}}function E7(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function cm(t,e){var n=t.__data__;return E7(e)?n[typeof e=="string"?"string":"hash"]:n.map}function P7(t){var e=cm(this,t).delete(t);return this.size-=e?1:0,e}function K7(t){return cm(this,t).get(t)}function _7(t){return cm(this,t).has(t)}function $7(t,e){var n=cm(this,t),c=n.size;return n.set(t,e),this.size+=n.size==c?0:1,this}function er(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var c=t[e];this.set(c[0],c[1])}}er.prototype.clear=U7,er.prototype.delete=P7,er.prototype.get=K7,er.prototype.has=_7,er.prototype.set=$7;var q7="Expected a function";function TX(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(q7);var n=function(){var c=arguments,a=e?e.apply(this,c):c[0],l=n.cache;if(l.has(a))return l.get(a);var r=t.apply(this,c);return n.cache=l.set(a,r)||l,r};return n.cache=new(TX.Cache||er),n}TX.Cache=er;var tQ=500;function eQ(t){var e=TX(t,function(c){return n.size===tQ&&n.clear(),c}),n=e.cache;return e}var nQ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cQ=/\\(\\)?/g,aQ=eQ(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(nQ,function(n,c,a,l){e.push(a?l.replace(cQ,"$1"):c||n)}),e});const lQ=aQ;function am(t){return t==null?"":Y3(t)}function k3(t,e){return Nc(t)?t:HX(t,e)?[t]:lQ(am(t))}var rQ=1/0;function lm(t){if(typeof t=="string"||gX(t))return t;var e=t+"";return e=="0"&&1/t==-rQ?"-0":e}function I3(t,e){e=k3(e,t);for(var n=0,c=e.length;t!=null&&n<c;)t=t[lm(e[n++])];return n&&n==c?t:void 0}function iQ(t,e,n){var c=t==null?void 0:I3(t,e);return c===void 0?n:c}function S3(t,e){for(var n=-1,c=e.length,a=t.length;++n<c;)t[a+n]=e[n];return t}var dQ=O3(Object.getPrototypeOf,Object);const DX=dQ;var oQ="[object Object]",uQ=Function.prototype,bQ=Object.prototype,F3=uQ.toString,sQ=bQ.hasOwnProperty,yQ=F3.call(Object);function ZQ(t){if(!Yl(t)||_i(t)!=oQ)return!1;var e=DX(t);if(e===null)return!0;var n=sQ.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&F3.call(n)==yQ}function WQ(t,e,n){var c=-1,a=t.length;e<0&&(e=-e>a?0:a+e),n=n>a?a:n,n<0&&(n+=a),a=e>n?0:n-e>>>0,e>>>=0;for(var l=Array(a);++c<a;)l[c]=t[c+e];return l}function mQ(t,e,n){var c=t.length;return n=n===void 0?c:n,!e&&n>=c?t:WQ(t,e,n)}var LQ="\\ud800-\\udfff",hQ="\\u0300-\\u036f",XQ="\\ufe20-\\ufe2f",vQ="\\u20d0-\\u20ff",GQ=hQ+XQ+vQ,YQ="\\ufe0e\\ufe0f",pQ="\\u200d",JQ=RegExp("["+pQ+LQ+GQ+YQ+"]");function H3(t){return JQ.test(t)}function fQ(t){return t.split("")}var T3="\\ud800-\\udfff",MQ="\\u0300-\\u036f",NQ="\\ufe20-\\ufe2f",zQ="\\u20d0-\\u20ff",RQ=MQ+NQ+zQ,wQ="\\ufe0e\\ufe0f",VQ="["+T3+"]",BX="["+RQ+"]",QX="\\ud83c[\\udffb-\\udfff]",gQ="(?:"+BX+"|"+QX+")",D3="[^"+T3+"]",B3="(?:\\ud83c[\\udde6-\\uddff]){2}",Q3="[\\ud800-\\udbff][\\udc00-\\udfff]",CQ="\\u200d",U3=gQ+"?",E3="["+wQ+"]?",jQ="(?:"+CQ+"(?:"+[D3,B3,Q3].join("|")+")"+E3+U3+")*",AQ=E3+U3+jQ,OQ="(?:"+[D3+BX+"?",BX,B3,Q3,VQ].join("|")+")",xQ=RegExp(QX+"(?="+QX+")|"+OQ+AQ,"g");function kQ(t){return t.match(xQ)||[]}function IQ(t){return H3(t)?kQ(t):fQ(t)}function SQ(t){return function(e){e=am(e);var n=H3(e)?IQ(e):void 0,c=n?n[0]:e.charAt(0),a=n?mQ(n,1).join(""):e.slice(1);return c[t]()+a}}var FQ=SQ("toUpperCase");const P3=FQ;function K3(t,e,n,c){var a=-1,l=t==null?0:t.length;for(c&&l&&(n=t[++a]);++a<l;)n=e(n,t[a],a,t);return n}function HQ(t){return function(e){return t==null?void 0:t[e]}}var TQ={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},DQ=HQ(TQ);const BQ=DQ;var QQ=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,UQ="\\u0300-\\u036f",EQ="\\ufe20-\\ufe2f",PQ="\\u20d0-\\u20ff",KQ=UQ+EQ+PQ,_Q="["+KQ+"]",$Q=RegExp(_Q,"g");function qQ(t){return t=am(t),t&&t.replace(QQ,BQ).replace($Q,"")}var tU=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function eU(t){return t.match(tU)||[]}var nU=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function cU(t){return nU.test(t)}var _3="\\ud800-\\udfff",aU="\\u0300-\\u036f",lU="\\ufe20-\\ufe2f",rU="\\u20d0-\\u20ff",iU=aU+lU+rU,$3="\\u2700-\\u27bf",q3="a-z\\xdf-\\xf6\\xf8-\\xff",dU="\\xac\\xb1\\xd7\\xf7",oU="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",uU="\\u2000-\\u206f",bU=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",tw="A-Z\\xc0-\\xd6\\xd8-\\xde",sU="\\ufe0e\\ufe0f",ew=dU+oU+uU+bU,nw="['’]",cw="["+ew+"]",yU="["+iU+"]",aw="\\d+",ZU="["+$3+"]",lw="["+q3+"]",rw="[^"+_3+ew+aw+$3+q3+tw+"]",WU="\\ud83c[\\udffb-\\udfff]",mU="(?:"+yU+"|"+WU+")",LU="[^"+_3+"]",iw="(?:\\ud83c[\\udde6-\\uddff]){2}",dw="[\\ud800-\\udbff][\\udc00-\\udfff]",Vo="["+tw+"]",hU="\\u200d",ow="(?:"+lw+"|"+rw+")",XU="(?:"+Vo+"|"+rw+")",uw="(?:"+nw+"(?:d|ll|m|re|s|t|ve))?",bw="(?:"+nw+"(?:D|LL|M|RE|S|T|VE))?",sw=mU+"?",yw="["+sU+"]?",vU="(?:"+hU+"(?:"+[LU,iw,dw].join("|")+")"+yw+sw+")*",GU="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",YU="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",pU=yw+sw+vU,JU="(?:"+[ZU,iw,dw].join("|")+")"+pU,fU=RegExp([Vo+"?"+lw+"+"+uw+"(?="+[cw,Vo,"$"].join("|")+")",XU+"+"+bw+"(?="+[cw,Vo+ow,"$"].join("|")+")",Vo+"?"+ow+"+"+uw,Vo+"+"+bw,YU,GU,aw,JU].join("|"),"g");function MU(t){return t.match(fU)||[]}function NU(t,e,n){return t=am(t),e=n?void 0:e,e===void 0?cU(t)?MU(t):eU(t):t.match(e)||[]}var zU="['’]",RU=RegExp(zU,"g");function wU(t){return function(e){return K3(NU(qQ(e).replace(RU,"")),t,"")}}function VU(){this.__data__=new tr,this.size=0}function gU(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function CU(t){return this.__data__.get(t)}function jU(t){return this.__data__.has(t)}var AU=200;function OU(t,e){var n=this.__data__;if(n instanceof tr){var c=n.__data__;if(!os||c.length<AU-1)return c.push([t,e]),this.size=++n.size,this;n=this.__data__=new er(c)}return n.set(t,e),this.size=n.size,this}function _a(t){var e=this.__data__=new tr(t);this.size=e.size}_a.prototype.clear=VU,_a.prototype.delete=gU,_a.prototype.get=CU,_a.prototype.has=jU,_a.prototype.set=OU;function xU(t,e){return t&&No(e,wo(e),t)}function kU(t,e){return t&&No(e,nd(e),t)}var Zw=typeof le=="object"&&le&&!le.nodeType&&le,Ww=Zw&&typeof module=="object"&&module&&!module.nodeType&&module,IU=Ww&&Ww.exports===Zw,mw=IU?vl.Buffer:void 0,Lw=mw?mw.allocUnsafe:void 0;function hw(t,e){if(e)return t.slice();var n=t.length,c=Lw?Lw(n):new t.constructor(n);return t.copy(c),c}function SU(t,e){for(var n=-1,c=t==null?0:t.length,a=0,l=[];++n<c;){var r=t[n];e(r,n,t)&&(l[a++]=r)}return l}function Xw(){return[]}var FU=Object.prototype,HU=FU.propertyIsEnumerable,vw=Object.getOwnPropertySymbols,TU=vw?function(t){return t==null?[]:(t=Object(t),SU(vw(t),function(e){return HU.call(t,e)}))}:Xw;const UX=TU;function DU(t,e){return No(t,UX(t),e)}var BU=Object.getOwnPropertySymbols,QU=BU?function(t){for(var e=[];t;)S3(e,UX(t)),t=DX(t);return e}:Xw;const Gw=QU;function UU(t,e){return No(t,Gw(t),e)}function Yw(t,e,n){var c=e(t);return Nc(t)?c:S3(c,n(t))}function EX(t){return Yw(t,wo,UX)}function EU(t){return Yw(t,nd,Gw)}var PU=qi(vl,"DataView");const PX=PU;var KU=qi(vl,"Promise");const KX=KU;var _U=qi(vl,"Set");const _X=_U;var pw="[object Map]",$U="[object Object]",Jw="[object Promise]",fw="[object Set]",Mw="[object WeakMap]",Nw="[object DataView]",qU=$i(PX),tE=$i(os),eE=$i(KX),nE=$i(_X),cE=$i(AX),ad=_i;(PX&&ad(new PX(new ArrayBuffer(1)))!=Nw||os&&ad(new os)!=pw||KX&&ad(KX.resolve())!=Jw||_X&&ad(new _X)!=fw||AX&&ad(new AX)!=Mw)&&(ad=function(t){var e=_i(t),n=e==$U?t.constructor:void 0,c=n?$i(n):"";if(c)switch(c){case qU:return Nw;case tE:return pw;case eE:return Jw;case nE:return fw;case cE:return Mw}return e});const go=ad;var aE=Object.prototype,lE=aE.hasOwnProperty;function rE(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&lE.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var iE=vl.Uint8Array;const rm=iE;function $X(t){var e=new t.constructor(t.byteLength);return new rm(e).set(new rm(t)),e}function dE(t,e){var n=e?$X(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var oE=/\w*$/;function uE(t){var e=new t.constructor(t.source,oE.exec(t));return e.lastIndex=t.lastIndex,e}var zw=Gl?Gl.prototype:void 0,Rw=zw?zw.valueOf:void 0;function bE(t){return Rw?Object(Rw.call(t)):{}}function ww(t,e){var n=e?$X(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var sE="[object Boolean]",yE="[object Date]",ZE="[object Map]",WE="[object Number]",mE="[object RegExp]",LE="[object Set]",hE="[object String]",XE="[object Symbol]",vE="[object ArrayBuffer]",GE="[object DataView]",YE="[object Float32Array]",pE="[object Float64Array]",JE="[object Int8Array]",fE="[object Int16Array]",ME="[object Int32Array]",NE="[object Uint8Array]",zE="[object Uint8ClampedArray]",RE="[object Uint16Array]",wE="[object Uint32Array]";function VE(t,e,n){var c=t.constructor;switch(e){case vE:return $X(t);case sE:case yE:return new c(+t);case GE:return dE(t,n);case YE:case pE:case JE:case fE:case ME:case NE:case zE:case RE:case wE:return ww(t,n);case ZE:return new c;case WE:case hE:return new c(t);case mE:return uE(t);case LE:return new c;case XE:return bE(t)}}function Vw(t){return typeof t.constructor=="function"&&!ls(t)?d6(DX(t)):{}}var gE="[object Map]";function CE(t){return Yl(t)&&go(t)==gE}var gw=Ro&&Ro.isMap,jE=gw?SX(gw):CE;const AE=jE;var OE="[object Set]";function xE(t){return Yl(t)&&go(t)==OE}var Cw=Ro&&Ro.isSet,kE=Cw?SX(Cw):xE;const IE=kE;var SE=1,FE=2,HE=4,jw="[object Arguments]",TE="[object Array]",DE="[object Boolean]",BE="[object Date]",QE="[object Error]",Aw="[object Function]",UE="[object GeneratorFunction]",EE="[object Map]",PE="[object Number]",Ow="[object Object]",KE="[object RegExp]",_E="[object Set]",$E="[object String]",qE="[object Symbol]",tP="[object WeakMap]",eP="[object ArrayBuffer]",nP="[object DataView]",cP="[object Float32Array]",aP="[object Float64Array]",lP="[object Int8Array]",rP="[object Int16Array]",iP="[object Int32Array]",dP="[object Uint8Array]",oP="[object Uint8ClampedArray]",uP="[object Uint16Array]",bP="[object Uint32Array]",Ue={};Ue[jw]=Ue[TE]=Ue[eP]=Ue[nP]=Ue[DE]=Ue[BE]=Ue[cP]=Ue[aP]=Ue[lP]=Ue[rP]=Ue[iP]=Ue[EE]=Ue[PE]=Ue[Ow]=Ue[KE]=Ue[_E]=Ue[$E]=Ue[qE]=Ue[dP]=Ue[oP]=Ue[uP]=Ue[bP]=!0,Ue[QE]=Ue[Aw]=Ue[tP]=!1;function im(t,e,n,c,a,l){var r,d=e&SE,o=e&FE,i=e&HE;if(n&&(r=a?n(t,c,a,l):n(t)),r!==void 0)return r;if(!Ka(t))return t;var u=Nc(t);if(u){if(r=rE(t),!d)return f3(t,r)}else{var b=go(t),s=b==Aw||b==UE;if(zo(t))return hw(t,d);if(b==Ow||b==jw||s&&!a){if(r=o||s?{}:Vw(t),!d)return o?UU(t,kU(r,t)):DU(t,xU(r,t))}else{if(!Ue[b])return a?t:{};r=VE(t,b,d)}}l||(l=new _a);var Z=l.get(t);if(Z)return Z;l.set(t,r),IE(t)?t.forEach(function(v){r.add(im(v,e,n,v,t,l))}):AE(t)&&t.forEach(function(v,L){r.set(L,im(v,e,n,L,t,l))});var W=i?o?EU:EX:o?nd:wo,m=u?void 0:W(t);return X6(m||t,function(v,L){m&&(L=v,v=t[L]),kX(r,L,im(v,e,n,L,t,l))}),r}var sP=4;function qX(t){return im(t,sP)}var yP="__lodash_hash_undefined__";function ZP(t){return this.__data__.set(t,yP),this}function WP(t){return this.__data__.has(t)}function dm(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new er;++e<n;)this.add(t[e])}dm.prototype.add=dm.prototype.push=ZP,dm.prototype.has=WP;function mP(t,e){for(var n=-1,c=t==null?0:t.length;++n<c;)if(e(t[n],n,t))return!0;return!1}function LP(t,e){return t.has(e)}var hP=1,XP=2;function xw(t,e,n,c,a,l){var r=n&hP,d=t.length,o=e.length;if(d!=o&&!(r&&o>d))return!1;var i=l.get(t),u=l.get(e);if(i&&u)return i==e&&u==t;var b=-1,s=!0,Z=n&XP?new dm:void 0;for(l.set(t,e),l.set(e,t);++b<d;){var W=t[b],m=e[b];if(c)var v=r?c(m,W,b,e,t,l):c(W,m,b,t,e,l);if(v!==void 0){if(v)continue;s=!1;break}if(Z){if(!mP(e,function(L,X){if(!LP(Z,X)&&(W===L||a(W,L,n,c,l)))return Z.push(X)})){s=!1;break}}else if(!(W===m||a(W,m,n,c,l))){s=!1;break}}return l.delete(t),l.delete(e),s}function vP(t){var e=-1,n=Array(t.size);return t.forEach(function(c,a){n[++e]=[a,c]}),n}function GP(t){var e=-1,n=Array(t.size);return t.forEach(function(c){n[++e]=c}),n}var YP=1,pP=2,JP="[object Boolean]",fP="[object Date]",MP="[object Error]",NP="[object Map]",zP="[object Number]",RP="[object RegExp]",wP="[object Set]",VP="[object String]",gP="[object Symbol]",CP="[object ArrayBuffer]",jP="[object DataView]",kw=Gl?Gl.prototype:void 0,tv=kw?kw.valueOf:void 0;function AP(t,e,n,c,a,l,r){switch(n){case jP:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case CP:return!(t.byteLength!=e.byteLength||!l(new rm(t),new rm(e)));case JP:case fP:case zP:return as(+t,+e);case MP:return t.name==e.name&&t.message==e.message;case RP:case VP:return t==e+"";case NP:var d=vP;case wP:var o=c&YP;if(d||(d=GP),t.size!=e.size&&!o)return!1;var i=r.get(t);if(i)return i==e;c|=pP,r.set(t,e);var u=xw(d(t),d(e),c,a,l,r);return r.delete(t),u;case gP:if(tv)return tv.call(t)==tv.call(e)}return!1}var OP=1,xP=Object.prototype,kP=xP.hasOwnProperty;function IP(t,e,n,c,a,l){var r=n&OP,d=EX(t),o=d.length,i=EX(e),u=i.length;if(o!=u&&!r)return!1;for(var b=o;b--;){var s=d[b];if(!(r?s in e:kP.call(e,s)))return!1}var Z=l.get(t),W=l.get(e);if(Z&&W)return Z==e&&W==t;var m=!0;l.set(t,e),l.set(e,t);for(var v=r;++b<o;){s=d[b];var L=t[s],X=e[s];if(c)var Y=r?c(X,L,s,e,t,l):c(L,X,s,t,e,l);if(!(Y===void 0?L===X||a(L,X,n,c,l):Y)){m=!1;break}v||(v=s=="constructor")}if(m&&!v){var p=t.constructor,J=e.constructor;p!=J&&"constructor"in t&&"constructor"in e&&!(typeof p=="function"&&p instanceof p&&typeof J=="function"&&J instanceof J)&&(m=!1)}return l.delete(t),l.delete(e),m}var SP=1,Iw="[object Arguments]",Sw="[object Array]",om="[object Object]",FP=Object.prototype,Fw=FP.hasOwnProperty;function HP(t,e,n,c,a,l){var r=Nc(t),d=Nc(e),o=r?Sw:go(t),i=d?Sw:go(e);o=o==Iw?om:o,i=i==Iw?om:i;var u=o==om,b=i==om,s=o==i;if(s&&zo(t)){if(!zo(e))return!1;r=!0,u=!1}if(s&&!u)return l||(l=new _a),r||em(t)?xw(t,e,n,c,a,l):AP(t,e,o,n,c,a,l);if(!(n&SP)){var Z=u&&Fw.call(t,"__wrapped__"),W=b&&Fw.call(e,"__wrapped__");if(Z||W){var m=Z?t.value():t,v=W?e.value():e;return l||(l=new _a),a(m,v,n,c,l)}}return s?(l||(l=new _a),IP(t,e,n,c,a,l)):!1}function ev(t,e,n,c,a){return t===e?!0:t==null||e==null||!Yl(t)&&!Yl(e)?t!==t&&e!==e:HP(t,e,n,c,ev,a)}var TP=1,DP=2;function BP(t,e,n,c){var a=n.length,l=a,r=!c;if(t==null)return!l;for(t=Object(t);a--;){var d=n[a];if(r&&d[2]?d[1]!==t[d[0]]:!(d[0]in t))return!1}for(;++a<l;){d=n[a];var o=d[0],i=t[o],u=d[1];if(r&&d[2]){if(i===void 0&&!(o in t))return!1}else{var b=new _a;if(c)var s=c(i,u,o,t,e,b);if(!(s===void 0?ev(u,i,TP|DP,c,b):s))return!1}}return!0}function Hw(t){return t===t&&!Ka(t)}function QP(t){for(var e=wo(t),n=e.length;n--;){var c=e[n],a=t[c];e[n]=[c,a,Hw(a)]}return e}function Tw(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}function UP(t){var e=QP(t);return e.length==1&&e[0][2]?Tw(e[0][0],e[0][1]):function(n){return n===t||BP(n,t,e)}}function EP(t,e){return t!=null&&e in Object(t)}function PP(t,e,n){e=k3(e,t);for(var c=-1,a=e.length,l=!1;++c<a;){var r=lm(e[c]);if(!(l=t!=null&&n(t,r)))break;t=t[r]}return l||++c!=a?l:(a=t==null?0:t.length,!!a&&IX(a)&&OX(r,a)&&(Nc(t)||rs(t)))}function KP(t,e){return t!=null&&PP(t,e,EP)}var _P=1,$P=2;function qP(t,e){return HX(t)&&Hw(e)?Tw(lm(t),e):function(n){var c=iQ(n,t);return c===void 0&&c===e?KP(n,t):ev(e,c,_P|$P)}}function tK(t){return function(e){return e==null?void 0:e[t]}}function eK(t){return function(e){return I3(e,t)}}function nK(t){return HX(t)?tK(lm(t)):eK(t)}function cK(t){return typeof t=="function"?t:t==null?qW:typeof t=="object"?Nc(t)?qP(t[0],t[1]):UP(t):nK(t)}function aK(t){return function(e,n,c){for(var a=-1,l=Object(e),r=c(e),d=r.length;d--;){var o=r[t?d:++a];if(n(l[o],o,l)===!1)break}return e}}var lK=aK();const nv=lK;function rK(t,e){return t&&nv(t,e,wo)}function iK(t,e){return function(n,c){if(n==null)return n;if(!td(n))return t(n,c);for(var a=n.length,l=e?a:-1,r=Object(n);(e?l--:++l<a)&&c(r[l],l,r)!==!1;);return n}}var dK=iK(rK);const oK=dK;function cv(t,e,n){(n!==void 0&&!as(t[e],n)||n===void 0&&!(e in t))&&xX(t,e,n)}function uK(t){return Yl(t)&&td(t)}function av(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function bK(t){return No(t,nd(t))}function sK(t,e,n,c,a,l,r){var d=av(t,n),o=av(e,n),i=r.get(o);if(i){cv(t,n,i);return}var u=l?l(d,o,n+"",t,e,r):void 0,b=u===void 0;if(b){var s=Nc(o),Z=!s&&zo(o),W=!s&&!Z&&em(o);u=o,s||Z||W?Nc(d)?u=d:uK(d)?u=f3(d):Z?(b=!1,u=hw(o,!0)):W?(b=!1,u=ww(o,!0)):u=[]:ZQ(o)||rs(o)?(u=d,rs(d)?u=bK(d):(!Ka(d)||CX(d))&&(u=Vw(o))):b=!1}b&&(r.set(o,u),a(u,o,c,l,r),r.delete(o)),cv(t,n,u)}function Dw(t,e,n,c,a){t!==e&&nv(e,function(l,r){if(a||(a=new _a),Ka(l))sK(t,e,r,n,Dw,c,a);else{var d=c?c(av(t,r),l,r+"",t,e,a):void 0;d===void 0&&(d=l),cv(t,r,d)}},nd)}function yK(t){return typeof t=="function"?t:qW}function ZK(t,e){return t==null?t:nv(t,yK(e),nd)}var WK="[object Map]",mK="[object Set]",LK=Object.prototype,hK=LK.hasOwnProperty;function Bw(t){if(t==null)return!0;if(td(t)&&(Nc(t)||typeof t=="string"||typeof t.splice=="function"||zo(t)||em(t)||rs(t)))return!t.length;var e=go(t);if(e==WK||e==mK)return!t.size;if(ls(t))return!x3(t).length;for(var n in t)if(hK.call(t,n))return!1;return!0}function XK(t){return t===void 0}var vK=N3(function(t,e,n){Dw(t,e,n)});const Qw=vK;function GK(t,e,n,c,a){return a(t,function(l,r,d){n=c?(c=!1,l):e(n,l,r,d)}),n}function YK(t,e,n){var c=Nc(t)?K3:GK,a=arguments.length<3;return c(t,cK(e),n,a,oK)}var pK=wU(function(t,e,n){return t+(n?" ":"")+P3(e)});const Uw=pK;class JK extends ns{}class fK extends ns{}class MK extends ns{constructor(){super(...arguments);bt(this,"data")}}class NK extends ns{}const zK={Property:MK,Container:MB,Event:JK,Module:fK,Style:NK};class RK{constructor(){bt(this,"annotationType","Module");bt(this,"autoName",!0)}}class Ew{constructor(){bt(this,"annotation");bt(this,"options",new RK)}get valued(){return this.setup({valued:!0})}get localize(){return this.setup({localizable:!0})}get notLocalize(){return this.setup({localizable:!1})}named(e){return this.setup({name:e})}hinted(e){return this.setup({hint:e})}calculable(e){return this.setup({calculable:e})}setup(e){const{annotationType:n,autoName:c,...a}=e,l=this.clone();return l.options.annotationType=n??l.options.annotationType,l.options.autoName=c??l.options.autoName,ed(l.annotation,a),l}clone(){const e=qX(this);return e.options=qX(this.options),e.annotation=qX(this.annotation),e.annotation??(e.annotation={}),e}build(e){const n=this.getName(e),c=new zK[this.options.annotationType](e,n);return ed(c,this.annotation),c}withEditorProps(e){const n=this.clone();return ed(n.annotation,{editorProps:e}),n}getName(e){return this.annotation.name??(this.options.autoName?Uw(e):e)}}class lv extends Ew{get required(){return this.setup({required:!0})}default(e){return this.setup({default:e})}validated(e,n){return this.setup({validator:e,errorMap:n})}}class um extends lv{constructor(){super(...arguments);bt(this,"subType")}get ofString(){const n=new um().setup({...this.options,...this.annotation,type:"array",editor:"arrayOfString"});return n.subType="string",n}get ofObject(){const n=new um().setup({...this.options,...this.annotation,type:"array"});return n.subType="object",n}}class Pw extends lv{constructor(){super(...arguments);bt(this,"values");bt(this,"labels")}get required(){return super.required}labeled(...n){const c=this.clone();return c.labels=n,c}build(n){const c=super.build(n);return c.data=this.values.map((a,l)=>{var d;return{label:((d=this.labels)==null?void 0:d[l])??Uw(a.toString()),value:a}}),c}default(n){return this.setup({default:n})}}class wK extends Pw{radio(){return this.setup({editor:"radio"})}default(e){return super.default(e)}}class VK extends Pw{default(e){return super.default(e)}}const fL=class fL extends Ew{constructor(e){super(),this.annotation={editor:e}}get array(){return new um().setup({...this.options,...this.annotation,type:"array"})}typed(e){return new lv().setup({...this.options,...this.annotation,type:e})}oneOf(...e){const n=new wK().setup({...this.options,...this.annotation,type:"enum"});return n.values=e,n}someOf(...e){const n=new VK().setup({...this.options,...this.annotation,type:"enum"});return n.values=e,n}};bt(fL,"create",e=>new fL(e));let bm=fL;const pl=bm.create;function Ma(t){return pl(t).setup({annotationType:"Property"})}function Kw(t){return t.reduce((e,n)=>(e[n.key]=n.default,e),{})}function sm(t){return{any:{object:Kw(t)}}}class gK extends bm{constructor(e){super(e)}withSlotConditionBuilder(e){return this.setup({slotConditionBuilder:e})}}function CK(t){return new gK(t)}const jK=(t,e)=>e.reduceScreen((n,c)=>c.key===t?n+1:n,0)===1;pl("key").typed("string").required.hinted("Unique component key").calculable(!1).validated(jK,{code:"unique_key",message:"The key must be unique!"}).build("key");const AK=pl("htmlAttributes"),OK=pl("validation"),Tt=Ma("string").typed("string").localize,Ht=Ma("boolean").typed("boolean"),yc=Ma("number").typed("number"),xK=Ma("size").typed("string"),us=Ma("date").typed("date"),nr=Ma("array").array,Co=Ma("color").typed("string");pl("tooltipType").typed("string");const jo=pl("size").setup({calculable:!1}),_w=pl("color").setup({calculable:!1});Ma("string").calculable(!0).build("className");const Kt=pl("event").setup({annotationType:"Event"}),Zc=CK("node").setup({annotationType:"Container"}),De=Ma("oneOf").oneOf.bind(Ma("oneOf")),kK=Ma("someOf").someOf.bind(Ma("someOf")),IK=pl("tooltipProps"),SK=pl("renderWhen").typed("boolean"),ym={width:jo.setup({default:"100%"}),height:jo,marginTop:jo,marginRight:jo,marginBottom:jo,marginLeft:jo,color:_w,backgroundColor:_w},Zm={flexDirection:De("column","row","column-reverse","row-reverse"),gap:xK,alignItems:De("start","center","baseline","end","stretch"),justifyContent:De("flex-start","flex-end","center","space-between","space-around","space-evenly","start","end","left","right"),flexWrap:De("wrap","nowrap","wrap-reverse")},$w=(async function(){}).constructor;class Na{constructor(e,n,c={}){this.func=e,this.body=n,this.params=c}static functionalAction(e,n={}){return new Na(e,void 0,n)}static sourceAction(e,n={}){const c=$w("e, args",e);return new Na(c,e,n)}static createFromObject(e){return Na.sourceAction(e.body,e.params)}}const FK=t=>{const e={};return t&&Object.keys(t).forEach(n=>{const c=t[n];e[n]=Na.createFromObject(c)}),e},rv="onDidMount",iv="onWillUnmount";function HK(t){return new Proxy(t,{get(e,n){return n==="toJSON"?()=>e.data:e.data[n]},set(e,n,c){var a;return(a=e.fields.get(n))==null||a.setValue(c),!0}})}class dv{constructor(e,n,c,a,l){Nn(this,Vy,void 0);bt(this,"renderedProps");bt(this,"setUserDefinedProps",e=>{this.sender.userDefinedProps=e});Nn(this,gy,e=>!!(e&&e.target&&e.type&&e.preventDefault));Nn(this,ML,e=>!se(this,gy).call(this,e));this.type=e,this.sender=n,this.store=c,this.args=a,this.renderedProps=l.get,dl(this,Vy,HK(this.store.formData))}get event(){return this.args.find(se(this,gy))}get value(){return this.args.filter(e=>typeof e<"u").find(se(this,ML))}get data(){return se(this,Vy)}}Vy=new WeakMap,gy=new WeakMap,ML=new WeakMap;const ov=[IK.build("tooltipProps"),SK.build("renderWhen"),AK.build("htmlAttributes"),OK.build("validation"),Kt.build(rv),Kt.build(iv)];class bs{constructor(e,n,c,a,l,r,d,o="component"){this.type=e,this.properties=n,this.css=c,this.wrapperCss=a,this.modules=l,this.customPreview=r,this.valuedAn=d,this.kind=o}}const qw=Symbol("key");function tV(t,e,n={}){return eV("autorun",t,e,n)}function cr(t,e={}){return eV("observable",t,void 0,e)}function eV(t,e,n,c={}){const a=Object.keys(c).map(l=>`${l}=${c[l]}`).join("_");return`${t}_${e}_${n?`${n}_`:""}${a}`}let nV=0;function cV(t){t[qw]||(++nV,t[qw]=`actionData_${nV}`)}function aV(t){var n;const e=t.events;e&&Object.values(e).forEach(c=>c.forEach(cV)),(n=t.children)==null||n.forEach(aV)}function Wm(t){return(t==null?void 0:t.computeType)==="function"}function lV(t){return(t==null?void 0:t.computeType)==="localization"}class ar{constructor(e,n){bt(this,"key","");bt(this,"type","");bt(this,"props",{});bt(this,"css");bt(this,"wrapperCss");bt(this,"events");bt(this,"children");bt(this,"schema");bt(this,"htmlAttributes");bt(this,"tooltipProps");bt(this,"slot");bt(this,"slotCondition");bt(this,"renderWhen");this.key=e,this.type=n,Nr(this,void 0,{name:cr("ComponentStore",{key:e})})}static createFromObject(e){const n=ed(new ar(e.key,e.type),e);return aV(n),n}static addEventHandler(e,n,c){var a;cV(c),e.events??(e.events={}),(a=e.events)[n]??(a[n]=[]),e.events[n].push(c)}}function rV(t){return typeof t=="string"}function TK(t){return typeof t=="number"}function uv(t){return typeof t=="object"&&typeof t.then=="function"}function DK(t){return typeof t=="object"}function Qc(t,e){const n=m3(e);return n.displayName=t,n}new ar("","");const zc=t=>t.replace(new RegExp(" ","g"),"_"),BK=t=>typeof t=="string"||typeof t=="number"||t instanceof Date?!0:typeof(t==null?void 0:t.value)<"u",QK=t=>{const e={};for(const[n,c]of Object.entries(t))BK(c)&&(e[zc(n)]=c);return e};function ss(t){const e=G.createContext(null);e.displayName=t;const n=UK(e),c=EK(e);return[n,c,e]}function UK(t){return()=>{const e=G.useContext(t);if(!e)throw new Error(`The context ${t.displayName} didn't found!`);return e}}function EK(t){return t.Provider}class iV{constructor(){bt(this,"handlers",[])}subscribe(e){this.handlers.push(e)}unsubscribe(e){this.handlers=this.handlers.filter(n=>n!==e)}get isSubscribed(){return this.handlers.length>0}invoke(e,n){this.handlers.slice().forEach(c=>c(e,n))}dispose(){this.handlers=[]}}function bv(t,e){var n;e(t),(n=t.children)==null||n.forEach(c=>bv(c,e))}let PK=0;function KK(t){return`${t}_${++PK}`}class _K{constructor(e,n){this.oldKey=e,this.newKey=n}}class $K{constructor(){bt(this,"onAfterKeyChanged",new iV);bt(this,"onBeforeDelete",new iV)}dispose(){this.onAfterKeyChanged.dispose(),this.onBeforeDelete.dispose()}}class qK{constructor(e,n,c,a,l){Nn(this,Cy,void 0);Nn(this,al,void 0);Nn(this,Xi,void 0);bt(this,"_state",{});bt(this,"id");bt(this,"store");bt(this,"model");bt(this,"field");bt(this,"parent");bt(this,"children",[]);bt(this,"userDefinedProps");bt(this,"validating",!1);var d;this.store=e,this.model=n,this.field=c,this.id=KK(this.model.type),dl(this,Xi,l),(d=e.children)==null||d.forEach(o=>{a(o).setParent(this)}),Nr(this,void 0,{name:cr("ComponentData",{key:e.key})}),dl(this,Cy,[(()=>wT(()=>this.key,(o,i)=>{this.invokeOnAfterKeyChanged(this,new _K(i,o))}))()])}setParent(e){var n;(n=this.parent)==null||n.removeChild(this),e.addChild(this),this.parent=e}insertAfterMe(e){this.insert(e,"after")}insertBeforeMe(e){this.insert(e,"before")}get state(){return this._state}get key(){return this.store.key}get events(){return se(this,al)||dl(this,al,new $K),se(this,al)}findByKey(e){if(this.key===e)return this;for(let n=0;n<this.children.length;n++){const a=this.children[n].findByKey(e);if(a)return a}}unifyKeys(e){const n=new Map,c=[];return bv(e,({key:a})=>{c.push(a)}),bv(this,a=>{let l=1;const r=()=>`${a.store.type} ${l}`;for(;c.includes(r());)l++;const d=r();n.set(d,a.key),a.store.key=d,c.push(d)}),n}get fields(){return this.collectAllFields(new Map)}delete(){var n;(n=this.parent)==null||n.removeChild(this);const e=this.collectAllNodesAsArray([]);this.invokeOnBeforeDeleted(e),this.disposeNodes(e)}get data(){const e={};for(const[n,c]of this.fields)if(c.storeDataInParentForm){const a=c.value||{};Object.keys(a).forEach(l=>e[l]=a[l])}else e[n]=c.value;return e}get fluentData(){const e=t_(this);return QK(e)}get errors(){const e={};for(const[n,c]of this.fields){c.error&&(e[n]=c.error);const a=c.errors;a&&c.storeDataInParentForm&&Object.keys(a).forEach(l=>e[l]=a[l]),a&&!c.storeDataInParentForm&&Object.keys(a).length>0&&(e[n]=a)}return e}get hasErrors(){return Object.keys(this.errors).length>0}setAllErrors(e){this.fields.forEach(n=>n.error=e)}async validate(){this.validating=!0;try{if(await Promise.allSettled([...this.fields.values()].map(a=>a.validate())),!se(this,Xi))return;const e=this.fields,n=se(this,Xi).map(a=>a(this.data));(await Promise.allSettled(n)).map(a=>{if(a.status==="rejected"){console.error(a.reason);return}return a.value}).forEach(a=>{a&&e.forEach((l,r)=>{if(a[r])return l.setError(a[r]);if(l.storeDataInParentForm)return l.setError(a)})})}finally{this.validating=!1}}async getValidationResult(){let e;const n=async([l,r])=>{const d=await r.getValidationResult();if(Bw(d))return;e??(e={});let o=e;if(!r.storeDataInParentForm){const i=Nc(d)?[]:{};e[l]??(e[l]=i),o=e[l]}Qw(o,d)},c=[...this.fields.entries()];if(await Promise.allSettled(c.map(n)),!se(this,Xi))return e;const a=async l=>{const r=await l(this.data);Bw(r)||(e??(e={}),Qw(e,r))};return await Promise.allSettled(se(this,Xi).map(a)),e}get isValidating(){return this.validating}reset(){this.fields.forEach(e=>e.reset())}clear(){this.fields.forEach(e=>e.clear())}dispose(){const e=this.collectAllNodesAsArray([]);this.disposeNodes(e)}get isRoot(){return!this.parent}insert(e,n){var o,i;const c=n==="before"?0:1;if(!this.parent)throw new Error(`Cannot insert without parent. Key = ${this.key}`);(o=e.parent)==null||o.removeChild(e),e.parent=this.parent;const a=this.parent.children,l=a.indexOf(this);if(l<0)throw new Error(`Cannot insert not existing element into ComponentData. Key = ${this.key}`);a.splice(l+c,0,e),(i=this.parent.store).children??(i.children=[]);const r=this.parent.store.children,d=r.indexOf(this.store);if(d<0)throw new Error(`Cannot insert not existing element into ComponentStore. Key = ${this.key}`);r.splice(d+c,0,e.store),e.store.slot=this.store.slot,e.store.slotCondition=this.store.slotCondition}disposeNodes(e){e.forEach(n=>{var c,a;(c=se(n,al))==null||c.dispose(),se(n,Cy).forEach(l=>l()),(a=n.field)==null||a.dispose(),n.parent=void 0,n.children=[]})}collectAllNodesAsArray(e){e.push(this);for(let n=0;n<this.children.length;n++)this.children[n].collectAllNodesAsArray(e);return e}collectAllFields(e){this.field&&e.set(this.key,this.field);for(let n=0;n<this.children.length;n++)this.children[n].collectAllFields(e);return e}addChild(e){var n;this.children.indexOf(e)<0&&this.children.push(e),(n=this.store).children??(n.children=[]),this.store.children.indexOf(e.store)<0&&this.store.children.push(e.store)}removeChild(e){var a;const n=this.children.indexOf(e);n>-1&&this.children.splice(n,1),(a=this.store).children??(a.children=[]);const c=this.store.children.indexOf(e.store);c>-1&&this.store.children.splice(c,1)}invokeOnAfterKeyChanged(e,n){var c,a;(c=se(this,al))!=null&&c.onAfterKeyChanged.isSubscribed&&se(this,al).onAfterKeyChanged.invoke(e,n),(a=this.parent)==null||a.invokeOnAfterKeyChanged(e,n)}invokeOnBeforeDeleted(e){var n,c;(n=se(this,al))!=null&&n.onBeforeDelete.isSubscribed&&e.forEach(a=>{var l;return(l=se(this,al))==null?void 0:l.onBeforeDelete.invoke(a,void 0)}),(c=this.parent)==null||c.invokeOnBeforeDeleted(e)}}Cy=new WeakMap,al=new WeakMap,Xi=new WeakMap;const t_=t=>{const e={};return t.fields.forEach((n,c)=>{e[c]=t.data[c]??""}),e},[lr,dV]=ss("ComponentDataContext"),[za,sv,e_]=ss("StoreContext"),[ld,oV]=ss("FormViewerPropsContext");function mm(t,e={}){return YK(t,(n,c,a)=>{var l;return n.push(((l=c==null?void 0:c.setup(e))==null?void 0:l.build(a))??Tt.setup(e).build(a)),n},[])}function Lm(t){return mm(t,{annotationType:"Style",calculable:!1})}function n_(t){const e=G.useRef(!1),[n,c]=G.useState(t);G.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]);const a=G.useCallback(l=>{e.current&&c(l)},[]);return G.useMemo(()=>[n,a],[n,a])}const c_=new Date(1718368265917),uV=":",bV="-",a_=`MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEJDKWHzXT9YZw7WDJy4wr/VMXBf+/afNB
53
53
  ppCLv1zZFVUQEmDRPhGC5nKux3WQcrtfl18iNFfISjcqN5vplR/kcAvIJd07tacn
54
54
  y1l39NGbMLIoPVzPY6GXTNzQpxRbGn99`;function sV(t){const e=window.atob(t),n=new Uint8Array(e.length);for(let c=0;c<e.length;c++)n[c]=e.charCodeAt(c);return n.buffer}function l_(t){return window.crypto.subtle.importKey("spki",sV(t),{name:"ECDSA",namedCurve:"P-384"},!0,["verify"])}async function r_(t,e,n){if(!window.crypto.subtle)return;const c=await l_(n),a=new TextEncoder().encode(t);return await window.crypto.subtle.verify({name:"ECDSA",hash:{name:"SHA-384"}},c,e,a)}function i_(t,e){const{licenseEndDate:n,restrictions:c,companyName:a}=JSON.parse(e)??{};if(t!==a)return!1;const l=n.split(".");if(l.length!==3)return!1;const r=`${l[2]}-${l[0]}-${l[1]}`,d=new Date(r),o=new Date;return c.StrictCheck===!0&&d<o?!1:d>c_}async function d_(t){if(t)try{let e=t.indexOf(bV);if(e===-1)return!1;const n=t.slice(0,e),c=t.slice(e+bV.length);if(e=c.indexOf(uV),e===-1)return!1;const a=window.atob(c.slice(0,e)),l=sV(c.slice(e+uV.length));return await r_(a,l,a_)?i_(n,a):!1}catch{return!1}}const o_=()=>{const{licenseKey:t}=ld(),[e,n]=n_(!0);return G.useEffect(()=>{d_(t).then(c=>{n(!!c)})},[t,n]),at("div",{children:!e&&at(u_,{children:pn(b_,{children:["This is a trial version of the product. To purchase a license, go to ",at("a",{href:"https://formengine.io/pricing",children:"https://formengine.io/pricing"})]})})})},u_=ln.div`
55
55
  display: flex;
@@ -84,7 +84,7 @@ Error generating stack: `+l.message+`
84
84
  height: 100%;
85
85
  `,mV=([t,...e],n,c)=>t?at(t,{language:n,children:mV(e,n,c)}):c,L_=({children:t})=>{const[e]=G.useState(window.onerror);return G.useEffect(()=>(window.onerror=n=>{if((n==null?void 0:n.toString().search("ResizeObserver"))!==-1){const c=document.getElementById("webpack-dev-server-client-overlay-div"),a=document.getElementById("webpack-dev-server-client-overlay");return a&&a.setAttribute("style","display: none"),c&&c.setAttribute("style","display: none"),!0}return!1},()=>{window.onerror=e}),[e]),at(Yc,{children:t})};var Zv=function(t,e){return Zv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,c){n.__proto__=c}||function(n,c){for(var a in c)Object.prototype.hasOwnProperty.call(c,a)&&(n[a]=c[a])},Zv(t,e)};function $r(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Zv(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function h_(t,e,n,c){function a(l){return l instanceof n?l:new n(function(r){r(l)})}return new(n||(n=Promise))(function(l,r){function d(u){try{i(c.next(u))}catch(b){r(b)}}function o(u){try{i(c.throw(u))}catch(b){r(b)}}function i(u){u.done?l(u.value):a(u.value).then(d,o)}i((c=c.apply(t,e||[])).next())})}function LV(t,e){var n={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},c,a,l,r;return r={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(r[Symbol.iterator]=function(){return this}),r;function d(i){return function(u){return o([i,u])}}function o(i){if(c)throw new TypeError("Generator is already executing.");for(;r&&(r=0,i[0]&&(n=0)),n;)try{if(c=1,a&&(l=i[0]&2?a.return:i[0]?a.throw||((l=a.return)&&l.call(a),0):a.next)&&!(l=l.call(a,i[1])).done)return l;switch(a=0,l&&(i=[i[0]&2,l.value]),i[0]){case 0:case 1:l=i;break;case 4:return n.label++,{value:i[1],done:!1};case 5:n.label++,a=i[1],i=[0];continue;case 7:i=n.ops.pop(),n.trys.pop();continue;default:if(l=n.trys,!(l=l.length>0&&l[l.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!l||i[1]>l[0]&&i[1]<l[3])){n.label=i[1];break}if(i[0]===6&&n.label<l[1]){n.label=l[1],l=i;break}if(l&&n.label<l[2]){n.label=l[2],n.ops.push(i);break}l[2]&&n.ops.pop(),n.trys.pop();continue}i=e.call(t,n)}catch(u){i=[6,u],a=0}finally{c=l=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}}function Ao(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],c=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&c>=t.length&&(t=void 0),{value:t&&t[c++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Oo(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var c=n.call(t),a,l=[],r;try{for(;(e===void 0||e-- >0)&&!(a=c.next()).done;)l.push(a.value)}catch(d){r={error:d}}finally{try{a&&!a.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}return l}function xo(t,e,n){if(n||arguments.length===2)for(var c=0,a=e.length,l;c<a;c++)(l||!(c in e))&&(l||(l=Array.prototype.slice.call(e,0,c)),l[c]=e[c]);return t.concat(l||Array.prototype.slice.call(e))}function ko(t){return this instanceof ko?(this.v=t,this):new ko(t)}function X_(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var c=n.apply(t,e||[]),a,l=[];return a={},r("next"),r("throw"),r("return"),a[Symbol.asyncIterator]=function(){return this},a;function r(s){c[s]&&(a[s]=function(Z){return new Promise(function(W,m){l.push([s,Z,W,m])>1||d(s,Z)})})}function d(s,Z){try{o(c[s](Z))}catch(W){b(l[0][3],W)}}function o(s){s.value instanceof ko?Promise.resolve(s.value.v).then(i,u):b(l[0][2],s)}function i(s){d("next",s)}function u(s){d("throw",s)}function b(s,Z){s(Z),l.shift(),l.length&&d(l[0][0],l[0][1])}}function v_(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof Ao=="function"?Ao(t):t[Symbol.iterator](),n={},c("next"),c("throw"),c("return"),n[Symbol.asyncIterator]=function(){return this},n);function c(l){n[l]=t[l]&&function(r){return new Promise(function(d,o){r=t[l](r),a(d,o,r.done,r.value)})}}function a(l,r,d,o){Promise.resolve(o).then(function(i){l({value:i,done:d})},r)}}function Un(t){return typeof t=="function"}function hV(t){var e=function(c){Error.call(c),c.stack=new Error().stack},n=t(e);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Wv=hV(function(t){return function(n){t(this),this.message=n?n.length+` errors occurred during unsubscription:
86
86
  `+n.map(function(c,a){return a+1+") "+c.toString()}).join(`
87
- `):"",this.name="UnsubscriptionError",this.errors=n}});function hm(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var ys=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,n,c,a,l;if(!this.closed){this.closed=!0;var r=this._parentage;if(r)if(this._parentage=null,Array.isArray(r))try{for(var d=Ao(r),o=d.next();!o.done;o=d.next()){var i=o.value;i.remove(this)}}catch(m){e={error:m}}finally{try{o&&!o.done&&(n=d.return)&&n.call(d)}finally{if(e)throw e.error}}else r.remove(this);var u=this.initialTeardown;if(Un(u))try{u()}catch(m){l=m instanceof Wv?m.errors:[m]}var b=this._finalizers;if(b){this._finalizers=null;try{for(var s=Ao(b),Z=s.next();!Z.done;Z=s.next()){var W=Z.value;try{GV(W)}catch(m){l=l??[],m instanceof Wv?l=xo(xo([],Oo(l)),Oo(m.errors)):l.push(m)}}}catch(m){c={error:m}}finally{try{Z&&!Z.done&&(a=s.return)&&a.call(s)}finally{if(c)throw c.error}}}if(l)throw new Wv(l)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)GV(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(e)}},t.prototype._hasParent=function(e){var n=this._parentage;return n===e||Array.isArray(n)&&n.includes(e)},t.prototype._addParent=function(e){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e},t.prototype._removeParent=function(e){var n=this._parentage;n===e?this._parentage=null:Array.isArray(n)&&hm(n,e)},t.prototype.remove=function(e){var n=this._finalizers;n&&hm(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),XV=ys.EMPTY;function vV(t){return t instanceof ys||t&&"closed"in t&&Un(t.remove)&&Un(t.add)&&Un(t.unsubscribe)}function GV(t){Un(t)?t():t.unsubscribe()}var YV={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},mv={setTimeout:function(t,e){for(var n=[],c=2;c<arguments.length;c++)n[c-2]=arguments[c];var a=mv.delegate;return a!=null&&a.setTimeout?a.setTimeout.apply(a,xo([t,e],Oo(n))):setTimeout.apply(void 0,xo([t,e],Oo(n)))},clearTimeout:function(t){var e=mv.delegate;return((e==null?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function pV(t){mv.setTimeout(function(){throw t})}function JV(){}function Xm(t){t()}var Lv=function(t){$r(e,t);function e(n){var c=t.call(this)||this;return c.isStopped=!1,n?(c.destination=n,vV(n)&&n.add(c)):c.destination=J_,c}return e.create=function(n,c,a){return new Xv(n,c,a)},e.prototype.next=function(n){this.isStopped||this._next(n)},e.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(n){this.destination.next(n)},e.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(ys),G_=Function.prototype.bind;function hv(t,e){return G_.call(t,e)}var Y_=function(){function t(e){this.partialObserver=e}return t.prototype.next=function(e){var n=this.partialObserver;if(n.next)try{n.next(e)}catch(c){vm(c)}},t.prototype.error=function(e){var n=this.partialObserver;if(n.error)try{n.error(e)}catch(c){vm(c)}else vm(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(n){vm(n)}},t}(),Xv=function(t){$r(e,t);function e(n,c,a){var l=t.call(this)||this,r;if(Un(n)||!n)r={next:n??void 0,error:c??void 0,complete:a??void 0};else{var d;l&&YV.useDeprecatedNextContext?(d=Object.create(n),d.unsubscribe=function(){return l.unsubscribe()},r={next:n.next&&hv(n.next,d),error:n.error&&hv(n.error,d),complete:n.complete&&hv(n.complete,d)}):r=n}return l.destination=new Y_(r),l}return e}(Lv);function vm(t){pV(t)}function p_(t){throw t}var J_={closed:!0,next:JV,error:p_,complete:JV},vv=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function f_(t){return t}function M_(t){return t.length===0?f_:t.length===1?t[0]:function(n){return t.reduce(function(c,a){return a(c)},n)}}var qr=function(){function t(e){e&&(this._subscribe=e)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(e,n,c){var a=this,l=z_(e)?e:new Xv(e,n,c);return Xm(function(){var r=a,d=r.operator,o=r.source;l.add(d?d.call(l,o):o?a._subscribe(l):a._trySubscribe(l))}),l},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(n){e.error(n)}},t.prototype.forEach=function(e,n){var c=this;return n=fV(n),new n(function(a,l){var r=new Xv({next:function(d){try{e(d)}catch(o){l(o),r.unsubscribe()}},error:l,complete:a});c.subscribe(r)})},t.prototype._subscribe=function(e){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(e)},t.prototype[vv]=function(){return this},t.prototype.pipe=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return M_(e)(this)},t.prototype.toPromise=function(e){var n=this;return e=fV(e),new e(function(c,a){var l;n.subscribe(function(r){return l=r},function(r){return a(r)},function(){return c(l)})})},t.create=function(e){return new t(e)},t}();function fV(t){var e;return(e=t??YV.Promise)!==null&&e!==void 0?e:Promise}function N_(t){return t&&Un(t.next)&&Un(t.error)&&Un(t.complete)}function z_(t){return t&&t instanceof Lv||N_(t)&&vV(t)}function R_(t){return Un(t==null?void 0:t.lift)}function Io(t){return function(e){if(R_(e))return e.lift(function(n){try{return t(n,this)}catch(c){this.error(c)}});throw new TypeError("Unable to lift unknown Observable type")}}function ti(t,e,n,c,a){return new w_(t,e,n,c,a)}var w_=function(t){$r(e,t);function e(n,c,a,l,r,d){var o=t.call(this,n)||this;return o.onFinalize=r,o.shouldUnsubscribe=d,o._next=c?function(i){try{c(i)}catch(u){n.error(u)}}:t.prototype._next,o._error=l?function(i){try{l(i)}catch(u){n.error(u)}finally{this.unsubscribe()}}:t.prototype._error,o._complete=a?function(){try{a()}catch(i){n.error(i)}finally{this.unsubscribe()}}:t.prototype._complete,o}return e.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var c=this.closed;t.prototype.unsubscribe.call(this),!c&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},e}(Lv),V_=hV(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Gv=function(t){$r(e,t);function e(){var n=t.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return e.prototype.lift=function(n){var c=new MV(this,this);return c.operator=n,c},e.prototype._throwIfClosed=function(){if(this.closed)throw new V_},e.prototype.next=function(n){var c=this;Xm(function(){var a,l;if(c._throwIfClosed(),!c.isStopped){c.currentObservers||(c.currentObservers=Array.from(c.observers));try{for(var r=Ao(c.currentObservers),d=r.next();!d.done;d=r.next()){var o=d.value;o.next(n)}}catch(i){a={error:i}}finally{try{d&&!d.done&&(l=r.return)&&l.call(r)}finally{if(a)throw a.error}}}})},e.prototype.error=function(n){var c=this;Xm(function(){if(c._throwIfClosed(),!c.isStopped){c.hasError=c.isStopped=!0,c.thrownError=n;for(var a=c.observers;a.length;)a.shift().error(n)}})},e.prototype.complete=function(){var n=this;Xm(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var c=n.observers;c.length;)c.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(n){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,n)},e.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},e.prototype._innerSubscribe=function(n){var c=this,a=this,l=a.hasError,r=a.isStopped,d=a.observers;return l||r?XV:(this.currentObservers=null,d.push(n),new ys(function(){c.currentObservers=null,hm(d,n)}))},e.prototype._checkFinalizedStatuses=function(n){var c=this,a=c.hasError,l=c.thrownError,r=c.isStopped;a?n.error(l):r&&n.complete()},e.prototype.asObservable=function(){var n=new qr;return n.source=this,n},e.create=function(n,c){return new MV(n,c)},e}(qr),MV=function(t){$r(e,t);function e(n,c){var a=t.call(this)||this;return a.destination=n,a.source=c,a}return e.prototype.next=function(n){var c,a;(a=(c=this.destination)===null||c===void 0?void 0:c.next)===null||a===void 0||a.call(c,n)},e.prototype.error=function(n){var c,a;(a=(c=this.destination)===null||c===void 0?void 0:c.error)===null||a===void 0||a.call(c,n)},e.prototype.complete=function(){var n,c;(c=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||c===void 0||c.call(n)},e.prototype._subscribe=function(n){var c,a;return(a=(c=this.source)===null||c===void 0?void 0:c.subscribe(n))!==null&&a!==void 0?a:XV},e}(Gv),NV={now:function(){return(NV.delegate||Date).now()},delegate:void 0},g_=function(t){$r(e,t);function e(n,c){return t.call(this)||this}return e.prototype.schedule=function(n,c){return this},e}(ys),Gm={setInterval:function(t,e){for(var n=[],c=2;c<arguments.length;c++)n[c-2]=arguments[c];var a=Gm.delegate;return a!=null&&a.setInterval?a.setInterval.apply(a,xo([t,e],Oo(n))):setInterval.apply(void 0,xo([t,e],Oo(n)))},clearInterval:function(t){var e=Gm.delegate;return((e==null?void 0:e.clearInterval)||clearInterval)(t)},delegate:void 0},C_=function(t){$r(e,t);function e(n,c){var a=t.call(this,n,c)||this;return a.scheduler=n,a.work=c,a.pending=!1,a}return e.prototype.schedule=function(n,c){var a;if(c===void 0&&(c=0),this.closed)return this;this.state=n;var l=this.id,r=this.scheduler;return l!=null&&(this.id=this.recycleAsyncId(r,l,c)),this.pending=!0,this.delay=c,this.id=(a=this.id)!==null&&a!==void 0?a:this.requestAsyncId(r,this.id,c),this},e.prototype.requestAsyncId=function(n,c,a){return a===void 0&&(a=0),Gm.setInterval(n.flush.bind(n,this),a)},e.prototype.recycleAsyncId=function(n,c,a){if(a===void 0&&(a=0),a!=null&&this.delay===a&&this.pending===!1)return c;c!=null&&Gm.clearInterval(c)},e.prototype.execute=function(n,c){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var a=this._execute(n,c);if(a)return a;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(n,c){var a=!1,l;try{this.work(n)}catch(r){a=!0,l=r||new Error("Scheduled action threw falsy error")}if(a)return this.unsubscribe(),l},e.prototype.unsubscribe=function(){if(!this.closed){var n=this,c=n.id,a=n.scheduler,l=a.actions;this.work=this.state=this.scheduler=null,this.pending=!1,hm(l,this),c!=null&&(this.id=this.recycleAsyncId(a,c,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(g_),zV=function(){function t(e,n){n===void 0&&(n=t.now),this.schedulerActionCtor=e,this.now=n}return t.prototype.schedule=function(e,n,c){return n===void 0&&(n=0),new this.schedulerActionCtor(this,e).schedule(c,n)},t.now=NV.now,t}(),j_=function(t){$r(e,t);function e(n,c){c===void 0&&(c=zV.now);var a=t.call(this,n,c)||this;return a.actions=[],a._active=!1,a}return e.prototype.flush=function(n){var c=this.actions;if(this._active){c.push(n);return}var a;this._active=!0;do if(a=n.execute(n.state,n.delay))break;while(n=c.shift());if(this._active=!1,a){for(;n=c.shift();)n.unsubscribe();throw a}},e}(zV),A_=new j_(C_),O_=function(t){return t&&typeof t.length=="number"&&typeof t!="function"};function x_(t){return Un(t==null?void 0:t.then)}function k_(t){return Un(t[vv])}function I_(t){return Symbol.asyncIterator&&Un(t==null?void 0:t[Symbol.asyncIterator])}function S_(t){return new TypeError("You provided "+(t!==null&&typeof t=="object"?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function F_(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var H_=F_();function T_(t){return Un(t==null?void 0:t[H_])}function D_(t){return X_(this,arguments,function(){var n,c,a,l;return LV(this,function(r){switch(r.label){case 0:n=t.getReader(),r.label=1;case 1:r.trys.push([1,,9,10]),r.label=2;case 2:return[4,ko(n.read())];case 3:return c=r.sent(),a=c.value,l=c.done,l?[4,ko(void 0)]:[3,5];case 4:return[2,r.sent()];case 5:return[4,ko(a)];case 6:return[4,r.sent()];case 7:return r.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function B_(t){return Un(t==null?void 0:t.getReader)}function Ym(t){if(t instanceof qr)return t;if(t!=null){if(k_(t))return Q_(t);if(O_(t))return U_(t);if(x_(t))return E_(t);if(I_(t))return RV(t);if(T_(t))return P_(t);if(B_(t))return K_(t)}throw S_(t)}function Q_(t){return new qr(function(e){var n=t[vv]();if(Un(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function U_(t){return new qr(function(e){for(var n=0;n<t.length&&!e.closed;n++)e.next(t[n]);e.complete()})}function E_(t){return new qr(function(e){t.then(function(n){e.closed||(e.next(n),e.complete())},function(n){return e.error(n)}).then(null,pV)})}function P_(t){return new qr(function(e){var n,c;try{for(var a=Ao(t),l=a.next();!l.done;l=a.next()){var r=l.value;if(e.next(r),e.closed)return}}catch(d){n={error:d}}finally{try{l&&!l.done&&(c=a.return)&&c.call(a)}finally{if(n)throw n.error}}e.complete()})}function RV(t){return new qr(function(e){__(t,e).catch(function(n){return e.error(n)})})}function K_(t){return RV(D_(t))}function __(t,e){var n,c,a,l;return h_(this,void 0,void 0,function(){var r,d;return LV(this,function(o){switch(o.label){case 0:o.trys.push([0,5,6,11]),n=v_(t),o.label=1;case 1:return[4,n.next()];case 2:if(c=o.sent(),!!c.done)return[3,4];if(r=c.value,e.next(r),e.closed)return[2];o.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return d=o.sent(),a={error:d},[3,11];case 6:return o.trys.push([6,,9,10]),c&&!c.done&&(l=n.return)?[4,l.call(n)]:[3,8];case 7:o.sent(),o.label=8;case 8:return[3,10];case 9:if(a)throw a.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function $_(t,e,n,c,a){c===void 0&&(c=0),a===void 0&&(a=!1);var l=e.schedule(function(){n(),a?t.add(this.schedule(null,c)):this.unsubscribe()},c);if(t.add(l),!a)return l}function Yv(t,e){return Io(function(n,c){var a=0;n.subscribe(ti(c,function(l){c.next(t.call(e,l,a++))}))})}function q_(t,e,n,c,a,l,r,d){var o=[],i=0,u=0,b=!1,s=function(){b&&!o.length&&!i&&e.complete()},Z=function(m){return i<c?W(m):o.push(m)},W=function(m){l&&e.next(m),i++;var v=!1;Ym(n(m,u++)).subscribe(ti(e,function(L){a==null||a(L),l?Z(L):e.next(L)},function(){v=!0},void 0,function(){if(v)try{i--;for(var L=function(){var X=o.shift();r?$_(e,r,function(){return W(X)}):W(X)};o.length&&i<c;)L();s()}catch(X){e.error(X)}}))};return t.subscribe(ti(e,Z,function(){b=!0,s()})),function(){d==null||d()}}function pv(t,e,n){return n===void 0&&(n=1/0),Un(e)?pv(function(c,a){return Yv(function(l,r){return e(c,l,a,r)})(Ym(t(c,a)))},n):(typeof e=="number"&&(n=e),Io(function(c,a){return q_(c,a,t,n)}))}function Zs(t,e){return Io(function(n,c){var a=0;n.subscribe(ti(c,function(l){return t.call(e,l,a++)&&c.next(l)}))})}function wV(t){return Io(function(e,n){var c=null,a=!1,l;c=e.subscribe(ti(n,void 0,void 0,function(r){l=Ym(t(r,wV(t)(e))),c?(c.unsubscribe(),c=null,l.subscribe(n)):a=!0})),a&&(c.unsubscribe(),c=null,l.subscribe(n))})}function t8(t,e){return Un(e)?pv(t,e,1):pv(t,1)}function e8(t,e){return e===void 0&&(e=A_),Io(function(n,c){var a=null,l=null,r=null,d=function(){if(a){a.unsubscribe(),a=null;var i=l;l=null,c.next(i)}};function o(){var i=r+t,u=e.now();if(u<i){a=this.schedule(void 0,i-u),c.add(a);return}d()}n.subscribe(ti(c,function(i){l=i,r=e.now(),a||(a=e.schedule(o,t),c.add(a))},function(){d(),c.complete()},void 0,function(){l=a=null}))})}function n8(t,e){return Io(function(n,c){var a=null,l=0,r=!1,d=function(){return r&&!a&&c.complete()};n.subscribe(ti(c,function(o){a==null||a.unsubscribe();var i=0,u=l++;Ym(t(o,u)).subscribe(a=ti(c,function(b){return c.next(e?e(o,b,u,i++):b)},function(){a=null,d()}))},function(){r=!0,d()}))})}class Ws{constructor(e){this.stream=e}filter(e){const n=this.stream.pipe(Zs(e));return new Ws(n)}keys(...e){const n=this.stream.pipe(Zs(c=>e.includes(c.sender.key)));return new Ws(n)}types(...e){const n=this.stream.pipe(Zs(c=>e.includes(c.type)));return new Ws(n)}listen(e){const n=this.stream.subscribe(e);return()=>n.unsubscribe()}}const[c8,a8]=ss("ComponentTreeContext");class ms{constructor(e=!1,n,c){this.error=e,this.result=n,this.exceptions=c}static success(e){return new ms(!1,e)}static error(e){return new ms(!0,void 0,e)}}const VV=new Map,l8=t=>{const e=VV.get(t);if(e)return e;const n=new Function("form",t);return VV.set(t,n),n},gV=(t,e)=>{try{const c=l8(t)(e);return ms.success(c)}catch(n){return ms.error([n,{name:"Function source",message:t}])}},Jv=(t,e)=>gV(t.fnSource||"",e),r8=(t,e)=>{if(Wm(t))return Jv(t,e).result;const n=t.value||"";return gV(`return ${n}`,e).result},i8=(t,e)=>{const n={};return Object.keys(t.props).forEach(c=>{const a=t.props[c];if(a){if(Wm(a)){const{result:l,error:r,exceptions:d}=Jv(a,e);if(r){const o=`Error in the calculable field '${c}' of the '${t.key}' component `;console.warn(o,d);return}n[c]=l}XK(a.value)||(n[c]=a.value)}}),n},d8=t=>{var e;return(e=t.htmlAttributes)==null?void 0:e.reduce((n,{name:c,value:a})=>{try{n[c]=JSON.parse(a)}catch{n[c]=a}return n},{})},o8=(t,e,n)=>{const c={},a=r=>{var d,o;return(o=(d=t.store.events)==null?void 0:d[r])==null?void 0:o.length},l=new Set(nd(t.store.events).filter(a));return l.add("onChange").add("onBlur"),l.delete(rv),l.delete(iv),l.forEach(r=>c[r]=(...d)=>e.eventSubject.next(new dv(r,t,e,d,n))),c};class CV{constructor(e,n,c,a){this.data=e,this.store=n,this.localizer=c,this.computeChildren=a,Nr(this,void 0,{name:cr("ComponentState",{key:e.key})})}get get(){const e=this.propsWithoutChildren;return Object.assign({},e,this.className,this.children(e))}get propsWithoutChildren(){return Object.assign({key:this.data.store.key},this.data.model.defaultProps,this.calculatedProps,this.localizedProps,this.value,this.events,this.htmlAttributes,this.data.userDefinedProps)}get value(){if(this.data.field)return{[this.data.field.valued]:this.data.field.value}}get calculatedProps(){return i8(this.data.store,this.store.form.componentTree)}get localizedProps(){return this.localizer(this.data.store)}get events(){return o8(this.data,this.store,this)}get className(){return{className:hZ(this.propsWithoutChildren.className,this.getClassNameFromCssPart("css"))}}get wrapperClassName(){return this.getClassNameFromCssPart("wrapperCss")}get htmlAttributes(){return d8(this.data.store)}children(e){return this.computeChildren(this.data,e)}getClassNameFromCssPart(e){var d,o,i,u,b,s,Z,W,m,v,L,X;const{model:n,store:c}=this.data,{viewMode:a}=this.store,l=ed({},(o=(d=n[e])==null?void 0:d.any)==null?void 0:o.object,(u=(i=c[e])==null?void 0:i.any)==null?void 0:u.object),r=ed({},(s=(b=n[e])==null?void 0:b[a])==null?void 0:s.object,(W=(Z=c[e])==null?void 0:Z[a])==null?void 0:W.object);return wf`
87
+ `):"",this.name="UnsubscriptionError",this.errors=n}});function hm(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var ys=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,n,c,a,l;if(!this.closed){this.closed=!0;var r=this._parentage;if(r)if(this._parentage=null,Array.isArray(r))try{for(var d=Ao(r),o=d.next();!o.done;o=d.next()){var i=o.value;i.remove(this)}}catch(m){e={error:m}}finally{try{o&&!o.done&&(n=d.return)&&n.call(d)}finally{if(e)throw e.error}}else r.remove(this);var u=this.initialTeardown;if(Un(u))try{u()}catch(m){l=m instanceof Wv?m.errors:[m]}var b=this._finalizers;if(b){this._finalizers=null;try{for(var s=Ao(b),Z=s.next();!Z.done;Z=s.next()){var W=Z.value;try{GV(W)}catch(m){l=l??[],m instanceof Wv?l=xo(xo([],Oo(l)),Oo(m.errors)):l.push(m)}}}catch(m){c={error:m}}finally{try{Z&&!Z.done&&(a=s.return)&&a.call(s)}finally{if(c)throw c.error}}}if(l)throw new Wv(l)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)GV(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(e)}},t.prototype._hasParent=function(e){var n=this._parentage;return n===e||Array.isArray(n)&&n.includes(e)},t.prototype._addParent=function(e){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e},t.prototype._removeParent=function(e){var n=this._parentage;n===e?this._parentage=null:Array.isArray(n)&&hm(n,e)},t.prototype.remove=function(e){var n=this._finalizers;n&&hm(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),XV=ys.EMPTY;function vV(t){return t instanceof ys||t&&"closed"in t&&Un(t.remove)&&Un(t.add)&&Un(t.unsubscribe)}function GV(t){Un(t)?t():t.unsubscribe()}var YV={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},mv={setTimeout:function(t,e){for(var n=[],c=2;c<arguments.length;c++)n[c-2]=arguments[c];var a=mv.delegate;return a!=null&&a.setTimeout?a.setTimeout.apply(a,xo([t,e],Oo(n))):setTimeout.apply(void 0,xo([t,e],Oo(n)))},clearTimeout:function(t){var e=mv.delegate;return((e==null?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function pV(t){mv.setTimeout(function(){throw t})}function JV(){}function Xm(t){t()}var Lv=function(t){$r(e,t);function e(n){var c=t.call(this)||this;return c.isStopped=!1,n?(c.destination=n,vV(n)&&n.add(c)):c.destination=J_,c}return e.create=function(n,c,a){return new Xv(n,c,a)},e.prototype.next=function(n){this.isStopped||this._next(n)},e.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(n){this.destination.next(n)},e.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(ys),G_=Function.prototype.bind;function hv(t,e){return G_.call(t,e)}var Y_=function(){function t(e){this.partialObserver=e}return t.prototype.next=function(e){var n=this.partialObserver;if(n.next)try{n.next(e)}catch(c){vm(c)}},t.prototype.error=function(e){var n=this.partialObserver;if(n.error)try{n.error(e)}catch(c){vm(c)}else vm(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(n){vm(n)}},t}(),Xv=function(t){$r(e,t);function e(n,c,a){var l=t.call(this)||this,r;if(Un(n)||!n)r={next:n??void 0,error:c??void 0,complete:a??void 0};else{var d;l&&YV.useDeprecatedNextContext?(d=Object.create(n),d.unsubscribe=function(){return l.unsubscribe()},r={next:n.next&&hv(n.next,d),error:n.error&&hv(n.error,d),complete:n.complete&&hv(n.complete,d)}):r=n}return l.destination=new Y_(r),l}return e}(Lv);function vm(t){pV(t)}function p_(t){throw t}var J_={closed:!0,next:JV,error:p_,complete:JV},vv=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function f_(t){return t}function M_(t){return t.length===0?f_:t.length===1?t[0]:function(n){return t.reduce(function(c,a){return a(c)},n)}}var qr=function(){function t(e){e&&(this._subscribe=e)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(e,n,c){var a=this,l=z_(e)?e:new Xv(e,n,c);return Xm(function(){var r=a,d=r.operator,o=r.source;l.add(d?d.call(l,o):o?a._subscribe(l):a._trySubscribe(l))}),l},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(n){e.error(n)}},t.prototype.forEach=function(e,n){var c=this;return n=fV(n),new n(function(a,l){var r=new Xv({next:function(d){try{e(d)}catch(o){l(o),r.unsubscribe()}},error:l,complete:a});c.subscribe(r)})},t.prototype._subscribe=function(e){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(e)},t.prototype[vv]=function(){return this},t.prototype.pipe=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return M_(e)(this)},t.prototype.toPromise=function(e){var n=this;return e=fV(e),new e(function(c,a){var l;n.subscribe(function(r){return l=r},function(r){return a(r)},function(){return c(l)})})},t.create=function(e){return new t(e)},t}();function fV(t){var e;return(e=t??YV.Promise)!==null&&e!==void 0?e:Promise}function N_(t){return t&&Un(t.next)&&Un(t.error)&&Un(t.complete)}function z_(t){return t&&t instanceof Lv||N_(t)&&vV(t)}function R_(t){return Un(t==null?void 0:t.lift)}function Io(t){return function(e){if(R_(e))return e.lift(function(n){try{return t(n,this)}catch(c){this.error(c)}});throw new TypeError("Unable to lift unknown Observable type")}}function ti(t,e,n,c,a){return new w_(t,e,n,c,a)}var w_=function(t){$r(e,t);function e(n,c,a,l,r,d){var o=t.call(this,n)||this;return o.onFinalize=r,o.shouldUnsubscribe=d,o._next=c?function(i){try{c(i)}catch(u){n.error(u)}}:t.prototype._next,o._error=l?function(i){try{l(i)}catch(u){n.error(u)}finally{this.unsubscribe()}}:t.prototype._error,o._complete=a?function(){try{a()}catch(i){n.error(i)}finally{this.unsubscribe()}}:t.prototype._complete,o}return e.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var c=this.closed;t.prototype.unsubscribe.call(this),!c&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},e}(Lv),V_=hV(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Gv=function(t){$r(e,t);function e(){var n=t.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return e.prototype.lift=function(n){var c=new MV(this,this);return c.operator=n,c},e.prototype._throwIfClosed=function(){if(this.closed)throw new V_},e.prototype.next=function(n){var c=this;Xm(function(){var a,l;if(c._throwIfClosed(),!c.isStopped){c.currentObservers||(c.currentObservers=Array.from(c.observers));try{for(var r=Ao(c.currentObservers),d=r.next();!d.done;d=r.next()){var o=d.value;o.next(n)}}catch(i){a={error:i}}finally{try{d&&!d.done&&(l=r.return)&&l.call(r)}finally{if(a)throw a.error}}}})},e.prototype.error=function(n){var c=this;Xm(function(){if(c._throwIfClosed(),!c.isStopped){c.hasError=c.isStopped=!0,c.thrownError=n;for(var a=c.observers;a.length;)a.shift().error(n)}})},e.prototype.complete=function(){var n=this;Xm(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var c=n.observers;c.length;)c.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(n){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,n)},e.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},e.prototype._innerSubscribe=function(n){var c=this,a=this,l=a.hasError,r=a.isStopped,d=a.observers;return l||r?XV:(this.currentObservers=null,d.push(n),new ys(function(){c.currentObservers=null,hm(d,n)}))},e.prototype._checkFinalizedStatuses=function(n){var c=this,a=c.hasError,l=c.thrownError,r=c.isStopped;a?n.error(l):r&&n.complete()},e.prototype.asObservable=function(){var n=new qr;return n.source=this,n},e.create=function(n,c){return new MV(n,c)},e}(qr),MV=function(t){$r(e,t);function e(n,c){var a=t.call(this)||this;return a.destination=n,a.source=c,a}return e.prototype.next=function(n){var c,a;(a=(c=this.destination)===null||c===void 0?void 0:c.next)===null||a===void 0||a.call(c,n)},e.prototype.error=function(n){var c,a;(a=(c=this.destination)===null||c===void 0?void 0:c.error)===null||a===void 0||a.call(c,n)},e.prototype.complete=function(){var n,c;(c=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||c===void 0||c.call(n)},e.prototype._subscribe=function(n){var c,a;return(a=(c=this.source)===null||c===void 0?void 0:c.subscribe(n))!==null&&a!==void 0?a:XV},e}(Gv),NV={now:function(){return(NV.delegate||Date).now()},delegate:void 0},g_=function(t){$r(e,t);function e(n,c){return t.call(this)||this}return e.prototype.schedule=function(n,c){return this},e}(ys),Gm={setInterval:function(t,e){for(var n=[],c=2;c<arguments.length;c++)n[c-2]=arguments[c];var a=Gm.delegate;return a!=null&&a.setInterval?a.setInterval.apply(a,xo([t,e],Oo(n))):setInterval.apply(void 0,xo([t,e],Oo(n)))},clearInterval:function(t){var e=Gm.delegate;return((e==null?void 0:e.clearInterval)||clearInterval)(t)},delegate:void 0},C_=function(t){$r(e,t);function e(n,c){var a=t.call(this,n,c)||this;return a.scheduler=n,a.work=c,a.pending=!1,a}return e.prototype.schedule=function(n,c){var a;if(c===void 0&&(c=0),this.closed)return this;this.state=n;var l=this.id,r=this.scheduler;return l!=null&&(this.id=this.recycleAsyncId(r,l,c)),this.pending=!0,this.delay=c,this.id=(a=this.id)!==null&&a!==void 0?a:this.requestAsyncId(r,this.id,c),this},e.prototype.requestAsyncId=function(n,c,a){return a===void 0&&(a=0),Gm.setInterval(n.flush.bind(n,this),a)},e.prototype.recycleAsyncId=function(n,c,a){if(a===void 0&&(a=0),a!=null&&this.delay===a&&this.pending===!1)return c;c!=null&&Gm.clearInterval(c)},e.prototype.execute=function(n,c){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var a=this._execute(n,c);if(a)return a;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(n,c){var a=!1,l;try{this.work(n)}catch(r){a=!0,l=r||new Error("Scheduled action threw falsy error")}if(a)return this.unsubscribe(),l},e.prototype.unsubscribe=function(){if(!this.closed){var n=this,c=n.id,a=n.scheduler,l=a.actions;this.work=this.state=this.scheduler=null,this.pending=!1,hm(l,this),c!=null&&(this.id=this.recycleAsyncId(a,c,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(g_),zV=function(){function t(e,n){n===void 0&&(n=t.now),this.schedulerActionCtor=e,this.now=n}return t.prototype.schedule=function(e,n,c){return n===void 0&&(n=0),new this.schedulerActionCtor(this,e).schedule(c,n)},t.now=NV.now,t}(),j_=function(t){$r(e,t);function e(n,c){c===void 0&&(c=zV.now);var a=t.call(this,n,c)||this;return a.actions=[],a._active=!1,a}return e.prototype.flush=function(n){var c=this.actions;if(this._active){c.push(n);return}var a;this._active=!0;do if(a=n.execute(n.state,n.delay))break;while(n=c.shift());if(this._active=!1,a){for(;n=c.shift();)n.unsubscribe();throw a}},e}(zV),A_=new j_(C_),O_=function(t){return t&&typeof t.length=="number"&&typeof t!="function"};function x_(t){return Un(t==null?void 0:t.then)}function k_(t){return Un(t[vv])}function I_(t){return Symbol.asyncIterator&&Un(t==null?void 0:t[Symbol.asyncIterator])}function S_(t){return new TypeError("You provided "+(t!==null&&typeof t=="object"?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function F_(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var H_=F_();function T_(t){return Un(t==null?void 0:t[H_])}function D_(t){return X_(this,arguments,function(){var n,c,a,l;return LV(this,function(r){switch(r.label){case 0:n=t.getReader(),r.label=1;case 1:r.trys.push([1,,9,10]),r.label=2;case 2:return[4,ko(n.read())];case 3:return c=r.sent(),a=c.value,l=c.done,l?[4,ko(void 0)]:[3,5];case 4:return[2,r.sent()];case 5:return[4,ko(a)];case 6:return[4,r.sent()];case 7:return r.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function B_(t){return Un(t==null?void 0:t.getReader)}function Ym(t){if(t instanceof qr)return t;if(t!=null){if(k_(t))return Q_(t);if(O_(t))return U_(t);if(x_(t))return E_(t);if(I_(t))return RV(t);if(T_(t))return P_(t);if(B_(t))return K_(t)}throw S_(t)}function Q_(t){return new qr(function(e){var n=t[vv]();if(Un(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function U_(t){return new qr(function(e){for(var n=0;n<t.length&&!e.closed;n++)e.next(t[n]);e.complete()})}function E_(t){return new qr(function(e){t.then(function(n){e.closed||(e.next(n),e.complete())},function(n){return e.error(n)}).then(null,pV)})}function P_(t){return new qr(function(e){var n,c;try{for(var a=Ao(t),l=a.next();!l.done;l=a.next()){var r=l.value;if(e.next(r),e.closed)return}}catch(d){n={error:d}}finally{try{l&&!l.done&&(c=a.return)&&c.call(a)}finally{if(n)throw n.error}}e.complete()})}function RV(t){return new qr(function(e){__(t,e).catch(function(n){return e.error(n)})})}function K_(t){return RV(D_(t))}function __(t,e){var n,c,a,l;return h_(this,void 0,void 0,function(){var r,d;return LV(this,function(o){switch(o.label){case 0:o.trys.push([0,5,6,11]),n=v_(t),o.label=1;case 1:return[4,n.next()];case 2:if(c=o.sent(),!!c.done)return[3,4];if(r=c.value,e.next(r),e.closed)return[2];o.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return d=o.sent(),a={error:d},[3,11];case 6:return o.trys.push([6,,9,10]),c&&!c.done&&(l=n.return)?[4,l.call(n)]:[3,8];case 7:o.sent(),o.label=8;case 8:return[3,10];case 9:if(a)throw a.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function $_(t,e,n,c,a){c===void 0&&(c=0),a===void 0&&(a=!1);var l=e.schedule(function(){n(),a?t.add(this.schedule(null,c)):this.unsubscribe()},c);if(t.add(l),!a)return l}function Yv(t,e){return Io(function(n,c){var a=0;n.subscribe(ti(c,function(l){c.next(t.call(e,l,a++))}))})}function q_(t,e,n,c,a,l,r,d){var o=[],i=0,u=0,b=!1,s=function(){b&&!o.length&&!i&&e.complete()},Z=function(m){return i<c?W(m):o.push(m)},W=function(m){l&&e.next(m),i++;var v=!1;Ym(n(m,u++)).subscribe(ti(e,function(L){a==null||a(L),l?Z(L):e.next(L)},function(){v=!0},void 0,function(){if(v)try{i--;for(var L=function(){var X=o.shift();r?$_(e,r,function(){return W(X)}):W(X)};o.length&&i<c;)L();s()}catch(X){e.error(X)}}))};return t.subscribe(ti(e,Z,function(){b=!0,s()})),function(){d==null||d()}}function pv(t,e,n){return n===void 0&&(n=1/0),Un(e)?pv(function(c,a){return Yv(function(l,r){return e(c,l,a,r)})(Ym(t(c,a)))},n):(typeof e=="number"&&(n=e),Io(function(c,a){return q_(c,a,t,n)}))}function Zs(t,e){return Io(function(n,c){var a=0;n.subscribe(ti(c,function(l){return t.call(e,l,a++)&&c.next(l)}))})}function wV(t){return Io(function(e,n){var c=null,a=!1,l;c=e.subscribe(ti(n,void 0,void 0,function(r){l=Ym(t(r,wV(t)(e))),c?(c.unsubscribe(),c=null,l.subscribe(n)):a=!0})),a&&(c.unsubscribe(),c=null,l.subscribe(n))})}function t8(t,e){return Un(e)?pv(t,e,1):pv(t,1)}function e8(t,e){return e===void 0&&(e=A_),Io(function(n,c){var a=null,l=null,r=null,d=function(){if(a){a.unsubscribe(),a=null;var i=l;l=null,c.next(i)}};function o(){var i=r+t,u=e.now();if(u<i){a=this.schedule(void 0,i-u),c.add(a);return}d()}n.subscribe(ti(c,function(i){l=i,r=e.now(),a||(a=e.schedule(o,t),c.add(a))},function(){d(),c.complete()},void 0,function(){l=a=null}))})}function n8(t,e){return Io(function(n,c){var a=null,l=0,r=!1,d=function(){return r&&!a&&c.complete()};n.subscribe(ti(c,function(o){a==null||a.unsubscribe();var i=0,u=l++;Ym(t(o,u)).subscribe(a=ti(c,function(b){return c.next(e?e(o,b,u,i++):b)},function(){a=null,d()}))},function(){r=!0,d()}))})}class Ws{constructor(e){this.stream=e}filter(e){const n=this.stream.pipe(Zs(e));return new Ws(n)}keys(...e){const n=this.stream.pipe(Zs(c=>e.includes(c.sender.key)));return new Ws(n)}types(...e){const n=this.stream.pipe(Zs(c=>e.includes(c.type)));return new Ws(n)}listen(e){const n=this.stream.subscribe(e);return()=>n.unsubscribe()}}const[c8,a8]=ss("ComponentTreeContext");class ms{constructor(e=!1,n,c){this.error=e,this.result=n,this.exceptions=c}static success(e){return new ms(!1,e)}static error(e){return new ms(!0,void 0,e)}}const VV=new Map,l8=t=>{const e=VV.get(t);if(e)return e;const n=new Function("form",t);return VV.set(t,n),n},gV=(t,e)=>{try{const c=l8(t)(e);return ms.success(c)}catch(n){return ms.error([n,{name:"Function source",message:t}])}},Jv=(t,e)=>gV(t.fnSource||"",e),r8=(t,e)=>{if(Wm(t))return Jv(t,e).result;const n=t.value||"";return gV(`return ${n}`,e).result},i8=(t,e)=>{const n={};return Object.keys(t.props).forEach(c=>{const a=t.props[c];if(a){if(Wm(a)){const{result:l,error:r,exceptions:d}=Jv(a,e);if(r){const o=`Error in the calculable field '${c}' of the '${t.key}' component `;console.warn(o,d);return}n[c]=l;return}XK(a.value)||(n[c]=a.value)}}),n},d8=t=>{var e;return(e=t.htmlAttributes)==null?void 0:e.reduce((n,{name:c,value:a})=>{try{n[c]=JSON.parse(a)}catch{n[c]=a}return n},{})},o8=(t,e,n)=>{const c={},a=r=>{var d,o;return(o=(d=t.store.events)==null?void 0:d[r])==null?void 0:o.length},l=new Set(nd(t.store.events).filter(a));return l.add("onChange").add("onBlur"),l.delete(rv),l.delete(iv),l.forEach(r=>c[r]=(...d)=>e.eventSubject.next(new dv(r,t,e,d,n))),c};class CV{constructor(e,n,c,a){this.data=e,this.store=n,this.localizer=c,this.computeChildren=a,Nr(this,void 0,{name:cr("ComponentState",{key:e.key})})}get get(){const e=this.propsWithoutChildren;return Object.assign({},e,this.className,this.children(e))}get propsWithoutChildren(){return Object.assign({key:this.data.store.key},this.data.model.defaultProps,this.calculatedProps,this.localizedProps,this.value,this.events,this.htmlAttributes,this.data.userDefinedProps)}get value(){if(this.data.field)return{[this.data.field.valued]:this.data.field.value}}get calculatedProps(){return i8(this.data.store,this.store.form.componentTree)}get localizedProps(){return this.localizer(this.data.store)}get events(){return o8(this.data,this.store,this)}get className(){return{className:hZ(this.propsWithoutChildren.className,this.getClassNameFromCssPart("css"))}}get wrapperClassName(){return this.getClassNameFromCssPart("wrapperCss")}get htmlAttributes(){return d8(this.data.store)}children(e){return this.computeChildren(this.data,e)}getClassNameFromCssPart(e){var d,o,i,u,b,s,Z,W,m,v,L,X;const{model:n,store:c}=this.data,{viewMode:a}=this.store,l=ed({},(o=(d=n[e])==null?void 0:d.any)==null?void 0:o.object,(u=(i=c[e])==null?void 0:i.any)==null?void 0:u.object),r=ed({},(s=(b=n[e])==null?void 0:b[a])==null?void 0:s.object,(W=(Z=c[e])==null?void 0:Z[a])==null?void 0:W.object);return wf`
88
88
  && {
89
89
  ${l}
90
90
  ${r}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-form-builder/viewer-bundle",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "private": false,
5
5
  "main": "./dist/index.umd.js",
6
6
  "type": "module",
@@ -15,8 +15,8 @@
15
15
  "email": "support@optimajet.com"
16
16
  },
17
17
  "dependencies": {
18
- "@react-form-builder/components-rsuite": "^1.3.0",
19
- "@react-form-builder/core": "^1.3.0",
18
+ "@react-form-builder/components-rsuite": "^1.3.1",
19
+ "@react-form-builder/core": "^1.3.1",
20
20
  "react": "^18.2.0",
21
21
  "react-dom": "^18.2.0",
22
22
  "react-is": "^18.2.0"