@devflow-tools/devflow 0.12.0 → 0.12.3

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.
Files changed (25) hide show
  1. package/dist/dashboard/404.html +1 -0
  2. package/dist/dashboard/_next/static/chunks/1dd3208c-f3e84932bdc53383.js +1 -0
  3. package/dist/dashboard/_next/static/chunks/254-814190ccf12d2df8.js +1 -0
  4. package/dist/dashboard/_next/static/chunks/528-7d4fc14903647f1e.js +2 -0
  5. package/dist/dashboard/_next/static/chunks/6b3bb038-34d5cf36bd0210d6.js +1 -0
  6. package/dist/dashboard/_next/static/chunks/781-97eaf0e93843fa67.js +1 -0
  7. package/dist/dashboard/_next/static/chunks/app/_not-found/page-5252c260804ee1ce.js +1 -0
  8. package/dist/dashboard/_next/static/chunks/app/layout-0e71002867d54cb5.js +1 -0
  9. package/dist/dashboard/_next/static/chunks/app/page-570d1b92af49aa0f.js +1 -0
  10. package/dist/dashboard/_next/static/chunks/framework-58c3457e28c4602f.js +1 -0
  11. package/dist/dashboard/_next/static/chunks/main-595171e579e3e067.js +1 -0
  12. package/dist/dashboard/_next/static/chunks/main-app-202a5f91ead17fa7.js +1 -0
  13. package/dist/dashboard/_next/static/chunks/pages/_app-58c3f1a8a070bd35.js +1 -0
  14. package/dist/dashboard/_next/static/chunks/pages/_error-312a564ec7e2663f.js +1 -0
  15. package/dist/dashboard/_next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
  16. package/dist/dashboard/_next/static/chunks/webpack-d6388c5dcd85b0c5.js +1 -0
  17. package/dist/dashboard/_next/static/css/322e14d06135256b.css +31 -0
  18. package/dist/dashboard/_next/static/css/9bb745101fd21603.css +3 -0
  19. package/dist/dashboard/_next/static/hNt3weWjQ8Jz--ch5mYkr/_buildManifest.js +1 -0
  20. package/dist/dashboard/_next/static/hNt3weWjQ8Jz--ch5mYkr/_ssgManifest.js +1 -0
  21. package/dist/dashboard/index.html +1 -0
  22. package/dist/dashboard/index.txt +9 -0
  23. package/dist/dashboard/locales/en.json +328 -0
  24. package/dist/dashboard/locales/zh.json +328 -0
  25. package/package.json +3 -3
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[781],{26598:function(t,e,n){"use strict";n.d(e,{t8:function(){return p},jD:function(){return f},QZ:function(){return v},IY:function(){return d},Ly:function(){return y},pB:function(){return g},oW:function(){return h},oC:function(){return rx},Ql:function(){return rM},FD:function(){return rj},X6:function(){return rA},Z_:function(){return n2},yF:function(){return rl},OL:function(){return nP},U:function(){return np},q7:function(){return ns},F1:function(){return nM},n3:function(){return ro},Z:function(){return e6},wQ:function(){return e9},Qj:function(){return e2},ZB:function(){return nz},Eg:function(){return nu},lM:function(){return nU},OQ:function(){return nG},oI:function(){return nx},Zp:function(){return e8},t_:function(){return nF},JU:function(){return n4},WD:function(){return nc},xx:function(){return nK},wv:function(){return nq},OH:function(){return re},S2:function(){return nV},W0:function(){return no},dW:function(){return rr},Rf:function(){return nT},RX:function(){return nr},f5:function(){return ni},lp:function(){return n_},OW:function(){return n7},Hm:function(){return n3},$i:function(){return nR},so:function(){return rh},k5:function(){return e3},Ky:function(){return e5},J3:function(){return e4},RY:function(){return nJ},s$:function(){return nZ},Q5:function(){return nC},N5:function(){return nW},Vt:function(){return nt},kE:function(){return nk},J$:function(){return nE},AL:function(){return nD},nb:function(){return nA},PS:function(){return nm},hO:function(){return rv},m:function(){return nN},oj:function(){return nS},_2:function(){return nj},VV:function(){return rs},be:function(){return rg},B1:function(){return rp},nu:function(){return nL}});var r,o,i,a,u,s,c,l,f,d,h,p,v,y,g,m={value:()=>{}};function b(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw Error("illegal type: "+t);r[t]=[]}return new x(r)}function x(t){this._=t}function w(t,e,n){for(var r=0,o=t.length;r<o;++r)if(t[r].name===e){t[r]=m,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}function _(){}function E(t){return null==t?_:function(){return this.querySelector(t)}}function k(){return[]}function M(t){return null==t?k:function(){return this.querySelectorAll(t)}}function j(t){return function(){return this.matches(t)}}function N(t){return function(e){return e.matches(t)}}x.prototype=b.prototype={constructor:x,on:function(t,e){var n,r=this._,o=(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw Error("unknown type: "+t);return{type:t,name:e}}),i=-1,a=o.length;if(arguments.length<2){for(;++i<a;)if((n=(t=o[i]).type)&&(n=function(t,e){for(var n,r=0,o=t.length;r<o;++r)if((n=t[r]).name===e)return n.value}(r[n],t.name)))return n;return}if(null!=e&&"function"!=typeof e)throw Error("invalid callback: "+e);for(;++i<a;)if(n=(t=o[i]).type)r[n]=w(r[n],t.name,e);else if(null==e)for(n in r)r[n]=w(r[n],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new x(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,o=Array(n),i=0;i<n;++i)o[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(r=this._[t],i=0,n=r.length;i<n;++i)r[i].value.apply(e,o)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(var r=this._[t],o=0,i=r.length;o<i;++o)r[o].value.apply(e,n)}};var S=Array.prototype.find;function O(){return this.firstElementChild}var R=Array.prototype.filter;function C(){return Array.from(this.children)}function I(t){return Array(t.length)}function T(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function A(t,e,n,r,o,i){for(var a,u=0,s=e.length,c=i.length;u<c;++u)(a=e[u])?(a.__data__=i[u],r[u]=a):n[u]=new T(t,i[u]);for(;u<s;++u)(a=e[u])&&(o[u]=a)}function z(t,e,n,r,o,i,a){var u,s,c,l=new Map,f=e.length,d=i.length,h=Array(f);for(u=0;u<f;++u)(s=e[u])&&(h[u]=c=a.call(s,s.__data__,u,e)+"",l.has(c)?o[u]=s:l.set(c,s));for(u=0;u<d;++u)c=a.call(t,i[u],u,i)+"",(s=l.get(c))?(r[u]=s,s.__data__=i[u],l.delete(c)):n[u]=new T(t,i[u]);for(u=0;u<f;++u)(s=e[u])&&l.get(h[u])===s&&(o[u]=s)}function P(t){return t.__data__}function L(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}T.prototype={constructor:T,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var D="http://www.w3.org/1999/xhtml",$={svg:"http://www.w3.org/2000/svg",xhtml:D,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function F(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),$.hasOwnProperty(e)?{space:$[e],local:t}:t}function V(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function B(t,e){return t.style.getPropertyValue(e)||V(t).getComputedStyle(t,null).getPropertyValue(e)}function Z(t){return t.trim().split(/^|\s+/)}function W(t){return t.classList||new q(t)}function q(t){this._node=t,this._names=Z(t.getAttribute("class")||"")}function H(t,e){for(var n=W(t),r=-1,o=e.length;++r<o;)n.add(e[r])}function U(t,e){for(var n=W(t),r=-1,o=e.length;++r<o;)n.remove(e[r])}function Y(){this.textContent=""}function Q(){this.innerHTML=""}function G(){this.nextSibling&&this.parentNode.appendChild(this)}function X(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function K(t){var e=F(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===D&&e.documentElement.namespaceURI===D?e.createElement(t):e.createElementNS(n,t)}})(e)}function J(){return null}function tt(){var t=this.parentNode;t&&t.removeChild(this)}function te(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function tn(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function tr(t){return function(){var e=this.__on;if(e){for(var n,r=0,o=-1,i=e.length;r<i;++r)(n=e[r],t.type&&n.type!==t.type||n.name!==t.name)?e[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?e.length=o:delete this.__on}}}function to(t,e,n){return function(){var r,o=this.__on,i=function(t){e.call(this,t,this.__data__)};if(o){for(var a=0,u=o.length;a<u;++a)if((r=o[a]).type===t.type&&r.name===t.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=i,r.options=n),r.value=e;return}}this.addEventListener(t.type,i,n),r={type:t.type,name:t.name,value:e,listener:i,options:n},o?o.push(r):this.__on=[r]}}function ti(t,e,n){var r=V(t),o=r.CustomEvent;"function"==typeof o?o=new o(e,n):(o=r.document.createEvent("Event"),n?(o.initEvent(e,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(e,!1,!1)),t.dispatchEvent(o)}q.prototype={add:function(t){0>this._names.indexOf(t)&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var ta=[null];function tu(t,e){this._groups=t,this._parents=e}function ts(){return new tu([[document.documentElement]],ta)}function tc(t){return"string"==typeof t?new tu([[document.querySelector(t)]],[document.documentElement]):new tu([[t]],ta)}function tl(t,e){if(t=function(t){let e;for(;e=t.sourceEvent;)t=e;return t}(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}if(e.getBoundingClientRect){var o=e.getBoundingClientRect();return[t.clientX-o.left-e.clientLeft,t.clientY-o.top-e.clientTop]}}return[t.pageX,t.pageY]}tu.prototype=ts.prototype={constructor:tu,select:function(t){"function"!=typeof t&&(t=E(t));for(var e=this._groups,n=e.length,r=Array(n),o=0;o<n;++o)for(var i,a,u=e[o],s=u.length,c=r[o]=Array(s),l=0;l<s;++l)(i=u[l])&&(a=t.call(i,i.__data__,l,u))&&("__data__"in i&&(a.__data__=i.__data__),c[l]=a);return new tu(r,this._parents)},selectAll:function(t){if("function"==typeof t){var e;e=t,t=function(){var t;return t=e.apply(this,arguments),null==t?[]:Array.isArray(t)?t:Array.from(t)}}else t=M(t);for(var n=this._groups,r=n.length,o=[],i=[],a=0;a<r;++a)for(var u,s=n[a],c=s.length,l=0;l<c;++l)(u=s[l])&&(o.push(t.call(u,u.__data__,l,s)),i.push(u));return new tu(o,i)},selectChild:function(t){var e;return this.select(null==t?O:(e="function"==typeof t?t:N(t),function(){return S.call(this.children,e)}))},selectChildren:function(t){var e;return this.selectAll(null==t?C:(e="function"==typeof t?t:N(t),function(){return R.call(this.children,e)}))},filter:function(t){"function"!=typeof t&&(t=j(t));for(var e=this._groups,n=e.length,r=Array(n),o=0;o<n;++o)for(var i,a=e[o],u=a.length,s=r[o]=[],c=0;c<u;++c)(i=a[c])&&t.call(i,i.__data__,c,a)&&s.push(i);return new tu(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,P);var n=e?z:A,r=this._parents,o=this._groups;"function"!=typeof t&&(m=t,t=function(){return m});for(var i=o.length,a=Array(i),u=Array(i),s=Array(i),c=0;c<i;++c){var l=r[c],f=o[c],d=f.length,h="object"==typeof(g=t.call(l,l&&l.__data__,c,r))&&"length"in g?g:Array.from(g),p=h.length,v=u[c]=Array(p),y=a[c]=Array(p);n(l,f,v,y,s[c]=Array(d),h,e);for(var g,m,b,x,w=0,_=0;w<p;++w)if(b=v[w]){for(w>=_&&(_=w+1);!(x=y[_])&&++_<p;);b._next=x||null}}return(a=new tu(a,r))._enter=u,a._exit=s,a},enter:function(){return new tu(this._enter||this._groups.map(I),this._parents)},exit:function(){return new tu(this._exit||this._groups.map(I),this._parents)},join:function(t,e,n){var r=this.enter(),o=this,i=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(o=e(o))&&(o=o.selection()),null==n?i.remove():n(i),r&&o?r.merge(o).order():o},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,o=n.length,i=r.length,a=Math.min(o,i),u=Array(o),s=0;s<a;++s)for(var c,l=n[s],f=r[s],d=l.length,h=u[s]=Array(d),p=0;p<d;++p)(c=l[p]||f[p])&&(h[p]=c);for(;s<o;++s)u[s]=n[s];return new tu(u,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,o=t[e],i=o.length-1,a=o[i];--i>=0;)(r=o[i])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=L);for(var n=this._groups,r=n.length,o=Array(r),i=0;i<r;++i){for(var a,u=n[i],s=u.length,c=o[i]=Array(s),l=0;l<s;++l)(a=u[l])&&(c[l]=a);c.sort(e)}return new tu(o,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],o=0,i=r.length;o<i;++o){var a=r[o];if(a)return a}return null},size:function(){let t=0;for(let e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var o,i=e[n],a=0,u=i.length;a<u;++a)(o=i[a])&&t.call(o,o.__data__,a,i);return this},attr:function(t,e){var n=F(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof e?n.local?function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}:function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}:n.local?function(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}:function(t,e){return function(){this.setAttribute(t,e)}})(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}:function(t,e,n){return function(){this.style.setProperty(t,e,n)}})(t,e,null==n?"":n)):B(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var n=Z(t+"");if(arguments.length<2){for(var r=W(this.node()),o=-1,i=n.length;++o<i;)if(!r.contains(n[o]))return!1;return!0}return this.each(("function"==typeof e?function(t,e){return function(){(e.apply(this,arguments)?H:U)(this,t)}}:e?function(t){return function(){H(this,t)}}:function(t){return function(){U(this,t)}})(n,e))},text:function(t){return arguments.length?this.each(null==t?Y:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?Q:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(G)},lower:function(){return this.each(X)},append:function(t){var e="function"==typeof t?t:K(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:K(t),r=null==e?J:"function"==typeof e?e:E(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(tt)},clone:function(t){return this.select(t?tn:te)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,o,i=(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}),a=i.length;if(arguments.length<2){var u=this.node().__on;if(u){for(var s,c=0,l=u.length;c<l;++c)for(r=0,s=u[c];r<a;++r)if((o=i[r]).type===s.type&&o.name===s.name)return s.value}return}for(r=0,u=e?to:tr;r<a;++r)this.each(u(i[r],e,n));return this},dispatch:function(t,e){return this.each(("function"==typeof e?function(t,e){return function(){return ti(this,t,e.apply(this,arguments))}}:function(t,e){return function(){return ti(this,t,e)}})(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,o=t[e],i=0,a=o.length;i<a;++i)(r=o[i])&&(yield r)}};let tf={passive:!1},td={capture:!0,passive:!1};function th(t){t.stopImmediatePropagation()}function tp(t){t.preventDefault(),t.stopImmediatePropagation()}function tv(t){var e=t.document.documentElement,n=tc(t).on("dragstart.drag",tp,td);"onselectstart"in e?n.on("selectstart.drag",tp,td):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function ty(t,e){var n=t.document.documentElement,r=tc(t).on("dragstart.drag",null);e&&(r.on("click.drag",tp,td),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var tg=t=>()=>t;function tm(t,{sourceEvent:e,subject:n,target:r,identifier:o,active:i,x:a,y:u,dx:s,dy:c,dispatch:l}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:i,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:u,enumerable:!0,configurable:!0},dx:{value:s,enumerable:!0,configurable:!0},dy:{value:c,enumerable:!0,configurable:!0},_:{value:l}})}function tb(t){return!t.ctrlKey&&!t.button}function tx(){return this.parentNode}function tw(t,e){return null==e?{x:t.x,y:t.y}:e}function t_(){return navigator.maxTouchPoints||"ontouchstart"in this}function tE(t){return((t=Math.exp(t))+1/t)/2}tm.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var tk,tM,tj=function t(e,n,r){function o(t,o){var i,a,u=t[0],s=t[1],c=t[2],l=o[0],f=o[1],d=o[2],h=l-u,p=f-s,v=h*h+p*p;if(v<1e-12)a=Math.log(d/c)/e,i=function(t){return[u+t*h,s+t*p,c*Math.exp(e*t*a)]};else{var y=Math.sqrt(v),g=(d*d-c*c+r*v)/(2*c*n*y),m=(d*d-c*c-r*v)/(2*d*n*y),b=Math.log(Math.sqrt(g*g+1)-g);a=(Math.log(Math.sqrt(m*m+1)-m)-b)/e,i=function(t){var r,o,i=t*a,l=tE(b),f=c/(n*y)*(((r=Math.exp(2*(r=e*i+b)))-1)/(r+1)*l-((o=Math.exp(o=b))-1/o)/2);return[u+f*h,s+f*p,c*l/tE(e*i+b)]}}return i.duration=1e3*a*e/Math.SQRT2,i}return o.rho=function(e){var n=Math.max(.001,+e),r=n*n;return t(n,r,r*r)},o}(Math.SQRT2,2,4),tN=0,tS=0,tO=0,tR=0,tC=0,tI=0,tT="object"==typeof performance&&performance.now?performance:Date,tA="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function tz(){return tC||(tA(tP),tC=tT.now()+tI)}function tP(){tC=0}function tL(){this._call=this._time=this._next=null}function tD(t,e,n){var r=new tL;return r.restart(t,e,n),r}function t$(){tC=(tR=tT.now())+tI,tN=tS=0;try{!function(){tz(),++tN;for(var t,e=tk;e;)(t=tC-e._time)>=0&&e._call.call(void 0,t),e=e._next;--tN}()}finally{tN=0,function(){for(var t,e,n=tk,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:tk=e);tM=t,tV(r)}(),tC=0}}function tF(){var t=tT.now(),e=t-tR;e>1e3&&(tI-=e,tR=t)}function tV(t){!tN&&(tS&&(tS=clearTimeout(tS)),t-tC>24?(t<1/0&&(tS=setTimeout(t$,t-tT.now()-tI)),tO&&(tO=clearInterval(tO))):(tO||(tR=tT.now(),tO=setInterval(tF,1e3)),tN=1,tA(t$)))}function tB(t,e,n){var r=new tL;return e=null==e?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,n),r}tL.prototype=tD.prototype={constructor:tL,restart:function(t,e,n){if("function"!=typeof t)throw TypeError("callback is not a function");n=(null==n?tz():+n)+(null==e?0:+e),this._next||tM===this||(tM?tM._next=this:tk=this,tM=this),this._call=t,this._time=n,tV()},stop:function(){this._call&&(this._call=null,this._time=1/0,tV())}};var tZ=b("start","end","cancel","interrupt"),tW=[];function tq(t,e,n,r,o,i){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};!function(t,e,n){var r,o=t.__transition;function i(s){var c,l,f,d;if(1!==n.state)return u();for(c in o)if((d=o[c]).name===n.name){if(3===d.state)return tB(i);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete o[c]):+c<e&&(d.state=6,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete o[c])}if(tB(function(){3===n.state&&(n.state=4,n.timer.restart(a,n.delay,n.time),a(s))}),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(c=0,n.state=3,r=Array(f=n.tween.length),l=-1;c<f;++c)(d=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(r[++l]=d);r.length=l+1}}function a(e){for(var o=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(u),n.state=5,1),i=-1,a=r.length;++i<a;)r[i].call(t,o);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),u())}function u(){for(var r in n.state=6,n.timer.stop(),delete o[e],o)return;delete t.__transition}o[e]=n,n.timer=tD(function(t){n.state=1,n.timer.restart(i,n.delay,n.time),n.delay<=t&&i(t-n.delay)},0,n.time)}(t,n,{name:e,index:r,group:o,on:tZ,tween:tW,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:0})}function tH(t,e){var n=tY(t,e);if(n.state>0)throw Error("too late; already scheduled");return n}function tU(t,e){var n=tY(t,e);if(n.state>3)throw Error("too late; already running");return n}function tY(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw Error("transition not found");return n}function tQ(t,e){var n,r,o,i=t.__transition,a=!0;if(i){for(o in e=null==e?null:e+"",i){if((n=i[o]).name!==e){a=!1;continue}r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete i[o]}a&&delete t.__transition}}function tG(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var tX=180/Math.PI,tK={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function tJ(t,e,n,r,o,i){var a,u,s;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(s=t*n+e*r)&&(n-=t*s,r-=e*s),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,s/=u),t*r<e*n&&(t=-t,e=-e,s=-s,a=-a),{translateX:o,translateY:i,rotate:Math.atan2(e,t)*tX,skewX:Math.atan(s)*tX,scaleX:a,scaleY:u}}function t0(t,e,n,r){function o(t){return t.length?t.pop()+" ":""}return function(i,a){var u,s,c,l,f=[],d=[];return i=t(i),a=t(a),!function(t,r,o,i,a,u){if(t!==o||r!==i){var s=a.push("translate(",null,e,null,n);u.push({i:s-4,x:tG(t,o)},{i:s-2,x:tG(r,i)})}else(o||i)&&a.push("translate("+o+e+i+n)}(i.translateX,i.translateY,a.translateX,a.translateY,f,d),(u=i.rotate)!==(s=a.rotate)?(u-s>180?s+=360:s-u>180&&(u+=360),d.push({i:f.push(o(f)+"rotate(",null,r)-2,x:tG(u,s)})):s&&f.push(o(f)+"rotate("+s+r),(c=i.skewX)!==(l=a.skewX)?d.push({i:f.push(o(f)+"skewX(",null,r)-2,x:tG(c,l)}):l&&f.push(o(f)+"skewX("+l+r),!function(t,e,n,r,i,a){if(t!==n||e!==r){var u=i.push(o(i)+"scale(",null,",",null,")");a.push({i:u-4,x:tG(t,n)},{i:u-2,x:tG(e,r)})}else(1!==n||1!==r)&&i.push(o(i)+"scale("+n+","+r+")")}(i.scaleX,i.scaleY,a.scaleX,a.scaleY,f,d),i=a=null,function(t){for(var e,n=-1,r=d.length;++n<r;)f[(e=d[n]).i]=e.x(t);return f.join("")}}}var t1=t0(function(t){let e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?tK:tJ(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),t2=t0(function(t){return null==t?tK:(l||(l=document.createElementNS("http://www.w3.org/2000/svg","g")),l.setAttribute("transform",t),t=l.transform.baseVal.consolidate())?tJ((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):tK},", ",")",")");function t3(t,e,n){var r=t._id;return t.each(function(){var t=tU(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return tY(t,r).value[e]}}function t9(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function t6(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function t5(){}var t7="\\s*([+-]?\\d+)\\s*",t8="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",t4="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",et=/^#([0-9a-f]{3,8})$/,ee=RegExp(`^rgb\\(${t7},${t7},${t7}\\)$`),en=RegExp(`^rgb\\(${t4},${t4},${t4}\\)$`),er=RegExp(`^rgba\\(${t7},${t7},${t7},${t8}\\)$`),eo=RegExp(`^rgba\\(${t4},${t4},${t4},${t8}\\)$`),ei=RegExp(`^hsl\\(${t8},${t4},${t4}\\)$`),ea=RegExp(`^hsla\\(${t8},${t4},${t4},${t8}\\)$`),eu={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function es(){return this.rgb().formatHex()}function ec(){return this.rgb().formatRgb()}function el(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=et.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?ef(e):3===n?new ep(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?ed(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?ed(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=ee.exec(t))?new ep(e[1],e[2],e[3],1):(e=en.exec(t))?new ep(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=er.exec(t))?ed(e[1],e[2],e[3],e[4]):(e=eo.exec(t))?ed(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=ei.exec(t))?ex(e[1],e[2]/100,e[3]/100,1):(e=ea.exec(t))?ex(e[1],e[2]/100,e[3]/100,e[4]):eu.hasOwnProperty(t)?ef(eu[t]):"transparent"===t?new ep(NaN,NaN,NaN,0):null}function ef(t){return new ep(t>>16&255,t>>8&255,255&t,1)}function ed(t,e,n,r){return r<=0&&(t=e=n=NaN),new ep(t,e,n,r)}function eh(t,e,n,r){var o;return 1==arguments.length?((o=t)instanceof t5||(o=el(o)),o)?new ep((o=o.rgb()).r,o.g,o.b,o.opacity):new ep:new ep(t,e,n,null==r?1:r)}function ep(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function ev(){return`#${eb(this.r)}${eb(this.g)}${eb(this.b)}`}function ey(){let t=eg(this.opacity);return`${1===t?"rgb(":"rgba("}${em(this.r)}, ${em(this.g)}, ${em(this.b)}${1===t?")":`, ${t})`}`}function eg(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function em(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function eb(t){return((t=em(t))<16?"0":"")+t.toString(16)}function ex(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new e_(t,e,n,r)}function ew(t){if(t instanceof e_)return new e_(t.h,t.s,t.l,t.opacity);if(t instanceof t5||(t=el(t)),!t)return new e_;if(t instanceof e_)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),i=Math.max(e,n,r),a=NaN,u=i-o,s=(i+o)/2;return u?(a=e===i?(n-r)/u+(n<r)*6:n===i?(r-e)/u+2:(e-n)/u+4,u/=s<.5?i+o:2-i-o,a*=60):u=s>0&&s<1?0:a,new e_(a,u,s,t.opacity)}function e_(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function eE(t){return(t=(t||0)%360)<0?t+360:t}function ek(t){return Math.max(0,Math.min(1,t||0))}function eM(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}function ej(t,e,n,r,o){var i=t*t,a=i*t;return((1-3*t+3*i-a)*e+(4-6*i+3*a)*n+(1+3*t+3*i-3*a)*r+a*o)/6}t9(t5,el,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:es,formatHex:es,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ew(this).formatHsl()},formatRgb:ec,toString:ec}),t9(ep,eh,t6(t5,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new ep(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new ep(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new ep(em(this.r),em(this.g),em(this.b),eg(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ev,formatHex:ev,formatHex8:function(){return`#${eb(this.r)}${eb(this.g)}${eb(this.b)}${eb((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:ey,toString:ey})),t9(e_,function(t,e,n,r){return 1==arguments.length?ew(t):new e_(t,e,n,null==r?1:r)},t6(t5,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new e_(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new e_(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,o=2*n-r;return new ep(eM(t>=240?t-240:t+120,o,r),eM(t,o,r),eM(t<120?t+240:t-120,o,r),this.opacity)},clamp(){return new e_(eE(this.h),ek(this.s),ek(this.l),eg(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=eg(this.opacity);return`${1===t?"hsl(":"hsla("}${eE(this.h)}, ${100*ek(this.s)}%, ${100*ek(this.l)}%${1===t?")":`, ${t})`}`}}));var eN=t=>()=>t;function eS(t,e){var n=e-t;return n?function(e){return t+e*n}:eN(isNaN(t)?e:t)}var eO=function t(e){var n,r=1==(n=+(n=e))?eS:function(t,e){var r,o,i;return e-t?(r=t,o=e,r=Math.pow(r,i=n),o=Math.pow(o,i)-r,i=1/i,function(t){return Math.pow(r+t*o,i)}):eN(isNaN(t)?e:t)};function o(t,e){var n=r((t=eh(t)).r,(e=eh(e)).r),o=r(t.g,e.g),i=r(t.b,e.b),a=eS(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=o(e),t.b=i(e),t.opacity=a(e),t+""}}return o.gamma=t,o}(1);function eR(t){return function(e){var n,r,o=e.length,i=Array(o),a=Array(o),u=Array(o);for(n=0;n<o;++n)r=eh(e[n]),i[n]=r.r||0,a[n]=r.g||0,u[n]=r.b||0;return i=t(i),a=t(a),u=t(u),r.opacity=1,function(t){return r.r=i(t),r.g=a(t),r.b=u(t),r+""}}}eR(function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[r],i=t[r+1],a=r>0?t[r-1]:2*o-i,u=r<e-1?t[r+2]:2*i-o;return ej((n-r/e)*e,a,o,i,u)}}),eR(function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),o=t[(r+e-1)%e],i=t[r%e],a=t[(r+1)%e],u=t[(r+2)%e];return ej((n-r/e)*e,o,i,a,u)}});var eC=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,eI=RegExp(eC.source,"g");function eT(t,e){var n,r,o,i,a,u=eC.lastIndex=eI.lastIndex=0,s=-1,c=[],l=[];for(t+="",e+="";(o=eC.exec(t))&&(i=eI.exec(e));)(a=i.index)>u&&(a=e.slice(u,a),c[s]?c[s]+=a:c[++s]=a),(o=o[0])===(i=i[0])?c[s]?c[s]+=i:c[++s]=i:(c[++s]=null,l.push({i:s,x:tG(o,i)})),u=eI.lastIndex;return u<e.length&&(a=e.slice(u),c[s]?c[s]+=a:c[++s]=a),c.length<2?l[0]?(n=l[0].x,function(t){return n(t)+""}):(r=e,function(){return r}):(e=l.length,function(t){for(var n,r=0;r<e;++r)c[(n=l[r]).i]=n.x(t);return c.join("")})}function eA(t,e){var n;return("number"==typeof e?tG:e instanceof el?eO:(n=el(e))?(e=n,eO):eT)(t,e)}var ez=ts.prototype.constructor;function eP(t){return function(){this.style.removeProperty(t)}}var eL=0;function eD(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}var e$=ts.prototype;eD.prototype=(function(t){return ts().transition(t)}).prototype={constructor:eD,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=E(t));for(var r=this._groups,o=r.length,i=Array(o),a=0;a<o;++a)for(var u,s,c=r[a],l=c.length,f=i[a]=Array(l),d=0;d<l;++d)(u=c[d])&&(s=t.call(u,u.__data__,d,c))&&("__data__"in u&&(s.__data__=u.__data__),f[d]=s,tq(f[d],e,n,d,f,tY(u,n)));return new eD(i,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=M(t));for(var r=this._groups,o=r.length,i=[],a=[],u=0;u<o;++u)for(var s,c=r[u],l=c.length,f=0;f<l;++f)if(s=c[f]){for(var d,h=t.call(s,s.__data__,f,c),p=tY(s,n),v=0,y=h.length;v<y;++v)(d=h[v])&&tq(d,e,n,v,h,p);i.push(h),a.push(s)}return new eD(i,a,e,n)},selectChild:e$.selectChild,selectChildren:e$.selectChildren,filter:function(t){"function"!=typeof t&&(t=j(t));for(var e=this._groups,n=e.length,r=Array(n),o=0;o<n;++o)for(var i,a=e[o],u=a.length,s=r[o]=[],c=0;c<u;++c)(i=a[c])&&t.call(i,i.__data__,c,a)&&s.push(i);return new eD(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw Error();for(var e=this._groups,n=t._groups,r=e.length,o=n.length,i=Math.min(r,o),a=Array(r),u=0;u<i;++u)for(var s,c=e[u],l=n[u],f=c.length,d=a[u]=Array(f),h=0;h<f;++h)(s=c[h]||l[h])&&(d[h]=s);for(;u<r;++u)a[u]=e[u];return new eD(a,this._parents,this._name,this._id)},selection:function(){return new ez(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=++eL,r=this._groups,o=r.length,i=0;i<o;++i)for(var a,u=r[i],s=u.length,c=0;c<s;++c)if(a=u[c]){var l=tY(a,e);tq(a,t,n,c,u,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new eD(r,this._parents,t,n)},call:e$.call,nodes:e$.nodes,node:e$.node,size:e$.size,empty:e$.empty,each:e$.each,on:function(t,e){var n,r,o,i=this._id;return arguments.length<2?tY(this.node(),i).on.on(t):this.each((o=(t+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t})?tH:tU,function(){var a=o(this,i),u=a.on;u!==n&&(r=(n=u).copy()).on(t,e),a.on=r}))},attr:function(t,e){var n=F(t),r="transform"===n?t2:eA;return this.attrTween(t,"function"==typeof e?(n.local?function(t,e,n){var r,o,i;return function(){var a,u,s=n(this);return null==s?void this.removeAttributeNS(t.space,t.local):(a=this.getAttributeNS(t.space,t.local))===(u=s+"")?null:a===r&&u===o?i:(o=u,i=e(r=a,s))}}:function(t,e,n){var r,o,i;return function(){var a,u,s=n(this);return null==s?void this.removeAttribute(t):(a=this.getAttribute(t))===(u=s+"")?null:a===r&&u===o?i:(o=u,i=e(r=a,s))}})(n,r,t3(this,"attr."+t,e)):null==e?(n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(n):(n.local?function(t,e,n){var r,o,i=n+"";return function(){var a=this.getAttributeNS(t.space,t.local);return a===i?null:a===r?o:o=e(r=a,n)}}:function(t,e,n){var r,o,i=n+"";return function(){var a=this.getAttribute(t);return a===i?null:a===r?o:o=e(r=a,n)}})(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw Error();var r=F(t);return this.tween(n,(r.local?function(t,e){var n,r;function o(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&function(e){this.setAttributeNS(t.space,t.local,o.call(this,e))}),n}return o._value=e,o}:function(t,e){var n,r;function o(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&function(e){this.setAttribute(t,o.call(this,e))}),n}return o._value=e,o})(r,e))},style:function(t,e,n){var r,o,i,a,u,s,c,l,f,d,h,p,v,y,g,m,b,x,w,_,E,k="transform"==(t+="")?t1:eA;return null==e?this.styleTween(t,(r=t,function(){var t=B(this,r),e=(this.style.removeProperty(r),B(this,r));return t===e?null:t===o&&e===i?a:a=k(o=t,i=e)})).on("end.style."+t,eP(t)):"function"==typeof e?this.styleTween(t,(u=t,s=t3(this,"style."+t,e),function(){var t=B(this,u),e=s(this),n=e+"";return null==e&&(this.style.removeProperty(u),n=e=B(this,u)),t===n?null:t===c&&n===l?f:(l=n,f=k(c=t,e))})).each((d=this._id,b="end."+(m="style."+(h=t)),function(){var t=tU(this,d),e=t.on,n=null==t.value[m]?g||(g=eP(h)):void 0;(e!==p||y!==n)&&(v=(p=e).copy()).on(b,y=n),t.on=v})):this.styleTween(t,(x=t,E=e+"",function(){var t=B(this,x);return t===E?null:t===w?_:_=k(w=t,e)}),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw Error();return this.tween(r,function(t,e,n){var r,o;function i(){var i=e.apply(this,arguments);return i!==o&&(r=(o=i)&&function(e){this.style.setProperty(t,i.call(this,e),n)}),r}return i._value=e,i}(t,e,null==n?"":n))},text:function(t){var e,n;return this.tween("text","function"==typeof t?(e=t3(this,"text",t),function(){var t=e(this);this.textContent=null==t?"":t}):(n=null==t?"":t+"",function(){this.textContent=n}))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw Error();return this.tween(e,function(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&function(t){this.textContent=r.call(this,t)}),e}return r._value=t,r}(t))},remove:function(){var t;return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,o=tY(this.node(),n).tween,i=0,a=o.length;i<a;++i)if((r=o[i]).name===t)return r.value;return null}return this.each((null==e?function(t,e){var n,r;return function(){var o=tU(this,t),i=o.tween;if(i!==n){r=n=i;for(var a=0,u=r.length;a<u;++a)if(r[a].name===e){(r=r.slice()).splice(a,1);break}}o.tween=r}}:function(t,e,n){var r,o;if("function"!=typeof n)throw Error();return function(){var i=tU(this,t),a=i.tween;if(a!==r){o=(r=a).slice();for(var u={name:e,value:n},s=0,c=o.length;s<c;++s)if(o[s].name===e){o[s]=u;break}s===c&&o.push(u)}i.tween=o}})(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){tH(this,t).delay=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){tH(this,t).delay=e}})(e,t)):tY(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){tU(this,t).duration=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){tU(this,t).duration=e}})(e,t)):tY(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw Error();return function(){tU(this,t).ease=e}}(e,t)):tY(this.node(),e).ease},easeVarying:function(t){var e;if("function"!=typeof t)throw Error();return this.each((e=this._id,function(){var n=t.apply(this,arguments);if("function"!=typeof n)throw Error();tU(this,e).ease=n}))},end:function(){var t,e,n=this,r=n._id,o=n.size();return new Promise(function(i,a){var u={value:a},s={value:function(){0==--o&&i()}};n.each(function(){var n=tU(this,r),o=n.on;o!==t&&((e=(t=o).copy())._.cancel.push(u),e._.interrupt.push(u),e._.end.push(s)),n.on=e}),0===o&&i()})},[Symbol.iterator]:e$[Symbol.iterator]};var eF={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};ts.prototype.interrupt=function(t){return this.each(function(){tQ(this,t)})},ts.prototype.transition=function(t){var e,n;t instanceof eD?(e=t._id,t=t._name):(e=++eL,(n=eF).time=tz(),t=null==t?null:t+"");for(var r=this._groups,o=r.length,i=0;i<o;++i)for(var a,u=r[i],s=u.length,c=0;c<s;++c)(a=u[c])&&tq(a,t,e,c,u,n||function(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw Error(`transition ${e} not found`);return n}(a,e));return new eD(r,this._parents,t,e)};var eV=t=>()=>t;function eB(t,{sourceEvent:e,target:n,transform:r,dispatch:o}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:o}})}function eZ(t,e,n){this.k=t,this.x=e,this.y=n}eZ.prototype={constructor:eZ,scale:function(t){return 1===t?this:new eZ(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new eZ(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var eW=new eZ(1,0,0);function eq(t){for(;!t.__zoom;)if(!(t=t.parentNode))return eW;return t.__zoom}function eH(t){t.stopImmediatePropagation()}function eU(t){t.preventDefault(),t.stopImmediatePropagation()}function eY(t){return(!t.ctrlKey||"wheel"===t.type)&&!t.button}function eQ(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function eG(){return this.__zoom||eW}function eX(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function eK(){return navigator.maxTouchPoints||"ontouchstart"in this}function eJ(t,e,n){var r=t.invertX(e[0][0])-n[0][0],o=t.invertX(e[1][0])-n[1][0],i=t.invertY(e[0][1])-n[0][1],a=t.invertY(e[1][1])-n[1][1];return t.translate(o>r?(r+o)/2:Math.min(0,r)||Math.max(0,o),a>i?(i+a)/2:Math.min(0,i)||Math.max(0,a))}function e0(){var t,e,n,r=eY,o=eQ,i=eJ,a=eX,u=eK,s=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],l=250,f=tj,d=b("start","zoom","end"),h=0,p=10;function v(t){t.property("__zoom",eG).on("wheel.zoom",E,{passive:!1}).on("mousedown.zoom",k).on("dblclick.zoom",M).filter(u).on("touchstart.zoom",j).on("touchmove.zoom",N).on("touchend.zoom touchcancel.zoom",S).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(t,e){return(e=Math.max(s[0],Math.min(s[1],e)))===t.k?t:new eZ(e,t.x,t.y)}function g(t,e,n){var r=e[0]-n[0]*t.k,o=e[1]-n[1]*t.k;return r===t.x&&o===t.y?t:new eZ(t.k,r,o)}function m(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function x(t,e,n,r){t.on("start.zoom",function(){w(this,arguments).event(r).start()}).on("interrupt.zoom end.zoom",function(){w(this,arguments).event(r).end()}).tween("zoom",function(){var t=arguments,i=w(this,t).event(r),a=o.apply(this,t),u=null==n?m(a):"function"==typeof n?n.apply(this,t):n,s=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),c=this.__zoom,l="function"==typeof e?e.apply(this,t):e,d=f(c.invert(u).concat(s/c.k),l.invert(u).concat(s/l.k));return function(t){if(1===t)t=l;else{var e=d(t),n=s/e[2];t=new eZ(n,u[0]-e[0]*n,u[1]-e[1]*n)}i.zoom(null,t)}})}function w(t,e,n){return!n&&t.__zooming||new _(t,e)}function _(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=o.apply(t,e),this.taps=0}function E(t,...e){if(r.apply(this,arguments)){var n=w(this,e).event(t),o=this.__zoom,u=Math.max(s[0],Math.min(s[1],o.k*Math.pow(2,a.apply(this,arguments)))),l=tl(t);if(n.wheel)(n.mouse[0][0]!==l[0]||n.mouse[0][1]!==l[1])&&(n.mouse[1]=o.invert(n.mouse[0]=l)),clearTimeout(n.wheel);else{if(o.k===u)return;n.mouse=[l,o.invert(l)],tQ(this),n.start()}eU(t),n.wheel=setTimeout(function(){n.wheel=null,n.end()},150),n.zoom("mouse",i(g(y(o,u),n.mouse[0],n.mouse[1]),n.extent,c))}}function k(t,...e){if(!n&&r.apply(this,arguments)){var o=t.currentTarget,a=w(this,e,!0).event(t),u=tc(t.view).on("mousemove.zoom",function(t){if(eU(t),!a.moved){var e=t.clientX-l,n=t.clientY-f;a.moved=e*e+n*n>h}a.event(t).zoom("mouse",i(g(a.that.__zoom,a.mouse[0]=tl(t,o),a.mouse[1]),a.extent,c))},!0).on("mouseup.zoom",function(t){u.on("mousemove.zoom mouseup.zoom",null),ty(t.view,a.moved),eU(t),a.event(t).end()},!0),s=tl(t,o),l=t.clientX,f=t.clientY;tv(t.view),eH(t),a.mouse=[s,this.__zoom.invert(s)],tQ(this),a.start()}}function M(t,...e){if(r.apply(this,arguments)){var n=this.__zoom,a=tl(t.changedTouches?t.changedTouches[0]:t,this),u=n.invert(a),s=n.k*(t.shiftKey?.5:2),f=i(g(y(n,s),a,u),o.apply(this,e),c);eU(t),l>0?tc(this).transition().duration(l).call(x,f,a,t):tc(this).call(v.transform,f,a,t)}}function j(n,...o){if(r.apply(this,arguments)){var i,a,u,s,c=n.touches,l=c.length,f=w(this,o,n.changedTouches.length===l).event(n);for(eH(n),a=0;a<l;++a)s=[s=tl(u=c[a],this),this.__zoom.invert(s),u.identifier],f.touch0?f.touch1||f.touch0[2]===s[2]||(f.touch1=s,f.taps=0):(f.touch0=s,i=!0,f.taps=1+!!t);t&&(t=clearTimeout(t)),i&&(f.taps<2&&(e=s[0],t=setTimeout(function(){t=null},500)),tQ(this),f.start())}}function N(t,...e){if(this.__zooming){var n,r,o,a,u=w(this,e).event(t),s=t.changedTouches,l=s.length;for(eU(t),n=0;n<l;++n)o=tl(r=s[n],this),u.touch0&&u.touch0[2]===r.identifier?u.touch0[0]=o:u.touch1&&u.touch1[2]===r.identifier&&(u.touch1[0]=o);if(r=u.that.__zoom,u.touch1){var f=u.touch0[0],d=u.touch0[1],h=u.touch1[0],p=u.touch1[1],v=(v=h[0]-f[0])*v+(v=h[1]-f[1])*v,m=(m=p[0]-d[0])*m+(m=p[1]-d[1])*m;r=y(r,Math.sqrt(v/m)),o=[(f[0]+h[0])/2,(f[1]+h[1])/2],a=[(d[0]+p[0])/2,(d[1]+p[1])/2]}else{if(!u.touch0)return;o=u.touch0[0],a=u.touch0[1]}u.zoom("touch",i(g(r,o,a),u.extent,c))}}function S(t,...r){if(this.__zooming){var o,i,a=w(this,r).event(t),u=t.changedTouches,s=u.length;for(eH(t),n&&clearTimeout(n),n=setTimeout(function(){n=null},500),o=0;o<s;++o)i=u[o],a.touch0&&a.touch0[2]===i.identifier?delete a.touch0:a.touch1&&a.touch1[2]===i.identifier&&delete a.touch1;if(a.touch1&&!a.touch0&&(a.touch0=a.touch1,delete a.touch1),a.touch0)a.touch0[1]=this.__zoom.invert(a.touch0[0]);else if(a.end(),2===a.taps&&(i=tl(i,this),Math.hypot(e[0]-i[0],e[1]-i[1])<p)){var c=tc(this).on("dblclick.zoom");c&&c.apply(this,arguments)}}}return v.transform=function(t,e,n,r){var o=t.selection?t.selection():t;o.property("__zoom",eG),t!==o?x(t,e,n,r):o.interrupt().each(function(){w(this,arguments).event(r).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()})},v.scaleBy=function(t,e,n,r){v.scaleTo(t,function(){var t=this.__zoom.k,n="function"==typeof e?e.apply(this,arguments):e;return t*n},n,r)},v.scaleTo=function(t,e,n,r){v.transform(t,function(){var t=o.apply(this,arguments),r=this.__zoom,a=null==n?m(t):"function"==typeof n?n.apply(this,arguments):n,u=r.invert(a),s="function"==typeof e?e.apply(this,arguments):e;return i(g(y(r,s),a,u),t,c)},n,r)},v.translateBy=function(t,e,n,r){v.transform(t,function(){return i(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),o.apply(this,arguments),c)},null,r)},v.translateTo=function(t,e,n,r,a){v.transform(t,function(){var t=o.apply(this,arguments),a=this.__zoom,u=null==r?m(t):"function"==typeof r?r.apply(this,arguments):r;return i(eW.translate(u[0],u[1]).scale(a.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,c)},r,a)},_.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var e=tc(this.that).datum();d.call(t,this.that,new eB(t,{sourceEvent:this.sourceEvent,target:v,type:t,transform:this.that.__zoom,dispatch:d}),e)}},v.wheelDelta=function(t){return arguments.length?(a="function"==typeof t?t:eV(+t),v):a},v.filter=function(t){return arguments.length?(r="function"==typeof t?t:eV(!!t),v):r},v.touchable=function(t){return arguments.length?(u="function"==typeof t?t:eV(!!t),v):u},v.extent=function(t){return arguments.length?(o="function"==typeof t?t:eV([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),v):o},v.scaleExtent=function(t){return arguments.length?(s[0]=+t[0],s[1]=+t[1],v):[s[0],s[1]]},v.translateExtent=function(t){return arguments.length?(c[0][0]=+t[0][0],c[1][0]=+t[1][0],c[0][1]=+t[0][1],c[1][1]=+t[1][1],v):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},v.constrain=function(t){return arguments.length?(i=t,v):i},v.duration=function(t){return arguments.length?(l=+t,v):l},v.interpolate=function(t){return arguments.length?(f=t,v):f},v.on=function(){var t=d.on.apply(d,arguments);return t===d?v:t},v.clickDistance=function(t){return arguments.length?(h=(t=+t)*t,v):Math.sqrt(h)},v.tapDistance=function(t){return arguments.length?(p=+t,v):p},v}function e1(t,e){var n,r,o=typeof e;return null==e||"boolean"===o?eN(e):("number"===o?tG:"string"===o?(r=el(e))?(e=r,eO):eT:e instanceof el?eO:e instanceof Date?function(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}:!ArrayBuffer.isView(n=e)||n instanceof DataView?Array.isArray(e)?function(t,e){var n,r=e?e.length:0,o=t?Math.min(r,t.length):0,i=Array(o),a=Array(r);for(n=0;n<o;++n)i[n]=e1(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<o;++n)a[n]=i[n](t);return a}}:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?function(t,e){var n,r={},o={};for(n in(null===t||"object"!=typeof t)&&(t={}),(null===e||"object"!=typeof e)&&(e={}),e)n in t?r[n]=e1(t[n],e[n]):o[n]=e[n];return function(t){for(n in r)o[n]=r[n](t);return o}}:tG:function(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,o=e.slice();return function(i){for(n=0;n<r;++n)o[n]=t[n]*(1-i)+e[n]*i;return o}})(t,e)}eq.prototype=eZ.prototype;let e2={error001:(t="react")=>`Seems like you have not used ${"svelte"===t?"SvelteFlowProvider":"ReactFlowProvider"} as an ancestor. Help: https://${t}flow.dev/error#001`,error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:t=>`Node type "${t}" not found. Using fallback type "default".`,error004:()=>"The parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:t=>`The old edge with id=${t} does not exist.`,error009:t=>`Marker type "${t}" doesn't exist.`,error008:(t,{id:e,sourceHandle:n,targetHandle:r})=>`Couldn't create edge for ${t} handle id: "${"source"===t?n:r}", edge id: ${e}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:t=>`Edge type "${t}" not found. Using fallback type "default".`,error012:t=>`Node with id "${t}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(t="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${t}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs.",error016:t=>`Edge with id "${t}" does not exist, it may have been removed. This can happen when an edge is deleted before the "onEdgeClick" handler is called.`},e3=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],e9=["Enter"," ","Escape"],e6={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:t,x:e,y:n})=>`Moved selected node ${t}. New position, x: ${e}, y: ${n}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};(r=f||(f={})).Strict="strict",r.Loose="loose",(o=d||(d={})).Free="free",o.Vertical="vertical",o.Horizontal="horizontal",(i=h||(h={})).Partial="partial",i.Full="full";let e5={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};(a=p||(p={})).Bezier="default",a.Straight="straight",a.Step="step",a.SmoothStep="smoothstep",a.SimpleBezier="simplebezier",(u=v||(v={})).Arrow="arrow",u.ArrowClosed="arrowclosed",(s=y||(y={})).Left="left",s.Top="top",s.Right="right",s.Bottom="bottom";let e7={[y.Left]:y.Right,[y.Right]:y.Left,[y.Top]:y.Bottom,[y.Bottom]:y.Top};function e8(t){return null===t?null:t?"valid":"invalid"}let e4=t=>!!t&&"object"==typeof t&&"id"in t&&"source"in t&&"target"in t,nt=t=>!!t&&"object"==typeof t&&"id"in t&&"position"in t&&!("source"in t)&&!("target"in t),ne=t=>!!t&&"object"==typeof t&&"id"in t&&"internals"in t&&!("source"in t)&&!("target"in t),nn=(t,e=[0,0])=>{let{width:n,height:r}=nT(t),o=t.origin??e,i=n*o[0],a=r*o[1];return{x:t.position.x-i,y:t.position.y-a}},nr=(t,e={nodeOrigin:[0,0]})=>0===t.length?{x:0,y:0,width:0,height:0}:ng(t.reduce((t,n)=>{let r="string"==typeof n,o=e.nodeLookup||r?void 0:n;return e.nodeLookup&&(o=r?e.nodeLookup.get(n):ne(n)?n:e.nodeLookup.get(n.id)),nv(t,o?nb(o,e.nodeOrigin):{x:0,y:0,x2:0,y2:0})},{x:1/0,y:1/0,x2:-1/0,y2:-1/0})),no=(t,e={})=>{let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0},r=!1;return t.forEach(t=>{(void 0===e.filter||e.filter(t))&&(n=nv(n,nb(t)),r=!0)}),r?ng(n):{x:0,y:0,width:0,height:0}},ni=(t,e,[n,r,o]=[0,0,1],i=!1,a=!1)=>{let u=(e.x-n)/o,s=(e.y-r)/o,c=e.width/o,l=e.height/o,f=[];for(let e of t.values()){let{measured:t,selectable:n=!0,hidden:r=!1}=e;if(a&&!n||r)continue;let o=t.width??e.width??e.initialWidth??0,d=t.height??e.height??e.initialHeight??0,{x:h,y:p}=e.internals.positionAbsolute,v=nw(u,s,c,l,h,p,o,d),y=o*d,g=i&&v>0;(!e.internals.handleBounds||g||v>=y||e.dragging)&&f.push(e)}return f},na=(t,e)=>{let n=new Set;return t.forEach(t=>{n.add(t.id)}),e.filter(t=>n.has(t.source)||n.has(t.target))};async function nu({nodes:t,width:e,height:n,panZoom:r,minZoom:o,maxZoom:i},a){if(0===t.size)return!0;let u=nR(no(function(t,e){let n=new Map,r=e?.nodes?new Set(e.nodes.map(t=>t.id)):null;return t.forEach(t=>{let o;if(e?.includeHiddenNodes){let{width:e,height:n}=nT(t);o=e>0&&n>0}else o=!!(t.measured.width&&t.measured.height&&!t.hidden);o&&(!r||r.has(t.id))&&n.set(t.id,t)}),n}(t,a)),e,n,a?.minZoom??o,a?.maxZoom??i,a?.padding??.1);return await r.setViewport(u,{duration:a?.duration,ease:a?.ease,interpolate:a?.interpolate}),!0}function ns({nodeId:t,nextPosition:e,nodeLookup:n,nodeOrigin:r=[0,0],nodeExtent:o,onError:i}){let a=n.get(t),u=a.parentId?n.get(a.parentId):void 0,{x:s,y:c}=u?u.internals.positionAbsolute:{x:0,y:0},l=a.origin??r,f=a.extent||o;if("parent"!==a.extent||a.expandParent)u&&nI(a.extent)&&(f=[[a.extent[0][0]+s,a.extent[0][1]+c],[a.extent[1][0]+s,a.extent[1][1]+c]]);else if(u){let t=u.measured.width,e=u.measured.height;t&&e&&(f=[[s,c],[s+t,c+e]])}else i?.("005",e2.error005());let d=nI(f)?nf(e,f,a.measured):e;return(void 0===a.measured.width||void 0===a.measured.height)&&i?.("015",e2.error015()),{position:{x:d.x-s+(a.measured.width??0)*l[0],y:d.y-c+(a.measured.height??0)*l[1]},positionAbsolute:d}}async function nc({nodesToRemove:t=[],edgesToRemove:e=[],nodes:n,edges:r,onBeforeDelete:o}){let i=new Set(t.map(t=>t.id)),a=[];for(let t of n){if(!1===t.deletable)continue;let e=i.has(t.id),n=!e&&t.parentId&&a.find(e=>e.id===t.parentId);(e||n)&&a.push(t)}let u=new Set(e.map(t=>t.id)),s=r.filter(t=>!1!==t.deletable),c=na(a,s);for(let t of s)u.has(t.id)&&!c.find(e=>e.id===t.id)&&c.push(t);if(!o)return{edges:c,nodes:a};let l=await o({nodes:a,edges:c});return"boolean"==typeof l?l?{edges:c,nodes:a}:{edges:[],nodes:[]}:l}let nl=(t,e=0,n=1)=>Math.min(Math.max(t,e),n),nf=(t={x:0,y:0},e,n)=>({x:nl(t.x,e[0][0],e[1][0]-(n?.width??0)),y:nl(t.y,e[0][1],e[1][1]-(n?.height??0))});function nd(t,e,n){let{width:r,height:o}=nT(n),{x:i,y:a}=n.internals.positionAbsolute;return nf(t,[[i,a],[i+r,a+o]],e)}let nh=(t,e,n)=>t<e?nl(Math.abs(t-e),1,e)/e:t>n?-nl(Math.abs(t-n),1,e)/e:0,np=(t,e,n=15,r=40)=>[nh(t.x,r,e.width-r)*n,nh(t.y,r,e.height-r)*n],nv=(t,e)=>({x:Math.min(t.x,e.x),y:Math.min(t.y,e.y),x2:Math.max(t.x2,e.x2),y2:Math.max(t.y2,e.y2)}),ny=({x:t,y:e,width:n,height:r})=>({x:t,y:e,x2:t+n,y2:e+r}),ng=({x:t,y:e,x2:n,y2:r})=>({x:t,y:e,width:n-t,height:r-e}),nm=(t,e=[0,0])=>{let{x:n,y:r}=ne(t)?t.internals.positionAbsolute:nn(t,e);return{x:n,y:r,width:t.measured?.width??t.width??t.initialWidth??0,height:t.measured?.height??t.height??t.initialHeight??0}},nb=(t,e=[0,0])=>{let{x:n,y:r}=ne(t)?t.internals.positionAbsolute:nn(t,e);return{x:n,y:r,x2:n+(t.measured?.width??t.width??t.initialWidth??0),y2:r+(t.measured?.height??t.height??t.initialHeight??0)}},nx=(t,e)=>ng(nv(ny(t),ny(e))),nw=(t,e,n,r,o,i,a,u)=>Math.ceil(Math.max(0,Math.min(t+n,o+a)-Math.max(t,o))*Math.max(0,Math.min(e+r,i+u)-Math.max(e,i))),n_=(t,e)=>nw(t.x,t.y,t.width,t.height,e.x,e.y,e.width,e.height),nE=t=>nk(t.width)&&nk(t.height)&&nk(t.x)&&nk(t.y),nk=t=>!isNaN(t)&&isFinite(t),nM=(t,e)=>(t,e)=>{},nj=(t,e=[1,1])=>({x:e[0]*Math.round(t.x/e[0]),y:e[1]*Math.round(t.y/e[1])}),nN=({x:t,y:e},[n,r,o],i=!1,a=[1,1])=>{let u={x:(t-n)/o,y:(e-r)/o};return i?nj(u,a):u},nS=({x:t,y:e},[n,r,o])=>({x:t*o+n,y:e*o+r});function nO(t,e){if("number"==typeof t)return Math.floor((e-e/(1+t))*.5);if("string"==typeof t&&t.endsWith("px")){let e=parseFloat(t);if(!Number.isNaN(e))return Math.floor(e)}if("string"==typeof t&&t.endsWith("%")){let n=parseFloat(t);if(!Number.isNaN(n))return Math.floor(e*n*.01)}return console.error(`The padding value "${t}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}let nR=(t,e,n,r,o,i)=>{let a=function(t,e,n){if("string"==typeof t||"number"==typeof t){let r=nO(t,n),o=nO(t,e);return{top:r,right:o,bottom:r,left:o,x:2*o,y:2*r}}if("object"==typeof t){let r=nO(t.top??t.y??0,n),o=nO(t.bottom??t.y??0,n),i=nO(t.left??t.x??0,e),a=nO(t.right??t.x??0,e);return{top:r,right:a,bottom:o,left:i,x:i+a,y:r+o}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}(i,e,n),u=nl(Math.min((e-a.x)/t.width,(n-a.y)/t.height),r,o),s=t.x+t.width/2,c=t.y+t.height/2,l=e/2-s*u,f=n/2-c*u,d=function(t,e,n,r,o,i){let{x:a,y:u}=nS(t,[e,n,r]),{x:s,y:c}=nS({x:t.x+t.width,y:t.y+t.height},[e,n,r]);return{left:Math.floor(a),top:Math.floor(u),right:Math.floor(o-s),bottom:Math.floor(i-c)}}(t,l,f,u,e,n),h={left:Math.min(d.left-a.left,0),top:Math.min(d.top-a.top,0),right:Math.min(d.right-a.right,0),bottom:Math.min(d.bottom-a.bottom,0)};return{x:l-h.left+h.right,y:f-h.top+h.bottom,zoom:u}},nC=()=>"undefined"!=typeof navigator&&navigator?.userAgent?.indexOf("Mac")>=0;function nI(t){return null!=t&&"parent"!==t}function nT(t){return{width:t.measured?.width??t.width??t.initialWidth??0,height:t.measured?.height??t.height??t.initialHeight??0}}function nA(t){return(t.measured?.width??t.width??t.initialWidth)!==void 0&&(t.measured?.height??t.height??t.initialHeight)!==void 0}function nz(t,e={width:0,height:0},n,r,o){let i={...t},a=r.get(n);if(a){let t=a.origin||o;i.x+=a.internals.positionAbsolute.x-(e.width??0)*t[0],i.y+=a.internals.positionAbsolute.y-(e.height??0)*t[1]}return i}function nP(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function nL(){let t,e;return{promise:new Promise((n,r)=>{t=n,e=r}),resolve:t,reject:e}}function nD(t){return{...e6,...t||{}}}function n$(t,{snapGrid:e=[0,0],snapToGrid:n=!1,transform:r,containerBounds:o}){let{x:i,y:a}=nq(t),u=nN({x:i-(o?.left??0),y:a-(o?.top??0)},r),{x:s,y:c}=n?nj(u,e):u;return{xSnapped:s,ySnapped:c,...u}}let nF=t=>({width:t.offsetWidth,height:t.offsetHeight}),nV=t=>t?.getRootNode?.()||window?.document,nB=["INPUT","SELECT","TEXTAREA"];function nZ(t){let e=t.composedPath?.()?.[0]||t.target;return e?.nodeType===1&&(nB.includes(e.nodeName)||e.hasAttribute("contenteditable")||!!e.closest(".nokey"))}let nW=t=>"clientX"in t,nq=(t,e)=>{let n=nW(t),r=n?t.clientX:t.touches?.[0].clientX,o=n?t.clientY:t.touches?.[0].clientY;return{x:r-(e?.left??0),y:o-(e?.top??0)}},nH=(t,e,n,r,o)=>{let i=e.querySelectorAll(`.${t}`);return i&&i.length?Array.from(i).map(e=>{let i=e.getBoundingClientRect();return{id:e.getAttribute("data-handleid"),type:t,nodeId:o,position:e.getAttribute("data-handlepos"),x:(i.left-n.left)/r,y:(i.top-n.top)/r,...nF(e)}}):null};function nU({sourceX:t,sourceY:e,targetX:n,targetY:r,sourceControlX:o,sourceControlY:i,targetControlX:a,targetControlY:u}){let s=.125*t+.375*o+.375*a+.125*n,c=.125*e+.375*i+.375*u+.125*r;return[s,c,Math.abs(s-t),Math.abs(c-e)]}function nY(t,e){return t>=0?.5*t:25*e*Math.sqrt(-t)}function nQ({pos:t,x1:e,y1:n,x2:r,y2:o,c:i}){switch(t){case y.Left:return[e-nY(e-r,i),n];case y.Right:return[e+nY(r-e,i),n];case y.Top:return[e,n-nY(n-o,i)];case y.Bottom:return[e,n+nY(o-n,i)]}}function nG({sourceX:t,sourceY:e,sourcePosition:n=y.Bottom,targetX:r,targetY:o,targetPosition:i=y.Top,curvature:a=.25}){let[u,s]=nQ({pos:n,x1:t,y1:e,x2:r,y2:o,c:a}),[c,l]=nQ({pos:i,x1:r,y1:o,x2:t,y2:e,c:a}),[f,d,h,p]=nU({sourceX:t,sourceY:e,targetX:r,targetY:o,sourceControlX:u,sourceControlY:s,targetControlX:c,targetControlY:l});return[`M${t},${e} C${u},${s} ${c},${l} ${r},${o}`,f,d,h,p]}function nX({sourceX:t,sourceY:e,targetX:n,targetY:r}){let o=Math.abs(n-t)/2,i=Math.abs(r-e)/2;return[n<t?n+o:n-o,r<e?r+i:r-i,o,i]}function nK({sourceNode:t,targetNode:e,selected:n=!1,zIndex:r=0,elevateOnSelect:o=!1,zIndexMode:i="basic"}){if("manual"===i)return r;let a=Math.max(t.parentId||o&&t.selected?t.internals.z:0,e.parentId||o&&e.selected?e.internals.z:0);return(o&&n?r+1e3:r)+a}function nJ({sourceNode:t,targetNode:e,width:n,height:r,transform:o}){let i=nv(nb(t),nb(e));return i.x===i.x2&&(i.x2+=1),i.y===i.y2&&(i.y2+=1),n_({x:-o[0]/o[2],y:-o[1]/o[2],width:n/o[2],height:r/o[2]},ng(i))>0}let n0=({source:t,sourceHandle:e,target:n,targetHandle:r})=>`xy-edge__${t}${e||""}-${n}${r||""}`,n1=(t,e)=>e.some(e=>e.source===t.source&&e.target===t.target&&(e.sourceHandle===t.sourceHandle||!e.sourceHandle&&!t.sourceHandle)&&(e.targetHandle===t.targetHandle||!e.targetHandle&&!t.targetHandle)),n2=(t,e,n={})=>{let r;if(!t.source||!t.target)return n.onError?.("006",e2.error006()),e;let o=n.getEdgeId||n0;return n1(r=e4(t)?{...t}:{...t,id:o(t)},e)?e:(null===r.sourceHandle&&delete r.sourceHandle,null===r.targetHandle&&delete r.targetHandle,e.concat(r))};function n3({sourceX:t,sourceY:e,targetX:n,targetY:r}){let[o,i,a,u]=nX({sourceX:t,sourceY:e,targetX:n,targetY:r});return[`M ${t},${e}L ${n},${r}`,o,i,a,u]}let n9={[y.Left]:{x:-1,y:0},[y.Right]:{x:1,y:0},[y.Top]:{x:0,y:-1},[y.Bottom]:{x:0,y:1}},n6=({source:t,sourcePosition:e=y.Bottom,target:n})=>e===y.Left||e===y.Right?t.x<n.x?{x:1,y:0}:{x:-1,y:0}:t.y<n.y?{x:0,y:1}:{x:0,y:-1},n5=(t,e)=>Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2));function n7({sourceX:t,sourceY:e,sourcePosition:n=y.Bottom,targetX:r,targetY:o,targetPosition:i=y.Top,borderRadius:a=5,centerX:u,centerY:s,offset:c=20,stepPosition:l=.5}){let[f,d,h,p,v]=function({source:t,sourcePosition:e=y.Bottom,target:n,targetPosition:r=y.Top,center:o,offset:i,stepPosition:a}){let u,s;let c=n9[e],l=n9[r],f={x:t.x+c.x*i,y:t.y+c.y*i},d={x:n.x+l.x*i,y:n.y+l.y*i},h=n6({source:f,sourcePosition:e,target:d}),p=0!==h.x?"x":"y",v=h[p],g=[],m={x:0,y:0},b={x:0,y:0},[,,x,w]=nX({sourceX:t.x,sourceY:t.y,targetX:n.x,targetY:n.y});if(c[p]*l[p]==-1){"x"===p?(u=o.x??f.x+(d.x-f.x)*a,s=o.y??(f.y+d.y)/2):(u=o.x??(f.x+d.x)/2,s=o.y??f.y+(d.y-f.y)*a);let t=[{x:u,y:f.y},{x:u,y:d.y}],e=[{x:f.x,y:s},{x:d.x,y:s}];g=c[p]===v?"x"===p?t:e:"x"===p?e:t}else{let o=[{x:f.x,y:d.y}],a=[{x:d.x,y:f.y}];if(g="x"===p?c.x===v?a:o:c.y===v?o:a,e===r){let e=Math.abs(t[p]-n[p]);if(e<=i){let r=Math.min(i-1,i-e);c[p]===v?m[p]=(f[p]>t[p]?-1:1)*r:b[p]=(d[p]>n[p]?-1:1)*r}}if(e!==r){let t="x"===p?"y":"x",e=c[p]===l[t],n=f[t]>d[t],r=f[t]<d[t];(1===c[p]&&(!e&&n||e&&r)||1!==c[p]&&(!e&&r||e&&n))&&(g="x"===p?o:a)}let h={x:f.x+m.x,y:f.y+m.y},y={x:d.x+b.x,y:d.y+b.y};Math.max(Math.abs(h.x-g[0].x),Math.abs(y.x-g[0].x))>=Math.max(Math.abs(h.y-g[0].y),Math.abs(y.y-g[0].y))?(u=(h.x+y.x)/2,s=g[0].y):(u=g[0].x,s=(h.y+y.y)/2)}let _={x:f.x+m.x,y:f.y+m.y},E={x:d.x+b.x,y:d.y+b.y};return[[t,..._.x!==g[0].x||_.y!==g[0].y?[_]:[],...g,...E.x!==g[g.length-1].x||E.y!==g[g.length-1].y?[E]:[],n],u,s,x,w]}({source:{x:t,y:e},sourcePosition:n,target:{x:r,y:o},targetPosition:i,center:{x:u,y:s},offset:c,stepPosition:l}),g=`M${f[0].x} ${f[0].y}`;for(let t=1;t<f.length-1;t++)g+=function(t,e,n,r){let o=Math.min(n5(t,e)/2,n5(e,n)/2,r),{x:i,y:a}=e;if(t.x===i&&i===n.x||t.y===a&&a===n.y)return`L${i} ${a}`;if(t.y===a){let e=t.x<n.x?-1:1,r=t.y<n.y?1:-1;return`L ${i+o*e},${a}Q ${i},${a} ${i},${a+o*r}`}let u=t.x<n.x?1:-1,s=t.y<n.y?-1:1;return`L ${i},${a+o*s}Q ${i},${a} ${i+o*u},${a}`}(f[t-1],f[t],f[t+1],a);return[g+=`L${f[f.length-1].x} ${f[f.length-1].y}`,d,h,p,v]}function n8(t){return t&&!!(t.internals.handleBounds||t.handles?.length)&&!!(t.measured.width||t.width||t.initialWidth)}function n4(t){let{sourceNode:e,targetNode:n}=t;if(!n8(e)||!n8(n))return null;let r=e.internals.handleBounds||rt(e.handles),o=n.internals.handleBounds||rt(n.handles),i=rn(r?.source??[],t.sourceHandle),a=rn(t.connectionMode===f.Strict?o?.target??[]:(o?.target??[]).concat(o?.source??[]),t.targetHandle);if(!i||!a)return t.onError?.("008",e2.error008(i?"target":"source",{id:t.id,sourceHandle:t.sourceHandle,targetHandle:t.targetHandle})),null;let u=i?.position||y.Bottom,s=a?.position||y.Top,c=re(e,i,u),l=re(n,a,s);return{sourceX:c.x,sourceY:c.y,targetX:l.x,targetY:l.y,sourcePosition:u,targetPosition:s}}function rt(t){if(!t)return null;let e=[],n=[];for(let r of t)r.width=r.width??1,r.height=r.height??1,"source"===r.type?e.push(r):"target"===r.type&&n.push(r);return{source:e,target:n}}function re(t,e,n=y.Left,r=!1){let o=(e?.x??0)+t.internals.positionAbsolute.x,i=(e?.y??0)+t.internals.positionAbsolute.y,{width:a,height:u}=e??nT(t);if(r)return{x:o+a/2,y:i+u/2};switch(e?.position??n){case y.Top:return{x:o+a/2,y:i};case y.Right:return{x:o+a,y:i+u/2};case y.Bottom:return{x:o+a/2,y:i+u};case y.Left:return{x:o,y:i+u/2}}}function rn(t,e){return t&&(e?t.find(t=>t.id===e):t[0])||null}function rr(t,e){if(!t)return"";if("string"==typeof t)return t;let n=e?`${e}__`:"";return`${n}${Object.keys(t).sort().map(e=>`${e}=${t[e]}`).join("&")}`}function ro(t,{id:e,defaultColor:n,defaultMarkerStart:r,defaultMarkerEnd:o}){let i=new Set;return t.reduce((t,a)=>([a.markerStart||r,a.markerEnd||o].forEach(r=>{if(r&&"object"==typeof r){let o=rr(r,e);i.has(o)||(t.push({id:o,color:r.color||n,...r}),i.add(o))}}),t),[]).sort((t,e)=>t.id.localeCompare(e.id))}let ri={nodeOrigin:[0,0],nodeExtent:e3,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},ra={...ri,checkEquality:!0};function ru(t,e){let n={...t};for(let t in e)void 0!==e[t]&&(n[t]=e[t]);return n}function rs(t,e,n){let r=ru(ri,n);for(let n of t.values())if(n.parentId)rf(n,t,e,r);else{let t=nf(nn(n,r.nodeOrigin),nI(n.extent)?n.extent:r.nodeExtent,nT(n));n.internals.positionAbsolute=t}}function rc(t){return"manual"===t}function rl(t,e,n,r={}){let o=ru(ra,r),i={i:0},a=new Map(e),u=o?.elevateNodesOnSelect&&!rc(o.zIndexMode)?1e3:0,s=t.length>0,c=!1;for(let l of(e.clear(),n.clear(),t)){let t=a.get(l.id);if(o.checkEquality&&l===t?.internals.userNode)e.set(l.id,t);else{let n=nf(nn(l,o.nodeOrigin),nI(l.extent)?l.extent:o.nodeExtent,nT(l));t={...o.defaults,...l,measured:{width:l.measured?.width,height:l.measured?.height},internals:{positionAbsolute:n,handleBounds:function(t,e){if(!t.handles)return t.measured?e?.internals.handleBounds:void 0;let n=[],r=[];for(let e of t.handles){let o={id:e.id,width:e.width??1,height:e.height??1,nodeId:t.id,x:e.x,y:e.y,position:e.position,type:e.type};"source"===e.type?n.push(o):"target"===e.type&&r.push(o)}return{source:n,target:r}}(l,t),z:rd(l,u,o.zIndexMode),userNode:l}},e.set(l.id,t)}void 0!==t.measured&&void 0!==t.measured.width&&void 0!==t.measured.height||t.hidden||(s=!1),l.parentId&&rf(t,e,n,r,i),c||=l.selected??!1}return{nodesInitialized:s,hasSelectedNodes:c}}function rf(t,e,n,r,o){let{elevateNodesOnSelect:i,nodeOrigin:a,nodeExtent:u,zIndexMode:s}=ru(ri,r),c=t.parentId,l=e.get(c);if(!l){console.warn(`Parent node ${c} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}!function(t,e){if(!t.parentId)return;let n=e.get(t.parentId);n?n.set(t.id,t):e.set(t.parentId,new Map([[t.id,t]]))}(t,n),o&&!l.parentId&&void 0===l.internals.rootParentIndex&&"auto"===s&&(l.internals.rootParentIndex=++o.i,l.internals.z=l.internals.z+10*o.i),o&&void 0!==l.internals.rootParentIndex&&(o.i=l.internals.rootParentIndex);let{x:f,y:d,z:h}=function(t,e,n,r,o,i){let{x:a,y:u}=e.internals.positionAbsolute,s=nT(t),c=nn(t,n),l=nI(t.extent)?nf(c,t.extent,s):c,f=nf({x:a+l.x,y:u+l.y},r,s);"parent"===t.extent&&(f=nd(f,s,e));let d=rd(t,o,i),h=e.internals.z??0;return{x:f.x,y:f.y,z:h>=d?h+1:d}}(t,l,a,u,i&&!rc(s)?1e3:0,s),{positionAbsolute:p}=t.internals,v=f!==p.x||d!==p.y;(v||h!==t.internals.z)&&e.set(t.id,{...t,internals:{...t.internals,positionAbsolute:v?{x:f,y:d}:p,z:h}})}function rd(t,e,n){let r=nk(t.zIndex)?t.zIndex:0;return rc(n)?r:r+(t.selected?e:0)}function rh(t,e,n,r=[0,0]){let o=[],i=new Map;for(let n of t){let t=e.get(n.parentId);if(!t)continue;let r=nx(i.get(n.parentId)?.expandedRect??nm(t),n.rect);i.set(n.parentId,{expandedRect:r,parent:t})}return i.size>0&&i.forEach(({expandedRect:e,parent:i},a)=>{let u=i.internals.positionAbsolute,s=nT(i),c=i.origin??r,l=e.x<u.x?Math.round(Math.abs(u.x-e.x)):0,f=e.y<u.y?Math.round(Math.abs(u.y-e.y)):0,d=Math.max(s.width,Math.round(e.width)),h=Math.max(s.height,Math.round(e.height)),p=(d-s.width)*c[0],v=(h-s.height)*c[1];(l>0||f>0||p||v)&&(o.push({id:a,type:"position",position:{x:i.position.x-l+p,y:i.position.y-f+v}}),n.get(a)?.forEach(e=>{t.some(t=>t.id===e.id)||o.push({id:e.id,type:"position",position:{x:e.position.x+l,y:e.position.y+f}})})),(s.width<e.width||s.height<e.height||l||f)&&o.push({id:a,type:"dimensions",setAttributes:!0,dimensions:{width:d+(l?c[0]*l-p:0),height:h+(f?c[1]*f-v:0)}})}),o}function rp(t,e,n,r,o,i,a){let u=r?.querySelector(".xyflow__viewport"),s=!1;if(!u)return{changes:[],updatedInternals:s};let c=[],l=window.getComputedStyle(u),{m22:f}=new window.DOMMatrixReadOnly(l.transform),d=[];for(let r of t.values()){let t=e.get(r.id);if(!t)continue;if(t.hidden){e.set(t.id,{...t,internals:{...t.internals,handleBounds:void 0}}),s=!0;continue}let u=nF(r.nodeElement),l=t.measured.width!==u.width||t.measured.height!==u.height;if(u.width&&u.height&&(l||!t.internals.handleBounds||r.force)){let h=r.nodeElement.getBoundingClientRect(),p=nI(t.extent)?t.extent:i,{positionAbsolute:v}=t.internals;if(t.parentId&&"parent"===t.extent){let n=e.get(t.parentId);n&&(v=nd(v,u,n))}else p&&(v=nf(v,p,u));let y={...t,measured:u,internals:{...t.internals,positionAbsolute:v,handleBounds:{source:nH("source",r.nodeElement,h,f,t.id),target:nH("target",r.nodeElement,h,f,t.id)}}};e.set(t.id,y),t.parentId&&rf(y,e,n,{nodeOrigin:o,zIndexMode:a}),s=!0,l&&(c.push({id:t.id,type:"dimensions",dimensions:u}),t.expandParent&&t.parentId&&d.push({id:t.id,parentId:t.parentId,rect:nm(y,o)}))}}if(d.length>0){let t=rh(d,e,n,o);c.push(...t)}return{changes:c,updatedInternals:s}}async function rv({delta:t,panZoom:e,transform:n,translateExtent:r,width:o,height:i}){if(!e||!t.x&&!t.y)return!1;let a=await e.setViewportConstrained({x:n[0]+t.x,y:n[1]+t.y,zoom:n[2]},[[0,0],[o,i]],r);return!!a&&(a.x!==n[0]||a.y!==n[1]||a.k!==n[2])}function ry(t,e,n,r,o,i){let a=o,u=r.get(a)||new Map;r.set(a,u.set(n,e)),a=`${o}-${t}`;let s=r.get(a)||new Map;if(r.set(a,s.set(n,e)),i){a=`${o}-${t}-${i}`;let u=r.get(a)||new Map;r.set(a,u.set(n,e))}}function rg(t,e,n){for(let r of(t.clear(),e.clear(),n)){let{source:n,target:o,sourceHandle:i=null,targetHandle:a=null}=r,u={edgeId:r.id,source:n,target:o,sourceHandle:i,targetHandle:a},s=`${n}-${i}--${o}-${a}`;ry("source",u,`${o}-${a}--${n}-${i}`,t,n,i),ry("target",u,s,t,o,a),e.set(r.id,r)}}function rm(t,e,n){let r=t;do{if(r?.matches?.(e))return!0;if(r===n)break;r=r?.parentElement}while(r);return!1}function rb({nodeId:t,dragItems:e,nodeLookup:n,dragging:r=!0}){let o=[];for(let[t,i]of e){let e=n.get(t)?.internals.userNode;e&&o.push({...e,position:i.position,dragging:r})}if(!t)return[o[0],o];let i=n.get(t)?.internals.userNode;return[i?{...i,position:e.get(t)?.position||i.position,dragging:r}:o[0],o]}function rx({onNodeMouseDown:t,getStoreItems:e,onDragStart:n,onDrag:r,onDragStop:o}){let i={x:null,y:null},a=0,u=new Map,s=!1,c={x:0,y:0},l=null,f=!1,d=null,h=!1,p=!1,v=null;return{update:function({noDragClassName:y,handleSelector:g,domNode:m,isSelectable:x,nodeId:w,nodeClickDistance:_=0}){function E({x:t,y:n}){let{nodeLookup:o,nodeExtent:a,snapGrid:s,snapToGrid:c,nodeOrigin:l,onNodeDrag:f,onSelectionDrag:d,onError:h,updateNodePositions:y}=e();i={x:t,y:n};let g=!1,m=u.size>1,b=m&&a?ny(no(u)):null,x=m&&c?function({dragItems:t,snapGrid:e,x:n,y:r}){let o=t.values().next().value;if(!o)return null;let i={x:n-o.distance.x,y:r-o.distance.y},a=nj(i,e);return{x:a.x-i.x,y:a.y-i.y}}({dragItems:u,snapGrid:s,x:t,y:n}):null;for(let[e,r]of u){if(!o.has(e))continue;let i={x:t-r.distance.x,y:n-r.distance.y};c&&(i=x?{x:Math.round(i.x+x.x),y:Math.round(i.y+x.y)}:nj(i,s));let u=null;if(m&&a&&!r.extent&&b){let{positionAbsolute:t}=r.internals,e=t.x-b.x+a[0][0],n=t.x+r.measured.width-b.x2+a[1][0];u=[[e,t.y-b.y+a[0][1]],[n,t.y+r.measured.height-b.y2+a[1][1]]]}let{position:f,positionAbsolute:d}=ns({nodeId:e,nextPosition:i,nodeLookup:o,nodeExtent:u||a,nodeOrigin:l,onError:h});g=g||r.position.x!==f.x||r.position.y!==f.y,r.position=f,r.internals.positionAbsolute=d}if(p=p||g,g&&(y(u,!0),v&&(r||f||!w&&d))){let[t,e]=rb({nodeId:w,dragItems:u,nodeLookup:o});r?.(v,u,t,e),f?.(v,t,e),w||d?.(v,e)}}async function k(){if(!l)return;let{transform:t,panBy:n,autoPanSpeed:r,autoPanOnNodeDrag:o}=e();if(!o){s=!1,cancelAnimationFrame(a);return}let[u,f]=np(c,l,r);(0!==u||0!==f)&&(i.x=(i.x??0)-u/t[2],i.y=(i.y??0)-f/t[2],await n({x:u,y:f})&&E(i)),a=requestAnimationFrame(k)}function M(r){let{nodeLookup:o,multiSelectionActive:a,nodesDraggable:s,transform:c,snapGrid:d,snapToGrid:h,selectNodesOnDrag:p,onNodeDragStart:v,onSelectionDragStart:y,unselectNodesAndEdges:g}=e();f=!0,p&&x||a||!w||o.get(w)?.selected||g(),x&&p&&w&&t?.(w);let m=n$(r.sourceEvent,{transform:c,snapGrid:d,snapToGrid:h,containerBounds:l});if(i=m,(u=function(t,e,n,r){let o=new Map;for(let[i,a]of t)if((a.selected||a.id===r)&&(!a.parentId||!function t(e,n){if(!e.parentId)return!1;let r=n.get(e.parentId);return!!r&&(!!r.selected||t(r,n))}(a,t))&&(a.draggable||e&&void 0===a.draggable)){let e=t.get(i);e&&o.set(i,{id:i,position:e.position||{x:0,y:0},distance:{x:n.x-e.internals.positionAbsolute.x,y:n.y-e.internals.positionAbsolute.y},extent:e.extent,parentId:e.parentId,origin:e.origin,expandParent:e.expandParent,internals:{positionAbsolute:e.internals.positionAbsolute||{x:0,y:0}},measured:{width:e.measured.width??0,height:e.measured.height??0}})}return o}(o,s,m,w)).size>0&&(n||v||!w&&y)){let[t,e]=rb({nodeId:w,dragItems:u,nodeLookup:o});n?.(r.sourceEvent,u,t,e),v?.(r.sourceEvent,t,e),w||y?.(r.sourceEvent,e)}}d=tc(m);let j=(function(){var t,e,n,r,o=tb,i=tx,a=tw,u=t_,s={},c=b("start","drag","end"),l=0,f=0;function d(t){t.on("mousedown.drag",h).filter(u).on("touchstart.drag",y).on("touchmove.drag",g,tf).on("touchend.drag touchcancel.drag",m).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function h(a,u){if(!r&&o.call(this,a,u)){var s=x(this,i.call(this,a,u),a,u,"mouse");s&&(tc(a.view).on("mousemove.drag",p,td).on("mouseup.drag",v,td),tv(a.view),th(a),n=!1,t=a.clientX,e=a.clientY,s("start",a))}}function p(r){if(tp(r),!n){var o=r.clientX-t,i=r.clientY-e;n=o*o+i*i>f}s.mouse("drag",r)}function v(t){tc(t.view).on("mousemove.drag mouseup.drag",null),ty(t.view,n),tp(t),s.mouse("end",t)}function y(t,e){if(o.call(this,t,e)){var n,r,a=t.changedTouches,u=i.call(this,t,e),s=a.length;for(n=0;n<s;++n)(r=x(this,u,t,e,a[n].identifier,a[n]))&&(th(t),r("start",t,a[n]))}}function g(t){var e,n,r=t.changedTouches,o=r.length;for(e=0;e<o;++e)(n=s[r[e].identifier])&&(tp(t),n("drag",t,r[e]))}function m(t){var e,n,o=t.changedTouches,i=o.length;for(r&&clearTimeout(r),r=setTimeout(function(){r=null},500),e=0;e<i;++e)(n=s[o[e].identifier])&&(th(t),n("end",t,o[e]))}function x(t,e,n,r,o,i){var u,f,h,p=c.copy(),v=tl(i||n,e);if(null!=(h=a.call(t,new tm("beforestart",{sourceEvent:n,target:d,identifier:o,active:l,x:v[0],y:v[1],dx:0,dy:0,dispatch:p}),r)))return u=h.x-v[0]||0,f=h.y-v[1]||0,function n(i,a,c){var y,g=v;switch(i){case"start":s[o]=n,y=l++;break;case"end":delete s[o],--l;case"drag":v=tl(c||a,e),y=l}p.call(i,t,new tm(i,{sourceEvent:a,subject:h,target:d,identifier:o,active:y,x:v[0]+u,y:v[1]+f,dx:v[0]-g[0],dy:v[1]-g[1],dispatch:p}),r)}}return d.filter=function(t){return arguments.length?(o="function"==typeof t?t:tg(!!t),d):o},d.container=function(t){return arguments.length?(i="function"==typeof t?t:tg(t),d):i},d.subject=function(t){return arguments.length?(a="function"==typeof t?t:tg(t),d):a},d.touchable=function(t){return arguments.length?(u="function"==typeof t?t:tg(!!t),d):u},d.on=function(){var t=c.on.apply(c,arguments);return t===c?d:t},d.clickDistance=function(t){return arguments.length?(f=(t=+t)*t,d):Math.sqrt(f)},d})().clickDistance(_).on("start",t=>{let{domNode:n,nodeDragThreshold:r,transform:o,snapGrid:a,snapToGrid:u}=e();l=n?.getBoundingClientRect()||null,h=!1,p=!1,v=t.sourceEvent,0===r&&M(t),i=n$(t.sourceEvent,{transform:o,snapGrid:a,snapToGrid:u,containerBounds:l}),c=nq(t.sourceEvent,l)}).on("drag",t=>{let{autoPanOnNodeDrag:n,transform:r,snapGrid:o,snapToGrid:a,nodeDragThreshold:d,nodeLookup:p}=e(),y=n$(t.sourceEvent,{transform:r,snapGrid:o,snapToGrid:a,containerBounds:l});if(v=t.sourceEvent,("touchmove"===t.sourceEvent.type&&t.sourceEvent.touches.length>1||w&&!p.has(w))&&(h=!0),!h){if(!s&&n&&f&&(s=!0,k()),!f){let e=nq(t.sourceEvent,l),n=e.x-c.x,r=e.y-c.y;Math.sqrt(n*n+r*r)>d&&M(t)}(i.x!==y.xSnapped||i.y!==y.ySnapped)&&u&&f&&(c=nq(t.sourceEvent,l),E(y))}}).on("end",t=>{if(!f||h){h&&u.size>0&&e().updateNodePositions(u,!1);return}if(s=!1,f=!1,cancelAnimationFrame(a),u.size>0){let{nodeLookup:n,updateNodePositions:r,onNodeDragStop:i,onSelectionDragStop:a}=e();if(p&&(r(u,!1),p=!1),o||i||!w&&a){let[e,r]=rb({nodeId:w,dragItems:u,nodeLookup:n,dragging:!1});o?.(t.sourceEvent,u,e,r),i?.(t.sourceEvent,e,r),w||a?.(t.sourceEvent,r)}}}).filter(t=>{let e=t.target;return!t.button&&(!y||!rm(e,`.${y}`,m))&&(!g||rm(e,g,m))});d.call(j)},destroy:function(){d?.on(".drag",null)}}}function rw(t,e,n,r,o,i=!1){let a=r.get(t);if(!a)return null;let u="strict"===o?a.internals.handleBounds?.[e]:[...a.internals.handleBounds?.source??[],...a.internals.handleBounds?.target??[]],s=(n?u?.find(t=>t.id===n):u?.[0])??null;return s&&i?{...s,...re(a,s,s.position,!0)}:s}function r_(t,e){return t||(e?.classList.contains("target")?"target":e?.classList.contains("source")?"source":null)}let rE=()=>!0;function rk(t,{handle:e,connectionMode:n,fromNodeId:r,fromHandleId:o,fromType:i,doc:a,lib:u,flowId:s,isValidConnection:c=rE,nodeLookup:l}){let d="target"===i,h=e?a.querySelector(`.${u}-flow__handle[data-id="${s}-${e?.nodeId}-${e?.id}-${e?.type}"]`):null,{x:p,y:v}=nq(t),y=a.elementFromPoint(p,v),g=y?.classList.contains(`${u}-flow__handle`)?y:h,m={handleDomNode:g,isValid:!1,connection:null,toHandle:null};if(g){let t=r_(void 0,g),e=g.getAttribute("data-nodeid"),i=g.getAttribute("data-handleid"),a=g.classList.contains("connectable"),u=g.classList.contains("connectableend");if(!e||!t)return m;let s={source:d?e:r,sourceHandle:d?i:o,target:d?r:e,targetHandle:d?o:i};m.connection=s;let h=a&&u&&(n===f.Strict?d&&"source"===t||!d&&"target"===t:e!==r||i!==o);m.isValid=h&&c(s),m.toHandle=rw(e,t,i,l,n,!0)}return m}let rM={onPointerDown:function(t,{connectionMode:e,connectionRadius:n,handleId:r,nodeId:o,edgeUpdaterType:i,isTarget:a,domNode:u,nodeLookup:s,lib:c,autoPanOnConnect:l,flowId:f,panBy:d,cancelConnection:h,onConnectStart:p,onConnect:v,onConnectEnd:g,isValidConnection:m=rE,onReconnectEnd:b,updateConnection:x,getTransform:w,getFromHandle:_,autoPanSpeed:E,dragThreshold:k=1,handleDomNode:M}){let j;let N=nV(t.target),S=0,{x:O,y:R}=nq(t),C=r_(i,M),I=u?.getBoundingClientRect(),T=!1;if(!I||!C)return;let A=rw(o,C,r,s,e);if(!A)return;let z=nq(t,I),P=!1,L=null,D=!1,$=null,F={...A,nodeId:o,type:C,position:A.position},V=s.get(o),B={inProgress:!0,isValid:null,from:re(V,F,y.Left,!0),fromHandle:F,fromPosition:F.position,fromNode:V,to:z,toHandle:null,toPosition:e7[F.position],toNode:null,pointer:z};function Z(){T=!0,x(B),p?.(t,{nodeId:o,handleId:r,handleType:C})}function W(t){var i,u;let h;if(!T){let{x:e,y:n}=nq(t),r=e-O,o=n-R;if(!(r*r+o*o>k*k))return;Z()}if(!_()||!F){q(t);return}let p=w();j=function(t,e,n,r){let o=[],i=1/0;for(let a of function(t,e,n){let r=[],o={x:t.x-n,y:t.y-n,width:2*n,height:2*n};for(let t of e.values())n_(o,nm(t))>0&&r.push(t);return r}(t,n,e+250))for(let n of[...a.internals.handleBounds?.source??[],...a.internals.handleBounds?.target??[]]){if(r.nodeId===n.nodeId&&r.type===n.type&&r.id===n.id)continue;let{x:u,y:s}=re(a,n,n.position,!0),c=Math.sqrt(Math.pow(u-t.x,2)+Math.pow(s-t.y,2));c>e||(c<i?(o=[{...n,x:u,y:s}],i=c):c===i&&o.push({...n,x:u,y:s}))}if(!o.length)return null;if(o.length>1){let t="source"===r.type?"target":"source";return o.find(e=>e.type===t)??o[0]}return o[0]}(nN(z=nq(t,I),p,!1,[1,1]),n,s,F),P||(function t(){if(!l||!I)return;let[e,n]=np(z,I,E);d({x:e,y:n}),S=requestAnimationFrame(t)}(),P=!0);let v=rk(t,{handle:j,connectionMode:e,fromNodeId:o,fromHandleId:r,fromType:a?"target":"source",isValidConnection:m,doc:N,lib:c,flowId:f,nodeLookup:s});$=v.handleDomNode,L=v.connection,i=!!j,u=v.isValid,h=null,u?h=!0:i&&!u&&(h=!1),D=h;let g=s.get(o),b=g?re(g,F,y.Left,!0):B.from,M={...B,from:b,isValid:D,to:v.toHandle&&D?nS({x:v.toHandle.x,y:v.toHandle.y},p):z,toHandle:v.toHandle,toPosition:D&&v.toHandle?v.toHandle.position:e7[F.position],toNode:v.toHandle?s.get(v.toHandle.nodeId):null,pointer:z};x(M),B=M}function q(t){if(!("touches"in t)||!(t.touches.length>0)){if(T){(j||$)&&L&&D&&v?.(L);let{inProgress:e,...n}=B,r={...n,toPosition:B.toHandle?B.toPosition:null};g?.(t,r),i&&b?.(t,r)}h(),cancelAnimationFrame(S),P=!1,D=!1,L=null,$=null,N.removeEventListener("mousemove",W),N.removeEventListener("mouseup",q),N.removeEventListener("touchmove",W),N.removeEventListener("touchend",q)}}0===k&&Z(),N.addEventListener("mousemove",W),N.addEventListener("mouseup",q),N.addEventListener("touchmove",W),N.addEventListener("touchend",q)},isValid:rk};function rj({domNode:t,panZoom:e,getTransform:n,getViewScale:r}){let o=tc(t);return{update:function({translateExtent:t,width:i,height:a,zoomStep:u=1,pannable:s=!0,zoomable:c=!0,inversePan:l=!1}){let f=[0,0],d=e0().on("start",t=>{("mousedown"===t.sourceEvent.type||"touchstart"===t.sourceEvent.type)&&(f=[t.sourceEvent.clientX??t.sourceEvent.touches[0].clientX,t.sourceEvent.clientY??t.sourceEvent.touches[0].clientY])}).on("zoom",s?o=>{let u=n();if("mousemove"!==o.sourceEvent.type&&"touchmove"!==o.sourceEvent.type||!e)return;let s=[o.sourceEvent.clientX??o.sourceEvent.touches[0].clientX,o.sourceEvent.clientY??o.sourceEvent.touches[0].clientY],c=[s[0]-f[0],s[1]-f[1]];f=s;let d=r()*Math.max(u[2],Math.log(u[2]))*(l?-1:1),h={x:u[0]-c[0]*d,y:u[1]-c[1]*d};e.setViewportConstrained({x:h.x,y:h.y,zoom:u[2]},[[0,0],[i,a]],t)}:null).on("zoom.wheel",c?t=>{if("wheel"!==t.sourceEvent.type||!e)return;let r=n(),o=t.sourceEvent.ctrlKey&&nC()?10:1,i=-t.sourceEvent.deltaY*(1===t.sourceEvent.deltaMode?.05:t.sourceEvent.deltaMode?1:.002)*u,a=r[2]*Math.pow(2,i*o);e.scaleTo(a)}:null);o.call(d,{})},destroy:function(){o.on("zoom",null)},pointer:tl}}let rN=t=>({x:t.x,y:t.y,zoom:t.k}),rS=({x:t,y:e,zoom:n})=>eW.translate(t,e).scale(n),rO=(t,e)=>t.target.closest(`.${e}`),rR=(t,e)=>2===e&&Array.isArray(t)&&t.includes(2),rC=t=>((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2,rI=(t,e=0,n=rC,r=()=>{})=>{let o="number"==typeof e&&e>0;return o||r(),o?t.transition().duration(e).ease(n).on("end",r):t},rT=t=>{let e=t.ctrlKey&&nC()?10:1;return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*e};function rA({domNode:t,minZoom:e,maxZoom:n,translateExtent:r,viewport:o,onPanZoom:i,onPanZoomStart:a,onPanZoomEnd:u,onDraggingChange:s}){let c={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},l=t.getBoundingClientRect(),f=[[0,0],[l.width,l.height]],h="undefined"!=typeof ResizeObserver?new ResizeObserver(t=>{let e=t[0];e&&(f=[[0,0],[e.contentRect.width,e.contentRect.height]])}):null;h?.observe(t);let p=e0().extent(()=>f).scaleExtent([e,n]).translateExtent(r),v=tc(t).call(p);x({x:o.x,y:o.y,zoom:nl(o.zoom,e,n)},[[0,0],[l.width,l.height]],r);let y=v.on("wheel.zoom"),g=v.on("dblclick.zoom");async function m(t,e){return!!v&&new Promise(n=>{p?.interpolate(e?.interpolate==="linear"?e1:tj).transform(rI(v,e?.duration,e?.ease,()=>n(!0)),t)})}function b(){p.on("zoom",null)}async function x(t,e,n){let r=rS(t),o=p?.constrain()(r,e,n);return o&&await m(o),o}return p.wheelDelta(rT),{update:function({noWheelClassName:t,noPanClassName:e,onPaneContextMenu:n,userSelectionActive:r,panOnScroll:o,panOnDrag:l,panOnScrollMode:f,panOnScrollSpeed:h,preventScrolling:m,zoomOnPinch:x,zoomOnScroll:w,zoomOnDoubleClick:_,zoomActivationKeyPressed:E,lib:k,onTransformChange:M,connectionInProgress:j,paneClickDistance:N,selectionOnDrag:S}){r&&!c.isZoomingOrPanning&&b();let O=o&&!E&&!r;p.clickDistance(S?1/0:!nk(N)||N<0?0:N);let R=O?function({zoomPanValues:t,noWheelClassName:e,d3Selection:n,d3Zoom:r,panOnScrollMode:o,panOnScrollSpeed:i,zoomOnPinch:a,onPanZoomStart:u,onPanZoom:s,onPanZoomEnd:c}){return l=>{if(rO(l,e))return l.ctrlKey&&l.preventDefault(),!1;l.preventDefault(),l.stopImmediatePropagation();let f=n.property("__zoom").k||1;if(l.ctrlKey&&a){let t=tl(l),e=rT(l);r.scaleTo(n,f*Math.pow(2,e),t,l);return}let h=1===l.deltaMode?20:1,p=o===d.Vertical?0:l.deltaX*h,v=o===d.Horizontal?0:l.deltaY*h;!nC()&&l.shiftKey&&o!==d.Vertical&&(p=l.deltaY*h,v=0),r.translateBy(n,-(p/f)*i,-(v/f)*i,{internal:!0});let y=rN(n.property("__zoom"));clearTimeout(t.panScrollTimeout),t.isPanScrolling?s?.(l,y):(t.isPanScrolling=!0,u?.(l,y)),t.panScrollTimeout=setTimeout(()=>{c?.(l,y),t.isPanScrolling=!1},150)}}({zoomPanValues:c,noWheelClassName:t,d3Selection:v,d3Zoom:p,panOnScrollMode:f,panOnScrollSpeed:h,zoomOnPinch:x,onPanZoomStart:a,onPanZoom:i,onPanZoomEnd:u}):function({noWheelClassName:t,preventScrolling:e,d3ZoomHandler:n}){return function(r,o){let i="wheel"===r.type,a=!e&&i&&!r.ctrlKey,u=rO(r,t);if(r.ctrlKey&&i&&u&&r.preventDefault(),a||u)return null;r.preventDefault(),n.call(this,r,o)}}({noWheelClassName:t,preventScrolling:m,d3ZoomHandler:y});v.on("wheel.zoom",R,{passive:!1});let C=function({zoomPanValues:t,onDraggingChange:e,onPanZoomStart:n}){return r=>{if(r.sourceEvent?.internal)return;let o=rN(r.transform);t.mouseButton=r.sourceEvent?.button||0,t.isZoomingOrPanning=!0,t.prevViewport=o,r.sourceEvent?.type==="mousedown"&&e(!0),n&&n?.(r.sourceEvent,o)}}({zoomPanValues:c,onDraggingChange:s,onPanZoomStart:a});p.on("start",C);let I=function({zoomPanValues:t,panOnDrag:e,onPaneContextMenu:n,onTransformChange:r,onPanZoom:o}){return i=>{t.usedRightMouseButton=!!(n&&rR(e,t.mouseButton??0)),i.sourceEvent?.sync||r([i.transform.x,i.transform.y,i.transform.k]),o&&!i.sourceEvent?.internal&&o?.(i.sourceEvent,rN(i.transform))}}({zoomPanValues:c,panOnDrag:l,onPaneContextMenu:!!n,onPanZoom:i,onTransformChange:M});p.on("zoom",I);let T=function({zoomPanValues:t,panOnDrag:e,panOnScroll:n,onDraggingChange:r,onPanZoomEnd:o,onPaneContextMenu:i}){return a=>{if(!a.sourceEvent?.internal&&(t.isZoomingOrPanning=!1,i&&rR(e,t.mouseButton??0)&&!t.usedRightMouseButton&&a.sourceEvent&&i(a.sourceEvent),t.usedRightMouseButton=!1,r(!1),o)){let e=rN(a.transform);t.prevViewport=e,clearTimeout(t.timerId),t.timerId=setTimeout(()=>{o?.(a.sourceEvent,e)},n?150:0)}}}({zoomPanValues:c,panOnDrag:l,panOnScroll:o,onPaneContextMenu:n,onPanZoomEnd:u,onDraggingChange:s});p.on("end",T);let A=function({zoomActivationKeyPressed:t,zoomOnScroll:e,zoomOnPinch:n,panOnDrag:r,panOnScroll:o,zoomOnDoubleClick:i,userSelectionActive:a,noWheelClassName:u,noPanClassName:s,lib:c,connectionInProgress:l}){return f=>{let d=t||e,h=n&&f.ctrlKey,p="wheel"===f.type;if(1===f.button&&"mousedown"===f.type&&(rO(f,`${c}-flow__node`)||rO(f,`${c}-flow__edge`)))return!0;if(!r&&!d&&!o&&!i&&!n||a||l&&!p||rO(f,u)&&p||rO(f,s)&&(!p||o&&p&&!t)||!n&&f.ctrlKey&&p)return!1;if(!n&&"touchstart"===f.type&&f.touches?.length>1)return f.preventDefault(),!1;if(!d&&!o&&!h&&p||!r&&("mousedown"===f.type||"touchstart"===f.type)||Array.isArray(r)&&!r.includes(f.button)&&"mousedown"===f.type)return!1;let v=Array.isArray(r)&&r.includes(f.button)||!f.button||f.button<=1;return(!f.ctrlKey||p)&&v}}({zoomActivationKeyPressed:E,panOnDrag:l,zoomOnScroll:w,panOnScroll:o,zoomOnDoubleClick:_,zoomOnPinch:x,userSelectionActive:r,noPanClassName:e,noWheelClassName:t,lib:k,connectionInProgress:j});p.filter(A),_?v.on("dblclick.zoom",g):v.on("dblclick.zoom",null)},destroy:b,setViewport:async function(t,e){let n=rS(t);return await m(n,e),n},setViewportConstrained:x,getViewport:function(){let t=v?eq(v.node()):{x:0,y:0,k:1};return{x:t.x,y:t.y,zoom:t.k}},scaleTo:async function(t,e){return!!v&&new Promise(n=>{p?.interpolate(e?.interpolate==="linear"?e1:tj).scaleTo(rI(v,e?.duration,e?.ease,()=>n(!0)),t)})},scaleBy:async function(t,e){return!!v&&new Promise(n=>{p?.interpolate(e?.interpolate==="linear"?e1:tj).scaleBy(rI(v,e?.duration,e?.ease,()=>n(!0)),t)})},setScaleExtent:function(t){p?.scaleExtent(t)},setTranslateExtent:function(t){p?.translateExtent(t)},syncViewport:function(t){if(v){let e=rS(t),n=v.property("__zoom");(n.k!==t.zoom||n.x!==t.x||n.y!==t.y)&&p?.transform(v,e,null,{sync:!0})}},setClickDistance:function(t){let e=!nk(t)||t<0?0:t;p?.clickDistance(e)}}}(c=g||(g={})).Line="line",c.Handle="handle"},86332:function(t,e,n){t.exports={graphlib:n(82901),layout:n(74086),debug:n(79050),util:{time:n(13616).time,notime:n(13616).notime},version:n(91e3)}},91725:function(t,e,n){"use strict";var r=n(9361),o=n(18265);t.exports={run:function(t){var e,n,i,a="greedy"===t.graph().acyclicer?o(t,function(e){return t.edge(e).weight}):(e=[],n={},i={},r.forEach(t.nodes(),function o(a){r.has(i,a)||(i[a]=!0,n[a]=!0,r.forEach(t.outEdges(a),function(t){r.has(n,t.w)?e.push(t):o(t.w)}),delete n[a])}),e);r.forEach(a,function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,r.uniqueId("rev"))})},undo:function(t){r.forEach(t.edges(),function(e){var n=t.edge(e);if(n.reversed){t.removeEdge(e);var r=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,r)}})}}},11415:function(t,e,n){var r=n(9361),o=n(13616);function i(t,e,n,r,i,a){var u=i[e][a-1],s=o.addDummyNode(t,"border",{width:0,height:0,rank:a,borderType:e},n);i[e][a]=s,t.setParent(s,r),u&&t.setEdge(u,s,{weight:1})}t.exports=function(t){r.forEach(t.children(),function e(n){var o=t.children(n),a=t.node(n);if(o.length&&r.forEach(o,e),r.has(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var u=a.minRank,s=a.maxRank+1;u<s;++u)i(t,"borderLeft","_bl",n,a,u),i(t,"borderRight","_br",n,a,u)}})}},98653:function(t,e,n){"use strict";var r=n(9361);function o(t){r.forEach(t.nodes(),function(e){i(t.node(e))}),r.forEach(t.edges(),function(e){i(t.edge(e))})}function i(t){var e=t.width;t.width=t.height,t.height=e}function a(t){t.y=-t.y}function u(t){var e=t.x;t.x=t.y,t.y=e}t.exports={adjust:function(t){var e=t.graph().rankdir.toLowerCase();("lr"===e||"rl"===e)&&o(t)},undo:function(t){var e=t.graph().rankdir.toLowerCase();("bt"===e||"rl"===e)&&(r.forEach(t.nodes(),function(e){a(t.node(e))}),r.forEach(t.edges(),function(e){var n=t.edge(e);r.forEach(n.points,a),r.has(n,"y")&&a(n)})),("lr"===e||"rl"===e)&&(r.forEach(t.nodes(),function(e){u(t.node(e))}),r.forEach(t.edges(),function(e){var n=t.edge(e);r.forEach(n.points,u),r.has(n,"x")&&u(n)}),o(t))}}},64517:function(t){function e(){var t={};t._next=t._prev=t,this._sentinel=t}function n(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function r(t,e){if("_next"!==t&&"_prev"!==t)return e}t.exports=e,e.prototype.dequeue=function(){var t=this._sentinel,e=t._prev;if(e!==t)return n(e),e},e.prototype.enqueue=function(t){var e=this._sentinel;t._prev&&t._next&&n(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e},e.prototype.toString=function(){for(var t=[],e=this._sentinel,n=e._prev;n!==e;)t.push(JSON.stringify(n,r)),n=n._prev;return"["+t.join(", ")+"]"}},79050:function(t,e,n){var r=n(9361),o=n(13616),i=n(82901).Graph;t.exports={debugOrdering:function(t){var e=o.buildLayerMatrix(t),n=new i({compound:!0,multigraph:!0}).setGraph({});return r.forEach(t.nodes(),function(e){n.setNode(e,{label:e}),n.setParent(e,"layer"+t.node(e).rank)}),r.forEach(t.edges(),function(t){n.setEdge(t.v,t.w,{},t.name)}),r.forEach(e,function(t,e){n.setNode("layer"+e,{rank:"same"}),r.reduce(t,function(t,e){return n.setEdge(t,e,{style:"invis"}),e})}),n}}},82901:function(t,e,n){var r;try{r=n(46038)}catch(t){}r||(r=window.graphlib),t.exports=r},18265:function(t,e,n){var r=n(9361),o=n(82901).Graph,i=n(64517);t.exports=function(t,e){if(1>=t.nodeCount())return[];var n,c,l,f,d,h,p=(n=e||a,c=new o,l=0,f=0,r.forEach(t.nodes(),function(t){c.setNode(t,{v:t,in:0,out:0})}),r.forEach(t.edges(),function(t){var e=c.edge(t.v,t.w)||0,r=n(t);c.setEdge(t.v,t.w,e+r),f=Math.max(f,c.node(t.v).out+=r),l=Math.max(l,c.node(t.w).in+=r)}),d=r.range(f+l+3).map(function(){return new i}),h=l+1,r.forEach(c.nodes(),function(t){s(d,h,c.node(t))}),{graph:c,buckets:d,zeroIdx:h}),v=function(t,e,n){for(var r,o=[],i=e[e.length-1],a=e[0];t.nodeCount();){for(;r=a.dequeue();)u(t,e,n,r);for(;r=i.dequeue();)u(t,e,n,r);if(t.nodeCount()){for(var s=e.length-2;s>0;--s)if(r=e[s].dequeue()){o=o.concat(u(t,e,n,r,!0));break}}}return o}(p.graph,p.buckets,p.zeroIdx);return r.flatten(r.map(v,function(e){return t.outEdges(e.v,e.w)}),!0)};var a=r.constant(1);function u(t,e,n,o,i){var a=i?[]:void 0;return r.forEach(t.inEdges(o.v),function(r){var o=t.edge(r),u=t.node(r.v);i&&a.push({v:r.v,w:r.w}),u.out-=o,s(e,n,u)}),r.forEach(t.outEdges(o.v),function(r){var o=t.edge(r),i=r.w,a=t.node(i);a.in-=o,s(e,n,a)}),t.removeNode(o.v),a}function s(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}},74086:function(t,e,n){"use strict";var r=n(9361),o=n(91725),i=n(35061),a=n(59653),u=n(13616).normalizeRanks,s=n(118),c=n(13616).removeEmptyRanks,l=n(58361),f=n(11415),d=n(98653),h=n(79838),p=n(67884),v=n(13616),y=n(82901).Graph;t.exports=function(t,e){var n=e&&e.debugTiming?v.time:v.notime;n("layout",function(){var e=n(" buildLayoutGraph",function(){var e,n;return e=new y({multigraph:!0,compound:!0}),n=j(t.graph()),e.setGraph(r.merge({},m,M(n,g),r.pick(n,b))),r.forEach(t.nodes(),function(n){var o=j(t.node(n));e.setNode(n,r.defaults(M(o,x),w)),e.setParent(n,t.parent(n))}),r.forEach(t.edges(),function(n){var o=j(t.edge(n));e.setEdge(n,r.merge({},E,M(o,_),r.pick(o,k)))}),e});n(" runLayout",function(){n(" makeSpaceForEdgeLabels",function(){var t;t=e.graph(),t.ranksep/=2,r.forEach(e.edges(),function(n){var r=e.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===t.rankdir||"BT"===t.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)})}),n(" removeSelfEdges",function(){r.forEach(e.edges(),function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}),n(" acyclic",function(){o.run(e)}),n(" nestingGraph.run",function(){l.run(e)}),n(" rank",function(){a(v.asNonCompoundGraph(e))}),n(" injectEdgeLabelProxies",function(){r.forEach(e.edges(),function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v),o={rank:(e.node(t.w).rank-r.rank)/2+r.rank,e:t};v.addDummyNode(e,"edge-proxy",o,"_ep")}})}),n(" removeEmptyRanks",function(){c(e)}),n(" nestingGraph.cleanup",function(){l.cleanup(e)}),n(" normalizeRanks",function(){u(e)}),n(" assignRankMinMax",function(){var t;t=0,r.forEach(e.nodes(),function(n){var o=e.node(n);o.borderTop&&(o.minRank=e.node(o.borderTop).rank,o.maxRank=e.node(o.borderBottom).rank,t=r.max(t,o.maxRank))}),e.graph().maxRank=t}),n(" removeEdgeLabelProxies",function(){r.forEach(e.nodes(),function(t){var n=e.node(t);"edge-proxy"===n.dummy&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))})}),n(" normalize.run",function(){i.run(e)}),n(" parentDummyChains",function(){s(e)}),n(" addBorderSegments",function(){f(e)}),n(" order",function(){h(e)}),n(" insertSelfEdges",function(){var t;t=v.buildLayerMatrix(e),r.forEach(t,function(t){var n=0;r.forEach(t,function(t,o){var i=e.node(t);i.order=o+n,r.forEach(i.selfEdges,function(t){v.addDummyNode(e,"selfedge",{width:t.label.width,height:t.label.height,rank:i.rank,order:o+ ++n,e:t.e,label:t.label},"_se")}),delete i.selfEdges})})}),n(" adjustCoordinateSystem",function(){d.adjust(e)}),n(" position",function(){p(e)}),n(" positionSelfEdges",function(){r.forEach(e.nodes(),function(t){var n=e.node(t);if("selfedge"===n.dummy){var r=e.node(n.e.v),o=r.x+r.width/2,i=r.y,a=n.x-o,u=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:o+2*a/3,y:i-u},{x:o+5*a/6,y:i-u},{x:o+a,y:i},{x:o+5*a/6,y:i+u},{x:o+2*a/3,y:i+u}],n.label.x=n.x,n.label.y=n.y}})}),n(" removeBorderNodes",function(){r.forEach(e.nodes(),function(t){if(e.children(t).length){var n=e.node(t),o=e.node(n.borderTop),i=e.node(n.borderBottom),a=e.node(r.last(n.borderLeft)),u=e.node(r.last(n.borderRight));n.width=Math.abs(u.x-a.x),n.height=Math.abs(i.y-o.y),n.x=a.x+n.width/2,n.y=o.y+n.height/2}}),r.forEach(e.nodes(),function(t){"border"===e.node(t).dummy&&e.removeNode(t)})}),n(" normalize.undo",function(){i.undo(e)}),n(" fixupEdgeLabelCoords",function(){r.forEach(e.edges(),function(t){var n=e.edge(t);if(r.has(n,"x"))switch(("l"===n.labelpos||"r"===n.labelpos)&&(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}})}),n(" undoCoordinateSystem",function(){d.undo(e)}),n(" translateGraph",function(){(function(t){var e=Number.POSITIVE_INFINITY,n=0,o=Number.POSITIVE_INFINITY,i=0,a=t.graph(),u=a.marginx||0,s=a.marginy||0;function c(t){var r=t.x,a=t.y,u=t.width,s=t.height;e=Math.min(e,r-u/2),n=Math.max(n,r+u/2),o=Math.min(o,a-s/2),i=Math.max(i,a+s/2)}r.forEach(t.nodes(),function(e){c(t.node(e))}),r.forEach(t.edges(),function(e){var n=t.edge(e);r.has(n,"x")&&c(n)}),e-=u,o-=s,r.forEach(t.nodes(),function(n){var r=t.node(n);r.x-=e,r.y-=o}),r.forEach(t.edges(),function(n){var i=t.edge(n);r.forEach(i.points,function(t){t.x-=e,t.y-=o}),r.has(i,"x")&&(i.x-=e),r.has(i,"y")&&(i.y-=o)}),a.width=n-e+u,a.height=i-o+s})(e)}),n(" assignNodeIntersects",function(){r.forEach(e.edges(),function(t){var n,r,o=e.edge(t),i=e.node(t.v),a=e.node(t.w);o.points?(n=o.points[0],r=o.points[o.points.length-1]):(o.points=[],n=a,r=i),o.points.unshift(v.intersectRect(i,n)),o.points.push(v.intersectRect(a,r))})}),n(" reversePoints",function(){r.forEach(e.edges(),function(t){var n=e.edge(t);n.reversed&&n.points.reverse()})}),n(" acyclic.undo",function(){o.undo(e)})}),n(" updateInputGraph",function(){r.forEach(t.nodes(),function(n){var r=t.node(n),o=e.node(n);r&&(r.x=o.x,r.y=o.y,e.children(n).length&&(r.width=o.width,r.height=o.height))}),r.forEach(t.edges(),function(n){var o=t.edge(n),i=e.edge(n);o.points=i.points,r.has(i,"x")&&(o.x=i.x,o.y=i.y)}),t.graph().width=e.graph().width,t.graph().height=e.graph().height})})};var g=["nodesep","edgesep","ranksep","marginx","marginy"],m={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},b=["acyclicer","ranker","rankdir","align"],x=["width","height"],w={width:0,height:0},_=["minlen","weight","width","height","labeloffset"],E={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},k=["labelpos"];function M(t,e){return r.mapValues(r.pick(t,e),Number)}function j(t){var e={};return r.forEach(t,function(t,n){e[n.toLowerCase()]=t}),e}},9361:function(t,e,n){var r;try{r={cloneDeep:n(97975),constant:n(38461),defaults:n(85339),each:n(48325),filter:n(21231),find:n(87639),flatten:n(68274),forEach:n(58391),forIn:n(77230),has:n(4093),isUndefined:n(51790),last:n(2457),map:n(89232),mapValues:n(20993),max:n(15387),merge:n(79491),min:n(47479),minBy:n(86971),now:n(54987),pick:n(4036),range:n(60297),reduce:n(59897),sortBy:n(21520),uniqueId:n(22942),values:n(87838),zipObject:n(3097)}}catch(t){}r||(r=window._),t.exports=r},58361:function(t,e,n){var r=n(9361),o=n(13616);t.exports={run:function(t){var e,n=o.addDummyNode(t,"root",{},"_root"),i=(e={},r.forEach(t.children(),function(n){!function n(o,i){var a=t.children(o);a&&a.length&&r.forEach(a,function(t){n(t,i+1)}),e[o]=i}(n,1)}),e),a=r.max(r.values(i))-1,u=2*a+1;t.graph().nestingRoot=n,r.forEach(t.edges(),function(e){t.edge(e).minlen*=u});var s=r.reduce(t.edges(),function(e,n){return e+t.edge(n).weight},0)+1;r.forEach(t.children(),function(e){(function t(e,n,i,a,u,s,c){var l=e.children(c);if(!l.length){c!==n&&e.setEdge(n,c,{weight:0,minlen:i});return}var f=o.addBorderNode(e,"_bt"),d=o.addBorderNode(e,"_bb"),h=e.node(c);e.setParent(f,c),h.borderTop=f,e.setParent(d,c),h.borderBottom=d,r.forEach(l,function(r){t(e,n,i,a,u,s,r);var o=e.node(r),l=o.borderTop?o.borderTop:r,h=o.borderBottom?o.borderBottom:r,p=o.borderTop?a:2*a,v=l!==h?1:u-s[c]+1;e.setEdge(f,l,{weight:p,minlen:v,nestingEdge:!0}),e.setEdge(h,d,{weight:p,minlen:v,nestingEdge:!0})}),e.parent(c)||e.setEdge(n,f,{weight:0,minlen:u+s[c]})})(t,n,u,s,a,i,e)}),t.graph().nodeRankFactor=u},cleanup:function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,r.forEach(t.edges(),function(e){t.edge(e).nestingEdge&&t.removeEdge(e)})}}},35061:function(t,e,n){"use strict";var r=n(9361),o=n(13616);t.exports={run:function(t){t.graph().dummyChains=[],r.forEach(t.edges(),function(e){(function(t,e){var n,r,i,a=e.v,u=t.node(a).rank,s=e.w,c=t.node(s).rank,l=e.name,f=t.edge(e),d=f.labelRank;if(c!==u+1){for(t.removeEdge(e),i=0,++u;u<c;++i,++u)f.points=[],r={width:0,height:0,edgeLabel:f,edgeObj:e,rank:u},n=o.addDummyNode(t,"edge",r,"_d"),u===d&&(r.width=f.width,r.height=f.height,r.dummy="edge-label",r.labelpos=f.labelpos),t.setEdge(a,n,{weight:f.weight},l),0===i&&t.graph().dummyChains.push(n),a=n;t.setEdge(a,s,{weight:f.weight},l)}})(t,e)})},undo:function(t){r.forEach(t.graph().dummyChains,function(e){var n,r=t.node(e),o=r.edgeLabel;for(t.setEdge(r.edgeObj,o);r.dummy;)n=t.successors(e)[0],t.removeNode(e),o.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(o.x=r.x,o.y=r.y,o.width=r.width,o.height=r.height),e=n,r=t.node(e)})}}},38719:function(t,e,n){var r=n(9361);t.exports=function(t,e,n){var o,i={};r.forEach(n,function(n){for(var r,a,u=t.parent(n);u;){if((r=t.parent(u))?(a=i[r],i[r]=u):(a=o,o=u),a&&a!==u){e.setEdge(a,u);return}u=r}})}},12956:function(t,e,n){var r=n(9361);t.exports=function(t,e){return r.map(e,function(e){var n=t.inEdges(e);if(!n.length)return{v:e};var o=r.reduce(n,function(e,n){var r=t.edge(n),o=t.node(n.v);return{sum:e.sum+r.weight*o.order,weight:e.weight+r.weight}},{sum:0,weight:0});return{v:e,barycenter:o.sum/o.weight,weight:o.weight}})}},53684:function(t,e,n){var r=n(9361),o=n(82901).Graph;t.exports=function(t,e,n){var i=function(t){for(var e;t.hasNode(e=r.uniqueId("_root")););return e}(t),a=new o({compound:!0}).setGraph({root:i}).setDefaultNodeLabel(function(e){return t.node(e)});return r.forEach(t.nodes(),function(o){var u=t.node(o),s=t.parent(o);(u.rank===e||u.minRank<=e&&e<=u.maxRank)&&(a.setNode(o),a.setParent(o,s||i),r.forEach(t[n](o),function(e){var n=e.v===o?e.w:e.v,i=a.edge(n,o),u=r.isUndefined(i)?0:i.weight;a.setEdge(n,o,{weight:t.edge(e).weight+u})}),r.has(u,"minRank")&&a.setNode(o,{borderLeft:u.borderLeft[e],borderRight:u.borderRight[e]}))}),a}},74101:function(t,e,n){"use strict";var r=n(9361);t.exports=function(t,e){for(var n=0,o=1;o<e.length;++o)n+=function(t,e,n){for(var o=r.zipObject(n,r.map(n,function(t,e){return e})),i=r.flatten(r.map(e,function(e){return r.sortBy(r.map(t.outEdges(e),function(e){return{pos:o[e.w],weight:t.edge(e).weight}}),"pos")}),!0),a=1;a<n.length;)a<<=1;var u=2*a-1;a-=1;var s=r.map(Array(u),function(){return 0}),c=0;return r.forEach(i.forEach(function(t){var e=t.pos+a;s[e]+=t.weight;for(var n=0;e>0;)e%2&&(n+=s[e+1]),e=e-1>>1,s[e]+=t.weight;c+=t.weight*n})),c}(t,e[o-1],e[o]);return n}},79838:function(t,e,n){"use strict";var r=n(9361),o=n(25209),i=n(74101),a=n(57456),u=n(53684),s=n(38719),c=n(82901).Graph,l=n(13616);function f(t,e,n){return r.map(e,function(e){return u(t,e,n)})}function d(t,e){r.forEach(e,function(e){r.forEach(e,function(e,n){t.node(e).order=n})})}t.exports=function(t){var e=l.maxRank(t),n=f(t,r.range(1,e+1),"inEdges"),u=f(t,r.range(e-1,-1,-1),"outEdges"),h=o(t);d(t,h);for(var p,v=Number.POSITIVE_INFINITY,y=0,g=0;g<4;++y,++g){(function(t,e){var n=new c;r.forEach(t,function(t){var o=t.graph().root,i=a(t,o,n,e);r.forEach(i.vs,function(e,n){t.node(e).order=n}),s(t,n,i.vs)})})(y%2?n:u,y%4>=2),h=l.buildLayerMatrix(t);var m=i(t,h);m<v&&(g=0,p=r.cloneDeep(h),v=m)}d(t,p)}},25209:function(t,e,n){"use strict";var r=n(9361);t.exports=function(t){var e={},n=r.filter(t.nodes(),function(e){return!t.children(e).length}),o=r.max(r.map(n,function(e){return t.node(e).rank})),i=r.map(r.range(o+1),function(){return[]}),a=r.sortBy(n,function(e){return t.node(e).rank});return r.forEach(a,function n(o){r.has(e,o)||(e[o]=!0,i[t.node(o).rank].push(o),r.forEach(t.successors(o),n))}),i}},98279:function(t,e,n){"use strict";var r=n(9361);t.exports=function(t,e){var n={};return r.forEach(t,function(t,e){var o=n[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};r.isUndefined(t.barycenter)||(o.barycenter=t.barycenter,o.weight=t.weight)}),r.forEach(e.edges(),function(t){var e=n[t.v],o=n[t.w];r.isUndefined(e)||r.isUndefined(o)||(o.indegree++,e.out.push(n[t.w]))}),function(t){for(var e=[];t.length;){var n=t.pop();e.push(n),r.forEach(n.in.reverse(),function(t){return function(e){!e.merged&&(r.isUndefined(e.barycenter)||r.isUndefined(t.barycenter)||e.barycenter>=t.barycenter)&&function(t,e){var n=0,r=0;t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.vs=e.vs.concat(t.vs),t.barycenter=n/r,t.weight=r,t.i=Math.min(e.i,t.i),e.merged=!0}(t,e)}}(n)),r.forEach(n.out,function(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}(n))}return r.map(r.filter(e,function(t){return!t.merged}),function(t){return r.pick(t,["vs","i","barycenter","weight"])})}(r.filter(n,function(t){return!t.indegree}))}},57456:function(t,e,n){var r=n(9361),o=n(12956),i=n(98279),a=n(99790);t.exports=function t(e,n,u,s){var c=e.children(n),l=e.node(n),f=l?l.borderLeft:void 0,d=l?l.borderRight:void 0,h={};f&&(c=r.filter(c,function(t){return t!==f&&t!==d}));var p=o(e,c);r.forEach(p,function(n){if(e.children(n.v).length){var o=t(e,n.v,u,s);h[n.v]=o,r.has(o,"barycenter")&&(r.isUndefined(n.barycenter)?(n.barycenter=o.barycenter,n.weight=o.weight):(n.barycenter=(n.barycenter*n.weight+o.barycenter*o.weight)/(n.weight+o.weight),n.weight+=o.weight))}});var v=i(p,u);r.forEach(v,function(t){t.vs=r.flatten(t.vs.map(function(t){return h[t]?h[t].vs:t}),!0)});var y=a(v,s);if(f&&(y.vs=r.flatten([f,y.vs,d],!0),e.predecessors(f).length)){var g=e.node(e.predecessors(f)[0]),m=e.node(e.predecessors(d)[0]);r.has(y,"barycenter")||(y.barycenter=0,y.weight=0),y.barycenter=(y.barycenter*y.weight+g.order+m.order)/(y.weight+2),y.weight+=2}return y}},99790:function(t,e,n){var r=n(9361),o=n(13616);function i(t,e,n){for(var o;e.length&&(o=r.last(e)).i<=n;)e.pop(),t.push(o.vs),n++;return n}t.exports=function(t,e){var n,a=o.partition(t,function(t){return r.has(t,"barycenter")}),u=a.lhs,s=r.sortBy(a.rhs,function(t){return-t.i}),c=[],l=0,f=0,d=0;u.sort((n=!!e,function(t,e){return t.barycenter<e.barycenter?-1:t.barycenter>e.barycenter?1:n?e.i-t.i:t.i-e.i})),d=i(c,s,d),r.forEach(u,function(t){d+=t.vs.length,c.push(t.vs),l+=t.barycenter*t.weight,f+=t.weight,d=i(c,s,d)});var h={vs:r.flatten(c,!0)};return f&&(h.barycenter=l/f,h.weight=f),h}},118:function(t,e,n){var r=n(9361);t.exports=function(t){var e,n,o=(e={},n=0,r.forEach(t.children(),function o(i){var a=n;r.forEach(t.children(i),o),e[i]={low:a,lim:n++}}),e);r.forEach(t.graph().dummyChains,function(e){for(var n=t.node(e),r=n.edgeObj,i=function(t,e,n,r){var o,i,a=[],u=[],s=Math.min(e[n].low,e[r].low),c=Math.max(e[n].lim,e[r].lim);o=n;do a.push(o=t.parent(o));while(o&&(e[o].low>s||c>e[o].lim));for(i=o,o=r;(o=t.parent(o))!==i;)u.push(o);return{path:a.concat(u.reverse()),lca:i}}(t,o,r.v,r.w),a=i.path,u=i.lca,s=0,c=a[0],l=!0;e!==r.w;){if(n=t.node(e),l){for(;(c=a[s])!==u&&t.node(c).maxRank<n.rank;)s++;c===u&&(l=!1)}if(!l){for(;s<a.length-1&&t.node(c=a[s+1]).minRank<=n.rank;)s++;c=a[s]}t.setParent(e,c),e=t.successors(e)[0]}})}},91077:function(t,e,n){"use strict";var r=n(9361),o=n(82901).Graph,i=n(13616);function a(t,e){var n={};return r.reduce(e,function(e,o){var i=0,a=0,u=e.length,c=r.last(o);return r.forEach(o,function(e,l){var f=function(t,e){if(t.node(e).dummy)return r.find(t.predecessors(e),function(e){return t.node(e).dummy})}(t,e),d=f?t.node(f).order:u;(f||e===c)&&(r.forEach(o.slice(a,l+1),function(e){r.forEach(t.predecessors(e),function(r){var o=t.node(r),a=o.order;(a<i||d<a)&&!(o.dummy&&t.node(e).dummy)&&s(n,r,e)})}),a=l+1,i=d)}),o}),n}function u(t,e){var n={};function o(e,o,i,a,u){var c;r.forEach(r.range(o,i),function(o){c=e[o],t.node(c).dummy&&r.forEach(t.predecessors(c),function(e){var r=t.node(e);r.dummy&&(r.order<a||r.order>u)&&s(n,e,c)})})}return r.reduce(e,function(e,n){var i,a=-1,u=0;return r.forEach(n,function(r,s){if("border"===t.node(r).dummy){var c=t.predecessors(r);c.length&&(i=t.node(c[0]).order,o(n,u,s,a,i),u=s,a=i)}o(n,u,n.length,i,e.length)}),n}),n}function s(t,e,n){if(e>n){var r=e;e=n,n=r}var o=t[e];o||(t[e]=o={}),o[n]=!0}function c(t,e,n){if(e>n){var o=e;e=n,n=o}return r.has(t[e],n)}function l(t,e,n,o){var i={},a={},u={};return r.forEach(e,function(t){r.forEach(t,function(t,e){i[t]=t,a[t]=t,u[t]=e})}),r.forEach(e,function(t){var e=-1;r.forEach(t,function(t){var s=o(t);if(s.length)for(var l=((s=r.sortBy(s,function(t){return u[t]})).length-1)/2,f=Math.floor(l),d=Math.ceil(l);f<=d;++f){var h=s[f];a[t]===t&&e<u[h]&&!c(n,t,h)&&(a[h]=t,a[t]=i[t]=i[h],e=u[h])}})}),{root:i,align:a}}function f(t,e,n,i,a){var u,s,c,l,f,d={},h=(c=new o,u=(l=t.graph()).nodesep,s=l.edgesep,f=function(t,e,n){var o,i,c=t.node(e),l=t.node(n);if(o=0+c.width/2,r.has(c,"labelpos"))switch(c.labelpos.toLowerCase()){case"l":i=-c.width/2;break;case"r":i=c.width/2}if(i&&(o+=a?i:-i),i=0,o+=(c.dummy?s:u)/2+(l.dummy?s:u)/2+l.width/2,r.has(l,"labelpos"))switch(l.labelpos.toLowerCase()){case"l":i=l.width/2;break;case"r":i=-l.width/2}return i&&(o+=a?i:-i),i=0,o},r.forEach(e,function(e){var o;r.forEach(e,function(e){var r=n[e];if(c.setNode(r),o){var i=n[o],a=c.edge(i,r);c.setEdge(i,r,Math.max(f(t,e,o),a||0))}o=e})}),c),p=a?"borderLeft":"borderRight";function v(t,e){for(var n=h.nodes(),r=n.pop(),o={};r;)o[r]?t(r):(o[r]=!0,n.push(r),n=n.concat(e(r))),r=n.pop()}return v(function(t){d[t]=h.inEdges(t).reduce(function(t,e){return Math.max(t,d[e.v]+h.edge(e))},0)},h.predecessors.bind(h)),v(function(e){var n=h.outEdges(e).reduce(function(t,e){return Math.min(t,d[e.w]-h.edge(e))},Number.POSITIVE_INFINITY),r=t.node(e);n!==Number.POSITIVE_INFINITY&&r.borderType!==p&&(d[e]=Math.max(d[e],n))},h.successors.bind(h)),r.forEach(i,function(t){d[t]=d[n[t]]}),d}function d(t,e){return r.minBy(r.values(e),function(e){var n=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY;return r.forIn(e,function(e,r){var i=t.node(r).width/2;n=Math.max(e+i,n),o=Math.min(e-i,o)}),n-o})}function h(t,e){var n=r.values(e),o=r.min(n),i=r.max(n);r.forEach(["u","d"],function(n){r.forEach(["l","r"],function(a){var u,s=n+a,c=t[s];if(c!==e){var l=r.values(c);(u="l"===a?o-r.min(l):i-r.max(l))&&(t[s]=r.mapValues(c,function(t){return t+u}))}})})}function p(t,e){return r.mapValues(t.ul,function(n,o){if(e)return t[e.toLowerCase()][o];var i=r.sortBy(r.map(t,o));return(i[1]+i[2])/2})}t.exports={positionX:function(t){var e,n=i.buildLayerMatrix(t),o=r.merge(a(t,n),u(t,n)),s={};r.forEach(["u","d"],function(i){e="u"===i?n:r.values(n).reverse(),r.forEach(["l","r"],function(n){"r"===n&&(e=r.map(e,function(t){return r.values(t).reverse()}));var a=("u"===i?t.predecessors:t.successors).bind(t),u=l(t,e,o,a),c=f(t,e,u.root,u.align,"r"===n);"r"===n&&(c=r.mapValues(c,function(t){return-t})),s[i+n]=c})});var c=d(t,s);return h(s,c),p(s,t.graph().align)},findType1Conflicts:a,findType2Conflicts:u,addConflict:s,hasConflict:c,verticalAlignment:l,horizontalCompaction:f,alignCoordinates:h,findSmallestWidthAlignment:d,balance:p}},67884:function(t,e,n){"use strict";var r=n(9361),o=n(13616),i=n(91077).positionX;t.exports=function(t){var e,n,a,u;e=t=o.asNonCompoundGraph(t),n=o.buildLayerMatrix(e),a=e.graph().ranksep,u=0,r.forEach(n,function(t){var n=r.max(r.map(t,function(t){return e.node(t).height}));r.forEach(t,function(t){e.node(t).y=u+n/2}),u+=n+a}),r.forEach(i(t),function(e,n){t.node(n).x=e})}},66763:function(t,e,n){"use strict";var r=n(9361),o=n(82901).Graph,i=n(88827).slack;t.exports=function(t){var e,n,a=new o({directed:!1}),u=t.nodes()[0],s=t.nodeCount();for(a.setNode(u,{});r.forEach(a.nodes(),function e(n){r.forEach(t.nodeEdges(n),function(r){var o=r.v,u=n===o?r.w:o;a.hasNode(u)||i(t,r)||(a.setNode(u,{}),a.setEdge(n,u,{}),e(u))})}),a.nodeCount()<s;)e=function(t,e){return r.minBy(e.edges(),function(n){if(t.hasNode(n.v)!==t.hasNode(n.w))return i(e,n)})}(a,t),n=a.hasNode(e.v)?i(t,e):-i(t,e),function(t,e,n){r.forEach(t.nodes(),function(t){e.node(t).rank+=n})}(a,t,n);return a}},59653:function(t,e,n){"use strict";var r=n(88827).longestPath,o=n(66763),i=n(48052);t.exports=function(t){switch(t.graph().ranker){case"network-simplex":default:i(t);break;case"tight-tree":r(t),o(t);break;case"longest-path":a(t)}};var a=r},48052:function(t,e,n){"use strict";var r=n(9361),o=n(66763),i=n(88827).slack,a=n(88827).longestPath,u=n(82901).alg.preorder,s=n(82901).alg.postorder,c=n(13616).simplify;function l(t){a(t=c(t));var e,n,r=o(t);for(h(r),f(r,t);e=p(r);)n=v(r,t,e),y(r,t,e,n)}function f(t,e){var n=s(t,t.nodes());n=n.slice(0,n.length-1),r.forEach(n,function(n){var r;r=t.node(n).parent,t.edge(n,r).cutvalue=d(t,e,n)})}function d(t,e,n){var o=t.node(n).parent,i=!0,a=e.edge(n,o),u=0;return a||(i=!1,a=e.edge(o,n)),u=a.weight,r.forEach(e.nodeEdges(n),function(r){var a=r.v===n,s=a?r.w:r.v;if(s!==o){var c=a===i,l=e.edge(r).weight;if(u+=c?l:-l,t.hasEdge(n,s)){var f=t.edge(n,s).cutvalue;u+=c?-f:f}}}),u}function h(t,e){arguments.length<2&&(e=t.nodes()[0]),function t(e,n,o,i,a){var u=o,s=e.node(i);return n[i]=!0,r.forEach(e.neighbors(i),function(a){r.has(n,a)||(o=t(e,n,o,a,i))}),s.low=u,s.lim=o++,a?s.parent=a:delete s.parent,o}(t,{},1,e)}function p(t){return r.find(t.edges(),function(e){return t.edge(e).cutvalue<0})}function v(t,e,n){var o=n.v,a=n.w;e.hasEdge(o,a)||(o=n.w,a=n.v);var u=t.node(o),s=t.node(a),c=u,l=!1;u.lim>s.lim&&(c=s,l=!0);var f=r.filter(e.edges(),function(e){return l===g(t,t.node(e.v),c)&&l!==g(t,t.node(e.w),c)});return r.minBy(f,function(t){return i(e,t)})}function y(t,e,n,o){var i,a,s=n.v,c=n.w;t.removeEdge(s,c),t.setEdge(o.v,o.w,{}),h(t),f(t,e),i=r.find(t.nodes(),function(t){return!e.node(t).parent}),a=(a=u(t,i)).slice(1),r.forEach(a,function(n){var r=t.node(n).parent,o=e.edge(n,r),i=!1;o||(o=e.edge(r,n),i=!0),e.node(n).rank=e.node(r).rank+(i?o.minlen:-o.minlen)})}function g(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}t.exports=l,l.initLowLimValues=h,l.initCutValues=f,l.calcCutValue=d,l.leaveEdge=p,l.enterEdge=v,l.exchangeEdges=y},88827:function(t,e,n){"use strict";var r=n(9361);t.exports={longestPath:function(t){var e={};r.forEach(t.sources(),function n(o){var i=t.node(o);if(r.has(e,o))return i.rank;e[o]=!0;var a=r.min(r.map(t.outEdges(o),function(e){return n(e.w)-t.edge(e).minlen}));return(a===Number.POSITIVE_INFINITY||null==a)&&(a=0),i.rank=a})},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}},13616:function(t,e,n){"use strict";var r=n(9361),o=n(82901).Graph;function i(t,e,n,o){var i;do i=r.uniqueId(o);while(t.hasNode(i));return n.dummy=e,t.setNode(i,n),i}function a(t){return r.max(r.map(t.nodes(),function(e){var n=t.node(e).rank;if(!r.isUndefined(n))return n}))}t.exports={addDummyNode:i,simplify:function(t){var e=new o().setGraph(t.graph());return r.forEach(t.nodes(),function(n){e.setNode(n,t.node(n))}),r.forEach(t.edges(),function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},o=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+o.weight,minlen:Math.max(r.minlen,o.minlen)})}),e},asNonCompoundGraph:function(t){var e=new o({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),function(n){t.children(n).length||e.setNode(n,t.node(n))}),r.forEach(t.edges(),function(n){e.setEdge(n,t.edge(n))}),e},successorWeights:function(t){var e=r.map(t.nodes(),function(e){var n={};return r.forEach(t.outEdges(e),function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight}),n});return r.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=r.map(t.nodes(),function(e){var n={};return r.forEach(t.inEdges(e),function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight}),n});return r.zipObject(t.nodes(),e)},intersectRect:function(t,e){var n,r,o=t.x,i=t.y,a=e.x-o,u=e.y-i,s=t.width/2,c=t.height/2;if(!a&&!u)throw Error("Not possible to find intersection inside of the rectangle");return Math.abs(u)*s>Math.abs(a)*c?(u<0&&(c=-c),n=c*a/u,r=c):(a<0&&(s=-s),n=s,r=s*u/a),{x:o+n,y:i+r}},buildLayerMatrix:function(t){var e=r.map(r.range(a(t)+1),function(){return[]});return r.forEach(t.nodes(),function(n){var o=t.node(n),i=o.rank;r.isUndefined(i)||(e[i][o.order]=n)}),e},normalizeRanks:function(t){var e=r.min(r.map(t.nodes(),function(e){return t.node(e).rank}));r.forEach(t.nodes(),function(n){var o=t.node(n);r.has(o,"rank")&&(o.rank-=e)})},removeEmptyRanks:function(t){var e=r.min(r.map(t.nodes(),function(e){return t.node(e).rank})),n=[];r.forEach(t.nodes(),function(r){var o=t.node(r).rank-e;n[o]||(n[o]=[]),n[o].push(r)});var o=0,i=t.graph().nodeRankFactor;r.forEach(n,function(e,n){r.isUndefined(e)&&n%i!=0?--o:o&&r.forEach(e,function(e){t.node(e).rank+=o})})},addBorderNode:function(t,e,n,r){var o={width:0,height:0};return arguments.length>=4&&(o.rank=n,o.order=r),i(t,"border",o,e)},maxRank:a,partition:function(t,e){var n={lhs:[],rhs:[]};return r.forEach(t,function(t){e(t)?n.lhs.push(t):n.rhs.push(t)}),n},time:function(t,e){var n=r.now();try{return e()}finally{console.log(t+" time: "+(r.now()-n)+"ms")}},notime:function(t,e){return e()}}},91e3:function(t){t.exports="0.8.5"},46038:function(t,e,n){var r=n(75717);t.exports={Graph:r.Graph,json:n(39107),alg:n(84725),version:r.version}},55201:function(t,e,n){var r=n(99090);t.exports=function(t){var e,n={},o=[];return r.each(t.nodes(),function(i){e=[],function o(i){r.has(n,i)||(n[i]=!0,e.push(i),r.each(t.successors(i),o),r.each(t.predecessors(i),o))}(i),e.length&&o.push(e)}),o}},25605:function(t,e,n){var r=n(99090);t.exports=function(t,e,n){r.isArray(e)||(e=[e]);var o=(t.isDirected()?t.successors:t.neighbors).bind(t),i=[],a={};return r.each(e,function(e){if(!t.hasNode(e))throw Error("Graph does not have node: "+e);(function t(e,n,o,i,a,u){!r.has(i,n)&&(i[n]=!0,o||u.push(n),r.each(a(n),function(n){t(e,n,o,i,a,u)}),o&&u.push(n))})(t,e,"post"===n,a,o,i)}),i}},84324:function(t,e,n){var r=n(28126),o=n(99090);t.exports=function(t,e,n){return o.transform(t.nodes(),function(o,i){o[i]=r(t,i,e,n)},{})}},28126:function(t,e,n){var r=n(99090),o=n(24569);t.exports=function(t,e,n,r){return function(t,e,n,r){var i,a,u={},s=new o,c=function(t){var e=t.v!==i?t.v:t.w,r=u[e],o=n(t),c=a.distance+o;if(o<0)throw Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+o);c<r.distance&&(r.distance=c,r.predecessor=i,s.decrease(e,c))};for(t.nodes().forEach(function(t){var n=t===e?0:Number.POSITIVE_INFINITY;u[t]={distance:n},s.add(t,n)});s.size()>0&&(a=u[i=s.removeMin()]).distance!==Number.POSITIVE_INFINITY;)r(i).forEach(c);return u}(t,String(e),n||i,r||function(e){return t.outEdges(e)})};var i=r.constant(1)},1004:function(t,e,n){var r=n(99090),o=n(10791);t.exports=function(t){return r.filter(o(t),function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])})}},68236:function(t,e,n){var r=n(99090);t.exports=function(t,e,n){var r,i,a,u;return r=e||o,i=n||function(e){return t.outEdges(e)},a={},(u=t.nodes()).forEach(function(t){a[t]={},a[t][t]={distance:0},u.forEach(function(e){t!==e&&(a[t][e]={distance:Number.POSITIVE_INFINITY})}),i(t).forEach(function(e){var n=e.v===t?e.w:e.v,o=r(e);a[t][n]={distance:o,predecessor:t}})}),u.forEach(function(t){var e=a[t];u.forEach(function(n){var r=a[n];u.forEach(function(n){var o=r[t],i=e[n],a=r[n],u=o.distance+i.distance;u<a.distance&&(a.distance=u,a.predecessor=i.predecessor)})})}),a};var o=r.constant(1)},84725:function(t,e,n){t.exports={components:n(55201),dijkstra:n(28126),dijkstraAll:n(84324),findCycles:n(1004),floydWarshall:n(68236),isAcyclic:n(78165),postorder:n(58726),preorder:n(90414),prim:n(60163),tarjan:n(10791),topsort:n(46398)}},78165:function(t,e,n){var r=n(46398);t.exports=function(t){try{r(t)}catch(t){if(t instanceof r.CycleException)return!1;throw t}return!0}},58726:function(t,e,n){var r=n(25605);t.exports=function(t,e){return r(t,e,"post")}},90414:function(t,e,n){var r=n(25605);t.exports=function(t,e){return r(t,e,"pre")}},60163:function(t,e,n){var r=n(99090),o=n(39213),i=n(24569);t.exports=function(t,e){var n,a=new o,u={},s=new i;function c(t){var r=t.v===n?t.w:t.v,o=s.priority(r);if(void 0!==o){var i=e(t);i<o&&(u[r]=n,s.decrease(r,i))}}if(0===t.nodeCount())return a;r.each(t.nodes(),function(t){s.add(t,Number.POSITIVE_INFINITY),a.setNode(t)}),s.decrease(t.nodes()[0],0);for(var l=!1;s.size()>0;){if(n=s.removeMin(),r.has(u,n))a.setEdge(n,u[n]);else if(l)throw Error("Input graph is not connected: "+t);else l=!0;t.nodeEdges(n).forEach(c)}return a}},10791:function(t,e,n){var r=n(99090);t.exports=function(t){var e=0,n=[],o={},i=[];return t.nodes().forEach(function(a){r.has(o,a)||function a(u){var s=o[u]={onStack:!0,lowlink:e,index:e++};if(n.push(u),t.successors(u).forEach(function(t){r.has(o,t)?o[t].onStack&&(s.lowlink=Math.min(s.lowlink,o[t].index)):(a(t),s.lowlink=Math.min(s.lowlink,o[t].lowlink))}),s.lowlink===s.index){var c,l=[];do o[c=n.pop()].onStack=!1,l.push(c);while(u!==c);i.push(l)}}(a)}),i}},46398:function(t,e,n){var r=n(99090);function o(t){var e={},n={},o=[];if(r.each(t.sinks(),function a(u){if(r.has(n,u))throw new i;r.has(e,u)||(n[u]=!0,e[u]=!0,r.each(t.predecessors(u),a),delete n[u],o.push(u))}),r.size(e)!==t.nodeCount())throw new i;return o}function i(){}t.exports=o,o.CycleException=i,i.prototype=Error()},24569:function(t,e,n){var r=n(99090);function o(){this._arr=[],this._keyIndices={}}t.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map(function(t){return t.key})},o.prototype.has=function(t){return r.has(this._keyIndices,t)},o.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},o.prototype.min=function(){if(0===this.size())throw Error("Queue underflow");return this._arr[0].key},o.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!r.has(n,t)){var o=this._arr,i=o.length;return n[t]=i,o.push({key:t,priority:e}),this._decrease(i),!0}return!1},o.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},o.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},o.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,o=t;n<e.length&&(o=e[n].priority<e[o].priority?n:o,r<e.length&&(o=e[r].priority<e[o].priority?r:o),o!==t&&(this._swap(t,o),this._heapify(o)))},o.prototype._decrease=function(t){for(var e,n=this._arr,r=n[t].priority;0!==t&&!(n[e=t>>1].priority<r);)this._swap(t,e),t=e},o.prototype._swap=function(t,e){var n=this._arr,r=this._keyIndices,o=n[t],i=n[e];n[t]=i,n[e]=o,r[i.key]=t,r[o.key]=e}},39213:function(t,e,n){"use strict";var r=n(99090);function o(t){this._isDirected=!r.has(t,"directed")||t.directed,this._isMultigraph=!!r.has(t,"multigraph")&&t.multigraph,this._isCompound=!!r.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function i(t,e){t[e]?t[e]++:t[e]=1}function a(t,e){--t[e]||delete t[e]}function u(t,e,n,o){var i=""+e,a=""+n;if(!t&&i>a){var u=i;i=a,a=u}return i+"\x01"+a+"\x01"+(r.isUndefined(o)?"\0":o)}function s(t,e){return u(t,e.v,e.w,e.name)}t.exports=o,o.prototype._nodeCount=0,o.prototype._edgeCount=0,o.prototype.isDirected=function(){return this._isDirected},o.prototype.isMultigraph=function(){return this._isMultigraph},o.prototype.isCompound=function(){return this._isCompound},o.prototype.setGraph=function(t){return this._label=t,this},o.prototype.graph=function(){return this._label},o.prototype.setDefaultNodeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultNodeLabelFn=t,this},o.prototype.nodeCount=function(){return this._nodeCount},o.prototype.nodes=function(){return r.keys(this._nodes)},o.prototype.sources=function(){var t=this;return r.filter(this.nodes(),function(e){return r.isEmpty(t._in[e])})},o.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),function(e){return r.isEmpty(t._out[e])})},o.prototype.setNodes=function(t,e){var n=arguments,o=this;return r.each(t,function(t){n.length>1?o.setNode(t,e):o.setNode(t)}),this},o.prototype.setNode=function(t,e){return r.has(this._nodes,t)?arguments.length>1&&(this._nodes[t]=e):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]="\0",this._children[t]={},this._children["\0"][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount),this},o.prototype.node=function(t){return this._nodes[t]},o.prototype.hasNode=function(t){return r.has(this._nodes,t)},o.prototype.removeNode=function(t){var e=this;if(r.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],r.each(this.children(t),function(t){e.setParent(t)}),delete this._children[t]),r.each(r.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},o.prototype.setParent=function(t,e){if(!this._isCompound)throw Error("Cannot set parent in a non-compound graph");if(r.isUndefined(e))e="\0";else{e+="";for(var n=e;!r.isUndefined(n);n=this.parent(n))if(n===t)throw Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},o.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},o.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if("\0"!==e)return e}},o.prototype.children=function(t){if(r.isUndefined(t)&&(t="\0"),this._isCompound){var e=this._children[t];if(e)return r.keys(e)}else if("\0"===t)return this.nodes();else if(this.hasNode(t))return[]},o.prototype.predecessors=function(t){var e=this._preds[t];if(e)return r.keys(e)},o.prototype.successors=function(t){var e=this._sucs[t];if(e)return r.keys(e)},o.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return r.union(e,this.successors(t))},o.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},o.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;r.each(this._nodes,function(n,r){t(r)&&e.setNode(r,n)}),r.each(this._edgeObjs,function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))});var o={};return this._isCompound&&r.each(e.nodes(),function(t){e.setParent(t,function t(r){var i=n.parent(r);return void 0===i||e.hasNode(i)?(o[r]=i,i):i in o?o[i]:t(i)}(t))}),e},o.prototype.setDefaultEdgeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultEdgeLabelFn=t,this},o.prototype.edgeCount=function(){return this._edgeCount},o.prototype.edges=function(){return r.values(this._edgeObjs)},o.prototype.setPath=function(t,e){var n=this,o=arguments;return r.reduce(t,function(t,r){return o.length>1?n.setEdge(t,r,e):n.setEdge(t,r),r}),this},o.prototype.setEdge=function(){var t,e,n,o,a=!1,s=arguments[0];"object"==typeof s&&null!==s&&"v"in s?(t=s.v,e=s.w,n=s.name,2==arguments.length&&(o=arguments[1],a=!0)):(t=s,e=arguments[1],n=arguments[3],arguments.length>2&&(o=arguments[2],a=!0)),t=""+t,e=""+e,r.isUndefined(n)||(n=""+n);var c=u(this._isDirected,t,e,n);if(r.has(this._edgeLabels,c))return a&&(this._edgeLabels[c]=o),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[c]=a?o:this._defaultEdgeLabelFn(t,e,n);var l=function(t,e,n,r){var o=""+e,i=""+n;if(!t&&o>i){var a=o;o=i,i=a}var u={v:o,w:i};return r&&(u.name=r),u}(this._isDirected,t,e,n);return t=l.v,e=l.w,Object.freeze(l),this._edgeObjs[c]=l,i(this._preds[e],t),i(this._sucs[t],e),this._in[e][c]=l,this._out[t][c]=l,this._edgeCount++,this},o.prototype.edge=function(t,e,n){var r=1==arguments.length?s(this._isDirected,arguments[0]):u(this._isDirected,t,e,n);return this._edgeLabels[r]},o.prototype.hasEdge=function(t,e,n){var o=1==arguments.length?s(this._isDirected,arguments[0]):u(this._isDirected,t,e,n);return r.has(this._edgeLabels,o)},o.prototype.removeEdge=function(t,e,n){var r=1==arguments.length?s(this._isDirected,arguments[0]):u(this._isDirected,t,e,n),o=this._edgeObjs[r];return o&&(t=o.v,e=o.w,delete this._edgeLabels[r],delete this._edgeObjs[r],a(this._preds[e],t),a(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},o.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var o=r.values(n);return e?r.filter(o,function(t){return t.v===e}):o}},o.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var o=r.values(n);return e?r.filter(o,function(t){return t.w===e}):o}},o.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},75717:function(t,e,n){t.exports={Graph:n(39213),version:n(26111)}},39107:function(t,e,n){var r=n(99090),o=n(39213);t.exports={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:r.map(t.nodes(),function(e){var n=t.node(e),o=t.parent(e),i={v:e};return r.isUndefined(n)||(i.value=n),r.isUndefined(o)||(i.parent=o),i}),edges:r.map(t.edges(),function(e){var n=t.edge(e),o={v:e.v,w:e.w};return r.isUndefined(e.name)||(o.name=e.name),r.isUndefined(n)||(o.value=n),o})};return r.isUndefined(t.graph())||(e.value=r.clone(t.graph())),e},read:function(t){var e=new o(t.options).setGraph(t.value);return r.each(t.nodes,function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)}),r.each(t.edges,function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)}),e}}},99090:function(t,e,n){var r;try{r={clone:n(64816),constant:n(38461),each:n(48325),filter:n(21231),has:n(4093),isArray:n(73509),isEmpty:n(38278),isFunction:n(74449),isUndefined:n(51790),keys:n(35147),map:n(89232),reduce:n(59897),size:n(11159),transform:n(88364),union:n(97135),values:n(87838)}}catch(t){}r||(r=window._),t.exports=r},26111:function(t){t.exports="2.1.8"},48361:function(t,e,n){var r=n(64620)(n(3642),"DataView");t.exports=r},42220:function(t,e,n){var r=n(85026),o=n(74781),i=n(98870),a=n(29396),u=n(85714);function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},92960:function(t,e,n){var r=n(32725),o=n(414),i=n(93767),a=n(33820),u=n(74468);function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},3055:function(t,e,n){var r=n(64620)(n(3642),"Map");t.exports=r},41223:function(t,e,n){var r=n(47459),o=n(82643),i=n(42857),a=n(41154),u=n(25529);function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},7737:function(t,e,n){var r=n(64620)(n(3642),"Promise");t.exports=r},64637:function(t,e,n){var r=n(64620)(n(3642),"Set");t.exports=r},44643:function(t,e,n){var r=n(41223),o=n(76882),i=n(80786);function a(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,t.exports=a},15450:function(t,e,n){var r=n(92960),o=n(99669),i=n(62881),a=n(99024),u=n(44701),s=n(75694);function c(t){var e=this.__data__=new r(t);this.size=e.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=u,c.prototype.set=s,t.exports=c},65085:function(t,e,n){var r=n(3642).Symbol;t.exports=r},8129:function(t,e,n){var r=n(3642).Uint8Array;t.exports=r},28345:function(t,e,n){var r=n(64620)(n(3642),"WeakMap");t.exports=r},97913:function(t){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},10908:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},92010:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var a=t[n];e(a,n,t)&&(i[o++]=a)}return i}},29163:function(t,e,n){var r=n(13918);t.exports=function(t,e){return!!(null==t?0:t.length)&&r(t,e,0)>-1}},72040:function(t){t.exports=function(t,e,n){for(var r=-1,o=null==t?0:t.length;++r<o;)if(n(e,t[r]))return!0;return!1}},99207:function(t,e,n){var r=n(83090),o=n(41080),i=n(73509),a=n(91485),u=n(24923),s=n(23329),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=i(t),l=!n&&o(t),f=!n&&!l&&a(t),d=!n&&!l&&!f&&s(t),h=n||l||f||d,p=h?r(t.length,String):[],v=p.length;for(var y in t)(e||c.call(t,y))&&!(h&&("length"==y||f&&("offset"==y||"parent"==y)||d&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||u(y,v)))&&p.push(y);return p}},2173:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}},73056:function(t){t.exports=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}},63541:function(t){t.exports=function(t,e,n,r){var o=-1,i=null==t?0:t.length;for(r&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n}},14803:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},99463:function(t,e,n){var r=n(79339)("length");t.exports=r},82930:function(t,e,n){var r=n(16610),o=n(30207);t.exports=function(t,e,n){(void 0===n||o(t[e],n))&&(void 0!==n||e in t)||r(t,e,n)}},63045:function(t,e,n){var r=n(16610),o=n(30207),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];i.call(t,e)&&o(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},76532:function(t,e,n){var r=n(30207);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return -1}},49769:function(t,e,n){var r=n(89028),o=n(35147);t.exports=function(t,e){return t&&r(e,o(e),t)}},3907:function(t,e,n){var r=n(89028),o=n(71885);t.exports=function(t,e){return t&&r(e,o(e),t)}},16610:function(t,e,n){var r=n(59907);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},2174:function(t,e,n){var r=n(15450),o=n(10908),i=n(63045),a=n(49769),u=n(3907),s=n(88908),c=n(19029),l=n(56365),f=n(93626),d=n(24592),h=n(31453),p=n(17121),v=n(88244),y=n(544),g=n(54768),m=n(73509),b=n(91485),x=n(51820),w=n(88873),_=n(68414),E=n(35147),k=n(71885),M="[object Arguments]",j="[object Function]",N="[object Object]",S={};S[M]=S["[object Array]"]=S["[object ArrayBuffer]"]=S["[object DataView]"]=S["[object Boolean]"]=S["[object Date]"]=S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Map]"]=S["[object Number]"]=S[N]=S["[object RegExp]"]=S["[object Set]"]=S["[object String]"]=S["[object Symbol]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S["[object Error]"]=S[j]=S["[object WeakMap]"]=!1,t.exports=function t(e,n,O,R,C,I){var T,A=1&n,z=2&n,P=4&n;if(O&&(T=C?O(e,R,C,I):O(e)),void 0!==T)return T;if(!w(e))return e;var L=m(e);if(L){if(T=v(e),!A)return c(e,T)}else{var D=p(e),$=D==j||"[object GeneratorFunction]"==D;if(b(e))return s(e,A);if(D==N||D==M||$&&!C){if(T=z||$?{}:g(e),!A)return z?f(e,u(T,e)):l(e,a(T,e))}else{if(!S[D])return C?e:{};T=y(e,D,A)}}I||(I=new r);var F=I.get(e);if(F)return F;I.set(e,T),_(e)?e.forEach(function(r){T.add(t(r,n,O,r,e,I))}):x(e)&&e.forEach(function(r,o){T.set(o,t(r,n,O,o,e,I))});var V=P?z?h:d:z?k:E,B=L?void 0:V(e);return o(B||e,function(r,o){B&&(r=e[o=r]),i(T,o,t(r,n,O,o,e,I))}),T}},58987:function(t,e,n){var r=n(88873),o=Object.create,i=function(){function t(){}return function(e){if(!r(e))return{};if(o)return o(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=i},47035:function(t,e,n){var r=n(69583),o=n(79427)(r);t.exports=o},60443:function(t,e,n){var r=n(58510);t.exports=function(t,e,n){for(var o=-1,i=t.length;++o<i;){var a=t[o],u=e(a);if(null!=u&&(void 0===s?u==u&&!r(u):n(u,s)))var s=u,c=a}return c}},69911:function(t,e,n){var r=n(47035);t.exports=function(t,e){var n=[];return r(t,function(t,r,o){e(t,r,o)&&n.push(t)}),n}},84981:function(t){t.exports=function(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return -1}},18060:function(t,e,n){var r=n(73056),o=n(15095);t.exports=function t(e,n,i,a,u){var s=-1,c=e.length;for(i||(i=o),u||(u=[]);++s<c;){var l=e[s];n>0&&i(l)?n>1?t(l,n-1,i,a,u):r(u,l):a||(u[u.length]=l)}return u}},92244:function(t,e,n){var r=n(13898)();t.exports=r},69583:function(t,e,n){var r=n(92244),o=n(35147);t.exports=function(t,e){return t&&r(t,e,o)}},19716:function(t,e,n){var r=n(1746),o=n(4593);t.exports=function(t,e){e=r(e,t);for(var n=0,i=e.length;null!=t&&n<i;)t=t[o(e[n++])];return n&&n==i?t:void 0}},42600:function(t,e,n){var r=n(73056),o=n(73509);t.exports=function(t,e,n){var i=e(t);return o(t)?i:r(i,n(t))}},606:function(t,e,n){var r=n(65085),o=n(52439),i=n(5063),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},12192:function(t){t.exports=function(t,e){return t>e}},77631:function(t){var e=Object.prototype.hasOwnProperty;t.exports=function(t,n){return null!=t&&e.call(t,n)}},19144:function(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},13918:function(t,e,n){var r=n(84981),o=n(22315),i=n(79723);t.exports=function(t,e,n){return e==e?i(t,e,n):r(t,o,n)}},34852:function(t,e,n){var r=n(606),o=n(62743);t.exports=function(t){return o(t)&&"[object Arguments]"==r(t)}},62579:function(t,e,n){var r=n(44748),o=n(62743);t.exports=function t(e,n,i,a,u){return e===n||(null!=e&&null!=n&&(o(e)||o(n))?r(e,n,i,a,t,u):e!=e&&n!=n)}},44748:function(t,e,n){var r=n(15450),o=n(91491),i=n(13989),a=n(86002),u=n(17121),s=n(73509),c=n(91485),l=n(23329),f="[object Arguments]",d="[object Array]",h="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,v,y,g){var m=s(t),b=s(e),x=m?d:u(t),w=b?d:u(e);x=x==f?h:x,w=w==f?h:w;var _=x==h,E=w==h,k=x==w;if(k&&c(t)){if(!c(e))return!1;m=!0,_=!1}if(k&&!_)return g||(g=new r),m||l(t)?o(t,e,n,v,y,g):i(t,e,x,n,v,y,g);if(!(1&n)){var M=_&&p.call(t,"__wrapped__"),j=E&&p.call(e,"__wrapped__");if(M||j){var N=M?t.value():t,S=j?e.value():e;return g||(g=new r),y(N,S,n,v,g)}}return!!k&&(g||(g=new r),a(t,e,n,v,y,g))}},48745:function(t,e,n){var r=n(17121),o=n(62743);t.exports=function(t){return o(t)&&"[object Map]"==r(t)}},90234:function(t,e,n){var r=n(15450),o=n(62579);t.exports=function(t,e,n,i){var a=n.length,u=a,s=!i;if(null==t)return!u;for(t=Object(t);a--;){var c=n[a];if(s&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a<u;){var l=(c=n[a])[0],f=t[l],d=c[1];if(s&&c[2]){if(void 0===f&&!(l in t))return!1}else{var h=new r;if(i)var p=i(f,d,l,t,e,h);if(!(void 0===p?o(d,f,3,i,h):p))return!1}}return!0}},22315:function(t){t.exports=function(t){return t!=t}},40369:function(t,e,n){var r=n(74449),o=n(70871),i=n(88873),a=n(33679),u=/^\[object .+?Constructor\]$/,s=Object.prototype,c=Function.prototype.toString,l=s.hasOwnProperty,f=RegExp("^"+c.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(r(t)?f:u).test(a(t))}},49375:function(t,e,n){var r=n(17121),o=n(62743);t.exports=function(t){return o(t)&&"[object Set]"==r(t)}},58980:function(t,e,n){var r=n(606),o=n(63831),i=n(62743),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[r(t)]}},60876:function(t,e,n){var r=n(2837),o=n(95224),i=n(65778),a=n(73509),u=n(4924);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):r(t):u(t)}},50419:function(t,e,n){var r=n(99166),o=n(10369),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=[];for(var n in Object(t))i.call(t,n)&&"constructor"!=n&&e.push(n);return e}},69208:function(t,e,n){var r=n(88873),o=n(99166),i=n(71914),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=o(t),n=[];for(var u in t)"constructor"==u&&(e||!a.call(t,u))||n.push(u);return n}},74951:function(t){t.exports=function(t,e){return t<e}},67641:function(t,e,n){var r=n(47035),o=n(15206);t.exports=function(t,e){var n=-1,i=o(t)?Array(t.length):[];return r(t,function(t,r,o){i[++n]=e(t,r,o)}),i}},2837:function(t,e,n){var r=n(90234),o=n(99367),i=n(4733);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},95224:function(t,e,n){var r=n(62579),o=n(55854),i=n(83320),a=n(1841),u=n(28162),s=n(4733),c=n(4593);t.exports=function(t,e){return a(t)&&u(e)?s(c(t),e):function(n){var a=o(n,t);return void 0===a&&a===e?i(n,t):r(e,a,3)}}},42540:function(t,e,n){var r=n(15450),o=n(82930),i=n(92244),a=n(541),u=n(88873),s=n(71885),c=n(12693);t.exports=function t(e,n,l,f,d){e!==n&&i(n,function(i,s){if(d||(d=new r),u(i))a(e,n,s,l,t,f,d);else{var h=f?f(c(e,s),i,s+"",e,n,d):void 0;void 0===h&&(h=i),o(e,s,h)}},s)}},541:function(t,e,n){var r=n(82930),o=n(88908),i=n(21991),a=n(19029),u=n(54768),s=n(41080),c=n(73509),l=n(64709),f=n(91485),d=n(74449),h=n(88873),p=n(40598),v=n(23329),y=n(12693),g=n(80466);t.exports=function(t,e,n,m,b,x,w){var _=y(t,n),E=y(e,n),k=w.get(E);if(k){r(t,n,k);return}var M=x?x(_,E,n+"",t,e,w):void 0,j=void 0===M;if(j){var N=c(E),S=!N&&f(E),O=!N&&!S&&v(E);M=E,N||S||O?c(_)?M=_:l(_)?M=a(_):S?(j=!1,M=o(E,!0)):O?(j=!1,M=i(E,!0)):M=[]:p(E)||s(E)?(M=_,s(_)?M=g(_):(!h(_)||d(_))&&(M=u(E))):j=!1}j&&(w.set(E,M),b(M,E,m,x,w),w.delete(E)),r(t,n,M)}},50997:function(t,e,n){var r=n(2173),o=n(19716),i=n(60876),a=n(67641),u=n(77726),s=n(19040),c=n(91690),l=n(65778),f=n(73509);t.exports=function(t,e,n){e=e.length?r(e,function(t){return f(t)?function(e){return o(e,1===t.length?t[0]:t)}:t}):[l];var d=-1;return e=r(e,s(i)),u(a(t,function(t,n,o){return{criteria:r(e,function(e){return e(t)}),index:++d,value:t}}),function(t,e){return c(t,e,n)})}},46635:function(t,e,n){var r=n(80980),o=n(83320);t.exports=function(t,e){return r(t,e,function(e,n){return o(t,n)})}},80980:function(t,e,n){var r=n(19716),o=n(76677),i=n(1746);t.exports=function(t,e,n){for(var a=-1,u=e.length,s={};++a<u;){var c=e[a],l=r(t,c);n(l,c)&&o(s,i(c,t),l)}return s}},79339:function(t){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},29101:function(t,e,n){var r=n(19716);t.exports=function(t){return function(e){return r(e,t)}}},36441:function(t){var e=Math.ceil,n=Math.max;t.exports=function(t,r,o,i){for(var a=-1,u=n(e((r-t)/(o||1)),0),s=Array(u);u--;)s[i?u:++a]=t,t+=o;return s}},79736:function(t){t.exports=function(t,e,n,r,o){return o(t,function(t,o,i){n=r?(r=!1,t):e(n,t,o,i)}),n}},99749:function(t,e,n){var r=n(65778),o=n(25912),i=n(81288);t.exports=function(t,e){return i(o(t,e,r),t+"")}},76677:function(t,e,n){var r=n(63045),o=n(1746),i=n(24923),a=n(88873),u=n(4593);t.exports=function(t,e,n,s){if(!a(t))return t;e=o(e,t);for(var c=-1,l=e.length,f=l-1,d=t;null!=d&&++c<l;){var h=u(e[c]),p=n;if("__proto__"===h||"constructor"===h||"prototype"===h)break;if(c!=f){var v=d[h];void 0===(p=s?s(v,h,d):void 0)&&(p=a(v)?v:i(e[c+1])?[]:{})}r(d,h,p),d=d[h]}return t}},47063:function(t,e,n){var r=n(38461),o=n(59907),i=n(65778),a=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:i;t.exports=a},77726:function(t){t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},83090:function(t){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},20530:function(t,e,n){var r=n(65085),o=n(2173),i=n(73509),a=n(58510),u=1/0,s=r?r.prototype:void 0,c=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-u?"-0":n}},79884:function(t,e,n){var r=n(15428),o=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(o,""):t}},19040:function(t){t.exports=function(t){return function(e){return t(e)}}},53367:function(t,e,n){var r=n(44643),o=n(29163),i=n(72040),a=n(34675),u=n(58223),s=n(22780);t.exports=function(t,e,n){var c=-1,l=o,f=t.length,d=!0,h=[],p=h;if(n)d=!1,l=i;else if(f>=200){var v=e?null:u(t);if(v)return s(v);d=!1,l=a,p=new r}else p=e?[]:h;t:for(;++c<f;){var y=t[c],g=e?e(y):y;if(y=n||0!==y?y:0,d&&g==g){for(var m=p.length;m--;)if(p[m]===g)continue t;e&&p.push(g),h.push(y)}else l(p,g,n)||(p!==h&&p.push(g),h.push(y))}return h}},9720:function(t,e,n){var r=n(2173);t.exports=function(t,e){return r(e,function(e){return t[e]})}},13799:function(t){t.exports=function(t,e,n){for(var r=-1,o=t.length,i=e.length,a={};++r<o;){var u=r<i?e[r]:void 0;n(a,t[r],u)}return a}},34675:function(t){t.exports=function(t,e){return t.has(e)}},51032:function(t,e,n){var r=n(65778);t.exports=function(t){return"function"==typeof t?t:r}},1746:function(t,e,n){var r=n(73509),o=n(1841),i=n(80770),a=n(93014);t.exports=function(t,e){return r(t)?t:o(t,e)?[t]:i(a(t))}},67391:function(t,e,n){var r=n(8129);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},88908:function(t,e,n){t=n.nmd(t);var r=n(3642),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o?r.Buffer:void 0,u=a?a.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=u?u(n):new t.constructor(n);return t.copy(r),r}},28395:function(t,e,n){var r=n(67391);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},52882:function(t){var e=/\w*$/;t.exports=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}},85492:function(t,e,n){var r=n(65085),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;t.exports=function(t){return i?Object(i.call(t)):{}}},21991:function(t,e,n){var r=n(67391);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},60615:function(t,e,n){var r=n(58510);t.exports=function(t,e){if(t!==e){var n=void 0!==t,o=null===t,i=t==t,a=r(t),u=void 0!==e,s=null===e,c=e==e,l=r(e);if(!s&&!l&&!a&&t>e||a&&u&&c&&!s&&!l||o&&u&&c||!n&&c||!i)return 1;if(!o&&!a&&!l&&t<e||l&&n&&i&&!o&&!a||s&&n&&i||!u&&i||!c)return -1}return 0}},91690:function(t,e,n){var r=n(60615);t.exports=function(t,e,n){for(var o=-1,i=t.criteria,a=e.criteria,u=i.length,s=n.length;++o<u;){var c=r(i[o],a[o]);if(c){if(o>=s)return c;return c*("desc"==n[o]?-1:1)}}return t.index-e.index}},19029:function(t){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},89028:function(t,e,n){var r=n(63045),o=n(16610);t.exports=function(t,e,n,i){var a=!n;n||(n={});for(var u=-1,s=e.length;++u<s;){var c=e[u],l=i?i(n[c],t[c],c,n,t):void 0;void 0===l&&(l=t[c]),a?o(n,c,l):r(n,c,l)}return n}},56365:function(t,e,n){var r=n(89028),o=n(24729);t.exports=function(t,e){return r(t,o(t),e)}},93626:function(t,e,n){var r=n(89028),o=n(52250);t.exports=function(t,e){return r(t,o(t),e)}},71627:function(t,e,n){var r=n(3642)["__core-js_shared__"];t.exports=r},80822:function(t,e,n){var r=n(99749),o=n(64091);t.exports=function(t){return r(function(e,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,u=i>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,u&&o(n[0],n[1],u)&&(a=i<3?void 0:a,i=1),e=Object(e);++r<i;){var s=n[r];s&&t(e,s,r,a)}return e})}},79427:function(t,e,n){var r=n(15206);t.exports=function(t,e){return function(n,o){if(null==n)return n;if(!r(n))return t(n,o);for(var i=n.length,a=e?i:-1,u=Object(n);(e?a--:++a<i)&&!1!==o(u[a],a,u););return n}}},13898:function(t){t.exports=function(t){return function(e,n,r){for(var o=-1,i=Object(e),a=r(e),u=a.length;u--;){var s=a[t?u:++o];if(!1===n(i[s],s,i))break}return e}}},40593:function(t,e,n){var r=n(60876),o=n(15206),i=n(35147);t.exports=function(t){return function(e,n,a){var u=Object(e);if(!o(e)){var s=r(n,3);e=i(e),n=function(t){return s(u[t],t,u)}}var c=t(e,n,a);return c>-1?u[s?e[c]:c]:void 0}}},84521:function(t,e,n){var r=n(36441),o=n(64091),i=n(77615);t.exports=function(t){return function(e,n,a){return a&&"number"!=typeof a&&o(e,n,a)&&(n=a=void 0),e=i(e),void 0===n?(n=e,e=0):n=i(n),a=void 0===a?e<n?1:-1:i(a),r(e,n,a,t)}}},58223:function(t,e,n){var r=n(64637),o=n(35919),i=n(22780),a=r&&1/i(new r([,-0]))[1]==1/0?function(t){return new r(t)}:o;t.exports=a},59907:function(t,e,n){var r=n(64620),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},91491:function(t,e,n){var r=n(44643),o=n(14803),i=n(34675);t.exports=function(t,e,n,a,u,s){var c=1&n,l=t.length,f=e.length;if(l!=f&&!(c&&f>l))return!1;var d=s.get(t),h=s.get(e);if(d&&h)return d==e&&h==t;var p=-1,v=!0,y=2&n?new r:void 0;for(s.set(t,e),s.set(e,t);++p<l;){var g=t[p],m=e[p];if(a)var b=c?a(m,g,p,e,t,s):a(g,m,p,t,e,s);if(void 0!==b){if(b)continue;v=!1;break}if(y){if(!o(e,function(t,e){if(!i(y,e)&&(g===t||u(g,t,n,a,s)))return y.push(e)})){v=!1;break}}else if(!(g===m||u(g,m,n,a,s))){v=!1;break}}return s.delete(t),s.delete(e),v}},13989:function(t,e,n){var r=n(65085),o=n(8129),i=n(30207),a=n(91491),u=n(19143),s=n(22780),c=r?r.prototype:void 0,l=c?c.valueOf:void 0;t.exports=function(t,e,n,r,c,f,d){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)break;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":if(t.byteLength!=e.byteLength||!f(new o(t),new o(e)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var h=u;case"[object Set]":var p=1&r;if(h||(h=s),t.size!=e.size&&!p)break;var v=d.get(t);if(v)return v==e;r|=2,d.set(t,e);var y=a(h(t),h(e),r,c,f,d);return d.delete(t),y;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},86002:function(t,e,n){var r=n(24592),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,i,a,u){var s=1&n,c=r(t),l=c.length;if(l!=r(e).length&&!s)return!1;for(var f=l;f--;){var d=c[f];if(!(s?d in e:o.call(e,d)))return!1}var h=u.get(t),p=u.get(e);if(h&&p)return h==e&&p==t;var v=!0;u.set(t,e),u.set(e,t);for(var y=s;++f<l;){var g=t[d=c[f]],m=e[d];if(i)var b=s?i(m,g,d,e,t,u):i(g,m,d,t,e,u);if(!(void 0===b?g===m||a(g,m,n,i,u):b)){v=!1;break}y||(y="constructor"==d)}if(v&&!y){var x=t.constructor,w=e.constructor;x!=w&&"constructor"in t&&"constructor"in e&&!("function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w)&&(v=!1)}return u.delete(t),u.delete(e),v}},5213:function(t,e,n){var r=n(68274),o=n(25912),i=n(81288);t.exports=function(t){return i(o(t,void 0,r),t+"")}},31357:function(t,e,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},24592:function(t,e,n){var r=n(42600),o=n(24729),i=n(35147);t.exports=function(t){return r(t,i,o)}},31453:function(t,e,n){var r=n(42600),o=n(52250),i=n(71885);t.exports=function(t){return r(t,i,o)}},46722:function(t,e,n){var r=n(91010);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},99367:function(t,e,n){var r=n(28162),o=n(35147);t.exports=function(t){for(var e=o(t),n=e.length;n--;){var i=e[n],a=t[i];e[n]=[i,a,r(a)]}return e}},64620:function(t,e,n){var r=n(40369),o=n(83324);t.exports=function(t,e){var n=o(t,e);return r(n)?n:void 0}},99672:function(t,e,n){var r=n(49203)(Object.getPrototypeOf,Object);t.exports=r},52439:function(t,e,n){var r=n(65085),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,u),n=t[u];try{t[u]=void 0;var r=!0}catch(t){}var o=a.call(t);return r&&(e?t[u]=n:delete t[u]),o}},24729:function(t,e,n){var r=n(92010),o=n(58182),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(t){return null==t?[]:r(a(t=Object(t)),function(e){return i.call(t,e)})}:o;t.exports=u},52250:function(t,e,n){var r=n(73056),o=n(99672),i=n(24729),a=n(58182),u=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,i(t)),t=o(t);return e}:a;t.exports=u},17121:function(t,e,n){var r=n(48361),o=n(3055),i=n(7737),a=n(64637),u=n(28345),s=n(606),c=n(33679),l="[object Map]",f="[object Promise]",d="[object Set]",h="[object WeakMap]",p="[object DataView]",v=c(r),y=c(o),g=c(i),m=c(a),b=c(u),x=s;(r&&x(new r(new ArrayBuffer(1)))!=p||o&&x(new o)!=l||i&&x(i.resolve())!=f||a&&x(new a)!=d||u&&x(new u)!=h)&&(x=function(t){var e=s(t),n="[object Object]"==e?t.constructor:void 0,r=n?c(n):"";if(r)switch(r){case v:return p;case y:return l;case g:return f;case m:return d;case b:return h}return e}),t.exports=x},83324:function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},41166:function(t,e,n){var r=n(1746),o=n(41080),i=n(73509),a=n(24923),u=n(63831),s=n(4593);t.exports=function(t,e,n){e=r(e,t);for(var c=-1,l=e.length,f=!1;++c<l;){var d=s(e[c]);if(!(f=null!=t&&n(t,d)))break;t=t[d]}return f||++c!=l?f:!!(l=null==t?0:t.length)&&u(l)&&a(d,l)&&(i(t)||o(t))}},56121:function(t){var e=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return e.test(t)}},85026:function(t,e,n){var r=n(59780);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},74781:function(t){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},98870:function(t,e,n){var r=n(59780),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(e,t)?e[t]:void 0}},29396:function(t,e,n){var r=n(59780),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:o.call(e,t)}},85714:function(t,e,n){var r=n(59780);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},88244:function(t){var e=Object.prototype.hasOwnProperty;t.exports=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},544:function(t,e,n){var r=n(67391),o=n(28395),i=n(52882),a=n(85492),u=n(21991);t.exports=function(t,e,n){var s=t.constructor;switch(e){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new s(+t);case"[object DataView]":return o(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return u(t,n);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(t);case"[object RegExp]":return i(t);case"[object Symbol]":return a(t)}}},54768:function(t,e,n){var r=n(58987),o=n(99672),i=n(99166);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:r(o(t))}},15095:function(t,e,n){var r=n(65085),o=n(41080),i=n(73509),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},24923:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},64091:function(t,e,n){var r=n(30207),o=n(15206),i=n(24923),a=n(88873);t.exports=function(t,e,n){if(!a(n))return!1;var u=typeof e;return("number"==u?!!(o(n)&&i(e,n.length)):"string"==u&&e in n)&&r(n[e],t)}},1841:function(t,e,n){var r=n(73509),o=n(58510),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!!("number"==n||"symbol"==n||"boolean"==n||null==t||o(t))||a.test(t)||!i.test(t)||null!=e&&t in Object(e)}},91010:function(t){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},70871:function(t,e,n){var r,o=n(71627),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!i&&i in t}},99166:function(t){var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},28162:function(t,e,n){var r=n(88873);t.exports=function(t){return t==t&&!r(t)}},32725:function(t){t.exports=function(){this.__data__=[],this.size=0}},414:function(t,e,n){var r=n(76532),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():o.call(e,n,1),--this.size,!0)}},93767:function(t,e,n){var r=n(76532);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},33820:function(t,e,n){var r=n(76532);t.exports=function(t){return r(this.__data__,t)>-1}},74468:function(t,e,n){var r=n(76532);t.exports=function(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}},47459:function(t,e,n){var r=n(42220),o=n(92960),i=n(3055);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},82643:function(t,e,n){var r=n(46722);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},42857:function(t,e,n){var r=n(46722);t.exports=function(t){return r(this,t).get(t)}},41154:function(t,e,n){var r=n(46722);t.exports=function(t){return r(this,t).has(t)}},25529:function(t,e,n){var r=n(46722);t.exports=function(t,e){var n=r(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this}},19143:function(t){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}},4733:function(t){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},38061:function(t,e,n){var r=n(39969);t.exports=function(t){var e=r(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}},59780:function(t,e,n){var r=n(64620)(Object,"create");t.exports=r},10369:function(t,e,n){var r=n(49203)(Object.keys,Object);t.exports=r},71914:function(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},44055:function(t,e,n){t=n.nmd(t);var r=n(31357),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&r.process,u=function(){try{var t=i&&i.require&&i.require("util").types;if(t)return t;return a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u},5063:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},49203:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},25912:function(t,e,n){var r=n(97913),o=Math.max;t.exports=function(t,e,n){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,u=o(i.length-e,0),s=Array(u);++a<u;)s[a]=i[e+a];a=-1;for(var c=Array(e+1);++a<e;)c[a]=i[a];return c[e]=n(s),r(t,this,c)}}},3642:function(t,e,n){var r=n(31357),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},12693:function(t){t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},76882:function(t){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},80786:function(t){t.exports=function(t){return this.__data__.has(t)}},22780:function(t){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}},81288:function(t,e,n){var r=n(47063),o=n(27873)(r);t.exports=o},27873:function(t){var e=Date.now;t.exports=function(t){var n=0,r=0;return function(){var o=e(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},99669:function(t,e,n){var r=n(92960);t.exports=function(){this.__data__=new r,this.size=0}},62881:function(t){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},99024:function(t){t.exports=function(t){return this.__data__.get(t)}},44701:function(t){t.exports=function(t){return this.__data__.has(t)}},75694:function(t,e,n){var r=n(92960),o=n(3055),i=n(41223);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(t,e),this.size=n.size,this}},79723:function(t){t.exports=function(t,e,n){for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return -1}},79624:function(t,e,n){var r=n(99463),o=n(56121),i=n(52132);t.exports=function(t){return o(t)?i(t):r(t)}},80770:function(t,e,n){var r=n(38061),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,function(t,n,r,o){e.push(r?o.replace(i,"$1"):n||t)}),e});t.exports=a},4593:function(t,e,n){var r=n(58510),o=1/0;t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-o?"-0":e}},33679:function(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},15428:function(t){var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},52132:function(t){var e="\ud800-\udfff",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\ud83c[\udffb-\udfff]",o="[^"+e+"]",i="(?:\ud83c[\udde6-\uddff]){2}",a="[\ud800-\udbff][\udc00-\udfff]",u="(?:"+n+"|"+r+")?",s="[\\ufe0e\\ufe0f]?",c="(?:\\u200d(?:"+[o,i,a].join("|")+")"+s+u+")*",l=RegExp(r+"(?="+r+")|(?:"+[o+n+"?",n,i,a,"["+e+"]"].join("|")+")"+(s+u+c),"g");t.exports=function(t){for(var e=l.lastIndex=0;l.test(t);)++e;return e}},64816:function(t,e,n){var r=n(2174);t.exports=function(t){return r(t,4)}},97975:function(t,e,n){var r=n(2174);t.exports=function(t){return r(t,5)}},38461:function(t){t.exports=function(t){return function(){return t}}},85339:function(t,e,n){var r=n(99749),o=n(30207),i=n(64091),a=n(71885),u=Object.prototype,s=u.hasOwnProperty,c=r(function(t,e){t=Object(t);var n=-1,r=e.length,c=r>2?e[2]:void 0;for(c&&i(e[0],e[1],c)&&(r=1);++n<r;)for(var l=e[n],f=a(l),d=-1,h=f.length;++d<h;){var p=f[d],v=t[p];(void 0===v||o(v,u[p])&&!s.call(t,p))&&(t[p]=l[p])}return t});t.exports=c},48325:function(t,e,n){t.exports=n(58391)},30207:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},21231:function(t,e,n){var r=n(92010),o=n(69911),i=n(60876),a=n(73509);t.exports=function(t,e){return(a(t)?r:o)(t,i(e,3))}},87639:function(t,e,n){var r=n(40593)(n(2166));t.exports=r},2166:function(t,e,n){var r=n(84981),o=n(60876),i=n(76642),a=Math.max;t.exports=function(t,e,n){var u=null==t?0:t.length;if(!u)return -1;var s=null==n?0:i(n);return s<0&&(s=a(u+s,0)),r(t,o(e,3),s)}},68274:function(t,e,n){var r=n(18060);t.exports=function(t){return(null==t?0:t.length)?r(t,1):[]}},58391:function(t,e,n){var r=n(10908),o=n(47035),i=n(51032),a=n(73509);t.exports=function(t,e){return(a(t)?r:o)(t,i(e))}},77230:function(t,e,n){var r=n(92244),o=n(51032),i=n(71885);t.exports=function(t,e){return null==t?t:r(t,o(e),i)}},55854:function(t,e,n){var r=n(19716);t.exports=function(t,e,n){var o=null==t?void 0:r(t,e);return void 0===o?n:o}},4093:function(t,e,n){var r=n(77631),o=n(41166);t.exports=function(t,e){return null!=t&&o(t,e,r)}},83320:function(t,e,n){var r=n(19144),o=n(41166);t.exports=function(t,e){return null!=t&&o(t,e,r)}},65778:function(t){t.exports=function(t){return t}},41080:function(t,e,n){var r=n(34852),o=n(62743),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(t){return o(t)&&a.call(t,"callee")&&!u.call(t,"callee")};t.exports=s},73509:function(t){var e=Array.isArray;t.exports=e},15206:function(t,e,n){var r=n(74449),o=n(63831);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},64709:function(t,e,n){var r=n(15206),o=n(62743);t.exports=function(t){return o(t)&&r(t)}},91485:function(t,e,n){t=n.nmd(t);var r=n(3642),o=n(9183),i=e&&!e.nodeType&&e,a=i&&t&&!t.nodeType&&t,u=a&&a.exports===i?r.Buffer:void 0,s=u?u.isBuffer:void 0;t.exports=s||o},38278:function(t,e,n){var r=n(50419),o=n(17121),i=n(41080),a=n(73509),u=n(15206),s=n(91485),c=n(99166),l=n(23329),f=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(u(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||s(t)||l(t)||i(t)))return!t.length;var e=o(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(c(t))return!r(t).length;for(var n in t)if(f.call(t,n))return!1;return!0}},74449:function(t,e,n){var r=n(606),o=n(88873);t.exports=function(t){if(!o(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},63831:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},51820:function(t,e,n){var r=n(48745),o=n(19040),i=n(44055),a=i&&i.isMap,u=a?o(a):r;t.exports=u},88873:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},62743:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},40598:function(t,e,n){var r=n(606),o=n(99672),i=n(62743),a=Object.prototype,u=Function.prototype.toString,s=a.hasOwnProperty,c=u.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=r(t))return!1;var e=o(t);if(null===e)return!0;var n=s.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==c}},68414:function(t,e,n){var r=n(49375),o=n(19040),i=n(44055),a=i&&i.isSet,u=a?o(a):r;t.exports=u},24558:function(t,e,n){var r=n(606),o=n(73509),i=n(62743);t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&"[object String]"==r(t)}},58510:function(t,e,n){var r=n(606),o=n(62743);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==r(t)}},23329:function(t,e,n){var r=n(58980),o=n(19040),i=n(44055),a=i&&i.isTypedArray,u=a?o(a):r;t.exports=u},51790:function(t){t.exports=function(t){return void 0===t}},35147:function(t,e,n){var r=n(99207),o=n(50419),i=n(15206);t.exports=function(t){return i(t)?r(t):o(t)}},71885:function(t,e,n){var r=n(99207),o=n(69208),i=n(15206);t.exports=function(t){return i(t)?r(t,!0):o(t)}},2457:function(t){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},89232:function(t,e,n){var r=n(2173),o=n(60876),i=n(67641),a=n(73509);t.exports=function(t,e){return(a(t)?r:i)(t,o(e,3))}},20993:function(t,e,n){var r=n(16610),o=n(69583),i=n(60876);t.exports=function(t,e){var n={};return e=i(e,3),o(t,function(t,o,i){r(n,o,e(t,o,i))}),n}},15387:function(t,e,n){var r=n(60443),o=n(12192),i=n(65778);t.exports=function(t){return t&&t.length?r(t,i,o):void 0}},39969:function(t,e,n){var r=n(41223);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=t.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,t.exports=o},79491:function(t,e,n){var r=n(42540),o=n(80822)(function(t,e,n){r(t,e,n)});t.exports=o},47479:function(t,e,n){var r=n(60443),o=n(74951),i=n(65778);t.exports=function(t){return t&&t.length?r(t,i,o):void 0}},86971:function(t,e,n){var r=n(60443),o=n(60876),i=n(74951);t.exports=function(t,e){return t&&t.length?r(t,o(e,2),i):void 0}},35919:function(t){t.exports=function(){}},54987:function(t,e,n){var r=n(3642);t.exports=function(){return r.Date.now()}},4036:function(t,e,n){var r=n(46635),o=n(5213)(function(t,e){return null==t?{}:r(t,e)});t.exports=o},4924:function(t,e,n){var r=n(79339),o=n(29101),i=n(1841),a=n(4593);t.exports=function(t){return i(t)?r(a(t)):o(t)}},60297:function(t,e,n){var r=n(84521)();t.exports=r},59897:function(t,e,n){var r=n(63541),o=n(47035),i=n(60876),a=n(79736),u=n(73509);t.exports=function(t,e,n){var s=u(t)?r:a,c=arguments.length<3;return s(t,i(e,4),n,c,o)}},11159:function(t,e,n){var r=n(50419),o=n(17121),i=n(15206),a=n(24558),u=n(79624);t.exports=function(t){if(null==t)return 0;if(i(t))return a(t)?u(t):t.length;var e=o(t);return"[object Map]"==e||"[object Set]"==e?t.size:r(t).length}},21520:function(t,e,n){var r=n(18060),o=n(50997),i=n(99749),a=n(64091),u=i(function(t,e){if(null==t)return[];var n=e.length;return n>1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),o(t,r(e,1),[])});t.exports=u},58182:function(t){t.exports=function(){return[]}},9183:function(t){t.exports=function(){return!1}},77615:function(t,e,n){var r=n(97172),o=1/0;t.exports=function(t){return t?(t=r(t))===o||t===-o?(t<0?-1:1)*17976931348623157e292:t==t?t:0:0===t?t:0}},76642:function(t,e,n){var r=n(77615);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},97172:function(t,e,n){var r=n(79884),o=n(88873),i=n(58510),a=0/0,u=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return a;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=s.test(t);return n||c.test(t)?l(t.slice(2),n?2:8):u.test(t)?a:+t}},80466:function(t,e,n){var r=n(89028),o=n(71885);t.exports=function(t){return r(t,o(t))}},93014:function(t,e,n){var r=n(20530);t.exports=function(t){return null==t?"":r(t)}},88364:function(t,e,n){var r=n(10908),o=n(58987),i=n(69583),a=n(60876),u=n(99672),s=n(73509),c=n(91485),l=n(74449),f=n(88873),d=n(23329);t.exports=function(t,e,n){var h=s(t),p=h||c(t)||d(t);if(e=a(e,4),null==n){var v=t&&t.constructor;n=p?h?new v:[]:f(t)&&l(v)?o(u(t)):{}}return(p?r:i)(t,function(t,r,o){return e(n,t,r,o)}),n}},97135:function(t,e,n){var r=n(18060),o=n(99749),i=n(53367),a=n(64709),u=o(function(t){return i(r(t,1,a,!0))});t.exports=u},22942:function(t,e,n){var r=n(93014),o=0;t.exports=function(t){var e=++o;return r(t)+e}},87838:function(t,e,n){var r=n(9720),o=n(35147);t.exports=function(t){return null==t?[]:r(t,o(t))}},3097:function(t,e,n){var r=n(63045),o=n(13799);t.exports=function(t,e){return o(t||[],e||[],r)}},2389:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(7653);let o=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),i=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.filter((t,e,n)=>!!t&&n.indexOf(t)===e).join(" ")};var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let u=(0,r.forwardRef)((t,e)=>{let{color:n="currentColor",size:o=24,strokeWidth:u=2,absoluteStrokeWidth:s,className:c="",children:l,iconNode:f,...d}=t;return(0,r.createElement)("svg",{ref:e,...a,width:o,height:o,stroke:n,strokeWidth:s?24*Number(u)/Number(o):u,className:i("lucide",c),...d},[...f.map(t=>{let[e,n]=t;return(0,r.createElement)(e,n)}),...Array.isArray(l)?l:[l]])}),s=(t,e)=>{let n=(0,r.forwardRef)((n,a)=>{let{className:s,...c}=n;return(0,r.createElement)(u,{ref:a,iconNode:e,className:i("lucide-".concat(o(t)),s),...c})});return n.displayName="".concat(t),n}},39790:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]])},61883:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},46693:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("BarChart3",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]])},74497:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("Beaker",[["path",{d:"M4.5 3h15",key:"c7n0jr"}],["path",{d:"M6 3v16a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V3",key:"m1uhx7"}],["path",{d:"M6 14h12",key:"4cwo0f"}]])},70548:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("BookOpen",[["path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z",key:"vv98re"}],["path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z",key:"1cyq3y"}]])},91684:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("Box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]])},88497:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("Boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]])},31815:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]])},87354:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},58410:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},2966:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},97066:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("CircleCheckBig",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},53512:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},25555:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},10977:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("CodeXml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]])},38333:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},36673:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},57124:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]])},3271:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("FolderGit2",[["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["path",{d:"M18 19c-2.8 0-5-2.2-5-5v8",key:"pkpw2h"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]])},84142:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]])},50646:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("GitGraph",[["circle",{cx:"5",cy:"6",r:"3",key:"1qnov2"}],["path",{d:"M5 9v6",key:"158jrl"}],["circle",{cx:"5",cy:"18",r:"3",key:"104gr9"}],["path",{d:"M12 3v18",key:"108xh3"}],["circle",{cx:"19",cy:"6",r:"3",key:"108a5v"}],["path",{d:"M16 15.7A9 9 0 0 0 19 9",key:"1e3vqb"}]])},41755:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]])},96631:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]])},83071:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]])},77329:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]])},5025:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]])},6315:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]])},61990:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]])},79419:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("Plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]])},88623:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},95731:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},12198:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},31095:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]])},10997:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},12439:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]])},20054:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},40384:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("Workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]])},10269:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},90743:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(2389).Z)("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},38475:function(t,e,n){"use strict";var r=n(7653),o=n(96250),i="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},a=o.useSyncExternalStore,u=r.useRef,s=r.useEffect,c=r.useMemo,l=r.useDebugValue;e.useSyncExternalStoreWithSelector=function(t,e,n,r,o){var f=u(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;var h=a(t,(f=c(function(){function t(t){if(!s){if(s=!0,a=t,t=r(t),void 0!==o&&d.hasValue){var e=d.value;if(o(e,t))return u=e}return u=t}if(e=u,i(a,t))return e;var n=r(t);return void 0!==o&&o(e,n)?(a=t,e):(a=t,u=n)}var a,u,s=!1,c=void 0===n?null:n;return[function(){return t(e())},null===c?void 0:function(){return t(c())}]},[e,n,r,o]))[0],f[1]);return s(function(){d.hasValue=!0,d.value=h},[h]),l(h),h}},18678:function(t,e,n){"use strict";t.exports=n(38475)},23867:function(){},49767:function(t){var e,n,r,o=t.exports={};function i(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function u(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var s=[],c=!1,l=-1;function f(){c&&r&&(c=!1,r.length?s=r.concat(s):l=-1,s.length&&d())}function d(){if(!c){var t=u(f);c=!0;for(var e=s.length;e;){for(r=s,s=[];++l<e;)r&&r[l].run();l=-1,e=s.length}r=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function h(t,e){this.fun=t,this.array=e}function p(){}o.nextTick=function(t){var e=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];s.push(new h(t,e)),1!==s.length||c||u(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=p,o.addListener=p,o.once=p,o.off=p,o.removeListener=p,o.removeAllListeners=p,o.emit=p,o.prependListener=p,o.prependOnceListener=p,o.listeners=function(t){return[]},o.binding=function(t){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw Error("process.chdir is not supported")},o.umask=function(){return 0}},46196:function(t,e,n){"use strict";function r(t,e,{checkForDefaultPrevented:n=!0}={}){return function(r){if(t?.(r),!1===n||!r||!r.defaultPrevented)return e?.(r)}}n.d(e,{Mj:function(){return r}}),"undefined"!=typeof window&&window.document&&window.document.createElement},94492:function(t,e,n){"use strict";n.d(e,{e:function(){return i}});var r=n(7653);function o(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}function i(...t){return r.useCallback(function(...t){return e=>{let n=!1,r=t.map(t=>{let r=o(t,e);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let e=0;e<r.length;e++){let n=r[e];"function"==typeof n?n():o(t[e],null)}}}}(...t),t)}},99933:function(t,e,n){"use strict";n.d(e,{b:function(){return i}});var r=n(7653),o=n(27573);function i(t,e=[]){let n=[],i=()=>{let e=n.map(t=>r.createContext(t));return function(n){let o=n?.[t]||e;return r.useMemo(()=>({[`__scope${t}`]:{...n,[t]:o}}),[n,o])}};return i.scopeName=t,[function(e,i){let a=r.createContext(i);a.displayName=e+"Context";let u=n.length;n=[...n,i];let s=e=>{let{scope:n,children:i,...s}=e,c=n?.[t]?.[u]||a,l=r.useMemo(()=>s,Object.values(s));return(0,o.jsx)(c.Provider,{value:l,children:i})};return s.displayName=e+"Provider",[s,function(n,o,s={}){let{optional:c=!1}=s,l=o?.[t]?.[u]||a,f=r.useContext(l);if(f)return f;if(void 0!==i)return i;if(!c)throw Error(`\`${n}\` must be used within \`${e}\``)}]},function(...t){let e=t[0];if(1===t.length)return e;let n=()=>{let n=t.map(t=>({useScope:t(),scopeName:t.scopeName}));return function(t){let o=n.reduce((e,{useScope:n,scopeName:r})=>{let o=n(t)[`__scope${r}`];return{...e,...o}},{});return r.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return n.scopeName=e.scopeName,n}(i,...e)]}},57431:function(t,e,n){"use strict";let r;n.d(e,{x8:function(){return t7},VY:function(){return tJ},aV:function(){return tQ},h_:function(){return tU},fC:function(){return tV},Dx:function(){return t9},xz:function(){return tZ}});var o,i,a,u,s,c,l,f,d=n(7653),h=n(46196),p=n(94492),v=n(99933),y=n(17321),g=n(47178),m=n(78378),b=n(523),x=n(27573),w="dismissableLayer.update",_=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),E=d.forwardRef((t,e)=>{var n,r;let{disableOutsidePointerEvents:o=!1,deferPointerDownOutside:i=!1,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:s,onInteractOutside:c,onDismiss:f,...v}=t,y=d.useContext(_),[g,E]=d.useState(null),N=null!==(r=null==g?void 0:g.ownerDocument)&&void 0!==r?r:null===(n=globalThis)||void 0===n?void 0:n.document,[,S]=d.useState({}),O=(0,p.e)(e,E),R=Array.from(y.layers),[C]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),I=C?R.indexOf(C):-1,T=g?R.indexOf(g):-1,A=y.layersWithOutsidePointerEventsDisabled.size>0,z=T>=I,P=d.useRef(!1),L=function(t,e){var n;let{ownerDocument:r=null===(n=globalThis)||void 0===n?void 0:n.document,deferPointerDownOutside:o=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:u=k}=e,s=(0,b.W)(t),c=d.useRef(!1),l=d.useRef(!1),f=d.useRef(new Map),h=d.useRef(()=>{});return d.useEffect(()=>{function t(){l.current=!1,i.current=!1,f.current.clear()}function e(t){if(!l.current)return;let e=t.target;e instanceof Node&&[...a].some(t=>t.contains(e))||f.current.set(t.type,!0),"click"===t.type&&window.setTimeout(()=>{l.current&&h.current()},0)}function n(t){l.current&&f.current.set(t.type,!1)}let d=e=>{if(e.target&&!c.current){let n=function(){r.removeEventListener("click",h.current);let e=Array.from(f.current.values()).some(Boolean);t(),e||j("dismissableLayer.pointerDownOutside",s,a,{discrete:!0})};if(!u(e.target)){r.removeEventListener("click",h.current),t(),c.current=!1;return}let a={originalEvent:e};l.current=!0,i.current=o&&0===e.button,f.current.clear(),o&&0===e.button?(r.removeEventListener("click",h.current),h.current=n,r.addEventListener("click",h.current,{once:!0})):n()}else r.removeEventListener("click",h.current),t();c.current=!1},p=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let t of p)r.addEventListener(t,e,!0),r.addEventListener(t,n);let v=window.setTimeout(()=>{r.addEventListener("pointerdown",d)},0);return()=>{for(let t of(window.clearTimeout(v),r.removeEventListener("pointerdown",d),r.removeEventListener("click",h.current),p))r.removeEventListener(t,e,!0),r.removeEventListener(t,n)}},[r,s,o,i,a,u]),{onPointerDownCapture:()=>c.current=!0}}(t=>{null==u||u(t),null==c||c(t),t.defaultPrevented||null==f||f()},{ownerDocument:N,deferPointerDownOutside:i,isDeferredPointerDownOutsideRef:P,dismissableSurfaces:y.dismissableSurfaces,shouldHandlePointerDownOutside:d.useCallback(t=>{if(!(t instanceof Node))return!1;let e=[...y.branches].some(e=>e.contains(t));return z&&!e},[y.branches,z])}),D=function(t){var e;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(e=globalThis)||void 0===e?void 0:e.document,r=(0,b.W)(t),o=d.useRef(!1);return d.useEffect(()=>{let t=t=>{t.target&&!o.current&&j("dismissableLayer.focusOutside",r,{originalEvent:t},{discrete:!1})};return n.addEventListener("focusin",t),()=>n.removeEventListener("focusin",t)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(t=>{if(i&&P.current)return;let e=t.target;[...y.branches].some(t=>t.contains(e))||(null==s||s(t),null==c||c(t),t.defaultPrevented||null==f||f())},N),$=!!g&&T===R.length-1,F=(0,b.W)(t=>{"Escape"===t.key&&(null==a||a(t),!t.defaultPrevented&&f&&(t.preventDefault(),f()))});return d.useEffect(()=>{if($)return N.addEventListener("keydown",F,{capture:!0}),()=>N.removeEventListener("keydown",F,{capture:!0})},[N,$,F]),d.useEffect(()=>{if(g)return o&&(0===y.layersWithOutsidePointerEventsDisabled.size&&(l=N.body.style.pointerEvents,N.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(g)),y.layers.add(g),M(),()=>{o&&(y.layersWithOutsidePointerEventsDisabled.delete(g),0===y.layersWithOutsidePointerEventsDisabled.size&&(N.body.style.pointerEvents=l))}},[g,N,o,y]),d.useEffect(()=>()=>{g&&(y.layers.delete(g),y.layersWithOutsidePointerEventsDisabled.delete(g),M())},[g,y]),d.useEffect(()=>{let t=()=>S({});return document.addEventListener(w,t),()=>document.removeEventListener(w,t)},[]),(0,x.jsx)(m.WV.div,{...v,ref:O,style:{pointerEvents:A?z?"auto":"none":void 0,...t.style},onFocusCapture:(0,h.Mj)(t.onFocusCapture,D.onFocusCapture),onBlurCapture:(0,h.Mj)(t.onBlurCapture,D.onBlurCapture),onPointerDownCapture:(0,h.Mj)(t.onPointerDownCapture,L.onPointerDownCapture)})});E.displayName="DismissableLayer",d.forwardRef((t,e)=>{let n=d.useContext(_),r=d.useRef(null),o=(0,p.e)(e,r);return d.useEffect(()=>{let t=r.current;if(t)return n.branches.add(t),()=>{n.branches.delete(t)}},[n.branches]),(0,x.jsx)(m.WV.div,{...t,ref:o})}).displayName="DismissableLayerBranch";var k=()=>!0;function M(){let t=new CustomEvent(w);document.dispatchEvent(t)}function j(t,e,n,r){let{discrete:o}=r,i=n.originalEvent.target,a=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&i.addEventListener(t,e,{once:!0}),o?(0,m.jH)(i,a):i.dispatchEvent(a)}var N="focusScope.autoFocusOnMount",S="focusScope.autoFocusOnUnmount",O={bubbles:!1,cancelable:!0},R=d.forwardRef((t,e)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=t,[u,s]=d.useState(null),c=(0,b.W)(o),l=(0,b.W)(i),f=d.useRef(null),h=(0,p.e)(e,s),v=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(r){let t=function(t){if(v.paused||!u)return;let e=t.target;u.contains(e)?f.current=e:T(f.current,{select:!0})},e=function(t){if(v.paused||!u)return;let e=t.relatedTarget;null===e||u.contains(e)||T(f.current,{select:!0})};document.addEventListener("focusin",t),document.addEventListener("focusout",e);let n=new MutationObserver(function(t){if(document.activeElement===document.body)for(let e of t)e.removedNodes.length>0&&T(u)});return u&&n.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",t),document.removeEventListener("focusout",e),n.disconnect()}}},[r,u,v.paused]),d.useEffect(()=>{if(u){A.add(v);let t=document.activeElement;if(!u.contains(t)){let e=new CustomEvent(N,O);u.addEventListener(N,c),u.dispatchEvent(e),e.defaultPrevented||(function(t){let{select:e=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of t)if(T(r,{select:e}),document.activeElement!==n)return}(C(u).filter(t=>"A"!==t.tagName),{select:!0}),document.activeElement===t&&T(u))}return()=>{u.removeEventListener(N,c),setTimeout(()=>{let e=new CustomEvent(S,O);u.addEventListener(S,l),u.dispatchEvent(e),e.defaultPrevented||T(null!=t?t:document.body,{select:!0}),u.removeEventListener(S,l),A.remove(v)},0)}}},[u,c,l,v]);let y=d.useCallback(t=>{if(!n&&!r||v.paused)return;let e="Tab"===t.key&&!t.altKey&&!t.ctrlKey&&!t.metaKey,o=document.activeElement;if(e&&o){let e=t.currentTarget,[r,i]=function(t){let e=C(t);return[I(e,t),I(e.reverse(),t)]}(e);r&&i?t.shiftKey||o!==i?t.shiftKey&&o===r&&(t.preventDefault(),n&&T(i,{select:!0})):(t.preventDefault(),n&&T(r,{select:!0})):o===e&&t.preventDefault()}},[n,r,v.paused]);return(0,x.jsx)(m.WV.div,{tabIndex:-1,...a,ref:h,onKeyDown:y})});function C(t){let e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>{let e="INPUT"===t.tagName&&"hidden"===t.type;return t.disabled||t.hidden||e?NodeFilter.FILTER_SKIP:t.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function I(t,e){let n="function"==typeof e.checkVisibility&&e.checkVisibility({checkVisibilityCSS:!0});for(let r of t)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):function(t,e){let{upTo:n}=e;if("hidden"===getComputedStyle(t).visibility)return!0;for(;t&&(void 0===n||t!==n);){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1}(r,{upTo:e})))return r}function T(t){let{select:e=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t&&t.focus){var n;let r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&(n=t)instanceof HTMLInputElement&&"select"in n&&e&&t.select()}}R.displayName="FocusScope";var A=(r=[],{add(t){let e=r[0];t!==e&&(null==e||e.pause()),(r=z(r,t)).unshift(t)},remove(t){var e;null===(e=(r=z(r,t))[0])||void 0===e||e.resume()}});function z(t,e){let n=[...t],r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}var P=n(3458),L=n(81523),D=d.forwardRef((t,e)=>{var n,r;let{container:o,...i}=t,[a,u]=d.useState(!1);(0,L.b)(()=>u(!0),[]);let s=o||a&&(null===(r=globalThis)||void 0===r?void 0:null===(n=r.document)||void 0===n?void 0:n.body);return s?P.createPortal((0,x.jsx)(m.WV.div,{...i,ref:e}),s):null});D.displayName="Portal";var $=n(65622),F=0,V=null;function B(){let t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var Z=function(){return(Z=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function W(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)0>e.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n}"function"==typeof SuppressedError&&SuppressedError;var q="right-scroll-bar-position",H="width-before-scroll-bar";function U(t,e){return"function"==typeof t?t(e):t&&(t.current=e),t}var Y="undefined"!=typeof window?d.useLayoutEffect:d.useEffect,Q=new WeakMap,G=(void 0===o&&(o={}),(void 0===i&&(i=function(t){return t}),a=[],u=!1,s={read:function(){if(u)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:null},useMedium:function(t){var e=i(t,u);return a.push(e),function(){a=a.filter(function(t){return t!==e})}},assignSyncMedium:function(t){for(u=!0;a.length;){var e=a;a=[],e.forEach(t)}a={push:function(e){return t(e)},filter:function(){return a}}},assignMedium:function(t){u=!0;var e=[];if(a.length){var n=a;a=[],n.forEach(t),e=a}var r=function(){var n=e;e=[],n.forEach(t)},o=function(){return Promise.resolve().then(r)};o(),a={push:function(t){e.push(t),o()},filter:function(t){return e=e.filter(t),a}}}}).options=Z({async:!0,ssr:!1},o),s),X=function(){},K=d.forwardRef(function(t,e){var n,r,o,i,a=d.useRef(null),u=d.useState({onScrollCapture:X,onWheelCapture:X,onTouchMoveCapture:X}),s=u[0],c=u[1],l=t.forwardProps,f=t.children,h=t.className,p=t.removeScrollBar,v=t.enabled,y=t.shards,g=t.sideCar,m=t.noRelative,b=t.noIsolation,x=t.inert,w=t.allowPinchZoom,_=t.as,E=t.gapMode,k=W(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),M=(n=[a,e],r=function(t){return n.forEach(function(e){return U(e,t)})},(o=(0,d.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var t=o.value;t!==value&&(o.value=value,o.callback(value,t))}}}})[0]).callback=r,i=o.facade,Y(function(){var t=Q.get(i);if(t){var e=new Set(t),r=new Set(n),o=i.current;e.forEach(function(t){r.has(t)||U(t,null)}),r.forEach(function(t){e.has(t)||U(t,o)})}Q.set(i,n)},[n]),i),j=Z(Z({},k),s);return d.createElement(d.Fragment,null,v&&d.createElement(g,{sideCar:G,removeScrollBar:p,shards:y,noRelative:m,noIsolation:b,inert:x,setCallbacks:c,allowPinchZoom:!!w,lockRef:a,gapMode:E}),l?d.cloneElement(d.Children.only(f),Z(Z({},j),{ref:M})):d.createElement(void 0===_?"div":_,Z({},j,{className:h,ref:M}),f))});K.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},K.classNames={fullWidth:H,zeroRight:q};var J=function(t){var e=t.sideCar,n=W(t,["sideCar"]);if(!e)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw Error("Sidecar medium not found");return d.createElement(r,Z({},n))};J.isSideCarExport=!0;var tt=function(){var t=0,e=null;return{add:function(r){if(0==t&&(e=function(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=f||n.nc;return e&&t.setAttribute("nonce",e),t}())){var o,i;(o=e).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),i=e,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}t++},remove:function(){--t||!e||(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},te=function(){var t=tt();return function(e,n){d.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},tn=function(){var t=te();return function(e){return t(e.styles,e.dynamic),null}},tr={left:0,top:0,right:0,gap:0},to=function(t){return parseInt(t||"",10)||0},ti=function(t){var e=window.getComputedStyle(document.body),n=e["padding"===t?"paddingLeft":"marginLeft"],r=e["padding"===t?"paddingTop":"marginTop"],o=e["padding"===t?"paddingRight":"marginRight"];return[to(n),to(r),to(o)]},ta=function(t){if(void 0===t&&(t="margin"),"undefined"==typeof window)return tr;var e=ti(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},tu=tn(),ts="data-scroll-locked",tc=function(t,e,n,r){var o=t.left,i=t.top,a=t.right,u=t.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(u,"px ").concat(r,";\n }\n body[").concat(ts,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([e&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(u,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(q," {\n right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(H," {\n margin-right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(q," .").concat(q," {\n right: 0 ").concat(r,";\n }\n \n .").concat(H," .").concat(H," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(ts,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(u,"px;\n }\n")},tl=function(){var t=parseInt(document.body.getAttribute(ts)||"0",10);return isFinite(t)?t:0},tf=function(){d.useEffect(function(){return document.body.setAttribute(ts,(tl()+1).toString()),function(){var t=tl()-1;t<=0?document.body.removeAttribute(ts):document.body.setAttribute(ts,t.toString())}},[])},td=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,o=void 0===r?"margin":r;tf();var i=d.useMemo(function(){return ta(o)},[o]);return d.createElement(tu,{styles:tc(i,!e,o,n?"":"!important")})},th=!1;if("undefined"!=typeof window)try{var tp=Object.defineProperty({},"passive",{get:function(){return th=!0,!0}});window.addEventListener("test",tp,tp),window.removeEventListener("test",tp,tp)}catch(t){th=!1}var tv=!!th&&{passive:!1},ty=function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);return"hidden"!==n[e]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==t.tagName&&"visible"===n[e])},tg=function(t,e){var n=e.ownerDocument,r=e;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),tm(t,r)){var o=tb(t,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},tm=function(t,e){return"v"===t?ty(e,"overflowY"):ty(e,"overflowX")},tb=function(t,e){return"v"===t?[e.scrollTop,e.scrollHeight,e.clientHeight]:[e.scrollLeft,e.scrollWidth,e.clientWidth]},tx=function(t,e,n,r,o){var i,a=(i=window.getComputedStyle(e).direction,"h"===t&&"rtl"===i?-1:1),u=a*r,s=n.target,c=e.contains(s),l=!1,f=u>0,d=0,h=0;do{if(!s)break;var p=tb(t,s),v=p[0],y=p[1]-p[2]-a*v;(v||y)&&tm(t,s)&&(d+=y,h+=v);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(e.contains(s)||e===s));return f&&(o&&1>Math.abs(d)||!o&&u>d)?l=!0:!f&&(o&&1>Math.abs(h)||!o&&-u>h)&&(l=!0),l},tw=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},t_=function(t){return[t.deltaX,t.deltaY]},tE=function(t){return t&&"current"in t?t.current:t},tk=0,tM=[],tj=(c=function(t){var e=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(tk++)[0],i=d.useState(tn)[0],a=d.useRef(t);d.useEffect(function(){a.current=t},[t]),d.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(o));var e=(function(t,e,n){if(n||2==arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))})([t.lockRef.current],(t.shards||[]).map(tE),!0).filter(Boolean);return e.forEach(function(t){return t.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),e.forEach(function(t){return t.classList.remove("allow-interactivity-".concat(o))})}}},[t.inert,t.lockRef.current,t.shards]);var u=d.useCallback(function(t,e){if("touches"in t&&2===t.touches.length||"wheel"===t.type&&t.ctrlKey)return!a.current.allowPinchZoom;var o,i=tw(t),u=n.current,s="deltaX"in t?t.deltaX:u[0]-i[0],c="deltaY"in t?t.deltaY:u[1]-i[1],l=t.target,f=Math.abs(s)>Math.abs(c)?"h":"v";if("touches"in t&&"h"===f&&"range"===l.type)return!1;var d=window.getSelection(),h=d&&d.anchorNode;if(h&&(h===l||h.contains(l)))return!1;var p=tg(f,l);if(!p)return!0;if(p?o=f:(o="v"===f?"h":"v",p=tg(f,l)),!p)return!1;if(!r.current&&"changedTouches"in t&&(s||c)&&(r.current=o),!o)return!0;var v=r.current||o;return tx(v,e,t,"h"===v?s:c,!0)},[]),s=d.useCallback(function(t){if(tM.length&&tM[tM.length-1]===i){var n="deltaY"in t?t_(t):tw(t),r=e.current.filter(function(e){var r;return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&(r=e.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){t.cancelable&&t.preventDefault();return}if(!r){var o=(a.current.shards||[]).map(tE).filter(Boolean).filter(function(e){return e.contains(t.target)});(o.length>0?u(t,o[0]):!a.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),c=d.useCallback(function(t,n,r,o){var i={name:t,delta:n,target:r,should:o,shadowParent:function(t){for(var e=null;null!==t;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}(r)};e.current.push(i),setTimeout(function(){e.current=e.current.filter(function(t){return t!==i})},1)},[]),l=d.useCallback(function(t){n.current=tw(t),r.current=void 0},[]),f=d.useCallback(function(e){c(e.type,t_(e),e.target,u(e,t.lockRef.current))},[]),h=d.useCallback(function(e){c(e.type,tw(e),e.target,u(e,t.lockRef.current))},[]);d.useEffect(function(){return tM.push(i),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",s,tv),document.addEventListener("touchmove",s,tv),document.addEventListener("touchstart",l,tv),function(){tM=tM.filter(function(t){return t!==i}),document.removeEventListener("wheel",s,tv),document.removeEventListener("touchmove",s,tv),document.removeEventListener("touchstart",l,tv)}},[]);var p=t.removeScrollBar,v=t.inert;return d.createElement(d.Fragment,null,v?d.createElement(i,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,p?d.createElement(td,{noRelative:t.noRelative,gapMode:t.gapMode}):null)},G.useMedium(c),J),tN=d.forwardRef(function(t,e){return d.createElement(K,Z({},t,{ref:e,sideCar:tj}))});tN.classNames=K.classNames;var tS=new WeakMap,tO=new WeakMap,tR={},tC=0,tI=function(t){return t&&(t.host||tI(t.parentNode))},tT=function(t,e,n,r){var o=(Array.isArray(t)?t:[t]).map(function(t){if(e.contains(t))return t;var n=tI(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(t){return!!t});tR[n]||(tR[n]=new WeakMap);var i=tR[n],a=[],u=new Set,s=new Set(o),c=function(t){!t||u.has(t)||(u.add(t),c(t.parentNode))};o.forEach(c);var l=function(t){!t||s.has(t)||Array.prototype.forEach.call(t.children,function(t){if(u.has(t))l(t);else try{var e=t.getAttribute(r),o=null!==e&&"false"!==e,s=(tS.get(t)||0)+1,c=(i.get(t)||0)+1;tS.set(t,s),i.set(t,c),a.push(t),1===s&&o&&tO.set(t,!0),1===c&&t.setAttribute(n,"true"),o||t.setAttribute(r,"true")}catch(e){console.error("aria-hidden: cannot operate on ",t,e)}})};return l(e),u.clear(),tC++,function(){a.forEach(function(t){var e=tS.get(t)-1,o=i.get(t)-1;tS.set(t,e),i.set(t,o),e||(tO.has(t)||t.removeAttribute(r),tO.delete(t)),o||t.removeAttribute(n)}),--tC||(tS=new WeakMap,tS=new WeakMap,tO=new WeakMap,tR={})}},tA=function(t,e,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(t)?t:[t]),o=e||("undefined"==typeof document?null:(Array.isArray(t)?t[0]:t).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),tT(r,o,n,"aria-hidden")):function(){return null}},tz=n(8828),tP="Dialog",[tL,tD]=(0,v.b)(tP),[t$,tF]=tL(tP),tV=t=>{let{__scopeDialog:e,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=t,u=d.useRef(null),s=d.useRef(null),[c,l]=(0,g.T)({prop:r,defaultProp:null!=o&&o,onChange:i,caller:tP});return(0,x.jsx)(t$,{scope:e,triggerRef:u,contentRef:s,contentId:(0,y.M)(),titleId:(0,y.M)(),descriptionId:(0,y.M)(),open:c,onOpenChange:l,onOpenToggle:d.useCallback(()=>l(t=>!t),[l]),modal:a,children:n})};tV.displayName=tP;var tB="DialogTrigger",tZ=d.forwardRef((t,e)=>{let{__scopeDialog:n,...r}=t,o=tF(tB,n),i=(0,p.e)(e,o.triggerRef);return(0,x.jsx)(m.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":t8(o.open),...r,ref:i,onClick:(0,h.Mj)(t.onClick,o.onOpenToggle)})});tZ.displayName=tB;var tW="DialogPortal",[tq,tH]=tL(tW,{forceMount:void 0}),tU=t=>{let{__scopeDialog:e,forceMount:n,children:r,container:o}=t,i=tF(tW,e);return(0,x.jsx)(tq,{scope:e,forceMount:n,children:d.Children.map(r,t=>(0,x.jsx)($.z,{present:n||i.open,children:(0,x.jsx)(D,{asChild:!0,container:o,children:t})}))})};tU.displayName=tW;var tY="DialogOverlay",tQ=d.forwardRef((t,e)=>{let n=tH(tY,t.__scopeDialog),{forceMount:r=n.forceMount,...o}=t,i=tF(tY,t.__scopeDialog);return i.modal?(0,x.jsx)($.z,{present:r||i.open,children:(0,x.jsx)(tX,{...o,ref:e})}):null});tQ.displayName=tY;var tG=(0,tz.Z8)("DialogOverlay.RemoveScroll"),tX=d.forwardRef((t,e)=>{let{__scopeDialog:n,...r}=t,o=tF(tY,n),i=function(){let t=d.useContext(_),[e,n]=d.useState(null);return d.useEffect(()=>{if(e)return t.dismissableSurfaces.add(e),()=>{t.dismissableSurfaces.delete(e)}},[e,t.dismissableSurfaces]),n}(),a=(0,p.e)(e,i);return(0,x.jsx)(tN,{as:tG,allowPinchZoom:!0,shards:[o.contentRef],children:(0,x.jsx)(m.WV.div,{"data-state":t8(o.open),...r,ref:a,style:{pointerEvents:"auto",...r.style}})})}),tK="DialogContent",tJ=d.forwardRef((t,e)=>{let n=tH(tK,t.__scopeDialog),{forceMount:r=n.forceMount,...o}=t,i=tF(tK,t.__scopeDialog);return(0,x.jsx)($.z,{present:r||i.open,children:i.modal?(0,x.jsx)(t0,{...o,ref:e}):(0,x.jsx)(t1,{...o,ref:e})})});tJ.displayName=tK;var t0=d.forwardRef((t,e)=>{let n=tF(tK,t.__scopeDialog),r=d.useRef(null),o=(0,p.e)(e,n.contentRef,r);return d.useEffect(()=>{let t=r.current;if(t)return tA(t)},[]),(0,x.jsx)(t2,{...t,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:(0,h.Mj)(t.onCloseAutoFocus,t=>{var e;t.preventDefault(),null===(e=n.triggerRef.current)||void 0===e||e.focus()}),onPointerDownOutside:(0,h.Mj)(t.onPointerDownOutside,t=>{let e=t.detail.originalEvent,n=0===e.button&&!0===e.ctrlKey;(2===e.button||n)&&t.preventDefault()}),onFocusOutside:(0,h.Mj)(t.onFocusOutside,t=>t.preventDefault())})}),t1=d.forwardRef((t,e)=>{let n=tF(tK,t.__scopeDialog),r=d.useRef(!1),o=d.useRef(!1);return(0,x.jsx)(t2,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{var i,a;null===(i=t.onCloseAutoFocus)||void 0===i||i.call(t,e),e.defaultPrevented||(r.current||null===(a=n.triggerRef.current)||void 0===a||a.focus(),e.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:e=>{var i,a;null===(i=t.onInteractOutside)||void 0===i||i.call(t,e),e.defaultPrevented||(r.current=!0,"pointerdown"!==e.detail.originalEvent.type||(o.current=!0));let u=e.target;(null===(a=n.triggerRef.current)||void 0===a?void 0:a.contains(u))&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&o.current&&e.preventDefault()}})}),t2=d.forwardRef((t,e)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=t,u=tF(tK,n);return d.useEffect(()=>{V||(V={start:B(),end:B()});let{start:t,end:e}=V;return document.body.firstElementChild!==t&&document.body.insertAdjacentElement("afterbegin",t),document.body.lastElementChild!==e&&document.body.insertAdjacentElement("beforeend",e),F++,()=>{1===F&&(null==V||V.start.remove(),null==V||V.end.remove(),V=null),F=Math.max(0,F-1)}},[]),(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(R,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,x.jsx)(E,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":t8(u.open),...a,ref:e,deferPointerDownOutside:!0,onDismiss:()=>u.onOpenChange(!1)})})})}),t3="DialogTitle",t9=d.forwardRef((t,e)=>{let{__scopeDialog:n,...r}=t,o=tF(t3,n);return(0,x.jsx)(m.WV.h2,{id:o.titleId,...r,ref:e})});t9.displayName=t3;var t6="DialogDescription";d.forwardRef((t,e)=>{let{__scopeDialog:n,...r}=t,o=tF(t6,n);return(0,x.jsx)(m.WV.p,{id:o.descriptionId,...r,ref:e})}).displayName=t6;var t5="DialogClose",t7=d.forwardRef((t,e)=>{let{__scopeDialog:n,...r}=t,o=tF(t5,n);return(0,x.jsx)(m.WV.button,{type:"button",...r,ref:e,onClick:(0,h.Mj)(t.onClick,()=>o.onOpenChange(!1))})});function t8(t){return t?"open":"closed"}t7.displayName=t5},17321:function(t,e,n){"use strict";n.d(e,{M:function(){return s}});var r,o=n(7653),i=n(81523),a=(r||(r=n.t(o,2)))[" useId ".trim().toString()]||(()=>void 0),u=0;function s(t){let[e,n]=o.useState(a());return(0,i.b)(()=>{t||n(t=>t??String(u++))},[t]),t||(e?`radix-${e}`:"")}},65622:function(t,e,n){"use strict";n.d(e,{z:function(){return i}});var r=n(7653),o=n(81523),i=t=>{var e,n;let i,s;let{present:c,children:l}=t,f=function(t){var e,n;let[i,a]=r.useState(),s=r.useRef(null),c=r.useRef(t),l=r.useRef("none"),f=r.useRef(void 0),[d,h]=(e=t?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((t,e)=>{let r=n[t][e];return null!=r?r:t},e));return r.useEffect(()=>{if("mounted"===d){var t;l.current=null!==(t=f.current)&&void 0!==t?t:u(s.current),f.current=void 0}else l.current="none"},[d]),(0,o.b)(()=>{let e=s.current,n=c.current;if(n!==t){let r=l.current,o=u(e);t?(f.current=o,h("MOUNT")):"none"===o||(null==e?void 0:e.display)==="none"?h("UNMOUNT"):n&&r!==o?h("ANIMATION_OUT"):h("UNMOUNT"),c.current=t}},[t,h]),(0,o.b)(()=>{if(i){var t;let e;let n=null!==(t=i.ownerDocument.defaultView)&&void 0!==t?t:window,r=t=>{let r=u(s.current).includes(CSS.escape(t.animationName));if(t.target===i&&r&&(h("ANIMATION_END"),!c.current)){let t=i.style.animationFillMode;i.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=t)})}},o=t=>{t.target===i&&(l.current=u(s.current))};return i.addEventListener("animationstart",o),i.addEventListener("animationcancel",r),i.addEventListener("animationend",r),()=>{n.clearTimeout(e),i.removeEventListener("animationstart",o),i.removeEventListener("animationcancel",r),i.removeEventListener("animationend",r)}}h("ANIMATION_END")},[i,h]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(t=>{if(t){let e=getComputedStyle(t);s.current=e,f.current=u(e)}else s.current=null;a(t)},[])}}(c),d="function"==typeof l?l({present:f.isPresent}):r.Children.only(l),h=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];let o=r.useRef(e);return o.current=e,r.useCallback(t=>{let e=o.current,n=!1,r=e.map(e=>{let r=a(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():a(e[t],null)}}},[])}(f.ref,(i=null===(e=Object.getOwnPropertyDescriptor(d.props,"ref"))||void 0===e?void 0:e.get)&&"isReactWarning"in i&&i.isReactWarning?d.ref:(i=null===(n=Object.getOwnPropertyDescriptor(d,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in i&&i.isReactWarning?d.props.ref:d.props.ref||d.ref);return"function"==typeof l||f.isPresent?r.cloneElement(d,{ref:h}):null};function a(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}function u(t){return(null==t?void 0:t.animationName)||"none"}i.displayName="Presence"},78378:function(t,e,n){"use strict";n.d(e,{WV:function(){return u},jH:function(){return s}});var r=n(7653),o=n(3458),i=n(8828),a=n(27573),u=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((t,e)=>{let n=(0,i.Z8)(`Primitive.${e}`),o=r.forwardRef((t,r)=>{let{asChild:o,...i}=t,u=o?n:e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(u,{...i,ref:r})});return o.displayName=`Primitive.${e}`,{...t,[e]:o}},{});function s(t,e){t&&o.flushSync(()=>t.dispatchEvent(e))}},8828:function(t,e,n){"use strict";n.d(e,{Z8:function(){return a}});var r,o=n(7653),i=n(94492);function a(t){let e=o.forwardRef((e,n)=>{var r;let a,c,{children:p,...v}=e,y=null,g=!1,m=[];l(p)&&"function"==typeof h&&(p=h(p._payload)),o.Children.forEach(p,t=>{if(o.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===u){g=!0;let e="child"in t.props?t.props.child:t.props.children;l(e)&&"function"==typeof h&&(e=h(e._payload)),y=s(t,e),m.push(y?.props?.children)}else m.push(t)}),y?y=o.cloneElement(y,void 0,m):!g&&1===o.Children.count(p)&&o.isValidElement(p)&&(y=p);let b=y?(r=y,(a=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning?r.ref:(a=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning?r.props.ref:r.props.ref||r.ref):void 0,x=(0,i.e)(n,b);if(!y){if(p||0===p)throw Error(g?d(t):f(t));return p}let w=function(t,e){let n={...e};for(let r in e){let o=t[r],i=e[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...t)=>{let e=i(...t);return o(...t),e}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...t,...n}}(v,y.props??{});return y.type!==o.Fragment&&(w.ref=n?x:b),o.cloneElement(y,w)});return e.displayName=`${t}.Slot`,e}var u=Symbol.for("radix.slottable"),s=(t,e)=>{if("child"in t.props){let e=t.props.child;return o.isValidElement(e)?o.cloneElement(e,void 0,t.props.children(e.props.children)):null}return o.isValidElement(e)?e:null},c=Symbol.for("react.lazy");function l(t){var e;return null!=t&&"object"==typeof t&&"$$typeof"in t&&t.$$typeof===c&&"_payload"in t&&"object"==typeof(e=t._payload)&&null!==e&&"then"in e}var f=t=>`${t} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,d=t=>`${t} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,h=(r||(r=n.t(o,2)))[" use ".trim().toString()]},4343:function(t,e,n){"use strict";n.d(e,{VY:function(){return tn},aV:function(){return tt},fC:function(){return J},xz:function(){return te}});var r=n(7653),o=n.t(r,2),i=n(46196),a=n(99933),u=n(94492),s=n(8828),c=n(27573),l=n(17321),f=n(78378),d=n(523),h=n(47178),p=r.createContext(void 0);function v(t){let e=r.useContext(p);return t||e||"ltr"}var y=n(81523),g=!1,m=o[" useSyncExternalStore ".trim().toString()];function b(){return()=>{}}var x="function"==typeof m?function(){return m(b,()=>!0,()=>!1)}:function(){let[t,e]=r.useState(g);return r.useEffect(()=>{g||(g=!0,e(!0))},[]),t},w="rovingFocusGroup.onEntryFocus",_={bubbles:!1,cancelable:!0},E="RovingFocusGroup",[k,M,j]=function(t){let e=t+"CollectionProvider",[n,o]=(0,a.b)(e),[i,l]=n(e,{collectionRef:{current:null},itemMap:new Map}),f=t=>{let{scope:e,children:n}=t,o=r.useRef(null),a=r.useRef(new Map).current;return(0,c.jsx)(i,{scope:e,itemMap:a,collectionRef:o,children:n})};f.displayName=e;let d=t+"CollectionSlot",h=(0,s.Z8)(d),p=r.forwardRef((t,e)=>{let{scope:n,children:r}=t,o=l(d,n),i=(0,u.e)(e,o.collectionRef);return(0,c.jsx)(h,{ref:i,children:r})});p.displayName=d;let v=t+"CollectionItemSlot",y="data-radix-collection-item",g=(0,s.Z8)(v),m=r.forwardRef((t,e)=>{let{scope:n,children:o,...i}=t,a=r.useRef(null),s=(0,u.e)(e,a),f=l(v,n);return r.useEffect(()=>(f.itemMap.set(a,{ref:a,...i}),()=>void f.itemMap.delete(a))),(0,c.jsx)(g,{[y]:"",ref:s,children:o})});return m.displayName=v,[{Provider:f,Slot:p,ItemSlot:m},function(e){let n=l(t+"CollectionConsumer",e);return r.useCallback(()=>{let t=n.collectionRef.current;if(!t)return[];let e=Array.from(t.querySelectorAll("[".concat(y,"]")));return Array.from(n.itemMap.values()).sort((t,n)=>e.indexOf(t.ref.current)-e.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},o]}(E),[N,S]=(0,a.b)(E,[j]),[O,R]=N(E),C=r.forwardRef((t,e)=>(0,c.jsx)(k.Provider,{scope:t.__scopeRovingFocusGroup,children:(0,c.jsx)(k.Slot,{scope:t.__scopeRovingFocusGroup,children:(0,c.jsx)(I,{...t,ref:e})})}));C.displayName=E;var I=r.forwardRef((t,e)=>{let{__scopeRovingFocusGroup:n,orientation:o,loop:a=!1,dir:s,currentTabStopId:l,defaultCurrentTabStopId:p,onCurrentTabStopIdChange:y,onEntryFocus:g,preventScrollOnEntryFocus:m=!1,...b}=t,x=r.useRef(null),k=(0,u.e)(e,x),j=v(s),[N,S]=(0,h.T)({prop:l,defaultProp:null!=p?p:null,onChange:y,caller:E}),[R,C]=r.useState(!1),I=(0,d.W)(g),T=M(n),A=r.useRef(!1),[z,L]=r.useState(0);return r.useEffect(()=>{let t=x.current;if(t)return t.addEventListener(w,I),()=>t.removeEventListener(w,I)},[I]),(0,c.jsx)(O,{scope:n,orientation:o,dir:j,loop:a,currentTabStopId:N,onItemFocus:r.useCallback(t=>S(t),[S]),onItemShiftTab:r.useCallback(()=>C(!0),[]),onFocusableItemAdd:r.useCallback(()=>L(t=>t+1),[]),onFocusableItemRemove:r.useCallback(()=>L(t=>t-1),[]),children:(0,c.jsx)(f.WV.div,{tabIndex:R||0===z?-1:0,"data-orientation":o,...b,ref:k,style:{outline:"none",...t.style},onMouseDown:(0,i.Mj)(t.onMouseDown,()=>{A.current=!0}),onFocus:(0,i.Mj)(t.onFocus,t=>{let e=!A.current;if(t.target===t.currentTarget&&e&&!R){let e=new CustomEvent(w,_);if(t.currentTarget.dispatchEvent(e),!e.defaultPrevented){let t=T().filter(t=>t.focusable);P([t.find(t=>t.active),t.find(t=>t.id===N),...t].filter(Boolean).map(t=>t.ref.current),m)}}A.current=!1}),onBlur:(0,i.Mj)(t.onBlur,()=>C(!1))})})}),T="RovingFocusGroupItem",A=r.forwardRef((t,e)=>{let{__scopeRovingFocusGroup:n,focusable:o=!0,active:a=!1,tabStopId:u,children:s,...d}=t,h=(0,l.M)(),p=u||h,v=R(T,n),g=v.currentTabStopId===p,m=M(n),{onFocusableItemAdd:b,onFocusableItemRemove:w,currentTabStopId:_}=v,E=x();return(0,y.b)(()=>{if(E&&o)return b(),()=>w()},[E,o,b,w]),r.useEffect(()=>{if(!E&&o)return b(),()=>w()},[E,o,b,w]),(0,c.jsx)(k.ItemSlot,{scope:n,id:p,focusable:o,active:a,children:(0,c.jsx)(f.WV.span,{tabIndex:g?0:-1,"data-orientation":v.orientation,...d,ref:e,onMouseDown:(0,i.Mj)(t.onMouseDown,t=>{o?v.onItemFocus(p):t.preventDefault()}),onFocus:(0,i.Mj)(t.onFocus,()=>v.onItemFocus(p)),onKeyDown:(0,i.Mj)(t.onKeyDown,t=>{if("Tab"===t.key&&t.shiftKey){v.onItemShiftTab();return}if(t.target!==t.currentTarget)return;let e=function(t,e,n){var r;let o=(r=t.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===e&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===e&&["ArrowUp","ArrowDown"].includes(o)))return z[o]}(t,v.orientation,v.dir);if(void 0!==e){if(t.metaKey||t.ctrlKey||t.altKey||t.shiftKey)return;t.preventDefault();let o=m().filter(t=>t.focusable).map(t=>t.ref.current);if("last"===e)o.reverse();else if("prev"===e||"next"===e){var n,r;"prev"===e&&o.reverse();let i=o.indexOf(t.currentTarget);o=v.loop?(n=o,r=i+1,n.map((t,e)=>n[(r+e)%n.length])):o.slice(i+1)}setTimeout(()=>P(o))}}),children:"function"==typeof s?s({isCurrentTabStop:g,hasTabStop:null!=_}):s})})});A.displayName=T;var z={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function P(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of t)if(r===n||(r.focus({preventScroll:e}),document.activeElement!==n))return}var L=n(65622),D="Tabs",[$,F]=(0,a.b)(D,[S]),V=S(),[B,Z]=$(D),W=r.forwardRef((t,e)=>{let{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",dir:u,activationMode:s="automatic",...d}=t,p=v(u),[y,g]=(0,h.T)({prop:r,onChange:o,defaultProp:null!=i?i:"",caller:D});return(0,c.jsx)(B,{scope:n,baseId:(0,l.M)(),value:y,onValueChange:g,orientation:a,dir:p,activationMode:s,children:(0,c.jsx)(f.WV.div,{dir:p,"data-orientation":a,...d,ref:e})})});W.displayName=D;var q="TabsList",H=r.forwardRef((t,e)=>{let{__scopeTabs:n,loop:r=!0,...o}=t,i=Z(q,n),a=V(n);return(0,c.jsx)(C,{asChild:!0,...a,orientation:i.orientation,dir:i.dir,loop:r,children:(0,c.jsx)(f.WV.div,{role:"tablist","aria-orientation":i.orientation,...o,ref:e})})});H.displayName=q;var U="TabsTrigger",Y=r.forwardRef((t,e)=>{let{__scopeTabs:n,value:r,disabled:o=!1,...a}=t,u=Z(U,n),s=V(n),l=X(u.baseId,r),d=K(u.baseId,r),h=r===u.value;return(0,c.jsx)(A,{asChild:!0,...s,focusable:!o,active:h,children:(0,c.jsx)(f.WV.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":d,"data-state":h?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l,...a,ref:e,onMouseDown:(0,i.Mj)(t.onMouseDown,t=>{o||0!==t.button||!1!==t.ctrlKey?t.preventDefault():u.onValueChange(r)}),onKeyDown:(0,i.Mj)(t.onKeyDown,t=>{!o&&t.target===t.currentTarget&&[" ","Enter"].includes(t.key)&&u.onValueChange(r)}),onFocus:(0,i.Mj)(t.onFocus,()=>{let t="manual"!==u.activationMode;h||o||!t||u.onValueChange(r)})})})});Y.displayName=U;var Q="TabsContent",G=r.forwardRef((t,e)=>{let{__scopeTabs:n,value:o,forceMount:i,children:a,...u}=t,s=Z(Q,n),l=X(s.baseId,o),d=K(s.baseId,o),h=o===s.value,p=r.useRef(h);return r.useEffect(()=>{let t=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(t)},[]),(0,c.jsx)(L.z,{present:i||h,children:n=>{let{present:r}=n;return(0,c.jsx)(f.WV.div,{"data-state":h?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!r,id:d,tabIndex:0,...u,ref:e,style:{...t.style,animationDuration:p.current?"0s":void 0},children:r&&a})}})});function X(t,e){return"".concat(t,"-trigger-").concat(e)}function K(t,e){return"".concat(t,"-content-").concat(e)}G.displayName=Q;var J=W,tt=H,te=Y,tn=G},523:function(t,e,n){"use strict";n.d(e,{W:function(){return o}});var r=n(7653);function o(t){let e=r.useRef(t);return r.useEffect(()=>{e.current=t}),r.useMemo(()=>(...t)=>e.current?.(...t),[])}},47178:function(t,e,n){"use strict";n.d(e,{T:function(){return u}});var r,o=n(7653),i=n(81523),a=(r||(r=n.t(o,2)))[" useInsertionEffect ".trim().toString()]||i.b;function u({prop:t,defaultProp:e,onChange:n=()=>{},caller:r}){let[i,u,s]=function({defaultProp:t,onChange:e}){let[n,r]=o.useState(t),i=o.useRef(n),u=o.useRef(e);return a(()=>{u.current=e},[e]),o.useEffect(()=>{i.current!==n&&(u.current?.(n),i.current=n)},[n,i]),[n,r,u]}({defaultProp:e,onChange:n}),c=void 0!==t,l=c?t:i;{let e=o.useRef(void 0!==t);o.useEffect(()=>{let t=e.current;if(t!==c){let e=c?"controlled":"uncontrolled";console.warn(`${r} is changing from ${t?"controlled":"uncontrolled"} to ${e}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}e.current=c},[c,r])}return[l,o.useCallback(e=>{if(c){let n="function"==typeof e?e(t):e;n!==t&&s.current?.(n)}else u(e)},[c,t,u,s])]}Symbol("RADIX:SYNC_STATE")},81523:function(t,e,n){"use strict";n.d(e,{b:function(){return o}});var r=n(7653),o=globalThis?.document?r.useLayoutEffect:()=>{}},15969:function(t,e,n){"use strict";n.d(e,{D:function(){return l}});var r=n(7653),o=n(64855),i=n(2906),a=n(24559),u=n(50803),s=class extends a.l{#t;#e=void 0;#n;#r;constructor(t,e){super(),this.#t=t,this.setOptions(e),this.bindMethods(),this.#o()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){let e=this.options;this.options=this.#t.defaultMutationOptions(t),(0,u.VS)(this.options,e)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),e?.mutationKey&&this.options.mutationKey&&(0,u.Ym)(e.mutationKey)!==(0,u.Ym)(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#o(),this.#i(t)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#o(),this.#i()}mutate(t,e){return this.#r=e,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(t)}#o(){let t=this.#n?.state??(0,o.R)();this.#e={...t,isPending:"pending"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset}}#i(t){i.Vr.batch(()=>{if(this.#r&&this.hasListeners()){let e=this.#e.variables,n=this.#e.context,r={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#r.onSuccess?.(t.data,e,n,r)}catch(t){Promise.reject(t)}try{this.#r.onSettled?.(t.data,null,e,n,r)}catch(t){Promise.reject(t)}}else if(t?.type==="error"){try{this.#r.onError?.(t.error,e,n,r)}catch(t){Promise.reject(t)}try{this.#r.onSettled?.(void 0,t.error,e,n,r)}catch(t){Promise.reject(t)}}}this.listeners.forEach(t=>{t(this.#e)})})}},c=n(77930);function l(t,e){let n=(0,c.NL)(e),[o]=r.useState(()=>new s(n,t));r.useEffect(()=>{o.setOptions(t)},[o,t]);let a=r.useSyncExternalStore(r.useCallback(t=>o.subscribe(i.Vr.batchCalls(t)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),l=r.useCallback((t,e)=>{o.mutate(t,e).catch(u.ZT)},[o]);if(a.error&&(0,u.L3)(o.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:l,mutateAsync:a.mutate}}},31988:function(t,e,n){"use strict";let r;n.d(e,{a:function(){return R}});var o=n(87047),i=n(78617),a=n(2906),u=n(99617),s=n(24559),c=n(49808),l=n(50803),f=n(40928),d=class extends s.l{constructor(t,e){super(),this.options=e,this.#t=t,this.#a=null,this.#u=(0,c.O)(),this.bindMethods(),this.setOptions(e)}#t;#s=void 0;#c=void 0;#e=void 0;#l;#f;#u;#a;#d;#h;#p;#v;#y;#g;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#s.addObserver(this),h(this.#s,this.options)?this.#b():this.updateResult(),this.#x())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return p(this.#s,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return p(this.#s,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#w(),this.#_(),this.#s.removeObserver(this)}setOptions(t){let e=this.options,n=this.#s;if(this.options=this.#t.defaultQueryOptions(t),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,l.TD)(this.options.enabled,this.#s))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#E(),this.#s.setOptions(this.options),e._defaulted&&!(0,l.VS)(this.options,e)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#s,observer:this});let r=this.hasListeners();r&&v(this.#s,n,this.options,e)&&this.#b(),this.updateResult(),r&&(this.#s!==n||(0,l.TD)(this.options.enabled,this.#s)!==(0,l.TD)(e.enabled,this.#s)||(0,l.KC)(this.options.staleTime,this.#s)!==(0,l.KC)(e.staleTime,this.#s))&&this.#k();let o=this.#M();r&&(this.#s!==n||(0,l.TD)(this.options.enabled,this.#s)!==(0,l.TD)(e.enabled,this.#s)||o!==this.#g)&&this.#j(o)}getOptimisticResult(t){let e=this.#t.getQueryCache().build(this.#t,t),n=this.createResult(e,t);return(0,l.VS)(this.getCurrentResult(),n)||(this.#e=n,this.#f=this.options,this.#l=this.#s.state),n}getCurrentResult(){return this.#e}trackResult(t,e){return new Proxy(t,{get:(t,n)=>(this.trackProp(n),e?.(n),"promise"!==n||(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#u.status||this.#u.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(t,n))})}trackProp(t){this.#m.add(t)}getCurrentQuery(){return this.#s}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){let e=this.#t.defaultQueryOptions(t),n=this.#t.getQueryCache().build(this.#t,e);return n.fetch().then(()=>this.createResult(n,e))}fetch(t){return this.#b({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#e))}#b(t){this.#E();let e=this.#s.fetch(this.options,t);return t?.throwOnError||(e=e.catch(l.ZT)),e}#k(){this.#w();let t=(0,l.KC)(this.options.staleTime,this.#s);if(i.m.isServer()||this.#e.isStale||!(0,l.PN)(t))return;let e=(0,l.Kp)(this.#e.dataUpdatedAt,t);this.#v=f.mr.setTimeout(()=>{this.#e.isStale||this.updateResult()},e+1)}#M(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#s):this.options.refetchInterval)??!1}#j(t){this.#_(),this.#g=t,!i.m.isServer()&&!1!==(0,l.TD)(this.options.enabled,this.#s)&&(0,l.PN)(this.#g)&&0!==this.#g&&(this.#y=f.mr.setInterval(()=>{(this.options.refetchIntervalInBackground||o.j.isFocused())&&this.#b()},this.#g))}#x(){this.#k(),this.#j(this.#M())}#w(){void 0!==this.#v&&(f.mr.clearTimeout(this.#v),this.#v=void 0)}#_(){void 0!==this.#y&&(f.mr.clearInterval(this.#y),this.#y=void 0)}createResult(t,e){let n;let r=this.#s,o=this.options,i=this.#e,a=this.#l,s=this.#f,f=t!==r?t.state:this.#c,{state:d}=t,p={...d},g=!1;if(e._optimisticResults){let n=this.hasListeners(),i=!n&&h(t,e),a=n&&v(t,r,e,o);(i||a)&&(p={...p,...(0,u.z)(d.data,t.options)}),"isRestoring"===e._optimisticResults&&(p.fetchStatus="idle")}let{error:m,errorUpdatedAt:b,status:x}=p;n=p.data;let w=!1;if(void 0!==e.placeholderData&&void 0===n&&"pending"===x){let t;i?.isPlaceholderData&&e.placeholderData===s?.placeholderData?(t=i.data,w=!0):t="function"==typeof e.placeholderData?e.placeholderData(this.#p?.state.data,this.#p):e.placeholderData,void 0!==t&&(x="success",n=(0,l.oE)(i?.data,t,e),g=!0)}if(e.select&&void 0!==n&&!w){if(i&&n===a?.data&&e.select===this.#d)n=this.#h;else try{this.#d=e.select,n=e.select(n),n=(0,l.oE)(i?.data,n,e),this.#h=n,this.#a=null}catch(t){this.#a=t}}this.#a&&(m=this.#a,n=this.#h,b=Date.now(),x="error");let _="fetching"===p.fetchStatus,E="pending"===x,k="error"===x,M=E&&_,j=void 0!==n,N={status:x,fetchStatus:p.fetchStatus,isPending:E,isSuccess:"success"===x,isError:k,isInitialLoading:M,isLoading:M,data:n,dataUpdatedAt:p.dataUpdatedAt,error:m,errorUpdatedAt:b,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:p.dataUpdateCount>f.dataUpdateCount||p.errorUpdateCount>f.errorUpdateCount,isFetching:_,isRefetching:_&&!E,isLoadingError:k&&!j,isPaused:"paused"===p.fetchStatus,isPlaceholderData:g,isRefetchError:k&&j,isStale:y(t,e),refetch:this.refetch,promise:this.#u,isEnabled:!1!==(0,l.TD)(e.enabled,t)};if(this.options.experimental_prefetchInRender){let e=void 0!==N.data,n="error"===N.status&&!e,o=t=>{n?t.reject(N.error):e&&t.resolve(N.data)},i=()=>{o(this.#u=N.promise=(0,c.O)())},a=this.#u;switch(a.status){case"pending":t.queryHash===r.queryHash&&o(a);break;case"fulfilled":(n||N.data!==a.value)&&i();break;case"rejected":n&&N.error===a.reason||i()}}return N}updateResult(){let t=this.#e,e=this.createResult(this.#s,this.options);this.#l=this.#s.state,this.#f=this.options,void 0!==this.#l.data&&(this.#p=this.#s),(0,l.VS)(e,t)||(this.#e=e,this.#i({listeners:(()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add("error"),Object.keys(this.#e).some(e=>this.#e[e]!==t[e]&&r.has(e))})()}))}#E(){let t=this.#t.getQueryCache().build(this.#t,this.options);if(t===this.#s)return;let e=this.#s;this.#s=t,this.#c=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#x()}#i(t){a.Vr.batch(()=>{t.listeners&&this.listeners.forEach(t=>{t(this.#e)}),this.#t.getQueryCache().notify({query:this.#s,type:"observerResultsUpdated"})})}};function h(t,e){return!1!==(0,l.TD)(e.enabled,t)&&void 0===t.state.data&&!("error"===t.state.status&&!1===(0,l.TD)(e.retryOnMount,t))||void 0!==t.state.data&&p(t,e,e.refetchOnMount)}function p(t,e,n){if(!1!==(0,l.TD)(e.enabled,t)&&"static"!==(0,l.KC)(e.staleTime,t)){let r="function"==typeof n?n(t):n;return"always"===r||!1!==r&&y(t,e)}return!1}function v(t,e,n,r){return(t!==e||!1===(0,l.TD)(r.enabled,t))&&(!n.suspense||"error"!==t.state.status)&&y(t,n)}function y(t,e){return!1!==(0,l.TD)(e.enabled,t)&&t.isStaleByTime((0,l.KC)(e.staleTime,t))}var g=n(7653),m=n(77930);n(27573);var b=g.createContext((r=!1,{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r})),x=()=>g.useContext(b),w=(t,e,n)=>{let r=(null==n?void 0:n.state.error)&&"function"==typeof t.throwOnError?(0,l.L3)(t.throwOnError,[n.state.error,n]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||r)&&!e.isReset()&&(t.retryOnMount=!1)},_=t=>{g.useEffect(()=>{t.clearReset()},[t])},E=t=>{let{result:e,errorResetBoundary:n,throwOnError:r,query:o,suspense:i}=t;return e.isError&&!n.isReset()&&!e.isFetching&&o&&(i&&void 0===e.data||(0,l.L3)(r,[e.error,o]))},k=g.createContext(!1),M=()=>g.useContext(k);k.Provider;var j=t=>{if(t.suspense){let e=t=>"static"===t?t:Math.max(t??1e3,1e3),n=t.staleTime;t.staleTime="function"==typeof n?(...t)=>e(n(...t)):e(n),"number"==typeof t.gcTime&&(t.gcTime=Math.max(t.gcTime,1e3))}},N=(t,e)=>t.isLoading&&t.isFetching&&!e,S=(t,e)=>t?.suspense&&e.isPending,O=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});function R(t,e){return function(t,e,n){var r,o,u,s;let c=M(),f=x(),d=(0,m.NL)(n),h=d.defaultQueryOptions(t);null===(o=d.getDefaultOptions().queries)||void 0===o||null===(r=o._experimental_beforeQuery)||void 0===r||r.call(o,h);let p=d.getQueryCache().get(h.queryHash),v=!1!==t.subscribed;h._optimisticResults=c?"isRestoring":v?"optimistic":void 0,j(h),w(h,f,p),_(f);let y=!d.getQueryCache().get(h.queryHash),[b]=g.useState(()=>new e(d,h)),k=b.getOptimisticResult(h),R=!c&&v;if(g.useSyncExternalStore(g.useCallback(t=>{let e=R?b.subscribe(a.Vr.batchCalls(t)):l.ZT;return b.updateResult(),e},[b,R]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),g.useEffect(()=>{b.setOptions(h)},[h,b]),S(h,k))throw O(h,b,f);if(E({result:k,errorResetBoundary:f,throwOnError:h.throwOnError,query:p,suspense:h.suspense}))throw k.error;if(null===(s=d.getDefaultOptions().queries)||void 0===s||null===(u=s._experimental_afterQuery)||void 0===u||u.call(s,h,k),h.experimental_prefetchInRender&&!i.m.isServer()&&N(k,c)){let t=y?O(h,b,f):null==p?void 0:p.promise;null==t||t.catch(l.ZT).finally(()=>{b.updateResult()})}return h.notifyOnChangeProps?k:b.trackResult(k)}(t,d,e)}},49289:function(t,e,n){"use strict";n.d(e,{j:function(){return a}});var r=n(10607);let o=t=>"boolean"==typeof t?`${t}`:0===t?"0":t,i=r.W,a=(t,e)=>n=>{var r;if((null==e?void 0:e.variants)==null)return i(t,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:a,defaultVariants:u}=e,s=Object.keys(a).map(t=>{let e=null==n?void 0:n[t],r=null==u?void 0:u[t];if(null===e)return null;let i=o(e)||o(r);return a[t][i]}),c=n&&Object.entries(n).reduce((t,e)=>{let[n,r]=e;return void 0===r||(t[n]=r),t},{});return i(t,s,null==e?void 0:null===(r=e.compoundVariants)||void 0===r?void 0:r.reduce((t,e)=>{let{class:n,className:r,...o}=e;return Object.entries(o).every(t=>{let[e,n]=t;return Array.isArray(n)?n.includes({...u,...c}[e]):({...u,...c})[e]===n})?[...t,n,r]:t},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},32717:function(t,e,n){"use strict";n.d(e,{Z:function(){return function t(e){if("string"==typeof e||"number"==typeof e)return""+e;let n="";if(Array.isArray(e))for(let r=0,o;r<e.length;r++)""!==(o=t(e[r]))&&(n+=(n&&" ")+o);else for(let t in e)e[t]&&(n+=(n&&" ")+t);return n}}})},10607:function(t,e,n){"use strict";function r(){for(var t,e,n=0,r="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=function t(e){var n,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e){if(Array.isArray(e)){var i=e.length;for(n=0;n<i;n++)e[n]&&(r=t(e[n]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r)}return o}(t))&&(r&&(r+=" "),r+=e);return r}n.d(e,{W:function(){return r}})},25579:function(t,e,n){"use strict";n.d(e,{m6:function(){return Q}});let r=t=>{let e=u(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:t=>{let n=t.split("-");return""===n[0]&&1!==n.length&&n.shift(),o(n,e)||a(t)},getConflictingClassGroupIds:(t,e)=>{let o=n[t]||[];return e&&r[t]?[...o,...r[t]]:o}}},o=(t,e)=>{if(0===t.length)return e.classGroupId;let n=t[0],r=e.nextPart.get(n),i=r?o(t.slice(1),r):void 0;if(i)return i;if(0===e.validators.length)return;let a=t.join("-");return e.validators.find(({validator:t})=>t(a))?.classGroupId},i=/^\[(.+)\]$/,a=t=>{if(i.test(t)){let e=i.exec(t)[1],n=e?.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}},u=t=>{let{theme:e,prefix:n}=t,r={nextPart:new Map,validators:[]};return f(Object.entries(t.classGroups),n).forEach(([t,n])=>{s(n,r,t,e)}),r},s=(t,e,n,r)=>{t.forEach(t=>{if("string"==typeof t){(""===t?e:c(e,t)).classGroupId=n;return}if("function"==typeof t){if(l(t)){s(t(r),e,n,r);return}e.validators.push({validator:t,classGroupId:n});return}Object.entries(t).forEach(([t,o])=>{s(o,c(e,t),n,r)})})},c=(t,e)=>{let n=t;return e.split("-").forEach(t=>{n.nextPart.has(t)||n.nextPart.set(t,{nextPart:new Map,validators:[]}),n=n.nextPart.get(t)}),n},l=t=>t.isThemeGetter,f=(t,e)=>e?t.map(([t,n])=>[t,n.map(t=>"string"==typeof t?e+t:"object"==typeof t?Object.fromEntries(Object.entries(t).map(([t,n])=>[e+t,n])):t)]):t,d=t=>{if(t<1)return{get:()=>void 0,set:()=>{}};let e=0,n=new Map,r=new Map,o=(o,i)=>{n.set(o,i),++e>t&&(e=0,r=n,n=new Map)};return{get(t){let e=n.get(t);return void 0!==e?e:void 0!==(e=r.get(t))?(o(t,e),e):void 0},set(t,e){n.has(t)?n.set(t,e):o(t,e)}}},h=t=>{let{separator:e,experimentalParseClassName:n}=t,r=1===e.length,o=e[0],i=e.length,a=t=>{let n;let a=[],u=0,s=0;for(let c=0;c<t.length;c++){let l=t[c];if(0===u){if(l===o&&(r||t.slice(c,c+i)===e)){a.push(t.slice(s,c)),s=c+i;continue}if("/"===l){n=c;continue}}"["===l?u++:"]"===l&&u--}let c=0===a.length?t:t.substring(s),l=c.startsWith("!"),f=l?c.substring(1):c;return{modifiers:a,hasImportantModifier:l,baseClassName:f,maybePostfixModifierPosition:n&&n>s?n-s:void 0}};return n?t=>n({className:t,parseClassName:a}):a},p=t=>{if(t.length<=1)return t;let e=[],n=[];return t.forEach(t=>{"["===t[0]?(e.push(...n.sort(),t),n=[]):n.push(t)}),e.push(...n.sort()),e},v=t=>({cache:d(t.cacheSize),parseClassName:h(t),...r(t)}),y=/\s+/,g=(t,e)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=e,i=[],a=t.trim().split(y),u="";for(let t=a.length-1;t>=0;t-=1){let e=a[t],{modifiers:s,hasImportantModifier:c,baseClassName:l,maybePostfixModifierPosition:f}=n(e),d=!!f,h=r(d?l.substring(0,f):l);if(!h){if(!d||!(h=r(l))){u=e+(u.length>0?" "+u:u);continue}d=!1}let v=p(s).join(":"),y=c?v+"!":v,g=y+h;if(i.includes(g))continue;i.push(g);let m=o(h,d);for(let t=0;t<m.length;++t){let e=m[t];i.push(y+e)}u=e+(u.length>0?" "+u:u)}return u};function m(){let t,e,n=0,r="";for(;n<arguments.length;)(t=arguments[n++])&&(e=b(t))&&(r&&(r+=" "),r+=e);return r}let b=t=>{let e;if("string"==typeof t)return t;let n="";for(let r=0;r<t.length;r++)t[r]&&(e=b(t[r]))&&(n&&(n+=" "),n+=e);return n},x=t=>{let e=e=>e[t]||[];return e.isThemeGetter=!0,e},w=/^\[(?:([a-z-]+):)?(.+)\]$/i,_=/^\d+\/\d+$/,E=new Set(["px","full","screen"]),k=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,M=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,j=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,N=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,S=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,O=t=>C(t)||E.has(t)||_.test(t),R=t=>W(t,"length",q),C=t=>!!t&&!Number.isNaN(Number(t)),I=t=>W(t,"number",C),T=t=>!!t&&Number.isInteger(Number(t)),A=t=>t.endsWith("%")&&C(t.slice(0,-1)),z=t=>w.test(t),P=t=>k.test(t),L=new Set(["length","size","percentage"]),D=t=>W(t,L,H),$=t=>W(t,"position",H),F=new Set(["image","url"]),V=t=>W(t,F,Y),B=t=>W(t,"",U),Z=()=>!0,W=(t,e,n)=>{let r=w.exec(t);return!!r&&(r[1]?"string"==typeof e?r[1]===e:e.has(r[1]):n(r[2]))},q=t=>M.test(t)&&!j.test(t),H=()=>!1,U=t=>N.test(t),Y=t=>S.test(t),Q=function(t,...e){let n,r,o;let i=function(u){return r=(n=v(e.reduce((t,e)=>e(t),t()))).cache.get,o=n.cache.set,i=a,a(u)};function a(t){let e=r(t);if(e)return e;let i=g(t,n);return o(t,i),i}return function(){return i(m.apply(null,arguments))}}(()=>{let t=x("colors"),e=x("spacing"),n=x("blur"),r=x("brightness"),o=x("borderColor"),i=x("borderRadius"),a=x("borderSpacing"),u=x("borderWidth"),s=x("contrast"),c=x("grayscale"),l=x("hueRotate"),f=x("invert"),d=x("gap"),h=x("gradientColorStops"),p=x("gradientColorStopPositions"),v=x("inset"),y=x("margin"),g=x("opacity"),m=x("padding"),b=x("saturate"),w=x("scale"),_=x("sepia"),E=x("skew"),k=x("space"),M=x("translate"),j=()=>["auto","contain","none"],N=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto",z,e],L=()=>[z,e],F=()=>["",O,R],W=()=>["auto",C,z],q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],H=()=>["solid","dashed","dotted","double","none"],U=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>["start","end","center","between","around","evenly","stretch"],Q=()=>["","0",z],G=()=>["auto","avoid","all","avoid-page","page","left","right","column"],X=()=>[C,z];return{cacheSize:500,separator:":",theme:{colors:[Z],spacing:[O,R],blur:["none","",P,z],brightness:X(),borderColor:[t],borderRadius:["none","","full",P,z],borderSpacing:L(),borderWidth:F(),contrast:X(),grayscale:Q(),hueRotate:X(),invert:Q(),gap:L(),gradientColorStops:[t],gradientColorStopPositions:[A,R],inset:S(),margin:S(),opacity:X(),padding:L(),saturate:X(),scale:X(),sepia:Q(),skew:X(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",z]}],container:["container"],columns:[{columns:[P]}],"break-after":[{"break-after":G()}],"break-before":[{"break-before":G()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...q(),z]}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",T,z]}],basis:[{basis:S()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",z]}],grow:[{grow:Q()}],shrink:[{shrink:Q()}],order:[{order:["first","last","none",T,z]}],"grid-cols":[{"grid-cols":[Z]}],"col-start-end":[{col:["auto",{span:["full",T,z]},z]}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":[Z]}],"row-start-end":[{row:["auto",{span:[T,z]},z]}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",z]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",z]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...Y()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Y(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Y(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[m]}],px:[{px:[m]}],py:[{py:[m]}],ps:[{ps:[m]}],pe:[{pe:[m]}],pt:[{pt:[m]}],pr:[{pr:[m]}],pb:[{pb:[m]}],pl:[{pl:[m]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",z,e]}],"min-w":[{"min-w":[z,e,"min","max","fit"]}],"max-w":[{"max-w":[z,e,"none","full","min","max","fit","prose",{screen:[P]},P]}],h:[{h:[z,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[z,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[z,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[z,e,"auto","min","max","fit"]}],"font-size":[{text:["base",P,R]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",I]}],"font-family":[{font:[Z]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",z]}],"line-clamp":[{"line-clamp":["none",C,I]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",O,z]}],"list-image":[{"list-image":["none",z]}],"list-style-type":[{list:["none","disc","decimal",z]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",O,R]}],"underline-offset":[{"underline-offset":["auto",O,z]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",z]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...q(),$]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",D]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},V]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[u]}],"border-w-x":[{"border-x":[u]}],"border-w-y":[{"border-y":[u]}],"border-w-s":[{"border-s":[u]}],"border-w-e":[{"border-e":[u]}],"border-w-t":[{"border-t":[u]}],"border-w-r":[{"border-r":[u]}],"border-w-b":[{"border-b":[u]}],"border-w-l":[{"border-l":[u]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...H(),"hidden"]}],"divide-x":[{"divide-x":[u]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[u]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:H()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...H()]}],"outline-offset":[{"outline-offset":[O,z]}],"outline-w":[{outline:[O,R]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[O,R]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",P,B]}],"shadow-color":[{shadow:[Z]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...U(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":U()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",P,z]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[l]}],invert:[{invert:[f]}],saturate:[{saturate:[b]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[l]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",z]}],duration:[{duration:X()}],ease:[{ease:["linear","in","out","in-out",z]}],delay:[{delay:X()}],animate:[{animate:["none","spin","ping","pulse","bounce",z]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[T,z]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",z]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",z]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",z]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[O,R,I]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}})},62052:function(t,e,n){"use strict";n.d(e,{Ue:function(){return f}});var r=n(19730),o=n(7653),i=n(18678);let{useDebugValue:a}=o,{useSyncExternalStoreWithSelector:u}=i,s=!1,c=t=>t,l=t=>{"function"!=typeof t&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let e="function"==typeof t?(0,r.M)(t):t,n=(t,n)=>(function(t,e=c,n){n&&!s&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),s=!0);let r=u(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,n);return a(r),r})(e,t,n);return Object.assign(n,e),n},f=t=>t?l(t):l},30526:function(t,e,n){"use strict";function r(t,e){if(Object.is(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(let[n,r]of t)if(!Object.is(r,e.get(n)))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}let n=Object.keys(t);if(n.length!==Object.keys(e).length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(e,r)||!Object.is(t[r],e[r]))return!1;return!0}n.d(e,{X:function(){return r}})},90383:function(t,e,n){"use strict";n.d(e,{F:function(){return f},s:function(){return c}});var r=n(7653),o=n(18678),i=n(19730);let{useDebugValue:a}=r,{useSyncExternalStoreWithSelector:u}=o,s=t=>t;function c(t,e=s,n){let r=u(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,n);return a(r),r}let l=(t,e)=>{let n=(0,i.M)(t),r=(t,r=e)=>c(n,t,r);return Object.assign(r,n),r},f=(t,e)=>t?l(t,e):l},19730:function(t,e,n){"use strict";n.d(e,{M:function(){return o}});let r=t=>{let e;let n=new Set,r=(t,r)=>{let o="function"==typeof t?t(e):t;if(!Object.is(o,e)){let t=e;e=(null!=r?r:"object"!=typeof o||null===o)?o:Object.assign({},e,o),n.forEach(n=>n(e,t))}},o=()=>e,i={setState:r,getState:o,getInitialState:()=>a,subscribe:t=>(n.add(t),()=>n.delete(t)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},a=e=t(r,o,i);return i},o=t=>t?r(t):r}}]);