UNPKG

@react-form-builder/designer

Version:

React Form Library Drag and Drop.

2 lines 261 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="shortcut icon" type="image/x-icon" href="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA0MTAgNDA0Ij48cGF0aCBkPSJtMzk5LjYgNTkuNS0xODQgMzI5YTEwIDEwIDAgMCAxLTE3LjQuMUwxMC42IDU5LjZBMTAgMTAgMCAwIDEgMjEgNDQuOGwxODQuMiAzMi45cTEuOC4zIDMuNiAwTDM4OSA0NC44YTEwIDEwIDAgMCAxIDEwLjUgMTQuNyIgZmlsbD0idXJsKCNhKSIvPjxwYXRoIGQ9Ik0yOTMgMS42IDE1Ni44IDI4LjNhNSA1IDAgMCAwLTQgNC42bC04LjQgMTQxLjRhNSA1IDAgMCAwIDYuMSA1LjJsMzgtOC44YTUgNSAwIDAgMSA2IDZsLTExLjMgNTVhNSA1IDAgMCAwIDYuMyA1LjlsMjMuNC03LjJhNSA1IDAgMCAxIDYuNCA1LjhMMjAxLjQgMzIzYy0xLjEgNS40IDYgOC4zIDkgMy43bDIuMS0zLjEgMTExLTIyMS40QTUgNSAwIDAgMCAzMTggOTVsLTM5IDcuNmE1IDUgMCAwIDEtNS43LTYuM0wyOTguNyA4YzEtMy42LTItNy01LjctNi4zIiBmaWxsPSJ1cmwoI2IpIi8+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJhIiB4MT0iNiIgeTE9IjMzIiB4Mj0iMjM1IiB5Mj0iMzQ0IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agc3RvcC1jb2xvcj0iIzQxRDFGRiIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0JEMzRGRSIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJiIiB4MT0iMTk0LjciIHkxPSI4LjgiIHgyPSIyMzYuMSIgeTI9IjI5MyIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiNGRkVBODMiLz48c3RvcCBvZmZzZXQ9Ii4xIiBzdG9wLWNvbG9yPSIjRkZERDM1Ii8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjRkZBODAwIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PC9zdmc+" ><title>vite-bundle-analyzer</title> <script type="module">var e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g=function(e){function t(e){return(t=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e})(e)}return e.defineProperty=function(e,n,r){var i;return i=function(e,n){if(t(e)!=`object`||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n||`default`);if(t(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(n===`string`?String:Number)(e)}(n,`string`),(n=t(i)==`symbol`?i:i+``)in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e},e}({}),_={},v=[],y=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,b=Array.isArray;function x(e,t){for(var n in t)e[n]=t[n];return e}function S(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function C(e,t,n){var r,a,o,s={};for(o in t)o==`key`?r=t[o]:o==`ref`?a=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?i.call(arguments,2):n),typeof e==`function`&&e.defaultProps!=null)for(o in e.defaultProps)s[o]??(s[o]=e.defaultProps[o]);return w(e,s,r,a,null)}function w(e,t,n,r,i){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++o,__i:-1,__u:0};return i==null&&a.vnode!=null&&a.vnode(s),s}function T(e){return e.children}function E(e,t){this.props=e,this.context=t}function D(e,t){if(t==null)return e.__?D(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type==`function`?D(e):null}function O(e){(!e.__d&&(e.__d=!0)&&s.push(e)&&!k.__r++||c!=a.debounceRendering)&&((c=a.debounceRendering)||l)(k)}function k(){for(var e,t,n,r,i,o,c=1;s.length;)s.length>c&&s.sort(u),e=s.shift(),c=s.length,e.__d&&(t=void 0,r=(n=e.__v).__e,i=[],o=[],e.__P&&((t=x({},n)).__v=n.__v+1,a.vnode&&a.vnode(t),ne(e.__P,t,n,e.__n,e.__P.namespaceURI,32&n.__u?[r]:null,i,r??D(n),!!(32&n.__u),o),t.__v=n.__v,t.__.__k[t.__i]=t,re(i,t,o),t.__e!=r&&function e(t){var n,r;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if((r=t.__k[n])!=null&&r.__e!=null){t.__e=t.__c.base=r.__e;break}return e(t)}}(t)));k.__r=0}function A(e,t,n,r,i,o,s,c,l,u,d){var f,p,m,h,g,y,x=r&&r.__k||v,C=t.length;for(l=function(e,t,n,r,i){var o,s,c,l,u,d=n.length,f=d,p=0;for(e.__k=Array(i),o=0;o<i;o++)(s=t[o])!=null&&typeof s!=`boolean`&&typeof s!=`function`?(l=o+p,(s=e.__k[o]=typeof s==`string`||typeof s==`number`||typeof s==`bigint`||s.constructor==String?w(null,s,null,null,null):b(s)?w(T,{children:s},null,null,null):s.constructor==null&&s.__b>0?w(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,c=null,(u=s.__i=function(e,t,n,r){var i,a,o=e.key,s=e.type,c=t[n];if(c===null&&e.key==null||c&&o==c.key&&s==c.type&&!(2&c.__u))return n;if(r>+(c!=null&&(2&c.__u)==0))for(i=n-1,a=n+1;i>=0||a<t.length;){if(i>=0){if((c=t[i])&&!(2&c.__u)&&o==c.key&&s==c.type)return i;i--}if(a<t.length){if((c=t[a])&&!(2&c.__u)&&o==c.key&&s==c.type)return a;a++}}return-1}(s,n,l,f))!=-1&&(f--,(c=n[u])&&(c.__u|=2)),c==null||c.__v==null?(u==-1&&(i>d?p--:i<d&&p++),typeof s.type!=`function`&&(s.__u|=4)):u!=l&&(u==l-1?p--:u==l+1?p++:(u>l?p--:p++,s.__u|=4))):e.__k[o]=null;if(f)for(o=0;o<d;o++)(c=n[o])!=null&&!(2&c.__u)&&(c.__e==r&&(r=D(c)),function e(t,n,r){var i,o;if(a.unmount&&a.unmount(t),(i=t.ref)&&(i.current&&i.current!=t.__e||ie(i,null,n)),(i=t.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){a.__e(e,n)}i.base=i.__P=null}if(i=t.__k)for(o=0;o<i.length;o++)i[o]&&e(i[o],n,r||typeof t.type!=`function`);r||S(t.__e),t.__c=t.__=t.__e=void 0}(c,c));return r}(n,t,x,l,C),f=0;f<C;f++)(m=n.__k[f])!=null&&(p=m.__i==-1?_:x[m.__i]||_,m.__i=f,y=ne(e,m,p,i,o,s,c,l,u,d),h=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&ie(p.ref,null,m),d.push(m.ref,m.__c||h,m)),g==null&&h!=null&&(g=h),4&m.__u||p.__k===m.__k?l=function e(t,n,r){var i,a;if(typeof t.type==`function`){for(i=t.__k,a=0;i&&a<i.length;a++)i[a]&&(i[a].__=t,n=e(i[a],n,r));return n}t.__e!=n&&(n&&t.type&&!r.contains(n)&&(n=D(t)),r.insertBefore(t.__e,n||null),n=t.__e);do n&&=n.nextSibling;while(n!=null&&n.nodeType==8);return n}(m,l,e):typeof m.type==`function`&&y!==void 0?l=y:h&&(l=h.nextSibling),m.__u&=-7);return n.__e=g,l}function j(e,t){return t||=[],e==null||typeof e==`boolean`||(b(e)?e.some(function(e){j(e,t)}):t.push(e)),t}function M(e,t,n){t[0]==`-`?e.setProperty(t,n??``):e[t]=n==null?``:typeof n!=`number`||y.test(t)?n:n+`px`}function ee(e,t,n,r,i){var a;e:if(t==`style`)if(typeof n==`string`)e.style.cssText=n;else{if(typeof r==`string`&&(e.style.cssText=r=``),r)for(t in r)n&&t in n||M(e.style,t,``);if(n)for(t in n)r&&n[t]==r[t]||M(e.style,t,n[t])}else if(t[0]==`o`&&t[1]==`n`)a=t!=(t=t.replace(d,`$1`)),t=t.toLowerCase()in e||t==`onFocusOut`||t==`onFocusIn`?t.toLowerCase().slice(2):t.slice(2),e.l||={},e.l[t+a]=n,n?r?n.u=r.u:(n.u=f,e.addEventListener(t,a?m:p,a)):e.removeEventListener(t,a?m:p,a);else{if(i==`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]=n??``;break e}catch{}typeof n==`function`||(n==null||!1===n&&t[4]!=`-`?e.removeAttribute(t):e.setAttribute(t,t==`popover`&&n==1?``:n))}}function te(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=f++;else if(t.t<n.u)return;return n(a.event?a.event(t):t)}}}function ne(e,t,n,r,o,s,c,l,u,d){var f,p,m,h,g,v,y,C,w,O,k,j,M,te,ne,re,ie,N=t.type;if(t.constructor!=null)return null;128&n.__u&&(u=!!(32&n.__u),s=[l=t.__e=n.__e]),(f=a.__b)&&f(t);e:if(typeof N==`function`)try{if(C=t.props,w=`prototype`in N&&N.prototype.render,O=(f=N.contextType)&&r[f.__c],k=f?O?O.props.value:f.__:r,n.__c?y=(p=t.__c=n.__c).__=p.__E:(w?t.__c=p=new N(C,k):(t.__c=p=new E(C,k),p.constructor=N,p.render=ae),O&&O.sub(p),p.props=C,p.state||={},p.context=k,p.__n=r,m=p.__d=!0,p.__h=[],p._sb=[]),w&&p.__s==null&&(p.__s=p.state),w&&N.getDerivedStateFromProps!=null&&(p.__s==p.state&&(p.__s=x({},p.__s)),x(p.__s,N.getDerivedStateFromProps(C,p.__s))),h=p.props,g=p.state,p.__v=t,m)w&&N.getDerivedStateFromProps==null&&p.componentWillMount!=null&&p.componentWillMount(),w&&p.componentDidMount!=null&&p.__h.push(p.componentDidMount);else{if(w&&N.getDerivedStateFromProps==null&&C!==h&&p.componentWillReceiveProps!=null&&p.componentWillReceiveProps(C,k),!p.__e&&p.shouldComponentUpdate!=null&&!1===p.shouldComponentUpdate(C,p.__s,k)||t.__v==n.__v){for(t.__v!=n.__v&&(p.props=C,p.state=p.__s,p.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),j=0;j<p._sb.length;j++)p.__h.push(p._sb[j]);p._sb=[],p.__h.length&&c.push(p);break e}p.componentWillUpdate!=null&&p.componentWillUpdate(C,p.__s,k),w&&p.componentDidUpdate!=null&&p.__h.push(function(){p.componentDidUpdate(h,g,v)})}if(p.context=k,p.props=C,p.__P=e,p.__e=!1,M=a.__r,te=0,w){for(p.state=p.__s,p.__d=!1,M&&M(t),f=p.render(p.props,p.state,p.context),ne=0;ne<p._sb.length;ne++)p.__h.push(p._sb[ne]);p._sb=[]}else do p.__d=!1,M&&M(t),f=p.render(p.props,p.state,p.context),p.state=p.__s;while(p.__d&&++te<25);p.state=p.__s,p.getChildContext!=null&&(r=x(x({},r),p.getChildContext())),w&&!m&&p.getSnapshotBeforeUpdate!=null&&(v=p.getSnapshotBeforeUpdate(h,g)),re=f,f!=null&&f.type===T&&f.key==null&&(re=function e(t){return typeof t!=`object`||!t||t.__b&&t.__b>0?t:b(t)?t.map(e):x({},t)}(f.props.children)),l=A(e,b(re)?re:[re],t,n,r,o,s,c,l,u,d),p.base=t.__e,t.__u&=-161,p.__h.length&&c.push(p),y&&(p.__E=p.__=null)}catch(e){if(t.__v=null,u||s!=null)if(e.then){for(t.__u|=u?160:128;l&&l.nodeType==8&&l.nextSibling;)l=l.nextSibling;s[s.indexOf(l)]=null,t.__e=l}else for(ie=s.length;ie--;)S(s[ie]);else t.__e=n.__e,t.__k=n.__k;a.__e(e,t,n)}else s==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):l=t.__e=function(e,t,n,r,o,s,c,l,u){var d,f,p,m,h,g,v,y=n.props,x=t.props,C=t.type;if(C==`svg`?o=`http://www.w3.org/2000/svg`:C==`math`?o=`http://www.w3.org/1998/Math/MathML`:o||=`http://www.w3.org/1999/xhtml`,s!=null){for(d=0;d<s.length;d++)if((h=s[d])&&`setAttribute`in h==!!C&&(C?h.localName==C:h.nodeType==3)){e=h,s[d]=null;break}}if(e==null){if(C==null)return document.createTextNode(x);e=document.createElementNS(o,C,x.is&&x),l&&(a.__m&&a.__m(t,s),l=!1),s=null}if(C==null)y===x||l&&e.data==x||(e.data=x);else{if(s&&=i.call(e.childNodes),y=n.props||_,!l&&s!=null)for(y={},d=0;d<e.attributes.length;d++)y[(h=e.attributes[d]).name]=h.value;for(d in y)if(h=y[d],d!=`children`){if(d==`dangerouslySetInnerHTML`)p=h;else if(!(d in x)){if(d==`value`&&`defaultValue`in x||d==`checked`&&`defaultChecked`in x)continue;ee(e,d,null,h,o)}}for(d in x)h=x[d],d==`children`?m=h:d==`dangerouslySetInnerHTML`?f=h:d==`value`?g=h:d==`checked`?v=h:l&&typeof h!=`function`||y[d]===h||ee(e,d,h,y[d],o);if(f)l||p&&(f.__html==p.__html||f.__html==e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(p&&(e.innerHTML=``),A(t.type==`template`?e.content:e,b(m)?m:[m],t,n,r,C==`foreignObject`?`http://www.w3.org/1999/xhtml`:o,s,c,s?s[0]:n.__k&&D(n,0),l,u),s!=null)for(d=s.length;d--;)S(s[d]);l||(d=`value`,C==`progress`&&g==null?e.removeAttribute(`value`):g==null||g===e[d]&&(C!=`progress`||g)&&(C!=`option`||g==y[d])||ee(e,d,g,y[d],o),d=`checked`,v!=null&&v!=e[d]&&ee(e,d,v,y[d],o))}return e}(n.__e,t,n,r,o,s,c,u,d);return(f=a.diffed)&&f(t),128&t.__u?void 0:l}function re(e,t,n){for(var r=0;r<n.length;r++)ie(n[r],n[++r],n[++r]);a.__c&&a.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){a.__e(e,t.__v)}})}function ie(e,t,n){try{if(typeof e==`function`){var r=typeof e.__u==`function`;r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(e){a.__e(e,n)}}function ae(e,t,n){return this.constructor(e,n)}function N(e,t,n){var r,o,s,c;t==document&&(t=document.documentElement),a.__&&a.__(e,t),o=(r=typeof n==`function`)?null:n&&n.__k||t.__k,s=[],c=[],ne(t,e=(!r&&n||t).__k=C(T,null,[e]),o||_,_,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?i.call(t.childNodes):null,s,!r&&n?n:o?o.__e:t.firstChild,r,c),re(s,e,c)}function oe(e,t,n){var r,a,o,s,c=x({},e.props);for(o in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)o==`key`?r=t[o]:o==`ref`?a=t[o]:c[o]=t[o]==null&&s!=null?s[o]:t[o];return arguments.length>2&&(c.children=arguments.length>3?i.call(arguments,2):n),w(e.type,c,r||e.key,a||e.ref,null)}function se(e){function t(e){var n,r;return this.getChildContext||(n=new Set,(r={})[t.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&n.forEach(function(e){e.__e=!0,O(e)})},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}return t.__c=`__cC`+ h++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}i=v.slice,a={__e:function(e,t,n,r){for(var i,a,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(e)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),o=i.__d),o)return i.__E=i}catch(t){e=t}throw e}},o=0,E.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=x({},this.state),typeof e==`function`&&(e=e(x({},n),this.props)),e&&x(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),O(this))},E.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),O(this))},E.prototype.render=T,s=[],l=typeof Promise==`function`?Promise.prototype.then.bind(Promise.resolve()):setTimeout,u=function(e,t){return e.__v.__b-t.__v.__b},k.__r=0,d=/(PointerCapture)$|Capture$/i,f=0,p=te(!1),m=te(!0),h=0;var P,F,ce,le,ue=0,de=[],I=a,fe=I.__b,pe=I.__r,me=I.diffed,he=I.__c,ge=I.unmount,_e=I.__;function ve(e,t){I.__h&&I.__h(F,e,ue||t),ue=0;var n=F.__H||={__:[],__h:[]};return e>=n.__.length&&n.__.push({}),n.__[e]}function L(e){return ue=1,ye(Ae,e)}function ye(e,t,n){var r=ve(P++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Ae(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=F,!F.__f)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter(function(e){return!!e.__c});if(i.every(function(e){return!e.__N}))return!a||a.call(this,e,t,n);var o=r.__c.props!==e;return i.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}}),a&&a.call(this,e,t,n)||o};F.__f=!0;var a=F.shouldComponentUpdate,o=F.componentWillUpdate;F.componentWillUpdate=function(e,t,n){if(this.__e){var r=a;a=void 0,i(e,t,n),a=r}o&&o.call(this,e,t,n)},F.shouldComponentUpdate=i}return r.__N||r.__}function R(e,t){var n=ve(P++,3);!I.__s&&ke(n.__H,t)&&(n.__=e,n.u=t,F.__H.__h.push(n))}function be(e,t){var n=ve(P++,4);!I.__s&&ke(n.__H,t)&&(n.__=e,n.u=t,F.__h.push(n))}function z(e){return ue=5,B(function(){return{current:e}},[])}function xe(e,t,n){ue=6,be(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}},n==null?n:n.concat(e))}function B(e,t){var n=ve(P++,7);return ke(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function V(e,t){return ue=8,B(function(){return e},t)}function Se(e){var t=F.context[e.__c],n=ve(P++,9);return n.c=e,t?(n.__??(n.__=!0,t.sub(F)),t.props.value):e.__}function Ce(e,t){I.useDebugValue&&I.useDebugValue(t?t(e):e)}function we(){var e=ve(P++,11);if(!e.__){for(var t=F.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||=[0,0];e.__=`P`+n[0]+`-`+ n[1]++}return e.__}function Te(){for(var e;e=de.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(De),e.__H.__h.forEach(Oe),e.__H.__h=[]}catch(t){e.__H.__h=[],I.__e(t,e.__v)}}I.__b=function(e){F=null,fe&&fe(e)},I.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),_e&&_e(e,t)},I.__r=function(e){pe&&pe(e),P=0;var t=(F=e.__c).__H;t&&(ce===F?(t.__h=[],F.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.forEach(De),t.__h.forEach(Oe),t.__h=[],P=0)),ce=F},I.diffed=function(e){me&&me(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(de.push(t)!==1&&le===I.requestAnimationFrame||((le=I.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),Ee&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Ee&&(t=requestAnimationFrame(n))})(Te)),t.__H.__.forEach(function(e){e.u&&(e.__H=e.u),e.u=void 0})),ce=F=null},I.__c=function(e,t){t.some(function(e){try{e.__h.forEach(De),e.__h=e.__h.filter(function(e){return!e.__||Oe(e)})}catch(n){t.some(function(e){e.__h&&=[]}),t=[],I.__e(n,e.__v)}}),he&&he(e,t)},I.unmount=function(e){ge&&ge(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{De(e)}catch(e){t=e}}),n.__H=void 0,t&&I.__e(t,n.__v))};var Ee=typeof requestAnimationFrame==`function`;function De(e){var t=F,n=e.__c;typeof n==`function`&&(e.__c=void 0,n()),F=t}function Oe(e){var t=F;e.__c=e.__(),F=t}function ke(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function Ae(e,t){return typeof t==`function`?t(e):t}function je(e,t){for(var n in t)e[n]=t[n];return e}function Me(e,t){for(var n in e)if(n!==`__source`&&!(n in t))return!0;for(var r in t)if(r!==`__source`&&e[r]!==t[r])return!0;return!1}function Ne(e,t){var n=t(),r=L({t:{__:n,u:t}}),i=r[0].t,a=r[1];return be(function(){i.__=n,i.u=t,Pe(i)&&a({t:i})},[e,n,t]),R(function(){return Pe(i)&&a({t:i}),e(function(){Pe(i)&&a({t:i})})},[e]),n}function Pe(e){var t=e.u,n=e.__;try{var r=t();return(n!==r||n===0&&1/n!=1/r)&&(n==n||r==r)}catch{return!0}}function Fe(e){e()}function Ie(e){return e}function Le(){return[!1,Fe]}function Re(e,t){this.props=e,this.context=t}function ze(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:Me(this.props,e)}function r(t){return this.shouldComponentUpdate=n,C(e,t)}return r.displayName=`Memo(`+(e.displayName||e.name)+`)`,r.prototype.isReactComponent=!0,r.__f=!0,r}(Re.prototype=new E).isPureReactComponent=!0,Re.prototype.shouldComponentUpdate=function(e,t){return Me(this.props,e)||Me(this.state,t)};var Be=a.__b;a.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Be&&Be(e)};var Ve=typeof Symbol<`u`&&Symbol.for&&Symbol.for(`react.forward_ref`)||3911;function He(e){function t(t){var n=je({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=Ve,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName=`ForwardRef(`+(e.displayName||e.name)+`)`,t}var Ue=function(e,t){return e==null?null:j(j(e).map(t))},We=a.__e;a.__e=function(e,t,n,r){if(e.then){for(var i,a=t;a=a.__;)if((i=a.__c)&&i.__c)return t.__e??(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}We(e,t,n,r)};var Ge=a.unmount;function Ke(){this.__u=0,this.o=null,this.__b=null}function qe(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Je(){this.i=null,this.l=null}a.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Ge&&Ge(e)},(Ke.prototype=new E).__c=function(e,t){var n=t.__c,r=this;r.o??=[],r.o.push(n);var i=qe(r.__v),a=!1,o=function(){a||(a=!0,n.__R=null,i?i(s):s())};n.__R=o;var s=function(){if(!--r.__u){if(r.state.__a){var e,t=r.state.__a;r.__v.__k[0]=function e(t,n,r){return t&&r&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(t){return e(t,n,r)}),t.__c&&t.__c.__P===n&&(t.__e&&r.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=r)),t}(t,t.__c.__P,t.__c.__O)}for(r.setState({__a:r.__b=null});e=r.o.pop();)e.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(o,o)},Ke.prototype.componentWillUnmount=function(){this.o=[]},Ke.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement(`div`),r=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(e){typeof e.__c==`function`&&e.__c()}),t.__c.__H=null),(t=je({},t)).__c!=null&&(t.__c.__P===r&&(t.__c.__P=n),t.__c.__e=!0,t.__c=null),t.__k=t.__k&&t.__k.map(function(t){return e(t,n,r)})),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&C(T,null,e.fallback);return i&&(i.__u&=-33),[C(T,null,t.__a?null:e.children),i]};var Ye=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!==`t`||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function Xe(e){return this.getChildContext=function(){return e.context},e.children}function Ze(e){var t=this,n=e.h;t.componentWillUnmount=function(){N(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),t.v||(t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(e){this.childNodes.push(e),t.h.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.h.insertBefore(e,n)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.h.removeChild(e)}}),N(C(Xe,{context:t.context},e.__v),t.v)}function Qe(e,t){var n=C(Ze,{__v:e,h:t});return n.containerInfo=t,n}(Je.prototype=new E).__a=function(e){var t=this,n=qe(t.__v),r=t.l.get(e);return r[0]++,function(i){var a=function(){t.props.revealOrder?(r.push(i),Ye(t,e,r)):i()};n?n(a):a()}},Je.prototype.render=function(e){this.i=null,this.l=new Map;var t=j(e.children);e.revealOrder&&e.revealOrder[0]===`b`&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},Je.prototype.componentDidUpdate=Je.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){Ye(e,n,t)})};var $e=typeof Symbol<`u`&&Symbol.for&&Symbol.for(`react.element`)||60103,et=/^(?: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]/,tt=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,nt=/[A-Z0-9]/g,rt=typeof document<`u`;function it(e,t,n){return t.__k??(t.textContent=``),N(e,t),typeof n==`function`&&n(),e?e.__c:null}function at(e,t,n){return function e(t,n){N(t,n,e)}(e,t),typeof n==`function`&&n(),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 ot=a.event;function st(){}function ct(){return this.cancelBubble}function lt(){return this.defaultPrevented}a.event=function(e){return ot&&(e=ot(e)),e.persist=st,e.isPropagationStopped=ct,e.isDefaultPrevented=lt,e.nativeEvent=e};var ut,dt={enumerable:!1,configurable:!0,get:function(){return this.class}},ft=a.vnode;a.vnode=function(e){typeof e.type==`string`&&function(e){var t=e.props,n=e.type,r={},i=n.indexOf(`-`)===-1;for(var a in t){var o=t[a];if(!(a===`value`&&`defaultValue`in t&&o==null||rt&&a===`children`&&n===`noscript`||a===`class`||a===`className`)){var s,c=a.toLowerCase();a===`defaultValue`&&`value`in t&&t.value==null?a=`value`:a===`download`&&!0===o?o=``:c===`translate`&&o===`no`?o=!1:c[0]===`o`&&c[1]===`n`?c===`ondoubleclick`?a=`ondblclick`:c!==`onchange`||n!==`input`&&n!==`textarea`||(s=t.type,(typeof Symbol<`u`&&typeof Symbol()==`symbol`?/fil|che|rad/:/fil|che|ra/).test(s))?c===`onfocus`?a=`onfocusin`:c===`onblur`?a=`onfocusout`:tt.test(a)&&(a=c):c=a=`oninput`:i&&et.test(a)?a=a.replace(nt,`-$&`).toLowerCase():o===null&&(o=void 0),c===`oninput`&&r[a=c]&&(a=`oninputCapture`),r[a]=o}}n==`select`&&r.multiple&&Array.isArray(r.value)&&(r.value=j(t.children).forEach(function(e){e.props.selected=r.value.indexOf(e.props.value)!=-1})),n==`select`&&r.defaultValue!=null&&(r.value=j(t.children).forEach(function(e){e.props.selected=r.multiple?r.defaultValue.indexOf(e.props.value)!=-1:r.defaultValue==e.props.value})),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,`className`,dt)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=$e,ft&&ft(e)};var pt=a.__r;a.__r=function(e){pt&&pt(e),ut=e.__c};var mt=a.diffed;function ht(e){return!!e&&e.$$typeof===$e}function gt(e){return ht(e)?oe.apply(null,arguments):e}function _t(e){return!!e.__k&&(N(null,e),!0)}a.diffed=function(e){mt&&mt(e);var t=e.props,n=e.__e;n!=null&&e.type===`textarea`&&`value`in t&&t.value!==n.value&&(n.value=t.value==null?``:t.value),ut=null};var H={useState:L,useId:we,useReducer:ye,useEffect:R,useLayoutEffect:be,useInsertionEffect:be,useTransition:Le,useDeferredValue:Ie,useSyncExternalStore:Ne,startTransition:Fe,useRef:z,useImperativeHandle:xe,useMemo:B,useCallback:V,useContext:Se,useDebugValue:Ce,version:`18.3.1`,Children:{map:Ue,forEach:Ue,count:function(e){return e?j(e).length:0},only:function(e){var t=j(e);if(t.length!==1)throw`Children.only`;return t[0]},toArray:j},render:it,hydrate:at,unmountComponentAtNode:_t,createPortal:Qe,createElement:C,createContext:se,createFactory:function(e){return C.bind(null,e)},cloneElement:gt,createRef:function(){return{current:null}},Fragment:T,isValidElement:ht,isElement:ht,isFragment:function(e){return ht(e)&&e.type===T},isMemo:function(e){return!!e&&!!e.displayName&&(typeof e.displayName==`string`||e.displayName instanceof String)&&e.displayName.startsWith(`Memo(`)},findDOMNode:function(e){return e&&(e.base||e.nodeType===1&&e)||null},Component:E,PureComponent:Re,memo:ze,forwardRef:He,flushSync:function(e,t){return e(t)},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:T,Suspense:Ke,SuspenseList:Je,lazy:function(e){var t,n,r;function i(i){if(t||(t=e()).then(function(e){n=e.default||e},function(e){r=e}),r)throw r;if(!n)throw t;return C(n,i)}return i.displayName=`Lazy`,i.__f=!0,i},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:{current:{readContext:function(e){return ut.__n[e.__c].props.value},useCallback:V,useContext:Se,useDebugValue:Ce,useDeferredValue:Ie,useEffect:R,useId:we,useImperativeHandle:xe,useInsertionEffect:be,useLayoutEffect:be,useMemo:B,useReducer:ye,useRef:z,useState:L,useSyncExternalStore:Ne,useTransition:Le}}}};function vt(e){return{render:function(t){it(t,e)},unmount:function(){_t(e)}}}var yt={},bt=function(){if(r)return yt;r=1,Object.defineProperty(yt,`__esModule`,{value:!0}),yt.styleq=void 0;var e=new WeakMap;function t(t){var n,r,i;return t!=null&&(n=!0===t.disableCache,r=!0===t.disableMix,i=t.transform),function(){for(var t=[],a=``,o=null,s=n?null:e,c=Array(arguments.length),l=0;l<arguments.length;l++)c[l]=arguments[l];for(;c.length>0;){var u=c.pop();if(u!=null&&!1!==u){if(Array.isArray(u)){for(var d=0;d<u.length;d++)c.push(u[d]);continue}var f=i==null?u:i(u);if(f.$$css){var p=``;if(s!=null&&s.has(f)){var m=s.get(f);m!=null&&(p=m[0],t.push.apply(t,m[1]),s=m[2])}else{var h=[];for(var g in f){var _=f[g];g!==`$$css`&&(typeof _==`string`||_===null?t.includes(g)||(t.push(g),s!=null&&h.push(g),typeof _==`string`&&(p+=p?` `+_:_)):console.error(`styleq: ${g} typeof ${String(_)} is not "string" or "null".`))}if(s!=null){var v=new WeakMap;s.set(f,[p,h,v]),s=v}}p&&(a=a?p+` `+a:p)}else if(r)o??={},o=Object.assign({},f,o);else{var y=null;for(var b in f){var x=f[b];x===void 0||t.includes(b)||(x!=null&&(o??={},y??={},y[b]=x),t.push(b),s=null)}y!=null&&(o=Object.assign(y,o))}}}return[a,o]}}var n=t();return yt.styleq=n,n.factory=t,yt}();const xt=e=>Error(`'stylex.${e}' should never be called at runtime. It should be compiled away by '@stylexjs/babel-plugin'`),U=e=>xt(`types.${e}`);function W(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,i]=bt.styleq(t),a={};return r!=null&&r!==``&&(a.className=r),i!=null&&Object.keys(i).length>0&&(a.style=i),a}function G(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r]=bt.styleq(t);return r}G.props=W,G.attrs=function(){let{className:e,style:t}=W(...arguments),n={};return e!=null&&e!==``&&(n.class=e),t!=null&&Object.keys(t).length>0&&(n.style=Object.keys(t).map(e=>`${e}:${t[e]};`).join(``)),n},G.create=function(e){throw xt(`create`)},G.defineVars=function(e){throw xt(`defineVars`)},G.createTheme=(e,t)=>{throw xt(`createTheme`)},G.include=e=>{throw xt(`include`)},G.keyframes=e=>{throw xt(`keyframes`)},G.firstThatWorks=function(){throw xt(`firstThatWorks`)},G.types={angle:e=>{throw U(`angle`)},color:e=>{throw U(`color`)},url:e=>{throw U(`url`)},image:e=>{throw U(`image`)},integer:e=>{throw U(`integer`)},lengthPercentage:e=>{throw U(`lengthPercentage`)},length:e=>{throw U(`length`)},percentage:e=>{throw U(`percentage`)},number:e=>{throw U(`number`)},resolution:e=>{throw U(`resolution`)},time:e=>{throw U(`time`)},transformFunction:e=>{throw U(`transformFunction`)},transformList:e=>{throw U(`transformList`)}};const St=ze(e=>{let{contexts:t,children:n}=e;return t.reduceRight((e,t)=>gt(t,{children:e}),n)});var Ct=0;function K(e,t,n,r,i,o){t||={};var s,c,l=t;if(`ref`in l)for(c in l={},t)c==`ref`?s=t[c]:l[c]=t[c];var u={type:e,props:l,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Ct,__i:-1,__u:0,__source:i,__self:o};if(typeof e==`function`&&(s=e.defaultProps))for(c in s)l[c]===void 0&&(l[c]=s[c]);return a.vnode&&a.vnode(u),u}var wt=e=>K(`svg`,{viewBox:`0 0 256 256`,width:`1.2em`,height:`1.2em`,...e,children:K(`g`,{fill:`currentColor`,children:[K(`path`,{d:`M208 88h-56V32Z`,opacity:.2}),K(`path`,{d:`m213.66 82.34l-56-56A8 8 0 0 0 152 24H56a16 16 0 0 0-16 16v176a16 16 0 0 0 16 16h144a16 16 0 0 0 16-16V88a8 8 0 0 0-2.34-5.66M160 51.31L188.69 80H160ZM200 216H56V40h88v48a8 8 0 0 0 8 8h48z`})]})});const Tt=()=>{};function Et(e){let t=se(e),n=se(Tt);return[r=>{let{children:i}=r,[a,o]=L(e);return K(t.Provider,{value:a,children:K(n.Provider,{value:o,children:i})})},()=>Se(t),()=>Se(n),t]}const[Dt,Ot,kt]=Et({drawerVisibile:!1}),At=Math.PI/180,jt={a:1,b:0,c:0,d:1,e:0,f:0};var Mt=class{constructor(e={}){g.defineProperty(this,`a`,void 0),g.defineProperty(this,`b`,void 0),g.defineProperty(this,`c`,void 0),g.defineProperty(this,`d`,void 0),g.defineProperty(this,`e`,void 0),g.defineProperty(this,`f`,void 0),this.a=e.a||1,this.b=e.b||0,this.c=e.c||0,this.d=e.d||1,this.e=e.e||0,this.f=e.f||0}create(e){return Object.assign(this,e),this}transform(e,t,n,r,i,a,o){return this.scale(n,r).translation(e,t),a||o?this.skew(a,o):this.roate(i),this}translation(e,t){return this.e+=e,this.f+=t,this}scale(e,t){return this.a*=e,this.d*=t,this}skew(e,t){let n=Math.tan(e*At),r=Math.tan(t*At),i=this.a+this.b*n,a=this.b+this.a*r,o=this.c+this.d*n,s=this.d+this.c*r;return this.a=i,this.b=a,this.c=o,this.d=s,this}roate(e){if(e>0){let t=e*At,n=Math.cos(t),r=Math.sin(t),i=this.a*n-this.b*r,a=this.a*r+this.b*n,o=this.c*n-this.d*r,s=this.c*r+this.d*n;this.a=i,this.b=a,this.c=o,this.d=s}return this}};const Nt={id:0,get(){return this.id++}};var Pt=((e={}).Graph=`Graph`,e.Box=`Box`,e.Text=`Text`,e.RoundRect=`RoundRect`,e),Ft=class{constructor(){g.defineProperty(this,`parent`,void 0),g.defineProperty(this,`id`,void 0),g.defineProperty(this,`matrix`,void 0),this.parent=null,this.id=Nt.get(),this.matrix=new Mt}destory(){}};const It=63;var Lt=class extends Ft{constructor(e={}){super(),g.defineProperty(this,`width`,void 0),g.defineProperty(this,`height`,void 0),g.defineProperty(this,`x`,void 0),g.defineProperty(this,`y`,void 0),g.defineProperty(this,`scaleX`,void 0),g.defineProperty(this,`scaleY`,void 0),g.defineProperty(this,`rotation`,void 0),g.defineProperty(this,`skewX`,void 0),g.defineProperty(this,`skewY`,void 0),this.width=e.width||0,this.height=e.height||0,this.x=e.x||0,this.y=e.y||0,this.scaleX=e.scaleX||1,this.scaleY=e.scaleY||1,this.rotation=e.rotation||0,this.skewX=e.skewX||0,this.skewY=e.skewY||0}},Rt=class extends Lt{constructor(e={}){super(e),g.defineProperty(this,`instruction`,void 0),g.defineProperty(this,`__options__`,void 0),this.instruction={mods:[],fillStyle(...e){this.mods.push({mod:[`fillStyle`,e],type:1})},fillRect(...e){this.mods.push({mod:[`fillRect`,e],type:0})},strokeStyle(...e){this.mods.push({mod:[`strokeStyle`,e],type:2})},lineWidth(...e){this.mods.push({mod:[`lineWidth`,e],type:8})},strokeRect(...e){this.mods.push({mod:[`strokeRect`,e],type:0})},fillText(...e){this.mods.push({mod:[`fillText`,e],type:0})},font(...e){this.mods.push({mod:[`font`,e],type:4})},textBaseline(...e){this.mods.push({mod:[`textBaseline`,e],type:32})},textAlign(...e){this.mods.push({mod:[`textAlign`,e],type:16})},beginPath(){this.mods.push({mod:[`beginPath`,[]],type:0})},moveTo(...e){this.mods.push({mod:[`moveTo`,e],type:0})},arcTo(...e){this.mods.push({mod:[`arcTo`,e],type:0})},closePath(){this.mods.push({mod:[`closePath`,[]],type:0})},fill(){this.mods.push({mod:[`fill`,[]],type:0})},stroke(){this.mods.push({mod:[`stroke`,[]],type:0})},drawImage(...e){this.mods.push({mod:[`drawImage`,e],type:0})}},this.__options__=e}render(e){this.create();let t=this.instruction.mods.length;for(let n=0;n<t;n++){let{mod:t,type:r}=this.instruction.mods[n],[i,...a]=t;if(r&It){e[i]=a[0];continue}e[i].apply(e,...a)}}get __instanceOf__(){return`Graph`}};const zt={isGraph:function(e){return e.__instanceOf__===Pt.Graph},isBox:function(e){return e.__instanceOf__===Pt.Box}};var Bt=class extends Ft{constructor(){super(),g.defineProperty(this,`elements`,void 0),this.elements=[]}add(...e){let t=e.length;for(let n=0;n<t;n++){let t=e[n];t.parent,this.elements.push(t),t.parent=this}}remove(...e){let t=e.length;for(let n=0;n<t;n++)for(let t=this.elements.length-1;t>=0;t--){let r=this.elements[t];r.id===e[n].id&&(this.elements.splice(t,1),r.parent=null)}}destory(){this.elements.forEach(e=>e.parent=null),this.elements.length=0}},Vt=class e extends Bt{constructor(){super(),g.defineProperty(this,`elements`,void 0),this.elements=[]}add(...e){let t=e.length;for(let n=0;n<t;n++){let t=e[n];t.parent,this.elements.push(t),t.parent=this}}remove(...e){let t=e.length;for(let n=0;n<t;n++)for(let t=this.elements.length-1;t>=0;t--){let r=this.elements[t];r.id===e[n].id&&(this.elements.splice(t,1),r.parent=null)}}destory(){this.elements.forEach(e=>e.parent=null),this.elements.length=0}get __instanceOf__(){return Pt.Box}clone(){let t=new e;if(this.elements.length){let n=[{elements:this.elements,parent:t}];for(;n.length>0;){let{elements:t,parent:r}=n.pop(),i=t.length;for(let a=0;a<i;a++){let i=t[a];if(zt.isBox(i)){let t=new e;t.parent=r,r.add(t),n.push({elements:i.elements,parent:t})}else if(zt.isGraph(i)){let e=i.clone();e.parent=r,r.add(e)}}}}return t}};const Ht={evaluateFillStyle:function(e,t=1){var n;return(n={mode:e.mode,desc:{...e.desc,a:t}}).mode===`rgb`?function(e){let{r:t,g:n,b:r,a:i}=e;return`a`in e?`rgba(${t}, ${n}, ${r}, ${i})`:`rgb(${t}, ${n}, ${r})`}(n.desc):function(e){let{h:t,l:n,s:r,a:i}=e;return`a`in e?`hsla(${t}deg, ${r}%, ${n}%, ${i})`:`hsl(${t}deg, ${r}%, ${n}%)`}(n.desc)}};var Ut=class e extends Rt{constructor(e={}){super(e),g.defineProperty(this,`style`,void 0),this.style=e.style||Object.create(null)}get __shape__(){return Pt.RoundRect}create(){let e=this.style.padding,t=this.width-2*e,n=this.height-2*e,r=this.style.radius||0;this.instruction.beginPath(),this.instruction.moveTo(0+r,0),this.instruction.arcTo(0+t,0,0+t,0+n,r),this.instruction.arcTo(0+t,0+n,0,0+n,r),this.instruction.arcTo(0,0+n,0,0,r),this.instruction.arcTo(0,0,0+t,0,r),this.instruction.closePath(),this.style.fill&&(this.instruction.closePath(),this.instruction.fillStyle(Ht.evaluateFillStyle(this.style.fill,this.style.opacity)),this.instruction.fill()),this.style.stroke&&(typeof this.style.lineWidth==`number`&&this.instruction.lineWidth(this.style.lineWidth),this.instruction.strokeStyle(this.style.stroke),this.instruction.stroke())}clone(){return new e({...this.style,...this.__options__})}},Wt=class e extends Rt{constructor(e={}){super(e),g.defineProperty(this,`text`,void 0),g.defineProperty(this,`style`,void 0),this.text=e.text||``,this.style=e.style||Object.create(null)}create(){this.style.fill&&(this.instruction.font(this.style.font),this.instruction.lineWidth(this.style.lineWidth),this.instruction.textBaseline(this.style.baseline),this.instruction.textAlign(this.style.textAlign),this.instruction.fillStyle(this.style.fill),this.instruction.fillText(this.text,0,0))}clone(){return new e({...this.style,...this.__options__})}get __shape__(){return Pt.Text}},Gt=class{constructor(){g.defineProperty(this,`eventCollections`,void 0),this.eventCollections=Object.create(null)}on(e,t,n){e in this.eventCollections||(this.eventCollections[e]=[]),this.eventCollections[e].push({name:e,handler:t,ctx:n||this,silent:!1})}off(e,t){if(e in this.eventCollections){if(!t){this.eventCollections[e]=[];return}this.eventCollections[e]=this.eventCollections[e].filter(e=>e.handler!==t)}}silent(e,t){e in this.eventCollections&&this.eventCollections[e].forEach(e=>{t&&e.handler!==t||(e.silent=!0)})}active(e,t){e in this.eventCollections&&this.eventCollections[e].forEach(e=>{t&&e.handler!==t||(e.silent=!1)})}emit(e,...t){if(!this.eventCollections[e])return;let n=this.eventCollections[e];n.length&&n.forEach(e=>{e.silent||e.handler.call(e.ctx,...t)})}bindWithContext(e){return(t,n)=>this.on(t,n,e)}};function Kt(e){return typeof e==`number`||e.charCodeAt(0)>=48&&57>=e.charCodeAt(0)}function qt(e,t,n,r,i){return new Ut({width:n,height:r,x:e,y:t,style:{...i}})}const Jt=window.requestAnimationFrame;function Yt(e,t,n){e.setTransform(t.a*n,t.b*n,t.c*n,t.d*n,t.e*n,t.f*n)}function Xt(e,t){return t.forEach(({name:t,fn:n})=>{Object.defineProperty(e,t,{value:n(e),writable:!1,enumerable:!0})}),e}function Zt(e,t,n,r){e.x=e.x*r+t,e.y=e.y*r+n,e.scaleX=r,e.scaleY=r}function Qt(e,t,n,r){(function e(t,n){let r=t.length;for(let i=0;i<r;i++){let r=t[i];zt.isGraph(r)?n(r):zt.isBox(r)&&e(r.elements,n)}})(e,e=>Zt(e,t,n,r))}function $t(e,t){let n=function(){let e={animationFrameID:null};return{run:t=>{let n=()=>{t()||(e.animationFrameID=Jt(n))};e.animationFrameID||=Jt(n)},stop:()=>{e.animationFrameID&&(window.cancelAnimationFrame(e.animationFrameID),e.animationFrameID=null)}}}(),r=Date.now(),i=e=>Array.isArray(t.deps)?t.deps.some(e=>e()):e>=1;n.run(()=>{let a=Math.min((Date.now()-r)/t.duration,1);return i(a)?(n.stop(),t.onStop&&t.onStop(),!0):e(a,n.stop)})}var en=class extends Map{constructor(e,t){super(t),g.defineProperty(this,`defaultFactory`,void 0),this.defaultFactory=e}get(e){return super.has(e)?super.get(e):this.defaultFactory()}getOrInsert(e,t){if(!super.has(e)){let n=t||this.defaultFactory();return super.set(e,n),n}return super.get(e)}};const tn=e=>({error:t=>console.error(`[${e}] ${t}`),panic:t=>{throw Error(`[${e}] ${t}`)}}),nn=tn(`etoile`);var rn=class{constructor(e){g.defineProperty(this,`canvas`,void 0),g.defineProperty(this,`ctx`,void 0),this.canvas=document.createElement(`canvas`),this.setOptions(e),this.ctx=this.canvas.getContext(`2d`)}setOptions(e){var t,n,r,i;t=this.canvas,n=e.width,r=e.height,t.width=n*(i=e.devicePixelRatio),t.height=r*i,t.style.cssText=`width: ${n}px; height: ${r}px`}},an=class{constructor(e,t){g.defineProperty(this,`options`,void 0),g.defineProperty(this,`container`,void 0),this.container=new rn(t),this.options=t,this.initOptions(t),t.shaow||e.appendChild(this.container.canvas)}clear(e,t){this.ctx.clearRect(0,0,e,t)}get canvas(){return this.container.canvas}get ctx(){return this.container.ctx}initOptions(e={}){Object.assign(this.options,e),this.container.setOptions(this.options)}destory(){}},on=class extends Vt{constructor(e,t={}){super(),g.defineProperty(this,`render`,void 0),g.defineProperty(this,`to`,void 0),g.defineProperty(this,`event`,void 0),this.to=typeof e==`string`?document.querySelector(e):e,this.to||nn.panic(`The element to bind is not found.`);let{width:n,height:r}=this.to.getBoundingClientRect();Object.assign(t,{width:n,height:r},{devicePixelRatio:window.devicePixelRatio||1}),this.event=new Gt,this.render=new an(this.to,t)}update(){this.render.clear(this.render.options.width,this.render.options.height),this.execute(this.render,this);let e=this.matrix.create({a:1,b:0,c:0,d:1,e:0,f:0});Yt(this.render.ctx,e,this.render.options.devicePixelRatio)}execute(e,t=this){(function e(t,n){let{ctx:r,dpr:i}=n;if(r.save(),zt.isBox(t)){let r=t.elements,i=r.length;for(let t=0;t<i;t++)e(r[t],n)}if(zt.isGraph(t)){let e=t.matrix.create({a:1,b:0,c:0,d:1,e:0,f:0});e.transform(t.x,t.y,t.scaleX,t.scaleY,t.rotation,t.skewX,t.skewY),Yt(r,e,i),t.render(r)}r.restore()})(t,{c:e.canvas,ctx:e.ctx,dpr:e.options.devicePixelRatio})}};function sn(e,...t){return e.sort((e,n)=>{for(let r of t){let t=e[r],i=n[r];if(Kt(t)&&Kt(i)){if(i>t)return 1;if(i<t)return-1;continue}let a=(``+t).localeCompare(``+i);if(a!==0)return a}return 0})}function cn(e){let t=[];for(let n=0;n<e.length;n++){let{groups:r,...i}=e[n];t.push(i),r&&t.push(...cn(r))}return t}function ln(e,t){if(!e)return null;for(let n of e){if(n.children){let e=ln(n.children,t);if(e)return e}if(t(n))return n}return null}var un=class{constructor(e){g.defineProperty(this,`plugins`,new Map),g.defineProperty(this,`pluginContext`,void 0),this.pluginContext={resolveModuleById:t=>ln(e.layoutNodes,e=>{if(e.node.id===t)return!0}),getPluginMetadata:e=>this.getPluginMetadata(e),get instance(){return e}}}use(e){if(!e.name)return void dn.error(`Plugin name is required`);this.plugins.has(e.name)&&dn.panic(`Plugin ${e.name} is already registered`),this.plugins.set(e.name,e)}runHook(e,...t){this.plugins.forEach(n=>{let r=n[e];r&&r.apply(this.pluginContext,t)})}cascadeHook(e,...t){let n={};return this.plugins.forEach(r=>{let i=r[e];if(i){let e=i.call(this.pluginContext,...t);e&&Object.assign(n,e)}}),n}getPluginMetadata(e){let t=this.plugins.get(e);return t?.meta||null}};const dn=tn(`Treemap`),fn={mode:`rgb`,desc:{r:0,g:0,b:0}},pn={min:30,max:60},mn={max:70,min:12};var hn=class extends on{constructor(e,...t){super(...t),g.defineProperty(this,`pluginDriver`,void 0),g.defineProperty(this,`data`,void 0),g.defineProperty(this,`colorMappings`,void 0),g.defineProperty(this,`rectLayer`,void 0),g.defineProperty(this,`textLayer`,void 0),g.defineProperty(this,`layoutNodes`,void 0),g.defineProperty(this,`config`,void 0),g.defineProperty(this,`caches`,void 0),this.data=[],this.config=e,this.colorMappings={},this.pluginDriver=new un(this),this.rectLayer=new Vt,this.textLayer=new Vt,this.caches=new en(()=>14),this.layoutNodes=[]}clearFontCacheInAABB(e){for(let t of this.getModulesInAABB(this.layoutNodes,e))this.caches.delete(t.node.id)}getModulesInAABB(e,t){let n=[];for(let r of e){let[e,i,a,o]=r.layout,s={x:e,y:i,width:a,height:o};this.isAABBIntersecting(s,t)&&(n.push(r),r.children&&r.children.length>0&&n.push(...this.getModulesInAABB(r.children,t)))}return n}getViewportAABB(e,t){let{width:n,height:r}=this.render.options;return{x:-e,y:-t,width:n,height:r}}getAABBUnion(e,t){let n=Math.min(e.x,t.x),r=Math.min(e.y,t.y);return{x:n,y:r,width:Math.max(e.x+e.width,t.x+t.width)-n,height:Math.max(e.y+e.height,t.y+t.height)-r}}handleTransformCacheInvalidation(e,t){let n=this.getViewportAABB(e.e,e.f),r=this.getViewportAABB(t.e,t.f),i=this.getAABBUnion(n,r);this.clearFontCacheInAABB(i)}isAABBIntersecting(e,t){return!(e.x+e.width<t.x||t.x+t.width<e.x||e.y+e.height<t.y||t.y+t.height<e.y)}drawBroundRect(e){let[t,n,r,i]=e.layout,{rectRadius:a}=e.config,o=Math.min(a,r/4,i/4),s=qt(t,n,r,i,{fill:this.colorMappings[e.node.id]||fn,padding:0,radius:o});for(let t of(this.rectLayer.add(s),e.children))this.drawBroundRect(t)}drawText(e){var t,n,r;if(!e.node.label&&!e.node.isCombinedNode)return;let[i,a,o,s]=e.layout,{titleAreaHeight:c}=e.config,l=e.node.isCombinedNode?`+ ${e.node.originalNodeCount} Modules`:e.node.label,u=e.children&&e.children.length>0?c-8:s-8,d=o-8;if(d<=0||u<=0)return;let f={fontSize:(t=this.config.font)?.fontSize||mn,family:(n=this.config.font)?.family||`sans-serif`,color:(r=this.config.font)?.color||`#000`},p=this.caches.getOrInsert(e.node.id,function(e,t,n,r,i){r=Math.floor(r),i=Math.floor(i);let{fontSize:a,family:o}=n,s=a.min,c=a.max;for(;c-s>=1;){let n=s+(c-s)/2;e.font=`${n}px ${o}`;let a=e.measureText(t).width,l=e.measureText(t),u=l.actualBoundingBoxAscent+l.actualBoundingBoxDescent;a<=r&&u<=i?s=n:c=n}return Math.floor(s)}(this.render.ctx,l,f,d,u)),m=`${p}px ${f.family}`;this.render.ctx.font=m;let h=function(e,t,n,r){let i=e.measureText(t).width,a=e.measureText(t);if(a.actualBoundingBoxAscent+a.actualBoundingBoxDescent>r)return{valid:!1,text:``,direction:`horizontal`,width:0};if(i<=n)return{valid:!0,text:t,direction:`horizontal`,width:i};let o=e.measureText(`...`).width;if(n<=o)return{valid:!1,text:``,direction:`horizontal`,width:0};let s=0,c=t.length,l=``;for(;s<=c;){let r=Math.floor((s+c)/2),i=t.substring(0,r);e.measureText(i).width+o<=n?(l=i,s=r+1):c=r-1}return l.length>0?{valid:!0,text:l+`...`,direction:`horizontal`,width:n}:{valid:!0,text:`...`,direction:`horizontal`,width:o}}(this.render.ctx,l,d,u);if(!h.valid)return;let{text:g}=h,_=i+Math.round(o/2),v=a+(e.children&&e.children.length>0?Math.round(c/2):Math.round(s/2)),y=new Wt({text:g,x:_,y:v,style:{fill:f.color,textAlign:`center`,baseline:`middle`,font:m,lineWidth:1}});for(let t of(this.textLayer.add(y),e.children))this.drawText(t)}draw(e=!0,t=!0){let{width:n,height:r}=this.render.options;if(t&&(this.layoutNodes=this.calculateLayoutNodes(this.data,{w:n,h:r,x:0,y:0})),e){let e=this.pluginDriver.cascadeHook(`onModuleInit`,this.layoutNodes);e&&(this.colorMappings=e.colorMappings||{})}for(let e of this.layoutNodes)this.drawBroundRect(e);for(let e of this.layoutNodes)this.drawText(e);this.add(this.rectLayer,this.textLayer),t&&this.update()}cleanup(){this.remove(this.rectLayer,this.textLayer),this.rectLayer.destory(),this.textLayer.destory()}calculateLayoutNodes(e,t,n=1){var r,i,a,o;let s={titleAreaHeight:(r=this.config.layout)?.titleAreaHeight??pn,rectRadius:(i=this.config.layout)?.rectRadius??4,rectGap:(a=this.config.layout)?.rectGap??4},c=function e(t,n,r,i=1){let a=[];if(!t.length)return a;let o=n.w*n.h,s=Math.max(.5,Math.min(1,Math.min(n.w,n.h)/800)),c=Math.max(8,20/Math.sqrt(i)),l=r.rectGap*s,u=r.rectRadius*s,d=function(e,t,n,r){if(!e||!e.length)return[];let i=e.reduce((e,t)=>e+t.weight,0);if(i<=0)return[];let a=[],o=[];if(e.forEach(e=>{let s=e.weight/i*t;Math.sqrt(s)<n||s<r?o.push({...e}):a.push({...e})}),o.length>0){let e=o.reduce((e,t)=>e+t.weight,0);if(e>0&&e/i*t>=r){let t={id:`combined-node-${Math.abs(function(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t&=t;return t}(o.map(e=>e.id).sort().join(`-`)))+`-`+e}`,weight:e,isCombinedNode:!0,originalNodeCount:o.length,parent:null,groups:[],originalNodes:o};a.push(t)}}return a}(t,o,c,c*c);if(!d.length)return a;let f=n;l>0&&(f={x:n.x+l/2,y:n.y+l/2,w:Math.max(0,n.w-l),h:Math.max(0,n.h-l)});let p=(e,t,n,r,i)=>Math.max(n*n*(d[e].weight*i)/(r*r),r*r/(n*n*(d[t].weight*i)));return((t,n,o=0)=>{let s=Math.max(.4,1-.15*o),c=l*s,f=u*s;for(;t<d.length;){let o=0;for(let e=t;e<d.length;e++)o+=d[e].weight;let s=Math.min(n.w,n.h),l=n.w*n.h/o,u=t,m=0,h=0;for(;u<d.length;){let e=d[u].weight*l||0,n=p(t,u,s,m+e,l);if(u>t&&h<n)break;m+=e,h=n,u++}let g=Math.round(m/s),_=0,v=n.w>=n.h;for(let o=t;o<u;o++){let p,h,y,b,x=o===t,S=o===u-1,C=d[o],w=C.weight*l,T=Math.round(s*_/m),E=Math.round(s*(_+w)/m);if(v?(p=n.x,h=n.y+T,y=g,b=E-T):(p=n.x+T,h=n.y,y=E-T,b=g),c>0){let e=c/2;x||(v?(h+=e,b=Math.max(0,b-e)):(p+=e,y=Math.max(0,y-e))),S||(v?b=Math.max(0,b-e):y=Math.max(0,y-e))}let D=function(e){let t=0;for(;e.parent;)e=e.parent,t++;return t}(C)||1,{titleAreaHeight:O}=r,k=O.max/D,A=k<O.min?O.min:k;y=Math.max(1,y),b=Math.max(1,b);let j=[];if(C.groups&&C.groups.length>0){let t=c>0?c:0,n={x:p+t,y:h+A,w:Math.max(0,y-2*t),h:Math.max(0,b-A-t)},a=f>0?2*f:1;n.w>=a&&n.h>=a&&(j=e(C.groups||[],n,{...r,rectGap:c,rectRadius:f},i))}a.push({layout:[p,h,y,b],node:C,children:j,config:{titleAreaHeight:A,rectGap:c,rectRadius:f}}),_+=w}t=u;let y=c>0?c:0;v?(n.x+=g+y,n.w=Math.max(0,n.w-g-y)):(n.y+=g+y,n.h=Math.max(0,n.h-g-y))}})(0,f),a}(e,t,s,n),l=this.pluginDriver.cascadeHook(`onLayoutCalculated`,c,t,s);return l&&(o=l.layoutNodes)?.length?l.layoutNodes:c}};const gn=[`click`,`mousedown`,`mousemove`,`mouseup`,`mouseover`,`mouseout`,`wheel`,`contextmenu`],_n=`IDLE`;var vn=class{constructor(){g.defineProperty(this,`current`,void 0),this.current=_n}canTransition(e){switch(this.current){case`IDLE`:return e===`PRESSED`||e===`MOVE`||e===`SCALING`||e===`ZOOMING`||e===`PANNING`;case`PRESSED`:return e===`DRAGGING`||e===`IDLE`;case`DRAGGING`:case`SCALING`:case`ZOOMING`:case`PANNING`:return e===`IDLE`;case`MOVE`:return e===`PRESSED`||e===`IDLE`;default:return!1}}transition(e){let t=this.canTransition(e);return t&&(this.current=e),t}reset(){this.current=_n}isInState(e){return this.current===e}},yn=class extends Gt{constructor(e){super(),g.defineProperty(this,`domEvents`,void 0),g.defineProperty(this,`el`,void 0),g.defineProperty(this,`currentModule`,void 0),g.defineProperty(this,`component`,void 0),g.defineProperty(this,`matrix`,void 0),g.defineProperty(this,`stateManager`,void 0),this.component=e,this.el=e.render.canvas,this.matrix=new Mt,this.currentModule=null,this.stateManager=new vn,this.domEvents=gn.map(e=>function(e,t,n){let r=e=>{let r={native:e};Object.defineProperty(r,`kind`,{value:t,enumerable:!0,configurable:!1,writable:!1}),n.emit(t,r)};return e.addEventListener(t,r),{evt:t,handler:r}}(this.el,e,this)),gn.forEach(e=>{this.on(e,t=>{this.dispatch(e,t)})})}destory(){if(this.el){for(let e in this.domEvents.forEach(({evt:e,handler:t})=>{var n;return(n=this.el)?.removeEventListener(e,t)}),this.domEvents=[],this.eventCollections)this.off(e);this.matrix.create(jt)}}dispatch(e,t){let n=this.findRelativeNode(t);this.component.pluginDriver.runHook(`onDOMEventTriggered`,e,t,n,this),this.emit(`__exposed__`,e,{native:t.native,module:n})}findRelativeNode(e){var t;return t=function(e,t,n,r,i,a){let o=e.getBoundingClientRect();if(t instanceof MouseEvent){let[n,r]=function(e){let t=0,n=0;if(document.documentElement.getBoundingClientRect&&e.getBoundingClientRect){let{top:r,left:i}=e.getBoundingClientRect();t=r,n=i}else for(let r=e;r;r=e.offsetParent)t+=e.offsetLeft,n+=e.offsetTop;return[t+Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),n+Math.max(document.documentElement.scrollTop,document.body.scrollTop)]}(e);return{x:(t.clientX-o.left-n-i)/1,y:(t.clientY-o.top-r-a)/1}}return{x:0,y:0}}(this.el,e.native,0,0,this.matrix.e,this.matrix.f),ln(this.component.layoutNodes,e=>{let[n,r,i,a]=e.layout;if(t.x>=n&&t.y>=r&&t.x<n+i&&