@frumu/tandem-panel 0.4.15 → 0.4.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +8 -1
- package/README.md +17 -8
- package/bin/cli.js +3 -1
- package/bin/setup.js +233 -10
- package/dist/assets/index-C3pGFPtZ.css +1 -0
- package/dist/assets/index-fje-pNlH.js +2474 -0
- package/dist/assets/{motion-BCvrfAt1.js → motion-m8lxAefi.js} +1 -1
- package/dist/assets/preact-vendor-CWXGD9A4.js +1 -0
- package/dist/assets/{react-query-wD0mx2Xi.js → react-query-tz3oGfUr.js} +1 -1
- package/dist/assets/vendor-Bw8uHUnC.js +180 -0
- package/dist/index.html +6 -6
- package/lib/setup/control-panel-config.js +196 -0
- package/package.json +9 -3
- package/server/routes/aca.js +97 -0
- package/server/routes/capabilities.js +51 -12
- package/server/routes/control-panel-config.js +106 -0
- package/src/generated/agent-catalog.json +2254 -0
- package/dist/assets/index-DAtDe1Vc.js +0 -2460
- package/dist/assets/index-DzX1-UXX.css +0 -1
- package/dist/assets/preact-vendor-jo0muZ28.js +0 -1
- package/dist/assets/vendor-BB3fzNns.js +0 -180
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{R as gt,A as Y,
|
|
1
|
+
import{R as gt,A as Y,h as ke,f as F,I as Is,u as q,k as mr,a as js,q as Oe,T as rt,e as Zt,O as gr,m as yr,n as vr,g as Te,o as Ie,p as Tr,r as xr}from"./preact-vendor-CWXGD9A4.js";const je=gt({});function Ne(t){const e=Y(null);return e.current===null&&(e.current=t()),e.current}const Jt=gt(null),Ue=gt({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});class Pr extends js{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const s=this.props.sizeRef.current;s.height=n.offsetHeight||0,s.width=n.offsetWidth||0,s.top=n.offsetTop,s.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Sr({children:t,isPresent:e}){const n=ke(),s=Y(null),i=Y({width:0,height:0,top:0,left:0}),{nonce:o}=F(Ue);return Is(()=>{const{width:r,height:a,top:l,left:u}=i.current;if(e||!s.current||!r||!a)return;s.current.dataset.motionPopId=n;const c=document.createElement("style");return o&&(c.nonce=o),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
|
|
2
2
|
[data-motion-pop-id="${n}"] {
|
|
3
3
|
position: absolute !important;
|
|
4
4
|
width: ${r}px !important;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var Y,m,St,L,Ie,Nt,Et,Ut,He,ke,Ce,Ht,ie={},le=[],k_=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,X=Array.isArray;function N(e,t){for(var _ in t)e[_]=t[_];return e}function Te(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function A(e,t,_){var n,o,r,i={};for(r in t)r=="key"?n=t[r]:r=="ref"?o=t[r]:i[r]=t[r];if(arguments.length>2&&(i.children=arguments.length>3?Y.call(arguments,2):_),typeof e=="function"&&e.defaultProps!=null)for(r in e.defaultProps)i[r]===void 0&&(i[r]=e.defaultProps[r]);return Z(e,i,n,o,null)}function Z(e,t,_,n,o){var r={type:e,props:t,key:_,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++St,__i:-1,__u:0};return o==null&&m.vnode!=null&&m.vnode(r),r}function C_(){return{current:null}}function R(e){return e.children}function E(e,t){this.props=e,this.context=t}function V(e,t){if(t==null)return e.__?V(e.__,e.__i+1):null;for(var _;t<e.__k.length;t++)if((_=e.__k[t])!=null&&_.__e!=null)return _.__e;return typeof e.type=="function"?V(e):null}function x_(e){if(e.__P&&e.__d){var t=e.__v,_=t.__e,n=[],o=[],r=N({},t);r.__v=t.__v+1,m.vnode&&m.vnode(r),Ae(e.__P,r,t,e.__n,e.__P.namespaceURI,32&t.__u?[_]:null,n,_??V(t),!!(32&t.__u),o),r.__v=t.__v,r.__.__k[r.__i]=r,Dt(n,r,o),t.__e=t.__=null,r.__e!=_&&Tt(r)}}function Tt(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(t){if(t!=null&&t.__e!=null)return e.__e=e.__c.base=t.__e}),Tt(e)}function xe(e){(!e.__d&&(e.__d=!0)&&L.push(e)&&!ce.__r++||Ie!=m.debounceRendering)&&((Ie=m.debounceRendering)||Nt)(ce)}function ce(){for(var e,t=1;L.length;)L.length>t&&L.sort(Et),e=L.shift(),t=L.length,x_(e);ce.__r=0}function At(e,t,_,n,o,r,i,l,s,a,u){var c,p,f,h,k,y,v,g=n&&n.__k||le,w=t.length;for(s=w_(_,t,g,s,w),c=0;c<w;c++)(f=_.__k[c])!=null&&(p=f.__i!=-1&&g[f.__i]||ie,f.__i=c,y=Ae(e,f,p,o,r,i,l,s,a,u),h=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&Re(p.ref,null,f),u.push(f.ref,f.__c||h,f)),k==null&&h!=null&&(k=h),(v=!!(4&f.__u))||p.__k===f.__k?s=Rt(f,s,e,v):typeof f.type=="function"&&y!==void 0?s=y:h&&(s=h.nextSibling),f.__u&=-7);return _.__e=k,s}function w_(e,t,_,n,o){var r,i,l,s,a,u=_.length,c=u,p=0;for(e.__k=new Array(o),r=0;r<o;r++)(i=t[r])!=null&&typeof i!="boolean"&&typeof i!="function"?(typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?i=e.__k[r]=Z(null,i,null,null,null):X(i)?i=e.__k[r]=Z(R,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?i=e.__k[r]=Z(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):e.__k[r]=i,s=r+p,i.__=e,i.__b=e.__b+1,l=null,(a=i.__i=P_(i,_,s,c))!=-1&&(c--,(l=_[a])&&(l.__u|=2)),l==null||l.__v==null?(a==-1&&(o>u?p--:o<u&&p++),typeof i.type!="function"&&(i.__u|=4)):a!=s&&(a==s-1?p--:a==s+1?p++:(a>s?p--:p++,i.__u|=4))):e.__k[r]=null;if(c)for(r=0;r<u;r++)(l=_[r])!=null&&(2&l.__u)==0&&(l.__e==n&&(n=V(l)),Wt(l,l));return n}function Rt(e,t,_,n){var o,r;if(typeof e.type=="function"){for(o=e.__k,r=0;o&&r<o.length;r++)o[r]&&(o[r].__=e,t=Rt(o[r],t,_,n));return t}e.__e!=t&&(n&&(t&&e.type&&!t.parentNode&&(t=V(e)),_.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function H(e,t){return t=t||[],e==null||typeof e=="boolean"||(X(e)?e.some(function(_){H(_,t)}):t.push(e)),t}function P_(e,t,_,n){var o,r,i,l=e.key,s=e.type,a=t[_],u=a!=null&&(2&a.__u)==0;if(a===null&&l==null||u&&l==a.key&&s==a.type)return _;if(n>(u?1:0)){for(o=_-1,r=_+1;o>=0||r<t.length;)if((a=t[i=o>=0?o--:r++])!=null&&(2&a.__u)==0&&l==a.key&&s==a.type)return i}return-1}function Ve(e,t,_){t[0]=="-"?e.setProperty(t,_??""):e[t]=_==null?"":typeof _!="number"||k_.test(t)?_:_+"px"}function te(e,t,_,n,o){var r,i;e:if(t=="style")if(typeof _=="string")e.style.cssText=_;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)_&&t in _||Ve(e.style,t,"");if(_)for(t in _)n&&_[t]==n[t]||Ve(e.style,t,_[t])}else if(t[0]=="o"&&t[1]=="n")r=t!=(t=t.replace(Ut,"$1")),i=t.toLowerCase(),t=i in e||t=="onFocusOut"||t=="onFocusIn"?i.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+r]=_,_?n?_.u=n.u:(_.u=He,e.addEventListener(t,r?Ce:ke,r)):e.removeEventListener(t,r?Ce:ke,r);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=_??"";break e}catch{}typeof _=="function"||(_==null||_===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&_==1?"":_))}}function Be(e){return function(t){if(this.l){var _=this.l[t.type+e];if(t.t==null)t.t=He++;else if(t.t<_.u)return;return _(m.event?m.event(t):t)}}}function Ae(e,t,_,n,o,r,i,l,s,a){var u,c,p,f,h,k,y,v,g,w,P,D,M,U,C,x=t.type;if(t.constructor!==void 0)return null;128&_.__u&&(s=!!(32&_.__u),r=[l=t.__e=_.__e]),(u=m.__b)&&u(t);e:if(typeof x=="function")try{if(v=t.props,g="prototype"in x&&x.prototype.render,w=(u=x.contextType)&&n[u.__c],P=u?w?w.props.value:u.__:n,_.__c?y=(c=t.__c=_.__c).__=c.__E:(g?t.__c=c=new x(v,P):(t.__c=c=new E(v,P),c.constructor=x,c.render=N_),w&&w.sub(c),c.state||(c.state={}),c.__n=n,p=c.__d=!0,c.__h=[],c._sb=[]),g&&c.__s==null&&(c.__s=c.state),g&&x.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=N({},c.__s)),N(c.__s,x.getDerivedStateFromProps(v,c.__s))),f=c.props,h=c.state,c.__v=t,p)g&&x.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),g&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(g&&x.getDerivedStateFromProps==null&&v!==f&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(v,P),t.__v==_.__v||!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(v,c.__s,P)===!1){t.__v!=_.__v&&(c.props=v,c.state=c.__s,c.__d=!1),t.__e=_.__e,t.__k=_.__k,t.__k.some(function(I){I&&(I.__=t)}),le.push.apply(c.__h,c._sb),c._sb=[],c.__h.length&&i.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(v,c.__s,P),g&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(f,h,k)})}if(c.context=P,c.props=v,c.__P=e,c.__e=!1,D=m.__r,M=0,g)c.state=c.__s,c.__d=!1,D&&D(t),u=c.render(c.props,c.state,c.context),le.push.apply(c.__h,c._sb),c._sb=[];else do c.__d=!1,D&&D(t),u=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++M<25);c.state=c.__s,c.getChildContext!=null&&(n=N(N({},n),c.getChildContext())),g&&!p&&c.getSnapshotBeforeUpdate!=null&&(k=c.getSnapshotBeforeUpdate(f,h)),U=u!=null&&u.type===R&&u.key==null?Ot(u.props.children):u,l=At(e,X(U)?U:[U],t,_,n,o,r,i,l,s,a),c.base=t.__e,t.__u&=-161,c.__h.length&&i.push(c),y&&(c.__E=c.__=null)}catch(I){if(t.__v=null,s||r!=null)if(I.then){for(t.__u|=s?160:128;l&&l.nodeType==8&&l.nextSibling;)l=l.nextSibling;r[r.indexOf(l)]=null,t.__e=l}else{for(C=r.length;C--;)Te(r[C]);we(t)}else t.__e=_.__e,t.__k=_.__k,I.then||we(t);m.__e(I,t,_)}else r==null&&t.__v==_.__v?(t.__k=_.__k,t.__e=_.__e):l=t.__e=S_(_.__e,t,_,n,o,r,i,s,a);return(u=m.diffed)&&u(t),128&t.__u?void 0:l}function we(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(we))}function Dt(e,t,_){for(var n=0;n<_.length;n++)Re(_[n],_[++n],_[++n]);m.__c&&m.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(r){r.call(o)})}catch(r){m.__e(r,o.__v)}})}function Ot(e){return typeof e!="object"||e==null||e.__b>0?e:X(e)?e.map(Ot):N({},e)}function S_(e,t,_,n,o,r,i,l,s){var a,u,c,p,f,h,k,y=_.props||ie,v=t.props,g=t.type;if(g=="svg"?o="http://www.w3.org/2000/svg":g=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),r!=null){for(a=0;a<r.length;a++)if((f=r[a])&&"setAttribute"in f==!!g&&(g?f.localName==g:f.nodeType==3)){e=f,r[a]=null;break}}if(e==null){if(g==null)return document.createTextNode(v);e=document.createElementNS(o,g,v.is&&v),l&&(m.__m&&m.__m(t,r),l=!1),r=null}if(g==null)y===v||l&&e.data==v||(e.data=v);else{if(r=r&&Y.call(e.childNodes),!l&&r!=null)for(y={},a=0;a<e.attributes.length;a++)y[(f=e.attributes[a]).name]=f.value;for(a in y)f=y[a],a=="dangerouslySetInnerHTML"?c=f:a=="children"||a in v||a=="value"&&"defaultValue"in v||a=="checked"&&"defaultChecked"in v||te(e,a,null,f,o);for(a in v)f=v[a],a=="children"?p=f:a=="dangerouslySetInnerHTML"?u=f:a=="value"?h=f:a=="checked"?k=f:l&&typeof f!="function"||y[a]===f||te(e,a,f,y[a],o);if(u)l||c&&(u.__html==c.__html||u.__html==e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(c&&(e.innerHTML=""),At(t.type=="template"?e.content:e,X(p)?p:[p],t,_,n,g=="foreignObject"?"http://www.w3.org/1999/xhtml":o,r,i,r?r[0]:_.__k&&V(_,0),l,s),r!=null)for(a=r.length;a--;)Te(r[a]);l||(a="value",g=="progress"&&h==null?e.removeAttribute("value"):h!=null&&(h!==e[a]||g=="progress"&&!h||g=="option"&&h!=y[a])&&te(e,a,h,y[a],o),a="checked",k!=null&&k!=e[a]&&te(e,a,k,y[a],o))}return e}function Re(e,t,_){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(o){m.__e(o,_)}}function Wt(e,t,_){var n,o;if(m.unmount&&m.unmount(e),(n=e.ref)&&(n.current&&n.current!=e.__e||Re(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(r){m.__e(r,t)}n.base=n.__P=null}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&Wt(n[o],t,_||typeof e.type!="function");_||Te(e.__e),e.__c=e.__=e.__e=void 0}function N_(e,t,_){return this.constructor(e,_)}function J(e,t,_){var n,o,r,i;t==document&&(t=document.documentElement),m.__&&m.__(e,t),o=(n=typeof _=="function")?null:_&&_.__k||t.__k,r=[],i=[],Ae(t,e=(!n&&_||t).__k=A(R,null,[e]),o||ie,ie,t.namespaceURI,!n&&_?[_]:o?null:t.firstChild?Y.call(t.childNodes):null,r,!n&&_?_:o?o.__e:t.firstChild,n,i),Dt(r,e,i)}function Mt(e,t){J(e,t,Mt)}function E_(e,t,_){var n,o,r,i,l=N({},e.props);for(r in e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)r=="key"?n=t[r]:r=="ref"?o=t[r]:l[r]=t[r]===void 0&&i!=null?i[r]:t[r];return arguments.length>2&&(l.children=arguments.length>3?Y.call(arguments,2):_),Z(e.type,l,n||e.key,o||e.ref,null)}function U_(e){function t(_){var n,o;return this.getChildContext||(n=new Set,(o={})[t.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(r){this.props.value!=r.value&&n.forEach(function(i){i.__e=!0,xe(i)})},this.sub=function(r){n.add(r);var i=r.componentWillUnmount;r.componentWillUnmount=function(){n&&n.delete(r),i&&i.call(r)}}),_.children}return t.__c="__cC"+Ht++,t.__=e,t.Provider=t.__l=(t.Consumer=function(_,n){return _.children(n)}).contextType=t,t}Y=le.slice,m={__e:function(e,t,_,n){for(var o,r,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((r=o.constructor)&&r.getDerivedStateFromError!=null&&(o.setState(r.getDerivedStateFromError(e)),i=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,n||{}),i=o.__d),i)return o.__E=o}catch(l){e=l}throw e}},St=0,E.prototype.setState=function(e,t){var _;_=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=N({},this.state),typeof e=="function"&&(e=e(N({},_),this.props)),e&&N(_,e),e!=null&&this.__v&&(t&&this._sb.push(t),xe(this))},E.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),xe(this))},E.prototype.render=R,L=[],Nt=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Et=function(e,t){return e.__v.__b-t.__v.__b},ce.__r=0,Ut=/(PointerCapture)$|Capture$/i,He=0,ke=Be(!1),Ce=Be(!0),Ht=0;var H_=0;function En(e,t,_,n,o,r){t||(t={});var i,l,s=t;if("ref"in s)for(l in s={},t)l=="ref"?i=t[l]:s[l]=t[l];var a={type:e,props:s,key:_,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--H_,__i:-1,__u:0,__source:o,__self:r};if(typeof e=="function"&&(i=e.defaultProps))for(l in i)s[l]===void 0&&(s[l]=i[l]);return m.vnode&&m.vnode(a),a}var W,b,me,je,B=0,Lt=[],$=m,ze=$.__b,qe=$.__r,Ge=$.diffed,Ze=$.__c,Je=$.unmount,Ke=$.__;function q(e,t){$.__h&&$.__h(b,e,B||t),B=0;var _=b.__H||(b.__H={__:[],__h:[]});return e>=_.__.length&&_.__.push({}),_.__[e]}function De(e){return B=1,Oe(qt,e)}function Oe(e,t,_){var n=q(W++,2);if(n.t=e,!n.__c&&(n.__=[_?_(t):qt(void 0,t),function(l){var s=n.__N?n.__N[0]:n.__[0],a=n.t(s,l);s!==a&&(n.__N=[a,n.__[1]],n.__c.setState({}))}],n.__c=b,!b.__f)){var o=function(l,s,a){if(!n.__c.__H)return!0;var u=n.__c.__H.__.filter(function(p){return p.__c});if(u.every(function(p){return!p.__N}))return!r||r.call(this,l,s,a);var c=n.__c.props!==l;return u.some(function(p){if(p.__N){var f=p.__[0];p.__=p.__N,p.__N=void 0,f!==p.__[0]&&(c=!0)}}),r&&r.call(this,l,s,a)||c};b.__f=!0;var r=b.shouldComponentUpdate,i=b.componentWillUpdate;b.componentWillUpdate=function(l,s,a){if(this.__e){var u=r;r=void 0,o(l,s,a),r=u}i&&i.call(this,l,s,a)},b.shouldComponentUpdate=o}return n.__N||n.__}function We(e,t){var _=q(W++,3);!$.__s&&Me(_.__H,t)&&(_.__=e,_.u=t,b.__H.__h.push(_))}function ee(e,t){var _=q(W++,4);!$.__s&&Me(_.__H,t)&&(_.__=e,_.u=t,b.__h.push(_))}function Ft(e){return B=5,he(function(){return{current:e}},[])}function It(e,t,_){B=6,ee(function(){if(typeof e=="function"){var n=e(t());return function(){e(null),n&&typeof n=="function"&&n()}}if(e)return e.current=t(),function(){return e.current=null}},_==null?_:_.concat(e))}function he(e,t){var _=q(W++,7);return Me(_.__H,t)&&(_.__=e(),_.__H=t,_.__h=e),_.__}function Vt(e,t){return B=8,he(function(){return e},t)}function Bt(e){var t=b.context[e.__c],_=q(W++,9);return _.c=e,t?(_.__==null&&(_.__=!0,t.sub(b)),t.props.value):e.__}function jt(e,t){$.useDebugValue&&$.useDebugValue(t?t(e):e)}function zt(){var e=q(W++,11);if(!e.__){for(var t=b.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var _=t.__m||(t.__m=[0,0]);e.__="P"+_[0]+"-"+_[1]++}return e.__}function T_(){for(var e;e=Lt.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(ne),t.__h.some(Pe),t.__h=[]}catch(_){t.__h=[],$.__e(_,e.__v)}}}$.__b=function(e){b=null,ze&&ze(e)},$.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ke&&Ke(e,t)},$.__r=function(e){qe&&qe(e),W=0;var t=(b=e.__c).__H;t&&(me===b?(t.__h=[],b.__h=[],t.__.some(function(_){_.__N&&(_.__=_.__N),_.u=_.__N=void 0})):(t.__h.some(ne),t.__h.some(Pe),t.__h=[],W=0)),me=b},$.diffed=function(e){Ge&&Ge(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Lt.push(t)!==1&&je===$.requestAnimationFrame||((je=$.requestAnimationFrame)||A_)(T_)),t.__H.__.some(function(_){_.u&&(_.__H=_.u),_.u=void 0})),me=b=null},$.__c=function(e,t){t.some(function(_){try{_.__h.some(ne),_.__h=_.__h.filter(function(n){return!n.__||Pe(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],$.__e(n,_.__v)}}),Ze&&Ze(e,t)},$.unmount=function(e){Je&&Je(e);var t,_=e.__c;_&&_.__H&&(_.__H.__.some(function(n){try{ne(n)}catch(o){t=o}}),_.__H=void 0,t&&$.__e(t,_.__v))};var Qe=typeof requestAnimationFrame=="function";function A_(e){var t,_=function(){clearTimeout(n),Qe&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(_,35);Qe&&(t=requestAnimationFrame(_))}function ne(e){var t=b,_=e.__c;typeof _=="function"&&(e.__c=void 0,_()),b=t}function Pe(e){var t=b;e.__c=e.__(),b=t}function Me(e,t){return!e||e.length!==t.length||t.some(function(_,n){return _!==e[n]})}function qt(e,t){return typeof t=="function"?t(e):t}function Gt(e,t){for(var _ in t)e[_]=t[_];return e}function Se(e,t){for(var _ in e)if(_!=="__source"&&!(_ in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function Zt(e,t){var _=t(),n=De({t:{__:_,u:t}}),o=n[0].t,r=n[1];return ee(function(){o.__=_,o.u=t,ye(o)&&r({t:o})},[e,_,t]),We(function(){return ye(o)&&r({t:o}),e(function(){ye(o)&&r({t:o})})},[e]),_}function ye(e){try{return!((t=e.__)===(_=e.u())&&(t!==0||1/t==1/_)||t!=t&&_!=_)}catch{return!0}var t,_}function Jt(e){e()}function Kt(e){return e}function Qt(){return[!1,Jt]}var Yt=ee;function Ne(e,t){this.props=e,this.context=t}function R_(e,t){function _(o){var r=this.props.ref,i=r==o.ref;return!i&&r&&(r.call?r(null):r.current=null),t?!t(this.props,o)||!i:Se(this.props,o)}function n(o){return this.shouldComponentUpdate=_,A(e,o)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n.type=e,n}(Ne.prototype=new E).isPureReactComponent=!0,Ne.prototype.shouldComponentUpdate=function(e,t){return Se(this.props,e)||Se(this.state,t)};var Ye=m.__b;m.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ye&&Ye(e)};var D_=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function O_(e){function t(_){var n=Gt({},_);return delete n.ref,e(n,_.ref||null)}return t.$$typeof=D_,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Xe=function(e,t){return e==null?null:H(H(e).map(t))},W_={map:Xe,forEach:Xe,count:function(e){return e?H(e).length:0},only:function(e){var t=H(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:H},M_=m.__e;m.__e=function(e,t,_,n){if(e.then){for(var o,r=t;r=r.__;)if((o=r.__c)&&o.__c)return t.__e==null&&(t.__e=_.__e,t.__k=_.__k),o.__c(e,t)}M_(e,t,_,n)};var et=m.unmount;function Xt(e,t,_){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=Gt({},e)).__c!=null&&(e.__c.__P===_&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Xt(n,t,_)})),e}function e_(e,t,_){return e&&_&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return e_(n,t,_)}),e.__c&&e.__c.__P===t&&(e.__e&&_.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=_)),e}function re(){this.__u=0,this.o=null,this.__b=null}function t_(e){if(!e.__)return null;var t=e.__.__c;return t&&t.__a&&t.__a(e)}function L_(e){var t,_,n,o=null;function r(i){if(t||(t=e()).then(function(l){l&&(o=l.default||l),n=!0},function(l){_=l,n=!0}),_)throw _;if(!n)throw t;return o?A(o,i):null}return r.displayName="Lazy",r.__f=!0,r}function G(){this.i=null,this.l=null}m.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),et&&et(e)},(re.prototype=new E).__c=function(e,t){var _=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(_);var o=t_(n.__v),r=!1,i=function(){r||n.__z||(r=!0,_.__R=null,o?o(s):s())};_.__R=i;var l=_.__P;_.__P=null;var s=function(){if(!--n.__u){if(n.state.__a){var a=n.state.__a;n.__v.__k[0]=e_(a,a.__c.__P,a.__c.__O)}var u;for(n.setState({__a:n.__b=null});u=n.o.pop();)u.__P=l,u.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(i,i)},re.prototype.componentWillUnmount=function(){this.o=[]},re.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var _=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Xt(this.__b,_,n.__O=n.__P)}this.__b=null}var o=t.__a&&A(R,null,e.fallback);return o&&(o.__u&=-33),[A(R,null,t.__a?null:e.children),o]};var tt=function(e,t,_){if(++_[1]===_[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(_=e.i;_;){for(;_.length>3;)_.pop()();if(_[1]<_[0])break;e.i=_=_[2]}};function F_(e){return this.getChildContext=function(){return e.context},e.children}function I_(e){var t=this,_=e.h;if(t.componentWillUnmount=function(){J(null,t.v),t.v=null,t.h=null},t.h&&t.h!==_&&t.componentWillUnmount(),!t.v){for(var n=t.__v;n!==null&&!n.__m&&n.__!==null;)n=n.__;t.h=_,t.v={nodeType:1,parentNode:_,childNodes:[],__k:{__m:n.__m},contains:function(){return!0},namespaceURI:_.namespaceURI,insertBefore:function(o,r){this.childNodes.push(o),t.h.insertBefore(o,r)},removeChild:function(o){this.childNodes.splice(this.childNodes.indexOf(o)>>>1,1),t.h.removeChild(o)}}}J(A(F_,{context:t.context},e.__v),t.v)}function V_(e,t){var _=A(I_,{__v:e,h:t});return _.containerInfo=t,_}(G.prototype=new E).__a=function(e){var t=this,_=t_(t.__v),n=t.l.get(e);return n[0]++,function(o){var r=function(){t.props.revealOrder?(n.push(o),tt(t,e,n)):o()};_?_(r):r()}},G.prototype.render=function(e){this.i=null,this.l=new Map;var t=H(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var _=t.length;_--;)this.l.set(t[_],this.i=[1,0,this.i]);return e.children},G.prototype.componentDidUpdate=G.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,_){tt(e,_,t)})};var __=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,B_=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,j_=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,z_=/[A-Z0-9]/g,q_=typeof document<"u",G_=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function n_(e,t,_){return t.__k==null&&(t.textContent=""),J(e,t),typeof _=="function"&&_(),e?e.__c:null}function Z_(e,t,_){return Mt(e,t),typeof _=="function"&&_(),e?e.__c:null}E.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(E.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var _t=m.event;function J_(){}function K_(){return this.cancelBubble}function Q_(){return this.defaultPrevented}m.event=function(e){return _t&&(e=_t(e)),e.persist=J_,e.isPropagationStopped=K_,e.isDefaultPrevented=Q_,e.nativeEvent=e};var Le,Y_={enumerable:!1,configurable:!0,get:function(){return this.class}},nt=m.vnode;m.vnode=function(e){typeof e.type=="string"&&(function(t){var _=t.props,n=t.type,o={},r=n.indexOf("-")===-1;for(var i in _){var l=_[i];if(!(i==="value"&&"defaultValue"in _&&l==null||q_&&i==="children"&&n==="noscript"||i==="class"||i==="className")){var s=i.toLowerCase();i==="defaultValue"&&"value"in _&&_.value==null?i="value":i==="download"&&l===!0?l="":s==="translate"&&l==="no"?l=!1:s[0]==="o"&&s[1]==="n"?s==="ondoubleclick"?i="ondblclick":s!=="onchange"||n!=="input"&&n!=="textarea"||G_(_.type)?s==="onfocus"?i="onfocusin":s==="onblur"?i="onfocusout":j_.test(i)&&(i=s):s=i="oninput":r&&B_.test(i)?i=i.replace(z_,"-$&").toLowerCase():l===null&&(l=void 0),s==="oninput"&&o[i=s]&&(i="oninputCapture"),o[i]=l}}n=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=H(_.children).forEach(function(a){a.props.selected=o.value.indexOf(a.props.value)!=-1})),n=="select"&&o.defaultValue!=null&&(o.value=H(_.children).forEach(function(a){a.props.selected=o.multiple?o.defaultValue.indexOf(a.props.value)!=-1:o.defaultValue==a.props.value})),_.class&&!_.className?(o.class=_.class,Object.defineProperty(o,"className",Y_)):_.className&&(o.class=o.className=_.className),t.props=o})(e),e.$$typeof=__,nt&&nt(e)};var rt=m.__r;m.__r=function(e){rt&&rt(e),Le=e.__c};var ot=m.diffed;m.diffed=function(e){ot&&ot(e);var t=e.props,_=e.__e;_!=null&&e.type==="textarea"&&"value"in t&&t.value!==_.value&&(_.value=t.value==null?"":t.value),Le=null};var X_={ReactCurrentDispatcher:{current:{readContext:function(e){return Le.__n[e.__c].props.value},useCallback:Vt,useContext:Bt,useDebugValue:jt,useDeferredValue:Kt,useEffect:We,useId:zt,useImperativeHandle:It,useInsertionEffect:Yt,useLayoutEffect:ee,useMemo:he,useReducer:Oe,useRef:Ft,useState:De,useSyncExternalStore:Zt,useTransition:Qt}}};function en(e){return A.bind(null,e)}function de(e){return!!e&&e.$$typeof===__}function tn(e){return de(e)&&e.type===R}function _n(e){return!!e&&typeof e.displayName=="string"&&e.displayName.startsWith("Memo(")}function nn(e){return de(e)?E_.apply(null,arguments):e}function r_(e){return!!e.__k&&(J(null,e),!0)}function rn(e){return e&&(e.base||e.nodeType===1&&e)||null}var on=function(e,t){return e(t)},un=function(e,t){return e(t)},ln=R,cn=de,Un={useState:De,useId:zt,useReducer:Oe,useEffect:We,useLayoutEffect:ee,useInsertionEffect:Yt,useTransition:Qt,useDeferredValue:Kt,useSyncExternalStore:Zt,startTransition:Jt,useRef:Ft,useImperativeHandle:It,useMemo:he,useCallback:Vt,useContext:Bt,useDebugValue:jt,version:"18.3.1",Children:W_,render:n_,hydrate:Z_,unmountComponentAtNode:r_,createPortal:V_,createElement:A,createContext:U_,createFactory:en,cloneElement:nn,createRef:C_,Fragment:R,isValidElement:de,isElement:cn,isFragment:tn,isMemo:_n,findDOMNode:rn,Component:E,PureComponent:Ne,memo:R_,forwardRef:O_,flushSync:un,unstable_batchedUpdates:on,StrictMode:ln,Suspense:re,SuspenseList:G,lazy:L_,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:X_};function Hn(e){return{render:function(t){n_(t,e)},unmount:function(){r_(e)}}}var ve,d,o_,an,j,F,ut,u_,i_,ae={},l_=[],fn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function O(e,t){for(var _ in t)e[_]=t[_];return e}function c_(e){var t=e.parentNode;t&&t.removeChild(e)}function K(e,t,_){var n,o,r,i={};for(r in t)r=="key"?n=t[r]:r=="ref"?o=t[r]:i[r]=t[r];if(arguments.length>2&&(i.children=arguments.length>3?ve.call(arguments,2):_),typeof e=="function"&&e.defaultProps!=null)for(r in e.defaultProps)i[r]===void 0&&(i[r]=e.defaultProps[r]);return oe(e,i,n,o,null)}function oe(e,t,_,n,o){var r={type:e,props:t,key:_,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o??++o_};return o==null&&d.vnode!=null&&d.vnode(r),r}function Tn(){return{current:null}}function z(e){return e.children}function sn(e,t,_,n,o){var r;for(r in _)r==="children"||r==="key"||r in t||fe(e,r,null,_[r],n);for(r in t)o&&typeof t[r]!="function"||r==="children"||r==="key"||r==="value"||r==="checked"||_[r]===t[r]||fe(e,r,t[r],_[r],n)}function it(e,t,_){t[0]==="-"?e.setProperty(t,_??""):e[t]=_==null?"":typeof _!="number"||fn.test(t)?_:_+"px"}function fe(e,t,_,n,o){var r;e:if(t==="style")if(typeof _=="string")e.style.cssText=_;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)_&&t in _||it(e.style,t,"");if(_)for(t in _)n&&_[t]===n[t]||it(e.style,t,_[t])}else if(t[0]==="o"&&t[1]==="n")r=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+r]=_,_?n||e.addEventListener(t,r?ct:lt,r):e.removeEventListener(t,r?ct:lt,r);else if(t!=="dangerouslySetInnerHTML"){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t in e)try{e[t]=_??"";break e}catch{}typeof _=="function"||(_==null||_===!1&&t.indexOf("-")==-1?e.removeAttribute(t):e.setAttribute(t,_))}}function lt(e){j=!0;try{return this.l[e.type+!1](d.event?d.event(e):e)}finally{j=!1}}function ct(e){j=!0;try{return this.l[e.type+!0](d.event?d.event(e):e)}finally{j=!1}}function T(e,t){this.props=e,this.context=t}function Q(e,t){if(t==null)return e.__?Q(e.__,e.__.__k.indexOf(e)+1):null;for(var _;t<e.__k.length;t++)if((_=e.__k[t])!=null&&_.__e!=null)return _.__e;return typeof e.type=="function"?Q(e):null}function a_(e){var t,_;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((_=e.__k[t])!=null&&_.__e!=null){e.__e=e.__c.base=_.__e;break}return a_(e)}}function pn(e){j?setTimeout(e):u_(e)}function Ee(e){(!e.__d&&(e.__d=!0)&&F.push(e)&&!se.__r++||ut!==d.debounceRendering)&&((ut=d.debounceRendering)||pn)(se)}function se(){var e,t,_,n,o,r,i,l;for(F.sort(function(s,a){return s.__v.__b-a.__v.__b});e=F.shift();)e.__d&&(t=F.length,n=void 0,o=void 0,i=(r=(_=e).__v).__e,(l=_.__P)&&(n=[],(o=O({},r)).__v=r.__v+1,Fe(l,r,o,_.__n,l.ownerSVGElement!==void 0,r.__h!=null?[i]:null,n,i??Q(r),r.__h),d_(n,r),r.__e!=i&&a_(r)),F.length>t&&F.sort(function(s,a){return s.__v.__b-a.__v.__b}));se.__r=0}function f_(e,t,_,n,o,r,i,l,s,a){var u,c,p,f,h,k,y,v=n&&n.__k||l_,g=v.length;for(_.__k=[],u=0;u<t.length;u++)if((f=_.__k[u]=(f=t[u])==null||typeof f=="boolean"?null:typeof f=="string"||typeof f=="number"||typeof f=="bigint"?oe(null,f,null,null,f):Array.isArray(f)?oe(z,{children:f},null,null,null):f.__b>0?oe(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)!=null){if(f.__=_,f.__b=_.__b+1,(p=v[u])===null||p&&f.key==p.key&&f.type===p.type)v[u]=void 0;else for(c=0;c<g;c++){if((p=v[c])&&f.key==p.key&&f.type===p.type){v[c]=void 0;break}p=null}Fe(e,f,p=p||ae,o,r,i,l,s,a),h=f.__e,(c=f.ref)&&p.ref!=c&&(y||(y=[]),p.ref&&y.push(p.ref,null,f),y.push(c,f.__c||h,f)),h!=null?(k==null&&(k=h),typeof f.type=="function"&&f.__k===p.__k?f.__d=s=s_(f,s,e):s=p_(e,f,p,v,h,s),typeof _.type=="function"&&(_.__d=s)):s&&p.__e==s&&s.parentNode!=e&&(s=Q(p))}for(_.__e=k,u=g;u--;)v[u]!=null&&(typeof _.type=="function"&&v[u].__e!=null&&v[u].__e==_.__d&&(_.__d=h_(n).nextSibling),m_(v[u],v[u]));if(y)for(u=0;u<y.length;u++)v_(y[u],y[++u],y[++u])}function s_(e,t,_){for(var n,o=e.__k,r=0;o&&r<o.length;r++)(n=o[r])&&(n.__=e,t=typeof n.type=="function"?s_(n,t,_):p_(_,n,n,o,n.__e,t));return t}function pe(e,t){return t=t||[],e==null||typeof e=="boolean"||(Array.isArray(e)?e.some(function(_){pe(_,t)}):t.push(e)),t}function p_(e,t,_,n,o,r){var i,l,s;if(t.__d!==void 0)i=t.__d,t.__d=void 0;else if(_==null||o!=r||o.parentNode==null)e:if(r==null||r.parentNode!==e)e.appendChild(o),i=null;else{for(l=r,s=0;(l=l.nextSibling)&&s<n.length;s+=1)if(l==o)break e;e.insertBefore(o,r),i=r}return i!==void 0?i:o.nextSibling}function h_(e){var t,_,n;if(e.type==null||typeof e.type=="string")return e.__e;if(e.__k){for(t=e.__k.length-1;t>=0;t--)if((_=e.__k[t])&&(n=h_(_)))return n}return null}function Fe(e,t,_,n,o,r,i,l,s){var a,u,c,p,f,h,k,y,v,g,w,P,D,M,U,C=t.type;if(t.constructor!==void 0)return null;_.__h!=null&&(s=_.__h,l=t.__e=_.__e,t.__h=null,r=[l]),(a=d.__b)&&a(t);try{e:if(typeof C=="function"){if(y=t.props,v=(a=C.contextType)&&n[a.__c],g=a?v?v.props.value:a.__:n,_.__c?k=(u=t.__c=_.__c).__=u.__E:("prototype"in C&&C.prototype.render?t.__c=u=new C(y,g):(t.__c=u=new T(y,g),u.constructor=C,u.render=dn),v&&v.sub(u),u.props=y,u.state||(u.state={}),u.context=g,u.__n=n,c=u.__d=!0,u.__h=[],u._sb=[]),u.__s==null&&(u.__s=u.state),C.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=O({},u.__s)),O(u.__s,C.getDerivedStateFromProps(y,u.__s))),p=u.props,f=u.state,u.__v=t,c)C.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(C.getDerivedStateFromProps==null&&y!==p&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(y,g),!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(y,u.__s,g)===!1||t.__v===_.__v){for(t.__v!==_.__v&&(u.props=y,u.state=u.__s,u.__d=!1),t.__e=_.__e,t.__k=_.__k,t.__k.forEach(function(x){x&&(x.__=t)}),w=0;w<u._sb.length;w++)u.__h.push(u._sb[w]);u._sb=[],u.__h.length&&i.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(y,u.__s,g),u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(p,f,h)})}if(u.context=g,u.props=y,u.__P=e,P=d.__r,D=0,"prototype"in C&&C.prototype.render){for(u.state=u.__s,u.__d=!1,P&&P(t),a=u.render(u.props,u.state,u.context),M=0;M<u._sb.length;M++)u.__h.push(u._sb[M]);u._sb=[]}else do u.__d=!1,P&&P(t),a=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++D<25);u.state=u.__s,u.getChildContext!=null&&(n=O(O({},n),u.getChildContext())),c||u.getSnapshotBeforeUpdate==null||(h=u.getSnapshotBeforeUpdate(p,f)),U=a!=null&&a.type===z&&a.key==null?a.props.children:a,f_(e,Array.isArray(U)?U:[U],t,_,n,o,r,i,l,s),u.base=t.__e,t.__h=null,u.__h.length&&i.push(u),k&&(u.__E=u.__=null),u.__e=!1}else r==null&&t.__v===_.__v?(t.__k=_.__k,t.__e=_.__e):t.__e=hn(_.__e,t,_,n,o,r,i,s);(a=d.diffed)&&a(t)}catch(x){t.__v=null,(s||r!=null)&&(t.__e=l,t.__h=!!s,r[r.indexOf(l)]=null),d.__e(x,t,_)}}function d_(e,t){d.__c&&d.__c(t,e),e.some(function(_){try{e=_.__h,_.__h=[],e.some(function(n){n.call(_)})}catch(n){d.__e(n,_.__v)}})}function hn(e,t,_,n,o,r,i,l){var s,a,u,c=_.props,p=t.props,f=t.type,h=0;if(f==="svg"&&(o=!0),r!=null){for(;h<r.length;h++)if((s=r[h])&&"setAttribute"in s==!!f&&(f?s.localName===f:s.nodeType===3)){e=s,r[h]=null;break}}if(e==null){if(f===null)return document.createTextNode(p);e=o?document.createElementNS("http://www.w3.org/2000/svg",f):document.createElement(f,p.is&&p),r=null,l=!1}if(f===null)c===p||l&&e.data===p||(e.data=p);else{if(r=r&&ve.call(e.childNodes),a=(c=_.props||ae).dangerouslySetInnerHTML,u=p.dangerouslySetInnerHTML,!l){if(r!=null)for(c={},h=0;h<e.attributes.length;h++)c[e.attributes[h].name]=e.attributes[h].value;(u||a)&&(u&&(a&&u.__html==a.__html||u.__html===e.innerHTML)||(e.innerHTML=u&&u.__html||""))}if(sn(e,p,c,o,l),u)t.__k=[];else if(h=t.props.children,f_(e,Array.isArray(h)?h:[h],t,_,n,o&&f!=="foreignObject",r,i,r?r[0]:_.__k&&Q(_,0),l),r!=null)for(h=r.length;h--;)r[h]!=null&&c_(r[h]);l||("value"in p&&(h=p.value)!==void 0&&(h!==e.value||f==="progress"&&!h||f==="option"&&h!==c.value)&&fe(e,"value",h,c.value,!1),"checked"in p&&(h=p.checked)!==void 0&&h!==e.checked&&fe(e,"checked",h,c.checked,!1))}return e}function v_(e,t,_){try{typeof e=="function"?e(t):e.current=t}catch(n){d.__e(n,_)}}function m_(e,t,_){var n,o;if(d.unmount&&d.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||v_(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(r){d.__e(r,t)}n.base=n.__P=null,e.__c=void 0}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&m_(n[o],t,_||typeof e.type!="function");_||e.__e==null||c_(e.__e),e.__=e.__e=e.__d=void 0}function dn(e,t,_){return this.constructor(e,_)}function at(e,t,_){var n,o,r;d.__&&d.__(e,t),o=(n=!1)?null:t.__k,r=[],Fe(t,e=t.__k=K(z,null,[e]),o||ae,ae,t.ownerSVGElement!==void 0,o?null:t.firstChild?ve.call(t.childNodes):null,r,o?o.__e:t.firstChild,n),d_(r,e)}function An(e,t){var _={__c:t="__cC"+i_++,__:e,Consumer:function(n,o){return n.children(o)},Provider:function(n){var o,r;return this.getChildContext||(o=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&o.some(function(l){l.__e=!0,Ee(l)})},this.sub=function(i){o.push(i);var l=i.componentWillUnmount;i.componentWillUnmount=function(){o.splice(o.indexOf(i),1),l&&l.call(i)}}),n.children}};return _.Provider.__=_.Consumer.contextType=_}ve=l_.slice,d={__e:function(e,t,_,n){for(var o,r,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((r=o.constructor)&&r.getDerivedStateFromError!=null&&(o.setState(r.getDerivedStateFromError(e)),i=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,n||{}),i=o.__d),i)return o.__E=o}catch(l){e=l}throw e}},o_=0,an=function(e){return e!=null&&e.constructor===void 0},j=!1,T.prototype.setState=function(e,t){var _;_=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=O({},this.state),typeof e=="function"&&(e=e(O({},_),this.props)),e&&O(_,e),e!=null&&this.__v&&(t&&this._sb.push(t),Ee(this))},T.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ee(this))},T.prototype.render=z,F=[],u_=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,se.__r=0,i_=0;var S,ge,ft,y_=[],be=[],st=d.__b,pt=d.__r,ht=d.diffed,dt=d.__c,vt=d.unmount;function vn(){for(var e;e=y_.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ue),e.__H.__h.forEach(Ue),e.__H.__h=[]}catch(t){e.__H.__h=[],d.__e(t,e.__v)}}d.__b=function(e){S=null,st&&st(e)},d.__r=function(e){pt&&pt(e);var t=(S=e.__c).__H;t&&(ge===S?(t.__h=[],S.__h=[],t.__.forEach(function(_){_.__N&&(_.__=_.__N),_.__V=be,_.__N=_.i=void 0})):(t.__h.forEach(ue),t.__h.forEach(Ue),t.__h=[])),ge=S},d.diffed=function(e){ht&&ht(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(y_.push(t)!==1&&ft===d.requestAnimationFrame||((ft=d.requestAnimationFrame)||mn)(vn)),t.__H.__.forEach(function(_){_.i&&(_.__H=_.i),_.__V!==be&&(_.__=_.__V),_.i=void 0,_.__V=be})),ge=S=null},d.__c=function(e,t){t.some(function(_){try{_.__h.forEach(ue),_.__h=_.__h.filter(function(n){return!n.__||Ue(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],d.__e(n,_.__v)}}),dt&&dt(e,t)},d.unmount=function(e){vt&&vt(e);var t,_=e.__c;_&&_.__H&&(_.__H.__.forEach(function(n){try{ue(n)}catch(o){t=o}}),_.__H=void 0,t&&d.__e(t,_.__v))};var mt=typeof requestAnimationFrame=="function";function mn(e){var t,_=function(){clearTimeout(n),mt&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(_,100);mt&&(t=requestAnimationFrame(_))}function ue(e){var t=S,_=e.__c;typeof _=="function"&&(e.__c=void 0,_()),S=t}function Ue(e){var t=S;e.__c=e.__(),S=t}function yn(e,t){for(var _ in t)e[_]=t[_];return e}function yt(e,t){for(var _ in e)if(_!=="__source"&&!(_ in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function gt(e){this.props=e}(gt.prototype=new T).isPureReactComponent=!0,gt.prototype.shouldComponentUpdate=function(e,t){return yt(this.props,e)||yt(this.state,t)};var bt=d.__b;d.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),bt&&bt(e)};var gn=d.__e;d.__e=function(e,t,_,n){if(e.then){for(var o,r=t;r=r.__;)if((o=r.__c)&&o.__c)return t.__e==null&&(t.__e=_.__e,t.__k=_.__k),o.__c(e,t)}gn(e,t,_,n)};var $t=d.unmount;function g_(e,t,_){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=yn({},e)).__c!=null&&(e.__c.__P===_&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return g_(n,t,_)})),e}function b_(e,t,_){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return b_(n,t,_)}),e.__c&&e.__c.__P===t&&(e.__e&&_.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=_)),e}function $e(){this.__u=0,this.t=null,this.__b=null}function $_(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function _e(){this.u=null,this.o=null}d.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),$t&&$t(e)},($e.prototype=new T).__c=function(e,t){var _=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(_);var o=$_(n.__v),r=!1,i=function(){r||(r=!0,_.__R=null,o?o(l):l())};_.__R=i;var l=function(){if(!--n.__u){if(n.state.__a){var a=n.state.__a;n.__v.__k[0]=b_(a,a.__c.__P,a.__c.__O)}var u;for(n.setState({__a:n.__b=null});u=n.t.pop();)u.forceUpdate()}},s=t.__h===!0;n.__u++||s||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(i,i)},$e.prototype.componentWillUnmount=function(){this.t=[]},$e.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var _=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=g_(this.__b,_,n.__O=n.__P)}this.__b=null}var o=t.__a&&K(z,null,e.fallback);return o&&(o.__h=null),[K(z,null,t.__a?null:e.children),o]};var kt=function(e,t,_){if(++_[1]===_[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(_=e.u;_;){for(;_.length>3;)_.pop()();if(_[1]<_[0])break;e.u=_=_[2]}};function bn(e){return this.getChildContext=function(){return e.context},e.children}function $n(e){var t=this,_=e.i;t.componentWillUnmount=function(){at(null,t.l),t.l=null,t.i=null},t.i&&t.i!==_&&t.componentWillUnmount(),e.__v?(t.l||(t.i=_,t.l={nodeType:1,parentNode:_,childNodes:[],appendChild:function(n){this.childNodes.push(n),t.i.appendChild(n)},insertBefore:function(n,o){this.childNodes.push(n),t.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),t.i.removeChild(n)}}),at(K(bn,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function Rn(e,t){var _=K($n,{__v:e,i:t});return _.containerInfo=t,_}(_e.prototype=new T).__a=function(e){var t=this,_=$_(t.__v),n=t.o.get(e);return n[0]++,function(o){var r=function(){t.props.revealOrder?(n.push(o),kt(t,e,n)):o()};_?_(r):r()}},_e.prototype.render=function(e){this.u=null,this.o=new Map;var t=pe(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var _=t.length;_--;)this.o.set(t[_],this.u=[1,0,this.u]);return e.children},_e.prototype.componentDidUpdate=_e.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,_){kt(e,_,t)})};var kn=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Cn=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,xn=typeof document<"u",wn=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(e)};T.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(T.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Ct=d.event;function Pn(){}function Sn(){return this.cancelBubble}function Nn(){return this.defaultPrevented}d.event=function(e){return Ct&&(e=Ct(e)),e.persist=Pn,e.isPropagationStopped=Sn,e.isDefaultPrevented=Nn,e.nativeEvent=e};var xt={configurable:!0,get:function(){return this.class}},wt=d.vnode;d.vnode=function(e){var t=e.type,_=e.props,n=_;if(typeof t=="string"){var o=t.indexOf("-")===-1;for(var r in n={},_){var i=_[r];xn&&r==="children"&&t==="noscript"||r==="value"&&"defaultValue"in _&&i==null||(r==="defaultValue"&&"value"in _&&_.value==null?r="value":r==="download"&&i===!0?i="":/ondoubleclick/i.test(r)?r="ondblclick":/^onchange(textarea|input)/i.test(r+t)&&!wn(_.type)?r="oninput":/^onfocus$/i.test(r)?r="onfocusin":/^onblur$/i.test(r)?r="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(r)?r=r.toLowerCase():o&&Cn.test(r)?r=r.replace(/[A-Z0-9]/g,"-$&").toLowerCase():i===null&&(i=void 0),/^oninput$/i.test(r)&&(r=r.toLowerCase(),n[r]&&(r="oninputCapture")),n[r]=i)}t=="select"&&n.multiple&&Array.isArray(n.value)&&(n.value=pe(_.children).forEach(function(l){l.props.selected=n.value.indexOf(l.props.value)!=-1})),t=="select"&&n.defaultValue!=null&&(n.value=pe(_.children).forEach(function(l){l.props.selected=n.multiple?n.defaultValue.indexOf(l.props.value)!=-1:n.defaultValue==l.props.value})),e.props=n,_.class!=_.className&&(xt.enumerable="className"in _,_.className!=null&&(n.class=_.className),Object.defineProperty(n,"className",xt))}e.$$typeof=kn,wt&&wt(e)};var Pt=d.__r;d.__r=function(e){Pt&&Pt(e),e.__c};export{V_ as $,Ft as A,Zt as C,at as D,un as E,An as G,Yt as I,Ne as N,W_ as O,U_ as R,he as T,z as _,E as a,C_ as b,Un as c,Tn as d,We as e,Bt as f,De as g,zt as h,an as i,Rn as j,nn as k,d as l,de as m,ee as n,R as o,O_ as p,Vt as q,A as r,Oe as s,Hn as t,En as u,ln as v,T as x,K as y};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as C,
|
|
1
|
+
import{R as C,e as g,u as L,f as S,T as k,g as w,C as Q,q as p}from"./preact-vendor-CWXGD9A4.js";import{s as O,n as b,a as M,Q as P,b as D,i as V,M as W}from"./vendor-Bw8uHUnC.js";var I=C(void 0),_=e=>{const s=S(I);if(!s)throw new Error("No QueryClient set, use QueryClientProvider to set one");return s},Y=({client:e,children:s})=>(g(()=>(e.mount(),()=>{e.unmount()}),[e]),L(I.Provider,{value:e,children:s})),q=C(!1),x=()=>S(q);q.Provider;function j(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var z=C(j()),N=()=>S(z),B=(e,s,o)=>{const t=o?.state.error&&typeof e.throwOnError=="function"?O(e.throwOnError,[o.state.error,o]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||t)&&(s.isReset()||(e.retryOnMount=!1))},H=e=>{g(()=>{e.clearReset()},[e])},U=({result:e,errorResetBoundary:s,throwOnError:o,query:t,suspense:n})=>e.isError&&!s.isReset()&&!e.isFetching&&t&&(n&&e.data===void 0||O(o,[e.error,t])),A=e=>{if(e.suspense){const o=n=>n==="static"?n:Math.max(n??1e3,1e3),t=e.staleTime;e.staleTime=typeof t=="function"?(...n)=>o(t(...n)):o(t),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},G=(e,s)=>e.isLoading&&e.isFetching&&!s,E=(e,s)=>e?.suspense&&s.isPending,v=(e,s,o)=>s.fetchOptimistic(e).catch(()=>{o.clearReset()});function Z({queries:e,...s},o){const t=_(),n=x(),u=N(),r=k(()=>e.map(a=>{const l=t.defaultQueryOptions(a);return l._optimisticResults=n?"isRestoring":"optimistic",l}),[e,t,n]);r.forEach(a=>{A(a);const l=t.getQueryCache().get(a.queryHash);B(a,u,l)}),H(u);const[c]=w(()=>new D(t,r,s)),[m,i,h]=c.getOptimisticResult(r,s.combine),y=!n&&s.subscribed!==!1;Q(p(a=>y?c.subscribe(M.batchCalls(a)):b,[c,y]),()=>c.getCurrentResult()),g(()=>{c.setQueries(r,s)},[r,s,c]);const R=m.some((a,l)=>E(r[l],a))?m.flatMap((a,l)=>{const f=r[l];if(f&&E(f,a)){const F=new P(t,f);return v(f,F,u)}return[]}):[];if(R.length>0)throw Promise.all(R);const T=m.find((a,l)=>{const f=r[l];return f&&U({result:a,errorResetBoundary:u,throwOnError:f.throwOnError,query:t.getQueryCache().get(f.queryHash),suspense:f.suspense})});if(T?.error)throw T.error;return i(h())}function J(e,s,o){const t=x(),n=N(),u=_(),r=u.defaultQueryOptions(e);u.getDefaultOptions().queries?._experimental_beforeQuery?.(r);const c=u.getQueryCache().get(r.queryHash);r._optimisticResults=t?"isRestoring":"optimistic",A(r),B(r,n,c),H(n);const m=!u.getQueryCache().get(r.queryHash),[i]=w(()=>new s(u,r)),h=i.getOptimisticResult(r),y=!t&&e.subscribed!==!1;if(Q(p(d=>{const R=y?i.subscribe(M.batchCalls(d)):b;return i.updateResult(),R},[i,y]),()=>i.getCurrentResult()),g(()=>{i.setOptions(r)},[r,i]),E(r,h))throw v(r,i,n);if(U({result:h,errorResetBoundary:n,throwOnError:r.throwOnError,query:c,suspense:r.suspense}))throw h.error;return u.getDefaultOptions().queries?._experimental_afterQuery?.(r,h),r.experimental_prefetchInRender&&!V&&G(h,t)&&(m?v(r,i,n):c?.promise)?.catch(b).finally(()=>{i.updateResult()}),r.notifyOnChangeProps?h:i.trackResult(h)}function $(e,s){return J(e,P)}function ee(e,s){const o=_(),[t]=w(()=>new W(o,e));g(()=>{t.setOptions(e)},[t,e]);const n=Q(p(r=>t.subscribe(M.batchCalls(r)),[t]),()=>t.getCurrentResult()),u=p((r,c)=>{t.mutate(r,c).catch(b)},[t]);if(n.error&&O(t.options.throwOnError,[n.error]))throw n.error;return{...n,mutate:u,mutateAsync:n.mutate}}export{Y as Q,_ as a,ee as b,Z as c,$ as u};
|