diff --git a/docs/128.js b/docs/800.js similarity index 68% rename from docs/128.js rename to docs/800.js index 6fb72cf..f76dc00 100644 --- a/docs/128.js +++ b/docs/800.js @@ -1,4 +1,4 @@ -(self.webpackChunkvisualization_collection=self.webpackChunkvisualization_collection||[]).push([[128],{20439:(t,e,n)=>{"use strict";n.d(e,{z1:()=>_,cM:()=>y,uy:()=>b});var r=n(62456),i=n(76250),o=2,a=.16,s=.05,u=.05,l=.15,c=5,h=4,d=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function f(t){var e=t.r,n=t.g,i=t.b,o=(0,r.wE)(e,n,i);return{h:360*o.h,s:o.s,v:o.v}}function p(t){var e=t.r,n=t.g,i=t.b;return"#".concat((0,r.Ob)(e,n,i,!1))}function m(t,e,n){var r;return(r=Math.round(t.h)>=60&&Math.round(t.h)<=240?n?Math.round(t.h)-o*e:Math.round(t.h)+o*e:n?Math.round(t.h)+o*e:Math.round(t.h)-o*e)<0?r+=360:r>=360&&(r-=360),r}function g(t,e,n){return 0===t.h&&0===t.s?t.s:((r=n?t.s-a*e:e===h?t.s+a:t.s+s*e)>1&&(r=1),n&&e===c&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function v(t,e,n){var r;return(r=n?t.v+u*e:t.v-l*e)>1&&(r=1),Number(r.toFixed(2))}function y(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,i.RO)(t),o=c;o>0;o-=1){var a=f(r),s=p((0,i.RO)({h:m(a,o,!0),s:g(a,o,!0),v:v(a,o,!0)}));n.push(s)}n.push(p(r));for(var u=1;u<=h;u+=1){var l=f(r),y=p((0,i.RO)({h:m(l,u),s:g(l,u),v:v(l,u)}));n.push(y)}return"dark"===e.theme?d.map((function(t){var r,o,a,s=t.index,u=t.opacity;return p((r=(0,i.RO)(e.backgroundColor||"#141414"),o=(0,i.RO)(n[s]),a=100*u/100,{r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b}))})):n}var b={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},x={},w={};Object.keys(b).forEach((function(t){x[t]=y(b[t]),x[t].primary=x[t][5],w[t]=y(b[t],{theme:"dark",backgroundColor:"#141414"}),w[t].primary=w[t][5]}));x.red,x.volcano,x.gold,x.orange,x.yellow,x.lime,x.green,x.cyan;var _=x.blue;x.geekblue,x.purple,x.magenta,x.grey,x.grey},64552:(t,e,n)=>{"use strict";n.d(e,{Mo:()=>se,an:()=>k,Ki:()=>F,zA:()=>D,RC:()=>oe,hV:()=>tt,IV:()=>re});var r=n(64467),i=n(5544),o=n(60436),a=n(89379);const s=function(t){for(var e,n=0,r=0,i=t.length;i>=4;++r,i-=4)e=1540483477*(65535&(e=255&t.charCodeAt(r)|(255&t.charCodeAt(++r))<<8|(255&t.charCodeAt(++r))<<16|(255&t.charCodeAt(++r))<<24))+(59797*(e>>>16)<<16),n=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&t.charCodeAt(r+2))<<16;case 2:n^=(255&t.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&t.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};var u=n(85089),l=n(96540),c=n.t(l,2),h=(n(28104),n(43210),n(23029)),d=n(92901),f="%";function p(t){return t.join(f)}const m=function(){function t(e){(0,h.A)(this,t),(0,r.A)(this,"instanceId",void 0),(0,r.A)(this,"cache",new Map),this.instanceId=e}return(0,d.A)(t,[{key:"get",value:function(t){return this.opGet(p(t))}},{key:"opGet",value:function(t){return this.cache.get(t)||null}},{key:"update",value:function(t,e){return this.opUpdate(p(t),e)}},{key:"opUpdate",value:function(t,e){var n=e(this.cache.get(t));null===n?this.cache.delete(t):this.cache.set(t,n)}}]),t}();var g="data-token-hash",v="data-css-hash",y="__cssinjs_instance__";function b(){var t=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var e=document.body.querySelectorAll("style[".concat(v,"]"))||[],n=document.head.firstChild;Array.from(e).forEach((function(e){e[y]=e[y]||t,e[y]===t&&document.head.insertBefore(e,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(v,"]"))).forEach((function(e){var n,i=e.getAttribute(v);r[i]?e[y]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e)):r[i]=!0}))}return new m(t)}var x=l.createContext({hashPriority:"low",cache:b(),defaultCache:!0});const w=x;var _=n(82284),S=n(20998);var E=function(){function t(){(0,h.A)(this,t),(0,r.A)(this,"cache",void 0),(0,r.A)(this,"keys",void 0),(0,r.A)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,d.A)(t,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i={map:this.cache};return t.forEach((function(t){var e;i?i=null===(e=i)||void 0===e||null===(e=e.map)||void 0===e?void 0:e.get(t):i=void 0})),null!==(e=i)&&void 0!==e&&e.value&&r&&(i.value[1]=this.cacheCallTimes++),null===(n=i)||void 0===n?void 0:n.value}},{key:"get",value:function(t){var e;return null===(e=this.internalGet(t,!0))||void 0===e?void 0:e[0]}},{key:"has",value:function(t){return!!this.internalGet(t)}},{key:"set",value:function(e,n){var r=this;if(!this.has(e)){if(this.size()+1>t.MAX_CACHE_SIZE+t.MAX_CACHE_OFFSET){var o=this.keys.reduce((function(t,e){var n=(0,i.A)(t,2)[1];return r.internalGet(e)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),M+=1}return(0,d.A)(t,[{key:"getDerivativeToken",value:function(t){return this.derivatives.reduce((function(e,n){return n(t,e)}),void 0)}}]),t}(),T=new E;function k(t){var e=Array.isArray(t)?t:[t];return T.has(e)||T.set(e,new C(e)),T.get(e)}var I=new WeakMap,N={};var P=new WeakMap;function O(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=P.get(t)||"";return n||(Object.keys(t).forEach((function(r){var i=t[r];n+=r,i instanceof C?n+=i.id:i&&"object"===(0,_.A)(i)?n+=O(i,e):n+=i})),e&&(n=s(n)),P.set(t,n)),n}function L(t,e){return s("".concat(e,"_").concat(O(t,!0)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var R=(0,S.A)();function D(t){return"number"==typeof t?"".concat(t,"px"):t}function z(t,e,n){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return t;var s=(0,a.A)((0,a.A)({},o),{},(i={},(0,r.A)(i,g,e),(0,r.A)(i,v,n),i)),u=Object.keys(s).map((function(t){var e=s[t];return e?"".concat(t,'="').concat(e,'"'):null})).filter((function(t){return t})).join(" ");return"")}var F=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(e?"".concat(e,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},B=function(t,e,n){return Object.keys(t).length?".".concat(e).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(t).map((function(t){var e=(0,i.A)(t,2),n=e[0],r=e[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},U=function(t,e,n){var r={},o={};return Object.entries(t).forEach((function(t){var e,a,s=(0,i.A)(t,2),u=s[0],l=s[1];if(null!=n&&null!==(e=n.preserve)&&void 0!==e&&e[u])o[u]=l;else if(!("string"!=typeof l&&"number"!=typeof l||null!=n&&null!==(a=n.ignore)&&void 0!==a&&a[u])){var c,h=F(u,null==n?void 0:n.prefix);r[h]="number"!=typeof l||null!=n&&null!==(c=n.unitless)&&void 0!==c&&c[u]?String(l):"".concat(l,"px"),o[u]="var(".concat(h,")")}})),[o,B(r,e,{scope:null==n?void 0:n.scope})]},j=n(30981),V=(0,a.A)({},c).useInsertionEffect;const H=V?function(t,e,n){return V((function(){return t(),e()}),n)}:function(t,e,n){l.useMemo(t,n),(0,j.A)((function(){return e(!0)}),n)};const G=void 0!==(0,a.A)({},c).useInsertionEffect?function(t){var e=[],n=!1;return l.useEffect((function(){return n=!1,function(){n=!0,e.length&&e.forEach((function(t){return t()}))}}),t),function(t){n||e.push(t)}}:function(){return function(t){t()}};const W=function(){return!1};function X(t,e,n,r,a){var s=l.useContext(w).cache,u=p([t].concat((0,o.A)(e))),c=G([u]),h=(W(),function(t){s.opUpdate(u,(function(e){var r=e||[void 0,void 0],o=(0,i.A)(r,2),a=o[0];var s=[void 0===a?0:a,o[1]||n()];return t?t(s):s}))});l.useMemo((function(){h()}),[u]);var d=s.opGet(u)[1];return H((function(){null==a||a(d)}),(function(t){return h((function(e){var n=(0,i.A)(e,2),r=n[0],o=n[1];return t&&0===r&&(null==a||a(d)),[r+1,o]})),function(){s.opUpdate(u,(function(e){var n=e||[],o=(0,i.A)(n,2),a=o[0],l=void 0===a?0:a,h=o[1];return 0===l-1?(c((function(){!t&&s.opGet(u)||null==r||r(h,!1)})),null):[l-1,h]}))}}),[u]),d}var Y={},q="css",$=new Map;var K=0;function Z(t,e){$.set(t,($.get(t)||0)-1);var n=Array.from($.keys()),r=n.filter((function(t){return($.get(t)||0)<=0}));n.length-r.length>K&&r.forEach((function(t){!function(t,e){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(g,'="').concat(t,'"]')).forEach((function(t){var n;t[y]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t))}))}(t,e),$.delete(t)}))}var Q=function(t,e,n,r){var i=n.getDerivativeToken(t),o=(0,a.A)((0,a.A)({},i),e);return r&&(o=r(o)),o},J="token";function tt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,l.useContext)(w),c=r.cache.instanceId,h=r.container,d=n.salt,f=void 0===d?"":d,p=n.override,m=void 0===p?Y:p,b=n.formatToken,x=n.getComputedToken,_=n.cssVar,S=function(t,e){for(var n=I,r=0;r0?pt(At,--St):0,wt--,10===Et&&(wt=1,xt--),Et}function Tt(){return Et=St<_t?pt(At,St++):0,wt++,10===Et&&(wt=1,xt++),Et}function kt(){return pt(At,St)}function It(){return St}function Nt(t,e){return mt(At,t,e)}function Pt(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ot(t){return xt=wt=1,_t=gt(At=t),St=0,[]}function Lt(t){return At="",t}function Rt(t){return ht(Nt(St-1,Ft(91===t?t+2:40===t?t+1:t)))}function Dt(t){for(;(Et=kt())&&Et<33;)Tt();return Pt(t)>2||Pt(Et)>3?"":" "}function zt(t,e){for(;--e&&Tt()&&!(Et<48||Et>102||Et>57&&Et<65||Et>70&&Et<97););return Nt(t,It()+(e<6&&32==kt()&&32==Tt()))}function Ft(t){for(;Tt();)switch(Et){case t:return St;case 34:case 39:34!==t&&39!==t&&Ft(Et);break;case 40:41===t&&Ft(t);break;case 92:Tt()}return St}function Bt(t,e){for(;Tt()&&t+Et!==57&&(t+Et!==84||47!==kt()););return"/*"+Nt(e,St-1)+"*"+ct(47===t?t:Tt())}function Ut(t){for(;!Pt(kt());)Tt();return Nt(t,St)}function jt(t){return Lt(Vt("",null,null,null,[""],t=Ot(t),0,[0],t))}function Vt(t,e,n,r,i,o,a,s,u){for(var l=0,c=0,h=a,d=0,f=0,p=0,m=1,g=1,v=1,y=0,b="",x=i,w=o,_=r,S=b;g;)switch(p=y,y=Tt()){case 40:if(108!=p&&58==pt(S,h-1)){-1!=ft(S+=dt(Rt(y),"&","&\f"),"&\f",lt(l?s[l-1]:0))&&(v=-1);break}case 34:case 39:case 91:S+=Rt(y);break;case 9:case 10:case 13:case 32:S+=Dt(p);break;case 92:S+=zt(It()-1,7);continue;case 47:switch(kt()){case 42:case 47:vt(Gt(Bt(Tt(),It()),e,n,u),u);break;default:S+="/"}break;case 123*m:s[l++]=gt(S)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+c:-1==v&&(S=dt(S,/\f/g,"")),f>0&>(S)-h&&vt(f>32?Wt(S+";",r,n,h-1,u):Wt(dt(S," ","")+";",r,n,h-2,u),u);break;case 59:S+=";";default:if(vt(_=Ht(S,e,n,l,c,i,s,b,x=[],w=[],h,o),o),123===y)if(0===c)Vt(S,e,_,_,x,o,h,s,w);else switch(99===d&&110===pt(S,3)?100:d){case 100:case 108:case 109:case 115:Vt(t,_,_,r&&vt(Ht(t,_,_,0,0,i,s,b,i,x=[],h,w),w),i,w,h,s,r?x:w);break;default:Vt(S,_,_,_,[""],w,0,s,w)}}l=c=f=0,m=v=1,b=S="",h=a;break;case 58:h=1+gt(S),f=p;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==Ct())continue;switch(S+=ct(y),y*m){case 38:v=c>0?1:(S+="\f",-1);break;case 44:s[l++]=(gt(S)-1)*v,v=1;break;case 64:45===kt()&&(S+=Rt(Tt())),d=kt(),c=h=gt(b=S+=Ut(It())),y++;break;case 45:45===p&&2==gt(S)&&(m=0)}}return o}function Ht(t,e,n,r,i,o,a,s,u,l,c,h){for(var d=i-1,f=0===i?o:[""],p=function(t){return t.length}(f),m=0,g=0,v=0;m0?f[y]+" "+b:dt(b,/&\f/g,f[y])))&&(u[v++]=x);return Mt(t,e,n,0===i?it:s,u,l,c,h)}function Gt(t,e,n,r){return Mt(t,e,n,rt,ct(Et),mt(t,2,-2),0,r)}function Wt(t,e,n,r,i){return Mt(t,e,n,ot,mt(t,0,r),mt(t,r+1,-1),r,i)}var Xt,Yt="data-ant-cssinjs-cache-path",qt="_FILE_STYLE__";var $t=!0;function Kt(t){return function(){if(!Xt&&(Xt={},(0,S.A)())){var t=document.createElement("div");t.className=Yt,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);var e=getComputedStyle(t).content||"";(e=e.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(t){var e=t.split(":"),n=(0,i.A)(e,2),r=n[0],o=n[1];Xt[r]=o}));var n,r=document.querySelector("style[".concat(Yt,"]"));r&&($t=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(t)}}(),!!Xt[t]}var Zt="_multi_value_";function Qt(t){return yt(jt(t),bt).replace(/\{%%%\:[^;];}/g,";")}var Jt=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},s=r.root,u=r.injectHash,l=r.parentSelectors,c=n.hashId,h=n.layer,d=(n.path,n.hashPriority),f=n.transformers,p=void 0===f?[]:f,m=(n.linters,""),g={};function v(e){var r=e.getName(c);if(!g[r]){var o=t(e.style,n,{root:!1,parentSelectors:l}),a=(0,i.A)(o,1)[0];g[r]="@keyframes ".concat(e.getName(c)).concat(a)}}var y=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.forEach((function(e){Array.isArray(e)?t(e,n):e&&n.push(e)})),n}(Array.isArray(e)?e:[e]);return y.forEach((function(e){var r="string"!=typeof e||s?e:{};if("string"==typeof r)m+="".concat(r,"\n");else if(r._keyframe)v(r);else{var h=p.reduce((function(t,e){var n;return(null==e||null===(n=e.visit)||void 0===n?void 0:n.call(e,t))||t}),r);Object.keys(h).forEach((function(e){var r=h[e];if("object"!==(0,_.A)(r)||!r||"animationName"===e&&r._keyframe||function(t){return"object"===(0,_.A)(t)&&t&&("_skip_check_"in t||Zt in t)}(r)){var f;function M(t,e){var n=t.replace(/[A-Z]/g,(function(t){return"-".concat(t.toLowerCase())})),r=e;nt[t]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===t&&null!=e&&e._keyframe&&(v(e),r=e.getName(c)),m+="".concat(n,":").concat(r,";")}var p=null!==(f=null==r?void 0:r.value)&&void 0!==f?f:r;"object"===(0,_.A)(r)&&null!=r&&r[Zt]&&Array.isArray(p)?p.forEach((function(t){M(e,t)})):M(e,p)}else{var y=!1,b=e.trim(),x=!1;(s||u)&&c?b.startsWith("@")?y=!0:b=function(t,e,n){if(!e)return t;var r=".".concat(e),i="low"===n?":where(".concat(r,")"):r;return t.split(",").map((function(t){var e,n=t.trim().split(/\s+/),r=n[0]||"",a=(null===(e=r.match(/^\w+/))||void 0===e?void 0:e[0])||"";return[r="".concat(a).concat(i).concat(r.slice(a.length))].concat((0,o.A)(n.slice(1))).join(" ")})).join(",")}(e,c,d):!s||c||"&"!==b&&""!==b||(b="",x=!0);var w=t(r,n,{root:x,injectHash:y,parentSelectors:[].concat((0,o.A)(l),[b])}),S=(0,i.A)(w,2),E=S[0],A=S[1];g=(0,a.A)((0,a.A)({},g),A),m+="".concat(b).concat(E)}}))}})),s?h&&(m="@layer ".concat(h.name," {").concat(m,"}"),h.dependencies&&(g["@layer ".concat(h.name)]=h.dependencies.map((function(t){return"@layer ".concat(t,", ").concat(h.name,";")})).join("\n"))):m="{".concat(m,"}"),[m,g]};function te(t,e){return s("".concat(t.join("%")).concat(e))}function ee(){return null}var ne="style";function re(t,e){var n=t.token,s=t.path,c=t.hashId,h=t.layer,d=t.nonce,f=t.clientOnly,p=t.order,m=void 0===p?0:p,b=l.useContext(w),x=b.autoClear,_=(b.mock,b.defaultCache),E=b.hashPriority,A=b.container,M=b.ssrInline,C=b.transformers,T=b.linters,k=b.cache,I=b.layer,N=n._tokenKey,P=[N];I&&P.push("layer"),P.push.apply(P,(0,o.A)(s));var O=R;var L=X(ne,P,(function(){var t=P.join("|");if(Kt(t)){var n=function(t){var e=Xt[t],n=null;if(e&&(0,S.A)())if($t)n=qt;else{var r=document.querySelector("style[".concat(v,'="').concat(Xt[t],'"]'));r?n=r.innerHTML:delete Xt[t]}return[n,e]}(t),r=(0,i.A)(n,2),o=r[0],a=r[1];if(o)return[o,N,a,{},f,m]}var u=e(),l=Jt(u,{hashId:c,hashPriority:E,layer:I?h:void 0,path:s.join("-"),transformers:C,linters:T}),d=(0,i.A)(l,2),p=d[0],g=d[1],y=Qt(p),b=te(P,y);return[y,N,b,g,f,m]}),(function(t,e){var n=(0,i.A)(t,3)[2];(e||x)&&R&&(0,u.m6)(n,{mark:v})}),(function(t){var e=(0,i.A)(t,4),n=e[0],r=(e[1],e[2]),o=e[3];if(O&&n!==qt){var s={mark:v,prepend:!I&&"queue",attachTo:A,priority:m},l="function"==typeof d?d():d;l&&(s.csp={nonce:l});var c=[],h=[];Object.keys(o).forEach((function(t){t.startsWith("@layer")?c.push(t):h.push(t)})),c.forEach((function(t){(0,u.BD)(Qt(o[t]),"_layer-".concat(t),(0,a.A)((0,a.A)({},s),{},{prepend:!0}))}));var f=(0,u.BD)(n,r,s);f[y]=k.instanceId,f.setAttribute(g,N),h.forEach((function(t){(0,u.BD)(Qt(o[t]),"_effect-".concat(t),s)}))}})),D=(0,i.A)(L,3),z=D[0],F=D[1],B=D[2];return function(t){var e,n;M&&!O&&_?e=l.createElement("style",(0,et.A)({},(n={},(0,r.A)(n,g,F),(0,r.A)(n,v,B),n),{dangerouslySetInnerHTML:{__html:z}})):e=l.createElement(ee,null);return l.createElement(l.Fragment,null,e,t)}}var ie="cssVar";const oe=function(t,e){var n=t.key,r=t.prefix,a=t.unitless,s=t.ignore,c=t.token,h=t.scope,d=void 0===h?"":h,f=(0,l.useContext)(w),p=f.cache.instanceId,m=f.container,b=c._tokenKey,x=[].concat((0,o.A)(t.path),[n,d,b]);return X(ie,x,(function(){var t=e(),o=U(t,n,{prefix:r,unitless:a,ignore:s,scope:d}),u=(0,i.A)(o,2),l=u[0],c=u[1];return[l,c,te(x,c),n]}),(function(t){var e=(0,i.A)(t,3)[2];R&&(0,u.m6)(e,{mark:v})}),(function(t){var e=(0,i.A)(t,3),r=e[1],o=e[2];if(r){var a=(0,u.BD)(r,o,{mark:v,prepend:"queue",attachTo:m,priority:-999});a[y]=p,a.setAttribute(g,n)}}))};var ae;ae={},(0,r.A)(ae,ne,(function(t,e,n){var r=(0,i.A)(t,6),o=r[0],a=r[1],s=r[2],u=r[3],l=r[4],c=r[5],h=(n||{}).plain;if(l)return null;var d=o,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return d=z(o,a,s,f,h),u&&Object.keys(u).forEach((function(t){if(!e[t]){e[t]=!0;var n=z(Qt(u[t]),a,"_effect-".concat(t),f,h);t.startsWith("@layer")?d=n+d:d+=n}})),[c,s,d]})),(0,r.A)(ae,J,(function(t,e,n){var r=(0,i.A)(t,5),o=r[2],a=r[3],s=r[4],u=(n||{}).plain;if(!a)return null;var l=o._tokenKey;return[-999,l,z(a,s,l,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},u)]})),(0,r.A)(ae,ie,(function(t,e,n){var r=(0,i.A)(t,4),o=r[1],a=r[2],s=r[3],u=(n||{}).plain;if(!o)return null;return[-999,a,z(o,s,a,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},u)]}));const se=function(){function t(e,n){(0,h.A)(this,t),(0,r.A)(this,"name",void 0),(0,r.A)(this,"style",void 0),(0,r.A)(this,"_keyframe",!0),this.name=e,this.style=n}return(0,d.A)(t,[{key:"getName",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t?"".concat(t,"-").concat(this.name):this.name}}]),t}();function ue(t){return t.notSplit=!0,t}ue(["borderTop","borderBottom"]),ue(["borderTop"]),ue(["borderBottom"]),ue(["borderLeft","borderRight"]),ue(["borderLeft"]),ue(["borderRight"])},87064:(t,e,n)=>{"use strict";n.d(e,{A:()=>k});var r=n(58168),i=n(5544),o=n(64467),a=n(53986),s=n(96540),u=n(46942),l=n.n(u),c=n(20439),h=n(61053),d=n(89379),f=n(82284),p=n(85089),m=n(72633),g=n(68210);function v(t){return"object"===(0,f.A)(t)&&"string"==typeof t.name&&"string"==typeof t.theme&&("object"===(0,f.A)(t.icon)||"function"==typeof t.icon)}function y(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(t).reduce((function(e,n){var r,i=t[n];if("class"===n)e.className=i,delete e.class;else delete e[n],e[(r=n,r.replace(/-(.)/g,(function(t,e){return e.toUpperCase()})))]=i;return e}),{})}function b(t,e,n){return n?s.createElement(t.tag,(0,d.A)((0,d.A)({key:e},y(t.attrs)),n),(t.children||[]).map((function(n,r){return b(n,"".concat(e,"-").concat(t.tag,"-").concat(r))}))):s.createElement(t.tag,(0,d.A)({key:e},y(t.attrs)),(t.children||[]).map((function(n,r){return b(n,"".concat(e,"-").concat(t.tag,"-").concat(r))})))}function x(t){return(0,c.cM)(t)[0]}function w(t){return t?Array.isArray(t)?t:[t]:[]}var _=["icon","className","onClick","style","primaryColor","secondaryColor"],S={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var E=function(t){var e,n,r,i,o,u,l,c=t.icon,f=t.className,y=t.onClick,w=t.style,E=t.primaryColor,A=t.secondaryColor,M=(0,a.A)(t,_),C=s.useRef(),T=S;if(E&&(T={primaryColor:E,secondaryColor:A||x(E)}),e=C,n=(0,s.useContext)(h.A),r=n.csp,i=n.prefixCls,o="\n.anticon {\n display: inline-flex;\n alignItems: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",i&&(o=o.replace(/anticon/g,i)),(0,s.useEffect)((function(){var t=e.current,n=(0,m.j)(t);(0,p.BD)(o,"@ant-design-icons",{prepend:!0,csp:r,attachTo:n})}),[]),u=v(c),l="icon should be icon definiton, but got ".concat(c),(0,g.Ay)(u,"[@ant-design/icons] ".concat(l)),!v(c))return null;var k=c;return k&&"function"==typeof k.icon&&(k=(0,d.A)((0,d.A)({},k),{},{icon:k.icon(T.primaryColor,T.secondaryColor)})),b(k.icon,"svg-".concat(k.name),(0,d.A)((0,d.A)({className:f,onClick:y,style:w,"data-icon":k.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},M),{},{ref:C}))};E.displayName="IconReact",E.getTwoToneColors=function(){return(0,d.A)({},S)},E.setTwoToneColors=function(t){var e=t.primaryColor,n=t.secondaryColor;S.primaryColor=e,S.secondaryColor=n||x(e),S.calculated=!!n};const A=E;function M(t){var e=w(t),n=(0,i.A)(e,2),r=n[0],o=n[1];return A.setTwoToneColors({primaryColor:r,secondaryColor:o})}var C=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];M(c.z1.primary);var T=s.forwardRef((function(t,e){var n=t.className,u=t.icon,c=t.spin,d=t.rotate,f=t.tabIndex,p=t.onClick,m=t.twoToneColor,g=(0,a.A)(t,C),v=s.useContext(h.A),y=v.prefixCls,b=void 0===y?"anticon":y,x=v.rootClassName,_=l()(x,b,(0,o.A)((0,o.A)({},"".concat(b,"-").concat(u.name),!!u.name),"".concat(b,"-spin"),!!c||"loading"===u.name),n),S=f;void 0===S&&p&&(S=-1);var E=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,M=w(m),T=(0,i.A)(M,2),k=T[0],I=T[1];return s.createElement("span",(0,r.A)({role:"img","aria-label":u.name},g,{ref:e,tabIndex:S,onClick:p,className:_}),s.createElement(A,{icon:u,primaryColor:k,secondaryColor:I,style:E}))}));T.displayName="AntdIcon",T.getTwoToneColor=function(){var t=A.getTwoToneColors();return t.calculated?[t.primaryColor,t.secondaryColor]:t.primaryColor},T.setTwoToneColor=M;const k=T},61053:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=(0,n(96540).createContext)({})},44663:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v584zM639.5 414h-45c-3 0-5.8 1.7-7.1 4.4L514 563.8h-2.8l-73.4-145.4a8 8 0 00-7.1-4.4h-46c-1.3 0-2.7.3-3.8 1-3.9 2.1-5.3 7-3.2 10.9l89.3 164h-48.6c-4.4 0-8 3.6-8 8v21.3c0 4.4 3.6 8 8 8h65.1v33.7h-65.1c-4.4 0-8 3.6-8 8v21.3c0 4.4 3.6 8 8 8h65.1V752c0 4.4 3.6 8 8 8h41.3c4.4 0 8-3.6 8-8v-53.8h65.4c4.4 0 8-3.6 8-8v-21.3c0-4.4-3.6-8-8-8h-65.4v-33.7h65.4c4.4 0 8-3.6 8-8v-21.3c0-4.4-3.6-8-8-8h-49.1l89.3-164.1c.6-1.2 1-2.5 1-3.8.1-4.4-3.4-8-7.9-8z"}}]},name:"account-book",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},77639:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M952 474H829.8C812.5 327.6 696.4 211.5 550 194.2V72c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v122.2C327.6 211.5 211.5 327.6 194.2 474H72c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h122.2C211.5 696.4 327.6 812.5 474 829.8V952c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V829.8C696.4 812.5 812.5 696.4 829.8 550H952c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM512 756c-134.8 0-244-109.2-244-244s109.2-244 244-244 244 109.2 244 244-109.2 244-244 244z"}},{tag:"path",attrs:{d:"M512 392c-32.1 0-62.1 12.4-84.8 35.2-22.7 22.7-35.2 52.7-35.2 84.8s12.5 62.1 35.2 84.8C449.9 619.4 480 632 512 632s62.1-12.5 84.8-35.2C619.4 574.1 632 544 632 512s-12.5-62.1-35.2-84.8A118.57 118.57 0 00512 392z"}}]},name:"aim",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},99328:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M193 796c0 17.7 14.3 32 32 32h574c17.7 0 32-14.3 32-32V563c0-176.2-142.8-319-319-319S193 386.8 193 563v233zm72-233c0-136.4 110.6-247 247-247s247 110.6 247 247v193H404V585c0-5.5-4.5-10-10-10h-44c-5.5 0-10 4.5-10 10v171h-75V563zm-48.1-252.5l39.6-39.6c3.1-3.1 3.1-8.2 0-11.3l-67.9-67.9a8.03 8.03 0 00-11.3 0l-39.6 39.6a8.03 8.03 0 000 11.3l67.9 67.9c3.1 3.1 8.1 3.1 11.3 0zm669.6-79.2l-39.6-39.6a8.03 8.03 0 00-11.3 0l-67.9 67.9a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l67.9-67.9c3.1-3.2 3.1-8.2 0-11.3zM832 892H192c-17.7 0-32 14.3-32 32v24c0 4.4 3.6 8 8 8h688c4.4 0 8-3.6 8-8v-24c0-17.7-14.3-32-32-32zM484 180h56c4.4 0 8-3.6 8-8V76c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v96c0 4.4 3.6 8 8 8z"}}]},name:"alert",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},66480:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.42 0 448 200.58 448 448S759.42 960 512 960 64 759.42 64 512 264.58 64 512 64m32.5 168c-69.67 0-86.06 16.84-86.72 39.08l-.02 1.43v46.62H291.45c-9.92 0-14.28 23.05-14.27 39.3 0 2.7 2.08 4.93 4.77 4.93h175.81v58.3h-116.5c-9.96 0-14.3 23.76-14.27 39.47a4.77 4.77 0 004.77 4.76h233.45c-4.53 41.06-15.43 77.59-30.72 109.32l-1.22 2.5-.32-.28c-60.24-28.47-120.43-52.57-194.4-52.57l-2.62.01c-84.98 1.11-144.71 56.5-145.91 127.04l-.02 1.22.02 2.13c1.24 70.4 63.56 126.45 148.52 126.45 61.25 0 116.38-16.85 163.46-45.02a138.58 138.58 0 0014.07-7.96 345.6 345.6 0 0050.3-41.16l9.45 6.35 12.46 8.32c57.53 38.26 113.76 72.62 169.86 79.27a142.62 142.62 0 0018.31 1.16c43.02 0 55-52.68 57.39-95.51l.14-2.84c.4-8.46-6.2-15.6-14.65-15.86-75.46-2.37-136.45-22.05-192-46.11l-6.27-2.75c35.15-56.8 56.66-121.81 57.15-186.66l.09-1.08c.4-5.51-4-10.2-9.52-10.2H549.33v-58.3h165.73c9.92 0 14.28-22.12 14.27-39.31a4.85 4.85 0 00-4.78-4.92H549.32v-82.35a4.8 4.8 0 00-4.83-4.78M328 583.85c54.63 0 107.08 22.41 158.1 52.19l5.76 3.4c-103.57 119.84-247.17 95.9-261.72 26.37a66.89 66.89 0 01-1.14-9.83l-.06-2.34.02-.9c.97-40.12 45.33-68.9 99.04-68.9"}}]},name:"alipay-circle",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},11033:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M557.2 129a6.68 6.68 0 016.72 6.65V250.2h243.8a6.74 6.74 0 016.65 6.84c.02 23.92-6.05 54.69-19.85 54.69H563.94v81.1h166.18c7.69 0 13.8 6.51 13.25 14.18l-.11 1.51c-.7 90.2-30.63 180.64-79.52 259.65l8.71 3.82c77.3 33.48 162.15 60.85 267.15 64.14a21.08 21.08 0 0120.38 22.07l-.2 3.95c-3.34 59.57-20 132.85-79.85 132.85-8.8 0-17.29-.55-25.48-1.61-78.04-9.25-156.28-57.05-236.32-110.27l-17.33-11.57-13.15-8.83a480.83 480.83 0 01-69.99 57.25 192.8 192.8 0 01-19.57 11.08c-65.51 39.18-142.21 62.6-227.42 62.62-118.2 0-204.92-77.97-206.64-175.9l-.03-2.95.03-1.7c1.66-98.12 84.77-175.18 203-176.72l3.64-.03c102.92 0 186.66 33.54 270.48 73.14l.44.38 1.7-3.47c21.27-44.14 36.44-94.95 42.74-152.06h-324.8a6.64 6.64 0 01-6.63-6.62c-.04-21.86 6-54.91 19.85-54.91h162.1v-81.1H191.92a6.71 6.71 0 01-6.64-6.85c-.01-22.61 6.06-54.68 19.86-54.68h231.4v-64.85l.02-1.99c.9-30.93 23.72-54.36 120.64-54.36M256.9 619c-74.77 0-136.53 39.93-137.88 95.6l-.02 1.26.08 3.24a92.55 92.55 0 001.58 13.64c20.26 96.5 220.16 129.71 364.34-36.59l-8.03-4.72C405.95 650.11 332.94 619 256.9 619"}}]},name:"alipay",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},80002:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868.2 377.4c-18.9-45.1-46.3-85.6-81.2-120.6a377.26 377.26 0 00-120.5-81.2A375.65 375.65 0 00519 145.8c-41.9 0-82.9 6.7-121.9 20C306 123.3 200.8 120 170.6 120c-2.2 0-7.4 0-9.4.2-11.9.4-22.8 6.5-29.2 16.4-6.5 9.9-7.7 22.4-3.4 33.5l64.3 161.6a378.59 378.59 0 00-52.8 193.2c0 51.4 10 101 29.8 147.6 18.9 45 46.2 85.6 81.2 120.5 34.7 34.8 75.4 62.1 120.5 81.2C418.3 894 467.9 904 519 904c51.3 0 100.9-10.1 147.7-29.8 44.9-18.9 85.5-46.3 120.4-81.2 34.7-34.8 62.1-75.4 81.2-120.6a376.5 376.5 0 0029.8-147.6c-.2-51.2-10.1-100.8-29.9-147.4zm-66.4 266.5a307.08 307.08 0 01-65.9 98c-28.4 28.5-61.3 50.7-97.7 65.9h-.1c-38 16-78.3 24.2-119.9 24.2a306.51 306.51 0 01-217.5-90.2c-28.4-28.5-50.6-61.4-65.8-97.8v-.1c-16-37.8-24.1-78.2-24.1-119.9 0-55.4 14.8-109.7 42.8-157l13.2-22.1-9.5-23.9L206 192c14.9.6 35.9 2.1 59.7 5.6 43.8 6.5 82.5 17.5 114.9 32.6l19 8.9 19.9-6.8c31.5-10.8 64.8-16.2 98.9-16.2a306.51 306.51 0 01217.5 90.2c28.4 28.5 50.6 61.4 65.8 97.8l.1.1.1.1c16 37.6 24.1 78 24.2 119.8-.1 41.7-8.3 82-24.3 119.8zM681.1 364.2c-20.4 0-37.1 16.7-37.1 37.1v55.1c0 20.4 16.6 37.1 37.1 37.1s37.1-16.7 37.1-37.1v-55.1c0-20.5-16.7-37.1-37.1-37.1zm-175.2 0c-20.5 0-37.1 16.7-37.1 37.1v55.1c0 20.4 16.7 37.1 37.1 37.1 20.5 0 37.1-16.7 37.1-37.1v-55.1c0-20.5-16.7-37.1-37.1-37.1z"}}]},name:"aliwangwang",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},43965:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M959.2 383.9c-.3-82.1-66.9-148.6-149.1-148.6H575.9l21.6 85.2 201 43.7a42.58 42.58 0 0132.9 39.7c.1.5.1 216.1 0 216.6a42.58 42.58 0 01-32.9 39.7l-201 43.7-21.6 85.3h234.2c82.1 0 148.8-66.5 149.1-148.6V383.9zM225.5 660.4a42.58 42.58 0 01-32.9-39.7c-.1-.6-.1-216.1 0-216.6.8-19.4 14.6-35.5 32.9-39.7l201-43.7 21.6-85.2H213.8c-82.1 0-148.8 66.4-149.1 148.6V641c.3 82.1 67 148.6 149.1 148.6H448l-21.6-85.3-200.9-43.9zm200.9-158.8h171v21.3h-171z"}}]},name:"aliyun",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},91046:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M825 768.9c-3.3-.9-7.3-.4-11.9 1.3-61.6 28.2-121.5 48.3-179.7 60.2C507.7 856 385.2 842.6 266 790.3c-33.1-14.6-79.1-39.2-138-74a9.36 9.36 0 00-5.3-2c-2-.1-3.7.1-5.3.9-1.6.8-2.8 1.8-3.7 3.1-.9 1.3-1.1 3.1-.4 5.4.6 2.2 2.1 4.7 4.6 7.4 10.4 12.2 23.3 25.2 38.6 39s35.6 29.4 60.9 46.8c25.3 17.4 51.8 32.9 79.3 46.4 27.6 13.5 59.6 24.9 96.1 34.1s73 13.8 109.4 13.8c36.2 0 71.4-3.7 105.5-10.9 34.2-7.3 63-15.9 86.5-25.9 23.4-9.9 45-21 64.8-33 19.8-12 34.4-22.2 43.9-30.3 9.5-8.2 16.3-14.6 20.2-19.4 4.6-5.7 6.9-10.6 6.9-14.9.1-4.5-1.7-7.1-5-7.9zM527.4 348.1c-15.2 1.3-33.5 4.1-55 8.3-21.5 4.1-41.4 9.3-59.8 15.4s-37.2 14.6-56.3 25.4c-19.2 10.8-35.5 23.2-49 37s-24.5 31.1-33.1 52c-8.6 20.8-12.9 43.7-12.9 68.7 0 27.1 4.7 51.2 14.3 72.5 9.5 21.3 22.2 38 38.2 50.4 15.9 12.4 34 22.1 54 29.2 20 7.1 41.2 10.3 63.2 9.4 22-.9 43.5-4.3 64.4-10.3 20.8-5.9 40.4-15.4 58.6-28.3 18.2-12.9 33.1-28.2 44.8-45.7 4.3 6.6 8.1 11.5 11.5 14.7l8.7 8.9c5.8 5.9 14.7 14.6 26.7 26.1 11.9 11.5 24.1 22.7 36.3 33.7l104.4-99.9-6-4.9c-4.3-3.3-9.4-8-15.2-14.3-5.8-6.2-11.6-13.1-17.2-20.5-5.7-7.4-10.6-16.1-14.7-25.9-4.1-9.8-6.2-19.3-6.2-28.5V258.7c0-10.1-1.9-21-5.7-32.8-3.9-11.7-10.7-24.5-20.7-38.3-10-13.8-22.4-26.2-37.2-37-14.9-10.8-34.7-20-59.6-27.4-24.8-7.4-52.6-11.1-83.2-11.1-31.3 0-60.4 3.7-87.6 10.9-27.1 7.3-50.3 17-69.7 29.2-19.3 12.2-35.9 26.3-49.7 42.4-13.8 16.1-24.1 32.9-30.8 50.4-6.7 17.5-10.1 35.2-10.1 53.1L408 310c5.5-16.4 12.9-30.6 22-42.8 9.2-12.2 17.9-21 25.8-26.5 8-5.5 16.6-9.9 25.7-13.2 9.2-3.3 15.4-5 18.6-5.4 3.2-.3 5.7-.4 7.6-.4 26.7 0 45.2 7.9 55.6 23.6 6.5 9.5 9.7 23.9 9.7 43.3v56.6c-15.2.6-30.4 1.6-45.6 2.9zM573.1 500c0 16.6-2.2 31.7-6.5 45-9.2 29.1-26.7 47.4-52.4 54.8-22.4 6.6-43.7 3.3-63.9-9.8-21.5-14-32.2-33.8-32.2-59.3 0-19.9 5-36.9 15-51.1 10-14.1 23.3-24.7 40-31.7s33-12 49-14.9c15.9-3 33-4.8 51-5.4V500zm335.2 218.9c-4.3-5.4-15.9-8.9-34.9-10.7-19-1.8-35.5-1.7-49.7.4-15.3 1.8-31.1 6.2-47.3 13.4-16.3 7.1-23.4 13.1-21.6 17.8l.7 1.3.9.7 1.4.2h4.6c.8 0 1.8-.1 3.2-.2 1.4-.1 2.7-.3 3.9-.4 1.2-.1 2.9-.3 5.1-.4 2.1-.1 4.1-.4 6-.7.3 0 3.7-.3 10.3-.9 6.6-.6 11.4-1 14.3-1.3 2.9-.3 7.8-.6 14.5-.9 6.7-.3 12.1-.3 16.1 0 4 .3 8.5.7 13.6 1.1 5.1.4 9.2 1.3 12.4 2.7 3.2 1.3 5.6 3 7.1 5.1 5.2 6.6 4.2 21.2-3 43.9s-14 40.8-20.4 54.2c-2.8 5.7-2.8 9.2 0 10.7s6.7.1 11.9-4c15.6-12.2 28.6-30.6 39.1-55.3 6.1-14.6 10.5-29.8 13.1-45.7 2.4-15.9 2-26.2-1.3-31z"}}]},name:"amazon",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},70792:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M448.3 225.2c-18.6 0-32 13.4-32 31.9s13.5 31.9 32 31.9c18.6 0 32-13.4 32-31.9.1-18.4-13.4-31.9-32-31.9zm393.9 96.4c-13.8-13.8-32.7-21.5-53.2-21.5-3.9 0-7.4.4-10.7 1v-1h-3.6c-5.5-30.6-18.6-60.5-38.1-87.4-18.7-25.7-43-47.9-70.8-64.9l25.1-35.8v-3.3c0-.8.4-2.3.7-3.8.6-2.4 1.4-5.5 1.4-8.9 0-18.5-13.5-31.9-32-31.9-9.8 0-19.5 5.7-25.9 15.4l-29.3 42.1c-30-9.8-62.4-15-93.8-15-31.3 0-63.7 5.2-93.8 15L389 79.4c-6.6-9.6-16.1-15.4-26-15.4-18.6 0-32 13.4-32 31.9 0 6.2 2.5 12.8 6.7 17.4l22.6 32.3c-28.7 17-53.5 39.4-72.2 65.1-19.4 26.9-32 56.8-36.7 87.4h-5.5v1c-3.2-.6-6.7-1-10.7-1-20.3 0-39.2 7.5-53.1 21.3-13.8 13.8-21.5 32.6-21.5 53v235c0 20.3 7.5 39.1 21.4 52.9 13.8 13.8 32.8 21.5 53.2 21.5 3.9 0 7.4-.4 10.7-1v93.5c0 29.2 23.9 53.1 53.2 53.1H331v58.3c0 20.3 7.5 39.1 21.4 52.9 13.8 13.8 32.8 21.5 53.2 21.5 20.3 0 39.2-7.5 53.1-21.3 13.8-13.8 21.5-32.6 21.5-53v-58.2H544v58.1c0 20.3 7.5 39.1 21.4 52.9 13.8 13.8 32.8 21.5 53.2 21.5 20.4 0 39.2-7.5 53.1-21.6 13.8-13.8 21.5-32.6 21.5-53v-58.2h31.9c29.3 0 53.2-23.8 53.2-53.1v-91.4c3.2.6 6.7 1 10.7 1 20.3 0 39.2-7.5 53.1-21.3 13.8-13.8 21.5-32.6 21.5-53v-235c-.1-20.3-7.6-39-21.4-52.9zM246 609.6c0 6.8-3.9 10.6-10.7 10.6-6.8 0-10.7-3.8-10.7-10.6V374.5c0-6.8 3.9-10.6 10.7-10.6 6.8 0 10.7 3.8 10.7 10.6v235.1zm131.1-396.8c37.5-27.3 85.3-42.3 135-42.3s97.5 15.1 135 42.5c32.4 23.7 54.2 54.2 62.7 87.5H314.4c8.5-33.4 30.5-64 62.7-87.7zm39.3 674.7c-.6 5.6-4.4 8.7-10.5 8.7-6.8 0-10.7-3.8-10.7-10.6v-58.2h21.2v60.1zm202.3 8.7c-6.8 0-10.7-3.8-10.7-10.6v-58.2h21.2v60.1c-.6 5.6-4.3 8.7-10.5 8.7zm95.8-132.6H309.9V364h404.6v399.6zm85.2-154c0 6.8-3.9 10.6-10.7 10.6-6.8 0-10.7-3.8-10.7-10.6V374.5c0-6.8 3.9-10.6 10.7-10.6 6.8 0 10.7 3.8 10.7 10.6v235.1zM576.1 225.2c-18.6 0-32 13.4-32 31.9s13.5 31.9 32 31.9c18.6 0 32.1-13.4 32.1-32-.1-18.6-13.4-31.8-32.1-31.8z"}}]},name:"android",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},77584:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M378.9 738c-3.1 0-6.1-.5-8.8-1.5l4.4 30.7h26.3l-15.5-29.9c-2.1.5-4.2.7-6.4.7zm421-291.2c-12.6 0-24.8 1.5-36.5 4.2-21.4-38.4-62.3-64.3-109.3-64.3-6.9 0-13.6.6-20.2 1.6-35.4-77.4-113.4-131.1-203.9-131.1-112.3 0-205.3 82.6-221.6 190.4C127.3 455.5 64 523.8 64 607c0 88.4 71.6 160.1 160 160.2h50l13.2-27.6c-26.2-8.3-43.3-29-39.1-48.8 4.6-21.6 32.8-33.9 63.1-27.5 22.9 4.9 40.4 19.1 45.5 35.1a26.1 26.1 0 0122.1-12.4h.2c-.8-3.2-1.2-6.5-1.2-9.9 0-20.1 14.8-36.7 34.1-39.6v-25.4c0-4.4 3.6-8 8-8s8 3.6 8 8v26.3c4.6 1.2 8.8 3.2 12.6 5.8l19.5-21.4c3-3.3 8-3.5 11.3-.5 3.3 3 3.5 8 .5 11.3l-20 22-.2.2a40 40 0 01-46.9 59.2c-.4 5.6-2.6 10.7-6 14.8l20 38.4H804v-.1c86.5-2.2 156-73 156-160.1 0-88.5-71.7-160.2-160.1-160.2zM338.2 737.2l-4.3 30h24.4l-5.9-41.5c-3.5 4.6-8.3 8.5-14.2 11.5zM797.5 305a48 48 0 1096 0 48 48 0 10-96 0zm-65.7 61.3a24 24 0 1048 0 24 24 0 10-48 0zM303.4 742.9l-11.6 24.3h26l3.5-24.7c-5.7.8-11.7 1-17.9.4z"}}]},name:"ant-cloud",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},4716:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M716.3 313.8c19-18.9 19-49.7 0-68.6l-69.9-69.9.1.1c-18.5-18.5-50.3-50.3-95.3-95.2-21.2-20.7-55.5-20.5-76.5.5L80.9 474.2a53.84 53.84 0 000 76.4L474.6 944a54.14 54.14 0 0076.5 0l165.1-165c19-18.9 19-49.7 0-68.6a48.7 48.7 0 00-68.7 0l-125 125.2c-5.2 5.2-13.3 5.2-18.5 0L189.5 521.4c-5.2-5.2-5.2-13.3 0-18.5l314.4-314.2c.4-.4.9-.7 1.3-1.1 5.2-4.1 12.4-3.7 17.2 1.1l125.2 125.1c19 19 49.8 19 68.7 0zM408.6 514.4a106.3 106.2 0 10212.6 0 106.3 106.2 0 10-212.6 0zm536.2-38.6L821.9 353.5c-19-18.9-49.8-18.9-68.7.1a48.4 48.4 0 000 68.6l83 82.9c5.2 5.2 5.2 13.3 0 18.5l-81.8 81.7a48.4 48.4 0 000 68.6 48.7 48.7 0 0068.7 0l121.8-121.7a53.93 53.93 0 00-.1-76.4z"}}]},name:"ant-design",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},31942:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908 640H804V488c0-4.4-3.6-8-8-8H548v-96h108c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16H368c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h108v96H228c-4.4 0-8 3.6-8 8v152H116c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16H292v-88h440v88H620c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16zm-564 76v168H176V716h168zm84-408V140h168v168H428zm420 576H680V716h168v168z"}}]},name:"apartment",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},13740:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 00-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 000 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7 35.3 0 68.4 13.7 93.4 38.7 24.9 24.9 38.7 58.1 38.7 93.4 0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 00-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 00-11.3 0L363 475.3l-43-43a7.85 7.85 0 00-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 000 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 01-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 01-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4z"}}]},name:"api",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},69877:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M747.4 535.7c-.4-68.2 30.5-119.6 92.9-157.5-34.9-50-87.7-77.5-157.3-82.8-65.9-5.2-138 38.4-164.4 38.4-27.9 0-91.7-36.6-141.9-36.6C273.1 298.8 163 379.8 163 544.6c0 48.7 8.9 99 26.7 150.8 23.8 68.2 109.6 235.3 199.1 232.6 46.8-1.1 79.9-33.2 140.8-33.2 59.1 0 89.7 33.2 141.9 33.2 90.3-1.3 167.9-153.2 190.5-221.6-121.1-57.1-114.6-167.2-114.6-170.7zm-10.6 267c-14.3 19.9-28.7 35.6-41.9 45.7-10.5 8-18.6 11.4-24 11.6-9-.1-17.7-2.3-34.7-8.8-1.2-.5-2.5-1-4.2-1.6l-4.4-1.7c-17.4-6.7-27.8-10.3-41.1-13.8-18.6-4.8-37.1-7.4-56.9-7.4-20.2 0-39.2 2.5-58.1 7.2-13.9 3.5-25.6 7.4-42.7 13.8-.7.3-8.1 3.1-10.2 3.9-3.5 1.3-6.2 2.3-8.7 3.2-10.4 3.6-17 5.1-22.9 5.2-.7 0-1.3-.1-1.8-.2-1.1-.2-2.5-.6-4.1-1.3-4.5-1.8-9.9-5.1-16-9.8-14-10.9-29.4-28-45.1-49.9-27.5-38.6-53.5-89.8-66-125.7-15.4-44.8-23-87.7-23-128.6 0-60.2 17.8-106 48.4-137.1 26.3-26.6 61.7-41.5 97.8-42.3 5.9.1 14.5 1.5 25.4 4.5 8.6 2.3 18 5.4 30.7 9.9 3.8 1.4 16.9 6.1 18.5 6.7 7.7 2.8 13.5 4.8 19.2 6.6 18.2 5.8 32.3 9 47.6 9 15.5 0 28.8-3.3 47.7-9.8 7.1-2.4 32.9-12 37.5-13.6 25.6-9.1 44.5-14 60.8-15.2 4.8-.4 9.1-.4 13.2-.1 22.7 1.8 42.1 6.3 58.6 13.8-37.6 43.4-57 96.5-56.9 158.4-.3 14.7.9 31.7 5.1 51.8 6.4 30.5 18.6 60.7 37.9 89 14.7 21.5 32.9 40.9 54.7 57.8-11.5 23.7-25.6 48.2-40.4 68.8zm-94.5-572c50.7-60.2 46.1-115 44.6-134.7-44.8 2.6-96.6 30.5-126.1 64.8-32.5 36.8-51.6 82.3-47.5 133.6 48.4 3.7 92.6-21.2 129-63.7z"}}]},name:"apple",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},41723:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zm52 132H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200zM424 712H296V584c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v128H104c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h128v128c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V776h128c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}}]},name:"appstore-add",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},1372:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"}}]},name:"appstore",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},95718:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M682 455V311l-76 76v68c-.1 50.7-42 92.1-94 92a95.8 95.8 0 01-52-15l-54 55c29.1 22.4 65.9 36 106 36 93.8 0 170-75.1 170-168z"}},{tag:"path",attrs:{d:"M833 446h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254-63 0-120.7-23-165-61l-54 54a334.01 334.01 0 00179 81v102H326c-13.9 0-24.9 14.3-25 32v36c.1 4.4 2.9 8 6 8h408c3.2 0 6-3.6 6-8v-36c0-17.7-11-32-25-32H547V782c165.3-17.9 294-157.9 294-328 0-4.4-3.6-8-8-8zm13.1-377.7l-43.5-41.9a8 8 0 00-11.2.1l-129 129C634.3 101.2 577 64 511 64c-93.9 0-170 75.3-170 168v224c0 6.7.4 13.3 1.2 19.8l-68 68A252.33 252.33 0 01258 454c-.2-4.4-3.8-8-8-8h-60c-4.4 0-8 3.6-8 8 0 53 12.5 103 34.6 147.4l-137 137a8.03 8.03 0 000 11.3l42.7 42.7c3.1 3.1 8.2 3.1 11.3 0L846.2 79.8l.1-.1c3.1-3.2 3-8.3-.2-11.4zM417 401V232c0-50.6 41.9-92 94-92 46 0 84.1 32.3 92.3 74.7L417 401z"}}]},name:"audio-muted",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},43348:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z"}}]},name:"audio",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},43450:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M296 250c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm184 144H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 458H208V148h560v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm440-88H728v-36.6c46.3-13.8 80-56.6 80-107.4 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 50.7 33.7 93.6 80 107.4V764H520c-8.8 0-16 7.2-16 16v152c0 8.8 7.2 16 16 16h352c8.8 0 16-7.2 16-16V780c0-8.8-7.2-16-16-16zM646 620c0-27.6 22.4-50 50-50s50 22.4 50 50-22.4 50-50 50-50-22.4-50-50zm180 266H566v-60h260v60z"}}]},name:"audit",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},84145:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M894 462c30.9 0 43.8-39.7 18.7-58L530.8 126.2a31.81 31.81 0 00-37.6 0L111.3 404c-25.1 18.2-12.2 58 18.8 58H192v374h-72c-4.4 0-8 3.6-8 8v52c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-52c0-4.4-3.6-8-8-8h-72V462h62zM512 196.7l271.1 197.2H240.9L512 196.7zM264 462h117v374H264V462zm189 0h117v374H453V462zm307 374H642V462h118v374z"}}]},name:"bank",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},76371:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M120 160H72c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8zm833 0h-48c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8zM200 736h112c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8H200c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8zm321 0h48c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8zm126 0h178c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8H647c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8zm-255 0h48c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8zm-79 64H201c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h112c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm257 0h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm256 0H648c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h178c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-385 0h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}}]},name:"barcode",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},3674:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},73142:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M634 294.3h199.5v48.4H634zM434.1 485.8c44.1-21.1 67.2-53.2 67.2-102.8 0-98.1-73-121.9-157.3-121.9H112v492.4h238.5c89.4 0 173.3-43 173.3-143 0-61.8-29.2-107.5-89.7-124.7zM220.2 345.1h101.5c39.1 0 74.2 10.9 74.2 56.3 0 41.8-27.3 58.6-66 58.6H220.2V345.1zm115.5 324.8H220.1V534.3H338c47.6 0 77.7 19.9 77.7 70.3 0 49.6-35.9 65.3-80 65.3zm575.8-89.5c0-105.5-61.7-193.4-173.3-193.4-108.5 0-182.3 81.7-182.3 188.8 0 111 69.9 187.2 182.3 187.2 85.1 0 140.2-38.3 166.7-120h-86.3c-9.4 30.5-47.6 46.5-77.3 46.5-57.4 0-87.4-33.6-87.4-90.7h256.9c.3-5.9.7-12.1.7-18.4zM653.9 537c3.1-46.9 34.4-76.2 81.2-76.2 49.2 0 73.8 28.9 78.1 76.2H653.9z"}}]},name:"behance",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},86706:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM598.5 350.9h138.4v33.7H598.5v-33.7zM512 628.8a89.52 89.52 0 01-27 31c-11.8 8.2-24.9 14.2-38.8 17.7a167.4 167.4 0 01-44.6 5.7H236V342.1h161c16.3 0 31.1 1.5 44.6 4.3 13.4 2.8 24.8 7.6 34.4 14.1 9.5 6.5 17 15.2 22.3 26 5.2 10.7 7.9 24.1 7.9 40 0 17.2-3.9 31.4-11.7 42.9-7.9 11.5-19.3 20.8-34.8 28.1 21.1 6 36.6 16.7 46.8 31.7 10.4 15.2 15.5 33.4 15.5 54.8 0 17.4-3.3 32.3-10 44.8zM790.8 576H612.4c0 19.4 6.7 38 16.8 48 10.2 9.9 24.8 14.9 43.9 14.9 13.8 0 25.5-3.5 35.5-10.4 9.9-6.9 15.9-14.2 18.1-21.8h59.8c-9.6 29.7-24.2 50.9-44 63.7-19.6 12.8-43.6 19.2-71.5 19.2-19.5 0-37-3.2-52.7-9.3-15.1-5.9-28.7-14.9-39.9-26.5a121.2 121.2 0 01-25.1-41.2c-6.1-16.9-9.1-34.7-8.9-52.6 0-18.5 3.1-35.7 9.1-51.7 11.5-31.1 35.4-56 65.9-68.9 16.3-6.8 33.8-10.2 51.5-10 21 0 39.2 4 55 12.2a111.6 111.6 0 0138.6 32.8c10.1 13.7 17.2 29.3 21.7 46.9 4.3 17.3 5.8 35.5 4.6 54.7zm-122-95.6c-10.8 0-19.9 1.9-26.9 5.6-7 3.7-12.8 8.3-17.2 13.6a48.4 48.4 0 00-9.1 17.4c-1.6 5.3-2.7 10.7-3.1 16.2H723c-1.6-17.3-7.6-30.1-15.6-39.1-8.4-8.9-21.9-13.7-38.6-13.7zm-248.5-10.1c8.7-6.3 12.9-16.7 12.9-31 .3-6.8-1.1-13.5-4.1-19.6-2.7-4.9-6.7-9-11.6-11.9a44.8 44.8 0 00-16.6-6c-6.4-1.2-12.9-1.8-19.3-1.7h-70.3v79.7h76.1c13.1.1 24.2-3.1 32.9-9.5zm11.8 72c-9.8-7.5-22.9-11.2-39.2-11.2h-81.8v94h80.2c7.5 0 14.4-.7 21.1-2.1s12.7-3.8 17.8-7.2c5.1-3.3 9.2-7.8 12.3-13.6 3-5.8 4.5-13.2 4.5-22.1 0-17.7-5-30.2-14.9-37.8z"}}]},name:"behance-square",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},40562:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M816 768h-24V428c0-141.1-104.3-257.7-240-277.1V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.9c-135.7 19.4-240 136-240 277.1v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48zM304 768V428c0-55.6 21.6-107.8 60.9-147.1S456.4 220 512 220c55.6 0 107.8 21.6 147.1 60.9S720 372.4 720 428v340H304z"}}]},name:"bell",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},51711:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M856 376H648V168c0-8.8-7.2-16-16-16H168c-8.8 0-16 7.2-16 16v464c0 8.8 7.2 16 16 16h208v208c0 8.8 7.2 16 16 16h464c8.8 0 16-7.2 16-16V392c0-8.8-7.2-16-16-16zm-480 16v188H220V220h360v156H392c-8.8 0-16 7.2-16 16zm204 52v136H444V444h136zm224 360H444V648h188c8.8 0 16-7.2 16-16V444h156v360z"}}]},name:"block",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},83762:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0022.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z"}}]},name:"book",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},97189:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M740 161c-61.8 0-112 50.2-112 112 0 50.1 33.1 92.6 78.5 106.9v95.9L320 602.4V318.1c44.2-15 76-56.9 76-106.1 0-61.8-50.2-112-112-112s-112 50.2-112 112c0 49.2 31.8 91 76 106.1V706c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1v-27.8l423.5-138.7a50.52 50.52 0 0034.9-48.2V378.2c42.9-15.8 73.6-57 73.6-105.2 0-61.8-50.2-112-112-112zm-504 51a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm96 600a48.01 48.01 0 01-96 0 48.01 48.01 0 0196 0zm408-491a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"branches",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},66893:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M304 280h56c4.4 0 8-3.6 8-8 0-28.3 5.9-53.2 17.1-73.5 10.6-19.4 26-34.8 45.4-45.4C450.9 142 475.7 136 504 136h16c28.3 0 53.2 5.9 73.5 17.1 19.4 10.6 34.8 26 45.4 45.4C650 218.9 656 243.7 656 272c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-40-8.8-76.7-25.9-108.1a184.31 184.31 0 00-74-74C596.7 72.8 560 64 520 64h-16c-40 0-76.7 8.8-108.1 25.9a184.31 184.31 0 00-74 74C304.8 195.3 296 232 296 272c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M940 512H792V412c76.8 0 139-62.2 139-139 0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8a63 63 0 01-63 63H232a63 63 0 01-63-63c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 76.8 62.2 139 139 139v100H84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h148v96c0 6.5.2 13 .7 19.3C164.1 728.6 116 796.7 116 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-44.2 23.9-82.9 59.6-103.7a273 273 0 0022.7 49c24.3 41.5 59 76.2 100.5 100.5S460.5 960 512 960s99.8-13.9 141.3-38.2a281.38 281.38 0 00123.2-149.5A120 120 0 01836 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-79.3-48.1-147.4-116.7-176.7.4-6.4.7-12.8.7-19.3v-96h148c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM716 680c0 36.8-9.7 72-27.8 102.9-17.7 30.3-43 55.6-73.3 73.3C584 874.3 548.8 884 512 884s-72-9.7-102.9-27.8c-30.3-17.7-55.6-43-73.3-73.3A202.75 202.75 0 01308 680V412h408v268z"}}]},name:"bug",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},142:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M916 210H376c-17.7 0-32 14.3-32 32v236H108c-17.7 0-32 14.3-32 32v272c0 17.7 14.3 32 32 32h540c17.7 0 32-14.3 32-32V546h236c17.7 0 32-14.3 32-32V242c0-17.7-14.3-32-32-32zm-504 68h200v200H412V278zm-68 468H144V546h200v200zm268 0H412V546h200v200zm268-268H680V278h200v200z"}}]},name:"build",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},58937:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z"}}]},name:"bulb",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},56679:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M251.2 387H320v68.8c0 1.8 1.8 3.2 4 3.2h48c2.2 0 4-1.4 4-3.3V387h68.8c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H376v-68.8c0-1.8-1.8-3.2-4-3.2h-48c-2.2 0-4 1.4-4 3.2V331h-68.8c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm328 0h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm0 265h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm0 104h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm-195.7-81l61.2-74.9c4.3-5.2.7-13.1-5.9-13.1H388c-2.3 0-4.5 1-5.9 2.9l-34 41.6-34-41.6a7.85 7.85 0 00-5.9-2.9h-50.9c-6.6 0-10.2 7.9-5.9 13.1l61.2 74.9-62.7 76.8c-4.4 5.2-.8 13.1 5.8 13.1h50.8c2.3 0 4.5-1 5.9-2.9l35.5-43.5 35.5 43.5c1.5 1.8 3.7 2.9 5.9 2.9h50.8c6.6 0 10.2-7.9 5.9-13.1L383.5 675zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-36 732H180V180h664v664z"}}]},name:"calculator",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},26362:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},24089:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 248H728l-32.4-90.8a32.07 32.07 0 00-30.2-21.2H358.6c-13.5 0-25.6 8.5-30.1 21.2L296 248H160c-44.2 0-80 35.8-80 80v456c0 44.2 35.8 80 80 80h704c44.2 0 80-35.8 80-80V328c0-44.2-35.8-80-80-80zm8 536c0 4.4-3.6 8-8 8H160c-4.4 0-8-3.6-8-8V328c0-4.4 3.6-8 8-8h186.7l17.1-47.8 22.9-64.2h250.5l22.9 64.2 17.1 47.8H864c4.4 0 8 3.6 8 8v456zM512 384c-88.4 0-160 71.6-160 160s71.6 160 160 160 160-71.6 160-160-71.6-160-160-160zm0 256c-53 0-96-43-96-96s43-96 96-96 96 43 96 96-43 96-96 96z"}}]},name:"camera",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},3105:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M380 704h264c4.4 0 8-3.6 8-8v-84c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v36H428v-36c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v84c0 4.4 3.6 8 8 8zm340-123a40 40 0 1080 0 40 40 0 10-80 0zm239-167.6L935.3 372a8 8 0 00-10.9-2.9l-50.7 29.6-78.3-216.2a63.9 63.9 0 00-60.9-44.4H301.2c-34.7 0-65.5 22.4-76.2 55.5l-74.6 205.2-50.8-29.6a8 8 0 00-10.9 2.9L65 413.4c-2.2 3.8-.9 8.6 2.9 10.8l60.4 35.2-14.5 40c-1.2 3.2-1.8 6.6-1.8 10v348.2c0 15.7 11.8 28.4 26.3 28.4h67.6c12.3 0 23-9.3 25.6-22.3l7.7-37.7h545.6l7.7 37.7c2.7 13 13.3 22.3 25.6 22.3h67.6c14.5 0 26.3-12.7 26.3-28.4V509.4c0-3.4-.6-6.8-1.8-10l-14.5-40 60.3-35.2a8 8 0 003-10.8zM840 517v237H184V517l15.6-43h624.8l15.6 43zM292.7 218.1l.5-1.3.4-1.3c1.1-3.3 4.1-5.5 7.6-5.5h427.6l75.4 208H220l72.7-199.9zM224 581a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"car",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},24423:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v584zM688 420h-55.2c-5.1 0-10 2.5-13 6.6L468.9 634.4l-64.7-89c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.4 0-12.8-6.5-12.8z"}}]},name:"carry-out",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},38811:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},26067:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},3766:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 512.3v-.3c0-229.8-186.2-416-416-416S96 282.2 96 512v.4c0 229.8 186.2 416 416 416s416-186.2 416-416v-.3.2zm-6.7-74.6l.6 3.3-.6-3.3zM676.7 638.2c53.5-82.2 52.5-189.4-11.1-263.7l162.4-8.4c20.5 44.4 32 93.8 32 145.9 0 185.2-144.6 336.6-327.1 347.4l143.8-221.2zM512 652.3c-77.5 0-140.2-62.7-140.2-140.2 0-77.7 62.7-140.2 140.2-140.2S652.2 434.5 652.2 512 589.5 652.3 512 652.3zm369.2-331.7l-3-5.7 3 5.7zM512 164c121.3 0 228.2 62.1 290.4 156.2l-263.6-13.9c-97.5-5.7-190.2 49.2-222.3 141.1L227.8 311c63.1-88.9 166.9-147 284.2-147zM102.5 585.8c26 145 127.1 264 261.6 315.1C229.6 850 128.5 731 102.5 585.8zM164 512c0-55.9 13.2-108.7 36.6-155.5l119.7 235.4c44.1 86.7 137.4 139.7 234 121.6l-74 145.1C302.9 842.5 164 693.5 164 512zm324.7 415.4c4 .2 8 .4 12 .5-4-.2-8-.3-12-.5z"}}]},name:"chrome",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},67345:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},36029:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},99552:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},47852:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},82510:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M624 706.3h-74.1V464c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v242.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.7a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-download",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},138:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z"}},{tag:"path",attrs:{d:"M376.9 656.4c1.8-33.5 15.7-64.7 39.5-88.6 25.4-25.5 60-39.8 96-39.8 36.2 0 70.3 14.1 96 39.8 1.4 1.4 2.7 2.8 4.1 4.3l-25 19.6a8 8 0 003 14.1l98.2 24c5 1.2 9.9-2.6 9.9-7.7l.5-101.3c0-6.7-7.6-10.5-12.9-6.3L663 532.7c-36.6-42-90.4-68.6-150.5-68.6-107.4 0-195 85.1-199.4 191.7-.2 4.5 3.4 8.3 8 8.3H369c4.2-.1 7.7-3.4 7.9-7.7zM703 664h-47.9c-4.2 0-7.7 3.3-8 7.6-1.8 33.5-15.7 64.7-39.5 88.6-25.4 25.5-60 39.8-96 39.8-36.2 0-70.3-14.1-96-39.8-1.4-1.4-2.7-2.8-4.1-4.3l25-19.6a8 8 0 00-3-14.1l-98.2-24c-5-1.2-9.9 2.6-9.9 7.7l-.4 101.4c0 6.7 7.6 10.5 12.9 6.3l23.2-18.2c36.6 42 90.4 68.6 150.5 68.6 107.4 0 195-85.1 199.4-191.7.2-4.5-3.4-8.3-8-8.3z"}}]},name:"cloud-sync",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},92446:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-upload",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},72226:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M709.6 210l.4-.2h.2L512 96 313.9 209.8h-.2l.7.3L151.5 304v416L512 928l360.5-208V304l-162.9-94zM482.7 843.6L339.6 761V621.4L210 547.8V372.9l272.7 157.3v313.4zM238.2 321.5l134.7-77.8 138.9 79.7 139.1-79.9 135.2 78-273.9 158-274-158zM814 548.3l-128.8 73.1v139.1l-143.9 83V530.4L814 373.1v175.2z"}}]},name:"code-sandbox",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},94131:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M488.1 414.7V303.4L300.9 428l83.6 55.8zm254.1 137.7v-79.8l-59.8 39.9zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm278 533c0 1.1-.1 2.1-.2 3.1 0 .4-.1.7-.2 1a14.16 14.16 0 01-.8 3.2c-.2.6-.4 1.2-.6 1.7-.2.4-.4.8-.5 1.2-.3.5-.5 1.1-.8 1.6-.2.4-.4.7-.7 1.1-.3.5-.7 1-1 1.5-.3.4-.5.7-.8 1-.4.4-.8.9-1.2 1.3-.3.3-.6.6-1 .9-.4.4-.9.8-1.4 1.1-.4.3-.7.6-1.1.8-.1.1-.3.2-.4.3L525.2 786c-4 2.7-8.6 4-13.2 4-4.7 0-9.3-1.4-13.3-4L244.6 616.9c-.1-.1-.3-.2-.4-.3l-1.1-.8c-.5-.4-.9-.7-1.3-1.1-.3-.3-.6-.6-1-.9-.4-.4-.8-.8-1.2-1.3a7 7 0 01-.8-1c-.4-.5-.7-1-1-1.5-.2-.4-.5-.7-.7-1.1-.3-.5-.6-1.1-.8-1.6-.2-.4-.4-.8-.5-1.2-.2-.6-.4-1.2-.6-1.7-.1-.4-.3-.8-.4-1.2-.2-.7-.3-1.3-.4-2-.1-.3-.1-.7-.2-1-.1-1-.2-2.1-.2-3.1V427.9c0-1 .1-2.1.2-3.1.1-.3.1-.7.2-1a14.16 14.16 0 01.8-3.2c.2-.6.4-1.2.6-1.7.2-.4.4-.8.5-1.2.2-.5.5-1.1.8-1.6.2-.4.4-.7.7-1.1.6-.9 1.2-1.7 1.8-2.5.4-.4.8-.9 1.2-1.3.3-.3.6-.6 1-.9.4-.4.9-.8 1.3-1.1.4-.3.7-.6 1.1-.8.1-.1.3-.2.4-.3L498.7 239c8-5.3 18.5-5.3 26.5 0l254.1 169.1c.1.1.3.2.4.3l1.1.8 1.4 1.1c.3.3.6.6 1 .9.4.4.8.8 1.2 1.3.7.8 1.3 1.6 1.8 2.5.2.4.5.7.7 1.1.3.5.6 1 .8 1.6.2.4.4.8.5 1.2.2.6.4 1.2.6 1.7.1.4.3.8.4 1.2.2.7.3 1.3.4 2 .1.3.1.7.2 1 .1 1 .2 2.1.2 3.1V597zm-254.1 13.3v111.3L723.1 597l-83.6-55.8zM281.8 472.6v79.8l59.8-39.9zM512 456.1l-84.5 56.4 84.5 56.4 84.5-56.4zM723.1 428L535.9 303.4v111.3l103.6 69.1zM384.5 541.2L300.9 597l187.2 124.6V610.3l-103.6-69.1z"}}]},name:"codepen-circle",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},82138:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M911.7 385.3l-.3-1.5c-.2-1-.3-1.9-.6-2.9-.2-.6-.4-1.1-.5-1.7-.3-.8-.5-1.7-.9-2.5-.2-.6-.5-1.1-.8-1.7-.4-.8-.8-1.5-1.2-2.3-.3-.5-.6-1.1-1-1.6-.8-1.2-1.7-2.4-2.6-3.6-.5-.6-1.1-1.3-1.7-1.9-.4-.5-.9-.9-1.4-1.3-.6-.6-1.3-1.1-1.9-1.6-.5-.4-1-.8-1.6-1.2-.2-.1-.4-.3-.6-.4L531.1 117.8a34.3 34.3 0 00-38.1 0L127.3 361.3c-.2.1-.4.3-.6.4-.5.4-1 .8-1.6 1.2-.7.5-1.3 1.1-1.9 1.6-.5.4-.9.9-1.4 1.3-.6.6-1.2 1.2-1.7 1.9-1 1.1-1.8 2.3-2.6 3.6-.3.5-.7 1-1 1.6-.4.7-.8 1.5-1.2 2.3-.3.5-.5 1.1-.8 1.7-.3.8-.6 1.7-.9 2.5-.2.6-.4 1.1-.5 1.7-.2.9-.4 1.9-.6 2.9l-.3 1.5c-.2 1.5-.3 3-.3 4.5v243.5c0 1.5.1 3 .3 4.5l.3 1.5.6 2.9c.2.6.3 1.1.5 1.7.3.9.6 1.7.9 2.5.2.6.5 1.1.8 1.7.4.8.7 1.5 1.2 2.3.3.5.6 1.1 1 1.6.5.7.9 1.4 1.5 2.1l1.2 1.5c.5.6 1.1 1.3 1.7 1.9.4.5.9.9 1.4 1.3.6.6 1.3 1.1 1.9 1.6.5.4 1 .8 1.6 1.2.2.1.4.3.6.4L493 905.7c5.6 3.8 12.3 5.8 19.1 5.8 6.6 0 13.3-1.9 19.1-5.8l365.6-243.5c.2-.1.4-.3.6-.4.5-.4 1-.8 1.6-1.2.7-.5 1.3-1.1 1.9-1.6.5-.4.9-.9 1.4-1.3.6-.6 1.2-1.2 1.7-1.9l1.2-1.5 1.5-2.1c.3-.5.7-1 1-1.6.4-.8.8-1.5 1.2-2.3.3-.5.5-1.1.8-1.7.3-.8.6-1.7.9-2.5.2-.5.4-1.1.5-1.7.3-.9.4-1.9.6-2.9l.3-1.5c.2-1.5.3-3 .3-4.5V389.8c-.3-1.5-.4-3-.6-4.5zM546.4 210.5l269.4 179.4-120.3 80.4-149-99.6V210.5zm-68.8 0v160.2l-149 99.6-120.3-80.4 269.3-179.4zM180.7 454.1l86 57.5-86 57.5v-115zm296.9 358.5L208.3 633.2l120.3-80.4 149 99.6v160.2zM512 592.8l-121.6-81.2L512 430.3l121.6 81.2L512 592.8zm34.4 219.8V652.4l149-99.6 120.3 80.4-269.3 179.4zM843.3 569l-86-57.5 86-57.5v115z"}}]},name:"codepen",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},60227:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M275 281c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36zm613 144H768c0-39.8-32.2-72-72-72H200c-39.8 0-72 32.2-72 72v248c0 3.4.2 6.7.7 9.9-.5 7-.7 14-.7 21.1 0 176.7 143.3 320 320 320 160.1 0 292.7-117.5 316.3-271H888c39.8 0 72-32.2 72-72V497c0-39.8-32.2-72-72-72zM696 681h-1.1c.7 7.6 1.1 15.2 1.1 23 0 137-111 248-248 248S200 841 200 704c0-7.8.4-15.4 1.1-23H200V425h496v256zm192-8H776V497h112v176zM613 281c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36zm-170 0c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36z"}}]},name:"coffee",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},13255:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm198.4-588.1a32 32 0 00-24.5.5L414.9 415 296.4 686c-3.6 8.2-3.6 17.5 0 25.7 3.4 7.8 9.7 13.9 17.7 17 3.8 1.5 7.7 2.2 11.7 2.2 4.4 0 8.7-.9 12.8-2.7l271-118.6 118.5-271a32.06 32.06 0 00-17.7-42.7zM576.8 534.4l26.2 26.2-42.4 42.4-26.2-26.2L380 644.4 447.5 490 422 464.4l42.4-42.4 25.5 25.5L644.4 380l-67.6 154.4zM464.4 422L422 464.4l25.5 25.6 86.9 86.8 26.2 26.2 42.4-42.4-26.2-26.2-86.8-86.9z"}}]},name:"compass",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},90888:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M301.3 496.7c-23.8 0-40.2-10.5-41.6-26.9H205c.9 43.4 36.9 70.3 93.9 70.3 59.1 0 95-28.4 95-75.5 0-35.8-20-55.9-64.5-64.5l-29.1-5.6c-23.8-4.7-33.8-11.9-33.8-24.2 0-15 13.3-24.5 33.4-24.5 20.1 0 35.3 11.1 36.6 27h53c-.9-41.7-37.5-70.3-90.3-70.3-54.4 0-89.7 28.9-89.7 73 0 35.5 21.2 58 62.5 65.8l29.7 5.9c25.8 5.2 35.6 11.9 35.6 24.4.1 14.7-14.5 25.1-36 25.1z"}},{tag:"path",attrs:{d:"M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z"}},{tag:"path",attrs:{d:"M828.5 486.7h-95.8V308.5h-57.4V534h153.2zm-298.6 53.4c14.1 0 27.2-2 39.1-5.8l13.3 20.3h53.3L607.9 511c21.1-20 33-51.1 33-89.8 0-73.3-43.3-118.8-110.9-118.8s-111.2 45.3-111.2 118.8c-.1 73.7 43 118.9 111.1 118.9zm0-190c31.6 0 52.7 27.7 52.7 71.1 0 16.7-3.6 30.6-10 40.5l-5.2-6.9h-48.8L542 491c-3.9.9-8 1.4-12.2 1.4-31.7 0-52.8-27.5-52.8-71.2.1-43.6 21.2-71.1 52.9-71.1z"}}]},name:"console-sql",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},30074:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M594.3 601.5a111.8 111.8 0 0029.1-75.5c0-61.9-49.9-112-111.4-112s-111.4 50.1-111.4 112c0 29.1 11 55.5 29.1 75.5a158.09 158.09 0 00-74.6 126.1 8 8 0 008 8.4H407c4.2 0 7.6-3.3 7.9-7.5 3.8-50.6 46-90.5 97.2-90.5s93.4 40 97.2 90.5c.3 4.2 3.7 7.5 7.9 7.5H661a8 8 0 008-8.4c-2.8-53.3-32-99.7-74.7-126.1zM512 578c-28.5 0-51.7-23.3-51.7-52s23.2-52 51.7-52 51.7 23.3 51.7 52-23.2 52-51.7 52zm416-354H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zm-40 568H136V296h120v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h120v496z"}}]},name:"contacts",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},82463:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V687h97.9c11.6 32.8 32 62.3 59.1 84.7 34.5 28.5 78.2 44.3 123 44.3s88.5-15.7 123-44.3c27.1-22.4 47.5-51.9 59.1-84.7H792v-63H643.6l-5.2 24.7C626.4 708.5 573.2 752 512 752s-114.4-43.5-126.5-103.3l-5.2-24.7H232V136h560v752zM320 341h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 160h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}}]},name:"container",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},46802:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM340 683v77c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-77c-10.1 3.3-20.8 5-32 5s-21.9-1.8-32-5zm64-198V264c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v221c10.1-3.3 20.8-5 32-5s21.9 1.8 32 5zm-64 198c10.1 3.3 20.8 5 32 5s21.9-1.8 32-5c41.8-13.5 72-52.7 72-99s-30.2-85.5-72-99c-10.1-3.3-20.8-5-32-5s-21.9 1.8-32 5c-41.8 13.5-72 52.7-72 99s30.2 85.5 72 99zm.1-115.7c.3-.6.7-1.2 1-1.8v-.1l1.2-1.8c.1-.2.2-.3.3-.5.3-.5.7-.9 1-1.4.1-.1.2-.3.3-.4.5-.6.9-1.1 1.4-1.6l.3-.3 1.2-1.2.4-.4c.5-.5 1-.9 1.6-1.4.6-.5 1.1-.9 1.7-1.3.2-.1.3-.2.5-.3.5-.3.9-.7 1.4-1 .1-.1.3-.2.4-.3.6-.4 1.2-.7 1.9-1.1.1-.1.3-.1.4-.2.5-.3 1-.5 1.6-.8l.6-.3c.7-.3 1.3-.6 2-.8.7-.3 1.4-.5 2.1-.7.2-.1.4-.1.6-.2.6-.2 1.1-.3 1.7-.4.2 0 .3-.1.5-.1.7-.2 1.5-.3 2.2-.4.2 0 .3 0 .5-.1.6-.1 1.2-.1 1.8-.2h.6c.8 0 1.5-.1 2.3-.1s1.5 0 2.3.1h.6c.6 0 1.2.1 1.8.2.2 0 .3 0 .5.1.7.1 1.5.2 2.2.4.2 0 .3.1.5.1.6.1 1.2.3 1.7.4.2.1.4.1.6.2.7.2 1.4.4 2.1.7.7.2 1.3.5 2 .8l.6.3c.5.2 1.1.5 1.6.8.1.1.3.1.4.2.6.3 1.3.7 1.9 1.1.1.1.3.2.4.3.5.3 1 .6 1.4 1 .2.1.3.2.5.3.6.4 1.2.9 1.7 1.3s1.1.9 1.6 1.4l.4.4 1.2 1.2.3.3c.5.5 1 1.1 1.4 1.6.1.1.2.3.3.4.4.4.7.9 1 1.4.1.2.2.3.3.5l1.2 1.8s0 .1.1.1a36.18 36.18 0 015.1 18.5c0 6-1.5 11.7-4.1 16.7-.3.6-.7 1.2-1 1.8 0 0 0 .1-.1.1l-1.2 1.8c-.1.2-.2.3-.3.5-.3.5-.7.9-1 1.4-.1.1-.2.3-.3.4-.5.6-.9 1.1-1.4 1.6l-.3.3-1.2 1.2-.4.4c-.5.5-1 .9-1.6 1.4-.6.5-1.1.9-1.7 1.3-.2.1-.3.2-.5.3-.5.3-.9.7-1.4 1-.1.1-.3.2-.4.3-.6.4-1.2.7-1.9 1.1-.1.1-.3.1-.4.2-.5.3-1 .5-1.6.8l-.6.3c-.7.3-1.3.6-2 .8-.7.3-1.4.5-2.1.7-.2.1-.4.1-.6.2-.6.2-1.1.3-1.7.4-.2 0-.3.1-.5.1-.7.2-1.5.3-2.2.4-.2 0-.3 0-.5.1-.6.1-1.2.1-1.8.2h-.6c-.8 0-1.5.1-2.3.1s-1.5 0-2.3-.1h-.6c-.6 0-1.2-.1-1.8-.2-.2 0-.3 0-.5-.1-.7-.1-1.5-.2-2.2-.4-.2 0-.3-.1-.5-.1-.6-.1-1.2-.3-1.7-.4-.2-.1-.4-.1-.6-.2-.7-.2-1.4-.4-2.1-.7-.7-.2-1.3-.5-2-.8l-.6-.3c-.5-.2-1.1-.5-1.6-.8-.1-.1-.3-.1-.4-.2-.6-.3-1.3-.7-1.9-1.1-.1-.1-.3-.2-.4-.3-.5-.3-1-.6-1.4-1-.2-.1-.3-.2-.5-.3-.6-.4-1.2-.9-1.7-1.3s-1.1-.9-1.6-1.4l-.4-.4-1.2-1.2-.3-.3c-.5-.5-1-1.1-1.4-1.6-.1-.1-.2-.3-.3-.4-.4-.4-.7-.9-1-1.4-.1-.2-.2-.3-.3-.5l-1.2-1.8v-.1c-.4-.6-.7-1.2-1-1.8-2.6-5-4.1-10.7-4.1-16.7s1.5-11.7 4.1-16.7zM620 539v221c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V539c-10.1 3.3-20.8 5-32 5s-21.9-1.8-32-5zm64-198v-77c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v77c10.1-3.3 20.8-5 32-5s21.9 1.8 32 5zm-64 198c10.1 3.3 20.8 5 32 5s21.9-1.8 32-5c41.8-13.5 72-52.7 72-99s-30.2-85.5-72-99c-10.1-3.3-20.8-5-32-5s-21.9 1.8-32 5c-41.8 13.5-72 52.7-72 99s30.2 85.5 72 99zm.1-115.7c.3-.6.7-1.2 1-1.8v-.1l1.2-1.8c.1-.2.2-.3.3-.5.3-.5.7-.9 1-1.4.1-.1.2-.3.3-.4.5-.6.9-1.1 1.4-1.6l.3-.3 1.2-1.2.4-.4c.5-.5 1-.9 1.6-1.4.6-.5 1.1-.9 1.7-1.3.2-.1.3-.2.5-.3.5-.3.9-.7 1.4-1 .1-.1.3-.2.4-.3.6-.4 1.2-.7 1.9-1.1.1-.1.3-.1.4-.2.5-.3 1-.5 1.6-.8l.6-.3c.7-.3 1.3-.6 2-.8.7-.3 1.4-.5 2.1-.7.2-.1.4-.1.6-.2.6-.2 1.1-.3 1.7-.4.2 0 .3-.1.5-.1.7-.2 1.5-.3 2.2-.4.2 0 .3 0 .5-.1.6-.1 1.2-.1 1.8-.2h.6c.8 0 1.5-.1 2.3-.1s1.5 0 2.3.1h.6c.6 0 1.2.1 1.8.2.2 0 .3 0 .5.1.7.1 1.5.2 2.2.4.2 0 .3.1.5.1.6.1 1.2.3 1.7.4.2.1.4.1.6.2.7.2 1.4.4 2.1.7.7.2 1.3.5 2 .8l.6.3c.5.2 1.1.5 1.6.8.1.1.3.1.4.2.6.3 1.3.7 1.9 1.1.1.1.3.2.4.3.5.3 1 .6 1.4 1 .2.1.3.2.5.3.6.4 1.2.9 1.7 1.3s1.1.9 1.6 1.4l.4.4 1.2 1.2.3.3c.5.5 1 1.1 1.4 1.6.1.1.2.3.3.4.4.4.7.9 1 1.4.1.2.2.3.3.5l1.2 1.8v.1a36.18 36.18 0 015.1 18.5c0 6-1.5 11.7-4.1 16.7-.3.6-.7 1.2-1 1.8v.1l-1.2 1.8c-.1.2-.2.3-.3.5-.3.5-.7.9-1 1.4-.1.1-.2.3-.3.4-.5.6-.9 1.1-1.4 1.6l-.3.3-1.2 1.2-.4.4c-.5.5-1 .9-1.6 1.4-.6.5-1.1.9-1.7 1.3-.2.1-.3.2-.5.3-.5.3-.9.7-1.4 1-.1.1-.3.2-.4.3-.6.4-1.2.7-1.9 1.1-.1.1-.3.1-.4.2-.5.3-1 .5-1.6.8l-.6.3c-.7.3-1.3.6-2 .8-.7.3-1.4.5-2.1.7-.2.1-.4.1-.6.2-.6.2-1.1.3-1.7.4-.2 0-.3.1-.5.1-.7.2-1.5.3-2.2.4-.2 0-.3 0-.5.1-.6.1-1.2.1-1.8.2h-.6c-.8 0-1.5.1-2.3.1s-1.5 0-2.3-.1h-.6c-.6 0-1.2-.1-1.8-.2-.2 0-.3 0-.5-.1-.7-.1-1.5-.2-2.2-.4-.2 0-.3-.1-.5-.1-.6-.1-1.2-.3-1.7-.4-.2-.1-.4-.1-.6-.2-.7-.2-1.4-.4-2.1-.7-.7-.2-1.3-.5-2-.8l-.6-.3c-.5-.2-1.1-.5-1.6-.8-.1-.1-.3-.1-.4-.2-.6-.3-1.3-.7-1.9-1.1-.1-.1-.3-.2-.4-.3-.5-.3-1-.6-1.4-1-.2-.1-.3-.2-.5-.3-.6-.4-1.2-.9-1.7-1.3s-1.1-.9-1.6-1.4l-.4-.4-1.2-1.2-.3-.3c-.5-.5-1-1.1-1.4-1.6-.1-.1-.2-.3-.3-.4-.4-.4-.7-.9-1-1.4-.1-.2-.2-.3-.3-.5l-1.2-1.8v-.1c-.4-.6-.7-1.2-1-1.8-2.6-5-4.1-10.7-4.1-16.7s1.5-11.7 4.1-16.7z"}}]},name:"control",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},43774:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M899.6 276.5L705 396.4 518.4 147.5a8.06 8.06 0 00-12.9 0L319 396.4 124.3 276.5c-5.7-3.5-13.1 1.2-12.2 7.9L188.5 865c1.1 7.9 7.9 14 16 14h615.1c8 0 14.9-6 15.9-14l76.4-580.6c.8-6.7-6.5-11.4-12.3-7.9zm-126 534.1H250.3l-53.8-409.4 139.8 86.1L512 252.9l175.7 234.4 139.8-86.1-53.9 409.4zM512 509c-62.1 0-112.6 50.5-112.6 112.6S449.9 734.2 512 734.2s112.6-50.5 112.6-112.6S574.1 509 512 509zm0 160.9c-26.6 0-48.2-21.6-48.2-48.3 0-26.6 21.6-48.3 48.2-48.3s48.2 21.6 48.2 48.3c0 26.6-21.6 48.3-48.2 48.3z"}}]},name:"crown",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},7079:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 128c-212.1 0-384 171.9-384 384v360c0 13.3 10.7 24 24 24h184c35.3 0 64-28.7 64-64V624c0-35.3-28.7-64-64-64H200v-48c0-172.3 139.7-312 312-312s312 139.7 312 312v48H688c-35.3 0-64 28.7-64 64v208c0 35.3 28.7 64 64 64h184c13.3 0 24-10.7 24-24V512c0-212.1-171.9-384-384-384zM328 632v192H200V632h128zm496 192H696V632h128v192z"}}]},name:"customer-service",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},48990:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 385.6a446.7 446.7 0 00-96-142.4 446.7 446.7 0 00-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 00-142.4 96 446.7 446.7 0 00-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6A371.12 371.12 0 01140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276zM623.5 421.5a8.03 8.03 0 00-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5a55.95 55.95 0 000 79.2 55.95 55.95 0 0079.2 0 55.87 55.87 0 0014.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8zm260 218v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zm12.7-197.2l-31.1-31.1a8.03 8.03 0 00-11.3 0l-56.6 56.6a8.03 8.03 0 000 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zm-458.6-31.1a8.03 8.03 0 00-11.3 0l-31.1 31.1a8.03 8.03 0 000 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z"}}]},name:"dashboard",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},80088:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"database",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},93598:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},88668:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888.3 693.2c-42.5-24.6-94.3-18-129.2 12.8l-53-30.7V523.6c0-15.7-8.4-30.3-22-38.1l-136-78.3v-67.1c44.2-15 76-56.8 76-106.1 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 49.3 31.8 91.1 76 106.1v67.1l-136 78.3c-13.6 7.8-22 22.4-22 38.1v151.6l-53 30.7c-34.9-30.8-86.8-37.4-129.2-12.8-53.5 31-71.7 99.4-41 152.9 30.8 53.5 98.9 71.9 152.2 41 42.5-24.6 62.7-73 53.6-118.8l48.7-28.3 140.6 81c6.8 3.9 14.4 5.9 22 5.9s15.2-2 22-5.9L674.5 740l48.7 28.3c-9.1 45.7 11.2 94.2 53.6 118.8 53.3 30.9 121.5 12.6 152.2-41 30.8-53.6 12.6-122-40.7-152.9zm-673 138.4a47.6 47.6 0 01-65.2-17.6c-13.2-22.9-5.4-52.3 17.5-65.5a47.6 47.6 0 0165.2 17.6c13.2 22.9 5.4 52.3-17.5 65.5zM522 463.8zM464 234a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm170 446.2l-122 70.3-122-70.3V539.8l122-70.3 122 70.3v140.4zm239.9 133.9c-13.2 22.9-42.4 30.8-65.2 17.6-22.8-13.2-30.7-42.6-17.5-65.5s42.4-30.8 65.2-17.6c22.9 13.2 30.7 42.5 17.5 65.5z"}}]},name:"deployment-unit",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},68456:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M573.7 252.5C422.5 197.4 201.3 96.7 201.3 96.7c-15.7-4.1-17.9 11.1-17.9 11.1-5 61.1 33.6 160.5 53.6 182.8 19.9 22.3 319.1 113.7 319.1 113.7S326 357.9 270.5 341.9c-55.6-16-37.9 17.8-37.9 17.8 11.4 61.7 64.9 131.8 107.2 138.4 42.2 6.6 220.1 4 220.1 4s-35.5 4.1-93.2 11.9c-42.7 5.8-97 12.5-111.1 17.8-33.1 12.5 24 62.6 24 62.6 84.7 76.8 129.7 50.5 129.7 50.5 33.3-10.7 61.4-18.5 85.2-24.2L565 743.1h84.6L603 928l205.3-271.9H700.8l22.3-38.7c.3.5.4.8.4.8S799.8 496.1 829 433.8l.6-1h-.1c5-10.8 8.6-19.7 10-25.8 17-71.3-114.5-99.4-265.8-154.5z"}}]},name:"dingding",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},44627:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M573.7 252.5C422.5 197.4 201.3 96.7 201.3 96.7c-15.7-4.1-17.9 11.1-17.9 11.1-5 61.1 33.6 160.5 53.6 182.8 19.9 22.3 319.1 113.7 319.1 113.7S326 357.9 270.5 341.9c-55.6-16-37.9 17.8-37.9 17.8 11.4 61.7 64.9 131.8 107.2 138.4 42.2 6.6 220.1 4 220.1 4s-35.5 4.1-93.2 11.9c-42.7 5.8-97 12.5-111.1 17.8-33.1 12.5 24 62.6 24 62.6 84.7 76.8 129.7 50.5 129.7 50.5 33.3-10.7 61.4-18.5 85.2-24.2L565 743.1h84.6L603 928l205.3-271.9H700.8l22.3-38.7c.3.5.4.8.4.8S799.8 496.1 829 433.8l.6-1h-.1c5-10.8 8.6-19.7 10-25.8 17-71.3-114.5-99.4-265.8-154.5z"}}]},name:"dingtalk",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},14103:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},40756:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},84032:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 96C282.6 96 96 282.6 96 512s186.6 416 416 416 416-186.6 416-416S741.4 96 512 96zm275.1 191.8c49.5 60.5 79.5 137.5 80.2 221.4-11.7-2.5-129.2-26.3-247.4-11.4-2.5-6.1-5-12.2-7.6-18.3-7.4-17.3-15.3-34.6-23.6-51.5C720 374.3 779.6 298 787.1 287.8zM512 157.2c90.3 0 172.8 33.9 235.5 89.5-6.4 9.1-59.9 81-186.2 128.4-58.2-107-122.7-194.8-132.6-208 27.3-6.6 55.2-9.9 83.3-9.9zM360.9 191c9.4 12.8 72.9 100.9 131.7 205.5C326.4 440.6 180 440 164.1 439.8c23.1-110.3 97.4-201.9 196.8-248.8zM156.7 512.5c0-3.6.1-7.3.2-10.9 15.5.3 187.7 2.5 365.2-50.6 10.2 19.9 19.9 40.1 28.8 60.3-4.7 1.3-9.4 2.7-14 4.2C353.6 574.9 256.1 736.4 248 750.1c-56.7-63-91.3-146.3-91.3-237.6zM512 867.8c-82.2 0-157.9-28-218.1-75 6.4-13.1 78.3-152 278.7-221.9l2.3-.8c49.9 129.6 70.5 238.3 75.8 269.5A350.46 350.46 0 01512 867.8zm198.5-60.7c-3.6-21.6-22.5-125.6-69-253.3C752.9 536 850.7 565.2 862.8 569c-15.8 98.8-72.5 184.2-152.3 238.1z"}}]},name:"dribbble",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},73576:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M64 556.9l264.2 173.5L512.5 577 246.8 412.7zm896-290.3zm0 0L696.8 95 512.5 248.5l265.2 164.2L512.5 577l184.3 153.4L960 558.8 777.7 412.7zM513 609.8L328.2 763.3l-79.4-51.5v57.8L513 928l263.7-158.4v-57.8l-78.9 51.5zM328.2 95L64 265.1l182.8 147.6 265.7-164.2zM64 556.9z"}}]},name:"dropbox",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},52318:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},7541:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},52629:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},8597:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},30234:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},6516:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-32 736H663.9V602.2h104l15.6-120.7H663.9v-77.1c0-35 9.7-58.8 59.8-58.8h63.9v-108c-11.1-1.5-49-4.8-93.2-4.8-92.2 0-155.3 56.3-155.3 159.6v89H434.9v120.7h104.3V848H176V176h672v672z"}}]},name:"facebook",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},21883:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M553.1 509.1l-77.8 99.2-41.1-52.4a8 8 0 00-12.6 0l-99.8 127.2a7.98 7.98 0 006.3 12.9H696c6.7 0 10.4-7.7 6.3-12.9l-136.5-174a8.1 8.1 0 00-12.7 0zM360 442a40 40 0 1080 0 40 40 0 10-80 0zm494.6-153.4L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file-image",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},36436:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:function(t,e){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:e}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},87942:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M834.1 469.2A347.49 347.49 0 00751.2 354l-29.1-26.7a8.09 8.09 0 00-13 3.3l-13 37.3c-8.1 23.4-23 47.3-44.1 70.8-1.4 1.5-3 1.9-4.1 2-1.1.1-2.8-.1-4.3-1.5-1.4-1.2-2.1-3-2-4.8 3.7-60.2-14.3-128.1-53.7-202C555.3 171 510 123.1 453.4 89.7l-41.3-24.3c-5.4-3.2-12.3 1-12 7.3l2.2 48c1.5 32.8-2.3 61.8-11.3 85.9-11 29.5-26.8 56.9-47 81.5a295.64 295.64 0 01-47.5 46.1 352.6 352.6 0 00-100.3 121.5A347.75 347.75 0 00160 610c0 47.2 9.3 92.9 27.7 136a349.4 349.4 0 0075.5 110.9c32.4 32 70 57.2 111.9 74.7C418.5 949.8 464.5 959 512 959s93.5-9.2 136.9-27.3A348.6 348.6 0 00760.8 857c32.4-32 57.8-69.4 75.5-110.9a344.2 344.2 0 0027.7-136c0-48.8-10-96.2-29.9-140.9zM713 808.5c-53.7 53.2-125 82.4-201 82.4s-147.3-29.2-201-82.4c-53.5-53.1-83-123.5-83-198.4 0-43.5 9.8-85.2 29.1-124 18.8-37.9 46.8-71.8 80.8-97.9a349.6 349.6 0 0058.6-56.8c25-30.5 44.6-64.5 58.2-101a240 240 0 0012.1-46.5c24.1 22.2 44.3 49 61.2 80.4 33.4 62.6 48.8 118.3 45.8 165.7a74.01 74.01 0 0024.4 59.8 73.36 73.36 0 0053.4 18.8c19.7-1 37.8-9.7 51-24.4 13.3-14.9 24.8-30.1 34.4-45.6 14 17.9 25.7 37.4 35 58.4 15.9 35.8 24 73.9 24 113.1 0 74.9-29.5 145.4-83 198.4z"}}]},name:"fire",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},24959:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M484 443.1V528h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H484v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V584h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H540v-84.9c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1zm396-144.7H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder-add",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},22630:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M840 192h-56v-72c0-13.3-10.7-24-24-24H168c-13.3 0-24 10.7-24 24v272c0 13.3 10.7 24 24 24h592c13.3 0 24-10.7 24-24V256h32v200H465c-22.1 0-40 17.9-40 40v136h-44c-4.4 0-8 3.6-8 8v228c0 .6.1 1.3.2 1.9A83.99 83.99 0 00457 960c46.4 0 84-37.6 84-84 0-2.1-.1-4.1-.2-6.1.1-.6.2-1.2.2-1.9V640c0-4.4-3.6-8-8-8h-44V520h351c22.1 0 40-17.9 40-40V232c0-22.1-17.9-40-40-40zM720 352H208V160h512v192zM477 876c0 11-9 20-20 20s-20-9-20-20V696h40v180z"}}]},name:"format-painter",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},53578:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 310H732.4c13.6-21.4 21.6-46.8 21.6-74 0-76.1-61.9-138-138-138-41.4 0-78.7 18.4-104 47.4-25.3-29-62.6-47.4-104-47.4-76.1 0-138 61.9-138 138 0 27.2 7.9 52.6 21.6 74H144c-17.7 0-32 14.3-32 32v200c0 4.4 3.6 8 8 8h40v344c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V550h40c4.4 0 8-3.6 8-8V342c0-17.7-14.3-32-32-32zm-334-74c0-38.6 31.4-70 70-70s70 31.4 70 70-31.4 70-70 70h-70v-70zm-138-70c38.6 0 70 31.4 70 70v70h-70c-38.6 0-70-31.4-70-70s31.4-70 70-70zM180 482V378h298v104H180zm48 68h250v308H228V550zm568 308H546V550h250v308zm48-376H546V378h298v104z"}}]},name:"gift",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},17122:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},16125:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M913.9 552.2L805 181.4v-.1c-7.6-22.9-25.7-36.5-48.3-36.5-23.4 0-42.5 13.5-49.7 35.2l-71.4 213H388.8l-71.4-213c-7.2-21.7-26.3-35.2-49.7-35.2-23.1 0-42.5 14.8-48.4 36.6L110.5 552.2c-4.4 14.7 1.2 31.4 13.5 40.7l368.5 276.4c2.6 3.6 6.2 6.3 10.4 7.8l8.6 6.4 8.5-6.4c4.9-1.7 9-4.7 11.9-8.9l368.4-275.4c12.4-9.2 18-25.9 13.6-40.6zM751.7 193.4c1-1.8 2.9-1.9 3.5-1.9 1.1 0 2.5.3 3.4 3L818 394.3H684.5l67.2-200.9zm-487.4 1c.9-2.6 2.3-2.9 3.4-2.9 2.7 0 2.9.1 3.4 1.7l67.3 201.2H206.5l57.8-200zM158.8 558.7l28.2-97.3 202.4 270.2-230.6-172.9zm73.9-116.4h122.1l90.8 284.3-212.9-284.3zM512.9 776L405.7 442.3H620L512.9 776zm157.9-333.7h119.5L580 723.1l90.8-280.8zm-40.7 293.9l207.3-276.7 29.5 99.2-236.8 177.5z"}}]},name:"gitlab",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},87851:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M881 442.4H519.7v148.5h206.4c-8.9 48-35.9 88.6-76.6 115.8-34.4 23-78.3 36.6-129.9 36.6-99.9 0-184.4-67.5-214.6-158.2-7.6-23-12-47.6-12-72.9s4.4-49.9 12-72.9c30.3-90.6 114.8-158.1 214.7-158.1 56.3 0 106.8 19.4 146.6 57.4l110-110.1c-66.5-62-153.2-100-256.6-100-149.9 0-279.6 86-342.7 211.4-26 51.8-40.8 110.4-40.8 172.4S151 632.8 177 684.6C240.1 810 369.8 896 519.7 896c103.6 0 190.4-34.4 253.8-93 72.5-66.8 114.4-165.2 114.4-282.1 0-27.2-2.4-53.3-6.9-78.5z"}}]},name:"google",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},29566:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M879.5 470.4c-.3-27-.4-54.2-.5-81.3h-80.8c-.3 27-.5 54.1-.7 81.3-27.2.1-54.2.3-81.2.6v80.9c27 .3 54.2.5 81.2.8.3 27 .3 54.1.5 81.1h80.9c.1-27 .3-54.1.5-81.3 27.2-.3 54.2-.4 81.2-.7v-80.9c-26.9-.2-54.1-.2-81.1-.5zm-530 .4c-.1 32.3 0 64.7.1 97 54.2 1.8 108.5 1 162.7 1.8-23.9 120.3-187.4 159.3-273.9 80.7-89-68.9-84.8-220 7.7-284 64.7-51.6 156.6-38.9 221.3 5.8 25.4-23.5 49.2-48.7 72.1-74.7-53.8-42.9-119.8-73.5-190-70.3-146.6-4.9-281.3 123.5-283.7 270.2-9.4 119.9 69.4 237.4 180.6 279.8 110.8 42.7 252.9 13.6 323.7-86 46.7-62.9 56.8-143.9 51.3-220-90.7-.7-181.3-.6-271.9-.3z"}}]},name:"google-plus",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},46061:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M145 96l66 746.6L511.8 928l299.6-85.4L878.7 96H145zm610.9 700.6l-244.1 69.6-245.2-69.6-56.7-641.2h603.8l-57.8 641.2zM281 249l1.7 24.3 22.7 253.5h206.5v-.1h112.9l-11.4 118.5L511 672.9v.2h-.8l-102.4-27.7-6.5-73.2h-91l11.3 144.7 188.6 52h1.7v-.4l187.7-51.7 1.7-16.3 21.2-242.2 3.2-24.3H511v.2H389.9l-8.2-94.2h352.1l1.7-19.5 4.8-47.2L742 249H511z"}}]},name:"html5",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},92136:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M852.6 367.6c16.3-36.9 32.1-90.7 32.1-131.8 0-109.1-119.5-147.6-314.5-57.9-161.4-10.8-316.8 110.5-355.6 279.7 46.3-52.3 117.4-123.4 183-151.7C316.1 378.3 246.7 470 194 565.6c-31.1 56.9-66 148.8-66 217.5 0 147.9 139.3 129.8 270.4 63 47.1 23.1 99.8 23.4 152.5 23.4 145.7 0 276.4-81.4 325.2-219H694.9c-78.8 132.9-295.2 79.5-295.2-71.2h493.2c9.6-65.4-2.5-143.6-40.3-211.7zM224.8 648.3c26.6 76.7 80.6 143.8 150.4 185-133.1 73.4-259.9 43.6-150.4-185zm174-163.3c3-82.7 75.4-142.3 156-142.3 80.1 0 153 59.6 156 142.3h-312zm276.8-281.4c32.1-15.4 72.8-33 108.8-33 47.1 0 81.4 32.6 81.4 80.6 0 30-11.1 73.5-21.9 101.8-39.3-63.5-98.9-122.4-168.3-149.4z"}}]},name:"ie",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},17850:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},29248:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},50329:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},84890:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM305.8 637.7c3.1 3.1 8.1 3.1 11.3 0l138.3-137.6L583 628.5c3.1 3.1 8.2 3.1 11.3 0l275.4-275.3c3.1-3.1 3.1-8.2 0-11.3l-39.6-39.6a8.03 8.03 0 00-11.3 0l-230 229.9L461.4 404a8.03 8.03 0 00-11.3 0L266.3 586.7a8.03 8.03 0 000 11.3l39.5 39.7z"}}]},name:"line-chart",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},80069:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.7 112H176.3c-35.5 0-64.3 28.8-64.3 64.3v671.4c0 35.5 28.8 64.3 64.3 64.3h671.4c35.5 0 64.3-28.8 64.3-64.3V176.3c0-35.5-28.8-64.3-64.3-64.3zm0 736c-447.8-.1-671.7-.2-671.7-.3.1-447.8.2-671.7.3-671.7 447.8.1 671.7.2 671.7.3-.1 447.8-.2 671.7-.3 671.7zM230.6 411.9h118.7v381.8H230.6zm59.4-52.2c37.9 0 68.8-30.8 68.8-68.8a68.8 68.8 0 10-137.6 0c-.1 38 30.7 68.8 68.8 68.8zm252.3 245.1c0-49.8 9.5-98 71.2-98 60.8 0 61.7 56.9 61.7 101.2v185.7h118.6V584.3c0-102.8-22.2-181.9-142.3-181.9-57.7 0-96.4 31.7-112.3 61.7h-1.6v-52.2H423.7v381.8h118.6V604.8z"}}]},name:"linkedin",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},93567:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},58676:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M834.7 279.8l61.3-58.9V208H683.7L532.4 586.4 360.3 208H137.7v12.9l71.6 86.6c7 6.4 10.6 15.8 9.7 25.2V673c2.2 12.3-1.7 24.8-10.3 33.7L128 805v12.7h228.6v-12.9l-80.6-98a39.99 39.99 0 01-11.1-33.7V378.7l200.7 439.2h23.3l172.6-439.2v349.9c0 9.2 0 11.1-6 17.2l-62.1 60.3V819h301.2v-12.9l-59.9-58.9c-5.2-4-7.9-10.7-6.8-17.2V297a18.1 18.1 0 016.8-17.2z"}}]},name:"medium",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},31201:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},76157:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z"}}]},name:"menu-unfold",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},90911:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482.2 508.4L331.3 389c-3-2.4-7.3-.2-7.3 3.6V478H184V184h204v128c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V144c0-15.5-12.5-28-28-28H144c-15.5 0-28 12.5-28 28v736c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v128H184V546h140v85.4c0 3.8 4.4 6 7.3 3.6l150.9-119.4a4.5 4.5 0 000-7.2zM880 116H596c-15.5 0-28 12.5-28 28v168c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V184h204v294H700v-85.4c0-3.8-4.3-6-7.3-3.6l-151 119.4a4.52 4.52 0 000 7.1l151 119.5c2.9 2.3 7.3.2 7.3-3.6V546h140v294H636V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v168c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V144c0-15.5-12.5-28-28-28z"}}]},name:"merge-cells",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},78854:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"more",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},54466:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},90628:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:function(t,e){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:e}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:e}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:e}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},75132:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},46221:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M824.8 613.2c-16-51.4-34.4-94.6-62.7-165.3C766.5 262.2 689.3 112 511.5 112 331.7 112 256.2 265.2 261 447.9c-28.4 70.8-46.7 113.7-62.7 165.3-34 109.5-23 154.8-14.6 155.8 18 2.2 70.1-82.4 70.1-82.4 0 49 25.2 112.9 79.8 159-26.4 8.1-85.7 29.9-71.6 53.8 11.4 19.3 196.2 12.3 249.5 6.3 53.3 6 238.1 13 249.5-6.3 14.1-23.8-45.3-45.7-71.6-53.8 54.6-46.2 79.8-110.1 79.8-159 0 0 52.1 84.6 70.1 82.4 8.5-1.1 19.5-46.4-14.5-155.8z"}}]},name:"qq",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},68e3:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},32977:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 00-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0043.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0043.1-30.5 97.52 97.52 0 0021.4-60.8c0-8.4-1.1-16.4-3.1-23.8H864zM762.3 621.4c9.4 14.6 17 30.3 22.5 46.6H700V558.7a211.6 211.6 0 0162.3 62.7zM388 483.1V318.8l124-147 124 147V668H388V483.1zM239.2 668c5.5-16.3 13.1-32 22.5-46.6 16.3-25.2 37.5-46.5 62.3-62.7V668h-84.8zm388.9 116.2c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5-38.3 0-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 01-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5zM464 400a48 48 0 1096 0 48 48 0 10-96 0z"}}]},name:"rocket",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},68388:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},42877:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},78602:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},51600:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M883.7 578.6c4.1-22.5 6.3-45.5 6.3-68.5 0-51-10-100.5-29.7-147-19-45-46.3-85.4-81-120.1a375.79 375.79 0 00-120.1-80.9c-46.6-19.7-96-29.7-147-29.7-24 0-48.1 2.3-71.5 6.8A225.1 225.1 0 00335.6 113c-59.7 0-115.9 23.3-158.1 65.5A222.25 222.25 0 00112 336.6c0 38 9.8 75.4 28.1 108.4-3.7 21.4-5.7 43.3-5.7 65.1 0 51 10 100.5 29.7 147 19 45 46.2 85.4 80.9 120.1 34.7 34.7 75.1 61.9 120.1 80.9 46.6 19.7 96 29.7 147 29.7 22.2 0 44.4-2 66.2-5.9 33.5 18.9 71.3 29 110 29 59.7 0 115.9-23.2 158.1-65.5 42.3-42.2 65.5-98.4 65.5-158.1.1-38-9.7-75.5-28.2-108.7zm-88.1 216C766.9 823.4 729 839 688.4 839c-26.1 0-51.8-6.8-74.6-19.7l-22.5-12.7-25.5 4.5c-17.8 3.2-35.8 4.8-53.6 4.8-41.4 0-81.3-8.1-119.1-24.1-36.3-15.3-69-37.3-97.2-65.5a304.29 304.29 0 01-65.5-97.1c-16-37.7-24-77.6-24-119 0-17.4 1.6-35.2 4.6-52.8l4.4-25.1L203 410a151.02 151.02 0 01-19.1-73.4c0-40.6 15.7-78.5 44.4-107.2C257.1 200.7 295 185 335.6 185a153 153 0 0171.4 17.9l22.4 11.8 24.8-4.8c18.9-3.6 38.4-5.5 58-5.5 41.4 0 81.3 8.1 119 24 36.5 15.4 69.1 37.4 97.2 65.5 28.2 28.1 50.2 60.8 65.6 97.2 16 37.7 24 77.6 24 119 0 18.4-1.7 37-5.1 55.5l-4.7 25.5 12.6 22.6c12.6 22.5 19.2 48 19.2 73.7 0 40.7-15.7 78.5-44.4 107.2zM583.4 466.2L495 446.6c-33.6-7.7-72.3-17.8-72.3-49.5s27.1-53.9 76.1-53.9c98.7 0 89.7 67.8 138.7 67.8 25.8 0 48.4-15.2 48.4-41.2 0-60.8-97.4-106.5-180-106.5-89.7 0-185.2 38.1-185.2 139.5 0 48.8 17.4 100.8 113.6 124.9l119.4 29.8c36.1 8.9 45.2 29.2 45.2 47.6 0 30.5-30.3 60.3-85.2 60.3-107.2 0-92.3-82.5-149.7-82.5-25.8 0-44.5 17.8-44.5 43.1 0 49.4 60 115.4 194.2 115.4 127.7 0 191-61.5 191-144 0-53.1-24.5-109.6-121.3-131.2z"}}]},name:"skype",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},86405:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M409.4 128c-42.4 0-76.7 34.4-76.7 76.8 0 20.3 8.1 39.9 22.4 54.3a76.74 76.74 0 0054.3 22.5h76.7v-76.8c0-42.3-34.3-76.7-76.7-76.8zm0 204.8H204.7c-42.4 0-76.7 34.4-76.7 76.8s34.4 76.8 76.7 76.8h204.6c42.4 0 76.7-34.4 76.7-76.8.1-42.4-34.3-76.8-76.6-76.8zM614 486.4c42.4 0 76.8-34.4 76.7-76.8V204.8c0-42.4-34.3-76.8-76.7-76.8-42.4 0-76.7 34.4-76.7 76.8v204.8c0 42.5 34.3 76.8 76.7 76.8zm281.4-76.8c0-42.4-34.4-76.8-76.7-76.8S742 367.2 742 409.6v76.8h76.7c42.3 0 76.7-34.4 76.7-76.8zm-76.8 128H614c-42.4 0-76.7 34.4-76.7 76.8 0 20.3 8.1 39.9 22.4 54.3a76.74 76.74 0 0054.3 22.5h204.6c42.4 0 76.7-34.4 76.7-76.8.1-42.4-34.3-76.7-76.7-76.8zM614 742.4h-76.7v76.8c0 42.4 34.4 76.8 76.7 76.8 42.4 0 76.8-34.4 76.7-76.8.1-42.4-34.3-76.7-76.7-76.8zM409.4 537.6c-42.4 0-76.7 34.4-76.7 76.8v204.8c0 42.4 34.4 76.8 76.7 76.8 42.4 0 76.8-34.4 76.7-76.8V614.4c0-20.3-8.1-39.9-22.4-54.3a76.92 76.92 0 00-54.3-22.5zM128 614.4c0 20.3 8.1 39.9 22.4 54.3a76.74 76.74 0 0054.3 22.5c42.4 0 76.8-34.4 76.7-76.8v-76.8h-76.7c-42.3 0-76.7 34.4-76.7 76.8z"}}]},name:"slack",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},25167:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM529 311.4c0-27.8 22.5-50.4 50.3-50.4 27.8 0 50.3 22.6 50.3 50.4v134.4c0 27.8-22.5 50.4-50.3 50.4-27.8 0-50.3-22.6-50.3-50.4V311.4zM361.5 580.2c0 27.8-22.5 50.4-50.3 50.4a50.35 50.35 0 01-50.3-50.4c0-27.8 22.5-50.4 50.3-50.4h50.3v50.4zm134 134.4c0 27.8-22.5 50.4-50.3 50.4-27.8 0-50.3-22.6-50.3-50.4V580.2c0-27.8 22.5-50.4 50.3-50.4a50.35 50.35 0 0150.3 50.4v134.4zm-50.2-218.4h-134c-27.8 0-50.3-22.6-50.3-50.4 0-27.8 22.5-50.4 50.3-50.4h134c27.8 0 50.3 22.6 50.3 50.4-.1 27.9-22.6 50.4-50.3 50.4zm0-134.4c-13.3 0-26.1-5.3-35.6-14.8S395 324.8 395 311.4c0-27.8 22.5-50.4 50.3-50.4 27.8 0 50.3 22.6 50.3 50.4v50.4h-50.3zm134 403.2c-27.8 0-50.3-22.6-50.3-50.4v-50.4h50.3c27.8 0 50.3 22.6 50.3 50.4 0 27.8-22.5 50.4-50.3 50.4zm134-134.4h-134a50.35 50.35 0 01-50.3-50.4c0-27.8 22.5-50.4 50.3-50.4h134c27.8 0 50.3 22.6 50.3 50.4 0 27.8-22.5 50.4-50.3 50.4zm0-134.4H663v-50.4c0-27.8 22.5-50.4 50.3-50.4s50.3 22.6 50.3 50.4c0 27.8-22.5 50.4-50.3 50.4z"}}]},name:"slack-square",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},17836:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M938.2 508.4L787.3 389c-3-2.4-7.3-.2-7.3 3.6V478H636V184h204v128c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V144c0-15.5-12.5-28-28-28H596c-15.5 0-28 12.5-28 28v736c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v128H636V546h144v85.4c0 3.8 4.4 6 7.3 3.6l150.9-119.4a4.5 4.5 0 000-7.2zM428 116H144c-15.5 0-28 12.5-28 28v168c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V184h204v294H244v-85.4c0-3.8-4.3-6-7.3-3.6l-151 119.4a4.52 4.52 0 000 7.1l151 119.5c2.9 2.3 7.3.2 7.3-3.6V546h144v294H184V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v168c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V144c0-15.5-12.5-28-28-28z"}}]},name:"split-cells",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},1399:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM315.7 291.5c27.3 0 49.5 22.1 49.5 49.4s-22.1 49.4-49.5 49.4a49.4 49.4 0 110-98.8zM366.9 578c-13.6 42.3-10.2 26.7-64.4 144.5l-78.5-49s87.7-79.8 105.6-116.2c19.2-38.4-21.1-58.9-21.1-58.9l-60.2-37.5 32.7-50.2c45.4 33.7 48.7 36.6 79.2 67.2 23.8 23.9 20.7 56.8 6.7 100.1zm427.2 55c-15.3 143.8-202.4 90.3-202.4 90.3l10.2-41.1 43.3 9.3c80 5 72.3-64.9 72.3-64.9V423c.6-77.3-72.6-85.4-204.2-38.3l30.6 8.3c-2.5 9-12.5 23.2-25.2 38.6h176v35.6h-99.1v44.5h98.7v35.7h-98.7V622c14.9-4.8 28.6-11.5 40.5-20.5l-8.7-32.5 46.5-14.4 38.8 94.9-57.3 23.9-10.2-37.8c-25.6 19.5-78.8 48-171.8 45.4-99.2 2.6-73.7-112-73.7-112l2.5-1.3H472c-.5 14.7-6.6 38.7 1.7 51.8 6.8 10.8 24.2 12.6 35.3 13.1 1.3.1 2.6.1 3.9.1v-85.3h-101v-35.7h101v-44.5H487c-22.7 24.1-43.5 44.1-43.5 44.1l-30.6-26.7c21.7-22.9 43.3-59.1 56.8-83.2-10.9 4.4-22 9.2-33.6 14.2-11.2 14.3-24.2 29-38.7 43.5.5.8-50-28.4-50-28.4 52.2-44.4 81.4-139.9 81.4-139.9l72.5 20.4s-5.9 14-18.4 35.6c290.3-82.3 307.4 50.5 307.4 50.5s19.1 91.8 3.8 235.7z"}}]},name:"taobao-circle",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},53422:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168.5 273.7a68.7 68.7 0 10137.4 0 68.7 68.7 0 10-137.4 0zm730 79.2s-23.7-184.4-426.9-70.1c17.3-30 25.6-49.5 25.6-49.5L396.4 205s-40.6 132.6-113 194.4c0 0 70.1 40.6 69.4 39.4 20.1-20.1 38.2-40.6 53.7-60.4 16.1-7 31.5-13.6 46.7-19.8-18.6 33.5-48.7 83.8-78.8 115.6l42.4 37s28.8-27.7 60.4-61.2h36v61.8H372.9v49.5h140.3v118.5c-1.7 0-3.6 0-5.4-.2-15.4-.7-39.5-3.3-49-18.2-11.5-18.1-3-51.5-2.4-71.9h-97l-3.4 1.8s-35.5 159.1 102.3 155.5c129.1 3.6 203-36 238.6-63.1l14.2 52.6 79.6-33.2-53.9-131.9-64.6 20.1 12.1 45.2c-16.6 12.4-35.6 21.7-56.2 28.4V561.3h137.1v-49.5H628.1V450h137.6v-49.5H521.3c17.6-21.4 31.5-41.1 35-53.6l-42.5-11.6c182.8-65.5 284.5-54.2 283.6 53.2v282.8s10.8 97.1-100.4 90.1l-60.2-12.9-14.2 57.1S882.5 880 903.7 680.2c21.3-200-5.2-327.3-5.2-327.3zm-707.4 18.3l-45.4 69.7 83.6 52.1s56 28.5 29.4 81.9C233.8 625.5 112 736.3 112 736.3l109 68.1c75.4-163.7 70.5-142 89.5-200.7 19.5-60.1 23.7-105.9-9.4-139.1-42.4-42.6-47-46.6-110-93.4z"}}]},name:"taobao",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},6490:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 160h-92v-40c0-4.4-3.6-8-8-8H256c-4.4 0-8 3.6-8 8v40h-92a44 44 0 00-44 44v148c0 81.7 60 149.6 138.2 162C265.7 630.2 359 721.7 476 734.5v105.2H280c-17.7 0-32 14.3-32 32V904c0 4.4 3.6 8 8 8h512c4.4 0 8-3.6 8-8v-32.3c0-17.7-14.3-32-32-32H548V734.5C665 721.7 758.3 630.2 773.8 514 852 501.6 912 433.7 912 352V204a44 44 0 00-44-44zM184 352V232h64v207.6a91.99 91.99 0 01-64-87.6zm520 128c0 49.1-19.1 95.4-53.9 130.1-34.8 34.8-81 53.9-130.1 53.9h-16c-49.1 0-95.4-19.1-130.1-53.9-34.8-34.8-53.9-81-53.9-130.1V184h384v296zm136-128c0 41-26.9 75.8-64 87.6V232h64v120z"}}]},name:"trophy",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},87104:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 254.3c-30.6 13.2-63.9 22.7-98.2 26.4a170.1 170.1 0 0075-94 336.64 336.64 0 01-108.2 41.2A170.1 170.1 0 00672 174c-94.5 0-170.5 76.6-170.5 170.6 0 13.2 1.6 26.4 4.2 39.1-141.5-7.4-267.7-75-351.6-178.5a169.32 169.32 0 00-23.2 86.1c0 59.2 30.1 111.4 76 142.1a172 172 0 01-77.1-21.7v2.1c0 82.9 58.6 151.6 136.7 167.4a180.6 180.6 0 01-44.9 5.8c-11.1 0-21.6-1.1-32.2-2.6C211 652 273.9 701.1 348.8 702.7c-58.6 45.9-132 72.9-211.7 72.9-14.3 0-27.5-.5-41.2-2.1C171.5 822 261.2 850 357.8 850 671.4 850 843 590.2 843 364.7c0-7.4 0-14.8-.5-22.2 33.2-24.3 62.3-54.4 85.5-88.2z"}}]},name:"twitter",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},83853:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},78504:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M368 724H252V608c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v116H72c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h116v116c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V788h116c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M912 302.3L784 376V224c0-35.3-28.7-64-64-64H128c-35.3 0-64 28.7-64 64v352h72V232h576v560H448v72h272c35.3 0 64-28.7 64-64V648l128 73.7c21.3 12.3 48-3.1 48-27.6V330c0-24.6-26.7-40-48-27.7zM888 625l-104-59.8V458.9L888 399v226z"}},{tag:"path",attrs:{d:"M320 360c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H208c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h112z"}}]},name:"video-camera-add",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},18406:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M690.1 377.4c5.9 0 11.8.2 17.6.5-24.4-128.7-158.3-227.1-319.9-227.1C209 150.8 64 271.4 64 420.2c0 81.1 43.6 154.2 111.9 203.6a21.5 21.5 0 019.1 17.6c0 2.4-.5 4.6-1.1 6.9-5.5 20.3-14.2 52.8-14.6 54.3-.7 2.6-1.7 5.2-1.7 7.9 0 5.9 4.8 10.8 10.8 10.8 2.3 0 4.2-.9 6.2-2l70.9-40.9c5.3-3.1 11-5 17.2-5 3.2 0 6.4.5 9.5 1.4 33.1 9.5 68.8 14.8 105.7 14.8 6 0 11.9-.1 17.8-.4-7.1-21-10.9-43.1-10.9-66 0-135.8 132.2-245.8 295.3-245.8zm-194.3-86.5c23.8 0 43.2 19.3 43.2 43.1s-19.3 43.1-43.2 43.1c-23.8 0-43.2-19.3-43.2-43.1s19.4-43.1 43.2-43.1zm-215.9 86.2c-23.8 0-43.2-19.3-43.2-43.1s19.3-43.1 43.2-43.1 43.2 19.3 43.2 43.1-19.4 43.1-43.2 43.1zm586.8 415.6c56.9-41.2 93.2-102 93.2-169.7 0-124-120.8-224.5-269.9-224.5-149 0-269.9 100.5-269.9 224.5S540.9 847.5 690 847.5c30.8 0 60.6-4.4 88.1-12.3 2.6-.8 5.2-1.2 7.9-1.2 5.2 0 9.9 1.6 14.3 4.1l59.1 34c1.7 1 3.3 1.7 5.2 1.7a9 9 0 006.4-2.6 9 9 0 002.6-6.4c0-2.2-.9-4.4-1.4-6.6-.3-1.2-7.6-28.3-12.2-45.3-.5-1.9-.9-3.8-.9-5.7.1-5.9 3.1-11.2 7.6-14.5zM600.2 587.2c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9c0 19.8-16.2 35.9-36 35.9zm179.9 0c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9a36.08 36.08 0 01-36 35.9z"}}]},name:"wechat",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},75846:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-44.4 672C353.1 736 236 680.4 236 588.9c0-47.8 30.2-103.1 82.3-155.3 69.5-69.6 150.6-101.4 181.1-70.8 13.5 13.5 14.8 36.8 6.1 64.6-4.5 14 13.1 6.3 13.1 6.3 56.2-23.6 105.2-25 123.1.7 9.6 13.7 8.6 32.8-.2 55.1-4.1 10.2 1.3 11.8 9 14.1 31.7 9.8 66.9 33.6 66.9 75.5.2 69.5-99.7 156.9-249.8 156.9zm207.3-290.8a34.9 34.9 0 00-7.2-34.1 34.68 34.68 0 00-33.1-10.7 18.24 18.24 0 01-7.6-35.7c24.1-5.1 50.1 2.3 67.7 21.9 17.7 19.6 22.4 46.3 14.9 69.8a18.13 18.13 0 01-22.9 11.7 18.18 18.18 0 01-11.8-22.9zm106 34.3s0 .1 0 0a21.1 21.1 0 01-26.6 13.7 21.19 21.19 0 01-13.6-26.7c11-34.2 4-73.2-21.7-101.8a104.04 104.04 0 00-98.9-32.1 21.14 21.14 0 01-25.1-16.3 21.07 21.07 0 0116.2-25.1c49.4-10.5 102.8 4.8 139.1 45.1 36.3 40.2 46.1 95.1 30.6 143.2zm-334.5 6.1c-91.4 9-160.7 65.1-154.7 125.2 5.9 60.1 84.8 101.5 176.2 92.5 91.4-9.1 160.7-65.1 154.7-125.3-5.9-60.1-84.8-101.5-176.2-92.4zm80.2 141.7c-18.7 42.3-72.3 64.8-117.8 50.1-43.9-14.2-62.5-57.7-43.3-96.8 18.9-38.4 68-60.1 111.5-48.8 45 11.7 68 54.2 49.6 95.5zm-93-32.2c-14.2-5.9-32.4.2-41.2 13.9-8.8 13.8-4.7 30.2 9.3 36.6 14.3 6.5 33.2.3 42-13.8 8.8-14.3 4.2-30.6-10.1-36.7zm34.9-14.5c-5.4-2.2-12.2.5-15.4 5.8-3.1 5.4-1.4 11.5 4.1 13.8 5.5 2.3 12.6-.3 15.8-5.8 3-5.6 1-11.8-4.5-13.8z"}}]},name:"weibo-circle",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},790:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M457.3 543c-68.1-17.7-145 16.2-174.6 76.2-30.1 61.2-1 129.1 67.8 151.3 71.2 23 155.2-12.2 184.4-78.3 28.7-64.6-7.2-131-77.6-149.2zm-52 156.2c-13.8 22.1-43.5 31.7-65.8 21.6-22-10-28.5-35.7-14.6-57.2 13.7-21.4 42.3-31 64.4-21.7 22.4 9.5 29.6 35 16 57.3zm45.5-58.5c-5 8.6-16.1 12.7-24.7 9.1-8.5-3.5-11.2-13.1-6.4-21.5 5-8.4 15.6-12.4 24.1-9.1 8.7 3.2 11.8 12.9 7 21.5zm334.5-197.2c15 4.8 31-3.4 35.9-18.3 11.8-36.6 4.4-78.4-23.2-109a111.39 111.39 0 00-106-34.3 28.45 28.45 0 00-21.9 33.8 28.39 28.39 0 0033.8 21.8c18.4-3.9 38.3 1.8 51.9 16.7a54.2 54.2 0 0111.3 53.3 28.45 28.45 0 0018.2 36zm99.8-206c-56.7-62.9-140.4-86.9-217.7-70.5a32.98 32.98 0 00-25.4 39.3 33.12 33.12 0 0039.3 25.5c55-11.7 114.4 5.4 154.8 50.1 40.3 44.7 51.2 105.7 34 159.1-5.6 17.4 3.9 36 21.3 41.7 17.4 5.6 36-3.9 41.6-21.2v-.1c24.1-75.4 8.9-161.1-47.9-223.9zM729 499c-12.2-3.6-20.5-6.1-14.1-22.1 13.8-34.7 15.2-64.7.3-86-28-40.1-104.8-37.9-192.8-1.1 0 0-27.6 12.1-20.6-9.8 13.5-43.5 11.5-79.9-9.6-101-47.7-47.8-174.6 1.8-283.5 110.6C127.3 471.1 80 557.5 80 632.2 80 775.1 263.2 862 442.5 862c235 0 391.3-136.5 391.3-245 0-65.5-55.2-102.6-104.8-118zM443 810.8c-143 14.1-266.5-50.5-275.8-144.5-9.3-93.9 99.2-181.5 242.2-195.6 143-14.2 266.5 50.5 275.8 144.4C694.4 709 586 796.6 443 810.8z"}}]},name:"weibo",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},90580:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M433.6 595.1c-14.2-5.9-32.4.2-41.2 13.9-8.8 13.8-4.7 30.2 9.3 36.6 14.3 6.5 33.2.3 42-13.8 8.8-14.3 4.2-30.6-10.1-36.7zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM467.6 736C353.1 736 236 680.4 236 588.9c0-47.8 30.2-103.1 82.3-155.3 69.5-69.6 150.6-101.4 181.1-70.8 13.5 13.5 14.8 36.8 6.1 64.6-4.5 14 13.1 6.3 13.1 6.3 56.2-23.6 105.2-25 123.1.7 9.6 13.7 8.6 32.8-.2 55.1-4.1 10.2 1.3 11.8 9 14.1 31.7 9.8 66.9 33.6 66.9 75.5.2 69.5-99.7 156.9-249.8 156.9zm207.3-290.8a34.9 34.9 0 00-7.2-34.1 34.68 34.68 0 00-33.1-10.7 18.24 18.24 0 01-7.6-35.7c24.1-5.1 50.1 2.3 67.7 21.9 17.7 19.6 22.4 46.3 14.9 69.8a18.13 18.13 0 01-22.9 11.7 18.18 18.18 0 01-11.8-22.9zm106 34.3s0 .1 0 0a21.1 21.1 0 01-26.6 13.7 21.19 21.19 0 01-13.6-26.7c11-34.2 4-73.2-21.7-101.8a104.04 104.04 0 00-98.9-32.1 21.14 21.14 0 01-25.1-16.3 21.07 21.07 0 0116.2-25.1c49.4-10.5 102.8 4.8 139.1 45.1 36.3 40.2 46.1 95.1 30.6 143.2zm-334.5 6.1c-91.4 9-160.7 65.1-154.7 125.2 5.9 60.1 84.8 101.5 176.2 92.5 91.4-9.1 160.7-65.1 154.7-125.3-5.9-60.1-84.8-101.5-176.2-92.4zm80.2 141.7c-18.7 42.3-72.3 64.8-117.8 50.1-43.9-14.2-62.5-57.7-43.3-96.8 18.9-38.4 68-60.1 111.5-48.8 45 11.7 68 54.2 49.6 95.5zm-58.1-46.7c-5.4-2.2-12.2.5-15.4 5.8-3.1 5.4-1.4 11.5 4.1 13.8 5.5 2.3 12.6-.3 15.8-5.8 3-5.6 1-11.8-4.5-13.8z"}}]},name:"weibo-square",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},2266:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M120.1 770.6L443 823.2V543.8H120.1v226.8zm63.4-163.5h196.2v141.6l-196.2-31.9V607.1zm340.3 226.5l382 62.2v-352h-382v289.8zm63.4-226.5h255.3v214.4l-255.3-41.6V607.1zm-63.4-415.7v288.8h382V128.1l-382 63.3zm318.7 225.5H587.3V245l255.3-42.3v214.2zm-722.4 63.3H443V201.9l-322.9 53.5v224.8zM183.5 309l196.2-32.5v140.4H183.5V309z"}}]},name:"windows",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},76517:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M960 509.2c0-2.2 0-4.7-.1-7.6-.1-8.1-.3-17.2-.5-26.9-.8-27.9-2.2-55.7-4.4-81.9-3-36.1-7.4-66.2-13.4-88.8a139.52 139.52 0 00-98.3-98.5c-28.3-7.6-83.7-12.3-161.7-15.2-37.1-1.4-76.8-2.3-116.5-2.8-13.9-.2-26.8-.3-38.4-.4h-29.4c-11.6.1-24.5.2-38.4.4-39.7.5-79.4 1.4-116.5 2.8-78 3-133.5 7.7-161.7 15.2A139.35 139.35 0 0082.4 304C76.3 326.6 72 356.7 69 392.8c-2.2 26.2-3.6 54-4.4 81.9-.3 9.7-.4 18.8-.5 26.9 0 2.9-.1 5.4-.1 7.6v5.6c0 2.2 0 4.7.1 7.6.1 8.1.3 17.2.5 26.9.8 27.9 2.2 55.7 4.4 81.9 3 36.1 7.4 66.2 13.4 88.8 12.8 47.9 50.4 85.7 98.3 98.5 28.2 7.6 83.7 12.3 161.7 15.2 37.1 1.4 76.8 2.3 116.5 2.8 13.9.2 26.8.3 38.4.4h29.4c11.6-.1 24.5-.2 38.4-.4 39.7-.5 79.4-1.4 116.5-2.8 78-3 133.5-7.7 161.7-15.2 47.9-12.8 85.5-50.5 98.3-98.5 6.1-22.6 10.4-52.7 13.4-88.8 2.2-26.2 3.6-54 4.4-81.9.3-9.7.4-18.8.5-26.9 0-2.9.1-5.4.1-7.6v-5.6zm-72 5.2c0 2.1 0 4.4-.1 7.1-.1 7.8-.3 16.4-.5 25.7-.7 26.6-2.1 53.2-4.2 77.9-2.7 32.2-6.5 58.6-11.2 76.3-6.2 23.1-24.4 41.4-47.4 47.5-21 5.6-73.9 10.1-145.8 12.8-36.4 1.4-75.6 2.3-114.7 2.8-13.7.2-26.4.3-37.8.3h-28.6l-37.8-.3c-39.1-.5-78.2-1.4-114.7-2.8-71.9-2.8-124.9-7.2-145.8-12.8-23-6.2-41.2-24.4-47.4-47.5-4.7-17.7-8.5-44.1-11.2-76.3-2.1-24.7-3.4-51.3-4.2-77.9-.3-9.3-.4-18-.5-25.7 0-2.7-.1-5.1-.1-7.1v-4.8c0-2.1 0-4.4.1-7.1.1-7.8.3-16.4.5-25.7.7-26.6 2.1-53.2 4.2-77.9 2.7-32.2 6.5-58.6 11.2-76.3 6.2-23.1 24.4-41.4 47.4-47.5 21-5.6 73.9-10.1 145.8-12.8 36.4-1.4 75.6-2.3 114.7-2.8 13.7-.2 26.4-.3 37.8-.3h28.6l37.8.3c39.1.5 78.2 1.4 114.7 2.8 71.9 2.8 124.9 7.2 145.8 12.8 23 6.2 41.2 24.4 47.4 47.5 4.7 17.7 8.5 44.1 11.2 76.3 2.1 24.7 3.4 51.3 4.2 77.9.3 9.3.4 18 .5 25.7 0 2.7.1 5.1.1 7.1v4.8zM423 646l232-135-232-133z"}}]},name:"youtube",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},41546:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M564.7 230.1V803h60l25.2 71.4L756.3 803h131.5V230.1H564.7zm247.7 497h-59.9l-75.1 50.4-17.8-50.4h-18V308.3h170.7v418.8zM526.1 486.9H393.3c2.1-44.9 4.3-104.3 6.6-172.9h130.9l-.1-8.1c0-.6-.2-14.7-2.3-29.1-2.1-15-6.6-34.9-21-34.9H287.8c4.4-20.6 15.7-69.7 29.4-93.8l6.4-11.2-12.9-.7c-.8 0-19.6-.9-41.4 10.6-35.7 19-51.7 56.4-58.7 84.4-18.4 73.1-44.6 123.9-55.7 145.6-3.3 6.4-5.3 10.2-6.2 12.8-1.8 4.9-.8 9.8 2.8 13 10.5 9.5 38.2-2.9 38.5-3 .6-.3 1.3-.6 2.2-1 13.9-6.3 55.1-25 69.8-84.5h56.7c.7 32.2 3.1 138.4 2.9 172.9h-141l-2.1 1.5c-23.1 16.9-30.5 63.2-30.8 65.2l-1.4 9.2h167c-12.3 78.3-26.5 113.4-34 127.4-3.7 7-7.3 14-10.7 20.8-21.3 42.2-43.4 85.8-126.3 153.6-3.6 2.8-7 8-4.8 13.7 2.4 6.3 9.3 9.1 24.6 9.1 5.4 0 11.8-.3 19.4-1 49.9-4.4 100.8-18 135.1-87.6 17-35.1 31.7-71.7 43.9-108.9L497 850l5-12c.8-1.9 19-46.3 5.1-95.9l-.5-1.8-108.1-123-22 16.6c6.4-26.1 10.6-49.9 12.5-71.1h158.7v-8c0-40.1-18.5-63.9-19.2-64.9l-2.4-3z"}}]},name:"zhihu",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},59445:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},47826:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},10168:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(t,e){var n=t.nodes,r=t.edges,i=[],o={};if(!n)throw new Error("invalid nodes data!");return n&&n.forEach((function(t,e){o[t.id]=e;i.push([])})),r&&r.forEach((function(t){var n=t.source,r=t.target,a=o[n],s=o[r];!a&&0!==a||!s&&0!==s||(i[a][s]=1,e||(i[s][a]=1))})),i};e.default=n},87302:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"GADDIAsync",{enumerable:!0,get:function(){return r.GADDIAsync}}),Object.defineProperty(e,"connectedComponentAsync",{enumerable:!0,get:function(){return r.connectedComponentAsync}}),e.default=void 0,Object.defineProperty(e,"detectAllCyclesAsync",{enumerable:!0,get:function(){return r.detectAllCyclesAsync}}),Object.defineProperty(e,"detectAllDirectedCycleAsync",{enumerable:!0,get:function(){return r.detectAllDirectedCycleAsync}}),Object.defineProperty(e,"detectAllUndirectedCycleAsync",{enumerable:!0,get:function(){return r.detectAllUndirectedCycleAsync}}),Object.defineProperty(e,"detectCycleAsync",{enumerable:!0,get:function(){return r.detectCycleAsync}}),e.detectDirectedCycleAsync=void 0,Object.defineProperty(e,"dijkstraAsync",{enumerable:!0,get:function(){return r.dijkstraAsync}}),Object.defineProperty(e,"findAllPathAsync",{enumerable:!0,get:function(){return r.findAllPathAsync}}),Object.defineProperty(e,"findShortestPathAsync",{enumerable:!0,get:function(){return r.findShortestPathAsync}}),Object.defineProperty(e,"floydWarshallAsync",{enumerable:!0,get:function(){return r.floydWarshallAsync}}),Object.defineProperty(e,"getAdjMatrixAsync",{enumerable:!0,get:function(){return r.getAdjMatrixAsync}}),Object.defineProperty(e,"getDegreeAsync",{enumerable:!0,get:function(){return r.getDegreeAsync}}),Object.defineProperty(e,"getInDegreeAsync",{enumerable:!0,get:function(){return r.getInDegreeAsync}}),Object.defineProperty(e,"getNeighborsAsync",{enumerable:!0,get:function(){return r.getNeighborsAsync}}),Object.defineProperty(e,"getOutDegreeAsync",{enumerable:!0,get:function(){return r.getOutDegreeAsync}}),Object.defineProperty(e,"labelPropagationAsync",{enumerable:!0,get:function(){return r.labelPropagationAsync}}),Object.defineProperty(e,"louvainAsync",{enumerable:!0,get:function(){return r.louvainAsync}}),Object.defineProperty(e,"minimumSpanningTreeAsync",{enumerable:!0,get:function(){return r.minimumSpanningTreeAsync}}),Object.defineProperty(e,"pageRankAsync",{enumerable:!0,get:function(){return r.pageRankAsync}});var r=n(37436),i=r.detectCycleAsync;e.detectDirectedCycleAsync=i;var o={getAdjMatrixAsync:r.getAdjMatrixAsync,connectedComponentAsync:r.connectedComponentAsync,getDegreeAsync:r.getDegreeAsync,getInDegreeAsync:r.getInDegreeAsync,getOutDegreeAsync:r.getOutDegreeAsync,detectCycleAsync:r.detectCycleAsync,detectDirectedCycleAsync:i,detectAllCyclesAsync:r.detectAllCyclesAsync,detectAllDirectedCycleAsync:r.detectAllDirectedCycleAsync,detectAllUndirectedCycleAsync:r.detectAllUndirectedCycleAsync,dijkstraAsync:r.dijkstraAsync,findAllPathAsync:r.findAllPathAsync,findShortestPathAsync:r.findShortestPathAsync,floydWarshallAsync:r.floydWarshallAsync,labelPropagationAsync:r.labelPropagationAsync,louvainAsync:r.louvainAsync,minimumSpanningTreeAsync:r.minimumSpanningTreeAsync,pageRankAsync:r.pageRankAsync,getNeighborsAsync:r.getNeighborsAsync,GADDIAsync:r.GADDIAsync};e.default=o},48441:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,i=(r=n(52014))&&r.__esModule?r:{default:r},o=n(34170);var a=function(t,e,n,r){void 0===r&&(r=!0);var a=function(t){void 0===t&&(t={});var e,n=t,r=function(){},i=(e={},function(t){var n=t.next;return!e[n]&&(e[n]=!0,!0)});return n.allowTraversal=t.allowTraversal||i,n.enter=t.enter||r,n.leave=t.leave||r,n}(n),s=new i.default,u=t.edges,l=void 0===u?[]:u;s.enqueue(e);for(var c="",h=function(){var t=s.dequeue();a.enter({current:t,previous:c}),(0,o.getNeighbors)(t,l,r?"target":void 0).forEach((function(e){a.allowTraversal({previous:c,current:t,next:e})&&s.enqueue(e)})),a.leave({current:t,previous:c}),c=t};!s.isEmpty();)h()};e.default=a},6277:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return e?o(t):i(t)},e.detectStrongConnectComponents=e.detectConnectedComponents=void 0;var r=n(34170),i=function(t){for(var e=t.nodes,n=void 0===e?[]:e,i=t.edges,o=void 0===i?[]:i,a=[],s={},u=[],l=function t(e){u.push(e),s[e.id]=!0;for(var i=(0,r.getNeighbors)(e.id,o),a=function(e){var r=i[e];if(!s[r]){var o=n.filter((function(t){return t.id===r}));o.length>0&&t(o[0])}},l=0;l0;)d.push(u.pop());a.push(d)}}return a};e.detectConnectedComponents=i;var o=function(t){for(var e=t.nodes,n=void 0===e?[]:e,i=t.edges,o=void 0===i?[]:i,a=[],s={},u={},l={},c=[],h=0,d=function t(e){u[e.id]=h,l[e.id]=h,h+=1,a.push(e),s[e.id]=!0;for(var i=(0,r.getNeighbors)(e.id,o,"target").filter((function(t){return n.map((function(t){return t.id})).indexOf(t)>-1})),d=function(r){var o=i[r];if(u[o]||0===u[o])s[o]&&(l[e.id]=Math.min(l[e.id],u[o]));else{var a=n.filter((function(t){return t.id===o}));a.length>0&&t(a[0]),l[e.id]=Math.min(l[e.id],l[o])}},f=0;f0;){var m=a.pop();if(s[m.id]=!1,p.push(m),m===e)break}p.length>0&&c.push(p)}},f=0,p=n;f{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.secondReg=e.dateReg=void 0;e.secondReg=/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/;e.dateReg=/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})$/},42378:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getOutDegree=e.getInDegree=e.default=void 0;var n=function(t){var e={},n=t.nodes,r=void 0===n?[]:n,i=t.edges,o=void 0===i?[]:i;return r.forEach((function(t){e[t.id]={degree:0,inDegree:0,outDegree:0}})),o.forEach((function(t){e[t.source].degree++,e[t.source].outDegree++,e[t.target].degree++,e[t.target].inDegree++})),e},r=n;e.default=r;e.getInDegree=function(t,e){return n(t)[e]?n(t)[e].inDegree:0};e.getOutDegree=function(t,e){return n(t)[e]?n(t)[e].outDegree:0}},91042:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.detectAllUndirectedCycle=e.detectAllDirectedCycle=e.detectAllCycles=e.default=void 0;var i,o=(i=n(50115))&&i.__esModule?i:{default:i},a=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=u(e);if(n&&n.has(t))return n.get(t);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var s=o?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(i,a,s):i[a]=t[a]}i.default=t,n&&n.set(t,i);return i}(n(6277)),s=n(34170);function u(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(u=function(t){return t?n:e})(t)}var l=function(t,e,n){var r,i;void 0===n&&(n=!0);for(var o=[],u=0,l=(0,a.default)(t,!1);u0;)for(var g=f.pop(),v=g.id,y=(0,s.getNeighbors)(v,t.edges),b=function(r){var i,a=y[r],s=t.nodes.find((function(t){return t.id===a}));if(a===v)o.push(((i={})[a]=g,i));else if(a in m){if(!m[v].has(s)){for(var u=!0,l=[s,g],c=p[v];m[a].size&&!m[a].has(c)&&(l.push(c),c!==p[c.id]);)c=p[c.id];if(l.push(c),e&&n?(u=!1,l.findIndex((function(t){return e.indexOf(t.id)>-1}))>-1&&(u=!0)):e&&!n&&l.findIndex((function(t){return e.indexOf(t.id)>-1}))>-1&&(u=!1),u){for(var h={},d=1;d-1)return h;r.push(a),i.add(a);for(var d=c[a.id],f=0;f0;){var n=e.pop();i.has(n)&&(i.delete(n),o[n.id].forEach((function(t){e.push(t)})),o[n.id].clear())}}(a);else for(f=0;f-1}));v-1?m[g.id].push(c[b]):u.push(((i={})[g.id]=g,i))}}return{component:p,adjList:m,minIdx:a}},b=0;b=b})),w=(0,a.detectStrongConnectComponents)({nodes:x,edges:t.edges}).filter((function(t){return t.length>1}));if(0===w.length)break;var _=y(w),S=_.minIdx,E=_.adjList,A=_.component;if(!(A.length>1))break;A.forEach((function(t){o[t.id]=new Set}));var M=l[S];if(e&&n&&-1===e.indexOf(M.id))return u;h(M,M,E),b=S+1}return u};e.detectAllDirectedCycle=c;e.detectAllCycles=function(t,e,n,r){return void 0===r&&(r=!0),e?c(t,n,r):l(t,n,r)};var h=function(t){var e=null,n=t.nodes,r={},i={},a={},s={};(void 0===n?[]:n).forEach((function(t){i[t.id]=t}));for(var u={enter:function(t){var n=t.current,o=t.previous;if(a[n]){e={};for(var s=n,u=o;u!==n;)e[s]=u,s=u,u=r[u];e[s]=u}else a[n]=n,delete i[n],r[n]=o},leave:function(t){var e=t.current;s[e]=e,delete a[e]},allowTraversal:function(t){var n=t.next;return!e&&!s[n]}};Object.keys(i).length;){var l=Object.keys(i)[0];(0,o.default)(t,l,u)}return e};e.default=h},50115:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r){void 0===r&&(r=!0);i(t,e,"",function(t){void 0===t&&(t={});var e=t,n=function(){},r=(i={},function(t){var e=t.next;return!i[e]&&(i[e]=!0,!0)});var i;return e.allowTraversal=t.allowTraversal||r,e.enter=t.enter||n,e.leave=t.leave||n,e}(n),r)};var r=n(34170);function i(t,e,n,o,a){void 0===a&&(a=!0),o.enter({current:e,previous:n});var s=t.edges,u=void 0===s?[]:s;(0,r.getNeighbors)(e,u,a?"target":void 0).forEach((function(r){o.allowTraversal({previous:n,current:e,next:r})&&i(t,r,e,o,a)})),o.leave({current:e,previous:n})}},7304:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(31635),i=n(24425),o=n(34170),a=function(t,e,n,r){var i=t.nodes,a=void 0===i?[]:i,u=t.edges,l=void 0===u?[]:u,c=[],h={},d={},f={};a.forEach((function(t,n){var r=t.id;c.push(r),d[r]=1/0,r===e&&(d[r]=0)}));for(var p=a.length,m=function(t){var e=function(t,e,n){for(var r,i=1/0,o=0;od[e.id]+s?(d[a]=d[e.id]+s,f[a]=[e.id]):d[a]===d[e.id]+s&&f[a].push(e.id)}))},g=0;g{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.findShortestPath=e.findAllPath=void 0;var r,i=(r=n(7304))&&r.__esModule?r:{default:r},o=n(34170);e.findShortestPath=function(t,e,n,r,o){var a=(0,i.default)(t,e,r,o),s=a.length,u=a.path,l=a.allPath;return{length:s[n],path:u[n],allPath:l[n]}};e.findAllPath=function(t,e,n,r){var i;if(e===n)return[[e]];var a=t.edges,s=void 0===a?[]:a,u=[e],l=((i={})[e]=!0,i),c=[],h=[],d=r?(0,o.getNeighbors)(e,s,"target"):(0,o.getNeighbors)(e,s);for(c.push(d);u.length>0&&c.length>0;){var f=c[c.length-1];if(f.length){var p=f.shift();if(p&&(u.push(p),l[p]=!0,d=r?(0,o.getNeighbors)(p,s,"target"):(0,o.getNeighbors)(p,s),c.push(d.filter((function(t){return!l[t]})))),u[u.length-1]===n){var m=u.map((function(t){return t}));h.push(m);g=u.pop();l[g]=!1,c.pop()}}else{var g=u.pop();l[g]=!1,c.pop()}}return h}},91510:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,i=(r=n(10168))&&r.__esModule?r:{default:r};var o=function(t,e){for(var n=(0,i.default)(t,e),r=[],o=n.length,a=0;ar[a][u]+r[u][s]&&(r[a][s]=r[a][u]+r[u][s]);return r};e.default=o},69611:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(24425),i=n(42541),o=function(){function t(t,e,n,r,o){this.fromNode=t,this.toNode=e,this.nodeEdgeNodeLabel={nodeLabel1:n||i.VACANT_NODE_LABEL,edgeLabel:r||i.VACANT_EDGE_LABEL,nodeLabel2:o||i.VACANT_NODE_LABEL}}return t.prototype.equalTo=function(t){return this.fromNode===t.formNode&&this.toNode===t.toNode&&this.nodeEdgeNodeLabel===t.nodeEdgeNodeLabel},t.prototype.notEqualTo=function(t){return!this.equalTo(t)},t}(),a=function(){function t(){this.rmpath=[],this.dfsEdgeList=[]}return t.prototype.equalTo=function(t){var e=this.dfsEdgeList.length;if(e!==t.length)return!1;for(var n=0;n=0;e--){var n=this.dfsEdgeList[e],r=n.fromNode,i=n.toNode;rh||r.hasNode(o[c.to])||(e.labelv;b--){if("break"===y(b))break}if(m){var x=t.findMinLabel(p);l.dfsEdgeList.push(new o(f,g,i.VACANT_NODE_LABEL,x.edgeLabel,i.VACANT_NODE_LABEL));var w=l.dfsEdgeList.length-1;return t.dfsCode.dfsEdgeList[w]===l.dfsEdgeList[w]&&a(p[x.edgeLabel].projected)}var _={};m=!1;var S=0;c.forEach((function(e){var n=new s(e),i=t.findForwardPureEdges(r,n.edges[h[0]],d,n);i.length>0&&(m=!0,S=f,i.forEach((function(t){var n="".concat(t.label,"-").concat(u[t.to].label);_[n]||(_[n]={projected:[],edgeLabel:t.label,nodeLabel2:u[t.to].label}),_[n].projected.push({graphId:r.id,edge:t,preNode:e})})))}));var E=h.length,A=function(e){if(m)return"break";var n=h[e];c.forEach((function(e){var i=new s(e),o=t.findForwardRmpathEdges(r,i.edges[n],d,i);o.length>0&&(m=!0,S=l.dfsEdgeList[n].fromNode,o.forEach((function(t){var n="".concat(t.label,"-").concat(u[t.to].label);_[n]||(_[n]={projected:[],edgeLabel:t.label,nodeLabel2:u[t.to].label}),_[n].projected.push({graphId:r.id,edge:t,preNode:e})})))}))};for(b=0;b=0;d--){var f=e.findBackwardEdge(i,h.edges[r[d]],h.edges[r[0]],h);if(f){var p="".concat(e.dfsCode.dfsEdgeList[r[d]].fromNode,"-").concat(f.label);c[p]||(c[p]={projected:[],toNodeId:e.dfsCode.dfsEdgeList[r[d]].fromNode,edgeLabel:f.label}),c[p].projected.push({graphId:t.graphId,edge:f,preNode:t})}}if(!(n>=e.maxNodeNum)){e.findForwardPureEdges(i,h.edges[r[0]],u,h).forEach((function(e){var n="".concat(a,"-").concat(e.label,"-").concat(o[e.to].label);l[n]||(l[n]={projected:[],fromNodeId:a,edgeLabel:e.label,nodeLabel2:o[e.to].label}),l[n].projected.push({graphId:t.graphId,edge:e,preNode:t})}));var m=function(n){e.findForwardRmpathEdges(i,h.edges[r[n]],u,h).forEach((function(i){var a="".concat(e.dfsCode.dfsEdgeList[r[n]].fromNode,"-").concat(i.label,"-").concat(o[i.to].label);l[a]||(l[a]={projected:[],fromNodeId:e.dfsCode.dfsEdgeList[r[n]].fromNode,edgeLabel:i.label,nodeLabel2:o[i.to].label}),l[a].projected.push({graphId:t.graphId,edge:i,preNode:t})}))};for(d=0;di){var a=i;i=r,r=a}var c=t.label,h="".concat(n,"-").concat(r,"-").concat(c,"-").concat(i),d="".concat(r,"-").concat(c,"-").concat(i);if(!o[d]){var f=o[d]||0;f++,o[d]=f}s[h]={graphId:n,nodeLabel1:r,edgeLabel:c,nodeLabel2:i}}))}))})),Object.keys(i).forEach((function(t){if(!(i[t]{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VACANT_NODE_LABEL=e.VACANT_NODE_ID=e.VACANT_GRAPH_ID=e.VACANT_EDGE_LABEL=e.VACANT_EDGE_ID=e.Node=e.Graph=e.Edge=e.AUTO_EDGE_ID=void 0;e.VACANT_EDGE_ID=-1;e.VACANT_NODE_ID=-1;e.VACANT_EDGE_LABEL="-1";e.VACANT_NODE_LABEL="-1";e.VACANT_GRAPH_ID=-1;e.AUTO_EDGE_ID="-1";var n=function(t,e,n,r){void 0===t&&(t=-1),void 0===e&&(e=-1),void 0===n&&(n=-1),void 0===r&&(r="-1"),this.id=t,this.from=e,this.to=n,this.label=r};e.Edge=n;var r=function(){function t(t,e){void 0===t&&(t=-1),void 0===e&&(e="-1"),this.id=t,this.label=e,this.edges=[],this.edgeMap={}}return t.prototype.addEdge=function(t){this.edges.push(t),this.edgeMap[t.id]=t},t}();e.Node=r;var i=function(){function t(t,e,n){void 0===t&&(t=-1),void 0===e&&(e=!0),void 0===n&&(n=!1),this.id=t,this.edgeIdAutoIncrease=e,this.edges=[],this.nodes=[],this.nodeMap={},this.edgeMap={},this.nodeLabelMap={},this.edgeLabelMap={},this.counter=0,this.directed=n}return t.prototype.getNodeNum=function(){return this.nodes.length},t.prototype.addNode=function(t,e){if(!this.nodeMap[t]){var n=new r(t,e);this.nodes.push(n),this.nodeMap[t]=n,this.nodeLabelMap[e]||(this.nodeLabelMap[e]=[]),this.nodeLabelMap[e].push(t)}},t.prototype.addEdge=function(t,e,r,i){if((this.edgeIdAutoIncrease||void 0===t)&&(t=this.counter++),!(this.nodeMap[e]&&this.nodeMap[r]&&this.nodeMap[r].edgeMap[t])){var o=new n(t,e,r,i);if(this.edges.push(o),this.edgeMap[t]=o,this.nodeMap[e].addEdge(o),this.edgeLabelMap[i]||(this.edgeLabelMap[i]=[]),this.edgeLabelMap[i].push(o),!this.directed){var a=new n(t,r,e,i);this.nodeMap[r].addEdge(a),this.edgeLabelMap[i].push(a)}}},t}();e.Graph=i},51147:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(31635),i=u(n(91510)),o=u(n(69611)),a=u(n(7304)),s=n(34170);function u(t){return t&&t.__esModule?t:{default:t}}var l=function(t,e,n,r){void 0===n&&(n="cluster"),void 0===r&&(r=2);var i=[],o=t.nodes;return e.forEach((function(t,e){i.push(c(o,t,e,n,r))})),i},c=function(t,e,n,r,i){var o=[n],a=[],s={};return e.forEach((function(e,u){if(e<=i&&n!==u){o.push(u),a.push(t[u]);var l=t[u][r];s[l]?(s[l].count++,s[l].dists.push(e)):s[l]={count:1,dists:[e]}}})),Object.keys(s).forEach((function(t){s[t].dists=s[t].dists.sort((function(t,e){return t-e}))})),{nodeIdx:n,nodeId:t[n].id,nodeIdxs:o,neighbors:a,neighborNum:o.length-1,nodeLabelCountMap:s}},h=function(t,e,n,r){var i=n.nodes;return r||(r={}),Object.keys(t).forEach((function(o){var a,s;if(!r||!r[o]){r[o]={nodes:[],edges:[]};var u=t[o],l=null===(a=e[u.start])||void 0===a?void 0:a.nodeIdxs,c=null===(s=e[u.end])||void 0===s?void 0:s.nodeIdxs;if(l&&c){var h=new Set(c),d=l.filter((function(t){return h.has(t)}));if(d&&d.length){for(var f={},p=d.length,m=0;me&&(s=e);var r=n[t.id].inDegree;u>r&&(u=r);var i=n[t.id].outDegree;l>i&&(l=i)})),t[e]={degree:s,inDegree:u,outDegree:l}),{minPatternNodeLabelDegree:s,minPatternNodeLabelInDegree:u,minPatternNodeLabelOutDegree:l}},y=function(t,e,n,s,u,y,b){var x;if(void 0===n&&(n=!1),void 0===y&&(y="cluster"),void 0===b&&(b="cluster"),t&&t.nodes){var w=t.nodes.length;if(w){var _=(0,i.default)(t,n),S=(0,i.default)(e,n),E=m(t.nodes,_,n),A=m(e.nodes,S,n),M=f(t.nodes,y),C=M.nodeMap,T=M.nodeLabelMap,k=f(e.nodes,y),I=k.nodeMap,N=k.nodeLabelMap;p(t.edges,b,C);var P=p(e.edges,b,I).edgeLabelMap,O=[];null==S||S.forEach((function(t){O=O.concat(t)})),u||(u=Math.max.apply(Math,(0,r.__spreadArray)((0,r.__spreadArray)([],O,!1),[2],!1))),s||(s=u);var L=l(t,_,y,s),R=l(e,S,y,s),D=function(t,e,n,r,i){var o=Math.ceil(n/e),a={},s=0;return r.forEach((function(t,r){for(var u=0,l=0,c=t.nodeIdxs,h=t.neighborNum-1;u2*e)););if(f<2*e&&(a["".concat(r,"-").concat(d)]={start:r,end:d,distance:i[r][d]},u++,++s>=n))return a;if(++l>2*e)break}uq&&(q=n.length,X=n,Y=e,W=t)}));var $={},K={},Z={},Q={},J={},tt={};Object.keys(N).forEach((function(r,i){J[r]=[],n&&(tt[r]=[]);var o=-1/0,a=N[r],s={};a.forEach((function(t){var e=A["".concat(W.id,"-").concat(t.id)];if(e&&J[r].push(e),oJ[r][l]){s=!0;break}if(s)return X.splice(e,1),"continue";var c={};i.neighbors.forEach((function(t){var e=E["".concat(n.id,"-").concat(t.id)];c["".concat(n.id,"-").concat(t.id)]={start:C[n.id].idx,end:C[t.id].idx,distance:e}})),z=h(c,L,t,z);var f=[];Object.keys(c).forEach((function(t){if(G[t])f.push(G[t]);else{var e=z[t];G[t]=d(e,H,y,b),f.push(G[t])}})),f=f.sort((function(t,e){return e-t}));var p=!1;for(l=0;l=0;c--)l(c)}));var et=[];null==X||X.forEach((function(r){for(var i=C[r.id].idx,o=c(t.nodes,_[i],i,y,u).neighbors,a=!1,s=o.length-1;s>=0;s--){if(o.length+1J[h][p])o.splice(s,1);else{if(n){var m="".concat(l.id,"-").concat(r.id),x=E[m];if(p=tt[h].length-1,x>tt[h][p]){o.splice(s,1);continue}}var w=G[d]?G[d]:g(t,r,l,C,f,L,H,y,b,G,z),S="".concat(W.id,"-").concat(h);if(w=0;f--){if("break"===x(f))break}if(g)return et.splice(r,1),"continue";i.edges=l;var w=(0,a.default)(i,i.nodes[0].id,!1).length;if(Object.keys(w).reverse().forEach((function(t){if(t!==i.nodes[0].id&&!g){if(w[t]===1/0){var e=u[t].node[y];if(s[e]--,s[e]rt[r][rt[r].length-1]){e=u[t].node[y];if(s[e]--,s[e]=0;E--){var A=i.nodes[E],M=u[A.id].degree,T=u[A.id].inDegree,k=u[A.id].outDegree,O=A[y],L=v($,O,I,N),R=L.minPatternNodeLabelDegree,D=L.minPatternNodeLabelInDegree,z=L.minPatternNodeLabelOutDegree;if(n?M=0;F--){var B=l[F];if(!u[B.source]||!u[B.target]){l.splice(F,1);var U=B[b];if(c[U]--,u[B.source]&&(u[B.source].degree--,u[B.source].outDegree--),u[B.target]&&(u[B.target].degree--,u[B.target].inDegree--),P[U]&&c[U]=0;ot--){if("break"===it(ot))break}var at=et.length,st=function(t){var e=et[t],n={};e.edges.forEach((function(t){var e="".concat(t.source,"-").concat(t.target,"-").concat(t.label);n[e]?n[e]++:n[e]=1}));for(var r=function(t){var e=et[t],r={};e.edges.forEach((function(t){var e="".concat(t.source,"-").concat(t.target,"-").concat(t.label);r[e]?r[e]++:r[e]=1}));var i=!0;Object.keys(r).length!==Object.keys(n).length?i=!1:Object.keys(n).forEach((function(t){r[t]!==n[t]&&(i=!1)})),i&&et.splice(t,1)},i=at-1;i>t;i--)r(i);at=et.length};for(ot=0;ot<=at-1;ot++)st(ot);return et}}};e.default=y},5321:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,i=(r=n(10168))&&r.__esModule?r:{default:r},o=n(34170);var a=function(t,e,n,r){void 0===e&&(e=!1),void 0===n&&(n="weight"),void 0===r&&(r=1e3);var a=t.nodes,s=void 0===a?[]:a,u=t.edges,l=void 0===u?[]:u,c={},h={};s.forEach((function(t,e){var n=(0,o.uniqueId)();t.clusterId=n,c[n]={id:n,nodes:[t]},h[t.id]={node:t,idx:e}}));var d=(0,i.default)(t,e),f=[],p={};d.forEach((function(t,e){var n=0,r=s[e].id;p[r]={},t.forEach((function(t,e){if(t){n+=t;var i=s[e].id;p[r][i]=t}})),f.push(n)}));for(var m=0,g=function(){var t=!1;if(s.forEach((function(e){var n={};Object.keys(p[e.id]).forEach((function(t){var r=p[e.id][t],i=h[t].node.clusterId;n[i]||(n[i]=0),n[i]+=r}));var r=-1/0,i=[];if(Object.keys(n).forEach((function(t){r=0&&i.splice(o,1),i&&i.length){t=!0;var a=c[e.clusterId],s=a.nodes.indexOf(e);a.nodes.splice(s,1);var u=Math.floor(Math.random()*i.length),l=c[i[u]];l.nodes.push(e),e.clusterId=l.id}}})),!t)return"break";m++};m{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(24425),i=u(n(10168)),o=u(n(16831)),a=n(7668),s=n(83767);function u(t){return t&&t.__esModule?t:{default:t}}var l=function(t,e,n,r){for(var i=e.length,o=2*r,a=0,s=0;s0&&k>I&&k-II&&(P=g.map((function(t){return{node:t,clusterId:t.clusterId}})),O=(0,r.clone)(S),I=k),L||N>100)break;N++,Object.keys(S).forEach((function(t){var e=0;y.forEach((function(r){var i=r.source,o=r.target,a=E[i].node.clusterId,s=E[o].node.clusterId;(a===t&&s!==t||s===t&&a!==t)&&(e+=r[n]||1)})),S[t].sumTot=e})),g.forEach((function(t,e){var r,i=S[t.clusterId],o=0,a=M[e]/(2*T),s=0,l=i.nodes;l.forEach((function(t){var n=E[t.id].idx;s+=A[e][n]||0}));var h=s-i.sumTot*a,d=l.filter((function(e){return e.id!==t.id})),f=[];d.forEach((function(t,e){f[e]=b[t.originIndex]}));var m=c(d,b)*p,g=C[t.id];if(Object.keys(g).forEach((function(n){var i=E[n].node.clusterId;if(i!==t.clusterId){var s=S[i],l=s.nodes;if(l&&l.length){var d=0;l.forEach((function(t){var n=E[t.id].idx;d+=A[e][n]||0}));var f=d-s.sumTot*a,g=l.concat([t]),v=[];g.forEach((function(t,e){v[e]=b[t.originIndex]}));var y=c(g,b)*p,x=f-h;u&&(x=f+y-(h+m)),x>o&&(o=x,r=s)}}})),o>0){r.nodes.push(t);var v=t.clusterId;t.clusterId=r.id;var x=i.nodes.indexOf(t);i.nodes.splice(x,1);var w=0,_=0;y.forEach((function(t){var e=t.source,i=t.target,o=E[e].node.clusterId,a=E[i].node.clusterId;(o===r.id&&a!==r.id||a===r.id&&o!==r.id)&&(w+=t[n]||1),(o===v&&a!==v||a===v&&o!==v)&&(_+=t[n]||1)})),r.sumTot=w,i.sumTot=_}}))}var R={},D=0;Object.keys(O).forEach((function(t){var e=O[t];if(e.nodes&&e.nodes.length){var n=String(D+1);n!==t&&(e.id=n,e.nodes=e.nodes.map((function(t){return{id:t.id,clusterId:n}})),O[n]=e,R[t]=n,delete O[t],D++)}else delete O[t]})),P.forEach((function(t){var e=t.node,n=t.clusterId;e&&(e.clusterId=n,e.clusterId&&R[e.clusterId]&&(e.clusterId=R[e.clusterId]))}));var z=[],F={};y.forEach((function(t){var e=t.source,r=t.target,i=t[n]||1,o=E[e].node.clusterId,a=E[r].node.clusterId;if(o&&a){var s="".concat(o,"---").concat(a);if(F[s])F[s].weight+=i,F[s].count++;else{var u={source:o,target:a,weight:i,count:1};F[s]=u,z.push(u)}}}));var B=[];return Object.keys(O).forEach((function(t){B.push(O[t])})),{clusters:B,clusterEdges:z}};e.default=h},65518:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=a(n(46212)),i=a(n(42215)),o=n(34170);function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t,e){var n=[],r=t.nodes,a=void 0===r?[]:r,s=t.edges,u=void 0===s?[]:s;if(0===a.length)return n;var l=a[0],c=new Set;c.add(l);var h=new i.default((function(t,n){return e?t.weight-n.weight:0}));for((0,o.getEdgesByNodeId)(l.id,u).forEach((function(t){h.insert(t)}));!h.isEmpty();){var d=h.delMin(),f=d.source,p=d.target;c.has(f)&&c.has(p)||(n.push(d),c.has(f)||(c.add(f),(0,o.getEdgesByNodeId)(f,u).forEach((function(t){h.insert(t)}))),c.has(p)||(c.add(p),(0,o.getEdgesByNodeId)(p,u).forEach((function(t){h.insert(t)}))))}return n},u=function(t,e){var n=[],i=t.nodes,o=void 0===i?[]:i,a=t.edges,s=void 0===a?[]:a;if(0===o.length)return n;var u=s.map((function(t){return t}));e&&u.sort((function(t,e){return t.weight-e.weight}));for(var l=new r.default(o.map((function(t){return t.id})));u.length>0;){var c=u.shift(),h=c.source,d=c.target;l.connected(h,d)||(n.push(c),l.union(h,d))}return n},l=function(t,e,n){return n?{prim:s,kruskal:u}[n](t,e):u(t,e)};e.default=l},20247:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,i=(r=n(42378))&&r.__esModule?r:{default:r},o=n(34170);var a=function(t,e,n){"number"!=typeof e&&(e=1e-6),"number"!=typeof n&&(n=.85);for(var r,a=1,s=0,u=1e3,l=t.nodes,c=void 0===l?[]:l,h=t.edges,d=void 0===h?[]:h,f=c.length,p={},m={},g=0;g0&&a>e;){s=0;for(g=0;g0&&(r+=m[w]/_)}p[y]=n*r,s+=p[y]}}s=(1-s)/f,a=0;for(g=0;g{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(t,e){return t-e},r=function(){function t(t){void 0===t&&(t=n),this.compareFn=t,this.list=[]}return t.prototype.getLeft=function(t){return 2*t+1},t.prototype.getRight=function(t){return 2*t+2},t.prototype.getParent=function(t){return 0===t?null:Math.floor((t-1)/2)},t.prototype.isEmpty=function(){return this.list.length<=0},t.prototype.top=function(){return this.isEmpty()?void 0:this.list[0]},t.prototype.delMin=function(){var t=this.top(),e=this.list.pop();return this.list.length>0&&(this.list[0]=e,this.moveDown(0)),t},t.prototype.insert=function(t){if(null!==t){this.list.push(t);var e=this.list.length-1;return this.moveUp(e),!0}return!1},t.prototype.moveUp=function(t){for(var e=this.getParent(t);t&&t>0&&this.compareFn(this.list[e],this.list[t])>0;){var n=this.list[e];this.list[e]=this.list[t],this.list[t]=n,t=e,e=this.getParent(t)}},t.prototype.moveDown=function(t){var e,n=t,r=this.getLeft(t),i=this.getRight(t),o=this.list.length;null!==r&&r0?n=r:null!==i&&i0&&(n=i),t!==n&&(e=[this.list[n],this.list[t]],this.list[t]=e[0],this.list[n]=e[1],this.moveDown(n))},t}();e.default=r},92041:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.LinkedListNode=void 0;var n=function(t,e){return t===e},r=function(){function t(t,e){void 0===e&&(e=null),this.value=t,this.next=e}return t.prototype.toString=function(t){return t?t(this.value):"".concat(this.value)},t}();e.LinkedListNode=r;var i=function(){function t(t){void 0===t&&(t=n),this.head=null,this.tail=null,this.compare=t}return t.prototype.prepend=function(t){var e=new r(t,this.head);return this.head=e,this.tail||(this.tail=e),this},t.prototype.append=function(t){var e=new r(t);return this.head?(this.tail.next=e,this.tail=e,this):(this.head=e,this.tail=e,this)},t.prototype.delete=function(t){if(!this.head)return null;for(var e=null;this.head&&this.compare(this.head.value,t);)e=this.head,this.head=this.head.next;var n=this.head;if(null!==n)for(;n.next;)this.compare(n.next.value,t)?(e=n.next,n.next=n.next.next):n=n.next;return this.compare(this.tail.value,t)&&(this.tail=n),e},t.prototype.find=function(t){var e=t.value,n=void 0===e?void 0:e,r=t.callback,i=void 0===r?void 0:r;if(!this.head)return null;for(var o=this.head;o;){if(i&&i(o.value))return o;if(void 0!==n&&this.compare(o.value,n))return o;o=o.next}return null},t.prototype.deleteTail=function(){var t=this.tail;if(this.head===this.tail)return this.head=null,this.tail=null,t;for(var e=this.head;e.next;)e.next.next?e=e.next:e.next=null;return this.tail=e,t},t.prototype.deleteHead=function(){if(!this.head)return null;var t=this.head;return this.head.next?this.head=this.head.next:(this.head=null,this.tail=null),t},t.prototype.fromArray=function(t){var e=this;return t.forEach((function(t){return e.append(t)})),this},t.prototype.toArray=function(){for(var t=[],e=this.head;e;)t.push(e),e=e.next;return t},t.prototype.reverse=function(){for(var t=this.head,e=null,n=null;t;)n=t.next,t.next=e,e=t,t=n;this.tail=this.head,this.head=e},t.prototype.toString=function(t){return void 0===t&&(t=void 0),this.toArray().map((function(e){return e.toString(t)})).toString()},t}();e.default=i},52014:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,i=(r=n(92041))&&r.__esModule?r:{default:r};var o=function(){function t(){this.linkedList=new i.default}return t.prototype.isEmpty=function(){return!this.linkedList.head},t.prototype.peek=function(){return this.linkedList.head?this.linkedList.head.value:null},t.prototype.enqueue=function(t){this.linkedList.append(t)},t.prototype.dequeue=function(){var t=this.linkedList.deleteHead();return t?t.value:null},t.prototype.toString=function(t){return this.linkedList.toString(t)},t}();e.default=o},46212:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(){function t(t){this.count=t.length,this.parent={};for(var e=0,n=t;e{"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.DistanceType=void 0,e.DistanceType=n,function(t){t.EuclideanDistance="euclideanDistance"}(n||(e.DistanceType=n={}))},34170:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.uniqueId=e.getOutEdgesNodeId=e.getNeighbors=e.getEdgesByNodeId=void 0;e.getNeighbors=function(t,e,n){void 0===e&&(e=[]);var r=e.filter((function(e){return e.source===t||e.target===t}));if("target"===n){return r.filter((function(e){return e.source===t})).map((function(t){return t.target}))}if("source"===n){return r.filter((function(e){return e.target===t})).map((function(t){return t.source}))}return r.map((function(e){return e.source===t?e.target:e.source}))};e.getOutEdgesNodeId=function(t,e){return e.filter((function(e){return e.source===t}))};e.getEdgesByNodeId=function(t,e){return e.filter((function(e){return e.source===t||e.target===t}))};e.uniqueId=function(t){void 0===t&&(t=0);var e="".concat(Math.random()).split(".")[1].substr(0,5),n="".concat(Math.random()).split(".")[1].substr(0,5);return"".concat(t,"-").concat(e).concat(n)}},83767:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.oneHot=e.getDistance=e.getAllKeyValueMap=e.default=void 0;var r,i=n(24425),o=n(6165),a=(r=n(16831))&&r.__esModule?r:{default:r};var s=function(t,e,n){var r=[];(null==e?void 0:e.length)?r=e:(t.forEach((function(t){r=r.concat(Object.keys(t))})),r=(0,i.uniq)(r));var o={};return r.forEach((function(e){var r=[];t.forEach((function(t){void 0!==t[e]&&""!==t[e]&&r.push(t[e])})),r.length&&!(null==n?void 0:n.includes(e))&&(o[e]=(0,i.uniq)(r))})),o};e.getAllKeyValueMap=s;var u=function(t,e,n){var r=s(t,e,n),i=[];if(!Object.keys(r).length)return i;var o=Object.values(r).every((function(t){return t.every((function(t){return"number"==typeof t}))}));return t.forEach((function(t,e){var n=[];Object.keys(r).forEach((function(e){var i=t[e],a=r[e],s=a.findIndex((function(t){return i===t})),u=[];if(o)u.push(i);else for(var l=0;l{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getPropertyWeight=e.getAllSortProperties=e.getAllProperties=e.default=void 0;var r=n(97465),i=function(t,e){void 0===t&&(t=[]),void 0===e&&(e=100);var n={};t.forEach((function(t){t.properties&&Object.keys(t.properties).forEach((function(e){"id"===e||!"".concat(t.properties[e]).match(r.secondReg)&&!"".concat(t.properties[e]).match(r.dateReg)&&isNaN(Number(t.properties[e]))?n.hasOwnProperty(e)&&delete n[e]:n.hasOwnProperty(e)?n[e]+=1:n[e]=1}))}));var i=Object.keys(n).sort((function(t,e){return n[e]-n[t]}));return i.length{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(24425),i=function(){function t(t){this.arr=t}return t.prototype.getArr=function(){return this.arr||[]},t.prototype.add=function(e){var n,r=e.arr;if(!(null===(n=this.arr)||void 0===n?void 0:n.length))return new t(r);if(!(null==r?void 0:r.length))return new t(this.arr);if(this.arr.length===r.length){var i=[];for(var o in this.arr)i[o]=this.arr[o]+r[o];return new t(i)}},t.prototype.subtract=function(e){var n,r=e.arr;if(!(null===(n=this.arr)||void 0===n?void 0:n.length))return new t(r);if(!(null==r?void 0:r.length))return new t(this.arr);if(this.arr.length===r.length){var i=[];for(var o in this.arr)i[o]=this.arr[o]-r[o];return new t(i)}},t.prototype.avg=function(e){var n=[];if(0!==e)for(var r in this.arr)n[r]=this.arr[r]/e;return new t(n)},t.prototype.negate=function(){var e=[];for(var n in this.arr)e[n]=-this.arr[n];return new t(e)},t.prototype.squareEuclideanDistance=function(t){var e,n=t.arr;if(!(null===(e=this.arr)||void 0===e?void 0:e.length)||!(null==n?void 0:n.length))return 0;if(this.arr.length===n.length){var r=0;for(var i in this.arr)r+=Math.pow(this.arr[i]-t.arr[i],2);return r}},t.prototype.euclideanDistance=function(t){var e,n=t.arr;if(!(null===(e=this.arr)||void 0===e?void 0:e.length)||!(null==n?void 0:n.length))return 0;if(this.arr.length===n.length){var r=0;for(var i in this.arr)r+=Math.pow(this.arr[i]-t.arr[i],2);return Math.sqrt(r)}console.error("The two vectors are unequal in length.")},t.prototype.normalize=function(){var e=[],n=(0,r.clone)(this.arr);n.sort((function(t,e){return t-e}));var i=n[n.length-1],o=n[0];for(var a in this.arr)e[a]=(this.arr[a]-o)/(i-o);return new t(e)},t.prototype.norm2=function(){var t;if(!(null===(t=this.arr)||void 0===t?void 0:t.length))return 0;var e=0;for(var n in this.arr)e+=Math.pow(this.arr[n],2);return Math.sqrt(e)},t.prototype.dot=function(t){var e,n=t.arr;if(!(null===(e=this.arr)||void 0===e?void 0:e.length)||!(null==n?void 0:n.length))return 0;if(this.arr.length===n.length){var r=0;for(var i in this.arr)r+=this.arr[i]*t.arr[i];return r}console.error("The two vectors are unequal in length.")},t.prototype.equal=function(t){var e,n=t.arr;if((null===(e=this.arr)||void 0===e?void 0:e.length)!==(null==n?void 0:n.length))return!1;for(var r in this.arr)if(this.arr[r]!==n[r])return!1;return!0},t}();e.default=i},80873:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"GADDI",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"breadthFirstSearch",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"connectedComponent",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"depthFirstSearch",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"detectCycle",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"dijkstra",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"findAllPath",{enumerable:!0,get:function(){return h.findAllPath}}),Object.defineProperty(e,"findShortestPath",{enumerable:!0,get:function(){return h.findShortestPath}}),Object.defineProperty(e,"floydWarshall",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"getAdjMatrix",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"getDegree",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"getInDegree",{enumerable:!0,get:function(){return s.getInDegree}}),Object.defineProperty(e,"getNeighbors",{enumerable:!0,get:function(){return y.getNeighbors}}),Object.defineProperty(e,"getOutDegree",{enumerable:!0,get:function(){return s.getOutDegree}}),Object.defineProperty(e,"labelPropagation",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"louvain",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"minimumSpanningTree",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"pageRank",{enumerable:!0,get:function(){return g.default}});var i=x(n(10168)),o=x(n(48441)),a=x(n(6277)),s=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=b(e);if(n&&n.has(t))return n.get(t);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var s=o?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(i,a,s):i[a]=t[a]}i.default=t,n&&n.set(t,i);return i}(n(42378)),u=x(n(91042)),l=x(n(50115)),c=x(n(7304)),h=n(38785),d=x(n(91510)),f=x(n(5321)),p=x(n(71678)),m=x(n(65518)),g=x(n(20247)),v=x(n(51147)),y=n(34170);function b(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(b=function(t){return t?n:e})(t)}function x(t){return t&&t.__esModule?t:{default:t}}},22274:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MESSAGE=e.ALGORITHM=void 0;e.ALGORITHM={pageRank:"pageRank",breadthFirstSearch:"breadthFirstSearch",connectedComponent:"connectedComponent",depthFirstSearch:"depthFirstSearch",detectCycle:"detectCycle",detectDirectedCycle:"detectDirectedCycle",detectAllCycles:"detectAllCycles",detectAllDirectedCycle:"detectAllDirectedCycle",detectAllUndirectedCycle:"detectAllUndirectedCycle",dijkstra:"dijkstra",findAllPath:"findAllPath",findShortestPath:"findShortestPath",floydWarshall:"floydWarshall",getAdjMatrix:"getAdjMatrix",getDegree:"getDegree",getInDegree:"getInDegree",getNeighbors:"getNeighbors",getOutDegree:"getOutDegree",labelPropagation:"labelPropagation",louvain:"louvain",GADDI:"GADDI",minimumSpanningTree:"minimumSpanningTree",SUCCESS:"SUCCESS",FAILURE:"FAILURE"};e.MESSAGE={SUCCESS:"SUCCESS",FAILURE:"FAILURE"}},30248:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,i=n(22274),o=(r=n(88346))&&r.__esModule?r:{default:r};var a=function(t){return function(){for(var e=[],n=0;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pageRankAsync=e.minimumSpanningTreeAsync=e.louvainAsync=e.labelPropagationAsync=e.getOutDegreeAsync=e.getNeighborsAsync=e.getInDegreeAsync=e.getDegreeAsync=e.getAdjMatrixAsync=e.floydWarshallAsync=e.findShortestPathAsync=e.findAllPathAsync=e.dijkstraAsync=e.detectCycleAsync=e.detectAllUndirectedCycleAsync=e.detectAllDirectedCycleAsync=e.detectAllCyclesAsync=e.connectedComponentAsync=e.GADDIAsync=void 0;var r,i=(r=n(30248))&&r.__esModule?r:{default:r},o=n(22274);e.getAdjMatrixAsync=function(t,e){return(0,i.default)(o.ALGORITHM.getAdjMatrix).apply(void 0,[t,e])};e.connectedComponentAsync=function(t,e){return(0,i.default)(o.ALGORITHM.connectedComponent).apply(void 0,[t,e])};e.getDegreeAsync=function(t){return(0,i.default)(o.ALGORITHM.getDegree)(t)};e.getInDegreeAsync=function(t,e){return(0,i.default)(o.ALGORITHM.getInDegree)(t,e)};e.getOutDegreeAsync=function(t,e){return(0,i.default)(o.ALGORITHM.getOutDegree)(t,e)};e.detectCycleAsync=function(t){return(0,i.default)(o.ALGORITHM.detectCycle)(t)};e.detectAllCyclesAsync=function(t){return(0,i.default)(o.ALGORITHM.detectAllCycles)(t)};e.detectAllDirectedCycleAsync=function(t){return(0,i.default)(o.ALGORITHM.detectAllDirectedCycle)(t)};e.detectAllUndirectedCycleAsync=function(t){return(0,i.default)(o.ALGORITHM.detectAllUndirectedCycle)(t)};e.dijkstraAsync=function(t,e,n,r){return(0,i.default)(o.ALGORITHM.dijkstra).apply(void 0,[t,e,n,r])};e.findAllPathAsync=function(t,e,n,r){return(0,i.default)(o.ALGORITHM.findAllPath).apply(void 0,[t,e,n,r])};e.findShortestPathAsync=function(t,e,n,r,a){return(0,i.default)(o.ALGORITHM.findShortestPath).apply(void 0,[t,e,n,r,a])};e.floydWarshallAsync=function(t,e){return(0,i.default)(o.ALGORITHM.floydWarshall).apply(void 0,[t,e])};e.labelPropagationAsync=function(t,e,n,r){return void 0===r&&(r=1e3),(0,i.default)(o.ALGORITHM.labelPropagation)(t,e,n,r)};e.louvainAsync=function(t,e,n,r){return(0,i.default)(o.ALGORITHM.louvain)(t,e,n,r)};e.minimumSpanningTreeAsync=function(t,e,n){return(0,i.default)(o.ALGORITHM.minimumSpanningTree).apply(void 0,[t,e,n])};e.pageRankAsync=function(t,e,n){return(0,i.default)(o.ALGORITHM.pageRank).apply(void 0,[t,e,n])};e.getNeighborsAsync=function(t,e,n){return(0,i.default)(o.ALGORITHM.getNeighbors).apply(void 0,[t,e,n])};e.GADDIAsync=function(t,e,n,r,a,s,u){return void 0===n&&(n=!1),void 0===s&&(s="cluster"),void 0===u&&(u="cluster"),(0,i.default)(o.ALGORITHM.GADDI).apply(void 0,[t,e,n,r,a,s,u])}},88346:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=a(e);if(n&&n.has(t))return n.get(t);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var u=o?Object.getOwnPropertyDescriptor(t,s):null;u&&(u.get||u.set)?Object.defineProperty(i,s,u):i[s]=t[s]}i.default=t,n&&n.set(t,i);return i}(n(80873)),o=n(22274);function a(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(a=function(t){return t?n:e})(t)}var s="undefined"!=typeof self?self:{};s.onmessage=function(t){var e=t.data,n=e._algorithmType,r=e.data;if(n)if("function"!=typeof i[n])s.postMessage({_algorithmType:o.MESSAGE.FAILURE});else{var a=i[n].apply(i,r);s.postMessage({_algorithmType:o.MESSAGE.SUCCESS,data:a})}};e.default=null},4706:(t,e,n)=>{"use strict";n.r(e),n.d(e,{Kernel:()=>U,World:()=>_t});var r=n(10467),i=n(64467),o=n(23029),a=n(92901),s=n(37167),u=n.n(s),l=n(98023),c=n.n(l),h=n(56449),d=n.n(h),f=n(54756),p=n.n(f),m=1;function g(){return m++}var v;!function(t){t[t.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",t[t.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",t[t.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT",t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN",t[t.ZERO=0]="ZERO",t[t.ONE=1]="ONE",t[t.SRC_COLOR=768]="SRC_COLOR",t[t.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",t[t.SRC_ALPHA=770]="SRC_ALPHA",t[t.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",t[t.DST_ALPHA=772]="DST_ALPHA",t[t.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",t[t.DST_COLOR=774]="DST_COLOR",t[t.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",t[t.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",t[t.FUNC_ADD=32774]="FUNC_ADD",t[t.BLEND_EQUATION=32777]="BLEND_EQUATION",t[t.BLEND_EQUATION_RGB=32777]="BLEND_EQUATION_RGB",t[t.BLEND_EQUATION_ALPHA=34877]="BLEND_EQUATION_ALPHA",t[t.FUNC_SUBTRACT=32778]="FUNC_SUBTRACT",t[t.FUNC_REVERSE_SUBTRACT=32779]="FUNC_REVERSE_SUBTRACT",t[t.MAX_EXT=32776]="MAX_EXT",t[t.MIN_EXT=32775]="MIN_EXT",t[t.BLEND_DST_RGB=32968]="BLEND_DST_RGB",t[t.BLEND_SRC_RGB=32969]="BLEND_SRC_RGB",t[t.BLEND_DST_ALPHA=32970]="BLEND_DST_ALPHA",t[t.BLEND_SRC_ALPHA=32971]="BLEND_SRC_ALPHA",t[t.CONSTANT_COLOR=32769]="CONSTANT_COLOR",t[t.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",t[t.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",t[t.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA",t[t.BLEND_COLOR=32773]="BLEND_COLOR",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER_BINDING=34964]="ARRAY_BUFFER_BINDING",t[t.ELEMENT_ARRAY_BUFFER_BINDING=34965]="ELEMENT_ARRAY_BUFFER_BINDING",t[t.STREAM_DRAW=35040]="STREAM_DRAW",t[t.STATIC_DRAW=35044]="STATIC_DRAW",t[t.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",t[t.BUFFER_SIZE=34660]="BUFFER_SIZE",t[t.BUFFER_USAGE=34661]="BUFFER_USAGE",t[t.CURRENT_VERTEX_ATTRIB=34342]="CURRENT_VERTEX_ATTRIB",t[t.FRONT=1028]="FRONT",t[t.BACK=1029]="BACK",t[t.FRONT_AND_BACK=1032]="FRONT_AND_BACK",t[t.CULL_FACE=2884]="CULL_FACE",t[t.BLEND=3042]="BLEND",t[t.DITHER=3024]="DITHER",t[t.STENCIL_TEST=2960]="STENCIL_TEST",t[t.DEPTH_TEST=2929]="DEPTH_TEST",t[t.SCISSOR_TEST=3089]="SCISSOR_TEST",t[t.POLYGON_OFFSET_FILL=32823]="POLYGON_OFFSET_FILL",t[t.SAMPLE_ALPHA_TO_COVERAGE=32926]="SAMPLE_ALPHA_TO_COVERAGE",t[t.SAMPLE_COVERAGE=32928]="SAMPLE_COVERAGE",t[t.NO_ERROR=0]="NO_ERROR",t[t.INVALID_ENUM=1280]="INVALID_ENUM",t[t.INVALID_VALUE=1281]="INVALID_VALUE",t[t.INVALID_OPERATION=1282]="INVALID_OPERATION",t[t.OUT_OF_MEMORY=1285]="OUT_OF_MEMORY",t[t.CW=2304]="CW",t[t.CCW=2305]="CCW",t[t.LINE_WIDTH=2849]="LINE_WIDTH",t[t.ALIASED_POINT_SIZE_RANGE=33901]="ALIASED_POINT_SIZE_RANGE",t[t.ALIASED_LINE_WIDTH_RANGE=33902]="ALIASED_LINE_WIDTH_RANGE",t[t.CULL_FACE_MODE=2885]="CULL_FACE_MODE",t[t.FRONT_FACE=2886]="FRONT_FACE",t[t.DEPTH_RANGE=2928]="DEPTH_RANGE",t[t.DEPTH_WRITEMASK=2930]="DEPTH_WRITEMASK",t[t.DEPTH_CLEAR_VALUE=2931]="DEPTH_CLEAR_VALUE",t[t.DEPTH_FUNC=2932]="DEPTH_FUNC",t[t.STENCIL_CLEAR_VALUE=2961]="STENCIL_CLEAR_VALUE",t[t.STENCIL_FUNC=2962]="STENCIL_FUNC",t[t.STENCIL_FAIL=2964]="STENCIL_FAIL",t[t.STENCIL_PASS_DEPTH_FAIL=2965]="STENCIL_PASS_DEPTH_FAIL",t[t.STENCIL_PASS_DEPTH_PASS=2966]="STENCIL_PASS_DEPTH_PASS",t[t.STENCIL_REF=2967]="STENCIL_REF",t[t.STENCIL_VALUE_MASK=2963]="STENCIL_VALUE_MASK",t[t.STENCIL_WRITEMASK=2968]="STENCIL_WRITEMASK",t[t.STENCIL_BACK_FUNC=34816]="STENCIL_BACK_FUNC",t[t.STENCIL_BACK_FAIL=34817]="STENCIL_BACK_FAIL",t[t.STENCIL_BACK_PASS_DEPTH_FAIL=34818]="STENCIL_BACK_PASS_DEPTH_FAIL",t[t.STENCIL_BACK_PASS_DEPTH_PASS=34819]="STENCIL_BACK_PASS_DEPTH_PASS",t[t.STENCIL_BACK_REF=36003]="STENCIL_BACK_REF",t[t.STENCIL_BACK_VALUE_MASK=36004]="STENCIL_BACK_VALUE_MASK",t[t.STENCIL_BACK_WRITEMASK=36005]="STENCIL_BACK_WRITEMASK",t[t.VIEWPORT=2978]="VIEWPORT",t[t.SCISSOR_BOX=3088]="SCISSOR_BOX",t[t.COLOR_CLEAR_VALUE=3106]="COLOR_CLEAR_VALUE",t[t.COLOR_WRITEMASK=3107]="COLOR_WRITEMASK",t[t.UNPACK_ALIGNMENT=3317]="UNPACK_ALIGNMENT",t[t.PACK_ALIGNMENT=3333]="PACK_ALIGNMENT",t[t.MAX_TEXTURE_SIZE=3379]="MAX_TEXTURE_SIZE",t[t.MAX_VIEWPORT_DIMS=3386]="MAX_VIEWPORT_DIMS",t[t.SUBPIXEL_BITS=3408]="SUBPIXEL_BITS",t[t.RED_BITS=3410]="RED_BITS",t[t.GREEN_BITS=3411]="GREEN_BITS",t[t.BLUE_BITS=3412]="BLUE_BITS",t[t.ALPHA_BITS=3413]="ALPHA_BITS",t[t.DEPTH_BITS=3414]="DEPTH_BITS",t[t.STENCIL_BITS=3415]="STENCIL_BITS",t[t.POLYGON_OFFSET_UNITS=10752]="POLYGON_OFFSET_UNITS",t[t.POLYGON_OFFSET_FACTOR=32824]="POLYGON_OFFSET_FACTOR",t[t.TEXTURE_BINDING_2D=32873]="TEXTURE_BINDING_2D",t[t.SAMPLE_BUFFERS=32936]="SAMPLE_BUFFERS",t[t.SAMPLES=32937]="SAMPLES",t[t.SAMPLE_COVERAGE_VALUE=32938]="SAMPLE_COVERAGE_VALUE",t[t.SAMPLE_COVERAGE_INVERT=32939]="SAMPLE_COVERAGE_INVERT",t[t.COMPRESSED_TEXTURE_FORMATS=34467]="COMPRESSED_TEXTURE_FORMATS",t[t.DONT_CARE=4352]="DONT_CARE",t[t.FASTEST=4353]="FASTEST",t[t.NICEST=4354]="NICEST",t[t.GENERATE_MIPMAP_HINT=33170]="GENERATE_MIPMAP_HINT",t[t.BYTE=5120]="BYTE",t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.SHORT=5122]="SHORT",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.INT=5124]="INT",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.FLOAT=5126]="FLOAT",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.ALPHA=6406]="ALPHA",t[t.RGB=6407]="RGB",t[t.RGBA=6408]="RGBA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",t[t.VERTEX_SHADER=35633]="VERTEX_SHADER",t[t.MAX_VERTEX_ATTRIBS=34921]="MAX_VERTEX_ATTRIBS",t[t.MAX_VERTEX_UNIFORM_VECTORS=36347]="MAX_VERTEX_UNIFORM_VECTORS",t[t.MAX_VARYING_VECTORS=36348]="MAX_VARYING_VECTORS",t[t.MAX_COMBINED_TEXTURE_IMAGE_UNITS=35661]="MAX_COMBINED_TEXTURE_IMAGE_UNITS",t[t.MAX_VERTEX_TEXTURE_IMAGE_UNITS=35660]="MAX_VERTEX_TEXTURE_IMAGE_UNITS",t[t.MAX_TEXTURE_IMAGE_UNITS=34930]="MAX_TEXTURE_IMAGE_UNITS",t[t.MAX_FRAGMENT_UNIFORM_VECTORS=36349]="MAX_FRAGMENT_UNIFORM_VECTORS",t[t.SHADER_TYPE=35663]="SHADER_TYPE",t[t.DELETE_STATUS=35712]="DELETE_STATUS",t[t.LINK_STATUS=35714]="LINK_STATUS",t[t.VALIDATE_STATUS=35715]="VALIDATE_STATUS",t[t.ATTACHED_SHADERS=35717]="ATTACHED_SHADERS",t[t.ACTIVE_UNIFORMS=35718]="ACTIVE_UNIFORMS",t[t.ACTIVE_ATTRIBUTES=35721]="ACTIVE_ATTRIBUTES",t[t.SHADING_LANGUAGE_VERSION=35724]="SHADING_LANGUAGE_VERSION",t[t.CURRENT_PROGRAM=35725]="CURRENT_PROGRAM",t[t.NEVER=512]="NEVER",t[t.LESS=513]="LESS",t[t.EQUAL=514]="EQUAL",t[t.LEQUAL=515]="LEQUAL",t[t.GREATER=516]="GREATER",t[t.NOTEQUAL=517]="NOTEQUAL",t[t.GEQUAL=518]="GEQUAL",t[t.ALWAYS=519]="ALWAYS",t[t.KEEP=7680]="KEEP",t[t.REPLACE=7681]="REPLACE",t[t.INCR=7682]="INCR",t[t.DECR=7683]="DECR",t[t.INVERT=5386]="INVERT",t[t.INCR_WRAP=34055]="INCR_WRAP",t[t.DECR_WRAP=34056]="DECR_WRAP",t[t.VENDOR=7936]="VENDOR",t[t.RENDERER=7937]="RENDERER",t[t.VERSION=7938]="VERSION",t[t.NEAREST=9728]="NEAREST",t[t.LINEAR=9729]="LINEAR",t[t.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",t[t.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",t[t.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",t[t.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR",t[t.TEXTURE_MAG_FILTER=10240]="TEXTURE_MAG_FILTER",t[t.TEXTURE_MIN_FILTER=10241]="TEXTURE_MIN_FILTER",t[t.TEXTURE_WRAP_S=10242]="TEXTURE_WRAP_S",t[t.TEXTURE_WRAP_T=10243]="TEXTURE_WRAP_T",t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE=5890]="TEXTURE",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_BINDING_CUBE_MAP=34068]="TEXTURE_BINDING_CUBE_MAP",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",t[t.MAX_CUBE_MAP_TEXTURE_SIZE=34076]="MAX_CUBE_MAP_TEXTURE_SIZE",t[t.TEXTURE0=33984]="TEXTURE0",t[t.TEXTURE1=33985]="TEXTURE1",t[t.TEXTURE2=33986]="TEXTURE2",t[t.TEXTURE3=33987]="TEXTURE3",t[t.TEXTURE4=33988]="TEXTURE4",t[t.TEXTURE5=33989]="TEXTURE5",t[t.TEXTURE6=33990]="TEXTURE6",t[t.TEXTURE7=33991]="TEXTURE7",t[t.TEXTURE8=33992]="TEXTURE8",t[t.TEXTURE9=33993]="TEXTURE9",t[t.TEXTURE10=33994]="TEXTURE10",t[t.TEXTURE11=33995]="TEXTURE11",t[t.TEXTURE12=33996]="TEXTURE12",t[t.TEXTURE13=33997]="TEXTURE13",t[t.TEXTURE14=33998]="TEXTURE14",t[t.TEXTURE15=33999]="TEXTURE15",t[t.TEXTURE16=34e3]="TEXTURE16",t[t.TEXTURE17=34001]="TEXTURE17",t[t.TEXTURE18=34002]="TEXTURE18",t[t.TEXTURE19=34003]="TEXTURE19",t[t.TEXTURE20=34004]="TEXTURE20",t[t.TEXTURE21=34005]="TEXTURE21",t[t.TEXTURE22=34006]="TEXTURE22",t[t.TEXTURE23=34007]="TEXTURE23",t[t.TEXTURE24=34008]="TEXTURE24",t[t.TEXTURE25=34009]="TEXTURE25",t[t.TEXTURE26=34010]="TEXTURE26",t[t.TEXTURE27=34011]="TEXTURE27",t[t.TEXTURE28=34012]="TEXTURE28",t[t.TEXTURE29=34013]="TEXTURE29",t[t.TEXTURE30=34014]="TEXTURE30",t[t.TEXTURE31=34015]="TEXTURE31",t[t.ACTIVE_TEXTURE=34016]="ACTIVE_TEXTURE",t[t.REPEAT=10497]="REPEAT",t[t.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",t[t.FLOAT_VEC2=35664]="FLOAT_VEC2",t[t.FLOAT_VEC3=35665]="FLOAT_VEC3",t[t.FLOAT_VEC4=35666]="FLOAT_VEC4",t[t.INT_VEC2=35667]="INT_VEC2",t[t.INT_VEC3=35668]="INT_VEC3",t[t.INT_VEC4=35669]="INT_VEC4",t[t.BOOL=35670]="BOOL",t[t.BOOL_VEC2=35671]="BOOL_VEC2",t[t.BOOL_VEC3=35672]="BOOL_VEC3",t[t.BOOL_VEC4=35673]="BOOL_VEC4",t[t.FLOAT_MAT2=35674]="FLOAT_MAT2",t[t.FLOAT_MAT3=35675]="FLOAT_MAT3",t[t.FLOAT_MAT4=35676]="FLOAT_MAT4",t[t.SAMPLER_2D=35678]="SAMPLER_2D",t[t.SAMPLER_CUBE=35680]="SAMPLER_CUBE",t[t.VERTEX_ATTRIB_ARRAY_ENABLED=34338]="VERTEX_ATTRIB_ARRAY_ENABLED",t[t.VERTEX_ATTRIB_ARRAY_SIZE=34339]="VERTEX_ATTRIB_ARRAY_SIZE",t[t.VERTEX_ATTRIB_ARRAY_STRIDE=34340]="VERTEX_ATTRIB_ARRAY_STRIDE",t[t.VERTEX_ATTRIB_ARRAY_TYPE=34341]="VERTEX_ATTRIB_ARRAY_TYPE",t[t.VERTEX_ATTRIB_ARRAY_NORMALIZED=34922]="VERTEX_ATTRIB_ARRAY_NORMALIZED",t[t.VERTEX_ATTRIB_ARRAY_POINTER=34373]="VERTEX_ATTRIB_ARRAY_POINTER",t[t.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING=34975]="VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",t[t.COMPILE_STATUS=35713]="COMPILE_STATUS",t[t.LOW_FLOAT=36336]="LOW_FLOAT",t[t.MEDIUM_FLOAT=36337]="MEDIUM_FLOAT",t[t.HIGH_FLOAT=36338]="HIGH_FLOAT",t[t.LOW_INT=36339]="LOW_INT",t[t.MEDIUM_INT=36340]="MEDIUM_INT",t[t.HIGH_INT=36341]="HIGH_INT",t[t.FRAMEBUFFER=36160]="FRAMEBUFFER",t[t.RENDERBUFFER=36161]="RENDERBUFFER",t[t.RGBA4=32854]="RGBA4",t[t.RGB5_A1=32855]="RGB5_A1",t[t.RGB565=36194]="RGB565",t[t.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",t[t.STENCIL_INDEX=6401]="STENCIL_INDEX",t[t.STENCIL_INDEX8=36168]="STENCIL_INDEX8",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL",t[t.RENDERBUFFER_WIDTH=36162]="RENDERBUFFER_WIDTH",t[t.RENDERBUFFER_HEIGHT=36163]="RENDERBUFFER_HEIGHT",t[t.RENDERBUFFER_INTERNAL_FORMAT=36164]="RENDERBUFFER_INTERNAL_FORMAT",t[t.RENDERBUFFER_RED_SIZE=36176]="RENDERBUFFER_RED_SIZE",t[t.RENDERBUFFER_GREEN_SIZE=36177]="RENDERBUFFER_GREEN_SIZE",t[t.RENDERBUFFER_BLUE_SIZE=36178]="RENDERBUFFER_BLUE_SIZE",t[t.RENDERBUFFER_ALPHA_SIZE=36179]="RENDERBUFFER_ALPHA_SIZE",t[t.RENDERBUFFER_DEPTH_SIZE=36180]="RENDERBUFFER_DEPTH_SIZE",t[t.RENDERBUFFER_STENCIL_SIZE=36181]="RENDERBUFFER_STENCIL_SIZE",t[t.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE=36048]="FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",t[t.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME=36049]="FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",t[t.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL=36050]="FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",t[t.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE=36051]="FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",t[t.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",t[t.DEPTH_ATTACHMENT=36096]="DEPTH_ATTACHMENT",t[t.STENCIL_ATTACHMENT=36128]="STENCIL_ATTACHMENT",t[t.DEPTH_STENCIL_ATTACHMENT=33306]="DEPTH_STENCIL_ATTACHMENT",t[t.NONE=0]="NONE",t[t.FRAMEBUFFER_COMPLETE=36053]="FRAMEBUFFER_COMPLETE",t[t.FRAMEBUFFER_INCOMPLETE_ATTACHMENT=36054]="FRAMEBUFFER_INCOMPLETE_ATTACHMENT",t[t.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT=36055]="FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",t[t.FRAMEBUFFER_INCOMPLETE_DIMENSIONS=36057]="FRAMEBUFFER_INCOMPLETE_DIMENSIONS",t[t.FRAMEBUFFER_UNSUPPORTED=36061]="FRAMEBUFFER_UNSUPPORTED",t[t.FRAMEBUFFER_BINDING=36006]="FRAMEBUFFER_BINDING",t[t.RENDERBUFFER_BINDING=36007]="RENDERBUFFER_BINDING",t[t.MAX_RENDERBUFFER_SIZE=34024]="MAX_RENDERBUFFER_SIZE",t[t.INVALID_FRAMEBUFFER_OPERATION=1286]="INVALID_FRAMEBUFFER_OPERATION",t[t.UNPACK_FLIP_Y_WEBGL=37440]="UNPACK_FLIP_Y_WEBGL",t[t.UNPACK_PREMULTIPLY_ALPHA_WEBGL=37441]="UNPACK_PREMULTIPLY_ALPHA_WEBGL",t[t.CONTEXT_LOST_WEBGL=37442]="CONTEXT_LOST_WEBGL",t[t.UNPACK_COLORSPACE_CONVERSION_WEBGL=37443]="UNPACK_COLORSPACE_CONVERSION_WEBGL",t[t.BROWSER_DEFAULT_WEBGL=37444]="BROWSER_DEFAULT_WEBGL",t[t.COPY_SRC=1]="COPY_SRC",t[t.COPY_DST=2]="COPY_DST",t[t.SAMPLED=4]="SAMPLED",t[t.STORAGE=8]="STORAGE",t[t.RENDER_ATTACHMENT=16]="RENDER_ATTACHMENT"}(v||(v={}));var y,b,x,w,_=function(){function t(){(0,o.A)(this,t),this.config=void 0}return(0,a.A)(t,[{key:"get",value:function(){return this.config}},{key:"set",value:function(t){this.config=t}}]),t}();"undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent);!function(t){t.Void="Void",t.Boolean="Boolean",t.Float="Float",t.Uint32="Uint32",t.Int32="Int32",t.Vector="Vector",t.Vector2Float="vec2",t.Vector3Float="vec3",t.Vector4Float="vec4",t.Vector2Boolean="vec2",t.Vector3Boolean="vec3",t.Vector4Boolean="vec4",t.Vector2Uint="vec2",t.Vector3Uint="vec3",t.Vector4Uint="vec4",t.Vector2Int="vec2",t.Vector3Int="vec3",t.Vector4Int="vec4",t.Matrix="Matrix",t.Matrix3x3Float="mat3x3",t.Matrix4x4Float="mat4x4",t.Struct="Struct",t.FloatArray="Float[]",t.Vector4FloatArray="vec4[]"}(y||(y={})),function(t){t.Program="Program",t.Identifier="Identifier",t.VariableDeclaration="VariableDeclaration",t.BlockStatement="BlockStatement",t.ReturnStatement="ReturnStatement",t.FunctionDeclaration="FunctionDeclaration",t.VariableDeclarator="VariableDeclarator",t.AssignmentExpression="AssignmentExpression",t.LogicalExpression="LogicalExpression",t.BinaryExpression="BinaryExpression",t.ArrayExpression="ArrayExpression",t.UnaryExpression="UnaryExpression",t.UpdateExpression="UpdateExpression",t.FunctionExpression="FunctionExpression",t.MemberExpression="MemberExpression",t.ConditionalExpression="ConditionalExpression",t.ExpressionStatement="ExpressionStatement",t.CallExpression="CallExpression",t.NumThreadStatement="NumThreadStatement",t.StorageStatement="StorageStatement",t.DoWhileStatement="DoWhileStatement",t.WhileStatement="WhileStatement",t.ForStatement="ForStatement",t.BreakStatement="BreakStatement",t.ContinueStatement="ContinueStatement",t.IfStatement="IfStatement",t.ImportedFunctionStatement="ImportedFunctionStatement"}(b||(b={})),function(t){t.Input="Input",t.Output="Output",t.Uniform="Uniform",t.Workgroup="Workgroup",t.UniformConstant="UniformConstant",t.Image="Image",t.StorageBuffer="StorageBuffer",t.Private="Private",t.Function="Function"}(x||(x={})),function(t){t.GLSL100="GLSL100",t.GLSL450="GLSL450",t.WGSL="WGSL"}(w||(w={}));function S(){if("undefined"!=typeof document)return document.createElement("canvas");throw new Error("Cannot create a canvas in this context")}function E(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function A(t){for(var e=1;e0&&void 0!==i[0]?i[0]:1,!this.dirty){t.next=6;break}return this.compiledBundle.context&&(e>1?this.compiledBundle.context.maxIteration=e:this.compiledBundle.context.maxIteration++),t.next=5,this.compile();case 5:this.dirty=!1;case 6:for(this.engine.beginFrame(),this.engine.clear({}),this.compiledBundle.context&&this.compiledBundle.context.uniforms.filter((function(t){return t.isReferer})).forEach((function(t){var e=t.data,n=t.name;r.model.confirmInput(e.model,n)})),n=0;n16)throw new Error("invalid data type ".concat(n));i[e]=function(){return t.data}}}));var a=this.getOuputDataTexture(),s=a.textureWidth,l=a.texelCount;i.u_OutputTextureSize=[s,s],i.u_OutputTexelCount=l,this.context.output.textureSize=[s,s];var c={attributes:{a_Position:[[-1,1,0],[-1,-1,0],[1,1,0],[1,-1,0]],a_TexCoord:[[0,1],[0,0],[1,1],[1,0]]},frag:"#ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n#else\n precision mediump float;\n#endif\n".concat(this.context.shader),uniforms:i,vert:"attribute vec3 a_Position;\nattribute vec2 a_TexCoord;\n\nvarying vec2 v_TexCoord;\n\nvoid main() {\n gl_Position = vec4(a_Position, 1.0);\n v_TexCoord = a_TexCoord;\n}",primitive:"triangle strip",count:4};this.computeCommand=this.reGl(c)}var e;return(0,a.A)(t,[{key:"run",value:function(){var t=this;this.context.maxIteration>1&&this.context.needPingpong&&(this.compiledPingpong=!0),(this.compiledPingpong||this.dynamicPingpong)&&this.swap(),this.texFBO=this.reGl.framebuffer({color:this.getOuputDataTexture().texture}),this.texFBO.use((function(){t.computeCommand()}))}},{key:"readData",value:(e=(0,r.A)(p().mark((function t(){var e,n,r,i,o,a,s,u,l=this;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.reGl({framebuffer:this.texFBO})((function(){e=l.reGl.read()})),!e){t.next=6;break}if(n=this.getOuputDataTexture(),r=n.originalDataLength,i=n.elementsPerTexel,o=n.typedArrayConstructor,a=void 0===o?Float32Array:o,s=[],4!==i)for(u=0;u0&&void 0!==arguments[0]?arguments[0]:{},n=new t;return n.setConfig(e),n.setEngine(new wt),n}}]),t}()},55163:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>Cb});var r={};n.r(r),n.d(r,{GADDI:()=>Qt,Stack:()=>te,breadthFirstSearch:()=>V,connectedComponent:()=>W,cosineSimilarity:()=>_t,default:()=>ne,depthFirstSearch:()=>Z,detectAllCycles:()=>tt,detectAllDirectedCycle:()=>J,detectAllUndirectedCycle:()=>Q,detectCycle:()=>et,detectDirectedCycle:()=>ee,dijkstra:()=>nt,findAllPath:()=>ot,findShortestPath:()=>it,floydWarshall:()=>at,getAdjMatrix:()=>P,getDegree:()=>Y,getInDegree:()=>q,getNeighbors:()=>B,getOutDegree:()=>$,iLouvain:()=>yt,kCore:()=>bt,kMeans:()=>wt,labelPropagation:()=>st,louvain:()=>vt,minimumSpanningTree:()=>Nt,nodesCosineSimilarity:()=>St,pageRank:()=>Pt});var i={};n.r(i),n.d(i,{Line:()=>Te,applyMatrix:()=>de,compare:()=>ae,distance:()=>me,floydWarshall:()=>ve,fractionToLine:()=>Pe,getAdjMatrix:()=>ye,getBBoxBoundLine:()=>ke,getCircleCenterByPoints:()=>pe,getCircleIntersectByPoint:()=>ce,getDegree:()=>Se,getEllipseIntersectByPoint:()=>he,getLineIntersect:()=>ue,getPointsCenter:()=>Oe,getRectIntersectByPoint:()=>le,intersectBBox:()=>Me,invertMatrix:()=>fe,isPointInPolygon:()=>Ae,isPointsOverlap:()=>De,isPolygonsIntersect:()=>Ce,itemIntersectByLine:()=>Ne,lerp:()=>Be,lerpArray:()=>Ue,move:()=>xe,pointLineDistance:()=>Fe,pointLineSquareDist:()=>Re,pointRectSquareDist:()=>ze,rotate:()=>_e,scale:()=>we,scaleMatrix:()=>ge,squareDist:()=>Le,translate:()=>be});var o={};n.r(o),n.d(o,{cloneBesidesImg:()=>yn,getAnimateCfgWithCallback:()=>bn,getBBox:()=>rn,getComboBBox:()=>gn,getLabelPosition:()=>an,getLetterWidth:()=>hn,getLoopCfgs:()=>on,getTextSize:()=>dn,plainCombosToTrees:()=>pn,reconstructTree:()=>mn,shouldRefreshEdge:()=>vn,traverseTree:()=>ln,traverseTreeUp:()=>cn,truncateLabelByLength:()=>fn});var a={};n.r(a),n.d(a,{catmullRomToBezier:()=>Cn,fillPath:()=>$n,fillPathByDiff:()=>Qn,formatPath:()=>er,intersection:()=>Xn,parsePathArray:()=>Rn,parsePathString:()=>Mn,pathToAbsolute:()=>kn,pathToCurve:()=>On,rectPath:()=>jn});var s={};n.r(s),n.d(s,{easeBack:()=>zo,easeBackIn:()=>Ro,easeBackInOut:()=>zo,easeBackOut:()=>Do,easeBounce:()=>Po,easeBounceIn:()=>No,easeBounceInOut:()=>Oo,easeBounceOut:()=>Po,easeCircle:()=>xo,easeCircleIn:()=>yo,easeCircleInOut:()=>xo,easeCircleOut:()=>bo,easeCubic:()=>io,easeCubicIn:()=>no,easeCubicInOut:()=>io,easeCubicOut:()=>ro,easeElastic:()=>Uo,easeElasticIn:()=>Bo,easeElasticInOut:()=>jo,easeElasticOut:()=>Uo,easeExp:()=>vo,easeExpIn:()=>mo,easeExpInOut:()=>vo,easeExpOut:()=>go,easeLinear:()=>Qi,easePoly:()=>so,easePolyIn:()=>oo,easePolyInOut:()=>so,easePolyOut:()=>ao,easeQuad:()=>eo,easeQuadIn:()=>Ji,easeQuadInOut:()=>eo,easeQuadOut:()=>to,easeSin:()=>fo,easeSinIn:()=>co,easeSinInOut:()=>fo,easeSinOut:()=>ho});var u={};n.r(u),n.d(u,{calculationItemsBBox:()=>ms,cloneEvent:()=>ds,formatPadding:()=>hs,isNaN:()=>ps,isViewportChanged:()=>fs,processParallelEdges:()=>gs,uniqueId:()=>cs});var l={};n.r(l),n.d(l,{getClosedSpline:()=>du,getControlPoint:()=>lu,getSpline:()=>uu,getStarPath:()=>yu,paddedHull:()=>vu,pathToPoints:()=>hu,pointsToPolygon:()=>cu,roundedHull:()=>gu});var c={};n.r(c),n.d(c,{defaultSubjectColors:()=>Qu});var h={};n.r(h),n.d(h,{isForce:()=>Ju});var d={};n.r(d),n.d(d,{Base:()=>$l,Circle:()=>Kl,Ellipse:()=>Ql,Image:()=>ec,Line:()=>ic,Marker:()=>sc,Path:()=>yc,Polygon:()=>xc,Polyline:()=>_c,Rect:()=>Sc,Text:()=>Ac});var f={};n.r(f),n.d(f,{Base:()=>Hc,Circle:()=>Wc,Dom:()=>Yc,Ellipse:()=>$c,Image:()=>Zc,Line:()=>Jc,Marker:()=>rh,Path:()=>oh,Polygon:()=>sh,Polyline:()=>lh,Rect:()=>hh,Text:()=>gh});var p={};n.r(p),n.d(p,{getColorSetsBySubjectColors:()=>jd,getColorsWithSubjectColor:()=>Ud,mixColor:()=>Bd});var m={};n.r(m),n.d(m,{arrayToTextureData:()=>sf,attributesToTextureData:()=>af,buildTextureData:()=>nf,buildTextureDataWithOneEdgeAttr:()=>rf,buildTextureDataWithTwoEdgeAttr:()=>of,proccessToFunc:()=>ef,radialLayout:()=>uf});var g={};n.r(g),n.d(g,{gpuDetector:()=>lf});var v={};n.r(v),n.d(v,{getBrowserName:()=>cf});var y={};n.r(y),n.d(y,{assign:()=>mm,default:()=>Rm,defaultI18n:()=>bm,format:()=>Om,parse:()=>Lm,setGlobalDateI18n:()=>wm,setGlobalDateMasks:()=>Pm});var b=n(31635),x=n(24425);const w={getDefaultCfg:function(){return{}},getEvents:function(){return{}},updateCfg:function(t){return Object.assign(this,t),!0},shouldBegin:function(){return!0},shouldUpdate:function(){return!0},shouldEnd:function(){return!0},bind:function(t){var e=this,n=this.events;this.graph=t,"drag-canvas"!==this.type&&"brush-select"!==this.type&&"lasso-select"!==this.type||t.get("canvas").set("draggable",!0),(0,x.each)(n,(function(e,n){t.on(n,e)})),document.addEventListener("visibilitychange",(function(){e.keydown=!1}))},unbind:function(t){var e=this.events,n=t.get("canvas").get("draggable");"drag-canvas"!==this.type&&"brush-select"!==this.type&&"lasso-select"!==this.type||t.get("canvas").set("draggable",!1),(0,x.each)(e,(function(e,n){t.off(n,e)})),t.get("canvas").set("draggable",n)},get:function(t){return this[t]},set:function(t,e){return this[t]=e,this}};var _=function(){function t(){}return t.registerBehavior=function(e,n){if(!n)throw new Error("please specify handler for this behavior: ".concat(e));var r=(0,x.clone)(w);Object.assign(r,n);var i=function(t){var e=this;Object.assign(this,this.getDefaultCfg(),t);var n=this.getEvents();this.events=null;var r={};n&&((0,x.each)(n,(function(t,n){r[n]=(0,x.wrapBehavior)(e,t)})),this.events=r)};i.prototype=r,t.types[e]=i},t.hasBehavior=function(e){return!!t.types[e]},t.getBehavior=function(e){return t.types[e]},t.types={},t}();const S=_,E=S;var A=function(){function t(){this._events={}}return t.prototype.on=function(t,e,n){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:e,once:!!n}),this},t.prototype.once=function(t,e){return this.on(t,e,!0)},t.prototype.emit=function(t){for(var e=this,n=[],r=1;r0&&t(o[0])}},u=0;u0;)h.push(s.pop());o.push(h)}}return o},G=function(t){for(var e=t.nodes,n=void 0===e?[]:e,r=t.edges,i=void 0===r?[]:r,o=[],a={},s={},u={},l=[],c=0,h=function t(e){s[e.id]=c,u[e.id]=c,c+=1,o.push(e),a[e.id]=!0;for(var r=B(e.id,i,"target").filter((function(t){return n.map((function(t){return t.id})).indexOf(t)>-1})),h=function(i){var o=r[i];if(s[o]||0===s[o])a[o]&&(u[e.id]=Math.min(u[e.id],s[o]));else{var l=n.filter((function(t){return t.id===o}));l.length>0&&t(l[0]),u[e.id]=Math.min(u[e.id],u[o])}},d=0;d0;){var p=o.pop();if(a[p.id]=!1,f.push(p),p===e)break}f.length>0&&l.push(f)}},d=0,f=n;d0;)for(var p=h.pop(),m=p.id,g=B(m,t.edges),v=function(r){var i,a=g[r],s=t.nodes.find((function(t){return t.id===a}));if(a===m)o.push(((i={})[a]=p,i));else if(a in f){if(!f[m].has(s)){for(var u=!0,l=[s,p],c=d[m];f[a].size&&!f[a].has(c)&&(l.push(c),c!==d[c.id]);)c=d[c.id];if(l.push(c),e&&n?(u=!1,l.findIndex((function(t){return e.indexOf(t.id)>-1}))>-1&&(u=!0)):e&&!n&&l.findIndex((function(t){return e.indexOf(t.id)>-1}))>-1&&(u=!1),u){for(var v={},y=1;y-1)return h;r.push(u),i.add(u);for(var d=c[u.id],f=0;f0;){var n=e.pop();i.has(n)&&(i.delete(n),o[n.id].forEach((function(t){e.push(t)})),o[n.id].clear())}}(u);else for(f=0;f-1}));g-1?p[m.id].push(u[y]):a.push(((i={})[m.id]=m,i))}}return{component:f,adjList:p,minIdx:s}},v=0;v=v})),b=G({nodes:y,edges:t.edges}).filter((function(t){return t.length>1}));if(0===b.length)break;var x=g(b),w=x.minIdx,_=x.adjList,S=x.component;if(!(S.length>1))break;S.forEach((function(t){o[t.id]=new Set}));var E=s[w];if(e&&n&&-1===e.indexOf(E.id))return a;l(E,E,_),v=w+1}return a},tt=function(t,e,n,r){return void 0===r&&(r=!0),e?J(t,n,r):Q(t,n,r)};const et=function(t){var e=null,n=t.nodes,r={},i={},o={},a={};(void 0===n?[]:n).forEach((function(t){i[t.id]=t}));for(var s={enter:function(t){var n=t.current,a=t.previous;if(o[n]){e={};for(var s=n,u=a;u!==n;)e[s]=u,s=u,u=r[u];e[s]=u}else o[n]=n,delete i[n],r[n]=a},leave:function(t){var e=t.current;a[e]=e,delete o[e]},allowTraversal:function(t){var n=t.next;return!e&&!a[n]}};Object.keys(i).length;){Z(t,Object.keys(i)[0],s)}return e};const nt=function(t,e,n,r){var i=t.nodes,o=void 0===i?[]:i,a=t.edges,s=void 0===a?[]:a,u=[],l={},c={},h={};o.forEach((function(t,n){var r=t.id;u.push(r),c[r]=1/0,r===e&&(c[r]=0)}));for(var d=o.length,f=function(t){var e=function(t,e,n){for(var r,i=1/0,o=0;oc[e.id]+s?(c[a]=c[e.id]+s,h[a]=[e.id]):c[a]===c[e.id]+s&&h[a].push(e.id)}))},p=0;p0&&l.length>0;){var d=l[l.length-1];if(d.length){var f=d.shift();if(f&&(s.push(f),u[f]=!0,h=r?B(f,a,"target"):B(f,a),l.push(h.filter((function(t){return!u[t]})))),s[s.length-1]===n){var p=s.map((function(t){return t}));c.push(p);m=s.pop();u[m]=!1,l.pop()}}else{var m=s.pop();u[m]=!1,l.pop()}}return c};const at=function(t,e){for(var n=P(t,e),r=[],i=n.length,o=0;or[o][s]+r[s][a]&&(r[o][a]=r[o][s]+r[s][a]);return r};const st=function(t,e,n,r){void 0===e&&(e=!1),void 0===n&&(n="weight"),void 0===r&&(r=1e3);var i=t.nodes,o=void 0===i?[]:i,a=t.edges,s=void 0===a?[]:a,u={},l={};o.forEach((function(t,e){var n=j();t.clusterId=n,u[n]={id:n,nodes:[t]},l[t.id]={node:t,idx:e}}));var c=P(t,e),h=[],d={};c.forEach((function(t,e){var n=0,r=o[e].id;d[r]={},t.forEach((function(t,e){if(t){n+=t;var i=o[e].id;d[r][i]=t}})),h.push(n)}));for(var f=0,p=function(){var t=!1;if(o.forEach((function(e){var n={};Object.keys(d[e.id]).forEach((function(t){var r=d[e.id][t],i=l[t].node.clusterId;n[i]||(n[i]=0),n[i]+=r}));var r=-1/0,i=[];if(Object.keys(n).forEach((function(t){r=0&&i.splice(o,1),i&&i.length){t=!0;var a=u[e.clusterId],s=a.nodes.indexOf(e);a.nodes.splice(s,1);var c=Math.floor(Math.random()*i.length),h=u[i[c]];h.nodes.push(e),e.clusterId=h.id}}})),!t)return"break";f++};f0&&E>A&&E-AA&&(C=c.map((function(t){return{node:t,clusterId:t.clusterId}})),T=(0,x.clone)(v),A=E),k||M>100)break;M++,Object.keys(v).forEach((function(t){var e=0;d.forEach((function(r){var i=r.source,o=r.target,a=y[i].node.clusterId,s=y[o].node.clusterId;(a===t&&s!==t||s===t&&a!==t)&&(e+=r[n]||1)})),v[t].sumTot=e})),c.forEach((function(t,e){var r,o=v[t.clusterId],a=0,s=w[e]/(2*S),l=0,c=o.nodes;c.forEach((function(t){var n=y[t.id].idx;l+=b[e][n]||0}));var h=l-o.sumTot*s,p=c.filter((function(e){return e.id!==t.id})),m=[];p.forEach((function(t,e){m[e]=f[t.originIndex]}));var g=gt(p,f)*u,x=_[t.id];if(Object.keys(x).forEach((function(n){var o=y[n].node.clusterId;if(o!==t.clusterId){var l=v[o],c=l.nodes;if(c&&c.length){var d=0;c.forEach((function(t){var n=y[t.id].idx;d+=b[e][n]||0}));var p=d-l.sumTot*s,m=c.concat([t]),x=[];m.forEach((function(t,e){x[e]=f[t.originIndex]}));var w=gt(m,f)*u,_=p-h;i&&(_=p+w-(h+g)),_>a&&(a=_,r=l)}}})),a>0){r.nodes.push(t);var E=t.clusterId;t.clusterId=r.id;var A=o.nodes.indexOf(t);o.nodes.splice(A,1);var M=0,C=0;d.forEach((function(t){var e=t.source,i=t.target,o=y[e].node.clusterId,a=y[i].node.clusterId;(o===r.id&&a!==r.id||a===r.id&&o!==r.id)&&(M+=t[n]||1),(o===E&&a!==E||a===E&&o!==E)&&(C+=t[n]||1)})),r.sumTot=M,o.sumTot=C}}))}var I={},N=0;Object.keys(T).forEach((function(t){var e=T[t];if(e.nodes&&e.nodes.length){var n=String(N+1);n!==t&&(e.id=n,e.nodes=e.nodes.map((function(t){return{id:t.id,clusterId:n}})),T[n]=e,I[t]=n,delete T[t],N++)}else delete T[t]})),C.forEach((function(t){var e=t.node,n=t.clusterId;e&&(e.clusterId=n,e.clusterId&&I[e.clusterId]&&(e.clusterId=I[e.clusterId]))}));var O=[],L={};d.forEach((function(t){var e=t.source,r=t.target,i=t[n]||1,o=y[e].node.clusterId,a=y[r].node.clusterId;if(o&&a){var s="".concat(o,"---").concat(a);if(L[s])L[s].weight+=i,L[s].count++;else{var u={source:o,target:a,weight:i,count:1};L[s]=u,O.push(u)}}}));var R=[];return Object.keys(T).forEach((function(t){R.push(T[t])})),{clusters:R,clusterEdges:O}};const yt=function(t,e,n,r,i,o,a,s){return void 0===e&&(e=!1),void 0===n&&(n="weight"),void 0===r&&(r=1e-4),void 0===i&&(i=void 0),void 0===o&&(o=[]),void 0===a&&(a=["id"]),void 0===s&&(s=1),vt(t,e,n,r,!0,i,o,a,s)};const bt=function(t,e){var n;void 0===e&&(e=1);for(var r=(0,x.clone)(t),i=r.nodes,o=void 0===i?[]:i,a=r.edges,s=void 0===a?[]:a,u=function(){var t=Y({nodes:o,edges:s}),r=Object.keys(t);r.sort((function(e,n){var r,i;return(null===(r=t[e])||void 0===r?void 0:r.degree)-(null===(i=t[n])||void 0===i?void 0:i.degree)}));var i=r[0];if(!o.length||(null===(n=t[i])||void 0===n?void 0:n.degree)>=e)return"break";var a=o.findIndex((function(t){return t.id===i}));o.splice(a,1),s=s.filter((function(t){return!(t.source===i||t.target===i)}))};;){if("break"===u())break}return{nodes:o,edges:s}};var xt=function(t,e,n){var r=[];if(t===ht.EuclideanDistance)r=e[n];else r=[];return r};const wt=function(t,e,n,r,i,o){void 0===e&&(e=3),void 0===n&&(n=void 0),void 0===r&&(r=[]),void 0===i&&(i=["id"]),void 0===o&&(o=ht.EuclideanDistance);var a=t.nodes,s=void 0===a?[]:a,u=t.edges,l=void 0===u?[]:u,c={clusters:[{id:"0",nodes:s}],clusterEdges:[]};if(o===ht.EuclideanDistance&&!s.every((function(t){return t.hasOwnProperty(n)})))return c;var h=[],d=[];if(o===ht.EuclideanDistance&&(h=ct(s,n),d=ft(h,r,i)),!d.length)return c;for(var f=(0,x.uniq)(d.map((function(t){return t.join("")}))),p=Math.min(e,s.length,f.length),m=0;mw&&!g.find((function(e){return(0,x.isEqual)(e,xt(o,d,s[t].originIndex))}))&&(w=i,_=t)}},E=0;E=0;I--)y[Number(s[m].clusterId)][I].id===s[m].id&&y[Number(s[m].clusterId)].splice(I,1);s[m].clusterId=String(M),y[M].push(s[m])}}var N=!1;for(m=0;m=1e3)break}var R=[],D={};return l.forEach((function(t){var e,n,r=t.source,i=t.target,o=null===(e=s.find((function(t){return t.id===r})))||void 0===e?void 0:e.clusterId,a=null===(n=s.find((function(t){return t.id===i})))||void 0===n?void 0:n.clusterId,u="".concat(o,"---").concat(a);if(D[u])D[u].count++;else{var l={source:o,target:a,count:1};D[u]=l,R.push(l)}})),{clusters:y,clusterEdges:R}};const _t=function(t,e){var n=new lt(e),r=n.norm2(),i=new lt(t),o=i.norm2(),a=n.dot(i),s=r*o,u=s?a/s:0;return u};const St=function(t,e,n,r,i){void 0===t&&(t=[]),void 0===n&&(n=void 0),void 0===r&&(r=[]),void 0===i&&(i=[]);var o=(0,x.clone)(t.filter((function(t){return t.id!==e.id}))),a=t.findIndex((function(t){return t.id===e.id})),s=ct(t,n),u=ft(s,r,i),l=u[a],c=[];return o.forEach((function(t,n){if(t.id!==e.id){var r=u[n],i=_t(r,l);c.push(i),t.cosineSimilarity=i}})),o.sort((function(t,e){return e.cosineSimilarity-t.cosineSimilarity})),{allCosineSimilarity:c,similarNodes:o}};var Et=function(){function t(t){this.count=t.length,this.parent={};for(var e=0,n=t;e0&&(this.list[0]=e,this.moveDown(0)),t},t.prototype.insert=function(t){if(null!==t){this.list.push(t);var e=this.list.length-1;return this.moveUp(e),!0}return!1},t.prototype.moveUp=function(t){for(var e=this.getParent(t);t&&t>0&&this.compareFn(this.list[e],this.list[t])>0;){var n=this.list[e];this.list[e]=this.list[t],this.list[t]=n,t=e,e=this.getParent(t)}},t.prototype.moveDown=function(t){var e,n=t,r=this.getLeft(t),i=this.getRight(t),o=this.list.length;null!==r&&r0?n=r:null!==i&&i0&&(n=i),t!==n&&(e=[this.list[n],this.list[t]],this.list[t]=e[0],this.list[n]=e[1],this.moveDown(n))},t}();const Tt=Ct;var kt=function(t,e){var n=[],r=t.nodes,i=void 0===r?[]:r,o=t.edges,a=void 0===o?[]:o;if(0===i.length)return n;var s=i[0],u=new Set;u.add(s);var l=new Tt((function(t,n){return e?t.weight-n.weight:0}));for(U(s.id,a).forEach((function(t){l.insert(t)}));!l.isEmpty();){var c=l.delMin(),h=c.source,d=c.target;u.has(h)&&u.has(d)||(n.push(c),u.has(h)||(u.add(h),U(h,a).forEach((function(t){l.insert(t)}))),u.has(d)||(u.add(d),U(d,a).forEach((function(t){l.insert(t)}))))}return n},It=function(t,e){var n=[],r=t.nodes,i=void 0===r?[]:r,o=t.edges,a=void 0===o?[]:o;if(0===i.length)return n;var s=a.map((function(t){return t}));e&&s.sort((function(t,e){return t.weight-e.weight}));for(var u=new At(i.map((function(t){return t.id})));s.length>0;){var l=s.shift(),c=l.source,h=l.target;u.connected(c,h)||(n.push(l),u.union(c,h))}return n};const Nt=function(t,e,n){return n?{prim:kt,kruskal:It}[n](t,e):It(t,e)};const Pt=function(t,e,n){"number"!=typeof e&&(e=1e-6),"number"!=typeof n&&(n=.85);for(var r,i=1,o=0,a=1e3,s=t.nodes,u=void 0===s?[]:s,l=t.edges,c=void 0===l?[]:l,h=u.length,d={},f={},p=0;p0&&i>e;){o=0;for(p=0;p0&&(r+=f[b]/x)}d[g]=n*r,o+=d[g]}}o=(1-o)/h,i=0;for(p=0;p=0;e--){var n=this.dfsEdgeList[e],r=n.fromNode,i=n.toNode;rh||r.hasNode(o[c.to])||(e.labelp;g--){if("break"===m(g))break}if(d){var v=t.findMinLabel(h);o.dfsEdgeList.push(new zt(c,f,Ot,v.edgeLabel,Ot));var y=o.dfsEdgeList.length-1;return t.dfsCode.dfsEdgeList[y]===o.dfsEdgeList[y]&&a(h[v.edgeLabel].projected)}var b={};d=!1;var x=0;s.forEach((function(e){var n=new Bt(e),o=t.findForwardPureEdges(r,n.edges[u[0]],l,n);o.length>0&&(d=!0,x=c,o.forEach((function(t){var n="".concat(t.label,"-").concat(i[t.to].label);b[n]||(b[n]={projected:[],edgeLabel:t.label,nodeLabel2:i[t.to].label}),b[n].projected.push({graphId:r.id,edge:t,preNode:e})})))}));var w=u.length,_=function(e){if(d)return"break";var n=u[e];s.forEach((function(e){var a=new Bt(e),s=t.findForwardRmpathEdges(r,a.edges[n],l,a);s.length>0&&(d=!0,x=o.dfsEdgeList[n].fromNode,s.forEach((function(t){var n="".concat(t.label,"-").concat(i[t.to].label);b[n]||(b[n]={projected:[],edgeLabel:t.label,nodeLabel2:i[t.to].label}),b[n].projected.push({graphId:r.id,edge:t,preNode:e})})))}))};for(g=0;g=0;h--){var d=e.findBackwardEdge(u,c.edges[r[h]],c.edges[r[0]],c);if(d){var f="".concat(e.dfsCode.dfsEdgeList[r[h]].fromNode,"-").concat(d.label);s[f]||(s[f]={projected:[],toNodeId:e.dfsCode.dfsEdgeList[r[h]].fromNode,edgeLabel:d.label}),s[f].projected.push({graphId:t.graphId,edge:d,preNode:t})}}if(!(n>=e.maxNodeNum)){e.findForwardPureEdges(u,c.edges[r[0]],o,c).forEach((function(e){var n="".concat(i,"-").concat(e.label,"-").concat(l[e.to].label);a[n]||(a[n]={projected:[],fromNodeId:i,edgeLabel:e.label,nodeLabel2:l[e.to].label}),a[n].projected.push({graphId:t.graphId,edge:e,preNode:t})}));var p=function(n){e.findForwardRmpathEdges(u,c.edges[r[n]],o,c).forEach((function(i){var o="".concat(e.dfsCode.dfsEdgeList[r[n]].fromNode,"-").concat(i.label,"-").concat(l[i.to].label);a[o]||(a[o]={projected:[],fromNodeId:e.dfsCode.dfsEdgeList[r[n]].fromNode,edgeLabel:i.label,nodeLabel2:l[i.to].label}),a[o].projected.push({graphId:t.graphId,edge:i,preNode:t})}))};for(h=0;hi){var a=i;i=r,r=a}var c=t.label,h="".concat(n,"-").concat(r,"-").concat(c,"-").concat(i),d="".concat(r,"-").concat(c,"-").concat(i);if(!o[d]){var f=o[d]||0;f++,o[d]=f}s[h]={graphId:n,nodeLabel1:r,edgeLabel:c,nodeLabel2:i}}))}))})),Object.keys(i).forEach((function(t){if(!(i[t]e&&(s=e);var r=n[t.id].inDegree;u>r&&(u=r);var i=n[t.id].outDegree;l>i&&(l=i)})),t[e]={degree:s,inDegree:u,outDegree:l}),{minPatternNodeLabelDegree:s,minPatternNodeLabelInDegree:u,minPatternNodeLabelOutDegree:l}};const Qt=function(t,e,n,r,i,o,a){var s;if(void 0===n&&(n=!1),void 0===o&&(o="cluster"),void 0===a&&(a="cluster"),t&&t.nodes){var u=t.nodes.length;if(u){var l=at(t,n),c=at(e,n),h=$t(t.nodes,l,n),d=$t(e.nodes,c,n),f=Yt(t.nodes,o),p=f.nodeMap,m=f.nodeLabelMap,g=Yt(e.nodes,o),v=g.nodeMap,y=g.nodeLabelMap;qt(t.edges,a,p);var x=qt(e.edges,a,v).edgeLabelMap,w=[];null==c||c.forEach((function(t){w=w.concat(t)})),i||(i=Math.max.apply(Math,(0,b.__spreadArray)((0,b.__spreadArray)([],w,!1),[2],!1))),r||(r=i);var _=Ht(t,l,o,r),S=Ht(e,c,o,r),E=function(t,e,n,r,i){var o=Math.ceil(n/e),a={},s=0;return r.forEach((function(t,r){for(var u=0,l=0,c=t.nodeIdxs,h=t.neighborNum-1;u2*e)););if(f<2*e&&(a["".concat(r,"-").concat(d)]={start:r,end:d,distance:i[r][d]},u++,++s>=n))return a;if(++l>2*e)break}uR&&(R=n.length,O=n,L=e,P=t)}));var D={},z={},F={},B={},U={},j={};Object.keys(y).forEach((function(r,i){U[r]=[],n&&(j[r]=[]);var s=-1/0,u=y[r],l={};u.forEach((function(t){var e=d["".concat(P.id,"-").concat(t.id)];if(e&&U[r].push(e),sU[r][d]){l=!0;break}if(l)return O.splice(e,1),"continue";var f={};i.neighbors.forEach((function(t){var e=h["".concat(n.id,"-").concat(t.id)];f["".concat(n.id,"-").concat(t.id)]={start:p[n.id].idx,end:p[t.id].idx,distance:e}})),A=Wt(f,_,t,A);var m=[];Object.keys(f).forEach((function(t){if(N[t])m.push(N[t]);else{var e=A[t];N[t]=Xt(e,I,o,a),m.push(N[t])}})),m=m.sort((function(t,e){return e-t}));var g=!1;for(d=0;d=0;m--)f(m)}));var V=[];null==O||O.forEach((function(r){for(var s=p[r.id].idx,u=Gt(t.nodes,l[s],s,o,i).neighbors,c=!1,d=u.length-1;d>=0;d--){if(u.length+1U[m][x])u.splice(d,1);else{if(n){var w="".concat(f.id,"-").concat(r.id),S=h[w];if(x=j[m].length-1,S>j[m][x]){u.splice(d,1);continue}}var E=N[g]?N[g]:Kt(t,r,f,p,b,_,I,o,a,N,A),M="".concat(P.id,"-").concat(m);if(E=0;m--){if("break"===_(m))break}if(w)return V.splice(r,1),"continue";i.edges=c;var S=nt(i,i.nodes[0].id,!1).length;if(Object.keys(S).reverse().forEach((function(t){if(t!==i.nodes[0].id&&!w){if(S[t]===1/0){var e=l[t].node[o];if(u[e]--,u[e]G[r][G[r].length-1]){e=l[t].node[o];if(u[e]--,u[e]=0;M--){var C=i.nodes[M],T=l[C.id].degree,k=l[C.id].inDegree,I=l[C.id].outDegree,N=C[o],O=Zt(D,N,v,y),L=O.minPatternNodeLabelDegree,R=O.minPatternNodeLabelInDegree,z=O.minPatternNodeLabelOutDegree;if(n?T=0;F--){var B=c[F];if(!l[B.source]||!l[B.target]){c.splice(F,1);var U=B[a];if(h[U]--,l[B.source]&&(l[B.source].degree--,l[B.source].outDegree--),l[B.target]&&(l[B.target].degree--,l[B.target].inDegree--),x[U]&&h[U]=0;X--){if("break"===W(X))break}var Y=V.length,q=function(t){var e=V[t],n={};e.edges.forEach((function(t){var e="".concat(t.source,"-").concat(t.target,"-").concat(t.label);n[e]?n[e]++:n[e]=1}));for(var r=function(t){var e=V[t],r={};e.edges.forEach((function(t){var e="".concat(t.source,"-").concat(t.target,"-").concat(t.label);r[e]?r[e]++:r[e]=1}));var i=!0;Object.keys(r).length!==Object.keys(n).length?i=!1:Object.keys(n).forEach((function(t){r[t]!==n[t]&&(i=!1)})),i&&V.splice(t,1)},i=Y-1;i>t;i--)r(i);Y=V.length};for(X=0;X<=Y-1;X++)q(X);return V}}};var Jt=function(){function t(t){void 0===t&&(t=10),this.linkedList=new D,this.maxStep=t}return Object.defineProperty(t.prototype,"length",{get:function(){return this.linkedList.toArray().length},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){return!this.linkedList.head},t.prototype.isMaxStack=function(){return this.toArray().length>=this.maxStep},t.prototype.peek=function(){return this.isEmpty()?null:this.linkedList.head.value},t.prototype.push=function(t){this.linkedList.prepend(t),this.length>this.maxStep&&this.linkedList.deleteTail()},t.prototype.pop=function(){var t=this.linkedList.deleteHead();return t?t.value:null},t.prototype.toArray=function(){return this.linkedList.toArray().map((function(t){return t.value}))},t.prototype.clear=function(){for(;!this.isEmpty();)this.pop()},t}();const te=Jt;var ee=et;const ne={getAdjMatrix:P,breadthFirstSearch:V,connectedComponent:W,getDegree:Y,getInDegree:q,getOutDegree:$,detectCycle:et,detectDirectedCycle:ee,detectAllCycles:tt,detectAllDirectedCycle:J,detectAllUndirectedCycle:Q,depthFirstSearch:Z,dijkstra:nt,findAllPath:ot,findShortestPath:it,floydWarshall:at,labelPropagation:st,louvain:vt,iLouvain:yt,kCore:bt,kMeans:wt,cosineSimilarity:_t,nodesCosineSimilarity:St,minimumSpanningTree:Nt,pageRank:Pt,getNeighbors:B,Stack:te,GADDI:Qt};var re=n(30329),ie=n(40842),oe=N,ae=function(t){return function(e,n){return e[t]-n[t]}},se=function(t,e,n){return t>=e&&t<=n},ue=function(t,e,n,r){var i=n.x-t.x,o=n.y-t.y,a=e.x-t.x,s=e.y-t.y,u=r.x-n.x,l=r.y-n.y,c=a*l-s*u,h=1/c;if(c*c>1e-4*(a*a+s*s)*(u*u+l*l)){var d=(i*l-o*u)*h,f=(i*s-o*a)*h;return se(d,0,1)&&se(f,0,1)?{x:t.x+d*a,y:t.y+d*s}:null}return null},le=function(t,e){var n=t.x,r=t.y,i=t.width,o=t.height,a=[],s={x:n+i/2,y:r+o/2};a.push({x:n,y:r}),a.push({x:n+i,y:r}),a.push({x:n+i,y:r+o}),a.push({x:n,y:r+o}),a.push({x:n,y:r});for(var u=null,l=1;le[r][o]+e[o][i]&&(e[r][i]=e[r][o]+e[o][i]);return e},ye=function(t,e){var n=t.nodes,r=t.edges,i=[],o={};if(!n)throw new Error("invalid nodes data!");return n&&n.forEach((function(t,e){o[t.id]=e;i.push([])})),r&&r.forEach((function(t){var n=t.source,r=t.target,a=o[n],s=o[r];i[a][s]=1,e||(i[s][a]=1)})),i},be=function(t,e){t.translate(e.x,e.y)},xe=function(t,e,n,r){void 0===r&&(r={duration:500});var i=t.getMatrix();i||(i=[1,0,0,0,1,0,0,0,1]);var o=t.getCanvasBBox(),a=e.x-o.minX,s=e.y-o.minY;if(n){var u=a*i[0],l=s*i[4],c=0,h=0,d=0,f=0;t.animate((function(t){return i=oe(i,[["t",(d=u*t)-c,(f=l*t)-h]]),c=d,h=f,{matrix:i}}),r)}else{var p=oe(i,[["t",a,s]]);t.setMatrix(p)}},we=function(t,e){var n=t.getMatrix();n||(n=[1,0,0,0,1,0,0,0,1]);var r=e;(0,x.isArray)(e)||(r=[e,e]),(0,x.isArray)(e)&&1===e.length&&(r=[e[0],e[0]]),n=oe(n,[["s",r[0],r[1]]]),t.setMatrix(n)},_e=function(t,e){var n=t.getMatrix();n||(n=[1,0,0,0,1,0,0,0,1]),n=oe(n,[["r",e]]),t.setMatrix(n)},Se=function(t,e,n){for(var r=[],i=0;i0!=o(u[1]-n)>0&&o(e-(n-s[1])*(s[0]-u[0])/(s[1]-u[1])-s[0])<0&&(r=!r)}return r},Me=function(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxY1){var a=t[0],s=t[n-1];e.push({from:{x:s[0],y:s[1]},to:{x:a[0],y:a[1]}})}return e};if(t.length<2||e.length<2)return!1;var i=n(t),o=n(e);if(!Me(i,o))return!1;var a=!1;if((0,x.each)(e,(function(e){if(Ae(t,e[0],e[1]))return a=!0,!1})),a)return!0;if((0,x.each)(t,(function(t){if(Ae(e,t[0],t[1]))return a=!0,!1})),a)return!0;var s=r(t),u=r(e),l=!1;return(0,x.each)(u,(function(t){if(function(t,e){var n=!1;return(0,x.each)(t,(function(t){if(ue(t.from,t.to,e.from,e.to))return n=!0,!1})),n}(s,t))return l=!0,!1})),l},Te=function(){function t(t,e,n,r){this.x1=t,this.y1=e,this.x2=n,this.y2=r}return t.prototype.getBBox=function(){var t=Math.min(this.x1,this.x2),e=Math.min(this.y1,this.y2),n=Math.max(this.x1,this.x2),r=Math.max(this.y1,this.y2);return{x:t,y:e,minX:t,minY:e,maxX:n,maxY:r,width:n-t,height:r-e}},t}(),ke=function(t,e){return{top:[t.minX,t.minY,t.maxX,t.minY],left:[t.minX,t.minY,t.minX,t.maxY],bottom:[t.minX,t.maxY,t.maxX,t.maxY],right:[t.maxX,t.minY,t.maxX,t.maxY]}[e]},Ie=function(t,e){var n=(e.x2-e.x1)*(t.y1-e.y1)-(e.y2-e.y1)*(t.x1-e.x1),r=(t.x2-t.x1)*(t.y1-e.y1)-(t.y2-t.y1)*(t.x1-e.x1),i=(e.y2-e.y1)*(t.x2-t.x1)-(e.x2-e.x1)*(t.y2-t.y1);if(i){var o=n/i,a=r/i;if(o>=0&&o<=1&&a>=0&&a<=1)return o}return Number.POSITIVE_INFINITY},Ne=function(t,e){for(var n=["top","left","bottom","right"],r=t.getBBox(),i=0,o=[],a=0;a<4;a++){var s=ke(r,n[a]),u=s[0],l=s[1],c=s[2],h=s[3];o[a]=ue({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},{x:u,y:l},{x:c,y:h}),o[a]&&(i+=1)}return[o,i]},Pe=function(t,e){for(var n=["top","left","bottom","right"],r=t.getBBox(),i=Number.POSITIVE_INFINITY,o=0,a=0;a<4;a++){var s=ke(r,n[a]),u=s[0],l=s[1],c=s[2],h=s[3],d=Ie(e,new Te(u,l,c,h));(d=Math.abs(d-.5))>=0&&d<=1&&(o+=1,i=d0){for(var r=0,i=t;re.x+e.width,i=t.y>e.y+e.height,o=t.y":.604998779296875,"/":.5,"?":.53699951171875};var Qe=Math.PI,Je=Math.sin,tn=Math.cos,en=Je(Qe/8),nn=tn(Qe/8),rn=function(t,e){var n=t.getBBox(),r={x:n.minX,y:n.minY},i={x:n.maxX,y:n.maxY};if(e){var o=e.getMatrix();o||(o=[1,0,0,0,1,0,0,0,1]),r=de(r,o),i=de(i,o)}var a=r.x,s=r.y,u=i.x,l=i.y;return{x:a,y:s,minX:a,minY:s,maxX:u,maxY:l,width:u-a,height:l-s}},on=function(t){var e=t.sourceNode||t.targetNode,n=e.get("group").getMatrix();n||(n=[1,0,0,0,1,0,0,0,1]);var r=e.getKeyShape(),i=r.getBBox(),o=t.loopCfg||{},a=o.dist||2*Math.max(i.width,i.height),s=o.position||Ke.defaultLoopPosition,u=[(i.minX+i.maxX)/2+n[6],(i.minY+i.maxY)/2+n[7]],l=[t.startPoint.x,t.startPoint.y],c=[t.endPoint.x,t.endPoint.y],h=i.height/2,d=i.width/2,f=h,p=h,m=f*en,g=f*nn,v=p*en,y=p*nn,b=r.get("type"),x=Math.min(h/2,d/2),w=Math.min(h,d),_=(null==o?void 0:o.pointPadding)?Math.min(w,null==o?void 0:o.pointPadding):x;if(l[0]===c[0]&&l[1]===c[1]){switch(s){case"top":"circle"===b?(l=[u[0]-m,u[1]-g],c=[u[0]+v,u[1]-y]):(l=[u[0]-_,u[1]-h],c=[u[0]+_,u[1]-h]);break;case"top-right":f=h,p=d,"circle"===b?(l=[u[0]+(m=f*en),u[1]-(g=f*nn)],c=[u[0]+(y=p*nn),u[1]-(v=p*en)]):(l=[u[0]+d-_,u[1]-h],c=[u[0]+d,u[1]-h+_]);break;case"right":f=d,p=d,"circle"===b?(l=[u[0]+(g=f*nn),u[1]-(m=f*en)],c=[u[0]+(y=p*nn),u[1]+(v=p*en)]):(l=[u[0]+d,u[1]-_],c=[u[0]+d,u[1]+_]);break;case"bottom-right":f=d,p=h,"circle"===b?(l=[u[0]+(g=f*nn),u[1]+(m=f*en)],c=[u[0]+(v=p*en),u[1]+(y=p*nn)]):(l=[u[0]+d,u[1]+h-_],c=[u[0]+d-_,u[1]+h]);break;case"bottom":f=h,p=h,"circle"===b?(l=[u[0]+(m=f*en),u[1]+(g=f*nn)],c=[u[0]-(v=p*en),u[1]+(y=p*nn)]):(l=[u[0]-_,u[1]+h],c=[u[0]+_,u[1]+h]);break;case"bottom-left":f=h,p=d,"circle"===b?(l=[u[0]-(m=f*en),u[1]+(g=f*nn)],c=[u[0]-(y=p*nn),u[1]+(v=p*en)]):(l=[u[0]-d,u[1]+h-_],c=[u[0]-d+_,u[1]+h]);break;case"left":f=d,p=d,"circle"===b?(l=[u[0]-(g=f*nn),u[1]+(m=f*en)],c=[u[0]-(y=p*nn),u[1]-(v=p*en)]):(l=[u[0]-d,u[1]-_],c=[u[0]-d,u[1]+_]);break;case"top-left":f=d,p=h,"circle"===b?(l=[u[0]-(g=f*nn),u[1]-(m=f*en)],c=[u[0]-(v=p*en),u[1]-(y=p*nn)]):(l=[u[0]-d+_,u[1]-h],c=[u[0]-d,u[1]-h+_]);break;default:l=[u[0]-(m=(f=d)*en),u[1]-(g=f*nn)],c=[u[0]+(v=(p=d)*en),u[1]-(y=p*nn)]}if(!1===o.clockwise){var S=[l[0],l[1]];l=[c[0],c[1]],c=[S[0],S[1]]}}var E=[l[0]-u[0],l[1]-u[1]],A=(f+a)/f,M=(p+a)/p;!1===o.clockwise&&(A=(p+a)/p,M=(f+a)/f);var C=ie.scale([0,0],E,A),T=[u[0]+C[0],u[1]+C[1]],k=[c[0]-u[0],c[1]-u[1]],I=ie.scale([0,0],k,M),N=[u[0]+I[0],u[1]+I[1]];return t.startPoint={x:l[0],y:l[1]},t.endPoint={x:c[0],y:c[1]},t.controlPoints=[{x:T[0],y:T[1]},{x:N[0],y:N[1]}],t},an=function(t,e,n,r,i){var o=1e-4,a=[],s=null==t?void 0:t.getPoint(e);if(!s)return{x:0,y:0,angle:0};if(e.9999)a=t.getEndTangent();else{var u=null==t?void 0:t.getPoint(e+o);a.push([s.x,s.y]),a.push([u.x,u.y])}var l=Math.atan2(a[1][1]-a[0][1],a[1][0]-a[0][0]);if(l<0&&(l+=2*Qe),n&&(s.x+=tn(l)*n,s.y+=Je(l)*n),r){var c=l-Qe/2;l>.5*Qe&&l<1.5*Qe&&(c-=Qe),s.x+=tn(c)*r,s.y+=Je(c)*r}var h={x:s.x,y:s.y,angle:l};return i?(l>.5*Qe&&l<1.5*Qe&&(l-=Qe),(0,b.__assign)({rotate:l},h)):h},sn=function t(e,n,r,i){if(!1===i(e,n,r))return!1;if(e&&e.children)for(var o=e.children.length-1;o>=0;o--)if(!t(e.children[o],e,o,i))return!1;return!0},un=function t(e,n,r,i){if(e&&e.children)for(var o=e.children.length-1;o>=0;o--)if(!t(e.children[o],e,o,i))return;return!1!==i(e,n,r)},ln=function(t,e){"function"==typeof e&&sn(t,null,-1,e)},cn=function(t,e){"function"==typeof e&&un(t,null,-1,e)},hn=function(t,e){return e*(Ze[t]||1)},dn=function(t,e){var n=0,r=new RegExp("[一-龥]+");return t.split("").forEach((function(t){r.test(t)?n+=e:n+=hn(t,e)})),[n,e]},fn=function(t,e){return"number"!=typeof e||e<=0||e>=t.length?t:t.substring(0,e)+"..."},pn=function(t,e){var n=[],r={},i={};t.forEach((function(t){i[t.id]=t})),t.forEach((function(t,e){var o=(0,x.clone)(t);o.itemType="combo",o.children=void 0,o.parentId===o.id?(console.warn("The parentId for combo ".concat(o.id," can not be the same as the combo's id")),delete o.parentId):o.parentId&&!i[o.parentId]&&(console.warn("The parent combo for combo ".concat(o.id," does not exist!")),delete o.parentId);var a=r[o.id];if(a){if(o.children=a.children,r[o.id]=o,!(a=o).parentId)return void n.push(a);var s=r[a.parentId];if(s)s.children?s.children.push(o):s.children=[o];else{var u={id:a.parentId,children:[a]};r[a.parentId]=u,r[o.id]=o}}else if((0,x.isString)(t.parentId)){var l=r[t.parentId];if(l)l.children?l.children.push(o):l.children=[o],r[o.id]=o;else{var c={id:t.parentId,children:[o]};r[c.id]=c,r[o.id]=o}}else n.push(o),r[o.id]=o}));var o={};(e||[]).forEach((function(t){o[t.id]=t;var e=r[t.comboId];if(e){var n={id:t.id,comboId:t.comboId};e.children?e.children.push(n):e.children=[n],n.itemType="node",r[t.id]=n}}));var a=0;return n.forEach((function(t){t.depth=a+10,ln(t,(function(t){var e,n=r[t.id].itemType;e="node"===n?r[t.comboId]:r[t.parentId],t.depth=e&&"node"===n?a+1:a+10,a-1&&o.splice(l,1),s||(i={id:e,itemType:"node",comboId:n},a[e]={children:void 0}),e){var c=!1;if(n){var h=0;(t||[]).forEach((function(t){c||ln(t,(function(t){return n!==t.id||(c=!0,t.children?t.children.push(i):t.children=[i],h=t.depth,"node"===i.itemType?i.depth=h+2:i.depth=h+1,!1)}))}))}else n&&c||"node"===i.itemType||t.push(i);var d=i.depth;ln(i,(function(t){return"node"===t.itemType?d+=2:d+=1,t.depth=d,!0}))}return t},gn=function(t,e,n){var r={minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0,x:void 0,y:void 0,width:void 0,height:void 0,centerX:void 0,centerY:void 0};if(!t||0===t.length){var i=(null==n?void 0:n.getModel())||{},o=i.x,a=i.y,s=i.fixSize,u=i.collapsed,l=i.fixCollapseSize,c=u?l:s,h=(0,x.isArray)(c)?c:[c,c],d=h[0],f=h[1],p=[d/2,f/2];return{minX:o-p[0],minY:a-p[1],maxX:o+p[0],maxY:a+p[1],x:o,y:a,width:d,height:f}}return t.forEach((function(t){var n=e.findById(t.id);if(n&&n.isVisible()){n.set("bboxCanvasCache",void 0);var i=n.getCanvasBBox();i.x&&r.minX>i.minX&&(r.minX=i.minX),i.y&&r.minY>i.minY&&(r.minY=i.minY),i.x&&r.maxX2&&(n.push([i].concat(a.splice(0,2))),s="l",i="m"===i?"l":"L"),"o"===s&&1===a.length&&n.push([i,a[0]]),"r"===s)n.push([i].concat(a));else for(;a.length>=e[s]&&(n.push([i].concat(a.splice(0,e[s]))),e[s]););return t})),n},Cn=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var o=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?o[3]={x:+t[0],y:+t[1]}:i-2===r&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?o[3]=o[2]:r||(o[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n},Tn=function(t,e,n,r,i){var o=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var a=Math.PI/180,s=t+n*Math.cos(-r*a),u=t+n*Math.cos(-i*a);o=[["M",s,e+n*Math.sin(-r*a)],["A",n,n,0,+(i-r>180),0,u,e+n*Math.sin(-i*a)]]}else o=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return o},kn=function(t){if(!(t=Mn(t))||!t.length)return[["M",0,0]];var e,n,r=[],i=0,o=0,a=0,s=0,u=0;"M"===t[0][0]&&(a=i=+t[0][1],s=o=+t[0][2],u++,r[0]=["M",i,o]);for(var l=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),c=void 0,h=void 0,d=u,f=t.length;d1&&(n*=w=Math.sqrt(w),r*=w);var _=n*n,S=r*r,E=(o===a?-1:1)*Math.sqrt(Math.abs((_*S-_*x*x-S*b*b)/(_*x*x+S*b*b)));f=E*n*x/r+(t+s)/2,p=E*-r*b/n+(e+u)/2,h=Math.asin(((e-p)/r).toFixed(9)),d=Math.asin(((u-p)/r).toFixed(9)),h=td&&(h-=2*Math.PI),!a&&d>h&&(d-=2*Math.PI)}var A=d-h;if(Math.abs(A)>m){var M=d,C=s,T=u;d=h+m*(a&&d>h?1:-1),s=f+n*Math.cos(d),u=p+r*Math.sin(d),v=Pn(s,u,n,r,i,0,a,C,T,[d,M,f,p])}A=d-h;var k=Math.cos(h),I=Math.sin(h),N=Math.cos(d),P=Math.sin(d),O=Math.tan(A/4),L=4/3*n*O,R=4/3*r*O,D=[t,e],z=[t+L*I,e-R*k],F=[s+L*P,u-R*N],B=[s,u];if(z[0]=2*D[0]-z[0],z[1]=2*D[1]-z[1],l)return[z,F,B].concat(v);for(var U=[],j=0,V=(v=[z,F,B].concat(v).join().split(",")).length;j7){t[e].shift();for(var o=t[e];o.length;)s[e]="A",i&&(u[e]="A"),t.splice(e++,0,["C"].concat(o.splice(0,6)));t.splice(e,1),n=Math.max(r.length,i&&i.length||0)}},f=function(t,e,o,a,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",a.x,a.y]),o.bx=0,o.by=0,o.x=t[s][1],o.y=t[s][2],n=Math.max(r.length,i&&i.length||0))};n=Math.max(r.length,i&&i.length||0);for(var p=0;p1?1:u<0?0:u)/2,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,f=0;f<12;f++){var p=l*c[f]+l,m=Dn(p,t,n,i,a),g=Dn(p,e,r,o,s),v=m*m+g*g;d+=h[f]*Math.sqrt(v)}return l*d},Fn=function(t,e,n,r,i,o,a,s){for(var u,l,c,h,d=[],f=[[],[]],p=0;p<2;++p)if(0===p?(l=6*t-12*n+6*i,u=-3*t+9*n-9*i+3*a,c=3*n-3*t):(l=6*e-12*r+6*o,u=-3*e+9*r-9*o+3*s,c=3*r-3*e),Math.abs(u)<1e-12){if(Math.abs(l)<1e-12)continue;(h=-c/l)>0&&h<1&&d.push(h)}else{var m=l*l-4*c*u,g=Math.sqrt(m);if(!(m<0)){var v=(-l+g)/(2*u);v>0&&v<1&&d.push(v);var y=(-l-g)/(2*u);y>0&&y<1&&d.push(y)}}for(var b,x=d.length,w=x;x--;)b=1-(h=d[x]),f[0][x]=b*b*b*t+3*b*b*h*n+3*b*h*h*i+h*h*h*a,f[1][x]=b*b*b*e+3*b*b*h*r+3*b*h*h*o+h*h*h*s;return f[0][w]=t,f[1][w]=e,f[0][w+1]=a,f[1][w+1]=s,f[0].length=f[1].length=w+2,{min:{x:Math.min.apply(0,f[0]),y:Math.min.apply(0,f[1])},max:{x:Math.max.apply(0,f[0]),y:Math.max.apply(0,f[1])}}},Bn=function(t,e,n,r,i,o,a,s){if(!(Math.max(t,n)Math.max(i,a)||Math.max(e,r)Math.max(o,s))){var u=(t-n)*(o-s)-(e-r)*(i-a);if(u){var l=((t*r-e*n)*(i-a)-(t-n)*(i*s-o*a))/u,c=((t*r-e*n)*(o-s)-(e-r)*(i*s-o*a))/u,h=+l.toFixed(2),d=+c.toFixed(2);if(!(h<+Math.min(t,n).toFixed(2)||h>+Math.max(t,n).toFixed(2)||h<+Math.min(i,a).toFixed(2)||h>+Math.max(i,a).toFixed(2)||d<+Math.min(e,r).toFixed(2)||d>+Math.max(e,r).toFixed(2)||d<+Math.min(o,s).toFixed(2)||d>+Math.max(o,s).toFixed(2)))return{x:l,y:c}}}},Un=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},jn=function(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var o=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return o.parsePathArray=Rn,o},Vn=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:jn(t,e,n,r),vb:[t,e,n,r].join(" ")}},Hn=function(t,e,n,r,i,o,a,s){(0,x.isArray)(t)||(t=[t,e,n,r,i,o,a,s]);var u=Fn.apply(null,t);return Vn(u.min.x,u.min.y,u.max.x-u.min.x,u.max.y-u.min.y)},Gn=function(t,e,n,r,i,o,a,s,u){var l=1-u,c=Math.pow(l,3),h=Math.pow(l,2),d=u*u,f=d*u,p=t+2*u*(n-t)+d*(i-2*n+t),m=e+2*u*(r-e)+d*(o-2*r+e),g=n+2*u*(i-n)+d*(a-2*i+n),v=r+2*u*(o-r)+d*(s-2*o+r);return{x:c*t+3*h*u*n+3*l*u*u*i+f*a,y:c*e+3*h*u*r+3*l*u*u*o+f*s,m:{x:p,y:m},n:{x:g,y:v},start:{x:l*t+u*n,y:l*e+u*r},end:{x:l*i+u*a,y:l*o+u*s},alpha:90-180*Math.atan2(p-g,m-v)/Math.PI}},Wn=function(t,e,n){if(!function(t,e){return t=Vn(t),e=Vn(e),Un(e,t.x,t.y)||Un(e,t.x2,t.y)||Un(e,t.x,t.y2)||Un(e,t.x2,t.y2)||Un(t,e.x,e.y)||Un(t,e.x2,e.y)||Un(t,e.x,e.y2)||Un(t,e.x2,e.y2)||(t.xe.x||e.xt.x)&&(t.ye.y||e.yt.y)}(Hn(t),Hn(e)))return n?0:[];for(var r=~~(zn.apply(0,t)/8),i=~~(zn.apply(0,e)/8),o=[],a=[],s={},u=n?0:[],l=0;l=0&&b<=1&&x>=0&&x<=1&&(n?u+=1:u.push({x:y.x,y:y.y,t1:b,t2:x}))}}return u},Xn=function(t,e){return function(t,e,n){var r,i,o,a,s,u,l,c,h,d;t=On(t),e=On(e);for(var f=n?0:[],p=0,m=t.length;p=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e.concat(t[t.length-1])}))}(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var o=0;o<=n-1;o++)r.push(i)}return r},$n=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,o=[];if(1===t.length&&"M"===t[0][0]){for(var a=0;a=0;u--)a=o[u].index,"add"===o[u].type?t.splice(a,0,[].concat(t[a])):t.splice(a,1)}var h=i-(r=t.length);if(r0)){t[r]=e[r];break}n=Jn(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=Jn(n,t[r-1],2)}t[r]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=Jn(n,t[r-1],1)}t[r]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[r]=e[r]}return t};const nr=function(){function t(t,e){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=e,this.timeStamp=e.timeStamp}return t.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.toString=function(){return"[Event (type="+this.type+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}();function rr(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}var ir="undefined"!=typeof window&&void 0!==window.document;function or(t,e){if(t.isCanvas())return!0;for(var n=e.getParent(),r=!1;n;){if(n===t){r=!0;break}n=n.getParent()}return r}function ar(t){return t.cfg.visible&&t.cfg.capture}var sr=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=n.getDefaultCfg();return n.cfg=(0,x.mix)(r,e),n}return(0,b.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{}},e.prototype.get=function(t){return this.cfg[t]},e.prototype.set=function(t,e){this.cfg[t]=e},e.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},e}(M);var ur=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i0?r=function(t,e){if(e.onFrame)return t;var n=e.startTime,r=e.delay,i=e.duration,o=Object.prototype.hasOwnProperty;return(0,x.each)(t,(function(t){n+rt.delay&&(0,x.each)(e.toAttrs,(function(e,n){o.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])}))})),t}(r,y):n.addAnimator(this),r.push(y),this.set("animations",r),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0);var n=this.get("animations");(0,x.each)(n,(function(n){t&&(n.onFrame?e.attr(n.onFrame(1)):e.attr(n.toAttrs)),n.callback&&n.callback()})),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),n=t.getTime();return(0,x.each)(e,(function(t){t._paused=!0,t._pauseTime=n,t.pauseCallback&&t.pauseCallback()})),this.set("_pause",{isPaused:!0,pauseTime:n}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline").getTime(),e=this.get("animations"),n=this.get("_pause").pauseTime;return(0,x.each)(e,(function(e){e.startTime=e.startTime+(t-n),e._paused=!1,e._pauseTime=null,e.resumeCallback&&e.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",e),this},e.prototype.emitDelegation=function(t,e){var n,r=this,i=e.propagationPath;this.getEvents();"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var o=function(t){var o=i[t],s=o.get("name");if(s){if((o.isGroup()||o.isCanvas&&o.isCanvas())&&n&&or(o,n))return"break";(0,x.isArray)(s)?(0,x.each)(s,(function(t){r.emitDelegateEvent(o,t,e)})):a.emitDelegateEvent(o,s,e)}},a=this,s=0;s0)}));return i.length>0?(0,x.each)(i,(function(i){var o=i.getBBox(),a=o.minX,s=o.maxX,u=o.minY,l=o.maxY;ae&&(e=s),ur&&(r=l)})):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return i.length>0?(0,x.each)(i,(function(i){var o=i.getCanvasBBox(),a=o.minX,s=o.maxX,u=o.minY,l=o.maxY;ae&&(e=s),ur&&(r=l)})):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.children=[],e},e.prototype.onAttrChange=function(e,n,r){if(t.prototype.onAttrChange.call(this,e,n,r),"matrix"===e){var i=this.getTotalMatrix();this._applyChildrenMarix(i)}},e.prototype.applyMatrix=function(e){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var r=this.getTotalMatrix();r!==n&&this._applyChildrenMarix(r)},e.prototype._applyChildrenMarix=function(t){var e=this.getChildren();(0,x.each)(e,(function(e){e.applyMatrix(t)}))},e.prototype.addShape=function(){for(var t=[],e=0;e=0;o--){var a=t[o];if(ar(a)&&(a.isGroup()?i=a.getShape(e,n,r):a.isHit(e,n)&&(i=a)),i)break}return i},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),r=this.get("timeline"),i=t.getParent();i&&function(t,e,n){void 0===n&&(n=!0),n?e.destroy():(e.set("parent",null),e.set("canvas",null)),rr(t.getChildren(),e)}(i,t,!1),t.set("parent",this),e&&Or(t,e),r&&Lr(t,r),n.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var e=this.getTotalMatrix();e&&t.applyMatrix(e)},e.prototype.getChildren=function(){return this.get("children")||[]},e.prototype.sort=function(){var t=this.getChildren();(0,x.each)(t,(function(t,e){return t[Pr]=e,t})),t.sort(function(t){return function(e,n){var r=t(e,n);return 0===r?e[Pr]-n[Pr]:r}}((function(t,e){return t.get("zIndex")-e.get("zIndex")}))),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),e=t.length-1;e>=0;e--)t[e].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){return this.getChildren()[t]},e.prototype.getCount=function(){return this.getChildren().length},e.prototype.contain=function(t){return this.getChildren().indexOf(t)>-1},e.prototype.removeChild=function(t,e){void 0===e&&(e=!0),this.contain(t)&&t.remove(e)},e.prototype.findAll=function(t){var e=[],n=this.getChildren();return(0,x.each)(n,(function(n){t(n)&&e.push(n),n.isGroup()&&(e=e.concat(n.findAll(t)))})),e},e.prototype.find=function(t){var e=null,n=this.getChildren();return(0,x.each)(n,(function(n){if(t(n)?e=n:n.isGroup()&&(e=n.find(t)),e)return!1})),e},e.prototype.findById=function(t){return this.find((function(e){return e.get("id")===t}))},e.prototype.findByClassName=function(t){return this.find((function(e){return e.get("className")===t}))},e.prototype.findAllByName=function(t){return this.findAll((function(e){return e.get("name")===t}))},e}(Ir);const Dr=Rr;var zr,Fr,Br=0,Ur=0,jr=0,Vr=1e3,Hr=0,Gr=0,Wr=0,Xr="object"==typeof performance&&performance.now?performance:Date,Yr="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function qr(){return Gr||(Yr($r),Gr=Xr.now()+Wr)}function $r(){Gr=0}function Kr(){this._call=this._time=this._next=null}function Zr(t,e,n){var r=new Kr;return r.restart(t,e,n),r}function Qr(){Gr=(Hr=Xr.now())+Wr,Br=Ur=0;try{!function(){qr(),++Br;for(var t,e=zr;e;)(t=Gr-e._time)>=0&&e._call.call(null,t),e=e._next;--Br}()}finally{Br=0,function(){var t,e,n=zr,r=1/0;for(;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:zr=e);Fr=t,ti(r)}(),Gr=0}}function Jr(){var t=Xr.now(),e=t-Hr;e>Vr&&(Wr-=e,Hr=t)}function ti(t){Br||(Ur&&(Ur=clearTimeout(Ur)),t-Gr>24?(t<1/0&&(Ur=setTimeout(Qr,t-Xr.now()-Wr)),jr&&(jr=clearInterval(jr))):(jr||(Hr=Xr.now(),jr=setInterval(Jr,Vr)),Br=1,Yr(Qr)))}function ei(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function ni(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function ri(){}Kr.prototype=Zr.prototype={constructor:Kr,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?qr():+n)+(null==e?0:+e),this._next||Fr===this||(Fr?Fr._next=this:zr=this,Fr=this),this._call=t,this._time=n,ti()},stop:function(){this._call&&(this._call=null,this._time=1/0,ti())}};var ii=.7,oi=1/ii,ai="\\s*([+-]?\\d+)\\s*",si="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ui="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",li=/^#([0-9a-f]{3,8})$/,ci=new RegExp(`^rgb\\(${ai},${ai},${ai}\\)$`),hi=new RegExp(`^rgb\\(${ui},${ui},${ui}\\)$`),di=new RegExp(`^rgba\\(${ai},${ai},${ai},${si}\\)$`),fi=new RegExp(`^rgba\\(${ui},${ui},${ui},${si}\\)$`),pi=new RegExp(`^hsl\\(${si},${ui},${ui}\\)$`),mi=new RegExp(`^hsla\\(${si},${ui},${ui},${si}\\)$`),gi={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 vi(){return this.rgb().formatHex()}function yi(){return this.rgb().formatRgb()}function bi(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=li.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?xi(e):3===n?new Si(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?wi(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?wi(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=ci.exec(t))?new Si(e[1],e[2],e[3],1):(e=hi.exec(t))?new Si(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=di.exec(t))?wi(e[1],e[2],e[3],e[4]):(e=fi.exec(t))?wi(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=pi.exec(t))?ki(e[1],e[2]/100,e[3]/100,1):(e=mi.exec(t))?ki(e[1],e[2]/100,e[3]/100,e[4]):gi.hasOwnProperty(t)?xi(gi[t]):"transparent"===t?new Si(NaN,NaN,NaN,0):null}function xi(t){return new Si(t>>16&255,t>>8&255,255&t,1)}function wi(t,e,n,r){return r<=0&&(t=e=n=NaN),new Si(t,e,n,r)}function _i(t,e,n,r){return 1===arguments.length?((i=t)instanceof ri||(i=bi(i)),i?new Si((i=i.rgb()).r,i.g,i.b,i.opacity):new Si):new Si(t,e,n,null==r?1:r);var i}function Si(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Ei(){return`#${Ti(this.r)}${Ti(this.g)}${Ti(this.b)}`}function Ai(){const t=Mi(this.opacity);return`${1===t?"rgb(":"rgba("}${Ci(this.r)}, ${Ci(this.g)}, ${Ci(this.b)}${1===t?")":`, ${t})`}`}function Mi(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Ci(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Ti(t){return((t=Ci(t))<16?"0":"")+t.toString(16)}function ki(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Ni(t,e,n,r)}function Ii(t){if(t instanceof Ni)return new Ni(t.h,t.s,t.l,t.opacity);if(t instanceof ri||(t=bi(t)),!t)return new Ni;if(t instanceof Ni)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n0&&u<1?0:a,new Ni(a,s,u,t.opacity)}function Ni(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Pi(t){return(t=(t||0)%360)<0?t+360:t}function Oi(t){return Math.max(0,Math.min(1,t||0))}function Li(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Ri(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}ei(ri,bi,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:vi,formatHex:vi,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ii(this).formatHsl()},formatRgb:yi,toString:yi}),ei(Si,_i,ni(ri,{brighter(t){return t=null==t?oi:Math.pow(oi,t),new Si(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?ii:Math.pow(ii,t),new Si(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Si(Ci(this.r),Ci(this.g),Ci(this.b),Mi(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:Ei,formatHex:Ei,formatHex8:function(){return`#${Ti(this.r)}${Ti(this.g)}${Ti(this.b)}${Ti(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ai,toString:Ai})),ei(Ni,(function(t,e,n,r){return 1===arguments.length?Ii(t):new Ni(t,e,n,null==r?1:r)}),ni(ri,{brighter(t){return t=null==t?oi:Math.pow(oi,t),new Ni(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?ii:Math.pow(ii,t),new Ni(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Si(Li(t>=240?t-240:t+120,i,r),Li(t,i,r),Li(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new Ni(Pi(this.h),Oi(this.s),Oi(this.l),Mi(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(){const t=Mi(this.opacity);return`${1===t?"hsl(":"hsla("}${Pi(this.h)}, ${100*Oi(this.s)}%, ${100*Oi(this.l)}%${1===t?")":`, ${t})`}`}}));const Di=t=>()=>t;function zi(t,e){return function(n){return t+n*e}}function Fi(t){return 1==(t=+t)?Bi:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Di(isNaN(e)?n:e)}}function Bi(t,e){var n=e-t;return n?zi(t,n):Di(isNaN(t)?e:t)}const Ui=function t(e){var n=Fi(e);function r(t,e){var r=n((t=_i(t)).r,(e=_i(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=Bi(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function ji(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=ro&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:Xi(n,r)})),o=$i.lastIndex;return oh.length?(c=Mn(o[l]),h=Mn(i[l]),h=Qn(h,c),h=er(h,c),e.fromAttrs.path=h,e.toAttrs.path=c):e.pathFormatted||(c=Mn(o[l]),h=Mn(i[l]),h=er(h,c),e.fromAttrs.path=h,e.toAttrs.path=c,e.pathFormatted=!0),r[l]=[];for(var d=0;d0){for(var o=r.animators.length-1;o>=0;o--)if((t=r.animators[o]).destroyed)r.removeAnimator(o);else{if(!t.isAnimatePaused())for(var a=(e=t.get("animations")).length-1;a>=0;a--)n=e[a],Xo(t,n,i)&&(e.splice(a,1),!1,n.callback&&n.callback());0===e.length&&r.removeAnimator(o)}r.canvas.get("autoDraw")||r.canvas.draw()}}))},t.prototype.addAnimator=function(t){this.animators.push(t)},t.prototype.removeAnimator=function(t){this.animators.splice(t,1)},t.prototype.isAnimating=function(){return!!this.animators.length},t.prototype.stop=function(){this.timer&&this.timer.stop()},t.prototype.stopAllAnimations=function(t){void 0===t&&(t=!0),this.animators.forEach((function(e){e.stopAnimate(t)})),this.animators=[],this.canvas.draw()},t.prototype.getTime=function(){return this.current},t}();const qo=Yo;var $o=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function Ko(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function Zo(t,e,n){if(n.bubbles){var r=void 0,i=!1;if("mouseenter"===e?(r=n.fromShape,i=!0):"mouseleave"===e&&(i=!0,r=n.toShape),t.isCanvas()&&i)return;if(r&&or(t,r))return void(n.bubbles=!1);n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}}var Qo=function(){function t(t){var e=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(t){var n=t.type;e._triggerEvent(n,t)},this._onDocumentMove=function(t){if(e.canvas.get("el")!==t.target&&(e.dragging||e.currentShape)){var n=e._getPointInfo(t);e.dragging&&e._emitEvent("drag",t,n,e.draggingShape)}},this._onDocumentMouseUp=function(t){if(e.canvas.get("el")!==t.target&&e.dragging){var n=e._getPointInfo(t);e.draggingShape&&e._emitEvent("drop",t,n,null),e._emitEvent("dragend",t,n,e.draggingShape),e._afterDrag(e.draggingShape,n,t)}},this.canvas=t.canvas}return t.prototype.init=function(){this._bindEvents()},t.prototype._bindEvents=function(){var t=this,e=this.canvas.get("el");(0,x.each)($o,(function(n){e.addEventListener(n,t._eventCallback)})),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._clearEvents=function(){var t=this,e=this.canvas.get("el");(0,x.each)($o,(function(n){e.removeEventListener(n,t._eventCallback)})),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._getEventObj=function(t,e,n,r,i,o){var a=new nr(t,e);return a.fromShape=i,a.toShape=o,a.x=n.x,a.y=n.y,a.clientX=n.clientX,a.clientY=n.clientY,a.propagationPath.push(r),a},t.prototype._getShape=function(t,e){return this.canvas.getShape(t.x,t.y,e)},t.prototype._getPointInfo=function(t){var e=this.canvas,n=e.getClientByEvent(t),r=e.getPointByEvent(t);return{x:r.x,y:r.y,clientX:n.x,clientY:n.y}},t.prototype._triggerEvent=function(t,e){var n=this._getPointInfo(e),r=this._getShape(n,e),i=this["_on"+t],o=!1;if(i)i.call(this,n,r,e);else{var a=this.currentShape;"mouseenter"===t||"dragenter"===t||"mouseover"===t?(this._emitEvent(t,e,n,null,null,r),r&&this._emitEvent(t,e,n,r,null,r),"mouseenter"===t&&this.draggingShape&&this._emitEvent("dragenter",e,n,null)):"mouseleave"===t||"dragleave"===t||"mouseout"===t?(o=!0,a&&this._emitEvent(t,e,n,a,a,null),this._emitEvent(t,e,n,null,a,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,n,null)):this._emitEvent(t,e,n,r,null,null)}if(o||(this.currentShape=r),r&&!r.get("destroyed")){var s=this.canvas;s.get("el").style.cursor=r.attr("cursor")||s.get("cursor")}},t.prototype._onmousedown=function(t,e,n){0===n.button&&(this.mousedownShape=e,this.mousedownPoint=t,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,t,e,null,null)},t.prototype._emitMouseoverEvents=function(t,e,n,r){var i=this.canvas.get("el");n!==r&&(n&&(this._emitEvent("mouseout",t,e,n,n,r),this._emitEvent("mouseleave",t,e,n,n,r),r&&!r.get("destroyed")||(i.style.cursor=this.canvas.get("cursor"))),r&&(this._emitEvent("mouseover",t,e,r,n,r),this._emitEvent("mouseenter",t,e,r,n,r)))},t.prototype._emitDragoverEvents=function(t,e,n,r,i){r?(r!==n&&(n&&this._emitEvent("dragleave",t,e,n,n,r),this._emitEvent("dragenter",t,e,r,n,r)),i||this._emitEvent("dragover",t,e,r)):n&&this._emitEvent("dragleave",t,e,n,n,r),i&&this._emitEvent("dragover",t,e,r)},t.prototype._afterDrag=function(t,e,n){t&&(t.set("capture",!0),this.draggingShape=null),this.dragging=!1;var r=this._getShape(e,n);r!==t&&this._emitMouseoverEvents(n,e,t,r),this.currentShape=r},t.prototype._onmouseup=function(t,e,n){if(0===n.button){var r=this.draggingShape;this.dragging?(r&&this._emitEvent("drop",n,t,e),this._emitEvent("dragend",n,t,r),this._afterDrag(r,t,n)):(this._emitEvent("mouseup",n,t,e),e===this.mousedownShape&&this._emitEvent("click",n,t,e),this.mousedownShape=null,this.mousedownPoint=null)}},t.prototype._ondragover=function(t,e,n){n.preventDefault();var r=this.currentShape;this._emitDragoverEvents(n,t,r,e,!0)},t.prototype._onmousemove=function(t,e,n){var r=this.canvas,i=this.currentShape,o=this.draggingShape;if(this.dragging)o&&this._emitDragoverEvents(n,t,i,e,!1),this._emitEvent("drag",n,t,o);else{var a=this.mousedownPoint;if(a){var s=this.mousedownShape,u=n.timeStamp-this.mousedownTimeStamp,l=a.clientX-t.clientX,c=a.clientY-t.clientY;u>120||l*l+c*c>40?s&&s.get("draggable")?((o=this.mousedownShape).set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",n,t,o),this.mousedownShape=null,this.mousedownPoint=null):!s&&r.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e))}else this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)}},t.prototype._emitEvent=function(t,e,n,r,i,o){var a=this._getEventObj(t,e,n,r,i,o);if(r){a.shape=r,Ko(r,t,a);for(var s=r.getParent();s;)s.emitDelegation(t,a),a.propagationStopped||Zo(s,t,a),a.propagationPath.push(s),s=s.getParent()}else{Ko(this.canvas,t,a)}},t.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},t}();const Jo=Qo;var ta=yr(),ea=ta&&"firefox"===ta.name,na=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return(0,b.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.cursor="default",e.supportCSSTransform=!1,e},e.prototype.initContainer=function(){var t=this.get("container");(0,x.isString)(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t),this.get("container").appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new Jo({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new qo(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");ir&&(n.style.width=t+"px",n.style.height=e+"px")},e.prototype.changeSize=function(t,e){this.setDOMSize(t,e),this.set("width",t),this.set("height",e),this.onCanvasChange("changeSize")},e.prototype.getRenderer=function(){return this.get("renderer")},e.prototype.getCursor=function(){return this.get("cursor")},e.prototype.setCursor=function(t){this.set("cursor",t);var e=this.get("el");ir&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){if(this.get("supportCSSTransform")){if(ea&&!(0,x.isNil)(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!(0,x.isNil)(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var e=this.getClientByEvent(t),n=e.x,r=e.y;return this.getPointByClient(n,r)},e.prototype.getClientByEvent=function(t){var e=t;return t.touches&&(e="touchend"===t.type?t.changedTouches[0]:t.touches[0]),{x:e.clientX,y:e.clientY}},e.prototype.getPointByClient=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t-n.left,y:e-n.top}},e.prototype.getClientByPoint=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t+n.left,y:e+n.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){this.get("eventController").destroy()},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var e=this.get("timeline");this.get("destroyed")||(this.clear(),e&&e.stop(),this.clearEvents(),this.removeDom(),t.prototype.destroy.call(this))},e}(Dr);const ra=na;const ia=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,b.__extends)(e,t),e.prototype.isGroup=function(){return!0},e.prototype.isEntityGroup=function(){return!1},e.prototype.clone=function(){for(var e=t.prototype.clone.call(this),n=this.getChildren(),r=0;r=t&&n.minY<=e&&n.maxY>=e},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.cfg.bbox;return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.cfg.canvasBBox;return t||(t=this.calculateCanvasBBox(),this.set("canvasBBox",t)),t},e.prototype.applyMatrix=function(e){t.prototype.applyMatrix.call(this,e),this.set("canvasBBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),e=this.getTotalMatrix(),n=t.minX,r=t.minY,i=t.maxX,o=t.maxY;if(e){var a=_r(e,[t.minX,t.minY]),s=_r(e,[t.maxX,t.minY]),u=_r(e,[t.minX,t.maxY]),l=_r(e,[t.maxX,t.maxY]);n=Math.min(a[0],s[0],u[0],l[0]),i=Math.max(a[0],s[0],u[0],l[0]),r=Math.min(a[1],s[1],u[1],l[1]),o=Math.max(a[1],s[1],u[1],l[1])}var c=this.attrs;if(c.shadowColor){var h=c.shadowBlur,d=void 0===h?0:h,f=c.shadowOffsetX,p=void 0===f?0:f,m=c.shadowOffsetY,g=void 0===m?0:m,v=n-d+p,y=i+d+p,b=r-d+g,x=o+d+g;n=Math.min(n,v),i=Math.max(i,y),r=Math.min(r,b),o=Math.max(o,x)}return{x:n,y:r,minX:n,minY:r,maxX:i,maxY:o,width:i-n,height:o-r}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(t,e){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(t,e){var n=this.get("startArrowShape"),r=this.get("endArrowShape"),i=[t,e,1],o=(i=this.invertFromMatrix(i))[0],a=i[1],s=this._isInBBox(o,a);if(this.isOnlyHitBox())return s;if(s&&!this.isClipped(o,a)){if(this.isInShape(o,a))return!0;if(n&&n.isHit(o,a))return!0;if(r&&r.isHit(o,a))return!0}return!1},e}(Ir);var aa=new Map;function sa(t,e){aa.set(t,e)}function ua(t){return aa.get(t)}function la(t){var e=t.attr();return{x:e.x,y:e.y,width:e.width,height:e.height}}function ca(t){var e=t.attr(),n=e.x,r=e.y,i=e.r;return{x:n-i,y:r-i,width:2*i,height:2*i}}function ha(t,e,n,r){var i=t-n,o=e-r;return Math.sqrt(i*i+o*o)}function da(t,e){return Math.abs(t-e)<.001}function fa(t,e){var n=(0,x.min)(t),r=(0,x.min)(e);return{x:n,y:r,width:(0,x.max)(t)-n,height:(0,x.max)(e)-r}}function pa(t){return(t+2*Math.PI)%(2*Math.PI)}const ma={box:function(t,e,n,r){return fa([t,n],[e,r])},length:function(t,e,n,r){return ha(t,e,n,r)},pointAt:function(t,e,n,r,i){return{x:(1-i)*t+i*n,y:(1-i)*e+i*r}},pointDistance:function(t,e,n,r,i,o){var a=(n-t)*(i-t)+(r-e)*(o-e);return a<0?ha(t,e,i,o):a>(n-t)*(n-t)+(r-e)*(r-e)?ha(n,r,i,o):this.pointToLine(t,e,n,r,i,o)},pointToLine:function(t,e,n,r,i,o){var a=[n-t,r-e];if(ie.exactEquals(a,[0,0]))return Math.sqrt((i-t)*(i-t)+(o-e)*(o-e));var s=[-a[1],a[0]];ie.normalize(s,s);var u=[i-t,o-e];return Math.abs(ie.dot(u,s))},tangentAngle:function(t,e,n,r){return Math.atan2(r-e,n-t)}};function ga(t,e,n,r,i,o){var a,s=1/0,u=[n,r],l=20;o&&o>200&&(l=o/10);for(var c=1/l,h=c/10,d=0;d<=l;d++){var f=d*c,p=[i.apply(null,t.concat([f])),i.apply(null,e.concat([f]))];(y=ha(u[0],u[1],p[0],p[1]))=0&&y=0?[i]:[]}function ba(t,e,n,r){return 2*(1-r)*(e-t)+2*r*(n-e)}function xa(t,e,n,r,i,o,a){var s=va(t,n,i,a),u=va(e,r,o,a),l=ma.pointAt(t,e,n,r,a),c=ma.pointAt(n,r,i,o,a);return[[t,e,l.x,l.y,s,u],[s,u,c.x,c.y,i,o]]}function wa(t,e,n,r,i,o,a){if(0===a)return(ha(t,e,n,r)+ha(n,r,i,o)+ha(t,e,i,o))/2;var s=xa(t,e,n,r,i,o,.5),u=s[0],l=s[1];return u.push(a-1),l.push(a-1),wa.apply(null,u)+wa.apply(null,l)}const _a={box:function(t,e,n,r,i,o){var a=ya(t,n,i)[0],s=ya(e,r,o)[0],u=[t,i],l=[e,o];return void 0!==a&&u.push(va(t,n,i,a)),void 0!==s&&l.push(va(e,r,o,s)),fa(u,l)},length:function(t,e,n,r,i,o){return wa(t,e,n,r,i,o,3)},nearestPoint:function(t,e,n,r,i,o,a,s){return ga([t,n,i],[e,r,o],a,s,va)},pointDistance:function(t,e,n,r,i,o,a,s){var u=this.nearestPoint(t,e,n,r,i,o,a,s);return ha(u.x,u.y,a,s)},interpolationAt:va,pointAt:function(t,e,n,r,i,o,a){return{x:va(t,n,i,a),y:va(e,r,o,a)}},divide:function(t,e,n,r,i,o,a){return xa(t,e,n,r,i,o,a)},tangentAngle:function(t,e,n,r,i,o,a){var s=ba(t,n,i,a),u=ba(e,r,o,a);return pa(Math.atan2(u,s))}};function Sa(t,e,n,r,i){var o=1-i;return o*o*o*t+3*e*i*o*o+3*n*i*i*o+r*i*i*i}function Ea(t,e,n,r,i){var o=1-i;return 3*(o*o*(e-t)+2*o*i*(n-e)+i*i*(r-n))}function Aa(t,e,n,r){var i,o,a,s=-3*t+9*e-9*n+3*r,u=6*t-12*e+6*n,l=3*e-3*t,c=[];if(da(s,0))da(u,0)||(i=-l/u)>=0&&i<=1&&c.push(i);else{var h=u*u-4*s*l;da(h,0)?c.push(-u/(2*s)):h>0&&(o=(-u-(a=Math.sqrt(h)))/(2*s),(i=(-u+a)/(2*s))>=0&&i<=1&&c.push(i),o>=0&&o<=1&&c.push(o))}return c}function Ma(t,e,n,r,i,o,a,s,u){var l=Sa(t,n,i,a,u),c=Sa(e,r,o,s,u),h=ma.pointAt(t,e,n,r,u),d=ma.pointAt(n,r,i,o,u),f=ma.pointAt(i,o,a,s,u),p=ma.pointAt(h.x,h.y,d.x,d.y,u),m=ma.pointAt(d.x,d.y,f.x,f.y,u);return[[t,e,h.x,h.y,p.x,p.y,l,c],[l,c,m.x,m.y,f.x,f.y,a,s]]}function Ca(t,e,n,r,i,o,a,s,u){if(0===u)return function(t,e){for(var n=0,r=t.length,i=0;i0?n:-1*n}const Ia=function(t,e,n,r,i,o){var a=n,s=r;if(0===a||0===s)return{x:t,y:e};for(var u,l,c=i-t,h=o-e,d=Math.abs(c),f=Math.abs(h),p=a*a,m=s*s,g=Math.PI/4,v=0;v<4;v++){u=a*Math.cos(g),l=s*Math.sin(g);var y=(p-m)*Math.pow(Math.cos(g),3)/a,b=(m-p)*Math.pow(Math.sin(g),3)/s,x=u-y,w=l-b,_=d-y,S=f-b,E=Math.hypot(w,x),A=Math.hypot(S,_);g+=E*Math.asin((x*S-w*_)/(E*A))/Math.sqrt(p+m-u*u-l*l),g=Math.min(Math.PI/2,Math.max(0,g))}return{x:t+ka(u,c),y:e+ka(l,h)}};function Na(t,e,n,r,i,o){return n*Math.cos(i)*Math.cos(o)-r*Math.sin(i)*Math.sin(o)+t}function Pa(t,e,n,r,i,o){return n*Math.sin(i)*Math.cos(o)+r*Math.cos(i)*Math.sin(o)+e}function Oa(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)}}function La(t,e,n){var r=Math.cos(n),i=Math.sin(n);return[t*r-e*i,t*i+e*r]}const Ra={box:function(t,e,n,r,i,o,a){for(var s=function(t,e,n){return Math.atan(-e/t*Math.tan(n))}(n,r,i),u=1/0,l=-1/0,c=[o,a],h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var d=s+h;ol&&(l=f)}var p=function(t,e,n){return Math.atan(e/(t*Math.tan(n)))}(n,r,i),m=1/0,g=-1/0,v=[o,a];for(h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var y=p+h;og&&(g=b)}return{x:u,y:m,width:l-u,height:g-m}},length:function(t,e,n,r,i,o,a){},nearestPoint:function(t,e,n,r,i,o,a,s,u){var l=La(s-t,u-e,-i),c=l[0],h=l[1],d=Ia(0,0,n,r,c,h),f=function(t,e,n,r){return(Math.atan2(r*t,n*e)+2*Math.PI)%(2*Math.PI)}(n,r,d.x,d.y);fa&&(d=Oa(n,r,a));var p=La(d.x,d.y,i);return{x:p[0]+t,y:p[1]+e}},pointDistance:function(t,e,n,r,i,o,a,s,u){var l=this.nearestPoint(t,e,n,r,s,u);return ha(l.x,l.y,s,u)},pointAt:function(t,e,n,r,i,o,a,s){var u=(a-o)*s+o;return{x:Na(t,0,n,r,i,u),y:Pa(0,e,n,r,i,u)}},tangentAngle:function(t,e,n,r,i,o,a,s){var u=(a-o)*s+o,l=function(t,e,n,r,i,o,a,s){return-1*n*Math.cos(i)*Math.sin(s)-r*Math.sin(i)*Math.cos(s)}(0,0,n,r,i,0,0,u),c=function(t,e,n,r,i,o,a,s){return-1*n*Math.sin(i)*Math.sin(s)+r*Math.cos(i)*Math.cos(s)}(0,0,n,r,i,0,0,u);return pa(Math.atan2(c,l))}};function Da(t){if(t.length<2)return 0;for(var e=0,n=0;n1){var i=function(t,e){return e?e-t:.14*t}(e,n);return e*r+i*(r-1)}return e}function Ha(t){var e=t.fontSize,n=t.fontFamily,r=t.fontWeight;return[t.fontStyle,t.fontVariant,r,e+"px",n].join(" ").trim()}var Ga=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,Wa=/[^\s\,]+/gi;const Xa=function(t){var e=t||[];return(0,x.isArray)(e)?e:(0,x.isString)(e)?(e=e.match(Ga),(0,x.each)(e,(function(t,n){if((t=t.match(Wa))[0].length>1){var r=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=r}(0,x.each)(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0};const Ya=function(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=[[0,0],[1,1]]);for(var r=!!e,i=[],o=0,a=t.length;o2&&(n.push([r].concat(o.splice(0,2))),a="l",r="m"===r?"l":"L"),"o"===a&&1===o.length&&n.push([r,o[0]]),"r"===a)n.push([r].concat(o));else for(;o.length>=e[a]&&(n.push([r].concat(o.splice(0,e[a]))),e[a]););return""})),n}var Qa=/[a-z]/;function Ja(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function ts(t){var e=Za(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,r=0;r=0){n=!0;break}}if(!n)return e;var o=[],a=0,s=0,u=0,l=0,c=0,h=e[0];"M"!==h[0]&&"m"!==h[0]||(u=a=+h[1],l=s=+h[2],c++,o[0]=["M",a,s]);r=c;for(var d=e.length;r1&&(n*=Math.sqrt(f),r*=Math.sqrt(f));var p=n*n*(d*d)+r*r*(h*h),m=p?Math.sqrt((n*n*(r*r)-p)/p):1;o===a&&(m*=-1),isNaN(m)&&(m=0);var g=r?m*n*d/r:0,v=n?m*-r*h/n:0,y=(s+l)/2+Math.cos(i)*g-Math.sin(i)*v,b=(u+c)/2+Math.sin(i)*g+Math.cos(i)*v,w=[(h-g)/n,(d-v)/r],_=[(-1*h-g)/n,(-1*d-v)/r],S=rs([1,0],w),E=rs(w,_);return ns(w,_)<=-1&&(E=Math.PI),ns(w,_)>=1&&(E=0),0===a&&E>0&&(E-=2*Math.PI),1===a&&E<0&&(E+=2*Math.PI),{cx:y,cy:b,rx:is(t,[l,c])?0:n,ry:is(t,[l,c])?0:r,startAngle:S,endAngle:S+E,xRotation:i,arcFlag:o,sweepFlag:a}}function as(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function ss(t){for(var e=[],n=null,r=null,i=null,o=0,a=(t=Xa(t)).length,s=0;sMath.PI/2?Math.PI-l:l,c=c>Math.PI/2?Math.PI-c:c,{xExtra:Math.cos(u/2-l)*(e/2*(1/Math.sin(u/2)))-e/2||0,yExtra:Math.cos(c-u/2)*(e/2*(1/Math.sin(u/2)))-e/2||0}}sa("rect",la),sa("image",la),sa("circle",ca),sa("marker",ca),sa("polyline",(function(t){for(var e=t.attr().points,n=[],r=[],i=0;in&&(n=l),c>i&&(i=c)}return{x:Math.floor(e),y:Math.floor(r),width:Math.ceil(n)-Math.floor(e),height:Math.ceil(i)-Math.floor(r),minX:e,minY:r,maxX:n,maxY:i}},gs=function(t,e,n,r,i){void 0===e&&(e=15),void 0===n&&(n="quadratic"),void 0===r&&(r=void 0),void 0===i&&(i=void 0);for(var o=t.length,a=2*e,s=["top","top-right","right","bottom-right","bottom","bottom-left","left","top-left"],u={},l=[],c={},h=0;hr.get("optimizeThreshold")){var a=1/0,s=1/0,u=-1/0,l=-1/0;o.forEach((function(t){var e=t.getModel(),n=e.x,r=e.y;a>n&&(a=n),s>r&&(s=r),uf&&(p=f,console.warn("fitview failed, ratio out of range, ratio: %f",a,"graph maxzoom has been used instead"));var m=(0,vs.pd)(h,[["t",-i.x,-i.y],["s",p,p],["t",i.x,i.y]]),g=bn({animateCfg:n,callback:function(){t.setMatrix(m),u.emit("viewportchange",{action:"translate",matrix:h}),u.emit("viewportchange",{action:"zoom",matrix:m})}});t.stopAnimate(),t.setMatrix(e),t.animate((function(t){return{matrix:Ue(e,m,t)}}),g)}else{var v=bn({animateCfg:n,callback:function(){u.emit("viewportchange",{action:"translate",matrix:h})}});t.animate((function(t){return{matrix:Ue(e,h,t)}}),v)}}},t.prototype.fitView=function(t,e){var n,r=this.graph,i=this.getFormatPadding(),o=r.get("width"),a=r.get("height"),s=r.get("group"),u=s.getMatrix()||[1,0,0,0,1,0,0,0,1];s.resetMatrix();var l=r.getNodes();if(l.length>r.get("optimizeThreshold")){var c=1/0,h=1/0,d=-1/0,f=-1/0;l.forEach((function(t){var e=t.getModel(),n=e.x,r=e.y;c>n&&(c=n),h>r&&(h=r),dv&&(y=v),t)this.animatedFitView(s,u,e,n,p,m,y,!0);else{var b=p.x-m.x,x=p.y-m.y;if(ps(b)||ps(x))return;r.translate(b,x),r.zoom(y,p)||console.warn("zoom failed, ratio out of range, ratio: %f",y)}}},t.prototype.fitViewByRules=function(t,e,n){var r,i=t.onlyOutOfViewPort,o=void 0!==i&&i,a=t.direction,s=void 0===a?"both":a,u=t.ratioRule,l=void 0===u?"min":u,c=this.graph,h=this.getFormatPadding(),d=c.get("width"),f=c.get("height"),p=c.get("group"),m=p.getMatrix()||[1,0,0,0,1,0,0,0,1];p.resetMatrix();var g=c.getNodes();if(g.length>c.get("optimizeThreshold")){var v=1/0,y=1/0,b=-1/0,x=-1/0;g.forEach((function(t){var e=t.getModel(),n=e.x,r=e.y;v>n&&(v=n),y>r&&(y=r),bc.maxX&&(c.maxX=f.maxX),f.maxY>c.maxY&&(c.maxY=f.maxY)}if(c.x=c.minX,c.y=c.minY,c.width=c.maxX-c.minX,c.height=c.maxY-c.minY,0!==c.width&&0!==c.height){var p=this.getViewCenter(),m={x:c.x+c.width/2,y:c.y+c.height/2},g=(a-o[1]-o[3])/c.width,v=(s-o[0]-o[2])/c.height,y=g;g>v&&(y=v),n?this.animatedFitView(u,l,r,c,p,m,y,e):(i.translate(p.x-m.x,p.y-m.y),e&&!i.zoom(y,p)&&console.warn("zoom failed, ratio out of range, ratio: %f",y))}}},t.prototype.changeSize=function(t,e){var n=this.graph;if(!(0,x.isNumber)(t)||!(0,x.isNumber)(e))throw Error("invalid canvas width & height, please make sure width & height type is number");n.set({width:t,height:e}),n.get("canvas").changeSize(t,e),n.get("plugins").forEach((function(t){t.get("gridContainer")&&t.positionInit()}))},t.prototype.destroy=function(){this.graph=null,this.destroyed=!1},t}();const bs=ys;function xs(t){return xs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xs(t)}function ws(t){if("string"!=typeof t)return t;var e=function(t){if("string"!=typeof t)return t;try{return JSON.parse(t.trim())}catch(e){return t.trim()}},n=e(t);if("string"!=typeof n)return n;for(var r=function(t){return t[t.length-1]},i=t.trim(),o=[],a=[],s=function(){for(var t=[],e=0;er.width&&(r.width=c.width+c.x),c.height+c.y>r.height&&(r.height=c.height+c.y)}}}return t.bbox=function(t,e,n){var r,i,o=t.attrs,a=void 0===o?{}:o,s={x:e.x||0,y:e.y||0,width:n.width||0,height:n.height||0};switch(t.type){case"maker":case"circle":a.r&&(i=2*a.r,r=2*a.r);break;case"text":a.text&&(i=dn(a.text,a.fontSize||12)[0],r=16,s.y+=r,s.height=r,s.width=i,t.attrs=(0,b.__assign)({fontSize:12,fill:"#000"},a));break;default:a.width&&(i=a.width),a.height&&(r=a.height)}return r>=0&&(s.height=r),i>=0&&(s.width=i),a.marginTop&&(s.y+=a.marginTop),a.marginLeft&&(s.x+=a.marginLeft),s}(t,e,r),t.attrs=(0,b.__assign)((0,b.__assign)({},t.attrs),t.bbox),t}function As(t,e){var n,r,i,o,a=(t||{}).type,s=((null==e?void 0:e.attrs)||{}).key;if(s&&t&&(t.attrs.key=s),!t&&e)return{action:"delete",val:e,type:a,key:s};if(t&&!e)return{action:"add",val:t,type:a};if(!t&&!e)return{action:"same",type:a};var u=[];if((null===(n=t.children)||void 0===n?void 0:n.length)>0||(null===(r=e.children)||void 0===r?void 0:r.length)>0)for(var l=Math.max(null===(i=t.children)||void 0===i?void 0:i.length,null===(o=e.children)||void 0===o?void 0:o.length),c=e.children||[],h=t.children||[],d=0;d-1)return;n.push(i)}else s>-1&&n.splice(s,1)}else if((0,x.isString)(e)){var u=n.filter((function(t){return t.includes(o)}));u.length>0&&this.clearStates(u),(a=a.filter((function(t){return!t.includes(o)}))).push(i),this.set("states",a)}if(r){var l=this.get("model").type;r.setState(l,t,e,this)}},t.prototype.clearStates=function(t){var e=this,n=e.getStates(),r=e.get("shapeFactory"),i=e.get("model").type;t||(t=n),(0,x.isString)(t)&&(t=[t]);var o=n.filter((function(e){return-1===t.indexOf(e)}));e.set("states",o),t.forEach((function(t){r.setState(i,t,!1,e)}))},t.prototype.setOptimize=function(t){this.optimize=t},t.prototype.getContainer=function(){return this.get("group")},t.prototype.getKeyShape=function(){return this.get("keyShape")},t.prototype.getModel=function(){return this.get("model")},t.prototype.getType=function(){return this.get("type")},t.prototype.getID=function(){return this.get("id")},t.prototype.isItem=function(){return!0},t.prototype.getStates=function(){return this.get("states")},t.prototype.hasState=function(t){return this.getStates().indexOf(t)>=0},t.prototype.refresh=function(t){var e=this.get("model");this.updatePosition(e),this.updateShape(t),this.afterUpdate(),this.clearCache()},t.prototype.getUpdateType=function(t){},t.prototype.update=function(t,e){void 0===e&&(e=void 0);var n=this.get("model");if("move"===e)this.updatePosition(t);else{var r=n.visible,i=t.visible;r!==i&&void 0!==i&&this.changeVisibility(i);var o={x:n.x,y:n.y};t.x=isNaN(+t.x)?n.x:+t.x,t.y=isNaN(+t.y)?n.y:+t.y;var a=this.get("styles");if(t.stateStyles){var s=t.stateStyles;(0,x.mix)(a,s),delete t.stateStyles}Object.assign(n,t),o.x===t.x&&o.y===t.y||this.updatePosition(t),this.updateShape(e)}this.afterUpdate(),this.clearCache()},t.prototype.updateShape=function(t){var e=this.get("shapeFactory"),n=this.get("model"),r=n.type;if(e.shouldUpdate(r)&&r===this.get("currentShape")){var i=this.getShapeCfg(n,t);e.baseUpdate(r,i,this,t),"move"!==t&&this.setOriginStyle()}else this.draw();this.restoreStates(e,r)},t.prototype.updatePosition=function(t){var e=this.get("model"),n=isNaN(+t.x)?+e.x:+t.x,r=isNaN(+t.y)?+e.y:+t.y,i=this.get("group");if(isNaN(n)||isNaN(r))return!1;e.x=n,e.y=r;var o=i.getMatrix();return(!o||o[6]!==n||o[7]!==r)&&(i.resetMatrix(),be(i,{x:n,y:r}),this.clearCache(),!0)},t.prototype.getBBox=function(){var t=this.get(Os);return t||(t=this.calculateBBox(),this.set(Os,t)),t},t.prototype.getCanvasBBox=function(){var t=this.get(Ls);return t||(t=this.calculateCanvasBBox(),this.set(Ls,t)),t},t.prototype.toFront=function(){this.get("group").toFront()},t.prototype.toBack=function(){this.get("group").toBack()},t.prototype.show=function(){this.changeVisibility(!0)},t.prototype.hide=function(){this.changeVisibility(!1)},t.prototype.changeVisibility=function(t){var e=this.get("group");t?e.show():e.hide(),this.set("visible",t)},t.prototype.isVisible=function(){return this.get("visible")},t.prototype.enableCapture=function(t){var e=this.get("group");e&&e.set("capture",t)},t.prototype.destroy=function(){if(!this.destroyed){var t=this.get("animate"),e=this.get("group");t&&e.stopAnimate(),e.shapeMap={},this.clearCache(),e.remove(),this._cfg=null,this.destroyed=!0}},t}();const Ds=Rs;var zs={source:"start",target:"end"},Fs="Node",Bs="Point",Us=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,b.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{type:"edge",sourceNode:null,targetNode:null,startPoint:null,endPoint:null,linkCenter:!1}},e.prototype.setEnd=function(t,e){var n=zs[t]+Bs,r=t+Fs,i=this.get(r);i&&!i.destroyed&&i.removeEdge(this),(0,x.isPlainObject)(e)?(this.set(n,e),this.set(r,null)):e&&(e.addEdge(this),this.set(r,e),this.set(n,null))},e.prototype.getLinkPoint=function(t,e,n){var r=zs[t]+Bs,i=t+Fs,o=this.get(r);if(!o){var a=this.get(i),s=t+"Anchor",u=this.getPrePoint(t,n),l=e[s];(0,x.isNil)(l)||(o=a.getLinkPointByAnchor(l)),o=o||a.getLinkPoint(u),(0,x.isNil)(o.index)||this.set("".concat(t,"AnchorIndex"),o.index)}return o},e.prototype.getPrePoint=function(t,e){if(e&&e.length)return e["source"===t?0:e.length-1];var n="source"===t?"target":"source";return this.getEndPoint(n)},e.prototype.getEndPoint=function(t){var e=t+Fs,n=zs[t]+Bs,r=this.get(e);return r&&!r.destroyed?r.get("model"):this.get(n)},e.prototype.getControlPointsByCenter=function(t){var e=this.getEndPoint("source"),n=this.getEndPoint("target"),r=this.get("shapeFactory"),i=t.type;return r.getControlPoints(i,{startPoint:e,endPoint:n})},e.prototype.getEndCenter=function(t){var e=t+Fs,n=zs[t]+Bs,r=this.get(e);if(r){var i=r.getBBox();return{x:i.centerX,y:i.centerY}}return this.get(n)},e.prototype.init=function(){t.prototype.init.call(this),this.setSource(this.get("source")),this.setTarget(this.get("target"))},e.prototype.getShapeCfg=function(e,n){var r=this,i=r.get("linkCenter"),o=(null==n?void 0:n.includes("move"))?e:t.prototype.getShapeCfg.call(this,e);if(i)o.startPoint=r.getEndCenter("source"),o.endPoint=r.getEndCenter("target");else{var a=o.controlPoints||r.getControlPointsByCenter(o);o.startPoint=r.getLinkPoint("source",e,a),o.endPoint=r.getLinkPoint("target",e,a)}return o.sourceNode=r.get("sourceNode"),o.targetNode=r.get("targetNode"),o},e.prototype.getModel=function(){var t=this.get("model"),e=this.get("source".concat(Fs)),n=this.get("target".concat(Fs));return e?delete t["source".concat(Fs)]:t.source=this.get("start".concat(Bs)),n?delete t["target".concat(Fs)]:t.target=this.get("end".concat(Bs)),(0,x.isString)(t.source)||(0,x.isPlainObject)(t.source)||(t.source=t.source.getID()),(0,x.isString)(t.target)||(0,x.isPlainObject)(t.target)||(t.target=t.target.getID()),t},e.prototype.setSource=function(t){this.setEnd("source",t),this.set("source",t)},e.prototype.setTarget=function(t){this.setEnd("target",t),this.set("target",t)},e.prototype.getSource=function(){return this.get("source")},e.prototype.getTarget=function(){return this.get("target")},e.prototype.updatePosition=function(){return!1},e.prototype.update=function(t,e){void 0===e&&(e=void 0);var n=this.get("model"),r=n.visible,i=t.visible;r!==i&&void 0!==i&&this.changeVisibility(i);var o=this.get("source"),a=this.get("target");if(o&&!o.destroyed&&a&&!a.destroyed){var s=this.get("styles");if(t.stateStyles){var u=t.stateStyles;(0,x.mix)(s,u),delete t.stateStyles}Object.assign(n,t),this.updateShape(e),this.afterUpdate(),this.clearCache()}},e.prototype.destroy=function(){var e=this.get("source".concat(Fs)),n=this.get("target".concat(Fs));e&&!e.destroyed&&e.removeEdge(this),n&&!n.destroyed&&n.removeEdge(this),t.prototype.destroy.call(this)},e}(Ds);const js=Us;var Vs="anchorPointsCache",Hs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,b.__extends)(e,t),e.prototype.getNearestPoint=function(t,e){for(var n=0,r=t[0],i=me(t[0],e),o=0;o-1&&e.splice(n,1)},e.prototype.clearCache=function(){this.set("bboxCache",null),this.set(Vs,null)},e.prototype.getUpdateType=function(t){var e,n,r,i,o;if(t){var a=!(0,x.isNil)(t.x),s=!(0,x.isNil)(t.y),u=Object.keys(t);return 1===u.length&&(a||s)||2===u.length&&a&&s?"move":(0,x.isNumber)(t.x)||(0,x.isNumber)(t.y)||t.type||t.anchorPoints||t.size||(null==t?void 0:t.style)&&((null===(e=null==t?void 0:t.style)||void 0===e?void 0:e.r)||(null===(n=null==t?void 0:t.style)||void 0===n?void 0:n.width)||(null===(r=null==t?void 0:t.style)||void 0===r?void 0:r.height)||(null===(i=null==t?void 0:t.style)||void 0===i?void 0:i.rx)||(null===(o=null==t?void 0:t.style)||void 0===o?void 0:o.ry))?"bbox|label":u.includes("label")||u.includes("labelCfg")?"style|label":"style"}},e.prototype.setState=function(e,n){var r=this;this.optimize?t.prototype.setState.call(this,e,n):this.runWithBBoxAffected((function(){return t.prototype.setState.call(r,e,n)}))},e.prototype.clearStates=function(e){var n=this;this.optimize?t.prototype.clearStates.call(this,e):this.runWithBBoxAffected((function(){return t.prototype.clearStates.call(n,e)}))},e.prototype.runWithBBoxAffected=function(t){var e=["r","width","height","rx","ry","lineWidth"],n=this.getKeyShape().attr(),r={};Object.keys(this.getKeyShape().attr()).forEach((function(t){e.includes(t)&&(r[t]=n[t])})),t();for(var i=this.getKeyShape().attr(),o=0;o-1&&(e.splice(n,1),!0)}},e.prototype.removeNode=function(t){if(t){var e=this.getNodes(),n=e.indexOf(t);return n>-1&&(e.splice(n,1),!0)}},e.prototype.getUpdateType=function(t){},e.prototype.getBBox=function(){return this.set(Xs,null),this.calculateCanvasBBox()},e.prototype.clearCache=function(){this.set(Ws,null),this.set(Xs,null),this.set(qs,null)},e.prototype.destroy=function(){if(!this.destroyed){var t=this.get("animate"),e=this.get("group");t&&e.stopAnimate(),e.shapeMap={},this.clearCache(),this.set(Ys,null),this.set("bbox",null),e.remove(),this._cfg=null,this.destroyed=!0}},e}(Gs);const Ks=$s;var Zs="node",Qs="edge",Js="vedge",tu="combo",eu="Mapper",nu="stateStyles",ru=function(){function t(t){var e=this;this.edgeToBeUpdateMap={},this.throttleRefresh=(0,x.throttle)((function(t){var n=e.graph;if(n&&!n.get("destroyed")){var r=e.edgeToBeUpdateMap;if(r){var i=Object.values(r);i.length&&(i.forEach((function(t){var e=t.edge;if(e&&!e.destroyed){var n=e.getSource(),r=e.getTarget();n&&!n.destroyed&&r&&!r.destroyed&&e.refresh(t.updateType)}})),e.edgeToBeUpdateMap={})}}}),16,{trailing:!0,leading:!0}),this.graph=t,this.destroyed=!1}return t.prototype.addItem=function(t,e){var n=this.graph,r=t===Js?Qs:t,i=n.get("".concat(r,"Group"))||n.get("group"),o=(0,x.upperFirst)(r),a=null,s=n.get(r+(0,x.upperFirst)(nu))||{},u=n.get("default"+o);e[nu]&&(s=e[nu]),u&&(0,x.each)(u,(function(t,n){(0,x.isObject)(t)&&!(0,x.isArray)(t)?e[n]=(0,x.deepMix)({},t,e[n]):(0,x.isArray)(t)?e[n]=e[n]||(0,x.clone)(u[n]):e[n]=e[n]||u[n]}));var l=n.get(r+eu);if(l){var c=l(e);c[nu]&&(s=c[nu],delete c[nu]),(0,x.each)(c,(function(t,n){(0,x.isObject)(t)&&!(0,x.isArray)(t)?e[n]=(0,x.deepMix)({},e[n],t):e[n]=c[n]||e[n]}))}if(n.emit("beforeadditem",{type:t,model:e}),t===Qs||t===Js){var h=void 0,d=void 0;if(h=e.source,d=e.target,h&&(0,x.isString)(h)&&(h=n.findById(h)),d&&(0,x.isString)(d)&&(d=n.findById(d)),!h||!d)return void console.warn("The source or target node of edge ".concat(e.id," does not exist!"));h.getType&&"combo"===h.getType()&&(e.isComboEdge=!0),d.getType&&"combo"===d.getType()&&(e.isComboEdge=!0),a=new js({model:e,source:h,target:d,styles:s,linkCenter:n.get("linkCenter"),group:i.addGroup()})}else if(t===Zs)a=new Gs({model:e,styles:s,group:i.addGroup()});else if(t===tu){var f=e.children,p=gn(f,n),m=void 0,g=void 0;if(isNaN(p.x)?isNaN(e.x)&&(m=100*Math.random()):m=p.x,isNaN(p.y)?isNaN(e.y)&&(g=100*Math.random()):g=p.y,isNaN(e.x)||isNaN(e.y))e.x=m,e.y=g;else{var v=e.x-m,y=e.y-g;this.updateComboSucceeds(e.id,v,y,f)}var b=i.addGroup();b.setZIndex(e.depth),a=new Ks({model:e,styles:s,animate:n.get("animate"),bbox:e.collapsed?gn([],n):p,group:b}),e.collapsed||"circle"!==a.getKeyShape().get("type")||(p.width=Math.hypot(p.height,p.width),p.height=p.width,a.set("bbox",p),a.refresh());var w=a.getModel();(f||[]).forEach((function(t){var e=n.findById(t.id);a.addChild(e),t.depth=w.depth+2}))}if(a)return a.setOptimize(n.getNodes().length>n.get("optimizeThreshold")),n.get("".concat(t,"s")).push(a),n.get("itemMap")[a.get("id")]=a,n.emit("afteradditem",{item:a,model:e}),a},t.prototype.updateItem=function(t,e){var n,r,i=this,o=this.graph;if((0,x.isString)(t)&&(t=o.findById(t)),t&&!t.destroyed){var a="";t.getType&&(a=t.getType());var s=o.get(a+eu),u=t.getModel(),l=u.x,c=u.y,h=t.getUpdateType(e);if(s){var d=s((0,x.deepMix)({},u,e)),f=(0,x.deepMix)({},u,d,e);d[nu]&&(t.set("styles",f[nu]),delete f[nu]),(0,x.each)(f,(function(t,n){e[n]=t}))}else(0,x.each)(e,(function(t,n){u[n]&&(0,x.isObject)(t)&&!(0,x.isArray)(t)&&(e[n]=(0,b.__assign)((0,b.__assign)({},u[n]),e[n]))}));if(o.emit("beforeupdateitem",{item:t,cfg:e}),a===Qs){if(e.source){var p=e.source;(0,x.isString)(p)&&(p=o.findById(p)),t.setSource(p)}if(e.target){var m=e.target;(0,x.isString)(m)&&(m=o.findById(m)),t.setTarget(m)}t.update(e)}else if(a===Zs){t.update(e,h);var g=t.getEdges();"move"===h?(0,x.each)(g,(function(t){i.edgeToBeUpdateMap[t.getID()]={edge:t,updateType:h},i.throttleRefresh()})):(null==h?void 0:h.includes("bbox"))&&(0,x.each)(g,(function(t){t.refresh(h)}))}else if(a===tu){if(t.update(e,h),!isNaN(e.x)||!isNaN(e.y)){var v=e.x-l||0,y=e.y-c||0;this.updateComboSucceeds(u.id,v,y)}var w=t.getEdges();if(((null==h?void 0:h.includes("bbox"))||"move"===h)&&a===tu){var _=t.get("shapeFactory"),S=u.type||"circle";(void 0===u.animate||void 0===e.animate?null===(r=null===(n=_[S])||void 0===n?void 0:n.options)||void 0===r?void 0:r.animate:u.animate||e.animate)?setTimeout((function(){if(t&&!t.destroyed){var e=t.getKeyShape();e&&!e.destroyed&&(0,x.each)(w,(function(t){t&&!t.destroyed&&t.refresh()}))}}),201):(0,x.each)(w,(function(t){t.refresh()}))}}t.setOptimize(o.getNodes().length>o.get("optimizeThreshold")),o.emit("afterupdateitem",{item:t,cfg:e})}},t.prototype.updateCombo=function(t,e,n){var r,i,o=this,a=this.graph;if((0,x.isString)(t)&&(t=a.findById(t)),t&&!t.destroyed){var s=t.getModel(),u=gn(e,a,t),l=u.x,c=u.y;t.set("bbox",u);var h=l,d=c;n?(h=isNaN(s.x)?l:s.x,d=isNaN(s.y)?c:s.y):(h=isNaN(l)?s.x:l,d=isNaN(c)?s.y:c),t.update({x:h,y:d});var f=t.get("shapeFactory"),p=s.type||"circle";(void 0===s.animate?null===(i=null===(r=f[p])||void 0===r?void 0:r.options)||void 0===i?void 0:i.animate:s.animate)?setTimeout((function(){if(t&&!t.destroyed){var e=t.getKeyShape();e&&!e.destroyed&&(t.getShapeCfg(s),o.updateComboEdges(t))}}),201):this.updateComboEdges(t)}},t.prototype.updateComboEdges=function(t){for(var e,n,r=t.getEdges()||[],i=0;i-1&&o.splice(a,1),i===Qs){var s=n.get("v".concat(i,"s")),u=s.indexOf(t);u>-1&&s.splice(u,1)}var l=t.get("id");delete n.get("itemMap")[l];var c=n.get("comboTrees"),h=t.get("id");if(i===Zs){var d=t.getModel().comboId;if(c&&d){var f=c,p=!1;c.forEach((function(t){p||ln(t,(function(t){if(t.id===h&&f){var e=f.indexOf(t);return f.splice(e,1),p=!0,!1}return f=t.children,!0}))}))}for(var m=(b=t.getEdges()).length-1;m>=0;m--)n.removeItem(b[m],!1);d&&n.updateCombo(d)}else if(i===tu){var g,v=t.getModel().parentId,y=!1;(c||[]).forEach((function(t){y||ln(t,(function(t){return t.id!==h||(g=t,y=!0,!1)}))})),g.removed=!0,g&&g.children&&g.children.forEach((function(t){e.removeItem(t.id)}));var b;for(m=(b=t.getEdges()).length;m>=0;m--)n.removeItem(b[m],!1);v&&n.updateCombo(v)}t.destroy(),n.emit("afterremoveitem",{item:r,type:i})}},t.prototype.setItemState=function(t,e,n){var r=this.graph,i=e;(0,x.isString)(n)&&(i="".concat(e,":").concat(n)),t.hasState(i)===n&&n||(0,x.isString)(n)&&t.hasState(i)||(r.emit("beforeitemstatechange",{item:t,state:i,enabled:n}),t.setState(e,n),r.autoPaint(),r.emit("afteritemstatechange",{item:t,state:i,enabled:n}))},t.prototype.priorityState=function(t,e){var n=this.graph,r=t;(0,x.isString)(t)&&(r=n.findById(t)),this.setItemState(r,e,!1),this.setItemState(r,e,!0)},t.prototype.clearItemStates=function(t,e){var n=this.graph;(0,x.isString)(t)&&(t=n.findById(t)),n.emit("beforeitemstatesclear",{item:t,states:e}),t.clearStates(e),n.emit("afteritemstatesclear",{item:t,states:e})},t.prototype.refreshItem=function(t){var e=this.graph;(0,x.isString)(t)&&(t=e.findById(t)),e.emit("beforeitemrefresh",{item:t}),t.refresh(),e.emit("afteritemrefresh",{item:t})},t.prototype.addCombos=function(t,e){var n=this,r=this.graph;(t||[]).forEach((function(t){cn(t,(function(t){var r;return e.forEach((function(e){e.id===t.id&&(e.children=t.children,e.depth=t.depth,r=e)})),r&&n.addItem("combo",r),!0}))}));var i=r.get("comboGroup");i&&i.sort()},t.prototype.changeItemVisibility=function(t,e){var n=this,r=this.graph;if((0,x.isString)(t)&&(t=r.findById(t)),t){if(r.emit("beforeitemvisibilitychange",{item:t,visible:e}),t.changeVisibility(e),t.getType&&t.getType()===Zs){var i=t.getEdges();(0,x.each)(i,(function(t){(!e||t.get("source").isVisible()&&t.get("target").isVisible())&&n.changeItemVisibility(t,e)}))}else if(t.getType&&t.getType()===tu){var o=r.get("comboTrees"),a=t.get("id"),s=[],u=!1;(o||[]).forEach((function(t){u||t.children&&0!==t.children.length&&ln(t,(function(t){return t.id!==a||(s=t.children,u=!0,!1)}))})),s&&(!e||e&&!t.getModel().collapsed)&&s.forEach((function(t){var i=r.findById(t.id);n.changeItemVisibility(i,e)}));i=t.getEdges();(0,x.each)(i,(function(t){(!e||t.get("source").isVisible()&&t.get("target").isVisible())&&n.changeItemVisibility(t,e)}))}return r.emit("afteritemvisibilitychange",{item:t,visible:e}),t}console.warn("The item to be shown or hidden does not exist!")},t.prototype.destroy=function(){this.graph=null,this.destroyed=!0},t}();const iu=ru;var ou=function(){function t(t){this.graph=t,this.destroyed=!1}return t.prototype.updateState=function(t,e,n){var r=this.graph.get("states"),i=e;(0,x.isString)(n)&&(i="".concat(e,":").concat(n)),r[i]||(r[i]=[]),n?r[i].push(t):r[i]=r[i].filter((function(e){return e!==t})),this.graph.set("states",r),this.graph.emit("graphstatechange",{states:r})},t.prototype.updateStates=function(t,e,n){var r=this.graph.get("states");((0,x.isString)(e)?[e]:e).forEach((function(e){var i=e;r[i]||(r[i]=[]),(0,x.isString)(n)&&(i="".concat(e,":").concat(n)),n?r[i].push(t):r[i]=r[i].filter((function(e){return e!==t}))})),this.graph.set("states",r),this.graph.emit("graphstatechange",{states:e})},t.prototype.destroy=function(){this.graph=null,this.destroyed=!0},t}();const au=ou;var su=function(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,(function(t,n){if("\\"===t.charAt(0))return t.slice(1);var r=e[n];return 0===r&&(r="0"),r||""})):t},uu=function(t){var e=[];if(t.length<2)throw new Error("point length must largn than 2, now it's ".concat(t.length));for(var n=0,r=t;n0?s-1:o-1,l=ie.normalize([0,0],ie.add([0,0],a[u].v,ie.scale([0,0],a[s].v,-1)));a[s].p=ie.add([0,0],a[s].p,ie.scale([0,0],l,e))}return a.map((function(t){var e=t.p;return{x:e[0],y:e[1]}}))}var yu=function(t,e){for(var n=[],r=0;r<5;r++){var i=Math.cos((18+72*r)/180*Math.PI)*t,o=Math.sin((18+72*r)/180*Math.PI)*t,a=Math.cos((54+72*r)/180*Math.PI)*e,s=Math.sin((54+72*r)/180*Math.PI)*e;0===r?n.push(["M",i,-o]):n.push(["L",i,-o]),n.push(["L",a,-s])}return n.push(["Z"]),n},bu=function(t,e,n){return(t.y-n.y)*(e.x-n.x)-(t.x-n.x)*(e.y-n.y)},xu=function(t){var e=t.map((function(t){return{x:t.getModel().x,y:t.getModel().y}}));e.sort((function(t,e){return t.x===e.x?t.y-e.y:t.x-e.x}));for(var n={},r=e.length-1;r>=0;r--){var i=e[r],o=i.x,a=i.y;n["".concat(o,"-").concat(a)]&&e.splice(r,1),n["".concat(o,"-").concat(a)]=!0}if(1===e.length)return e;var s=[];for(r=0;r=2&&bu(s[s.length-2],s[s.length-1],e[r])<=0;)s.pop();s.push(e[r])}var u=[];for(r=e.length-1;r>=0;r--){for(;u.length>=2&&bu(u[u.length-2],u[u.length-1],e[r])<=0;)u.pop();u.push(e[r])}return u.pop(),s.pop(),s.concat(u)},wu={maxRoutingIterations:100,maxMarchingIterations:100,pixelGroupSize:2,edgeR0:10,edgeR1:10,nodeR0:5,nodeR1:10,morphBuffer:5,threshold:.001,skip:16,nodeInfluenceFactor:1,edgeInfluenceFactor:1,negativeNodeInfluenceFactor:-.5};function _u(t,e,n){var r=!1,i=function(t,n){return e.cells[t+n*e.width]},o=function(t,e){var r=0;return i(t-1,e-1)>=n&&(r+=1),i(t,e-1)>n&&(r+=2),i(t-1,e)>n&&(r+=4),i(t,e)>n&&(r+=8),r},a=function(n,r){for(var i,a,s=n,u=r,l=0;l-1){if(t[0].x===s&&t[0].y===u)return!0}else t.push({x:s,y:u});var c=o(s,u);switch(c){case-1:return console.warn("Marched out of bounds"),!0;case 0:case 3:case 2:case 7:s++;break;case 12:case 14:case 4:s--;break;case 6:0===i&&(-1===a?s-=1:s+=1);break;case 1:case 13:case 5:u--;break;case 9:1===i&&(0===a?u-=1:u+=1);break;case 10:case 8:case 11:u++;break;default:return console.warn("Marching squares invalid state: ".concat(c)),!0}}};this.march=function(){for(var t=0;tn&&15!==o(t,s)&&(r=a(t,s));return r}}var Su=function(t,e){var n=Number.POSITIVE_INFINITY,r=null;return t.forEach((function(t){var i=Pe(t,e);i>=0&&i0?t+1:t}),0);s*Math.pow(l+1,2)=1;)d=Cu(n,c/=1.5,h,s),f=u(d,o)||u(d,i),p=l(d,e);!d||f||s&&p||(o.push(new Te(t.x1,t.y1,d.x,d.y)),o.push(new Te(d.x,d.y,t.x2,t.y2)),a=!0)};d(!0),a||d(!1)}}a||i.push(t),s+=1};!a&&o.length;)c()}for(;o.length;)i.push(o.pop());return i}(new Te(t.getModel().x,t.getModel().y,o.getModel().x,o.getModel().y),e,r,i),s=function(t){for(var n=[];t.length>0;){var r=t.pop();if(0===t.length){n.push(r);break}var i=t.pop(),o=new Te(r.x1,r.y1,i.x2,i.y2);Su(e,o)?(n.push(r),t.push(i)):t.push(o)}return n}(a);return s}var Au=function(t,e,n){var r=Object.assign(wu,n),i=Oe(t.map((function(t){return{x:t.getModel().x,y:t.getModel().y}})));t=t.sort((function(t,e){return Le({x:t.getModel().x,y:t.getModel().y},i)-Le({x:e.getModel().x,y:e.getModel().y},i)}));var o=[],a=[];t.forEach((function(t){Eu(t,e,o,r.maxRoutingIterations,r.morphBuffer).forEach((function(t){a.push(t)})),o.push(t)}));for(var s,u,l,c,h,d=function(t,e,n){var r={minX:Number.POSITIVE_INFINITY,minY:Number.POSITIVE_INFINITY,maxX:Number.NEGATIVE_INFINITY,maxY:Number.NEGATIVE_INFINITY,width:0,height:0,x:0,y:0},i=[];t.forEach((function(t){i.push(t.getBBox())})),e.forEach((function(t){i.push(t.getBBox())}));for(var o=0,a=i;or.maxX?s.maxX:r.maxX)+n,r.maxY=(s.maxY>r.maxY?s.maxY:r.maxY)+n}return r.width=r.maxX-r.minX,r.height=r.maxY-r.minY,r.x=r.minX,r.y=r.minY,r}(t,a,r.nodeR0),f=(s=d.width,u=d.height,l=r.pixelGroupSize,c=Math.ceil(s/l),h=Math.ceil(u/l),{cells:new Float32Array(Math.max(0,c*h)).fill(0),width:c,height:h}),p=[],m=[],g=0;g1)for(y=Math.floor(v.length/r.skip);y<3&&r.skip>1;)r.skip-=1,y=Math.floor(v.length/r.skip);for(var b=0,x=0;x0))break;r.nonMemberInfluenceFactor*=.8}}return m};function Mu(t,e,n,r,i,o){function a(t,e){var n=Math.floor((t-e)/o.pixelGroupSize);return n<0?0:n}function s(t,e){return t*o.pixelGroupSize+e}var u=(o.nodeR0-o.nodeR1)*(o.nodeR0-o.nodeR1),l=(o.edgeR0-o.edgeR1)*(o.edgeR0-o.edgeR1),c=function(t,e){return[Math.min(a(t.minX,e+r.minX),i.width),Math.min(a(t.minY,e+r.minY),i.height),Math.min(a(t.maxX,-e+r.minX),i.width),Math.min(a(t.maxY,-e+r.minY),i.height)]},h=function(t,e){for(var n=t.getBBox(),a=c(n,o.nodeR1),u=a[0],l=a[1],h=a[2],d=a[3],f=l;fu.y?r?l.topLeft:l.bottomRight:r?l.topRight:l.bottomLeft:a.ys.x?r?l.topLeft:l.bottomRight:r?l.bottomLeft:l.topRight:o.x0?this.cfg.padding+t:10+t,this.cfg.bubbleCfg={nodeR0:this.padding-t,nodeR1:this.padding-t,morphBuffer:this.padding-t}},t.prototype.setType=function(){this.type=this.cfg.type,this.members.length<3&&(this.type="round-convex"),"round-convex"!==this.type&&"smooth-convex"!==this.type&&"bubble"!==this.type&&(console.warn("The hull type should be either round-convex, smooth-convex or bubble, round-convex is used by default."),this.type="round-convex")},t.prototype.calcPath=function(t,e){var n,r,i;switch(this.type){case"round-convex":r=Za(i=gu((n=xu(t)).map((function(t){return[t.x,t.y]})),this.padding));break;case"smooth-convex":2===(n=xu(t)).length?r=Za(i=gu(n.map((function(t){return[t.x,t.y]})),this.padding)):n.length>2&&(i=vu(n.map((function(t){return[t.x,t.y]})),this.padding),r=du(i));break;case"bubble":r=(n=Au(t,e,this.cfg.bubbleCfg)).length>=2&&du(n)}return r},t.prototype.render=function(){this.group.addShape("path",{attrs:(0,b.__assign)({path:this.path},this.cfg.style),id:this.id,name:this.cfg.id,capture:!1}),this.group.toBack()},t.prototype.addMember=function(t){if(t){(0,x.isString)(t)&&(t=this.graph.findById(t)),this.members.push(t);var e=this.nonMembers.indexOf(t);return e>-1&&this.nonMembers.splice(e,1),this.updateData(this.members,this.nonMembers),!0}},t.prototype.addNonMember=function(t){if(t){(0,x.isString)(t)&&(t=this.graph.findById(t)),this.nonMembers.push(t);var e=this.members.indexOf(t);return e>-1&&this.members.splice(e,1),this.updateData(this.members,this.nonMembers),!0}},t.prototype.removeMember=function(t){if(t){(0,x.isString)(t)&&(t=this.graph.findById(t));var e=this.members.indexOf(t);return e>-1&&(this.members.splice(e,1),this.updateData(this.members,this.nonMembers),!0)}},t.prototype.removeNonMember=function(t){if(t){(0,x.isString)(t)&&(t=this.graph.findById(t));var e=this.nonMembers.indexOf(t);return e>-1&&(this.nonMembers.splice(e,1),this.updateData(this.members,this.nonMembers),!0)}},t.prototype.updateData=function(t,e){var n=this;this.group.findById(this.id).remove(),t&&(this.members=t.map((function(t){return(0,x.isString)(t)?n.graph.findById(t):t}))),e&&(this.nonMembers=e.map((function(t){return(0,x.isString)(t)?n.graph.findById(t):t}))),this.path=this.calcPath(this.members,this.nonMembers),this.render()},t.prototype.updateStyle=function(t){this.group.findById(this.id).attr((0,b.__assign)({},t))},t.prototype.updateCfg=function(t){var e=this;this.cfg=(0,x.deepMix)(this.cfg,t),this.id=this.cfg.id,this.group=this.cfg.group,t.members&&(this.members=this.cfg.members.map((function(t){return(0,x.isString)(t)?e.graph.findById(t):t}))),t.nonMembers&&(this.nonMembers=this.cfg.nonMembers.map((function(t){return(0,x.isString)(t)?e.graph.findById(t):t}))),this.setPadding(),this.setType(),this.path=this.calcPath(this.members,this.nonMembers),this.render()},t.prototype.contain=function(t){var e,n,r=this,i=(e=(0,x.isString)(t)?this.graph.findById(t):t).getKeyShape();if("path"===e.get("type"))n=hu(i.attr("path"));else{var o=i.getCanvasBBox();n=[[o.minX,o.minY],[o.maxX,o.minY],[o.maxX,o.maxY],[o.minX,o.maxY]]}return n=n.map((function(t){var e=r.graph.getPointByCanvas(t[0],t[1]);return[e.x,e.y]})),Ce(n,hu(this.path))},t.prototype.destroy=function(){this.group.remove(),this.cfg=null},t}();const ku=Tu;var Iu=N,Nu=function(t){function e(e){var n=t.call(this)||this;return n.sortCombos=(0,x.debounce)((function(){var t=n.get("comboSorted");if(n&&!n.destroyed&&!t){n.set("comboSorted",!0);var e=[],r={};(n.get("comboTrees")||[]).forEach((function(t){ln(t,(function(t){return e[t.depth]?e[t.depth].push(t.id):e[t.depth]=[t.id],r[t.id]=t.depth,!0}))})),(n.getEdges().concat(n.get("vedges"))||[]).forEach((function(t){var n=t.getModel(),i=r[n.source]||0,o=r[n.target]||0,a=Math.max(i,o);e[a]?e[a].push(n.id):e[a]=[n.id]})),e.forEach((function(t){if(t&&t.length)for(var e=t.length-1;e>=0;e--){var r=n.findById(t[e]);r&&r.toFront()}}))}}),500,!1),n.cfg=(0,x.deepMix)(n.getDefaultCfg(),e),n.init(),n.animating=!1,n.destroyed=!1,n.cfg.enabledStack&&(n.undoStack=new te(n.cfg.maxStep),n.redoStack=new te(n.cfg.maxStep)),n}return(0,b.__extends)(e,t),e.prototype.init=function(){this.initCanvas();var t=new bs(this),e=new _n(this),n=new iu(this),r=new au(this);this.set({viewController:t,modeController:e,itemController:n,stateController:r}),this.initLayoutController(),this.initEventController(),this.initGroups(),this.initPlugins()},e.prototype.initGroups=function(){var t=this.get("canvas");if(t){var e=(t.get("el")||{}).id,n=void 0===e?"g6":e,r=t.addGroup({id:"".concat(n,"-root"),className:Ke.rootContainerClassName});if(this.get("groupByTypes")){var i=r.addGroup({id:"".concat(n,"-edge"),className:Ke.edgeContainerClassName}),o=r.addGroup({id:"".concat(n,"-node"),className:Ke.nodeContainerClassName}),a=r.addGroup({id:"".concat(n,"-combo"),className:Ke.comboContainerClassName});a.toBack(),this.set({nodeGroup:o,edgeGroup:i,comboGroup:a})}var s=r.addGroup({id:"".concat(n,"-delegate"),className:Ke.delegateContainerClassName});this.set({delegateGroup:s}),this.set("group",r)}},e.prototype.getDefaultCfg=function(){return{container:void 0,width:void 0,height:void 0,renderer:"canvas",modes:{},plugins:[],data:{},fitViewPadding:10,minZoom:.02,maxZoom:10,event:!0,groupByTypes:!0,directed:!1,autoPaint:!0,nodes:[],edges:[],combos:[],vedges:[],itemMap:{},linkCenter:!1,defaultNode:{},defaultEdge:{},nodeStateStyles:{},edgeStateStyles:{},states:{},animate:!1,animateCfg:{onFrame:void 0,duration:500,easing:"easeLinear"},callback:void 0,enabledStack:!1,maxStep:10,tooltips:[],optimizeThreshold:1e3}},e.prototype.set=function(t,e){return(0,x.isPlainObject)(t)?this.cfg=(0,b.__assign)((0,b.__assign)({},this.cfg),t):this.cfg[t]=e,"enabledStack"!==t||!e||this.undoStack||this.redoStack||(this.undoStack=new te(this.cfg.maxStep),this.redoStack=new te(this.cfg.maxStep)),this},e.prototype.get=function(t){var e;return null===(e=this.cfg)||void 0===e?void 0:e[t]},e.prototype.getGroup=function(){return this.get("group")},e.prototype.getContainer=function(){return this.get("container")},e.prototype.getMinZoom=function(){return this.get("minZoom")},e.prototype.setMinZoom=function(t){return this.set("minZoom",t)},e.prototype.getMaxZoom=function(){return this.get("maxZoom")},e.prototype.setMaxZoom=function(t){return this.set("maxZoom",t)},e.prototype.getWidth=function(){return this.get("width")},e.prototype.getHeight=function(){return this.get("height")},e.prototype.clearItemStates=function(t,e){(0,x.isString)(t)&&(t=this.findById(t));var n=this.get("itemController");e||(e=t.get("states")),n.clearItemStates(t,e),this.get("stateController").updateStates(t,e,!1)},e.prototype.node=function(t){"function"==typeof t&&this.set("nodeMapper",t)},e.prototype.edge=function(t){"function"==typeof t&&this.set("edgeMapper",t)},e.prototype.combo=function(t){"function"==typeof t&&this.set("comboMapper",t)},e.prototype.findById=function(t){return this.get("itemMap")[t]},e.prototype.find=function(t,e){var n,r=this.get("".concat(t,"s"));return(0,x.each)(r,(function(t,r){if(e(t,r))return n=t})),n},e.prototype.findAll=function(t,e){var n=[];return(0,x.each)(this.get("".concat(t,"s")),(function(t,r){e(t,r)&&n.push(t)})),n},e.prototype.findAllByState=function(t,e,n){return n?this.findAll(t,(function(t){return t.hasState(e)&&n(t)})):this.findAll(t,(function(t){return t.hasState(e)}))},e.prototype.translate=function(t,e,n,r){var i=this,o=this.get("group"),a=(0,x.clone)(o.getMatrix());if(a||(a=[1,0,0,0,1,0,0,0,1]),n){var s=bn({animateCfg:r,callback:function(){return i.emit("viewportchange",{action:"translate",matrix:o.getMatrix()})}});xe(o,{x:o.getCanvasBBox().x+t,y:o.getCanvasBBox().y+e},n,s||{duration:500,easing:"easeCubic"})}else a=Iu(a,[["t",t,e]]),o.setMatrix(a),this.emit("viewportchange",{action:"translate",matrix:a}),this.autoPaint()},e.prototype.moveTo=function(t,e,n,r){var i=this.get("group");xe(i,{x:t,y:e},n,r||{duration:500,easing:"easeCubic"}),this.emit("viewportchange",{action:"move",matrix:i.getMatrix()})},e.prototype.fitView=function(t,e,n,r){t&&this.set("fitViewPadding",t);var i=this.get("viewController");e?i.fitViewByRules(e,n,r):i.fitView(n,r),this.autoPaint()},e.prototype.fitCenter=function(t,e){this.get("viewController").fitCenter(t,e),this.autoPaint()},e.prototype.addBehaviors=function(t,e){return this.get("modeController").manipulateBehaviors(t,e,!0),this},e.prototype.removeBehaviors=function(t,e){return this.get("modeController").manipulateBehaviors(t,e,!1),this},e.prototype.updateBehavior=function(t,e,n){return this.get("modeController").updateBehavior(t,e,n),this},e.prototype.zoom=function(t,e,n,r){var i=this,o=this.get("group"),a=(0,x.clone)(o.getMatrix())||[1,0,0,0,1,0,0,0,1],s=this.get("minZoom"),u=this.get("maxZoom"),l=this.getZoom()||1,c=l*t,h=t,d=!1;if(s&&cu&&(h=u/l,d=!0),a=Iu(a,e?[["t",-e.x,-e.y],["s",h,h],["t",e.x,e.y]]:[["s",h,h]]),n){var f=(0,x.clone)(o.getMatrix());f||(f=[1,0,0,0,1,0,0,0,1]);var p=f[0],m=p*h,g=bn({animateCfg:r,callback:function(){return i.emit("viewportchange",{action:"zoom",matrix:o.getMatrix()})}});o.animate((function(t){if(1===t)f=a;else{var n=Be(p,m,t)/f[0];f=Iu(f,e?[["t",-e.x,-e.y],["s",n,n],["t",e.x,e.y]]:[["s",n,n]])}return{matrix:f}}),g)}else o.setMatrix(a),this.emit("viewportchange",{action:"zoom",matrix:a}),this.autoPaint();return!d},e.prototype.zoomTo=function(t,e,n,r){var i=t/this.getZoom();return this.zoom(i,e,n,r)},e.prototype.focusItem=function(t,e,n){var r=this.get("viewController"),i=!1;e?i=!0:void 0===e&&(i=this.get("animate"));var o={};n?o=n:void 0===n&&(o=this.get("animateCfg")),r.focus(t,i,o),this.autoPaint()},e.prototype.focusItems=function(t,e,n,r){this.get("viewController").focusItems(t,e,n,r)},e.prototype.autoPaint=function(){this.get("autoPaint")&&this.paint()},e.prototype.paint=function(){this.emit("beforepaint"),this.get("canvas").draw(),this.emit("afterpaint")},e.prototype.getPointByClient=function(t,e){return this.get("viewController").getPointByClient(t,e)},e.prototype.getClientByPoint=function(t,e){return this.get("viewController").getClientByPoint(t,e)},e.prototype.getPointByCanvas=function(t,e){return this.get("viewController").getPointByCanvas(t,e)},e.prototype.getCanvasByPoint=function(t,e){return this.get("viewController").getCanvasByPoint(t,e)},e.prototype.getGraphCenterPoint=function(){var t=this.get("group").getCanvasBBox();return{x:(t.minX+t.maxX)/2,y:(t.minY+t.maxY)/2}},e.prototype.getViewPortCenterPoint=function(){return this.getPointByCanvas(this.get("width")/2,this.get("height")/2)},e.prototype.showItem=function(t,e){void 0===e&&(e=!0);var n=this.get("itemController").changeItemVisibility(t,!0);if(e&&this.get("enabledStack")){var r=n.getID(),i={},o={};switch(n.getType()){case"node":i.nodes=[{id:r,visible:!1}],o.nodes=[{id:r,visible:!0}];break;case"edge":i.nodes=[{id:r,visible:!1}],o.edges=[{id:r,visible:!0}];break;case"combo":i.nodes=[{id:r,visible:!1}],o.combos=[{id:r,visible:!0}]}this.pushStack("visible",{before:i,after:o})}},e.prototype.hideItem=function(t,e){void 0===e&&(e=!0);var n=this.get("itemController").changeItemVisibility(t,!1);if(e&&this.get("enabledStack")){var r=n.getID(),i={},o={};switch(n.getType()){case"node":i.nodes=[{id:r,visible:!0}],o.nodes=[{id:r,visible:!1}];break;case"edge":i.nodes=[{id:r,visible:!0}],o.edges=[{id:r,visible:!1}];break;case"combo":i.nodes=[{id:r,visible:!0}],o.combos=[{id:r,visible:!1}]}this.pushStack("visible",{before:i,after:o})}},e.prototype.refreshItem=function(t){this.get("itemController").refreshItem(t)},e.prototype.setAutoPaint=function(t){this.set("autoPaint",t),this.get("canvas").set("autoDraw",t)},e.prototype.remove=function(t,e){void 0===e&&(e=!0),this.removeItem(t,e)},e.prototype.removeItem=function(t,e){void 0===e&&(e=!0);var n=t;if((0,x.isString)(t)&&(n=this.findById(t)),!n&&(0,x.isString)(t))console.warn("The item ".concat(t," to be removed does not exist!"));else if(n){var r="";if(n.getType&&(r=n.getType()),e&&this.get("enabledStack")){var i=(0,b.__assign)((0,b.__assign)({},n.getModel()),{itemType:r}),o={};switch(r){case"node":o.nodes=[i],o.edges=[];for(var a=n.getEdges(),s=a.length-1;s>=0;s--)o.edges.push((0,b.__assign)((0,b.__assign)({},a[s].getModel()),{itemType:"edge"}));break;case"edge":o.edges=[i];break;case"combo":o.combos=[i]}this.pushStack("delete",{before:o,after:{}})}if("node"===r)n.getModel().comboId&&this.updateComboTree(n,void 0,!1);if(this.get("itemController").removeItem(n),"combo"===r){var u=mn(this.get("comboTrees"));this.set("comboTrees",u)}}},e.prototype.innerAddItem=function(t,e,n){if(!function(t,e){if("node"===t||"combo"===t){if(e.id&&!(0,x.isString)(e.id))return console.warn("G6 Warning Tips: missing 'id' property, or the 'id' %c".concat(e.id,"%c is not a string."),"font-size: 20px; color: red;",""),!1}else if(!("edge"!==t||e.source&&e.target))return console.warn("G6 Warning Tips: missing 'source' or 'target' for the edge."),!1;return!0}(t,e))return!1;if(!e.id||!this.findById(e.id)){var r,i=this.get("comboTrees")||[];if("combo"===t){var o=this.get("itemMap"),a=!1;if(i.forEach((function(i){a||cn(i,(function(i){if(e.parentId===i.id){a=!0;var s=(0,b.__assign)({id:e.id,depth:i.depth+2},e);i.children?i.children.push(s):i.children=[s],e.depth=s.depth,r=n.addItem(t,e)}var u=o[i.id];return a&&u&&u.getType&&"combo"===u.getType()&&n.updateCombo(u,i.children),!0}))})),!a){var s=(0,b.__assign)({id:e.id,depth:0},e);e.depth=s.depth,i.push(s),r=n.addItem(t,e)}this.set("comboTrees",i),e.collapsed&&(this.collapseCombo(r,!1),this.updateCombo(r))}else if("node"===t&&(0,x.isString)(e.comboId)&&i){var u;(u=this.findById(e.comboId))&&u.getType&&"combo"!==u.getType()&&console.warn("'".concat(e.comboId,"' is not a id of a combo in the graph, the node will be added without combo.")),r=n.addItem(t,e);var l=this.get("itemMap"),c=!1,h=!1;i.forEach((function(t){h||c||cn(t,(function(t){if(t.id===e.id)return h=!0,!1;if(e.comboId===t.id&&!h){c=!0;var r=(0,x.clone)(e);r.itemType="node",t.children?t.children.push(r):t.children=[r],r.depth=t.depth+1}return c&&l[t.id].getType&&"combo"===l[t.id].getType()&&n.updateCombo(l[t.id],t.children),!0}))}))}else r=n.addItem(t,e);if("node"===t&&e.comboId||"combo"===t&&e.parentId)(u=this.findById(e.comboId||e.parentId))&&u.getType&&"combo"===u.getType()&&u.addChild(r);return r}console.warn("This item exists already. Be sure the id %c".concat(e.id,"%c is unique."),"font-size: 20px; color: red;","")},e.prototype.addItem=function(t,e,n,r){void 0===n&&(n=!0),void 0===r&&(r=!0);var i=this.get("comboSorted");this.set("comboSorted",i&&!r);var o=this.get("itemController"),a=this.innerAddItem(t,e,o);if(!1===a||!0===a)return a;var s=this.get("combos");if(s&&s.length>0&&this.sortCombos(),this.autoPaint(),n&&this.get("enabledStack")){var u=(0,b.__assign)((0,b.__assign)({},a.getModel()),{itemType:t}),l={};switch(t){case"node":l.nodes=[u];break;case"edge":l.edges=[u];break;case"combo":l.combos=[u]}this.pushStack("add",{before:{},after:l})}return a},e.prototype.addItems=function(t,e,n){void 0===t&&(t=[]),void 0===e&&(e=!0),void 0===n&&(n=!0);var r=this.get("comboSorted");this.set("comboSorted",r&&!n);for(var i=this.get("itemController"),o=[],a=0;a0&&this.sortCombos()}if(this.autoPaint(),e&&this.get("enabledStack")){var l={nodes:[],edges:[],combos:[]};for(a=0;a=0;f--)d[f].destroyed&&d.splice(f,1);c&&(i.addCombos(c),this.get("groupByTypes")||this.sortCombos()),this.diffItems("edge",l,o.edges),(0,x.each)(u,(function(t,e){(!t.getType||"node"!==t.getType()&&"combo"!==t.getType())&&l.edges.indexOf(t)<0&&(delete u[e],i.remove(t,!1))})),(this.get("comboTrees")||[]).forEach((function(t){cn(t,(function(t){return"combo"===r.findById(t.id).getType()&&t.collapsed&&r.collapseCombo(t.id,!1),!0}))})),this.set({nodes:l.nodes,edges:l.edges});var p=(this.get("layout")||{}).relayoutAtChangeData,m=void 0===p||p,g=this.get("layoutController");return m&&g&&(g.changeData((function(){setTimeout((function(){var t;null===(t=i.getCombos())||void 0===t||t.forEach((function(t){t.set("animate",!0)}))}),0)})),i.get("animate")&&!g.getLayoutType()?(i.positionsAnimate(),null===(n=i.getCombos())||void 0===n||n.forEach((function(t){return t.set("animate",!0)}))):i.autoPaint()),setTimeout((function(){a.set("localRefresh",s)}),16),this.set("data",o),this.emit("afterchangedata"),this},e.prototype.addCombos=function(t){var e=this.get("comboTrees");this.get("itemController").addCombos(e,t)},e.prototype.createCombo=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=this.get("itemController");this.set("comboSorted",!1);var o,a="";if(t){if((0,x.isString)(t))a=t,o={id:t};else{if(!(a=t.id))return void console.warn("Create combo failed. Please assign a unique string id for the adding combo.");o=t}var s=n&&this.get("enabledStack"),u={nodes:[],combos:[]};s&&e.forEach((function(t){var e=r.findById(t),n=e.getType();if("node"===n||"combo"===n){var i=e.getModel();u["".concat(n,"s")].push({id:t,parentId:"node"===n?i.comboId:i.parentId})}}));var l=this.get("comboTrees"),c=new Set(e),h=new Map;l&&(l.forEach((function(t){cn(t,(function(t,e,n){if(c.has(t.id)){if(e){var o=r.findById(e.id),a=r.findById(t.id);e.children.splice(n,1),o.removeChild(a),i.updateCombo(o,e.children)}"combo"===t.itemType&&h.set(t.id,t)}return!0}))})),l=l.filter((function(t){return!c.has(t.id)})),this.set("comboTrees",l));var d={nodes:[],combos:[]},f=e.map((function(t){var e=r.findById(t),n=e.getModel(),i="";e.getType&&(i=e.getType());var o=h.get(t)||{id:e.getID(),itemType:i};return"combo"===i?(o.parentId=a,n.parentId=a):"node"===i&&(o.comboId=a,n.comboId=a),s&&d["".concat(i,"s")].push({id:n.id,parentId:a}),o}));o.children=f,this.addItem("combo",o,!1),this.set("comboSorted",!1),l&&(l.forEach((function(t){ln(t,(function(t){return t.id!==a||(t.itemType="combo",t.children=f,!1)}))})),this.sortCombos()),s&&(d.combos.push(o),this.pushStack("createCombo",{before:u,after:d}));var p=this.findById(a);!p.getModel().parentId&&p.getChildren().combos.length&&this.updateComboTree(p,void 0,!1),setTimeout((function(){p.set("animate",!0)}),0)}},e.prototype.uncombo=function(t,e){var n,r,i=this;void 0===e&&(e=!0);var o=t;if((0,x.isString)(t)&&(o=this.findById(t)),!o||o.getType&&"combo"!==o.getType())console.warn("The item is not a combo!");else{var a=o.getModel(),s=o.getModel().parentId,u=this.get("comboTrees");u||(u=[]);var l,c=this.get("itemMap"),h=o.get("id"),d=[],f=this.get("combos"),p=this.findById(s),m=e&&this.get("enabledStack"),g={};if(m&&((g=(0,x.clone)(a)).children=[]),u.forEach((function(t){l||cn(t,(function(t){var e;if(t.id===h){l=t;var n=o.getEdges().map((function(t){return t.getID()}));n.forEach((function(t){i.removeItem(t,!1)}));var r=f.indexOf(o);f.splice(r,1),delete c[h];var a=(0,x.clone)(o.getModel());o.destroy(),i.emit("afterremoveitem",{item:a,type:"combo"})}return!s||!l||t.id!==s||(p.removeCombo(o),-1!==(r=(d=t.children).indexOf(l))&&d.splice(r,1),null===(e=l.children)||void 0===e||e.forEach((function(t){var e=i.findById(t.id),n=e.getModel();e.getType&&"combo"===e.getType()?(t.parentId=s,delete t.comboId,n.parentId=s,delete n.comboId):e.getType&&"node"===e.getType()&&(t.comboId=s,n.comboId=s),p.addChild(e),d.push(t)})),i.updateCombo(p),!1)}))})),!s&&l){var v=u.indexOf(l);u.splice(v,1),null===(n=l.children)||void 0===n||n.forEach((function(t){t.parentId=void 0;var e=i.findById(t.id).getModel();delete e.parentId,delete e.comboId,"node"!==t.itemType&&u.push(t)}))}if(m){var y={nodes:[],combos:[]},b={nodes:[],combos:[]};null===(r=l.children)||void 0===r||r.forEach((function(t){var e=i.findById(t.id).getType();"node"!==e&&"combo"!==e||(y["".concat(e,"s")].push({id:t.id,parentId:h}),b["".concat(e,"s")].push({id:t.id,parentId:s}))})),y.combos.push(g),this.pushStack("uncombo",{before:y,after:b})}}},e.prototype.updateCombos=function(t){var e=this;void 0===t&&(t=!1);var n=this,r=this.get("comboTrees"),i=n.get("itemController"),o=n.get("itemMap");(r||[]).forEach((function(n){cn(n,(function(n){var r;if(!n)return!0;var a=o[n.id];if("combo"===(null===(r=null==a?void 0:a.getType)||void 0===r?void 0:r.call(a))){var s=(0,b.__spreadArray)([],a.getStates(),!0);(0,x.each)(s,(function(t){return e.setItemState(a,t,!1)})),i.updateCombo(a,n.children,t),(0,x.each)(s,(function(t){return e.setItemState(a,t,!0)}))}return!0}))})),n.sortCombos()},e.prototype.updateCombo=function(t){var e,n=this,r=t;if((0,x.isString)(t)&&(r=this.findById(t)),!r||r.getType&&"combo"!==r.getType())console.warn("The item to be updated is not a combo!");else{e=r.get("id");var i=this.get("comboTrees"),o=this.get("itemController"),a=this.get("itemMap");(i||[]).forEach((function(t){cn(t,(function(t){if(!t)return!0;var r=a[t.id];if(e===t.id&&r&&r.getType&&"combo"===r.getType()){var i=(0,b.__spreadArray)([],r.getStates(),!0);(0,x.each)(i,(function(t){r.getStateStyle(t)&&n.setItemState(r,t,!1)})),o.updateCombo(r,t.children),(0,x.each)(i,(function(t){r.getStateStyle(t)&&n.setItemState(r,t,!0)})),e&&(e=t.parentId)}return!0}))}))}},e.prototype.updateComboTree=function(t,e,n){void 0===n&&(n=!0);var r;this.set("comboSorted",!1);var i,o=(r=(0,x.isString)(t)?this.findById(t):t).getModel(),a=o.comboId||o.parentId,s="";if(r.getType&&(s=r.getType()),e&&"combo"===s){var u,l=this.get("comboTrees"),c=!0;if((l||[]).forEach((function(t){u||ln(t,(function(t){if(!u)return t.id===r.getID()&&(u=t),!0}))})),ln(u,(function(t){return t.id!==e||(c=!1,!1)})),!c)return void console.warn("Failed to update the combo tree! The parentId points to a descendant of the combo!")}if(n&&this.get("enabledStack")){var h={},d={};"combo"===s?(h.combos=[{id:o.id,parentId:o.parentId}],d.combos=[{id:o.id,parentId:e}]):"node"===s&&(h.nodes=[{id:o.id,parentId:o.comboId}],d.nodes=[{id:o.id,parentId:e}]),this.pushStack("updateComboTree",{before:h,after:d})}if(o.parentId||o.comboId){var f=this.findById(o.parentId||o.comboId);f&&f.removeChild(r)}("combo"===s?o.parentId=e:"node"===s&&(o.comboId=e),e)&&((i=this.findById(e))&&i.addChild(r));a&&((i=this.findById(a))&&i.removeChild(r));var p=mn(this.get("comboTrees"),o.id,e);this.set("comboTrees",p),this.updateCombos()},e.prototype.save=function(){var t=[],e=[],n=[];return(0,x.each)(this.get("nodes"),(function(e){t.push(e.getModel())})),(0,x.each)(this.get("edges"),(function(t){e.push(t.getModel())})),(0,x.each)(this.get("combos"),(function(t){n.push(t.getModel())})),{nodes:t,edges:e,combos:n}},e.prototype.changeSize=function(t,e){return this.get("viewController").changeSize(t,e),this},e.prototype.refresh=function(){var t=this;if(t.emit("beforegraphrefresh"),t.get("animate"))t.positionsAnimate();else{var e=t.get("nodes"),n=t.get("edges"),r=t.get("edges");(0,x.each)(e,(function(t){t.refresh()})),(0,x.each)(n,(function(t){t.refresh()})),(0,x.each)(r,(function(t){t.refresh()}))}t.emit("aftergraphrefresh"),t.autoPaint()},e.prototype.getNodes=function(){return this.get("nodes")},e.prototype.getEdges=function(){return this.get("edges")},e.prototype.getCombos=function(){return this.get("combos")},e.prototype.getComboChildren=function(t){if((0,x.isString)(t)&&(t=this.findById(t)),t&&(!t.getType||"combo"===t.getType()))return t.getChildren();console.warn("The combo does not exist!")},e.prototype.positionsAnimate=function(t){var e=this;e.emit("beforeanimate");var n=e.get("animateCfg"),r=n.onFrame,i=t?e.getNodes().concat(e.getCombos()):e.getNodes(),o=i.map((function(t){var e=t.getModel();return{id:e.id,x:e.x,y:e.y}}));e.stopAnimate();var a=e.get("canvas");e.animating=!0,setTimeout((function(){a.animate((function(n){(0,x.each)(o,(function(t){var i=e.findById(t.id);if(i&&!i.destroyed){var o=i.get("originAttrs"),a=i.get("model"),s=i.getContainer().getMatrix();if(null==o&&(s&&(o={x:s[6],y:s[7]}),i.set("originAttrs",o||0)),r){var u=r(i,n,t,o||{x:0,y:0});i.set("model",Object.assign(a,u))}else o?(a.x=o.x+(t.x-o.x)*n,a.y=o.y+(t.y-o.y)*n):(a.x=t.x,a.y=t.y)}})),e.refreshPositions(t)}),{duration:n.duration,easing:n.easing,callback:function(){(0,x.each)(i,(function(t){t.set("originAttrs",null)})),n.callback&&n.callback(),e.emit("afteranimate"),e.animating=!1}})}),0)},e.prototype.refreshPositions=function(t){var e=this;e.emit("beforegraphrefreshposition");var n,r=e.get("nodes"),i=e.get("edges"),o=e.get("vedges"),a=e.get("combos"),s={},u=function(t){(0,x.each)(t,(function(t){n=t.getModel();var e=t.get("originAttrs");if(!e||n.x!==e.x||n.y!==e.y){var r=t.updatePosition({x:n.x,y:n.y});s[n.id]=r,n.comboId&&(s[n.comboId]=s[n.comboId]||r),n.parentId&&(s[n.parentId]=s[n.parentId]||r)}}))};u(a),u(r),a&&0!==a.length&&(t?(u(a),e.updateCombos()):e.updateCombos()),(0,x.each)(i,(function(t){var e=t.getSource().getModel(),n=t.getTarget();if(!(0,x.isPlainObject)(n)){var r=n.getModel();(s[e.id]||s[r.id]||t.getModel().isComboEdge)&&t.refresh()}})),(0,x.each)(o,(function(t){t.refresh()})),e.emit("aftergraphrefreshposition"),e.autoPaint()},e.prototype.stopAnimate=function(){var t=this.get("canvas").cfg.timeline;t&&t.stopAllAnimations()},e.prototype.isAnimating=function(){return this.animating},e.prototype.getZoom=function(){var t=this.get("group").getMatrix();return t?t[0]:1},e.prototype.getCurrentMode=function(){return this.get("modeController").getMode()},e.prototype.setMode=function(t){return this.get("modeController").setMode(t),this},e.prototype.clear=function(t){var e;return void 0===t&&(t=!1),null===(e=this.get("canvas"))||void 0===e||e.clear(),this.initGroups(),this.set({itemMap:{},nodes:[],edges:[],vedges:[],groups:[],combos:[],comboTrees:[]}),t||this.emit("afterrender"),this},e.prototype.updateLayout=function(t,e,n,r){var i=this;void 0===t&&(t={}),void 0===r&&(r=!0);var o=this.get("layoutController");if((0,x.isString)(t)&&(t={type:t}),e){var a=n;a||(a="begin"===e?{x:0,y:0}:{x:this.getWidth()/2,y:this.getHeight()/2}),a=this.getPointByCanvas(a.x,a.y);var s=["force","gForce","fruchterman","force2"];s.includes(t.type)||!t.type&&s.includes(null==o?void 0:o.layoutType)?t.center=[a.x,a.y]:this.once("afterlayout",(function(t){var n=i.getGroup().getMatrix()||[1,0,0,0,1,0,0,0,1];a.x=a.x*n[0]+n[6],a.y=a.y*n[0]+n[7];var r=i.getGroup().getCanvasBBox(),o=r.minX,s=r.maxX,u=r.minY,l={x:(o+s)/2,y:(u+r.maxY)/2};"begin"===e&&(l.x=o,l.y=u),i.translate(a.x-l.x,a.y-l.y)}))}var u=(0,b.__assign)({},this.get("layout")),l={};Object.assign(l,u,t),t.pipes&&!t.type?delete l.type:!t.pipes&&l.type&&delete l.pipes,this.set("layout",l),o&&(o.isLayoutTypeSame(l)&&l.gpuEnabled===u.gpuEnabled?o.updateLayoutCfg(l):o.changeLayout(l),r&&this.get("enabledStack")&&this.pushStack("layout",{before:u,after:l}))},e.prototype.destroyLayout=function(){var t=this.get("layoutController");null==t||t.destroyLayout()},e.prototype.layout=function(){var t,e=this.get("layoutController"),n=this.get("layout");n&&e&&(n.workerEnabled?e.layout():(null===(t=e.layoutMethods)||void 0===t?void 0:t.length)?e.relayout(!0):e.layout())},e.prototype.collapseCombo=function(t,e){var n=this;if(void 0===e&&(e=!0),!this.destroyed)if((0,x.isString)(t)&&(t=this.findById(t)),t){this.emit("beforecollapseexpandcombo",{action:"collapse",item:t});var r=t.getModel();this.get("itemController").collapseCombo(t,e),r.collapsed=!0;var i=this.getEdges().concat(this.get("vedges")),o=[],a=this.get("comboTrees"),s=!1;(a||[]).forEach((function(t){s||ln(t,(function(t){if(s&&t.depth<=r.depth)return!1;if(r.id===t.id&&(s=!0),s){var e=n.findById(t.id);e&&e.getType&&"combo"===e.getType()&&(o=(o=o.concat(e.getNodes())).concat(e.getCombos()))}return!0}))}));var u={};i.forEach((function(t){var e=t.getModel(),i=e.isVEdge,a=e.size,s=void 0===a?1:a;if(!t.isVisible()||i){var l,c=t.getSource(),h=t.getTarget(),d=null;if(c.getModel().id===r.id||o.includes(c)&&!o.includes(h)?(d=h,l=!1):(h.getModel().id===r.id||!o.includes(c)&&o.includes(h))&&(d=c,l=!0),d){if(i)return void n.removeItem(t,!1);for(var f=d.getModel();!d.isVisible();){var p=f.parentId,m=f.comboId,g=p||m;if(!(d=n.findById(g))||!g)return;f=d.getModel()}var v=f.id,y=l?{source:v,target:r.id,size:s,isVEdge:!0}:{source:r.id,target:v,size:s,isVEdge:!0},b="".concat(y.source,"-").concat(y.target);if(u[b])return void(u[b].size+=s);u[b]=y}}})),this.addItems(Object.values(u).map((function(t){return{type:"vedge",model:t}})),!1),this.emit("aftercollapseexpandcombo",{action:"collapse",item:t})}else console.warn("The combo to be collapsed does not exist!")},e.prototype.expandCombo=function(t,e){var n=this;if(void 0===e&&(e=!0),(0,x.isString)(t)&&(t=this.findById(t)),!t||t.getType&&"combo"!==t.getType())console.warn("The combo to be collapsed does not exist!");else{this.emit("beforecollapseexpandcombo",{action:"expand",item:t});var r=t.getModel();this.get("itemController").expandCombo(t,e),r.collapsed=!1;var i=this.getEdges().concat(this.get("vedges")),o=[],a=this.get("comboTrees"),s=!1;(a||[]).forEach((function(t){s||ln(t,(function(t){if(s&&t.depth<=r.depth)return!1;if(r.id===t.id&&(s=!0),s){var e=n.findById(t.id);e&&e.getType&&"combo"===e.getType()&&(o=(o=o.concat(e.getNodes())).concat(e.getCombos()))}return!0}))}));var u={};i.forEach((function(t){if(!t.isVisible()||t.getModel().isVEdge){var e,i=t.getSource(),a=t.getTarget(),s=i.get("id"),l=a.get("id"),c=null;if(s===r.id||o.includes(i)&&!o.includes(a)?(c=a,e=!1):l===r.id||!o.includes(i)&&o.includes(a)?(c=i,e=!0):o.includes(i)&&o.includes(a)&&i.isVisible()&&a.isVisible()&&t.show(),c){var h=t.getModel(),d=h.isVEdge,f=h.size,p=void 0===f?1:f;if(d)return void n.removeItem(t,!1);for(var m=c.getModel();!c.isVisible();){var g=m.parentId,v=m.comboId,y=g||v;if(!(c=n.findById(y))||!y)return;m=c.getModel()}for(var b=m.id,x=e?a:i,w=x.getModel();!x.isVisible();){var _=w.parentId,S=w.comboId,E=_||S;if(!(x=n.findById(E))||!E)return;if(w.comboId===r.id||w.parentId===r.id)break;w=x.getModel()}var A=w.id;if(b){var M=e?{source:b,target:A,isVEdge:!0,size:p}:{source:A,target:b,isVEdge:!0,size:p},C="".concat(M.source,"-").concat(M.target);if(u[C])return void(u[C].size+=p);u[C]=M}}}})),this.addItems(Object.values(u).map((function(t){return{type:"vedge",model:t}})),!1),this.emit("aftercollapseexpandcombo",{action:"expand",item:t})}},e.prototype.collapseExpandCombo=function(t,e){if(void 0===e&&(e=!0),(0,x.isString)(t)&&(t=this.findById(t)),t&&(!t.getType||"combo"===t.getType())){for(var n=t.getModel(),r=this.findById(n.parentId);r;){var i=r.getModel();if(i.collapsed)return console.warn("Fail to expand the combo since it's ancestor combo is collapsed."),void(r=void 0);r=this.findById(i.parentId)}n.collapsed?this.expandCombo(t,e):this.collapseCombo(t,e),this.updateCombo(t)}},e.prototype.getNeighbors=function(t,e){var n=t;return(0,x.isString)(t)&&(n=this.findById(t)),n.getNeighbors(e)},e.prototype.getNodeDegree=function(t,e,n){void 0===e&&(e=void 0),void 0===n&&(n=!1);var r=t;(0,x.isString)(t)&&(r=this.findById(t));var i=this.get("degrees");i&&!n||(i=Y(this.save()),this.set("degrees",i));var o=i[r.getID()],a=0;if(!o)return 0;switch(e){case"in":a=o.inDegree;break;case"out":a=o.outDegree;break;case"all":a=o;break;default:a=o.degree}return a},e.prototype.getUndoStack=function(){return this.undoStack},e.prototype.getRedoStack=function(){return this.redoStack},e.prototype.getStackData=function(){return this.get("enabledStack")?{undoStack:this.undoStack.toArray(),redoStack:this.redoStack.toArray()}:null},e.prototype.clearStack=function(){this.get("enabledStack")&&(this.undoStack.clear(),this.redoStack.clear(),this.emit("stackchange",{undoStack:this.undoStack,redoStack:this.redoStack}))},e.prototype.pushStack=function(t,e,n){if(void 0===t&&(t="update"),void 0===n&&(n="undo"),this.get("enabledStack")){var r=e?(0,x.clone)(e):{before:{},after:(0,x.clone)(this.save())};"redo"===n?this.redoStack.push({action:t,data:r}):this.undoStack.push({action:t,data:r}),this.emit("stackchange",{action:t,stackType:n,undoStack:this.undoStack,redoStack:this.redoStack})}else console.warn("请先启用 undo & redo 功能,在实例化 Graph 时候配置 enabledStack: true !")},e.prototype.getAdjMatrix=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=this.get("directed"));var n=this.get("adjMatrix");return n&&t||(n=P(this.save(),e),this.set("adjMatrix",n)),n},e.prototype.getShortestPathMatrix=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=this.get("directed"));var n=this.get("adjMatrix"),r=this.get("shortestPathMatrix");return n&&t||(n=P(this.save(),e),this.set("adjMatrix",n)),r&&t||(r=at(this.save(),e),this.set("shortestPathMatrix",r)),r},e.prototype.on=function(e,n,r){return t.prototype.on.call(this,e,n,r)},e.prototype.destroy=function(){var t,e,n,r,i;this.emit("beforedestroy"),this.clear(),this.clearStack(),null===(t=this.get("itemController"))||void 0===t||t.destroy(),null===(e=this.get("modeController"))||void 0===e||e.destroy(),null===(n=this.get("viewController"))||void 0===n||n.destroy(),null===(r=this.get("stateController"))||void 0===r||r.destroy(),null===(i=this.get("canvas"))||void 0===i||i.destroy(),this.cfg=null,this.destroyed=!0,this.redoStack=null,this.undoStack=null,this.emit("afterdestroy")},e.prototype.createHull=function(t){if(t.members&&!(t.members.length<1)){var e=this.get("hullGroup"),n=this.get("hullMap");if(n||(n={},this.set("hullMap",n)),e&&!e.get("destroyed")||((e=this.get("group").addGroup({id:"hullGroup"})).toBack(),this.set("hullGroup",e)),n[t.id])return console.warn("Existed hull id."),n[t.id];var r=e.addGroup({id:"".concat(t.id,"-container")}),i=new ku(this,(0,b.__assign)((0,b.__assign)({},t),{group:r}));return n[i.id]=i,i}console.warn("Create hull failed! The members is empty.")},e.prototype.getHulls=function(){return this.get("hullMap")},e.prototype.getHullById=function(t){return this.get("hullMap")[t]},e.prototype.removeHull=function(t){var e,n;n=(0,x.isString)(t)?this.getHullById(t):t,null===(e=this.get("hullMap"))||void 0===e||delete e[n.id],n.destroy()},e.prototype.removeHulls=function(){var t=this.getHulls();t&&Object.keys(t).length&&(Object.keys(t).forEach((function(e){t[e].destroy()})),this.set("hullMap",{}))},e}(M);const Pu=Nu;function Ou(t){return Ou="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ou(t)}var Lu=N,Ru="-shape",Du="-label",zu=["startArrow","endArrow"],Fu={lineWidth:1,stroke:void 0,fill:void 0,lineAppendWidth:1,opacity:void 0,strokeOpacity:void 0,fillOpacity:void 0,x:0,y:0,r:10,width:20,height:20,shadowColor:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0},Bu={edge:{lineWidth:1,stroke:"#000",lineDash:void 0,startArrow:!1,endArrow:!1,opacity:void 0,strokeOpacity:void 0,fillOpacity:void 0,shadowColor:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0},node:Fu,combo:Fu},Uu="-label-bg",ju={options:{labelCfg:{style:{fontFamily:Ke.windowFontFamily}},descriptionCfg:{style:{fontFamily:Ke.windowFontFamily}}},itemType:"",type:"",getCustomConfig:function(t){return{}},getOptions:function(t,e){return"move"===e||(null==e?void 0:e.includes("bbox"))?t:(0,x.deepMix)({},this.options,this.getCustomConfig(t)||{},t)},draw:function(t,e){e.shapeMap={},this.mergeStyle=this.getOptions(t);var n=this.drawShape(t,e);if(n.set("className",this.itemType+Ru),e.shapeMap[this.itemType+Ru]=n,t.label){var r=this.drawLabel(t,e);r.set("className",this.itemType+Du),e.shapeMap[this.itemType+Du]=r}return n},afterDraw:function(t,e,n){},drawShape:function(t,e){return null},drawLabel:function(t,e){var n=(this.mergeStyle||this.getOptions(t)||{}).labelCfg||{},r=this.getLabelStyle(t,n,e),i=r.rotate;delete r.rotate;var o=e.addShape("text",{attrs:r,draggable:!0,className:"text-shape",name:"text-shape",labelRelated:!0});if(e.shapeMap["text-shape"]=o,!isNaN(i)&&""!==i){var a=o.getBBox(),s=[1,0,0,0,1,0,0,0,1];if(r.rotateCenter)switch(r.rotateCenter){case"center":default:s=Lu(s,[["t",-a.width/2,-a.height/2],["r",i],["t",a.width/2,a.height/2]]);break;case"lefttop":s=Lu(s,[["t",-r.x,-r.y],["r",i],["t",r.x,r.y]]);break;case"leftcenter":s=Lu(s,[["t",-r.x,-r.y-a.height/2],["r",i],["t",r.x,r.y+a.height/2]])}else s=Lu(s,[["t",-r.x,-r.y-a.height/2],["r",i],["t",r.x,r.y+a.height/2]]);o.setMatrix(s)}if(r.background){var u=this.drawLabelBg(t,e,o),l=this.itemType+Uu;u.set("classname",l),e.shapeMap[l]=u,o.toFront()}return o},drawLabelBg:function(t,e,n){var r=this.options.labelCfg,i=(0,x.mix)({},r,t.labelCfg),o=this.getLabelBgStyleByPosition(n,i),a=e.addShape("rect",{name:"text-bg-shape",attrs:o,labelRelated:!0});return e.shapeMap["text-bg-shape"]=a,a},getLabelStyleByPosition:function(t,e,n){return{text:t.label}},getLabelBgStyleByPosition:function(t,e){return{}},getLabelStyle:function(t,e,n){var r=this.getLabelStyleByPosition(t,e,n),i="".concat(this.itemType,"Label"),o=Ke[i]?Ke[i].style:null;return(0,b.__assign)((0,b.__assign)((0,b.__assign)({},o),r),e.style)},getShapeStyle:function(t){return t.style},update:function(t,e,n){this.updateShapeStyle(t,e,n),this.updateLabel(t,e,n)},updateShapeStyle:function(t,e,n){var r,i=e.getContainer(),o=e.getKeyShape(),a=(0,x.mix)({},o.attr(),t.style),s=function(t){var e,n=a[t];if((0,x.isPlainObject)(n)){var s=(null===(r=i.shapeMap)||void 0===r?void 0:r[t])||i.find((function(e){return e.get("name")===t}));null==s||s.attr(n)}else o.attr(((e={})[t]=n,e))};for(var u in a)s(u)},updateLabel:function(t,e,n){var r,i,o=e.getContainer(),a=(this.mergeStyle||this.getOptions({},n)||{}).labelCfg,s=void 0===a?{}:a,u=this.itemType+Du,l=o.shapeMap[u]||o.find((function(t){return t.get("className")===u})),c=this.itemType+Uu,h=o.shapeMap[c]||o.find((function(t){return t.get("className")===c}));if(l&&void 0===t.label&&(o.removeChild(l),delete o.shapeMap[u],h&&(o.removeChild(h),delete o.shapeMap[c])),t.label||""===t.label)if(l){(!n||"bbox|label"===n||"edge"===this.itemType&&"style"!==n)&&(s=(0,x.deepMix)(s,t.labelCfg));var d=this.getLabelStyleByPosition(t,s,o),f=null===(r=t.labelCfg)||void 0===r?void 0:r.style,p=(0,b.__assign)((0,b.__assign)({},d),f),m=p.rotate;if(delete p.rotate,isNaN(m)||""===m)1!==(null===(i=l.getMatrix())||void 0===i?void 0:i[4])&&l.resetMatrix(),l.attr(p);else{var g=[1,0,0,0,1,0,0,0,1];g=Lu(g,[["t",-p.x,-p.y],["r",m],["t",p.x,p.y]]),p.matrix=g,l.attr(p)}if(h)if(p.background){var v=this.getLabelBgStyleByPosition(l,s);h.attr(v)}else o.removeChild(h);else p.background&&((h=this.drawLabelBg(t,o,l)).set("classname",c),o.shapeMap[c]=h,l.toFront())}else{var y=this.drawLabel(t,o);y.set("className",u),o.shapeMap[u]=y}},afterUpdate:function(t,e){},setState:function(t,e,n){var r,i,o,a=n.get("keyShape");if(a&&!a.destroyed){var s=n.getType(),u=(0,x.isBoolean)(e)?t:"".concat(t,":").concat(e),l=this.getStateStyle(u,n),c=n.getStateStyle(u);if(c||l){var h=(0,x.mix)({},c||l),d=n.getContainer(),f={x:1,y:1,cx:1,cy:1,matrix:1};if("combo"===s&&(f.r=1,f.width=1,f.height=1),e){var p=function(t){var e,n=h[t];if((0,x.isPlainObject)(n)&&!zu.includes(t)){var r=(null===(o=d.shapeMap)||void 0===o?void 0:o[t])||d.find((function(e){return e.get("name")===t}));null==r||r.attr(n)}else a.attr(((e={})[t]=n,e))};for(var m in h)p(m)}else{var g=yn(n.getCurrentStatesStyle()),v=n.getModel(),y=(0,x.mix)({},v.style,yn(n.getOriginStyle())),b=a.get("name"),w=a.attr(),_={};Object.keys(w).forEach((function(t){if("img"!==t){var e=w[t];e&&"object"===Ou(e)?_[t]=(0,x.clone)(e):_[t]=e}}));var S={},E=function(t){var e=h[t];if((0,x.isPlainObject)(e)&&!zu.includes(t)){var n=d.shapeMap[t]||d.find((function(e){return e.get("name")===t}));if(n){var r=yn(n.attr());(0,x.each)(e,(function(e,i){if(t===b&&_[i]&&!f[i]){delete _[i];var o=y[t][i]||Bu[s][i];a.attr(i,o)}else if(r[i]||0===r[i]){delete r[i];var u=y[t][i]||Bu[s][i];n.attr(i,u)}})),S[t]=r}}else if(_[t]&&!f[t]){delete _[t];var i=y[t]||(y[b]?y[b][t]:void 0)||Bu[s][t];a.attr(t,i)}};for(var A in h)E(A);for(var m in b?S[b]=_:(0,x.mix)(S,_),g)if(!f[m]){var M=g[m];(0,x.isPlainObject)(M)&&!zu.includes(m)||(b?((0,x.mix)(y[b],((i={})[m]=M,i)),delete y[m]):(0,x.mix)(y,((r={})[m]=M,r)),delete g[m])}var C={};(0,x.deepMix)(C,y,S,g);var T=!1,k=function(t){var e,n,r=C[t];if((0,x.isPlainObject)(r)&&!zu.includes(t)){var i=d.shapeMap[t]||d.find((function(e){return e.get("name")===t}));i&&(("text"===i.get("type")||i.get("labelRelated"))&&(delete r.x,delete r.y,delete r.matrix),t===b&&("combo"===s&&(delete r.r,delete r.width,delete r.height),T=!0),i.attr(r))}else if(!T){var o=r||Bu[s][t];"combo"===s?b||a.attr(((e={})[t]=o,e)):a.attr(((n={})[t]=o,n))}};for(var I in C)k(I)}}}},getStateStyle:function(t,e){var n=e.getModel(),r=e.getType(),i=this.getOptions(n),o=i.stateStyles,a=i.style,s=void 0===a?{}:a,u=n.stateStyles?n.stateStyles[t]:o&&o[t];return"combo"===r?(0,x.clone)(u):(0,x.mix)({},s,u)},getControlPoints:function(t){return t.controlPoints},getAnchorPoints:function(t){var e,n;return(null==t?void 0:t.anchorPoints)||(null===(e=this.getCustomConfig(t))||void 0===e?void 0:e.anchorPoints)||(null===(n=this.options)||void 0===n?void 0:n.anchorPoints)}},Vu={itemType:"node",shapeType:"single-node",labelPosition:"center",offset:Ke.nodeLabel.offset,getSize:function(t){var e,n=(null===(e=this.mergeStyle)||void 0===e?void 0:e.size)||t.size||this.getOptions({}).size||Ke.defaultNode.size;return(0,x.isArray)(n)&&1===n.length&&(n=[n[0],n[0]]),(0,x.isArray)(n)||(n=[n,n]),n},getLabelStyleByPosition:function(t,e){var n=e.maxLength,r=t.label;n&&(r=fn(r,n));var i=e.position||this.labelPosition;if("center"===i)return{x:0,y:0,text:r,textBaseline:"middle",textAlign:"center"};var o=e.offset;(0,x.isNil)(o)&&(o=this.offset);var a,s=this.getSize(t);switch(i){case"top":a={x:0,y:-s[1]/2-o,textBaseline:"bottom",textAlign:"center"};break;case"bottom":a={x:0,y:s[1]/2+o,textBaseline:"top",textAlign:"center"};break;case"left":a={x:-s[0]/2-o,y:0,textBaseline:"middle",textAlign:"right"};break;default:a={x:s[0]/2+o,y:0,textBaseline:"middle",textAlign:"left"}}return a.text=r,a},getLabelBgStyleByPosition:function(t,e){var n;if(!t)return{};var r=null===(n=e.style)||void 0===n?void 0:n.background;if(!r)return{};var i=t.getBBox(),o=hs(r.padding),a=i.width+o[1]+o[3],s=i.height+o[0]+o[2];return(0,b.__assign)((0,b.__assign)({x:i.minX-o[3],y:i.minY-o[0]},r),{width:a,height:s})},drawShape:function(t,e){var n=this.shapeType,r=this.getShapeStyle(t),i=e.addShape(n,{attrs:r,draggable:!0,name:"node-shape"});return e.shapeMap["node-shape"]=i,i},updateLinkPoints:function(t,e){var n,r=(this.mergeStyle||this.getOptions(t)).linkPoints,i=e.shapeMap["link-point-left"]||e.find((function(t){return"link-point-left"===t.get("className")})),o=e.shapeMap["link-point-right"]||e.find((function(t){return"link-point-right"===t.get("className")})),a=e.shapeMap["link-point-top"]||e.find((function(t){return"link-point-top"===t.get("className")})),s=e.shapeMap["link-point-bottom"]||e.find((function(t){return"link-point-bottom"===t.get("className")}));i&&(n=i.attr()),o&&!n&&(n=o.attr()),a&&!n&&(n=a.attr()),s&&!n&&(n=s.attr()),n||(n=r);var u=(0,x.mix)({},n,t.linkPoints),l=u.fill,c=u.stroke,h=u.lineWidth,d=u.size/2;d||(d=u.r);var f=t.linkPoints?t.linkPoints:{left:void 0,right:void 0,top:void 0,bottom:void 0},p=f.left,m=f.right,g=f.top,v=f.bottom,y=this.getSize(t),w=y[0],_=y[1],S={r:d,fill:l,stroke:c,lineWidth:h};if(i)p||void 0===p?i.attr((0,b.__assign)((0,b.__assign)({},S),{x:-w/2,y:0})):(i.remove(),delete e.shapeMap["link-point-left"]);else if(p){var E="link-point-left";e.shapeMap[E]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},S),{x:-w/2,y:0}),className:E,name:E,isAnchorPoint:!0})}if(o)m||void 0===m||(o.remove(),delete e.shapeMap["link-point-right"]),o.attr((0,b.__assign)((0,b.__assign)({},S),{x:w/2,y:0}));else if(m){var A="link-point-right";e.shapeMap[A]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},S),{x:w/2,y:0}),className:A,name:A,isAnchorPoint:!0})}if(a)g||void 0===g||(a.remove(),delete e.shapeMap["link-point-top"]),a.attr((0,b.__assign)((0,b.__assign)({},S),{x:0,y:-_/2}));else if(g){var M="link-point-top";e.shapeMap[M]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},S),{x:0,y:-_/2}),className:M,name:M,isAnchorPoint:!0})}if(s)v||void 0===v?s.attr((0,b.__assign)((0,b.__assign)({},S),{x:0,y:_/2})):(s.remove(),delete e.shapeMap["link-point-bottom"]);else if(v){var C="link-point-bottom";e.shapeMap[C]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},S),{x:0,y:_/2}),className:C,name:C,isAnchorPoint:!0})}},updateShape:function(t,e,n,r,i){e.get("keyShape").attr((0,b.__assign)({},n)),this.updateLabel(t,e,i),r&&this.updateIcon(t,e)},updateIcon:function(t,e){var n=this,r=e.getContainer(),i=(this.mergeStyle||this.getOptions(t)).icon,o=t.icon?t.icon:{show:void 0,text:void 0},a=o.show,s=o.text,u=r.shapeMap["".concat(this.type,"-icon")]||r.find((function(t){return t.get("name")==="".concat(n.type,"-icon")}));if(u)if(a||void 0===a){var l=(0,x.mix)({},u.attr(),i),c=l.width,h=void 0===c?20:c,d=l.height,f=void 0===d?20:d;("iconfont"===l.fontFamily||l.hasOwnProperty("text"))&&(h=0,f=0),u.attr((0,b.__assign)((0,b.__assign)({},l),{x:-h/2,y:-f/2}))}else u.remove(),delete r.shapeMap["".concat(this.type,"-icon")];else if(a){var p="".concat(this.type,"-icon");if(s)r.shapeMap[p]=r.addShape("text",{attrs:(0,b.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},i),className:p,name:p});else{h=i.width,f=i.height;r.shapeMap[p]=r.addShape("image",{attrs:(0,b.__assign)((0,b.__assign)({},i),{x:-h/2,y:-f/2}),className:p,name:p})}var m=r.shapeMap["node-label"]||r.find((function(t){return"node-label"===t.get("name")}));m&&m.toFront()}}},Hu=(0,b.__assign)((0,b.__assign)({},ju),Vu);Ps.registerNode("single-node",Hu);var Gu="edge-shape";var Wu={itemType:"edge",labelPosition:"center",refX:0,refY:0,labelAutoRotate:!1,options:{size:Ke.defaultEdge.size,style:{x:0,y:0,stroke:Ke.defaultEdge.style.stroke,lineAppendWidth:Ke.defaultEdge.style.lineAppendWidth},labelCfg:{style:{fill:Ke.edgeLabel.style.fill,fontSize:Ke.edgeLabel.style.fontSize,fontFamily:Ke.windowFontFamily}},stateStyles:(0,b.__assign)({},Ke.edgeStateStyles)},getPath:function(t){var e=[];return(0,x.each)(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},getShapeStyle:function(t){var e=this.options.style,n={stroke:t.color},r=(0,x.mix)({},e,n,t.style),i=t.size||Ke.defaultEdge.size,o=(t=this.getPathPoints(t)).startPoint,a=t.endPoint,s=this.getControlPoints(t),u=[o];s&&(u=u.concat(s)),u.push(a);var l=this.getPath(u);return(0,x.mix)({},Ke.defaultEdge.style,{stroke:Ke.defaultEdge.color,lineWidth:i,path:l},r)},updateShapeStyle:function(t,e,n){var r,i=e.getContainer(),o=(null===(r=e.getKeyShape)||void 0===r?void 0:r.call(e))||i.shapeMap["edge-shape"],a=t.size,s=(t=this.getPathPoints(t)).startPoint,u=t.endPoint,l=this.getControlPoints(t),c=[s];l&&(c=c.concat(l)),c.push(u);var h=o.attr(),d=t.style||{};void 0===d.stroke&&(d.stroke=t.color);var f=t.sourceNode,p=t.targetNode,m={radius:d.radius};l||(m={source:f,target:p,offset:d.offset,radius:d.radius});var g=this.getPath(c,m),v={};"move"===n?v={path:g}:(h.endArrow&&!1===d.endArrow&&(t.style.endArrow={path:""}),h.startArrow&&!1===d.startArrow&&(t.style.startArrow={path:""}),void 0===(v=(0,b.__assign)({},t.style)).lineWidth&&(v.lineWidth=((0,x.isNumber)(a)?a:null==a?void 0:a[0])||h.lineWidth),void 0===v.path&&(v.path=g),void 0===v.stroke&&(v.stroke=h.stroke||t.color)),o&&o.attr(v)},getLabelStyleByPosition:function(t,e,n){var r,i=e.position||this.labelPosition,o={},a=null==n?void 0:n.shapeMap[Gu];r="start"===i?0:"end"===i?1:.5;var s,u=e.refX||this.refX,l=e.refY||this.refY;if(t.startPoint.x===t.endPoint.x&&t.startPoint.y===t.endPoint.y)return o.x=t.startPoint.x+u,o.y=t.startPoint.y+l,o.text=t.label,o;s=(0,x.isNil)(e.autoRotate)?this.labelAutoRotate:e.autoRotate;var c=an(a,r,u,l,s);return o.x=c.x,o.y=c.y,o.rotate=c.rotate,o.textAlign=this._getTextAlign(i,c.angle),o.text=t.label,o},getLabelBgStyleByPosition:function(t,e){if(!t)return{};var n=t.getBBox(),r=e.style&&e.style.background;if(!r)return{};var i=r.padding,o=n.width+i[1]+i[3],a=n.height+i[0]+i[2],s=(0,b.__assign)((0,b.__assign)({},r),{width:o,height:a,x:n.minX-i[3],y:n.minY-i[0],matrix:[1,0,0,0,1,0,0,0,1]});return((0,x.isNil)(e.autoRotate)?this.labelAutoRotate:e.autoRotate)&&(s.matrix=t.attr("matrix")||[1,0,0,0,1,0,0,0,1]),s},_getTextAlign:function(t,e){var n="center";return e?(e%=2*Math.PI,"center"!==t&&(n=e>=0&&e<=Math.PI/2||e>=1.5*Math.PI&&e<2*Math.PI?t:function(t){var e=t;return"start"===t?e="end":"end"===t&&(e="start"),e}(t)),n):t},getControlPoints:function(t){return t.controlPoints},getPathPoints:function(t){return t},drawShape:function(t,e){var n=this.getShapeStyle(t),r=e.addShape("path",{className:Gu,name:Gu,attrs:n});return e.shapeMap[Gu]=r,r},drawLabel:function(t,e){var n=this.options.labelCfg,r=(0,x.deepMix)({},n,t.labelCfg),i=this.getLabelStyle(t,r,e),o=i.rotate;delete i.rotate;var a=e.addShape("text",{attrs:i,name:"text-shape",labelRelated:!0,draggable:!0});if(e.shapeMap["text-shape"]=a,isNaN(o)||""===o||a.rotateAtStart(o),i.background){var s=this.drawLabelBg(t,e,a,i,o),u=this.itemType+Uu;s.set("classname",u),e.shapeMap[u]=s,a.toFront()}return a},drawLabelBg:function(t,e,n,r,i){var o=this.options.labelCfg,a=(0,x.deepMix)({},o,t.labelCfg),s=this.getLabelBgStyleByPosition(n,a),u=e.addShape("rect",{name:"text-bg-shape",attrs:s,labelRelated:!0});return e.shapeMap["text-bg-shape"]=u,u}},Xu=(0,b.__assign)((0,b.__assign)({},ju),Wu);Ps.registerEdge("single-edge",Xu),Ps.registerEdge("line",{getControlPoints:function(){}},"single-edge"),Ps.registerEdge("spline",{getPath:function(t){return uu(t)}},"single-edge"),Ps.registerEdge("arc",{curveOffset:20,clockwise:1,getControlPoints:function(t){var e,n,r=t.startPoint,i=t.endPoint,o=(r.x+i.x)/2,a=(r.y+i.y)/2;if(void 0!==t.controlPoints){if(n=t.controlPoints[0],e=pe(r,n,i),r.x<=i.x&&r.y>i.y?this.clockwise=e.x>n.x?0:1:r.x<=i.x&&r.yn.x?1:0:r.x>i.x&&r.y<=i.y?this.clockwise=e.y=t&&i<=t+n&&o>=e&&o<=e+r}function pl(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxY=0&&a<.5*Math.PI?(r={x:u.minX,y:u.minY},i={x:u.maxX,y:u.maxY}):.5*Math.PI<=a&&a1&&(n*=Math.sqrt(f),r*=Math.sqrt(f));var p=n*n*(d*d)+r*r*(h*h),m=p?Math.sqrt((n*n*(r*r)-p)/p):1;o===a&&(m*=-1),isNaN(m)&&(m=0);var g=r?m*n*d/r:0,v=n?m*-r*h/n:0,y=(s+l)/2+Math.cos(i)*g-Math.sin(i)*v,b=(u+c)/2+Math.sin(i)*g+Math.cos(i)*v,w=[(h-g)/n,(d-v)/r],_=[(-1*h-g)/n,(-1*d-v)/r],S=El([1,0],w),E=El(w,_);return Sl(w,_)<=-1&&(E=Math.PI),Sl(w,_)>=1&&(E=0),0===a&&E>0&&(E-=2*Math.PI),1===a&&E<0&&(E+=2*Math.PI),{cx:y,cy:b,rx:ml(t,[l,c])?0:n,ry:ml(t,[l,c])?0:r,startAngle:S,endAngle:S+E,xRotation:i,arcFlag:o,sweepFlag:a}}var Ml=Math.sin,Cl=Math.cos,Tl=Math.atan2,kl=Math.PI;function Il(t,e,n,r,i,o,a){var s=e.stroke,u=e.lineWidth,l=Tl(r-o,n-i),c=new yc({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*Cl(kl/6)+","+10*Ml(kl/6)+" L0,0 L"+10*Cl(kl/6)+",-"+10*Ml(kl/6),stroke:s,lineWidth:u}});c.translate(i,o),c.rotateAtPoint(i,o,l),t.set(a?"startArrowShape":"endArrowShape",c)}function Nl(t,e,n,r,i,o,a){var s=e.startArrow,u=e.endArrow,l=e.stroke,c=e.lineWidth,h=a?s:u,d=h.d,f=h.fill,p=h.stroke,m=h.lineWidth,g=(0,b.__rest)(h,["d","fill","stroke","lineWidth"]),v=Tl(r-o,n-i);d&&(i-=Cl(v)*d,o-=Ml(v)*d);var y=new yc({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:(0,b.__assign)((0,b.__assign)({},g),{stroke:p||l,lineWidth:m||c,fill:f})});y.translate(i,o),y.rotateAtPoint(i,o,v),t.set(a?"startArrowShape":"endArrowShape",y)}function Pl(t,e,n,r,i){var o=Tl(r-e,n-t);return{dx:Cl(o)*i,dy:Ml(o)*i}}function Ol(t,e,n,r,i,o){"object"==typeof e.startArrow?Nl(t,e,n,r,i,o,!0):e.startArrow?Il(t,e,n,r,i,o,!0):t.set("startArrowShape",null)}function Ll(t,e,n,r,i,o){"object"==typeof e.endArrow?Nl(t,e,n,r,i,o,!1):e.endArrow?Il(t,e,n,r,i,o,!1):t.set("startArrowShape",null)}var Rl={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function Dl(t,e){var n=e.attr();for(var r in n){var i=n[r],o=Rl[r]?Rl[r]:r;"matrix"===o&&i?t.transform(i[0],i[1],i[3],i[4],i[6],i[7]):"lineDash"===o&&t.setLineDash?(0,x.isArray)(i)&&t.setLineDash(i):("strokeStyle"===o||"fillStyle"===o?i=wl(t,e,i):"globalAlpha"===o&&(i*=t.globalAlpha),t[o]=i)}}function zl(t,e,n){for(var r=0;rx?b:x,M=b>x?1:b/x,C=b>x?x/b:1;e.translate(v,y),e.rotate(S),e.scale(M,C),e.arc(0,0,A,w,_,1-E),e.scale(1/M,1/C),e.rotate(-S),e.translate(-v,-y)}break;case"Z":e.closePath()}if("Z"===d)s=u;else{var T=h.length;s=[h[T-2],h[T-1]]}}}}function Gl(t,e){var n=t.get("canvas");n&&("remove"===e&&(t._cacheCanvasBBox=t.get("cacheCanvasBBox")),t.get("hasChanged")||(t.set("hasChanged",!0),t.cfg.parent&&t.cfg.parent.get("hasChanged")||(n.refreshElement(t,e,n),n.get("autoDraw")&&n.draw())))}function Wl(t){var e,n,r;if(t.destroyed)e=t._cacheCanvasBBox;else{var i=t.get("cacheCanvasBBox"),o=i&&!(!i.width||!i.height),a=t.getCanvasBBox(),s=a&&!(!a.width||!a.height);o&&s?(r=a,e=(n=i)&&r?{minX:Math.min(n.minX,r.minX),minY:Math.min(n.minY,r.minY),maxX:Math.max(n.maxX,r.maxX),maxY:Math.max(n.maxY,r.maxY)}:n||r):o?e=i:s&&(e=a)}return e}var Xl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,b.__extends)(e,t),e.prototype.onCanvasChange=function(t){Gl(this,t)},e.prototype.getShapeBase=function(){return d},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(t,e){e&&(t.save(),Dl(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.cacheCanvasBBox=function(){var t=this.cfg.children,e=[],n=[];(0,x.each)(t,(function(t){var r=t.cfg.cacheCanvasBBox;r&&t.cfg.isInView&&(e.push(r.minX,r.maxX),n.push(r.minY,r.maxY))}));var r=null;if(e.length){var i=(0,x.min)(e),o=(0,x.max)(e),a=(0,x.min)(n),s=(0,x.max)(n);r={minX:i,minY:a,x:i,y:a,maxX:o,maxY:s,width:o-i,height:s-a};var u=this.cfg.canvas;if(u){var l=u.getViewRange();this.set("isInView",pl(r,l))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",r)},e.prototype.draw=function(t,e){var n=this.cfg.children,r=!e||this.cfg.refresh;n.length&&r&&(t.save(),Dl(t,this),this._applyClip(t,this.getClip()),zl(t,n,e),t.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},e}(ia);const Yl=Xl;var ql=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,b.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,b.__assign)((0,b.__assign)({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return d},e.prototype.getGroupBase=function(){return Yl},e.prototype.onCanvasChange=function(t){Gl(this,t)},e.prototype.calculateBBox=function(){var t=this.get("type"),e=this.getHitLineWidth(),n=ua(t)(this),r=e/2,i=n.x-r,o=n.y-r,a=n.x+n.width+r,s=n.y+n.height+r;return{x:i,minX:i,y:o,minY:o,width:n.width+e,height:n.height+e,maxX:a,maxY:s}},e.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},e.prototype.isStroke=function(){return!!this.attrs.stroke},e.prototype._applyClip=function(t,e){e&&(t.save(),Dl(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.draw=function(t,e){var n=this.cfg.clipShape;if(e){if(!1===this.cfg.refresh)return void this.set("hasChanged",!1);if(!pl(e,this.getCanvasBBox()))return this.set("hasChanged",!1),void(this.cfg.isInView&&this._afterDraw())}t.save(),Dl(t,this),this._applyClip(t,n),this.drawPath(t),t.restore(),this._afterDraw()},e.prototype.getCanvasViewBox=function(){var t=this.cfg.canvas;return t?t.getViewRange():null},e.prototype.cacheCanvasBBox=function(){var t=this.getCanvasViewBox();if(t){var e=this.getCanvasBBox(),n=pl(e,t);this.set("isInView",n),n?this.set("cacheCanvasBBox",e):this.set("cacheCanvasBBox",null)}},e.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},e.prototype.drawPath=function(t){this.createPath(t),this.strokeAndFill(t),this.afterDrawPath(t)},e.prototype.fill=function(t){t.fill()},e.prototype.stroke=function(t){t.stroke()},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,o=e.fillOpacity;this.isFill()&&((0,x.isNil)(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=r)),this.isStroke()&&n>0&&((0,x.isNil)(i)||1===i||(t.globalAlpha=i),this.stroke(t)),this.afterDrawPath(t)},e.prototype.createPath=function(t){},e.prototype.afterDrawPath=function(t){},e.prototype.isInShape=function(t,e){var n=this.isStroke(),r=this.isFill(),i=this.getHitLineWidth();return this.isInStrokeOrPath(t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t.lineWidth+t.lineAppendWidth},e}(oa);const $l=ql;const Kl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,b.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,b.__assign)((0,b.__assign)({},e),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),a=o.x,s=o.y,u=o.r,l=i/2,c=dl(a,s,t,e);return r&&n?c<=u+l:r?c<=u:!!n&&(c>=u-l&&c<=u+l)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.r;t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1),t.closePath()},e}($l);function Zl(t,e,n,r){return t/(n*n)+e/(r*r)}const Ql=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,b.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,b.__assign)((0,b.__assign)({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),a=i/2,s=o.x,u=o.y,l=o.rx,c=o.ry,h=(t-s)*(t-s),d=(e-u)*(e-u);return r&&n?Zl(h,d,l+a,c+a)<=1:r?Zl(h,d,l,c)<=1:!!n&&(Zl(h,d,l-a,c-a)>=1&&Zl(h,d,l+a,c+a)<=1)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.rx,o=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(n,r,i,o,0,0,2*Math.PI,!1);else{var a=i>o?i:o,s=i>o?1:i/o,u=i>o?o/i:1;t.save(),t.translate(n,r),t.scale(s,u),t.arc(0,0,a,0,2*Math.PI),t.restore(),t.closePath()}},e}($l);function Jl(t){return t instanceof HTMLElement&&(0,x.isString)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var tc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,b.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,b.__assign)((0,b.__assign)({},e),{x:0,y:0,width:0,height:0})},e.prototype.initAttrs=function(t){this._setImage(t.img)},e.prototype.isStroke=function(){return!1},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._afterLoading=function(){if(!0===this.get("toDraw")){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},e.prototype._setImage=function(t){var e=this,n=this.attrs;if((0,x.isString)(t)){var r=new Image;r.onload=function(){if(e.destroyed)return!1;e.attr("img",r),e.set("loading",!1),e._afterLoading();var t=e.get("callback");t&&t.call(e)},r.crossOrigin="Anonymous",r.src=t,this.set("loading",!0)}else t instanceof Image?(n.width||(n.width=t.width),n.height||(n.height=t.height)):Jl(t)&&(n.width||(n.width=Number(t.getAttribute("width"))),n.height||(n.height,Number(t.getAttribute("height"))))},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"img"===e&&this._setImage(n)},e.prototype.createPath=function(t){if(this.get("loading"))return this.set("toDraw",!0),void this.set("context",t);var e=this.attr(),n=e.x,r=e.y,i=e.width,o=e.height,a=e.sx,s=e.sy,u=e.swidth,l=e.sheight,c=e.img;(c instanceof Image||Jl(c))&&((0,x.isNil)(a)||(0,x.isNil)(s)||(0,x.isNil)(u)||(0,x.isNil)(l)?t.drawImage(c,n,r,i,o):t.drawImage(c,a,s,u,l,n,r,i,o))},e}($l);const ec=tc;function nc(t,e,n,r,i,o,a){var s=Math.min(t,n),u=Math.max(t,n),l=Math.min(e,r),c=Math.max(e,r),h=i/2;return o>=s-h&&o<=u+h&&a>=l-h&&a<=c+h&&ma.pointToLine(t,e,n,r,o,a)<=i/2}var rc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,b.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,b.__assign)((0,b.__assign)({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2,o=t.startArrow,a=t.endArrow;o&&Ol(this,t,r,i,e,n),a&&Ll(this,t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){if(!n||!i)return!1;var o=this.attr();return nc(o.x1,o.y1,o.x2,o.y2,i,t,e)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.startArrow,s=e.endArrow,u={dx:0,dy:0},l={dx:0,dy:0};a&&a.d&&(u=Pl(n,r,i,o,e.startArrow.d)),s&&s.d&&(l=Pl(n,r,i,o,e.endArrow.d)),t.beginPath(),t.moveTo(n+u.dx,r+u.dy),t.lineTo(i-l.dx,o-l.dy)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2;return ma.length(e,n,r,i)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2;return ma.pointAt(n,r,i,o,t)},e}($l);const ic=rc;var oc={circle:function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]},"triangle-down":function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},ac=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,b.__extends)(e,t),e.prototype.initAttrs=function(t){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["symbol","x","y","r","radius"].indexOf(e)&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(t){return(0,x.isNil)(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t,n,r=this.attr(),i=r.x,o=r.y,a=r.symbol||"circle",s=this._getR(r);if((0,x.isFunction)(a))n=ts(n=(t=a)(i,o,s));else{if(!(t=e.Symbols[a]))return console.warn(a+" marker is not supported."),null;n=t(i,o,s)}return n},e.prototype.createPath=function(t){Hl(this,t,{path:this._getPath()},this.get("paramsCache"))},e.Symbols=oc,e}($l);const sc=ac;function uc(t,e,n){var r=ja();return t.createPath(r),r.isPointInPath(e,n)}var lc=1e-6;function cc(t){return Math.abs(t)0!=cc(s[1]-n)>0&&cc(e-(n-a[1])*(a[0]-s[0])/(a[1]-s[1])-a[0])<0&&(r=!r)}return r}function fc(t,e,n,r,i,o,a,s){var u=(Math.atan2(s-e,a-t)+2*Math.PI)%(2*Math.PI);if(ui)return!1;var l={x:t+n*Math.cos(u),y:e+n*Math.sin(u)};return dl(l.x,l.y,a,s)<=o/2}var pc=N;const mc=(0,b.__assign)({hasArc:function(t){for(var e=!1,n=t.length,r=0;r0&&r.push(i),{polygons:n,polylines:r}},isPointInStroke:function(t,e,n,r,i){for(var o=!1,a=e/2,s=0;sv?g:v,S=pc(null,[["t",-p,-m],["r",-x],["s",1/(g>v?1:g/v),1/(g>v?v/g:1)]]);re.transformMat3(w,w,S),o=fc(0,0,_,y,b,e,w[0],w[1])}if(o)break}}return o}},a);function gc(t,e,n){for(var r=!1,i=0;i=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)}));var o=i[n];if((0,x.isNil)(o)||(0,x.isNil)(n))return null;var a=o.length,s=i[n+1];return Ta.pointAt(o[a-2],o[a-1],s[1],s[2],s[3],s[4],s[5],s[6],e)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",mc.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,r,i=0,o=0,a=[],s=this.get("curve");s&&((0,x.each)(s,(function(t,e){n=s[e+1],r=t.length,n&&(i+=Ta.length(t[r-2],t[r-1],n[1],n[2],n[3],n[4],n[5],n[6])||0)})),this.set("totalLength",i),0!==i?((0,x.each)(s,(function(u,l){n=s[l+1],r=u.length,n&&((t=[])[0]=o/i,e=Ta.length(u[r-2],u[r-1],n[1],n[2],n[3],n[4],n[5],n[6]),o+=e||0,t[1]=o/i,a.push(t))})),this.set("tCache",a)):this.set("tCache",[]))},e.prototype.getStartTangent=function(){var t,e=this.getSegments();if(e.length>1){var n=e[0].currentPoint,r=e[1].currentPoint,i=e[1].startTangent;t=[],i?(t.push([n[0]-i[0],n[1]-i[1]]),t.push([n[0],n[1]])):(t.push([r[0],r[1]]),t.push([n[0],n[1]]))}return t},e.prototype.getEndTangent=function(){var t,e=this.getSegments(),n=e.length;if(n>1){var r=e[n-2].currentPoint,i=e[n-1].currentPoint,o=e[n-1].endTangent;t=[],o?(t.push([i[0]-o[0],i[1]-o[1]]),t.push([i[0],i[1]])):(t.push([r[0],r[1]]),t.push([i[0],i[1]]))}return t},e}($l);const yc=vc;function bc(t,e,n,r,i){var o=t.length;if(o<2)return!1;for(var a=0;a=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),ma.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,r,i=0,o=[];(0,x.each)(t,(function(a,s){t[s+1]&&((n=[])[0]=i/e,r=ma.length(a[0],a[1],t[s+1][0],t[s+1][1]),i+=r,n[1]=i/e,o.push(n))})),this.set("tCache",o)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}($l);const _c=wc;const Sc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,b.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,b.__assign)((0,b.__assign)({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),a=o.x,s=o.y,u=o.width,l=o.height,c=o.radius;if(c){var h=!1;return n&&(h=function(t,e,n,r,i,o,a,s){return nc(t+i,e,t+n-i,e,o,a,s)||nc(t+n,e+i,t+n,e+r-i,o,a,s)||nc(t+n-i,e+r,t+i,e+r,o,a,s)||nc(t,e+r-i,t,e+i,o,a,s)||fc(t+n-i,e+i,i,1.5*Math.PI,2*Math.PI,o,a,s)||fc(t+n-i,e+r-i,i,0,.5*Math.PI,o,a,s)||fc(t+i,e+r-i,i,.5*Math.PI,Math.PI,o,a,s)||fc(t+i,e+i,i,Math.PI,1.5*Math.PI,o,a,s)}(a,s,u,l,c,i,t,e)),!h&&r&&(h=uc(this,t,e)),h}var d=i/2;return r&&n?fl(a-d,s-d,u+d,l+d,t,e):r?fl(a,s,u,l,t,e):n?function(t,e,n,r,i,o,a){var s=i/2;return fl(t-s,e-s,n,i,o,a)||fl(t+n-s,e-s,i,r,o,a)||fl(t+s,e+r-s,n,i,o,a)||fl(t-s,e+s,i,r,o,a)}(a,s,u,l,i,t,e):void 0},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.width,o=e.height,a=e.radius;if(t.beginPath(),0===a)t.rect(n,r,i,o);else{var s=function(t){var e=0,n=0,r=0,i=0;return(0,x.isArray)(t)?1===t.length?e=n=r=i=t[0]:2===t.length?(e=r=t[0],n=i=t[1]):3===t.length?(e=t[0],n=i=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],i=t[3]):e=n=r=i=t,[e,n,r,i]}(a),u=s[0],l=s[1],c=s[2],h=s[3];t.moveTo(n+u,r),t.lineTo(n+i-l,r),0!==l&&t.arc(n+i-l,r+l,l,-Math.PI/2,0),t.lineTo(n+i,r+o-c),0!==c&&t.arc(n+i-c,r+o-c,c,0,Math.PI/2),t.lineTo(n+h,r+o),0!==h&&t.arc(n+h,r+o-h,h,Math.PI/2,Math.PI),t.lineTo(n,r+u),0!==u&&t.arc(n+u,r+u,u,Math.PI,1.5*Math.PI),t.closePath()}},e}($l);var Ec=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,b.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,b.__assign)((0,b.__assign)({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.isOnlyHitBox=function(){return!0},e.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text)},e.prototype._assembleFont=function(){var t=this.attrs;t.font=Ha(t)},e.prototype._setText=function(t){var e=null;(0,x.isString)(t)&&-1!==t.indexOf("\n")&&(e=t.split("\n")),this.set("textArr",e)},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),e.startsWith("font")&&this._assembleFont(),"text"===e&&this._setText(n)},e.prototype._getSpaceingY=function(){var t=this.attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},e.prototype._drawTextArr=function(t,e,n){var r,i=this.attrs,o=i.textBaseline,a=i.x,s=i.y,u=1*i.fontSize,l=this._getSpaceingY(),c=Va(i.text,i.fontSize,i.lineHeight);(0,x.each)(e,(function(e,i){r=s+i*(l+u)-c+u,"middle"===o&&(r+=c-u-(c-u)/2),"top"===o&&(r+=c-u),(0,x.isNil)(e)||(n?t.fillText(e,a,r):t.strokeText(e,a,r))}))},e.prototype._drawText=function(t,e){var n=this.attr(),r=n.x,i=n.y,o=this.get("textArr");if(o)this._drawTextArr(t,o,e);else{var a=n.text;(0,x.isNil)(a)||(e?t.fillText(a,r,i):t.strokeText(a,r,i))}},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,o=e.fillOpacity;this.isStroke()&&n>0&&((0,x.isNil)(i)||1===i||(t.globalAlpha=r),this.stroke(t)),this.isFill()&&((0,x.isNil)(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=r)),this.afterDrawPath(t)},e.prototype.fill=function(t){this._drawText(t,!0)},e.prototype.stroke=function(t){this._drawText(t,!1)},e}($l);const Ac=Ec;function Mc(t,e,n){var r,i,o=t.getTotalMatrix();if(o){var a=(r=[e,n,1],(i=o)?_r(Sr(i),r):r);return[a[0],a[1]]}return[e,n]}function Cc(t,e,n){if(t.isCanvas&&t.isCanvas())return!0;if(!ar(t)||!1===t.cfg.isInView)return!1;if(t.cfg.clipShape){var r=Mc(t,e,n),i=r[0],o=r[1];if(t.isClipped(i,o))return!1}var a=t.cfg.cacheCanvasBBox||t.getCanvasBBox();return e>=a.minX&&e<=a.maxX&&n>=a.minY&&n<=a.maxY}function Tc(t,e,n){if(!Cc(t,e,n))return null;for(var r=null,i=t.getChildren(),o=i.length-1;o>=0;o--){var a=i[o];if(a.isGroup())r=Tc(a,e,n);else if(Cc(a,e,n)){var s=a,u=Mc(a,e,n),l=u[0],c=u[1];s.isInShape(l,c)&&(r=a)}if(r)break}return r}var kc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,b.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.renderer="canvas",e.autoDraw=!0,e.localRefresh=!0,e.refreshElements=[],e.clipView=!0,e.quickHit=!1,e},e.prototype.onCanvasChange=function(t){"attr"!==t&&"sort"!==t&&"changeSize"!==t||(this.set("refreshElements",[this]),this.draw())},e.prototype.getShapeBase=function(){return d},e.prototype.getGroupBase=function(){return Yl},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||(window?window.devicePixelRatio:1);return t>=1?Math.ceil(t):1},e.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},e.prototype.createDom=function(){var t=document.createElement("canvas"),e=t.getContext("2d");return this.set("context",e),t},e.prototype.setDOMSize=function(e,n){t.prototype.setDOMSize.call(this,e,n);var r=this.get("context"),i=this.get("el"),o=this.getPixelRatio();i.width=o*e,i.height=o*n,o>1&&r.scale(o,o)},e.prototype.clear=function(){t.prototype.clear.call(this),this._clearFrame();var e=this.get("context"),n=this.get("el");e.clearRect(0,0,n.width,n.height)},e.prototype.getShape=function(e,n){return this.get("quickHit")?Tc(this,e,n):t.prototype.getShape.call(this,e,n,null)},e.prototype._getRefreshRegion=function(){var t,e=this.get("refreshElements"),n=this.getViewRange();e.length&&e[0]===this?t=n:(t=function(t){if(!t.length)return null;var e=[],n=[],r=[],i=[];return(0,x.each)(t,(function(t){var o=Wl(t);o&&(e.push(o.minX),n.push(o.minY),r.push(o.maxX),i.push(o.maxY))})),{minX:(0,x.min)(e),minY:(0,x.min)(n),maxX:(0,x.max)(r),maxY:(0,x.max)(i)}}(e),t&&(t.minX=Math.floor(t.minX),t.minY=Math.floor(t.minY),t.maxX=Math.ceil(t.maxX),t.maxY=Math.ceil(t.maxY),t.maxY+=1,this.get("clipView")&&(t=function(t,e){return t&&e&&pl(t,e)?{minX:Math.max(t.minX,e.minX),minY:Math.max(t.minY,e.minY),maxX:Math.min(t.maxX,e.maxX),maxY:Math.min(t.maxY,e.maxY)}:null}(t,n))));return t},e.prototype.refreshElement=function(t){this.get("refreshElements").push(t)},e.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&((0,x.clearAnimationFrame)(t),this.set("drawFrame",null),this.set("refreshElements",[]))},e.prototype.draw=function(){var t=this.get("drawFrame");this.get("autoDraw")&&t||this._startDraw()},e.prototype._drawAll=function(){var t=this.get("context"),e=this.get("el"),n=this.getChildren();t.clearRect(0,0,e.width,e.height),Dl(t,this),zl(t,n),this.set("refreshElements",[])},e.prototype._drawRegion=function(){var t=this.get("context"),e=this.get("refreshElements"),n=this.getChildren(),r=this._getRefreshRegion();r?(t.clearRect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.save(),t.beginPath(),t.rect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.clip(),Dl(t,this),Fl(this,n,r),zl(t,n,r),t.restore()):e.length&&Ul(e),(0,x.each)(e,(function(t){t.get("hasChanged")&&t.set("hasChanged",!1)})),this.set("refreshElements",[])},e.prototype._startDraw=function(){var t=this,e=this.get("drawFrame"),n=this.get("drawFrameCallback");e||(e=(0,x.requestAnimationFrame)((function(){t.get("localRefresh")?t._drawRegion():t._drawAll(),t.set("drawFrame",null),n&&n()})),this.set("drawFrame",e))},e.prototype.skipDraw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.width=0,t.height=0,t.parentNode.removeChild(t)},e}(ra);const Ic=kc;var Nc={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},Pc={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"};function Oc(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Lc(t){var e=Nc[t.type],n=t.getParent();if(!e)throw new Error("the type "+t.type+" is not supported by svg");var r=Oc(e);if(t.get("id")&&(r.id=t.get("id")),t.set("el",r),t.set("attrs",{}),n){var i=n.get("el");i||(i=n.createDom(),n.set("el",i)),i.appendChild(r)}return r}function Rc(t,e){var n=t.get("el"),r=(0,x.toArray)(n.children).sort(e),i=document.createDocumentFragment();r.forEach((function(t){i.appendChild(t)})),n.appendChild(i)}function Dc(t){var e=t.attr().matrix;if(e){for(var n=t.cfg.el,r=[],i=0;i<9;i+=3)r.push(e[i]+","+e[i+1]);-1===(r=r.join(",")).indexOf("NaN")?n.setAttribute("transform","matrix("+r+")"):console.warn("invalid matrix:",e)}}function zc(t,e){var n=t.getClip(),r=t.get("el");if(n){if(n&&!r.hasAttribute("clip-path")){Lc(n),n.createPath(e);var i=e.addClip(n);r.setAttribute("clip-path","url(#"+i+")")}}else r.removeAttribute("clip-path")}function Fc(t,e){e.forEach((function(e){e.draw(t)}))}function Bc(t,e){var n=t.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context"),i=t.getParent(),o=i?i.getChildren():[n],a=t.get("el");if("remove"===e)if(t.get("isClipShape")){var s=a&&a.parentNode,u=s&&s.parentNode;s&&u&&u.removeChild(s)}else a&&a.parentNode&&a.parentNode.removeChild(a);else if("show"===e)a.setAttribute("visibility","visible");else if("hide"===e)a.setAttribute("visibility","hidden");else if("zIndex"===e)!function(t,e){var n=t.parentNode,r=Array.from(n.childNodes).filter((function(t){return 1===t.nodeType&&"defs"!==t.nodeName.toLowerCase()})),i=r[e],o=r.indexOf(t);if(i){if(o>e)n.insertBefore(t,i);else if(o0&&(e?"stroke"in n?this._setColor(t,"stroke",o):"strokeStyle"in n&&this._setColor(t,"stroke",a):this._setColor(t,"stroke",o||a),u&&c.setAttribute(Pc.strokeOpacity,u),l&&c.setAttribute(Pc.lineWidth,l))},e.prototype._setColor=function(t,e,n){var r=this.get("el");if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n))(i=t.find("gradient",n))||(i=t.addGradient(n)),r.setAttribute(Pc[e],"url(#"+i+")");else if(/^[p,P]{1}[\s]*\(/.test(n)){var i;(i=t.find("pattern",n))||(i=t.addPattern(n)),r.setAttribute(Pc[e],"url(#"+i+")")}else r.setAttribute(Pc[e],n);else r.setAttribute(Pc[e],"none")},e.prototype.shadow=function(t,e){var n=this.attr(),r=e||n,i=r.shadowOffsetX,o=r.shadowOffsetY,a=r.shadowBlur,s=r.shadowColor;(i||o||a||s)&&function(t,e){var n=t.cfg.el,r=t.attr(),i={dx:r.shadowOffsetX,dy:r.shadowOffsetY,blur:r.shadowBlur,color:r.shadowColor};if(i.dx||i.dy||i.blur||i.color){var o=e.find("filter",i);o||(o=e.addShadow(i)),n.setAttribute("filter","url(#"+o+")")}else n.removeAttribute("filter")}(this,t)},e.prototype.transform=function(t){var e=this.attr();(t||e).matrix&&Dc(this)},e.prototype.isInShape=function(t,e){return this.isPointInPath(t,e)},e.prototype.isPointInPath=function(t,e){var n=this.get("el"),r=this.get("canvas").get("el").getBoundingClientRect(),i=t+r.left,o=e+r.top,a=document.elementFromPoint(i,o);return!(!a||!a.isEqualNode(n))},e.prototype.getHitLineWidth=function(){var t=this.attrs,e=t.lineWidth,n=t.lineAppendWidth;return this.isStroke()?e+n:0},e}(oa);const Hc=Vc;var Gc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle",e.canFill=!0,e.canStroke=!0,e}return(0,b.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,b.__assign)((0,b.__assign)({},e),{x:0,y:0,r:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,x.each)(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):Pc[e]&&r.setAttribute(Pc[e],t)}))},e}(Hc);const Wc=Gc;var Xc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dom",e.canFill=!1,e.canStroke=!1,e}return(0,b.__extends)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");if((0,x.each)(e||n,(function(t,e){Pc[e]&&r.setAttribute(Pc[e],t)})),"function"==typeof n.html){var i=n.html.call(this,n);if(i instanceof Element||i instanceof HTMLDocument){for(var o=r.childNodes,a=o.length-1;a>=0;a--)r.removeChild(o[a]);r.appendChild(i)}else r.innerHTML=i}else r.innerHTML=n.html},e}(Hc);const Yc=Xc;var qc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ellipse",e.canFill=!0,e.canStroke=!0,e}return(0,b.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,b.__assign)((0,b.__assign)({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,x.each)(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):Pc[e]&&r.setAttribute(Pc[e],t)}))},e}(Hc);const $c=qc;var Kc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="image",e.canFill=!1,e.canStroke=!1,e}return(0,b.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,b.__assign)((0,b.__assign)({},e),{x:0,y:0,width:0,height:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");(0,x.each)(e||r,(function(t,e){"img"===e?n._setImage(r.img):Pc[e]&&i.setAttribute(Pc[e],t)}))},e.prototype.setAttr=function(t,e){this.attrs[t]=e,"img"===t&&this._setImage(e)},e.prototype._setImage=function(t){var e=this.attr(),n=this.get("el");if((0,x.isString)(t))n.setAttribute("href",t);else if(t instanceof window.Image)e.width||(n.setAttribute("width",t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",t.height),this.attr("height",t.height)),n.setAttribute("href",t.src);else if(t instanceof HTMLElement&&(0,x.isString)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase())n.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var r=document.createElement("canvas");r.setAttribute("width",""+t.width),r.setAttribute("height",""+t.height),r.getContext("2d").putImageData(t,0,0),e.width||(n.setAttribute("width",""+t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",""+t.height),this.attr("height",t.height)),n.setAttribute("href",r.toDataURL())}},e}(Hc);const Zc=Kc;var Qc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e.canFill=!1,e.canStroke=!0,e}return(0,b.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,b.__assign)((0,b.__assign)({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,x.each)(e||n,(function(e,i){if("startArrow"===i||"endArrow"===i)if(e){var o=(0,x.isObject)(e)?t.addArrow(n,Pc[i]):t.getDefaultArrow(n,Pc[i]);r.setAttribute(Pc[i],"url(#"+o+")")}else r.removeAttribute(Pc[i]);else Pc[i]&&r.setAttribute(Pc[i],e)}))},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2;return ma.length(e,n,r,i)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2;return ma.pointAt(n,r,i,o,t)},e}(Hc);const Jc=Qc;var th={circle:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["z"]]},triangleDown:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}};const eh={get:function(t){return th[t]},register:function(t,e){th[t]=e},remove:function(t){delete th[t]},getAll:function(){return th}};var nh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="marker",e.canFill=!0,e.canStroke=!0,e}return(0,b.__extends)(e,t),e.prototype.createPath=function(t){this.get("el").setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return(0,x.isArray)(t)?t.map((function(t){return t.join(" ")})).join(""):t},e.prototype._getPath=function(){var t,e=this.attr(),n=e.x,r=e.y,i=e.r||e.radius,o=e.symbol||"circle";return(t=(0,x.isFunction)(o)?o:eh.get(o))?t(n,r,i):(console.warn(t+" symbol is not exist."),null)},e.symbolsFactory=eh,e}(Hc);const rh=nh;var ih=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="path",e.canFill=!0,e.canStroke=!0,e}return(0,b.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,b.__assign)((0,b.__assign)({},e),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");(0,x.each)(e||r,(function(e,o){if("path"===o&&(0,x.isArray)(e))i.setAttribute("d",n._formatPath(e));else if("startArrow"===o||"endArrow"===o)if(e){var a=(0,x.isObject)(e)?t.addArrow(r,Pc[o]):t.getDefaultArrow(r,Pc[o]);i.setAttribute(Pc[o],"url(#"+a+")")}else i.removeAttribute(Pc[o]);else Pc[o]&&i.setAttribute(Pc[o],e)}))},e.prototype._formatPath=function(t){var e=t.map((function(t){return t.join(" ")})).join("");return~e.indexOf("NaN")?"":e},e.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null},e.prototype.getPoint=function(t){var e=this.get("el"),n=this.getTotalLength();if(0===n)return null;var r=e?e.getPointAtLength(t*n):null;return r?{x:r.x,y:r.y}:null},e}(Hc);const oh=ih;var ah=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.canFill=!0,e.canStroke=!0,e}return(0,b.__extends)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,x.each)(e||n,(function(t,e){"points"===e&&(0,x.isArray)(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):Pc[e]&&r.setAttribute(Pc[e],t)}))},e}(Hc);const sh=ah;var uh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polyline",e.canFill=!0,e.canStroke=!0,e}return(0,b.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,b.__assign)((0,b.__assign)({},e),{startArrow:!1,endArrow:!1})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,x.each)(e||n,(function(t,e){"points"===e&&(0,x.isArray)(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):Pc[e]&&r.setAttribute(Pc[e],t)}))},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return(0,x.isNil)(e)?(this.set("totalLength",za(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,r=this.attr().points,i=this.get("tCache");return i||(this._setTcache(),i=this.get("tCache")),(0,x.each)(i,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),ma.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,r,i=0,o=[];(0,x.each)(t,(function(a,s){t[s+1]&&((n=[])[0]=i/e,r=ma.length(a[0],a[1],t[s+1][0],t[s+1][1]),i+=r,n[1]=i/e,o.push(n))})),this.set("tCache",o)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(Hc);const lh=uh;var ch=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rect",e.canFill=!0,e.canStroke=!0,e}return(0,b.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,b.__assign)((0,b.__assign)({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el"),o=!1,a=["x","y","width","height","radius"];(0,x.each)(e||r,(function(t,e){-1===a.indexOf(e)||o?-1===a.indexOf(e)&&Pc[e]&&i.setAttribute(Pc[e],t):(i.setAttribute("d",n._assembleRect(r)),o=!0)}))},e.prototype._assembleRect=function(t){var e=t.x,n=t.y,r=t.width,i=t.height,o=t.radius;if(!o)return"M "+e+","+n+" l "+r+",0 l 0,"+i+" l"+-r+" 0 z";var a=function(t){var e=0,n=0,r=0,i=0;return(0,x.isArray)(t)?1===t.length?e=n=r=i=t[0]:2===t.length?(e=r=t[0],n=i=t[1]):3===t.length?(e=t[0],n=i=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],i=t[3]):e=n=r=i=t,{r1:e,r2:n,r3:r,r4:i}}(o);return(0,x.isArray)(o)?1===o.length?a.r1=a.r2=a.r3=a.r4=o[0]:2===o.length?(a.r1=a.r3=o[0],a.r2=a.r4=o[1]):3===o.length?(a.r1=o[0],a.r2=a.r4=o[1],a.r3=o[2]):(a.r1=o[0],a.r2=o[1],a.r3=o[2],a.r4=o[3]):a.r1=a.r2=a.r3=a.r4=o,[["M "+(e+a.r1)+","+n],["l "+(r-a.r1-a.r2)+",0"],["a "+a.r2+","+a.r2+",0,0,1,"+a.r2+","+a.r2],["l 0,"+(i-a.r2-a.r3)],["a "+a.r3+","+a.r3+",0,0,1,"+-a.r3+","+a.r3],["l "+(a.r3+a.r4-r)+",0"],["a "+a.r4+","+a.r4+",0,0,1,"+-a.r4+","+-a.r4],["l 0,"+(a.r4+a.r1-i)],["a "+a.r1+","+a.r1+",0,0,1,"+a.r1+","+-a.r1],["z"]].join(" ")},e}(Hc);const hh=ch;var dh={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},fh={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},ph={left:"left",start:"left",center:"middle",right:"end",end:"end"},mh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="text",e.canFill=!0,e.canStroke=!0,e}return(0,b.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,b.__assign)((0,b.__assign)({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");this._setFont(),(0,x.each)(e||r,(function(t,e){"text"===e?n._setText(""+t):"matrix"===e&&t?Dc(n):Pc[e]&&i.setAttribute(Pc[e],t)})),i.setAttribute("paint-order","stroke"),i.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},e.prototype._setFont=function(){var t=this.get("el"),e=this.attr(),n=e.textBaseline,r=e.textAlign,i=yr();i&&"firefox"===i.name?t.setAttribute("dominant-baseline",fh[n]||"alphabetic"):t.setAttribute("alignment-baseline",dh[n]||"baseline"),t.setAttribute("text-anchor",ph[r]||"left")},e.prototype._setText=function(t){var e=this.get("el"),n=this.attr(),r=n.x,i=n.textBaseline,o=void 0===i?"bottom":i;if(t)if(~t.indexOf("\n")){var a=t.split("\n"),s=a.length-1,u="";(0,x.each)(a,(function(t,e){0===e?"alphabetic"===o?u+=''+t+"":"top"===o?u+=''+t+"":"middle"===o?u+=''+t+"":"bottom"===o?u+=''+t+"":"hanging"===o&&(u+=''+t+""):u+=''+t+""})),e.innerHTML=u}else e.innerHTML=t;else e.innerHTML=""},e}(Hc);const gh=mh;var vh=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,yh=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,bh=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function xh(t){var e=t.match(bh);if(!e)return"";var n="";return e.sort((function(t,e){return t=t.split(":"),e=e.split(":"),Number(t[0])-Number(e[0])})),(0,x.each)(e,(function(t){t=t.split(":"),n+=''})),n}var wh=function(){function t(t){this.cfg={};var e=null,n=(0,x.uniqueId)("gradient_");return"l"===t.toLowerCase()[0]?function(t,e){var n,r,i=vh.exec(t),o=(0,x.mod)((0,x.toRadian)(parseFloat(i[1])),2*Math.PI),a=i[2];o>=0&&o<.5*Math.PI?(n={x:0,y:0},r={x:1,y:1}):.5*Math.PI<=o&&o';e.innerHTML=n},t}();const Mh=Ah;var Ch=function(){function t(t,e){this.cfg={};var n=Oc("marker"),r=(0,x.uniqueId)("marker_");n.setAttribute("id",r);var i=Oc("path");i.setAttribute("stroke",t.stroke||"none"),i.setAttribute("fill",t.fill||"none"),n.appendChild(i),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=i,this.id=r;var o=t["marker-start"===e?"startArrow":"endArrow"];return this.stroke=t.stroke||"#000",!0===o?this._setDefaultPath(e,i):(this.cfg=o,this._setMarker(t.lineWidth,i)),this}return t.prototype.match=function(){return!1},t.prototype._setDefaultPath=function(t,e){var n=this.el;e.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),n.setAttribute("refX",""+10*Math.cos(Math.PI/6)),n.setAttribute("refY","5")},t.prototype._setMarker=function(t,e){var n=this.el,r=this.cfg.path,i=this.cfg.d;(0,x.isArray)(r)&&(r=r.map((function(t){return t.join(" ")})).join("")),e.setAttribute("d",r),n.appendChild(e),i&&n.setAttribute("refX",""+i/t)},t.prototype.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}();const Th=Ch;const kh=function(){function t(t){this.type="clip",this.cfg={};var e=Oc("clipPath");this.el=e,this.id=(0,x.uniqueId)("clip_"),e.id=this.id;var n=t.cfg.el;return e.appendChild(n),this.cfg=t,this}return t.prototype.match=function(){return!1},t.prototype.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}();var Ih=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i;const Nh=function(){function t(t){this.cfg={};var e=Oc("pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=Oc("image");e.appendChild(n);var r=(0,x.uniqueId)("pattern_");e.id=r,this.el=e,this.id=r,this.cfg=t;var i=Ih.exec(t)[2];n.setAttribute("href",i);var o=new Image;function a(){e.setAttribute("width",""+o.width),e.setAttribute("height",""+o.height)}return i.match(/^data:/i)||(o.crossOrigin="Anonymous"),o.src=i,o.complete?a():(o.onload=a,o.src=o.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}();var Ph=function(){function t(t){var e=Oc("defs"),n=(0,x.uniqueId)("defs_");e.id=n,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}return t.prototype.find=function(t,e){for(var n=this.children,r=null,i=0;i]*>/,Bh={tr:document.createElement("tbody"),tbody:Dh,thead:Dh,tfoot:Dh,td:zh,th:zh,"*":document.createElement("div")});var e=Fh.test(t)&&RegExp.$1;e&&e in Bh||(e="*");var n=Bh[e];t="string"==typeof t?t.replace(/(^\s*)|(\s*$)/g,""):t,n.innerHTML=""+t;var r=n.childNodes[0];return r&&n.contains(r)&&n.removeChild(r),r}var jh=n(2520),Vh=n.n(jh);function Hh(t){return Hh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hh(t)}var Gh=/^\s+/,Wh=/\s+$/;function Xh(t,e){if(e=e||{},(t=t||"")instanceof Xh)return t;if(!(this instanceof Xh))return new Xh(t,e);var n=function(t){var e={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;"string"==typeof t&&(t=function(t){t=t.replace(Gh,"").replace(Wh,"").toLowerCase();var e,n=!1;if(ld[t])t=ld[t],n=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};if(e=_d.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=_d.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=_d.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=_d.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=_d.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=_d.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=_d.hex8.exec(t))return{r:pd(e[1]),g:pd(e[2]),b:pd(e[3]),a:yd(e[4]),format:n?"name":"hex8"};if(e=_d.hex6.exec(t))return{r:pd(e[1]),g:pd(e[2]),b:pd(e[3]),format:n?"name":"hex"};if(e=_d.hex4.exec(t))return{r:pd(e[1]+""+e[1]),g:pd(e[2]+""+e[2]),b:pd(e[3]+""+e[3]),a:yd(e[4]+""+e[4]),format:n?"name":"hex8"};if(e=_d.hex3.exec(t))return{r:pd(e[1]+""+e[1]),g:pd(e[2]+""+e[2]),b:pd(e[3]+""+e[3]),format:n?"name":"hex"};return!1}(t));"object"==Hh(t)&&(Sd(t.r)&&Sd(t.g)&&Sd(t.b)?(u=t.r,l=t.g,c=t.b,e={r:255*dd(u,255),g:255*dd(l,255),b:255*dd(c,255)},a=!0,s="%"===String(t.r).substr(-1)?"prgb":"rgb"):Sd(t.h)&&Sd(t.s)&&Sd(t.v)?(r=gd(t.s),i=gd(t.v),e=function(t,e,n){t=6*dd(t,360),e=dd(e,100),n=dd(n,100);var r=Math.floor(t),i=t-r,o=n*(1-e),a=n*(1-i*e),s=n*(1-(1-i)*e),u=r%6,l=[n,a,o,o,s,n][u],c=[s,n,n,a,o,o][u],h=[o,o,s,n,n,a][u];return{r:255*l,g:255*c,b:255*h}}(t.h,r,i),a=!0,s="hsv"):Sd(t.h)&&Sd(t.s)&&Sd(t.l)&&(r=gd(t.s),o=gd(t.l),e=function(t,e,n){var r,i,o;function a(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(t=dd(t,360),e=dd(e,100),n=dd(n,100),0===e)r=i=o=n;else{var s=n<.5?n*(1+e):n+e-n*e,u=2*n-s;r=a(u,s,t+1/3),i=a(u,s,t),o=a(u,s,t-1/3)}return{r:255*r,g:255*i,b:255*o}}(t.h,r,o),a=!0,s="hsl"),t.hasOwnProperty("a")&&(n=t.a));var u,l,c;return n=hd(n),{ok:a,format:t.format||s,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function Yh(t,e,n){t=dd(t,255),e=dd(e,255),n=dd(n,255);var r,i,o=Math.max(t,e,n),a=Math.min(t,e,n),s=(o+a)/2;if(o==a)r=i=0;else{var u=o-a;switch(i=s>.5?u/(2-o-a):u/(o+a),o){case t:r=(e-n)/u+(e>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(Xh(r));return o}function ud(t,e){e=e||6;for(var n=Xh(t).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/e;e--;)a.push(Xh({h:r,s:i,v:o})),o=(o+s)%1;return a}Xh.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,n,r=this.toRgb();return t=r.r/255,e=r.g/255,n=r.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=hd(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=qh(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=qh(this._r,this._g,this._b),e=Math.round(360*t.h),n=Math.round(100*t.s),r=Math.round(100*t.v);return 1==this._a?"hsv("+e+", "+n+"%, "+r+"%)":"hsva("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=Yh(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=Yh(this._r,this._g,this._b),e=Math.round(360*t.h),n=Math.round(100*t.s),r=Math.round(100*t.l);return 1==this._a?"hsl("+e+", "+n+"%, "+r+"%)":"hsla("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(t){return $h(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,n,r,i){var o=[md(Math.round(t).toString(16)),md(Math.round(e).toString(16)),md(Math.round(n).toString(16)),md(vd(r))];if(i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*dd(this._r,255))+"%",g:Math.round(100*dd(this._g,255))+"%",b:Math.round(100*dd(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*dd(this._r,255))+"%, "+Math.round(100*dd(this._g,255))+"%, "+Math.round(100*dd(this._b,255))+"%)":"rgba("+Math.round(100*dd(this._r,255))+"%, "+Math.round(100*dd(this._g,255))+"%, "+Math.round(100*dd(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(cd[$h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+Kh(this._r,this._g,this._b,this._a),n=e,r=this._gradientType?"GradientType = 1, ":"";if(t){var i=Xh(t);n="#"+Kh(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+e+",endColorstr="+n+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1,r=this._a<1&&this._a>=0;return e||!r||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return Xh(this.toString())},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(td,arguments)},brighten:function(){return this._applyModification(ed,arguments)},darken:function(){return this._applyModification(nd,arguments)},desaturate:function(){return this._applyModification(Zh,arguments)},saturate:function(){return this._applyModification(Qh,arguments)},greyscale:function(){return this._applyModification(Jh,arguments)},spin:function(){return this._applyModification(rd,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(sd,arguments)},complement:function(){return this._applyCombination(id,arguments)},monochromatic:function(){return this._applyCombination(ud,arguments)},splitcomplement:function(){return this._applyCombination(ad,arguments)},triad:function(){return this._applyCombination(od,[3])},tetrad:function(){return this._applyCombination(od,[4])}},Xh.fromRatio=function(t,e){if("object"==Hh(t)){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]="a"===r?t[r]:gd(t[r]));t=n}return Xh(t,e)},Xh.equals=function(t,e){return!(!t||!e)&&Xh(t).toRgbString()==Xh(e).toRgbString()},Xh.random=function(){return Xh.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},Xh.mix=function(t,e,n){n=0===n?0:n||50;var r=Xh(t).toRgb(),i=Xh(e).toRgb(),o=n/100;return Xh({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},Xh.readability=function(t,e){var n=Xh(t),r=Xh(e);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},Xh.isReadable=function(t,e,n){var r,i,o=Xh.readability(t,e);switch(i=!1,(r=function(t){var e,n;e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==n&&"large"!==n&&(n="small");return{level:e,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7}return i},Xh.mostReadable=function(t,e,n){var r,i,o,a,s=null,u=0;i=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var l=0;lu&&(u=r,s=Xh(e[l]));return Xh.isReadable(t,s,{level:o,size:a})||!i?s:(n.includeFallbackColors=!1,Xh.mostReadable(t,["#fff","#000"],n))};var ld=Xh.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},cd=Xh.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(ld);function hd(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function dd(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var n=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function fd(t){return Math.min(1,Math.max(0,t))}function pd(t){return parseInt(t,16)}function md(t){return 1==t.length?"0"+t:""+t}function gd(t){return t<=1&&(t=100*t+"%"),t}function vd(t){return Math.round(255*parseFloat(t)).toString(16)}function yd(t){return pd(t)/255}var bd,xd,wd,_d=(xd="[\\s|\\(]+("+(bd="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+bd+")[,|\\s]+("+bd+")\\s*\\)?",wd="[\\s|\\(]+("+bd+")[,|\\s]+("+bd+")[,|\\s]+("+bd+")[,|\\s]+("+bd+")\\s*\\)?",{CSS_UNIT:new RegExp(bd),rgb:new RegExp("rgb"+xd),rgba:new RegExp("rgba"+wd),hsl:new RegExp("hsl"+xd),hsla:new RegExp("hsla"+wd),hsv:new RegExp("hsv"+xd),hsva:new RegExp("hsva"+wd),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function Sd(t){return!!_d.CSS_UNIT.exec(t)}var Ed=2,Ad=.16,Md=.05,Cd=.05,Td=.15,kd=5,Id=4,Nd=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Pd(t,e,n){var r;return(r=Math.round(t.h)>=60&&Math.round(t.h)<=240?n?Math.round(t.h)-Ed*e:Math.round(t.h)+Ed*e:n?Math.round(t.h)+Ed*e:Math.round(t.h)-Ed*e)<0?r+=360:r>=360&&(r-=360),r}function Od(t,e,n){return 0===t.h&&0===t.s?t.s:((r=n?t.s-Ad*e:e===Id?t.s+Ad:t.s+Md*e)>1&&(r=1),n&&e===kd&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function Ld(t,e,n){var r;return(r=n?t.v+Cd*e:t.v-Td*e)>1&&(r=1),Number(r.toFixed(2))}function Rd(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=Xh(t),i=kd;i>0;i-=1){var o=r.toHsv(),a=Xh({h:Pd(o,i,!0),s:Od(o,i,!0),v:Ld(o,i,!0)}).toHexString();n.push(a)}n.push(r.toHexString());for(var s=1;s<=Id;s+=1){var u=r.toHsv(),l=Xh({h:Pd(u,s),s:Od(u,s),v:Ld(u,s)}).toHexString();n.push(l)}return"dark"===e.theme?Nd.map((function(t){var r=t.index,i=t.opacity;return Xh.mix(e.backgroundColor||"#141414",n[r],100*i).toHexString()})):n}var Dd={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},zd={},Fd={};Object.keys(Dd).forEach((function(t){zd[t]=Rd(Dd[t]),zd[t].primary=zd[t][5],Fd[t]=Rd(Dd[t],{theme:"dark",backgroundColor:"#141414"}),Fd[t].primary=Fd[t][5]}));zd.red,zd.volcano,zd.gold,zd.orange,zd.yellow,zd.lime,zd.green,zd.cyan,zd.blue,zd.geekblue,zd.purple,zd.magenta,zd.grey;var Bd=function(t,e,n){var r=Vh()(t),i=Vh()(e);return Vh()([(1-n)*r.red()+n*i.red(),(1-n)*r.green()+n*i.green(),(1-n)*r.blue()+n*i.blue()]).rgb()},Ud=function(t,e,n,r){return void 0===e&&(e="#fff"),void 0===n&&(n="default"),void 0===r&&(r="rgb(150, 150, 150)"),"default"===n?function(t,e,n){void 0===e&&(e="#fff"),void 0===n&&(n="rgb(150, 150, 150)");var r=Bd(e,t,.05).rgb().toString(),i=Bd(e,t,.1).rgb().toString(),o=Bd(e,t,.2).rgb().toString(),a=Bd(e,t,.4).rgb().toString(),s=Bd(e,n,.02).rgb().toString(),u=Bd(e,n,.05).rgb().toString(),l=Bd(e,n,.1).rgb().toString(),c=Bd(e,n,.2).rgb().toString(),h=Bd(e,n,.3).rgb().toString(),d=Rd(t,{theme:"default",backgroundColor:e}),f=Vh()(t).hex().toLowerCase(),p=d.indexOf(f),m=t;return-1!==p&&(m=d[p+1]),{mainStroke:t,mainFill:i,activeStroke:t,activeFill:r,inactiveStroke:a,inactiveFill:r,selectedStroke:t,selectedFill:e,highlightStroke:m,highlightFill:o,disableStroke:h,disableFill:u,edgeMainStroke:h,edgeActiveStroke:t,edgeInactiveStroke:c,edgeSelectedStroke:t,edgeHighlightStroke:t,edgeDisableStroke:l,comboMainStroke:h,comboMainFill:s,comboActiveStroke:t,comboActiveFill:r,comboInactiveStroke:h,comboInactiveFill:s,comboSelectedStroke:t,comboSelectedFill:s,comboHighlightStroke:m,comboHighlightFill:s,comboDisableStroke:c,comboDisableFill:u}}(t,e,"rgb(150, 150, 150)"):function(t,e,n){void 0===e&&(e="#fff"),void 0===n&&(n="#777");var r=Bd(e,t,.2).rgb().toString(),i=Bd(e,t,.3).rgb().toString(),o=Bd(e,t,.6).rgb().toString(),a=Bd(e,t,.8).rgb().toString(),s=Bd(e,n,.2).rgb().toString(),u=Bd(e,n,.25).rgb().toString(),l=Bd(e,n,.3).rgb().toString(),c=Bd(e,n,.4).rgb().toString(),h=Bd(e,n,.5).rgb().toString(),d=Rd(t,{theme:"dark",backgroundColor:e}),f=Vh()(t).hex().toLowerCase(),p=d.indexOf(f),m=t;return-1!==p&&(m=d[p+1]),{mainStroke:a,mainFill:r,activeStroke:t,activeFill:i,inactiveStroke:a,inactiveFill:r,selectedStroke:t,selectedFill:r,highlightStroke:t,highlightFill:o,disableStroke:h,disableFill:u,edgeMainStroke:n,edgeActiveStroke:t,edgeInactiveStroke:n,edgeSelectedStroke:t,edgeHighlightStroke:t,edgeDisableStroke:l,comboMainStroke:c,comboMainFill:u,comboActiveStroke:t,comboActiveFill:s,comboInactiveStroke:c,comboInactiveFill:u,comboSelectedStroke:t,comboSelectedFill:s,comboHighlightStroke:m,comboHighlightFill:u,comboDisableStroke:c,comboDisableFill:s}}(t,e,"#777")},jd=function(t,e,n,r){void 0===e&&(e="#fff"),void 0===n&&(n="default"),void 0===r&&(r="rgb(150, 150, 150)");var i=[];return t.forEach((function(t){i.push(Ud(t,e,n,r))})),i},Vd="rgb(0, 0, 0)",Hd=Ud("rgb(95, 149, 255)","rgb(255, 255, 255)");const Gd={version:"0.8.23",rootContainerClassName:"root-container",nodeContainerClassName:"node-container",edgeContainerClassName:"edge-container",comboContainerClassName:"combo-container",delegateContainerClassName:"delegate-container",defaultLoopPosition:"top",nodeLabel:{style:{fill:"#000",fontSize:12,textAlign:"center",textBaseline:"middle"},offset:4},defaultNode:{type:"circle",style:{lineWidth:1,stroke:Hd.mainStroke,fill:Hd.mainFill},size:20,color:Hd.mainStroke,linkPoints:{size:8,lineWidth:1,fill:Hd.activeFill,stroke:Hd.activeStroke}},nodeStateStyles:{active:{fill:Hd.activeFill,stroke:Hd.activeStroke,lineWidth:2,shadowColor:Hd.mainStroke,shadowBlur:10},selected:{fill:Hd.selectedFill,stroke:Hd.selectedStroke,lineWidth:4,shadowColor:Hd.selectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{fill:Hd.highlightFill,stroke:Hd.highlightStroke,lineWidth:2,"text-shape":{fontWeight:500}},inactive:{fill:Hd.inactiveFill,stroke:Hd.inactiveStroke,lineWidth:1},disable:{fill:Hd.disableFill,stroke:Hd.disableStroke,lineWidth:1}},edgeLabel:{style:{fill:Vd,textAlign:"center",textBaseline:"middle",fontSize:12}},defaultEdge:{type:"line",size:1,style:{stroke:Hd.edgeMainStroke,lineAppendWidth:2},color:Hd.edgeMainStroke},edgeStateStyles:{active:{stroke:Hd.edgeActiveStroke,lineWidth:1},selected:{stroke:Hd.edgeSelectedStroke,lineWidth:2,shadowColor:Hd.edgeSelectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{stroke:Hd.edgeHighlightStroke,lineWidth:2,"text-shape":{fontWeight:500}},inactive:{stroke:Hd.edgeInactiveStroke,lineWidth:1},disable:{stroke:Hd.edgeDisableStroke,lineWidth:1}},comboLabel:{style:{fill:Vd,textBaseline:"middle",fontSize:12},refY:10,refX:10},defaultCombo:{type:"circle",style:{fill:Hd.comboMainFill,lineWidth:1,stroke:Hd.comboMainStroke,r:5,width:20,height:10},size:[20,5],color:Hd.comboMainStroke,padding:[25,20,15,20]},comboStateStyles:{active:{stroke:Hd.comboActiveStroke,lineWidth:1,fill:Hd.comboActiveFill},selected:{stroke:Hd.comboSelectedStroke,lineWidth:2,fill:Hd.comboSelectedFill,shadowColor:Hd.comboSelectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{stroke:Hd.comboHighlightStroke,lineWidth:2,fill:Hd.comboHighlightFill,"text-shape":{fontWeight:500}},inactive:{stroke:Hd.comboInactiveStroke,fill:Hd.comboInactiveFill,lineWidth:1},disable:{stroke:Hd.comboDisableStroke,fill:Hd.comboDisableFill,lineWidth:1}},delegateStyle:{fill:"#F3F9FF",fillOpacity:.5,stroke:"#1890FF",strokeOpacity:.9,lineDash:[5,5]},textWaterMarkerConfig:{width:150,height:100,compatible:!1,text:{x:0,y:60,lineHeight:20,rotate:20,fontSize:14,fontFamily:"Microsoft YaHei",fill:"rgba(0, 0, 0, 0.1)",baseline:"Middle"}},imageWaterMarkerConfig:{width:150,height:130,compatible:!1,image:{x:0,y:0,width:30,height:20,rotate:0}},waterMarkerImage:"https://gw.alipayobjects.com/os/s/prod/antv/assets/image/logo-with-text-73b8a.svg"};var Wd=function t(e,n){var r;e.isGroup()&&n.isGroup()&&(null===(r=e.get("children"))||void 0===r||r.forEach((function(e,r){var i=n.get("children")[r];t(e,i)})));var i=e.get("type"),o=n.get("type");if("image"===i&&"image"===o){var a=e.get("clipShape");a&&n.setClip({type:a.get("type"),attrs:a.attr()})}};function Xd(t,e,n){if(t){if("function"==typeof t.addEventListener)return t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}};if("function"==typeof t.attachEvent)return t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}}}var Yd=el.cloneEvent,qd=el.isViewportChanged,$d=function(t){function e(e){var n=t.call(this,e)||this;return n.extendEvents=[],n.dragging=!1,n.mousedown=!1,n.preItem=null,n.destroy(),n.graph=e,n.destroyed=!1,n.initEvents(),n}return(0,b.__extends)(e,t),e.prototype.initEvents=function(){var t=this.graph,e=this.extendEvents,n=void 0===e?[]:e,r=t.get("canvas"),i=r.get("el"),o=(0,x.wrapBehavior)(this,"onCanvasEvents"),a=(0,x.wrapBehavior)(this,"onExtendEvents"),s=(0,x.wrapBehavior)(this,"onWheelEvent");r.off("*").on("*",o),this.canvasHandler=o,n.push(Xd(i,"wheel",s)),"undefined"!=typeof window&&(n.push(Xd(window,"keydown",a)),n.push(Xd(window,"keyup",a)),n.push(Xd(window,"focus",a))),this.resetHandler&&t.off("afterchangedata",this.resetHandler),this.resetHandler=(0,x.wrapBehavior)(this,"resetStatus"),t.on("afterchangedata",this.resetHandler)},e.getItemRoot=function(t){for(;t&&!t.get("item");)t=t.get("parent");return t},e.prototype.onCanvasEvents=function(t){var n=this,r=this.graph,i=r.get("canvas"),o=t.target,a=t.type;switch(a){case"drag":this.onCanvasEvents(Object.assign({},t,{type:"mousemove"}));break;case"dragend":this.onCanvasEvents(Object.assign({},t,{type:"mouseup"}));break;case"mousedown":this.mousedown=!0;break;case"mouseup":setTimeout((function(){return n.mousedown=!1}));break;case"click":if(!this.mousedown)return}t.canvasX=t.x,t.canvasY=t.y;var s={x:t.canvasX,y:t.canvasY},u=r.get("group").getMatrix();if(u||(u=[1,0,0,0,1,0,0,0,1]),qd(u)&&(s=r.getPointByClient(t.clientX,t.clientY)),t.x=s.x,t.y=s.y,t.currentTarget=r,o===i)return"mousemove"!==a&&"mouseleave"!==a||this.handleMouseMove(t,"canvas"),t.target=i,t.item=null,r.emit(a,t),void r.emit("canvas:".concat(a),t);var l=e.getItemRoot(o);if(l){var c=l.get("item");if(!c.destroyed){var h=c.getType();if(t.target=o,t.item=c,t.canvasX===t.x&&t.canvasY===t.y){var d=r.getCanvasByPoint(t.x,t.y);t.canvasX=d.x,t.canvasY=d.y}t.name&&!t.name.includes(":")?(r.emit("".concat(h,":").concat(a),t),r.emit(a,t)):t.name&&r.emit(t.name,t),"dragstart"===a&&(this.dragging=!0),"dragend"===a&&(this.dragging=!1),"mousemove"===a&&this.handleMouseMove(t,h)}}else r.emit(a,t)},e.prototype.onExtendEvents=function(t){this.graph.emit(t.type,t)},e.prototype.onWheelEvent=function(t){(0,x.isNil)(t.wheelDelta)&&(t.wheelDelta=-t.detail),this.graph.emit("wheel",t)},e.prototype.handleMouseMove=function(t,e){var n=this.graph,r=this.preItem,i=n.get("canvas"),o=t.target===i?null:t.item;t=Yd(t),r&&r!==o&&!r.destroyed&&(t.item=r,this.emitCustomEvent(r.getType(),"mouseleave",t),this.dragging&&this.emitCustomEvent(r.getType(),"dragleave",t)),o&&r!==o&&(t.item=o,this.emitCustomEvent(e,"mouseenter",t),this.dragging&&this.emitCustomEvent(e,"dragenter",t)),this.preItem=o},e.prototype.emitCustomEvent=function(t,e,n){n.type=e,this.graph.emit("".concat(t,":").concat(e),n)},e.prototype.resetStatus=function(){this.mousedown=!1,this.dragging=!1,this.preItem=null},e.prototype.destroy=function(){var t=this,e=t.graph,n=t.canvasHandler,r=t.extendEvents;e.get("canvas").off("*",n),(0,x.each)(r,(function(t){t.remove()})),this.resetStatus(),this.extendEvents.length=0,this.canvasHandler=null,this.resetHandler=null,this.destroyed=!0},e}(ol);const Kd=$d;var Zd=n(84821),Qd=n(5802),Jd=n.n(Qd),tf=el.traverseTree,ef=function(t,e){return t?(0,x.isNumber)(t)?function(e){return t}:t:function(t){return e||1}},nf=function(t,e){var n=[],r=[],i={},o=0;for(o=0;o=0&&(o="x",i="y");var a=0;tf(t,(function(t){return a++,t.x>r.x&&(r.x=t.x),t.xr.y&&(r.y=t.y),t.yWebGL.
','Find out how to get it here.'].join("\n"):['Your browser does not seem to support WebGL.
','Find out how to get it here.'].join("\n")),t},addGetWebGLMessage:function(e){var n=void 0!==(e=e||{}).parent?e.parent:document.body,r=void 0!==e.id?e.id:"oldie",i=t().getWebGLErrorMessage();i.id=r,n.appendChild(i)}}},cf=function(){var t=navigator.userAgent.toLowerCase();return t.indexOf("firefox")>-1?"firefox":t.indexOf("safari")>-1?"safari":t.indexOf("opr")>-1?"opera":t.indexOf("chrome")>-1?"chrome":t.indexOf("trident")>-1?"ie 11":t.indexOf("ie")>-1?"ie":"unknown"};const hf=(0,b.__assign)((0,b.__assign)((0,b.__assign)((0,b.__assign)((0,b.__assign)({},el),p),m),g),v);var df=hf.radialLayout;const ff=function(){function t(t){this.type=t.type,this.radial=t.radial,this.config=t}return t.prototype.init=function(t){var e=this;this.data=t,this.radial?this.layoutMethod=function(t){var n=Jd()[e.type](t,e.config);return df(n),n}:this.layoutMethod=function(t){return Jd()[e.type](t,e.config)}},t.prototype.execute=function(){return this.layoutMethod(this.data,this.config)},t.prototype.layout=function(t){return this.init(t),this.execute()},t}();(0,Zd.registerLayout)("grid",Zd.GridLayout),(0,Zd.registerLayout)("random",Zd.RandomLayout),(0,Zd.registerLayout)("force",Zd.ForceLayout),(0,Zd.registerLayout)("circular",Zd.CircularLayout),(0,Zd.registerLayout)("dagre",Zd.DagreLayout),(0,Zd.registerLayout)("dagreCompound",Zd.DagreCompoundLayout),(0,Zd.registerLayout)("radial",Zd.RadialLayout),(0,Zd.registerLayout)("concentric",Zd.ConcentricLayout),(0,Zd.registerLayout)("mds",Zd.MDSLayout),(0,Zd.registerLayout)("fruchterman",Zd.FruchtermanLayout),(0,Zd.registerLayout)("fruchterman-gpu",Zd.FruchtermanGPULayout),(0,Zd.registerLayout)("gForce",Zd.GForceLayout),(0,Zd.registerLayout)("force2",Zd.Force2Layout),(0,Zd.registerLayout)("gForce-gpu",Zd.GForceGPULayout),(0,Zd.registerLayout)("comboForce",Zd.ComboForceLayout),(0,Zd.registerLayout)("comboCombined",Zd.ComboCombinedLayout),(0,Zd.registerLayout)("forceAtlas2",Zd.ForceAtlas2Layout);const pf=function(t,e){var n=t.toString(),r=new Blob(["importScripts('".concat(e,"');(").concat(n,")()")],{type:"text/javascript"});return new Worker(URL.createObjectURL(r))};var mf=function(t){void 0===t&&(t="https://unpkg.com/@antv/layout@0.3.23/dist/layout.min.js");var e=new pf((function(){var t="LAYOUT_RUN",e="LAYOUT_END",n="LAYOUT_ERROR",r="GPU_LAYOUT_RUN";layout.registerLayout("grid",layout.GridLayout),layout.registerLayout("random",layout.RandomLayout),layout.registerLayout("force",layout.ForceLayout),layout.registerLayout("force2",layout.Force2Layout),layout.registerLayout("circular",layout.CircularLayout),layout.registerLayout("dagre",layout.DagreLayout),layout.registerLayout("dagreCompound",layout.DagreCompoundLayout),layout.registerLayout("radial",layout.RadialLayout),layout.registerLayout("concentric",layout.ConcentricLayout),layout.registerLayout("mds",layout.MDSLayout),layout.registerLayout("fruchterman",layout.FruchtermanLayout),layout.registerLayout("fruchterman-gpu",layout.FruchtermanGPULayout),layout.registerLayout("gForce",layout.GForceLayout),layout.registerLayout("gForce-gpu",layout.GForceGPULayout),layout.registerLayout("comboForce",layout.ComboForceLayout),layout.registerLayout("comboCombined",layout.ComboCombinedLayout),layout.registerLayout("forceAtlas2",layout.ForceAtlas2Layout),onmessage=function(i){(function(e){var n=e.data.type;return n===t||n===r})(i)&&function(i){var o=this;switch(i.data.type){case t:var a,s=i.data,u=s.nodes,l=s.edges,c=s.layoutCfg,h=(g=void 0===c?{}:c).type;if(!(d=layout.getLayoutByName(h))){this.postMessage({type:n,message:"layout ".concat(h," not found")});break}g.onLayoutEnd=function(){o.postMessage({type:e,nodes:u}),null==a||a.destroy()},(a=new d(g)).init({nodes:u,edges:l}),a.execute();break;case r:var d,f=i.data,p=f.nodes,m=(l=f.edges,f.layoutCfg),g=void 0===m?{}:m,v=f.canvas;if(h=g.type,!(d=layout.getLayoutByName(h))){this.postMessage({type:n,message:"layout ".concat(h," not found")});break}if("gpu"!==h.split("-")[1]){this.postMessage({type:n,message:"layout ".concat(h," does not support GPU")});break}var y=new d(g);y.init({nodes:p,edges:l}),y.executeWithWorker(v,this)}}(i)}}),t);return e},gf="LAYOUT_RUN",vf="LAYOUT_END",yf="LAYOUT_ERROR",bf="LAYOUT_TICK",xf="GPU_LAYOUT_RUN",wf="GPU_LAYOUT_END";function _f(t){return _f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_f(t)}var Sf=function(t){return setTimeout(t,16)},Ef=function(t){return clearTimeout(t)},Af=function(t){return("undefined"!=typeof window&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame)||Sf)(t)},Mf=function(t){return("undefined"!=typeof window&&(window.cancelAnimationFrame||window.webkitCancelAnimationFrame)||Ef)(t)},Cf=["fruchterman","gForce"],Tf=["force","grid","circular"],kf=function(t){function e(e){var n=t.call(this,e)||this;return n.graph=e,n.layoutCfg=e.get("layout")||{},n.layoutType=n.getLayoutType(),n.worker=null,n.workerData={},n.initLayout(),n}return(0,b.__extends)(e,t),e.prototype.initLayout=function(){},e.prototype.getWorker=function(){return this.worker||("undefined"==typeof Worker?(console.warn("Web worker is not supported in current browser."),this.worker=null):this.worker=mf(this.layoutCfg.workerScriptURL)),this.worker},e.prototype.stopWorker=function(){var t=this.workerData;this.worker&&(this.worker.terminate(),this.worker=null,t.requestId&&(Mf(t.requestId),t.requestId=null),t.requestId2&&(Mf(t.requestId2),t.requestId2=null))},e.prototype.execLayoutMethod=function(t,e){var n=this;return new Promise((function(r,i){return(0,b.__awaiter)(n,void 0,void 0,(function(){var n,o,a,s,u,l,c,h,d;return(0,b.__generator)(this,(function(f){switch(f.label){case 0:if(!(n=this.graph)||n.get("destroyed"))return[2];o=t.type,t.onLayoutEnd=function(){n.emit("aftersublayout",{type:o}),r()},o&&this.isGPU&&(Pf(o)?o="".concat(o,"-gpu"):console.warn("The '".concat(o,"' layout does not support GPU calculation for now, it will run in CPU."))),el.isForce(o)?(a=t.onTick,s=t.animate,u=void 0===s&&("force"===o||"force2"===o),h=function(){a&&a(),(s||u)&&n.refreshPositions()},t.tick=h):"comboForce"!==o&&"comboCombined"!==o||(t.comboTrees=n.get("comboTrees")),!1;try{l=new Zd.Layouts[o](t),this.layoutMethods[e]&&this.layoutMethods[e].destroy(),this.layoutMethods[e]=l}catch(t){console.warn("The layout method: '".concat(o,"' does not exist! Please specify it first.")),i()}return l.enableTick&&(c=t.onTick,h=function(){c&&c(),n.refreshPositions()},l.tick=h),function(t,e){var n;if(!(null===(n=null==t?void 0:t.nodes)||void 0===n?void 0:n.length))return;t.nodes.forEach((function(t){t.layoutOrder=e}))}(d=this.filterLayoutData(this.data,t),e),l.init(d),n.emit("beforesublayout",{type:o}),[4,l.execute()];case 1:return f.sent(),l.isCustomLayout&&t.onLayoutEnd&&t.onLayoutEnd(),[2]}}))}))}))},e.prototype.updateLayoutMethod=function(t,e){var n=this;return new Promise((function(r,i){return(0,b.__awaiter)(n,void 0,void 0,(function(){var n,i,o,a,s,u,l;return(0,b.__generator)(this,(function(c){switch(c.label){case 0:return n=this.graph,i=null==e?void 0:e.type,e.onLayoutEnd=function(){n.emit("aftersublayout",{type:i}),r()},el.isForce(i)&&(o=e.onTick,a=e.animate,s=void 0===a&&("force"===i||"force2"===i),u=function(){null==o||o(),(a||s)&&n.refreshPositions()},e.tick=u),l=this.filterLayoutData(this.data,e),t.init(l),t.updateCfg(e),n.emit("beforesublayout",{type:i}),[4,t.execute()];case 1:return c.sent(),t.isCustomLayout&&e.onLayoutEnd&&e.onLayoutEnd(),[2]}}))}))}))},e.prototype.layout=function(t){var e,n=this,r=this.graph;if(r&&!r.get("destroyed")){this.data=this.setDataFromGraph();var i=this.data,o=i.nodes,a=i.hiddenNodes;if(!o)return!1;var s=r.get("width"),u=r.get("height"),l={};Object.assign(l,{width:s,height:u,center:[s/2,u/2]},this.layoutCfg),this.layoutCfg=l;var c=l.type,h=!1;null===(e=this.layoutMethods)||void 0===e||e.forEach((function(t){var e;return h=!!(null===(e=t.nodes)||void 0===e?void 0:e.length)||h}));var d=this.destoryLayoutMethods();r.emit("beforelayout");var f=Promise.resolve();h&&c&&1===(null==d?void 0:d.length)&&d[0]===c?this.tweakInit():f=this.initPositions(l.center,o),this.initPositions(l.center,a).then(),this.isGPU=Of(l,c);var p=l.onLayoutEnd,m=l.layoutEndFormatted,g=l.adjust;if(m||(l.layoutEndFormatted=!0,l.onAllLayoutEnd=function(){return(0,b.__awaiter)(n,void 0,void 0,(function(){return(0,b.__generator)(this,(function(t){switch(t.label){case 0:return p&&p(o),this.refreshLayout(),g&&l.pipes?[4,this.adjustPipesBox(this.data,g)]:[3,2];case 1:t.sent(),this.refreshLayout(),t.label=2;case 2:return r.emit("afterlayout"),[2]}}))}))}),this.stopWorker(),l.workerEnabled&&this.layoutWithWorker(this.data,t))return!0;var v=!1;return l.type?(v=!0,f=f.then((function(){return(0,b.__awaiter)(n,void 0,void 0,(function(){return(0,b.__generator)(this,(function(t){switch(t.label){case 0:return[4,this.execLayoutMethod(l,0)];case 1:return[2,t.sent()]}}))}))}))):l.pipes&&(v=!0,l.pipes.forEach((function(t,e){f=f.then((function(){return(0,b.__awaiter)(n,void 0,void 0,(function(){return(0,b.__generator)(this,(function(n){switch(n.label){case 0:return[4,this.execLayoutMethod(t,e)];case 1:return[2,n.sent()]}}))}))}))}))),v?f.then((function(){l.onAllLayoutEnd&&l.onAllLayoutEnd(),t&&t()})).catch((function(t){console.warn("graph layout failed,",t)})):(r.refreshPositions(),null==t||t()),!1}},e.prototype.tweakInit=function(){var t=this.data,e=this.graph,n=t.nodes,r=t.edges;if(null==n?void 0:n.length){var i={};n.forEach((function(t){var e=t.x,n=t.y;isNaN(e)||isNaN(n)||(i[t.id]={x:e,y:n},t.mass=t.mass||2)})),r.forEach((function(t){var e=t.source,n=t.target,r=i[e],o=i[n];!r&&o?i[e]={x:o.x+80*(Math.random()-.5),y:o.y+80*(Math.random()-.5)}:!o&&r&&(i[n]={x:r.x+80*(Math.random()-.5),y:r.y+80*(Math.random()-.5)})}));var o=e.get("width"),a=e.get("height");n.forEach((function(t){var e=i[t.id]||{x:o/2+20*(Math.random()-.5),y:a/2+20*(Math.random()-.5)};t.x=e.x,t.y=e.y}))}},e.prototype.initWithPreset=function(t,e){var n=this;return new Promise((function(r,i){return(0,b.__awaiter)(n,void 0,void 0,(function(){var n,i,o,a,s,u,l;return(0,b.__generator)(this,(function(c){switch(c.label){case 0:return i=(n=this).layoutCfg,o=n.data,(null==(a=i.preset)?void 0:a.type)&&Zd.Layouts[null==a?void 0:a.type]?(s=Of(a,a.type),u=s?"".concat(a.type,"-gpu"):a.type,l=new Zd.Layouts[u](a),delete i.preset,l.init(o),[4,l.execute()]):(null==e||e(),r(),[2,!1]);case 1:return c.sent(),null==t||t(),r(),[2,!0]}}))}))}))},e.prototype.layoutWithWorker=function(t,e){var n=this,r=this.layoutCfg,i=this.graph,o=this.getWorker(),a=this.workerData;if(!o)return!1;a.requestId=null,a.requestId2=null,a.currentTick=null,a.currentTickData=null,i.emit("beforelayout");var s=Promise.resolve(),u=!1;if(r.type)u=!0,s=s.then((function(){return n.runWebworker(o,t,r)}));else if(r.pipes){u=!0;for(var l=function(e){s=s.then((function(){return n.runWebworker(o,t,e)}))},c=0,h=r.pipes;c'),u=n?n.backgroundColor:void 0,l=n?n.padding:void 0;l?(0,x.isNumber)(l)&&(l=[l,l,l,l]):l=[0,0,0,0];var c=i+l[0]+l[2],h=o+l[1]+l[3],d={container:s,height:c,width:h,quickHit:!0},f="svg"===a?new Rh(d):new Ic(d),p=this.get("group").clone(),m=(0,x.clone)(p.getMatrix());m||(m=[1,0,0,0,1,0,0,0,1]);var g=(r.maxX+r.minX)/2,v=(r.maxY+r.minY)/2;m=Lf(m,[["t",-g,-v],["t",o/2+l[3],i/2+l[0]]]),p.resetMatrix(),p.setMatrix(m),f.add(p);var y=f.get("el"),b="";e||(e="image/png"),setTimeout((function(){if("svg"===a){var n=y.cloneNode(!0),r=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),i=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",r);i.replaceChild(n,i.documentElement);var o=(new XMLSerializer).serializeToString(i);b="data:image/svg+xml;charset=utf8,".concat(encodeURIComponent(o))}else{var s=void 0,l=y.getContext("2d"),d=void 0;if(u){var f="undefined"!=typeof window?window.devicePixelRatio:1;try{s=l.getImageData(0,0,h*f,c*f),d=l.globalCompositeOperation,l.globalCompositeOperation="destination-over",l.fillStyle=u,l.fillRect(0,0,h,c)}catch(t){console.error("Download image failed. Out of memory at ImageData creation")}}b=y.toDataURL(e),u&&(l.clearRect(0,0,h,c),l.putImageData(s,0,0),l.globalCompositeOperation=d)}t&&t(b)}),16)},e.prototype.downloadFullImage=function(t,e,n){var r=this,i=this.get("group").getCanvasBBox(),o=i.height,a=i.width,s=this.get("renderer"),u=Uh('
'),l=document.querySelector(".g6-graph-watermarker"),c=n?n.backgroundColor:void 0,h=n?n.padding:void 0;h?(0,x.isNumber)(h)&&(h=[h,h,h,h]):h=[0,0,0,0];var d=o+h[0]+h[2],f=a+h[1]+h[3];if(l){var p=this.get("graphWaterMarker").cfg||{},m=p.width,g=p.height;d=Math.ceil(d/g)*g,f=Math.ceil(f/m)*m}var v,y,b={container:u,height:d,width:f},w="svg"===s?new Rh(b):new Ic(b),_=this.get("group"),S=(y=(v=_).clone(),Wd(v,y),y),E=(0,x.clone)(S.getMatrix());E||(E=[1,0,0,0,1,0,0,0,1]);var A=(i.maxX+i.minX)/2,M=(i.maxY+i.minY)/2;E=Lf(E,[["t",-A,-M],["t",a/2+h[3],o/2+h[0]]]),S.resetMatrix(),S.setMatrix(E),w.add(S);var C=w.get("el");e||(e="image/png"),this.asyncToDataUrl(e,c,(function(n){var i=document.createElement("a"),o=(t||"graph")+("svg"===s?".svg":".".concat(e.split("/")[1]));r.dataURLToImage(n,s,i,o);var a=document.createEvent("MouseEvents");a.initEvent("click",!1,!1),i.dispatchEvent(a)}),f,d,C)},e.prototype.downloadImage=function(t,e,n){var r=this,i=this;i.stopAnimate();var o=i.get("canvas").getRenderer();e||(e="image/png");var a=(t||"graph")+("svg"===o?".svg":".".concat(e.split("/")[1])),s=document.createElement("a");i.asyncToDataUrl(e,n,(function(t){r.dataURLToImage(t,o,s,a);var e=document.createEvent("MouseEvents");e.initEvent("click",!1,!1),s.dispatchEvent(e)}))},e.prototype.dataURLToImage=function(t,e,n,r){if(t&&"data:"!==t){if("undefined"!=typeof window)if(window.Blob&&window.URL&&"svg"!==e){var i=t.split(","),o="";if(i&&i.length>0){var a=i[0].match(/:(.*?);/);a&&a.length>=2&&(o=a[1])}for(var s=atob(i[1]),u=s.length,l=new Uint8Array(u);u--;)l[u]=s.charCodeAt(u);var c=new Blob([l],{type:o});window.navigator.msSaveBlob?window.navigator.msSaveBlob(c,r):n.addEventListener("click",(function(){n.download=r,n.href=window.URL.createObjectURL(c)}))}else n.addEventListener("click",(function(){n.download=r,n.href=t}))}else console.error("Download image failed. The graph is too large or there is invalid attribute values in graph items")},e.prototype.addPlugin=function(t){t.destroyed||(this.get("plugins").push(t),t.initPlugin(this))},e.prototype.removePlugin=function(t){var e=this.get("plugins"),n=e.indexOf(t);n>=0&&(t.destroyPlugin(),e.splice(n,1))},e.prototype.setImageWaterMarker=function(t,e){void 0===t&&(t=Gd.waterMarkerImage);var n=this.get("container");(0,x.isString)(n)&&(n=document.getElementById(n)),n.style.position||(n.style.position="relative");var r=this.get("graphWaterMarker"),i=(0,x.deepMix)({},Gd.imageWaterMarkerConfig,e),o=i.width,a=i.height,s=i.compatible,u=i.image;if(!t){var l=s?n:document.querySelector(".g6-graph-watermarker");return l&&(l.style.cssText=void 0),void(r&&r.clear())}if(r)r.clear();else{var c={container:n,width:o,height:a,capture:!1},h=this.get("pixelRatio");h&&(c.pixelRatio=h,window.devicePixelRatio=h),r=new Ic(c),this.set("graphWaterMarker",r)}r.get("el").style.display="none";var d=r.get("context"),f=u.rotate,p=u.x,m=u.y;d.rotate(-f*Math.PI/180);var g=new Image;g.crossOrigin="anonymous",g.src=t,g.onload=function(){if(d.drawImage(g,p,m,u.width,u.height),d.rotate(f*Math.PI/180),s)n.style.cssText="background-image: url(".concat(r.get("el").toDataURL("image/png"),");background-repeat:repeat;");else{var t=document.querySelector(".g6-graph-watermarker");t||((t=document.createElement("div")).className="g6-graph-watermarker"),t.className="g6-graph-watermarker",r.destroyed||(t.style.cssText="background-image: url(".concat(r.get("el").toDataURL("image/png"),");background-repeat:repeat;position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;z-index:-1;"),n.appendChild(t))}}},e.prototype.setTextWaterMarker=function(t,e){var n=this.get("container");(0,x.isString)(n)&&(n=document.getElementById(n)),n.style.position||(n.style.position="relative");var r=this.get("graphWaterMarker"),i=(0,x.deepMix)({},Gd.textWaterMarkerConfig,e),o=i.width,a=i.height,s=i.compatible,u=i.text;if(!(null==t?void 0:t.length)){var l=s?n:document.querySelector(".g6-graph-watermarker");return l&&(l.style.cssText=void 0),void(r&&r.clear())}if(r)r.clear();else{var c={container:n,width:o,height:a,capture:!1},h=this.get("pixelRatio");h&&(c.pixelRatio=h,window.devicePixelRatio=h),r=new Ic(c),this.set("graphWaterMarker",r)}r.get("el").style.display="none";var d=r.get("context"),f=u.rotate,p=u.fill,m=u.fontFamily,g=u.fontSize,v=u.baseline,y=u.x,b=u.y,w=u.lineHeight;d.rotate(-f*Math.PI/180),d.font="".concat(g,"px ").concat(m),d.fillStyle=p,d.textBaseline=v;for(var _=(0,x.isString)(t)?[t]:t,S=_.length-1;S>=0;S--)d.fillText(_[S],y,b+S*w);if(d.rotate(f*Math.PI/180),s)n.style.cssText="background-image: url(".concat(r.get("el").toDataURL("image/png"),");background-repeat:repeat;");else{var E=document.querySelector(".g6-graph-watermarker");E||((E=document.createElement("div")).className="g6-graph-watermarker"),E.style.cssText="background-image: url(".concat(r.get("el").toDataURL("image/png"),");background-repeat:repeat;position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;z-index:99;"),n.appendChild(E)}},e.prototype.destroy=function(){var e,n,r,i;(0,x.each)(this.get("plugins"),(function(t){t.destroyPlugin()}));var o=this.get("tooltips");if(o)for(var a=0;a0)for(var l=u.length-1;l>=0;l--){var c=u[l].getModel();-1===e.indexOfChild(t.children||[],c.id)&&(i.innerRemoveChild(c.id,{x:t.x,y:t.y},r),u.splice(l,1))}o.get("originAttrs")&&(a=o.get("originAttrs").x,s=o.get("originAttrs").y);var h=o.getModel();r&&o.set("originAttrs",{x:h.x,y:h.y}),o.set("model",Object.assign(h,t.data)),a===t.x&&s===t.y||o.updatePosition({x:t.x,y:t.y})}else i.innerAddChild(t,n,r)},e.prototype.innerRemoveChild=function(t,e,n){var r=this,i=r.findById(t);if(i)if((0,x.each)(i.get("children"),(function(t){r.innerRemoveChild(t.getModel().id,e,n)})),n){var o=i.getModel();i.set("to",e),i.set("originAttrs",{x:o.x,y:o.y}),r.get("removeList").push(i)}else r.removeItem(i,!1)},e.prototype.changeData=function(t,e){void 0===e&&(e=!0);var n=this;this.getNodes().map((function(t){return n.clearItemStates(t)})),this.getEdges().map((function(t){return n.clearItemStates(t)})),e&&this.get("enabledStack")&&this.pushStack("changedata",{before:n.get("originData"),after:t||n.get("data")}),t?(n.data(t),n.render(!1)):n.layout(this.get("fitView"))},e.prototype.changeLayout=function(t){console.warn("Please call updateLayout instead of changeLayout. changeLayout will be discarded soon");this.updateLayout(t)},e.prototype.updateLayout=function(t,e,n,r){void 0===r&&(r=!0);var i=this;if(t){if(r&&this.get("enabledStack")&&this.pushStack("layout",{before:i.get("layout"),after:t}),i.set("layout",t),i.set("layoutMethod",i.getLayout()),i.layout(),e){var o=n;o||(o="begin"===e?{x:0,y:0}:{x:this.getWidth()/2,y:this.getHeight()/2}),o=this.getPointByCanvas(o.x,o.y);var a=this.getGroup().getMatrix()||[1,0,0,0,1,0,0,0,1];o.x=o.x*a[0]+a[6],o.y=o.y*a[0]+a[7];var s=this.getGroup().getCanvasBBox(),u=s.minX,l=s.maxX,c=s.minY,h={x:(u+l)/2,y:(c+s.maxY)/2};"begin"===e&&(h.x=u,h.y=c),this.translate(o.x-h.x,o.y-h.y)}}else console.warn("layout cannot be null")},e.prototype.refreshLayout=function(t){console.warn("Please call layout instead of refreshLayout. refreshLayout will be discarded soon");this.layout(t)},e.prototype.layout=function(t){var e=this,n=this,r=n.get("data"),i=n.get("layoutMethod"),o=n.get("layout"),a=r;if(null==o?void 0:o.excludeInvisibles){r=(0,x.clone)(n.get("data"));var s={};jf(r,(function(t){var n=t.children;if(!(null==n?void 0:n.length))return!0;for(var r=n.length-1;r>=0;r--){var i=e.findById(n[r].id);(i?!i.isVisible():!1===n[r].visible)&&(s[t.id]=s[t.id]||[],s[t.id].push({idx:r,child:n.splice(r,1)[0]}))}})),a=i?i(r,n.get("layout")):r,jf(a,(function(t){var e=s[t.id];if(null==e?void 0:e.length)for(var n=e.length-1;n>=0;n--){var r=e[n],i=r.idx,o=r.child;t.children.splice(i,0,o)}}))}else a=i?i(r,n.get("layout")):r;var u=n.get("animate");(n.emit("beforerefreshlayout",{data:r,layoutData:a}),n.emit("beforelayout"),n.innerUpdateChild(a,void 0,u),t)&&n.get("viewController").fitView();u?n.layoutAnimate(a):(n.refresh(),n.paint()),n.emit("afterrefreshlayout",{data:r,layoutData:a}),n.emit("afterlayout")},e.prototype.addChild=function(t,e,n){void 0===n&&(n=!0);var r=this;r.emit("beforeaddchild",{model:t,parent:e}),(0,x.isString)(e)||(e=e.get("id"));var i=r.findDataById(e);i&&(i.children||(i.children=[]),i.children.push(t),r.findById(e).refresh(),r.changeData(void 0,n))},e.prototype.updateChildren=function(t,e,n){void 0===n&&(n=!0);var r=this,i=r.findById(e);e&&i?(r.findDataById(e).children=t,i.refresh(),r.changeData(void 0,n)):console.warn("Update children failed! There is no node with id '".concat(e,"'"))},e.prototype.updateChild=function(t,n,r){void 0===r&&(r=!0);var i=this;if(n&&i.findById(n)){var o=i.findDataById(n),a=i.findById(t.id);if(o.children||(o.children=[]),a){var s=e.indexOfChild(o.children,t.id);s>-1&&(o.children[s]=t)}else o.children.push(t);var u=i.findById(n);null==u||u.refresh(),i.changeData(void 0,r)}else i.changeData(t,r)},e.prototype.removeChild=function(t,n){void 0===n&&(n=!0);var r,i=this,o=i.findById(t);if((r=o?null==o?void 0:o.get("parent"):i.getNodes().find((function(e){return!!(e.getModel().children||[]).find((function(e){return e.id===t}))})))&&!r.destroyed){var a=r.get("id"),s=i.findDataById(a),u=s&&s.children||[],l=e.indexOfChild(u,t);u.splice(l,1),r.refresh()}i.changeData(void 0,n)},e.prototype.findDataById=function(t,e){var n=this;if(e||(e=n.get("data")),t===e.id)return e;var r=null;return(0,x.each)(e.children||[],(function(e){return e.id===t?(r=e,!1):!(r=n.findDataById(t,e))&&void 0})),r},e.prototype.layoutAnimate=function(t,e){var n=this,r=this.get("animateCfg");n.emit("beforeanimate",{data:t}),n.getEdges().forEach((function(t){var e=t.get("model");e.sourceAnchor||(e.sourceAnchor=t.get("sourceAnchorIndex"))})),this.get("canvas").animate((function(r){jf(t,(function(i){var o=n.findById(i.id);if(o){var a=o.get("originAttrs"),s=o.get("model");if(a||(a={x:s.x,y:s.y},o.set("originAttrs",a)),e){var u=e(o,r,a,t);o.set("model",Object.assign(s,u))}else s.x=a.x+(i.x-a.x)*r,s.y=a.y+(i.y-a.y)*r}return!0})),(0,x.each)(n.get("removeList"),(function(t){var e=t.getModel(),n=t.get("originAttrs"),i=t.get("to");e.x=n.x+(i.x-n.x)*r,e.y=n.y+(i.y-n.y)*r})),n.refreshPositions()}),{duration:r.duration,easing:r.ease,callback:function(){(0,x.each)(n.getNodes(),(function(t){t.set("originAttrs",null)})),(0,x.each)(n.get("removeList"),(function(t){n.removeItem(t,!1)})),n.set("removeList",[]),r.callback&&r.callback(),n.emit("afteranimate",{data:t})},delay:r.delay})},e.prototype.stopLayoutAnimate=function(){this.get("canvas").stopAnimate(),this.emit("layoutanimateend",{data:this.get("data")}),this.layoutAnimating=!1},e.prototype.isLayoutAnimating=function(){return this.layoutAnimating},e.prototype.render=function(t){void 0===t&&(t=!0);var e=this,n=e.get("data");if(!n||!(0,x.isObject)(n)||!Object.keys(n).length)throw new Error("data must be defined first");e.clear(),t&&this.get("enabledStack")&&this.clearStack(),e.emit("beforerender"),e.layout(this.get("fitView")),e.emit("afterrender")},e.prototype.save=function(){return this.get("data")},e.prototype.data=function(e){t.prototype.data.call(this,e),this.set("originData",Bf(e))},e}(Df);const Hf=Vf;function Gf(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}var Wf=function(){function t(t){this._cfgs=(0,x.deepMix)(this.getDefaultCfgs(),t),this._events={},this.destroyed=!1}return t.prototype.getDefaultCfgs=function(){return{}},t.prototype.initPlugin=function(t){var e=this;e.set("graph",t);var n=e.getEvents(),r={};(0,x.each)(n,(function(n,i){var o=(0,x.wrapBehavior)(e,n);r[i]=o,t.on(i,o)})),this._events=r,this.init()},t.prototype.getEvents=function(){return{}},t.prototype.get=function(t){var e;return null===(e=this._cfgs)||void 0===e?void 0:e[t]},t.prototype.set=function(t,e){this._cfgs[t]=e},t.prototype.destroy=function(){},t.prototype.destroyPlugin=function(){this.destroy();var t=this.get("graph"),e=this._events;(0,x.each)(e,(function(e,n){t.off(n,e)})),this._events=null,this._cfgs=null,this.destroyed=!0},t}();const Xf=Wf;var Yf,qf=(Yf=function(t,e){return Yf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},Yf(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Yf(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),$f="url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImdyaWQiIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTSAwIDEwIEwgNDAgMTAgTSAxMCAwIEwgMTAgNDAgTSAwIDIwIEwgNDAgMjAgTSAyMCAwIEwgMjAgNDAgTSAwIDMwIEwgNDAgMzAgTSAzMCAwIEwgMzAgNDAiIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2UwZTBlMCIgb3BhY2l0eT0iMC4yIiBzdHJva2Utd2lkdGg9IjEiLz48cGF0aCBkPSJNIDQwIDAgTCAwIDAgMCA0MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZTBlMGUwIiBzdHJva2Utd2lkdGg9IjEiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JpZCkiLz48L3N2Zz4=)",Kf=function(t){function e(e){return t.call(this,e)||this}return qf(e,t),e.prototype.getDefaultCfgs=function(){return{img:$f,follow:!0}},e.prototype.init=function(){var t=this.get("graph"),e=t.get("container"),n=t.get("canvas").get("el"),r=this.get("img")||$f;r.includes("url(")||(r='url("'.concat(r,'")'));var i=Uh("
"),o=Uh(""));this.set("container",i),this.set("gridContainer",o),this.positionInit(),i.appendChild(o),e.insertBefore(i,n)},e.prototype.positionInit=function(){var t=this.get("graph"),e=t.get("minZoom"),n=t.get("width"),r=t.get("height");Gf(this.get("container"),{width:"".concat(n,"px"),height:"".concat(r,"px")});var i=80*n/e,o=80*r/e;Gf(this.get("gridContainer"),{width:"".concat(i,"px"),height:"".concat(o,"px"),left:"-".concat(i/2,"px"),top:"-".concat(o/2,"px")})},e.prototype.getEvents=function(){return{viewportchange:"updateGrid"}},e.prototype.updateGrid=function(t){var e=this.get("gridContainer"),n=t.matrix;n||(n=[1,0,0,0,1,0,0,0,1]);var r=this.get("follow");Gf(e,{transform:"matrix(".concat(n[0],", ").concat(n[1],", ").concat(n[3],", ").concat(n[4],", ").concat(r?n[6]:"0",", ").concat(r?n[7]:"0",")")})},e.prototype.getContainer=function(){return this.get("container")},e.prototype.destroy=function(){var t=this.get("graph").get("container"),e=this.get("container");t.removeChild(e)},e}(Xf);const Zf=Kf;var Qf=n(79238),Jf=n.n(Qf),tp=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();"undefined"!=typeof document&&Jf()("\n .g6-component-contextmenu {\n border: 1px solid #e2e2e2;\n border-radius: 4px;\n font-size: 12px;\n color: #545454;\n background-color: rgba(255, 255, 255, 0.9);\n padding: 10px 8px;\n box-shadow: rgb(174, 174, 174) 0px 0px 10px;\n }\n .g6-contextmenu-ul {\n padding: 0;\n margin: 0;\n list-style: none;\n }\n\n");var ep=function(t){function e(e){return t.call(this,e)||this}return tp(e,t),e.prototype.getDefaultCfgs=function(){return{offsetX:6,offsetY:6,handleMenuClick:void 0,getContent:function(t){return"\n
    \n
  • 菜单项1
  • \n
  • 菜单项2
  • \n
\n "},shouldBegin:function(t){return!0},onHide:function(){return!0},itemTypes:["node","edge","combo"],trigger:"contextmenu"}},e.prototype.getEvents=function(){return"click"===this.get("trigger")?{click:"onMenuShow",touchend:"onMenuShow"}:{contextmenu:"onMenuShow"}},e.prototype.init=function(){var t=this.get("className"),e=Uh("
"));Gf(e,{top:"0px",position:"absolute",visibility:"hidden"});var n=this.get("container");n||(n=this.get("graph").get("container")),(0,x.isString)(n)&&(n=document.getElementById(n)),n.appendChild(e),this.set("menu",e)},e.prototype.onMenuShow=function(t){var e=this;t.preventDefault();var n=this.get("itemTypes");if(t.item){if(t.item&&t.item.getType&&-1===n.indexOf(t.item.getType()))return void e.onMenuHide()}else if(-1===n.indexOf("canvas"))return void e.onMenuHide();if(this.get("shouldBegin")(t)){var r=this.get("menu"),i=this.get("getContent"),o=this.get("graph"),a=i(t,o);(0,x.isString)(a)?r.innerHTML=a:r.innerHTML=a.outerHTML,this.removeMenuEventListener();var s=this.get("handleMenuClick");if(s){var u=function(e){s(e.target,t.item,o)};this.set("handleMenuClickWrapper",u),r.addEventListener("click",u)}var l=o.get("width"),c=o.get("height"),h=r.getBoundingClientRect(),d=this.get("offsetX")||0,f=this.get("offsetY")||0,p=o.getContainer().offsetTop,m=o.getContainer().offsetLeft,g=t.canvasX+m+d,v=t.canvasY+p+f;g+h.width>l&&(g=t.canvasX-h.width-d+m),v+h.height>c&&(v=t.canvasY-h.height-f+p),v<0&&(v=0),Gf(r,{top:"".concat(v,"px"),left:"".concat(g,"px"),visibility:"visible"});var y="click"===this.get("trigger"),b=function(t){y?y=!1:e.onMenuHide()};document.body.addEventListener("click",b),this.set("handler",b)}},e.prototype.removeMenuEventListener=function(){var t=this.get("handleMenuClickWrapper"),e=this.get("handler");t&&(this.get("menu").removeEventListener("click",t),this.set("handleMenuClickWrapper",null));e&&document.body.removeEventListener("click",e)},e.prototype.onMenuHide=function(){var t=this.get("menu");t&&Gf(t,{visibility:"hidden"}),this.removeMenuEventListener()},e.prototype.destroy=function(){var t=this.get("menu");if(this.removeMenuEventListener(),t){var e=this.get("container");e||(e=this.get("graph").get("container")),(0,x.isString)(e)&&(e=document.getElementById(e)),e.removeChild(t)}},e}(Xf);const np=ep;var rp=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ip=function(){return ip=Object.assign||function(t){for(var e,n=1,r=arguments.length;n-1,a=navigator.userAgent.toLowerCase().indexOf("safari")>-1,s=Uh("\n ")),u=0,l=0,c=!1,h=0,d=0,f=0,p=0,m=0,g=0,v=a||o?"mousedown":"dragstart";s.addEventListener(v,(function(i){var o,a;if(i.dataTransfer){var v=new Image;v.src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' %3E%3Cpath /%3E%3C/svg%3E",null===(a=(o=i.dataTransfer).setDragImage)||void 0===a||a.call(o,v,0,0);try{i.dataTransfer.setData("text/html","view-port-minimap")}catch(t){i.dataTransfer.setData("text","view-port-minimap")}}if(e.refresh=!1,i.target===s){var y=s.style;h=parseInt(y.left,10),d=parseInt(y.top,10),f=parseInt(y.width,10),p=parseInt(y.height,10),f>n[0]||p>n[1]||(g=r.getZoom(),m=t.get("ratio"),c=!0,u=i.clientX,l=i.clientY)}}),!1);var y=function(t){if(c&&!(0,x.isNil)(t.clientX)&&!(0,x.isNil)(t.clientY)){var e=u-t.clientX,i=l-t.clientY;(h-e<0||h-e+f>=n[0])&&(e=0),(d-i<0||d-i+p>=n[1])&&(i=0),d-=i,Gf(s,{left:"".concat(h-=e,"px"),top:"".concat(d,"px")}),r.translate(e*g/m,i*g/m),u=t.clientX,l=t.clientY}};a||o||s.addEventListener("drag",y,!1);var b=function(){c=!1,e.refresh=!0},w=a||o?"mouseup":"dragend";s.addEventListener(w,b,!1),i.addEventListener("mouseleave",b),i.addEventListener("mouseup",b),(a||o)&&i.addEventListener("mousemove",y,!1),this.set("viewport",s),i.appendChild(s)}},e.prototype.updateViewport=function(){if(!this.destroyed){var t=this.get("ratio"),e=this.get("totaldx"),n=this.get("totaldy"),r=this.get("graph"),i=this.get("size"),o=r.get("canvas").get("el"),a=r.get("width")||o.scrollWidth||500,s=r.get("height")||o.scrollHeight||500,u=r.getPointByCanvas(0,0),l=r.getPointByCanvas(a,s),c=this.get("viewport");c||this.initViewport();var h=(l.x-u.x)*t,d=(l.y-u.y)*t,f=u.x*t+e,p=u.y*t+n,m=f+h,g=p+d;f<0&&(h+=f,f=0),m>i[0]&&(h-=m-i[0]),p<0&&(d+=p,p=0),g>i[1]&&(d-=g-i[1]),this.set("ratio",t),Gf(c,{left:"".concat(f,"px"),top:"".concat(p,"px"),width:"".concat(h,"px"),height:"".concat(d,"px")})}},e.prototype.updateGraphShapes=function(){var t,e=this._cfgs.graph,n=this.get("canvas"),r=e.get("group");r.destroyed||(n.clear(),this.get("hideEdge")?(t=n.addGroup(),r.get("children").forEach((function(e){e.get("id").includes("-edge")||t.add(e.clone())}))):((t=r.clone()).resetMatrix(),n.add(t)),"svg"===e.get("renderer")&&this.updateVisible(t))},e.prototype.updateVisible=function(t){var e=this;if(t.isGroup()||t.get("visible")){var n=t.get("children");if(!n||!n.length)return;n.forEach((function(t){t.get("visible")||t.hide(),e.updateVisible(t)}))}else t.hide()},e.prototype.updateKeyShapes=function(){var t=this,e=this._cfgs.graph,n=this.get("canvas"),r=n.get("children")[0]||n.addGroup();this.get("hideEdge")||(0,x.each)(e.getEdges(),(function(e){t.updateOneEdgeKeyShape(e,r)})),(0,x.each)(e.getNodes(),(function(e){t.updateOneNodeKeyShape(e,r)}));var i=e.getCombos();if(i&&i.length){var o=r.find((function(t){return"comboGroup"===t.get("name")}))||r.addGroup({name:"comboGroup"});setTimeout((function(){t.destroyed||((0,x.each)(i,(function(e){t.updateOneComboKeyShape(e,o)})),null==o||o.sort(),null==o||o.toBack(),t.updateCanvas())}),250)}this.clearDestroyedShapes()},e.prototype.updateOneComboKeyShape=function(t,e){if(!this.destroyed){var n=this.get("itemMap")||{},r=n[t.get("id")],i=t.getBBox(),o=t.get("keyShape").clone(),a=o.attr(),s={x:i.centerX,y:i.centerY};r?s=Object.assign(a,s):(r=o,e.add(r));var u=r.get("type");"rect"!==u&&"image"!==u||(s.x=i.minX,s.y=i.minY),r.attr(s),t.isVisible()?r.show():r.hide(),r.exist=!0;var l=t.getModel().depth;isNaN(l)||r.set("zIndex",l),n[t.get("id")]=r,this.set("itemMap",n)}},e.prototype.updateOneNodeKeyShape=function(t,e){var n=this.get("itemMap")||{},r=n[t.get("id")],i=t.getBBox(),o=t.get("keyShape").clone(),a=o.attr(),s={x:i.centerX,y:i.centerY};r?(s=Object.assign(a,s),r.toFront()):(r=o,e.add(r));var u=r.get("type");"rect"!==u&&"image"!==u||(s.x=i.minX,s.y=i.minY),r.attr(s),t.isVisible()?r.show():r.hide(),r.exist=!0;var l=t.getModel().depth;isNaN(l)||r.set("zIndex",l),n[t.get("id")]=r,this.set("itemMap",n)},e.prototype.updateDelegateShapes=function(){var t=this,e=this._cfgs.graph,n=this.get("canvas"),r=n.get("children")[0]||n.addGroup();this.get("hideEdge")||(0,x.each)(e.getEdges(),(function(e){t.updateOneEdgeKeyShape(e,r)})),(0,x.each)(e.getNodes(),(function(e){t.updateOneNodeDelegateShape(e,r)}));var i=e.getCombos();if(i&&i.length){var o=r.find((function(t){return"comboGroup"===t.get("name")}))||r.addGroup({name:"comboGroup"});setTimeout((function(){t.destroyed||((0,x.each)(i,(function(e){t.updateOneComboKeyShape(e,o)})),null==o||o.sort(),null==o||o.toBack(),t.updateCanvas())}),250)}this.clearDestroyedShapes()},e.prototype.clearDestroyedShapes=function(){var t=this.get("itemMap")||{},e=Object.keys(t);if(e&&0!==e.length)for(var n=e.length-1;n>=0;n--){var r=t[e[n]],i=r.exist;r.exist=!1,i||(r.remove(),delete t[e[n]])}},e.prototype.updateOneEdgeKeyShape=function(t,e){var n=this.get("itemMap")||{},r=n[t.get("id")];if(r){var i=t.get("keyShape").attr("path");r.attr("path",i)}else r=t.get("keyShape").clone(),e.add(r);t.isVisible()?r.show():r.hide(),r.exist=!0,n[t.get("id")]=r,this.set("itemMap",n)},e.prototype.updateOneNodeDelegateShape=function(t,e){var n=this.get("delegateStyle"),r=this.get("itemMap")||{},i=r[t.get("id")],o=t.getBBox();if(i){var a={x:o.minX,y:o.minY,width:o.width,height:o.height};i.attr(a),i.toFront()}else i=e.addShape("rect",{attrs:ip({x:o.minX,y:o.minY,width:o.width,height:o.height},n),name:"minimap-node-shape"});t.isVisible()?i.show():i.hide(),i.exist=!0,r[t.get("id")]=i,this.set("itemMap",r)},e.prototype.init=function(){this.initContainer(),this.get("graph").on("afterupdateitem",this.handleUpdateCanvas),this.get("graph").on("afteritemstatechange",this.handleUpdateCanvas),this.get("graph").on("afteradditem",this.handleUpdateCanvas),this.get("graph").on("afterremoveitem",this.handleUpdateCanvas),this.get("graph").on("afterrender",this.handleUpdateCanvas),this.get("graph").on("afterlayout",this.handleUpdateCanvas)},e.prototype.initContainer=function(){var t=this,e=t.get("graph"),n=t.get("size"),r=t.get("className"),i=t.get("container"),o=Uh("
"));(0,x.isString)(i)&&(i=document.getElementById(i)),i?i.appendChild(o):e.get("container").appendChild(o),t.set("container",o);var a,s=Uh('
');o.appendChild(s),s.addEventListener("dragenter",(function(t){t.preventDefault()})),s.addEventListener("dragover",(function(t){t.preventDefault()})),a="svg"===e.get("renderer")?new Rh({container:s,width:n[0],height:n[1]}):new Ic({container:s,width:n[0],height:n[1]}),t.set("canvas",a),t.updateCanvas()},e.prototype.updateCanvas=function(){if(!this.destroyed&&this.get("refresh")){var t=this.get("graph");if(!t.get("destroyed")){this.get("viewportChange")&&(this.set("viewportChange",!1),this.updateViewport());var e=this.get("size"),n=this.get("canvas"),r=this.get("type"),i=this.get("padding");if(!n.destroyed){switch(r){case"default":this.updateGraphShapes();break;case"keyShape":this.updateKeyShapes();break;case"delegate":this.updateDelegateShapes()}var o=n.get("children")[0];if(o){o.resetMatrix();var a=o.getCanvasBBox(),s=t.get("canvas").getCanvasBBox(),u=t.getZoom()||1,l=s.width/u,c=s.height/u;Number.isFinite(a.width)&&(l=op(a.width,l),c=op(a.height,c)),l+=2*i,c+=2*i;var h=Math.min(e[0]/l,e[1]/c),d=[1,0,0,0,1,0,0,0,1],f=0,p=0;Number.isFinite(a.minX)&&(f=-a.minX),Number.isFinite(a.minY)&&(p=-a.minY);var m=(e[0]-(l-2*i)*h)/2,g=(e[1]-(c-2*i)*h)/2;d=ap(d,[["t",f,p],["s",h,h],["t",m,g]]),o.setMatrix(d),this.set("ratio",h),this.set("totaldx",m+f*h),this.set("totaldy",g+p*h),this.set("dx",m),this.set("dy",g),this.updateViewport()}}}}},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.getViewport=function(){return this.get("viewport")},e.prototype.getContainer=function(){return this.get("container")},e.prototype.destroy=function(){var t;null===(t=this.get("canvas"))||void 0===t||t.destroy();var e=this.get("container");(null==e?void 0:e.parentNode)&&e.parentNode.removeChild(e)},e}(Xf);const up=sp;var lp=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function cp(t,e,n){var r=t.x-e.x,i=t.y-e.y;return!n||Math.abs(r)>n||Math.abs(i)>n?Math.sqrt(r*r+i*i):n}function hp(t,e){var n=(e.source.y-e.target.y)/(e.source.x-e.target.x),r=(n*n*e.source.x+n*(t.y-e.source.y)+t.x)/(n*n+1);return{x:r,y:n*(r-e.source.x)+e.source.y}}var dp=function(t){function e(e){return t.call(this,e)||this}return lp(e,t),e.prototype.getDefaultCfgs=function(){return{edgeBundles:[],edgePoints:[],K:.1,lambda:.1,divisions:1,divRate:2,cycles:6,iterations:90,iterRate:.6666667,bundleThreshold:.6,eps:1e-6,onLayoutEnd:function(){},onTick:function(){}}},e.prototype.init=function(){var t=this.get("graph"),e=this.get("onTick");this.set("tick",(function(){e&&e(),t.refreshPositions()}))},e.prototype.bundling=function(t){var e=this;if(e.set("data",t),!e.isTicking()){var n=t.edges||[],r=t.nodes||[],i={},o=!1;if(r.forEach((function(t){null!==t.x&&null!==!t.y&&void 0!==t.x&&void 0!==!t.y||(o=!0),i[t.id]=t})),o)throw new Error("please layout the graph or assign x and y for nodes first");e.set("nodeIdMap",i);var a=e.get("divisions"),s=e.get("divRate"),u=e.divideEdges(a);e.set("edgePoints",u);var l=e.getEdgeBundles();e.set("edgeBundles",l);for(var c=e.get("cycles"),h=e.get("iterations"),d=e.get("iterRate"),f=e.get("lambda"),p=0;pc;){var r=c/n,a={x:i[o][e-1].x,y:i[o][e-1].y};a.x+=r*(t.x-i[o][e-1].x),a.y+=r*(t.y-i[o][e-1].y),h.push(a),n-=c,c=l}c-=n}})),h.push({x:u.x,y:u.y}),i[o]=h}})),i},e.prototype.getEdgeLength=function(t){var e=0;return t.forEach((function(n,r){0!==r&&(e+=cp(n,t[r-1]))})),e},e.prototype.getEdgeBundles=function(){var t=this,e=t.get("data").edges||[],n=t.get("bundleThreshold"),r=t.get("nodeIdMap"),i=t.get("edgeBundles");return i||(i=[]),e.forEach((function(t,e){i[e]&&void 0!==i[e]||(i[e]=[])})),e.forEach((function(o,a){var s=r[o.source],u=r[o.target];e.forEach((function(e,o){if(!(o<=a)){var l=r[e.source],c=r[e.target];t.getBundleScore({source:s,target:u},{source:l,target:c})>=n&&(i[a].push(o),i[o].push(a))}}))})),i},e.prototype.getBundleScore=function(t,e){var n=this;return t.vx=t.target.x-t.source.x,t.vy=t.target.y-t.source.y,e.vx=e.target.x-e.source.x,e.vy=e.target.y-e.source.y,t.length=cp({x:t.source.x,y:t.source.y},{x:t.target.x,y:t.target.y}),e.length=cp({x:e.source.x,y:e.source.y},{x:e.target.x,y:e.target.y}),n.getAngleScore(t,e)*n.getScaleScore(t,e)*n.getPositionScore(t,e)*n.getVisibilityScore(t,e)},e.prototype.getAngleScore=function(t,e){var n=function(t,e){return t.x*e.x+t.y*e.y}({x:t.vx,y:t.vy},{x:e.vx,y:e.vy});return n/(t.length*e.length)},e.prototype.getScaleScore=function(t,e){var n=(t.length+e.length)/2;return 2/(n/Math.min(t.length,e.length)+Math.max(t.length,e.length)/n)},e.prototype.getPositionScore=function(t,e){var n=(t.length+e.length)/2;return n/(n+cp({x:(t.source.x+t.target.x)/2,y:(t.source.y+t.target.y)/2},{x:(e.source.x+e.target.x)/2,y:(e.source.y+e.target.y)/2}))},e.prototype.getVisibilityScore=function(t,e){var n=this.getEdgeVisibility(t,e),r=this.getEdgeVisibility(e,t);return nr||Math.abs(i.y)>r){var a=1/cp(o[n][t],o[e][t]);s.x+=i.x*a,s.y+=i.y*a}})),s},e.prototype.isTicking=function(){return this.get("ticking")},e.prototype.getSimulation=function(){return this.get("forceSimulation")},e.prototype.destroy=function(){this.get("ticking")&&this.getSimulation().stop(),t.prototype.destroy.call(this)},e}(Xf);const fp=dp;var pp=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mp=function(){return mp=Object.assign||function(t){for(var e,n=1,r=arguments.length;n(a||r.get("height"))&&n>1||u<(s||.05*r.get("height"))&&n<1)&&(n=1),u*=n,e.set("r",u),e.set("r2",u*u);var l=e.get("d");e.set("molecularParam",(l+1)*u),e.set("delegateCenterDiff",void 0),e.magnify(t,o)}},e.prototype.scaleRByDrag=function(t){var e=this;if(t){var n,r=e.get("dragPrePos"),i=e.get("graph"),o=i.getPointByClient(t.clientX,t.clientY);n=t.x-r.x<0?.95:1/.95;var a=e.get("maxR"),s=e.get("minR"),u=e.get("r");(u>(a||i.get("height"))&&n>1||u<(s||.05*i.get("height"))&&n<1)&&(n=1),u*=n,e.set("r",u),e.set("r2",u*u);var l=e.get("d");e.set("molecularParam",(l+1)*u),e.magnify(t,o),e.set("dragPrePos",{x:t.x,y:t.y})}},e.prototype.scaleDByWheel=function(t){var e=this;if(t||t.originalEvent){t.preventDefault&&t.preventDefault();var n=0;n=t.originalEvent.wheelDelta<0?-.1:.1;var r=e.get("d")+n,i=e.get("maxD"),o=e.get("minD");if(ro){e.set("d",r);var a=e.get("r");e.set("molecularParam",(r+1)*a);var s=e.get("delegate"),u=s?{x:s.attr("x"),y:s.attr("y")}:void 0;e.set("delegateCenterDiff",void 0),e.magnify(t,u)}}},e.prototype.scaleDByDrag=function(t){var e=this,n=e.get("dragPrePos"),r=t.x-n.x>0?.1:-.1,i=e.get("d")+r,o=e.get("maxD"),a=e.get("minD");if(ia){e.set("d",i);var s=e.get("r");e.set("molecularParam",(i+1)*s),e.magnify(t)}e.set("dragPrePos",{x:t.x,y:t.y})},e.prototype.magnify=function(t,e){var n=this;n.restoreCache();var r=n.get("graph"),i=n.get("cachedMagnifiedModels"),o=n.get("cachedOriginPositions"),a=n.get("showLabel"),s=n.get("r"),u=n.get("r2"),l=n.get("d"),c=n.get("molecularParam"),h=r.getNodes(),d=h.length,f=e?{x:e.x,y:e.y}:{x:t.x,y:t.y};!n.get("dragging")||"mousemove"!==n.get("trigger")&&"click"!==n.get("trigger")||(f=n.get("cacheCenter"));var p=n.get("delegateCenterDiff");p&&(f.x+=p.x,f.y+=p.y),n.updateDelegate(f,s);for(var m=0;m\n
  • \n \n \n \n
  • \n
  • \n \n \n \n
  • \n
  • \n \n \n \n
  • \n
  • \n \n \n \n
  • \n
  • \n \n \n \n
  • \n
  • \n \n \n \n
  • \n \n '},zoomSensitivity:2}},e.prototype.init=function(){var t=this,e=this.get("graph"),n=this.get("getContent")(e),r=n;(0,x.isString)(n)&&(r=Uh(n));var i=this.get("className");r.setAttribute("class",i||"g6-component-toolbar");var o=this.get("container");o||(o=this.get("graph").get("container")),(0,x.isString)(o)&&(o=document.getElementById(o)),o.appendChild(r),this.set("toolBar",r);var a=this.get("handleClick");r.addEventListener("click",(function(n){var r=function(t){if(!t)return[];if(t.composedPath)return t.composedPath();for(var e=[],n=t.target;n;){if(e.push(n),"HTML"===n.tagName)return e.push(document,window),e;n=n.parentElement}return e}(n).filter((function(t){return"LI"===t.nodeName}));if(0!==r.length){var i=r[0].getAttribute("code");i&&(a?a(i,e):t.handleDefaultOperator(i))}}));var s=this.get("position");s&&Gf(r,{top:"".concat(s.y,"px"),left:"".concat(s.x,"px")}),this.bindUndoRedo()},e.prototype.bindUndoRedo=function(){var t=this.get("graph"),e=document.querySelector('.g6-component-toolbar li[code="undo"]'),n=document.querySelector('.g6-component-toolbar li[code="undo"] svg'),r=document.querySelector('.g6-component-toolbar li[code="redo"]'),i=document.querySelector('.g6-component-toolbar li[code="redo"] svg');e&&n&&r&&i&&(e.setAttribute("style","cursor: not-allowed"),n.setAttribute("style","opacity: 0.4"),r.setAttribute("style","cursor: not-allowed"),i.setAttribute("style","opacity: 0.4"),t.on("stackchange",(function(t){var o=t.undoStack,a=t.redoStack,s=o.length,u=a.length;0===s?(e.setAttribute("style","cursor: not-allowed"),n.setAttribute("style","opacity: 0.4")):(e.removeAttribute("style"),n.removeAttribute("style")),0===u?(r.setAttribute("style","cursor: not-allowed"),i.setAttribute("style","opacity: 0.4")):(r.removeAttribute("style"),i.removeAttribute("style"))})))},e.prototype.undo=function(){var t=this.get("graph"),e=t.getUndoStack();if(e&&0!==e.length){var n=e.pop();if(n){var r=n.action;t.pushStack(r,(0,x.clone)(n.data),"redo");var i=n.data.before;if("add"===r&&(i=n.data.after),!i)return;switch(r){case"visible":Object.keys(i).forEach((function(e){var n=i[e];n&&n.forEach((function(e){var n=t.findById(e.id);e.visible?t.showItem(n,!1):t.hideItem(n,!1)}))}));break;case"render":case"update":Object.keys(i).forEach((function(e){var n=i[e];n&&n.forEach((function(e){var n=t.findById(e.id);delete e.id,t.updateItem(n,e,!1),"combo"===n.getType()&&t.updateCombo(n)}))}));break;case"changedata":t.changeData(i,!1);break;case"delete":Object.keys(i).forEach((function(e){var n=i[e];n&&n.forEach((function(e){var n=e.itemType;delete e.itemType,t.addItem(n,e,!1)}))}));break;case"add":Object.keys(i).forEach((function(e){var n=i[e];n&&n.forEach((function(e){t.removeItem(e.id,!1)}))}));break;case"updateComboTree":Object.keys(i).forEach((function(e){var n=i[e];n&&n.forEach((function(e){t.updateComboTree(e.id,e.parentId,!1)}))}));break;case"createCombo":var o=n.data.after.combos,a=o[o.length-1];Object.keys(i).forEach((function(e){var n=i[e];n&&n.forEach((function(e){t.updateComboTree(e.id,e.parentId,!1)}))})),t.removeItem(a.id,!1);break;case"uncombo":var s=i.combos[i.combos.length-1],u=i.nodes.concat(i.combos).map((function(t){return t.id})).filter((function(t){return t!==s.id}));t.createCombo(s,u,!1);break;case"layout":t.updateLayout(i,void 0,void 0,!1)}}}},e.prototype.redo=function(){var t=this.get("graph"),e=t.getRedoStack();if(e&&0!==e.length){var n=e.pop();if(n){var r=n.action,i=n.data.after;if(t.pushStack(r,(0,x.clone)(n.data)),"delete"===r&&(i=n.data.before),!i)return;switch(r){case"visible":Object.keys(i).forEach((function(e){var n=i[e];n&&n.forEach((function(e){var n=t.findById(e.id);e.visible?t.showItem(n,!1):t.hideItem(n,!1)}))}));break;case"render":case"update":Object.keys(i).forEach((function(e){var n=i[e];n&&n.forEach((function(e){var n=t.findById(e.id);delete e.id,t.updateItem(n,e,!1),"combo"===n.getType()&&t.updateCombo(n)}))}));break;case"changedata":t.changeData(i,!1);break;case"delete":i.edges&&i.edges.forEach((function(e){t.removeItem(e.id,!1)})),i.nodes&&i.nodes.forEach((function(e){t.removeItem(e.id,!1)})),i.combos&&i.combos.forEach((function(e){t.removeItem(e.id,!1)}));break;case"add":Object.keys(i).forEach((function(e){var n=i[e];n&&n.forEach((function(e){var n=e.itemType;delete e.itemType,t.addItem(n,e,!1)}))}));break;case"updateComboTree":Object.keys(i).forEach((function(e){var n=i[e];n&&n.forEach((function(e){t.updateComboTree(e.id,e.parentId,!1)}))}));break;case"createCombo":var o=i.combos[i.combos.length-1];t.createCombo(o,o.children.map((function(t){return t.id})),!1);break;case"uncombo":var a=n.data.before.combos,s=a[a.length-1];t.uncombo(s.id,!1);break;case"layout":t.updateLayout(i,void 0,void 0,!1)}}}},e.prototype.zoomOut=function(){var t=this.get("graph"),e=t.getZoom(),n=1/(1-.05*this.get("zoomSensitivity"));n*e>(this.get("maxZoom")||t.get("maxZoom"))||t.zoomTo(e*n)},e.prototype.zoomIn=function(){var t=this.get("graph"),e=t.getZoom(),n=1-.05*this.get("zoomSensitivity");n*e<(this.get("minZoom")||t.get("minZoom"))||t.zoomTo(e*n)},e.prototype.realZoom=function(){this.get("graph").zoomTo(1)},e.prototype.autoZoom=function(){this.get("graph").fitView([20,20])},e.prototype.handleDefaultOperator=function(t){switch(t){case"redo":this.redo();break;case"undo":this.undo();break;case"zoomOut":this.zoomOut();break;case"zoomIn":this.zoomIn();break;case"realZoom":this.realZoom();break;case"autoZoom":this.autoZoom()}},e.prototype.destroy=function(){var t=this.get("toolBar");if(t){var e=this.get("container");e||(e=this.get("graph").get("container")),(0,x.isString)(e)&&(e=document.getElementById(e)),e.removeChild(t)}var n=this.get("handleClick");n&&t.removeEventListener("click",n)},e}(Xf);const wp=xp;var _p=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();"undefined"!=typeof document&&Jf()("\n .g6-component-tooltip {\n border: 1px solid #e2e2e2;\n border-radius: 4px;\n font-size: 12px;\n color: #545454;\n background-color: rgba(255, 255, 255, 0.9);\n padding: 10px 8px;\n box-shadow: rgb(174, 174, 174) 0px 0px 10px;\n }\n .tooltip-type {\n padding: 0;\n margin: 0;\n }\n .tooltip-id {\n color: #531dab;\n }\n");var Sp=function(t){function e(e){return t.call(this,e)||this}return _p(e,t),e.prototype.getDefaultCfgs=function(){return{offsetX:6,offsetY:6,getContent:function(t){return"\n

    类型:".concat(t.item.getType(),"

    \n ID:").concat(t.item.getID(),"\n ")},shouldBegin:function(t){return!0},itemTypes:["node","edge","combo"],trigger:"mouseenter",fixToNode:void 0}},e.prototype.getEvents=function(){return"click"===this.get("trigger")?{"node:click":"onClick","edge:click":"onClick","combo:click":"onClick","canvas:click":"onMouseLeave",afterremoveitem:"onMouseLeave",contextmenu:"onMouseLeave",drag:"onMouseLeave"}:{"node:mouseenter":"onMouseEnter","node:mouseleave":"onMouseLeave","node:mousemove":"onMouseMove","edge:mouseenter":"onMouseEnter","edge:mouseleave":"onMouseLeave","edge:mousemove":"onMouseMove","combo:mouseenter":"onMouseEnter","combo:mouseleave":"onMouseLeave","combo:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave",contextmenu:"onMouseLeave","node:drag":"onMouseLeave"}},e.prototype.init=function(){var t=this,e=t.get("className")||"g6-component-tooltip",n=Uh("
    ")),r=t.get("container");r||(r=t.get("graph").get("container")),(0,x.isString)(r)&&(r=document.getElementById(r)),Gf(n,{position:"absolute",visibility:"hidden",display:"none"}),r.appendChild(n),"click"!==t.get("trigger")&&(n.addEventListener("mouseenter",(function(t){Gf(n,{visibility:"visible",display:"unset"})})),n.addEventListener("mouseleave",(function(e){t.hideTooltip()}))),t.set("tooltip",n)},e.prototype.onClick=function(t){var e=this.get("itemTypes");if(!t.item||!t.item.getType||-1!==e.indexOf(t.item.getType())){var n=t.item,r=this.get("graph");this.currentTarget===n?(this.currentTarget=null,this.hideTooltip(),r.emit("tooltipchange",{item:t.item,action:"hide"})):(this.currentTarget=n,this.showTooltip(t),r.emit("tooltipchange",{item:t.item,action:"show"}))}},e.prototype.onMouseEnter=function(t){var e=this.get("itemTypes");if(!t.item||!t.item.getType||-1!==e.indexOf(t.item.getType())){var n=t.item,r=this.get("graph");this.currentTarget=n,this.showTooltip(t),r.emit("tooltipchange",{item:t.item,action:"show"})}},e.prototype.onMouseMove=function(t){var e=this.get("itemTypes");t.item&&t.item.getType&&-1===e.indexOf(t.item.getType())||this.currentTarget&&t.item===this.currentTarget&&this.showTooltip(t)},e.prototype.onMouseLeave=function(){this.hideTooltip(),this.get("graph").emit("tooltipchange",{item:this.currentTarget,action:"hide"}),this.currentTarget=null},e.prototype.clearContainer=function(){var t=this.get("tooltip");t&&(t.innerHTML="")},e.prototype.showTooltip=function(t){if(t.item){var e=this.get("itemTypes");if(!t.item.getType||-1!==e.indexOf(t.item.getType())){var n=this.get("tooltip"),r=this.get("getContent")(t);(0,x.isString)(r)?n.innerHTML=r:(this.clearContainer(),n.appendChild(r)),this.updatePosition(t)}}},e.prototype.hideTooltip=function(){var t=this.get("tooltip");t&&Gf(t,{visibility:"hidden",display:"none"})},e.prototype.updatePosition=function(t){var e=this.get("shouldBegin"),n=this.get("tooltip");if(e(t)){var r=this.get("graph"),i=r.get("width"),o=r.get("height"),a=this.get("offsetX")||0,s=this.get("offsetY")||0,u=r.getPointByClient(t.clientX,t.clientY),l=this.get("fixToNode"),c=t.item;if(c.getType&&"node"===c.getType()&&l&&(0,x.isArray)(l)&&l.length>=2){var h=c.getBBox();u={x:h.minX+h.width*l[0],y:h.minY+h.height*l[1]}}var d=r.getCanvasByPoint(u.x,u.y),f=d.x,p=d.y,m=r.getContainer(),g={x:f+m.offsetLeft+a,y:p+m.offsetTop+s};Gf(n,{visibility:"visible",display:"unset"});var v=n.getBoundingClientRect();f+v.width+a>i&&(g.x-=v.width+a),p+v.height+s>o&&(g.y-=v.height+s,g.y<0&&(g.y=0)),Gf(n,{left:"".concat(g.x,"px"),top:"".concat(g.y,"px")})}else Gf(n,{visibility:"hidden",display:"none"})},e.prototype.hide=function(){this.onMouseLeave()},e.prototype.destroy=function(){var t=this.get("tooltip");if(t){var e=this.get("container");e||(e=this.get("graph").get("container")),(0,x.isString)(e)&&(e=document.getElementById(e)),e.removeChild(t)}},e}(Xf);const Ep=Sp;var Ap="timebarstartplay",Mp="timebarendplay",Cp="valuechange",Tp="timebarConfigChanged",kp="playPauseBtn",Ip="nextStepBtn",Np="preStepBtn",Pp=function(){function t(t){var e=t.x,n=void 0===e?0:e,r=t.y,i=void 0===r?0:r,o=t.container,a=t.text,s=t.padding,u=void 0===s?[4,4,4,4]:s,l=t.className,c=void 0===l?"g6-component-timebar-tooltip":l,h=t.backgroundColor,d=void 0===h?"#000":h,f=t.textColor,p=void 0===f?"#fff":f,m=t.opacity,g=void 0===m?.8:m,v=t.fontSize,y=void 0===v?12:v;this.container=o,this.className=c,this.backgroundColor=d,this.textColor=p,this.x=n,this.y=i,this.text=a,this.padding=u,this.opacity=g,this.fontSize=y,this.render()}return t.prototype.render=function(){var t=this,e=t.className,n=(t.x,t.y,t.backgroundColor),r=t.textColor,i=t.text,o=t.padding,a=t.opacity,s=t.fontSize,u=t.container,l=Uh("
    '));(0,x.isString)(u)&&(u=document.getElementById(u)),u.appendChild(l),t.parentHeight=u.offsetHeight,t.parentWidth=u.offsetWidth,Gf(l,{visibility:"hidden",top:0,left:0});var c=Uh("\n
    "));c.innerHTML=i,l.appendChild(c),t.backgroundDOM=c;var h=Uh("
    "));l.appendChild(h),t.arrowDOM=h,t.container=l},t.prototype.show=function(t){var e=this,n=t.text,r=t.x;t.y,t.clientX,t.clientY;e.backgroundDOM.innerHTML=n;var i=e.backgroundDOM.offsetWidth,o=e.backgroundDOM.offsetHeight,a=e.arrowDOM.offsetWidth,s=e.arrowDOM.offsetHeight;Gf(e.container,{top:"".concat(-o-s,"px"),left:"".concat(r,"px"),visibility:"visible"}),Gf(e.backgroundDOM,{marginLeft:"".concat(-i/2,"px")}),Gf(e.arrowDOM,{marginLeft:"".concat(-a/2,"px"),top:"".concat(o,"px")});var u=r-i/2,l=r+i/2;u<0?Gf(e.backgroundDOM,{marginLeft:"".concat(-i/2-u,"px")}):l>e.parentWidth&&Gf(e.backgroundDOM,{marginLeft:"".concat(-i/2-l+e.parentWidth+12,"px")})},t.prototype.hide=function(){Gf(this.container,{top:0,left:0,visibility:"hidden"})},t}();const Op=Pp;var Lp=function(){return Lp=Object.assign||function(t){for(var e,n=1,r=arguments.length;nn&&(o=n,i=e)}))}i=e.originalEvent.deltaY>0?Math.max(0,i-1):Math.min(t.speedAxisY.length-1,i+1);var a=t.speedAxisY[i]-r;n=Fp(n,[["t",0,a]]),t.speedPoint.setMatrix(n),t.currentSpeed=t.speedAxisY.length-i,t.speedText.attr("text","".concat(t.currentSpeed,".0X")),t.group.emit(Tp,{speed:t.currentSpeed,type:t.currentType})})),this.toggleGroup&&this.toggleGroup.on("toggle-model:click",(function(e){var n,r,i=e.target.get("isChecked");i?(t.checkedIcon.hide(),t.checkedText.attr("text",(null===(r=t.controllerCfg)||void 0===r?void 0:r.timePointControllerText)||"单一时间"),t.currentType=Yp):(t.checkedIcon.show(),t.checkedText.attr("text",(null===(n=t.controllerCfg)||void 0===n?void 0:n.timeRangeControllerText)||"时间范围"),t.currentType=Xp),e.target.set("isChecked",!i),t.group.emit(Tp,{type:t.currentType,speed:t.currentSpeed})}))},t.prototype.destroy=function(){this.speedGroup.off("speed-rect:click"),this.toggleGroup&&(this.toggleGroup.off("toggle-model:click"),this.toggleGroup.destroy()),this.speedGroup.destroy()},t}();const $p=qp;var Kp=function(){return Kp=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=b&&r<=w?l:c,a=g.addShape("rect",{attrs:Kp({x:i+r*(m+2),y:i,width:m,height:f},o),draggable:!0,name:"tick-rect-".concat(r)}),s=g.addShape("rect",{attrs:{x:i+r*m+2*(2*r-1)/2,y:i,width:0===r||r===p-1?m+1:m+2,height:f,fill:"#fff",opacity:0},draggable:!0,name:"pick-rect-".concat(r)});s.toFront();var d,S=a.getBBox(),E=(S.minX+S.maxX)/2;if(v.push({rect:a,pickRect:s,value:e.date,x:E,y:S.minY}),u?(d=u(e),!(0,x.isString)(d)&&d&&(d=e.date)):r%Math.round(p/10)==0&&(d=e.date),d){y.push(d);var A=S.maxY+2*i;g.addShape("line",{attrs:{stroke:"#BFBFBF",x1:E,y1:A,x2:E,y2:A+4},name:"tick-line"});var M=A+4+i,C=g.addShape("text",{attrs:Kp({fill:"#8c8c8c",stroke:"#fff",lineWidth:1,x:E,y:M,textAlign:"center",text:d,textBaseline:"top",fontSize:10,fontFamily:t.fontFamily||"Arial, sans-serif"},h),capture:!1,name:"tick-label"}),T=C.getBBox();if(T.maxX>n?C.attr("textAlign","right"):T.minX<0&&C.attr("textAlign","left"),(0,x.isNumber)(_)&&10!==y.length){var k=Zp([1,0,0,0,1,0,0,0,1],[["t",-E,-M],["r",_],["t",E-5,M+2]]);C.attr({textAlign:"left",matrix:k})}1===y.length?C.attr({textAlign:"left"}):10===y.length&&C.attr({textAlign:"right"})}})),this.tickRects=v;var S=this.group;this.currentSpeed=1,this.controllerBtnGroup=new $p(Kp({group:S,x:this.x,y:this.y+r+5,width:n,height:40,hideTimeTypeController:!0,speed:this.currentSpeed,fontFamily:this.fontFamily||"Arial, sans-serif"},this.controllerCfg))},t.prototype.initEvent=function(){var t=this,e=this.sliceGroup;e.on("click",(function(e){var n=e.target;if("rect"===n.get("type")&&n.get("name")){var r=parseInt(n.get("name").split("-")[2],10);if(!isNaN(r)){var i=t.tickRects,o=t.unselectedTickStyle;i.forEach((function(t){t.rect.attr(o)}));var a=t.selectedTickStyle;i[r].rect.attr(a),t.startTickRectId=r,t.endTickRectId=r;var s=r/i.length;t.graph.emit(Cp,{value:[s,s]})}}})),e.on("dragstart",(function(e){var n=t.tickRects,r=t.unselectedTickStyle;n.forEach((function(t){t.rect.attr(r)}));var i=e.target,o=parseInt(i.get("name").split("-")[2],10),a=t.selectedTickStyle;n[o].rect.attr(a),t.startTickRectId=o;var s=o/n.length;t.graph.emit(Cp,{value:[s,s]}),t.dragging=!0})),e.on("dragover",(function(e){if(t.dragging&&"rect"===e.target.get("type")){for(var n=parseInt(e.target.get("name").split("-")[2],10),r=t.startTickRectId,i=t.tickRects,o=t.selectedTickStyle,a=t.unselectedTickStyle,s=0;s=r&&s<=n?o:a;i[s].rect.attr(u)}var l=i.length;t.endTickRectId=n;var c=r/l,h=n/l;t.graph.emit(Cp,{value:[c,h]})}})),e.on("drop",(function(e){if(t.dragging&&(t.dragging=!1,"rect"===e.target.get("type"))){var n=t.startTickRectId,r=parseInt(e.target.get("name").split("-")[2],10);if(!(r0?e.endTickRectId++:(n[e.endTickRectId].rect.attr(i),e.endTickRectId--),a!==e.startTickRectId)e.endTickRectIdthis.max?NaN:this.values[r]},e.prototype.getText=function(e){for(var n=[],r=1;r1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},e}(om);const sm=am;var um=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,lm="\\d\\d?",cm="\\d\\d",hm="[^\\s]+",dm=/\[([^]*?)\]/gm;function fm(t,e){for(var n=[],r=0,i=t.length;r-1?i:null}};function mm(t){for(var e=[],n=1;n3?0:(t-t%10!=10?1:0)*t%10]}},xm=mm({},bm),wm=function(t){return xm=mm(xm,t)},_m=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},Sm=function(t,e){for(void 0===e&&(e=2),t=String(t);t.length0?"-":"+")+Sm(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+Sm(Math.floor(Math.abs(e)/60),2)+":"+Sm(Math.abs(e)%60,2)}},Am=function(t){return+t-1},Mm=[null,lm],Cm=[null,hm],Tm=["isPm",hm,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],km=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(t){var e=(t+"").match(/([+-]|\d\d)/gi);if(e){var n=60*+e[1]+parseInt(e[2],10);return"+"===e[0]?n:-n}return 0}],Im={D:["day",lm],DD:["day",cm],Do:["day",lm+hm,function(t){return parseInt(t,10)}],M:["month",lm,Am],MM:["month",cm,Am],YY:["year",cm,function(t){var e=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+t>68?e-1:e)+t)}],h:["hour",lm,void 0,"isPm"],hh:["hour",cm,void 0,"isPm"],H:["hour",lm],HH:["hour",cm],m:["minute",lm],mm:["minute",cm],s:["second",lm],ss:["second",cm],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(t){return 100*+t}],SS:["millisecond",cm,function(t){return 10*+t}],SSS:["millisecond","\\d{3}"],d:Mm,dd:Mm,ddd:Cm,dddd:Cm,MMM:["month",hm,pm("monthNamesShort")],MMMM:["month",hm,pm("monthNames")],a:Tm,A:Tm,ZZ:km,Z:km},Nm={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},Pm=function(t){return mm(Nm,t)},Om=function(t,e,n){if(void 0===e&&(e=Nm.default),void 0===n&&(n={}),"number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");e=Nm[e]||e;var r=[];e=e.replace(dm,(function(t,e){return r.push(e),"@@@"}));var i=mm(mm({},xm),n);return(e=e.replace(um,(function(e){return Em[e](t,i)}))).replace(/@@@/g,(function(){return r.shift()}))};function Lm(t,e,n){if(void 0===n&&(n={}),"string"!=typeof e)throw new Error("Invalid format in fecha parse");if(e=Nm[e]||e,t.length>1e3)return null;var r={year:(new Date).getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},i=[],o=[],a=e.replace(dm,(function(t,e){return o.push(_m(e)),"@@@"})),s={},u={};a=_m(a).replace(um,(function(t){var e=Im[t],n=e[0],r=e[1],o=e[3];if(s[n])throw new Error("Invalid format. "+n+" specified twice in format");return s[n]=!0,o&&(u[o]=!0),i.push(e),"("+r+")"})),Object.keys(u).forEach((function(t){if(!s[t])throw new Error("Invalid format. "+t+" is required in specified format")})),a=a.replace(/@@@/g,(function(){return o.shift()}));var l=t.match(new RegExp(a,"i"));if(!l)return null;for(var c,h=mm(mm({},xm),n),d=1;d11||r.month<0||r.day>31||r.day<1||r.hour>23||r.hour<0||r.minute>59||r.minute<0||r.second>59||r.second<0)return null;return c}const Rm={format:Om,parse:Lm,defaultI18n:bm,setGlobalDateI18n:wm,setGlobalDateMasks:Pm};var Dm="format";function zm(t,e){return(y[Dm]||Rm[Dm])(t,e)}function Fm(t){return(0,x.isString)(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),(0,x.isDate)(t)&&(t=t.getTime()),t}var Bm=1e3,Um=6e4,jm=36e5,Vm=24*jm,Hm=31*Vm,Gm=365*Vm,Wm=[["HH:mm:ss",Bm],["HH:mm:ss",1e4],["HH:mm:ss",3e4],["HH:mm",Um],["HH:mm",6e5],["HH:mm",18e5],["HH",jm],["HH",6*jm],["HH",12*jm],["YYYY-MM-DD",Vm],["YYYY-MM-DD",4*Vm],["YYYY-WW",7*Vm],["YYYY-MM",Hm],["YYYY-MM",4*Hm],["YYYY-MM",6*Hm],["YYYY",380*Vm]];function Xm(t,e,n){var r,i=(r=function(t){return t[1]},function(t,e,n,i){for(var o=(0,x.isNil)(n)?0:n,a=(0,x.isNil)(i)?t.length:i;o>>1;r(t[s])>e?a=s:o=s+1}return o})(Wm,(e-t)/n)-1,o=Wm[i];return i<0?o=Wm[0]:i>=Wm.length&&(o=(0,x.last)(Wm)),o}var Ym=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="timeCat",e}return(0,b.__extends)(e,t),e.prototype.translate=function(t){t=Fm(t);var e=this.values.indexOf(t);return-1===e&&(e=(0,x.isNumber)(t)&&t-1){var r=this.values[n],i=this.formatter;return r=i?i(r,e):zm(r,this.mask)}return t},e.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},e.prototype.setDomain=function(){var e=this.values;(0,x.each)(e,(function(t,n){e[n]=Fm(t)})),e.sort((function(t,e){return t-e})),t.prototype.setDomain.call(this)},e}(sm);const qm=Ym;var $m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContinuous=!0,e}return(0,b.__extends)(e,t),e.prototype.scale=function(t){if((0,x.isNil)(t))return NaN;var e=this.rangeMin(),n=this.rangeMax();return this.max===this.min?e:e+this.getScalePercent(t)*(n-e)},e.prototype.init=function(){t.prototype.init.call(this);var e=this.ticks,n=(0,x.head)(e),r=(0,x.last)(e);nthis.max&&(this.max=r),(0,x.isNil)(this.minLimit)||(this.min=n),(0,x.isNil)(this.maxLimit)||(this.max=r)},e.prototype.setDomain=function(){var t=(0,x.getRange)(this.values),e=t.min,n=t.max;(0,x.isNil)(this.min)&&(this.min=e),(0,x.isNil)(this.max)&&(this.max=n),this.min>this.max&&(this.min=e,this.max=n)},e.prototype.calculateTicks=function(){var e=this,n=t.prototype.calculateTicks.call(this);return this.nice||(n=(0,x.filter)(n,(function(t){return t>=e.min&&t<=e.max}))),n},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;return(t-n)/(e-n)},e.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},e}(om);const Km=$m;var Zm=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="linear",e.isLinear=!0,e}return(0,b.__extends)(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t);return this.min+e*(this.max-this.min)},e.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},e}(Km);const Qm=Zm;function Jm(t,e){var n=Math.E;return e>=0?Math.pow(n,Math.log(e)/t):-1*Math.pow(n,Math.log(-e)/t)}function tg(t,e){return 1===t?1:Math.log(e)/Math.log(t)}function eg(t,e,n){(0,x.isNil)(n)&&(n=Math.max.apply(null,t));var r=n;return(0,x.each)(t,(function(t){t>0&&t1&&(r=1),r}var ng=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e}return(0,b.__extends)(e,t),e.prototype.invert=function(t){var e,n=this.base,r=tg(n,this.max),i=this.rangeMin(),o=this.rangeMax()-i,a=this.positiveMin;if(a){if(0===t)return 0;var s=1/(r-(e=tg(n,a/n)))*o;if(t=0?1:-1;return Math.pow(o,n)*a},e.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;var r=this.exponent;return(Jm(r,t)-Jm(r,n))/(Jm(r,e)-Jm(r,n))},e}(Km);const og=ig;var ag=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="time",e}return(0,b.__extends)(e,t),e.prototype.getText=function(t,e){var n=this.translate(t),r=this.formatter;return r?r(n,e):zm(n,this.mask)},e.prototype.scale=function(e){var n=e;return((0,x.isString)(n)||(0,x.isDate)(n))&&(n=this.translate(n)),t.prototype.scale.call(this,n)},e.prototype.translate=function(t){return Fm(t)},e.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},e.prototype.setDomain=function(){var t=this.values,e=this.getConfig("min"),n=this.getConfig("max");if((0,x.isNil)(e)&&(0,x.isNumber)(e)||(this.min=this.translate(this.min)),(0,x.isNil)(n)&&(0,x.isNumber)(n)||(this.max=this.translate(this.max)),t&&t.length){var r=[],i=1/0,o=i,a=0;(0,x.each)(t,(function(t){var e=Fm(t);if(isNaN(e))throw new TypeError("Invalid Time: "+t+" in time scale!");i>e?(o=i,i=e):o>e&&(o=e),a1&&(this.minTickInterval=o-i),(0,x.isNil)(e)&&(this.min=i),(0,x.isNil)(n)&&(this.max=a)}},e}(Qm);const sg=ag;var ug=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e}return(0,b.__extends)(e,t),e.prototype.invert=function(t){var e=this.ticks,n=e.length,r=this.getInvertPercent(t),i=Math.floor(r*(n-1));if(i>=n-1)return(0,x.last)(e);if(i<0)return(0,x.head)(e);var o=e[i],a=i/(n-1);return o+(r-a)/((i+1)/(n-1)-a)*(e[i+1]-o)},e.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},e.prototype.calculateTicks=function(){var e=t.prototype.calculateTicks.call(this);return this.nice||((0,x.last)(e)!==this.max&&e.push(this.max),(0,x.head)(e)!==this.min&&e.unshift(this.min)),e},e.prototype.getScalePercent=function(t){var e=this.ticks;if(t<(0,x.head)(e))return 0;if(t>(0,x.last)(e))return 1;var n=0;return(0,x.each)(e,(function(e,r){if(!(t>=e))return!1;n=r})),n/(e.length-1)},e}(Km);const lg=ug;const cg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e}return(0,b.__extends)(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(lg);var hg={};function dg(t,e){if(function(t){return hg[t]}(t))throw new Error("type '"+t+"' existed.");hg[t]=e}var fg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="identity",e.isIdentity=!0,e}return(0,b.__extends)(e,t),e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&(0,x.isNumber)(t)?t:this.range[0]},e.prototype.invert=function(t){var e=this.range;return te[1]?NaN:this.values[0]},e}(om);const pg=fg;function mg(t){var e=t.values,n=t.tickInterval,r=t.tickCount,i=t.showLast;if((0,x.isNumber)(n)){var o=(0,x.filter)(e,(function(t,e){return e%n==0})),a=(0,x.last)(e);return i&&(0,x.last)(o)!==a&&o.push(a),o}var s=e.length,u=t.min,l=t.max;if((0,x.isNil)(u)&&(u=0),(0,x.isNil)(l)&&(l=e.length-1),!(0,x.isNumber)(r)||r>=s)return e.slice(u,l+1);if(r<=0||l<=0)return[];for(var c=1===r?s:Math.floor(s/(r-1)),h=[],d=u,f=0;f=l);f++)d=Math.min(u+f*c,l),f===r-1&&i?h.push(e[l]):h.push(e[d]);return h}var gg=Math.sqrt(50),vg=Math.sqrt(10),yg=Math.sqrt(2),bg=function(){function t(){this._domain=[0,1]}return t.prototype.domain=function(t){return t?(this._domain=Array.from(t,Number),this):this._domain.slice()},t.prototype.nice=function(t){var e,n;void 0===t&&(t=5);var r,i=this._domain.slice(),o=0,a=this._domain.length-1,s=this._domain[o],u=this._domain[a];return u0?r=xg(s=Math.floor(s/r)*r,u=Math.ceil(u/r)*r,t):r<0&&(r=xg(s=Math.ceil(s*r)/r,u=Math.floor(u*r)/r,t)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(u/r)*r,this.domain(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(u*r)/r,this.domain(i)),this},t.prototype.ticks=function(t){return void 0===t&&(t=5),function(t,e,n){var r,i,o,a,s=-1;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];(r=e0)for(t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));++s=0?(o>=gg?10:o>=vg?5:o>=yg?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=gg?10:o>=vg?5:o>=yg?2:1)}function wg(t,e,n){return("ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e))*e}function _g(t,e,n){var r=wg(t,n,"floor"),i=wg(e,n,"ceil");r=(0,x.fixedBase)(r,n),i=(0,x.fixedBase)(i,n);for(var o=[],a=Math.max((i-r)/(Math.pow(2,12)-1),n),s=r;s<=i;s+=a){var u=(0,x.fixedBase)(s,a);o.push(u)}return{min:r,max:i,ticks:o}}function Sg(t,e,n){var r,i=t.minLimit,o=t.maxLimit,a=t.min,s=t.max,u=t.tickCount,l=void 0===u?5:u,c=(0,x.isNil)(i)?(0,x.isNil)(e)?a:e:i,h=(0,x.isNil)(o)?(0,x.isNil)(n)?s:n:o;if(c>h&&(h=(r=[c,h])[0],c=r[1]),l<=2)return[c,h];for(var d=(h-c)/(l-1),f=[],p=0;p=0&&(u=1),1-s/(a-1)-n+u}function Tg(t,e,n){var r=(0,x.size)(e);return 1-(0,x.indexOf)(e,t)/(r-1)-n+1}function kg(t,e,n,r,i,o){var a=(t-1)/(o-i),s=(e-1)/(Math.max(o,r)-Math.min(n,i));return 2-Math.max(a/s,s/a)}function Ig(t,e){return t>=e?2-(t-1)/(e-1):1}function Ng(t,e,n,r){var i=e-t;return 1-.5*(Math.pow(e-r,2)+Math.pow(t-n,2))/Math.pow(.1*i,2)}function Pg(t,e,n){var r=e-t;if(n>r){var i=(n-r)/2;return 1-Math.pow(i,2)/Math.pow(.1*r,2)}return 1}function Og(t,e,n,r,i,o){void 0===n&&(n=5),void 0===r&&(r=!0),void 0===i&&(i=Ag),void 0===o&&(o=[.25,.2,.5,.05]);var a=n<0?0:Math.round(n);if(Number.isNaN(t)||Number.isNaN(e)||"number"!=typeof t||"number"!=typeof e||!a)return{min:0,max:0,ticks:[]};if(e-t<1e-15||1===a)return{min:t,max:e,ticks:[t]};if(e-t>1e148){var s=(e-t)/(_=n||5);return{min:t,max:e,ticks:Array(_).fill(null).map((function(e,n){return Eg(t+s*n)}))}}for(var u={score:-2,lmin:0,lmax:0,lstep:0},l=1;l<1/0;){for(var c=0;cu.score&&(!r||E<=t&&A>=e)&&(u.lmin=E,u.lmax=A,u.lstep=M,u.score=I)}g+=1}f+=1}}l+=1}var N=Eg(u.lmax),P=Eg(u.lmin),O=Eg(u.lstep),L=Math.floor(function(t){return Math.round(1e12*t)/1e12}((N-P)/O))+1,R=new Array(L);R[0]=Eg(P);for(c=1;c1&&(i*=Math.ceil(a)),r&&iGm)for(var u=Dg(n),l=Math.ceil(o/Gm),c=s;c<=u+l;c+=l)a.push(zg(c));else if(o>Hm){var h=Math.ceil(o/Hm),d=Fg(e),f=function(t,e){var n=Dg(t),r=Dg(e),i=Fg(t);return 12*(r-n)+(Fg(e)-i)%12}(e,n);for(c=0;c<=f+h;c+=h)a.push(Bg(s,c+d))}else if(o>Vm){var p=(b=new Date(e)).getFullYear(),m=b.getMonth(),g=b.getDate(),v=Math.ceil(o/Vm),y=function(t,e){return Math.ceil((e-t)/Vm)}(e,n);for(c=0;cjm){p=(b=new Date(e)).getFullYear(),m=b.getMonth(),v=b.getDate();var b,x=b.getHours(),w=Math.ceil(o/jm),_=function(t,e){return Math.ceil((e-t)/jm)}(e,n);for(c=0;c<=_+w;c+=w)a.push(new Date(p,m,v,x+c).getTime())}else if(o>Um){var S=function(t,e){return Math.ceil((e-t)/6e4)}(e,n),E=Math.ceil(o/Um);for(c=0;c<=S+E;c+=E)a.push(e+c*Um)}else{var A=o;A=512&&console.warn("Notice: current ticks length("+a.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+o+") is too small, increase the value to solve the problem!"),a})),rm("log",(function(t){var e,n=t.base,r=t.tickCount,i=t.min,o=t.max,a=t.values,s=tg(n,o);if(i>0)e=Math.floor(tg(n,i));else{var u=eg(a,n,o);e=Math.floor(tg(n,u))}for(var l=s-e,c=Math.ceil(l/r),h=[],d=e;d=0?1:-1;return Math.pow(t,e)*n}))})),rm("quantile",(function(t){var e=t.tickCount,n=t.values;if(!n||!n.length)return[];for(var r=n.slice().sort((function(t,e){return t-e})),i=[],o=0;op?(s.show(),l.show(),p=c.minX+c.width+10):(s.hide(),l.hide()),s})),this.controllerBtnGroup=new $p(nv({group:this.group,x:this.x,y:this.y+r+25,width:n,height:35},this.controllerCfg)),this.updateStartEnd(0),this.updateUI(),a.move(this.x,this.y),this.bindEvents(),this.currentMode===Xp&&(this.minHandlerShape.hide(),this.foregroundShape.hide(),this.minTextShape.hide())},t.prototype.bindEvents=function(){var t=this,e=this.group.find((function(t){return"minHandlerShape"===t.get("name")}));e&&(e.on("minHandlerShape-handler:mousedown",this.onMouseDown(this.minHandlerShape)),e.on("minHandlerShape-handler:touchstart",this.onMouseDown(this.minHandlerShape)));var n=this.group.find((function(t){return"maxHandlerShape"===t.get("name")}));n&&(n.on("maxHandlerShape-handler:mousedown",this.onMouseDown(this.maxHandlerShape)),n.on("maxHandlerShape-handler:touchstart",this.onMouseDown(this.maxHandlerShape))),this.foregroundShape.on("mousedown",this.onMouseDown(this.foregroundShape)),this.foregroundShape.on("touchstart",this.onMouseDown(this.foregroundShape)),this.group.on("".concat(kp,":click"),(function(){t.isPlay=!t.isPlay,t.currentHandler=t.maxHandlerShape,t.changePlayStatus()})),this.group.on("".concat(Ip,":click"),(function(){t.currentHandler=t.maxHandlerShape,t.updateStartEnd(.01),t.updateUI()})),this.group.on("".concat(Np,":click"),(function(){t.currentHandler=t.maxHandlerShape,t.updateStartEnd(-.01),t.updateUI()})),this.group.on(Tp,(function(e){var n=e.type,r=e.speed;t.currentSpeed=r,t.currentMode=n,n===Xp?(t.minHandlerShape.hide(),t.foregroundShape.hide(),t.minTextShape.hide()):n===Yp&&(t.minHandlerShape.show(),t.foregroundShape.show(),t.minTextShape.show())}))},t.prototype.adjustTickIndex=function(t){for(var e=0;e1&&(this.start=1),this.end>1&&(this.end=1),this.end<0&&(this.end=0);var e=this.x+this.start*this.width,n=this.x+this.end*this.width;this.foregroundShape.attr("x",e),this.foregroundShape.attr("width",n-e);var r=(0,x.get)(this.handlerStyle,"width",2);this.setText(this.minText,this.maxText);var i=this.dodgeText([e,n]),o=i[0],a=i[1];this.minHandlerShape.setX(e-r/2),(0,x.each)(o,(function(e,n){return t.minTextShape.attr(n,e)})),this.maxHandlerShape.setX(n-r/2),(0,x.each)(a,(function(e,n){return t.maxTextShape.attr(n,e)})),this.currentMode===Yp?this.graph.emit(Cp,{value:[this.start,this.end].sort()}):this.currentMode===Xp&&this.graph.emit(Cp,{value:[this.end,this.end]})},t.prototype.dodgeText=function(t){var e,n,r=(0,x.get)(this.handlerStyle,"width",2),i=this.minTextShape,o=this.maxTextShape,a=t[0],s=t[1],u=!1;a>s&&(a=(e=[s,a])[0],s=e[1],i=(n=[o,i])[0],o=n[1],u=!0);var l=i.getBBox(),c=o.getBBox(),h=null,d=null;return"trend"===this.timeBarType?(h=a-l.widththis.x+this.width?{x:s-r/2-2,textAlign:"right"}:{x:s+r/2+2,textAlign:"left"}):"simple"===this.timeBarType&&(h=i.attr("x")>l.width?{x:a,textAlign:"center"}:{x:a,textAlign:"left"},d=o.attr("x")>this.width-c.width?{x:s,textAlign:"right"}:{x:s,textAlign:"center"}),u?[d,h]:[h,d]},t.prototype.startPlay=function(){var t=this;return"undefined"!=typeof window?window.requestAnimationFrame((function(){var e=t,n=e.ticks,r=e.width,i=t.currentSpeed,o=r/n.length/(1e3*(10-i)/60),a=t.adjustOffsetRange(o/t.width);t.updateStartEnd(a),t.updateUI(),t.isPlay&&(t.playHandler=t.startPlay())})):void 0},t.prototype.changePlayStatus=function(t){void 0===t&&(t=!0),this.controllerBtnGroup.playButton.update({isPlay:this.isPlay}),this.isPlay?(this.playHandler=this.startPlay(),this.graph.emit(Ap,null)):this.playHandler&&("undefined"!=typeof window&&window.cancelAnimationFrame(this.playHandler),t&&this.graph.emit(Mp,null))},t.prototype.destory=function(){this.graph.off(Cp,(function(){}));var t=this.group,e=t.find((function(t){return"minHandlerShape"===t.get("name")}));e&&(e.off("minHandlerShape-handler:mousedown"),e.off("minHandlerShape-handler:touchstart"),e.destroy());var n=t.find((function(t){return"maxHandlerShape"===t.get("name")}));n&&(n.off("maxHandlerShape-handler:mousedown"),n.off("maxHandlerShape-handler:touchstart"),n.destroy()),this.foregroundShape.off("mousedown"),this.foregroundShape.off("touchstart"),this.foregroundShape.destroy(),t.off("".concat(kp,":click")),t.off("".concat(Ip,":click")),t.off("".concat(Np,":click")),t.off(Tp),t.destroy(),this.trendComponent&&this.trendComponent.destory()},t}();const dv=hv;var fv=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pv=function(){return pv=Object.assign||function(t){for(var e,n=1,r=arguments.length;n")),{position:"relative"}),a)&&this.get("graph").get("container").appendChild(t);this.set("timeBarContainer",t),e="SVG"===n.get("renderer")?new Rh({container:t,width:i,height:o}):new Ic({container:t,width:i,height:o}),this.get("containerCSS")&&Gf(t,this.get("containerCSS")),this.set("canvas",e)},e.prototype.init=function(){this.initContainer();var t=this.get("canvas").addGroup({name:"timebar-group"});this.set("timeBarGroup",t),this.renderTrend(),this.initEvent();var e="undefined"!=typeof window&&window.getComputedStyle(document.body,null).getPropertyValue("font-family")||"Arial, sans-serif";this.set("fontFamily",e)},e.prototype.play=function(){this.togglePlay(!0)},e.prototype.pause=function(){this.togglePlay(!1)},e.prototype.togglePlay=function(t){var e=this.get("timebar");e&&(e.isPlay=!!t,e.changePlayStatus())},e.prototype.renderTrend=function(){var t=this,e=this._cfgs,n=e.width,r=e.x,i=e.y,o=e.padding,a=e.type,s=e.trend,u=e.slider,l=e.controllerCfg,c=e.textStyle,h=e.tick,d=e.backgroundStyle,f=e.foregroundStyle,p=s.data,m=mv(s,["data"]),g=n-2*o,v="trend"===a?26:4,y=this.get("graph"),b=this.get("timeBarGroup"),x=this.get("canvas"),w=null;if("trend"===a||"simple"===a){var _=this.get("getValue");w=new dv(pv(pv({graph:y,canvas:x,group:b,type:a,x:r+o,y:"trend"===a?i+o:i+o+15,width:g,height:v,padding:o,backgroundStyle:d,foregroundStyle:f,trendCfg:pv(pv({},m),{data:p.map((function(t){return(null==_?void 0:_(t))||t.value}))})},u),{tick:{ticks:p,tickLabelFormatter:h.tickLabelFormatter,tickLabelStyle:h.tickLabelStyle,tickLineStyle:h.tickLineStyle},handlerStyle:pv(pv({},u.handlerStyle),{height:u.height||v}),controllerCfg:l,textStyle:c}))}else"tick"===a&&(w=new em(pv({graph:y,canvas:x,group:b,x:r+o,y:i+o,width:n,height:42,padding:2,controllerCfg:l},h)));var S=function e(){var n=t.get("timebar");n.draggingHandler=!1,n.isPlay&&(n.isPlay=!1,n.currentHandler=n.maxHandlerShape,n.changePlayStatus()),document.removeEventListener("mouseup",e)};x.on("mousedown",(function(t){"maxHandlerShape-handler"!==t.target.get("name")&&"minHandlerShape-handler"!==t.target.get("name")&&t.target!==w.foregroundShape||document.addEventListener("mouseup",S)})),this.set("timebar",w)},e.prototype.filterData=function(t){var e,n=t.value;if(!n){n=[];var r=this._cfgs.type;r&&"trend"!==r&&"simple"!==r?"tick"===r&&(n[0]=this._cfgs.tick.start,n[1]=this._cfgs.tick.end):(n[0]=this._cfgs.slider.start,n[1]=this._cfgs.slider.end)}var i=null,o=this._cfgs.type;if("trend"===o||"simple"===o?i=this._cfgs.trend.data:"tick"===o&&(i=this._cfgs.tick.data),i&&0!==i.length){var a=this.get("rangeChange"),s=this.get("graph"),u=Math.round(i.length*n[0]),l=Math.round(i.length*n[1]);l=l>=i.length?i.length-1:l,u=u>=i.length?i.length-1:u;var c=null===(e=this._cfgs.tick)||void 0===e?void 0:e.tickLabelFormatter,h=c?c(i[u]):i[u].date,d=c?c(i[l]):i[l].date;if("tick"!==o)this.get("timebar").setText(h,d);if(a)a(s,h,d);else{(!this.cacheGraphData||this.cacheGraphData.nodes&&0===this.cacheGraphData.nodes.length)&&(this.cacheGraphData=s.get("data"));var f=this.get("filterItemTypes"),p=this.get("changeData"),m=this.get("getDate"),g=this.get("shouldIgnore"),v=i[u].date,y=i[l].date;if(p||void 0===p){var b=this.cacheGraphData.nodes,x=this.cacheGraphData.edges,w={},_={};s.getNodes().forEach((function(t){return w[t.getID()]=!0})),s.getEdges().forEach((function(t){return _[t.getID()]=!0})),f.includes("node")&&(null==b||b.forEach((function(t){var e=+((null==m?void 0:m(t))||t.date),n=e>=v&&e<=y||(null==g?void 0:g("node",t,{min:v,max:y})),r=w[t.id];r&&!n?(s.removeItem(t.id),w[t.id]=!1):!r&&n&&(s.addItem("node",t),w[t.id]=!0)})),null==x||x.forEach((function(t){var e=w[t.source]&&w[t.target]||(null==g?void 0:g("edge",t,{min:v,max:y})),n=!!s.findById(t.id);n&&!e?(s.removeItem(t.id),_[t.id]=!1):!n&&e?(s.addItem("edge",t),_[t.id]=!0):n||(_[t.id]=!1)}))),(this.get("filterEdge")||f.includes("edge"))&&(null==x||x.filter((function(t){var e=+((null==m?void 0:m(t))||t.date),n=e>=v&&e<=y||(null==g?void 0:g("edge",t,{min:v,max:y})),r=w[t.source]&&w[t.target],i=n&&r,o=_[t.id];o&&!i?(_[t.id]=!1,s.removeItem(t.id)):!o&&i&&(_[t.id]=!0,s.addItem("edge",t))})))}else f.includes("node")&&s.getNodes().forEach((function(t){var e=t.getModel();if(!(null==g?void 0:g("node",e,{min:v,max:y}))){var n=+((null==m?void 0:m(e))||e.date);ny?s.hideItem(t):s.showItem(t)}})),(this.get("filterEdge")||f.includes("edge"))&&s.getEdges().forEach((function(t){var e=t.getModel();if(!(null==g?void 0:g("edge",e,{min:i[u].date,max:i[l].date}))){var n=+((null==m?void 0:m(e))||e.date);if(ni[l].date)s.hideItem(t);else{var r=t.getSource().isVisible(),o=t.getTarget().isVisible();r&&o&&s.showItem(t)}}}))}}else console.warn("请配置 TimeBar 组件的数据")},e.prototype.initEvent=function(){var t=this.get("graph");t.on("afterchangedata",this.changeData),t.on("afterrender",this.afterrenderListener),t.on(Cp,this.valueChangeListener)},e.prototype.destroy=function(){var e=this.get("graph");e.off("afterchangedata",this.changeData),e.off("afterrender",this.afterrenderListener),e.off(Cp,this.valueChangeListener);var n=this.get("timebar");n&&n.destory&&n.destory(),t.prototype.destroy.call(this);var r=this.get("timeBarContainer");if(r){var i=this.get("container");i||(i=this.get("graph").get("container")),(0,x.isString)(i)&&(i=document.getElementById(i)),i===r&&(i=i.parentElement),i.removeChild(r)}},e}(Xf);const vv=gv;var yv=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bv=el.applyMatrix;var xv=function(t){function e(e){return t.call(this,e)||this}return yv(e,t),e.prototype.getDefaultCfgs=function(){return{container:null,className:"g6-minimap",viewportClassName:"g6-minimap-viewport",width:200,delegateStyle:{fill:"#40a9ff",stroke:"#096dd9"},refresh:!0}},e.prototype.getEvents=function(){return{beforepaint:"updateViewport",beforeanimate:"disableRefresh",afteranimate:"enableRefresh",viewportchange:"disableOneRefresh"}},e.prototype.disableRefresh=function(){this.set("refresh",!1)},e.prototype.enableRefresh=function(){this.set("refresh",!0),this.updateCanvas()},e.prototype.disableOneRefresh=function(){this.set("viewportChange",!0)},e.prototype.initViewport=function(){var t=this,e=this._cfgs,n=e.graph;if(!this.destroyed){var r=this.get("container");(0,x.isString)(r)&&(r=document.getElementById(r));var i=Uh("
    ")),o=0,a=0,s=!1,u=0,l=0,c=0,h=0,d=0,f=0;r.addEventListener("mousedown",(function(r){if(e.refresh=!1,r.target===i){var u=i.style;c=parseInt(u.width,10),h=parseInt(u.height,10);var l=t.get("width"),p=t.get("height");c>l||h>p||(f=n.getZoom(),d=t.get("ratio"),s=!0,o=r.clientX,a=r.clientY)}}),!1),r.addEventListener("mousemove",(function(e){if(s&&!(0,x.isNil)(e.clientX)&&!(0,x.isNil)(e.clientY)){var r=t.get("width"),p=t.get("height"),m=i.style;u=parseInt(m.left,10),l=parseInt(m.top,10),c=parseInt(m.width,10),h=parseInt(m.height,10);var g=o-e.clientX,v=a-e.clientY;u-g<0?g=u:u-g+c>=r&&(g=0),l-v<0?v=l:l-v+h>=p&&(v=0),l-=v,Gf(i,{left:"".concat(u-=g,"px"),top:"".concat(l,"px")}),n.translate(g*f/d,v*f/d),o=e.clientX,a=e.clientY}}),!1),r.addEventListener("mouseleave",(function(){s=!1,e.refresh=!0}),!1),r.addEventListener("mouseup",(function(){s=!1,e.refresh=!0}),!1),this.set("viewport",i),r.appendChild(i)}},e.prototype.updateViewport=function(){if(!this.destroyed){var t=this.get("ratio"),e=this.get("width"),n=this.get("height"),r=this.get("graph"),i=r.get("width"),o=i/r.get("height"),a=r.getGroup(),s=a.getCanvasBBox(),u=[(s.minX+s.maxX)/2,(s.minY+s.maxY)/2],l=[s.maxX-s.minX,s.maxY-s.minY],c={centerX:u[0],centerY:u[1],width:0,height:0,minX:0,minY:0};s[0]/s[1]>o?(c.width=l[0],c.height=c.width/o):(c.height=l[1],c.width=c.height*o),c.minX=u[0]-c.width/2,c.minY=u[1]-c.height/2;var h=a.getMatrix();h||(h=[1,0,0,0,1,0,0,0,1]);var d=C.invert([1,0,0,0,1,0,0,0,1],h),f=bv({x:c.minX,y:c.minY},d),p=r.getCanvasByPoint(f.x,f.y),m=this.get("viewport");m||this.initViewport();var g=i/c.width,v=g*e,y=g*n,b=e*-p.x/c.width,x=n*-p.y/c.height,w=b+v,_=x+y;b<0&&(v+=b,b=0),w>e&&(v-=w-e),x<0&&(y+=x,x=0),_>n&&(y-=_-n),this.set("ratio",t),Gf(m,{left:"".concat(b,"px"),top:"".concat(x,"px"),width:"".concat(v,"px"),height:"".concat(y,"px")})}},e.prototype.init=function(){this.initContainer()},e.prototype.initContainer=function(){var t=this,e=t.get("graph"),n=e.get("width"),r=e.get("height")/n,i=t.get("className"),o=t.get("container"),a=t.get("width"),s=t.get("height");a||s||(a=200),a?(s=r*a,t.set("height",s)):(a=1/r*s,t.set("width",a));var u=Uh("
    "));(0,x.isString)(o)&&(o=document.getElementById(o)),o?o.appendChild(u):e.get("container").appendChild(u),t.set("container",u);var l=Uh('
    ');u.appendChild(l);var c=Uh('');l.appendChild(c),t.set("containerDOM",l),t.set("containerSpan",c);var h=Uh(''));t.set("imgDOM",h),t.updateImgSize(),c.appendChild(h),t.updateCanvas()},e.prototype.updateImgSize=function(){var t=this,e=t.get("imgDOM"),n=t.get("width"),r=t.get("height");e.onload=function(){var t=function(t,e){var n,r;if(t.naturalWidth)n=t.naturalWidth,r=t.naturalHeight;else{var i=new Image;i.src=t.src,i.onload=function(){e&&e(i.width,i.height)}}return[n,r]}(e);t[0]>t[1]?e.width=n:e.height=r}},e.prototype.updateCanvas=function(){if(this.get("refresh")){var t=this.get("graph");if(!t.get("destroyed")){this.get("viewportChange")&&(this.set("viewportChange",!1),this.updateViewport());var e=this.get("width")/t.get("canvas").getCanvasBBox().width;this.set("ratio",e),this.updateViewport()}}},e.prototype.getViewport=function(){return this.get("viewport")},e.prototype.getContainer=function(){return this.get("container")},e.prototype.updateGraphImg=function(t){var e=this;e.get("imgDOM").remove(),e.set("graphImg",t);var n=Uh(''));e.set("imgDOM",n),n.src=t,e.updateImgSize(),e.get("containerSpan").appendChild(n),e.updateCanvas()},e.prototype.destroy=function(){var t=this.get("container");t.parentNode.removeChild(t)},e}(Xf);const wv=xv;var _v=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Sv=function(){return Sv=Object.assign||function(t){for(var e,n=1,r=arguments.length;n(o||r.get("height"))&&n>1||s<(a||.05*r.get("height"))&&n<1)&&(n=1),s*=n,e.set("r",s),e.filter(t)}},e.prototype.filter=function(t){var e=this,n=e.get("graph"),r=n.getNodes(),i={},o=e.get("r"),a=e.get("type"),s={x:t.x,y:t.y};e.updateDelegate(s,o);var u=e.get("shouldShow"),l=e.get("vShapes");l&&l.forEach((function(t){t.remove(),t.destroy()})),l=[],r.forEach((function(t){var e=t.getModel(),n=e.x,r=e.y;Ev({x:n,y:r},s)
    ");r.appendChild(i),this.set("container",i);var o=this.render();Gf(i,this.getContainerPos(o)),this.bindEvents()},e.prototype.getContainerPos=function(t){void 0===t&&(t=[0,0]);var e=this.get("graph"),n=this.get("offsetX"),r=this.get("offsetY"),i=this.get("margin"),o=this.get("position").split("-"),a={top:0,right:1,bottom:2,left:3},s={left:(e.getWidth()-t[0])/2+0,top:(e.getHeight()-t[1])/2+0};return o.forEach((function(n){var r=i[a[n]],o=n;switch(n){case"top":case"left":r+=0;break;case"bottom":r=e.getHeight()-t[1]-r+0,o="top";break;default:r=e.getWidth()-t[0]-r+0,o="left"}s[o]=r})),s.top+=r+e.getContainer().offsetTop,s.left+=n+e.getContainer().offsetLeft,Object.keys(s).forEach((function(t){s[t]="".concat(s[t],"px")})),s},e.prototype.bindEvents=function(){var t=this,e=t.get("filter");if(e&&e.enable){var n=e.trigger||"click";Rv.includes(n)||(console.warn("Trigger for legend filterling must be 'click' or 'mouseenter', 'click' will take effect by default."),n="click");var r=t.get("legendCanvas");"mouseenter"===n?(r.on("node-container:mouseenter",(function(e){return t.filterData(e)})),r.on("node-container:mouseleave",(function(e){t.clearFilter(),t.clearActiveLegend()}))):(r.on("node-container:click",(function(e){return t.filterData(e)})),r.on("click",(function(e){e.target&&e.target.isCanvas&&e.target.isCanvas()&&(t.clearFilter(),t.clearActiveLegend())})))}},e.prototype.changeData=function(t){this.set("data",t);var e=this.render();Gf(this.get("container"),this.getContainerPos(e))},e.prototype.activateLegend=function(t){var e=this.get("filter");(null==e?void 0:e.multiple)||this.clearActiveLegend();var n=t.get("parent");n.get("active")?(n.set("active",!1),this.findLegendItemsByState("active").length&&n.set("inactive",!0)):(n.set("inactive",!1),n.set("active",!0)),this.findLegendItemsByState("active").length?this.findLegendItemsByState("active","all",!1).forEach((function(t){t.set("inactive",!0)})):this.clearActiveLegend();var r=(null==e?void 0:e.legendStateStyles)||{},i=(null==r?void 0:r.inactive)||{opacity:.5,"text-shape":{opacity:.5}},o=i["text-shape"]||{};this.findLegendItemsByState("inactive").forEach((function(t){var e=t.get("children"),n=e[0],r=e[1];n.attr(Lv(Lv({},n.get("oriAttrs")),i)),r.attr(Lv(Lv({},r.get("oriAttrs")),o))}));var a=(null==r?void 0:r.active)||{stroke:"#000",lineWidth:2,"text-shape":{fontWeight:"bold"}},s=a["text-shape"]||{};this.findLegendItemsByState("active").forEach((function(t){var e=t.get("children"),n=e[0],r=e[1];n.attr(Lv(Lv({},n.get("oriAttrs")),a)),r.attr(Lv(Lv({},r.get("oriAttrs")),s))}))},e.prototype.findLegendItemsByState=function(t,e,n){void 0===e&&(e="all"),void 0===n&&(n=!0);var r=this.get("legendCanvas").find((function(t){return"root"===t.get("name")})),i=r.find((function(t){return"node-group"===t.get("name")})),o=r.find((function(t){return"edge-group"===t.get("name")}));return"node"===e?i.get("children").filter((function(e){return!!e.get(t)===n})):"edge"===e?o.get("children").filter((function(e){return!!e.get(t)===n})):i.get("children").filter((function(e){return!!e.get(t)===n})).concat(o.get("children").filter((function(e){return!!e.get(t)===n})))},e.prototype.clearActiveLegend=function(){var t=this.get("legendCanvas").find((function(t){return"root"===t.get("name")}));[t.find((function(t){return"node-group"===t.get("name")})),t.find((function(t){return"edge-group"===t.get("name")}))].forEach((function(t){t.get("children").forEach((function(t){t.set("active",!1),t.set("inactive",!1);var e=t.get("children"),n=e[0],r=e[1];n.attr(n.get("oriAttrs")),r.attr(r.get("oriAttrs"))}))}))},e.prototype.filterData=function(t){var e=this.get("filter"),n=null==e?void 0:e.filterFunctions;if(e&&n){var r=this.get("legendCanvas"),i=this.get("graph"),o=e.graphActiveState||"active",a=e.graphInactiveState||"inactive",s=e.multiple;this.clearFilter(),s||this.clearActiveLegend(),this.activateLegend(t.target);var u=r.find((function(t){return"root"===t.get("name")})),l=u.find((function(t){return"node-group"===t.get("name")})),c=u.find((function(t){return"edge-group"===t.get("name")})),h=l.get("children").filter((function(t){return t.get("active")})),d=c.get("children").filter((function(t){return t.get("active")})),f=0,p=["getNodes","getEdges"];p.forEach((function(t){i[t]().forEach((function(e){var r=!1;("getNodes"===t?h:d).forEach((function(t){var i=n[t.get("id")];r=r||i(e.getModel())})),r?(i.setItemState(e,a,!1),i.setItemState(e,o,!0),f++):(i.setItemState(e,o,!1),i.setItemState(e,a,!0))}))})),f||p.forEach((function(t){i[t]().forEach((function(t){i.clearItemStates(t,[a])}))}))}},e.prototype.clearFilter=function(){var t=this.get("graph"),e=this.get("filter");if(e){var n=e.graphActiveState||"active",r=e.graphInactiveState||"inactive";t.getNodes().forEach((function(e){t.clearItemStates(e,[n,r])})),t.getEdges().forEach((function(e){t.clearItemStates(e,[n,r])}))}},e.prototype.render=function(){var t=this;this.processData();var e=this.get("legendCanvas");e?e.clear():e=new Ic({container:this.get("container"),width:200,height:200});var n=e.addGroup({name:"root"}),r=n.addGroup({name:"node-group"}),i=n.addGroup({name:"edge-group"});this.set("legendCanvas",e);var o=this.get("itemsData"),a=[r,i];["nodes","edges"].forEach((function(e,n){o[e].forEach((function(r){var i,o,s=a[n].addGroup({id:r.id,name:"node-container"}),u=r.type,l=t.getShapeSize(r),c=l.width,h=l.height,d=l.r,f=t.getStyle(e.substr(0,4),r);switch(r.type){case"circle":default:o={r:d,x:0,y:0};break;case"rect":o={width:c,height:h,x:-c/2,y:-h/2};break;case"ellipse":o={rx:c,ry:h,x:0,y:0},u="ellipse";break;case"line":o={x1:-c/2,y1:0,x2:c/2,y2:0},u="line";break;case"quadratic":o={path:[["M",-c/2,0],["Q",0,c/2,c/2,0]]},u="path";break;case"cubic":o={path:[["M",-c/2,0],["C",-c/6,c/2,c/6,-c/2,c/2,0]]},u="path";break;case"diamond":o={path:[["M",0,-h],["L",c,0],["L",0,h],["L",-c,0],["Z"]]},u="path";break;case"triangle":o={path:[["M",-c,h],["L",0,-h],["L",c,h],["Z"]]},u="path";break;case"star":o={path:el.getStarPath(3*d,1.2*d)},u="path"}var p=s.addShape(u,{attrs:Lv(Lv({},o),f),name:"".concat(r.type,"-node-keyShape"),oriAttrs:Lv({opacity:1},f)});if(r.label){var m=p.getBBox(),g=(null===(i=r.labelCfg)||void 0===i?void 0:i.style)||{},v=Lv({textAlign:"begin",fontSize:12,textBaseline:"middle",fill:"#000",opacity:1,fontWeight:"normal"},g);s.addShape("text",{attrs:Lv({x:m.maxX+4,y:0,text:r.label},v),className:"legend-label",name:"".concat(r.type,"-node-text"),oriAttrs:v})}}))}));var s,u=this.get("padding"),l=n.find((function(t){return"title-container"===t.get("name")})),c={height:0,maxY:0,width:0};if(this.get("title")){l||(l=n.addGroup({name:"title-container"}));var h={fontSize:20,fontFamily:"Arial",fontWeight:300,textBaseline:"top",textAlign:"center",fill:"#000",x:0,y:u[0]},d=this.get("titleConfig")||{},f=Object.assign(h,d.style||{});s=l.addShape("text",{attrs:Lv({text:this.get("title")},f)}),c=l.getCanvasBBox(),l.setMatrix([1,0,0,0,1,0,d.offsetX,d.offsetY,1])}this.layoutItems();var p=n.getCanvasBBox(),m=r.getCanvasBBox(),g=m.minX<0?Math.abs(m.minX)+u[3]:u[3],v=c.maxYl.max&&(l.max=o[0]),f>c&&(c=f),t.setMatrix([1,0,0,0,1,0,p,m,1])}));var h=l.max-l.min,d={min:0,max:-1/0},f=s.getCanvasBBox();o[0]=0,o[1]="vertical"===r?f.maxX+e:f.maxY+n,u.get("children").forEach((function(t,i){0===i&&(d.min=o[0]);var a=t.get("children")[0],s=t.getCanvasBBox(),u=a.getBBox(),l=u.width,c=u.height,h=0,f=0;"vertical"===r?(h=o[1],f=o[0],o[0]=f+s.height+n,t.setMatrix([1,0,0,0,1,0,0,f+c/2,1])):(h=o[0],f=o[1],o[0]=h+s.width+e,t.setMatrix([1,0,0,0,1,0,h+l/2,0,1])),o[0]>d.max&&(d.max=o[0])}));var p=d.max-d.min;if(i&&""!==i&&"left"!==i){var m=h-p,g="center"===i?Math.abs(m)/2:Math.abs(m);(m<0?s:u).get("children").forEach((function(t){var e=t.getMatrix()||[1,0,0,0,1,0,0,0,1];"vertical"===r?e[7]+=g:e[6]+=g,t.setMatrix(e)}))}},e.prototype.processData=function(){var t=this.get("data"),e={nodes:[],edges:[]};t.nodes&&(t.nodes.sort((function(t,e){return t.order-e.order})),t.nodes.forEach((function(t){var n,r,i,o,a,s=t.size||[(null===(n=t.style)||void 0===n?void 0:n.width)||(null===(r=t.style)||void 0===r?void 0:r.r)||8,(null===(i=t.style)||void 0===i?void 0:i.height)||(null===(o=t.style)||void 0===o?void 0:o.r)||8],u=(null===(a=t.labelCfg)||void 0===a?void 0:a.style)||{};e.nodes.push({id:t.id||(0,x.uniqueId)(),type:t.type||"circle",style:Lv({},t.style),order:t.order,label:t.label,itemType:"node",size:s,labelCfg:{position:"right",style:Lv({fontFamily:"Arial"},u)}})}))),t.edges&&(t.edges.sort((function(t,e){return t.order-e.order})),t.edges.forEach((function(t){var n,r,i=t.type||"line";"cubic-horizontal"===t.type&&(i="cubic");var o=(null===(n=t.labelCfg)||void 0===n?void 0:n.style)||{},a=t.size||[(null===(r=t.style)||void 0===r?void 0:r.width)||8,1];e.edges.push({id:t.id||(0,x.uniqueId)(),type:i,size:a,style:Lv({lineWidth:(0,x.isArray)(a)?a[1]:1},t.style),order:t.order,label:t.label,itemType:"edge",labelCfg:{position:"right",style:Lv({fontFamily:"Arial"},o)}})}))),this.set("itemsData",e)},e.prototype.getContainer=function(){return this.get("container")},e.prototype.formatArray=function(t){var e=this.get(t);if((0,x.isNumber)(e))this.set(t,[e,e,e,e]);else if((0,x.isArray)(e))switch(e.length){case 0:this.set(t,[0,0,0,0]);break;case 1:this.set(t,[e[0],e[0],e[0],e[0]]);break;case 2:this.set(t,[e[0],e[1],e[0],e[1]]);break;case 3:this.set(t,[e[0],e[1],e[2],e[1]])}return this.get(t)},e.prototype.getShapeSize=function(t){var e,n,r;return t.size&&((0,x.isArray)(t.size)?(e=t.size[0],n=t.size[1]||t.size[0],r=t.size[0]/2):(0,x.isNumber)(t.size)&&(e=t.size,n=t.size,r=t.size/2)),t.style&&(t.style.width&&(e=t.style.width),t.style.height&&(n=t.style.height),t.style.r&&(r=t.style.r)),r||(r=5),e||(e=r),n||(n=r),{width:e,height:n,r}},e.prototype.getStyle=function(t,e){return Lv(Lv({},"node"===t?{fill:"#ccc",lineWidth:0}:{stroke:"#000",lineWidth:1}),e.style||{})},e.prototype.destroy=function(){var t=this.get("legendCanvas");null==t||t.destroy();var e=this.get("graph").get("container"),n=this.get("container");e.removeChild(n)},e}(Xf);const zv=Dv;var Fv=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bv=function(){return Bv=Object.assign||function(t){for(var e,n=1,r=arguments.length;n+

    ":"

    -

    ",c=e?"":"

    ".concat(a,"

    "),h=e?"".concat(u,"px"):"".concat(u,"px ").concat(u,"px 0 0");return'
    \n \n

    ").concat(i,"

    \n ").concat(l,"\n ").concat("

    x

    ","\n
    \n ").concat(c,"\n ")}},e.prototype.init=function(){var t=this;if(!t.destroyed){var e=t.get("graph").getContainer(),n=t.get("container");this.get("containerCfg")?(n=this.createContainer(),e.appendChild(n)):n=e,this.set("container",n);var r=e.getBoundingClientRect(),i=new Ic({container:e,width:r.right-r.left,height:r.bottom-r.top});Gf(i.get("el"),{position:"absolute",top:0,left:0,pointerEvents:"none"}),window.addEventListener("resize",(0,x.debounce)((function(){return t.resizeCanvas(t)}),100));var o=i.addGroup({id:"annotation-link-group"});t.set("linkGroup",o),t.set("canvas",i),t.get("getTitle")||t.set("getTitle",(function(t){var e,n=(null===(e=null==t?void 0:t.getModel)||void 0===e?void 0:e.call(t))||{},r=n.label,i=n.id;return r||i||"-"})),t.get("getContent")||t.set("getContent",(function(t){var e,n;if(!t)return"-";var r=(null===(e=t.getModel)||void 0===e?void 0:e.call(t))||{},i=r.label,o=r.id,a=null===(n=t.getType)||void 0===n?void 0:n.call(t),s=a?"".concat(a,": "):"";return"".concat(s).concat(i||o||"")}));var a=t.get("defaultData");a&&this.readData(a)}},e.prototype.createContainer=function(){var t=this;if(!this.destroyed){var e=this.get("containerCfg"),n=this.get("graph"),r=n.getContainer(),i=r.getBoundingClientRect(),o=i.left,a=i.right,s=i.top,u=i.bottom-s,l=a-o,c=e.position,h=void 0===c?"top":c,d=e.offsetX,f=void 0===d?0:d,p=e.offsetY,m=void 0===p?0:p,g=Uv(e,["position","offsetX","offsetY"]),v=e.height,y=void 0===v?"fit-content":v,b=e.width,w=void 0===b?n.getWidth():b;"100%"===y&&(y=u),"100%"===w&&(w=l);var _="unset",S="unset",E={};switch(h){case"right":_="".concat(u,"px"),(E={top:0,right:0}).right+=o+f,E.top+=s+m;break;case"bottom":S="".concat(l,"px"),(E={bottom:0,left:0}).left+=o+f,E.bottom+=s+m;break;case"top":S="".concat(l,"px");case"left":_="".concat(u,"px");default:(E={top:0,left:0}).left+=o+f,E.top+=s+m}Object.keys(E).forEach((function(t){E[t]="".concat(E[t],"px")}));var A=Uh("
    "));return Gf(A,Bv(Bv({position:"absolute",display:"top"===h||"bottom"===h?"inline-flex":"unset",width:(0,x.isNumber)(w)?"".concat(w,"px"):w,height:(0,x.isNumber)(y)?"".concat(y,"px"):y,maxHeight:_,maxWidth:S,overflow:"scroll"},E),g)),r.appendChild(A),A.addEventListener("scroll",(function(e){t.updateLinks()})),A}},e.prototype.resizeCanvas=function(t){clearTimeout(t.resizeTimer),t.resizeTimer=setTimeout((function(){if(t&&!t.destroyed){var e=t.get("container").getBoundingClientRect(),n=e.right-e.left,r=e.bottom-e.top;t.get("canvas").changeSize(n,r),t.updateOutsideCards(t)}}),250)},e.prototype.updateOutsideCards=function(t){var e=t||this,n=e.get("cardInfoMap")||{},r=e.get("graph"),i=r.getPointByCanvas(0,0),o=r.getPointByCanvas(r.getWidth(),r.getHeight()),a=r.getClientByPoint(i.x,i.y),s=a.x,u=a.y,l=r.getClientByPoint(o.x,o.y),c=l.x,h=l.y;Object.values(n).forEach((function(t){var e=t.card;if(e){var n=e.style,r=Gv(n.left),i=Gv(n.top),o=e.getBoundingClientRect(),a=o.width,l=o.height,d=r,f=i;r+a>c-s&&(d=c-s-a),r<0&&(d=0),i+l>h-u&&(f=h-u-l),i<0&&(f=0),Gf(e,{left:"".concat(d,"px"),top:"".concat(f,"px")})}})),e.updateLinks()},e.prototype.showAnnotation=function(t){if(!this.destroyed){var e=t.item;this.toggleAnnotation(e)}},e.prototype.hideCards=function(){var t=this;if(!t.destroyed){var e=t.get("cardInfoMap")||{};Object.keys(e).forEach((function(e){t.hideCard(e)}))}},e.prototype.toggleAnnotation=function(t,e){var n,r;void 0===e&&(e={});var i=this;if(!i.destroyed){var o=i.get("cardInfoMap")||{},a=i.get("graph"),s=i.get("container"),u=i.get("containerCfg"),l=Object.assign({},i.get("cardCfg")||{},e),c=l.minHeight,h=l.minWidth,d=l.width,f=l.height,p=l.collapsed,m=void 0!==p&&p,g=l.x,v=l.y,y=l.title,b=l.content,w=l.maxTitleLength,_=l.defaultBegin,S=Uv(l,["minHeight","minWidth","width","height","collapsed","x","y","title","content","maxTitleLength","defaultBegin"]),E=i.get("linkGroup"),A=this.get("rows")||[[]],M=null===(n=t.isCanvas)||void 0===n?void 0:n.call(t),C=M?jv:t.getID(),T=o[C]||{},k=T.card,I=T.link,N=T.x,P=T.y,O=T.title,L=T.content,R=this.get("getTitle"),D=this.get("getContent"),z=this.get("getContentPlaceholder")||function(){return""},F=this.get("getTitlePlaceHolder")||function(){return""},B=z(t),U=F(t),j=Uh(this.getDOMContent(Bv({itemId:C,collapsed:m,title:(null===(r=O||y||(null==R?void 0:R(t)))||void 0===r?void 0:r.substr(0,w))||U,content:L||b||(null==D?void 0:D(t))||B},S))),V=(0,x.isNumber)(c)?"".concat(c,"px"):c;Gf(j,{minHeight:m?"unset":V,minWidth:(0,x.isNumber)(h)?"".concat(h,"px"):h,height:f,width:d});var H,G=!!k;if(G?(null==I||I.remove(!0),s.replaceChild(j,k)):s.appendChild(j),!u){if(H=s.getBoundingClientRect()||{},void 0!==g&&void 0!==v)N=g,P=v;else if(!G&&!M){var W=H.top,X=_||{},Y=X.left,q=X.right,$=void 0===q?16:q,K=X.top,Z=void 0===K?8:K,Q=X.bottom,J=$,tt=Z;isNaN(Y)||(J=s.scrollWidth-Y),isNaN(Q)||(tt=s.scrollHeight-Q);var et=(0,x.isNumber)(h)?h:100;N=s.scrollWidth-j.scrollWidth-(A.length-1)*et-J;var nt=A[A.length-1],rt=(nt[nt.length-1]||{}).bbox;P=(null==rt?void 0:rt.bottom)-W||tt}Gf(j,{position:"absolute",left:"".concat(N,"px"),top:"".concat(P,"px"),cusor:u?"unset":"move"})}this.bindListener(j,C);var it=j.getBoundingClientRect();if(!M){var ot=Hv(t,it,a,this.get("canvas")),at=this.get("linkStyle");I=E.addShape("path",{attrs:Bv({lineWidth:1,lineDash:[5,5],stroke:"#ccc",path:ot},at)})}if(o[C]=Bv(Bv({},o[C]||{}),{id:C,collapsed:m,card:j,link:I,x:N,y:P,cardBBox:it,content:L||b,title:O||y,contentPlaceholder:B,titlePlaceholder:U,isCanvas:M}),i.set("cardInfoMap",o),u)this.updateCardPositionsInConatainer(),this.updateLinks();else{var st=!isNaN(g)&&!isNaN(v);if(!G&&!M&&!st){var ut=H.bottom,lt=void 0===ut?0:ut;W=H.top;A[A.length-1].push({id:C,bbox:it}),it.top>lt-W-it.height-16&&A.push([]),this.set("rows",A)}}this.updateCardSize(C);var ct=this.get("onAnnotationChange");null==ct||ct(o[C],G?"update":"create")}},e.prototype.updateCardPositionsInConatainer=function(){if(!this.destroyed){var t=this.get("cardInfoMap");if(t){var e=this.get("container"),n=this.get("containerCfg").position,r=e.getBoundingClientRect().width,i=getComputedStyle(e),o=Gv(i.paddingLeft)+Gv(i.paddingRight);r-=o,Object.values(t).forEach((function(t){var e=t.card,i=e.getBoundingClientRect().width;switch(n){case"right":Gf(e,{marginLeft:r?"".concat(r-i,"px"):"0px"});break;case"top":case"bottom":Gf(e,{marginLeft:"8px"})}}))}}},e.prototype.handleExpandCollapseCard=function(t){if(!this.destroyed){var e=this.get("graph"),n=this.get("cardInfoMap");if(n){var r=n[t].collapsed,i=e.findById(t);if(i)"hide"!==this.get("cardCfg").collapseType||r?this.toggleAnnotation(i,{collapsed:!r}):this.hideCard(t),n[t]=Bv(Bv({},n[t]),{collapsed:!r})}}},e.prototype.hideCard=function(t){if(!this.destroyed){var e=this.get("cardInfoMap");if(e&&e[t]){var n=e[t],r=n.card,i=n.link;Gf(r,{display:"none"}),null==i||i.hide(),this.get("onAnnotationChange")(e[t],"hide")}}},e.prototype.removeCard=function(t){if(!this.destroyed){var e=this.get("cardInfoMap");if(e){var n=e[t],r=n.card,i=n.link;this.get("container").removeChild(r),null==i||i.remove(!0),delete e[t],this.get("onAnnotationChange")(n,"remove")}}},e.prototype.bindListener=function(t,e){var n=this;if(!this.destroyed){t.addEventListener("mousemove",(function(t){var r;if("g6-annotation-collapse"===t.target.className?r="collapse":"g6-annotation-expand"===t.target.className?r="expand":"g6-annotation-close"===t.target.className&&(r="close"),r){var i=n.get("cardCfg").onMouseEnterIcon;(void 0===i?function(){}:i)(t,e,r)}})),t.addEventListener("mouseout",(function(t){var r;if("g6-annotation-collapse"===t.target.className?r="collapse":"g6-annotation-expand"===t.target.className?r="expand":"g6-annotation-close"===t.target.className&&(r="close"),r){var i=n.get("cardCfg").onMouseLeaveIcon;(void 0===i?function(){}:i)(t,e,r)}})),t.addEventListener("mouseenter",(function(t){var r=n.get("cardInfoMap");if(r){var i=n.get("graph"),o=i.findById(e);if(o){var a=n.get("itemHighlightState");i.setItemState(o,a,!0)}var s=r[e].link;if(s){var u=n.get("linkHighlightStyle")||{};s.attr(u)}}})),t.addEventListener("mouseleave",(function(t){var r=n.get("cardInfoMap");if(r){var i=n.get("graph"),o=i.findById(e);if(o){var a=n.get("itemHighlightState");i.setItemState(o,a,!1)}var s=r[e].link;if(s){var u=n.get("linkHighlightStyle")||{};Object.keys(u).forEach((function(t){s.attr(t,void 0),s.attr(t,void 0)}));var l=n.get("linkStyle");s.attr(l)}}})),t.addEventListener("click",(function(t){var r=(n.get("cardCfg")||{}).onClickIcon;if("g6-annotation-collapse"===t.target.className||"g6-annotation-expand"===t.target.className)"hide"===n.get("cardCfg").collapseType?n.hideCard(e):n.handleExpandCollapseCard(e),null==r||r(t,e,"g6-annotation-collapse"===t.target.className?"collapse":"expand");else if("g6-annotation-close"===t.target.className){"remove"===n.get("cardCfg").closeType?n.removeCard(e):n.hideCard(e),null==r||r(t,e,"close")}})),this.get("editable")&&t.addEventListener("dblclick",(function(t){var r=n.get("cardInfoMap"),i=(n.get("cardCfg")||{}).maxTitleLength,o=void 0===i?20:i;if(r){var a=t.target,s=a.className;if("g6-annotation-title"===s||"g6-annotation-content"===s){var u="g6-annotation-title"===s?a.getBoundingClientRect():a.parentNode.getBoundingClientRect(),l=u.width,c=u.height,h=getComputedStyle(a),d=Uh("<".concat("g6-annotation-title"===s?"input":"textarea",' class="').concat(s,'-input" type="textarea" style="width:').concat(l,"px; height: ").concat(c,'px; min-width: 16px;"/>')),f=Uh('
    '));f.appendChild(d),a.parentNode.replaceChild(f,a);var p=r[e],m=p.contentPlaceholder,g=p.titlePlaceholder,v=p.content,y=p.title,b=v;"g6-annotation-title"===s?(d.name="title",d.maxLength=o,b=y):d.name="content",b?(d.innerHTML=a.innerHTML,d.value=a.innerHTML):d.placeholder="g6-annotation-title"===s?g:m,d.focus(),d.addEventListener("blur",(function(t){d.value&&(a.innerHTML=d.value,p[d.name||"title"]=d.value),f.parentNode.replaceChild(a,f),n.updateCardSize(e);var r=n.get("onAnnotationChange");null==r||r(p,"update")}))}}}));var r=["g6-annotation-title","g6-annotation-content","g6-annotation-title-input","g6-annotation-content-input"];t.draggable=!0,t.addEventListener("dragstart",(function(e){var i=e.target.className;if(!r.includes(i)){var o=t.style;n.set("dragging",{card:t,x:e.clientX,y:e.clientY,left:Gv(o.left),top:Gv(o.top)})}})),t.addEventListener("drag",(function(t){t.preventDefault();var r=n.get("cardInfoMap");if(r){var i=t.clientX,o=t.clientY,a=n.get("dragging");if(!isNaN(i)&&!isNaN(o)&&a){var s=a.x,u=a.y,l=a.left,c=a.top,h=a.card,d=i-s,f=o-u;l+=d,c+=f;var p=n.get("graph"),m=p.getPointByCanvas(0,0),g=p.getPointByCanvas(p.getWidth(),p.getHeight()),v=p.getClientByPoint(m.x,m.y),y=v.x,b=v.y,x=p.getClientByPoint(g.x,g.y),w=x.x,_=x.y,S=h.getBoundingClientRect();(l>w-y-(S.right-S.left)&&d>0||l<0&&d<0)&&(l-=d),(c>_-b-(S.bottom-S.top)&&f>0||c<0&&f<0)&&(c-=f),Gf(h,{left:"".concat(l,"px"),top:"".concat(c,"px"),visibility:"hidden"}),s=i,u=o;var E=(r[e]||{}).link;if(E){var A=p.findById(e);E.attr("path",Hv(A,S,p,n.get("canvas")))}n.set("dragging",{x:s,y:u,left:l,top:c,card:h})}}}));t.addEventListener("dragend",(function(t){var r=n.get("cardInfoMap");if(r){var i=n.get("dragging");if(i){var o=i.left,a=i.top,s=i.card;r[e].x=o,r[e].y=a,Gf(s,{visibility:"visible"}),n.set("dragging",!1);var u=n.get("rows");null==u||u.forEach((function(t){for(var n=t.length-1;n>=0;n--)t[n].id===e&&t.splice(n,1)}));var l=n.get("onAnnotationChange");null==l||l(r[e],"update")}}}))}},e.prototype.updateCardSize=function(t){var e=this.get("cardInfoMap");if(e){var n=e[t].card,r=n.getBoundingClientRect().width,i=n.getElementsByClassName("g6-annotation-title")[0];if(i){var o=getComputedStyle(i),a=Gv(o.marginLeft),s=i.getBoundingClientRect().width;Gf(i,{marginRight:"".concat(r-a-24-16-s,"px")})}}},e.prototype.updateLink=function(t){var e=t.item;if(e){var n=this.get("cardInfoMap");if(n){var r=this.get("canvas"),i=this.get("graph"),o=n[e.getID()]||{},a=o.link,s=o.card;if(a){var u=Hv(e,s.getBoundingClientRect(),i,r);a.attr("path",u)}}}},e.prototype.updateLinks=function(){var t=this;if(!this.destroyed){var e=this.get("cardInfoMap");if(e){var n=this.get("graph");Object.values(e).forEach((function(e){var r=e.id,i=n.findById(r);t.updateLink({item:i})}))}}},e.prototype.onGraphDataChange=function(){var t=this,e=this.get("cardInfoMap");if(e){var n=this.get("graph");Object.values(e).forEach((function(e){var r=e.id,i=e.card,o=e.isCanvas;if(i&&!o&&"none"!==i.style.display){var a=n.findById(r);a&&a.isVisible()?t.toggleAnnotation(a):t.hideCard(r)}}))}},e.prototype.onGraphItemVisibilityChange=function(t){var e=t.item,n=t.visible;if(e&&!e.destroyed){var r=this.get("cardInfoMap");if(r){var i=e.getID();r[i]&&(n||this.hideCard(i))}}},e.prototype.saveData=function(t){void 0===t&&(t=!1);var e=this.get("cardInfoMap");if(e){var n=this.get("graph"),r=this.get("getTitle"),i=this.get("getContent"),o=[];return Object.values(e).forEach((function(e){var a=e.title,s=e.content,u=e.x,l=e.y,c=e.id,h=e.collapsed,d=e.card;if(!d||"none"!==d.style.display||t){var f=n.findById(c)||n.get("canvas");o.push({id:c,x:u,y:l,collapsed:h,title:a||(null==r?void 0:r(f)),content:s||(null==i?void 0:i(f)),visible:d&&"none"!==d.style.display})}})),o}},e.prototype.readData=function(t){var e=this,n=this.get("graph");t.forEach((function(t){var r=t.id,i=t.x,o=t.y,a=t.title,s=t.content,u=t.collapsed,l=t.visible,c=n.findById(r);if(c||r!==jv||(c=n.get("canvas")),!c){var h=e.get("cardInfoMap")||{};return h[r]=t,void e.set("cardInfoMap",h)}e.toggleAnnotation(c,{x:i,y:o,title:a,content:s,collapsed:u}),l||e.hideCard(r)}))},e.prototype.clear=function(){var t=this.get("cardInfoMap");if(t){var e=this.get("container");Object.values(t).forEach((function(t){var n=t.card,r=t.link;e.removeChild(n),null==r||r.remove(!0)})),this.set("cardInfoMap",{})}},e.prototype.destroy=function(){var t;this.clear(),null===(t=this.get("canvas"))||void 0===t||t.destroy();var e=this.get("graph");e&&!e.destroyed&&(this.get("containerCfg")&&e.getContainer().removeChild(this.get("container")),this.destroyed=!0)},e}(Xf);var Hv=function(t,e,n,r){var i,o;if("edge"===t.getType())o=[t.getKeyShape().getPoint(.5)];else{var a=null===(i=t.getKeyShape)||void 0===i?void 0:i.call(t).getBBox(),s=a.minX,u=a.minY,l=a.maxX,c=a.maxY,h=t.getModel(),d=h.x,f=h.y;o={left:{x:s+=d,y:((u+=f)+(c+=f))/2},right:{x:l+=d,y:(u+c)/2},top:{x:(s+l)/2,y:u},bottom:{x:(s+l)/2,y:c}}}Object.keys(o).forEach((function(t){var e=o[t],i=e.x,a=e.y,s=n.getClientByPoint(i,a);o[t]=r.getPointByClient(s.x,s.y)}));var p=e.top,m=void 0===p?0:p,g=e.left,v=void 0===g?0:g,y=e.right,b=void 0===y?0:y,x=e.bottom,w=void 0===x?0:x,_={left:r.getPointByClient(v,(m+w)/2),right:r.getPointByClient(b,(m+w)/2),top:r.getPointByClient((v+b)/2,m),bottom:r.getPointByClient((v+b)/2,w)};return function(t,e){var n,r,i=1/0;Object.keys(t).forEach((function(o){var a=t[o];Object.keys(e).forEach((function(t){var o=e[t],s=a.x-o.x,u=a.y-o.y,l=s*s+u*u;i>l&&(i=l,n=a,r=o)}))}));var o=el.getControlPoint(n,r,.5,20);return[["M",n.x,n.y],["Q",o.x,o.y,r.x,r.y]]}(o,_)},Gv=function(t){return Number(t.replace(/\s+|px/gi,""))||0};const Wv={PluginBase:Xf,Menu:np,Grid:Zf,Minimap:up,Bundling:fp,ToolBar:wp,Tooltip:Ep,Fisheye:yp,TimeBar:vv,ImageMinimap:wv,EdgeFilterLens:Cv,SnapLine:Pv,Legend:zv,Annotation:Vv};al("circle",{options:{size:cl.defaultNode.size,style:{x:0,y:0,stroke:cl.defaultNode.style.stroke,fill:cl.defaultNode.style.fill,lineWidth:cl.defaultNode.style.lineWidth},labelCfg:{style:{fill:cl.nodeLabel.style.fill,fontSize:cl.nodeLabel.style.fontSize,fontFamily:cl.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:cl.defaultNode.linkPoints.size,lineWidth:cl.defaultNode.linkPoints.lineWidth,fill:cl.defaultNode.linkPoints.fill,stroke:cl.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:(0,b.__assign)({},cl.nodeStateStyles)},shapeType:"circle",labelPosition:"center",drawShape:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).icon,r=void 0===n?{}:n,i=this.getShapeStyle(t),o=(0,x.deepMix)({},r,t.icon),a="".concat(this.type,"-keyShape"),s=e.addShape("circle",{attrs:i,className:a,name:a,draggable:!0});e.shapeMap[a]=s;var u=o.width,l=o.height,c=o.show,h=o.text;if(c){var d="".concat(this.type,"-icon");e.shapeMap[d]=h?e.addShape("text",{attrs:(0,b.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},o),className:d,name:d,draggable:!0}):e.addShape("image",{attrs:(0,b.__assign)({x:-u/2,y:-l/2},o),className:d,name:d,draggable:!0})}return this.drawLinkPoints(t,e),s},drawLinkPoints:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).linkPoints;if(n){var r=n||{},i=r.top,o=r.left,a=r.right,s=r.bottom,u=r.size,l=r.r,c=(0,b.__rest)(r,["top","left","right","bottom","size","r"]),h=this.getSize(t)[0]/2;if(o){var d="link-point-left";e.shapeMap[d]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},c),{x:-h,y:0,r:u/2||l||5}),className:d,name:d,isAnchorPoint:!0})}if(a){var f="link-point-right";e.shapeMap[f]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},c),{x:h,y:0,r:u/2||l||5}),className:f,name:f,isAnchorPoint:!0})}if(i){var p="link-point-top";e.shapeMap[p]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},c),{x:0,y:-h,r:u/2||l||5}),className:p,name:p,isAnchorPoint:!0})}if(s){var m="link-point-bottom";e.shapeMap[m]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},c),{x:0,y:h,r:u/2||l||5}),className:m,name:m,isAnchorPoint:!0})}}},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,n={stroke:t.color},r=(0,x.deepMix)({},e,n),i=this.getSize(t)[0]/2;return(0,b.__assign)({x:0,y:0,r:i},r)},update:function(t,e,n){var r=e.getContainer(),i=this.getSize(t),o=(0,b.__assign)({},t.style);void 0===t.style.stroke&&t.color&&(o.stroke=t.color),void 0!==t.style.r||isNaN(i[0])||(o.r=i[0]/2),this.updateShape(t,e,o,!0,n),this.updateLinkPoints(t,r)}},"single-node"),al("rect",{options:{size:[100,30],style:{radius:0,stroke:cl.defaultNode.style.stroke,fill:cl.defaultNode.style.fill,lineWidth:cl.defaultNode.style.lineWidth},labelCfg:{style:{fill:cl.nodeLabel.style.fill,fontSize:cl.nodeLabel.style.fontSize,fontFamily:cl.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:cl.defaultNode.linkPoints.size,lineWidth:cl.defaultNode.linkPoints.lineWidth,fill:cl.defaultNode.linkPoints.fill,stroke:cl.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},anchorPoints:[[0,.5],[1,.5]],stateStyles:(0,b.__assign)({},cl.nodeStateStyles)},shapeType:"rect",labelPosition:"center",drawShape:function(t,e){var n=this.getShapeStyle(t),r=e.addShape("rect",{attrs:n,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});return e.shapeMap["".concat(this.type,"-keyShape")]=r,this.drawLinkPoints(t,e),r},drawLinkPoints:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).linkPoints,r=void 0===n?{}:n,i=r.top,o=r.left,a=r.right,s=r.bottom,u=r.size,l=r.r,c=(0,b.__rest)(r,["top","left","right","bottom","size","r"]),h=this.getSize(t),d=h[0],f=h[1];o&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},c),{x:-d/2,y:0,r:u/2||l||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),a&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},c),{x:d/2,y:0,r:u/2||l||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),i&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},c),{x:0,y:-f/2,r:u/2||l||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),s&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},c),{x:0,y:f/2,r:u/2||l||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,n={stroke:t.color},r=(0,x.mix)({},e,n),i=this.getSize(t),o=r.width||i[0],a=r.height||i[1];return(0,b.__assign)({x:-o/2,y:-a/2,width:o,height:a},r)},update:function(t,e,n){var r=e.getContainer(),i=this.getOptions({}).style,o=this.getSize(t),a=e.get("keyShape");t.size||(o[0]=a.attr("width")||i.width,o[1]=a.attr("height")||i.height);var s={stroke:t.color,x:-o[0]/2,y:-o[1]/2,width:o[0],height:o[1]},u=(0,x.mix)({},i,a.attr(),s);u=(0,x.mix)(u,t.style),this.updateShape(t,e,u,!1,n),this.updateLinkPoints(t,r)}},"single-node"),al("ellipse",{options:{size:[80,40],style:{x:0,y:0,stroke:cl.defaultNode.style.stroke,fill:cl.defaultNode.style.fill,lineWidth:cl.defaultNode.style.lineWidth},labelCfg:{style:{fill:cl.nodeLabel.style.fill,fontSize:cl.nodeLabel.style.fontSize,fontFamily:cl.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:cl.defaultNode.linkPoints.size,lineWidth:cl.defaultNode.linkPoints.lineWidth,fill:cl.defaultNode.linkPoints.fill,stroke:cl.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:(0,b.__assign)({},cl.nodeStateStyles)},shapeType:"ellipse",labelPosition:"center",drawShape:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).icon,r=void 0===n?{}:n,i=this.getShapeStyle(t),o=e.addShape("ellipse",{attrs:i,className:"ellipse-keyShape",name:"ellipse-keyShape",draggable:!0});e.shapeMap["ellipse-keyShape"]=o;var a=r.width,s=r.height,u=r.show,l=r.text;return u&&(e.shapeMap["".concat(this.type,"-icon")]=l?e.addShape("text",{attrs:(0,b.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},r),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):e.addShape("image",{attrs:(0,b.__assign)({x:-a/2,y:-s/2},r),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(t,e),o},drawLinkPoints:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).linkPoints,r=void 0===n?{}:n,i=r.top,o=r.left,a=r.right,s=r.bottom,u=r.size,l=r.r,c=(0,b.__rest)(r,["top","left","right","bottom","size","r"]),h=this.getSize(t),d=h[0]/2,f=h[1]/2;o&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},c),{x:-d,y:0,r:u/2||l||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),a&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},c),{x:d,y:0,r:u/2||l||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),i&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},c),{x:0,y:-f,r:u/2||l||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),s&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},c),{x:0,y:f,r:u/2||l||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,n={stroke:t.color},r=(0,x.mix)({},e,n),i=this.getSize(t),o=i[0]/2,a=i[1]/2;return(0,b.__assign)({x:0,y:0,rx:o,ry:a},r)},update:function(t,e,n){var r=e.getContainer(),i=this.getOptions({}).style,o=this.getSize(t),a={stroke:t.color,rx:o[0]/2,ry:o[1]/2},s=e.get("keyShape"),u=(0,x.mix)({},i,s.attr(),a);u=(0,x.mix)(u,t.style),this.updateShape(t,e,u,!0,n),this.updateLinkPoints(t,r)}},"single-node"),al("diamond",{options:{size:[80,80],style:{stroke:cl.defaultNode.style.stroke,fill:cl.defaultNode.style.fill,lineWidth:cl.defaultNode.style.lineWidth},labelCfg:{style:{fill:cl.nodeLabel.style.fill,fontSize:cl.nodeLabel.style.fontSize,fontFamily:cl.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:cl.defaultNode.linkPoints.size,lineWidth:cl.defaultNode.linkPoints.lineWidth,fill:cl.defaultNode.linkPoints.fill,stroke:cl.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:(0,b.__assign)({},cl.nodeStateStyles)},shapeType:"diamond",labelPosition:"center",drawShape:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).icon,r=void 0===n?{}:n,i=this.getShapeStyle(t),o=e.addShape("path",{attrs:i,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});e.shapeMap["".concat(this.type,"-keyShape")]=o;var a=r.width,s=r.height,u=r.show,l=r.text;return u&&(e.shapeMap["".concat(this.type,"-icon")]=l?e.addShape("text",{attrs:(0,b.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},r),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):e.addShape("image",{attrs:(0,b.__assign)({x:-a/2,y:-s/2},r),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(t,e),o},drawLinkPoints:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).linkPoints,r=void 0===n?{}:n,i=r.top,o=r.left,a=r.right,s=r.bottom,u=r.size,l=r.r,c=(0,b.__rest)(r,["top","left","right","bottom","size","r"]),h=this.getSize(t),d=h[0],f=h[1];o&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},c),{x:-d/2,y:0,r:u/2||l||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),a&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},c),{x:d/2,y:0,r:u/2||l||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),i&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},c),{x:0,y:-f/2,r:u/2||l||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),s&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},c),{x:0,y:f/2,r:u/2||l||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getPath:function(t){var e=this.getSize(t),n=e[0],r=e[1];return[["M",0,-r/2],["L",n/2,0],["L",0,r/2],["L",-n/2,0],["Z"]]},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,n={stroke:t.color},r=(0,x.mix)({},e,n),i=this.getPath(t);return(0,b.__assign)({path:i},r)},update:function(t,e,n){var r=e.getContainer(),i=this.getOptions({}).style,o=this.getPath(t),a={stroke:t.color,path:o},s=e.get("keyShape"),u=(0,x.mix)({},i,s.attr(),a);u=(0,x.mix)(u,t.style),this.updateShape(t,e,u,!0,n),this.updateLinkPoints(t,r)}},"single-node"),al("triangle",{options:{size:40,direction:"up",style:{stroke:cl.defaultNode.style.stroke,fill:cl.defaultNode.style.fill,lineWidth:cl.defaultNode.style.lineWidth},labelCfg:{style:{fill:cl.nodeLabel.style.fill,fontSize:cl.nodeLabel.style.fontSize},offset:15},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:cl.defaultNode.linkPoints.size,lineWidth:cl.defaultNode.linkPoints.lineWidth,fill:cl.defaultNode.linkPoints.fill,stroke:cl.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20,offset:6},stateStyles:(0,b.__assign)({},cl.nodeStateStyles)},shapeType:"triangle",labelPosition:"bottom",drawShape:function(t,e){var n=this.mergeStyle||this.getOptions(t),r=n.icon,i=void 0===r?{}:r,o=n.direction,a=this.getShapeStyle(t),s=t.direction||o,u=e.addShape("path",{attrs:a,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});e.shapeMap["".concat(this.type,"-keyShape")]=u;var l=i.width,c=i.height,h=i.show,d=i.offset,f=i.text;if(h)if(f)e.shapeMap["".concat(this.type,"-icon")]=e.addShape("text",{attrs:(0,b.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},i),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0});else{var p=-l/2,m=-c/2;"up"!==s&&"down"!==s||(m+=d),"left"!==s&&"right"!==s||(p+=d),e.shapeMap["".concat(this.type,"-icon")]=e.addShape("image",{attrs:(0,b.__assign)({x:p,y:m},i),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})}return this.drawLinkPoints(t,e),u},drawLinkPoints:function(t,e){var n=this.mergeStyle||this.getOptions(t),r=n.linkPoints,i=void 0===r?{}:r,o=n.direction,a=t.direction||o,s=i.top,u=i.left,l=i.right,c=i.bottom,h=i.size,d=i.r,f=(0,b.__rest)(i,["top","left","right","bottom","size","r"]),p=this.getSize(t)[0];if(u){var m=null,g=p*Math.sin(1/3*Math.PI),v=p*Math.sin(1/3*Math.PI);"up"===a?m=[-v,g]:"down"===a?m=[-v,-g]:"left"===a&&(m=[-v,v-g]),m&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},f),{x:m[0],y:m[1],r:h/2||d||5}),className:"link-point-left",name:"link-point-left"}))}if(l){var y=null;g=p*Math.sin(1/3*Math.PI),v=p*Math.sin(1/3*Math.PI);"up"===a?y=[v,g]:"down"===a?y=[v,-g]:"right"===a&&(y=[v,v-g]),y&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},f),{x:y[0],y:y[1],r:h/2||d||5}),className:"link-point-right",name:"link-point-right"}))}if(s){var x=null;g=p*Math.sin(1/3*Math.PI),v=p*Math.sin(1/3*Math.PI);"up"===a?x=[v-g,-g]:"left"===a?x=[v,-g]:"right"===a&&(x=[-v,-g]),x&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},f),{x:x[0],y:x[1],r:h/2||d||5}),className:"link-point-top",name:"link-point-top"}))}if(c){var w=null;g=p*Math.sin(1/3*Math.PI),v=p*Math.sin(1/3*Math.PI);"down"===a?w=[-v+g,g]:"left"===a?w=[v,g]:"right"===a&&(w=[-v,g]),w&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},f),{x:w[0],y:w[1],r:h/2||d||5}),className:"link-point-bottom",name:"link-point-bottom"}))}},getPath:function(t){var e=(this.mergeStyle||this.getOptions(t)).direction,n=t.direction||e,r=this.getSize(t)[0],i=r*Math.sin(1/3*Math.PI),o=r*Math.sin(1/3*Math.PI),a=[["M",-o,i],["L",0,-i],["L",o,i],["Z"]];return"down"===n?a=[["M",-o,-i],["L",o,-i],["L",0,i],["Z"]]:"left"===n?a=[["M",-o,o-i],["L",o,-o],["L",o,o],["Z"]]:"right"===n&&(a=[["M",o,o-i],["L",-o,o],["L",-o,-o],["Z"]]),a},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,n={stroke:t.color},r=(0,x.mix)({},e,n),i=this.getPath(t);return(0,b.__assign)({path:i},r)},update:function(t,e,n){var r=e.getContainer(),i=this.getOptions({}).style,o=this.getPath(t),a={stroke:t.color,path:o},s=e.get("keyShape"),u=(0,x.mix)({},i,s.attr(),a);u=(0,x.mix)(u,t.style),this.updateShape(t,e,u,!0,n),this.updateLinkPoints(t,r)},updateLinkPoints:function(t,e){var n=this.getOptions({}),r=n.linkPoints,i=n.direction,o=t.direction||i,a=e.shapeMap["link-point-left"]||e.find((function(t){return"link-point-left"===t.get("className")})),s=e.shapeMap["link-point-right"]||e.find((function(t){return"link-point-right"===t.get("className")})),u=e.shapeMap["link-point-top"]||e.find((function(t){return"link-point-top"===t.get("className")})),l=e.shapeMap["link-point-bottom"]||e.find((function(t){return"link-point-bottom"===t.get("className")})),c=r,h=a||s||u||l;h&&(c=h.attr());var d=(0,x.mix)({},c,t.linkPoints),f=d.fill,p=d.stroke,m=d.lineWidth,g=d.size/2;g||(g=d.r);var v=t.linkPoints?t.linkPoints:{left:void 0,right:void 0,top:void 0,bottom:void 0},y=v.left,w=v.right,_=v.top,S=v.bottom,E=this.getSize(t)[0],A={r:g,fill:f,stroke:p,lineWidth:m},M=null,C=E*Math.sin(1/3*Math.PI),T=E*Math.sin(1/3*Math.PI);"up"===o?M=[-T,C]:"down"===o?M=[-T,-C]:"left"===o&&(M=[-T,T-C]),M&&(a?y||void 0===y?a.attr((0,b.__assign)((0,b.__assign)({},A),{x:M[0],y:M[1]})):(a.remove(),delete e.shapeMap["link-point-left"]):y&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},A),{x:M[0],y:M[1]}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})));var k=null;"up"===o?k=[T,C]:"down"===o?k=[T,-C]:"right"===o&&(k=[T,T-C]),k&&(s?w||void 0===w?s.attr((0,b.__assign)((0,b.__assign)({},A),{x:k[0],y:k[1]})):(s.remove(),delete e.shapeMap["link-point-right"]):w&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},A),{x:k[0],y:k[1]}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})));var I=null;"up"===o?I=[T-C,-C]:"left"===o?I=[T,-C]:"right"===o&&(I=[-T,-C]),I&&(u?_||void 0===_?u.attr((0,b.__assign)((0,b.__assign)({},A),{x:I[0],y:I[1]})):(u.remove(),delete e.shapeMap["link-point-top"]):_&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},A),{x:I[0],y:I[1]}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})));var N=null;"down"===o?N=[-T+C,C]:"left"===o?N=[T,C]:"right"===o&&(N=[-T,C]),N&&(l?S||void 0===S?l.attr((0,b.__assign)((0,b.__assign)({},A),{x:N[0],y:N[1]})):(l.remove(),delete e.shapeMap["link-point-bottom"]):S&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},A),{x:N[0],y:N[1]}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0})))}},"single-node"),al("modelRect",{options:{size:[185,70],style:{radius:5,stroke:"#69c0ff",fill:"#ffffff",lineWidth:cl.defaultNode.style.lineWidth,fillOpacity:1},labelCfg:{style:{fill:"#595959",fontSize:14,fontFamily:cl.windowFontFamily},offset:30},descriptionCfg:{style:{fontSize:12,fill:"#bfbfbf",fontFamily:cl.windowFontFamily},paddingTop:0},preRect:{show:!0,width:4,fill:"#40a9ff",radius:2},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:10,lineWidth:1,fill:"#72CC4A",stroke:"#72CC4A"},logoIcon:{show:!0,x:0,y:0,img:"https://gw.alipayobjects.com/zos/basement_prod/4f81893c-1806-4de4-aff3-9a6b266bc8a2.svg",width:16,height:16,offset:0},stateIcon:{show:!0,x:0,y:0,img:"https://gw.alipayobjects.com/zos/basement_prod/300a2523-67e0-4cbf-9d4a-67c077b40395.svg",width:16,height:16,offset:-5},anchorPoints:[[0,.5],[1,.5]]},shapeType:"modelRect",drawShape:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).preRect,r=void 0===n?{}:n,i=this.getShapeStyle(t),o=this.getSize(t),a=o[0],s=o[1],u=e.addShape("rect",{attrs:i,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});e.shapeMap["".concat(this.type,"-keyShape")]=u;var l=r.show,c=(0,b.__rest)(r,["show"]);return l&&(e.shapeMap["pre-rect"]=e.addShape("rect",{attrs:(0,b.__assign)({x:-a/2,y:-s/2,height:s},c),className:"pre-rect",name:"pre-rect",draggable:!0})),this.drawLogoIcon(t,e),this.drawStateIcon(t,e),this.drawLinkPoints(t,e),u},drawLogoIcon:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).logoIcon,r=void 0===n?{}:n,i=this.getSize(t)[0];if(r.show){var o=r.width,a=r.height,s=r.x,u=r.y,l=r.offset,c=r.text,h=(0,b.__rest)(r,["width","height","x","y","offset","text"]);e.shapeMap["rect-logo-icon"]=c?e.addShape("text",{attrs:(0,b.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},h),className:"rect-logo-icon",name:"rect-logo-icon",draggable:!0}):e.addShape("image",{attrs:(0,b.__assign)((0,b.__assign)({},h),{x:s||-i/2+o+l,y:u||-a/2,width:o,height:a}),className:"rect-logo-icon",name:"rect-logo-icon",draggable:!0})}},drawStateIcon:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).stateIcon,r=void 0===n?{}:n,i=this.getSize(t)[0];if(r.show){var o=r.width,a=r.height,s=r.x,u=r.y,l=r.offset,c=r.text,h=(0,b.__rest)(r,["width","height","x","y","offset","text"]);e.shapeMap["rect-state-icon"]=c?e.addShape("text",{attrs:(0,b.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},h),className:"rect-state-icon",name:"rect-state-icon",draggable:!0}):e.addShape("image",{attrs:(0,b.__assign)((0,b.__assign)({},h),{x:s||i/2-o+l,y:u||-a/2,width:o,height:a}),className:"rect-state-icon",name:"rect-state-icon",draggable:!0})}},drawLinkPoints:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).linkPoints,r=void 0===n?{}:n,i=r.top,o=r.left,a=r.right,s=r.bottom,u=r.size,l=r.r,c=(0,b.__rest)(r,["top","left","right","bottom","size","r"]),h=this.getSize(t),d=h[0],f=h[1];o&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},c),{x:-d/2,y:0,r:u/2||l||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),a&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},c),{x:d/2,y:0,r:u/2||l||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),i&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},c),{x:0,y:-f/2,r:u/2||l||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),s&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},c),{x:0,y:f/2,r:u/2||l||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},drawLabel:function(t,e){var n=this.getOptions(t),r=n.labelCfg,i=void 0===r?{}:r,o=n.logoIcon,a=void 0===o?{}:o,s=n.descriptionCfg,u=void 0===s?{}:s,l=this.getSize(t)[0],c=null,h=a.show,d=a.width,f=-l/2+i.offset;h&&(f=-l/2+d+i.offset);var p=i.style,m=u.style,g=u.paddingTop;return(0,x.isString)(t.description)?(c=e.addShape("text",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:f,y:-5,text:t.label}),className:"text-shape",name:"text-shape",draggable:!0,labelRelated:!0}),e.shapeMap["text-shape"]=c,e.shapeMap["rect-description"]=e.addShape("text",{attrs:(0,b.__assign)((0,b.__assign)({},m),{x:f,y:17+(g||0),text:t.description}),className:"rect-description",name:"rect-description",draggable:!0,labelRelated:!0})):(c=e.addShape("text",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:f,y:7,text:t.label}),className:"text-shape",name:"text-shape",draggable:!0,labelRelated:!0}),e.shapeMap["text-shape"]=c),c},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,n={stroke:t.color},r=(0,x.mix)({},e,n),i=this.getSize(t),o=r.width||i[0],a=r.height||i[1];return(0,b.__assign)({x:-o/2,y:-a/2,width:o,height:a},r)},update:function(t,e){var n=this.mergeStyle||this.getOptions(t),r=n.style,i=void 0===r?{}:r,o=n.labelCfg,a=void 0===o?{}:o,s=n.descriptionCfg,u=void 0===s?{}:s,l=this.getSize(t),c=l[0],h=l[1];e.get("keyShape").attr((0,b.__assign)((0,b.__assign)({},i),{x:-c/2,y:-h/2,width:c,height:h}));var d=e.getContainer(),f=d.shapeMap["rect-logo-icon"]||d.find((function(t){return"rect-logo-icon"===t.get("className")})),p=f?f.attr():{},m=(0,x.mix)({},p,t.logoIcon),g=m.width;void 0===g&&(g=this.options.logoIcon.width);var v=t.logoIcon?t.logoIcon.show:void 0,y=a.offset,w=-c/2+g+y;v||void 0===v||(w=-c/2+y);var _=d.shapeMap["node-label"]||d.find((function(t){return"node-label"===t.get("className")})),S=d.shapeMap["rect-description"]||d.find((function(t){return"rect-description"===t.get("className")}));if(t.label)if(_){var E=t.labelCfg?t.labelCfg.style:{},A=(0,x.mix)({},_.attr(),E);t.label&&(A.text=t.label),A.x=w,(0,x.isString)(t.description)&&(A.y=-5),S&&(S.resetMatrix(),S.attr({x:w})),_.resetMatrix(),_.attr(A)}else d.shapeMap["node-label"]=d.addShape("text",{attrs:(0,b.__assign)((0,b.__assign)({},a.style),{x:w,y:t.description?-5:7,text:t.label}),className:"node-label",name:"node-label",draggable:!0,labelRelated:!0});if((0,x.isString)(t.description)){var M=u.paddingTop;if(S){E=t.descriptionCfg?t.descriptionCfg.style:{};var C=(0,x.mix)({},S.attr(),E);(0,x.isString)(t.description)&&(C.text=t.description),C.x=w,S.resetMatrix(),S.attr((0,b.__assign)((0,b.__assign)({},C),{y:17+(M||0)}))}else d.shapeMap["rect-description"]=d.addShape("text",{attrs:(0,b.__assign)((0,b.__assign)({},u.style),{x:w,y:17+(M||0),text:t.description}),className:"rect-description",name:"rect-description",draggable:!0,labelRelated:!0})}var T=d.shapeMap["pre-rect"]||d.find((function(t){return"pre-rect"===t.get("className")}));if(T&&!T.destroyed){var k=(0,x.mix)({},T.attr(),t.preRect);T.attr((0,b.__assign)((0,b.__assign)({},k),{x:-c/2,y:-h/2,height:h}))}if(f&&!f.destroyed)if(v||void 0===v){var I=m.width,N=m.height,P=m.x,O=m.y,L=m.offset,R=(0,b.__rest)(m,["width","height","x","y","offset"]);f.attr((0,b.__assign)((0,b.__assign)({},R),{x:P||-c/2+I+L,y:O||-N/2,width:I,height:N}))}else f.remove(),delete d.shapeMap["pre-rect"];else v&&this.drawLogoIcon(t,d);var D=d.shapeMap["rect-state-icon"]||d.find((function(t){return"rect-state-icon"===t.get("className")})),z=D?D.attr():{},F=(0,x.mix)({},z,t.stateIcon);if(D){F.show||void 0===F.show||(D.remove(),delete d.shapeMap["rect-state-icon"]);var B=F.width,U=(N=F.height,P=F.x,O=F.y,F.offset),j=(0,b.__rest)(F,["width","height","x","y","offset"]);D.attr((0,b.__assign)((0,b.__assign)({},j),{x:P||c/2-B+U,y:O||-N/2,width:B,height:N}))}else F.show&&this.drawStateIcon(t,d);this.updateLinkPoints(t,d)},getOptions:function(t,e){return"move"===e?t:(0,x.deepMix)({},this.options,this.getCustomConfig(t)||{},t)}},"single-node"),al("star",{options:{size:60,style:{stroke:cl.defaultNode.style.stroke,fill:cl.defaultNode.style.fill,lineWidth:cl.defaultNode.style.lineWidth},labelCfg:{style:{fill:cl.nodeLabel.style.fill,fontSize:cl.nodeLabel.style.fontSize,fontFamily:cl.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:cl.defaultNode.linkPoints.size,lineWidth:cl.defaultNode.linkPoints.lineWidth,fill:cl.defaultNode.linkPoints.fill,stroke:cl.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:(0,b.__assign)({},cl.nodeStateStyles)},shapeType:"star",labelPosition:"center",drawShape:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).icon,r=void 0===n?{}:n,i=this.getShapeStyle(t),o=e.addShape("path",{attrs:i,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});e.shapeMap["".concat(this.type,"-keyShape")]=o;var a=r.width,s=r.height,u=r.show,l=r.text;return u&&(e.shapeMap["".concat(this.type,"-icon")]=l?e.addShape("text",{attrs:(0,b.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},r),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):e.addShape("image",{attrs:(0,b.__assign)({x:-a/2,y:-s/2},r),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(t,e),o},drawLinkPoints:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).linkPoints,r=void 0===n?{}:n,i=r.top,o=r.left,a=r.right,s=r.leftBottom,u=r.rightBottom,l=r.size,c=r.r,h=(0,b.__rest)(r,["top","left","right","leftBottom","rightBottom","size","r"]),d=this.getSize(t)[0];if(a){var f=Math.cos(.1*Math.PI)*d,p=Math.sin(.1*Math.PI)*d;e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},h),{x:f,y:-p,r:l/2||c||5}),className:"link-point-right",name:"link-point-right"})}if(i){f=Math.cos(.5*Math.PI)*d,p=Math.sin(.5*Math.PI)*d;e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},h),{x:f,y:-p,r:l/2||c||5}),className:"link-point-top",name:"link-point-top"})}if(o){f=Math.cos(.9*Math.PI)*d,p=Math.sin(.9*Math.PI)*d;e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},h),{x:f,y:-p,r:l/2||c||5}),className:"link-point-left",name:"link-point-left"})}if(s){f=Math.cos(1.3*Math.PI)*d,p=Math.sin(1.3*Math.PI)*d;e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},h),{x:f,y:-p,r:l/2||c||5}),className:"link-point-left-bottom",name:"link-point-left-bottom"})}if(u){f=Math.cos(1.7*Math.PI)*d,p=Math.sin(1.7*Math.PI)*d;e.shapeMap["link-point-right-bottom"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},h),{x:f,y:-p,r:l/2||c||5}),className:"link-point-right-bottom",name:"link-point-right-bottom"})}},getPath:function(t){var e=this.getSize(t)[0],n=3*e/8,r=t.innerR||n;return el.getStarPath(e,r)},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,n={stroke:t.color},r=(0,x.mix)({},e,n),i=this.getPath(t);return(0,b.__assign)({path:i},r)},update:function(t,e,n){var r=e.getContainer(),i=this.getOptions({}).style,o=this.getPath(t),a={stroke:t.color,path:o},s=e.get("keyShape"),u=(0,x.mix)({},i,s.attr(),a);u=(0,x.mix)(u,t.style),this.updateShape(t,e,u,!0,n),this.updateLinkPoints(t,r)},updateLinkPoints:function(t,e){var n=this.getOptions({}).linkPoints,r=e.shapeMap["link-point-left"]||e.find((function(t){return"link-point-left"===t.get("className")})),i=e.shapeMap["link-point-right"]||e.find((function(t){return"link-point-right"===t.get("className")})),o=e.shapeMap["link-point-top"]||e.find((function(t){return"link-point-top"===t.get("className")})),a=e.shapeMap["link-point-left-bottom"]||e.find((function(t){return"link-point-left-bottom"===t.get("className")})),s=e.shapeMap["link-point-left-bottom"]||e.find((function(t){return"link-point-right-bottom"===t.get("className")})),u=n,l=r||i||o||a||s;l&&(u=l.attr());var c=(0,x.mix)({},u,t.linkPoints),h=c.fill,d=c.stroke,f=c.lineWidth,p=c.size/2;p||(p=c.r);var m=t.linkPoints?t.linkPoints:{left:void 0,right:void 0,top:void 0,leftBottom:void 0,rightBottom:void 0},g=m.left,v=m.right,y=m.top,w=m.leftBottom,_=m.rightBottom,S=this.getSize(t)[0],E={r:p,fill:h,stroke:d,lineWidth:f},A=Math.cos(.1*Math.PI)*S,M=Math.sin(.1*Math.PI)*S;i?v||void 0===v?i.attr((0,b.__assign)((0,b.__assign)({},E),{x:A,y:-M})):(i.remove(),delete e.shapeMap["link-point-right"]):v&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},E),{x:A,y:-M}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),A=Math.cos(.5*Math.PI)*S,M=Math.sin(.5*Math.PI)*S,o?y||void 0===y?o.attr((0,b.__assign)((0,b.__assign)({},E),{x:A,y:-M})):(o.remove(),delete e.shapeMap["link-point-top"]):y&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},E),{x:A,y:-M}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),A=Math.cos(.9*Math.PI)*S,M=Math.sin(.9*Math.PI)*S,r?g||void 0===g?r.attr((0,b.__assign)((0,b.__assign)({},E),{x:A,y:-M})):(r.remove(),delete e.shapeMap["link-point-left"]):g&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},E),{x:A,y:-M}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),A=Math.cos(1.3*Math.PI)*S,M=Math.sin(1.3*Math.PI)*S,a?w||void 0===w?a.attr((0,b.__assign)((0,b.__assign)({},E),{x:A,y:-M})):(a.remove(),delete e.shapeMap["link-point-left-bottom"]):w&&(e.shapeMap["link-point-left-bottom"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},E),{x:A,y:-M}),className:"link-point-left-bottom",name:"link-point-left-bottom",isAnchorPoint:!0})),A=Math.cos(1.7*Math.PI)*S,M=Math.sin(1.7*Math.PI)*S,s?_||void 0===_?s.attr((0,b.__assign)((0,b.__assign)({},E),{x:A,y:-M})):(s.remove(),delete e.shapeMap["link-point-right-bottom"]):_&&(e.shapeMap["link-point-right-bottom"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},E),{x:A,y:-M}),className:"link-point-right-bottom",name:"link-point-right-bottom",isAnchorPoint:!0}))}},"single-node");var Xv=el.defaultSubjectColors,Yv="fan-shape-";al("donut",{options:{size:cl.defaultNode.size,style:{x:0,y:0,stroke:cl.defaultNode.style.stroke,fill:cl.defaultNode.style.fill,lineWidth:cl.defaultNode.style.lineWidth},labelCfg:{style:{fill:cl.nodeLabel.style.fill,fontSize:cl.nodeLabel.style.fontSize,fontFamily:cl.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:cl.defaultNode.linkPoints.size,lineWidth:cl.defaultNode.linkPoints.lineWidth,fill:cl.defaultNode.linkPoints.fill,stroke:cl.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:(0,b.__assign)({},cl.nodeStateStyles)},shapeType:"circle",labelPosition:"center",drawShape:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).icon,r=void 0===n?{}:n,i=this.getShapeStyle(t),o=(0,x.deepMix)({},r,t.icon),a=e.addShape("circle",{attrs:i,className:"".concat(this.type,"-keyShape"),draggable:!0,name:"".concat(this.type,"-keyShape")});e.shapeMap["".concat(this.type,"-keyShape")]=a;var s=o.width,u=o.height,l=o.show,c=o.text;return l&&(e.shapeMap["".concat(this.type,"-icon")]=c?e.addShape("text",{attrs:(0,b.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},o),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):e.addShape("image",{attrs:(0,b.__assign)({x:-s/2,y:-u/2},o),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),qv(t,e,a),this.drawLinkPoints(t,e),a},updateShape:function(t,e,n,r,i){var o=e.get("keyShape");o.attr((0,b.__assign)({},n)),Kv(t,e,o),this.updateLabel(t,e,i),r&&this.updateIcon(t,e)}},"circle");var qv=function(t,e,n){var r=t.donutAttrs,i=void 0===r?{}:r,o=t.donutColorMap,a=void 0===o?{}:o,s=Object.keys(i).length;if(i&&s>1){var u=Zv(i,a),l=u.configs,c=u.totalValue;if(c){var h=Qv(n),d=h.lineWidth,f=h.arcR,p=[f,0],m=0;if(1===s)return void $v(e,{arcR:f,arcBegin:p,beginAngle:m,config:l[0],fanIndex:0,lineWidth:d,totalValue:c,drawWhole:!0});for(var g=0;g.999)n=[o,1e-4],i=1;else{var v=g*Math.PI*2;r=s+v,n=[o*Math.cos(r),-o*Math.sin(r)],i=v>Math.PI?1:0}var y={path:[["M",a[0],a[1]],["A",o,o,0,i,0,n[0],n[1]]],stroke:u.color||(null==m?void 0:m.attr("stroke"))||Xv[l%Xv.length],lineWidth:c};return m?m.attr(y):t.shapeMap["".concat(Yv).concat(l)]=t.addShape("path",{attrs:y,name:"".concat(Yv).concat(l),draggable:!0}),{beginAngle:r,arcBegin:n,shape:t.shapeMap["".concat(Yv).concat(l)],shouldEnd:f||g>.999}},Kv=function(t,e,n){var r=t.donutAttrs,i=t.donutColorMap,o=void 0===i?{}:i,a={},s=e.getContainer();if(r){var u=Zv(r,o),l=u.configs,c=u.totalValue;if(c)for(var h=Qv(n),d=h.lineWidth,f=h.arcR,p=[f,0],m=0,g=0;g=0;r--){var i=t[r];i.id="".concat(i.x,"|||").concat(i.y),n[i.id]||(n[i.id]=i,e.push(i))}return e},ey=function(t){return ty(t)},ny=function(t,e){return t.width||t.height?{centerX:t.centerX,centerY:t.centerY,minX:t.minX-e,minY:t.minY-e,maxX:t.maxX+e,maxY:t.maxY+e,height:t.height+2*e,width:t.width+2*e}:t},ry=function(t,e,n){var r=function(t,e){var n=Math.abs(t.x-e.centerX),r=Math.abs(t.y-e.centerY);return 0===n&&0===r?0:n/e.width>r/e.height}(e,t);if(0===r){var i=t.centerX,o=t.centerY;return n.ye.x?i=t.maxX:n.xt.centerX?t.maxX:t.minX,y:e.y}:{x:e.x,y:e.y>t.centerY?t.maxY:t.minY}},iy=function(t,e){var n=Math.min(t.minX,e.minX),r=Math.min(t.minY,e.minY),i=Math.max(t.maxX,e.maxX),o=Math.max(t.maxY,e.maxY);return{centerX:(n+i)/2,centerY:(r+o)/2,minX:n,minY:r,maxX:i,maxY:o,height:o-r,width:i-n}},oy=function(t){return[{x:t.minX,y:t.minY},{x:t.maxX,y:t.minY},{x:t.maxX,y:t.maxY},{x:t.minX,y:t.maxY}]},ay=function(t,e){var n=t.x,r=t.y;return ne.maxX||re.maxY},sy=function(t,e){return Math.abs(t.x-e.x)+Math.abs(t.y-e.y)},uy=function(t,e,n,r,i){return sy(t,e)+sy(t,n)+function(t,e){var n=0;return e.forEach((function(e){e&&(t.x===e.x&&(n+=-2),t.y===e.y&&(n+=-2))})),n}(t,[e,n,r,i])},ly=function t(e,n,r,i,o){void 0===o&&(o=0),e.unshift(n[i]),r[i]&&r[i]!==i&&o<=100&&t(e,n,r,r[i],o+1)},cy=function(t,e,n,r){var i=n.x-t.x,o=n.y-t.y,a=r.x-t.x,s=r.y-t.y,u=n.x-e.x,l=n.y-e.y,c=r.x-e.x,h=r.y-e.y;return(i*s-o*a)*(u*h-l*c)<=0&&(i*l-o*u)*(a*h-s*c)<=0},hy=function(t,e,n){if(n.width||n.height){var r=oy(n),i=r[0],o=r[1],a=r[2],s=r[3];return cy(t,e,i,o)||cy(t,e,i,s)||cy(t,e,o,a)||cy(t,e,a,s)}return!1},dy=function(t,e,n,r){var i=[];return t.forEach((function(t){if(t!==e&&(t.x===e.x||t.y===e.y)){if(hy(t,e,n)||hy(t,e,r))return;i.push(t)}})),ty(i)},fy=function(t,e){var n=[],r=t[0];return n.push("M".concat(r.x," ").concat(r.y)),t.forEach((function(r,i){var o=t[i+1],a=t[i+2];if(o&&a)if(function(t,e,n){return!(t.x===e.x&&e.x===n.x||t.y===e.y&&e.y===n.y)}(r,o,a)){var s=function(t,e,n,r){var i=sy(t,e),o=sy(n,e);return it.maxX?[]:[{x:e,y:t.minY},{x:e,y:t.maxY}]}(t,e.x).concat(function(t,e){return et.maxY?[]:[{x:t.minX,y:e},{x:t.maxX,y:e}]}(t,e.y))}(t,S).filter((function(t){return ay(t,m)&&ay(t,g)})))})),[{x:v.x,y:y.y},{x:y.x,y:v.y}].forEach((function(t){ay(t,m)&&ay(t,g)&&_.push(t)})),_.unshift(v),_.push(y);var E=function(t,e,n,r,i,o,a){var s,u=[],l=((s={})[e.id]=e,s),c={},h={},d={};h[e.id]=0,d[e.id]=uy(e,n,e);var f=new my;f.add({id:e.id,value:d[e.id]});var p,m={};for(t.forEach((function(t){m[t.id]=t}));Object.keys(l).length;){var g=f.minId(!1);if(!g)break;if((p=l[g])===n){var v=[];return ly(v,m,c,n.id),v}delete l[p.id],f.remove(p.id),u.push(p),dy(t,p,r,i).forEach((function(t){if(-1===u.indexOf(t)){var r=t.id;l[r]||(l[r]=t);var i=d[p.id]+sy(p,t);h[r]&&i>=h[r]||(c[r]=p.id,h[r]=i,d[r]=h[r]+uy(t,n,e,o,a)),f.add({id:r,value:d[r]})}}))}return[e,n]}(_=ty(_),v,y,o,a,t,e);return E.unshift(t),E.push(e),ey(E)},my=function(){function t(){this.arr=[],this.map={},this.arr=[],this.map={}}return t.prototype._innerAdd=function(t,e){for(var n=[0,e-1];n[1]-n[0]>1;){var r=Math.floor((n[0]+n[1])/2);if(this.arr[r].value>t.value)n[1]=r;else{if(!(this.arr[r].value=0;e--)this.map[this.arr[e].id]?t=this.arr[e].id:this.arr.splice(e,1);return t},t.prototype._findFirstId=function(){for(;this.arr.length;){var t=this.arr.shift();if(this.map[t.id])return t.id}},t.prototype.minId=function(t){return t?this._clearAndGetMinId():this._findFirstId()},t}(),gy={offset:20,maxAllowedDirectionChange:Math.PI/2,maximumLoops:2e3,gridSize:10,directions:[{stepX:1,stepY:0},{stepX:-1,stepY:0},{stepX:0,stepY:1},{stepX:0,stepY:-1}],get penalties(){return{0:0,45:this.gridSize/2,90:this.gridSize/2}},distFunc:function(t,e){return Math.abs(t.x-e.x)+Math.abs(t.y-e.y)},fallbackRoute:function(t,e,n,r,i){return ey(py(t,e,n,r,i.offset))}},vy=(Math.PI,function(t,e){var n=Math.round(Math.abs(t/e));return n<0?0:(t<0?-1:1)*n}),yy=function(t,e){var n=e.x-t.x,r=e.y-t.y;return n||r?Math.atan2(r,n):0},by=function(t,e){var n=Math.abs(t-e);return n>Math.PI?2*Math.PI-n:n},xy=function(t,e,n){for(var r=1/0,i=0,o=e.length;iu.minX&&e.xu.minY&&e.y0&&T>0;){var N=y.minId((T+1)%30==0);if(!N)break;if(_=f[N],I["".concat(_.x,"|||").concat(_.y)])return Sy(_,m,l,e,t,c,s);delete f[_.id],y.remove(_.id),p[_.id]=!0;for(b=0;bo.maxAllowedDirectionChange||u[P])){f[P]||(f[P]=E);var O=a[C];A=o.distFunc(_,E)+(isNaN(O)?s:O),M=g[_.id]+A;var L=g[P];L&&M>=L||(m[P]=_,g[P]=M,v[P]=M+xy(E,d,o.distFunc),y.add({id:P,value:v[P]}))}}T-=1}return o.fallbackRoute(t,e,n,r,o)};sl("polyline",{options:{color:cl.defaultEdge.color,size:cl.defaultEdge.size,style:{radius:0,offset:15,x:0,y:0,stroke:cl.defaultEdge.style.stroke,lineAppendWidth:cl.defaultEdge.style.lineAppendWidth},labelCfg:{style:{fill:cl.edgeLabel.style.fill,fontSize:cl.edgeLabel.style.fontSize,fontFamily:cl.windowFontFamily}},routeCfg:{obstacles:[],maxAllowedDirectionChange:Math.PI,maximumLoops:500,gridSize:10},stateStyles:(0,b.__assign)({},cl.edgeStateStyles)},shapeType:"polyline",labelPosition:"center",drawShape:function(t,e){var n=this.getShapeStyle(t);0===n.radius&&delete n.radius;var r=e.addShape("path",{className:"edge-shape",name:"edge-shape",attrs:n});return e.shapeMap["edge-shape"]=r,r},getShapeStyle:function(t){var e=this.options.style,n={stroke:t.color},r=(0,x.mix)({},e,n,t.style);t=this.getPathPoints(t),this.radius=r.radius,this.offset=r.offset;var i=t.startPoint,o=t.endPoint,a=this.getControlPoints(t),s=[i];a&&(s=s.concat(a)),s.push(o);var u=t.sourceNode,l=t.targetNode,c=r.radius,h=this.options.routeCfg,d=(0,x.mix)({},h,t.routeCfg);d.offset=r.offset;var f=this.getPath(s,u,l,c,d,!Boolean(a));return((0,x.isArray)(f)&&f.length<=1||(0,x.isString)(f)&&-1===f.indexOf("L"))&&(f="M0 0, L0 0"),(isNaN(i.x)||isNaN(i.y)||isNaN(o.x)||isNaN(o.y))&&(f="M0 0, L0 0"),(0,x.mix)({},cl.defaultEdge.style,r,{lineWidth:t.size,path:f})},updateShapeStyle:function(t,e){var n=e.getContainer();if(e.isVisible()){var r={stroke:t.color},i=n.shapeMap["edge-shape"]||n.find((function(t){return"edge-shape"===t.get("className")}))||e.getKeyShape(),o=t.size,a=(t=this.getPathPoints(t)).startPoint,s=t.endPoint,u=this.getControlPoints(t),l=[a];u&&(l=l.concat(u)),l.push(s);var c=i.attr(),h=(0,x.mix)({},r,c,t.style),d=t.sourceNode,f=t.targetNode,p=h.radius,m=this.options.routeCfg,g=(0,x.mix)({},m,t.routeCfg);g.offset=h.offset;var v=this.getPath(l,d,f,p,g,!Boolean(u));((0,x.isArray)(v)&&v.length<=1||(0,x.isString)(v)&&-1===v.indexOf("L"))&&(v="M0 0, L0 0"),(isNaN(a.x)||isNaN(a.y)||isNaN(s.x)||isNaN(s.y))&&(v="M0 0, L0 0"),c.endArrow&&!1===h.endArrow&&(t.style.endArrow={path:""}),c.startArrow&&!1===h.startArrow&&(t.style.startArrow={path:""});var y=(0,x.mix)(r,i.attr(),{lineWidth:o,path:v},t.style);i&&i.attr(y)}},getPath:function(t,e,n,r,i,o){var a=i.offset,s=i.obstacles,u=i.simple;if(!a||t.length>2||!1===o){if(r)return fy(t,r);var l=[];return(0,x.each)(t,(function(t,e){0===e?l.push(["M",t.x,t.y]):l.push(["L",t.x,t.y])})),l}!1===u||(null==s?void 0:s.length)||(u=!0);var c=u?py(t[t.length-1],t[0],n,e,a):Ey(t[0],t[t.length-1],e,n,i);return c&&c.length?r?fy(c,r):(c=function(t){if(!(null==t?void 0:t.length))return t;for(var e=t[t.length-1],n={x:e.x,y:e.y},r=[e],i=[e],o=t.length-2;o>=0;o--){var a,s=t[o];s.x===n.x?r.push(s):(r=[s],n.x=s.x),s.y===n.y?i.push(s):(i=[s],n.y=s.y),r.length>2?(a=t.indexOf(r[1]))>-1&&t.splice(a,1):i.length>2&&(a=t.indexOf(i[1]))>-1&&t.splice(a,1)}return t}(c),el.pointsToPolygon(c)):"M0 0, L0 0"}},"single-edge");var Ay=hf.cloneEvent,My=hf.isNaN,Cy=Math.abs,Ty=["shift","ctrl","alt","control"];const ky={getDefaultCfg:function(){return{direction:"both",enableOptimize:!1,scalableRange:0,allowDragOnItem:!1}},getEvents:function(){return{mousedown:"onMouseDown",drag:"onDragMove",dragend:"onMouseUp","canvas:click":"onMouseUp",keyup:"onKeyUp",focus:"onKeyUp",keydown:"onKeyDown",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onMouseUp"}},updateViewport:function(t){var e=this.origin,n=+t.clientX,r=+t.clientY;if(!My(n)&&!My(r)){var i=n-e.x,o=r-e.y;"x"===this.get("direction")?o=0:"y"===this.get("direction")&&(i=0),this.origin={x:n,y:r};var a=this.graph.get("width"),s=this.graph.get("height"),u=this.graph.get("canvas").getCanvasBBox(),l=this.scalableRange,c=this.scalableRange;l<1&&l>-1&&(l*=a,c*=s),(u.minX<=a+l&&u.minX+i>a+l||u.maxX+l>=0&&u.maxX+l+i<0)&&(i=0),(u.minY<=s+c&&u.minY+o>s+c||u.maxY+c>=0&&u.maxY+c+o<0)&&(o=0),this.graph.translate(i,o)}},onTouchStart:function(t){var e=t.originalEvent.touches,n=e[0],r=e[1];n&&r||(t.preventDefault(),this.mousedown=!0,this.onDragStart(t))},onMouseDown:function(t){this.mousedown=!0},onDragMove:function(t){this.mousedown&&(this.dragstart?this.onDrag(t):(this.dragstart=!0,this.onDragStart(t)))},onDragStart:function(t){var e=this,n=t.originalEvent;if((!n||"touchstart"===t.name||0===n.button)&&("touchstart"===t.name||"undefined"==typeof window||!window.event||window.event.buttons||window.event.button)&&this.shouldBegin(t,this)&&!e.keydown&&this.allowDrag(t)){if(e.origin={x:t.clientX,y:t.clientY},e.dragging=!1,this.enableOptimize){for(var r=this.graph,i=r.getEdges(),o=0,a=i.length;os)for(var d=r.getNodes(),f=0,p=d.length;f-1?this.keydown=!0:this.keydown=!1)},onKeyUp:function(){this.keydown=!1,this.origin=null,this.dragging=!1,this.dragbegin=!1},allowDrag:function(t){var e,n,r=t.target,i=r&&r.isCanvas&&r.isCanvas();if((0,x.isBoolean)(this.allowDragOnItem)&&!this.allowDragOnItem&&!i)return!1;if((0,x.isObject)(this.allowDragOnItem)){var o=this.allowDragOnItem,a=o.node,s=o.edge,u=o.combo,l=null===(n=null===(e=t.item)||void 0===e?void 0:e.getType)||void 0===n?void 0:n.call(e);if(!a&&"node"===l)return!1;if(!s&&"edge"===l)return!1;if(!u&&"combo"===l)return!1}return!0}},Iy={getDefaultCfg:function(){return{updateEdge:!0,delegateStyle:{},enableDelegate:!1,onlyChangeComboSize:!1,comboActiveState:"",selectedState:"selected",enableOptimize:!1,enableDebounce:!1,enableStack:!0}},getEvents:function(){return{"node:mousedown":"onMouseDown",drag:"onDragMove",dragend:"onDragEnd","combo:dragenter":"onDragEnter","combo:dragleave":"onDragLeave","combo:drop":"onDropCombo","node:drop":"onDropNode","canvas:drop":"onDropCanvas",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onDragEnd",afterchangedata:"onDragEnd"}},validationCombo:function(t){return!(!this.origin||!t||t.destroyed)&&"combo"===t.getType()},onTouchStart:function(t){if(t.item){try{var e=t.originalEvent.touches,n=e[0],r=e[1];if(n&&r)return;t.preventDefault()}catch(t){console.warn("Touch original event not exist!")}this.mousedown={item:t.item,target:t.target,origin:{x:t.x,y:t.y}},this.dragstart=!0,this.onDragStart(t)}},onTouchMove:function(t){try{var e=t.originalEvent.touches,n=e[0],r=e[1];if(n&&r)return void this.onDragEnd(t);t.preventDefault()}catch(t){console.warn("Touch original event not exist!")}this.onDrag(t)},onMouseDown:function(t){this.mousedown={item:t.item,target:t.target,origin:{x:t.x,y:t.y}},"undefined"==typeof window||this.windowEventBinded||(this.windowEventBinded=!0,document.body.addEventListener("contextmenu",this.onDragEnd.bind(this)),document.body.addEventListener("mouseup",this.onDragEnd.bind(this)))},onDragMove:function(t){var e,n;"node"===(null===(n=null===(e=t.item)||void 0===e?void 0:e.getType)||void 0===n?void 0:n.call(e))?this.mousedown&&(this.dragstart?this.onDrag((0,b.__assign)((0,b.__assign)({},t),this.mousedown)):(this.dragstart=!0,this.onDragStart(t))):this.onDragEnd()},onDragStart:function(t){var e=this;if(this.currentShouldEnd=!0,this.shouldBegin((0,b.__assign)((0,b.__assign)({},t),this.mousedown),this)){var n=this.mousedown,r=n.item,i=n.target;if(r&&!r.destroyed&&!r.hasLocked()){if(r.getContainer().set("capture",!1),this.cachedCaptureItems||(this.cachedCaptureItems=[]),this.cachedCaptureItems.push(r),i)if(i.get("isAnchorPoint"))return;var o=this.graph;this.targets=[],this.targetCombo=null;var a=o.findAllByState("node",this.selectedState),s=r.get("id"),u=a.filter((function(t){var e=t.get("id");return s===e}));if(0===u.length?this.targets.push(r):a.length>1?a.forEach((function(t){t.hasLocked()||e.targets.push(t)})):this.targets.push(r),this.graph.get("enabledStack")&&this.enableStack){var l=[];this.targets.forEach((function(t){var e=t.getModel(),n=e.x,r=e.y,i=e.id;l.push({x:n,y:r,id:i})})),this.set("beforeDragNodes",l)}this.hidenEdge={},this.get("updateEdge")&&this.enableOptimize&&!this.enableDelegate&&this.targets.forEach((function(t){t.getEdges().forEach((function(t){t.isVisible()&&(e.hidenEdge[t.getID()]=!0,t.hide())}))})),this.origin=this.mousedown.origin,this.point={},this.originPoint={}}}},onDrag:function(t){var e=this;if(this.mousedown&&this.origin&&this.shouldUpdate(t,this))if(this.get("enableDelegate"))this.updateDelegate(t);else if(this.enableDebounce)this.debounceUpdate({targets:this.targets,graph:this.graph,point:this.point,origin:this.origin,evt:t,updateEdge:this.get("updateEdge"),onlyChangeComboSize:this.onlyChangeComboSize,updateParentCombos:this.updateParentCombos});else{var n={};this.targets.map((function(r){e.update(r,t);var i=r.getModel().comboId;i&&(n[i]=e.graph.findById(i))})),this.onlyChangeComboSize&&this.updateParentCombos()}},onDragEnd:function(t){var e,n=this;if(this.mousedown=!1,this.dragstart=!1,"undefined"!=typeof window&&this.windowEventBinded&&(this.windowEventBinded=!1,document.body.removeEventListener("contextmenu",this.onDragEnd.bind(this)),document.body.removeEventListener("mouseup",this.onDragEnd.bind(this))),this.origin){null===(e=this.cachedCaptureItems)||void 0===e||e.forEach((function(t){t.getContainer().set("capture",!0)})),this.cachedCaptureItems=[],this.delegateRect&&(this.delegateRect.remove(),this.delegateRect=null),this.get("updateEdge")&&this.enableOptimize&&!this.enableDelegate&&this.targets.forEach((function(t){t.getEdges().forEach((function(t){n.hidenEdge[t.getID()]&&t.show(),t.refresh()}))})),this.hidenEdge={};var r=this.graph;if(r.get("enabledStack")&&this.enableStack){var i={before:{nodes:[],edges:[],combos:[]},after:{nodes:[],edges:[],combos:[]}};this.get("beforeDragNodes").forEach((function(t){i.before.nodes.push(t)})),this.targets.forEach((function(t){var e=t.getModel(),n=e.x,r=e.y,o=e.id;i.after.nodes.push({x:n,y:r,id:o})})),r.pushStack("update",(0,x.clone)(i))}r.emit("dragnodeend",{items:this.targets,targetItem:null}),this.point={},this.origin=null,this.originPoint={},this.targets.length=0,this.targetCombo=null}},onDropCombo:function(t){var e=t.item;if(this.currentShouldEnd=this.shouldEnd(t,e,this),this.updatePositions(t,!this.currentShouldEnd),this.currentShouldEnd&&this.validationCombo(e)){var n=this.graph;if(this.comboActiveState&&n.setItemState(e,this.comboActiveState,!1),this.targetCombo=e,this.onlyChangeComboSize)n.updateCombos();else{var r=e.getModel();this.targets.map((function(t){t.getModel().comboId!==r.id&&n.updateComboTree(t,r.id)})),n.updateCombo(e)}n.emit("dragnodeend",{items:this.targets,targetItem:this.targetCombo})}},onDropCanvas:function(t){var e=this.graph;this.currentShouldEnd=this.shouldEnd(t,void 0,this),this.updatePositions(t,!this.currentShouldEnd),this.targets&&0!==this.targets.length&&this.currentShouldEnd&&(this.onlyChangeComboSize?this.updateParentCombos():this.targets.map((function(t){t.getModel().comboId&&e.updateComboTree(t)})))},onDropNode:function(t){if(this.targets&&0!==this.targets.length){var e=this,n=t.item,r=e.graph,i=n.getModel().comboId,o=i?r.findById(i):void 0;if(this.currentShouldEnd=this.shouldEnd(t,o,this),this.updatePositions(t,!this.currentShouldEnd),this.currentShouldEnd){if(this.onlyChangeComboSize)this.updateParentCombos();else if(i){var a=r.findById(i);e.comboActiveState&&r.setItemState(a,e.comboActiveState,!1),this.targets.map((function(t){var e=t.getModel();i!==e.comboId&&r.updateComboTree(t,i)})),r.updateCombo(a)}else this.targets.map((function(t){t.getModel().comboId&&r.updateComboTree(t)}));r.emit("dragnodeend",{items:this.targets,targetItem:n})}}},onDragEnter:function(t){var e=t.item;if(this.validationCombo(e)){var n=this.graph;this.comboActiveState&&n.setItemState(e,this.comboActiveState,!0)}},onDragLeave:function(t){var e=t.item;if(this.validationCombo(e)){var n=this.graph;this.comboActiveState&&n.setItemState(e,this.comboActiveState,!1)}},updatePositions:function(t,e){var n=this;this.targets&&0!==this.targets.length&&(this.get("enableDelegate")?this.enableDebounce?this.debounceUpdate({targets:this.targets,graph:this.graph,point:this.point,origin:this.origin,evt:t,updateEdge:this.get("updateEdge"),onlyChangeComboSize:this.onlyChangeComboSize,updateParentCombos:this.updateParentCombos}):e||this.targets.map((function(e){return n.update(e,t)})):this.targets.map((function(r){return n.update(r,t,e)})))},update:function(t,e,n){var r=this.origin,i=t.get("model"),o=t.get("id");this.point[o]||(this.point[o]={x:i.x||0,y:i.y||0});var a=e.x-r.x+this.point[o].x,s=e.y-r.y+this.point[o].y;n&&(a+=r.x-e.x,s+=r.y-e.y);var u={x:a,y:s};this.get("updateEdge")?this.graph.updateItem(t,u,!1):t.updatePosition(u)},debounceUpdate:(0,x.debounce)((function(t){var e=t.targets,n=t.graph,r=t.point,i=t.origin,o=t.evt,a=t.updateEdge,s=t.onlyChangeComboSize,u=t.updateParentCombos;e.map((function(t){var e=t.get("model"),s=t.get("id");r[s]||(r[s]={x:e.x||0,y:e.y||0});var u={x:o.x-i.x+r[s].x,y:o.y-i.y+r[s].y};a?n.updateItem(t,u,!1):t.updatePosition(u)})),s&&u(n,e)}),50,!0),updateDelegate:function(t){var e=this.graph;if(this.delegateRect){var n=t.x-this.origin.x+this.originPoint.minX,r=t.y-this.origin.y+this.originPoint.minY;this.delegateRect.attr({x:n,y:r})}else{var i=e.get("group"),o=(0,x.deepMix)({},Gd.delegateStyle,this.delegateStyle),a=this.calculationGroupPosition(t),s=a.x,u=a.y,l=a.width,c=a.height,h=a.minX,d=a.minY;this.originPoint={x:s,y:u,width:l,height:c,minX:h,minY:d},this.delegateRect=i.addShape("rect",{attrs:(0,b.__assign)({width:l,height:c,x:s,y:u},o),name:"rect-delegate-shape"}),this.delegate=this.delegateRect,this.delegateRect.set("capture",!1)}},calculationGroupPosition:function(t){var e=this.targets;0===e.length&&e.push(t.item);for(var n=1/0,r=-1/0,i=1/0,o=-1/0,a=0;ar&&(r=c),h>o&&(o=h)}return{x:Math.floor(n),y:Math.floor(i),width:Math.ceil(r)-Math.floor(n),height:Math.ceil(o)-Math.floor(i),minX:n,minY:i}},updateParentCombos:function(t,e){var n=t||this.graph,r=e||this.targets,i={};null==r||r.forEach((function(t){var e=t.getModel().comboId;e&&(i[e]=n.findById(e))})),Object.values(i).forEach((function(t){t&&n.updateCombo(t)}))}};var Ny=null;const Py={getDefaultCfg:function(){return{trigger:"mouseenter",activeState:"active",inactiveState:"inactive",resetSelected:!1,shouldClearStatusOnSecond:!1,shouldUpdate:function(){return!0}}},getEvents:function(){return"mouseenter"===this.get("trigger")?{"node:mouseenter":"setAllItemStates","combo:mouseenter":"setAllItemStates","node:mouseleave":"clearActiveState","combo:mouseleave":"clearActiveState"}:{"node:click":"setAllItemStates","combo:click":"setAllItemStates","canvas:click":"clearActiveState","node:touchstart":"setOnTouchStart","combo:touchstart":"setOnTouchStart","canvas:touchstart":"clearOnTouchStart"}},setOnTouchStart:function(t){try{var e=t.originalEvent.touches,n=e[0],r=e[1];if(n&&r)return;t.preventDefault()}catch(t){console.warn("Touch original event not exist!")}this.setAllItemStates(t)},clearOnTouchStart:function(t){try{var e=t.originalEvent.touches,n=e[0],r=e[1];if(n&&r)return;t.preventDefault()}catch(t){console.warn("Touch original event not exist!")}this.clearActiveState(t)},setAllItemStates:function(t){clearTimeout(this.timer),this.throttleSetAllItemStates(t,this)},clearActiveState:function(t){var e=this;this.shouldClearStatusOnSecond&&(Ny=null),this.timer=setTimeout((function(){e.throttleClearActiveState(t,e)}),50)},throttleSetAllItemStates:(0,x.throttle)((function(t,e){var n=t.item,r=e.graph;if(r&&!r.destroyed&&(e.item=n,e.shouldUpdate(t.item,{event:t,action:"activate"},e))){var i=e.shouldClearStatusOnSecond,o=n.getModel().id;if(Ny===o&&i)return e.throttleClearActiveState(t,e),void(Ny=null);for(var a=e.activeState,s=e.inactiveState,u=r.getNodes(),l=r.getCombos(),c=r.getEdges(),h=r.get("vedges"),d=u.length,f=l.length,p=c.length,m=h.length,g=e.inactiveItems||{},v=e.activeItems||{},y=0;y-1||(this.trigger=Dy,console.warn("Behavior brush-select 的 trigger 参数不合法,请输入 'drag'、'shift'、'ctrl' 或 'alt'")),"drag"===this.trigger?{dragstart:"onMouseDown",drag:"onMouseMove",dragend:"onMouseUp","canvas:click":"clearStates"}:{dragstart:"onMouseDown",drag:"onMouseMove",dragend:"onMouseUp","canvas:click":"clearStates",keyup:"onKeyUp",keydown:"onKeyDown"}},onMouseDown:function(t){var e=t.item,n=this.brush,r=this.selectOnCombo,i="combo"===(null==e?void 0:e.getType());i&&!r||!i&&e||("drag"===this.trigger||this.keydown)&&(this.selectedNodes&&0!==this.selectedNodes.length&&this.clearStates(),n||(n=this.createBrush()),this.originPoint={x:t.canvasX,y:t.canvasY},n.attr({width:0,height:0}),n.show(),this.dragging=!0)},onMouseMove:function(t){this.dragging&&("drag"===this.trigger||this.keydown)&&this.updateBrush(t)},onMouseUp:function(t){this.graph;(this.brush||this.dragging)&&("drag"===this.trigger||this.keydown)&&(this.brush.remove(!0),this.brush=null,this.getSelectedNodes(t),this.dragging=!1)},clearStates:function(){var t=this.graph,e=this.selectedState,n=t.findAllByState("node",e),r=t.findAllByState("edge",e),i=t.findAllByState("combo",e);n.forEach((function(n){return t.setItemState(n,e,!1)})),r.forEach((function(n){return t.setItemState(n,e,!1)})),i.forEach((function(n){return t.setItemState(n,e,!1)})),this.selectedNodes=[],this.selectedEdges=[],this.selectedCombos=[],this.onDeselect&&this.onDeselect(this.selectedNodes,this.selectedEdges,this.selectedCombos),t.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[],combos:[]},select:!1})},isBBoxCenterInRect:function(t,e,n,r,i){var o=t.getBBox();return o.centerX>=e&&o.centerX<=n&&o.centerY>=r&&o.centerY<=i},getSelectedNodes:function(t){var e=this,n=this,r=n.graph,i=n.originPoint,o=n.shouldUpdate,a=n.isBBoxCenterInRect,s=this.selectedState,u={x:t.x,y:t.y},l=r.getPointByCanvas(i.x,i.y),c=Oy(u.x,l.x),h=Ly(u.x,l.x),d=Oy(u.y,l.y),f=Ly(u.y,l.y),p=[],m=[];r.getNodes().forEach((function(t){if(t.isVisible()&&a(t,c,h,d,f)&&o(t,"select",e)){p.push(t);var n=t.getModel();m.push(n.id),r.setItemState(t,s,!0)}}));var g=[];this.includeEdges&&p.forEach((function(t){t.getOutEdges().forEach((function(t){if(t.isVisible()){var n=t.getModel(),i=n.source,a=n.target;m.includes(i)&&m.includes(a)&&o(t,"select",e)&&(g.push(t),r.setItemState(t,e.selectedState,!0))}}))}));var v=[];this.includeCombos&&r.getCombos().forEach((function(t){if(t.isVisible()&&a(t,c,h,d,f)&&o(t,"select",e)){v.push(t);var n=t.getModel();m.push(n.id),r.setItemState(t,s,!0)}})),this.selectedEdges=g,this.selectedNodes=p,this.selectedCombos=v,this.onSelect&&this.onSelect(p,g,v),r.emit("nodeselectchange",{selectedItems:{nodes:p,edges:g,combos:v},select:!0})},createBrush:function(){var t=this.graph.get("canvas").addShape("rect",{attrs:this.brushStyle,capture:!1,name:"brush-shape"});return this.brush=t,this.delegate=t,t},updateBrush:function(t){var e=this.originPoint;this.brush.attr({width:Ry(t.canvasX-e.x),height:Ry(t.canvasY-e.y),x:Oy(t.canvasX,e.x),y:Oy(t.canvasY,e.y)})},onKeyDown:function(t){var e=t.key;if(e){var n=this.trigger.toLowerCase(),r=e.toLowerCase();this.keydown=r===n||"control"===r&&"ctrl"===n||"ctrl"===r&&"control"===n}},onKeyUp:function(){this.brush&&(this.brush.remove(!0),this.brush=null,this.dragging=!1),this.keydown=!1}};var By="shift",Uy=["shift","ctrl","alt","control"];const jy={getDefaultCfg:function(){return{multiple:!0,trigger:By,selectedState:"selected",selectNode:!0,selectEdge:!1,selectCombo:!0}},getEvents:function(){var t=this;return Uy.indexOf(t.trigger.toLowerCase())>-1||(t.trigger=By,console.warn("Behavior click-select 的 trigger 参数不合法,请输入 'drag'、'shift'、'ctrl' 或 'alt'")),t.multiple?{"node:click":"onClick","combo:click":"onClick","edge:click":"onClick","canvas:click":"onCanvasClick",keyup:"onKeyUp",keydown:"onKeyDown"}:{"node:click":"onClick","combo:click":"onClick","edge:click":"onClick","canvas:click":"onCanvasClick"}},onClick:function(t){var e=this,n=t.item;if(n&&!n.destroyed){var r=n.getType(),i=e.graph,o=e.keydown,a=e.multiple,s=e.shouldUpdate;if((0,e.shouldBegin)(t,e)){if(!o||!a){var u=i.findAllByState("node",e.selectedState).concat(i.findAllByState("edge",e.selectedState)).concat(i.findAllByState("combo",e.selectedState));(0,x.each)(u,(function(t){t!==n&&i.setItemState(t,e.selectedState,!1)}))}if(function(){switch(r){case"node":return e.selectNode;case"edge":return e.selectEdge;case"combo":return e.selectCombo;default:return!1}}())if(n.hasState(e.selectedState)){s(t,e)&&i.setItemState(n,e.selectedState,!1);l=i.findAllByState("node",e.selectedState),c=i.findAllByState("edge",e.selectedState),h=i.findAllByState("combo",e.selectedState);i.emit("nodeselectchange",{target:n,selectedItems:{nodes:l,edges:c,combos:h},select:!1})}else{s(t,e)&&i.setItemState(n,e.selectedState,!0);l=i.findAllByState("node",e.selectedState),c=i.findAllByState("edge",e.selectedState),h=i.findAllByState("combo",e.selectedState);i.emit("nodeselectchange",{target:n,selectedItems:{nodes:l,edges:c,combos:h},select:!0})}else{var l=i.findAllByState("node",e.selectedState),c=i.findAllByState("edge",e.selectedState),h=i.findAllByState("combo",e.selectedState);i.emit("nodeselectchange",{selectedItems:{nodes:l,edges:c,combos:h},select:!1})}}}},onCanvasClick:function(t){var e=this,n=this.graph;if((0,this.shouldBegin)(t,this)){var r=n.findAllByState("node",this.selectedState);(0,x.each)(r,(function(t){n.setItemState(t,e.selectedState,!1)}));var i=n.findAllByState("edge",this.selectedState);(0,x.each)(i,(function(t){n.setItemState(t,e.selectedState,!1)}));var o=n.findAllByState("combo",this.selectedState);(0,x.each)(o,(function(t){n.setItemState(t,e.selectedState,!1)})),n.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[],combos:[]},select:!1})}},onKeyDown:function(t){var e=t.key;e&&(e.toLowerCase()===this.trigger.toLowerCase()||"control"===e.toLowerCase()?this.keydown=!0:this.keydown=!1)},onKeyUp:function(){this.keydown=!1}};var Vy=N,Hy=.05;const Gy={getDefaultCfg:function(){return this.isFireFox="firefox"===cf(),{sensitivity:2,minZoom:void 0,maxZoom:void 0,enableOptimize:!1,optimizeZoom:.1,fixSelectedItems:{fixAll:!1,fixLineWidth:!1,fixLabel:!1,fixState:"selected"},animate:!1,animateCfg:{duration:500}}},getEvents:function(){var t=this.fixSelectedItems;return t.fixState||(t.fixState="selected"),t.fixAll&&(t.fixLineWidth=!0,t.fixLabel=!0),{wheel:"onWheel",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onTouchEnd"}},onTouchStart:function(t){var e=t.originalEvent.touches,n=e[0],r=e[1];t.preventDefault(),r&&(this.shouldBegin&&!this.shouldBegin(t,this)||(this.startPoint={pageX:n.pageX,pageY:n.pageY},this.moveable=!0,r&&(this.endPoint={pageX:r.pageX,pageY:r.pageY}),this.originScale=this.graph.getZoom()||this.currentScale||1))},onTouchMove:function(t){if(this.moveable){t.preventDefault();var e=t.originalEvent.touches,n=e[0],r=e[1];if(r){this.endPoint||(this.endPoint={pageX:r.pageX,pageY:r.pageY});var i=function(t,e){return Math.hypot(e.x-t.x,e.y-t.y)},o=i({x:n.pageX,y:n.pageY},{x:r.pageX,y:r.pageY})/i({x:this.startPoint.pageX,y:this.startPoint.pageY},{x:this.endPoint.pageX,y:this.endPoint.pageY}),a=this.originScale*o;this.currentScale=a;var s=this.get("minZoom")||this.graph.get("minZoom");if(!(a>(this.get("maxZoom")||this.graph.get("maxZoom"))||a0||t.wheelDelta<0?1-Hy*o:1/(1-Hy*o):t.wheelDelta<0?1-Hy*o:1/(1-Hy*o));var u=this.get("minZoom")||n.get("minZoom"),l=this.get("maxZoom")||n.get("maxZoom");if(s>l?s=l:sr/2?l-=h.width:l+=this.offset,c>i/2?c-=h.height:c+=this.offset;var d="".concat(l,"px"),f="".concat(c,"px");Gf(this.container,{left:d,top:f,visibility:"visible"})}else Gf(o,{visibility:"hidden"})},createTooltip:function(t){var e=t.get("el");e.style.position="relative";var n=Uh('
    '));return e.parentNode.appendChild(n),Gf(n,{position:"absolute",visibility:"visible"}),this.width=t.get("width"),this.height=t.get("height"),this.container=n,this.graph.get("tooltips").push(n),n}},Xy=(0,b.__assign)({getDefaultCfg:function(){return{item:"node",offset:12,formatText:function(t){return t.label}}},getEvents:function(){return{"node:mouseenter":"onMouseEnter","node:mouseleave":"onMouseLeave","node:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave"}}},Wy),Yy=(0,b.__assign)({getDefaultCfg:function(){return{item:"edge",offset:12,formatText:function(t){return"source: ".concat(t.source," target: ").concat(t.target)}}},getEvents:function(){return{"edge:mouseenter":"onMouseEnter","edge:mouseleave":"onMouseLeave","edge:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave"}}},Wy);var qy="click",$y=["click","dblclick"];const Ky={getDefaultCfg:function(){return{trigger:qy,onChange:function(){}}},getEvents:function(){var t,e;return $y.includes(this.trigger)?e=this.trigger:(e=qy,console.warn("Behavior collapse-expand 的 trigger 参数不合法,请输入 'click' 或 'dblclick'")),(t={})["node:".concat(e)]="onNodeClick",t.touchstart="onNodeClick",t},onNodeClick:function(t){var e=this;if("click"===this.trigger){if(this.timer)return clearTimeout(this.timer),void(this.timer=0);this.timer=setTimeout((function(){e.toggle(t),clearTimeout(e.timer),e.timer=0}),200)}else this.toggle(t)},toggle:function(t){var e=t.item;if(e){var n=this.graph.findDataById(e.get("id"));if(n){var r=n.children;if(r&&0!==r.length){var i=!n.collapsed;this.shouldBegin(t,i,this)&&(n.collapsed=i,e.getModel().collapsed=i,this.graph.emit("itemcollapsed",{item:t.item,collapsed:i}),this.shouldUpdate(t,i,this)&&(this.onChange(e,i,this),this.graph.layout()))}}}}};var Zy=hf.calculationItemsBBox,Qy=function t(e,n){if(!1!==n(e)&&e){var r=e.get("combos");if(0===r.length)return!1;(0,x.each)(r,(function(e){t(e,n)}))}};const Jy={getDefaultCfg:function(){return{enableDelegate:!1,delegateStyle:{},onlyChangeComboSize:!1,activeState:"",selectedState:"selected",enableStack:!0}},getEvents:function(){return{"combo:mousedown":"onMouseDown","combo:dragstart":"onDragStart","combo:drag":"onDrag","combo:dragend":"onDragEnd","combo:drop":"onDrop","node:drop":"onNodeDrop","combo:dragenter":"onDragEnter","combo:dragleave":"onDragLeave"}},validationCombo:function(t){var e=t.item;return!(!e||e.destroyed)&&(!!this.shouldUpdate(t,this)&&"combo"===e.getType())},onMouseDown:function(t){this.origin={x:t.x,y:t.y}},onDragStart:function(t){var e=this,n=this.graph,r=t.item;if(this.currentShouldEnd=!0,this.validationCombo(t)){this.targets=[];var i=n.findAllByState("combo",this.selectedState),o=r.get("id"),a=i.filter((function(t){var e=t.get("id");return o===e}));0===a.length?this.targets.push(r):this.targets=i;var s=[];this.targets.forEach((function(t){var e=t.getModel(),n=e.x,r=e.y,i=e.id;s.push({x:n,y:r,id:i})})),this.set("beforeDragItems",s),this.activeState&&this.targets.map((function(t){var r=t.getModel();if(r.parentId){var i=n.findById(r.parentId);i&&n.setItemState(i,e.activeState,!0)}})),this.point={},this.originPoint={},this.currentItemChildCombos=[],Qy(r,(function(t){if(t.destroyed)return!1;var n=t.getModel();return e.currentItemChildCombos.push(n.id),!0}))}},onDrag:function(t){var e=this;if(this.origin&&this.validationCombo(t))if(this.enableDelegate)this.updateDelegate(t);else{if(this.activeState){var n=this.graph,r=t.item,i=r.getModel(),o=n.getCombos(),a=r.getBBox(),s=a.centerX,u=a.centerY,l=a.width,c=o.filter((function(t){var n=t.getModel();return i.parentId,n.id!==i.id&&!e.currentItemChildCombos.includes(n.id)}));c.map((function(t){var r=t.getBBox(),i=r.centerX,o=r.centerY,a=r.width,c=s-i,h=u-o,d=2*Math.sqrt(c*c+h*h);l+a-d>.8*l?n.setItemState(t,e.activeState,!0):n.setItemState(t,e.activeState,!1)}))}(0,x.each)(this.targets,(function(n){e.updateCombo(n,t)})),this.onlyChangeComboSize&&this.updateParentCombos()}},updatePositions:function(t,e){var n=this;(this.enableDelegate||e)&&(0,x.each)(this.targets,(function(r){n.updateCombo(r,t,e)}))},onDrop:function(t){var e=this,n=t.item;if(this.currentShouldEnd=this.shouldEnd(t,n,this),this.updatePositions(t,!this.currentShouldEnd),this.currentShouldEnd&&n&&this.targets&&!n.destroyed){var r=this.graph,i=n.getModel();this.targets.map((function(t){t.getModel().parentId!==i.id?(e.activeState&&r.setItemState(n,e.activeState,!1),e.onlyChangeComboSize?r.updateCombo(t):r.updateComboTree(t,i.id,!1)):r.updateCombo(n)})),this.end(n,t),this.endComparison=!0}},onNodeDrop:function(t){var e=this;if(this.targets&&0!==this.targets.length){var n=this.graph,r=t.item.getModel().comboId,i=r?n.findById(r):void 0;if(this.currentShouldEnd=this.shouldEnd(t,i,this),this.updatePositions(t,!this.currentShouldEnd),this.currentShouldEnd){var o;if(r){if(this.activeState){var a=n.findById(r);n.setItemState(a,this.activeState,!1)}this.targets.map((function(t){e.onlyChangeComboSize?n.updateCombo(t):r!==t.getID()&&(o=n.findById(r),r!==t.getModel().parentId&&n.updateComboTree(t,r,!1))}))}else this.targets.map((function(t){e.onlyChangeComboSize?n.updateCombo(t):t.getModel().comboId&&n.updateComboTree(t,void 0,!1)}));this.endComparison=!0,this.end(o,t)}}},onDragEnter:function(t){if(this.origin&&this.validationCombo(t)){var e=t.item,n=this.graph;this.activeState&&n.setItemState(e,this.activeState,!0)}},onDragLeave:function(t){if(this.origin&&this.validationCombo(t)){var e=t.item,n=this.graph;this.activeState&&n.setItemState(e,this.activeState,!1)}},onDragEnd:function(t){if(this.targets&&0!==this.targets.length){var e=t.item;this.currentShouldEnd&&this.updatePositions(t);var n=this.getParentCombo(e.getModel().parentId),r=this.graph;n&&this.activeState&&r.setItemState(n,this.activeState,!1),this.end(void 0,t)}},end:function(t,e){var n=this;if(this.origin){var r=this.graph;if(this.delegateShape)r.get("delegateGroup").clear(),this.delegateShape=null;if(t&&this.activeState&&r.setItemState(t,this.activeState,!1),!t){var i=r.get("enabledStack")&&this.enableStack,o={before:{nodes:[],edges:[],combos:[].concat(this.get("beforeDragItems"))},after:{nodes:[],edges:[],combos:[]}};this.targets.map((function(t){if(n.onlyChangeComboSize){r.updateCombo(t);var e=t.getModel(),a=e.x,s=e.y,u=e.id;o.after.combos.push({x:a,y:s,id:u}),r.pushStack("update",o)}else r.updateComboTree(t,void 0,i)}))}this.point=[],this.origin=null,this.originPoint=null,this.targets.length=0}},traverse:function(t,e,n){var r=this;if(void 0===n&&(n={}),!1!==e(t,n)&&t){var i=t.get("combos");(0,x.each)(i,(function(t){r.traverse(t,e,n)}));var o=t.get("nodes");(0,x.each)(o,(function(t){r.traverse(t,e,n)}))}},updateCombo:function(t,e,n){this.updateSingleItem(t,e,n);var r={};this.traverse(t,(function(t,e){return!t.destroyed&&(t.getEdges().forEach((function(t){return e[t.getID()]=t})),!0)}),r),Object.values(r).forEach((function(t){return t.refresh()}))},updateSingleItem:function(t,e,n){var r=this.origin,i=this.graph,o=t.getModel(),a=t.get("id");this.point[a]||(this.point[a]={x:o.x,y:o.y});var s=e.x-r.x+this.point[a].x,u=e.y-r.y+this.point[a].y;n&&(s+=r.x-e.x,u+=r.y-e.y),i.updateItem(t,{x:s,y:u},!1)},getParentCombo:function(t){var e=this.graph;if(t){var n=e.findById(t);if(n)return n}},updateDelegate:function(t){var e=this.graph;if(this.delegateShape){var n=t.x-this.origin.x+this.originPoint.minX,r=t.y-this.origin.y+this.originPoint.minY;this.delegateShape.attr({x:n,y:r})}else{var i=e.get("delegateGroup"),o=null,a=(o=this.targets.length>1?Zy(this.targets):this.targets[0].getBBox()).x,s=o.y,u=o.width,l=o.height,c=o.minX,h=o.minY;this.originPoint={x:a,y:s,width:u,height:l,minX:c,minY:h};var d=(0,b.__assign)((0,b.__assign)({},Gd.delegateStyle),this.delegateStyle);this.delegateShape=i.addShape("rect",{attrs:(0,b.__assign)({width:o.width,height:o.height,x:o.x,y:o.y},d),name:"combo-delegate-shape"}),this.delegateShape.set("capture",!1),this.delegate=this.delegateShape}},updateParentCombos:function(){var t=this.graph,e=this.targets,n={};null==e||e.forEach((function(e){var r=e.getModel().parentId;r&&(n[r]=t.findById(r))})),Object.values(n).forEach((function(e){e&&t.updateCombo(e)}))}};var tb="dblclick",eb=["click","dblclick"];const nb={getDefaultCfg:function(){return{trigger:tb,relayout:!0}},getEvents:function(){var t,e;return eb.includes(this.trigger)?e=this.trigger:(e=tb,console.warn("Behavior collapse-expand-group 的 trigger 参数不合法,请输入 'click' 或 'dblclick'")),(t={})["combo:".concat(e)]="onComboClick",t},onComboClick:function(t){var e=t.item,n=this.graph,r=this.relayout;if(e&&!e.destroyed&&"combo"===e.getType()){var i=e.getModel().id;i&&(n.collapseExpandCombo(i),r&&n.get("layout")?n.layout():n.refreshPositions())}}};var rb=hf.isPolygonsIntersect,ib=hf.pathToPoints,ob="shift",ab=["drag","shift","ctrl","alt","control"];const sb={getDefaultCfg:function(){return{delegateStyle:{fill:"#EEF6FF",fillOpacity:.4,stroke:"#DDEEFE",lineWidth:1},onSelect:function(){},onDeselect:function(){},shouldDeselect:void 0,selectedState:"selected",trigger:ob,includeEdges:!0,selectedEdges:[],selectedNodes:[]}},getEvents:function(){return ab.indexOf(this.trigger.toLowerCase())>-1||(this.trigger=ob,console.warn("Behavior lasso-select 的 trigger 参数不合法,请输入 'drag'、'shift'、'ctrl' 或 'alt'")),"drag"===this.trigger?{dragstart:"onDragStart",drag:"onDragMove",dragend:"onDragEnd","canvas:click":"clearStates"}:{dragstart:"onDragStart",drag:"onDragMove",dragend:"onDragEnd",keyup:"onKeyUp",keydown:"onKeyDown","canvas:click":"clearStates"}},onDragStart:function(t){var e=this.lasso;t.item||("drag"===this.trigger||this.keydown)&&(this.selectedNodes&&0!==this.selectedNodes.length&&this.clearStates("dragstart"),e||(e=this.createLasso()),this.dragging=!0,this.originPoint={x:t.x,y:t.y},this.points.push(this.originPoint),e.show())},onDragMove:function(t){this.dragging&&("drag"===this.trigger||this.keydown)&&(this.points.push({x:t.x,y:t.y}),this.updateLasso(t))},onDragEnd:function(t){(this.lasso||this.dragging)&&("drag"===this.trigger||this.keydown)&&(this.points.push(this.originPoint),this.getSelectedItems(),this.lasso.remove(!0),this.lasso=null,this.points=[],this.dragging=!1)},getLassoPath:function(){var t=this.points,e=[];return t.length&&(t.forEach((function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e.push(["L",t[0].x,t[0].y])),e},clearStates:function(t){void 0===t&&(t="canvas:click");var e=this,n=e.graph,r=e.selectedState,i=e.shouldDeselect,o=n.findAllByState("node",r),a=n.findAllByState("edge",r);i&&!i({action:t,nodes:o,edges:a})||(o.forEach((function(t){return n.setItemState(t,r,!1)})),a.forEach((function(t){return n.setItemState(t,r,!1)}))),this.onDeselect&&this.onDeselect(this.selectedNodes,this.selectedEdges),this.selectedNodes=[],this.selectedEdges=[],n.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[]},select:!1})},getSelectedItems:function(){var t=this,e=this.graph,n=this.shouldUpdate,r=this.points.map((function(t){return[e.getCanvasByPoint(t.x,t.y).x,e.getCanvasByPoint(t.x,t.y).y]})),i=this.selectedState,o=[],a=[];e.getNodes().forEach((function(s){if(s.isVisible()&&function(t,e){var n,r=t.getKeyShape();if("path"===t.get("type"))n=ib(r.attr("path"));else{var i=r.getCanvasBBox();n=[[i.minX,i.minY],[i.maxX,i.minY],[i.maxX,i.maxY],[i.minX,i.maxY]]}return rb(e,n)}(s,r)&&n(s,"select",t)){o.push(s);var u=s.getModel();a.push(u.id),e.setItemState(s,i,!0)}}));var s=[];this.includeEdges&&o.forEach((function(r){r.getOutEdges().forEach((function(r){if(r.isVisible()){var i=r.getModel(),o=i.source,u=i.target;a.includes(o)&&a.includes(u)&&n(r,"select",t)&&(s.push(r),e.setItemState(r,t.selectedState,!0))}}))})),this.selectedEdges=s,this.selectedNodes=o,this.onSelect&&this.onSelect(o,s),e.emit("nodeselectchange",{selectedItems:{nodes:o,edges:s},select:!0})},createLasso:function(){var t=this.graph.get("delegateGroup").addShape("path",{attrs:(0,b.__assign)({path:[]},this.delegateStyle),capture:!1,name:"lasso-shape"});return this.lasso=t,this.delegate=t,this.points=[],t},updateLasso:function(t){this.lasso.attr({path:this.getLassoPath()})},onKeyDown:function(t){var e=t.key;e&&(e.toLowerCase()===this.trigger.toLowerCase()?this.keydown=!0:this.keydown=!1)},onKeyUp:function(){this.lasso&&(this.lasso.remove(!0),this.lasso=null,this.points=[],this.dragging=!1),this.keydown=!1}};var ub="click",lb=["click","drag"],cb=void 0,hb=["shift","ctrl","control","alt","meta",void 0];const db={getDefaultCfg:function(){return{trigger:ub,key:cb,edgeConfig:{},getEdgeConfig:void 0}},getEvents:function(){var t,e=this;return lb.indexOf(e.trigger.toLowerCase())>-1||(e.trigger=ub,console.warn("Behavior create-edge 的 trigger 参数不合法,请输入 'click','drag'")),e.key&&-1===hb.indexOf(e.key.toLowerCase())&&(e.trigger=cb,console.warn("Behavior create-edge 的 key 参数不合法,请输入 'shift','ctrl','alt','control',或 undefined")),"drag"===e.trigger?t={"node:dragstart":"onClick","combo:dragstart":"onClick",drag:"updateEndPoint","node:drop":"onClick","combo:drop":"onClick",dragend:"onDragEnd"}:"click"===e.trigger&&(t={"node:click":"onClick",mousemove:"updateEndPoint","edge:click":"cancelCreating","canvas:click":"cancelCreating","combo:click":"onClick"}),e.key&&(t.keydown="onKeyDown",t.keyup="onKeyUp"),t},onDragEnd:function(t){var e=this;if(!e.key||e.keydown){var n=t.item;n&&n.getID()!==e.source&&"node"===n.getType()||e.cancelCreating({item:e.edge,x:t.x,y:t.y})}},onClick:function(t){var e=this;if(!e.key||e.keydown){var n=t.item,r=e.graph,i=n.getModel(),o=e.getEdgeConfig;if(e.addingEdge&&e.edge){if(!e.shouldEnd(t,e))return;var a=void 0;a=o&&(0,x.isFunction)(o)?o({source:e.source,target:i.id},e):e.edgeConfig;var s=(0,b.__assign)({target:i.id},a);if(e.source===i.id&&(s.type="loop"),r.emit("beforecreateedge",{}),r.updateItem(e.edge,s,!1),r.get("enabledStack")){var u=(0,b.__assign)((0,b.__assign)({},e.edge.getModel()),{itemType:"edge"}),l={};l.edges=[u],r.pushStack("add",{before:{},after:l})}r.emit("aftercreateedge",{edge:e.edge}),e.edge.getKeyShape().set("capture",!0),e.edge=null,e.addingEdge=!1}else{if(!e.shouldBegin(t,e))return;a=void 0;a=o&&(0,x.isFunction)(o)?o({source:i.id,target:i.id},e):e.edgeConfig,e.edge=r.addItem("edge",(0,b.__assign)({source:i.id,target:i.id},a),!1),e.source=i.id,e.addingEdge=!0,e.edge.getKeyShape().set("capture",!1)}}},updateEndPoint:function(t){var e=this;if(!e.key||e.keydown){e.edge&&e.edge.destroyed&&e.cancelCreating({item:e.edge});var n={x:t.x,y:t.y};e.graph.findById(e.source)?e.addingEdge&&e.edge&&e.graph.updateItem(e.edge,{target:n},!1):e.addingEdge=!1}},cancelCreating:function(t){var e,n,r=this;if(!r.key||r.keydown){var i=r.graph,o=t.item;return r.addingEdge&&(r.edge===o||(null===(n=null===(e=t.target)||void 0===e?void 0:e.isCanvas)||void 0===n?void 0:n.call(e)))?(r.edge&&!r.edge.destroyed&&i.removeItem(r.edge,!1),r.edge=null,void(r.addingEdge=!1)):void 0}},onKeyDown:function(t){var e=this,n=t.key;n&&(n.toLowerCase()===e.key.toLowerCase()?e.keydown=!0:e.keydown=!1)},onKeyUp:function(){var t=this;t.addingEdge&&t.edge&&(t.graph.removeItem(t.edge,!1),t.addingEdge=!1,t.edge=null),this.keydown=!1}};var fb="ctrl",pb=["shift","ctrl","alt","control"];const mb={getDefaultCfg:function(){return{trigger:fb,combinedKey:"1",functionName:"fitView",functionParams:[]}},getEvents:function(){return pb.indexOf(this.trigger.toLowerCase())>-1||(this.trigger=fb,console.warn("Behavior shortcuts-fit-view 的 trigger 参数 '".concat(this.trigger,"' 不合法,请输入 'drag'、'shift'、'ctrl' 或 'alt'"))),this.combinedKey===this.trigger&&(this.combinedKey=void 0),{keyup:"onKeyUp",keydown:"onKeyDown"}},onKeyDown:function(t){var e=t.key;if(e){var n=this.trigger.toLowerCase(),r=e.toLowerCase();this.triggerKeydown||(this.triggerKeydown=r===n||"control"===r&&"ctrl"===n||"ctrl"===r&&"control"===n);var i=this.graph;if(!i[this.functionName])return console.warn("Behavior shortcuts-fit-view 的 functionName 参数 '".concat(this.functionName,"' 不合法,它不是 Graph 的一个函数名")),{};if(!this.triggerKeydown||this.combinedKey){var o=this.combinedKey.toLowerCase();this.triggerKeydown&&(r===o||"control"===r&&"ctrl"===o||"ctrl"===r&&"control"===o)&&(this.functionParams&&this.functionParams.length?i[this.functionName].apply(i,this.functionParams):i[this.functionName]())}else this.functionParams&&this.functionParams.length?i[this.functionName].apply(i,this.functionParams):i[this.functionName]()}},onKeyUp:function(){this.brush&&(this.brush.remove(!0),this.brush=null,this.dragging=!1),this.triggerKeydown=!1}};var gb=["shift","ctrl","alt","control","meta"];const vb={getDefaultCfg:function(){return{direction:"both",enableOptimize:!1,zoomKey:"ctrl",scalableRange:0,allowDragOnItem:!0}},getEvents:function(){return this.zoomKey&&-1!==gb.indexOf(this.zoomKey)||(this.zoomKey="ctrl"),{wheel:"onWheel"}},onWheel:function(t){var e=this;if(this.allowDrag(t)){var n=this.graph,r=Array.isArray(this.zoomKey)?[].concat(this.zoomKey):[this.zoomKey];if(r.includes("control")&&r.push("ctrl"),r.some((function(e){return t["".concat(e,"Key")]}))){var i=n.get("canvas").getPointByClient(t.clientX,t.clientY),o=n.getZoom();t.wheelDelta>0?o+=.05*o:o-=.05*o,n.zoomTo(o,{x:i.x,y:i.y})}else{var a=t.deltaX||t.movementX,s=t.deltaY||t.movementY;!s&&navigator.userAgent.indexOf("Firefox")>-1&&(s=125*-t.wheelDelta/3);var u=this.graph.get("width"),l=this.graph.get("height"),c=this.graph.get("canvas").getCanvasBBox(),h=this.scalableRange,d=this.scalableRange;h<1&&h>-1&&(h*=u,d*=l);var f=c.minX,p=c.maxX,m=c.minY,g=c.maxY;a>0?p<-h?a=0:p-a<-h&&(a=p+h):a<0&&(f>u+h?a=0:f-a>u+h&&(a=f-(u+h))),s>0?g<-d?s=0:g-s<-d&&(s=g+d):s<0&&(m>l+d?s=0:m-s>l+d&&(s=m-(l+d))),"x"===this.get("direction")?s=0:"y"===this.get("direction")&&(a=0),n.translate(-a,-s)}if(t.preventDefault(),this.get("enableOptimize")){var v=this.get("optimizeZoom"),y=this.get("optimized"),b=n.getNodes(),x=n.getEdges(),w=b.length,_=x.length;if(!y){for(var S=0;S{"use strict";n.r(e),n.d(e,{Graph:()=>w,GraphWithEvent:()=>T,algorithm:()=>r,comparision:()=>o,essence:()=>i,generate:()=>s});var r={};n.r(r),n.d(r,{components:()=>O,dfs:()=>R,dijkstra:()=>U,dijkstraAll:()=>j,findCycles:()=>H,floydWarshall:()=>it,isAcyclic:()=>tt,postorder:()=>et,preorder:()=>nt,prim:()=>P,tarjan:()=>V,topsort:()=>J});var i={};n.r(i),n.d(i,{hasSelfLoop:()=>bt,isGraph:()=>gt,isNullGraph:()=>yt,isSimpleGraph:()=>vt});var o={};n.r(o),n.d(o,{containAllSameEdges:()=>ht,containAllSameNodes:()=>ct,containSameEdges:()=>at,containSameNodes:()=>ot,getSameEdges:()=>ut,getSameNodes:()=>st,isGraphComplement:()=>xt,isGraphContainsAnother:()=>ft,isGraphOptionSame:()=>lt,isGraphSame:()=>dt});var a,s={};function u(t,e){var n=t.get(e)||0;t.set(e,n+1)}function l(t,e){var n=t.get(e);void 0!==n&&((n-=1)>0?t.set(e,n):t.delete(e))}function c(t,e,n,r){var i=String(e),o=String(n);if(!t&&i>o){var s=i;i=o,o=s}return i+a.EDGE_KEY_DELIM+o+a.EDGE_KEY_DELIM+(void 0===r?a.DEFAULT_EDGE_NAME:r)}function h(t,e,n,r){var i=String(e),o=String(n),a={v:e,w:n};if(!t&&i>o){var s=a.v;a.v=a.w,a.w=s}return void 0!==r&&(a.name=r),a}function d(t,e){return c(t,e.v,e.w,e.name)}function f(t){return"function"==typeof t}n.r(s),n.d(s,{getGraphComplement:()=>wt}),function(t){t.DEFAULT_EDGE_NAME="\0",t.GRAPH_NODE="\0",t.EDGE_KEY_DELIM=""}(a||(a={}));var p=function(t){return t.nodes().map((function(e){var n={id:e,value:t.node(e),parent:t.parent(e)};return void 0===n.value&&delete n.value,void 0===n.parent&&delete n.parent,n}))},m=function(t){return t.edges().map((function(e){var n=t.edge(e),r={v:e.v,w:e.w,value:n,name:e.name};return void 0===r.name&&delete r.name,void 0===r.value&&delete r.value,r}))};function g(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function v(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.directed=!0,this.multigraph=!1,this.compound=!1,this.GRAPH_NODE=a.GRAPH_NODE,this.label=void 0,this.nodeCountNum=0,this.edgeCountNum=0,this.defaultNodeLabelFn=function(){},this.defaultEdgeLabelFn=function(){},this.parentMap=void 0,this.childrenMap=void 0,this.nodesLabelMap=new Map,this.inEdgesMap=new Map,this.outEdgesMap=new Map,this.predecessorsMap=new Map,this.successorsMap=new Map,this.edgesMap=new Map,this.edgesLabelsMap=new Map,this.isDirected=function(){return e.directed},this.isMultigraph=function(){return e.multigraph},this.isCompound=function(){return e.compound},this.setGraph=function(t){return e.label=t,e},this.graph=function(){return e.label},this.setDefaultNodeLabel=function(t){return f(t)?e.defaultNodeLabelFn=t:e.defaultNodeLabelFn=function(){return t},e},this.nodeCount=function(){return e.nodeCountNum},this.node=function(t){return e.nodesLabelMap.get(t)},this.nodes=function(){return Array.from(e.nodesLabelMap.keys())},this.sources=function(){return e.nodes().filter((function(t){var n;return!(null===(n=e.inEdgesMap.get(t))||void 0===n?void 0:n.size)}))},this.sinks=function(){return e.nodes().filter((function(t){var n;return!(null===(n=e.outEdgesMap.get(t))||void 0===n?void 0:n.size)}))},this.setNodes=function(t,n){return t.map((function(t){return e.setNode(t,n)})),e},this.hasNode=function(t){return e.nodesLabelMap.has(t)},this.checkCompound=function(){if(!e.isCompound())throw new Error("Cannot construct parent-children relations in a non-compound graph")},this.parent=function(t){if(e.isCompound()){var n,r=null===(n=e.parentMap)||void 0===n?void 0:n.get(t);if(r!==e.GRAPH_NODE)return r}},this.removeFromParentsChildList=function(t){var n=e.parentMap.get(t);e.childrenMap.get(n).delete(t)},this.setParent=function(t,n){var r,i;e.checkCompound();for(var o=void 0===n?e.GRAPH_NODE:n,a=e.parent(o);a;){if(t===a)throw new Error("Setting "+n+" as parent of "+t+" would create a cycle");a=e.parent(a)}n&&e.setNode(n),e.setNode(t),e.removeFromParentsChildList(t),null===(r=e.parentMap)||void 0===r||r.set(t,o);var s=e.childrenMap.get(o);return s.set(t,!0),null===(i=e.childrenMap)||void 0===i||i.set(o,s),e},this.children=function(t){var n=void 0===t?e.GRAPH_NODE:t;if(e.isCompound()){var r,i=null===(r=e.childrenMap)||void 0===r?void 0:r.get(n);return i?Array.from(i.keys()):void 0}return n===e.GRAPH_NODE?e.nodes():t&&e.hasNode(t)?[]:void 0},this.predecessors=function(t){var n=e.predecessorsMap.get(t);return n?Array.from(n.keys()):void 0},this.successors=function(t){var n=e.successorsMap.get(t);return n?Array.from(n.keys()):void 0},this.neighbors=function(t){var n;if(e.hasNode(t))return Array.from(new Set(null===(n=e.predecessors(t))||void 0===n?void 0:n.concat(e.successors(t))))},this.isLeaf=function(t){var n,r;return e.isDirected()?!(null===(r=e.successors(t))||void 0===r?void 0:r.length):!(null===(n=e.neighbors(t))||void 0===n?void 0:n.length)},this.filterNodes=function(n){var r=e.directed,i=e.multigraph,o=e.compound,a=new t({directed:r,multigraph:i,compound:o});if(a.setGraph(e.graph()),e.nodes().forEach((function(t){n(t)&&a.setNode(t,e.node(t))})),e.edges().forEach((function(t){a.hasNode(t.v)&&a.hasNode(t.w)&&a.setEdgeObj(t,e.edge(t))})),o){a.nodes().forEach((function(t){a.setParent(t,function(t){for(var n=e.parent(t);void 0!==n&&!a.hasNode(n);)n=e.parent(n);return n}(t))}))}return a},this.setDefaultEdgeLabel=function(t){return f(t)?e.defaultEdgeLabelFn=t:e.defaultEdgeLabelFn=function(){return t},e},this.edgeCount=function(){return e.edgeCountNum},this.setEdgeObj=function(t,n){return e.setEdge(t.v,t.w,n,t.name)},this.setPath=function(t,n){return t.reduce((function(t,r){return e.setEdge(t,r,n),r})),e},this.edgeFromArgs=function(t,n,r){return e.edge({v:t,w:n,name:r})},this.edge=function(t){return e.edgesLabelsMap.get(d(e.isDirected(),t))},this.hasEdge=function(t,n,r){return e.edgesLabelsMap.has(d(e.isDirected(),{v:t,w:n,name:r}))},this.removeEdgeObj=function(t){var n=t.v,r=t.w,i=t.name;return e.removeEdge(n,r,i)},this.edges=function(){return Array.from(e.edgesMap.values())},this.inEdges=function(t,n){var r=e.inEdgesMap.get(t);if(r)return Array.from(r.values()).filter((function(t){return!n||t.v===n}))},this.outEdges=function(t,n){var r=e.outEdgesMap.get(t);if(r)return Array.from(r.values()).filter((function(t){return!n||t.w===n}))},this.nodeEdges=function(t,n){var r;if(e.hasNode(t))return null===(r=e.inEdges(t,n))||void 0===r?void 0:r.concat(e.outEdges(t,n))},this.toJSON=function(){return void 0===(n={options:{directed:(t=e).isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:p(t),edges:m(t),value:t.graph()}).value&&delete n.value,n;var t,n},this.nodeInDegree=function(t){var n=e.inEdgesMap.get(t);return n?n.size:0},this.nodeOutDegree=function(t){var n=e.outEdgesMap.get(t);return n?n.size:0},this.nodeDegree=function(t){return e.nodeInDegree(t)+e.nodeOutDegree(t)},this.source=function(t){return t.v},this.target=function(t){return t.w};var r=v(v({},x),n);this.compound=r.compound,this.directed=r.directed,this.multigraph=r.multigraph,this.compound&&(this.parentMap=new Map,this.childrenMap=new Map)}var e,n,r;return e=t,(n=[{key:"setNode",value:function(t,e){var n,r=this.nodesLabelMap,i=this.defaultNodeLabelFn,o=this.isCompound,a=this.parentMap,s=this.childrenMap,u=this.inEdgesMap,l=this.outEdgesMap,c=this.predecessorsMap,h=this.successorsMap;return r.has(t)?(void 0!==e&&r.set(t,e),this):(r.set(t,e||i(t)),o()&&(null==a||a.set(t,this.GRAPH_NODE),null==s||s.set(t,new Map),(null==s?void 0:s.has(this.GRAPH_NODE))||null==s||s.set(this.GRAPH_NODE,new Map),null==s||null===(n=s.get(this.GRAPH_NODE))||void 0===n||n.set(t,!0)),[u,l,c,h].forEach((function(e){return e.set(t,new Map)})),this.nodeCountNum+=1,this)}},{key:"removeNode",value:function(t){var e=this;if(this.hasNode(t)){var n,r,i,o=function(t){e.removeEdge(t.v,t.w,t.name)},a=this.inEdgesMap,s=this.outEdgesMap,u=this.predecessorsMap,l=this.successorsMap,c=this.nodesLabelMap;this.isCompound()&&(this.removeFromParentsChildList(t),null===(n=this.parentMap)||void 0===n||n.delete(t),null===(r=this.children(t))||void 0===r||r.forEach((function(t){return e.setParent(t)})),null===(i=this.childrenMap)||void 0===i||i.delete(t));var h=a.get(t),d=s.get(t);Array.from(h.values()).forEach((function(t){return o(t)})),Array.from(d.values()).forEach((function(t){return o(t)})),c.delete(t),a.delete(t),s.delete(t),u.delete(t),l.delete(t),this.nodeCountNum-=1}return this}},{key:"setEdge",value:function(t,e,n,r){var i,o,a=h(this.isDirected(),t,e,r),s=d(this.isDirected(),a),l=a.v,c=a.w;if(this.edgesLabelsMap.has(s))return this.edgesLabelsMap.set(s,n),this;if(void 0!==r&&!this.isMultigraph())throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(l),this.setNode(c),this.edgesLabelsMap.set(s,n||this.defaultEdgeLabelFn(l,c,r)),Object.freeze(a),this.edgesMap.set(s,a);var f=this.predecessorsMap.get(c),p=this.successorsMap.get(l);return u(f,l),u(p,c),null===(i=this.inEdgesMap.get(c))||void 0===i||i.set(s,a),null===(o=this.outEdgesMap.get(l))||void 0===o||o.set(s,a),this.edgeCountNum+=1,this}},{key:"removeEdge",value:function(t,e,n){var r=c(this.isDirected(),t,e,n);if(this.edgesMap.get(r)){var i=h(this.isDirected(),t,e,n),o=i.v,a=i.w;this.edgesLabelsMap.delete(r),this.edgesMap.delete(r);var s=this.predecessorsMap.get(a),u=this.successorsMap.get(o);l(s,o),l(u,a),this.inEdgesMap.get(a).delete(r),this.outEdgesMap.get(o).delete(r),this.edgeCountNum-=1}return this}}])&&b(e.prototype,n),r&&b(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function _(t){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_(t)}function S(t,e){for(var n=0;n-1&&this.eventPool[t].splice(n,1)}}},{key:"emitEvent",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r>1])||void 0===a?void 0:a.priority)e.arr[r].priority)throw new Error("New priority is greater than current priority.Key: ".concat(t," Old: + ").concat(e.arr[r].priority," New: ").concat(n));e.arr[r].priority=n,e.innerDecrease(r)}}));const P=function(t,e){var n,r=new w,i=new Map,o=new N;function a(t){var r=t.v===n?t.w:t.v,a=o.priority(r);if(void 0!==a){var s=e(t);s0;){var u;if(n=o.removeMin(),i.has(n))r.setEdge(n,i.get(n));else{if(s)throw new Error("Input graph is not connected: "+t.graph());s=!0}null===(u=t.nodeEdges(n))||void 0===u||u.forEach(a)}return r};const O=function(t){var e=new Set,n=[];return t.nodes().forEach((function(r){for(var i=[],o=[r];o.length>0;){var a,s,u=o.pop();if(!e.has(u))e.add(u),i.push(u),null===(a=t.successors(u))||void 0===a||a.forEach((function(t){return o.push(t)})),null===(s=t.predecessors(u))||void 0===s||s.forEach((function(t){return o.push(t)}))}i.length&&n.push(i)})),n};var L=function t(e,n,r,i,o,a){i.includes(n)||(i.push(n),r||a.push(n),o(n).forEach((function(n){return t(e,n,r,i,o,a)})),r&&a.push(n))};const R=function(t,e,n){var r=Array.isArray(e)?e:[e],i=function(e){return t.isDirected()?t.successors(e):t.neighbors(e)},o=[],a=[];return r.forEach((function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);L(t,e,"post"===n,a,i,o)})),o};function D(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return z(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return z(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&(i=s.removeMin(),!(o=a.get(i))||o.distance!==Number.POSITIVE_INFINITY);)r(i).forEach(u);var l={};return Array.from(a.entries()).forEach((function(t){var e=D(t,2),n=e[0],r=e[1];return l[String(n)]=r,l})),l};const U=function(t,e,n,r){return B(t,e,n||F,r||function(e){return t.outEdges(e)})};const j=function(t,e,n){var r={};return t.nodes().forEach((function(i){return r[String(i)]=U(t,i,e,n),r})),r};const V=function(t){var e=0,n=[],r=new Map,i=[];function o(a){var s,u={onStack:!0,lowlink:e,index:e};if(r.set(a,u),e+=1,n.push(a),null===(s=t.successors(a))||void 0===s||s.forEach((function(t){var e;if(r.has(t)){if(null===(e=r.get(t))||void 0===e?void 0:e.onStack){var n=r.get(t);u.lowlink=Math.min(u.lowlink,n.index)}}else{o(t);var i=r.get(t);u.lowlink=Math.min(u.lowlink,i.lowlink)}})),u.lowlink===u.index){var l,c=[];do{l=n.pop(),r.get(l).onStack=!1,c.push(l)}while(a!==l);i.push(c)}}return t.nodes().forEach((function(t){r.has(t)||o(t)})),i};const H=function(t){return V(t).filter((function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])}))};function G(t){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},G(t)}function W(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n-1}},function(t,e,n){"use strict";e.a=function(t){return"object"==typeof t&&null!==t}},function(t,e,n){"use strict";var r=n(8),i=n(2),o=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return Object(r.a)(t,(function(n,r){Object(i.a)(t)&&"prototype"===r||e.push(n)})),e};e.a=o},function(t,e,n){"use strict";function r(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}e.a=function(t,e,n,i){return e&&r(t,e),n&&r(t,n),i&&r(t,i),t}},function(t,e,n){var r=n(35),i=["LR","RL","TB","BT","H","V"],o=["LR","RL","H"],a=i[0];t.exports=function(t,e,n){var s=e.direction||a;if(e.isHorizontal=function(t){return o.indexOf(t)>-1}(s),s&&-1===i.indexOf(s))throw new TypeError("Invalid direction: "+s);if(s===i[0])n(t,e);else if(s===i[1])n(t,e),t.right2left();else if(s===i[2])n(t,e);else if(s===i[3])n(t,e),t.bottom2top();else if(s===i[4]||s===i[5]){var u=r(t,e),l=u.left,c=u.right;n(l,e),n(c,e),e.isHorizontal?l.right2left():l.bottom2top(),c.translate(l.x-c.x,l.y-c.y),t.x=l.x,t.y=c.y;var h=t.getBoundingBox();e.isHorizontal?h.top<0&&t.translate(0,-h.top):h.left<0&&t.translate(-h.left,0)}var d=e.fixedRoot;return void 0===d&&(d=!0),d&&t.translate(-(t.x+t.width/2+t.hgap),-(t.y+t.height/2+t.vgap)),t}},function(t,e,n){var r=n(6),i={getId:function(t){return t.id||t.name},getPreH:function(t){return t.preH||0},getPreV:function(t){return t.preV||0},getHGap:function(t){return t.hgap||18},getVGap:function(t){return t.vgap||18},getChildren:function(t){return t.children},getHeight:function(t){return t.height||36},getWidth:function(t){var e=t.label||" ";return t.width||18*e.split("").length}};function o(t,e){var n=this;if(n.vgap=n.hgap=0,t instanceof o)return t;n.data=t;var r=e.getHGap(t),i=e.getVGap(t);return n.preH=e.getPreH(t),n.preV=e.getPreV(t),n.width=e.getWidth(t),n.height=e.getHeight(t),n.width+=n.preH,n.height+=n.preV,n.id=e.getId(t),n.x=n.y=0,n.depth=0,n.children||(n.children=[]),n.addGap(r,i),n}r.assign(o.prototype,{isRoot:function(){return 0===this.depth},isLeaf:function(){return 0===this.children.length},addGap:function(t,e){var n=this;n.hgap+=t,n.vgap+=e,n.width+=2*t,n.height+=2*e},eachNode:function(t){for(var e,n=[this];e=n.shift();)t(e),n=e.children.concat(n)},DFTraverse:function(t){this.eachNode(t)},BFTraverse:function(t){for(var e,n=[this];e=n.shift();)t(e),n=n.concat(e.children)},getBoundingBox:function(){var t={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode((function(e){t.left=Math.min(t.left,e.x),t.top=Math.min(t.top,e.y),t.width=Math.max(t.width,e.x+e.width),t.height=Math.max(t.height,e.y+e.height)})),t},translate:function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.eachNode((function(n){n.x+=t,n.y+=e,n.x+=n.preH,n.y+=n.preV}))},right2left:function(){var t=this,e=t.getBoundingBox();t.eachNode((function(t){t.x=t.x-2*(t.x-e.left)-t.width})),t.translate(e.width,0)},bottom2top:function(){var t=this,e=t.getBoundingBox();t.eachNode((function(t){t.y=t.y-2*(t.y-e.top)-t.height})),t.translate(0,e.height)}}),t.exports=function(t,e,n){void 0===e&&(e={});var a,s=new o(t,e=r.assign({},i,e)),u=[s];if(!n&&!t.collapsed)for(;a=u.shift();)if(!a.data.collapsed){var l=e.getChildren(a.data),c=l?l.length:0;if(a.children=new Array(c),l&&c)for(var h=0;h-1;)i.call(t,s,1);return t}},function(t,e,n){"use strict";var r=n(1),i=n(24);e.a=function(t,e){var n=[];if(!Object(r.a)(t))return n;for(var o=-1,a=[],s=t.length;++oe[r])return 1;if(t[r]n?n:t}},function(t,e,n){"use strict";e.a=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))}},function(t,e,n){"use strict";var r=n(5);e.a=function(t){return Object(r.a)(t)&&t%1!=0}},function(t,e,n){"use strict";var r=n(5);e.a=function(t){return Object(r.a)(t)&&t%2==0}},function(t,e,n){"use strict";var r=n(5),i=Number.isInteger?Number.isInteger:function(t){return Object(r.a)(t)&&t%1==0};e.a=i},function(t,e,n){"use strict";var r=n(5);e.a=function(t){return Object(r.a)(t)&&t<0}},function(t,e,n){"use strict";e.a=function(t,e,n){return void 0===n&&(n=r),Math.abs(t-e)0}},function(t,e,n){"use strict";var r=n(0),i=n(2);e.a=function(t,e){if(Object(r.a)(t)){for(var n,o=-1/0,a=0;ao&&(n=s,o=u)}return n}}},function(t,e,n){"use strict";var r=n(0),i=n(2);e.a=function(t,e){if(Object(r.a)(t)){for(var n,o=1/0,a=0;ae?(r&&(clearTimeout(r),r=null),s=l,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(u,c)),a};return l.cancel=function(){clearTimeout(r),s=0,r=i=o=null},l}},function(t,e,n){"use strict";var r=n(1);e.a=function(t){return Object(r.a)(t)?Array.prototype.slice.call(t):[]}},function(t,e,n){"use strict";var r={};e.a=function(t){return r[t=t||"g"]?r[t]+=1:r[t]=1,t+r[t]}},function(t,e,n){"use strict";e.a=function(){}},function(t,e,n){"use strict";e.a=function(t){return t}},function(t,e,n){"use strict";e.a=function(t){return Object(r.a)(t)?0:Object(i.a)(t)?t.length:Object.keys(t).length};var r=n(7),i=n(1)},function(t,e,n){"use strict";e.a=function(){for(var t=0,e=0,n=arguments.length;eh&&u>h);)if(d.push(s),h-=u,!(c=c.substr(16)))return d.join("");for(;s=c.substr(0,1),!((u=Object(o.a)(s,n))+l>h);)if(d.push(s),h-=u,!(c=c.substr(1)))return d.join("");return""+d.join("")+a}},function(t,e,n){"use strict";var r=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}();e.a=r},function(t,e){function n(t,e,n,r){void 0===r&&(r=[]);var i=this;i.w=t||0,i.h=e||0,i.y=n||0,i.x=0,i.c=r||[],i.cs=r.length,i.prelim=0,i.mod=0,i.shift=0,i.change=0,i.tl=null,i.tr=null,i.el=null,i.er=null,i.msel=0,i.mser=0}function r(t,e,n){n?t.y+=e:t.x+=e,t.children.forEach((function(t){r(t,e,n)}))}function i(t,e){var n=e?t.y:t.x;return t.children.forEach((function(t){n=Math.min(i(t,e),n)})),n}function o(t,e){r(t,-i(t,e),e)}function a(t,e,n){n?e.y=t.x:e.x=t.x,t.c.forEach((function(t,r){a(t,e.children[r],n)}))}function s(t,e,n){void 0===n&&(n=0),e?(t.x=n,n+=t.width):(t.y=n,n+=t.height),t.children.forEach((function(t){s(t,e,n)}))}n.fromNode=function(t,e){if(!t)return null;var r=[];return t.children.forEach((function(t){r.push(n.fromNode(t,e))})),e?new n(t.height,t.width,t.x,r):new n(t.width,t.height,t.y,r)},t.exports=function(t,e){void 0===e&&(e={});var r=e.isHorizontal;function i(t){0===t.cs?(t.el=t,t.er=t,t.msel=t.mser=0):(t.el=t.c[0].el,t.msel=t.c[0].msel,t.er=t.c[t.cs-1].er,t.mser=t.c[t.cs-1].mser)}function u(t,e,n){for(var r=t.c[e-1],i=r.mod,o=t.c[e],a=o.mod;null!==r&&null!==o;){d(r)>n.low&&(n=n.nxt);var s=i+r.prelim+r.w-(a+o.prelim);s>0&&(a+=s,l(t,e,n.index,s));var u=d(r),f=d(o);u<=f&&null!==(r=h(r))&&(i+=r.mod),u>=f&&null!==(o=c(o))&&(a+=o.mod)}!r&&o?function(t,e,n,r){var i=t.c[0].el;i.tl=n;var o=r-n.mod-t.c[0].msel;i.mod+=o,i.prelim-=o,t.c[0].el=t.c[e].el,t.c[0].msel=t.c[e].msel}(t,e,o,a):r&&!o&&function(t,e,n,r){var i=t.c[e].er;i.tr=n;var o=r-n.mod-t.c[e].mser;i.mod+=o,i.prelim-=o,t.c[e].er=t.c[e-1].er,t.c[e].mser=t.c[e-1].mser}(t,e,r,i)}function l(t,e,n,r){t.c[e].mod+=r,t.c[e].msel+=r,t.c[e].mser+=r,function(t,e,n,r){if(n!==e-1){var i=e-n;t.c[n+1].shift+=r/i,t.c[e].shift-=r/i,t.c[e].change-=r-r/i}}(t,e,n,r)}function c(t){return 0===t.cs?t.tl:t.c[0]}function h(t){return 0===t.cs?t.tr:t.c[t.cs-1]}function d(t){return t.y+t.h}function f(t,e,n){for(;null!==n&&t>=n.low;)n=n.nxt;return{low:t,index:e,nxt:n}}s(t,r);var p=n.fromNode(t,r);return function t(e){if(0!==e.cs){t(e.c[0]);for(var n=f(d(e.c[0].el),0,null),r=1;rs&&(s=e.depth);var n=e.children,r=n.length,o=new i(e.height,[]);return n.forEach((function(e,n){var i=t(e);o.children.push(i),0===n&&(o.leftChild=i),n===r-1&&(o.rightChild=i)})),o.originNode=e,o.isLeaf=e.isLeaf(),o}(t);return function t(e){if(e.isLeaf||0===e.children.length)e.drawingDepth=s;else{var n=e.children.map((function(e){return t(e)})),r=Math.min.apply(null,n);e.drawingDepth=r-1}return e.drawingDepth}(u),function t(r){r.x=r.drawingDepth*e.rankSep,r.isLeaf?(r.y=0,n&&(r.y=n.y+n.height+e.nodeSep,r.originNode.parent!==n.originNode.parent&&(r.y+=e.subTreeSep)),n=r):(r.children.forEach((function(e){t(e)})),r.y=(r.leftChild.y+r.rightChild.y)/2)}(u),a(u,t,e.isHorizontal),t}},function(t,e,n){function r(t,e){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},r(t,e)}var i=n(11),o=n(123),a=n(35),s=n(6),u=["LR","RL","H"],l=u[0],c=function(t){var e,n;function i(){return t.apply(this,arguments)||this}return n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,r(e,n),i.prototype.execute=function(){var t=this.options,e=this.rootNode;t.isHorizontal=!0;var n=t.indent,r=void 0===n?20:n,i=t.dropCap,s=void 0===i||i,c=t.direction,h=void 0===c?l:c,d=t.align;if(h&&-1===u.indexOf(h))throw new TypeError("Invalid direction: "+h);if(h===u[0])o(e,r,s,d);else if(h===u[1])o(e,r,s,d),e.right2left();else if(h===u[2]){var f=a(e,t),p=f.left,m=f.right;o(p,r,s,d),p.right2left(),o(m,r,s,d);var g=p.getBoundingBox();m.translate(g.width,0),e.x=m.x-e.width/2}return e},i}(i),h={};t.exports=function(t,e){return e=s.assign({},h,e),new c(t,e).execute()}},function(t,e,n){var r=n(6);t.exports=function(t,e,n,i){var o=null;t.eachNode((function(t){!function(t,e,n,i,o){var a="function"==typeof n?n(t):n*t.depth;if(!i)try{if(t.id===t.parent.children[0].id)return t.x+=a,void(t.y=e?e.y:0)}catch(t){}if(t.x+=a,e){if(t.y=e.y+r.getHeight(e,t,o),e.parent&&t.parent.id!==e.parent.id){var s=e.parent,u=s.y+r.getHeight(s,t,o);t.y=u>t.y?u:t.y}}else t.y=0}(t,o,e,n,i),o=t}))}},function(t,e,n){function r(t,e){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},r(t,e)}var i=n(11),o=n(125),a=n(17),s=n(6),u=function(t){var e,n;function i(){return t.apply(this,arguments)||this}return n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,r(e,n),i.prototype.execute=function(){return a(this.rootNode,this.options,o)},i}(i),l={};t.exports=function(t,e){return e=s.assign({},l,e),new u(t,e).execute()}},function(t,e,n){var r=n(6);function i(t,e){var n=0;return t.children.length?t.children.forEach((function(t){n+=i(t,e)})):n=t.height,t._subTreeSep=e.getSubTreeSep(t.data),t.totalHeight=Math.max(t.height,n)+2*t._subTreeSep,t.totalHeight}function o(t){var e=t.children,n=e.length;if(n){e.forEach((function(t){o(t)}));var r=e[0],i=e[n-1],a=i.y-r.y+i.height,s=0;if(e.forEach((function(t){s+=t.totalHeight})),a>t.height)t.y=r.y+a/2-t.height/2;else if(1!==e.length||t.height>s){var u=t.y+(t.height-a)/2-r.y;e.forEach((function(t){t.translate(0,u)}))}else t.y=(r.y+r.height/2+i.y+i.height/2)/2-t.height/2}}var a={getSubTreeSep:function(){return 0}};t.exports=function(t,e){void 0===e&&(e={}),e=r.assign({},a,e),t.parent={x:0,width:0,height:0,y:0},t.BFTraverse((function(t){t.x=t.parent.x+t.parent.width})),t.parent=null,i(t,e),t.startY=0,t.y=t.totalHeight/2-t.height/2,t.eachNode((function(t){var e=t.children,n=e.length;if(n){var r=e[0];if(r.startY=t.startY+t._subTreeSep,1===n)r.y=t.y+t.height/2-r.height/2;else{r.y=r.startY+r.totalHeight/2-r.height/2;for(var i=1;i{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Base=void 0;var n=function(){function t(){this.nodes=[],this.edges=[],this.combos=[],this.comboEdges=[],this.hiddenNodes=[],this.hiddenEdges=[],this.hiddenCombos=[],this.vedges=[],this.positions=[],this.destroyed=!1,this.onLayoutEnd=function(){}}return t.prototype.layout=function(t){return this.init(t),this.execute(!0)},t.prototype.init=function(t){this.nodes=t.nodes||[],this.edges=t.edges||[],this.combos=t.combos||[],this.comboEdges=t.comboEdges||[],this.hiddenNodes=t.hiddenNodes||[],this.hiddenEdges=t.hiddenEdges||[],this.hiddenCombos=t.hiddenCombos||[],this.vedges=t.vedges||[]},t.prototype.execute=function(t){},t.prototype.executeWithWorker=function(){},t.prototype.getDefaultCfg=function(){return{}},t.prototype.updateCfg=function(t){t&&Object.assign(this,t)},t.prototype.getType=function(){return"base"},t.prototype.destroy=function(){this.nodes=null,this.edges=null,this.combos=null,this.positions=null,this.destroyed=!0},t}();e.Base=n},33455:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.CircularLayout=void 0;var o=n(46271),a=n(81422);function s(t,e){var n=t.degree,r=e.degree;return nr?1:0}var u=function(t){function e(e){var n=t.call(this)||this;return n.radius=null,n.nodeSize=void 0,n.startRadius=null,n.endRadius=null,n.startAngle=0,n.endAngle=2*Math.PI,n.clockwise=!0,n.divisions=1,n.ordering=null,n.angleRatio=1,n.nodes=[],n.edges=[],n.nodeMap={},n.degrees=[],n.width=300,n.height=300,n.updateCfg(e),n}return i(e,t),e.prototype.getDefaultCfg=function(){return{radius:null,startRadius:null,endRadius:null,startAngle:0,endAngle:2*Math.PI,clockwise:!0,divisions:1,ordering:null,angleRatio:1}},e.prototype.execute=function(){var t,e=this,n=e.nodes,r=e.edges,i=n.length;if(0!==i){e.width||"undefined"==typeof window||(e.width=window.innerWidth),e.height||"undefined"==typeof window||(e.height=window.innerHeight),e.center||(e.center=[e.width/2,e.height/2]);var o=e.center;if(1===i)return n[0].x=o[0],n[0].y=o[1],void(e.onLayoutEnd&&e.onLayoutEnd());var s=e.radius,u=e.startRadius,l=e.endRadius,c=e.divisions,h=e.startAngle,d=e.endAngle,f=e.angleRatio,p=e.ordering,m=e.clockwise,g=e.nodeSpacing,v=e.nodeSize,y=(d-h)/i,b={};n.forEach((function(t,e){b[t.id]=e})),e.nodeMap=b;var x=(0,a.getDegree)(n.length,b,r);if(e.degrees=x,g){var w=(0,a.getFuncByUnknownType)(10,g),_=(0,a.getFuncByUnknownType)(10,v),S=-1/0;n.forEach((function(t){var e=_(t);Se.width?e.width/2:e.height/2;var A=y*f,M=[];M="topology"===p?e.topologyOrdering():"topology-directed"===p?e.topologyOrdering(!0):"degree"===p?e.degreeOrdering():n;for(var C=Math.ceil(i/c),T=0;T=0;E--)S(E);return{nodes:n,edges:r,combos:i,comboEdges:s}},e.prototype.getInnerGraphs=function(t){var e=this,n=e.comboTrees,r=e.nodeSize,i=e.edges,a=e.comboPadding,s=e.spacing,c={},h=this.innerLayout||new l.ConcentricLayout({type:"concentric",sortBy:"id"});return h.center=[0,0],h.preventOverlap=!0,h.nodeSpacing=s,(n||[]).forEach((function(e){(0,u.traverseTreeUp)(e,(function(e){var n,s=(null==a?void 0:a(e))||10;if((0,u.isArray)(s)&&(s=Math.max.apply(Math,s)),null===(n=e.children)||void 0===n?void 0:n.length){var l=e.children.map((function(e){if("combo"===e.itemType)return c[e.id];var n=t[e.id]||{};return o(o({},n),e)})),d=l.map((function(t){return t.id})),f={nodes:l,edges:i.filter((function(t){return d.includes(t.source)&&d.includes(t.target)}))},p=1/0;l.forEach((function(t){var e;t.size||(t.size=(null===(e=c[t.id])||void 0===e?void 0:e.size)||(null==r?void 0:r(t))||[30,30]),(0,u.isNumber)(t.size)&&(t.size=[t.size,t.size]),p>t.size[0]&&(p=t.size[0]),p>t.size[1]&&(p=t.size[1])})),h.layout(f);var m=(0,u.getLayoutBBox)(l),g=m.minX,v=m.minY,y=m.maxX,b=m.maxY,x={x:(y+g)/2,y:(b+v)/2};f.nodes.forEach((function(t){t.x-=x.x,t.y-=x.y}));var w=Math.max(y-g,p)+2*s,_=Math.max(b-v,p)+2*s;c[e.id]={id:e.id,nodes:l,size:[w,_]}}else if("combo"===e.itemType){var S=s?[2*s,2*s]:[30,30];c[e.id]={id:e.id,nodes:[],size:S}}return!0}))})),c},e.prototype.initVals=function(){var t,e,n=this,r=n.nodeSize,i=n.spacing;if(e=(0,u.isNumber)(i)?function(){return i}:(0,u.isFunction)(i)?i:function(){return 0},this.spacing=e,r)if((0,u.isFunction)(r))t=function(t){var n=r(t),i=e(t);return(0,u.isArray)(t.size)?((t.size[0]>t.size[1]?t.size[0]:t.size[1])+i)/2:((n||10)+i)/2};else if((0,u.isArray)(r)){var o=(r[0]>r[1]?r[0]:r[1])/2;t=function(t){return o+e(t)/2}}else{var a=r/2;t=function(t){return a+e(t)/2}}else t=function(t){var n=e(t);return t.size?(0,u.isArray)(t.size)?((t.size[0]>t.size[1]?t.size[0]:t.size[1])+n)/2:(0,u.isObject)(t.size)?((t.size.width>t.size.height?t.size.width:t.size.height)+n)/2:(t.size+n)/2:10+n/2};this.nodeSize=t;var s,l=n.comboPadding;s=(0,u.isNumber)(l)?function(){return l}:(0,u.isArray)(l)?function(){return Math.max.apply(null,l)}:(0,u.isFunction)(l)?l:function(){return 0},this.comboPadding=s},e.prototype.getType=function(){return"comboCombined"},e}(s.Base);e.ComboCombinedLayout=c},42335:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.ComboForceLayout=void 0;var o=n(46271),a=n(81422),s=function(t){function e(e){var n=t.call(this)||this;return n.center=[0,0],n.maxIteration=100,n.gravity=10,n.comboGravity=10,n.linkDistance=10,n.alpha=1,n.alphaMin=.001,n.alphaDecay=1-Math.pow(n.alphaMin,1/300),n.alphaTarget=0,n.velocityDecay=.6,n.edgeStrength=.6,n.nodeStrength=30,n.preventOverlap=!1,n.preventNodeOverlap=!1,n.preventComboOverlap=!1,n.collideStrength=void 0,n.nodeCollideStrength=.5,n.comboCollideStrength=.5,n.comboSpacing=20,n.comboPadding=10,n.optimizeRangeFactor=1,n.onTick=function(){},n.onLayoutEnd=function(){},n.depthAttractiveForceScale=1,n.depthRepulsiveForceScale=2,n.nodes=[],n.edges=[],n.combos=[],n.comboTrees=[],n.width=300,n.height=300,n.bias=[],n.nodeMap={},n.oriComboMap={},n.indexMap={},n.comboMap={},n.previousLayouted=!1,n.updateCfg(e),n}return i(e,t),e.prototype.getDefaultCfg=function(){return{maxIteration:100,center:[0,0],gravity:10,speed:1,comboGravity:30,preventOverlap:!1,preventComboOverlap:!0,preventNodeOverlap:!0,nodeSpacing:void 0,collideStrength:void 0,nodeCollideStrength:.5,comboCollideStrength:.5,comboSpacing:20,comboPadding:10,edgeStrength:.6,nodeStrength:30,linkDistance:10}},e.prototype.execute=function(){var t=this,e=t.nodes,n=t.center;if(t.comboTree={id:"comboTreeRoot",depth:-1,children:t.comboTrees},e&&0!==e.length){if(1===e.length)return e[0].x=n[0],e[0].y=n[1],void(t.onLayoutEnd&&t.onLayoutEnd());t.initVals(),t.run(),t.onLayoutEnd&&t.onLayoutEnd()}else t.onLayoutEnd&&t.onLayoutEnd()},e.prototype.run=function(){var t=this,e=t.nodes,n=t.previousLayouted?t.maxIteration/5:t.maxIteration;t.width||"undefined"==typeof window||(t.width=window.innerWidth),t.height||"undefined"==typeof window||(t.height=window.innerHeight);var r=t.center,i=t.velocityDecay,o=t.comboMap;t.previousLayouted||t.initPos(o);for(var s=function(n){var r=[];e.forEach((function(t,e){r[e]={x:0,y:0}})),t.applyCalculate(r),t.applyComboCenterForce(r),e.forEach((function(t,e){(0,a.isNumber)(t.x)&&(0,a.isNumber)(t.y)&&(t.x+=r[e].x*i,t.y+=r[e].y*i)})),t.alpha+=(t.alphaTarget-t.alpha)*t.alphaDecay,t.onTick()},u=0;uv[1]?v[0]:v[1])/2;m=function(t){return b}}else{var x=v/2;m=function(t){return x}}else m=function(t){return t.size?(0,a.isArray)(t.size)?(t.size[0]>t.size[1]?t.size[0]:t.size[1])/2:(0,a.isObject)(t.size)?(t.size.width>t.size.height?t.size.width:t.size.height)/2:t.size/2:10};this.nodeSize=m;var w,_=t.comboSpacing;w=(0,a.isNumber)(_)?function(){return _}:(0,a.isFunction)(_)?_:function(){return 0},this.comboSpacing=w;var S,E=t.comboPadding;S=(0,a.isNumber)(E)?function(){return E}:(0,a.isArray)(E)?function(){return Math.max.apply(null,E)}:(0,a.isFunction)(E)?E:function(){return 0},this.comboPadding=S;var A,M=this.linkDistance;M||(M=10),A=(0,a.isNumber)(M)?function(t){return M}:M,this.linkDistance=A;var C,T=this.edgeStrength;T||(T=1),C=(0,a.isNumber)(T)?function(t){return T}:T,this.edgeStrength=C;var k,I=this.nodeStrength;I||(I=30),k=(0,a.isNumber)(I)?function(t){return I}:I,this.nodeStrength=k},e.prototype.initPos=function(t){this.nodes.forEach((function(e,n){var r=e.comboId,i=t[r];r&&i?(e.x=i.cx+100/(n+1),e.y=i.cy+100/(n+1)):(e.x=100/(n+1),e.y=100/(n+1))}))},e.prototype.getComboMap=function(){var t=this,e=t.nodeMap,n=t.comboTrees,r=t.oriComboMap,i={};return(n||[]).forEach((function(n){var o=[];(0,a.traverseTreeUp)(n,(function(n){if("node"===n.itemType)return!0;if(!r[n.id])return!0;if(void 0===i[n.id]){var s={id:n.id,name:n.id,cx:0,cy:0,count:0,depth:t.oriComboMap[n.id].depth||0,children:[]};i[n.id]=s}var u=n.children;u&&u.forEach((function(t){if(!i[t.id]&&!e[t.id])return!0;o.push(t)}));var l=i[n.id];if(l.cx=0,l.cy=0,0===o.length){l.empty=!0;var c=r[n.id];l.cx=c.x,l.cy=c.y}return o.forEach((function(t){if(l.count++,"node"!==t.itemType){var n=i[t.id];return(0,a.isNumber)(n.cx)&&(l.cx+=n.cx),void((0,a.isNumber)(n.cy)&&(l.cy+=n.cy))}var r=e[t.id];r&&((0,a.isNumber)(r.x)&&(l.cx+=r.x),(0,a.isNumber)(r.y)&&(l.cy+=r.y))})),l.cx/=l.count||1,l.cy/=l.count||1,l.children=o,!0}))})),i},e.prototype.applyComboCenterForce=function(t){var e=this,n=e.gravity,r=e.comboGravity||n,i=this.alpha,o=e.comboTrees,s=e.indexMap,u=e.nodeMap,l=e.comboMap;(o||[]).forEach((function(e){(0,a.traverseTreeUp)(e,(function(e){if("node"===e.itemType)return!0;if(!l[e.id])return!0;var n=l[e.id],o=(n.depth+1)/10*.5,c=n.cx,h=n.cy;return n.cx=0,n.cy=0,n.children.forEach((function(e){if("node"!==e.itemType){var d=l[e.id];return d&&(0,a.isNumber)(d.cx)&&(n.cx+=d.cx),void(d&&(0,a.isNumber)(d.cy)&&(n.cy+=d.cy))}var f=u[e.id],p=f.x-c||.005,m=f.y-h||.005,g=Math.sqrt(p*p+m*m),v=s[f.id],y=r*i/g*o;t[v].x-=p*y,t[v].y-=m*y,(0,a.isNumber)(f.x)&&(n.cx+=f.x),(0,a.isNumber)(f.y)&&(n.cy+=f.y)})),n.cx/=n.count||1,n.cy/=n.count||1,!0}))}))},e.prototype.applyCalculate=function(t){var e=this,n=e.comboMap,r=e.nodes,i={};r.forEach((function(t,e){r.forEach((function(n,r){if(!(eo&&(l.minX=o),l.minY>a&&(l.minY=a),l.maxX1&&r.forEach((function(n,a){if("node"===n.itemType)return!1;var u=e[n.id];u&&r.forEach((function(r,l){if(a<=l)return!1;if("node"===r.itemType)return!1;var c=e[r.id];if(!c)return!1;var h=u.cx-c.cx||.005,d=u.cy-c.cy||.005,f=h*h+d*d,p=u.r||1,m=c.r||1,g=p+m,v=m*m,y=p*p;if(fi)){var v=e["".concat(f.id,"-").concat(n.id)],y=v.vx,b=v.vy,x=Math.log(Math.abs(n.depth-f.depth)/10)+1||1;x=x<1?1:x,n.comboId!==f.comboId&&(x+=1);var w=x?Math.pow(h,x):1,_=o(n)*a/m*w;if(t[p].x+=y*_,t[p].y+=b*_,p0){var e=Math.abs(v[0][n.sortBy]-t[n.sortBy]);n.maxLevelDiff&&e>=n.maxLevelDiff&&(v=[],g.push(v))}v.push(t)}));var y=u+(d||n.minNodeSpacing);if(!n.preventOverlap){var b=g.length>0&&g[0].length>1,x=(Math.min(n.width,n.height)/2-y)/(g.length+(b?1:0));y=Math.min(y,x)}var w=0;if(g.forEach((function(t){var e=n.sweep;void 0===e&&(e=2*Math.PI-2*Math.PI/t.length);var r=t.dTheta=e/Math.max(1,t.length-1);if(t.length>1&&n.preventOverlap){var i=Math.cos(r)-Math.cos(0),o=Math.sin(r)-Math.sin(0),a=Math.sqrt(y*y/(i*i+o*o));w=Math.max(a,w)}t.r=w,w+=y})),n.equidistant){for(var _=0,S=0,E=0;E{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FORCE_LAYOUT_TYPE_MAP=e.LAYOUT_MESSAGE=void 0,e.LAYOUT_MESSAGE={RUN:"LAYOUT_RUN",END:"LAYOUT_END",ERROR:"LAYOUT_ERROR",TICK:"LAYOUT_TICK",GPURUN:"GPU_LAYOUT_RUN",GPUEND:"GPU_LAYOUT_END"},e.FORCE_LAYOUT_TYPE_MAP={gForce:!0,force2:!0,fruchterman:!0,forceAtlas2:!0,force:!0,"graphin-force":!0}},79829:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.DagreLayout=void 0;var a=o(n(43038)),s=n(81422),u=n(46271),l=n(78326),c=function(t){function e(e){var n=t.call(this)||this;return n.rankdir="TB",n.nodesep=50,n.ranksep=50,n.controlPoints=!1,n.sortByCombo=!1,n.edgeLabelSpace=!0,n.radial=!1,n.nodes=[],n.edges=[],n.onLayoutEnd=function(){},n.layoutNode=function(t){var e=n.nodes.find((function(e){return e.id===t}));return!e||!1!==e.layout},n.updateCfg(e),n}return i(e,t),e.prototype.getDefaultCfg=function(){return{rankdir:"TB",align:void 0,nodeSize:void 0,nodesepFunc:void 0,ranksepFunc:void 0,nodesep:50,ranksep:50,controlPoints:!1,radial:!1,focusNode:null}},e.prototype.execute=function(){var t,e,n,r,i=this,o=this,u=o.nodes,c=o.nodeSize,d=o.rankdir,f=o.combos,p=o.begin,m=o.radial,g=o.comboEdges,v=void 0===g?[]:g,y=o.vedges,b=void 0===y?[]:y;if(u){var x=o.edges||[],w=new l.Graph({multigraph:!0,compound:!0});o.nodeMap={};var _={};u.forEach((function(t){o.nodeMap[t.id]=t,t.comboId&&(_[t.comboId]=_[t.comboId]||[],_[t.comboId].push(t.id))}));var S,E=[],A={};(null===(t=o.nodeOrder)||void 0===t?void 0:t.length)?(o.nodeOrder.forEach((function(t){A[t]=!0,E.push(o.nodeMap[t])})),u.forEach((function(t){A[t.id]||E.push(t)}))):E=u,S=c?(0,s.isArray)(c)?function(){return c}:function(){return[c,c]}:function(t){return t.size?(0,s.isArray)(t.size)?t.size:(0,s.isObject)(t.size)?[t.size.width||40,t.size.height||40]:[t.size,t.size]:[40,40]};var M=(0,s.getFunc)(o.ranksep,50,o.ranksepFunc),C=(0,s.getFunc)(o.nodesep,50,o.nodesepFunc),T=C,k=M;"LR"!==d&&"RL"!==d||(T=M,k=C),w.setDefaultEdgeLabel((function(){return{}})),w.setGraph(o);var I={};this.sortByCombo&&f&&f.forEach((function(t){if(I[t.id]=t,t.collapsed){var e=S(t),n=k(t),r=T(t),i=e[0]+2*r,o=e[1]+2*n;w.setNode(t.id,{width:i,height:o})}t.parentId&&(I[t.parentId]||w.setNode(t.parentId,{}),w.setParent(t.id,t.parentId))})),E.filter((function(t){return!1!==t.layout})).forEach((function(t){var e=S(t),n=k(t),r=T(t),o=e[0]+2*r,a=e[1]+2*n,u=t.layer;(0,s.isNumber)(u)?w.setNode(t.id,{width:o,height:a,layer:u}):w.setNode(t.id,{width:o,height:a}),i.sortByCombo&&t.comboId&&(I[t.comboId]||(I[t.comboId]={id:t.comboId},w.setNode(t.comboId,{})),w.setParent(t.id,t.comboId))})),x.forEach((function(t){var e=(0,s.getEdgeTerminal)(t,"source"),n=(0,s.getEdgeTerminal)(t,"target");i.layoutNode(e)&&i.layoutNode(n)&&w.setEdge(e,n,{weight:t.weight||1})})),null===(e=null==v?void 0:v.concat(b||[]))||void 0===e||e.forEach((function(t){var e,n,r=t.source,i=t.target,o=(null===(e=I[r])||void 0===e?void 0:e.collapsed)?[r]:_[r]||[r],a=(null===(n=I[i])||void 0===n?void 0:n.collapsed)?[i]:_[i]||[i];o.forEach((function(e){a.forEach((function(n){w.setEdge(e,n,{weight:t.weight||1})}))}))}));var N=void 0;(null===(n=o.preset)||void 0===n?void 0:n.nodes)&&(N=new l.Graph({multigraph:!0,compound:!0}),o.preset.nodes.forEach((function(t){null==N||N.setNode(t.id,t)}))),a.default.layout(w,{prevGraph:N,edgeLabelSpace:o.edgeLabelSpace,keepNodeOrder:Boolean(!!o.nodeOrder),nodeOrder:o.nodeOrder});var P=[0,0];if(p){var O=1/0,L=1/0;w.nodes().forEach((function(t){var e=w.node(t);O>e.x&&(O=e.x),L>e.y&&(L=e.y)})),w.edges().forEach((function(t){var e;null===(e=w.edge(t).points)||void 0===e||e.forEach((function(t){O>t.x&&(O=t.x),L>t.y&&(L=t.y)}))})),P[0]=p[0]-O,P[1]=p[1]-L}var R="LR"===d||"RL"===d;if(m){var D=this,z=D.focusNode,F=D.ranksep,B=D.getRadialPos,U=(0,s.isString)(z)?z:null==z?void 0:z.id,j=U?null===(r=w.node(U))||void 0===r?void 0:r._rank:0,V=[],H=R?"y":"x",G=R?"height":"width",W=1/0,X=-1/0;w.nodes().forEach((function(t){var e=w.node(t);if(o.nodeMap[t]){var n=C(o.nodeMap[t]);if(0===j)V[e._rank]||(V[e._rank]={nodes:[],totalWidth:0,maxSize:-1/0}),V[e._rank].nodes.push(t),V[e._rank].totalWidth+=2*n+e[G],V[e._rank].maxSizeX&&(X=s)}}));var Y=F||50,q={},$=(X-W)/.9,K=[.5*(W+X-$),.5*(W+X+$)],Z=function(t,e,n,r){void 0===n&&(n=-1/0),void 0===r&&(r=[0,1]);var i=n;return t.forEach((function(t){var n=w.node(t);q[t]=e;var a=B(n[H],K,$,e,r),s=a.x,u=a.y;if(o.nodeMap[t]){o.nodeMap[t].x=s+P[0],o.nodeMap[t].y=u+P[1],o.nodeMap[t]._order=n._order;var l=M(o.nodeMap[t]);i=i}))}:function(t,e,n){var r=Math.max(e.x,n.x),i=Math.min(e.x,n.x);return t.filter((function(t){return t.x<=r&&t.x>=i}))};w.edges().forEach((function(t){var e,n=w.edge(t),r=x.findIndex((function(e){var n=(0,s.getEdgeTerminal)(e,"source"),r=(0,s.getEdgeTerminal)(e,"target");return n===t.v&&r===t.w}));if(!(r<=-1)&&o.edgeLabelSpace&&o.controlPoints&&"loop"!==x[r].type){null===(e=null==n?void 0:n.points)||void 0===e||e.forEach((function(t){t.x+=P[0],t.y+=P[1]}));var i=o.nodeMap[t.v],a=o.nodeMap[t.w];x[r].controlPoints=h(null==n?void 0:n.points,i,a,et,R,nt,rt)}}))}return o.onLayoutEnd&&o.onLayoutEnd(),{nodes:u,edges:x}}},e.prototype.getRadialPos=function(t,e,n,r,i){void 0===i&&(i=[0,1]);var o=(t-e[0])/n,a=2*(o=o*(i[1]-i[0])+i[0])*Math.PI;return{x:Math.cos(a)*r,y:Math.sin(a)*r}},e.prototype.getType=function(){return"dagre"},e}(u.Base);e.DagreLayout=c;var h=function(t,e,n,r,i,o,a){var s=(null==t?void 0:t.slice(1,t.length-1))||[];if(e&&n){var u=e.x,l=e.y,c=n.x,h=n.y;if(i&&(u=e.y,l=e.x,c=n.y,h=n.x),h!==l&&u!==c){var d=r.indexOf(l),f=r[d+1];if(f){var p=s[0],m=i?{x:(l+f)/2,y:(null==p?void 0:p.y)||c}:{x:(null==p?void 0:p.x)||c,y:(l+f)/2};p&&!o(p,m)||s.unshift(m)}var g=r.indexOf(h),v=Math.abs(g-d);if(1===v)(s=a(s,e,n)).length||s.push(i?{x:(l+h)/2,y:u}:{x:u,y:(l+h)/2});else if(v>1){var y=r[g-1];if(y){var b=s[s.length-1],x=i?{x:(h+y)/2,y:(null==b?void 0:b.y)||c}:{x:(null==b?void 0:b.x)||u,y:(h+y)/2};b&&!o(b,x)||s.push(x)}}}}return s}},69524:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;nt.x&&(i=t.x),o>t.y&&(o=t.y)})),e.forEach((function(t){t.points.forEach((function(t){i>t.x&&(i=t.x),o>t.y&&(o=t.y)}))})),r[0]=n[0]-i,r[1]=n[1]-o}return r},e.prototype.updateNodePosition=function(t,e){var n=this,r=n.combos,i=n.nodes,o=n.edges,a=n.anchorPoint,s=n.graphSettings,l=this.getBegin(t,e);t.forEach((function(t){var n,c=t.x,h=t.y,d=t.id,f=t.type,p=t.coreBox;if(f===u.HierarchyNodeType.META&&d!==u.ROOT_NAME){var m=r.findIndex((function(t){return t.id===d})),g=null===(n=null==s?void 0:s.subScene)||void 0===n?void 0:n.meta;r[m].offsetX=c+l[0],r[m].offsetY=h+l[1],r[m].fixSize=[p.width,p.height],r[m].fixCollapseSize=[p.width,p.height],t.expanded?r[m].padding=[null==g?void 0:g.paddingTop,null==g?void 0:g.paddingRight,null==g?void 0:g.paddingBottom,null==g?void 0:g.paddingLeft]:r[m].padding=[0,0,0,0]}else if(f===u.HierarchyNodeType.OP){m=i.findIndex((function(t){return t.id===d}));if(i[m].x=c+l[0],i[m].y=h+l[1],a){var v=[],y=e.filter((function(t){return t.v===d})),b=e.filter((function(t){return t.w===d}));y.length>0&&y.forEach((function(e){var n=e.points[0],r=(n.x-c)/t.width+.5,i=(n.y-h)/t.height+.5;v.push([r,i]),e.baseEdgeList.forEach((function(t){var e=o.find((function(e){return e.source===t.v&&e.target===t.w}));e&&(e.sourceAnchor=v.length-1)}))})),b.length>0&&b.forEach((function(e){var n=e.points[e.points.length-1],r=(n.x-c)/t.width+.5,i=(n.y-h)/t.height+.5;v.push([r,i]),e.baseEdgeList.forEach((function(t){var e=o.find((function(e){return e.source===t.v&&e.target===t.w}));e&&(e.targetAnchor=v.length-1)}))})),i[m].anchorPoints=v.length>0?v:i[m].anchorPoints||[]}}}))},e.prototype.updateEdgePosition=function(t,e){var n=this,r=n.combos,i=n.edges,s=n.controlPoints,l=this.getBegin(t,e);s&&(r.forEach((function(t){t.inEdges=[],t.outEdges=[]})),i.forEach((function(e){var i,s,c,h,d=t.find((function(t){return t.id===e.source})),f=t.find((function(t){return t.id===e.target})),p=[],m=[];if(d&&f)m=(0,u.getEdges)(null==d?void 0:d.id,null==f?void 0:f.id,t);else if(!d||!f){var g=n.getNodePath(e.source),v=n.getNodePath(e.target),y=g.reverse().slice(d?0:1).find((function(e){return t.find((function(t){return t.id===e}))})),b=v.reverse().slice(f?0:1).find((function(e){return t.find((function(t){return t.id===e}))}));d=t.find((function(t){return t.id===y})),f=t.find((function(t){return t.id===b})),m=(0,u.getEdges)(null==d?void 0:d.id,null==f?void 0:f.id,t,{v:e.source,w:e.target})}if(p=(p=m.reduce((function(t,e){return a(a([],t,!0),e.points.map((function(t){return o(o({},t),{x:t.x+l[0],y:t.y+l[1]})})),!0)}),[])).slice(1,-1),e.controlPoints=p,(null==f?void 0:f.type)===u.NodeType.META){var x=r.findIndex((function(t){return t.id===(null==f?void 0:f.id)}));if(!r[x]||(null===(i=r[x].inEdges)||void 0===i?void 0:i.some((function(t){return t.source===d.id&&t.target===f.id}))))return;null===(s=r[x].inEdges)||void 0===s||s.push({source:d.id,target:f.id,controlPoints:p})}if((null==d?void 0:d.type)===u.NodeType.META){x=r.findIndex((function(t){return t.id===(null==d?void 0:d.id)}));if(!r[x]||(null===(c=r[x].outEdges)||void 0===c?void 0:c.some((function(t){return t.source===d.id&&t.target===f.id}))))return;null===(h=r[x].outEdges)||void 0===h||h.push({source:d.id,target:f.id,controlPoints:p})}})))},e.prototype.getType=function(){return"dagreCompound"},e.prototype.getDataByOrder=function(t){return t.every((function(t){return void 0!==t.layoutOrder}))||t.forEach((function(t,e){t.layoutOrder=e})),t.sort((function(t,e){return t.layoutOrder-e.layoutOrder}))},e}(s.Base);e.DagreCompoundLayout=c},78326:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.Graph=void 0;var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(n(46888).Graph);e.Graph=o},43038:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(38733)),o=n(11519);e.default={layout:i.default,util:{time:o.time,notime:o.notime}}},99367:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(99952)),o=function(t){var e=[],n={},r={},i=function(o){var a;r[o]||(r[o]=!0,n[o]=!0,null===(a=t.outEdges(o))||void 0===a||a.forEach((function(t){n[t.w]?e.push(t):i(t.w)})),delete n[o])};return t.nodes().forEach(i),e};e.default={run:function(t){var e="greedy"===t.graph().acyclicer?(0,i.default)(t,function(t){return function(e){var n;return(null===(n=t.edge(e))||void 0===n?void 0:n.weight)||1}}(t)):o(t);null==e||e.forEach((function(e){var n=t.edge(e);t.removeEdgeObj(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,"rev-".concat(Math.random()))}))},undo:function(t){t.edges().forEach((function(e){var n=t.edge(e);if(n.reversed){t.removeEdgeObj(e);var r=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,r)}}))}}},82342:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(11519),i=function(t,e,n,i,o,a){var s={rank:a,borderType:e,width:0,height:0},u=o[e][a-1],l=(0,r.addDummyNode)(t,"border",s,n);o[e][a]=l,t.setParent(l,i),u&&t.setEdge(u,l,{weight:1})};e.default=function(t){var e,n=function(e){var r=t.children(e),o=t.node(e);if((null==r?void 0:r.length)&&r.forEach((function(t){return n(t)})),o.hasOwnProperty("minRank")){o.borderLeft=[],o.borderRight=[];for(var a=o.minRank,s=o.maxRank+1;a{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){t.nodes().forEach((function(e){r(t.node(e))})),t.edges().forEach((function(e){r(t.edge(e))}))},r=function(t){var e=t.width;t.width=t.height,t.height=e},i=function(t){t.nodes().forEach((function(e){o(t.node(e))})),t.edges().forEach((function(e){var n,r=t.edge(e);null===(n=r.points)||void 0===n||n.forEach((function(t){return o(t)})),r.hasOwnProperty("y")&&o(r)}))},o=function(t){(null==t?void 0:t.y)&&(t.y=-t.y)},a=function(t){t.nodes().forEach((function(e){s(t.node(e))})),t.edges().forEach((function(e){var n,r=t.edge(e);null===(n=r.points)||void 0===n||n.forEach((function(t){return s(t)})),r.hasOwnProperty("x")&&s(r)}))},s=function(t){var e=t.x;t.x=t.y,t.y=e};e.default={adjust:function(t){var e,r=null===(e=t.graph().rankdir)||void 0===e?void 0:e.toLowerCase();"lr"!==r&&"rl"!==r||n(t)},undo:function(t){var e,r=null===(e=t.graph().rankdir)||void 0===e?void 0:e.toLowerCase();"bt"!==r&&"rl"!==r||i(t),"lr"!==r&&"rl"!==r||(a(t),n(t))}}},57110:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t,e){if("next"!==t&&"prev"!==t)return e},r=function(t){t.prev.next=t.next,t.next.prev=t.prev,delete t.next,delete t.prev},i=function(){function t(){var t={};t.prev=t,t.next=t.prev,this.shortcut=t}return t.prototype.dequeue=function(){var t=this.shortcut,e=t.prev;if(e&&e!==t)return r(e),e},t.prototype.enqueue=function(t){var e=this.shortcut;t.prev&&t.next&&r(t),t.next=e.next,e.next.prev=t,e.next=t,t.prev=e},t.prototype.toString=function(){for(var t=[],e=this.shortcut,r=e.prev;r!==e;)t.push(JSON.stringify(r,n)),r=null==r?void 0:r.prev;return"[".concat(t.join(", "),"]")},t}();e.default=i},99952:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=o(n(57110)),s=n(46888),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(a.default),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(s.Graph),c=function(){return 1},h=function(t,e,n){for(var r,i=[],o=e[e.length-1],a=e[0];t.nodeCount();){for(;r=a.dequeue();)d(t,e,n,r);for(;r=o.dequeue();)d(t,e,n,r);if(t.nodeCount())for(var s=e.length-2;s>0;--s)if(r=e[s].dequeue()){i=i.concat(d(t,e,n,r,!0));break}}return i},d=function(t,e,n,r,i){var o,a,s=[];return null===(o=t.inEdges(r.v))||void 0===o||o.forEach((function(r){var o=t.edge(r),a=t.node(r.v);i&&s.push({v:r.v,w:r.w,in:0,out:0}),void 0===a.out&&(a.out=0),a.out-=o,p(e,n,a)})),null===(a=t.outEdges(r.v))||void 0===a||a.forEach((function(r){var i=t.edge(r),o=r.w,a=t.node(o);void 0===a.in&&(a.in=0),a.in-=i,p(e,n,a)})),t.removeNode(r.v),i?s:void 0},f=function(t,e){var n=new l,r=0,i=0;t.nodes().forEach((function(t){n.setNode(t,{v:t,in:0,out:0})})),t.edges().forEach((function(t){var o=n.edge(t)||0,a=(null==e?void 0:e(t))||1,s=o+a;n.setEdge(t.v,t.w,s),i=Math.max(i,n.node(t.v).out+=a),r=Math.max(r,n.node(t.w).in+=a)}));for(var o=[],a=i+r+3,s=0;s{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(11519),i=function(t,e,n,o,a,s,u){var l=t.children(u);if(null==l?void 0:l.length){var c=(0,r.addBorderNode)(t,"_bt"),h=(0,r.addBorderNode)(t,"_bb"),d=t.node(u);t.setParent(c,u),d.borderTop=c,t.setParent(h,u),d.borderBottom=h,null==l||l.forEach((function(r){i(t,e,n,o,a,s,r);var l=t.node(r),d=l.borderTop?l.borderTop:r,f=l.borderBottom?l.borderBottom:r,p=l.borderTop?o:2*o,m=d!==f?1:a-s[u]+1;t.setEdge(c,d,{minlen:m,weight:p,nestingEdge:!0}),t.setEdge(f,h,{minlen:m,weight:p,nestingEdge:!0})})),t.parent(u)||t.setEdge(e,c,{weight:0,minlen:a+s[u]})}else u!==e&&t.setEdge(e,u,{weight:0,minlen:n})},o=function(t){var e,n={},r=function(e,i){var o=t.children(e);null==o||o.forEach((function(t){return r(t,i+1)})),n[e]=i};return null===(e=t.children())||void 0===e||e.forEach((function(t){return r(t,1)})),n},a=function(t){var e=0;return t.edges().forEach((function(n){e+=t.edge(n).weight})),e};e.default={run:function(t){var e,n=(0,r.addDummyNode)(t,"root",{},"_root"),s=o(t),u=Math.max.apply(Math,Object.values(s));Math.abs(u)===1/0&&(u=1);var l=u-1,c=2*l+1;t.graph().nestingRoot=n,t.edges().forEach((function(e){t.edge(e).minlen*=c}));var h=a(t)+1;null===(e=t.children())||void 0===e||e.forEach((function(e){i(t,n,c,h,l,s,e)})),t.graph().nodeRankFactor=c},cleanup:function(t){var e=t.graph();e.nestingRoot&&t.removeNode(e.nestingRoot),delete e.nestingRoot,t.edges().forEach((function(e){t.edge(e).nestingEdge&&t.removeEdgeObj(e)}))}}},67484:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(11519),i=function(t,e){var n=e.v,i=t.node(n).rank,o=e.w,a=t.node(o).rank,s=e.name,u=t.edge(e),l=u.labelRank;if(a!==i+1){t.removeEdgeObj(e);var c,h,d,f=t.graph();for(d=0,++i;i{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e,n){var r,i={};null==n||n.forEach((function(n){for(var o,a,s=t.parent(n);s;){if((o=t.parent(s))?(a=i[o],i[o]=s):(a=r,r=s),a&&a!==s)return void e.setEdge(a,s);s=o}}))}},69843:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){return e.map((function(e){var n=t.inEdges(e);if(!(null==n?void 0:n.length))return{v:e};var r={sum:0,weight:0};return null==n||n.forEach((function(e){var n=t.edge(e),i=t.node(e.v);r.sum+=n.weight*i.order,r.weight+=n.weight})),{v:e,barycenter:r.sum/r.weight,weight:r.weight}}))}},43517:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(78326),i=function(t){for(var e;t.hasNode(e="_root".concat(Math.random())););return e};e.default=function(t,e,n){var o=i(t),a=new r.Graph({compound:!0}).setGraph({root:o}).setDefaultNodeLabel((function(e){return t.node(e)}));return t.nodes().forEach((function(r){var i,s=t.node(r),u=t.parent(r);(s.rank===e||s.minRank<=e&&e<=s.maxRank)&&(a.setNode(r),a.setParent(r,u||o),null===(i=t[n](r))||void 0===i||i.forEach((function(e){var n=e.v===r?e.w:e.v,i=a.edgeFromArgs(n,r),o=void 0!==i?i.weight:0;a.setEdge(n,r,{weight:t.edge(e).weight+o})})),s.hasOwnProperty("minRank")&&a.setNode(r,{borderLeft:s.borderLeft[e],borderRight:s.borderRight[e]}))})),a}},1294:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(11519),i=function(t,e,n){for(var i=(0,r.zipObject)(n,n.map((function(t,e){return e}))),o=e.map((function(e){var n,r=null===(n=t.outEdges(e))||void 0===n?void 0:n.map((function(e){return{pos:i[e.w]||0,weight:t.edge(e).weight}}));return null==r?void 0:r.sort((function(t,e){return t.pos-e.pos}))})).flat().filter((function(t){return void 0!==t})),a=1;a0;)e%2&&(n+=u[e+1]),u[e=e-1>>1]+=t.weight;l+=t.weight*n}})),l};e.default=function(t,e){for(var n=0,r=1;r<(null==e?void 0:e.length);r+=1)n+=i(t,e[r-1],e[r]);return n}},96524:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(50497)),o=r(n(1294)),a=r(n(43517)),s=r(n(18319)),u=r(n(77749)),l=n(81422),c=n(78326),h=n(11519),d=function(t,e,n){return e.map((function(e){return(0,a.default)(t,e,n)}))},f=function(t,e,n,r){var i=new c.Graph;null==t||t.forEach((function(t){for(var o,a=t.graph().root,l=(0,u.default)(t,a,i,e,n,r),c=0;c<(null===(o=l.vs)||void 0===o?void 0:o.length);c++){var h=t.node(l.vs[c]);h&&(h.order=c)}(0,s.default)(t,i,l.vs)}))},p=function(t,e){null==e||e.forEach((function(e){null==e||e.forEach((function(e,n){t.node(e).order=n}))}))};e.default=function(t,e){for(var n=(0,h.maxRank)(t),r=[],a=[],s=1;s-1;s--)a.push(s);var u=d(t,r,"inEdges"),c=d(t,a,"outEdges"),m=(0,i.default)(t);p(t,m);for(var g,v=Number.POSITIVE_INFINITY,y=(s=0,0);y<4;++s,++y){f(s%2?u:c,s%4>=2,!1,e),m=(0,h.buildLayerMatrix)(t),(b=(0,o.default)(t,m))=2,!0,e),m=(0,h.buildLayerMatrix)(t),(b=(0,o.default)(t,m)){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){for(var n=t.nodes().filter((function(e){var n;return!(null===(n=t.children(e))||void 0===n?void 0:n.length)})).map((function(e){return t.node(e).rank})),r=Math.max.apply(Math,n),i=[],o=0;o{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(79987);e.default=function(t){for(var e={},n=t.nodes().filter((function(e){var n;return!(null===(n=t.children(e))||void 0===n?void 0:n.length)})),i=n.map((function(e){return t.node(e).rank})),o=(0,r.max)(i),a=[],s=0;s{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){for(var e,n,i=[],o=function(){var o=t.pop();i.push(o),null===(e=o.in.reverse())||void 0===e||e.forEach((function(t){return(e=o,function(t){t.merged||(void 0===t.barycenter||void 0===e.barycenter||t.barycenter>=e.barycenter)&&r(e,t)})(t);var e})),null===(n=o.out)||void 0===n||n.forEach((function(e){return(n=o,function(e){e.in.push(n),0==--e.indegree&&t.push(e)})(e);var n}))};null==t?void 0:t.length;)o();var a=i.filter((function(t){return!t.merged})),s=["vs","i","barycenter","weight"];return a.map((function(t){var e={};return null==s||s.forEach((function(n){void 0!==t[n]&&(e[n]=t[n])})),e}))},r=function(t,e){var n,r=0,i=0;t.weight&&(r+=t.barycenter*t.weight,i+=t.weight),e.weight&&(r+=e.barycenter*e.weight,i+=e.weight),t.vs=null===(n=e.vs)||void 0===n?void 0:n.concat(t.vs),t.barycenter=r/i,t.weight=i,t.i=Math.min(e.i,t.i),e.merged=!0};e.default=function(t,e){var r,i,o,a={};null==t||t.forEach((function(t,e){a[t.v]={i:e,indegree:0,in:[],out:[],vs:[t.v]};var n=a[t.v];void 0!==t.barycenter&&(n.barycenter=t.barycenter,n.weight=t.weight)})),null===(r=e.edges())||void 0===r||r.forEach((function(t){var e=a[t.v],n=a[t.w];void 0!==e&&void 0!==n&&(n.indegree++,e.out.push(a[t.w]))}));var s=null===(o=(i=Object.values(a)).filter)||void 0===o?void 0:o.call(i,(function(t){return!t.indegree}));return n(s)}},77749:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(69843)),o=r(n(8406)),a=r(n(73462)),s=function(t,e,n,r,c,h){var d,f,p,m,g=t.children(e),v=t.node(e),y=v?v.borderLeft:void 0,b=v?v.borderRight:void 0,x={};y&&(g=null==g?void 0:g.filter((function(t){return t!==y&&t!==b})));var w=(0,i.default)(t,g||[]);null==w||w.forEach((function(e){var i;if(null===(i=t.children(e.v))||void 0===i?void 0:i.length){var o=s(t,e.v,n,r,h);x[e.v]=o,o.hasOwnProperty("barycenter")&&l(e,o)}}));var _=(0,o.default)(w,n);u(_,x),null===(d=_.filter((function(t){return t.vs.length>0})))||void 0===d||d.forEach((function(e){var n=t.node(e.vs[0]);n&&(e.fixorder=n.fixorder,e.order=n.order)}));var S=(0,a.default)(_,r,c,h);if(y&&(S.vs=[y,S.vs,b].flat(),null===(f=t.predecessors(y))||void 0===f?void 0:f.length)){var E=t.node((null===(p=t.predecessors(y))||void 0===p?void 0:p[0])||""),A=t.node((null===(m=t.predecessors(b))||void 0===m?void 0:m[0])||"");S.hasOwnProperty("barycenter")||(S.barycenter=0,S.weight=0),S.barycenter=(S.barycenter*S.weight+E.order+A.order)/(S.weight+2),S.weight+=2}return S},u=function(t,e){null==t||t.forEach((function(t){var n,r=null===(n=t.vs)||void 0===n?void 0:n.map((function(t){return e[t]?e[t].vs:t}));t.vs=r.flat()}))},l=function(t,e){void 0!==t.barycenter?(t.barycenter=(t.barycenter*t.weight+e.barycenter*e.weight)/(t.weight+e.weight),t.weight+=e.weight):(t.barycenter=e.barycenter,t.weight=e.weight)};e.default=s},73462:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(11519),i=function(t,e,n){for(var r,i=n;e.length&&(r=e[e.length-1]).i<=i;)e.pop(),null==t||t.push(r.vs),i++;return i},o=function(t,e){return function(n,r){if(void 0!==n.fixorder&&void 0!==r.fixorder)return n.fixorder-r.fixorder;if(n.barycenterr.barycenter)return 1;if(e&&void 0!==n.order&&void 0!==r.order){if(n.orderr.order)return 1}return t?r.i-n.i:n.i-r.i}};e.default=function(t,e,n,a){var s=(0,r.partition)(t,(function(t){var e=t.hasOwnProperty("fixorder")&&!isNaN(t.fixorder);return a?!e&&t.hasOwnProperty("barycenter"):e||t.hasOwnProperty("barycenter")})),u=s.lhs,l=s.rhs.sort((function(t,e){return-t.i- -e.i})),c=[],h=0,d=0,f=0;null==u||u.sort(o(!!e,!!n)),f=i(c,l,f),null==u||u.forEach((function(t){var e;f+=null===(e=t.vs)||void 0===e?void 0:e.length,c.push(t.vs),h+=t.barycenter*t.weight,d+=t.weight,f=i(c,l,f)}));var p={vs:c.flat()};return d&&(p.barycenter=h/d,p.weight=d),p}},66873:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){var e,n=function(t){var e,n={},r=0,i=function(e){var o,a=r;null===(o=t.children(e))||void 0===o||o.forEach(i),n[e]={low:a,lim:r++}};return null===(e=t.children())||void 0===e||e.forEach(i),n}(t);null===(e=t.graph().dummyChains)||void 0===e||e.forEach((function(e){var r,i,o=e,a=t.node(o),s=a.edgeObj;if(s)for(var u=function(t,e,n,r){var i,o,a=[],s=[],u=Math.min(e[n].low,e[r].low),l=Math.max(e[n].lim,e[r].lim);i=n;do{i=t.parent(i),a.push(i)}while(i&&(e[i].low>u||l>e[i].lim));for(o=i,i=r;i&&i!==o;)s.push(i),i=t.parent(i);return{lca:o,path:a.concat(s.reverse())}}(t,n,s.v,s.w),l=u.path,c=u.lca,h=0,d=l[h],f=!0;o!==s.w;){if(a=t.node(o),f){for(;d!==c&&(null===(r=t.node(d))||void 0===r?void 0:r.maxRank)s)&&(0,e.addConflict)(r,n,c)})))}function o(t,e){var n=function(t){return JSON.stringify(t.slice(1))}(t);e.get(n)||(i.apply(void 0,t),e.set(n,!0))}return(null==n?void 0:n.length)&&n.reduce((function(e,n){var r,i=-1,a=0,s=new Map;return null==n||n.forEach((function(u,l){var c;if("border"===(null===(c=t.node(u))||void 0===c?void 0:c.dummy)){var h=t.predecessors(u)||[];h.length&&(r=t.node(h[0]).order,o([n,a,l,i,r],s),a=l,i=r)}o([n,a,n.length,r,e.length],s)})),n})),r};e.findOtherInnerSegmentNode=function(t,e){var n,r;if(null===(n=t.node(e))||void 0===n?void 0:n.dummy)return null===(r=t.predecessors(e))||void 0===r?void 0:r.find((function(e){return t.node(e).dummy}))};e.addConflict=function(t,e,n){var r=e,i=n;if(r>i){var o=r;r=i,i=o}var a=t[r];a||(t[r]=a={}),a[i]=!0};e.hasConflict=function(t,e,n){var r=e;r>n&&(r=n);return!!t[r]};e.verticalAlignment=function(t,n,r,i){var o={},a={},s={};return null==n||n.forEach((function(t){null==t||t.forEach((function(t,e){o[t]=t,a[t]=t,s[t]=e}))})),null==n||n.forEach((function(t){var n=-1;null==t||t.forEach((function(t){var u=i(t);if(u.length)for(var l=((u=u.sort((function(t,e){return s[t]-s[e]}))).length-1)/2,c=Math.floor(l),h=Math.ceil(l);c<=h;++c){var d=u[c];a[t]===t&&n{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.feasibleTreeWithLayer=e.feasibleTree=void 0;var r=n(53472),i=n(11519),o=n(78326),a=function(t){var e,n,i=new o.Graph({directed:!1}),a=t.nodes()[0],u=t.nodeCount();for(i.setNode(a,{});s(i,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.exchangeEdges=e.enterEdge=e.leaveEdge=e.initLowLimValues=e.calcCutValue=e.initCutValues=void 0;var r=n(75022),i=n(53472),o=n(11519),a=n(46888),s=a.algorithm.preorder,u=a.algorithm.postorder;e.initCutValues=function(t,e){var n=u(t,t.nodes());null==(n=null==n?void 0:n.slice(0,(null==n?void 0:n.length)-1))||n.forEach((function(n){l(t,e,n)}))};var l=function(t,n,r){var i=t.node(r).parent;t.edgeFromArgs(r,i).cutvalue=(0,e.calcCutValue)(t,n,r)};e.calcCutValue=function(t,e,n){var r,i=t.node(n).parent,o=!0,a=e.edgeFromArgs(n,i),s=0;return a||(o=!1,a=e.edgeFromArgs(i,n)),s=a.weight,null===(r=e.nodeEdges(n))||void 0===r||r.forEach((function(r){var a=r.v===n,u=a?r.w:r.v;if(u!==i){var l=a===o,c=e.edge(r).weight;if(s+=l?c:-c,d(t,n,u)){var h=t.edgeFromArgs(n,u).cutvalue;s+=l?-h:h}}})),s};e.initLowLimValues=function(t,e){void 0===e&&(e=t.nodes()[0]),c(t,{},1,e)};var c=function(t,e,n,r,i){var o,a=n,s=n,u=t.node(r);return e[r]=!0,null===(o=t.neighbors(r))||void 0===o||o.forEach((function(n){e[n]||(s=c(t,e,s,n,r))})),u.low=a,u.lim=s++,i?u.parent=i:delete u.parent,s};e.leaveEdge=function(t){return t.edges().find((function(e){return t.edge(e).cutvalue<0}))};e.enterEdge=function(t,e,n){var r=n.v,a=n.w;e.hasEdge(r,a)||(r=n.w,a=n.v);var s=t.node(r),u=t.node(a),l=s,c=!1;s.lim>u.lim&&(l=u,c=!0);var h=e.edges().filter((function(e){return c===f(t,t.node(e.v),l)&&c!==f(t,t.node(e.w),l)}));return(0,o.minBy)(h,(function(t){return(0,i.slack)(e,t)}))};e.exchangeEdges=function(t,n,r,i){var o=r.v,a=r.w;t.removeEdge(o,a),t.setEdge(i.v,i.w,{}),(0,e.initLowLimValues)(t),(0,e.initCutValues)(t,n),h(t,n)};var h=function(t,e){var n=t.nodes().find((function(t){var n;return!(null===(n=e.node(t))||void 0===n?void 0:n.parent)})),r=s(t,n);null==(r=null==r?void 0:r.slice(1))||r.forEach((function(n){var r=t.node(n).parent,i=e.edgeFromArgs(n,r),o=!1;i||(i=e.edgeFromArgs(r,n),o=!0),e.node(n).rank=e.node(r).rank+(o?i.minlen:-i.minlen)}))},d=function(t,e,n){return t.hasEdge(e,n)},f=function(t,e,n){return n.low<=e.lim&&e.lim<=n.lim};e.default=function(t){var n=(0,o.simplify)(t);(0,i.longestPath)(n);var a,s,u=(0,r.feasibleTree)(n);for((0,e.initLowLimValues)(u),(0,e.initCutValues)(u,n);a=(0,e.leaveEdge)(u);)s=(0,e.enterEdge)(u,n,a),(0,e.exchangeEdges)(u,n,a,s)}},53472:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.slack=e.longestPathWithLayer=e.longestPath=void 0;var n=function(t){var e,n={},r=function(e){var i,o,a=t.node(e);return a?n[e]?a.rank:(n[e]=!0,null===(i=t.outEdges(e))||void 0===i||i.forEach((function(e){var n=r(e.w)-t.edge(e).minlen;n&&(void 0===o||n{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.minBy=e.notime=e.time=e.partition=e.maxRank=e.addBorderNode=e.removeEmptyRanks=e.normalizeRanks=e.buildLayerMatrix=e.intersectRect=e.predecessorWeights=e.successorWeights=e.zipObject=e.asNonCompoundGraph=e.simplify=e.addDummyNode=void 0;var r=n(81422),i=n(78326);e.addDummyNode=function(t,e,n,r){var i;do{i="".concat(r).concat(Math.random())}while(t.hasNode(i));return n.dummy=e,t.setNode(i,n),i};e.simplify=function(t){var e=(new i.Graph).setGraph(t.graph());return t.nodes().forEach((function(n){e.setNode(n,t.node(n))})),t.edges().forEach((function(n){var r=e.edgeFromArgs(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})})),e};e.asNonCompoundGraph=function(t){var e=new i.Graph({multigraph:t.isMultigraph()}).setGraph(t.graph());return t.nodes().forEach((function(n){var r;(null===(r=t.children(n))||void 0===r?void 0:r.length)||e.setNode(n,t.node(n))})),t.edges().forEach((function(n){e.setEdgeObj(n,t.edge(n))})),e};e.zipObject=function(t,e){return null==t?void 0:t.reduce((function(t,n,r){return t[n]=e[r],t}),{})};e.successorWeights=function(t){var e={};return t.nodes().forEach((function(n){var r,i={};null===(r=t.outEdges(n))||void 0===r||r.forEach((function(e){var n;i[e.w]=(i[e.w]||0)+((null===(n=t.edge(e))||void 0===n?void 0:n.weight)||0)})),e[n]=i})),e};e.predecessorWeights=function(t){var n=t.nodes(),r=n.map((function(e){var n,r={};return null===(n=t.inEdges(e))||void 0===n||n.forEach((function(e){r[e.v]=(r[e.v]||0)+t.edge(e).weight})),r}));return(0,e.zipObject)(n,r)};e.intersectRect=function(t,e){var n,r,i=Number(t.x),o=Number(t.y),a=Number(e.x)-i,s=Number(e.y)-o,u=Number(t.width)/2,l=Number(t.height)/2;return a||s?(Math.abs(s)*u>Math.abs(a)*l?(s<0&&(l=-l),n=l*a/s,r=l):(a<0&&(u=-u),n=u,r=u*s/a),{x:i+n,y:o+r}):{x:0,y:0}};e.buildLayerMatrix=function(t){for(var n=[],r=(0,e.maxRank)(t)+1,i=0;ie)&&(e=i)})),e||(e=0),e};e.partition=function(t,e){var n={lhs:[],rhs:[]};return null==t||t.forEach((function(t){e(t)?n.lhs.push(t):n.rhs.push(t)})),n};e.time=function(t,e){var n=Date.now();try{return e()}finally{console.log("".concat(t," time: ").concat(Date.now()-n,"ms"))}};e.notime=function(t,e){return e()};e.minBy=function(t,e){return t.reduce((function(t,n){return e(t)>e(n)?n:t}))}},84551:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n1){var e=r({},t);delete e.size,s.push(e)}}));var d=[];i.forEach((function(t){var e=s.find((function(e){return e.id===t.source})),n=s.find((function(e){return e.id===t.target}));e&&n&&d.push(t)}));var f=new h.DagreLayout({type:"dagre",ranksep:e.nodeMinGap,nodesep:e.nodeMinGap}).layout({nodes:s,edges:d}).nodes;n.forEach((function(t){var e=(f||[]).find((function(e){return e.id===t.id}));t.x=(null==e?void 0:e.x)||o/2,t.y=(null==e?void 0:e.y)||a/2}));var p=JSON.parse(JSON.stringify(n)),m=JSON.parse(JSON.stringify(i)),g=u.forceSimulation().nodes(p).force("link",u.forceLink(m).id((function(t){return t.id})).distance((function(t){return d.find((function(e){return e.source===t.source&&e.target===t.target}))?30:20}))).force("charge",u.forceManyBody()).force("center",u.forceCenter(o/2,a/2)).force("x",u.forceX(o/2)).force("y",u.forceY(a/2)).alpha(.3).alphaDecay(.08).alphaMin(.001);return new Promise((function(t){g.on("end",(function(){n.forEach((function(t){var e=p.find((function(e){return e.id===t.id}));e&&(t.x=e.x,t.y=e.y)}));var r=Math.min.apply(Math,n.map((function(t){return t.x}))),s=Math.max.apply(Math,n.map((function(t){return t.x}))),u=Math.min.apply(Math,n.map((function(t){return t.y}))),h=Math.max.apply(Math,n.map((function(t){return t.y}))),d=o/(s-r),f=a/(h-u);n.forEach((function(t){void 0!==t.x&&d<1&&(t.x=(t.x-r)*d),void 0!==t.y&&f<1&&(t.y=(t.y-u)*f)})),n.forEach((function(t){t.sizeTemp=t.size,t.size=[10,10]})),(0,c.default)(n,i),n.forEach((function(t){t.size=t.sizeTemp||[],delete t.sizeTemp})),(0,l.default)({nodes:n,edges:i},e),t()}))}))}},56401:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(90244));e.default=function(t,e){if(!t.nodes||0===t.nodes.length)return t;var n=e.width,r=e.height,o=e.nodeMinGap,a=1e4,s=1e4;t.nodes.forEach((function(t){var e=t.size[0]||50,n=t.size[1]||50;a=Math.min(e,a),s=Math.min(n,s)}));var u=new i.default;u.init(n,r,{CELL_H:s,CELL_W:a}),t.nodes.forEach((function(t){var e=u.occupyNearest(t);e&&(e.node={id:t.id,size:t.size},t.x=e.x,t.y=e.y,t.dx=e.dx,t.dy=e.dy)}));for(var l=0;la){for(var p=g=Math.ceil((c.size[0]+o)/a)-1,m=0;m-1)||u.cells[d+m+1][f].node)break;p--}u.insertColumn(d,p)}if(c.size[1]+o>s){var g;for(p=g=Math.ceil((c.size[1]+o)/s)-1,m=0;m-1)||u.cells[d][f+m+1].node)break;p--}u.insertRow(f,p)}}for(l=0;lt;r--)for(i=0;i=t&&(this.additionColumn[i]+=e);for(r=0;rt;r--)this.cells[i][r+e]=n(n({},this.cells[i][r]),{dx:i,dy:r+e,x:i*this.CELL_W,y:(r+e)*this.CELL_H}),this.cells[i][r]={dx:i,dy:r,x:i*this.CELL_W,y:r*this.CELL_H,occupied:!1,node:null};for(r=0;r=t&&(this.additionRow[r]+=e);for(i=0;i{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=1200,r=800,i=1e7,o=10,a=3.141592653589793,s=1.5707963267948966,u=.375*a,l=.625*a,c=new Map,h=10,d=10,f=.8,p=.1,m=.5;function g(t,e){var n=(c.get(t.id)||[]).find((function(t){return t.source===e.id||t.target===e.id})),r=t.size[0]*t.size[1],a=e.size[0]*e.size[1],h=r>a?e:t,d=r>a?t:e,f=h.x-h.size[0]/2,p=h.y-h.size[1]/2,m=h.x+h.size[0]/2,g=h.y+h.size[1]/2,v=d.x-d.size[0]/2,y=d.y-d.size[1]/2,b=d.x+d.size[0]/2,x=d.y+d.size[1]/2,w=h.x,_=h.y,S=d.x,E=d.y,A=0,M=0;if(m>=v&&b>=f&&g>=y&&x>=p){0===(M=Math.sqrt(Math.pow(S-w,2)+Math.pow(E-_,2)))&&(M=1e-7),A=1*o/M*100+((mv?f:v))*((gy?p:y)),A*=i}else{var C=!1,T=function(t,e,n){var r=t.x-t.size[0]/2,i=t.y-t.size[1]/2,o=t.x+t.size[0]/2,a=t.y+t.size[1]/2,c=e.x-e.size[0]/2,h=e.y-e.size[1]/2,d=e.x+e.size[0]/2,f=e.y+e.size[1]/2,p=t.x,m=t.y,g=e.x,v=e.y,y=g-p,b=Math.atan2(y,v-m),x=0,w=0,_=0,S=0;b>s?(w=i-f,x=c-o,_=parseFloat(w?(w/Math.cos(b)).toFixed(2):x.toFixed(2)),S=parseFloat(x?(x/Math.sin(b)).toFixed(2):w.toFixed(2))):_=S=0(x=c-o)?parseFloat(w?(w/Math.cos(b)).toFixed(2):x.toFixed(2)):parseFloat(x?(x/Math.sin(b)).toFixed(2):w.toFixed(2)):b<-s?(w=i-f)>(x=-(d-r))?parseFloat(w?(w/Math.cos(b)).toFixed(2):x.toFixed(2)):parseFloat(x?(x/Math.sin(b)).toFixed(2):w.toFixed(2)):(w=h-a)>(x=Math.abs(y)>(o-r)/2?r-d:y)?parseFloat(w?(w/Math.cos(b)).toFixed(2):x.toFixed(2)):parseFloat(x&&0!==b?(x/Math.sin(b)).toFixed(2):w.toFixed(2));var E=parseFloat(b.toFixed(2)),A=n;return n&&(A=un||o.y>r)&&(e+=1e12);for(var a=i+1;a70&&c<110,f=h>70&&h<110;if((c<30||c>150)&&!(h<30||h>150)||c*h<0){s=!1;break}if(d&&!f||c*h<0){s=!1;break}if((l.x-t.x)*(l.x-e.x)<0){s=!1;break}if((l.y-t.y)*(l.y-e.y)<0){s=!1;break}}return s}function b(t,e){for(var n=!1,r=1*h,i=1*d,o=[r,-r,0,0],a=[0,0,i,-i],s=0;sp?(l=g,n=!0):(u.x-=o[c],u.y-=a[c])}}return f>p&&(f*=m),n?v(t):0}function x(t,e){var i=0;(t.x<0||t.y<0||t.x+t.size[0]+20>n||t.y+t.size[1]+20>r)&&(i+=1e12);for(var o=0;o0&&!(++a>=50);){var s=b(t,e);0!==s&&(o=s),i=o-n,n=o,0===i?--r:r=20}return t.forEach((function(t){t.x=t.x-t.size[0]/2,t.y=t.y-t.size[1]/2})),{nodes:t,edges:e}}},92727:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forceNBody=void 0;var r=n(30617);function i(t){var e=0,n=0,r=0;if(t.length){for(var i=0;i<4;i++){(o=t[i])&&o.weight&&(e+=o.weight,n+=o.x*o.weight,r+=o.y*o.weight)}t.x=n/e,t.y=r/e,t.weight=e}else{var o=t;t.x=o.data.x,t.y=o.data.y,t.weight=o.data.weight}}e.forceNBody=function(t,e,n,a,s){var u=n/a,l=t.map((function(t,n){var r=e[t.id],i=r.data,o=r.x,a=r.y,s=r.size,l=i.layout.force.nodeStrength;return{x:o,y:a,size:s,index:n,vx:0,vy:0,weight:u*l}})),c=(0,r.quadtree)(l,(function(t){return t.x}),(function(t){return t.y})).visitAfter(i);return l.forEach((function(t){!function(t,e){e.visit((function(e,n,r,i,a){return o(e,n,r,i,a,t)}))}(t,c)})),l.map((function(n,r){var i=e[t[r].id].data.layout.force.mass,o=void 0===i?1:i;s[2*r]=n.vx/o,s[2*r+1]=n.vy/o})),s};var o=function(t,e,n,r,i,o){var a=o.x-t.x||.1,s=o.y-t.y||.1,u=r-e,l=a*a+s*s,c=Math.sqrt(l)*l;if(u*u*.811&&(o=(0,s.getAvgNodePosition)(l))}else o=void 0;return{x:null==o?void 0:o.x,y:null==o?void 0:o.y}}}}if(r){t||(t=this.getSameTypeLeafMap());var f=Array.from(new Set(a.map((function(t,e){return t[i]})))).filter((function(t){return void 0!==t})),p={};f.forEach((function(t){var e=a.filter((function(e){return e[i]===t})).map((function(t){return u[t.id]}));p[t]=(0,s.getAvgNodePosition)(e)})),h={single:function(t){return c(t)},leaf:function(t){return c(t)},others:function(t){return c(t)},center:function(t,e,n){var r=p[t[i]];return{x:null==r?void 0:r.x,y:null==r?void 0:r.y}}}}this.centripetalOptions=o(o({},this.centripetalOptions),h);var m=this.centripetalOptions,g=m.leaf,v=m.single,y=m.others;g&&"function"!=typeof g&&(this.centripetalOptions.leaf=function(){return g}),v&&"function"!=typeof v&&(this.centripetalOptions.single=function(){return v}),y&&"function"!=typeof y&&(this.centripetalOptions.others=function(){return y})},e.prototype.updateCfg=function(t){t&&Object.assign(this,t)},e.prototype.getDefaultCfg=function(){return{maxIteration:500,gravity:10,enableTick:!0,animate:!0}},e.prototype.execute=function(){var t=this;t.stop();var e=t.nodes,n=t.edges,r=t.defSpringLen;if(t.judgingDistance=0,e&&0!==e.length){t.width||"undefined"==typeof window||(t.width=window.innerWidth),t.height||"undefined"==typeof window||(t.height=window.innerHeight),t.center||(t.center=[t.width/2,t.height/2]);var i=t.center;if(1===e.length)return e[0].x=i[0],e[0].y=i[1],void t.onLayoutEnd([o({},e[0])]);t.degreesMap=(0,s.getDegreeMap)(e,n),t.propsGetMass?t.getMass=t.propsGetMass:t.getMass=function(e){var n=1;(0,s.isNumber)(e.mass)&&(n=e.mass);var r=t.degreesMap[e.id].all;return!r||r<5?n:5*r*n};var a,u=t.nodeSize;if(t.preventOverlap){var c,h=t.nodeSpacing;c=(0,s.isNumber)(h)?function(){return h}:(0,s.isFunction)(h)?h:function(){return 0},a=u?(0,s.isArray)(u)?function(t){return Math.max(u[0],u[1])+c(t)}:function(t){return u+c(t)}:function(t){return t.size?(0,s.isArray)(t.size)?Math.max(t.size[0],t.size[1])+c(t):(0,s.isObject)(t.size)?Math.max(t.size.width,t.size.height)+c(t):t.size+c(t):10+c(t)}}t.nodeSize=a,t.linkDistance=l(t.linkDistance,1),t.nodeStrength=l(t.nodeStrength,1),t.edgeStrength=l(t.edgeStrength,1);var d={},f={};e.forEach((function(e,r){(0,s.isNumber)(e.x)||(e.x=Math.random()*t.width),(0,s.isNumber)(e.y)||(e.y=Math.random()*t.height);var i=t.degreesMap[e.id];d[e.id]=o(o({},e),{data:o(o({},e.data),{size:t.nodeSize(e)||30,layout:{inDegree:i.in,outDegree:i.out,degree:i.all,tDegree:i.in,sDegree:i.out,force:{mass:t.getMass(e),nodeStrength:t.nodeStrength(e,n)}}})}),f[e.id]=r})),t.nodeMap=d,t.nodeIdxMap=f,t.edgeInfos=[],null==n||n.forEach((function(e){var n=d[e.source],i=d[e.target];n&&i?t.edgeInfos.push({edgeStrength:t.edgeStrength(e),linkDistance:r?r(o(o({},e),{source:n,target:i}),n,i):t.linkDistance(e,n,i)||1+(u(n)+u(n)||0)/2}):elf.edgeInfos.push({})})),this.getCentripetalOptions(),t.onLayoutEnd=t.onLayoutEnd||function(){},t.run()}else t.onLayoutEnd([])},e.prototype.run=function(){var t=this,e=t.maxIteration,n=t.nodes,r=t.edges,i=t.workerEnabled,o=t.minMovement,a=t.animate,s=t.nodeMap,u=t.height;if(t.currentMinY=0,t.currentMaxY=u,n){var l=[];if(n.forEach((function(t,e){l[2*e]=0,l[2*e+1]=0})),this.defSideCoe&&"function"==typeof this.defSideCoe){var c={};r.forEach((function(t){var e=t.source,n=t.target;c[e]=c[e]||[],c[e].push(t),c[n]=c[n]||[],c[n].push(t)})),this.relatedEdges=c}var h=e;if(i||!a){for(var d=0;(t.judgingDistance>o||d<1)&&d=h||t.judgingDistancea){var c=a/l;s*=c,u*=c}e[2*i]=s,e[2*i+1]=u}))},e.prototype.updatePosition=function(t,e){var n=this,r=n.nodes,i=n.distanceThresholdMode,o=n.nodeMap;if(null==r?void 0:r.length){var a=0;"max"===i?n.judgingDistance=-1/0:"min"===i&&(n.judgingDistance=1/0);var u=1/0,l=-1/0;r.forEach((function(r,c){var h=o[r.id];if((0,s.isNumber)(r.fx)&&(0,s.isNumber)(r.fy))return r.x=r.fx,r.y=r.fy,h.x=r.x,void(h.y=r.y);var d=t[2*c]*e,f=t[2*c+1]*e;r.x+=d,r.y+=f,h.x=r.x,h.y=r.y,r.yl&&(l=r.y);var p=Math.sqrt(d*d+f*f);switch(i){case"max":n.judgingDistancep&&(n.judgingDistance=p);break;default:a+=p}})),this.currentMinY=u,this.currentMaxY=l,i&&"mean"!==i||(n.judgingDistance=a/r.length)}else this.judgingDistance=0},e.prototype.stop=function(){this.timeInterval&&"undefined"!=typeof window&&window.clearInterval(this.timeInterval)},e.prototype.destroy=function(){var t=this;t.stop(),t.tick=null,t.nodes=null,t.edges=null,t.destroyed=!0},e.prototype.getType=function(){return"force2"},e.prototype.getSameTypeLeafMap=function(){var t=this,e=t.nodeClusterBy,n=t.nodes,r=t.edges,i=t.nodeMap,o=t.degreesMap;if(null==n?void 0:n.length){var a={};return n.forEach((function(t,n){1===o[t.id].all&&(a[t.id]=(0,s.getCoreNodeAndRelativeLeafNodes)("leaf",t,r,e,o,i))})),a}},e}(a.Base);e.Force2Layout=c},23151:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.id=t.id||0,this.rx=t.rx,this.ry=t.ry,this.fx=0,this.fy=0,this.mass=t.mass,this.degree=t.degree,this.g=t.g||0}return t.prototype.distanceTo=function(t){var e=this.rx-t.rx,n=this.ry-t.ry;return Math.hypot(e,n)},t.prototype.setPos=function(t,e){this.rx=t,this.ry=e},t.prototype.resetForce=function(){this.fx=0,this.fy=0},t.prototype.addForce=function(t){var e=t.rx-this.rx,n=t.ry-this.ry,r=Math.hypot(e,n);r=r<1e-4?1e-4:r;var i=this.g*(this.degree+1)*(t.degree+1)/r;this.fx+=i*e/r,this.fy+=i*n/r},t.prototype.in=function(t){return t.contains(this.rx,this.ry)},t.prototype.add=function(e){var n=this.mass+e.mass;return new t({rx:(this.rx*this.mass+e.rx*e.mass)/n,ry:(this.ry*this.mass+e.ry*e.mass)/n,mass:n,degree:this.degree+e.degree})},t}();e.default=n},48991:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ForceAtlas2Layout=void 0;var a=n(46271),s=n(81422),u=o(n(23151)),l=o(n(42784)),c=o(n(25980)),h=function(t){function e(e){var n=t.call(this)||this;return n.center=[0,0],n.width=300,n.height=300,n.nodes=[],n.edges=[],n.kr=5,n.kg=1,n.mode="normal",n.preventOverlap=!1,n.dissuadeHubs=!1,n.barnesHut=void 0,n.maxIteration=0,n.ks=.1,n.ksmax=10,n.tao=.1,n.onLayoutEnd=function(){},n.prune=void 0,n.updateCfg(e),n}return i(e,t),e.prototype.getDefaultCfg=function(){return{}},e.prototype.execute=function(){var t=this,e=t.nodes,n=t.onLayoutEnd,r=t.prune,i=t.maxIteration;t.width||"undefined"==typeof window||(t.width=window.innerWidth),t.height||"undefined"==typeof window||(t.height=window.innerHeight);for(var o=[],a=e.length,u=0;u250&&(t.barnesHut=!0),void 0===t.prune&&a>100&&(t.prune=!0),0!==this.maxIteration||t.prune?0===this.maxIteration&&r&&(i=100,a<=200&&a>100?i=500:a>200&&(i=950),this.maxIteration=i):(i=250,a<=200&&a>100?i=1e3:a>200&&(i=1200),this.maxIteration=i),t.kr||(t.kr=50,a>100&&a<=500?t.kr=20:a>500&&(t.kr=1)),t.kg||(t.kg=20,a>100&&a<=500?t.kg=10:a>500&&(t.kg=1)),this.nodes=t.updateNodesByForces(o),n()},e.prototype.updateNodesByForces=function(t){for(var e=this,n=e.edges,r=e.maxIteration,i=e.nodes,o=n.filter((function(t){return(0,s.getEdgeTerminal)(t,"source")!==(0,s.getEdgeTerminal)(t,"target")})),a=i.length,u=o.length,l=[],c={},h={},d=[],f=0;f0;){for(y=0;y50||!c)?this.getOptRepGraForces(m,v,i):this.getRepGraForces(p,50,m,100,o,i);var x=this.updatePos(m,g,f,i);s=x.nodes,f=x.sg,p--,a.tick&&a.tick()}return s},e.prototype.getAttrForces=function(t,e,n,r,i,o,a,s){for(var u=this,l=u.nodes,c=u.preventOverlap,h=u.dissuadeHubs,d=u.mode,f=u.prune,p=0;p0&&(w=x,_=x),s[2*r[m.id]]+=w*b[0],s[2*r[v.id]]-=_*b[0],s[2*r[m.id]+1]+=w*b[1],s[2*r[v.id]+1]-=_*b[1]}}return s},e.prototype.getRepGraForces=function(t,e,n,r,i,o){for(var a=this,s=a.nodes,u=a.preventOverlap,l=a.kr,c=a.kg,h=a.center,d=a.prune,f=s.length,p=0;p0&&(y=l*(o[p]+1)*(o[m]+1)/v),n[2*p]-=y*g[0],n[2*m]+=y*g[0],n[2*p+1]-=y*g[1],n[2*m+1]+=y*g[1]}var b=[s[p].x-h[0],s[p].y-h[1]],x=Math.hypot(b[0],b[1]);b[0]=b[0]/x,b[1]=b[1]/x;var w=c*(o[p]+1);n[2*p]-=w*b[0],n[2*p+1]-=w*b[1]}return n},e.prototype.getOptRepGraForces=function(t,e,n){for(var r=this,i=r.nodes,o=r.kg,a=r.center,s=r.prune,u=i.length,h=9e10,d=-9e10,f=9e10,p=-9e10,m=0;m=d&&(d=i[m].x),i[m].x<=h&&(h=i[m].x),i[m].y>=p&&(p=i[m].y),i[m].y<=f&&(f=i[m].y));var g={xmid:(d+h)/2,ymid:(p+f)/2,length:Math.max(d-h,p-f),massCenter:a,mass:u},v=new l.default(g),y=new c.default(v);for(m=0;m1.5*w?1.5*w:n);for(g=0;gE?E:_)*t[2*g],M=_*t[2*g+1];o[g].x+=A,o[g].y+=M}return{nodes:o,sg:n}},e}(a.Base);e.ForceAtlas2Layout=h},42784:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.xmid=t.xmid,this.ymid=t.ymid,this.length=t.length,this.massCenter=t.massCenter||[0,0],this.mass=t.mass||1}return t.prototype.getLength=function(){return this.length},t.prototype.contains=function(t,e){var n=this.length/2;return t<=this.xmid+n&&t>=this.xmid-n&&e<=this.ymid+n&&e>=this.ymid-n},t.prototype.NW=function(){return new t({xmid:this.xmid-this.length/4,ymid:this.ymid+this.length/4,length:this.length/2})},t.prototype.NE=function(){return new t({xmid:this.xmid+this.length/4,ymid:this.ymid+this.length/4,length:this.length/2})},t.prototype.SW=function(){return new t({xmid:this.xmid-this.length/4,ymid:this.ymid-this.length/4,length:this.length/2})},t.prototype.SE=function(){return new t({xmid:this.xmid+this.length/4,ymid:this.ymid-this.length/4,length:this.length/2})},t}();e.default=n},25980:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.body=null,this.quad=null,this.NW=null,this.NE=null,this.SW=null,this.SE=null,this.theta=.5,null!=t&&(this.quad=t)}return t.prototype.insert=function(e){null!=this.body?this._isExternal()?(this.quad&&(this.NW=new t(this.quad.NW()),this.NE=new t(this.quad.NE()),this.SW=new t(this.quad.SW()),this.SE=new t(this.quad.SE())),this._putBody(this.body),this._putBody(e),this.body=this.body.add(e)):(this.body=this.body.add(e),this._putBody(e)):this.body=e},t.prototype._putBody=function(t){this.quad&&(t.in(this.quad.NW())&&this.NW?this.NW.insert(t):t.in(this.quad.NE())&&this.NE?this.NE.insert(t):t.in(this.quad.SW())&&this.SW?this.SW.insert(t):t.in(this.quad.SE())&&this.SE&&this.SE.insert(t))},t.prototype._isExternal=function(){return null==this.NW&&null==this.NE&&null==this.SW&&null==this.SE},t.prototype.updateForce=function(t){null!=this.body&&t!==this.body&&(this._isExternal()||(this.quad?this.quad.getLength():0)/this.body.distanceTo(t)-1||(e[r]=t[r])})),e})),e.ticking=!1},e.prototype.execute=function(t){var e=this,n=e.nodes,r=e.edges;if(!e.ticking){var i=e.forceSimulation,o=e.alphaMin,a=e.alphaDecay,s=e.alpha;if(i){if(t)if(e.clustering&&e.clusterForce&&(e.clusterForce.nodes(n),e.clusterForce.links(r)),i.nodes(n),r&&e.edgeForce)e.edgeForce.links(r);else if(r&&!e.edgeForce){d=l.forceLink().id((function(t){return t.id})).links(r);e.edgeStrength&&d.strength(e.edgeStrength),e.linkDistance&&d.distance(e.linkDistance),e.edgeForce=d,i.force("link",d)}e.preventOverlap&&e.overlapProcess(i),i.alpha(s).restart(),this.ticking=!0}else try{var u=l.forceManyBody();if(e.nodeStrength&&u.strength(e.nodeStrength),i=l.forceSimulation().nodes(n),e.clustering){var h=(0,c.default)();h.centerX(e.center[0]).centerY(e.center[1]).template("force").strength(e.clusterFociStrength),r&&h.links(r),n&&h.nodes(n),h.forceLinkDistance(e.clusterEdgeDistance).forceLinkStrength(e.clusterEdgeStrength).forceCharge(e.clusterNodeStrength).forceNodeSize(e.clusterNodeSize),e.clusterForce=h,i.force("group",h)}if(i.force("center",l.forceCenter(e.center[0],e.center[1])).force("charge",u).alpha(s).alphaDecay(a).alphaMin(o),e.preventOverlap&&e.overlapProcess(i),r){var d=l.forceLink().id((function(t){return t.id})).links(r);e.edgeStrength&&d.strength(e.edgeStrength),e.linkDistance&&d.distance(e.linkDistance),e.edgeForce=d,i.force("link",d)}if(e.workerEnabled&&!m()&&(e.workerEnabled=!1,console.warn("workerEnabled option is only supported when running in web worker.")),e.workerEnabled){i.stop();for(var p=function(t){var e=t.alphaMin(),n=t.alphaTarget(),r=t.alpha(),i=Math.log((e-n)/(r-n))/Math.log(1-t.alphaDecay()),o=Math.ceil(i);return o}(i),g=1;g<=p;g++)i.tick(),postMessage({nodes:n,currentTick:g,totalTicks:p,type:f.LAYOUT_MESSAGE.TICK},void 0);e.ticking=!1}else i.on("tick",(function(){e.tick()})).on("end",(function(){e.ticking=!1,e.onLayoutEnd&&e.onLayoutEnd()})),e.ticking=!0;e.forceSimulation=i,e.ticking=!0}catch(t){e.ticking=!1,console.warn(t)}}},e.prototype.overlapProcess=function(t){var e,n,r=this,i=r.nodeSize,o=r.nodeSpacing,a=r.collideStrength;if(n=(0,h.isNumber)(o)?function(){return o}:(0,h.isFunction)(o)?o:function(){return 0},i)if((0,h.isFunction)(i))e=function(t){return i(t)+n(t)};else if((0,h.isArray)(i)){var s=(i[0]>i[1]?i[0]:i[1])/2;e=function(t){return s+n(t)}}else if((0,h.isNumber)(i)){var u=i/2;e=function(t){return u+n(t)}}else e=function(){return 10};else e=function(t){return t.size?(0,h.isArray)(t.size)?(t.size[0]>t.size[1]?t.size[0]:t.size[1])/2+n(t):(0,h.isObject)(t.size)?(t.size.width>t.size.height?t.size.width:t.size.height)/2+n(t):t.size/2+n(t):10+n(t)};t.force("collisionForce",l.forceCollide(e).strength(a))},e.prototype.updateCfg=function(t){var e=this;e.ticking&&(e.forceSimulation.stop(),e.ticking=!1),e.forceSimulation=null,Object.assign(e,t)},e.prototype.destroy=function(){var t=this;t.ticking&&(t.forceSimulation.stop(),t.ticking=!1),t.nodes=null,t.edges=null,t.destroyed=!0},e}(d.Base);function m(){return"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope}e.ForceLayout=p},24964:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(22127),e)},361:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.FruchtermanLayout=void 0;var o=n(46271),a=n(81422),s=function(t){function e(e){var n=t.call(this)||this;return n.maxIteration=1e3,n.workerEnabled=!1,n.gravity=10,n.speed=5,n.clustering=!1,n.clusterGravity=10,n.nodes=[],n.edges=[],n.width=300,n.height=300,n.nodeMap={},n.nodeIdxMap={},n.onLayoutEnd=function(){},n.tick=function(){},n.animate=!0,n.updateCfg(e),n}return i(e,t),e.prototype.getDefaultCfg=function(){return{maxIteration:1e3,gravity:10,speed:1,clustering:!1,clusterGravity:10,animate:!0}},e.prototype.execute=function(){var t,e,n=this,r=this,i=r.nodes;if(void 0!==r.timeInterval&&"undefined"!=typeof window&&window.clearInterval(r.timeInterval),i&&0!==i.length){r.width||"undefined"==typeof window||(r.width=window.innerWidth),r.height||"undefined"==typeof window||(r.height=window.innerHeight),r.center||(r.center=[r.width/2,r.height/2]);var o=r.center;if(1===i.length)return i[0].x=o[0],i[0].y=o[1],void(null===(e=r.onLayoutEnd)||void 0===e||e.call(r));var s={},u={};return i.forEach((function(t,e){(0,a.isNumber)(t.x)||(t.x=Math.random()*n.width),(0,a.isNumber)(t.y)||(t.y=Math.random()*n.height),s[t.id]=t,u[t.id]=e})),r.nodeMap=s,r.nodeIdxMap=u,r.run()}null===(t=r.onLayoutEnd)||void 0===t||t.call(r)},e.prototype.run=function(){var t,e=this,n=e.nodes;if(n){var r=e.edges,i=e.maxIteration,o=e.workerEnabled,a=e.clustering,s=e.animate,u={};if(a&&n.forEach((function(t){void 0===u[t.cluster]&&(u[t.cluster]={name:t.cluster,cx:0,cy:0,count:0})})),o||!s){for(var l=0;l=i&&(null===(t=e.onLayoutEnd)||void 0===t||t.call(e),window.clearInterval(e.timeInterval))}),0)}return{nodes:n,edges:r}}},e.prototype.runOneStep=function(t){var e,n=this,r=n.nodes;if(r){var i=n.edges,o=n.center,s=n.gravity,u=n.speed,l=n.clustering,c=n.height*n.width,h=Math.sqrt(c)/10,d=c/(r.length+1),f=Math.sqrt(d),p=[];if(r.forEach((function(t,e){p[e]={x:0,y:0}})),n.applyCalculate(r,i,p,f,d),l){for(var m in t)t[m].cx=0,t[m].cy=0,t[m].count=0;for(var m in r.forEach((function(e){var n=t[e.cluster];(0,a.isNumber)(e.x)&&(n.cx+=e.x),(0,a.isNumber)(e.y)&&(n.cy+=e.y),n.count++})),t)t[m].cx/=t[m].count,t[m].cy/=t[m].count;var g=n.clusterGravity||s;r.forEach((function(e,n){if((0,a.isNumber)(e.x)&&(0,a.isNumber)(e.y)){var r=t[e.cluster],i=Math.sqrt((e.x-r.cx)*(e.x-r.cx)+(e.y-r.cy)*(e.y-r.cy)),o=f*g;p[n].x-=o*(e.x-r.cx)/i,p[n].y-=o*(e.y-r.cy)/i}}))}r.forEach((function(t,e){if((0,a.isNumber)(t.x)&&(0,a.isNumber)(t.y)){var n=.01*f*s;p[e].x-=n*(t.x-o[0]),p[e].y-=n*(t.y-o[1])}})),r.forEach((function(t,e){if((0,a.isNumber)(t.fx)&&(0,a.isNumber)(t.fy))return t.x=t.fx,void(t.y=t.fy);if((0,a.isNumber)(t.x)&&(0,a.isNumber)(t.y)){var n=Math.sqrt(p[e].x*p[e].x+p[e].y*p[e].y);if(n>0){var r=Math.min(h*(u/800),n);t.x+=p[e].x/n*r,t.y+=p[e].y/n*r}}})),null===(e=n.tick)||void 0===e||e.call(n)}},e.prototype.applyCalculate=function(t,e,n,r,i){this.calRepulsive(t,n,i),e&&this.calAttractive(e,n,r)},e.prototype.calRepulsive=function(t,e,n){t.forEach((function(r,i){e[i]={x:0,y:0},t.forEach((function(t,o){if(i!==o&&(0,a.isNumber)(r.x)&&(0,a.isNumber)(t.x)&&(0,a.isNumber)(r.y)&&(0,a.isNumber)(t.y)){var s=r.x-t.x,u=r.y-t.y,l=s*s+u*u;if(0===l){l=1;var c=i>o?1:-1;s=.01*c,u=.01*c}var h=n/l;e[i].x+=s*h,e[i].y+=u*h}}))}))},e.prototype.calAttractive=function(t,e,n){var r=this;t.forEach((function(t){var i=(0,a.getEdgeTerminal)(t,"source"),o=(0,a.getEdgeTerminal)(t,"target");if(i&&o){var s=r.nodeIdxMap[i],u=r.nodeIdxMap[o];if(s!==u){var l=r.nodeMap[i],c=r.nodeMap[o];if((0,a.isNumber)(c.x)&&(0,a.isNumber)(l.x)&&(0,a.isNumber)(c.y)&&(0,a.isNumber)(l.y)){var h=c.x-l.x,d=c.y-l.y,f=Math.sqrt(h*h+d*d),p=f*f/n;e[u].x-=h/f*p,e[u].y-=d/f*p,e[s].x+=h/f*p,e[s].y+=d/f*p}}}}))},e.prototype.stop=function(){this.timeInterval&&"undefined"!=typeof window&&window.clearInterval(this.timeInterval)},e.prototype.destroy=function(){var t=this;t.stop(),t.tick=null,t.nodes=null,t.edges=null,t.destroyed=!0},e.prototype.getType=function(){return"fruchterman"},e}(o.Base);e.FruchtermanLayout=s},70238:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.GForceLayout=void 0;var o=n(46271),a=n(81422),s=function(t,e){return t?(0,a.isNumber)(t)?function(e){return t}:t:function(t){return e||1}},u=function(t){function e(e){var n=t.call(this)||this;return n.maxIteration=500,n.workerEnabled=!1,n.edgeStrength=200,n.nodeStrength=1e3,n.coulombDisScale=.005,n.damping=.9,n.maxSpeed=1e3,n.minMovement=.5,n.interval=.02,n.factor=1,n.linkDistance=1,n.gravity=10,n.preventOverlap=!0,n.collideStrength=1,n.tick=function(){},n.nodes=[],n.edges=[],n.width=300,n.height=300,n.nodeMap={},n.nodeIdxMap={},n.animate=!0,n.updateCfg(e),n}return i(e,t),e.prototype.getDefaultCfg=function(){return{maxIteration:500,gravity:10,enableTick:!0,animate:!0}},e.prototype.execute=function(){var t,e,n=this,r=n.nodes;if(void 0!==n.timeInterval&&"undefined"!=typeof window&&window.clearInterval(n.timeInterval),r&&0!==r.length){n.width||"undefined"==typeof window||(n.width=window.innerWidth),n.height||"undefined"==typeof window||(n.height=window.innerHeight),n.center||(n.center=[n.width/2,n.height/2]);var i=n.center;if(1===r.length)return r[0].x=i[0],r[0].y=i[1],void(null===(e=n.onLayoutEnd)||void 0===e||e.call(n));var o={},u={};r.forEach((function(t,e){(0,a.isNumber)(t.x)||(t.x=Math.random()*n.width),(0,a.isNumber)(t.y)||(t.y=Math.random()*n.height),o[t.id]=t,u[t.id]=e})),n.nodeMap=o,n.nodeIdxMap=u,n.linkDistance=s(n.linkDistance,1),n.nodeStrength=s(n.nodeStrength,1),n.edgeStrength=s(n.edgeStrength,1);var l,c=n.nodeSize;if(n.preventOverlap){var h,d=n.nodeSpacing;h=(0,a.isNumber)(d)?function(){return d}:(0,a.isFunction)(d)?d:function(){return 0},l=c?(0,a.isArray)(c)?function(t){return Math.max(c[0],c[1])+h(t)}:function(t){return c+h(t)}:function(t){return t.size?(0,a.isArray)(t.size)?Math.max(t.size[0],t.size[1])+h(t):(0,a.isObject)(t.size)?Math.max(t.size.width,t.size.height)+h(t):t.size+h(t):10+h(t)}}n.nodeSize=l;var f=n.edges;n.degrees=(0,a.getDegree)(r.length,n.nodeIdxMap,f),n.getMass||(n.getMass=function(t){return t.mass||n.degrees[n.nodeIdxMap[t.id]].all||1}),n.run()}else null===(t=n.onLayoutEnd)||void 0===t||t.call(n)},e.prototype.run=function(){var t,e=this,n=e.maxIteration,r=e.nodes,i=e.workerEnabled,o=e.minMovement,a=e.animate;if(r)if(i||!a){for(var s=0;s=n&&(null===(i=e.onLayoutEnd)||void 0===i||i.call(e),window.clearInterval(e.timeInterval))}}),0)}},e.prototype.reachMoveThreshold=function(t,e,n){var r=0;return t.forEach((function(t,n){var i=t.x-e[n].x,o=t.y-e[n].y;r+=Math.sqrt(i*i+o*o)})),(r/=t.length)=d)){var f=n.x-e.x,p=n.y-e.y;0===f&&0===p&&(f=.01*Math.random(),p=.01*Math.random());var m=f*f+p*p,g=Math.sqrt(m),v=(g+.1)*o,y=f/g,b=p/g,x=.5*(l(n)+l(e))*i/(v*v),w=r?r(e):1;if(t[2*s]+=y*x,t[2*s+1]+=b*x,t[2*d]-=y*x,t[2*d+1]-=b*x,a&&(c(n)+c(e))/2>g){var _=u*(l(n)+l(e))*.5/m;t[2*s]+=y*_/h,t[2*s+1]+=b*_/h,t[2*d]-=y*_/w,t[2*d+1]-=b*_/w}}}))}))},e.prototype.calAttractive=function(t,e){var n=this,r=n.nodeMap,i=n.nodeIdxMap,o=n.linkDistance,s=n.edgeStrength,u=n.nodeSize,l=n.getMass;e.forEach((function(e,n){var c=(0,a.getEdgeTerminal)(e,"source"),h=(0,a.getEdgeTerminal)(e,"target"),d=r[c],f=r[h],p=f.x-d.x,m=f.y-d.y;0===p&&0===m&&(p=.01*Math.random(),m=.01*Math.random());var g=Math.sqrt(p*p+m*m),v=p/g,y=m/g,b=((o(e,d,f)||1+(u(d)+u(f)||0)/2)-g)*s(e),x=i[c],w=i[h],_=l?l(d):1,S=l?l(f):1;t[2*x]-=v*b/_,t[2*x+1]-=y*b/_,t[2*w]+=v*b/S,t[2*w+1]+=y*b/S}))},e.prototype.calGravity=function(t,e){for(var n=this,r=n.center,i=n.gravity,o=n.degrees,s=e.length,u=0;ui.maxSpeed){var l=i.maxSpeed/u;a*=l,s*=l}e[2*r]=a,e[2*r+1]=s}))},e.prototype.updatePosition=function(t,e,n){n.forEach((function(n,r){if((0,a.isNumber)(n.fx)&&(0,a.isNumber)(n.fy))return n.x=n.fx,void(n.y=n.fy);var i=t[2*r]*e,o=t[2*r+1]*e;n.x+=i,n.y+=o}))},e.prototype.stop=function(){this.timeInterval&&"undefined"!=typeof window&&window.clearInterval(this.timeInterval)},e.prototype.destroy=function(){var t=this;t.stop(),t.tick=null,t.nodes=null,t.edges=null,t.destroyed=!0},e.prototype.getType=function(){return"gForce"},e}(o.Base);e.GForceLayout=u},25444:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.clusterBundle=e.clusterCode=e.fruchtermanBundle=e.fruchtermanCode=void 0,e.fruchtermanCode="\nimport { globalInvocationID } from 'g-webgpu';\nconst MAX_EDGE_PER_VERTEX;\nconst VERTEX_COUNT;\n@numthreads(1, 1, 1)\nclass Fruchterman {\n @in @out\n u_Data: vec4[];\n @in\n u_K: float;\n @in\n u_K2: float;\n \n @in\n u_Center: vec2;\n @in\n u_Gravity: float;\n @in\n u_ClusterGravity: float;\n @in\n u_Speed: float;\n @in\n u_MaxDisplace: float;\n @in\n u_Clustering: float;\n @in\n u_AttributeArray: vec4[];\n @in\n u_ClusterCenters: vec4[];\n calcRepulsive(i: int, currentNode: vec4): vec2 {\n let dx = 0, dy = 0;\n for (let j = 0; j < VERTEX_COUNT; j++) {\n if (i != j) {\n const nextNode = this.u_Data[j];\n const xDist = currentNode[0] - nextNode[0];\n const yDist = currentNode[1] - nextNode[1];\n const dist = (xDist * xDist + yDist * yDist) + 0.01;\n let param = this.u_K2 / dist;\n \n if (dist > 0.0) {\n dx += param * xDist;\n dy += param * yDist;\n if (xDist == 0 && yDist == 0) {\n const sign = i < j ? 1 : -1;\n dx += param * sign;\n dy += param * sign;\n }\n }\n }\n }\n return [dx, dy];\n }\n calcGravity(currentNode: vec4, nodeAttributes: vec4): vec2 { // \n let dx = 0, dy = 0;\n const vx = currentNode[0] - this.u_Center[0];\n const vy = currentNode[1] - this.u_Center[1];\n const gf = 0.01 * this.u_K * this.u_Gravity;\n dx = gf * vx;\n dy = gf * vy;\n if (this.u_Clustering == 1) {\n const clusterIdx = int(nodeAttributes[0]);\n const center = this.u_ClusterCenters[clusterIdx];\n const cvx = currentNode[0] - center[0];\n const cvy = currentNode[1] - center[1];\n const dist = sqrt(cvx * cvx + cvy * cvy) + 0.01;\n const parma = this.u_K * this.u_ClusterGravity / dist;\n dx += parma * cvx;\n dy += parma * cvy;\n }\n return [dx, dy];\n }\n calcAttractive(i: int, currentNode: vec4): vec2 {\n let dx = 0, dy = 0;\n const arr_offset = int(floor(currentNode[2] + 0.5));\n const length = int(floor(currentNode[3] + 0.5));\n const node_buffer: vec4;\n for (let p = 0; p < MAX_EDGE_PER_VERTEX; p++) {\n if (p >= length) break;\n const arr_idx = arr_offset + p;\n // when arr_idx % 4 == 0 update currentNodedx_buffer\n const buf_offset = arr_idx - arr_idx / 4 * 4;\n if (p == 0 || buf_offset == 0) {\n node_buffer = this.u_Data[int(arr_idx / 4)];\n }\n const float_j = buf_offset == 0 ? node_buffer[0] :\n buf_offset == 1 ? node_buffer[1] :\n buf_offset == 2 ? node_buffer[2] :\n node_buffer[3];\n const nextNode = this.u_Data[int(float_j)];\n const xDist = currentNode[0] - nextNode[0];\n const yDist = currentNode[1] - nextNode[1];\n const dist = sqrt(xDist * xDist + yDist * yDist) + 0.01;\n let attractiveF = dist / this.u_K;\n \n if (dist > 0.0) {\n dx -= xDist * attractiveF;\n dy -= yDist * attractiveF;\n if (xDist == 0 && yDist == 0) {\n const sign = i < int(float_j) ? 1 : -1;\n dx -= sign * attractiveF;\n dy -= sign * attractiveF;\n }\n }\n }\n return [dx, dy];\n }\n @main\n compute() {\n const i = globalInvocationID.x;\n const currentNode = this.u_Data[i];\n let dx = 0, dy = 0;\n if (i >= VERTEX_COUNT) {\n this.u_Data[i] = currentNode;\n return;\n }\n\n // [gravity, fx, fy, 0]\n const nodeAttributes = this.u_AttributeArray[i];\n\n if (nodeAttributes[1] != 0 && nodeAttributes[2] != 0) {\n // the node is fixed\n this.u_Data[i] = [\n nodeAttributes[1],\n nodeAttributes[2],\n currentNode[2],\n currentNode[3]\n ];\n return;\n }\n\n // repulsive\n const repulsive = this.calcRepulsive(i, currentNode);\n dx += repulsive[0];\n dy += repulsive[1];\n // attractive\n const attractive = this.calcAttractive(i, currentNode);\n dx += attractive[0];\n dy += attractive[1];\n // gravity\n const gravity = this.calcGravity(currentNode, nodeAttributes);\n dx -= gravity[0];\n dy -= gravity[1];\n // speed\n dx *= this.u_Speed;\n dy *= this.u_Speed;\n\n // move\n const distLength = sqrt(dx * dx + dy * dy);\n if (distLength > 0.0) {\n const limitedDist = min(this.u_MaxDisplace * this.u_Speed, distLength);\n this.u_Data[i] = [\n currentNode[0] + dx / distLength * limitedDist,\n currentNode[1] + dy / distLength * limitedDist,\n currentNode[2],\n currentNode[3]\n ];\n }\n }\n}\n",e.fruchtermanBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define MAX_EDGE_PER_VERTEX __DefineValuePlaceholder__MAX_EDGE_PER_VERTEX\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_K;\\nuniform float u_K2;\\nuniform vec2 u_Center;\\nuniform float u_Gravity;\\nuniform float u_ClusterGravity;\\nuniform float u_Speed;\\nuniform float u_MaxDisplace;\\nuniform float u_Clustering;\\nuniform sampler2D u_AttributeArray;\\nuniform vec2 u_AttributeArraySize;\\nvec4 getDatau_AttributeArray(vec2 address2D) {\\n return vec4(texture2D(u_AttributeArray, address2D).rgba);\\n}\\nvec4 getDatau_AttributeArray(float address1D) {\\n return getDatau_AttributeArray(addrTranslation_1Dto2D(address1D, u_AttributeArraySize));\\n}\\nvec4 getDatau_AttributeArray(int address1D) {\\n return getDatau_AttributeArray(float(address1D));\\n}\\nuniform sampler2D u_ClusterCenters;\\nuniform vec2 u_ClusterCentersSize;\\nvec4 getDatau_ClusterCenters(vec2 address2D) {\\n return vec4(texture2D(u_ClusterCenters, address2D).rgba);\\n}\\nvec4 getDatau_ClusterCenters(float address1D) {\\n return getDatau_ClusterCenters(addrTranslation_1Dto2D(address1D, u_ClusterCentersSize));\\n}\\nvec4 getDatau_ClusterCenters(int address1D) {\\n return getDatau_ClusterCenters(float(address1D));\\n}\\nvec2 calcRepulsive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {if (i != j) {vec4 nextNode = getDatau_Data(j);\\nfloat xDist = currentNode.x - nextNode.x;\\nfloat yDist = currentNode.y - nextNode.y;\\nfloat dist = ((xDist * xDist) + (yDist * yDist)) + 0.01;\\nfloat param = u_K2 / dist;\\nif (dist > 0.0) {dx += param * xDist;\\ndy += param * yDist;\\nif ((xDist == 0.0) && (yDist == 0.0)) {float sign = (i < j) ? (1.0) : (-1.0);\\ndx += param * sign;\\ndy += param * sign;}}}}\\nreturn vec2(dx, dy);}\\nvec2 calcGravity(vec4 currentNode, vec4 nodeAttributes) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nfloat vx = currentNode.x - u_Center.x;\\nfloat vy = currentNode.y - u_Center.y;\\nfloat gf = (0.01 * u_K) * u_Gravity;\\ndx = gf * vx;\\ndy = gf * vy;\\nif (u_Clustering == 1.0) {int clusterIdx = int(nodeAttributes.x);\\nvec4 center = getDatau_ClusterCenters(clusterIdx);\\nfloat cvx = currentNode.x - center.x;\\nfloat cvy = currentNode.y - center.y;\\nfloat dist = sqrt((cvx * cvx) + (cvy * cvy)) + 0.01;\\nfloat parma = (u_K * u_ClusterGravity) / dist;\\ndx += parma * cvx;\\ndy += parma * cvy;}\\nreturn vec2(dx, dy);}\\nvec2 calcAttractive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nint arr_offset = int(floor(currentNode.z + 0.5));\\nint length = int(floor(currentNode.w + 0.5));\\nvec4 node_buffer;\\nfor (int p = 0; p < MAX_EDGE_PER_VERTEX; p++) {if (p >= length) {break;}\\nint arr_idx = arr_offset + int(p);\\nint buf_offset = arr_idx - ((arr_idx / 4) * 4);\\nif ((p == 0) || (buf_offset == 0)) {node_buffer = getDatau_Data(int(arr_idx / 4));}\\nfloat float_j = (buf_offset == 0) ? (node_buffer.x) : ((buf_offset == 1) ? (node_buffer.y) : ((buf_offset == 2) ? (node_buffer.z) : (node_buffer.w)));\\nvec4 nextNode = getDatau_Data(int(float_j));\\nfloat xDist = currentNode.x - nextNode.x;\\nfloat yDist = currentNode.y - nextNode.y;\\nfloat dist = sqrt((xDist * xDist) + (yDist * yDist)) + 0.01;\\nfloat attractiveF = dist / u_K;\\nif (dist > 0.0) {dx -= xDist * attractiveF;\\ndy -= yDist * attractiveF;\\nif ((xDist == 0.0) && (yDist == 0.0)) {float sign = (i < int(float_j)) ? (1.0) : (-1.0);\\ndx -= sign * attractiveF;\\ndy -= sign * attractiveF;}}}\\nreturn vec2(dx, dy);}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 currentNode = getDatau_Data(i);\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nif (i >= VERTEX_COUNT) {gl_FragColor = vec4(currentNode);\\nreturn ;}\\nvec4 nodeAttributes = getDatau_AttributeArray(i);\\nif ((nodeAttributes.y != 0.0) && (nodeAttributes.z != 0.0)) {gl_FragColor = vec4(vec4(nodeAttributes.y, nodeAttributes.z, currentNode.z, currentNode.w));\\nreturn ;}\\nvec2 repulsive = calcRepulsive(i, currentNode);\\ndx += repulsive.x;\\ndy += repulsive.y;\\nvec2 attractive = calcAttractive(i, currentNode);\\ndx += attractive.x;\\ndy += attractive.y;\\nvec2 gravity = calcGravity(currentNode, nodeAttributes);\\ndx -= gravity.x;\\ndy -= gravity.y;\\ndx *= u_Speed;\\ndy *= u_Speed;\\nfloat distLength = sqrt((dx * dx) + (dy * dy));\\nif (distLength > 0.0) {float limitedDist = min(u_MaxDisplace * u_Speed, distLength);\\ngl_FragColor = vec4(vec4(currentNode.x + ((dx / distLength) * limitedDist), currentNode.y + ((dy / distLength) * limitedDist), currentNode.z, currentNode.w));}if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"MAX_EDGE_PER_VERTEX","type":"Float","runtime":true},{"name":"VERTEX_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]},{"name":"u_K","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_K2","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Center","type":"vec2","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Gravity","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterGravity","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Speed","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_MaxDisplace","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Clustering","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AttributeArray","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterCenters","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_Data","size":[1,1],"length":1},"needPingpong":true}}',e.clusterCode="\nimport { globalInvocationID } from 'g-webgpu';\nconst VERTEX_COUNT;\nconst CLUSTER_COUNT;\n@numthreads(1, 1, 1)\nclass CalcCenter {\n @in\n u_Data: vec4[];\n @in\n u_NodeAttributes: vec4[]; // [[clusterIdx, 0, 0, 0], ...]\n @in @out\n u_ClusterCenters: vec4[]; // [[cx, cy, nodeCount, clusterIdx], ...]\n @main\n compute() {\n const i = globalInvocationID.x;\n const center = this.u_ClusterCenters[i];\n let sumx = 0;\n let sumy = 0;\n let count = 0;\n for (let j = 0; j < VERTEX_COUNT; j++) {\n const attributes = this.u_NodeAttributes[j];\n const clusterIdx = int(attributes[0]);\n const vertex = this.u_Data[j];\n if (clusterIdx == i) {\n sumx += vertex.x;\n sumy += vertex.y;\n count += 1;\n }\n }\n this.u_ClusterCenters[i] = [\n sumx / count,\n sumy / count,\n count,\n i\n ];\n }\n}\n",e.clusterBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n#define CLUSTER_COUNT __DefineValuePlaceholder__CLUSTER_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform sampler2D u_NodeAttributes;\\nuniform vec2 u_NodeAttributesSize;\\nvec4 getDatau_NodeAttributes(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributes, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributes(float address1D) {\\n return getDatau_NodeAttributes(addrTranslation_1Dto2D(address1D, u_NodeAttributesSize));\\n}\\nvec4 getDatau_NodeAttributes(int address1D) {\\n return getDatau_NodeAttributes(float(address1D));\\n}\\nuniform sampler2D u_ClusterCenters;\\nuniform vec2 u_ClusterCentersSize;\\nvec4 getDatau_ClusterCenters(vec2 address2D) {\\n return vec4(texture2D(u_ClusterCenters, address2D).rgba);\\n}\\nvec4 getDatau_ClusterCenters(float address1D) {\\n return getDatau_ClusterCenters(addrTranslation_1Dto2D(address1D, u_ClusterCentersSize));\\n}\\nvec4 getDatau_ClusterCenters(int address1D) {\\n return getDatau_ClusterCenters(float(address1D));\\n}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 center = getDatau_ClusterCenters(i);\\nfloat sumx = 0.0;\\nfloat sumy = 0.0;\\nfloat count = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {vec4 attributes = getDatau_NodeAttributes(j);\\nint clusterIdx = int(attributes.x);\\nvec4 vertex = getDatau_Data(j);\\nif (clusterIdx == i) {sumx += vertex.x;\\nsumy += vertex.y;\\ncount += 1.0;}}\\ngl_FragColor = vec4(vec4(sumx / count, sumy / count, count, i));if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"VERTEX_COUNT","type":"Float","runtime":true},{"name":"CLUSTER_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributes","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterCenters","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_ClusterCenters","size":[1,1],"length":1},"needPingpong":true}}'},62121:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.aveMovementBundle=e.aveMovementCode=e.gForceBundle=e.gForceCode=void 0,e.gForceCode="\nimport { globalInvocationID } from 'g-webgpu';\n\nconst MAX_EDGE_PER_VERTEX;\nconst VERTEX_COUNT;\nconst SHIFT_20 = 1048576;\n\n@numthreads(1, 1, 1)\nclass GGForce {\n @in @out\n u_Data: vec4[];\n\n @in\n u_damping: float;\n \n @in\n u_maxSpeed: float;\n\n @in\n u_minMovement: float;\n\n @in\n u_AveMovement: vec4[];\n\n @in\n u_coulombDisScale: float;\n\n @in\n u_factor: float;\n\n @in\n u_NodeAttributeArray1: vec4[];\n\n @in\n u_NodeAttributeArray2: vec4[];\n\n @in\n u_interval: float;\n\n unpack_float(packedValue: float): ivec2 {\n const packedIntValue = int(packedValue);\n const v0 = packedIntValue / SHIFT_20;\n return [v0, packedIntValue - v0 * SHIFT_20];\n }\n\n calcRepulsive(i: int, currentNode: vec4): vec2 {\n let ax = 0, ay = 0;\n for (let j: int = 0; j < VERTEX_COUNT; j++) {\n if (i != j) {\n const nextNode = this.u_Data[j];\n const vx = currentNode[0] - nextNode[0];\n const vy = currentNode[1] - nextNode[1];\n const dist = sqrt(vx * vx + vy * vy) + 0.01;\n const n_dist = (dist + 0.1) * this.u_coulombDisScale;\n const direx = vx / dist;\n const direy = vy / dist;\n const attributesi = this.u_NodeAttributeArray1[i];\n const attributesj = this.u_NodeAttributeArray1[j];\n const massi = attributesi[0];\n const nodeStrengthi = attributesi[2];\n const nodeStrengthj = attributesj[2];\n const nodeStrength = (nodeStrengthi + nodeStrengthj) / 2;\n // const param = nodeStrength * this.u_factor / (n_dist * n_dist * massi);\n const param = nodeStrength * this.u_factor / (n_dist * n_dist);\n ax += direx * param;\n ay += direy * param;\n }\n }\n return [ax, ay];\n }\n\n calcGravity(i: int, currentNode: vec4, attributes2: vec4): vec2 {\n // note: attributes2 = [centerX, centerY, gravity, 0]\n\n const vx = currentNode[0] - attributes2[0];\n const vy = currentNode[1] - attributes2[1];\n \n const ax = vx * attributes2[2];\n const ay = vy * attributes2[2];\n \n return [ax, ay];\n }\n\n calcAttractive(i: int, currentNode: vec4, attributes1: vec4): vec2 {\n // note: attributes1 = [mass, degree, nodeSterngth, 0]\n\n const mass = attributes1[0];\n let ax = 0, ay = 0;\n // const arr_offset = int(floor(currentNode[2] + 0.5));\n // const length = int(floor(currentNode[3] + 0.5));\n\n const compressed = this.unpack_float(currentNode[2]);\n const length = compressed[0];\n const arr_offset = compressed[1];\n\n const node_buffer: vec4;\n for (let p: int = 0; p < MAX_EDGE_PER_VERTEX; p++) {\n if (p >= length) break;\n const arr_idx = arr_offset + 4 * p; // i 节点的第 p 条边开始的小格子位置\n const buf_offset = arr_idx - arr_idx / 4 * 4;\n if (p == 0 || buf_offset == 0) {\n node_buffer = this.u_Data[int(arr_idx / 4)]; // 大格子,大格子位置=小个子位置 / 4,\n }\n\n let float_j: float = node_buffer[0];\n\n const nextNode = this.u_Data[int(float_j)];\n const vx = nextNode[0] - currentNode[0];\n const vy = nextNode[1] - currentNode[1];\n const dist = sqrt(vx * vx + vy * vy) + 0.01;\n const direx = vx / dist;\n const direy = vy / dist;\n const edgeLength = node_buffer[1];\n const edgeStrength = node_buffer[2];\n const diff: float = edgeLength - dist;//edgeLength\n // const param = diff * this.u_stiffness / mass; //\n const param = diff * edgeStrength / mass; // \n ax -= direx * param;\n ay -= direy * param;\n }\n return [ax, ay];\n }\n\n @main\n compute() {\n const i = globalInvocationID.x;\n const currentNode = this.u_Data[i];\n const movement = u_AveMovement[0];\n let ax = 0, ay = 0;\n\n if (i >= VERTEX_COUNT || movement.x < u_minMovement) {\n this.u_Data[i] = currentNode;\n return;\n }\n\n // 每个节点属性占两个数组中各一格\n // [mass, degree, nodeStrength, fx]\n const nodeAttributes1 = this.u_NodeAttributeArray1[i];\n // [centerX, centerY, centerGravity, fy]\n const nodeAttributes2 = this.u_NodeAttributeArray2[i];\n\n // repulsive\n const repulsive = this.calcRepulsive(i, currentNode);\n ax += repulsive[0];\n ay += repulsive[1];\n\n // attractive\n const attractive = this.calcAttractive(i, currentNode, nodeAttributes1);\n ax += attractive[0];\n ay += attractive[1];\n\n // gravity\n const gravity = this.calcGravity(i, currentNode, nodeAttributes2);\n ax -= gravity[0];\n ay -= gravity[1];\n\n // speed\n const param = this.u_interval * this.u_damping;\n let vx = ax * param;\n let vy = ay * param;\n const vlength = sqrt(vx * vx + vy * vy) + 0.0001;\n if (vlength > this.u_maxSpeed) {\n const param2 = this.u_maxSpeed / vlength;\n vx = param2 * vx;\n vy = param2 * vy;\n }\n\n // move\n if (nodeAttributes1[3] != 0 && nodeAttributes2[3] != 0) {\n this.u_Data[i] = [\n nodeAttributes1[3],\n nodeAttributes2[3],\n currentNode[2],\n 0\n ];\n } else {\n const distx = vx * this.u_interval;\n const disty = vy * this.u_interval;\n const distLength = sqrt(distx * distx + disty * disty);\n this.u_Data[i] = [\n currentNode[0] + distx,\n currentNode[1] + disty,\n currentNode[2],\n distLength\n ];\n }\n \n // the avarage move distance\n // need to share memory\n \n }\n}\n",e.gForceBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define MAX_EDGE_PER_VERTEX __DefineValuePlaceholder__MAX_EDGE_PER_VERTEX\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n#define SHIFT_20 1048576.0\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_damping;\\nuniform float u_maxSpeed;\\nuniform float u_minMovement;\\nuniform sampler2D u_AveMovement;\\nuniform vec2 u_AveMovementSize;\\nvec4 getDatau_AveMovement(vec2 address2D) {\\n return vec4(texture2D(u_AveMovement, address2D).rgba);\\n}\\nvec4 getDatau_AveMovement(float address1D) {\\n return getDatau_AveMovement(addrTranslation_1Dto2D(address1D, u_AveMovementSize));\\n}\\nvec4 getDatau_AveMovement(int address1D) {\\n return getDatau_AveMovement(float(address1D));\\n}\\nuniform float u_coulombDisScale;\\nuniform float u_factor;\\nuniform sampler2D u_NodeAttributeArray1;\\nuniform vec2 u_NodeAttributeArray1Size;\\nvec4 getDatau_NodeAttributeArray1(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributeArray1, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributeArray1(float address1D) {\\n return getDatau_NodeAttributeArray1(addrTranslation_1Dto2D(address1D, u_NodeAttributeArray1Size));\\n}\\nvec4 getDatau_NodeAttributeArray1(int address1D) {\\n return getDatau_NodeAttributeArray1(float(address1D));\\n}\\nuniform sampler2D u_NodeAttributeArray2;\\nuniform vec2 u_NodeAttributeArray2Size;\\nvec4 getDatau_NodeAttributeArray2(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributeArray2, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributeArray2(float address1D) {\\n return getDatau_NodeAttributeArray2(addrTranslation_1Dto2D(address1D, u_NodeAttributeArray2Size));\\n}\\nvec4 getDatau_NodeAttributeArray2(int address1D) {\\n return getDatau_NodeAttributeArray2(float(address1D));\\n}\\nuniform float u_interval;\\nivec2 unpack_float(float packedValue) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint packedIntValue = int(packedValue);\\nint v0 = packedIntValue / int(SHIFT_20);\\nreturn ivec2(v0, packedIntValue - (v0 * int(SHIFT_20)));}\\nvec2 calcRepulsive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {if (i != j) {vec4 nextNode = getDatau_Data(j);\\nfloat vx = currentNode.x - nextNode.x;\\nfloat vy = currentNode.y - nextNode.y;\\nfloat dist = sqrt((vx * vx) + (vy * vy)) + 0.01;\\nfloat n_dist = (dist + 0.1) * u_coulombDisScale;\\nfloat direx = vx / dist;\\nfloat direy = vy / dist;\\nvec4 attributesi = getDatau_NodeAttributeArray1(i);\\nvec4 attributesj = getDatau_NodeAttributeArray1(j);\\nfloat massi = attributesi.x;\\nfloat nodeStrengthi = attributesi.z;\\nfloat nodeStrengthj = attributesj.z;\\nfloat nodeStrength = (nodeStrengthi + nodeStrengthj) / 2.0;\\nfloat param = (nodeStrength * u_factor) / (n_dist * n_dist);\\nax += direx * param;\\nay += direy * param;}}\\nreturn vec2(ax, ay);}\\nvec2 calcGravity(int i, vec4 currentNode, vec4 attributes2) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat vx = currentNode.x - attributes2.x;\\nfloat vy = currentNode.y - attributes2.y;\\nfloat ax = vx * attributes2.z;\\nfloat ay = vy * attributes2.z;\\nreturn vec2(ax, ay);}\\nvec2 calcAttractive(int i, vec4 currentNode, vec4 attributes1) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat mass = attributes1.x;\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nivec2 compressed = unpack_float(currentNode.z);\\nint length = compressed.x;\\nint arr_offset = compressed.y;\\nvec4 node_buffer;\\nfor (int p = 0; p < MAX_EDGE_PER_VERTEX; p++) {if (p >= length) {break;}\\nint arr_idx = arr_offset + (4 * p);\\nint buf_offset = arr_idx - ((arr_idx / 4) * 4);\\nif ((p == 0) || (buf_offset == 0)) {node_buffer = getDatau_Data(int(arr_idx / 4));}\\nfloat float_j = node_buffer.x;\\nvec4 nextNode = getDatau_Data(int(float_j));\\nfloat vx = nextNode.x - currentNode.x;\\nfloat vy = nextNode.y - currentNode.y;\\nfloat dist = sqrt((vx * vx) + (vy * vy)) + 0.01;\\nfloat direx = vx / dist;\\nfloat direy = vy / dist;\\nfloat edgeLength = node_buffer.y;\\nfloat edgeStrength = node_buffer.z;\\nfloat diff = edgeLength - dist;\\nfloat param = (diff * edgeStrength) / mass;\\nax -= direx * param;\\nay -= direy * param;}\\nreturn vec2(ax, ay);}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 currentNode = getDatau_Data(i);\\nvec4 movement = getDatau_AveMovement(0.0);\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nif ((i >= VERTEX_COUNT) || (movement.x < u_minMovement)) {gl_FragColor = vec4(currentNode);\\nreturn ;}\\nvec4 nodeAttributes1 = getDatau_NodeAttributeArray1(i);\\nvec4 nodeAttributes2 = getDatau_NodeAttributeArray2(i);\\nvec2 repulsive = calcRepulsive(i, currentNode);\\nax += repulsive.x;\\nay += repulsive.y;\\nvec2 attractive = calcAttractive(i, currentNode, nodeAttributes1);\\nax += attractive.x;\\nay += attractive.y;\\nvec2 gravity = calcGravity(i, currentNode, nodeAttributes2);\\nax -= gravity.x;\\nay -= gravity.y;\\nfloat param = u_interval * u_damping;\\nfloat vx = ax * param;\\nfloat vy = ay * param;\\nfloat vlength = sqrt((vx * vx) + (vy * vy)) + 0.0001;\\nif (vlength > u_maxSpeed) {float param2 = u_maxSpeed / vlength;\\nvx = param2 * vx;\\nvy = param2 * vy;}\\nif ((nodeAttributes1.w != 0.0) && (nodeAttributes2.w != 0.0)) {gl_FragColor = vec4(vec4(nodeAttributes1.w, nodeAttributes2.w, currentNode.z, 0.0));}else {float distx = vx * u_interval;\\nfloat disty = vy * u_interval;\\nfloat distLength = sqrt((distx * distx) + (disty * disty));\\ngl_FragColor = vec4(vec4(currentNode.x + distx, currentNode.y + disty, currentNode.z, distLength));}if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"MAX_EDGE_PER_VERTEX","type":"Float","runtime":true},{"name":"VERTEX_COUNT","type":"Float","runtime":true},{"name":"SHIFT_20","type":"Float","value":1048576,"runtime":false}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]},{"name":"u_damping","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_maxSpeed","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_minMovement","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AveMovement","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_coulombDisScale","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_factor","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributeArray1","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributeArray2","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_interval","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_Data","size":[1,1],"length":1},"needPingpong":true}}',e.aveMovementCode="\nconst VERTEX_COUNT;\n@numthreads(1, 1, 1)\nclass CalcAveMovement {\n @in\n u_Data: vec4[];\n @in\n u_iter: float;\n @in @out\n u_AveMovement: vec4[];\n @main\n compute() {\n let movement = 0;\n for (let j: int = 0; j < VERTEX_COUNT; j++) {\n const vertex = this.u_Data[j];\n movement += vertex[3];\n }\n movement = movement / float(VERTEX_COUNT);\n this.u_AveMovement[0] = [movement, 0, 0, 0];\n }\n}\n",e.aveMovementBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_iter;\\nuniform sampler2D u_AveMovement;\\nuniform vec2 u_AveMovementSize;\\nvec4 getDatau_AveMovement(vec2 address2D) {\\n return vec4(texture2D(u_AveMovement, address2D).rgba);\\n}\\nvec4 getDatau_AveMovement(float address1D) {\\n return getDatau_AveMovement(addrTranslation_1Dto2D(address1D, u_AveMovementSize));\\n}\\nvec4 getDatau_AveMovement(int address1D) {\\n return getDatau_AveMovement(float(address1D));\\n}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat movement = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {vec4 vertex = getDatau_Data(j);\\nmovement += vertex.w;}\\nmovement = movement / float(VERTEX_COUNT);\\ngl_FragColor = vec4(vec4(movement, 0.0, 0.0, 0.0));if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"VERTEX_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_iter","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AveMovement","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_AveMovement","size":[1,1],"length":1},"needPingpong":true}}'},36010:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.GridLayout=void 0;var o=n(81422),a=function(t){function e(e){var n=t.call(this)||this;return n.begin=[0,0],n.preventOverlap=!0,n.preventOverlapPadding=10,n.condense=!1,n.sortBy="degree",n.nodes=[],n.edges=[],n.width=300,n.height=300,n.row=0,n.col=0,n.cellWidth=0,n.cellHeight=0,n.cellUsed={},n.id2manPos={},n.onLayoutEnd=function(){},n.updateCfg(e),n}return i(e,t),e.prototype.getDefaultCfg=function(){return{begin:[0,0],preventOverlap:!0,preventOverlapPadding:10,condense:!1,rows:void 0,cols:void 0,position:void 0,sortBy:"degree",nodeSize:30}},e.prototype.execute=function(){var t=this,e=t.nodes,n=t.edges,r=t.begin,i=e.length;if(0===i)return t.onLayoutEnd&&t.onLayoutEnd(),{nodes:e,edges:n};if(1===i)return e[0].x=r[0],e[0].y=r[1],t.onLayoutEnd&&t.onLayoutEnd(),{nodes:e,edges:n};var a=t.sortBy,s=t.width,u=t.height,l=t.condense,c=t.preventOverlapPadding,h=t.preventOverlap,d=t.nodeSpacing,f=t.nodeSize,p=[];e.forEach((function(t){p.push(t)}));var m={};if(p.forEach((function(t,e){m[t.id]=e})),("degree"===a||!(0,o.isString)(a)||void 0===p[0][a])&&(a="degree",(0,o.isNaN)(e[0].degree))){var g=(0,o.getDegree)(p.length,m,n);p.forEach((function(t,e){t.degree=g[e].all}))}p.sort((function(t,e){return e[a]-t[a]})),s||"undefined"==typeof window||(s=window.innerWidth),u||"undefined"==typeof window||(u=window.innerHeight);var v=t.rows,y=null!=t.cols?t.cols:t.columns;if(t.cells=i,null!=v&&null!=y?(t.rows=v,t.cols=y):null!=v&&null==y?(t.rows=v,t.cols=Math.ceil(t.cells/t.rows)):null==v&&null!=y?(t.cols=y,t.rows=Math.ceil(t.cells/t.cols)):(t.splits=Math.sqrt(t.cells*t.height/t.width),t.rows=Math.round(t.splits),t.cols=Math.round(t.width/t.height*t.splits)),t.rows=Math.max(t.rows,1),t.cols=Math.max(t.cols,1),t.cols*t.rows>t.cells)((x=t.small())-1)*(b=t.large())>=t.cells?t.small(x-1):(b-1)*x>=t.cells&&t.large(b-1);else for(;t.cols*t.rows=t.cells?t.large(b+1):t.small(x+1)}if(t.cellWidth=s/t.cols,t.cellHeight=u/t.rows,l&&(t.cellWidth=0,t.cellHeight=0),h||d){var w=(0,o.getFuncByUnknownType)(10,d),_=(0,o.getFuncByUnknownType)(30,f,!1);p.forEach((function(e){e.x&&e.y||(e.x=0,e.y=0);var n,r,i=_(e)||30;(0,o.isArray)(i)?(n=i[0],r=i[1]):(n=i,r=i);var a=void 0!==w?w(e):c,s=n+a,u=r+a;t.cellWidth=Math.max(t.cellWidth,s),t.cellHeight=Math.max(t.cellHeight,u)}))}t.cellUsed={},t.row=0,t.col=0,t.id2manPos={};for(var S=0;S=e&&(t.col=0,t.row++)},e.prototype.getPos=function(t){var e,n,r=this,i=r.begin,o=r.cellWidth,a=r.cellHeight,s=r.id2manPos[t.id];if(s)e=s.col*o+o/2+i[0],n=s.row*a+a/2+i[1];else{for(;r.used(r.row,r.col);)r.moveToNextCell();e=r.col*o+o/2+i[0],n=r.row*a+a/2+i[1],r.use(r.row,r.col),r.moveToNextCell()}t.x=e,t.y=n},e.prototype.getType=function(){return"grid"},e}(n(46271).Base);e.GridLayout=a},28352:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.ERLayout=e.ForceAtlas2Layout=e.ComboCombinedLayout=e.ComboForceLayout=e.GForceGPULayout=e.FruchtermanGPULayout=e.FruchtermanLayout=e.MDSLayout=e.ConcentricLayout=e.RadialLayout=e.DagreCompoundLayout=e.DagreLayout=e.CircularLayout=e.ForceLayout=e.Force2Layout=e.GForceLayout=e.RandomLayout=e.GridLayout=e.Layouts=e.Layout=void 0;var o=n(36010);Object.defineProperty(e,"GridLayout",{enumerable:!0,get:function(){return o.GridLayout}});var a=n(68501);Object.defineProperty(e,"RandomLayout",{enumerable:!0,get:function(){return a.RandomLayout}});var s=n(70238);Object.defineProperty(e,"GForceLayout",{enumerable:!0,get:function(){return s.GForceLayout}});var u=n(1782);Object.defineProperty(e,"Force2Layout",{enumerable:!0,get:function(){return u.Force2Layout}});var l=n(24964);Object.defineProperty(e,"ForceLayout",{enumerable:!0,get:function(){return l.ForceLayout}});var c=n(33455);Object.defineProperty(e,"CircularLayout",{enumerable:!0,get:function(){return c.CircularLayout}});var h=n(79829);Object.defineProperty(e,"DagreLayout",{enumerable:!0,get:function(){return h.DagreLayout}});var d=n(69524);Object.defineProperty(e,"DagreCompoundLayout",{enumerable:!0,get:function(){return d.DagreCompoundLayout}});var f=n(13570);Object.defineProperty(e,"RadialLayout",{enumerable:!0,get:function(){return f.RadialLayout}});var p=n(58006);Object.defineProperty(e,"ConcentricLayout",{enumerable:!0,get:function(){return p.ConcentricLayout}});var m=n(7982);Object.defineProperty(e,"MDSLayout",{enumerable:!0,get:function(){return m.MDSLayout}});var g=n(361);Object.defineProperty(e,"FruchtermanLayout",{enumerable:!0,get:function(){return g.FruchtermanLayout}});var v=n(25444);Object.defineProperty(e,"FruchtermanGPULayout",{enumerable:!0,get:function(){return v.FruchtermanGPULayout}});var y=n(62121);Object.defineProperty(e,"GForceGPULayout",{enumerable:!0,get:function(){return y.GForceGPULayout}});var b=n(42335);Object.defineProperty(e,"ComboForceLayout",{enumerable:!0,get:function(){return b.ComboForceLayout}});var x=n(4193);Object.defineProperty(e,"ComboCombinedLayout",{enumerable:!0,get:function(){return x.ComboCombinedLayout}});var w=n(48991);Object.defineProperty(e,"ForceAtlas2Layout",{enumerable:!0,get:function(){return w.ForceAtlas2Layout}});var _=n(69474);Object.defineProperty(e,"ERLayout",{enumerable:!0,get:function(){return _.ERLayout}});var S=n(52316);Object.defineProperty(e,"Layout",{enumerable:!0,get:function(){return S.Layout}}),Object.defineProperty(e,"Layouts",{enumerable:!0,get:function(){return S.Layouts}}),i(n(82149),e)},52316:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Layouts=e.Layout=void 0;var r=n(38119),i=n(36010),o=n(68501),a=n(1782),s=n(70238),u=n(24964),l=n(33455),c=n(79829),h=n(13570),d=n(58006),f=n(7982),p=n(361),m=n(25444),g=n(62121),v=n(42335),y=n(4193),b=n(48991),x=n(69474),w=n(69524),_=n(81422),S=function(){function t(t){var e=(0,r.getLayoutByName)(t.type);this.layoutInstance=new e(t)}return t.prototype.layout=function(t){return this.layoutInstance.layout(t)},t.prototype.updateCfg=function(t){this.layoutInstance.updateCfg(t)},t.prototype.init=function(t){this.correctLayers(t.nodes),this.layoutInstance.init(t)},t.prototype.correctLayers=function(t){if(null==t?void 0:t.length){var e=1/0,n=[];if(t.forEach((function(t){(0,_.isString)(t.layer)&&(t.layer=parseInt(t.layer,10)),void 0===t.layer||isNaN(t.layer)||(n.push(t),t.layer{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(7856),i=function(){function t(t){this.distances=t.distances,this.dimension=t.dimension||2,this.linkDistance=t.linkDistance}return t.prototype.layout=function(){var t=this,e=t.dimension,n=t.distances,i=t.linkDistance;try{var o=r.Matrix.mul(r.Matrix.pow(n,2),-.5),a=o.mean("row"),s=o.mean("column"),u=o.mean();o.add(u).subRowVector(a).subColumnVector(s);var l=new r.SingularValueDecomposition(o),c=r.Matrix.sqrt(l.diagonalMatrix).diagonal();return l.leftSingularVectors.toJSON().map((function(t){return r.Matrix.mul([t],[c]).toJSON()[0].splice(0,e)}))}catch(t){for(var h=[],d=0;dr[0]?r[0]:b-r[0],_=x-r[1]>r[1]?r[1]:x-r[1];0===w&&(w=b/2),0===_&&(_=x/2);var S=_>w?w:_,E=Math.max.apply(Math,y),A=[];y.forEach((function(e,n){t.unitRadius||(t.unitRadius=S/E),A[n]=e*t.unitRadius})),t.radii=A;var M=t.eIdealDisMatrix();t.eIdealDistances=M;var C=function(t){for(var e=t.length,n=t[0].length,r=[],i=0;iN[1]?N[0]:N[1])+O(t)}:function(t){return N+O(t)}:function(t){return t.size?(0,a.isArray)(t.size)?(t.size[0]>t.size[1]?t.size[0]:t.size[1])+O(t):(0,a.isObject)(t.size)?(t.size.width>t.size.height?t.size.width:t.size.height)+O(t):t.size+O(t):10+O(t)};var R={nodes:e,nodeSizeFunc:k,adjMatrix:m,positions:T,radii:A,height:x,width:b,strictRadial:P,focusID:p,iterations:t.maxPreventOverlapIteration||200,k:T.length/4.5},D=new l.default(R);T=D.layout()}return T.forEach((function(t,n){e[n].x=t[0]+r[0],e[n].y=t[1]+r[1]})),t.onLayoutEnd&&t.onLayoutEnd(),{nodes:e,edges:n}}t.onLayoutEnd&&t.onLayoutEnd()},e.prototype.run=function(){for(var t=this,e=t.maxIteration,n=t.positions||[],r=t.weights||[],i=t.eIdealDistances||[],o=t.radii||[],a=0;a<=e;a++){var s=a/e;t.oneIteration(s,n,o,i,r)}},e.prototype.oneIteration=function(t,e,n,r,i){var o=1-t,a=this.focusIndex;e.forEach((function(s,u){var l=c(s,[0,0]),h=0===l?0:1/l;if(u!==a){var d=0,f=0,p=0;e.forEach((function(t,e){if(u!==e){var n=c(s,t),o=0===n?0:1/n,a=r[e][u];p+=i[u][e],d+=i[u][e]*(t[0]+a*(s[0]-t[0])*o),f+=i[u][e]*(t[1]+a*(s[1]-t[1])*o)}}));var m=0===n[u]?0:1/n[u];p*=o,p+=t*m*m,d*=o,d+=t*m*s[0]*h,s[0]=d/p,f*=o,f+=t*m*s[1]*h,s[1]=f/p}}))},e.prototype.eIdealDisMatrix=function(){var t=this,e=t.nodes;if(!e)return[];var n=t.distances,r=t.linkDistance,i=t.radii||[],o=t.unitRadius||50,s=[];return n&&n.forEach((function(n,u){var l=[];n.forEach((function(n,s){if(u===s)l.push(0);else if(i[u]===i[s])if("data"===t.sortBy)l.push(n*(Math.abs(u-s)*t.sortStrength)/(i[u]/o));else if(t.sortBy){var c=e[u][t.sortBy]||0,h=e[s][t.sortBy]||0;(0,a.isString)(c)&&(c=c.charCodeAt(0)),(0,a.isString)(h)&&(h=h.charCodeAt(0)),l.push(n*(Math.abs(c-h)*t.sortStrength)/(i[u]/o))}else l.push(n*r/(i[u]/o));else{var d=(r+o)/2;l.push(n*d)}})),s.push(l)})),s},e.prototype.handleInfinity=function(t,e,n){for(var r=t.length,i=0;in?t[e][r]:n);return n},e.prototype.getType=function(){return"radial"},e}(s.Base);e.RadialLayout=h},15470:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.disp=[],this.positions=t.positions,this.adjMatrix=t.adjMatrix,this.focusID=t.focusID,this.radii=t.radii,this.iterations=t.iterations||10,this.height=t.height||10,this.width=t.width||10,this.speed=t.speed||100,this.gravity=t.gravity||10,this.nodeSizeFunc=t.nodeSizeFunc,this.k=t.k||5,this.strictRadial=t.strictRadial,this.nodes=t.nodes}return t.prototype.layout=function(){var t=this,e=t.positions,n=[],r=t.iterations,i=t.width/10;t.maxDisplace=i,t.disp=n;for(var o=0;ou?1:-1;l=.01*d,c=.01*d}if(hMath.PI/2&&(c-=Math.PI/2,s*=-1,u*=-1);var h=Math.cos(c)*l;t.x=s*h,t.y=u*h}));var s=t.radii;e.forEach((function(t,u){if(u!==o){var l=Math.sqrt(n[u].x*n[u].x+n[u].y*n[u].y);if(l>0&&u!==o){var c=Math.min(a*(r/800),l);if(t[0]+=n[u].x/l*c,t[1]+=n[u].y/l*c,i){var h=t[0]-e[o][0],d=t[1]-e[o][1],f=Math.sqrt(h*h+d*d);h=h/f*s[u],d=d/f*s[u],t[0]=e[o][0]+h,t[1]=e[o][1]+d}}}}))},t}();e.default=n},68501:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.RandomLayout=void 0;var o=function(t){function e(e){var n=t.call(this)||this;return n.center=[0,0],n.width=300,n.height=300,n.nodes=[],n.edges=[],n.onLayoutEnd=function(){},n.updateCfg(e),n}return i(e,t),e.prototype.getDefaultCfg=function(){return{center:[0,0],width:300,height:300}},e.prototype.execute=function(){var t=this,e=t.nodes,n=t.center;return t.width||"undefined"==typeof window||(t.width=window.innerWidth),t.height||"undefined"==typeof window||(t.height=window.innerHeight),e&&e.forEach((function(e){e.x=.9*(Math.random()-.5)*t.width+n[0],e.y=.9*(Math.random()-.5)*t.height+n[1]})),t.onLayoutEnd&&t.onLayoutEnd(),{nodes:e,edges:this.edges}},e.prototype.getType=function(){return"random"},e}(n(46271).Base);e.RandomLayout=o},82149:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},38119:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.getLayoutByName=e.unRegisterLayout=e.registerLayout=void 0;var o=n(46271),a=n(81422),s=new Map;e.registerLayout=function(t,e){if(s.get(t)&&console.warn("The layout with the name ".concat(t," exists already, it will be overridden")),(0,a.isObject)(e)){var n=function(t){function n(n){var r,i,o=r=t.call(this)||this,a={},s=Object.assign({},o.getDefaultCfg(),(null===(i=e.getDefaultCfg)||void 0===i?void 0:i.call(e))||{});return Object.assign(a,s,e,n),Object.keys(a).forEach((function(t){var e=a[t];o[t]=e})),r}return i(n,t),n}(o.Base);s.set(t,n)}else s.set(t,e);return s.get(t)};e.unRegisterLayout=function(t){s.has(t)&&s.delete(t)};e.getLayoutByName=function(t){return s.has(t)?s.get(t):null}},86755:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isArray=void 0,e.isArray=Array.isArray},43380:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getFuncByUnknownType=e.getFunc=e.isFunction=void 0;var r=n(81422),i=n(19937);e.isFunction=function(t){return"function"==typeof t};e.getFunc=function(t,e,n){return n||((0,i.isNumber)(t)?function(){return t}:function(){return e})};e.getFuncByUnknownType=function(t,n,o){return void 0===o&&(o=!0),n||0===n?(0,e.isFunction)(n)?n:(0,i.isNumber)(n)?function(){return n}:(0,r.isArray)(n)?function(){if(o){var e=Math.max.apply(Math,n);return isNaN(e)?t:e}return n}:(0,r.isObject)(n)?function(){if(o){var e=Math.max(n.width,n.height);return isNaN(e)?t:e}return[n.width,n.height]}:function(){return t}:function(e){return e.size?(0,r.isArray)(e.size)?e.size[0]>e.size[1]?e.size[0]:e.size[1]:(0,r.isObject)(e.size)?e.size.width>e.size.height?e.size.width:e.size.height:e.size:t}}},48196:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.arrayToTextureData=e.attributesToTextureData=e.buildTextureDataWithTwoEdgeAttr=e.buildTextureData=e.proccessToFunc=void 0;var r=n(81422),i=n(91922);e.proccessToFunc=function(t,e){return t?(0,r.isNumber)(t)?function(){return t}:t:function(){return e||1}};e.buildTextureData=function(t,e){var n=[],r=[],o={},a=0;for(a=0;a{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCoreNodeAndRelativeLeafNodes=e.getAvgNodePosition=e.getLayoutBBox=e.traverseTreeUp=e.scaleMatrix=e.getAdjMatrix=e.floydWarshall=e.getDegreeMap=e.getDegree=e.getEdgeTerminal=void 0;var r=n(86755),i=n(19937),o=n(15747);e.getEdgeTerminal=function(t,e){var n=t[e];return(0,o.isObject)(n)?n.cell:n};e.getDegree=function(t,n,r){for(var i=[],o=0;oe[r][o]+e[o][i]&&(e[r][i]=e[r][o]+e[o][i]);return e};e.getAdjMatrix=function(t,n){var r=t.nodes,i=t.edges,o=[],a={};if(!r)throw new Error("invalid nodes data!");return r&&r.forEach((function(t,e){a[t.id]=e;o.push([])})),null==i||i.forEach((function(t){var r=(0,e.getEdgeTerminal)(t,"source"),i=(0,e.getEdgeTerminal)(t,"target"),s=a[r],u=a[i];void 0!==s&&void 0!==u&&(o[s][u]=1,n||(o[u][s]=1))})),o};e.scaleMatrix=function(t,e){var n=[];return t.forEach((function(t){var r=[];t.forEach((function(t){r.push(t*e)})),n.push(r)})),n};var a=function(t,e){if(t&&t.children)for(var n=t.children.length-1;n>=0;n--)if(!a(t.children[n],e))return;return!!e(t)};e.traverseTreeUp=function(t,e){"function"==typeof e&&a(t,e)};e.getLayoutBBox=function(t){var e=1/0,n=1/0,o=-1/0,a=-1/0;return t.forEach((function(t){var s=t.size;(0,r.isArray)(s)?1===s.length&&(s=[s[0],s[0]]):(0,i.isNumber)(s)?s=[s,s]:(void 0===s||isNaN(s))&&(s=[30,30]);var u=[s[0]/2,s[1]/2],l=t.x-u[0],c=t.x+u[0],h=t.y-u[1],d=t.y+u[1];e>l&&(e=l),n>h&&(n=h),o{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toNumber=e.isNaN=e.isNumber=void 0;e.isNumber=function(t){return"number"==typeof t};e.isNaN=function(t){return Number.isNaN(Number(t))};e.toNumber=function(t){var n=parseFloat(t);return(0,e.isNaN)(n)?t:n}},15747:function(t,e){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.camelize=e.isString=void 0;e.isString=function(t){return"string"==typeof t};var n,r,i=/-(\w)/g;e.camelize=(n=function(t){return t.replace(i,(function(t,e){return e?e.toUpperCase():""}))},r=Object.create(null),function(t){return r[t]||(r[t]=n(t))})},79987:(t,e,n)=>{"use strict";function r(t){return[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16)]}function i(t){var e=Math.round(t).toString(16);return 1===e.length?"0"+e:e}function o(t){return"#"+i(t[0])+i(t[1])+i(t[2])}n.r(e),n.d(e,{Cache:()=>Vn,angleTo:()=>E,arcToCubic:()=>Y,assign:()=>dn,augment:()=>fn,clamp:()=>be,clearAnimationFrame:()=>cn,clone:()=>mn,clonePath:()=>J,contains:()=>St,createDOM:()=>Qn,debounce:()=>gn,deepMix:()=>bn,difference:()=>At,direction:()=>S,distanceSquareRoot:()=>et,each:()=>Nt,endsWith:()=>se,equalizeSegments:()=>wt,every:()=>ue,extend:()=>xn,filter:()=>Et,find:()=>Dt,findIndex:()=>zt,firstValue:()=>Ft,fixedBase:()=>xe,flatten:()=>Bt,flattenDeep:()=>jt,forIn:()=>Fe,get:()=>In,getDrawDirection:()=>gt,getPathArea:()=>mt,getPathBBox:()=>ht,getPathBBoxTotalLength:()=>ft,getPointAtLength:()=>vt,getRange:()=>Gt,getRotatedCurve:()=>pt,getTotalLength:()=>dt,getType:()=>Ke,getWrapBehavior:()=>pe,gradient:()=>d,group:()=>fe,groupBy:()=>he,groupToMap:()=>de,has:()=>Be,hasKey:()=>Ue,hasValue:()=>Ve,head:()=>ie,identity:()=>Un,includes:()=>St,indexOf:()=>wn,isArguments:()=>Ze,isArray:()=>kt,isArrayLike:()=>_t,isBoolean:()=>Qe,isDate:()=>Je,isDecimal:()=>_e,isElement:()=>un,isEmpty:()=>Sn,isEqual:()=>An,isEqualWith:()=>Mn,isError:()=>tn,isEven:()=>Se,isFinite:()=>en,isFunction:()=>a,isInteger:()=>Ee,isMatch:()=>Ot,isNegative:()=>Ae,isNil:()=>Mt,isNull:()=>nn,isNumber:()=>we,isNumberEqual:()=>Ce,isObject:()=>It,isObjectLike:()=>Lt,isOdd:()=>Te,isPlainObject:()=>Rt,isPointInPolygon:()=>Xn,isPointInStroke:()=>bt,isPolygonsIntersect:()=>Zn,isPositive:()=>ke,isPrototype:()=>on,isRegExp:()=>an,isString:()=>Jt,isType:()=>Tt,isUndefined:()=>sn,keys:()=>Pt,last:()=>oe,lowerCase:()=>Ge,lowerFirst:()=>We,map:()=>Cn,mapValues:()=>kn,max:()=>Vt,maxBy:()=>Ie,memoize:()=>s,min:()=>Ht,minBy:()=>Ne,mix:()=>dn,mod:()=>Pe,modifyCSS:()=>Jn,noop:()=>Bn,normalizePath:()=>W,number2color:()=>ve,omit:()=>Ln,parseRadius:()=>ye,path2Absolute:()=>H,path2Array:()=>Q,path2Curve:()=>Z,path2String:()=>M,pick:()=>On,pull:()=>qt,pullAt:()=>Kt,reduce:()=>Zt,remove:()=>Qt,requestAnimationFrame:()=>ln,reverseCurve:()=>tt,rgb2arr:()=>r,set:()=>Nn,size:()=>jn,some:()=>le,sortBy:()=>te,startsWith:()=>ae,substitute:()=>Xe,throttle:()=>Rn,toArray:()=>Dn,toCSSGradient:()=>g,toDegree:()=>Le,toInteger:()=>Re,toRGB:()=>c,toRadian:()=>ze,toString:()=>He,transform:()=>w,union:()=>ne,uniq:()=>ee,uniqueId:()=>Fn,upperCase:()=>Ye,upperFirst:()=>qe,values:()=>je,valuesOfKey:()=>re,vertical:()=>A,wrapBehavior:()=>me});const a=function(t){return"function"==typeof t};const s=function(t,e,n){if(void 0===n&&(n=128),!a(t))throw new TypeError("Expected a function");var r=function(){for(var n=[],i=0;ii&&(r=n,a(1),++e),n[t]=o}function a(t){e=0,n=Object.create(null),t||(r=Object.create(null))}return a(),{clear:a,has:function(t){return void 0!==n[t]||void 0!==r[t]},get:function(t){var e=n[t];return void 0!==e?e:void 0!==(e=r[t])?(o(t,e),e):void 0},set:function(t,e){void 0!==n[t]?n[t]=e:o(t,e)}}}(n),r};var u,l=/rgba?\(([\s.,0-9]+)\)/;var c=s((function(t){if("#"===t[0]&&7===t.length)return t;var e;u||((e=document.createElement("i")).title="Web Colour Picker",e.style.display="none",document.body.appendChild(e),u=e),u.style.color=t;var n=document.defaultView.getComputedStyle(u,"").getPropertyValue("color");return n=o(l.exec(n)[1].split(/\s*,\s*/).map((function(t){return Number(t)})))}),(function(t){return t}),256);function h(t,e,n,r){return t[r]+(e[r]-t[r])*n}function d(t){var e=("string"==typeof t?t.split("-"):t).map((function(t){return r(-1===t.indexOf("#")?c(t):t)}));return function(t){return function(t,e){var n=isNaN(Number(e))||e<0?0:e>1?1:Number(e),r=t.length-1,i=Math.floor(r*n),a=r*n-i,s=t[i],u=i===r?s:t[i+1];return o([h(s,u,a,0),h(s,u,a,1),h(s,u,a,2)])}(e,t)}}var f=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,p=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,m=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function g(t){if(/^[r,R,L,l]{1}[\s]*\(/.test(t)){var e,n=void 0;if("l"===t[0]){var r=+(i=f.exec(t))[1]+90;n=i[2],e="linear-gradient("+r+"deg, "}else if("r"===t[0]){var i;e="radial-gradient(",n=(i=p.exec(t))[4]}var o=n.match(m);return o.forEach((function(t,n){var r=t.split(":");e+=r[1]+" "+100*Number(r[0])+"%",n!==o.length-1&&(e+=", ")})),e+=")"}return t}var v=n(91409);function y(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return v.fromRotation(r,n),v.multiply(t,r,e)}function b(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return v.fromScaling(r,n),v.multiply(t,r,e)}function x(t,e,n){return v.multiply(t,n,e)}function w(t,e){for(var n,r,i,o,a=t?[].concat(t):[1,0,0,0,1,0,0,0,1],s=0,u=e.length;s=0;return n?i?2*Math.PI-r:r:i?r:2*Math.PI-r}function A(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}function M(t,e){return void 0===e&&(e="off"),function(t,e){if("off"===e)return[].concat(t);var n="number"==typeof e&&e>=1?Math.pow(10,e):1;return t.map((function(t){var r=t.slice(1).map(Number).map((function(t){return e?Math.round(t*n)/n:Math.round(t)}));return[t[0]].concat(r)}))}(t,e).map((function(t){return t[0]+t.slice(1).join(" ")})).join("")}var C=n(31635),T={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null};function k(t,e,n){if(t[n].length>7){t[n].shift();for(var r=t[n],i=n;r.length;)e[n]="A",t.splice(i+=1,0,["C"].concat(r.splice(0,6)));t.splice(n,1)}}var I={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0};function N(t){return Array.isArray(t)&&t.every((function(t){var e=t[0].toLowerCase();return I[e]===t.length-1&&"achlmqstvz".includes(e)}))}function P(t){return N(t)&&t.every((function(t){var e=t[0];return e===e.toUpperCase()}))}function O(t){return P(t)&&t.every((function(t){var e=t[0];return"ACLMQZ".includes(e)}))}function L(t){for(var e=t.pathValue[t.segmentStart],n=e.toLowerCase(),r=t.data;r.length>=I[n]&&("m"===n&&r.length>2?(t.segments.push([e].concat(r.splice(0,2))),n="l",e="m"===e?"l":"L"):t.segments.push([e].concat(r.splice(0,I[n]))),I[n]););}function R(t){var e=t.index,n=t.pathValue,r=n.charCodeAt(e);return 48===r?(t.param=0,void(t.index+=1)):49===r?(t.param=1,void(t.index+=1)):void(t.err='[path-util]: invalid Arc flag "'+n[e]+'", expecting 0 or 1 at index '+e)}function D(t){return t>=48&&t<=57||43===t||45===t||46===t}function z(t){return t>=48&&t<=57}function F(t){var e,n=t.max,r=t.pathValue,i=t.index,o=i,a=!1,s=!1,u=!1,l=!1;if(o>=n)t.err="[path-util]: Invalid path value at index "+o+', "pathValue" is missing param';else if(43!==(e=r.charCodeAt(o))&&45!==e||(o+=1,e=r.charCodeAt(o)),z(e)||46===e){if(46!==e){if(a=48===e,o+=1,e=r.charCodeAt(o),a&&o=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].includes(e));)t.index+=1}function U(t){var e=t.max,n=t.pathValue,r=t.index,i=n.charCodeAt(r),o=I[n[r].toLowerCase()];if(t.segmentStart=r,function(t){switch(32|t){case 109:case 122:case 108:case 104:case 118:case 99:case 115:case 113:case 116:case 97:return!0;default:return!1}}(i))if(t.index+=1,B(t),t.data=[],o){for(;;){for(var a=o;a>0;a-=1){if(97!=(32|i)||3!==a&&4!==a?F(t):R(t),t.err.length)return;t.data.push(t.param),B(t),t.index=t.max)break;if(!D(n.charCodeAt(t.index)))break}L(t)}else L(t);else t.err='[path-util]: Invalid path value "'+n[r]+'" is not a path command'}var j=function(t){this.pathValue=t,this.segments=[],this.max=t.length,this.index=0,this.param=0,this.segmentStart=0,this.data=[],this.err=""};function V(t){if(N(t))return[].concat(t);var e=new j(t);for(B(e);e.index1&&(v*=M=Math.sqrt(M),y*=M);var C=v*v,T=y*y,k=(o===a?-1:1)*Math.sqrt(Math.abs((C*T-C*A*A-T*E*E)/(C*A*A+T*E*E)));f=k*v*A/y+(m+b)/2,p=k*-y*E/v+(g+x)/2,h=Math.asin(((g-p)/y*Math.pow(10,9)|0)/Math.pow(10,9)),d=Math.asin(((x-p)/y*Math.pow(10,9)|0)/Math.pow(10,9)),h=md&&(h-=2*Math.PI),!a&&d>h&&(d-=2*Math.PI)}var I=d-h;if(Math.abs(I)>w){var N=d,P=b,O=x;d=h+w*(a&&d>h?1:-1),S=Y(b=f+v*Math.cos(d),x=p+y*Math.sin(d),v,y,i,0,a,P,O,[d,N,f,p])}I=d-h;var L=Math.cos(h),R=Math.sin(h),D=Math.cos(d),z=Math.sin(d),F=Math.tan(I/4),B=4/3*v*F,U=4/3*y*F,j=[m,g],V=[m+B*R,g-U*L],H=[b+B*z,x-U*D],G=[b,x];if(V[0]=2*j[0]-V[0],V[1]=2*j[1]-V[1],l)return V.concat(H,G,S);for(var W=[],q=0,$=(S=V.concat(H,G,S)).length;q<$;q+=1)W[q]=q%2?X(S[q-1],S[q],_).y:X(S[q],S[q+1],_).x;return W}function q(t,e,n){var r=t[0],i=t[1];return[r+(e[0]-r)*n,i+(e[1]-i)*n]}var $=function(t,e,n,r){var i=q([t,e],[n,r],.5);return(0,C.__spreadArray)((0,C.__spreadArray)([],i,!0),[n,r,n,r],!1)};function K(t,e){var n,r,i,o,a,s,u,l,c,h=t[0],d=t.slice(1).map(Number),f=d[0],p=d[1],m=e.x1,g=e.y1,v=e.x,y=e.y;switch("TQ".includes(h)||(e.qx=null,e.qy=null),h){case"M":return e.x=f,e.y=p,t;case"A":return n=[m,g].concat(d),["C"].concat(Y(n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8],n[9]));case"Q":return e.qx=f,e.qy=p,n=[m,g].concat(d),["C"].concat((r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],u=n[5],[(l=1/3)*r+(c=2/3)*o,l*i+c*a,l*s+c*o,l*u+c*a,s,u]));case"L":return["C"].concat($(m,g,f,p));case"Z":return m===v&&g===y?["C",m,g,v,y,v,y]:["C"].concat($(m,g,v,y))}return t}function Z(t,e){if(void 0===e&&(e=!1),function(t){return O(t)&&t.every((function(t){var e=t[0];return"MC".includes(e)}))}(t)){var n=[].concat(t);return e?[n,[]]:n}for(var r,i,o=W(t),a=(0,C.__assign)({},T),s=[],u="",l=o.length,c=[],h=0;h=o)a={x:n,y:r};else{var s=q([t,e],[n,r],i/o);a={x:s[0],y:s[1]}}return{length:o,point:a,min:{x:Math.min(t,n),y:Math.min(e,r)},max:{x:Math.max(t,n),y:Math.max(e,r)}}}function rt(t,e){var n=t.x,r=t.y,i=e.x,o=e.y,a=n*i+r*o,s=Math.sqrt((Math.pow(n,2)+Math.pow(r,2))*(Math.pow(i,2)+Math.pow(o,2)));return(n*o-r*i<0?-1:1)*Math.acos(a/s)}function it(t,e,n,r,i,o,a,s,u,l){var c=Math.abs,h=Math.sin,d=Math.cos,f=Math.sqrt,p=Math.PI,m=c(n),g=c(r),v=(i%360+360)%360*(p/180);if(t===s&&e===u)return{x:t,y:e};if(0===m||0===g)return nt(t,e,s,u,l).point;var y=(t-s)/2,b=(e-u)/2,x={x:d(v)*y+h(v)*b,y:-h(v)*y+d(v)*b},w=Math.pow(x.x,2)/Math.pow(m,2)+Math.pow(x.y,2)/Math.pow(g,2);w>1&&(m*=f(w),g*=f(w));var _=(Math.pow(m,2)*Math.pow(g,2)-Math.pow(m,2)*Math.pow(x.y,2)-Math.pow(g,2)*Math.pow(x.x,2))/(Math.pow(m,2)*Math.pow(x.y,2)+Math.pow(g,2)*Math.pow(x.x,2)),S=(o!==a?1:-1)*f(_=_<0?0:_),E=S*(m*x.y/g),A=S*(-g*x.x/m),M=d(v)*E-h(v)*A+(t+s)/2,C=h(v)*E+d(v)*A+(e+u)/2,T={x:(x.x-E)/m,y:(x.y-A)/g},k=rt({x:1,y:0},T),I=rt(T,{x:(-x.x-E)/m,y:(-x.y-A)/g});!a&&I>0?I-=2*p:a&&I<0&&(I+=2*p);var N=k+(I%=2*p)*l,P=m*d(N),O=g*h(N);return{x:d(v)*P-h(v)*O+M,y:h(v)*P+d(v)*O+C}}function ot(t,e,n,r,i,o,a,s,u,l,c){var h,d=c.bbox,f=void 0===d||d,p=c.length,m=void 0===p||p,g=c.sampleSize,v=void 0===g?30:g,y="number"==typeof l,b=t,x=e,w=0,_=[b,x,w],S=[b,x],E={x:0,y:0},A=[{x:b,y:x}];y&&l<=0&&(E={x:b,y:x});for(var M=0;M<=v;M+=1){if(b=(h=it(t,e,n,r,i,o,a,s,u,M/v)).x,x=h.y,f&&A.push({x:b,y:x}),m&&(w+=et(S,[b,x])),S=[b,x],y&&w>=l&&l>_[2]){var C=(w-l)/(w-_[2]);E={x:S[0]*(1-C)+_[0]*C,y:S[1]*(1-C)+_[1]*C}}_=[b,x,w]}return y&&l>=w&&(E={x:s,y:u}),{length:w,point:E,min:{x:Math.min.apply(null,A.map((function(t){return t.x}))),y:Math.min.apply(null,A.map((function(t){return t.y})))},max:{x:Math.max.apply(null,A.map((function(t){return t.x}))),y:Math.max.apply(null,A.map((function(t){return t.y})))}}}function at(t,e,n,r,i,o,a,s,u){var l=1-u;return{x:Math.pow(l,3)*t+3*Math.pow(l,2)*u*n+3*l*Math.pow(u,2)*i+Math.pow(u,3)*a,y:Math.pow(l,3)*e+3*Math.pow(l,2)*u*r+3*l*Math.pow(u,2)*o+Math.pow(u,3)*s}}function st(t,e,n,r,i,o,a,s,u,l){var c,h=l.bbox,d=void 0===h||h,f=l.length,p=void 0===f||f,m=l.sampleSize,g=void 0===m?10:m,v="number"==typeof u,y=t,b=e,x=0,w=[y,b,x],_=[y,b],S={x:0,y:0},E=[{x:y,y:b}];v&&u<=0&&(S={x:y,y:b});for(var A=0;A<=g;A+=1){if(y=(c=at(t,e,n,r,i,o,a,s,A/g)).x,b=c.y,d&&E.push({x:y,y:b}),p&&(x+=et(_,[y,b])),_=[y,b],v&&x>=u&&u>w[2]){var M=(x-u)/(x-w[2]);S={x:_[0]*(1-M)+w[0]*M,y:_[1]*(1-M)+w[1]*M}}w=[y,b,x]}return v&&u>=x&&(S={x:a,y:s}),{length:x,point:S,min:{x:Math.min.apply(null,E.map((function(t){return t.x}))),y:Math.min.apply(null,E.map((function(t){return t.y})))},max:{x:Math.max.apply(null,E.map((function(t){return t.x}))),y:Math.max.apply(null,E.map((function(t){return t.y})))}}}function ut(t,e,n,r,i,o,a){var s=1-a;return{x:Math.pow(s,2)*t+2*s*a*n+Math.pow(a,2)*i,y:Math.pow(s,2)*e+2*s*a*r+Math.pow(a,2)*o}}function lt(t,e,n,r,i,o,a,s){var u,l=s.bbox,c=void 0===l||l,h=s.length,d=void 0===h||h,f=s.sampleSize,p=void 0===f?10:f,m="number"==typeof a,g=t,v=e,y=0,b=[g,v,y],x=[g,v],w={x:0,y:0},_=[{x:g,y:v}];m&&a<=0&&(w={x:g,y:v});for(var S=0;S<=p;S+=1){if(g=(u=ut(t,e,n,r,i,o,S/p)).x,v=u.y,c&&_.push({x:g,y:v}),d&&(y+=et(x,[g,v])),x=[g,v],m&&y>=a&&a>b[2]){var E=(y-a)/(y-b[2]);w={x:x[0]*(1-E)+b[0]*E,y:x[1]*(1-E)+b[1]*E}}b=[g,v,y]}return m&&a>=y&&(w={x:i,y:o}),{length:y,point:w,min:{x:Math.min.apply(null,_.map((function(t){return t.x}))),y:Math.min.apply(null,_.map((function(t){return t.y})))},max:{x:Math.max.apply(null,_.map((function(t){return t.x}))),y:Math.max.apply(null,_.map((function(t){return t.y})))}}}function ct(t,e,n){for(var r,i,o,a,s,u,l,c,h,d=W(t),f="number"==typeof e,p=[],m=0,g=0,v=0,y=0,b=[],x=[],w=0,_={x:0,y:0},S=_,E=_,A=_,M=0,C=0,T=d.length;C=e&&(A=E),x.push(S),b.push(_),M+=w,m=(u="Z"!==c?h.slice(-2):[v,y])[0],g=u[1];return f&&e>=M&&(A={x:m,y:g}),{length:M,point:A,min:{x:Math.min.apply(null,b.map((function(t){return t.x}))),y:Math.min.apply(null,b.map((function(t){return t.y})))},max:{x:Math.max.apply(null,x.map((function(t){return t.x}))),y:Math.max.apply(null,x.map((function(t){return t.y})))}}}function ht(t,e){if(!t)return{x:0,y:0,width:0,height:0,x2:0,y2:0,cx:0,cy:0,cz:0};var n=ct(t,void 0,(0,C.__assign)((0,C.__assign)({},e),{length:!1})),r=n.min,i=r.x,o=r.y,a=n.max,s=a.x,u=a.y,l=s-i,c=u-o;return{width:l,height:c,x:i,y:o,x2:s,y2:u,cx:i+l/2,cy:o+c/2,cz:Math.max(l,c)+Math.min(l,c)/2}}function dt(t,e){return ct(t,void 0,(0,C.__assign)((0,C.__assign)({},e),{bbox:!1,length:!0})).length}function ft(t,e){if(!t)return{length:0,x:0,y:0,width:0,height:0,x2:0,y2:0,cx:0,cy:0,cz:0};var n=ct(t,void 0,(0,C.__assign)((0,C.__assign)({},e),{bbox:!0,length:!0})),r=n.length,i=n.min,o=i.x,a=i.y,s=n.max,u=s.x,l=s.y,c=u-o,h=l-a;return{length:r,width:c,height:h,x:o,y:a,x2:u,y2:l,cx:o+c/2,cy:a+h/2,cz:Math.max(c,h)+Math.min(c,h)/2}}function pt(t,e){var n=t.length-1,r=[],i=0,o=function(t){var e=t.length,n=e-1;return t.map((function(r,i){return t.map((function(r,o){var a,s=i+o;return 0===o||t[s]&&"M"===t[s][0]?(a=t[s],["M"].concat(a.slice(-2))):(s>=e&&(s-=n),t[s])}))}))}(t);return o.forEach((function(o,a){t.slice(1).forEach((function(r,o){i+=et(t[(a+o)%n].slice(-2),e[o%n].slice(-2))})),r[a]=i,i=0})),o[r.indexOf(Math.min.apply(null,r))]}function mt(t){var e=0,n=0,r=0;return Z(t).map((function(t){var i;if("M"===t[0])return e=t[1],n=t[2],0;var o=t.slice(1),a=o[0],s=o[1],u=o[2],l=o[3],c=o[4],h=o[5];return r=function(t,e,n,r,i,o,a,s){return 3*((s-e)*(n+i)-(a-t)*(r+o)+r*(t-i)-n*(e-o)+s*(i+t/3)-a*(o+e/3))/20}(e,n,a,s,u,l,c,h),i=t.slice(-2),e=i[0],n=i[1],r})).reduce((function(t,e){return t+e}),0)}function gt(t){return mt(t)>=0}function vt(t,e,n){return ct(t,e,(0,C.__assign)((0,C.__assign)({},n),{bbox:!1,length:!0})).point}function yt(t,e){for(var n,r,i,o,a=V(t),s=W(a),u=dt(a),l=function(t){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r},c=8,h=0,d=0,f=1/0,p=0;p<=u;p+=c)(h=l(n=vt(s,p))).5;)v=l(i=vt(s,m=d-c)),y=l(o=vt(s,g=d+c)),m>=0&&v=i)return s=i-(a=dt(r=n.slice(0,-1))),{segment:n[o],index:o,length:s,lengthAtSegment:a};for(var h=[];o>0;)u=r[o],s=i-(a=dt(r=r.slice(0,-1))),i=a,h.push({segment:u,index:o,length:s,lengthAtSegment:a}),o-=1;return h.find((function(t){return t.lengthAtSegment<=e}))}(a,d);return{closest:r,distance:Math.sqrt(f),segment:b}}function bt(t,e){var n=yt(t,e).distance;return Math.abs(n)<.001}function xt(t){return t.map((function(t,e,n){var r=e&&n[e-1].slice(-2).concat(t.slice(1)),i=e?st(r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],{bbox:!1}).length:0;return{s:t,ss:e?i?function(t,e){void 0===e&&(e=.5);var n=t.slice(0,2),r=t.slice(2,4),i=t.slice(4,6),o=t.slice(6,8),a=q(n,r,e),s=q(r,i,e),u=q(i,o,e),l=q(a,s,e),c=q(s,u,e),h=q(l,c,e);return[["C"].concat(a,l,h),["C"].concat(c,u,o)]}(r):[t,t]:[t],l:i}}))}function wt(t,e,n){var r=xt(t),i=xt(e),o=r.length,a=i.length,s=r.filter((function(t){return t.l})).length,u=i.filter((function(t){return t.l})).length,l=r.filter((function(t){return t.l})).reduce((function(t,e){return t+e.l}),0)/s||0,c=i.filter((function(t){return t.l})).reduce((function(t,e){return t+e.l}),0)/u||0,h=n||Math.max(o,a),d=[l,c],f=[h-o,h-a],p=0,m=[r,i].map((function(t,e){return t.l===h?t.map((function(t){return t.s})):t.map((function(t,n){return p=n&&f[e]&&t.l>=d[e],f[e]-=p?1:0,p?t.ss:[t.s]})).flat()}));return m[0].length===m[1].length?m:wt(m[0],m[1],h)}const _t=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)};const St=function(t,e){return!!_t(t)&&t.indexOf(e)>-1};const Et=function(t,e){if(!_t(t))return t;for(var n=[],r=0;r-1;)Xt.call(t,o,1);return t};var $t=Array.prototype.splice;const Kt=function(t,e){if(!_t(t))return[];for(var n=t?e.length:0,r=n-1;n--;){var i=void 0,o=e[n];n!==r&&o===i||(i=o,$t.call(t,o,1))}return t};const Zt=function(t,e,n){if(!kt(t)&&!Rt(t))return t;var r=n;return Nt(t,(function(t,n){r=e(r,t,n)})),r};const Qt=function(t,e){var n=[];if(!_t(t))return n;for(var r=-1,i=[],o=t.length;++re[i])return 1;if(t[i]n?n:t};const xe=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))};const we=function(t){return Tt(t,"Number")};const _e=function(t){return we(t)&&t%1!=0};const Se=function(t){return we(t)&&t%2==0};const Ee=Number.isInteger?Number.isInteger:function(t){return we(t)&&t%1==0};const Ae=function(t){return we(t)&&t<0};var Me=1e-5;function Ce(t,e,n){return void 0===n&&(n=Me),Math.abs(t-e)0},Ie=function(t,e){if(kt(t)){for(var n,r=-1/0,i=0;ir&&(n=o,r=s)}return n}},Ne=function(t,e){if(kt(t)){for(var n,r=1/0,i=0;ie?(r&&(clearTimeout(r),r=null),s=l,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(u,c)),a};return l.cancel=function(){clearTimeout(r),s=0,r=i=o=null},l},Dn=function(t){return _t(t)?Array.prototype.slice.call(t):[]};var zn={};const Fn=function(t){return zn[t=t||"g"]?zn[t]+=1:zn[t]=1,t+zn[t]},Bn=function(){},Un=function(t){return t};function jn(t){return Mt(t)?0:_t(t)?t.length:Object.keys(t).length}const Vn=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}();var Hn=1e-6;function Gn(t){return Math.abs(t)0!=Gn(s[1]-n)>0&&Gn(e-(n-a[1])*(a[0]-s[0])/(a[1]-s[1])-a[0])<0&&(r=!r)}return r}var Yn=function(t,e,n){return t>=e&&t<=n};function qn(t){for(var e=[],n=t.length,r=0;r1){var a=t[0],s=t[n-1];e.push({from:{x:s[0],y:s[1]},to:{x:a[0],y:a[1]}})}return e}function $n(t,e){var n=!1;return t.forEach((function(t){if(function(t,e,n,r){var i=n.x-t.x,o=n.y-t.y,a=e.x-t.x,s=e.y-t.y,u=r.x-n.x,l=r.y-n.y,c=a*l-s*u,h=null;if(c*c>.001*(a*a+s*s)*(u*u+l*l)){var d=(i*l-o*u)/c,f=(i*s-o*a)/c;Yn(d,0,1)&&Yn(f,0,1)&&(h={x:t.x+d*a,y:t.y+d*s})}return h}(t.from,t.to,e.from,e.to))return n=!0,!1})),n}function Kn(t){var e=t.map((function(t){return t[0]})),n=t.map((function(t){return t[1]}));return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,n),maxY:Math.max.apply(null,n)}}function Zn(t,e){if(t.length<2||e.length<2)return!1;var n,r,i=Kn(t),o=Kn(e);if(n=i,(r=o).minX>n.maxX||r.maxXn.maxY||r.maxY{"use strict";n.r(e),n.d(e,{AbstractMatrix:()=>x,CHO:()=>Z,CholeskyDecomposition:()=>Z,EVD:()=>$,EigenvalueDecomposition:()=>$,LU:()=>D,LuDecomposition:()=>D,Matrix:()=>_,MatrixColumnSelectionView:()=>A,MatrixColumnView:()=>E,MatrixFlipColumnView:()=>M,MatrixFlipRowView:()=>C,MatrixRowSelectionView:()=>k,MatrixRowView:()=>T,MatrixSelectionView:()=>I,MatrixSubView:()=>N,MatrixTransposeView:()=>P,NIPALS:()=>Q,Nipals:()=>Q,QR:()=>F,QrDecomposition:()=>F,SVD:()=>B,SingularValueDecomposition:()=>B,WrapperMatrix1D:()=>O,WrapperMatrix2D:()=>L,correlation:()=>q,covariance:()=>Y,default:()=>_,determinant:()=>V,inverse:()=>U,linearDependencies:()=>W,pseudoInverse:()=>X,solve:()=>j,wrap:()=>R});const r=Object.prototype.toString;function i(t){const e=r.call(t);return e.endsWith("Array]")&&!e.includes("Big")}function o(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!i(t))throw new TypeError("input must be an array");if(0===t.length)throw new TypeError("input must not be empty");if(void 0!==n.output){if(!i(n.output))throw new TypeError("output option must be an array if specified");e=n.output}else e=new Array(t.length);var r=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!i(t))throw new TypeError("input must be an array");if(0===t.length)throw new TypeError("input must not be empty");var n=e.fromIndex,r=void 0===n?0:n,o=e.toIndex,a=void 0===o?t.length:o;if(r<0||r>=t.length||!Number.isInteger(r))throw new Error("fromIndex must be a positive integer smaller than length");if(a<=r||a>t.length||!Number.isInteger(a))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var s=t[r],u=r+1;u1&&void 0!==arguments[1]?arguments[1]:{};if(!i(t))throw new TypeError("input must be an array");if(0===t.length)throw new TypeError("input must not be empty");var n=e.fromIndex,r=void 0===n?0:n,o=e.toIndex,a=void 0===o?t.length:o;if(r<0||r>=t.length||!Number.isInteger(r))throw new Error("fromIndex must be a positive integer smaller than length");if(a<=r||a>t.length||!Number.isInteger(a))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var s=t[r],u=r+1;us&&(s=t[u]);return s}(t);if(r===o)throw new RangeError("minimum and maximum input values are equal. Cannot rescale a constant array");var a=n.min,s=void 0===a?n.autoMinMax?r:0:a,u=n.max,l=void 0===u?n.autoMinMax?o:1:u;if(s>=l)throw new RangeError("min option must be smaller than max option");for(var c=(l-s)/(o-r),h=0;hr)throw new RangeError("Row index out of range")}function h(t,e,n){let r=n?t.columns:t.columns-1;if(e<0||e>r)throw new RangeError("Column index out of range")}function d(t,e){if(e.to1DArray&&(e=e.to1DArray()),e.length!==t.columns)throw new RangeError("vector size must be the same as the number of columns");return e}function f(t,e){if(e.to1DArray&&(e=e.to1DArray()),e.length!==t.rows)throw new RangeError("vector size must be the same as the number of rows");return e}function p(t,e,n){return{row:m(t,e),column:g(t,n)}}function m(t,e){if("object"!=typeof e)throw new TypeError("unexpected type for row indices");if(e.some((e=>e<0||e>=t.rows)))throw new RangeError("row indices are out of range");return Array.isArray(e)||(e=Array.from(e)),e}function g(t,e){if("object"!=typeof e)throw new TypeError("unexpected type for column indices");if(e.some((e=>e<0||e>=t.columns)))throw new RangeError("column indices are out of range");return Array.isArray(e)||(e=Array.from(e)),e}function v(t,e,n,r,i){if(5!==arguments.length)throw new RangeError("expected 4 arguments");if(b("startRow",e),b("endRow",n),b("startColumn",r),b("endColumn",i),e>n||r>i||e<0||e>=t.rows||n<0||n>=t.rows||r<0||r>=t.columns||i<0||i>=t.columns)throw new RangeError("Submatrix indices are out of range")}function y(t,e=0){let n=[];for(let r=0;r=i)throw new RangeError("min must be smaller than max");let a=i-r,s=new _(t,e);for(let n=0;nn?(i=!0,n=e):(r=!1,i=!0);t++}return r}isReducedEchelonForm(){let t=0,e=0,n=-1,r=!0,i=!1;for(;tn?(i=!0,n=e):(r=!1,i=!0);for(let n=e+1;nt.get(r,n)&&(r=i);if(0===t.get(r,n))n++;else{t.swapRows(e,r);let i=t.get(e,n);for(let r=n;r=0;)if(0===t.maxRow(r))r--;else{let i=0,o=!1;for(;it&&(t=this.get(e,n));return t}maxIndex(){let t=this.get(0,0),e=[0,0];for(let n=0;nt&&(t=this.get(n,r),e[0]=n,e[1]=r);return e}min(){let t=this.get(0,0);for(let e=0;ee&&(e=this.get(t,n));return e}maxRowIndex(t){c(this,t);let e=this.get(t,0),n=[t,0];for(let r=1;re&&(e=this.get(t,r),n[1]=r);return n}minRow(t){c(this,t);let e=this.get(t,0);for(let n=1;ne&&(e=this.get(n,t));return e}maxColumnIndex(t){h(this,t);let e=this.get(0,t),n=[0,t];for(let r=1;re&&(e=this.get(r,t),n[0]=r);return n}minColumn(t){h(this,t);let e=this.get(0,t);for(let n=1;n=n)throw new RangeError("min must be smaller than max");let r=new _(this.rows,this.columns);for(let t=0;t=n)throw new RangeError("min must be smaller than max");let r=new _(this.rows,this.columns);for(let t=0;tn||e<0||e>=this.columns||n<0||n>=this.columns)throw new RangeError("Argument out of range");let r=new _(t.length,n-e+1);for(let i=0;i=this.rows)throw new RangeError(`Row index out of range: ${t[i]}`);r.set(i,o-e,this.get(t[i],o))}return r}subMatrixColumn(t,e,n){if(void 0===e&&(e=0),void 0===n&&(n=this.rows-1),e>n||e<0||e>=this.rows||n<0||n>=this.rows)throw new RangeError("Argument out of range");let r=new _(n-e+1,t.length);for(let i=0;i=this.columns)throw new RangeError(`Column index out of range: ${t[i]}`);r.set(o-e,i,this.get(o,t[i]))}return r}setSubMatrix(t,e,n){v(this,e,e+(t=_.checkMatrix(t)).rows-1,n,n+t.columns-1);for(let r=0;r0){if(this.data=[],!(Number.isInteger(e)&&e>0))throw new TypeError("nColumns must be a positive integer");for(let n=0;n>t);return this},t.prototype.signPropagatingRightShiftM=function(t){if(t=e.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(let e=0;e>t.get(e,n));return this},t.signPropagatingRightShift=function(t,n){return new e(t).signPropagatingRightShift(n)},t.prototype.rightShift=function(t){return"number"==typeof t?this.rightShiftS(t):this.rightShiftM(t)},t.prototype.rightShiftS=function(t){for(let e=0;e>>t);return this},t.prototype.rightShiftM=function(t){if(t=e.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(let e=0;e>>t.get(e,n));return this},t.rightShift=function(t,n){return new e(t).rightShift(n)},t.prototype.zeroFillRightShift=t.prototype.rightShift,t.prototype.zeroFillRightShiftS=t.prototype.rightShiftS,t.prototype.zeroFillRightShiftM=t.prototype.rightShiftM,t.zeroFillRightShift=t.rightShift,t.prototype.not=function(){for(let t=0;tMath.abs(u[i])&&(i=e);if(i!==n){for(r=0;r=0;i--){for(r=0;re?r.set(i,e,t.get(i,e)):i===e?r.set(i,e,1):r.set(i,e,0);return r}get upperTriangularMatrix(){let t=this.LU,e=t.rows,n=t.columns,r=new _(e,n);for(let i=0;iMath.abs(e)?(n=e/t,Math.abs(t)*Math.sqrt(1+n*n)):0!==e?(n=t/e,Math.abs(e)*Math.sqrt(1+n*n)):0}class F{constructor(t){let e,n,r,i,o=(t=L.checkMatrix(t)).clone(),a=t.rows,s=t.columns,u=new Float64Array(s);for(r=0;r=0;o--){for(i=0;i=0;n--){for(t=0;t=0;t--)if(0!==f[t]){for(let e=t+1;e=0;t--){if(t0;){let t,e;for(t=S-2;t>=-1&&-1!==t;t--){const e=Number.MIN_VALUE+M*Math.abs(f[t]+Math.abs(f[t+1]));if(Math.abs(g[t])<=e||Number.isNaN(g[t])){g[t]=0;break}}if(t===S-2)e=4;else{let n;for(n=S-1;n>=t&&n!==t;n--){let e=(n!==S?Math.abs(g[n]):0)+(n!==t+1?Math.abs(g[n-1]):0);if(Math.abs(f[n])<=M*e){f[n]=0;break}}n===t?e=3:n===S-1?e=1:(e=2,t=n)}switch(t++,e){case 1:{let e=g[S-2];g[S-2]=0;for(let n=S-2;n>=t;n--){let i=z(f[n],e),o=f[n]/i,a=e/i;if(f[n]=i,n!==t&&(e=-a*g[n-1],g[n-1]=o*g[n-1]),l)for(let t=0;t=f[t+1]);){let e=f[t];if(f[t]=f[t+1],f[t+1]=e,l&&te&&i.set(o,n,t.get(o,n)/this.s[n]);let o=this.U,a=o.rows,s=o.columns,u=new _(n,a);for(let t=0;tt&&e++;return e}get diagonal(){return Array.from(this.s)}get threshold(){return Number.EPSILON/2*Math.max(this.m,this.n)*this.s[0]}get leftSingularVectors(){return this.U}get rightSingularVectors(){return this.V}get diagonalMatrix(){return _.diag(this.s)}}function U(t,e=!1){return t=L.checkMatrix(t),e?new B(t).inverse():j(t,_.eye(t.rows))}function j(t,e,n=!1){return t=L.checkMatrix(t),e=L.checkMatrix(e),n?new B(t).solve(e):t.isSquare()?new D(t).solve(e):new F(t).solve(e)}function V(t){if((t=_.checkMatrix(t)).isSquare()){let e,n,r,i;if(2===t.columns)return e=t.get(0,0),n=t.get(0,1),r=t.get(1,0),i=t.get(1,1),e*i-n*r;if(3===t.columns){let i,o,a;return i=new I(t,[1,2],[1,2]),o=new I(t,[1,2],[0,2]),a=new I(t,[1,2],[0,1]),e=t.get(0,0),n=t.get(0,1),r=t.get(0,2),e*V(i)-n*V(o)+r*V(a)}return new D(t).determinant}throw Error("determinant can only be calculated for a square matrix")}function H(t,e){let n=[];for(let r=0;ri)return new Array(e.rows+1).fill(0);{let t=e.addRow(n,[0]);for(let e=0;ee?o[t]=1/o[t]:o[t]=0;return i.mmul(_.diag(o).mmul(r.transpose()))}function Y(t,e=t,n={}){t=new _(t);let r=!1;if("object"!=typeof e||_.isMatrix(e)||Array.isArray(e)?e=new _(e):(n=e,e=t,r=!0),t.rows!==e.rows)throw new TypeError("Both matrices must have the same number of rows");const{center:i=!0}=n;i&&(t=t.center("column"),r||(e=e.center("column")));const o=t.transpose().mmul(e);for(let e=0;e0;s--){for(h=0,a=0,l=0;l0&&(o=-o),e[s]=h*o,a-=i*o,n[s-1]=i-o,u=0;ul){x=0;do{for(x+=1,i=n[l],h=(n[l+1]-i)/(2*e[l]),d=z(h,1),h<0&&(d=-d),n[l]=e[l]/(h+d),n[l+1]=e[l]*(h+d),f=n[l+1],o=i-n[l],a=l+2;a=l;a--)for(g=m,m=p,b=y,i=p*e[a],o=p*h,d=z(h,e[a]),e[a+1]=y*d,y=e[a]/d,p=h/d,h=p*n[a]-y*i,n[a+1]=o+y*(p*i+y*n[a]),u=0;uS*_)}n[l]=n[l]+w,e[l]=0}for(a=0;a=l;s--)n[s]=e.get(s,l-1)/c,a+=n[s]*n[s];for(o=Math.sqrt(a),n[l]>0&&(o=-o),a-=n[l]*o,n[l]=n[l]-o,u=l;u=l;s--)i+=n[s]*e.get(s,u);for(i/=a,s=l;s<=d;s++)e.set(s,u,e.get(s,u)-i*n[s])}for(s=0;s<=d;s++){for(i=0,u=d;u>=l;u--)i+=n[u]*e.get(s,u);for(i/=a,u=l;u<=d;u++)e.set(s,u,e.get(s,u)-i*n[u])}n[l]=c*n[l],e.set(l,l-1,c*o)}}for(s=0;s=h+1;l--)if(0!==e.get(l,l-1)){for(s=l+1;s<=d;s++)n[s]=e.get(s,l-1);for(u=l;u<=d;u++){for(o=0,s=l;s<=d;s++)o+=n[s]*r.get(s,u);for(o=o/n[l]/e.get(l,l-1),s=l;s<=d;s++)r.set(s,u,r.get(s,u)+o*n[s])}}}(o,t,e,a),function(t,e,n,r,i){let o,a,s,u,l,c,h,d,f,p,m,g,v,y,b,x=t-1,w=0,_=t-1,S=Number.EPSILON,E=0,A=0,M=0,C=0,T=0,k=0,I=0,N=0;for(o=0;o_)&&(n[o]=i.get(o,o),e[o]=0),a=Math.max(o-1,0);a=w;){for(u=x;u>w&&(k=Math.abs(i.get(u-1,u-1))+Math.abs(i.get(u,u)),0===k&&(k=A),!(Math.abs(i.get(u,u-1))=0){for(I=M>=0?M+I:M-I,n[x-1]=d+I,n[x]=n[x-1],0!==I&&(n[x]=d-h/I),e[x-1]=0,e[x]=0,d=i.get(x,x-1),k=Math.abs(d)+Math.abs(I),M=d/k,C=I/k,T=Math.sqrt(M*M+C*C),M/=T,C/=T,a=x-1;a0)){for(k=Math.sqrt(k),f=u&&(I=i.get(l,l),T=d-I,k=f-I,M=(T*k-h)/i.get(l+1,l)+i.get(l,l+1),C=i.get(l+1,l+1)-I-T-k,T=i.get(l+2,l+1),k=Math.abs(M)+Math.abs(C)+Math.abs(T),M/=k,C/=k,T/=k,l!==u)&&!(Math.abs(i.get(l,l-1))*(Math.abs(C)+Math.abs(T))l+2&&i.set(o,o-3,0);for(s=l;s<=x-1&&(y=s!==x-1,s!==l&&(M=i.get(s,s-1),C=i.get(s+1,s-1),T=y?i.get(s+2,s-1):0,d=Math.abs(M)+Math.abs(C)+Math.abs(T),0!==d&&(M/=d,C/=d,T/=d)),0!==d);s++)if(k=Math.sqrt(M*M+C*C+T*T),M<0&&(k=-k),0!==k){for(s!==l?i.set(s,s-1,-k*d):u!==l&&i.set(s,s-1,-i.get(s,s-1)),M+=k,d=M/k,f=C/k,I=T/k,C/=M,T/=M,a=s;a=0;x--)if(M=n[x],C=e[x],0===C)for(u=x,i.set(x,x,1),o=x-1;o>=0;o--){for(h=i.get(o,o)-M,T=0,a=u;a<=x;a++)T+=i.get(o,a)*i.get(a,x);if(e[o]<0)I=h,k=T;else if(u=o,0===e[o]?i.set(o,x,0!==h?-T/h:-T/(S*A)):(d=i.get(o,o+1),f=i.get(o+1,o),C=(n[o]-M)*(n[o]-M)+e[o]*e[o],c=(d*k-I*T)/C,i.set(o,x,c),i.set(o+1,x,Math.abs(d)>Math.abs(I)?(-T-h*c)/d:(-k-f*c)/I)),c=Math.abs(i.get(o,x)),S*c*c>1)for(a=o;a<=x;a++)i.set(a,x,i.get(a,x)/c)}else if(C<0)for(u=x-1,Math.abs(i.get(x,x-1))>Math.abs(i.get(x-1,x))?(i.set(x-1,x-1,C/i.get(x,x-1)),i.set(x-1,x,-(i.get(x,x)-M)/i.get(x,x-1))):(b=K(0,-i.get(x-1,x),i.get(x-1,x-1)-M,C),i.set(x-1,x-1,b[0]),i.set(x-1,x,b[1])),i.set(x,x-1,0),i.set(x,x,1),o=x-2;o>=0;o--){for(p=0,m=0,a=u;a<=x;a++)p+=i.get(o,a)*i.get(a,x-1),m+=i.get(o,a)*i.get(a,x);if(h=i.get(o,o)-M,e[o]<0)I=h,T=p,k=m;else if(u=o,0===e[o]?(b=K(-p,-m,h,C),i.set(o,x-1,b[0]),i.set(o,x,b[1])):(d=i.get(o,o+1),f=i.get(o+1,o),g=(n[o]-M)*(n[o]-M)+e[o]*e[o]-C*C,v=2*(n[o]-M)*C,0===g&&0===v&&(g=S*A*(Math.abs(h)+Math.abs(C)+Math.abs(d)+Math.abs(f)+Math.abs(I))),b=K(d*T-I*p+C*m,d*k-I*m-C*p,g,v),i.set(o,x-1,b[0]),i.set(o,x,b[1]),Math.abs(d)>Math.abs(I)+Math.abs(C)?(i.set(o+1,x-1,(-p-h*i.get(o,x-1)+C*i.get(o,x))/d),i.set(o+1,x,(-m-h*i.get(o,x)-C*i.get(o,x-1))/d)):(b=K(-T-f*i.get(o,x-1),-k-f*i.get(o,x),I,C),i.set(o+1,x-1,b[0]),i.set(o+1,x,b[1]))),c=Math.max(Math.abs(i.get(o,x-1)),Math.abs(i.get(o,x))),S*c*c>1)for(a=o;a<=x;a++)i.set(a,x-1,i.get(a,x-1)/c),i.set(a,x,i.get(a,x)/c)}for(o=0;o_)for(a=o;a=w;a--)for(o=w;o<=_;o++){for(I=0,s=w;s<=Math.min(a,_);s++)I+=r.get(o,s)*i.get(s,a);r.set(o,a,I)}}(o,u,s,a,t)}this.n=o,this.e=u,this.d=s,this.V=a}get realEigenvalues(){return Array.from(this.d)}get imaginaryEigenvalues(){return Array.from(this.e)}get eigenvectorMatrix(){return this.V}get diagonalMatrix(){let t,e,n=this.n,r=this.e,i=this.d,o=new _(n,n);for(t=0;t0?o.set(t,t+1,r[t]):r[t]<0&&o.set(t,t-1,r[t])}return o}}function K(t,e,n,r){let i,o;return Math.abs(n)>Math.abs(r)?(i=r/n,o=n+i*r,[(t+i*e)/o,(e-i*t)/o]):(i=n/r,o=r+i*n,[(i*t+e)/o,(i*e-t)/o])}class Z{constructor(t){if(!(t=L.checkMatrix(t)).isSymmetric())throw new Error("Matrix is not symmetric");let e,n,r,i=t,o=i.rows,a=new _(o,o),s=!0;for(n=0;n0,a.set(n,n,Math.sqrt(Math.max(t,0))),r=n+1;r=0;o--)for(i=0;io;e++)l=t.transpose().mmul(a).div(a.transpose().mmul(a).get(0,0)),l=l.div(l.norm()),s=t.mmul(l).div(l.transpose().mmul(l).get(0,0)),e>0&&(h=s.clone().sub(c).pow(2).sum()),c=s.clone(),n?(u=n.transpose().mmul(s).div(s.transpose().mmul(s).get(0,0)),u=u.div(u.norm()),a=n.mmul(u).div(u.transpose().mmul(u).get(0,0))):a=s;if(n){let e=t.transpose().mmul(s).div(s.transpose().mmul(s).get(0,0));e=e.div(e.norm());let r=t.clone().sub(s.clone().mmul(e.transpose())),i=a.transpose().mmul(s).div(s.transpose().mmul(s).get(0,0)),o=n.clone().sub(s.clone().mulS(i.get(0,0)).mmul(u.transpose()));this.t=s,this.p=e.transpose(),this.w=l.transpose(),this.q=u,this.u=a,this.s=s.transpose().mmul(s),this.xResidual=r,this.yResidual=o,this.betas=i}else this.w=l.transpose(),this.s=s.transpose().mmul(s).sqrt(),this.t=r?s.clone().div(this.s.get(0,0)):s,this.xResidual=t.sub(s.mmul(l.transpose()))}}},47114:(t,e,n)=>{"use strict";var r=n(38274);function i(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromTranslation(i,n),r.mat3.multiply(t,i,e)}function o(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromRotation(i,n),r.mat3.multiply(t,i,e)}function a(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromScaling(i,n),r.mat3.multiply(t,i,e)}function s(t,e){return t[0]*e[1]-e[0]*t[1]}e.pd=function(t,e){for(var n,s,u,l=t?[].concat(t):[1,0,0,0,1,0,0,0,1],c=0,h=e.length;c{"use strict";n.r(e),n.d(e,{Cache:()=>Ce,assign:()=>Yt,augment:()=>qt,clamp:()=>et,clearAnimationFrame:()=>Wt,clone:()=>Kt,contains:()=>i,debounce:()=>Zt,deepMix:()=>te,difference:()=>a,each:()=>f,endsWith:()=>H,every:()=>G,extend:()=>ee,filter:()=>o,find:()=>y,findIndex:()=>b,firstValue:()=>x,fixedBase:()=>nt,flatten:()=>w,flattenDeep:()=>S,forIn:()=>xt,get:()=>he,getEllipsisText:()=>Me,getRange:()=>M,getType:()=>Pt,getWrapBehavior:()=>K,group:()=>$,groupBy:()=>Y,groupToMap:()=>q,has:()=>wt,hasKey:()=>_t,hasValue:()=>Et,head:()=>U,identity:()=>we,includes:()=>i,indexOf:()=>ne,isArguments:()=>Ot,isArray:()=>h,isArrayLike:()=>r,isBoolean:()=>Lt,isDate:()=>Rt,isDecimal:()=>it,isElement:()=>Ht,isEmpty:()=>ie,isEqual:()=>ae,isEqualWith:()=>se,isError:()=>Dt,isEven:()=>ot,isFinite:()=>zt,isFunction:()=>l,isInteger:()=>at,isMatch:()=>m,isNegative:()=>st,isNil:()=>c,isNull:()=>Ft,isNumber:()=>rt,isNumberEqual:()=>lt,isObject:()=>d,isObjectLike:()=>g,isOdd:()=>ct,isPlainObject:()=>v,isPositive:()=>ht,isPrototype:()=>Ut,isRegExp:()=>jt,isString:()=>R,isType:()=>u,isUndefined:()=>Vt,keys:()=>p,last:()=>j,lowerCase:()=>Mt,lowerFirst:()=>Ct,map:()=>ue,mapValues:()=>ce,max:()=>E,maxBy:()=>dt,measureTextWidth:()=>Ae,memoize:()=>Qt,min:()=>A,minBy:()=>ft,mix:()=>Yt,mod:()=>pt,noop:()=>xe,number2color:()=>J,omit:()=>me,parseRadius:()=>tt,pick:()=>pe,pull:()=>I,pullAt:()=>P,reduce:()=>O,remove:()=>L,requestAnimationFrame:()=>Gt,set:()=>de,size:()=>_e,some:()=>W,sortBy:()=>D,startsWith:()=>V,substitute:()=>Tt,throttle:()=>ge,toArray:()=>ve,toDegree:()=>gt,toInteger:()=>vt,toRadian:()=>bt,toString:()=>At,union:()=>F,uniq:()=>z,uniqueId:()=>be,upperCase:()=>kt,upperFirst:()=>It,values:()=>St,valuesOfKey:()=>B,wrapBehavior:()=>Z});const r=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)};const i=function(t,e){return!!r(t)&&t.indexOf(e)>-1};const o=function(t,e){if(!r(t))return t;for(var n=[],i=0;i-1;)T.call(t,o,1);return t};var N=Array.prototype.splice;const P=function(t,e){if(!r(t))return[];for(var n=t?e.length:0,i=n-1;n--;){var o=void 0,a=e[n];n!==i&&a===o||(o=a,N.call(t,a,1))}return t};const O=function(t,e,n){if(!h(t)&&!v(t))return t;var r=n;return f(t,(function(t,n){r=e(r,t,n)})),r};const L=function(t,e){var n=[];if(!r(t))return n;for(var i=-1,o=[],a=t.length;++ie[i])return 1;if(t[i]n?n:t};const nt=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))};const rt=function(t){return u(t,"Number")};const it=function(t){return rt(t)&&t%1!=0};const ot=function(t){return rt(t)&&t%2==0};const at=Number.isInteger?Number.isInteger:function(t){return rt(t)&&t%1==0};const st=function(t){return rt(t)&&t<0};var ut=1e-5;function lt(t,e,n){return void 0===n&&(n=ut),Math.abs(t-e)0},dt=function(t,e){if(h(t)){for(var n,r=-1/0,i=0;ir&&(n=o,r=a)}return n}},ft=function(t,e){if(h(t)){for(var n,r=1/0,i=0;ie?(r&&(clearTimeout(r),r=null),s=l,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(u,c)),a};return l.cancel=function(){clearTimeout(r),s=0,r=i=o=null},l},ve=function(t){return r(t)?Array.prototype.slice.call(t):[]};var ye={};const be=function(t){return ye[t=t||"g"]?ye[t]+=1:ye[t]=1,t+ye[t]},xe=function(){},we=function(t){return t};function _e(t){return c(t)?0:r(t)?t.length:Object.keys(t).length}var Se,Ee=n(31635);const Ae=Qt((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,i=e.fontWeight,o=e.fontStyle,a=e.fontVariant;return Se||(Se=document.createElement("canvas").getContext("2d")),Se.font=[o,a,i,n+"px",r].join(" "),Se.measureText(R(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),(0,Ee.__spreadArrays)([t],St(e)).join("")})),Me=function(t,e,n,r){void 0===r&&(r="...");var i,o,a=Ae(r,n),s=R(t)?t:At(t),u=e,l=[];if(Ae(t,n)<=e)return t;for(;i=s.substr(0,16),!((o=Ae(i,n))+a>u&&o>u);)if(l.push(i),u-=o,!(s=s.substr(16)))return l.join("");for(;i=s.substr(0,1),!((o=Ae(i,n))+a>u);)if(l.push(i),u-=o,!(s=s.substr(1)))return l.join("");return""+l.join("")+r};const Ce=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}()},62456:(t,e,n)=>{"use strict";n.d(e,{H:()=>h,K6:()=>o,Me:()=>l,Ob:()=>c,YL:()=>s,_:()=>i,g8:()=>p,n6:()=>f,oS:()=>m,wE:()=>u});var r=n(89244);function i(t,e,n){return{r:255*(0,r.Cg)(t,255),g:255*(0,r.Cg)(e,255),b:255*(0,r.Cg)(n,255)}}function o(t,e,n){t=(0,r.Cg)(t,255),e=(0,r.Cg)(e,255),n=(0,r.Cg)(n,255);var i=Math.max(t,e,n),o=Math.min(t,e,n),a=0,s=0,u=(i+o)/2;if(i===o)s=0,a=0;else{var l=i-o;switch(s=u>.5?l/(2-i-o):l/(i+o),i){case t:a=(e-n)/l+(e1&&(n-=1),n<1/6?t+6*n*(e-t):n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function s(t,e,n){var i,o,s;if(t=(0,r.Cg)(t,360),e=(0,r.Cg)(e,100),n=(0,r.Cg)(n,100),0===e)o=n,s=n,i=n;else{var u=n<.5?n*(1+e):n+e-n*e,l=2*n-u;i=a(l,u,t+1/3),o=a(l,u,t),s=a(l,u,t-1/3)}return{r:255*i,g:255*o,b:255*s}}function u(t,e,n){t=(0,r.Cg)(t,255),e=(0,r.Cg)(e,255),n=(0,r.Cg)(n,255);var i=Math.max(t,e,n),o=Math.min(t,e,n),a=0,s=i,u=i-o,l=0===i?0:u/i;if(i===o)a=0;else{switch(i){case t:a=(e-n)/u+(e>16,g:(65280&t)>>8,b:255&t}}},42434:(t,e,n)=>{"use strict";n.d(e,{D:()=>r});var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},76250:(t,e,n)=>{"use strict";n.d(e,{RO:()=>a});var r=n(62456),i=n(42434),o=n(89244);function a(t){var e={r:0,g:0,b:0},n=1,a=null,s=null,u=null,l=!1,d=!1;return"string"==typeof t&&(t=function(t){if(t=t.trim().toLowerCase(),0===t.length)return!1;var e=!1;if(i.D[t])t=i.D[t],e=!0;else if("transparent"===t)return{r:0,g:0,b:0,a:0,format:"name"};var n=c.rgb.exec(t);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=c.rgba.exec(t),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=c.hsl.exec(t),n)return{h:n[1],s:n[2],l:n[3]};if(n=c.hsla.exec(t),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=c.hsv.exec(t),n)return{h:n[1],s:n[2],v:n[3]};if(n=c.hsva.exec(t),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=c.hex8.exec(t),n)return{r:(0,r.g8)(n[1]),g:(0,r.g8)(n[2]),b:(0,r.g8)(n[3]),a:(0,r.n6)(n[4]),format:e?"name":"hex8"};if(n=c.hex6.exec(t),n)return{r:(0,r.g8)(n[1]),g:(0,r.g8)(n[2]),b:(0,r.g8)(n[3]),format:e?"name":"hex"};if(n=c.hex4.exec(t),n)return{r:(0,r.g8)(n[1]+n[1]),g:(0,r.g8)(n[2]+n[2]),b:(0,r.g8)(n[3]+n[3]),a:(0,r.n6)(n[4]+n[4]),format:e?"name":"hex8"};if(n=c.hex3.exec(t),n)return{r:(0,r.g8)(n[1]+n[1]),g:(0,r.g8)(n[2]+n[2]),b:(0,r.g8)(n[3]+n[3]),format:e?"name":"hex"};return!1}(t)),"object"==typeof t&&(h(t.r)&&h(t.g)&&h(t.b)?(e=(0,r._)(t.r,t.g,t.b),l=!0,d="%"===String(t.r).substr(-1)?"prgb":"rgb"):h(t.h)&&h(t.s)&&h(t.v)?(a=(0,o.Px)(t.s),s=(0,o.Px)(t.v),e=(0,r.Me)(t.h,a,s),l=!0,d="hsv"):h(t.h)&&h(t.s)&&h(t.l)&&(a=(0,o.Px)(t.s),u=(0,o.Px)(t.l),e=(0,r.YL)(t.h,a,u),l=!0,d="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(n=t.a)),n=(0,o.TV)(n),{ok:l,format:t.format||d,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}var s="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),u="[\\s|\\(]+(".concat(s,")[,|\\s]+(").concat(s,")[,|\\s]+(").concat(s,")\\s*\\)?"),l="[\\s|\\(]+(".concat(s,")[,|\\s]+(").concat(s,")[,|\\s]+(").concat(s,")[,|\\s]+(").concat(s,")\\s*\\)?"),c={CSS_UNIT:new RegExp(s),rgb:new RegExp("rgb"+u),rgba:new RegExp("rgba"+l),hsl:new RegExp("hsl"+u),hsla:new RegExp("hsla"+l),hsv:new RegExp("hsv"+u),hsva:new RegExp("hsva"+l),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function h(t){return Boolean(c.CSS_UNIT.exec(String(t)))}},24978:(t,e,n)=>{"use strict";n.d(e,{q:()=>s});var r=n(62456),i=n(42434),o=n(76250),a=n(89244),s=function(){function t(e,n){var i;if(void 0===e&&(e=""),void 0===n&&(n={}),e instanceof t)return e;"number"==typeof e&&(e=(0,r.oS)(e)),this.originalInput=e;var a=(0,o.RO)(e);this.originalInput=e,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(i=n.format)&&void 0!==i?i:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return t.prototype.isDark=function(){return this.getBrightness()<128},t.prototype.isLight=function(){return!this.isDark()},t.prototype.getBrightness=function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},t.prototype.getLuminance=function(){var t=this.toRgb(),e=t.r/255,n=t.g/255,r=t.b/255;return.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},t.prototype.getAlpha=function(){return this.a},t.prototype.setAlpha=function(t){return this.a=(0,a.TV)(t),this.roundA=Math.round(100*this.a)/100,this},t.prototype.isMonochrome=function(){return 0===this.toHsl().s},t.prototype.toHsv=function(){var t=(0,r.wE)(this.r,this.g,this.b);return{h:360*t.h,s:t.s,v:t.v,a:this.a}},t.prototype.toHsvString=function(){var t=(0,r.wE)(this.r,this.g,this.b),e=Math.round(360*t.h),n=Math.round(100*t.s),i=Math.round(100*t.v);return 1===this.a?"hsv(".concat(e,", ").concat(n,"%, ").concat(i,"%)"):"hsva(".concat(e,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},t.prototype.toHsl=function(){var t=(0,r.K6)(this.r,this.g,this.b);return{h:360*t.h,s:t.s,l:t.l,a:this.a}},t.prototype.toHslString=function(){var t=(0,r.K6)(this.r,this.g,this.b),e=Math.round(360*t.h),n=Math.round(100*t.s),i=Math.round(100*t.l);return 1===this.a?"hsl(".concat(e,", ").concat(n,"%, ").concat(i,"%)"):"hsla(".concat(e,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},t.prototype.toHex=function(t){return void 0===t&&(t=!1),(0,r.Ob)(this.r,this.g,this.b,t)},t.prototype.toHexString=function(t){return void 0===t&&(t=!1),"#"+this.toHex(t)},t.prototype.toHex8=function(t){return void 0===t&&(t=!1),(0,r.H)(this.r,this.g,this.b,this.a,t)},t.prototype.toHex8String=function(t){return void 0===t&&(t=!1),"#"+this.toHex8(t)},t.prototype.toHexShortString=function(t){return void 0===t&&(t=!1),1===this.a?this.toHexString(t):this.toHex8String(t)},t.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},t.prototype.toRgbString=function(){var t=Math.round(this.r),e=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(t,", ").concat(e,", ").concat(n,")"):"rgba(".concat(t,", ").concat(e,", ").concat(n,", ").concat(this.roundA,")")},t.prototype.toPercentageRgb=function(){var t=function(t){return"".concat(Math.round(100*(0,a.Cg)(t,255)),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},t.prototype.toPercentageRgbString=function(){var t=function(t){return Math.round(100*(0,a.Cg)(t,255))};return 1===this.a?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},t.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var t="#"+(0,r.Ob)(this.r,this.g,this.b,!1),e=0,n=Object.entries(i.D);e=0;return e||!r||!t.startsWith("hex")&&"name"!==t?("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString()):"name"===t&&0===this.a?this.toName():this.toRgbString()},t.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},t.prototype.clone=function(){return new t(this.toString())},t.prototype.lighten=function(e){void 0===e&&(e=10);var n=this.toHsl();return n.l+=e/100,n.l=(0,a.J$)(n.l),new t(n)},t.prototype.brighten=function(e){void 0===e&&(e=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-e/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-e/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-e/100*255))),new t(n)},t.prototype.darken=function(e){void 0===e&&(e=10);var n=this.toHsl();return n.l-=e/100,n.l=(0,a.J$)(n.l),new t(n)},t.prototype.tint=function(t){return void 0===t&&(t=10),this.mix("white",t)},t.prototype.shade=function(t){return void 0===t&&(t=10),this.mix("black",t)},t.prototype.desaturate=function(e){void 0===e&&(e=10);var n=this.toHsl();return n.s-=e/100,n.s=(0,a.J$)(n.s),new t(n)},t.prototype.saturate=function(e){void 0===e&&(e=10);var n=this.toHsl();return n.s+=e/100,n.s=(0,a.J$)(n.s),new t(n)},t.prototype.greyscale=function(){return this.desaturate(100)},t.prototype.spin=function(e){var n=this.toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,new t(n)},t.prototype.mix=function(e,n){void 0===n&&(n=50);var r=this.toRgb(),i=new t(e).toRgb(),o=n/100;return new t({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},t.prototype.analogous=function(e,n){void 0===e&&(e=6),void 0===n&&(n=30);var r=this.toHsl(),i=360/n,o=[this];for(r.h=(r.h-(i*e>>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(new t(r));return o},t.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new t(e)},t.prototype.monochromatic=function(e){void 0===e&&(e=6);for(var n=this.toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/e;e--;)a.push(new t({h:r,s:i,v:o})),o=(o+s)%1;return a},t.prototype.splitcomplement=function(){var e=this.toHsl(),n=e.h;return[this,new t({h:(n+72)%360,s:e.s,l:e.l}),new t({h:(n+216)%360,s:e.s,l:e.l})]},t.prototype.onBackground=function(e){var n=this.toRgb(),r=new t(e).toRgb(),i=n.a+r.a*(1-n.a);return new t({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},t.prototype.triad=function(){return this.polyad(3)},t.prototype.tetrad=function(){return this.polyad(4)},t.prototype.polyad=function(e){for(var n=this.toHsl(),r=n.h,i=[this],o=360/e,a=1;a{"use strict";function r(t,e){(function(t){return"string"==typeof t&&-1!==t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var n=function(t){return"string"==typeof t&&-1!==t.indexOf("%")}(t);return t=360===e?t:Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(String(t*e),10)/100),Math.abs(t-e)<1e-6?1:t=360===e?(t<0?t%e+e:t%e)/parseFloat(String(e)):t%e/parseFloat(String(e))}function i(t){return Math.min(1,Math.max(0,t))}function o(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function a(t){return t<=1?"".concat(100*Number(t),"%"):t}function s(t){return 1===t.length?"0"+t:String(t)}n.d(e,{Cg:()=>r,J$:()=>i,Px:()=>a,TV:()=>o,wl:()=>s})},33672:(t,e,n)=>{"use strict";n.d(e,{V1:()=>r});function r(t,e,n){if(void 0===n&&(n=Error),!t)throw new n(e)}},54819:(t,e,n)=>{"use strict";function r(t,e){var n=e&&e.cache?e.cache:c,r=e&&e.serializer?e.serializer:u;return(e&&e.strategy?e.strategy:s)(t,{cache:n,serializer:r})}function i(t,e,n,r){var i,o=null==(i=r)||"number"==typeof i||"boolean"==typeof i?r:n(r),a=e.get(o);return void 0===a&&(a=t.call(this,r),e.set(o,a)),a}function o(t,e,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=e.get(i);return void 0===o&&(o=t.apply(this,r),e.set(i,o)),o}function a(t,e,n,r,i){return n.bind(e,t,r,i)}function s(t,e){return a(t,this,1===t.length?i:o,e.cache.create(),e.serializer)}n.d(e,{B:()=>r,W:()=>h});var u=function(){return JSON.stringify(arguments)};function l(){this.cache=Object.create(null)}l.prototype.get=function(t){return this.cache[t]},l.prototype.set=function(t,e){this.cache[t]=e};var c={create:function(){return new l}},h={variadic:function(t,e){return a(t,this,o,e.cache.create(),e.serializer)},monadic:function(t,e){return a(t,this,i,e.cache.create(),e.serializer)}}},78786:(t,e,n)=>{"use strict";n.d(e,{ZE:()=>i,Im:()=>u,tv:()=>c,Tu:()=>v,eW:()=>s,oF:()=>l,N1:()=>g,N6:()=>f,jA:()=>p,Jp:()=>d,xm:()=>m,Qh:()=>h,qg:()=>ot});var r,i,o,a=n(31635);function s(t){return t.type===i.literal}function u(t){return t.type===i.argument}function l(t){return t.type===i.number}function c(t){return t.type===i.date}function h(t){return t.type===i.time}function d(t){return t.type===i.select}function f(t){return t.type===i.plural}function p(t){return t.type===i.pound}function m(t){return t.type===i.tag}function g(t){return!(!t||"object"!=typeof t||t.type!==o.number)}function v(t){return!(!t||"object"!=typeof t||t.type!==o.dateTime)}!function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(r||(r={})),function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"}(i||(i={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(o||(o={}));var y=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,b=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function x(t){var e={};return t.replace(b,(function(t){var n=t.length;switch(t[0]){case"G":e.era=4===n?"long":5===n?"narrow":"short";break;case"y":e.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=4===n?"long":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][n-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][n-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][n-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][n-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":e.minute=["numeric","2-digit"][n-1];break;case"s":e.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),e}var w=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var _=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,S=/^(@+)?(\+|#+)?[rs]?$/g,E=/(\*)(0+)|(#+)(0+)|(0+)/g,A=/^(0+)$/;function M(t){var e={};return"r"===t[t.length-1]?e.roundingPriority="morePrecision":"s"===t[t.length-1]&&(e.roundingPriority="lessPrecision"),t.replace(S,(function(t,n,r){return"string"!=typeof r?(e.minimumSignificantDigits=n.length,e.maximumSignificantDigits=n.length):"+"===r?e.minimumSignificantDigits=n.length:"#"===n[0]?e.maximumSignificantDigits=n.length:(e.minimumSignificantDigits=n.length,e.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),e}function C(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function T(t){var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var n=t.slice(0,2);if("+!"===n?(e.signDisplay="always",t=t.slice(2)):"+?"===n&&(e.signDisplay="exceptZero",t=t.slice(2)),!A.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function k(t){var e=C(t);return e||{}}function I(t){for(var e={},n=0,r=t;n1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(E,(function(t,n,r,i,o,a){if(n)e.minimumIntegerDigits=r.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(A.test(i.stem))e.minimumIntegerDigits=i.stem.length;else if(_.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(_,(function(t,n,r,i,o,a){return"*"===r?e.minimumFractionDigits=n.length:i&&"#"===i[0]?e.maximumFractionDigits=i.length:o&&a?(e.minimumFractionDigits=o.length,e.maximumFractionDigits=o.length+a.length):(e.minimumFractionDigits=n.length,e.maximumFractionDigits=n.length),""}));var o=i.options[0];"w"===o?e=(0,a.__assign)((0,a.__assign)({},e),{trailingZeroDisplay:"stripIfInteger"}):o&&(e=(0,a.__assign)((0,a.__assign)({},e),M(o)))}else if(S.test(i.stem))e=(0,a.__assign)((0,a.__assign)({},e),M(i.stem));else{var s=C(i.stem);s&&(e=(0,a.__assign)((0,a.__assign)({},e),s));var u=T(i.stem);u&&(e=(0,a.__assign)((0,a.__assign)({},e),u))}}return e}var N,P={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function O(t){var e=t.hourCycle;if(void 0===e&&t.hourCycles&&t.hourCycles.length&&(e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n,r=t.language;return"root"!==r&&(n=t.maximize().region),(P[n||""]||P[r||""]||P["".concat(r,"-001")]||P["001"])[0]}var L=new RegExp("^".concat(y.source,"*")),R=new RegExp("".concat(y.source,"*$"));function D(t,e){return{start:t,end:e}}var z=!!String.prototype.startsWith&&"_a".startsWith("a",1),F=!!String.fromCodePoint,B=!!Object.fromEntries,U=!!String.prototype.codePointAt,j=!!String.prototype.trimStart,V=!!String.prototype.trimEnd,H=!!Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},G=!0;try{G="a"===(null===(N=Q("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===N?void 0:N[0])}catch(t){G=!1}var W,X=z?function(t,e,n){return t.startsWith(e,n)}:function(t,e,n){return t.slice(n,n+e.length)===e},Y=F?String.fromCodePoint:function(){for(var t=[],e=0;eo;){if((n=t[o++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},q=B?Object.fromEntries:function(t){for(var e={},n=0,r=t;n=n)){var r,i=t.charCodeAt(e);return i<55296||i>56319||e+1===n||(r=t.charCodeAt(e+1))<56320||r>57343?i:r-56320+(i-55296<<10)+65536}},K=j?function(t){return t.trimStart()}:function(t){return t.replace(L,"")},Z=V?function(t){return t.trimEnd()}:function(t){return t.replace(R,"")};function Q(t,e){return new RegExp(t,e)}if(G){var J=Q("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");W=function(t,e){var n;return J.lastIndex=e,null!==(n=J.exec(t)[1])&&void 0!==n?n:""}}else W=function(t,e){for(var n=[];;){var r=$(t,e);if(void 0===r||nt(r)||rt(r))break;n.push(r),e+=r>=65536?2:1}return Y.apply(void 0,n)};var tt=function(){function t(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(t,e,n){for(var o=[];!this.isEOF();){var a=this.char();if(123===a){if((s=this.parseArgument(t,n)).err)return s;o.push(s.val)}else{if(125===a&&t>0)break;if(35!==a||"plural"!==e&&"selectordinal"!==e){if(60===a&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(r.UNMATCHED_CLOSING_TAG,D(this.clonePosition(),this.clonePosition()))}if(60===a&&!this.ignoreTag&&et(this.peek()||0)){if((s=this.parseTag(t,e)).err)return s;o.push(s.val)}else{var s;if((s=this.parseLiteral(t,e)).err)return s;o.push(s.val)}}else{var u=this.clonePosition();this.bump(),o.push({type:i.pound,location:D(u,this.clonePosition())})}}}return{val:o,err:null}},t.prototype.parseTag=function(t,e){var n=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:i.literal,value:"<".concat(o,"/>"),location:D(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(t+1,e,!0);if(a.err)return a;var s=a.val,u=this.clonePosition();if(this.bumpIf("")?{val:{type:i.tag,value:o,children:s,location:D(n,this.clonePosition())},err:null}:this.error(r.INVALID_TAG,D(u,this.clonePosition())))}return this.error(r.UNCLOSED_TAG,D(n,this.clonePosition()))}return this.error(r.INVALID_TAG,D(n,this.clonePosition()))},t.prototype.parseTagName=function(){var t,e=this.offset();for(this.bump();!this.isEOF()&&(45===(t=this.char())||46===t||t>=48&&t<=57||95===t||t>=97&&t<=122||t>=65&&t<=90||183==t||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039);)this.bump();return this.message.slice(e,this.offset())},t.prototype.parseLiteral=function(t,e){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(e);if(o)r+=o;else{var a=this.tryParseUnquoted(t,e);if(a)r+=a;else{var s=this.tryParseLeftAngleBracket();if(!s)break;r+=s}}}var u=D(n,this.clonePosition());return{val:{type:i.literal,value:r,location:u},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(et(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t},t.prototype.tryParseQuote=function(t){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}e.push(39),this.bump()}else e.push(n);this.bump()}return Y.apply(void 0,e)},t.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===e||"selectordinal"===e)||125===n&&t>0?null:(this.bump(),Y(n))},t.prototype.parseArgument=function(t,e){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,D(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(r.EMPTY_ARGUMENT,D(n,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(r.MALFORMED_ARGUMENT,D(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,D(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:i.argument,value:o,location:D(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,D(n,this.clonePosition())):this.parseArgumentOptions(t,e,o,n);default:return this.error(r.MALFORMED_ARGUMENT,D(n,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),n=W(this.message,e),r=e+n.length;return this.bumpTo(r),{value:n,location:D(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,e,n,s){var u,l=this.clonePosition(),c=this.parseIdentifierIfPossible().value,h=this.clonePosition();switch(c){case"":return this.error(r.EXPECT_ARGUMENT_TYPE,D(l,h));case"number":case"date":case"time":this.bumpSpace();var d=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition();if((_=this.parseSimpleArgStyleIfPossible()).err)return _;if(0===(v=Z(_.val)).length)return this.error(r.EXPECT_ARGUMENT_STYLE,D(this.clonePosition(),this.clonePosition()));d={style:v,styleLocation:D(f,this.clonePosition())}}if((S=this.tryParseArgumentClose(s)).err)return S;var p=D(s,this.clonePosition());if(d&&X(null==d?void 0:d.style,"::",0)){var m=K(d.style.slice(2));if("number"===c)return(_=this.parseNumberSkeletonFromString(m,d.styleLocation)).err?_:{val:{type:i.number,value:n,location:p,style:_.val},err:null};if(0===m.length)return this.error(r.EXPECT_DATE_TIME_SKELETON,p);var g=m;this.locale&&(g=function(t,e){for(var n="",r=0;r>1),u=O(e);for("H"!=u&&"k"!=u||(s=0);s-- >0;)n+="a";for(;a-- >0;)n=u+n}else n+="J"===i?"H":i}return n}(m,this.locale));var v={type:o.dateTime,pattern:g,location:d.styleLocation,parsedOptions:this.shouldParseSkeletons?x(g):{}};return{val:{type:"date"===c?i.date:i.time,value:n,location:p,style:v},err:null}}return{val:{type:"number"===c?i.number:"date"===c?i.date:i.time,value:n,location:p,style:null!==(u=null==d?void 0:d.style)&&void 0!==u?u:null},err:null};case"plural":case"selectordinal":case"select":var y=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(r.EXPECT_SELECT_ARGUMENT_OPTIONS,D(y,(0,a.__assign)({},y)));this.bumpSpace();var b=this.parseIdentifierIfPossible(),w=0;if("select"!==c&&"offset"===b.value){if(!this.bumpIf(":"))return this.error(r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,D(this.clonePosition(),this.clonePosition()));var _;if(this.bumpSpace(),(_=this.tryParseDecimalInteger(r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,r.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return _;this.bumpSpace(),b=this.parseIdentifierIfPossible(),w=_.val}var S,E=this.tryParsePluralOrSelectOptions(t,c,e,b);if(E.err)return E;if((S=this.tryParseArgumentClose(s)).err)return S;var A=D(s,this.clonePosition());return"select"===c?{val:{type:i.select,value:n,options:q(E.val),location:A},err:null}:{val:{type:i.plural,value:n,options:q(E.val),offset:w,pluralType:"plural"===c?"cardinal":"ordinal",location:A},err:null};default:return this.error(r.INVALID_ARGUMENT_TYPE,D(l,h))}},t.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,D(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(r.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,D(n,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(t>0))return{val:this.message.slice(e.offset,this.offset()),err:null};t-=1;break;default:this.bump()}}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(t,e){var n=[];try{n=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var e=[],n=0,r=t.split(w).filter((function(t){return t.length>0}));n=48&&a<=57))break;i=!0,o=10*o+(a-48),this.bump()}var s=D(r,this.clonePosition());return i?H(o*=n)?{val:o,err:null}:this.error(e,s):this.error(t,s)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=$(this.message,t);if(void 0===e)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},t.prototype.bump=function(){if(!this.isEOF()){var t=this.char();10===t?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},t.prototype.bumpIf=function(t){if(X(this.message,t,this.offset())){for(var e=0;e=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(e>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&nt(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),n=this.message.charCodeAt(e+(t>=65536?2:1));return null!=n?n:null},t}();function et(t){return t>=97&&t<=122||t>=65&&t<=90}function nt(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}function rt(t){return t>=33&&t<=35||36===t||t>=37&&t<=39||40===t||41===t||42===t||43===t||44===t||45===t||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||91===t||92===t||93===t||94===t||96===t||123===t||124===t||125===t||126===t||161===t||t>=162&&t<=165||166===t||167===t||169===t||171===t||172===t||174===t||176===t||177===t||182===t||187===t||191===t||215===t||247===t||t>=8208&&t<=8213||t>=8214&&t<=8215||8216===t||8217===t||8218===t||t>=8219&&t<=8220||8221===t||8222===t||8223===t||t>=8224&&t<=8231||t>=8240&&t<=8248||8249===t||8250===t||t>=8251&&t<=8254||t>=8257&&t<=8259||8260===t||8261===t||8262===t||t>=8263&&t<=8273||8274===t||8275===t||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||8608===t||t>=8609&&t<=8610||8611===t||t>=8612&&t<=8613||8614===t||t>=8615&&t<=8621||8622===t||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||8658===t||8659===t||8660===t||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||8968===t||8969===t||8970===t||8971===t||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||9001===t||9002===t||t>=9003&&t<=9083||9084===t||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||9655===t||t>=9656&&t<=9664||9665===t||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||9839===t||t>=9840&&t<=10087||10088===t||10089===t||10090===t||10091===t||10092===t||10093===t||10094===t||10095===t||10096===t||10097===t||10098===t||10099===t||10100===t||10101===t||t>=10132&&t<=10175||t>=10176&&t<=10180||10181===t||10182===t||t>=10183&&t<=10213||10214===t||10215===t||10216===t||10217===t||10218===t||10219===t||10220===t||10221===t||10222===t||10223===t||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||10627===t||10628===t||10629===t||10630===t||10631===t||10632===t||10633===t||10634===t||10635===t||10636===t||10637===t||10638===t||10639===t||10640===t||10641===t||10642===t||10643===t||10644===t||10645===t||10646===t||10647===t||10648===t||t>=10649&&t<=10711||10712===t||10713===t||10714===t||10715===t||t>=10716&&t<=10747||10748===t||10749===t||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||11158===t||t>=11159&&t<=11263||t>=11776&&t<=11777||11778===t||11779===t||11780===t||11781===t||t>=11782&&t<=11784||11785===t||11786===t||11787===t||11788===t||11789===t||t>=11790&&t<=11798||11799===t||t>=11800&&t<=11801||11802===t||11803===t||11804===t||11805===t||t>=11806&&t<=11807||11808===t||11809===t||11810===t||11811===t||11812===t||11813===t||11814===t||11815===t||11816===t||11817===t||t>=11818&&t<=11822||11823===t||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||11840===t||11841===t||11842===t||t>=11843&&t<=11855||t>=11856&&t<=11857||11858===t||t>=11859&&t<=11903||t>=12289&&t<=12291||12296===t||12297===t||12298===t||12299===t||12300===t||12301===t||12302===t||12303===t||12304===t||12305===t||t>=12306&&t<=12307||12308===t||12309===t||12310===t||12311===t||12312===t||12313===t||12314===t||12315===t||12316===t||12317===t||t>=12318&&t<=12319||12320===t||12336===t||64830===t||64831===t||t>=65093&&t<=65094}function it(t){t.forEach((function(t){if(delete t.location,d(t)||f(t))for(var e in t.options)delete t.options[e].location,it(t.options[e].value);else l(t)&&g(t.style)||(c(t)||h(t))&&v(t.style)?delete t.style.location:m(t)&&it(t.children)}))}function ot(t,e){void 0===e&&(e={}),e=(0,a.__assign)({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var n=new tt(t,e).parse();if(n.err){var i=SyntaxError(r[n.err.kind]);throw i.location=n.err.location,i.originalMessage=n.err.message,i}return(null==e?void 0:e.captureLocation)||it(n.val),n.val}},89160:(t,e,n)=>{"use strict";n.d(e,{Ho:()=>c,OC:()=>a,hr:()=>u,pg:()=>l,sb:()=>h,uo:()=>s});var r,i=n(31635);!function(t){t.FORMAT_ERROR="FORMAT_ERROR",t.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",t.INVALID_CONFIG="INVALID_CONFIG",t.MISSING_DATA="MISSING_DATA",t.MISSING_TRANSLATION="MISSING_TRANSLATION"}(r||(r={}));var o=function(t){function e(n,r,i){var o=this,a=i?i instanceof Error?i:new Error(String(i)):void 0;return(o=t.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,"\n").concat(a?"\n".concat(a.message,"\n").concat(a.stack):""))||this).code=n,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,e),o}return(0,i.__extends)(e,t),e}(Error),a=function(t){function e(e,n){return t.call(this,r.UNSUPPORTED_FORMATTER,e,n)||this}return(0,i.__extends)(e,t),e}(o),s=function(t){function e(e,n){return t.call(this,r.INVALID_CONFIG,e,n)||this}return(0,i.__extends)(e,t),e}(o),u=function(t){function e(e,n){return t.call(this,r.MISSING_DATA,e,n)||this}return(0,i.__extends)(e,t),e}(o),l=function(t){function e(e,n,i){var o=t.call(this,r.FORMAT_ERROR,"".concat(e,"\nLocale: ").concat(n,"\n"),i)||this;return o.locale=n,o}return(0,i.__extends)(e,t),e}(o),c=function(t){function e(e,n,r,i){var o=t.call(this,"".concat(e,"\nMessageID: ").concat(null==r?void 0:r.id,"\nDefault Message: ").concat(null==r?void 0:r.defaultMessage,"\nDescription: ").concat(null==r?void 0:r.description,"\n"),n,i)||this;return o.descriptor=r,o.locale=n,o}return(0,i.__extends)(e,t),e}(l),h=function(t){function e(e,n){var i=t.call(this,r.MISSING_TRANSLATION,'Missing message: "'.concat(e.id,'" for locale "').concat(n,'", using ').concat(e.defaultMessage?"default message (".concat("string"==typeof e.defaultMessage?e.defaultMessage:e.defaultMessage.map((function(t){var e;return null!==(e=t.value)&&void 0!==e?e:JSON.stringify(t)})).join(),")"):"id"," as fallback."))||this;return i.descriptor=e,i}return(0,i.__extends)(e,t),e}(o)},87683:(t,e,n)=>{"use strict";n.d(e,{F3:()=>d,GT:()=>h,J9:()=>s,JF:()=>u,MT:()=>l});var r=n(31635),i=n(62587),o=n(54819),a=n(89160);function s(t,e,n){return void 0===n&&(n={}),e.reduce((function(e,r){return r in t?e[r]=t[r]:r in n&&(e[r]=n[r]),e}),{})}var u={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(t){0},onWarn:function(t){0}};function l(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function c(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,n){t[e]=n}}}}}function h(t){void 0===t&&(t={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var e=Intl.RelativeTimeFormat,n=Intl.ListFormat,a=Intl.DisplayNames,s=(0,o.B)((function(){for(var t,e=[],n=0;n>>0)+"_",i=0;return function t(r){if(this instanceof t)throw new TypeError("Symbol is not a constructor");return new e(n+(r||"")+"_"+i++,r)}})),o("Symbol.iterator",(function(t){if(t)return t;t=Symbol("Symbol.iterator");for(var n="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),o=0;oe&&(e=Math.max(0,r+e)),(null==n||n>r)&&(n=r),0>(n=Number(n))&&(n=Math.max(0,r+n)),e=Number(e||0);e(e=e||0)&&(e=Math.max(e+r,0));e>4),64!=a&&(e(o<<4&240|a>>2),64!=s&&e(a<<6&192|s))}}(t,(function(t){r[i++]=t})),i!==n?r.subarray(0,i):r}function O(){if(!N){N={};for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"],n=0;5>n;n++){var r=t.concat(e[n].split(""));I[n]=r;for(var i=0;i>2];a=e[(3&a)<<4|s>>4],s=e[(15&s)<<2|u>>6],u=e[63&u],n[o++]=l+a+s+u}switch(l=0,u=r,t.length-i){case 2:u=e[(15&(l=t[i+1]))<<2]||r;case 1:t=t[i],n[o]=e[t>>2]+e[(3&t)<<4|l>>4]+u+r}return n.join("")}for(e="";10240t,n=(t=Math.abs(t))>>>0;t=Math.floor((t-n)/4294967296),e&&(e=(n=s($(n,t))).next().value,t=n.next().value,n=e),G=n>>>0,W=t>>>0}var Y,q="function"==typeof BigInt;function $(t,e){return e=~e,t?t=1+~t:e+=1,[t,e]}function K(t,e){this.i=t>>>0,this.h=e>>>0}function Z(t){if(!t)return Y||(Y=new K(0,0));if(!/^-?\d+$/.test(t))return null;if(16>t.length)X(Number(t));else if(q)t=BigInt(t),G=Number(t&BigInt(4294967295))>>>0,W=Number(t>>BigInt(32)&BigInt(4294967295));else{var e=+("-"===t[0]);W=G=0;for(var n=t.length,r=e,i=(n-e)%6+e;i<=n;r=i,i+=6)r=Number(t.slice(r,i)),W*=1e6,4294967296<=(G=1e6*G+r)&&(W+=G/4294967296|0,G%=4294967296);e&&(t=(e=s($(G,W))).next().value,e=e.next().value,G=t,W=e)}return new K(G,W)}function Q(t,e){return Error("Invalid wire type: "+t+" (at position "+e+")")}function J(){return Error("Failed to read varint, encoding is invalid.")}function tt(t,e){return Error("Tried to read past the end of the data "+e+" > "+t)}function et(){throw Error("Invalid UTF8")}function nt(t,e){return e=String.fromCharCode.apply(null,e),null==t?e:t+e}var rt,it,ot,at=void 0,st="undefined"!=typeof TextDecoder,ut="undefined"!=typeof TextEncoder;function lt(t){if(t!==V)throw Error("illegal external caller")}function ct(t,e){if(lt(e),this.V=t,null!=t&&0===t.length)throw Error("ByteString should be constructed with non-empty values")}function ht(){return ot||(ot=new ct(null,V))}function dt(t){lt(V);var e=t.V;return null==(e=null==e||L&&null!=e&&e instanceof Uint8Array?e:"string"==typeof e?U(e):null)?e:t.V=e}function ft(t,e){this.i=null,this.m=!1,this.h=this.j=this.l=0,pt(this,t,e)}function pt(t,e,n){n=void 0===n?{}:n,t.S=void 0!==n.S&&n.S,e&&(e=function(t){if("string"==typeof t)return{buffer:U(t),C:!1};if(Array.isArray(t))return{buffer:new Uint8Array(t),C:!1};if(t.constructor===Uint8Array)return{buffer:t,C:!1};if(t.constructor===ArrayBuffer)return{buffer:new Uint8Array(t),C:!1};if(t.constructor===ct)return{buffer:dt(t)||j(),C:!0};if(t instanceof Uint8Array)return{buffer:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),C:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers")}(e),t.i=e.buffer,t.m=e.C,t.l=0,t.j=t.i.length,t.h=t.l)}function mt(t,e){if(t.h=e,e>t.j)throw tt(t.j,e)}function gt(t){var e=t.i,n=t.h,r=e[n++],i=127&r;if(128&r&&(i|=(127&(r=e[n++]))<<7,128&r&&(i|=(127&(r=e[n++]))<<14,128&r&&(i|=(127&(r=e[n++]))<<21,128&r&&(i|=(r=e[n++])<<28,128&r&&128&e[n++]&&128&e[n++]&&128&e[n++]&&128&e[n++]&&128&e[n++])))))throw J();return mt(t,n),i}function vt(t,e){if(0>e)throw Error("Tried to read a negative byte length: "+e);var n=t.h,r=n+e;if(r>t.j)throw tt(e,t.j-n);return t.h=r,n}ft.prototype.reset=function(){this.h=this.l};var yt=[];function bt(){this.h=[]}function xt(t,e,n){for(;0>>7|n<<25)>>>0,n>>>=7;t.h.push(e)}function wt(t,e){for(;127>>=7;t.h.push(e)}function _t(t,e){if(yt.length){var n=yt.pop();pt(n,t,e),t=n}else t=new ft(t,e);this.h=t,this.j=this.h.h,this.i=this.l=-1,this.setOptions(e)}function St(t){var e=t.h;if(e.h==e.j)return!1;t.j=t.h.h;var n=gt(t.h)>>>0;if(e=n>>>3,!(0<=(n&=7)&&5>=n))throw Q(n,t.j);if(1>e)throw Error("Invalid field number: "+e+" (at position "+t.j+")");return t.l=e,t.i=n,!0}function Et(t){switch(t.i){case 0:if(0!=t.i)Et(t);else t:{for(var e=(t=t.h).h,n=e+10,r=t.i;e>>0,mt(t=t.h,t.h+e));break;case 5:mt(t=t.h,t.h+4);break;case 3:for(e=t.l;;){if(!St(t))throw Error("Unmatched start-group tag: stream EOF");if(4==t.i){if(t.l!=e)throw Error("Unmatched end-group tag");break}Et(t)}break;default:throw Q(t.i,t.j)}}bt.prototype.length=function(){return this.h.length},bt.prototype.end=function(){var t=this.h;return this.h=[],t},_t.prototype.setOptions=function(t){t=void 0===t?{}:t,this.ca=void 0!==t.ca&&t.ca},_t.prototype.reset=function(){this.h.reset(),this.j=this.h.h,this.i=this.l=-1};var At=[];function Mt(){this.j=[],this.i=0,this.h=new bt}function Ct(t,e){0!==e.length&&(t.j.push(e),t.i+=e.length)}var Tt="function"==typeof Symbol&&"symbol"==typeof Symbol()?Symbol():void 0;function kt(t,e){return Tt?t[Tt]|=e:void 0!==t.A?t.A|=e:(Object.defineProperties(t,{A:{value:e,configurable:!0,writable:!0,enumerable:!1}}),e)}function It(t,e){Tt?t[Tt]&&(t[Tt]&=~e):void 0!==t.A&&(t.A&=~e)}function Nt(t){var e;return null==(e=Tt?t[Tt]:t.A)?0:e}function Pt(t,e){Tt?t[Tt]=e:void 0!==t.A?t.A=e:Object.defineProperties(t,{A:{value:e,configurable:!0,writable:!0,enumerable:!1}})}function Ot(t){return kt(t,1),t}function Lt(t,e){Pt(e,-51&t)}function Rt(t,e){Pt(e,-41&t|18)}var Dt={};function zt(t){return null!==t&&"object"==typeof t&&!Array.isArray(t)&&t.constructor===Object}var Ft,Bt,Ut=[];function jt(t){if(2&Nt(t.o))throw Error("Cannot mutate an immutable Message")}function Vt(t){var e=t.length;(e=e?t[e-1]:void 0)&&zt(e)?e.g=1:(e={},t.push((e.g=1,e)))}function Ht(t){var e=t.i+t.G;return t.B||(t.B=t.o[e]={})}function Gt(t,e){return-1===e?null:e>=t.i?t.B?t.B[e]:void 0:t.o[e+t.G]}function Wt(t,e,n,r){jt(t),Xt(t,e,n,r)}function Xt(t,e,n,r){t.j&&(t.j=void 0),e>=t.i||r?Ht(t)[e]=n:(t.o[e+t.G]=n,(t=t.B)&&e in t&&delete t[e])}function Yt(t,e,n,r){var i=Gt(t,e);Array.isArray(i)||(i=Ft);var o=Nt(i);if(1&o||Ot(i),r)2&o||kt(i,2),1&n||Object.freeze(i);else{r=!(2&n);var a=2&o;1&n||!a?r&&16&o&&!a&&It(i,16):Xt(t,e,i=Ot(Array.prototype.slice.call(i)))}return i}function qt(t,e){var n=Gt(t,e),r=null==n?n:"number"==typeof n||"NaN"===n||"Infinity"===n||"-Infinity"===n?Number(n):void 0;return null!=r&&r!==n&&Xt(t,e,r),r}function $t(t,e,n,r,i){t.h||(t.h={});var o=t.h[n],a=Yt(t,n,3,i);if(!o){var s=a;o=[];var u=!!(16&Nt(t.o));a=!!(2&Nt(s));var l=s;!i&&a&&(s=Array.prototype.slice.call(s));for(var c=a,h=0;ha&&"number"!=typeof t[a]){var s=t[a++];n(e,s)}for(;a>>0)>>31)+1,o=a>>>23&255,a&=8388607,Wt(e,n,255==o?a?NaN:1/0*t:0==o?t*Math.pow(2,-149)*a:t*Math.pow(2,o-150)*(a+Math.pow(2,23))),!0}),(function(t,e,n){if(null!=(e=qt(e,n))){wt(t.h,8*n+5),t=t.h;var r=+e;0===r?0<1/r?G=W=0:(W=0,G=2147483648):isNaN(r)?(W=0,G=2147483647):34028234663852886e22<(r=(n=0>r?-2147483648:0)?-r:r)?(W=0,G=(2139095040|n)>>>0):11754943508222875e-54>r?(r=Math.round(r/Math.pow(2,-149)),W=0,G=(n|r)>>>0):(e=Math.floor(Math.log(r)/Math.LN2),r*=Math.pow(2,-e),16777216<=(r=Math.round(8388608*r))&&++e,W=0,G=(n|e+127<<23|8388607&r)>>>0),n=G,t.h.push(n>>>0&255),t.h.push(n>>>8&255),t.h.push(n>>>16&255),t.h.push(n>>>24&255)}})),ze=Re((function(t,e,n){if(0!==t.i)return!1;var r=t.h,i=0,o=t=0,a=r.i,s=r.h;do{var u=a[s++];i|=(127&u)<o&&128&u);for(32>4),o=3;32>o&&128&u;o+=7)t|=(127&(u=a[s++]))<u))throw J();return r=i>>>0,(t=2147483648&(u=t>>>0))&&(u=~u>>>0,0==(r=1+~r>>>0)&&(u=u+1>>>0)),r=4294967296*u+(r>>>0),Wt(e,n,t?-r:r),!0}),(function(t,e,n){null!=(e=Gt(e,n))&&("string"==typeof e&&Z(e),null!=e&&(wt(t.h,8*n),"number"==typeof e?(t=t.h,X(e),xt(t,G,W)):(n=Z(e),xt(t.h,n.i,n.h))))})),Fe=Re((function(t,e,n){return 0===t.i&&(Wt(e,n,gt(t.h)),!0)}),(function(t,e,n){if(null!=(e=Gt(e,n))&&null!=e)if(wt(t.h,8*n),t=t.h,0<=(n=e))wt(t,n);else{for(e=0;9>e;e++)t.h.push(127&n|128),n>>=7;t.h.push(1)}})),Be=Re((function(t,e,n){if(2!==t.i)return!1;var r=gt(t.h)>>>0,i=vt(t=t.h,r);if(t=t.i,st){var o,a=t;(o=rt)||(o=rt=new TextDecoder("utf-8",{fatal:!0})),t=i+r,a=0===i&&t===a.length?a:a.subarray(i,t);try{var s=o.decode(a)}catch(t){if(void 0===at){try{o.decode(new Uint8Array([128]))}catch(t){}try{o.decode(new Uint8Array([97])),at=!0}catch(t){at=!1}}throw!at&&(rt=void 0),t}}else{r=(s=i)+r,i=[];for(var u,l,c=null;s(u=t[s++])?i.push(u):224>u?s>=r?et():(l=t[s++],194>u||128!=(192&l)?(s--,et()):i.push((31&u)<<6|63&l)):240>u?s>=r-1?et():128!=(192&(l=t[s++]))||224===u&&160>l||237===u&&160<=l||128!=(192&(a=t[s++]))?(s--,et()):i.push((15&u)<<12|(63&l)<<6|63&a):244>=u?s>=r-2?et():128!=(192&(l=t[s++]))||l-144+(u<<28)>>30||128!=(192&(a=t[s++]))||128!=(192&(o=t[s++]))?(s--,et()):(u=(7&u)<<18|(63&l)<<12|(63&a)<<6|63&o,u-=65536,i.push(55296+(u>>10&1023),56320+(1023&u))):et(),8192<=i.length&&(c=nt(c,i),i.length=0);s=nt(c,i)}return Wt(e,n,s),!0}),(function(t,e,n){if(null!=(e=Gt(e,n))){var r=!1;if(r=void 0!==r&&r,ut){if(r&&/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(e))throw Error("Found an unpaired surrogate");e=(it||(it=new TextEncoder)).encode(e)}else{for(var i=0,o=new Uint8Array(3*e.length),a=0;as)o[i++]=s;else{if(2048>s)o[i++]=s>>6|192;else{if(55296<=s&&57343>=s){if(56319>=s&&a=u){s=1024*(s-55296)+u-56320+65536,o[i++]=s>>18|240,o[i++]=s>>12&63|128,o[i++]=s>>6&63|128,o[i++]=63&s|128;continue}a--}if(r)throw Error("Found an unpaired surrogate");s=65533}o[i++]=s>>12|224,o[i++]=s>>6&63|128}o[i++]=63&s|128}}e=i===o.length?o:o.subarray(0,i)}wt(t.h,8*n+2),wt(t.h,e.length),Ct(t,t.h.end()),Ct(t,e)}})),Ue=Re((function(t,e,n,r,i){if(2!==t.i)return!1;e=Qt(e,n,r),n=t.h.j,r=gt(t.h)>>>0;var o=t.h.h+r,a=o-n;if(0>=a&&(t.h.j=o,i(e,t,void 0,void 0,void 0),a=o-t.h.h),a)throw Error("Message parsing ended unexpectedly. Expected to read "+r+" bytes, instead read "+(r-a)+" bytes, either the data ended unexpectedly or the message misreported its own length");return t.h.h=o,t.h.j=n,!0}),(function(t,e,n,r,i){if(null!=(e=Kt(e,r,n)))for(r=0;r>>=7,a.i++;o.push(s),a.i++}}));function je(t){return function(e,n){t:{if(At.length){var r=At.pop();r.setOptions(n),pt(r.h,e,n),e=r}else e=new _t(e,n);try{var i=Pe(t),o=Oe(new i.P,e,i);break t}finally{(i=e.h).i=null,i.m=!1,i.l=0,i.j=0,i.h=0,i.S=!1,e.l=-1,e.i=-1,100>At.length&&At.push(e)}o=void 0}return o}}function Ve(t){return function(){var e=new Mt;Le(this,e,Me(t)),Ct(e,e.h.end());for(var n=new Uint8Array(e.i),r=e.j,i=r.length,o=0,a=0;a>>0)+"_",i=0;return function t(r){if(this instanceof t)throw new TypeError("Symbol is not a constructor");return new e(n+(r||"")+"_"+i++,r)}})),o("Symbol.iterator",(function(t){if(t)return t;t=Symbol("Symbol.iterator");for(var n="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),o=0;oe&&(e=Math.max(0,r+e)),(null==n||n>r)&&(n=r),0>(n=Number(n))&&(n=Math.max(0,r+n)),e=Number(e||0);e(e=e||0)&&(e=Math.max(e+r,0));e>4),64!=a&&(e(o<<4&240|a>>2),64!=s&&e(a<<6&192|s))}}(t,(function(t){r[i++]=t})),i!==n?r.subarray(0,i):r}function O(){if(!N){N={};for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"],n=0;5>n;n++){var r=t.concat(e[n].split(""));I[n]=r;for(var i=0;i>2];a=e[(3&a)<<4|s>>4],s=e[(15&s)<<2|u>>6],u=e[63&u],n[o++]=l+a+s+u}switch(l=0,u=r,t.length-i){case 2:u=e[(15&(l=t[i+1]))<<2]||r;case 1:t=t[i],n[o]=e[t>>2]+e[(3&t)<<4|l>>4]+u+r}return n.join("")}for(e="";10240t,n=(t=Math.abs(t))>>>0;t=Math.floor((t-n)/4294967296),e&&(e=(n=s($(n,t))).next().value,t=n.next().value,n=e),G=n>>>0,W=t>>>0}var Y,q="function"==typeof BigInt;function $(t,e){return e=~e,t?t=1+~t:e+=1,[t,e]}function K(t,e){this.i=t>>>0,this.h=e>>>0}function Z(t){if(!t)return Y||(Y=new K(0,0));if(!/^-?\d+$/.test(t))return null;if(16>t.length)X(Number(t));else if(q)t=BigInt(t),G=Number(t&BigInt(4294967295))>>>0,W=Number(t>>BigInt(32)&BigInt(4294967295));else{var e=+("-"===t[0]);W=G=0;for(var n=t.length,r=e,i=(n-e)%6+e;i<=n;r=i,i+=6)r=Number(t.slice(r,i)),W*=1e6,4294967296<=(G=1e6*G+r)&&(W+=G/4294967296|0,G%=4294967296);e&&(t=(e=s($(G,W))).next().value,e=e.next().value,G=t,W=e)}return new K(G,W)}function Q(t,e){return Error("Invalid wire type: "+t+" (at position "+e+")")}function J(){return Error("Failed to read varint, encoding is invalid.")}function tt(t,e){return Error("Tried to read past the end of the data "+e+" > "+t)}function et(){throw Error("Invalid UTF8")}function nt(t,e){return e=String.fromCharCode.apply(null,e),null==t?e:t+e}var rt,it,ot,at=void 0,st="undefined"!=typeof TextDecoder,ut="undefined"!=typeof TextEncoder;function lt(t){if(t!==V)throw Error("illegal external caller")}function ct(t,e){if(lt(e),this.V=t,null!=t&&0===t.length)throw Error("ByteString should be constructed with non-empty values")}function ht(){return ot||(ot=new ct(null,V))}function dt(t){lt(V);var e=t.V;return null==(e=null==e||L&&null!=e&&e instanceof Uint8Array?e:"string"==typeof e?U(e):null)?e:t.V=e}function ft(t,e){this.i=null,this.m=!1,this.h=this.j=this.l=0,pt(this,t,e)}function pt(t,e,n){n=void 0===n?{}:n,t.S=void 0!==n.S&&n.S,e&&(e=function(t){if("string"==typeof t)return{buffer:U(t),C:!1};if(Array.isArray(t))return{buffer:new Uint8Array(t),C:!1};if(t.constructor===Uint8Array)return{buffer:t,C:!1};if(t.constructor===ArrayBuffer)return{buffer:new Uint8Array(t),C:!1};if(t.constructor===ct)return{buffer:dt(t)||j(),C:!0};if(t instanceof Uint8Array)return{buffer:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),C:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers")}(e),t.i=e.buffer,t.m=e.C,t.l=0,t.j=t.i.length,t.h=t.l)}function mt(t,e){if(t.h=e,e>t.j)throw tt(t.j,e)}function gt(t){var e=t.i,n=t.h,r=e[n++],i=127&r;if(128&r&&(i|=(127&(r=e[n++]))<<7,128&r&&(i|=(127&(r=e[n++]))<<14,128&r&&(i|=(127&(r=e[n++]))<<21,128&r&&(i|=(r=e[n++])<<28,128&r&&128&e[n++]&&128&e[n++]&&128&e[n++]&&128&e[n++]&&128&e[n++])))))throw J();return mt(t,n),i}function vt(t,e){if(0>e)throw Error("Tried to read a negative byte length: "+e);var n=t.h,r=n+e;if(r>t.j)throw tt(e,t.j-n);return t.h=r,n}ft.prototype.reset=function(){this.h=this.l};var yt=[];function bt(){this.h=[]}function xt(t,e,n){for(;0>>7|n<<25)>>>0,n>>>=7;t.h.push(e)}function wt(t,e){for(;127>>=7;t.h.push(e)}function _t(t,e){if(yt.length){var n=yt.pop();pt(n,t,e),t=n}else t=new ft(t,e);this.h=t,this.j=this.h.h,this.i=this.l=-1,this.setOptions(e)}function St(t){var e=t.h;if(e.h==e.j)return!1;t.j=t.h.h;var n=gt(t.h)>>>0;if(e=n>>>3,!(0<=(n&=7)&&5>=n))throw Q(n,t.j);if(1>e)throw Error("Invalid field number: "+e+" (at position "+t.j+")");return t.l=e,t.i=n,!0}function Et(t){switch(t.i){case 0:if(0!=t.i)Et(t);else t:{for(var e=(t=t.h).h,n=e+10,r=t.i;e>>0,mt(t=t.h,t.h+e));break;case 5:mt(t=t.h,t.h+4);break;case 3:for(e=t.l;;){if(!St(t))throw Error("Unmatched start-group tag: stream EOF");if(4==t.i){if(t.l!=e)throw Error("Unmatched end-group tag");break}Et(t)}break;default:throw Q(t.i,t.j)}}bt.prototype.length=function(){return this.h.length},bt.prototype.end=function(){var t=this.h;return this.h=[],t},_t.prototype.setOptions=function(t){t=void 0===t?{}:t,this.ca=void 0!==t.ca&&t.ca},_t.prototype.reset=function(){this.h.reset(),this.j=this.h.h,this.i=this.l=-1};var At=[];function Mt(){this.j=[],this.i=0,this.h=new bt}function Ct(t,e){0!==e.length&&(t.j.push(e),t.i+=e.length)}var Tt="function"==typeof Symbol&&"symbol"==typeof Symbol()?Symbol():void 0;function kt(t,e){return Tt?t[Tt]|=e:void 0!==t.A?t.A|=e:(Object.defineProperties(t,{A:{value:e,configurable:!0,writable:!0,enumerable:!1}}),e)}function It(t,e){Tt?t[Tt]&&(t[Tt]&=~e):void 0!==t.A&&(t.A&=~e)}function Nt(t){var e;return null==(e=Tt?t[Tt]:t.A)?0:e}function Pt(t,e){Tt?t[Tt]=e:void 0!==t.A?t.A=e:Object.defineProperties(t,{A:{value:e,configurable:!0,writable:!0,enumerable:!1}})}function Ot(t){return kt(t,1),t}function Lt(t,e){Pt(e,-51&t)}function Rt(t,e){Pt(e,-41&t|18)}var Dt={};function zt(t){return null!==t&&"object"==typeof t&&!Array.isArray(t)&&t.constructor===Object}var Ft,Bt,Ut=[];function jt(t){if(2&Nt(t.o))throw Error("Cannot mutate an immutable Message")}function Vt(t){var e=t.length;(e=e?t[e-1]:void 0)&&zt(e)?e.g=1:(e={},t.push((e.g=1,e)))}function Ht(t){var e=t.i+t.G;return t.B||(t.B=t.o[e]={})}function Gt(t,e){return-1===e?null:e>=t.i?t.B?t.B[e]:void 0:t.o[e+t.G]}function Wt(t,e,n,r){jt(t),Xt(t,e,n,r)}function Xt(t,e,n,r){t.j&&(t.j=void 0),e>=t.i||r?Ht(t)[e]=n:(t.o[e+t.G]=n,(t=t.B)&&e in t&&delete t[e])}function Yt(t,e,n,r){var i=Gt(t,e);Array.isArray(i)||(i=Ft);var o=Nt(i);if(1&o||Ot(i),r)2&o||kt(i,2),1&n||Object.freeze(i);else{r=!(2&n);var a=2&o;1&n||!a?r&&16&o&&!a&&It(i,16):Xt(t,e,i=Ot(Array.prototype.slice.call(i)))}return i}function qt(t,e){var n=Gt(t,e),r=null==n?n:"number"==typeof n||"NaN"===n||"Infinity"===n||"-Infinity"===n?Number(n):void 0;return null!=r&&r!==n&&Xt(t,e,r),r}function $t(t,e,n,r,i){t.h||(t.h={});var o=t.h[n],a=Yt(t,n,3,i);if(!o){var s=a;o=[];var u=!!(16&Nt(t.o));a=!!(2&Nt(s));var l=s;!i&&a&&(s=Array.prototype.slice.call(s));for(var c=a,h=0;ha&&"number"!=typeof t[a]){var s=t[a++];n(e,s)}for(;a>>0)>>31)+1,o=a>>>23&255,a&=8388607,Wt(e,n,255==o?a?NaN:1/0*t:0==o?t*Math.pow(2,-149)*a:t*Math.pow(2,o-150)*(a+Math.pow(2,23))),!0}),(function(t,e,n){if(null!=(e=qt(e,n))){wt(t.h,8*n+5),t=t.h;var r=+e;0===r?0<1/r?G=W=0:(W=0,G=2147483648):isNaN(r)?(W=0,G=2147483647):34028234663852886e22<(r=(n=0>r?-2147483648:0)?-r:r)?(W=0,G=(2139095040|n)>>>0):11754943508222875e-54>r?(r=Math.round(r/Math.pow(2,-149)),W=0,G=(n|r)>>>0):(e=Math.floor(Math.log(r)/Math.LN2),r*=Math.pow(2,-e),16777216<=(r=Math.round(8388608*r))&&++e,W=0,G=(n|e+127<<23|8388607&r)>>>0),n=G,t.h.push(n>>>0&255),t.h.push(n>>>8&255),t.h.push(n>>>16&255),t.h.push(n>>>24&255)}})),ze=Re((function(t,e,n){if(0!==t.i)return!1;var r=t.h,i=0,o=t=0,a=r.i,s=r.h;do{var u=a[s++];i|=(127&u)<o&&128&u);for(32>4),o=3;32>o&&128&u;o+=7)t|=(127&(u=a[s++]))<u))throw J();return r=i>>>0,(t=2147483648&(u=t>>>0))&&(u=~u>>>0,0==(r=1+~r>>>0)&&(u=u+1>>>0)),r=4294967296*u+(r>>>0),Wt(e,n,t?-r:r),!0}),(function(t,e,n){null!=(e=Gt(e,n))&&("string"==typeof e&&Z(e),null!=e&&(wt(t.h,8*n),"number"==typeof e?(t=t.h,X(e),xt(t,G,W)):(n=Z(e),xt(t.h,n.i,n.h))))})),Fe=Re((function(t,e,n){return 0===t.i&&(Wt(e,n,gt(t.h)),!0)}),(function(t,e,n){if(null!=(e=Gt(e,n))&&null!=e)if(wt(t.h,8*n),t=t.h,0<=(n=e))wt(t,n);else{for(e=0;9>e;e++)t.h.push(127&n|128),n>>=7;t.h.push(1)}})),Be=Re((function(t,e,n){if(2!==t.i)return!1;var r=gt(t.h)>>>0,i=vt(t=t.h,r);if(t=t.i,st){var o,a=t;(o=rt)||(o=rt=new TextDecoder("utf-8",{fatal:!0})),t=i+r,a=0===i&&t===a.length?a:a.subarray(i,t);try{var s=o.decode(a)}catch(t){if(void 0===at){try{o.decode(new Uint8Array([128]))}catch(t){}try{o.decode(new Uint8Array([97])),at=!0}catch(t){at=!1}}throw!at&&(rt=void 0),t}}else{r=(s=i)+r,i=[];for(var u,l,c=null;s(u=t[s++])?i.push(u):224>u?s>=r?et():(l=t[s++],194>u||128!=(192&l)?(s--,et()):i.push((31&u)<<6|63&l)):240>u?s>=r-1?et():128!=(192&(l=t[s++]))||224===u&&160>l||237===u&&160<=l||128!=(192&(a=t[s++]))?(s--,et()):i.push((15&u)<<12|(63&l)<<6|63&a):244>=u?s>=r-2?et():128!=(192&(l=t[s++]))||l-144+(u<<28)>>30||128!=(192&(a=t[s++]))||128!=(192&(o=t[s++]))?(s--,et()):(u=(7&u)<<18|(63&l)<<12|(63&a)<<6|63&o,u-=65536,i.push(55296+(u>>10&1023),56320+(1023&u))):et(),8192<=i.length&&(c=nt(c,i),i.length=0);s=nt(c,i)}return Wt(e,n,s),!0}),(function(t,e,n){if(null!=(e=Gt(e,n))){var r=!1;if(r=void 0!==r&&r,ut){if(r&&/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(e))throw Error("Found an unpaired surrogate");e=(it||(it=new TextEncoder)).encode(e)}else{for(var i=0,o=new Uint8Array(3*e.length),a=0;as)o[i++]=s;else{if(2048>s)o[i++]=s>>6|192;else{if(55296<=s&&57343>=s){if(56319>=s&&a=u){s=1024*(s-55296)+u-56320+65536,o[i++]=s>>18|240,o[i++]=s>>12&63|128,o[i++]=s>>6&63|128,o[i++]=63&s|128;continue}a--}if(r)throw Error("Found an unpaired surrogate");s=65533}o[i++]=s>>12|224,o[i++]=s>>6&63|128}o[i++]=63&s|128}}e=i===o.length?o:o.subarray(0,i)}wt(t.h,8*n+2),wt(t.h,e.length),Ct(t,t.h.end()),Ct(t,e)}})),Ue=Re((function(t,e,n,r,i){if(2!==t.i)return!1;e=Qt(e,n,r),n=t.h.j,r=gt(t.h)>>>0;var o=t.h.h+r,a=o-n;if(0>=a&&(t.h.j=o,i(e,t,void 0,void 0,void 0),a=o-t.h.h),a)throw Error("Message parsing ended unexpectedly. Expected to read "+r+" bytes, instead read "+(r-a)+" bytes, either the data ended unexpectedly or the message misreported its own length");return t.h.h=o,t.h.j=n,!0}),(function(t,e,n,r,i){if(null!=(e=Kt(e,r,n)))for(r=0;r>>=7,a.i++;o.push(s),a.i++}}));function je(t){return function(e,n){t:{if(At.length){var r=At.pop();r.setOptions(n),pt(r.h,e,n),e=r}else e=new _t(e,n);try{var i=Pe(t),o=Oe(new i.P,e,i);break t}finally{(i=e.h).i=null,i.m=!1,i.l=0,i.j=0,i.h=0,i.S=!1,e.l=-1,e.i=-1,100>At.length&&At.push(e)}o=void 0}return o}}function Ve(t){return function(){var e=new Mt;Le(this,e,Me(t)),Ct(e,e.h.end());for(var n=new Uint8Array(e.i),r=e.j,i=r.length,o=0,a=0;a{"use strict";n.d(e,{Q1:()=>y,ZC:()=>A,Ay:()=>z});var r=n(58168),i=n(64467),o=n(5544),a=n(96540),s=n(89379),u=n(23029),l=n(92901),c=n(15361),h=n(29426),d=n(53986),f=n(82284),p=n(24978),m=["b"],g=["v"],v=function(t){return Math.round(Number(t||0))},y=function(t){(0,c.A)(n,t);var e=(0,h.A)(n);function n(t){return(0,u.A)(this,n),e.call(this,function(t){if(t&&"object"===(0,f.A)(t)&&"h"in t&&"b"in t){var e=t,n=e.b,r=(0,d.A)(e,m);return(0,s.A)((0,s.A)({},r),{},{v:n})}return"string"==typeof t&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t}(t))}return(0,l.A)(n,[{key:"toHsbString",value:function(){var t=this.toHsb(),e=v(100*t.s),n=v(100*t.b),r=v(t.h),i=t.a,o="hsb(".concat(r,", ").concat(e,"%, ").concat(n,"%)"),a="hsba(".concat(r,", ").concat(e,"%, ").concat(n,"%, ").concat(i.toFixed(0===i?0:2),")");return 1===i?o:a}},{key:"toHsb",value:function(){var t=this.toHsv();"object"===(0,f.A)(this.originalInput)&&this.originalInput&&"h"in this.originalInput&&(t=this.originalInput);var e=t,n=(e.v,(0,d.A)(e,g));return(0,s.A)((0,s.A)({},n),{},{b:t.v,a:this.a})}}]),n}(p.q),b=function(t){return t instanceof y?t:new y(t)},x=b("#1677ff"),w=function(t){var e=t.offset,n=t.targetRef,r=t.containerRef,i=t.color,o=t.type,a=r.current.getBoundingClientRect(),u=a.width,l=a.height,c=n.current.getBoundingClientRect(),h=c.width/2,d=c.height/2,f=(e.x+h)/u,p=1-(e.y+d)/l,m=i.toHsb(),g=f,v=(e.x+h)/u*360;if(o)switch(o){case"hue":return b((0,s.A)((0,s.A)({},m),{},{h:v<=0?0:v}));case"alpha":return b((0,s.A)((0,s.A)({},m),{},{a:g<=0?0:g}))}return b({h:m.h,s:f<=0?0:f,b:p>=1?1:p,a:m.a})},_=function(t,e,n,r){var i=t.current.getBoundingClientRect(),o=i.width,a=i.height,s=e.current.getBoundingClientRect(),u=s.width,l=s.height,c=u/2,h=l/2,d=n.toHsb();if((0!==u||0!==l)&&u===l){if(r)switch(r){case"hue":return{x:d.h/360*o-c,y:-h/3};case"alpha":return{x:d.a/1*o-c,y:-h/3}}return{x:d.s*o-c,y:(1-d.b)*a-h}}},S=n(46942),E=n.n(S);const A=function(t){var e=t.color,n=t.prefixCls,r=t.className,i=t.style,o=t.onClick,s="".concat(n,"-color-block");return a.createElement("div",{className:E()(s,r),style:i,onClick:o},a.createElement("div",{className:"".concat(s,"-inner"),style:{background:e}}))};const M=function(t){var e=t.offset,n=t.targetRef,r=t.containerRef,i=t.direction,s=t.onDragChange,u=t.onDragChangeComplete,l=t.calculate,c=t.color,h=t.disabledDrag,d=(0,a.useState)(e||{x:0,y:0}),f=(0,o.A)(d,2),p=f[0],m=f[1],g=(0,a.useRef)(null),v=(0,a.useRef)(null),y=(0,a.useRef)({flag:!1});(0,a.useEffect)((function(){if(!1===y.current.flag){var t=null==l?void 0:l(r);t&&m(t)}}),[c,r]),(0,a.useEffect)((function(){return function(){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",v.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",v.current),g.current=null,v.current=null}}),[]);var b=function(t){var e=function(t){var e="touches"in t?t.touches[0]:t,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:e.pageX-n,pageY:e.pageY-r}}(t),o=e.pageX,a=e.pageY,u=r.current.getBoundingClientRect(),l=u.x,c=u.y,h=u.width,d=u.height,f=n.current.getBoundingClientRect(),g=f.width,v=f.height,y=g/2,b=v/2,x=Math.max(0,Math.min(o-l,h))-y,w=Math.max(0,Math.min(a-c,d))-b,_={x,y:"x"===i?p.y:w};if(0===g&&0===v||g!==v)return!1;m(_),null==s||s(_)},x=function(t){t.preventDefault(),b(t)},w=function(t){t.preventDefault(),y.current.flag=!1,document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",v.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",v.current),g.current=null,v.current=null,null==u||u()};return[p,function(t){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",v.current),h||(b(t),y.current.flag=!0,document.addEventListener("mousemove",x),document.addEventListener("mouseup",w),document.addEventListener("touchmove",x),document.addEventListener("touchend",w),g.current=x,v.current=w)}]};var C=n(81470);const T=function(t){var e=t.size,n=void 0===e?"default":e,r=t.color,o=t.prefixCls;return a.createElement("div",{className:E()("".concat(o,"-handler"),(0,i.A)({},"".concat(o,"-handler-sm"),"small"===n)),style:{backgroundColor:r}})};const k=function(t){var e=t.children,n=t.style,r=t.prefixCls;return a.createElement("div",{className:"".concat(r,"-palette"),style:(0,s.A)({position:"relative"},n)},e)};const I=(0,a.forwardRef)((function(t,e){var n=t.children,r=t.offset;return a.createElement("div",{ref:e,style:{position:"absolute",left:r.x,top:r.y,zIndex:1}},n)}));const N=function(t){var e=t.color,n=t.onChange,r=t.prefixCls,i=t.onChangeComplete,s=t.disabled,u=(0,a.useRef)(),l=(0,a.useRef)(),c=(0,a.useRef)(e),h=(0,C._q)((function(t){var r=w({offset:t,targetRef:l,containerRef:u,color:e});c.current=r,n(r)})),d=M({color:e,containerRef:u,targetRef:l,calculate:function(t){return _(t,l,e)},onDragChange:h,onDragChangeComplete:function(){return null==i?void 0:i(c.current)},disabledDrag:s}),f=(0,o.A)(d,2),p=f[0],m=f[1];return a.createElement("div",{ref:u,className:"".concat(r,"-select"),onMouseDown:m,onTouchStart:m},a.createElement(k,{prefixCls:r},a.createElement(I,{offset:p,ref:l},a.createElement(T,{color:e.toRgbString(),prefixCls:r})),a.createElement("div",{className:"".concat(r,"-saturation"),style:{backgroundColor:"hsl(".concat(e.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))};const P=function(t){var e=t.colors,n=t.children,r=t.direction,i=void 0===r?"to right":r,o=t.type,s=t.prefixCls,u=(0,a.useMemo)((function(){return e.map((function(t,n){var r=b(t);return"alpha"===o&&n===e.length-1&&r.setAlpha(1),r.toRgbString()})).join(",")}),[e,o]);return a.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(i,", ").concat(u,")")}},n)};const O=function(t){var e=t.gradientColors,n=t.direction,r=t.type,i=void 0===r?"hue":r,s=t.color,u=t.value,l=t.onChange,c=t.onChangeComplete,h=t.disabled,d=t.prefixCls,f=(0,a.useRef)(),p=(0,a.useRef)(),m=(0,a.useRef)(s),g=(0,C._q)((function(t){var e=w({offset:t,targetRef:p,containerRef:f,color:s,type:i});m.current=e,l(e)})),v=M({color:s,targetRef:p,containerRef:f,calculate:function(t){return _(t,p,s,i)},onDragChange:g,onDragChangeComplete:function(){null==c||c(m.current,i)},direction:"x",disabledDrag:h}),y=(0,o.A)(v,2),b=y[0],x=y[1];return a.createElement("div",{ref:f,className:E()("".concat(d,"-slider"),"".concat(d,"-slider-").concat(i)),onMouseDown:x,onTouchStart:x},a.createElement(k,{prefixCls:d},a.createElement(I,{offset:b,ref:p},a.createElement(T,{size:"small",color:u,prefixCls:d})),a.createElement(P,{colors:e,direction:n,type:i,prefixCls:d})))};function L(t){return void 0!==t}const R=function(t,e){var n=e.defaultValue,r=e.value,i=(0,a.useState)((function(){var e;return e=L(r)?r:L(n)?n:t,b(e)})),s=(0,o.A)(i,2),u=s[0],l=s[1];return(0,a.useEffect)((function(){r&&l(b(r))}),[r]),[u,l]};var D=["rgb(255, 0, 0) 0%","rgb(255, 255, 0) 17%","rgb(0, 255, 0) 33%","rgb(0, 255, 255) 50%","rgb(0, 0, 255) 67%","rgb(255, 0, 255) 83%","rgb(255, 0, 0) 100%"];const z=(0,a.forwardRef)((function(t,e){var n=t.value,s=t.defaultValue,u=t.prefixCls,l=void 0===u?"rc-color-picker":u,c=t.onChange,h=t.onChangeComplete,d=t.className,f=t.style,p=t.panelRender,m=t.disabledAlpha,g=void 0!==m&&m,v=t.disabled,y=void 0!==v&&v,w=R(x,{value:n,defaultValue:s}),_=(0,o.A)(w,2),S=_[0],M=_[1],C=(0,a.useMemo)((function(){var t=b(S.toRgbString());return t.setAlpha(1),t.toRgbString()}),[S]),T=E()("".concat(l,"-panel"),d,(0,i.A)({},"".concat(l,"-panel-disabled"),y)),k={prefixCls:l,onChangeComplete:h,disabled:y},I=function(t,e){n||M(t),null==c||c(t,e)},P=a.createElement(a.Fragment,null,a.createElement(N,(0,r.A)({color:S,onChange:I},k)),a.createElement("div",{className:"".concat(l,"-slider-container")},a.createElement("div",{className:E()("".concat(l,"-slider-group"),(0,i.A)({},"".concat(l,"-slider-group-disabled-alpha"),g))},a.createElement(O,(0,r.A)({gradientColors:D,color:S,value:"hsl(".concat(S.toHsb().h,",100%, 50%)"),onChange:function(t){return I(t,"hue")}},k)),!g&&a.createElement(O,(0,r.A)({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",C],color:S,value:S.toRgbString(),onChange:function(t){return I(t,"alpha")}},k))),a.createElement(A,{color:S.toRgbString(),prefixCls:l})));return a.createElement("div",{className:T,style:f,ref:e},"function"==typeof p?p(P):P)}))},72595:(t,e,n)=>{"use strict";n.d(e,{A:()=>b});var r=n(5544),i=n(96540),o=n(40961),a=n(20998),s=(n(68210),n(8719));const u=i.createContext(null);var l=n(60436),c=n(30981),h=[];var d=n(85089);function f(t){var e="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=e;var r,i,o=n.style;if(o.position="absolute",o.left="0",o.top="0",o.width="100px",o.height="100px",o.overflow="scroll",t){var a=getComputedStyle(t);o.scrollbarColor=a.scrollbarColor,o.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(t,"::-webkit-scrollbar"),u=parseInt(s.width,10),l=parseInt(s.height,10);try{var c=u?"width: ".concat(s.width,";"):"",h=l?"height: ".concat(s.height,";"):"";(0,d.BD)("\n#".concat(e,"::-webkit-scrollbar {\n").concat(c,"\n").concat(h,"\n}"),e)}catch(t){console.error(t),r=u,i=l}}document.body.appendChild(n);var f=t&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,p=t&&i&&!isNaN(i)?i:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),(0,d.m6)(e),{width:f,height:p}}var p="rc-util-locker-".concat(Date.now()),m=0;function g(t){var e=!!t,n=i.useState((function(){return m+=1,"".concat(p,"_").concat(m)})),o=(0,r.A)(n,1)[0];(0,c.A)((function(){if(e){var t=(r=document.body,"undefined"!=typeof document&&r&&r instanceof Element?f(r):{width:0,height:0}).width,n=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,d.BD)("\nhtml body {\n overflow-y: hidden;\n ".concat(n?"width: calc(100% - ".concat(t,"px);"):"","\n}"),o)}else(0,d.m6)(o);var r;return function(){(0,d.m6)(o)}}),[e,o])}var v=!1;var y=function(t){return!1!==t&&((0,a.A)()&&t?"string"==typeof t?document.querySelector(t):"function"==typeof t?t():t:null)};const b=i.forwardRef((function(t,e){var n=t.open,d=t.autoLock,f=t.getContainer,p=(t.debug,t.autoDestroy),m=void 0===p||p,b=t.children,x=i.useState(n),w=(0,r.A)(x,2),_=w[0],S=w[1],E=_||n;i.useEffect((function(){(m||n)&&S(n)}),[n,m]);var A=i.useState((function(){return y(f)})),M=(0,r.A)(A,2),C=M[0],T=M[1];i.useEffect((function(){var t=y(f);T(null!=t?t:null)}));var k=function(t,e){var n=i.useState((function(){return(0,a.A)()?document.createElement("div"):null})),o=(0,r.A)(n,1)[0],s=i.useRef(!1),d=i.useContext(u),f=i.useState(h),p=(0,r.A)(f,2),m=p[0],g=p[1],v=d||(s.current?void 0:function(t){g((function(e){return[t].concat((0,l.A)(e))}))});function y(){o.parentElement||document.body.appendChild(o),s.current=!0}function b(){var t;null===(t=o.parentElement)||void 0===t||t.removeChild(o),s.current=!1}return(0,c.A)((function(){return t?d?d(y):y():b(),b}),[t]),(0,c.A)((function(){m.length&&(m.forEach((function(t){return t()})),g(h))}),[m]),[o,v]}(E&&!C),I=(0,r.A)(k,2),N=I[0],P=I[1],O=null!=C?C:N;g(d&&n&&(0,a.A)()&&(O===N||O===document.body));var L=null;b&&(0,s.f3)(b)&&e&&(L=b.ref);var R=(0,s.xK)(L,e);if(!E||!(0,a.A)()||void 0===C)return null;var D,z=!1===O||("boolean"==typeof D&&(v=D),v),F=b;return e&&(F=i.cloneElement(b,{ref:R})),i.createElement(u.Provider,{value:P},z?F:(0,o.createPortal)(F,O))}))},62427:(t,e,n)=>{"use strict";n.d(e,{A:()=>V});var r=n(89379),i=n(5544),o=n(53986),a=n(72595),s=n(46942),u=n.n(s),l=n(18462),c=n(66588),h=n(72633),d=n(26956),f=n(56855),p=n(30981),m=n(68430),g=n(96540),v=n(58168),y=n(57557),b=n(8719);function x(t){var e=t.prefixCls,n=t.align,r=t.arrow,i=t.arrowPos,o=r||{},a=o.className,s=o.content,l=i.x,c=void 0===l?0:l,h=i.y,d=void 0===h?0:h,f=g.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(!1!==n.autoArrow){var m=n.points[0],v=n.points[1],y=m[0],b=m[1],x=v[0],w=v[1];y!==x&&["t","b"].includes(y)?"t"===y?p.top=0:p.bottom=0:p.top=d,b!==w&&["l","r"].includes(b)?"l"===b?p.left=0:p.right=0:p.left=c}return g.createElement("div",{ref:f,className:u()("".concat(e,"-arrow"),a),style:p},s)}function w(t){var e=t.prefixCls,n=t.open,r=t.zIndex,i=t.mask,o=t.motion;return i?g.createElement(y.Ay,(0,v.A)({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(t){var n=t.className;return g.createElement("div",{style:{zIndex:r},className:u()("".concat(e,"-mask"),n)})})):null}const _=g.memo((function(t){return t.children}),(function(t,e){return e.cache}));const S=g.forwardRef((function(t,e){var n=t.popup,o=t.className,a=t.prefixCls,s=t.style,c=t.target,h=t.onVisibleChanged,d=t.open,f=t.keepDom,m=t.fresh,S=t.onClick,E=t.mask,A=t.arrow,M=t.arrowPos,C=t.align,T=t.motion,k=t.maskMotion,I=t.forceRender,N=t.getPopupContainer,P=t.autoDestroy,O=t.portal,L=t.zIndex,R=t.onMouseEnter,D=t.onMouseLeave,z=t.onPointerEnter,F=t.ready,B=t.offsetX,U=t.offsetY,j=t.offsetR,V=t.offsetB,H=t.onAlign,G=t.onPrepare,W=t.stretch,X=t.targetWidth,Y=t.targetHeight,q="function"==typeof n?n():n,$=d||f,K=(null==N?void 0:N.length)>0,Z=g.useState(!N||!K),Q=(0,i.A)(Z,2),J=Q[0],tt=Q[1];if((0,p.A)((function(){!J&&K&&c&&tt(!0)}),[J,K,c]),!J)return null;var et="auto",nt={left:"-1000vw",top:"-1000vh",right:et,bottom:et};if(F||!d){var rt,it=C.points,ot=C.dynamicInset||(null===(rt=C._experimental)||void 0===rt?void 0:rt.dynamicInset),at=ot&&"r"===it[0][1],st=ot&&"b"===it[0][0];at?(nt.right=j,nt.left=et):(nt.left=B,nt.right=et),st?(nt.bottom=V,nt.top=et):(nt.top=U,nt.bottom=et)}var ut={};return W&&(W.includes("height")&&Y?ut.height=Y:W.includes("minHeight")&&Y&&(ut.minHeight=Y),W.includes("width")&&X?ut.width=X:W.includes("minWidth")&&X&&(ut.minWidth=X)),d||(ut.pointerEvents="none"),g.createElement(O,{open:I||$,getContainer:N&&function(){return N(c)},autoDestroy:P},g.createElement(w,{prefixCls:a,open:d,zIndex:L,mask:E,motion:k}),g.createElement(l.A,{onResize:H,disabled:!d},(function(t){return g.createElement(y.Ay,(0,v.A)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:I,leavedClassName:"".concat(a,"-hidden")},T,{onAppearPrepare:G,onEnterPrepare:G,visible:d,onVisibleChanged:function(t){var e;null==T||null===(e=T.onVisibleChanged)||void 0===e||e.call(T,t),h(t)}}),(function(n,i){var l=n.className,c=n.style,h=u()(a,l,o);return g.createElement("div",{ref:(0,b.K4)(t,e,i),className:h,style:(0,r.A)((0,r.A)((0,r.A)((0,r.A)({"--arrow-x":"".concat(M.x||0,"px"),"--arrow-y":"".concat(M.y||0,"px")},nt),ut),c),{},{boxSizing:"border-box",zIndex:L},s),onMouseEnter:R,onMouseLeave:D,onPointerEnter:z,onClick:S},A&&g.createElement(x,{prefixCls:a,arrow:A,arrowPos:M,align:C}),g.createElement(_,{cache:!d&&!m},q))}))})))}));const E=g.forwardRef((function(t,e){var n=t.children,r=t.getTriggerDOMNode,i=(0,b.f3)(n),o=g.useCallback((function(t){(0,b.Xf)(e,r?r(t):t)}),[r]),a=(0,b.xK)(o,n.ref);return i?g.cloneElement(n,{ref:a}):n}));const A=g.createContext(null);function M(t){return t?Array.isArray(t)?t:[t]:[]}var C=n(42467);function T(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?t[0]===e[0]:t[0]===e[0]&&t[1]===e[1]}function k(t,e,n,r){return e||(n?{motionName:"".concat(t,"-").concat(n)}:r?{motionName:r}:null)}function I(t){return t.ownerDocument.defaultView}function N(t){for(var e=[],n=null==t?void 0:t.parentElement,r=["hidden","scroll","clip","auto"];n;){var i=I(n).getComputedStyle(n);[i.overflowX,i.overflowY,i.overflow].some((function(t){return r.includes(t)}))&&e.push(n),n=n.parentElement}return e}function P(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(t)?e:t}function O(t){return P(parseFloat(t),0)}function L(t,e){var n=(0,r.A)({},t);return(e||[]).forEach((function(t){if(!(t instanceof HTMLBodyElement||t instanceof HTMLHtmlElement)){var e=I(t).getComputedStyle(t),r=e.overflow,i=e.overflowClipMargin,o=e.borderTopWidth,a=e.borderBottomWidth,s=e.borderLeftWidth,u=e.borderRightWidth,l=t.getBoundingClientRect(),c=t.offsetHeight,h=t.clientHeight,d=t.offsetWidth,f=t.clientWidth,p=O(o),m=O(a),g=O(s),v=O(u),y=P(Math.round(l.width/d*1e3)/1e3),b=P(Math.round(l.height/c*1e3)/1e3),x=(d-f-g-v)*y,w=(c-h-p-m)*b,_=p*b,S=m*b,E=g*y,A=v*y,M=0,C=0;if("clip"===r){var T=O(i);M=T*y,C=T*b}var k=l.x+E-M,N=l.y+_-C,L=k+l.width+2*M-E-A-x,R=N+l.height+2*C-_-S-w;n.left=Math.max(n.left,k),n.top=Math.max(n.top,N),n.right=Math.min(n.right,L),n.bottom=Math.min(n.bottom,R)}})),n}function R(t){var e="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=e.match(/^(.*)\%$/);return n?t*(parseFloat(n[1])/100):parseFloat(e)}function D(t,e){var n=e||[],r=(0,i.A)(n,2),o=r[0],a=r[1];return[R(t.width,o),R(t.height,a)]}function z(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[t[0],t[1]]}function F(t,e){var n,r=e[0],i=e[1];return n="t"===r?t.y:"b"===r?t.y+t.height:t.y+t.height/2,{x:"l"===i?t.x:"r"===i?t.x+t.width:t.x+t.width/2,y:n}}function B(t,e){var n={t:"b",b:"t",l:"r",r:"l"};return t.map((function(t,r){return r===e?n[t]||"c":t})).join("")}var U=n(60436);n(68210);var j=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const V=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.A;return g.forwardRef((function(e,n){var a=e.prefixCls,s=void 0===a?"rc-trigger-popup":a,v=e.children,y=e.action,b=void 0===y?"hover":y,x=e.showAction,w=e.hideAction,_=e.popupVisible,O=e.defaultPopupVisible,R=e.onPopupVisibleChange,V=e.afterPopupVisibleChange,H=e.mouseEnterDelay,G=e.mouseLeaveDelay,W=void 0===G?.1:G,X=e.focusDelay,Y=e.blurDelay,q=e.mask,$=e.maskClosable,K=void 0===$||$,Z=e.getPopupContainer,Q=e.forceRender,J=e.autoDestroy,tt=e.destroyPopupOnHide,et=e.popup,nt=e.popupClassName,rt=e.popupStyle,it=e.popupPlacement,ot=e.builtinPlacements,at=void 0===ot?{}:ot,st=e.popupAlign,ut=e.zIndex,lt=e.stretch,ct=e.getPopupClassNameFromAlign,ht=e.fresh,dt=e.alignPoint,ft=e.onPopupClick,pt=e.onPopupAlign,mt=e.arrow,gt=e.popupMotion,vt=e.maskMotion,yt=e.popupTransitionName,bt=e.popupAnimation,xt=e.maskTransitionName,wt=e.maskAnimation,_t=e.className,St=e.getTriggerDOMNode,Et=(0,o.A)(e,j),At=J||tt||!1,Mt=g.useState(!1),Ct=(0,i.A)(Mt,2),Tt=Ct[0],kt=Ct[1];(0,p.A)((function(){kt((0,m.A)())}),[]);var It=g.useRef({}),Nt=g.useContext(A),Pt=g.useMemo((function(){return{registerSubPopup:function(t,e){It.current[t]=e,null==Nt||Nt.registerSubPopup(t,e)}}}),[Nt]),Ot=(0,f.A)(),Lt=g.useState(null),Rt=(0,i.A)(Lt,2),Dt=Rt[0],zt=Rt[1],Ft=g.useRef(null),Bt=(0,d.A)((function(t){Ft.current=t,(0,c.f)(t)&&Dt!==t&&zt(t),null==Nt||Nt.registerSubPopup(Ot,t)})),Ut=g.useState(null),jt=(0,i.A)(Ut,2),Vt=jt[0],Ht=jt[1],Gt=g.useRef(null),Wt=(0,d.A)((function(t){(0,c.f)(t)&&Vt!==t&&(Ht(t),Gt.current=t)})),Xt=g.Children.only(v),Yt=(null==Xt?void 0:Xt.props)||{},qt={},$t=(0,d.A)((function(t){var e,n,r=Vt;return(null==r?void 0:r.contains(t))||(null===(e=(0,h.j)(r))||void 0===e?void 0:e.host)===t||t===r||(null==Dt?void 0:Dt.contains(t))||(null===(n=(0,h.j)(Dt))||void 0===n?void 0:n.host)===t||t===Dt||Object.values(It.current).some((function(e){return(null==e?void 0:e.contains(t))||t===e}))})),Kt=k(s,gt,bt,yt),Zt=k(s,vt,wt,xt),Qt=g.useState(O||!1),Jt=(0,i.A)(Qt,2),te=Jt[0],ee=Jt[1],ne=null!=_?_:te,re=(0,d.A)((function(t){void 0===_&&ee(t)}));(0,p.A)((function(){ee(_||!1)}),[_]);var ie=g.useRef(ne);ie.current=ne;var oe=g.useRef([]);oe.current=[];var ae=(0,d.A)((function(t){var e;re(t),(null!==(e=oe.current[oe.current.length-1])&&void 0!==e?e:ne)!==t&&(oe.current.push(t),null==R||R(t))})),se=g.useRef(),ue=function(){clearTimeout(se.current)},le=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;ue(),0===e?ae(t):se.current=setTimeout((function(){ae(t)}),1e3*e)};g.useEffect((function(){return ue}),[]);var ce=g.useState(!1),he=(0,i.A)(ce,2),de=he[0],fe=he[1];(0,p.A)((function(t){t&&!ne||fe(!0)}),[ne]);var pe=g.useState(null),me=(0,i.A)(pe,2),ge=me[0],ve=me[1],ye=g.useState([0,0]),be=(0,i.A)(ye,2),xe=be[0],we=be[1],_e=function(t){we([t.clientX,t.clientY])},Se=function(t,e,n,o,a,s,u){var l=g.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[o]||{}}),h=(0,i.A)(l,2),f=h[0],m=h[1],v=g.useRef(0),y=g.useMemo((function(){return e?N(e):[]}),[e]),b=g.useRef({});t||(b.current={});var x=(0,d.A)((function(){if(e&&n&&t){var l,h,d,f=e,p=f.ownerDocument,g=I(f).getComputedStyle(f),v=g.width,x=g.height,w=g.position,_=f.style.left,S=f.style.top,E=f.style.right,A=f.style.bottom,M=f.style.overflow,T=(0,r.A)((0,r.A)({},a[o]),s),k=p.createElement("div");if(null===(l=f.parentElement)||void 0===l||l.appendChild(k),k.style.left="".concat(f.offsetLeft,"px"),k.style.top="".concat(f.offsetTop,"px"),k.style.position=w,k.style.height="".concat(f.offsetHeight,"px"),k.style.width="".concat(f.offsetWidth,"px"),f.style.left="0",f.style.top="0",f.style.right="auto",f.style.bottom="auto",f.style.overflow="hidden",Array.isArray(n))d={x:n[0],y:n[1],width:0,height:0};else{var N=n.getBoundingClientRect();d={x:N.x,y:N.y,width:N.width,height:N.height}}var O=f.getBoundingClientRect(),R=p.documentElement,U=R.clientWidth,j=R.clientHeight,V=R.scrollWidth,H=R.scrollHeight,G=R.scrollTop,W=R.scrollLeft,X=O.height,Y=O.width,q=d.height,$=d.width,K={left:0,top:0,right:U,bottom:j},Z={left:-W,top:-G,right:V-W,bottom:H-G},Q=T.htmlRegion,J="visible",tt="visibleFirst";"scroll"!==Q&&Q!==tt&&(Q=J);var et=Q===tt,nt=L(Z,y),rt=L(K,y),it=Q===J?rt:nt,ot=et?rt:it;f.style.left="auto",f.style.top="auto",f.style.right="0",f.style.bottom="0";var at=f.getBoundingClientRect();f.style.left=_,f.style.top=S,f.style.right=E,f.style.bottom=A,f.style.overflow=M,null===(h=f.parentElement)||void 0===h||h.removeChild(k);var st=P(Math.round(Y/parseFloat(v)*1e3)/1e3),ut=P(Math.round(X/parseFloat(x)*1e3)/1e3);if(0===st||0===ut||(0,c.f)(n)&&!(0,C.A)(n))return;var lt=T.offset,ct=T.targetOffset,ht=D(O,lt),dt=(0,i.A)(ht,2),ft=dt[0],pt=dt[1],mt=D(d,ct),gt=(0,i.A)(mt,2),vt=gt[0],yt=gt[1];d.x-=vt,d.y-=yt;var bt=T.points||[],xt=(0,i.A)(bt,2),wt=xt[0],_t=z(xt[1]),St=z(wt),Et=F(d,_t),At=F(O,St),Mt=(0,r.A)({},T),Ct=Et.x-At.x+ft,Tt=Et.y-At.y+pt;function we(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:it,r=O.x+t,i=O.y+e,o=r+Y,a=i+X,s=Math.max(r,n.left),u=Math.max(i,n.top),l=Math.min(o,n.right),c=Math.min(a,n.bottom);return Math.max(0,(l-s)*(c-u))}var kt,It,Nt,Pt,Ot=we(Ct,Tt),Lt=we(Ct,Tt,rt),Rt=F(d,["t","l"]),Dt=F(O,["t","l"]),zt=F(d,["b","r"]),Ft=F(O,["b","r"]),Bt=T.overflow||{},Ut=Bt.adjustX,jt=Bt.adjustY,Vt=Bt.shiftX,Ht=Bt.shiftY,Gt=function(t){return"boolean"==typeof t?t:t>=0};function _e(){kt=O.y+Tt,It=kt+X,Nt=O.x+Ct,Pt=Nt+Y}_e();var Wt=Gt(jt),Xt=St[0]===_t[0];if(Wt&&"t"===St[0]&&(It>ot.bottom||b.current.bt)){var Yt=Tt;Xt?Yt-=X-q:Yt=Rt.y-Ft.y-pt;var qt=we(Ct,Yt),$t=we(Ct,Yt,rt);qt>Ot||qt===Ot&&(!et||$t>=Lt)?(b.current.bt=!0,Tt=Yt,pt=-pt,Mt.points=[B(St,0),B(_t,0)]):b.current.bt=!1}if(Wt&&"b"===St[0]&&(ktOt||Zt===Ot&&(!et||Qt>=Lt)?(b.current.tb=!0,Tt=Kt,pt=-pt,Mt.points=[B(St,0),B(_t,0)]):b.current.tb=!1}var Jt=Gt(Ut),te=St[1]===_t[1];if(Jt&&"l"===St[1]&&(Pt>ot.right||b.current.rl)){var ee=Ct;te?ee-=Y-$:ee=Rt.x-Ft.x-ft;var ne=we(ee,Tt),re=we(ee,Tt,rt);ne>Ot||ne===Ot&&(!et||re>=Lt)?(b.current.rl=!0,Ct=ee,ft=-ft,Mt.points=[B(St,1),B(_t,1)]):b.current.rl=!1}if(Jt&&"r"===St[1]&&(NtOt||oe===Ot&&(!et||ae>=Lt)?(b.current.lr=!0,Ct=ie,ft=-ft,Mt.points=[B(St,1),B(_t,1)]):b.current.lr=!1}_e();var se=!0===Vt?0:Vt;"number"==typeof se&&(Ntrt.right&&(Ct-=Pt-rt.right-ft,d.x>rt.right-se&&(Ct+=d.x-rt.right+se)));var ue=!0===Ht?0:Ht;"number"==typeof ue&&(ktrt.bottom&&(Tt-=It-rt.bottom-pt,d.y>rt.bottom-ue&&(Tt+=d.y-rt.bottom+ue)));var le=O.x+Ct,ce=le+Y,he=O.y+Tt,de=he+X,fe=d.x,pe=fe+$,me=d.y,ge=me+q,ve=(Math.max(le,fe)+Math.min(ce,pe))/2-le,ye=(Math.max(he,me)+Math.min(de,ge))/2-he;null==u||u(e,Mt);var be=at.right-O.x-(Ct+O.width),xe=at.bottom-O.y-(Tt+O.height);m({ready:!0,offsetX:Ct/st,offsetY:Tt/ut,offsetR:be/st,offsetB:xe/ut,arrowX:ve/st,arrowY:ye/ut,scaleX:st,scaleY:ut,align:Mt})}})),w=function(){m((function(t){return(0,r.A)((0,r.A)({},t),{},{ready:!1})}))};return(0,p.A)(w,[o]),(0,p.A)((function(){t||w()}),[t]),[f.ready,f.offsetX,f.offsetY,f.offsetR,f.offsetB,f.arrowX,f.arrowY,f.scaleX,f.scaleY,f.align,function(){v.current+=1;var t=v.current;Promise.resolve().then((function(){v.current===t&&x()}))}]}(ne,Dt,dt?xe:Vt,it,at,st,pt),Ee=(0,i.A)(Se,11),Ae=Ee[0],Me=Ee[1],Ce=Ee[2],Te=Ee[3],ke=Ee[4],Ie=Ee[5],Ne=Ee[6],Pe=Ee[7],Oe=Ee[8],Le=Ee[9],Re=Ee[10],De=function(t,e,n,r){return g.useMemo((function(){var i=M(null!=n?n:e),o=M(null!=r?r:e),a=new Set(i),s=new Set(o);return t&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]}),[t,e,n,r])}(Tt,b,x,w),ze=(0,i.A)(De,2),Fe=ze[0],Be=ze[1],Ue=Fe.has("click"),je=Be.has("click")||Be.has("contextMenu"),Ve=(0,d.A)((function(){de||Re()}));!function(t,e,n,r,i){(0,p.A)((function(){if(t&&e&&n){var o=n,a=N(e),s=N(o),u=I(o),l=new Set([u].concat((0,U.A)(a),(0,U.A)(s)));function c(){r(),i()}return l.forEach((function(t){t.addEventListener("scroll",c,{passive:!0})})),u.addEventListener("resize",c,{passive:!0}),r(),function(){l.forEach((function(t){t.removeEventListener("scroll",c),u.removeEventListener("resize",c)}))}}}),[t,e,n])}(ne,Vt,Dt,Ve,(function(){ie.current&&dt&&je&&le(!1)})),(0,p.A)((function(){Ve()}),[xe,it]),(0,p.A)((function(){!ne||null!=at&&at[it]||Ve()}),[JSON.stringify(st)]);var He=g.useMemo((function(){var t=function(t,e,n,r){for(var i=n.points,o=Object.keys(t),a=0;a1?a-1:0),u=1;u1?n-1:0),i=1;i1?n-1:0),i=1;i{"use strict"; +(self.webpackChunkvisualization_collection=self.webpackChunkvisualization_collection||[]).push([[800],{20439:(t,e,n)=>{"use strict";n.d(e,{z1:()=>_,cM:()=>y,uy:()=>b});var r=n(62456),i=n(76250),o=2,a=.16,s=.05,u=.05,l=.15,c=5,h=4,d=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function f(t){var e=t.r,n=t.g,i=t.b,o=(0,r.wE)(e,n,i);return{h:360*o.h,s:o.s,v:o.v}}function p(t){var e=t.r,n=t.g,i=t.b;return"#".concat((0,r.Ob)(e,n,i,!1))}function m(t,e,n){var r;return(r=Math.round(t.h)>=60&&Math.round(t.h)<=240?n?Math.round(t.h)-o*e:Math.round(t.h)+o*e:n?Math.round(t.h)+o*e:Math.round(t.h)-o*e)<0?r+=360:r>=360&&(r-=360),r}function g(t,e,n){return 0===t.h&&0===t.s?t.s:((r=n?t.s-a*e:e===h?t.s+a:t.s+s*e)>1&&(r=1),n&&e===c&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function v(t,e,n){var r;return(r=n?t.v+u*e:t.v-l*e)>1&&(r=1),Number(r.toFixed(2))}function y(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,i.RO)(t),o=c;o>0;o-=1){var a=f(r),s=p((0,i.RO)({h:m(a,o,!0),s:g(a,o,!0),v:v(a,o,!0)}));n.push(s)}n.push(p(r));for(var u=1;u<=h;u+=1){var l=f(r),y=p((0,i.RO)({h:m(l,u),s:g(l,u),v:v(l,u)}));n.push(y)}return"dark"===e.theme?d.map((function(t){var r,o,a,s=t.index,u=t.opacity;return p((r=(0,i.RO)(e.backgroundColor||"#141414"),o=(0,i.RO)(n[s]),a=100*u/100,{r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b}))})):n}var b={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},x={},w={};Object.keys(b).forEach((function(t){x[t]=y(b[t]),x[t].primary=x[t][5],w[t]=y(b[t],{theme:"dark",backgroundColor:"#141414"}),w[t].primary=w[t][5]}));x.red,x.volcano,x.gold,x.orange,x.yellow,x.lime,x.green,x.cyan;var _=x.blue;x.geekblue,x.purple,x.magenta,x.grey,x.grey},64552:(t,e,n)=>{"use strict";n.d(e,{Mo:()=>se,an:()=>k,Ki:()=>F,zA:()=>D,RC:()=>oe,hV:()=>tt,IV:()=>re});var r=n(64467),i=n(5544),o=n(60436),a=n(89379);const s=function(t){for(var e,n=0,r=0,i=t.length;i>=4;++r,i-=4)e=1540483477*(65535&(e=255&t.charCodeAt(r)|(255&t.charCodeAt(++r))<<8|(255&t.charCodeAt(++r))<<16|(255&t.charCodeAt(++r))<<24))+(59797*(e>>>16)<<16),n=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&t.charCodeAt(r+2))<<16;case 2:n^=(255&t.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&t.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};var u=n(85089),l=n(96540),c=n.t(l,2),h=(n(28104),n(43210),n(23029)),d=n(92901),f="%";function p(t){return t.join(f)}const m=function(){function t(e){(0,h.A)(this,t),(0,r.A)(this,"instanceId",void 0),(0,r.A)(this,"cache",new Map),this.instanceId=e}return(0,d.A)(t,[{key:"get",value:function(t){return this.opGet(p(t))}},{key:"opGet",value:function(t){return this.cache.get(t)||null}},{key:"update",value:function(t,e){return this.opUpdate(p(t),e)}},{key:"opUpdate",value:function(t,e){var n=e(this.cache.get(t));null===n?this.cache.delete(t):this.cache.set(t,n)}}]),t}();var g="data-token-hash",v="data-css-hash",y="__cssinjs_instance__";function b(){var t=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var e=document.body.querySelectorAll("style[".concat(v,"]"))||[],n=document.head.firstChild;Array.from(e).forEach((function(e){e[y]=e[y]||t,e[y]===t&&document.head.insertBefore(e,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(v,"]"))).forEach((function(e){var n,i=e.getAttribute(v);r[i]?e[y]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e)):r[i]=!0}))}return new m(t)}var x=l.createContext({hashPriority:"low",cache:b(),defaultCache:!0});const w=x;var _=n(82284),S=n(20998);var E=function(){function t(){(0,h.A)(this,t),(0,r.A)(this,"cache",void 0),(0,r.A)(this,"keys",void 0),(0,r.A)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,d.A)(t,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i={map:this.cache};return t.forEach((function(t){var e;i?i=null===(e=i)||void 0===e||null===(e=e.map)||void 0===e?void 0:e.get(t):i=void 0})),null!==(e=i)&&void 0!==e&&e.value&&r&&(i.value[1]=this.cacheCallTimes++),null===(n=i)||void 0===n?void 0:n.value}},{key:"get",value:function(t){var e;return null===(e=this.internalGet(t,!0))||void 0===e?void 0:e[0]}},{key:"has",value:function(t){return!!this.internalGet(t)}},{key:"set",value:function(e,n){var r=this;if(!this.has(e)){if(this.size()+1>t.MAX_CACHE_SIZE+t.MAX_CACHE_OFFSET){var o=this.keys.reduce((function(t,e){var n=(0,i.A)(t,2)[1];return r.internalGet(e)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),M+=1}return(0,d.A)(t,[{key:"getDerivativeToken",value:function(t){return this.derivatives.reduce((function(e,n){return n(t,e)}),void 0)}}]),t}(),T=new E;function k(t){var e=Array.isArray(t)?t:[t];return T.has(e)||T.set(e,new C(e)),T.get(e)}var I=new WeakMap,N={};var P=new WeakMap;function O(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=P.get(t)||"";return n||(Object.keys(t).forEach((function(r){var i=t[r];n+=r,i instanceof C?n+=i.id:i&&"object"===(0,_.A)(i)?n+=O(i,e):n+=i})),e&&(n=s(n)),P.set(t,n)),n}function L(t,e){return s("".concat(e,"_").concat(O(t,!0)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var R=(0,S.A)();function D(t){return"number"==typeof t?"".concat(t,"px"):t}function z(t,e,n){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return t;var s=(0,a.A)((0,a.A)({},o),{},(i={},(0,r.A)(i,g,e),(0,r.A)(i,v,n),i)),u=Object.keys(s).map((function(t){var e=s[t];return e?"".concat(t,'="').concat(e,'"'):null})).filter((function(t){return t})).join(" ");return"")}var F=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(e?"".concat(e,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},B=function(t,e,n){return Object.keys(t).length?".".concat(e).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(t).map((function(t){var e=(0,i.A)(t,2),n=e[0],r=e[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},U=function(t,e,n){var r={},o={};return Object.entries(t).forEach((function(t){var e,a,s=(0,i.A)(t,2),u=s[0],l=s[1];if(null!=n&&null!==(e=n.preserve)&&void 0!==e&&e[u])o[u]=l;else if(!("string"!=typeof l&&"number"!=typeof l||null!=n&&null!==(a=n.ignore)&&void 0!==a&&a[u])){var c,h=F(u,null==n?void 0:n.prefix);r[h]="number"!=typeof l||null!=n&&null!==(c=n.unitless)&&void 0!==c&&c[u]?String(l):"".concat(l,"px"),o[u]="var(".concat(h,")")}})),[o,B(r,e,{scope:null==n?void 0:n.scope})]},j=n(30981),V=(0,a.A)({},c).useInsertionEffect;const H=V?function(t,e,n){return V((function(){return t(),e()}),n)}:function(t,e,n){l.useMemo(t,n),(0,j.A)((function(){return e(!0)}),n)};const G=void 0!==(0,a.A)({},c).useInsertionEffect?function(t){var e=[],n=!1;return l.useEffect((function(){return n=!1,function(){n=!0,e.length&&e.forEach((function(t){return t()}))}}),t),function(t){n||e.push(t)}}:function(){return function(t){t()}};const W=function(){return!1};function X(t,e,n,r,a){var s=l.useContext(w).cache,u=p([t].concat((0,o.A)(e))),c=G([u]),h=(W(),function(t){s.opUpdate(u,(function(e){var r=e||[void 0,void 0],o=(0,i.A)(r,2),a=o[0];var s=[void 0===a?0:a,o[1]||n()];return t?t(s):s}))});l.useMemo((function(){h()}),[u]);var d=s.opGet(u)[1];return H((function(){null==a||a(d)}),(function(t){return h((function(e){var n=(0,i.A)(e,2),r=n[0],o=n[1];return t&&0===r&&(null==a||a(d)),[r+1,o]})),function(){s.opUpdate(u,(function(e){var n=e||[],o=(0,i.A)(n,2),a=o[0],l=void 0===a?0:a,h=o[1];return 0===l-1?(c((function(){!t&&s.opGet(u)||null==r||r(h,!1)})),null):[l-1,h]}))}}),[u]),d}var Y={},q="css",$=new Map;var K=0;function Z(t,e){$.set(t,($.get(t)||0)-1);var n=Array.from($.keys()),r=n.filter((function(t){return($.get(t)||0)<=0}));n.length-r.length>K&&r.forEach((function(t){!function(t,e){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(g,'="').concat(t,'"]')).forEach((function(t){var n;t[y]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t))}))}(t,e),$.delete(t)}))}var Q=function(t,e,n,r){var i=n.getDerivativeToken(t),o=(0,a.A)((0,a.A)({},i),e);return r&&(o=r(o)),o},J="token";function tt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,l.useContext)(w),c=r.cache.instanceId,h=r.container,d=n.salt,f=void 0===d?"":d,p=n.override,m=void 0===p?Y:p,b=n.formatToken,x=n.getComputedToken,_=n.cssVar,S=function(t,e){for(var n=I,r=0;r0?pt(At,--St):0,wt--,10===Et&&(wt=1,xt--),Et}function Tt(){return Et=St<_t?pt(At,St++):0,wt++,10===Et&&(wt=1,xt++),Et}function kt(){return pt(At,St)}function It(){return St}function Nt(t,e){return mt(At,t,e)}function Pt(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ot(t){return xt=wt=1,_t=gt(At=t),St=0,[]}function Lt(t){return At="",t}function Rt(t){return ht(Nt(St-1,Ft(91===t?t+2:40===t?t+1:t)))}function Dt(t){for(;(Et=kt())&&Et<33;)Tt();return Pt(t)>2||Pt(Et)>3?"":" "}function zt(t,e){for(;--e&&Tt()&&!(Et<48||Et>102||Et>57&&Et<65||Et>70&&Et<97););return Nt(t,It()+(e<6&&32==kt()&&32==Tt()))}function Ft(t){for(;Tt();)switch(Et){case t:return St;case 34:case 39:34!==t&&39!==t&&Ft(Et);break;case 40:41===t&&Ft(t);break;case 92:Tt()}return St}function Bt(t,e){for(;Tt()&&t+Et!==57&&(t+Et!==84||47!==kt()););return"/*"+Nt(e,St-1)+"*"+ct(47===t?t:Tt())}function Ut(t){for(;!Pt(kt());)Tt();return Nt(t,St)}function jt(t){return Lt(Vt("",null,null,null,[""],t=Ot(t),0,[0],t))}function Vt(t,e,n,r,i,o,a,s,u){for(var l=0,c=0,h=a,d=0,f=0,p=0,m=1,g=1,v=1,y=0,b="",x=i,w=o,_=r,S=b;g;)switch(p=y,y=Tt()){case 40:if(108!=p&&58==pt(S,h-1)){-1!=ft(S+=dt(Rt(y),"&","&\f"),"&\f",lt(l?s[l-1]:0))&&(v=-1);break}case 34:case 39:case 91:S+=Rt(y);break;case 9:case 10:case 13:case 32:S+=Dt(p);break;case 92:S+=zt(It()-1,7);continue;case 47:switch(kt()){case 42:case 47:vt(Gt(Bt(Tt(),It()),e,n,u),u);break;default:S+="/"}break;case 123*m:s[l++]=gt(S)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+c:-1==v&&(S=dt(S,/\f/g,"")),f>0&>(S)-h&&vt(f>32?Wt(S+";",r,n,h-1,u):Wt(dt(S," ","")+";",r,n,h-2,u),u);break;case 59:S+=";";default:if(vt(_=Ht(S,e,n,l,c,i,s,b,x=[],w=[],h,o),o),123===y)if(0===c)Vt(S,e,_,_,x,o,h,s,w);else switch(99===d&&110===pt(S,3)?100:d){case 100:case 108:case 109:case 115:Vt(t,_,_,r&&vt(Ht(t,_,_,0,0,i,s,b,i,x=[],h,w),w),i,w,h,s,r?x:w);break;default:Vt(S,_,_,_,[""],w,0,s,w)}}l=c=f=0,m=v=1,b=S="",h=a;break;case 58:h=1+gt(S),f=p;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==Ct())continue;switch(S+=ct(y),y*m){case 38:v=c>0?1:(S+="\f",-1);break;case 44:s[l++]=(gt(S)-1)*v,v=1;break;case 64:45===kt()&&(S+=Rt(Tt())),d=kt(),c=h=gt(b=S+=Ut(It())),y++;break;case 45:45===p&&2==gt(S)&&(m=0)}}return o}function Ht(t,e,n,r,i,o,a,s,u,l,c,h){for(var d=i-1,f=0===i?o:[""],p=function(t){return t.length}(f),m=0,g=0,v=0;m0?f[y]+" "+b:dt(b,/&\f/g,f[y])))&&(u[v++]=x);return Mt(t,e,n,0===i?it:s,u,l,c,h)}function Gt(t,e,n,r){return Mt(t,e,n,rt,ct(Et),mt(t,2,-2),0,r)}function Wt(t,e,n,r,i){return Mt(t,e,n,ot,mt(t,0,r),mt(t,r+1,-1),r,i)}var Xt,Yt="data-ant-cssinjs-cache-path",qt="_FILE_STYLE__";var $t=!0;function Kt(t){return function(){if(!Xt&&(Xt={},(0,S.A)())){var t=document.createElement("div");t.className=Yt,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);var e=getComputedStyle(t).content||"";(e=e.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(t){var e=t.split(":"),n=(0,i.A)(e,2),r=n[0],o=n[1];Xt[r]=o}));var n,r=document.querySelector("style[".concat(Yt,"]"));r&&($t=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(t)}}(),!!Xt[t]}var Zt="_multi_value_";function Qt(t){return yt(jt(t),bt).replace(/\{%%%\:[^;];}/g,";")}var Jt=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},s=r.root,u=r.injectHash,l=r.parentSelectors,c=n.hashId,h=n.layer,d=(n.path,n.hashPriority),f=n.transformers,p=void 0===f?[]:f,m=(n.linters,""),g={};function v(e){var r=e.getName(c);if(!g[r]){var o=t(e.style,n,{root:!1,parentSelectors:l}),a=(0,i.A)(o,1)[0];g[r]="@keyframes ".concat(e.getName(c)).concat(a)}}var y=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.forEach((function(e){Array.isArray(e)?t(e,n):e&&n.push(e)})),n}(Array.isArray(e)?e:[e]);return y.forEach((function(e){var r="string"!=typeof e||s?e:{};if("string"==typeof r)m+="".concat(r,"\n");else if(r._keyframe)v(r);else{var h=p.reduce((function(t,e){var n;return(null==e||null===(n=e.visit)||void 0===n?void 0:n.call(e,t))||t}),r);Object.keys(h).forEach((function(e){var r=h[e];if("object"!==(0,_.A)(r)||!r||"animationName"===e&&r._keyframe||function(t){return"object"===(0,_.A)(t)&&t&&("_skip_check_"in t||Zt in t)}(r)){var f;function M(t,e){var n=t.replace(/[A-Z]/g,(function(t){return"-".concat(t.toLowerCase())})),r=e;nt[t]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===t&&null!=e&&e._keyframe&&(v(e),r=e.getName(c)),m+="".concat(n,":").concat(r,";")}var p=null!==(f=null==r?void 0:r.value)&&void 0!==f?f:r;"object"===(0,_.A)(r)&&null!=r&&r[Zt]&&Array.isArray(p)?p.forEach((function(t){M(e,t)})):M(e,p)}else{var y=!1,b=e.trim(),x=!1;(s||u)&&c?b.startsWith("@")?y=!0:b=function(t,e,n){if(!e)return t;var r=".".concat(e),i="low"===n?":where(".concat(r,")"):r;return t.split(",").map((function(t){var e,n=t.trim().split(/\s+/),r=n[0]||"",a=(null===(e=r.match(/^\w+/))||void 0===e?void 0:e[0])||"";return[r="".concat(a).concat(i).concat(r.slice(a.length))].concat((0,o.A)(n.slice(1))).join(" ")})).join(",")}(e,c,d):!s||c||"&"!==b&&""!==b||(b="",x=!0);var w=t(r,n,{root:x,injectHash:y,parentSelectors:[].concat((0,o.A)(l),[b])}),S=(0,i.A)(w,2),E=S[0],A=S[1];g=(0,a.A)((0,a.A)({},g),A),m+="".concat(b).concat(E)}}))}})),s?h&&(m="@layer ".concat(h.name," {").concat(m,"}"),h.dependencies&&(g["@layer ".concat(h.name)]=h.dependencies.map((function(t){return"@layer ".concat(t,", ").concat(h.name,";")})).join("\n"))):m="{".concat(m,"}"),[m,g]};function te(t,e){return s("".concat(t.join("%")).concat(e))}function ee(){return null}var ne="style";function re(t,e){var n=t.token,s=t.path,c=t.hashId,h=t.layer,d=t.nonce,f=t.clientOnly,p=t.order,m=void 0===p?0:p,b=l.useContext(w),x=b.autoClear,_=(b.mock,b.defaultCache),E=b.hashPriority,A=b.container,M=b.ssrInline,C=b.transformers,T=b.linters,k=b.cache,I=b.layer,N=n._tokenKey,P=[N];I&&P.push("layer"),P.push.apply(P,(0,o.A)(s));var O=R;var L=X(ne,P,(function(){var t=P.join("|");if(Kt(t)){var n=function(t){var e=Xt[t],n=null;if(e&&(0,S.A)())if($t)n=qt;else{var r=document.querySelector("style[".concat(v,'="').concat(Xt[t],'"]'));r?n=r.innerHTML:delete Xt[t]}return[n,e]}(t),r=(0,i.A)(n,2),o=r[0],a=r[1];if(o)return[o,N,a,{},f,m]}var u=e(),l=Jt(u,{hashId:c,hashPriority:E,layer:I?h:void 0,path:s.join("-"),transformers:C,linters:T}),d=(0,i.A)(l,2),p=d[0],g=d[1],y=Qt(p),b=te(P,y);return[y,N,b,g,f,m]}),(function(t,e){var n=(0,i.A)(t,3)[2];(e||x)&&R&&(0,u.m6)(n,{mark:v})}),(function(t){var e=(0,i.A)(t,4),n=e[0],r=(e[1],e[2]),o=e[3];if(O&&n!==qt){var s={mark:v,prepend:!I&&"queue",attachTo:A,priority:m},l="function"==typeof d?d():d;l&&(s.csp={nonce:l});var c=[],h=[];Object.keys(o).forEach((function(t){t.startsWith("@layer")?c.push(t):h.push(t)})),c.forEach((function(t){(0,u.BD)(Qt(o[t]),"_layer-".concat(t),(0,a.A)((0,a.A)({},s),{},{prepend:!0}))}));var f=(0,u.BD)(n,r,s);f[y]=k.instanceId,f.setAttribute(g,N),h.forEach((function(t){(0,u.BD)(Qt(o[t]),"_effect-".concat(t),s)}))}})),D=(0,i.A)(L,3),z=D[0],F=D[1],B=D[2];return function(t){var e,n;M&&!O&&_?e=l.createElement("style",(0,et.A)({},(n={},(0,r.A)(n,g,F),(0,r.A)(n,v,B),n),{dangerouslySetInnerHTML:{__html:z}})):e=l.createElement(ee,null);return l.createElement(l.Fragment,null,e,t)}}var ie="cssVar";const oe=function(t,e){var n=t.key,r=t.prefix,a=t.unitless,s=t.ignore,c=t.token,h=t.scope,d=void 0===h?"":h,f=(0,l.useContext)(w),p=f.cache.instanceId,m=f.container,b=c._tokenKey,x=[].concat((0,o.A)(t.path),[n,d,b]);return X(ie,x,(function(){var t=e(),o=U(t,n,{prefix:r,unitless:a,ignore:s,scope:d}),u=(0,i.A)(o,2),l=u[0],c=u[1];return[l,c,te(x,c),n]}),(function(t){var e=(0,i.A)(t,3)[2];R&&(0,u.m6)(e,{mark:v})}),(function(t){var e=(0,i.A)(t,3),r=e[1],o=e[2];if(r){var a=(0,u.BD)(r,o,{mark:v,prepend:"queue",attachTo:m,priority:-999});a[y]=p,a.setAttribute(g,n)}}))};var ae;ae={},(0,r.A)(ae,ne,(function(t,e,n){var r=(0,i.A)(t,6),o=r[0],a=r[1],s=r[2],u=r[3],l=r[4],c=r[5],h=(n||{}).plain;if(l)return null;var d=o,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return d=z(o,a,s,f,h),u&&Object.keys(u).forEach((function(t){if(!e[t]){e[t]=!0;var n=z(Qt(u[t]),a,"_effect-".concat(t),f,h);t.startsWith("@layer")?d=n+d:d+=n}})),[c,s,d]})),(0,r.A)(ae,J,(function(t,e,n){var r=(0,i.A)(t,5),o=r[2],a=r[3],s=r[4],u=(n||{}).plain;if(!a)return null;var l=o._tokenKey;return[-999,l,z(a,s,l,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},u)]})),(0,r.A)(ae,ie,(function(t,e,n){var r=(0,i.A)(t,4),o=r[1],a=r[2],s=r[3],u=(n||{}).plain;if(!o)return null;return[-999,a,z(o,s,a,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},u)]}));const se=function(){function t(e,n){(0,h.A)(this,t),(0,r.A)(this,"name",void 0),(0,r.A)(this,"style",void 0),(0,r.A)(this,"_keyframe",!0),this.name=e,this.style=n}return(0,d.A)(t,[{key:"getName",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t?"".concat(t,"-").concat(this.name):this.name}}]),t}();function ue(t){return t.notSplit=!0,t}ue(["borderTop","borderBottom"]),ue(["borderTop"]),ue(["borderBottom"]),ue(["borderLeft","borderRight"]),ue(["borderLeft"]),ue(["borderRight"])},87064:(t,e,n)=>{"use strict";n.d(e,{A:()=>k});var r=n(58168),i=n(5544),o=n(64467),a=n(53986),s=n(96540),u=n(46942),l=n.n(u),c=n(20439),h=n(61053),d=n(89379),f=n(82284),p=n(85089),m=n(72633),g=n(68210);function v(t){return"object"===(0,f.A)(t)&&"string"==typeof t.name&&"string"==typeof t.theme&&("object"===(0,f.A)(t.icon)||"function"==typeof t.icon)}function y(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(t).reduce((function(e,n){var r,i=t[n];if("class"===n)e.className=i,delete e.class;else delete e[n],e[(r=n,r.replace(/-(.)/g,(function(t,e){return e.toUpperCase()})))]=i;return e}),{})}function b(t,e,n){return n?s.createElement(t.tag,(0,d.A)((0,d.A)({key:e},y(t.attrs)),n),(t.children||[]).map((function(n,r){return b(n,"".concat(e,"-").concat(t.tag,"-").concat(r))}))):s.createElement(t.tag,(0,d.A)({key:e},y(t.attrs)),(t.children||[]).map((function(n,r){return b(n,"".concat(e,"-").concat(t.tag,"-").concat(r))})))}function x(t){return(0,c.cM)(t)[0]}function w(t){return t?Array.isArray(t)?t:[t]:[]}var _=["icon","className","onClick","style","primaryColor","secondaryColor"],S={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var E=function(t){var e,n,r,i,o,u,l,c=t.icon,f=t.className,y=t.onClick,w=t.style,E=t.primaryColor,A=t.secondaryColor,M=(0,a.A)(t,_),C=s.useRef(),T=S;if(E&&(T={primaryColor:E,secondaryColor:A||x(E)}),e=C,n=(0,s.useContext)(h.A),r=n.csp,i=n.prefixCls,o="\n.anticon {\n display: inline-flex;\n alignItems: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",i&&(o=o.replace(/anticon/g,i)),(0,s.useEffect)((function(){var t=e.current,n=(0,m.j)(t);(0,p.BD)(o,"@ant-design-icons",{prepend:!0,csp:r,attachTo:n})}),[]),u=v(c),l="icon should be icon definiton, but got ".concat(c),(0,g.Ay)(u,"[@ant-design/icons] ".concat(l)),!v(c))return null;var k=c;return k&&"function"==typeof k.icon&&(k=(0,d.A)((0,d.A)({},k),{},{icon:k.icon(T.primaryColor,T.secondaryColor)})),b(k.icon,"svg-".concat(k.name),(0,d.A)((0,d.A)({className:f,onClick:y,style:w,"data-icon":k.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},M),{},{ref:C}))};E.displayName="IconReact",E.getTwoToneColors=function(){return(0,d.A)({},S)},E.setTwoToneColors=function(t){var e=t.primaryColor,n=t.secondaryColor;S.primaryColor=e,S.secondaryColor=n||x(e),S.calculated=!!n};const A=E;function M(t){var e=w(t),n=(0,i.A)(e,2),r=n[0],o=n[1];return A.setTwoToneColors({primaryColor:r,secondaryColor:o})}var C=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];M(c.z1.primary);var T=s.forwardRef((function(t,e){var n=t.className,u=t.icon,c=t.spin,d=t.rotate,f=t.tabIndex,p=t.onClick,m=t.twoToneColor,g=(0,a.A)(t,C),v=s.useContext(h.A),y=v.prefixCls,b=void 0===y?"anticon":y,x=v.rootClassName,_=l()(x,b,(0,o.A)((0,o.A)({},"".concat(b,"-").concat(u.name),!!u.name),"".concat(b,"-spin"),!!c||"loading"===u.name),n),S=f;void 0===S&&p&&(S=-1);var E=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,M=w(m),T=(0,i.A)(M,2),k=T[0],I=T[1];return s.createElement("span",(0,r.A)({role:"img","aria-label":u.name},g,{ref:e,tabIndex:S,onClick:p,className:_}),s.createElement(A,{icon:u,primaryColor:k,secondaryColor:I,style:E}))}));T.displayName="AntdIcon",T.getTwoToneColor=function(){var t=A.getTwoToneColors();return t.calculated?[t.primaryColor,t.secondaryColor]:t.primaryColor},T.setTwoToneColor=M;const k=T},61053:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=(0,n(96540).createContext)({})},44663:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v584zM639.5 414h-45c-3 0-5.8 1.7-7.1 4.4L514 563.8h-2.8l-73.4-145.4a8 8 0 00-7.1-4.4h-46c-1.3 0-2.7.3-3.8 1-3.9 2.1-5.3 7-3.2 10.9l89.3 164h-48.6c-4.4 0-8 3.6-8 8v21.3c0 4.4 3.6 8 8 8h65.1v33.7h-65.1c-4.4 0-8 3.6-8 8v21.3c0 4.4 3.6 8 8 8h65.1V752c0 4.4 3.6 8 8 8h41.3c4.4 0 8-3.6 8-8v-53.8h65.4c4.4 0 8-3.6 8-8v-21.3c0-4.4-3.6-8-8-8h-65.4v-33.7h65.4c4.4 0 8-3.6 8-8v-21.3c0-4.4-3.6-8-8-8h-49.1l89.3-164.1c.6-1.2 1-2.5 1-3.8.1-4.4-3.4-8-7.9-8z"}}]},name:"account-book",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},77639:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M952 474H829.8C812.5 327.6 696.4 211.5 550 194.2V72c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v122.2C327.6 211.5 211.5 327.6 194.2 474H72c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h122.2C211.5 696.4 327.6 812.5 474 829.8V952c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V829.8C696.4 812.5 812.5 696.4 829.8 550H952c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM512 756c-134.8 0-244-109.2-244-244s109.2-244 244-244 244 109.2 244 244-109.2 244-244 244z"}},{tag:"path",attrs:{d:"M512 392c-32.1 0-62.1 12.4-84.8 35.2-22.7 22.7-35.2 52.7-35.2 84.8s12.5 62.1 35.2 84.8C449.9 619.4 480 632 512 632s62.1-12.5 84.8-35.2C619.4 574.1 632 544 632 512s-12.5-62.1-35.2-84.8A118.57 118.57 0 00512 392z"}}]},name:"aim",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},99328:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M193 796c0 17.7 14.3 32 32 32h574c17.7 0 32-14.3 32-32V563c0-176.2-142.8-319-319-319S193 386.8 193 563v233zm72-233c0-136.4 110.6-247 247-247s247 110.6 247 247v193H404V585c0-5.5-4.5-10-10-10h-44c-5.5 0-10 4.5-10 10v171h-75V563zm-48.1-252.5l39.6-39.6c3.1-3.1 3.1-8.2 0-11.3l-67.9-67.9a8.03 8.03 0 00-11.3 0l-39.6 39.6a8.03 8.03 0 000 11.3l67.9 67.9c3.1 3.1 8.1 3.1 11.3 0zm669.6-79.2l-39.6-39.6a8.03 8.03 0 00-11.3 0l-67.9 67.9a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l67.9-67.9c3.1-3.2 3.1-8.2 0-11.3zM832 892H192c-17.7 0-32 14.3-32 32v24c0 4.4 3.6 8 8 8h688c4.4 0 8-3.6 8-8v-24c0-17.7-14.3-32-32-32zM484 180h56c4.4 0 8-3.6 8-8V76c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v96c0 4.4 3.6 8 8 8z"}}]},name:"alert",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},66480:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.42 0 448 200.58 448 448S759.42 960 512 960 64 759.42 64 512 264.58 64 512 64m32.5 168c-69.67 0-86.06 16.84-86.72 39.08l-.02 1.43v46.62H291.45c-9.92 0-14.28 23.05-14.27 39.3 0 2.7 2.08 4.93 4.77 4.93h175.81v58.3h-116.5c-9.96 0-14.3 23.76-14.27 39.47a4.77 4.77 0 004.77 4.76h233.45c-4.53 41.06-15.43 77.59-30.72 109.32l-1.22 2.5-.32-.28c-60.24-28.47-120.43-52.57-194.4-52.57l-2.62.01c-84.98 1.11-144.71 56.5-145.91 127.04l-.02 1.22.02 2.13c1.24 70.4 63.56 126.45 148.52 126.45 61.25 0 116.38-16.85 163.46-45.02a138.58 138.58 0 0014.07-7.96 345.6 345.6 0 0050.3-41.16l9.45 6.35 12.46 8.32c57.53 38.26 113.76 72.62 169.86 79.27a142.62 142.62 0 0018.31 1.16c43.02 0 55-52.68 57.39-95.51l.14-2.84c.4-8.46-6.2-15.6-14.65-15.86-75.46-2.37-136.45-22.05-192-46.11l-6.27-2.75c35.15-56.8 56.66-121.81 57.15-186.66l.09-1.08c.4-5.51-4-10.2-9.52-10.2H549.33v-58.3h165.73c9.92 0 14.28-22.12 14.27-39.31a4.85 4.85 0 00-4.78-4.92H549.32v-82.35a4.8 4.8 0 00-4.83-4.78M328 583.85c54.63 0 107.08 22.41 158.1 52.19l5.76 3.4c-103.57 119.84-247.17 95.9-261.72 26.37a66.89 66.89 0 01-1.14-9.83l-.06-2.34.02-.9c.97-40.12 45.33-68.9 99.04-68.9"}}]},name:"alipay-circle",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},11033:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M557.2 129a6.68 6.68 0 016.72 6.65V250.2h243.8a6.74 6.74 0 016.65 6.84c.02 23.92-6.05 54.69-19.85 54.69H563.94v81.1h166.18c7.69 0 13.8 6.51 13.25 14.18l-.11 1.51c-.7 90.2-30.63 180.64-79.52 259.65l8.71 3.82c77.3 33.48 162.15 60.85 267.15 64.14a21.08 21.08 0 0120.38 22.07l-.2 3.95c-3.34 59.57-20 132.85-79.85 132.85-8.8 0-17.29-.55-25.48-1.61-78.04-9.25-156.28-57.05-236.32-110.27l-17.33-11.57-13.15-8.83a480.83 480.83 0 01-69.99 57.25 192.8 192.8 0 01-19.57 11.08c-65.51 39.18-142.21 62.6-227.42 62.62-118.2 0-204.92-77.97-206.64-175.9l-.03-2.95.03-1.7c1.66-98.12 84.77-175.18 203-176.72l3.64-.03c102.92 0 186.66 33.54 270.48 73.14l.44.38 1.7-3.47c21.27-44.14 36.44-94.95 42.74-152.06h-324.8a6.64 6.64 0 01-6.63-6.62c-.04-21.86 6-54.91 19.85-54.91h162.1v-81.1H191.92a6.71 6.71 0 01-6.64-6.85c-.01-22.61 6.06-54.68 19.86-54.68h231.4v-64.85l.02-1.99c.9-30.93 23.72-54.36 120.64-54.36M256.9 619c-74.77 0-136.53 39.93-137.88 95.6l-.02 1.26.08 3.24a92.55 92.55 0 001.58 13.64c20.26 96.5 220.16 129.71 364.34-36.59l-8.03-4.72C405.95 650.11 332.94 619 256.9 619"}}]},name:"alipay",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},80002:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868.2 377.4c-18.9-45.1-46.3-85.6-81.2-120.6a377.26 377.26 0 00-120.5-81.2A375.65 375.65 0 00519 145.8c-41.9 0-82.9 6.7-121.9 20C306 123.3 200.8 120 170.6 120c-2.2 0-7.4 0-9.4.2-11.9.4-22.8 6.5-29.2 16.4-6.5 9.9-7.7 22.4-3.4 33.5l64.3 161.6a378.59 378.59 0 00-52.8 193.2c0 51.4 10 101 29.8 147.6 18.9 45 46.2 85.6 81.2 120.5 34.7 34.8 75.4 62.1 120.5 81.2C418.3 894 467.9 904 519 904c51.3 0 100.9-10.1 147.7-29.8 44.9-18.9 85.5-46.3 120.4-81.2 34.7-34.8 62.1-75.4 81.2-120.6a376.5 376.5 0 0029.8-147.6c-.2-51.2-10.1-100.8-29.9-147.4zm-66.4 266.5a307.08 307.08 0 01-65.9 98c-28.4 28.5-61.3 50.7-97.7 65.9h-.1c-38 16-78.3 24.2-119.9 24.2a306.51 306.51 0 01-217.5-90.2c-28.4-28.5-50.6-61.4-65.8-97.8v-.1c-16-37.8-24.1-78.2-24.1-119.9 0-55.4 14.8-109.7 42.8-157l13.2-22.1-9.5-23.9L206 192c14.9.6 35.9 2.1 59.7 5.6 43.8 6.5 82.5 17.5 114.9 32.6l19 8.9 19.9-6.8c31.5-10.8 64.8-16.2 98.9-16.2a306.51 306.51 0 01217.5 90.2c28.4 28.5 50.6 61.4 65.8 97.8l.1.1.1.1c16 37.6 24.1 78 24.2 119.8-.1 41.7-8.3 82-24.3 119.8zM681.1 364.2c-20.4 0-37.1 16.7-37.1 37.1v55.1c0 20.4 16.6 37.1 37.1 37.1s37.1-16.7 37.1-37.1v-55.1c0-20.5-16.7-37.1-37.1-37.1zm-175.2 0c-20.5 0-37.1 16.7-37.1 37.1v55.1c0 20.4 16.7 37.1 37.1 37.1 20.5 0 37.1-16.7 37.1-37.1v-55.1c0-20.5-16.7-37.1-37.1-37.1z"}}]},name:"aliwangwang",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},43965:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M959.2 383.9c-.3-82.1-66.9-148.6-149.1-148.6H575.9l21.6 85.2 201 43.7a42.58 42.58 0 0132.9 39.7c.1.5.1 216.1 0 216.6a42.58 42.58 0 01-32.9 39.7l-201 43.7-21.6 85.3h234.2c82.1 0 148.8-66.5 149.1-148.6V383.9zM225.5 660.4a42.58 42.58 0 01-32.9-39.7c-.1-.6-.1-216.1 0-216.6.8-19.4 14.6-35.5 32.9-39.7l201-43.7 21.6-85.2H213.8c-82.1 0-148.8 66.4-149.1 148.6V641c.3 82.1 67 148.6 149.1 148.6H448l-21.6-85.3-200.9-43.9zm200.9-158.8h171v21.3h-171z"}}]},name:"aliyun",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},91046:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M825 768.9c-3.3-.9-7.3-.4-11.9 1.3-61.6 28.2-121.5 48.3-179.7 60.2C507.7 856 385.2 842.6 266 790.3c-33.1-14.6-79.1-39.2-138-74a9.36 9.36 0 00-5.3-2c-2-.1-3.7.1-5.3.9-1.6.8-2.8 1.8-3.7 3.1-.9 1.3-1.1 3.1-.4 5.4.6 2.2 2.1 4.7 4.6 7.4 10.4 12.2 23.3 25.2 38.6 39s35.6 29.4 60.9 46.8c25.3 17.4 51.8 32.9 79.3 46.4 27.6 13.5 59.6 24.9 96.1 34.1s73 13.8 109.4 13.8c36.2 0 71.4-3.7 105.5-10.9 34.2-7.3 63-15.9 86.5-25.9 23.4-9.9 45-21 64.8-33 19.8-12 34.4-22.2 43.9-30.3 9.5-8.2 16.3-14.6 20.2-19.4 4.6-5.7 6.9-10.6 6.9-14.9.1-4.5-1.7-7.1-5-7.9zM527.4 348.1c-15.2 1.3-33.5 4.1-55 8.3-21.5 4.1-41.4 9.3-59.8 15.4s-37.2 14.6-56.3 25.4c-19.2 10.8-35.5 23.2-49 37s-24.5 31.1-33.1 52c-8.6 20.8-12.9 43.7-12.9 68.7 0 27.1 4.7 51.2 14.3 72.5 9.5 21.3 22.2 38 38.2 50.4 15.9 12.4 34 22.1 54 29.2 20 7.1 41.2 10.3 63.2 9.4 22-.9 43.5-4.3 64.4-10.3 20.8-5.9 40.4-15.4 58.6-28.3 18.2-12.9 33.1-28.2 44.8-45.7 4.3 6.6 8.1 11.5 11.5 14.7l8.7 8.9c5.8 5.9 14.7 14.6 26.7 26.1 11.9 11.5 24.1 22.7 36.3 33.7l104.4-99.9-6-4.9c-4.3-3.3-9.4-8-15.2-14.3-5.8-6.2-11.6-13.1-17.2-20.5-5.7-7.4-10.6-16.1-14.7-25.9-4.1-9.8-6.2-19.3-6.2-28.5V258.7c0-10.1-1.9-21-5.7-32.8-3.9-11.7-10.7-24.5-20.7-38.3-10-13.8-22.4-26.2-37.2-37-14.9-10.8-34.7-20-59.6-27.4-24.8-7.4-52.6-11.1-83.2-11.1-31.3 0-60.4 3.7-87.6 10.9-27.1 7.3-50.3 17-69.7 29.2-19.3 12.2-35.9 26.3-49.7 42.4-13.8 16.1-24.1 32.9-30.8 50.4-6.7 17.5-10.1 35.2-10.1 53.1L408 310c5.5-16.4 12.9-30.6 22-42.8 9.2-12.2 17.9-21 25.8-26.5 8-5.5 16.6-9.9 25.7-13.2 9.2-3.3 15.4-5 18.6-5.4 3.2-.3 5.7-.4 7.6-.4 26.7 0 45.2 7.9 55.6 23.6 6.5 9.5 9.7 23.9 9.7 43.3v56.6c-15.2.6-30.4 1.6-45.6 2.9zM573.1 500c0 16.6-2.2 31.7-6.5 45-9.2 29.1-26.7 47.4-52.4 54.8-22.4 6.6-43.7 3.3-63.9-9.8-21.5-14-32.2-33.8-32.2-59.3 0-19.9 5-36.9 15-51.1 10-14.1 23.3-24.7 40-31.7s33-12 49-14.9c15.9-3 33-4.8 51-5.4V500zm335.2 218.9c-4.3-5.4-15.9-8.9-34.9-10.7-19-1.8-35.5-1.7-49.7.4-15.3 1.8-31.1 6.2-47.3 13.4-16.3 7.1-23.4 13.1-21.6 17.8l.7 1.3.9.7 1.4.2h4.6c.8 0 1.8-.1 3.2-.2 1.4-.1 2.7-.3 3.9-.4 1.2-.1 2.9-.3 5.1-.4 2.1-.1 4.1-.4 6-.7.3 0 3.7-.3 10.3-.9 6.6-.6 11.4-1 14.3-1.3 2.9-.3 7.8-.6 14.5-.9 6.7-.3 12.1-.3 16.1 0 4 .3 8.5.7 13.6 1.1 5.1.4 9.2 1.3 12.4 2.7 3.2 1.3 5.6 3 7.1 5.1 5.2 6.6 4.2 21.2-3 43.9s-14 40.8-20.4 54.2c-2.8 5.7-2.8 9.2 0 10.7s6.7.1 11.9-4c15.6-12.2 28.6-30.6 39.1-55.3 6.1-14.6 10.5-29.8 13.1-45.7 2.4-15.9 2-26.2-1.3-31z"}}]},name:"amazon",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},70792:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M448.3 225.2c-18.6 0-32 13.4-32 31.9s13.5 31.9 32 31.9c18.6 0 32-13.4 32-31.9.1-18.4-13.4-31.9-32-31.9zm393.9 96.4c-13.8-13.8-32.7-21.5-53.2-21.5-3.9 0-7.4.4-10.7 1v-1h-3.6c-5.5-30.6-18.6-60.5-38.1-87.4-18.7-25.7-43-47.9-70.8-64.9l25.1-35.8v-3.3c0-.8.4-2.3.7-3.8.6-2.4 1.4-5.5 1.4-8.9 0-18.5-13.5-31.9-32-31.9-9.8 0-19.5 5.7-25.9 15.4l-29.3 42.1c-30-9.8-62.4-15-93.8-15-31.3 0-63.7 5.2-93.8 15L389 79.4c-6.6-9.6-16.1-15.4-26-15.4-18.6 0-32 13.4-32 31.9 0 6.2 2.5 12.8 6.7 17.4l22.6 32.3c-28.7 17-53.5 39.4-72.2 65.1-19.4 26.9-32 56.8-36.7 87.4h-5.5v1c-3.2-.6-6.7-1-10.7-1-20.3 0-39.2 7.5-53.1 21.3-13.8 13.8-21.5 32.6-21.5 53v235c0 20.3 7.5 39.1 21.4 52.9 13.8 13.8 32.8 21.5 53.2 21.5 3.9 0 7.4-.4 10.7-1v93.5c0 29.2 23.9 53.1 53.2 53.1H331v58.3c0 20.3 7.5 39.1 21.4 52.9 13.8 13.8 32.8 21.5 53.2 21.5 20.3 0 39.2-7.5 53.1-21.3 13.8-13.8 21.5-32.6 21.5-53v-58.2H544v58.1c0 20.3 7.5 39.1 21.4 52.9 13.8 13.8 32.8 21.5 53.2 21.5 20.4 0 39.2-7.5 53.1-21.6 13.8-13.8 21.5-32.6 21.5-53v-58.2h31.9c29.3 0 53.2-23.8 53.2-53.1v-91.4c3.2.6 6.7 1 10.7 1 20.3 0 39.2-7.5 53.1-21.3 13.8-13.8 21.5-32.6 21.5-53v-235c-.1-20.3-7.6-39-21.4-52.9zM246 609.6c0 6.8-3.9 10.6-10.7 10.6-6.8 0-10.7-3.8-10.7-10.6V374.5c0-6.8 3.9-10.6 10.7-10.6 6.8 0 10.7 3.8 10.7 10.6v235.1zm131.1-396.8c37.5-27.3 85.3-42.3 135-42.3s97.5 15.1 135 42.5c32.4 23.7 54.2 54.2 62.7 87.5H314.4c8.5-33.4 30.5-64 62.7-87.7zm39.3 674.7c-.6 5.6-4.4 8.7-10.5 8.7-6.8 0-10.7-3.8-10.7-10.6v-58.2h21.2v60.1zm202.3 8.7c-6.8 0-10.7-3.8-10.7-10.6v-58.2h21.2v60.1c-.6 5.6-4.3 8.7-10.5 8.7zm95.8-132.6H309.9V364h404.6v399.6zm85.2-154c0 6.8-3.9 10.6-10.7 10.6-6.8 0-10.7-3.8-10.7-10.6V374.5c0-6.8 3.9-10.6 10.7-10.6 6.8 0 10.7 3.8 10.7 10.6v235.1zM576.1 225.2c-18.6 0-32 13.4-32 31.9s13.5 31.9 32 31.9c18.6 0 32.1-13.4 32.1-32-.1-18.6-13.4-31.8-32.1-31.8z"}}]},name:"android",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},77584:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M378.9 738c-3.1 0-6.1-.5-8.8-1.5l4.4 30.7h26.3l-15.5-29.9c-2.1.5-4.2.7-6.4.7zm421-291.2c-12.6 0-24.8 1.5-36.5 4.2-21.4-38.4-62.3-64.3-109.3-64.3-6.9 0-13.6.6-20.2 1.6-35.4-77.4-113.4-131.1-203.9-131.1-112.3 0-205.3 82.6-221.6 190.4C127.3 455.5 64 523.8 64 607c0 88.4 71.6 160.1 160 160.2h50l13.2-27.6c-26.2-8.3-43.3-29-39.1-48.8 4.6-21.6 32.8-33.9 63.1-27.5 22.9 4.9 40.4 19.1 45.5 35.1a26.1 26.1 0 0122.1-12.4h.2c-.8-3.2-1.2-6.5-1.2-9.9 0-20.1 14.8-36.7 34.1-39.6v-25.4c0-4.4 3.6-8 8-8s8 3.6 8 8v26.3c4.6 1.2 8.8 3.2 12.6 5.8l19.5-21.4c3-3.3 8-3.5 11.3-.5 3.3 3 3.5 8 .5 11.3l-20 22-.2.2a40 40 0 01-46.9 59.2c-.4 5.6-2.6 10.7-6 14.8l20 38.4H804v-.1c86.5-2.2 156-73 156-160.1 0-88.5-71.7-160.2-160.1-160.2zM338.2 737.2l-4.3 30h24.4l-5.9-41.5c-3.5 4.6-8.3 8.5-14.2 11.5zM797.5 305a48 48 0 1096 0 48 48 0 10-96 0zm-65.7 61.3a24 24 0 1048 0 24 24 0 10-48 0zM303.4 742.9l-11.6 24.3h26l3.5-24.7c-5.7.8-11.7 1-17.9.4z"}}]},name:"ant-cloud",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},4716:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M716.3 313.8c19-18.9 19-49.7 0-68.6l-69.9-69.9.1.1c-18.5-18.5-50.3-50.3-95.3-95.2-21.2-20.7-55.5-20.5-76.5.5L80.9 474.2a53.84 53.84 0 000 76.4L474.6 944a54.14 54.14 0 0076.5 0l165.1-165c19-18.9 19-49.7 0-68.6a48.7 48.7 0 00-68.7 0l-125 125.2c-5.2 5.2-13.3 5.2-18.5 0L189.5 521.4c-5.2-5.2-5.2-13.3 0-18.5l314.4-314.2c.4-.4.9-.7 1.3-1.1 5.2-4.1 12.4-3.7 17.2 1.1l125.2 125.1c19 19 49.8 19 68.7 0zM408.6 514.4a106.3 106.2 0 10212.6 0 106.3 106.2 0 10-212.6 0zm536.2-38.6L821.9 353.5c-19-18.9-49.8-18.9-68.7.1a48.4 48.4 0 000 68.6l83 82.9c5.2 5.2 5.2 13.3 0 18.5l-81.8 81.7a48.4 48.4 0 000 68.6 48.7 48.7 0 0068.7 0l121.8-121.7a53.93 53.93 0 00-.1-76.4z"}}]},name:"ant-design",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},31942:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908 640H804V488c0-4.4-3.6-8-8-8H548v-96h108c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16H368c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h108v96H228c-4.4 0-8 3.6-8 8v152H116c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16H292v-88h440v88H620c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16zm-564 76v168H176V716h168zm84-408V140h168v168H428zm420 576H680V716h168v168z"}}]},name:"apartment",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},13740:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 00-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 000 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7 35.3 0 68.4 13.7 93.4 38.7 24.9 24.9 38.7 58.1 38.7 93.4 0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 00-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 00-11.3 0L363 475.3l-43-43a7.85 7.85 0 00-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 000 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 01-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 01-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4z"}}]},name:"api",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},69877:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M747.4 535.7c-.4-68.2 30.5-119.6 92.9-157.5-34.9-50-87.7-77.5-157.3-82.8-65.9-5.2-138 38.4-164.4 38.4-27.9 0-91.7-36.6-141.9-36.6C273.1 298.8 163 379.8 163 544.6c0 48.7 8.9 99 26.7 150.8 23.8 68.2 109.6 235.3 199.1 232.6 46.8-1.1 79.9-33.2 140.8-33.2 59.1 0 89.7 33.2 141.9 33.2 90.3-1.3 167.9-153.2 190.5-221.6-121.1-57.1-114.6-167.2-114.6-170.7zm-10.6 267c-14.3 19.9-28.7 35.6-41.9 45.7-10.5 8-18.6 11.4-24 11.6-9-.1-17.7-2.3-34.7-8.8-1.2-.5-2.5-1-4.2-1.6l-4.4-1.7c-17.4-6.7-27.8-10.3-41.1-13.8-18.6-4.8-37.1-7.4-56.9-7.4-20.2 0-39.2 2.5-58.1 7.2-13.9 3.5-25.6 7.4-42.7 13.8-.7.3-8.1 3.1-10.2 3.9-3.5 1.3-6.2 2.3-8.7 3.2-10.4 3.6-17 5.1-22.9 5.2-.7 0-1.3-.1-1.8-.2-1.1-.2-2.5-.6-4.1-1.3-4.5-1.8-9.9-5.1-16-9.8-14-10.9-29.4-28-45.1-49.9-27.5-38.6-53.5-89.8-66-125.7-15.4-44.8-23-87.7-23-128.6 0-60.2 17.8-106 48.4-137.1 26.3-26.6 61.7-41.5 97.8-42.3 5.9.1 14.5 1.5 25.4 4.5 8.6 2.3 18 5.4 30.7 9.9 3.8 1.4 16.9 6.1 18.5 6.7 7.7 2.8 13.5 4.8 19.2 6.6 18.2 5.8 32.3 9 47.6 9 15.5 0 28.8-3.3 47.7-9.8 7.1-2.4 32.9-12 37.5-13.6 25.6-9.1 44.5-14 60.8-15.2 4.8-.4 9.1-.4 13.2-.1 22.7 1.8 42.1 6.3 58.6 13.8-37.6 43.4-57 96.5-56.9 158.4-.3 14.7.9 31.7 5.1 51.8 6.4 30.5 18.6 60.7 37.9 89 14.7 21.5 32.9 40.9 54.7 57.8-11.5 23.7-25.6 48.2-40.4 68.8zm-94.5-572c50.7-60.2 46.1-115 44.6-134.7-44.8 2.6-96.6 30.5-126.1 64.8-32.5 36.8-51.6 82.3-47.5 133.6 48.4 3.7 92.6-21.2 129-63.7z"}}]},name:"apple",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},41723:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zm52 132H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200zM424 712H296V584c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v128H104c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h128v128c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V776h128c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}}]},name:"appstore-add",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},1372:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"}}]},name:"appstore",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},95718:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M682 455V311l-76 76v68c-.1 50.7-42 92.1-94 92a95.8 95.8 0 01-52-15l-54 55c29.1 22.4 65.9 36 106 36 93.8 0 170-75.1 170-168z"}},{tag:"path",attrs:{d:"M833 446h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254-63 0-120.7-23-165-61l-54 54a334.01 334.01 0 00179 81v102H326c-13.9 0-24.9 14.3-25 32v36c.1 4.4 2.9 8 6 8h408c3.2 0 6-3.6 6-8v-36c0-17.7-11-32-25-32H547V782c165.3-17.9 294-157.9 294-328 0-4.4-3.6-8-8-8zm13.1-377.7l-43.5-41.9a8 8 0 00-11.2.1l-129 129C634.3 101.2 577 64 511 64c-93.9 0-170 75.3-170 168v224c0 6.7.4 13.3 1.2 19.8l-68 68A252.33 252.33 0 01258 454c-.2-4.4-3.8-8-8-8h-60c-4.4 0-8 3.6-8 8 0 53 12.5 103 34.6 147.4l-137 137a8.03 8.03 0 000 11.3l42.7 42.7c3.1 3.1 8.2 3.1 11.3 0L846.2 79.8l.1-.1c3.1-3.2 3-8.3-.2-11.4zM417 401V232c0-50.6 41.9-92 94-92 46 0 84.1 32.3 92.3 74.7L417 401z"}}]},name:"audio-muted",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},43348:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z"}}]},name:"audio",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},43450:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M296 250c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm184 144H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 458H208V148h560v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm440-88H728v-36.6c46.3-13.8 80-56.6 80-107.4 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 50.7 33.7 93.6 80 107.4V764H520c-8.8 0-16 7.2-16 16v152c0 8.8 7.2 16 16 16h352c8.8 0 16-7.2 16-16V780c0-8.8-7.2-16-16-16zM646 620c0-27.6 22.4-50 50-50s50 22.4 50 50-22.4 50-50 50-50-22.4-50-50zm180 266H566v-60h260v60z"}}]},name:"audit",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},84145:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M894 462c30.9 0 43.8-39.7 18.7-58L530.8 126.2a31.81 31.81 0 00-37.6 0L111.3 404c-25.1 18.2-12.2 58 18.8 58H192v374h-72c-4.4 0-8 3.6-8 8v52c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-52c0-4.4-3.6-8-8-8h-72V462h62zM512 196.7l271.1 197.2H240.9L512 196.7zM264 462h117v374H264V462zm189 0h117v374H453V462zm307 374H642V462h118v374z"}}]},name:"bank",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},76371:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M120 160H72c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8zm833 0h-48c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8zM200 736h112c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8H200c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8zm321 0h48c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8zm126 0h178c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8H647c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8zm-255 0h48c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8zm-79 64H201c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h112c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm257 0h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm256 0H648c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h178c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-385 0h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}}]},name:"barcode",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},3674:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},73142:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M634 294.3h199.5v48.4H634zM434.1 485.8c44.1-21.1 67.2-53.2 67.2-102.8 0-98.1-73-121.9-157.3-121.9H112v492.4h238.5c89.4 0 173.3-43 173.3-143 0-61.8-29.2-107.5-89.7-124.7zM220.2 345.1h101.5c39.1 0 74.2 10.9 74.2 56.3 0 41.8-27.3 58.6-66 58.6H220.2V345.1zm115.5 324.8H220.1V534.3H338c47.6 0 77.7 19.9 77.7 70.3 0 49.6-35.9 65.3-80 65.3zm575.8-89.5c0-105.5-61.7-193.4-173.3-193.4-108.5 0-182.3 81.7-182.3 188.8 0 111 69.9 187.2 182.3 187.2 85.1 0 140.2-38.3 166.7-120h-86.3c-9.4 30.5-47.6 46.5-77.3 46.5-57.4 0-87.4-33.6-87.4-90.7h256.9c.3-5.9.7-12.1.7-18.4zM653.9 537c3.1-46.9 34.4-76.2 81.2-76.2 49.2 0 73.8 28.9 78.1 76.2H653.9z"}}]},name:"behance",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},86706:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM598.5 350.9h138.4v33.7H598.5v-33.7zM512 628.8a89.52 89.52 0 01-27 31c-11.8 8.2-24.9 14.2-38.8 17.7a167.4 167.4 0 01-44.6 5.7H236V342.1h161c16.3 0 31.1 1.5 44.6 4.3 13.4 2.8 24.8 7.6 34.4 14.1 9.5 6.5 17 15.2 22.3 26 5.2 10.7 7.9 24.1 7.9 40 0 17.2-3.9 31.4-11.7 42.9-7.9 11.5-19.3 20.8-34.8 28.1 21.1 6 36.6 16.7 46.8 31.7 10.4 15.2 15.5 33.4 15.5 54.8 0 17.4-3.3 32.3-10 44.8zM790.8 576H612.4c0 19.4 6.7 38 16.8 48 10.2 9.9 24.8 14.9 43.9 14.9 13.8 0 25.5-3.5 35.5-10.4 9.9-6.9 15.9-14.2 18.1-21.8h59.8c-9.6 29.7-24.2 50.9-44 63.7-19.6 12.8-43.6 19.2-71.5 19.2-19.5 0-37-3.2-52.7-9.3-15.1-5.9-28.7-14.9-39.9-26.5a121.2 121.2 0 01-25.1-41.2c-6.1-16.9-9.1-34.7-8.9-52.6 0-18.5 3.1-35.7 9.1-51.7 11.5-31.1 35.4-56 65.9-68.9 16.3-6.8 33.8-10.2 51.5-10 21 0 39.2 4 55 12.2a111.6 111.6 0 0138.6 32.8c10.1 13.7 17.2 29.3 21.7 46.9 4.3 17.3 5.8 35.5 4.6 54.7zm-122-95.6c-10.8 0-19.9 1.9-26.9 5.6-7 3.7-12.8 8.3-17.2 13.6a48.4 48.4 0 00-9.1 17.4c-1.6 5.3-2.7 10.7-3.1 16.2H723c-1.6-17.3-7.6-30.1-15.6-39.1-8.4-8.9-21.9-13.7-38.6-13.7zm-248.5-10.1c8.7-6.3 12.9-16.7 12.9-31 .3-6.8-1.1-13.5-4.1-19.6-2.7-4.9-6.7-9-11.6-11.9a44.8 44.8 0 00-16.6-6c-6.4-1.2-12.9-1.8-19.3-1.7h-70.3v79.7h76.1c13.1.1 24.2-3.1 32.9-9.5zm11.8 72c-9.8-7.5-22.9-11.2-39.2-11.2h-81.8v94h80.2c7.5 0 14.4-.7 21.1-2.1s12.7-3.8 17.8-7.2c5.1-3.3 9.2-7.8 12.3-13.6 3-5.8 4.5-13.2 4.5-22.1 0-17.7-5-30.2-14.9-37.8z"}}]},name:"behance-square",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},40562:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M816 768h-24V428c0-141.1-104.3-257.7-240-277.1V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.9c-135.7 19.4-240 136-240 277.1v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48zM304 768V428c0-55.6 21.6-107.8 60.9-147.1S456.4 220 512 220c55.6 0 107.8 21.6 147.1 60.9S720 372.4 720 428v340H304z"}}]},name:"bell",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},51711:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M856 376H648V168c0-8.8-7.2-16-16-16H168c-8.8 0-16 7.2-16 16v464c0 8.8 7.2 16 16 16h208v208c0 8.8 7.2 16 16 16h464c8.8 0 16-7.2 16-16V392c0-8.8-7.2-16-16-16zm-480 16v188H220V220h360v156H392c-8.8 0-16 7.2-16 16zm204 52v136H444V444h136zm224 360H444V648h188c8.8 0 16-7.2 16-16V444h156v360z"}}]},name:"block",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},83762:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0022.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z"}}]},name:"book",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},97189:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M740 161c-61.8 0-112 50.2-112 112 0 50.1 33.1 92.6 78.5 106.9v95.9L320 602.4V318.1c44.2-15 76-56.9 76-106.1 0-61.8-50.2-112-112-112s-112 50.2-112 112c0 49.2 31.8 91 76 106.1V706c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1v-27.8l423.5-138.7a50.52 50.52 0 0034.9-48.2V378.2c42.9-15.8 73.6-57 73.6-105.2 0-61.8-50.2-112-112-112zm-504 51a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm96 600a48.01 48.01 0 01-96 0 48.01 48.01 0 0196 0zm408-491a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"branches",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},66893:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M304 280h56c4.4 0 8-3.6 8-8 0-28.3 5.9-53.2 17.1-73.5 10.6-19.4 26-34.8 45.4-45.4C450.9 142 475.7 136 504 136h16c28.3 0 53.2 5.9 73.5 17.1 19.4 10.6 34.8 26 45.4 45.4C650 218.9 656 243.7 656 272c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-40-8.8-76.7-25.9-108.1a184.31 184.31 0 00-74-74C596.7 72.8 560 64 520 64h-16c-40 0-76.7 8.8-108.1 25.9a184.31 184.31 0 00-74 74C304.8 195.3 296 232 296 272c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M940 512H792V412c76.8 0 139-62.2 139-139 0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8a63 63 0 01-63 63H232a63 63 0 01-63-63c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 76.8 62.2 139 139 139v100H84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h148v96c0 6.5.2 13 .7 19.3C164.1 728.6 116 796.7 116 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-44.2 23.9-82.9 59.6-103.7a273 273 0 0022.7 49c24.3 41.5 59 76.2 100.5 100.5S460.5 960 512 960s99.8-13.9 141.3-38.2a281.38 281.38 0 00123.2-149.5A120 120 0 01836 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-79.3-48.1-147.4-116.7-176.7.4-6.4.7-12.8.7-19.3v-96h148c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM716 680c0 36.8-9.7 72-27.8 102.9-17.7 30.3-43 55.6-73.3 73.3C584 874.3 548.8 884 512 884s-72-9.7-102.9-27.8c-30.3-17.7-55.6-43-73.3-73.3A202.75 202.75 0 01308 680V412h408v268z"}}]},name:"bug",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},142:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M916 210H376c-17.7 0-32 14.3-32 32v236H108c-17.7 0-32 14.3-32 32v272c0 17.7 14.3 32 32 32h540c17.7 0 32-14.3 32-32V546h236c17.7 0 32-14.3 32-32V242c0-17.7-14.3-32-32-32zm-504 68h200v200H412V278zm-68 468H144V546h200v200zm268 0H412V546h200v200zm268-268H680V278h200v200z"}}]},name:"build",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},58937:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z"}}]},name:"bulb",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},56679:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M251.2 387H320v68.8c0 1.8 1.8 3.2 4 3.2h48c2.2 0 4-1.4 4-3.3V387h68.8c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H376v-68.8c0-1.8-1.8-3.2-4-3.2h-48c-2.2 0-4 1.4-4 3.2V331h-68.8c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm328 0h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm0 265h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm0 104h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm-195.7-81l61.2-74.9c4.3-5.2.7-13.1-5.9-13.1H388c-2.3 0-4.5 1-5.9 2.9l-34 41.6-34-41.6a7.85 7.85 0 00-5.9-2.9h-50.9c-6.6 0-10.2 7.9-5.9 13.1l61.2 74.9-62.7 76.8c-4.4 5.2-.8 13.1 5.8 13.1h50.8c2.3 0 4.5-1 5.9-2.9l35.5-43.5 35.5 43.5c1.5 1.8 3.7 2.9 5.9 2.9h50.8c6.6 0 10.2-7.9 5.9-13.1L383.5 675zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-36 732H180V180h664v664z"}}]},name:"calculator",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},26362:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},24089:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 248H728l-32.4-90.8a32.07 32.07 0 00-30.2-21.2H358.6c-13.5 0-25.6 8.5-30.1 21.2L296 248H160c-44.2 0-80 35.8-80 80v456c0 44.2 35.8 80 80 80h704c44.2 0 80-35.8 80-80V328c0-44.2-35.8-80-80-80zm8 536c0 4.4-3.6 8-8 8H160c-4.4 0-8-3.6-8-8V328c0-4.4 3.6-8 8-8h186.7l17.1-47.8 22.9-64.2h250.5l22.9 64.2 17.1 47.8H864c4.4 0 8 3.6 8 8v456zM512 384c-88.4 0-160 71.6-160 160s71.6 160 160 160 160-71.6 160-160-71.6-160-160-160zm0 256c-53 0-96-43-96-96s43-96 96-96 96 43 96 96-43 96-96 96z"}}]},name:"camera",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},3105:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M380 704h264c4.4 0 8-3.6 8-8v-84c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v36H428v-36c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v84c0 4.4 3.6 8 8 8zm340-123a40 40 0 1080 0 40 40 0 10-80 0zm239-167.6L935.3 372a8 8 0 00-10.9-2.9l-50.7 29.6-78.3-216.2a63.9 63.9 0 00-60.9-44.4H301.2c-34.7 0-65.5 22.4-76.2 55.5l-74.6 205.2-50.8-29.6a8 8 0 00-10.9 2.9L65 413.4c-2.2 3.8-.9 8.6 2.9 10.8l60.4 35.2-14.5 40c-1.2 3.2-1.8 6.6-1.8 10v348.2c0 15.7 11.8 28.4 26.3 28.4h67.6c12.3 0 23-9.3 25.6-22.3l7.7-37.7h545.6l7.7 37.7c2.7 13 13.3 22.3 25.6 22.3h67.6c14.5 0 26.3-12.7 26.3-28.4V509.4c0-3.4-.6-6.8-1.8-10l-14.5-40 60.3-35.2a8 8 0 003-10.8zM840 517v237H184V517l15.6-43h624.8l15.6 43zM292.7 218.1l.5-1.3.4-1.3c1.1-3.3 4.1-5.5 7.6-5.5h427.6l75.4 208H220l72.7-199.9zM224 581a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"car",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},24423:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v584zM688 420h-55.2c-5.1 0-10 2.5-13 6.6L468.9 634.4l-64.7-89c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.4 0-12.8-6.5-12.8z"}}]},name:"carry-out",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},38811:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},26067:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},3766:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 512.3v-.3c0-229.8-186.2-416-416-416S96 282.2 96 512v.4c0 229.8 186.2 416 416 416s416-186.2 416-416v-.3.2zm-6.7-74.6l.6 3.3-.6-3.3zM676.7 638.2c53.5-82.2 52.5-189.4-11.1-263.7l162.4-8.4c20.5 44.4 32 93.8 32 145.9 0 185.2-144.6 336.6-327.1 347.4l143.8-221.2zM512 652.3c-77.5 0-140.2-62.7-140.2-140.2 0-77.7 62.7-140.2 140.2-140.2S652.2 434.5 652.2 512 589.5 652.3 512 652.3zm369.2-331.7l-3-5.7 3 5.7zM512 164c121.3 0 228.2 62.1 290.4 156.2l-263.6-13.9c-97.5-5.7-190.2 49.2-222.3 141.1L227.8 311c63.1-88.9 166.9-147 284.2-147zM102.5 585.8c26 145 127.1 264 261.6 315.1C229.6 850 128.5 731 102.5 585.8zM164 512c0-55.9 13.2-108.7 36.6-155.5l119.7 235.4c44.1 86.7 137.4 139.7 234 121.6l-74 145.1C302.9 842.5 164 693.5 164 512zm324.7 415.4c4 .2 8 .4 12 .5-4-.2-8-.3-12-.5z"}}]},name:"chrome",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},67345:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},36029:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},99552:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},47852:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},82510:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M624 706.3h-74.1V464c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v242.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.7a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-download",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},138:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z"}},{tag:"path",attrs:{d:"M376.9 656.4c1.8-33.5 15.7-64.7 39.5-88.6 25.4-25.5 60-39.8 96-39.8 36.2 0 70.3 14.1 96 39.8 1.4 1.4 2.7 2.8 4.1 4.3l-25 19.6a8 8 0 003 14.1l98.2 24c5 1.2 9.9-2.6 9.9-7.7l.5-101.3c0-6.7-7.6-10.5-12.9-6.3L663 532.7c-36.6-42-90.4-68.6-150.5-68.6-107.4 0-195 85.1-199.4 191.7-.2 4.5 3.4 8.3 8 8.3H369c4.2-.1 7.7-3.4 7.9-7.7zM703 664h-47.9c-4.2 0-7.7 3.3-8 7.6-1.8 33.5-15.7 64.7-39.5 88.6-25.4 25.5-60 39.8-96 39.8-36.2 0-70.3-14.1-96-39.8-1.4-1.4-2.7-2.8-4.1-4.3l25-19.6a8 8 0 00-3-14.1l-98.2-24c-5-1.2-9.9 2.6-9.9 7.7l-.4 101.4c0 6.7 7.6 10.5 12.9 6.3l23.2-18.2c36.6 42 90.4 68.6 150.5 68.6 107.4 0 195-85.1 199.4-191.7.2-4.5-3.4-8.3-8-8.3z"}}]},name:"cloud-sync",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},92446:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-upload",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},72226:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M709.6 210l.4-.2h.2L512 96 313.9 209.8h-.2l.7.3L151.5 304v416L512 928l360.5-208V304l-162.9-94zM482.7 843.6L339.6 761V621.4L210 547.8V372.9l272.7 157.3v313.4zM238.2 321.5l134.7-77.8 138.9 79.7 139.1-79.9 135.2 78-273.9 158-274-158zM814 548.3l-128.8 73.1v139.1l-143.9 83V530.4L814 373.1v175.2z"}}]},name:"code-sandbox",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},94131:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M488.1 414.7V303.4L300.9 428l83.6 55.8zm254.1 137.7v-79.8l-59.8 39.9zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm278 533c0 1.1-.1 2.1-.2 3.1 0 .4-.1.7-.2 1a14.16 14.16 0 01-.8 3.2c-.2.6-.4 1.2-.6 1.7-.2.4-.4.8-.5 1.2-.3.5-.5 1.1-.8 1.6-.2.4-.4.7-.7 1.1-.3.5-.7 1-1 1.5-.3.4-.5.7-.8 1-.4.4-.8.9-1.2 1.3-.3.3-.6.6-1 .9-.4.4-.9.8-1.4 1.1-.4.3-.7.6-1.1.8-.1.1-.3.2-.4.3L525.2 786c-4 2.7-8.6 4-13.2 4-4.7 0-9.3-1.4-13.3-4L244.6 616.9c-.1-.1-.3-.2-.4-.3l-1.1-.8c-.5-.4-.9-.7-1.3-1.1-.3-.3-.6-.6-1-.9-.4-.4-.8-.8-1.2-1.3a7 7 0 01-.8-1c-.4-.5-.7-1-1-1.5-.2-.4-.5-.7-.7-1.1-.3-.5-.6-1.1-.8-1.6-.2-.4-.4-.8-.5-1.2-.2-.6-.4-1.2-.6-1.7-.1-.4-.3-.8-.4-1.2-.2-.7-.3-1.3-.4-2-.1-.3-.1-.7-.2-1-.1-1-.2-2.1-.2-3.1V427.9c0-1 .1-2.1.2-3.1.1-.3.1-.7.2-1a14.16 14.16 0 01.8-3.2c.2-.6.4-1.2.6-1.7.2-.4.4-.8.5-1.2.2-.5.5-1.1.8-1.6.2-.4.4-.7.7-1.1.6-.9 1.2-1.7 1.8-2.5.4-.4.8-.9 1.2-1.3.3-.3.6-.6 1-.9.4-.4.9-.8 1.3-1.1.4-.3.7-.6 1.1-.8.1-.1.3-.2.4-.3L498.7 239c8-5.3 18.5-5.3 26.5 0l254.1 169.1c.1.1.3.2.4.3l1.1.8 1.4 1.1c.3.3.6.6 1 .9.4.4.8.8 1.2 1.3.7.8 1.3 1.6 1.8 2.5.2.4.5.7.7 1.1.3.5.6 1 .8 1.6.2.4.4.8.5 1.2.2.6.4 1.2.6 1.7.1.4.3.8.4 1.2.2.7.3 1.3.4 2 .1.3.1.7.2 1 .1 1 .2 2.1.2 3.1V597zm-254.1 13.3v111.3L723.1 597l-83.6-55.8zM281.8 472.6v79.8l59.8-39.9zM512 456.1l-84.5 56.4 84.5 56.4 84.5-56.4zM723.1 428L535.9 303.4v111.3l103.6 69.1zM384.5 541.2L300.9 597l187.2 124.6V610.3l-103.6-69.1z"}}]},name:"codepen-circle",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},82138:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M911.7 385.3l-.3-1.5c-.2-1-.3-1.9-.6-2.9-.2-.6-.4-1.1-.5-1.7-.3-.8-.5-1.7-.9-2.5-.2-.6-.5-1.1-.8-1.7-.4-.8-.8-1.5-1.2-2.3-.3-.5-.6-1.1-1-1.6-.8-1.2-1.7-2.4-2.6-3.6-.5-.6-1.1-1.3-1.7-1.9-.4-.5-.9-.9-1.4-1.3-.6-.6-1.3-1.1-1.9-1.6-.5-.4-1-.8-1.6-1.2-.2-.1-.4-.3-.6-.4L531.1 117.8a34.3 34.3 0 00-38.1 0L127.3 361.3c-.2.1-.4.3-.6.4-.5.4-1 .8-1.6 1.2-.7.5-1.3 1.1-1.9 1.6-.5.4-.9.9-1.4 1.3-.6.6-1.2 1.2-1.7 1.9-1 1.1-1.8 2.3-2.6 3.6-.3.5-.7 1-1 1.6-.4.7-.8 1.5-1.2 2.3-.3.5-.5 1.1-.8 1.7-.3.8-.6 1.7-.9 2.5-.2.6-.4 1.1-.5 1.7-.2.9-.4 1.9-.6 2.9l-.3 1.5c-.2 1.5-.3 3-.3 4.5v243.5c0 1.5.1 3 .3 4.5l.3 1.5.6 2.9c.2.6.3 1.1.5 1.7.3.9.6 1.7.9 2.5.2.6.5 1.1.8 1.7.4.8.7 1.5 1.2 2.3.3.5.6 1.1 1 1.6.5.7.9 1.4 1.5 2.1l1.2 1.5c.5.6 1.1 1.3 1.7 1.9.4.5.9.9 1.4 1.3.6.6 1.3 1.1 1.9 1.6.5.4 1 .8 1.6 1.2.2.1.4.3.6.4L493 905.7c5.6 3.8 12.3 5.8 19.1 5.8 6.6 0 13.3-1.9 19.1-5.8l365.6-243.5c.2-.1.4-.3.6-.4.5-.4 1-.8 1.6-1.2.7-.5 1.3-1.1 1.9-1.6.5-.4.9-.9 1.4-1.3.6-.6 1.2-1.2 1.7-1.9l1.2-1.5 1.5-2.1c.3-.5.7-1 1-1.6.4-.8.8-1.5 1.2-2.3.3-.5.5-1.1.8-1.7.3-.8.6-1.7.9-2.5.2-.5.4-1.1.5-1.7.3-.9.4-1.9.6-2.9l.3-1.5c.2-1.5.3-3 .3-4.5V389.8c-.3-1.5-.4-3-.6-4.5zM546.4 210.5l269.4 179.4-120.3 80.4-149-99.6V210.5zm-68.8 0v160.2l-149 99.6-120.3-80.4 269.3-179.4zM180.7 454.1l86 57.5-86 57.5v-115zm296.9 358.5L208.3 633.2l120.3-80.4 149 99.6v160.2zM512 592.8l-121.6-81.2L512 430.3l121.6 81.2L512 592.8zm34.4 219.8V652.4l149-99.6 120.3 80.4-269.3 179.4zM843.3 569l-86-57.5 86-57.5v115z"}}]},name:"codepen",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},60227:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M275 281c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36zm613 144H768c0-39.8-32.2-72-72-72H200c-39.8 0-72 32.2-72 72v248c0 3.4.2 6.7.7 9.9-.5 7-.7 14-.7 21.1 0 176.7 143.3 320 320 320 160.1 0 292.7-117.5 316.3-271H888c39.8 0 72-32.2 72-72V497c0-39.8-32.2-72-72-72zM696 681h-1.1c.7 7.6 1.1 15.2 1.1 23 0 137-111 248-248 248S200 841 200 704c0-7.8.4-15.4 1.1-23H200V425h496v256zm192-8H776V497h112v176zM613 281c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36zm-170 0c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36z"}}]},name:"coffee",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},13255:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm198.4-588.1a32 32 0 00-24.5.5L414.9 415 296.4 686c-3.6 8.2-3.6 17.5 0 25.7 3.4 7.8 9.7 13.9 17.7 17 3.8 1.5 7.7 2.2 11.7 2.2 4.4 0 8.7-.9 12.8-2.7l271-118.6 118.5-271a32.06 32.06 0 00-17.7-42.7zM576.8 534.4l26.2 26.2-42.4 42.4-26.2-26.2L380 644.4 447.5 490 422 464.4l42.4-42.4 25.5 25.5L644.4 380l-67.6 154.4zM464.4 422L422 464.4l25.5 25.6 86.9 86.8 26.2 26.2 42.4-42.4-26.2-26.2-86.8-86.9z"}}]},name:"compass",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},90888:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M301.3 496.7c-23.8 0-40.2-10.5-41.6-26.9H205c.9 43.4 36.9 70.3 93.9 70.3 59.1 0 95-28.4 95-75.5 0-35.8-20-55.9-64.5-64.5l-29.1-5.6c-23.8-4.7-33.8-11.9-33.8-24.2 0-15 13.3-24.5 33.4-24.5 20.1 0 35.3 11.1 36.6 27h53c-.9-41.7-37.5-70.3-90.3-70.3-54.4 0-89.7 28.9-89.7 73 0 35.5 21.2 58 62.5 65.8l29.7 5.9c25.8 5.2 35.6 11.9 35.6 24.4.1 14.7-14.5 25.1-36 25.1z"}},{tag:"path",attrs:{d:"M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z"}},{tag:"path",attrs:{d:"M828.5 486.7h-95.8V308.5h-57.4V534h153.2zm-298.6 53.4c14.1 0 27.2-2 39.1-5.8l13.3 20.3h53.3L607.9 511c21.1-20 33-51.1 33-89.8 0-73.3-43.3-118.8-110.9-118.8s-111.2 45.3-111.2 118.8c-.1 73.7 43 118.9 111.1 118.9zm0-190c31.6 0 52.7 27.7 52.7 71.1 0 16.7-3.6 30.6-10 40.5l-5.2-6.9h-48.8L542 491c-3.9.9-8 1.4-12.2 1.4-31.7 0-52.8-27.5-52.8-71.2.1-43.6 21.2-71.1 52.9-71.1z"}}]},name:"console-sql",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},30074:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M594.3 601.5a111.8 111.8 0 0029.1-75.5c0-61.9-49.9-112-111.4-112s-111.4 50.1-111.4 112c0 29.1 11 55.5 29.1 75.5a158.09 158.09 0 00-74.6 126.1 8 8 0 008 8.4H407c4.2 0 7.6-3.3 7.9-7.5 3.8-50.6 46-90.5 97.2-90.5s93.4 40 97.2 90.5c.3 4.2 3.7 7.5 7.9 7.5H661a8 8 0 008-8.4c-2.8-53.3-32-99.7-74.7-126.1zM512 578c-28.5 0-51.7-23.3-51.7-52s23.2-52 51.7-52 51.7 23.3 51.7 52-23.2 52-51.7 52zm416-354H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zm-40 568H136V296h120v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h120v496z"}}]},name:"contacts",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},82463:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V687h97.9c11.6 32.8 32 62.3 59.1 84.7 34.5 28.5 78.2 44.3 123 44.3s88.5-15.7 123-44.3c27.1-22.4 47.5-51.9 59.1-84.7H792v-63H643.6l-5.2 24.7C626.4 708.5 573.2 752 512 752s-114.4-43.5-126.5-103.3l-5.2-24.7H232V136h560v752zM320 341h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 160h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}}]},name:"container",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},46802:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM340 683v77c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-77c-10.1 3.3-20.8 5-32 5s-21.9-1.8-32-5zm64-198V264c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v221c10.1-3.3 20.8-5 32-5s21.9 1.8 32 5zm-64 198c10.1 3.3 20.8 5 32 5s21.9-1.8 32-5c41.8-13.5 72-52.7 72-99s-30.2-85.5-72-99c-10.1-3.3-20.8-5-32-5s-21.9 1.8-32 5c-41.8 13.5-72 52.7-72 99s30.2 85.5 72 99zm.1-115.7c.3-.6.7-1.2 1-1.8v-.1l1.2-1.8c.1-.2.2-.3.3-.5.3-.5.7-.9 1-1.4.1-.1.2-.3.3-.4.5-.6.9-1.1 1.4-1.6l.3-.3 1.2-1.2.4-.4c.5-.5 1-.9 1.6-1.4.6-.5 1.1-.9 1.7-1.3.2-.1.3-.2.5-.3.5-.3.9-.7 1.4-1 .1-.1.3-.2.4-.3.6-.4 1.2-.7 1.9-1.1.1-.1.3-.1.4-.2.5-.3 1-.5 1.6-.8l.6-.3c.7-.3 1.3-.6 2-.8.7-.3 1.4-.5 2.1-.7.2-.1.4-.1.6-.2.6-.2 1.1-.3 1.7-.4.2 0 .3-.1.5-.1.7-.2 1.5-.3 2.2-.4.2 0 .3 0 .5-.1.6-.1 1.2-.1 1.8-.2h.6c.8 0 1.5-.1 2.3-.1s1.5 0 2.3.1h.6c.6 0 1.2.1 1.8.2.2 0 .3 0 .5.1.7.1 1.5.2 2.2.4.2 0 .3.1.5.1.6.1 1.2.3 1.7.4.2.1.4.1.6.2.7.2 1.4.4 2.1.7.7.2 1.3.5 2 .8l.6.3c.5.2 1.1.5 1.6.8.1.1.3.1.4.2.6.3 1.3.7 1.9 1.1.1.1.3.2.4.3.5.3 1 .6 1.4 1 .2.1.3.2.5.3.6.4 1.2.9 1.7 1.3s1.1.9 1.6 1.4l.4.4 1.2 1.2.3.3c.5.5 1 1.1 1.4 1.6.1.1.2.3.3.4.4.4.7.9 1 1.4.1.2.2.3.3.5l1.2 1.8s0 .1.1.1a36.18 36.18 0 015.1 18.5c0 6-1.5 11.7-4.1 16.7-.3.6-.7 1.2-1 1.8 0 0 0 .1-.1.1l-1.2 1.8c-.1.2-.2.3-.3.5-.3.5-.7.9-1 1.4-.1.1-.2.3-.3.4-.5.6-.9 1.1-1.4 1.6l-.3.3-1.2 1.2-.4.4c-.5.5-1 .9-1.6 1.4-.6.5-1.1.9-1.7 1.3-.2.1-.3.2-.5.3-.5.3-.9.7-1.4 1-.1.1-.3.2-.4.3-.6.4-1.2.7-1.9 1.1-.1.1-.3.1-.4.2-.5.3-1 .5-1.6.8l-.6.3c-.7.3-1.3.6-2 .8-.7.3-1.4.5-2.1.7-.2.1-.4.1-.6.2-.6.2-1.1.3-1.7.4-.2 0-.3.1-.5.1-.7.2-1.5.3-2.2.4-.2 0-.3 0-.5.1-.6.1-1.2.1-1.8.2h-.6c-.8 0-1.5.1-2.3.1s-1.5 0-2.3-.1h-.6c-.6 0-1.2-.1-1.8-.2-.2 0-.3 0-.5-.1-.7-.1-1.5-.2-2.2-.4-.2 0-.3-.1-.5-.1-.6-.1-1.2-.3-1.7-.4-.2-.1-.4-.1-.6-.2-.7-.2-1.4-.4-2.1-.7-.7-.2-1.3-.5-2-.8l-.6-.3c-.5-.2-1.1-.5-1.6-.8-.1-.1-.3-.1-.4-.2-.6-.3-1.3-.7-1.9-1.1-.1-.1-.3-.2-.4-.3-.5-.3-1-.6-1.4-1-.2-.1-.3-.2-.5-.3-.6-.4-1.2-.9-1.7-1.3s-1.1-.9-1.6-1.4l-.4-.4-1.2-1.2-.3-.3c-.5-.5-1-1.1-1.4-1.6-.1-.1-.2-.3-.3-.4-.4-.4-.7-.9-1-1.4-.1-.2-.2-.3-.3-.5l-1.2-1.8v-.1c-.4-.6-.7-1.2-1-1.8-2.6-5-4.1-10.7-4.1-16.7s1.5-11.7 4.1-16.7zM620 539v221c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V539c-10.1 3.3-20.8 5-32 5s-21.9-1.8-32-5zm64-198v-77c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v77c10.1-3.3 20.8-5 32-5s21.9 1.8 32 5zm-64 198c10.1 3.3 20.8 5 32 5s21.9-1.8 32-5c41.8-13.5 72-52.7 72-99s-30.2-85.5-72-99c-10.1-3.3-20.8-5-32-5s-21.9 1.8-32 5c-41.8 13.5-72 52.7-72 99s30.2 85.5 72 99zm.1-115.7c.3-.6.7-1.2 1-1.8v-.1l1.2-1.8c.1-.2.2-.3.3-.5.3-.5.7-.9 1-1.4.1-.1.2-.3.3-.4.5-.6.9-1.1 1.4-1.6l.3-.3 1.2-1.2.4-.4c.5-.5 1-.9 1.6-1.4.6-.5 1.1-.9 1.7-1.3.2-.1.3-.2.5-.3.5-.3.9-.7 1.4-1 .1-.1.3-.2.4-.3.6-.4 1.2-.7 1.9-1.1.1-.1.3-.1.4-.2.5-.3 1-.5 1.6-.8l.6-.3c.7-.3 1.3-.6 2-.8.7-.3 1.4-.5 2.1-.7.2-.1.4-.1.6-.2.6-.2 1.1-.3 1.7-.4.2 0 .3-.1.5-.1.7-.2 1.5-.3 2.2-.4.2 0 .3 0 .5-.1.6-.1 1.2-.1 1.8-.2h.6c.8 0 1.5-.1 2.3-.1s1.5 0 2.3.1h.6c.6 0 1.2.1 1.8.2.2 0 .3 0 .5.1.7.1 1.5.2 2.2.4.2 0 .3.1.5.1.6.1 1.2.3 1.7.4.2.1.4.1.6.2.7.2 1.4.4 2.1.7.7.2 1.3.5 2 .8l.6.3c.5.2 1.1.5 1.6.8.1.1.3.1.4.2.6.3 1.3.7 1.9 1.1.1.1.3.2.4.3.5.3 1 .6 1.4 1 .2.1.3.2.5.3.6.4 1.2.9 1.7 1.3s1.1.9 1.6 1.4l.4.4 1.2 1.2.3.3c.5.5 1 1.1 1.4 1.6.1.1.2.3.3.4.4.4.7.9 1 1.4.1.2.2.3.3.5l1.2 1.8v.1a36.18 36.18 0 015.1 18.5c0 6-1.5 11.7-4.1 16.7-.3.6-.7 1.2-1 1.8v.1l-1.2 1.8c-.1.2-.2.3-.3.5-.3.5-.7.9-1 1.4-.1.1-.2.3-.3.4-.5.6-.9 1.1-1.4 1.6l-.3.3-1.2 1.2-.4.4c-.5.5-1 .9-1.6 1.4-.6.5-1.1.9-1.7 1.3-.2.1-.3.2-.5.3-.5.3-.9.7-1.4 1-.1.1-.3.2-.4.3-.6.4-1.2.7-1.9 1.1-.1.1-.3.1-.4.2-.5.3-1 .5-1.6.8l-.6.3c-.7.3-1.3.6-2 .8-.7.3-1.4.5-2.1.7-.2.1-.4.1-.6.2-.6.2-1.1.3-1.7.4-.2 0-.3.1-.5.1-.7.2-1.5.3-2.2.4-.2 0-.3 0-.5.1-.6.1-1.2.1-1.8.2h-.6c-.8 0-1.5.1-2.3.1s-1.5 0-2.3-.1h-.6c-.6 0-1.2-.1-1.8-.2-.2 0-.3 0-.5-.1-.7-.1-1.5-.2-2.2-.4-.2 0-.3-.1-.5-.1-.6-.1-1.2-.3-1.7-.4-.2-.1-.4-.1-.6-.2-.7-.2-1.4-.4-2.1-.7-.7-.2-1.3-.5-2-.8l-.6-.3c-.5-.2-1.1-.5-1.6-.8-.1-.1-.3-.1-.4-.2-.6-.3-1.3-.7-1.9-1.1-.1-.1-.3-.2-.4-.3-.5-.3-1-.6-1.4-1-.2-.1-.3-.2-.5-.3-.6-.4-1.2-.9-1.7-1.3s-1.1-.9-1.6-1.4l-.4-.4-1.2-1.2-.3-.3c-.5-.5-1-1.1-1.4-1.6-.1-.1-.2-.3-.3-.4-.4-.4-.7-.9-1-1.4-.1-.2-.2-.3-.3-.5l-1.2-1.8v-.1c-.4-.6-.7-1.2-1-1.8-2.6-5-4.1-10.7-4.1-16.7s1.5-11.7 4.1-16.7z"}}]},name:"control",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},43774:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M899.6 276.5L705 396.4 518.4 147.5a8.06 8.06 0 00-12.9 0L319 396.4 124.3 276.5c-5.7-3.5-13.1 1.2-12.2 7.9L188.5 865c1.1 7.9 7.9 14 16 14h615.1c8 0 14.9-6 15.9-14l76.4-580.6c.8-6.7-6.5-11.4-12.3-7.9zm-126 534.1H250.3l-53.8-409.4 139.8 86.1L512 252.9l175.7 234.4 139.8-86.1-53.9 409.4zM512 509c-62.1 0-112.6 50.5-112.6 112.6S449.9 734.2 512 734.2s112.6-50.5 112.6-112.6S574.1 509 512 509zm0 160.9c-26.6 0-48.2-21.6-48.2-48.3 0-26.6 21.6-48.3 48.2-48.3s48.2 21.6 48.2 48.3c0 26.6-21.6 48.3-48.2 48.3z"}}]},name:"crown",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},7079:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 128c-212.1 0-384 171.9-384 384v360c0 13.3 10.7 24 24 24h184c35.3 0 64-28.7 64-64V624c0-35.3-28.7-64-64-64H200v-48c0-172.3 139.7-312 312-312s312 139.7 312 312v48H688c-35.3 0-64 28.7-64 64v208c0 35.3 28.7 64 64 64h184c13.3 0 24-10.7 24-24V512c0-212.1-171.9-384-384-384zM328 632v192H200V632h128zm496 192H696V632h128v192z"}}]},name:"customer-service",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},48990:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 385.6a446.7 446.7 0 00-96-142.4 446.7 446.7 0 00-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 00-142.4 96 446.7 446.7 0 00-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6A371.12 371.12 0 01140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276zM623.5 421.5a8.03 8.03 0 00-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5a55.95 55.95 0 000 79.2 55.95 55.95 0 0079.2 0 55.87 55.87 0 0014.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8zm260 218v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zm12.7-197.2l-31.1-31.1a8.03 8.03 0 00-11.3 0l-56.6 56.6a8.03 8.03 0 000 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zm-458.6-31.1a8.03 8.03 0 00-11.3 0l-31.1 31.1a8.03 8.03 0 000 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z"}}]},name:"dashboard",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},80088:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"database",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},93598:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},88668:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888.3 693.2c-42.5-24.6-94.3-18-129.2 12.8l-53-30.7V523.6c0-15.7-8.4-30.3-22-38.1l-136-78.3v-67.1c44.2-15 76-56.8 76-106.1 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 49.3 31.8 91.1 76 106.1v67.1l-136 78.3c-13.6 7.8-22 22.4-22 38.1v151.6l-53 30.7c-34.9-30.8-86.8-37.4-129.2-12.8-53.5 31-71.7 99.4-41 152.9 30.8 53.5 98.9 71.9 152.2 41 42.5-24.6 62.7-73 53.6-118.8l48.7-28.3 140.6 81c6.8 3.9 14.4 5.9 22 5.9s15.2-2 22-5.9L674.5 740l48.7 28.3c-9.1 45.7 11.2 94.2 53.6 118.8 53.3 30.9 121.5 12.6 152.2-41 30.8-53.6 12.6-122-40.7-152.9zm-673 138.4a47.6 47.6 0 01-65.2-17.6c-13.2-22.9-5.4-52.3 17.5-65.5a47.6 47.6 0 0165.2 17.6c13.2 22.9 5.4 52.3-17.5 65.5zM522 463.8zM464 234a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm170 446.2l-122 70.3-122-70.3V539.8l122-70.3 122 70.3v140.4zm239.9 133.9c-13.2 22.9-42.4 30.8-65.2 17.6-22.8-13.2-30.7-42.6-17.5-65.5s42.4-30.8 65.2-17.6c22.9 13.2 30.7 42.5 17.5 65.5z"}}]},name:"deployment-unit",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},68456:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M573.7 252.5C422.5 197.4 201.3 96.7 201.3 96.7c-15.7-4.1-17.9 11.1-17.9 11.1-5 61.1 33.6 160.5 53.6 182.8 19.9 22.3 319.1 113.7 319.1 113.7S326 357.9 270.5 341.9c-55.6-16-37.9 17.8-37.9 17.8 11.4 61.7 64.9 131.8 107.2 138.4 42.2 6.6 220.1 4 220.1 4s-35.5 4.1-93.2 11.9c-42.7 5.8-97 12.5-111.1 17.8-33.1 12.5 24 62.6 24 62.6 84.7 76.8 129.7 50.5 129.7 50.5 33.3-10.7 61.4-18.5 85.2-24.2L565 743.1h84.6L603 928l205.3-271.9H700.8l22.3-38.7c.3.5.4.8.4.8S799.8 496.1 829 433.8l.6-1h-.1c5-10.8 8.6-19.7 10-25.8 17-71.3-114.5-99.4-265.8-154.5z"}}]},name:"dingding",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},44627:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M573.7 252.5C422.5 197.4 201.3 96.7 201.3 96.7c-15.7-4.1-17.9 11.1-17.9 11.1-5 61.1 33.6 160.5 53.6 182.8 19.9 22.3 319.1 113.7 319.1 113.7S326 357.9 270.5 341.9c-55.6-16-37.9 17.8-37.9 17.8 11.4 61.7 64.9 131.8 107.2 138.4 42.2 6.6 220.1 4 220.1 4s-35.5 4.1-93.2 11.9c-42.7 5.8-97 12.5-111.1 17.8-33.1 12.5 24 62.6 24 62.6 84.7 76.8 129.7 50.5 129.7 50.5 33.3-10.7 61.4-18.5 85.2-24.2L565 743.1h84.6L603 928l205.3-271.9H700.8l22.3-38.7c.3.5.4.8.4.8S799.8 496.1 829 433.8l.6-1h-.1c5-10.8 8.6-19.7 10-25.8 17-71.3-114.5-99.4-265.8-154.5z"}}]},name:"dingtalk",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},14103:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},40756:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},84032:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 96C282.6 96 96 282.6 96 512s186.6 416 416 416 416-186.6 416-416S741.4 96 512 96zm275.1 191.8c49.5 60.5 79.5 137.5 80.2 221.4-11.7-2.5-129.2-26.3-247.4-11.4-2.5-6.1-5-12.2-7.6-18.3-7.4-17.3-15.3-34.6-23.6-51.5C720 374.3 779.6 298 787.1 287.8zM512 157.2c90.3 0 172.8 33.9 235.5 89.5-6.4 9.1-59.9 81-186.2 128.4-58.2-107-122.7-194.8-132.6-208 27.3-6.6 55.2-9.9 83.3-9.9zM360.9 191c9.4 12.8 72.9 100.9 131.7 205.5C326.4 440.6 180 440 164.1 439.8c23.1-110.3 97.4-201.9 196.8-248.8zM156.7 512.5c0-3.6.1-7.3.2-10.9 15.5.3 187.7 2.5 365.2-50.6 10.2 19.9 19.9 40.1 28.8 60.3-4.7 1.3-9.4 2.7-14 4.2C353.6 574.9 256.1 736.4 248 750.1c-56.7-63-91.3-146.3-91.3-237.6zM512 867.8c-82.2 0-157.9-28-218.1-75 6.4-13.1 78.3-152 278.7-221.9l2.3-.8c49.9 129.6 70.5 238.3 75.8 269.5A350.46 350.46 0 01512 867.8zm198.5-60.7c-3.6-21.6-22.5-125.6-69-253.3C752.9 536 850.7 565.2 862.8 569c-15.8 98.8-72.5 184.2-152.3 238.1z"}}]},name:"dribbble",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},73576:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M64 556.9l264.2 173.5L512.5 577 246.8 412.7zm896-290.3zm0 0L696.8 95 512.5 248.5l265.2 164.2L512.5 577l184.3 153.4L960 558.8 777.7 412.7zM513 609.8L328.2 763.3l-79.4-51.5v57.8L513 928l263.7-158.4v-57.8l-78.9 51.5zM328.2 95L64 265.1l182.8 147.6 265.7-164.2zM64 556.9z"}}]},name:"dropbox",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},52318:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},7541:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},52629:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},8597:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},30234:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},6516:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-32 736H663.9V602.2h104l15.6-120.7H663.9v-77.1c0-35 9.7-58.8 59.8-58.8h63.9v-108c-11.1-1.5-49-4.8-93.2-4.8-92.2 0-155.3 56.3-155.3 159.6v89H434.9v120.7h104.3V848H176V176h672v672z"}}]},name:"facebook",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},21883:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M553.1 509.1l-77.8 99.2-41.1-52.4a8 8 0 00-12.6 0l-99.8 127.2a7.98 7.98 0 006.3 12.9H696c6.7 0 10.4-7.7 6.3-12.9l-136.5-174a8.1 8.1 0 00-12.7 0zM360 442a40 40 0 1080 0 40 40 0 10-80 0zm494.6-153.4L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file-image",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},36436:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:function(t,e){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:e}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},87942:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M834.1 469.2A347.49 347.49 0 00751.2 354l-29.1-26.7a8.09 8.09 0 00-13 3.3l-13 37.3c-8.1 23.4-23 47.3-44.1 70.8-1.4 1.5-3 1.9-4.1 2-1.1.1-2.8-.1-4.3-1.5-1.4-1.2-2.1-3-2-4.8 3.7-60.2-14.3-128.1-53.7-202C555.3 171 510 123.1 453.4 89.7l-41.3-24.3c-5.4-3.2-12.3 1-12 7.3l2.2 48c1.5 32.8-2.3 61.8-11.3 85.9-11 29.5-26.8 56.9-47 81.5a295.64 295.64 0 01-47.5 46.1 352.6 352.6 0 00-100.3 121.5A347.75 347.75 0 00160 610c0 47.2 9.3 92.9 27.7 136a349.4 349.4 0 0075.5 110.9c32.4 32 70 57.2 111.9 74.7C418.5 949.8 464.5 959 512 959s93.5-9.2 136.9-27.3A348.6 348.6 0 00760.8 857c32.4-32 57.8-69.4 75.5-110.9a344.2 344.2 0 0027.7-136c0-48.8-10-96.2-29.9-140.9zM713 808.5c-53.7 53.2-125 82.4-201 82.4s-147.3-29.2-201-82.4c-53.5-53.1-83-123.5-83-198.4 0-43.5 9.8-85.2 29.1-124 18.8-37.9 46.8-71.8 80.8-97.9a349.6 349.6 0 0058.6-56.8c25-30.5 44.6-64.5 58.2-101a240 240 0 0012.1-46.5c24.1 22.2 44.3 49 61.2 80.4 33.4 62.6 48.8 118.3 45.8 165.7a74.01 74.01 0 0024.4 59.8 73.36 73.36 0 0053.4 18.8c19.7-1 37.8-9.7 51-24.4 13.3-14.9 24.8-30.1 34.4-45.6 14 17.9 25.7 37.4 35 58.4 15.9 35.8 24 73.9 24 113.1 0 74.9-29.5 145.4-83 198.4z"}}]},name:"fire",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},24959:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M484 443.1V528h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H484v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V584h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H540v-84.9c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1zm396-144.7H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder-add",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},22630:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M840 192h-56v-72c0-13.3-10.7-24-24-24H168c-13.3 0-24 10.7-24 24v272c0 13.3 10.7 24 24 24h592c13.3 0 24-10.7 24-24V256h32v200H465c-22.1 0-40 17.9-40 40v136h-44c-4.4 0-8 3.6-8 8v228c0 .6.1 1.3.2 1.9A83.99 83.99 0 00457 960c46.4 0 84-37.6 84-84 0-2.1-.1-4.1-.2-6.1.1-.6.2-1.2.2-1.9V640c0-4.4-3.6-8-8-8h-44V520h351c22.1 0 40-17.9 40-40V232c0-22.1-17.9-40-40-40zM720 352H208V160h512v192zM477 876c0 11-9 20-20 20s-20-9-20-20V696h40v180z"}}]},name:"format-painter",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},53578:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 310H732.4c13.6-21.4 21.6-46.8 21.6-74 0-76.1-61.9-138-138-138-41.4 0-78.7 18.4-104 47.4-25.3-29-62.6-47.4-104-47.4-76.1 0-138 61.9-138 138 0 27.2 7.9 52.6 21.6 74H144c-17.7 0-32 14.3-32 32v200c0 4.4 3.6 8 8 8h40v344c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V550h40c4.4 0 8-3.6 8-8V342c0-17.7-14.3-32-32-32zm-334-74c0-38.6 31.4-70 70-70s70 31.4 70 70-31.4 70-70 70h-70v-70zm-138-70c38.6 0 70 31.4 70 70v70h-70c-38.6 0-70-31.4-70-70s31.4-70 70-70zM180 482V378h298v104H180zm48 68h250v308H228V550zm568 308H546V550h250v308zm48-376H546V378h298v104z"}}]},name:"gift",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},17122:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},16125:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M913.9 552.2L805 181.4v-.1c-7.6-22.9-25.7-36.5-48.3-36.5-23.4 0-42.5 13.5-49.7 35.2l-71.4 213H388.8l-71.4-213c-7.2-21.7-26.3-35.2-49.7-35.2-23.1 0-42.5 14.8-48.4 36.6L110.5 552.2c-4.4 14.7 1.2 31.4 13.5 40.7l368.5 276.4c2.6 3.6 6.2 6.3 10.4 7.8l8.6 6.4 8.5-6.4c4.9-1.7 9-4.7 11.9-8.9l368.4-275.4c12.4-9.2 18-25.9 13.6-40.6zM751.7 193.4c1-1.8 2.9-1.9 3.5-1.9 1.1 0 2.5.3 3.4 3L818 394.3H684.5l67.2-200.9zm-487.4 1c.9-2.6 2.3-2.9 3.4-2.9 2.7 0 2.9.1 3.4 1.7l67.3 201.2H206.5l57.8-200zM158.8 558.7l28.2-97.3 202.4 270.2-230.6-172.9zm73.9-116.4h122.1l90.8 284.3-212.9-284.3zM512.9 776L405.7 442.3H620L512.9 776zm157.9-333.7h119.5L580 723.1l90.8-280.8zm-40.7 293.9l207.3-276.7 29.5 99.2-236.8 177.5z"}}]},name:"gitlab",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},87851:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M881 442.4H519.7v148.5h206.4c-8.9 48-35.9 88.6-76.6 115.8-34.4 23-78.3 36.6-129.9 36.6-99.9 0-184.4-67.5-214.6-158.2-7.6-23-12-47.6-12-72.9s4.4-49.9 12-72.9c30.3-90.6 114.8-158.1 214.7-158.1 56.3 0 106.8 19.4 146.6 57.4l110-110.1c-66.5-62-153.2-100-256.6-100-149.9 0-279.6 86-342.7 211.4-26 51.8-40.8 110.4-40.8 172.4S151 632.8 177 684.6C240.1 810 369.8 896 519.7 896c103.6 0 190.4-34.4 253.8-93 72.5-66.8 114.4-165.2 114.4-282.1 0-27.2-2.4-53.3-6.9-78.5z"}}]},name:"google",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},29566:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M879.5 470.4c-.3-27-.4-54.2-.5-81.3h-80.8c-.3 27-.5 54.1-.7 81.3-27.2.1-54.2.3-81.2.6v80.9c27 .3 54.2.5 81.2.8.3 27 .3 54.1.5 81.1h80.9c.1-27 .3-54.1.5-81.3 27.2-.3 54.2-.4 81.2-.7v-80.9c-26.9-.2-54.1-.2-81.1-.5zm-530 .4c-.1 32.3 0 64.7.1 97 54.2 1.8 108.5 1 162.7 1.8-23.9 120.3-187.4 159.3-273.9 80.7-89-68.9-84.8-220 7.7-284 64.7-51.6 156.6-38.9 221.3 5.8 25.4-23.5 49.2-48.7 72.1-74.7-53.8-42.9-119.8-73.5-190-70.3-146.6-4.9-281.3 123.5-283.7 270.2-9.4 119.9 69.4 237.4 180.6 279.8 110.8 42.7 252.9 13.6 323.7-86 46.7-62.9 56.8-143.9 51.3-220-90.7-.7-181.3-.6-271.9-.3z"}}]},name:"google-plus",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},46061:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M145 96l66 746.6L511.8 928l299.6-85.4L878.7 96H145zm610.9 700.6l-244.1 69.6-245.2-69.6-56.7-641.2h603.8l-57.8 641.2zM281 249l1.7 24.3 22.7 253.5h206.5v-.1h112.9l-11.4 118.5L511 672.9v.2h-.8l-102.4-27.7-6.5-73.2h-91l11.3 144.7 188.6 52h1.7v-.4l187.7-51.7 1.7-16.3 21.2-242.2 3.2-24.3H511v.2H389.9l-8.2-94.2h352.1l1.7-19.5 4.8-47.2L742 249H511z"}}]},name:"html5",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},92136:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M852.6 367.6c16.3-36.9 32.1-90.7 32.1-131.8 0-109.1-119.5-147.6-314.5-57.9-161.4-10.8-316.8 110.5-355.6 279.7 46.3-52.3 117.4-123.4 183-151.7C316.1 378.3 246.7 470 194 565.6c-31.1 56.9-66 148.8-66 217.5 0 147.9 139.3 129.8 270.4 63 47.1 23.1 99.8 23.4 152.5 23.4 145.7 0 276.4-81.4 325.2-219H694.9c-78.8 132.9-295.2 79.5-295.2-71.2h493.2c9.6-65.4-2.5-143.6-40.3-211.7zM224.8 648.3c26.6 76.7 80.6 143.8 150.4 185-133.1 73.4-259.9 43.6-150.4-185zm174-163.3c3-82.7 75.4-142.3 156-142.3 80.1 0 153 59.6 156 142.3h-312zm276.8-281.4c32.1-15.4 72.8-33 108.8-33 47.1 0 81.4 32.6 81.4 80.6 0 30-11.1 73.5-21.9 101.8-39.3-63.5-98.9-122.4-168.3-149.4z"}}]},name:"ie",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},17850:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},29248:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},50329:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},84890:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM305.8 637.7c3.1 3.1 8.1 3.1 11.3 0l138.3-137.6L583 628.5c3.1 3.1 8.2 3.1 11.3 0l275.4-275.3c3.1-3.1 3.1-8.2 0-11.3l-39.6-39.6a8.03 8.03 0 00-11.3 0l-230 229.9L461.4 404a8.03 8.03 0 00-11.3 0L266.3 586.7a8.03 8.03 0 000 11.3l39.5 39.7z"}}]},name:"line-chart",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},80069:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.7 112H176.3c-35.5 0-64.3 28.8-64.3 64.3v671.4c0 35.5 28.8 64.3 64.3 64.3h671.4c35.5 0 64.3-28.8 64.3-64.3V176.3c0-35.5-28.8-64.3-64.3-64.3zm0 736c-447.8-.1-671.7-.2-671.7-.3.1-447.8.2-671.7.3-671.7 447.8.1 671.7.2 671.7.3-.1 447.8-.2 671.7-.3 671.7zM230.6 411.9h118.7v381.8H230.6zm59.4-52.2c37.9 0 68.8-30.8 68.8-68.8a68.8 68.8 0 10-137.6 0c-.1 38 30.7 68.8 68.8 68.8zm252.3 245.1c0-49.8 9.5-98 71.2-98 60.8 0 61.7 56.9 61.7 101.2v185.7h118.6V584.3c0-102.8-22.2-181.9-142.3-181.9-57.7 0-96.4 31.7-112.3 61.7h-1.6v-52.2H423.7v381.8h118.6V604.8z"}}]},name:"linkedin",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},93567:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},58676:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M834.7 279.8l61.3-58.9V208H683.7L532.4 586.4 360.3 208H137.7v12.9l71.6 86.6c7 6.4 10.6 15.8 9.7 25.2V673c2.2 12.3-1.7 24.8-10.3 33.7L128 805v12.7h228.6v-12.9l-80.6-98a39.99 39.99 0 01-11.1-33.7V378.7l200.7 439.2h23.3l172.6-439.2v349.9c0 9.2 0 11.1-6 17.2l-62.1 60.3V819h301.2v-12.9l-59.9-58.9c-5.2-4-7.9-10.7-6.8-17.2V297a18.1 18.1 0 016.8-17.2z"}}]},name:"medium",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},31201:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},76157:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z"}}]},name:"menu-unfold",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},90911:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482.2 508.4L331.3 389c-3-2.4-7.3-.2-7.3 3.6V478H184V184h204v128c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V144c0-15.5-12.5-28-28-28H144c-15.5 0-28 12.5-28 28v736c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v128H184V546h140v85.4c0 3.8 4.4 6 7.3 3.6l150.9-119.4a4.5 4.5 0 000-7.2zM880 116H596c-15.5 0-28 12.5-28 28v168c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V184h204v294H700v-85.4c0-3.8-4.3-6-7.3-3.6l-151 119.4a4.52 4.52 0 000 7.1l151 119.5c2.9 2.3 7.3.2 7.3-3.6V546h140v294H636V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v168c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V144c0-15.5-12.5-28-28-28z"}}]},name:"merge-cells",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},78854:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"more",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},54466:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},90628:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:function(t,e){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:e}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:e}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:e}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},75132:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},46221:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M824.8 613.2c-16-51.4-34.4-94.6-62.7-165.3C766.5 262.2 689.3 112 511.5 112 331.7 112 256.2 265.2 261 447.9c-28.4 70.8-46.7 113.7-62.7 165.3-34 109.5-23 154.8-14.6 155.8 18 2.2 70.1-82.4 70.1-82.4 0 49 25.2 112.9 79.8 159-26.4 8.1-85.7 29.9-71.6 53.8 11.4 19.3 196.2 12.3 249.5 6.3 53.3 6 238.1 13 249.5-6.3 14.1-23.8-45.3-45.7-71.6-53.8 54.6-46.2 79.8-110.1 79.8-159 0 0 52.1 84.6 70.1 82.4 8.5-1.1 19.5-46.4-14.5-155.8z"}}]},name:"qq",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},68e3:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},32977:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 00-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0043.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0043.1-30.5 97.52 97.52 0 0021.4-60.8c0-8.4-1.1-16.4-3.1-23.8H864zM762.3 621.4c9.4 14.6 17 30.3 22.5 46.6H700V558.7a211.6 211.6 0 0162.3 62.7zM388 483.1V318.8l124-147 124 147V668H388V483.1zM239.2 668c5.5-16.3 13.1-32 22.5-46.6 16.3-25.2 37.5-46.5 62.3-62.7V668h-84.8zm388.9 116.2c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5-38.3 0-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 01-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5zM464 400a48 48 0 1096 0 48 48 0 10-96 0z"}}]},name:"rocket",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},68388:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},42877:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},78602:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},51600:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M883.7 578.6c4.1-22.5 6.3-45.5 6.3-68.5 0-51-10-100.5-29.7-147-19-45-46.3-85.4-81-120.1a375.79 375.79 0 00-120.1-80.9c-46.6-19.7-96-29.7-147-29.7-24 0-48.1 2.3-71.5 6.8A225.1 225.1 0 00335.6 113c-59.7 0-115.9 23.3-158.1 65.5A222.25 222.25 0 00112 336.6c0 38 9.8 75.4 28.1 108.4-3.7 21.4-5.7 43.3-5.7 65.1 0 51 10 100.5 29.7 147 19 45 46.2 85.4 80.9 120.1 34.7 34.7 75.1 61.9 120.1 80.9 46.6 19.7 96 29.7 147 29.7 22.2 0 44.4-2 66.2-5.9 33.5 18.9 71.3 29 110 29 59.7 0 115.9-23.2 158.1-65.5 42.3-42.2 65.5-98.4 65.5-158.1.1-38-9.7-75.5-28.2-108.7zm-88.1 216C766.9 823.4 729 839 688.4 839c-26.1 0-51.8-6.8-74.6-19.7l-22.5-12.7-25.5 4.5c-17.8 3.2-35.8 4.8-53.6 4.8-41.4 0-81.3-8.1-119.1-24.1-36.3-15.3-69-37.3-97.2-65.5a304.29 304.29 0 01-65.5-97.1c-16-37.7-24-77.6-24-119 0-17.4 1.6-35.2 4.6-52.8l4.4-25.1L203 410a151.02 151.02 0 01-19.1-73.4c0-40.6 15.7-78.5 44.4-107.2C257.1 200.7 295 185 335.6 185a153 153 0 0171.4 17.9l22.4 11.8 24.8-4.8c18.9-3.6 38.4-5.5 58-5.5 41.4 0 81.3 8.1 119 24 36.5 15.4 69.1 37.4 97.2 65.5 28.2 28.1 50.2 60.8 65.6 97.2 16 37.7 24 77.6 24 119 0 18.4-1.7 37-5.1 55.5l-4.7 25.5 12.6 22.6c12.6 22.5 19.2 48 19.2 73.7 0 40.7-15.7 78.5-44.4 107.2zM583.4 466.2L495 446.6c-33.6-7.7-72.3-17.8-72.3-49.5s27.1-53.9 76.1-53.9c98.7 0 89.7 67.8 138.7 67.8 25.8 0 48.4-15.2 48.4-41.2 0-60.8-97.4-106.5-180-106.5-89.7 0-185.2 38.1-185.2 139.5 0 48.8 17.4 100.8 113.6 124.9l119.4 29.8c36.1 8.9 45.2 29.2 45.2 47.6 0 30.5-30.3 60.3-85.2 60.3-107.2 0-92.3-82.5-149.7-82.5-25.8 0-44.5 17.8-44.5 43.1 0 49.4 60 115.4 194.2 115.4 127.7 0 191-61.5 191-144 0-53.1-24.5-109.6-121.3-131.2z"}}]},name:"skype",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},86405:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M409.4 128c-42.4 0-76.7 34.4-76.7 76.8 0 20.3 8.1 39.9 22.4 54.3a76.74 76.74 0 0054.3 22.5h76.7v-76.8c0-42.3-34.3-76.7-76.7-76.8zm0 204.8H204.7c-42.4 0-76.7 34.4-76.7 76.8s34.4 76.8 76.7 76.8h204.6c42.4 0 76.7-34.4 76.7-76.8.1-42.4-34.3-76.8-76.6-76.8zM614 486.4c42.4 0 76.8-34.4 76.7-76.8V204.8c0-42.4-34.3-76.8-76.7-76.8-42.4 0-76.7 34.4-76.7 76.8v204.8c0 42.5 34.3 76.8 76.7 76.8zm281.4-76.8c0-42.4-34.4-76.8-76.7-76.8S742 367.2 742 409.6v76.8h76.7c42.3 0 76.7-34.4 76.7-76.8zm-76.8 128H614c-42.4 0-76.7 34.4-76.7 76.8 0 20.3 8.1 39.9 22.4 54.3a76.74 76.74 0 0054.3 22.5h204.6c42.4 0 76.7-34.4 76.7-76.8.1-42.4-34.3-76.7-76.7-76.8zM614 742.4h-76.7v76.8c0 42.4 34.4 76.8 76.7 76.8 42.4 0 76.8-34.4 76.7-76.8.1-42.4-34.3-76.7-76.7-76.8zM409.4 537.6c-42.4 0-76.7 34.4-76.7 76.8v204.8c0 42.4 34.4 76.8 76.7 76.8 42.4 0 76.8-34.4 76.7-76.8V614.4c0-20.3-8.1-39.9-22.4-54.3a76.92 76.92 0 00-54.3-22.5zM128 614.4c0 20.3 8.1 39.9 22.4 54.3a76.74 76.74 0 0054.3 22.5c42.4 0 76.8-34.4 76.7-76.8v-76.8h-76.7c-42.3 0-76.7 34.4-76.7 76.8z"}}]},name:"slack",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},25167:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM529 311.4c0-27.8 22.5-50.4 50.3-50.4 27.8 0 50.3 22.6 50.3 50.4v134.4c0 27.8-22.5 50.4-50.3 50.4-27.8 0-50.3-22.6-50.3-50.4V311.4zM361.5 580.2c0 27.8-22.5 50.4-50.3 50.4a50.35 50.35 0 01-50.3-50.4c0-27.8 22.5-50.4 50.3-50.4h50.3v50.4zm134 134.4c0 27.8-22.5 50.4-50.3 50.4-27.8 0-50.3-22.6-50.3-50.4V580.2c0-27.8 22.5-50.4 50.3-50.4a50.35 50.35 0 0150.3 50.4v134.4zm-50.2-218.4h-134c-27.8 0-50.3-22.6-50.3-50.4 0-27.8 22.5-50.4 50.3-50.4h134c27.8 0 50.3 22.6 50.3 50.4-.1 27.9-22.6 50.4-50.3 50.4zm0-134.4c-13.3 0-26.1-5.3-35.6-14.8S395 324.8 395 311.4c0-27.8 22.5-50.4 50.3-50.4 27.8 0 50.3 22.6 50.3 50.4v50.4h-50.3zm134 403.2c-27.8 0-50.3-22.6-50.3-50.4v-50.4h50.3c27.8 0 50.3 22.6 50.3 50.4 0 27.8-22.5 50.4-50.3 50.4zm134-134.4h-134a50.35 50.35 0 01-50.3-50.4c0-27.8 22.5-50.4 50.3-50.4h134c27.8 0 50.3 22.6 50.3 50.4 0 27.8-22.5 50.4-50.3 50.4zm0-134.4H663v-50.4c0-27.8 22.5-50.4 50.3-50.4s50.3 22.6 50.3 50.4c0 27.8-22.5 50.4-50.3 50.4z"}}]},name:"slack-square",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},17836:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M938.2 508.4L787.3 389c-3-2.4-7.3-.2-7.3 3.6V478H636V184h204v128c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V144c0-15.5-12.5-28-28-28H596c-15.5 0-28 12.5-28 28v736c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v128H636V546h144v85.4c0 3.8 4.4 6 7.3 3.6l150.9-119.4a4.5 4.5 0 000-7.2zM428 116H144c-15.5 0-28 12.5-28 28v168c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V184h204v294H244v-85.4c0-3.8-4.3-6-7.3-3.6l-151 119.4a4.52 4.52 0 000 7.1l151 119.5c2.9 2.3 7.3.2 7.3-3.6V546h144v294H184V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v168c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V144c0-15.5-12.5-28-28-28z"}}]},name:"split-cells",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},1399:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM315.7 291.5c27.3 0 49.5 22.1 49.5 49.4s-22.1 49.4-49.5 49.4a49.4 49.4 0 110-98.8zM366.9 578c-13.6 42.3-10.2 26.7-64.4 144.5l-78.5-49s87.7-79.8 105.6-116.2c19.2-38.4-21.1-58.9-21.1-58.9l-60.2-37.5 32.7-50.2c45.4 33.7 48.7 36.6 79.2 67.2 23.8 23.9 20.7 56.8 6.7 100.1zm427.2 55c-15.3 143.8-202.4 90.3-202.4 90.3l10.2-41.1 43.3 9.3c80 5 72.3-64.9 72.3-64.9V423c.6-77.3-72.6-85.4-204.2-38.3l30.6 8.3c-2.5 9-12.5 23.2-25.2 38.6h176v35.6h-99.1v44.5h98.7v35.7h-98.7V622c14.9-4.8 28.6-11.5 40.5-20.5l-8.7-32.5 46.5-14.4 38.8 94.9-57.3 23.9-10.2-37.8c-25.6 19.5-78.8 48-171.8 45.4-99.2 2.6-73.7-112-73.7-112l2.5-1.3H472c-.5 14.7-6.6 38.7 1.7 51.8 6.8 10.8 24.2 12.6 35.3 13.1 1.3.1 2.6.1 3.9.1v-85.3h-101v-35.7h101v-44.5H487c-22.7 24.1-43.5 44.1-43.5 44.1l-30.6-26.7c21.7-22.9 43.3-59.1 56.8-83.2-10.9 4.4-22 9.2-33.6 14.2-11.2 14.3-24.2 29-38.7 43.5.5.8-50-28.4-50-28.4 52.2-44.4 81.4-139.9 81.4-139.9l72.5 20.4s-5.9 14-18.4 35.6c290.3-82.3 307.4 50.5 307.4 50.5s19.1 91.8 3.8 235.7z"}}]},name:"taobao-circle",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},53422:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168.5 273.7a68.7 68.7 0 10137.4 0 68.7 68.7 0 10-137.4 0zm730 79.2s-23.7-184.4-426.9-70.1c17.3-30 25.6-49.5 25.6-49.5L396.4 205s-40.6 132.6-113 194.4c0 0 70.1 40.6 69.4 39.4 20.1-20.1 38.2-40.6 53.7-60.4 16.1-7 31.5-13.6 46.7-19.8-18.6 33.5-48.7 83.8-78.8 115.6l42.4 37s28.8-27.7 60.4-61.2h36v61.8H372.9v49.5h140.3v118.5c-1.7 0-3.6 0-5.4-.2-15.4-.7-39.5-3.3-49-18.2-11.5-18.1-3-51.5-2.4-71.9h-97l-3.4 1.8s-35.5 159.1 102.3 155.5c129.1 3.6 203-36 238.6-63.1l14.2 52.6 79.6-33.2-53.9-131.9-64.6 20.1 12.1 45.2c-16.6 12.4-35.6 21.7-56.2 28.4V561.3h137.1v-49.5H628.1V450h137.6v-49.5H521.3c17.6-21.4 31.5-41.1 35-53.6l-42.5-11.6c182.8-65.5 284.5-54.2 283.6 53.2v282.8s10.8 97.1-100.4 90.1l-60.2-12.9-14.2 57.1S882.5 880 903.7 680.2c21.3-200-5.2-327.3-5.2-327.3zm-707.4 18.3l-45.4 69.7 83.6 52.1s56 28.5 29.4 81.9C233.8 625.5 112 736.3 112 736.3l109 68.1c75.4-163.7 70.5-142 89.5-200.7 19.5-60.1 23.7-105.9-9.4-139.1-42.4-42.6-47-46.6-110-93.4z"}}]},name:"taobao",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},6490:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 160h-92v-40c0-4.4-3.6-8-8-8H256c-4.4 0-8 3.6-8 8v40h-92a44 44 0 00-44 44v148c0 81.7 60 149.6 138.2 162C265.7 630.2 359 721.7 476 734.5v105.2H280c-17.7 0-32 14.3-32 32V904c0 4.4 3.6 8 8 8h512c4.4 0 8-3.6 8-8v-32.3c0-17.7-14.3-32-32-32H548V734.5C665 721.7 758.3 630.2 773.8 514 852 501.6 912 433.7 912 352V204a44 44 0 00-44-44zM184 352V232h64v207.6a91.99 91.99 0 01-64-87.6zm520 128c0 49.1-19.1 95.4-53.9 130.1-34.8 34.8-81 53.9-130.1 53.9h-16c-49.1 0-95.4-19.1-130.1-53.9-34.8-34.8-53.9-81-53.9-130.1V184h384v296zm136-128c0 41-26.9 75.8-64 87.6V232h64v120z"}}]},name:"trophy",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},87104:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 254.3c-30.6 13.2-63.9 22.7-98.2 26.4a170.1 170.1 0 0075-94 336.64 336.64 0 01-108.2 41.2A170.1 170.1 0 00672 174c-94.5 0-170.5 76.6-170.5 170.6 0 13.2 1.6 26.4 4.2 39.1-141.5-7.4-267.7-75-351.6-178.5a169.32 169.32 0 00-23.2 86.1c0 59.2 30.1 111.4 76 142.1a172 172 0 01-77.1-21.7v2.1c0 82.9 58.6 151.6 136.7 167.4a180.6 180.6 0 01-44.9 5.8c-11.1 0-21.6-1.1-32.2-2.6C211 652 273.9 701.1 348.8 702.7c-58.6 45.9-132 72.9-211.7 72.9-14.3 0-27.5-.5-41.2-2.1C171.5 822 261.2 850 357.8 850 671.4 850 843 590.2 843 364.7c0-7.4 0-14.8-.5-22.2 33.2-24.3 62.3-54.4 85.5-88.2z"}}]},name:"twitter",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},83853:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},18406:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M690.1 377.4c5.9 0 11.8.2 17.6.5-24.4-128.7-158.3-227.1-319.9-227.1C209 150.8 64 271.4 64 420.2c0 81.1 43.6 154.2 111.9 203.6a21.5 21.5 0 019.1 17.6c0 2.4-.5 4.6-1.1 6.9-5.5 20.3-14.2 52.8-14.6 54.3-.7 2.6-1.7 5.2-1.7 7.9 0 5.9 4.8 10.8 10.8 10.8 2.3 0 4.2-.9 6.2-2l70.9-40.9c5.3-3.1 11-5 17.2-5 3.2 0 6.4.5 9.5 1.4 33.1 9.5 68.8 14.8 105.7 14.8 6 0 11.9-.1 17.8-.4-7.1-21-10.9-43.1-10.9-66 0-135.8 132.2-245.8 295.3-245.8zm-194.3-86.5c23.8 0 43.2 19.3 43.2 43.1s-19.3 43.1-43.2 43.1c-23.8 0-43.2-19.3-43.2-43.1s19.4-43.1 43.2-43.1zm-215.9 86.2c-23.8 0-43.2-19.3-43.2-43.1s19.3-43.1 43.2-43.1 43.2 19.3 43.2 43.1-19.4 43.1-43.2 43.1zm586.8 415.6c56.9-41.2 93.2-102 93.2-169.7 0-124-120.8-224.5-269.9-224.5-149 0-269.9 100.5-269.9 224.5S540.9 847.5 690 847.5c30.8 0 60.6-4.4 88.1-12.3 2.6-.8 5.2-1.2 7.9-1.2 5.2 0 9.9 1.6 14.3 4.1l59.1 34c1.7 1 3.3 1.7 5.2 1.7a9 9 0 006.4-2.6 9 9 0 002.6-6.4c0-2.2-.9-4.4-1.4-6.6-.3-1.2-7.6-28.3-12.2-45.3-.5-1.9-.9-3.8-.9-5.7.1-5.9 3.1-11.2 7.6-14.5zM600.2 587.2c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9c0 19.8-16.2 35.9-36 35.9zm179.9 0c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9a36.08 36.08 0 01-36 35.9z"}}]},name:"wechat",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},75846:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-44.4 672C353.1 736 236 680.4 236 588.9c0-47.8 30.2-103.1 82.3-155.3 69.5-69.6 150.6-101.4 181.1-70.8 13.5 13.5 14.8 36.8 6.1 64.6-4.5 14 13.1 6.3 13.1 6.3 56.2-23.6 105.2-25 123.1.7 9.6 13.7 8.6 32.8-.2 55.1-4.1 10.2 1.3 11.8 9 14.1 31.7 9.8 66.9 33.6 66.9 75.5.2 69.5-99.7 156.9-249.8 156.9zm207.3-290.8a34.9 34.9 0 00-7.2-34.1 34.68 34.68 0 00-33.1-10.7 18.24 18.24 0 01-7.6-35.7c24.1-5.1 50.1 2.3 67.7 21.9 17.7 19.6 22.4 46.3 14.9 69.8a18.13 18.13 0 01-22.9 11.7 18.18 18.18 0 01-11.8-22.9zm106 34.3s0 .1 0 0a21.1 21.1 0 01-26.6 13.7 21.19 21.19 0 01-13.6-26.7c11-34.2 4-73.2-21.7-101.8a104.04 104.04 0 00-98.9-32.1 21.14 21.14 0 01-25.1-16.3 21.07 21.07 0 0116.2-25.1c49.4-10.5 102.8 4.8 139.1 45.1 36.3 40.2 46.1 95.1 30.6 143.2zm-334.5 6.1c-91.4 9-160.7 65.1-154.7 125.2 5.9 60.1 84.8 101.5 176.2 92.5 91.4-9.1 160.7-65.1 154.7-125.3-5.9-60.1-84.8-101.5-176.2-92.4zm80.2 141.7c-18.7 42.3-72.3 64.8-117.8 50.1-43.9-14.2-62.5-57.7-43.3-96.8 18.9-38.4 68-60.1 111.5-48.8 45 11.7 68 54.2 49.6 95.5zm-93-32.2c-14.2-5.9-32.4.2-41.2 13.9-8.8 13.8-4.7 30.2 9.3 36.6 14.3 6.5 33.2.3 42-13.8 8.8-14.3 4.2-30.6-10.1-36.7zm34.9-14.5c-5.4-2.2-12.2.5-15.4 5.8-3.1 5.4-1.4 11.5 4.1 13.8 5.5 2.3 12.6-.3 15.8-5.8 3-5.6 1-11.8-4.5-13.8z"}}]},name:"weibo-circle",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},790:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M457.3 543c-68.1-17.7-145 16.2-174.6 76.2-30.1 61.2-1 129.1 67.8 151.3 71.2 23 155.2-12.2 184.4-78.3 28.7-64.6-7.2-131-77.6-149.2zm-52 156.2c-13.8 22.1-43.5 31.7-65.8 21.6-22-10-28.5-35.7-14.6-57.2 13.7-21.4 42.3-31 64.4-21.7 22.4 9.5 29.6 35 16 57.3zm45.5-58.5c-5 8.6-16.1 12.7-24.7 9.1-8.5-3.5-11.2-13.1-6.4-21.5 5-8.4 15.6-12.4 24.1-9.1 8.7 3.2 11.8 12.9 7 21.5zm334.5-197.2c15 4.8 31-3.4 35.9-18.3 11.8-36.6 4.4-78.4-23.2-109a111.39 111.39 0 00-106-34.3 28.45 28.45 0 00-21.9 33.8 28.39 28.39 0 0033.8 21.8c18.4-3.9 38.3 1.8 51.9 16.7a54.2 54.2 0 0111.3 53.3 28.45 28.45 0 0018.2 36zm99.8-206c-56.7-62.9-140.4-86.9-217.7-70.5a32.98 32.98 0 00-25.4 39.3 33.12 33.12 0 0039.3 25.5c55-11.7 114.4 5.4 154.8 50.1 40.3 44.7 51.2 105.7 34 159.1-5.6 17.4 3.9 36 21.3 41.7 17.4 5.6 36-3.9 41.6-21.2v-.1c24.1-75.4 8.9-161.1-47.9-223.9zM729 499c-12.2-3.6-20.5-6.1-14.1-22.1 13.8-34.7 15.2-64.7.3-86-28-40.1-104.8-37.9-192.8-1.1 0 0-27.6 12.1-20.6-9.8 13.5-43.5 11.5-79.9-9.6-101-47.7-47.8-174.6 1.8-283.5 110.6C127.3 471.1 80 557.5 80 632.2 80 775.1 263.2 862 442.5 862c235 0 391.3-136.5 391.3-245 0-65.5-55.2-102.6-104.8-118zM443 810.8c-143 14.1-266.5-50.5-275.8-144.5-9.3-93.9 99.2-181.5 242.2-195.6 143-14.2 266.5 50.5 275.8 144.4C694.4 709 586 796.6 443 810.8z"}}]},name:"weibo",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},90580:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M433.6 595.1c-14.2-5.9-32.4.2-41.2 13.9-8.8 13.8-4.7 30.2 9.3 36.6 14.3 6.5 33.2.3 42-13.8 8.8-14.3 4.2-30.6-10.1-36.7zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM467.6 736C353.1 736 236 680.4 236 588.9c0-47.8 30.2-103.1 82.3-155.3 69.5-69.6 150.6-101.4 181.1-70.8 13.5 13.5 14.8 36.8 6.1 64.6-4.5 14 13.1 6.3 13.1 6.3 56.2-23.6 105.2-25 123.1.7 9.6 13.7 8.6 32.8-.2 55.1-4.1 10.2 1.3 11.8 9 14.1 31.7 9.8 66.9 33.6 66.9 75.5.2 69.5-99.7 156.9-249.8 156.9zm207.3-290.8a34.9 34.9 0 00-7.2-34.1 34.68 34.68 0 00-33.1-10.7 18.24 18.24 0 01-7.6-35.7c24.1-5.1 50.1 2.3 67.7 21.9 17.7 19.6 22.4 46.3 14.9 69.8a18.13 18.13 0 01-22.9 11.7 18.18 18.18 0 01-11.8-22.9zm106 34.3s0 .1 0 0a21.1 21.1 0 01-26.6 13.7 21.19 21.19 0 01-13.6-26.7c11-34.2 4-73.2-21.7-101.8a104.04 104.04 0 00-98.9-32.1 21.14 21.14 0 01-25.1-16.3 21.07 21.07 0 0116.2-25.1c49.4-10.5 102.8 4.8 139.1 45.1 36.3 40.2 46.1 95.1 30.6 143.2zm-334.5 6.1c-91.4 9-160.7 65.1-154.7 125.2 5.9 60.1 84.8 101.5 176.2 92.5 91.4-9.1 160.7-65.1 154.7-125.3-5.9-60.1-84.8-101.5-176.2-92.4zm80.2 141.7c-18.7 42.3-72.3 64.8-117.8 50.1-43.9-14.2-62.5-57.7-43.3-96.8 18.9-38.4 68-60.1 111.5-48.8 45 11.7 68 54.2 49.6 95.5zm-58.1-46.7c-5.4-2.2-12.2.5-15.4 5.8-3.1 5.4-1.4 11.5 4.1 13.8 5.5 2.3 12.6-.3 15.8-5.8 3-5.6 1-11.8-4.5-13.8z"}}]},name:"weibo-square",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},2266:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M120.1 770.6L443 823.2V543.8H120.1v226.8zm63.4-163.5h196.2v141.6l-196.2-31.9V607.1zm340.3 226.5l382 62.2v-352h-382v289.8zm63.4-226.5h255.3v214.4l-255.3-41.6V607.1zm-63.4-415.7v288.8h382V128.1l-382 63.3zm318.7 225.5H587.3V245l255.3-42.3v214.2zm-722.4 63.3H443V201.9l-322.9 53.5v224.8zM183.5 309l196.2-32.5v140.4H183.5V309z"}}]},name:"windows",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},76517:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M960 509.2c0-2.2 0-4.7-.1-7.6-.1-8.1-.3-17.2-.5-26.9-.8-27.9-2.2-55.7-4.4-81.9-3-36.1-7.4-66.2-13.4-88.8a139.52 139.52 0 00-98.3-98.5c-28.3-7.6-83.7-12.3-161.7-15.2-37.1-1.4-76.8-2.3-116.5-2.8-13.9-.2-26.8-.3-38.4-.4h-29.4c-11.6.1-24.5.2-38.4.4-39.7.5-79.4 1.4-116.5 2.8-78 3-133.5 7.7-161.7 15.2A139.35 139.35 0 0082.4 304C76.3 326.6 72 356.7 69 392.8c-2.2 26.2-3.6 54-4.4 81.9-.3 9.7-.4 18.8-.5 26.9 0 2.9-.1 5.4-.1 7.6v5.6c0 2.2 0 4.7.1 7.6.1 8.1.3 17.2.5 26.9.8 27.9 2.2 55.7 4.4 81.9 3 36.1 7.4 66.2 13.4 88.8 12.8 47.9 50.4 85.7 98.3 98.5 28.2 7.6 83.7 12.3 161.7 15.2 37.1 1.4 76.8 2.3 116.5 2.8 13.9.2 26.8.3 38.4.4h29.4c11.6-.1 24.5-.2 38.4-.4 39.7-.5 79.4-1.4 116.5-2.8 78-3 133.5-7.7 161.7-15.2 47.9-12.8 85.5-50.5 98.3-98.5 6.1-22.6 10.4-52.7 13.4-88.8 2.2-26.2 3.6-54 4.4-81.9.3-9.7.4-18.8.5-26.9 0-2.9.1-5.4.1-7.6v-5.6zm-72 5.2c0 2.1 0 4.4-.1 7.1-.1 7.8-.3 16.4-.5 25.7-.7 26.6-2.1 53.2-4.2 77.9-2.7 32.2-6.5 58.6-11.2 76.3-6.2 23.1-24.4 41.4-47.4 47.5-21 5.6-73.9 10.1-145.8 12.8-36.4 1.4-75.6 2.3-114.7 2.8-13.7.2-26.4.3-37.8.3h-28.6l-37.8-.3c-39.1-.5-78.2-1.4-114.7-2.8-71.9-2.8-124.9-7.2-145.8-12.8-23-6.2-41.2-24.4-47.4-47.5-4.7-17.7-8.5-44.1-11.2-76.3-2.1-24.7-3.4-51.3-4.2-77.9-.3-9.3-.4-18-.5-25.7 0-2.7-.1-5.1-.1-7.1v-4.8c0-2.1 0-4.4.1-7.1.1-7.8.3-16.4.5-25.7.7-26.6 2.1-53.2 4.2-77.9 2.7-32.2 6.5-58.6 11.2-76.3 6.2-23.1 24.4-41.4 47.4-47.5 21-5.6 73.9-10.1 145.8-12.8 36.4-1.4 75.6-2.3 114.7-2.8 13.7-.2 26.4-.3 37.8-.3h28.6l37.8.3c39.1.5 78.2 1.4 114.7 2.8 71.9 2.8 124.9 7.2 145.8 12.8 23 6.2 41.2 24.4 47.4 47.5 4.7 17.7 8.5 44.1 11.2 76.3 2.1 24.7 3.4 51.3 4.2 77.9.3 9.3.4 18 .5 25.7 0 2.7.1 5.1.1 7.1v4.8zM423 646l232-135-232-133z"}}]},name:"youtube",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},41546:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M564.7 230.1V803h60l25.2 71.4L756.3 803h131.5V230.1H564.7zm247.7 497h-59.9l-75.1 50.4-17.8-50.4h-18V308.3h170.7v418.8zM526.1 486.9H393.3c2.1-44.9 4.3-104.3 6.6-172.9h130.9l-.1-8.1c0-.6-.2-14.7-2.3-29.1-2.1-15-6.6-34.9-21-34.9H287.8c4.4-20.6 15.7-69.7 29.4-93.8l6.4-11.2-12.9-.7c-.8 0-19.6-.9-41.4 10.6-35.7 19-51.7 56.4-58.7 84.4-18.4 73.1-44.6 123.9-55.7 145.6-3.3 6.4-5.3 10.2-6.2 12.8-1.8 4.9-.8 9.8 2.8 13 10.5 9.5 38.2-2.9 38.5-3 .6-.3 1.3-.6 2.2-1 13.9-6.3 55.1-25 69.8-84.5h56.7c.7 32.2 3.1 138.4 2.9 172.9h-141l-2.1 1.5c-23.1 16.9-30.5 63.2-30.8 65.2l-1.4 9.2h167c-12.3 78.3-26.5 113.4-34 127.4-3.7 7-7.3 14-10.7 20.8-21.3 42.2-43.4 85.8-126.3 153.6-3.6 2.8-7 8-4.8 13.7 2.4 6.3 9.3 9.1 24.6 9.1 5.4 0 11.8-.3 19.4-1 49.9-4.4 100.8-18 135.1-87.6 17-35.1 31.7-71.7 43.9-108.9L497 850l5-12c.8-1.9 19-46.3 5.1-95.9l-.5-1.8-108.1-123-22 16.6c6.4-26.1 10.6-49.9 12.5-71.1h158.7v-8c0-40.1-18.5-63.9-19.2-64.9l-2.4-3z"}}]},name:"zhihu",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},59445:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},47826:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(58168),i=n(96540);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"};var a=n(87064),s=function(t,e){return i.createElement(a.A,(0,r.A)({},t,{ref:e,icon:o}))};const u=i.forwardRef(s)},10168:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(t,e){var n=t.nodes,r=t.edges,i=[],o={};if(!n)throw new Error("invalid nodes data!");return n&&n.forEach((function(t,e){o[t.id]=e;i.push([])})),r&&r.forEach((function(t){var n=t.source,r=t.target,a=o[n],s=o[r];!a&&0!==a||!s&&0!==s||(i[a][s]=1,e||(i[s][a]=1))})),i};e.default=n},87302:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"GADDIAsync",{enumerable:!0,get:function(){return r.GADDIAsync}}),Object.defineProperty(e,"connectedComponentAsync",{enumerable:!0,get:function(){return r.connectedComponentAsync}}),e.default=void 0,Object.defineProperty(e,"detectAllCyclesAsync",{enumerable:!0,get:function(){return r.detectAllCyclesAsync}}),Object.defineProperty(e,"detectAllDirectedCycleAsync",{enumerable:!0,get:function(){return r.detectAllDirectedCycleAsync}}),Object.defineProperty(e,"detectAllUndirectedCycleAsync",{enumerable:!0,get:function(){return r.detectAllUndirectedCycleAsync}}),Object.defineProperty(e,"detectCycleAsync",{enumerable:!0,get:function(){return r.detectCycleAsync}}),e.detectDirectedCycleAsync=void 0,Object.defineProperty(e,"dijkstraAsync",{enumerable:!0,get:function(){return r.dijkstraAsync}}),Object.defineProperty(e,"findAllPathAsync",{enumerable:!0,get:function(){return r.findAllPathAsync}}),Object.defineProperty(e,"findShortestPathAsync",{enumerable:!0,get:function(){return r.findShortestPathAsync}}),Object.defineProperty(e,"floydWarshallAsync",{enumerable:!0,get:function(){return r.floydWarshallAsync}}),Object.defineProperty(e,"getAdjMatrixAsync",{enumerable:!0,get:function(){return r.getAdjMatrixAsync}}),Object.defineProperty(e,"getDegreeAsync",{enumerable:!0,get:function(){return r.getDegreeAsync}}),Object.defineProperty(e,"getInDegreeAsync",{enumerable:!0,get:function(){return r.getInDegreeAsync}}),Object.defineProperty(e,"getNeighborsAsync",{enumerable:!0,get:function(){return r.getNeighborsAsync}}),Object.defineProperty(e,"getOutDegreeAsync",{enumerable:!0,get:function(){return r.getOutDegreeAsync}}),Object.defineProperty(e,"labelPropagationAsync",{enumerable:!0,get:function(){return r.labelPropagationAsync}}),Object.defineProperty(e,"louvainAsync",{enumerable:!0,get:function(){return r.louvainAsync}}),Object.defineProperty(e,"minimumSpanningTreeAsync",{enumerable:!0,get:function(){return r.minimumSpanningTreeAsync}}),Object.defineProperty(e,"pageRankAsync",{enumerable:!0,get:function(){return r.pageRankAsync}});var r=n(37436),i=r.detectCycleAsync;e.detectDirectedCycleAsync=i;var o={getAdjMatrixAsync:r.getAdjMatrixAsync,connectedComponentAsync:r.connectedComponentAsync,getDegreeAsync:r.getDegreeAsync,getInDegreeAsync:r.getInDegreeAsync,getOutDegreeAsync:r.getOutDegreeAsync,detectCycleAsync:r.detectCycleAsync,detectDirectedCycleAsync:i,detectAllCyclesAsync:r.detectAllCyclesAsync,detectAllDirectedCycleAsync:r.detectAllDirectedCycleAsync,detectAllUndirectedCycleAsync:r.detectAllUndirectedCycleAsync,dijkstraAsync:r.dijkstraAsync,findAllPathAsync:r.findAllPathAsync,findShortestPathAsync:r.findShortestPathAsync,floydWarshallAsync:r.floydWarshallAsync,labelPropagationAsync:r.labelPropagationAsync,louvainAsync:r.louvainAsync,minimumSpanningTreeAsync:r.minimumSpanningTreeAsync,pageRankAsync:r.pageRankAsync,getNeighborsAsync:r.getNeighborsAsync,GADDIAsync:r.GADDIAsync};e.default=o},48441:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,i=(r=n(52014))&&r.__esModule?r:{default:r},o=n(34170);var a=function(t,e,n,r){void 0===r&&(r=!0);var a=function(t){void 0===t&&(t={});var e,n=t,r=function(){},i=(e={},function(t){var n=t.next;return!e[n]&&(e[n]=!0,!0)});return n.allowTraversal=t.allowTraversal||i,n.enter=t.enter||r,n.leave=t.leave||r,n}(n),s=new i.default,u=t.edges,l=void 0===u?[]:u;s.enqueue(e);for(var c="",h=function(){var t=s.dequeue();a.enter({current:t,previous:c}),(0,o.getNeighbors)(t,l,r?"target":void 0).forEach((function(e){a.allowTraversal({previous:c,current:t,next:e})&&s.enqueue(e)})),a.leave({current:t,previous:c}),c=t};!s.isEmpty();)h()};e.default=a},6277:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return e?o(t):i(t)},e.detectStrongConnectComponents=e.detectConnectedComponents=void 0;var r=n(34170),i=function(t){for(var e=t.nodes,n=void 0===e?[]:e,i=t.edges,o=void 0===i?[]:i,a=[],s={},u=[],l=function t(e){u.push(e),s[e.id]=!0;for(var i=(0,r.getNeighbors)(e.id,o),a=function(e){var r=i[e];if(!s[r]){var o=n.filter((function(t){return t.id===r}));o.length>0&&t(o[0])}},l=0;l0;)d.push(u.pop());a.push(d)}}return a};e.detectConnectedComponents=i;var o=function(t){for(var e=t.nodes,n=void 0===e?[]:e,i=t.edges,o=void 0===i?[]:i,a=[],s={},u={},l={},c=[],h=0,d=function t(e){u[e.id]=h,l[e.id]=h,h+=1,a.push(e),s[e.id]=!0;for(var i=(0,r.getNeighbors)(e.id,o,"target").filter((function(t){return n.map((function(t){return t.id})).indexOf(t)>-1})),d=function(r){var o=i[r];if(u[o]||0===u[o])s[o]&&(l[e.id]=Math.min(l[e.id],u[o]));else{var a=n.filter((function(t){return t.id===o}));a.length>0&&t(a[0]),l[e.id]=Math.min(l[e.id],l[o])}},f=0;f0;){var m=a.pop();if(s[m.id]=!1,p.push(m),m===e)break}p.length>0&&c.push(p)}},f=0,p=n;f{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.secondReg=e.dateReg=void 0;e.secondReg=/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/;e.dateReg=/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})$/},42378:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getOutDegree=e.getInDegree=e.default=void 0;var n=function(t){var e={},n=t.nodes,r=void 0===n?[]:n,i=t.edges,o=void 0===i?[]:i;return r.forEach((function(t){e[t.id]={degree:0,inDegree:0,outDegree:0}})),o.forEach((function(t){e[t.source].degree++,e[t.source].outDegree++,e[t.target].degree++,e[t.target].inDegree++})),e},r=n;e.default=r;e.getInDegree=function(t,e){return n(t)[e]?n(t)[e].inDegree:0};e.getOutDegree=function(t,e){return n(t)[e]?n(t)[e].outDegree:0}},91042:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.detectAllUndirectedCycle=e.detectAllDirectedCycle=e.detectAllCycles=e.default=void 0;var i,o=(i=n(50115))&&i.__esModule?i:{default:i},a=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=u(e);if(n&&n.has(t))return n.get(t);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var s=o?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(i,a,s):i[a]=t[a]}i.default=t,n&&n.set(t,i);return i}(n(6277)),s=n(34170);function u(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(u=function(t){return t?n:e})(t)}var l=function(t,e,n){var r,i;void 0===n&&(n=!0);for(var o=[],u=0,l=(0,a.default)(t,!1);u0;)for(var g=f.pop(),v=g.id,y=(0,s.getNeighbors)(v,t.edges),b=function(r){var i,a=y[r],s=t.nodes.find((function(t){return t.id===a}));if(a===v)o.push(((i={})[a]=g,i));else if(a in m){if(!m[v].has(s)){for(var u=!0,l=[s,g],c=p[v];m[a].size&&!m[a].has(c)&&(l.push(c),c!==p[c.id]);)c=p[c.id];if(l.push(c),e&&n?(u=!1,l.findIndex((function(t){return e.indexOf(t.id)>-1}))>-1&&(u=!0)):e&&!n&&l.findIndex((function(t){return e.indexOf(t.id)>-1}))>-1&&(u=!1),u){for(var h={},d=1;d-1)return h;r.push(a),i.add(a);for(var d=c[a.id],f=0;f0;){var n=e.pop();i.has(n)&&(i.delete(n),o[n.id].forEach((function(t){e.push(t)})),o[n.id].clear())}}(a);else for(f=0;f-1}));v-1?m[g.id].push(c[b]):u.push(((i={})[g.id]=g,i))}}return{component:p,adjList:m,minIdx:a}},b=0;b=b})),w=(0,a.detectStrongConnectComponents)({nodes:x,edges:t.edges}).filter((function(t){return t.length>1}));if(0===w.length)break;var _=y(w),S=_.minIdx,E=_.adjList,A=_.component;if(!(A.length>1))break;A.forEach((function(t){o[t.id]=new Set}));var M=l[S];if(e&&n&&-1===e.indexOf(M.id))return u;h(M,M,E),b=S+1}return u};e.detectAllDirectedCycle=c;e.detectAllCycles=function(t,e,n,r){return void 0===r&&(r=!0),e?c(t,n,r):l(t,n,r)};var h=function(t){var e=null,n=t.nodes,r={},i={},a={},s={};(void 0===n?[]:n).forEach((function(t){i[t.id]=t}));for(var u={enter:function(t){var n=t.current,o=t.previous;if(a[n]){e={};for(var s=n,u=o;u!==n;)e[s]=u,s=u,u=r[u];e[s]=u}else a[n]=n,delete i[n],r[n]=o},leave:function(t){var e=t.current;s[e]=e,delete a[e]},allowTraversal:function(t){var n=t.next;return!e&&!s[n]}};Object.keys(i).length;){var l=Object.keys(i)[0];(0,o.default)(t,l,u)}return e};e.default=h},50115:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r){void 0===r&&(r=!0);i(t,e,"",function(t){void 0===t&&(t={});var e=t,n=function(){},r=(i={},function(t){var e=t.next;return!i[e]&&(i[e]=!0,!0)});var i;return e.allowTraversal=t.allowTraversal||r,e.enter=t.enter||n,e.leave=t.leave||n,e}(n),r)};var r=n(34170);function i(t,e,n,o,a){void 0===a&&(a=!0),o.enter({current:e,previous:n});var s=t.edges,u=void 0===s?[]:s;(0,r.getNeighbors)(e,u,a?"target":void 0).forEach((function(r){o.allowTraversal({previous:n,current:e,next:r})&&i(t,r,e,o,a)})),o.leave({current:e,previous:n})}},7304:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(31635),i=n(24425),o=n(34170),a=function(t,e,n,r){var i=t.nodes,a=void 0===i?[]:i,u=t.edges,l=void 0===u?[]:u,c=[],h={},d={},f={};a.forEach((function(t,n){var r=t.id;c.push(r),d[r]=1/0,r===e&&(d[r]=0)}));for(var p=a.length,m=function(t){var e=function(t,e,n){for(var r,i=1/0,o=0;od[e.id]+s?(d[a]=d[e.id]+s,f[a]=[e.id]):d[a]===d[e.id]+s&&f[a].push(e.id)}))},g=0;g{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.findShortestPath=e.findAllPath=void 0;var r,i=(r=n(7304))&&r.__esModule?r:{default:r},o=n(34170);e.findShortestPath=function(t,e,n,r,o){var a=(0,i.default)(t,e,r,o),s=a.length,u=a.path,l=a.allPath;return{length:s[n],path:u[n],allPath:l[n]}};e.findAllPath=function(t,e,n,r){var i;if(e===n)return[[e]];var a=t.edges,s=void 0===a?[]:a,u=[e],l=((i={})[e]=!0,i),c=[],h=[],d=r?(0,o.getNeighbors)(e,s,"target"):(0,o.getNeighbors)(e,s);for(c.push(d);u.length>0&&c.length>0;){var f=c[c.length-1];if(f.length){var p=f.shift();if(p&&(u.push(p),l[p]=!0,d=r?(0,o.getNeighbors)(p,s,"target"):(0,o.getNeighbors)(p,s),c.push(d.filter((function(t){return!l[t]})))),u[u.length-1]===n){var m=u.map((function(t){return t}));h.push(m);g=u.pop();l[g]=!1,c.pop()}}else{var g=u.pop();l[g]=!1,c.pop()}}return h}},91510:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,i=(r=n(10168))&&r.__esModule?r:{default:r};var o=function(t,e){for(var n=(0,i.default)(t,e),r=[],o=n.length,a=0;ar[a][u]+r[u][s]&&(r[a][s]=r[a][u]+r[u][s]);return r};e.default=o},69611:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(24425),i=n(42541),o=function(){function t(t,e,n,r,o){this.fromNode=t,this.toNode=e,this.nodeEdgeNodeLabel={nodeLabel1:n||i.VACANT_NODE_LABEL,edgeLabel:r||i.VACANT_EDGE_LABEL,nodeLabel2:o||i.VACANT_NODE_LABEL}}return t.prototype.equalTo=function(t){return this.fromNode===t.formNode&&this.toNode===t.toNode&&this.nodeEdgeNodeLabel===t.nodeEdgeNodeLabel},t.prototype.notEqualTo=function(t){return!this.equalTo(t)},t}(),a=function(){function t(){this.rmpath=[],this.dfsEdgeList=[]}return t.prototype.equalTo=function(t){var e=this.dfsEdgeList.length;if(e!==t.length)return!1;for(var n=0;n=0;e--){var n=this.dfsEdgeList[e],r=n.fromNode,i=n.toNode;rh||r.hasNode(o[c.to])||(e.labelv;b--){if("break"===y(b))break}if(m){var x=t.findMinLabel(p);l.dfsEdgeList.push(new o(f,g,i.VACANT_NODE_LABEL,x.edgeLabel,i.VACANT_NODE_LABEL));var w=l.dfsEdgeList.length-1;return t.dfsCode.dfsEdgeList[w]===l.dfsEdgeList[w]&&a(p[x.edgeLabel].projected)}var _={};m=!1;var S=0;c.forEach((function(e){var n=new s(e),i=t.findForwardPureEdges(r,n.edges[h[0]],d,n);i.length>0&&(m=!0,S=f,i.forEach((function(t){var n="".concat(t.label,"-").concat(u[t.to].label);_[n]||(_[n]={projected:[],edgeLabel:t.label,nodeLabel2:u[t.to].label}),_[n].projected.push({graphId:r.id,edge:t,preNode:e})})))}));var E=h.length,A=function(e){if(m)return"break";var n=h[e];c.forEach((function(e){var i=new s(e),o=t.findForwardRmpathEdges(r,i.edges[n],d,i);o.length>0&&(m=!0,S=l.dfsEdgeList[n].fromNode,o.forEach((function(t){var n="".concat(t.label,"-").concat(u[t.to].label);_[n]||(_[n]={projected:[],edgeLabel:t.label,nodeLabel2:u[t.to].label}),_[n].projected.push({graphId:r.id,edge:t,preNode:e})})))}))};for(b=0;b=0;d--){var f=e.findBackwardEdge(i,h.edges[r[d]],h.edges[r[0]],h);if(f){var p="".concat(e.dfsCode.dfsEdgeList[r[d]].fromNode,"-").concat(f.label);c[p]||(c[p]={projected:[],toNodeId:e.dfsCode.dfsEdgeList[r[d]].fromNode,edgeLabel:f.label}),c[p].projected.push({graphId:t.graphId,edge:f,preNode:t})}}if(!(n>=e.maxNodeNum)){e.findForwardPureEdges(i,h.edges[r[0]],u,h).forEach((function(e){var n="".concat(a,"-").concat(e.label,"-").concat(o[e.to].label);l[n]||(l[n]={projected:[],fromNodeId:a,edgeLabel:e.label,nodeLabel2:o[e.to].label}),l[n].projected.push({graphId:t.graphId,edge:e,preNode:t})}));var m=function(n){e.findForwardRmpathEdges(i,h.edges[r[n]],u,h).forEach((function(i){var a="".concat(e.dfsCode.dfsEdgeList[r[n]].fromNode,"-").concat(i.label,"-").concat(o[i.to].label);l[a]||(l[a]={projected:[],fromNodeId:e.dfsCode.dfsEdgeList[r[n]].fromNode,edgeLabel:i.label,nodeLabel2:o[i.to].label}),l[a].projected.push({graphId:t.graphId,edge:i,preNode:t})}))};for(d=0;di){var a=i;i=r,r=a}var c=t.label,h="".concat(n,"-").concat(r,"-").concat(c,"-").concat(i),d="".concat(r,"-").concat(c,"-").concat(i);if(!o[d]){var f=o[d]||0;f++,o[d]=f}s[h]={graphId:n,nodeLabel1:r,edgeLabel:c,nodeLabel2:i}}))}))})),Object.keys(i).forEach((function(t){if(!(i[t]{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VACANT_NODE_LABEL=e.VACANT_NODE_ID=e.VACANT_GRAPH_ID=e.VACANT_EDGE_LABEL=e.VACANT_EDGE_ID=e.Node=e.Graph=e.Edge=e.AUTO_EDGE_ID=void 0;e.VACANT_EDGE_ID=-1;e.VACANT_NODE_ID=-1;e.VACANT_EDGE_LABEL="-1";e.VACANT_NODE_LABEL="-1";e.VACANT_GRAPH_ID=-1;e.AUTO_EDGE_ID="-1";var n=function(t,e,n,r){void 0===t&&(t=-1),void 0===e&&(e=-1),void 0===n&&(n=-1),void 0===r&&(r="-1"),this.id=t,this.from=e,this.to=n,this.label=r};e.Edge=n;var r=function(){function t(t,e){void 0===t&&(t=-1),void 0===e&&(e="-1"),this.id=t,this.label=e,this.edges=[],this.edgeMap={}}return t.prototype.addEdge=function(t){this.edges.push(t),this.edgeMap[t.id]=t},t}();e.Node=r;var i=function(){function t(t,e,n){void 0===t&&(t=-1),void 0===e&&(e=!0),void 0===n&&(n=!1),this.id=t,this.edgeIdAutoIncrease=e,this.edges=[],this.nodes=[],this.nodeMap={},this.edgeMap={},this.nodeLabelMap={},this.edgeLabelMap={},this.counter=0,this.directed=n}return t.prototype.getNodeNum=function(){return this.nodes.length},t.prototype.addNode=function(t,e){if(!this.nodeMap[t]){var n=new r(t,e);this.nodes.push(n),this.nodeMap[t]=n,this.nodeLabelMap[e]||(this.nodeLabelMap[e]=[]),this.nodeLabelMap[e].push(t)}},t.prototype.addEdge=function(t,e,r,i){if((this.edgeIdAutoIncrease||void 0===t)&&(t=this.counter++),!(this.nodeMap[e]&&this.nodeMap[r]&&this.nodeMap[r].edgeMap[t])){var o=new n(t,e,r,i);if(this.edges.push(o),this.edgeMap[t]=o,this.nodeMap[e].addEdge(o),this.edgeLabelMap[i]||(this.edgeLabelMap[i]=[]),this.edgeLabelMap[i].push(o),!this.directed){var a=new n(t,r,e,i);this.nodeMap[r].addEdge(a),this.edgeLabelMap[i].push(a)}}},t}();e.Graph=i},51147:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(31635),i=u(n(91510)),o=u(n(69611)),a=u(n(7304)),s=n(34170);function u(t){return t&&t.__esModule?t:{default:t}}var l=function(t,e,n,r){void 0===n&&(n="cluster"),void 0===r&&(r=2);var i=[],o=t.nodes;return e.forEach((function(t,e){i.push(c(o,t,e,n,r))})),i},c=function(t,e,n,r,i){var o=[n],a=[],s={};return e.forEach((function(e,u){if(e<=i&&n!==u){o.push(u),a.push(t[u]);var l=t[u][r];s[l]?(s[l].count++,s[l].dists.push(e)):s[l]={count:1,dists:[e]}}})),Object.keys(s).forEach((function(t){s[t].dists=s[t].dists.sort((function(t,e){return t-e}))})),{nodeIdx:n,nodeId:t[n].id,nodeIdxs:o,neighbors:a,neighborNum:o.length-1,nodeLabelCountMap:s}},h=function(t,e,n,r){var i=n.nodes;return r||(r={}),Object.keys(t).forEach((function(o){var a,s;if(!r||!r[o]){r[o]={nodes:[],edges:[]};var u=t[o],l=null===(a=e[u.start])||void 0===a?void 0:a.nodeIdxs,c=null===(s=e[u.end])||void 0===s?void 0:s.nodeIdxs;if(l&&c){var h=new Set(c),d=l.filter((function(t){return h.has(t)}));if(d&&d.length){for(var f={},p=d.length,m=0;me&&(s=e);var r=n[t.id].inDegree;u>r&&(u=r);var i=n[t.id].outDegree;l>i&&(l=i)})),t[e]={degree:s,inDegree:u,outDegree:l}),{minPatternNodeLabelDegree:s,minPatternNodeLabelInDegree:u,minPatternNodeLabelOutDegree:l}},y=function(t,e,n,s,u,y,b){var x;if(void 0===n&&(n=!1),void 0===y&&(y="cluster"),void 0===b&&(b="cluster"),t&&t.nodes){var w=t.nodes.length;if(w){var _=(0,i.default)(t,n),S=(0,i.default)(e,n),E=m(t.nodes,_,n),A=m(e.nodes,S,n),M=f(t.nodes,y),C=M.nodeMap,T=M.nodeLabelMap,k=f(e.nodes,y),I=k.nodeMap,N=k.nodeLabelMap;p(t.edges,b,C);var P=p(e.edges,b,I).edgeLabelMap,O=[];null==S||S.forEach((function(t){O=O.concat(t)})),u||(u=Math.max.apply(Math,(0,r.__spreadArray)((0,r.__spreadArray)([],O,!1),[2],!1))),s||(s=u);var L=l(t,_,y,s),R=l(e,S,y,s),D=function(t,e,n,r,i){var o=Math.ceil(n/e),a={},s=0;return r.forEach((function(t,r){for(var u=0,l=0,c=t.nodeIdxs,h=t.neighborNum-1;u2*e)););if(f<2*e&&(a["".concat(r,"-").concat(d)]={start:r,end:d,distance:i[r][d]},u++,++s>=n))return a;if(++l>2*e)break}uq&&(q=n.length,X=n,Y=e,W=t)}));var $={},K={},Z={},Q={},J={},tt={};Object.keys(N).forEach((function(r,i){J[r]=[],n&&(tt[r]=[]);var o=-1/0,a=N[r],s={};a.forEach((function(t){var e=A["".concat(W.id,"-").concat(t.id)];if(e&&J[r].push(e),oJ[r][l]){s=!0;break}if(s)return X.splice(e,1),"continue";var c={};i.neighbors.forEach((function(t){var e=E["".concat(n.id,"-").concat(t.id)];c["".concat(n.id,"-").concat(t.id)]={start:C[n.id].idx,end:C[t.id].idx,distance:e}})),z=h(c,L,t,z);var f=[];Object.keys(c).forEach((function(t){if(G[t])f.push(G[t]);else{var e=z[t];G[t]=d(e,H,y,b),f.push(G[t])}})),f=f.sort((function(t,e){return e-t}));var p=!1;for(l=0;l=0;c--)l(c)}));var et=[];null==X||X.forEach((function(r){for(var i=C[r.id].idx,o=c(t.nodes,_[i],i,y,u).neighbors,a=!1,s=o.length-1;s>=0;s--){if(o.length+1J[h][p])o.splice(s,1);else{if(n){var m="".concat(l.id,"-").concat(r.id),x=E[m];if(p=tt[h].length-1,x>tt[h][p]){o.splice(s,1);continue}}var w=G[d]?G[d]:g(t,r,l,C,f,L,H,y,b,G,z),S="".concat(W.id,"-").concat(h);if(w=0;f--){if("break"===x(f))break}if(g)return et.splice(r,1),"continue";i.edges=l;var w=(0,a.default)(i,i.nodes[0].id,!1).length;if(Object.keys(w).reverse().forEach((function(t){if(t!==i.nodes[0].id&&!g){if(w[t]===1/0){var e=u[t].node[y];if(s[e]--,s[e]rt[r][rt[r].length-1]){e=u[t].node[y];if(s[e]--,s[e]=0;E--){var A=i.nodes[E],M=u[A.id].degree,T=u[A.id].inDegree,k=u[A.id].outDegree,O=A[y],L=v($,O,I,N),R=L.minPatternNodeLabelDegree,D=L.minPatternNodeLabelInDegree,z=L.minPatternNodeLabelOutDegree;if(n?M=0;F--){var B=l[F];if(!u[B.source]||!u[B.target]){l.splice(F,1);var U=B[b];if(c[U]--,u[B.source]&&(u[B.source].degree--,u[B.source].outDegree--),u[B.target]&&(u[B.target].degree--,u[B.target].inDegree--),P[U]&&c[U]=0;ot--){if("break"===it(ot))break}var at=et.length,st=function(t){var e=et[t],n={};e.edges.forEach((function(t){var e="".concat(t.source,"-").concat(t.target,"-").concat(t.label);n[e]?n[e]++:n[e]=1}));for(var r=function(t){var e=et[t],r={};e.edges.forEach((function(t){var e="".concat(t.source,"-").concat(t.target,"-").concat(t.label);r[e]?r[e]++:r[e]=1}));var i=!0;Object.keys(r).length!==Object.keys(n).length?i=!1:Object.keys(n).forEach((function(t){r[t]!==n[t]&&(i=!1)})),i&&et.splice(t,1)},i=at-1;i>t;i--)r(i);at=et.length};for(ot=0;ot<=at-1;ot++)st(ot);return et}}};e.default=y},5321:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,i=(r=n(10168))&&r.__esModule?r:{default:r},o=n(34170);var a=function(t,e,n,r){void 0===e&&(e=!1),void 0===n&&(n="weight"),void 0===r&&(r=1e3);var a=t.nodes,s=void 0===a?[]:a,u=t.edges,l=void 0===u?[]:u,c={},h={};s.forEach((function(t,e){var n=(0,o.uniqueId)();t.clusterId=n,c[n]={id:n,nodes:[t]},h[t.id]={node:t,idx:e}}));var d=(0,i.default)(t,e),f=[],p={};d.forEach((function(t,e){var n=0,r=s[e].id;p[r]={},t.forEach((function(t,e){if(t){n+=t;var i=s[e].id;p[r][i]=t}})),f.push(n)}));for(var m=0,g=function(){var t=!1;if(s.forEach((function(e){var n={};Object.keys(p[e.id]).forEach((function(t){var r=p[e.id][t],i=h[t].node.clusterId;n[i]||(n[i]=0),n[i]+=r}));var r=-1/0,i=[];if(Object.keys(n).forEach((function(t){r=0&&i.splice(o,1),i&&i.length){t=!0;var a=c[e.clusterId],s=a.nodes.indexOf(e);a.nodes.splice(s,1);var u=Math.floor(Math.random()*i.length),l=c[i[u]];l.nodes.push(e),e.clusterId=l.id}}})),!t)return"break";m++};m{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(24425),i=u(n(10168)),o=u(n(16831)),a=n(7668),s=n(83767);function u(t){return t&&t.__esModule?t:{default:t}}var l=function(t,e,n,r){for(var i=e.length,o=2*r,a=0,s=0;s0&&k>I&&k-II&&(P=g.map((function(t){return{node:t,clusterId:t.clusterId}})),O=(0,r.clone)(S),I=k),L||N>100)break;N++,Object.keys(S).forEach((function(t){var e=0;y.forEach((function(r){var i=r.source,o=r.target,a=E[i].node.clusterId,s=E[o].node.clusterId;(a===t&&s!==t||s===t&&a!==t)&&(e+=r[n]||1)})),S[t].sumTot=e})),g.forEach((function(t,e){var r,i=S[t.clusterId],o=0,a=M[e]/(2*T),s=0,l=i.nodes;l.forEach((function(t){var n=E[t.id].idx;s+=A[e][n]||0}));var h=s-i.sumTot*a,d=l.filter((function(e){return e.id!==t.id})),f=[];d.forEach((function(t,e){f[e]=b[t.originIndex]}));var m=c(d,b)*p,g=C[t.id];if(Object.keys(g).forEach((function(n){var i=E[n].node.clusterId;if(i!==t.clusterId){var s=S[i],l=s.nodes;if(l&&l.length){var d=0;l.forEach((function(t){var n=E[t.id].idx;d+=A[e][n]||0}));var f=d-s.sumTot*a,g=l.concat([t]),v=[];g.forEach((function(t,e){v[e]=b[t.originIndex]}));var y=c(g,b)*p,x=f-h;u&&(x=f+y-(h+m)),x>o&&(o=x,r=s)}}})),o>0){r.nodes.push(t);var v=t.clusterId;t.clusterId=r.id;var x=i.nodes.indexOf(t);i.nodes.splice(x,1);var w=0,_=0;y.forEach((function(t){var e=t.source,i=t.target,o=E[e].node.clusterId,a=E[i].node.clusterId;(o===r.id&&a!==r.id||a===r.id&&o!==r.id)&&(w+=t[n]||1),(o===v&&a!==v||a===v&&o!==v)&&(_+=t[n]||1)})),r.sumTot=w,i.sumTot=_}}))}var R={},D=0;Object.keys(O).forEach((function(t){var e=O[t];if(e.nodes&&e.nodes.length){var n=String(D+1);n!==t&&(e.id=n,e.nodes=e.nodes.map((function(t){return{id:t.id,clusterId:n}})),O[n]=e,R[t]=n,delete O[t],D++)}else delete O[t]})),P.forEach((function(t){var e=t.node,n=t.clusterId;e&&(e.clusterId=n,e.clusterId&&R[e.clusterId]&&(e.clusterId=R[e.clusterId]))}));var z=[],F={};y.forEach((function(t){var e=t.source,r=t.target,i=t[n]||1,o=E[e].node.clusterId,a=E[r].node.clusterId;if(o&&a){var s="".concat(o,"---").concat(a);if(F[s])F[s].weight+=i,F[s].count++;else{var u={source:o,target:a,weight:i,count:1};F[s]=u,z.push(u)}}}));var B=[];return Object.keys(O).forEach((function(t){B.push(O[t])})),{clusters:B,clusterEdges:z}};e.default=h},65518:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=a(n(46212)),i=a(n(42215)),o=n(34170);function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t,e){var n=[],r=t.nodes,a=void 0===r?[]:r,s=t.edges,u=void 0===s?[]:s;if(0===a.length)return n;var l=a[0],c=new Set;c.add(l);var h=new i.default((function(t,n){return e?t.weight-n.weight:0}));for((0,o.getEdgesByNodeId)(l.id,u).forEach((function(t){h.insert(t)}));!h.isEmpty();){var d=h.delMin(),f=d.source,p=d.target;c.has(f)&&c.has(p)||(n.push(d),c.has(f)||(c.add(f),(0,o.getEdgesByNodeId)(f,u).forEach((function(t){h.insert(t)}))),c.has(p)||(c.add(p),(0,o.getEdgesByNodeId)(p,u).forEach((function(t){h.insert(t)}))))}return n},u=function(t,e){var n=[],i=t.nodes,o=void 0===i?[]:i,a=t.edges,s=void 0===a?[]:a;if(0===o.length)return n;var u=s.map((function(t){return t}));e&&u.sort((function(t,e){return t.weight-e.weight}));for(var l=new r.default(o.map((function(t){return t.id})));u.length>0;){var c=u.shift(),h=c.source,d=c.target;l.connected(h,d)||(n.push(c),l.union(h,d))}return n},l=function(t,e,n){return n?{prim:s,kruskal:u}[n](t,e):u(t,e)};e.default=l},20247:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,i=(r=n(42378))&&r.__esModule?r:{default:r},o=n(34170);var a=function(t,e,n){"number"!=typeof e&&(e=1e-6),"number"!=typeof n&&(n=.85);for(var r,a=1,s=0,u=1e3,l=t.nodes,c=void 0===l?[]:l,h=t.edges,d=void 0===h?[]:h,f=c.length,p={},m={},g=0;g0&&a>e;){s=0;for(g=0;g0&&(r+=m[w]/_)}p[y]=n*r,s+=p[y]}}s=(1-s)/f,a=0;for(g=0;g{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(t,e){return t-e},r=function(){function t(t){void 0===t&&(t=n),this.compareFn=t,this.list=[]}return t.prototype.getLeft=function(t){return 2*t+1},t.prototype.getRight=function(t){return 2*t+2},t.prototype.getParent=function(t){return 0===t?null:Math.floor((t-1)/2)},t.prototype.isEmpty=function(){return this.list.length<=0},t.prototype.top=function(){return this.isEmpty()?void 0:this.list[0]},t.prototype.delMin=function(){var t=this.top(),e=this.list.pop();return this.list.length>0&&(this.list[0]=e,this.moveDown(0)),t},t.prototype.insert=function(t){if(null!==t){this.list.push(t);var e=this.list.length-1;return this.moveUp(e),!0}return!1},t.prototype.moveUp=function(t){for(var e=this.getParent(t);t&&t>0&&this.compareFn(this.list[e],this.list[t])>0;){var n=this.list[e];this.list[e]=this.list[t],this.list[t]=n,t=e,e=this.getParent(t)}},t.prototype.moveDown=function(t){var e,n=t,r=this.getLeft(t),i=this.getRight(t),o=this.list.length;null!==r&&r0?n=r:null!==i&&i0&&(n=i),t!==n&&(e=[this.list[n],this.list[t]],this.list[t]=e[0],this.list[n]=e[1],this.moveDown(n))},t}();e.default=r},92041:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.LinkedListNode=void 0;var n=function(t,e){return t===e},r=function(){function t(t,e){void 0===e&&(e=null),this.value=t,this.next=e}return t.prototype.toString=function(t){return t?t(this.value):"".concat(this.value)},t}();e.LinkedListNode=r;var i=function(){function t(t){void 0===t&&(t=n),this.head=null,this.tail=null,this.compare=t}return t.prototype.prepend=function(t){var e=new r(t,this.head);return this.head=e,this.tail||(this.tail=e),this},t.prototype.append=function(t){var e=new r(t);return this.head?(this.tail.next=e,this.tail=e,this):(this.head=e,this.tail=e,this)},t.prototype.delete=function(t){if(!this.head)return null;for(var e=null;this.head&&this.compare(this.head.value,t);)e=this.head,this.head=this.head.next;var n=this.head;if(null!==n)for(;n.next;)this.compare(n.next.value,t)?(e=n.next,n.next=n.next.next):n=n.next;return this.compare(this.tail.value,t)&&(this.tail=n),e},t.prototype.find=function(t){var e=t.value,n=void 0===e?void 0:e,r=t.callback,i=void 0===r?void 0:r;if(!this.head)return null;for(var o=this.head;o;){if(i&&i(o.value))return o;if(void 0!==n&&this.compare(o.value,n))return o;o=o.next}return null},t.prototype.deleteTail=function(){var t=this.tail;if(this.head===this.tail)return this.head=null,this.tail=null,t;for(var e=this.head;e.next;)e.next.next?e=e.next:e.next=null;return this.tail=e,t},t.prototype.deleteHead=function(){if(!this.head)return null;var t=this.head;return this.head.next?this.head=this.head.next:(this.head=null,this.tail=null),t},t.prototype.fromArray=function(t){var e=this;return t.forEach((function(t){return e.append(t)})),this},t.prototype.toArray=function(){for(var t=[],e=this.head;e;)t.push(e),e=e.next;return t},t.prototype.reverse=function(){for(var t=this.head,e=null,n=null;t;)n=t.next,t.next=e,e=t,t=n;this.tail=this.head,this.head=e},t.prototype.toString=function(t){return void 0===t&&(t=void 0),this.toArray().map((function(e){return e.toString(t)})).toString()},t}();e.default=i},52014:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,i=(r=n(92041))&&r.__esModule?r:{default:r};var o=function(){function t(){this.linkedList=new i.default}return t.prototype.isEmpty=function(){return!this.linkedList.head},t.prototype.peek=function(){return this.linkedList.head?this.linkedList.head.value:null},t.prototype.enqueue=function(t){this.linkedList.append(t)},t.prototype.dequeue=function(){var t=this.linkedList.deleteHead();return t?t.value:null},t.prototype.toString=function(t){return this.linkedList.toString(t)},t}();e.default=o},46212:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(){function t(t){this.count=t.length,this.parent={};for(var e=0,n=t;e{"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.DistanceType=void 0,e.DistanceType=n,function(t){t.EuclideanDistance="euclideanDistance"}(n||(e.DistanceType=n={}))},34170:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.uniqueId=e.getOutEdgesNodeId=e.getNeighbors=e.getEdgesByNodeId=void 0;e.getNeighbors=function(t,e,n){void 0===e&&(e=[]);var r=e.filter((function(e){return e.source===t||e.target===t}));if("target"===n){return r.filter((function(e){return e.source===t})).map((function(t){return t.target}))}if("source"===n){return r.filter((function(e){return e.target===t})).map((function(t){return t.source}))}return r.map((function(e){return e.source===t?e.target:e.source}))};e.getOutEdgesNodeId=function(t,e){return e.filter((function(e){return e.source===t}))};e.getEdgesByNodeId=function(t,e){return e.filter((function(e){return e.source===t||e.target===t}))};e.uniqueId=function(t){void 0===t&&(t=0);var e="".concat(Math.random()).split(".")[1].substr(0,5),n="".concat(Math.random()).split(".")[1].substr(0,5);return"".concat(t,"-").concat(e).concat(n)}},83767:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.oneHot=e.getDistance=e.getAllKeyValueMap=e.default=void 0;var r,i=n(24425),o=n(6165),a=(r=n(16831))&&r.__esModule?r:{default:r};var s=function(t,e,n){var r=[];(null==e?void 0:e.length)?r=e:(t.forEach((function(t){r=r.concat(Object.keys(t))})),r=(0,i.uniq)(r));var o={};return r.forEach((function(e){var r=[];t.forEach((function(t){void 0!==t[e]&&""!==t[e]&&r.push(t[e])})),r.length&&!(null==n?void 0:n.includes(e))&&(o[e]=(0,i.uniq)(r))})),o};e.getAllKeyValueMap=s;var u=function(t,e,n){var r=s(t,e,n),i=[];if(!Object.keys(r).length)return i;var o=Object.values(r).every((function(t){return t.every((function(t){return"number"==typeof t}))}));return t.forEach((function(t,e){var n=[];Object.keys(r).forEach((function(e){var i=t[e],a=r[e],s=a.findIndex((function(t){return i===t})),u=[];if(o)u.push(i);else for(var l=0;l{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getPropertyWeight=e.getAllSortProperties=e.getAllProperties=e.default=void 0;var r=n(97465),i=function(t,e){void 0===t&&(t=[]),void 0===e&&(e=100);var n={};t.forEach((function(t){t.properties&&Object.keys(t.properties).forEach((function(e){"id"===e||!"".concat(t.properties[e]).match(r.secondReg)&&!"".concat(t.properties[e]).match(r.dateReg)&&isNaN(Number(t.properties[e]))?n.hasOwnProperty(e)&&delete n[e]:n.hasOwnProperty(e)?n[e]+=1:n[e]=1}))}));var i=Object.keys(n).sort((function(t,e){return n[e]-n[t]}));return i.length{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(24425),i=function(){function t(t){this.arr=t}return t.prototype.getArr=function(){return this.arr||[]},t.prototype.add=function(e){var n,r=e.arr;if(!(null===(n=this.arr)||void 0===n?void 0:n.length))return new t(r);if(!(null==r?void 0:r.length))return new t(this.arr);if(this.arr.length===r.length){var i=[];for(var o in this.arr)i[o]=this.arr[o]+r[o];return new t(i)}},t.prototype.subtract=function(e){var n,r=e.arr;if(!(null===(n=this.arr)||void 0===n?void 0:n.length))return new t(r);if(!(null==r?void 0:r.length))return new t(this.arr);if(this.arr.length===r.length){var i=[];for(var o in this.arr)i[o]=this.arr[o]-r[o];return new t(i)}},t.prototype.avg=function(e){var n=[];if(0!==e)for(var r in this.arr)n[r]=this.arr[r]/e;return new t(n)},t.prototype.negate=function(){var e=[];for(var n in this.arr)e[n]=-this.arr[n];return new t(e)},t.prototype.squareEuclideanDistance=function(t){var e,n=t.arr;if(!(null===(e=this.arr)||void 0===e?void 0:e.length)||!(null==n?void 0:n.length))return 0;if(this.arr.length===n.length){var r=0;for(var i in this.arr)r+=Math.pow(this.arr[i]-t.arr[i],2);return r}},t.prototype.euclideanDistance=function(t){var e,n=t.arr;if(!(null===(e=this.arr)||void 0===e?void 0:e.length)||!(null==n?void 0:n.length))return 0;if(this.arr.length===n.length){var r=0;for(var i in this.arr)r+=Math.pow(this.arr[i]-t.arr[i],2);return Math.sqrt(r)}console.error("The two vectors are unequal in length.")},t.prototype.normalize=function(){var e=[],n=(0,r.clone)(this.arr);n.sort((function(t,e){return t-e}));var i=n[n.length-1],o=n[0];for(var a in this.arr)e[a]=(this.arr[a]-o)/(i-o);return new t(e)},t.prototype.norm2=function(){var t;if(!(null===(t=this.arr)||void 0===t?void 0:t.length))return 0;var e=0;for(var n in this.arr)e+=Math.pow(this.arr[n],2);return Math.sqrt(e)},t.prototype.dot=function(t){var e,n=t.arr;if(!(null===(e=this.arr)||void 0===e?void 0:e.length)||!(null==n?void 0:n.length))return 0;if(this.arr.length===n.length){var r=0;for(var i in this.arr)r+=this.arr[i]*t.arr[i];return r}console.error("The two vectors are unequal in length.")},t.prototype.equal=function(t){var e,n=t.arr;if((null===(e=this.arr)||void 0===e?void 0:e.length)!==(null==n?void 0:n.length))return!1;for(var r in this.arr)if(this.arr[r]!==n[r])return!1;return!0},t}();e.default=i},80873:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"GADDI",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"breadthFirstSearch",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"connectedComponent",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"depthFirstSearch",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"detectCycle",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"dijkstra",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"findAllPath",{enumerable:!0,get:function(){return h.findAllPath}}),Object.defineProperty(e,"findShortestPath",{enumerable:!0,get:function(){return h.findShortestPath}}),Object.defineProperty(e,"floydWarshall",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"getAdjMatrix",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"getDegree",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"getInDegree",{enumerable:!0,get:function(){return s.getInDegree}}),Object.defineProperty(e,"getNeighbors",{enumerable:!0,get:function(){return y.getNeighbors}}),Object.defineProperty(e,"getOutDegree",{enumerable:!0,get:function(){return s.getOutDegree}}),Object.defineProperty(e,"labelPropagation",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"louvain",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"minimumSpanningTree",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"pageRank",{enumerable:!0,get:function(){return g.default}});var i=x(n(10168)),o=x(n(48441)),a=x(n(6277)),s=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=b(e);if(n&&n.has(t))return n.get(t);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var s=o?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(i,a,s):i[a]=t[a]}i.default=t,n&&n.set(t,i);return i}(n(42378)),u=x(n(91042)),l=x(n(50115)),c=x(n(7304)),h=n(38785),d=x(n(91510)),f=x(n(5321)),p=x(n(71678)),m=x(n(65518)),g=x(n(20247)),v=x(n(51147)),y=n(34170);function b(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(b=function(t){return t?n:e})(t)}function x(t){return t&&t.__esModule?t:{default:t}}},22274:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MESSAGE=e.ALGORITHM=void 0;e.ALGORITHM={pageRank:"pageRank",breadthFirstSearch:"breadthFirstSearch",connectedComponent:"connectedComponent",depthFirstSearch:"depthFirstSearch",detectCycle:"detectCycle",detectDirectedCycle:"detectDirectedCycle",detectAllCycles:"detectAllCycles",detectAllDirectedCycle:"detectAllDirectedCycle",detectAllUndirectedCycle:"detectAllUndirectedCycle",dijkstra:"dijkstra",findAllPath:"findAllPath",findShortestPath:"findShortestPath",floydWarshall:"floydWarshall",getAdjMatrix:"getAdjMatrix",getDegree:"getDegree",getInDegree:"getInDegree",getNeighbors:"getNeighbors",getOutDegree:"getOutDegree",labelPropagation:"labelPropagation",louvain:"louvain",GADDI:"GADDI",minimumSpanningTree:"minimumSpanningTree",SUCCESS:"SUCCESS",FAILURE:"FAILURE"};e.MESSAGE={SUCCESS:"SUCCESS",FAILURE:"FAILURE"}},30248:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,i=n(22274),o=(r=n(88346))&&r.__esModule?r:{default:r};var a=function(t){return function(){for(var e=[],n=0;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pageRankAsync=e.minimumSpanningTreeAsync=e.louvainAsync=e.labelPropagationAsync=e.getOutDegreeAsync=e.getNeighborsAsync=e.getInDegreeAsync=e.getDegreeAsync=e.getAdjMatrixAsync=e.floydWarshallAsync=e.findShortestPathAsync=e.findAllPathAsync=e.dijkstraAsync=e.detectCycleAsync=e.detectAllUndirectedCycleAsync=e.detectAllDirectedCycleAsync=e.detectAllCyclesAsync=e.connectedComponentAsync=e.GADDIAsync=void 0;var r,i=(r=n(30248))&&r.__esModule?r:{default:r},o=n(22274);e.getAdjMatrixAsync=function(t,e){return(0,i.default)(o.ALGORITHM.getAdjMatrix).apply(void 0,[t,e])};e.connectedComponentAsync=function(t,e){return(0,i.default)(o.ALGORITHM.connectedComponent).apply(void 0,[t,e])};e.getDegreeAsync=function(t){return(0,i.default)(o.ALGORITHM.getDegree)(t)};e.getInDegreeAsync=function(t,e){return(0,i.default)(o.ALGORITHM.getInDegree)(t,e)};e.getOutDegreeAsync=function(t,e){return(0,i.default)(o.ALGORITHM.getOutDegree)(t,e)};e.detectCycleAsync=function(t){return(0,i.default)(o.ALGORITHM.detectCycle)(t)};e.detectAllCyclesAsync=function(t){return(0,i.default)(o.ALGORITHM.detectAllCycles)(t)};e.detectAllDirectedCycleAsync=function(t){return(0,i.default)(o.ALGORITHM.detectAllDirectedCycle)(t)};e.detectAllUndirectedCycleAsync=function(t){return(0,i.default)(o.ALGORITHM.detectAllUndirectedCycle)(t)};e.dijkstraAsync=function(t,e,n,r){return(0,i.default)(o.ALGORITHM.dijkstra).apply(void 0,[t,e,n,r])};e.findAllPathAsync=function(t,e,n,r){return(0,i.default)(o.ALGORITHM.findAllPath).apply(void 0,[t,e,n,r])};e.findShortestPathAsync=function(t,e,n,r,a){return(0,i.default)(o.ALGORITHM.findShortestPath).apply(void 0,[t,e,n,r,a])};e.floydWarshallAsync=function(t,e){return(0,i.default)(o.ALGORITHM.floydWarshall).apply(void 0,[t,e])};e.labelPropagationAsync=function(t,e,n,r){return void 0===r&&(r=1e3),(0,i.default)(o.ALGORITHM.labelPropagation)(t,e,n,r)};e.louvainAsync=function(t,e,n,r){return(0,i.default)(o.ALGORITHM.louvain)(t,e,n,r)};e.minimumSpanningTreeAsync=function(t,e,n){return(0,i.default)(o.ALGORITHM.minimumSpanningTree).apply(void 0,[t,e,n])};e.pageRankAsync=function(t,e,n){return(0,i.default)(o.ALGORITHM.pageRank).apply(void 0,[t,e,n])};e.getNeighborsAsync=function(t,e,n){return(0,i.default)(o.ALGORITHM.getNeighbors).apply(void 0,[t,e,n])};e.GADDIAsync=function(t,e,n,r,a,s,u){return void 0===n&&(n=!1),void 0===s&&(s="cluster"),void 0===u&&(u="cluster"),(0,i.default)(o.ALGORITHM.GADDI).apply(void 0,[t,e,n,r,a,s,u])}},88346:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=a(e);if(n&&n.has(t))return n.get(t);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var u=o?Object.getOwnPropertyDescriptor(t,s):null;u&&(u.get||u.set)?Object.defineProperty(i,s,u):i[s]=t[s]}i.default=t,n&&n.set(t,i);return i}(n(80873)),o=n(22274);function a(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(a=function(t){return t?n:e})(t)}var s="undefined"!=typeof self?self:{};s.onmessage=function(t){var e=t.data,n=e._algorithmType,r=e.data;if(n)if("function"!=typeof i[n])s.postMessage({_algorithmType:o.MESSAGE.FAILURE});else{var a=i[n].apply(i,r);s.postMessage({_algorithmType:o.MESSAGE.SUCCESS,data:a})}};e.default=null},4706:(t,e,n)=>{"use strict";n.r(e),n.d(e,{Kernel:()=>U,World:()=>_t});var r=n(10467),i=n(64467),o=n(23029),a=n(92901),s=n(37167),u=n.n(s),l=n(98023),c=n.n(l),h=n(56449),d=n.n(h),f=n(54756),p=n.n(f),m=1;function g(){return m++}var v;!function(t){t[t.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",t[t.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",t[t.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT",t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN",t[t.ZERO=0]="ZERO",t[t.ONE=1]="ONE",t[t.SRC_COLOR=768]="SRC_COLOR",t[t.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",t[t.SRC_ALPHA=770]="SRC_ALPHA",t[t.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",t[t.DST_ALPHA=772]="DST_ALPHA",t[t.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",t[t.DST_COLOR=774]="DST_COLOR",t[t.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",t[t.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",t[t.FUNC_ADD=32774]="FUNC_ADD",t[t.BLEND_EQUATION=32777]="BLEND_EQUATION",t[t.BLEND_EQUATION_RGB=32777]="BLEND_EQUATION_RGB",t[t.BLEND_EQUATION_ALPHA=34877]="BLEND_EQUATION_ALPHA",t[t.FUNC_SUBTRACT=32778]="FUNC_SUBTRACT",t[t.FUNC_REVERSE_SUBTRACT=32779]="FUNC_REVERSE_SUBTRACT",t[t.MAX_EXT=32776]="MAX_EXT",t[t.MIN_EXT=32775]="MIN_EXT",t[t.BLEND_DST_RGB=32968]="BLEND_DST_RGB",t[t.BLEND_SRC_RGB=32969]="BLEND_SRC_RGB",t[t.BLEND_DST_ALPHA=32970]="BLEND_DST_ALPHA",t[t.BLEND_SRC_ALPHA=32971]="BLEND_SRC_ALPHA",t[t.CONSTANT_COLOR=32769]="CONSTANT_COLOR",t[t.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",t[t.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",t[t.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA",t[t.BLEND_COLOR=32773]="BLEND_COLOR",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER_BINDING=34964]="ARRAY_BUFFER_BINDING",t[t.ELEMENT_ARRAY_BUFFER_BINDING=34965]="ELEMENT_ARRAY_BUFFER_BINDING",t[t.STREAM_DRAW=35040]="STREAM_DRAW",t[t.STATIC_DRAW=35044]="STATIC_DRAW",t[t.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",t[t.BUFFER_SIZE=34660]="BUFFER_SIZE",t[t.BUFFER_USAGE=34661]="BUFFER_USAGE",t[t.CURRENT_VERTEX_ATTRIB=34342]="CURRENT_VERTEX_ATTRIB",t[t.FRONT=1028]="FRONT",t[t.BACK=1029]="BACK",t[t.FRONT_AND_BACK=1032]="FRONT_AND_BACK",t[t.CULL_FACE=2884]="CULL_FACE",t[t.BLEND=3042]="BLEND",t[t.DITHER=3024]="DITHER",t[t.STENCIL_TEST=2960]="STENCIL_TEST",t[t.DEPTH_TEST=2929]="DEPTH_TEST",t[t.SCISSOR_TEST=3089]="SCISSOR_TEST",t[t.POLYGON_OFFSET_FILL=32823]="POLYGON_OFFSET_FILL",t[t.SAMPLE_ALPHA_TO_COVERAGE=32926]="SAMPLE_ALPHA_TO_COVERAGE",t[t.SAMPLE_COVERAGE=32928]="SAMPLE_COVERAGE",t[t.NO_ERROR=0]="NO_ERROR",t[t.INVALID_ENUM=1280]="INVALID_ENUM",t[t.INVALID_VALUE=1281]="INVALID_VALUE",t[t.INVALID_OPERATION=1282]="INVALID_OPERATION",t[t.OUT_OF_MEMORY=1285]="OUT_OF_MEMORY",t[t.CW=2304]="CW",t[t.CCW=2305]="CCW",t[t.LINE_WIDTH=2849]="LINE_WIDTH",t[t.ALIASED_POINT_SIZE_RANGE=33901]="ALIASED_POINT_SIZE_RANGE",t[t.ALIASED_LINE_WIDTH_RANGE=33902]="ALIASED_LINE_WIDTH_RANGE",t[t.CULL_FACE_MODE=2885]="CULL_FACE_MODE",t[t.FRONT_FACE=2886]="FRONT_FACE",t[t.DEPTH_RANGE=2928]="DEPTH_RANGE",t[t.DEPTH_WRITEMASK=2930]="DEPTH_WRITEMASK",t[t.DEPTH_CLEAR_VALUE=2931]="DEPTH_CLEAR_VALUE",t[t.DEPTH_FUNC=2932]="DEPTH_FUNC",t[t.STENCIL_CLEAR_VALUE=2961]="STENCIL_CLEAR_VALUE",t[t.STENCIL_FUNC=2962]="STENCIL_FUNC",t[t.STENCIL_FAIL=2964]="STENCIL_FAIL",t[t.STENCIL_PASS_DEPTH_FAIL=2965]="STENCIL_PASS_DEPTH_FAIL",t[t.STENCIL_PASS_DEPTH_PASS=2966]="STENCIL_PASS_DEPTH_PASS",t[t.STENCIL_REF=2967]="STENCIL_REF",t[t.STENCIL_VALUE_MASK=2963]="STENCIL_VALUE_MASK",t[t.STENCIL_WRITEMASK=2968]="STENCIL_WRITEMASK",t[t.STENCIL_BACK_FUNC=34816]="STENCIL_BACK_FUNC",t[t.STENCIL_BACK_FAIL=34817]="STENCIL_BACK_FAIL",t[t.STENCIL_BACK_PASS_DEPTH_FAIL=34818]="STENCIL_BACK_PASS_DEPTH_FAIL",t[t.STENCIL_BACK_PASS_DEPTH_PASS=34819]="STENCIL_BACK_PASS_DEPTH_PASS",t[t.STENCIL_BACK_REF=36003]="STENCIL_BACK_REF",t[t.STENCIL_BACK_VALUE_MASK=36004]="STENCIL_BACK_VALUE_MASK",t[t.STENCIL_BACK_WRITEMASK=36005]="STENCIL_BACK_WRITEMASK",t[t.VIEWPORT=2978]="VIEWPORT",t[t.SCISSOR_BOX=3088]="SCISSOR_BOX",t[t.COLOR_CLEAR_VALUE=3106]="COLOR_CLEAR_VALUE",t[t.COLOR_WRITEMASK=3107]="COLOR_WRITEMASK",t[t.UNPACK_ALIGNMENT=3317]="UNPACK_ALIGNMENT",t[t.PACK_ALIGNMENT=3333]="PACK_ALIGNMENT",t[t.MAX_TEXTURE_SIZE=3379]="MAX_TEXTURE_SIZE",t[t.MAX_VIEWPORT_DIMS=3386]="MAX_VIEWPORT_DIMS",t[t.SUBPIXEL_BITS=3408]="SUBPIXEL_BITS",t[t.RED_BITS=3410]="RED_BITS",t[t.GREEN_BITS=3411]="GREEN_BITS",t[t.BLUE_BITS=3412]="BLUE_BITS",t[t.ALPHA_BITS=3413]="ALPHA_BITS",t[t.DEPTH_BITS=3414]="DEPTH_BITS",t[t.STENCIL_BITS=3415]="STENCIL_BITS",t[t.POLYGON_OFFSET_UNITS=10752]="POLYGON_OFFSET_UNITS",t[t.POLYGON_OFFSET_FACTOR=32824]="POLYGON_OFFSET_FACTOR",t[t.TEXTURE_BINDING_2D=32873]="TEXTURE_BINDING_2D",t[t.SAMPLE_BUFFERS=32936]="SAMPLE_BUFFERS",t[t.SAMPLES=32937]="SAMPLES",t[t.SAMPLE_COVERAGE_VALUE=32938]="SAMPLE_COVERAGE_VALUE",t[t.SAMPLE_COVERAGE_INVERT=32939]="SAMPLE_COVERAGE_INVERT",t[t.COMPRESSED_TEXTURE_FORMATS=34467]="COMPRESSED_TEXTURE_FORMATS",t[t.DONT_CARE=4352]="DONT_CARE",t[t.FASTEST=4353]="FASTEST",t[t.NICEST=4354]="NICEST",t[t.GENERATE_MIPMAP_HINT=33170]="GENERATE_MIPMAP_HINT",t[t.BYTE=5120]="BYTE",t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.SHORT=5122]="SHORT",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.INT=5124]="INT",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.FLOAT=5126]="FLOAT",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.ALPHA=6406]="ALPHA",t[t.RGB=6407]="RGB",t[t.RGBA=6408]="RGBA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",t[t.VERTEX_SHADER=35633]="VERTEX_SHADER",t[t.MAX_VERTEX_ATTRIBS=34921]="MAX_VERTEX_ATTRIBS",t[t.MAX_VERTEX_UNIFORM_VECTORS=36347]="MAX_VERTEX_UNIFORM_VECTORS",t[t.MAX_VARYING_VECTORS=36348]="MAX_VARYING_VECTORS",t[t.MAX_COMBINED_TEXTURE_IMAGE_UNITS=35661]="MAX_COMBINED_TEXTURE_IMAGE_UNITS",t[t.MAX_VERTEX_TEXTURE_IMAGE_UNITS=35660]="MAX_VERTEX_TEXTURE_IMAGE_UNITS",t[t.MAX_TEXTURE_IMAGE_UNITS=34930]="MAX_TEXTURE_IMAGE_UNITS",t[t.MAX_FRAGMENT_UNIFORM_VECTORS=36349]="MAX_FRAGMENT_UNIFORM_VECTORS",t[t.SHADER_TYPE=35663]="SHADER_TYPE",t[t.DELETE_STATUS=35712]="DELETE_STATUS",t[t.LINK_STATUS=35714]="LINK_STATUS",t[t.VALIDATE_STATUS=35715]="VALIDATE_STATUS",t[t.ATTACHED_SHADERS=35717]="ATTACHED_SHADERS",t[t.ACTIVE_UNIFORMS=35718]="ACTIVE_UNIFORMS",t[t.ACTIVE_ATTRIBUTES=35721]="ACTIVE_ATTRIBUTES",t[t.SHADING_LANGUAGE_VERSION=35724]="SHADING_LANGUAGE_VERSION",t[t.CURRENT_PROGRAM=35725]="CURRENT_PROGRAM",t[t.NEVER=512]="NEVER",t[t.LESS=513]="LESS",t[t.EQUAL=514]="EQUAL",t[t.LEQUAL=515]="LEQUAL",t[t.GREATER=516]="GREATER",t[t.NOTEQUAL=517]="NOTEQUAL",t[t.GEQUAL=518]="GEQUAL",t[t.ALWAYS=519]="ALWAYS",t[t.KEEP=7680]="KEEP",t[t.REPLACE=7681]="REPLACE",t[t.INCR=7682]="INCR",t[t.DECR=7683]="DECR",t[t.INVERT=5386]="INVERT",t[t.INCR_WRAP=34055]="INCR_WRAP",t[t.DECR_WRAP=34056]="DECR_WRAP",t[t.VENDOR=7936]="VENDOR",t[t.RENDERER=7937]="RENDERER",t[t.VERSION=7938]="VERSION",t[t.NEAREST=9728]="NEAREST",t[t.LINEAR=9729]="LINEAR",t[t.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",t[t.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",t[t.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",t[t.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR",t[t.TEXTURE_MAG_FILTER=10240]="TEXTURE_MAG_FILTER",t[t.TEXTURE_MIN_FILTER=10241]="TEXTURE_MIN_FILTER",t[t.TEXTURE_WRAP_S=10242]="TEXTURE_WRAP_S",t[t.TEXTURE_WRAP_T=10243]="TEXTURE_WRAP_T",t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE=5890]="TEXTURE",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_BINDING_CUBE_MAP=34068]="TEXTURE_BINDING_CUBE_MAP",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",t[t.MAX_CUBE_MAP_TEXTURE_SIZE=34076]="MAX_CUBE_MAP_TEXTURE_SIZE",t[t.TEXTURE0=33984]="TEXTURE0",t[t.TEXTURE1=33985]="TEXTURE1",t[t.TEXTURE2=33986]="TEXTURE2",t[t.TEXTURE3=33987]="TEXTURE3",t[t.TEXTURE4=33988]="TEXTURE4",t[t.TEXTURE5=33989]="TEXTURE5",t[t.TEXTURE6=33990]="TEXTURE6",t[t.TEXTURE7=33991]="TEXTURE7",t[t.TEXTURE8=33992]="TEXTURE8",t[t.TEXTURE9=33993]="TEXTURE9",t[t.TEXTURE10=33994]="TEXTURE10",t[t.TEXTURE11=33995]="TEXTURE11",t[t.TEXTURE12=33996]="TEXTURE12",t[t.TEXTURE13=33997]="TEXTURE13",t[t.TEXTURE14=33998]="TEXTURE14",t[t.TEXTURE15=33999]="TEXTURE15",t[t.TEXTURE16=34e3]="TEXTURE16",t[t.TEXTURE17=34001]="TEXTURE17",t[t.TEXTURE18=34002]="TEXTURE18",t[t.TEXTURE19=34003]="TEXTURE19",t[t.TEXTURE20=34004]="TEXTURE20",t[t.TEXTURE21=34005]="TEXTURE21",t[t.TEXTURE22=34006]="TEXTURE22",t[t.TEXTURE23=34007]="TEXTURE23",t[t.TEXTURE24=34008]="TEXTURE24",t[t.TEXTURE25=34009]="TEXTURE25",t[t.TEXTURE26=34010]="TEXTURE26",t[t.TEXTURE27=34011]="TEXTURE27",t[t.TEXTURE28=34012]="TEXTURE28",t[t.TEXTURE29=34013]="TEXTURE29",t[t.TEXTURE30=34014]="TEXTURE30",t[t.TEXTURE31=34015]="TEXTURE31",t[t.ACTIVE_TEXTURE=34016]="ACTIVE_TEXTURE",t[t.REPEAT=10497]="REPEAT",t[t.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",t[t.FLOAT_VEC2=35664]="FLOAT_VEC2",t[t.FLOAT_VEC3=35665]="FLOAT_VEC3",t[t.FLOAT_VEC4=35666]="FLOAT_VEC4",t[t.INT_VEC2=35667]="INT_VEC2",t[t.INT_VEC3=35668]="INT_VEC3",t[t.INT_VEC4=35669]="INT_VEC4",t[t.BOOL=35670]="BOOL",t[t.BOOL_VEC2=35671]="BOOL_VEC2",t[t.BOOL_VEC3=35672]="BOOL_VEC3",t[t.BOOL_VEC4=35673]="BOOL_VEC4",t[t.FLOAT_MAT2=35674]="FLOAT_MAT2",t[t.FLOAT_MAT3=35675]="FLOAT_MAT3",t[t.FLOAT_MAT4=35676]="FLOAT_MAT4",t[t.SAMPLER_2D=35678]="SAMPLER_2D",t[t.SAMPLER_CUBE=35680]="SAMPLER_CUBE",t[t.VERTEX_ATTRIB_ARRAY_ENABLED=34338]="VERTEX_ATTRIB_ARRAY_ENABLED",t[t.VERTEX_ATTRIB_ARRAY_SIZE=34339]="VERTEX_ATTRIB_ARRAY_SIZE",t[t.VERTEX_ATTRIB_ARRAY_STRIDE=34340]="VERTEX_ATTRIB_ARRAY_STRIDE",t[t.VERTEX_ATTRIB_ARRAY_TYPE=34341]="VERTEX_ATTRIB_ARRAY_TYPE",t[t.VERTEX_ATTRIB_ARRAY_NORMALIZED=34922]="VERTEX_ATTRIB_ARRAY_NORMALIZED",t[t.VERTEX_ATTRIB_ARRAY_POINTER=34373]="VERTEX_ATTRIB_ARRAY_POINTER",t[t.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING=34975]="VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",t[t.COMPILE_STATUS=35713]="COMPILE_STATUS",t[t.LOW_FLOAT=36336]="LOW_FLOAT",t[t.MEDIUM_FLOAT=36337]="MEDIUM_FLOAT",t[t.HIGH_FLOAT=36338]="HIGH_FLOAT",t[t.LOW_INT=36339]="LOW_INT",t[t.MEDIUM_INT=36340]="MEDIUM_INT",t[t.HIGH_INT=36341]="HIGH_INT",t[t.FRAMEBUFFER=36160]="FRAMEBUFFER",t[t.RENDERBUFFER=36161]="RENDERBUFFER",t[t.RGBA4=32854]="RGBA4",t[t.RGB5_A1=32855]="RGB5_A1",t[t.RGB565=36194]="RGB565",t[t.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",t[t.STENCIL_INDEX=6401]="STENCIL_INDEX",t[t.STENCIL_INDEX8=36168]="STENCIL_INDEX8",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL",t[t.RENDERBUFFER_WIDTH=36162]="RENDERBUFFER_WIDTH",t[t.RENDERBUFFER_HEIGHT=36163]="RENDERBUFFER_HEIGHT",t[t.RENDERBUFFER_INTERNAL_FORMAT=36164]="RENDERBUFFER_INTERNAL_FORMAT",t[t.RENDERBUFFER_RED_SIZE=36176]="RENDERBUFFER_RED_SIZE",t[t.RENDERBUFFER_GREEN_SIZE=36177]="RENDERBUFFER_GREEN_SIZE",t[t.RENDERBUFFER_BLUE_SIZE=36178]="RENDERBUFFER_BLUE_SIZE",t[t.RENDERBUFFER_ALPHA_SIZE=36179]="RENDERBUFFER_ALPHA_SIZE",t[t.RENDERBUFFER_DEPTH_SIZE=36180]="RENDERBUFFER_DEPTH_SIZE",t[t.RENDERBUFFER_STENCIL_SIZE=36181]="RENDERBUFFER_STENCIL_SIZE",t[t.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE=36048]="FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",t[t.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME=36049]="FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",t[t.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL=36050]="FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",t[t.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE=36051]="FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",t[t.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",t[t.DEPTH_ATTACHMENT=36096]="DEPTH_ATTACHMENT",t[t.STENCIL_ATTACHMENT=36128]="STENCIL_ATTACHMENT",t[t.DEPTH_STENCIL_ATTACHMENT=33306]="DEPTH_STENCIL_ATTACHMENT",t[t.NONE=0]="NONE",t[t.FRAMEBUFFER_COMPLETE=36053]="FRAMEBUFFER_COMPLETE",t[t.FRAMEBUFFER_INCOMPLETE_ATTACHMENT=36054]="FRAMEBUFFER_INCOMPLETE_ATTACHMENT",t[t.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT=36055]="FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",t[t.FRAMEBUFFER_INCOMPLETE_DIMENSIONS=36057]="FRAMEBUFFER_INCOMPLETE_DIMENSIONS",t[t.FRAMEBUFFER_UNSUPPORTED=36061]="FRAMEBUFFER_UNSUPPORTED",t[t.FRAMEBUFFER_BINDING=36006]="FRAMEBUFFER_BINDING",t[t.RENDERBUFFER_BINDING=36007]="RENDERBUFFER_BINDING",t[t.MAX_RENDERBUFFER_SIZE=34024]="MAX_RENDERBUFFER_SIZE",t[t.INVALID_FRAMEBUFFER_OPERATION=1286]="INVALID_FRAMEBUFFER_OPERATION",t[t.UNPACK_FLIP_Y_WEBGL=37440]="UNPACK_FLIP_Y_WEBGL",t[t.UNPACK_PREMULTIPLY_ALPHA_WEBGL=37441]="UNPACK_PREMULTIPLY_ALPHA_WEBGL",t[t.CONTEXT_LOST_WEBGL=37442]="CONTEXT_LOST_WEBGL",t[t.UNPACK_COLORSPACE_CONVERSION_WEBGL=37443]="UNPACK_COLORSPACE_CONVERSION_WEBGL",t[t.BROWSER_DEFAULT_WEBGL=37444]="BROWSER_DEFAULT_WEBGL",t[t.COPY_SRC=1]="COPY_SRC",t[t.COPY_DST=2]="COPY_DST",t[t.SAMPLED=4]="SAMPLED",t[t.STORAGE=8]="STORAGE",t[t.RENDER_ATTACHMENT=16]="RENDER_ATTACHMENT"}(v||(v={}));var y,b,x,w,_=function(){function t(){(0,o.A)(this,t),this.config=void 0}return(0,a.A)(t,[{key:"get",value:function(){return this.config}},{key:"set",value:function(t){this.config=t}}]),t}();"undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent);!function(t){t.Void="Void",t.Boolean="Boolean",t.Float="Float",t.Uint32="Uint32",t.Int32="Int32",t.Vector="Vector",t.Vector2Float="vec2",t.Vector3Float="vec3",t.Vector4Float="vec4",t.Vector2Boolean="vec2",t.Vector3Boolean="vec3",t.Vector4Boolean="vec4",t.Vector2Uint="vec2",t.Vector3Uint="vec3",t.Vector4Uint="vec4",t.Vector2Int="vec2",t.Vector3Int="vec3",t.Vector4Int="vec4",t.Matrix="Matrix",t.Matrix3x3Float="mat3x3",t.Matrix4x4Float="mat4x4",t.Struct="Struct",t.FloatArray="Float[]",t.Vector4FloatArray="vec4[]"}(y||(y={})),function(t){t.Program="Program",t.Identifier="Identifier",t.VariableDeclaration="VariableDeclaration",t.BlockStatement="BlockStatement",t.ReturnStatement="ReturnStatement",t.FunctionDeclaration="FunctionDeclaration",t.VariableDeclarator="VariableDeclarator",t.AssignmentExpression="AssignmentExpression",t.LogicalExpression="LogicalExpression",t.BinaryExpression="BinaryExpression",t.ArrayExpression="ArrayExpression",t.UnaryExpression="UnaryExpression",t.UpdateExpression="UpdateExpression",t.FunctionExpression="FunctionExpression",t.MemberExpression="MemberExpression",t.ConditionalExpression="ConditionalExpression",t.ExpressionStatement="ExpressionStatement",t.CallExpression="CallExpression",t.NumThreadStatement="NumThreadStatement",t.StorageStatement="StorageStatement",t.DoWhileStatement="DoWhileStatement",t.WhileStatement="WhileStatement",t.ForStatement="ForStatement",t.BreakStatement="BreakStatement",t.ContinueStatement="ContinueStatement",t.IfStatement="IfStatement",t.ImportedFunctionStatement="ImportedFunctionStatement"}(b||(b={})),function(t){t.Input="Input",t.Output="Output",t.Uniform="Uniform",t.Workgroup="Workgroup",t.UniformConstant="UniformConstant",t.Image="Image",t.StorageBuffer="StorageBuffer",t.Private="Private",t.Function="Function"}(x||(x={})),function(t){t.GLSL100="GLSL100",t.GLSL450="GLSL450",t.WGSL="WGSL"}(w||(w={}));function S(){if("undefined"!=typeof document)return document.createElement("canvas");throw new Error("Cannot create a canvas in this context")}function E(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function A(t){for(var e=1;e0&&void 0!==i[0]?i[0]:1,!this.dirty){t.next=6;break}return this.compiledBundle.context&&(e>1?this.compiledBundle.context.maxIteration=e:this.compiledBundle.context.maxIteration++),t.next=5,this.compile();case 5:this.dirty=!1;case 6:for(this.engine.beginFrame(),this.engine.clear({}),this.compiledBundle.context&&this.compiledBundle.context.uniforms.filter((function(t){return t.isReferer})).forEach((function(t){var e=t.data,n=t.name;r.model.confirmInput(e.model,n)})),n=0;n16)throw new Error("invalid data type ".concat(n));i[e]=function(){return t.data}}}));var a=this.getOuputDataTexture(),s=a.textureWidth,l=a.texelCount;i.u_OutputTextureSize=[s,s],i.u_OutputTexelCount=l,this.context.output.textureSize=[s,s];var c={attributes:{a_Position:[[-1,1,0],[-1,-1,0],[1,1,0],[1,-1,0]],a_TexCoord:[[0,1],[0,0],[1,1],[1,0]]},frag:"#ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n#else\n precision mediump float;\n#endif\n".concat(this.context.shader),uniforms:i,vert:"attribute vec3 a_Position;\nattribute vec2 a_TexCoord;\n\nvarying vec2 v_TexCoord;\n\nvoid main() {\n gl_Position = vec4(a_Position, 1.0);\n v_TexCoord = a_TexCoord;\n}",primitive:"triangle strip",count:4};this.computeCommand=this.reGl(c)}var e;return(0,a.A)(t,[{key:"run",value:function(){var t=this;this.context.maxIteration>1&&this.context.needPingpong&&(this.compiledPingpong=!0),(this.compiledPingpong||this.dynamicPingpong)&&this.swap(),this.texFBO=this.reGl.framebuffer({color:this.getOuputDataTexture().texture}),this.texFBO.use((function(){t.computeCommand()}))}},{key:"readData",value:(e=(0,r.A)(p().mark((function t(){var e,n,r,i,o,a,s,u,l=this;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.reGl({framebuffer:this.texFBO})((function(){e=l.reGl.read()})),!e){t.next=6;break}if(n=this.getOuputDataTexture(),r=n.originalDataLength,i=n.elementsPerTexel,o=n.typedArrayConstructor,a=void 0===o?Float32Array:o,s=[],4!==i)for(u=0;u0&&void 0!==arguments[0]?arguments[0]:{},n=new t;return n.setConfig(e),n.setEngine(new wt),n}}]),t}()},55163:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>Cb});var r={};n.r(r),n.d(r,{GADDI:()=>Qt,Stack:()=>te,breadthFirstSearch:()=>V,connectedComponent:()=>W,cosineSimilarity:()=>_t,default:()=>ne,depthFirstSearch:()=>Z,detectAllCycles:()=>tt,detectAllDirectedCycle:()=>J,detectAllUndirectedCycle:()=>Q,detectCycle:()=>et,detectDirectedCycle:()=>ee,dijkstra:()=>nt,findAllPath:()=>ot,findShortestPath:()=>it,floydWarshall:()=>at,getAdjMatrix:()=>P,getDegree:()=>Y,getInDegree:()=>q,getNeighbors:()=>B,getOutDegree:()=>$,iLouvain:()=>yt,kCore:()=>bt,kMeans:()=>wt,labelPropagation:()=>st,louvain:()=>vt,minimumSpanningTree:()=>Nt,nodesCosineSimilarity:()=>St,pageRank:()=>Pt});var i={};n.r(i),n.d(i,{Line:()=>Te,applyMatrix:()=>de,compare:()=>ae,distance:()=>me,floydWarshall:()=>ve,fractionToLine:()=>Pe,getAdjMatrix:()=>ye,getBBoxBoundLine:()=>ke,getCircleCenterByPoints:()=>pe,getCircleIntersectByPoint:()=>ce,getDegree:()=>Se,getEllipseIntersectByPoint:()=>he,getLineIntersect:()=>ue,getPointsCenter:()=>Oe,getRectIntersectByPoint:()=>le,intersectBBox:()=>Me,invertMatrix:()=>fe,isPointInPolygon:()=>Ae,isPointsOverlap:()=>De,isPolygonsIntersect:()=>Ce,itemIntersectByLine:()=>Ne,lerp:()=>Be,lerpArray:()=>Ue,move:()=>xe,pointLineDistance:()=>Fe,pointLineSquareDist:()=>Re,pointRectSquareDist:()=>ze,rotate:()=>_e,scale:()=>we,scaleMatrix:()=>ge,squareDist:()=>Le,translate:()=>be});var o={};n.r(o),n.d(o,{cloneBesidesImg:()=>yn,getAnimateCfgWithCallback:()=>bn,getBBox:()=>rn,getComboBBox:()=>gn,getLabelPosition:()=>an,getLetterWidth:()=>hn,getLoopCfgs:()=>on,getTextSize:()=>dn,plainCombosToTrees:()=>pn,reconstructTree:()=>mn,shouldRefreshEdge:()=>vn,traverseTree:()=>ln,traverseTreeUp:()=>cn,truncateLabelByLength:()=>fn});var a={};n.r(a),n.d(a,{catmullRomToBezier:()=>Cn,fillPath:()=>$n,fillPathByDiff:()=>Qn,formatPath:()=>er,intersection:()=>Xn,parsePathArray:()=>Rn,parsePathString:()=>Mn,pathToAbsolute:()=>kn,pathToCurve:()=>On,rectPath:()=>jn});var s={};n.r(s),n.d(s,{easeBack:()=>zo,easeBackIn:()=>Ro,easeBackInOut:()=>zo,easeBackOut:()=>Do,easeBounce:()=>Po,easeBounceIn:()=>No,easeBounceInOut:()=>Oo,easeBounceOut:()=>Po,easeCircle:()=>xo,easeCircleIn:()=>yo,easeCircleInOut:()=>xo,easeCircleOut:()=>bo,easeCubic:()=>io,easeCubicIn:()=>no,easeCubicInOut:()=>io,easeCubicOut:()=>ro,easeElastic:()=>Uo,easeElasticIn:()=>Bo,easeElasticInOut:()=>jo,easeElasticOut:()=>Uo,easeExp:()=>vo,easeExpIn:()=>mo,easeExpInOut:()=>vo,easeExpOut:()=>go,easeLinear:()=>Qi,easePoly:()=>so,easePolyIn:()=>oo,easePolyInOut:()=>so,easePolyOut:()=>ao,easeQuad:()=>eo,easeQuadIn:()=>Ji,easeQuadInOut:()=>eo,easeQuadOut:()=>to,easeSin:()=>fo,easeSinIn:()=>co,easeSinInOut:()=>fo,easeSinOut:()=>ho});var u={};n.r(u),n.d(u,{calculationItemsBBox:()=>ms,cloneEvent:()=>ds,formatPadding:()=>hs,isNaN:()=>ps,isViewportChanged:()=>fs,processParallelEdges:()=>gs,uniqueId:()=>cs});var l={};n.r(l),n.d(l,{getClosedSpline:()=>du,getControlPoint:()=>lu,getSpline:()=>uu,getStarPath:()=>yu,paddedHull:()=>vu,pathToPoints:()=>hu,pointsToPolygon:()=>cu,roundedHull:()=>gu});var c={};n.r(c),n.d(c,{defaultSubjectColors:()=>Qu});var h={};n.r(h),n.d(h,{isForce:()=>Ju});var d={};n.r(d),n.d(d,{Base:()=>$l,Circle:()=>Kl,Ellipse:()=>Ql,Image:()=>ec,Line:()=>ic,Marker:()=>sc,Path:()=>yc,Polygon:()=>xc,Polyline:()=>_c,Rect:()=>Sc,Text:()=>Ac});var f={};n.r(f),n.d(f,{Base:()=>Hc,Circle:()=>Wc,Dom:()=>Yc,Ellipse:()=>$c,Image:()=>Zc,Line:()=>Jc,Marker:()=>rh,Path:()=>oh,Polygon:()=>sh,Polyline:()=>lh,Rect:()=>hh,Text:()=>gh});var p={};n.r(p),n.d(p,{getColorSetsBySubjectColors:()=>jd,getColorsWithSubjectColor:()=>Ud,mixColor:()=>Bd});var m={};n.r(m),n.d(m,{arrayToTextureData:()=>sf,attributesToTextureData:()=>af,buildTextureData:()=>nf,buildTextureDataWithOneEdgeAttr:()=>rf,buildTextureDataWithTwoEdgeAttr:()=>of,proccessToFunc:()=>ef,radialLayout:()=>uf});var g={};n.r(g),n.d(g,{gpuDetector:()=>lf});var v={};n.r(v),n.d(v,{getBrowserName:()=>cf});var y={};n.r(y),n.d(y,{assign:()=>mm,default:()=>Rm,defaultI18n:()=>bm,format:()=>Om,parse:()=>Lm,setGlobalDateI18n:()=>wm,setGlobalDateMasks:()=>Pm});var b=n(31635),x=n(24425);const w={getDefaultCfg:function(){return{}},getEvents:function(){return{}},updateCfg:function(t){return Object.assign(this,t),!0},shouldBegin:function(){return!0},shouldUpdate:function(){return!0},shouldEnd:function(){return!0},bind:function(t){var e=this,n=this.events;this.graph=t,"drag-canvas"!==this.type&&"brush-select"!==this.type&&"lasso-select"!==this.type||t.get("canvas").set("draggable",!0),(0,x.each)(n,(function(e,n){t.on(n,e)})),document.addEventListener("visibilitychange",(function(){e.keydown=!1}))},unbind:function(t){var e=this.events,n=t.get("canvas").get("draggable");"drag-canvas"!==this.type&&"brush-select"!==this.type&&"lasso-select"!==this.type||t.get("canvas").set("draggable",!1),(0,x.each)(e,(function(e,n){t.off(n,e)})),t.get("canvas").set("draggable",n)},get:function(t){return this[t]},set:function(t,e){return this[t]=e,this}};var _=function(){function t(){}return t.registerBehavior=function(e,n){if(!n)throw new Error("please specify handler for this behavior: ".concat(e));var r=(0,x.clone)(w);Object.assign(r,n);var i=function(t){var e=this;Object.assign(this,this.getDefaultCfg(),t);var n=this.getEvents();this.events=null;var r={};n&&((0,x.each)(n,(function(t,n){r[n]=(0,x.wrapBehavior)(e,t)})),this.events=r)};i.prototype=r,t.types[e]=i},t.hasBehavior=function(e){return!!t.types[e]},t.getBehavior=function(e){return t.types[e]},t.types={},t}();const S=_,E=S;var A=function(){function t(){this._events={}}return t.prototype.on=function(t,e,n){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:e,once:!!n}),this},t.prototype.once=function(t,e){return this.on(t,e,!0)},t.prototype.emit=function(t){for(var e=this,n=[],r=1;r0&&t(o[0])}},u=0;u0;)h.push(s.pop());o.push(h)}}return o},G=function(t){for(var e=t.nodes,n=void 0===e?[]:e,r=t.edges,i=void 0===r?[]:r,o=[],a={},s={},u={},l=[],c=0,h=function t(e){s[e.id]=c,u[e.id]=c,c+=1,o.push(e),a[e.id]=!0;for(var r=B(e.id,i,"target").filter((function(t){return n.map((function(t){return t.id})).indexOf(t)>-1})),h=function(i){var o=r[i];if(s[o]||0===s[o])a[o]&&(u[e.id]=Math.min(u[e.id],s[o]));else{var l=n.filter((function(t){return t.id===o}));l.length>0&&t(l[0]),u[e.id]=Math.min(u[e.id],u[o])}},d=0;d0;){var p=o.pop();if(a[p.id]=!1,f.push(p),p===e)break}f.length>0&&l.push(f)}},d=0,f=n;d0;)for(var p=h.pop(),m=p.id,g=B(m,t.edges),v=function(r){var i,a=g[r],s=t.nodes.find((function(t){return t.id===a}));if(a===m)o.push(((i={})[a]=p,i));else if(a in f){if(!f[m].has(s)){for(var u=!0,l=[s,p],c=d[m];f[a].size&&!f[a].has(c)&&(l.push(c),c!==d[c.id]);)c=d[c.id];if(l.push(c),e&&n?(u=!1,l.findIndex((function(t){return e.indexOf(t.id)>-1}))>-1&&(u=!0)):e&&!n&&l.findIndex((function(t){return e.indexOf(t.id)>-1}))>-1&&(u=!1),u){for(var v={},y=1;y-1)return h;r.push(u),i.add(u);for(var d=c[u.id],f=0;f0;){var n=e.pop();i.has(n)&&(i.delete(n),o[n.id].forEach((function(t){e.push(t)})),o[n.id].clear())}}(u);else for(f=0;f-1}));g-1?p[m.id].push(u[y]):a.push(((i={})[m.id]=m,i))}}return{component:f,adjList:p,minIdx:s}},v=0;v=v})),b=G({nodes:y,edges:t.edges}).filter((function(t){return t.length>1}));if(0===b.length)break;var x=g(b),w=x.minIdx,_=x.adjList,S=x.component;if(!(S.length>1))break;S.forEach((function(t){o[t.id]=new Set}));var E=s[w];if(e&&n&&-1===e.indexOf(E.id))return a;l(E,E,_),v=w+1}return a},tt=function(t,e,n,r){return void 0===r&&(r=!0),e?J(t,n,r):Q(t,n,r)};const et=function(t){var e=null,n=t.nodes,r={},i={},o={},a={};(void 0===n?[]:n).forEach((function(t){i[t.id]=t}));for(var s={enter:function(t){var n=t.current,a=t.previous;if(o[n]){e={};for(var s=n,u=a;u!==n;)e[s]=u,s=u,u=r[u];e[s]=u}else o[n]=n,delete i[n],r[n]=a},leave:function(t){var e=t.current;a[e]=e,delete o[e]},allowTraversal:function(t){var n=t.next;return!e&&!a[n]}};Object.keys(i).length;){Z(t,Object.keys(i)[0],s)}return e};const nt=function(t,e,n,r){var i=t.nodes,o=void 0===i?[]:i,a=t.edges,s=void 0===a?[]:a,u=[],l={},c={},h={};o.forEach((function(t,n){var r=t.id;u.push(r),c[r]=1/0,r===e&&(c[r]=0)}));for(var d=o.length,f=function(t){var e=function(t,e,n){for(var r,i=1/0,o=0;oc[e.id]+s?(c[a]=c[e.id]+s,h[a]=[e.id]):c[a]===c[e.id]+s&&h[a].push(e.id)}))},p=0;p0&&l.length>0;){var d=l[l.length-1];if(d.length){var f=d.shift();if(f&&(s.push(f),u[f]=!0,h=r?B(f,a,"target"):B(f,a),l.push(h.filter((function(t){return!u[t]})))),s[s.length-1]===n){var p=s.map((function(t){return t}));c.push(p);m=s.pop();u[m]=!1,l.pop()}}else{var m=s.pop();u[m]=!1,l.pop()}}return c};const at=function(t,e){for(var n=P(t,e),r=[],i=n.length,o=0;or[o][s]+r[s][a]&&(r[o][a]=r[o][s]+r[s][a]);return r};const st=function(t,e,n,r){void 0===e&&(e=!1),void 0===n&&(n="weight"),void 0===r&&(r=1e3);var i=t.nodes,o=void 0===i?[]:i,a=t.edges,s=void 0===a?[]:a,u={},l={};o.forEach((function(t,e){var n=j();t.clusterId=n,u[n]={id:n,nodes:[t]},l[t.id]={node:t,idx:e}}));var c=P(t,e),h=[],d={};c.forEach((function(t,e){var n=0,r=o[e].id;d[r]={},t.forEach((function(t,e){if(t){n+=t;var i=o[e].id;d[r][i]=t}})),h.push(n)}));for(var f=0,p=function(){var t=!1;if(o.forEach((function(e){var n={};Object.keys(d[e.id]).forEach((function(t){var r=d[e.id][t],i=l[t].node.clusterId;n[i]||(n[i]=0),n[i]+=r}));var r=-1/0,i=[];if(Object.keys(n).forEach((function(t){r=0&&i.splice(o,1),i&&i.length){t=!0;var a=u[e.clusterId],s=a.nodes.indexOf(e);a.nodes.splice(s,1);var c=Math.floor(Math.random()*i.length),h=u[i[c]];h.nodes.push(e),e.clusterId=h.id}}})),!t)return"break";f++};f0&&E>A&&E-AA&&(C=c.map((function(t){return{node:t,clusterId:t.clusterId}})),T=(0,x.clone)(v),A=E),k||M>100)break;M++,Object.keys(v).forEach((function(t){var e=0;d.forEach((function(r){var i=r.source,o=r.target,a=y[i].node.clusterId,s=y[o].node.clusterId;(a===t&&s!==t||s===t&&a!==t)&&(e+=r[n]||1)})),v[t].sumTot=e})),c.forEach((function(t,e){var r,o=v[t.clusterId],a=0,s=w[e]/(2*S),l=0,c=o.nodes;c.forEach((function(t){var n=y[t.id].idx;l+=b[e][n]||0}));var h=l-o.sumTot*s,p=c.filter((function(e){return e.id!==t.id})),m=[];p.forEach((function(t,e){m[e]=f[t.originIndex]}));var g=gt(p,f)*u,x=_[t.id];if(Object.keys(x).forEach((function(n){var o=y[n].node.clusterId;if(o!==t.clusterId){var l=v[o],c=l.nodes;if(c&&c.length){var d=0;c.forEach((function(t){var n=y[t.id].idx;d+=b[e][n]||0}));var p=d-l.sumTot*s,m=c.concat([t]),x=[];m.forEach((function(t,e){x[e]=f[t.originIndex]}));var w=gt(m,f)*u,_=p-h;i&&(_=p+w-(h+g)),_>a&&(a=_,r=l)}}})),a>0){r.nodes.push(t);var E=t.clusterId;t.clusterId=r.id;var A=o.nodes.indexOf(t);o.nodes.splice(A,1);var M=0,C=0;d.forEach((function(t){var e=t.source,i=t.target,o=y[e].node.clusterId,a=y[i].node.clusterId;(o===r.id&&a!==r.id||a===r.id&&o!==r.id)&&(M+=t[n]||1),(o===E&&a!==E||a===E&&o!==E)&&(C+=t[n]||1)})),r.sumTot=M,o.sumTot=C}}))}var I={},N=0;Object.keys(T).forEach((function(t){var e=T[t];if(e.nodes&&e.nodes.length){var n=String(N+1);n!==t&&(e.id=n,e.nodes=e.nodes.map((function(t){return{id:t.id,clusterId:n}})),T[n]=e,I[t]=n,delete T[t],N++)}else delete T[t]})),C.forEach((function(t){var e=t.node,n=t.clusterId;e&&(e.clusterId=n,e.clusterId&&I[e.clusterId]&&(e.clusterId=I[e.clusterId]))}));var O=[],L={};d.forEach((function(t){var e=t.source,r=t.target,i=t[n]||1,o=y[e].node.clusterId,a=y[r].node.clusterId;if(o&&a){var s="".concat(o,"---").concat(a);if(L[s])L[s].weight+=i,L[s].count++;else{var u={source:o,target:a,weight:i,count:1};L[s]=u,O.push(u)}}}));var R=[];return Object.keys(T).forEach((function(t){R.push(T[t])})),{clusters:R,clusterEdges:O}};const yt=function(t,e,n,r,i,o,a,s){return void 0===e&&(e=!1),void 0===n&&(n="weight"),void 0===r&&(r=1e-4),void 0===i&&(i=void 0),void 0===o&&(o=[]),void 0===a&&(a=["id"]),void 0===s&&(s=1),vt(t,e,n,r,!0,i,o,a,s)};const bt=function(t,e){var n;void 0===e&&(e=1);for(var r=(0,x.clone)(t),i=r.nodes,o=void 0===i?[]:i,a=r.edges,s=void 0===a?[]:a,u=function(){var t=Y({nodes:o,edges:s}),r=Object.keys(t);r.sort((function(e,n){var r,i;return(null===(r=t[e])||void 0===r?void 0:r.degree)-(null===(i=t[n])||void 0===i?void 0:i.degree)}));var i=r[0];if(!o.length||(null===(n=t[i])||void 0===n?void 0:n.degree)>=e)return"break";var a=o.findIndex((function(t){return t.id===i}));o.splice(a,1),s=s.filter((function(t){return!(t.source===i||t.target===i)}))};;){if("break"===u())break}return{nodes:o,edges:s}};var xt=function(t,e,n){var r=[];if(t===ht.EuclideanDistance)r=e[n];else r=[];return r};const wt=function(t,e,n,r,i,o){void 0===e&&(e=3),void 0===n&&(n=void 0),void 0===r&&(r=[]),void 0===i&&(i=["id"]),void 0===o&&(o=ht.EuclideanDistance);var a=t.nodes,s=void 0===a?[]:a,u=t.edges,l=void 0===u?[]:u,c={clusters:[{id:"0",nodes:s}],clusterEdges:[]};if(o===ht.EuclideanDistance&&!s.every((function(t){return t.hasOwnProperty(n)})))return c;var h=[],d=[];if(o===ht.EuclideanDistance&&(h=ct(s,n),d=ft(h,r,i)),!d.length)return c;for(var f=(0,x.uniq)(d.map((function(t){return t.join("")}))),p=Math.min(e,s.length,f.length),m=0;mw&&!g.find((function(e){return(0,x.isEqual)(e,xt(o,d,s[t].originIndex))}))&&(w=i,_=t)}},E=0;E=0;I--)y[Number(s[m].clusterId)][I].id===s[m].id&&y[Number(s[m].clusterId)].splice(I,1);s[m].clusterId=String(M),y[M].push(s[m])}}var N=!1;for(m=0;m=1e3)break}var R=[],D={};return l.forEach((function(t){var e,n,r=t.source,i=t.target,o=null===(e=s.find((function(t){return t.id===r})))||void 0===e?void 0:e.clusterId,a=null===(n=s.find((function(t){return t.id===i})))||void 0===n?void 0:n.clusterId,u="".concat(o,"---").concat(a);if(D[u])D[u].count++;else{var l={source:o,target:a,count:1};D[u]=l,R.push(l)}})),{clusters:y,clusterEdges:R}};const _t=function(t,e){var n=new lt(e),r=n.norm2(),i=new lt(t),o=i.norm2(),a=n.dot(i),s=r*o,u=s?a/s:0;return u};const St=function(t,e,n,r,i){void 0===t&&(t=[]),void 0===n&&(n=void 0),void 0===r&&(r=[]),void 0===i&&(i=[]);var o=(0,x.clone)(t.filter((function(t){return t.id!==e.id}))),a=t.findIndex((function(t){return t.id===e.id})),s=ct(t,n),u=ft(s,r,i),l=u[a],c=[];return o.forEach((function(t,n){if(t.id!==e.id){var r=u[n],i=_t(r,l);c.push(i),t.cosineSimilarity=i}})),o.sort((function(t,e){return e.cosineSimilarity-t.cosineSimilarity})),{allCosineSimilarity:c,similarNodes:o}};var Et=function(){function t(t){this.count=t.length,this.parent={};for(var e=0,n=t;e0&&(this.list[0]=e,this.moveDown(0)),t},t.prototype.insert=function(t){if(null!==t){this.list.push(t);var e=this.list.length-1;return this.moveUp(e),!0}return!1},t.prototype.moveUp=function(t){for(var e=this.getParent(t);t&&t>0&&this.compareFn(this.list[e],this.list[t])>0;){var n=this.list[e];this.list[e]=this.list[t],this.list[t]=n,t=e,e=this.getParent(t)}},t.prototype.moveDown=function(t){var e,n=t,r=this.getLeft(t),i=this.getRight(t),o=this.list.length;null!==r&&r0?n=r:null!==i&&i0&&(n=i),t!==n&&(e=[this.list[n],this.list[t]],this.list[t]=e[0],this.list[n]=e[1],this.moveDown(n))},t}();const Tt=Ct;var kt=function(t,e){var n=[],r=t.nodes,i=void 0===r?[]:r,o=t.edges,a=void 0===o?[]:o;if(0===i.length)return n;var s=i[0],u=new Set;u.add(s);var l=new Tt((function(t,n){return e?t.weight-n.weight:0}));for(U(s.id,a).forEach((function(t){l.insert(t)}));!l.isEmpty();){var c=l.delMin(),h=c.source,d=c.target;u.has(h)&&u.has(d)||(n.push(c),u.has(h)||(u.add(h),U(h,a).forEach((function(t){l.insert(t)}))),u.has(d)||(u.add(d),U(d,a).forEach((function(t){l.insert(t)}))))}return n},It=function(t,e){var n=[],r=t.nodes,i=void 0===r?[]:r,o=t.edges,a=void 0===o?[]:o;if(0===i.length)return n;var s=a.map((function(t){return t}));e&&s.sort((function(t,e){return t.weight-e.weight}));for(var u=new At(i.map((function(t){return t.id})));s.length>0;){var l=s.shift(),c=l.source,h=l.target;u.connected(c,h)||(n.push(l),u.union(c,h))}return n};const Nt=function(t,e,n){return n?{prim:kt,kruskal:It}[n](t,e):It(t,e)};const Pt=function(t,e,n){"number"!=typeof e&&(e=1e-6),"number"!=typeof n&&(n=.85);for(var r,i=1,o=0,a=1e3,s=t.nodes,u=void 0===s?[]:s,l=t.edges,c=void 0===l?[]:l,h=u.length,d={},f={},p=0;p0&&i>e;){o=0;for(p=0;p0&&(r+=f[b]/x)}d[g]=n*r,o+=d[g]}}o=(1-o)/h,i=0;for(p=0;p=0;e--){var n=this.dfsEdgeList[e],r=n.fromNode,i=n.toNode;rh||r.hasNode(o[c.to])||(e.labelp;g--){if("break"===m(g))break}if(d){var v=t.findMinLabel(h);o.dfsEdgeList.push(new zt(c,f,Ot,v.edgeLabel,Ot));var y=o.dfsEdgeList.length-1;return t.dfsCode.dfsEdgeList[y]===o.dfsEdgeList[y]&&a(h[v.edgeLabel].projected)}var b={};d=!1;var x=0;s.forEach((function(e){var n=new Bt(e),o=t.findForwardPureEdges(r,n.edges[u[0]],l,n);o.length>0&&(d=!0,x=c,o.forEach((function(t){var n="".concat(t.label,"-").concat(i[t.to].label);b[n]||(b[n]={projected:[],edgeLabel:t.label,nodeLabel2:i[t.to].label}),b[n].projected.push({graphId:r.id,edge:t,preNode:e})})))}));var w=u.length,_=function(e){if(d)return"break";var n=u[e];s.forEach((function(e){var a=new Bt(e),s=t.findForwardRmpathEdges(r,a.edges[n],l,a);s.length>0&&(d=!0,x=o.dfsEdgeList[n].fromNode,s.forEach((function(t){var n="".concat(t.label,"-").concat(i[t.to].label);b[n]||(b[n]={projected:[],edgeLabel:t.label,nodeLabel2:i[t.to].label}),b[n].projected.push({graphId:r.id,edge:t,preNode:e})})))}))};for(g=0;g=0;h--){var d=e.findBackwardEdge(u,c.edges[r[h]],c.edges[r[0]],c);if(d){var f="".concat(e.dfsCode.dfsEdgeList[r[h]].fromNode,"-").concat(d.label);s[f]||(s[f]={projected:[],toNodeId:e.dfsCode.dfsEdgeList[r[h]].fromNode,edgeLabel:d.label}),s[f].projected.push({graphId:t.graphId,edge:d,preNode:t})}}if(!(n>=e.maxNodeNum)){e.findForwardPureEdges(u,c.edges[r[0]],o,c).forEach((function(e){var n="".concat(i,"-").concat(e.label,"-").concat(l[e.to].label);a[n]||(a[n]={projected:[],fromNodeId:i,edgeLabel:e.label,nodeLabel2:l[e.to].label}),a[n].projected.push({graphId:t.graphId,edge:e,preNode:t})}));var p=function(n){e.findForwardRmpathEdges(u,c.edges[r[n]],o,c).forEach((function(i){var o="".concat(e.dfsCode.dfsEdgeList[r[n]].fromNode,"-").concat(i.label,"-").concat(l[i.to].label);a[o]||(a[o]={projected:[],fromNodeId:e.dfsCode.dfsEdgeList[r[n]].fromNode,edgeLabel:i.label,nodeLabel2:l[i.to].label}),a[o].projected.push({graphId:t.graphId,edge:i,preNode:t})}))};for(h=0;hi){var a=i;i=r,r=a}var c=t.label,h="".concat(n,"-").concat(r,"-").concat(c,"-").concat(i),d="".concat(r,"-").concat(c,"-").concat(i);if(!o[d]){var f=o[d]||0;f++,o[d]=f}s[h]={graphId:n,nodeLabel1:r,edgeLabel:c,nodeLabel2:i}}))}))})),Object.keys(i).forEach((function(t){if(!(i[t]e&&(s=e);var r=n[t.id].inDegree;u>r&&(u=r);var i=n[t.id].outDegree;l>i&&(l=i)})),t[e]={degree:s,inDegree:u,outDegree:l}),{minPatternNodeLabelDegree:s,minPatternNodeLabelInDegree:u,minPatternNodeLabelOutDegree:l}};const Qt=function(t,e,n,r,i,o,a){var s;if(void 0===n&&(n=!1),void 0===o&&(o="cluster"),void 0===a&&(a="cluster"),t&&t.nodes){var u=t.nodes.length;if(u){var l=at(t,n),c=at(e,n),h=$t(t.nodes,l,n),d=$t(e.nodes,c,n),f=Yt(t.nodes,o),p=f.nodeMap,m=f.nodeLabelMap,g=Yt(e.nodes,o),v=g.nodeMap,y=g.nodeLabelMap;qt(t.edges,a,p);var x=qt(e.edges,a,v).edgeLabelMap,w=[];null==c||c.forEach((function(t){w=w.concat(t)})),i||(i=Math.max.apply(Math,(0,b.__spreadArray)((0,b.__spreadArray)([],w,!1),[2],!1))),r||(r=i);var _=Ht(t,l,o,r),S=Ht(e,c,o,r),E=function(t,e,n,r,i){var o=Math.ceil(n/e),a={},s=0;return r.forEach((function(t,r){for(var u=0,l=0,c=t.nodeIdxs,h=t.neighborNum-1;u2*e)););if(f<2*e&&(a["".concat(r,"-").concat(d)]={start:r,end:d,distance:i[r][d]},u++,++s>=n))return a;if(++l>2*e)break}uR&&(R=n.length,O=n,L=e,P=t)}));var D={},z={},F={},B={},U={},j={};Object.keys(y).forEach((function(r,i){U[r]=[],n&&(j[r]=[]);var s=-1/0,u=y[r],l={};u.forEach((function(t){var e=d["".concat(P.id,"-").concat(t.id)];if(e&&U[r].push(e),sU[r][d]){l=!0;break}if(l)return O.splice(e,1),"continue";var f={};i.neighbors.forEach((function(t){var e=h["".concat(n.id,"-").concat(t.id)];f["".concat(n.id,"-").concat(t.id)]={start:p[n.id].idx,end:p[t.id].idx,distance:e}})),A=Wt(f,_,t,A);var m=[];Object.keys(f).forEach((function(t){if(N[t])m.push(N[t]);else{var e=A[t];N[t]=Xt(e,I,o,a),m.push(N[t])}})),m=m.sort((function(t,e){return e-t}));var g=!1;for(d=0;d=0;m--)f(m)}));var V=[];null==O||O.forEach((function(r){for(var s=p[r.id].idx,u=Gt(t.nodes,l[s],s,o,i).neighbors,c=!1,d=u.length-1;d>=0;d--){if(u.length+1U[m][x])u.splice(d,1);else{if(n){var w="".concat(f.id,"-").concat(r.id),S=h[w];if(x=j[m].length-1,S>j[m][x]){u.splice(d,1);continue}}var E=N[g]?N[g]:Kt(t,r,f,p,b,_,I,o,a,N,A),M="".concat(P.id,"-").concat(m);if(E=0;m--){if("break"===_(m))break}if(w)return V.splice(r,1),"continue";i.edges=c;var S=nt(i,i.nodes[0].id,!1).length;if(Object.keys(S).reverse().forEach((function(t){if(t!==i.nodes[0].id&&!w){if(S[t]===1/0){var e=l[t].node[o];if(u[e]--,u[e]G[r][G[r].length-1]){e=l[t].node[o];if(u[e]--,u[e]=0;M--){var C=i.nodes[M],T=l[C.id].degree,k=l[C.id].inDegree,I=l[C.id].outDegree,N=C[o],O=Zt(D,N,v,y),L=O.minPatternNodeLabelDegree,R=O.minPatternNodeLabelInDegree,z=O.minPatternNodeLabelOutDegree;if(n?T=0;F--){var B=c[F];if(!l[B.source]||!l[B.target]){c.splice(F,1);var U=B[a];if(h[U]--,l[B.source]&&(l[B.source].degree--,l[B.source].outDegree--),l[B.target]&&(l[B.target].degree--,l[B.target].inDegree--),x[U]&&h[U]=0;X--){if("break"===W(X))break}var Y=V.length,q=function(t){var e=V[t],n={};e.edges.forEach((function(t){var e="".concat(t.source,"-").concat(t.target,"-").concat(t.label);n[e]?n[e]++:n[e]=1}));for(var r=function(t){var e=V[t],r={};e.edges.forEach((function(t){var e="".concat(t.source,"-").concat(t.target,"-").concat(t.label);r[e]?r[e]++:r[e]=1}));var i=!0;Object.keys(r).length!==Object.keys(n).length?i=!1:Object.keys(n).forEach((function(t){r[t]!==n[t]&&(i=!1)})),i&&V.splice(t,1)},i=Y-1;i>t;i--)r(i);Y=V.length};for(X=0;X<=Y-1;X++)q(X);return V}}};var Jt=function(){function t(t){void 0===t&&(t=10),this.linkedList=new D,this.maxStep=t}return Object.defineProperty(t.prototype,"length",{get:function(){return this.linkedList.toArray().length},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){return!this.linkedList.head},t.prototype.isMaxStack=function(){return this.toArray().length>=this.maxStep},t.prototype.peek=function(){return this.isEmpty()?null:this.linkedList.head.value},t.prototype.push=function(t){this.linkedList.prepend(t),this.length>this.maxStep&&this.linkedList.deleteTail()},t.prototype.pop=function(){var t=this.linkedList.deleteHead();return t?t.value:null},t.prototype.toArray=function(){return this.linkedList.toArray().map((function(t){return t.value}))},t.prototype.clear=function(){for(;!this.isEmpty();)this.pop()},t}();const te=Jt;var ee=et;const ne={getAdjMatrix:P,breadthFirstSearch:V,connectedComponent:W,getDegree:Y,getInDegree:q,getOutDegree:$,detectCycle:et,detectDirectedCycle:ee,detectAllCycles:tt,detectAllDirectedCycle:J,detectAllUndirectedCycle:Q,depthFirstSearch:Z,dijkstra:nt,findAllPath:ot,findShortestPath:it,floydWarshall:at,labelPropagation:st,louvain:vt,iLouvain:yt,kCore:bt,kMeans:wt,cosineSimilarity:_t,nodesCosineSimilarity:St,minimumSpanningTree:Nt,pageRank:Pt,getNeighbors:B,Stack:te,GADDI:Qt};var re=n(30329),ie=n(40842),oe=N,ae=function(t){return function(e,n){return e[t]-n[t]}},se=function(t,e,n){return t>=e&&t<=n},ue=function(t,e,n,r){var i=n.x-t.x,o=n.y-t.y,a=e.x-t.x,s=e.y-t.y,u=r.x-n.x,l=r.y-n.y,c=a*l-s*u,h=1/c;if(c*c>1e-4*(a*a+s*s)*(u*u+l*l)){var d=(i*l-o*u)*h,f=(i*s-o*a)*h;return se(d,0,1)&&se(f,0,1)?{x:t.x+d*a,y:t.y+d*s}:null}return null},le=function(t,e){var n=t.x,r=t.y,i=t.width,o=t.height,a=[],s={x:n+i/2,y:r+o/2};a.push({x:n,y:r}),a.push({x:n+i,y:r}),a.push({x:n+i,y:r+o}),a.push({x:n,y:r+o}),a.push({x:n,y:r});for(var u=null,l=1;le[r][o]+e[o][i]&&(e[r][i]=e[r][o]+e[o][i]);return e},ye=function(t,e){var n=t.nodes,r=t.edges,i=[],o={};if(!n)throw new Error("invalid nodes data!");return n&&n.forEach((function(t,e){o[t.id]=e;i.push([])})),r&&r.forEach((function(t){var n=t.source,r=t.target,a=o[n],s=o[r];i[a][s]=1,e||(i[s][a]=1)})),i},be=function(t,e){t.translate(e.x,e.y)},xe=function(t,e,n,r){void 0===r&&(r={duration:500});var i=t.getMatrix();i||(i=[1,0,0,0,1,0,0,0,1]);var o=t.getCanvasBBox(),a=e.x-o.minX,s=e.y-o.minY;if(n){var u=a*i[0],l=s*i[4],c=0,h=0,d=0,f=0;t.animate((function(t){return i=oe(i,[["t",(d=u*t)-c,(f=l*t)-h]]),c=d,h=f,{matrix:i}}),r)}else{var p=oe(i,[["t",a,s]]);t.setMatrix(p)}},we=function(t,e){var n=t.getMatrix();n||(n=[1,0,0,0,1,0,0,0,1]);var r=e;(0,x.isArray)(e)||(r=[e,e]),(0,x.isArray)(e)&&1===e.length&&(r=[e[0],e[0]]),n=oe(n,[["s",r[0],r[1]]]),t.setMatrix(n)},_e=function(t,e){var n=t.getMatrix();n||(n=[1,0,0,0,1,0,0,0,1]),n=oe(n,[["r",e]]),t.setMatrix(n)},Se=function(t,e,n){for(var r=[],i=0;i0!=o(u[1]-n)>0&&o(e-(n-s[1])*(s[0]-u[0])/(s[1]-u[1])-s[0])<0&&(r=!r)}return r},Me=function(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxY1){var a=t[0],s=t[n-1];e.push({from:{x:s[0],y:s[1]},to:{x:a[0],y:a[1]}})}return e};if(t.length<2||e.length<2)return!1;var i=n(t),o=n(e);if(!Me(i,o))return!1;var a=!1;if((0,x.each)(e,(function(e){if(Ae(t,e[0],e[1]))return a=!0,!1})),a)return!0;if((0,x.each)(t,(function(t){if(Ae(e,t[0],t[1]))return a=!0,!1})),a)return!0;var s=r(t),u=r(e),l=!1;return(0,x.each)(u,(function(t){if(function(t,e){var n=!1;return(0,x.each)(t,(function(t){if(ue(t.from,t.to,e.from,e.to))return n=!0,!1})),n}(s,t))return l=!0,!1})),l},Te=function(){function t(t,e,n,r){this.x1=t,this.y1=e,this.x2=n,this.y2=r}return t.prototype.getBBox=function(){var t=Math.min(this.x1,this.x2),e=Math.min(this.y1,this.y2),n=Math.max(this.x1,this.x2),r=Math.max(this.y1,this.y2);return{x:t,y:e,minX:t,minY:e,maxX:n,maxY:r,width:n-t,height:r-e}},t}(),ke=function(t,e){return{top:[t.minX,t.minY,t.maxX,t.minY],left:[t.minX,t.minY,t.minX,t.maxY],bottom:[t.minX,t.maxY,t.maxX,t.maxY],right:[t.maxX,t.minY,t.maxX,t.maxY]}[e]},Ie=function(t,e){var n=(e.x2-e.x1)*(t.y1-e.y1)-(e.y2-e.y1)*(t.x1-e.x1),r=(t.x2-t.x1)*(t.y1-e.y1)-(t.y2-t.y1)*(t.x1-e.x1),i=(e.y2-e.y1)*(t.x2-t.x1)-(e.x2-e.x1)*(t.y2-t.y1);if(i){var o=n/i,a=r/i;if(o>=0&&o<=1&&a>=0&&a<=1)return o}return Number.POSITIVE_INFINITY},Ne=function(t,e){for(var n=["top","left","bottom","right"],r=t.getBBox(),i=0,o=[],a=0;a<4;a++){var s=ke(r,n[a]),u=s[0],l=s[1],c=s[2],h=s[3];o[a]=ue({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},{x:u,y:l},{x:c,y:h}),o[a]&&(i+=1)}return[o,i]},Pe=function(t,e){for(var n=["top","left","bottom","right"],r=t.getBBox(),i=Number.POSITIVE_INFINITY,o=0,a=0;a<4;a++){var s=ke(r,n[a]),u=s[0],l=s[1],c=s[2],h=s[3],d=Ie(e,new Te(u,l,c,h));(d=Math.abs(d-.5))>=0&&d<=1&&(o+=1,i=d0){for(var r=0,i=t;re.x+e.width,i=t.y>e.y+e.height,o=t.y":.604998779296875,"/":.5,"?":.53699951171875};var Qe=Math.PI,Je=Math.sin,tn=Math.cos,en=Je(Qe/8),nn=tn(Qe/8),rn=function(t,e){var n=t.getBBox(),r={x:n.minX,y:n.minY},i={x:n.maxX,y:n.maxY};if(e){var o=e.getMatrix();o||(o=[1,0,0,0,1,0,0,0,1]),r=de(r,o),i=de(i,o)}var a=r.x,s=r.y,u=i.x,l=i.y;return{x:a,y:s,minX:a,minY:s,maxX:u,maxY:l,width:u-a,height:l-s}},on=function(t){var e=t.sourceNode||t.targetNode,n=e.get("group").getMatrix();n||(n=[1,0,0,0,1,0,0,0,1]);var r=e.getKeyShape(),i=r.getBBox(),o=t.loopCfg||{},a=o.dist||2*Math.max(i.width,i.height),s=o.position||Ke.defaultLoopPosition,u=[(i.minX+i.maxX)/2+n[6],(i.minY+i.maxY)/2+n[7]],l=[t.startPoint.x,t.startPoint.y],c=[t.endPoint.x,t.endPoint.y],h=i.height/2,d=i.width/2,f=h,p=h,m=f*en,g=f*nn,v=p*en,y=p*nn,b=r.get("type"),x=Math.min(h/2,d/2),w=Math.min(h,d),_=(null==o?void 0:o.pointPadding)?Math.min(w,null==o?void 0:o.pointPadding):x;if(l[0]===c[0]&&l[1]===c[1]){switch(s){case"top":"circle"===b?(l=[u[0]-m,u[1]-g],c=[u[0]+v,u[1]-y]):(l=[u[0]-_,u[1]-h],c=[u[0]+_,u[1]-h]);break;case"top-right":f=h,p=d,"circle"===b?(l=[u[0]+(m=f*en),u[1]-(g=f*nn)],c=[u[0]+(y=p*nn),u[1]-(v=p*en)]):(l=[u[0]+d-_,u[1]-h],c=[u[0]+d,u[1]-h+_]);break;case"right":f=d,p=d,"circle"===b?(l=[u[0]+(g=f*nn),u[1]-(m=f*en)],c=[u[0]+(y=p*nn),u[1]+(v=p*en)]):(l=[u[0]+d,u[1]-_],c=[u[0]+d,u[1]+_]);break;case"bottom-right":f=d,p=h,"circle"===b?(l=[u[0]+(g=f*nn),u[1]+(m=f*en)],c=[u[0]+(v=p*en),u[1]+(y=p*nn)]):(l=[u[0]+d,u[1]+h-_],c=[u[0]+d-_,u[1]+h]);break;case"bottom":f=h,p=h,"circle"===b?(l=[u[0]+(m=f*en),u[1]+(g=f*nn)],c=[u[0]-(v=p*en),u[1]+(y=p*nn)]):(l=[u[0]-_,u[1]+h],c=[u[0]+_,u[1]+h]);break;case"bottom-left":f=h,p=d,"circle"===b?(l=[u[0]-(m=f*en),u[1]+(g=f*nn)],c=[u[0]-(y=p*nn),u[1]+(v=p*en)]):(l=[u[0]-d,u[1]+h-_],c=[u[0]-d+_,u[1]+h]);break;case"left":f=d,p=d,"circle"===b?(l=[u[0]-(g=f*nn),u[1]+(m=f*en)],c=[u[0]-(y=p*nn),u[1]-(v=p*en)]):(l=[u[0]-d,u[1]-_],c=[u[0]-d,u[1]+_]);break;case"top-left":f=d,p=h,"circle"===b?(l=[u[0]-(g=f*nn),u[1]-(m=f*en)],c=[u[0]-(v=p*en),u[1]-(y=p*nn)]):(l=[u[0]-d+_,u[1]-h],c=[u[0]-d,u[1]-h+_]);break;default:l=[u[0]-(m=(f=d)*en),u[1]-(g=f*nn)],c=[u[0]+(v=(p=d)*en),u[1]-(y=p*nn)]}if(!1===o.clockwise){var S=[l[0],l[1]];l=[c[0],c[1]],c=[S[0],S[1]]}}var E=[l[0]-u[0],l[1]-u[1]],A=(f+a)/f,M=(p+a)/p;!1===o.clockwise&&(A=(p+a)/p,M=(f+a)/f);var C=ie.scale([0,0],E,A),T=[u[0]+C[0],u[1]+C[1]],k=[c[0]-u[0],c[1]-u[1]],I=ie.scale([0,0],k,M),N=[u[0]+I[0],u[1]+I[1]];return t.startPoint={x:l[0],y:l[1]},t.endPoint={x:c[0],y:c[1]},t.controlPoints=[{x:T[0],y:T[1]},{x:N[0],y:N[1]}],t},an=function(t,e,n,r,i){var o=1e-4,a=[],s=null==t?void 0:t.getPoint(e);if(!s)return{x:0,y:0,angle:0};if(e.9999)a=t.getEndTangent();else{var u=null==t?void 0:t.getPoint(e+o);a.push([s.x,s.y]),a.push([u.x,u.y])}var l=Math.atan2(a[1][1]-a[0][1],a[1][0]-a[0][0]);if(l<0&&(l+=2*Qe),n&&(s.x+=tn(l)*n,s.y+=Je(l)*n),r){var c=l-Qe/2;l>.5*Qe&&l<1.5*Qe&&(c-=Qe),s.x+=tn(c)*r,s.y+=Je(c)*r}var h={x:s.x,y:s.y,angle:l};return i?(l>.5*Qe&&l<1.5*Qe&&(l-=Qe),(0,b.__assign)({rotate:l},h)):h},sn=function t(e,n,r,i){if(!1===i(e,n,r))return!1;if(e&&e.children)for(var o=e.children.length-1;o>=0;o--)if(!t(e.children[o],e,o,i))return!1;return!0},un=function t(e,n,r,i){if(e&&e.children)for(var o=e.children.length-1;o>=0;o--)if(!t(e.children[o],e,o,i))return;return!1!==i(e,n,r)},ln=function(t,e){"function"==typeof e&&sn(t,null,-1,e)},cn=function(t,e){"function"==typeof e&&un(t,null,-1,e)},hn=function(t,e){return e*(Ze[t]||1)},dn=function(t,e){var n=0,r=new RegExp("[一-龥]+");return t.split("").forEach((function(t){r.test(t)?n+=e:n+=hn(t,e)})),[n,e]},fn=function(t,e){return"number"!=typeof e||e<=0||e>=t.length?t:t.substring(0,e)+"..."},pn=function(t,e){var n=[],r={},i={};t.forEach((function(t){i[t.id]=t})),t.forEach((function(t,e){var o=(0,x.clone)(t);o.itemType="combo",o.children=void 0,o.parentId===o.id?(console.warn("The parentId for combo ".concat(o.id," can not be the same as the combo's id")),delete o.parentId):o.parentId&&!i[o.parentId]&&(console.warn("The parent combo for combo ".concat(o.id," does not exist!")),delete o.parentId);var a=r[o.id];if(a){if(o.children=a.children,r[o.id]=o,!(a=o).parentId)return void n.push(a);var s=r[a.parentId];if(s)s.children?s.children.push(o):s.children=[o];else{var u={id:a.parentId,children:[a]};r[a.parentId]=u,r[o.id]=o}}else if((0,x.isString)(t.parentId)){var l=r[t.parentId];if(l)l.children?l.children.push(o):l.children=[o],r[o.id]=o;else{var c={id:t.parentId,children:[o]};r[c.id]=c,r[o.id]=o}}else n.push(o),r[o.id]=o}));var o={};(e||[]).forEach((function(t){o[t.id]=t;var e=r[t.comboId];if(e){var n={id:t.id,comboId:t.comboId};e.children?e.children.push(n):e.children=[n],n.itemType="node",r[t.id]=n}}));var a=0;return n.forEach((function(t){t.depth=a+10,ln(t,(function(t){var e,n=r[t.id].itemType;e="node"===n?r[t.comboId]:r[t.parentId],t.depth=e&&"node"===n?a+1:a+10,a-1&&o.splice(l,1),s||(i={id:e,itemType:"node",comboId:n},a[e]={children:void 0}),e){var c=!1;if(n){var h=0;(t||[]).forEach((function(t){c||ln(t,(function(t){return n!==t.id||(c=!0,t.children?t.children.push(i):t.children=[i],h=t.depth,"node"===i.itemType?i.depth=h+2:i.depth=h+1,!1)}))}))}else n&&c||"node"===i.itemType||t.push(i);var d=i.depth;ln(i,(function(t){return"node"===t.itemType?d+=2:d+=1,t.depth=d,!0}))}return t},gn=function(t,e,n){var r={minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0,x:void 0,y:void 0,width:void 0,height:void 0,centerX:void 0,centerY:void 0};if(!t||0===t.length){var i=(null==n?void 0:n.getModel())||{},o=i.x,a=i.y,s=i.fixSize,u=i.collapsed,l=i.fixCollapseSize,c=u?l:s,h=(0,x.isArray)(c)?c:[c,c],d=h[0],f=h[1],p=[d/2,f/2];return{minX:o-p[0],minY:a-p[1],maxX:o+p[0],maxY:a+p[1],x:o,y:a,width:d,height:f}}return t.forEach((function(t){var n=e.findById(t.id);if(n&&n.isVisible()){n.set("bboxCanvasCache",void 0);var i=n.getCanvasBBox();i.x&&r.minX>i.minX&&(r.minX=i.minX),i.y&&r.minY>i.minY&&(r.minY=i.minY),i.x&&r.maxX2&&(n.push([i].concat(a.splice(0,2))),s="l",i="m"===i?"l":"L"),"o"===s&&1===a.length&&n.push([i,a[0]]),"r"===s)n.push([i].concat(a));else for(;a.length>=e[s]&&(n.push([i].concat(a.splice(0,e[s]))),e[s]););return t})),n},Cn=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var o=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?o[3]={x:+t[0],y:+t[1]}:i-2===r&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?o[3]=o[2]:r||(o[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n},Tn=function(t,e,n,r,i){var o=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var a=Math.PI/180,s=t+n*Math.cos(-r*a),u=t+n*Math.cos(-i*a);o=[["M",s,e+n*Math.sin(-r*a)],["A",n,n,0,+(i-r>180),0,u,e+n*Math.sin(-i*a)]]}else o=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return o},kn=function(t){if(!(t=Mn(t))||!t.length)return[["M",0,0]];var e,n,r=[],i=0,o=0,a=0,s=0,u=0;"M"===t[0][0]&&(a=i=+t[0][1],s=o=+t[0][2],u++,r[0]=["M",i,o]);for(var l=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),c=void 0,h=void 0,d=u,f=t.length;d1&&(n*=w=Math.sqrt(w),r*=w);var _=n*n,S=r*r,E=(o===a?-1:1)*Math.sqrt(Math.abs((_*S-_*x*x-S*b*b)/(_*x*x+S*b*b)));f=E*n*x/r+(t+s)/2,p=E*-r*b/n+(e+u)/2,h=Math.asin(((e-p)/r).toFixed(9)),d=Math.asin(((u-p)/r).toFixed(9)),h=td&&(h-=2*Math.PI),!a&&d>h&&(d-=2*Math.PI)}var A=d-h;if(Math.abs(A)>m){var M=d,C=s,T=u;d=h+m*(a&&d>h?1:-1),s=f+n*Math.cos(d),u=p+r*Math.sin(d),v=Pn(s,u,n,r,i,0,a,C,T,[d,M,f,p])}A=d-h;var k=Math.cos(h),I=Math.sin(h),N=Math.cos(d),P=Math.sin(d),O=Math.tan(A/4),L=4/3*n*O,R=4/3*r*O,D=[t,e],z=[t+L*I,e-R*k],F=[s+L*P,u-R*N],B=[s,u];if(z[0]=2*D[0]-z[0],z[1]=2*D[1]-z[1],l)return[z,F,B].concat(v);for(var U=[],j=0,V=(v=[z,F,B].concat(v).join().split(",")).length;j7){t[e].shift();for(var o=t[e];o.length;)s[e]="A",i&&(u[e]="A"),t.splice(e++,0,["C"].concat(o.splice(0,6)));t.splice(e,1),n=Math.max(r.length,i&&i.length||0)}},f=function(t,e,o,a,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",a.x,a.y]),o.bx=0,o.by=0,o.x=t[s][1],o.y=t[s][2],n=Math.max(r.length,i&&i.length||0))};n=Math.max(r.length,i&&i.length||0);for(var p=0;p1?1:u<0?0:u)/2,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,f=0;f<12;f++){var p=l*c[f]+l,m=Dn(p,t,n,i,a),g=Dn(p,e,r,o,s),v=m*m+g*g;d+=h[f]*Math.sqrt(v)}return l*d},Fn=function(t,e,n,r,i,o,a,s){for(var u,l,c,h,d=[],f=[[],[]],p=0;p<2;++p)if(0===p?(l=6*t-12*n+6*i,u=-3*t+9*n-9*i+3*a,c=3*n-3*t):(l=6*e-12*r+6*o,u=-3*e+9*r-9*o+3*s,c=3*r-3*e),Math.abs(u)<1e-12){if(Math.abs(l)<1e-12)continue;(h=-c/l)>0&&h<1&&d.push(h)}else{var m=l*l-4*c*u,g=Math.sqrt(m);if(!(m<0)){var v=(-l+g)/(2*u);v>0&&v<1&&d.push(v);var y=(-l-g)/(2*u);y>0&&y<1&&d.push(y)}}for(var b,x=d.length,w=x;x--;)b=1-(h=d[x]),f[0][x]=b*b*b*t+3*b*b*h*n+3*b*h*h*i+h*h*h*a,f[1][x]=b*b*b*e+3*b*b*h*r+3*b*h*h*o+h*h*h*s;return f[0][w]=t,f[1][w]=e,f[0][w+1]=a,f[1][w+1]=s,f[0].length=f[1].length=w+2,{min:{x:Math.min.apply(0,f[0]),y:Math.min.apply(0,f[1])},max:{x:Math.max.apply(0,f[0]),y:Math.max.apply(0,f[1])}}},Bn=function(t,e,n,r,i,o,a,s){if(!(Math.max(t,n)Math.max(i,a)||Math.max(e,r)Math.max(o,s))){var u=(t-n)*(o-s)-(e-r)*(i-a);if(u){var l=((t*r-e*n)*(i-a)-(t-n)*(i*s-o*a))/u,c=((t*r-e*n)*(o-s)-(e-r)*(i*s-o*a))/u,h=+l.toFixed(2),d=+c.toFixed(2);if(!(h<+Math.min(t,n).toFixed(2)||h>+Math.max(t,n).toFixed(2)||h<+Math.min(i,a).toFixed(2)||h>+Math.max(i,a).toFixed(2)||d<+Math.min(e,r).toFixed(2)||d>+Math.max(e,r).toFixed(2)||d<+Math.min(o,s).toFixed(2)||d>+Math.max(o,s).toFixed(2)))return{x:l,y:c}}}},Un=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},jn=function(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var o=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return o.parsePathArray=Rn,o},Vn=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:jn(t,e,n,r),vb:[t,e,n,r].join(" ")}},Hn=function(t,e,n,r,i,o,a,s){(0,x.isArray)(t)||(t=[t,e,n,r,i,o,a,s]);var u=Fn.apply(null,t);return Vn(u.min.x,u.min.y,u.max.x-u.min.x,u.max.y-u.min.y)},Gn=function(t,e,n,r,i,o,a,s,u){var l=1-u,c=Math.pow(l,3),h=Math.pow(l,2),d=u*u,f=d*u,p=t+2*u*(n-t)+d*(i-2*n+t),m=e+2*u*(r-e)+d*(o-2*r+e),g=n+2*u*(i-n)+d*(a-2*i+n),v=r+2*u*(o-r)+d*(s-2*o+r);return{x:c*t+3*h*u*n+3*l*u*u*i+f*a,y:c*e+3*h*u*r+3*l*u*u*o+f*s,m:{x:p,y:m},n:{x:g,y:v},start:{x:l*t+u*n,y:l*e+u*r},end:{x:l*i+u*a,y:l*o+u*s},alpha:90-180*Math.atan2(p-g,m-v)/Math.PI}},Wn=function(t,e,n){if(!function(t,e){return t=Vn(t),e=Vn(e),Un(e,t.x,t.y)||Un(e,t.x2,t.y)||Un(e,t.x,t.y2)||Un(e,t.x2,t.y2)||Un(t,e.x,e.y)||Un(t,e.x2,e.y)||Un(t,e.x,e.y2)||Un(t,e.x2,e.y2)||(t.xe.x||e.xt.x)&&(t.ye.y||e.yt.y)}(Hn(t),Hn(e)))return n?0:[];for(var r=~~(zn.apply(0,t)/8),i=~~(zn.apply(0,e)/8),o=[],a=[],s={},u=n?0:[],l=0;l=0&&b<=1&&x>=0&&x<=1&&(n?u+=1:u.push({x:y.x,y:y.y,t1:b,t2:x}))}}return u},Xn=function(t,e){return function(t,e,n){var r,i,o,a,s,u,l,c,h,d;t=On(t),e=On(e);for(var f=n?0:[],p=0,m=t.length;p=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e.concat(t[t.length-1])}))}(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var o=0;o<=n-1;o++)r.push(i)}return r},$n=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,o=[];if(1===t.length&&"M"===t[0][0]){for(var a=0;a=0;u--)a=o[u].index,"add"===o[u].type?t.splice(a,0,[].concat(t[a])):t.splice(a,1)}var h=i-(r=t.length);if(r0)){t[r]=e[r];break}n=Jn(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=Jn(n,t[r-1],2)}t[r]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=Jn(n,t[r-1],1)}t[r]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[r]=e[r]}return t};const nr=function(){function t(t,e){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=e,this.timeStamp=e.timeStamp}return t.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.toString=function(){return"[Event (type="+this.type+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}();function rr(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}var ir="undefined"!=typeof window&&void 0!==window.document;function or(t,e){if(t.isCanvas())return!0;for(var n=e.getParent(),r=!1;n;){if(n===t){r=!0;break}n=n.getParent()}return r}function ar(t){return t.cfg.visible&&t.cfg.capture}var sr=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=n.getDefaultCfg();return n.cfg=(0,x.mix)(r,e),n}return(0,b.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{}},e.prototype.get=function(t){return this.cfg[t]},e.prototype.set=function(t,e){this.cfg[t]=e},e.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},e}(M);var ur=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i0?r=function(t,e){if(e.onFrame)return t;var n=e.startTime,r=e.delay,i=e.duration,o=Object.prototype.hasOwnProperty;return(0,x.each)(t,(function(t){n+rt.delay&&(0,x.each)(e.toAttrs,(function(e,n){o.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])}))})),t}(r,y):n.addAnimator(this),r.push(y),this.set("animations",r),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0);var n=this.get("animations");(0,x.each)(n,(function(n){t&&(n.onFrame?e.attr(n.onFrame(1)):e.attr(n.toAttrs)),n.callback&&n.callback()})),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),n=t.getTime();return(0,x.each)(e,(function(t){t._paused=!0,t._pauseTime=n,t.pauseCallback&&t.pauseCallback()})),this.set("_pause",{isPaused:!0,pauseTime:n}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline").getTime(),e=this.get("animations"),n=this.get("_pause").pauseTime;return(0,x.each)(e,(function(e){e.startTime=e.startTime+(t-n),e._paused=!1,e._pauseTime=null,e.resumeCallback&&e.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",e),this},e.prototype.emitDelegation=function(t,e){var n,r=this,i=e.propagationPath;this.getEvents();"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var o=function(t){var o=i[t],s=o.get("name");if(s){if((o.isGroup()||o.isCanvas&&o.isCanvas())&&n&&or(o,n))return"break";(0,x.isArray)(s)?(0,x.each)(s,(function(t){r.emitDelegateEvent(o,t,e)})):a.emitDelegateEvent(o,s,e)}},a=this,s=0;s0)}));return i.length>0?(0,x.each)(i,(function(i){var o=i.getBBox(),a=o.minX,s=o.maxX,u=o.minY,l=o.maxY;ae&&(e=s),ur&&(r=l)})):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return i.length>0?(0,x.each)(i,(function(i){var o=i.getCanvasBBox(),a=o.minX,s=o.maxX,u=o.minY,l=o.maxY;ae&&(e=s),ur&&(r=l)})):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.children=[],e},e.prototype.onAttrChange=function(e,n,r){if(t.prototype.onAttrChange.call(this,e,n,r),"matrix"===e){var i=this.getTotalMatrix();this._applyChildrenMarix(i)}},e.prototype.applyMatrix=function(e){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var r=this.getTotalMatrix();r!==n&&this._applyChildrenMarix(r)},e.prototype._applyChildrenMarix=function(t){var e=this.getChildren();(0,x.each)(e,(function(e){e.applyMatrix(t)}))},e.prototype.addShape=function(){for(var t=[],e=0;e=0;o--){var a=t[o];if(ar(a)&&(a.isGroup()?i=a.getShape(e,n,r):a.isHit(e,n)&&(i=a)),i)break}return i},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),r=this.get("timeline"),i=t.getParent();i&&function(t,e,n){void 0===n&&(n=!0),n?e.destroy():(e.set("parent",null),e.set("canvas",null)),rr(t.getChildren(),e)}(i,t,!1),t.set("parent",this),e&&Or(t,e),r&&Lr(t,r),n.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var e=this.getTotalMatrix();e&&t.applyMatrix(e)},e.prototype.getChildren=function(){return this.get("children")||[]},e.prototype.sort=function(){var t=this.getChildren();(0,x.each)(t,(function(t,e){return t[Pr]=e,t})),t.sort(function(t){return function(e,n){var r=t(e,n);return 0===r?e[Pr]-n[Pr]:r}}((function(t,e){return t.get("zIndex")-e.get("zIndex")}))),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),e=t.length-1;e>=0;e--)t[e].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){return this.getChildren()[t]},e.prototype.getCount=function(){return this.getChildren().length},e.prototype.contain=function(t){return this.getChildren().indexOf(t)>-1},e.prototype.removeChild=function(t,e){void 0===e&&(e=!0),this.contain(t)&&t.remove(e)},e.prototype.findAll=function(t){var e=[],n=this.getChildren();return(0,x.each)(n,(function(n){t(n)&&e.push(n),n.isGroup()&&(e=e.concat(n.findAll(t)))})),e},e.prototype.find=function(t){var e=null,n=this.getChildren();return(0,x.each)(n,(function(n){if(t(n)?e=n:n.isGroup()&&(e=n.find(t)),e)return!1})),e},e.prototype.findById=function(t){return this.find((function(e){return e.get("id")===t}))},e.prototype.findByClassName=function(t){return this.find((function(e){return e.get("className")===t}))},e.prototype.findAllByName=function(t){return this.findAll((function(e){return e.get("name")===t}))},e}(Ir);const Dr=Rr;var zr,Fr,Br=0,Ur=0,jr=0,Vr=1e3,Hr=0,Gr=0,Wr=0,Xr="object"==typeof performance&&performance.now?performance:Date,Yr="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function qr(){return Gr||(Yr($r),Gr=Xr.now()+Wr)}function $r(){Gr=0}function Kr(){this._call=this._time=this._next=null}function Zr(t,e,n){var r=new Kr;return r.restart(t,e,n),r}function Qr(){Gr=(Hr=Xr.now())+Wr,Br=Ur=0;try{!function(){qr(),++Br;for(var t,e=zr;e;)(t=Gr-e._time)>=0&&e._call.call(null,t),e=e._next;--Br}()}finally{Br=0,function(){var t,e,n=zr,r=1/0;for(;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:zr=e);Fr=t,ti(r)}(),Gr=0}}function Jr(){var t=Xr.now(),e=t-Hr;e>Vr&&(Wr-=e,Hr=t)}function ti(t){Br||(Ur&&(Ur=clearTimeout(Ur)),t-Gr>24?(t<1/0&&(Ur=setTimeout(Qr,t-Xr.now()-Wr)),jr&&(jr=clearInterval(jr))):(jr||(Hr=Xr.now(),jr=setInterval(Jr,Vr)),Br=1,Yr(Qr)))}function ei(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function ni(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function ri(){}Kr.prototype=Zr.prototype={constructor:Kr,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?qr():+n)+(null==e?0:+e),this._next||Fr===this||(Fr?Fr._next=this:zr=this,Fr=this),this._call=t,this._time=n,ti()},stop:function(){this._call&&(this._call=null,this._time=1/0,ti())}};var ii=.7,oi=1/ii,ai="\\s*([+-]?\\d+)\\s*",si="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ui="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",li=/^#([0-9a-f]{3,8})$/,ci=new RegExp(`^rgb\\(${ai},${ai},${ai}\\)$`),hi=new RegExp(`^rgb\\(${ui},${ui},${ui}\\)$`),di=new RegExp(`^rgba\\(${ai},${ai},${ai},${si}\\)$`),fi=new RegExp(`^rgba\\(${ui},${ui},${ui},${si}\\)$`),pi=new RegExp(`^hsl\\(${si},${ui},${ui}\\)$`),mi=new RegExp(`^hsla\\(${si},${ui},${ui},${si}\\)$`),gi={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 vi(){return this.rgb().formatHex()}function yi(){return this.rgb().formatRgb()}function bi(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=li.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?xi(e):3===n?new Si(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?wi(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?wi(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=ci.exec(t))?new Si(e[1],e[2],e[3],1):(e=hi.exec(t))?new Si(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=di.exec(t))?wi(e[1],e[2],e[3],e[4]):(e=fi.exec(t))?wi(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=pi.exec(t))?ki(e[1],e[2]/100,e[3]/100,1):(e=mi.exec(t))?ki(e[1],e[2]/100,e[3]/100,e[4]):gi.hasOwnProperty(t)?xi(gi[t]):"transparent"===t?new Si(NaN,NaN,NaN,0):null}function xi(t){return new Si(t>>16&255,t>>8&255,255&t,1)}function wi(t,e,n,r){return r<=0&&(t=e=n=NaN),new Si(t,e,n,r)}function _i(t,e,n,r){return 1===arguments.length?((i=t)instanceof ri||(i=bi(i)),i?new Si((i=i.rgb()).r,i.g,i.b,i.opacity):new Si):new Si(t,e,n,null==r?1:r);var i}function Si(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Ei(){return`#${Ti(this.r)}${Ti(this.g)}${Ti(this.b)}`}function Ai(){const t=Mi(this.opacity);return`${1===t?"rgb(":"rgba("}${Ci(this.r)}, ${Ci(this.g)}, ${Ci(this.b)}${1===t?")":`, ${t})`}`}function Mi(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Ci(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Ti(t){return((t=Ci(t))<16?"0":"")+t.toString(16)}function ki(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Ni(t,e,n,r)}function Ii(t){if(t instanceof Ni)return new Ni(t.h,t.s,t.l,t.opacity);if(t instanceof ri||(t=bi(t)),!t)return new Ni;if(t instanceof Ni)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n0&&u<1?0:a,new Ni(a,s,u,t.opacity)}function Ni(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Pi(t){return(t=(t||0)%360)<0?t+360:t}function Oi(t){return Math.max(0,Math.min(1,t||0))}function Li(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Ri(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}ei(ri,bi,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:vi,formatHex:vi,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ii(this).formatHsl()},formatRgb:yi,toString:yi}),ei(Si,_i,ni(ri,{brighter(t){return t=null==t?oi:Math.pow(oi,t),new Si(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?ii:Math.pow(ii,t),new Si(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Si(Ci(this.r),Ci(this.g),Ci(this.b),Mi(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:Ei,formatHex:Ei,formatHex8:function(){return`#${Ti(this.r)}${Ti(this.g)}${Ti(this.b)}${Ti(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ai,toString:Ai})),ei(Ni,(function(t,e,n,r){return 1===arguments.length?Ii(t):new Ni(t,e,n,null==r?1:r)}),ni(ri,{brighter(t){return t=null==t?oi:Math.pow(oi,t),new Ni(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?ii:Math.pow(ii,t),new Ni(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Si(Li(t>=240?t-240:t+120,i,r),Li(t,i,r),Li(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new Ni(Pi(this.h),Oi(this.s),Oi(this.l),Mi(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(){const t=Mi(this.opacity);return`${1===t?"hsl(":"hsla("}${Pi(this.h)}, ${100*Oi(this.s)}%, ${100*Oi(this.l)}%${1===t?")":`, ${t})`}`}}));const Di=t=>()=>t;function zi(t,e){return function(n){return t+n*e}}function Fi(t){return 1==(t=+t)?Bi:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Di(isNaN(e)?n:e)}}function Bi(t,e){var n=e-t;return n?zi(t,n):Di(isNaN(t)?e:t)}const Ui=function t(e){var n=Fi(e);function r(t,e){var r=n((t=_i(t)).r,(e=_i(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=Bi(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function ji(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=ro&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:Xi(n,r)})),o=$i.lastIndex;return oh.length?(c=Mn(o[l]),h=Mn(i[l]),h=Qn(h,c),h=er(h,c),e.fromAttrs.path=h,e.toAttrs.path=c):e.pathFormatted||(c=Mn(o[l]),h=Mn(i[l]),h=er(h,c),e.fromAttrs.path=h,e.toAttrs.path=c,e.pathFormatted=!0),r[l]=[];for(var d=0;d0){for(var o=r.animators.length-1;o>=0;o--)if((t=r.animators[o]).destroyed)r.removeAnimator(o);else{if(!t.isAnimatePaused())for(var a=(e=t.get("animations")).length-1;a>=0;a--)n=e[a],Xo(t,n,i)&&(e.splice(a,1),!1,n.callback&&n.callback());0===e.length&&r.removeAnimator(o)}r.canvas.get("autoDraw")||r.canvas.draw()}}))},t.prototype.addAnimator=function(t){this.animators.push(t)},t.prototype.removeAnimator=function(t){this.animators.splice(t,1)},t.prototype.isAnimating=function(){return!!this.animators.length},t.prototype.stop=function(){this.timer&&this.timer.stop()},t.prototype.stopAllAnimations=function(t){void 0===t&&(t=!0),this.animators.forEach((function(e){e.stopAnimate(t)})),this.animators=[],this.canvas.draw()},t.prototype.getTime=function(){return this.current},t}();const qo=Yo;var $o=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function Ko(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function Zo(t,e,n){if(n.bubbles){var r=void 0,i=!1;if("mouseenter"===e?(r=n.fromShape,i=!0):"mouseleave"===e&&(i=!0,r=n.toShape),t.isCanvas()&&i)return;if(r&&or(t,r))return void(n.bubbles=!1);n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}}var Qo=function(){function t(t){var e=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(t){var n=t.type;e._triggerEvent(n,t)},this._onDocumentMove=function(t){if(e.canvas.get("el")!==t.target&&(e.dragging||e.currentShape)){var n=e._getPointInfo(t);e.dragging&&e._emitEvent("drag",t,n,e.draggingShape)}},this._onDocumentMouseUp=function(t){if(e.canvas.get("el")!==t.target&&e.dragging){var n=e._getPointInfo(t);e.draggingShape&&e._emitEvent("drop",t,n,null),e._emitEvent("dragend",t,n,e.draggingShape),e._afterDrag(e.draggingShape,n,t)}},this.canvas=t.canvas}return t.prototype.init=function(){this._bindEvents()},t.prototype._bindEvents=function(){var t=this,e=this.canvas.get("el");(0,x.each)($o,(function(n){e.addEventListener(n,t._eventCallback)})),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._clearEvents=function(){var t=this,e=this.canvas.get("el");(0,x.each)($o,(function(n){e.removeEventListener(n,t._eventCallback)})),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._getEventObj=function(t,e,n,r,i,o){var a=new nr(t,e);return a.fromShape=i,a.toShape=o,a.x=n.x,a.y=n.y,a.clientX=n.clientX,a.clientY=n.clientY,a.propagationPath.push(r),a},t.prototype._getShape=function(t,e){return this.canvas.getShape(t.x,t.y,e)},t.prototype._getPointInfo=function(t){var e=this.canvas,n=e.getClientByEvent(t),r=e.getPointByEvent(t);return{x:r.x,y:r.y,clientX:n.x,clientY:n.y}},t.prototype._triggerEvent=function(t,e){var n=this._getPointInfo(e),r=this._getShape(n,e),i=this["_on"+t],o=!1;if(i)i.call(this,n,r,e);else{var a=this.currentShape;"mouseenter"===t||"dragenter"===t||"mouseover"===t?(this._emitEvent(t,e,n,null,null,r),r&&this._emitEvent(t,e,n,r,null,r),"mouseenter"===t&&this.draggingShape&&this._emitEvent("dragenter",e,n,null)):"mouseleave"===t||"dragleave"===t||"mouseout"===t?(o=!0,a&&this._emitEvent(t,e,n,a,a,null),this._emitEvent(t,e,n,null,a,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,n,null)):this._emitEvent(t,e,n,r,null,null)}if(o||(this.currentShape=r),r&&!r.get("destroyed")){var s=this.canvas;s.get("el").style.cursor=r.attr("cursor")||s.get("cursor")}},t.prototype._onmousedown=function(t,e,n){0===n.button&&(this.mousedownShape=e,this.mousedownPoint=t,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,t,e,null,null)},t.prototype._emitMouseoverEvents=function(t,e,n,r){var i=this.canvas.get("el");n!==r&&(n&&(this._emitEvent("mouseout",t,e,n,n,r),this._emitEvent("mouseleave",t,e,n,n,r),r&&!r.get("destroyed")||(i.style.cursor=this.canvas.get("cursor"))),r&&(this._emitEvent("mouseover",t,e,r,n,r),this._emitEvent("mouseenter",t,e,r,n,r)))},t.prototype._emitDragoverEvents=function(t,e,n,r,i){r?(r!==n&&(n&&this._emitEvent("dragleave",t,e,n,n,r),this._emitEvent("dragenter",t,e,r,n,r)),i||this._emitEvent("dragover",t,e,r)):n&&this._emitEvent("dragleave",t,e,n,n,r),i&&this._emitEvent("dragover",t,e,r)},t.prototype._afterDrag=function(t,e,n){t&&(t.set("capture",!0),this.draggingShape=null),this.dragging=!1;var r=this._getShape(e,n);r!==t&&this._emitMouseoverEvents(n,e,t,r),this.currentShape=r},t.prototype._onmouseup=function(t,e,n){if(0===n.button){var r=this.draggingShape;this.dragging?(r&&this._emitEvent("drop",n,t,e),this._emitEvent("dragend",n,t,r),this._afterDrag(r,t,n)):(this._emitEvent("mouseup",n,t,e),e===this.mousedownShape&&this._emitEvent("click",n,t,e),this.mousedownShape=null,this.mousedownPoint=null)}},t.prototype._ondragover=function(t,e,n){n.preventDefault();var r=this.currentShape;this._emitDragoverEvents(n,t,r,e,!0)},t.prototype._onmousemove=function(t,e,n){var r=this.canvas,i=this.currentShape,o=this.draggingShape;if(this.dragging)o&&this._emitDragoverEvents(n,t,i,e,!1),this._emitEvent("drag",n,t,o);else{var a=this.mousedownPoint;if(a){var s=this.mousedownShape,u=n.timeStamp-this.mousedownTimeStamp,l=a.clientX-t.clientX,c=a.clientY-t.clientY;u>120||l*l+c*c>40?s&&s.get("draggable")?((o=this.mousedownShape).set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",n,t,o),this.mousedownShape=null,this.mousedownPoint=null):!s&&r.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e))}else this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)}},t.prototype._emitEvent=function(t,e,n,r,i,o){var a=this._getEventObj(t,e,n,r,i,o);if(r){a.shape=r,Ko(r,t,a);for(var s=r.getParent();s;)s.emitDelegation(t,a),a.propagationStopped||Zo(s,t,a),a.propagationPath.push(s),s=s.getParent()}else{Ko(this.canvas,t,a)}},t.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},t}();const Jo=Qo;var ta=yr(),ea=ta&&"firefox"===ta.name,na=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return(0,b.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.cursor="default",e.supportCSSTransform=!1,e},e.prototype.initContainer=function(){var t=this.get("container");(0,x.isString)(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t),this.get("container").appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new Jo({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new qo(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");ir&&(n.style.width=t+"px",n.style.height=e+"px")},e.prototype.changeSize=function(t,e){this.setDOMSize(t,e),this.set("width",t),this.set("height",e),this.onCanvasChange("changeSize")},e.prototype.getRenderer=function(){return this.get("renderer")},e.prototype.getCursor=function(){return this.get("cursor")},e.prototype.setCursor=function(t){this.set("cursor",t);var e=this.get("el");ir&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){if(this.get("supportCSSTransform")){if(ea&&!(0,x.isNil)(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!(0,x.isNil)(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var e=this.getClientByEvent(t),n=e.x,r=e.y;return this.getPointByClient(n,r)},e.prototype.getClientByEvent=function(t){var e=t;return t.touches&&(e="touchend"===t.type?t.changedTouches[0]:t.touches[0]),{x:e.clientX,y:e.clientY}},e.prototype.getPointByClient=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t-n.left,y:e-n.top}},e.prototype.getClientByPoint=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t+n.left,y:e+n.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){this.get("eventController").destroy()},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var e=this.get("timeline");this.get("destroyed")||(this.clear(),e&&e.stop(),this.clearEvents(),this.removeDom(),t.prototype.destroy.call(this))},e}(Dr);const ra=na;const ia=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,b.__extends)(e,t),e.prototype.isGroup=function(){return!0},e.prototype.isEntityGroup=function(){return!1},e.prototype.clone=function(){for(var e=t.prototype.clone.call(this),n=this.getChildren(),r=0;r=t&&n.minY<=e&&n.maxY>=e},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.cfg.bbox;return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.cfg.canvasBBox;return t||(t=this.calculateCanvasBBox(),this.set("canvasBBox",t)),t},e.prototype.applyMatrix=function(e){t.prototype.applyMatrix.call(this,e),this.set("canvasBBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),e=this.getTotalMatrix(),n=t.minX,r=t.minY,i=t.maxX,o=t.maxY;if(e){var a=_r(e,[t.minX,t.minY]),s=_r(e,[t.maxX,t.minY]),u=_r(e,[t.minX,t.maxY]),l=_r(e,[t.maxX,t.maxY]);n=Math.min(a[0],s[0],u[0],l[0]),i=Math.max(a[0],s[0],u[0],l[0]),r=Math.min(a[1],s[1],u[1],l[1]),o=Math.max(a[1],s[1],u[1],l[1])}var c=this.attrs;if(c.shadowColor){var h=c.shadowBlur,d=void 0===h?0:h,f=c.shadowOffsetX,p=void 0===f?0:f,m=c.shadowOffsetY,g=void 0===m?0:m,v=n-d+p,y=i+d+p,b=r-d+g,x=o+d+g;n=Math.min(n,v),i=Math.max(i,y),r=Math.min(r,b),o=Math.max(o,x)}return{x:n,y:r,minX:n,minY:r,maxX:i,maxY:o,width:i-n,height:o-r}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(t,e){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(t,e){var n=this.get("startArrowShape"),r=this.get("endArrowShape"),i=[t,e,1],o=(i=this.invertFromMatrix(i))[0],a=i[1],s=this._isInBBox(o,a);if(this.isOnlyHitBox())return s;if(s&&!this.isClipped(o,a)){if(this.isInShape(o,a))return!0;if(n&&n.isHit(o,a))return!0;if(r&&r.isHit(o,a))return!0}return!1},e}(Ir);var aa=new Map;function sa(t,e){aa.set(t,e)}function ua(t){return aa.get(t)}function la(t){var e=t.attr();return{x:e.x,y:e.y,width:e.width,height:e.height}}function ca(t){var e=t.attr(),n=e.x,r=e.y,i=e.r;return{x:n-i,y:r-i,width:2*i,height:2*i}}function ha(t,e,n,r){var i=t-n,o=e-r;return Math.sqrt(i*i+o*o)}function da(t,e){return Math.abs(t-e)<.001}function fa(t,e){var n=(0,x.min)(t),r=(0,x.min)(e);return{x:n,y:r,width:(0,x.max)(t)-n,height:(0,x.max)(e)-r}}function pa(t){return(t+2*Math.PI)%(2*Math.PI)}const ma={box:function(t,e,n,r){return fa([t,n],[e,r])},length:function(t,e,n,r){return ha(t,e,n,r)},pointAt:function(t,e,n,r,i){return{x:(1-i)*t+i*n,y:(1-i)*e+i*r}},pointDistance:function(t,e,n,r,i,o){var a=(n-t)*(i-t)+(r-e)*(o-e);return a<0?ha(t,e,i,o):a>(n-t)*(n-t)+(r-e)*(r-e)?ha(n,r,i,o):this.pointToLine(t,e,n,r,i,o)},pointToLine:function(t,e,n,r,i,o){var a=[n-t,r-e];if(ie.exactEquals(a,[0,0]))return Math.sqrt((i-t)*(i-t)+(o-e)*(o-e));var s=[-a[1],a[0]];ie.normalize(s,s);var u=[i-t,o-e];return Math.abs(ie.dot(u,s))},tangentAngle:function(t,e,n,r){return Math.atan2(r-e,n-t)}};function ga(t,e,n,r,i,o){var a,s=1/0,u=[n,r],l=20;o&&o>200&&(l=o/10);for(var c=1/l,h=c/10,d=0;d<=l;d++){var f=d*c,p=[i.apply(null,t.concat([f])),i.apply(null,e.concat([f]))];(y=ha(u[0],u[1],p[0],p[1]))=0&&y=0?[i]:[]}function ba(t,e,n,r){return 2*(1-r)*(e-t)+2*r*(n-e)}function xa(t,e,n,r,i,o,a){var s=va(t,n,i,a),u=va(e,r,o,a),l=ma.pointAt(t,e,n,r,a),c=ma.pointAt(n,r,i,o,a);return[[t,e,l.x,l.y,s,u],[s,u,c.x,c.y,i,o]]}function wa(t,e,n,r,i,o,a){if(0===a)return(ha(t,e,n,r)+ha(n,r,i,o)+ha(t,e,i,o))/2;var s=xa(t,e,n,r,i,o,.5),u=s[0],l=s[1];return u.push(a-1),l.push(a-1),wa.apply(null,u)+wa.apply(null,l)}const _a={box:function(t,e,n,r,i,o){var a=ya(t,n,i)[0],s=ya(e,r,o)[0],u=[t,i],l=[e,o];return void 0!==a&&u.push(va(t,n,i,a)),void 0!==s&&l.push(va(e,r,o,s)),fa(u,l)},length:function(t,e,n,r,i,o){return wa(t,e,n,r,i,o,3)},nearestPoint:function(t,e,n,r,i,o,a,s){return ga([t,n,i],[e,r,o],a,s,va)},pointDistance:function(t,e,n,r,i,o,a,s){var u=this.nearestPoint(t,e,n,r,i,o,a,s);return ha(u.x,u.y,a,s)},interpolationAt:va,pointAt:function(t,e,n,r,i,o,a){return{x:va(t,n,i,a),y:va(e,r,o,a)}},divide:function(t,e,n,r,i,o,a){return xa(t,e,n,r,i,o,a)},tangentAngle:function(t,e,n,r,i,o,a){var s=ba(t,n,i,a),u=ba(e,r,o,a);return pa(Math.atan2(u,s))}};function Sa(t,e,n,r,i){var o=1-i;return o*o*o*t+3*e*i*o*o+3*n*i*i*o+r*i*i*i}function Ea(t,e,n,r,i){var o=1-i;return 3*(o*o*(e-t)+2*o*i*(n-e)+i*i*(r-n))}function Aa(t,e,n,r){var i,o,a,s=-3*t+9*e-9*n+3*r,u=6*t-12*e+6*n,l=3*e-3*t,c=[];if(da(s,0))da(u,0)||(i=-l/u)>=0&&i<=1&&c.push(i);else{var h=u*u-4*s*l;da(h,0)?c.push(-u/(2*s)):h>0&&(o=(-u-(a=Math.sqrt(h)))/(2*s),(i=(-u+a)/(2*s))>=0&&i<=1&&c.push(i),o>=0&&o<=1&&c.push(o))}return c}function Ma(t,e,n,r,i,o,a,s,u){var l=Sa(t,n,i,a,u),c=Sa(e,r,o,s,u),h=ma.pointAt(t,e,n,r,u),d=ma.pointAt(n,r,i,o,u),f=ma.pointAt(i,o,a,s,u),p=ma.pointAt(h.x,h.y,d.x,d.y,u),m=ma.pointAt(d.x,d.y,f.x,f.y,u);return[[t,e,h.x,h.y,p.x,p.y,l,c],[l,c,m.x,m.y,f.x,f.y,a,s]]}function Ca(t,e,n,r,i,o,a,s,u){if(0===u)return function(t,e){for(var n=0,r=t.length,i=0;i0?n:-1*n}const Ia=function(t,e,n,r,i,o){var a=n,s=r;if(0===a||0===s)return{x:t,y:e};for(var u,l,c=i-t,h=o-e,d=Math.abs(c),f=Math.abs(h),p=a*a,m=s*s,g=Math.PI/4,v=0;v<4;v++){u=a*Math.cos(g),l=s*Math.sin(g);var y=(p-m)*Math.pow(Math.cos(g),3)/a,b=(m-p)*Math.pow(Math.sin(g),3)/s,x=u-y,w=l-b,_=d-y,S=f-b,E=Math.hypot(w,x),A=Math.hypot(S,_);g+=E*Math.asin((x*S-w*_)/(E*A))/Math.sqrt(p+m-u*u-l*l),g=Math.min(Math.PI/2,Math.max(0,g))}return{x:t+ka(u,c),y:e+ka(l,h)}};function Na(t,e,n,r,i,o){return n*Math.cos(i)*Math.cos(o)-r*Math.sin(i)*Math.sin(o)+t}function Pa(t,e,n,r,i,o){return n*Math.sin(i)*Math.cos(o)+r*Math.cos(i)*Math.sin(o)+e}function Oa(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)}}function La(t,e,n){var r=Math.cos(n),i=Math.sin(n);return[t*r-e*i,t*i+e*r]}const Ra={box:function(t,e,n,r,i,o,a){for(var s=function(t,e,n){return Math.atan(-e/t*Math.tan(n))}(n,r,i),u=1/0,l=-1/0,c=[o,a],h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var d=s+h;ol&&(l=f)}var p=function(t,e,n){return Math.atan(e/(t*Math.tan(n)))}(n,r,i),m=1/0,g=-1/0,v=[o,a];for(h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var y=p+h;og&&(g=b)}return{x:u,y:m,width:l-u,height:g-m}},length:function(t,e,n,r,i,o,a){},nearestPoint:function(t,e,n,r,i,o,a,s,u){var l=La(s-t,u-e,-i),c=l[0],h=l[1],d=Ia(0,0,n,r,c,h),f=function(t,e,n,r){return(Math.atan2(r*t,n*e)+2*Math.PI)%(2*Math.PI)}(n,r,d.x,d.y);fa&&(d=Oa(n,r,a));var p=La(d.x,d.y,i);return{x:p[0]+t,y:p[1]+e}},pointDistance:function(t,e,n,r,i,o,a,s,u){var l=this.nearestPoint(t,e,n,r,s,u);return ha(l.x,l.y,s,u)},pointAt:function(t,e,n,r,i,o,a,s){var u=(a-o)*s+o;return{x:Na(t,0,n,r,i,u),y:Pa(0,e,n,r,i,u)}},tangentAngle:function(t,e,n,r,i,o,a,s){var u=(a-o)*s+o,l=function(t,e,n,r,i,o,a,s){return-1*n*Math.cos(i)*Math.sin(s)-r*Math.sin(i)*Math.cos(s)}(0,0,n,r,i,0,0,u),c=function(t,e,n,r,i,o,a,s){return-1*n*Math.sin(i)*Math.sin(s)+r*Math.cos(i)*Math.cos(s)}(0,0,n,r,i,0,0,u);return pa(Math.atan2(c,l))}};function Da(t){if(t.length<2)return 0;for(var e=0,n=0;n1){var i=function(t,e){return e?e-t:.14*t}(e,n);return e*r+i*(r-1)}return e}function Ha(t){var e=t.fontSize,n=t.fontFamily,r=t.fontWeight;return[t.fontStyle,t.fontVariant,r,e+"px",n].join(" ").trim()}var Ga=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,Wa=/[^\s\,]+/gi;const Xa=function(t){var e=t||[];return(0,x.isArray)(e)?e:(0,x.isString)(e)?(e=e.match(Ga),(0,x.each)(e,(function(t,n){if((t=t.match(Wa))[0].length>1){var r=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=r}(0,x.each)(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0};const Ya=function(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=[[0,0],[1,1]]);for(var r=!!e,i=[],o=0,a=t.length;o2&&(n.push([r].concat(o.splice(0,2))),a="l",r="m"===r?"l":"L"),"o"===a&&1===o.length&&n.push([r,o[0]]),"r"===a)n.push([r].concat(o));else for(;o.length>=e[a]&&(n.push([r].concat(o.splice(0,e[a]))),e[a]););return""})),n}var Qa=/[a-z]/;function Ja(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function ts(t){var e=Za(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,r=0;r=0){n=!0;break}}if(!n)return e;var o=[],a=0,s=0,u=0,l=0,c=0,h=e[0];"M"!==h[0]&&"m"!==h[0]||(u=a=+h[1],l=s=+h[2],c++,o[0]=["M",a,s]);r=c;for(var d=e.length;r1&&(n*=Math.sqrt(f),r*=Math.sqrt(f));var p=n*n*(d*d)+r*r*(h*h),m=p?Math.sqrt((n*n*(r*r)-p)/p):1;o===a&&(m*=-1),isNaN(m)&&(m=0);var g=r?m*n*d/r:0,v=n?m*-r*h/n:0,y=(s+l)/2+Math.cos(i)*g-Math.sin(i)*v,b=(u+c)/2+Math.sin(i)*g+Math.cos(i)*v,w=[(h-g)/n,(d-v)/r],_=[(-1*h-g)/n,(-1*d-v)/r],S=rs([1,0],w),E=rs(w,_);return ns(w,_)<=-1&&(E=Math.PI),ns(w,_)>=1&&(E=0),0===a&&E>0&&(E-=2*Math.PI),1===a&&E<0&&(E+=2*Math.PI),{cx:y,cy:b,rx:is(t,[l,c])?0:n,ry:is(t,[l,c])?0:r,startAngle:S,endAngle:S+E,xRotation:i,arcFlag:o,sweepFlag:a}}function as(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function ss(t){for(var e=[],n=null,r=null,i=null,o=0,a=(t=Xa(t)).length,s=0;sMath.PI/2?Math.PI-l:l,c=c>Math.PI/2?Math.PI-c:c,{xExtra:Math.cos(u/2-l)*(e/2*(1/Math.sin(u/2)))-e/2||0,yExtra:Math.cos(c-u/2)*(e/2*(1/Math.sin(u/2)))-e/2||0}}sa("rect",la),sa("image",la),sa("circle",ca),sa("marker",ca),sa("polyline",(function(t){for(var e=t.attr().points,n=[],r=[],i=0;in&&(n=l),c>i&&(i=c)}return{x:Math.floor(e),y:Math.floor(r),width:Math.ceil(n)-Math.floor(e),height:Math.ceil(i)-Math.floor(r),minX:e,minY:r,maxX:n,maxY:i}},gs=function(t,e,n,r,i){void 0===e&&(e=15),void 0===n&&(n="quadratic"),void 0===r&&(r=void 0),void 0===i&&(i=void 0);for(var o=t.length,a=2*e,s=["top","top-right","right","bottom-right","bottom","bottom-left","left","top-left"],u={},l=[],c={},h=0;hr.get("optimizeThreshold")){var a=1/0,s=1/0,u=-1/0,l=-1/0;o.forEach((function(t){var e=t.getModel(),n=e.x,r=e.y;a>n&&(a=n),s>r&&(s=r),uf&&(p=f,console.warn("fitview failed, ratio out of range, ratio: %f",a,"graph maxzoom has been used instead"));var m=(0,vs.pd)(h,[["t",-i.x,-i.y],["s",p,p],["t",i.x,i.y]]),g=bn({animateCfg:n,callback:function(){t.setMatrix(m),u.emit("viewportchange",{action:"translate",matrix:h}),u.emit("viewportchange",{action:"zoom",matrix:m})}});t.stopAnimate(),t.setMatrix(e),t.animate((function(t){return{matrix:Ue(e,m,t)}}),g)}else{var v=bn({animateCfg:n,callback:function(){u.emit("viewportchange",{action:"translate",matrix:h})}});t.animate((function(t){return{matrix:Ue(e,h,t)}}),v)}}},t.prototype.fitView=function(t,e){var n,r=this.graph,i=this.getFormatPadding(),o=r.get("width"),a=r.get("height"),s=r.get("group"),u=s.getMatrix()||[1,0,0,0,1,0,0,0,1];s.resetMatrix();var l=r.getNodes();if(l.length>r.get("optimizeThreshold")){var c=1/0,h=1/0,d=-1/0,f=-1/0;l.forEach((function(t){var e=t.getModel(),n=e.x,r=e.y;c>n&&(c=n),h>r&&(h=r),dv&&(y=v),t)this.animatedFitView(s,u,e,n,p,m,y,!0);else{var b=p.x-m.x,x=p.y-m.y;if(ps(b)||ps(x))return;r.translate(b,x),r.zoom(y,p)||console.warn("zoom failed, ratio out of range, ratio: %f",y)}}},t.prototype.fitViewByRules=function(t,e,n){var r,i=t.onlyOutOfViewPort,o=void 0!==i&&i,a=t.direction,s=void 0===a?"both":a,u=t.ratioRule,l=void 0===u?"min":u,c=this.graph,h=this.getFormatPadding(),d=c.get("width"),f=c.get("height"),p=c.get("group"),m=p.getMatrix()||[1,0,0,0,1,0,0,0,1];p.resetMatrix();var g=c.getNodes();if(g.length>c.get("optimizeThreshold")){var v=1/0,y=1/0,b=-1/0,x=-1/0;g.forEach((function(t){var e=t.getModel(),n=e.x,r=e.y;v>n&&(v=n),y>r&&(y=r),bc.maxX&&(c.maxX=f.maxX),f.maxY>c.maxY&&(c.maxY=f.maxY)}if(c.x=c.minX,c.y=c.minY,c.width=c.maxX-c.minX,c.height=c.maxY-c.minY,0!==c.width&&0!==c.height){var p=this.getViewCenter(),m={x:c.x+c.width/2,y:c.y+c.height/2},g=(a-o[1]-o[3])/c.width,v=(s-o[0]-o[2])/c.height,y=g;g>v&&(y=v),n?this.animatedFitView(u,l,r,c,p,m,y,e):(i.translate(p.x-m.x,p.y-m.y),e&&!i.zoom(y,p)&&console.warn("zoom failed, ratio out of range, ratio: %f",y))}}},t.prototype.changeSize=function(t,e){var n=this.graph;if(!(0,x.isNumber)(t)||!(0,x.isNumber)(e))throw Error("invalid canvas width & height, please make sure width & height type is number");n.set({width:t,height:e}),n.get("canvas").changeSize(t,e),n.get("plugins").forEach((function(t){t.get("gridContainer")&&t.positionInit()}))},t.prototype.destroy=function(){this.graph=null,this.destroyed=!1},t}();const bs=ys;function xs(t){return xs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xs(t)}function ws(t){if("string"!=typeof t)return t;var e=function(t){if("string"!=typeof t)return t;try{return JSON.parse(t.trim())}catch(e){return t.trim()}},n=e(t);if("string"!=typeof n)return n;for(var r=function(t){return t[t.length-1]},i=t.trim(),o=[],a=[],s=function(){for(var t=[],e=0;er.width&&(r.width=c.width+c.x),c.height+c.y>r.height&&(r.height=c.height+c.y)}}}return t.bbox=function(t,e,n){var r,i,o=t.attrs,a=void 0===o?{}:o,s={x:e.x||0,y:e.y||0,width:n.width||0,height:n.height||0};switch(t.type){case"maker":case"circle":a.r&&(i=2*a.r,r=2*a.r);break;case"text":a.text&&(i=dn(a.text,a.fontSize||12)[0],r=16,s.y+=r,s.height=r,s.width=i,t.attrs=(0,b.__assign)({fontSize:12,fill:"#000"},a));break;default:a.width&&(i=a.width),a.height&&(r=a.height)}return r>=0&&(s.height=r),i>=0&&(s.width=i),a.marginTop&&(s.y+=a.marginTop),a.marginLeft&&(s.x+=a.marginLeft),s}(t,e,r),t.attrs=(0,b.__assign)((0,b.__assign)({},t.attrs),t.bbox),t}function As(t,e){var n,r,i,o,a=(t||{}).type,s=((null==e?void 0:e.attrs)||{}).key;if(s&&t&&(t.attrs.key=s),!t&&e)return{action:"delete",val:e,type:a,key:s};if(t&&!e)return{action:"add",val:t,type:a};if(!t&&!e)return{action:"same",type:a};var u=[];if((null===(n=t.children)||void 0===n?void 0:n.length)>0||(null===(r=e.children)||void 0===r?void 0:r.length)>0)for(var l=Math.max(null===(i=t.children)||void 0===i?void 0:i.length,null===(o=e.children)||void 0===o?void 0:o.length),c=e.children||[],h=t.children||[],d=0;d-1)return;n.push(i)}else s>-1&&n.splice(s,1)}else if((0,x.isString)(e)){var u=n.filter((function(t){return t.includes(o)}));u.length>0&&this.clearStates(u),(a=a.filter((function(t){return!t.includes(o)}))).push(i),this.set("states",a)}if(r){var l=this.get("model").type;r.setState(l,t,e,this)}},t.prototype.clearStates=function(t){var e=this,n=e.getStates(),r=e.get("shapeFactory"),i=e.get("model").type;t||(t=n),(0,x.isString)(t)&&(t=[t]);var o=n.filter((function(e){return-1===t.indexOf(e)}));e.set("states",o),t.forEach((function(t){r.setState(i,t,!1,e)}))},t.prototype.setOptimize=function(t){this.optimize=t},t.prototype.getContainer=function(){return this.get("group")},t.prototype.getKeyShape=function(){return this.get("keyShape")},t.prototype.getModel=function(){return this.get("model")},t.prototype.getType=function(){return this.get("type")},t.prototype.getID=function(){return this.get("id")},t.prototype.isItem=function(){return!0},t.prototype.getStates=function(){return this.get("states")},t.prototype.hasState=function(t){return this.getStates().indexOf(t)>=0},t.prototype.refresh=function(t){var e=this.get("model");this.updatePosition(e),this.updateShape(t),this.afterUpdate(),this.clearCache()},t.prototype.getUpdateType=function(t){},t.prototype.update=function(t,e){void 0===e&&(e=void 0);var n=this.get("model");if("move"===e)this.updatePosition(t);else{var r=n.visible,i=t.visible;r!==i&&void 0!==i&&this.changeVisibility(i);var o={x:n.x,y:n.y};t.x=isNaN(+t.x)?n.x:+t.x,t.y=isNaN(+t.y)?n.y:+t.y;var a=this.get("styles");if(t.stateStyles){var s=t.stateStyles;(0,x.mix)(a,s),delete t.stateStyles}Object.assign(n,t),o.x===t.x&&o.y===t.y||this.updatePosition(t),this.updateShape(e)}this.afterUpdate(),this.clearCache()},t.prototype.updateShape=function(t){var e=this.get("shapeFactory"),n=this.get("model"),r=n.type;if(e.shouldUpdate(r)&&r===this.get("currentShape")){var i=this.getShapeCfg(n,t);e.baseUpdate(r,i,this,t),"move"!==t&&this.setOriginStyle()}else this.draw();this.restoreStates(e,r)},t.prototype.updatePosition=function(t){var e=this.get("model"),n=isNaN(+t.x)?+e.x:+t.x,r=isNaN(+t.y)?+e.y:+t.y,i=this.get("group");if(isNaN(n)||isNaN(r))return!1;e.x=n,e.y=r;var o=i.getMatrix();return(!o||o[6]!==n||o[7]!==r)&&(i.resetMatrix(),be(i,{x:n,y:r}),this.clearCache(),!0)},t.prototype.getBBox=function(){var t=this.get(Os);return t||(t=this.calculateBBox(),this.set(Os,t)),t},t.prototype.getCanvasBBox=function(){var t=this.get(Ls);return t||(t=this.calculateCanvasBBox(),this.set(Ls,t)),t},t.prototype.toFront=function(){this.get("group").toFront()},t.prototype.toBack=function(){this.get("group").toBack()},t.prototype.show=function(){this.changeVisibility(!0)},t.prototype.hide=function(){this.changeVisibility(!1)},t.prototype.changeVisibility=function(t){var e=this.get("group");t?e.show():e.hide(),this.set("visible",t)},t.prototype.isVisible=function(){return this.get("visible")},t.prototype.enableCapture=function(t){var e=this.get("group");e&&e.set("capture",t)},t.prototype.destroy=function(){if(!this.destroyed){var t=this.get("animate"),e=this.get("group");t&&e.stopAnimate(),e.shapeMap={},this.clearCache(),e.remove(),this._cfg=null,this.destroyed=!0}},t}();const Ds=Rs;var zs={source:"start",target:"end"},Fs="Node",Bs="Point",Us=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,b.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{type:"edge",sourceNode:null,targetNode:null,startPoint:null,endPoint:null,linkCenter:!1}},e.prototype.setEnd=function(t,e){var n=zs[t]+Bs,r=t+Fs,i=this.get(r);i&&!i.destroyed&&i.removeEdge(this),(0,x.isPlainObject)(e)?(this.set(n,e),this.set(r,null)):e&&(e.addEdge(this),this.set(r,e),this.set(n,null))},e.prototype.getLinkPoint=function(t,e,n){var r=zs[t]+Bs,i=t+Fs,o=this.get(r);if(!o){var a=this.get(i),s=t+"Anchor",u=this.getPrePoint(t,n),l=e[s];(0,x.isNil)(l)||(o=a.getLinkPointByAnchor(l)),o=o||a.getLinkPoint(u),(0,x.isNil)(o.index)||this.set("".concat(t,"AnchorIndex"),o.index)}return o},e.prototype.getPrePoint=function(t,e){if(e&&e.length)return e["source"===t?0:e.length-1];var n="source"===t?"target":"source";return this.getEndPoint(n)},e.prototype.getEndPoint=function(t){var e=t+Fs,n=zs[t]+Bs,r=this.get(e);return r&&!r.destroyed?r.get("model"):this.get(n)},e.prototype.getControlPointsByCenter=function(t){var e=this.getEndPoint("source"),n=this.getEndPoint("target"),r=this.get("shapeFactory"),i=t.type;return r.getControlPoints(i,{startPoint:e,endPoint:n})},e.prototype.getEndCenter=function(t){var e=t+Fs,n=zs[t]+Bs,r=this.get(e);if(r){var i=r.getBBox();return{x:i.centerX,y:i.centerY}}return this.get(n)},e.prototype.init=function(){t.prototype.init.call(this),this.setSource(this.get("source")),this.setTarget(this.get("target"))},e.prototype.getShapeCfg=function(e,n){var r=this,i=r.get("linkCenter"),o=(null==n?void 0:n.includes("move"))?e:t.prototype.getShapeCfg.call(this,e);if(i)o.startPoint=r.getEndCenter("source"),o.endPoint=r.getEndCenter("target");else{var a=o.controlPoints||r.getControlPointsByCenter(o);o.startPoint=r.getLinkPoint("source",e,a),o.endPoint=r.getLinkPoint("target",e,a)}return o.sourceNode=r.get("sourceNode"),o.targetNode=r.get("targetNode"),o},e.prototype.getModel=function(){var t=this.get("model"),e=this.get("source".concat(Fs)),n=this.get("target".concat(Fs));return e?delete t["source".concat(Fs)]:t.source=this.get("start".concat(Bs)),n?delete t["target".concat(Fs)]:t.target=this.get("end".concat(Bs)),(0,x.isString)(t.source)||(0,x.isPlainObject)(t.source)||(t.source=t.source.getID()),(0,x.isString)(t.target)||(0,x.isPlainObject)(t.target)||(t.target=t.target.getID()),t},e.prototype.setSource=function(t){this.setEnd("source",t),this.set("source",t)},e.prototype.setTarget=function(t){this.setEnd("target",t),this.set("target",t)},e.prototype.getSource=function(){return this.get("source")},e.prototype.getTarget=function(){return this.get("target")},e.prototype.updatePosition=function(){return!1},e.prototype.update=function(t,e){void 0===e&&(e=void 0);var n=this.get("model"),r=n.visible,i=t.visible;r!==i&&void 0!==i&&this.changeVisibility(i);var o=this.get("source"),a=this.get("target");if(o&&!o.destroyed&&a&&!a.destroyed){var s=this.get("styles");if(t.stateStyles){var u=t.stateStyles;(0,x.mix)(s,u),delete t.stateStyles}Object.assign(n,t),this.updateShape(e),this.afterUpdate(),this.clearCache()}},e.prototype.destroy=function(){var e=this.get("source".concat(Fs)),n=this.get("target".concat(Fs));e&&!e.destroyed&&e.removeEdge(this),n&&!n.destroyed&&n.removeEdge(this),t.prototype.destroy.call(this)},e}(Ds);const js=Us;var Vs="anchorPointsCache",Hs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,b.__extends)(e,t),e.prototype.getNearestPoint=function(t,e){for(var n=0,r=t[0],i=me(t[0],e),o=0;o-1&&e.splice(n,1)},e.prototype.clearCache=function(){this.set("bboxCache",null),this.set(Vs,null)},e.prototype.getUpdateType=function(t){var e,n,r,i,o;if(t){var a=!(0,x.isNil)(t.x),s=!(0,x.isNil)(t.y),u=Object.keys(t);return 1===u.length&&(a||s)||2===u.length&&a&&s?"move":(0,x.isNumber)(t.x)||(0,x.isNumber)(t.y)||t.type||t.anchorPoints||t.size||(null==t?void 0:t.style)&&((null===(e=null==t?void 0:t.style)||void 0===e?void 0:e.r)||(null===(n=null==t?void 0:t.style)||void 0===n?void 0:n.width)||(null===(r=null==t?void 0:t.style)||void 0===r?void 0:r.height)||(null===(i=null==t?void 0:t.style)||void 0===i?void 0:i.rx)||(null===(o=null==t?void 0:t.style)||void 0===o?void 0:o.ry))?"bbox|label":u.includes("label")||u.includes("labelCfg")?"style|label":"style"}},e.prototype.setState=function(e,n){var r=this;this.optimize?t.prototype.setState.call(this,e,n):this.runWithBBoxAffected((function(){return t.prototype.setState.call(r,e,n)}))},e.prototype.clearStates=function(e){var n=this;this.optimize?t.prototype.clearStates.call(this,e):this.runWithBBoxAffected((function(){return t.prototype.clearStates.call(n,e)}))},e.prototype.runWithBBoxAffected=function(t){var e=["r","width","height","rx","ry","lineWidth"],n=this.getKeyShape().attr(),r={};Object.keys(this.getKeyShape().attr()).forEach((function(t){e.includes(t)&&(r[t]=n[t])})),t();for(var i=this.getKeyShape().attr(),o=0;o-1&&(e.splice(n,1),!0)}},e.prototype.removeNode=function(t){if(t){var e=this.getNodes(),n=e.indexOf(t);return n>-1&&(e.splice(n,1),!0)}},e.prototype.getUpdateType=function(t){},e.prototype.getBBox=function(){return this.set(Xs,null),this.calculateCanvasBBox()},e.prototype.clearCache=function(){this.set(Ws,null),this.set(Xs,null),this.set(qs,null)},e.prototype.destroy=function(){if(!this.destroyed){var t=this.get("animate"),e=this.get("group");t&&e.stopAnimate(),e.shapeMap={},this.clearCache(),this.set(Ys,null),this.set("bbox",null),e.remove(),this._cfg=null,this.destroyed=!0}},e}(Gs);const Ks=$s;var Zs="node",Qs="edge",Js="vedge",tu="combo",eu="Mapper",nu="stateStyles",ru=function(){function t(t){var e=this;this.edgeToBeUpdateMap={},this.throttleRefresh=(0,x.throttle)((function(t){var n=e.graph;if(n&&!n.get("destroyed")){var r=e.edgeToBeUpdateMap;if(r){var i=Object.values(r);i.length&&(i.forEach((function(t){var e=t.edge;if(e&&!e.destroyed){var n=e.getSource(),r=e.getTarget();n&&!n.destroyed&&r&&!r.destroyed&&e.refresh(t.updateType)}})),e.edgeToBeUpdateMap={})}}}),16,{trailing:!0,leading:!0}),this.graph=t,this.destroyed=!1}return t.prototype.addItem=function(t,e){var n=this.graph,r=t===Js?Qs:t,i=n.get("".concat(r,"Group"))||n.get("group"),o=(0,x.upperFirst)(r),a=null,s=n.get(r+(0,x.upperFirst)(nu))||{},u=n.get("default"+o);e[nu]&&(s=e[nu]),u&&(0,x.each)(u,(function(t,n){(0,x.isObject)(t)&&!(0,x.isArray)(t)?e[n]=(0,x.deepMix)({},t,e[n]):(0,x.isArray)(t)?e[n]=e[n]||(0,x.clone)(u[n]):e[n]=e[n]||u[n]}));var l=n.get(r+eu);if(l){var c=l(e);c[nu]&&(s=c[nu],delete c[nu]),(0,x.each)(c,(function(t,n){(0,x.isObject)(t)&&!(0,x.isArray)(t)?e[n]=(0,x.deepMix)({},e[n],t):e[n]=c[n]||e[n]}))}if(n.emit("beforeadditem",{type:t,model:e}),t===Qs||t===Js){var h=void 0,d=void 0;if(h=e.source,d=e.target,h&&(0,x.isString)(h)&&(h=n.findById(h)),d&&(0,x.isString)(d)&&(d=n.findById(d)),!h||!d)return void console.warn("The source or target node of edge ".concat(e.id," does not exist!"));h.getType&&"combo"===h.getType()&&(e.isComboEdge=!0),d.getType&&"combo"===d.getType()&&(e.isComboEdge=!0),a=new js({model:e,source:h,target:d,styles:s,linkCenter:n.get("linkCenter"),group:i.addGroup()})}else if(t===Zs)a=new Gs({model:e,styles:s,group:i.addGroup()});else if(t===tu){var f=e.children,p=gn(f,n),m=void 0,g=void 0;if(isNaN(p.x)?isNaN(e.x)&&(m=100*Math.random()):m=p.x,isNaN(p.y)?isNaN(e.y)&&(g=100*Math.random()):g=p.y,isNaN(e.x)||isNaN(e.y))e.x=m,e.y=g;else{var v=e.x-m,y=e.y-g;this.updateComboSucceeds(e.id,v,y,f)}var b=i.addGroup();b.setZIndex(e.depth),a=new Ks({model:e,styles:s,animate:n.get("animate"),bbox:e.collapsed?gn([],n):p,group:b}),e.collapsed||"circle"!==a.getKeyShape().get("type")||(p.width=Math.hypot(p.height,p.width),p.height=p.width,a.set("bbox",p),a.refresh());var w=a.getModel();(f||[]).forEach((function(t){var e=n.findById(t.id);a.addChild(e),t.depth=w.depth+2}))}if(a)return a.setOptimize(n.getNodes().length>n.get("optimizeThreshold")),n.get("".concat(t,"s")).push(a),n.get("itemMap")[a.get("id")]=a,n.emit("afteradditem",{item:a,model:e}),a},t.prototype.updateItem=function(t,e){var n,r,i=this,o=this.graph;if((0,x.isString)(t)&&(t=o.findById(t)),t&&!t.destroyed){var a="";t.getType&&(a=t.getType());var s=o.get(a+eu),u=t.getModel(),l=u.x,c=u.y,h=t.getUpdateType(e);if(s){var d=s((0,x.deepMix)({},u,e)),f=(0,x.deepMix)({},u,d,e);d[nu]&&(t.set("styles",f[nu]),delete f[nu]),(0,x.each)(f,(function(t,n){e[n]=t}))}else(0,x.each)(e,(function(t,n){u[n]&&(0,x.isObject)(t)&&!(0,x.isArray)(t)&&(e[n]=(0,b.__assign)((0,b.__assign)({},u[n]),e[n]))}));if(o.emit("beforeupdateitem",{item:t,cfg:e}),a===Qs){if(e.source){var p=e.source;(0,x.isString)(p)&&(p=o.findById(p)),t.setSource(p)}if(e.target){var m=e.target;(0,x.isString)(m)&&(m=o.findById(m)),t.setTarget(m)}t.update(e)}else if(a===Zs){t.update(e,h);var g=t.getEdges();"move"===h?(0,x.each)(g,(function(t){i.edgeToBeUpdateMap[t.getID()]={edge:t,updateType:h},i.throttleRefresh()})):(null==h?void 0:h.includes("bbox"))&&(0,x.each)(g,(function(t){t.refresh(h)}))}else if(a===tu){if(t.update(e,h),!isNaN(e.x)||!isNaN(e.y)){var v=e.x-l||0,y=e.y-c||0;this.updateComboSucceeds(u.id,v,y)}var w=t.getEdges();if(((null==h?void 0:h.includes("bbox"))||"move"===h)&&a===tu){var _=t.get("shapeFactory"),S=u.type||"circle";(void 0===u.animate||void 0===e.animate?null===(r=null===(n=_[S])||void 0===n?void 0:n.options)||void 0===r?void 0:r.animate:u.animate||e.animate)?setTimeout((function(){if(t&&!t.destroyed){var e=t.getKeyShape();e&&!e.destroyed&&(0,x.each)(w,(function(t){t&&!t.destroyed&&t.refresh()}))}}),201):(0,x.each)(w,(function(t){t.refresh()}))}}t.setOptimize(o.getNodes().length>o.get("optimizeThreshold")),o.emit("afterupdateitem",{item:t,cfg:e})}},t.prototype.updateCombo=function(t,e,n){var r,i,o=this,a=this.graph;if((0,x.isString)(t)&&(t=a.findById(t)),t&&!t.destroyed){var s=t.getModel(),u=gn(e,a,t),l=u.x,c=u.y;t.set("bbox",u);var h=l,d=c;n?(h=isNaN(s.x)?l:s.x,d=isNaN(s.y)?c:s.y):(h=isNaN(l)?s.x:l,d=isNaN(c)?s.y:c),t.update({x:h,y:d});var f=t.get("shapeFactory"),p=s.type||"circle";(void 0===s.animate?null===(i=null===(r=f[p])||void 0===r?void 0:r.options)||void 0===i?void 0:i.animate:s.animate)?setTimeout((function(){if(t&&!t.destroyed){var e=t.getKeyShape();e&&!e.destroyed&&(t.getShapeCfg(s),o.updateComboEdges(t))}}),201):this.updateComboEdges(t)}},t.prototype.updateComboEdges=function(t){for(var e,n,r=t.getEdges()||[],i=0;i-1&&o.splice(a,1),i===Qs){var s=n.get("v".concat(i,"s")),u=s.indexOf(t);u>-1&&s.splice(u,1)}var l=t.get("id");delete n.get("itemMap")[l];var c=n.get("comboTrees"),h=t.get("id");if(i===Zs){var d=t.getModel().comboId;if(c&&d){var f=c,p=!1;c.forEach((function(t){p||ln(t,(function(t){if(t.id===h&&f){var e=f.indexOf(t);return f.splice(e,1),p=!0,!1}return f=t.children,!0}))}))}for(var m=(b=t.getEdges()).length-1;m>=0;m--)n.removeItem(b[m],!1);d&&n.updateCombo(d)}else if(i===tu){var g,v=t.getModel().parentId,y=!1;(c||[]).forEach((function(t){y||ln(t,(function(t){return t.id!==h||(g=t,y=!0,!1)}))})),g.removed=!0,g&&g.children&&g.children.forEach((function(t){e.removeItem(t.id)}));var b;for(m=(b=t.getEdges()).length;m>=0;m--)n.removeItem(b[m],!1);v&&n.updateCombo(v)}t.destroy(),n.emit("afterremoveitem",{item:r,type:i})}},t.prototype.setItemState=function(t,e,n){var r=this.graph,i=e;(0,x.isString)(n)&&(i="".concat(e,":").concat(n)),t.hasState(i)===n&&n||(0,x.isString)(n)&&t.hasState(i)||(r.emit("beforeitemstatechange",{item:t,state:i,enabled:n}),t.setState(e,n),r.autoPaint(),r.emit("afteritemstatechange",{item:t,state:i,enabled:n}))},t.prototype.priorityState=function(t,e){var n=this.graph,r=t;(0,x.isString)(t)&&(r=n.findById(t)),this.setItemState(r,e,!1),this.setItemState(r,e,!0)},t.prototype.clearItemStates=function(t,e){var n=this.graph;(0,x.isString)(t)&&(t=n.findById(t)),n.emit("beforeitemstatesclear",{item:t,states:e}),t.clearStates(e),n.emit("afteritemstatesclear",{item:t,states:e})},t.prototype.refreshItem=function(t){var e=this.graph;(0,x.isString)(t)&&(t=e.findById(t)),e.emit("beforeitemrefresh",{item:t}),t.refresh(),e.emit("afteritemrefresh",{item:t})},t.prototype.addCombos=function(t,e){var n=this,r=this.graph;(t||[]).forEach((function(t){cn(t,(function(t){var r;return e.forEach((function(e){e.id===t.id&&(e.children=t.children,e.depth=t.depth,r=e)})),r&&n.addItem("combo",r),!0}))}));var i=r.get("comboGroup");i&&i.sort()},t.prototype.changeItemVisibility=function(t,e){var n=this,r=this.graph;if((0,x.isString)(t)&&(t=r.findById(t)),t){if(r.emit("beforeitemvisibilitychange",{item:t,visible:e}),t.changeVisibility(e),t.getType&&t.getType()===Zs){var i=t.getEdges();(0,x.each)(i,(function(t){(!e||t.get("source").isVisible()&&t.get("target").isVisible())&&n.changeItemVisibility(t,e)}))}else if(t.getType&&t.getType()===tu){var o=r.get("comboTrees"),a=t.get("id"),s=[],u=!1;(o||[]).forEach((function(t){u||t.children&&0!==t.children.length&&ln(t,(function(t){return t.id!==a||(s=t.children,u=!0,!1)}))})),s&&(!e||e&&!t.getModel().collapsed)&&s.forEach((function(t){var i=r.findById(t.id);n.changeItemVisibility(i,e)}));i=t.getEdges();(0,x.each)(i,(function(t){(!e||t.get("source").isVisible()&&t.get("target").isVisible())&&n.changeItemVisibility(t,e)}))}return r.emit("afteritemvisibilitychange",{item:t,visible:e}),t}console.warn("The item to be shown or hidden does not exist!")},t.prototype.destroy=function(){this.graph=null,this.destroyed=!0},t}();const iu=ru;var ou=function(){function t(t){this.graph=t,this.destroyed=!1}return t.prototype.updateState=function(t,e,n){var r=this.graph.get("states"),i=e;(0,x.isString)(n)&&(i="".concat(e,":").concat(n)),r[i]||(r[i]=[]),n?r[i].push(t):r[i]=r[i].filter((function(e){return e!==t})),this.graph.set("states",r),this.graph.emit("graphstatechange",{states:r})},t.prototype.updateStates=function(t,e,n){var r=this.graph.get("states");((0,x.isString)(e)?[e]:e).forEach((function(e){var i=e;r[i]||(r[i]=[]),(0,x.isString)(n)&&(i="".concat(e,":").concat(n)),n?r[i].push(t):r[i]=r[i].filter((function(e){return e!==t}))})),this.graph.set("states",r),this.graph.emit("graphstatechange",{states:e})},t.prototype.destroy=function(){this.graph=null,this.destroyed=!0},t}();const au=ou;var su=function(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,(function(t,n){if("\\"===t.charAt(0))return t.slice(1);var r=e[n];return 0===r&&(r="0"),r||""})):t},uu=function(t){var e=[];if(t.length<2)throw new Error("point length must largn than 2, now it's ".concat(t.length));for(var n=0,r=t;n0?s-1:o-1,l=ie.normalize([0,0],ie.add([0,0],a[u].v,ie.scale([0,0],a[s].v,-1)));a[s].p=ie.add([0,0],a[s].p,ie.scale([0,0],l,e))}return a.map((function(t){var e=t.p;return{x:e[0],y:e[1]}}))}var yu=function(t,e){for(var n=[],r=0;r<5;r++){var i=Math.cos((18+72*r)/180*Math.PI)*t,o=Math.sin((18+72*r)/180*Math.PI)*t,a=Math.cos((54+72*r)/180*Math.PI)*e,s=Math.sin((54+72*r)/180*Math.PI)*e;0===r?n.push(["M",i,-o]):n.push(["L",i,-o]),n.push(["L",a,-s])}return n.push(["Z"]),n},bu=function(t,e,n){return(t.y-n.y)*(e.x-n.x)-(t.x-n.x)*(e.y-n.y)},xu=function(t){var e=t.map((function(t){return{x:t.getModel().x,y:t.getModel().y}}));e.sort((function(t,e){return t.x===e.x?t.y-e.y:t.x-e.x}));for(var n={},r=e.length-1;r>=0;r--){var i=e[r],o=i.x,a=i.y;n["".concat(o,"-").concat(a)]&&e.splice(r,1),n["".concat(o,"-").concat(a)]=!0}if(1===e.length)return e;var s=[];for(r=0;r=2&&bu(s[s.length-2],s[s.length-1],e[r])<=0;)s.pop();s.push(e[r])}var u=[];for(r=e.length-1;r>=0;r--){for(;u.length>=2&&bu(u[u.length-2],u[u.length-1],e[r])<=0;)u.pop();u.push(e[r])}return u.pop(),s.pop(),s.concat(u)},wu={maxRoutingIterations:100,maxMarchingIterations:100,pixelGroupSize:2,edgeR0:10,edgeR1:10,nodeR0:5,nodeR1:10,morphBuffer:5,threshold:.001,skip:16,nodeInfluenceFactor:1,edgeInfluenceFactor:1,negativeNodeInfluenceFactor:-.5};function _u(t,e,n){var r=!1,i=function(t,n){return e.cells[t+n*e.width]},o=function(t,e){var r=0;return i(t-1,e-1)>=n&&(r+=1),i(t,e-1)>n&&(r+=2),i(t-1,e)>n&&(r+=4),i(t,e)>n&&(r+=8),r},a=function(n,r){for(var i,a,s=n,u=r,l=0;l-1){if(t[0].x===s&&t[0].y===u)return!0}else t.push({x:s,y:u});var c=o(s,u);switch(c){case-1:return console.warn("Marched out of bounds"),!0;case 0:case 3:case 2:case 7:s++;break;case 12:case 14:case 4:s--;break;case 6:0===i&&(-1===a?s-=1:s+=1);break;case 1:case 13:case 5:u--;break;case 9:1===i&&(0===a?u-=1:u+=1);break;case 10:case 8:case 11:u++;break;default:return console.warn("Marching squares invalid state: ".concat(c)),!0}}};this.march=function(){for(var t=0;tn&&15!==o(t,s)&&(r=a(t,s));return r}}var Su=function(t,e){var n=Number.POSITIVE_INFINITY,r=null;return t.forEach((function(t){var i=Pe(t,e);i>=0&&i0?t+1:t}),0);s*Math.pow(l+1,2)=1;)d=Cu(n,c/=1.5,h,s),f=u(d,o)||u(d,i),p=l(d,e);!d||f||s&&p||(o.push(new Te(t.x1,t.y1,d.x,d.y)),o.push(new Te(d.x,d.y,t.x2,t.y2)),a=!0)};d(!0),a||d(!1)}}a||i.push(t),s+=1};!a&&o.length;)c()}for(;o.length;)i.push(o.pop());return i}(new Te(t.getModel().x,t.getModel().y,o.getModel().x,o.getModel().y),e,r,i),s=function(t){for(var n=[];t.length>0;){var r=t.pop();if(0===t.length){n.push(r);break}var i=t.pop(),o=new Te(r.x1,r.y1,i.x2,i.y2);Su(e,o)?(n.push(r),t.push(i)):t.push(o)}return n}(a);return s}var Au=function(t,e,n){var r=Object.assign(wu,n),i=Oe(t.map((function(t){return{x:t.getModel().x,y:t.getModel().y}})));t=t.sort((function(t,e){return Le({x:t.getModel().x,y:t.getModel().y},i)-Le({x:e.getModel().x,y:e.getModel().y},i)}));var o=[],a=[];t.forEach((function(t){Eu(t,e,o,r.maxRoutingIterations,r.morphBuffer).forEach((function(t){a.push(t)})),o.push(t)}));for(var s,u,l,c,h,d=function(t,e,n){var r={minX:Number.POSITIVE_INFINITY,minY:Number.POSITIVE_INFINITY,maxX:Number.NEGATIVE_INFINITY,maxY:Number.NEGATIVE_INFINITY,width:0,height:0,x:0,y:0},i=[];t.forEach((function(t){i.push(t.getBBox())})),e.forEach((function(t){i.push(t.getBBox())}));for(var o=0,a=i;or.maxX?s.maxX:r.maxX)+n,r.maxY=(s.maxY>r.maxY?s.maxY:r.maxY)+n}return r.width=r.maxX-r.minX,r.height=r.maxY-r.minY,r.x=r.minX,r.y=r.minY,r}(t,a,r.nodeR0),f=(s=d.width,u=d.height,l=r.pixelGroupSize,c=Math.ceil(s/l),h=Math.ceil(u/l),{cells:new Float32Array(Math.max(0,c*h)).fill(0),width:c,height:h}),p=[],m=[],g=0;g1)for(y=Math.floor(v.length/r.skip);y<3&&r.skip>1;)r.skip-=1,y=Math.floor(v.length/r.skip);for(var b=0,x=0;x0))break;r.nonMemberInfluenceFactor*=.8}}return m};function Mu(t,e,n,r,i,o){function a(t,e){var n=Math.floor((t-e)/o.pixelGroupSize);return n<0?0:n}function s(t,e){return t*o.pixelGroupSize+e}var u=(o.nodeR0-o.nodeR1)*(o.nodeR0-o.nodeR1),l=(o.edgeR0-o.edgeR1)*(o.edgeR0-o.edgeR1),c=function(t,e){return[Math.min(a(t.minX,e+r.minX),i.width),Math.min(a(t.minY,e+r.minY),i.height),Math.min(a(t.maxX,-e+r.minX),i.width),Math.min(a(t.maxY,-e+r.minY),i.height)]},h=function(t,e){for(var n=t.getBBox(),a=c(n,o.nodeR1),u=a[0],l=a[1],h=a[2],d=a[3],f=l;fu.y?r?l.topLeft:l.bottomRight:r?l.topRight:l.bottomLeft:a.ys.x?r?l.topLeft:l.bottomRight:r?l.bottomLeft:l.topRight:o.x0?this.cfg.padding+t:10+t,this.cfg.bubbleCfg={nodeR0:this.padding-t,nodeR1:this.padding-t,morphBuffer:this.padding-t}},t.prototype.setType=function(){this.type=this.cfg.type,this.members.length<3&&(this.type="round-convex"),"round-convex"!==this.type&&"smooth-convex"!==this.type&&"bubble"!==this.type&&(console.warn("The hull type should be either round-convex, smooth-convex or bubble, round-convex is used by default."),this.type="round-convex")},t.prototype.calcPath=function(t,e){var n,r,i;switch(this.type){case"round-convex":r=Za(i=gu((n=xu(t)).map((function(t){return[t.x,t.y]})),this.padding));break;case"smooth-convex":2===(n=xu(t)).length?r=Za(i=gu(n.map((function(t){return[t.x,t.y]})),this.padding)):n.length>2&&(i=vu(n.map((function(t){return[t.x,t.y]})),this.padding),r=du(i));break;case"bubble":r=(n=Au(t,e,this.cfg.bubbleCfg)).length>=2&&du(n)}return r},t.prototype.render=function(){this.group.addShape("path",{attrs:(0,b.__assign)({path:this.path},this.cfg.style),id:this.id,name:this.cfg.id,capture:!1}),this.group.toBack()},t.prototype.addMember=function(t){if(t){(0,x.isString)(t)&&(t=this.graph.findById(t)),this.members.push(t);var e=this.nonMembers.indexOf(t);return e>-1&&this.nonMembers.splice(e,1),this.updateData(this.members,this.nonMembers),!0}},t.prototype.addNonMember=function(t){if(t){(0,x.isString)(t)&&(t=this.graph.findById(t)),this.nonMembers.push(t);var e=this.members.indexOf(t);return e>-1&&this.members.splice(e,1),this.updateData(this.members,this.nonMembers),!0}},t.prototype.removeMember=function(t){if(t){(0,x.isString)(t)&&(t=this.graph.findById(t));var e=this.members.indexOf(t);return e>-1&&(this.members.splice(e,1),this.updateData(this.members,this.nonMembers),!0)}},t.prototype.removeNonMember=function(t){if(t){(0,x.isString)(t)&&(t=this.graph.findById(t));var e=this.nonMembers.indexOf(t);return e>-1&&(this.nonMembers.splice(e,1),this.updateData(this.members,this.nonMembers),!0)}},t.prototype.updateData=function(t,e){var n=this;this.group.findById(this.id).remove(),t&&(this.members=t.map((function(t){return(0,x.isString)(t)?n.graph.findById(t):t}))),e&&(this.nonMembers=e.map((function(t){return(0,x.isString)(t)?n.graph.findById(t):t}))),this.path=this.calcPath(this.members,this.nonMembers),this.render()},t.prototype.updateStyle=function(t){this.group.findById(this.id).attr((0,b.__assign)({},t))},t.prototype.updateCfg=function(t){var e=this;this.cfg=(0,x.deepMix)(this.cfg,t),this.id=this.cfg.id,this.group=this.cfg.group,t.members&&(this.members=this.cfg.members.map((function(t){return(0,x.isString)(t)?e.graph.findById(t):t}))),t.nonMembers&&(this.nonMembers=this.cfg.nonMembers.map((function(t){return(0,x.isString)(t)?e.graph.findById(t):t}))),this.setPadding(),this.setType(),this.path=this.calcPath(this.members,this.nonMembers),this.render()},t.prototype.contain=function(t){var e,n,r=this,i=(e=(0,x.isString)(t)?this.graph.findById(t):t).getKeyShape();if("path"===e.get("type"))n=hu(i.attr("path"));else{var o=i.getCanvasBBox();n=[[o.minX,o.minY],[o.maxX,o.minY],[o.maxX,o.maxY],[o.minX,o.maxY]]}return n=n.map((function(t){var e=r.graph.getPointByCanvas(t[0],t[1]);return[e.x,e.y]})),Ce(n,hu(this.path))},t.prototype.destroy=function(){this.group.remove(),this.cfg=null},t}();const ku=Tu;var Iu=N,Nu=function(t){function e(e){var n=t.call(this)||this;return n.sortCombos=(0,x.debounce)((function(){var t=n.get("comboSorted");if(n&&!n.destroyed&&!t){n.set("comboSorted",!0);var e=[],r={};(n.get("comboTrees")||[]).forEach((function(t){ln(t,(function(t){return e[t.depth]?e[t.depth].push(t.id):e[t.depth]=[t.id],r[t.id]=t.depth,!0}))})),(n.getEdges().concat(n.get("vedges"))||[]).forEach((function(t){var n=t.getModel(),i=r[n.source]||0,o=r[n.target]||0,a=Math.max(i,o);e[a]?e[a].push(n.id):e[a]=[n.id]})),e.forEach((function(t){if(t&&t.length)for(var e=t.length-1;e>=0;e--){var r=n.findById(t[e]);r&&r.toFront()}}))}}),500,!1),n.cfg=(0,x.deepMix)(n.getDefaultCfg(),e),n.init(),n.animating=!1,n.destroyed=!1,n.cfg.enabledStack&&(n.undoStack=new te(n.cfg.maxStep),n.redoStack=new te(n.cfg.maxStep)),n}return(0,b.__extends)(e,t),e.prototype.init=function(){this.initCanvas();var t=new bs(this),e=new _n(this),n=new iu(this),r=new au(this);this.set({viewController:t,modeController:e,itemController:n,stateController:r}),this.initLayoutController(),this.initEventController(),this.initGroups(),this.initPlugins()},e.prototype.initGroups=function(){var t=this.get("canvas");if(t){var e=(t.get("el")||{}).id,n=void 0===e?"g6":e,r=t.addGroup({id:"".concat(n,"-root"),className:Ke.rootContainerClassName});if(this.get("groupByTypes")){var i=r.addGroup({id:"".concat(n,"-edge"),className:Ke.edgeContainerClassName}),o=r.addGroup({id:"".concat(n,"-node"),className:Ke.nodeContainerClassName}),a=r.addGroup({id:"".concat(n,"-combo"),className:Ke.comboContainerClassName});a.toBack(),this.set({nodeGroup:o,edgeGroup:i,comboGroup:a})}var s=r.addGroup({id:"".concat(n,"-delegate"),className:Ke.delegateContainerClassName});this.set({delegateGroup:s}),this.set("group",r)}},e.prototype.getDefaultCfg=function(){return{container:void 0,width:void 0,height:void 0,renderer:"canvas",modes:{},plugins:[],data:{},fitViewPadding:10,minZoom:.02,maxZoom:10,event:!0,groupByTypes:!0,directed:!1,autoPaint:!0,nodes:[],edges:[],combos:[],vedges:[],itemMap:{},linkCenter:!1,defaultNode:{},defaultEdge:{},nodeStateStyles:{},edgeStateStyles:{},states:{},animate:!1,animateCfg:{onFrame:void 0,duration:500,easing:"easeLinear"},callback:void 0,enabledStack:!1,maxStep:10,tooltips:[],optimizeThreshold:1e3}},e.prototype.set=function(t,e){return(0,x.isPlainObject)(t)?this.cfg=(0,b.__assign)((0,b.__assign)({},this.cfg),t):this.cfg[t]=e,"enabledStack"!==t||!e||this.undoStack||this.redoStack||(this.undoStack=new te(this.cfg.maxStep),this.redoStack=new te(this.cfg.maxStep)),this},e.prototype.get=function(t){var e;return null===(e=this.cfg)||void 0===e?void 0:e[t]},e.prototype.getGroup=function(){return this.get("group")},e.prototype.getContainer=function(){return this.get("container")},e.prototype.getMinZoom=function(){return this.get("minZoom")},e.prototype.setMinZoom=function(t){return this.set("minZoom",t)},e.prototype.getMaxZoom=function(){return this.get("maxZoom")},e.prototype.setMaxZoom=function(t){return this.set("maxZoom",t)},e.prototype.getWidth=function(){return this.get("width")},e.prototype.getHeight=function(){return this.get("height")},e.prototype.clearItemStates=function(t,e){(0,x.isString)(t)&&(t=this.findById(t));var n=this.get("itemController");e||(e=t.get("states")),n.clearItemStates(t,e),this.get("stateController").updateStates(t,e,!1)},e.prototype.node=function(t){"function"==typeof t&&this.set("nodeMapper",t)},e.prototype.edge=function(t){"function"==typeof t&&this.set("edgeMapper",t)},e.prototype.combo=function(t){"function"==typeof t&&this.set("comboMapper",t)},e.prototype.findById=function(t){return this.get("itemMap")[t]},e.prototype.find=function(t,e){var n,r=this.get("".concat(t,"s"));return(0,x.each)(r,(function(t,r){if(e(t,r))return n=t})),n},e.prototype.findAll=function(t,e){var n=[];return(0,x.each)(this.get("".concat(t,"s")),(function(t,r){e(t,r)&&n.push(t)})),n},e.prototype.findAllByState=function(t,e,n){return n?this.findAll(t,(function(t){return t.hasState(e)&&n(t)})):this.findAll(t,(function(t){return t.hasState(e)}))},e.prototype.translate=function(t,e,n,r){var i=this,o=this.get("group"),a=(0,x.clone)(o.getMatrix());if(a||(a=[1,0,0,0,1,0,0,0,1]),n){var s=bn({animateCfg:r,callback:function(){return i.emit("viewportchange",{action:"translate",matrix:o.getMatrix()})}});xe(o,{x:o.getCanvasBBox().x+t,y:o.getCanvasBBox().y+e},n,s||{duration:500,easing:"easeCubic"})}else a=Iu(a,[["t",t,e]]),o.setMatrix(a),this.emit("viewportchange",{action:"translate",matrix:a}),this.autoPaint()},e.prototype.moveTo=function(t,e,n,r){var i=this.get("group");xe(i,{x:t,y:e},n,r||{duration:500,easing:"easeCubic"}),this.emit("viewportchange",{action:"move",matrix:i.getMatrix()})},e.prototype.fitView=function(t,e,n,r){t&&this.set("fitViewPadding",t);var i=this.get("viewController");e?i.fitViewByRules(e,n,r):i.fitView(n,r),this.autoPaint()},e.prototype.fitCenter=function(t,e){this.get("viewController").fitCenter(t,e),this.autoPaint()},e.prototype.addBehaviors=function(t,e){return this.get("modeController").manipulateBehaviors(t,e,!0),this},e.prototype.removeBehaviors=function(t,e){return this.get("modeController").manipulateBehaviors(t,e,!1),this},e.prototype.updateBehavior=function(t,e,n){return this.get("modeController").updateBehavior(t,e,n),this},e.prototype.zoom=function(t,e,n,r){var i=this,o=this.get("group"),a=(0,x.clone)(o.getMatrix())||[1,0,0,0,1,0,0,0,1],s=this.get("minZoom"),u=this.get("maxZoom"),l=this.getZoom()||1,c=l*t,h=t,d=!1;if(s&&cu&&(h=u/l,d=!0),a=Iu(a,e?[["t",-e.x,-e.y],["s",h,h],["t",e.x,e.y]]:[["s",h,h]]),n){var f=(0,x.clone)(o.getMatrix());f||(f=[1,0,0,0,1,0,0,0,1]);var p=f[0],m=p*h,g=bn({animateCfg:r,callback:function(){return i.emit("viewportchange",{action:"zoom",matrix:o.getMatrix()})}});o.animate((function(t){if(1===t)f=a;else{var n=Be(p,m,t)/f[0];f=Iu(f,e?[["t",-e.x,-e.y],["s",n,n],["t",e.x,e.y]]:[["s",n,n]])}return{matrix:f}}),g)}else o.setMatrix(a),this.emit("viewportchange",{action:"zoom",matrix:a}),this.autoPaint();return!d},e.prototype.zoomTo=function(t,e,n,r){var i=t/this.getZoom();return this.zoom(i,e,n,r)},e.prototype.focusItem=function(t,e,n){var r=this.get("viewController"),i=!1;e?i=!0:void 0===e&&(i=this.get("animate"));var o={};n?o=n:void 0===n&&(o=this.get("animateCfg")),r.focus(t,i,o),this.autoPaint()},e.prototype.focusItems=function(t,e,n,r){this.get("viewController").focusItems(t,e,n,r)},e.prototype.autoPaint=function(){this.get("autoPaint")&&this.paint()},e.prototype.paint=function(){this.emit("beforepaint"),this.get("canvas").draw(),this.emit("afterpaint")},e.prototype.getPointByClient=function(t,e){return this.get("viewController").getPointByClient(t,e)},e.prototype.getClientByPoint=function(t,e){return this.get("viewController").getClientByPoint(t,e)},e.prototype.getPointByCanvas=function(t,e){return this.get("viewController").getPointByCanvas(t,e)},e.prototype.getCanvasByPoint=function(t,e){return this.get("viewController").getCanvasByPoint(t,e)},e.prototype.getGraphCenterPoint=function(){var t=this.get("group").getCanvasBBox();return{x:(t.minX+t.maxX)/2,y:(t.minY+t.maxY)/2}},e.prototype.getViewPortCenterPoint=function(){return this.getPointByCanvas(this.get("width")/2,this.get("height")/2)},e.prototype.showItem=function(t,e){void 0===e&&(e=!0);var n=this.get("itemController").changeItemVisibility(t,!0);if(e&&this.get("enabledStack")){var r=n.getID(),i={},o={};switch(n.getType()){case"node":i.nodes=[{id:r,visible:!1}],o.nodes=[{id:r,visible:!0}];break;case"edge":i.nodes=[{id:r,visible:!1}],o.edges=[{id:r,visible:!0}];break;case"combo":i.nodes=[{id:r,visible:!1}],o.combos=[{id:r,visible:!0}]}this.pushStack("visible",{before:i,after:o})}},e.prototype.hideItem=function(t,e){void 0===e&&(e=!0);var n=this.get("itemController").changeItemVisibility(t,!1);if(e&&this.get("enabledStack")){var r=n.getID(),i={},o={};switch(n.getType()){case"node":i.nodes=[{id:r,visible:!0}],o.nodes=[{id:r,visible:!1}];break;case"edge":i.nodes=[{id:r,visible:!0}],o.edges=[{id:r,visible:!1}];break;case"combo":i.nodes=[{id:r,visible:!0}],o.combos=[{id:r,visible:!1}]}this.pushStack("visible",{before:i,after:o})}},e.prototype.refreshItem=function(t){this.get("itemController").refreshItem(t)},e.prototype.setAutoPaint=function(t){this.set("autoPaint",t),this.get("canvas").set("autoDraw",t)},e.prototype.remove=function(t,e){void 0===e&&(e=!0),this.removeItem(t,e)},e.prototype.removeItem=function(t,e){void 0===e&&(e=!0);var n=t;if((0,x.isString)(t)&&(n=this.findById(t)),!n&&(0,x.isString)(t))console.warn("The item ".concat(t," to be removed does not exist!"));else if(n){var r="";if(n.getType&&(r=n.getType()),e&&this.get("enabledStack")){var i=(0,b.__assign)((0,b.__assign)({},n.getModel()),{itemType:r}),o={};switch(r){case"node":o.nodes=[i],o.edges=[];for(var a=n.getEdges(),s=a.length-1;s>=0;s--)o.edges.push((0,b.__assign)((0,b.__assign)({},a[s].getModel()),{itemType:"edge"}));break;case"edge":o.edges=[i];break;case"combo":o.combos=[i]}this.pushStack("delete",{before:o,after:{}})}if("node"===r)n.getModel().comboId&&this.updateComboTree(n,void 0,!1);if(this.get("itemController").removeItem(n),"combo"===r){var u=mn(this.get("comboTrees"));this.set("comboTrees",u)}}},e.prototype.innerAddItem=function(t,e,n){if(!function(t,e){if("node"===t||"combo"===t){if(e.id&&!(0,x.isString)(e.id))return console.warn("G6 Warning Tips: missing 'id' property, or the 'id' %c".concat(e.id,"%c is not a string."),"font-size: 20px; color: red;",""),!1}else if(!("edge"!==t||e.source&&e.target))return console.warn("G6 Warning Tips: missing 'source' or 'target' for the edge."),!1;return!0}(t,e))return!1;if(!e.id||!this.findById(e.id)){var r,i=this.get("comboTrees")||[];if("combo"===t){var o=this.get("itemMap"),a=!1;if(i.forEach((function(i){a||cn(i,(function(i){if(e.parentId===i.id){a=!0;var s=(0,b.__assign)({id:e.id,depth:i.depth+2},e);i.children?i.children.push(s):i.children=[s],e.depth=s.depth,r=n.addItem(t,e)}var u=o[i.id];return a&&u&&u.getType&&"combo"===u.getType()&&n.updateCombo(u,i.children),!0}))})),!a){var s=(0,b.__assign)({id:e.id,depth:0},e);e.depth=s.depth,i.push(s),r=n.addItem(t,e)}this.set("comboTrees",i),e.collapsed&&(this.collapseCombo(r,!1),this.updateCombo(r))}else if("node"===t&&(0,x.isString)(e.comboId)&&i){var u;(u=this.findById(e.comboId))&&u.getType&&"combo"!==u.getType()&&console.warn("'".concat(e.comboId,"' is not a id of a combo in the graph, the node will be added without combo.")),r=n.addItem(t,e);var l=this.get("itemMap"),c=!1,h=!1;i.forEach((function(t){h||c||cn(t,(function(t){if(t.id===e.id)return h=!0,!1;if(e.comboId===t.id&&!h){c=!0;var r=(0,x.clone)(e);r.itemType="node",t.children?t.children.push(r):t.children=[r],r.depth=t.depth+1}return c&&l[t.id].getType&&"combo"===l[t.id].getType()&&n.updateCombo(l[t.id],t.children),!0}))}))}else r=n.addItem(t,e);if("node"===t&&e.comboId||"combo"===t&&e.parentId)(u=this.findById(e.comboId||e.parentId))&&u.getType&&"combo"===u.getType()&&u.addChild(r);return r}console.warn("This item exists already. Be sure the id %c".concat(e.id,"%c is unique."),"font-size: 20px; color: red;","")},e.prototype.addItem=function(t,e,n,r){void 0===n&&(n=!0),void 0===r&&(r=!0);var i=this.get("comboSorted");this.set("comboSorted",i&&!r);var o=this.get("itemController"),a=this.innerAddItem(t,e,o);if(!1===a||!0===a)return a;var s=this.get("combos");if(s&&s.length>0&&this.sortCombos(),this.autoPaint(),n&&this.get("enabledStack")){var u=(0,b.__assign)((0,b.__assign)({},a.getModel()),{itemType:t}),l={};switch(t){case"node":l.nodes=[u];break;case"edge":l.edges=[u];break;case"combo":l.combos=[u]}this.pushStack("add",{before:{},after:l})}return a},e.prototype.addItems=function(t,e,n){void 0===t&&(t=[]),void 0===e&&(e=!0),void 0===n&&(n=!0);var r=this.get("comboSorted");this.set("comboSorted",r&&!n);for(var i=this.get("itemController"),o=[],a=0;a0&&this.sortCombos()}if(this.autoPaint(),e&&this.get("enabledStack")){var l={nodes:[],edges:[],combos:[]};for(a=0;a=0;f--)d[f].destroyed&&d.splice(f,1);c&&(i.addCombos(c),this.get("groupByTypes")||this.sortCombos()),this.diffItems("edge",l,o.edges),(0,x.each)(u,(function(t,e){(!t.getType||"node"!==t.getType()&&"combo"!==t.getType())&&l.edges.indexOf(t)<0&&(delete u[e],i.remove(t,!1))})),(this.get("comboTrees")||[]).forEach((function(t){cn(t,(function(t){return"combo"===r.findById(t.id).getType()&&t.collapsed&&r.collapseCombo(t.id,!1),!0}))})),this.set({nodes:l.nodes,edges:l.edges});var p=(this.get("layout")||{}).relayoutAtChangeData,m=void 0===p||p,g=this.get("layoutController");return m&&g&&(g.changeData((function(){setTimeout((function(){var t;null===(t=i.getCombos())||void 0===t||t.forEach((function(t){t.set("animate",!0)}))}),0)})),i.get("animate")&&!g.getLayoutType()?(i.positionsAnimate(),null===(n=i.getCombos())||void 0===n||n.forEach((function(t){return t.set("animate",!0)}))):i.autoPaint()),setTimeout((function(){a.set("localRefresh",s)}),16),this.set("data",o),this.emit("afterchangedata"),this},e.prototype.addCombos=function(t){var e=this.get("comboTrees");this.get("itemController").addCombos(e,t)},e.prototype.createCombo=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=this.get("itemController");this.set("comboSorted",!1);var o,a="";if(t){if((0,x.isString)(t))a=t,o={id:t};else{if(!(a=t.id))return void console.warn("Create combo failed. Please assign a unique string id for the adding combo.");o=t}var s=n&&this.get("enabledStack"),u={nodes:[],combos:[]};s&&e.forEach((function(t){var e=r.findById(t),n=e.getType();if("node"===n||"combo"===n){var i=e.getModel();u["".concat(n,"s")].push({id:t,parentId:"node"===n?i.comboId:i.parentId})}}));var l=this.get("comboTrees"),c=new Set(e),h=new Map;l&&(l.forEach((function(t){cn(t,(function(t,e,n){if(c.has(t.id)){if(e){var o=r.findById(e.id),a=r.findById(t.id);e.children.splice(n,1),o.removeChild(a),i.updateCombo(o,e.children)}"combo"===t.itemType&&h.set(t.id,t)}return!0}))})),l=l.filter((function(t){return!c.has(t.id)})),this.set("comboTrees",l));var d={nodes:[],combos:[]},f=e.map((function(t){var e=r.findById(t),n=e.getModel(),i="";e.getType&&(i=e.getType());var o=h.get(t)||{id:e.getID(),itemType:i};return"combo"===i?(o.parentId=a,n.parentId=a):"node"===i&&(o.comboId=a,n.comboId=a),s&&d["".concat(i,"s")].push({id:n.id,parentId:a}),o}));o.children=f,this.addItem("combo",o,!1),this.set("comboSorted",!1),l&&(l.forEach((function(t){ln(t,(function(t){return t.id!==a||(t.itemType="combo",t.children=f,!1)}))})),this.sortCombos()),s&&(d.combos.push(o),this.pushStack("createCombo",{before:u,after:d}));var p=this.findById(a);!p.getModel().parentId&&p.getChildren().combos.length&&this.updateComboTree(p,void 0,!1),setTimeout((function(){p.set("animate",!0)}),0)}},e.prototype.uncombo=function(t,e){var n,r,i=this;void 0===e&&(e=!0);var o=t;if((0,x.isString)(t)&&(o=this.findById(t)),!o||o.getType&&"combo"!==o.getType())console.warn("The item is not a combo!");else{var a=o.getModel(),s=o.getModel().parentId,u=this.get("comboTrees");u||(u=[]);var l,c=this.get("itemMap"),h=o.get("id"),d=[],f=this.get("combos"),p=this.findById(s),m=e&&this.get("enabledStack"),g={};if(m&&((g=(0,x.clone)(a)).children=[]),u.forEach((function(t){l||cn(t,(function(t){var e;if(t.id===h){l=t;var n=o.getEdges().map((function(t){return t.getID()}));n.forEach((function(t){i.removeItem(t,!1)}));var r=f.indexOf(o);f.splice(r,1),delete c[h];var a=(0,x.clone)(o.getModel());o.destroy(),i.emit("afterremoveitem",{item:a,type:"combo"})}return!s||!l||t.id!==s||(p.removeCombo(o),-1!==(r=(d=t.children).indexOf(l))&&d.splice(r,1),null===(e=l.children)||void 0===e||e.forEach((function(t){var e=i.findById(t.id),n=e.getModel();e.getType&&"combo"===e.getType()?(t.parentId=s,delete t.comboId,n.parentId=s,delete n.comboId):e.getType&&"node"===e.getType()&&(t.comboId=s,n.comboId=s),p.addChild(e),d.push(t)})),i.updateCombo(p),!1)}))})),!s&&l){var v=u.indexOf(l);u.splice(v,1),null===(n=l.children)||void 0===n||n.forEach((function(t){t.parentId=void 0;var e=i.findById(t.id).getModel();delete e.parentId,delete e.comboId,"node"!==t.itemType&&u.push(t)}))}if(m){var y={nodes:[],combos:[]},b={nodes:[],combos:[]};null===(r=l.children)||void 0===r||r.forEach((function(t){var e=i.findById(t.id).getType();"node"!==e&&"combo"!==e||(y["".concat(e,"s")].push({id:t.id,parentId:h}),b["".concat(e,"s")].push({id:t.id,parentId:s}))})),y.combos.push(g),this.pushStack("uncombo",{before:y,after:b})}}},e.prototype.updateCombos=function(t){var e=this;void 0===t&&(t=!1);var n=this,r=this.get("comboTrees"),i=n.get("itemController"),o=n.get("itemMap");(r||[]).forEach((function(n){cn(n,(function(n){var r;if(!n)return!0;var a=o[n.id];if("combo"===(null===(r=null==a?void 0:a.getType)||void 0===r?void 0:r.call(a))){var s=(0,b.__spreadArray)([],a.getStates(),!0);(0,x.each)(s,(function(t){return e.setItemState(a,t,!1)})),i.updateCombo(a,n.children,t),(0,x.each)(s,(function(t){return e.setItemState(a,t,!0)}))}return!0}))})),n.sortCombos()},e.prototype.updateCombo=function(t){var e,n=this,r=t;if((0,x.isString)(t)&&(r=this.findById(t)),!r||r.getType&&"combo"!==r.getType())console.warn("The item to be updated is not a combo!");else{e=r.get("id");var i=this.get("comboTrees"),o=this.get("itemController"),a=this.get("itemMap");(i||[]).forEach((function(t){cn(t,(function(t){if(!t)return!0;var r=a[t.id];if(e===t.id&&r&&r.getType&&"combo"===r.getType()){var i=(0,b.__spreadArray)([],r.getStates(),!0);(0,x.each)(i,(function(t){r.getStateStyle(t)&&n.setItemState(r,t,!1)})),o.updateCombo(r,t.children),(0,x.each)(i,(function(t){r.getStateStyle(t)&&n.setItemState(r,t,!0)})),e&&(e=t.parentId)}return!0}))}))}},e.prototype.updateComboTree=function(t,e,n){void 0===n&&(n=!0);var r;this.set("comboSorted",!1);var i,o=(r=(0,x.isString)(t)?this.findById(t):t).getModel(),a=o.comboId||o.parentId,s="";if(r.getType&&(s=r.getType()),e&&"combo"===s){var u,l=this.get("comboTrees"),c=!0;if((l||[]).forEach((function(t){u||ln(t,(function(t){if(!u)return t.id===r.getID()&&(u=t),!0}))})),ln(u,(function(t){return t.id!==e||(c=!1,!1)})),!c)return void console.warn("Failed to update the combo tree! The parentId points to a descendant of the combo!")}if(n&&this.get("enabledStack")){var h={},d={};"combo"===s?(h.combos=[{id:o.id,parentId:o.parentId}],d.combos=[{id:o.id,parentId:e}]):"node"===s&&(h.nodes=[{id:o.id,parentId:o.comboId}],d.nodes=[{id:o.id,parentId:e}]),this.pushStack("updateComboTree",{before:h,after:d})}if(o.parentId||o.comboId){var f=this.findById(o.parentId||o.comboId);f&&f.removeChild(r)}("combo"===s?o.parentId=e:"node"===s&&(o.comboId=e),e)&&((i=this.findById(e))&&i.addChild(r));a&&((i=this.findById(a))&&i.removeChild(r));var p=mn(this.get("comboTrees"),o.id,e);this.set("comboTrees",p),this.updateCombos()},e.prototype.save=function(){var t=[],e=[],n=[];return(0,x.each)(this.get("nodes"),(function(e){t.push(e.getModel())})),(0,x.each)(this.get("edges"),(function(t){e.push(t.getModel())})),(0,x.each)(this.get("combos"),(function(t){n.push(t.getModel())})),{nodes:t,edges:e,combos:n}},e.prototype.changeSize=function(t,e){return this.get("viewController").changeSize(t,e),this},e.prototype.refresh=function(){var t=this;if(t.emit("beforegraphrefresh"),t.get("animate"))t.positionsAnimate();else{var e=t.get("nodes"),n=t.get("edges"),r=t.get("edges");(0,x.each)(e,(function(t){t.refresh()})),(0,x.each)(n,(function(t){t.refresh()})),(0,x.each)(r,(function(t){t.refresh()}))}t.emit("aftergraphrefresh"),t.autoPaint()},e.prototype.getNodes=function(){return this.get("nodes")},e.prototype.getEdges=function(){return this.get("edges")},e.prototype.getCombos=function(){return this.get("combos")},e.prototype.getComboChildren=function(t){if((0,x.isString)(t)&&(t=this.findById(t)),t&&(!t.getType||"combo"===t.getType()))return t.getChildren();console.warn("The combo does not exist!")},e.prototype.positionsAnimate=function(t){var e=this;e.emit("beforeanimate");var n=e.get("animateCfg"),r=n.onFrame,i=t?e.getNodes().concat(e.getCombos()):e.getNodes(),o=i.map((function(t){var e=t.getModel();return{id:e.id,x:e.x,y:e.y}}));e.stopAnimate();var a=e.get("canvas");e.animating=!0,setTimeout((function(){a.animate((function(n){(0,x.each)(o,(function(t){var i=e.findById(t.id);if(i&&!i.destroyed){var o=i.get("originAttrs"),a=i.get("model"),s=i.getContainer().getMatrix();if(null==o&&(s&&(o={x:s[6],y:s[7]}),i.set("originAttrs",o||0)),r){var u=r(i,n,t,o||{x:0,y:0});i.set("model",Object.assign(a,u))}else o?(a.x=o.x+(t.x-o.x)*n,a.y=o.y+(t.y-o.y)*n):(a.x=t.x,a.y=t.y)}})),e.refreshPositions(t)}),{duration:n.duration,easing:n.easing,callback:function(){(0,x.each)(i,(function(t){t.set("originAttrs",null)})),n.callback&&n.callback(),e.emit("afteranimate"),e.animating=!1}})}),0)},e.prototype.refreshPositions=function(t){var e=this;e.emit("beforegraphrefreshposition");var n,r=e.get("nodes"),i=e.get("edges"),o=e.get("vedges"),a=e.get("combos"),s={},u=function(t){(0,x.each)(t,(function(t){n=t.getModel();var e=t.get("originAttrs");if(!e||n.x!==e.x||n.y!==e.y){var r=t.updatePosition({x:n.x,y:n.y});s[n.id]=r,n.comboId&&(s[n.comboId]=s[n.comboId]||r),n.parentId&&(s[n.parentId]=s[n.parentId]||r)}}))};u(a),u(r),a&&0!==a.length&&(t?(u(a),e.updateCombos()):e.updateCombos()),(0,x.each)(i,(function(t){var e=t.getSource().getModel(),n=t.getTarget();if(!(0,x.isPlainObject)(n)){var r=n.getModel();(s[e.id]||s[r.id]||t.getModel().isComboEdge)&&t.refresh()}})),(0,x.each)(o,(function(t){t.refresh()})),e.emit("aftergraphrefreshposition"),e.autoPaint()},e.prototype.stopAnimate=function(){var t=this.get("canvas").cfg.timeline;t&&t.stopAllAnimations()},e.prototype.isAnimating=function(){return this.animating},e.prototype.getZoom=function(){var t=this.get("group").getMatrix();return t?t[0]:1},e.prototype.getCurrentMode=function(){return this.get("modeController").getMode()},e.prototype.setMode=function(t){return this.get("modeController").setMode(t),this},e.prototype.clear=function(t){var e;return void 0===t&&(t=!1),null===(e=this.get("canvas"))||void 0===e||e.clear(),this.initGroups(),this.set({itemMap:{},nodes:[],edges:[],vedges:[],groups:[],combos:[],comboTrees:[]}),t||this.emit("afterrender"),this},e.prototype.updateLayout=function(t,e,n,r){var i=this;void 0===t&&(t={}),void 0===r&&(r=!0);var o=this.get("layoutController");if((0,x.isString)(t)&&(t={type:t}),e){var a=n;a||(a="begin"===e?{x:0,y:0}:{x:this.getWidth()/2,y:this.getHeight()/2}),a=this.getPointByCanvas(a.x,a.y);var s=["force","gForce","fruchterman","force2"];s.includes(t.type)||!t.type&&s.includes(null==o?void 0:o.layoutType)?t.center=[a.x,a.y]:this.once("afterlayout",(function(t){var n=i.getGroup().getMatrix()||[1,0,0,0,1,0,0,0,1];a.x=a.x*n[0]+n[6],a.y=a.y*n[0]+n[7];var r=i.getGroup().getCanvasBBox(),o=r.minX,s=r.maxX,u=r.minY,l={x:(o+s)/2,y:(u+r.maxY)/2};"begin"===e&&(l.x=o,l.y=u),i.translate(a.x-l.x,a.y-l.y)}))}var u=(0,b.__assign)({},this.get("layout")),l={};Object.assign(l,u,t),t.pipes&&!t.type?delete l.type:!t.pipes&&l.type&&delete l.pipes,this.set("layout",l),o&&(o.isLayoutTypeSame(l)&&l.gpuEnabled===u.gpuEnabled?o.updateLayoutCfg(l):o.changeLayout(l),r&&this.get("enabledStack")&&this.pushStack("layout",{before:u,after:l}))},e.prototype.destroyLayout=function(){var t=this.get("layoutController");null==t||t.destroyLayout()},e.prototype.layout=function(){var t,e=this.get("layoutController"),n=this.get("layout");n&&e&&(n.workerEnabled?e.layout():(null===(t=e.layoutMethods)||void 0===t?void 0:t.length)?e.relayout(!0):e.layout())},e.prototype.collapseCombo=function(t,e){var n=this;if(void 0===e&&(e=!0),!this.destroyed)if((0,x.isString)(t)&&(t=this.findById(t)),t){this.emit("beforecollapseexpandcombo",{action:"collapse",item:t});var r=t.getModel();this.get("itemController").collapseCombo(t,e),r.collapsed=!0;var i=this.getEdges().concat(this.get("vedges")),o=[],a=this.get("comboTrees"),s=!1;(a||[]).forEach((function(t){s||ln(t,(function(t){if(s&&t.depth<=r.depth)return!1;if(r.id===t.id&&(s=!0),s){var e=n.findById(t.id);e&&e.getType&&"combo"===e.getType()&&(o=(o=o.concat(e.getNodes())).concat(e.getCombos()))}return!0}))}));var u={};i.forEach((function(t){var e=t.getModel(),i=e.isVEdge,a=e.size,s=void 0===a?1:a;if(!t.isVisible()||i){var l,c=t.getSource(),h=t.getTarget(),d=null;if(c.getModel().id===r.id||o.includes(c)&&!o.includes(h)?(d=h,l=!1):(h.getModel().id===r.id||!o.includes(c)&&o.includes(h))&&(d=c,l=!0),d){if(i)return void n.removeItem(t,!1);for(var f=d.getModel();!d.isVisible();){var p=f.parentId,m=f.comboId,g=p||m;if(!(d=n.findById(g))||!g)return;f=d.getModel()}var v=f.id,y=l?{source:v,target:r.id,size:s,isVEdge:!0}:{source:r.id,target:v,size:s,isVEdge:!0},b="".concat(y.source,"-").concat(y.target);if(u[b])return void(u[b].size+=s);u[b]=y}}})),this.addItems(Object.values(u).map((function(t){return{type:"vedge",model:t}})),!1),this.emit("aftercollapseexpandcombo",{action:"collapse",item:t})}else console.warn("The combo to be collapsed does not exist!")},e.prototype.expandCombo=function(t,e){var n=this;if(void 0===e&&(e=!0),(0,x.isString)(t)&&(t=this.findById(t)),!t||t.getType&&"combo"!==t.getType())console.warn("The combo to be collapsed does not exist!");else{this.emit("beforecollapseexpandcombo",{action:"expand",item:t});var r=t.getModel();this.get("itemController").expandCombo(t,e),r.collapsed=!1;var i=this.getEdges().concat(this.get("vedges")),o=[],a=this.get("comboTrees"),s=!1;(a||[]).forEach((function(t){s||ln(t,(function(t){if(s&&t.depth<=r.depth)return!1;if(r.id===t.id&&(s=!0),s){var e=n.findById(t.id);e&&e.getType&&"combo"===e.getType()&&(o=(o=o.concat(e.getNodes())).concat(e.getCombos()))}return!0}))}));var u={};i.forEach((function(t){if(!t.isVisible()||t.getModel().isVEdge){var e,i=t.getSource(),a=t.getTarget(),s=i.get("id"),l=a.get("id"),c=null;if(s===r.id||o.includes(i)&&!o.includes(a)?(c=a,e=!1):l===r.id||!o.includes(i)&&o.includes(a)?(c=i,e=!0):o.includes(i)&&o.includes(a)&&i.isVisible()&&a.isVisible()&&t.show(),c){var h=t.getModel(),d=h.isVEdge,f=h.size,p=void 0===f?1:f;if(d)return void n.removeItem(t,!1);for(var m=c.getModel();!c.isVisible();){var g=m.parentId,v=m.comboId,y=g||v;if(!(c=n.findById(y))||!y)return;m=c.getModel()}for(var b=m.id,x=e?a:i,w=x.getModel();!x.isVisible();){var _=w.parentId,S=w.comboId,E=_||S;if(!(x=n.findById(E))||!E)return;if(w.comboId===r.id||w.parentId===r.id)break;w=x.getModel()}var A=w.id;if(b){var M=e?{source:b,target:A,isVEdge:!0,size:p}:{source:A,target:b,isVEdge:!0,size:p},C="".concat(M.source,"-").concat(M.target);if(u[C])return void(u[C].size+=p);u[C]=M}}}})),this.addItems(Object.values(u).map((function(t){return{type:"vedge",model:t}})),!1),this.emit("aftercollapseexpandcombo",{action:"expand",item:t})}},e.prototype.collapseExpandCombo=function(t,e){if(void 0===e&&(e=!0),(0,x.isString)(t)&&(t=this.findById(t)),t&&(!t.getType||"combo"===t.getType())){for(var n=t.getModel(),r=this.findById(n.parentId);r;){var i=r.getModel();if(i.collapsed)return console.warn("Fail to expand the combo since it's ancestor combo is collapsed."),void(r=void 0);r=this.findById(i.parentId)}n.collapsed?this.expandCombo(t,e):this.collapseCombo(t,e),this.updateCombo(t)}},e.prototype.getNeighbors=function(t,e){var n=t;return(0,x.isString)(t)&&(n=this.findById(t)),n.getNeighbors(e)},e.prototype.getNodeDegree=function(t,e,n){void 0===e&&(e=void 0),void 0===n&&(n=!1);var r=t;(0,x.isString)(t)&&(r=this.findById(t));var i=this.get("degrees");i&&!n||(i=Y(this.save()),this.set("degrees",i));var o=i[r.getID()],a=0;if(!o)return 0;switch(e){case"in":a=o.inDegree;break;case"out":a=o.outDegree;break;case"all":a=o;break;default:a=o.degree}return a},e.prototype.getUndoStack=function(){return this.undoStack},e.prototype.getRedoStack=function(){return this.redoStack},e.prototype.getStackData=function(){return this.get("enabledStack")?{undoStack:this.undoStack.toArray(),redoStack:this.redoStack.toArray()}:null},e.prototype.clearStack=function(){this.get("enabledStack")&&(this.undoStack.clear(),this.redoStack.clear(),this.emit("stackchange",{undoStack:this.undoStack,redoStack:this.redoStack}))},e.prototype.pushStack=function(t,e,n){if(void 0===t&&(t="update"),void 0===n&&(n="undo"),this.get("enabledStack")){var r=e?(0,x.clone)(e):{before:{},after:(0,x.clone)(this.save())};"redo"===n?this.redoStack.push({action:t,data:r}):this.undoStack.push({action:t,data:r}),this.emit("stackchange",{action:t,stackType:n,undoStack:this.undoStack,redoStack:this.redoStack})}else console.warn("请先启用 undo & redo 功能,在实例化 Graph 时候配置 enabledStack: true !")},e.prototype.getAdjMatrix=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=this.get("directed"));var n=this.get("adjMatrix");return n&&t||(n=P(this.save(),e),this.set("adjMatrix",n)),n},e.prototype.getShortestPathMatrix=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=this.get("directed"));var n=this.get("adjMatrix"),r=this.get("shortestPathMatrix");return n&&t||(n=P(this.save(),e),this.set("adjMatrix",n)),r&&t||(r=at(this.save(),e),this.set("shortestPathMatrix",r)),r},e.prototype.on=function(e,n,r){return t.prototype.on.call(this,e,n,r)},e.prototype.destroy=function(){var t,e,n,r,i;this.emit("beforedestroy"),this.clear(),this.clearStack(),null===(t=this.get("itemController"))||void 0===t||t.destroy(),null===(e=this.get("modeController"))||void 0===e||e.destroy(),null===(n=this.get("viewController"))||void 0===n||n.destroy(),null===(r=this.get("stateController"))||void 0===r||r.destroy(),null===(i=this.get("canvas"))||void 0===i||i.destroy(),this.cfg=null,this.destroyed=!0,this.redoStack=null,this.undoStack=null,this.emit("afterdestroy")},e.prototype.createHull=function(t){if(t.members&&!(t.members.length<1)){var e=this.get("hullGroup"),n=this.get("hullMap");if(n||(n={},this.set("hullMap",n)),e&&!e.get("destroyed")||((e=this.get("group").addGroup({id:"hullGroup"})).toBack(),this.set("hullGroup",e)),n[t.id])return console.warn("Existed hull id."),n[t.id];var r=e.addGroup({id:"".concat(t.id,"-container")}),i=new ku(this,(0,b.__assign)((0,b.__assign)({},t),{group:r}));return n[i.id]=i,i}console.warn("Create hull failed! The members is empty.")},e.prototype.getHulls=function(){return this.get("hullMap")},e.prototype.getHullById=function(t){return this.get("hullMap")[t]},e.prototype.removeHull=function(t){var e,n;n=(0,x.isString)(t)?this.getHullById(t):t,null===(e=this.get("hullMap"))||void 0===e||delete e[n.id],n.destroy()},e.prototype.removeHulls=function(){var t=this.getHulls();t&&Object.keys(t).length&&(Object.keys(t).forEach((function(e){t[e].destroy()})),this.set("hullMap",{}))},e}(M);const Pu=Nu;function Ou(t){return Ou="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ou(t)}var Lu=N,Ru="-shape",Du="-label",zu=["startArrow","endArrow"],Fu={lineWidth:1,stroke:void 0,fill:void 0,lineAppendWidth:1,opacity:void 0,strokeOpacity:void 0,fillOpacity:void 0,x:0,y:0,r:10,width:20,height:20,shadowColor:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0},Bu={edge:{lineWidth:1,stroke:"#000",lineDash:void 0,startArrow:!1,endArrow:!1,opacity:void 0,strokeOpacity:void 0,fillOpacity:void 0,shadowColor:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0},node:Fu,combo:Fu},Uu="-label-bg",ju={options:{labelCfg:{style:{fontFamily:Ke.windowFontFamily}},descriptionCfg:{style:{fontFamily:Ke.windowFontFamily}}},itemType:"",type:"",getCustomConfig:function(t){return{}},getOptions:function(t,e){return"move"===e||(null==e?void 0:e.includes("bbox"))?t:(0,x.deepMix)({},this.options,this.getCustomConfig(t)||{},t)},draw:function(t,e){e.shapeMap={},this.mergeStyle=this.getOptions(t);var n=this.drawShape(t,e);if(n.set("className",this.itemType+Ru),e.shapeMap[this.itemType+Ru]=n,t.label){var r=this.drawLabel(t,e);r.set("className",this.itemType+Du),e.shapeMap[this.itemType+Du]=r}return n},afterDraw:function(t,e,n){},drawShape:function(t,e){return null},drawLabel:function(t,e){var n=(this.mergeStyle||this.getOptions(t)||{}).labelCfg||{},r=this.getLabelStyle(t,n,e),i=r.rotate;delete r.rotate;var o=e.addShape("text",{attrs:r,draggable:!0,className:"text-shape",name:"text-shape",labelRelated:!0});if(e.shapeMap["text-shape"]=o,!isNaN(i)&&""!==i){var a=o.getBBox(),s=[1,0,0,0,1,0,0,0,1];if(r.rotateCenter)switch(r.rotateCenter){case"center":default:s=Lu(s,[["t",-a.width/2,-a.height/2],["r",i],["t",a.width/2,a.height/2]]);break;case"lefttop":s=Lu(s,[["t",-r.x,-r.y],["r",i],["t",r.x,r.y]]);break;case"leftcenter":s=Lu(s,[["t",-r.x,-r.y-a.height/2],["r",i],["t",r.x,r.y+a.height/2]])}else s=Lu(s,[["t",-r.x,-r.y-a.height/2],["r",i],["t",r.x,r.y+a.height/2]]);o.setMatrix(s)}if(r.background){var u=this.drawLabelBg(t,e,o),l=this.itemType+Uu;u.set("classname",l),e.shapeMap[l]=u,o.toFront()}return o},drawLabelBg:function(t,e,n){var r=this.options.labelCfg,i=(0,x.mix)({},r,t.labelCfg),o=this.getLabelBgStyleByPosition(n,i),a=e.addShape("rect",{name:"text-bg-shape",attrs:o,labelRelated:!0});return e.shapeMap["text-bg-shape"]=a,a},getLabelStyleByPosition:function(t,e,n){return{text:t.label}},getLabelBgStyleByPosition:function(t,e){return{}},getLabelStyle:function(t,e,n){var r=this.getLabelStyleByPosition(t,e,n),i="".concat(this.itemType,"Label"),o=Ke[i]?Ke[i].style:null;return(0,b.__assign)((0,b.__assign)((0,b.__assign)({},o),r),e.style)},getShapeStyle:function(t){return t.style},update:function(t,e,n){this.updateShapeStyle(t,e,n),this.updateLabel(t,e,n)},updateShapeStyle:function(t,e,n){var r,i=e.getContainer(),o=e.getKeyShape(),a=(0,x.mix)({},o.attr(),t.style),s=function(t){var e,n=a[t];if((0,x.isPlainObject)(n)){var s=(null===(r=i.shapeMap)||void 0===r?void 0:r[t])||i.find((function(e){return e.get("name")===t}));null==s||s.attr(n)}else o.attr(((e={})[t]=n,e))};for(var u in a)s(u)},updateLabel:function(t,e,n){var r,i,o=e.getContainer(),a=(this.mergeStyle||this.getOptions({},n)||{}).labelCfg,s=void 0===a?{}:a,u=this.itemType+Du,l=o.shapeMap[u]||o.find((function(t){return t.get("className")===u})),c=this.itemType+Uu,h=o.shapeMap[c]||o.find((function(t){return t.get("className")===c}));if(l&&void 0===t.label&&(o.removeChild(l),delete o.shapeMap[u],h&&(o.removeChild(h),delete o.shapeMap[c])),t.label||""===t.label)if(l){(!n||"bbox|label"===n||"edge"===this.itemType&&"style"!==n)&&(s=(0,x.deepMix)(s,t.labelCfg));var d=this.getLabelStyleByPosition(t,s,o),f=null===(r=t.labelCfg)||void 0===r?void 0:r.style,p=(0,b.__assign)((0,b.__assign)({},d),f),m=p.rotate;if(delete p.rotate,isNaN(m)||""===m)1!==(null===(i=l.getMatrix())||void 0===i?void 0:i[4])&&l.resetMatrix(),l.attr(p);else{var g=[1,0,0,0,1,0,0,0,1];g=Lu(g,[["t",-p.x,-p.y],["r",m],["t",p.x,p.y]]),p.matrix=g,l.attr(p)}if(h)if(p.background){var v=this.getLabelBgStyleByPosition(l,s);h.attr(v)}else o.removeChild(h);else p.background&&((h=this.drawLabelBg(t,o,l)).set("classname",c),o.shapeMap[c]=h,l.toFront())}else{var y=this.drawLabel(t,o);y.set("className",u),o.shapeMap[u]=y}},afterUpdate:function(t,e){},setState:function(t,e,n){var r,i,o,a=n.get("keyShape");if(a&&!a.destroyed){var s=n.getType(),u=(0,x.isBoolean)(e)?t:"".concat(t,":").concat(e),l=this.getStateStyle(u,n),c=n.getStateStyle(u);if(c||l){var h=(0,x.mix)({},c||l),d=n.getContainer(),f={x:1,y:1,cx:1,cy:1,matrix:1};if("combo"===s&&(f.r=1,f.width=1,f.height=1),e){var p=function(t){var e,n=h[t];if((0,x.isPlainObject)(n)&&!zu.includes(t)){var r=(null===(o=d.shapeMap)||void 0===o?void 0:o[t])||d.find((function(e){return e.get("name")===t}));null==r||r.attr(n)}else a.attr(((e={})[t]=n,e))};for(var m in h)p(m)}else{var g=yn(n.getCurrentStatesStyle()),v=n.getModel(),y=(0,x.mix)({},v.style,yn(n.getOriginStyle())),b=a.get("name"),w=a.attr(),_={};Object.keys(w).forEach((function(t){if("img"!==t){var e=w[t];e&&"object"===Ou(e)?_[t]=(0,x.clone)(e):_[t]=e}}));var S={},E=function(t){var e=h[t];if((0,x.isPlainObject)(e)&&!zu.includes(t)){var n=d.shapeMap[t]||d.find((function(e){return e.get("name")===t}));if(n){var r=yn(n.attr());(0,x.each)(e,(function(e,i){if(t===b&&_[i]&&!f[i]){delete _[i];var o=y[t][i]||Bu[s][i];a.attr(i,o)}else if(r[i]||0===r[i]){delete r[i];var u=y[t][i]||Bu[s][i];n.attr(i,u)}})),S[t]=r}}else if(_[t]&&!f[t]){delete _[t];var i=y[t]||(y[b]?y[b][t]:void 0)||Bu[s][t];a.attr(t,i)}};for(var A in h)E(A);for(var m in b?S[b]=_:(0,x.mix)(S,_),g)if(!f[m]){var M=g[m];(0,x.isPlainObject)(M)&&!zu.includes(m)||(b?((0,x.mix)(y[b],((i={})[m]=M,i)),delete y[m]):(0,x.mix)(y,((r={})[m]=M,r)),delete g[m])}var C={};(0,x.deepMix)(C,y,S,g);var T=!1,k=function(t){var e,n,r=C[t];if((0,x.isPlainObject)(r)&&!zu.includes(t)){var i=d.shapeMap[t]||d.find((function(e){return e.get("name")===t}));i&&(("text"===i.get("type")||i.get("labelRelated"))&&(delete r.x,delete r.y,delete r.matrix),t===b&&("combo"===s&&(delete r.r,delete r.width,delete r.height),T=!0),i.attr(r))}else if(!T){var o=r||Bu[s][t];"combo"===s?b||a.attr(((e={})[t]=o,e)):a.attr(((n={})[t]=o,n))}};for(var I in C)k(I)}}}},getStateStyle:function(t,e){var n=e.getModel(),r=e.getType(),i=this.getOptions(n),o=i.stateStyles,a=i.style,s=void 0===a?{}:a,u=n.stateStyles?n.stateStyles[t]:o&&o[t];return"combo"===r?(0,x.clone)(u):(0,x.mix)({},s,u)},getControlPoints:function(t){return t.controlPoints},getAnchorPoints:function(t){var e,n;return(null==t?void 0:t.anchorPoints)||(null===(e=this.getCustomConfig(t))||void 0===e?void 0:e.anchorPoints)||(null===(n=this.options)||void 0===n?void 0:n.anchorPoints)}},Vu={itemType:"node",shapeType:"single-node",labelPosition:"center",offset:Ke.nodeLabel.offset,getSize:function(t){var e,n=(null===(e=this.mergeStyle)||void 0===e?void 0:e.size)||t.size||this.getOptions({}).size||Ke.defaultNode.size;return(0,x.isArray)(n)&&1===n.length&&(n=[n[0],n[0]]),(0,x.isArray)(n)||(n=[n,n]),n},getLabelStyleByPosition:function(t,e){var n=e.maxLength,r=t.label;n&&(r=fn(r,n));var i=e.position||this.labelPosition;if("center"===i)return{x:0,y:0,text:r,textBaseline:"middle",textAlign:"center"};var o=e.offset;(0,x.isNil)(o)&&(o=this.offset);var a,s=this.getSize(t);switch(i){case"top":a={x:0,y:-s[1]/2-o,textBaseline:"bottom",textAlign:"center"};break;case"bottom":a={x:0,y:s[1]/2+o,textBaseline:"top",textAlign:"center"};break;case"left":a={x:-s[0]/2-o,y:0,textBaseline:"middle",textAlign:"right"};break;default:a={x:s[0]/2+o,y:0,textBaseline:"middle",textAlign:"left"}}return a.text=r,a},getLabelBgStyleByPosition:function(t,e){var n;if(!t)return{};var r=null===(n=e.style)||void 0===n?void 0:n.background;if(!r)return{};var i=t.getBBox(),o=hs(r.padding),a=i.width+o[1]+o[3],s=i.height+o[0]+o[2];return(0,b.__assign)((0,b.__assign)({x:i.minX-o[3],y:i.minY-o[0]},r),{width:a,height:s})},drawShape:function(t,e){var n=this.shapeType,r=this.getShapeStyle(t),i=e.addShape(n,{attrs:r,draggable:!0,name:"node-shape"});return e.shapeMap["node-shape"]=i,i},updateLinkPoints:function(t,e){var n,r=(this.mergeStyle||this.getOptions(t)).linkPoints,i=e.shapeMap["link-point-left"]||e.find((function(t){return"link-point-left"===t.get("className")})),o=e.shapeMap["link-point-right"]||e.find((function(t){return"link-point-right"===t.get("className")})),a=e.shapeMap["link-point-top"]||e.find((function(t){return"link-point-top"===t.get("className")})),s=e.shapeMap["link-point-bottom"]||e.find((function(t){return"link-point-bottom"===t.get("className")}));i&&(n=i.attr()),o&&!n&&(n=o.attr()),a&&!n&&(n=a.attr()),s&&!n&&(n=s.attr()),n||(n=r);var u=(0,x.mix)({},n,t.linkPoints),l=u.fill,c=u.stroke,h=u.lineWidth,d=u.size/2;d||(d=u.r);var f=t.linkPoints?t.linkPoints:{left:void 0,right:void 0,top:void 0,bottom:void 0},p=f.left,m=f.right,g=f.top,v=f.bottom,y=this.getSize(t),w=y[0],_=y[1],S={r:d,fill:l,stroke:c,lineWidth:h};if(i)p||void 0===p?i.attr((0,b.__assign)((0,b.__assign)({},S),{x:-w/2,y:0})):(i.remove(),delete e.shapeMap["link-point-left"]);else if(p){var E="link-point-left";e.shapeMap[E]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},S),{x:-w/2,y:0}),className:E,name:E,isAnchorPoint:!0})}if(o)m||void 0===m||(o.remove(),delete e.shapeMap["link-point-right"]),o.attr((0,b.__assign)((0,b.__assign)({},S),{x:w/2,y:0}));else if(m){var A="link-point-right";e.shapeMap[A]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},S),{x:w/2,y:0}),className:A,name:A,isAnchorPoint:!0})}if(a)g||void 0===g||(a.remove(),delete e.shapeMap["link-point-top"]),a.attr((0,b.__assign)((0,b.__assign)({},S),{x:0,y:-_/2}));else if(g){var M="link-point-top";e.shapeMap[M]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},S),{x:0,y:-_/2}),className:M,name:M,isAnchorPoint:!0})}if(s)v||void 0===v?s.attr((0,b.__assign)((0,b.__assign)({},S),{x:0,y:_/2})):(s.remove(),delete e.shapeMap["link-point-bottom"]);else if(v){var C="link-point-bottom";e.shapeMap[C]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},S),{x:0,y:_/2}),className:C,name:C,isAnchorPoint:!0})}},updateShape:function(t,e,n,r,i){e.get("keyShape").attr((0,b.__assign)({},n)),this.updateLabel(t,e,i),r&&this.updateIcon(t,e)},updateIcon:function(t,e){var n=this,r=e.getContainer(),i=(this.mergeStyle||this.getOptions(t)).icon,o=t.icon?t.icon:{show:void 0,text:void 0},a=o.show,s=o.text,u=r.shapeMap["".concat(this.type,"-icon")]||r.find((function(t){return t.get("name")==="".concat(n.type,"-icon")}));if(u)if(a||void 0===a){var l=(0,x.mix)({},u.attr(),i),c=l.width,h=void 0===c?20:c,d=l.height,f=void 0===d?20:d;("iconfont"===l.fontFamily||l.hasOwnProperty("text"))&&(h=0,f=0),u.attr((0,b.__assign)((0,b.__assign)({},l),{x:-h/2,y:-f/2}))}else u.remove(),delete r.shapeMap["".concat(this.type,"-icon")];else if(a){var p="".concat(this.type,"-icon");if(s)r.shapeMap[p]=r.addShape("text",{attrs:(0,b.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},i),className:p,name:p});else{h=i.width,f=i.height;r.shapeMap[p]=r.addShape("image",{attrs:(0,b.__assign)((0,b.__assign)({},i),{x:-h/2,y:-f/2}),className:p,name:p})}var m=r.shapeMap["node-label"]||r.find((function(t){return"node-label"===t.get("name")}));m&&m.toFront()}}},Hu=(0,b.__assign)((0,b.__assign)({},ju),Vu);Ps.registerNode("single-node",Hu);var Gu="edge-shape";var Wu={itemType:"edge",labelPosition:"center",refX:0,refY:0,labelAutoRotate:!1,options:{size:Ke.defaultEdge.size,style:{x:0,y:0,stroke:Ke.defaultEdge.style.stroke,lineAppendWidth:Ke.defaultEdge.style.lineAppendWidth},labelCfg:{style:{fill:Ke.edgeLabel.style.fill,fontSize:Ke.edgeLabel.style.fontSize,fontFamily:Ke.windowFontFamily}},stateStyles:(0,b.__assign)({},Ke.edgeStateStyles)},getPath:function(t){var e=[];return(0,x.each)(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},getShapeStyle:function(t){var e=this.options.style,n={stroke:t.color},r=(0,x.mix)({},e,n,t.style),i=t.size||Ke.defaultEdge.size,o=(t=this.getPathPoints(t)).startPoint,a=t.endPoint,s=this.getControlPoints(t),u=[o];s&&(u=u.concat(s)),u.push(a);var l=this.getPath(u);return(0,x.mix)({},Ke.defaultEdge.style,{stroke:Ke.defaultEdge.color,lineWidth:i,path:l},r)},updateShapeStyle:function(t,e,n){var r,i=e.getContainer(),o=(null===(r=e.getKeyShape)||void 0===r?void 0:r.call(e))||i.shapeMap["edge-shape"],a=t.size,s=(t=this.getPathPoints(t)).startPoint,u=t.endPoint,l=this.getControlPoints(t),c=[s];l&&(c=c.concat(l)),c.push(u);var h=o.attr(),d=t.style||{};void 0===d.stroke&&(d.stroke=t.color);var f=t.sourceNode,p=t.targetNode,m={radius:d.radius};l||(m={source:f,target:p,offset:d.offset,radius:d.radius});var g=this.getPath(c,m),v={};"move"===n?v={path:g}:(h.endArrow&&!1===d.endArrow&&(t.style.endArrow={path:""}),h.startArrow&&!1===d.startArrow&&(t.style.startArrow={path:""}),void 0===(v=(0,b.__assign)({},t.style)).lineWidth&&(v.lineWidth=((0,x.isNumber)(a)?a:null==a?void 0:a[0])||h.lineWidth),void 0===v.path&&(v.path=g),void 0===v.stroke&&(v.stroke=h.stroke||t.color)),o&&o.attr(v)},getLabelStyleByPosition:function(t,e,n){var r,i=e.position||this.labelPosition,o={},a=null==n?void 0:n.shapeMap[Gu];r="start"===i?0:"end"===i?1:.5;var s,u=e.refX||this.refX,l=e.refY||this.refY;if(t.startPoint.x===t.endPoint.x&&t.startPoint.y===t.endPoint.y)return o.x=t.startPoint.x+u,o.y=t.startPoint.y+l,o.text=t.label,o;s=(0,x.isNil)(e.autoRotate)?this.labelAutoRotate:e.autoRotate;var c=an(a,r,u,l,s);return o.x=c.x,o.y=c.y,o.rotate=c.rotate,o.textAlign=this._getTextAlign(i,c.angle),o.text=t.label,o},getLabelBgStyleByPosition:function(t,e){if(!t)return{};var n=t.getBBox(),r=e.style&&e.style.background;if(!r)return{};var i=r.padding,o=n.width+i[1]+i[3],a=n.height+i[0]+i[2],s=(0,b.__assign)((0,b.__assign)({},r),{width:o,height:a,x:n.minX-i[3],y:n.minY-i[0],matrix:[1,0,0,0,1,0,0,0,1]});return((0,x.isNil)(e.autoRotate)?this.labelAutoRotate:e.autoRotate)&&(s.matrix=t.attr("matrix")||[1,0,0,0,1,0,0,0,1]),s},_getTextAlign:function(t,e){var n="center";return e?(e%=2*Math.PI,"center"!==t&&(n=e>=0&&e<=Math.PI/2||e>=1.5*Math.PI&&e<2*Math.PI?t:function(t){var e=t;return"start"===t?e="end":"end"===t&&(e="start"),e}(t)),n):t},getControlPoints:function(t){return t.controlPoints},getPathPoints:function(t){return t},drawShape:function(t,e){var n=this.getShapeStyle(t),r=e.addShape("path",{className:Gu,name:Gu,attrs:n});return e.shapeMap[Gu]=r,r},drawLabel:function(t,e){var n=this.options.labelCfg,r=(0,x.deepMix)({},n,t.labelCfg),i=this.getLabelStyle(t,r,e),o=i.rotate;delete i.rotate;var a=e.addShape("text",{attrs:i,name:"text-shape",labelRelated:!0,draggable:!0});if(e.shapeMap["text-shape"]=a,isNaN(o)||""===o||a.rotateAtStart(o),i.background){var s=this.drawLabelBg(t,e,a,i,o),u=this.itemType+Uu;s.set("classname",u),e.shapeMap[u]=s,a.toFront()}return a},drawLabelBg:function(t,e,n,r,i){var o=this.options.labelCfg,a=(0,x.deepMix)({},o,t.labelCfg),s=this.getLabelBgStyleByPosition(n,a),u=e.addShape("rect",{name:"text-bg-shape",attrs:s,labelRelated:!0});return e.shapeMap["text-bg-shape"]=u,u}},Xu=(0,b.__assign)((0,b.__assign)({},ju),Wu);Ps.registerEdge("single-edge",Xu),Ps.registerEdge("line",{getControlPoints:function(){}},"single-edge"),Ps.registerEdge("spline",{getPath:function(t){return uu(t)}},"single-edge"),Ps.registerEdge("arc",{curveOffset:20,clockwise:1,getControlPoints:function(t){var e,n,r=t.startPoint,i=t.endPoint,o=(r.x+i.x)/2,a=(r.y+i.y)/2;if(void 0!==t.controlPoints){if(n=t.controlPoints[0],e=pe(r,n,i),r.x<=i.x&&r.y>i.y?this.clockwise=e.x>n.x?0:1:r.x<=i.x&&r.yn.x?1:0:r.x>i.x&&r.y<=i.y?this.clockwise=e.y=t&&i<=t+n&&o>=e&&o<=e+r}function pl(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxY=0&&a<.5*Math.PI?(r={x:u.minX,y:u.minY},i={x:u.maxX,y:u.maxY}):.5*Math.PI<=a&&a1&&(n*=Math.sqrt(f),r*=Math.sqrt(f));var p=n*n*(d*d)+r*r*(h*h),m=p?Math.sqrt((n*n*(r*r)-p)/p):1;o===a&&(m*=-1),isNaN(m)&&(m=0);var g=r?m*n*d/r:0,v=n?m*-r*h/n:0,y=(s+l)/2+Math.cos(i)*g-Math.sin(i)*v,b=(u+c)/2+Math.sin(i)*g+Math.cos(i)*v,w=[(h-g)/n,(d-v)/r],_=[(-1*h-g)/n,(-1*d-v)/r],S=El([1,0],w),E=El(w,_);return Sl(w,_)<=-1&&(E=Math.PI),Sl(w,_)>=1&&(E=0),0===a&&E>0&&(E-=2*Math.PI),1===a&&E<0&&(E+=2*Math.PI),{cx:y,cy:b,rx:ml(t,[l,c])?0:n,ry:ml(t,[l,c])?0:r,startAngle:S,endAngle:S+E,xRotation:i,arcFlag:o,sweepFlag:a}}var Ml=Math.sin,Cl=Math.cos,Tl=Math.atan2,kl=Math.PI;function Il(t,e,n,r,i,o,a){var s=e.stroke,u=e.lineWidth,l=Tl(r-o,n-i),c=new yc({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*Cl(kl/6)+","+10*Ml(kl/6)+" L0,0 L"+10*Cl(kl/6)+",-"+10*Ml(kl/6),stroke:s,lineWidth:u}});c.translate(i,o),c.rotateAtPoint(i,o,l),t.set(a?"startArrowShape":"endArrowShape",c)}function Nl(t,e,n,r,i,o,a){var s=e.startArrow,u=e.endArrow,l=e.stroke,c=e.lineWidth,h=a?s:u,d=h.d,f=h.fill,p=h.stroke,m=h.lineWidth,g=(0,b.__rest)(h,["d","fill","stroke","lineWidth"]),v=Tl(r-o,n-i);d&&(i-=Cl(v)*d,o-=Ml(v)*d);var y=new yc({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:(0,b.__assign)((0,b.__assign)({},g),{stroke:p||l,lineWidth:m||c,fill:f})});y.translate(i,o),y.rotateAtPoint(i,o,v),t.set(a?"startArrowShape":"endArrowShape",y)}function Pl(t,e,n,r,i){var o=Tl(r-e,n-t);return{dx:Cl(o)*i,dy:Ml(o)*i}}function Ol(t,e,n,r,i,o){"object"==typeof e.startArrow?Nl(t,e,n,r,i,o,!0):e.startArrow?Il(t,e,n,r,i,o,!0):t.set("startArrowShape",null)}function Ll(t,e,n,r,i,o){"object"==typeof e.endArrow?Nl(t,e,n,r,i,o,!1):e.endArrow?Il(t,e,n,r,i,o,!1):t.set("startArrowShape",null)}var Rl={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function Dl(t,e){var n=e.attr();for(var r in n){var i=n[r],o=Rl[r]?Rl[r]:r;"matrix"===o&&i?t.transform(i[0],i[1],i[3],i[4],i[6],i[7]):"lineDash"===o&&t.setLineDash?(0,x.isArray)(i)&&t.setLineDash(i):("strokeStyle"===o||"fillStyle"===o?i=wl(t,e,i):"globalAlpha"===o&&(i*=t.globalAlpha),t[o]=i)}}function zl(t,e,n){for(var r=0;rx?b:x,M=b>x?1:b/x,C=b>x?x/b:1;e.translate(v,y),e.rotate(S),e.scale(M,C),e.arc(0,0,A,w,_,1-E),e.scale(1/M,1/C),e.rotate(-S),e.translate(-v,-y)}break;case"Z":e.closePath()}if("Z"===d)s=u;else{var T=h.length;s=[h[T-2],h[T-1]]}}}}function Gl(t,e){var n=t.get("canvas");n&&("remove"===e&&(t._cacheCanvasBBox=t.get("cacheCanvasBBox")),t.get("hasChanged")||(t.set("hasChanged",!0),t.cfg.parent&&t.cfg.parent.get("hasChanged")||(n.refreshElement(t,e,n),n.get("autoDraw")&&n.draw())))}function Wl(t){var e,n,r;if(t.destroyed)e=t._cacheCanvasBBox;else{var i=t.get("cacheCanvasBBox"),o=i&&!(!i.width||!i.height),a=t.getCanvasBBox(),s=a&&!(!a.width||!a.height);o&&s?(r=a,e=(n=i)&&r?{minX:Math.min(n.minX,r.minX),minY:Math.min(n.minY,r.minY),maxX:Math.max(n.maxX,r.maxX),maxY:Math.max(n.maxY,r.maxY)}:n||r):o?e=i:s&&(e=a)}return e}var Xl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,b.__extends)(e,t),e.prototype.onCanvasChange=function(t){Gl(this,t)},e.prototype.getShapeBase=function(){return d},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(t,e){e&&(t.save(),Dl(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.cacheCanvasBBox=function(){var t=this.cfg.children,e=[],n=[];(0,x.each)(t,(function(t){var r=t.cfg.cacheCanvasBBox;r&&t.cfg.isInView&&(e.push(r.minX,r.maxX),n.push(r.minY,r.maxY))}));var r=null;if(e.length){var i=(0,x.min)(e),o=(0,x.max)(e),a=(0,x.min)(n),s=(0,x.max)(n);r={minX:i,minY:a,x:i,y:a,maxX:o,maxY:s,width:o-i,height:s-a};var u=this.cfg.canvas;if(u){var l=u.getViewRange();this.set("isInView",pl(r,l))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",r)},e.prototype.draw=function(t,e){var n=this.cfg.children,r=!e||this.cfg.refresh;n.length&&r&&(t.save(),Dl(t,this),this._applyClip(t,this.getClip()),zl(t,n,e),t.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},e}(ia);const Yl=Xl;var ql=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,b.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,b.__assign)((0,b.__assign)({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return d},e.prototype.getGroupBase=function(){return Yl},e.prototype.onCanvasChange=function(t){Gl(this,t)},e.prototype.calculateBBox=function(){var t=this.get("type"),e=this.getHitLineWidth(),n=ua(t)(this),r=e/2,i=n.x-r,o=n.y-r,a=n.x+n.width+r,s=n.y+n.height+r;return{x:i,minX:i,y:o,minY:o,width:n.width+e,height:n.height+e,maxX:a,maxY:s}},e.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},e.prototype.isStroke=function(){return!!this.attrs.stroke},e.prototype._applyClip=function(t,e){e&&(t.save(),Dl(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.draw=function(t,e){var n=this.cfg.clipShape;if(e){if(!1===this.cfg.refresh)return void this.set("hasChanged",!1);if(!pl(e,this.getCanvasBBox()))return this.set("hasChanged",!1),void(this.cfg.isInView&&this._afterDraw())}t.save(),Dl(t,this),this._applyClip(t,n),this.drawPath(t),t.restore(),this._afterDraw()},e.prototype.getCanvasViewBox=function(){var t=this.cfg.canvas;return t?t.getViewRange():null},e.prototype.cacheCanvasBBox=function(){var t=this.getCanvasViewBox();if(t){var e=this.getCanvasBBox(),n=pl(e,t);this.set("isInView",n),n?this.set("cacheCanvasBBox",e):this.set("cacheCanvasBBox",null)}},e.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},e.prototype.drawPath=function(t){this.createPath(t),this.strokeAndFill(t),this.afterDrawPath(t)},e.prototype.fill=function(t){t.fill()},e.prototype.stroke=function(t){t.stroke()},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,o=e.fillOpacity;this.isFill()&&((0,x.isNil)(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=r)),this.isStroke()&&n>0&&((0,x.isNil)(i)||1===i||(t.globalAlpha=i),this.stroke(t)),this.afterDrawPath(t)},e.prototype.createPath=function(t){},e.prototype.afterDrawPath=function(t){},e.prototype.isInShape=function(t,e){var n=this.isStroke(),r=this.isFill(),i=this.getHitLineWidth();return this.isInStrokeOrPath(t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t.lineWidth+t.lineAppendWidth},e}(oa);const $l=ql;const Kl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,b.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,b.__assign)((0,b.__assign)({},e),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),a=o.x,s=o.y,u=o.r,l=i/2,c=dl(a,s,t,e);return r&&n?c<=u+l:r?c<=u:!!n&&(c>=u-l&&c<=u+l)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.r;t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1),t.closePath()},e}($l);function Zl(t,e,n,r){return t/(n*n)+e/(r*r)}const Ql=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,b.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,b.__assign)((0,b.__assign)({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),a=i/2,s=o.x,u=o.y,l=o.rx,c=o.ry,h=(t-s)*(t-s),d=(e-u)*(e-u);return r&&n?Zl(h,d,l+a,c+a)<=1:r?Zl(h,d,l,c)<=1:!!n&&(Zl(h,d,l-a,c-a)>=1&&Zl(h,d,l+a,c+a)<=1)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.rx,o=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(n,r,i,o,0,0,2*Math.PI,!1);else{var a=i>o?i:o,s=i>o?1:i/o,u=i>o?o/i:1;t.save(),t.translate(n,r),t.scale(s,u),t.arc(0,0,a,0,2*Math.PI),t.restore(),t.closePath()}},e}($l);function Jl(t){return t instanceof HTMLElement&&(0,x.isString)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var tc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,b.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,b.__assign)((0,b.__assign)({},e),{x:0,y:0,width:0,height:0})},e.prototype.initAttrs=function(t){this._setImage(t.img)},e.prototype.isStroke=function(){return!1},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._afterLoading=function(){if(!0===this.get("toDraw")){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},e.prototype._setImage=function(t){var e=this,n=this.attrs;if((0,x.isString)(t)){var r=new Image;r.onload=function(){if(e.destroyed)return!1;e.attr("img",r),e.set("loading",!1),e._afterLoading();var t=e.get("callback");t&&t.call(e)},r.crossOrigin="Anonymous",r.src=t,this.set("loading",!0)}else t instanceof Image?(n.width||(n.width=t.width),n.height||(n.height=t.height)):Jl(t)&&(n.width||(n.width=Number(t.getAttribute("width"))),n.height||(n.height,Number(t.getAttribute("height"))))},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"img"===e&&this._setImage(n)},e.prototype.createPath=function(t){if(this.get("loading"))return this.set("toDraw",!0),void this.set("context",t);var e=this.attr(),n=e.x,r=e.y,i=e.width,o=e.height,a=e.sx,s=e.sy,u=e.swidth,l=e.sheight,c=e.img;(c instanceof Image||Jl(c))&&((0,x.isNil)(a)||(0,x.isNil)(s)||(0,x.isNil)(u)||(0,x.isNil)(l)?t.drawImage(c,n,r,i,o):t.drawImage(c,a,s,u,l,n,r,i,o))},e}($l);const ec=tc;function nc(t,e,n,r,i,o,a){var s=Math.min(t,n),u=Math.max(t,n),l=Math.min(e,r),c=Math.max(e,r),h=i/2;return o>=s-h&&o<=u+h&&a>=l-h&&a<=c+h&&ma.pointToLine(t,e,n,r,o,a)<=i/2}var rc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,b.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,b.__assign)((0,b.__assign)({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2,o=t.startArrow,a=t.endArrow;o&&Ol(this,t,r,i,e,n),a&&Ll(this,t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){if(!n||!i)return!1;var o=this.attr();return nc(o.x1,o.y1,o.x2,o.y2,i,t,e)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.startArrow,s=e.endArrow,u={dx:0,dy:0},l={dx:0,dy:0};a&&a.d&&(u=Pl(n,r,i,o,e.startArrow.d)),s&&s.d&&(l=Pl(n,r,i,o,e.endArrow.d)),t.beginPath(),t.moveTo(n+u.dx,r+u.dy),t.lineTo(i-l.dx,o-l.dy)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2;return ma.length(e,n,r,i)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2;return ma.pointAt(n,r,i,o,t)},e}($l);const ic=rc;var oc={circle:function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]},"triangle-down":function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},ac=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,b.__extends)(e,t),e.prototype.initAttrs=function(t){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["symbol","x","y","r","radius"].indexOf(e)&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(t){return(0,x.isNil)(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t,n,r=this.attr(),i=r.x,o=r.y,a=r.symbol||"circle",s=this._getR(r);if((0,x.isFunction)(a))n=ts(n=(t=a)(i,o,s));else{if(!(t=e.Symbols[a]))return console.warn(a+" marker is not supported."),null;n=t(i,o,s)}return n},e.prototype.createPath=function(t){Hl(this,t,{path:this._getPath()},this.get("paramsCache"))},e.Symbols=oc,e}($l);const sc=ac;function uc(t,e,n){var r=ja();return t.createPath(r),r.isPointInPath(e,n)}var lc=1e-6;function cc(t){return Math.abs(t)0!=cc(s[1]-n)>0&&cc(e-(n-a[1])*(a[0]-s[0])/(a[1]-s[1])-a[0])<0&&(r=!r)}return r}function fc(t,e,n,r,i,o,a,s){var u=(Math.atan2(s-e,a-t)+2*Math.PI)%(2*Math.PI);if(ui)return!1;var l={x:t+n*Math.cos(u),y:e+n*Math.sin(u)};return dl(l.x,l.y,a,s)<=o/2}var pc=N;const mc=(0,b.__assign)({hasArc:function(t){for(var e=!1,n=t.length,r=0;r0&&r.push(i),{polygons:n,polylines:r}},isPointInStroke:function(t,e,n,r,i){for(var o=!1,a=e/2,s=0;sv?g:v,S=pc(null,[["t",-p,-m],["r",-x],["s",1/(g>v?1:g/v),1/(g>v?v/g:1)]]);re.transformMat3(w,w,S),o=fc(0,0,_,y,b,e,w[0],w[1])}if(o)break}}return o}},a);function gc(t,e,n){for(var r=!1,i=0;i=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)}));var o=i[n];if((0,x.isNil)(o)||(0,x.isNil)(n))return null;var a=o.length,s=i[n+1];return Ta.pointAt(o[a-2],o[a-1],s[1],s[2],s[3],s[4],s[5],s[6],e)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",mc.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,r,i=0,o=0,a=[],s=this.get("curve");s&&((0,x.each)(s,(function(t,e){n=s[e+1],r=t.length,n&&(i+=Ta.length(t[r-2],t[r-1],n[1],n[2],n[3],n[4],n[5],n[6])||0)})),this.set("totalLength",i),0!==i?((0,x.each)(s,(function(u,l){n=s[l+1],r=u.length,n&&((t=[])[0]=o/i,e=Ta.length(u[r-2],u[r-1],n[1],n[2],n[3],n[4],n[5],n[6]),o+=e||0,t[1]=o/i,a.push(t))})),this.set("tCache",a)):this.set("tCache",[]))},e.prototype.getStartTangent=function(){var t,e=this.getSegments();if(e.length>1){var n=e[0].currentPoint,r=e[1].currentPoint,i=e[1].startTangent;t=[],i?(t.push([n[0]-i[0],n[1]-i[1]]),t.push([n[0],n[1]])):(t.push([r[0],r[1]]),t.push([n[0],n[1]]))}return t},e.prototype.getEndTangent=function(){var t,e=this.getSegments(),n=e.length;if(n>1){var r=e[n-2].currentPoint,i=e[n-1].currentPoint,o=e[n-1].endTangent;t=[],o?(t.push([i[0]-o[0],i[1]-o[1]]),t.push([i[0],i[1]])):(t.push([r[0],r[1]]),t.push([i[0],i[1]]))}return t},e}($l);const yc=vc;function bc(t,e,n,r,i){var o=t.length;if(o<2)return!1;for(var a=0;a=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),ma.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,r,i=0,o=[];(0,x.each)(t,(function(a,s){t[s+1]&&((n=[])[0]=i/e,r=ma.length(a[0],a[1],t[s+1][0],t[s+1][1]),i+=r,n[1]=i/e,o.push(n))})),this.set("tCache",o)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}($l);const _c=wc;const Sc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,b.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,b.__assign)((0,b.__assign)({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),a=o.x,s=o.y,u=o.width,l=o.height,c=o.radius;if(c){var h=!1;return n&&(h=function(t,e,n,r,i,o,a,s){return nc(t+i,e,t+n-i,e,o,a,s)||nc(t+n,e+i,t+n,e+r-i,o,a,s)||nc(t+n-i,e+r,t+i,e+r,o,a,s)||nc(t,e+r-i,t,e+i,o,a,s)||fc(t+n-i,e+i,i,1.5*Math.PI,2*Math.PI,o,a,s)||fc(t+n-i,e+r-i,i,0,.5*Math.PI,o,a,s)||fc(t+i,e+r-i,i,.5*Math.PI,Math.PI,o,a,s)||fc(t+i,e+i,i,Math.PI,1.5*Math.PI,o,a,s)}(a,s,u,l,c,i,t,e)),!h&&r&&(h=uc(this,t,e)),h}var d=i/2;return r&&n?fl(a-d,s-d,u+d,l+d,t,e):r?fl(a,s,u,l,t,e):n?function(t,e,n,r,i,o,a){var s=i/2;return fl(t-s,e-s,n,i,o,a)||fl(t+n-s,e-s,i,r,o,a)||fl(t+s,e+r-s,n,i,o,a)||fl(t-s,e+s,i,r,o,a)}(a,s,u,l,i,t,e):void 0},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.width,o=e.height,a=e.radius;if(t.beginPath(),0===a)t.rect(n,r,i,o);else{var s=function(t){var e=0,n=0,r=0,i=0;return(0,x.isArray)(t)?1===t.length?e=n=r=i=t[0]:2===t.length?(e=r=t[0],n=i=t[1]):3===t.length?(e=t[0],n=i=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],i=t[3]):e=n=r=i=t,[e,n,r,i]}(a),u=s[0],l=s[1],c=s[2],h=s[3];t.moveTo(n+u,r),t.lineTo(n+i-l,r),0!==l&&t.arc(n+i-l,r+l,l,-Math.PI/2,0),t.lineTo(n+i,r+o-c),0!==c&&t.arc(n+i-c,r+o-c,c,0,Math.PI/2),t.lineTo(n+h,r+o),0!==h&&t.arc(n+h,r+o-h,h,Math.PI/2,Math.PI),t.lineTo(n,r+u),0!==u&&t.arc(n+u,r+u,u,Math.PI,1.5*Math.PI),t.closePath()}},e}($l);var Ec=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,b.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,b.__assign)((0,b.__assign)({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.isOnlyHitBox=function(){return!0},e.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text)},e.prototype._assembleFont=function(){var t=this.attrs;t.font=Ha(t)},e.prototype._setText=function(t){var e=null;(0,x.isString)(t)&&-1!==t.indexOf("\n")&&(e=t.split("\n")),this.set("textArr",e)},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),e.startsWith("font")&&this._assembleFont(),"text"===e&&this._setText(n)},e.prototype._getSpaceingY=function(){var t=this.attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},e.prototype._drawTextArr=function(t,e,n){var r,i=this.attrs,o=i.textBaseline,a=i.x,s=i.y,u=1*i.fontSize,l=this._getSpaceingY(),c=Va(i.text,i.fontSize,i.lineHeight);(0,x.each)(e,(function(e,i){r=s+i*(l+u)-c+u,"middle"===o&&(r+=c-u-(c-u)/2),"top"===o&&(r+=c-u),(0,x.isNil)(e)||(n?t.fillText(e,a,r):t.strokeText(e,a,r))}))},e.prototype._drawText=function(t,e){var n=this.attr(),r=n.x,i=n.y,o=this.get("textArr");if(o)this._drawTextArr(t,o,e);else{var a=n.text;(0,x.isNil)(a)||(e?t.fillText(a,r,i):t.strokeText(a,r,i))}},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,o=e.fillOpacity;this.isStroke()&&n>0&&((0,x.isNil)(i)||1===i||(t.globalAlpha=r),this.stroke(t)),this.isFill()&&((0,x.isNil)(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=r)),this.afterDrawPath(t)},e.prototype.fill=function(t){this._drawText(t,!0)},e.prototype.stroke=function(t){this._drawText(t,!1)},e}($l);const Ac=Ec;function Mc(t,e,n){var r,i,o=t.getTotalMatrix();if(o){var a=(r=[e,n,1],(i=o)?_r(Sr(i),r):r);return[a[0],a[1]]}return[e,n]}function Cc(t,e,n){if(t.isCanvas&&t.isCanvas())return!0;if(!ar(t)||!1===t.cfg.isInView)return!1;if(t.cfg.clipShape){var r=Mc(t,e,n),i=r[0],o=r[1];if(t.isClipped(i,o))return!1}var a=t.cfg.cacheCanvasBBox||t.getCanvasBBox();return e>=a.minX&&e<=a.maxX&&n>=a.minY&&n<=a.maxY}function Tc(t,e,n){if(!Cc(t,e,n))return null;for(var r=null,i=t.getChildren(),o=i.length-1;o>=0;o--){var a=i[o];if(a.isGroup())r=Tc(a,e,n);else if(Cc(a,e,n)){var s=a,u=Mc(a,e,n),l=u[0],c=u[1];s.isInShape(l,c)&&(r=a)}if(r)break}return r}var kc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,b.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.renderer="canvas",e.autoDraw=!0,e.localRefresh=!0,e.refreshElements=[],e.clipView=!0,e.quickHit=!1,e},e.prototype.onCanvasChange=function(t){"attr"!==t&&"sort"!==t&&"changeSize"!==t||(this.set("refreshElements",[this]),this.draw())},e.prototype.getShapeBase=function(){return d},e.prototype.getGroupBase=function(){return Yl},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||(window?window.devicePixelRatio:1);return t>=1?Math.ceil(t):1},e.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},e.prototype.createDom=function(){var t=document.createElement("canvas"),e=t.getContext("2d");return this.set("context",e),t},e.prototype.setDOMSize=function(e,n){t.prototype.setDOMSize.call(this,e,n);var r=this.get("context"),i=this.get("el"),o=this.getPixelRatio();i.width=o*e,i.height=o*n,o>1&&r.scale(o,o)},e.prototype.clear=function(){t.prototype.clear.call(this),this._clearFrame();var e=this.get("context"),n=this.get("el");e.clearRect(0,0,n.width,n.height)},e.prototype.getShape=function(e,n){return this.get("quickHit")?Tc(this,e,n):t.prototype.getShape.call(this,e,n,null)},e.prototype._getRefreshRegion=function(){var t,e=this.get("refreshElements"),n=this.getViewRange();e.length&&e[0]===this?t=n:(t=function(t){if(!t.length)return null;var e=[],n=[],r=[],i=[];return(0,x.each)(t,(function(t){var o=Wl(t);o&&(e.push(o.minX),n.push(o.minY),r.push(o.maxX),i.push(o.maxY))})),{minX:(0,x.min)(e),minY:(0,x.min)(n),maxX:(0,x.max)(r),maxY:(0,x.max)(i)}}(e),t&&(t.minX=Math.floor(t.minX),t.minY=Math.floor(t.minY),t.maxX=Math.ceil(t.maxX),t.maxY=Math.ceil(t.maxY),t.maxY+=1,this.get("clipView")&&(t=function(t,e){return t&&e&&pl(t,e)?{minX:Math.max(t.minX,e.minX),minY:Math.max(t.minY,e.minY),maxX:Math.min(t.maxX,e.maxX),maxY:Math.min(t.maxY,e.maxY)}:null}(t,n))));return t},e.prototype.refreshElement=function(t){this.get("refreshElements").push(t)},e.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&((0,x.clearAnimationFrame)(t),this.set("drawFrame",null),this.set("refreshElements",[]))},e.prototype.draw=function(){var t=this.get("drawFrame");this.get("autoDraw")&&t||this._startDraw()},e.prototype._drawAll=function(){var t=this.get("context"),e=this.get("el"),n=this.getChildren();t.clearRect(0,0,e.width,e.height),Dl(t,this),zl(t,n),this.set("refreshElements",[])},e.prototype._drawRegion=function(){var t=this.get("context"),e=this.get("refreshElements"),n=this.getChildren(),r=this._getRefreshRegion();r?(t.clearRect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.save(),t.beginPath(),t.rect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.clip(),Dl(t,this),Fl(this,n,r),zl(t,n,r),t.restore()):e.length&&Ul(e),(0,x.each)(e,(function(t){t.get("hasChanged")&&t.set("hasChanged",!1)})),this.set("refreshElements",[])},e.prototype._startDraw=function(){var t=this,e=this.get("drawFrame"),n=this.get("drawFrameCallback");e||(e=(0,x.requestAnimationFrame)((function(){t.get("localRefresh")?t._drawRegion():t._drawAll(),t.set("drawFrame",null),n&&n()})),this.set("drawFrame",e))},e.prototype.skipDraw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.width=0,t.height=0,t.parentNode.removeChild(t)},e}(ra);const Ic=kc;var Nc={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},Pc={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"};function Oc(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Lc(t){var e=Nc[t.type],n=t.getParent();if(!e)throw new Error("the type "+t.type+" is not supported by svg");var r=Oc(e);if(t.get("id")&&(r.id=t.get("id")),t.set("el",r),t.set("attrs",{}),n){var i=n.get("el");i||(i=n.createDom(),n.set("el",i)),i.appendChild(r)}return r}function Rc(t,e){var n=t.get("el"),r=(0,x.toArray)(n.children).sort(e),i=document.createDocumentFragment();r.forEach((function(t){i.appendChild(t)})),n.appendChild(i)}function Dc(t){var e=t.attr().matrix;if(e){for(var n=t.cfg.el,r=[],i=0;i<9;i+=3)r.push(e[i]+","+e[i+1]);-1===(r=r.join(",")).indexOf("NaN")?n.setAttribute("transform","matrix("+r+")"):console.warn("invalid matrix:",e)}}function zc(t,e){var n=t.getClip(),r=t.get("el");if(n){if(n&&!r.hasAttribute("clip-path")){Lc(n),n.createPath(e);var i=e.addClip(n);r.setAttribute("clip-path","url(#"+i+")")}}else r.removeAttribute("clip-path")}function Fc(t,e){e.forEach((function(e){e.draw(t)}))}function Bc(t,e){var n=t.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context"),i=t.getParent(),o=i?i.getChildren():[n],a=t.get("el");if("remove"===e)if(t.get("isClipShape")){var s=a&&a.parentNode,u=s&&s.parentNode;s&&u&&u.removeChild(s)}else a&&a.parentNode&&a.parentNode.removeChild(a);else if("show"===e)a.setAttribute("visibility","visible");else if("hide"===e)a.setAttribute("visibility","hidden");else if("zIndex"===e)!function(t,e){var n=t.parentNode,r=Array.from(n.childNodes).filter((function(t){return 1===t.nodeType&&"defs"!==t.nodeName.toLowerCase()})),i=r[e],o=r.indexOf(t);if(i){if(o>e)n.insertBefore(t,i);else if(o0&&(e?"stroke"in n?this._setColor(t,"stroke",o):"strokeStyle"in n&&this._setColor(t,"stroke",a):this._setColor(t,"stroke",o||a),u&&c.setAttribute(Pc.strokeOpacity,u),l&&c.setAttribute(Pc.lineWidth,l))},e.prototype._setColor=function(t,e,n){var r=this.get("el");if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n))(i=t.find("gradient",n))||(i=t.addGradient(n)),r.setAttribute(Pc[e],"url(#"+i+")");else if(/^[p,P]{1}[\s]*\(/.test(n)){var i;(i=t.find("pattern",n))||(i=t.addPattern(n)),r.setAttribute(Pc[e],"url(#"+i+")")}else r.setAttribute(Pc[e],n);else r.setAttribute(Pc[e],"none")},e.prototype.shadow=function(t,e){var n=this.attr(),r=e||n,i=r.shadowOffsetX,o=r.shadowOffsetY,a=r.shadowBlur,s=r.shadowColor;(i||o||a||s)&&function(t,e){var n=t.cfg.el,r=t.attr(),i={dx:r.shadowOffsetX,dy:r.shadowOffsetY,blur:r.shadowBlur,color:r.shadowColor};if(i.dx||i.dy||i.blur||i.color){var o=e.find("filter",i);o||(o=e.addShadow(i)),n.setAttribute("filter","url(#"+o+")")}else n.removeAttribute("filter")}(this,t)},e.prototype.transform=function(t){var e=this.attr();(t||e).matrix&&Dc(this)},e.prototype.isInShape=function(t,e){return this.isPointInPath(t,e)},e.prototype.isPointInPath=function(t,e){var n=this.get("el"),r=this.get("canvas").get("el").getBoundingClientRect(),i=t+r.left,o=e+r.top,a=document.elementFromPoint(i,o);return!(!a||!a.isEqualNode(n))},e.prototype.getHitLineWidth=function(){var t=this.attrs,e=t.lineWidth,n=t.lineAppendWidth;return this.isStroke()?e+n:0},e}(oa);const Hc=Vc;var Gc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle",e.canFill=!0,e.canStroke=!0,e}return(0,b.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,b.__assign)((0,b.__assign)({},e),{x:0,y:0,r:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,x.each)(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):Pc[e]&&r.setAttribute(Pc[e],t)}))},e}(Hc);const Wc=Gc;var Xc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dom",e.canFill=!1,e.canStroke=!1,e}return(0,b.__extends)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");if((0,x.each)(e||n,(function(t,e){Pc[e]&&r.setAttribute(Pc[e],t)})),"function"==typeof n.html){var i=n.html.call(this,n);if(i instanceof Element||i instanceof HTMLDocument){for(var o=r.childNodes,a=o.length-1;a>=0;a--)r.removeChild(o[a]);r.appendChild(i)}else r.innerHTML=i}else r.innerHTML=n.html},e}(Hc);const Yc=Xc;var qc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ellipse",e.canFill=!0,e.canStroke=!0,e}return(0,b.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,b.__assign)((0,b.__assign)({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,x.each)(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):Pc[e]&&r.setAttribute(Pc[e],t)}))},e}(Hc);const $c=qc;var Kc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="image",e.canFill=!1,e.canStroke=!1,e}return(0,b.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,b.__assign)((0,b.__assign)({},e),{x:0,y:0,width:0,height:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");(0,x.each)(e||r,(function(t,e){"img"===e?n._setImage(r.img):Pc[e]&&i.setAttribute(Pc[e],t)}))},e.prototype.setAttr=function(t,e){this.attrs[t]=e,"img"===t&&this._setImage(e)},e.prototype._setImage=function(t){var e=this.attr(),n=this.get("el");if((0,x.isString)(t))n.setAttribute("href",t);else if(t instanceof window.Image)e.width||(n.setAttribute("width",t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",t.height),this.attr("height",t.height)),n.setAttribute("href",t.src);else if(t instanceof HTMLElement&&(0,x.isString)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase())n.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var r=document.createElement("canvas");r.setAttribute("width",""+t.width),r.setAttribute("height",""+t.height),r.getContext("2d").putImageData(t,0,0),e.width||(n.setAttribute("width",""+t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",""+t.height),this.attr("height",t.height)),n.setAttribute("href",r.toDataURL())}},e}(Hc);const Zc=Kc;var Qc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e.canFill=!1,e.canStroke=!0,e}return(0,b.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,b.__assign)((0,b.__assign)({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,x.each)(e||n,(function(e,i){if("startArrow"===i||"endArrow"===i)if(e){var o=(0,x.isObject)(e)?t.addArrow(n,Pc[i]):t.getDefaultArrow(n,Pc[i]);r.setAttribute(Pc[i],"url(#"+o+")")}else r.removeAttribute(Pc[i]);else Pc[i]&&r.setAttribute(Pc[i],e)}))},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2;return ma.length(e,n,r,i)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2;return ma.pointAt(n,r,i,o,t)},e}(Hc);const Jc=Qc;var th={circle:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["z"]]},triangleDown:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}};const eh={get:function(t){return th[t]},register:function(t,e){th[t]=e},remove:function(t){delete th[t]},getAll:function(){return th}};var nh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="marker",e.canFill=!0,e.canStroke=!0,e}return(0,b.__extends)(e,t),e.prototype.createPath=function(t){this.get("el").setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return(0,x.isArray)(t)?t.map((function(t){return t.join(" ")})).join(""):t},e.prototype._getPath=function(){var t,e=this.attr(),n=e.x,r=e.y,i=e.r||e.radius,o=e.symbol||"circle";return(t=(0,x.isFunction)(o)?o:eh.get(o))?t(n,r,i):(console.warn(t+" symbol is not exist."),null)},e.symbolsFactory=eh,e}(Hc);const rh=nh;var ih=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="path",e.canFill=!0,e.canStroke=!0,e}return(0,b.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,b.__assign)((0,b.__assign)({},e),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");(0,x.each)(e||r,(function(e,o){if("path"===o&&(0,x.isArray)(e))i.setAttribute("d",n._formatPath(e));else if("startArrow"===o||"endArrow"===o)if(e){var a=(0,x.isObject)(e)?t.addArrow(r,Pc[o]):t.getDefaultArrow(r,Pc[o]);i.setAttribute(Pc[o],"url(#"+a+")")}else i.removeAttribute(Pc[o]);else Pc[o]&&i.setAttribute(Pc[o],e)}))},e.prototype._formatPath=function(t){var e=t.map((function(t){return t.join(" ")})).join("");return~e.indexOf("NaN")?"":e},e.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null},e.prototype.getPoint=function(t){var e=this.get("el"),n=this.getTotalLength();if(0===n)return null;var r=e?e.getPointAtLength(t*n):null;return r?{x:r.x,y:r.y}:null},e}(Hc);const oh=ih;var ah=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.canFill=!0,e.canStroke=!0,e}return(0,b.__extends)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,x.each)(e||n,(function(t,e){"points"===e&&(0,x.isArray)(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):Pc[e]&&r.setAttribute(Pc[e],t)}))},e}(Hc);const sh=ah;var uh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polyline",e.canFill=!0,e.canStroke=!0,e}return(0,b.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,b.__assign)((0,b.__assign)({},e),{startArrow:!1,endArrow:!1})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,x.each)(e||n,(function(t,e){"points"===e&&(0,x.isArray)(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):Pc[e]&&r.setAttribute(Pc[e],t)}))},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return(0,x.isNil)(e)?(this.set("totalLength",za(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,r=this.attr().points,i=this.get("tCache");return i||(this._setTcache(),i=this.get("tCache")),(0,x.each)(i,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),ma.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,r,i=0,o=[];(0,x.each)(t,(function(a,s){t[s+1]&&((n=[])[0]=i/e,r=ma.length(a[0],a[1],t[s+1][0],t[s+1][1]),i+=r,n[1]=i/e,o.push(n))})),this.set("tCache",o)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(Hc);const lh=uh;var ch=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rect",e.canFill=!0,e.canStroke=!0,e}return(0,b.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,b.__assign)((0,b.__assign)({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el"),o=!1,a=["x","y","width","height","radius"];(0,x.each)(e||r,(function(t,e){-1===a.indexOf(e)||o?-1===a.indexOf(e)&&Pc[e]&&i.setAttribute(Pc[e],t):(i.setAttribute("d",n._assembleRect(r)),o=!0)}))},e.prototype._assembleRect=function(t){var e=t.x,n=t.y,r=t.width,i=t.height,o=t.radius;if(!o)return"M "+e+","+n+" l "+r+",0 l 0,"+i+" l"+-r+" 0 z";var a=function(t){var e=0,n=0,r=0,i=0;return(0,x.isArray)(t)?1===t.length?e=n=r=i=t[0]:2===t.length?(e=r=t[0],n=i=t[1]):3===t.length?(e=t[0],n=i=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],i=t[3]):e=n=r=i=t,{r1:e,r2:n,r3:r,r4:i}}(o);return(0,x.isArray)(o)?1===o.length?a.r1=a.r2=a.r3=a.r4=o[0]:2===o.length?(a.r1=a.r3=o[0],a.r2=a.r4=o[1]):3===o.length?(a.r1=o[0],a.r2=a.r4=o[1],a.r3=o[2]):(a.r1=o[0],a.r2=o[1],a.r3=o[2],a.r4=o[3]):a.r1=a.r2=a.r3=a.r4=o,[["M "+(e+a.r1)+","+n],["l "+(r-a.r1-a.r2)+",0"],["a "+a.r2+","+a.r2+",0,0,1,"+a.r2+","+a.r2],["l 0,"+(i-a.r2-a.r3)],["a "+a.r3+","+a.r3+",0,0,1,"+-a.r3+","+a.r3],["l "+(a.r3+a.r4-r)+",0"],["a "+a.r4+","+a.r4+",0,0,1,"+-a.r4+","+-a.r4],["l 0,"+(a.r4+a.r1-i)],["a "+a.r1+","+a.r1+",0,0,1,"+a.r1+","+-a.r1],["z"]].join(" ")},e}(Hc);const hh=ch;var dh={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},fh={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},ph={left:"left",start:"left",center:"middle",right:"end",end:"end"},mh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="text",e.canFill=!0,e.canStroke=!0,e}return(0,b.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,b.__assign)((0,b.__assign)({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");this._setFont(),(0,x.each)(e||r,(function(t,e){"text"===e?n._setText(""+t):"matrix"===e&&t?Dc(n):Pc[e]&&i.setAttribute(Pc[e],t)})),i.setAttribute("paint-order","stroke"),i.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},e.prototype._setFont=function(){var t=this.get("el"),e=this.attr(),n=e.textBaseline,r=e.textAlign,i=yr();i&&"firefox"===i.name?t.setAttribute("dominant-baseline",fh[n]||"alphabetic"):t.setAttribute("alignment-baseline",dh[n]||"baseline"),t.setAttribute("text-anchor",ph[r]||"left")},e.prototype._setText=function(t){var e=this.get("el"),n=this.attr(),r=n.x,i=n.textBaseline,o=void 0===i?"bottom":i;if(t)if(~t.indexOf("\n")){var a=t.split("\n"),s=a.length-1,u="";(0,x.each)(a,(function(t,e){0===e?"alphabetic"===o?u+=''+t+"":"top"===o?u+=''+t+"":"middle"===o?u+=''+t+"":"bottom"===o?u+=''+t+"":"hanging"===o&&(u+=''+t+""):u+=''+t+""})),e.innerHTML=u}else e.innerHTML=t;else e.innerHTML=""},e}(Hc);const gh=mh;var vh=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,yh=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,bh=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function xh(t){var e=t.match(bh);if(!e)return"";var n="";return e.sort((function(t,e){return t=t.split(":"),e=e.split(":"),Number(t[0])-Number(e[0])})),(0,x.each)(e,(function(t){t=t.split(":"),n+=''})),n}var wh=function(){function t(t){this.cfg={};var e=null,n=(0,x.uniqueId)("gradient_");return"l"===t.toLowerCase()[0]?function(t,e){var n,r,i=vh.exec(t),o=(0,x.mod)((0,x.toRadian)(parseFloat(i[1])),2*Math.PI),a=i[2];o>=0&&o<.5*Math.PI?(n={x:0,y:0},r={x:1,y:1}):.5*Math.PI<=o&&o';e.innerHTML=n},t}();const Mh=Ah;var Ch=function(){function t(t,e){this.cfg={};var n=Oc("marker"),r=(0,x.uniqueId)("marker_");n.setAttribute("id",r);var i=Oc("path");i.setAttribute("stroke",t.stroke||"none"),i.setAttribute("fill",t.fill||"none"),n.appendChild(i),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=i,this.id=r;var o=t["marker-start"===e?"startArrow":"endArrow"];return this.stroke=t.stroke||"#000",!0===o?this._setDefaultPath(e,i):(this.cfg=o,this._setMarker(t.lineWidth,i)),this}return t.prototype.match=function(){return!1},t.prototype._setDefaultPath=function(t,e){var n=this.el;e.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),n.setAttribute("refX",""+10*Math.cos(Math.PI/6)),n.setAttribute("refY","5")},t.prototype._setMarker=function(t,e){var n=this.el,r=this.cfg.path,i=this.cfg.d;(0,x.isArray)(r)&&(r=r.map((function(t){return t.join(" ")})).join("")),e.setAttribute("d",r),n.appendChild(e),i&&n.setAttribute("refX",""+i/t)},t.prototype.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}();const Th=Ch;const kh=function(){function t(t){this.type="clip",this.cfg={};var e=Oc("clipPath");this.el=e,this.id=(0,x.uniqueId)("clip_"),e.id=this.id;var n=t.cfg.el;return e.appendChild(n),this.cfg=t,this}return t.prototype.match=function(){return!1},t.prototype.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}();var Ih=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i;const Nh=function(){function t(t){this.cfg={};var e=Oc("pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=Oc("image");e.appendChild(n);var r=(0,x.uniqueId)("pattern_");e.id=r,this.el=e,this.id=r,this.cfg=t;var i=Ih.exec(t)[2];n.setAttribute("href",i);var o=new Image;function a(){e.setAttribute("width",""+o.width),e.setAttribute("height",""+o.height)}return i.match(/^data:/i)||(o.crossOrigin="Anonymous"),o.src=i,o.complete?a():(o.onload=a,o.src=o.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}();var Ph=function(){function t(t){var e=Oc("defs"),n=(0,x.uniqueId)("defs_");e.id=n,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}return t.prototype.find=function(t,e){for(var n=this.children,r=null,i=0;i]*>/,Bh={tr:document.createElement("tbody"),tbody:Dh,thead:Dh,tfoot:Dh,td:zh,th:zh,"*":document.createElement("div")});var e=Fh.test(t)&&RegExp.$1;e&&e in Bh||(e="*");var n=Bh[e];t="string"==typeof t?t.replace(/(^\s*)|(\s*$)/g,""):t,n.innerHTML=""+t;var r=n.childNodes[0];return r&&n.contains(r)&&n.removeChild(r),r}var jh=n(2520),Vh=n.n(jh);function Hh(t){return Hh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hh(t)}var Gh=/^\s+/,Wh=/\s+$/;function Xh(t,e){if(e=e||{},(t=t||"")instanceof Xh)return t;if(!(this instanceof Xh))return new Xh(t,e);var n=function(t){var e={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;"string"==typeof t&&(t=function(t){t=t.replace(Gh,"").replace(Wh,"").toLowerCase();var e,n=!1;if(ld[t])t=ld[t],n=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};if(e=_d.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=_d.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=_d.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=_d.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=_d.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=_d.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=_d.hex8.exec(t))return{r:pd(e[1]),g:pd(e[2]),b:pd(e[3]),a:yd(e[4]),format:n?"name":"hex8"};if(e=_d.hex6.exec(t))return{r:pd(e[1]),g:pd(e[2]),b:pd(e[3]),format:n?"name":"hex"};if(e=_d.hex4.exec(t))return{r:pd(e[1]+""+e[1]),g:pd(e[2]+""+e[2]),b:pd(e[3]+""+e[3]),a:yd(e[4]+""+e[4]),format:n?"name":"hex8"};if(e=_d.hex3.exec(t))return{r:pd(e[1]+""+e[1]),g:pd(e[2]+""+e[2]),b:pd(e[3]+""+e[3]),format:n?"name":"hex"};return!1}(t));"object"==Hh(t)&&(Sd(t.r)&&Sd(t.g)&&Sd(t.b)?(u=t.r,l=t.g,c=t.b,e={r:255*dd(u,255),g:255*dd(l,255),b:255*dd(c,255)},a=!0,s="%"===String(t.r).substr(-1)?"prgb":"rgb"):Sd(t.h)&&Sd(t.s)&&Sd(t.v)?(r=gd(t.s),i=gd(t.v),e=function(t,e,n){t=6*dd(t,360),e=dd(e,100),n=dd(n,100);var r=Math.floor(t),i=t-r,o=n*(1-e),a=n*(1-i*e),s=n*(1-(1-i)*e),u=r%6,l=[n,a,o,o,s,n][u],c=[s,n,n,a,o,o][u],h=[o,o,s,n,n,a][u];return{r:255*l,g:255*c,b:255*h}}(t.h,r,i),a=!0,s="hsv"):Sd(t.h)&&Sd(t.s)&&Sd(t.l)&&(r=gd(t.s),o=gd(t.l),e=function(t,e,n){var r,i,o;function a(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(t=dd(t,360),e=dd(e,100),n=dd(n,100),0===e)r=i=o=n;else{var s=n<.5?n*(1+e):n+e-n*e,u=2*n-s;r=a(u,s,t+1/3),i=a(u,s,t),o=a(u,s,t-1/3)}return{r:255*r,g:255*i,b:255*o}}(t.h,r,o),a=!0,s="hsl"),t.hasOwnProperty("a")&&(n=t.a));var u,l,c;return n=hd(n),{ok:a,format:t.format||s,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function Yh(t,e,n){t=dd(t,255),e=dd(e,255),n=dd(n,255);var r,i,o=Math.max(t,e,n),a=Math.min(t,e,n),s=(o+a)/2;if(o==a)r=i=0;else{var u=o-a;switch(i=s>.5?u/(2-o-a):u/(o+a),o){case t:r=(e-n)/u+(e>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(Xh(r));return o}function ud(t,e){e=e||6;for(var n=Xh(t).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/e;e--;)a.push(Xh({h:r,s:i,v:o})),o=(o+s)%1;return a}Xh.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,n,r=this.toRgb();return t=r.r/255,e=r.g/255,n=r.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=hd(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=qh(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=qh(this._r,this._g,this._b),e=Math.round(360*t.h),n=Math.round(100*t.s),r=Math.round(100*t.v);return 1==this._a?"hsv("+e+", "+n+"%, "+r+"%)":"hsva("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=Yh(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=Yh(this._r,this._g,this._b),e=Math.round(360*t.h),n=Math.round(100*t.s),r=Math.round(100*t.l);return 1==this._a?"hsl("+e+", "+n+"%, "+r+"%)":"hsla("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(t){return $h(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,n,r,i){var o=[md(Math.round(t).toString(16)),md(Math.round(e).toString(16)),md(Math.round(n).toString(16)),md(vd(r))];if(i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*dd(this._r,255))+"%",g:Math.round(100*dd(this._g,255))+"%",b:Math.round(100*dd(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*dd(this._r,255))+"%, "+Math.round(100*dd(this._g,255))+"%, "+Math.round(100*dd(this._b,255))+"%)":"rgba("+Math.round(100*dd(this._r,255))+"%, "+Math.round(100*dd(this._g,255))+"%, "+Math.round(100*dd(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(cd[$h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+Kh(this._r,this._g,this._b,this._a),n=e,r=this._gradientType?"GradientType = 1, ":"";if(t){var i=Xh(t);n="#"+Kh(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+e+",endColorstr="+n+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1,r=this._a<1&&this._a>=0;return e||!r||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return Xh(this.toString())},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(td,arguments)},brighten:function(){return this._applyModification(ed,arguments)},darken:function(){return this._applyModification(nd,arguments)},desaturate:function(){return this._applyModification(Zh,arguments)},saturate:function(){return this._applyModification(Qh,arguments)},greyscale:function(){return this._applyModification(Jh,arguments)},spin:function(){return this._applyModification(rd,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(sd,arguments)},complement:function(){return this._applyCombination(id,arguments)},monochromatic:function(){return this._applyCombination(ud,arguments)},splitcomplement:function(){return this._applyCombination(ad,arguments)},triad:function(){return this._applyCombination(od,[3])},tetrad:function(){return this._applyCombination(od,[4])}},Xh.fromRatio=function(t,e){if("object"==Hh(t)){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]="a"===r?t[r]:gd(t[r]));t=n}return Xh(t,e)},Xh.equals=function(t,e){return!(!t||!e)&&Xh(t).toRgbString()==Xh(e).toRgbString()},Xh.random=function(){return Xh.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},Xh.mix=function(t,e,n){n=0===n?0:n||50;var r=Xh(t).toRgb(),i=Xh(e).toRgb(),o=n/100;return Xh({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},Xh.readability=function(t,e){var n=Xh(t),r=Xh(e);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},Xh.isReadable=function(t,e,n){var r,i,o=Xh.readability(t,e);switch(i=!1,(r=function(t){var e,n;e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==n&&"large"!==n&&(n="small");return{level:e,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7}return i},Xh.mostReadable=function(t,e,n){var r,i,o,a,s=null,u=0;i=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var l=0;lu&&(u=r,s=Xh(e[l]));return Xh.isReadable(t,s,{level:o,size:a})||!i?s:(n.includeFallbackColors=!1,Xh.mostReadable(t,["#fff","#000"],n))};var ld=Xh.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},cd=Xh.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(ld);function hd(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function dd(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var n=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function fd(t){return Math.min(1,Math.max(0,t))}function pd(t){return parseInt(t,16)}function md(t){return 1==t.length?"0"+t:""+t}function gd(t){return t<=1&&(t=100*t+"%"),t}function vd(t){return Math.round(255*parseFloat(t)).toString(16)}function yd(t){return pd(t)/255}var bd,xd,wd,_d=(xd="[\\s|\\(]+("+(bd="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+bd+")[,|\\s]+("+bd+")\\s*\\)?",wd="[\\s|\\(]+("+bd+")[,|\\s]+("+bd+")[,|\\s]+("+bd+")[,|\\s]+("+bd+")\\s*\\)?",{CSS_UNIT:new RegExp(bd),rgb:new RegExp("rgb"+xd),rgba:new RegExp("rgba"+wd),hsl:new RegExp("hsl"+xd),hsla:new RegExp("hsla"+wd),hsv:new RegExp("hsv"+xd),hsva:new RegExp("hsva"+wd),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function Sd(t){return!!_d.CSS_UNIT.exec(t)}var Ed=2,Ad=.16,Md=.05,Cd=.05,Td=.15,kd=5,Id=4,Nd=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Pd(t,e,n){var r;return(r=Math.round(t.h)>=60&&Math.round(t.h)<=240?n?Math.round(t.h)-Ed*e:Math.round(t.h)+Ed*e:n?Math.round(t.h)+Ed*e:Math.round(t.h)-Ed*e)<0?r+=360:r>=360&&(r-=360),r}function Od(t,e,n){return 0===t.h&&0===t.s?t.s:((r=n?t.s-Ad*e:e===Id?t.s+Ad:t.s+Md*e)>1&&(r=1),n&&e===kd&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function Ld(t,e,n){var r;return(r=n?t.v+Cd*e:t.v-Td*e)>1&&(r=1),Number(r.toFixed(2))}function Rd(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=Xh(t),i=kd;i>0;i-=1){var o=r.toHsv(),a=Xh({h:Pd(o,i,!0),s:Od(o,i,!0),v:Ld(o,i,!0)}).toHexString();n.push(a)}n.push(r.toHexString());for(var s=1;s<=Id;s+=1){var u=r.toHsv(),l=Xh({h:Pd(u,s),s:Od(u,s),v:Ld(u,s)}).toHexString();n.push(l)}return"dark"===e.theme?Nd.map((function(t){var r=t.index,i=t.opacity;return Xh.mix(e.backgroundColor||"#141414",n[r],100*i).toHexString()})):n}var Dd={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},zd={},Fd={};Object.keys(Dd).forEach((function(t){zd[t]=Rd(Dd[t]),zd[t].primary=zd[t][5],Fd[t]=Rd(Dd[t],{theme:"dark",backgroundColor:"#141414"}),Fd[t].primary=Fd[t][5]}));zd.red,zd.volcano,zd.gold,zd.orange,zd.yellow,zd.lime,zd.green,zd.cyan,zd.blue,zd.geekblue,zd.purple,zd.magenta,zd.grey;var Bd=function(t,e,n){var r=Vh()(t),i=Vh()(e);return Vh()([(1-n)*r.red()+n*i.red(),(1-n)*r.green()+n*i.green(),(1-n)*r.blue()+n*i.blue()]).rgb()},Ud=function(t,e,n,r){return void 0===e&&(e="#fff"),void 0===n&&(n="default"),void 0===r&&(r="rgb(150, 150, 150)"),"default"===n?function(t,e,n){void 0===e&&(e="#fff"),void 0===n&&(n="rgb(150, 150, 150)");var r=Bd(e,t,.05).rgb().toString(),i=Bd(e,t,.1).rgb().toString(),o=Bd(e,t,.2).rgb().toString(),a=Bd(e,t,.4).rgb().toString(),s=Bd(e,n,.02).rgb().toString(),u=Bd(e,n,.05).rgb().toString(),l=Bd(e,n,.1).rgb().toString(),c=Bd(e,n,.2).rgb().toString(),h=Bd(e,n,.3).rgb().toString(),d=Rd(t,{theme:"default",backgroundColor:e}),f=Vh()(t).hex().toLowerCase(),p=d.indexOf(f),m=t;return-1!==p&&(m=d[p+1]),{mainStroke:t,mainFill:i,activeStroke:t,activeFill:r,inactiveStroke:a,inactiveFill:r,selectedStroke:t,selectedFill:e,highlightStroke:m,highlightFill:o,disableStroke:h,disableFill:u,edgeMainStroke:h,edgeActiveStroke:t,edgeInactiveStroke:c,edgeSelectedStroke:t,edgeHighlightStroke:t,edgeDisableStroke:l,comboMainStroke:h,comboMainFill:s,comboActiveStroke:t,comboActiveFill:r,comboInactiveStroke:h,comboInactiveFill:s,comboSelectedStroke:t,comboSelectedFill:s,comboHighlightStroke:m,comboHighlightFill:s,comboDisableStroke:c,comboDisableFill:u}}(t,e,"rgb(150, 150, 150)"):function(t,e,n){void 0===e&&(e="#fff"),void 0===n&&(n="#777");var r=Bd(e,t,.2).rgb().toString(),i=Bd(e,t,.3).rgb().toString(),o=Bd(e,t,.6).rgb().toString(),a=Bd(e,t,.8).rgb().toString(),s=Bd(e,n,.2).rgb().toString(),u=Bd(e,n,.25).rgb().toString(),l=Bd(e,n,.3).rgb().toString(),c=Bd(e,n,.4).rgb().toString(),h=Bd(e,n,.5).rgb().toString(),d=Rd(t,{theme:"dark",backgroundColor:e}),f=Vh()(t).hex().toLowerCase(),p=d.indexOf(f),m=t;return-1!==p&&(m=d[p+1]),{mainStroke:a,mainFill:r,activeStroke:t,activeFill:i,inactiveStroke:a,inactiveFill:r,selectedStroke:t,selectedFill:r,highlightStroke:t,highlightFill:o,disableStroke:h,disableFill:u,edgeMainStroke:n,edgeActiveStroke:t,edgeInactiveStroke:n,edgeSelectedStroke:t,edgeHighlightStroke:t,edgeDisableStroke:l,comboMainStroke:c,comboMainFill:u,comboActiveStroke:t,comboActiveFill:s,comboInactiveStroke:c,comboInactiveFill:u,comboSelectedStroke:t,comboSelectedFill:s,comboHighlightStroke:m,comboHighlightFill:u,comboDisableStroke:c,comboDisableFill:s}}(t,e,"#777")},jd=function(t,e,n,r){void 0===e&&(e="#fff"),void 0===n&&(n="default"),void 0===r&&(r="rgb(150, 150, 150)");var i=[];return t.forEach((function(t){i.push(Ud(t,e,n,r))})),i},Vd="rgb(0, 0, 0)",Hd=Ud("rgb(95, 149, 255)","rgb(255, 255, 255)");const Gd={version:"0.8.23",rootContainerClassName:"root-container",nodeContainerClassName:"node-container",edgeContainerClassName:"edge-container",comboContainerClassName:"combo-container",delegateContainerClassName:"delegate-container",defaultLoopPosition:"top",nodeLabel:{style:{fill:"#000",fontSize:12,textAlign:"center",textBaseline:"middle"},offset:4},defaultNode:{type:"circle",style:{lineWidth:1,stroke:Hd.mainStroke,fill:Hd.mainFill},size:20,color:Hd.mainStroke,linkPoints:{size:8,lineWidth:1,fill:Hd.activeFill,stroke:Hd.activeStroke}},nodeStateStyles:{active:{fill:Hd.activeFill,stroke:Hd.activeStroke,lineWidth:2,shadowColor:Hd.mainStroke,shadowBlur:10},selected:{fill:Hd.selectedFill,stroke:Hd.selectedStroke,lineWidth:4,shadowColor:Hd.selectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{fill:Hd.highlightFill,stroke:Hd.highlightStroke,lineWidth:2,"text-shape":{fontWeight:500}},inactive:{fill:Hd.inactiveFill,stroke:Hd.inactiveStroke,lineWidth:1},disable:{fill:Hd.disableFill,stroke:Hd.disableStroke,lineWidth:1}},edgeLabel:{style:{fill:Vd,textAlign:"center",textBaseline:"middle",fontSize:12}},defaultEdge:{type:"line",size:1,style:{stroke:Hd.edgeMainStroke,lineAppendWidth:2},color:Hd.edgeMainStroke},edgeStateStyles:{active:{stroke:Hd.edgeActiveStroke,lineWidth:1},selected:{stroke:Hd.edgeSelectedStroke,lineWidth:2,shadowColor:Hd.edgeSelectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{stroke:Hd.edgeHighlightStroke,lineWidth:2,"text-shape":{fontWeight:500}},inactive:{stroke:Hd.edgeInactiveStroke,lineWidth:1},disable:{stroke:Hd.edgeDisableStroke,lineWidth:1}},comboLabel:{style:{fill:Vd,textBaseline:"middle",fontSize:12},refY:10,refX:10},defaultCombo:{type:"circle",style:{fill:Hd.comboMainFill,lineWidth:1,stroke:Hd.comboMainStroke,r:5,width:20,height:10},size:[20,5],color:Hd.comboMainStroke,padding:[25,20,15,20]},comboStateStyles:{active:{stroke:Hd.comboActiveStroke,lineWidth:1,fill:Hd.comboActiveFill},selected:{stroke:Hd.comboSelectedStroke,lineWidth:2,fill:Hd.comboSelectedFill,shadowColor:Hd.comboSelectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{stroke:Hd.comboHighlightStroke,lineWidth:2,fill:Hd.comboHighlightFill,"text-shape":{fontWeight:500}},inactive:{stroke:Hd.comboInactiveStroke,fill:Hd.comboInactiveFill,lineWidth:1},disable:{stroke:Hd.comboDisableStroke,fill:Hd.comboDisableFill,lineWidth:1}},delegateStyle:{fill:"#F3F9FF",fillOpacity:.5,stroke:"#1890FF",strokeOpacity:.9,lineDash:[5,5]},textWaterMarkerConfig:{width:150,height:100,compatible:!1,text:{x:0,y:60,lineHeight:20,rotate:20,fontSize:14,fontFamily:"Microsoft YaHei",fill:"rgba(0, 0, 0, 0.1)",baseline:"Middle"}},imageWaterMarkerConfig:{width:150,height:130,compatible:!1,image:{x:0,y:0,width:30,height:20,rotate:0}},waterMarkerImage:"https://gw.alipayobjects.com/os/s/prod/antv/assets/image/logo-with-text-73b8a.svg"};var Wd=function t(e,n){var r;e.isGroup()&&n.isGroup()&&(null===(r=e.get("children"))||void 0===r||r.forEach((function(e,r){var i=n.get("children")[r];t(e,i)})));var i=e.get("type"),o=n.get("type");if("image"===i&&"image"===o){var a=e.get("clipShape");a&&n.setClip({type:a.get("type"),attrs:a.attr()})}};function Xd(t,e,n){if(t){if("function"==typeof t.addEventListener)return t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}};if("function"==typeof t.attachEvent)return t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}}}var Yd=el.cloneEvent,qd=el.isViewportChanged,$d=function(t){function e(e){var n=t.call(this,e)||this;return n.extendEvents=[],n.dragging=!1,n.mousedown=!1,n.preItem=null,n.destroy(),n.graph=e,n.destroyed=!1,n.initEvents(),n}return(0,b.__extends)(e,t),e.prototype.initEvents=function(){var t=this.graph,e=this.extendEvents,n=void 0===e?[]:e,r=t.get("canvas"),i=r.get("el"),o=(0,x.wrapBehavior)(this,"onCanvasEvents"),a=(0,x.wrapBehavior)(this,"onExtendEvents"),s=(0,x.wrapBehavior)(this,"onWheelEvent");r.off("*").on("*",o),this.canvasHandler=o,n.push(Xd(i,"wheel",s)),"undefined"!=typeof window&&(n.push(Xd(window,"keydown",a)),n.push(Xd(window,"keyup",a)),n.push(Xd(window,"focus",a))),this.resetHandler&&t.off("afterchangedata",this.resetHandler),this.resetHandler=(0,x.wrapBehavior)(this,"resetStatus"),t.on("afterchangedata",this.resetHandler)},e.getItemRoot=function(t){for(;t&&!t.get("item");)t=t.get("parent");return t},e.prototype.onCanvasEvents=function(t){var n=this,r=this.graph,i=r.get("canvas"),o=t.target,a=t.type;switch(a){case"drag":this.onCanvasEvents(Object.assign({},t,{type:"mousemove"}));break;case"dragend":this.onCanvasEvents(Object.assign({},t,{type:"mouseup"}));break;case"mousedown":this.mousedown=!0;break;case"mouseup":setTimeout((function(){return n.mousedown=!1}));break;case"click":if(!this.mousedown)return}t.canvasX=t.x,t.canvasY=t.y;var s={x:t.canvasX,y:t.canvasY},u=r.get("group").getMatrix();if(u||(u=[1,0,0,0,1,0,0,0,1]),qd(u)&&(s=r.getPointByClient(t.clientX,t.clientY)),t.x=s.x,t.y=s.y,t.currentTarget=r,o===i)return"mousemove"!==a&&"mouseleave"!==a||this.handleMouseMove(t,"canvas"),t.target=i,t.item=null,r.emit(a,t),void r.emit("canvas:".concat(a),t);var l=e.getItemRoot(o);if(l){var c=l.get("item");if(!c.destroyed){var h=c.getType();if(t.target=o,t.item=c,t.canvasX===t.x&&t.canvasY===t.y){var d=r.getCanvasByPoint(t.x,t.y);t.canvasX=d.x,t.canvasY=d.y}t.name&&!t.name.includes(":")?(r.emit("".concat(h,":").concat(a),t),r.emit(a,t)):t.name&&r.emit(t.name,t),"dragstart"===a&&(this.dragging=!0),"dragend"===a&&(this.dragging=!1),"mousemove"===a&&this.handleMouseMove(t,h)}}else r.emit(a,t)},e.prototype.onExtendEvents=function(t){this.graph.emit(t.type,t)},e.prototype.onWheelEvent=function(t){(0,x.isNil)(t.wheelDelta)&&(t.wheelDelta=-t.detail),this.graph.emit("wheel",t)},e.prototype.handleMouseMove=function(t,e){var n=this.graph,r=this.preItem,i=n.get("canvas"),o=t.target===i?null:t.item;t=Yd(t),r&&r!==o&&!r.destroyed&&(t.item=r,this.emitCustomEvent(r.getType(),"mouseleave",t),this.dragging&&this.emitCustomEvent(r.getType(),"dragleave",t)),o&&r!==o&&(t.item=o,this.emitCustomEvent(e,"mouseenter",t),this.dragging&&this.emitCustomEvent(e,"dragenter",t)),this.preItem=o},e.prototype.emitCustomEvent=function(t,e,n){n.type=e,this.graph.emit("".concat(t,":").concat(e),n)},e.prototype.resetStatus=function(){this.mousedown=!1,this.dragging=!1,this.preItem=null},e.prototype.destroy=function(){var t=this,e=t.graph,n=t.canvasHandler,r=t.extendEvents;e.get("canvas").off("*",n),(0,x.each)(r,(function(t){t.remove()})),this.resetStatus(),this.extendEvents.length=0,this.canvasHandler=null,this.resetHandler=null,this.destroyed=!0},e}(ol);const Kd=$d;var Zd=n(84821),Qd=n(5802),Jd=n.n(Qd),tf=el.traverseTree,ef=function(t,e){return t?(0,x.isNumber)(t)?function(e){return t}:t:function(t){return e||1}},nf=function(t,e){var n=[],r=[],i={},o=0;for(o=0;o=0&&(o="x",i="y");var a=0;tf(t,(function(t){return a++,t.x>r.x&&(r.x=t.x),t.xr.y&&(r.y=t.y),t.yWebGL.
    ','Find out how to get it here.'].join("\n"):['Your browser does not seem to support WebGL.
    ','Find out how to get it here.'].join("\n")),t},addGetWebGLMessage:function(e){var n=void 0!==(e=e||{}).parent?e.parent:document.body,r=void 0!==e.id?e.id:"oldie",i=t().getWebGLErrorMessage();i.id=r,n.appendChild(i)}}},cf=function(){var t=navigator.userAgent.toLowerCase();return t.indexOf("firefox")>-1?"firefox":t.indexOf("safari")>-1?"safari":t.indexOf("opr")>-1?"opera":t.indexOf("chrome")>-1?"chrome":t.indexOf("trident")>-1?"ie 11":t.indexOf("ie")>-1?"ie":"unknown"};const hf=(0,b.__assign)((0,b.__assign)((0,b.__assign)((0,b.__assign)((0,b.__assign)({},el),p),m),g),v);var df=hf.radialLayout;const ff=function(){function t(t){this.type=t.type,this.radial=t.radial,this.config=t}return t.prototype.init=function(t){var e=this;this.data=t,this.radial?this.layoutMethod=function(t){var n=Jd()[e.type](t,e.config);return df(n),n}:this.layoutMethod=function(t){return Jd()[e.type](t,e.config)}},t.prototype.execute=function(){return this.layoutMethod(this.data,this.config)},t.prototype.layout=function(t){return this.init(t),this.execute()},t}();(0,Zd.registerLayout)("grid",Zd.GridLayout),(0,Zd.registerLayout)("random",Zd.RandomLayout),(0,Zd.registerLayout)("force",Zd.ForceLayout),(0,Zd.registerLayout)("circular",Zd.CircularLayout),(0,Zd.registerLayout)("dagre",Zd.DagreLayout),(0,Zd.registerLayout)("dagreCompound",Zd.DagreCompoundLayout),(0,Zd.registerLayout)("radial",Zd.RadialLayout),(0,Zd.registerLayout)("concentric",Zd.ConcentricLayout),(0,Zd.registerLayout)("mds",Zd.MDSLayout),(0,Zd.registerLayout)("fruchterman",Zd.FruchtermanLayout),(0,Zd.registerLayout)("fruchterman-gpu",Zd.FruchtermanGPULayout),(0,Zd.registerLayout)("gForce",Zd.GForceLayout),(0,Zd.registerLayout)("force2",Zd.Force2Layout),(0,Zd.registerLayout)("gForce-gpu",Zd.GForceGPULayout),(0,Zd.registerLayout)("comboForce",Zd.ComboForceLayout),(0,Zd.registerLayout)("comboCombined",Zd.ComboCombinedLayout),(0,Zd.registerLayout)("forceAtlas2",Zd.ForceAtlas2Layout);const pf=function(t,e){var n=t.toString(),r=new Blob(["importScripts('".concat(e,"');(").concat(n,")()")],{type:"text/javascript"});return new Worker(URL.createObjectURL(r))};var mf=function(t){void 0===t&&(t="https://unpkg.com/@antv/layout@0.3.23/dist/layout.min.js");var e=new pf((function(){var t="LAYOUT_RUN",e="LAYOUT_END",n="LAYOUT_ERROR",r="GPU_LAYOUT_RUN";layout.registerLayout("grid",layout.GridLayout),layout.registerLayout("random",layout.RandomLayout),layout.registerLayout("force",layout.ForceLayout),layout.registerLayout("force2",layout.Force2Layout),layout.registerLayout("circular",layout.CircularLayout),layout.registerLayout("dagre",layout.DagreLayout),layout.registerLayout("dagreCompound",layout.DagreCompoundLayout),layout.registerLayout("radial",layout.RadialLayout),layout.registerLayout("concentric",layout.ConcentricLayout),layout.registerLayout("mds",layout.MDSLayout),layout.registerLayout("fruchterman",layout.FruchtermanLayout),layout.registerLayout("fruchterman-gpu",layout.FruchtermanGPULayout),layout.registerLayout("gForce",layout.GForceLayout),layout.registerLayout("gForce-gpu",layout.GForceGPULayout),layout.registerLayout("comboForce",layout.ComboForceLayout),layout.registerLayout("comboCombined",layout.ComboCombinedLayout),layout.registerLayout("forceAtlas2",layout.ForceAtlas2Layout),onmessage=function(i){(function(e){var n=e.data.type;return n===t||n===r})(i)&&function(i){var o=this;switch(i.data.type){case t:var a,s=i.data,u=s.nodes,l=s.edges,c=s.layoutCfg,h=(g=void 0===c?{}:c).type;if(!(d=layout.getLayoutByName(h))){this.postMessage({type:n,message:"layout ".concat(h," not found")});break}g.onLayoutEnd=function(){o.postMessage({type:e,nodes:u}),null==a||a.destroy()},(a=new d(g)).init({nodes:u,edges:l}),a.execute();break;case r:var d,f=i.data,p=f.nodes,m=(l=f.edges,f.layoutCfg),g=void 0===m?{}:m,v=f.canvas;if(h=g.type,!(d=layout.getLayoutByName(h))){this.postMessage({type:n,message:"layout ".concat(h," not found")});break}if("gpu"!==h.split("-")[1]){this.postMessage({type:n,message:"layout ".concat(h," does not support GPU")});break}var y=new d(g);y.init({nodes:p,edges:l}),y.executeWithWorker(v,this)}}(i)}}),t);return e},gf="LAYOUT_RUN",vf="LAYOUT_END",yf="LAYOUT_ERROR",bf="LAYOUT_TICK",xf="GPU_LAYOUT_RUN",wf="GPU_LAYOUT_END";function _f(t){return _f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_f(t)}var Sf=function(t){return setTimeout(t,16)},Ef=function(t){return clearTimeout(t)},Af=function(t){return("undefined"!=typeof window&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame)||Sf)(t)},Mf=function(t){return("undefined"!=typeof window&&(window.cancelAnimationFrame||window.webkitCancelAnimationFrame)||Ef)(t)},Cf=["fruchterman","gForce"],Tf=["force","grid","circular"],kf=function(t){function e(e){var n=t.call(this,e)||this;return n.graph=e,n.layoutCfg=e.get("layout")||{},n.layoutType=n.getLayoutType(),n.worker=null,n.workerData={},n.initLayout(),n}return(0,b.__extends)(e,t),e.prototype.initLayout=function(){},e.prototype.getWorker=function(){return this.worker||("undefined"==typeof Worker?(console.warn("Web worker is not supported in current browser."),this.worker=null):this.worker=mf(this.layoutCfg.workerScriptURL)),this.worker},e.prototype.stopWorker=function(){var t=this.workerData;this.worker&&(this.worker.terminate(),this.worker=null,t.requestId&&(Mf(t.requestId),t.requestId=null),t.requestId2&&(Mf(t.requestId2),t.requestId2=null))},e.prototype.execLayoutMethod=function(t,e){var n=this;return new Promise((function(r,i){return(0,b.__awaiter)(n,void 0,void 0,(function(){var n,o,a,s,u,l,c,h,d;return(0,b.__generator)(this,(function(f){switch(f.label){case 0:if(!(n=this.graph)||n.get("destroyed"))return[2];o=t.type,t.onLayoutEnd=function(){n.emit("aftersublayout",{type:o}),r()},o&&this.isGPU&&(Pf(o)?o="".concat(o,"-gpu"):console.warn("The '".concat(o,"' layout does not support GPU calculation for now, it will run in CPU."))),el.isForce(o)?(a=t.onTick,s=t.animate,u=void 0===s&&("force"===o||"force2"===o),h=function(){a&&a(),(s||u)&&n.refreshPositions()},t.tick=h):"comboForce"!==o&&"comboCombined"!==o||(t.comboTrees=n.get("comboTrees")),!1;try{l=new Zd.Layouts[o](t),this.layoutMethods[e]&&this.layoutMethods[e].destroy(),this.layoutMethods[e]=l}catch(t){console.warn("The layout method: '".concat(o,"' does not exist! Please specify it first.")),i()}return l.enableTick&&(c=t.onTick,h=function(){c&&c(),n.refreshPositions()},l.tick=h),function(t,e){var n;if(!(null===(n=null==t?void 0:t.nodes)||void 0===n?void 0:n.length))return;t.nodes.forEach((function(t){t.layoutOrder=e}))}(d=this.filterLayoutData(this.data,t),e),l.init(d),n.emit("beforesublayout",{type:o}),[4,l.execute()];case 1:return f.sent(),l.isCustomLayout&&t.onLayoutEnd&&t.onLayoutEnd(),[2]}}))}))}))},e.prototype.updateLayoutMethod=function(t,e){var n=this;return new Promise((function(r,i){return(0,b.__awaiter)(n,void 0,void 0,(function(){var n,i,o,a,s,u,l;return(0,b.__generator)(this,(function(c){switch(c.label){case 0:return n=this.graph,i=null==e?void 0:e.type,e.onLayoutEnd=function(){n.emit("aftersublayout",{type:i}),r()},el.isForce(i)&&(o=e.onTick,a=e.animate,s=void 0===a&&("force"===i||"force2"===i),u=function(){null==o||o(),(a||s)&&n.refreshPositions()},e.tick=u),l=this.filterLayoutData(this.data,e),t.init(l),t.updateCfg(e),n.emit("beforesublayout",{type:i}),[4,t.execute()];case 1:return c.sent(),t.isCustomLayout&&e.onLayoutEnd&&e.onLayoutEnd(),[2]}}))}))}))},e.prototype.layout=function(t){var e,n=this,r=this.graph;if(r&&!r.get("destroyed")){this.data=this.setDataFromGraph();var i=this.data,o=i.nodes,a=i.hiddenNodes;if(!o)return!1;var s=r.get("width"),u=r.get("height"),l={};Object.assign(l,{width:s,height:u,center:[s/2,u/2]},this.layoutCfg),this.layoutCfg=l;var c=l.type,h=!1;null===(e=this.layoutMethods)||void 0===e||e.forEach((function(t){var e;return h=!!(null===(e=t.nodes)||void 0===e?void 0:e.length)||h}));var d=this.destoryLayoutMethods();r.emit("beforelayout");var f=Promise.resolve();h&&c&&1===(null==d?void 0:d.length)&&d[0]===c?this.tweakInit():f=this.initPositions(l.center,o),this.initPositions(l.center,a).then(),this.isGPU=Of(l,c);var p=l.onLayoutEnd,m=l.layoutEndFormatted,g=l.adjust;if(m||(l.layoutEndFormatted=!0,l.onAllLayoutEnd=function(){return(0,b.__awaiter)(n,void 0,void 0,(function(){return(0,b.__generator)(this,(function(t){switch(t.label){case 0:return p&&p(o),this.refreshLayout(),g&&l.pipes?[4,this.adjustPipesBox(this.data,g)]:[3,2];case 1:t.sent(),this.refreshLayout(),t.label=2;case 2:return r.emit("afterlayout"),[2]}}))}))}),this.stopWorker(),l.workerEnabled&&this.layoutWithWorker(this.data,t))return!0;var v=!1;return l.type?(v=!0,f=f.then((function(){return(0,b.__awaiter)(n,void 0,void 0,(function(){return(0,b.__generator)(this,(function(t){switch(t.label){case 0:return[4,this.execLayoutMethod(l,0)];case 1:return[2,t.sent()]}}))}))}))):l.pipes&&(v=!0,l.pipes.forEach((function(t,e){f=f.then((function(){return(0,b.__awaiter)(n,void 0,void 0,(function(){return(0,b.__generator)(this,(function(n){switch(n.label){case 0:return[4,this.execLayoutMethod(t,e)];case 1:return[2,n.sent()]}}))}))}))}))),v?f.then((function(){l.onAllLayoutEnd&&l.onAllLayoutEnd(),t&&t()})).catch((function(t){console.warn("graph layout failed,",t)})):(r.refreshPositions(),null==t||t()),!1}},e.prototype.tweakInit=function(){var t=this.data,e=this.graph,n=t.nodes,r=t.edges;if(null==n?void 0:n.length){var i={};n.forEach((function(t){var e=t.x,n=t.y;isNaN(e)||isNaN(n)||(i[t.id]={x:e,y:n},t.mass=t.mass||2)})),r.forEach((function(t){var e=t.source,n=t.target,r=i[e],o=i[n];!r&&o?i[e]={x:o.x+80*(Math.random()-.5),y:o.y+80*(Math.random()-.5)}:!o&&r&&(i[n]={x:r.x+80*(Math.random()-.5),y:r.y+80*(Math.random()-.5)})}));var o=e.get("width"),a=e.get("height");n.forEach((function(t){var e=i[t.id]||{x:o/2+20*(Math.random()-.5),y:a/2+20*(Math.random()-.5)};t.x=e.x,t.y=e.y}))}},e.prototype.initWithPreset=function(t,e){var n=this;return new Promise((function(r,i){return(0,b.__awaiter)(n,void 0,void 0,(function(){var n,i,o,a,s,u,l;return(0,b.__generator)(this,(function(c){switch(c.label){case 0:return i=(n=this).layoutCfg,o=n.data,(null==(a=i.preset)?void 0:a.type)&&Zd.Layouts[null==a?void 0:a.type]?(s=Of(a,a.type),u=s?"".concat(a.type,"-gpu"):a.type,l=new Zd.Layouts[u](a),delete i.preset,l.init(o),[4,l.execute()]):(null==e||e(),r(),[2,!1]);case 1:return c.sent(),null==t||t(),r(),[2,!0]}}))}))}))},e.prototype.layoutWithWorker=function(t,e){var n=this,r=this.layoutCfg,i=this.graph,o=this.getWorker(),a=this.workerData;if(!o)return!1;a.requestId=null,a.requestId2=null,a.currentTick=null,a.currentTickData=null,i.emit("beforelayout");var s=Promise.resolve(),u=!1;if(r.type)u=!0,s=s.then((function(){return n.runWebworker(o,t,r)}));else if(r.pipes){u=!0;for(var l=function(e){s=s.then((function(){return n.runWebworker(o,t,e)}))},c=0,h=r.pipes;c
    '),u=n?n.backgroundColor:void 0,l=n?n.padding:void 0;l?(0,x.isNumber)(l)&&(l=[l,l,l,l]):l=[0,0,0,0];var c=i+l[0]+l[2],h=o+l[1]+l[3],d={container:s,height:c,width:h,quickHit:!0},f="svg"===a?new Rh(d):new Ic(d),p=this.get("group").clone(),m=(0,x.clone)(p.getMatrix());m||(m=[1,0,0,0,1,0,0,0,1]);var g=(r.maxX+r.minX)/2,v=(r.maxY+r.minY)/2;m=Lf(m,[["t",-g,-v],["t",o/2+l[3],i/2+l[0]]]),p.resetMatrix(),p.setMatrix(m),f.add(p);var y=f.get("el"),b="";e||(e="image/png"),setTimeout((function(){if("svg"===a){var n=y.cloneNode(!0),r=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),i=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",r);i.replaceChild(n,i.documentElement);var o=(new XMLSerializer).serializeToString(i);b="data:image/svg+xml;charset=utf8,".concat(encodeURIComponent(o))}else{var s=void 0,l=y.getContext("2d"),d=void 0;if(u){var f="undefined"!=typeof window?window.devicePixelRatio:1;try{s=l.getImageData(0,0,h*f,c*f),d=l.globalCompositeOperation,l.globalCompositeOperation="destination-over",l.fillStyle=u,l.fillRect(0,0,h,c)}catch(t){console.error("Download image failed. Out of memory at ImageData creation")}}b=y.toDataURL(e),u&&(l.clearRect(0,0,h,c),l.putImageData(s,0,0),l.globalCompositeOperation=d)}t&&t(b)}),16)},e.prototype.downloadFullImage=function(t,e,n){var r=this,i=this.get("group").getCanvasBBox(),o=i.height,a=i.width,s=this.get("renderer"),u=Uh('
    '),l=document.querySelector(".g6-graph-watermarker"),c=n?n.backgroundColor:void 0,h=n?n.padding:void 0;h?(0,x.isNumber)(h)&&(h=[h,h,h,h]):h=[0,0,0,0];var d=o+h[0]+h[2],f=a+h[1]+h[3];if(l){var p=this.get("graphWaterMarker").cfg||{},m=p.width,g=p.height;d=Math.ceil(d/g)*g,f=Math.ceil(f/m)*m}var v,y,b={container:u,height:d,width:f},w="svg"===s?new Rh(b):new Ic(b),_=this.get("group"),S=(y=(v=_).clone(),Wd(v,y),y),E=(0,x.clone)(S.getMatrix());E||(E=[1,0,0,0,1,0,0,0,1]);var A=(i.maxX+i.minX)/2,M=(i.maxY+i.minY)/2;E=Lf(E,[["t",-A,-M],["t",a/2+h[3],o/2+h[0]]]),S.resetMatrix(),S.setMatrix(E),w.add(S);var C=w.get("el");e||(e="image/png"),this.asyncToDataUrl(e,c,(function(n){var i=document.createElement("a"),o=(t||"graph")+("svg"===s?".svg":".".concat(e.split("/")[1]));r.dataURLToImage(n,s,i,o);var a=document.createEvent("MouseEvents");a.initEvent("click",!1,!1),i.dispatchEvent(a)}),f,d,C)},e.prototype.downloadImage=function(t,e,n){var r=this,i=this;i.stopAnimate();var o=i.get("canvas").getRenderer();e||(e="image/png");var a=(t||"graph")+("svg"===o?".svg":".".concat(e.split("/")[1])),s=document.createElement("a");i.asyncToDataUrl(e,n,(function(t){r.dataURLToImage(t,o,s,a);var e=document.createEvent("MouseEvents");e.initEvent("click",!1,!1),s.dispatchEvent(e)}))},e.prototype.dataURLToImage=function(t,e,n,r){if(t&&"data:"!==t){if("undefined"!=typeof window)if(window.Blob&&window.URL&&"svg"!==e){var i=t.split(","),o="";if(i&&i.length>0){var a=i[0].match(/:(.*?);/);a&&a.length>=2&&(o=a[1])}for(var s=atob(i[1]),u=s.length,l=new Uint8Array(u);u--;)l[u]=s.charCodeAt(u);var c=new Blob([l],{type:o});window.navigator.msSaveBlob?window.navigator.msSaveBlob(c,r):n.addEventListener("click",(function(){n.download=r,n.href=window.URL.createObjectURL(c)}))}else n.addEventListener("click",(function(){n.download=r,n.href=t}))}else console.error("Download image failed. The graph is too large or there is invalid attribute values in graph items")},e.prototype.addPlugin=function(t){t.destroyed||(this.get("plugins").push(t),t.initPlugin(this))},e.prototype.removePlugin=function(t){var e=this.get("plugins"),n=e.indexOf(t);n>=0&&(t.destroyPlugin(),e.splice(n,1))},e.prototype.setImageWaterMarker=function(t,e){void 0===t&&(t=Gd.waterMarkerImage);var n=this.get("container");(0,x.isString)(n)&&(n=document.getElementById(n)),n.style.position||(n.style.position="relative");var r=this.get("graphWaterMarker"),i=(0,x.deepMix)({},Gd.imageWaterMarkerConfig,e),o=i.width,a=i.height,s=i.compatible,u=i.image;if(!t){var l=s?n:document.querySelector(".g6-graph-watermarker");return l&&(l.style.cssText=void 0),void(r&&r.clear())}if(r)r.clear();else{var c={container:n,width:o,height:a,capture:!1},h=this.get("pixelRatio");h&&(c.pixelRatio=h,window.devicePixelRatio=h),r=new Ic(c),this.set("graphWaterMarker",r)}r.get("el").style.display="none";var d=r.get("context"),f=u.rotate,p=u.x,m=u.y;d.rotate(-f*Math.PI/180);var g=new Image;g.crossOrigin="anonymous",g.src=t,g.onload=function(){if(d.drawImage(g,p,m,u.width,u.height),d.rotate(f*Math.PI/180),s)n.style.cssText="background-image: url(".concat(r.get("el").toDataURL("image/png"),");background-repeat:repeat;");else{var t=document.querySelector(".g6-graph-watermarker");t||((t=document.createElement("div")).className="g6-graph-watermarker"),t.className="g6-graph-watermarker",r.destroyed||(t.style.cssText="background-image: url(".concat(r.get("el").toDataURL("image/png"),");background-repeat:repeat;position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;z-index:-1;"),n.appendChild(t))}}},e.prototype.setTextWaterMarker=function(t,e){var n=this.get("container");(0,x.isString)(n)&&(n=document.getElementById(n)),n.style.position||(n.style.position="relative");var r=this.get("graphWaterMarker"),i=(0,x.deepMix)({},Gd.textWaterMarkerConfig,e),o=i.width,a=i.height,s=i.compatible,u=i.text;if(!(null==t?void 0:t.length)){var l=s?n:document.querySelector(".g6-graph-watermarker");return l&&(l.style.cssText=void 0),void(r&&r.clear())}if(r)r.clear();else{var c={container:n,width:o,height:a,capture:!1},h=this.get("pixelRatio");h&&(c.pixelRatio=h,window.devicePixelRatio=h),r=new Ic(c),this.set("graphWaterMarker",r)}r.get("el").style.display="none";var d=r.get("context"),f=u.rotate,p=u.fill,m=u.fontFamily,g=u.fontSize,v=u.baseline,y=u.x,b=u.y,w=u.lineHeight;d.rotate(-f*Math.PI/180),d.font="".concat(g,"px ").concat(m),d.fillStyle=p,d.textBaseline=v;for(var _=(0,x.isString)(t)?[t]:t,S=_.length-1;S>=0;S--)d.fillText(_[S],y,b+S*w);if(d.rotate(f*Math.PI/180),s)n.style.cssText="background-image: url(".concat(r.get("el").toDataURL("image/png"),");background-repeat:repeat;");else{var E=document.querySelector(".g6-graph-watermarker");E||((E=document.createElement("div")).className="g6-graph-watermarker"),E.style.cssText="background-image: url(".concat(r.get("el").toDataURL("image/png"),");background-repeat:repeat;position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;z-index:99;"),n.appendChild(E)}},e.prototype.destroy=function(){var e,n,r,i;(0,x.each)(this.get("plugins"),(function(t){t.destroyPlugin()}));var o=this.get("tooltips");if(o)for(var a=0;a0)for(var l=u.length-1;l>=0;l--){var c=u[l].getModel();-1===e.indexOfChild(t.children||[],c.id)&&(i.innerRemoveChild(c.id,{x:t.x,y:t.y},r),u.splice(l,1))}o.get("originAttrs")&&(a=o.get("originAttrs").x,s=o.get("originAttrs").y);var h=o.getModel();r&&o.set("originAttrs",{x:h.x,y:h.y}),o.set("model",Object.assign(h,t.data)),a===t.x&&s===t.y||o.updatePosition({x:t.x,y:t.y})}else i.innerAddChild(t,n,r)},e.prototype.innerRemoveChild=function(t,e,n){var r=this,i=r.findById(t);if(i)if((0,x.each)(i.get("children"),(function(t){r.innerRemoveChild(t.getModel().id,e,n)})),n){var o=i.getModel();i.set("to",e),i.set("originAttrs",{x:o.x,y:o.y}),r.get("removeList").push(i)}else r.removeItem(i,!1)},e.prototype.changeData=function(t,e){void 0===e&&(e=!0);var n=this;this.getNodes().map((function(t){return n.clearItemStates(t)})),this.getEdges().map((function(t){return n.clearItemStates(t)})),e&&this.get("enabledStack")&&this.pushStack("changedata",{before:n.get("originData"),after:t||n.get("data")}),t?(n.data(t),n.render(!1)):n.layout(this.get("fitView"))},e.prototype.changeLayout=function(t){console.warn("Please call updateLayout instead of changeLayout. changeLayout will be discarded soon");this.updateLayout(t)},e.prototype.updateLayout=function(t,e,n,r){void 0===r&&(r=!0);var i=this;if(t){if(r&&this.get("enabledStack")&&this.pushStack("layout",{before:i.get("layout"),after:t}),i.set("layout",t),i.set("layoutMethod",i.getLayout()),i.layout(),e){var o=n;o||(o="begin"===e?{x:0,y:0}:{x:this.getWidth()/2,y:this.getHeight()/2}),o=this.getPointByCanvas(o.x,o.y);var a=this.getGroup().getMatrix()||[1,0,0,0,1,0,0,0,1];o.x=o.x*a[0]+a[6],o.y=o.y*a[0]+a[7];var s=this.getGroup().getCanvasBBox(),u=s.minX,l=s.maxX,c=s.minY,h={x:(u+l)/2,y:(c+s.maxY)/2};"begin"===e&&(h.x=u,h.y=c),this.translate(o.x-h.x,o.y-h.y)}}else console.warn("layout cannot be null")},e.prototype.refreshLayout=function(t){console.warn("Please call layout instead of refreshLayout. refreshLayout will be discarded soon");this.layout(t)},e.prototype.layout=function(t){var e=this,n=this,r=n.get("data"),i=n.get("layoutMethod"),o=n.get("layout"),a=r;if(null==o?void 0:o.excludeInvisibles){r=(0,x.clone)(n.get("data"));var s={};jf(r,(function(t){var n=t.children;if(!(null==n?void 0:n.length))return!0;for(var r=n.length-1;r>=0;r--){var i=e.findById(n[r].id);(i?!i.isVisible():!1===n[r].visible)&&(s[t.id]=s[t.id]||[],s[t.id].push({idx:r,child:n.splice(r,1)[0]}))}})),a=i?i(r,n.get("layout")):r,jf(a,(function(t){var e=s[t.id];if(null==e?void 0:e.length)for(var n=e.length-1;n>=0;n--){var r=e[n],i=r.idx,o=r.child;t.children.splice(i,0,o)}}))}else a=i?i(r,n.get("layout")):r;var u=n.get("animate");(n.emit("beforerefreshlayout",{data:r,layoutData:a}),n.emit("beforelayout"),n.innerUpdateChild(a,void 0,u),t)&&n.get("viewController").fitView();u?n.layoutAnimate(a):(n.refresh(),n.paint()),n.emit("afterrefreshlayout",{data:r,layoutData:a}),n.emit("afterlayout")},e.prototype.addChild=function(t,e,n){void 0===n&&(n=!0);var r=this;r.emit("beforeaddchild",{model:t,parent:e}),(0,x.isString)(e)||(e=e.get("id"));var i=r.findDataById(e);i&&(i.children||(i.children=[]),i.children.push(t),r.findById(e).refresh(),r.changeData(void 0,n))},e.prototype.updateChildren=function(t,e,n){void 0===n&&(n=!0);var r=this,i=r.findById(e);e&&i?(r.findDataById(e).children=t,i.refresh(),r.changeData(void 0,n)):console.warn("Update children failed! There is no node with id '".concat(e,"'"))},e.prototype.updateChild=function(t,n,r){void 0===r&&(r=!0);var i=this;if(n&&i.findById(n)){var o=i.findDataById(n),a=i.findById(t.id);if(o.children||(o.children=[]),a){var s=e.indexOfChild(o.children,t.id);s>-1&&(o.children[s]=t)}else o.children.push(t);var u=i.findById(n);null==u||u.refresh(),i.changeData(void 0,r)}else i.changeData(t,r)},e.prototype.removeChild=function(t,n){void 0===n&&(n=!0);var r,i=this,o=i.findById(t);if((r=o?null==o?void 0:o.get("parent"):i.getNodes().find((function(e){return!!(e.getModel().children||[]).find((function(e){return e.id===t}))})))&&!r.destroyed){var a=r.get("id"),s=i.findDataById(a),u=s&&s.children||[],l=e.indexOfChild(u,t);u.splice(l,1),r.refresh()}i.changeData(void 0,n)},e.prototype.findDataById=function(t,e){var n=this;if(e||(e=n.get("data")),t===e.id)return e;var r=null;return(0,x.each)(e.children||[],(function(e){return e.id===t?(r=e,!1):!(r=n.findDataById(t,e))&&void 0})),r},e.prototype.layoutAnimate=function(t,e){var n=this,r=this.get("animateCfg");n.emit("beforeanimate",{data:t}),n.getEdges().forEach((function(t){var e=t.get("model");e.sourceAnchor||(e.sourceAnchor=t.get("sourceAnchorIndex"))})),this.get("canvas").animate((function(r){jf(t,(function(i){var o=n.findById(i.id);if(o){var a=o.get("originAttrs"),s=o.get("model");if(a||(a={x:s.x,y:s.y},o.set("originAttrs",a)),e){var u=e(o,r,a,t);o.set("model",Object.assign(s,u))}else s.x=a.x+(i.x-a.x)*r,s.y=a.y+(i.y-a.y)*r}return!0})),(0,x.each)(n.get("removeList"),(function(t){var e=t.getModel(),n=t.get("originAttrs"),i=t.get("to");e.x=n.x+(i.x-n.x)*r,e.y=n.y+(i.y-n.y)*r})),n.refreshPositions()}),{duration:r.duration,easing:r.ease,callback:function(){(0,x.each)(n.getNodes(),(function(t){t.set("originAttrs",null)})),(0,x.each)(n.get("removeList"),(function(t){n.removeItem(t,!1)})),n.set("removeList",[]),r.callback&&r.callback(),n.emit("afteranimate",{data:t})},delay:r.delay})},e.prototype.stopLayoutAnimate=function(){this.get("canvas").stopAnimate(),this.emit("layoutanimateend",{data:this.get("data")}),this.layoutAnimating=!1},e.prototype.isLayoutAnimating=function(){return this.layoutAnimating},e.prototype.render=function(t){void 0===t&&(t=!0);var e=this,n=e.get("data");if(!n||!(0,x.isObject)(n)||!Object.keys(n).length)throw new Error("data must be defined first");e.clear(),t&&this.get("enabledStack")&&this.clearStack(),e.emit("beforerender"),e.layout(this.get("fitView")),e.emit("afterrender")},e.prototype.save=function(){return this.get("data")},e.prototype.data=function(e){t.prototype.data.call(this,e),this.set("originData",Bf(e))},e}(Df);const Hf=Vf;function Gf(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}var Wf=function(){function t(t){this._cfgs=(0,x.deepMix)(this.getDefaultCfgs(),t),this._events={},this.destroyed=!1}return t.prototype.getDefaultCfgs=function(){return{}},t.prototype.initPlugin=function(t){var e=this;e.set("graph",t);var n=e.getEvents(),r={};(0,x.each)(n,(function(n,i){var o=(0,x.wrapBehavior)(e,n);r[i]=o,t.on(i,o)})),this._events=r,this.init()},t.prototype.getEvents=function(){return{}},t.prototype.get=function(t){var e;return null===(e=this._cfgs)||void 0===e?void 0:e[t]},t.prototype.set=function(t,e){this._cfgs[t]=e},t.prototype.destroy=function(){},t.prototype.destroyPlugin=function(){this.destroy();var t=this.get("graph"),e=this._events;(0,x.each)(e,(function(e,n){t.off(n,e)})),this._events=null,this._cfgs=null,this.destroyed=!0},t}();const Xf=Wf;var Yf,qf=(Yf=function(t,e){return Yf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},Yf(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Yf(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),$f="url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImdyaWQiIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTSAwIDEwIEwgNDAgMTAgTSAxMCAwIEwgMTAgNDAgTSAwIDIwIEwgNDAgMjAgTSAyMCAwIEwgMjAgNDAgTSAwIDMwIEwgNDAgMzAgTSAzMCAwIEwgMzAgNDAiIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2UwZTBlMCIgb3BhY2l0eT0iMC4yIiBzdHJva2Utd2lkdGg9IjEiLz48cGF0aCBkPSJNIDQwIDAgTCAwIDAgMCA0MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZTBlMGUwIiBzdHJva2Utd2lkdGg9IjEiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JpZCkiLz48L3N2Zz4=)",Kf=function(t){function e(e){return t.call(this,e)||this}return qf(e,t),e.prototype.getDefaultCfgs=function(){return{img:$f,follow:!0}},e.prototype.init=function(){var t=this.get("graph"),e=t.get("container"),n=t.get("canvas").get("el"),r=this.get("img")||$f;r.includes("url(")||(r='url("'.concat(r,'")'));var i=Uh("
    "),o=Uh(""));this.set("container",i),this.set("gridContainer",o),this.positionInit(),i.appendChild(o),e.insertBefore(i,n)},e.prototype.positionInit=function(){var t=this.get("graph"),e=t.get("minZoom"),n=t.get("width"),r=t.get("height");Gf(this.get("container"),{width:"".concat(n,"px"),height:"".concat(r,"px")});var i=80*n/e,o=80*r/e;Gf(this.get("gridContainer"),{width:"".concat(i,"px"),height:"".concat(o,"px"),left:"-".concat(i/2,"px"),top:"-".concat(o/2,"px")})},e.prototype.getEvents=function(){return{viewportchange:"updateGrid"}},e.prototype.updateGrid=function(t){var e=this.get("gridContainer"),n=t.matrix;n||(n=[1,0,0,0,1,0,0,0,1]);var r=this.get("follow");Gf(e,{transform:"matrix(".concat(n[0],", ").concat(n[1],", ").concat(n[3],", ").concat(n[4],", ").concat(r?n[6]:"0",", ").concat(r?n[7]:"0",")")})},e.prototype.getContainer=function(){return this.get("container")},e.prototype.destroy=function(){var t=this.get("graph").get("container"),e=this.get("container");t.removeChild(e)},e}(Xf);const Zf=Kf;var Qf=n(79238),Jf=n.n(Qf),tp=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();"undefined"!=typeof document&&Jf()("\n .g6-component-contextmenu {\n border: 1px solid #e2e2e2;\n border-radius: 4px;\n font-size: 12px;\n color: #545454;\n background-color: rgba(255, 255, 255, 0.9);\n padding: 10px 8px;\n box-shadow: rgb(174, 174, 174) 0px 0px 10px;\n }\n .g6-contextmenu-ul {\n padding: 0;\n margin: 0;\n list-style: none;\n }\n\n");var ep=function(t){function e(e){return t.call(this,e)||this}return tp(e,t),e.prototype.getDefaultCfgs=function(){return{offsetX:6,offsetY:6,handleMenuClick:void 0,getContent:function(t){return"\n
      \n
    • 菜单项1
    • \n
    • 菜单项2
    • \n
    \n "},shouldBegin:function(t){return!0},onHide:function(){return!0},itemTypes:["node","edge","combo"],trigger:"contextmenu"}},e.prototype.getEvents=function(){return"click"===this.get("trigger")?{click:"onMenuShow",touchend:"onMenuShow"}:{contextmenu:"onMenuShow"}},e.prototype.init=function(){var t=this.get("className"),e=Uh("
    "));Gf(e,{top:"0px",position:"absolute",visibility:"hidden"});var n=this.get("container");n||(n=this.get("graph").get("container")),(0,x.isString)(n)&&(n=document.getElementById(n)),n.appendChild(e),this.set("menu",e)},e.prototype.onMenuShow=function(t){var e=this;t.preventDefault();var n=this.get("itemTypes");if(t.item){if(t.item&&t.item.getType&&-1===n.indexOf(t.item.getType()))return void e.onMenuHide()}else if(-1===n.indexOf("canvas"))return void e.onMenuHide();if(this.get("shouldBegin")(t)){var r=this.get("menu"),i=this.get("getContent"),o=this.get("graph"),a=i(t,o);(0,x.isString)(a)?r.innerHTML=a:r.innerHTML=a.outerHTML,this.removeMenuEventListener();var s=this.get("handleMenuClick");if(s){var u=function(e){s(e.target,t.item,o)};this.set("handleMenuClickWrapper",u),r.addEventListener("click",u)}var l=o.get("width"),c=o.get("height"),h=r.getBoundingClientRect(),d=this.get("offsetX")||0,f=this.get("offsetY")||0,p=o.getContainer().offsetTop,m=o.getContainer().offsetLeft,g=t.canvasX+m+d,v=t.canvasY+p+f;g+h.width>l&&(g=t.canvasX-h.width-d+m),v+h.height>c&&(v=t.canvasY-h.height-f+p),v<0&&(v=0),Gf(r,{top:"".concat(v,"px"),left:"".concat(g,"px"),visibility:"visible"});var y="click"===this.get("trigger"),b=function(t){y?y=!1:e.onMenuHide()};document.body.addEventListener("click",b),this.set("handler",b)}},e.prototype.removeMenuEventListener=function(){var t=this.get("handleMenuClickWrapper"),e=this.get("handler");t&&(this.get("menu").removeEventListener("click",t),this.set("handleMenuClickWrapper",null));e&&document.body.removeEventListener("click",e)},e.prototype.onMenuHide=function(){var t=this.get("menu");t&&Gf(t,{visibility:"hidden"}),this.removeMenuEventListener()},e.prototype.destroy=function(){var t=this.get("menu");if(this.removeMenuEventListener(),t){var e=this.get("container");e||(e=this.get("graph").get("container")),(0,x.isString)(e)&&(e=document.getElementById(e)),e.removeChild(t)}},e}(Xf);const np=ep;var rp=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ip=function(){return ip=Object.assign||function(t){for(var e,n=1,r=arguments.length;n-1,a=navigator.userAgent.toLowerCase().indexOf("safari")>-1,s=Uh("\n ")),u=0,l=0,c=!1,h=0,d=0,f=0,p=0,m=0,g=0,v=a||o?"mousedown":"dragstart";s.addEventListener(v,(function(i){var o,a;if(i.dataTransfer){var v=new Image;v.src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' %3E%3Cpath /%3E%3C/svg%3E",null===(a=(o=i.dataTransfer).setDragImage)||void 0===a||a.call(o,v,0,0);try{i.dataTransfer.setData("text/html","view-port-minimap")}catch(t){i.dataTransfer.setData("text","view-port-minimap")}}if(e.refresh=!1,i.target===s){var y=s.style;h=parseInt(y.left,10),d=parseInt(y.top,10),f=parseInt(y.width,10),p=parseInt(y.height,10),f>n[0]||p>n[1]||(g=r.getZoom(),m=t.get("ratio"),c=!0,u=i.clientX,l=i.clientY)}}),!1);var y=function(t){if(c&&!(0,x.isNil)(t.clientX)&&!(0,x.isNil)(t.clientY)){var e=u-t.clientX,i=l-t.clientY;(h-e<0||h-e+f>=n[0])&&(e=0),(d-i<0||d-i+p>=n[1])&&(i=0),d-=i,Gf(s,{left:"".concat(h-=e,"px"),top:"".concat(d,"px")}),r.translate(e*g/m,i*g/m),u=t.clientX,l=t.clientY}};a||o||s.addEventListener("drag",y,!1);var b=function(){c=!1,e.refresh=!0},w=a||o?"mouseup":"dragend";s.addEventListener(w,b,!1),i.addEventListener("mouseleave",b),i.addEventListener("mouseup",b),(a||o)&&i.addEventListener("mousemove",y,!1),this.set("viewport",s),i.appendChild(s)}},e.prototype.updateViewport=function(){if(!this.destroyed){var t=this.get("ratio"),e=this.get("totaldx"),n=this.get("totaldy"),r=this.get("graph"),i=this.get("size"),o=r.get("canvas").get("el"),a=r.get("width")||o.scrollWidth||500,s=r.get("height")||o.scrollHeight||500,u=r.getPointByCanvas(0,0),l=r.getPointByCanvas(a,s),c=this.get("viewport");c||this.initViewport();var h=(l.x-u.x)*t,d=(l.y-u.y)*t,f=u.x*t+e,p=u.y*t+n,m=f+h,g=p+d;f<0&&(h+=f,f=0),m>i[0]&&(h-=m-i[0]),p<0&&(d+=p,p=0),g>i[1]&&(d-=g-i[1]),this.set("ratio",t),Gf(c,{left:"".concat(f,"px"),top:"".concat(p,"px"),width:"".concat(h,"px"),height:"".concat(d,"px")})}},e.prototype.updateGraphShapes=function(){var t,e=this._cfgs.graph,n=this.get("canvas"),r=e.get("group");r.destroyed||(n.clear(),this.get("hideEdge")?(t=n.addGroup(),r.get("children").forEach((function(e){e.get("id").includes("-edge")||t.add(e.clone())}))):((t=r.clone()).resetMatrix(),n.add(t)),"svg"===e.get("renderer")&&this.updateVisible(t))},e.prototype.updateVisible=function(t){var e=this;if(t.isGroup()||t.get("visible")){var n=t.get("children");if(!n||!n.length)return;n.forEach((function(t){t.get("visible")||t.hide(),e.updateVisible(t)}))}else t.hide()},e.prototype.updateKeyShapes=function(){var t=this,e=this._cfgs.graph,n=this.get("canvas"),r=n.get("children")[0]||n.addGroup();this.get("hideEdge")||(0,x.each)(e.getEdges(),(function(e){t.updateOneEdgeKeyShape(e,r)})),(0,x.each)(e.getNodes(),(function(e){t.updateOneNodeKeyShape(e,r)}));var i=e.getCombos();if(i&&i.length){var o=r.find((function(t){return"comboGroup"===t.get("name")}))||r.addGroup({name:"comboGroup"});setTimeout((function(){t.destroyed||((0,x.each)(i,(function(e){t.updateOneComboKeyShape(e,o)})),null==o||o.sort(),null==o||o.toBack(),t.updateCanvas())}),250)}this.clearDestroyedShapes()},e.prototype.updateOneComboKeyShape=function(t,e){if(!this.destroyed){var n=this.get("itemMap")||{},r=n[t.get("id")],i=t.getBBox(),o=t.get("keyShape").clone(),a=o.attr(),s={x:i.centerX,y:i.centerY};r?s=Object.assign(a,s):(r=o,e.add(r));var u=r.get("type");"rect"!==u&&"image"!==u||(s.x=i.minX,s.y=i.minY),r.attr(s),t.isVisible()?r.show():r.hide(),r.exist=!0;var l=t.getModel().depth;isNaN(l)||r.set("zIndex",l),n[t.get("id")]=r,this.set("itemMap",n)}},e.prototype.updateOneNodeKeyShape=function(t,e){var n=this.get("itemMap")||{},r=n[t.get("id")],i=t.getBBox(),o=t.get("keyShape").clone(),a=o.attr(),s={x:i.centerX,y:i.centerY};r?(s=Object.assign(a,s),r.toFront()):(r=o,e.add(r));var u=r.get("type");"rect"!==u&&"image"!==u||(s.x=i.minX,s.y=i.minY),r.attr(s),t.isVisible()?r.show():r.hide(),r.exist=!0;var l=t.getModel().depth;isNaN(l)||r.set("zIndex",l),n[t.get("id")]=r,this.set("itemMap",n)},e.prototype.updateDelegateShapes=function(){var t=this,e=this._cfgs.graph,n=this.get("canvas"),r=n.get("children")[0]||n.addGroup();this.get("hideEdge")||(0,x.each)(e.getEdges(),(function(e){t.updateOneEdgeKeyShape(e,r)})),(0,x.each)(e.getNodes(),(function(e){t.updateOneNodeDelegateShape(e,r)}));var i=e.getCombos();if(i&&i.length){var o=r.find((function(t){return"comboGroup"===t.get("name")}))||r.addGroup({name:"comboGroup"});setTimeout((function(){t.destroyed||((0,x.each)(i,(function(e){t.updateOneComboKeyShape(e,o)})),null==o||o.sort(),null==o||o.toBack(),t.updateCanvas())}),250)}this.clearDestroyedShapes()},e.prototype.clearDestroyedShapes=function(){var t=this.get("itemMap")||{},e=Object.keys(t);if(e&&0!==e.length)for(var n=e.length-1;n>=0;n--){var r=t[e[n]],i=r.exist;r.exist=!1,i||(r.remove(),delete t[e[n]])}},e.prototype.updateOneEdgeKeyShape=function(t,e){var n=this.get("itemMap")||{},r=n[t.get("id")];if(r){var i=t.get("keyShape").attr("path");r.attr("path",i)}else r=t.get("keyShape").clone(),e.add(r);t.isVisible()?r.show():r.hide(),r.exist=!0,n[t.get("id")]=r,this.set("itemMap",n)},e.prototype.updateOneNodeDelegateShape=function(t,e){var n=this.get("delegateStyle"),r=this.get("itemMap")||{},i=r[t.get("id")],o=t.getBBox();if(i){var a={x:o.minX,y:o.minY,width:o.width,height:o.height};i.attr(a),i.toFront()}else i=e.addShape("rect",{attrs:ip({x:o.minX,y:o.minY,width:o.width,height:o.height},n),name:"minimap-node-shape"});t.isVisible()?i.show():i.hide(),i.exist=!0,r[t.get("id")]=i,this.set("itemMap",r)},e.prototype.init=function(){this.initContainer(),this.get("graph").on("afterupdateitem",this.handleUpdateCanvas),this.get("graph").on("afteritemstatechange",this.handleUpdateCanvas),this.get("graph").on("afteradditem",this.handleUpdateCanvas),this.get("graph").on("afterremoveitem",this.handleUpdateCanvas),this.get("graph").on("afterrender",this.handleUpdateCanvas),this.get("graph").on("afterlayout",this.handleUpdateCanvas)},e.prototype.initContainer=function(){var t=this,e=t.get("graph"),n=t.get("size"),r=t.get("className"),i=t.get("container"),o=Uh("
    "));(0,x.isString)(i)&&(i=document.getElementById(i)),i?i.appendChild(o):e.get("container").appendChild(o),t.set("container",o);var a,s=Uh('
    ');o.appendChild(s),s.addEventListener("dragenter",(function(t){t.preventDefault()})),s.addEventListener("dragover",(function(t){t.preventDefault()})),a="svg"===e.get("renderer")?new Rh({container:s,width:n[0],height:n[1]}):new Ic({container:s,width:n[0],height:n[1]}),t.set("canvas",a),t.updateCanvas()},e.prototype.updateCanvas=function(){if(!this.destroyed&&this.get("refresh")){var t=this.get("graph");if(!t.get("destroyed")){this.get("viewportChange")&&(this.set("viewportChange",!1),this.updateViewport());var e=this.get("size"),n=this.get("canvas"),r=this.get("type"),i=this.get("padding");if(!n.destroyed){switch(r){case"default":this.updateGraphShapes();break;case"keyShape":this.updateKeyShapes();break;case"delegate":this.updateDelegateShapes()}var o=n.get("children")[0];if(o){o.resetMatrix();var a=o.getCanvasBBox(),s=t.get("canvas").getCanvasBBox(),u=t.getZoom()||1,l=s.width/u,c=s.height/u;Number.isFinite(a.width)&&(l=op(a.width,l),c=op(a.height,c)),l+=2*i,c+=2*i;var h=Math.min(e[0]/l,e[1]/c),d=[1,0,0,0,1,0,0,0,1],f=0,p=0;Number.isFinite(a.minX)&&(f=-a.minX),Number.isFinite(a.minY)&&(p=-a.minY);var m=(e[0]-(l-2*i)*h)/2,g=(e[1]-(c-2*i)*h)/2;d=ap(d,[["t",f,p],["s",h,h],["t",m,g]]),o.setMatrix(d),this.set("ratio",h),this.set("totaldx",m+f*h),this.set("totaldy",g+p*h),this.set("dx",m),this.set("dy",g),this.updateViewport()}}}}},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.getViewport=function(){return this.get("viewport")},e.prototype.getContainer=function(){return this.get("container")},e.prototype.destroy=function(){var t;null===(t=this.get("canvas"))||void 0===t||t.destroy();var e=this.get("container");(null==e?void 0:e.parentNode)&&e.parentNode.removeChild(e)},e}(Xf);const up=sp;var lp=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function cp(t,e,n){var r=t.x-e.x,i=t.y-e.y;return!n||Math.abs(r)>n||Math.abs(i)>n?Math.sqrt(r*r+i*i):n}function hp(t,e){var n=(e.source.y-e.target.y)/(e.source.x-e.target.x),r=(n*n*e.source.x+n*(t.y-e.source.y)+t.x)/(n*n+1);return{x:r,y:n*(r-e.source.x)+e.source.y}}var dp=function(t){function e(e){return t.call(this,e)||this}return lp(e,t),e.prototype.getDefaultCfgs=function(){return{edgeBundles:[],edgePoints:[],K:.1,lambda:.1,divisions:1,divRate:2,cycles:6,iterations:90,iterRate:.6666667,bundleThreshold:.6,eps:1e-6,onLayoutEnd:function(){},onTick:function(){}}},e.prototype.init=function(){var t=this.get("graph"),e=this.get("onTick");this.set("tick",(function(){e&&e(),t.refreshPositions()}))},e.prototype.bundling=function(t){var e=this;if(e.set("data",t),!e.isTicking()){var n=t.edges||[],r=t.nodes||[],i={},o=!1;if(r.forEach((function(t){null!==t.x&&null!==!t.y&&void 0!==t.x&&void 0!==!t.y||(o=!0),i[t.id]=t})),o)throw new Error("please layout the graph or assign x and y for nodes first");e.set("nodeIdMap",i);var a=e.get("divisions"),s=e.get("divRate"),u=e.divideEdges(a);e.set("edgePoints",u);var l=e.getEdgeBundles();e.set("edgeBundles",l);for(var c=e.get("cycles"),h=e.get("iterations"),d=e.get("iterRate"),f=e.get("lambda"),p=0;pc;){var r=c/n,a={x:i[o][e-1].x,y:i[o][e-1].y};a.x+=r*(t.x-i[o][e-1].x),a.y+=r*(t.y-i[o][e-1].y),h.push(a),n-=c,c=l}c-=n}})),h.push({x:u.x,y:u.y}),i[o]=h}})),i},e.prototype.getEdgeLength=function(t){var e=0;return t.forEach((function(n,r){0!==r&&(e+=cp(n,t[r-1]))})),e},e.prototype.getEdgeBundles=function(){var t=this,e=t.get("data").edges||[],n=t.get("bundleThreshold"),r=t.get("nodeIdMap"),i=t.get("edgeBundles");return i||(i=[]),e.forEach((function(t,e){i[e]&&void 0!==i[e]||(i[e]=[])})),e.forEach((function(o,a){var s=r[o.source],u=r[o.target];e.forEach((function(e,o){if(!(o<=a)){var l=r[e.source],c=r[e.target];t.getBundleScore({source:s,target:u},{source:l,target:c})>=n&&(i[a].push(o),i[o].push(a))}}))})),i},e.prototype.getBundleScore=function(t,e){var n=this;return t.vx=t.target.x-t.source.x,t.vy=t.target.y-t.source.y,e.vx=e.target.x-e.source.x,e.vy=e.target.y-e.source.y,t.length=cp({x:t.source.x,y:t.source.y},{x:t.target.x,y:t.target.y}),e.length=cp({x:e.source.x,y:e.source.y},{x:e.target.x,y:e.target.y}),n.getAngleScore(t,e)*n.getScaleScore(t,e)*n.getPositionScore(t,e)*n.getVisibilityScore(t,e)},e.prototype.getAngleScore=function(t,e){var n=function(t,e){return t.x*e.x+t.y*e.y}({x:t.vx,y:t.vy},{x:e.vx,y:e.vy});return n/(t.length*e.length)},e.prototype.getScaleScore=function(t,e){var n=(t.length+e.length)/2;return 2/(n/Math.min(t.length,e.length)+Math.max(t.length,e.length)/n)},e.prototype.getPositionScore=function(t,e){var n=(t.length+e.length)/2;return n/(n+cp({x:(t.source.x+t.target.x)/2,y:(t.source.y+t.target.y)/2},{x:(e.source.x+e.target.x)/2,y:(e.source.y+e.target.y)/2}))},e.prototype.getVisibilityScore=function(t,e){var n=this.getEdgeVisibility(t,e),r=this.getEdgeVisibility(e,t);return nr||Math.abs(i.y)>r){var a=1/cp(o[n][t],o[e][t]);s.x+=i.x*a,s.y+=i.y*a}})),s},e.prototype.isTicking=function(){return this.get("ticking")},e.prototype.getSimulation=function(){return this.get("forceSimulation")},e.prototype.destroy=function(){this.get("ticking")&&this.getSimulation().stop(),t.prototype.destroy.call(this)},e}(Xf);const fp=dp;var pp=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mp=function(){return mp=Object.assign||function(t){for(var e,n=1,r=arguments.length;n(a||r.get("height"))&&n>1||u<(s||.05*r.get("height"))&&n<1)&&(n=1),u*=n,e.set("r",u),e.set("r2",u*u);var l=e.get("d");e.set("molecularParam",(l+1)*u),e.set("delegateCenterDiff",void 0),e.magnify(t,o)}},e.prototype.scaleRByDrag=function(t){var e=this;if(t){var n,r=e.get("dragPrePos"),i=e.get("graph"),o=i.getPointByClient(t.clientX,t.clientY);n=t.x-r.x<0?.95:1/.95;var a=e.get("maxR"),s=e.get("minR"),u=e.get("r");(u>(a||i.get("height"))&&n>1||u<(s||.05*i.get("height"))&&n<1)&&(n=1),u*=n,e.set("r",u),e.set("r2",u*u);var l=e.get("d");e.set("molecularParam",(l+1)*u),e.magnify(t,o),e.set("dragPrePos",{x:t.x,y:t.y})}},e.prototype.scaleDByWheel=function(t){var e=this;if(t||t.originalEvent){t.preventDefault&&t.preventDefault();var n=0;n=t.originalEvent.wheelDelta<0?-.1:.1;var r=e.get("d")+n,i=e.get("maxD"),o=e.get("minD");if(ro){e.set("d",r);var a=e.get("r");e.set("molecularParam",(r+1)*a);var s=e.get("delegate"),u=s?{x:s.attr("x"),y:s.attr("y")}:void 0;e.set("delegateCenterDiff",void 0),e.magnify(t,u)}}},e.prototype.scaleDByDrag=function(t){var e=this,n=e.get("dragPrePos"),r=t.x-n.x>0?.1:-.1,i=e.get("d")+r,o=e.get("maxD"),a=e.get("minD");if(ia){e.set("d",i);var s=e.get("r");e.set("molecularParam",(i+1)*s),e.magnify(t)}e.set("dragPrePos",{x:t.x,y:t.y})},e.prototype.magnify=function(t,e){var n=this;n.restoreCache();var r=n.get("graph"),i=n.get("cachedMagnifiedModels"),o=n.get("cachedOriginPositions"),a=n.get("showLabel"),s=n.get("r"),u=n.get("r2"),l=n.get("d"),c=n.get("molecularParam"),h=r.getNodes(),d=h.length,f=e?{x:e.x,y:e.y}:{x:t.x,y:t.y};!n.get("dragging")||"mousemove"!==n.get("trigger")&&"click"!==n.get("trigger")||(f=n.get("cacheCenter"));var p=n.get("delegateCenterDiff");p&&(f.x+=p.x,f.y+=p.y),n.updateDelegate(f,s);for(var m=0;m\n
  • \n \n \n \n
  • \n
  • \n \n \n \n
  • \n
  • \n \n \n \n
  • \n
  • \n \n \n \n
  • \n
  • \n \n \n \n
  • \n
  • \n \n \n \n
  • \n \n '},zoomSensitivity:2}},e.prototype.init=function(){var t=this,e=this.get("graph"),n=this.get("getContent")(e),r=n;(0,x.isString)(n)&&(r=Uh(n));var i=this.get("className");r.setAttribute("class",i||"g6-component-toolbar");var o=this.get("container");o||(o=this.get("graph").get("container")),(0,x.isString)(o)&&(o=document.getElementById(o)),o.appendChild(r),this.set("toolBar",r);var a=this.get("handleClick");r.addEventListener("click",(function(n){var r=function(t){if(!t)return[];if(t.composedPath)return t.composedPath();for(var e=[],n=t.target;n;){if(e.push(n),"HTML"===n.tagName)return e.push(document,window),e;n=n.parentElement}return e}(n).filter((function(t){return"LI"===t.nodeName}));if(0!==r.length){var i=r[0].getAttribute("code");i&&(a?a(i,e):t.handleDefaultOperator(i))}}));var s=this.get("position");s&&Gf(r,{top:"".concat(s.y,"px"),left:"".concat(s.x,"px")}),this.bindUndoRedo()},e.prototype.bindUndoRedo=function(){var t=this.get("graph"),e=document.querySelector('.g6-component-toolbar li[code="undo"]'),n=document.querySelector('.g6-component-toolbar li[code="undo"] svg'),r=document.querySelector('.g6-component-toolbar li[code="redo"]'),i=document.querySelector('.g6-component-toolbar li[code="redo"] svg');e&&n&&r&&i&&(e.setAttribute("style","cursor: not-allowed"),n.setAttribute("style","opacity: 0.4"),r.setAttribute("style","cursor: not-allowed"),i.setAttribute("style","opacity: 0.4"),t.on("stackchange",(function(t){var o=t.undoStack,a=t.redoStack,s=o.length,u=a.length;0===s?(e.setAttribute("style","cursor: not-allowed"),n.setAttribute("style","opacity: 0.4")):(e.removeAttribute("style"),n.removeAttribute("style")),0===u?(r.setAttribute("style","cursor: not-allowed"),i.setAttribute("style","opacity: 0.4")):(r.removeAttribute("style"),i.removeAttribute("style"))})))},e.prototype.undo=function(){var t=this.get("graph"),e=t.getUndoStack();if(e&&0!==e.length){var n=e.pop();if(n){var r=n.action;t.pushStack(r,(0,x.clone)(n.data),"redo");var i=n.data.before;if("add"===r&&(i=n.data.after),!i)return;switch(r){case"visible":Object.keys(i).forEach((function(e){var n=i[e];n&&n.forEach((function(e){var n=t.findById(e.id);e.visible?t.showItem(n,!1):t.hideItem(n,!1)}))}));break;case"render":case"update":Object.keys(i).forEach((function(e){var n=i[e];n&&n.forEach((function(e){var n=t.findById(e.id);delete e.id,t.updateItem(n,e,!1),"combo"===n.getType()&&t.updateCombo(n)}))}));break;case"changedata":t.changeData(i,!1);break;case"delete":Object.keys(i).forEach((function(e){var n=i[e];n&&n.forEach((function(e){var n=e.itemType;delete e.itemType,t.addItem(n,e,!1)}))}));break;case"add":Object.keys(i).forEach((function(e){var n=i[e];n&&n.forEach((function(e){t.removeItem(e.id,!1)}))}));break;case"updateComboTree":Object.keys(i).forEach((function(e){var n=i[e];n&&n.forEach((function(e){t.updateComboTree(e.id,e.parentId,!1)}))}));break;case"createCombo":var o=n.data.after.combos,a=o[o.length-1];Object.keys(i).forEach((function(e){var n=i[e];n&&n.forEach((function(e){t.updateComboTree(e.id,e.parentId,!1)}))})),t.removeItem(a.id,!1);break;case"uncombo":var s=i.combos[i.combos.length-1],u=i.nodes.concat(i.combos).map((function(t){return t.id})).filter((function(t){return t!==s.id}));t.createCombo(s,u,!1);break;case"layout":t.updateLayout(i,void 0,void 0,!1)}}}},e.prototype.redo=function(){var t=this.get("graph"),e=t.getRedoStack();if(e&&0!==e.length){var n=e.pop();if(n){var r=n.action,i=n.data.after;if(t.pushStack(r,(0,x.clone)(n.data)),"delete"===r&&(i=n.data.before),!i)return;switch(r){case"visible":Object.keys(i).forEach((function(e){var n=i[e];n&&n.forEach((function(e){var n=t.findById(e.id);e.visible?t.showItem(n,!1):t.hideItem(n,!1)}))}));break;case"render":case"update":Object.keys(i).forEach((function(e){var n=i[e];n&&n.forEach((function(e){var n=t.findById(e.id);delete e.id,t.updateItem(n,e,!1),"combo"===n.getType()&&t.updateCombo(n)}))}));break;case"changedata":t.changeData(i,!1);break;case"delete":i.edges&&i.edges.forEach((function(e){t.removeItem(e.id,!1)})),i.nodes&&i.nodes.forEach((function(e){t.removeItem(e.id,!1)})),i.combos&&i.combos.forEach((function(e){t.removeItem(e.id,!1)}));break;case"add":Object.keys(i).forEach((function(e){var n=i[e];n&&n.forEach((function(e){var n=e.itemType;delete e.itemType,t.addItem(n,e,!1)}))}));break;case"updateComboTree":Object.keys(i).forEach((function(e){var n=i[e];n&&n.forEach((function(e){t.updateComboTree(e.id,e.parentId,!1)}))}));break;case"createCombo":var o=i.combos[i.combos.length-1];t.createCombo(o,o.children.map((function(t){return t.id})),!1);break;case"uncombo":var a=n.data.before.combos,s=a[a.length-1];t.uncombo(s.id,!1);break;case"layout":t.updateLayout(i,void 0,void 0,!1)}}}},e.prototype.zoomOut=function(){var t=this.get("graph"),e=t.getZoom(),n=1/(1-.05*this.get("zoomSensitivity"));n*e>(this.get("maxZoom")||t.get("maxZoom"))||t.zoomTo(e*n)},e.prototype.zoomIn=function(){var t=this.get("graph"),e=t.getZoom(),n=1-.05*this.get("zoomSensitivity");n*e<(this.get("minZoom")||t.get("minZoom"))||t.zoomTo(e*n)},e.prototype.realZoom=function(){this.get("graph").zoomTo(1)},e.prototype.autoZoom=function(){this.get("graph").fitView([20,20])},e.prototype.handleDefaultOperator=function(t){switch(t){case"redo":this.redo();break;case"undo":this.undo();break;case"zoomOut":this.zoomOut();break;case"zoomIn":this.zoomIn();break;case"realZoom":this.realZoom();break;case"autoZoom":this.autoZoom()}},e.prototype.destroy=function(){var t=this.get("toolBar");if(t){var e=this.get("container");e||(e=this.get("graph").get("container")),(0,x.isString)(e)&&(e=document.getElementById(e)),e.removeChild(t)}var n=this.get("handleClick");n&&t.removeEventListener("click",n)},e}(Xf);const wp=xp;var _p=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();"undefined"!=typeof document&&Jf()("\n .g6-component-tooltip {\n border: 1px solid #e2e2e2;\n border-radius: 4px;\n font-size: 12px;\n color: #545454;\n background-color: rgba(255, 255, 255, 0.9);\n padding: 10px 8px;\n box-shadow: rgb(174, 174, 174) 0px 0px 10px;\n }\n .tooltip-type {\n padding: 0;\n margin: 0;\n }\n .tooltip-id {\n color: #531dab;\n }\n");var Sp=function(t){function e(e){return t.call(this,e)||this}return _p(e,t),e.prototype.getDefaultCfgs=function(){return{offsetX:6,offsetY:6,getContent:function(t){return"\n

    类型:".concat(t.item.getType(),"

    \n ID:").concat(t.item.getID(),"\n ")},shouldBegin:function(t){return!0},itemTypes:["node","edge","combo"],trigger:"mouseenter",fixToNode:void 0}},e.prototype.getEvents=function(){return"click"===this.get("trigger")?{"node:click":"onClick","edge:click":"onClick","combo:click":"onClick","canvas:click":"onMouseLeave",afterremoveitem:"onMouseLeave",contextmenu:"onMouseLeave",drag:"onMouseLeave"}:{"node:mouseenter":"onMouseEnter","node:mouseleave":"onMouseLeave","node:mousemove":"onMouseMove","edge:mouseenter":"onMouseEnter","edge:mouseleave":"onMouseLeave","edge:mousemove":"onMouseMove","combo:mouseenter":"onMouseEnter","combo:mouseleave":"onMouseLeave","combo:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave",contextmenu:"onMouseLeave","node:drag":"onMouseLeave"}},e.prototype.init=function(){var t=this,e=t.get("className")||"g6-component-tooltip",n=Uh("
    ")),r=t.get("container");r||(r=t.get("graph").get("container")),(0,x.isString)(r)&&(r=document.getElementById(r)),Gf(n,{position:"absolute",visibility:"hidden",display:"none"}),r.appendChild(n),"click"!==t.get("trigger")&&(n.addEventListener("mouseenter",(function(t){Gf(n,{visibility:"visible",display:"unset"})})),n.addEventListener("mouseleave",(function(e){t.hideTooltip()}))),t.set("tooltip",n)},e.prototype.onClick=function(t){var e=this.get("itemTypes");if(!t.item||!t.item.getType||-1!==e.indexOf(t.item.getType())){var n=t.item,r=this.get("graph");this.currentTarget===n?(this.currentTarget=null,this.hideTooltip(),r.emit("tooltipchange",{item:t.item,action:"hide"})):(this.currentTarget=n,this.showTooltip(t),r.emit("tooltipchange",{item:t.item,action:"show"}))}},e.prototype.onMouseEnter=function(t){var e=this.get("itemTypes");if(!t.item||!t.item.getType||-1!==e.indexOf(t.item.getType())){var n=t.item,r=this.get("graph");this.currentTarget=n,this.showTooltip(t),r.emit("tooltipchange",{item:t.item,action:"show"})}},e.prototype.onMouseMove=function(t){var e=this.get("itemTypes");t.item&&t.item.getType&&-1===e.indexOf(t.item.getType())||this.currentTarget&&t.item===this.currentTarget&&this.showTooltip(t)},e.prototype.onMouseLeave=function(){this.hideTooltip(),this.get("graph").emit("tooltipchange",{item:this.currentTarget,action:"hide"}),this.currentTarget=null},e.prototype.clearContainer=function(){var t=this.get("tooltip");t&&(t.innerHTML="")},e.prototype.showTooltip=function(t){if(t.item){var e=this.get("itemTypes");if(!t.item.getType||-1!==e.indexOf(t.item.getType())){var n=this.get("tooltip"),r=this.get("getContent")(t);(0,x.isString)(r)?n.innerHTML=r:(this.clearContainer(),n.appendChild(r)),this.updatePosition(t)}}},e.prototype.hideTooltip=function(){var t=this.get("tooltip");t&&Gf(t,{visibility:"hidden",display:"none"})},e.prototype.updatePosition=function(t){var e=this.get("shouldBegin"),n=this.get("tooltip");if(e(t)){var r=this.get("graph"),i=r.get("width"),o=r.get("height"),a=this.get("offsetX")||0,s=this.get("offsetY")||0,u=r.getPointByClient(t.clientX,t.clientY),l=this.get("fixToNode"),c=t.item;if(c.getType&&"node"===c.getType()&&l&&(0,x.isArray)(l)&&l.length>=2){var h=c.getBBox();u={x:h.minX+h.width*l[0],y:h.minY+h.height*l[1]}}var d=r.getCanvasByPoint(u.x,u.y),f=d.x,p=d.y,m=r.getContainer(),g={x:f+m.offsetLeft+a,y:p+m.offsetTop+s};Gf(n,{visibility:"visible",display:"unset"});var v=n.getBoundingClientRect();f+v.width+a>i&&(g.x-=v.width+a),p+v.height+s>o&&(g.y-=v.height+s,g.y<0&&(g.y=0)),Gf(n,{left:"".concat(g.x,"px"),top:"".concat(g.y,"px")})}else Gf(n,{visibility:"hidden",display:"none"})},e.prototype.hide=function(){this.onMouseLeave()},e.prototype.destroy=function(){var t=this.get("tooltip");if(t){var e=this.get("container");e||(e=this.get("graph").get("container")),(0,x.isString)(e)&&(e=document.getElementById(e)),e.removeChild(t)}},e}(Xf);const Ep=Sp;var Ap="timebarstartplay",Mp="timebarendplay",Cp="valuechange",Tp="timebarConfigChanged",kp="playPauseBtn",Ip="nextStepBtn",Np="preStepBtn",Pp=function(){function t(t){var e=t.x,n=void 0===e?0:e,r=t.y,i=void 0===r?0:r,o=t.container,a=t.text,s=t.padding,u=void 0===s?[4,4,4,4]:s,l=t.className,c=void 0===l?"g6-component-timebar-tooltip":l,h=t.backgroundColor,d=void 0===h?"#000":h,f=t.textColor,p=void 0===f?"#fff":f,m=t.opacity,g=void 0===m?.8:m,v=t.fontSize,y=void 0===v?12:v;this.container=o,this.className=c,this.backgroundColor=d,this.textColor=p,this.x=n,this.y=i,this.text=a,this.padding=u,this.opacity=g,this.fontSize=y,this.render()}return t.prototype.render=function(){var t=this,e=t.className,n=(t.x,t.y,t.backgroundColor),r=t.textColor,i=t.text,o=t.padding,a=t.opacity,s=t.fontSize,u=t.container,l=Uh("
    '));(0,x.isString)(u)&&(u=document.getElementById(u)),u.appendChild(l),t.parentHeight=u.offsetHeight,t.parentWidth=u.offsetWidth,Gf(l,{visibility:"hidden",top:0,left:0});var c=Uh("\n
    "));c.innerHTML=i,l.appendChild(c),t.backgroundDOM=c;var h=Uh("
    "));l.appendChild(h),t.arrowDOM=h,t.container=l},t.prototype.show=function(t){var e=this,n=t.text,r=t.x;t.y,t.clientX,t.clientY;e.backgroundDOM.innerHTML=n;var i=e.backgroundDOM.offsetWidth,o=e.backgroundDOM.offsetHeight,a=e.arrowDOM.offsetWidth,s=e.arrowDOM.offsetHeight;Gf(e.container,{top:"".concat(-o-s,"px"),left:"".concat(r,"px"),visibility:"visible"}),Gf(e.backgroundDOM,{marginLeft:"".concat(-i/2,"px")}),Gf(e.arrowDOM,{marginLeft:"".concat(-a/2,"px"),top:"".concat(o,"px")});var u=r-i/2,l=r+i/2;u<0?Gf(e.backgroundDOM,{marginLeft:"".concat(-i/2-u,"px")}):l>e.parentWidth&&Gf(e.backgroundDOM,{marginLeft:"".concat(-i/2-l+e.parentWidth+12,"px")})},t.prototype.hide=function(){Gf(this.container,{top:0,left:0,visibility:"hidden"})},t}();const Op=Pp;var Lp=function(){return Lp=Object.assign||function(t){for(var e,n=1,r=arguments.length;nn&&(o=n,i=e)}))}i=e.originalEvent.deltaY>0?Math.max(0,i-1):Math.min(t.speedAxisY.length-1,i+1);var a=t.speedAxisY[i]-r;n=Fp(n,[["t",0,a]]),t.speedPoint.setMatrix(n),t.currentSpeed=t.speedAxisY.length-i,t.speedText.attr("text","".concat(t.currentSpeed,".0X")),t.group.emit(Tp,{speed:t.currentSpeed,type:t.currentType})})),this.toggleGroup&&this.toggleGroup.on("toggle-model:click",(function(e){var n,r,i=e.target.get("isChecked");i?(t.checkedIcon.hide(),t.checkedText.attr("text",(null===(r=t.controllerCfg)||void 0===r?void 0:r.timePointControllerText)||"单一时间"),t.currentType=Yp):(t.checkedIcon.show(),t.checkedText.attr("text",(null===(n=t.controllerCfg)||void 0===n?void 0:n.timeRangeControllerText)||"时间范围"),t.currentType=Xp),e.target.set("isChecked",!i),t.group.emit(Tp,{type:t.currentType,speed:t.currentSpeed})}))},t.prototype.destroy=function(){this.speedGroup.off("speed-rect:click"),this.toggleGroup&&(this.toggleGroup.off("toggle-model:click"),this.toggleGroup.destroy()),this.speedGroup.destroy()},t}();const $p=qp;var Kp=function(){return Kp=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=b&&r<=w?l:c,a=g.addShape("rect",{attrs:Kp({x:i+r*(m+2),y:i,width:m,height:f},o),draggable:!0,name:"tick-rect-".concat(r)}),s=g.addShape("rect",{attrs:{x:i+r*m+2*(2*r-1)/2,y:i,width:0===r||r===p-1?m+1:m+2,height:f,fill:"#fff",opacity:0},draggable:!0,name:"pick-rect-".concat(r)});s.toFront();var d,S=a.getBBox(),E=(S.minX+S.maxX)/2;if(v.push({rect:a,pickRect:s,value:e.date,x:E,y:S.minY}),u?(d=u(e),!(0,x.isString)(d)&&d&&(d=e.date)):r%Math.round(p/10)==0&&(d=e.date),d){y.push(d);var A=S.maxY+2*i;g.addShape("line",{attrs:{stroke:"#BFBFBF",x1:E,y1:A,x2:E,y2:A+4},name:"tick-line"});var M=A+4+i,C=g.addShape("text",{attrs:Kp({fill:"#8c8c8c",stroke:"#fff",lineWidth:1,x:E,y:M,textAlign:"center",text:d,textBaseline:"top",fontSize:10,fontFamily:t.fontFamily||"Arial, sans-serif"},h),capture:!1,name:"tick-label"}),T=C.getBBox();if(T.maxX>n?C.attr("textAlign","right"):T.minX<0&&C.attr("textAlign","left"),(0,x.isNumber)(_)&&10!==y.length){var k=Zp([1,0,0,0,1,0,0,0,1],[["t",-E,-M],["r",_],["t",E-5,M+2]]);C.attr({textAlign:"left",matrix:k})}1===y.length?C.attr({textAlign:"left"}):10===y.length&&C.attr({textAlign:"right"})}})),this.tickRects=v;var S=this.group;this.currentSpeed=1,this.controllerBtnGroup=new $p(Kp({group:S,x:this.x,y:this.y+r+5,width:n,height:40,hideTimeTypeController:!0,speed:this.currentSpeed,fontFamily:this.fontFamily||"Arial, sans-serif"},this.controllerCfg))},t.prototype.initEvent=function(){var t=this,e=this.sliceGroup;e.on("click",(function(e){var n=e.target;if("rect"===n.get("type")&&n.get("name")){var r=parseInt(n.get("name").split("-")[2],10);if(!isNaN(r)){var i=t.tickRects,o=t.unselectedTickStyle;i.forEach((function(t){t.rect.attr(o)}));var a=t.selectedTickStyle;i[r].rect.attr(a),t.startTickRectId=r,t.endTickRectId=r;var s=r/i.length;t.graph.emit(Cp,{value:[s,s]})}}})),e.on("dragstart",(function(e){var n=t.tickRects,r=t.unselectedTickStyle;n.forEach((function(t){t.rect.attr(r)}));var i=e.target,o=parseInt(i.get("name").split("-")[2],10),a=t.selectedTickStyle;n[o].rect.attr(a),t.startTickRectId=o;var s=o/n.length;t.graph.emit(Cp,{value:[s,s]}),t.dragging=!0})),e.on("dragover",(function(e){if(t.dragging&&"rect"===e.target.get("type")){for(var n=parseInt(e.target.get("name").split("-")[2],10),r=t.startTickRectId,i=t.tickRects,o=t.selectedTickStyle,a=t.unselectedTickStyle,s=0;s=r&&s<=n?o:a;i[s].rect.attr(u)}var l=i.length;t.endTickRectId=n;var c=r/l,h=n/l;t.graph.emit(Cp,{value:[c,h]})}})),e.on("drop",(function(e){if(t.dragging&&(t.dragging=!1,"rect"===e.target.get("type"))){var n=t.startTickRectId,r=parseInt(e.target.get("name").split("-")[2],10);if(!(r0?e.endTickRectId++:(n[e.endTickRectId].rect.attr(i),e.endTickRectId--),a!==e.startTickRectId)e.endTickRectIdthis.max?NaN:this.values[r]},e.prototype.getText=function(e){for(var n=[],r=1;r1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},e}(om);const sm=am;var um=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,lm="\\d\\d?",cm="\\d\\d",hm="[^\\s]+",dm=/\[([^]*?)\]/gm;function fm(t,e){for(var n=[],r=0,i=t.length;r-1?i:null}};function mm(t){for(var e=[],n=1;n3?0:(t-t%10!=10?1:0)*t%10]}},xm=mm({},bm),wm=function(t){return xm=mm(xm,t)},_m=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},Sm=function(t,e){for(void 0===e&&(e=2),t=String(t);t.length0?"-":"+")+Sm(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+Sm(Math.floor(Math.abs(e)/60),2)+":"+Sm(Math.abs(e)%60,2)}},Am=function(t){return+t-1},Mm=[null,lm],Cm=[null,hm],Tm=["isPm",hm,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],km=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(t){var e=(t+"").match(/([+-]|\d\d)/gi);if(e){var n=60*+e[1]+parseInt(e[2],10);return"+"===e[0]?n:-n}return 0}],Im={D:["day",lm],DD:["day",cm],Do:["day",lm+hm,function(t){return parseInt(t,10)}],M:["month",lm,Am],MM:["month",cm,Am],YY:["year",cm,function(t){var e=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+t>68?e-1:e)+t)}],h:["hour",lm,void 0,"isPm"],hh:["hour",cm,void 0,"isPm"],H:["hour",lm],HH:["hour",cm],m:["minute",lm],mm:["minute",cm],s:["second",lm],ss:["second",cm],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(t){return 100*+t}],SS:["millisecond",cm,function(t){return 10*+t}],SSS:["millisecond","\\d{3}"],d:Mm,dd:Mm,ddd:Cm,dddd:Cm,MMM:["month",hm,pm("monthNamesShort")],MMMM:["month",hm,pm("monthNames")],a:Tm,A:Tm,ZZ:km,Z:km},Nm={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},Pm=function(t){return mm(Nm,t)},Om=function(t,e,n){if(void 0===e&&(e=Nm.default),void 0===n&&(n={}),"number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");e=Nm[e]||e;var r=[];e=e.replace(dm,(function(t,e){return r.push(e),"@@@"}));var i=mm(mm({},xm),n);return(e=e.replace(um,(function(e){return Em[e](t,i)}))).replace(/@@@/g,(function(){return r.shift()}))};function Lm(t,e,n){if(void 0===n&&(n={}),"string"!=typeof e)throw new Error("Invalid format in fecha parse");if(e=Nm[e]||e,t.length>1e3)return null;var r={year:(new Date).getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},i=[],o=[],a=e.replace(dm,(function(t,e){return o.push(_m(e)),"@@@"})),s={},u={};a=_m(a).replace(um,(function(t){var e=Im[t],n=e[0],r=e[1],o=e[3];if(s[n])throw new Error("Invalid format. "+n+" specified twice in format");return s[n]=!0,o&&(u[o]=!0),i.push(e),"("+r+")"})),Object.keys(u).forEach((function(t){if(!s[t])throw new Error("Invalid format. "+t+" is required in specified format")})),a=a.replace(/@@@/g,(function(){return o.shift()}));var l=t.match(new RegExp(a,"i"));if(!l)return null;for(var c,h=mm(mm({},xm),n),d=1;d11||r.month<0||r.day>31||r.day<1||r.hour>23||r.hour<0||r.minute>59||r.minute<0||r.second>59||r.second<0)return null;return c}const Rm={format:Om,parse:Lm,defaultI18n:bm,setGlobalDateI18n:wm,setGlobalDateMasks:Pm};var Dm="format";function zm(t,e){return(y[Dm]||Rm[Dm])(t,e)}function Fm(t){return(0,x.isString)(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),(0,x.isDate)(t)&&(t=t.getTime()),t}var Bm=1e3,Um=6e4,jm=36e5,Vm=24*jm,Hm=31*Vm,Gm=365*Vm,Wm=[["HH:mm:ss",Bm],["HH:mm:ss",1e4],["HH:mm:ss",3e4],["HH:mm",Um],["HH:mm",6e5],["HH:mm",18e5],["HH",jm],["HH",6*jm],["HH",12*jm],["YYYY-MM-DD",Vm],["YYYY-MM-DD",4*Vm],["YYYY-WW",7*Vm],["YYYY-MM",Hm],["YYYY-MM",4*Hm],["YYYY-MM",6*Hm],["YYYY",380*Vm]];function Xm(t,e,n){var r,i=(r=function(t){return t[1]},function(t,e,n,i){for(var o=(0,x.isNil)(n)?0:n,a=(0,x.isNil)(i)?t.length:i;o>>1;r(t[s])>e?a=s:o=s+1}return o})(Wm,(e-t)/n)-1,o=Wm[i];return i<0?o=Wm[0]:i>=Wm.length&&(o=(0,x.last)(Wm)),o}var Ym=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="timeCat",e}return(0,b.__extends)(e,t),e.prototype.translate=function(t){t=Fm(t);var e=this.values.indexOf(t);return-1===e&&(e=(0,x.isNumber)(t)&&t-1){var r=this.values[n],i=this.formatter;return r=i?i(r,e):zm(r,this.mask)}return t},e.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},e.prototype.setDomain=function(){var e=this.values;(0,x.each)(e,(function(t,n){e[n]=Fm(t)})),e.sort((function(t,e){return t-e})),t.prototype.setDomain.call(this)},e}(sm);const qm=Ym;var $m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContinuous=!0,e}return(0,b.__extends)(e,t),e.prototype.scale=function(t){if((0,x.isNil)(t))return NaN;var e=this.rangeMin(),n=this.rangeMax();return this.max===this.min?e:e+this.getScalePercent(t)*(n-e)},e.prototype.init=function(){t.prototype.init.call(this);var e=this.ticks,n=(0,x.head)(e),r=(0,x.last)(e);nthis.max&&(this.max=r),(0,x.isNil)(this.minLimit)||(this.min=n),(0,x.isNil)(this.maxLimit)||(this.max=r)},e.prototype.setDomain=function(){var t=(0,x.getRange)(this.values),e=t.min,n=t.max;(0,x.isNil)(this.min)&&(this.min=e),(0,x.isNil)(this.max)&&(this.max=n),this.min>this.max&&(this.min=e,this.max=n)},e.prototype.calculateTicks=function(){var e=this,n=t.prototype.calculateTicks.call(this);return this.nice||(n=(0,x.filter)(n,(function(t){return t>=e.min&&t<=e.max}))),n},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;return(t-n)/(e-n)},e.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},e}(om);const Km=$m;var Zm=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="linear",e.isLinear=!0,e}return(0,b.__extends)(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t);return this.min+e*(this.max-this.min)},e.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},e}(Km);const Qm=Zm;function Jm(t,e){var n=Math.E;return e>=0?Math.pow(n,Math.log(e)/t):-1*Math.pow(n,Math.log(-e)/t)}function tg(t,e){return 1===t?1:Math.log(e)/Math.log(t)}function eg(t,e,n){(0,x.isNil)(n)&&(n=Math.max.apply(null,t));var r=n;return(0,x.each)(t,(function(t){t>0&&t1&&(r=1),r}var ng=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e}return(0,b.__extends)(e,t),e.prototype.invert=function(t){var e,n=this.base,r=tg(n,this.max),i=this.rangeMin(),o=this.rangeMax()-i,a=this.positiveMin;if(a){if(0===t)return 0;var s=1/(r-(e=tg(n,a/n)))*o;if(t=0?1:-1;return Math.pow(o,n)*a},e.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;var r=this.exponent;return(Jm(r,t)-Jm(r,n))/(Jm(r,e)-Jm(r,n))},e}(Km);const og=ig;var ag=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="time",e}return(0,b.__extends)(e,t),e.prototype.getText=function(t,e){var n=this.translate(t),r=this.formatter;return r?r(n,e):zm(n,this.mask)},e.prototype.scale=function(e){var n=e;return((0,x.isString)(n)||(0,x.isDate)(n))&&(n=this.translate(n)),t.prototype.scale.call(this,n)},e.prototype.translate=function(t){return Fm(t)},e.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},e.prototype.setDomain=function(){var t=this.values,e=this.getConfig("min"),n=this.getConfig("max");if((0,x.isNil)(e)&&(0,x.isNumber)(e)||(this.min=this.translate(this.min)),(0,x.isNil)(n)&&(0,x.isNumber)(n)||(this.max=this.translate(this.max)),t&&t.length){var r=[],i=1/0,o=i,a=0;(0,x.each)(t,(function(t){var e=Fm(t);if(isNaN(e))throw new TypeError("Invalid Time: "+t+" in time scale!");i>e?(o=i,i=e):o>e&&(o=e),a1&&(this.minTickInterval=o-i),(0,x.isNil)(e)&&(this.min=i),(0,x.isNil)(n)&&(this.max=a)}},e}(Qm);const sg=ag;var ug=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e}return(0,b.__extends)(e,t),e.prototype.invert=function(t){var e=this.ticks,n=e.length,r=this.getInvertPercent(t),i=Math.floor(r*(n-1));if(i>=n-1)return(0,x.last)(e);if(i<0)return(0,x.head)(e);var o=e[i],a=i/(n-1);return o+(r-a)/((i+1)/(n-1)-a)*(e[i+1]-o)},e.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},e.prototype.calculateTicks=function(){var e=t.prototype.calculateTicks.call(this);return this.nice||((0,x.last)(e)!==this.max&&e.push(this.max),(0,x.head)(e)!==this.min&&e.unshift(this.min)),e},e.prototype.getScalePercent=function(t){var e=this.ticks;if(t<(0,x.head)(e))return 0;if(t>(0,x.last)(e))return 1;var n=0;return(0,x.each)(e,(function(e,r){if(!(t>=e))return!1;n=r})),n/(e.length-1)},e}(Km);const lg=ug;const cg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e}return(0,b.__extends)(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(lg);var hg={};function dg(t,e){if(function(t){return hg[t]}(t))throw new Error("type '"+t+"' existed.");hg[t]=e}var fg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="identity",e.isIdentity=!0,e}return(0,b.__extends)(e,t),e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&(0,x.isNumber)(t)?t:this.range[0]},e.prototype.invert=function(t){var e=this.range;return te[1]?NaN:this.values[0]},e}(om);const pg=fg;function mg(t){var e=t.values,n=t.tickInterval,r=t.tickCount,i=t.showLast;if((0,x.isNumber)(n)){var o=(0,x.filter)(e,(function(t,e){return e%n==0})),a=(0,x.last)(e);return i&&(0,x.last)(o)!==a&&o.push(a),o}var s=e.length,u=t.min,l=t.max;if((0,x.isNil)(u)&&(u=0),(0,x.isNil)(l)&&(l=e.length-1),!(0,x.isNumber)(r)||r>=s)return e.slice(u,l+1);if(r<=0||l<=0)return[];for(var c=1===r?s:Math.floor(s/(r-1)),h=[],d=u,f=0;f=l);f++)d=Math.min(u+f*c,l),f===r-1&&i?h.push(e[l]):h.push(e[d]);return h}var gg=Math.sqrt(50),vg=Math.sqrt(10),yg=Math.sqrt(2),bg=function(){function t(){this._domain=[0,1]}return t.prototype.domain=function(t){return t?(this._domain=Array.from(t,Number),this):this._domain.slice()},t.prototype.nice=function(t){var e,n;void 0===t&&(t=5);var r,i=this._domain.slice(),o=0,a=this._domain.length-1,s=this._domain[o],u=this._domain[a];return u0?r=xg(s=Math.floor(s/r)*r,u=Math.ceil(u/r)*r,t):r<0&&(r=xg(s=Math.ceil(s*r)/r,u=Math.floor(u*r)/r,t)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(u/r)*r,this.domain(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(u*r)/r,this.domain(i)),this},t.prototype.ticks=function(t){return void 0===t&&(t=5),function(t,e,n){var r,i,o,a,s=-1;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];(r=e0)for(t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));++s=0?(o>=gg?10:o>=vg?5:o>=yg?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=gg?10:o>=vg?5:o>=yg?2:1)}function wg(t,e,n){return("ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e))*e}function _g(t,e,n){var r=wg(t,n,"floor"),i=wg(e,n,"ceil");r=(0,x.fixedBase)(r,n),i=(0,x.fixedBase)(i,n);for(var o=[],a=Math.max((i-r)/(Math.pow(2,12)-1),n),s=r;s<=i;s+=a){var u=(0,x.fixedBase)(s,a);o.push(u)}return{min:r,max:i,ticks:o}}function Sg(t,e,n){var r,i=t.minLimit,o=t.maxLimit,a=t.min,s=t.max,u=t.tickCount,l=void 0===u?5:u,c=(0,x.isNil)(i)?(0,x.isNil)(e)?a:e:i,h=(0,x.isNil)(o)?(0,x.isNil)(n)?s:n:o;if(c>h&&(h=(r=[c,h])[0],c=r[1]),l<=2)return[c,h];for(var d=(h-c)/(l-1),f=[],p=0;p=0&&(u=1),1-s/(a-1)-n+u}function Tg(t,e,n){var r=(0,x.size)(e);return 1-(0,x.indexOf)(e,t)/(r-1)-n+1}function kg(t,e,n,r,i,o){var a=(t-1)/(o-i),s=(e-1)/(Math.max(o,r)-Math.min(n,i));return 2-Math.max(a/s,s/a)}function Ig(t,e){return t>=e?2-(t-1)/(e-1):1}function Ng(t,e,n,r){var i=e-t;return 1-.5*(Math.pow(e-r,2)+Math.pow(t-n,2))/Math.pow(.1*i,2)}function Pg(t,e,n){var r=e-t;if(n>r){var i=(n-r)/2;return 1-Math.pow(i,2)/Math.pow(.1*r,2)}return 1}function Og(t,e,n,r,i,o){void 0===n&&(n=5),void 0===r&&(r=!0),void 0===i&&(i=Ag),void 0===o&&(o=[.25,.2,.5,.05]);var a=n<0?0:Math.round(n);if(Number.isNaN(t)||Number.isNaN(e)||"number"!=typeof t||"number"!=typeof e||!a)return{min:0,max:0,ticks:[]};if(e-t<1e-15||1===a)return{min:t,max:e,ticks:[t]};if(e-t>1e148){var s=(e-t)/(_=n||5);return{min:t,max:e,ticks:Array(_).fill(null).map((function(e,n){return Eg(t+s*n)}))}}for(var u={score:-2,lmin:0,lmax:0,lstep:0},l=1;l<1/0;){for(var c=0;cu.score&&(!r||E<=t&&A>=e)&&(u.lmin=E,u.lmax=A,u.lstep=M,u.score=I)}g+=1}f+=1}}l+=1}var N=Eg(u.lmax),P=Eg(u.lmin),O=Eg(u.lstep),L=Math.floor(function(t){return Math.round(1e12*t)/1e12}((N-P)/O))+1,R=new Array(L);R[0]=Eg(P);for(c=1;c1&&(i*=Math.ceil(a)),r&&iGm)for(var u=Dg(n),l=Math.ceil(o/Gm),c=s;c<=u+l;c+=l)a.push(zg(c));else if(o>Hm){var h=Math.ceil(o/Hm),d=Fg(e),f=function(t,e){var n=Dg(t),r=Dg(e),i=Fg(t);return 12*(r-n)+(Fg(e)-i)%12}(e,n);for(c=0;c<=f+h;c+=h)a.push(Bg(s,c+d))}else if(o>Vm){var p=(b=new Date(e)).getFullYear(),m=b.getMonth(),g=b.getDate(),v=Math.ceil(o/Vm),y=function(t,e){return Math.ceil((e-t)/Vm)}(e,n);for(c=0;cjm){p=(b=new Date(e)).getFullYear(),m=b.getMonth(),v=b.getDate();var b,x=b.getHours(),w=Math.ceil(o/jm),_=function(t,e){return Math.ceil((e-t)/jm)}(e,n);for(c=0;c<=_+w;c+=w)a.push(new Date(p,m,v,x+c).getTime())}else if(o>Um){var S=function(t,e){return Math.ceil((e-t)/6e4)}(e,n),E=Math.ceil(o/Um);for(c=0;c<=S+E;c+=E)a.push(e+c*Um)}else{var A=o;A=512&&console.warn("Notice: current ticks length("+a.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+o+") is too small, increase the value to solve the problem!"),a})),rm("log",(function(t){var e,n=t.base,r=t.tickCount,i=t.min,o=t.max,a=t.values,s=tg(n,o);if(i>0)e=Math.floor(tg(n,i));else{var u=eg(a,n,o);e=Math.floor(tg(n,u))}for(var l=s-e,c=Math.ceil(l/r),h=[],d=e;d=0?1:-1;return Math.pow(t,e)*n}))})),rm("quantile",(function(t){var e=t.tickCount,n=t.values;if(!n||!n.length)return[];for(var r=n.slice().sort((function(t,e){return t-e})),i=[],o=0;op?(s.show(),l.show(),p=c.minX+c.width+10):(s.hide(),l.hide()),s})),this.controllerBtnGroup=new $p(nv({group:this.group,x:this.x,y:this.y+r+25,width:n,height:35},this.controllerCfg)),this.updateStartEnd(0),this.updateUI(),a.move(this.x,this.y),this.bindEvents(),this.currentMode===Xp&&(this.minHandlerShape.hide(),this.foregroundShape.hide(),this.minTextShape.hide())},t.prototype.bindEvents=function(){var t=this,e=this.group.find((function(t){return"minHandlerShape"===t.get("name")}));e&&(e.on("minHandlerShape-handler:mousedown",this.onMouseDown(this.minHandlerShape)),e.on("minHandlerShape-handler:touchstart",this.onMouseDown(this.minHandlerShape)));var n=this.group.find((function(t){return"maxHandlerShape"===t.get("name")}));n&&(n.on("maxHandlerShape-handler:mousedown",this.onMouseDown(this.maxHandlerShape)),n.on("maxHandlerShape-handler:touchstart",this.onMouseDown(this.maxHandlerShape))),this.foregroundShape.on("mousedown",this.onMouseDown(this.foregroundShape)),this.foregroundShape.on("touchstart",this.onMouseDown(this.foregroundShape)),this.group.on("".concat(kp,":click"),(function(){t.isPlay=!t.isPlay,t.currentHandler=t.maxHandlerShape,t.changePlayStatus()})),this.group.on("".concat(Ip,":click"),(function(){t.currentHandler=t.maxHandlerShape,t.updateStartEnd(.01),t.updateUI()})),this.group.on("".concat(Np,":click"),(function(){t.currentHandler=t.maxHandlerShape,t.updateStartEnd(-.01),t.updateUI()})),this.group.on(Tp,(function(e){var n=e.type,r=e.speed;t.currentSpeed=r,t.currentMode=n,n===Xp?(t.minHandlerShape.hide(),t.foregroundShape.hide(),t.minTextShape.hide()):n===Yp&&(t.minHandlerShape.show(),t.foregroundShape.show(),t.minTextShape.show())}))},t.prototype.adjustTickIndex=function(t){for(var e=0;e1&&(this.start=1),this.end>1&&(this.end=1),this.end<0&&(this.end=0);var e=this.x+this.start*this.width,n=this.x+this.end*this.width;this.foregroundShape.attr("x",e),this.foregroundShape.attr("width",n-e);var r=(0,x.get)(this.handlerStyle,"width",2);this.setText(this.minText,this.maxText);var i=this.dodgeText([e,n]),o=i[0],a=i[1];this.minHandlerShape.setX(e-r/2),(0,x.each)(o,(function(e,n){return t.minTextShape.attr(n,e)})),this.maxHandlerShape.setX(n-r/2),(0,x.each)(a,(function(e,n){return t.maxTextShape.attr(n,e)})),this.currentMode===Yp?this.graph.emit(Cp,{value:[this.start,this.end].sort()}):this.currentMode===Xp&&this.graph.emit(Cp,{value:[this.end,this.end]})},t.prototype.dodgeText=function(t){var e,n,r=(0,x.get)(this.handlerStyle,"width",2),i=this.minTextShape,o=this.maxTextShape,a=t[0],s=t[1],u=!1;a>s&&(a=(e=[s,a])[0],s=e[1],i=(n=[o,i])[0],o=n[1],u=!0);var l=i.getBBox(),c=o.getBBox(),h=null,d=null;return"trend"===this.timeBarType?(h=a-l.widththis.x+this.width?{x:s-r/2-2,textAlign:"right"}:{x:s+r/2+2,textAlign:"left"}):"simple"===this.timeBarType&&(h=i.attr("x")>l.width?{x:a,textAlign:"center"}:{x:a,textAlign:"left"},d=o.attr("x")>this.width-c.width?{x:s,textAlign:"right"}:{x:s,textAlign:"center"}),u?[d,h]:[h,d]},t.prototype.startPlay=function(){var t=this;return"undefined"!=typeof window?window.requestAnimationFrame((function(){var e=t,n=e.ticks,r=e.width,i=t.currentSpeed,o=r/n.length/(1e3*(10-i)/60),a=t.adjustOffsetRange(o/t.width);t.updateStartEnd(a),t.updateUI(),t.isPlay&&(t.playHandler=t.startPlay())})):void 0},t.prototype.changePlayStatus=function(t){void 0===t&&(t=!0),this.controllerBtnGroup.playButton.update({isPlay:this.isPlay}),this.isPlay?(this.playHandler=this.startPlay(),this.graph.emit(Ap,null)):this.playHandler&&("undefined"!=typeof window&&window.cancelAnimationFrame(this.playHandler),t&&this.graph.emit(Mp,null))},t.prototype.destory=function(){this.graph.off(Cp,(function(){}));var t=this.group,e=t.find((function(t){return"minHandlerShape"===t.get("name")}));e&&(e.off("minHandlerShape-handler:mousedown"),e.off("minHandlerShape-handler:touchstart"),e.destroy());var n=t.find((function(t){return"maxHandlerShape"===t.get("name")}));n&&(n.off("maxHandlerShape-handler:mousedown"),n.off("maxHandlerShape-handler:touchstart"),n.destroy()),this.foregroundShape.off("mousedown"),this.foregroundShape.off("touchstart"),this.foregroundShape.destroy(),t.off("".concat(kp,":click")),t.off("".concat(Ip,":click")),t.off("".concat(Np,":click")),t.off(Tp),t.destroy(),this.trendComponent&&this.trendComponent.destory()},t}();const dv=hv;var fv=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pv=function(){return pv=Object.assign||function(t){for(var e,n=1,r=arguments.length;n")),{position:"relative"}),a)&&this.get("graph").get("container").appendChild(t);this.set("timeBarContainer",t),e="SVG"===n.get("renderer")?new Rh({container:t,width:i,height:o}):new Ic({container:t,width:i,height:o}),this.get("containerCSS")&&Gf(t,this.get("containerCSS")),this.set("canvas",e)},e.prototype.init=function(){this.initContainer();var t=this.get("canvas").addGroup({name:"timebar-group"});this.set("timeBarGroup",t),this.renderTrend(),this.initEvent();var e="undefined"!=typeof window&&window.getComputedStyle(document.body,null).getPropertyValue("font-family")||"Arial, sans-serif";this.set("fontFamily",e)},e.prototype.play=function(){this.togglePlay(!0)},e.prototype.pause=function(){this.togglePlay(!1)},e.prototype.togglePlay=function(t){var e=this.get("timebar");e&&(e.isPlay=!!t,e.changePlayStatus())},e.prototype.renderTrend=function(){var t=this,e=this._cfgs,n=e.width,r=e.x,i=e.y,o=e.padding,a=e.type,s=e.trend,u=e.slider,l=e.controllerCfg,c=e.textStyle,h=e.tick,d=e.backgroundStyle,f=e.foregroundStyle,p=s.data,m=mv(s,["data"]),g=n-2*o,v="trend"===a?26:4,y=this.get("graph"),b=this.get("timeBarGroup"),x=this.get("canvas"),w=null;if("trend"===a||"simple"===a){var _=this.get("getValue");w=new dv(pv(pv({graph:y,canvas:x,group:b,type:a,x:r+o,y:"trend"===a?i+o:i+o+15,width:g,height:v,padding:o,backgroundStyle:d,foregroundStyle:f,trendCfg:pv(pv({},m),{data:p.map((function(t){return(null==_?void 0:_(t))||t.value}))})},u),{tick:{ticks:p,tickLabelFormatter:h.tickLabelFormatter,tickLabelStyle:h.tickLabelStyle,tickLineStyle:h.tickLineStyle},handlerStyle:pv(pv({},u.handlerStyle),{height:u.height||v}),controllerCfg:l,textStyle:c}))}else"tick"===a&&(w=new em(pv({graph:y,canvas:x,group:b,x:r+o,y:i+o,width:n,height:42,padding:2,controllerCfg:l},h)));var S=function e(){var n=t.get("timebar");n.draggingHandler=!1,n.isPlay&&(n.isPlay=!1,n.currentHandler=n.maxHandlerShape,n.changePlayStatus()),document.removeEventListener("mouseup",e)};x.on("mousedown",(function(t){"maxHandlerShape-handler"!==t.target.get("name")&&"minHandlerShape-handler"!==t.target.get("name")&&t.target!==w.foregroundShape||document.addEventListener("mouseup",S)})),this.set("timebar",w)},e.prototype.filterData=function(t){var e,n=t.value;if(!n){n=[];var r=this._cfgs.type;r&&"trend"!==r&&"simple"!==r?"tick"===r&&(n[0]=this._cfgs.tick.start,n[1]=this._cfgs.tick.end):(n[0]=this._cfgs.slider.start,n[1]=this._cfgs.slider.end)}var i=null,o=this._cfgs.type;if("trend"===o||"simple"===o?i=this._cfgs.trend.data:"tick"===o&&(i=this._cfgs.tick.data),i&&0!==i.length){var a=this.get("rangeChange"),s=this.get("graph"),u=Math.round(i.length*n[0]),l=Math.round(i.length*n[1]);l=l>=i.length?i.length-1:l,u=u>=i.length?i.length-1:u;var c=null===(e=this._cfgs.tick)||void 0===e?void 0:e.tickLabelFormatter,h=c?c(i[u]):i[u].date,d=c?c(i[l]):i[l].date;if("tick"!==o)this.get("timebar").setText(h,d);if(a)a(s,h,d);else{(!this.cacheGraphData||this.cacheGraphData.nodes&&0===this.cacheGraphData.nodes.length)&&(this.cacheGraphData=s.get("data"));var f=this.get("filterItemTypes"),p=this.get("changeData"),m=this.get("getDate"),g=this.get("shouldIgnore"),v=i[u].date,y=i[l].date;if(p||void 0===p){var b=this.cacheGraphData.nodes,x=this.cacheGraphData.edges,w={},_={};s.getNodes().forEach((function(t){return w[t.getID()]=!0})),s.getEdges().forEach((function(t){return _[t.getID()]=!0})),f.includes("node")&&(null==b||b.forEach((function(t){var e=+((null==m?void 0:m(t))||t.date),n=e>=v&&e<=y||(null==g?void 0:g("node",t,{min:v,max:y})),r=w[t.id];r&&!n?(s.removeItem(t.id),w[t.id]=!1):!r&&n&&(s.addItem("node",t),w[t.id]=!0)})),null==x||x.forEach((function(t){var e=w[t.source]&&w[t.target]||(null==g?void 0:g("edge",t,{min:v,max:y})),n=!!s.findById(t.id);n&&!e?(s.removeItem(t.id),_[t.id]=!1):!n&&e?(s.addItem("edge",t),_[t.id]=!0):n||(_[t.id]=!1)}))),(this.get("filterEdge")||f.includes("edge"))&&(null==x||x.filter((function(t){var e=+((null==m?void 0:m(t))||t.date),n=e>=v&&e<=y||(null==g?void 0:g("edge",t,{min:v,max:y})),r=w[t.source]&&w[t.target],i=n&&r,o=_[t.id];o&&!i?(_[t.id]=!1,s.removeItem(t.id)):!o&&i&&(_[t.id]=!0,s.addItem("edge",t))})))}else f.includes("node")&&s.getNodes().forEach((function(t){var e=t.getModel();if(!(null==g?void 0:g("node",e,{min:v,max:y}))){var n=+((null==m?void 0:m(e))||e.date);ny?s.hideItem(t):s.showItem(t)}})),(this.get("filterEdge")||f.includes("edge"))&&s.getEdges().forEach((function(t){var e=t.getModel();if(!(null==g?void 0:g("edge",e,{min:i[u].date,max:i[l].date}))){var n=+((null==m?void 0:m(e))||e.date);if(ni[l].date)s.hideItem(t);else{var r=t.getSource().isVisible(),o=t.getTarget().isVisible();r&&o&&s.showItem(t)}}}))}}else console.warn("请配置 TimeBar 组件的数据")},e.prototype.initEvent=function(){var t=this.get("graph");t.on("afterchangedata",this.changeData),t.on("afterrender",this.afterrenderListener),t.on(Cp,this.valueChangeListener)},e.prototype.destroy=function(){var e=this.get("graph");e.off("afterchangedata",this.changeData),e.off("afterrender",this.afterrenderListener),e.off(Cp,this.valueChangeListener);var n=this.get("timebar");n&&n.destory&&n.destory(),t.prototype.destroy.call(this);var r=this.get("timeBarContainer");if(r){var i=this.get("container");i||(i=this.get("graph").get("container")),(0,x.isString)(i)&&(i=document.getElementById(i)),i===r&&(i=i.parentElement),i.removeChild(r)}},e}(Xf);const vv=gv;var yv=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bv=el.applyMatrix;var xv=function(t){function e(e){return t.call(this,e)||this}return yv(e,t),e.prototype.getDefaultCfgs=function(){return{container:null,className:"g6-minimap",viewportClassName:"g6-minimap-viewport",width:200,delegateStyle:{fill:"#40a9ff",stroke:"#096dd9"},refresh:!0}},e.prototype.getEvents=function(){return{beforepaint:"updateViewport",beforeanimate:"disableRefresh",afteranimate:"enableRefresh",viewportchange:"disableOneRefresh"}},e.prototype.disableRefresh=function(){this.set("refresh",!1)},e.prototype.enableRefresh=function(){this.set("refresh",!0),this.updateCanvas()},e.prototype.disableOneRefresh=function(){this.set("viewportChange",!0)},e.prototype.initViewport=function(){var t=this,e=this._cfgs,n=e.graph;if(!this.destroyed){var r=this.get("container");(0,x.isString)(r)&&(r=document.getElementById(r));var i=Uh("
    ")),o=0,a=0,s=!1,u=0,l=0,c=0,h=0,d=0,f=0;r.addEventListener("mousedown",(function(r){if(e.refresh=!1,r.target===i){var u=i.style;c=parseInt(u.width,10),h=parseInt(u.height,10);var l=t.get("width"),p=t.get("height");c>l||h>p||(f=n.getZoom(),d=t.get("ratio"),s=!0,o=r.clientX,a=r.clientY)}}),!1),r.addEventListener("mousemove",(function(e){if(s&&!(0,x.isNil)(e.clientX)&&!(0,x.isNil)(e.clientY)){var r=t.get("width"),p=t.get("height"),m=i.style;u=parseInt(m.left,10),l=parseInt(m.top,10),c=parseInt(m.width,10),h=parseInt(m.height,10);var g=o-e.clientX,v=a-e.clientY;u-g<0?g=u:u-g+c>=r&&(g=0),l-v<0?v=l:l-v+h>=p&&(v=0),l-=v,Gf(i,{left:"".concat(u-=g,"px"),top:"".concat(l,"px")}),n.translate(g*f/d,v*f/d),o=e.clientX,a=e.clientY}}),!1),r.addEventListener("mouseleave",(function(){s=!1,e.refresh=!0}),!1),r.addEventListener("mouseup",(function(){s=!1,e.refresh=!0}),!1),this.set("viewport",i),r.appendChild(i)}},e.prototype.updateViewport=function(){if(!this.destroyed){var t=this.get("ratio"),e=this.get("width"),n=this.get("height"),r=this.get("graph"),i=r.get("width"),o=i/r.get("height"),a=r.getGroup(),s=a.getCanvasBBox(),u=[(s.minX+s.maxX)/2,(s.minY+s.maxY)/2],l=[s.maxX-s.minX,s.maxY-s.minY],c={centerX:u[0],centerY:u[1],width:0,height:0,minX:0,minY:0};s[0]/s[1]>o?(c.width=l[0],c.height=c.width/o):(c.height=l[1],c.width=c.height*o),c.minX=u[0]-c.width/2,c.minY=u[1]-c.height/2;var h=a.getMatrix();h||(h=[1,0,0,0,1,0,0,0,1]);var d=C.invert([1,0,0,0,1,0,0,0,1],h),f=bv({x:c.minX,y:c.minY},d),p=r.getCanvasByPoint(f.x,f.y),m=this.get("viewport");m||this.initViewport();var g=i/c.width,v=g*e,y=g*n,b=e*-p.x/c.width,x=n*-p.y/c.height,w=b+v,_=x+y;b<0&&(v+=b,b=0),w>e&&(v-=w-e),x<0&&(y+=x,x=0),_>n&&(y-=_-n),this.set("ratio",t),Gf(m,{left:"".concat(b,"px"),top:"".concat(x,"px"),width:"".concat(v,"px"),height:"".concat(y,"px")})}},e.prototype.init=function(){this.initContainer()},e.prototype.initContainer=function(){var t=this,e=t.get("graph"),n=e.get("width"),r=e.get("height")/n,i=t.get("className"),o=t.get("container"),a=t.get("width"),s=t.get("height");a||s||(a=200),a?(s=r*a,t.set("height",s)):(a=1/r*s,t.set("width",a));var u=Uh("
    "));(0,x.isString)(o)&&(o=document.getElementById(o)),o?o.appendChild(u):e.get("container").appendChild(u),t.set("container",u);var l=Uh('
    ');u.appendChild(l);var c=Uh('');l.appendChild(c),t.set("containerDOM",l),t.set("containerSpan",c);var h=Uh(''));t.set("imgDOM",h),t.updateImgSize(),c.appendChild(h),t.updateCanvas()},e.prototype.updateImgSize=function(){var t=this,e=t.get("imgDOM"),n=t.get("width"),r=t.get("height");e.onload=function(){var t=function(t,e){var n,r;if(t.naturalWidth)n=t.naturalWidth,r=t.naturalHeight;else{var i=new Image;i.src=t.src,i.onload=function(){e&&e(i.width,i.height)}}return[n,r]}(e);t[0]>t[1]?e.width=n:e.height=r}},e.prototype.updateCanvas=function(){if(this.get("refresh")){var t=this.get("graph");if(!t.get("destroyed")){this.get("viewportChange")&&(this.set("viewportChange",!1),this.updateViewport());var e=this.get("width")/t.get("canvas").getCanvasBBox().width;this.set("ratio",e),this.updateViewport()}}},e.prototype.getViewport=function(){return this.get("viewport")},e.prototype.getContainer=function(){return this.get("container")},e.prototype.updateGraphImg=function(t){var e=this;e.get("imgDOM").remove(),e.set("graphImg",t);var n=Uh(''));e.set("imgDOM",n),n.src=t,e.updateImgSize(),e.get("containerSpan").appendChild(n),e.updateCanvas()},e.prototype.destroy=function(){var t=this.get("container");t.parentNode.removeChild(t)},e}(Xf);const wv=xv;var _v=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Sv=function(){return Sv=Object.assign||function(t){for(var e,n=1,r=arguments.length;n(o||r.get("height"))&&n>1||s<(a||.05*r.get("height"))&&n<1)&&(n=1),s*=n,e.set("r",s),e.filter(t)}},e.prototype.filter=function(t){var e=this,n=e.get("graph"),r=n.getNodes(),i={},o=e.get("r"),a=e.get("type"),s={x:t.x,y:t.y};e.updateDelegate(s,o);var u=e.get("shouldShow"),l=e.get("vShapes");l&&l.forEach((function(t){t.remove(),t.destroy()})),l=[],r.forEach((function(t){var e=t.getModel(),n=e.x,r=e.y;Ev({x:n,y:r},s)
    ");r.appendChild(i),this.set("container",i);var o=this.render();Gf(i,this.getContainerPos(o)),this.bindEvents()},e.prototype.getContainerPos=function(t){void 0===t&&(t=[0,0]);var e=this.get("graph"),n=this.get("offsetX"),r=this.get("offsetY"),i=this.get("margin"),o=this.get("position").split("-"),a={top:0,right:1,bottom:2,left:3},s={left:(e.getWidth()-t[0])/2+0,top:(e.getHeight()-t[1])/2+0};return o.forEach((function(n){var r=i[a[n]],o=n;switch(n){case"top":case"left":r+=0;break;case"bottom":r=e.getHeight()-t[1]-r+0,o="top";break;default:r=e.getWidth()-t[0]-r+0,o="left"}s[o]=r})),s.top+=r+e.getContainer().offsetTop,s.left+=n+e.getContainer().offsetLeft,Object.keys(s).forEach((function(t){s[t]="".concat(s[t],"px")})),s},e.prototype.bindEvents=function(){var t=this,e=t.get("filter");if(e&&e.enable){var n=e.trigger||"click";Rv.includes(n)||(console.warn("Trigger for legend filterling must be 'click' or 'mouseenter', 'click' will take effect by default."),n="click");var r=t.get("legendCanvas");"mouseenter"===n?(r.on("node-container:mouseenter",(function(e){return t.filterData(e)})),r.on("node-container:mouseleave",(function(e){t.clearFilter(),t.clearActiveLegend()}))):(r.on("node-container:click",(function(e){return t.filterData(e)})),r.on("click",(function(e){e.target&&e.target.isCanvas&&e.target.isCanvas()&&(t.clearFilter(),t.clearActiveLegend())})))}},e.prototype.changeData=function(t){this.set("data",t);var e=this.render();Gf(this.get("container"),this.getContainerPos(e))},e.prototype.activateLegend=function(t){var e=this.get("filter");(null==e?void 0:e.multiple)||this.clearActiveLegend();var n=t.get("parent");n.get("active")?(n.set("active",!1),this.findLegendItemsByState("active").length&&n.set("inactive",!0)):(n.set("inactive",!1),n.set("active",!0)),this.findLegendItemsByState("active").length?this.findLegendItemsByState("active","all",!1).forEach((function(t){t.set("inactive",!0)})):this.clearActiveLegend();var r=(null==e?void 0:e.legendStateStyles)||{},i=(null==r?void 0:r.inactive)||{opacity:.5,"text-shape":{opacity:.5}},o=i["text-shape"]||{};this.findLegendItemsByState("inactive").forEach((function(t){var e=t.get("children"),n=e[0],r=e[1];n.attr(Lv(Lv({},n.get("oriAttrs")),i)),r.attr(Lv(Lv({},r.get("oriAttrs")),o))}));var a=(null==r?void 0:r.active)||{stroke:"#000",lineWidth:2,"text-shape":{fontWeight:"bold"}},s=a["text-shape"]||{};this.findLegendItemsByState("active").forEach((function(t){var e=t.get("children"),n=e[0],r=e[1];n.attr(Lv(Lv({},n.get("oriAttrs")),a)),r.attr(Lv(Lv({},r.get("oriAttrs")),s))}))},e.prototype.findLegendItemsByState=function(t,e,n){void 0===e&&(e="all"),void 0===n&&(n=!0);var r=this.get("legendCanvas").find((function(t){return"root"===t.get("name")})),i=r.find((function(t){return"node-group"===t.get("name")})),o=r.find((function(t){return"edge-group"===t.get("name")}));return"node"===e?i.get("children").filter((function(e){return!!e.get(t)===n})):"edge"===e?o.get("children").filter((function(e){return!!e.get(t)===n})):i.get("children").filter((function(e){return!!e.get(t)===n})).concat(o.get("children").filter((function(e){return!!e.get(t)===n})))},e.prototype.clearActiveLegend=function(){var t=this.get("legendCanvas").find((function(t){return"root"===t.get("name")}));[t.find((function(t){return"node-group"===t.get("name")})),t.find((function(t){return"edge-group"===t.get("name")}))].forEach((function(t){t.get("children").forEach((function(t){t.set("active",!1),t.set("inactive",!1);var e=t.get("children"),n=e[0],r=e[1];n.attr(n.get("oriAttrs")),r.attr(r.get("oriAttrs"))}))}))},e.prototype.filterData=function(t){var e=this.get("filter"),n=null==e?void 0:e.filterFunctions;if(e&&n){var r=this.get("legendCanvas"),i=this.get("graph"),o=e.graphActiveState||"active",a=e.graphInactiveState||"inactive",s=e.multiple;this.clearFilter(),s||this.clearActiveLegend(),this.activateLegend(t.target);var u=r.find((function(t){return"root"===t.get("name")})),l=u.find((function(t){return"node-group"===t.get("name")})),c=u.find((function(t){return"edge-group"===t.get("name")})),h=l.get("children").filter((function(t){return t.get("active")})),d=c.get("children").filter((function(t){return t.get("active")})),f=0,p=["getNodes","getEdges"];p.forEach((function(t){i[t]().forEach((function(e){var r=!1;("getNodes"===t?h:d).forEach((function(t){var i=n[t.get("id")];r=r||i(e.getModel())})),r?(i.setItemState(e,a,!1),i.setItemState(e,o,!0),f++):(i.setItemState(e,o,!1),i.setItemState(e,a,!0))}))})),f||p.forEach((function(t){i[t]().forEach((function(t){i.clearItemStates(t,[a])}))}))}},e.prototype.clearFilter=function(){var t=this.get("graph"),e=this.get("filter");if(e){var n=e.graphActiveState||"active",r=e.graphInactiveState||"inactive";t.getNodes().forEach((function(e){t.clearItemStates(e,[n,r])})),t.getEdges().forEach((function(e){t.clearItemStates(e,[n,r])}))}},e.prototype.render=function(){var t=this;this.processData();var e=this.get("legendCanvas");e?e.clear():e=new Ic({container:this.get("container"),width:200,height:200});var n=e.addGroup({name:"root"}),r=n.addGroup({name:"node-group"}),i=n.addGroup({name:"edge-group"});this.set("legendCanvas",e);var o=this.get("itemsData"),a=[r,i];["nodes","edges"].forEach((function(e,n){o[e].forEach((function(r){var i,o,s=a[n].addGroup({id:r.id,name:"node-container"}),u=r.type,l=t.getShapeSize(r),c=l.width,h=l.height,d=l.r,f=t.getStyle(e.substr(0,4),r);switch(r.type){case"circle":default:o={r:d,x:0,y:0};break;case"rect":o={width:c,height:h,x:-c/2,y:-h/2};break;case"ellipse":o={rx:c,ry:h,x:0,y:0},u="ellipse";break;case"line":o={x1:-c/2,y1:0,x2:c/2,y2:0},u="line";break;case"quadratic":o={path:[["M",-c/2,0],["Q",0,c/2,c/2,0]]},u="path";break;case"cubic":o={path:[["M",-c/2,0],["C",-c/6,c/2,c/6,-c/2,c/2,0]]},u="path";break;case"diamond":o={path:[["M",0,-h],["L",c,0],["L",0,h],["L",-c,0],["Z"]]},u="path";break;case"triangle":o={path:[["M",-c,h],["L",0,-h],["L",c,h],["Z"]]},u="path";break;case"star":o={path:el.getStarPath(3*d,1.2*d)},u="path"}var p=s.addShape(u,{attrs:Lv(Lv({},o),f),name:"".concat(r.type,"-node-keyShape"),oriAttrs:Lv({opacity:1},f)});if(r.label){var m=p.getBBox(),g=(null===(i=r.labelCfg)||void 0===i?void 0:i.style)||{},v=Lv({textAlign:"begin",fontSize:12,textBaseline:"middle",fill:"#000",opacity:1,fontWeight:"normal"},g);s.addShape("text",{attrs:Lv({x:m.maxX+4,y:0,text:r.label},v),className:"legend-label",name:"".concat(r.type,"-node-text"),oriAttrs:v})}}))}));var s,u=this.get("padding"),l=n.find((function(t){return"title-container"===t.get("name")})),c={height:0,maxY:0,width:0};if(this.get("title")){l||(l=n.addGroup({name:"title-container"}));var h={fontSize:20,fontFamily:"Arial",fontWeight:300,textBaseline:"top",textAlign:"center",fill:"#000",x:0,y:u[0]},d=this.get("titleConfig")||{},f=Object.assign(h,d.style||{});s=l.addShape("text",{attrs:Lv({text:this.get("title")},f)}),c=l.getCanvasBBox(),l.setMatrix([1,0,0,0,1,0,d.offsetX,d.offsetY,1])}this.layoutItems();var p=n.getCanvasBBox(),m=r.getCanvasBBox(),g=m.minX<0?Math.abs(m.minX)+u[3]:u[3],v=c.maxYl.max&&(l.max=o[0]),f>c&&(c=f),t.setMatrix([1,0,0,0,1,0,p,m,1])}));var h=l.max-l.min,d={min:0,max:-1/0},f=s.getCanvasBBox();o[0]=0,o[1]="vertical"===r?f.maxX+e:f.maxY+n,u.get("children").forEach((function(t,i){0===i&&(d.min=o[0]);var a=t.get("children")[0],s=t.getCanvasBBox(),u=a.getBBox(),l=u.width,c=u.height,h=0,f=0;"vertical"===r?(h=o[1],f=o[0],o[0]=f+s.height+n,t.setMatrix([1,0,0,0,1,0,0,f+c/2,1])):(h=o[0],f=o[1],o[0]=h+s.width+e,t.setMatrix([1,0,0,0,1,0,h+l/2,0,1])),o[0]>d.max&&(d.max=o[0])}));var p=d.max-d.min;if(i&&""!==i&&"left"!==i){var m=h-p,g="center"===i?Math.abs(m)/2:Math.abs(m);(m<0?s:u).get("children").forEach((function(t){var e=t.getMatrix()||[1,0,0,0,1,0,0,0,1];"vertical"===r?e[7]+=g:e[6]+=g,t.setMatrix(e)}))}},e.prototype.processData=function(){var t=this.get("data"),e={nodes:[],edges:[]};t.nodes&&(t.nodes.sort((function(t,e){return t.order-e.order})),t.nodes.forEach((function(t){var n,r,i,o,a,s=t.size||[(null===(n=t.style)||void 0===n?void 0:n.width)||(null===(r=t.style)||void 0===r?void 0:r.r)||8,(null===(i=t.style)||void 0===i?void 0:i.height)||(null===(o=t.style)||void 0===o?void 0:o.r)||8],u=(null===(a=t.labelCfg)||void 0===a?void 0:a.style)||{};e.nodes.push({id:t.id||(0,x.uniqueId)(),type:t.type||"circle",style:Lv({},t.style),order:t.order,label:t.label,itemType:"node",size:s,labelCfg:{position:"right",style:Lv({fontFamily:"Arial"},u)}})}))),t.edges&&(t.edges.sort((function(t,e){return t.order-e.order})),t.edges.forEach((function(t){var n,r,i=t.type||"line";"cubic-horizontal"===t.type&&(i="cubic");var o=(null===(n=t.labelCfg)||void 0===n?void 0:n.style)||{},a=t.size||[(null===(r=t.style)||void 0===r?void 0:r.width)||8,1];e.edges.push({id:t.id||(0,x.uniqueId)(),type:i,size:a,style:Lv({lineWidth:(0,x.isArray)(a)?a[1]:1},t.style),order:t.order,label:t.label,itemType:"edge",labelCfg:{position:"right",style:Lv({fontFamily:"Arial"},o)}})}))),this.set("itemsData",e)},e.prototype.getContainer=function(){return this.get("container")},e.prototype.formatArray=function(t){var e=this.get(t);if((0,x.isNumber)(e))this.set(t,[e,e,e,e]);else if((0,x.isArray)(e))switch(e.length){case 0:this.set(t,[0,0,0,0]);break;case 1:this.set(t,[e[0],e[0],e[0],e[0]]);break;case 2:this.set(t,[e[0],e[1],e[0],e[1]]);break;case 3:this.set(t,[e[0],e[1],e[2],e[1]])}return this.get(t)},e.prototype.getShapeSize=function(t){var e,n,r;return t.size&&((0,x.isArray)(t.size)?(e=t.size[0],n=t.size[1]||t.size[0],r=t.size[0]/2):(0,x.isNumber)(t.size)&&(e=t.size,n=t.size,r=t.size/2)),t.style&&(t.style.width&&(e=t.style.width),t.style.height&&(n=t.style.height),t.style.r&&(r=t.style.r)),r||(r=5),e||(e=r),n||(n=r),{width:e,height:n,r}},e.prototype.getStyle=function(t,e){return Lv(Lv({},"node"===t?{fill:"#ccc",lineWidth:0}:{stroke:"#000",lineWidth:1}),e.style||{})},e.prototype.destroy=function(){var t=this.get("legendCanvas");null==t||t.destroy();var e=this.get("graph").get("container"),n=this.get("container");e.removeChild(n)},e}(Xf);const zv=Dv;var Fv=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bv=function(){return Bv=Object.assign||function(t){for(var e,n=1,r=arguments.length;n+

    ":"

    -

    ",c=e?"":"

    ".concat(a,"

    "),h=e?"".concat(u,"px"):"".concat(u,"px ").concat(u,"px 0 0");return'
    \n \n

    ").concat(i,"

    \n ").concat(l,"\n ").concat("

    x

    ","\n
    \n ").concat(c,"\n ")}},e.prototype.init=function(){var t=this;if(!t.destroyed){var e=t.get("graph").getContainer(),n=t.get("container");this.get("containerCfg")?(n=this.createContainer(),e.appendChild(n)):n=e,this.set("container",n);var r=e.getBoundingClientRect(),i=new Ic({container:e,width:r.right-r.left,height:r.bottom-r.top});Gf(i.get("el"),{position:"absolute",top:0,left:0,pointerEvents:"none"}),window.addEventListener("resize",(0,x.debounce)((function(){return t.resizeCanvas(t)}),100));var o=i.addGroup({id:"annotation-link-group"});t.set("linkGroup",o),t.set("canvas",i),t.get("getTitle")||t.set("getTitle",(function(t){var e,n=(null===(e=null==t?void 0:t.getModel)||void 0===e?void 0:e.call(t))||{},r=n.label,i=n.id;return r||i||"-"})),t.get("getContent")||t.set("getContent",(function(t){var e,n;if(!t)return"-";var r=(null===(e=t.getModel)||void 0===e?void 0:e.call(t))||{},i=r.label,o=r.id,a=null===(n=t.getType)||void 0===n?void 0:n.call(t),s=a?"".concat(a,": "):"";return"".concat(s).concat(i||o||"")}));var a=t.get("defaultData");a&&this.readData(a)}},e.prototype.createContainer=function(){var t=this;if(!this.destroyed){var e=this.get("containerCfg"),n=this.get("graph"),r=n.getContainer(),i=r.getBoundingClientRect(),o=i.left,a=i.right,s=i.top,u=i.bottom-s,l=a-o,c=e.position,h=void 0===c?"top":c,d=e.offsetX,f=void 0===d?0:d,p=e.offsetY,m=void 0===p?0:p,g=Uv(e,["position","offsetX","offsetY"]),v=e.height,y=void 0===v?"fit-content":v,b=e.width,w=void 0===b?n.getWidth():b;"100%"===y&&(y=u),"100%"===w&&(w=l);var _="unset",S="unset",E={};switch(h){case"right":_="".concat(u,"px"),(E={top:0,right:0}).right+=o+f,E.top+=s+m;break;case"bottom":S="".concat(l,"px"),(E={bottom:0,left:0}).left+=o+f,E.bottom+=s+m;break;case"top":S="".concat(l,"px");case"left":_="".concat(u,"px");default:(E={top:0,left:0}).left+=o+f,E.top+=s+m}Object.keys(E).forEach((function(t){E[t]="".concat(E[t],"px")}));var A=Uh("
    "));return Gf(A,Bv(Bv({position:"absolute",display:"top"===h||"bottom"===h?"inline-flex":"unset",width:(0,x.isNumber)(w)?"".concat(w,"px"):w,height:(0,x.isNumber)(y)?"".concat(y,"px"):y,maxHeight:_,maxWidth:S,overflow:"scroll"},E),g)),r.appendChild(A),A.addEventListener("scroll",(function(e){t.updateLinks()})),A}},e.prototype.resizeCanvas=function(t){clearTimeout(t.resizeTimer),t.resizeTimer=setTimeout((function(){if(t&&!t.destroyed){var e=t.get("container").getBoundingClientRect(),n=e.right-e.left,r=e.bottom-e.top;t.get("canvas").changeSize(n,r),t.updateOutsideCards(t)}}),250)},e.prototype.updateOutsideCards=function(t){var e=t||this,n=e.get("cardInfoMap")||{},r=e.get("graph"),i=r.getPointByCanvas(0,0),o=r.getPointByCanvas(r.getWidth(),r.getHeight()),a=r.getClientByPoint(i.x,i.y),s=a.x,u=a.y,l=r.getClientByPoint(o.x,o.y),c=l.x,h=l.y;Object.values(n).forEach((function(t){var e=t.card;if(e){var n=e.style,r=Gv(n.left),i=Gv(n.top),o=e.getBoundingClientRect(),a=o.width,l=o.height,d=r,f=i;r+a>c-s&&(d=c-s-a),r<0&&(d=0),i+l>h-u&&(f=h-u-l),i<0&&(f=0),Gf(e,{left:"".concat(d,"px"),top:"".concat(f,"px")})}})),e.updateLinks()},e.prototype.showAnnotation=function(t){if(!this.destroyed){var e=t.item;this.toggleAnnotation(e)}},e.prototype.hideCards=function(){var t=this;if(!t.destroyed){var e=t.get("cardInfoMap")||{};Object.keys(e).forEach((function(e){t.hideCard(e)}))}},e.prototype.toggleAnnotation=function(t,e){var n,r;void 0===e&&(e={});var i=this;if(!i.destroyed){var o=i.get("cardInfoMap")||{},a=i.get("graph"),s=i.get("container"),u=i.get("containerCfg"),l=Object.assign({},i.get("cardCfg")||{},e),c=l.minHeight,h=l.minWidth,d=l.width,f=l.height,p=l.collapsed,m=void 0!==p&&p,g=l.x,v=l.y,y=l.title,b=l.content,w=l.maxTitleLength,_=l.defaultBegin,S=Uv(l,["minHeight","minWidth","width","height","collapsed","x","y","title","content","maxTitleLength","defaultBegin"]),E=i.get("linkGroup"),A=this.get("rows")||[[]],M=null===(n=t.isCanvas)||void 0===n?void 0:n.call(t),C=M?jv:t.getID(),T=o[C]||{},k=T.card,I=T.link,N=T.x,P=T.y,O=T.title,L=T.content,R=this.get("getTitle"),D=this.get("getContent"),z=this.get("getContentPlaceholder")||function(){return""},F=this.get("getTitlePlaceHolder")||function(){return""},B=z(t),U=F(t),j=Uh(this.getDOMContent(Bv({itemId:C,collapsed:m,title:(null===(r=O||y||(null==R?void 0:R(t)))||void 0===r?void 0:r.substr(0,w))||U,content:L||b||(null==D?void 0:D(t))||B},S))),V=(0,x.isNumber)(c)?"".concat(c,"px"):c;Gf(j,{minHeight:m?"unset":V,minWidth:(0,x.isNumber)(h)?"".concat(h,"px"):h,height:f,width:d});var H,G=!!k;if(G?(null==I||I.remove(!0),s.replaceChild(j,k)):s.appendChild(j),!u){if(H=s.getBoundingClientRect()||{},void 0!==g&&void 0!==v)N=g,P=v;else if(!G&&!M){var W=H.top,X=_||{},Y=X.left,q=X.right,$=void 0===q?16:q,K=X.top,Z=void 0===K?8:K,Q=X.bottom,J=$,tt=Z;isNaN(Y)||(J=s.scrollWidth-Y),isNaN(Q)||(tt=s.scrollHeight-Q);var et=(0,x.isNumber)(h)?h:100;N=s.scrollWidth-j.scrollWidth-(A.length-1)*et-J;var nt=A[A.length-1],rt=(nt[nt.length-1]||{}).bbox;P=(null==rt?void 0:rt.bottom)-W||tt}Gf(j,{position:"absolute",left:"".concat(N,"px"),top:"".concat(P,"px"),cusor:u?"unset":"move"})}this.bindListener(j,C);var it=j.getBoundingClientRect();if(!M){var ot=Hv(t,it,a,this.get("canvas")),at=this.get("linkStyle");I=E.addShape("path",{attrs:Bv({lineWidth:1,lineDash:[5,5],stroke:"#ccc",path:ot},at)})}if(o[C]=Bv(Bv({},o[C]||{}),{id:C,collapsed:m,card:j,link:I,x:N,y:P,cardBBox:it,content:L||b,title:O||y,contentPlaceholder:B,titlePlaceholder:U,isCanvas:M}),i.set("cardInfoMap",o),u)this.updateCardPositionsInConatainer(),this.updateLinks();else{var st=!isNaN(g)&&!isNaN(v);if(!G&&!M&&!st){var ut=H.bottom,lt=void 0===ut?0:ut;W=H.top;A[A.length-1].push({id:C,bbox:it}),it.top>lt-W-it.height-16&&A.push([]),this.set("rows",A)}}this.updateCardSize(C);var ct=this.get("onAnnotationChange");null==ct||ct(o[C],G?"update":"create")}},e.prototype.updateCardPositionsInConatainer=function(){if(!this.destroyed){var t=this.get("cardInfoMap");if(t){var e=this.get("container"),n=this.get("containerCfg").position,r=e.getBoundingClientRect().width,i=getComputedStyle(e),o=Gv(i.paddingLeft)+Gv(i.paddingRight);r-=o,Object.values(t).forEach((function(t){var e=t.card,i=e.getBoundingClientRect().width;switch(n){case"right":Gf(e,{marginLeft:r?"".concat(r-i,"px"):"0px"});break;case"top":case"bottom":Gf(e,{marginLeft:"8px"})}}))}}},e.prototype.handleExpandCollapseCard=function(t){if(!this.destroyed){var e=this.get("graph"),n=this.get("cardInfoMap");if(n){var r=n[t].collapsed,i=e.findById(t);if(i)"hide"!==this.get("cardCfg").collapseType||r?this.toggleAnnotation(i,{collapsed:!r}):this.hideCard(t),n[t]=Bv(Bv({},n[t]),{collapsed:!r})}}},e.prototype.hideCard=function(t){if(!this.destroyed){var e=this.get("cardInfoMap");if(e&&e[t]){var n=e[t],r=n.card,i=n.link;Gf(r,{display:"none"}),null==i||i.hide(),this.get("onAnnotationChange")(e[t],"hide")}}},e.prototype.removeCard=function(t){if(!this.destroyed){var e=this.get("cardInfoMap");if(e){var n=e[t],r=n.card,i=n.link;this.get("container").removeChild(r),null==i||i.remove(!0),delete e[t],this.get("onAnnotationChange")(n,"remove")}}},e.prototype.bindListener=function(t,e){var n=this;if(!this.destroyed){t.addEventListener("mousemove",(function(t){var r;if("g6-annotation-collapse"===t.target.className?r="collapse":"g6-annotation-expand"===t.target.className?r="expand":"g6-annotation-close"===t.target.className&&(r="close"),r){var i=n.get("cardCfg").onMouseEnterIcon;(void 0===i?function(){}:i)(t,e,r)}})),t.addEventListener("mouseout",(function(t){var r;if("g6-annotation-collapse"===t.target.className?r="collapse":"g6-annotation-expand"===t.target.className?r="expand":"g6-annotation-close"===t.target.className&&(r="close"),r){var i=n.get("cardCfg").onMouseLeaveIcon;(void 0===i?function(){}:i)(t,e,r)}})),t.addEventListener("mouseenter",(function(t){var r=n.get("cardInfoMap");if(r){var i=n.get("graph"),o=i.findById(e);if(o){var a=n.get("itemHighlightState");i.setItemState(o,a,!0)}var s=r[e].link;if(s){var u=n.get("linkHighlightStyle")||{};s.attr(u)}}})),t.addEventListener("mouseleave",(function(t){var r=n.get("cardInfoMap");if(r){var i=n.get("graph"),o=i.findById(e);if(o){var a=n.get("itemHighlightState");i.setItemState(o,a,!1)}var s=r[e].link;if(s){var u=n.get("linkHighlightStyle")||{};Object.keys(u).forEach((function(t){s.attr(t,void 0),s.attr(t,void 0)}));var l=n.get("linkStyle");s.attr(l)}}})),t.addEventListener("click",(function(t){var r=(n.get("cardCfg")||{}).onClickIcon;if("g6-annotation-collapse"===t.target.className||"g6-annotation-expand"===t.target.className)"hide"===n.get("cardCfg").collapseType?n.hideCard(e):n.handleExpandCollapseCard(e),null==r||r(t,e,"g6-annotation-collapse"===t.target.className?"collapse":"expand");else if("g6-annotation-close"===t.target.className){"remove"===n.get("cardCfg").closeType?n.removeCard(e):n.hideCard(e),null==r||r(t,e,"close")}})),this.get("editable")&&t.addEventListener("dblclick",(function(t){var r=n.get("cardInfoMap"),i=(n.get("cardCfg")||{}).maxTitleLength,o=void 0===i?20:i;if(r){var a=t.target,s=a.className;if("g6-annotation-title"===s||"g6-annotation-content"===s){var u="g6-annotation-title"===s?a.getBoundingClientRect():a.parentNode.getBoundingClientRect(),l=u.width,c=u.height,h=getComputedStyle(a),d=Uh("<".concat("g6-annotation-title"===s?"input":"textarea",' class="').concat(s,'-input" type="textarea" style="width:').concat(l,"px; height: ").concat(c,'px; min-width: 16px;"/>')),f=Uh('
    '));f.appendChild(d),a.parentNode.replaceChild(f,a);var p=r[e],m=p.contentPlaceholder,g=p.titlePlaceholder,v=p.content,y=p.title,b=v;"g6-annotation-title"===s?(d.name="title",d.maxLength=o,b=y):d.name="content",b?(d.innerHTML=a.innerHTML,d.value=a.innerHTML):d.placeholder="g6-annotation-title"===s?g:m,d.focus(),d.addEventListener("blur",(function(t){d.value&&(a.innerHTML=d.value,p[d.name||"title"]=d.value),f.parentNode.replaceChild(a,f),n.updateCardSize(e);var r=n.get("onAnnotationChange");null==r||r(p,"update")}))}}}));var r=["g6-annotation-title","g6-annotation-content","g6-annotation-title-input","g6-annotation-content-input"];t.draggable=!0,t.addEventListener("dragstart",(function(e){var i=e.target.className;if(!r.includes(i)){var o=t.style;n.set("dragging",{card:t,x:e.clientX,y:e.clientY,left:Gv(o.left),top:Gv(o.top)})}})),t.addEventListener("drag",(function(t){t.preventDefault();var r=n.get("cardInfoMap");if(r){var i=t.clientX,o=t.clientY,a=n.get("dragging");if(!isNaN(i)&&!isNaN(o)&&a){var s=a.x,u=a.y,l=a.left,c=a.top,h=a.card,d=i-s,f=o-u;l+=d,c+=f;var p=n.get("graph"),m=p.getPointByCanvas(0,0),g=p.getPointByCanvas(p.getWidth(),p.getHeight()),v=p.getClientByPoint(m.x,m.y),y=v.x,b=v.y,x=p.getClientByPoint(g.x,g.y),w=x.x,_=x.y,S=h.getBoundingClientRect();(l>w-y-(S.right-S.left)&&d>0||l<0&&d<0)&&(l-=d),(c>_-b-(S.bottom-S.top)&&f>0||c<0&&f<0)&&(c-=f),Gf(h,{left:"".concat(l,"px"),top:"".concat(c,"px"),visibility:"hidden"}),s=i,u=o;var E=(r[e]||{}).link;if(E){var A=p.findById(e);E.attr("path",Hv(A,S,p,n.get("canvas")))}n.set("dragging",{x:s,y:u,left:l,top:c,card:h})}}}));t.addEventListener("dragend",(function(t){var r=n.get("cardInfoMap");if(r){var i=n.get("dragging");if(i){var o=i.left,a=i.top,s=i.card;r[e].x=o,r[e].y=a,Gf(s,{visibility:"visible"}),n.set("dragging",!1);var u=n.get("rows");null==u||u.forEach((function(t){for(var n=t.length-1;n>=0;n--)t[n].id===e&&t.splice(n,1)}));var l=n.get("onAnnotationChange");null==l||l(r[e],"update")}}}))}},e.prototype.updateCardSize=function(t){var e=this.get("cardInfoMap");if(e){var n=e[t].card,r=n.getBoundingClientRect().width,i=n.getElementsByClassName("g6-annotation-title")[0];if(i){var o=getComputedStyle(i),a=Gv(o.marginLeft),s=i.getBoundingClientRect().width;Gf(i,{marginRight:"".concat(r-a-24-16-s,"px")})}}},e.prototype.updateLink=function(t){var e=t.item;if(e){var n=this.get("cardInfoMap");if(n){var r=this.get("canvas"),i=this.get("graph"),o=n[e.getID()]||{},a=o.link,s=o.card;if(a){var u=Hv(e,s.getBoundingClientRect(),i,r);a.attr("path",u)}}}},e.prototype.updateLinks=function(){var t=this;if(!this.destroyed){var e=this.get("cardInfoMap");if(e){var n=this.get("graph");Object.values(e).forEach((function(e){var r=e.id,i=n.findById(r);t.updateLink({item:i})}))}}},e.prototype.onGraphDataChange=function(){var t=this,e=this.get("cardInfoMap");if(e){var n=this.get("graph");Object.values(e).forEach((function(e){var r=e.id,i=e.card,o=e.isCanvas;if(i&&!o&&"none"!==i.style.display){var a=n.findById(r);a&&a.isVisible()?t.toggleAnnotation(a):t.hideCard(r)}}))}},e.prototype.onGraphItemVisibilityChange=function(t){var e=t.item,n=t.visible;if(e&&!e.destroyed){var r=this.get("cardInfoMap");if(r){var i=e.getID();r[i]&&(n||this.hideCard(i))}}},e.prototype.saveData=function(t){void 0===t&&(t=!1);var e=this.get("cardInfoMap");if(e){var n=this.get("graph"),r=this.get("getTitle"),i=this.get("getContent"),o=[];return Object.values(e).forEach((function(e){var a=e.title,s=e.content,u=e.x,l=e.y,c=e.id,h=e.collapsed,d=e.card;if(!d||"none"!==d.style.display||t){var f=n.findById(c)||n.get("canvas");o.push({id:c,x:u,y:l,collapsed:h,title:a||(null==r?void 0:r(f)),content:s||(null==i?void 0:i(f)),visible:d&&"none"!==d.style.display})}})),o}},e.prototype.readData=function(t){var e=this,n=this.get("graph");t.forEach((function(t){var r=t.id,i=t.x,o=t.y,a=t.title,s=t.content,u=t.collapsed,l=t.visible,c=n.findById(r);if(c||r!==jv||(c=n.get("canvas")),!c){var h=e.get("cardInfoMap")||{};return h[r]=t,void e.set("cardInfoMap",h)}e.toggleAnnotation(c,{x:i,y:o,title:a,content:s,collapsed:u}),l||e.hideCard(r)}))},e.prototype.clear=function(){var t=this.get("cardInfoMap");if(t){var e=this.get("container");Object.values(t).forEach((function(t){var n=t.card,r=t.link;e.removeChild(n),null==r||r.remove(!0)})),this.set("cardInfoMap",{})}},e.prototype.destroy=function(){var t;this.clear(),null===(t=this.get("canvas"))||void 0===t||t.destroy();var e=this.get("graph");e&&!e.destroyed&&(this.get("containerCfg")&&e.getContainer().removeChild(this.get("container")),this.destroyed=!0)},e}(Xf);var Hv=function(t,e,n,r){var i,o;if("edge"===t.getType())o=[t.getKeyShape().getPoint(.5)];else{var a=null===(i=t.getKeyShape)||void 0===i?void 0:i.call(t).getBBox(),s=a.minX,u=a.minY,l=a.maxX,c=a.maxY,h=t.getModel(),d=h.x,f=h.y;o={left:{x:s+=d,y:((u+=f)+(c+=f))/2},right:{x:l+=d,y:(u+c)/2},top:{x:(s+l)/2,y:u},bottom:{x:(s+l)/2,y:c}}}Object.keys(o).forEach((function(t){var e=o[t],i=e.x,a=e.y,s=n.getClientByPoint(i,a);o[t]=r.getPointByClient(s.x,s.y)}));var p=e.top,m=void 0===p?0:p,g=e.left,v=void 0===g?0:g,y=e.right,b=void 0===y?0:y,x=e.bottom,w=void 0===x?0:x,_={left:r.getPointByClient(v,(m+w)/2),right:r.getPointByClient(b,(m+w)/2),top:r.getPointByClient((v+b)/2,m),bottom:r.getPointByClient((v+b)/2,w)};return function(t,e){var n,r,i=1/0;Object.keys(t).forEach((function(o){var a=t[o];Object.keys(e).forEach((function(t){var o=e[t],s=a.x-o.x,u=a.y-o.y,l=s*s+u*u;i>l&&(i=l,n=a,r=o)}))}));var o=el.getControlPoint(n,r,.5,20);return[["M",n.x,n.y],["Q",o.x,o.y,r.x,r.y]]}(o,_)},Gv=function(t){return Number(t.replace(/\s+|px/gi,""))||0};const Wv={PluginBase:Xf,Menu:np,Grid:Zf,Minimap:up,Bundling:fp,ToolBar:wp,Tooltip:Ep,Fisheye:yp,TimeBar:vv,ImageMinimap:wv,EdgeFilterLens:Cv,SnapLine:Pv,Legend:zv,Annotation:Vv};al("circle",{options:{size:cl.defaultNode.size,style:{x:0,y:0,stroke:cl.defaultNode.style.stroke,fill:cl.defaultNode.style.fill,lineWidth:cl.defaultNode.style.lineWidth},labelCfg:{style:{fill:cl.nodeLabel.style.fill,fontSize:cl.nodeLabel.style.fontSize,fontFamily:cl.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:cl.defaultNode.linkPoints.size,lineWidth:cl.defaultNode.linkPoints.lineWidth,fill:cl.defaultNode.linkPoints.fill,stroke:cl.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:(0,b.__assign)({},cl.nodeStateStyles)},shapeType:"circle",labelPosition:"center",drawShape:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).icon,r=void 0===n?{}:n,i=this.getShapeStyle(t),o=(0,x.deepMix)({},r,t.icon),a="".concat(this.type,"-keyShape"),s=e.addShape("circle",{attrs:i,className:a,name:a,draggable:!0});e.shapeMap[a]=s;var u=o.width,l=o.height,c=o.show,h=o.text;if(c){var d="".concat(this.type,"-icon");e.shapeMap[d]=h?e.addShape("text",{attrs:(0,b.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},o),className:d,name:d,draggable:!0}):e.addShape("image",{attrs:(0,b.__assign)({x:-u/2,y:-l/2},o),className:d,name:d,draggable:!0})}return this.drawLinkPoints(t,e),s},drawLinkPoints:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).linkPoints;if(n){var r=n||{},i=r.top,o=r.left,a=r.right,s=r.bottom,u=r.size,l=r.r,c=(0,b.__rest)(r,["top","left","right","bottom","size","r"]),h=this.getSize(t)[0]/2;if(o){var d="link-point-left";e.shapeMap[d]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},c),{x:-h,y:0,r:u/2||l||5}),className:d,name:d,isAnchorPoint:!0})}if(a){var f="link-point-right";e.shapeMap[f]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},c),{x:h,y:0,r:u/2||l||5}),className:f,name:f,isAnchorPoint:!0})}if(i){var p="link-point-top";e.shapeMap[p]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},c),{x:0,y:-h,r:u/2||l||5}),className:p,name:p,isAnchorPoint:!0})}if(s){var m="link-point-bottom";e.shapeMap[m]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},c),{x:0,y:h,r:u/2||l||5}),className:m,name:m,isAnchorPoint:!0})}}},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,n={stroke:t.color},r=(0,x.deepMix)({},e,n),i=this.getSize(t)[0]/2;return(0,b.__assign)({x:0,y:0,r:i},r)},update:function(t,e,n){var r=e.getContainer(),i=this.getSize(t),o=(0,b.__assign)({},t.style);void 0===t.style.stroke&&t.color&&(o.stroke=t.color),void 0!==t.style.r||isNaN(i[0])||(o.r=i[0]/2),this.updateShape(t,e,o,!0,n),this.updateLinkPoints(t,r)}},"single-node"),al("rect",{options:{size:[100,30],style:{radius:0,stroke:cl.defaultNode.style.stroke,fill:cl.defaultNode.style.fill,lineWidth:cl.defaultNode.style.lineWidth},labelCfg:{style:{fill:cl.nodeLabel.style.fill,fontSize:cl.nodeLabel.style.fontSize,fontFamily:cl.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:cl.defaultNode.linkPoints.size,lineWidth:cl.defaultNode.linkPoints.lineWidth,fill:cl.defaultNode.linkPoints.fill,stroke:cl.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},anchorPoints:[[0,.5],[1,.5]],stateStyles:(0,b.__assign)({},cl.nodeStateStyles)},shapeType:"rect",labelPosition:"center",drawShape:function(t,e){var n=this.getShapeStyle(t),r=e.addShape("rect",{attrs:n,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});return e.shapeMap["".concat(this.type,"-keyShape")]=r,this.drawLinkPoints(t,e),r},drawLinkPoints:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).linkPoints,r=void 0===n?{}:n,i=r.top,o=r.left,a=r.right,s=r.bottom,u=r.size,l=r.r,c=(0,b.__rest)(r,["top","left","right","bottom","size","r"]),h=this.getSize(t),d=h[0],f=h[1];o&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},c),{x:-d/2,y:0,r:u/2||l||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),a&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},c),{x:d/2,y:0,r:u/2||l||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),i&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},c),{x:0,y:-f/2,r:u/2||l||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),s&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},c),{x:0,y:f/2,r:u/2||l||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,n={stroke:t.color},r=(0,x.mix)({},e,n),i=this.getSize(t),o=r.width||i[0],a=r.height||i[1];return(0,b.__assign)({x:-o/2,y:-a/2,width:o,height:a},r)},update:function(t,e,n){var r=e.getContainer(),i=this.getOptions({}).style,o=this.getSize(t),a=e.get("keyShape");t.size||(o[0]=a.attr("width")||i.width,o[1]=a.attr("height")||i.height);var s={stroke:t.color,x:-o[0]/2,y:-o[1]/2,width:o[0],height:o[1]},u=(0,x.mix)({},i,a.attr(),s);u=(0,x.mix)(u,t.style),this.updateShape(t,e,u,!1,n),this.updateLinkPoints(t,r)}},"single-node"),al("ellipse",{options:{size:[80,40],style:{x:0,y:0,stroke:cl.defaultNode.style.stroke,fill:cl.defaultNode.style.fill,lineWidth:cl.defaultNode.style.lineWidth},labelCfg:{style:{fill:cl.nodeLabel.style.fill,fontSize:cl.nodeLabel.style.fontSize,fontFamily:cl.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:cl.defaultNode.linkPoints.size,lineWidth:cl.defaultNode.linkPoints.lineWidth,fill:cl.defaultNode.linkPoints.fill,stroke:cl.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:(0,b.__assign)({},cl.nodeStateStyles)},shapeType:"ellipse",labelPosition:"center",drawShape:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).icon,r=void 0===n?{}:n,i=this.getShapeStyle(t),o=e.addShape("ellipse",{attrs:i,className:"ellipse-keyShape",name:"ellipse-keyShape",draggable:!0});e.shapeMap["ellipse-keyShape"]=o;var a=r.width,s=r.height,u=r.show,l=r.text;return u&&(e.shapeMap["".concat(this.type,"-icon")]=l?e.addShape("text",{attrs:(0,b.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},r),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):e.addShape("image",{attrs:(0,b.__assign)({x:-a/2,y:-s/2},r),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(t,e),o},drawLinkPoints:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).linkPoints,r=void 0===n?{}:n,i=r.top,o=r.left,a=r.right,s=r.bottom,u=r.size,l=r.r,c=(0,b.__rest)(r,["top","left","right","bottom","size","r"]),h=this.getSize(t),d=h[0]/2,f=h[1]/2;o&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},c),{x:-d,y:0,r:u/2||l||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),a&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},c),{x:d,y:0,r:u/2||l||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),i&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},c),{x:0,y:-f,r:u/2||l||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),s&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},c),{x:0,y:f,r:u/2||l||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,n={stroke:t.color},r=(0,x.mix)({},e,n),i=this.getSize(t),o=i[0]/2,a=i[1]/2;return(0,b.__assign)({x:0,y:0,rx:o,ry:a},r)},update:function(t,e,n){var r=e.getContainer(),i=this.getOptions({}).style,o=this.getSize(t),a={stroke:t.color,rx:o[0]/2,ry:o[1]/2},s=e.get("keyShape"),u=(0,x.mix)({},i,s.attr(),a);u=(0,x.mix)(u,t.style),this.updateShape(t,e,u,!0,n),this.updateLinkPoints(t,r)}},"single-node"),al("diamond",{options:{size:[80,80],style:{stroke:cl.defaultNode.style.stroke,fill:cl.defaultNode.style.fill,lineWidth:cl.defaultNode.style.lineWidth},labelCfg:{style:{fill:cl.nodeLabel.style.fill,fontSize:cl.nodeLabel.style.fontSize,fontFamily:cl.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:cl.defaultNode.linkPoints.size,lineWidth:cl.defaultNode.linkPoints.lineWidth,fill:cl.defaultNode.linkPoints.fill,stroke:cl.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:(0,b.__assign)({},cl.nodeStateStyles)},shapeType:"diamond",labelPosition:"center",drawShape:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).icon,r=void 0===n?{}:n,i=this.getShapeStyle(t),o=e.addShape("path",{attrs:i,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});e.shapeMap["".concat(this.type,"-keyShape")]=o;var a=r.width,s=r.height,u=r.show,l=r.text;return u&&(e.shapeMap["".concat(this.type,"-icon")]=l?e.addShape("text",{attrs:(0,b.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},r),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):e.addShape("image",{attrs:(0,b.__assign)({x:-a/2,y:-s/2},r),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(t,e),o},drawLinkPoints:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).linkPoints,r=void 0===n?{}:n,i=r.top,o=r.left,a=r.right,s=r.bottom,u=r.size,l=r.r,c=(0,b.__rest)(r,["top","left","right","bottom","size","r"]),h=this.getSize(t),d=h[0],f=h[1];o&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},c),{x:-d/2,y:0,r:u/2||l||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),a&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},c),{x:d/2,y:0,r:u/2||l||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),i&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},c),{x:0,y:-f/2,r:u/2||l||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),s&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},c),{x:0,y:f/2,r:u/2||l||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getPath:function(t){var e=this.getSize(t),n=e[0],r=e[1];return[["M",0,-r/2],["L",n/2,0],["L",0,r/2],["L",-n/2,0],["Z"]]},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,n={stroke:t.color},r=(0,x.mix)({},e,n),i=this.getPath(t);return(0,b.__assign)({path:i},r)},update:function(t,e,n){var r=e.getContainer(),i=this.getOptions({}).style,o=this.getPath(t),a={stroke:t.color,path:o},s=e.get("keyShape"),u=(0,x.mix)({},i,s.attr(),a);u=(0,x.mix)(u,t.style),this.updateShape(t,e,u,!0,n),this.updateLinkPoints(t,r)}},"single-node"),al("triangle",{options:{size:40,direction:"up",style:{stroke:cl.defaultNode.style.stroke,fill:cl.defaultNode.style.fill,lineWidth:cl.defaultNode.style.lineWidth},labelCfg:{style:{fill:cl.nodeLabel.style.fill,fontSize:cl.nodeLabel.style.fontSize},offset:15},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:cl.defaultNode.linkPoints.size,lineWidth:cl.defaultNode.linkPoints.lineWidth,fill:cl.defaultNode.linkPoints.fill,stroke:cl.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20,offset:6},stateStyles:(0,b.__assign)({},cl.nodeStateStyles)},shapeType:"triangle",labelPosition:"bottom",drawShape:function(t,e){var n=this.mergeStyle||this.getOptions(t),r=n.icon,i=void 0===r?{}:r,o=n.direction,a=this.getShapeStyle(t),s=t.direction||o,u=e.addShape("path",{attrs:a,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});e.shapeMap["".concat(this.type,"-keyShape")]=u;var l=i.width,c=i.height,h=i.show,d=i.offset,f=i.text;if(h)if(f)e.shapeMap["".concat(this.type,"-icon")]=e.addShape("text",{attrs:(0,b.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},i),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0});else{var p=-l/2,m=-c/2;"up"!==s&&"down"!==s||(m+=d),"left"!==s&&"right"!==s||(p+=d),e.shapeMap["".concat(this.type,"-icon")]=e.addShape("image",{attrs:(0,b.__assign)({x:p,y:m},i),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})}return this.drawLinkPoints(t,e),u},drawLinkPoints:function(t,e){var n=this.mergeStyle||this.getOptions(t),r=n.linkPoints,i=void 0===r?{}:r,o=n.direction,a=t.direction||o,s=i.top,u=i.left,l=i.right,c=i.bottom,h=i.size,d=i.r,f=(0,b.__rest)(i,["top","left","right","bottom","size","r"]),p=this.getSize(t)[0];if(u){var m=null,g=p*Math.sin(1/3*Math.PI),v=p*Math.sin(1/3*Math.PI);"up"===a?m=[-v,g]:"down"===a?m=[-v,-g]:"left"===a&&(m=[-v,v-g]),m&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},f),{x:m[0],y:m[1],r:h/2||d||5}),className:"link-point-left",name:"link-point-left"}))}if(l){var y=null;g=p*Math.sin(1/3*Math.PI),v=p*Math.sin(1/3*Math.PI);"up"===a?y=[v,g]:"down"===a?y=[v,-g]:"right"===a&&(y=[v,v-g]),y&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},f),{x:y[0],y:y[1],r:h/2||d||5}),className:"link-point-right",name:"link-point-right"}))}if(s){var x=null;g=p*Math.sin(1/3*Math.PI),v=p*Math.sin(1/3*Math.PI);"up"===a?x=[v-g,-g]:"left"===a?x=[v,-g]:"right"===a&&(x=[-v,-g]),x&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},f),{x:x[0],y:x[1],r:h/2||d||5}),className:"link-point-top",name:"link-point-top"}))}if(c){var w=null;g=p*Math.sin(1/3*Math.PI),v=p*Math.sin(1/3*Math.PI);"down"===a?w=[-v+g,g]:"left"===a?w=[v,g]:"right"===a&&(w=[-v,g]),w&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},f),{x:w[0],y:w[1],r:h/2||d||5}),className:"link-point-bottom",name:"link-point-bottom"}))}},getPath:function(t){var e=(this.mergeStyle||this.getOptions(t)).direction,n=t.direction||e,r=this.getSize(t)[0],i=r*Math.sin(1/3*Math.PI),o=r*Math.sin(1/3*Math.PI),a=[["M",-o,i],["L",0,-i],["L",o,i],["Z"]];return"down"===n?a=[["M",-o,-i],["L",o,-i],["L",0,i],["Z"]]:"left"===n?a=[["M",-o,o-i],["L",o,-o],["L",o,o],["Z"]]:"right"===n&&(a=[["M",o,o-i],["L",-o,o],["L",-o,-o],["Z"]]),a},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,n={stroke:t.color},r=(0,x.mix)({},e,n),i=this.getPath(t);return(0,b.__assign)({path:i},r)},update:function(t,e,n){var r=e.getContainer(),i=this.getOptions({}).style,o=this.getPath(t),a={stroke:t.color,path:o},s=e.get("keyShape"),u=(0,x.mix)({},i,s.attr(),a);u=(0,x.mix)(u,t.style),this.updateShape(t,e,u,!0,n),this.updateLinkPoints(t,r)},updateLinkPoints:function(t,e){var n=this.getOptions({}),r=n.linkPoints,i=n.direction,o=t.direction||i,a=e.shapeMap["link-point-left"]||e.find((function(t){return"link-point-left"===t.get("className")})),s=e.shapeMap["link-point-right"]||e.find((function(t){return"link-point-right"===t.get("className")})),u=e.shapeMap["link-point-top"]||e.find((function(t){return"link-point-top"===t.get("className")})),l=e.shapeMap["link-point-bottom"]||e.find((function(t){return"link-point-bottom"===t.get("className")})),c=r,h=a||s||u||l;h&&(c=h.attr());var d=(0,x.mix)({},c,t.linkPoints),f=d.fill,p=d.stroke,m=d.lineWidth,g=d.size/2;g||(g=d.r);var v=t.linkPoints?t.linkPoints:{left:void 0,right:void 0,top:void 0,bottom:void 0},y=v.left,w=v.right,_=v.top,S=v.bottom,E=this.getSize(t)[0],A={r:g,fill:f,stroke:p,lineWidth:m},M=null,C=E*Math.sin(1/3*Math.PI),T=E*Math.sin(1/3*Math.PI);"up"===o?M=[-T,C]:"down"===o?M=[-T,-C]:"left"===o&&(M=[-T,T-C]),M&&(a?y||void 0===y?a.attr((0,b.__assign)((0,b.__assign)({},A),{x:M[0],y:M[1]})):(a.remove(),delete e.shapeMap["link-point-left"]):y&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},A),{x:M[0],y:M[1]}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})));var k=null;"up"===o?k=[T,C]:"down"===o?k=[T,-C]:"right"===o&&(k=[T,T-C]),k&&(s?w||void 0===w?s.attr((0,b.__assign)((0,b.__assign)({},A),{x:k[0],y:k[1]})):(s.remove(),delete e.shapeMap["link-point-right"]):w&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},A),{x:k[0],y:k[1]}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})));var I=null;"up"===o?I=[T-C,-C]:"left"===o?I=[T,-C]:"right"===o&&(I=[-T,-C]),I&&(u?_||void 0===_?u.attr((0,b.__assign)((0,b.__assign)({},A),{x:I[0],y:I[1]})):(u.remove(),delete e.shapeMap["link-point-top"]):_&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},A),{x:I[0],y:I[1]}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})));var N=null;"down"===o?N=[-T+C,C]:"left"===o?N=[T,C]:"right"===o&&(N=[-T,C]),N&&(l?S||void 0===S?l.attr((0,b.__assign)((0,b.__assign)({},A),{x:N[0],y:N[1]})):(l.remove(),delete e.shapeMap["link-point-bottom"]):S&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},A),{x:N[0],y:N[1]}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0})))}},"single-node"),al("modelRect",{options:{size:[185,70],style:{radius:5,stroke:"#69c0ff",fill:"#ffffff",lineWidth:cl.defaultNode.style.lineWidth,fillOpacity:1},labelCfg:{style:{fill:"#595959",fontSize:14,fontFamily:cl.windowFontFamily},offset:30},descriptionCfg:{style:{fontSize:12,fill:"#bfbfbf",fontFamily:cl.windowFontFamily},paddingTop:0},preRect:{show:!0,width:4,fill:"#40a9ff",radius:2},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:10,lineWidth:1,fill:"#72CC4A",stroke:"#72CC4A"},logoIcon:{show:!0,x:0,y:0,img:"https://gw.alipayobjects.com/zos/basement_prod/4f81893c-1806-4de4-aff3-9a6b266bc8a2.svg",width:16,height:16,offset:0},stateIcon:{show:!0,x:0,y:0,img:"https://gw.alipayobjects.com/zos/basement_prod/300a2523-67e0-4cbf-9d4a-67c077b40395.svg",width:16,height:16,offset:-5},anchorPoints:[[0,.5],[1,.5]]},shapeType:"modelRect",drawShape:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).preRect,r=void 0===n?{}:n,i=this.getShapeStyle(t),o=this.getSize(t),a=o[0],s=o[1],u=e.addShape("rect",{attrs:i,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});e.shapeMap["".concat(this.type,"-keyShape")]=u;var l=r.show,c=(0,b.__rest)(r,["show"]);return l&&(e.shapeMap["pre-rect"]=e.addShape("rect",{attrs:(0,b.__assign)({x:-a/2,y:-s/2,height:s},c),className:"pre-rect",name:"pre-rect",draggable:!0})),this.drawLogoIcon(t,e),this.drawStateIcon(t,e),this.drawLinkPoints(t,e),u},drawLogoIcon:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).logoIcon,r=void 0===n?{}:n,i=this.getSize(t)[0];if(r.show){var o=r.width,a=r.height,s=r.x,u=r.y,l=r.offset,c=r.text,h=(0,b.__rest)(r,["width","height","x","y","offset","text"]);e.shapeMap["rect-logo-icon"]=c?e.addShape("text",{attrs:(0,b.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},h),className:"rect-logo-icon",name:"rect-logo-icon",draggable:!0}):e.addShape("image",{attrs:(0,b.__assign)((0,b.__assign)({},h),{x:s||-i/2+o+l,y:u||-a/2,width:o,height:a}),className:"rect-logo-icon",name:"rect-logo-icon",draggable:!0})}},drawStateIcon:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).stateIcon,r=void 0===n?{}:n,i=this.getSize(t)[0];if(r.show){var o=r.width,a=r.height,s=r.x,u=r.y,l=r.offset,c=r.text,h=(0,b.__rest)(r,["width","height","x","y","offset","text"]);e.shapeMap["rect-state-icon"]=c?e.addShape("text",{attrs:(0,b.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},h),className:"rect-state-icon",name:"rect-state-icon",draggable:!0}):e.addShape("image",{attrs:(0,b.__assign)((0,b.__assign)({},h),{x:s||i/2-o+l,y:u||-a/2,width:o,height:a}),className:"rect-state-icon",name:"rect-state-icon",draggable:!0})}},drawLinkPoints:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).linkPoints,r=void 0===n?{}:n,i=r.top,o=r.left,a=r.right,s=r.bottom,u=r.size,l=r.r,c=(0,b.__rest)(r,["top","left","right","bottom","size","r"]),h=this.getSize(t),d=h[0],f=h[1];o&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},c),{x:-d/2,y:0,r:u/2||l||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),a&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},c),{x:d/2,y:0,r:u/2||l||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),i&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},c),{x:0,y:-f/2,r:u/2||l||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),s&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},c),{x:0,y:f/2,r:u/2||l||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},drawLabel:function(t,e){var n=this.getOptions(t),r=n.labelCfg,i=void 0===r?{}:r,o=n.logoIcon,a=void 0===o?{}:o,s=n.descriptionCfg,u=void 0===s?{}:s,l=this.getSize(t)[0],c=null,h=a.show,d=a.width,f=-l/2+i.offset;h&&(f=-l/2+d+i.offset);var p=i.style,m=u.style,g=u.paddingTop;return(0,x.isString)(t.description)?(c=e.addShape("text",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:f,y:-5,text:t.label}),className:"text-shape",name:"text-shape",draggable:!0,labelRelated:!0}),e.shapeMap["text-shape"]=c,e.shapeMap["rect-description"]=e.addShape("text",{attrs:(0,b.__assign)((0,b.__assign)({},m),{x:f,y:17+(g||0),text:t.description}),className:"rect-description",name:"rect-description",draggable:!0,labelRelated:!0})):(c=e.addShape("text",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:f,y:7,text:t.label}),className:"text-shape",name:"text-shape",draggable:!0,labelRelated:!0}),e.shapeMap["text-shape"]=c),c},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,n={stroke:t.color},r=(0,x.mix)({},e,n),i=this.getSize(t),o=r.width||i[0],a=r.height||i[1];return(0,b.__assign)({x:-o/2,y:-a/2,width:o,height:a},r)},update:function(t,e){var n=this.mergeStyle||this.getOptions(t),r=n.style,i=void 0===r?{}:r,o=n.labelCfg,a=void 0===o?{}:o,s=n.descriptionCfg,u=void 0===s?{}:s,l=this.getSize(t),c=l[0],h=l[1];e.get("keyShape").attr((0,b.__assign)((0,b.__assign)({},i),{x:-c/2,y:-h/2,width:c,height:h}));var d=e.getContainer(),f=d.shapeMap["rect-logo-icon"]||d.find((function(t){return"rect-logo-icon"===t.get("className")})),p=f?f.attr():{},m=(0,x.mix)({},p,t.logoIcon),g=m.width;void 0===g&&(g=this.options.logoIcon.width);var v=t.logoIcon?t.logoIcon.show:void 0,y=a.offset,w=-c/2+g+y;v||void 0===v||(w=-c/2+y);var _=d.shapeMap["node-label"]||d.find((function(t){return"node-label"===t.get("className")})),S=d.shapeMap["rect-description"]||d.find((function(t){return"rect-description"===t.get("className")}));if(t.label)if(_){var E=t.labelCfg?t.labelCfg.style:{},A=(0,x.mix)({},_.attr(),E);t.label&&(A.text=t.label),A.x=w,(0,x.isString)(t.description)&&(A.y=-5),S&&(S.resetMatrix(),S.attr({x:w})),_.resetMatrix(),_.attr(A)}else d.shapeMap["node-label"]=d.addShape("text",{attrs:(0,b.__assign)((0,b.__assign)({},a.style),{x:w,y:t.description?-5:7,text:t.label}),className:"node-label",name:"node-label",draggable:!0,labelRelated:!0});if((0,x.isString)(t.description)){var M=u.paddingTop;if(S){E=t.descriptionCfg?t.descriptionCfg.style:{};var C=(0,x.mix)({},S.attr(),E);(0,x.isString)(t.description)&&(C.text=t.description),C.x=w,S.resetMatrix(),S.attr((0,b.__assign)((0,b.__assign)({},C),{y:17+(M||0)}))}else d.shapeMap["rect-description"]=d.addShape("text",{attrs:(0,b.__assign)((0,b.__assign)({},u.style),{x:w,y:17+(M||0),text:t.description}),className:"rect-description",name:"rect-description",draggable:!0,labelRelated:!0})}var T=d.shapeMap["pre-rect"]||d.find((function(t){return"pre-rect"===t.get("className")}));if(T&&!T.destroyed){var k=(0,x.mix)({},T.attr(),t.preRect);T.attr((0,b.__assign)((0,b.__assign)({},k),{x:-c/2,y:-h/2,height:h}))}if(f&&!f.destroyed)if(v||void 0===v){var I=m.width,N=m.height,P=m.x,O=m.y,L=m.offset,R=(0,b.__rest)(m,["width","height","x","y","offset"]);f.attr((0,b.__assign)((0,b.__assign)({},R),{x:P||-c/2+I+L,y:O||-N/2,width:I,height:N}))}else f.remove(),delete d.shapeMap["pre-rect"];else v&&this.drawLogoIcon(t,d);var D=d.shapeMap["rect-state-icon"]||d.find((function(t){return"rect-state-icon"===t.get("className")})),z=D?D.attr():{},F=(0,x.mix)({},z,t.stateIcon);if(D){F.show||void 0===F.show||(D.remove(),delete d.shapeMap["rect-state-icon"]);var B=F.width,U=(N=F.height,P=F.x,O=F.y,F.offset),j=(0,b.__rest)(F,["width","height","x","y","offset"]);D.attr((0,b.__assign)((0,b.__assign)({},j),{x:P||c/2-B+U,y:O||-N/2,width:B,height:N}))}else F.show&&this.drawStateIcon(t,d);this.updateLinkPoints(t,d)},getOptions:function(t,e){return"move"===e?t:(0,x.deepMix)({},this.options,this.getCustomConfig(t)||{},t)}},"single-node"),al("star",{options:{size:60,style:{stroke:cl.defaultNode.style.stroke,fill:cl.defaultNode.style.fill,lineWidth:cl.defaultNode.style.lineWidth},labelCfg:{style:{fill:cl.nodeLabel.style.fill,fontSize:cl.nodeLabel.style.fontSize,fontFamily:cl.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:cl.defaultNode.linkPoints.size,lineWidth:cl.defaultNode.linkPoints.lineWidth,fill:cl.defaultNode.linkPoints.fill,stroke:cl.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:(0,b.__assign)({},cl.nodeStateStyles)},shapeType:"star",labelPosition:"center",drawShape:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).icon,r=void 0===n?{}:n,i=this.getShapeStyle(t),o=e.addShape("path",{attrs:i,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});e.shapeMap["".concat(this.type,"-keyShape")]=o;var a=r.width,s=r.height,u=r.show,l=r.text;return u&&(e.shapeMap["".concat(this.type,"-icon")]=l?e.addShape("text",{attrs:(0,b.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},r),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):e.addShape("image",{attrs:(0,b.__assign)({x:-a/2,y:-s/2},r),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(t,e),o},drawLinkPoints:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).linkPoints,r=void 0===n?{}:n,i=r.top,o=r.left,a=r.right,s=r.leftBottom,u=r.rightBottom,l=r.size,c=r.r,h=(0,b.__rest)(r,["top","left","right","leftBottom","rightBottom","size","r"]),d=this.getSize(t)[0];if(a){var f=Math.cos(.1*Math.PI)*d,p=Math.sin(.1*Math.PI)*d;e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},h),{x:f,y:-p,r:l/2||c||5}),className:"link-point-right",name:"link-point-right"})}if(i){f=Math.cos(.5*Math.PI)*d,p=Math.sin(.5*Math.PI)*d;e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},h),{x:f,y:-p,r:l/2||c||5}),className:"link-point-top",name:"link-point-top"})}if(o){f=Math.cos(.9*Math.PI)*d,p=Math.sin(.9*Math.PI)*d;e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},h),{x:f,y:-p,r:l/2||c||5}),className:"link-point-left",name:"link-point-left"})}if(s){f=Math.cos(1.3*Math.PI)*d,p=Math.sin(1.3*Math.PI)*d;e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},h),{x:f,y:-p,r:l/2||c||5}),className:"link-point-left-bottom",name:"link-point-left-bottom"})}if(u){f=Math.cos(1.7*Math.PI)*d,p=Math.sin(1.7*Math.PI)*d;e.shapeMap["link-point-right-bottom"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},h),{x:f,y:-p,r:l/2||c||5}),className:"link-point-right-bottom",name:"link-point-right-bottom"})}},getPath:function(t){var e=this.getSize(t)[0],n=3*e/8,r=t.innerR||n;return el.getStarPath(e,r)},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,n={stroke:t.color},r=(0,x.mix)({},e,n),i=this.getPath(t);return(0,b.__assign)({path:i},r)},update:function(t,e,n){var r=e.getContainer(),i=this.getOptions({}).style,o=this.getPath(t),a={stroke:t.color,path:o},s=e.get("keyShape"),u=(0,x.mix)({},i,s.attr(),a);u=(0,x.mix)(u,t.style),this.updateShape(t,e,u,!0,n),this.updateLinkPoints(t,r)},updateLinkPoints:function(t,e){var n=this.getOptions({}).linkPoints,r=e.shapeMap["link-point-left"]||e.find((function(t){return"link-point-left"===t.get("className")})),i=e.shapeMap["link-point-right"]||e.find((function(t){return"link-point-right"===t.get("className")})),o=e.shapeMap["link-point-top"]||e.find((function(t){return"link-point-top"===t.get("className")})),a=e.shapeMap["link-point-left-bottom"]||e.find((function(t){return"link-point-left-bottom"===t.get("className")})),s=e.shapeMap["link-point-left-bottom"]||e.find((function(t){return"link-point-right-bottom"===t.get("className")})),u=n,l=r||i||o||a||s;l&&(u=l.attr());var c=(0,x.mix)({},u,t.linkPoints),h=c.fill,d=c.stroke,f=c.lineWidth,p=c.size/2;p||(p=c.r);var m=t.linkPoints?t.linkPoints:{left:void 0,right:void 0,top:void 0,leftBottom:void 0,rightBottom:void 0},g=m.left,v=m.right,y=m.top,w=m.leftBottom,_=m.rightBottom,S=this.getSize(t)[0],E={r:p,fill:h,stroke:d,lineWidth:f},A=Math.cos(.1*Math.PI)*S,M=Math.sin(.1*Math.PI)*S;i?v||void 0===v?i.attr((0,b.__assign)((0,b.__assign)({},E),{x:A,y:-M})):(i.remove(),delete e.shapeMap["link-point-right"]):v&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},E),{x:A,y:-M}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),A=Math.cos(.5*Math.PI)*S,M=Math.sin(.5*Math.PI)*S,o?y||void 0===y?o.attr((0,b.__assign)((0,b.__assign)({},E),{x:A,y:-M})):(o.remove(),delete e.shapeMap["link-point-top"]):y&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},E),{x:A,y:-M}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),A=Math.cos(.9*Math.PI)*S,M=Math.sin(.9*Math.PI)*S,r?g||void 0===g?r.attr((0,b.__assign)((0,b.__assign)({},E),{x:A,y:-M})):(r.remove(),delete e.shapeMap["link-point-left"]):g&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},E),{x:A,y:-M}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),A=Math.cos(1.3*Math.PI)*S,M=Math.sin(1.3*Math.PI)*S,a?w||void 0===w?a.attr((0,b.__assign)((0,b.__assign)({},E),{x:A,y:-M})):(a.remove(),delete e.shapeMap["link-point-left-bottom"]):w&&(e.shapeMap["link-point-left-bottom"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},E),{x:A,y:-M}),className:"link-point-left-bottom",name:"link-point-left-bottom",isAnchorPoint:!0})),A=Math.cos(1.7*Math.PI)*S,M=Math.sin(1.7*Math.PI)*S,s?_||void 0===_?s.attr((0,b.__assign)((0,b.__assign)({},E),{x:A,y:-M})):(s.remove(),delete e.shapeMap["link-point-right-bottom"]):_&&(e.shapeMap["link-point-right-bottom"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},E),{x:A,y:-M}),className:"link-point-right-bottom",name:"link-point-right-bottom",isAnchorPoint:!0}))}},"single-node");var Xv=el.defaultSubjectColors,Yv="fan-shape-";al("donut",{options:{size:cl.defaultNode.size,style:{x:0,y:0,stroke:cl.defaultNode.style.stroke,fill:cl.defaultNode.style.fill,lineWidth:cl.defaultNode.style.lineWidth},labelCfg:{style:{fill:cl.nodeLabel.style.fill,fontSize:cl.nodeLabel.style.fontSize,fontFamily:cl.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:cl.defaultNode.linkPoints.size,lineWidth:cl.defaultNode.linkPoints.lineWidth,fill:cl.defaultNode.linkPoints.fill,stroke:cl.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:(0,b.__assign)({},cl.nodeStateStyles)},shapeType:"circle",labelPosition:"center",drawShape:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).icon,r=void 0===n?{}:n,i=this.getShapeStyle(t),o=(0,x.deepMix)({},r,t.icon),a=e.addShape("circle",{attrs:i,className:"".concat(this.type,"-keyShape"),draggable:!0,name:"".concat(this.type,"-keyShape")});e.shapeMap["".concat(this.type,"-keyShape")]=a;var s=o.width,u=o.height,l=o.show,c=o.text;return l&&(e.shapeMap["".concat(this.type,"-icon")]=c?e.addShape("text",{attrs:(0,b.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},o),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):e.addShape("image",{attrs:(0,b.__assign)({x:-s/2,y:-u/2},o),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),qv(t,e,a),this.drawLinkPoints(t,e),a},updateShape:function(t,e,n,r,i){var o=e.get("keyShape");o.attr((0,b.__assign)({},n)),Kv(t,e,o),this.updateLabel(t,e,i),r&&this.updateIcon(t,e)}},"circle");var qv=function(t,e,n){var r=t.donutAttrs,i=void 0===r?{}:r,o=t.donutColorMap,a=void 0===o?{}:o,s=Object.keys(i).length;if(i&&s>1){var u=Zv(i,a),l=u.configs,c=u.totalValue;if(c){var h=Qv(n),d=h.lineWidth,f=h.arcR,p=[f,0],m=0;if(1===s)return void $v(e,{arcR:f,arcBegin:p,beginAngle:m,config:l[0],fanIndex:0,lineWidth:d,totalValue:c,drawWhole:!0});for(var g=0;g.999)n=[o,1e-4],i=1;else{var v=g*Math.PI*2;r=s+v,n=[o*Math.cos(r),-o*Math.sin(r)],i=v>Math.PI?1:0}var y={path:[["M",a[0],a[1]],["A",o,o,0,i,0,n[0],n[1]]],stroke:u.color||(null==m?void 0:m.attr("stroke"))||Xv[l%Xv.length],lineWidth:c};return m?m.attr(y):t.shapeMap["".concat(Yv).concat(l)]=t.addShape("path",{attrs:y,name:"".concat(Yv).concat(l),draggable:!0}),{beginAngle:r,arcBegin:n,shape:t.shapeMap["".concat(Yv).concat(l)],shouldEnd:f||g>.999}},Kv=function(t,e,n){var r=t.donutAttrs,i=t.donutColorMap,o=void 0===i?{}:i,a={},s=e.getContainer();if(r){var u=Zv(r,o),l=u.configs,c=u.totalValue;if(c)for(var h=Qv(n),d=h.lineWidth,f=h.arcR,p=[f,0],m=0,g=0;g=0;r--){var i=t[r];i.id="".concat(i.x,"|||").concat(i.y),n[i.id]||(n[i.id]=i,e.push(i))}return e},ey=function(t){return ty(t)},ny=function(t,e){return t.width||t.height?{centerX:t.centerX,centerY:t.centerY,minX:t.minX-e,minY:t.minY-e,maxX:t.maxX+e,maxY:t.maxY+e,height:t.height+2*e,width:t.width+2*e}:t},ry=function(t,e,n){var r=function(t,e){var n=Math.abs(t.x-e.centerX),r=Math.abs(t.y-e.centerY);return 0===n&&0===r?0:n/e.width>r/e.height}(e,t);if(0===r){var i=t.centerX,o=t.centerY;return n.ye.x?i=t.maxX:n.xt.centerX?t.maxX:t.minX,y:e.y}:{x:e.x,y:e.y>t.centerY?t.maxY:t.minY}},iy=function(t,e){var n=Math.min(t.minX,e.minX),r=Math.min(t.minY,e.minY),i=Math.max(t.maxX,e.maxX),o=Math.max(t.maxY,e.maxY);return{centerX:(n+i)/2,centerY:(r+o)/2,minX:n,minY:r,maxX:i,maxY:o,height:o-r,width:i-n}},oy=function(t){return[{x:t.minX,y:t.minY},{x:t.maxX,y:t.minY},{x:t.maxX,y:t.maxY},{x:t.minX,y:t.maxY}]},ay=function(t,e){var n=t.x,r=t.y;return ne.maxX||re.maxY},sy=function(t,e){return Math.abs(t.x-e.x)+Math.abs(t.y-e.y)},uy=function(t,e,n,r,i){return sy(t,e)+sy(t,n)+function(t,e){var n=0;return e.forEach((function(e){e&&(t.x===e.x&&(n+=-2),t.y===e.y&&(n+=-2))})),n}(t,[e,n,r,i])},ly=function t(e,n,r,i,o){void 0===o&&(o=0),e.unshift(n[i]),r[i]&&r[i]!==i&&o<=100&&t(e,n,r,r[i],o+1)},cy=function(t,e,n,r){var i=n.x-t.x,o=n.y-t.y,a=r.x-t.x,s=r.y-t.y,u=n.x-e.x,l=n.y-e.y,c=r.x-e.x,h=r.y-e.y;return(i*s-o*a)*(u*h-l*c)<=0&&(i*l-o*u)*(a*h-s*c)<=0},hy=function(t,e,n){if(n.width||n.height){var r=oy(n),i=r[0],o=r[1],a=r[2],s=r[3];return cy(t,e,i,o)||cy(t,e,i,s)||cy(t,e,o,a)||cy(t,e,a,s)}return!1},dy=function(t,e,n,r){var i=[];return t.forEach((function(t){if(t!==e&&(t.x===e.x||t.y===e.y)){if(hy(t,e,n)||hy(t,e,r))return;i.push(t)}})),ty(i)},fy=function(t,e){var n=[],r=t[0];return n.push("M".concat(r.x," ").concat(r.y)),t.forEach((function(r,i){var o=t[i+1],a=t[i+2];if(o&&a)if(function(t,e,n){return!(t.x===e.x&&e.x===n.x||t.y===e.y&&e.y===n.y)}(r,o,a)){var s=function(t,e,n,r){var i=sy(t,e),o=sy(n,e);return it.maxX?[]:[{x:e,y:t.minY},{x:e,y:t.maxY}]}(t,e.x).concat(function(t,e){return et.maxY?[]:[{x:t.minX,y:e},{x:t.maxX,y:e}]}(t,e.y))}(t,S).filter((function(t){return ay(t,m)&&ay(t,g)})))})),[{x:v.x,y:y.y},{x:y.x,y:v.y}].forEach((function(t){ay(t,m)&&ay(t,g)&&_.push(t)})),_.unshift(v),_.push(y);var E=function(t,e,n,r,i,o,a){var s,u=[],l=((s={})[e.id]=e,s),c={},h={},d={};h[e.id]=0,d[e.id]=uy(e,n,e);var f=new my;f.add({id:e.id,value:d[e.id]});var p,m={};for(t.forEach((function(t){m[t.id]=t}));Object.keys(l).length;){var g=f.minId(!1);if(!g)break;if((p=l[g])===n){var v=[];return ly(v,m,c,n.id),v}delete l[p.id],f.remove(p.id),u.push(p),dy(t,p,r,i).forEach((function(t){if(-1===u.indexOf(t)){var r=t.id;l[r]||(l[r]=t);var i=d[p.id]+sy(p,t);h[r]&&i>=h[r]||(c[r]=p.id,h[r]=i,d[r]=h[r]+uy(t,n,e,o,a)),f.add({id:r,value:d[r]})}}))}return[e,n]}(_=ty(_),v,y,o,a,t,e);return E.unshift(t),E.push(e),ey(E)},my=function(){function t(){this.arr=[],this.map={},this.arr=[],this.map={}}return t.prototype._innerAdd=function(t,e){for(var n=[0,e-1];n[1]-n[0]>1;){var r=Math.floor((n[0]+n[1])/2);if(this.arr[r].value>t.value)n[1]=r;else{if(!(this.arr[r].value=0;e--)this.map[this.arr[e].id]?t=this.arr[e].id:this.arr.splice(e,1);return t},t.prototype._findFirstId=function(){for(;this.arr.length;){var t=this.arr.shift();if(this.map[t.id])return t.id}},t.prototype.minId=function(t){return t?this._clearAndGetMinId():this._findFirstId()},t}(),gy={offset:20,maxAllowedDirectionChange:Math.PI/2,maximumLoops:2e3,gridSize:10,directions:[{stepX:1,stepY:0},{stepX:-1,stepY:0},{stepX:0,stepY:1},{stepX:0,stepY:-1}],get penalties(){return{0:0,45:this.gridSize/2,90:this.gridSize/2}},distFunc:function(t,e){return Math.abs(t.x-e.x)+Math.abs(t.y-e.y)},fallbackRoute:function(t,e,n,r,i){return ey(py(t,e,n,r,i.offset))}},vy=(Math.PI,function(t,e){var n=Math.round(Math.abs(t/e));return n<0?0:(t<0?-1:1)*n}),yy=function(t,e){var n=e.x-t.x,r=e.y-t.y;return n||r?Math.atan2(r,n):0},by=function(t,e){var n=Math.abs(t-e);return n>Math.PI?2*Math.PI-n:n},xy=function(t,e,n){for(var r=1/0,i=0,o=e.length;iu.minX&&e.xu.minY&&e.y0&&T>0;){var N=y.minId((T+1)%30==0);if(!N)break;if(_=f[N],I["".concat(_.x,"|||").concat(_.y)])return Sy(_,m,l,e,t,c,s);delete f[_.id],y.remove(_.id),p[_.id]=!0;for(b=0;bo.maxAllowedDirectionChange||u[P])){f[P]||(f[P]=E);var O=a[C];A=o.distFunc(_,E)+(isNaN(O)?s:O),M=g[_.id]+A;var L=g[P];L&&M>=L||(m[P]=_,g[P]=M,v[P]=M+xy(E,d,o.distFunc),y.add({id:P,value:v[P]}))}}T-=1}return o.fallbackRoute(t,e,n,r,o)};sl("polyline",{options:{color:cl.defaultEdge.color,size:cl.defaultEdge.size,style:{radius:0,offset:15,x:0,y:0,stroke:cl.defaultEdge.style.stroke,lineAppendWidth:cl.defaultEdge.style.lineAppendWidth},labelCfg:{style:{fill:cl.edgeLabel.style.fill,fontSize:cl.edgeLabel.style.fontSize,fontFamily:cl.windowFontFamily}},routeCfg:{obstacles:[],maxAllowedDirectionChange:Math.PI,maximumLoops:500,gridSize:10},stateStyles:(0,b.__assign)({},cl.edgeStateStyles)},shapeType:"polyline",labelPosition:"center",drawShape:function(t,e){var n=this.getShapeStyle(t);0===n.radius&&delete n.radius;var r=e.addShape("path",{className:"edge-shape",name:"edge-shape",attrs:n});return e.shapeMap["edge-shape"]=r,r},getShapeStyle:function(t){var e=this.options.style,n={stroke:t.color},r=(0,x.mix)({},e,n,t.style);t=this.getPathPoints(t),this.radius=r.radius,this.offset=r.offset;var i=t.startPoint,o=t.endPoint,a=this.getControlPoints(t),s=[i];a&&(s=s.concat(a)),s.push(o);var u=t.sourceNode,l=t.targetNode,c=r.radius,h=this.options.routeCfg,d=(0,x.mix)({},h,t.routeCfg);d.offset=r.offset;var f=this.getPath(s,u,l,c,d,!Boolean(a));return((0,x.isArray)(f)&&f.length<=1||(0,x.isString)(f)&&-1===f.indexOf("L"))&&(f="M0 0, L0 0"),(isNaN(i.x)||isNaN(i.y)||isNaN(o.x)||isNaN(o.y))&&(f="M0 0, L0 0"),(0,x.mix)({},cl.defaultEdge.style,r,{lineWidth:t.size,path:f})},updateShapeStyle:function(t,e){var n=e.getContainer();if(e.isVisible()){var r={stroke:t.color},i=n.shapeMap["edge-shape"]||n.find((function(t){return"edge-shape"===t.get("className")}))||e.getKeyShape(),o=t.size,a=(t=this.getPathPoints(t)).startPoint,s=t.endPoint,u=this.getControlPoints(t),l=[a];u&&(l=l.concat(u)),l.push(s);var c=i.attr(),h=(0,x.mix)({},r,c,t.style),d=t.sourceNode,f=t.targetNode,p=h.radius,m=this.options.routeCfg,g=(0,x.mix)({},m,t.routeCfg);g.offset=h.offset;var v=this.getPath(l,d,f,p,g,!Boolean(u));((0,x.isArray)(v)&&v.length<=1||(0,x.isString)(v)&&-1===v.indexOf("L"))&&(v="M0 0, L0 0"),(isNaN(a.x)||isNaN(a.y)||isNaN(s.x)||isNaN(s.y))&&(v="M0 0, L0 0"),c.endArrow&&!1===h.endArrow&&(t.style.endArrow={path:""}),c.startArrow&&!1===h.startArrow&&(t.style.startArrow={path:""});var y=(0,x.mix)(r,i.attr(),{lineWidth:o,path:v},t.style);i&&i.attr(y)}},getPath:function(t,e,n,r,i,o){var a=i.offset,s=i.obstacles,u=i.simple;if(!a||t.length>2||!1===o){if(r)return fy(t,r);var l=[];return(0,x.each)(t,(function(t,e){0===e?l.push(["M",t.x,t.y]):l.push(["L",t.x,t.y])})),l}!1===u||(null==s?void 0:s.length)||(u=!0);var c=u?py(t[t.length-1],t[0],n,e,a):Ey(t[0],t[t.length-1],e,n,i);return c&&c.length?r?fy(c,r):(c=function(t){if(!(null==t?void 0:t.length))return t;for(var e=t[t.length-1],n={x:e.x,y:e.y},r=[e],i=[e],o=t.length-2;o>=0;o--){var a,s=t[o];s.x===n.x?r.push(s):(r=[s],n.x=s.x),s.y===n.y?i.push(s):(i=[s],n.y=s.y),r.length>2?(a=t.indexOf(r[1]))>-1&&t.splice(a,1):i.length>2&&(a=t.indexOf(i[1]))>-1&&t.splice(a,1)}return t}(c),el.pointsToPolygon(c)):"M0 0, L0 0"}},"single-edge");var Ay=hf.cloneEvent,My=hf.isNaN,Cy=Math.abs,Ty=["shift","ctrl","alt","control"];const ky={getDefaultCfg:function(){return{direction:"both",enableOptimize:!1,scalableRange:0,allowDragOnItem:!1}},getEvents:function(){return{mousedown:"onMouseDown",drag:"onDragMove",dragend:"onMouseUp","canvas:click":"onMouseUp",keyup:"onKeyUp",focus:"onKeyUp",keydown:"onKeyDown",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onMouseUp"}},updateViewport:function(t){var e=this.origin,n=+t.clientX,r=+t.clientY;if(!My(n)&&!My(r)){var i=n-e.x,o=r-e.y;"x"===this.get("direction")?o=0:"y"===this.get("direction")&&(i=0),this.origin={x:n,y:r};var a=this.graph.get("width"),s=this.graph.get("height"),u=this.graph.get("canvas").getCanvasBBox(),l=this.scalableRange,c=this.scalableRange;l<1&&l>-1&&(l*=a,c*=s),(u.minX<=a+l&&u.minX+i>a+l||u.maxX+l>=0&&u.maxX+l+i<0)&&(i=0),(u.minY<=s+c&&u.minY+o>s+c||u.maxY+c>=0&&u.maxY+c+o<0)&&(o=0),this.graph.translate(i,o)}},onTouchStart:function(t){var e=t.originalEvent.touches,n=e[0],r=e[1];n&&r||(t.preventDefault(),this.mousedown=!0,this.onDragStart(t))},onMouseDown:function(t){this.mousedown=!0},onDragMove:function(t){this.mousedown&&(this.dragstart?this.onDrag(t):(this.dragstart=!0,this.onDragStart(t)))},onDragStart:function(t){var e=this,n=t.originalEvent;if((!n||"touchstart"===t.name||0===n.button)&&("touchstart"===t.name||"undefined"==typeof window||!window.event||window.event.buttons||window.event.button)&&this.shouldBegin(t,this)&&!e.keydown&&this.allowDrag(t)){if(e.origin={x:t.clientX,y:t.clientY},e.dragging=!1,this.enableOptimize){for(var r=this.graph,i=r.getEdges(),o=0,a=i.length;os)for(var d=r.getNodes(),f=0,p=d.length;f-1?this.keydown=!0:this.keydown=!1)},onKeyUp:function(){this.keydown=!1,this.origin=null,this.dragging=!1,this.dragbegin=!1},allowDrag:function(t){var e,n,r=t.target,i=r&&r.isCanvas&&r.isCanvas();if((0,x.isBoolean)(this.allowDragOnItem)&&!this.allowDragOnItem&&!i)return!1;if((0,x.isObject)(this.allowDragOnItem)){var o=this.allowDragOnItem,a=o.node,s=o.edge,u=o.combo,l=null===(n=null===(e=t.item)||void 0===e?void 0:e.getType)||void 0===n?void 0:n.call(e);if(!a&&"node"===l)return!1;if(!s&&"edge"===l)return!1;if(!u&&"combo"===l)return!1}return!0}},Iy={getDefaultCfg:function(){return{updateEdge:!0,delegateStyle:{},enableDelegate:!1,onlyChangeComboSize:!1,comboActiveState:"",selectedState:"selected",enableOptimize:!1,enableDebounce:!1,enableStack:!0}},getEvents:function(){return{"node:mousedown":"onMouseDown",drag:"onDragMove",dragend:"onDragEnd","combo:dragenter":"onDragEnter","combo:dragleave":"onDragLeave","combo:drop":"onDropCombo","node:drop":"onDropNode","canvas:drop":"onDropCanvas",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onDragEnd",afterchangedata:"onDragEnd"}},validationCombo:function(t){return!(!this.origin||!t||t.destroyed)&&"combo"===t.getType()},onTouchStart:function(t){if(t.item){try{var e=t.originalEvent.touches,n=e[0],r=e[1];if(n&&r)return;t.preventDefault()}catch(t){console.warn("Touch original event not exist!")}this.mousedown={item:t.item,target:t.target,origin:{x:t.x,y:t.y}},this.dragstart=!0,this.onDragStart(t)}},onTouchMove:function(t){try{var e=t.originalEvent.touches,n=e[0],r=e[1];if(n&&r)return void this.onDragEnd(t);t.preventDefault()}catch(t){console.warn("Touch original event not exist!")}this.onDrag(t)},onMouseDown:function(t){this.mousedown={item:t.item,target:t.target,origin:{x:t.x,y:t.y}},"undefined"==typeof window||this.windowEventBinded||(this.windowEventBinded=!0,document.body.addEventListener("contextmenu",this.onDragEnd.bind(this)),document.body.addEventListener("mouseup",this.onDragEnd.bind(this)))},onDragMove:function(t){var e,n;"node"===(null===(n=null===(e=t.item)||void 0===e?void 0:e.getType)||void 0===n?void 0:n.call(e))?this.mousedown&&(this.dragstart?this.onDrag((0,b.__assign)((0,b.__assign)({},t),this.mousedown)):(this.dragstart=!0,this.onDragStart(t))):this.onDragEnd()},onDragStart:function(t){var e=this;if(this.currentShouldEnd=!0,this.shouldBegin((0,b.__assign)((0,b.__assign)({},t),this.mousedown),this)){var n=this.mousedown,r=n.item,i=n.target;if(r&&!r.destroyed&&!r.hasLocked()){if(r.getContainer().set("capture",!1),this.cachedCaptureItems||(this.cachedCaptureItems=[]),this.cachedCaptureItems.push(r),i)if(i.get("isAnchorPoint"))return;var o=this.graph;this.targets=[],this.targetCombo=null;var a=o.findAllByState("node",this.selectedState),s=r.get("id"),u=a.filter((function(t){var e=t.get("id");return s===e}));if(0===u.length?this.targets.push(r):a.length>1?a.forEach((function(t){t.hasLocked()||e.targets.push(t)})):this.targets.push(r),this.graph.get("enabledStack")&&this.enableStack){var l=[];this.targets.forEach((function(t){var e=t.getModel(),n=e.x,r=e.y,i=e.id;l.push({x:n,y:r,id:i})})),this.set("beforeDragNodes",l)}this.hidenEdge={},this.get("updateEdge")&&this.enableOptimize&&!this.enableDelegate&&this.targets.forEach((function(t){t.getEdges().forEach((function(t){t.isVisible()&&(e.hidenEdge[t.getID()]=!0,t.hide())}))})),this.origin=this.mousedown.origin,this.point={},this.originPoint={}}}},onDrag:function(t){var e=this;if(this.mousedown&&this.origin&&this.shouldUpdate(t,this))if(this.get("enableDelegate"))this.updateDelegate(t);else if(this.enableDebounce)this.debounceUpdate({targets:this.targets,graph:this.graph,point:this.point,origin:this.origin,evt:t,updateEdge:this.get("updateEdge"),onlyChangeComboSize:this.onlyChangeComboSize,updateParentCombos:this.updateParentCombos});else{var n={};this.targets.map((function(r){e.update(r,t);var i=r.getModel().comboId;i&&(n[i]=e.graph.findById(i))})),this.onlyChangeComboSize&&this.updateParentCombos()}},onDragEnd:function(t){var e,n=this;if(this.mousedown=!1,this.dragstart=!1,"undefined"!=typeof window&&this.windowEventBinded&&(this.windowEventBinded=!1,document.body.removeEventListener("contextmenu",this.onDragEnd.bind(this)),document.body.removeEventListener("mouseup",this.onDragEnd.bind(this))),this.origin){null===(e=this.cachedCaptureItems)||void 0===e||e.forEach((function(t){t.getContainer().set("capture",!0)})),this.cachedCaptureItems=[],this.delegateRect&&(this.delegateRect.remove(),this.delegateRect=null),this.get("updateEdge")&&this.enableOptimize&&!this.enableDelegate&&this.targets.forEach((function(t){t.getEdges().forEach((function(t){n.hidenEdge[t.getID()]&&t.show(),t.refresh()}))})),this.hidenEdge={};var r=this.graph;if(r.get("enabledStack")&&this.enableStack){var i={before:{nodes:[],edges:[],combos:[]},after:{nodes:[],edges:[],combos:[]}};this.get("beforeDragNodes").forEach((function(t){i.before.nodes.push(t)})),this.targets.forEach((function(t){var e=t.getModel(),n=e.x,r=e.y,o=e.id;i.after.nodes.push({x:n,y:r,id:o})})),r.pushStack("update",(0,x.clone)(i))}r.emit("dragnodeend",{items:this.targets,targetItem:null}),this.point={},this.origin=null,this.originPoint={},this.targets.length=0,this.targetCombo=null}},onDropCombo:function(t){var e=t.item;if(this.currentShouldEnd=this.shouldEnd(t,e,this),this.updatePositions(t,!this.currentShouldEnd),this.currentShouldEnd&&this.validationCombo(e)){var n=this.graph;if(this.comboActiveState&&n.setItemState(e,this.comboActiveState,!1),this.targetCombo=e,this.onlyChangeComboSize)n.updateCombos();else{var r=e.getModel();this.targets.map((function(t){t.getModel().comboId!==r.id&&n.updateComboTree(t,r.id)})),n.updateCombo(e)}n.emit("dragnodeend",{items:this.targets,targetItem:this.targetCombo})}},onDropCanvas:function(t){var e=this.graph;this.currentShouldEnd=this.shouldEnd(t,void 0,this),this.updatePositions(t,!this.currentShouldEnd),this.targets&&0!==this.targets.length&&this.currentShouldEnd&&(this.onlyChangeComboSize?this.updateParentCombos():this.targets.map((function(t){t.getModel().comboId&&e.updateComboTree(t)})))},onDropNode:function(t){if(this.targets&&0!==this.targets.length){var e=this,n=t.item,r=e.graph,i=n.getModel().comboId,o=i?r.findById(i):void 0;if(this.currentShouldEnd=this.shouldEnd(t,o,this),this.updatePositions(t,!this.currentShouldEnd),this.currentShouldEnd){if(this.onlyChangeComboSize)this.updateParentCombos();else if(i){var a=r.findById(i);e.comboActiveState&&r.setItemState(a,e.comboActiveState,!1),this.targets.map((function(t){var e=t.getModel();i!==e.comboId&&r.updateComboTree(t,i)})),r.updateCombo(a)}else this.targets.map((function(t){t.getModel().comboId&&r.updateComboTree(t)}));r.emit("dragnodeend",{items:this.targets,targetItem:n})}}},onDragEnter:function(t){var e=t.item;if(this.validationCombo(e)){var n=this.graph;this.comboActiveState&&n.setItemState(e,this.comboActiveState,!0)}},onDragLeave:function(t){var e=t.item;if(this.validationCombo(e)){var n=this.graph;this.comboActiveState&&n.setItemState(e,this.comboActiveState,!1)}},updatePositions:function(t,e){var n=this;this.targets&&0!==this.targets.length&&(this.get("enableDelegate")?this.enableDebounce?this.debounceUpdate({targets:this.targets,graph:this.graph,point:this.point,origin:this.origin,evt:t,updateEdge:this.get("updateEdge"),onlyChangeComboSize:this.onlyChangeComboSize,updateParentCombos:this.updateParentCombos}):e||this.targets.map((function(e){return n.update(e,t)})):this.targets.map((function(r){return n.update(r,t,e)})))},update:function(t,e,n){var r=this.origin,i=t.get("model"),o=t.get("id");this.point[o]||(this.point[o]={x:i.x||0,y:i.y||0});var a=e.x-r.x+this.point[o].x,s=e.y-r.y+this.point[o].y;n&&(a+=r.x-e.x,s+=r.y-e.y);var u={x:a,y:s};this.get("updateEdge")?this.graph.updateItem(t,u,!1):t.updatePosition(u)},debounceUpdate:(0,x.debounce)((function(t){var e=t.targets,n=t.graph,r=t.point,i=t.origin,o=t.evt,a=t.updateEdge,s=t.onlyChangeComboSize,u=t.updateParentCombos;e.map((function(t){var e=t.get("model"),s=t.get("id");r[s]||(r[s]={x:e.x||0,y:e.y||0});var u={x:o.x-i.x+r[s].x,y:o.y-i.y+r[s].y};a?n.updateItem(t,u,!1):t.updatePosition(u)})),s&&u(n,e)}),50,!0),updateDelegate:function(t){var e=this.graph;if(this.delegateRect){var n=t.x-this.origin.x+this.originPoint.minX,r=t.y-this.origin.y+this.originPoint.minY;this.delegateRect.attr({x:n,y:r})}else{var i=e.get("group"),o=(0,x.deepMix)({},Gd.delegateStyle,this.delegateStyle),a=this.calculationGroupPosition(t),s=a.x,u=a.y,l=a.width,c=a.height,h=a.minX,d=a.minY;this.originPoint={x:s,y:u,width:l,height:c,minX:h,minY:d},this.delegateRect=i.addShape("rect",{attrs:(0,b.__assign)({width:l,height:c,x:s,y:u},o),name:"rect-delegate-shape"}),this.delegate=this.delegateRect,this.delegateRect.set("capture",!1)}},calculationGroupPosition:function(t){var e=this.targets;0===e.length&&e.push(t.item);for(var n=1/0,r=-1/0,i=1/0,o=-1/0,a=0;ar&&(r=c),h>o&&(o=h)}return{x:Math.floor(n),y:Math.floor(i),width:Math.ceil(r)-Math.floor(n),height:Math.ceil(o)-Math.floor(i),minX:n,minY:i}},updateParentCombos:function(t,e){var n=t||this.graph,r=e||this.targets,i={};null==r||r.forEach((function(t){var e=t.getModel().comboId;e&&(i[e]=n.findById(e))})),Object.values(i).forEach((function(t){t&&n.updateCombo(t)}))}};var Ny=null;const Py={getDefaultCfg:function(){return{trigger:"mouseenter",activeState:"active",inactiveState:"inactive",resetSelected:!1,shouldClearStatusOnSecond:!1,shouldUpdate:function(){return!0}}},getEvents:function(){return"mouseenter"===this.get("trigger")?{"node:mouseenter":"setAllItemStates","combo:mouseenter":"setAllItemStates","node:mouseleave":"clearActiveState","combo:mouseleave":"clearActiveState"}:{"node:click":"setAllItemStates","combo:click":"setAllItemStates","canvas:click":"clearActiveState","node:touchstart":"setOnTouchStart","combo:touchstart":"setOnTouchStart","canvas:touchstart":"clearOnTouchStart"}},setOnTouchStart:function(t){try{var e=t.originalEvent.touches,n=e[0],r=e[1];if(n&&r)return;t.preventDefault()}catch(t){console.warn("Touch original event not exist!")}this.setAllItemStates(t)},clearOnTouchStart:function(t){try{var e=t.originalEvent.touches,n=e[0],r=e[1];if(n&&r)return;t.preventDefault()}catch(t){console.warn("Touch original event not exist!")}this.clearActiveState(t)},setAllItemStates:function(t){clearTimeout(this.timer),this.throttleSetAllItemStates(t,this)},clearActiveState:function(t){var e=this;this.shouldClearStatusOnSecond&&(Ny=null),this.timer=setTimeout((function(){e.throttleClearActiveState(t,e)}),50)},throttleSetAllItemStates:(0,x.throttle)((function(t,e){var n=t.item,r=e.graph;if(r&&!r.destroyed&&(e.item=n,e.shouldUpdate(t.item,{event:t,action:"activate"},e))){var i=e.shouldClearStatusOnSecond,o=n.getModel().id;if(Ny===o&&i)return e.throttleClearActiveState(t,e),void(Ny=null);for(var a=e.activeState,s=e.inactiveState,u=r.getNodes(),l=r.getCombos(),c=r.getEdges(),h=r.get("vedges"),d=u.length,f=l.length,p=c.length,m=h.length,g=e.inactiveItems||{},v=e.activeItems||{},y=0;y-1||(this.trigger=Dy,console.warn("Behavior brush-select 的 trigger 参数不合法,请输入 'drag'、'shift'、'ctrl' 或 'alt'")),"drag"===this.trigger?{dragstart:"onMouseDown",drag:"onMouseMove",dragend:"onMouseUp","canvas:click":"clearStates"}:{dragstart:"onMouseDown",drag:"onMouseMove",dragend:"onMouseUp","canvas:click":"clearStates",keyup:"onKeyUp",keydown:"onKeyDown"}},onMouseDown:function(t){var e=t.item,n=this.brush,r=this.selectOnCombo,i="combo"===(null==e?void 0:e.getType());i&&!r||!i&&e||("drag"===this.trigger||this.keydown)&&(this.selectedNodes&&0!==this.selectedNodes.length&&this.clearStates(),n||(n=this.createBrush()),this.originPoint={x:t.canvasX,y:t.canvasY},n.attr({width:0,height:0}),n.show(),this.dragging=!0)},onMouseMove:function(t){this.dragging&&("drag"===this.trigger||this.keydown)&&this.updateBrush(t)},onMouseUp:function(t){this.graph;(this.brush||this.dragging)&&("drag"===this.trigger||this.keydown)&&(this.brush.remove(!0),this.brush=null,this.getSelectedNodes(t),this.dragging=!1)},clearStates:function(){var t=this.graph,e=this.selectedState,n=t.findAllByState("node",e),r=t.findAllByState("edge",e),i=t.findAllByState("combo",e);n.forEach((function(n){return t.setItemState(n,e,!1)})),r.forEach((function(n){return t.setItemState(n,e,!1)})),i.forEach((function(n){return t.setItemState(n,e,!1)})),this.selectedNodes=[],this.selectedEdges=[],this.selectedCombos=[],this.onDeselect&&this.onDeselect(this.selectedNodes,this.selectedEdges,this.selectedCombos),t.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[],combos:[]},select:!1})},isBBoxCenterInRect:function(t,e,n,r,i){var o=t.getBBox();return o.centerX>=e&&o.centerX<=n&&o.centerY>=r&&o.centerY<=i},getSelectedNodes:function(t){var e=this,n=this,r=n.graph,i=n.originPoint,o=n.shouldUpdate,a=n.isBBoxCenterInRect,s=this.selectedState,u={x:t.x,y:t.y},l=r.getPointByCanvas(i.x,i.y),c=Oy(u.x,l.x),h=Ly(u.x,l.x),d=Oy(u.y,l.y),f=Ly(u.y,l.y),p=[],m=[];r.getNodes().forEach((function(t){if(t.isVisible()&&a(t,c,h,d,f)&&o(t,"select",e)){p.push(t);var n=t.getModel();m.push(n.id),r.setItemState(t,s,!0)}}));var g=[];this.includeEdges&&p.forEach((function(t){t.getOutEdges().forEach((function(t){if(t.isVisible()){var n=t.getModel(),i=n.source,a=n.target;m.includes(i)&&m.includes(a)&&o(t,"select",e)&&(g.push(t),r.setItemState(t,e.selectedState,!0))}}))}));var v=[];this.includeCombos&&r.getCombos().forEach((function(t){if(t.isVisible()&&a(t,c,h,d,f)&&o(t,"select",e)){v.push(t);var n=t.getModel();m.push(n.id),r.setItemState(t,s,!0)}})),this.selectedEdges=g,this.selectedNodes=p,this.selectedCombos=v,this.onSelect&&this.onSelect(p,g,v),r.emit("nodeselectchange",{selectedItems:{nodes:p,edges:g,combos:v},select:!0})},createBrush:function(){var t=this.graph.get("canvas").addShape("rect",{attrs:this.brushStyle,capture:!1,name:"brush-shape"});return this.brush=t,this.delegate=t,t},updateBrush:function(t){var e=this.originPoint;this.brush.attr({width:Ry(t.canvasX-e.x),height:Ry(t.canvasY-e.y),x:Oy(t.canvasX,e.x),y:Oy(t.canvasY,e.y)})},onKeyDown:function(t){var e=t.key;if(e){var n=this.trigger.toLowerCase(),r=e.toLowerCase();this.keydown=r===n||"control"===r&&"ctrl"===n||"ctrl"===r&&"control"===n}},onKeyUp:function(){this.brush&&(this.brush.remove(!0),this.brush=null,this.dragging=!1),this.keydown=!1}};var By="shift",Uy=["shift","ctrl","alt","control"];const jy={getDefaultCfg:function(){return{multiple:!0,trigger:By,selectedState:"selected",selectNode:!0,selectEdge:!1,selectCombo:!0}},getEvents:function(){var t=this;return Uy.indexOf(t.trigger.toLowerCase())>-1||(t.trigger=By,console.warn("Behavior click-select 的 trigger 参数不合法,请输入 'drag'、'shift'、'ctrl' 或 'alt'")),t.multiple?{"node:click":"onClick","combo:click":"onClick","edge:click":"onClick","canvas:click":"onCanvasClick",keyup:"onKeyUp",keydown:"onKeyDown"}:{"node:click":"onClick","combo:click":"onClick","edge:click":"onClick","canvas:click":"onCanvasClick"}},onClick:function(t){var e=this,n=t.item;if(n&&!n.destroyed){var r=n.getType(),i=e.graph,o=e.keydown,a=e.multiple,s=e.shouldUpdate;if((0,e.shouldBegin)(t,e)){if(!o||!a){var u=i.findAllByState("node",e.selectedState).concat(i.findAllByState("edge",e.selectedState)).concat(i.findAllByState("combo",e.selectedState));(0,x.each)(u,(function(t){t!==n&&i.setItemState(t,e.selectedState,!1)}))}if(function(){switch(r){case"node":return e.selectNode;case"edge":return e.selectEdge;case"combo":return e.selectCombo;default:return!1}}())if(n.hasState(e.selectedState)){s(t,e)&&i.setItemState(n,e.selectedState,!1);l=i.findAllByState("node",e.selectedState),c=i.findAllByState("edge",e.selectedState),h=i.findAllByState("combo",e.selectedState);i.emit("nodeselectchange",{target:n,selectedItems:{nodes:l,edges:c,combos:h},select:!1})}else{s(t,e)&&i.setItemState(n,e.selectedState,!0);l=i.findAllByState("node",e.selectedState),c=i.findAllByState("edge",e.selectedState),h=i.findAllByState("combo",e.selectedState);i.emit("nodeselectchange",{target:n,selectedItems:{nodes:l,edges:c,combos:h},select:!0})}else{var l=i.findAllByState("node",e.selectedState),c=i.findAllByState("edge",e.selectedState),h=i.findAllByState("combo",e.selectedState);i.emit("nodeselectchange",{selectedItems:{nodes:l,edges:c,combos:h},select:!1})}}}},onCanvasClick:function(t){var e=this,n=this.graph;if((0,this.shouldBegin)(t,this)){var r=n.findAllByState("node",this.selectedState);(0,x.each)(r,(function(t){n.setItemState(t,e.selectedState,!1)}));var i=n.findAllByState("edge",this.selectedState);(0,x.each)(i,(function(t){n.setItemState(t,e.selectedState,!1)}));var o=n.findAllByState("combo",this.selectedState);(0,x.each)(o,(function(t){n.setItemState(t,e.selectedState,!1)})),n.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[],combos:[]},select:!1})}},onKeyDown:function(t){var e=t.key;e&&(e.toLowerCase()===this.trigger.toLowerCase()||"control"===e.toLowerCase()?this.keydown=!0:this.keydown=!1)},onKeyUp:function(){this.keydown=!1}};var Vy=N,Hy=.05;const Gy={getDefaultCfg:function(){return this.isFireFox="firefox"===cf(),{sensitivity:2,minZoom:void 0,maxZoom:void 0,enableOptimize:!1,optimizeZoom:.1,fixSelectedItems:{fixAll:!1,fixLineWidth:!1,fixLabel:!1,fixState:"selected"},animate:!1,animateCfg:{duration:500}}},getEvents:function(){var t=this.fixSelectedItems;return t.fixState||(t.fixState="selected"),t.fixAll&&(t.fixLineWidth=!0,t.fixLabel=!0),{wheel:"onWheel",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onTouchEnd"}},onTouchStart:function(t){var e=t.originalEvent.touches,n=e[0],r=e[1];t.preventDefault(),r&&(this.shouldBegin&&!this.shouldBegin(t,this)||(this.startPoint={pageX:n.pageX,pageY:n.pageY},this.moveable=!0,r&&(this.endPoint={pageX:r.pageX,pageY:r.pageY}),this.originScale=this.graph.getZoom()||this.currentScale||1))},onTouchMove:function(t){if(this.moveable){t.preventDefault();var e=t.originalEvent.touches,n=e[0],r=e[1];if(r){this.endPoint||(this.endPoint={pageX:r.pageX,pageY:r.pageY});var i=function(t,e){return Math.hypot(e.x-t.x,e.y-t.y)},o=i({x:n.pageX,y:n.pageY},{x:r.pageX,y:r.pageY})/i({x:this.startPoint.pageX,y:this.startPoint.pageY},{x:this.endPoint.pageX,y:this.endPoint.pageY}),a=this.originScale*o;this.currentScale=a;var s=this.get("minZoom")||this.graph.get("minZoom");if(!(a>(this.get("maxZoom")||this.graph.get("maxZoom"))||a0||t.wheelDelta<0?1-Hy*o:1/(1-Hy*o):t.wheelDelta<0?1-Hy*o:1/(1-Hy*o));var u=this.get("minZoom")||n.get("minZoom"),l=this.get("maxZoom")||n.get("maxZoom");if(s>l?s=l:sr/2?l-=h.width:l+=this.offset,c>i/2?c-=h.height:c+=this.offset;var d="".concat(l,"px"),f="".concat(c,"px");Gf(this.container,{left:d,top:f,visibility:"visible"})}else Gf(o,{visibility:"hidden"})},createTooltip:function(t){var e=t.get("el");e.style.position="relative";var n=Uh('
    '));return e.parentNode.appendChild(n),Gf(n,{position:"absolute",visibility:"visible"}),this.width=t.get("width"),this.height=t.get("height"),this.container=n,this.graph.get("tooltips").push(n),n}},Xy=(0,b.__assign)({getDefaultCfg:function(){return{item:"node",offset:12,formatText:function(t){return t.label}}},getEvents:function(){return{"node:mouseenter":"onMouseEnter","node:mouseleave":"onMouseLeave","node:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave"}}},Wy),Yy=(0,b.__assign)({getDefaultCfg:function(){return{item:"edge",offset:12,formatText:function(t){return"source: ".concat(t.source," target: ").concat(t.target)}}},getEvents:function(){return{"edge:mouseenter":"onMouseEnter","edge:mouseleave":"onMouseLeave","edge:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave"}}},Wy);var qy="click",$y=["click","dblclick"];const Ky={getDefaultCfg:function(){return{trigger:qy,onChange:function(){}}},getEvents:function(){var t,e;return $y.includes(this.trigger)?e=this.trigger:(e=qy,console.warn("Behavior collapse-expand 的 trigger 参数不合法,请输入 'click' 或 'dblclick'")),(t={})["node:".concat(e)]="onNodeClick",t.touchstart="onNodeClick",t},onNodeClick:function(t){var e=this;if("click"===this.trigger){if(this.timer)return clearTimeout(this.timer),void(this.timer=0);this.timer=setTimeout((function(){e.toggle(t),clearTimeout(e.timer),e.timer=0}),200)}else this.toggle(t)},toggle:function(t){var e=t.item;if(e){var n=this.graph.findDataById(e.get("id"));if(n){var r=n.children;if(r&&0!==r.length){var i=!n.collapsed;this.shouldBegin(t,i,this)&&(n.collapsed=i,e.getModel().collapsed=i,this.graph.emit("itemcollapsed",{item:t.item,collapsed:i}),this.shouldUpdate(t,i,this)&&(this.onChange(e,i,this),this.graph.layout()))}}}}};var Zy=hf.calculationItemsBBox,Qy=function t(e,n){if(!1!==n(e)&&e){var r=e.get("combos");if(0===r.length)return!1;(0,x.each)(r,(function(e){t(e,n)}))}};const Jy={getDefaultCfg:function(){return{enableDelegate:!1,delegateStyle:{},onlyChangeComboSize:!1,activeState:"",selectedState:"selected",enableStack:!0}},getEvents:function(){return{"combo:mousedown":"onMouseDown","combo:dragstart":"onDragStart","combo:drag":"onDrag","combo:dragend":"onDragEnd","combo:drop":"onDrop","node:drop":"onNodeDrop","combo:dragenter":"onDragEnter","combo:dragleave":"onDragLeave"}},validationCombo:function(t){var e=t.item;return!(!e||e.destroyed)&&(!!this.shouldUpdate(t,this)&&"combo"===e.getType())},onMouseDown:function(t){this.origin={x:t.x,y:t.y}},onDragStart:function(t){var e=this,n=this.graph,r=t.item;if(this.currentShouldEnd=!0,this.validationCombo(t)){this.targets=[];var i=n.findAllByState("combo",this.selectedState),o=r.get("id"),a=i.filter((function(t){var e=t.get("id");return o===e}));0===a.length?this.targets.push(r):this.targets=i;var s=[];this.targets.forEach((function(t){var e=t.getModel(),n=e.x,r=e.y,i=e.id;s.push({x:n,y:r,id:i})})),this.set("beforeDragItems",s),this.activeState&&this.targets.map((function(t){var r=t.getModel();if(r.parentId){var i=n.findById(r.parentId);i&&n.setItemState(i,e.activeState,!0)}})),this.point={},this.originPoint={},this.currentItemChildCombos=[],Qy(r,(function(t){if(t.destroyed)return!1;var n=t.getModel();return e.currentItemChildCombos.push(n.id),!0}))}},onDrag:function(t){var e=this;if(this.origin&&this.validationCombo(t))if(this.enableDelegate)this.updateDelegate(t);else{if(this.activeState){var n=this.graph,r=t.item,i=r.getModel(),o=n.getCombos(),a=r.getBBox(),s=a.centerX,u=a.centerY,l=a.width,c=o.filter((function(t){var n=t.getModel();return i.parentId,n.id!==i.id&&!e.currentItemChildCombos.includes(n.id)}));c.map((function(t){var r=t.getBBox(),i=r.centerX,o=r.centerY,a=r.width,c=s-i,h=u-o,d=2*Math.sqrt(c*c+h*h);l+a-d>.8*l?n.setItemState(t,e.activeState,!0):n.setItemState(t,e.activeState,!1)}))}(0,x.each)(this.targets,(function(n){e.updateCombo(n,t)})),this.onlyChangeComboSize&&this.updateParentCombos()}},updatePositions:function(t,e){var n=this;(this.enableDelegate||e)&&(0,x.each)(this.targets,(function(r){n.updateCombo(r,t,e)}))},onDrop:function(t){var e=this,n=t.item;if(this.currentShouldEnd=this.shouldEnd(t,n,this),this.updatePositions(t,!this.currentShouldEnd),this.currentShouldEnd&&n&&this.targets&&!n.destroyed){var r=this.graph,i=n.getModel();this.targets.map((function(t){t.getModel().parentId!==i.id?(e.activeState&&r.setItemState(n,e.activeState,!1),e.onlyChangeComboSize?r.updateCombo(t):r.updateComboTree(t,i.id,!1)):r.updateCombo(n)})),this.end(n,t),this.endComparison=!0}},onNodeDrop:function(t){var e=this;if(this.targets&&0!==this.targets.length){var n=this.graph,r=t.item.getModel().comboId,i=r?n.findById(r):void 0;if(this.currentShouldEnd=this.shouldEnd(t,i,this),this.updatePositions(t,!this.currentShouldEnd),this.currentShouldEnd){var o;if(r){if(this.activeState){var a=n.findById(r);n.setItemState(a,this.activeState,!1)}this.targets.map((function(t){e.onlyChangeComboSize?n.updateCombo(t):r!==t.getID()&&(o=n.findById(r),r!==t.getModel().parentId&&n.updateComboTree(t,r,!1))}))}else this.targets.map((function(t){e.onlyChangeComboSize?n.updateCombo(t):t.getModel().comboId&&n.updateComboTree(t,void 0,!1)}));this.endComparison=!0,this.end(o,t)}}},onDragEnter:function(t){if(this.origin&&this.validationCombo(t)){var e=t.item,n=this.graph;this.activeState&&n.setItemState(e,this.activeState,!0)}},onDragLeave:function(t){if(this.origin&&this.validationCombo(t)){var e=t.item,n=this.graph;this.activeState&&n.setItemState(e,this.activeState,!1)}},onDragEnd:function(t){if(this.targets&&0!==this.targets.length){var e=t.item;this.currentShouldEnd&&this.updatePositions(t);var n=this.getParentCombo(e.getModel().parentId),r=this.graph;n&&this.activeState&&r.setItemState(n,this.activeState,!1),this.end(void 0,t)}},end:function(t,e){var n=this;if(this.origin){var r=this.graph;if(this.delegateShape)r.get("delegateGroup").clear(),this.delegateShape=null;if(t&&this.activeState&&r.setItemState(t,this.activeState,!1),!t){var i=r.get("enabledStack")&&this.enableStack,o={before:{nodes:[],edges:[],combos:[].concat(this.get("beforeDragItems"))},after:{nodes:[],edges:[],combos:[]}};this.targets.map((function(t){if(n.onlyChangeComboSize){r.updateCombo(t);var e=t.getModel(),a=e.x,s=e.y,u=e.id;o.after.combos.push({x:a,y:s,id:u}),r.pushStack("update",o)}else r.updateComboTree(t,void 0,i)}))}this.point=[],this.origin=null,this.originPoint=null,this.targets.length=0}},traverse:function(t,e,n){var r=this;if(void 0===n&&(n={}),!1!==e(t,n)&&t){var i=t.get("combos");(0,x.each)(i,(function(t){r.traverse(t,e,n)}));var o=t.get("nodes");(0,x.each)(o,(function(t){r.traverse(t,e,n)}))}},updateCombo:function(t,e,n){this.updateSingleItem(t,e,n);var r={};this.traverse(t,(function(t,e){return!t.destroyed&&(t.getEdges().forEach((function(t){return e[t.getID()]=t})),!0)}),r),Object.values(r).forEach((function(t){return t.refresh()}))},updateSingleItem:function(t,e,n){var r=this.origin,i=this.graph,o=t.getModel(),a=t.get("id");this.point[a]||(this.point[a]={x:o.x,y:o.y});var s=e.x-r.x+this.point[a].x,u=e.y-r.y+this.point[a].y;n&&(s+=r.x-e.x,u+=r.y-e.y),i.updateItem(t,{x:s,y:u},!1)},getParentCombo:function(t){var e=this.graph;if(t){var n=e.findById(t);if(n)return n}},updateDelegate:function(t){var e=this.graph;if(this.delegateShape){var n=t.x-this.origin.x+this.originPoint.minX,r=t.y-this.origin.y+this.originPoint.minY;this.delegateShape.attr({x:n,y:r})}else{var i=e.get("delegateGroup"),o=null,a=(o=this.targets.length>1?Zy(this.targets):this.targets[0].getBBox()).x,s=o.y,u=o.width,l=o.height,c=o.minX,h=o.minY;this.originPoint={x:a,y:s,width:u,height:l,minX:c,minY:h};var d=(0,b.__assign)((0,b.__assign)({},Gd.delegateStyle),this.delegateStyle);this.delegateShape=i.addShape("rect",{attrs:(0,b.__assign)({width:o.width,height:o.height,x:o.x,y:o.y},d),name:"combo-delegate-shape"}),this.delegateShape.set("capture",!1),this.delegate=this.delegateShape}},updateParentCombos:function(){var t=this.graph,e=this.targets,n={};null==e||e.forEach((function(e){var r=e.getModel().parentId;r&&(n[r]=t.findById(r))})),Object.values(n).forEach((function(e){e&&t.updateCombo(e)}))}};var tb="dblclick",eb=["click","dblclick"];const nb={getDefaultCfg:function(){return{trigger:tb,relayout:!0}},getEvents:function(){var t,e;return eb.includes(this.trigger)?e=this.trigger:(e=tb,console.warn("Behavior collapse-expand-group 的 trigger 参数不合法,请输入 'click' 或 'dblclick'")),(t={})["combo:".concat(e)]="onComboClick",t},onComboClick:function(t){var e=t.item,n=this.graph,r=this.relayout;if(e&&!e.destroyed&&"combo"===e.getType()){var i=e.getModel().id;i&&(n.collapseExpandCombo(i),r&&n.get("layout")?n.layout():n.refreshPositions())}}};var rb=hf.isPolygonsIntersect,ib=hf.pathToPoints,ob="shift",ab=["drag","shift","ctrl","alt","control"];const sb={getDefaultCfg:function(){return{delegateStyle:{fill:"#EEF6FF",fillOpacity:.4,stroke:"#DDEEFE",lineWidth:1},onSelect:function(){},onDeselect:function(){},shouldDeselect:void 0,selectedState:"selected",trigger:ob,includeEdges:!0,selectedEdges:[],selectedNodes:[]}},getEvents:function(){return ab.indexOf(this.trigger.toLowerCase())>-1||(this.trigger=ob,console.warn("Behavior lasso-select 的 trigger 参数不合法,请输入 'drag'、'shift'、'ctrl' 或 'alt'")),"drag"===this.trigger?{dragstart:"onDragStart",drag:"onDragMove",dragend:"onDragEnd","canvas:click":"clearStates"}:{dragstart:"onDragStart",drag:"onDragMove",dragend:"onDragEnd",keyup:"onKeyUp",keydown:"onKeyDown","canvas:click":"clearStates"}},onDragStart:function(t){var e=this.lasso;t.item||("drag"===this.trigger||this.keydown)&&(this.selectedNodes&&0!==this.selectedNodes.length&&this.clearStates("dragstart"),e||(e=this.createLasso()),this.dragging=!0,this.originPoint={x:t.x,y:t.y},this.points.push(this.originPoint),e.show())},onDragMove:function(t){this.dragging&&("drag"===this.trigger||this.keydown)&&(this.points.push({x:t.x,y:t.y}),this.updateLasso(t))},onDragEnd:function(t){(this.lasso||this.dragging)&&("drag"===this.trigger||this.keydown)&&(this.points.push(this.originPoint),this.getSelectedItems(),this.lasso.remove(!0),this.lasso=null,this.points=[],this.dragging=!1)},getLassoPath:function(){var t=this.points,e=[];return t.length&&(t.forEach((function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e.push(["L",t[0].x,t[0].y])),e},clearStates:function(t){void 0===t&&(t="canvas:click");var e=this,n=e.graph,r=e.selectedState,i=e.shouldDeselect,o=n.findAllByState("node",r),a=n.findAllByState("edge",r);i&&!i({action:t,nodes:o,edges:a})||(o.forEach((function(t){return n.setItemState(t,r,!1)})),a.forEach((function(t){return n.setItemState(t,r,!1)}))),this.onDeselect&&this.onDeselect(this.selectedNodes,this.selectedEdges),this.selectedNodes=[],this.selectedEdges=[],n.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[]},select:!1})},getSelectedItems:function(){var t=this,e=this.graph,n=this.shouldUpdate,r=this.points.map((function(t){return[e.getCanvasByPoint(t.x,t.y).x,e.getCanvasByPoint(t.x,t.y).y]})),i=this.selectedState,o=[],a=[];e.getNodes().forEach((function(s){if(s.isVisible()&&function(t,e){var n,r=t.getKeyShape();if("path"===t.get("type"))n=ib(r.attr("path"));else{var i=r.getCanvasBBox();n=[[i.minX,i.minY],[i.maxX,i.minY],[i.maxX,i.maxY],[i.minX,i.maxY]]}return rb(e,n)}(s,r)&&n(s,"select",t)){o.push(s);var u=s.getModel();a.push(u.id),e.setItemState(s,i,!0)}}));var s=[];this.includeEdges&&o.forEach((function(r){r.getOutEdges().forEach((function(r){if(r.isVisible()){var i=r.getModel(),o=i.source,u=i.target;a.includes(o)&&a.includes(u)&&n(r,"select",t)&&(s.push(r),e.setItemState(r,t.selectedState,!0))}}))})),this.selectedEdges=s,this.selectedNodes=o,this.onSelect&&this.onSelect(o,s),e.emit("nodeselectchange",{selectedItems:{nodes:o,edges:s},select:!0})},createLasso:function(){var t=this.graph.get("delegateGroup").addShape("path",{attrs:(0,b.__assign)({path:[]},this.delegateStyle),capture:!1,name:"lasso-shape"});return this.lasso=t,this.delegate=t,this.points=[],t},updateLasso:function(t){this.lasso.attr({path:this.getLassoPath()})},onKeyDown:function(t){var e=t.key;e&&(e.toLowerCase()===this.trigger.toLowerCase()?this.keydown=!0:this.keydown=!1)},onKeyUp:function(){this.lasso&&(this.lasso.remove(!0),this.lasso=null,this.points=[],this.dragging=!1),this.keydown=!1}};var ub="click",lb=["click","drag"],cb=void 0,hb=["shift","ctrl","control","alt","meta",void 0];const db={getDefaultCfg:function(){return{trigger:ub,key:cb,edgeConfig:{},getEdgeConfig:void 0}},getEvents:function(){var t,e=this;return lb.indexOf(e.trigger.toLowerCase())>-1||(e.trigger=ub,console.warn("Behavior create-edge 的 trigger 参数不合法,请输入 'click','drag'")),e.key&&-1===hb.indexOf(e.key.toLowerCase())&&(e.trigger=cb,console.warn("Behavior create-edge 的 key 参数不合法,请输入 'shift','ctrl','alt','control',或 undefined")),"drag"===e.trigger?t={"node:dragstart":"onClick","combo:dragstart":"onClick",drag:"updateEndPoint","node:drop":"onClick","combo:drop":"onClick",dragend:"onDragEnd"}:"click"===e.trigger&&(t={"node:click":"onClick",mousemove:"updateEndPoint","edge:click":"cancelCreating","canvas:click":"cancelCreating","combo:click":"onClick"}),e.key&&(t.keydown="onKeyDown",t.keyup="onKeyUp"),t},onDragEnd:function(t){var e=this;if(!e.key||e.keydown){var n=t.item;n&&n.getID()!==e.source&&"node"===n.getType()||e.cancelCreating({item:e.edge,x:t.x,y:t.y})}},onClick:function(t){var e=this;if(!e.key||e.keydown){var n=t.item,r=e.graph,i=n.getModel(),o=e.getEdgeConfig;if(e.addingEdge&&e.edge){if(!e.shouldEnd(t,e))return;var a=void 0;a=o&&(0,x.isFunction)(o)?o({source:e.source,target:i.id},e):e.edgeConfig;var s=(0,b.__assign)({target:i.id},a);if(e.source===i.id&&(s.type="loop"),r.emit("beforecreateedge",{}),r.updateItem(e.edge,s,!1),r.get("enabledStack")){var u=(0,b.__assign)((0,b.__assign)({},e.edge.getModel()),{itemType:"edge"}),l={};l.edges=[u],r.pushStack("add",{before:{},after:l})}r.emit("aftercreateedge",{edge:e.edge}),e.edge.getKeyShape().set("capture",!0),e.edge=null,e.addingEdge=!1}else{if(!e.shouldBegin(t,e))return;a=void 0;a=o&&(0,x.isFunction)(o)?o({source:i.id,target:i.id},e):e.edgeConfig,e.edge=r.addItem("edge",(0,b.__assign)({source:i.id,target:i.id},a),!1),e.source=i.id,e.addingEdge=!0,e.edge.getKeyShape().set("capture",!1)}}},updateEndPoint:function(t){var e=this;if(!e.key||e.keydown){e.edge&&e.edge.destroyed&&e.cancelCreating({item:e.edge});var n={x:t.x,y:t.y};e.graph.findById(e.source)?e.addingEdge&&e.edge&&e.graph.updateItem(e.edge,{target:n},!1):e.addingEdge=!1}},cancelCreating:function(t){var e,n,r=this;if(!r.key||r.keydown){var i=r.graph,o=t.item;return r.addingEdge&&(r.edge===o||(null===(n=null===(e=t.target)||void 0===e?void 0:e.isCanvas)||void 0===n?void 0:n.call(e)))?(r.edge&&!r.edge.destroyed&&i.removeItem(r.edge,!1),r.edge=null,void(r.addingEdge=!1)):void 0}},onKeyDown:function(t){var e=this,n=t.key;n&&(n.toLowerCase()===e.key.toLowerCase()?e.keydown=!0:e.keydown=!1)},onKeyUp:function(){var t=this;t.addingEdge&&t.edge&&(t.graph.removeItem(t.edge,!1),t.addingEdge=!1,t.edge=null),this.keydown=!1}};var fb="ctrl",pb=["shift","ctrl","alt","control"];const mb={getDefaultCfg:function(){return{trigger:fb,combinedKey:"1",functionName:"fitView",functionParams:[]}},getEvents:function(){return pb.indexOf(this.trigger.toLowerCase())>-1||(this.trigger=fb,console.warn("Behavior shortcuts-fit-view 的 trigger 参数 '".concat(this.trigger,"' 不合法,请输入 'drag'、'shift'、'ctrl' 或 'alt'"))),this.combinedKey===this.trigger&&(this.combinedKey=void 0),{keyup:"onKeyUp",keydown:"onKeyDown"}},onKeyDown:function(t){var e=t.key;if(e){var n=this.trigger.toLowerCase(),r=e.toLowerCase();this.triggerKeydown||(this.triggerKeydown=r===n||"control"===r&&"ctrl"===n||"ctrl"===r&&"control"===n);var i=this.graph;if(!i[this.functionName])return console.warn("Behavior shortcuts-fit-view 的 functionName 参数 '".concat(this.functionName,"' 不合法,它不是 Graph 的一个函数名")),{};if(!this.triggerKeydown||this.combinedKey){var o=this.combinedKey.toLowerCase();this.triggerKeydown&&(r===o||"control"===r&&"ctrl"===o||"ctrl"===r&&"control"===o)&&(this.functionParams&&this.functionParams.length?i[this.functionName].apply(i,this.functionParams):i[this.functionName]())}else this.functionParams&&this.functionParams.length?i[this.functionName].apply(i,this.functionParams):i[this.functionName]()}},onKeyUp:function(){this.brush&&(this.brush.remove(!0),this.brush=null,this.dragging=!1),this.triggerKeydown=!1}};var gb=["shift","ctrl","alt","control","meta"];const vb={getDefaultCfg:function(){return{direction:"both",enableOptimize:!1,zoomKey:"ctrl",scalableRange:0,allowDragOnItem:!0}},getEvents:function(){return this.zoomKey&&-1!==gb.indexOf(this.zoomKey)||(this.zoomKey="ctrl"),{wheel:"onWheel"}},onWheel:function(t){var e=this;if(this.allowDrag(t)){var n=this.graph,r=Array.isArray(this.zoomKey)?[].concat(this.zoomKey):[this.zoomKey];if(r.includes("control")&&r.push("ctrl"),r.some((function(e){return t["".concat(e,"Key")]}))){var i=n.get("canvas").getPointByClient(t.clientX,t.clientY),o=n.getZoom();t.wheelDelta>0?o+=.05*o:o-=.05*o,n.zoomTo(o,{x:i.x,y:i.y})}else{var a=t.deltaX||t.movementX,s=t.deltaY||t.movementY;!s&&navigator.userAgent.indexOf("Firefox")>-1&&(s=125*-t.wheelDelta/3);var u=this.graph.get("width"),l=this.graph.get("height"),c=this.graph.get("canvas").getCanvasBBox(),h=this.scalableRange,d=this.scalableRange;h<1&&h>-1&&(h*=u,d*=l);var f=c.minX,p=c.maxX,m=c.minY,g=c.maxY;a>0?p<-h?a=0:p-a<-h&&(a=p+h):a<0&&(f>u+h?a=0:f-a>u+h&&(a=f-(u+h))),s>0?g<-d?s=0:g-s<-d&&(s=g+d):s<0&&(m>l+d?s=0:m-s>l+d&&(s=m-(l+d))),"x"===this.get("direction")?s=0:"y"===this.get("direction")&&(a=0),n.translate(-a,-s)}if(t.preventDefault(),this.get("enableOptimize")){var v=this.get("optimizeZoom"),y=this.get("optimized"),b=n.getNodes(),x=n.getEdges(),w=b.length,_=x.length;if(!y){for(var S=0;S{"use strict";n.r(e),n.d(e,{Graph:()=>w,GraphWithEvent:()=>T,algorithm:()=>r,comparision:()=>o,essence:()=>i,generate:()=>s});var r={};n.r(r),n.d(r,{components:()=>O,dfs:()=>R,dijkstra:()=>U,dijkstraAll:()=>j,findCycles:()=>H,floydWarshall:()=>it,isAcyclic:()=>tt,postorder:()=>et,preorder:()=>nt,prim:()=>P,tarjan:()=>V,topsort:()=>J});var i={};n.r(i),n.d(i,{hasSelfLoop:()=>bt,isGraph:()=>gt,isNullGraph:()=>yt,isSimpleGraph:()=>vt});var o={};n.r(o),n.d(o,{containAllSameEdges:()=>ht,containAllSameNodes:()=>ct,containSameEdges:()=>at,containSameNodes:()=>ot,getSameEdges:()=>ut,getSameNodes:()=>st,isGraphComplement:()=>xt,isGraphContainsAnother:()=>ft,isGraphOptionSame:()=>lt,isGraphSame:()=>dt});var a,s={};function u(t,e){var n=t.get(e)||0;t.set(e,n+1)}function l(t,e){var n=t.get(e);void 0!==n&&((n-=1)>0?t.set(e,n):t.delete(e))}function c(t,e,n,r){var i=String(e),o=String(n);if(!t&&i>o){var s=i;i=o,o=s}return i+a.EDGE_KEY_DELIM+o+a.EDGE_KEY_DELIM+(void 0===r?a.DEFAULT_EDGE_NAME:r)}function h(t,e,n,r){var i=String(e),o=String(n),a={v:e,w:n};if(!t&&i>o){var s=a.v;a.v=a.w,a.w=s}return void 0!==r&&(a.name=r),a}function d(t,e){return c(t,e.v,e.w,e.name)}function f(t){return"function"==typeof t}n.r(s),n.d(s,{getGraphComplement:()=>wt}),function(t){t.DEFAULT_EDGE_NAME="\0",t.GRAPH_NODE="\0",t.EDGE_KEY_DELIM=""}(a||(a={}));var p=function(t){return t.nodes().map((function(e){var n={id:e,value:t.node(e),parent:t.parent(e)};return void 0===n.value&&delete n.value,void 0===n.parent&&delete n.parent,n}))},m=function(t){return t.edges().map((function(e){var n=t.edge(e),r={v:e.v,w:e.w,value:n,name:e.name};return void 0===r.name&&delete r.name,void 0===r.value&&delete r.value,r}))};function g(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function v(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.directed=!0,this.multigraph=!1,this.compound=!1,this.GRAPH_NODE=a.GRAPH_NODE,this.label=void 0,this.nodeCountNum=0,this.edgeCountNum=0,this.defaultNodeLabelFn=function(){},this.defaultEdgeLabelFn=function(){},this.parentMap=void 0,this.childrenMap=void 0,this.nodesLabelMap=new Map,this.inEdgesMap=new Map,this.outEdgesMap=new Map,this.predecessorsMap=new Map,this.successorsMap=new Map,this.edgesMap=new Map,this.edgesLabelsMap=new Map,this.isDirected=function(){return e.directed},this.isMultigraph=function(){return e.multigraph},this.isCompound=function(){return e.compound},this.setGraph=function(t){return e.label=t,e},this.graph=function(){return e.label},this.setDefaultNodeLabel=function(t){return f(t)?e.defaultNodeLabelFn=t:e.defaultNodeLabelFn=function(){return t},e},this.nodeCount=function(){return e.nodeCountNum},this.node=function(t){return e.nodesLabelMap.get(t)},this.nodes=function(){return Array.from(e.nodesLabelMap.keys())},this.sources=function(){return e.nodes().filter((function(t){var n;return!(null===(n=e.inEdgesMap.get(t))||void 0===n?void 0:n.size)}))},this.sinks=function(){return e.nodes().filter((function(t){var n;return!(null===(n=e.outEdgesMap.get(t))||void 0===n?void 0:n.size)}))},this.setNodes=function(t,n){return t.map((function(t){return e.setNode(t,n)})),e},this.hasNode=function(t){return e.nodesLabelMap.has(t)},this.checkCompound=function(){if(!e.isCompound())throw new Error("Cannot construct parent-children relations in a non-compound graph")},this.parent=function(t){if(e.isCompound()){var n,r=null===(n=e.parentMap)||void 0===n?void 0:n.get(t);if(r!==e.GRAPH_NODE)return r}},this.removeFromParentsChildList=function(t){var n=e.parentMap.get(t);e.childrenMap.get(n).delete(t)},this.setParent=function(t,n){var r,i;e.checkCompound();for(var o=void 0===n?e.GRAPH_NODE:n,a=e.parent(o);a;){if(t===a)throw new Error("Setting "+n+" as parent of "+t+" would create a cycle");a=e.parent(a)}n&&e.setNode(n),e.setNode(t),e.removeFromParentsChildList(t),null===(r=e.parentMap)||void 0===r||r.set(t,o);var s=e.childrenMap.get(o);return s.set(t,!0),null===(i=e.childrenMap)||void 0===i||i.set(o,s),e},this.children=function(t){var n=void 0===t?e.GRAPH_NODE:t;if(e.isCompound()){var r,i=null===(r=e.childrenMap)||void 0===r?void 0:r.get(n);return i?Array.from(i.keys()):void 0}return n===e.GRAPH_NODE?e.nodes():t&&e.hasNode(t)?[]:void 0},this.predecessors=function(t){var n=e.predecessorsMap.get(t);return n?Array.from(n.keys()):void 0},this.successors=function(t){var n=e.successorsMap.get(t);return n?Array.from(n.keys()):void 0},this.neighbors=function(t){var n;if(e.hasNode(t))return Array.from(new Set(null===(n=e.predecessors(t))||void 0===n?void 0:n.concat(e.successors(t))))},this.isLeaf=function(t){var n,r;return e.isDirected()?!(null===(r=e.successors(t))||void 0===r?void 0:r.length):!(null===(n=e.neighbors(t))||void 0===n?void 0:n.length)},this.filterNodes=function(n){var r=e.directed,i=e.multigraph,o=e.compound,a=new t({directed:r,multigraph:i,compound:o});if(a.setGraph(e.graph()),e.nodes().forEach((function(t){n(t)&&a.setNode(t,e.node(t))})),e.edges().forEach((function(t){a.hasNode(t.v)&&a.hasNode(t.w)&&a.setEdgeObj(t,e.edge(t))})),o){a.nodes().forEach((function(t){a.setParent(t,function(t){for(var n=e.parent(t);void 0!==n&&!a.hasNode(n);)n=e.parent(n);return n}(t))}))}return a},this.setDefaultEdgeLabel=function(t){return f(t)?e.defaultEdgeLabelFn=t:e.defaultEdgeLabelFn=function(){return t},e},this.edgeCount=function(){return e.edgeCountNum},this.setEdgeObj=function(t,n){return e.setEdge(t.v,t.w,n,t.name)},this.setPath=function(t,n){return t.reduce((function(t,r){return e.setEdge(t,r,n),r})),e},this.edgeFromArgs=function(t,n,r){return e.edge({v:t,w:n,name:r})},this.edge=function(t){return e.edgesLabelsMap.get(d(e.isDirected(),t))},this.hasEdge=function(t,n,r){return e.edgesLabelsMap.has(d(e.isDirected(),{v:t,w:n,name:r}))},this.removeEdgeObj=function(t){var n=t.v,r=t.w,i=t.name;return e.removeEdge(n,r,i)},this.edges=function(){return Array.from(e.edgesMap.values())},this.inEdges=function(t,n){var r=e.inEdgesMap.get(t);if(r)return Array.from(r.values()).filter((function(t){return!n||t.v===n}))},this.outEdges=function(t,n){var r=e.outEdgesMap.get(t);if(r)return Array.from(r.values()).filter((function(t){return!n||t.w===n}))},this.nodeEdges=function(t,n){var r;if(e.hasNode(t))return null===(r=e.inEdges(t,n))||void 0===r?void 0:r.concat(e.outEdges(t,n))},this.toJSON=function(){return void 0===(n={options:{directed:(t=e).isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:p(t),edges:m(t),value:t.graph()}).value&&delete n.value,n;var t,n},this.nodeInDegree=function(t){var n=e.inEdgesMap.get(t);return n?n.size:0},this.nodeOutDegree=function(t){var n=e.outEdgesMap.get(t);return n?n.size:0},this.nodeDegree=function(t){return e.nodeInDegree(t)+e.nodeOutDegree(t)},this.source=function(t){return t.v},this.target=function(t){return t.w};var r=v(v({},x),n);this.compound=r.compound,this.directed=r.directed,this.multigraph=r.multigraph,this.compound&&(this.parentMap=new Map,this.childrenMap=new Map)}var e,n,r;return e=t,(n=[{key:"setNode",value:function(t,e){var n,r=this.nodesLabelMap,i=this.defaultNodeLabelFn,o=this.isCompound,a=this.parentMap,s=this.childrenMap,u=this.inEdgesMap,l=this.outEdgesMap,c=this.predecessorsMap,h=this.successorsMap;return r.has(t)?(void 0!==e&&r.set(t,e),this):(r.set(t,e||i(t)),o()&&(null==a||a.set(t,this.GRAPH_NODE),null==s||s.set(t,new Map),(null==s?void 0:s.has(this.GRAPH_NODE))||null==s||s.set(this.GRAPH_NODE,new Map),null==s||null===(n=s.get(this.GRAPH_NODE))||void 0===n||n.set(t,!0)),[u,l,c,h].forEach((function(e){return e.set(t,new Map)})),this.nodeCountNum+=1,this)}},{key:"removeNode",value:function(t){var e=this;if(this.hasNode(t)){var n,r,i,o=function(t){e.removeEdge(t.v,t.w,t.name)},a=this.inEdgesMap,s=this.outEdgesMap,u=this.predecessorsMap,l=this.successorsMap,c=this.nodesLabelMap;this.isCompound()&&(this.removeFromParentsChildList(t),null===(n=this.parentMap)||void 0===n||n.delete(t),null===(r=this.children(t))||void 0===r||r.forEach((function(t){return e.setParent(t)})),null===(i=this.childrenMap)||void 0===i||i.delete(t));var h=a.get(t),d=s.get(t);Array.from(h.values()).forEach((function(t){return o(t)})),Array.from(d.values()).forEach((function(t){return o(t)})),c.delete(t),a.delete(t),s.delete(t),u.delete(t),l.delete(t),this.nodeCountNum-=1}return this}},{key:"setEdge",value:function(t,e,n,r){var i,o,a=h(this.isDirected(),t,e,r),s=d(this.isDirected(),a),l=a.v,c=a.w;if(this.edgesLabelsMap.has(s))return this.edgesLabelsMap.set(s,n),this;if(void 0!==r&&!this.isMultigraph())throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(l),this.setNode(c),this.edgesLabelsMap.set(s,n||this.defaultEdgeLabelFn(l,c,r)),Object.freeze(a),this.edgesMap.set(s,a);var f=this.predecessorsMap.get(c),p=this.successorsMap.get(l);return u(f,l),u(p,c),null===(i=this.inEdgesMap.get(c))||void 0===i||i.set(s,a),null===(o=this.outEdgesMap.get(l))||void 0===o||o.set(s,a),this.edgeCountNum+=1,this}},{key:"removeEdge",value:function(t,e,n){var r=c(this.isDirected(),t,e,n);if(this.edgesMap.get(r)){var i=h(this.isDirected(),t,e,n),o=i.v,a=i.w;this.edgesLabelsMap.delete(r),this.edgesMap.delete(r);var s=this.predecessorsMap.get(a),u=this.successorsMap.get(o);l(s,o),l(u,a),this.inEdgesMap.get(a).delete(r),this.outEdgesMap.get(o).delete(r),this.edgeCountNum-=1}return this}}])&&b(e.prototype,n),r&&b(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function _(t){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_(t)}function S(t,e){for(var n=0;n-1&&this.eventPool[t].splice(n,1)}}},{key:"emitEvent",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r>1])||void 0===a?void 0:a.priority)e.arr[r].priority)throw new Error("New priority is greater than current priority.Key: ".concat(t," Old: + ").concat(e.arr[r].priority," New: ").concat(n));e.arr[r].priority=n,e.innerDecrease(r)}}));const P=function(t,e){var n,r=new w,i=new Map,o=new N;function a(t){var r=t.v===n?t.w:t.v,a=o.priority(r);if(void 0!==a){var s=e(t);s0;){var u;if(n=o.removeMin(),i.has(n))r.setEdge(n,i.get(n));else{if(s)throw new Error("Input graph is not connected: "+t.graph());s=!0}null===(u=t.nodeEdges(n))||void 0===u||u.forEach(a)}return r};const O=function(t){var e=new Set,n=[];return t.nodes().forEach((function(r){for(var i=[],o=[r];o.length>0;){var a,s,u=o.pop();if(!e.has(u))e.add(u),i.push(u),null===(a=t.successors(u))||void 0===a||a.forEach((function(t){return o.push(t)})),null===(s=t.predecessors(u))||void 0===s||s.forEach((function(t){return o.push(t)}))}i.length&&n.push(i)})),n};var L=function t(e,n,r,i,o,a){i.includes(n)||(i.push(n),r||a.push(n),o(n).forEach((function(n){return t(e,n,r,i,o,a)})),r&&a.push(n))};const R=function(t,e,n){var r=Array.isArray(e)?e:[e],i=function(e){return t.isDirected()?t.successors(e):t.neighbors(e)},o=[],a=[];return r.forEach((function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);L(t,e,"post"===n,a,i,o)})),o};function D(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return z(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return z(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&(i=s.removeMin(),!(o=a.get(i))||o.distance!==Number.POSITIVE_INFINITY);)r(i).forEach(u);var l={};return Array.from(a.entries()).forEach((function(t){var e=D(t,2),n=e[0],r=e[1];return l[String(n)]=r,l})),l};const U=function(t,e,n,r){return B(t,e,n||F,r||function(e){return t.outEdges(e)})};const j=function(t,e,n){var r={};return t.nodes().forEach((function(i){return r[String(i)]=U(t,i,e,n),r})),r};const V=function(t){var e=0,n=[],r=new Map,i=[];function o(a){var s,u={onStack:!0,lowlink:e,index:e};if(r.set(a,u),e+=1,n.push(a),null===(s=t.successors(a))||void 0===s||s.forEach((function(t){var e;if(r.has(t)){if(null===(e=r.get(t))||void 0===e?void 0:e.onStack){var n=r.get(t);u.lowlink=Math.min(u.lowlink,n.index)}}else{o(t);var i=r.get(t);u.lowlink=Math.min(u.lowlink,i.lowlink)}})),u.lowlink===u.index){var l,c=[];do{l=n.pop(),r.get(l).onStack=!1,c.push(l)}while(a!==l);i.push(c)}}return t.nodes().forEach((function(t){r.has(t)||o(t)})),i};const H=function(t){return V(t).filter((function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])}))};function G(t){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},G(t)}function W(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n-1}},function(t,e,n){"use strict";e.a=function(t){return"object"==typeof t&&null!==t}},function(t,e,n){"use strict";var r=n(8),i=n(2),o=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return Object(r.a)(t,(function(n,r){Object(i.a)(t)&&"prototype"===r||e.push(n)})),e};e.a=o},function(t,e,n){"use strict";function r(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}e.a=function(t,e,n,i){return e&&r(t,e),n&&r(t,n),i&&r(t,i),t}},function(t,e,n){var r=n(35),i=["LR","RL","TB","BT","H","V"],o=["LR","RL","H"],a=i[0];t.exports=function(t,e,n){var s=e.direction||a;if(e.isHorizontal=function(t){return o.indexOf(t)>-1}(s),s&&-1===i.indexOf(s))throw new TypeError("Invalid direction: "+s);if(s===i[0])n(t,e);else if(s===i[1])n(t,e),t.right2left();else if(s===i[2])n(t,e);else if(s===i[3])n(t,e),t.bottom2top();else if(s===i[4]||s===i[5]){var u=r(t,e),l=u.left,c=u.right;n(l,e),n(c,e),e.isHorizontal?l.right2left():l.bottom2top(),c.translate(l.x-c.x,l.y-c.y),t.x=l.x,t.y=c.y;var h=t.getBoundingBox();e.isHorizontal?h.top<0&&t.translate(0,-h.top):h.left<0&&t.translate(-h.left,0)}var d=e.fixedRoot;return void 0===d&&(d=!0),d&&t.translate(-(t.x+t.width/2+t.hgap),-(t.y+t.height/2+t.vgap)),t}},function(t,e,n){var r=n(6),i={getId:function(t){return t.id||t.name},getPreH:function(t){return t.preH||0},getPreV:function(t){return t.preV||0},getHGap:function(t){return t.hgap||18},getVGap:function(t){return t.vgap||18},getChildren:function(t){return t.children},getHeight:function(t){return t.height||36},getWidth:function(t){var e=t.label||" ";return t.width||18*e.split("").length}};function o(t,e){var n=this;if(n.vgap=n.hgap=0,t instanceof o)return t;n.data=t;var r=e.getHGap(t),i=e.getVGap(t);return n.preH=e.getPreH(t),n.preV=e.getPreV(t),n.width=e.getWidth(t),n.height=e.getHeight(t),n.width+=n.preH,n.height+=n.preV,n.id=e.getId(t),n.x=n.y=0,n.depth=0,n.children||(n.children=[]),n.addGap(r,i),n}r.assign(o.prototype,{isRoot:function(){return 0===this.depth},isLeaf:function(){return 0===this.children.length},addGap:function(t,e){var n=this;n.hgap+=t,n.vgap+=e,n.width+=2*t,n.height+=2*e},eachNode:function(t){for(var e,n=[this];e=n.shift();)t(e),n=e.children.concat(n)},DFTraverse:function(t){this.eachNode(t)},BFTraverse:function(t){for(var e,n=[this];e=n.shift();)t(e),n=n.concat(e.children)},getBoundingBox:function(){var t={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode((function(e){t.left=Math.min(t.left,e.x),t.top=Math.min(t.top,e.y),t.width=Math.max(t.width,e.x+e.width),t.height=Math.max(t.height,e.y+e.height)})),t},translate:function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.eachNode((function(n){n.x+=t,n.y+=e,n.x+=n.preH,n.y+=n.preV}))},right2left:function(){var t=this,e=t.getBoundingBox();t.eachNode((function(t){t.x=t.x-2*(t.x-e.left)-t.width})),t.translate(e.width,0)},bottom2top:function(){var t=this,e=t.getBoundingBox();t.eachNode((function(t){t.y=t.y-2*(t.y-e.top)-t.height})),t.translate(0,e.height)}}),t.exports=function(t,e,n){void 0===e&&(e={});var a,s=new o(t,e=r.assign({},i,e)),u=[s];if(!n&&!t.collapsed)for(;a=u.shift();)if(!a.data.collapsed){var l=e.getChildren(a.data),c=l?l.length:0;if(a.children=new Array(c),l&&c)for(var h=0;h-1;)i.call(t,s,1);return t}},function(t,e,n){"use strict";var r=n(1),i=n(24);e.a=function(t,e){var n=[];if(!Object(r.a)(t))return n;for(var o=-1,a=[],s=t.length;++oe[r])return 1;if(t[r]n?n:t}},function(t,e,n){"use strict";e.a=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))}},function(t,e,n){"use strict";var r=n(5);e.a=function(t){return Object(r.a)(t)&&t%1!=0}},function(t,e,n){"use strict";var r=n(5);e.a=function(t){return Object(r.a)(t)&&t%2==0}},function(t,e,n){"use strict";var r=n(5),i=Number.isInteger?Number.isInteger:function(t){return Object(r.a)(t)&&t%1==0};e.a=i},function(t,e,n){"use strict";var r=n(5);e.a=function(t){return Object(r.a)(t)&&t<0}},function(t,e,n){"use strict";e.a=function(t,e,n){return void 0===n&&(n=r),Math.abs(t-e)0}},function(t,e,n){"use strict";var r=n(0),i=n(2);e.a=function(t,e){if(Object(r.a)(t)){for(var n,o=-1/0,a=0;ao&&(n=s,o=u)}return n}}},function(t,e,n){"use strict";var r=n(0),i=n(2);e.a=function(t,e){if(Object(r.a)(t)){for(var n,o=1/0,a=0;ae?(r&&(clearTimeout(r),r=null),s=l,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(u,c)),a};return l.cancel=function(){clearTimeout(r),s=0,r=i=o=null},l}},function(t,e,n){"use strict";var r=n(1);e.a=function(t){return Object(r.a)(t)?Array.prototype.slice.call(t):[]}},function(t,e,n){"use strict";var r={};e.a=function(t){return r[t=t||"g"]?r[t]+=1:r[t]=1,t+r[t]}},function(t,e,n){"use strict";e.a=function(){}},function(t,e,n){"use strict";e.a=function(t){return t}},function(t,e,n){"use strict";e.a=function(t){return Object(r.a)(t)?0:Object(i.a)(t)?t.length:Object.keys(t).length};var r=n(7),i=n(1)},function(t,e,n){"use strict";e.a=function(){for(var t=0,e=0,n=arguments.length;eh&&u>h);)if(d.push(s),h-=u,!(c=c.substr(16)))return d.join("");for(;s=c.substr(0,1),!((u=Object(o.a)(s,n))+l>h);)if(d.push(s),h-=u,!(c=c.substr(1)))return d.join("");return""+d.join("")+a}},function(t,e,n){"use strict";var r=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}();e.a=r},function(t,e){function n(t,e,n,r){void 0===r&&(r=[]);var i=this;i.w=t||0,i.h=e||0,i.y=n||0,i.x=0,i.c=r||[],i.cs=r.length,i.prelim=0,i.mod=0,i.shift=0,i.change=0,i.tl=null,i.tr=null,i.el=null,i.er=null,i.msel=0,i.mser=0}function r(t,e,n){n?t.y+=e:t.x+=e,t.children.forEach((function(t){r(t,e,n)}))}function i(t,e){var n=e?t.y:t.x;return t.children.forEach((function(t){n=Math.min(i(t,e),n)})),n}function o(t,e){r(t,-i(t,e),e)}function a(t,e,n){n?e.y=t.x:e.x=t.x,t.c.forEach((function(t,r){a(t,e.children[r],n)}))}function s(t,e,n){void 0===n&&(n=0),e?(t.x=n,n+=t.width):(t.y=n,n+=t.height),t.children.forEach((function(t){s(t,e,n)}))}n.fromNode=function(t,e){if(!t)return null;var r=[];return t.children.forEach((function(t){r.push(n.fromNode(t,e))})),e?new n(t.height,t.width,t.x,r):new n(t.width,t.height,t.y,r)},t.exports=function(t,e){void 0===e&&(e={});var r=e.isHorizontal;function i(t){0===t.cs?(t.el=t,t.er=t,t.msel=t.mser=0):(t.el=t.c[0].el,t.msel=t.c[0].msel,t.er=t.c[t.cs-1].er,t.mser=t.c[t.cs-1].mser)}function u(t,e,n){for(var r=t.c[e-1],i=r.mod,o=t.c[e],a=o.mod;null!==r&&null!==o;){d(r)>n.low&&(n=n.nxt);var s=i+r.prelim+r.w-(a+o.prelim);s>0&&(a+=s,l(t,e,n.index,s));var u=d(r),f=d(o);u<=f&&null!==(r=h(r))&&(i+=r.mod),u>=f&&null!==(o=c(o))&&(a+=o.mod)}!r&&o?function(t,e,n,r){var i=t.c[0].el;i.tl=n;var o=r-n.mod-t.c[0].msel;i.mod+=o,i.prelim-=o,t.c[0].el=t.c[e].el,t.c[0].msel=t.c[e].msel}(t,e,o,a):r&&!o&&function(t,e,n,r){var i=t.c[e].er;i.tr=n;var o=r-n.mod-t.c[e].mser;i.mod+=o,i.prelim-=o,t.c[e].er=t.c[e-1].er,t.c[e].mser=t.c[e-1].mser}(t,e,r,i)}function l(t,e,n,r){t.c[e].mod+=r,t.c[e].msel+=r,t.c[e].mser+=r,function(t,e,n,r){if(n!==e-1){var i=e-n;t.c[n+1].shift+=r/i,t.c[e].shift-=r/i,t.c[e].change-=r-r/i}}(t,e,n,r)}function c(t){return 0===t.cs?t.tl:t.c[0]}function h(t){return 0===t.cs?t.tr:t.c[t.cs-1]}function d(t){return t.y+t.h}function f(t,e,n){for(;null!==n&&t>=n.low;)n=n.nxt;return{low:t,index:e,nxt:n}}s(t,r);var p=n.fromNode(t,r);return function t(e){if(0!==e.cs){t(e.c[0]);for(var n=f(d(e.c[0].el),0,null),r=1;rs&&(s=e.depth);var n=e.children,r=n.length,o=new i(e.height,[]);return n.forEach((function(e,n){var i=t(e);o.children.push(i),0===n&&(o.leftChild=i),n===r-1&&(o.rightChild=i)})),o.originNode=e,o.isLeaf=e.isLeaf(),o}(t);return function t(e){if(e.isLeaf||0===e.children.length)e.drawingDepth=s;else{var n=e.children.map((function(e){return t(e)})),r=Math.min.apply(null,n);e.drawingDepth=r-1}return e.drawingDepth}(u),function t(r){r.x=r.drawingDepth*e.rankSep,r.isLeaf?(r.y=0,n&&(r.y=n.y+n.height+e.nodeSep,r.originNode.parent!==n.originNode.parent&&(r.y+=e.subTreeSep)),n=r):(r.children.forEach((function(e){t(e)})),r.y=(r.leftChild.y+r.rightChild.y)/2)}(u),a(u,t,e.isHorizontal),t}},function(t,e,n){function r(t,e){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},r(t,e)}var i=n(11),o=n(123),a=n(35),s=n(6),u=["LR","RL","H"],l=u[0],c=function(t){var e,n;function i(){return t.apply(this,arguments)||this}return n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,r(e,n),i.prototype.execute=function(){var t=this.options,e=this.rootNode;t.isHorizontal=!0;var n=t.indent,r=void 0===n?20:n,i=t.dropCap,s=void 0===i||i,c=t.direction,h=void 0===c?l:c,d=t.align;if(h&&-1===u.indexOf(h))throw new TypeError("Invalid direction: "+h);if(h===u[0])o(e,r,s,d);else if(h===u[1])o(e,r,s,d),e.right2left();else if(h===u[2]){var f=a(e,t),p=f.left,m=f.right;o(p,r,s,d),p.right2left(),o(m,r,s,d);var g=p.getBoundingBox();m.translate(g.width,0),e.x=m.x-e.width/2}return e},i}(i),h={};t.exports=function(t,e){return e=s.assign({},h,e),new c(t,e).execute()}},function(t,e,n){var r=n(6);t.exports=function(t,e,n,i){var o=null;t.eachNode((function(t){!function(t,e,n,i,o){var a="function"==typeof n?n(t):n*t.depth;if(!i)try{if(t.id===t.parent.children[0].id)return t.x+=a,void(t.y=e?e.y:0)}catch(t){}if(t.x+=a,e){if(t.y=e.y+r.getHeight(e,t,o),e.parent&&t.parent.id!==e.parent.id){var s=e.parent,u=s.y+r.getHeight(s,t,o);t.y=u>t.y?u:t.y}}else t.y=0}(t,o,e,n,i),o=t}))}},function(t,e,n){function r(t,e){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},r(t,e)}var i=n(11),o=n(125),a=n(17),s=n(6),u=function(t){var e,n;function i(){return t.apply(this,arguments)||this}return n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,r(e,n),i.prototype.execute=function(){return a(this.rootNode,this.options,o)},i}(i),l={};t.exports=function(t,e){return e=s.assign({},l,e),new u(t,e).execute()}},function(t,e,n){var r=n(6);function i(t,e){var n=0;return t.children.length?t.children.forEach((function(t){n+=i(t,e)})):n=t.height,t._subTreeSep=e.getSubTreeSep(t.data),t.totalHeight=Math.max(t.height,n)+2*t._subTreeSep,t.totalHeight}function o(t){var e=t.children,n=e.length;if(n){e.forEach((function(t){o(t)}));var r=e[0],i=e[n-1],a=i.y-r.y+i.height,s=0;if(e.forEach((function(t){s+=t.totalHeight})),a>t.height)t.y=r.y+a/2-t.height/2;else if(1!==e.length||t.height>s){var u=t.y+(t.height-a)/2-r.y;e.forEach((function(t){t.translate(0,u)}))}else t.y=(r.y+r.height/2+i.y+i.height/2)/2-t.height/2}}var a={getSubTreeSep:function(){return 0}};t.exports=function(t,e){void 0===e&&(e={}),e=r.assign({},a,e),t.parent={x:0,width:0,height:0,y:0},t.BFTraverse((function(t){t.x=t.parent.x+t.parent.width})),t.parent=null,i(t,e),t.startY=0,t.y=t.totalHeight/2-t.height/2,t.eachNode((function(t){var e=t.children,n=e.length;if(n){var r=e[0];if(r.startY=t.startY+t._subTreeSep,1===n)r.y=t.y+t.height/2-r.height/2;else{r.y=r.startY+r.totalHeight/2-r.height/2;for(var i=1;i{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Base=void 0;var n=function(){function t(){this.nodes=[],this.edges=[],this.combos=[],this.comboEdges=[],this.hiddenNodes=[],this.hiddenEdges=[],this.hiddenCombos=[],this.vedges=[],this.positions=[],this.destroyed=!1,this.onLayoutEnd=function(){}}return t.prototype.layout=function(t){return this.init(t),this.execute(!0)},t.prototype.init=function(t){this.nodes=t.nodes||[],this.edges=t.edges||[],this.combos=t.combos||[],this.comboEdges=t.comboEdges||[],this.hiddenNodes=t.hiddenNodes||[],this.hiddenEdges=t.hiddenEdges||[],this.hiddenCombos=t.hiddenCombos||[],this.vedges=t.vedges||[]},t.prototype.execute=function(t){},t.prototype.executeWithWorker=function(){},t.prototype.getDefaultCfg=function(){return{}},t.prototype.updateCfg=function(t){t&&Object.assign(this,t)},t.prototype.getType=function(){return"base"},t.prototype.destroy=function(){this.nodes=null,this.edges=null,this.combos=null,this.positions=null,this.destroyed=!0},t}();e.Base=n},33455:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.CircularLayout=void 0;var o=n(46271),a=n(81422);function s(t,e){var n=t.degree,r=e.degree;return nr?1:0}var u=function(t){function e(e){var n=t.call(this)||this;return n.radius=null,n.nodeSize=void 0,n.startRadius=null,n.endRadius=null,n.startAngle=0,n.endAngle=2*Math.PI,n.clockwise=!0,n.divisions=1,n.ordering=null,n.angleRatio=1,n.nodes=[],n.edges=[],n.nodeMap={},n.degrees=[],n.width=300,n.height=300,n.updateCfg(e),n}return i(e,t),e.prototype.getDefaultCfg=function(){return{radius:null,startRadius:null,endRadius:null,startAngle:0,endAngle:2*Math.PI,clockwise:!0,divisions:1,ordering:null,angleRatio:1}},e.prototype.execute=function(){var t,e=this,n=e.nodes,r=e.edges,i=n.length;if(0!==i){e.width||"undefined"==typeof window||(e.width=window.innerWidth),e.height||"undefined"==typeof window||(e.height=window.innerHeight),e.center||(e.center=[e.width/2,e.height/2]);var o=e.center;if(1===i)return n[0].x=o[0],n[0].y=o[1],void(e.onLayoutEnd&&e.onLayoutEnd());var s=e.radius,u=e.startRadius,l=e.endRadius,c=e.divisions,h=e.startAngle,d=e.endAngle,f=e.angleRatio,p=e.ordering,m=e.clockwise,g=e.nodeSpacing,v=e.nodeSize,y=(d-h)/i,b={};n.forEach((function(t,e){b[t.id]=e})),e.nodeMap=b;var x=(0,a.getDegree)(n.length,b,r);if(e.degrees=x,g){var w=(0,a.getFuncByUnknownType)(10,g),_=(0,a.getFuncByUnknownType)(10,v),S=-1/0;n.forEach((function(t){var e=_(t);Se.width?e.width/2:e.height/2;var A=y*f,M=[];M="topology"===p?e.topologyOrdering():"topology-directed"===p?e.topologyOrdering(!0):"degree"===p?e.degreeOrdering():n;for(var C=Math.ceil(i/c),T=0;T=0;E--)S(E);return{nodes:n,edges:r,combos:i,comboEdges:s}},e.prototype.getInnerGraphs=function(t){var e=this,n=e.comboTrees,r=e.nodeSize,i=e.edges,a=e.comboPadding,s=e.spacing,c={},h=this.innerLayout||new l.ConcentricLayout({type:"concentric",sortBy:"id"});return h.center=[0,0],h.preventOverlap=!0,h.nodeSpacing=s,(n||[]).forEach((function(e){(0,u.traverseTreeUp)(e,(function(e){var n,s=(null==a?void 0:a(e))||10;if((0,u.isArray)(s)&&(s=Math.max.apply(Math,s)),null===(n=e.children)||void 0===n?void 0:n.length){var l=e.children.map((function(e){if("combo"===e.itemType)return c[e.id];var n=t[e.id]||{};return o(o({},n),e)})),d=l.map((function(t){return t.id})),f={nodes:l,edges:i.filter((function(t){return d.includes(t.source)&&d.includes(t.target)}))},p=1/0;l.forEach((function(t){var e;t.size||(t.size=(null===(e=c[t.id])||void 0===e?void 0:e.size)||(null==r?void 0:r(t))||[30,30]),(0,u.isNumber)(t.size)&&(t.size=[t.size,t.size]),p>t.size[0]&&(p=t.size[0]),p>t.size[1]&&(p=t.size[1])})),h.layout(f);var m=(0,u.getLayoutBBox)(l),g=m.minX,v=m.minY,y=m.maxX,b=m.maxY,x={x:(y+g)/2,y:(b+v)/2};f.nodes.forEach((function(t){t.x-=x.x,t.y-=x.y}));var w=Math.max(y-g,p)+2*s,_=Math.max(b-v,p)+2*s;c[e.id]={id:e.id,nodes:l,size:[w,_]}}else if("combo"===e.itemType){var S=s?[2*s,2*s]:[30,30];c[e.id]={id:e.id,nodes:[],size:S}}return!0}))})),c},e.prototype.initVals=function(){var t,e,n=this,r=n.nodeSize,i=n.spacing;if(e=(0,u.isNumber)(i)?function(){return i}:(0,u.isFunction)(i)?i:function(){return 0},this.spacing=e,r)if((0,u.isFunction)(r))t=function(t){var n=r(t),i=e(t);return(0,u.isArray)(t.size)?((t.size[0]>t.size[1]?t.size[0]:t.size[1])+i)/2:((n||10)+i)/2};else if((0,u.isArray)(r)){var o=(r[0]>r[1]?r[0]:r[1])/2;t=function(t){return o+e(t)/2}}else{var a=r/2;t=function(t){return a+e(t)/2}}else t=function(t){var n=e(t);return t.size?(0,u.isArray)(t.size)?((t.size[0]>t.size[1]?t.size[0]:t.size[1])+n)/2:(0,u.isObject)(t.size)?((t.size.width>t.size.height?t.size.width:t.size.height)+n)/2:(t.size+n)/2:10+n/2};this.nodeSize=t;var s,l=n.comboPadding;s=(0,u.isNumber)(l)?function(){return l}:(0,u.isArray)(l)?function(){return Math.max.apply(null,l)}:(0,u.isFunction)(l)?l:function(){return 0},this.comboPadding=s},e.prototype.getType=function(){return"comboCombined"},e}(s.Base);e.ComboCombinedLayout=c},42335:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.ComboForceLayout=void 0;var o=n(46271),a=n(81422),s=function(t){function e(e){var n=t.call(this)||this;return n.center=[0,0],n.maxIteration=100,n.gravity=10,n.comboGravity=10,n.linkDistance=10,n.alpha=1,n.alphaMin=.001,n.alphaDecay=1-Math.pow(n.alphaMin,1/300),n.alphaTarget=0,n.velocityDecay=.6,n.edgeStrength=.6,n.nodeStrength=30,n.preventOverlap=!1,n.preventNodeOverlap=!1,n.preventComboOverlap=!1,n.collideStrength=void 0,n.nodeCollideStrength=.5,n.comboCollideStrength=.5,n.comboSpacing=20,n.comboPadding=10,n.optimizeRangeFactor=1,n.onTick=function(){},n.onLayoutEnd=function(){},n.depthAttractiveForceScale=1,n.depthRepulsiveForceScale=2,n.nodes=[],n.edges=[],n.combos=[],n.comboTrees=[],n.width=300,n.height=300,n.bias=[],n.nodeMap={},n.oriComboMap={},n.indexMap={},n.comboMap={},n.previousLayouted=!1,n.updateCfg(e),n}return i(e,t),e.prototype.getDefaultCfg=function(){return{maxIteration:100,center:[0,0],gravity:10,speed:1,comboGravity:30,preventOverlap:!1,preventComboOverlap:!0,preventNodeOverlap:!0,nodeSpacing:void 0,collideStrength:void 0,nodeCollideStrength:.5,comboCollideStrength:.5,comboSpacing:20,comboPadding:10,edgeStrength:.6,nodeStrength:30,linkDistance:10}},e.prototype.execute=function(){var t=this,e=t.nodes,n=t.center;if(t.comboTree={id:"comboTreeRoot",depth:-1,children:t.comboTrees},e&&0!==e.length){if(1===e.length)return e[0].x=n[0],e[0].y=n[1],void(t.onLayoutEnd&&t.onLayoutEnd());t.initVals(),t.run(),t.onLayoutEnd&&t.onLayoutEnd()}else t.onLayoutEnd&&t.onLayoutEnd()},e.prototype.run=function(){var t=this,e=t.nodes,n=t.previousLayouted?t.maxIteration/5:t.maxIteration;t.width||"undefined"==typeof window||(t.width=window.innerWidth),t.height||"undefined"==typeof window||(t.height=window.innerHeight);var r=t.center,i=t.velocityDecay,o=t.comboMap;t.previousLayouted||t.initPos(o);for(var s=function(n){var r=[];e.forEach((function(t,e){r[e]={x:0,y:0}})),t.applyCalculate(r),t.applyComboCenterForce(r),e.forEach((function(t,e){(0,a.isNumber)(t.x)&&(0,a.isNumber)(t.y)&&(t.x+=r[e].x*i,t.y+=r[e].y*i)})),t.alpha+=(t.alphaTarget-t.alpha)*t.alphaDecay,t.onTick()},u=0;uv[1]?v[0]:v[1])/2;m=function(t){return b}}else{var x=v/2;m=function(t){return x}}else m=function(t){return t.size?(0,a.isArray)(t.size)?(t.size[0]>t.size[1]?t.size[0]:t.size[1])/2:(0,a.isObject)(t.size)?(t.size.width>t.size.height?t.size.width:t.size.height)/2:t.size/2:10};this.nodeSize=m;var w,_=t.comboSpacing;w=(0,a.isNumber)(_)?function(){return _}:(0,a.isFunction)(_)?_:function(){return 0},this.comboSpacing=w;var S,E=t.comboPadding;S=(0,a.isNumber)(E)?function(){return E}:(0,a.isArray)(E)?function(){return Math.max.apply(null,E)}:(0,a.isFunction)(E)?E:function(){return 0},this.comboPadding=S;var A,M=this.linkDistance;M||(M=10),A=(0,a.isNumber)(M)?function(t){return M}:M,this.linkDistance=A;var C,T=this.edgeStrength;T||(T=1),C=(0,a.isNumber)(T)?function(t){return T}:T,this.edgeStrength=C;var k,I=this.nodeStrength;I||(I=30),k=(0,a.isNumber)(I)?function(t){return I}:I,this.nodeStrength=k},e.prototype.initPos=function(t){this.nodes.forEach((function(e,n){var r=e.comboId,i=t[r];r&&i?(e.x=i.cx+100/(n+1),e.y=i.cy+100/(n+1)):(e.x=100/(n+1),e.y=100/(n+1))}))},e.prototype.getComboMap=function(){var t=this,e=t.nodeMap,n=t.comboTrees,r=t.oriComboMap,i={};return(n||[]).forEach((function(n){var o=[];(0,a.traverseTreeUp)(n,(function(n){if("node"===n.itemType)return!0;if(!r[n.id])return!0;if(void 0===i[n.id]){var s={id:n.id,name:n.id,cx:0,cy:0,count:0,depth:t.oriComboMap[n.id].depth||0,children:[]};i[n.id]=s}var u=n.children;u&&u.forEach((function(t){if(!i[t.id]&&!e[t.id])return!0;o.push(t)}));var l=i[n.id];if(l.cx=0,l.cy=0,0===o.length){l.empty=!0;var c=r[n.id];l.cx=c.x,l.cy=c.y}return o.forEach((function(t){if(l.count++,"node"!==t.itemType){var n=i[t.id];return(0,a.isNumber)(n.cx)&&(l.cx+=n.cx),void((0,a.isNumber)(n.cy)&&(l.cy+=n.cy))}var r=e[t.id];r&&((0,a.isNumber)(r.x)&&(l.cx+=r.x),(0,a.isNumber)(r.y)&&(l.cy+=r.y))})),l.cx/=l.count||1,l.cy/=l.count||1,l.children=o,!0}))})),i},e.prototype.applyComboCenterForce=function(t){var e=this,n=e.gravity,r=e.comboGravity||n,i=this.alpha,o=e.comboTrees,s=e.indexMap,u=e.nodeMap,l=e.comboMap;(o||[]).forEach((function(e){(0,a.traverseTreeUp)(e,(function(e){if("node"===e.itemType)return!0;if(!l[e.id])return!0;var n=l[e.id],o=(n.depth+1)/10*.5,c=n.cx,h=n.cy;return n.cx=0,n.cy=0,n.children.forEach((function(e){if("node"!==e.itemType){var d=l[e.id];return d&&(0,a.isNumber)(d.cx)&&(n.cx+=d.cx),void(d&&(0,a.isNumber)(d.cy)&&(n.cy+=d.cy))}var f=u[e.id],p=f.x-c||.005,m=f.y-h||.005,g=Math.sqrt(p*p+m*m),v=s[f.id],y=r*i/g*o;t[v].x-=p*y,t[v].y-=m*y,(0,a.isNumber)(f.x)&&(n.cx+=f.x),(0,a.isNumber)(f.y)&&(n.cy+=f.y)})),n.cx/=n.count||1,n.cy/=n.count||1,!0}))}))},e.prototype.applyCalculate=function(t){var e=this,n=e.comboMap,r=e.nodes,i={};r.forEach((function(t,e){r.forEach((function(n,r){if(!(eo&&(l.minX=o),l.minY>a&&(l.minY=a),l.maxX1&&r.forEach((function(n,a){if("node"===n.itemType)return!1;var u=e[n.id];u&&r.forEach((function(r,l){if(a<=l)return!1;if("node"===r.itemType)return!1;var c=e[r.id];if(!c)return!1;var h=u.cx-c.cx||.005,d=u.cy-c.cy||.005,f=h*h+d*d,p=u.r||1,m=c.r||1,g=p+m,v=m*m,y=p*p;if(fi)){var v=e["".concat(f.id,"-").concat(n.id)],y=v.vx,b=v.vy,x=Math.log(Math.abs(n.depth-f.depth)/10)+1||1;x=x<1?1:x,n.comboId!==f.comboId&&(x+=1);var w=x?Math.pow(h,x):1,_=o(n)*a/m*w;if(t[p].x+=y*_,t[p].y+=b*_,p0){var e=Math.abs(v[0][n.sortBy]-t[n.sortBy]);n.maxLevelDiff&&e>=n.maxLevelDiff&&(v=[],g.push(v))}v.push(t)}));var y=u+(d||n.minNodeSpacing);if(!n.preventOverlap){var b=g.length>0&&g[0].length>1,x=(Math.min(n.width,n.height)/2-y)/(g.length+(b?1:0));y=Math.min(y,x)}var w=0;if(g.forEach((function(t){var e=n.sweep;void 0===e&&(e=2*Math.PI-2*Math.PI/t.length);var r=t.dTheta=e/Math.max(1,t.length-1);if(t.length>1&&n.preventOverlap){var i=Math.cos(r)-Math.cos(0),o=Math.sin(r)-Math.sin(0),a=Math.sqrt(y*y/(i*i+o*o));w=Math.max(a,w)}t.r=w,w+=y})),n.equidistant){for(var _=0,S=0,E=0;E{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FORCE_LAYOUT_TYPE_MAP=e.LAYOUT_MESSAGE=void 0,e.LAYOUT_MESSAGE={RUN:"LAYOUT_RUN",END:"LAYOUT_END",ERROR:"LAYOUT_ERROR",TICK:"LAYOUT_TICK",GPURUN:"GPU_LAYOUT_RUN",GPUEND:"GPU_LAYOUT_END"},e.FORCE_LAYOUT_TYPE_MAP={gForce:!0,force2:!0,fruchterman:!0,forceAtlas2:!0,force:!0,"graphin-force":!0}},79829:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.DagreLayout=void 0;var a=o(n(43038)),s=n(81422),u=n(46271),l=n(78326),c=function(t){function e(e){var n=t.call(this)||this;return n.rankdir="TB",n.nodesep=50,n.ranksep=50,n.controlPoints=!1,n.sortByCombo=!1,n.edgeLabelSpace=!0,n.radial=!1,n.nodes=[],n.edges=[],n.onLayoutEnd=function(){},n.layoutNode=function(t){var e=n.nodes.find((function(e){return e.id===t}));return!e||!1!==e.layout},n.updateCfg(e),n}return i(e,t),e.prototype.getDefaultCfg=function(){return{rankdir:"TB",align:void 0,nodeSize:void 0,nodesepFunc:void 0,ranksepFunc:void 0,nodesep:50,ranksep:50,controlPoints:!1,radial:!1,focusNode:null}},e.prototype.execute=function(){var t,e,n,r,i=this,o=this,u=o.nodes,c=o.nodeSize,d=o.rankdir,f=o.combos,p=o.begin,m=o.radial,g=o.comboEdges,v=void 0===g?[]:g,y=o.vedges,b=void 0===y?[]:y;if(u){var x=o.edges||[],w=new l.Graph({multigraph:!0,compound:!0});o.nodeMap={};var _={};u.forEach((function(t){o.nodeMap[t.id]=t,t.comboId&&(_[t.comboId]=_[t.comboId]||[],_[t.comboId].push(t.id))}));var S,E=[],A={};(null===(t=o.nodeOrder)||void 0===t?void 0:t.length)?(o.nodeOrder.forEach((function(t){A[t]=!0,E.push(o.nodeMap[t])})),u.forEach((function(t){A[t.id]||E.push(t)}))):E=u,S=c?(0,s.isArray)(c)?function(){return c}:function(){return[c,c]}:function(t){return t.size?(0,s.isArray)(t.size)?t.size:(0,s.isObject)(t.size)?[t.size.width||40,t.size.height||40]:[t.size,t.size]:[40,40]};var M=(0,s.getFunc)(o.ranksep,50,o.ranksepFunc),C=(0,s.getFunc)(o.nodesep,50,o.nodesepFunc),T=C,k=M;"LR"!==d&&"RL"!==d||(T=M,k=C),w.setDefaultEdgeLabel((function(){return{}})),w.setGraph(o);var I={};this.sortByCombo&&f&&f.forEach((function(t){if(I[t.id]=t,t.collapsed){var e=S(t),n=k(t),r=T(t),i=e[0]+2*r,o=e[1]+2*n;w.setNode(t.id,{width:i,height:o})}t.parentId&&(I[t.parentId]||w.setNode(t.parentId,{}),w.setParent(t.id,t.parentId))})),E.filter((function(t){return!1!==t.layout})).forEach((function(t){var e=S(t),n=k(t),r=T(t),o=e[0]+2*r,a=e[1]+2*n,u=t.layer;(0,s.isNumber)(u)?w.setNode(t.id,{width:o,height:a,layer:u}):w.setNode(t.id,{width:o,height:a}),i.sortByCombo&&t.comboId&&(I[t.comboId]||(I[t.comboId]={id:t.comboId},w.setNode(t.comboId,{})),w.setParent(t.id,t.comboId))})),x.forEach((function(t){var e=(0,s.getEdgeTerminal)(t,"source"),n=(0,s.getEdgeTerminal)(t,"target");i.layoutNode(e)&&i.layoutNode(n)&&w.setEdge(e,n,{weight:t.weight||1})})),null===(e=null==v?void 0:v.concat(b||[]))||void 0===e||e.forEach((function(t){var e,n,r=t.source,i=t.target,o=(null===(e=I[r])||void 0===e?void 0:e.collapsed)?[r]:_[r]||[r],a=(null===(n=I[i])||void 0===n?void 0:n.collapsed)?[i]:_[i]||[i];o.forEach((function(e){a.forEach((function(n){w.setEdge(e,n,{weight:t.weight||1})}))}))}));var N=void 0;(null===(n=o.preset)||void 0===n?void 0:n.nodes)&&(N=new l.Graph({multigraph:!0,compound:!0}),o.preset.nodes.forEach((function(t){null==N||N.setNode(t.id,t)}))),a.default.layout(w,{prevGraph:N,edgeLabelSpace:o.edgeLabelSpace,keepNodeOrder:Boolean(!!o.nodeOrder),nodeOrder:o.nodeOrder});var P=[0,0];if(p){var O=1/0,L=1/0;w.nodes().forEach((function(t){var e=w.node(t);O>e.x&&(O=e.x),L>e.y&&(L=e.y)})),w.edges().forEach((function(t){var e;null===(e=w.edge(t).points)||void 0===e||e.forEach((function(t){O>t.x&&(O=t.x),L>t.y&&(L=t.y)}))})),P[0]=p[0]-O,P[1]=p[1]-L}var R="LR"===d||"RL"===d;if(m){var D=this,z=D.focusNode,F=D.ranksep,B=D.getRadialPos,U=(0,s.isString)(z)?z:null==z?void 0:z.id,j=U?null===(r=w.node(U))||void 0===r?void 0:r._rank:0,V=[],H=R?"y":"x",G=R?"height":"width",W=1/0,X=-1/0;w.nodes().forEach((function(t){var e=w.node(t);if(o.nodeMap[t]){var n=C(o.nodeMap[t]);if(0===j)V[e._rank]||(V[e._rank]={nodes:[],totalWidth:0,maxSize:-1/0}),V[e._rank].nodes.push(t),V[e._rank].totalWidth+=2*n+e[G],V[e._rank].maxSizeX&&(X=s)}}));var Y=F||50,q={},$=(X-W)/.9,K=[.5*(W+X-$),.5*(W+X+$)],Z=function(t,e,n,r){void 0===n&&(n=-1/0),void 0===r&&(r=[0,1]);var i=n;return t.forEach((function(t){var n=w.node(t);q[t]=e;var a=B(n[H],K,$,e,r),s=a.x,u=a.y;if(o.nodeMap[t]){o.nodeMap[t].x=s+P[0],o.nodeMap[t].y=u+P[1],o.nodeMap[t]._order=n._order;var l=M(o.nodeMap[t]);i=i}))}:function(t,e,n){var r=Math.max(e.x,n.x),i=Math.min(e.x,n.x);return t.filter((function(t){return t.x<=r&&t.x>=i}))};w.edges().forEach((function(t){var e,n=w.edge(t),r=x.findIndex((function(e){var n=(0,s.getEdgeTerminal)(e,"source"),r=(0,s.getEdgeTerminal)(e,"target");return n===t.v&&r===t.w}));if(!(r<=-1)&&o.edgeLabelSpace&&o.controlPoints&&"loop"!==x[r].type){null===(e=null==n?void 0:n.points)||void 0===e||e.forEach((function(t){t.x+=P[0],t.y+=P[1]}));var i=o.nodeMap[t.v],a=o.nodeMap[t.w];x[r].controlPoints=h(null==n?void 0:n.points,i,a,et,R,nt,rt)}}))}return o.onLayoutEnd&&o.onLayoutEnd(),{nodes:u,edges:x}}},e.prototype.getRadialPos=function(t,e,n,r,i){void 0===i&&(i=[0,1]);var o=(t-e[0])/n,a=2*(o=o*(i[1]-i[0])+i[0])*Math.PI;return{x:Math.cos(a)*r,y:Math.sin(a)*r}},e.prototype.getType=function(){return"dagre"},e}(u.Base);e.DagreLayout=c;var h=function(t,e,n,r,i,o,a){var s=(null==t?void 0:t.slice(1,t.length-1))||[];if(e&&n){var u=e.x,l=e.y,c=n.x,h=n.y;if(i&&(u=e.y,l=e.x,c=n.y,h=n.x),h!==l&&u!==c){var d=r.indexOf(l),f=r[d+1];if(f){var p=s[0],m=i?{x:(l+f)/2,y:(null==p?void 0:p.y)||c}:{x:(null==p?void 0:p.x)||c,y:(l+f)/2};p&&!o(p,m)||s.unshift(m)}var g=r.indexOf(h),v=Math.abs(g-d);if(1===v)(s=a(s,e,n)).length||s.push(i?{x:(l+h)/2,y:u}:{x:u,y:(l+h)/2});else if(v>1){var y=r[g-1];if(y){var b=s[s.length-1],x=i?{x:(h+y)/2,y:(null==b?void 0:b.y)||c}:{x:(null==b?void 0:b.x)||u,y:(h+y)/2};b&&!o(b,x)||s.push(x)}}}}return s}},69524:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;nt.x&&(i=t.x),o>t.y&&(o=t.y)})),e.forEach((function(t){t.points.forEach((function(t){i>t.x&&(i=t.x),o>t.y&&(o=t.y)}))})),r[0]=n[0]-i,r[1]=n[1]-o}return r},e.prototype.updateNodePosition=function(t,e){var n=this,r=n.combos,i=n.nodes,o=n.edges,a=n.anchorPoint,s=n.graphSettings,l=this.getBegin(t,e);t.forEach((function(t){var n,c=t.x,h=t.y,d=t.id,f=t.type,p=t.coreBox;if(f===u.HierarchyNodeType.META&&d!==u.ROOT_NAME){var m=r.findIndex((function(t){return t.id===d})),g=null===(n=null==s?void 0:s.subScene)||void 0===n?void 0:n.meta;r[m].offsetX=c+l[0],r[m].offsetY=h+l[1],r[m].fixSize=[p.width,p.height],r[m].fixCollapseSize=[p.width,p.height],t.expanded?r[m].padding=[null==g?void 0:g.paddingTop,null==g?void 0:g.paddingRight,null==g?void 0:g.paddingBottom,null==g?void 0:g.paddingLeft]:r[m].padding=[0,0,0,0]}else if(f===u.HierarchyNodeType.OP){m=i.findIndex((function(t){return t.id===d}));if(i[m].x=c+l[0],i[m].y=h+l[1],a){var v=[],y=e.filter((function(t){return t.v===d})),b=e.filter((function(t){return t.w===d}));y.length>0&&y.forEach((function(e){var n=e.points[0],r=(n.x-c)/t.width+.5,i=(n.y-h)/t.height+.5;v.push([r,i]),e.baseEdgeList.forEach((function(t){var e=o.find((function(e){return e.source===t.v&&e.target===t.w}));e&&(e.sourceAnchor=v.length-1)}))})),b.length>0&&b.forEach((function(e){var n=e.points[e.points.length-1],r=(n.x-c)/t.width+.5,i=(n.y-h)/t.height+.5;v.push([r,i]),e.baseEdgeList.forEach((function(t){var e=o.find((function(e){return e.source===t.v&&e.target===t.w}));e&&(e.targetAnchor=v.length-1)}))})),i[m].anchorPoints=v.length>0?v:i[m].anchorPoints||[]}}}))},e.prototype.updateEdgePosition=function(t,e){var n=this,r=n.combos,i=n.edges,s=n.controlPoints,l=this.getBegin(t,e);s&&(r.forEach((function(t){t.inEdges=[],t.outEdges=[]})),i.forEach((function(e){var i,s,c,h,d=t.find((function(t){return t.id===e.source})),f=t.find((function(t){return t.id===e.target})),p=[],m=[];if(d&&f)m=(0,u.getEdges)(null==d?void 0:d.id,null==f?void 0:f.id,t);else if(!d||!f){var g=n.getNodePath(e.source),v=n.getNodePath(e.target),y=g.reverse().slice(d?0:1).find((function(e){return t.find((function(t){return t.id===e}))})),b=v.reverse().slice(f?0:1).find((function(e){return t.find((function(t){return t.id===e}))}));d=t.find((function(t){return t.id===y})),f=t.find((function(t){return t.id===b})),m=(0,u.getEdges)(null==d?void 0:d.id,null==f?void 0:f.id,t,{v:e.source,w:e.target})}if(p=(p=m.reduce((function(t,e){return a(a([],t,!0),e.points.map((function(t){return o(o({},t),{x:t.x+l[0],y:t.y+l[1]})})),!0)}),[])).slice(1,-1),e.controlPoints=p,(null==f?void 0:f.type)===u.NodeType.META){var x=r.findIndex((function(t){return t.id===(null==f?void 0:f.id)}));if(!r[x]||(null===(i=r[x].inEdges)||void 0===i?void 0:i.some((function(t){return t.source===d.id&&t.target===f.id}))))return;null===(s=r[x].inEdges)||void 0===s||s.push({source:d.id,target:f.id,controlPoints:p})}if((null==d?void 0:d.type)===u.NodeType.META){x=r.findIndex((function(t){return t.id===(null==d?void 0:d.id)}));if(!r[x]||(null===(c=r[x].outEdges)||void 0===c?void 0:c.some((function(t){return t.source===d.id&&t.target===f.id}))))return;null===(h=r[x].outEdges)||void 0===h||h.push({source:d.id,target:f.id,controlPoints:p})}})))},e.prototype.getType=function(){return"dagreCompound"},e.prototype.getDataByOrder=function(t){return t.every((function(t){return void 0!==t.layoutOrder}))||t.forEach((function(t,e){t.layoutOrder=e})),t.sort((function(t,e){return t.layoutOrder-e.layoutOrder}))},e}(s.Base);e.DagreCompoundLayout=c},78326:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.Graph=void 0;var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(n(46888).Graph);e.Graph=o},43038:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(38733)),o=n(11519);e.default={layout:i.default,util:{time:o.time,notime:o.notime}}},99367:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(99952)),o=function(t){var e=[],n={},r={},i=function(o){var a;r[o]||(r[o]=!0,n[o]=!0,null===(a=t.outEdges(o))||void 0===a||a.forEach((function(t){n[t.w]?e.push(t):i(t.w)})),delete n[o])};return t.nodes().forEach(i),e};e.default={run:function(t){var e="greedy"===t.graph().acyclicer?(0,i.default)(t,function(t){return function(e){var n;return(null===(n=t.edge(e))||void 0===n?void 0:n.weight)||1}}(t)):o(t);null==e||e.forEach((function(e){var n=t.edge(e);t.removeEdgeObj(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,"rev-".concat(Math.random()))}))},undo:function(t){t.edges().forEach((function(e){var n=t.edge(e);if(n.reversed){t.removeEdgeObj(e);var r=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,r)}}))}}},82342:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(11519),i=function(t,e,n,i,o,a){var s={rank:a,borderType:e,width:0,height:0},u=o[e][a-1],l=(0,r.addDummyNode)(t,"border",s,n);o[e][a]=l,t.setParent(l,i),u&&t.setEdge(u,l,{weight:1})};e.default=function(t){var e,n=function(e){var r=t.children(e),o=t.node(e);if((null==r?void 0:r.length)&&r.forEach((function(t){return n(t)})),o.hasOwnProperty("minRank")){o.borderLeft=[],o.borderRight=[];for(var a=o.minRank,s=o.maxRank+1;a{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){t.nodes().forEach((function(e){r(t.node(e))})),t.edges().forEach((function(e){r(t.edge(e))}))},r=function(t){var e=t.width;t.width=t.height,t.height=e},i=function(t){t.nodes().forEach((function(e){o(t.node(e))})),t.edges().forEach((function(e){var n,r=t.edge(e);null===(n=r.points)||void 0===n||n.forEach((function(t){return o(t)})),r.hasOwnProperty("y")&&o(r)}))},o=function(t){(null==t?void 0:t.y)&&(t.y=-t.y)},a=function(t){t.nodes().forEach((function(e){s(t.node(e))})),t.edges().forEach((function(e){var n,r=t.edge(e);null===(n=r.points)||void 0===n||n.forEach((function(t){return s(t)})),r.hasOwnProperty("x")&&s(r)}))},s=function(t){var e=t.x;t.x=t.y,t.y=e};e.default={adjust:function(t){var e,r=null===(e=t.graph().rankdir)||void 0===e?void 0:e.toLowerCase();"lr"!==r&&"rl"!==r||n(t)},undo:function(t){var e,r=null===(e=t.graph().rankdir)||void 0===e?void 0:e.toLowerCase();"bt"!==r&&"rl"!==r||i(t),"lr"!==r&&"rl"!==r||(a(t),n(t))}}},57110:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t,e){if("next"!==t&&"prev"!==t)return e},r=function(t){t.prev.next=t.next,t.next.prev=t.prev,delete t.next,delete t.prev},i=function(){function t(){var t={};t.prev=t,t.next=t.prev,this.shortcut=t}return t.prototype.dequeue=function(){var t=this.shortcut,e=t.prev;if(e&&e!==t)return r(e),e},t.prototype.enqueue=function(t){var e=this.shortcut;t.prev&&t.next&&r(t),t.next=e.next,e.next.prev=t,e.next=t,t.prev=e},t.prototype.toString=function(){for(var t=[],e=this.shortcut,r=e.prev;r!==e;)t.push(JSON.stringify(r,n)),r=null==r?void 0:r.prev;return"[".concat(t.join(", "),"]")},t}();e.default=i},99952:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=o(n(57110)),s=n(46888),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(a.default),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(s.Graph),c=function(){return 1},h=function(t,e,n){for(var r,i=[],o=e[e.length-1],a=e[0];t.nodeCount();){for(;r=a.dequeue();)d(t,e,n,r);for(;r=o.dequeue();)d(t,e,n,r);if(t.nodeCount())for(var s=e.length-2;s>0;--s)if(r=e[s].dequeue()){i=i.concat(d(t,e,n,r,!0));break}}return i},d=function(t,e,n,r,i){var o,a,s=[];return null===(o=t.inEdges(r.v))||void 0===o||o.forEach((function(r){var o=t.edge(r),a=t.node(r.v);i&&s.push({v:r.v,w:r.w,in:0,out:0}),void 0===a.out&&(a.out=0),a.out-=o,p(e,n,a)})),null===(a=t.outEdges(r.v))||void 0===a||a.forEach((function(r){var i=t.edge(r),o=r.w,a=t.node(o);void 0===a.in&&(a.in=0),a.in-=i,p(e,n,a)})),t.removeNode(r.v),i?s:void 0},f=function(t,e){var n=new l,r=0,i=0;t.nodes().forEach((function(t){n.setNode(t,{v:t,in:0,out:0})})),t.edges().forEach((function(t){var o=n.edge(t)||0,a=(null==e?void 0:e(t))||1,s=o+a;n.setEdge(t.v,t.w,s),i=Math.max(i,n.node(t.v).out+=a),r=Math.max(r,n.node(t.w).in+=a)}));for(var o=[],a=i+r+3,s=0;s{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(11519),i=function(t,e,n,o,a,s,u){var l=t.children(u);if(null==l?void 0:l.length){var c=(0,r.addBorderNode)(t,"_bt"),h=(0,r.addBorderNode)(t,"_bb"),d=t.node(u);t.setParent(c,u),d.borderTop=c,t.setParent(h,u),d.borderBottom=h,null==l||l.forEach((function(r){i(t,e,n,o,a,s,r);var l=t.node(r),d=l.borderTop?l.borderTop:r,f=l.borderBottom?l.borderBottom:r,p=l.borderTop?o:2*o,m=d!==f?1:a-s[u]+1;t.setEdge(c,d,{minlen:m,weight:p,nestingEdge:!0}),t.setEdge(f,h,{minlen:m,weight:p,nestingEdge:!0})})),t.parent(u)||t.setEdge(e,c,{weight:0,minlen:a+s[u]})}else u!==e&&t.setEdge(e,u,{weight:0,minlen:n})},o=function(t){var e,n={},r=function(e,i){var o=t.children(e);null==o||o.forEach((function(t){return r(t,i+1)})),n[e]=i};return null===(e=t.children())||void 0===e||e.forEach((function(t){return r(t,1)})),n},a=function(t){var e=0;return t.edges().forEach((function(n){e+=t.edge(n).weight})),e};e.default={run:function(t){var e,n=(0,r.addDummyNode)(t,"root",{},"_root"),s=o(t),u=Math.max.apply(Math,Object.values(s));Math.abs(u)===1/0&&(u=1);var l=u-1,c=2*l+1;t.graph().nestingRoot=n,t.edges().forEach((function(e){t.edge(e).minlen*=c}));var h=a(t)+1;null===(e=t.children())||void 0===e||e.forEach((function(e){i(t,n,c,h,l,s,e)})),t.graph().nodeRankFactor=c},cleanup:function(t){var e=t.graph();e.nestingRoot&&t.removeNode(e.nestingRoot),delete e.nestingRoot,t.edges().forEach((function(e){t.edge(e).nestingEdge&&t.removeEdgeObj(e)}))}}},67484:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(11519),i=function(t,e){var n=e.v,i=t.node(n).rank,o=e.w,a=t.node(o).rank,s=e.name,u=t.edge(e),l=u.labelRank;if(a!==i+1){t.removeEdgeObj(e);var c,h,d,f=t.graph();for(d=0,++i;i{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e,n){var r,i={};null==n||n.forEach((function(n){for(var o,a,s=t.parent(n);s;){if((o=t.parent(s))?(a=i[o],i[o]=s):(a=r,r=s),a&&a!==s)return void e.setEdge(a,s);s=o}}))}},69843:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){return e.map((function(e){var n=t.inEdges(e);if(!(null==n?void 0:n.length))return{v:e};var r={sum:0,weight:0};return null==n||n.forEach((function(e){var n=t.edge(e),i=t.node(e.v);r.sum+=n.weight*i.order,r.weight+=n.weight})),{v:e,barycenter:r.sum/r.weight,weight:r.weight}}))}},43517:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(78326),i=function(t){for(var e;t.hasNode(e="_root".concat(Math.random())););return e};e.default=function(t,e,n){var o=i(t),a=new r.Graph({compound:!0}).setGraph({root:o}).setDefaultNodeLabel((function(e){return t.node(e)}));return t.nodes().forEach((function(r){var i,s=t.node(r),u=t.parent(r);(s.rank===e||s.minRank<=e&&e<=s.maxRank)&&(a.setNode(r),a.setParent(r,u||o),null===(i=t[n](r))||void 0===i||i.forEach((function(e){var n=e.v===r?e.w:e.v,i=a.edgeFromArgs(n,r),o=void 0!==i?i.weight:0;a.setEdge(n,r,{weight:t.edge(e).weight+o})})),s.hasOwnProperty("minRank")&&a.setNode(r,{borderLeft:s.borderLeft[e],borderRight:s.borderRight[e]}))})),a}},1294:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(11519),i=function(t,e,n){for(var i=(0,r.zipObject)(n,n.map((function(t,e){return e}))),o=e.map((function(e){var n,r=null===(n=t.outEdges(e))||void 0===n?void 0:n.map((function(e){return{pos:i[e.w]||0,weight:t.edge(e).weight}}));return null==r?void 0:r.sort((function(t,e){return t.pos-e.pos}))})).flat().filter((function(t){return void 0!==t})),a=1;a0;)e%2&&(n+=u[e+1]),u[e=e-1>>1]+=t.weight;l+=t.weight*n}})),l};e.default=function(t,e){for(var n=0,r=1;r<(null==e?void 0:e.length);r+=1)n+=i(t,e[r-1],e[r]);return n}},96524:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(50497)),o=r(n(1294)),a=r(n(43517)),s=r(n(18319)),u=r(n(77749)),l=n(81422),c=n(78326),h=n(11519),d=function(t,e,n){return e.map((function(e){return(0,a.default)(t,e,n)}))},f=function(t,e,n,r){var i=new c.Graph;null==t||t.forEach((function(t){for(var o,a=t.graph().root,l=(0,u.default)(t,a,i,e,n,r),c=0;c<(null===(o=l.vs)||void 0===o?void 0:o.length);c++){var h=t.node(l.vs[c]);h&&(h.order=c)}(0,s.default)(t,i,l.vs)}))},p=function(t,e){null==e||e.forEach((function(e){null==e||e.forEach((function(e,n){t.node(e).order=n}))}))};e.default=function(t,e){for(var n=(0,h.maxRank)(t),r=[],a=[],s=1;s-1;s--)a.push(s);var u=d(t,r,"inEdges"),c=d(t,a,"outEdges"),m=(0,i.default)(t);p(t,m);for(var g,v=Number.POSITIVE_INFINITY,y=(s=0,0);y<4;++s,++y){f(s%2?u:c,s%4>=2,!1,e),m=(0,h.buildLayerMatrix)(t),(b=(0,o.default)(t,m))=2,!0,e),m=(0,h.buildLayerMatrix)(t),(b=(0,o.default)(t,m)){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){for(var n=t.nodes().filter((function(e){var n;return!(null===(n=t.children(e))||void 0===n?void 0:n.length)})).map((function(e){return t.node(e).rank})),r=Math.max.apply(Math,n),i=[],o=0;o{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(79987);e.default=function(t){for(var e={},n=t.nodes().filter((function(e){var n;return!(null===(n=t.children(e))||void 0===n?void 0:n.length)})),i=n.map((function(e){return t.node(e).rank})),o=(0,r.max)(i),a=[],s=0;s{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){for(var e,n,i=[],o=function(){var o=t.pop();i.push(o),null===(e=o.in.reverse())||void 0===e||e.forEach((function(t){return(e=o,function(t){t.merged||(void 0===t.barycenter||void 0===e.barycenter||t.barycenter>=e.barycenter)&&r(e,t)})(t);var e})),null===(n=o.out)||void 0===n||n.forEach((function(e){return(n=o,function(e){e.in.push(n),0==--e.indegree&&t.push(e)})(e);var n}))};null==t?void 0:t.length;)o();var a=i.filter((function(t){return!t.merged})),s=["vs","i","barycenter","weight"];return a.map((function(t){var e={};return null==s||s.forEach((function(n){void 0!==t[n]&&(e[n]=t[n])})),e}))},r=function(t,e){var n,r=0,i=0;t.weight&&(r+=t.barycenter*t.weight,i+=t.weight),e.weight&&(r+=e.barycenter*e.weight,i+=e.weight),t.vs=null===(n=e.vs)||void 0===n?void 0:n.concat(t.vs),t.barycenter=r/i,t.weight=i,t.i=Math.min(e.i,t.i),e.merged=!0};e.default=function(t,e){var r,i,o,a={};null==t||t.forEach((function(t,e){a[t.v]={i:e,indegree:0,in:[],out:[],vs:[t.v]};var n=a[t.v];void 0!==t.barycenter&&(n.barycenter=t.barycenter,n.weight=t.weight)})),null===(r=e.edges())||void 0===r||r.forEach((function(t){var e=a[t.v],n=a[t.w];void 0!==e&&void 0!==n&&(n.indegree++,e.out.push(a[t.w]))}));var s=null===(o=(i=Object.values(a)).filter)||void 0===o?void 0:o.call(i,(function(t){return!t.indegree}));return n(s)}},77749:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(69843)),o=r(n(8406)),a=r(n(73462)),s=function(t,e,n,r,c,h){var d,f,p,m,g=t.children(e),v=t.node(e),y=v?v.borderLeft:void 0,b=v?v.borderRight:void 0,x={};y&&(g=null==g?void 0:g.filter((function(t){return t!==y&&t!==b})));var w=(0,i.default)(t,g||[]);null==w||w.forEach((function(e){var i;if(null===(i=t.children(e.v))||void 0===i?void 0:i.length){var o=s(t,e.v,n,r,h);x[e.v]=o,o.hasOwnProperty("barycenter")&&l(e,o)}}));var _=(0,o.default)(w,n);u(_,x),null===(d=_.filter((function(t){return t.vs.length>0})))||void 0===d||d.forEach((function(e){var n=t.node(e.vs[0]);n&&(e.fixorder=n.fixorder,e.order=n.order)}));var S=(0,a.default)(_,r,c,h);if(y&&(S.vs=[y,S.vs,b].flat(),null===(f=t.predecessors(y))||void 0===f?void 0:f.length)){var E=t.node((null===(p=t.predecessors(y))||void 0===p?void 0:p[0])||""),A=t.node((null===(m=t.predecessors(b))||void 0===m?void 0:m[0])||"");S.hasOwnProperty("barycenter")||(S.barycenter=0,S.weight=0),S.barycenter=(S.barycenter*S.weight+E.order+A.order)/(S.weight+2),S.weight+=2}return S},u=function(t,e){null==t||t.forEach((function(t){var n,r=null===(n=t.vs)||void 0===n?void 0:n.map((function(t){return e[t]?e[t].vs:t}));t.vs=r.flat()}))},l=function(t,e){void 0!==t.barycenter?(t.barycenter=(t.barycenter*t.weight+e.barycenter*e.weight)/(t.weight+e.weight),t.weight+=e.weight):(t.barycenter=e.barycenter,t.weight=e.weight)};e.default=s},73462:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(11519),i=function(t,e,n){for(var r,i=n;e.length&&(r=e[e.length-1]).i<=i;)e.pop(),null==t||t.push(r.vs),i++;return i},o=function(t,e){return function(n,r){if(void 0!==n.fixorder&&void 0!==r.fixorder)return n.fixorder-r.fixorder;if(n.barycenterr.barycenter)return 1;if(e&&void 0!==n.order&&void 0!==r.order){if(n.orderr.order)return 1}return t?r.i-n.i:n.i-r.i}};e.default=function(t,e,n,a){var s=(0,r.partition)(t,(function(t){var e=t.hasOwnProperty("fixorder")&&!isNaN(t.fixorder);return a?!e&&t.hasOwnProperty("barycenter"):e||t.hasOwnProperty("barycenter")})),u=s.lhs,l=s.rhs.sort((function(t,e){return-t.i- -e.i})),c=[],h=0,d=0,f=0;null==u||u.sort(o(!!e,!!n)),f=i(c,l,f),null==u||u.forEach((function(t){var e;f+=null===(e=t.vs)||void 0===e?void 0:e.length,c.push(t.vs),h+=t.barycenter*t.weight,d+=t.weight,f=i(c,l,f)}));var p={vs:c.flat()};return d&&(p.barycenter=h/d,p.weight=d),p}},66873:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){var e,n=function(t){var e,n={},r=0,i=function(e){var o,a=r;null===(o=t.children(e))||void 0===o||o.forEach(i),n[e]={low:a,lim:r++}};return null===(e=t.children())||void 0===e||e.forEach(i),n}(t);null===(e=t.graph().dummyChains)||void 0===e||e.forEach((function(e){var r,i,o=e,a=t.node(o),s=a.edgeObj;if(s)for(var u=function(t,e,n,r){var i,o,a=[],s=[],u=Math.min(e[n].low,e[r].low),l=Math.max(e[n].lim,e[r].lim);i=n;do{i=t.parent(i),a.push(i)}while(i&&(e[i].low>u||l>e[i].lim));for(o=i,i=r;i&&i!==o;)s.push(i),i=t.parent(i);return{lca:o,path:a.concat(s.reverse())}}(t,n,s.v,s.w),l=u.path,c=u.lca,h=0,d=l[h],f=!0;o!==s.w;){if(a=t.node(o),f){for(;d!==c&&(null===(r=t.node(d))||void 0===r?void 0:r.maxRank)s)&&(0,e.addConflict)(r,n,c)})))}function o(t,e){var n=function(t){return JSON.stringify(t.slice(1))}(t);e.get(n)||(i.apply(void 0,t),e.set(n,!0))}return(null==n?void 0:n.length)&&n.reduce((function(e,n){var r,i=-1,a=0,s=new Map;return null==n||n.forEach((function(u,l){var c;if("border"===(null===(c=t.node(u))||void 0===c?void 0:c.dummy)){var h=t.predecessors(u)||[];h.length&&(r=t.node(h[0]).order,o([n,a,l,i,r],s),a=l,i=r)}o([n,a,n.length,r,e.length],s)})),n})),r};e.findOtherInnerSegmentNode=function(t,e){var n,r;if(null===(n=t.node(e))||void 0===n?void 0:n.dummy)return null===(r=t.predecessors(e))||void 0===r?void 0:r.find((function(e){return t.node(e).dummy}))};e.addConflict=function(t,e,n){var r=e,i=n;if(r>i){var o=r;r=i,i=o}var a=t[r];a||(t[r]=a={}),a[i]=!0};e.hasConflict=function(t,e,n){var r=e;r>n&&(r=n);return!!t[r]};e.verticalAlignment=function(t,n,r,i){var o={},a={},s={};return null==n||n.forEach((function(t){null==t||t.forEach((function(t,e){o[t]=t,a[t]=t,s[t]=e}))})),null==n||n.forEach((function(t){var n=-1;null==t||t.forEach((function(t){var u=i(t);if(u.length)for(var l=((u=u.sort((function(t,e){return s[t]-s[e]}))).length-1)/2,c=Math.floor(l),h=Math.ceil(l);c<=h;++c){var d=u[c];a[t]===t&&n{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.feasibleTreeWithLayer=e.feasibleTree=void 0;var r=n(53472),i=n(11519),o=n(78326),a=function(t){var e,n,i=new o.Graph({directed:!1}),a=t.nodes()[0],u=t.nodeCount();for(i.setNode(a,{});s(i,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.exchangeEdges=e.enterEdge=e.leaveEdge=e.initLowLimValues=e.calcCutValue=e.initCutValues=void 0;var r=n(75022),i=n(53472),o=n(11519),a=n(46888),s=a.algorithm.preorder,u=a.algorithm.postorder;e.initCutValues=function(t,e){var n=u(t,t.nodes());null==(n=null==n?void 0:n.slice(0,(null==n?void 0:n.length)-1))||n.forEach((function(n){l(t,e,n)}))};var l=function(t,n,r){var i=t.node(r).parent;t.edgeFromArgs(r,i).cutvalue=(0,e.calcCutValue)(t,n,r)};e.calcCutValue=function(t,e,n){var r,i=t.node(n).parent,o=!0,a=e.edgeFromArgs(n,i),s=0;return a||(o=!1,a=e.edgeFromArgs(i,n)),s=a.weight,null===(r=e.nodeEdges(n))||void 0===r||r.forEach((function(r){var a=r.v===n,u=a?r.w:r.v;if(u!==i){var l=a===o,c=e.edge(r).weight;if(s+=l?c:-c,d(t,n,u)){var h=t.edgeFromArgs(n,u).cutvalue;s+=l?-h:h}}})),s};e.initLowLimValues=function(t,e){void 0===e&&(e=t.nodes()[0]),c(t,{},1,e)};var c=function(t,e,n,r,i){var o,a=n,s=n,u=t.node(r);return e[r]=!0,null===(o=t.neighbors(r))||void 0===o||o.forEach((function(n){e[n]||(s=c(t,e,s,n,r))})),u.low=a,u.lim=s++,i?u.parent=i:delete u.parent,s};e.leaveEdge=function(t){return t.edges().find((function(e){return t.edge(e).cutvalue<0}))};e.enterEdge=function(t,e,n){var r=n.v,a=n.w;e.hasEdge(r,a)||(r=n.w,a=n.v);var s=t.node(r),u=t.node(a),l=s,c=!1;s.lim>u.lim&&(l=u,c=!0);var h=e.edges().filter((function(e){return c===f(t,t.node(e.v),l)&&c!==f(t,t.node(e.w),l)}));return(0,o.minBy)(h,(function(t){return(0,i.slack)(e,t)}))};e.exchangeEdges=function(t,n,r,i){var o=r.v,a=r.w;t.removeEdge(o,a),t.setEdge(i.v,i.w,{}),(0,e.initLowLimValues)(t),(0,e.initCutValues)(t,n),h(t,n)};var h=function(t,e){var n=t.nodes().find((function(t){var n;return!(null===(n=e.node(t))||void 0===n?void 0:n.parent)})),r=s(t,n);null==(r=null==r?void 0:r.slice(1))||r.forEach((function(n){var r=t.node(n).parent,i=e.edgeFromArgs(n,r),o=!1;i||(i=e.edgeFromArgs(r,n),o=!0),e.node(n).rank=e.node(r).rank+(o?i.minlen:-i.minlen)}))},d=function(t,e,n){return t.hasEdge(e,n)},f=function(t,e,n){return n.low<=e.lim&&e.lim<=n.lim};e.default=function(t){var n=(0,o.simplify)(t);(0,i.longestPath)(n);var a,s,u=(0,r.feasibleTree)(n);for((0,e.initLowLimValues)(u),(0,e.initCutValues)(u,n);a=(0,e.leaveEdge)(u);)s=(0,e.enterEdge)(u,n,a),(0,e.exchangeEdges)(u,n,a,s)}},53472:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.slack=e.longestPathWithLayer=e.longestPath=void 0;var n=function(t){var e,n={},r=function(e){var i,o,a=t.node(e);return a?n[e]?a.rank:(n[e]=!0,null===(i=t.outEdges(e))||void 0===i||i.forEach((function(e){var n=r(e.w)-t.edge(e).minlen;n&&(void 0===o||n{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.minBy=e.notime=e.time=e.partition=e.maxRank=e.addBorderNode=e.removeEmptyRanks=e.normalizeRanks=e.buildLayerMatrix=e.intersectRect=e.predecessorWeights=e.successorWeights=e.zipObject=e.asNonCompoundGraph=e.simplify=e.addDummyNode=void 0;var r=n(81422),i=n(78326);e.addDummyNode=function(t,e,n,r){var i;do{i="".concat(r).concat(Math.random())}while(t.hasNode(i));return n.dummy=e,t.setNode(i,n),i};e.simplify=function(t){var e=(new i.Graph).setGraph(t.graph());return t.nodes().forEach((function(n){e.setNode(n,t.node(n))})),t.edges().forEach((function(n){var r=e.edgeFromArgs(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})})),e};e.asNonCompoundGraph=function(t){var e=new i.Graph({multigraph:t.isMultigraph()}).setGraph(t.graph());return t.nodes().forEach((function(n){var r;(null===(r=t.children(n))||void 0===r?void 0:r.length)||e.setNode(n,t.node(n))})),t.edges().forEach((function(n){e.setEdgeObj(n,t.edge(n))})),e};e.zipObject=function(t,e){return null==t?void 0:t.reduce((function(t,n,r){return t[n]=e[r],t}),{})};e.successorWeights=function(t){var e={};return t.nodes().forEach((function(n){var r,i={};null===(r=t.outEdges(n))||void 0===r||r.forEach((function(e){var n;i[e.w]=(i[e.w]||0)+((null===(n=t.edge(e))||void 0===n?void 0:n.weight)||0)})),e[n]=i})),e};e.predecessorWeights=function(t){var n=t.nodes(),r=n.map((function(e){var n,r={};return null===(n=t.inEdges(e))||void 0===n||n.forEach((function(e){r[e.v]=(r[e.v]||0)+t.edge(e).weight})),r}));return(0,e.zipObject)(n,r)};e.intersectRect=function(t,e){var n,r,i=Number(t.x),o=Number(t.y),a=Number(e.x)-i,s=Number(e.y)-o,u=Number(t.width)/2,l=Number(t.height)/2;return a||s?(Math.abs(s)*u>Math.abs(a)*l?(s<0&&(l=-l),n=l*a/s,r=l):(a<0&&(u=-u),n=u,r=u*s/a),{x:i+n,y:o+r}):{x:0,y:0}};e.buildLayerMatrix=function(t){for(var n=[],r=(0,e.maxRank)(t)+1,i=0;ie)&&(e=i)})),e||(e=0),e};e.partition=function(t,e){var n={lhs:[],rhs:[]};return null==t||t.forEach((function(t){e(t)?n.lhs.push(t):n.rhs.push(t)})),n};e.time=function(t,e){var n=Date.now();try{return e()}finally{console.log("".concat(t," time: ").concat(Date.now()-n,"ms"))}};e.notime=function(t,e){return e()};e.minBy=function(t,e){return t.reduce((function(t,n){return e(t)>e(n)?n:t}))}},84551:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n1){var e=r({},t);delete e.size,s.push(e)}}));var d=[];i.forEach((function(t){var e=s.find((function(e){return e.id===t.source})),n=s.find((function(e){return e.id===t.target}));e&&n&&d.push(t)}));var f=new h.DagreLayout({type:"dagre",ranksep:e.nodeMinGap,nodesep:e.nodeMinGap}).layout({nodes:s,edges:d}).nodes;n.forEach((function(t){var e=(f||[]).find((function(e){return e.id===t.id}));t.x=(null==e?void 0:e.x)||o/2,t.y=(null==e?void 0:e.y)||a/2}));var p=JSON.parse(JSON.stringify(n)),m=JSON.parse(JSON.stringify(i)),g=u.forceSimulation().nodes(p).force("link",u.forceLink(m).id((function(t){return t.id})).distance((function(t){return d.find((function(e){return e.source===t.source&&e.target===t.target}))?30:20}))).force("charge",u.forceManyBody()).force("center",u.forceCenter(o/2,a/2)).force("x",u.forceX(o/2)).force("y",u.forceY(a/2)).alpha(.3).alphaDecay(.08).alphaMin(.001);return new Promise((function(t){g.on("end",(function(){n.forEach((function(t){var e=p.find((function(e){return e.id===t.id}));e&&(t.x=e.x,t.y=e.y)}));var r=Math.min.apply(Math,n.map((function(t){return t.x}))),s=Math.max.apply(Math,n.map((function(t){return t.x}))),u=Math.min.apply(Math,n.map((function(t){return t.y}))),h=Math.max.apply(Math,n.map((function(t){return t.y}))),d=o/(s-r),f=a/(h-u);n.forEach((function(t){void 0!==t.x&&d<1&&(t.x=(t.x-r)*d),void 0!==t.y&&f<1&&(t.y=(t.y-u)*f)})),n.forEach((function(t){t.sizeTemp=t.size,t.size=[10,10]})),(0,c.default)(n,i),n.forEach((function(t){t.size=t.sizeTemp||[],delete t.sizeTemp})),(0,l.default)({nodes:n,edges:i},e),t()}))}))}},56401:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(90244));e.default=function(t,e){if(!t.nodes||0===t.nodes.length)return t;var n=e.width,r=e.height,o=e.nodeMinGap,a=1e4,s=1e4;t.nodes.forEach((function(t){var e=t.size[0]||50,n=t.size[1]||50;a=Math.min(e,a),s=Math.min(n,s)}));var u=new i.default;u.init(n,r,{CELL_H:s,CELL_W:a}),t.nodes.forEach((function(t){var e=u.occupyNearest(t);e&&(e.node={id:t.id,size:t.size},t.x=e.x,t.y=e.y,t.dx=e.dx,t.dy=e.dy)}));for(var l=0;la){for(var p=g=Math.ceil((c.size[0]+o)/a)-1,m=0;m-1)||u.cells[d+m+1][f].node)break;p--}u.insertColumn(d,p)}if(c.size[1]+o>s){var g;for(p=g=Math.ceil((c.size[1]+o)/s)-1,m=0;m-1)||u.cells[d][f+m+1].node)break;p--}u.insertRow(f,p)}}for(l=0;lt;r--)for(i=0;i=t&&(this.additionColumn[i]+=e);for(r=0;rt;r--)this.cells[i][r+e]=n(n({},this.cells[i][r]),{dx:i,dy:r+e,x:i*this.CELL_W,y:(r+e)*this.CELL_H}),this.cells[i][r]={dx:i,dy:r,x:i*this.CELL_W,y:r*this.CELL_H,occupied:!1,node:null};for(r=0;r=t&&(this.additionRow[r]+=e);for(i=0;i{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=1200,r=800,i=1e7,o=10,a=3.141592653589793,s=1.5707963267948966,u=.375*a,l=.625*a,c=new Map,h=10,d=10,f=.8,p=.1,m=.5;function g(t,e){var n=(c.get(t.id)||[]).find((function(t){return t.source===e.id||t.target===e.id})),r=t.size[0]*t.size[1],a=e.size[0]*e.size[1],h=r>a?e:t,d=r>a?t:e,f=h.x-h.size[0]/2,p=h.y-h.size[1]/2,m=h.x+h.size[0]/2,g=h.y+h.size[1]/2,v=d.x-d.size[0]/2,y=d.y-d.size[1]/2,b=d.x+d.size[0]/2,x=d.y+d.size[1]/2,w=h.x,_=h.y,S=d.x,E=d.y,A=0,M=0;if(m>=v&&b>=f&&g>=y&&x>=p){0===(M=Math.sqrt(Math.pow(S-w,2)+Math.pow(E-_,2)))&&(M=1e-7),A=1*o/M*100+((mv?f:v))*((gy?p:y)),A*=i}else{var C=!1,T=function(t,e,n){var r=t.x-t.size[0]/2,i=t.y-t.size[1]/2,o=t.x+t.size[0]/2,a=t.y+t.size[1]/2,c=e.x-e.size[0]/2,h=e.y-e.size[1]/2,d=e.x+e.size[0]/2,f=e.y+e.size[1]/2,p=t.x,m=t.y,g=e.x,v=e.y,y=g-p,b=Math.atan2(y,v-m),x=0,w=0,_=0,S=0;b>s?(w=i-f,x=c-o,_=parseFloat(w?(w/Math.cos(b)).toFixed(2):x.toFixed(2)),S=parseFloat(x?(x/Math.sin(b)).toFixed(2):w.toFixed(2))):_=S=0(x=c-o)?parseFloat(w?(w/Math.cos(b)).toFixed(2):x.toFixed(2)):parseFloat(x?(x/Math.sin(b)).toFixed(2):w.toFixed(2)):b<-s?(w=i-f)>(x=-(d-r))?parseFloat(w?(w/Math.cos(b)).toFixed(2):x.toFixed(2)):parseFloat(x?(x/Math.sin(b)).toFixed(2):w.toFixed(2)):(w=h-a)>(x=Math.abs(y)>(o-r)/2?r-d:y)?parseFloat(w?(w/Math.cos(b)).toFixed(2):x.toFixed(2)):parseFloat(x&&0!==b?(x/Math.sin(b)).toFixed(2):w.toFixed(2));var E=parseFloat(b.toFixed(2)),A=n;return n&&(A=un||o.y>r)&&(e+=1e12);for(var a=i+1;a70&&c<110,f=h>70&&h<110;if((c<30||c>150)&&!(h<30||h>150)||c*h<0){s=!1;break}if(d&&!f||c*h<0){s=!1;break}if((l.x-t.x)*(l.x-e.x)<0){s=!1;break}if((l.y-t.y)*(l.y-e.y)<0){s=!1;break}}return s}function b(t,e){for(var n=!1,r=1*h,i=1*d,o=[r,-r,0,0],a=[0,0,i,-i],s=0;sp?(l=g,n=!0):(u.x-=o[c],u.y-=a[c])}}return f>p&&(f*=m),n?v(t):0}function x(t,e){var i=0;(t.x<0||t.y<0||t.x+t.size[0]+20>n||t.y+t.size[1]+20>r)&&(i+=1e12);for(var o=0;o0&&!(++a>=50);){var s=b(t,e);0!==s&&(o=s),i=o-n,n=o,0===i?--r:r=20}return t.forEach((function(t){t.x=t.x-t.size[0]/2,t.y=t.y-t.size[1]/2})),{nodes:t,edges:e}}},92727:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forceNBody=void 0;var r=n(30617);function i(t){var e=0,n=0,r=0;if(t.length){for(var i=0;i<4;i++){(o=t[i])&&o.weight&&(e+=o.weight,n+=o.x*o.weight,r+=o.y*o.weight)}t.x=n/e,t.y=r/e,t.weight=e}else{var o=t;t.x=o.data.x,t.y=o.data.y,t.weight=o.data.weight}}e.forceNBody=function(t,e,n,a,s){var u=n/a,l=t.map((function(t,n){var r=e[t.id],i=r.data,o=r.x,a=r.y,s=r.size,l=i.layout.force.nodeStrength;return{x:o,y:a,size:s,index:n,vx:0,vy:0,weight:u*l}})),c=(0,r.quadtree)(l,(function(t){return t.x}),(function(t){return t.y})).visitAfter(i);return l.forEach((function(t){!function(t,e){e.visit((function(e,n,r,i,a){return o(e,n,r,i,a,t)}))}(t,c)})),l.map((function(n,r){var i=e[t[r].id].data.layout.force.mass,o=void 0===i?1:i;s[2*r]=n.vx/o,s[2*r+1]=n.vy/o})),s};var o=function(t,e,n,r,i,o){var a=o.x-t.x||.1,s=o.y-t.y||.1,u=r-e,l=a*a+s*s,c=Math.sqrt(l)*l;if(u*u*.811&&(o=(0,s.getAvgNodePosition)(l))}else o=void 0;return{x:null==o?void 0:o.x,y:null==o?void 0:o.y}}}}if(r){t||(t=this.getSameTypeLeafMap());var f=Array.from(new Set(a.map((function(t,e){return t[i]})))).filter((function(t){return void 0!==t})),p={};f.forEach((function(t){var e=a.filter((function(e){return e[i]===t})).map((function(t){return u[t.id]}));p[t]=(0,s.getAvgNodePosition)(e)})),h={single:function(t){return c(t)},leaf:function(t){return c(t)},others:function(t){return c(t)},center:function(t,e,n){var r=p[t[i]];return{x:null==r?void 0:r.x,y:null==r?void 0:r.y}}}}this.centripetalOptions=o(o({},this.centripetalOptions),h);var m=this.centripetalOptions,g=m.leaf,v=m.single,y=m.others;g&&"function"!=typeof g&&(this.centripetalOptions.leaf=function(){return g}),v&&"function"!=typeof v&&(this.centripetalOptions.single=function(){return v}),y&&"function"!=typeof y&&(this.centripetalOptions.others=function(){return y})},e.prototype.updateCfg=function(t){t&&Object.assign(this,t)},e.prototype.getDefaultCfg=function(){return{maxIteration:500,gravity:10,enableTick:!0,animate:!0}},e.prototype.execute=function(){var t=this;t.stop();var e=t.nodes,n=t.edges,r=t.defSpringLen;if(t.judgingDistance=0,e&&0!==e.length){t.width||"undefined"==typeof window||(t.width=window.innerWidth),t.height||"undefined"==typeof window||(t.height=window.innerHeight),t.center||(t.center=[t.width/2,t.height/2]);var i=t.center;if(1===e.length)return e[0].x=i[0],e[0].y=i[1],void t.onLayoutEnd([o({},e[0])]);t.degreesMap=(0,s.getDegreeMap)(e,n),t.propsGetMass?t.getMass=t.propsGetMass:t.getMass=function(e){var n=1;(0,s.isNumber)(e.mass)&&(n=e.mass);var r=t.degreesMap[e.id].all;return!r||r<5?n:5*r*n};var a,u=t.nodeSize;if(t.preventOverlap){var c,h=t.nodeSpacing;c=(0,s.isNumber)(h)?function(){return h}:(0,s.isFunction)(h)?h:function(){return 0},a=u?(0,s.isArray)(u)?function(t){return Math.max(u[0],u[1])+c(t)}:function(t){return u+c(t)}:function(t){return t.size?(0,s.isArray)(t.size)?Math.max(t.size[0],t.size[1])+c(t):(0,s.isObject)(t.size)?Math.max(t.size.width,t.size.height)+c(t):t.size+c(t):10+c(t)}}t.nodeSize=a,t.linkDistance=l(t.linkDistance,1),t.nodeStrength=l(t.nodeStrength,1),t.edgeStrength=l(t.edgeStrength,1);var d={},f={};e.forEach((function(e,r){(0,s.isNumber)(e.x)||(e.x=Math.random()*t.width),(0,s.isNumber)(e.y)||(e.y=Math.random()*t.height);var i=t.degreesMap[e.id];d[e.id]=o(o({},e),{data:o(o({},e.data),{size:t.nodeSize(e)||30,layout:{inDegree:i.in,outDegree:i.out,degree:i.all,tDegree:i.in,sDegree:i.out,force:{mass:t.getMass(e),nodeStrength:t.nodeStrength(e,n)}}})}),f[e.id]=r})),t.nodeMap=d,t.nodeIdxMap=f,t.edgeInfos=[],null==n||n.forEach((function(e){var n=d[e.source],i=d[e.target];n&&i?t.edgeInfos.push({edgeStrength:t.edgeStrength(e),linkDistance:r?r(o(o({},e),{source:n,target:i}),n,i):t.linkDistance(e,n,i)||1+(u(n)+u(n)||0)/2}):elf.edgeInfos.push({})})),this.getCentripetalOptions(),t.onLayoutEnd=t.onLayoutEnd||function(){},t.run()}else t.onLayoutEnd([])},e.prototype.run=function(){var t=this,e=t.maxIteration,n=t.nodes,r=t.edges,i=t.workerEnabled,o=t.minMovement,a=t.animate,s=t.nodeMap,u=t.height;if(t.currentMinY=0,t.currentMaxY=u,n){var l=[];if(n.forEach((function(t,e){l[2*e]=0,l[2*e+1]=0})),this.defSideCoe&&"function"==typeof this.defSideCoe){var c={};r.forEach((function(t){var e=t.source,n=t.target;c[e]=c[e]||[],c[e].push(t),c[n]=c[n]||[],c[n].push(t)})),this.relatedEdges=c}var h=e;if(i||!a){for(var d=0;(t.judgingDistance>o||d<1)&&d=h||t.judgingDistancea){var c=a/l;s*=c,u*=c}e[2*i]=s,e[2*i+1]=u}))},e.prototype.updatePosition=function(t,e){var n=this,r=n.nodes,i=n.distanceThresholdMode,o=n.nodeMap;if(null==r?void 0:r.length){var a=0;"max"===i?n.judgingDistance=-1/0:"min"===i&&(n.judgingDistance=1/0);var u=1/0,l=-1/0;r.forEach((function(r,c){var h=o[r.id];if((0,s.isNumber)(r.fx)&&(0,s.isNumber)(r.fy))return r.x=r.fx,r.y=r.fy,h.x=r.x,void(h.y=r.y);var d=t[2*c]*e,f=t[2*c+1]*e;r.x+=d,r.y+=f,h.x=r.x,h.y=r.y,r.yl&&(l=r.y);var p=Math.sqrt(d*d+f*f);switch(i){case"max":n.judgingDistancep&&(n.judgingDistance=p);break;default:a+=p}})),this.currentMinY=u,this.currentMaxY=l,i&&"mean"!==i||(n.judgingDistance=a/r.length)}else this.judgingDistance=0},e.prototype.stop=function(){this.timeInterval&&"undefined"!=typeof window&&window.clearInterval(this.timeInterval)},e.prototype.destroy=function(){var t=this;t.stop(),t.tick=null,t.nodes=null,t.edges=null,t.destroyed=!0},e.prototype.getType=function(){return"force2"},e.prototype.getSameTypeLeafMap=function(){var t=this,e=t.nodeClusterBy,n=t.nodes,r=t.edges,i=t.nodeMap,o=t.degreesMap;if(null==n?void 0:n.length){var a={};return n.forEach((function(t,n){1===o[t.id].all&&(a[t.id]=(0,s.getCoreNodeAndRelativeLeafNodes)("leaf",t,r,e,o,i))})),a}},e}(a.Base);e.Force2Layout=c},23151:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.id=t.id||0,this.rx=t.rx,this.ry=t.ry,this.fx=0,this.fy=0,this.mass=t.mass,this.degree=t.degree,this.g=t.g||0}return t.prototype.distanceTo=function(t){var e=this.rx-t.rx,n=this.ry-t.ry;return Math.hypot(e,n)},t.prototype.setPos=function(t,e){this.rx=t,this.ry=e},t.prototype.resetForce=function(){this.fx=0,this.fy=0},t.prototype.addForce=function(t){var e=t.rx-this.rx,n=t.ry-this.ry,r=Math.hypot(e,n);r=r<1e-4?1e-4:r;var i=this.g*(this.degree+1)*(t.degree+1)/r;this.fx+=i*e/r,this.fy+=i*n/r},t.prototype.in=function(t){return t.contains(this.rx,this.ry)},t.prototype.add=function(e){var n=this.mass+e.mass;return new t({rx:(this.rx*this.mass+e.rx*e.mass)/n,ry:(this.ry*this.mass+e.ry*e.mass)/n,mass:n,degree:this.degree+e.degree})},t}();e.default=n},48991:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ForceAtlas2Layout=void 0;var a=n(46271),s=n(81422),u=o(n(23151)),l=o(n(42784)),c=o(n(25980)),h=function(t){function e(e){var n=t.call(this)||this;return n.center=[0,0],n.width=300,n.height=300,n.nodes=[],n.edges=[],n.kr=5,n.kg=1,n.mode="normal",n.preventOverlap=!1,n.dissuadeHubs=!1,n.barnesHut=void 0,n.maxIteration=0,n.ks=.1,n.ksmax=10,n.tao=.1,n.onLayoutEnd=function(){},n.prune=void 0,n.updateCfg(e),n}return i(e,t),e.prototype.getDefaultCfg=function(){return{}},e.prototype.execute=function(){var t=this,e=t.nodes,n=t.onLayoutEnd,r=t.prune,i=t.maxIteration;t.width||"undefined"==typeof window||(t.width=window.innerWidth),t.height||"undefined"==typeof window||(t.height=window.innerHeight);for(var o=[],a=e.length,u=0;u250&&(t.barnesHut=!0),void 0===t.prune&&a>100&&(t.prune=!0),0!==this.maxIteration||t.prune?0===this.maxIteration&&r&&(i=100,a<=200&&a>100?i=500:a>200&&(i=950),this.maxIteration=i):(i=250,a<=200&&a>100?i=1e3:a>200&&(i=1200),this.maxIteration=i),t.kr||(t.kr=50,a>100&&a<=500?t.kr=20:a>500&&(t.kr=1)),t.kg||(t.kg=20,a>100&&a<=500?t.kg=10:a>500&&(t.kg=1)),this.nodes=t.updateNodesByForces(o),n()},e.prototype.updateNodesByForces=function(t){for(var e=this,n=e.edges,r=e.maxIteration,i=e.nodes,o=n.filter((function(t){return(0,s.getEdgeTerminal)(t,"source")!==(0,s.getEdgeTerminal)(t,"target")})),a=i.length,u=o.length,l=[],c={},h={},d=[],f=0;f0;){for(y=0;y50||!c)?this.getOptRepGraForces(m,v,i):this.getRepGraForces(p,50,m,100,o,i);var x=this.updatePos(m,g,f,i);s=x.nodes,f=x.sg,p--,a.tick&&a.tick()}return s},e.prototype.getAttrForces=function(t,e,n,r,i,o,a,s){for(var u=this,l=u.nodes,c=u.preventOverlap,h=u.dissuadeHubs,d=u.mode,f=u.prune,p=0;p0&&(w=x,_=x),s[2*r[m.id]]+=w*b[0],s[2*r[v.id]]-=_*b[0],s[2*r[m.id]+1]+=w*b[1],s[2*r[v.id]+1]-=_*b[1]}}return s},e.prototype.getRepGraForces=function(t,e,n,r,i,o){for(var a=this,s=a.nodes,u=a.preventOverlap,l=a.kr,c=a.kg,h=a.center,d=a.prune,f=s.length,p=0;p0&&(y=l*(o[p]+1)*(o[m]+1)/v),n[2*p]-=y*g[0],n[2*m]+=y*g[0],n[2*p+1]-=y*g[1],n[2*m+1]+=y*g[1]}var b=[s[p].x-h[0],s[p].y-h[1]],x=Math.hypot(b[0],b[1]);b[0]=b[0]/x,b[1]=b[1]/x;var w=c*(o[p]+1);n[2*p]-=w*b[0],n[2*p+1]-=w*b[1]}return n},e.prototype.getOptRepGraForces=function(t,e,n){for(var r=this,i=r.nodes,o=r.kg,a=r.center,s=r.prune,u=i.length,h=9e10,d=-9e10,f=9e10,p=-9e10,m=0;m=d&&(d=i[m].x),i[m].x<=h&&(h=i[m].x),i[m].y>=p&&(p=i[m].y),i[m].y<=f&&(f=i[m].y));var g={xmid:(d+h)/2,ymid:(p+f)/2,length:Math.max(d-h,p-f),massCenter:a,mass:u},v=new l.default(g),y=new c.default(v);for(m=0;m1.5*w?1.5*w:n);for(g=0;gE?E:_)*t[2*g],M=_*t[2*g+1];o[g].x+=A,o[g].y+=M}return{nodes:o,sg:n}},e}(a.Base);e.ForceAtlas2Layout=h},42784:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.xmid=t.xmid,this.ymid=t.ymid,this.length=t.length,this.massCenter=t.massCenter||[0,0],this.mass=t.mass||1}return t.prototype.getLength=function(){return this.length},t.prototype.contains=function(t,e){var n=this.length/2;return t<=this.xmid+n&&t>=this.xmid-n&&e<=this.ymid+n&&e>=this.ymid-n},t.prototype.NW=function(){return new t({xmid:this.xmid-this.length/4,ymid:this.ymid+this.length/4,length:this.length/2})},t.prototype.NE=function(){return new t({xmid:this.xmid+this.length/4,ymid:this.ymid+this.length/4,length:this.length/2})},t.prototype.SW=function(){return new t({xmid:this.xmid-this.length/4,ymid:this.ymid-this.length/4,length:this.length/2})},t.prototype.SE=function(){return new t({xmid:this.xmid+this.length/4,ymid:this.ymid-this.length/4,length:this.length/2})},t}();e.default=n},25980:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.body=null,this.quad=null,this.NW=null,this.NE=null,this.SW=null,this.SE=null,this.theta=.5,null!=t&&(this.quad=t)}return t.prototype.insert=function(e){null!=this.body?this._isExternal()?(this.quad&&(this.NW=new t(this.quad.NW()),this.NE=new t(this.quad.NE()),this.SW=new t(this.quad.SW()),this.SE=new t(this.quad.SE())),this._putBody(this.body),this._putBody(e),this.body=this.body.add(e)):(this.body=this.body.add(e),this._putBody(e)):this.body=e},t.prototype._putBody=function(t){this.quad&&(t.in(this.quad.NW())&&this.NW?this.NW.insert(t):t.in(this.quad.NE())&&this.NE?this.NE.insert(t):t.in(this.quad.SW())&&this.SW?this.SW.insert(t):t.in(this.quad.SE())&&this.SE&&this.SE.insert(t))},t.prototype._isExternal=function(){return null==this.NW&&null==this.NE&&null==this.SW&&null==this.SE},t.prototype.updateForce=function(t){null!=this.body&&t!==this.body&&(this._isExternal()||(this.quad?this.quad.getLength():0)/this.body.distanceTo(t)-1||(e[r]=t[r])})),e})),e.ticking=!1},e.prototype.execute=function(t){var e=this,n=e.nodes,r=e.edges;if(!e.ticking){var i=e.forceSimulation,o=e.alphaMin,a=e.alphaDecay,s=e.alpha;if(i){if(t)if(e.clustering&&e.clusterForce&&(e.clusterForce.nodes(n),e.clusterForce.links(r)),i.nodes(n),r&&e.edgeForce)e.edgeForce.links(r);else if(r&&!e.edgeForce){d=l.forceLink().id((function(t){return t.id})).links(r);e.edgeStrength&&d.strength(e.edgeStrength),e.linkDistance&&d.distance(e.linkDistance),e.edgeForce=d,i.force("link",d)}e.preventOverlap&&e.overlapProcess(i),i.alpha(s).restart(),this.ticking=!0}else try{var u=l.forceManyBody();if(e.nodeStrength&&u.strength(e.nodeStrength),i=l.forceSimulation().nodes(n),e.clustering){var h=(0,c.default)();h.centerX(e.center[0]).centerY(e.center[1]).template("force").strength(e.clusterFociStrength),r&&h.links(r),n&&h.nodes(n),h.forceLinkDistance(e.clusterEdgeDistance).forceLinkStrength(e.clusterEdgeStrength).forceCharge(e.clusterNodeStrength).forceNodeSize(e.clusterNodeSize),e.clusterForce=h,i.force("group",h)}if(i.force("center",l.forceCenter(e.center[0],e.center[1])).force("charge",u).alpha(s).alphaDecay(a).alphaMin(o),e.preventOverlap&&e.overlapProcess(i),r){var d=l.forceLink().id((function(t){return t.id})).links(r);e.edgeStrength&&d.strength(e.edgeStrength),e.linkDistance&&d.distance(e.linkDistance),e.edgeForce=d,i.force("link",d)}if(e.workerEnabled&&!m()&&(e.workerEnabled=!1,console.warn("workerEnabled option is only supported when running in web worker.")),e.workerEnabled){i.stop();for(var p=function(t){var e=t.alphaMin(),n=t.alphaTarget(),r=t.alpha(),i=Math.log((e-n)/(r-n))/Math.log(1-t.alphaDecay()),o=Math.ceil(i);return o}(i),g=1;g<=p;g++)i.tick(),postMessage({nodes:n,currentTick:g,totalTicks:p,type:f.LAYOUT_MESSAGE.TICK},void 0);e.ticking=!1}else i.on("tick",(function(){e.tick()})).on("end",(function(){e.ticking=!1,e.onLayoutEnd&&e.onLayoutEnd()})),e.ticking=!0;e.forceSimulation=i,e.ticking=!0}catch(t){e.ticking=!1,console.warn(t)}}},e.prototype.overlapProcess=function(t){var e,n,r=this,i=r.nodeSize,o=r.nodeSpacing,a=r.collideStrength;if(n=(0,h.isNumber)(o)?function(){return o}:(0,h.isFunction)(o)?o:function(){return 0},i)if((0,h.isFunction)(i))e=function(t){return i(t)+n(t)};else if((0,h.isArray)(i)){var s=(i[0]>i[1]?i[0]:i[1])/2;e=function(t){return s+n(t)}}else if((0,h.isNumber)(i)){var u=i/2;e=function(t){return u+n(t)}}else e=function(){return 10};else e=function(t){return t.size?(0,h.isArray)(t.size)?(t.size[0]>t.size[1]?t.size[0]:t.size[1])/2+n(t):(0,h.isObject)(t.size)?(t.size.width>t.size.height?t.size.width:t.size.height)/2+n(t):t.size/2+n(t):10+n(t)};t.force("collisionForce",l.forceCollide(e).strength(a))},e.prototype.updateCfg=function(t){var e=this;e.ticking&&(e.forceSimulation.stop(),e.ticking=!1),e.forceSimulation=null,Object.assign(e,t)},e.prototype.destroy=function(){var t=this;t.ticking&&(t.forceSimulation.stop(),t.ticking=!1),t.nodes=null,t.edges=null,t.destroyed=!0},e}(d.Base);function m(){return"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope}e.ForceLayout=p},24964:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(22127),e)},361:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.FruchtermanLayout=void 0;var o=n(46271),a=n(81422),s=function(t){function e(e){var n=t.call(this)||this;return n.maxIteration=1e3,n.workerEnabled=!1,n.gravity=10,n.speed=5,n.clustering=!1,n.clusterGravity=10,n.nodes=[],n.edges=[],n.width=300,n.height=300,n.nodeMap={},n.nodeIdxMap={},n.onLayoutEnd=function(){},n.tick=function(){},n.animate=!0,n.updateCfg(e),n}return i(e,t),e.prototype.getDefaultCfg=function(){return{maxIteration:1e3,gravity:10,speed:1,clustering:!1,clusterGravity:10,animate:!0}},e.prototype.execute=function(){var t,e,n=this,r=this,i=r.nodes;if(void 0!==r.timeInterval&&"undefined"!=typeof window&&window.clearInterval(r.timeInterval),i&&0!==i.length){r.width||"undefined"==typeof window||(r.width=window.innerWidth),r.height||"undefined"==typeof window||(r.height=window.innerHeight),r.center||(r.center=[r.width/2,r.height/2]);var o=r.center;if(1===i.length)return i[0].x=o[0],i[0].y=o[1],void(null===(e=r.onLayoutEnd)||void 0===e||e.call(r));var s={},u={};return i.forEach((function(t,e){(0,a.isNumber)(t.x)||(t.x=Math.random()*n.width),(0,a.isNumber)(t.y)||(t.y=Math.random()*n.height),s[t.id]=t,u[t.id]=e})),r.nodeMap=s,r.nodeIdxMap=u,r.run()}null===(t=r.onLayoutEnd)||void 0===t||t.call(r)},e.prototype.run=function(){var t,e=this,n=e.nodes;if(n){var r=e.edges,i=e.maxIteration,o=e.workerEnabled,a=e.clustering,s=e.animate,u={};if(a&&n.forEach((function(t){void 0===u[t.cluster]&&(u[t.cluster]={name:t.cluster,cx:0,cy:0,count:0})})),o||!s){for(var l=0;l=i&&(null===(t=e.onLayoutEnd)||void 0===t||t.call(e),window.clearInterval(e.timeInterval))}),0)}return{nodes:n,edges:r}}},e.prototype.runOneStep=function(t){var e,n=this,r=n.nodes;if(r){var i=n.edges,o=n.center,s=n.gravity,u=n.speed,l=n.clustering,c=n.height*n.width,h=Math.sqrt(c)/10,d=c/(r.length+1),f=Math.sqrt(d),p=[];if(r.forEach((function(t,e){p[e]={x:0,y:0}})),n.applyCalculate(r,i,p,f,d),l){for(var m in t)t[m].cx=0,t[m].cy=0,t[m].count=0;for(var m in r.forEach((function(e){var n=t[e.cluster];(0,a.isNumber)(e.x)&&(n.cx+=e.x),(0,a.isNumber)(e.y)&&(n.cy+=e.y),n.count++})),t)t[m].cx/=t[m].count,t[m].cy/=t[m].count;var g=n.clusterGravity||s;r.forEach((function(e,n){if((0,a.isNumber)(e.x)&&(0,a.isNumber)(e.y)){var r=t[e.cluster],i=Math.sqrt((e.x-r.cx)*(e.x-r.cx)+(e.y-r.cy)*(e.y-r.cy)),o=f*g;p[n].x-=o*(e.x-r.cx)/i,p[n].y-=o*(e.y-r.cy)/i}}))}r.forEach((function(t,e){if((0,a.isNumber)(t.x)&&(0,a.isNumber)(t.y)){var n=.01*f*s;p[e].x-=n*(t.x-o[0]),p[e].y-=n*(t.y-o[1])}})),r.forEach((function(t,e){if((0,a.isNumber)(t.fx)&&(0,a.isNumber)(t.fy))return t.x=t.fx,void(t.y=t.fy);if((0,a.isNumber)(t.x)&&(0,a.isNumber)(t.y)){var n=Math.sqrt(p[e].x*p[e].x+p[e].y*p[e].y);if(n>0){var r=Math.min(h*(u/800),n);t.x+=p[e].x/n*r,t.y+=p[e].y/n*r}}})),null===(e=n.tick)||void 0===e||e.call(n)}},e.prototype.applyCalculate=function(t,e,n,r,i){this.calRepulsive(t,n,i),e&&this.calAttractive(e,n,r)},e.prototype.calRepulsive=function(t,e,n){t.forEach((function(r,i){e[i]={x:0,y:0},t.forEach((function(t,o){if(i!==o&&(0,a.isNumber)(r.x)&&(0,a.isNumber)(t.x)&&(0,a.isNumber)(r.y)&&(0,a.isNumber)(t.y)){var s=r.x-t.x,u=r.y-t.y,l=s*s+u*u;if(0===l){l=1;var c=i>o?1:-1;s=.01*c,u=.01*c}var h=n/l;e[i].x+=s*h,e[i].y+=u*h}}))}))},e.prototype.calAttractive=function(t,e,n){var r=this;t.forEach((function(t){var i=(0,a.getEdgeTerminal)(t,"source"),o=(0,a.getEdgeTerminal)(t,"target");if(i&&o){var s=r.nodeIdxMap[i],u=r.nodeIdxMap[o];if(s!==u){var l=r.nodeMap[i],c=r.nodeMap[o];if((0,a.isNumber)(c.x)&&(0,a.isNumber)(l.x)&&(0,a.isNumber)(c.y)&&(0,a.isNumber)(l.y)){var h=c.x-l.x,d=c.y-l.y,f=Math.sqrt(h*h+d*d),p=f*f/n;e[u].x-=h/f*p,e[u].y-=d/f*p,e[s].x+=h/f*p,e[s].y+=d/f*p}}}}))},e.prototype.stop=function(){this.timeInterval&&"undefined"!=typeof window&&window.clearInterval(this.timeInterval)},e.prototype.destroy=function(){var t=this;t.stop(),t.tick=null,t.nodes=null,t.edges=null,t.destroyed=!0},e.prototype.getType=function(){return"fruchterman"},e}(o.Base);e.FruchtermanLayout=s},70238:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.GForceLayout=void 0;var o=n(46271),a=n(81422),s=function(t,e){return t?(0,a.isNumber)(t)?function(e){return t}:t:function(t){return e||1}},u=function(t){function e(e){var n=t.call(this)||this;return n.maxIteration=500,n.workerEnabled=!1,n.edgeStrength=200,n.nodeStrength=1e3,n.coulombDisScale=.005,n.damping=.9,n.maxSpeed=1e3,n.minMovement=.5,n.interval=.02,n.factor=1,n.linkDistance=1,n.gravity=10,n.preventOverlap=!0,n.collideStrength=1,n.tick=function(){},n.nodes=[],n.edges=[],n.width=300,n.height=300,n.nodeMap={},n.nodeIdxMap={},n.animate=!0,n.updateCfg(e),n}return i(e,t),e.prototype.getDefaultCfg=function(){return{maxIteration:500,gravity:10,enableTick:!0,animate:!0}},e.prototype.execute=function(){var t,e,n=this,r=n.nodes;if(void 0!==n.timeInterval&&"undefined"!=typeof window&&window.clearInterval(n.timeInterval),r&&0!==r.length){n.width||"undefined"==typeof window||(n.width=window.innerWidth),n.height||"undefined"==typeof window||(n.height=window.innerHeight),n.center||(n.center=[n.width/2,n.height/2]);var i=n.center;if(1===r.length)return r[0].x=i[0],r[0].y=i[1],void(null===(e=n.onLayoutEnd)||void 0===e||e.call(n));var o={},u={};r.forEach((function(t,e){(0,a.isNumber)(t.x)||(t.x=Math.random()*n.width),(0,a.isNumber)(t.y)||(t.y=Math.random()*n.height),o[t.id]=t,u[t.id]=e})),n.nodeMap=o,n.nodeIdxMap=u,n.linkDistance=s(n.linkDistance,1),n.nodeStrength=s(n.nodeStrength,1),n.edgeStrength=s(n.edgeStrength,1);var l,c=n.nodeSize;if(n.preventOverlap){var h,d=n.nodeSpacing;h=(0,a.isNumber)(d)?function(){return d}:(0,a.isFunction)(d)?d:function(){return 0},l=c?(0,a.isArray)(c)?function(t){return Math.max(c[0],c[1])+h(t)}:function(t){return c+h(t)}:function(t){return t.size?(0,a.isArray)(t.size)?Math.max(t.size[0],t.size[1])+h(t):(0,a.isObject)(t.size)?Math.max(t.size.width,t.size.height)+h(t):t.size+h(t):10+h(t)}}n.nodeSize=l;var f=n.edges;n.degrees=(0,a.getDegree)(r.length,n.nodeIdxMap,f),n.getMass||(n.getMass=function(t){return t.mass||n.degrees[n.nodeIdxMap[t.id]].all||1}),n.run()}else null===(t=n.onLayoutEnd)||void 0===t||t.call(n)},e.prototype.run=function(){var t,e=this,n=e.maxIteration,r=e.nodes,i=e.workerEnabled,o=e.minMovement,a=e.animate;if(r)if(i||!a){for(var s=0;s=n&&(null===(i=e.onLayoutEnd)||void 0===i||i.call(e),window.clearInterval(e.timeInterval))}}),0)}},e.prototype.reachMoveThreshold=function(t,e,n){var r=0;return t.forEach((function(t,n){var i=t.x-e[n].x,o=t.y-e[n].y;r+=Math.sqrt(i*i+o*o)})),(r/=t.length)=d)){var f=n.x-e.x,p=n.y-e.y;0===f&&0===p&&(f=.01*Math.random(),p=.01*Math.random());var m=f*f+p*p,g=Math.sqrt(m),v=(g+.1)*o,y=f/g,b=p/g,x=.5*(l(n)+l(e))*i/(v*v),w=r?r(e):1;if(t[2*s]+=y*x,t[2*s+1]+=b*x,t[2*d]-=y*x,t[2*d+1]-=b*x,a&&(c(n)+c(e))/2>g){var _=u*(l(n)+l(e))*.5/m;t[2*s]+=y*_/h,t[2*s+1]+=b*_/h,t[2*d]-=y*_/w,t[2*d+1]-=b*_/w}}}))}))},e.prototype.calAttractive=function(t,e){var n=this,r=n.nodeMap,i=n.nodeIdxMap,o=n.linkDistance,s=n.edgeStrength,u=n.nodeSize,l=n.getMass;e.forEach((function(e,n){var c=(0,a.getEdgeTerminal)(e,"source"),h=(0,a.getEdgeTerminal)(e,"target"),d=r[c],f=r[h],p=f.x-d.x,m=f.y-d.y;0===p&&0===m&&(p=.01*Math.random(),m=.01*Math.random());var g=Math.sqrt(p*p+m*m),v=p/g,y=m/g,b=((o(e,d,f)||1+(u(d)+u(f)||0)/2)-g)*s(e),x=i[c],w=i[h],_=l?l(d):1,S=l?l(f):1;t[2*x]-=v*b/_,t[2*x+1]-=y*b/_,t[2*w]+=v*b/S,t[2*w+1]+=y*b/S}))},e.prototype.calGravity=function(t,e){for(var n=this,r=n.center,i=n.gravity,o=n.degrees,s=e.length,u=0;ui.maxSpeed){var l=i.maxSpeed/u;a*=l,s*=l}e[2*r]=a,e[2*r+1]=s}))},e.prototype.updatePosition=function(t,e,n){n.forEach((function(n,r){if((0,a.isNumber)(n.fx)&&(0,a.isNumber)(n.fy))return n.x=n.fx,void(n.y=n.fy);var i=t[2*r]*e,o=t[2*r+1]*e;n.x+=i,n.y+=o}))},e.prototype.stop=function(){this.timeInterval&&"undefined"!=typeof window&&window.clearInterval(this.timeInterval)},e.prototype.destroy=function(){var t=this;t.stop(),t.tick=null,t.nodes=null,t.edges=null,t.destroyed=!0},e.prototype.getType=function(){return"gForce"},e}(o.Base);e.GForceLayout=u},25444:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.clusterBundle=e.clusterCode=e.fruchtermanBundle=e.fruchtermanCode=void 0,e.fruchtermanCode="\nimport { globalInvocationID } from 'g-webgpu';\nconst MAX_EDGE_PER_VERTEX;\nconst VERTEX_COUNT;\n@numthreads(1, 1, 1)\nclass Fruchterman {\n @in @out\n u_Data: vec4[];\n @in\n u_K: float;\n @in\n u_K2: float;\n \n @in\n u_Center: vec2;\n @in\n u_Gravity: float;\n @in\n u_ClusterGravity: float;\n @in\n u_Speed: float;\n @in\n u_MaxDisplace: float;\n @in\n u_Clustering: float;\n @in\n u_AttributeArray: vec4[];\n @in\n u_ClusterCenters: vec4[];\n calcRepulsive(i: int, currentNode: vec4): vec2 {\n let dx = 0, dy = 0;\n for (let j = 0; j < VERTEX_COUNT; j++) {\n if (i != j) {\n const nextNode = this.u_Data[j];\n const xDist = currentNode[0] - nextNode[0];\n const yDist = currentNode[1] - nextNode[1];\n const dist = (xDist * xDist + yDist * yDist) + 0.01;\n let param = this.u_K2 / dist;\n \n if (dist > 0.0) {\n dx += param * xDist;\n dy += param * yDist;\n if (xDist == 0 && yDist == 0) {\n const sign = i < j ? 1 : -1;\n dx += param * sign;\n dy += param * sign;\n }\n }\n }\n }\n return [dx, dy];\n }\n calcGravity(currentNode: vec4, nodeAttributes: vec4): vec2 { // \n let dx = 0, dy = 0;\n const vx = currentNode[0] - this.u_Center[0];\n const vy = currentNode[1] - this.u_Center[1];\n const gf = 0.01 * this.u_K * this.u_Gravity;\n dx = gf * vx;\n dy = gf * vy;\n if (this.u_Clustering == 1) {\n const clusterIdx = int(nodeAttributes[0]);\n const center = this.u_ClusterCenters[clusterIdx];\n const cvx = currentNode[0] - center[0];\n const cvy = currentNode[1] - center[1];\n const dist = sqrt(cvx * cvx + cvy * cvy) + 0.01;\n const parma = this.u_K * this.u_ClusterGravity / dist;\n dx += parma * cvx;\n dy += parma * cvy;\n }\n return [dx, dy];\n }\n calcAttractive(i: int, currentNode: vec4): vec2 {\n let dx = 0, dy = 0;\n const arr_offset = int(floor(currentNode[2] + 0.5));\n const length = int(floor(currentNode[3] + 0.5));\n const node_buffer: vec4;\n for (let p = 0; p < MAX_EDGE_PER_VERTEX; p++) {\n if (p >= length) break;\n const arr_idx = arr_offset + p;\n // when arr_idx % 4 == 0 update currentNodedx_buffer\n const buf_offset = arr_idx - arr_idx / 4 * 4;\n if (p == 0 || buf_offset == 0) {\n node_buffer = this.u_Data[int(arr_idx / 4)];\n }\n const float_j = buf_offset == 0 ? node_buffer[0] :\n buf_offset == 1 ? node_buffer[1] :\n buf_offset == 2 ? node_buffer[2] :\n node_buffer[3];\n const nextNode = this.u_Data[int(float_j)];\n const xDist = currentNode[0] - nextNode[0];\n const yDist = currentNode[1] - nextNode[1];\n const dist = sqrt(xDist * xDist + yDist * yDist) + 0.01;\n let attractiveF = dist / this.u_K;\n \n if (dist > 0.0) {\n dx -= xDist * attractiveF;\n dy -= yDist * attractiveF;\n if (xDist == 0 && yDist == 0) {\n const sign = i < int(float_j) ? 1 : -1;\n dx -= sign * attractiveF;\n dy -= sign * attractiveF;\n }\n }\n }\n return [dx, dy];\n }\n @main\n compute() {\n const i = globalInvocationID.x;\n const currentNode = this.u_Data[i];\n let dx = 0, dy = 0;\n if (i >= VERTEX_COUNT) {\n this.u_Data[i] = currentNode;\n return;\n }\n\n // [gravity, fx, fy, 0]\n const nodeAttributes = this.u_AttributeArray[i];\n\n if (nodeAttributes[1] != 0 && nodeAttributes[2] != 0) {\n // the node is fixed\n this.u_Data[i] = [\n nodeAttributes[1],\n nodeAttributes[2],\n currentNode[2],\n currentNode[3]\n ];\n return;\n }\n\n // repulsive\n const repulsive = this.calcRepulsive(i, currentNode);\n dx += repulsive[0];\n dy += repulsive[1];\n // attractive\n const attractive = this.calcAttractive(i, currentNode);\n dx += attractive[0];\n dy += attractive[1];\n // gravity\n const gravity = this.calcGravity(currentNode, nodeAttributes);\n dx -= gravity[0];\n dy -= gravity[1];\n // speed\n dx *= this.u_Speed;\n dy *= this.u_Speed;\n\n // move\n const distLength = sqrt(dx * dx + dy * dy);\n if (distLength > 0.0) {\n const limitedDist = min(this.u_MaxDisplace * this.u_Speed, distLength);\n this.u_Data[i] = [\n currentNode[0] + dx / distLength * limitedDist,\n currentNode[1] + dy / distLength * limitedDist,\n currentNode[2],\n currentNode[3]\n ];\n }\n }\n}\n",e.fruchtermanBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define MAX_EDGE_PER_VERTEX __DefineValuePlaceholder__MAX_EDGE_PER_VERTEX\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_K;\\nuniform float u_K2;\\nuniform vec2 u_Center;\\nuniform float u_Gravity;\\nuniform float u_ClusterGravity;\\nuniform float u_Speed;\\nuniform float u_MaxDisplace;\\nuniform float u_Clustering;\\nuniform sampler2D u_AttributeArray;\\nuniform vec2 u_AttributeArraySize;\\nvec4 getDatau_AttributeArray(vec2 address2D) {\\n return vec4(texture2D(u_AttributeArray, address2D).rgba);\\n}\\nvec4 getDatau_AttributeArray(float address1D) {\\n return getDatau_AttributeArray(addrTranslation_1Dto2D(address1D, u_AttributeArraySize));\\n}\\nvec4 getDatau_AttributeArray(int address1D) {\\n return getDatau_AttributeArray(float(address1D));\\n}\\nuniform sampler2D u_ClusterCenters;\\nuniform vec2 u_ClusterCentersSize;\\nvec4 getDatau_ClusterCenters(vec2 address2D) {\\n return vec4(texture2D(u_ClusterCenters, address2D).rgba);\\n}\\nvec4 getDatau_ClusterCenters(float address1D) {\\n return getDatau_ClusterCenters(addrTranslation_1Dto2D(address1D, u_ClusterCentersSize));\\n}\\nvec4 getDatau_ClusterCenters(int address1D) {\\n return getDatau_ClusterCenters(float(address1D));\\n}\\nvec2 calcRepulsive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {if (i != j) {vec4 nextNode = getDatau_Data(j);\\nfloat xDist = currentNode.x - nextNode.x;\\nfloat yDist = currentNode.y - nextNode.y;\\nfloat dist = ((xDist * xDist) + (yDist * yDist)) + 0.01;\\nfloat param = u_K2 / dist;\\nif (dist > 0.0) {dx += param * xDist;\\ndy += param * yDist;\\nif ((xDist == 0.0) && (yDist == 0.0)) {float sign = (i < j) ? (1.0) : (-1.0);\\ndx += param * sign;\\ndy += param * sign;}}}}\\nreturn vec2(dx, dy);}\\nvec2 calcGravity(vec4 currentNode, vec4 nodeAttributes) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nfloat vx = currentNode.x - u_Center.x;\\nfloat vy = currentNode.y - u_Center.y;\\nfloat gf = (0.01 * u_K) * u_Gravity;\\ndx = gf * vx;\\ndy = gf * vy;\\nif (u_Clustering == 1.0) {int clusterIdx = int(nodeAttributes.x);\\nvec4 center = getDatau_ClusterCenters(clusterIdx);\\nfloat cvx = currentNode.x - center.x;\\nfloat cvy = currentNode.y - center.y;\\nfloat dist = sqrt((cvx * cvx) + (cvy * cvy)) + 0.01;\\nfloat parma = (u_K * u_ClusterGravity) / dist;\\ndx += parma * cvx;\\ndy += parma * cvy;}\\nreturn vec2(dx, dy);}\\nvec2 calcAttractive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nint arr_offset = int(floor(currentNode.z + 0.5));\\nint length = int(floor(currentNode.w + 0.5));\\nvec4 node_buffer;\\nfor (int p = 0; p < MAX_EDGE_PER_VERTEX; p++) {if (p >= length) {break;}\\nint arr_idx = arr_offset + int(p);\\nint buf_offset = arr_idx - ((arr_idx / 4) * 4);\\nif ((p == 0) || (buf_offset == 0)) {node_buffer = getDatau_Data(int(arr_idx / 4));}\\nfloat float_j = (buf_offset == 0) ? (node_buffer.x) : ((buf_offset == 1) ? (node_buffer.y) : ((buf_offset == 2) ? (node_buffer.z) : (node_buffer.w)));\\nvec4 nextNode = getDatau_Data(int(float_j));\\nfloat xDist = currentNode.x - nextNode.x;\\nfloat yDist = currentNode.y - nextNode.y;\\nfloat dist = sqrt((xDist * xDist) + (yDist * yDist)) + 0.01;\\nfloat attractiveF = dist / u_K;\\nif (dist > 0.0) {dx -= xDist * attractiveF;\\ndy -= yDist * attractiveF;\\nif ((xDist == 0.0) && (yDist == 0.0)) {float sign = (i < int(float_j)) ? (1.0) : (-1.0);\\ndx -= sign * attractiveF;\\ndy -= sign * attractiveF;}}}\\nreturn vec2(dx, dy);}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 currentNode = getDatau_Data(i);\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nif (i >= VERTEX_COUNT) {gl_FragColor = vec4(currentNode);\\nreturn ;}\\nvec4 nodeAttributes = getDatau_AttributeArray(i);\\nif ((nodeAttributes.y != 0.0) && (nodeAttributes.z != 0.0)) {gl_FragColor = vec4(vec4(nodeAttributes.y, nodeAttributes.z, currentNode.z, currentNode.w));\\nreturn ;}\\nvec2 repulsive = calcRepulsive(i, currentNode);\\ndx += repulsive.x;\\ndy += repulsive.y;\\nvec2 attractive = calcAttractive(i, currentNode);\\ndx += attractive.x;\\ndy += attractive.y;\\nvec2 gravity = calcGravity(currentNode, nodeAttributes);\\ndx -= gravity.x;\\ndy -= gravity.y;\\ndx *= u_Speed;\\ndy *= u_Speed;\\nfloat distLength = sqrt((dx * dx) + (dy * dy));\\nif (distLength > 0.0) {float limitedDist = min(u_MaxDisplace * u_Speed, distLength);\\ngl_FragColor = vec4(vec4(currentNode.x + ((dx / distLength) * limitedDist), currentNode.y + ((dy / distLength) * limitedDist), currentNode.z, currentNode.w));}if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"MAX_EDGE_PER_VERTEX","type":"Float","runtime":true},{"name":"VERTEX_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]},{"name":"u_K","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_K2","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Center","type":"vec2","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Gravity","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterGravity","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Speed","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_MaxDisplace","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Clustering","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AttributeArray","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterCenters","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_Data","size":[1,1],"length":1},"needPingpong":true}}',e.clusterCode="\nimport { globalInvocationID } from 'g-webgpu';\nconst VERTEX_COUNT;\nconst CLUSTER_COUNT;\n@numthreads(1, 1, 1)\nclass CalcCenter {\n @in\n u_Data: vec4[];\n @in\n u_NodeAttributes: vec4[]; // [[clusterIdx, 0, 0, 0], ...]\n @in @out\n u_ClusterCenters: vec4[]; // [[cx, cy, nodeCount, clusterIdx], ...]\n @main\n compute() {\n const i = globalInvocationID.x;\n const center = this.u_ClusterCenters[i];\n let sumx = 0;\n let sumy = 0;\n let count = 0;\n for (let j = 0; j < VERTEX_COUNT; j++) {\n const attributes = this.u_NodeAttributes[j];\n const clusterIdx = int(attributes[0]);\n const vertex = this.u_Data[j];\n if (clusterIdx == i) {\n sumx += vertex.x;\n sumy += vertex.y;\n count += 1;\n }\n }\n this.u_ClusterCenters[i] = [\n sumx / count,\n sumy / count,\n count,\n i\n ];\n }\n}\n",e.clusterBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n#define CLUSTER_COUNT __DefineValuePlaceholder__CLUSTER_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform sampler2D u_NodeAttributes;\\nuniform vec2 u_NodeAttributesSize;\\nvec4 getDatau_NodeAttributes(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributes, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributes(float address1D) {\\n return getDatau_NodeAttributes(addrTranslation_1Dto2D(address1D, u_NodeAttributesSize));\\n}\\nvec4 getDatau_NodeAttributes(int address1D) {\\n return getDatau_NodeAttributes(float(address1D));\\n}\\nuniform sampler2D u_ClusterCenters;\\nuniform vec2 u_ClusterCentersSize;\\nvec4 getDatau_ClusterCenters(vec2 address2D) {\\n return vec4(texture2D(u_ClusterCenters, address2D).rgba);\\n}\\nvec4 getDatau_ClusterCenters(float address1D) {\\n return getDatau_ClusterCenters(addrTranslation_1Dto2D(address1D, u_ClusterCentersSize));\\n}\\nvec4 getDatau_ClusterCenters(int address1D) {\\n return getDatau_ClusterCenters(float(address1D));\\n}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 center = getDatau_ClusterCenters(i);\\nfloat sumx = 0.0;\\nfloat sumy = 0.0;\\nfloat count = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {vec4 attributes = getDatau_NodeAttributes(j);\\nint clusterIdx = int(attributes.x);\\nvec4 vertex = getDatau_Data(j);\\nif (clusterIdx == i) {sumx += vertex.x;\\nsumy += vertex.y;\\ncount += 1.0;}}\\ngl_FragColor = vec4(vec4(sumx / count, sumy / count, count, i));if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"VERTEX_COUNT","type":"Float","runtime":true},{"name":"CLUSTER_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributes","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterCenters","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_ClusterCenters","size":[1,1],"length":1},"needPingpong":true}}'},62121:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.aveMovementBundle=e.aveMovementCode=e.gForceBundle=e.gForceCode=void 0,e.gForceCode="\nimport { globalInvocationID } from 'g-webgpu';\n\nconst MAX_EDGE_PER_VERTEX;\nconst VERTEX_COUNT;\nconst SHIFT_20 = 1048576;\n\n@numthreads(1, 1, 1)\nclass GGForce {\n @in @out\n u_Data: vec4[];\n\n @in\n u_damping: float;\n \n @in\n u_maxSpeed: float;\n\n @in\n u_minMovement: float;\n\n @in\n u_AveMovement: vec4[];\n\n @in\n u_coulombDisScale: float;\n\n @in\n u_factor: float;\n\n @in\n u_NodeAttributeArray1: vec4[];\n\n @in\n u_NodeAttributeArray2: vec4[];\n\n @in\n u_interval: float;\n\n unpack_float(packedValue: float): ivec2 {\n const packedIntValue = int(packedValue);\n const v0 = packedIntValue / SHIFT_20;\n return [v0, packedIntValue - v0 * SHIFT_20];\n }\n\n calcRepulsive(i: int, currentNode: vec4): vec2 {\n let ax = 0, ay = 0;\n for (let j: int = 0; j < VERTEX_COUNT; j++) {\n if (i != j) {\n const nextNode = this.u_Data[j];\n const vx = currentNode[0] - nextNode[0];\n const vy = currentNode[1] - nextNode[1];\n const dist = sqrt(vx * vx + vy * vy) + 0.01;\n const n_dist = (dist + 0.1) * this.u_coulombDisScale;\n const direx = vx / dist;\n const direy = vy / dist;\n const attributesi = this.u_NodeAttributeArray1[i];\n const attributesj = this.u_NodeAttributeArray1[j];\n const massi = attributesi[0];\n const nodeStrengthi = attributesi[2];\n const nodeStrengthj = attributesj[2];\n const nodeStrength = (nodeStrengthi + nodeStrengthj) / 2;\n // const param = nodeStrength * this.u_factor / (n_dist * n_dist * massi);\n const param = nodeStrength * this.u_factor / (n_dist * n_dist);\n ax += direx * param;\n ay += direy * param;\n }\n }\n return [ax, ay];\n }\n\n calcGravity(i: int, currentNode: vec4, attributes2: vec4): vec2 {\n // note: attributes2 = [centerX, centerY, gravity, 0]\n\n const vx = currentNode[0] - attributes2[0];\n const vy = currentNode[1] - attributes2[1];\n \n const ax = vx * attributes2[2];\n const ay = vy * attributes2[2];\n \n return [ax, ay];\n }\n\n calcAttractive(i: int, currentNode: vec4, attributes1: vec4): vec2 {\n // note: attributes1 = [mass, degree, nodeSterngth, 0]\n\n const mass = attributes1[0];\n let ax = 0, ay = 0;\n // const arr_offset = int(floor(currentNode[2] + 0.5));\n // const length = int(floor(currentNode[3] + 0.5));\n\n const compressed = this.unpack_float(currentNode[2]);\n const length = compressed[0];\n const arr_offset = compressed[1];\n\n const node_buffer: vec4;\n for (let p: int = 0; p < MAX_EDGE_PER_VERTEX; p++) {\n if (p >= length) break;\n const arr_idx = arr_offset + 4 * p; // i 节点的第 p 条边开始的小格子位置\n const buf_offset = arr_idx - arr_idx / 4 * 4;\n if (p == 0 || buf_offset == 0) {\n node_buffer = this.u_Data[int(arr_idx / 4)]; // 大格子,大格子位置=小个子位置 / 4,\n }\n\n let float_j: float = node_buffer[0];\n\n const nextNode = this.u_Data[int(float_j)];\n const vx = nextNode[0] - currentNode[0];\n const vy = nextNode[1] - currentNode[1];\n const dist = sqrt(vx * vx + vy * vy) + 0.01;\n const direx = vx / dist;\n const direy = vy / dist;\n const edgeLength = node_buffer[1];\n const edgeStrength = node_buffer[2];\n const diff: float = edgeLength - dist;//edgeLength\n // const param = diff * this.u_stiffness / mass; //\n const param = diff * edgeStrength / mass; // \n ax -= direx * param;\n ay -= direy * param;\n }\n return [ax, ay];\n }\n\n @main\n compute() {\n const i = globalInvocationID.x;\n const currentNode = this.u_Data[i];\n const movement = u_AveMovement[0];\n let ax = 0, ay = 0;\n\n if (i >= VERTEX_COUNT || movement.x < u_minMovement) {\n this.u_Data[i] = currentNode;\n return;\n }\n\n // 每个节点属性占两个数组中各一格\n // [mass, degree, nodeStrength, fx]\n const nodeAttributes1 = this.u_NodeAttributeArray1[i];\n // [centerX, centerY, centerGravity, fy]\n const nodeAttributes2 = this.u_NodeAttributeArray2[i];\n\n // repulsive\n const repulsive = this.calcRepulsive(i, currentNode);\n ax += repulsive[0];\n ay += repulsive[1];\n\n // attractive\n const attractive = this.calcAttractive(i, currentNode, nodeAttributes1);\n ax += attractive[0];\n ay += attractive[1];\n\n // gravity\n const gravity = this.calcGravity(i, currentNode, nodeAttributes2);\n ax -= gravity[0];\n ay -= gravity[1];\n\n // speed\n const param = this.u_interval * this.u_damping;\n let vx = ax * param;\n let vy = ay * param;\n const vlength = sqrt(vx * vx + vy * vy) + 0.0001;\n if (vlength > this.u_maxSpeed) {\n const param2 = this.u_maxSpeed / vlength;\n vx = param2 * vx;\n vy = param2 * vy;\n }\n\n // move\n if (nodeAttributes1[3] != 0 && nodeAttributes2[3] != 0) {\n this.u_Data[i] = [\n nodeAttributes1[3],\n nodeAttributes2[3],\n currentNode[2],\n 0\n ];\n } else {\n const distx = vx * this.u_interval;\n const disty = vy * this.u_interval;\n const distLength = sqrt(distx * distx + disty * disty);\n this.u_Data[i] = [\n currentNode[0] + distx,\n currentNode[1] + disty,\n currentNode[2],\n distLength\n ];\n }\n \n // the avarage move distance\n // need to share memory\n \n }\n}\n",e.gForceBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define MAX_EDGE_PER_VERTEX __DefineValuePlaceholder__MAX_EDGE_PER_VERTEX\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n#define SHIFT_20 1048576.0\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_damping;\\nuniform float u_maxSpeed;\\nuniform float u_minMovement;\\nuniform sampler2D u_AveMovement;\\nuniform vec2 u_AveMovementSize;\\nvec4 getDatau_AveMovement(vec2 address2D) {\\n return vec4(texture2D(u_AveMovement, address2D).rgba);\\n}\\nvec4 getDatau_AveMovement(float address1D) {\\n return getDatau_AveMovement(addrTranslation_1Dto2D(address1D, u_AveMovementSize));\\n}\\nvec4 getDatau_AveMovement(int address1D) {\\n return getDatau_AveMovement(float(address1D));\\n}\\nuniform float u_coulombDisScale;\\nuniform float u_factor;\\nuniform sampler2D u_NodeAttributeArray1;\\nuniform vec2 u_NodeAttributeArray1Size;\\nvec4 getDatau_NodeAttributeArray1(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributeArray1, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributeArray1(float address1D) {\\n return getDatau_NodeAttributeArray1(addrTranslation_1Dto2D(address1D, u_NodeAttributeArray1Size));\\n}\\nvec4 getDatau_NodeAttributeArray1(int address1D) {\\n return getDatau_NodeAttributeArray1(float(address1D));\\n}\\nuniform sampler2D u_NodeAttributeArray2;\\nuniform vec2 u_NodeAttributeArray2Size;\\nvec4 getDatau_NodeAttributeArray2(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributeArray2, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributeArray2(float address1D) {\\n return getDatau_NodeAttributeArray2(addrTranslation_1Dto2D(address1D, u_NodeAttributeArray2Size));\\n}\\nvec4 getDatau_NodeAttributeArray2(int address1D) {\\n return getDatau_NodeAttributeArray2(float(address1D));\\n}\\nuniform float u_interval;\\nivec2 unpack_float(float packedValue) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint packedIntValue = int(packedValue);\\nint v0 = packedIntValue / int(SHIFT_20);\\nreturn ivec2(v0, packedIntValue - (v0 * int(SHIFT_20)));}\\nvec2 calcRepulsive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {if (i != j) {vec4 nextNode = getDatau_Data(j);\\nfloat vx = currentNode.x - nextNode.x;\\nfloat vy = currentNode.y - nextNode.y;\\nfloat dist = sqrt((vx * vx) + (vy * vy)) + 0.01;\\nfloat n_dist = (dist + 0.1) * u_coulombDisScale;\\nfloat direx = vx / dist;\\nfloat direy = vy / dist;\\nvec4 attributesi = getDatau_NodeAttributeArray1(i);\\nvec4 attributesj = getDatau_NodeAttributeArray1(j);\\nfloat massi = attributesi.x;\\nfloat nodeStrengthi = attributesi.z;\\nfloat nodeStrengthj = attributesj.z;\\nfloat nodeStrength = (nodeStrengthi + nodeStrengthj) / 2.0;\\nfloat param = (nodeStrength * u_factor) / (n_dist * n_dist);\\nax += direx * param;\\nay += direy * param;}}\\nreturn vec2(ax, ay);}\\nvec2 calcGravity(int i, vec4 currentNode, vec4 attributes2) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat vx = currentNode.x - attributes2.x;\\nfloat vy = currentNode.y - attributes2.y;\\nfloat ax = vx * attributes2.z;\\nfloat ay = vy * attributes2.z;\\nreturn vec2(ax, ay);}\\nvec2 calcAttractive(int i, vec4 currentNode, vec4 attributes1) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat mass = attributes1.x;\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nivec2 compressed = unpack_float(currentNode.z);\\nint length = compressed.x;\\nint arr_offset = compressed.y;\\nvec4 node_buffer;\\nfor (int p = 0; p < MAX_EDGE_PER_VERTEX; p++) {if (p >= length) {break;}\\nint arr_idx = arr_offset + (4 * p);\\nint buf_offset = arr_idx - ((arr_idx / 4) * 4);\\nif ((p == 0) || (buf_offset == 0)) {node_buffer = getDatau_Data(int(arr_idx / 4));}\\nfloat float_j = node_buffer.x;\\nvec4 nextNode = getDatau_Data(int(float_j));\\nfloat vx = nextNode.x - currentNode.x;\\nfloat vy = nextNode.y - currentNode.y;\\nfloat dist = sqrt((vx * vx) + (vy * vy)) + 0.01;\\nfloat direx = vx / dist;\\nfloat direy = vy / dist;\\nfloat edgeLength = node_buffer.y;\\nfloat edgeStrength = node_buffer.z;\\nfloat diff = edgeLength - dist;\\nfloat param = (diff * edgeStrength) / mass;\\nax -= direx * param;\\nay -= direy * param;}\\nreturn vec2(ax, ay);}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 currentNode = getDatau_Data(i);\\nvec4 movement = getDatau_AveMovement(0.0);\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nif ((i >= VERTEX_COUNT) || (movement.x < u_minMovement)) {gl_FragColor = vec4(currentNode);\\nreturn ;}\\nvec4 nodeAttributes1 = getDatau_NodeAttributeArray1(i);\\nvec4 nodeAttributes2 = getDatau_NodeAttributeArray2(i);\\nvec2 repulsive = calcRepulsive(i, currentNode);\\nax += repulsive.x;\\nay += repulsive.y;\\nvec2 attractive = calcAttractive(i, currentNode, nodeAttributes1);\\nax += attractive.x;\\nay += attractive.y;\\nvec2 gravity = calcGravity(i, currentNode, nodeAttributes2);\\nax -= gravity.x;\\nay -= gravity.y;\\nfloat param = u_interval * u_damping;\\nfloat vx = ax * param;\\nfloat vy = ay * param;\\nfloat vlength = sqrt((vx * vx) + (vy * vy)) + 0.0001;\\nif (vlength > u_maxSpeed) {float param2 = u_maxSpeed / vlength;\\nvx = param2 * vx;\\nvy = param2 * vy;}\\nif ((nodeAttributes1.w != 0.0) && (nodeAttributes2.w != 0.0)) {gl_FragColor = vec4(vec4(nodeAttributes1.w, nodeAttributes2.w, currentNode.z, 0.0));}else {float distx = vx * u_interval;\\nfloat disty = vy * u_interval;\\nfloat distLength = sqrt((distx * distx) + (disty * disty));\\ngl_FragColor = vec4(vec4(currentNode.x + distx, currentNode.y + disty, currentNode.z, distLength));}if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"MAX_EDGE_PER_VERTEX","type":"Float","runtime":true},{"name":"VERTEX_COUNT","type":"Float","runtime":true},{"name":"SHIFT_20","type":"Float","value":1048576,"runtime":false}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]},{"name":"u_damping","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_maxSpeed","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_minMovement","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AveMovement","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_coulombDisScale","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_factor","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributeArray1","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributeArray2","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_interval","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_Data","size":[1,1],"length":1},"needPingpong":true}}',e.aveMovementCode="\nconst VERTEX_COUNT;\n@numthreads(1, 1, 1)\nclass CalcAveMovement {\n @in\n u_Data: vec4[];\n @in\n u_iter: float;\n @in @out\n u_AveMovement: vec4[];\n @main\n compute() {\n let movement = 0;\n for (let j: int = 0; j < VERTEX_COUNT; j++) {\n const vertex = this.u_Data[j];\n movement += vertex[3];\n }\n movement = movement / float(VERTEX_COUNT);\n this.u_AveMovement[0] = [movement, 0, 0, 0];\n }\n}\n",e.aveMovementBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_iter;\\nuniform sampler2D u_AveMovement;\\nuniform vec2 u_AveMovementSize;\\nvec4 getDatau_AveMovement(vec2 address2D) {\\n return vec4(texture2D(u_AveMovement, address2D).rgba);\\n}\\nvec4 getDatau_AveMovement(float address1D) {\\n return getDatau_AveMovement(addrTranslation_1Dto2D(address1D, u_AveMovementSize));\\n}\\nvec4 getDatau_AveMovement(int address1D) {\\n return getDatau_AveMovement(float(address1D));\\n}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat movement = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {vec4 vertex = getDatau_Data(j);\\nmovement += vertex.w;}\\nmovement = movement / float(VERTEX_COUNT);\\ngl_FragColor = vec4(vec4(movement, 0.0, 0.0, 0.0));if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"VERTEX_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_iter","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AveMovement","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_AveMovement","size":[1,1],"length":1},"needPingpong":true}}'},36010:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.GridLayout=void 0;var o=n(81422),a=function(t){function e(e){var n=t.call(this)||this;return n.begin=[0,0],n.preventOverlap=!0,n.preventOverlapPadding=10,n.condense=!1,n.sortBy="degree",n.nodes=[],n.edges=[],n.width=300,n.height=300,n.row=0,n.col=0,n.cellWidth=0,n.cellHeight=0,n.cellUsed={},n.id2manPos={},n.onLayoutEnd=function(){},n.updateCfg(e),n}return i(e,t),e.prototype.getDefaultCfg=function(){return{begin:[0,0],preventOverlap:!0,preventOverlapPadding:10,condense:!1,rows:void 0,cols:void 0,position:void 0,sortBy:"degree",nodeSize:30}},e.prototype.execute=function(){var t=this,e=t.nodes,n=t.edges,r=t.begin,i=e.length;if(0===i)return t.onLayoutEnd&&t.onLayoutEnd(),{nodes:e,edges:n};if(1===i)return e[0].x=r[0],e[0].y=r[1],t.onLayoutEnd&&t.onLayoutEnd(),{nodes:e,edges:n};var a=t.sortBy,s=t.width,u=t.height,l=t.condense,c=t.preventOverlapPadding,h=t.preventOverlap,d=t.nodeSpacing,f=t.nodeSize,p=[];e.forEach((function(t){p.push(t)}));var m={};if(p.forEach((function(t,e){m[t.id]=e})),("degree"===a||!(0,o.isString)(a)||void 0===p[0][a])&&(a="degree",(0,o.isNaN)(e[0].degree))){var g=(0,o.getDegree)(p.length,m,n);p.forEach((function(t,e){t.degree=g[e].all}))}p.sort((function(t,e){return e[a]-t[a]})),s||"undefined"==typeof window||(s=window.innerWidth),u||"undefined"==typeof window||(u=window.innerHeight);var v=t.rows,y=null!=t.cols?t.cols:t.columns;if(t.cells=i,null!=v&&null!=y?(t.rows=v,t.cols=y):null!=v&&null==y?(t.rows=v,t.cols=Math.ceil(t.cells/t.rows)):null==v&&null!=y?(t.cols=y,t.rows=Math.ceil(t.cells/t.cols)):(t.splits=Math.sqrt(t.cells*t.height/t.width),t.rows=Math.round(t.splits),t.cols=Math.round(t.width/t.height*t.splits)),t.rows=Math.max(t.rows,1),t.cols=Math.max(t.cols,1),t.cols*t.rows>t.cells)((x=t.small())-1)*(b=t.large())>=t.cells?t.small(x-1):(b-1)*x>=t.cells&&t.large(b-1);else for(;t.cols*t.rows=t.cells?t.large(b+1):t.small(x+1)}if(t.cellWidth=s/t.cols,t.cellHeight=u/t.rows,l&&(t.cellWidth=0,t.cellHeight=0),h||d){var w=(0,o.getFuncByUnknownType)(10,d),_=(0,o.getFuncByUnknownType)(30,f,!1);p.forEach((function(e){e.x&&e.y||(e.x=0,e.y=0);var n,r,i=_(e)||30;(0,o.isArray)(i)?(n=i[0],r=i[1]):(n=i,r=i);var a=void 0!==w?w(e):c,s=n+a,u=r+a;t.cellWidth=Math.max(t.cellWidth,s),t.cellHeight=Math.max(t.cellHeight,u)}))}t.cellUsed={},t.row=0,t.col=0,t.id2manPos={};for(var S=0;S=e&&(t.col=0,t.row++)},e.prototype.getPos=function(t){var e,n,r=this,i=r.begin,o=r.cellWidth,a=r.cellHeight,s=r.id2manPos[t.id];if(s)e=s.col*o+o/2+i[0],n=s.row*a+a/2+i[1];else{for(;r.used(r.row,r.col);)r.moveToNextCell();e=r.col*o+o/2+i[0],n=r.row*a+a/2+i[1],r.use(r.row,r.col),r.moveToNextCell()}t.x=e,t.y=n},e.prototype.getType=function(){return"grid"},e}(n(46271).Base);e.GridLayout=a},28352:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.ERLayout=e.ForceAtlas2Layout=e.ComboCombinedLayout=e.ComboForceLayout=e.GForceGPULayout=e.FruchtermanGPULayout=e.FruchtermanLayout=e.MDSLayout=e.ConcentricLayout=e.RadialLayout=e.DagreCompoundLayout=e.DagreLayout=e.CircularLayout=e.ForceLayout=e.Force2Layout=e.GForceLayout=e.RandomLayout=e.GridLayout=e.Layouts=e.Layout=void 0;var o=n(36010);Object.defineProperty(e,"GridLayout",{enumerable:!0,get:function(){return o.GridLayout}});var a=n(68501);Object.defineProperty(e,"RandomLayout",{enumerable:!0,get:function(){return a.RandomLayout}});var s=n(70238);Object.defineProperty(e,"GForceLayout",{enumerable:!0,get:function(){return s.GForceLayout}});var u=n(1782);Object.defineProperty(e,"Force2Layout",{enumerable:!0,get:function(){return u.Force2Layout}});var l=n(24964);Object.defineProperty(e,"ForceLayout",{enumerable:!0,get:function(){return l.ForceLayout}});var c=n(33455);Object.defineProperty(e,"CircularLayout",{enumerable:!0,get:function(){return c.CircularLayout}});var h=n(79829);Object.defineProperty(e,"DagreLayout",{enumerable:!0,get:function(){return h.DagreLayout}});var d=n(69524);Object.defineProperty(e,"DagreCompoundLayout",{enumerable:!0,get:function(){return d.DagreCompoundLayout}});var f=n(13570);Object.defineProperty(e,"RadialLayout",{enumerable:!0,get:function(){return f.RadialLayout}});var p=n(58006);Object.defineProperty(e,"ConcentricLayout",{enumerable:!0,get:function(){return p.ConcentricLayout}});var m=n(7982);Object.defineProperty(e,"MDSLayout",{enumerable:!0,get:function(){return m.MDSLayout}});var g=n(361);Object.defineProperty(e,"FruchtermanLayout",{enumerable:!0,get:function(){return g.FruchtermanLayout}});var v=n(25444);Object.defineProperty(e,"FruchtermanGPULayout",{enumerable:!0,get:function(){return v.FruchtermanGPULayout}});var y=n(62121);Object.defineProperty(e,"GForceGPULayout",{enumerable:!0,get:function(){return y.GForceGPULayout}});var b=n(42335);Object.defineProperty(e,"ComboForceLayout",{enumerable:!0,get:function(){return b.ComboForceLayout}});var x=n(4193);Object.defineProperty(e,"ComboCombinedLayout",{enumerable:!0,get:function(){return x.ComboCombinedLayout}});var w=n(48991);Object.defineProperty(e,"ForceAtlas2Layout",{enumerable:!0,get:function(){return w.ForceAtlas2Layout}});var _=n(69474);Object.defineProperty(e,"ERLayout",{enumerable:!0,get:function(){return _.ERLayout}});var S=n(52316);Object.defineProperty(e,"Layout",{enumerable:!0,get:function(){return S.Layout}}),Object.defineProperty(e,"Layouts",{enumerable:!0,get:function(){return S.Layouts}}),i(n(82149),e)},52316:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Layouts=e.Layout=void 0;var r=n(38119),i=n(36010),o=n(68501),a=n(1782),s=n(70238),u=n(24964),l=n(33455),c=n(79829),h=n(13570),d=n(58006),f=n(7982),p=n(361),m=n(25444),g=n(62121),v=n(42335),y=n(4193),b=n(48991),x=n(69474),w=n(69524),_=n(81422),S=function(){function t(t){var e=(0,r.getLayoutByName)(t.type);this.layoutInstance=new e(t)}return t.prototype.layout=function(t){return this.layoutInstance.layout(t)},t.prototype.updateCfg=function(t){this.layoutInstance.updateCfg(t)},t.prototype.init=function(t){this.correctLayers(t.nodes),this.layoutInstance.init(t)},t.prototype.correctLayers=function(t){if(null==t?void 0:t.length){var e=1/0,n=[];if(t.forEach((function(t){(0,_.isString)(t.layer)&&(t.layer=parseInt(t.layer,10)),void 0===t.layer||isNaN(t.layer)||(n.push(t),t.layer{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(7856),i=function(){function t(t){this.distances=t.distances,this.dimension=t.dimension||2,this.linkDistance=t.linkDistance}return t.prototype.layout=function(){var t=this,e=t.dimension,n=t.distances,i=t.linkDistance;try{var o=r.Matrix.mul(r.Matrix.pow(n,2),-.5),a=o.mean("row"),s=o.mean("column"),u=o.mean();o.add(u).subRowVector(a).subColumnVector(s);var l=new r.SingularValueDecomposition(o),c=r.Matrix.sqrt(l.diagonalMatrix).diagonal();return l.leftSingularVectors.toJSON().map((function(t){return r.Matrix.mul([t],[c]).toJSON()[0].splice(0,e)}))}catch(t){for(var h=[],d=0;dr[0]?r[0]:b-r[0],_=x-r[1]>r[1]?r[1]:x-r[1];0===w&&(w=b/2),0===_&&(_=x/2);var S=_>w?w:_,E=Math.max.apply(Math,y),A=[];y.forEach((function(e,n){t.unitRadius||(t.unitRadius=S/E),A[n]=e*t.unitRadius})),t.radii=A;var M=t.eIdealDisMatrix();t.eIdealDistances=M;var C=function(t){for(var e=t.length,n=t[0].length,r=[],i=0;iN[1]?N[0]:N[1])+O(t)}:function(t){return N+O(t)}:function(t){return t.size?(0,a.isArray)(t.size)?(t.size[0]>t.size[1]?t.size[0]:t.size[1])+O(t):(0,a.isObject)(t.size)?(t.size.width>t.size.height?t.size.width:t.size.height)+O(t):t.size+O(t):10+O(t)};var R={nodes:e,nodeSizeFunc:k,adjMatrix:m,positions:T,radii:A,height:x,width:b,strictRadial:P,focusID:p,iterations:t.maxPreventOverlapIteration||200,k:T.length/4.5},D=new l.default(R);T=D.layout()}return T.forEach((function(t,n){e[n].x=t[0]+r[0],e[n].y=t[1]+r[1]})),t.onLayoutEnd&&t.onLayoutEnd(),{nodes:e,edges:n}}t.onLayoutEnd&&t.onLayoutEnd()},e.prototype.run=function(){for(var t=this,e=t.maxIteration,n=t.positions||[],r=t.weights||[],i=t.eIdealDistances||[],o=t.radii||[],a=0;a<=e;a++){var s=a/e;t.oneIteration(s,n,o,i,r)}},e.prototype.oneIteration=function(t,e,n,r,i){var o=1-t,a=this.focusIndex;e.forEach((function(s,u){var l=c(s,[0,0]),h=0===l?0:1/l;if(u!==a){var d=0,f=0,p=0;e.forEach((function(t,e){if(u!==e){var n=c(s,t),o=0===n?0:1/n,a=r[e][u];p+=i[u][e],d+=i[u][e]*(t[0]+a*(s[0]-t[0])*o),f+=i[u][e]*(t[1]+a*(s[1]-t[1])*o)}}));var m=0===n[u]?0:1/n[u];p*=o,p+=t*m*m,d*=o,d+=t*m*s[0]*h,s[0]=d/p,f*=o,f+=t*m*s[1]*h,s[1]=f/p}}))},e.prototype.eIdealDisMatrix=function(){var t=this,e=t.nodes;if(!e)return[];var n=t.distances,r=t.linkDistance,i=t.radii||[],o=t.unitRadius||50,s=[];return n&&n.forEach((function(n,u){var l=[];n.forEach((function(n,s){if(u===s)l.push(0);else if(i[u]===i[s])if("data"===t.sortBy)l.push(n*(Math.abs(u-s)*t.sortStrength)/(i[u]/o));else if(t.sortBy){var c=e[u][t.sortBy]||0,h=e[s][t.sortBy]||0;(0,a.isString)(c)&&(c=c.charCodeAt(0)),(0,a.isString)(h)&&(h=h.charCodeAt(0)),l.push(n*(Math.abs(c-h)*t.sortStrength)/(i[u]/o))}else l.push(n*r/(i[u]/o));else{var d=(r+o)/2;l.push(n*d)}})),s.push(l)})),s},e.prototype.handleInfinity=function(t,e,n){for(var r=t.length,i=0;in?t[e][r]:n);return n},e.prototype.getType=function(){return"radial"},e}(s.Base);e.RadialLayout=h},15470:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.disp=[],this.positions=t.positions,this.adjMatrix=t.adjMatrix,this.focusID=t.focusID,this.radii=t.radii,this.iterations=t.iterations||10,this.height=t.height||10,this.width=t.width||10,this.speed=t.speed||100,this.gravity=t.gravity||10,this.nodeSizeFunc=t.nodeSizeFunc,this.k=t.k||5,this.strictRadial=t.strictRadial,this.nodes=t.nodes}return t.prototype.layout=function(){var t=this,e=t.positions,n=[],r=t.iterations,i=t.width/10;t.maxDisplace=i,t.disp=n;for(var o=0;ou?1:-1;l=.01*d,c=.01*d}if(hMath.PI/2&&(c-=Math.PI/2,s*=-1,u*=-1);var h=Math.cos(c)*l;t.x=s*h,t.y=u*h}));var s=t.radii;e.forEach((function(t,u){if(u!==o){var l=Math.sqrt(n[u].x*n[u].x+n[u].y*n[u].y);if(l>0&&u!==o){var c=Math.min(a*(r/800),l);if(t[0]+=n[u].x/l*c,t[1]+=n[u].y/l*c,i){var h=t[0]-e[o][0],d=t[1]-e[o][1],f=Math.sqrt(h*h+d*d);h=h/f*s[u],d=d/f*s[u],t[0]=e[o][0]+h,t[1]=e[o][1]+d}}}}))},t}();e.default=n},68501:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.RandomLayout=void 0;var o=function(t){function e(e){var n=t.call(this)||this;return n.center=[0,0],n.width=300,n.height=300,n.nodes=[],n.edges=[],n.onLayoutEnd=function(){},n.updateCfg(e),n}return i(e,t),e.prototype.getDefaultCfg=function(){return{center:[0,0],width:300,height:300}},e.prototype.execute=function(){var t=this,e=t.nodes,n=t.center;return t.width||"undefined"==typeof window||(t.width=window.innerWidth),t.height||"undefined"==typeof window||(t.height=window.innerHeight),e&&e.forEach((function(e){e.x=.9*(Math.random()-.5)*t.width+n[0],e.y=.9*(Math.random()-.5)*t.height+n[1]})),t.onLayoutEnd&&t.onLayoutEnd(),{nodes:e,edges:this.edges}},e.prototype.getType=function(){return"random"},e}(n(46271).Base);e.RandomLayout=o},82149:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},38119:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.getLayoutByName=e.unRegisterLayout=e.registerLayout=void 0;var o=n(46271),a=n(81422),s=new Map;e.registerLayout=function(t,e){if(s.get(t)&&console.warn("The layout with the name ".concat(t," exists already, it will be overridden")),(0,a.isObject)(e)){var n=function(t){function n(n){var r,i,o=r=t.call(this)||this,a={},s=Object.assign({},o.getDefaultCfg(),(null===(i=e.getDefaultCfg)||void 0===i?void 0:i.call(e))||{});return Object.assign(a,s,e,n),Object.keys(a).forEach((function(t){var e=a[t];o[t]=e})),r}return i(n,t),n}(o.Base);s.set(t,n)}else s.set(t,e);return s.get(t)};e.unRegisterLayout=function(t){s.has(t)&&s.delete(t)};e.getLayoutByName=function(t){return s.has(t)?s.get(t):null}},86755:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isArray=void 0,e.isArray=Array.isArray},43380:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getFuncByUnknownType=e.getFunc=e.isFunction=void 0;var r=n(81422),i=n(19937);e.isFunction=function(t){return"function"==typeof t};e.getFunc=function(t,e,n){return n||((0,i.isNumber)(t)?function(){return t}:function(){return e})};e.getFuncByUnknownType=function(t,n,o){return void 0===o&&(o=!0),n||0===n?(0,e.isFunction)(n)?n:(0,i.isNumber)(n)?function(){return n}:(0,r.isArray)(n)?function(){if(o){var e=Math.max.apply(Math,n);return isNaN(e)?t:e}return n}:(0,r.isObject)(n)?function(){if(o){var e=Math.max(n.width,n.height);return isNaN(e)?t:e}return[n.width,n.height]}:function(){return t}:function(e){return e.size?(0,r.isArray)(e.size)?e.size[0]>e.size[1]?e.size[0]:e.size[1]:(0,r.isObject)(e.size)?e.size.width>e.size.height?e.size.width:e.size.height:e.size:t}}},48196:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.arrayToTextureData=e.attributesToTextureData=e.buildTextureDataWithTwoEdgeAttr=e.buildTextureData=e.proccessToFunc=void 0;var r=n(81422),i=n(91922);e.proccessToFunc=function(t,e){return t?(0,r.isNumber)(t)?function(){return t}:t:function(){return e||1}};e.buildTextureData=function(t,e){var n=[],r=[],o={},a=0;for(a=0;a{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCoreNodeAndRelativeLeafNodes=e.getAvgNodePosition=e.getLayoutBBox=e.traverseTreeUp=e.scaleMatrix=e.getAdjMatrix=e.floydWarshall=e.getDegreeMap=e.getDegree=e.getEdgeTerminal=void 0;var r=n(86755),i=n(19937),o=n(15747);e.getEdgeTerminal=function(t,e){var n=t[e];return(0,o.isObject)(n)?n.cell:n};e.getDegree=function(t,n,r){for(var i=[],o=0;oe[r][o]+e[o][i]&&(e[r][i]=e[r][o]+e[o][i]);return e};e.getAdjMatrix=function(t,n){var r=t.nodes,i=t.edges,o=[],a={};if(!r)throw new Error("invalid nodes data!");return r&&r.forEach((function(t,e){a[t.id]=e;o.push([])})),null==i||i.forEach((function(t){var r=(0,e.getEdgeTerminal)(t,"source"),i=(0,e.getEdgeTerminal)(t,"target"),s=a[r],u=a[i];void 0!==s&&void 0!==u&&(o[s][u]=1,n||(o[u][s]=1))})),o};e.scaleMatrix=function(t,e){var n=[];return t.forEach((function(t){var r=[];t.forEach((function(t){r.push(t*e)})),n.push(r)})),n};var a=function(t,e){if(t&&t.children)for(var n=t.children.length-1;n>=0;n--)if(!a(t.children[n],e))return;return!!e(t)};e.traverseTreeUp=function(t,e){"function"==typeof e&&a(t,e)};e.getLayoutBBox=function(t){var e=1/0,n=1/0,o=-1/0,a=-1/0;return t.forEach((function(t){var s=t.size;(0,r.isArray)(s)?1===s.length&&(s=[s[0],s[0]]):(0,i.isNumber)(s)?s=[s,s]:(void 0===s||isNaN(s))&&(s=[30,30]);var u=[s[0]/2,s[1]/2],l=t.x-u[0],c=t.x+u[0],h=t.y-u[1],d=t.y+u[1];e>l&&(e=l),n>h&&(n=h),o{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toNumber=e.isNaN=e.isNumber=void 0;e.isNumber=function(t){return"number"==typeof t};e.isNaN=function(t){return Number.isNaN(Number(t))};e.toNumber=function(t){var n=parseFloat(t);return(0,e.isNaN)(n)?t:n}},15747:function(t,e){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.camelize=e.isString=void 0;e.isString=function(t){return"string"==typeof t};var n,r,i=/-(\w)/g;e.camelize=(n=function(t){return t.replace(i,(function(t,e){return e?e.toUpperCase():""}))},r=Object.create(null),function(t){return r[t]||(r[t]=n(t))})},79987:(t,e,n)=>{"use strict";function r(t){return[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16)]}function i(t){var e=Math.round(t).toString(16);return 1===e.length?"0"+e:e}function o(t){return"#"+i(t[0])+i(t[1])+i(t[2])}n.r(e),n.d(e,{Cache:()=>Vn,angleTo:()=>E,arcToCubic:()=>Y,assign:()=>dn,augment:()=>fn,clamp:()=>be,clearAnimationFrame:()=>cn,clone:()=>mn,clonePath:()=>J,contains:()=>St,createDOM:()=>Qn,debounce:()=>gn,deepMix:()=>bn,difference:()=>At,direction:()=>S,distanceSquareRoot:()=>et,each:()=>Nt,endsWith:()=>se,equalizeSegments:()=>wt,every:()=>ue,extend:()=>xn,filter:()=>Et,find:()=>Dt,findIndex:()=>zt,firstValue:()=>Ft,fixedBase:()=>xe,flatten:()=>Bt,flattenDeep:()=>jt,forIn:()=>Fe,get:()=>In,getDrawDirection:()=>gt,getPathArea:()=>mt,getPathBBox:()=>ht,getPathBBoxTotalLength:()=>ft,getPointAtLength:()=>vt,getRange:()=>Gt,getRotatedCurve:()=>pt,getTotalLength:()=>dt,getType:()=>Ke,getWrapBehavior:()=>pe,gradient:()=>d,group:()=>fe,groupBy:()=>he,groupToMap:()=>de,has:()=>Be,hasKey:()=>Ue,hasValue:()=>Ve,head:()=>ie,identity:()=>Un,includes:()=>St,indexOf:()=>wn,isArguments:()=>Ze,isArray:()=>kt,isArrayLike:()=>_t,isBoolean:()=>Qe,isDate:()=>Je,isDecimal:()=>_e,isElement:()=>un,isEmpty:()=>Sn,isEqual:()=>An,isEqualWith:()=>Mn,isError:()=>tn,isEven:()=>Se,isFinite:()=>en,isFunction:()=>a,isInteger:()=>Ee,isMatch:()=>Ot,isNegative:()=>Ae,isNil:()=>Mt,isNull:()=>nn,isNumber:()=>we,isNumberEqual:()=>Ce,isObject:()=>It,isObjectLike:()=>Lt,isOdd:()=>Te,isPlainObject:()=>Rt,isPointInPolygon:()=>Xn,isPointInStroke:()=>bt,isPolygonsIntersect:()=>Zn,isPositive:()=>ke,isPrototype:()=>on,isRegExp:()=>an,isString:()=>Jt,isType:()=>Tt,isUndefined:()=>sn,keys:()=>Pt,last:()=>oe,lowerCase:()=>Ge,lowerFirst:()=>We,map:()=>Cn,mapValues:()=>kn,max:()=>Vt,maxBy:()=>Ie,memoize:()=>s,min:()=>Ht,minBy:()=>Ne,mix:()=>dn,mod:()=>Pe,modifyCSS:()=>Jn,noop:()=>Bn,normalizePath:()=>W,number2color:()=>ve,omit:()=>Ln,parseRadius:()=>ye,path2Absolute:()=>H,path2Array:()=>Q,path2Curve:()=>Z,path2String:()=>M,pick:()=>On,pull:()=>qt,pullAt:()=>Kt,reduce:()=>Zt,remove:()=>Qt,requestAnimationFrame:()=>ln,reverseCurve:()=>tt,rgb2arr:()=>r,set:()=>Nn,size:()=>jn,some:()=>le,sortBy:()=>te,startsWith:()=>ae,substitute:()=>Xe,throttle:()=>Rn,toArray:()=>Dn,toCSSGradient:()=>g,toDegree:()=>Le,toInteger:()=>Re,toRGB:()=>c,toRadian:()=>ze,toString:()=>He,transform:()=>w,union:()=>ne,uniq:()=>ee,uniqueId:()=>Fn,upperCase:()=>Ye,upperFirst:()=>qe,values:()=>je,valuesOfKey:()=>re,vertical:()=>A,wrapBehavior:()=>me});const a=function(t){return"function"==typeof t};const s=function(t,e,n){if(void 0===n&&(n=128),!a(t))throw new TypeError("Expected a function");var r=function(){for(var n=[],i=0;ii&&(r=n,a(1),++e),n[t]=o}function a(t){e=0,n=Object.create(null),t||(r=Object.create(null))}return a(),{clear:a,has:function(t){return void 0!==n[t]||void 0!==r[t]},get:function(t){var e=n[t];return void 0!==e?e:void 0!==(e=r[t])?(o(t,e),e):void 0},set:function(t,e){void 0!==n[t]?n[t]=e:o(t,e)}}}(n),r};var u,l=/rgba?\(([\s.,0-9]+)\)/;var c=s((function(t){if("#"===t[0]&&7===t.length)return t;var e;u||((e=document.createElement("i")).title="Web Colour Picker",e.style.display="none",document.body.appendChild(e),u=e),u.style.color=t;var n=document.defaultView.getComputedStyle(u,"").getPropertyValue("color");return n=o(l.exec(n)[1].split(/\s*,\s*/).map((function(t){return Number(t)})))}),(function(t){return t}),256);function h(t,e,n,r){return t[r]+(e[r]-t[r])*n}function d(t){var e=("string"==typeof t?t.split("-"):t).map((function(t){return r(-1===t.indexOf("#")?c(t):t)}));return function(t){return function(t,e){var n=isNaN(Number(e))||e<0?0:e>1?1:Number(e),r=t.length-1,i=Math.floor(r*n),a=r*n-i,s=t[i],u=i===r?s:t[i+1];return o([h(s,u,a,0),h(s,u,a,1),h(s,u,a,2)])}(e,t)}}var f=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,p=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,m=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function g(t){if(/^[r,R,L,l]{1}[\s]*\(/.test(t)){var e,n=void 0;if("l"===t[0]){var r=+(i=f.exec(t))[1]+90;n=i[2],e="linear-gradient("+r+"deg, "}else if("r"===t[0]){var i;e="radial-gradient(",n=(i=p.exec(t))[4]}var o=n.match(m);return o.forEach((function(t,n){var r=t.split(":");e+=r[1]+" "+100*Number(r[0])+"%",n!==o.length-1&&(e+=", ")})),e+=")"}return t}var v=n(91409);function y(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return v.fromRotation(r,n),v.multiply(t,r,e)}function b(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return v.fromScaling(r,n),v.multiply(t,r,e)}function x(t,e,n){return v.multiply(t,n,e)}function w(t,e){for(var n,r,i,o,a=t?[].concat(t):[1,0,0,0,1,0,0,0,1],s=0,u=e.length;s=0;return n?i?2*Math.PI-r:r:i?r:2*Math.PI-r}function A(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}function M(t,e){return void 0===e&&(e="off"),function(t,e){if("off"===e)return[].concat(t);var n="number"==typeof e&&e>=1?Math.pow(10,e):1;return t.map((function(t){var r=t.slice(1).map(Number).map((function(t){return e?Math.round(t*n)/n:Math.round(t)}));return[t[0]].concat(r)}))}(t,e).map((function(t){return t[0]+t.slice(1).join(" ")})).join("")}var C=n(31635),T={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null};function k(t,e,n){if(t[n].length>7){t[n].shift();for(var r=t[n],i=n;r.length;)e[n]="A",t.splice(i+=1,0,["C"].concat(r.splice(0,6)));t.splice(n,1)}}var I={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0};function N(t){return Array.isArray(t)&&t.every((function(t){var e=t[0].toLowerCase();return I[e]===t.length-1&&"achlmqstvz".includes(e)}))}function P(t){return N(t)&&t.every((function(t){var e=t[0];return e===e.toUpperCase()}))}function O(t){return P(t)&&t.every((function(t){var e=t[0];return"ACLMQZ".includes(e)}))}function L(t){for(var e=t.pathValue[t.segmentStart],n=e.toLowerCase(),r=t.data;r.length>=I[n]&&("m"===n&&r.length>2?(t.segments.push([e].concat(r.splice(0,2))),n="l",e="m"===e?"l":"L"):t.segments.push([e].concat(r.splice(0,I[n]))),I[n]););}function R(t){var e=t.index,n=t.pathValue,r=n.charCodeAt(e);return 48===r?(t.param=0,void(t.index+=1)):49===r?(t.param=1,void(t.index+=1)):void(t.err='[path-util]: invalid Arc flag "'+n[e]+'", expecting 0 or 1 at index '+e)}function D(t){return t>=48&&t<=57||43===t||45===t||46===t}function z(t){return t>=48&&t<=57}function F(t){var e,n=t.max,r=t.pathValue,i=t.index,o=i,a=!1,s=!1,u=!1,l=!1;if(o>=n)t.err="[path-util]: Invalid path value at index "+o+', "pathValue" is missing param';else if(43!==(e=r.charCodeAt(o))&&45!==e||(o+=1,e=r.charCodeAt(o)),z(e)||46===e){if(46!==e){if(a=48===e,o+=1,e=r.charCodeAt(o),a&&o=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].includes(e));)t.index+=1}function U(t){var e=t.max,n=t.pathValue,r=t.index,i=n.charCodeAt(r),o=I[n[r].toLowerCase()];if(t.segmentStart=r,function(t){switch(32|t){case 109:case 122:case 108:case 104:case 118:case 99:case 115:case 113:case 116:case 97:return!0;default:return!1}}(i))if(t.index+=1,B(t),t.data=[],o){for(;;){for(var a=o;a>0;a-=1){if(97!=(32|i)||3!==a&&4!==a?F(t):R(t),t.err.length)return;t.data.push(t.param),B(t),t.index=t.max)break;if(!D(n.charCodeAt(t.index)))break}L(t)}else L(t);else t.err='[path-util]: Invalid path value "'+n[r]+'" is not a path command'}var j=function(t){this.pathValue=t,this.segments=[],this.max=t.length,this.index=0,this.param=0,this.segmentStart=0,this.data=[],this.err=""};function V(t){if(N(t))return[].concat(t);var e=new j(t);for(B(e);e.index1&&(v*=M=Math.sqrt(M),y*=M);var C=v*v,T=y*y,k=(o===a?-1:1)*Math.sqrt(Math.abs((C*T-C*A*A-T*E*E)/(C*A*A+T*E*E)));f=k*v*A/y+(m+b)/2,p=k*-y*E/v+(g+x)/2,h=Math.asin(((g-p)/y*Math.pow(10,9)|0)/Math.pow(10,9)),d=Math.asin(((x-p)/y*Math.pow(10,9)|0)/Math.pow(10,9)),h=md&&(h-=2*Math.PI),!a&&d>h&&(d-=2*Math.PI)}var I=d-h;if(Math.abs(I)>w){var N=d,P=b,O=x;d=h+w*(a&&d>h?1:-1),S=Y(b=f+v*Math.cos(d),x=p+y*Math.sin(d),v,y,i,0,a,P,O,[d,N,f,p])}I=d-h;var L=Math.cos(h),R=Math.sin(h),D=Math.cos(d),z=Math.sin(d),F=Math.tan(I/4),B=4/3*v*F,U=4/3*y*F,j=[m,g],V=[m+B*R,g-U*L],H=[b+B*z,x-U*D],G=[b,x];if(V[0]=2*j[0]-V[0],V[1]=2*j[1]-V[1],l)return V.concat(H,G,S);for(var W=[],q=0,$=(S=V.concat(H,G,S)).length;q<$;q+=1)W[q]=q%2?X(S[q-1],S[q],_).y:X(S[q],S[q+1],_).x;return W}function q(t,e,n){var r=t[0],i=t[1];return[r+(e[0]-r)*n,i+(e[1]-i)*n]}var $=function(t,e,n,r){var i=q([t,e],[n,r],.5);return(0,C.__spreadArray)((0,C.__spreadArray)([],i,!0),[n,r,n,r],!1)};function K(t,e){var n,r,i,o,a,s,u,l,c,h=t[0],d=t.slice(1).map(Number),f=d[0],p=d[1],m=e.x1,g=e.y1,v=e.x,y=e.y;switch("TQ".includes(h)||(e.qx=null,e.qy=null),h){case"M":return e.x=f,e.y=p,t;case"A":return n=[m,g].concat(d),["C"].concat(Y(n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8],n[9]));case"Q":return e.qx=f,e.qy=p,n=[m,g].concat(d),["C"].concat((r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],u=n[5],[(l=1/3)*r+(c=2/3)*o,l*i+c*a,l*s+c*o,l*u+c*a,s,u]));case"L":return["C"].concat($(m,g,f,p));case"Z":return m===v&&g===y?["C",m,g,v,y,v,y]:["C"].concat($(m,g,v,y))}return t}function Z(t,e){if(void 0===e&&(e=!1),function(t){return O(t)&&t.every((function(t){var e=t[0];return"MC".includes(e)}))}(t)){var n=[].concat(t);return e?[n,[]]:n}for(var r,i,o=W(t),a=(0,C.__assign)({},T),s=[],u="",l=o.length,c=[],h=0;h=o)a={x:n,y:r};else{var s=q([t,e],[n,r],i/o);a={x:s[0],y:s[1]}}return{length:o,point:a,min:{x:Math.min(t,n),y:Math.min(e,r)},max:{x:Math.max(t,n),y:Math.max(e,r)}}}function rt(t,e){var n=t.x,r=t.y,i=e.x,o=e.y,a=n*i+r*o,s=Math.sqrt((Math.pow(n,2)+Math.pow(r,2))*(Math.pow(i,2)+Math.pow(o,2)));return(n*o-r*i<0?-1:1)*Math.acos(a/s)}function it(t,e,n,r,i,o,a,s,u,l){var c=Math.abs,h=Math.sin,d=Math.cos,f=Math.sqrt,p=Math.PI,m=c(n),g=c(r),v=(i%360+360)%360*(p/180);if(t===s&&e===u)return{x:t,y:e};if(0===m||0===g)return nt(t,e,s,u,l).point;var y=(t-s)/2,b=(e-u)/2,x={x:d(v)*y+h(v)*b,y:-h(v)*y+d(v)*b},w=Math.pow(x.x,2)/Math.pow(m,2)+Math.pow(x.y,2)/Math.pow(g,2);w>1&&(m*=f(w),g*=f(w));var _=(Math.pow(m,2)*Math.pow(g,2)-Math.pow(m,2)*Math.pow(x.y,2)-Math.pow(g,2)*Math.pow(x.x,2))/(Math.pow(m,2)*Math.pow(x.y,2)+Math.pow(g,2)*Math.pow(x.x,2)),S=(o!==a?1:-1)*f(_=_<0?0:_),E=S*(m*x.y/g),A=S*(-g*x.x/m),M=d(v)*E-h(v)*A+(t+s)/2,C=h(v)*E+d(v)*A+(e+u)/2,T={x:(x.x-E)/m,y:(x.y-A)/g},k=rt({x:1,y:0},T),I=rt(T,{x:(-x.x-E)/m,y:(-x.y-A)/g});!a&&I>0?I-=2*p:a&&I<0&&(I+=2*p);var N=k+(I%=2*p)*l,P=m*d(N),O=g*h(N);return{x:d(v)*P-h(v)*O+M,y:h(v)*P+d(v)*O+C}}function ot(t,e,n,r,i,o,a,s,u,l,c){var h,d=c.bbox,f=void 0===d||d,p=c.length,m=void 0===p||p,g=c.sampleSize,v=void 0===g?30:g,y="number"==typeof l,b=t,x=e,w=0,_=[b,x,w],S=[b,x],E={x:0,y:0},A=[{x:b,y:x}];y&&l<=0&&(E={x:b,y:x});for(var M=0;M<=v;M+=1){if(b=(h=it(t,e,n,r,i,o,a,s,u,M/v)).x,x=h.y,f&&A.push({x:b,y:x}),m&&(w+=et(S,[b,x])),S=[b,x],y&&w>=l&&l>_[2]){var C=(w-l)/(w-_[2]);E={x:S[0]*(1-C)+_[0]*C,y:S[1]*(1-C)+_[1]*C}}_=[b,x,w]}return y&&l>=w&&(E={x:s,y:u}),{length:w,point:E,min:{x:Math.min.apply(null,A.map((function(t){return t.x}))),y:Math.min.apply(null,A.map((function(t){return t.y})))},max:{x:Math.max.apply(null,A.map((function(t){return t.x}))),y:Math.max.apply(null,A.map((function(t){return t.y})))}}}function at(t,e,n,r,i,o,a,s,u){var l=1-u;return{x:Math.pow(l,3)*t+3*Math.pow(l,2)*u*n+3*l*Math.pow(u,2)*i+Math.pow(u,3)*a,y:Math.pow(l,3)*e+3*Math.pow(l,2)*u*r+3*l*Math.pow(u,2)*o+Math.pow(u,3)*s}}function st(t,e,n,r,i,o,a,s,u,l){var c,h=l.bbox,d=void 0===h||h,f=l.length,p=void 0===f||f,m=l.sampleSize,g=void 0===m?10:m,v="number"==typeof u,y=t,b=e,x=0,w=[y,b,x],_=[y,b],S={x:0,y:0},E=[{x:y,y:b}];v&&u<=0&&(S={x:y,y:b});for(var A=0;A<=g;A+=1){if(y=(c=at(t,e,n,r,i,o,a,s,A/g)).x,b=c.y,d&&E.push({x:y,y:b}),p&&(x+=et(_,[y,b])),_=[y,b],v&&x>=u&&u>w[2]){var M=(x-u)/(x-w[2]);S={x:_[0]*(1-M)+w[0]*M,y:_[1]*(1-M)+w[1]*M}}w=[y,b,x]}return v&&u>=x&&(S={x:a,y:s}),{length:x,point:S,min:{x:Math.min.apply(null,E.map((function(t){return t.x}))),y:Math.min.apply(null,E.map((function(t){return t.y})))},max:{x:Math.max.apply(null,E.map((function(t){return t.x}))),y:Math.max.apply(null,E.map((function(t){return t.y})))}}}function ut(t,e,n,r,i,o,a){var s=1-a;return{x:Math.pow(s,2)*t+2*s*a*n+Math.pow(a,2)*i,y:Math.pow(s,2)*e+2*s*a*r+Math.pow(a,2)*o}}function lt(t,e,n,r,i,o,a,s){var u,l=s.bbox,c=void 0===l||l,h=s.length,d=void 0===h||h,f=s.sampleSize,p=void 0===f?10:f,m="number"==typeof a,g=t,v=e,y=0,b=[g,v,y],x=[g,v],w={x:0,y:0},_=[{x:g,y:v}];m&&a<=0&&(w={x:g,y:v});for(var S=0;S<=p;S+=1){if(g=(u=ut(t,e,n,r,i,o,S/p)).x,v=u.y,c&&_.push({x:g,y:v}),d&&(y+=et(x,[g,v])),x=[g,v],m&&y>=a&&a>b[2]){var E=(y-a)/(y-b[2]);w={x:x[0]*(1-E)+b[0]*E,y:x[1]*(1-E)+b[1]*E}}b=[g,v,y]}return m&&a>=y&&(w={x:i,y:o}),{length:y,point:w,min:{x:Math.min.apply(null,_.map((function(t){return t.x}))),y:Math.min.apply(null,_.map((function(t){return t.y})))},max:{x:Math.max.apply(null,_.map((function(t){return t.x}))),y:Math.max.apply(null,_.map((function(t){return t.y})))}}}function ct(t,e,n){for(var r,i,o,a,s,u,l,c,h,d=W(t),f="number"==typeof e,p=[],m=0,g=0,v=0,y=0,b=[],x=[],w=0,_={x:0,y:0},S=_,E=_,A=_,M=0,C=0,T=d.length;C=e&&(A=E),x.push(S),b.push(_),M+=w,m=(u="Z"!==c?h.slice(-2):[v,y])[0],g=u[1];return f&&e>=M&&(A={x:m,y:g}),{length:M,point:A,min:{x:Math.min.apply(null,b.map((function(t){return t.x}))),y:Math.min.apply(null,b.map((function(t){return t.y})))},max:{x:Math.max.apply(null,x.map((function(t){return t.x}))),y:Math.max.apply(null,x.map((function(t){return t.y})))}}}function ht(t,e){if(!t)return{x:0,y:0,width:0,height:0,x2:0,y2:0,cx:0,cy:0,cz:0};var n=ct(t,void 0,(0,C.__assign)((0,C.__assign)({},e),{length:!1})),r=n.min,i=r.x,o=r.y,a=n.max,s=a.x,u=a.y,l=s-i,c=u-o;return{width:l,height:c,x:i,y:o,x2:s,y2:u,cx:i+l/2,cy:o+c/2,cz:Math.max(l,c)+Math.min(l,c)/2}}function dt(t,e){return ct(t,void 0,(0,C.__assign)((0,C.__assign)({},e),{bbox:!1,length:!0})).length}function ft(t,e){if(!t)return{length:0,x:0,y:0,width:0,height:0,x2:0,y2:0,cx:0,cy:0,cz:0};var n=ct(t,void 0,(0,C.__assign)((0,C.__assign)({},e),{bbox:!0,length:!0})),r=n.length,i=n.min,o=i.x,a=i.y,s=n.max,u=s.x,l=s.y,c=u-o,h=l-a;return{length:r,width:c,height:h,x:o,y:a,x2:u,y2:l,cx:o+c/2,cy:a+h/2,cz:Math.max(c,h)+Math.min(c,h)/2}}function pt(t,e){var n=t.length-1,r=[],i=0,o=function(t){var e=t.length,n=e-1;return t.map((function(r,i){return t.map((function(r,o){var a,s=i+o;return 0===o||t[s]&&"M"===t[s][0]?(a=t[s],["M"].concat(a.slice(-2))):(s>=e&&(s-=n),t[s])}))}))}(t);return o.forEach((function(o,a){t.slice(1).forEach((function(r,o){i+=et(t[(a+o)%n].slice(-2),e[o%n].slice(-2))})),r[a]=i,i=0})),o[r.indexOf(Math.min.apply(null,r))]}function mt(t){var e=0,n=0,r=0;return Z(t).map((function(t){var i;if("M"===t[0])return e=t[1],n=t[2],0;var o=t.slice(1),a=o[0],s=o[1],u=o[2],l=o[3],c=o[4],h=o[5];return r=function(t,e,n,r,i,o,a,s){return 3*((s-e)*(n+i)-(a-t)*(r+o)+r*(t-i)-n*(e-o)+s*(i+t/3)-a*(o+e/3))/20}(e,n,a,s,u,l,c,h),i=t.slice(-2),e=i[0],n=i[1],r})).reduce((function(t,e){return t+e}),0)}function gt(t){return mt(t)>=0}function vt(t,e,n){return ct(t,e,(0,C.__assign)((0,C.__assign)({},n),{bbox:!1,length:!0})).point}function yt(t,e){for(var n,r,i,o,a=V(t),s=W(a),u=dt(a),l=function(t){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r},c=8,h=0,d=0,f=1/0,p=0;p<=u;p+=c)(h=l(n=vt(s,p))).5;)v=l(i=vt(s,m=d-c)),y=l(o=vt(s,g=d+c)),m>=0&&v=i)return s=i-(a=dt(r=n.slice(0,-1))),{segment:n[o],index:o,length:s,lengthAtSegment:a};for(var h=[];o>0;)u=r[o],s=i-(a=dt(r=r.slice(0,-1))),i=a,h.push({segment:u,index:o,length:s,lengthAtSegment:a}),o-=1;return h.find((function(t){return t.lengthAtSegment<=e}))}(a,d);return{closest:r,distance:Math.sqrt(f),segment:b}}function bt(t,e){var n=yt(t,e).distance;return Math.abs(n)<.001}function xt(t){return t.map((function(t,e,n){var r=e&&n[e-1].slice(-2).concat(t.slice(1)),i=e?st(r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],{bbox:!1}).length:0;return{s:t,ss:e?i?function(t,e){void 0===e&&(e=.5);var n=t.slice(0,2),r=t.slice(2,4),i=t.slice(4,6),o=t.slice(6,8),a=q(n,r,e),s=q(r,i,e),u=q(i,o,e),l=q(a,s,e),c=q(s,u,e),h=q(l,c,e);return[["C"].concat(a,l,h),["C"].concat(c,u,o)]}(r):[t,t]:[t],l:i}}))}function wt(t,e,n){var r=xt(t),i=xt(e),o=r.length,a=i.length,s=r.filter((function(t){return t.l})).length,u=i.filter((function(t){return t.l})).length,l=r.filter((function(t){return t.l})).reduce((function(t,e){return t+e.l}),0)/s||0,c=i.filter((function(t){return t.l})).reduce((function(t,e){return t+e.l}),0)/u||0,h=n||Math.max(o,a),d=[l,c],f=[h-o,h-a],p=0,m=[r,i].map((function(t,e){return t.l===h?t.map((function(t){return t.s})):t.map((function(t,n){return p=n&&f[e]&&t.l>=d[e],f[e]-=p?1:0,p?t.ss:[t.s]})).flat()}));return m[0].length===m[1].length?m:wt(m[0],m[1],h)}const _t=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)};const St=function(t,e){return!!_t(t)&&t.indexOf(e)>-1};const Et=function(t,e){if(!_t(t))return t;for(var n=[],r=0;r-1;)Xt.call(t,o,1);return t};var $t=Array.prototype.splice;const Kt=function(t,e){if(!_t(t))return[];for(var n=t?e.length:0,r=n-1;n--;){var i=void 0,o=e[n];n!==r&&o===i||(i=o,$t.call(t,o,1))}return t};const Zt=function(t,e,n){if(!kt(t)&&!Rt(t))return t;var r=n;return Nt(t,(function(t,n){r=e(r,t,n)})),r};const Qt=function(t,e){var n=[];if(!_t(t))return n;for(var r=-1,i=[],o=t.length;++re[i])return 1;if(t[i]n?n:t};const xe=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))};const we=function(t){return Tt(t,"Number")};const _e=function(t){return we(t)&&t%1!=0};const Se=function(t){return we(t)&&t%2==0};const Ee=Number.isInteger?Number.isInteger:function(t){return we(t)&&t%1==0};const Ae=function(t){return we(t)&&t<0};var Me=1e-5;function Ce(t,e,n){return void 0===n&&(n=Me),Math.abs(t-e)0},Ie=function(t,e){if(kt(t)){for(var n,r=-1/0,i=0;ir&&(n=o,r=s)}return n}},Ne=function(t,e){if(kt(t)){for(var n,r=1/0,i=0;ie?(r&&(clearTimeout(r),r=null),s=l,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(u,c)),a};return l.cancel=function(){clearTimeout(r),s=0,r=i=o=null},l},Dn=function(t){return _t(t)?Array.prototype.slice.call(t):[]};var zn={};const Fn=function(t){return zn[t=t||"g"]?zn[t]+=1:zn[t]=1,t+zn[t]},Bn=function(){},Un=function(t){return t};function jn(t){return Mt(t)?0:_t(t)?t.length:Object.keys(t).length}const Vn=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}();var Hn=1e-6;function Gn(t){return Math.abs(t)0!=Gn(s[1]-n)>0&&Gn(e-(n-a[1])*(a[0]-s[0])/(a[1]-s[1])-a[0])<0&&(r=!r)}return r}var Yn=function(t,e,n){return t>=e&&t<=n};function qn(t){for(var e=[],n=t.length,r=0;r1){var a=t[0],s=t[n-1];e.push({from:{x:s[0],y:s[1]},to:{x:a[0],y:a[1]}})}return e}function $n(t,e){var n=!1;return t.forEach((function(t){if(function(t,e,n,r){var i=n.x-t.x,o=n.y-t.y,a=e.x-t.x,s=e.y-t.y,u=r.x-n.x,l=r.y-n.y,c=a*l-s*u,h=null;if(c*c>.001*(a*a+s*s)*(u*u+l*l)){var d=(i*l-o*u)/c,f=(i*s-o*a)/c;Yn(d,0,1)&&Yn(f,0,1)&&(h={x:t.x+d*a,y:t.y+d*s})}return h}(t.from,t.to,e.from,e.to))return n=!0,!1})),n}function Kn(t){var e=t.map((function(t){return t[0]})),n=t.map((function(t){return t[1]}));return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,n),maxY:Math.max.apply(null,n)}}function Zn(t,e){if(t.length<2||e.length<2)return!1;var n,r,i=Kn(t),o=Kn(e);if(n=i,(r=o).minX>n.maxX||r.maxXn.maxY||r.maxY{"use strict";n.r(e),n.d(e,{AbstractMatrix:()=>x,CHO:()=>Z,CholeskyDecomposition:()=>Z,EVD:()=>$,EigenvalueDecomposition:()=>$,LU:()=>D,LuDecomposition:()=>D,Matrix:()=>_,MatrixColumnSelectionView:()=>A,MatrixColumnView:()=>E,MatrixFlipColumnView:()=>M,MatrixFlipRowView:()=>C,MatrixRowSelectionView:()=>k,MatrixRowView:()=>T,MatrixSelectionView:()=>I,MatrixSubView:()=>N,MatrixTransposeView:()=>P,NIPALS:()=>Q,Nipals:()=>Q,QR:()=>F,QrDecomposition:()=>F,SVD:()=>B,SingularValueDecomposition:()=>B,WrapperMatrix1D:()=>O,WrapperMatrix2D:()=>L,correlation:()=>q,covariance:()=>Y,default:()=>_,determinant:()=>V,inverse:()=>U,linearDependencies:()=>W,pseudoInverse:()=>X,solve:()=>j,wrap:()=>R});const r=Object.prototype.toString;function i(t){const e=r.call(t);return e.endsWith("Array]")&&!e.includes("Big")}function o(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!i(t))throw new TypeError("input must be an array");if(0===t.length)throw new TypeError("input must not be empty");if(void 0!==n.output){if(!i(n.output))throw new TypeError("output option must be an array if specified");e=n.output}else e=new Array(t.length);var r=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!i(t))throw new TypeError("input must be an array");if(0===t.length)throw new TypeError("input must not be empty");var n=e.fromIndex,r=void 0===n?0:n,o=e.toIndex,a=void 0===o?t.length:o;if(r<0||r>=t.length||!Number.isInteger(r))throw new Error("fromIndex must be a positive integer smaller than length");if(a<=r||a>t.length||!Number.isInteger(a))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var s=t[r],u=r+1;u1&&void 0!==arguments[1]?arguments[1]:{};if(!i(t))throw new TypeError("input must be an array");if(0===t.length)throw new TypeError("input must not be empty");var n=e.fromIndex,r=void 0===n?0:n,o=e.toIndex,a=void 0===o?t.length:o;if(r<0||r>=t.length||!Number.isInteger(r))throw new Error("fromIndex must be a positive integer smaller than length");if(a<=r||a>t.length||!Number.isInteger(a))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var s=t[r],u=r+1;us&&(s=t[u]);return s}(t);if(r===o)throw new RangeError("minimum and maximum input values are equal. Cannot rescale a constant array");var a=n.min,s=void 0===a?n.autoMinMax?r:0:a,u=n.max,l=void 0===u?n.autoMinMax?o:1:u;if(s>=l)throw new RangeError("min option must be smaller than max option");for(var c=(l-s)/(o-r),h=0;hr)throw new RangeError("Row index out of range")}function h(t,e,n){let r=n?t.columns:t.columns-1;if(e<0||e>r)throw new RangeError("Column index out of range")}function d(t,e){if(e.to1DArray&&(e=e.to1DArray()),e.length!==t.columns)throw new RangeError("vector size must be the same as the number of columns");return e}function f(t,e){if(e.to1DArray&&(e=e.to1DArray()),e.length!==t.rows)throw new RangeError("vector size must be the same as the number of rows");return e}function p(t,e,n){return{row:m(t,e),column:g(t,n)}}function m(t,e){if("object"!=typeof e)throw new TypeError("unexpected type for row indices");if(e.some((e=>e<0||e>=t.rows)))throw new RangeError("row indices are out of range");return Array.isArray(e)||(e=Array.from(e)),e}function g(t,e){if("object"!=typeof e)throw new TypeError("unexpected type for column indices");if(e.some((e=>e<0||e>=t.columns)))throw new RangeError("column indices are out of range");return Array.isArray(e)||(e=Array.from(e)),e}function v(t,e,n,r,i){if(5!==arguments.length)throw new RangeError("expected 4 arguments");if(b("startRow",e),b("endRow",n),b("startColumn",r),b("endColumn",i),e>n||r>i||e<0||e>=t.rows||n<0||n>=t.rows||r<0||r>=t.columns||i<0||i>=t.columns)throw new RangeError("Submatrix indices are out of range")}function y(t,e=0){let n=[];for(let r=0;r=i)throw new RangeError("min must be smaller than max");let a=i-r,s=new _(t,e);for(let n=0;nn?(i=!0,n=e):(r=!1,i=!0);t++}return r}isReducedEchelonForm(){let t=0,e=0,n=-1,r=!0,i=!1;for(;tn?(i=!0,n=e):(r=!1,i=!0);for(let n=e+1;nt.get(r,n)&&(r=i);if(0===t.get(r,n))n++;else{t.swapRows(e,r);let i=t.get(e,n);for(let r=n;r=0;)if(0===t.maxRow(r))r--;else{let i=0,o=!1;for(;it&&(t=this.get(e,n));return t}maxIndex(){let t=this.get(0,0),e=[0,0];for(let n=0;nt&&(t=this.get(n,r),e[0]=n,e[1]=r);return e}min(){let t=this.get(0,0);for(let e=0;ee&&(e=this.get(t,n));return e}maxRowIndex(t){c(this,t);let e=this.get(t,0),n=[t,0];for(let r=1;re&&(e=this.get(t,r),n[1]=r);return n}minRow(t){c(this,t);let e=this.get(t,0);for(let n=1;ne&&(e=this.get(n,t));return e}maxColumnIndex(t){h(this,t);let e=this.get(0,t),n=[0,t];for(let r=1;re&&(e=this.get(r,t),n[0]=r);return n}minColumn(t){h(this,t);let e=this.get(0,t);for(let n=1;n=n)throw new RangeError("min must be smaller than max");let r=new _(this.rows,this.columns);for(let t=0;t=n)throw new RangeError("min must be smaller than max");let r=new _(this.rows,this.columns);for(let t=0;tn||e<0||e>=this.columns||n<0||n>=this.columns)throw new RangeError("Argument out of range");let r=new _(t.length,n-e+1);for(let i=0;i=this.rows)throw new RangeError(`Row index out of range: ${t[i]}`);r.set(i,o-e,this.get(t[i],o))}return r}subMatrixColumn(t,e,n){if(void 0===e&&(e=0),void 0===n&&(n=this.rows-1),e>n||e<0||e>=this.rows||n<0||n>=this.rows)throw new RangeError("Argument out of range");let r=new _(n-e+1,t.length);for(let i=0;i=this.columns)throw new RangeError(`Column index out of range: ${t[i]}`);r.set(o-e,i,this.get(o,t[i]))}return r}setSubMatrix(t,e,n){v(this,e,e+(t=_.checkMatrix(t)).rows-1,n,n+t.columns-1);for(let r=0;r0){if(this.data=[],!(Number.isInteger(e)&&e>0))throw new TypeError("nColumns must be a positive integer");for(let n=0;n>t);return this},t.prototype.signPropagatingRightShiftM=function(t){if(t=e.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(let e=0;e>t.get(e,n));return this},t.signPropagatingRightShift=function(t,n){return new e(t).signPropagatingRightShift(n)},t.prototype.rightShift=function(t){return"number"==typeof t?this.rightShiftS(t):this.rightShiftM(t)},t.prototype.rightShiftS=function(t){for(let e=0;e>>t);return this},t.prototype.rightShiftM=function(t){if(t=e.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(let e=0;e>>t.get(e,n));return this},t.rightShift=function(t,n){return new e(t).rightShift(n)},t.prototype.zeroFillRightShift=t.prototype.rightShift,t.prototype.zeroFillRightShiftS=t.prototype.rightShiftS,t.prototype.zeroFillRightShiftM=t.prototype.rightShiftM,t.zeroFillRightShift=t.rightShift,t.prototype.not=function(){for(let t=0;tMath.abs(u[i])&&(i=e);if(i!==n){for(r=0;r=0;i--){for(r=0;re?r.set(i,e,t.get(i,e)):i===e?r.set(i,e,1):r.set(i,e,0);return r}get upperTriangularMatrix(){let t=this.LU,e=t.rows,n=t.columns,r=new _(e,n);for(let i=0;iMath.abs(e)?(n=e/t,Math.abs(t)*Math.sqrt(1+n*n)):0!==e?(n=t/e,Math.abs(e)*Math.sqrt(1+n*n)):0}class F{constructor(t){let e,n,r,i,o=(t=L.checkMatrix(t)).clone(),a=t.rows,s=t.columns,u=new Float64Array(s);for(r=0;r=0;o--){for(i=0;i=0;n--){for(t=0;t=0;t--)if(0!==f[t]){for(let e=t+1;e=0;t--){if(t0;){let t,e;for(t=S-2;t>=-1&&-1!==t;t--){const e=Number.MIN_VALUE+M*Math.abs(f[t]+Math.abs(f[t+1]));if(Math.abs(g[t])<=e||Number.isNaN(g[t])){g[t]=0;break}}if(t===S-2)e=4;else{let n;for(n=S-1;n>=t&&n!==t;n--){let e=(n!==S?Math.abs(g[n]):0)+(n!==t+1?Math.abs(g[n-1]):0);if(Math.abs(f[n])<=M*e){f[n]=0;break}}n===t?e=3:n===S-1?e=1:(e=2,t=n)}switch(t++,e){case 1:{let e=g[S-2];g[S-2]=0;for(let n=S-2;n>=t;n--){let i=z(f[n],e),o=f[n]/i,a=e/i;if(f[n]=i,n!==t&&(e=-a*g[n-1],g[n-1]=o*g[n-1]),l)for(let t=0;t=f[t+1]);){let e=f[t];if(f[t]=f[t+1],f[t+1]=e,l&&te&&i.set(o,n,t.get(o,n)/this.s[n]);let o=this.U,a=o.rows,s=o.columns,u=new _(n,a);for(let t=0;tt&&e++;return e}get diagonal(){return Array.from(this.s)}get threshold(){return Number.EPSILON/2*Math.max(this.m,this.n)*this.s[0]}get leftSingularVectors(){return this.U}get rightSingularVectors(){return this.V}get diagonalMatrix(){return _.diag(this.s)}}function U(t,e=!1){return t=L.checkMatrix(t),e?new B(t).inverse():j(t,_.eye(t.rows))}function j(t,e,n=!1){return t=L.checkMatrix(t),e=L.checkMatrix(e),n?new B(t).solve(e):t.isSquare()?new D(t).solve(e):new F(t).solve(e)}function V(t){if((t=_.checkMatrix(t)).isSquare()){let e,n,r,i;if(2===t.columns)return e=t.get(0,0),n=t.get(0,1),r=t.get(1,0),i=t.get(1,1),e*i-n*r;if(3===t.columns){let i,o,a;return i=new I(t,[1,2],[1,2]),o=new I(t,[1,2],[0,2]),a=new I(t,[1,2],[0,1]),e=t.get(0,0),n=t.get(0,1),r=t.get(0,2),e*V(i)-n*V(o)+r*V(a)}return new D(t).determinant}throw Error("determinant can only be calculated for a square matrix")}function H(t,e){let n=[];for(let r=0;ri)return new Array(e.rows+1).fill(0);{let t=e.addRow(n,[0]);for(let e=0;ee?o[t]=1/o[t]:o[t]=0;return i.mmul(_.diag(o).mmul(r.transpose()))}function Y(t,e=t,n={}){t=new _(t);let r=!1;if("object"!=typeof e||_.isMatrix(e)||Array.isArray(e)?e=new _(e):(n=e,e=t,r=!0),t.rows!==e.rows)throw new TypeError("Both matrices must have the same number of rows");const{center:i=!0}=n;i&&(t=t.center("column"),r||(e=e.center("column")));const o=t.transpose().mmul(e);for(let e=0;e0;s--){for(h=0,a=0,l=0;l0&&(o=-o),e[s]=h*o,a-=i*o,n[s-1]=i-o,u=0;ul){x=0;do{for(x+=1,i=n[l],h=(n[l+1]-i)/(2*e[l]),d=z(h,1),h<0&&(d=-d),n[l]=e[l]/(h+d),n[l+1]=e[l]*(h+d),f=n[l+1],o=i-n[l],a=l+2;a=l;a--)for(g=m,m=p,b=y,i=p*e[a],o=p*h,d=z(h,e[a]),e[a+1]=y*d,y=e[a]/d,p=h/d,h=p*n[a]-y*i,n[a+1]=o+y*(p*i+y*n[a]),u=0;uS*_)}n[l]=n[l]+w,e[l]=0}for(a=0;a=l;s--)n[s]=e.get(s,l-1)/c,a+=n[s]*n[s];for(o=Math.sqrt(a),n[l]>0&&(o=-o),a-=n[l]*o,n[l]=n[l]-o,u=l;u=l;s--)i+=n[s]*e.get(s,u);for(i/=a,s=l;s<=d;s++)e.set(s,u,e.get(s,u)-i*n[s])}for(s=0;s<=d;s++){for(i=0,u=d;u>=l;u--)i+=n[u]*e.get(s,u);for(i/=a,u=l;u<=d;u++)e.set(s,u,e.get(s,u)-i*n[u])}n[l]=c*n[l],e.set(l,l-1,c*o)}}for(s=0;s=h+1;l--)if(0!==e.get(l,l-1)){for(s=l+1;s<=d;s++)n[s]=e.get(s,l-1);for(u=l;u<=d;u++){for(o=0,s=l;s<=d;s++)o+=n[s]*r.get(s,u);for(o=o/n[l]/e.get(l,l-1),s=l;s<=d;s++)r.set(s,u,r.get(s,u)+o*n[s])}}}(o,t,e,a),function(t,e,n,r,i){let o,a,s,u,l,c,h,d,f,p,m,g,v,y,b,x=t-1,w=0,_=t-1,S=Number.EPSILON,E=0,A=0,M=0,C=0,T=0,k=0,I=0,N=0;for(o=0;o_)&&(n[o]=i.get(o,o),e[o]=0),a=Math.max(o-1,0);a=w;){for(u=x;u>w&&(k=Math.abs(i.get(u-1,u-1))+Math.abs(i.get(u,u)),0===k&&(k=A),!(Math.abs(i.get(u,u-1))=0){for(I=M>=0?M+I:M-I,n[x-1]=d+I,n[x]=n[x-1],0!==I&&(n[x]=d-h/I),e[x-1]=0,e[x]=0,d=i.get(x,x-1),k=Math.abs(d)+Math.abs(I),M=d/k,C=I/k,T=Math.sqrt(M*M+C*C),M/=T,C/=T,a=x-1;a0)){for(k=Math.sqrt(k),f=u&&(I=i.get(l,l),T=d-I,k=f-I,M=(T*k-h)/i.get(l+1,l)+i.get(l,l+1),C=i.get(l+1,l+1)-I-T-k,T=i.get(l+2,l+1),k=Math.abs(M)+Math.abs(C)+Math.abs(T),M/=k,C/=k,T/=k,l!==u)&&!(Math.abs(i.get(l,l-1))*(Math.abs(C)+Math.abs(T))l+2&&i.set(o,o-3,0);for(s=l;s<=x-1&&(y=s!==x-1,s!==l&&(M=i.get(s,s-1),C=i.get(s+1,s-1),T=y?i.get(s+2,s-1):0,d=Math.abs(M)+Math.abs(C)+Math.abs(T),0!==d&&(M/=d,C/=d,T/=d)),0!==d);s++)if(k=Math.sqrt(M*M+C*C+T*T),M<0&&(k=-k),0!==k){for(s!==l?i.set(s,s-1,-k*d):u!==l&&i.set(s,s-1,-i.get(s,s-1)),M+=k,d=M/k,f=C/k,I=T/k,C/=M,T/=M,a=s;a=0;x--)if(M=n[x],C=e[x],0===C)for(u=x,i.set(x,x,1),o=x-1;o>=0;o--){for(h=i.get(o,o)-M,T=0,a=u;a<=x;a++)T+=i.get(o,a)*i.get(a,x);if(e[o]<0)I=h,k=T;else if(u=o,0===e[o]?i.set(o,x,0!==h?-T/h:-T/(S*A)):(d=i.get(o,o+1),f=i.get(o+1,o),C=(n[o]-M)*(n[o]-M)+e[o]*e[o],c=(d*k-I*T)/C,i.set(o,x,c),i.set(o+1,x,Math.abs(d)>Math.abs(I)?(-T-h*c)/d:(-k-f*c)/I)),c=Math.abs(i.get(o,x)),S*c*c>1)for(a=o;a<=x;a++)i.set(a,x,i.get(a,x)/c)}else if(C<0)for(u=x-1,Math.abs(i.get(x,x-1))>Math.abs(i.get(x-1,x))?(i.set(x-1,x-1,C/i.get(x,x-1)),i.set(x-1,x,-(i.get(x,x)-M)/i.get(x,x-1))):(b=K(0,-i.get(x-1,x),i.get(x-1,x-1)-M,C),i.set(x-1,x-1,b[0]),i.set(x-1,x,b[1])),i.set(x,x-1,0),i.set(x,x,1),o=x-2;o>=0;o--){for(p=0,m=0,a=u;a<=x;a++)p+=i.get(o,a)*i.get(a,x-1),m+=i.get(o,a)*i.get(a,x);if(h=i.get(o,o)-M,e[o]<0)I=h,T=p,k=m;else if(u=o,0===e[o]?(b=K(-p,-m,h,C),i.set(o,x-1,b[0]),i.set(o,x,b[1])):(d=i.get(o,o+1),f=i.get(o+1,o),g=(n[o]-M)*(n[o]-M)+e[o]*e[o]-C*C,v=2*(n[o]-M)*C,0===g&&0===v&&(g=S*A*(Math.abs(h)+Math.abs(C)+Math.abs(d)+Math.abs(f)+Math.abs(I))),b=K(d*T-I*p+C*m,d*k-I*m-C*p,g,v),i.set(o,x-1,b[0]),i.set(o,x,b[1]),Math.abs(d)>Math.abs(I)+Math.abs(C)?(i.set(o+1,x-1,(-p-h*i.get(o,x-1)+C*i.get(o,x))/d),i.set(o+1,x,(-m-h*i.get(o,x)-C*i.get(o,x-1))/d)):(b=K(-T-f*i.get(o,x-1),-k-f*i.get(o,x),I,C),i.set(o+1,x-1,b[0]),i.set(o+1,x,b[1]))),c=Math.max(Math.abs(i.get(o,x-1)),Math.abs(i.get(o,x))),S*c*c>1)for(a=o;a<=x;a++)i.set(a,x-1,i.get(a,x-1)/c),i.set(a,x,i.get(a,x)/c)}for(o=0;o_)for(a=o;a=w;a--)for(o=w;o<=_;o++){for(I=0,s=w;s<=Math.min(a,_);s++)I+=r.get(o,s)*i.get(s,a);r.set(o,a,I)}}(o,u,s,a,t)}this.n=o,this.e=u,this.d=s,this.V=a}get realEigenvalues(){return Array.from(this.d)}get imaginaryEigenvalues(){return Array.from(this.e)}get eigenvectorMatrix(){return this.V}get diagonalMatrix(){let t,e,n=this.n,r=this.e,i=this.d,o=new _(n,n);for(t=0;t0?o.set(t,t+1,r[t]):r[t]<0&&o.set(t,t-1,r[t])}return o}}function K(t,e,n,r){let i,o;return Math.abs(n)>Math.abs(r)?(i=r/n,o=n+i*r,[(t+i*e)/o,(e-i*t)/o]):(i=n/r,o=r+i*n,[(i*t+e)/o,(i*e-t)/o])}class Z{constructor(t){if(!(t=L.checkMatrix(t)).isSymmetric())throw new Error("Matrix is not symmetric");let e,n,r,i=t,o=i.rows,a=new _(o,o),s=!0;for(n=0;n0,a.set(n,n,Math.sqrt(Math.max(t,0))),r=n+1;r=0;o--)for(i=0;io;e++)l=t.transpose().mmul(a).div(a.transpose().mmul(a).get(0,0)),l=l.div(l.norm()),s=t.mmul(l).div(l.transpose().mmul(l).get(0,0)),e>0&&(h=s.clone().sub(c).pow(2).sum()),c=s.clone(),n?(u=n.transpose().mmul(s).div(s.transpose().mmul(s).get(0,0)),u=u.div(u.norm()),a=n.mmul(u).div(u.transpose().mmul(u).get(0,0))):a=s;if(n){let e=t.transpose().mmul(s).div(s.transpose().mmul(s).get(0,0));e=e.div(e.norm());let r=t.clone().sub(s.clone().mmul(e.transpose())),i=a.transpose().mmul(s).div(s.transpose().mmul(s).get(0,0)),o=n.clone().sub(s.clone().mulS(i.get(0,0)).mmul(u.transpose()));this.t=s,this.p=e.transpose(),this.w=l.transpose(),this.q=u,this.u=a,this.s=s.transpose().mmul(s),this.xResidual=r,this.yResidual=o,this.betas=i}else this.w=l.transpose(),this.s=s.transpose().mmul(s).sqrt(),this.t=r?s.clone().div(this.s.get(0,0)):s,this.xResidual=t.sub(s.mmul(l.transpose()))}}},47114:(t,e,n)=>{"use strict";var r=n(38274);function i(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromTranslation(i,n),r.mat3.multiply(t,i,e)}function o(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromRotation(i,n),r.mat3.multiply(t,i,e)}function a(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromScaling(i,n),r.mat3.multiply(t,i,e)}function s(t,e){return t[0]*e[1]-e[0]*t[1]}e.pd=function(t,e){for(var n,s,u,l=t?[].concat(t):[1,0,0,0,1,0,0,0,1],c=0,h=e.length;c{"use strict";n.r(e),n.d(e,{Cache:()=>Ce,assign:()=>Yt,augment:()=>qt,clamp:()=>et,clearAnimationFrame:()=>Wt,clone:()=>Kt,contains:()=>i,debounce:()=>Zt,deepMix:()=>te,difference:()=>a,each:()=>f,endsWith:()=>H,every:()=>G,extend:()=>ee,filter:()=>o,find:()=>y,findIndex:()=>b,firstValue:()=>x,fixedBase:()=>nt,flatten:()=>w,flattenDeep:()=>S,forIn:()=>xt,get:()=>he,getEllipsisText:()=>Me,getRange:()=>M,getType:()=>Pt,getWrapBehavior:()=>K,group:()=>$,groupBy:()=>Y,groupToMap:()=>q,has:()=>wt,hasKey:()=>_t,hasValue:()=>Et,head:()=>U,identity:()=>we,includes:()=>i,indexOf:()=>ne,isArguments:()=>Ot,isArray:()=>h,isArrayLike:()=>r,isBoolean:()=>Lt,isDate:()=>Rt,isDecimal:()=>it,isElement:()=>Ht,isEmpty:()=>ie,isEqual:()=>ae,isEqualWith:()=>se,isError:()=>Dt,isEven:()=>ot,isFinite:()=>zt,isFunction:()=>l,isInteger:()=>at,isMatch:()=>m,isNegative:()=>st,isNil:()=>c,isNull:()=>Ft,isNumber:()=>rt,isNumberEqual:()=>lt,isObject:()=>d,isObjectLike:()=>g,isOdd:()=>ct,isPlainObject:()=>v,isPositive:()=>ht,isPrototype:()=>Ut,isRegExp:()=>jt,isString:()=>R,isType:()=>u,isUndefined:()=>Vt,keys:()=>p,last:()=>j,lowerCase:()=>Mt,lowerFirst:()=>Ct,map:()=>ue,mapValues:()=>ce,max:()=>E,maxBy:()=>dt,measureTextWidth:()=>Ae,memoize:()=>Qt,min:()=>A,minBy:()=>ft,mix:()=>Yt,mod:()=>pt,noop:()=>xe,number2color:()=>J,omit:()=>me,parseRadius:()=>tt,pick:()=>pe,pull:()=>I,pullAt:()=>P,reduce:()=>O,remove:()=>L,requestAnimationFrame:()=>Gt,set:()=>de,size:()=>_e,some:()=>W,sortBy:()=>D,startsWith:()=>V,substitute:()=>Tt,throttle:()=>ge,toArray:()=>ve,toDegree:()=>gt,toInteger:()=>vt,toRadian:()=>bt,toString:()=>At,union:()=>F,uniq:()=>z,uniqueId:()=>be,upperCase:()=>kt,upperFirst:()=>It,values:()=>St,valuesOfKey:()=>B,wrapBehavior:()=>Z});const r=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)};const i=function(t,e){return!!r(t)&&t.indexOf(e)>-1};const o=function(t,e){if(!r(t))return t;for(var n=[],i=0;i-1;)T.call(t,o,1);return t};var N=Array.prototype.splice;const P=function(t,e){if(!r(t))return[];for(var n=t?e.length:0,i=n-1;n--;){var o=void 0,a=e[n];n!==i&&a===o||(o=a,N.call(t,a,1))}return t};const O=function(t,e,n){if(!h(t)&&!v(t))return t;var r=n;return f(t,(function(t,n){r=e(r,t,n)})),r};const L=function(t,e){var n=[];if(!r(t))return n;for(var i=-1,o=[],a=t.length;++ie[i])return 1;if(t[i]n?n:t};const nt=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))};const rt=function(t){return u(t,"Number")};const it=function(t){return rt(t)&&t%1!=0};const ot=function(t){return rt(t)&&t%2==0};const at=Number.isInteger?Number.isInteger:function(t){return rt(t)&&t%1==0};const st=function(t){return rt(t)&&t<0};var ut=1e-5;function lt(t,e,n){return void 0===n&&(n=ut),Math.abs(t-e)0},dt=function(t,e){if(h(t)){for(var n,r=-1/0,i=0;ir&&(n=o,r=a)}return n}},ft=function(t,e){if(h(t)){for(var n,r=1/0,i=0;ie?(r&&(clearTimeout(r),r=null),s=l,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(u,c)),a};return l.cancel=function(){clearTimeout(r),s=0,r=i=o=null},l},ve=function(t){return r(t)?Array.prototype.slice.call(t):[]};var ye={};const be=function(t){return ye[t=t||"g"]?ye[t]+=1:ye[t]=1,t+ye[t]},xe=function(){},we=function(t){return t};function _e(t){return c(t)?0:r(t)?t.length:Object.keys(t).length}var Se,Ee=n(31635);const Ae=Qt((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,i=e.fontWeight,o=e.fontStyle,a=e.fontVariant;return Se||(Se=document.createElement("canvas").getContext("2d")),Se.font=[o,a,i,n+"px",r].join(" "),Se.measureText(R(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),(0,Ee.__spreadArrays)([t],St(e)).join("")})),Me=function(t,e,n,r){void 0===r&&(r="...");var i,o,a=Ae(r,n),s=R(t)?t:At(t),u=e,l=[];if(Ae(t,n)<=e)return t;for(;i=s.substr(0,16),!((o=Ae(i,n))+a>u&&o>u);)if(l.push(i),u-=o,!(s=s.substr(16)))return l.join("");for(;i=s.substr(0,1),!((o=Ae(i,n))+a>u);)if(l.push(i),u-=o,!(s=s.substr(1)))return l.join("");return""+l.join("")+r};const Ce=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}()},62456:(t,e,n)=>{"use strict";n.d(e,{H:()=>h,K6:()=>o,Me:()=>l,Ob:()=>c,YL:()=>s,_:()=>i,g8:()=>p,n6:()=>f,oS:()=>m,wE:()=>u});var r=n(89244);function i(t,e,n){return{r:255*(0,r.Cg)(t,255),g:255*(0,r.Cg)(e,255),b:255*(0,r.Cg)(n,255)}}function o(t,e,n){t=(0,r.Cg)(t,255),e=(0,r.Cg)(e,255),n=(0,r.Cg)(n,255);var i=Math.max(t,e,n),o=Math.min(t,e,n),a=0,s=0,u=(i+o)/2;if(i===o)s=0,a=0;else{var l=i-o;switch(s=u>.5?l/(2-i-o):l/(i+o),i){case t:a=(e-n)/l+(e1&&(n-=1),n<1/6?t+6*n*(e-t):n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function s(t,e,n){var i,o,s;if(t=(0,r.Cg)(t,360),e=(0,r.Cg)(e,100),n=(0,r.Cg)(n,100),0===e)o=n,s=n,i=n;else{var u=n<.5?n*(1+e):n+e-n*e,l=2*n-u;i=a(l,u,t+1/3),o=a(l,u,t),s=a(l,u,t-1/3)}return{r:255*i,g:255*o,b:255*s}}function u(t,e,n){t=(0,r.Cg)(t,255),e=(0,r.Cg)(e,255),n=(0,r.Cg)(n,255);var i=Math.max(t,e,n),o=Math.min(t,e,n),a=0,s=i,u=i-o,l=0===i?0:u/i;if(i===o)a=0;else{switch(i){case t:a=(e-n)/u+(e>16,g:(65280&t)>>8,b:255&t}}},42434:(t,e,n)=>{"use strict";n.d(e,{D:()=>r});var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},76250:(t,e,n)=>{"use strict";n.d(e,{RO:()=>a});var r=n(62456),i=n(42434),o=n(89244);function a(t){var e={r:0,g:0,b:0},n=1,a=null,s=null,u=null,l=!1,d=!1;return"string"==typeof t&&(t=function(t){if(t=t.trim().toLowerCase(),0===t.length)return!1;var e=!1;if(i.D[t])t=i.D[t],e=!0;else if("transparent"===t)return{r:0,g:0,b:0,a:0,format:"name"};var n=c.rgb.exec(t);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=c.rgba.exec(t),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=c.hsl.exec(t),n)return{h:n[1],s:n[2],l:n[3]};if(n=c.hsla.exec(t),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=c.hsv.exec(t),n)return{h:n[1],s:n[2],v:n[3]};if(n=c.hsva.exec(t),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=c.hex8.exec(t),n)return{r:(0,r.g8)(n[1]),g:(0,r.g8)(n[2]),b:(0,r.g8)(n[3]),a:(0,r.n6)(n[4]),format:e?"name":"hex8"};if(n=c.hex6.exec(t),n)return{r:(0,r.g8)(n[1]),g:(0,r.g8)(n[2]),b:(0,r.g8)(n[3]),format:e?"name":"hex"};if(n=c.hex4.exec(t),n)return{r:(0,r.g8)(n[1]+n[1]),g:(0,r.g8)(n[2]+n[2]),b:(0,r.g8)(n[3]+n[3]),a:(0,r.n6)(n[4]+n[4]),format:e?"name":"hex8"};if(n=c.hex3.exec(t),n)return{r:(0,r.g8)(n[1]+n[1]),g:(0,r.g8)(n[2]+n[2]),b:(0,r.g8)(n[3]+n[3]),format:e?"name":"hex"};return!1}(t)),"object"==typeof t&&(h(t.r)&&h(t.g)&&h(t.b)?(e=(0,r._)(t.r,t.g,t.b),l=!0,d="%"===String(t.r).substr(-1)?"prgb":"rgb"):h(t.h)&&h(t.s)&&h(t.v)?(a=(0,o.Px)(t.s),s=(0,o.Px)(t.v),e=(0,r.Me)(t.h,a,s),l=!0,d="hsv"):h(t.h)&&h(t.s)&&h(t.l)&&(a=(0,o.Px)(t.s),u=(0,o.Px)(t.l),e=(0,r.YL)(t.h,a,u),l=!0,d="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(n=t.a)),n=(0,o.TV)(n),{ok:l,format:t.format||d,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}var s="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),u="[\\s|\\(]+(".concat(s,")[,|\\s]+(").concat(s,")[,|\\s]+(").concat(s,")\\s*\\)?"),l="[\\s|\\(]+(".concat(s,")[,|\\s]+(").concat(s,")[,|\\s]+(").concat(s,")[,|\\s]+(").concat(s,")\\s*\\)?"),c={CSS_UNIT:new RegExp(s),rgb:new RegExp("rgb"+u),rgba:new RegExp("rgba"+l),hsl:new RegExp("hsl"+u),hsla:new RegExp("hsla"+l),hsv:new RegExp("hsv"+u),hsva:new RegExp("hsva"+l),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function h(t){return Boolean(c.CSS_UNIT.exec(String(t)))}},24978:(t,e,n)=>{"use strict";n.d(e,{q:()=>s});var r=n(62456),i=n(42434),o=n(76250),a=n(89244),s=function(){function t(e,n){var i;if(void 0===e&&(e=""),void 0===n&&(n={}),e instanceof t)return e;"number"==typeof e&&(e=(0,r.oS)(e)),this.originalInput=e;var a=(0,o.RO)(e);this.originalInput=e,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(i=n.format)&&void 0!==i?i:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return t.prototype.isDark=function(){return this.getBrightness()<128},t.prototype.isLight=function(){return!this.isDark()},t.prototype.getBrightness=function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},t.prototype.getLuminance=function(){var t=this.toRgb(),e=t.r/255,n=t.g/255,r=t.b/255;return.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},t.prototype.getAlpha=function(){return this.a},t.prototype.setAlpha=function(t){return this.a=(0,a.TV)(t),this.roundA=Math.round(100*this.a)/100,this},t.prototype.isMonochrome=function(){return 0===this.toHsl().s},t.prototype.toHsv=function(){var t=(0,r.wE)(this.r,this.g,this.b);return{h:360*t.h,s:t.s,v:t.v,a:this.a}},t.prototype.toHsvString=function(){var t=(0,r.wE)(this.r,this.g,this.b),e=Math.round(360*t.h),n=Math.round(100*t.s),i=Math.round(100*t.v);return 1===this.a?"hsv(".concat(e,", ").concat(n,"%, ").concat(i,"%)"):"hsva(".concat(e,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},t.prototype.toHsl=function(){var t=(0,r.K6)(this.r,this.g,this.b);return{h:360*t.h,s:t.s,l:t.l,a:this.a}},t.prototype.toHslString=function(){var t=(0,r.K6)(this.r,this.g,this.b),e=Math.round(360*t.h),n=Math.round(100*t.s),i=Math.round(100*t.l);return 1===this.a?"hsl(".concat(e,", ").concat(n,"%, ").concat(i,"%)"):"hsla(".concat(e,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},t.prototype.toHex=function(t){return void 0===t&&(t=!1),(0,r.Ob)(this.r,this.g,this.b,t)},t.prototype.toHexString=function(t){return void 0===t&&(t=!1),"#"+this.toHex(t)},t.prototype.toHex8=function(t){return void 0===t&&(t=!1),(0,r.H)(this.r,this.g,this.b,this.a,t)},t.prototype.toHex8String=function(t){return void 0===t&&(t=!1),"#"+this.toHex8(t)},t.prototype.toHexShortString=function(t){return void 0===t&&(t=!1),1===this.a?this.toHexString(t):this.toHex8String(t)},t.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},t.prototype.toRgbString=function(){var t=Math.round(this.r),e=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(t,", ").concat(e,", ").concat(n,")"):"rgba(".concat(t,", ").concat(e,", ").concat(n,", ").concat(this.roundA,")")},t.prototype.toPercentageRgb=function(){var t=function(t){return"".concat(Math.round(100*(0,a.Cg)(t,255)),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},t.prototype.toPercentageRgbString=function(){var t=function(t){return Math.round(100*(0,a.Cg)(t,255))};return 1===this.a?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},t.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var t="#"+(0,r.Ob)(this.r,this.g,this.b,!1),e=0,n=Object.entries(i.D);e=0;return e||!r||!t.startsWith("hex")&&"name"!==t?("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString()):"name"===t&&0===this.a?this.toName():this.toRgbString()},t.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},t.prototype.clone=function(){return new t(this.toString())},t.prototype.lighten=function(e){void 0===e&&(e=10);var n=this.toHsl();return n.l+=e/100,n.l=(0,a.J$)(n.l),new t(n)},t.prototype.brighten=function(e){void 0===e&&(e=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-e/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-e/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-e/100*255))),new t(n)},t.prototype.darken=function(e){void 0===e&&(e=10);var n=this.toHsl();return n.l-=e/100,n.l=(0,a.J$)(n.l),new t(n)},t.prototype.tint=function(t){return void 0===t&&(t=10),this.mix("white",t)},t.prototype.shade=function(t){return void 0===t&&(t=10),this.mix("black",t)},t.prototype.desaturate=function(e){void 0===e&&(e=10);var n=this.toHsl();return n.s-=e/100,n.s=(0,a.J$)(n.s),new t(n)},t.prototype.saturate=function(e){void 0===e&&(e=10);var n=this.toHsl();return n.s+=e/100,n.s=(0,a.J$)(n.s),new t(n)},t.prototype.greyscale=function(){return this.desaturate(100)},t.prototype.spin=function(e){var n=this.toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,new t(n)},t.prototype.mix=function(e,n){void 0===n&&(n=50);var r=this.toRgb(),i=new t(e).toRgb(),o=n/100;return new t({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},t.prototype.analogous=function(e,n){void 0===e&&(e=6),void 0===n&&(n=30);var r=this.toHsl(),i=360/n,o=[this];for(r.h=(r.h-(i*e>>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(new t(r));return o},t.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new t(e)},t.prototype.monochromatic=function(e){void 0===e&&(e=6);for(var n=this.toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/e;e--;)a.push(new t({h:r,s:i,v:o})),o=(o+s)%1;return a},t.prototype.splitcomplement=function(){var e=this.toHsl(),n=e.h;return[this,new t({h:(n+72)%360,s:e.s,l:e.l}),new t({h:(n+216)%360,s:e.s,l:e.l})]},t.prototype.onBackground=function(e){var n=this.toRgb(),r=new t(e).toRgb(),i=n.a+r.a*(1-n.a);return new t({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},t.prototype.triad=function(){return this.polyad(3)},t.prototype.tetrad=function(){return this.polyad(4)},t.prototype.polyad=function(e){for(var n=this.toHsl(),r=n.h,i=[this],o=360/e,a=1;a{"use strict";function r(t,e){(function(t){return"string"==typeof t&&-1!==t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var n=function(t){return"string"==typeof t&&-1!==t.indexOf("%")}(t);return t=360===e?t:Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(String(t*e),10)/100),Math.abs(t-e)<1e-6?1:t=360===e?(t<0?t%e+e:t%e)/parseFloat(String(e)):t%e/parseFloat(String(e))}function i(t){return Math.min(1,Math.max(0,t))}function o(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function a(t){return t<=1?"".concat(100*Number(t),"%"):t}function s(t){return 1===t.length?"0"+t:String(t)}n.d(e,{Cg:()=>r,J$:()=>i,Px:()=>a,TV:()=>o,wl:()=>s})},33672:(t,e,n)=>{"use strict";n.d(e,{V1:()=>r});function r(t,e,n){if(void 0===n&&(n=Error),!t)throw new n(e)}},54819:(t,e,n)=>{"use strict";function r(t,e){var n=e&&e.cache?e.cache:c,r=e&&e.serializer?e.serializer:u;return(e&&e.strategy?e.strategy:s)(t,{cache:n,serializer:r})}function i(t,e,n,r){var i,o=null==(i=r)||"number"==typeof i||"boolean"==typeof i?r:n(r),a=e.get(o);return void 0===a&&(a=t.call(this,r),e.set(o,a)),a}function o(t,e,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=e.get(i);return void 0===o&&(o=t.apply(this,r),e.set(i,o)),o}function a(t,e,n,r,i){return n.bind(e,t,r,i)}function s(t,e){return a(t,this,1===t.length?i:o,e.cache.create(),e.serializer)}n.d(e,{B:()=>r,W:()=>h});var u=function(){return JSON.stringify(arguments)};function l(){this.cache=Object.create(null)}l.prototype.get=function(t){return this.cache[t]},l.prototype.set=function(t,e){this.cache[t]=e};var c={create:function(){return new l}},h={variadic:function(t,e){return a(t,this,o,e.cache.create(),e.serializer)},monadic:function(t,e){return a(t,this,i,e.cache.create(),e.serializer)}}},78786:(t,e,n)=>{"use strict";n.d(e,{ZE:()=>i,Im:()=>u,tv:()=>c,Tu:()=>v,eW:()=>s,oF:()=>l,N1:()=>g,N6:()=>f,jA:()=>p,Jp:()=>d,xm:()=>m,Qh:()=>h,qg:()=>ot});var r,i,o,a=n(31635);function s(t){return t.type===i.literal}function u(t){return t.type===i.argument}function l(t){return t.type===i.number}function c(t){return t.type===i.date}function h(t){return t.type===i.time}function d(t){return t.type===i.select}function f(t){return t.type===i.plural}function p(t){return t.type===i.pound}function m(t){return t.type===i.tag}function g(t){return!(!t||"object"!=typeof t||t.type!==o.number)}function v(t){return!(!t||"object"!=typeof t||t.type!==o.dateTime)}!function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(r||(r={})),function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"}(i||(i={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(o||(o={}));var y=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,b=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function x(t){var e={};return t.replace(b,(function(t){var n=t.length;switch(t[0]){case"G":e.era=4===n?"long":5===n?"narrow":"short";break;case"y":e.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=4===n?"long":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][n-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][n-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][n-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][n-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":e.minute=["numeric","2-digit"][n-1];break;case"s":e.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),e}var w=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var _=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,S=/^(@+)?(\+|#+)?[rs]?$/g,E=/(\*)(0+)|(#+)(0+)|(0+)/g,A=/^(0+)$/;function M(t){var e={};return"r"===t[t.length-1]?e.roundingPriority="morePrecision":"s"===t[t.length-1]&&(e.roundingPriority="lessPrecision"),t.replace(S,(function(t,n,r){return"string"!=typeof r?(e.minimumSignificantDigits=n.length,e.maximumSignificantDigits=n.length):"+"===r?e.minimumSignificantDigits=n.length:"#"===n[0]?e.maximumSignificantDigits=n.length:(e.minimumSignificantDigits=n.length,e.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),e}function C(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function T(t){var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var n=t.slice(0,2);if("+!"===n?(e.signDisplay="always",t=t.slice(2)):"+?"===n&&(e.signDisplay="exceptZero",t=t.slice(2)),!A.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function k(t){var e=C(t);return e||{}}function I(t){for(var e={},n=0,r=t;n1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(E,(function(t,n,r,i,o,a){if(n)e.minimumIntegerDigits=r.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(A.test(i.stem))e.minimumIntegerDigits=i.stem.length;else if(_.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(_,(function(t,n,r,i,o,a){return"*"===r?e.minimumFractionDigits=n.length:i&&"#"===i[0]?e.maximumFractionDigits=i.length:o&&a?(e.minimumFractionDigits=o.length,e.maximumFractionDigits=o.length+a.length):(e.minimumFractionDigits=n.length,e.maximumFractionDigits=n.length),""}));var o=i.options[0];"w"===o?e=(0,a.__assign)((0,a.__assign)({},e),{trailingZeroDisplay:"stripIfInteger"}):o&&(e=(0,a.__assign)((0,a.__assign)({},e),M(o)))}else if(S.test(i.stem))e=(0,a.__assign)((0,a.__assign)({},e),M(i.stem));else{var s=C(i.stem);s&&(e=(0,a.__assign)((0,a.__assign)({},e),s));var u=T(i.stem);u&&(e=(0,a.__assign)((0,a.__assign)({},e),u))}}return e}var N,P={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function O(t){var e=t.hourCycle;if(void 0===e&&t.hourCycles&&t.hourCycles.length&&(e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n,r=t.language;return"root"!==r&&(n=t.maximize().region),(P[n||""]||P[r||""]||P["".concat(r,"-001")]||P["001"])[0]}var L=new RegExp("^".concat(y.source,"*")),R=new RegExp("".concat(y.source,"*$"));function D(t,e){return{start:t,end:e}}var z=!!String.prototype.startsWith&&"_a".startsWith("a",1),F=!!String.fromCodePoint,B=!!Object.fromEntries,U=!!String.prototype.codePointAt,j=!!String.prototype.trimStart,V=!!String.prototype.trimEnd,H=!!Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},G=!0;try{G="a"===(null===(N=Q("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===N?void 0:N[0])}catch(t){G=!1}var W,X=z?function(t,e,n){return t.startsWith(e,n)}:function(t,e,n){return t.slice(n,n+e.length)===e},Y=F?String.fromCodePoint:function(){for(var t=[],e=0;eo;){if((n=t[o++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},q=B?Object.fromEntries:function(t){for(var e={},n=0,r=t;n=n)){var r,i=t.charCodeAt(e);return i<55296||i>56319||e+1===n||(r=t.charCodeAt(e+1))<56320||r>57343?i:r-56320+(i-55296<<10)+65536}},K=j?function(t){return t.trimStart()}:function(t){return t.replace(L,"")},Z=V?function(t){return t.trimEnd()}:function(t){return t.replace(R,"")};function Q(t,e){return new RegExp(t,e)}if(G){var J=Q("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");W=function(t,e){var n;return J.lastIndex=e,null!==(n=J.exec(t)[1])&&void 0!==n?n:""}}else W=function(t,e){for(var n=[];;){var r=$(t,e);if(void 0===r||nt(r)||rt(r))break;n.push(r),e+=r>=65536?2:1}return Y.apply(void 0,n)};var tt=function(){function t(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(t,e,n){for(var o=[];!this.isEOF();){var a=this.char();if(123===a){if((s=this.parseArgument(t,n)).err)return s;o.push(s.val)}else{if(125===a&&t>0)break;if(35!==a||"plural"!==e&&"selectordinal"!==e){if(60===a&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(r.UNMATCHED_CLOSING_TAG,D(this.clonePosition(),this.clonePosition()))}if(60===a&&!this.ignoreTag&&et(this.peek()||0)){if((s=this.parseTag(t,e)).err)return s;o.push(s.val)}else{var s;if((s=this.parseLiteral(t,e)).err)return s;o.push(s.val)}}else{var u=this.clonePosition();this.bump(),o.push({type:i.pound,location:D(u,this.clonePosition())})}}}return{val:o,err:null}},t.prototype.parseTag=function(t,e){var n=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:i.literal,value:"<".concat(o,"/>"),location:D(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(t+1,e,!0);if(a.err)return a;var s=a.val,u=this.clonePosition();if(this.bumpIf("")?{val:{type:i.tag,value:o,children:s,location:D(n,this.clonePosition())},err:null}:this.error(r.INVALID_TAG,D(u,this.clonePosition())))}return this.error(r.UNCLOSED_TAG,D(n,this.clonePosition()))}return this.error(r.INVALID_TAG,D(n,this.clonePosition()))},t.prototype.parseTagName=function(){var t,e=this.offset();for(this.bump();!this.isEOF()&&(45===(t=this.char())||46===t||t>=48&&t<=57||95===t||t>=97&&t<=122||t>=65&&t<=90||183==t||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039);)this.bump();return this.message.slice(e,this.offset())},t.prototype.parseLiteral=function(t,e){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(e);if(o)r+=o;else{var a=this.tryParseUnquoted(t,e);if(a)r+=a;else{var s=this.tryParseLeftAngleBracket();if(!s)break;r+=s}}}var u=D(n,this.clonePosition());return{val:{type:i.literal,value:r,location:u},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(et(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t},t.prototype.tryParseQuote=function(t){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}e.push(39),this.bump()}else e.push(n);this.bump()}return Y.apply(void 0,e)},t.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===e||"selectordinal"===e)||125===n&&t>0?null:(this.bump(),Y(n))},t.prototype.parseArgument=function(t,e){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,D(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(r.EMPTY_ARGUMENT,D(n,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(r.MALFORMED_ARGUMENT,D(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,D(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:i.argument,value:o,location:D(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,D(n,this.clonePosition())):this.parseArgumentOptions(t,e,o,n);default:return this.error(r.MALFORMED_ARGUMENT,D(n,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),n=W(this.message,e),r=e+n.length;return this.bumpTo(r),{value:n,location:D(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,e,n,s){var u,l=this.clonePosition(),c=this.parseIdentifierIfPossible().value,h=this.clonePosition();switch(c){case"":return this.error(r.EXPECT_ARGUMENT_TYPE,D(l,h));case"number":case"date":case"time":this.bumpSpace();var d=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition();if((_=this.parseSimpleArgStyleIfPossible()).err)return _;if(0===(v=Z(_.val)).length)return this.error(r.EXPECT_ARGUMENT_STYLE,D(this.clonePosition(),this.clonePosition()));d={style:v,styleLocation:D(f,this.clonePosition())}}if((S=this.tryParseArgumentClose(s)).err)return S;var p=D(s,this.clonePosition());if(d&&X(null==d?void 0:d.style,"::",0)){var m=K(d.style.slice(2));if("number"===c)return(_=this.parseNumberSkeletonFromString(m,d.styleLocation)).err?_:{val:{type:i.number,value:n,location:p,style:_.val},err:null};if(0===m.length)return this.error(r.EXPECT_DATE_TIME_SKELETON,p);var g=m;this.locale&&(g=function(t,e){for(var n="",r=0;r>1),u=O(e);for("H"!=u&&"k"!=u||(s=0);s-- >0;)n+="a";for(;a-- >0;)n=u+n}else n+="J"===i?"H":i}return n}(m,this.locale));var v={type:o.dateTime,pattern:g,location:d.styleLocation,parsedOptions:this.shouldParseSkeletons?x(g):{}};return{val:{type:"date"===c?i.date:i.time,value:n,location:p,style:v},err:null}}return{val:{type:"number"===c?i.number:"date"===c?i.date:i.time,value:n,location:p,style:null!==(u=null==d?void 0:d.style)&&void 0!==u?u:null},err:null};case"plural":case"selectordinal":case"select":var y=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(r.EXPECT_SELECT_ARGUMENT_OPTIONS,D(y,(0,a.__assign)({},y)));this.bumpSpace();var b=this.parseIdentifierIfPossible(),w=0;if("select"!==c&&"offset"===b.value){if(!this.bumpIf(":"))return this.error(r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,D(this.clonePosition(),this.clonePosition()));var _;if(this.bumpSpace(),(_=this.tryParseDecimalInteger(r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,r.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return _;this.bumpSpace(),b=this.parseIdentifierIfPossible(),w=_.val}var S,E=this.tryParsePluralOrSelectOptions(t,c,e,b);if(E.err)return E;if((S=this.tryParseArgumentClose(s)).err)return S;var A=D(s,this.clonePosition());return"select"===c?{val:{type:i.select,value:n,options:q(E.val),location:A},err:null}:{val:{type:i.plural,value:n,options:q(E.val),offset:w,pluralType:"plural"===c?"cardinal":"ordinal",location:A},err:null};default:return this.error(r.INVALID_ARGUMENT_TYPE,D(l,h))}},t.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,D(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(r.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,D(n,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(t>0))return{val:this.message.slice(e.offset,this.offset()),err:null};t-=1;break;default:this.bump()}}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(t,e){var n=[];try{n=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var e=[],n=0,r=t.split(w).filter((function(t){return t.length>0}));n=48&&a<=57))break;i=!0,o=10*o+(a-48),this.bump()}var s=D(r,this.clonePosition());return i?H(o*=n)?{val:o,err:null}:this.error(e,s):this.error(t,s)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=$(this.message,t);if(void 0===e)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},t.prototype.bump=function(){if(!this.isEOF()){var t=this.char();10===t?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},t.prototype.bumpIf=function(t){if(X(this.message,t,this.offset())){for(var e=0;e=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(e>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&nt(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),n=this.message.charCodeAt(e+(t>=65536?2:1));return null!=n?n:null},t}();function et(t){return t>=97&&t<=122||t>=65&&t<=90}function nt(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}function rt(t){return t>=33&&t<=35||36===t||t>=37&&t<=39||40===t||41===t||42===t||43===t||44===t||45===t||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||91===t||92===t||93===t||94===t||96===t||123===t||124===t||125===t||126===t||161===t||t>=162&&t<=165||166===t||167===t||169===t||171===t||172===t||174===t||176===t||177===t||182===t||187===t||191===t||215===t||247===t||t>=8208&&t<=8213||t>=8214&&t<=8215||8216===t||8217===t||8218===t||t>=8219&&t<=8220||8221===t||8222===t||8223===t||t>=8224&&t<=8231||t>=8240&&t<=8248||8249===t||8250===t||t>=8251&&t<=8254||t>=8257&&t<=8259||8260===t||8261===t||8262===t||t>=8263&&t<=8273||8274===t||8275===t||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||8608===t||t>=8609&&t<=8610||8611===t||t>=8612&&t<=8613||8614===t||t>=8615&&t<=8621||8622===t||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||8658===t||8659===t||8660===t||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||8968===t||8969===t||8970===t||8971===t||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||9001===t||9002===t||t>=9003&&t<=9083||9084===t||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||9655===t||t>=9656&&t<=9664||9665===t||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||9839===t||t>=9840&&t<=10087||10088===t||10089===t||10090===t||10091===t||10092===t||10093===t||10094===t||10095===t||10096===t||10097===t||10098===t||10099===t||10100===t||10101===t||t>=10132&&t<=10175||t>=10176&&t<=10180||10181===t||10182===t||t>=10183&&t<=10213||10214===t||10215===t||10216===t||10217===t||10218===t||10219===t||10220===t||10221===t||10222===t||10223===t||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||10627===t||10628===t||10629===t||10630===t||10631===t||10632===t||10633===t||10634===t||10635===t||10636===t||10637===t||10638===t||10639===t||10640===t||10641===t||10642===t||10643===t||10644===t||10645===t||10646===t||10647===t||10648===t||t>=10649&&t<=10711||10712===t||10713===t||10714===t||10715===t||t>=10716&&t<=10747||10748===t||10749===t||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||11158===t||t>=11159&&t<=11263||t>=11776&&t<=11777||11778===t||11779===t||11780===t||11781===t||t>=11782&&t<=11784||11785===t||11786===t||11787===t||11788===t||11789===t||t>=11790&&t<=11798||11799===t||t>=11800&&t<=11801||11802===t||11803===t||11804===t||11805===t||t>=11806&&t<=11807||11808===t||11809===t||11810===t||11811===t||11812===t||11813===t||11814===t||11815===t||11816===t||11817===t||t>=11818&&t<=11822||11823===t||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||11840===t||11841===t||11842===t||t>=11843&&t<=11855||t>=11856&&t<=11857||11858===t||t>=11859&&t<=11903||t>=12289&&t<=12291||12296===t||12297===t||12298===t||12299===t||12300===t||12301===t||12302===t||12303===t||12304===t||12305===t||t>=12306&&t<=12307||12308===t||12309===t||12310===t||12311===t||12312===t||12313===t||12314===t||12315===t||12316===t||12317===t||t>=12318&&t<=12319||12320===t||12336===t||64830===t||64831===t||t>=65093&&t<=65094}function it(t){t.forEach((function(t){if(delete t.location,d(t)||f(t))for(var e in t.options)delete t.options[e].location,it(t.options[e].value);else l(t)&&g(t.style)||(c(t)||h(t))&&v(t.style)?delete t.style.location:m(t)&&it(t.children)}))}function ot(t,e){void 0===e&&(e={}),e=(0,a.__assign)({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var n=new tt(t,e).parse();if(n.err){var i=SyntaxError(r[n.err.kind]);throw i.location=n.err.location,i.originalMessage=n.err.message,i}return(null==e?void 0:e.captureLocation)||it(n.val),n.val}},89160:(t,e,n)=>{"use strict";n.d(e,{Ho:()=>c,OC:()=>a,hr:()=>u,pg:()=>l,sb:()=>h,uo:()=>s});var r,i=n(31635);!function(t){t.FORMAT_ERROR="FORMAT_ERROR",t.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",t.INVALID_CONFIG="INVALID_CONFIG",t.MISSING_DATA="MISSING_DATA",t.MISSING_TRANSLATION="MISSING_TRANSLATION"}(r||(r={}));var o=function(t){function e(n,r,i){var o=this,a=i?i instanceof Error?i:new Error(String(i)):void 0;return(o=t.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,"\n").concat(a?"\n".concat(a.message,"\n").concat(a.stack):""))||this).code=n,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,e),o}return(0,i.__extends)(e,t),e}(Error),a=function(t){function e(e,n){return t.call(this,r.UNSUPPORTED_FORMATTER,e,n)||this}return(0,i.__extends)(e,t),e}(o),s=function(t){function e(e,n){return t.call(this,r.INVALID_CONFIG,e,n)||this}return(0,i.__extends)(e,t),e}(o),u=function(t){function e(e,n){return t.call(this,r.MISSING_DATA,e,n)||this}return(0,i.__extends)(e,t),e}(o),l=function(t){function e(e,n,i){var o=t.call(this,r.FORMAT_ERROR,"".concat(e,"\nLocale: ").concat(n,"\n"),i)||this;return o.locale=n,o}return(0,i.__extends)(e,t),e}(o),c=function(t){function e(e,n,r,i){var o=t.call(this,"".concat(e,"\nMessageID: ").concat(null==r?void 0:r.id,"\nDefault Message: ").concat(null==r?void 0:r.defaultMessage,"\nDescription: ").concat(null==r?void 0:r.description,"\n"),n,i)||this;return o.descriptor=r,o.locale=n,o}return(0,i.__extends)(e,t),e}(l),h=function(t){function e(e,n){var i=t.call(this,r.MISSING_TRANSLATION,'Missing message: "'.concat(e.id,'" for locale "').concat(n,'", using ').concat(e.defaultMessage?"default message (".concat("string"==typeof e.defaultMessage?e.defaultMessage:e.defaultMessage.map((function(t){var e;return null!==(e=t.value)&&void 0!==e?e:JSON.stringify(t)})).join(),")"):"id"," as fallback."))||this;return i.descriptor=e,i}return(0,i.__extends)(e,t),e}(o)},87683:(t,e,n)=>{"use strict";n.d(e,{F3:()=>d,GT:()=>h,J9:()=>s,JF:()=>u,MT:()=>l});var r=n(31635),i=n(62587),o=n(54819),a=n(89160);function s(t,e,n){return void 0===n&&(n={}),e.reduce((function(e,r){return r in t?e[r]=t[r]:r in n&&(e[r]=n[r]),e}),{})}var u={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(t){0},onWarn:function(t){0}};function l(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function c(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,n){t[e]=n}}}}}function h(t){void 0===t&&(t={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var e=Intl.RelativeTimeFormat,n=Intl.ListFormat,a=Intl.DisplayNames,s=(0,o.B)((function(){for(var t,e=[],n=0;n>>0)+"_",i=0;return function t(r){if(this instanceof t)throw new TypeError("Symbol is not a constructor");return new e(n+(r||"")+"_"+i++,r)}})),o("Symbol.iterator",(function(t){if(t)return t;t=Symbol("Symbol.iterator");for(var n="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),o=0;oe&&(e=Math.max(0,r+e)),(null==n||n>r)&&(n=r),0>(n=Number(n))&&(n=Math.max(0,r+n)),e=Number(e||0);e(e=e||0)&&(e=Math.max(e+r,0));e>4),64!=a&&(e(o<<4&240|a>>2),64!=s&&e(a<<6&192|s))}}(t,(function(t){r[i++]=t})),i!==n?r.subarray(0,i):r}function O(){if(!N){N={};for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"],n=0;5>n;n++){var r=t.concat(e[n].split(""));I[n]=r;for(var i=0;i>2];a=e[(3&a)<<4|s>>4],s=e[(15&s)<<2|u>>6],u=e[63&u],n[o++]=l+a+s+u}switch(l=0,u=r,t.length-i){case 2:u=e[(15&(l=t[i+1]))<<2]||r;case 1:t=t[i],n[o]=e[t>>2]+e[(3&t)<<4|l>>4]+u+r}return n.join("")}for(e="";10240t,n=(t=Math.abs(t))>>>0;t=Math.floor((t-n)/4294967296),e&&(e=(n=s($(n,t))).next().value,t=n.next().value,n=e),G=n>>>0,W=t>>>0}var Y,q="function"==typeof BigInt;function $(t,e){return e=~e,t?t=1+~t:e+=1,[t,e]}function K(t,e){this.i=t>>>0,this.h=e>>>0}function Z(t){if(!t)return Y||(Y=new K(0,0));if(!/^-?\d+$/.test(t))return null;if(16>t.length)X(Number(t));else if(q)t=BigInt(t),G=Number(t&BigInt(4294967295))>>>0,W=Number(t>>BigInt(32)&BigInt(4294967295));else{var e=+("-"===t[0]);W=G=0;for(var n=t.length,r=e,i=(n-e)%6+e;i<=n;r=i,i+=6)r=Number(t.slice(r,i)),W*=1e6,4294967296<=(G=1e6*G+r)&&(W+=G/4294967296|0,G%=4294967296);e&&(t=(e=s($(G,W))).next().value,e=e.next().value,G=t,W=e)}return new K(G,W)}function Q(t,e){return Error("Invalid wire type: "+t+" (at position "+e+")")}function J(){return Error("Failed to read varint, encoding is invalid.")}function tt(t,e){return Error("Tried to read past the end of the data "+e+" > "+t)}function et(){throw Error("Invalid UTF8")}function nt(t,e){return e=String.fromCharCode.apply(null,e),null==t?e:t+e}var rt,it,ot,at=void 0,st="undefined"!=typeof TextDecoder,ut="undefined"!=typeof TextEncoder;function lt(t){if(t!==V)throw Error("illegal external caller")}function ct(t,e){if(lt(e),this.V=t,null!=t&&0===t.length)throw Error("ByteString should be constructed with non-empty values")}function ht(){return ot||(ot=new ct(null,V))}function dt(t){lt(V);var e=t.V;return null==(e=null==e||L&&null!=e&&e instanceof Uint8Array?e:"string"==typeof e?U(e):null)?e:t.V=e}function ft(t,e){this.i=null,this.m=!1,this.h=this.j=this.l=0,pt(this,t,e)}function pt(t,e,n){n=void 0===n?{}:n,t.S=void 0!==n.S&&n.S,e&&(e=function(t){if("string"==typeof t)return{buffer:U(t),C:!1};if(Array.isArray(t))return{buffer:new Uint8Array(t),C:!1};if(t.constructor===Uint8Array)return{buffer:t,C:!1};if(t.constructor===ArrayBuffer)return{buffer:new Uint8Array(t),C:!1};if(t.constructor===ct)return{buffer:dt(t)||j(),C:!0};if(t instanceof Uint8Array)return{buffer:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),C:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers")}(e),t.i=e.buffer,t.m=e.C,t.l=0,t.j=t.i.length,t.h=t.l)}function mt(t,e){if(t.h=e,e>t.j)throw tt(t.j,e)}function gt(t){var e=t.i,n=t.h,r=e[n++],i=127&r;if(128&r&&(i|=(127&(r=e[n++]))<<7,128&r&&(i|=(127&(r=e[n++]))<<14,128&r&&(i|=(127&(r=e[n++]))<<21,128&r&&(i|=(r=e[n++])<<28,128&r&&128&e[n++]&&128&e[n++]&&128&e[n++]&&128&e[n++]&&128&e[n++])))))throw J();return mt(t,n),i}function vt(t,e){if(0>e)throw Error("Tried to read a negative byte length: "+e);var n=t.h,r=n+e;if(r>t.j)throw tt(e,t.j-n);return t.h=r,n}ft.prototype.reset=function(){this.h=this.l};var yt=[];function bt(){this.h=[]}function xt(t,e,n){for(;0>>7|n<<25)>>>0,n>>>=7;t.h.push(e)}function wt(t,e){for(;127>>=7;t.h.push(e)}function _t(t,e){if(yt.length){var n=yt.pop();pt(n,t,e),t=n}else t=new ft(t,e);this.h=t,this.j=this.h.h,this.i=this.l=-1,this.setOptions(e)}function St(t){var e=t.h;if(e.h==e.j)return!1;t.j=t.h.h;var n=gt(t.h)>>>0;if(e=n>>>3,!(0<=(n&=7)&&5>=n))throw Q(n,t.j);if(1>e)throw Error("Invalid field number: "+e+" (at position "+t.j+")");return t.l=e,t.i=n,!0}function Et(t){switch(t.i){case 0:if(0!=t.i)Et(t);else t:{for(var e=(t=t.h).h,n=e+10,r=t.i;e>>0,mt(t=t.h,t.h+e));break;case 5:mt(t=t.h,t.h+4);break;case 3:for(e=t.l;;){if(!St(t))throw Error("Unmatched start-group tag: stream EOF");if(4==t.i){if(t.l!=e)throw Error("Unmatched end-group tag");break}Et(t)}break;default:throw Q(t.i,t.j)}}bt.prototype.length=function(){return this.h.length},bt.prototype.end=function(){var t=this.h;return this.h=[],t},_t.prototype.setOptions=function(t){t=void 0===t?{}:t,this.ca=void 0!==t.ca&&t.ca},_t.prototype.reset=function(){this.h.reset(),this.j=this.h.h,this.i=this.l=-1};var At=[];function Mt(){this.j=[],this.i=0,this.h=new bt}function Ct(t,e){0!==e.length&&(t.j.push(e),t.i+=e.length)}var Tt="function"==typeof Symbol&&"symbol"==typeof Symbol()?Symbol():void 0;function kt(t,e){return Tt?t[Tt]|=e:void 0!==t.A?t.A|=e:(Object.defineProperties(t,{A:{value:e,configurable:!0,writable:!0,enumerable:!1}}),e)}function It(t,e){Tt?t[Tt]&&(t[Tt]&=~e):void 0!==t.A&&(t.A&=~e)}function Nt(t){var e;return null==(e=Tt?t[Tt]:t.A)?0:e}function Pt(t,e){Tt?t[Tt]=e:void 0!==t.A?t.A=e:Object.defineProperties(t,{A:{value:e,configurable:!0,writable:!0,enumerable:!1}})}function Ot(t){return kt(t,1),t}function Lt(t,e){Pt(e,-51&t)}function Rt(t,e){Pt(e,-41&t|18)}var Dt={};function zt(t){return null!==t&&"object"==typeof t&&!Array.isArray(t)&&t.constructor===Object}var Ft,Bt,Ut=[];function jt(t){if(2&Nt(t.o))throw Error("Cannot mutate an immutable Message")}function Vt(t){var e=t.length;(e=e?t[e-1]:void 0)&&zt(e)?e.g=1:(e={},t.push((e.g=1,e)))}function Ht(t){var e=t.i+t.G;return t.B||(t.B=t.o[e]={})}function Gt(t,e){return-1===e?null:e>=t.i?t.B?t.B[e]:void 0:t.o[e+t.G]}function Wt(t,e,n,r){jt(t),Xt(t,e,n,r)}function Xt(t,e,n,r){t.j&&(t.j=void 0),e>=t.i||r?Ht(t)[e]=n:(t.o[e+t.G]=n,(t=t.B)&&e in t&&delete t[e])}function Yt(t,e,n,r){var i=Gt(t,e);Array.isArray(i)||(i=Ft);var o=Nt(i);if(1&o||Ot(i),r)2&o||kt(i,2),1&n||Object.freeze(i);else{r=!(2&n);var a=2&o;1&n||!a?r&&16&o&&!a&&It(i,16):Xt(t,e,i=Ot(Array.prototype.slice.call(i)))}return i}function qt(t,e){var n=Gt(t,e),r=null==n?n:"number"==typeof n||"NaN"===n||"Infinity"===n||"-Infinity"===n?Number(n):void 0;return null!=r&&r!==n&&Xt(t,e,r),r}function $t(t,e,n,r,i){t.h||(t.h={});var o=t.h[n],a=Yt(t,n,3,i);if(!o){var s=a;o=[];var u=!!(16&Nt(t.o));a=!!(2&Nt(s));var l=s;!i&&a&&(s=Array.prototype.slice.call(s));for(var c=a,h=0;ha&&"number"!=typeof t[a]){var s=t[a++];n(e,s)}for(;a>>0)>>31)+1,o=a>>>23&255,a&=8388607,Wt(e,n,255==o?a?NaN:1/0*t:0==o?t*Math.pow(2,-149)*a:t*Math.pow(2,o-150)*(a+Math.pow(2,23))),!0}),(function(t,e,n){if(null!=(e=qt(e,n))){wt(t.h,8*n+5),t=t.h;var r=+e;0===r?0<1/r?G=W=0:(W=0,G=2147483648):isNaN(r)?(W=0,G=2147483647):34028234663852886e22<(r=(n=0>r?-2147483648:0)?-r:r)?(W=0,G=(2139095040|n)>>>0):11754943508222875e-54>r?(r=Math.round(r/Math.pow(2,-149)),W=0,G=(n|r)>>>0):(e=Math.floor(Math.log(r)/Math.LN2),r*=Math.pow(2,-e),16777216<=(r=Math.round(8388608*r))&&++e,W=0,G=(n|e+127<<23|8388607&r)>>>0),n=G,t.h.push(n>>>0&255),t.h.push(n>>>8&255),t.h.push(n>>>16&255),t.h.push(n>>>24&255)}})),ze=Re((function(t,e,n){if(0!==t.i)return!1;var r=t.h,i=0,o=t=0,a=r.i,s=r.h;do{var u=a[s++];i|=(127&u)<o&&128&u);for(32>4),o=3;32>o&&128&u;o+=7)t|=(127&(u=a[s++]))<u))throw J();return r=i>>>0,(t=2147483648&(u=t>>>0))&&(u=~u>>>0,0==(r=1+~r>>>0)&&(u=u+1>>>0)),r=4294967296*u+(r>>>0),Wt(e,n,t?-r:r),!0}),(function(t,e,n){null!=(e=Gt(e,n))&&("string"==typeof e&&Z(e),null!=e&&(wt(t.h,8*n),"number"==typeof e?(t=t.h,X(e),xt(t,G,W)):(n=Z(e),xt(t.h,n.i,n.h))))})),Fe=Re((function(t,e,n){return 0===t.i&&(Wt(e,n,gt(t.h)),!0)}),(function(t,e,n){if(null!=(e=Gt(e,n))&&null!=e)if(wt(t.h,8*n),t=t.h,0<=(n=e))wt(t,n);else{for(e=0;9>e;e++)t.h.push(127&n|128),n>>=7;t.h.push(1)}})),Be=Re((function(t,e,n){if(2!==t.i)return!1;var r=gt(t.h)>>>0,i=vt(t=t.h,r);if(t=t.i,st){var o,a=t;(o=rt)||(o=rt=new TextDecoder("utf-8",{fatal:!0})),t=i+r,a=0===i&&t===a.length?a:a.subarray(i,t);try{var s=o.decode(a)}catch(t){if(void 0===at){try{o.decode(new Uint8Array([128]))}catch(t){}try{o.decode(new Uint8Array([97])),at=!0}catch(t){at=!1}}throw!at&&(rt=void 0),t}}else{r=(s=i)+r,i=[];for(var u,l,c=null;s(u=t[s++])?i.push(u):224>u?s>=r?et():(l=t[s++],194>u||128!=(192&l)?(s--,et()):i.push((31&u)<<6|63&l)):240>u?s>=r-1?et():128!=(192&(l=t[s++]))||224===u&&160>l||237===u&&160<=l||128!=(192&(a=t[s++]))?(s--,et()):i.push((15&u)<<12|(63&l)<<6|63&a):244>=u?s>=r-2?et():128!=(192&(l=t[s++]))||l-144+(u<<28)>>30||128!=(192&(a=t[s++]))||128!=(192&(o=t[s++]))?(s--,et()):(u=(7&u)<<18|(63&l)<<12|(63&a)<<6|63&o,u-=65536,i.push(55296+(u>>10&1023),56320+(1023&u))):et(),8192<=i.length&&(c=nt(c,i),i.length=0);s=nt(c,i)}return Wt(e,n,s),!0}),(function(t,e,n){if(null!=(e=Gt(e,n))){var r=!1;if(r=void 0!==r&&r,ut){if(r&&/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(e))throw Error("Found an unpaired surrogate");e=(it||(it=new TextEncoder)).encode(e)}else{for(var i=0,o=new Uint8Array(3*e.length),a=0;as)o[i++]=s;else{if(2048>s)o[i++]=s>>6|192;else{if(55296<=s&&57343>=s){if(56319>=s&&a=u){s=1024*(s-55296)+u-56320+65536,o[i++]=s>>18|240,o[i++]=s>>12&63|128,o[i++]=s>>6&63|128,o[i++]=63&s|128;continue}a--}if(r)throw Error("Found an unpaired surrogate");s=65533}o[i++]=s>>12|224,o[i++]=s>>6&63|128}o[i++]=63&s|128}}e=i===o.length?o:o.subarray(0,i)}wt(t.h,8*n+2),wt(t.h,e.length),Ct(t,t.h.end()),Ct(t,e)}})),Ue=Re((function(t,e,n,r,i){if(2!==t.i)return!1;e=Qt(e,n,r),n=t.h.j,r=gt(t.h)>>>0;var o=t.h.h+r,a=o-n;if(0>=a&&(t.h.j=o,i(e,t,void 0,void 0,void 0),a=o-t.h.h),a)throw Error("Message parsing ended unexpectedly. Expected to read "+r+" bytes, instead read "+(r-a)+" bytes, either the data ended unexpectedly or the message misreported its own length");return t.h.h=o,t.h.j=n,!0}),(function(t,e,n,r,i){if(null!=(e=Kt(e,r,n)))for(r=0;r>>=7,a.i++;o.push(s),a.i++}}));function je(t){return function(e,n){t:{if(At.length){var r=At.pop();r.setOptions(n),pt(r.h,e,n),e=r}else e=new _t(e,n);try{var i=Pe(t),o=Oe(new i.P,e,i);break t}finally{(i=e.h).i=null,i.m=!1,i.l=0,i.j=0,i.h=0,i.S=!1,e.l=-1,e.i=-1,100>At.length&&At.push(e)}o=void 0}return o}}function Ve(t){return function(){var e=new Mt;Le(this,e,Me(t)),Ct(e,e.h.end());for(var n=new Uint8Array(e.i),r=e.j,i=r.length,o=0,a=0;a>>0)+"_",i=0;return function t(r){if(this instanceof t)throw new TypeError("Symbol is not a constructor");return new e(n+(r||"")+"_"+i++,r)}})),o("Symbol.iterator",(function(t){if(t)return t;t=Symbol("Symbol.iterator");for(var n="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),o=0;oe&&(e=Math.max(0,r+e)),(null==n||n>r)&&(n=r),0>(n=Number(n))&&(n=Math.max(0,r+n)),e=Number(e||0);e(e=e||0)&&(e=Math.max(e+r,0));e>4),64!=a&&(e(o<<4&240|a>>2),64!=s&&e(a<<6&192|s))}}(t,(function(t){r[i++]=t})),i!==n?r.subarray(0,i):r}function O(){if(!N){N={};for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"],n=0;5>n;n++){var r=t.concat(e[n].split(""));I[n]=r;for(var i=0;i>2];a=e[(3&a)<<4|s>>4],s=e[(15&s)<<2|u>>6],u=e[63&u],n[o++]=l+a+s+u}switch(l=0,u=r,t.length-i){case 2:u=e[(15&(l=t[i+1]))<<2]||r;case 1:t=t[i],n[o]=e[t>>2]+e[(3&t)<<4|l>>4]+u+r}return n.join("")}for(e="";10240t,n=(t=Math.abs(t))>>>0;t=Math.floor((t-n)/4294967296),e&&(e=(n=s($(n,t))).next().value,t=n.next().value,n=e),G=n>>>0,W=t>>>0}var Y,q="function"==typeof BigInt;function $(t,e){return e=~e,t?t=1+~t:e+=1,[t,e]}function K(t,e){this.i=t>>>0,this.h=e>>>0}function Z(t){if(!t)return Y||(Y=new K(0,0));if(!/^-?\d+$/.test(t))return null;if(16>t.length)X(Number(t));else if(q)t=BigInt(t),G=Number(t&BigInt(4294967295))>>>0,W=Number(t>>BigInt(32)&BigInt(4294967295));else{var e=+("-"===t[0]);W=G=0;for(var n=t.length,r=e,i=(n-e)%6+e;i<=n;r=i,i+=6)r=Number(t.slice(r,i)),W*=1e6,4294967296<=(G=1e6*G+r)&&(W+=G/4294967296|0,G%=4294967296);e&&(t=(e=s($(G,W))).next().value,e=e.next().value,G=t,W=e)}return new K(G,W)}function Q(t,e){return Error("Invalid wire type: "+t+" (at position "+e+")")}function J(){return Error("Failed to read varint, encoding is invalid.")}function tt(t,e){return Error("Tried to read past the end of the data "+e+" > "+t)}function et(){throw Error("Invalid UTF8")}function nt(t,e){return e=String.fromCharCode.apply(null,e),null==t?e:t+e}var rt,it,ot,at=void 0,st="undefined"!=typeof TextDecoder,ut="undefined"!=typeof TextEncoder;function lt(t){if(t!==V)throw Error("illegal external caller")}function ct(t,e){if(lt(e),this.V=t,null!=t&&0===t.length)throw Error("ByteString should be constructed with non-empty values")}function ht(){return ot||(ot=new ct(null,V))}function dt(t){lt(V);var e=t.V;return null==(e=null==e||L&&null!=e&&e instanceof Uint8Array?e:"string"==typeof e?U(e):null)?e:t.V=e}function ft(t,e){this.i=null,this.m=!1,this.h=this.j=this.l=0,pt(this,t,e)}function pt(t,e,n){n=void 0===n?{}:n,t.S=void 0!==n.S&&n.S,e&&(e=function(t){if("string"==typeof t)return{buffer:U(t),C:!1};if(Array.isArray(t))return{buffer:new Uint8Array(t),C:!1};if(t.constructor===Uint8Array)return{buffer:t,C:!1};if(t.constructor===ArrayBuffer)return{buffer:new Uint8Array(t),C:!1};if(t.constructor===ct)return{buffer:dt(t)||j(),C:!0};if(t instanceof Uint8Array)return{buffer:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),C:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers")}(e),t.i=e.buffer,t.m=e.C,t.l=0,t.j=t.i.length,t.h=t.l)}function mt(t,e){if(t.h=e,e>t.j)throw tt(t.j,e)}function gt(t){var e=t.i,n=t.h,r=e[n++],i=127&r;if(128&r&&(i|=(127&(r=e[n++]))<<7,128&r&&(i|=(127&(r=e[n++]))<<14,128&r&&(i|=(127&(r=e[n++]))<<21,128&r&&(i|=(r=e[n++])<<28,128&r&&128&e[n++]&&128&e[n++]&&128&e[n++]&&128&e[n++]&&128&e[n++])))))throw J();return mt(t,n),i}function vt(t,e){if(0>e)throw Error("Tried to read a negative byte length: "+e);var n=t.h,r=n+e;if(r>t.j)throw tt(e,t.j-n);return t.h=r,n}ft.prototype.reset=function(){this.h=this.l};var yt=[];function bt(){this.h=[]}function xt(t,e,n){for(;0>>7|n<<25)>>>0,n>>>=7;t.h.push(e)}function wt(t,e){for(;127>>=7;t.h.push(e)}function _t(t,e){if(yt.length){var n=yt.pop();pt(n,t,e),t=n}else t=new ft(t,e);this.h=t,this.j=this.h.h,this.i=this.l=-1,this.setOptions(e)}function St(t){var e=t.h;if(e.h==e.j)return!1;t.j=t.h.h;var n=gt(t.h)>>>0;if(e=n>>>3,!(0<=(n&=7)&&5>=n))throw Q(n,t.j);if(1>e)throw Error("Invalid field number: "+e+" (at position "+t.j+")");return t.l=e,t.i=n,!0}function Et(t){switch(t.i){case 0:if(0!=t.i)Et(t);else t:{for(var e=(t=t.h).h,n=e+10,r=t.i;e>>0,mt(t=t.h,t.h+e));break;case 5:mt(t=t.h,t.h+4);break;case 3:for(e=t.l;;){if(!St(t))throw Error("Unmatched start-group tag: stream EOF");if(4==t.i){if(t.l!=e)throw Error("Unmatched end-group tag");break}Et(t)}break;default:throw Q(t.i,t.j)}}bt.prototype.length=function(){return this.h.length},bt.prototype.end=function(){var t=this.h;return this.h=[],t},_t.prototype.setOptions=function(t){t=void 0===t?{}:t,this.ca=void 0!==t.ca&&t.ca},_t.prototype.reset=function(){this.h.reset(),this.j=this.h.h,this.i=this.l=-1};var At=[];function Mt(){this.j=[],this.i=0,this.h=new bt}function Ct(t,e){0!==e.length&&(t.j.push(e),t.i+=e.length)}var Tt="function"==typeof Symbol&&"symbol"==typeof Symbol()?Symbol():void 0;function kt(t,e){return Tt?t[Tt]|=e:void 0!==t.A?t.A|=e:(Object.defineProperties(t,{A:{value:e,configurable:!0,writable:!0,enumerable:!1}}),e)}function It(t,e){Tt?t[Tt]&&(t[Tt]&=~e):void 0!==t.A&&(t.A&=~e)}function Nt(t){var e;return null==(e=Tt?t[Tt]:t.A)?0:e}function Pt(t,e){Tt?t[Tt]=e:void 0!==t.A?t.A=e:Object.defineProperties(t,{A:{value:e,configurable:!0,writable:!0,enumerable:!1}})}function Ot(t){return kt(t,1),t}function Lt(t,e){Pt(e,-51&t)}function Rt(t,e){Pt(e,-41&t|18)}var Dt={};function zt(t){return null!==t&&"object"==typeof t&&!Array.isArray(t)&&t.constructor===Object}var Ft,Bt,Ut=[];function jt(t){if(2&Nt(t.o))throw Error("Cannot mutate an immutable Message")}function Vt(t){var e=t.length;(e=e?t[e-1]:void 0)&&zt(e)?e.g=1:(e={},t.push((e.g=1,e)))}function Ht(t){var e=t.i+t.G;return t.B||(t.B=t.o[e]={})}function Gt(t,e){return-1===e?null:e>=t.i?t.B?t.B[e]:void 0:t.o[e+t.G]}function Wt(t,e,n,r){jt(t),Xt(t,e,n,r)}function Xt(t,e,n,r){t.j&&(t.j=void 0),e>=t.i||r?Ht(t)[e]=n:(t.o[e+t.G]=n,(t=t.B)&&e in t&&delete t[e])}function Yt(t,e,n,r){var i=Gt(t,e);Array.isArray(i)||(i=Ft);var o=Nt(i);if(1&o||Ot(i),r)2&o||kt(i,2),1&n||Object.freeze(i);else{r=!(2&n);var a=2&o;1&n||!a?r&&16&o&&!a&&It(i,16):Xt(t,e,i=Ot(Array.prototype.slice.call(i)))}return i}function qt(t,e){var n=Gt(t,e),r=null==n?n:"number"==typeof n||"NaN"===n||"Infinity"===n||"-Infinity"===n?Number(n):void 0;return null!=r&&r!==n&&Xt(t,e,r),r}function $t(t,e,n,r,i){t.h||(t.h={});var o=t.h[n],a=Yt(t,n,3,i);if(!o){var s=a;o=[];var u=!!(16&Nt(t.o));a=!!(2&Nt(s));var l=s;!i&&a&&(s=Array.prototype.slice.call(s));for(var c=a,h=0;ha&&"number"!=typeof t[a]){var s=t[a++];n(e,s)}for(;a>>0)>>31)+1,o=a>>>23&255,a&=8388607,Wt(e,n,255==o?a?NaN:1/0*t:0==o?t*Math.pow(2,-149)*a:t*Math.pow(2,o-150)*(a+Math.pow(2,23))),!0}),(function(t,e,n){if(null!=(e=qt(e,n))){wt(t.h,8*n+5),t=t.h;var r=+e;0===r?0<1/r?G=W=0:(W=0,G=2147483648):isNaN(r)?(W=0,G=2147483647):34028234663852886e22<(r=(n=0>r?-2147483648:0)?-r:r)?(W=0,G=(2139095040|n)>>>0):11754943508222875e-54>r?(r=Math.round(r/Math.pow(2,-149)),W=0,G=(n|r)>>>0):(e=Math.floor(Math.log(r)/Math.LN2),r*=Math.pow(2,-e),16777216<=(r=Math.round(8388608*r))&&++e,W=0,G=(n|e+127<<23|8388607&r)>>>0),n=G,t.h.push(n>>>0&255),t.h.push(n>>>8&255),t.h.push(n>>>16&255),t.h.push(n>>>24&255)}})),ze=Re((function(t,e,n){if(0!==t.i)return!1;var r=t.h,i=0,o=t=0,a=r.i,s=r.h;do{var u=a[s++];i|=(127&u)<o&&128&u);for(32>4),o=3;32>o&&128&u;o+=7)t|=(127&(u=a[s++]))<u))throw J();return r=i>>>0,(t=2147483648&(u=t>>>0))&&(u=~u>>>0,0==(r=1+~r>>>0)&&(u=u+1>>>0)),r=4294967296*u+(r>>>0),Wt(e,n,t?-r:r),!0}),(function(t,e,n){null!=(e=Gt(e,n))&&("string"==typeof e&&Z(e),null!=e&&(wt(t.h,8*n),"number"==typeof e?(t=t.h,X(e),xt(t,G,W)):(n=Z(e),xt(t.h,n.i,n.h))))})),Fe=Re((function(t,e,n){return 0===t.i&&(Wt(e,n,gt(t.h)),!0)}),(function(t,e,n){if(null!=(e=Gt(e,n))&&null!=e)if(wt(t.h,8*n),t=t.h,0<=(n=e))wt(t,n);else{for(e=0;9>e;e++)t.h.push(127&n|128),n>>=7;t.h.push(1)}})),Be=Re((function(t,e,n){if(2!==t.i)return!1;var r=gt(t.h)>>>0,i=vt(t=t.h,r);if(t=t.i,st){var o,a=t;(o=rt)||(o=rt=new TextDecoder("utf-8",{fatal:!0})),t=i+r,a=0===i&&t===a.length?a:a.subarray(i,t);try{var s=o.decode(a)}catch(t){if(void 0===at){try{o.decode(new Uint8Array([128]))}catch(t){}try{o.decode(new Uint8Array([97])),at=!0}catch(t){at=!1}}throw!at&&(rt=void 0),t}}else{r=(s=i)+r,i=[];for(var u,l,c=null;s(u=t[s++])?i.push(u):224>u?s>=r?et():(l=t[s++],194>u||128!=(192&l)?(s--,et()):i.push((31&u)<<6|63&l)):240>u?s>=r-1?et():128!=(192&(l=t[s++]))||224===u&&160>l||237===u&&160<=l||128!=(192&(a=t[s++]))?(s--,et()):i.push((15&u)<<12|(63&l)<<6|63&a):244>=u?s>=r-2?et():128!=(192&(l=t[s++]))||l-144+(u<<28)>>30||128!=(192&(a=t[s++]))||128!=(192&(o=t[s++]))?(s--,et()):(u=(7&u)<<18|(63&l)<<12|(63&a)<<6|63&o,u-=65536,i.push(55296+(u>>10&1023),56320+(1023&u))):et(),8192<=i.length&&(c=nt(c,i),i.length=0);s=nt(c,i)}return Wt(e,n,s),!0}),(function(t,e,n){if(null!=(e=Gt(e,n))){var r=!1;if(r=void 0!==r&&r,ut){if(r&&/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(e))throw Error("Found an unpaired surrogate");e=(it||(it=new TextEncoder)).encode(e)}else{for(var i=0,o=new Uint8Array(3*e.length),a=0;as)o[i++]=s;else{if(2048>s)o[i++]=s>>6|192;else{if(55296<=s&&57343>=s){if(56319>=s&&a=u){s=1024*(s-55296)+u-56320+65536,o[i++]=s>>18|240,o[i++]=s>>12&63|128,o[i++]=s>>6&63|128,o[i++]=63&s|128;continue}a--}if(r)throw Error("Found an unpaired surrogate");s=65533}o[i++]=s>>12|224,o[i++]=s>>6&63|128}o[i++]=63&s|128}}e=i===o.length?o:o.subarray(0,i)}wt(t.h,8*n+2),wt(t.h,e.length),Ct(t,t.h.end()),Ct(t,e)}})),Ue=Re((function(t,e,n,r,i){if(2!==t.i)return!1;e=Qt(e,n,r),n=t.h.j,r=gt(t.h)>>>0;var o=t.h.h+r,a=o-n;if(0>=a&&(t.h.j=o,i(e,t,void 0,void 0,void 0),a=o-t.h.h),a)throw Error("Message parsing ended unexpectedly. Expected to read "+r+" bytes, instead read "+(r-a)+" bytes, either the data ended unexpectedly or the message misreported its own length");return t.h.h=o,t.h.j=n,!0}),(function(t,e,n,r,i){if(null!=(e=Kt(e,r,n)))for(r=0;r>>=7,a.i++;o.push(s),a.i++}}));function je(t){return function(e,n){t:{if(At.length){var r=At.pop();r.setOptions(n),pt(r.h,e,n),e=r}else e=new _t(e,n);try{var i=Pe(t),o=Oe(new i.P,e,i);break t}finally{(i=e.h).i=null,i.m=!1,i.l=0,i.j=0,i.h=0,i.S=!1,e.l=-1,e.i=-1,100>At.length&&At.push(e)}o=void 0}return o}}function Ve(t){return function(){var e=new Mt;Le(this,e,Me(t)),Ct(e,e.h.end());for(var n=new Uint8Array(e.i),r=e.j,i=r.length,o=0,a=0;a{"use strict";n.d(e,{Q1:()=>y,ZC:()=>A,Ay:()=>z});var r=n(58168),i=n(64467),o=n(5544),a=n(96540),s=n(89379),u=n(23029),l=n(92901),c=n(15361),h=n(29426),d=n(53986),f=n(82284),p=n(24978),m=["b"],g=["v"],v=function(t){return Math.round(Number(t||0))},y=function(t){(0,c.A)(n,t);var e=(0,h.A)(n);function n(t){return(0,u.A)(this,n),e.call(this,function(t){if(t&&"object"===(0,f.A)(t)&&"h"in t&&"b"in t){var e=t,n=e.b,r=(0,d.A)(e,m);return(0,s.A)((0,s.A)({},r),{},{v:n})}return"string"==typeof t&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t}(t))}return(0,l.A)(n,[{key:"toHsbString",value:function(){var t=this.toHsb(),e=v(100*t.s),n=v(100*t.b),r=v(t.h),i=t.a,o="hsb(".concat(r,", ").concat(e,"%, ").concat(n,"%)"),a="hsba(".concat(r,", ").concat(e,"%, ").concat(n,"%, ").concat(i.toFixed(0===i?0:2),")");return 1===i?o:a}},{key:"toHsb",value:function(){var t=this.toHsv();"object"===(0,f.A)(this.originalInput)&&this.originalInput&&"h"in this.originalInput&&(t=this.originalInput);var e=t,n=(e.v,(0,d.A)(e,g));return(0,s.A)((0,s.A)({},n),{},{b:t.v,a:this.a})}}]),n}(p.q),b=function(t){return t instanceof y?t:new y(t)},x=b("#1677ff"),w=function(t){var e=t.offset,n=t.targetRef,r=t.containerRef,i=t.color,o=t.type,a=r.current.getBoundingClientRect(),u=a.width,l=a.height,c=n.current.getBoundingClientRect(),h=c.width/2,d=c.height/2,f=(e.x+h)/u,p=1-(e.y+d)/l,m=i.toHsb(),g=f,v=(e.x+h)/u*360;if(o)switch(o){case"hue":return b((0,s.A)((0,s.A)({},m),{},{h:v<=0?0:v}));case"alpha":return b((0,s.A)((0,s.A)({},m),{},{a:g<=0?0:g}))}return b({h:m.h,s:f<=0?0:f,b:p>=1?1:p,a:m.a})},_=function(t,e,n,r){var i=t.current.getBoundingClientRect(),o=i.width,a=i.height,s=e.current.getBoundingClientRect(),u=s.width,l=s.height,c=u/2,h=l/2,d=n.toHsb();if((0!==u||0!==l)&&u===l){if(r)switch(r){case"hue":return{x:d.h/360*o-c,y:-h/3};case"alpha":return{x:d.a/1*o-c,y:-h/3}}return{x:d.s*o-c,y:(1-d.b)*a-h}}},S=n(46942),E=n.n(S);const A=function(t){var e=t.color,n=t.prefixCls,r=t.className,i=t.style,o=t.onClick,s="".concat(n,"-color-block");return a.createElement("div",{className:E()(s,r),style:i,onClick:o},a.createElement("div",{className:"".concat(s,"-inner"),style:{background:e}}))};const M=function(t){var e=t.offset,n=t.targetRef,r=t.containerRef,i=t.direction,s=t.onDragChange,u=t.onDragChangeComplete,l=t.calculate,c=t.color,h=t.disabledDrag,d=(0,a.useState)(e||{x:0,y:0}),f=(0,o.A)(d,2),p=f[0],m=f[1],g=(0,a.useRef)(null),v=(0,a.useRef)(null),y=(0,a.useRef)({flag:!1});(0,a.useEffect)((function(){if(!1===y.current.flag){var t=null==l?void 0:l(r);t&&m(t)}}),[c,r]),(0,a.useEffect)((function(){return function(){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",v.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",v.current),g.current=null,v.current=null}}),[]);var b=function(t){var e=function(t){var e="touches"in t?t.touches[0]:t,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:e.pageX-n,pageY:e.pageY-r}}(t),o=e.pageX,a=e.pageY,u=r.current.getBoundingClientRect(),l=u.x,c=u.y,h=u.width,d=u.height,f=n.current.getBoundingClientRect(),g=f.width,v=f.height,y=g/2,b=v/2,x=Math.max(0,Math.min(o-l,h))-y,w=Math.max(0,Math.min(a-c,d))-b,_={x,y:"x"===i?p.y:w};if(0===g&&0===v||g!==v)return!1;m(_),null==s||s(_)},x=function(t){t.preventDefault(),b(t)},w=function(t){t.preventDefault(),y.current.flag=!1,document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",v.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",v.current),g.current=null,v.current=null,null==u||u()};return[p,function(t){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",v.current),h||(b(t),y.current.flag=!0,document.addEventListener("mousemove",x),document.addEventListener("mouseup",w),document.addEventListener("touchmove",x),document.addEventListener("touchend",w),g.current=x,v.current=w)}]};var C=n(81470);const T=function(t){var e=t.size,n=void 0===e?"default":e,r=t.color,o=t.prefixCls;return a.createElement("div",{className:E()("".concat(o,"-handler"),(0,i.A)({},"".concat(o,"-handler-sm"),"small"===n)),style:{backgroundColor:r}})};const k=function(t){var e=t.children,n=t.style,r=t.prefixCls;return a.createElement("div",{className:"".concat(r,"-palette"),style:(0,s.A)({position:"relative"},n)},e)};const I=(0,a.forwardRef)((function(t,e){var n=t.children,r=t.offset;return a.createElement("div",{ref:e,style:{position:"absolute",left:r.x,top:r.y,zIndex:1}},n)}));const N=function(t){var e=t.color,n=t.onChange,r=t.prefixCls,i=t.onChangeComplete,s=t.disabled,u=(0,a.useRef)(),l=(0,a.useRef)(),c=(0,a.useRef)(e),h=(0,C._q)((function(t){var r=w({offset:t,targetRef:l,containerRef:u,color:e});c.current=r,n(r)})),d=M({color:e,containerRef:u,targetRef:l,calculate:function(t){return _(t,l,e)},onDragChange:h,onDragChangeComplete:function(){return null==i?void 0:i(c.current)},disabledDrag:s}),f=(0,o.A)(d,2),p=f[0],m=f[1];return a.createElement("div",{ref:u,className:"".concat(r,"-select"),onMouseDown:m,onTouchStart:m},a.createElement(k,{prefixCls:r},a.createElement(I,{offset:p,ref:l},a.createElement(T,{color:e.toRgbString(),prefixCls:r})),a.createElement("div",{className:"".concat(r,"-saturation"),style:{backgroundColor:"hsl(".concat(e.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))};const P=function(t){var e=t.colors,n=t.children,r=t.direction,i=void 0===r?"to right":r,o=t.type,s=t.prefixCls,u=(0,a.useMemo)((function(){return e.map((function(t,n){var r=b(t);return"alpha"===o&&n===e.length-1&&r.setAlpha(1),r.toRgbString()})).join(",")}),[e,o]);return a.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(i,", ").concat(u,")")}},n)};const O=function(t){var e=t.gradientColors,n=t.direction,r=t.type,i=void 0===r?"hue":r,s=t.color,u=t.value,l=t.onChange,c=t.onChangeComplete,h=t.disabled,d=t.prefixCls,f=(0,a.useRef)(),p=(0,a.useRef)(),m=(0,a.useRef)(s),g=(0,C._q)((function(t){var e=w({offset:t,targetRef:p,containerRef:f,color:s,type:i});m.current=e,l(e)})),v=M({color:s,targetRef:p,containerRef:f,calculate:function(t){return _(t,p,s,i)},onDragChange:g,onDragChangeComplete:function(){null==c||c(m.current,i)},direction:"x",disabledDrag:h}),y=(0,o.A)(v,2),b=y[0],x=y[1];return a.createElement("div",{ref:f,className:E()("".concat(d,"-slider"),"".concat(d,"-slider-").concat(i)),onMouseDown:x,onTouchStart:x},a.createElement(k,{prefixCls:d},a.createElement(I,{offset:b,ref:p},a.createElement(T,{size:"small",color:u,prefixCls:d})),a.createElement(P,{colors:e,direction:n,type:i,prefixCls:d})))};function L(t){return void 0!==t}const R=function(t,e){var n=e.defaultValue,r=e.value,i=(0,a.useState)((function(){var e;return e=L(r)?r:L(n)?n:t,b(e)})),s=(0,o.A)(i,2),u=s[0],l=s[1];return(0,a.useEffect)((function(){r&&l(b(r))}),[r]),[u,l]};var D=["rgb(255, 0, 0) 0%","rgb(255, 255, 0) 17%","rgb(0, 255, 0) 33%","rgb(0, 255, 255) 50%","rgb(0, 0, 255) 67%","rgb(255, 0, 255) 83%","rgb(255, 0, 0) 100%"];const z=(0,a.forwardRef)((function(t,e){var n=t.value,s=t.defaultValue,u=t.prefixCls,l=void 0===u?"rc-color-picker":u,c=t.onChange,h=t.onChangeComplete,d=t.className,f=t.style,p=t.panelRender,m=t.disabledAlpha,g=void 0!==m&&m,v=t.disabled,y=void 0!==v&&v,w=R(x,{value:n,defaultValue:s}),_=(0,o.A)(w,2),S=_[0],M=_[1],C=(0,a.useMemo)((function(){var t=b(S.toRgbString());return t.setAlpha(1),t.toRgbString()}),[S]),T=E()("".concat(l,"-panel"),d,(0,i.A)({},"".concat(l,"-panel-disabled"),y)),k={prefixCls:l,onChangeComplete:h,disabled:y},I=function(t,e){n||M(t),null==c||c(t,e)},P=a.createElement(a.Fragment,null,a.createElement(N,(0,r.A)({color:S,onChange:I},k)),a.createElement("div",{className:"".concat(l,"-slider-container")},a.createElement("div",{className:E()("".concat(l,"-slider-group"),(0,i.A)({},"".concat(l,"-slider-group-disabled-alpha"),g))},a.createElement(O,(0,r.A)({gradientColors:D,color:S,value:"hsl(".concat(S.toHsb().h,",100%, 50%)"),onChange:function(t){return I(t,"hue")}},k)),!g&&a.createElement(O,(0,r.A)({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",C],color:S,value:S.toRgbString(),onChange:function(t){return I(t,"alpha")}},k))),a.createElement(A,{color:S.toRgbString(),prefixCls:l})));return a.createElement("div",{className:T,style:f,ref:e},"function"==typeof p?p(P):P)}))},72595:(t,e,n)=>{"use strict";n.d(e,{A:()=>b});var r=n(5544),i=n(96540),o=n(40961),a=n(20998),s=(n(68210),n(8719));const u=i.createContext(null);var l=n(60436),c=n(30981),h=[];var d=n(85089);function f(t){var e="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=e;var r,i,o=n.style;if(o.position="absolute",o.left="0",o.top="0",o.width="100px",o.height="100px",o.overflow="scroll",t){var a=getComputedStyle(t);o.scrollbarColor=a.scrollbarColor,o.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(t,"::-webkit-scrollbar"),u=parseInt(s.width,10),l=parseInt(s.height,10);try{var c=u?"width: ".concat(s.width,";"):"",h=l?"height: ".concat(s.height,";"):"";(0,d.BD)("\n#".concat(e,"::-webkit-scrollbar {\n").concat(c,"\n").concat(h,"\n}"),e)}catch(t){console.error(t),r=u,i=l}}document.body.appendChild(n);var f=t&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,p=t&&i&&!isNaN(i)?i:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),(0,d.m6)(e),{width:f,height:p}}var p="rc-util-locker-".concat(Date.now()),m=0;function g(t){var e=!!t,n=i.useState((function(){return m+=1,"".concat(p,"_").concat(m)})),o=(0,r.A)(n,1)[0];(0,c.A)((function(){if(e){var t=(r=document.body,"undefined"!=typeof document&&r&&r instanceof Element?f(r):{width:0,height:0}).width,n=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,d.BD)("\nhtml body {\n overflow-y: hidden;\n ".concat(n?"width: calc(100% - ".concat(t,"px);"):"","\n}"),o)}else(0,d.m6)(o);var r;return function(){(0,d.m6)(o)}}),[e,o])}var v=!1;var y=function(t){return!1!==t&&((0,a.A)()&&t?"string"==typeof t?document.querySelector(t):"function"==typeof t?t():t:null)};const b=i.forwardRef((function(t,e){var n=t.open,d=t.autoLock,f=t.getContainer,p=(t.debug,t.autoDestroy),m=void 0===p||p,b=t.children,x=i.useState(n),w=(0,r.A)(x,2),_=w[0],S=w[1],E=_||n;i.useEffect((function(){(m||n)&&S(n)}),[n,m]);var A=i.useState((function(){return y(f)})),M=(0,r.A)(A,2),C=M[0],T=M[1];i.useEffect((function(){var t=y(f);T(null!=t?t:null)}));var k=function(t,e){var n=i.useState((function(){return(0,a.A)()?document.createElement("div"):null})),o=(0,r.A)(n,1)[0],s=i.useRef(!1),d=i.useContext(u),f=i.useState(h),p=(0,r.A)(f,2),m=p[0],g=p[1],v=d||(s.current?void 0:function(t){g((function(e){return[t].concat((0,l.A)(e))}))});function y(){o.parentElement||document.body.appendChild(o),s.current=!0}function b(){var t;null===(t=o.parentElement)||void 0===t||t.removeChild(o),s.current=!1}return(0,c.A)((function(){return t?d?d(y):y():b(),b}),[t]),(0,c.A)((function(){m.length&&(m.forEach((function(t){return t()})),g(h))}),[m]),[o,v]}(E&&!C),I=(0,r.A)(k,2),N=I[0],P=I[1],O=null!=C?C:N;g(d&&n&&(0,a.A)()&&(O===N||O===document.body));var L=null;b&&(0,s.f3)(b)&&e&&(L=b.ref);var R=(0,s.xK)(L,e);if(!E||!(0,a.A)()||void 0===C)return null;var D,z=!1===O||("boolean"==typeof D&&(v=D),v),F=b;return e&&(F=i.cloneElement(b,{ref:R})),i.createElement(u.Provider,{value:P},z?F:(0,o.createPortal)(F,O))}))},62427:(t,e,n)=>{"use strict";n.d(e,{A:()=>V});var r=n(89379),i=n(5544),o=n(53986),a=n(72595),s=n(46942),u=n.n(s),l=n(18462),c=n(66588),h=n(72633),d=n(26956),f=n(56855),p=n(30981),m=n(68430),g=n(96540),v=n(58168),y=n(57557),b=n(8719);function x(t){var e=t.prefixCls,n=t.align,r=t.arrow,i=t.arrowPos,o=r||{},a=o.className,s=o.content,l=i.x,c=void 0===l?0:l,h=i.y,d=void 0===h?0:h,f=g.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(!1!==n.autoArrow){var m=n.points[0],v=n.points[1],y=m[0],b=m[1],x=v[0],w=v[1];y!==x&&["t","b"].includes(y)?"t"===y?p.top=0:p.bottom=0:p.top=d,b!==w&&["l","r"].includes(b)?"l"===b?p.left=0:p.right=0:p.left=c}return g.createElement("div",{ref:f,className:u()("".concat(e,"-arrow"),a),style:p},s)}function w(t){var e=t.prefixCls,n=t.open,r=t.zIndex,i=t.mask,o=t.motion;return i?g.createElement(y.Ay,(0,v.A)({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(t){var n=t.className;return g.createElement("div",{style:{zIndex:r},className:u()("".concat(e,"-mask"),n)})})):null}const _=g.memo((function(t){return t.children}),(function(t,e){return e.cache}));const S=g.forwardRef((function(t,e){var n=t.popup,o=t.className,a=t.prefixCls,s=t.style,c=t.target,h=t.onVisibleChanged,d=t.open,f=t.keepDom,m=t.fresh,S=t.onClick,E=t.mask,A=t.arrow,M=t.arrowPos,C=t.align,T=t.motion,k=t.maskMotion,I=t.forceRender,N=t.getPopupContainer,P=t.autoDestroy,O=t.portal,L=t.zIndex,R=t.onMouseEnter,D=t.onMouseLeave,z=t.onPointerEnter,F=t.ready,B=t.offsetX,U=t.offsetY,j=t.offsetR,V=t.offsetB,H=t.onAlign,G=t.onPrepare,W=t.stretch,X=t.targetWidth,Y=t.targetHeight,q="function"==typeof n?n():n,$=d||f,K=(null==N?void 0:N.length)>0,Z=g.useState(!N||!K),Q=(0,i.A)(Z,2),J=Q[0],tt=Q[1];if((0,p.A)((function(){!J&&K&&c&&tt(!0)}),[J,K,c]),!J)return null;var et="auto",nt={left:"-1000vw",top:"-1000vh",right:et,bottom:et};if(F||!d){var rt,it=C.points,ot=C.dynamicInset||(null===(rt=C._experimental)||void 0===rt?void 0:rt.dynamicInset),at=ot&&"r"===it[0][1],st=ot&&"b"===it[0][0];at?(nt.right=j,nt.left=et):(nt.left=B,nt.right=et),st?(nt.bottom=V,nt.top=et):(nt.top=U,nt.bottom=et)}var ut={};return W&&(W.includes("height")&&Y?ut.height=Y:W.includes("minHeight")&&Y&&(ut.minHeight=Y),W.includes("width")&&X?ut.width=X:W.includes("minWidth")&&X&&(ut.minWidth=X)),d||(ut.pointerEvents="none"),g.createElement(O,{open:I||$,getContainer:N&&function(){return N(c)},autoDestroy:P},g.createElement(w,{prefixCls:a,open:d,zIndex:L,mask:E,motion:k}),g.createElement(l.A,{onResize:H,disabled:!d},(function(t){return g.createElement(y.Ay,(0,v.A)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:I,leavedClassName:"".concat(a,"-hidden")},T,{onAppearPrepare:G,onEnterPrepare:G,visible:d,onVisibleChanged:function(t){var e;null==T||null===(e=T.onVisibleChanged)||void 0===e||e.call(T,t),h(t)}}),(function(n,i){var l=n.className,c=n.style,h=u()(a,l,o);return g.createElement("div",{ref:(0,b.K4)(t,e,i),className:h,style:(0,r.A)((0,r.A)((0,r.A)((0,r.A)({"--arrow-x":"".concat(M.x||0,"px"),"--arrow-y":"".concat(M.y||0,"px")},nt),ut),c),{},{boxSizing:"border-box",zIndex:L},s),onMouseEnter:R,onMouseLeave:D,onPointerEnter:z,onClick:S},A&&g.createElement(x,{prefixCls:a,arrow:A,arrowPos:M,align:C}),g.createElement(_,{cache:!d&&!m},q))}))})))}));const E=g.forwardRef((function(t,e){var n=t.children,r=t.getTriggerDOMNode,i=(0,b.f3)(n),o=g.useCallback((function(t){(0,b.Xf)(e,r?r(t):t)}),[r]),a=(0,b.xK)(o,n.ref);return i?g.cloneElement(n,{ref:a}):n}));const A=g.createContext(null);function M(t){return t?Array.isArray(t)?t:[t]:[]}var C=n(42467);function T(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?t[0]===e[0]:t[0]===e[0]&&t[1]===e[1]}function k(t,e,n,r){return e||(n?{motionName:"".concat(t,"-").concat(n)}:r?{motionName:r}:null)}function I(t){return t.ownerDocument.defaultView}function N(t){for(var e=[],n=null==t?void 0:t.parentElement,r=["hidden","scroll","clip","auto"];n;){var i=I(n).getComputedStyle(n);[i.overflowX,i.overflowY,i.overflow].some((function(t){return r.includes(t)}))&&e.push(n),n=n.parentElement}return e}function P(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(t)?e:t}function O(t){return P(parseFloat(t),0)}function L(t,e){var n=(0,r.A)({},t);return(e||[]).forEach((function(t){if(!(t instanceof HTMLBodyElement||t instanceof HTMLHtmlElement)){var e=I(t).getComputedStyle(t),r=e.overflow,i=e.overflowClipMargin,o=e.borderTopWidth,a=e.borderBottomWidth,s=e.borderLeftWidth,u=e.borderRightWidth,l=t.getBoundingClientRect(),c=t.offsetHeight,h=t.clientHeight,d=t.offsetWidth,f=t.clientWidth,p=O(o),m=O(a),g=O(s),v=O(u),y=P(Math.round(l.width/d*1e3)/1e3),b=P(Math.round(l.height/c*1e3)/1e3),x=(d-f-g-v)*y,w=(c-h-p-m)*b,_=p*b,S=m*b,E=g*y,A=v*y,M=0,C=0;if("clip"===r){var T=O(i);M=T*y,C=T*b}var k=l.x+E-M,N=l.y+_-C,L=k+l.width+2*M-E-A-x,R=N+l.height+2*C-_-S-w;n.left=Math.max(n.left,k),n.top=Math.max(n.top,N),n.right=Math.min(n.right,L),n.bottom=Math.min(n.bottom,R)}})),n}function R(t){var e="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=e.match(/^(.*)\%$/);return n?t*(parseFloat(n[1])/100):parseFloat(e)}function D(t,e){var n=e||[],r=(0,i.A)(n,2),o=r[0],a=r[1];return[R(t.width,o),R(t.height,a)]}function z(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[t[0],t[1]]}function F(t,e){var n,r=e[0],i=e[1];return n="t"===r?t.y:"b"===r?t.y+t.height:t.y+t.height/2,{x:"l"===i?t.x:"r"===i?t.x+t.width:t.x+t.width/2,y:n}}function B(t,e){var n={t:"b",b:"t",l:"r",r:"l"};return t.map((function(t,r){return r===e?n[t]||"c":t})).join("")}var U=n(60436);n(68210);var j=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const V=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.A;return g.forwardRef((function(e,n){var a=e.prefixCls,s=void 0===a?"rc-trigger-popup":a,v=e.children,y=e.action,b=void 0===y?"hover":y,x=e.showAction,w=e.hideAction,_=e.popupVisible,O=e.defaultPopupVisible,R=e.onPopupVisibleChange,V=e.afterPopupVisibleChange,H=e.mouseEnterDelay,G=e.mouseLeaveDelay,W=void 0===G?.1:G,X=e.focusDelay,Y=e.blurDelay,q=e.mask,$=e.maskClosable,K=void 0===$||$,Z=e.getPopupContainer,Q=e.forceRender,J=e.autoDestroy,tt=e.destroyPopupOnHide,et=e.popup,nt=e.popupClassName,rt=e.popupStyle,it=e.popupPlacement,ot=e.builtinPlacements,at=void 0===ot?{}:ot,st=e.popupAlign,ut=e.zIndex,lt=e.stretch,ct=e.getPopupClassNameFromAlign,ht=e.fresh,dt=e.alignPoint,ft=e.onPopupClick,pt=e.onPopupAlign,mt=e.arrow,gt=e.popupMotion,vt=e.maskMotion,yt=e.popupTransitionName,bt=e.popupAnimation,xt=e.maskTransitionName,wt=e.maskAnimation,_t=e.className,St=e.getTriggerDOMNode,Et=(0,o.A)(e,j),At=J||tt||!1,Mt=g.useState(!1),Ct=(0,i.A)(Mt,2),Tt=Ct[0],kt=Ct[1];(0,p.A)((function(){kt((0,m.A)())}),[]);var It=g.useRef({}),Nt=g.useContext(A),Pt=g.useMemo((function(){return{registerSubPopup:function(t,e){It.current[t]=e,null==Nt||Nt.registerSubPopup(t,e)}}}),[Nt]),Ot=(0,f.A)(),Lt=g.useState(null),Rt=(0,i.A)(Lt,2),Dt=Rt[0],zt=Rt[1],Ft=g.useRef(null),Bt=(0,d.A)((function(t){Ft.current=t,(0,c.f)(t)&&Dt!==t&&zt(t),null==Nt||Nt.registerSubPopup(Ot,t)})),Ut=g.useState(null),jt=(0,i.A)(Ut,2),Vt=jt[0],Ht=jt[1],Gt=g.useRef(null),Wt=(0,d.A)((function(t){(0,c.f)(t)&&Vt!==t&&(Ht(t),Gt.current=t)})),Xt=g.Children.only(v),Yt=(null==Xt?void 0:Xt.props)||{},qt={},$t=(0,d.A)((function(t){var e,n,r=Vt;return(null==r?void 0:r.contains(t))||(null===(e=(0,h.j)(r))||void 0===e?void 0:e.host)===t||t===r||(null==Dt?void 0:Dt.contains(t))||(null===(n=(0,h.j)(Dt))||void 0===n?void 0:n.host)===t||t===Dt||Object.values(It.current).some((function(e){return(null==e?void 0:e.contains(t))||t===e}))})),Kt=k(s,gt,bt,yt),Zt=k(s,vt,wt,xt),Qt=g.useState(O||!1),Jt=(0,i.A)(Qt,2),te=Jt[0],ee=Jt[1],ne=null!=_?_:te,re=(0,d.A)((function(t){void 0===_&&ee(t)}));(0,p.A)((function(){ee(_||!1)}),[_]);var ie=g.useRef(ne);ie.current=ne;var oe=g.useRef([]);oe.current=[];var ae=(0,d.A)((function(t){var e;re(t),(null!==(e=oe.current[oe.current.length-1])&&void 0!==e?e:ne)!==t&&(oe.current.push(t),null==R||R(t))})),se=g.useRef(),ue=function(){clearTimeout(se.current)},le=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;ue(),0===e?ae(t):se.current=setTimeout((function(){ae(t)}),1e3*e)};g.useEffect((function(){return ue}),[]);var ce=g.useState(!1),he=(0,i.A)(ce,2),de=he[0],fe=he[1];(0,p.A)((function(t){t&&!ne||fe(!0)}),[ne]);var pe=g.useState(null),me=(0,i.A)(pe,2),ge=me[0],ve=me[1],ye=g.useState([0,0]),be=(0,i.A)(ye,2),xe=be[0],we=be[1],_e=function(t){we([t.clientX,t.clientY])},Se=function(t,e,n,o,a,s,u){var l=g.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[o]||{}}),h=(0,i.A)(l,2),f=h[0],m=h[1],v=g.useRef(0),y=g.useMemo((function(){return e?N(e):[]}),[e]),b=g.useRef({});t||(b.current={});var x=(0,d.A)((function(){if(e&&n&&t){var l,h,d,f=e,p=f.ownerDocument,g=I(f).getComputedStyle(f),v=g.width,x=g.height,w=g.position,_=f.style.left,S=f.style.top,E=f.style.right,A=f.style.bottom,M=f.style.overflow,T=(0,r.A)((0,r.A)({},a[o]),s),k=p.createElement("div");if(null===(l=f.parentElement)||void 0===l||l.appendChild(k),k.style.left="".concat(f.offsetLeft,"px"),k.style.top="".concat(f.offsetTop,"px"),k.style.position=w,k.style.height="".concat(f.offsetHeight,"px"),k.style.width="".concat(f.offsetWidth,"px"),f.style.left="0",f.style.top="0",f.style.right="auto",f.style.bottom="auto",f.style.overflow="hidden",Array.isArray(n))d={x:n[0],y:n[1],width:0,height:0};else{var N=n.getBoundingClientRect();d={x:N.x,y:N.y,width:N.width,height:N.height}}var O=f.getBoundingClientRect(),R=p.documentElement,U=R.clientWidth,j=R.clientHeight,V=R.scrollWidth,H=R.scrollHeight,G=R.scrollTop,W=R.scrollLeft,X=O.height,Y=O.width,q=d.height,$=d.width,K={left:0,top:0,right:U,bottom:j},Z={left:-W,top:-G,right:V-W,bottom:H-G},Q=T.htmlRegion,J="visible",tt="visibleFirst";"scroll"!==Q&&Q!==tt&&(Q=J);var et=Q===tt,nt=L(Z,y),rt=L(K,y),it=Q===J?rt:nt,ot=et?rt:it;f.style.left="auto",f.style.top="auto",f.style.right="0",f.style.bottom="0";var at=f.getBoundingClientRect();f.style.left=_,f.style.top=S,f.style.right=E,f.style.bottom=A,f.style.overflow=M,null===(h=f.parentElement)||void 0===h||h.removeChild(k);var st=P(Math.round(Y/parseFloat(v)*1e3)/1e3),ut=P(Math.round(X/parseFloat(x)*1e3)/1e3);if(0===st||0===ut||(0,c.f)(n)&&!(0,C.A)(n))return;var lt=T.offset,ct=T.targetOffset,ht=D(O,lt),dt=(0,i.A)(ht,2),ft=dt[0],pt=dt[1],mt=D(d,ct),gt=(0,i.A)(mt,2),vt=gt[0],yt=gt[1];d.x-=vt,d.y-=yt;var bt=T.points||[],xt=(0,i.A)(bt,2),wt=xt[0],_t=z(xt[1]),St=z(wt),Et=F(d,_t),At=F(O,St),Mt=(0,r.A)({},T),Ct=Et.x-At.x+ft,Tt=Et.y-At.y+pt;function we(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:it,r=O.x+t,i=O.y+e,o=r+Y,a=i+X,s=Math.max(r,n.left),u=Math.max(i,n.top),l=Math.min(o,n.right),c=Math.min(a,n.bottom);return Math.max(0,(l-s)*(c-u))}var kt,It,Nt,Pt,Ot=we(Ct,Tt),Lt=we(Ct,Tt,rt),Rt=F(d,["t","l"]),Dt=F(O,["t","l"]),zt=F(d,["b","r"]),Ft=F(O,["b","r"]),Bt=T.overflow||{},Ut=Bt.adjustX,jt=Bt.adjustY,Vt=Bt.shiftX,Ht=Bt.shiftY,Gt=function(t){return"boolean"==typeof t?t:t>=0};function _e(){kt=O.y+Tt,It=kt+X,Nt=O.x+Ct,Pt=Nt+Y}_e();var Wt=Gt(jt),Xt=St[0]===_t[0];if(Wt&&"t"===St[0]&&(It>ot.bottom||b.current.bt)){var Yt=Tt;Xt?Yt-=X-q:Yt=Rt.y-Ft.y-pt;var qt=we(Ct,Yt),$t=we(Ct,Yt,rt);qt>Ot||qt===Ot&&(!et||$t>=Lt)?(b.current.bt=!0,Tt=Yt,pt=-pt,Mt.points=[B(St,0),B(_t,0)]):b.current.bt=!1}if(Wt&&"b"===St[0]&&(ktOt||Zt===Ot&&(!et||Qt>=Lt)?(b.current.tb=!0,Tt=Kt,pt=-pt,Mt.points=[B(St,0),B(_t,0)]):b.current.tb=!1}var Jt=Gt(Ut),te=St[1]===_t[1];if(Jt&&"l"===St[1]&&(Pt>ot.right||b.current.rl)){var ee=Ct;te?ee-=Y-$:ee=Rt.x-Ft.x-ft;var ne=we(ee,Tt),re=we(ee,Tt,rt);ne>Ot||ne===Ot&&(!et||re>=Lt)?(b.current.rl=!0,Ct=ee,ft=-ft,Mt.points=[B(St,1),B(_t,1)]):b.current.rl=!1}if(Jt&&"r"===St[1]&&(NtOt||oe===Ot&&(!et||ae>=Lt)?(b.current.lr=!0,Ct=ie,ft=-ft,Mt.points=[B(St,1),B(_t,1)]):b.current.lr=!1}_e();var se=!0===Vt?0:Vt;"number"==typeof se&&(Ntrt.right&&(Ct-=Pt-rt.right-ft,d.x>rt.right-se&&(Ct+=d.x-rt.right+se)));var ue=!0===Ht?0:Ht;"number"==typeof ue&&(ktrt.bottom&&(Tt-=It-rt.bottom-pt,d.y>rt.bottom-ue&&(Tt+=d.y-rt.bottom+ue)));var le=O.x+Ct,ce=le+Y,he=O.y+Tt,de=he+X,fe=d.x,pe=fe+$,me=d.y,ge=me+q,ve=(Math.max(le,fe)+Math.min(ce,pe))/2-le,ye=(Math.max(he,me)+Math.min(de,ge))/2-he;null==u||u(e,Mt);var be=at.right-O.x-(Ct+O.width),xe=at.bottom-O.y-(Tt+O.height);m({ready:!0,offsetX:Ct/st,offsetY:Tt/ut,offsetR:be/st,offsetB:xe/ut,arrowX:ve/st,arrowY:ye/ut,scaleX:st,scaleY:ut,align:Mt})}})),w=function(){m((function(t){return(0,r.A)((0,r.A)({},t),{},{ready:!1})}))};return(0,p.A)(w,[o]),(0,p.A)((function(){t||w()}),[t]),[f.ready,f.offsetX,f.offsetY,f.offsetR,f.offsetB,f.arrowX,f.arrowY,f.scaleX,f.scaleY,f.align,function(){v.current+=1;var t=v.current;Promise.resolve().then((function(){v.current===t&&x()}))}]}(ne,Dt,dt?xe:Vt,it,at,st,pt),Ee=(0,i.A)(Se,11),Ae=Ee[0],Me=Ee[1],Ce=Ee[2],Te=Ee[3],ke=Ee[4],Ie=Ee[5],Ne=Ee[6],Pe=Ee[7],Oe=Ee[8],Le=Ee[9],Re=Ee[10],De=function(t,e,n,r){return g.useMemo((function(){var i=M(null!=n?n:e),o=M(null!=r?r:e),a=new Set(i),s=new Set(o);return t&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]}),[t,e,n,r])}(Tt,b,x,w),ze=(0,i.A)(De,2),Fe=ze[0],Be=ze[1],Ue=Fe.has("click"),je=Be.has("click")||Be.has("contextMenu"),Ve=(0,d.A)((function(){de||Re()}));!function(t,e,n,r,i){(0,p.A)((function(){if(t&&e&&n){var o=n,a=N(e),s=N(o),u=I(o),l=new Set([u].concat((0,U.A)(a),(0,U.A)(s)));function c(){r(),i()}return l.forEach((function(t){t.addEventListener("scroll",c,{passive:!0})})),u.addEventListener("resize",c,{passive:!0}),r(),function(){l.forEach((function(t){t.removeEventListener("scroll",c),u.removeEventListener("resize",c)}))}}}),[t,e,n])}(ne,Vt,Dt,Ve,(function(){ie.current&&dt&&je&&le(!1)})),(0,p.A)((function(){Ve()}),[xe,it]),(0,p.A)((function(){!ne||null!=at&&at[it]||Ve()}),[JSON.stringify(st)]);var He=g.useMemo((function(){var t=function(t,e,n,r){for(var i=n.points,o=Object.keys(t),a=0;a1?a-1:0),u=1;u1?n-1:0),i=1;i1?n-1:0),i=1;i{"use strict"; /** * @remix-run/router v1.16.0 * @@ -4578,4 +4578,4 @@ i=function(){return e};var t,e={},n=Object.prototype,o=n.hasOwnProperty,a=Object * Copyright 2010-2023 Three.js Authors * SPDX-License-Identifier: MIT */ -const r="151",i={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2},o={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3},a=1,s=2,u=3,l=0,c=1,h=2,d=100,f=101,p=102,m=200,g=201,v=202,y=203,b=204,x=205,w=206,_=207,S=208,E=209,A=210,M=0,C=1,T=2,k=0,I=1,N=2,P=3,O=4,L=5,R=301,D=302,z=303,F=304,B=306,U=1e3,j=1001,V=1002,H=1003,G=1004,W=1005,X=1006,Y=1007,q=1008,$=1009,K=1014,Z=1015,Q=1016,J=1020,tt=1023,et=1026,nt=1027,rt=33776,it=33777,ot=33778,at=33779,st=36492,ut=2300,lt=2301,ct=2302,ht=2400,dt=2401,ft=2402,pt=0,mt=1,gt=2,vt=3e3,yt=3001,bt="srgb",xt="srgb-linear",wt="display-p3",_t=7680,St=35044,Et="300 es",At=1035;class Mt{addEventListener(t,e){void 0===this._listeners&&(this._listeners={});const n=this._listeners;void 0===n[t]&&(n[t]=[]),-1===n[t].indexOf(e)&&n[t].push(e)}hasEventListener(t,e){if(void 0===this._listeners)return!1;const n=this._listeners;return void 0!==n[t]&&-1!==n[t].indexOf(e)}removeEventListener(t,e){if(void 0===this._listeners)return;const n=this._listeners[t];if(void 0!==n){const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}dispatchEvent(t){if(void 0===this._listeners)return;const e=this._listeners[t.type];if(void 0!==e){t.target=this;const n=e.slice(0);for(let e=0,r=n.length;e>8&255]+Ct[t>>16&255]+Ct[t>>24&255]+"-"+Ct[255&e]+Ct[e>>8&255]+"-"+Ct[e>>16&15|64]+Ct[e>>24&255]+"-"+Ct[63&n|128]+Ct[n>>8&255]+"-"+Ct[n>>16&255]+Ct[n>>24&255]+Ct[255&r]+Ct[r>>8&255]+Ct[r>>16&255]+Ct[r>>24&255]).toLowerCase()}function Pt(t,e,n){return Math.max(e,Math.min(n,t))}function Ot(t,e){return(t%e+e)%e}function Lt(t,e,n){return(1-n)*t+n*e}function Rt(t){return!(t&t-1)&&0!==t}function Dt(t){return Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))}function zt(t){return Math.pow(2,Math.floor(Math.log(t)/Math.LN2))}function Ft(t,e){switch(e.constructor){case Float32Array:return t;case Uint16Array:return t/65535;case Uint8Array:return t/255;case Int16Array:return Math.max(t/32767,-1);case Int8Array:return Math.max(t/127,-1);default:throw new Error("Invalid component type.")}}function Bt(t,e){switch(e.constructor){case Float32Array:return t;case Uint16Array:return Math.round(65535*t);case Uint8Array:return Math.round(255*t);case Int16Array:return Math.round(32767*t);case Int8Array:return Math.round(127*t);default:throw new Error("Invalid component type.")}}const Ut={DEG2RAD:kt,RAD2DEG:It,generateUUID:Nt,clamp:Pt,euclideanModulo:Ot,mapLinear:function(t,e,n,r,i){return r+(t-e)*(i-r)/(n-e)},inverseLerp:function(t,e,n){return t!==e?(n-t)/(e-t):0},lerp:Lt,damp:function(t,e,n,r){return Lt(t,e,1-Math.exp(-n*r))},pingpong:function(t,e=1){return e-Math.abs(Ot(t,2*e)-e)},smoothstep:function(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e))*t*(3-2*t)},smootherstep:function(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e))*t*t*(t*(6*t-15)+10)},randInt:function(t,e){return t+Math.floor(Math.random()*(e-t+1))},randFloat:function(t,e){return t+Math.random()*(e-t)},randFloatSpread:function(t){return t*(.5-Math.random())},seededRandom:function(t){void 0!==t&&(Tt=t);let e=Tt+=1831565813;return e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296},degToRad:function(t){return t*kt},radToDeg:function(t){return t*It},isPowerOfTwo:Rt,ceilPowerOfTwo:Dt,floorPowerOfTwo:zt,setQuaternionFromProperEuler:function(t,e,n,r,i){const o=Math.cos,a=Math.sin,s=o(n/2),u=a(n/2),l=o((e+r)/2),c=a((e+r)/2),h=o((e-r)/2),d=a((e-r)/2),f=o((r-e)/2),p=a((r-e)/2);switch(i){case"XYX":t.set(s*c,u*h,u*d,s*l);break;case"YZY":t.set(u*d,s*c,u*h,s*l);break;case"ZXZ":t.set(u*h,u*d,s*c,s*l);break;case"XZX":t.set(s*c,u*p,u*f,s*l);break;case"YXY":t.set(u*f,s*c,u*p,s*l);break;case"ZYZ":t.set(u*p,u*f,s*c,s*l);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+i)}},normalize:Bt,denormalize:Ft};class jt{constructor(t=0,e=0){jt.prototype.isVector2=!0,this.x=t,this.y=e}get width(){return this.x}set width(t){this.x=t}get height(){return this.y}set height(t){this.y=t}set(t,e){return this.x=t,this.y=e,this}setScalar(t){return this.x=t,this.y=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y)}copy(t){return this.x=t.x,this.y=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}addScalar(t){return this.x+=t,this.y+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this}sub(t){return this.x-=t.x,this.y-=t.y,this}subScalar(t){return this.x-=t,this.y-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}multiply(t){return this.x*=t.x,this.y*=t.y,this}multiplyScalar(t){return this.x*=t,this.y*=t,this}divide(t){return this.x/=t.x,this.y/=t.y,this}divideScalar(t){return this.multiplyScalar(1/t)}applyMatrix3(t){const e=this.x,n=this.y,r=t.elements;return this.x=r[0]*e+r[3]*n+r[6],this.y=r[1]*e+r[4]*n+r[7],this}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this}clampLength(t,e){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-this.y*t.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(t){const e=Math.sqrt(this.lengthSq()*t.lengthSq());if(0===e)return Math.PI/2;const n=this.dot(t)/e;return Math.acos(Pt(n,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const e=this.x-t.x,n=this.y-t.y;return e*e+n*n}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this}lerpVectors(t,e,n){return this.x=t.x+(e.x-t.x)*n,this.y=t.y+(e.y-t.y)*n,this}equals(t){return t.x===this.x&&t.y===this.y}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t}fromBufferAttribute(t,e){return this.x=t.getX(e),this.y=t.getY(e),this}rotateAround(t,e){const n=Math.cos(e),r=Math.sin(e),i=this.x-t.x,o=this.y-t.y;return this.x=i*n-o*r+t.x,this.y=i*r+o*n+t.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class Vt{constructor(){Vt.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1]}set(t,e,n,r,i,o,a,s,u){const l=this.elements;return l[0]=t,l[1]=r,l[2]=a,l[3]=e,l[4]=i,l[5]=s,l[6]=n,l[7]=o,l[8]=u,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(t){const e=this.elements,n=t.elements;return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=n[6],e[7]=n[7],e[8]=n[8],this}extractBasis(t,e,n){return t.setFromMatrix3Column(this,0),e.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(t){const e=t.elements;return this.set(e[0],e[4],e[8],e[1],e[5],e[9],e[2],e[6],e[10]),this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,e){const n=t.elements,r=e.elements,i=this.elements,o=n[0],a=n[3],s=n[6],u=n[1],l=n[4],c=n[7],h=n[2],d=n[5],f=n[8],p=r[0],m=r[3],g=r[6],v=r[1],y=r[4],b=r[7],x=r[2],w=r[5],_=r[8];return i[0]=o*p+a*v+s*x,i[3]=o*m+a*y+s*w,i[6]=o*g+a*b+s*_,i[1]=u*p+l*v+c*x,i[4]=u*m+l*y+c*w,i[7]=u*g+l*b+c*_,i[2]=h*p+d*v+f*x,i[5]=h*m+d*y+f*w,i[8]=h*g+d*b+f*_,this}multiplyScalar(t){const e=this.elements;return e[0]*=t,e[3]*=t,e[6]*=t,e[1]*=t,e[4]*=t,e[7]*=t,e[2]*=t,e[5]*=t,e[8]*=t,this}determinant(){const t=this.elements,e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],u=t[7],l=t[8];return e*o*l-e*a*u-n*i*l+n*a*s+r*i*u-r*o*s}invert(){const t=this.elements,e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],u=t[7],l=t[8],c=l*o-a*u,h=a*s-l*i,d=u*i-o*s,f=e*c+n*h+r*d;if(0===f)return this.set(0,0,0,0,0,0,0,0,0);const p=1/f;return t[0]=c*p,t[1]=(r*u-l*n)*p,t[2]=(a*n-r*o)*p,t[3]=h*p,t[4]=(l*e-r*s)*p,t[5]=(r*i-a*e)*p,t[6]=d*p,t[7]=(n*s-u*e)*p,t[8]=(o*e-n*i)*p,this}transpose(){let t;const e=this.elements;return t=e[1],e[1]=e[3],e[3]=t,t=e[2],e[2]=e[6],e[6]=t,t=e[5],e[5]=e[7],e[7]=t,this}getNormalMatrix(t){return this.setFromMatrix4(t).invert().transpose()}transposeIntoArray(t){const e=this.elements;return t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8],this}setUvTransform(t,e,n,r,i,o,a){const s=Math.cos(i),u=Math.sin(i);return this.set(n*s,n*u,-n*(s*o+u*a)+o+t,-r*u,r*s,-r*(-u*o+s*a)+a+e,0,0,1),this}scale(t,e){return this.premultiply(Ht.makeScale(t,e)),this}rotate(t){return this.premultiply(Ht.makeRotation(-t)),this}translate(t,e){return this.premultiply(Ht.makeTranslation(t,e)),this}makeTranslation(t,e){return this.set(1,0,t,0,1,e,0,0,1),this}makeRotation(t){const e=Math.cos(t),n=Math.sin(t);return this.set(e,-n,0,n,e,0,0,0,1),this}makeScale(t,e){return this.set(t,0,0,0,e,0,0,0,1),this}equals(t){const e=this.elements,n=t.elements;for(let t=0;t<9;t++)if(e[t]!==n[t])return!1;return!0}fromArray(t,e=0){for(let n=0;n<9;n++)this.elements[n]=t[n+e];return this}toArray(t=[],e=0){const n=this.elements;return t[e]=n[0],t[e+1]=n[1],t[e+2]=n[2],t[e+3]=n[3],t[e+4]=n[4],t[e+5]=n[5],t[e+6]=n[6],t[e+7]=n[7],t[e+8]=n[8],t}clone(){return(new this.constructor).fromArray(this.elements)}}const Ht=new Vt;function Gt(t){for(let e=t.length-1;e>=0;--e)if(t[e]>=65535)return!0;return!1}Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array;function Wt(t){return document.createElementNS("http://www.w3.org/1999/xhtml",t)}function Xt(t){return t<.04045?.0773993808*t:Math.pow(.9478672986*t+.0521327014,2.4)}function Yt(t){return t<.0031308?12.92*t:1.055*Math.pow(t,.41666)-.055}const qt=(new Vt).fromArray([.8224621,.0331941,.0170827,.177538,.9668058,.0723974,-1e-7,1e-7,.9105199]),$t=(new Vt).fromArray([1.2249401,-.0420569,-.0196376,-.2249404,1.0420571,-.0786361,1e-7,0,1.0982735]);const Kt={[xt]:t=>t,[bt]:t=>t.convertSRGBToLinear(),[wt]:function(t){return t.convertSRGBToLinear().applyMatrix3($t)}},Zt={[xt]:t=>t,[bt]:t=>t.convertLinearToSRGB(),[wt]:function(t){return t.applyMatrix3(qt).convertLinearToSRGB()}},Qt={enabled:!1,get legacyMode(){return console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),!this.enabled},set legacyMode(t){console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),this.enabled=!t},get workingColorSpace(){return xt},set workingColorSpace(t){console.warn("THREE.ColorManagement: .workingColorSpace is readonly.")},convert:function(t,e,n){if(!1===this.enabled||e===n||!e||!n)return t;const r=Kt[e],i=Zt[n];if(void 0===r||void 0===i)throw new Error(`Unsupported color space conversion, "${e}" to "${n}".`);return i(r(t))},fromWorkingColorSpace:function(t,e){return this.convert(t,this.workingColorSpace,e)},toWorkingColorSpace:function(t,e){return this.convert(t,e,this.workingColorSpace)}};let Jt;class te{static getDataURL(t){if(/^data:/i.test(t.src))return t.src;if("undefined"==typeof HTMLCanvasElement)return t.src;let e;if(t instanceof HTMLCanvasElement)e=t;else{void 0===Jt&&(Jt=Wt("canvas")),Jt.width=t.width,Jt.height=t.height;const n=Jt.getContext("2d");t instanceof ImageData?n.putImageData(t,0,0):n.drawImage(t,0,0,t.width,t.height),e=Jt}return e.width>2048||e.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",t),e.toDataURL("image/jpeg",.6)):e.toDataURL("image/png")}static sRGBToLinear(t){if("undefined"!=typeof HTMLImageElement&&t instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap){const e=Wt("canvas");e.width=t.width,e.height=t.height;const n=e.getContext("2d");n.drawImage(t,0,0,t.width,t.height);const r=n.getImageData(0,0,t.width,t.height),i=r.data;for(let t=0;t0&&(n.userData=this.userData),e||(t.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(t){if(300!==this.mapping)return t;if(t.applyMatrix3(this.matrix),t.x<0||t.x>1)switch(this.wrapS){case U:t.x=t.x-Math.floor(t.x);break;case j:t.x=t.x<0?0:1;break;case V:1===Math.abs(Math.floor(t.x)%2)?t.x=Math.ceil(t.x)-t.x:t.x=t.x-Math.floor(t.x)}if(t.y<0||t.y>1)switch(this.wrapT){case U:t.y=t.y-Math.floor(t.y);break;case j:t.y=t.y<0?0:1;break;case V:1===Math.abs(Math.floor(t.y)%2)?t.y=Math.ceil(t.y)-t.y:t.y=t.y-Math.floor(t.y)}return this.flipY&&(t.y=1-t.y),t}set needsUpdate(t){!0===t&&(this.version++,this.source.needsUpdate=!0)}}ie.DEFAULT_IMAGE=null,ie.DEFAULT_MAPPING=300,ie.DEFAULT_ANISOTROPY=1;class oe{constructor(t=0,e=0,n=0,r=1){oe.prototype.isVector4=!0,this.x=t,this.y=e,this.z=n,this.w=r}get width(){return this.z}set width(t){this.z=t}get height(){return this.w}set height(t){this.w=t}set(t,e,n,r){return this.x=t,this.y=e,this.z=n,this.w=r,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this.w=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setW(t){return this.w=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;case 3:this.w=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=void 0!==t.w?t.w:1,this}add(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this.w+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this.w=t.w+e.w,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this.w+=t.w*e,this}sub(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this.w-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this.w=t.w-e.w,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this.w*=t.w,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this}applyMatrix4(t){const e=this.x,n=this.y,r=this.z,i=this.w,o=t.elements;return this.x=o[0]*e+o[4]*n+o[8]*r+o[12]*i,this.y=o[1]*e+o[5]*n+o[9]*r+o[13]*i,this.z=o[2]*e+o[6]*n+o[10]*r+o[14]*i,this.w=o[3]*e+o[7]*n+o[11]*r+o[15]*i,this}divideScalar(t){return this.multiplyScalar(1/t)}setAxisAngleFromQuaternion(t){this.w=2*Math.acos(t.w);const e=Math.sqrt(1-t.w*t.w);return e<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=t.x/e,this.y=t.y/e,this.z=t.z/e),this}setAxisAngleFromRotationMatrix(t){let e,n,r,i;const o=.01,a=.1,s=t.elements,u=s[0],l=s[4],c=s[8],h=s[1],d=s[5],f=s[9],p=s[2],m=s[6],g=s[10];if(Math.abs(l-h)s&&t>v?tv?s=0?1:-1,r=1-e*e;if(r>Number.EPSILON){const i=Math.sqrt(r),o=Math.atan2(i,e*n);t=Math.sin(t*o)/i,a=Math.sin(a*o)/i}const i=a*n;if(s=s*t+h*i,u=u*t+d*i,l=l*t+f*i,c=c*t+p*i,t===1-a){const t=1/Math.sqrt(s*s+u*u+l*l+c*c);s*=t,u*=t,l*=t,c*=t}}t[e]=s,t[e+1]=u,t[e+2]=l,t[e+3]=c}static multiplyQuaternionsFlat(t,e,n,r,i,o){const a=n[r],s=n[r+1],u=n[r+2],l=n[r+3],c=i[o],h=i[o+1],d=i[o+2],f=i[o+3];return t[e]=a*f+l*c+s*d-u*h,t[e+1]=s*f+l*h+u*c-a*d,t[e+2]=u*f+l*d+a*h-s*c,t[e+3]=l*f-a*c-s*h-u*d,t}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get w(){return this._w}set w(t){this._w=t,this._onChangeCallback()}set(t,e,n,r){return this._x=t,this._y=e,this._z=n,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this._onChangeCallback(),this}setFromEuler(t,e){const n=t._x,r=t._y,i=t._z,o=t._order,a=Math.cos,s=Math.sin,u=a(n/2),l=a(r/2),c=a(i/2),h=s(n/2),d=s(r/2),f=s(i/2);switch(o){case"XYZ":this._x=h*l*c+u*d*f,this._y=u*d*c-h*l*f,this._z=u*l*f+h*d*c,this._w=u*l*c-h*d*f;break;case"YXZ":this._x=h*l*c+u*d*f,this._y=u*d*c-h*l*f,this._z=u*l*f-h*d*c,this._w=u*l*c+h*d*f;break;case"ZXY":this._x=h*l*c-u*d*f,this._y=u*d*c+h*l*f,this._z=u*l*f+h*d*c,this._w=u*l*c-h*d*f;break;case"ZYX":this._x=h*l*c-u*d*f,this._y=u*d*c+h*l*f,this._z=u*l*f-h*d*c,this._w=u*l*c+h*d*f;break;case"YZX":this._x=h*l*c+u*d*f,this._y=u*d*c+h*l*f,this._z=u*l*f-h*d*c,this._w=u*l*c-h*d*f;break;case"XZY":this._x=h*l*c-u*d*f,this._y=u*d*c-h*l*f,this._z=u*l*f+h*d*c,this._w=u*l*c+h*d*f;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}return!1!==e&&this._onChangeCallback(),this}setFromAxisAngle(t,e){const n=e/2,r=Math.sin(n);return this._x=t.x*r,this._y=t.y*r,this._z=t.z*r,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(t){const e=t.elements,n=e[0],r=e[4],i=e[8],o=e[1],a=e[5],s=e[9],u=e[2],l=e[6],c=e[10],h=n+a+c;if(h>0){const t=.5/Math.sqrt(h+1);this._w=.25/t,this._x=(l-s)*t,this._y=(i-u)*t,this._z=(o-r)*t}else if(n>a&&n>c){const t=2*Math.sqrt(1+n-a-c);this._w=(l-s)/t,this._x=.25*t,this._y=(r+o)/t,this._z=(i+u)/t}else if(a>c){const t=2*Math.sqrt(1+a-n-c);this._w=(i-u)/t,this._x=(r+o)/t,this._y=.25*t,this._z=(s+l)/t}else{const t=2*Math.sqrt(1+c-n-a);this._w=(o-r)/t,this._x=(i+u)/t,this._y=(s+l)/t,this._z=.25*t}return this._onChangeCallback(),this}setFromUnitVectors(t,e){let n=t.dot(e)+1;return nMath.abs(t.z)?(this._x=-t.y,this._y=t.x,this._z=0,this._w=n):(this._x=0,this._y=-t.z,this._z=t.y,this._w=n)):(this._x=t.y*e.z-t.z*e.y,this._y=t.z*e.x-t.x*e.z,this._z=t.x*e.y-t.y*e.x,this._w=n),this.normalize()}angleTo(t){return 2*Math.acos(Math.abs(Pt(this.dot(t),-1,1)))}rotateTowards(t,e){const n=this.angleTo(t);if(0===n)return this;const r=Math.min(1,e/n);return this.slerp(t,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let t=this.length();return 0===t?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this._onChangeCallback(),this}multiply(t){return this.multiplyQuaternions(this,t)}premultiply(t){return this.multiplyQuaternions(t,this)}multiplyQuaternions(t,e){const n=t._x,r=t._y,i=t._z,o=t._w,a=e._x,s=e._y,u=e._z,l=e._w;return this._x=n*l+o*a+r*u-i*s,this._y=r*l+o*s+i*a-n*u,this._z=i*l+o*u+n*s-r*a,this._w=o*l-n*a-r*s-i*u,this._onChangeCallback(),this}slerp(t,e){if(0===e)return this;if(1===e)return this.copy(t);const n=this._x,r=this._y,i=this._z,o=this._w;let a=o*t._w+n*t._x+r*t._y+i*t._z;if(a<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,a=-a):this.copy(t),a>=1)return this._w=o,this._x=n,this._y=r,this._z=i,this;const s=1-a*a;if(s<=Number.EPSILON){const t=1-e;return this._w=t*o+e*this._w,this._x=t*n+e*this._x,this._y=t*r+e*this._y,this._z=t*i+e*this._z,this.normalize(),this._onChangeCallback(),this}const u=Math.sqrt(s),l=Math.atan2(u,a),c=Math.sin((1-e)*l)/u,h=Math.sin(e*l)/u;return this._w=o*c+this._w*h,this._x=n*c+this._x*h,this._y=r*c+this._y*h,this._z=i*c+this._z*h,this._onChangeCallback(),this}slerpQuaternions(t,e,n){return this.copy(t).slerp(e,n)}random(){const t=Math.random(),e=Math.sqrt(1-t),n=Math.sqrt(t),r=2*Math.PI*Math.random(),i=2*Math.PI*Math.random();return this.set(e*Math.cos(r),n*Math.sin(i),n*Math.cos(i),e*Math.sin(r))}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w}fromArray(t,e=0){return this._x=t[e],this._y=t[e+1],this._z=t[e+2],this._w=t[e+3],this._onChangeCallback(),this}toArray(t=[],e=0){return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._w,t}fromBufferAttribute(t,e){return this._x=t.getX(e),this._y=t.getY(e),this._z=t.getZ(e),this._w=t.getW(e),this}toJSON(){return this.toArray()}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class ce{constructor(t=0,e=0,n=0){ce.prototype.isVector3=!0,this.x=t,this.y=e,this.z=n}set(t,e,n){return void 0===n&&(n=this.z),this.x=t,this.y=e,this.z=n,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this}add(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this}sub(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this}multiplyVectors(t,e){return this.x=t.x*e.x,this.y=t.y*e.y,this.z=t.z*e.z,this}applyEuler(t){return this.applyQuaternion(de.setFromEuler(t))}applyAxisAngle(t,e){return this.applyQuaternion(de.setFromAxisAngle(t,e))}applyMatrix3(t){const e=this.x,n=this.y,r=this.z,i=t.elements;return this.x=i[0]*e+i[3]*n+i[6]*r,this.y=i[1]*e+i[4]*n+i[7]*r,this.z=i[2]*e+i[5]*n+i[8]*r,this}applyNormalMatrix(t){return this.applyMatrix3(t).normalize()}applyMatrix4(t){const e=this.x,n=this.y,r=this.z,i=t.elements,o=1/(i[3]*e+i[7]*n+i[11]*r+i[15]);return this.x=(i[0]*e+i[4]*n+i[8]*r+i[12])*o,this.y=(i[1]*e+i[5]*n+i[9]*r+i[13])*o,this.z=(i[2]*e+i[6]*n+i[10]*r+i[14])*o,this}applyQuaternion(t){const e=this.x,n=this.y,r=this.z,i=t.x,o=t.y,a=t.z,s=t.w,u=s*e+o*r-a*n,l=s*n+a*e-i*r,c=s*r+i*n-o*e,h=-i*e-o*n-a*r;return this.x=u*s+h*-i+l*-a-c*-o,this.y=l*s+h*-o+c*-i-u*-a,this.z=c*s+h*-a+u*-o-l*-i,this}project(t){return this.applyMatrix4(t.matrixWorldInverse).applyMatrix4(t.projectionMatrix)}unproject(t){return this.applyMatrix4(t.projectionMatrixInverse).applyMatrix4(t.matrixWorld)}transformDirection(t){const e=this.x,n=this.y,r=this.z,i=t.elements;return this.x=i[0]*e+i[4]*n+i[8]*r,this.y=i[1]*e+i[5]*n+i[9]*r,this.z=i[2]*e+i[6]*n+i[10]*r,this.normalize()}divide(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this}divideScalar(t){return this.multiplyScalar(1/t)}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this.z=Math.max(t,Math.min(e,this.z)),this}clampLength(t,e){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this}lerpVectors(t,e,n){return this.x=t.x+(e.x-t.x)*n,this.y=t.y+(e.y-t.y)*n,this.z=t.z+(e.z-t.z)*n,this}cross(t){return this.crossVectors(this,t)}crossVectors(t,e){const n=t.x,r=t.y,i=t.z,o=e.x,a=e.y,s=e.z;return this.x=r*s-i*a,this.y=i*o-n*s,this.z=n*a-r*o,this}projectOnVector(t){const e=t.lengthSq();if(0===e)return this.set(0,0,0);const n=t.dot(this)/e;return this.copy(t).multiplyScalar(n)}projectOnPlane(t){return he.copy(this).projectOnVector(t),this.sub(he)}reflect(t){return this.sub(he.copy(t).multiplyScalar(2*this.dot(t)))}angleTo(t){const e=Math.sqrt(this.lengthSq()*t.lengthSq());if(0===e)return Math.PI/2;const n=this.dot(t)/e;return Math.acos(Pt(n,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const e=this.x-t.x,n=this.y-t.y,r=this.z-t.z;return e*e+n*n+r*r}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)}setFromSpherical(t){return this.setFromSphericalCoords(t.radius,t.phi,t.theta)}setFromSphericalCoords(t,e,n){const r=Math.sin(e)*t;return this.x=r*Math.sin(n),this.y=Math.cos(e)*t,this.z=r*Math.cos(n),this}setFromCylindrical(t){return this.setFromCylindricalCoords(t.radius,t.theta,t.y)}setFromCylindricalCoords(t,e,n){return this.x=t*Math.sin(e),this.y=n,this.z=t*Math.cos(e),this}setFromMatrixPosition(t){const e=t.elements;return this.x=e[12],this.y=e[13],this.z=e[14],this}setFromMatrixScale(t){const e=this.setFromMatrixColumn(t,0).length(),n=this.setFromMatrixColumn(t,1).length(),r=this.setFromMatrixColumn(t,2).length();return this.x=e,this.y=n,this.z=r,this}setFromMatrixColumn(t,e){return this.fromArray(t.elements,4*e)}setFromMatrix3Column(t,e){return this.fromArray(t.elements,3*e)}setFromEuler(t){return this.x=t._x,this.y=t._y,this.z=t._z,this}setFromColor(t){return this.x=t.r,this.y=t.g,this.z=t.b,this}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this.z=t[e+2],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t}fromBufferAttribute(t,e){return this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const t=2*(Math.random()-.5),e=Math.random()*Math.PI*2,n=Math.sqrt(1-t**2);return this.x=n*Math.cos(e),this.y=n*Math.sin(e),this.z=t,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const he=new ce,de=new le;class fe{constructor(t=new ce(1/0,1/0,1/0),e=new ce(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=t,this.max=e}set(t,e){return this.min.copy(t),this.max.copy(e),this}setFromArray(t){this.makeEmpty();for(let e=0,n=t.length;ethis.max.x||t.ythis.max.y||t.zthis.max.z)}containsBox(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y&&this.min.z<=t.min.z&&t.max.z<=this.max.z}getParameter(t,e){return e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y),(t.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(t){return!(t.max.xthis.max.x||t.max.ythis.max.y||t.max.zthis.max.z)}intersectsSphere(t){return this.clampPoint(t.center,me),me.distanceToSquared(t.center)<=t.radius*t.radius}intersectsPlane(t){let e,n;return t.normal.x>0?(e=t.normal.x*this.min.x,n=t.normal.x*this.max.x):(e=t.normal.x*this.max.x,n=t.normal.x*this.min.x),t.normal.y>0?(e+=t.normal.y*this.min.y,n+=t.normal.y*this.max.y):(e+=t.normal.y*this.max.y,n+=t.normal.y*this.min.y),t.normal.z>0?(e+=t.normal.z*this.min.z,n+=t.normal.z*this.max.z):(e+=t.normal.z*this.max.z,n+=t.normal.z*this.min.z),e<=-t.constant&&n>=-t.constant}intersectsTriangle(t){if(this.isEmpty())return!1;this.getCenter(Se),Ee.subVectors(this.max,Se),ve.subVectors(t.a,Se),ye.subVectors(t.b,Se),be.subVectors(t.c,Se),xe.subVectors(ye,ve),we.subVectors(be,ye),_e.subVectors(ve,be);let e=[0,-xe.z,xe.y,0,-we.z,we.y,0,-_e.z,_e.y,xe.z,0,-xe.x,we.z,0,-we.x,_e.z,0,-_e.x,-xe.y,xe.x,0,-we.y,we.x,0,-_e.y,_e.x,0];return!!Ce(e,ve,ye,be,Ee)&&(e=[1,0,0,0,1,0,0,0,1],!!Ce(e,ve,ye,be,Ee)&&(Ae.crossVectors(xe,we),e=[Ae.x,Ae.y,Ae.z],Ce(e,ve,ye,be,Ee)))}clampPoint(t,e){return e.copy(t).clamp(this.min,this.max)}distanceToPoint(t){return this.clampPoint(t,me).distanceTo(t)}getBoundingSphere(t){return this.isEmpty()?t.makeEmpty():(this.getCenter(t.center),t.radius=.5*this.getSize(me).length()),t}intersect(t){return this.min.max(t.min),this.max.min(t.max),this.isEmpty()&&this.makeEmpty(),this}union(t){return this.min.min(t.min),this.max.max(t.max),this}applyMatrix4(t){return this.isEmpty()||(pe[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(t),pe[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(t),pe[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(t),pe[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(t),pe[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(t),pe[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(t),pe[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(t),pe[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(t),this.setFromPoints(pe)),this}translate(t){return this.min.add(t),this.max.add(t),this}equals(t){return t.min.equals(this.min)&&t.max.equals(this.max)}}const pe=[new ce,new ce,new ce,new ce,new ce,new ce,new ce,new ce],me=new ce,ge=new fe,ve=new ce,ye=new ce,be=new ce,xe=new ce,we=new ce,_e=new ce,Se=new ce,Ee=new ce,Ae=new ce,Me=new ce;function Ce(t,e,n,r,i){for(let o=0,a=t.length-3;o<=a;o+=3){Me.fromArray(t,o);const a=i.x*Math.abs(Me.x)+i.y*Math.abs(Me.y)+i.z*Math.abs(Me.z),s=e.dot(Me),u=n.dot(Me),l=r.dot(Me);if(Math.max(-Math.max(s,u,l),Math.min(s,u,l))>a)return!1}return!0}const Te=new fe,ke=new ce,Ie=new ce;class Ne{constructor(t=new ce,e=-1){this.center=t,this.radius=e}set(t,e){return this.center.copy(t),this.radius=e,this}setFromPoints(t,e){const n=this.center;void 0!==e?n.copy(e):Te.setFromPoints(t).getCenter(n);let r=0;for(let e=0,i=t.length;ethis.radius*this.radius&&(e.sub(this.center).normalize(),e.multiplyScalar(this.radius).add(this.center)),e}getBoundingBox(t){return this.isEmpty()?(t.makeEmpty(),t):(t.set(this.center,this.center),t.expandByScalar(this.radius),t)}applyMatrix4(t){return this.center.applyMatrix4(t),this.radius=this.radius*t.getMaxScaleOnAxis(),this}translate(t){return this.center.add(t),this}expandByPoint(t){if(this.isEmpty())return this.center.copy(t),this.radius=0,this;ke.subVectors(t,this.center);const e=ke.lengthSq();if(e>this.radius*this.radius){const t=Math.sqrt(e),n=.5*(t-this.radius);this.center.addScaledVector(ke,n/t),this.radius+=n}return this}union(t){return t.isEmpty()?this:this.isEmpty()?(this.copy(t),this):(!0===this.center.equals(t.center)?this.radius=Math.max(this.radius,t.radius):(Ie.subVectors(t.center,this.center).setLength(t.radius),this.expandByPoint(ke.copy(t.center).add(Ie)),this.expandByPoint(ke.copy(t.center).sub(Ie))),this)}equals(t){return t.center.equals(this.center)&&t.radius===this.radius}clone(){return(new this.constructor).copy(this)}}const Pe=new ce,Oe=new ce,Le=new ce,Re=new ce,De=new ce,ze=new ce,Fe=new ce;class Be{constructor(t=new ce,e=new ce(0,0,-1)){this.origin=t,this.direction=e}set(t,e){return this.origin.copy(t),this.direction.copy(e),this}copy(t){return this.origin.copy(t.origin),this.direction.copy(t.direction),this}at(t,e){return e.copy(this.origin).addScaledVector(this.direction,t)}lookAt(t){return this.direction.copy(t).sub(this.origin).normalize(),this}recast(t){return this.origin.copy(this.at(t,Pe)),this}closestPointToPoint(t,e){e.subVectors(t,this.origin);const n=e.dot(this.direction);return n<0?e.copy(this.origin):e.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(t){return Math.sqrt(this.distanceSqToPoint(t))}distanceSqToPoint(t){const e=Pe.subVectors(t,this.origin).dot(this.direction);return e<0?this.origin.distanceToSquared(t):(Pe.copy(this.origin).addScaledVector(this.direction,e),Pe.distanceToSquared(t))}distanceSqToSegment(t,e,n,r){Oe.copy(t).add(e).multiplyScalar(.5),Le.copy(e).sub(t).normalize(),Re.copy(this.origin).sub(Oe);const i=.5*t.distanceTo(e),o=-this.direction.dot(Le),a=Re.dot(this.direction),s=-Re.dot(Le),u=Re.lengthSq(),l=Math.abs(1-o*o);let c,h,d,f;if(l>0)if(c=o*s-a,h=o*a-s,f=i*l,c>=0)if(h>=-f)if(h<=f){const t=1/l;c*=t,h*=t,d=c*(c+o*h+2*a)+h*(o*c+h+2*s)+u}else h=i,c=Math.max(0,-(o*h+a)),d=-c*c+h*(h+2*s)+u;else h=-i,c=Math.max(0,-(o*h+a)),d=-c*c+h*(h+2*s)+u;else h<=-f?(c=Math.max(0,-(-o*i+a)),h=c>0?-i:Math.min(Math.max(-i,-s),i),d=-c*c+h*(h+2*s)+u):h<=f?(c=0,h=Math.min(Math.max(-i,-s),i),d=h*(h+2*s)+u):(c=Math.max(0,-(o*i+a)),h=c>0?i:Math.min(Math.max(-i,-s),i),d=-c*c+h*(h+2*s)+u);else h=o>0?-i:i,c=Math.max(0,-(o*h+a)),d=-c*c+h*(h+2*s)+u;return n&&n.copy(this.origin).addScaledVector(this.direction,c),r&&r.copy(Oe).addScaledVector(Le,h),d}intersectSphere(t,e){Pe.subVectors(t.center,this.origin);const n=Pe.dot(this.direction),r=Pe.dot(Pe)-n*n,i=t.radius*t.radius;if(r>i)return null;const o=Math.sqrt(i-r),a=n-o,s=n+o;return s<0?null:a<0?this.at(s,e):this.at(a,e)}intersectsSphere(t){return this.distanceSqToPoint(t.center)<=t.radius*t.radius}distanceToPlane(t){const e=t.normal.dot(this.direction);if(0===e)return 0===t.distanceToPoint(this.origin)?0:null;const n=-(this.origin.dot(t.normal)+t.constant)/e;return n>=0?n:null}intersectPlane(t,e){const n=this.distanceToPlane(t);return null===n?null:this.at(n,e)}intersectsPlane(t){const e=t.distanceToPoint(this.origin);if(0===e)return!0;return t.normal.dot(this.direction)*e<0}intersectBox(t,e){let n,r,i,o,a,s;const u=1/this.direction.x,l=1/this.direction.y,c=1/this.direction.z,h=this.origin;return u>=0?(n=(t.min.x-h.x)*u,r=(t.max.x-h.x)*u):(n=(t.max.x-h.x)*u,r=(t.min.x-h.x)*u),l>=0?(i=(t.min.y-h.y)*l,o=(t.max.y-h.y)*l):(i=(t.max.y-h.y)*l,o=(t.min.y-h.y)*l),n>o||i>r?null:((i>n||isNaN(n))&&(n=i),(o=0?(a=(t.min.z-h.z)*c,s=(t.max.z-h.z)*c):(a=(t.max.z-h.z)*c,s=(t.min.z-h.z)*c),n>s||a>r?null:((a>n||n!=n)&&(n=a),(s=0?n:r,e)))}intersectsBox(t){return null!==this.intersectBox(t,Pe)}intersectTriangle(t,e,n,r,i){De.subVectors(e,t),ze.subVectors(n,t),Fe.crossVectors(De,ze);let o,a=this.direction.dot(Fe);if(a>0){if(r)return null;o=1}else{if(!(a<0))return null;o=-1,a=-a}Re.subVectors(this.origin,t);const s=o*this.direction.dot(ze.crossVectors(Re,ze));if(s<0)return null;const u=o*this.direction.dot(De.cross(Re));if(u<0)return null;if(s+u>a)return null;const l=-o*Re.dot(Fe);return l<0?null:this.at(l/a,i)}applyMatrix4(t){return this.origin.applyMatrix4(t),this.direction.transformDirection(t),this}equals(t){return t.origin.equals(this.origin)&&t.direction.equals(this.direction)}clone(){return(new this.constructor).copy(this)}}class Ue{constructor(){Ue.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}set(t,e,n,r,i,o,a,s,u,l,c,h,d,f,p,m){const g=this.elements;return g[0]=t,g[4]=e,g[8]=n,g[12]=r,g[1]=i,g[5]=o,g[9]=a,g[13]=s,g[2]=u,g[6]=l,g[10]=c,g[14]=h,g[3]=d,g[7]=f,g[11]=p,g[15]=m,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return(new Ue).fromArray(this.elements)}copy(t){const e=this.elements,n=t.elements;return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=n[6],e[7]=n[7],e[8]=n[8],e[9]=n[9],e[10]=n[10],e[11]=n[11],e[12]=n[12],e[13]=n[13],e[14]=n[14],e[15]=n[15],this}copyPosition(t){const e=this.elements,n=t.elements;return e[12]=n[12],e[13]=n[13],e[14]=n[14],this}setFromMatrix3(t){const e=t.elements;return this.set(e[0],e[3],e[6],0,e[1],e[4],e[7],0,e[2],e[5],e[8],0,0,0,0,1),this}extractBasis(t,e,n){return t.setFromMatrixColumn(this,0),e.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}makeBasis(t,e,n){return this.set(t.x,e.x,n.x,0,t.y,e.y,n.y,0,t.z,e.z,n.z,0,0,0,0,1),this}extractRotation(t){const e=this.elements,n=t.elements,r=1/je.setFromMatrixColumn(t,0).length(),i=1/je.setFromMatrixColumn(t,1).length(),o=1/je.setFromMatrixColumn(t,2).length();return e[0]=n[0]*r,e[1]=n[1]*r,e[2]=n[2]*r,e[3]=0,e[4]=n[4]*i,e[5]=n[5]*i,e[6]=n[6]*i,e[7]=0,e[8]=n[8]*o,e[9]=n[9]*o,e[10]=n[10]*o,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromEuler(t){const e=this.elements,n=t.x,r=t.y,i=t.z,o=Math.cos(n),a=Math.sin(n),s=Math.cos(r),u=Math.sin(r),l=Math.cos(i),c=Math.sin(i);if("XYZ"===t.order){const t=o*l,n=o*c,r=a*l,i=a*c;e[0]=s*l,e[4]=-s*c,e[8]=u,e[1]=n+r*u,e[5]=t-i*u,e[9]=-a*s,e[2]=i-t*u,e[6]=r+n*u,e[10]=o*s}else if("YXZ"===t.order){const t=s*l,n=s*c,r=u*l,i=u*c;e[0]=t+i*a,e[4]=r*a-n,e[8]=o*u,e[1]=o*c,e[5]=o*l,e[9]=-a,e[2]=n*a-r,e[6]=i+t*a,e[10]=o*s}else if("ZXY"===t.order){const t=s*l,n=s*c,r=u*l,i=u*c;e[0]=t-i*a,e[4]=-o*c,e[8]=r+n*a,e[1]=n+r*a,e[5]=o*l,e[9]=i-t*a,e[2]=-o*u,e[6]=a,e[10]=o*s}else if("ZYX"===t.order){const t=o*l,n=o*c,r=a*l,i=a*c;e[0]=s*l,e[4]=r*u-n,e[8]=t*u+i,e[1]=s*c,e[5]=i*u+t,e[9]=n*u-r,e[2]=-u,e[6]=a*s,e[10]=o*s}else if("YZX"===t.order){const t=o*s,n=o*u,r=a*s,i=a*u;e[0]=s*l,e[4]=i-t*c,e[8]=r*c+n,e[1]=c,e[5]=o*l,e[9]=-a*l,e[2]=-u*l,e[6]=n*c+r,e[10]=t-i*c}else if("XZY"===t.order){const t=o*s,n=o*u,r=a*s,i=a*u;e[0]=s*l,e[4]=-c,e[8]=u*l,e[1]=t*c+i,e[5]=o*l,e[9]=n*c-r,e[2]=r*c-n,e[6]=a*l,e[10]=i*c+t}return e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromQuaternion(t){return this.compose(He,t,Ge)}lookAt(t,e,n){const r=this.elements;return Ye.subVectors(t,e),0===Ye.lengthSq()&&(Ye.z=1),Ye.normalize(),We.crossVectors(n,Ye),0===We.lengthSq()&&(1===Math.abs(n.z)?Ye.x+=1e-4:Ye.z+=1e-4,Ye.normalize(),We.crossVectors(n,Ye)),We.normalize(),Xe.crossVectors(Ye,We),r[0]=We.x,r[4]=Xe.x,r[8]=Ye.x,r[1]=We.y,r[5]=Xe.y,r[9]=Ye.y,r[2]=We.z,r[6]=Xe.z,r[10]=Ye.z,this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,e){const n=t.elements,r=e.elements,i=this.elements,o=n[0],a=n[4],s=n[8],u=n[12],l=n[1],c=n[5],h=n[9],d=n[13],f=n[2],p=n[6],m=n[10],g=n[14],v=n[3],y=n[7],b=n[11],x=n[15],w=r[0],_=r[4],S=r[8],E=r[12],A=r[1],M=r[5],C=r[9],T=r[13],k=r[2],I=r[6],N=r[10],P=r[14],O=r[3],L=r[7],R=r[11],D=r[15];return i[0]=o*w+a*A+s*k+u*O,i[4]=o*_+a*M+s*I+u*L,i[8]=o*S+a*C+s*N+u*R,i[12]=o*E+a*T+s*P+u*D,i[1]=l*w+c*A+h*k+d*O,i[5]=l*_+c*M+h*I+d*L,i[9]=l*S+c*C+h*N+d*R,i[13]=l*E+c*T+h*P+d*D,i[2]=f*w+p*A+m*k+g*O,i[6]=f*_+p*M+m*I+g*L,i[10]=f*S+p*C+m*N+g*R,i[14]=f*E+p*T+m*P+g*D,i[3]=v*w+y*A+b*k+x*O,i[7]=v*_+y*M+b*I+x*L,i[11]=v*S+y*C+b*N+x*R,i[15]=v*E+y*T+b*P+x*D,this}multiplyScalar(t){const e=this.elements;return e[0]*=t,e[4]*=t,e[8]*=t,e[12]*=t,e[1]*=t,e[5]*=t,e[9]*=t,e[13]*=t,e[2]*=t,e[6]*=t,e[10]*=t,e[14]*=t,e[3]*=t,e[7]*=t,e[11]*=t,e[15]*=t,this}determinant(){const t=this.elements,e=t[0],n=t[4],r=t[8],i=t[12],o=t[1],a=t[5],s=t[9],u=t[13],l=t[2],c=t[6],h=t[10],d=t[14];return t[3]*(+i*s*c-r*u*c-i*a*h+n*u*h+r*a*d-n*s*d)+t[7]*(+e*s*d-e*u*h+i*o*h-r*o*d+r*u*l-i*s*l)+t[11]*(+e*u*c-e*a*d-i*o*c+n*o*d+i*a*l-n*u*l)+t[15]*(-r*a*l-e*s*c+e*a*h+r*o*c-n*o*h+n*s*l)}transpose(){const t=this.elements;let e;return e=t[1],t[1]=t[4],t[4]=e,e=t[2],t[2]=t[8],t[8]=e,e=t[6],t[6]=t[9],t[9]=e,e=t[3],t[3]=t[12],t[12]=e,e=t[7],t[7]=t[13],t[13]=e,e=t[11],t[11]=t[14],t[14]=e,this}setPosition(t,e,n){const r=this.elements;return t.isVector3?(r[12]=t.x,r[13]=t.y,r[14]=t.z):(r[12]=t,r[13]=e,r[14]=n),this}invert(){const t=this.elements,e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],u=t[7],l=t[8],c=t[9],h=t[10],d=t[11],f=t[12],p=t[13],m=t[14],g=t[15],v=c*m*u-p*h*u+p*s*d-a*m*d-c*s*g+a*h*g,y=f*h*u-l*m*u-f*s*d+o*m*d+l*s*g-o*h*g,b=l*p*u-f*c*u+f*a*d-o*p*d-l*a*g+o*c*g,x=f*c*s-l*p*s-f*a*h+o*p*h+l*a*m-o*c*m,w=e*v+n*y+r*b+i*x;if(0===w)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const _=1/w;return t[0]=v*_,t[1]=(p*h*i-c*m*i-p*r*d+n*m*d+c*r*g-n*h*g)*_,t[2]=(a*m*i-p*s*i+p*r*u-n*m*u-a*r*g+n*s*g)*_,t[3]=(c*s*i-a*h*i-c*r*u+n*h*u+a*r*d-n*s*d)*_,t[4]=y*_,t[5]=(l*m*i-f*h*i+f*r*d-e*m*d-l*r*g+e*h*g)*_,t[6]=(f*s*i-o*m*i-f*r*u+e*m*u+o*r*g-e*s*g)*_,t[7]=(o*h*i-l*s*i+l*r*u-e*h*u-o*r*d+e*s*d)*_,t[8]=b*_,t[9]=(f*c*i-l*p*i-f*n*d+e*p*d+l*n*g-e*c*g)*_,t[10]=(o*p*i-f*a*i+f*n*u-e*p*u-o*n*g+e*a*g)*_,t[11]=(l*a*i-o*c*i-l*n*u+e*c*u+o*n*d-e*a*d)*_,t[12]=x*_,t[13]=(l*p*r-f*c*r+f*n*h-e*p*h-l*n*m+e*c*m)*_,t[14]=(f*a*r-o*p*r-f*n*s+e*p*s+o*n*m-e*a*m)*_,t[15]=(o*c*r-l*a*r+l*n*s-e*c*s-o*n*h+e*a*h)*_,this}scale(t){const e=this.elements,n=t.x,r=t.y,i=t.z;return e[0]*=n,e[4]*=r,e[8]*=i,e[1]*=n,e[5]*=r,e[9]*=i,e[2]*=n,e[6]*=r,e[10]*=i,e[3]*=n,e[7]*=r,e[11]*=i,this}getMaxScaleOnAxis(){const t=this.elements,e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],n=t[4]*t[4]+t[5]*t[5]+t[6]*t[6],r=t[8]*t[8]+t[9]*t[9]+t[10]*t[10];return Math.sqrt(Math.max(e,n,r))}makeTranslation(t,e,n){return this.set(1,0,0,t,0,1,0,e,0,0,1,n,0,0,0,1),this}makeRotationX(t){const e=Math.cos(t),n=Math.sin(t);return this.set(1,0,0,0,0,e,-n,0,0,n,e,0,0,0,0,1),this}makeRotationY(t){const e=Math.cos(t),n=Math.sin(t);return this.set(e,0,n,0,0,1,0,0,-n,0,e,0,0,0,0,1),this}makeRotationZ(t){const e=Math.cos(t),n=Math.sin(t);return this.set(e,-n,0,0,n,e,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(t,e){const n=Math.cos(e),r=Math.sin(e),i=1-n,o=t.x,a=t.y,s=t.z,u=i*o,l=i*a;return this.set(u*o+n,u*a-r*s,u*s+r*a,0,u*a+r*s,l*a+n,l*s-r*o,0,u*s-r*a,l*s+r*o,i*s*s+n,0,0,0,0,1),this}makeScale(t,e,n){return this.set(t,0,0,0,0,e,0,0,0,0,n,0,0,0,0,1),this}makeShear(t,e,n,r,i,o){return this.set(1,n,i,0,t,1,o,0,e,r,1,0,0,0,0,1),this}compose(t,e,n){const r=this.elements,i=e._x,o=e._y,a=e._z,s=e._w,u=i+i,l=o+o,c=a+a,h=i*u,d=i*l,f=i*c,p=o*l,m=o*c,g=a*c,v=s*u,y=s*l,b=s*c,x=n.x,w=n.y,_=n.z;return r[0]=(1-(p+g))*x,r[1]=(d+b)*x,r[2]=(f-y)*x,r[3]=0,r[4]=(d-b)*w,r[5]=(1-(h+g))*w,r[6]=(m+v)*w,r[7]=0,r[8]=(f+y)*_,r[9]=(m-v)*_,r[10]=(1-(h+p))*_,r[11]=0,r[12]=t.x,r[13]=t.y,r[14]=t.z,r[15]=1,this}decompose(t,e,n){const r=this.elements;let i=je.set(r[0],r[1],r[2]).length();const o=je.set(r[4],r[5],r[6]).length(),a=je.set(r[8],r[9],r[10]).length();this.determinant()<0&&(i=-i),t.x=r[12],t.y=r[13],t.z=r[14],Ve.copy(this);const s=1/i,u=1/o,l=1/a;return Ve.elements[0]*=s,Ve.elements[1]*=s,Ve.elements[2]*=s,Ve.elements[4]*=u,Ve.elements[5]*=u,Ve.elements[6]*=u,Ve.elements[8]*=l,Ve.elements[9]*=l,Ve.elements[10]*=l,e.setFromRotationMatrix(Ve),n.x=i,n.y=o,n.z=a,this}makePerspective(t,e,n,r,i,o){const a=this.elements,s=2*i/(e-t),u=2*i/(n-r),l=(e+t)/(e-t),c=(n+r)/(n-r),h=-(o+i)/(o-i),d=-2*o*i/(o-i);return a[0]=s,a[4]=0,a[8]=l,a[12]=0,a[1]=0,a[5]=u,a[9]=c,a[13]=0,a[2]=0,a[6]=0,a[10]=h,a[14]=d,a[3]=0,a[7]=0,a[11]=-1,a[15]=0,this}makeOrthographic(t,e,n,r,i,o){const a=this.elements,s=1/(e-t),u=1/(n-r),l=1/(o-i),c=(e+t)*s,h=(n+r)*u,d=(o+i)*l;return a[0]=2*s,a[4]=0,a[8]=0,a[12]=-c,a[1]=0,a[5]=2*u,a[9]=0,a[13]=-h,a[2]=0,a[6]=0,a[10]=-2*l,a[14]=-d,a[3]=0,a[7]=0,a[11]=0,a[15]=1,this}equals(t){const e=this.elements,n=t.elements;for(let t=0;t<16;t++)if(e[t]!==n[t])return!1;return!0}fromArray(t,e=0){for(let n=0;n<16;n++)this.elements[n]=t[n+e];return this}toArray(t=[],e=0){const n=this.elements;return t[e]=n[0],t[e+1]=n[1],t[e+2]=n[2],t[e+3]=n[3],t[e+4]=n[4],t[e+5]=n[5],t[e+6]=n[6],t[e+7]=n[7],t[e+8]=n[8],t[e+9]=n[9],t[e+10]=n[10],t[e+11]=n[11],t[e+12]=n[12],t[e+13]=n[13],t[e+14]=n[14],t[e+15]=n[15],t}}const je=new ce,Ve=new Ue,He=new ce(0,0,0),Ge=new ce(1,1,1),We=new ce,Xe=new ce,Ye=new ce,qe=new Ue,$e=new le;class Ke{constructor(t=0,e=0,n=0,r=Ke.DEFAULT_ORDER){this.isEuler=!0,this._x=t,this._y=e,this._z=n,this._order=r}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get order(){return this._order}set order(t){this._order=t,this._onChangeCallback()}set(t,e,n,r=this._order){return this._x=t,this._y=e,this._z=n,this._order=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(t){return this._x=t._x,this._y=t._y,this._z=t._z,this._order=t._order,this._onChangeCallback(),this}setFromRotationMatrix(t,e=this._order,n=!0){const r=t.elements,i=r[0],o=r[4],a=r[8],s=r[1],u=r[5],l=r[9],c=r[2],h=r[6],d=r[10];switch(e){case"XYZ":this._y=Math.asin(Pt(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-l,d),this._z=Math.atan2(-o,i)):(this._x=Math.atan2(h,u),this._z=0);break;case"YXZ":this._x=Math.asin(-Pt(l,-1,1)),Math.abs(l)<.9999999?(this._y=Math.atan2(a,d),this._z=Math.atan2(s,u)):(this._y=Math.atan2(-c,i),this._z=0);break;case"ZXY":this._x=Math.asin(Pt(h,-1,1)),Math.abs(h)<.9999999?(this._y=Math.atan2(-c,d),this._z=Math.atan2(-o,u)):(this._y=0,this._z=Math.atan2(s,i));break;case"ZYX":this._y=Math.asin(-Pt(c,-1,1)),Math.abs(c)<.9999999?(this._x=Math.atan2(h,d),this._z=Math.atan2(s,i)):(this._x=0,this._z=Math.atan2(-o,u));break;case"YZX":this._z=Math.asin(Pt(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(-l,u),this._y=Math.atan2(-c,i)):(this._x=0,this._y=Math.atan2(a,d));break;case"XZY":this._z=Math.asin(-Pt(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(h,u),this._y=Math.atan2(a,i)):(this._x=Math.atan2(-l,d),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+e)}return this._order=e,!0===n&&this._onChangeCallback(),this}setFromQuaternion(t,e,n){return qe.makeRotationFromQuaternion(t),this.setFromRotationMatrix(qe,e,n)}setFromVector3(t,e=this._order){return this.set(t.x,t.y,t.z,e)}reorder(t){return $e.setFromEuler(this),this.setFromQuaternion($e,t)}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._order===this._order}fromArray(t){return this._x=t[0],this._y=t[1],this._z=t[2],void 0!==t[3]&&(this._order=t[3]),this._onChangeCallback(),this}toArray(t=[],e=0){return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._order,t}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}Ke.DEFAULT_ORDER="XYZ";class Ze{constructor(){this.mask=1}set(t){this.mask=1<>>0}enable(t){this.mask|=1<1){for(let t=0;t1){for(let t=0;t0&&(n=n.concat(i))}return n}getWorldPosition(t){return this.updateWorldMatrix(!0,!1),t.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(t){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(rn,t,on),t}getWorldScale(t){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(rn,an,t),t}getWorldDirection(t){this.updateWorldMatrix(!0,!1);const e=this.matrixWorld.elements;return t.set(e[8],e[9],e[10]).normalize()}raycast(){}traverse(t){t(this);const e=this.children;for(let n=0,r=e.length;n0&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),r.up=this.up.toArray(),!1===this.matrixAutoUpdate&&(r.matrixAutoUpdate=!1),this.isInstancedMesh&&(r.type="InstancedMesh",r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),null!==this.instanceColor&&(r.instanceColor=this.instanceColor.toJSON())),this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(t).uuid)),this.environment&&this.environment.isTexture&&!0!==this.environment.isRenderTargetTexture&&(r.environment=this.environment.toJSON(t).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=i(t.geometries,this.geometry);const e=this.geometry.parameters;if(void 0!==e&&void 0!==e.shapes){const n=e.shapes;if(Array.isArray(n))for(let e=0,r=n.length;e0){r.children=[];for(let e=0;e0){r.animations=[];for(let e=0;e0&&(n.geometries=e),r.length>0&&(n.materials=r),i.length>0&&(n.textures=i),a.length>0&&(n.images=a),s.length>0&&(n.shapes=s),u.length>0&&(n.skeletons=u),l.length>0&&(n.animations=l),c.length>0&&(n.nodes=c)}return n.object=r,n;function o(t){const e=[];for(const n in t){const r=t[n];delete r.metadata,e.push(r)}return e}}clone(t){return(new this.constructor).copy(this,t)}copy(t,e=!0){if(this.name=t.name,this.up.copy(t.up),this.position.copy(t.position),this.rotation.order=t.rotation.order,this.quaternion.copy(t.quaternion),this.scale.copy(t.scale),this.matrix.copy(t.matrix),this.matrixWorld.copy(t.matrixWorld),this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrixWorldNeedsUpdate=t.matrixWorldNeedsUpdate,this.matrixWorldAutoUpdate=t.matrixWorldAutoUpdate,this.layers.mask=t.layers.mask,this.visible=t.visible,this.castShadow=t.castShadow,this.receiveShadow=t.receiveShadow,this.frustumCulled=t.frustumCulled,this.renderOrder=t.renderOrder,this.userData=JSON.parse(JSON.stringify(t.userData)),!0===e)for(let e=0;e0?r.multiplyScalar(1/Math.sqrt(i)):r.set(0,0,0)}static getBarycoord(t,e,n,r,i){fn.subVectors(r,e),pn.subVectors(n,e),mn.subVectors(t,e);const o=fn.dot(fn),a=fn.dot(pn),s=fn.dot(mn),u=pn.dot(pn),l=pn.dot(mn),c=o*u-a*a;if(0===c)return i.set(-2,-1,-1);const h=1/c,d=(u*s-a*l)*h,f=(o*l-a*s)*h;return i.set(1-d-f,f,d)}static containsPoint(t,e,n,r){return this.getBarycoord(t,e,n,r,gn),gn.x>=0&&gn.y>=0&&gn.x+gn.y<=1}static getUV(t,e,n,r,i,o,a,s){return!1===Sn&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),Sn=!0),this.getInterpolation(t,e,n,r,i,o,a,s)}static getInterpolation(t,e,n,r,i,o,a,s){return this.getBarycoord(t,e,n,r,gn),s.setScalar(0),s.addScaledVector(i,gn.x),s.addScaledVector(o,gn.y),s.addScaledVector(a,gn.z),s}static isFrontFacing(t,e,n,r){return fn.subVectors(n,e),pn.subVectors(t,e),fn.cross(pn).dot(r)<0}set(t,e,n){return this.a.copy(t),this.b.copy(e),this.c.copy(n),this}setFromPointsAndIndices(t,e,n,r){return this.a.copy(t[e]),this.b.copy(t[n]),this.c.copy(t[r]),this}setFromAttributeAndIndices(t,e,n,r){return this.a.fromBufferAttribute(t,e),this.b.fromBufferAttribute(t,n),this.c.fromBufferAttribute(t,r),this}clone(){return(new this.constructor).copy(this)}copy(t){return this.a.copy(t.a),this.b.copy(t.b),this.c.copy(t.c),this}getArea(){return fn.subVectors(this.c,this.b),pn.subVectors(this.a,this.b),.5*fn.cross(pn).length()}getMidpoint(t){return t.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(t){return En.getNormal(this.a,this.b,this.c,t)}getPlane(t){return t.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(t,e){return En.getBarycoord(t,this.a,this.b,this.c,e)}getUV(t,e,n,r,i){return!1===Sn&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),Sn=!0),En.getInterpolation(t,this.a,this.b,this.c,e,n,r,i)}getInterpolation(t,e,n,r,i){return En.getInterpolation(t,this.a,this.b,this.c,e,n,r,i)}containsPoint(t){return En.containsPoint(t,this.a,this.b,this.c)}isFrontFacing(t){return En.isFrontFacing(this.a,this.b,this.c,t)}intersectsBox(t){return t.intersectsTriangle(this)}closestPointToPoint(t,e){const n=this.a,r=this.b,i=this.c;let o,a;vn.subVectors(r,n),yn.subVectors(i,n),xn.subVectors(t,n);const s=vn.dot(xn),u=yn.dot(xn);if(s<=0&&u<=0)return e.copy(n);wn.subVectors(t,r);const l=vn.dot(wn),c=yn.dot(wn);if(l>=0&&c<=l)return e.copy(r);const h=s*c-l*u;if(h<=0&&s>=0&&l<=0)return o=s/(s-l),e.copy(n).addScaledVector(vn,o);_n.subVectors(t,i);const d=vn.dot(_n),f=yn.dot(_n);if(f>=0&&d<=f)return e.copy(i);const p=d*u-s*f;if(p<=0&&u>=0&&f<=0)return a=u/(u-f),e.copy(n).addScaledVector(yn,a);const m=l*f-d*c;if(m<=0&&c-l>=0&&d-f>=0)return bn.subVectors(i,r),a=(c-l)/(c-l+(d-f)),e.copy(r).addScaledVector(bn,a);const g=1/(m+p+h);return o=p*g,a=h*g,e.copy(n).addScaledVector(vn,o).addScaledVector(yn,a)}equals(t){return t.a.equals(this.a)&&t.b.equals(this.b)&&t.c.equals(this.c)}}let An=0;class Mn extends Mt{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:An++}),this.uuid=Nt(),this.name="",this.type="Material",this.blending=1,this.side=l,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.blendSrc=204,this.blendDst=205,this.blendEquation=d,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.depthFunc=3,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=519,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=_t,this.stencilZFail=_t,this.stencilZPass=_t,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.forceSinglePass=!1,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(t){this._alphaTest>0!=t>0&&this.version++,this._alphaTest=t}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(t){if(void 0!==t)for(const e in t){const n=t[e];if(void 0===n){console.warn(`THREE.Material: parameter '${e}' has value of undefined.`);continue}const r=this[e];void 0!==r?r&&r.isColor?r.set(n):r&&r.isVector3&&n&&n.isVector3?r.copy(n):this[e]=n:console.warn(`THREE.Material: '${e}' is not a property of THREE.${this.type}.`)}}toJSON(t){const e=void 0===t||"string"==typeof t;e&&(t={textures:{},images:{}});const n={metadata:{version:4.5,type:"Material",generator:"Material.toJSON"}};function r(t){const e=[];for(const n in t){const r=t[n];delete r.metadata,e.push(r)}return e}if(n.uuid=this.uuid,n.type=this.type,""!==this.name&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),void 0!==this.roughness&&(n.roughness=this.roughness),void 0!==this.metalness&&(n.metalness=this.metalness),void 0!==this.sheen&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),void 0!==this.sheenRoughness&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity&&1!==this.emissiveIntensity&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),void 0!==this.specularIntensity&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),void 0!==this.shininess&&(n.shininess=this.shininess),void 0!==this.clearcoat&&(n.clearcoat=this.clearcoat),void 0!==this.clearcoatRoughness&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(t).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(t).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(t).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),void 0!==this.iridescence&&(n.iridescence=this.iridescence),void 0!==this.iridescenceIOR&&(n.iridescenceIOR=this.iridescenceIOR),void 0!==this.iridescenceThicknessRange&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(t).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(t).uuid),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(t).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(t).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(t).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(t).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(t).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(t).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(t).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(t).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(t).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(t).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(t).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(t).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(t).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(t).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(t).uuid,void 0!==this.combine&&(n.combine=this.combine)),void 0!==this.envMapIntensity&&(n.envMapIntensity=this.envMapIntensity),void 0!==this.reflectivity&&(n.reflectivity=this.reflectivity),void 0!==this.refractionRatio&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(t).uuid),void 0!==this.transmission&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(t).uuid),void 0!==this.thickness&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(t).uuid),void 0!==this.attenuationDistance&&this.attenuationDistance!==1/0&&(n.attenuationDistance=this.attenuationDistance),void 0!==this.attenuationColor&&(n.attenuationColor=this.attenuationColor.getHex()),void 0!==this.size&&(n.size=this.size),null!==this.shadowSide&&(n.shadowSide=this.shadowSide),void 0!==this.sizeAttenuation&&(n.sizeAttenuation=this.sizeAttenuation),1!==this.blending&&(n.blending=this.blending),this.side!==l&&(n.side=this.side),this.vertexColors&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),!0===this.transparent&&(n.transparent=this.transparent),n.depthFunc=this.depthFunc,n.depthTest=this.depthTest,n.depthWrite=this.depthWrite,n.colorWrite=this.colorWrite,n.stencilWrite=this.stencilWrite,n.stencilWriteMask=this.stencilWriteMask,n.stencilFunc=this.stencilFunc,n.stencilRef=this.stencilRef,n.stencilFuncMask=this.stencilFuncMask,n.stencilFail=this.stencilFail,n.stencilZFail=this.stencilZFail,n.stencilZPass=this.stencilZPass,void 0!==this.rotation&&0!==this.rotation&&(n.rotation=this.rotation),!0===this.polygonOffset&&(n.polygonOffset=!0),0!==this.polygonOffsetFactor&&(n.polygonOffsetFactor=this.polygonOffsetFactor),0!==this.polygonOffsetUnits&&(n.polygonOffsetUnits=this.polygonOffsetUnits),void 0!==this.linewidth&&1!==this.linewidth&&(n.linewidth=this.linewidth),void 0!==this.dashSize&&(n.dashSize=this.dashSize),void 0!==this.gapSize&&(n.gapSize=this.gapSize),void 0!==this.scale&&(n.scale=this.scale),!0===this.dithering&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),!0===this.alphaToCoverage&&(n.alphaToCoverage=this.alphaToCoverage),!0===this.premultipliedAlpha&&(n.premultipliedAlpha=this.premultipliedAlpha),!0===this.forceSinglePass&&(n.forceSinglePass=this.forceSinglePass),!0===this.wireframe&&(n.wireframe=this.wireframe),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(n.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(n.wireframeLinejoin=this.wireframeLinejoin),!0===this.flatShading&&(n.flatShading=this.flatShading),!1===this.visible&&(n.visible=!1),!1===this.toneMapped&&(n.toneMapped=!1),!1===this.fog&&(n.fog=!1),Object.keys(this.userData).length>0&&(n.userData=this.userData),e){const e=r(t.textures),i=r(t.images);e.length>0&&(n.textures=e),i.length>0&&(n.images=i)}return n}clone(){return(new this.constructor).copy(this)}copy(t){this.name=t.name,this.blending=t.blending,this.side=t.side,this.vertexColors=t.vertexColors,this.opacity=t.opacity,this.transparent=t.transparent,this.blendSrc=t.blendSrc,this.blendDst=t.blendDst,this.blendEquation=t.blendEquation,this.blendSrcAlpha=t.blendSrcAlpha,this.blendDstAlpha=t.blendDstAlpha,this.blendEquationAlpha=t.blendEquationAlpha,this.depthFunc=t.depthFunc,this.depthTest=t.depthTest,this.depthWrite=t.depthWrite,this.stencilWriteMask=t.stencilWriteMask,this.stencilFunc=t.stencilFunc,this.stencilRef=t.stencilRef,this.stencilFuncMask=t.stencilFuncMask,this.stencilFail=t.stencilFail,this.stencilZFail=t.stencilZFail,this.stencilZPass=t.stencilZPass,this.stencilWrite=t.stencilWrite;const e=t.clippingPlanes;let n=null;if(null!==e){const t=e.length;n=new Array(t);for(let r=0;r!==t;++r)n[r]=e[r].clone()}return this.clippingPlanes=n,this.clipIntersection=t.clipIntersection,this.clipShadows=t.clipShadows,this.shadowSide=t.shadowSide,this.colorWrite=t.colorWrite,this.precision=t.precision,this.polygonOffset=t.polygonOffset,this.polygonOffsetFactor=t.polygonOffsetFactor,this.polygonOffsetUnits=t.polygonOffsetUnits,this.dithering=t.dithering,this.alphaTest=t.alphaTest,this.alphaToCoverage=t.alphaToCoverage,this.premultipliedAlpha=t.premultipliedAlpha,this.forceSinglePass=t.forceSinglePass,this.visible=t.visible,this.toneMapped=t.toneMapped,this.userData=JSON.parse(JSON.stringify(t.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(t){!0===t&&this.version++}}const Cn={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},Tn={h:0,s:0,l:0},kn={h:0,s:0,l:0};function In(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+6*(e-t)*(2/3-n):t}class Nn{constructor(t,e,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,void 0===e&&void 0===n?this.set(t):this.setRGB(t,e,n)}set(t){return t&&t.isColor?this.copy(t):"number"==typeof t?this.setHex(t):"string"==typeof t&&this.setStyle(t),this}setScalar(t){return this.r=t,this.g=t,this.b=t,this}setHex(t,e=bt){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(255&t)/255,Qt.toWorkingColorSpace(this,e),this}setRGB(t,e,n,r=Qt.workingColorSpace){return this.r=t,this.g=e,this.b=n,Qt.toWorkingColorSpace(this,r),this}setHSL(t,e,n,r=Qt.workingColorSpace){if(t=Ot(t,1),e=Pt(e,0,1),n=Pt(n,0,1),0===e)this.r=this.g=this.b=n;else{const r=n<=.5?n*(1+e):n+e-n*e,i=2*n-r;this.r=In(i,r,t+1/3),this.g=In(i,r,t),this.b=In(i,r,t-1/3)}return Qt.toWorkingColorSpace(this,r),this}setStyle(t,e=bt){function n(e){void 0!==e&&parseFloat(e)<1&&console.warn("THREE.Color: Alpha component of "+t+" will be ignored.")}let r;if(r=/^(\w+)\(([^\)]*)\)/.exec(t)){let i;const o=r[1],a=r[2];switch(o){case"rgb":case"rgba":if(i=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return this.r=Math.min(255,parseInt(i[1],10))/255,this.g=Math.min(255,parseInt(i[2],10))/255,this.b=Math.min(255,parseInt(i[3],10))/255,Qt.toWorkingColorSpace(this,e),n(i[4]),this;if(i=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return this.r=Math.min(100,parseInt(i[1],10))/100,this.g=Math.min(100,parseInt(i[2],10))/100,this.b=Math.min(100,parseInt(i[3],10))/100,Qt.toWorkingColorSpace(this,e),n(i[4]),this;break;case"hsl":case"hsla":if(i=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a)){const t=parseFloat(i[1])/360,r=parseFloat(i[2])/100,o=parseFloat(i[3])/100;return n(i[4]),this.setHSL(t,r,o,e)}break;default:console.warn("THREE.Color: Unknown color model "+t)}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(t)){const n=r[1],i=n.length;if(3===i)return this.setRGB(parseInt(n.charAt(0),16)/15,parseInt(n.charAt(1),16)/15,parseInt(n.charAt(2),16)/15,e);if(6===i)return this.setHex(parseInt(n,16),e);console.warn("THREE.Color: Invalid hex color "+t)}else if(t&&t.length>0)return this.setColorName(t,e);return this}setColorName(t,e=bt){const n=Cn[t.toLowerCase()];return void 0!==n?this.setHex(n,e):console.warn("THREE.Color: Unknown color "+t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(t){return this.r=t.r,this.g=t.g,this.b=t.b,this}copySRGBToLinear(t){return this.r=Xt(t.r),this.g=Xt(t.g),this.b=Xt(t.b),this}copyLinearToSRGB(t){return this.r=Yt(t.r),this.g=Yt(t.g),this.b=Yt(t.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(t=bt){return Qt.fromWorkingColorSpace(Pn.copy(this),t),Pt(255*Pn.r,0,255)<<16^Pt(255*Pn.g,0,255)<<8^Pt(255*Pn.b,0,255)}getHexString(t=bt){return("000000"+this.getHex(t).toString(16)).slice(-6)}getHSL(t,e=Qt.workingColorSpace){Qt.fromWorkingColorSpace(Pn.copy(this),e);const n=Pn.r,r=Pn.g,i=Pn.b,o=Math.max(n,r,i),a=Math.min(n,r,i);let s,u;const l=(a+o)/2;if(a===o)s=0,u=0;else{const t=o-a;switch(u=l<=.5?t/(o+a):t/(2-o-a),o){case n:s=(r-i)/t+(r0&&(t.userData=this.userData),void 0!==this.parameters){const e=this.parameters;for(const n in e)void 0!==e[n]&&(t[n]=e[n]);return t}t.data={attributes:{}};const e=this.index;null!==e&&(t.data.index={type:e.array.constructor.name,array:Array.prototype.slice.call(e.array)});const n=this.attributes;for(const e in n){const r=n[e];t.data.attributes[e]=r.toJSON(t.data)}const r={};let i=!1;for(const e in this.morphAttributes){const n=this.morphAttributes[e],o=[];for(let e=0,r=n.length;e0&&(r[e]=o,i=!0)}i&&(t.data.morphAttributes=r,t.data.morphTargetsRelative=this.morphTargetsRelative);const o=this.groups;o.length>0&&(t.data.groups=JSON.parse(JSON.stringify(o)));const a=this.boundingSphere;return null!==a&&(t.data.boundingSphere={center:a.center.toArray(),radius:a.radius}),t}clone(){return(new this.constructor).copy(this)}copy(t){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const e={};this.name=t.name;const n=t.index;null!==n&&this.setIndex(n.clone(e));const r=t.attributes;for(const t in r){const n=r[t];this.setAttribute(t,n.clone(e))}const i=t.morphAttributes;for(const t in i){const n=[],r=i[t];for(let t=0,i=r.length;t0){const n=t[e[0]];if(void 0!==n){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let t=0,e=n.length;t(t.far-t.near)**2)return}if(qn.copy(i).invert(),$n.copy(t.ray).applyMatrix4(qn),null!==n.boundingBox&&!1===$n.intersectsBox(n.boundingBox))return;let o;const a=n.index,s=n.attributes.position,u=n.attributes.uv,l=n.attributes.uv2,c=n.attributes.normal,h=n.groups,d=n.drawRange;if(null!==a)if(Array.isArray(r))for(let n=0,i=h.length;nn.far?null:{distance:h,point:cr.clone(),object:t}}(t,e,n,r,Qn,Jn,tr,lr);if(d){i&&(rr.fromBufferAttribute(i,s),ir.fromBufferAttribute(i,u),or.fromBufferAttribute(i,h),d.uv=En.getInterpolation(lr,Qn,Jn,tr,rr,ir,or,new jt)),o&&(rr.fromBufferAttribute(o,s),ir.fromBufferAttribute(o,u),or.fromBufferAttribute(o,h),d.uv2=En.getInterpolation(lr,Qn,Jn,tr,rr,ir,or,new jt)),a&&(ar.fromBufferAttribute(a,s),sr.fromBufferAttribute(a,u),ur.fromBufferAttribute(a,h),d.normal=En.getInterpolation(lr,Qn,Jn,tr,ar,sr,ur,new ce),d.normal.dot(r.direction)>0&&d.normal.multiplyScalar(-1));const t={a:s,b:u,c:h,normal:new ce,materialIndex:0};En.getNormal(Qn,Jn,tr,t.normal),d.face=t}return d}class fr extends Yn{constructor(t=1,e=1,n=1,r=1,i=1,o=1){super(),this.type="BoxGeometry",this.parameters={width:t,height:e,depth:n,widthSegments:r,heightSegments:i,depthSegments:o};const a=this;r=Math.floor(r),i=Math.floor(i),o=Math.floor(o);const s=[],u=[],l=[],c=[];let h=0,d=0;function f(t,e,n,r,i,o,f,p,m,g,v){const y=o/m,b=f/g,x=o/2,w=f/2,_=p/2,S=m+1,E=g+1;let A=0,M=0;const C=new ce;for(let o=0;o0?1:-1,l.push(C.x,C.y,C.z),c.push(s/m),c.push(1-o/g),A+=1}}for(let t=0;t0&&(e.defines=this.defines),e.vertexShader=this.vertexShader,e.fragmentShader=this.fragmentShader;const n={};for(const t in this.extensions)!0===this.extensions[t]&&(n[t]=!0);return Object.keys(n).length>0&&(e.extensions=n),e}}class br extends dn{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new Ue,this.projectionMatrix=new Ue,this.projectionMatrixInverse=new Ue}copy(t,e){return super.copy(t,e),this.matrixWorldInverse.copy(t.matrixWorldInverse),this.projectionMatrix.copy(t.projectionMatrix),this.projectionMatrixInverse.copy(t.projectionMatrixInverse),this}getWorldDirection(t){this.updateWorldMatrix(!0,!1);const e=this.matrixWorld.elements;return t.set(-e[8],-e[9],-e[10]).normalize()}updateMatrixWorld(t){super.updateMatrixWorld(t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(t,e){super.updateWorldMatrix(t,e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return(new this.constructor).copy(this)}}class xr extends br{constructor(t=50,e=1,n=.1,r=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=t,this.zoom=1,this.near=n,this.far=r,this.focus=10,this.aspect=e,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(t,e){return super.copy(t,e),this.fov=t.fov,this.zoom=t.zoom,this.near=t.near,this.far=t.far,this.focus=t.focus,this.aspect=t.aspect,this.view=null===t.view?null:Object.assign({},t.view),this.filmGauge=t.filmGauge,this.filmOffset=t.filmOffset,this}setFocalLength(t){const e=.5*this.getFilmHeight()/t;this.fov=2*It*Math.atan(e),this.updateProjectionMatrix()}getFocalLength(){const t=Math.tan(.5*kt*this.fov);return.5*this.getFilmHeight()/t}getEffectiveFOV(){return 2*It*Math.atan(Math.tan(.5*kt*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}setViewOffset(t,e,n,r,i,o){this.aspect=t/e,null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const t=this.near;let e=t*Math.tan(.5*kt*this.fov)/this.zoom,n=2*e,r=this.aspect*n,i=-.5*r;const o=this.view;if(null!==this.view&&this.view.enabled){const t=o.fullWidth,a=o.fullHeight;i+=o.offsetX*r/t,e-=o.offsetY*n/a,r*=o.width/t,n*=o.height/a}const a=this.filmOffset;0!==a&&(i+=t*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(i,i+r,e,e-n,t,this.far),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(t){const e=super.toJSON(t);return e.object.fov=this.fov,e.object.zoom=this.zoom,e.object.near=this.near,e.object.far=this.far,e.object.focus=this.focus,e.object.aspect=this.aspect,null!==this.view&&(e.object.view=Object.assign({},this.view)),e.object.filmGauge=this.filmGauge,e.object.filmOffset=this.filmOffset,e}}const wr=-90;class _r extends dn{constructor(t,e,n){super(),this.type="CubeCamera",this.renderTarget=n;const r=new xr(wr,1,t,e);r.layers=this.layers,r.up.set(0,1,0),r.lookAt(1,0,0),this.add(r);const i=new xr(wr,1,t,e);i.layers=this.layers,i.up.set(0,1,0),i.lookAt(-1,0,0),this.add(i);const o=new xr(wr,1,t,e);o.layers=this.layers,o.up.set(0,0,-1),o.lookAt(0,1,0),this.add(o);const a=new xr(wr,1,t,e);a.layers=this.layers,a.up.set(0,0,1),a.lookAt(0,-1,0),this.add(a);const s=new xr(wr,1,t,e);s.layers=this.layers,s.up.set(0,1,0),s.lookAt(0,0,1),this.add(s);const u=new xr(wr,1,t,e);u.layers=this.layers,u.up.set(0,1,0),u.lookAt(0,0,-1),this.add(u)}update(t,e){null===this.parent&&this.updateMatrixWorld();const n=this.renderTarget,[r,i,o,a,s,u]=this.children,l=t.getRenderTarget(),c=t.toneMapping,h=t.xr.enabled;t.toneMapping=k,t.xr.enabled=!1;const d=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,t.setRenderTarget(n,0),t.render(e,r),t.setRenderTarget(n,1),t.render(e,i),t.setRenderTarget(n,2),t.render(e,o),t.setRenderTarget(n,3),t.render(e,a),t.setRenderTarget(n,4),t.render(e,s),n.texture.generateMipmaps=d,t.setRenderTarget(n,5),t.render(e,u),t.setRenderTarget(l),t.toneMapping=c,t.xr.enabled=h,n.texture.needsPMREMUpdate=!0}}class Sr extends ie{constructor(t,e,n,r,i,o,a,s,u,l){super(t=void 0!==t?t:[],e=void 0!==e?e:R,n,r,i,o,a,s,u,l),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(t){this.image=t}}class Er extends ae{constructor(t=1,e={}){super(t,t,e),this.isWebGLCubeRenderTarget=!0;const n={width:t,height:t,depth:1},r=[n,n,n,n,n,n];this.texture=new Sr(r,e.mapping,e.wrapS,e.wrapT,e.magFilter,e.minFilter,e.format,e.type,e.anisotropy,e.encoding),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=void 0!==e.generateMipmaps&&e.generateMipmaps,this.texture.minFilter=void 0!==e.minFilter?e.minFilter:X}fromEquirectangularTexture(t,e){this.texture.type=e.type,this.texture.encoding=e.encoding,this.texture.generateMipmaps=e.generateMipmaps,this.texture.minFilter=e.minFilter,this.texture.magFilter=e.magFilter;const n={uniforms:{tEquirect:{value:null}},vertexShader:"\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\tvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\n\t\t\t\t\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n\n\t\t\t\t}\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvWorldDirection = transformDirection( position, modelMatrix );\n\n\t\t\t\t\t#include \n\t\t\t\t\t#include \n\n\t\t\t\t}\n\t\t\t",fragmentShader:"\n\n\t\t\t\tuniform sampler2D tEquirect;\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\t#include \n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvec3 direction = normalize( vWorldDirection );\n\n\t\t\t\t\tvec2 sampleUV = equirectUv( direction );\n\n\t\t\t\t\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\n\t\t\t\t}\n\t\t\t"},r=new fr(5,5,5),i=new yr({name:"CubemapFromEquirect",uniforms:pr(n.uniforms),vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,side:c,blending:0});i.uniforms.tEquirect.value=e;const o=new hr(r,i),a=e.minFilter;e.minFilter===q&&(e.minFilter=X);return new _r(1,10,this).update(t,o),e.minFilter=a,o.geometry.dispose(),o.material.dispose(),this}clear(t,e,n,r){const i=t.getRenderTarget();for(let i=0;i<6;i++)t.setRenderTarget(this,i),t.clear(e,n,r);t.setRenderTarget(i)}}const Ar=new ce,Mr=new ce,Cr=new Vt;class Tr{constructor(t=new ce(1,0,0),e=0){this.isPlane=!0,this.normal=t,this.constant=e}set(t,e){return this.normal.copy(t),this.constant=e,this}setComponents(t,e,n,r){return this.normal.set(t,e,n),this.constant=r,this}setFromNormalAndCoplanarPoint(t,e){return this.normal.copy(t),this.constant=-e.dot(this.normal),this}setFromCoplanarPoints(t,e,n){const r=Ar.subVectors(n,e).cross(Mr.subVectors(t,e)).normalize();return this.setFromNormalAndCoplanarPoint(r,t),this}copy(t){return this.normal.copy(t.normal),this.constant=t.constant,this}normalize(){const t=1/this.normal.length();return this.normal.multiplyScalar(t),this.constant*=t,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(t){return this.normal.dot(t)+this.constant}distanceToSphere(t){return this.distanceToPoint(t.center)-t.radius}projectPoint(t,e){return e.copy(t).addScaledVector(this.normal,-this.distanceToPoint(t))}intersectLine(t,e){const n=t.delta(Ar),r=this.normal.dot(n);if(0===r)return 0===this.distanceToPoint(t.start)?e.copy(t.start):null;const i=-(t.start.dot(this.normal)+this.constant)/r;return i<0||i>1?null:e.copy(t.start).addScaledVector(n,i)}intersectsLine(t){const e=this.distanceToPoint(t.start),n=this.distanceToPoint(t.end);return e<0&&n>0||n<0&&e>0}intersectsBox(t){return t.intersectsPlane(this)}intersectsSphere(t){return t.intersectsPlane(this)}coplanarPoint(t){return t.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(t,e){const n=e||Cr.getNormalMatrix(t),r=this.coplanarPoint(Ar).applyMatrix4(t),i=this.normal.applyMatrix3(n).normalize();return this.constant=-r.dot(i),this}translate(t){return this.constant-=t.dot(this.normal),this}equals(t){return t.normal.equals(this.normal)&&t.constant===this.constant}clone(){return(new this.constructor).copy(this)}}const kr=new Ne,Ir=new ce;class Nr{constructor(t=new Tr,e=new Tr,n=new Tr,r=new Tr,i=new Tr,o=new Tr){this.planes=[t,e,n,r,i,o]}set(t,e,n,r,i,o){const a=this.planes;return a[0].copy(t),a[1].copy(e),a[2].copy(n),a[3].copy(r),a[4].copy(i),a[5].copy(o),this}copy(t){const e=this.planes;for(let n=0;n<6;n++)e[n].copy(t.planes[n]);return this}setFromProjectionMatrix(t){const e=this.planes,n=t.elements,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],u=n[5],l=n[6],c=n[7],h=n[8],d=n[9],f=n[10],p=n[11],m=n[12],g=n[13],v=n[14],y=n[15];return e[0].setComponents(a-r,c-s,p-h,y-m).normalize(),e[1].setComponents(a+r,c+s,p+h,y+m).normalize(),e[2].setComponents(a+i,c+u,p+d,y+g).normalize(),e[3].setComponents(a-i,c-u,p-d,y-g).normalize(),e[4].setComponents(a-o,c-l,p-f,y-v).normalize(),e[5].setComponents(a+o,c+l,p+f,y+v).normalize(),this}intersectsObject(t){if(void 0!==t.boundingSphere)null===t.boundingSphere&&t.computeBoundingSphere(),kr.copy(t.boundingSphere).applyMatrix4(t.matrixWorld);else{const e=t.geometry;null===e.boundingSphere&&e.computeBoundingSphere(),kr.copy(e.boundingSphere).applyMatrix4(t.matrixWorld)}return this.intersectsSphere(kr)}intersectsSprite(t){return kr.center.set(0,0,0),kr.radius=.7071067811865476,kr.applyMatrix4(t.matrixWorld),this.intersectsSphere(kr)}intersectsSphere(t){const e=this.planes,n=t.center,r=-t.radius;for(let t=0;t<6;t++){if(e[t].distanceToPoint(n)0?t.max.x:t.min.x,Ir.y=r.normal.y>0?t.max.y:t.min.y,Ir.z=r.normal.z>0?t.max.z:t.min.z,r.distanceToPoint(Ir)<0)return!1}return!0}containsPoint(t){const e=this.planes;for(let n=0;n<6;n++)if(e[n].distanceToPoint(t)<0)return!1;return!0}clone(){return(new this.constructor).copy(this)}}function Pr(){let t=null,e=!1,n=null,r=null;function i(e,o){n(e,o),r=t.requestAnimationFrame(i)}return{start:function(){!0!==e&&null!==n&&(r=t.requestAnimationFrame(i),e=!0)},stop:function(){t.cancelAnimationFrame(r),e=!1},setAnimationLoop:function(t){n=t},setContext:function(e){t=e}}}function Or(t,e){const n=e.isWebGL2,r=new WeakMap;return{get:function(t){return t.isInterleavedBufferAttribute&&(t=t.data),r.get(t)},remove:function(e){e.isInterleavedBufferAttribute&&(e=e.data);const n=r.get(e);n&&(t.deleteBuffer(n.buffer),r.delete(e))},update:function(e,i){if(e.isGLBufferAttribute){const t=r.get(e);return void((!t||t.version 0\n\tvec4 plane;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\tplane = clippingPlanes[ i ];\n\t\tif ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;\n\t}\n\t#pragma unroll_loop_end\n\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\tbool clipped = true;\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tclipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\tif ( clipped ) discard;\n\t#endif\n#endif",clipping_planes_pars_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif",clipping_planes_pars_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n#endif",clipping_planes_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvClipPosition = - mvPosition.xyz;\n#endif",color_fragment:"#if defined( USE_COLOR_ALPHA )\n\tdiffuseColor *= vColor;\n#elif defined( USE_COLOR )\n\tdiffuseColor.rgb *= vColor;\n#endif",color_pars_fragment:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR )\n\tvarying vec3 vColor;\n#endif",color_pars_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvarying vec3 vColor;\n#endif",color_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvColor = vec4( 1.0 );\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvColor = vec3( 1.0 );\n#endif\n#ifdef USE_COLOR\n\tvColor *= color;\n#endif\n#ifdef USE_INSTANCING_COLOR\n\tvColor.xyz *= instanceColor.xyz;\n#endif",common:"#define PI 3.141592653589793\n#define PI2 6.283185307179586\n#define PI_HALF 1.5707963267948966\n#define RECIPROCAL_PI 0.3183098861837907\n#define RECIPROCAL_PI2 0.15915494309189535\n#define EPSILON 1e-6\n#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\n#define whiteComplement( a ) ( 1.0 - saturate( a ) )\nfloat pow2( const in float x ) { return x*x; }\nvec3 pow2( const in vec3 x ) { return x*x; }\nfloat pow3( const in float x ) { return x*x*x; }\nfloat pow4( const in float x ) { float x2 = x*x; return x2*x2; }\nfloat max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); }\nfloat average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); }\nhighp float rand( const in vec2 uv ) {\n\tconst highp float a = 12.9898, b = 78.233, c = 43758.5453;\n\thighp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );\n\treturn fract( sin( sn ) * c );\n}\n#ifdef HIGH_PRECISION\n\tfloat precisionSafeLength( vec3 v ) { return length( v ); }\n#else\n\tfloat precisionSafeLength( vec3 v ) {\n\t\tfloat maxComponent = max3( abs( v ) );\n\t\treturn length( v / maxComponent ) * maxComponent;\n\t}\n#endif\nstruct IncidentLight {\n\tvec3 color;\n\tvec3 direction;\n\tbool visible;\n};\nstruct ReflectedLight {\n\tvec3 directDiffuse;\n\tvec3 directSpecular;\n\tvec3 indirectDiffuse;\n\tvec3 indirectSpecular;\n};\nstruct GeometricContext {\n\tvec3 position;\n\tvec3 normal;\n\tvec3 viewDir;\n#ifdef USE_CLEARCOAT\n\tvec3 clearcoatNormal;\n#endif\n};\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\n}\nmat3 transposeMat3( const in mat3 m ) {\n\tmat3 tmp;\n\ttmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );\n\ttmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );\n\ttmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );\n\treturn tmp;\n}\nfloat luminance( const in vec3 rgb ) {\n\tconst vec3 weights = vec3( 0.2126729, 0.7151522, 0.0721750 );\n\treturn dot( weights, rgb );\n}\nbool isPerspectiveMatrix( mat4 m ) {\n\treturn m[ 2 ][ 3 ] == - 1.0;\n}\nvec2 equirectUv( in vec3 dir ) {\n\tfloat u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;\n\tfloat v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\treturn vec2( u, v );\n}\nvec3 BRDF_Lambert( const in vec3 diffuseColor ) {\n\treturn RECIPROCAL_PI * diffuseColor;\n}\nvec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n}\nfloat F_Schlick( const in float f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n} // validated",cube_uv_reflection_fragment:"#ifdef ENVMAP_TYPE_CUBE_UV\n\t#define cubeUV_minMipLevel 4.0\n\t#define cubeUV_minTileSize 16.0\n\tfloat getFace( vec3 direction ) {\n\t\tvec3 absDirection = abs( direction );\n\t\tfloat face = - 1.0;\n\t\tif ( absDirection.x > absDirection.z ) {\n\t\t\tif ( absDirection.x > absDirection.y )\n\t\t\t\tface = direction.x > 0.0 ? 0.0 : 3.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t} else {\n\t\t\tif ( absDirection.z > absDirection.y )\n\t\t\t\tface = direction.z > 0.0 ? 2.0 : 5.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t}\n\t\treturn face;\n\t}\n\tvec2 getUV( vec3 direction, float face ) {\n\t\tvec2 uv;\n\t\tif ( face == 0.0 ) {\n\t\t\tuv = vec2( direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 1.0 ) {\n\t\t\tuv = vec2( - direction.x, - direction.z ) / abs( direction.y );\n\t\t} else if ( face == 2.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.y ) / abs( direction.z );\n\t\t} else if ( face == 3.0 ) {\n\t\t\tuv = vec2( - direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 4.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.z ) / abs( direction.y );\n\t\t} else {\n\t\t\tuv = vec2( direction.x, direction.y ) / abs( direction.z );\n\t\t}\n\t\treturn 0.5 * ( uv + 1.0 );\n\t}\n\tvec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {\n\t\tfloat face = getFace( direction );\n\t\tfloat filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );\n\t\tmipInt = max( mipInt, cubeUV_minMipLevel );\n\t\tfloat faceSize = exp2( mipInt );\n\t\thighp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0;\n\t\tif ( face > 2.0 ) {\n\t\t\tuv.y += faceSize;\n\t\t\tface -= 3.0;\n\t\t}\n\t\tuv.x += face * faceSize;\n\t\tuv.x += filterInt * 3.0 * cubeUV_minTileSize;\n\t\tuv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize );\n\t\tuv.x *= CUBEUV_TEXEL_WIDTH;\n\t\tuv.y *= CUBEUV_TEXEL_HEIGHT;\n\t\t#ifdef texture2DGradEXT\n\t\t\treturn texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb;\n\t\t#else\n\t\t\treturn texture2D( envMap, uv ).rgb;\n\t\t#endif\n\t}\n\t#define cubeUV_r0 1.0\n\t#define cubeUV_v0 0.339\n\t#define cubeUV_m0 - 2.0\n\t#define cubeUV_r1 0.8\n\t#define cubeUV_v1 0.276\n\t#define cubeUV_m1 - 1.0\n\t#define cubeUV_r4 0.4\n\t#define cubeUV_v4 0.046\n\t#define cubeUV_m4 2.0\n\t#define cubeUV_r5 0.305\n\t#define cubeUV_v5 0.016\n\t#define cubeUV_m5 3.0\n\t#define cubeUV_r6 0.21\n\t#define cubeUV_v6 0.0038\n\t#define cubeUV_m6 4.0\n\tfloat roughnessToMip( float roughness ) {\n\t\tfloat mip = 0.0;\n\t\tif ( roughness >= cubeUV_r1 ) {\n\t\t\tmip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0;\n\t\t} else if ( roughness >= cubeUV_r4 ) {\n\t\t\tmip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1;\n\t\t} else if ( roughness >= cubeUV_r5 ) {\n\t\t\tmip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4;\n\t\t} else if ( roughness >= cubeUV_r6 ) {\n\t\t\tmip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5;\n\t\t} else {\n\t\t\tmip = - 2.0 * log2( 1.16 * roughness );\t\t}\n\t\treturn mip;\n\t}\n\tvec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {\n\t\tfloat mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP );\n\t\tfloat mipF = fract( mip );\n\t\tfloat mipInt = floor( mip );\n\t\tvec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );\n\t\tif ( mipF == 0.0 ) {\n\t\t\treturn vec4( color0, 1.0 );\n\t\t} else {\n\t\t\tvec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );\n\t\t\treturn vec4( mix( color0, color1, mipF ), 1.0 );\n\t\t}\n\t}\n#endif",defaultnormal_vertex:"vec3 transformedNormal = objectNormal;\n#ifdef USE_INSTANCING\n\tmat3 m = mat3( instanceMatrix );\n\ttransformedNormal /= vec3( dot( m[ 0 ], m[ 0 ] ), dot( m[ 1 ], m[ 1 ] ), dot( m[ 2 ], m[ 2 ] ) );\n\ttransformedNormal = m * transformedNormal;\n#endif\ntransformedNormal = normalMatrix * transformedNormal;\n#ifdef FLIP_SIDED\n\ttransformedNormal = - transformedNormal;\n#endif\n#ifdef USE_TANGENT\n\tvec3 transformedTangent = ( modelViewMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#ifdef FLIP_SIDED\n\t\ttransformedTangent = - transformedTangent;\n\t#endif\n#endif",displacementmap_pars_vertex:"#ifdef USE_DISPLACEMENTMAP\n\tuniform sampler2D displacementMap;\n\tuniform float displacementScale;\n\tuniform float displacementBias;\n#endif",displacementmap_vertex:"#ifdef USE_DISPLACEMENTMAP\n\ttransformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias );\n#endif",emissivemap_fragment:"#ifdef USE_EMISSIVEMAP\n\tvec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv );\n\ttotalEmissiveRadiance *= emissiveColor.rgb;\n#endif",emissivemap_pars_fragment:"#ifdef USE_EMISSIVEMAP\n\tuniform sampler2D emissiveMap;\n#endif",encodings_fragment:"gl_FragColor = linearToOutputTexel( gl_FragColor );",encodings_pars_fragment:"vec4 LinearToLinear( in vec4 value ) {\n\treturn value;\n}\nvec4 LinearTosRGB( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );\n}",envmap_fragment:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvec3 cameraToFrag;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToFrag = normalize( vWorldPosition - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( cameraToFrag, worldNormal );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );\n\t\t#endif\n\t#else\n\t\tvec3 reflectVec = vReflect;\n\t#endif\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 envColor = textureCube( envMap, vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n\t#else\n\t\tvec4 envColor = vec4( 0.0 );\n\t#endif\n\t#ifdef ENVMAP_BLENDING_MULTIPLY\n\t\toutgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_MIX )\n\t\toutgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_ADD )\n\t\toutgoingLight += envColor.xyz * specularStrength * reflectivity;\n\t#endif\n#endif",envmap_common_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float envMapIntensity;\n\tuniform float flipEnvMap;\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tuniform samplerCube envMap;\n\t#else\n\t\tuniform sampler2D envMap;\n\t#endif\n\t\n#endif",envmap_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float reflectivity;\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\tvarying vec3 vWorldPosition;\n\t\tuniform float refractionRatio;\n\t#else\n\t\tvarying vec3 vReflect;\n\t#endif\n#endif",envmap_pars_vertex:"#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\t\n\t\tvarying vec3 vWorldPosition;\n\t#else\n\t\tvarying vec3 vReflect;\n\t\tuniform float refractionRatio;\n\t#endif\n#endif",envmap_physical_pars_fragment:"#if defined( USE_ENVMAP )\n\tvec3 getIBLIrradiance( const in vec3 normal ) {\n\t\t#if defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, worldNormal, 1.0 );\n\t\t\treturn PI * envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\tvec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {\n\t\t#if defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec3 reflectVec = reflect( - viewDir, normal );\n\t\t\treflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );\n\t\t\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, reflectVec, roughness );\n\t\t\treturn envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n#endif",envmap_vertex:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvWorldPosition = worldPosition.xyz;\n\t#else\n\t\tvec3 cameraToVertex;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToVertex = normalize( worldPosition.xyz - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvReflect = reflect( cameraToVertex, worldNormal );\n\t\t#else\n\t\t\tvReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n\t\t#endif\n\t#endif\n#endif",fog_vertex:"#ifdef USE_FOG\n\tvFogDepth = - mvPosition.z;\n#endif",fog_pars_vertex:"#ifdef USE_FOG\n\tvarying float vFogDepth;\n#endif",fog_fragment:"#ifdef USE_FOG\n\t#ifdef FOG_EXP2\n\t\tfloat fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );\n\t#else\n\t\tfloat fogFactor = smoothstep( fogNear, fogFar, vFogDepth );\n\t#endif\n\tgl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif",fog_pars_fragment:"#ifdef USE_FOG\n\tuniform vec3 fogColor;\n\tvarying float vFogDepth;\n\t#ifdef FOG_EXP2\n\t\tuniform float fogDensity;\n\t#else\n\t\tuniform float fogNear;\n\t\tuniform float fogFar;\n\t#endif\n#endif",gradientmap_pars_fragment:"#ifdef USE_GRADIENTMAP\n\tuniform sampler2D gradientMap;\n#endif\nvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n\tfloat dotNL = dot( normal, lightDirection );\n\tvec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n\t#ifdef USE_GRADIENTMAP\n\t\treturn vec3( texture2D( gradientMap, coord ).r );\n\t#else\n\t\tvec2 fw = fwidth( coord ) * 0.5;\n\t\treturn mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) );\n\t#endif\n}",lightmap_fragment:"#ifdef USE_LIGHTMAP\n\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\treflectedLight.indirectDiffuse += lightMapIrradiance;\n#endif",lightmap_pars_fragment:"#ifdef USE_LIGHTMAP\n\tuniform sampler2D lightMap;\n\tuniform float lightMapIntensity;\n#endif",lights_lambert_fragment:"LambertMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularStrength = specularStrength;",lights_lambert_pars_fragment:"varying vec3 vViewPosition;\nstruct LambertMaterial {\n\tvec3 diffuseColor;\n\tfloat specularStrength;\n};\nvoid RE_Direct_Lambert( const in IncidentLight directLight, const in GeometricContext geometry, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in GeometricContext geometry, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Lambert\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Lambert",lights_pars_begin:"uniform bool receiveShadow;\nuniform vec3 ambientLightColor;\nuniform vec3 lightProbe[ 9 ];\nvec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {\n\tfloat x = normal.x, y = normal.y, z = normal.z;\n\tvec3 result = shCoefficients[ 0 ] * 0.886227;\n\tresult += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;\n\tresult += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;\n\tresult += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;\n\tresult += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;\n\tresult += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;\n\tresult += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );\n\tresult += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;\n\tresult += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );\n\treturn result;\n}\nvec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) {\n\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\tvec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );\n\treturn irradiance;\n}\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n\tvec3 irradiance = ambientLightColor;\n\treturn irradiance;\n}\nfloat getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n\t#if defined ( LEGACY_LIGHTS )\n\t\tif ( cutoffDistance > 0.0 && decayExponent > 0.0 ) {\n\t\t\treturn pow( saturate( - lightDistance / cutoffDistance + 1.0 ), decayExponent );\n\t\t}\n\t\treturn 1.0;\n\t#else\n\t\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\t\tif ( cutoffDistance > 0.0 ) {\n\t\t\tdistanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t\t}\n\t\treturn distanceFalloff;\n\t#endif\n}\nfloat getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) {\n\treturn smoothstep( coneCosine, penumbraCosine, angleCosine );\n}\n#if NUM_DIR_LIGHTS > 0\n\tstruct DirectionalLight {\n\t\tvec3 direction;\n\t\tvec3 color;\n\t};\n\tuniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\n\tvoid getDirectionalLightInfo( const in DirectionalLight directionalLight, const in GeometricContext geometry, out IncidentLight light ) {\n\t\tlight.color = directionalLight.color;\n\t\tlight.direction = directionalLight.direction;\n\t\tlight.visible = true;\n\t}\n#endif\n#if NUM_POINT_LIGHTS > 0\n\tstruct PointLight {\n\t\tvec3 position;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t};\n\tuniform PointLight pointLights[ NUM_POINT_LIGHTS ];\n\tvoid getPointLightInfo( const in PointLight pointLight, const in GeometricContext geometry, out IncidentLight light ) {\n\t\tvec3 lVector = pointLight.position - geometry.position;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tlight.color = pointLight.color;\n\t\tlight.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay );\n\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t}\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\tstruct SpotLight {\n\t\tvec3 position;\n\t\tvec3 direction;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t\tfloat coneCos;\n\t\tfloat penumbraCos;\n\t};\n\tuniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\n\tvoid getSpotLightInfo( const in SpotLight spotLight, const in GeometricContext geometry, out IncidentLight light ) {\n\t\tvec3 lVector = spotLight.position - geometry.position;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat angleCos = dot( light.direction, spotLight.direction );\n\t\tfloat spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n\t\tif ( spotAttenuation > 0.0 ) {\n\t\t\tfloat lightDistance = length( lVector );\n\t\t\tlight.color = spotLight.color * spotAttenuation;\n\t\t\tlight.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay );\n\t\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t\t} else {\n\t\t\tlight.color = vec3( 0.0 );\n\t\t\tlight.visible = false;\n\t\t}\n\t}\n#endif\n#if NUM_RECT_AREA_LIGHTS > 0\n\tstruct RectAreaLight {\n\t\tvec3 color;\n\t\tvec3 position;\n\t\tvec3 halfWidth;\n\t\tvec3 halfHeight;\n\t};\n\tuniform sampler2D ltc_1;\tuniform sampler2D ltc_2;\n\tuniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\tstruct HemisphereLight {\n\t\tvec3 direction;\n\t\tvec3 skyColor;\n\t\tvec3 groundColor;\n\t};\n\tuniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];\n\tvec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) {\n\t\tfloat dotNL = dot( normal, hemiLight.direction );\n\t\tfloat hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n\t\tvec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n\t\treturn irradiance;\n\t}\n#endif",lights_toon_fragment:"ToonMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;",lights_toon_pars_fragment:"varying vec3 vViewPosition;\nstruct ToonMaterial {\n\tvec3 diffuseColor;\n};\nvoid RE_Direct_Toon( const in IncidentLight directLight, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\tvec3 irradiance = getGradientIrradiance( geometry.normal, directLight.direction ) * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Toon\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Toon",lights_phong_fragment:"BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;",lights_phong_pars_fragment:"varying vec3 vViewPosition;\nstruct BlinnPhongMaterial {\n\tvec3 diffuseColor;\n\tvec3 specularColor;\n\tfloat specularShininess;\n\tfloat specularStrength;\n};\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n\treflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometry.viewDir, geometry.normal, material.specularColor, material.specularShininess ) * material.specularStrength;\n}\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_BlinnPhong\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_BlinnPhong",lights_physical_fragment:"PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nvec3 dxy = max( abs( dFdx( geometryNormal ) ), abs( dFdy( geometryNormal ) ) );\nfloat geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );\nmaterial.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness;\nmaterial.roughness = min( material.roughness, 1.0 );\n#ifdef IOR\n\tmaterial.ior = ior;\n\t#ifdef USE_SPECULAR\n\t\tfloat specularIntensityFactor = specularIntensity;\n\t\tvec3 specularColorFactor = specularColor;\n\t\t#ifdef USE_SPECULAR_COLORMAP\n\t\t\tspecularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb;\n\t\t#endif\n\t\t#ifdef USE_SPECULAR_INTENSITYMAP\n\t\t\tspecularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a;\n\t\t#endif\n\t\tmaterial.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor );\n\t#else\n\t\tfloat specularIntensityFactor = 1.0;\n\t\tvec3 specularColorFactor = vec3( 1.0 );\n\t\tmaterial.specularF90 = 1.0;\n\t#endif\n\tmaterial.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor );\n#else\n\tmaterial.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor );\n\tmaterial.specularF90 = 1.0;\n#endif\n#ifdef USE_CLEARCOAT\n\tmaterial.clearcoat = clearcoat;\n\tmaterial.clearcoatRoughness = clearcoatRoughness;\n\tmaterial.clearcoatF0 = vec3( 0.04 );\n\tmaterial.clearcoatF90 = 1.0;\n\t#ifdef USE_CLEARCOATMAP\n\t\tmaterial.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x;\n\t#endif\n\t#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\t\tmaterial.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y;\n\t#endif\n\tmaterial.clearcoat = saturate( material.clearcoat );\tmaterial.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );\n\tmaterial.clearcoatRoughness += geometryRoughness;\n\tmaterial.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );\n#endif\n#ifdef USE_IRIDESCENCE\n\tmaterial.iridescence = iridescence;\n\tmaterial.iridescenceIOR = iridescenceIOR;\n\t#ifdef USE_IRIDESCENCEMAP\n\t\tmaterial.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r;\n\t#endif\n\t#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\t\tmaterial.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum;\n\t#else\n\t\tmaterial.iridescenceThickness = iridescenceThicknessMaximum;\n\t#endif\n#endif\n#ifdef USE_SHEEN\n\tmaterial.sheenColor = sheenColor;\n\t#ifdef USE_SHEEN_COLORMAP\n\t\tmaterial.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb;\n\t#endif\n\tmaterial.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 );\n\t#ifdef USE_SHEEN_ROUGHNESSMAP\n\t\tmaterial.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a;\n\t#endif\n#endif",lights_physical_pars_fragment:"struct PhysicalMaterial {\n\tvec3 diffuseColor;\n\tfloat roughness;\n\tvec3 specularColor;\n\tfloat specularF90;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat clearcoat;\n\t\tfloat clearcoatRoughness;\n\t\tvec3 clearcoatF0;\n\t\tfloat clearcoatF90;\n\t#endif\n\t#ifdef USE_IRIDESCENCE\n\t\tfloat iridescence;\n\t\tfloat iridescenceIOR;\n\t\tfloat iridescenceThickness;\n\t\tvec3 iridescenceFresnel;\n\t\tvec3 iridescenceF0;\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tvec3 sheenColor;\n\t\tfloat sheenRoughness;\n\t#endif\n\t#ifdef IOR\n\t\tfloat ior;\n\t#endif\n\t#ifdef USE_TRANSMISSION\n\t\tfloat transmission;\n\t\tfloat transmissionAlpha;\n\t\tfloat thickness;\n\t\tfloat attenuationDistance;\n\t\tvec3 attenuationColor;\n\t#endif\n};\nvec3 clearcoatSpecular = vec3( 0.0 );\nvec3 sheenSpecular = vec3( 0.0 );\nvec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) {\n float x = clamp( 1.0 - dotVH, 0.0, 1.0 );\n float x2 = x * x;\n float x5 = clamp( x * x2 * x2, 0.0, 0.9999 );\n return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 );\n}\nfloat V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\tfloat gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\treturn 0.5 / max( gv + gl, EPSILON );\n}\nfloat D_GGX( const in float alpha, const in float dotNH ) {\n\tfloat a2 = pow2( alpha );\n\tfloat denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;\n\treturn RECIPROCAL_PI * a2 / pow2( denom );\n}\n#ifdef USE_CLEARCOAT\n\tvec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) {\n\t\tvec3 f0 = material.clearcoatF0;\n\t\tfloat f90 = material.clearcoatF90;\n\t\tfloat roughness = material.clearcoatRoughness;\n\t\tfloat alpha = pow2( roughness );\n\t\tvec3 halfDir = normalize( lightDir + viewDir );\n\t\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\t\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\t\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\t\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\t\tvec3 F = F_Schlick( f0, f90, dotVH );\n\t\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\t\tfloat D = D_GGX( alpha, dotNH );\n\t\treturn F * ( V * D );\n\t}\n#endif\nvec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) {\n\tvec3 f0 = material.specularColor;\n\tfloat f90 = material.specularF90;\n\tfloat roughness = material.roughness;\n\tfloat alpha = pow2( roughness );\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\tvec3 F = F_Schlick( f0, f90, dotVH );\n\t#ifdef USE_IRIDESCENCE\n\t\tF = mix( F, material.iridescenceFresnel, material.iridescence );\n\t#endif\n\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\tfloat D = D_GGX( alpha, dotNH );\n\treturn F * ( V * D );\n}\nvec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {\n\tconst float LUT_SIZE = 64.0;\n\tconst float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;\n\tconst float LUT_BIAS = 0.5 / LUT_SIZE;\n\tfloat dotNV = saturate( dot( N, V ) );\n\tvec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );\n\tuv = uv * LUT_SCALE + LUT_BIAS;\n\treturn uv;\n}\nfloat LTC_ClippedSphereFormFactor( const in vec3 f ) {\n\tfloat l = length( f );\n\treturn max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );\n}\nvec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {\n\tfloat x = dot( v1, v2 );\n\tfloat y = abs( x );\n\tfloat a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;\n\tfloat b = 3.4175940 + ( 4.1616724 + y ) * y;\n\tfloat v = a / b;\n\tfloat theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;\n\treturn cross( v1, v2 ) * theta_sintheta;\n}\nvec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {\n\tvec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];\n\tvec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];\n\tvec3 lightNormal = cross( v1, v2 );\n\tif( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );\n\tvec3 T1, T2;\n\tT1 = normalize( V - N * dot( V, N ) );\n\tT2 = - cross( N, T1 );\n\tmat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );\n\tvec3 coords[ 4 ];\n\tcoords[ 0 ] = mat * ( rectCoords[ 0 ] - P );\n\tcoords[ 1 ] = mat * ( rectCoords[ 1 ] - P );\n\tcoords[ 2 ] = mat * ( rectCoords[ 2 ] - P );\n\tcoords[ 3 ] = mat * ( rectCoords[ 3 ] - P );\n\tcoords[ 0 ] = normalize( coords[ 0 ] );\n\tcoords[ 1 ] = normalize( coords[ 1 ] );\n\tcoords[ 2 ] = normalize( coords[ 2 ] );\n\tcoords[ 3 ] = normalize( coords[ 3 ] );\n\tvec3 vectorFormFactor = vec3( 0.0 );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );\n\tfloat result = LTC_ClippedSphereFormFactor( vectorFormFactor );\n\treturn vec3( result );\n}\n#if defined( USE_SHEEN )\nfloat D_Charlie( float roughness, float dotNH ) {\n\tfloat alpha = pow2( roughness );\n\tfloat invAlpha = 1.0 / alpha;\n\tfloat cos2h = dotNH * dotNH;\n\tfloat sin2h = max( 1.0 - cos2h, 0.0078125 );\n\treturn ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI );\n}\nfloat V_Neubelt( float dotNV, float dotNL ) {\n\treturn saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) );\n}\nvec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) {\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat D = D_Charlie( sheenRoughness, dotNH );\n\tfloat V = V_Neubelt( dotNV, dotNL );\n\treturn sheenColor * ( D * V );\n}\n#endif\nfloat IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat r2 = roughness * roughness;\n\tfloat a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95;\n\tfloat b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72;\n\tfloat DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) );\n\treturn saturate( DG * RECIPROCAL_PI );\n}\nvec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tconst vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n\tconst vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n\tvec4 r = roughness * c0 + c1;\n\tfloat a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n\tvec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw;\n\treturn fab;\n}\nvec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) {\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\treturn specularColor * fab.x + specularF90 * fab.y;\n}\n#ifdef USE_IRIDESCENCE\nvoid computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#else\nvoid computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#endif\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\t#ifdef USE_IRIDESCENCE\n\t\tvec3 Fr = mix( specularColor, iridescenceF0, iridescence );\n\t#else\n\t\tvec3 Fr = specularColor;\n\t#endif\n\tvec3 FssEss = Fr * fab.x + specularF90 * fab.y;\n\tfloat Ess = fab.x + fab.y;\n\tfloat Ems = 1.0 - Ess;\n\tvec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619;\tvec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n\tsingleScatter += FssEss;\n\tmultiScatter += Fms * Ems;\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n\tvoid RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\t\tvec3 normal = geometry.normal;\n\t\tvec3 viewDir = geometry.viewDir;\n\t\tvec3 position = geometry.position;\n\t\tvec3 lightPos = rectAreaLight.position;\n\t\tvec3 halfWidth = rectAreaLight.halfWidth;\n\t\tvec3 halfHeight = rectAreaLight.halfHeight;\n\t\tvec3 lightColor = rectAreaLight.color;\n\t\tfloat roughness = material.roughness;\n\t\tvec3 rectCoords[ 4 ];\n\t\trectCoords[ 0 ] = lightPos + halfWidth - halfHeight;\t\trectCoords[ 1 ] = lightPos - halfWidth - halfHeight;\n\t\trectCoords[ 2 ] = lightPos - halfWidth + halfHeight;\n\t\trectCoords[ 3 ] = lightPos + halfWidth + halfHeight;\n\t\tvec2 uv = LTC_Uv( normal, viewDir, roughness );\n\t\tvec4 t1 = texture2D( ltc_1, uv );\n\t\tvec4 t2 = texture2D( ltc_2, uv );\n\t\tmat3 mInv = mat3(\n\t\t\tvec3( t1.x, 0, t1.y ),\n\t\t\tvec3( 0, 1, 0 ),\n\t\t\tvec3( t1.z, 0, t1.w )\n\t\t);\n\t\tvec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\n\t\treflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n\t\treflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );\n\t}\n#endif\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNLcc = saturate( dot( geometry.clearcoatNormal, directLight.direction ) );\n\t\tvec3 ccIrradiance = dotNLcc * directLight.color;\n\t\tclearcoatSpecular += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometry.viewDir, geometry.clearcoatNormal, material );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecular += irradiance * BRDF_Sheen( directLight.direction, geometry.viewDir, geometry.normal, material.sheenColor, material.sheenRoughness );\n\t#endif\n\treflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometry.viewDir, geometry.normal, material );\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatSpecular += clearcoatRadiance * EnvironmentBRDF( geometry.clearcoatNormal, geometry.viewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecular += irradiance * material.sheenColor * IBLSheenBRDF( geometry.normal, geometry.viewDir, material.sheenRoughness );\n\t#endif\n\tvec3 singleScattering = vec3( 0.0 );\n\tvec3 multiScattering = vec3( 0.0 );\n\tvec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;\n\t#ifdef USE_IRIDESCENCE\n\t\tcomputeMultiscatteringIridescence( geometry.normal, geometry.viewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering );\n\t#else\n\t\tcomputeMultiscattering( geometry.normal, geometry.viewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering );\n\t#endif\n\tvec3 totalScattering = singleScattering + multiScattering;\n\tvec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) );\n\treflectedLight.indirectSpecular += radiance * singleScattering;\n\treflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;\n\treflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;\n}\n#define RE_Direct\t\t\t\tRE_Direct_Physical\n#define RE_Direct_RectArea\t\tRE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular\t\tRE_IndirectSpecular_Physical\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n\treturn saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\n}",lights_fragment_begin:"\nGeometricContext geometry;\ngeometry.position = - vViewPosition;\ngeometry.normal = normal;\ngeometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );\n#ifdef USE_CLEARCOAT\n\tgeometry.clearcoatNormal = clearcoatNormal;\n#endif\n#ifdef USE_IRIDESCENCE\n\tfloat dotNVi = saturate( dot( normal, geometry.viewDir ) );\n\tif ( material.iridescenceThickness == 0.0 ) {\n\t\tmaterial.iridescence = 0.0;\n\t} else {\n\t\tmaterial.iridescence = saturate( material.iridescence );\n\t}\n\tif ( material.iridescence > 0.0 ) {\n\t\tmaterial.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor );\n\t\tmaterial.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi );\n\t}\n#endif\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n\tPointLight pointLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tpointLight = pointLights[ i ];\n\t\tgetPointLightInfo( pointLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )\n\t\tpointLightShadow = pointLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n\tSpotLight spotLight;\n\tvec4 spotColor;\n\tvec3 spotLightCoord;\n\tbool inSpotLightMap;\n\t#if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tspotLight = spotLights[ i ];\n\t\tgetSpotLightInfo( spotLight, geometry, directLight );\n\t\t#if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX\n\t\t#elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t#define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS\n\t\t#else\n\t\t#define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#endif\n\t\t#if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS )\n\t\t\tspotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w;\n\t\t\tinSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) );\n\t\t\tspotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy );\n\t\t\tdirectLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color;\n\t\t#endif\n\t\t#undef SPOT_LIGHT_MAP_INDEX\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\tspotLightShadow = spotLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n\tDirectionalLight directionalLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tdirectionalLight = directionalLights[ i ];\n\t\tgetDirectionalLightInfo( directionalLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )\n\t\tdirectionalLightShadow = directionalLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\n\tRectAreaLight rectAreaLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\n\t\trectAreaLight = rectAreaLights[ i ];\n\t\tRE_Direct_RectArea( rectAreaLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if defined( RE_IndirectDiffuse )\n\tvec3 iblIrradiance = vec3( 0.0 );\n\tvec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n\tirradiance += getLightProbeIrradiance( lightProbe, geometry.normal );\n\t#if ( NUM_HEMI_LIGHTS > 0 )\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\t\tirradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry.normal );\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if defined( RE_IndirectSpecular )\n\tvec3 radiance = vec3( 0.0 );\n\tvec3 clearcoatRadiance = vec3( 0.0 );\n#endif",lights_fragment_maps:"#if defined( RE_IndirectDiffuse )\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\t\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\t\tirradiance += lightMapIrradiance;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )\n\t\tiblIrradiance += getIBLIrradiance( geometry.normal );\n\t#endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\tradiance += getIBLRadiance( geometry.viewDir, geometry.normal, material.roughness );\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatRadiance += getIBLRadiance( geometry.viewDir, geometry.clearcoatNormal, material.clearcoatRoughness );\n\t#endif\n#endif",lights_fragment_end:"#if defined( RE_IndirectDiffuse )\n\tRE_IndirectDiffuse( irradiance, geometry, material, reflectedLight );\n#endif\n#if defined( RE_IndirectSpecular )\n\tRE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometry, material, reflectedLight );\n#endif",logdepthbuf_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tgl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif",logdepthbuf_pars_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tuniform float logDepthBufFC;\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif",logdepthbuf_pars_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvarying float vFragDepth;\n\t\tvarying float vIsPerspective;\n\t#else\n\t\tuniform float logDepthBufFC;\n\t#endif\n#endif",logdepthbuf_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvFragDepth = 1.0 + gl_Position.w;\n\t\tvIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );\n\t#else\n\t\tif ( isPerspectiveMatrix( projectionMatrix ) ) {\n\t\t\tgl_Position.z = log2( max( EPSILON, gl_Position.w + 1.0 ) ) * logDepthBufFC - 1.0;\n\t\t\tgl_Position.z *= gl_Position.w;\n\t\t}\n\t#endif\n#endif",map_fragment:"#ifdef USE_MAP\n\tvec4 sampledDiffuseColor = texture2D( map, vMapUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\tsampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w );\n\t#endif\n\tdiffuseColor *= sampledDiffuseColor;\n#endif",map_pars_fragment:"#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif",map_particle_fragment:"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\t#if defined( USE_POINTS_UV )\n\t\tvec2 uv = vUv;\n\t#else\n\t\tvec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\n\t#endif\n#endif\n#ifdef USE_MAP\n\tdiffuseColor *= texture2D( map, uv );\n#endif\n#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, uv ).g;\n#endif",map_particle_pars_fragment:"#if defined( USE_POINTS_UV )\n\tvarying vec2 vUv;\n#else\n\t#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\t\tuniform mat3 uvTransform;\n\t#endif\n#endif\n#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",metalnessmap_fragment:"float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n\tvec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv );\n\tmetalnessFactor *= texelMetalness.b;\n#endif",metalnessmap_pars_fragment:"#ifdef USE_METALNESSMAP\n\tuniform sampler2D metalnessMap;\n#endif",morphcolor_vertex:"#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE )\n\tvColor *= morphTargetBaseInfluence;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t#if defined( USE_COLOR_ALPHA )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ];\n\t\t#elif defined( USE_COLOR )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ];\n\t\t#endif\n\t}\n#endif",morphnormal_vertex:"#ifdef USE_MORPHNORMALS\n\tobjectNormal *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ];\n\t\t}\n\t#else\n\t\tobjectNormal += morphNormal0 * morphTargetInfluences[ 0 ];\n\t\tobjectNormal += morphNormal1 * morphTargetInfluences[ 1 ];\n\t\tobjectNormal += morphNormal2 * morphTargetInfluences[ 2 ];\n\t\tobjectNormal += morphNormal3 * morphTargetInfluences[ 3 ];\n\t#endif\n#endif",morphtarget_pars_vertex:"#ifdef USE_MORPHTARGETS\n\tuniform float morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tuniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];\n\t\tuniform sampler2DArray morphTargetsTexture;\n\t\tuniform ivec2 morphTargetsTextureSize;\n\t\tvec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) {\n\t\t\tint texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset;\n\t\t\tint y = texelIndex / morphTargetsTextureSize.x;\n\t\t\tint x = texelIndex - y * morphTargetsTextureSize.x;\n\t\t\tivec3 morphUV = ivec3( x, y, morphTargetIndex );\n\t\t\treturn texelFetch( morphTargetsTexture, morphUV, 0 );\n\t\t}\n\t#else\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\tuniform float morphTargetInfluences[ 8 ];\n\t\t#else\n\t\t\tuniform float morphTargetInfluences[ 4 ];\n\t\t#endif\n\t#endif\n#endif",morphtarget_vertex:"#ifdef USE_MORPHTARGETS\n\ttransformed *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ];\n\t\t}\n\t#else\n\t\ttransformed += morphTarget0 * morphTargetInfluences[ 0 ];\n\t\ttransformed += morphTarget1 * morphTargetInfluences[ 1 ];\n\t\ttransformed += morphTarget2 * morphTargetInfluences[ 2 ];\n\t\ttransformed += morphTarget3 * morphTargetInfluences[ 3 ];\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\ttransformed += morphTarget4 * morphTargetInfluences[ 4 ];\n\t\t\ttransformed += morphTarget5 * morphTargetInfluences[ 5 ];\n\t\t\ttransformed += morphTarget6 * morphTargetInfluences[ 6 ];\n\t\t\ttransformed += morphTarget7 * morphTargetInfluences[ 7 ];\n\t\t#endif\n\t#endif\n#endif",normal_fragment_begin:"float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;\n#ifdef FLAT_SHADED\n\tvec3 fdx = dFdx( vViewPosition );\n\tvec3 fdy = dFdy( vViewPosition );\n\tvec3 normal = normalize( cross( fdx, fdy ) );\n#else\n\tvec3 normal = normalize( vNormal );\n\t#ifdef DOUBLE_SIDED\n\t\tnormal *= faceDirection;\n\t#endif\n#endif\n#ifdef USE_NORMALMAP_TANGENTSPACE\n\t#ifdef USE_TANGENT\n\t\tmat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n\t#else\n\t\tmat3 tbn = getTangentFrame( - vViewPosition, normal, vNormalMapUv );\n\t#endif\n\t#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n\t\ttbn[0] *= faceDirection;\n\t\ttbn[1] *= faceDirection;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\t#ifdef USE_TANGENT\n\t\tmat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n\t#else\n\t\tmat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv );\n\t#endif\n\t#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n\t\ttbn2[0] *= faceDirection;\n\t\ttbn2[1] *= faceDirection;\n\t#endif\n#endif\nvec3 geometryNormal = normal;",normal_fragment_maps:"#ifdef USE_NORMALMAP_OBJECTSPACE\n\tnormal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n\t#ifdef FLIP_SIDED\n\t\tnormal = - normal;\n\t#endif\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * faceDirection;\n\t#endif\n\tnormal = normalize( normalMatrix * normal );\n#elif defined( USE_NORMALMAP_TANGENTSPACE )\n\tvec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n\tmapN.xy *= normalScale;\n\tnormal = normalize( tbn * mapN );\n#elif defined( USE_BUMPMAP )\n\tnormal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection );\n#endif",normal_pars_fragment:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_pars_vertex:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_vertex:"#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n\t#ifdef USE_TANGENT\n\t\tvTangent = normalize( transformedTangent );\n\t\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n\t#endif\n#endif",normalmap_pars_fragment:"#ifdef USE_NORMALMAP\n\tuniform sampler2D normalMap;\n\tuniform vec2 normalScale;\n#endif\n#ifdef USE_NORMALMAP_OBJECTSPACE\n\tuniform mat3 normalMatrix;\n#endif\n#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) )\n\tmat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) {\n\t\tvec3 q0 = dFdx( eye_pos.xyz );\n\t\tvec3 q1 = dFdy( eye_pos.xyz );\n\t\tvec2 st0 = dFdx( uv.st );\n\t\tvec2 st1 = dFdy( uv.st );\n\t\tvec3 N = surf_norm;\n\t\tvec3 q1perp = cross( q1, N );\n\t\tvec3 q0perp = cross( N, q0 );\n\t\tvec3 T = q1perp * st0.x + q0perp * st1.x;\n\t\tvec3 B = q1perp * st0.y + q0perp * st1.y;\n\t\tfloat det = max( dot( T, T ), dot( B, B ) );\n\t\tfloat scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det );\n\t\treturn mat3( T * scale, B * scale, N );\n\t}\n#endif",clearcoat_normal_fragment_begin:"#ifdef USE_CLEARCOAT\n\tvec3 clearcoatNormal = geometryNormal;\n#endif",clearcoat_normal_fragment_maps:"#ifdef USE_CLEARCOAT_NORMALMAP\n\tvec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0;\n\tclearcoatMapN.xy *= clearcoatNormalScale;\n\tclearcoatNormal = normalize( tbn2 * clearcoatMapN );\n#endif",clearcoat_pars_fragment:"#ifdef USE_CLEARCOATMAP\n\tuniform sampler2D clearcoatMap;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform sampler2D clearcoatNormalMap;\n\tuniform vec2 clearcoatNormalScale;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform sampler2D clearcoatRoughnessMap;\n#endif",iridescence_pars_fragment:"#ifdef USE_IRIDESCENCEMAP\n\tuniform sampler2D iridescenceMap;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform sampler2D iridescenceThicknessMap;\n#endif",output_fragment:"#ifdef OPAQUE\ndiffuseColor.a = 1.0;\n#endif\n#ifdef USE_TRANSMISSION\ndiffuseColor.a *= material.transmissionAlpha + 0.1;\n#endif\ngl_FragColor = vec4( outgoingLight, diffuseColor.a );",packing:"vec3 packNormalToRGB( const in vec3 normal ) {\n\treturn normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n\treturn 2.0 * rgb.xyz - 1.0;\n}\nconst float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;\nconst vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. );\nconst vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );\nconst float ShiftRight8 = 1. / 256.;\nvec4 packDepthToRGBA( const in float v ) {\n\tvec4 r = vec4( fract( v * PackFactors ), v );\n\tr.yzw -= r.xyz * ShiftRight8;\treturn r * PackUpscale;\n}\nfloat unpackRGBAToDepth( const in vec4 v ) {\n\treturn dot( v, UnpackFactors );\n}\nvec2 packDepthToRG( in highp float v ) {\n\treturn packDepthToRGBA( v ).yx;\n}\nfloat unpackRGToDepth( const in highp vec2 v ) {\n\treturn unpackRGBAToDepth( vec4( v.xy, 0.0, 0.0 ) );\n}\nvec4 pack2HalfToRGBA( vec2 v ) {\n\tvec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) );\n\treturn vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w );\n}\nvec2 unpackRGBATo2Half( vec4 v ) {\n\treturn vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );\n}\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) {\n\treturn depth * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) {\n\treturn ( near * far ) / ( ( far - near ) * depth - far );\n}",premultiplied_alpha_fragment:"#ifdef PREMULTIPLIED_ALPHA\n\tgl_FragColor.rgb *= gl_FragColor.a;\n#endif",project_vertex:"vec4 mvPosition = vec4( transformed, 1.0 );\n#ifdef USE_INSTANCING\n\tmvPosition = instanceMatrix * mvPosition;\n#endif\nmvPosition = modelViewMatrix * mvPosition;\ngl_Position = projectionMatrix * mvPosition;",dithering_fragment:"#ifdef DITHERING\n\tgl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif",dithering_pars_fragment:"#ifdef DITHERING\n\tvec3 dithering( vec3 color ) {\n\t\tfloat grid_position = rand( gl_FragCoord.xy );\n\t\tvec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\n\t\tdither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\n\t\treturn color + dither_shift_RGB;\n\t}\n#endif",roughnessmap_fragment:"float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n\tvec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv );\n\troughnessFactor *= texelRoughness.g;\n#endif",roughnessmap_pars_fragment:"#ifdef USE_ROUGHNESSMAP\n\tuniform sampler2D roughnessMap;\n#endif",shadowmap_pars_fragment:"#if NUM_SPOT_LIGHT_COORDS > 0\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#if NUM_SPOT_LIGHT_MAPS > 0\n\tuniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ];\n#endif\n#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n\tfloat texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n\t\treturn step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n\t}\n\tvec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {\n\t\treturn unpackRGBATo2Half( texture2D( shadow, uv ) );\n\t}\n\tfloat VSMShadow (sampler2D shadow, vec2 uv, float compare ){\n\t\tfloat occlusion = 1.0;\n\t\tvec2 distribution = texture2DDistribution( shadow, uv );\n\t\tfloat hard_shadow = step( compare , distribution.x );\n\t\tif (hard_shadow != 1.0 ) {\n\t\t\tfloat distance = compare - distribution.x ;\n\t\t\tfloat variance = max( 0.00000, distribution.y * distribution.y );\n\t\t\tfloat softness_probability = variance / (variance + distance * distance );\t\t\tsoftness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 );\t\t\tocclusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );\n\t\t}\n\t\treturn occlusion;\n\t}\n\tfloat getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n\t\tfloat shadow = 1.0;\n\t\tshadowCoord.xyz /= shadowCoord.w;\n\t\tshadowCoord.z += shadowBias;\n\t\tbool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0;\n\t\tbool frustumTest = inFrustum && shadowCoord.z <= 1.0;\n\t\tif ( frustumTest ) {\n\t\t#if defined( SHADOWMAP_TYPE_PCF )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx0 = - texelSize.x * shadowRadius;\n\t\t\tfloat dy0 = - texelSize.y * shadowRadius;\n\t\t\tfloat dx1 = + texelSize.x * shadowRadius;\n\t\t\tfloat dy1 = + texelSize.y * shadowRadius;\n\t\t\tfloat dx2 = dx0 / 2.0;\n\t\t\tfloat dy2 = dy0 / 2.0;\n\t\t\tfloat dx3 = dx1 / 2.0;\n\t\t\tfloat dy3 = dy1 / 2.0;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n\t\t\t) * ( 1.0 / 17.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx = texelSize.x;\n\t\t\tfloat dy = texelSize.y;\n\t\t\tvec2 uv = shadowCoord.xy;\n\t\t\tvec2 f = fract( uv * shadowMapSize + 0.5 );\n\t\t\tuv -= f * texelSize;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, uv, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t f.y )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_VSM )\n\t\t\tshadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#else\n\t\t\tshadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#endif\n\t\t}\n\t\treturn shadow;\n\t}\n\tvec2 cubeToUV( vec3 v, float texelSizeY ) {\n\t\tvec3 absV = abs( v );\n\t\tfloat scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n\t\tabsV *= scaleToCube;\n\t\tv *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n\t\tvec2 planar = v.xy;\n\t\tfloat almostATexel = 1.5 * texelSizeY;\n\t\tfloat almostOne = 1.0 - almostATexel;\n\t\tif ( absV.z >= almostOne ) {\n\t\t\tif ( v.z > 0.0 )\n\t\t\t\tplanar.x = 4.0 - v.x;\n\t\t} else if ( absV.x >= almostOne ) {\n\t\t\tfloat signX = sign( v.x );\n\t\t\tplanar.x = v.z * signX + 2.0 * signX;\n\t\t} else if ( absV.y >= almostOne ) {\n\t\t\tfloat signY = sign( v.y );\n\t\t\tplanar.x = v.x + 2.0 * signY + 2.0;\n\t\t\tplanar.y = v.z * signY - 2.0;\n\t\t}\n\t\treturn vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n\t}\n\tfloat getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n\t\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n\t\tvec3 lightToPosition = shadowCoord.xyz;\n\t\tfloat dp = ( length( lightToPosition ) - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );\t\tdp += shadowBias;\n\t\tvec3 bd3D = normalize( lightToPosition );\n\t\t#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )\n\t\t\tvec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n\t\t\treturn (\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#else\n\t\t\treturn texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n\t\t#endif\n\t}\n#endif",shadowmap_pars_vertex:"#if NUM_SPOT_LIGHT_COORDS > 0\n\tuniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ];\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n#endif",shadowmap_vertex:"#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 )\n\tvec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\tvec4 shadowWorldPosition;\n#endif\n#if defined( USE_SHADOWMAP )\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if NUM_SPOT_LIGHT_COORDS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition;\n\t\t#if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t\tshadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias;\n\t\t#endif\n\t\tvSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n#endif",shadowmask_pars_fragment:"float getShadowMask() {\n\tfloat shadow = 1.0;\n\t#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tdirectionalLight = directionalLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tspotLight = spotLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tpointLight = pointLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#endif\n\treturn shadow;\n}",skinbase_vertex:"#ifdef USE_SKINNING\n\tmat4 boneMatX = getBoneMatrix( skinIndex.x );\n\tmat4 boneMatY = getBoneMatrix( skinIndex.y );\n\tmat4 boneMatZ = getBoneMatrix( skinIndex.z );\n\tmat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif",skinning_pars_vertex:"#ifdef USE_SKINNING\n\tuniform mat4 bindMatrix;\n\tuniform mat4 bindMatrixInverse;\n\tuniform highp sampler2D boneTexture;\n\tuniform int boneTextureSize;\n\tmat4 getBoneMatrix( const in float i ) {\n\t\tfloat j = i * 4.0;\n\t\tfloat x = mod( j, float( boneTextureSize ) );\n\t\tfloat y = floor( j / float( boneTextureSize ) );\n\t\tfloat dx = 1.0 / float( boneTextureSize );\n\t\tfloat dy = 1.0 / float( boneTextureSize );\n\t\ty = dy * ( y + 0.5 );\n\t\tvec4 v1 = texture2D( boneTexture, vec2( dx * ( x + 0.5 ), y ) );\n\t\tvec4 v2 = texture2D( boneTexture, vec2( dx * ( x + 1.5 ), y ) );\n\t\tvec4 v3 = texture2D( boneTexture, vec2( dx * ( x + 2.5 ), y ) );\n\t\tvec4 v4 = texture2D( boneTexture, vec2( dx * ( x + 3.5 ), y ) );\n\t\tmat4 bone = mat4( v1, v2, v3, v4 );\n\t\treturn bone;\n\t}\n#endif",skinning_vertex:"#ifdef USE_SKINNING\n\tvec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n\tvec4 skinned = vec4( 0.0 );\n\tskinned += boneMatX * skinVertex * skinWeight.x;\n\tskinned += boneMatY * skinVertex * skinWeight.y;\n\tskinned += boneMatZ * skinVertex * skinWeight.z;\n\tskinned += boneMatW * skinVertex * skinWeight.w;\n\ttransformed = ( bindMatrixInverse * skinned ).xyz;\n#endif",skinnormal_vertex:"#ifdef USE_SKINNING\n\tmat4 skinMatrix = mat4( 0.0 );\n\tskinMatrix += skinWeight.x * boneMatX;\n\tskinMatrix += skinWeight.y * boneMatY;\n\tskinMatrix += skinWeight.z * boneMatZ;\n\tskinMatrix += skinWeight.w * boneMatW;\n\tskinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;\n\tobjectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\n\t#ifdef USE_TANGENT\n\t\tobjectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#endif\n#endif",specularmap_fragment:"float specularStrength;\n#ifdef USE_SPECULARMAP\n\tvec4 texelSpecular = texture2D( specularMap, vSpecularMapUv );\n\tspecularStrength = texelSpecular.r;\n#else\n\tspecularStrength = 1.0;\n#endif",specularmap_pars_fragment:"#ifdef USE_SPECULARMAP\n\tuniform sampler2D specularMap;\n#endif",tonemapping_fragment:"#if defined( TONE_MAPPING )\n\tgl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif",tonemapping_pars_fragment:"#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\nuniform float toneMappingExposure;\nvec3 LinearToneMapping( vec3 color ) {\n\treturn toneMappingExposure * color;\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( color / ( vec3( 1.0 ) + color ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\tcolor = max( vec3( 0.0 ), color - 0.004 );\n\treturn pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\nvec3 RRTAndODTFit( vec3 v ) {\n\tvec3 a = v * ( v + 0.0245786 ) - 0.000090537;\n\tvec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;\n\treturn a / b;\n}\nvec3 ACESFilmicToneMapping( vec3 color ) {\n\tconst mat3 ACESInputMat = mat3(\n\t\tvec3( 0.59719, 0.07600, 0.02840 ),\t\tvec3( 0.35458, 0.90834, 0.13383 ),\n\t\tvec3( 0.04823, 0.01566, 0.83777 )\n\t);\n\tconst mat3 ACESOutputMat = mat3(\n\t\tvec3( 1.60475, -0.10208, -0.00327 ),\t\tvec3( -0.53108, 1.10813, -0.07276 ),\n\t\tvec3( -0.07367, -0.00605, 1.07602 )\n\t);\n\tcolor *= toneMappingExposure / 0.6;\n\tcolor = ACESInputMat * color;\n\tcolor = RRTAndODTFit( color );\n\tcolor = ACESOutputMat * color;\n\treturn saturate( color );\n}\nvec3 CustomToneMapping( vec3 color ) { return color; }",transmission_fragment:"#ifdef USE_TRANSMISSION\n\tmaterial.transmission = transmission;\n\tmaterial.transmissionAlpha = 1.0;\n\tmaterial.thickness = thickness;\n\tmaterial.attenuationDistance = attenuationDistance;\n\tmaterial.attenuationColor = attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tmaterial.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tmaterial.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g;\n\t#endif\n\tvec3 pos = vWorldPosition;\n\tvec3 v = normalize( cameraPosition - pos );\n\tvec3 n = inverseTransformDirection( normal, viewMatrix );\n\tvec4 transmission = getIBLVolumeRefraction(\n\t\tn, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90,\n\t\tpos, modelMatrix, viewMatrix, projectionMatrix, material.ior, material.thickness,\n\t\tmaterial.attenuationColor, material.attenuationDistance );\n\tmaterial.transmissionAlpha = mix( material.transmissionAlpha, transmission.a, material.transmission );\n\ttotalDiffuse = mix( totalDiffuse, transmission.rgb, material.transmission );\n#endif",transmission_pars_fragment:"#ifdef USE_TRANSMISSION\n\tuniform float transmission;\n\tuniform float thickness;\n\tuniform float attenuationDistance;\n\tuniform vec3 attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tuniform sampler2D transmissionMap;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tuniform sampler2D thicknessMap;\n\t#endif\n\tuniform vec2 transmissionSamplerSize;\n\tuniform sampler2D transmissionSamplerMap;\n\tuniform mat4 modelMatrix;\n\tuniform mat4 projectionMatrix;\n\tvarying vec3 vWorldPosition;\n\tfloat w0( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 );\n\t}\n\tfloat w1( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 );\n\t}\n\tfloat w2( float a ){\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 );\n\t}\n\tfloat w3( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * a * a );\n\t}\n\tfloat g0( float a ) {\n\t\treturn w0( a ) + w1( a );\n\t}\n\tfloat g1( float a ) {\n\t\treturn w2( a ) + w3( a );\n\t}\n\tfloat h0( float a ) {\n\t\treturn - 1.0 + w1( a ) / ( w0( a ) + w1( a ) );\n\t}\n\tfloat h1( float a ) {\n\t\treturn 1.0 + w3( a ) / ( w2( a ) + w3( a ) );\n\t}\n\tvec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, vec2 fullSize, float lod ) {\n\t\tuv = uv * texelSize.zw + 0.5;\n\t\tvec2 iuv = floor( uv );\n\t\tvec2 fuv = fract( uv );\n\t\tfloat g0x = g0( fuv.x );\n\t\tfloat g1x = g1( fuv.x );\n\t\tfloat h0x = h0( fuv.x );\n\t\tfloat h1x = h1( fuv.x );\n\t\tfloat h0y = h0( fuv.y );\n\t\tfloat h1y = h1( fuv.y );\n\t\tvec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\t\n\t\tvec2 lodFudge = pow( 1.95, lod ) / fullSize;\n\t\treturn g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) +\n\t\t\tg1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) );\n\t}\n\tvec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) {\n\t\tvec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) );\n\t\tvec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) );\n\t\tvec2 fLodSizeInv = 1.0 / fLodSize;\n\t\tvec2 cLodSizeInv = 1.0 / cLodSize;\n\t\tvec2 fullSize = vec2( textureSize( sampler, 0 ) );\n\t\tvec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), fullSize, floor( lod ) );\n\t\tvec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), fullSize, ceil( lod ) );\n\t\treturn mix( fSample, cSample, fract( lod ) );\n\t}\n\tvec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) {\n\t\tvec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior );\n\t\tvec3 modelScale;\n\t\tmodelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) );\n\t\tmodelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) );\n\t\tmodelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) );\n\t\treturn normalize( refractionVector ) * thickness * modelScale;\n\t}\n\tfloat applyIorToRoughness( const in float roughness, const in float ior ) {\n\t\treturn roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 );\n\t}\n\tvec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) {\n\t\tfloat lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior );\n\t\treturn textureBicubic( transmissionSamplerMap, fragCoord.xy, lod );\n\t}\n\tvec3 applyVolumeAttenuation( const in vec3 radiance, const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tif ( isinf( attenuationDistance ) ) {\n\t\t\treturn radiance;\n\t\t} else {\n\t\t\tvec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance;\n\t\t\tvec3 transmittance = exp( - attenuationCoefficient * transmissionDistance );\t\t\treturn transmittance * radiance;\n\t\t}\n\t}\n\tvec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor,\n\t\tconst in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix,\n\t\tconst in mat4 viewMatrix, const in mat4 projMatrix, const in float ior, const in float thickness,\n\t\tconst in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tvec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix );\n\t\tvec3 refractedRayExit = position + transmissionRay;\n\t\tvec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n\t\tvec2 refractionCoords = ndcPos.xy / ndcPos.w;\n\t\trefractionCoords += 1.0;\n\t\trefractionCoords /= 2.0;\n\t\tvec4 transmittedLight = getTransmissionSample( refractionCoords, roughness, ior );\n\t\tvec3 attenuatedColor = applyVolumeAttenuation( transmittedLight.rgb, length( transmissionRay ), attenuationColor, attenuationDistance );\n\t\tvec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness );\n\t\treturn vec4( ( 1.0 - F ) * attenuatedColor * diffuseColor, transmittedLight.a );\n\t}\n#endif",uv_pars_fragment:"#ifdef USE_UV\n\tvarying vec2 vUv;\n#endif\n#ifdef USE_MAP\n\tvarying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n\tvarying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n\tvarying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n\tvarying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n\tvarying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n\tvarying vec2 vNormalMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tvarying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n\tvarying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tvarying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tvarying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tvarying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tvarying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tvarying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tvarying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tvarying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tvarying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n\tvarying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tvarying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tvarying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tuniform mat3 transmissionMapTransform;\n\tvarying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n\tuniform mat3 thicknessMapTransform;\n\tvarying vec2 vThicknessMapUv;\n#endif",uv_pars_vertex:"#ifdef USE_UV\n\tvarying vec2 vUv;\n#endif\n#ifdef USE_UV2\n\tattribute vec2 uv2;\n#endif\n#ifdef USE_MAP\n\tuniform mat3 mapTransform;\n\tvarying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform mat3 alphaMapTransform;\n\tvarying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n\tuniform mat3 lightMapTransform;\n\tvarying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n\tuniform mat3 aoMapTransform;\n\tvarying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n\tuniform mat3 bumpMapTransform;\n\tvarying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n\tuniform mat3 normalMapTransform;\n\tvarying vec2 vNormalMapUv;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\tuniform mat3 displacementMapTransform;\n\tvarying vec2 vDisplacementMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tuniform mat3 emissiveMapTransform;\n\tvarying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n\tuniform mat3 metalnessMapTransform;\n\tvarying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tuniform mat3 roughnessMapTransform;\n\tvarying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tuniform mat3 clearcoatMapTransform;\n\tvarying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform mat3 clearcoatNormalMapTransform;\n\tvarying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform mat3 clearcoatRoughnessMapTransform;\n\tvarying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tuniform mat3 sheenColorMapTransform;\n\tvarying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tuniform mat3 sheenRoughnessMapTransform;\n\tvarying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tuniform mat3 iridescenceMapTransform;\n\tvarying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform mat3 iridescenceThicknessMapTransform;\n\tvarying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n\tuniform mat3 specularMapTransform;\n\tvarying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tuniform mat3 specularColorMapTransform;\n\tvarying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tuniform mat3 specularIntensityMapTransform;\n\tvarying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tuniform mat3 transmissionMapTransform;\n\tvarying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n\tuniform mat3 thicknessMapTransform;\n\tvarying vec2 vThicknessMapUv;\n#endif",uv_vertex:"#ifdef USE_UV\n\tvUv = vec3( uv, 1 ).xy;\n#endif\n#ifdef USE_MAP\n\tvMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ALPHAMAP\n\tvAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_LIGHTMAP\n\tvLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_AOMAP\n\tvAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_BUMPMAP\n\tvBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_NORMALMAP\n\tvNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\tvDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tvEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_METALNESSMAP\n\tvMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tvRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tvClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tvClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tvClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tvIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tvIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tvSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tvSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULARMAP\n\tvSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tvSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tvSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tvTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_THICKNESSMAP\n\tvThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy;\n#endif",worldpos_vertex:"#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0\n\tvec4 worldPosition = vec4( transformed, 1.0 );\n\t#ifdef USE_INSTANCING\n\t\tworldPosition = instanceMatrix * worldPosition;\n\t#endif\n\tworldPosition = modelMatrix * worldPosition;\n#endif",background_vert:"varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\tgl_Position = vec4( position.xy, 1.0, 1.0 );\n}",background_frag:"uniform sampler2D t2D;\nuniform float backgroundIntensity;\nvarying vec2 vUv;\nvoid main() {\n\tvec4 texColor = texture2D( t2D, vUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\ttexColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w );\n\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include \n\t#include \n}",backgroundCube_vert:"varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n\tgl_Position.z = gl_Position.w;\n}",backgroundCube_frag:"#ifdef ENVMAP_TYPE_CUBE\n\tuniform samplerCube envMap;\n#elif defined( ENVMAP_TYPE_CUBE_UV )\n\tuniform sampler2D envMap;\n#endif\nuniform float flipEnvMap;\nuniform float backgroundBlurriness;\nuniform float backgroundIntensity;\nvarying vec3 vWorldDirection;\n#include \nvoid main() {\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 texColor = textureCube( envMap, vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) );\n\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\tvec4 texColor = textureCubeUV( envMap, vWorldDirection, backgroundBlurriness );\n\t#else\n\t\tvec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include \n\t#include \n}",cube_vert:"varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n\tgl_Position.z = gl_Position.w;\n}",cube_frag:"uniform samplerCube tCube;\nuniform float tFlip;\nuniform float opacity;\nvarying vec3 vWorldDirection;\nvoid main() {\n\tvec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) );\n\tgl_FragColor = texColor;\n\tgl_FragColor.a *= opacity;\n\t#include \n\t#include \n}",depth_vert:"#include \n#include \n#include \n#include \n#include \n#include \n#include \nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include \n\t#include \n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvHighPrecisionZW = gl_Position.zw;\n}",depth_frag:"#if DEPTH_PACKING == 3200\n\tuniform float opacity;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( 1.0 );\n\t#if DEPTH_PACKING == 3200\n\t\tdiffuseColor.a = opacity;\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\tfloat fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;\n\t#if DEPTH_PACKING == 3200\n\t\tgl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );\n\t#elif DEPTH_PACKING == 3201\n\t\tgl_FragColor = packDepthToRGBA( fragCoordZ );\n\t#endif\n}",distanceRGBA_vert:"#define DISTANCE\nvarying vec3 vWorldPosition;\n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvWorldPosition = worldPosition.xyz;\n}",distanceRGBA_frag:"#define DISTANCE\nuniform vec3 referencePosition;\nuniform float nearDistance;\nuniform float farDistance;\nvarying vec3 vWorldPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main () {\n\t#include \n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include \n\t#include \n\t#include \n\tfloat dist = length( vWorldPosition - referencePosition );\n\tdist = ( dist - nearDistance ) / ( farDistance - nearDistance );\n\tdist = saturate( dist );\n\tgl_FragColor = packDepthToRGBA( dist );\n}",equirect_vert:"varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n}",equirect_frag:"uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvec3 direction = normalize( vWorldDirection );\n\tvec2 sampleUV = equirectUv( direction );\n\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\t#include \n\t#include \n}",linedashed_vert:"uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvLineDistance = scale * lineDistance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",linedashed_frag:"uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tif ( mod( vLineDistance, totalSize ) > dashSize ) {\n\t\tdiscard;\n\t}\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshbasic_vert:"#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#if defined ( USE_ENVMAP ) || defined ( USE_SKINNING )\n\t\t#include \n\t\t#include \n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshbasic_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\t\treflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI;\n\t#else\n\t\treflectedLight.indirectDiffuse += vec3( 1.0 );\n\t#endif\n\t#include \n\treflectedLight.indirectDiffuse *= diffuseColor.rgb;\n\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshlambert_vert:"#define LAMBERT\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n\t#include \n}",meshlambert_frag:"#define LAMBERT\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshmatcap_vert:"#define MATCAP\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n}",meshmatcap_frag:"#define MATCAP\nuniform vec3 diffuse;\nuniform float opacity;\nuniform sampler2D matcap;\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 viewDir = normalize( vViewPosition );\n\tvec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );\n\tvec3 y = cross( viewDir, x );\n\tvec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;\n\t#ifdef USE_MATCAP\n\t\tvec4 matcapColor = texture2D( matcap, uv );\n\t#else\n\t\tvec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 );\n\t#endif\n\tvec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshnormal_vert:"#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvarying vec3 vViewPosition;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n}",meshnormal_frag:"#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvarying vec3 vViewPosition;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\tgl_FragColor = vec4( packNormalToRGB( normal ), opacity );\n\t#ifdef OPAQUE\n\t\tgl_FragColor.a = 1.0;\n\t#endif\n}",meshphong_vert:"#define PHONG\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n\t#include \n}",meshphong_frag:"#define PHONG\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshphysical_vert:"#define STANDARD\nvarying vec3 vViewPosition;\n#ifdef USE_TRANSMISSION\n\tvarying vec3 vWorldPosition;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n#ifdef USE_TRANSMISSION\n\tvWorldPosition = worldPosition.xyz;\n#endif\n}",meshphysical_frag:"#define STANDARD\n#ifdef PHYSICAL\n\t#define IOR\n\t#define USE_SPECULAR\n#endif\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\n#ifdef IOR\n\tuniform float ior;\n#endif\n#ifdef USE_SPECULAR\n\tuniform float specularIntensity;\n\tuniform vec3 specularColor;\n\t#ifdef USE_SPECULAR_COLORMAP\n\t\tuniform sampler2D specularColorMap;\n\t#endif\n\t#ifdef USE_SPECULAR_INTENSITYMAP\n\t\tuniform sampler2D specularIntensityMap;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT\n\tuniform float clearcoat;\n\tuniform float clearcoatRoughness;\n#endif\n#ifdef USE_IRIDESCENCE\n\tuniform float iridescence;\n\tuniform float iridescenceIOR;\n\tuniform float iridescenceThicknessMinimum;\n\tuniform float iridescenceThicknessMaximum;\n#endif\n#ifdef USE_SHEEN\n\tuniform vec3 sheenColor;\n\tuniform float sheenRoughness;\n\t#ifdef USE_SHEEN_COLORMAP\n\t\tuniform sampler2D sheenColorMap;\n\t#endif\n\t#ifdef USE_SHEEN_ROUGHNESSMAP\n\t\tuniform sampler2D sheenRoughnessMap;\n\t#endif\n#endif\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;\n\tvec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;\n\t#include \n\tvec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;\n\t#ifdef USE_SHEEN\n\t\tfloat sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor );\n\t\toutgoingLight = outgoingLight * sheenEnergyComp + sheenSpecular;\n\t#endif\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNVcc = saturate( dot( geometry.clearcoatNormal, geometry.viewDir ) );\n\t\tvec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc );\n\t\toutgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + clearcoatSpecular * material.clearcoat;\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshtoon_vert:"#define TOON\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n}",meshtoon_frag:"#define TOON\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",points_vert:"uniform float size;\nuniform float scale;\n#include \n#include \n#include \n#include \n#include \n#include \n#ifdef USE_POINTS_UV\n\tvarying vec2 vUv;\n\tuniform mat3 uvTransform;\n#endif\nvoid main() {\n\t#ifdef USE_POINTS_UV\n\t\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tgl_PointSize = size;\n\t#ifdef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n}",points_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",shadow_vert:"#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",shadow_frag:"uniform vec3 color;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tgl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );\n\t#include \n\t#include \n\t#include \n}",sprite_vert:"uniform float rotation;\nuniform vec2 center;\n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );\n\tvec2 scale;\n\tscale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );\n\tscale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );\n\t#ifndef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) scale *= - mvPosition.z;\n\t#endif\n\tvec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;\n\tvec2 rotatedPosition;\n\trotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\n\trotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\n\tmvPosition.xy += rotatedPosition;\n\tgl_Position = projectionMatrix * mvPosition;\n\t#include \n\t#include \n\t#include \n}",sprite_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n}"},Dr={common:{diffuse:{value:new Nn(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new Vt},alphaMap:{value:null},alphaMapTransform:{value:new Vt},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new Vt}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new Vt}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new Vt}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new Vt},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new Vt},normalScale:{value:new jt(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new Vt},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new Vt}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new Vt}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new Vt}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new Nn(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new Nn(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaTest:{value:0},uvTransform:{value:new Vt}},sprite:{diffuse:{value:new Nn(16777215)},opacity:{value:1},center:{value:new jt(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new Vt},alphaMap:{value:null},alphaTest:{value:0}}},zr={basic:{uniforms:mr([Dr.common,Dr.specularmap,Dr.envmap,Dr.aomap,Dr.lightmap,Dr.fog]),vertexShader:Rr.meshbasic_vert,fragmentShader:Rr.meshbasic_frag},lambert:{uniforms:mr([Dr.common,Dr.specularmap,Dr.envmap,Dr.aomap,Dr.lightmap,Dr.emissivemap,Dr.bumpmap,Dr.normalmap,Dr.displacementmap,Dr.fog,Dr.lights,{emissive:{value:new Nn(0)}}]),vertexShader:Rr.meshlambert_vert,fragmentShader:Rr.meshlambert_frag},phong:{uniforms:mr([Dr.common,Dr.specularmap,Dr.envmap,Dr.aomap,Dr.lightmap,Dr.emissivemap,Dr.bumpmap,Dr.normalmap,Dr.displacementmap,Dr.fog,Dr.lights,{emissive:{value:new Nn(0)},specular:{value:new Nn(1118481)},shininess:{value:30}}]),vertexShader:Rr.meshphong_vert,fragmentShader:Rr.meshphong_frag},standard:{uniforms:mr([Dr.common,Dr.envmap,Dr.aomap,Dr.lightmap,Dr.emissivemap,Dr.bumpmap,Dr.normalmap,Dr.displacementmap,Dr.roughnessmap,Dr.metalnessmap,Dr.fog,Dr.lights,{emissive:{value:new Nn(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Rr.meshphysical_vert,fragmentShader:Rr.meshphysical_frag},toon:{uniforms:mr([Dr.common,Dr.aomap,Dr.lightmap,Dr.emissivemap,Dr.bumpmap,Dr.normalmap,Dr.displacementmap,Dr.gradientmap,Dr.fog,Dr.lights,{emissive:{value:new Nn(0)}}]),vertexShader:Rr.meshtoon_vert,fragmentShader:Rr.meshtoon_frag},matcap:{uniforms:mr([Dr.common,Dr.bumpmap,Dr.normalmap,Dr.displacementmap,Dr.fog,{matcap:{value:null}}]),vertexShader:Rr.meshmatcap_vert,fragmentShader:Rr.meshmatcap_frag},points:{uniforms:mr([Dr.points,Dr.fog]),vertexShader:Rr.points_vert,fragmentShader:Rr.points_frag},dashed:{uniforms:mr([Dr.common,Dr.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Rr.linedashed_vert,fragmentShader:Rr.linedashed_frag},depth:{uniforms:mr([Dr.common,Dr.displacementmap]),vertexShader:Rr.depth_vert,fragmentShader:Rr.depth_frag},normal:{uniforms:mr([Dr.common,Dr.bumpmap,Dr.normalmap,Dr.displacementmap,{opacity:{value:1}}]),vertexShader:Rr.meshnormal_vert,fragmentShader:Rr.meshnormal_frag},sprite:{uniforms:mr([Dr.sprite,Dr.fog]),vertexShader:Rr.sprite_vert,fragmentShader:Rr.sprite_frag},background:{uniforms:{uvTransform:{value:new Vt},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:Rr.background_vert,fragmentShader:Rr.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1}},vertexShader:Rr.backgroundCube_vert,fragmentShader:Rr.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:Rr.cube_vert,fragmentShader:Rr.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Rr.equirect_vert,fragmentShader:Rr.equirect_frag},distanceRGBA:{uniforms:mr([Dr.common,Dr.displacementmap,{referencePosition:{value:new ce},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Rr.distanceRGBA_vert,fragmentShader:Rr.distanceRGBA_frag},shadow:{uniforms:mr([Dr.lights,Dr.fog,{color:{value:new Nn(0)},opacity:{value:1}}]),vertexShader:Rr.shadow_vert,fragmentShader:Rr.shadow_frag}};zr.physical={uniforms:mr([zr.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new Vt},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new Vt},clearcoatNormalScale:{value:new jt(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new Vt},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new Vt},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new Vt},sheen:{value:0},sheenColor:{value:new Nn(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new Vt},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new Vt},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new Vt},transmissionSamplerSize:{value:new jt},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new Vt},attenuationDistance:{value:0},attenuationColor:{value:new Nn(0)},specularColor:{value:new Nn(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new Vt},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new Vt}}]),vertexShader:Rr.meshphysical_vert,fragmentShader:Rr.meshphysical_frag};const Fr={r:0,b:0,g:0};function Br(t,e,n,r,i,o,a){const s=new Nn(0);let u,h,d=!0===o?0:1,f=null,p=0,m=null;function g(e,n){e.getRGB(Fr,gr(t)),r.buffers.color.setClear(Fr.r,Fr.g,Fr.b,n,a)}return{getClearColor:function(){return s},setClearColor:function(t,e=1){s.set(t),d=e,g(s,d)},getClearAlpha:function(){return d},setClearAlpha:function(t){d=t,g(s,d)},render:function(r,o){let a=!1,v=!0===o.isScene?o.background:null;if(v&&v.isTexture){v=(o.backgroundBlurriness>0?n:e).get(v)}const y=t.xr,b=y.getSession&&y.getSession();b&&"additive"===b.environmentBlendMode&&(v=null),null===v?g(s,d):v&&v.isColor&&(g(v,1),a=!0),(t.autoClear||a)&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),v&&(v.isCubeTexture||v.mapping===B)?(void 0===h&&(h=new hr(new fr(1,1,1),new yr({name:"BackgroundCubeMaterial",uniforms:pr(zr.backgroundCube.uniforms),vertexShader:zr.backgroundCube.vertexShader,fragmentShader:zr.backgroundCube.fragmentShader,side:c,depthTest:!1,depthWrite:!1,fog:!1})),h.geometry.deleteAttribute("normal"),h.geometry.deleteAttribute("uv"),h.onBeforeRender=function(t,e,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(h.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),i.update(h)),h.material.uniforms.envMap.value=v,h.material.uniforms.flipEnvMap.value=v.isCubeTexture&&!1===v.isRenderTargetTexture?-1:1,h.material.uniforms.backgroundBlurriness.value=o.backgroundBlurriness,h.material.uniforms.backgroundIntensity.value=o.backgroundIntensity,h.material.toneMapped=v.encoding!==yt,f===v&&p===v.version&&m===t.toneMapping||(h.material.needsUpdate=!0,f=v,p=v.version,m=t.toneMapping),h.layers.enableAll(),r.unshift(h,h.geometry,h.material,0,0,null)):v&&v.isTexture&&(void 0===u&&(u=new hr(new Lr(2,2),new yr({name:"BackgroundMaterial",uniforms:pr(zr.background.uniforms),vertexShader:zr.background.vertexShader,fragmentShader:zr.background.fragmentShader,side:l,depthTest:!1,depthWrite:!1,fog:!1})),u.geometry.deleteAttribute("normal"),Object.defineProperty(u.material,"map",{get:function(){return this.uniforms.t2D.value}}),i.update(u)),u.material.uniforms.t2D.value=v,u.material.uniforms.backgroundIntensity.value=o.backgroundIntensity,u.material.toneMapped=v.encoding!==yt,!0===v.matrixAutoUpdate&&v.updateMatrix(),u.material.uniforms.uvTransform.value.copy(v.matrix),f===v&&p===v.version&&m===t.toneMapping||(u.material.needsUpdate=!0,f=v,p=v.version,m=t.toneMapping),u.layers.enableAll(),r.unshift(u,u.geometry,u.material,0,0,null))}}}function Ur(t,e,n,r){const i=t.getParameter(34921),o=r.isWebGL2?null:e.get("OES_vertex_array_object"),a=r.isWebGL2||null!==o,s={},u=f(null);let l=u,c=!1;function h(e){return r.isWebGL2?t.bindVertexArray(e):o.bindVertexArrayOES(e)}function d(e){return r.isWebGL2?t.deleteVertexArray(e):o.deleteVertexArrayOES(e)}function f(t){const e=[],n=[],r=[];for(let t=0;t=0){const n=i[e];let r=o[e];if(void 0===r&&("instanceMatrix"===e&&t.instanceMatrix&&(r=t.instanceMatrix),"instanceColor"===e&&t.instanceColor&&(r=t.instanceColor)),void 0===n)return!0;if(n.attribute!==r)return!0;if(r&&n.data!==r.data)return!0;a++}}return l.attributesNum!==a||l.index!==r}(i,b,d,x),w&&function(t,e,n,r){const i={},o=e.attributes;let a=0;const s=n.getAttributes();for(const e in s){if(s[e].location>=0){let n=o[e];void 0===n&&("instanceMatrix"===e&&t.instanceMatrix&&(n=t.instanceMatrix),"instanceColor"===e&&t.instanceColor&&(n=t.instanceColor));const r={};r.attribute=n,n&&n.data&&(r.data=n.data),i[e]=r,a++}}l.attributes=i,l.attributesNum=a,l.index=r}(i,b,d,x)}else{const t=!0===u.wireframe;l.geometry===b.id&&l.program===d.id&&l.wireframe===t||(l.geometry=b.id,l.program=d.id,l.wireframe=t,w=!0)}null!==x&&n.update(x,34963),(w||c)&&(c=!1,function(i,o,a,s){if(!1===r.isWebGL2&&(i.isInstancedMesh||s.isInstancedBufferGeometry)&&null===e.get("ANGLE_instanced_arrays"))return;p();const u=s.attributes,l=a.getAttributes(),c=o.defaultAttributeValues;for(const e in l){const r=l[e];if(r.location>=0){let o=u[e];if(void 0===o&&("instanceMatrix"===e&&i.instanceMatrix&&(o=i.instanceMatrix),"instanceColor"===e&&i.instanceColor&&(o=i.instanceColor)),void 0!==o){const e=o.normalized,a=o.itemSize,u=n.get(o);if(void 0===u)continue;const l=u.buffer,c=u.type,h=u.bytesPerElement;if(o.isInterleavedBufferAttribute){const n=o.data,u=n.stride,d=o.offset;if(n.isInstancedInterleavedBuffer){for(let t=0;t0&&t.getShaderPrecisionFormat(35632,36338).precision>0)return"highp";e="mediump"}return"mediump"===e&&t.getShaderPrecisionFormat(35633,36337).precision>0&&t.getShaderPrecisionFormat(35632,36337).precision>0?"mediump":"lowp"}const o="undefined"!=typeof WebGL2RenderingContext&&"WebGL2RenderingContext"===t.constructor.name;let a=void 0!==n.precision?n.precision:"highp";const s=i(a);s!==a&&(console.warn("THREE.WebGLRenderer:",a,"not supported, using",s,"instead."),a=s);const u=o||e.has("WEBGL_draw_buffers"),l=!0===n.logarithmicDepthBuffer,c=t.getParameter(34930),h=t.getParameter(35660),d=t.getParameter(3379),f=t.getParameter(34076),p=t.getParameter(34921),m=t.getParameter(36347),g=t.getParameter(36348),v=t.getParameter(36349),y=h>0,b=o||e.has("OES_texture_float");return{isWebGL2:o,drawBuffers:u,getMaxAnisotropy:function(){if(void 0!==r)return r;if(!0===e.has("EXT_texture_filter_anisotropic")){const n=e.get("EXT_texture_filter_anisotropic");r=t.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else r=0;return r},getMaxPrecision:i,precision:a,logarithmicDepthBuffer:l,maxTextures:c,maxVertexTextures:h,maxTextureSize:d,maxCubemapSize:f,maxAttributes:p,maxVertexUniforms:m,maxVaryings:g,maxFragmentUniforms:v,vertexTextures:y,floatFragmentTextures:b,floatVertexTextures:y&&b,maxSamples:o?t.getParameter(36183):0}}function Hr(t){const e=this;let n=null,r=0,i=!1,o=!1;const a=new Tr,s=new Vt,u={value:null,needsUpdate:!1};function l(t,n,r,i){const o=null!==t?t.length:0;let l=null;if(0!==o){if(l=u.value,!0!==i||null===l){const e=r+4*o,i=n.matrixWorldInverse;s.getNormalMatrix(i),(null===l||l.length0);e.numPlanes=r,e.numIntersection=0}();else{const t=o?0:r,e=4*t;let i=p.clippingState||null;u.value=i,i=l(h,s,e,c);for(let t=0;t!==e;++t)i[t]=n[t];p.clippingState=i,this.numIntersection=d?this.numPlanes:0,this.numPlanes+=t}}}function Gr(t){let e=new WeakMap;function n(t,e){return e===z?t.mapping=R:e===F&&(t.mapping=D),t}function r(t){const n=t.target;n.removeEventListener("dispose",r);const i=e.get(n);void 0!==i&&(e.delete(n),i.dispose())}return{get:function(i){if(i&&i.isTexture&&!1===i.isRenderTargetTexture){const o=i.mapping;if(o===z||o===F){if(e.has(i)){return n(e.get(i).texture,i.mapping)}{const o=i.image;if(o&&o.height>0){const a=new Er(o.height/2);return a.fromEquirectangularTexture(t,i),e.set(i,a),i.addEventListener("dispose",r),n(a.texture,i.mapping)}return null}}}return i},dispose:function(){e=new WeakMap}}}class Wr extends br{constructor(t=-1,e=1,n=1,r=-1,i=.1,o=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=t,this.right=e,this.top=n,this.bottom=r,this.near=i,this.far=o,this.updateProjectionMatrix()}copy(t,e){return super.copy(t,e),this.left=t.left,this.right=t.right,this.top=t.top,this.bottom=t.bottom,this.near=t.near,this.far=t.far,this.zoom=t.zoom,this.view=null===t.view?null:Object.assign({},t.view),this}setViewOffset(t,e,n,r,i,o){null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const t=(this.right-this.left)/(2*this.zoom),e=(this.top-this.bottom)/(2*this.zoom),n=(this.right+this.left)/2,r=(this.top+this.bottom)/2;let i=n-t,o=n+t,a=r+e,s=r-e;if(null!==this.view&&this.view.enabled){const t=(this.right-this.left)/this.view.fullWidth/this.zoom,e=(this.top-this.bottom)/this.view.fullHeight/this.zoom;i+=t*this.view.offsetX,o=i+t*this.view.width,a-=e*this.view.offsetY,s=a-e*this.view.height}this.projectionMatrix.makeOrthographic(i,o,a,s,this.near,this.far),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(t){const e=super.toJSON(t);return e.object.zoom=this.zoom,e.object.left=this.left,e.object.right=this.right,e.object.top=this.top,e.object.bottom=this.bottom,e.object.near=this.near,e.object.far=this.far,null!==this.view&&(e.object.view=Object.assign({},this.view)),e}}const Xr=[.125,.215,.35,.446,.526,.582],Yr=20,qr=new Wr,$r=new Nn;let Kr=null;const Zr=(1+Math.sqrt(5))/2,Qr=1/Zr,Jr=[new ce(1,1,1),new ce(-1,1,1),new ce(1,1,-1),new ce(-1,1,-1),new ce(0,Zr,Qr),new ce(0,Zr,-Qr),new ce(Qr,0,Zr),new ce(-Qr,0,Zr),new ce(Zr,Qr,0),new ce(-Zr,Qr,0)];class ti{constructor(t){this._renderer=t,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(t,e=0,n=.1,r=100){Kr=this._renderer.getRenderTarget(),this._setSize(256);const i=this._allocateTargets();return i.depthBuffer=!0,this._sceneToCubeUV(t,n,r,i),e>0&&this._blur(i,0,0,e),this._applyPMREM(i),this._cleanup(i),i}fromEquirectangular(t,e=null){return this._fromTexture(t,e)}fromCubemap(t,e=null){return this._fromTexture(t,e)}compileCubemapShader(){null===this._cubemapMaterial&&(this._cubemapMaterial=ii(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){null===this._equirectMaterial&&(this._equirectMaterial=ri(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),null!==this._cubemapMaterial&&this._cubemapMaterial.dispose(),null!==this._equirectMaterial&&this._equirectMaterial.dispose()}_setSize(t){this._lodMax=Math.floor(Math.log2(t)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){null!==this._blurMaterial&&this._blurMaterial.dispose(),null!==this._pingPongRenderTarget&&this._pingPongRenderTarget.dispose();for(let t=0;tt-4?s=Xr[a-t+4-1]:0===a&&(s=0),r.push(s);const u=1/(o-2),l=-u,c=1+u,h=[l,l,c,l,c,c,l,l,c,c,l,c],d=6,f=6,p=3,m=2,g=1,v=new Float32Array(p*f*d),y=new Float32Array(m*f*d),b=new Float32Array(g*f*d);for(let t=0;t2?0:-1,r=[e,n,0,e+2/3,n,0,e+2/3,n+1,0,e,n,0,e+2/3,n+1,0,e,n+1,0];v.set(r,p*f*t),y.set(h,m*f*t);const i=[t,t,t,t,t,t];b.set(i,g*f*t)}const x=new Yn;x.setAttribute("position",new Dn(v,p)),x.setAttribute("uv",new Dn(y,m)),x.setAttribute("faceIndex",new Dn(b,g)),e.push(x),i>4&&i--}return{lodPlanes:e,sizeLods:n,sigmas:r}}(r)),this._blurMaterial=function(t,e,n){const r=new Float32Array(Yr),i=new ce(0,1,0),o=new yr({name:"SphericalGaussianBlur",defines:{n:Yr,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${t}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:r},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:i}},vertexShader:oi(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\t\t\tuniform int samples;\n\t\t\tuniform float weights[ n ];\n\t\t\tuniform bool latitudinal;\n\t\t\tuniform float dTheta;\n\t\t\tuniform float mipInt;\n\t\t\tuniform vec3 poleAxis;\n\n\t\t\t#define ENVMAP_TYPE_CUBE_UV\n\t\t\t#include \n\n\t\t\tvec3 getSample( float theta, vec3 axis ) {\n\n\t\t\t\tfloat cosTheta = cos( theta );\n\t\t\t\t// Rodrigues' axis-angle rotation\n\t\t\t\tvec3 sampleDirection = vOutputDirection * cosTheta\n\t\t\t\t\t+ cross( axis, vOutputDirection ) * sin( theta )\n\t\t\t\t\t+ axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta );\n\n\t\t\t\treturn bilinearCubeUV( envMap, sampleDirection, mipInt );\n\n\t\t\t}\n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection );\n\n\t\t\t\tif ( all( equal( axis, vec3( 0.0 ) ) ) ) {\n\n\t\t\t\t\taxis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x );\n\n\t\t\t\t}\n\n\t\t\t\taxis = normalize( axis );\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t\t\t\tgl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis );\n\n\t\t\t\tfor ( int i = 1; i < n; i++ ) {\n\n\t\t\t\t\tif ( i >= samples ) {\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfloat theta = dTheta * float( i );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( theta, axis );\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t",blending:0,depthTest:!1,depthWrite:!1});return o}(r,t,e)}return r}_compileMaterial(t){const e=new hr(this._lodPlanes[0],t);this._renderer.compile(e,qr)}_sceneToCubeUV(t,e,n,r){const i=new xr(90,1,e,n),o=[1,-1,1,1,1,1],a=[1,1,1,-1,-1,-1],s=this._renderer,u=s.autoClear,l=s.toneMapping;s.getClearColor($r),s.toneMapping=k,s.autoClear=!1;const h=new On({name:"PMREM.Background",side:c,depthWrite:!1,depthTest:!1}),d=new hr(new fr,h);let f=!1;const p=t.background;p?p.isColor&&(h.color.copy(p),t.background=null,f=!0):(h.color.copy($r),f=!0);for(let e=0;e<6;e++){const n=e%3;0===n?(i.up.set(0,o[e],0),i.lookAt(a[e],0,0)):1===n?(i.up.set(0,0,o[e]),i.lookAt(0,a[e],0)):(i.up.set(0,o[e],0),i.lookAt(0,0,a[e]));const u=this._cubeSize;ni(r,n*u,e>2?u:0,u,u),s.setRenderTarget(r),f&&s.render(d,i),s.render(t,i)}d.geometry.dispose(),d.material.dispose(),s.toneMapping=l,s.autoClear=u,t.background=p}_textureToCubeUV(t,e){const n=this._renderer,r=t.mapping===R||t.mapping===D;r?(null===this._cubemapMaterial&&(this._cubemapMaterial=ii()),this._cubemapMaterial.uniforms.flipEnvMap.value=!1===t.isRenderTargetTexture?-1:1):null===this._equirectMaterial&&(this._equirectMaterial=ri());const i=r?this._cubemapMaterial:this._equirectMaterial,o=new hr(this._lodPlanes[0],i);i.uniforms.envMap.value=t;const a=this._cubeSize;ni(e,0,0,3*a,2*a),n.setRenderTarget(e),n.render(o,qr)}_applyPMREM(t){const e=this._renderer,n=e.autoClear;e.autoClear=!1;for(let e=1;eYr&&console.warn(`sigmaRadians, ${i}, is too large and will clip, as it requested ${p} samples when the maximum is set to 20`);const m=[];let g=0;for(let t=0;tv-4?r-v+4:0),4*(this._cubeSize-y),3*y,2*y),s.setRenderTarget(e),s.render(l,qr)}}function ei(t,e,n){const r=new ae(t,e,n);return r.texture.mapping=B,r.texture.name="PMREM.cubeUv",r.scissorTest=!0,r}function ni(t,e,n,r,i){t.viewport.set(e,n,r,i),t.scissor.set(e,n,r,i)}function ri(){return new yr({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:oi(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\n\t\t\t#include \n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 outputDirection = normalize( vOutputDirection );\n\t\t\t\tvec2 uv = equirectUv( outputDirection );\n\n\t\t\t\tgl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 );\n\n\t\t\t}\n\t\t",blending:0,depthTest:!1,depthWrite:!1})}function ii(){return new yr({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:oi(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tuniform float flipEnvMap;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform samplerCube envMap;\n\n\t\t\tvoid main() {\n\n\t\t\t\tgl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) );\n\n\t\t\t}\n\t\t",blending:0,depthTest:!1,depthWrite:!1})}function oi(){return"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute float faceIndex;\n\n\t\tvarying vec3 vOutputDirection;\n\n\t\t// RH coordinate system; PMREM face-indexing convention\n\t\tvec3 getDirection( vec2 uv, float face ) {\n\n\t\t\tuv = 2.0 * uv - 1.0;\n\n\t\t\tvec3 direction = vec3( uv, 1.0 );\n\n\t\t\tif ( face == 0.0 ) {\n\n\t\t\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\n\t\t\t} else if ( face == 1.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\n\t\t\t} else if ( face == 2.0 ) {\n\n\t\t\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\n\t\t\t} else if ( face == 3.0 ) {\n\n\t\t\t\tdirection = direction.zyx;\n\t\t\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\n\t\t\t} else if ( face == 4.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\n\t\t\t} else if ( face == 5.0 ) {\n\n\t\t\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\n\t\t\t}\n\n\t\t\treturn direction;\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvOutputDirection = getDirection( uv, faceIndex );\n\t\t\tgl_Position = vec4( position, 1.0 );\n\n\t\t}\n\t"}function ai(t){let e=new WeakMap,n=null;function r(t){const n=t.target;n.removeEventListener("dispose",r);const i=e.get(n);void 0!==i&&(e.delete(n),i.dispose())}return{get:function(i){if(i&&i.isTexture){const o=i.mapping,a=o===z||o===F,s=o===R||o===D;if(a||s){if(i.isRenderTargetTexture&&!0===i.needsPMREMUpdate){i.needsPMREMUpdate=!1;let r=e.get(i);return null===n&&(n=new ti(t)),r=a?n.fromEquirectangular(i,r):n.fromCubemap(i,r),e.set(i,r),r.texture}if(e.has(i))return e.get(i).texture;{const o=i.image;if(a&&o&&o.height>0||s&&o&&function(t){let e=0;const n=6;for(let r=0;re.maxTextureSize&&(A=Math.ceil(E/e.maxTextureSize),E=e.maxTextureSize);const M=new Float32Array(E*A*4*f),C=new se(M,E,A,f);C.type=Z,C.needsUpdate=!0;const T=4*S;for(let I=0;I0)return t;const i=e*n;let o=bi[i];if(void 0===o&&(o=new Float32Array(i),bi[i]=o),0!==e){r.toArray(o,0);for(let r=1,i=0;r!==e;++r)i+=n,t[r].toArray(o,i)}return o}function Ai(t,e){if(t.length!==e.length)return!1;for(let n=0,r=t.length;n":" "} ${i}: ${n[t]}`)}return r.join("\n")}(t.getShaderSource(e),r)}return i}function So(t,e){const n=function(t){switch(t){case vt:return["Linear","( value )"];case yt:return["sRGB","( value )"];default:return console.warn("THREE.WebGLProgram: Unsupported encoding:",t),["Linear","( value )"]}}(e);return"vec4 "+t+"( vec4 value ) { return LinearTo"+n[0]+n[1]+"; }"}function Eo(t,e){let n;switch(e){case I:n="Linear";break;case N:n="Reinhard";break;case P:n="OptimizedCineon";break;case O:n="ACESFilmic";break;case L:n="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",e),n="Linear"}return"vec3 "+t+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}function Ao(t){return""!==t}function Mo(t,e){const n=e.numSpotLightShadows+e.numSpotLightMaps-e.numSpotLightShadowsWithMaps;return t.replace(/NUM_DIR_LIGHTS/g,e.numDirLights).replace(/NUM_SPOT_LIGHTS/g,e.numSpotLights).replace(/NUM_SPOT_LIGHT_MAPS/g,e.numSpotLightMaps).replace(/NUM_SPOT_LIGHT_COORDS/g,n).replace(/NUM_RECT_AREA_LIGHTS/g,e.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,e.numPointLights).replace(/NUM_HEMI_LIGHTS/g,e.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g,e.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS/g,e.numSpotLightShadowsWithMaps).replace(/NUM_SPOT_LIGHT_SHADOWS/g,e.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,e.numPointLightShadows)}function Co(t,e){return t.replace(/NUM_CLIPPING_PLANES/g,e.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,e.numClippingPlanes-e.numClipIntersection)}const To=/^[ \t]*#include +<([\w\d./]+)>/gm;function ko(t){return t.replace(To,Io)}function Io(t,e){const n=Rr[e];if(void 0===n)throw new Error("Can not resolve #include <"+e+">");return ko(n)}const No=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function Po(t){return t.replace(No,Oo)}function Oo(t,e,n,r){let i="";for(let t=parseInt(e);t0&&(b+="\n"),x=[g,v].filter(Ao).join("\n"),x.length>0&&(x+="\n")):(b=[Lo(n),"#define SHADER_NAME "+n.shaderName,v,n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+f:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.displacementMap?"#define USE_DISPLACEMENTMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.mapUv?"#define MAP_UV "+n.mapUv:"",n.alphaMapUv?"#define ALPHAMAP_UV "+n.alphaMapUv:"",n.lightMapUv?"#define LIGHTMAP_UV "+n.lightMapUv:"",n.aoMapUv?"#define AOMAP_UV "+n.aoMapUv:"",n.emissiveMapUv?"#define EMISSIVEMAP_UV "+n.emissiveMapUv:"",n.bumpMapUv?"#define BUMPMAP_UV "+n.bumpMapUv:"",n.normalMapUv?"#define NORMALMAP_UV "+n.normalMapUv:"",n.displacementMapUv?"#define DISPLACEMENTMAP_UV "+n.displacementMapUv:"",n.metalnessMapUv?"#define METALNESSMAP_UV "+n.metalnessMapUv:"",n.roughnessMapUv?"#define ROUGHNESSMAP_UV "+n.roughnessMapUv:"",n.clearcoatMapUv?"#define CLEARCOATMAP_UV "+n.clearcoatMapUv:"",n.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+n.clearcoatNormalMapUv:"",n.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+n.clearcoatRoughnessMapUv:"",n.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+n.iridescenceMapUv:"",n.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+n.iridescenceThicknessMapUv:"",n.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+n.sheenColorMapUv:"",n.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+n.sheenRoughnessMapUv:"",n.specularMapUv?"#define SPECULARMAP_UV "+n.specularMapUv:"",n.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+n.specularColorMapUv:"",n.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+n.specularIntensityMapUv:"",n.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+n.transmissionMapUv:"",n.thicknessMapUv?"#define THICKNESSMAP_UV "+n.thicknessMapUv:"",n.vertexTangents?"#define USE_TANGENT":"",n.vertexColors?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUvs2?"#define USE_UV2":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&!1===n.flatShading?"#define USE_MORPHNORMALS":"",n.morphColors&&n.isWebGL2?"#define USE_MORPHCOLORS":"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE":"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE_STRIDE "+n.morphTextureStride:"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_COUNT "+n.morphTargetsCount:"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+h:"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING","\tattribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR","\tattribute vec3 instanceColor;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_TANGENT","\tattribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )","\tattribute vec4 color;","#elif defined( USE_COLOR )","\tattribute vec3 color;","#endif","#if ( defined( USE_MORPHTARGETS ) && ! defined( MORPHTARGETS_TEXTURE ) )","\tattribute vec3 morphTarget0;","\tattribute vec3 morphTarget1;","\tattribute vec3 morphTarget2;","\tattribute vec3 morphTarget3;","\t#ifdef USE_MORPHNORMALS","\t\tattribute vec3 morphNormal0;","\t\tattribute vec3 morphNormal1;","\t\tattribute vec3 morphNormal2;","\t\tattribute vec3 morphNormal3;","\t#else","\t\tattribute vec3 morphTarget4;","\t\tattribute vec3 morphTarget5;","\t\tattribute vec3 morphTarget6;","\t\tattribute vec3 morphTarget7;","\t#endif","#endif","#ifdef USE_SKINNING","\tattribute vec4 skinIndex;","\tattribute vec4 skinWeight;","#endif","\n"].filter(Ao).join("\n"),x=[g,Lo(n),"#define SHADER_NAME "+n.shaderName,v,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+d:"",n.envMap?"#define "+f:"",n.envMap?"#define "+p:"",m?"#define CUBEUV_TEXEL_WIDTH "+m.texelWidth:"",m?"#define CUBEUV_TEXEL_HEIGHT "+m.texelHeight:"",m?"#define CUBEUV_MAX_MIP "+m.maxMip+".0":"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.clearcoat?"#define USE_CLEARCOAT":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescence?"#define USE_IRIDESCENCE":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaTest?"#define USE_ALPHATEST":"",n.sheen?"#define USE_SHEEN":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",n.vertexTangents?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUvs2?"#define USE_UV2":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+h:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.useLegacyLights?"#define LEGACY_LIGHTS":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",n.toneMapping!==k?"#define TONE_MAPPING":"",n.toneMapping!==k?Rr.tonemapping_pars_fragment:"",n.toneMapping!==k?Eo("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",n.opaque?"#define OPAQUE":"",Rr.encodings_pars_fragment,So("linearToOutputTexel",n.outputEncoding),n.useDepthPacking?"#define DEPTH_PACKING "+n.depthPacking:"","\n"].filter(Ao).join("\n")),l=ko(l),l=Mo(l,n),l=Co(l,n),c=ko(c),c=Mo(c,n),c=Co(c,n),l=Po(l),c=Po(c),n.isWebGL2&&!0!==n.isRawShaderMaterial&&(w="#version 300 es\n",b=["precision mediump sampler2DArray;","#define attribute in","#define varying out","#define texture2D texture"].join("\n")+"\n"+b,x=["#define varying in",n.glslVersion===Et?"":"layout(location = 0) out highp vec4 pc_fragColor;",n.glslVersion===Et?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join("\n")+"\n"+x);const _=w+x+c,S=xo(i,35633,w+b+l),E=xo(i,35632,_);if(i.attachShader(y,S),i.attachShader(y,E),void 0!==n.index0AttributeName?i.bindAttribLocation(y,0,n.index0AttributeName):!0===n.morphTargets&&i.bindAttribLocation(y,0,"position"),i.linkProgram(y),t.debug.checkShaderErrors){const e=i.getProgramInfoLog(y).trim(),n=i.getShaderInfoLog(S).trim(),r=i.getShaderInfoLog(E).trim();let o=!0,a=!0;if(!1===i.getProgramParameter(y,35714))if(o=!1,"function"==typeof t.debug.onShaderError)t.debug.onShaderError(i,y,S,E);else{const t=_o(i,S,"vertex"),n=_o(i,E,"fragment");console.error("THREE.WebGLProgram: Shader Error "+i.getError()+" - VALIDATE_STATUS "+i.getProgramParameter(y,35715)+"\n\nProgram Info Log: "+e+"\n"+t+"\n"+n)}else""!==e?console.warn("THREE.WebGLProgram: Program Info Log:",e):""!==n&&""!==r||(a=!1);a&&(this.diagnostics={runnable:o,programLog:e,vertexShader:{log:n,prefix:b},fragmentShader:{log:r,prefix:x}})}let A,I;return i.deleteShader(S),i.deleteShader(E),this.getUniforms=function(){return void 0===A&&(A=new bo(i,y)),A},this.getAttributes=function(){return void 0===I&&(I=function(t,e){const n={},r=t.getProgramParameter(e,35721);for(let i=0;i0,$=o.iridescence>0,K=o.sheen>0,Z=o.transmission>0,Q=q&&!!o.clearcoatMap,J=q&&!!o.clearcoatNormalMap,tt=q&&!!o.clearcoatRoughnessMap,et=$&&!!o.iridescenceMap,nt=$&&!!o.iridescenceThicknessMap,rt=K&&!!o.sheenColorMap,it=K&&!!o.sheenRoughnessMap,ot=!!o.specularMap,at=!!o.specularColorMap,st=!!o.specularIntensityMap,ut=Z&&!!o.transmissionMap,lt=Z&&!!o.thicknessMap,ct=!!o.gradientMap,ht=!!o.alphaMap,dt=o.alphaTest>0,ft=!!o.extensions,pt=!!w.attributes.uv2;return{isWebGL2:d,shaderID:A,shaderName:o.type,vertexShader:T,fragmentShader:I,defines:o.defines,customVertexShaderID:N,customFragmentShaderID:P,isRawShaderMaterial:!0===o.isRawShaderMaterial,glslVersion:o.glslVersion,precision:m,instancing:R,instancingColor:R&&null!==b.instanceColor,supportsVertexTextures:p,outputEncoding:null===L?t.outputEncoding:!0===L.isXRRenderTarget?L.texture.encoding:vt,map:D,matcap:z,envMap:F,envMapMode:F&&S.mapping,envMapCubeUVHeight:E,aoMap:U,lightMap:j,bumpMap:V,normalMap:H,displacementMap:p&&G,emissiveMap:W,normalMapObjectSpace:H&&1===o.normalMapType,normalMapTangentSpace:H&&0===o.normalMapType,decodeVideoTexture:D&&!0===o.map.isVideoTexture&&o.map.encoding===yt,metalnessMap:X,roughnessMap:Y,clearcoat:q,clearcoatMap:Q,clearcoatNormalMap:J,clearcoatRoughnessMap:tt,iridescence:$,iridescenceMap:et,iridescenceThicknessMap:nt,sheen:K,sheenColorMap:rt,sheenRoughnessMap:it,specularMap:ot,specularColorMap:at,specularIntensityMap:st,transmission:Z,transmissionMap:ut,thicknessMap:lt,gradientMap:ct,opaque:!1===o.transparent&&1===o.blending,alphaMap:ht,alphaTest:dt,combine:o.combine,mapUv:D&&v(o.map.channel),aoMapUv:U&&v(o.aoMap.channel),lightMapUv:j&&v(o.lightMap.channel),bumpMapUv:V&&v(o.bumpMap.channel),normalMapUv:H&&v(o.normalMap.channel),displacementMapUv:G&&v(o.displacementMap.channel),emissiveMapUv:W&&v(o.emissiveMap.channel),metalnessMapUv:X&&v(o.metalnessMap.channel),roughnessMapUv:Y&&v(o.roughnessMap.channel),clearcoatMapUv:Q&&v(o.clearcoatMap.channel),clearcoatNormalMapUv:J&&v(o.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:tt&&v(o.clearcoatRoughnessMap.channel),iridescenceMapUv:et&&v(o.iridescenceMap.channel),iridescenceThicknessMapUv:nt&&v(o.iridescenceThicknessMap.channel),sheenColorMapUv:rt&&v(o.sheenColorMap.channel),sheenRoughnessMapUv:it&&v(o.sheenRoughnessMap.channel),specularMapUv:ot&&v(o.specularMap.channel),specularColorMapUv:at&&v(o.specularColorMap.channel),specularIntensityMapUv:st&&v(o.specularIntensityMap.channel),transmissionMapUv:ut&&v(o.transmissionMap.channel),thicknessMapUv:lt&&v(o.thicknessMap.channel),alphaMapUv:ht&&v(o.alphaMap.channel),vertexTangents:H&&!!w.attributes.tangent,vertexColors:o.vertexColors,vertexAlphas:!0===o.vertexColors&&!!w.attributes.color&&4===w.attributes.color.itemSize,vertexUvs2:pt,pointsUvs:!0===b.isPoints&&!!w.attributes.uv&&(D||ht),fog:!!x,useFog:!0===o.fog,fogExp2:x&&x.isFogExp2,flatShading:!0===o.flatShading,sizeAttenuation:!0===o.sizeAttenuation,logarithmicDepthBuffer:f,skinning:!0===b.isSkinnedMesh,morphTargets:void 0!==w.morphAttributes.position,morphNormals:void 0!==w.morphAttributes.normal,morphColors:void 0!==w.morphAttributes.color,morphTargetsCount:C,morphTextureStride:O,numDirLights:s.directional.length,numPointLights:s.point.length,numSpotLights:s.spot.length,numSpotLightMaps:s.spotLightMap.length,numRectAreaLights:s.rectArea.length,numHemiLights:s.hemi.length,numDirLightShadows:s.directionalShadowMap.length,numPointLightShadows:s.pointShadowMap.length,numSpotLightShadows:s.spotShadowMap.length,numSpotLightShadowsWithMaps:s.numSpotLightShadowsWithMaps,numClippingPlanes:a.numPlanes,numClipIntersection:a.numIntersection,dithering:o.dithering,shadowMapEnabled:t.shadowMap.enabled&&l.length>0,shadowMapType:t.shadowMap.type,toneMapping:o.toneMapped?t.toneMapping:k,useLegacyLights:t.useLegacyLights,premultipliedAlpha:o.premultipliedAlpha,doubleSided:o.side===h,flipSided:o.side===c,useDepthPacking:o.depthPacking>=0,depthPacking:o.depthPacking||0,index0AttributeName:o.index0AttributeName,extensionDerivatives:ft&&!0===o.extensions.derivatives,extensionFragDepth:ft&&!0===o.extensions.fragDepth,extensionDrawBuffers:ft&&!0===o.extensions.drawBuffers,extensionShaderTextureLOD:ft&&!0===o.extensions.shaderTextureLOD,rendererExtensionFragDepth:d||r.has("EXT_frag_depth"),rendererExtensionDrawBuffers:d||r.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:d||r.has("EXT_shader_texture_lod"),customProgramCacheKey:o.customProgramCacheKey()}},getProgramCacheKey:function(e){const n=[];if(e.shaderID?n.push(e.shaderID):(n.push(e.customVertexShaderID),n.push(e.customFragmentShaderID)),void 0!==e.defines)for(const t in e.defines)n.push(t),n.push(e.defines[t]);return!1===e.isRawShaderMaterial&&(!function(t,e){t.push(e.precision),t.push(e.outputEncoding),t.push(e.envMapMode),t.push(e.envMapCubeUVHeight),t.push(e.mapUv),t.push(e.alphaMapUv),t.push(e.lightMapUv),t.push(e.aoMapUv),t.push(e.bumpMapUv),t.push(e.normalMapUv),t.push(e.displacementMapUv),t.push(e.emissiveMapUv),t.push(e.metalnessMapUv),t.push(e.roughnessMapUv),t.push(e.clearcoatMapUv),t.push(e.clearcoatNormalMapUv),t.push(e.clearcoatRoughnessMapUv),t.push(e.iridescenceMapUv),t.push(e.iridescenceThicknessMapUv),t.push(e.sheenColorMapUv),t.push(e.sheenRoughnessMapUv),t.push(e.specularMapUv),t.push(e.specularColorMapUv),t.push(e.specularIntensityMapUv),t.push(e.transmissionMapUv),t.push(e.thicknessMapUv),t.push(e.combine),t.push(e.fogExp2),t.push(e.sizeAttenuation),t.push(e.morphTargetsCount),t.push(e.morphAttributeCount),t.push(e.numDirLights),t.push(e.numPointLights),t.push(e.numSpotLights),t.push(e.numSpotLightMaps),t.push(e.numHemiLights),t.push(e.numRectAreaLights),t.push(e.numDirLightShadows),t.push(e.numPointLightShadows),t.push(e.numSpotLightShadows),t.push(e.numSpotLightShadowsWithMaps),t.push(e.shadowMapType),t.push(e.toneMapping),t.push(e.numClippingPlanes),t.push(e.numClipIntersection),t.push(e.depthPacking)}(n,e),function(t,e){s.disableAll(),e.isWebGL2&&s.enable(0);e.supportsVertexTextures&&s.enable(1);e.instancing&&s.enable(2);e.instancingColor&&s.enable(3);e.matcap&&s.enable(4);e.envMap&&s.enable(5);e.normalMapObjectSpace&&s.enable(6);e.normalMapTangentSpace&&s.enable(7);e.clearcoat&&s.enable(8);e.iridescence&&s.enable(9);e.alphaTest&&s.enable(10);e.vertexColors&&s.enable(11);e.vertexAlphas&&s.enable(12);e.vertexUvs2&&s.enable(13);e.vertexTangents&&s.enable(14);t.push(s.mask),s.disableAll(),e.fog&&s.enable(0);e.useFog&&s.enable(1);e.flatShading&&s.enable(2);e.logarithmicDepthBuffer&&s.enable(3);e.skinning&&s.enable(4);e.morphTargets&&s.enable(5);e.morphNormals&&s.enable(6);e.morphColors&&s.enable(7);e.premultipliedAlpha&&s.enable(8);e.shadowMapEnabled&&s.enable(9);e.useLegacyLights&&s.enable(10);e.doubleSided&&s.enable(11);e.flipSided&&s.enable(12);e.useDepthPacking&&s.enable(13);e.dithering&&s.enable(14);e.transmission&&s.enable(15);e.sheen&&s.enable(16);e.decodeVideoTexture&&s.enable(17);e.opaque&&s.enable(18);e.pointsUvs&&s.enable(19);t.push(s.mask)}(n,e),n.push(t.outputEncoding)),n.push(e.customProgramCacheKey),n.join()},getUniforms:function(t){const e=g[t.type];let n;if(e){const t=zr[e];n=vr.clone(t.uniforms)}else n=t.uniforms;return n},acquireProgram:function(e,n){let r;for(let t=0,e=l.length;t0?r.push(c):!0===a.transparent?i.push(c):n.push(c)},unshift:function(t,e,a,s,u,l){const c=o(t,e,a,s,u,l);a.transmission>0?r.unshift(c):!0===a.transparent?i.unshift(c):n.unshift(c)},finish:function(){for(let n=e,r=t.length;n1&&n.sort(t||jo),r.length>1&&r.sort(e||Vo),i.length>1&&i.sort(e||Vo)}}}function Go(){let t=new WeakMap;return{get:function(e,n){const r=t.get(e);let i;return void 0===r?(i=new Ho,t.set(e,[i])):n>=r.length?(i=new Ho,r.push(i)):i=r[n],i},dispose:function(){t=new WeakMap}}}function Wo(){const t={};return{get:function(e){if(void 0!==t[e.id])return t[e.id];let n;switch(e.type){case"DirectionalLight":n={direction:new ce,color:new Nn};break;case"SpotLight":n={position:new ce,direction:new ce,color:new Nn,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new ce,color:new Nn,distance:0,decay:0};break;case"HemisphereLight":n={direction:new ce,skyColor:new Nn,groundColor:new Nn};break;case"RectAreaLight":n={color:new Nn,position:new ce,halfWidth:new ce,halfHeight:new ce}}return t[e.id]=n,n}}}let Xo=0;function Yo(t,e){return(e.castShadow?2:0)-(t.castShadow?2:0)+(e.map?1:0)-(t.map?1:0)}function qo(t,e){const n=new Wo,r=function(){const t={};return{get:function(e){if(void 0!==t[e.id])return t[e.id];let n;switch(e.type){case"DirectionalLight":case"SpotLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new jt};break;case"PointLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new jt,shadowCameraNear:1,shadowCameraFar:1e3}}return t[e.id]=n,n}}}(),i={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0};for(let t=0;t<9;t++)i.probe.push(new ce);const o=new ce,a=new Ue,s=new Ue;return{setup:function(o,a){let s=0,u=0,l=0;for(let t=0;t<9;t++)i.probe[t].set(0,0,0);let c=0,h=0,d=0,f=0,p=0,m=0,g=0,v=0,y=0,b=0;o.sort(Yo);const x=!0===a?Math.PI:1;for(let t=0,e=o.length;t0&&(e.isWebGL2||!0===t.has("OES_texture_float_linear")?(i.rectAreaLTC1=Dr.LTC_FLOAT_1,i.rectAreaLTC2=Dr.LTC_FLOAT_2):!0===t.has("OES_texture_half_float_linear")?(i.rectAreaLTC1=Dr.LTC_HALF_1,i.rectAreaLTC2=Dr.LTC_HALF_2):console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),i.ambient[0]=s,i.ambient[1]=u,i.ambient[2]=l;const w=i.hash;w.directionalLength===c&&w.pointLength===h&&w.spotLength===d&&w.rectAreaLength===f&&w.hemiLength===p&&w.numDirectionalShadows===m&&w.numPointShadows===g&&w.numSpotShadows===v&&w.numSpotMaps===y||(i.directional.length=c,i.spot.length=d,i.rectArea.length=f,i.point.length=h,i.hemi.length=p,i.directionalShadow.length=m,i.directionalShadowMap.length=m,i.pointShadow.length=g,i.pointShadowMap.length=g,i.spotShadow.length=v,i.spotShadowMap.length=v,i.directionalShadowMatrix.length=m,i.pointShadowMatrix.length=g,i.spotLightMatrix.length=v+y-b,i.spotLightMap.length=y,i.numSpotLightShadowsWithMaps=b,w.directionalLength=c,w.pointLength=h,w.spotLength=d,w.rectAreaLength=f,w.hemiLength=p,w.numDirectionalShadows=m,w.numPointShadows=g,w.numSpotShadows=v,w.numSpotMaps=y,i.version=Xo++)},setupView:function(t,e){let n=0,r=0,u=0,l=0,c=0;const h=e.matrixWorldInverse;for(let e=0,d=t.length;e=o.length?(a=new $o(t,e),o.push(a)):a=o[i],a},dispose:function(){n=new WeakMap}}}class Zo extends Mn{constructor(t){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=3200,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(t)}copy(t){return super.copy(t),this.depthPacking=t.depthPacking,this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this}}class Qo extends Mn{constructor(t){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(t)}copy(t){return super.copy(t),this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this}}function Jo(t,e,n){let r=new Nr;const i=new jt,o=new jt,s=new oe,d=new Zo({depthPacking:3201}),f=new Qo,p={},m=n.maxTextureSize,g={[l]:c,[c]:l,[h]:h},v=new yr({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new jt},radius:{value:4}},vertexShader:"void main() {\n\tgl_Position = vec4( position, 1.0 );\n}",fragmentShader:"uniform sampler2D shadow_pass;\nuniform vec2 resolution;\nuniform float radius;\n#include \nvoid main() {\n\tconst float samples = float( VSM_SAMPLES );\n\tfloat mean = 0.0;\n\tfloat squared_mean = 0.0;\n\tfloat uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 );\n\tfloat uvStart = samples <= 1.0 ? 0.0 : - 1.0;\n\tfor ( float i = 0.0; i < samples; i ++ ) {\n\t\tfloat uvOffset = uvStart + i * uvStride;\n\t\t#ifdef HORIZONTAL_PASS\n\t\t\tvec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) );\n\t\t\tmean += distribution.x;\n\t\t\tsquared_mean += distribution.y * distribution.y + distribution.x * distribution.x;\n\t\t#else\n\t\t\tfloat depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) );\n\t\t\tmean += depth;\n\t\t\tsquared_mean += depth * depth;\n\t\t#endif\n\t}\n\tmean = mean / samples;\n\tsquared_mean = squared_mean / samples;\n\tfloat std_dev = sqrt( squared_mean - mean * mean );\n\tgl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );\n}"}),y=v.clone();y.defines.HORIZONTAL_PASS=1;const b=new Yn;b.setAttribute("position",new Dn(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const x=new hr(b,v),w=this;function _(n,r){const o=e.update(x);v.defines.VSM_SAMPLES!==n.blurSamples&&(v.defines.VSM_SAMPLES=n.blurSamples,y.defines.VSM_SAMPLES=n.blurSamples,v.needsUpdate=!0,y.needsUpdate=!0),null===n.mapPass&&(n.mapPass=new ae(i.x,i.y)),v.uniforms.shadow_pass.value=n.map.texture,v.uniforms.resolution.value=n.mapSize,v.uniforms.radius.value=n.radius,t.setRenderTarget(n.mapPass),t.clear(),t.renderBufferDirect(r,null,o,v,x,null),y.uniforms.shadow_pass.value=n.mapPass.texture,y.uniforms.resolution.value=n.mapSize,y.uniforms.radius.value=n.radius,t.setRenderTarget(n.map),t.clear(),t.renderBufferDirect(r,null,o,y,x,null)}function S(e,n,r,i){let o=null;const a=!0===r.isPointLight?e.customDistanceMaterial:e.customDepthMaterial;if(void 0!==a)o=a;else if(o=!0===r.isPointLight?f:d,t.localClippingEnabled&&!0===n.clipShadows&&Array.isArray(n.clippingPlanes)&&0!==n.clippingPlanes.length||n.displacementMap&&0!==n.displacementScale||n.alphaMap&&n.alphaTest>0||n.map&&n.alphaTest>0){const t=o.uuid,e=n.uuid;let r=p[t];void 0===r&&(r={},p[t]=r);let i=r[e];void 0===i&&(i=o.clone(),r[e]=i),o=i}if(o.visible=n.visible,o.wireframe=n.wireframe,o.side=i===u?null!==n.shadowSide?n.shadowSide:n.side:null!==n.shadowSide?n.shadowSide:g[n.side],o.alphaMap=n.alphaMap,o.alphaTest=n.alphaTest,o.map=n.map,o.clipShadows=n.clipShadows,o.clippingPlanes=n.clippingPlanes,o.clipIntersection=n.clipIntersection,o.displacementMap=n.displacementMap,o.displacementScale=n.displacementScale,o.displacementBias=n.displacementBias,o.wireframeLinewidth=n.wireframeLinewidth,o.linewidth=n.linewidth,!0===r.isPointLight&&!0===o.isMeshDistanceMaterial){t.properties.get(o).light=r}return o}function E(n,i,o,a,s){if(!1===n.visible)return;if(n.layers.test(i.layers)&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&s===u)&&(!n.frustumCulled||r.intersectsObject(n))){n.modelViewMatrix.multiplyMatrices(o.matrixWorldInverse,n.matrixWorld);const r=e.update(n),i=n.material;if(Array.isArray(i)){const e=r.groups;for(let u=0,l=e.length;um||i.y>m)&&(i.x>m&&(o.x=Math.floor(m/f.x),i.x=o.x*f.x,h.mapSize.x=o.x),i.y>m&&(o.y=Math.floor(m/f.y),i.y=o.y*f.y,h.mapSize.y=o.y)),null===h.map){const t=this.type!==u?{minFilter:H,magFilter:H}:{};h.map=new ae(i.x,i.y,t),h.map.texture.name=c.name+".shadowMap",h.camera.updateProjectionMatrix()}t.setRenderTarget(h.map),t.clear();const p=h.getViewportCount();for(let t=0;t=1):-1!==Y.indexOf("OpenGL ES")&&(X=parseFloat(/^OpenGL ES (\d)/.exec(Y)[1]),W=X>=2);let q=null,$={};const K=t.getParameter(3088),Z=t.getParameter(2978),Q=(new oe).fromArray(K),J=(new oe).fromArray(Z);function tt(e,n,r){const i=new Uint8Array(4),o=t.createTexture();t.bindTexture(e,o),t.texParameteri(e,10241,9728),t.texParameteri(e,10240,9728);for(let e=0;er||t.height>r)&&(i=r/Math.max(t.width,t.height)),i<1||!0===e){if("undefined"!=typeof HTMLImageElement&&t instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap){const r=e?zt:Math.floor,o=r(i*t.width),a=r(i*t.height);void 0===m&&(m=y(o,a));const s=n?y(o,a):m;s.width=o,s.height=a;return s.getContext("2d").drawImage(t,0,0,o,a),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+t.width+"x"+t.height+") to ("+o+"x"+a+")."),s}return"data"in t&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+t.width+"x"+t.height+")."),t}return t}function x(t){return Rt(t.width)&&Rt(t.height)}function w(t,e){return t.generateMipmaps&&e&&t.minFilter!==H&&t.minFilter!==X}function _(e){t.generateMipmap(e)}function S(n,r,i,o,a=!1){if(!1===s)return r;if(null!==n){if(void 0!==t[n])return t[n];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+n+"'")}let u=r;return 6403===r&&(5126===i&&(u=33326),5131===i&&(u=33325),5121===i&&(u=33321)),33319===r&&(5126===i&&(u=33328),5131===i&&(u=33327),5121===i&&(u=33323)),6408===r&&(5126===i&&(u=34836),5131===i&&(u=34842),5121===i&&(u=o===yt&&!1===a?35907:32856),32819===i&&(u=32854),32820===i&&(u=32855)),33325!==u&&33326!==u&&33327!==u&&33328!==u&&34842!==u&&34836!==u||e.get("EXT_color_buffer_float"),u}function E(t,e,n){return!0===w(t,n)||t.isFramebufferTexture&&t.minFilter!==H&&t.minFilter!==X?Math.log2(Math.max(e.width,e.height))+1:void 0!==t.mipmaps&&t.mipmaps.length>0?t.mipmaps.length:t.isCompressedTexture&&Array.isArray(t.image)?e.mipmaps.length:1}function A(t){return t===H||t===G||t===W?9728:9729}function M(t){const e=t.target;e.removeEventListener("dispose",M),function(t){const e=r.get(t);if(void 0===e.__webglInit)return;const n=t.source,i=g.get(n);if(i){const r=i[e.__cacheKey];r.usedTimes--,0===r.usedTimes&&T(t),0===Object.keys(i).length&&g.delete(n)}r.remove(t)}(e),e.isVideoTexture&&p.delete(e)}function C(e){const n=e.target;n.removeEventListener("dispose",C),function(e){const n=e.texture,i=r.get(e),o=r.get(n);void 0!==o.__webglTexture&&(t.deleteTexture(o.__webglTexture),a.memory.textures--);e.depthTexture&&e.depthTexture.dispose();if(e.isWebGLCubeRenderTarget)for(let e=0;e<6;e++)t.deleteFramebuffer(i.__webglFramebuffer[e]),i.__webglDepthbuffer&&t.deleteRenderbuffer(i.__webglDepthbuffer[e]);else{if(t.deleteFramebuffer(i.__webglFramebuffer),i.__webglDepthbuffer&&t.deleteRenderbuffer(i.__webglDepthbuffer),i.__webglMultisampledFramebuffer&&t.deleteFramebuffer(i.__webglMultisampledFramebuffer),i.__webglColorRenderbuffer)for(let e=0;e0&&i.__version!==t.version){const n=t.image;if(null===n)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else{if(!1!==n.complete)return void R(i,t,e);console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete")}}n.bindTexture(3553,i.__webglTexture,33984+e)}const N={[U]:10497,[j]:33071,[V]:33648},P={[H]:9728,[G]:9984,[W]:9986,[X]:9729,[Y]:9985,[q]:9987};function O(n,o,a){if(a?(t.texParameteri(n,10242,N[o.wrapS]),t.texParameteri(n,10243,N[o.wrapT]),32879!==n&&35866!==n||t.texParameteri(n,32882,N[o.wrapR]),t.texParameteri(n,10240,P[o.magFilter]),t.texParameteri(n,10241,P[o.minFilter])):(t.texParameteri(n,10242,33071),t.texParameteri(n,10243,33071),32879!==n&&35866!==n||t.texParameteri(n,32882,33071),o.wrapS===j&&o.wrapT===j||console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),t.texParameteri(n,10240,A(o.magFilter)),t.texParameteri(n,10241,A(o.minFilter)),o.minFilter!==H&&o.minFilter!==X&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),!0===e.has("EXT_texture_filter_anisotropic")){const a=e.get("EXT_texture_filter_anisotropic");if(o.magFilter===H)return;if(o.minFilter!==W&&o.minFilter!==q)return;if(o.type===Z&&!1===e.has("OES_texture_float_linear"))return;if(!1===s&&o.type===Q&&!1===e.has("OES_texture_half_float_linear"))return;(o.anisotropy>1||r.get(o).__currentAnisotropy)&&(t.texParameterf(n,a.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(o.anisotropy,i.getMaxAnisotropy())),r.get(o).__currentAnisotropy=o.anisotropy)}}function L(e,n){let r=!1;void 0===e.__webglInit&&(e.__webglInit=!0,n.addEventListener("dispose",M));const i=n.source;let o=g.get(i);void 0===o&&(o={},g.set(i,o));const s=function(t){const e=[];return e.push(t.wrapS),e.push(t.wrapT),e.push(t.wrapR||0),e.push(t.magFilter),e.push(t.minFilter),e.push(t.anisotropy),e.push(t.internalFormat),e.push(t.format),e.push(t.type),e.push(t.generateMipmaps),e.push(t.premultiplyAlpha),e.push(t.flipY),e.push(t.unpackAlignment),e.push(t.encoding),e.join()}(n);if(s!==e.__cacheKey){void 0===o[s]&&(o[s]={texture:t.createTexture(),usedTimes:0},a.memory.textures++,r=!0),o[s].usedTimes++;const i=o[e.__cacheKey];void 0!==i&&(o[e.__cacheKey].usedTimes--,0===i.usedTimes&&T(n)),e.__cacheKey=s,e.__webglTexture=o[s].texture}return r}function R(e,i,a){let u=3553;(i.isDataArrayTexture||i.isCompressedArrayTexture)&&(u=35866),i.isData3DTexture&&(u=32879);const l=L(e,i),h=i.source;n.bindTexture(u,e.__webglTexture,33984+a);const d=r.get(h);if(h.version!==d.__version||!0===l){n.activeTexture(33984+a),t.pixelStorei(37440,i.flipY),t.pixelStorei(37441,i.premultiplyAlpha),t.pixelStorei(3317,i.unpackAlignment),t.pixelStorei(37443,0);const e=function(t){return!s&&(t.wrapS!==j||t.wrapT!==j||t.minFilter!==H&&t.minFilter!==X)}(i)&&!1===x(i.image);let r=b(i.image,e,!1,c);r=it(i,r);const f=x(r)||s,p=o.convert(i.format,i.encoding);let m,g=o.convert(i.type),v=S(i.internalFormat,p,g,i.encoding,i.isVideoTexture);O(u,i,f);const y=i.mipmaps,A=s&&!0!==i.isVideoTexture,M=void 0===d.__version||!0===l,C=E(i,r,f);if(i.isDepthTexture)v=6402,s?v=i.type===Z?36012:i.type===K?33190:i.type===J?35056:33189:i.type===Z&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),i.format===et&&6402===v&&1012!==i.type&&i.type!==K&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),i.type=K,g=o.convert(i.type)),i.format===nt&&6402===v&&(v=34041,i.type!==J&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),i.type=J,g=o.convert(i.type))),M&&(A?n.texStorage2D(3553,1,v,r.width,r.height):n.texImage2D(3553,0,v,r.width,r.height,0,p,g,null));else if(i.isDataTexture)if(y.length>0&&f){A&&M&&n.texStorage2D(3553,C,v,y[0].width,y[0].height);for(let t=0,e=y.length;t>=1,e>>=1}}else if(y.length>0&&f){A&&M&&n.texStorage2D(3553,C,v,y[0].width,y[0].height);for(let t=0,e=y.length;t=34069&&u<=34074)&&t.framebufferTexture2D(36160,s,u,r.get(a).__webglTexture,0),n.bindFramebuffer(36160,null)}function z(e,n,r){if(t.bindRenderbuffer(36161,e),n.depthBuffer&&!n.stencilBuffer){let i=33189;if(r||rt(n)){const e=n.depthTexture;e&&e.isDepthTexture&&(e.type===Z?i=36012:e.type===K&&(i=33190));const r=B(n);rt(n)?d.renderbufferStorageMultisampleEXT(36161,r,i,n.width,n.height):t.renderbufferStorageMultisample(36161,r,i,n.width,n.height)}else t.renderbufferStorage(36161,i,n.width,n.height);t.framebufferRenderbuffer(36160,36096,36161,e)}else if(n.depthBuffer&&n.stencilBuffer){const i=B(n);r&&!1===rt(n)?t.renderbufferStorageMultisample(36161,i,35056,n.width,n.height):rt(n)?d.renderbufferStorageMultisampleEXT(36161,i,35056,n.width,n.height):t.renderbufferStorage(36161,34041,n.width,n.height),t.framebufferRenderbuffer(36160,33306,36161,e)}else{const e=!0===n.isWebGLMultipleRenderTargets?n.texture:[n.texture];for(let i=0;i0&&!0===e.has("WEBGL_multisampled_render_to_texture")&&!1!==n.__useRenderToTexture}function it(t,n){const r=t.encoding,i=t.format,o=t.type;return!0===t.isCompressedTexture||!0===t.isVideoTexture||t.format===At||r!==vt&&(r===yt?!1===s?!0===e.has("EXT_sRGB")&&i===tt?(t.format=At,t.minFilter=X,t.generateMipmaps=!1):n=te.sRGBToLinear(n):i===tt&&o===$||console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture encoding:",r)),n}this.allocateTextureUnit=function(){const t=k;return t>=u&&console.warn("THREE.WebGLTextures: Trying to use "+t+" texture units while this GPU supports only "+u),k+=1,t},this.resetTextureUnits=function(){k=0},this.setTexture2D=I,this.setTexture2DArray=function(t,e){const i=r.get(t);t.version>0&&i.__version!==t.version?R(i,t,e):n.bindTexture(35866,i.__webglTexture,33984+e)},this.setTexture3D=function(t,e){const i=r.get(t);t.version>0&&i.__version!==t.version?R(i,t,e):n.bindTexture(32879,i.__webglTexture,33984+e)},this.setTextureCube=function(e,i){const a=r.get(e);e.version>0&&a.__version!==e.version?function(e,i,a){if(6!==i.image.length)return;const u=L(e,i),c=i.source;n.bindTexture(34067,e.__webglTexture,33984+a);const h=r.get(c);if(c.version!==h.__version||!0===u){n.activeTexture(33984+a),t.pixelStorei(37440,i.flipY),t.pixelStorei(37441,i.premultiplyAlpha),t.pixelStorei(3317,i.unpackAlignment),t.pixelStorei(37443,0);const e=i.isCompressedTexture||i.image[0].isCompressedTexture,r=i.image[0]&&i.image[0].isDataTexture,d=[];for(let t=0;t<6;t++)d[t]=e||r?r?i.image[t].image:i.image[t]:b(i.image[t],!1,!0,l),d[t]=it(i,d[t]);const f=d[0],p=x(f)||s,m=o.convert(i.format,i.encoding),g=o.convert(i.type),v=S(i.internalFormat,m,g,i.encoding),y=s&&!0!==i.isVideoTexture,A=void 0===h.__version||!0===u;let M,C=E(i,f,p);if(O(34067,i,p),e){y&&A&&n.texStorage2D(34067,C,v,f.width,f.height);for(let t=0;t<6;t++){M=d[t].mipmaps;for(let e=0;e0&&C++,n.texStorage2D(34067,C,v,d[0].width,d[0].height));for(let t=0;t<6;t++)if(r){y?n.texSubImage2D(34069+t,0,0,0,d[t].width,d[t].height,m,g,d[t].data):n.texImage2D(34069+t,0,v,d[t].width,d[t].height,0,m,g,d[t].data);for(let e=0;e0&&!1===rt(e)){const r=d?u:[u];l.__webglMultisampledFramebuffer=t.createFramebuffer(),l.__webglColorRenderbuffer=[],n.bindFramebuffer(36160,l.__webglMultisampledFramebuffer);for(let n=0;n0&&!1===rt(e)){const i=e.isWebGLMultipleRenderTargets?e.texture:[e.texture],o=e.width,a=e.height;let s=16384;const u=[],l=e.stencilBuffer?33306:36096,c=r.get(e),h=!0===e.isWebGLMultipleRenderTargets;if(h)for(let e=0;es+l?(u.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:t.handedness,target:this})):!u.inputState.pinching&&a<=s-l&&(u.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:t.handedness,target:this}))}else null!==s&&t.gripSpace&&(i=e.getPose(t.gripSpace,n),null!==i&&(s.matrix.fromArray(i.transform.matrix),s.matrix.decompose(s.position,s.rotation,s.scale),i.linearVelocity?(s.hasLinearVelocity=!0,s.linearVelocity.copy(i.linearVelocity)):s.hasLinearVelocity=!1,i.angularVelocity?(s.hasAngularVelocity=!0,s.angularVelocity.copy(i.angularVelocity)):s.hasAngularVelocity=!1));null!==a&&(r=e.getPose(t.targetRaySpace,n),null===r&&null!==i&&(r=i),null!==r&&(a.matrix.fromArray(r.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale),r.linearVelocity?(a.hasLinearVelocity=!0,a.linearVelocity.copy(r.linearVelocity)):a.hasLinearVelocity=!1,r.angularVelocity?(a.hasAngularVelocity=!0,a.angularVelocity.copy(r.angularVelocity)):a.hasAngularVelocity=!1,this.dispatchEvent(oa)))}return null!==a&&(a.visible=null!==r),null!==s&&(s.visible=null!==i),null!==u&&(u.visible=null!==o),this}_getHandJoint(t,e){if(void 0===t.joints[e.jointName]){const n=new ia;n.matrixAutoUpdate=!1,n.visible=!1,t.joints[e.jointName]=n,t.add(n)}return t.joints[e.jointName]}}class sa extends ie{constructor(t,e,n,r,i,o,a,s,u,l){if((l=void 0!==l?l:et)!==et&&l!==nt)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");void 0===n&&l===et&&(n=K),void 0===n&&l===nt&&(n=J),super(null,r,i,o,a,s,l,n,u),this.isDepthTexture=!0,this.image={width:t,height:e},this.magFilter=void 0!==a?a:H,this.minFilter=void 0!==s?s:H,this.flipY=!1,this.generateMipmaps=!1}}class ua extends Mt{constructor(t,e){super();const n=this;let r=null,i=1,o=null,a="local-floor",s=1,u=null,l=null,c=null,h=null,d=null,f=null;const p=e.getContextAttributes();let m=null,g=null;const v=[],y=[],b=new Set,x=new Map,w=new xr;w.layers.enable(1),w.viewport=new oe;const _=new xr;_.layers.enable(2),_.viewport=new oe;const S=[w,_],E=new ra;E.layers.enable(1),E.layers.enable(2);let A=null,M=null;function C(t){const e=y.indexOf(t.inputSource);if(-1===e)return;const n=v[e];void 0!==n&&n.dispatchEvent({type:t.type,data:t.inputSource})}function T(){r.removeEventListener("select",C),r.removeEventListener("selectstart",C),r.removeEventListener("selectend",C),r.removeEventListener("squeeze",C),r.removeEventListener("squeezestart",C),r.removeEventListener("squeezeend",C),r.removeEventListener("end",T),r.removeEventListener("inputsourceschange",k);for(let t=0;t=0&&(y[r]=null,v[r].disconnect(n))}for(let e=0;e=y.length){y.push(n),r=t;break}if(null===y[t]){y[t]=n,r=t;break}}if(-1===r)break}const i=v[r];i&&i.connect(n)}}this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(t){let e=v[t];return void 0===e&&(e=new aa,v[t]=e),e.getTargetRaySpace()},this.getControllerGrip=function(t){let e=v[t];return void 0===e&&(e=new aa,v[t]=e),e.getGripSpace()},this.getHand=function(t){let e=v[t];return void 0===e&&(e=new aa,v[t]=e),e.getHandSpace()},this.setFramebufferScaleFactor=function(t){i=t,!0===n.isPresenting&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(t){a=t,!0===n.isPresenting&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return u||o},this.setReferenceSpace=function(t){u=t},this.getBaseLayer=function(){return null!==h?h:d},this.getBinding=function(){return c},this.getFrame=function(){return f},this.getSession=function(){return r},this.setSession=async function(l){if(r=l,null!==r){if(m=t.getRenderTarget(),r.addEventListener("select",C),r.addEventListener("selectstart",C),r.addEventListener("selectend",C),r.addEventListener("squeeze",C),r.addEventListener("squeezestart",C),r.addEventListener("squeezeend",C),r.addEventListener("end",T),r.addEventListener("inputsourceschange",k),!0!==p.xrCompatible&&await e.makeXRCompatible(),void 0===r.renderState.layers||!1===t.capabilities.isWebGL2){const n={antialias:void 0!==r.renderState.layers||p.antialias,alpha:p.alpha,depth:p.depth,stencil:p.stencil,framebufferScaleFactor:i};d=new XRWebGLLayer(r,e,n),r.updateRenderState({baseLayer:d}),g=new ae(d.framebufferWidth,d.framebufferHeight,{format:tt,type:$,encoding:t.outputEncoding,stencilBuffer:p.stencil})}else{let n=null,o=null,a=null;p.depth&&(a=p.stencil?35056:33190,n=p.stencil?nt:et,o=p.stencil?J:K);const s={colorFormat:32856,depthFormat:a,scaleFactor:i};c=new XRWebGLBinding(r,e),h=c.createProjectionLayer(s),r.updateRenderState({layers:[h]}),g=new ae(h.textureWidth,h.textureHeight,{format:tt,type:$,depthTexture:new sa(h.textureWidth,h.textureHeight,o,void 0,void 0,void 0,void 0,void 0,void 0,n),stencilBuffer:p.stencil,encoding:t.outputEncoding,samples:p.antialias?4:0});t.properties.get(g).__ignoreDepthValues=h.ignoreDepthValues}g.isXRRenderTarget=!0,this.setFoveation(s),u=null,o=await r.requestReferenceSpace(a),L.setContext(r),L.start(),n.isPresenting=!0,n.dispatchEvent({type:"sessionstart"})}};const I=new ce,N=new ce;function P(t,e){null===e?t.matrixWorld.copy(t.matrix):t.matrixWorld.multiplyMatrices(e.matrixWorld,t.matrix),t.matrixWorldInverse.copy(t.matrixWorld).invert()}this.updateCamera=function(t){if(null===r)return;E.near=_.near=w.near=t.near,E.far=_.far=w.far=t.far,A===E.near&&M===E.far||(r.updateRenderState({depthNear:E.near,depthFar:E.far}),A=E.near,M=E.far);const e=t.parent,n=E.cameras;P(E,e);for(let t=0;te&&(x.set(t,t.lastChangedTime),n.dispatchEvent({type:"planechanged",data:t}))}else b.add(t),x.set(t,r.lastChangedTime),n.dispatchEvent({type:"planeadded",data:t})}f=null})),this.setAnimationLoop=function(t){O=t},this.dispose=function(){}}}function la(t,e){function n(t,e){!0===t.matrixAutoUpdate&&t.updateMatrix(),e.value.copy(t.matrix)}function r(r,i){r.opacity.value=i.opacity,i.color&&r.diffuse.value.copy(i.color),i.emissive&&r.emissive.value.copy(i.emissive).multiplyScalar(i.emissiveIntensity),i.map&&(r.map.value=i.map,n(i.map,r.mapTransform)),i.alphaMap&&(r.alphaMap.value=i.alphaMap,n(i.alphaMap,r.alphaMapTransform)),i.bumpMap&&(r.bumpMap.value=i.bumpMap,n(i.bumpMap,r.bumpMapTransform),r.bumpScale.value=i.bumpScale,i.side===c&&(r.bumpScale.value*=-1)),i.normalMap&&(r.normalMap.value=i.normalMap,n(i.normalMap,r.normalMapTransform),r.normalScale.value.copy(i.normalScale),i.side===c&&r.normalScale.value.negate()),i.displacementMap&&(r.displacementMap.value=i.displacementMap,n(i.displacementMap,r.displacementMapTransform),r.displacementScale.value=i.displacementScale,r.displacementBias.value=i.displacementBias),i.emissiveMap&&(r.emissiveMap.value=i.emissiveMap,n(i.emissiveMap,r.emissiveMapTransform)),i.specularMap&&(r.specularMap.value=i.specularMap,n(i.specularMap,r.specularMapTransform)),i.alphaTest>0&&(r.alphaTest.value=i.alphaTest);const o=e.get(i).envMap;if(o&&(r.envMap.value=o,r.flipEnvMap.value=o.isCubeTexture&&!1===o.isRenderTargetTexture?-1:1,r.reflectivity.value=i.reflectivity,r.ior.value=i.ior,r.refractionRatio.value=i.refractionRatio),i.lightMap){r.lightMap.value=i.lightMap;const e=!0===t.useLegacyLights?Math.PI:1;r.lightMapIntensity.value=i.lightMapIntensity*e,n(i.lightMap,r.lightMapTransform)}i.aoMap&&(r.aoMap.value=i.aoMap,r.aoMapIntensity.value=i.aoMapIntensity,n(i.aoMap,r.aoMapTransform))}return{refreshFogUniforms:function(e,n){n.color.getRGB(e.fogColor.value,gr(t)),n.isFog?(e.fogNear.value=n.near,e.fogFar.value=n.far):n.isFogExp2&&(e.fogDensity.value=n.density)},refreshMaterialUniforms:function(t,i,o,a,s){i.isMeshBasicMaterial||i.isMeshLambertMaterial?r(t,i):i.isMeshToonMaterial?(r(t,i),function(t,e){e.gradientMap&&(t.gradientMap.value=e.gradientMap)}(t,i)):i.isMeshPhongMaterial?(r(t,i),function(t,e){t.specular.value.copy(e.specular),t.shininess.value=Math.max(e.shininess,1e-4)}(t,i)):i.isMeshStandardMaterial?(r(t,i),function(t,r){t.metalness.value=r.metalness,r.metalnessMap&&(t.metalnessMap.value=r.metalnessMap,n(r.metalnessMap,t.metalnessMapTransform));t.roughness.value=r.roughness,r.roughnessMap&&(t.roughnessMap.value=r.roughnessMap,n(r.roughnessMap,t.roughnessMapTransform));const i=e.get(r).envMap;i&&(t.envMapIntensity.value=r.envMapIntensity)}(t,i),i.isMeshPhysicalMaterial&&function(t,e,r){t.ior.value=e.ior,e.sheen>0&&(t.sheenColor.value.copy(e.sheenColor).multiplyScalar(e.sheen),t.sheenRoughness.value=e.sheenRoughness,e.sheenColorMap&&(t.sheenColorMap.value=e.sheenColorMap,n(e.sheenColorMap,t.sheenColorMapTransform)),e.sheenRoughnessMap&&(t.sheenRoughnessMap.value=e.sheenRoughnessMap,n(e.sheenRoughnessMap,t.sheenRoughnessMapTransform)));e.clearcoat>0&&(t.clearcoat.value=e.clearcoat,t.clearcoatRoughness.value=e.clearcoatRoughness,e.clearcoatMap&&(t.clearcoatMap.value=e.clearcoatMap,n(e.clearcoatMap,t.clearcoatMapTransform)),e.clearcoatRoughnessMap&&(t.clearcoatRoughnessMap.value=e.clearcoatRoughnessMap,n(e.clearcoatRoughnessMap,t.clearcoatRoughnessMapTransform)),e.clearcoatNormalMap&&(t.clearcoatNormalMap.value=e.clearcoatNormalMap,n(e.clearcoatNormalMap,t.clearcoatNormalMapTransform),t.clearcoatNormalScale.value.copy(e.clearcoatNormalScale),e.side===c&&t.clearcoatNormalScale.value.negate()));e.iridescence>0&&(t.iridescence.value=e.iridescence,t.iridescenceIOR.value=e.iridescenceIOR,t.iridescenceThicknessMinimum.value=e.iridescenceThicknessRange[0],t.iridescenceThicknessMaximum.value=e.iridescenceThicknessRange[1],e.iridescenceMap&&(t.iridescenceMap.value=e.iridescenceMap,n(e.iridescenceMap,t.iridescenceMapTransform)),e.iridescenceThicknessMap&&(t.iridescenceThicknessMap.value=e.iridescenceThicknessMap,n(e.iridescenceThicknessMap,t.iridescenceThicknessMapTransform)));e.transmission>0&&(t.transmission.value=e.transmission,t.transmissionSamplerMap.value=r.texture,t.transmissionSamplerSize.value.set(r.width,r.height),e.transmissionMap&&(t.transmissionMap.value=e.transmissionMap,n(e.transmissionMap,t.transmissionMapTransform)),t.thickness.value=e.thickness,e.thicknessMap&&(t.thicknessMap.value=e.thicknessMap,n(e.thicknessMap,t.thicknessMapTransform)),t.attenuationDistance.value=e.attenuationDistance,t.attenuationColor.value.copy(e.attenuationColor));t.specularIntensity.value=e.specularIntensity,t.specularColor.value.copy(e.specularColor),e.specularColorMap&&(t.specularColorMap.value=e.specularColorMap,n(e.specularColorMap,t.specularColorMapTransform));e.specularIntensityMap&&(t.specularIntensityMap.value=e.specularIntensityMap,n(e.specularIntensityMap,t.specularIntensityMapTransform))}(t,i,s)):i.isMeshMatcapMaterial?(r(t,i),function(t,e){e.matcap&&(t.matcap.value=e.matcap)}(t,i)):i.isMeshDepthMaterial?r(t,i):i.isMeshDistanceMaterial?(r(t,i),function(t,n){const r=e.get(n).light;t.referencePosition.value.setFromMatrixPosition(r.matrixWorld),t.nearDistance.value=r.shadow.camera.near,t.farDistance.value=r.shadow.camera.far}(t,i)):i.isMeshNormalMaterial?r(t,i):i.isLineBasicMaterial?(function(t,e){t.diffuse.value.copy(e.color),t.opacity.value=e.opacity,e.map&&(t.map.value=e.map,n(e.map,t.mapTransform))}(t,i),i.isLineDashedMaterial&&function(t,e){t.dashSize.value=e.dashSize,t.totalSize.value=e.dashSize+e.gapSize,t.scale.value=e.scale}(t,i)):i.isPointsMaterial?function(t,e,r,i){t.diffuse.value.copy(e.color),t.opacity.value=e.opacity,t.size.value=e.size*r,t.scale.value=.5*i,e.map&&(t.map.value=e.map,n(e.map,t.uvTransform));e.alphaMap&&(t.alphaMap.value=e.alphaMap);e.alphaTest>0&&(t.alphaTest.value=e.alphaTest)}(t,i,o,a):i.isSpriteMaterial?function(t,e){t.diffuse.value.copy(e.color),t.opacity.value=e.opacity,t.rotation.value=e.rotation,e.map&&(t.map.value=e.map,n(e.map,t.mapTransform));e.alphaMap&&(t.alphaMap.value=e.alphaMap);e.alphaTest>0&&(t.alphaTest.value=e.alphaTest)}(t,i):i.isShadowMaterial?(t.color.value.copy(i.color),t.opacity.value=i.opacity):i.isShaderMaterial&&(i.uniformsNeedUpdate=!1)}}}function ca(t,e,n,r){let i={},o={},a=[];const s=n.isWebGL2?t.getParameter(35375):0;function u(t,e,n){const r=t.value;if(void 0===n[e]){if("number"==typeof r)n[e]=r;else{const t=Array.isArray(r)?r:[r],i=[];for(let e=0;e0){i=n%r;0!==i&&r-i-a.boundary<0&&(n+=r-i,o.__offset=n)}n+=a.storage}i=n%r,i>0&&(n+=r-i);t.__size=n,t.__cache={}}(n),d=function(e){const n=function(){for(let t=0;t0&&function(t,e,n,r){if(null===V){const t=K.isWebGL2;V=new ae(1024,1024,{generateMipmaps:!0,type:Y.has("EXT_color_buffer_half_float")?Q:$,minFilter:q,samples:t&&!0===s?4:0})}const i=x.getRenderTarget();x.setRenderTarget(V),x.clear();const o=x.toneMapping;x.toneMapping=k,zt(t,n,r),rt.updateMultisampleRenderTarget(V),rt.updateRenderTargetMipmap(V);let a=!1;for(let t=0,i=e.length;t0&&zt(i,e,n),o.length>0&&zt(o,e,n),a.length>0&&zt(a,e,n),J.buffers.depth.setTest(!0),J.buffers.depth.setMask(!0),J.buffers.color.setMask(!0),J.setPolygonOffset(!1)}function zt(t,e,n){const r=!0===e.isScene?e.overrideMaterial:null;for(let i=0,o=t.length;i0?b[b.length-1]:null,y.pop(),g=y.length>0?y[y.length-1]:null},this.getActiveCubeFace=function(){return _},this.getActiveMipmapLevel=function(){return S},this.getRenderTarget=function(){return E},this.setRenderTargetTextures=function(t,e,n){nt.get(t.texture).__webglTexture=e,nt.get(t.depthTexture).__webglTexture=n;const r=nt.get(t);r.__hasExternalTextures=!0,r.__hasExternalTextures&&(r.__autoAllocateDepthBuffer=void 0===n,r.__autoAllocateDepthBuffer||!0===Y.has("WEBGL_multisampled_render_to_texture")&&(console.warn("THREE.WebGLRenderer: Render-to-texture extension was disabled because an external texture was provided"),r.__useRenderToTexture=!1))},this.setRenderTargetFramebuffer=function(t,e){const n=nt.get(t);n.__webglFramebuffer=e,n.__useDefaultFramebuffer=void 0===e},this.setRenderTarget=function(t,e=0,n=0){E=t,_=e,S=n;let r=!0,i=null,o=!1,a=!1;if(t){const n=nt.get(t);void 0!==n.__useDefaultFramebuffer?(J.bindFramebuffer(36160,null),r=!1):void 0===n.__webglFramebuffer?rt.setupRenderTarget(t):n.__hasExternalTextures&&rt.rebindTextures(t,nt.get(t.texture).__webglTexture,nt.get(t.depthTexture).__webglTexture);const s=t.texture;(s.isData3DTexture||s.isDataArrayTexture||s.isCompressedArrayTexture)&&(a=!0);const u=nt.get(t).__webglFramebuffer;t.isWebGLCubeRenderTarget?(i=u[e],o=!0):i=K.isWebGL2&&t.samples>0&&!1===rt.useMultisampledRTT(t)?nt.get(t).__webglMultisampledFramebuffer:u,C.copy(t.viewport),T.copy(t.scissor),I=t.scissorTest}else C.copy(D).multiplyScalar(O).floor(),T.copy(z).multiplyScalar(O).floor(),I=F;if(J.bindFramebuffer(36160,i)&&K.drawBuffers&&r&&J.drawBuffers(t,i),J.viewport(C),J.scissor(T),J.setScissorTest(I),o){const r=nt.get(t.texture);St.framebufferTexture2D(36160,36064,34069+e,r.__webglTexture,n)}else if(a){const r=nt.get(t.texture),i=e||0;St.framebufferTextureLayer(36160,36064,r.__webglTexture,n||0,i)}A=-1},this.readRenderTargetPixels=function(t,e,n,r,i,o,a){if(!t||!t.isWebGLRenderTarget)return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let s=nt.get(t).__webglFramebuffer;if(t.isWebGLCubeRenderTarget&&void 0!==a&&(s=s[a]),s){J.bindFramebuffer(36160,s);try{const a=t.texture,s=a.format,u=a.type;if(s!==tt&&xt.convert(s)!==St.getParameter(35739))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");const l=u===Q&&(Y.has("EXT_color_buffer_half_float")||K.isWebGL2&&Y.has("EXT_color_buffer_float"));if(!(u===$||xt.convert(u)===St.getParameter(35738)||u===Z&&(K.isWebGL2||Y.has("OES_texture_float")||Y.has("WEBGL_color_buffer_float"))||l))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");e>=0&&e<=t.width-r&&n>=0&&n<=t.height-i&&St.readPixels(e,n,r,i,xt.convert(s),xt.convert(u),o)}finally{const t=null!==E?nt.get(E).__webglFramebuffer:null;J.bindFramebuffer(36160,t)}}},this.copyFramebufferToTexture=function(t,e,n=0){const r=Math.pow(2,-n),i=Math.floor(e.image.width*r),o=Math.floor(e.image.height*r);rt.setTexture2D(e,0),St.copyTexSubImage2D(3553,n,0,0,t.x,t.y,i,o),J.unbindTexture()},this.copyTextureToTexture=function(t,e,n,r=0){const i=e.image.width,o=e.image.height,a=xt.convert(n.format),s=xt.convert(n.type);rt.setTexture2D(n,0),St.pixelStorei(37440,n.flipY),St.pixelStorei(37441,n.premultiplyAlpha),St.pixelStorei(3317,n.unpackAlignment),e.isDataTexture?St.texSubImage2D(3553,r,t.x,t.y,i,o,a,s,e.image.data):e.isCompressedTexture?St.compressedTexSubImage2D(3553,r,t.x,t.y,e.mipmaps[0].width,e.mipmaps[0].height,a,e.mipmaps[0].data):St.texSubImage2D(3553,r,t.x,t.y,a,s,e.image),0===r&&n.generateMipmaps&&St.generateMipmap(3553),J.unbindTexture()},this.copyTextureToTexture3D=function(t,e,n,r,i=0){if(x.isWebGL1Renderer)return void console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");const o=t.max.x-t.min.x+1,a=t.max.y-t.min.y+1,s=t.max.z-t.min.z+1,u=xt.convert(r.format),l=xt.convert(r.type);let c;if(r.isData3DTexture)rt.setTexture3D(r,0),c=32879;else{if(!r.isDataArrayTexture)return void console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");rt.setTexture2DArray(r,0),c=35866}St.pixelStorei(37440,r.flipY),St.pixelStorei(37441,r.premultiplyAlpha),St.pixelStorei(3317,r.unpackAlignment);const h=St.getParameter(3314),d=St.getParameter(32878),f=St.getParameter(3316),p=St.getParameter(3315),m=St.getParameter(32877),g=n.isCompressedTexture?n.mipmaps[0]:n.image;St.pixelStorei(3314,g.width),St.pixelStorei(32878,g.height),St.pixelStorei(3316,t.min.x),St.pixelStorei(3315,t.min.y),St.pixelStorei(32877,t.min.z),n.isDataTexture||n.isData3DTexture?St.texSubImage3D(c,i,e.x,e.y,e.z,o,a,s,u,l,g.data):n.isCompressedArrayTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),St.compressedTexSubImage3D(c,i,e.x,e.y,e.z,o,a,s,u,g.data)):St.texSubImage3D(c,i,e.x,e.y,e.z,o,a,s,u,l,g),St.pixelStorei(3314,h),St.pixelStorei(32878,d),St.pixelStorei(3316,f),St.pixelStorei(3315,p),St.pixelStorei(32877,m),0===i&&r.generateMipmaps&&St.generateMipmap(c),J.unbindTexture()},this.initTexture=function(t){t.isCubeTexture?rt.setTextureCube(t,0):t.isData3DTexture?rt.setTexture3D(t,0):t.isDataArrayTexture||t.isCompressedArrayTexture?rt.setTexture2DArray(t,0):rt.setTexture2D(t,0),J.unbindTexture()},this.resetState=function(){_=0,S=0,E=null,J.reset(),wt.reset()},"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get physicallyCorrectLights(){return console.warn("THREE.WebGLRenderer: the property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead."),!this.useLegacyLights}set physicallyCorrectLights(t){console.warn("THREE.WebGLRenderer: the property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead."),this.useLegacyLights=!t}}(class extends da{}).prototype.isWebGL1Renderer=!0;class fa extends dn{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.overrideMaterial=null,"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(t,e){return super.copy(t,e),null!==t.background&&(this.background=t.background.clone()),null!==t.environment&&(this.environment=t.environment.clone()),null!==t.fog&&(this.fog=t.fog.clone()),this.backgroundBlurriness=t.backgroundBlurriness,this.backgroundIntensity=t.backgroundIntensity,null!==t.overrideMaterial&&(this.overrideMaterial=t.overrideMaterial.clone()),this.matrixAutoUpdate=t.matrixAutoUpdate,this}toJSON(t){const e=super.toJSON(t);return null!==this.fog&&(e.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(e.object.backgroundBlurriness=this.backgroundBlurriness),1!==this.backgroundIntensity&&(e.object.backgroundIntensity=this.backgroundIntensity),e}get autoUpdate(){return console.warn("THREE.Scene: autoUpdate was renamed to matrixWorldAutoUpdate in r144."),this.matrixWorldAutoUpdate}set autoUpdate(t){console.warn("THREE.Scene: autoUpdate was renamed to matrixWorldAutoUpdate in r144."),this.matrixWorldAutoUpdate=t}}class pa{constructor(t,e){this.isInterleavedBuffer=!0,this.array=t,this.stride=e,this.count=void 0!==t?t.length/e:0,this.usage=St,this.updateRange={offset:0,count:-1},this.version=0,this.uuid=Nt()}onUploadCallback(){}set needsUpdate(t){!0===t&&this.version++}setUsage(t){return this.usage=t,this}copy(t){return this.array=new t.array.constructor(t.array),this.count=t.count,this.stride=t.stride,this.usage=t.usage,this}copyAt(t,e,n){t*=this.stride,n*=e.stride;for(let r=0,i=this.stride;rt.far||e.push({distance:s,point:ba.clone(),uv:En.getInterpolation(ba,Aa,Ma,Ca,Ta,ka,Ia,new jt),face:null,object:this})}copy(t,e){return super.copy(t,e),void 0!==t.center&&this.center.copy(t.center),this.material=t.material,this}}function Pa(t,e,n,r,i,o){_a.subVectors(t,n).addScalar(.5).multiply(r),void 0!==i?(Sa.x=o*_a.x-i*_a.y,Sa.y=i*_a.x+o*_a.y):Sa.copy(_a),t.copy(e),t.x+=Sa.x,t.y+=Sa.y,t.applyMatrix4(Ea)}const Oa=new ce,La=new oe,Ra=new oe,Da=new ce,za=new Ue,Fa=new ce;class Ba extends hr{constructor(t,e){super(t,e),this.isSkinnedMesh=!0,this.type="SkinnedMesh",this.bindMode="attached",this.bindMatrix=new Ue,this.bindMatrixInverse=new Ue,this.boundingBox=null,this.boundingSphere=null}computeBoundingBox(){const t=this.geometry;null===this.boundingBox&&(this.boundingBox=new fe),this.boundingBox.makeEmpty();const e=t.getAttribute("position");for(let t=0;ts)continue;h.applyMatrix4(this.matrixWorld);const o=t.ray.origin.distanceTo(h);ot.far||e.push({distance:o,point:c.clone().applyMatrix4(this.matrixWorld),index:n,face:null,faceIndex:null,object:this})}}else{for(let n=Math.max(0,o.start),r=Math.min(p.count,o.start+o.count)-1;ns)continue;h.applyMatrix4(this.matrixWorld);const r=t.ray.origin.distanceTo(h);rt.far||e.push({distance:r,point:c.clone().applyMatrix4(this.matrixWorld),index:n,face:null,faceIndex:null,object:this})}}}updateMorphTargets(){const t=this.geometry.morphAttributes,e=Object.keys(t);if(e.length>0){const n=t[e[0]];if(void 0!==n){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let t=0,e=n.length;t0){const n=t[e[0]];if(void 0!==n){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let t=0,e=n.length;ti.far)return;o.push({distance:u,distanceToRay:Math.sqrt(s),point:n,index:e,face:null,object:a})}}class ys extends ie{constructor(t,e,n,r,i,o,a,s,u){super(t,e,n,r,i,o,a,s,u),this.isCanvasTexture=!0,this.needsUpdate=!0}}class bs{constructor(){this.type="Curve",this.arcLengthDivisions=200}getPoint(){return console.warn("THREE.Curve: .getPoint() not implemented."),null}getPointAt(t,e){const n=this.getUtoTmapping(t);return this.getPoint(n,e)}getPoints(t=5){const e=[];for(let n=0;n<=t;n++)e.push(this.getPoint(n/t));return e}getSpacedPoints(t=5){const e=[];for(let n=0;n<=t;n++)e.push(this.getPointAt(n/t));return e}getLength(){const t=this.getLengths();return t[t.length-1]}getLengths(t=this.arcLengthDivisions){if(this.cacheArcLengths&&this.cacheArcLengths.length===t+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;const e=[];let n,r=this.getPoint(0),i=0;e.push(0);for(let o=1;o<=t;o++)n=this.getPoint(o/t),i+=n.distanceTo(r),e.push(i),r=n;return this.cacheArcLengths=e,e}updateArcLengths(){this.needsUpdate=!0,this.getLengths()}getUtoTmapping(t,e){const n=this.getLengths();let r=0;const i=n.length;let o;o=e||t*n[i-1];let a,s=0,u=i-1;for(;s<=u;)if(r=Math.floor(s+(u-s)/2),a=n[r]-o,a<0)s=r+1;else{if(!(a>0)){u=r;break}u=r-1}if(r=u,n[r]===o)return r/(i-1);const l=n[r];return(r+(o-l)/(n[r+1]-l))/(i-1)}getTangent(t,e){const n=1e-4;let r=t-n,i=t+n;r<0&&(r=0),i>1&&(i=1);const o=this.getPoint(r),a=this.getPoint(i),s=e||(o.isVector2?new jt:new ce);return s.copy(a).sub(o).normalize(),s}getTangentAt(t,e){const n=this.getUtoTmapping(t);return this.getTangent(n,e)}computeFrenetFrames(t,e){const n=new ce,r=[],i=[],o=[],a=new ce,s=new Ue;for(let e=0;e<=t;e++){const n=e/t;r[e]=this.getTangentAt(n,new ce)}i[0]=new ce,o[0]=new ce;let u=Number.MAX_VALUE;const l=Math.abs(r[0].x),c=Math.abs(r[0].y),h=Math.abs(r[0].z);l<=u&&(u=l,n.set(1,0,0)),c<=u&&(u=c,n.set(0,1,0)),h<=u&&n.set(0,0,1),a.crossVectors(r[0],n).normalize(),i[0].crossVectors(r[0],a),o[0].crossVectors(r[0],i[0]);for(let e=1;e<=t;e++){if(i[e]=i[e-1].clone(),o[e]=o[e-1].clone(),a.crossVectors(r[e-1],r[e]),a.length()>Number.EPSILON){a.normalize();const t=Math.acos(Pt(r[e-1].dot(r[e]),-1,1));i[e].applyMatrix4(s.makeRotationAxis(a,t))}o[e].crossVectors(r[e],i[e])}if(!0===e){let e=Math.acos(Pt(i[0].dot(i[t]),-1,1));e/=t,r[0].dot(a.crossVectors(i[0],i[t]))>0&&(e=-e);for(let n=1;n<=t;n++)i[n].applyMatrix4(s.makeRotationAxis(r[n],e*n)),o[n].crossVectors(r[n],i[n])}return{tangents:r,normals:i,binormals:o}}clone(){return(new this.constructor).copy(this)}copy(t){return this.arcLengthDivisions=t.arcLengthDivisions,this}toJSON(){const t={metadata:{version:4.5,type:"Curve",generator:"Curve.toJSON"}};return t.arcLengthDivisions=this.arcLengthDivisions,t.type=this.type,t}fromJSON(t){return this.arcLengthDivisions=t.arcLengthDivisions,this}}class xs extends bs{constructor(t=0,e=0,n=1,r=1,i=0,o=2*Math.PI,a=!1,s=0){super(),this.isEllipseCurve=!0,this.type="EllipseCurve",this.aX=t,this.aY=e,this.xRadius=n,this.yRadius=r,this.aStartAngle=i,this.aEndAngle=o,this.aClockwise=a,this.aRotation=s}getPoint(t,e){const n=e||new jt,r=2*Math.PI;let i=this.aEndAngle-this.aStartAngle;const o=Math.abs(i)r;)i-=r;ir.length-2?r.length-1:o+1],c=r[o>r.length-3?r.length-1:o+2];return n.set(Cs(a,s.x,u.x,l.x,c.x),Cs(a,s.y,u.y,l.y,c.y)),n}copy(t){super.copy(t),this.points=[];for(let e=0,n=t.points.length;e0?0:(Math.floor(Math.abs(u)/i)+1)*i:0===l&&u===i-1&&(u=i-2,l=1),this.closed||u>0?a=r[(u-1)%i]:(Ss.subVectors(r[0],r[1]).add(r[0]),a=Ss);const c=r[u%i],h=r[(u+1)%i];if(this.closed||u+2=n){const t=r[i]-n,o=this.curves[i],a=o.getLength(),s=0===a?0:1-t/a;return o.getPointAt(s,e)}i++}return null}getLength(){const t=this.getCurveLengths();return t[t.length-1]}updateArcLengths(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}getCurveLengths(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;const t=[];let e=0;for(let n=0,r=this.curves.length;n1&&!e[e.length-1].equals(e[0])&&e.push(e[0]),e}copy(t){super.copy(t),this.curves=[];for(let e=0,n=t.curves.length;e0){const t=u.getPoint(0);t.equals(this.currentPoint)||this.lineTo(t.x,t.y)}this.curves.push(u);const l=u.getPoint(1);return this.currentPoint.copy(l),this}copy(t){return super.copy(t),this.currentPoint.copy(t.currentPoint),this}toJSON(){const t=super.toJSON();return t.currentPoint=this.currentPoint.toArray(),t}fromJSON(t){return super.fromJSON(t),this.currentPoint.fromArray(t.currentPoint),this}}class Fs extends zs{constructor(t){super(t),this.uuid=Nt(),this.type="Shape",this.holes=[]}getPointsHoles(t){const e=[];for(let n=0,r=this.holes.length;n80*n){s=l=t[0],u=c=t[1];for(let e=n;el&&(l=h),d>c&&(c=d);f=Math.max(l-s,c-u),f=0!==f?32767/f:0}return Vs(o,a,n,s,u,f,0),a};function Us(t,e,n,r,i){let o,a;if(i===function(t,e,n,r){let i=0;for(let o=e,a=n-r;o0)for(o=e;o=e;o-=r)a=su(o,t[o],t[o+1],a);return a&&eu(a,a.next)&&(uu(a),a=a.next),a}function js(t,e){if(!t)return t;e||(e=t);let n,r=t;do{if(n=!1,r.steiner||!eu(r,r.next)&&0!==tu(r.prev,r,r.next))r=r.next;else{if(uu(r),r=e=r.prev,r===r.next)break;n=!0}}while(n||r!==e);return e}function Vs(t,e,n,r,i,o,a){if(!t)return;!a&&o&&function(t,e,n,r){let i=t;do{0===i.z&&(i.z=Ks(i.x,i.y,e,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){let e,n,r,i,o,a,s,u,l=1;do{for(n=t,t=null,o=null,a=0;n;){for(a++,r=n,s=0,e=0;e0||u>0&&r;)0!==s&&(0===u||!r||n.z<=r.z)?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,u--),o?o.nextZ=i:t=i,i.prevZ=o,o=i;n=r}o.nextZ=null,l*=2}while(a>1)}(i)}(t,r,i,o);let s,u,l=t;for(;t.prev!==t.next;)if(s=t.prev,u=t.next,o?Gs(t,r,i,o):Hs(t))e.push(s.i/n|0),e.push(t.i/n|0),e.push(u.i/n|0),uu(t),t=u.next,l=u.next;else if((t=u)===l){a?1===a?Vs(t=Ws(js(t),e,n),e,n,r,i,o,2):2===a&&Xs(t,e,n,r,i,o):Vs(js(t),e,n,r,i,o,1);break}}function Hs(t){const e=t.prev,n=t,r=t.next;if(tu(e,n,r)>=0)return!1;const i=e.x,o=n.x,a=r.x,s=e.y,u=n.y,l=r.y,c=io?i>a?i:a:o>a?o:a,f=s>u?s>l?s:l:u>l?u:l;let p=r.next;for(;p!==e;){if(p.x>=c&&p.x<=d&&p.y>=h&&p.y<=f&&Qs(i,s,o,u,a,l,p.x,p.y)&&tu(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function Gs(t,e,n,r){const i=t.prev,o=t,a=t.next;if(tu(i,o,a)>=0)return!1;const s=i.x,u=o.x,l=a.x,c=i.y,h=o.y,d=a.y,f=su?s>l?s:l:u>l?u:l,g=c>h?c>d?c:d:h>d?h:d,v=Ks(f,p,e,n,r),y=Ks(m,g,e,n,r);let b=t.prevZ,x=t.nextZ;for(;b&&b.z>=v&&x&&x.z<=y;){if(b.x>=f&&b.x<=m&&b.y>=p&&b.y<=g&&b!==i&&b!==a&&Qs(s,c,u,h,l,d,b.x,b.y)&&tu(b.prev,b,b.next)>=0)return!1;if(b=b.prevZ,x.x>=f&&x.x<=m&&x.y>=p&&x.y<=g&&x!==i&&x!==a&&Qs(s,c,u,h,l,d,x.x,x.y)&&tu(x.prev,x,x.next)>=0)return!1;x=x.nextZ}for(;b&&b.z>=v;){if(b.x>=f&&b.x<=m&&b.y>=p&&b.y<=g&&b!==i&&b!==a&&Qs(s,c,u,h,l,d,b.x,b.y)&&tu(b.prev,b,b.next)>=0)return!1;b=b.prevZ}for(;x&&x.z<=y;){if(x.x>=f&&x.x<=m&&x.y>=p&&x.y<=g&&x!==i&&x!==a&&Qs(s,c,u,h,l,d,x.x,x.y)&&tu(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}function Ws(t,e,n){let r=t;do{const i=r.prev,o=r.next.next;!eu(i,o)&&nu(i,r,r.next,o)&&ou(i,o)&&ou(o,i)&&(e.push(i.i/n|0),e.push(r.i/n|0),e.push(o.i/n|0),uu(r),uu(r.next),r=t=o),r=r.next}while(r!==t);return js(r)}function Xs(t,e,n,r,i,o){let a=t;do{let t=a.next.next;for(;t!==a.prev;){if(a.i!==t.i&&Js(a,t)){let s=au(a,t);return a=js(a,a.next),s=js(s,s.next),Vs(a,e,n,r,i,o,0),void Vs(s,e,n,r,i,o,0)}t=t.next}a=a.next}while(a!==t)}function Ys(t,e){return t.x-e.x}function qs(t,e){const n=function(t,e){let n,r=e,i=-1/0;const o=t.x,a=t.y;do{if(a<=r.y&&a>=r.next.y&&r.next.y!==r.y){const t=r.x+(a-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(t<=o&&t>i&&(i=t,n=r.x=r.x&&r.x>=u&&o!==r.x&&Qs(an.x||r.x===n.x&&$s(n,r)))&&(n=r,h=c)),r=r.next}while(r!==s);return n}(t,e);if(!n)return e;const r=au(n,t);return js(r,r.next),js(n,n.next)}function $s(t,e){return tu(t.prev,t,e.prev)<0&&tu(e.next,t,t.next)<0}function Ks(t,e,n,r,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-n)*i|0)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-r)*i|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function Zs(t){let e=t,n=t;do{(e.x=(t-a)*(o-s)&&(t-a)*(r-s)>=(n-a)*(e-s)&&(n-a)*(o-s)>=(i-a)*(r-s)}function Js(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){let n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&nu(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(ou(t,e)&&ou(e,t)&&function(t,e){let n=t,r=!1;const i=(t.x+e.x)/2,o=(t.y+e.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==t);return r}(t,e)&&(tu(t.prev,t,e.prev)||tu(t,e.prev,e))||eu(t,e)&&tu(t.prev,t,t.next)>0&&tu(e.prev,e,e.next)>0)}function tu(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function eu(t,e){return t.x===e.x&&t.y===e.y}function nu(t,e,n,r){const i=iu(tu(t,e,n)),o=iu(tu(t,e,r)),a=iu(tu(n,r,t)),s=iu(tu(n,r,e));return i!==o&&a!==s||(!(0!==i||!ru(t,n,e))||(!(0!==o||!ru(t,r,e))||(!(0!==a||!ru(n,t,r))||!(0!==s||!ru(n,e,r)))))}function ru(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function iu(t){return t>0?1:t<0?-1:0}function ou(t,e){return tu(t.prev,t,t.next)<0?tu(t,e,t.next)>=0&&tu(t,t.prev,e)>=0:tu(t,e,t.prev)<0||tu(t,t.next,e)<0}function au(t,e){const n=new lu(t.i,t.x,t.y),r=new lu(e.i,e.x,e.y),i=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function su(t,e,n,r){const i=new lu(t,e,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function uu(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function lu(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}class cu{static area(t){const e=t.length;let n=0;for(let r=e-1,i=0;i2&&t[e-1].equals(t[0])&&t.pop()}function du(t,e){for(let n=0;nNumber.EPSILON){const h=Math.sqrt(c),d=Math.sqrt(u*u+l*l),f=e.x-s/h,p=e.y+a/h,m=((n.x-l/d-f)*l-(n.y+u/d-p)*u)/(a*l-s*u);r=f+a*m-t.x,i=p+s*m-t.y;const g=r*r+i*i;if(g<=2)return new jt(r,i);o=Math.sqrt(g/2)}else{let t=!1;a>Number.EPSILON?u>Number.EPSILON&&(t=!0):a<-Number.EPSILON?u<-Number.EPSILON&&(t=!0):Math.sign(s)===Math.sign(l)&&(t=!0),t?(r=-s,i=a,o=Math.sqrt(c)):(r=a,i=s,o=Math.sqrt(c/2))}return new jt(r/o,i/o)}const N=[];for(let t=0,e=M.length,n=e-1,r=t+1;t=0;t--){const e=t/f,n=c*Math.cos(e*Math.PI/2),r=h*Math.sin(e*Math.PI/2)+d;for(let t=0,e=M.length;t=0;){const r=n;let i=n-1;i<0&&(i=t.length-1);for(let t=0,n=s+2*f;t0)&&d.push(e,i,u),(t!==n-1||s0!=t>0&&this.version++,this._sheen=t}get clearcoat(){return this._clearcoat}set clearcoat(t){this._clearcoat>0!=t>0&&this.version++,this._clearcoat=t}get iridescence(){return this._iridescence}set iridescence(t){this._iridescence>0!=t>0&&this.version++,this._iridescence=t}get transmission(){return this._transmission}set transmission(t){this._transmission>0!=t>0&&this.version++,this._transmission=t}copy(t){return super.copy(t),this.defines={STANDARD:"",PHYSICAL:""},this.clearcoat=t.clearcoat,this.clearcoatMap=t.clearcoatMap,this.clearcoatRoughness=t.clearcoatRoughness,this.clearcoatRoughnessMap=t.clearcoatRoughnessMap,this.clearcoatNormalMap=t.clearcoatNormalMap,this.clearcoatNormalScale.copy(t.clearcoatNormalScale),this.ior=t.ior,this.iridescence=t.iridescence,this.iridescenceMap=t.iridescenceMap,this.iridescenceIOR=t.iridescenceIOR,this.iridescenceThicknessRange=[...t.iridescenceThicknessRange],this.iridescenceThicknessMap=t.iridescenceThicknessMap,this.sheen=t.sheen,this.sheenColor.copy(t.sheenColor),this.sheenColorMap=t.sheenColorMap,this.sheenRoughness=t.sheenRoughness,this.sheenRoughnessMap=t.sheenRoughnessMap,this.transmission=t.transmission,this.transmissionMap=t.transmissionMap,this.thickness=t.thickness,this.thicknessMap=t.thicknessMap,this.attenuationDistance=t.attenuationDistance,this.attenuationColor.copy(t.attenuationColor),this.specularIntensity=t.specularIntensity,this.specularIntensityMap=t.specularIntensityMap,this.specularColor.copy(t.specularColor),this.specularColorMap=t.specularColorMap,this}}function bu(t,e,n){return wu(t)?new t.constructor(t.subarray(e,void 0!==n?n:t.length)):t.slice(e,n)}function xu(t,e,n){return!t||!n&&t.constructor===e?t:"number"==typeof e.BYTES_PER_ELEMENT?new e(t):Array.prototype.slice.call(t)}function wu(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function _u(t){const e=t.length,n=new Array(e);for(let t=0;t!==e;++t)n[t]=t;return n.sort((function(e,n){return t[e]-t[n]})),n}function Su(t,e,n){const r=t.length,i=new t.constructor(r);for(let o=0,a=0;a!==r;++o){const r=n[o]*e;for(let n=0;n!==e;++n)i[a++]=t[r+n]}return i}function Eu(t,e,n,r){let i=1,o=t[0];for(;void 0!==o&&void 0===o[r];)o=t[i++];if(void 0===o)return;let a=o[r];if(void 0!==a)if(Array.isArray(a))do{a=o[r],void 0!==a&&(e.push(o.time),n.push.apply(n,a)),o=t[i++]}while(void 0!==o);else if(void 0!==a.toArray)do{a=o[r],void 0!==a&&(e.push(o.time),a.toArray(n,n.length)),o=t[i++]}while(void 0!==o);else do{a=o[r],void 0!==a&&(e.push(o.time),n.push(a)),o=t[i++]}while(void 0!==o)}class Au{constructor(t,e,n,r){this.parameterPositions=t,this._cachedIndex=0,this.resultBuffer=void 0!==r?r:new e.constructor(n),this.sampleValues=e,this.valueSize=n,this.settings=null,this.DefaultSettings_={}}evaluate(t){const e=this.parameterPositions;let n=this._cachedIndex,r=e[n],i=e[n-1];t:{e:{let o;n:{r:if(!(t=i)break t;{const a=e[1];t=i)break e}o=n,n=0}}for(;n>>1;te;)--o;if(++o,0!==i||o!==r){i>=o&&(o=Math.max(o,1),i=o-1);const t=this.getValueSize();this.times=bu(n,i,o),this.values=bu(this.values,i*t,o*t)}return this}validate(){let t=!0;const e=this.getValueSize();e-Math.floor(e)!=0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),t=!1);const n=this.times,r=this.values,i=n.length;0===i&&(console.error("THREE.KeyframeTrack: Track is empty.",this),t=!1);let o=null;for(let e=0;e!==i;e++){const r=n[e];if("number"==typeof r&&isNaN(r)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,e,r),t=!1;break}if(null!==o&&o>r){console.error("THREE.KeyframeTrack: Out of order keys.",this,e,r,o),t=!1;break}o=r}if(void 0!==r&&wu(r))for(let e=0,n=r.length;e!==n;++e){const n=r[e];if(isNaN(n)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,e,n),t=!1;break}}return t}optimize(){const t=bu(this.times),e=bu(this.values),n=this.getValueSize(),r=this.getInterpolation()===ct,i=t.length-1;let o=1;for(let a=1;a0){t[o]=t[i];for(let t=i*n,r=o*n,a=0;a!==n;++a)e[r+a]=e[t+a];++o}return o!==t.length?(this.times=bu(t,0,o),this.values=bu(e,0,o*n)):(this.times=t,this.values=e),this}clone(){const t=bu(this.times,0),e=bu(this.values,0),n=new(0,this.constructor)(this.name,t,e);return n.createInterpolant=this.createInterpolant,n}}ku.prototype.TimeBufferType=Float32Array,ku.prototype.ValueBufferType=Float32Array,ku.prototype.DefaultInterpolation=lt;class Iu extends ku{}Iu.prototype.ValueTypeName="bool",Iu.prototype.ValueBufferType=Array,Iu.prototype.DefaultInterpolation=ut,Iu.prototype.InterpolantFactoryMethodLinear=void 0,Iu.prototype.InterpolantFactoryMethodSmooth=void 0;class Nu extends ku{}Nu.prototype.ValueTypeName="color";class Pu extends ku{}Pu.prototype.ValueTypeName="number";class Ou extends Au{constructor(t,e,n,r){super(t,e,n,r)}interpolate_(t,e,n,r){const i=this.resultBuffer,o=this.sampleValues,a=this.valueSize,s=(n-e)/(r-e);let u=t*a;for(let t=u+a;u!==t;u+=4)le.slerpFlat(i,0,o,u-a,o,u,s);return i}}class Lu extends ku{InterpolantFactoryMethodLinear(t){return new Ou(this.times,this.values,this.getValueSize(),t)}}Lu.prototype.ValueTypeName="quaternion",Lu.prototype.DefaultInterpolation=lt,Lu.prototype.InterpolantFactoryMethodSmooth=void 0;class Ru extends ku{}Ru.prototype.ValueTypeName="string",Ru.prototype.ValueBufferType=Array,Ru.prototype.DefaultInterpolation=ut,Ru.prototype.InterpolantFactoryMethodLinear=void 0,Ru.prototype.InterpolantFactoryMethodSmooth=void 0;class Du extends ku{}Du.prototype.ValueTypeName="vector";class zu{constructor(t,e=-1,n,r=2500){this.name=t,this.tracks=n,this.duration=e,this.blendMode=r,this.uuid=Nt(),this.duration<0&&this.resetDuration()}static parse(t){const e=[],n=t.tracks,r=1/(t.fps||1);for(let t=0,i=n.length;t!==i;++t)e.push(Fu(n[t]).scale(r));const i=new this(t.name,t.duration,e,t.blendMode);return i.uuid=t.uuid,i}static toJSON(t){const e=[],n=t.tracks,r={name:t.name,duration:t.duration,tracks:e,uuid:t.uuid,blendMode:t.blendMode};for(let t=0,r=n.length;t!==r;++t)e.push(ku.toJSON(n[t]));return r}static CreateFromMorphTargetSequence(t,e,n,r){const i=e.length,o=[];for(let t=0;t1){const t=o[1];let e=r[t];e||(r[t]=e=[]),e.push(n)}}const o=[];for(const t in r)o.push(this.CreateFromMorphTargetSequence(t,r[t],e,n));return o}static parseAnimation(t,e){if(!t)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const n=function(t,e,n,r,i){if(0!==n.length){const o=[],a=[];Eu(n,o,a,r),0!==o.length&&i.push(new t(e,o,a))}},r=[],i=t.name||"default",o=t.fps||30,a=t.blendMode;let s=t.length||-1;const u=t.hierarchy||[];for(let t=0;t{e&&e(i),this.manager.itemEnd(t)}),0),i;if(void 0!==Hu[t])return void Hu[t].push({onLoad:e,onProgress:n,onError:r});Hu[t]=[],Hu[t].push({onLoad:e,onProgress:n,onError:r});const o=new Request(t,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),a=this.mimeType,s=this.responseType;fetch(o).then((e=>{if(200===e.status||0===e.status){if(0===e.status&&console.warn("THREE.FileLoader: HTTP Status 0 received."),"undefined"==typeof ReadableStream||void 0===e.body||void 0===e.body.getReader)return e;const n=Hu[t],r=e.body.getReader(),i=e.headers.get("Content-Length")||e.headers.get("X-File-Size"),o=i?parseInt(i):0,a=0!==o;let s=0;const u=new ReadableStream({start(t){!function e(){r.read().then((({done:r,value:i})=>{if(r)t.close();else{s+=i.byteLength;const r=new ProgressEvent("progress",{lengthComputable:a,loaded:s,total:o});for(let t=0,e=n.length;t{switch(s){case"arraybuffer":return t.arrayBuffer();case"blob":return t.blob();case"document":return t.text().then((t=>(new DOMParser).parseFromString(t,a)));case"json":return t.json();default:if(void 0===a)return t.text();{const e=/charset="?([^;"\s]*)"?/i.exec(a),n=e&&e[1]?e[1].toLowerCase():void 0,r=new TextDecoder(n);return t.arrayBuffer().then((t=>r.decode(t)))}}})).then((e=>{Bu.add(t,e);const n=Hu[t];delete Hu[t];for(let t=0,r=n.length;t{const n=Hu[t];if(void 0===n)throw this.manager.itemError(t),e;delete Hu[t];for(let t=0,r=n.length;t{this.manager.itemEnd(t)})),this.manager.itemStart(t)}setResponseType(t){return this.responseType=t,this}setMimeType(t){return this.mimeType=t,this}}class Xu extends Vu{constructor(t){super(t)}load(t,e,n,r){void 0!==this.path&&(t=this.path+t),t=this.manager.resolveURL(t);const i=this,o=Bu.get(t);if(void 0!==o)return i.manager.itemStart(t),setTimeout((function(){e&&e(o),i.manager.itemEnd(t)}),0),o;const a=Wt("img");function s(){l(),Bu.add(t,this),e&&e(this),i.manager.itemEnd(t)}function u(e){l(),r&&r(e),i.manager.itemError(t),i.manager.itemEnd(t)}function l(){a.removeEventListener("load",s,!1),a.removeEventListener("error",u,!1)}return a.addEventListener("load",s,!1),a.addEventListener("error",u,!1),"data:"!==t.slice(0,5)&&void 0!==this.crossOrigin&&(a.crossOrigin=this.crossOrigin),i.manager.itemStart(t),a.src=t,a}}class Yu extends Vu{constructor(t){super(t)}load(t,e,n,r){const i=new ie,o=new Xu(this.manager);return o.setCrossOrigin(this.crossOrigin),o.setPath(this.path),o.load(t,(function(t){i.image=t,i.needsUpdate=!0,void 0!==e&&e(i)}),n,r),i}}class qu extends dn{constructor(t,e=1){super(),this.isLight=!0,this.type="Light",this.color=new Nn(t),this.intensity=e}dispose(){}copy(t,e){return super.copy(t,e),this.color.copy(t.color),this.intensity=t.intensity,this}toJSON(t){const e=super.toJSON(t);return e.object.color=this.color.getHex(),e.object.intensity=this.intensity,void 0!==this.groundColor&&(e.object.groundColor=this.groundColor.getHex()),void 0!==this.distance&&(e.object.distance=this.distance),void 0!==this.angle&&(e.object.angle=this.angle),void 0!==this.decay&&(e.object.decay=this.decay),void 0!==this.penumbra&&(e.object.penumbra=this.penumbra),void 0!==this.shadow&&(e.object.shadow=this.shadow.toJSON()),e}}const $u=new Ue,Ku=new ce,Zu=new ce;class Qu{constructor(t){this.camera=t,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new jt(512,512),this.map=null,this.mapPass=null,this.matrix=new Ue,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new Nr,this._frameExtents=new jt(1,1),this._viewportCount=1,this._viewports=[new oe(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(t){const e=this.camera,n=this.matrix;Ku.setFromMatrixPosition(t.matrixWorld),e.position.copy(Ku),Zu.setFromMatrixPosition(t.target.matrixWorld),e.lookAt(Zu),e.updateMatrixWorld(),$u.multiplyMatrices(e.projectionMatrix,e.matrixWorldInverse),this._frustum.setFromProjectionMatrix($u),n.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),n.multiply($u)}getViewport(t){return this._viewports[t]}getFrameExtents(){return this._frameExtents}dispose(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}copy(t){return this.camera=t.camera.clone(),this.bias=t.bias,this.radius=t.radius,this.mapSize.copy(t.mapSize),this}clone(){return(new this.constructor).copy(this)}toJSON(){const t={};return 0!==this.bias&&(t.bias=this.bias),0!==this.normalBias&&(t.normalBias=this.normalBias),1!==this.radius&&(t.radius=this.radius),512===this.mapSize.x&&512===this.mapSize.y||(t.mapSize=this.mapSize.toArray()),t.camera=this.camera.toJSON(!1).object,delete t.camera.matrix,t}}class Ju extends Qu{constructor(){super(new xr(50,1,.5,500)),this.isSpotLightShadow=!0,this.focus=1}updateMatrices(t){const e=this.camera,n=2*It*t.angle*this.focus,r=this.mapSize.width/this.mapSize.height,i=t.distance||e.far;n===e.fov&&r===e.aspect&&i===e.far||(e.fov=n,e.aspect=r,e.far=i,e.updateProjectionMatrix()),super.updateMatrices(t)}copy(t){return super.copy(t),this.focus=t.focus,this}}class tl extends qu{constructor(t,e,n=0,r=Math.PI/3,i=0,o=2){super(t,e),this.isSpotLight=!0,this.type="SpotLight",this.position.copy(dn.DEFAULT_UP),this.updateMatrix(),this.target=new dn,this.distance=n,this.angle=r,this.penumbra=i,this.decay=o,this.map=null,this.shadow=new Ju}get power(){return this.intensity*Math.PI}set power(t){this.intensity=t/Math.PI}dispose(){this.shadow.dispose()}copy(t,e){return super.copy(t,e),this.distance=t.distance,this.angle=t.angle,this.penumbra=t.penumbra,this.decay=t.decay,this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}const el=new Ue,nl=new ce,rl=new ce;class il extends Qu{constructor(){super(new xr(90,1,.5,500)),this.isPointLightShadow=!0,this._frameExtents=new jt(4,2),this._viewportCount=6,this._viewports=[new oe(2,1,1,1),new oe(0,1,1,1),new oe(3,1,1,1),new oe(1,1,1,1),new oe(3,0,1,1),new oe(1,0,1,1)],this._cubeDirections=[new ce(1,0,0),new ce(-1,0,0),new ce(0,0,1),new ce(0,0,-1),new ce(0,1,0),new ce(0,-1,0)],this._cubeUps=[new ce(0,1,0),new ce(0,1,0),new ce(0,1,0),new ce(0,1,0),new ce(0,0,1),new ce(0,0,-1)]}updateMatrices(t,e=0){const n=this.camera,r=this.matrix,i=t.distance||n.far;i!==n.far&&(n.far=i,n.updateProjectionMatrix()),nl.setFromMatrixPosition(t.matrixWorld),n.position.copy(nl),rl.copy(n.position),rl.add(this._cubeDirections[e]),n.up.copy(this._cubeUps[e]),n.lookAt(rl),n.updateMatrixWorld(),r.makeTranslation(-nl.x,-nl.y,-nl.z),el.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse),this._frustum.setFromProjectionMatrix(el)}}class ol extends qu{constructor(t,e,n=0,r=2){super(t,e),this.isPointLight=!0,this.type="PointLight",this.distance=n,this.decay=r,this.shadow=new il}get power(){return 4*this.intensity*Math.PI}set power(t){this.intensity=t/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(t,e){return super.copy(t,e),this.distance=t.distance,this.decay=t.decay,this.shadow=t.shadow.clone(),this}}class al extends Qu{constructor(){super(new Wr(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}}class sl extends qu{constructor(t,e){super(t,e),this.isDirectionalLight=!0,this.type="DirectionalLight",this.position.copy(dn.DEFAULT_UP),this.updateMatrix(),this.target=new dn,this.shadow=new al}dispose(){this.shadow.dispose()}copy(t){return super.copy(t),this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}class ul extends qu{constructor(t,e){super(t,e),this.isAmbientLight=!0,this.type="AmbientLight"}}class ll{static decodeText(t){if("undefined"!=typeof TextDecoder)return(new TextDecoder).decode(t);let e="";for(let n=0,r=t.length;n{"use strict";n.d(e,{N:()=>s});var r=n(39437);const i={type:"change"},o={type:"start"},a={type:"end"};class s extends r.Qev{constructor(t,e){super(),this.object=t,this.domElement=e,this.domElement.style.touchAction="none",this.enabled=!0,this.target=new r.Pq0,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!0,this.keyPanSpeed=7,this.autoRotate=!1,this.autoRotateSpeed=2,this.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.mouseButtons={LEFT:r.kBv.ROTATE,MIDDLE:r.kBv.DOLLY,RIGHT:r.kBv.PAN},this.touches={ONE:r.wtR.ROTATE,TWO:r.wtR.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._domElementKeyEvents=null,this.getPolarAngle=function(){return c.phi},this.getAzimuthalAngle=function(){return c.theta},this.getDistance=function(){return this.object.position.distanceTo(this.target)},this.listenToKeyEvents=function(t){t.addEventListener("keydown",X),this._domElementKeyEvents=t},this.stopListenToKeyEvents=function(){this._domElementKeyEvents.removeEventListener("keydown",X),this._domElementKeyEvents=null},this.saveState=function(){n.target0.copy(n.target),n.position0.copy(n.object.position),n.zoom0=n.object.zoom},this.reset=function(){n.target.copy(n.target0),n.object.position.copy(n.position0),n.object.zoom=n.zoom0,n.object.updateProjectionMatrix(),n.dispatchEvent(i),n.update(),u=s.NONE},this.update=function(){const e=new r.Pq0,o=(new r.PTz).setFromUnitVectors(t.up,new r.Pq0(0,1,0)),a=o.clone().invert(),m=new r.Pq0,g=new r.PTz,v=2*Math.PI;return function(){const t=n.object.position;e.copy(t).sub(n.target),e.applyQuaternion(o),c.setFromVector3(e),n.autoRotate&&u===s.NONE&&C(2*Math.PI/60/60*n.autoRotateSpeed),n.enableDamping?(c.theta+=h.theta*n.dampingFactor,c.phi+=h.phi*n.dampingFactor):(c.theta+=h.theta,c.phi+=h.phi);let r=n.minAzimuthAngle,y=n.maxAzimuthAngle;return isFinite(r)&&isFinite(y)&&(r<-Math.PI?r+=v:r>Math.PI&&(r-=v),y<-Math.PI?y+=v:y>Math.PI&&(y-=v),c.theta=r<=y?Math.max(r,Math.min(y,c.theta)):c.theta>(r+y)/2?Math.max(r,c.theta):Math.min(y,c.theta)),c.phi=Math.max(n.minPolarAngle,Math.min(n.maxPolarAngle,c.phi)),c.makeSafe(),c.radius*=d,c.radius=Math.max(n.minDistance,Math.min(n.maxDistance,c.radius)),!0===n.enableDamping?n.target.addScaledVector(f,n.dampingFactor):n.target.add(f),e.setFromSpherical(c),e.applyQuaternion(a),t.copy(n.target).add(e),n.object.lookAt(n.target),!0===n.enableDamping?(h.theta*=1-n.dampingFactor,h.phi*=1-n.dampingFactor,f.multiplyScalar(1-n.dampingFactor)):(h.set(0,0,0),f.set(0,0,0)),d=1,!!(p||m.distanceToSquared(n.object.position)>l||8*(1-g.dot(n.object.quaternion))>l)&&(n.dispatchEvent(i),m.copy(n.object.position),g.copy(n.object.quaternion),p=!1,!0)}}(),this.dispose=function(){n.domElement.removeEventListener("contextmenu",Y),n.domElement.removeEventListener("pointerdown",V),n.domElement.removeEventListener("pointercancel",G),n.domElement.removeEventListener("wheel",W),n.domElement.removeEventListener("pointermove",H),n.domElement.removeEventListener("pointerup",G),null!==n._domElementKeyEvents&&(n._domElementKeyEvents.removeEventListener("keydown",X),n._domElementKeyEvents=null)};const n=this,s={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let u=s.NONE;const l=1e-6,c=new r.YHV,h=new r.YHV;let d=1;const f=new r.Pq0;let p=!1;const m=new r.I9Y,g=new r.I9Y,v=new r.I9Y,y=new r.I9Y,b=new r.I9Y,x=new r.I9Y,w=new r.I9Y,_=new r.I9Y,S=new r.I9Y,E=[],A={};function M(){return Math.pow(.95,n.zoomSpeed)}function C(t){h.theta-=t}function T(t){h.phi-=t}const k=function(){const t=new r.Pq0;return function(e,n){t.setFromMatrixColumn(n,0),t.multiplyScalar(-e),f.add(t)}}(),I=function(){const t=new r.Pq0;return function(e,r){!0===n.screenSpacePanning?t.setFromMatrixColumn(r,1):(t.setFromMatrixColumn(r,0),t.crossVectors(n.object.up,t)),t.multiplyScalar(e),f.add(t)}}(),N=function(){const t=new r.Pq0;return function(e,r){const i=n.domElement;if(n.object.isPerspectiveCamera){const o=n.object.position;t.copy(o).sub(n.target);let a=t.length();a*=Math.tan(n.object.fov/2*Math.PI/180),k(2*e*a/i.clientHeight,n.object.matrix),I(2*r*a/i.clientHeight,n.object.matrix)}else n.object.isOrthographicCamera?(k(e*(n.object.right-n.object.left)/n.object.zoom/i.clientWidth,n.object.matrix),I(r*(n.object.top-n.object.bottom)/n.object.zoom/i.clientHeight,n.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),n.enablePan=!1)}}();function P(t){n.object.isPerspectiveCamera?d/=t:n.object.isOrthographicCamera?(n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom*t)),n.object.updateProjectionMatrix(),p=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function O(t){n.object.isPerspectiveCamera?d*=t:n.object.isOrthographicCamera?(n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom/t)),n.object.updateProjectionMatrix(),p=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function L(t){m.set(t.clientX,t.clientY)}function R(t){y.set(t.clientX,t.clientY)}function D(){if(1===E.length)m.set(E[0].pageX,E[0].pageY);else{const t=.5*(E[0].pageX+E[1].pageX),e=.5*(E[0].pageY+E[1].pageY);m.set(t,e)}}function z(){if(1===E.length)y.set(E[0].pageX,E[0].pageY);else{const t=.5*(E[0].pageX+E[1].pageX),e=.5*(E[0].pageY+E[1].pageY);y.set(t,e)}}function F(){const t=E[0].pageX-E[1].pageX,e=E[0].pageY-E[1].pageY,n=Math.sqrt(t*t+e*e);w.set(0,n)}function B(t){if(1==E.length)g.set(t.pageX,t.pageY);else{const e=$(t),n=.5*(t.pageX+e.x),r=.5*(t.pageY+e.y);g.set(n,r)}v.subVectors(g,m).multiplyScalar(n.rotateSpeed);const e=n.domElement;C(2*Math.PI*v.x/e.clientHeight),T(2*Math.PI*v.y/e.clientHeight),m.copy(g)}function U(t){if(1===E.length)b.set(t.pageX,t.pageY);else{const e=$(t),n=.5*(t.pageX+e.x),r=.5*(t.pageY+e.y);b.set(n,r)}x.subVectors(b,y).multiplyScalar(n.panSpeed),N(x.x,x.y),y.copy(b)}function j(t){const e=$(t),r=t.pageX-e.x,i=t.pageY-e.y,o=Math.sqrt(r*r+i*i);_.set(0,o),S.set(0,Math.pow(_.y/w.y,n.zoomSpeed)),P(S.y),w.copy(_)}function V(t){!1!==n.enabled&&(0===E.length&&(n.domElement.setPointerCapture(t.pointerId),n.domElement.addEventListener("pointermove",H),n.domElement.addEventListener("pointerup",G)),function(t){E.push(t)}(t),"touch"===t.pointerType?function(t){switch(q(t),E.length){case 1:switch(n.touches.ONE){case r.wtR.ROTATE:if(!1===n.enableRotate)return;D(),u=s.TOUCH_ROTATE;break;case r.wtR.PAN:if(!1===n.enablePan)return;z(),u=s.TOUCH_PAN;break;default:u=s.NONE}break;case 2:switch(n.touches.TWO){case r.wtR.DOLLY_PAN:if(!1===n.enableZoom&&!1===n.enablePan)return;n.enableZoom&&F(),n.enablePan&&z(),u=s.TOUCH_DOLLY_PAN;break;case r.wtR.DOLLY_ROTATE:if(!1===n.enableZoom&&!1===n.enableRotate)return;n.enableZoom&&F(),n.enableRotate&&D(),u=s.TOUCH_DOLLY_ROTATE;break;default:u=s.NONE}break;default:u=s.NONE}u!==s.NONE&&n.dispatchEvent(o)}(t):function(t){let e;switch(t.button){case 0:e=n.mouseButtons.LEFT;break;case 1:e=n.mouseButtons.MIDDLE;break;case 2:e=n.mouseButtons.RIGHT;break;default:e=-1}switch(e){case r.kBv.DOLLY:if(!1===n.enableZoom)return;!function(t){w.set(t.clientX,t.clientY)}(t),u=s.DOLLY;break;case r.kBv.ROTATE:if(t.ctrlKey||t.metaKey||t.shiftKey){if(!1===n.enablePan)return;R(t),u=s.PAN}else{if(!1===n.enableRotate)return;L(t),u=s.ROTATE}break;case r.kBv.PAN:if(t.ctrlKey||t.metaKey||t.shiftKey){if(!1===n.enableRotate)return;L(t),u=s.ROTATE}else{if(!1===n.enablePan)return;R(t),u=s.PAN}break;default:u=s.NONE}u!==s.NONE&&n.dispatchEvent(o)}(t))}function H(t){!1!==n.enabled&&("touch"===t.pointerType?function(t){switch(q(t),u){case s.TOUCH_ROTATE:if(!1===n.enableRotate)return;B(t),n.update();break;case s.TOUCH_PAN:if(!1===n.enablePan)return;U(t),n.update();break;case s.TOUCH_DOLLY_PAN:if(!1===n.enableZoom&&!1===n.enablePan)return;!function(t){n.enableZoom&&j(t),n.enablePan&&U(t)}(t),n.update();break;case s.TOUCH_DOLLY_ROTATE:if(!1===n.enableZoom&&!1===n.enableRotate)return;!function(t){n.enableZoom&&j(t),n.enableRotate&&B(t)}(t),n.update();break;default:u=s.NONE}}(t):function(t){switch(u){case s.ROTATE:if(!1===n.enableRotate)return;!function(t){g.set(t.clientX,t.clientY),v.subVectors(g,m).multiplyScalar(n.rotateSpeed);const e=n.domElement;C(2*Math.PI*v.x/e.clientHeight),T(2*Math.PI*v.y/e.clientHeight),m.copy(g),n.update()}(t);break;case s.DOLLY:if(!1===n.enableZoom)return;!function(t){_.set(t.clientX,t.clientY),S.subVectors(_,w),S.y>0?P(M()):S.y<0&&O(M()),w.copy(_),n.update()}(t);break;case s.PAN:if(!1===n.enablePan)return;!function(t){b.set(t.clientX,t.clientY),x.subVectors(b,y).multiplyScalar(n.panSpeed),N(x.x,x.y),y.copy(b),n.update()}(t)}}(t))}function G(t){!function(t){delete A[t.pointerId];for(let e=0;e0&&P(M()),n.update()}(t),n.dispatchEvent(a))}function X(t){!1!==n.enabled&&!1!==n.enablePan&&function(t){let e=!1;switch(t.code){case n.keys.UP:t.ctrlKey||t.metaKey||t.shiftKey?T(2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):N(0,n.keyPanSpeed),e=!0;break;case n.keys.BOTTOM:t.ctrlKey||t.metaKey||t.shiftKey?T(-2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):N(0,-n.keyPanSpeed),e=!0;break;case n.keys.LEFT:t.ctrlKey||t.metaKey||t.shiftKey?C(2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):N(n.keyPanSpeed,0),e=!0;break;case n.keys.RIGHT:t.ctrlKey||t.metaKey||t.shiftKey?C(-2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):N(-n.keyPanSpeed,0),e=!0}e&&(t.preventDefault(),n.update())}(t)}function Y(t){!1!==n.enabled&&t.preventDefault()}function q(t){let e=A[t.pointerId];void 0===e&&(e=new r.I9Y,A[t.pointerId]=e),e.set(t.pageX,t.pageY)}function $(t){const e=t.pointerId===E[0].pointerId?E[1]:E[0];return A[e.pointerId]}n.domElement.addEventListener("contextmenu",Y),n.domElement.addEventListener("pointerdown",V),n.domElement.addEventListener("pointercancel",G),n.domElement.addEventListener("wheel",W,{passive:!1}),this.update()}}},53912:(t,e,n)=>{"use strict";n.d(e,{j:()=>a});var r=n(39437);const i=new r.Pq0;function o(t,e,n,r,o,a){const s=2*Math.PI*o/4,u=Math.max(a-2*o,0),l=Math.PI/4;i.copy(e),i[r]=0,i.normalize();const c=.5*s/(s+u),h=1-i.angleTo(t)/l;if(1===Math.sign(i[n]))return h*c;return u/(s+u)+c+c*(1-h)}class a extends r.iNn{constructor(t=1,e=1,n=1,i=2,a=.1){if(i=2*i+1,a=Math.min(t/2,e/2,n/2,a),super(1,1,1,i,i,i),1===i)return;const s=this.toNonIndexed();this.index=null,this.attributes.position=s.attributes.position,this.attributes.normal=s.attributes.normal,this.attributes.uv=s.attributes.uv;const u=new r.Pq0,l=new r.Pq0,c=new r.Pq0(t,e,n).divideScalar(2).subScalar(a),h=this.attributes.position.array,d=this.attributes.normal.array,f=this.attributes.uv.array,p=h.length/6,m=new r.Pq0,g=.5/i;for(let r=0,i=0;r{"use strict";n.d(e,{Z:()=>o});var r=n(39437);const i=new WeakMap;class o extends r.aHM{constructor(t){super(t),this.decoderPath="",this.decoderConfig={},this.decoderBinary=null,this.decoderPending=null,this.workerLimit=4,this.workerPool=[],this.workerNextTaskID=1,this.workerSourceURL="",this.defaultAttributeIDs={position:"POSITION",normal:"NORMAL",color:"COLOR",uv:"TEX_COORD"},this.defaultAttributeTypes={position:"Float32Array",normal:"Float32Array",color:"Float32Array",uv:"Float32Array"}}setDecoderPath(t){return this.decoderPath=t,this}setDecoderConfig(t){return this.decoderConfig=t,this}setWorkerLimit(t){return this.workerLimit=t,this}load(t,e,n,i){const o=new r.Y9S(this.manager);o.setPath(this.path),o.setResponseType("arraybuffer"),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(t,(t=>{this.parse(t,e,i)}),n,i)}parse(t,e,n){this.decodeDracoFile(t,e,null,null,r.er$).catch(n)}decodeDracoFile(t,e,n,i,o=r.Zr2){const a={attributeIDs:n||this.defaultAttributeIDs,attributeTypes:i||this.defaultAttributeTypes,useUniqueIDs:!!n,vertexColorSpace:o};return this.decodeGeometry(t,a).then(e)}decodeGeometry(t,e){const n=JSON.stringify(e);if(i.has(t)){const e=i.get(t);if(e.key===n)return e.promise;if(0===t.byteLength)throw new Error("THREE.DRACOLoader: Unable to re-decode a buffer with different settings. Buffer has already been transferred.")}let r;const o=this.workerNextTaskID++,a=t.byteLength,s=this._getWorker(o,a).then((n=>(r=n,new Promise(((n,i)=>{r._callbacks[o]={resolve:n,reject:i},r.postMessage({type:"decode",id:o,taskConfig:e,buffer:t},[t])}))))).then((t=>this._createGeometry(t.geometry)));return s.catch((()=>!0)).then((()=>{r&&o&&this._releaseTask(r,o)})),i.set(t,{key:n,promise:s}),s}_createGeometry(t){const e=new r.LoY;t.index&&e.setIndex(new r.THS(t.index.array,1));for(let n=0;n{n.load(t,e,void 0,r)}))}preload(){return this._initDecoder(),this}_initDecoder(){if(this.decoderPending)return this.decoderPending;const t="object"!=typeof WebAssembly||"js"===this.decoderConfig.type,e=[];return t?e.push(this._loadLibrary("draco_decoder.js","text")):(e.push(this._loadLibrary("draco_wasm_wrapper.js","text")),e.push(this._loadLibrary("draco_decoder.wasm","arraybuffer"))),this.decoderPending=Promise.all(e).then((e=>{const n=e[0];t||(this.decoderConfig.wasmBinary=e[1]);const r=a.toString(),i=["/* draco decoder */",n,"","/* worker */",r.substring(r.indexOf("{")+1,r.lastIndexOf("}"))].join("\n");this.workerSourceURL=URL.createObjectURL(new Blob([i]))})),this.decoderPending}_getWorker(t,e){return this._initDecoder().then((()=>{if(this.workerPool.lengthe._taskLoad?-1:1}));const n=this.workerPool[this.workerPool.length-1];return n._taskCosts[t]=e,n._taskLoad+=e,n}))}_releaseTask(t,e){t._taskLoad-=t._taskCosts[e],delete t._callbacks[e],delete t._taskCosts[e]}debug(){console.log("Task load: ",this.workerPool.map((t=>t._taskLoad)))}dispose(){for(let t=0;t{const e=t.draco,a=new e.Decoder;try{const t=function(t,e,r,i){const o=i.attributeIDs,a=i.attributeTypes;let s,u;const l=e.GetEncodedGeometryType(r);if(l===t.TRIANGULAR_MESH)s=new t.Mesh,u=e.DecodeArrayToMesh(r,r.byteLength,s);else{if(l!==t.POINT_CLOUD)throw new Error("THREE.DRACOLoader: Unexpected geometry type.");s=new t.PointCloud,u=e.DecodeArrayToPointCloud(r,r.byteLength,s)}if(!u.ok()||0===s.ptr)throw new Error("THREE.DRACOLoader: Decoding failed: "+u.error_msg());const c={index:null,attributes:[]};for(const r in o){const u=self[a[r]];let l,h;if(i.useUniqueIDs)h=o[r],l=e.GetAttributeByUniqueId(s,h);else{if(h=e.GetAttributeId(s,t[o[r]]),-1===h)continue;l=e.GetAttribute(s,h)}const d=n(t,e,s,r,u,l);"color"===r&&(d.vertexColorSpace=i.vertexColorSpace),c.attributes.push(d)}l===t.TRIANGULAR_MESH&&(c.index=function(t,e,n){const r=n.num_faces(),i=3*r,o=4*i,a=t._malloc(o);e.GetTrianglesUInt32Array(n,o,a);const s=new Uint32Array(t.HEAPF32.buffer,a,i).slice();return t._free(a),{array:s,itemSize:1}}(t,e,s));return t.destroy(s),c}(e,a,new Int8Array(r),o),s=t.attributes.map((t=>t.array.buffer));t.index&&s.push(t.index.array.buffer),self.postMessage({type:"decode",id:i.id,geometry:t},s)}catch(t){console.error(t),self.postMessage({type:"error",id:i.id,error:t.message})}finally{e.destroy(a)}}))}}}},64092:(t,e,n)=>{"use strict";n.d(e,{B:()=>o});var r=n(39437);function i(t,e){if(e===r.RJ4)return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."),t;if(e===r.rYR||e===r.O49){let n=t.getIndex();if(null===n){const e=[],r=t.getAttribute("position");if(void 0===r)return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Undefined position attribute. Processing not possible."),t;for(let t=0;t=2.0 are supported.")));const c=new Z(i,{path:e||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});c.fileLoader.setRequestHeader(this.requestHeader);for(let t=0;t=0&&void 0===a[e]&&console.warn('THREE.GLTFLoader: Unknown extension "'+e+'".')}}c.setExtensions(o),c.setPlugins(a),c.parse(n,r)}parseAsync(t,e){const n=this;return new Promise((function(r,i){n.parse(t,e,r,i)}))}}function a(){let t={};return{get:function(e){return t[e]},add:function(e,n){t[e]=n},remove:function(e){delete t[e]},removeAll:function(){t={}}}}const s={KHR_BINARY_GLTF:"KHR_binary_glTF",KHR_DRACO_MESH_COMPRESSION:"KHR_draco_mesh_compression",KHR_LIGHTS_PUNCTUAL:"KHR_lights_punctual",KHR_MATERIALS_CLEARCOAT:"KHR_materials_clearcoat",KHR_MATERIALS_IOR:"KHR_materials_ior",KHR_MATERIALS_SHEEN:"KHR_materials_sheen",KHR_MATERIALS_SPECULAR:"KHR_materials_specular",KHR_MATERIALS_TRANSMISSION:"KHR_materials_transmission",KHR_MATERIALS_IRIDESCENCE:"KHR_materials_iridescence",KHR_MATERIALS_UNLIT:"KHR_materials_unlit",KHR_MATERIALS_VOLUME:"KHR_materials_volume",KHR_TEXTURE_BASISU:"KHR_texture_basisu",KHR_TEXTURE_TRANSFORM:"KHR_texture_transform",KHR_MESH_QUANTIZATION:"KHR_mesh_quantization",KHR_MATERIALS_EMISSIVE_STRENGTH:"KHR_materials_emissive_strength",EXT_TEXTURE_WEBP:"EXT_texture_webp",EXT_TEXTURE_AVIF:"EXT_texture_avif",EXT_MESHOPT_COMPRESSION:"EXT_meshopt_compression",EXT_MESH_GPU_INSTANCING:"EXT_mesh_gpu_instancing"};class u{constructor(t){this.parser=t,this.name=s.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){const t=this.parser,e=this.parser.json.nodes||[];for(let n=0,r=e.length;n=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");return null}return e.loadTextureImage(t,i.source,o)}}class b{constructor(t){this.parser=t,this.name=s.EXT_TEXTURE_WEBP,this.isSupported=null}loadTexture(t){const e=this.name,n=this.parser,r=n.json,i=r.textures[t];if(!i.extensions||!i.extensions[e])return null;const o=i.extensions[e],a=r.images[o.source];let s=n.textureLoader;if(a.uri){const t=n.options.manager.getHandler(a.uri);null!==t&&(s=t)}return this.detectSupport().then((function(i){if(i)return n.loadTextureImage(t,o.source,s);if(r.extensionsRequired&&r.extensionsRequired.indexOf(e)>=0)throw new Error("THREE.GLTFLoader: WebP required by asset but unsupported.");return n.loadTexture(t)}))}detectSupport(){return this.isSupported||(this.isSupported=new Promise((function(t){const e=new Image;e.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",e.onload=e.onerror=function(){t(1===e.height)}}))),this.isSupported}}class x{constructor(t){this.parser=t,this.name=s.EXT_TEXTURE_AVIF,this.isSupported=null}loadTexture(t){const e=this.name,n=this.parser,r=n.json,i=r.textures[t];if(!i.extensions||!i.extensions[e])return null;const o=i.extensions[e],a=r.images[o.source];let s=n.textureLoader;if(a.uri){const t=n.options.manager.getHandler(a.uri);null!==t&&(s=t)}return this.detectSupport().then((function(i){if(i)return n.loadTextureImage(t,o.source,s);if(r.extensionsRequired&&r.extensionsRequired.indexOf(e)>=0)throw new Error("THREE.GLTFLoader: AVIF required by asset but unsupported.");return n.loadTexture(t)}))}detectSupport(){return this.isSupported||(this.isSupported=new Promise((function(t){const e=new Image;e.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAABcAAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAEAAAABAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQAMAAAAABNjb2xybmNseAACAAIABoAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAAB9tZGF0EgAKCBgABogQEDQgMgkQAAAAB8dSLfI=",e.onload=e.onerror=function(){t(1===e.height)}}))),this.isSupported}}class w{constructor(t){this.name=s.EXT_MESHOPT_COMPRESSION,this.parser=t}loadBufferView(t){const e=this.parser.json,n=e.bufferViews[t];if(n.extensions&&n.extensions[this.name]){const t=n.extensions[this.name],r=this.parser.getDependency("buffer",t.buffer),i=this.parser.options.meshoptDecoder;if(!i||!i.supported){if(e.extensionsRequired&&e.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files");return null}return r.then((function(e){const n=t.byteOffset||0,r=t.byteLength||0,o=t.count,a=t.byteStride,s=new Uint8Array(e,n,r);return i.decodeGltfBufferAsync?i.decodeGltfBufferAsync(o,a,s,t.mode,t.filter).then((function(t){return t.buffer})):i.ready.then((function(){const e=new ArrayBuffer(o*a);return i.decodeGltfBuffer(new Uint8Array(e),o,a,s,t.mode,t.filter),e}))}))}return null}}class _{constructor(t){this.name=s.EXT_MESH_GPU_INSTANCING,this.parser=t}createNodeMesh(t){const e=this.parser.json,n=e.nodes[t];if(!n.extensions||!n.extensions[this.name]||void 0===n.mesh)return null;const i=e.meshes[n.mesh];for(const t of i.primitives)if(t.mode!==O.TRIANGLES&&t.mode!==O.TRIANGLE_STRIP&&t.mode!==O.TRIANGLE_FAN&&void 0!==t.mode)return null;const o=n.extensions[this.name].attributes,a=[],s={};for(const t in o)a.push(this.parser.getDependency("accessor",o[t]).then((e=>(s[t]=e,s[t]))));return a.length<1?null:(a.push(this.parser.createNodeMesh(t)),Promise.all(a).then((t=>{const e=t.pop(),n=e.isGroup?e.children:[e],i=t[0].count,o=[];for(const t of n){const e=new r.kn4,n=new r.Pq0,a=new r.PTz,u=new r.Pq0(1,1,1),l=new r.ZLX(t.geometry,t.material,i);for(let t=0;t-1,o=i?navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1]:-1),"undefined"==typeof createImageBitmap||n||i&&o<98?this.textureLoader=new r.Tap(this.options.manager):this.textureLoader=new r.Kzg(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new r.Y9S(this.options.manager),this.fileLoader.setResponseType("arraybuffer"),"use-credentials"===this.options.crossOrigin&&this.fileLoader.setWithCredentials(!0)}setExtensions(t){this.extensions=t}setPlugins(t){this.plugins=t}parse(t,e){const n=this,r=this.json,i=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll((function(t){return t._markDefs&&t._markDefs()})),Promise.all(this._invokeAll((function(t){return t.beforeRoot&&t.beforeRoot()}))).then((function(){return Promise.all([n.getDependencies("scene"),n.getDependencies("animation"),n.getDependencies("camera")])})).then((function(e){const o={scene:e[0][r.scene||0],scenes:e[0],animations:e[1],cameras:e[2],asset:r.asset,parser:n,userData:{}};G(i,o,r),W(o,r),Promise.all(n._invokeAll((function(t){return t.afterRoot&&t.afterRoot(o)}))).then((function(){t(o)}))})).catch(e)}_markDefs(){const t=this.json.nodes||[],e=this.json.skins||[],n=this.json.meshes||[];for(let n=0,r=e.length;n{const n=this.associations.get(t);null!=n&&this.associations.set(e,n);for(const[n,r]of t.children.entries())i(r,e.children[n])};return i(n,r),r.name+="_instance_"+t.uses[e]++,r}_invokeOne(t){const e=Object.values(this.plugins);e.push(this);for(let n=0;n=2&&p.setY(e,h[t*a+1]),a>=3&&p.setZ(e,h[t*a+2]),a>=4&&p.setW(e,h[t*a+3]),a>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}}return p}))}loadTexture(t){const e=this.json,n=this.options,r=e.textures[t].source,i=e.images[r];let o=this.textureLoader;if(i.uri){const t=n.manager.getHandler(i.uri);null!==t&&(o=t)}return this.loadTextureImage(t,r,o)}loadTextureImage(t,e,n){const i=this,o=this.json,a=o.textures[t],s=o.images[e],u=(s.uri||s.bufferView)+":"+a.sampler;if(this.textureCache[u])return this.textureCache[u];const l=this.loadImageSource(e,n).then((function(e){e.flipY=!1,e.name=a.name||s.name||"",""===e.name&&"string"==typeof s.uri&&!1===s.uri.startsWith("data:image/")&&(e.name=s.uri);const n=(o.samplers||{})[a.sampler]||{};return e.magFilter=R[n.magFilter]||r.k6q,e.minFilter=R[n.minFilter]||r.$_I,e.wrapS=D[n.wrapS]||r.GJx,e.wrapT=D[n.wrapT]||r.GJx,i.associations.set(e,{textures:t}),e})).catch((function(){return null}));return this.textureCache[u]=l,l}loadImageSource(t,e){const n=this,i=this.json,o=this.options;if(void 0!==this.sourceCache[t])return this.sourceCache[t].then((t=>t.clone()));const a=i.images[t],s=self.URL||self.webkitURL;let u=a.uri||"",l=!1;if(void 0!==a.bufferView)u=n.getDependency("bufferView",a.bufferView).then((function(t){l=!0;const e=new Blob([t],{type:a.mimeType});return u=s.createObjectURL(e),u}));else if(void 0===a.uri)throw new Error("THREE.GLTFLoader: Image "+t+" is missing URI and bufferView");const c=Promise.resolve(u).then((function(t){return new Promise((function(n,i){let a=n;!0===e.isImageBitmapLoader&&(a=function(t){const e=new r.gPd(t);e.needsUpdate=!0,n(e)}),e.load(r.r6x.resolveURL(t,o.path),a,void 0,i)}))})).then((function(t){var e;return!0===l&&s.revokeObjectURL(u),t.userData.mimeType=a.mimeType||((e=a.uri).search(/\.jpe?g($|\?)/i)>0||0===e.search(/^data\:image\/jpeg/)?"image/jpeg":e.search(/\.webp($|\?)/i)>0||0===e.search(/^data\:image\/webp/)?"image/webp":"image/png"),t})).catch((function(t){throw console.error("THREE.GLTFLoader: Couldn't load texture",u),t}));return this.sourceCache[t]=c,c}assignTexture(t,e,n,r){const i=this;return this.getDependency("texture",n.index).then((function(o){if(!o)return null;if(void 0!==n.texCoord&&n.texCoord>0&&((o=o.clone()).channel=n.texCoord),i.extensions[s.KHR_TEXTURE_TRANSFORM]){const t=void 0!==n.extensions?n.extensions[s.KHR_TEXTURE_TRANSFORM]:void 0;if(t){const e=i.associations.get(o);o=i.extensions[s.KHR_TEXTURE_TRANSFORM].extendTexture(o,t),i.associations.set(o,e)}}return void 0!==r&&(o.encoding=r),t[e]=o,o}))}assignFinalMaterial(t){const e=t.geometry;let n=t.material;const i=void 0===e.attributes.tangent,o=void 0!==e.attributes.color,a=void 0===e.attributes.normal;if(t.isPoints){const t="PointsMaterial:"+n.uuid;let e=this.cache.get(t);e||(e=new r.BH$,r.imn.prototype.copy.call(e,n),e.color.copy(n.color),e.map=n.map,e.sizeAttenuation=!1,this.cache.add(t,e)),n=e}else if(t.isLine){const t="LineBasicMaterial:"+n.uuid;let e=this.cache.get(t);e||(e=new r.mrM,r.imn.prototype.copy.call(e,n),e.color.copy(n.color),e.map=n.map,this.cache.add(t,e)),n=e}if(i||o||a){let t="ClonedMaterial:"+n.uuid+":";i&&(t+="derivative-tangents:"),o&&(t+="vertex-colors:"),a&&(t+="flat-shading:");let e=this.cache.get(t);e||(e=n.clone(),o&&(e.vertexColors=!0),a&&(e.flatShading=!0),i&&(e.normalScale&&(e.normalScale.y*=-1),e.clearcoatNormalScale&&(e.clearcoatNormalScale.y*=-1)),this.cache.add(t,e),this.associations.set(e,this.associations.get(n))),n=e}t.material=n}getMaterialType(){return r._4j}loadMaterial(t){const e=this,n=this.json,i=this.extensions,o=n.materials[t];let a;const u={},l=[];if((o.extensions||{})[s.KHR_MATERIALS_UNLIT]){const t=i[s.KHR_MATERIALS_UNLIT];a=t.getMaterialType(),l.push(t.extendParams(u,o,e))}else{const n=o.pbrMetallicRoughness||{};if(u.color=new r.Q1f(1,1,1),u.opacity=1,Array.isArray(n.baseColorFactor)){const t=n.baseColorFactor;u.color.fromArray(t),u.opacity=t[3]}void 0!==n.baseColorTexture&&l.push(e.assignTexture(u,"map",n.baseColorTexture,r.S2Q)),u.metalness=void 0!==n.metallicFactor?n.metallicFactor:1,u.roughness=void 0!==n.roughnessFactor?n.roughnessFactor:1,void 0!==n.metallicRoughnessTexture&&(l.push(e.assignTexture(u,"metalnessMap",n.metallicRoughnessTexture)),l.push(e.assignTexture(u,"roughnessMap",n.metallicRoughnessTexture))),a=this._invokeOne((function(e){return e.getMaterialType&&e.getMaterialType(t)})),l.push(Promise.all(this._invokeAll((function(e){return e.extendMaterialParams&&e.extendMaterialParams(t,u)}))))}!0===o.doubleSided&&(u.side=r.$EB);const c=o.alphaMode||j;if(c===H?(u.transparent=!0,u.depthWrite=!1):(u.transparent=!1,c===V&&(u.alphaTest=void 0!==o.alphaCutoff?o.alphaCutoff:.5)),void 0!==o.normalTexture&&a!==r.V9B&&(l.push(e.assignTexture(u,"normalMap",o.normalTexture)),u.normalScale=new r.I9Y(1,1),void 0!==o.normalTexture.scale)){const t=o.normalTexture.scale;u.normalScale.set(t,t)}return void 0!==o.occlusionTexture&&a!==r.V9B&&(l.push(e.assignTexture(u,"aoMap",o.occlusionTexture)),void 0!==o.occlusionTexture.strength&&(u.aoMapIntensity=o.occlusionTexture.strength)),void 0!==o.emissiveFactor&&a!==r.V9B&&(u.emissive=(new r.Q1f).fromArray(o.emissiveFactor)),void 0!==o.emissiveTexture&&a!==r.V9B&&l.push(e.assignTexture(u,"emissiveMap",o.emissiveTexture,r.S2Q)),Promise.all(l).then((function(){const n=new a(u);return o.name&&(n.name=o.name),W(n,o),e.associations.set(n,{materials:t}),o.extensions&&G(i,n,o),n}))}createUniqueName(t){const e=r.Nwf.sanitizeNodeName(t||"");let n=e;for(let t=1;this.nodeNamesUsed[n];++t)n=e+"_"+t;return this.nodeNamesUsed[n]=!0,n}loadGeometries(t){const e=this,n=this.extensions,i=this.primitiveCache;function o(t){return n[s.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(t,e).then((function(n){return Q(n,t,e)}))}const a=[];for(let n=0,u=t.length;n0&&X(f,a),f.name=e.createUniqueName(a.name||"mesh_"+t),W(f,a),d.extensions&&G(o,f,d),e.assignFinalMaterial(f),c.push(f)}for(let n=0,r=c.length;n1?new r.YJl:1===e.length?e[0]:new r.B69,s!==e[0])for(let t=0,n=e.length;t{const e=new Map;for(const[t,n]of i.associations)(t instanceof r.imn||t instanceof r.gPd)&&e.set(t,n);return t.traverse((t=>{const n=i.associations.get(t);null!=n&&e.set(t,n)})),e})(o),o}))}}function Q(t,e,n){const i=e.attributes,o=[];function a(e,r){return n.getDependency("accessor",e).then((function(e){t.setAttribute(r,e)}))}for(const e in i){const n=F[e]||e.toLowerCase();n in t.attributes||o.push(a(i[e],n))}if(void 0!==e.indices&&!t.index){const r=n.getDependency("accessor",e.indices).then((function(e){t.setIndex(e)}));o.push(r)}return W(t,e),function(t,e,n){const i=e.attributes,o=new r.NRn;if(void 0===i.POSITION)return;{const t=n.json.accessors[i.POSITION],e=t.min,a=t.max;if(void 0===e||void 0===a)return void console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.");if(o.set(new r.Pq0(e[0],e[1],e[2]),new r.Pq0(a[0],a[1],a[2])),t.normalized){const e=$(L[t.componentType]);o.min.multiplyScalar(e),o.max.multiplyScalar(e)}}const a=e.targets;if(void 0!==a){const t=new r.Pq0,e=new r.Pq0;for(let r=0,i=a.length;r{"use strict";function r(t,e,n){var r=(n||{}).atBegin;return function(t,e,n){var r,i=n||{},o=i.noTrailing,a=void 0!==o&&o,s=i.noLeading,u=void 0!==s&&s,l=i.debounceMode,c=void 0===l?void 0:l,h=!1,d=0;function f(){r&&clearTimeout(r)}function p(){for(var n=arguments.length,i=new Array(n),o=0;ot?u?(d=Date.now(),a||(r=setTimeout(c?m:p,t))):p():!0!==a&&(r=setTimeout(c?m:p,void 0===c?t-l:t)))}return p.cancel=function(t){var e=(t||{}).upcomingOnly,n=void 0!==e&&e;f(),h=!n},p}(t,e,{debounceMode:!1!==(void 0!==r&&r)})}n.d(e,{s:()=>r})},31635:(t,e,n)=>{"use strict";n.r(e),n.d(e,{__addDisposableResource:()=>L,__assign:()=>o,__asyncDelegator:()=>A,__asyncGenerator:()=>E,__asyncValues:()=>M,__await:()=>S,__awaiter:()=>p,__classPrivateFieldGet:()=>N,__classPrivateFieldIn:()=>O,__classPrivateFieldSet:()=>P,__createBinding:()=>g,__decorate:()=>s,__disposeResources:()=>D,__esDecorate:()=>l,__exportStar:()=>v,__extends:()=>i,__generator:()=>m,__importDefault:()=>I,__importStar:()=>k,__makeTemplateObject:()=>C,__metadata:()=>f,__param:()=>u,__propKey:()=>h,__read:()=>b,__rest:()=>a,__runInitializers:()=>c,__setFunctionName:()=>d,__spread:()=>x,__spreadArray:()=>_,__spreadArrays:()=>w,__values:()=>y,default:()=>z});var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,r){e(n,r,t)}}function l(t,e,n,r,i,o){function a(t){if(void 0!==t&&"function"!=typeof t)throw new TypeError("Function expected");return t}for(var s,u=r.kind,l="getter"===u?"get":"setter"===u?"set":"value",c=!e&&t?r.static?t:t.prototype:null,h=e||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),d=!1,f=n.length-1;f>=0;f--){var p={};for(var m in r)p[m]="access"===m?{}:r[m];for(var m in r.access)p.access[m]=r.access[m];p.addInitializer=function(t){if(d)throw new TypeError("Cannot add initializers after decoration has completed");o.push(a(t||null))};var g=(0,n[f])("accessor"===u?{get:h.get,set:h.set}:h[l],p);if("accessor"===u){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(s=a(g.get))&&(h.get=s),(s=a(g.set))&&(h.set=s),(s=a(g.init))&&i.unshift(s)}else(s=a(g))&&("field"===u?i.unshift(s):h[l]=s)}c&&Object.defineProperty(c,r.name,h),d=!0}function c(t,e,n){for(var r=arguments.length>2,i=0;i0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function x(){for(var t=[],e=0;e1||s(t,e)}))})}function s(t,e){try{(n=i[t](e)).value instanceof S?Promise.resolve(n.value.v).then(u,l):c(o[0][2],n)}catch(t){c(o[0][3],t)}var n}function u(t){s("next",t)}function l(t){s("throw",t)}function c(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function A(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:S(t[r](e)),done:!1}:i?i(e):e}:i}}function M(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=y(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}}function C(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var T=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function k(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&g(e,t,n);return T(e,t),e}function I(t){return t&&t.__esModule?t:{default:t}}function N(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}function P(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n}function O(t,e){if(null===e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof t?e===t:t.has(e)}function L(t,e,n){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=e[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=e[Symbol.dispose]}if("function"!=typeof r)throw new TypeError("Object not disposable.");t.stack.push({value:e,dispose:r,async:n})}else n&&t.stack.push({async:!0});return e}var R="function"==typeof SuppressedError?SuppressedError:function(t,e,n){var r=new Error(n);return r.name="SuppressedError",r.error=t,r.suppressed=e,r};function D(t){function e(e){t.error=t.hasError?new R(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}return function n(){for(;t.stack.length;){var r=t.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,(function(t){return e(t),n()}))}catch(t){e(t)}}if(t.hasError)throw t.error}()}const z={__extends:i,__assign:o,__rest:a,__decorate:s,__param:u,__metadata:f,__awaiter:p,__generator:m,__createBinding:g,__exportStar:v,__values:y,__read:b,__spread:x,__spreadArrays:w,__spreadArray:_,__await:S,__asyncGenerator:E,__asyncDelegator:A,__asyncValues:M,__makeTemplateObject:C,__importStar:k,__importDefault:I,__classPrivateFieldGet:N,__classPrivateFieldSet:P,__classPrivateFieldIn:O,__addDisposableResource:L,__disposeResources:D}},72902:(t,e,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;es});var i={strings:["These are the default values...","You know what you should do?","Use your own!","Have a great day!"],stringsElement:null,typeSpeed:0,startDelay:0,backSpeed:0,smartBackspace:!0,shuffle:!1,backDelay:700,fadeOut:!1,fadeOutClass:"typed-fade-out",fadeOutDelay:500,loop:!1,loopCount:1/0,showCursor:!0,cursorChar:"|",autoInsertCss:!0,attr:null,bindInputFocusEvents:!1,contentType:"html",onBegin:function(t){},onComplete:function(t){},preStringTyped:function(t,e){},onStringTyped:function(t,e){},onLastStringBackspaced:function(t){},onTypingPaused:function(t,e){},onTypingResumed:function(t,e){},onReset:function(t){},onStop:function(t,e){},onStart:function(t,e){},onDestroy:function(t){}},o=new(function(){function t(){}var e=t.prototype;return e.load=function(t,e,n){if(t.el="string"==typeof n?document.querySelector(n):n,t.options=r({},i,e),t.isInput="input"===t.el.tagName.toLowerCase(),t.attr=t.options.attr,t.bindInputFocusEvents=t.options.bindInputFocusEvents,t.showCursor=!t.isInput&&t.options.showCursor,t.cursorChar=t.options.cursorChar,t.cursorBlinking=!0,t.elContent=t.attr?t.el.getAttribute(t.attr):t.el.textContent,t.contentType=t.options.contentType,t.typeSpeed=t.options.typeSpeed,t.startDelay=t.options.startDelay,t.backSpeed=t.options.backSpeed,t.smartBackspace=t.options.smartBackspace,t.backDelay=t.options.backDelay,t.fadeOut=t.options.fadeOut,t.fadeOutClass=t.options.fadeOutClass,t.fadeOutDelay=t.options.fadeOutDelay,t.isPaused=!1,t.strings=t.options.strings.map((function(t){return t.trim()})),t.stringsElement="string"==typeof t.options.stringsElement?document.querySelector(t.options.stringsElement):t.options.stringsElement,t.stringsElement){t.strings=[],t.stringsElement.style.cssText="clip: rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px;";var o=Array.prototype.slice.apply(t.stringsElement.children),a=o.length;if(a)for(var s=0;s0&&(t.strPos=t.currentElContent.length-1,t.strings.unshift(t.currentElContent)),t.sequence=[],t.strings)t.sequence[u]=u;t.arrayPos=0,t.stopNum=0,t.loop=t.options.loop,t.loopCount=t.options.loopCount,t.curLoop=0,t.shuffle=t.options.shuffle,t.pause={status:!1,typewrite:!0,curString:"",curStrPos:0},t.typingComplete=!1,t.autoInsertCss=t.options.autoInsertCss,t.autoInsertCss&&(this.appendCursorAnimationCss(t),this.appendFadeOutAnimationCss(t))},e.getCurrentElContent=function(t){return t.attr?t.el.getAttribute(t.attr):t.isInput?t.el.value:"html"===t.contentType?t.el.innerHTML:t.el.textContent},e.appendCursorAnimationCss=function(t){var e="data-typed-js-cursor-css";if(t.showCursor&&!document.querySelector("["+e+"]")){var n=document.createElement("style");n.setAttribute(e,"true"),n.innerHTML="\n .typed-cursor{\n opacity: 1;\n }\n .typed-cursor.typed-cursor--blink{\n animation: typedjsBlink 0.7s infinite;\n -webkit-animation: typedjsBlink 0.7s infinite;\n animation: typedjsBlink 0.7s infinite;\n }\n @keyframes typedjsBlink{\n 50% { opacity: 0.0; }\n }\n @-webkit-keyframes typedjsBlink{\n 0% { opacity: 1; }\n 50% { opacity: 0.0; }\n 100% { opacity: 1; }\n }\n ",document.body.appendChild(n)}},e.appendFadeOutAnimationCss=function(t){var e="data-typed-fadeout-js-css";if(t.fadeOut&&!document.querySelector("["+e+"]")){var n=document.createElement("style");n.setAttribute(e,"true"),n.innerHTML="\n .typed-fade-out{\n opacity: 0;\n transition: opacity .25s;\n }\n .typed-cursor.typed-cursor--blink.typed-fade-out{\n -webkit-animation: 0;\n animation: 0;\n }\n ",document.body.appendChild(n)}},t}()),a=new(function(){function t(){}var e=t.prototype;return e.typeHtmlChars=function(t,e,n){if("html"!==n.contentType)return e;var r=t.substring(e).charAt(0);if("<"===r||"&"===r){var i;for(i="<"===r?">":";";t.substring(e+1).charAt(0)!==i&&!(1+ ++e>t.length););e++}return e},e.backSpaceHtmlChars=function(t,e,n){if("html"!==n.contentType)return e;var r=t.substring(e).charAt(0);if(">"===r||";"===r){var i;for(i=">"===r?"<":"&";t.substring(e-1).charAt(0)!==i&&!(--e<0););e--}return e},t}()),s=function(){function t(t,e){o.load(this,e,t),this.begin()}var e=t.prototype;return e.toggle=function(){this.pause.status?this.start():this.stop()},e.stop=function(){this.typingComplete||this.pause.status||(this.toggleBlinking(!0),this.pause.status=!0,this.options.onStop(this.arrayPos,this))},e.start=function(){this.typingComplete||this.pause.status&&(this.pause.status=!1,this.pause.typewrite?this.typewrite(this.pause.curString,this.pause.curStrPos):this.backspace(this.pause.curString,this.pause.curStrPos),this.options.onStart(this.arrayPos,this))},e.destroy=function(){this.reset(!1),this.options.onDestroy(this)},e.reset=function(t){void 0===t&&(t=!0),clearInterval(this.timeout),this.replaceText(""),this.cursor&&this.cursor.parentNode&&(this.cursor.parentNode.removeChild(this.cursor),this.cursor=null),this.strPos=0,this.arrayPos=0,this.curLoop=0,t&&(this.insertCursor(),this.options.onReset(this),this.begin())},e.begin=function(){var t=this;this.options.onBegin(this),this.typingComplete=!1,this.shuffleStringsIfNeeded(this),this.insertCursor(),this.bindInputFocusEvents&&this.bindFocusEvents(),this.timeout=setTimeout((function(){0===t.strPos?t.typewrite(t.strings[t.sequence[t.arrayPos]],t.strPos):t.backspace(t.strings[t.sequence[t.arrayPos]],t.strPos)}),this.startDelay)},e.typewrite=function(t,e){var n=this;this.fadeOut&&this.el.classList.contains(this.fadeOutClass)&&(this.el.classList.remove(this.fadeOutClass),this.cursor&&this.cursor.classList.remove(this.fadeOutClass));var r=this.humanizer(this.typeSpeed),i=1;!0!==this.pause.status?this.timeout=setTimeout((function(){e=a.typeHtmlChars(t,e,n);var r=0,o=t.substring(e);if("^"===o.charAt(0)&&/^\^\d+/.test(o)){var s=1;s+=(o=/\d+/.exec(o)[0]).length,r=parseInt(o),n.temporaryPause=!0,n.options.onTypingPaused(n.arrayPos,n),t=t.substring(0,e)+t.substring(e+s),n.toggleBlinking(!0)}if("`"===o.charAt(0)){for(;"`"!==t.substring(e+i).charAt(0)&&(i++,!(e+i>t.length)););var u=t.substring(0,e),l=t.substring(u.length+1,e+i),c=t.substring(e+i+1);t=u+l+c,i--}n.timeout=setTimeout((function(){n.toggleBlinking(!1),e>=t.length?n.doneTyping(t,e):n.keepTyping(t,e,i),n.temporaryPause&&(n.temporaryPause=!1,n.options.onTypingResumed(n.arrayPos,n))}),r)}),r):this.setPauseStatus(t,e,!0)},e.keepTyping=function(t,e,n){0===e&&(this.toggleBlinking(!1),this.options.preStringTyped(this.arrayPos,this));var r=t.substring(0,e+=n);this.replaceText(r),this.typewrite(t,e)},e.doneTyping=function(t,e){var n=this;this.options.onStringTyped(this.arrayPos,this),this.toggleBlinking(!0),this.arrayPos===this.strings.length-1&&(this.complete(),!1===this.loop||this.curLoop===this.loopCount)||(this.timeout=setTimeout((function(){n.backspace(t,e)}),this.backDelay))},e.backspace=function(t,e){var n=this;if(!0!==this.pause.status){if(this.fadeOut)return this.initFadeOut();this.toggleBlinking(!1);var r=this.humanizer(this.backSpeed);this.timeout=setTimeout((function(){e=a.backSpaceHtmlChars(t,e,n);var r=t.substring(0,e);if(n.replaceText(r),n.smartBackspace){var i=n.strings[n.arrayPos+1];n.stopNum=i&&r===i.substring(0,e)?e:0}e>n.stopNum?(e--,n.backspace(t,e)):e<=n.stopNum&&(n.arrayPos++,n.arrayPos===n.strings.length?(n.arrayPos=0,n.options.onLastStringBackspaced(),n.shuffleStringsIfNeeded(),n.begin()):n.typewrite(n.strings[n.sequence[n.arrayPos]],e))}),r)}else this.setPauseStatus(t,e,!1)},e.complete=function(){this.options.onComplete(this),this.loop?this.curLoop++:this.typingComplete=!0},e.setPauseStatus=function(t,e,n){this.pause.typewrite=n,this.pause.curString=t,this.pause.curStrPos=e},e.toggleBlinking=function(t){this.cursor&&(this.pause.status||this.cursorBlinking!==t&&(this.cursorBlinking=t,t?this.cursor.classList.add("typed-cursor--blink"):this.cursor.classList.remove("typed-cursor--blink")))},e.humanizer=function(t){return Math.round(Math.random()*t/2)+t},e.shuffleStringsIfNeeded=function(){this.shuffle&&(this.sequence=this.sequence.sort((function(){return Math.random()-.5})))},e.initFadeOut=function(){var t=this;return this.el.className+=" "+this.fadeOutClass,this.cursor&&(this.cursor.className+=" "+this.fadeOutClass),setTimeout((function(){t.arrayPos++,t.replaceText(""),t.strings.length>t.arrayPos?t.typewrite(t.strings[t.sequence[t.arrayPos]],0):(t.typewrite(t.strings[0],0),t.arrayPos=0)}),this.fadeOutDelay)},e.replaceText=function(t){this.attr?this.el.setAttribute(this.attr,t):this.isInput?this.el.value=t:"html"===this.contentType?this.el.innerHTML=t:this.el.textContent=t},e.bindFocusEvents=function(){var t=this;this.isInput&&(this.el.addEventListener("focus",(function(e){t.stop()})),this.el.addEventListener("blur",(function(e){t.el.value&&0!==t.el.value.length||t.start()})))},e.insertCursor=function(){this.showCursor&&(this.cursor||(this.cursor=document.createElement("span"),this.cursor.className="typed-cursor",this.cursor.setAttribute("aria-hidden",!0),this.cursor.innerHTML=this.cursorChar,this.el.parentNode&&this.el.parentNode.insertBefore(this.cursor,this.el.nextSibling)))},t}()},62454:(t,e,n)=>{"use strict";n.d(e,{A:()=>_});var r=n(92836),i=n(84722),o=n(29308),a=n(57861),s=n(45558),u=n(98026),l=n(73098),c=n(47698),h=n(56448),d="__zr_normal__",f=r.Wx.concat(["ignore"]),p=(0,u.reduce)(r.Wx,(function(t,e){return t[e]=!0,t}),{ignore:!1}),m={},g=new o.A(0,0,0,0),v=function(){function t(t){this.id=(0,u.guid)(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=t,r[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=e.innerTransformable,o=void 0,a=void 0,u=!1;i.parent=r?this:null;var l=!1;if(i.copyTransform(e),null!=n.position){var c=g;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),r||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(m,n,c):(0,s.X4)(m,n,c),i.x=m.x,i.y=m.y,o=m.align,a=m.verticalAlign;var d=n.origin;if(d&&null!=n.rotation){var f=void 0,p=void 0;"center"===d?(f=.5*c.width,p=.5*c.height):(f=(0,s.lo)(d[0],c.width),p=(0,s.lo)(d[1],c.height)),l=!0,i.originX=-i.x+f+(r?0:c.x),i.originY=-i.y+p+(r?0:c.y)}}null!=n.rotation&&(i.rotation=n.rotation);var v=n.offset;v&&(i.x+=v[0],i.y+=v[1],l||(i.originX=-v[0],i.originY=-v[1]));var y=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,b=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),x=void 0,w=void 0,_=void 0;y&&this.canBeInsideText()?(x=n.insideFill,w=n.insideStroke,null!=x&&"auto"!==x||(x=this.getInsideTextFill()),null!=w&&"auto"!==w||(w=this.getInsideTextStroke(x),_=!0)):(x=n.outsideFill,w=n.outsideStroke,null!=x&&"auto"!==x||(x=this.getOutsideFill()),null!=w&&"auto"!==w||(w=this.getOutsideStroke(x),_=!0)),(x=x||"#000")===b.fill&&w===b.stroke&&_===b.autoStroke&&o===b.align&&a===b.verticalAlign||(u=!0,b.fill=x,b.stroke=w,b.autoStroke=_,b.align=o,b.verticalAlign=a,e.setDefaultTextStyle(b)),e.__dirty|=h.M,u&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?l.el:l._S},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&(0,c.parse)(e);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,(0,c.stringify)(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},(0,u.extend)(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if((0,u.isObject)(t))for(var n=t,r=(0,u.keys)(n),i=0;i0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(d,!1,t)},t.prototype.useState=function(t,e,n,r){var i=t===d;if(this.hasState()||!i){var o=this.currentStates,a=this.stateTransition;if(!((0,u.indexOf)(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||i){i||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||r);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var c=this._textContent,f=this._textGuide;return c&&c.useState(t,e,n,l),f&&f.useState(t,e,n,l),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~h.M),s}(0,u.logError)("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var r=[],i=this.currentStates,o=t.length,a=o===i.length;if(a)for(var s=0;s0,p);var m=this._textContent,g=this._textGuide;m&&m.useStates(t,e,d),g&&g.useStates(t,e,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~h.M)}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},t.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var r=this.currentStates.slice(),i=(0,u.indexOf)(r,t),o=(0,u.indexOf)(r,e)>=0;i>=0?o?r.splice(i,1):r[i]=e:n&&!o&&r.push(e),this.useStates(r)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},r=0;r=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,r=n.length,i=[],o=0;o0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var d=0;d0||o.force&&!s.length){var M,C=void 0,T=void 0,k=void 0;if(l){T={},p&&(C={});for(E=0;E{"use strict";n.d(e,{F:()=>b,A:()=>A});var r={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=r*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-r.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*r.bounceIn(2*t):.5*r.bounceOut(2*t-1)+.5}};const i=r;var o=n(98026),a=n(89259),s=/cubic-bezier\(([0-9,\.e ]+)\)/;function u(t){var e=t&&s.exec(t);if(e){var n=e[1].split(","),r=+(0,o.trim)(n[0]),i=+(0,o.trim)(n[1]),u=+(0,o.trim)(n[2]),l=+(0,o.trim)(n[3]);if(isNaN(r+i+u+l))return;var c=[];return function(t){return t<=0?0:t>=1?1:(0,a._E)(0,r,u,1,t,c)&&(0,a.Yb)(0,i,l,1,c[0])}}}const l=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||o.noop,this.ondestroy=t.ondestroy||o.noop,this.onrestart=t.onrestart||o.noop,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,r=t-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=(0,o.isFunction)(t)?t:i[t]||u(t)},t}();var c=n(47698),h=n(38123);Math.round;h.A.hasGlobalWindow&&(0,o.isFunction)(window.btoa);var d=Array.prototype.slice;function f(t,e,n){return(e-t)*n+t}function p(t,e,n,r){for(var i=e.length,o=0;or?e:t,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;sa)r.length=a;else for(var s=o;s=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var r=this.keyframes,a=r.length,s=!1,l=6,h=e;if((0,o.isArrayLike)(e)){var d=function(t){return(0,o.isArrayLike)(t&&t[0])?2:1}(e);l=d,(1===d&&!(0,o.isNumber)(e[0])||2===d&&!(0,o.isNumber)(e[0][0]))&&(s=!0)}else if((0,o.isNumber)(e)&&!(0,o.eqNaN)(e))l=0;else if((0,o.isString)(e))if(isNaN(+e)){var f=c.parse(e);f&&(h=f,l=3)}else l=0;else if((0,o.isGradientObject)(e)){var p=(0,o.extend)({},h);p.colorStops=(0,o.map)(e.colorStops,(function(t){return{offset:t.offset,color:c.parse(t.color)}})),"linear"===e.type?l=4:function(t){return"radial"===t.type}(e)&&(l=5),h=p}0===a?this.valType=l:l===this.valType&&6!==l||(s=!0),this.discrete=this.discrete||s;var m={time:t,value:h,rawValue:e,percent:0};return n&&(m.easing=n,m.easingFunc=(0,o.isFunction)(n)?n:i[n]||u(n)),r.push(m),m},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=_(r),u=w(r),l=0;l=0&&!(l[n].percent<=e);n--);n=g(n,c-2)}else{for(n=m;ne);n++);n=g(n-1,c-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=e;var v=i.percent-r.percent,y=0===v?1:g((e-r.percent)/v,1);i.easingFunc&&(y=i.easingFunc(y));var b=a?this._additiveValue:d?S:t[h];if(!_(u)&&!d||b||(b=this._additiveValue=[]),this.discrete)t[h]=y<1?r.rawValue:i.rawValue;else if(_(u))1===u?p(b,r[s],i[s],y):function(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;a0&&s.addKeyframe(0,b(u),r),this._trackKeys.push(a)}s.addKeyframe(t,b(e[a]),r)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],r=this._maxTime||0,i=0;i1){var s=a.pop();i.addKeyframe(s.time,t[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}()},45825:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=n(38123).A.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)}},30536:(t,e,n)=>{"use strict";n.d(e,{A:()=>x});var r=n(73098),i=n(98026),o=n(15727),a=n(57861),s=n(53479),u=n(16104),l=n(29308),c=n(56448),h=n(59741);function d(t,e,n){var r=h.yh.createCanvas(),i=e.getWidth(),o=e.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",t)),r.width=i*n,r.height=o*n,r}const f=function(t){function e(e,n,o){var a,s=t.call(this)||this;s.motionBlur=!1,s.lastFrameAlpha=.7,s.dpr=1,s.virtual=!1,s.config={},s.incremental=!1,s.zlevel=0,s.maxRepaintRectCount=5,s.__dirty=!0,s.__firstTimePaint=!0,s.__used=!1,s.__drawIndex=0,s.__startIndex=0,s.__endIndex=0,s.__prevStartIndex=null,s.__prevEndIndex=null,o=o||r.Y5,"string"==typeof e?a=d(e,n,o):i.isObject(e)&&(e=(a=e).id),s.id=e,s.dom=a;var u=a.style;return u&&(i.disableUserSelect(a),a.onselectstart=function(){return!1},u.padding="0",u.margin="0",u.borderWidth="0"),s.painter=n,s.dpr=o,s}return(0,o.C6)(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=d("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,o=[],a=this.maxRepaintRectCount,s=!1,u=new l.A(0,0,0,0);function h(t){if(t.isFinite()&&!t.isZero())if(0===o.length){(e=new l.A(0,0,0,0)).copy(t),o.push(e)}else{for(var e,n=!1,r=1/0,i=0,c=0;c=a)}}for(var d=this.__startIndex;d15)break}n.prevElClipPaths&&l.restore()};if(d)if(0===d.length)s=u.__endIndex;else for(var x=f.dpr,w=0;w0&&t>r[0]){for(s=0;st);s++);a=n[r[s]]}if(r.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var u=a.dom;u.nextSibling?o.insertBefore(e.dom,u.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,r=0;r0?y:0),this._needsManuallyCompositing),h.__builtin__||i.logError("ZLevel "+l+" has been used by unkown layer "+h.id),h!==a&&(h.__used=!0,h.__startIndex!==o&&(h.__dirty=!0),h.__startIndex=o,h.incremental?h.__drawIndex=-1:h.__drawIndex=o,e(o),a=h),u.__dirty&c.M&&!u.__inHover&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__drawIndex=o))}e(o),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,i.each(this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?i.merge(n[t],e,!0):n[t]=e;for(var r=0;r{"use strict";n.d(e,{V$:()=>O,Xi:()=>P,ZQ:()=>x});var r=n(71519),i=n(68717),o=n(12191),a=n(53479),s=n(69099),u=n(90540),l=n(19845),c=n(98026);function h(t){var e,n,r=t.style,i=r.lineDash&&r.lineWidth>0&&(e=r.lineDash,n=r.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:(0,c.isNumber)(e)?[e]:(0,c.isArray)(e)?e:null:null),o=r.lineDashOffset;if(i){var a=r.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(i=(0,c.map)(i,(function(t){return t/a})),o/=a)}return[i,o]}var d=n(56448),f=n(59741),p=new i.A(!0);function m(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function g(t){return"string"==typeof t&&"none"!==t}function v(t){var e=t.fill;return null!=e&&"none"!==e}function y(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function b(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function x(t,e,n){var r=(0,o.OD)(e.image,e.__image,n);if((0,o.xA)(r)){var i=t.createPattern(r,e.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*c.RADIAN_TO_DEGREE),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}var w=["shadowBlur","shadowOffsetX","shadowOffsetY"],_=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function S(t,e,n,i,o){var a=!1;if(!i&&e===(n=n||{}))return!1;if(i||e.opacity!==n.opacity){I(t,o),a=!0;var s=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(s)?r.oN.opacity:s}(i||e.blend!==n.blend)&&(a||(I(t,o),a=!0),t.globalCompositeOperation=e.blend||r.oN.blend);for(var u=0;u{"use strict";function r(t){return isFinite(t)}function i(t,e,n){for(var i="radial"===e.type?function(t,e,n){var i=n.width,o=n.height,a=Math.min(i,o),s=null==e.x?.5:e.x,u=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(s=s*i+n.x,u=u*o+n.y,l*=a),s=r(s)?s:.5,u=r(u)?u:.5,l=l>=0&&r(l)?l:.5,t.createRadialGradient(s,u,0,s,u,l)}(t,e,n):function(t,e,n){var i=null==e.x?0:e.x,o=null==e.x2?1:e.x2,a=null==e.y?0:e.y,s=null==e.y2?0:e.y2;return e.global||(i=i*n.width+n.x,o=o*n.width+n.x,a=a*n.height+n.y,s=s*n.height+n.y),i=r(i)?i:0,o=r(o)?o:1,a=r(a)?a:0,s=r(s)?s:0,t.createLinearGradient(i,a,o,s)}(t,e,n),o=e.colorStops,a=0;ai,KU:()=>o,YC:()=>s})},73098:(t,e,n)=>{"use strict";n.d(e,{Y5:()=>i,_S:()=>a,el:()=>s,ps:()=>o,tY:()=>u});var r=1;n(38123).A.hasGlobalWindow&&(r=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var i=r,o=.4,a="#333",s="#ccc",u="#eee"},51183:(t,e,n)=>{"use strict";n.d(e,{l:()=>a});var r=n(76873),i=1e-8;function o(t,e){return Math.abs(t-e){"use strict";n.d(e,{NO:()=>l,RG:()=>s,X4:()=>p,ks:()=>d,ll:()=>c,lo:()=>f,sZ:()=>h});var r=n(29308),i=n(60501),o=n(59741),a={};function s(t,e){e=e||o.OH;var n=a[e];n||(n=a[e]=new i.Ay(500));var r=n.get(t);return null==r&&(r=o.yh.measureText(t,e).width,n.put(t,r)),r}function u(t,e,n,i){var o=s(t,e),a=d(e),u=c(0,o,n),l=h(0,a,i);return new r.A(u,l,o,a)}function l(t,e,n,i){var o=((t||"")+"").split("\n");if(1===o.length)return u(o[0],e,n,i);for(var a=new r.A(0,0,0,0),s=0;s=0?parseFloat(t)/100*e:parseFloat(t):t}function p(t,e,n){var r=e.position||"inside",i=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,u=n.x,l=n.y,c="left",h="top";if(r instanceof Array)u+=f(r[0],n.width),l+=f(r[1],n.height),c=null,h=null;else switch(r){case"left":u-=i,l+=s,c="right",h="middle";break;case"right":u+=i+a,l+=s,h="middle";break;case"top":u+=a/2,l-=i,c="center",h="bottom";break;case"bottom":u+=a/2,l+=o+i,c="center";break;case"inside":u+=a/2,l+=s,c="center",h="middle";break;case"insideLeft":u+=i,l+=s,h="middle";break;case"insideRight":u+=a-i,l+=s,c="right",h="middle";break;case"insideTop":u+=a/2,l+=i,c="center";break;case"insideBottom":u+=a/2,l+=o-i,c="center",h="bottom";break;case"insideTopLeft":u+=i,l+=i;break;case"insideTopRight":u+=a-i,l+=i,c="right";break;case"insideBottomLeft":u+=i,l+=o-i,h="bottom";break;case"insideBottomRight":u+=a-i,l+=o-i,c="right",h="bottom"}return(t=t||{}).x=u,t.y=l,t.align=c,t.verticalAlign=h,t}},41589:(t,e,n)=>{"use strict";n.d(e,{n:()=>i});var r=2*Math.PI;function i(t){return(t%=r)<0&&(t+=r),t}},76873:(t,e,n)=>{"use strict";function r(t,e,n,r,i,o){if(o>e&&o>r||oi?s:0}n.d(e,{A:()=>r})},29308:(t,e,n)=>{"use strict";n.d(e,{A:()=>f});var r=n(45587),i=n(26346),o=Math.min,a=Math.max,s=new i.A,u=new i.A,l=new i.A,c=new i.A,h=new i.A,d=new i.A;const f=function(){function t(t,e,n,r){n<0&&(t+=n,n=-n),r<0&&(e+=r,r=-r),this.x=t,this.y=e,this.width=n,this.height=r}return t.prototype.union=function(t){var e=o(t.x,this.x),n=o(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=a(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=a(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,o=r.create();return r.translate(o,o,[-e.x,-e.y]),r.scale(o,o,[n,i]),r.translate(o,o,[t.x,t.y]),o},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var r=this,o=r.x,a=r.x+r.width,s=r.y,u=r.y+r.height,l=e.x,c=e.x+e.width,f=e.y,p=e.y+e.height,m=!(av&&(v=_,yv&&(v=S,x=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],h=r[3],d=r[4],f=r[5];return e.x=n.x*i+d,e.y=n.y*h+f,e.width=n.width*i,e.height=n.height*h,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}s.x=l.x=n.x,s.y=c.y=n.y,u.x=c.x=n.x+n.width,u.y=l.y=n.y+n.height,s.transform(r),c.transform(r),u.transform(r),l.transform(r),e.x=o(s.x,u.x,l.x,c.x),e.y=o(s.y,u.y,l.y,c.y);var p=a(s.x,u.x,l.x,c.x),m=a(s.y,u.y,l.y,c.y);e.width=p-e.x,e.height=m-e.y}else e!==n&&t.copy(e,n)},t}()},57861:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof e&&(r=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),i[t]||(i[t]=[]);for(var a=0;a{"use strict";n.d(e,{Ay:()=>o});var r=function(t){this.value=t},i=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new r(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}();const o=function(){function t(t){this._list=new i,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,o=null;if(null==i[t]){var a=n.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var u=n.head;n.remove(u),delete i[u.key],o=u.value,this._lastRemovedEntry=u}s?s.value=e:s=new r(e),s.key=t,n.insertEntry(s),i[t]=s}return o},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}()},84716:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(26346),i=[0,0],o=[0,0],a=new r.A,s=new r.A;const u=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new r.A;for(n=0;n<2;n++)this._axes[n]=new r.A;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,o=t.x,a=t.y,s=o+t.width,u=a+t.height;if(n[0].set(o,a),n[1].set(s,a),n[2].set(s,u),n[3].set(o,u),e)for(var l=0;l<4;l++)n[l].transform(e);r.A.sub(i[0],n[1],n[0]),r.A.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(l=0;l<2;l++)this._origin[l]=i[l].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,i=!e;return a.set(1/0,1/0),s.set(0,0),!this._intersectCheckOneSide(this,t,a,s,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,a,s,i,-1)&&(n=!1,i)||i||r.A.copy(e,n?a:s),n},t.prototype._intersectCheckOneSide=function(t,e,n,a,s,u){for(var l=!0,c=0;c<2;c++){var h=this._axes[c];if(this._getProjMinMaxOnAxis(c,t._corners,i),this._getProjMinMaxOnAxis(c,e._corners,o),i[1]o[1]){if(l=!1,s)return l;var d=Math.abs(o[0]-i[1]),f=Math.abs(i[0]-o[1]);Math.min(d,f)>a.len()&&(d{"use strict";n.d(e,{A:()=>M,q:()=>A});var r=n(83509),i=n(29308),o=n(73098),a=n(48813),s=n(89259),u={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},l=[],c=[],h=[],d=[],f=[],p=[],m=Math.min,g=Math.max,v=Math.cos,y=Math.sin,b=Math.abs,x=Math.PI,w=2*x,_="undefined"!=typeof Float32Array,S=[];function E(t){return Math.round(t/x*1e8)/1e8%2*x}function A(t,e){var n=E(t[0]);n<0&&(n+=w);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=w?i=n+w:e&&n-i>=w?i=n-w:!e&&n>i?i=n+(w-E(n-i)):e&&n0&&(this._ux=b(n/o.Y5/t)||0,this._uy=b(n/o.Y5/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(u.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=b(t-this._xi),r=b(e-this._yi),i=n>this._ux||r>this._uy;if(this.addData(u.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){return this._drawPendingPt(),this.addData(u.C,t,e,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,r,i,o),this._xi=i,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,r){return this._drawPendingPt(),this.addData(u.Q,t,e,n,r),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,r),this._xi=n,this._yi=r,this},t.prototype.arc=function(t,e,n,r,i,o){this._drawPendingPt(),S[0]=r,S[1]=i,A(S,o),r=S[0];var a=(i=S[1])-r;return this.addData(u.A,t,e,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,r,i,o),this._xi=v(i)*n+t,this._yi=y(i)*n+e,this},t.prototype.arcTo=function(t,e,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,r,i),this},t.prototype.rect=function(t,e,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,r),this.addData(u.R,t,e,n,r),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(u.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!_||(this.data=new Float32Array(e));for(var n=0;nl.length&&(this._expandData(),l=this.data);for(var c=0;c0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){h[0]=h[1]=f[0]=f[1]=Number.MAX_VALUE,d[0]=d[1]=p[0]=p[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,o=0,s=0,l=0;for(t=0;tn||b(E)>r||f===e-1)&&(_=Math.sqrt(z*z+E*E),i=S,o=C);break;case u.C:var A=t[f++],M=t[f++],C=(S=t[f++],t[f++]),T=t[f++],k=t[f++];_=(0,s.h0)(i,o,A,M,S,C,T,k,10),i=T,o=k;break;case u.Q:A=t[f++],M=t[f++],S=t[f++],C=t[f++];_=(0,s.d8)(i,o,A,M,S,C,10),i=S,o=C;break;case u.A:var I=t[f++],N=t[f++],P=t[f++],O=t[f++],L=t[f++],R=t[f++],D=R+L;f+=1,x&&(a=v(L)*P+I,l=y(L)*O+N),_=g(P,O)*m(w,Math.abs(R)),i=v(D)*P+I,o=y(D)*O+N;break;case u.R:a=i=t[f++],l=o=t[f++],_=2*t[f++]+2*t[f++];break;case u.Z:var z=a-i;E=l-o;_=Math.sqrt(z*z+E*E),i=a,o=l}_>=0&&(c[d++]=_,h+=_)}return this._pathLen=h,h},t.prototype.rebuildPath=function(t,e){var n,r,i,o,a,h,d,f,p,x,w=this.data,_=this._ux,S=this._uy,E=this._len,A=e<1,M=0,C=0,T=0;if(!A||(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,f=e*this._pathLen))t:for(var k=0;k0&&(t.lineTo(p,x),T=0),I){case u.M:n=i=w[k++],r=o=w[k++],t.moveTo(i,o);break;case u.L:a=w[k++],h=w[k++];var P=b(a-i),O=b(h-o);if(P>_||O>S){if(A){if(M+(rt=d[C++])>f){var L=(f-M)/rt;t.lineTo(i*(1-L)+a*L,o*(1-L)+h*L);break t}M+=rt}t.lineTo(a,h),i=a,o=h,T=0}else{var R=P*P+O*O;R>T&&(p=a,x=h,T=R)}break;case u.C:var D=w[k++],z=w[k++],F=w[k++],B=w[k++],U=w[k++],j=w[k++];if(A){if(M+(rt=d[C++])>f){L=(f-M)/rt;(0,s.YT)(i,D,F,U,L,l),(0,s.YT)(o,z,B,j,L,c),t.bezierCurveTo(l[1],c[1],l[2],c[2],l[3],c[3]);break t}M+=rt}t.bezierCurveTo(D,z,F,B,U,j),i=U,o=j;break;case u.Q:D=w[k++],z=w[k++],F=w[k++],B=w[k++];if(A){if(M+(rt=d[C++])>f){L=(f-M)/rt;(0,s.kx)(i,D,F,L,l),(0,s.kx)(o,z,B,L,c),t.quadraticCurveTo(l[1],c[1],l[2],c[2]);break t}M+=rt}t.quadraticCurveTo(D,z,F,B),i=F,o=B;break;case u.A:var V=w[k++],H=w[k++],G=w[k++],W=w[k++],X=w[k++],Y=w[k++],q=w[k++],$=!w[k++],K=G>W?G:W,Z=b(G-W)>.001,Q=X+Y,J=!1;if(A)M+(rt=d[C++])>f&&(Q=X+Y*(f-M)/rt,J=!0),M+=rt;if(Z&&t.ellipse?t.ellipse(V,H,G,W,q,X,Q,$):t.arc(V,H,K,X,Q,$),J)break t;N&&(n=v(X)*G+V,r=y(X)*W+H),i=v(Q)*G+V,o=y(Q)*W+H;break;case u.R:n=i=w[k],r=o=w[k+1],a=w[k++],h=w[k++];var tt=w[k++],et=w[k++];if(A){if(M+(rt=d[C++])>f){var nt=f-M;t.moveTo(a,h),t.lineTo(a+m(nt,tt),h),(nt-=tt)>0&&t.lineTo(a+tt,h+m(nt,et)),(nt-=et)>0&&t.lineTo(a+g(tt-nt,0),h+et),(nt-=tt)>0&&t.lineTo(a,h+g(et-nt,0));break t}M+=rt}t.rect(a,h,tt,et);break;case u.Z:if(A){var rt;if(M+(rt=d[C++])>f){L=(f-M)/rt;t.lineTo(i*(1-L)+n*L,o*(1-L)+r*L);break t}M+=rt}t.closePath(),i=n,o=r}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=u,t.initDefaultProps=((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0)),t}()},26346:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,r){t.x=e.x+n.x*r,t.y=e.y+n.y*r},t.lerp=function(t,e,n,r){var i=1-r;t.x=i*e.x+r*n.x,t.y=i*e.y+r*n.y},t}()},92836:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>p,Wx:()=>f});var r=n(45587),i=n(83509),o=r.identity,a=5e-5;function s(t){return t>a||t<-5e-5}var u=[],l=[],c=r.create(),h=Math.abs,d=function(){function t(){}var e;return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return s(this.rotation)||s(this.x)||s(this.y)||s(this.scaleX-1)||s(this.scaleY-1)||s(this.skewX)||s(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||r.create(),e?this.getLocalTransform(n):o(n),t&&(e?r.mul(n,t,n):r.copy(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(o(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(u);var n=u[0]<0?-1:1,i=u[1]<0?-1:1,o=((u[0]-n)*e+n)/u[0]||0,a=((u[1]-i)*e+i)/u[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||r.create(),r.invert(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],r=Math.atan2(t[1],t[0]),i=Math.PI/2+r-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||r.create(),r.mul(l,t.invTransform,e),e=l);var n=this.originX,i=this.originY;(n||i)&&(c[4]=n,c[5]=i,r.mul(l,e,c),l[4]-=n,l[5]-=i,e=l),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],r=this.invTransform;return r&&i.applyTransform(n,n,r),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],r=this.transform;return r&&i.applyTransform(n,n,r),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&h(t[0]-1)>1e-10&&h(t[3]-1)>1e-10?Math.sqrt(h(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){!function(t,e){for(var n=0;n{"use strict";n.d(e,{A:()=>o});var r=Math.round(9*Math.random()),i="function"==typeof Object.defineProperty;const o=function(){function t(){this._id="__ec_inner_"+r++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return i?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},t.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}()},48813:(t,e,n)=>{"use strict";n.d(e,{$s:()=>b,BM:()=>v,Cr:()=>f,j6:()=>p,tW:()=>y});var r=n(83509),i=n(89259),o=Math.min,a=Math.max,s=Math.sin,u=Math.cos,l=2*Math.PI,c=r.create(),h=r.create(),d=r.create();function f(t,e,n){if(0!==t.length){for(var r=t[0],i=r[0],s=r[0],u=r[1],l=r[1],c=1;c1e-4)return p[0]=t-n,p[1]=e-i,m[0]=t+n,void(m[1]=e+i);if(c[0]=u(o)*n+t,c[1]=s(o)*i+e,h[0]=u(a)*n+t,h[1]=s(a)*i+e,g(p,c,h),v(m,c,h),(o%=l)<0&&(o+=l),(a%=l)<0&&(a+=l),o>a&&!f?a+=l:oo&&(d[0]=u(x)*n+t,d[1]=s(x)*i+e,g(p,d,p),v(m,d,m))}},89259:(t,e,n)=>{"use strict";n.d(e,{Et:()=>x,YT:()=>b,Yb:()=>m,_E:()=>v,d8:()=>T,gC:()=>A,h0:()=>w,k3:()=>_,kh:()=>C,kx:()=>M,lX:()=>y,qY:()=>E,rD:()=>g,z7:()=>S});var r=n(83509),i=Math.pow,o=Math.sqrt,a=1e-8,s=1e-4,u=o(3),l=1/3,c=(0,r.create)(),h=(0,r.create)(),d=(0,r.create)();function f(t){return t>-a&&ta||t<-a}function m(t,e,n,r,i){var o=1-i;return o*o*(o*t+3*i*e)+i*i*(i*r+3*o*n)}function g(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)}function v(t,e,n,r,a,s){var c=r+3*(e-n)-t,h=3*(n-2*e+t),d=3*(e-t),p=t-a,m=h*h-3*c*d,g=h*d-9*c*p,v=d*d-3*h*p,y=0;if(f(m)&&f(g)){if(f(h))s[0]=0;else(k=-d/h)>=0&&k<=1&&(s[y++]=k)}else{var b=g*g-4*m*v;if(f(b)){var x=g/m,w=-x/2;(k=-h/c+x)>=0&&k<=1&&(s[y++]=k),w>=0&&w<=1&&(s[y++]=w)}else if(b>0){var _=o(b),S=m*h+1.5*c*(-g+_),E=m*h+1.5*c*(-g-_);(k=(-h-((S=S<0?-i(-S,l):i(S,l))+(E=E<0?-i(-E,l):i(E,l))))/(3*c))>=0&&k<=1&&(s[y++]=k)}else{var A=(2*m*h-3*c*g)/(2*o(m*m*m)),M=Math.acos(A)/3,C=o(m),T=Math.cos(M),k=(-h-2*C*T)/(3*c),I=(w=(-h+C*(T+u*Math.sin(M)))/(3*c),(-h+C*(T-u*Math.sin(M)))/(3*c));k>=0&&k<=1&&(s[y++]=k),w>=0&&w<=1&&(s[y++]=w),I>=0&&I<=1&&(s[y++]=I)}}return y}function y(t,e,n,r,i){var a=6*n-12*e+6*t,s=9*e+3*r-3*t-9*n,u=3*e-3*t,l=0;if(f(s)){if(p(a))(h=-u/a)>=0&&h<=1&&(i[l++]=h)}else{var c=a*a-4*s*u;if(f(c))i[0]=-a/(2*s);else if(c>0){var h,d=o(c),m=(-a-d)/(2*s);(h=(-a+d)/(2*s))>=0&&h<=1&&(i[l++]=h),m>=0&&m<=1&&(i[l++]=m)}}return l}function b(t,e,n,r,i,o){var a=(e-t)*i+t,s=(n-e)*i+e,u=(r-n)*i+n,l=(s-a)*i+a,c=(u-s)*i+s,h=(c-l)*i+l;o[0]=t,o[1]=a,o[2]=l,o[3]=h,o[4]=h,o[5]=c,o[6]=u,o[7]=r}function x(t,e,n,i,a,u,l,f,p,g,v){var y,b,x,w,_,S=.005,E=1/0;c[0]=p,c[1]=g;for(var A=0;A<1;A+=.05)h[0]=m(t,n,a,l,A),h[1]=m(e,i,u,f,A),(w=(0,r.distSquare)(c,h))=0&&w=0&&h<=1&&(i[l++]=h)}else{var c=s*s-4*a*u;if(f(c))(h=-s/(2*a))>=0&&h<=1&&(i[l++]=h);else if(c>0){var h,d=o(c),m=(-s-d)/(2*a);(h=(-s+d)/(2*a))>=0&&h<=1&&(i[l++]=h),m>=0&&m<=1&&(i[l++]=m)}}return l}function A(t,e,n){var r=t+n-2*e;return 0===r?.5:(t-e)/r}function M(t,e,n,r,i){var o=(e-t)*r+t,a=(n-e)*r+e,s=(a-o)*r+o;i[0]=t,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function C(t,e,n,i,a,u,l,f,p){var m,g=.005,v=1/0;c[0]=l,c[1]=f;for(var y=0;y<1;y+=.05){h[0]=_(t,n,a,y),h[1]=_(e,i,u,y),(S=(0,r.distSquare)(c,h))=0&&S{"use strict";n.d(e,{Me:()=>p,ot:()=>h,oq:()=>c,lJ:()=>l});var r=n(38123),i=Math.log(2);function o(t,e,n,r,a,s){var u=r+"-"+a,l=t.length;if(s.hasOwnProperty(u))return s[u];if(1===e){var c=Math.round(Math.log((1<>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[s]+":0",i[u]+":0",r[1-s]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,u),c=function(t,e,n){for(var r=n?"invTrans":"trans",i=e[r],o=e.srcCoords,s=[],u=[],l=!0,c=0;c<4;c++){var h=t[c].getBoundingClientRect(),d=2*c,f=h.left,p=h.top;s.push(f,p),l=l&&o&&f===o[d]&&p===o[d+1],u.push(t[c].offsetLeft,t[c].offsetTop)}return l&&i?i:(e.srcCoords=s,e[r]=n?a(u,s):a(s,u))}(l,u,o);if(c)return c(t,n,i),!0}return!1}function h(t){return"CANVAS"===t.nodeName.toUpperCase()}var d=/([&<>"'])/g,f={"&":"&","<":"<",">":">",'"':""","'":"'"};function p(t){return null==t?"":(t+"").replace(d,(function(t,e){return f[e]}))}},38123:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},i=new function(){this.browser=new r,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(i.wxa=!0,i.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?i.worker=!0:"undefined"==typeof navigator||0===navigator.userAgent.indexOf("Node.js")?(i.node=!0,i.svgSupported=!0):function(t,e){var n=e.browser,r=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);r&&(n.firefox=!0,n.version=r[1]);i&&(n.ie=!0,n.version=i[1]);o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18);a&&(n.weChat=!0);e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,i);const o=i},35452:(t,e,n)=>{"use strict";n.d(e,{W5:()=>m,Yo:()=>u,ds:()=>p,e0:()=>h,f:()=>f,mK:()=>c,q2:()=>d});var r=n(38123),i=n(29687),o=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,a=[],s=r.A.browser.firefox&&+r.A.browser.version.split(".")[0]<39;function u(t,e,n,r){return n=n||{},r?l(t,e,n):s&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):l(t,e,n),n}function l(t,e,n){if(r.A.domSupported&&t.getBoundingClientRect){var o=e.clientX,s=e.clientY;if((0,i.ot)(t)){var u=t.getBoundingClientRect();return n.zrX=o-u.left,void(n.zrY=s-u.top)}if((0,i.oq)(a,t,o,s))return n.zrX=a[0],void(n.zrY=a[1])}n.zrX=n.zrY=0}function c(t){return t||window.event}function h(t,e,n){if(null!=(e=c(e)).zrX)return e;var r=e.type;if(r&&r.indexOf("touch")>=0){var i="touchend"!==r?e.targetTouches[0]:e.changedTouches[0];i&&u(t,i,e,n)}else{u(t,e,e,n);var a=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(null==n||null==r)return e;return 3*(0!==r?Math.abs(r):Math.abs(n))*(r>0?-1:r<0?1:n>0?-1:1)}(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&o.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function d(t,e,n,r){t.addEventListener(e,n,r)}function f(t,e,n,r){t.removeEventListener(e,n,r)}var p=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function m(t){return 2===t.which||3===t.which}},45587:(t,e,n)=>{"use strict";function r(){return[1,0,0,1,0,0]}function i(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function a(t,e,n){var r=e[0]*n[0]+e[2]*n[1],i=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],u=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=u,t}function s(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function u(t,e,n,r){void 0===r&&(r=[0,0]);var i=e[0],o=e[2],a=e[4],s=e[1],u=e[3],l=e[5],c=Math.sin(n),h=Math.cos(n);return t[0]=i*h+s*c,t[1]=-i*c+s*h,t[2]=o*h+u*c,t[3]=-o*c+h*u,t[4]=h*(a-r[0])+c*(l-r[1])+r[0],t[5]=h*(l-r[1])-c*(a-r[0])+r[1],t}function l(t,e,n){var r=n[0],i=n[1];return t[0]=e[0]*r,t[1]=e[1]*i,t[2]=e[2]*r,t[3]=e[3]*i,t[4]=e[4]*r,t[5]=e[5]*i,t}function c(t,e){var n=e[0],r=e[2],i=e[4],o=e[1],a=e[3],s=e[5],u=n*a-o*r;return u?(u=1/u,t[0]=a*u,t[1]=-o*u,t[2]=-r*u,t[3]=n*u,t[4]=(r*s-a*i)*u,t[5]=(o*i-n*s)*u,t):null}function h(t){var e=[1,0,0,1,0,0];return o(e,t),e}n.r(e),n.d(e,{clone:()=>h,copy:()=>o,create:()=>r,identity:()=>i,invert:()=>c,mul:()=>a,rotate:()=>u,scale:()=>l,translate:()=>s})},59741:(t,e,n)=>{"use strict";n.d(e,{Gs:()=>l,OH:()=>i,gI:()=>r,yh:()=>u});var r=12,i=r+"px sans-serif";var o,a,s=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n=0)h=c*t.length;else for(var d=0;d{"use strict";n.d(e,{A:()=>c});var r=32,i=7;function o(t,e,n,r){var i=e+1;if(i===n)return 1;if(r(t[i++],t[e])<0){for(;i=0;)i++;return i-e}function a(t,e,n,r,i){for(r===e&&r++;r>>1])<0?u=o:s=o+1;var l=r-s;switch(l){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;l>0;)t[s+l]=t[s+l-1],l--}t[s]=a}}function s(t,e,n,r,i,o){var a=0,s=0,u=1;if(o(t,e[n+i])>0){for(s=r-i;u0;)a=u,(u=1+(u<<1))<=0&&(u=s);u>s&&(u=s),a+=i,u+=i}else{for(s=i+1;us&&(u=s);var l=a;a=i-u,u=i-l}for(a++;a>>1);o(t,e[n+c])>0?a=c+1:u=c}return u}function u(t,e,n,r,i,o){var a=0,s=0,u=1;if(o(t,e[n+i])<0){for(s=i+1;us&&(u=s);var l=a;a=i-u,u=i-l}else{for(s=r-i;u=0;)a=u,(u=1+(u<<1))<=0&&(u=s);u>s&&(u=s),a+=i,u+=i}for(a++;a>>1);o(t,e[n+c])<0?u=c:a=c+1}return u}function l(t,e){var n,r,o=i,a=0,l=[];function c(c){var h=n[c],d=r[c],f=n[c+1],p=r[c+1];r[c]=d+p,c===a-3&&(n[c+1]=n[c+2],r[c+1]=r[c+2]),a--;var m=u(t[f],t,h,d,0,e);h+=m,0!==(d-=m)&&0!==(p=s(t[h+d-1],t,f,p,p-1,e))&&(d<=p?function(n,r,a,c){var h=0;for(h=0;h=i||g>=i);if(v)break;y<0&&(y=0),y+=2}if((o=y)<1&&(o=1),1===r){for(h=0;h=0;h--)t[g+h]=t[m+h];return void(t[p]=l[f])}var v=o;for(;;){var y=0,b=0,x=!1;do{if(e(l[f],t[d])<0){if(t[p--]=t[d--],y++,b=0,0==--r){x=!0;break}}else if(t[p--]=l[f--],b++,y=0,1==--c){x=!0;break}}while((y|b)=0;h--)t[g+h]=t[m+h];if(0===r){x=!0;break}}if(t[p--]=l[f--],1==--c){x=!0;break}if(0!==(b=c-s(t[d],l,0,c,c-1,e))){for(c-=b,g=(p-=b)+1,m=(f-=b)+1,h=0;h=i||b>=i);if(x)break;v<0&&(v=0),v+=2}(o=v)<1&&(o=1);if(1===c){for(g=(p-=r)+1,m=(d-=r)+1,h=r-1;h>=0;h--)t[g+h]=t[m+h];t[p]=l[f]}else{if(0===c)throw new Error;for(m=p-(c-1),h=0;h1;){var t=a-2;if(t>=1&&r[t-1]<=r[t]+r[t+1]||t>=2&&r[t-2]<=r[t]+r[t-1])r[t-1]r[t+1])break;c(t)}},forceMergeRuns:function(){for(;a>1;){var t=a-2;t>0&&r[t-1]=r;)e|=1&t,t>>=1;return t+e}(s);do{if((u=o(t,n,i,e))h&&(d=h),a(t,n,n+d,n+u,e),u=d}c.pushRun(n,u),c.mergeRuns(),s-=u,n+=u}while(0!==s);c.forceMergeRuns()}}}},98026:(t,e,n)=>{"use strict";n.r(e),n.d(e,{HashMap:()=>st,RADIAN_TO_DEGREE:()=>pt,assert:()=>tt,bind:()=>L,clone:()=>y,concatArray:()=>lt,createCanvas:()=>S,createHashMap:()=>ut,createObject:()=>ct,curry:()=>R,defaults:()=>_,disableUserSelect:()=>ht,each:()=>T,eqNaN:()=>q,extend:()=>w,filter:()=>N,find:()=>P,guid:()=>g,hasOwn:()=>dt,indexOf:()=>E,inherits:()=>A,isArray:()=>D,isArrayLike:()=>C,isBuiltInObject:()=>V,isDom:()=>G,isFunction:()=>z,isGradientObject:()=>W,isImagePatternObject:()=>X,isNumber:()=>U,isObject:()=>j,isPrimitive:()=>it,isRegExp:()=>Y,isString:()=>F,isStringSafe:()=>B,isTypedArray:()=>H,keys:()=>O,logError:()=>v,map:()=>k,merge:()=>b,mergeAll:()=>x,mixin:()=>M,noop:()=>ft,normalizeCssArray:()=>J,reduce:()=>I,retrieve:()=>$,retrieve2:()=>K,retrieve3:()=>Z,setAsPrimitive:()=>rt,slice:()=>Q,trim:()=>et});var r=n(59741),i=I(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),o=I(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),a=Object.prototype.toString,s=Array.prototype,u=s.forEach,l=s.filter,c=s.slice,h=s.map,d=function(){}.constructor,f=d?d.prototype:null,p="__proto__",m=2311;function g(){return m++}function v(){for(var t=[],e=0;e{"use strict";function r(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function i(t,e){return t[0]=e[0],t[1]=e[1],t}function o(t){return[t[0],t[1]]}function a(t,e,n){return t[0]=e,t[1]=n,t}function s(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function u(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function l(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function c(t){return Math.sqrt(d(t))}n.r(e),n.d(e,{add:()=>s,applyTransform:()=>A,clone:()=>o,copy:()=>i,create:()=>r,dist:()=>x,distSquare:()=>_,distance:()=>b,distanceSquare:()=>w,div:()=>m,dot:()=>g,len:()=>c,lenSquare:()=>d,length:()=>h,lengthSquare:()=>f,lerp:()=>E,max:()=>C,min:()=>M,mul:()=>p,negate:()=>S,normalize:()=>y,scale:()=>v,scaleAndAdd:()=>u,set:()=>a,sub:()=>l});var h=c;function d(t){return t[0]*t[0]+t[1]*t[1]}var f=d;function p(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function m(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function g(t,e){return t[0]*e[0]+t[1]*e[1]}function v(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function y(t,e){var n=c(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function b(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var x=b;function w(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var _=w;function S(t,e){return t[0]=-e[0],t[1]=-e[1],t}function E(t,e,n,r){return t[0]=e[0]+r*(n[0]-e[0]),t[1]=e[1]+r*(n[1]-e[1]),t}function A(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function M(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function C(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}},82591:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(15727),i=n(69099);const o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return(0,r.C6)(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n{"use strict";n.d(e,{Ay:()=>g,oN:()=>l,sW:()=>c});var r=n(15727),i=n(62454),o=n(29308),a=n(98026),s=n(56448),u="__zr_style_"+Math.round(10*Math.random()),l={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},c={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};l[u]=!0;var h=["z","z2","invisible"],d=["invisible"],f=function(t){function e(e){return t.call(this,e)||this}var n;return(0,r.C6)(e,t),e.prototype._init=function(e){for(var n=(0,a.keys)(e),r=0;r{"use strict";n.d(e,{A:()=>r});const r=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}()},43870:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(15727),i=n(98026),o=n(62454),a=n(29308),s=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return(0,r.C6)(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n=0&&(n.splice(r,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=i.indexOf(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,r=n[e];if(t&&t!==this&&t.parent!==this&&t!==r){n[e]=t,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,r=i.indexOf(n,t);return r<0||(n.splice(r,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n{"use strict";n.d(e,{Ay:()=>c});var r=n(15727),i=n(71519),o=n(29308),a=n(98026),s=(0,a.defaults)({x:0,y:0},i.oN),u={style:(0,a.defaults)({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},i.sW.style)};var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.C6)(e,t),e.prototype.createStyle=function(t){return(0,a.createObject)(s,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var r,i=(r=e.image)&&"string"!=typeof r&&r.width&&r.height?e.image:this.__image;if(!i)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?i[t]:i[t]/i[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return u},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new o.A(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(i.Ay);l.prototype.type="image";const c=l},2995:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(15727),i=n(71519),o=n(29308),a=[];const s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return(0,r.C6)(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n{"use strict";n.d(e,{A:()=>i});var r=n(15727);const i=function(t){function e(e,n,r,i,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==r?1:r,s.y2=null==i?0:i,s.type="linear",s.global=a||!1,s}return(0,r.C6)(e,t),e}(n(11793).A)},69099:(t,e,n)=>{"use strict";n.d(e,{MW:()=>T,Ay:()=>N});var r=n(15727),i=n(71519),o=n(68717);function a(t,e,n,r,i,o,a){if(0===i)return!1;var s=i,u=0;if(a>e+s&&a>r+s||at+s&&o>n+s||oe+d&&h>r+d&&h>o+d&&h>u+d||ht+d&&c>n+d&&c>i+d&&c>a+d||ce+c&&l>r+c&&l>o+c||lt+c&&u>n+c&&u>i+c||un||d+li&&(i+=h);var p=Math.atan2(u,s);return p<0&&(p+=h),p>=r&&p<=i||p+h>=r&&p+h<=i}var f=n(76873),p=o.A.CMD,m=2*Math.PI,g=1e-4;var v=[-1,-1,-1],y=[-1,-1];function b(t,e,n,r,i,o,a,u,l,c){if(c>e&&c>r&&c>o&&c>u||c1&&(h=void 0,h=y[0],y[0]=y[1],y[1]=h),m=s.Yb(e,r,o,u,y[0]),p>1&&(g=s.Yb(e,r,o,u,y[1]))),2===p?xe&&u>r&&u>o||u=0&&c<=1){for(var h=0,d=s.k3(e,r,o,c),f=0;fn||s<-n)return 0;var u=Math.sqrt(n*n-s*s);v[0]=-u,v[1]=u;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=m-1e-4){r=0,i=m;var c=o?1:-1;return a>=v[0]+t&&a<=v[1]+t?c:0}if(r>i){var h=r;r=i,i=h}r<0&&(r+=m,i+=m);for(var d=0,f=0;f<2;f++){var p=v[f];if(p+t>a){var g=Math.atan2(s,p);c=o?1:-1;g<0&&(g=m+g),(g>=r&&g<=i||g+m>=r&&g+m<=i)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),d+=c)}}return d}function _(t,e,n,r,i){for(var o,s,c,h,m=t.data,v=t.len(),y=0,_=0,S=0,E=0,A=0,M=0;M1&&(n||(y+=(0,f.A)(_,S,E,A,r,i))),T&&(E=_=m[M],A=S=m[M+1]),C){case p.M:_=E=m[M++],S=A=m[M++];break;case p.L:if(n){if(a(_,S,m[M],m[M+1],e,r,i))return!0}else y+=(0,f.A)(_,S,m[M],m[M+1],r,i)||0;_=m[M++],S=m[M++];break;case p.C:if(n){if(u(_,S,m[M++],m[M++],m[M++],m[M++],m[M],m[M+1],e,r,i))return!0}else y+=b(_,S,m[M++],m[M++],m[M++],m[M++],m[M],m[M+1],r,i)||0;_=m[M++],S=m[M++];break;case p.Q:if(n){if(l(_,S,m[M++],m[M++],m[M],m[M+1],e,r,i))return!0}else y+=x(_,S,m[M++],m[M++],m[M],m[M+1],r,i)||0;_=m[M++],S=m[M++];break;case p.A:var k=m[M++],I=m[M++],N=m[M++],P=m[M++],O=m[M++],L=m[M++];M+=1;var R=!!(1-m[M++]);o=Math.cos(O)*N+k,s=Math.sin(O)*P+I,T?(E=o,A=s):y+=(0,f.A)(_,S,o,s,r,i);var D=(r-k)*P/N+k;if(n){if(d(k,I,P,O,O+L,R,e,D,i))return!0}else y+=w(k,I,P,O,O+L,R,D,i);_=Math.cos(O+L)*N+k,S=Math.sin(O+L)*P+I;break;case p.R:if(E=_=m[M++],A=S=m[M++],o=E+m[M++],s=A+m[M++],n){if(a(E,A,o,A,e,r,i)||a(o,A,o,s,e,r,i)||a(o,s,E,s,e,r,i)||a(E,s,E,A,e,r,i))return!0}else y+=(0,f.A)(o,A,o,s,r,i),y+=(0,f.A)(E,s,E,A,r,i);break;case p.Z:if(n){if(a(_,S,E,A,e,r,i))return!0}else y+=(0,f.A)(_,S,E,A,r,i);_=E,S=A}}return n||(c=S,h=A,Math.abs(c-h).5?A._S:e>.2?A.tY:A.el}if(t)return A.el}return A._S},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if((0,S.isString)(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())===(0,E.lum)(t,0)0))},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&M.Dl)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),t=i.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;s=Math.max(s,null==u?4:u)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect(),i=this.style;if(t=n[0],e=n[1],r.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,n,r){return _(t,e,!0,n,r)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,n){return _(t,0,!1,e,n)}(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=M.Dl,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:(0,S.extend)(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&M.Dl)},e.prototype.createStyle=function(t){return(0,S.createObject)(T,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=(0,S.extend)({},this.shape))},e.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var s,u=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=(0,S.extend)({},r.shape),(0,S.extend)(s,n.shape)):(s=(0,S.extend)({},i?this.shape:r.shape),(0,S.extend)(s,n.shape)):u&&(s=r.shape),s)if(o){this.shape=(0,S.extend)({},this.shape);for(var l={},c=(0,S.keys)(s),h=0;h{"use strict";n.d(e,{A:()=>i});var r=n(15727);const i=function(t){function e(e,n,r,i,o){var a=t.call(this,i)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==r?.5:r,a.type="radial",a.global=o||!1,a}return(0,r.C6)(e,t),e}(n(11793).A)},19845:(t,e,n)=>{"use strict";n.d(e,{A:()=>h});var r=n(15727),i=n(71519),o=n(45558),a=n(69099),s=n(98026),u=n(59741),l=(0,s.defaults)({strokeFirst:!0,font:u.OH,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},a.MW),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.C6)(e,t),e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return(0,s.createObject)(l,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=(0,o.NO)(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var r=t.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(i.Ay);c.prototype.type="tspan";const h=c},32322:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>C});var r=n(15727),i=n(62406),o=n(19845),a=n(98026),s=n(45558),u=n(90540),l=n(30010),c=n(29308),h=n(71519),d=n(59741),f={fill:"#000"},p={style:(0,a.defaults)({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},h.sW.style)},m=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=f,n.attr(e),n}return(0,r.C6)(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,z=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),F=a.calculatedLineHeight,B=0;B=0&&"right"===(P=_[N]).align;)this._placeToken(P,t,E,v,I,"right",b),C-=P.width,I-=P.width,N--;for(k+=(r-(k-g)-(y-I)-C)/2;T<=N;)P=_[T],this._placeToken(P,t,E,v,k+P.width/2,"center",b),k+=P.width,T++;v+=E}},e.prototype._placeToken=function(t,e,n,r,i,u,l){var h=e.rich[t.styleName]||{};h.text=t.text;var f=t.verticalAlign,p=r+n/2;"top"===f?p=r+t.height/2:"bottom"===f&&(p=r+n-t.height/2),!t.isLineHolder&&M(h)&&this._renderBackground(h,e,"right"===u?i-t.width:"center"===u?i-t.width/2:i,p-t.height/2,t.width,t.height);var m=!!h.backgroundColor,g=t.textPadding;g&&(i=E(i,u,g),p-=t.height/2-g[0]-t.innerHeight/2);var v=this._getOrCreateChild(o.A),y=v.createStyle();v.useStyle(y);var b=this._defaultStyle,w=!1,A=0,C=S("fill"in h?h.fill:"fill"in e?e.fill:(w=!0,b.fill)),T=_("stroke"in h?h.stroke:"stroke"in e?e.stroke:m||l||b.autoStroke&&!w?null:(A=2,b.stroke)),k=h.textShadowBlur>0||e.textShadowBlur>0;y.text=t.text,y.x=i,y.y=p,k&&(y.shadowBlur=h.textShadowBlur||e.textShadowBlur||0,y.shadowColor=h.textShadowColor||e.textShadowColor||"transparent",y.shadowOffsetX=h.textShadowOffsetX||e.textShadowOffsetX||0,y.shadowOffsetY=h.textShadowOffsetY||e.textShadowOffsetY||0),y.textAlign=u,y.textBaseline="middle",y.font=t.font||d.OH,y.opacity=(0,a.retrieve3)(h.opacity,e.opacity,1),x(y,h),T&&(y.lineWidth=(0,a.retrieve3)(h.lineWidth,e.lineWidth,A),y.lineDash=(0,a.retrieve2)(h.lineDash,e.lineDash),y.lineDashOffset=e.lineDashOffset||0,y.stroke=T),C&&(y.fill=C);var I=t.contentWidth,N=t.contentHeight;v.setBoundingRect(new c.A((0,s.ll)(y.x,I,y.textAlign),(0,s.sZ)(y.y,N,y.textBaseline),I,N))},e.prototype._renderBackground=function(t,e,n,r,i,o){var s,c,h,d=t.backgroundColor,f=t.borderWidth,p=t.borderColor,m=d&&d.image,g=d&&!m,v=t.borderRadius,y=this;if(g||t.lineHeight||f&&p){(s=this._getOrCreateChild(l.A)).useStyle(s.createStyle()),s.style.fill=null;var b=s.shape;b.x=n,b.y=r,b.width=i,b.height=o,b.r=v,s.dirtyShape()}if(g)(h=s.style).fill=d||null,h.fillOpacity=(0,a.retrieve2)(t.fillOpacity,1);else if(m){(c=this._getOrCreateChild(u.Ay)).onload=function(){y.dirtyStyle()};var x=c.style;x.image=d.image,x.x=n,x.y=r,x.width=i,x.height=o}f&&p&&((h=s.style).lineWidth=f,h.stroke=p,h.strokeOpacity=(0,a.retrieve2)(t.strokeOpacity,1),h.lineDash=t.borderDash,h.lineDashOffset=t.borderDashOffset||0,s.strokeContainThreshold=0,s.hasFill()&&s.hasStroke()&&(h.strokeFirst=!0,h.lineWidth*=2));var w=(s||c).style;w.shadowBlur=t.shadowBlur||0,w.shadowColor=t.shadowColor||"transparent",w.shadowOffsetX=t.shadowOffsetX||0,w.shadowOffsetY=t.shadowOffsetY||0,w.opacity=(0,a.retrieve3)(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return function(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}(t)&&(e=[t.fontStyle,t.fontWeight,b(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&(0,a.trim)(e)||t.textFont||t.font},e}(h.Ay),g={left:!0,right:1,center:1},v={top:1,bottom:1,middle:1},y=["fontStyle","fontWeight","fontSize","fontFamily"];function b(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?d.gI+"px":t+"px":t}function x(t,e){for(var n=0;n{"use strict";n.d(e,{Dl:()=>o,M:()=>r,pO:()=>i});var r=1,i=2,o=4},12191:(t,e,n)=>{"use strict";n.d(e,{OD:()=>s,SR:()=>a,xA:()=>l});var r=n(60501),i=n(59741),o=new r.Ay(50);function a(t){if("string"==typeof t){var e=o.get(t);return e&&e.image}return t}function s(t,e,n,r,a){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var s=o.get(t),c={hostEl:n,cb:r,cbPayload:a};return s?!l(e=s.image)&&s.pending.push(c):((e=i.yh.loadImage(t,u,u)).__zrImageSrc=t,o.put(t,e.__cachedImgObj={image:e,pending:[c]})),e}return t}return e}function u(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e{"use strict";n.d(e,{EJ:()=>s,FQ:()=>m,j_:()=>h});var r=n(12191),i=n(98026),o=n(45558),a=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function s(t,e,n,r,i){if(!e)return"";var o=(t+"").split("\n");i=u(e,n,r,i);for(var a=0,s=o.length;a=u;c++)l-=u;var h=(0,o.RG)(n,e);return h>l&&(n="",h=0),l=t-h,a.ellipsis=n,a.ellipsisWidth=h,a.contentWidth=l,a.containerWidth=t,a}function l(t,e){var n=e.containerWidth,r=e.font,i=e.contentWidth;if(!n)return"";var a=(0,o.RG)(t,r);if(a<=n)return t;for(var s=0;;s++){if(a<=i||s>=e.maxIterations){t+=e.ellipsis;break}var u=0===s?c(t,i,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(t.length*i/a):0;t=t.substr(0,u),a=(0,o.RG)(t,r)}return""===t&&(t=e.placeholder),t}function c(t,e,n,r){for(var i=0,o=0,a=t.length;ov&&p){var y=Math.floor(v/d);n=n.slice(0,y)}if(t&&c&&null!=m)for(var x=u(m,s,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),w=0;wf&&g(n,t.substring(f,m),e,d),g(n,u[2],e,d,u[1]),f=a.lastIndex}fc){T>0?(A.tokens=A.tokens.slice(0,T),S(A,C,M),n.lines=n.lines.slice(0,E+1)):n.lines=n.lines.slice(0,E);break t}var L=k.width,R=null==L||"auto"===L;if("string"==typeof L&&"%"===L.charAt(L.length-1))B.percentWidth=L,v.push(B),B.contentWidth=(0,o.RG)(B.text,P);else{if(R){var D=k.backgroundColor,z=D&&D.image;z&&(z=r.SR(z),r.xA(z)&&(B.width=Math.max(B.width,z.width*O/z.height)))}var F=w&&null!=l?l-C:null;null!=F&&F0&&v+r.accumWidth>r.width&&(a=e.split("\n"),p=!0),r.accumWidth=v}else{var y=b(e,h,r.width,r.breakAll,r.accumWidth);r.accumWidth=y.accumWidth+g,s=y.linesWidths,a=y.lines}}else a=e.split("\n");for(var x=0;x=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}(t)||!!v[t]}function b(t,e,n,r,i){for(var a=[],s=[],u="",l="",c=0,h=0,d=0;dn:i+h+p>n)?h?(u||l)&&(m?(u||(u=l,l="",h=c=0),a.push(u),s.push(h-c),l+=f,u="",h=c+=p):(l&&(u+=l,l="",c=0),a.push(u),s.push(h),u=f,h=p)):m?(a.push(l),s.push(c),l=f,c=p):(a.push(f),s.push(p)):(h+=p,m?(l+=f,c+=p):(l&&(u+=l,l="",c=0),u+=f))}else l&&(u+=l,h+=c),a.push(u),s.push(h),u="",l="",c=0,h=0}return a.length||u||(u=t,l="",c=0),l&&(u+=l),u&&(a.push(u),s.push(h)),1===a.length&&(h+=i),{accumWidth:h,lines:a,linesWidths:s}}},59184:(t,e,n)=>{"use strict";n.d(e,{U:()=>i});var r=n(83509);function i(t,e,n){var i=e.smooth,o=e.points;if(o&&o.length>=2){if(i){var a=function(t,e,n,i){var o,a,s,u,l=[],c=[],h=[],d=[];if(i){s=[1/0,1/0],u=[-1/0,-1/0];for(var f=0,p=t.length;f{"use strict";n.d(e,{M7:()=>a,Op:()=>o,eB:()=>i});var r=Math.round;function i(t,e,n){if(e){var i=e.x1,o=e.x2,s=e.y1,u=e.y2;t.x1=i,t.x2=o,t.y1=s,t.y2=u;var l=n&&n.lineWidth;return l?(r(2*i)===r(2*o)&&(t.x1=t.x2=a(i,l,!0)),r(2*s)===r(2*u)&&(t.y1=t.y2=a(s,l,!0)),t):t}}function o(t,e,n){if(e){var r=e.x,i=e.y,o=e.width,s=e.height;t.x=r,t.y=i,t.width=o,t.height=s;var u=n&&n.lineWidth;return u?(t.x=a(r,u,!0),t.y=a(i,u,!0),t.width=Math.max(a(r+o,u,!1)-t.x,0===o?0:1),t.height=Math.max(a(i+s,u,!1)-t.y,0===s?0:1),t):t}}function a(t,e,n){if(!e)return t;var i=r(2*t);return(i+r(e))%2==0?i/2:(i+(n?1:-1))/2}},43471:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(15727),i=n(69099),o=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},a=function(t){function e(e){return t.call(this,e)||this}return(0,r.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,u=Math.cos(o),l=Math.sin(o);t.moveTo(u*i+n,l*i+r),t.arc(n,r,i,o,a,!s)},e}(i.Ay);a.prototype.type="arc";const s=a},53849:(t,e,n)=>{"use strict";n.d(e,{A:()=>h});var r=n(15727),i=n(69099),o=n(83509),a=n(89259),s=[],u=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function l(t,e,n){var r=t.cpx2,i=t.cpy2;return null!=r||null!=i?[(n?a.rD:a.Yb)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?a.rD:a.Yb)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?a.z7:a.k3)(t.x1,t.cpx1,t.x2,e),(n?a.z7:a.k3)(t.y1,t.cpy1,t.y2,e)]}var c=function(t){function e(e){return t.call(this,e)||this}return(0,r.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new u},e.prototype.buildPath=function(t,e){var n=e.x1,r=e.y1,i=e.x2,o=e.y2,u=e.cpx1,l=e.cpy1,c=e.cpx2,h=e.cpy2,d=e.percent;0!==d&&(t.moveTo(n,r),null==c||null==h?(d<1&&((0,a.kx)(n,u,i,d,s),u=s[1],i=s[2],(0,a.kx)(r,l,o,d,s),l=s[1],o=s[2]),t.quadraticCurveTo(u,l,i,o)):(d<1&&((0,a.YT)(n,u,c,i,d,s),u=s[1],c=s[2],i=s[3],(0,a.YT)(r,l,h,o,d,s),l=s[1],h=s[2],o=s[3]),t.bezierCurveTo(u,l,c,h,i,o)))},e.prototype.pointAt=function(t){return l(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=l(this.shape,t,!0);return o.normalize(e,e)},e}(i.Ay);c.prototype.type="bezier-curve";const h=c},31571:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(15727),i=n(69099),o=function(){this.cx=0,this.cy=0,this.r=0},a=function(t){function e(e){return t.call(this,e)||this}return(0,r.C6)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(i.Ay);a.prototype.type="circle";const s=a},18393:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(15727),i=n(69099),o=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},a=function(t){function e(e){return t.call(this,e)||this}return(0,r.C6)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=.5522848,r=e.cx,i=e.cy,o=e.rx,a=e.ry,s=o*n,u=a*n;t.moveTo(r-o,i),t.bezierCurveTo(r-o,i-u,r-s,i-a,r,i-a),t.bezierCurveTo(r+s,i-a,r+o,i-u,r+o,i),t.bezierCurveTo(r+o,i+u,r+s,i+a,r,i+a),t.bezierCurveTo(r-s,i+a,r-o,i+u,r-o,i),t.closePath()},e}(i.Ay);a.prototype.type="ellipse";const s=a},82861:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var r=n(15727),i=n(69099),o=n(14865),a={},s=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},u=function(t){function e(e){return t.call(this,e)||this}return(0,r.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new s},e.prototype.buildPath=function(t,e){var n,r,i,s;if(this.subPixelOptimize){var u=(0,o.eB)(a,e,this.style);n=u.x1,r=u.y1,i=u.x2,s=u.y2}else n=e.x1,r=e.y1,i=e.x2,s=e.y2;var l=e.percent;0!==l&&(t.moveTo(n,r),l<1&&(i=n*(1-l)+i*l,s=r*(1-l)+s*l),t.lineTo(i,s))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(i.Ay);u.prototype.type="line";const l=u},52505:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(15727),i=n(69099),o=n(59184),a=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},s=function(t){function e(e){return t.call(this,e)||this}return(0,r.C6)(e,t),e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){o.U(t,e,!0)},e}(i.Ay);s.prototype.type="polygon";const u=s},39195:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(15727),i=n(69099),o=n(59184),a=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},s=function(t){function e(e){return t.call(this,e)||this}return(0,r.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){o.U(t,e,!1)},e}(i.Ay);s.prototype.type="polyline";const u=s},30010:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var r=n(15727),i=n(69099);var o=n(14865),a=function(){this.x=0,this.y=0,this.width=0,this.height=0},s={},u=function(t){function e(e){return t.call(this,e)||this}return(0,r.C6)(e,t),e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){var n,r,i,a;if(this.subPixelOptimize){var u=(0,o.Op)(s,e,this.style);n=u.x,r=u.y,i=u.width,a=u.height,u.r=e.r,e=u}else n=e.x,r=e.y,i=e.width,a=e.height;e.r?function(t,e){var n,r,i,o,a,s=e.x,u=e.y,l=e.width,c=e.height,h=e.r;l<0&&(s+=l,l=-l),c<0&&(u+=c,c=-c),"number"==typeof h?n=r=i=o=h:h instanceof Array?1===h.length?n=r=i=o=h[0]:2===h.length?(n=i=h[0],r=o=h[1]):3===h.length?(n=h[0],r=o=h[1],i=h[2]):(n=h[0],r=h[1],i=h[2],o=h[3]):n=r=i=o=0,n+r>l&&(n*=l/(a=n+r),r*=l/a),i+o>l&&(i*=l/(a=i+o),o*=l/a),r+i>c&&(r*=c/(a=r+i),i*=c/a),n+o>c&&(n*=c/(a=n+o),o*=c/a),t.moveTo(s+n,u),t.lineTo(s+l-r,u),0!==r&&t.arc(s+l-r,u+r,r,-Math.PI/2,0),t.lineTo(s+l,u+c-i),0!==i&&t.arc(s+l-i,u+c-i,i,0,Math.PI/2),t.lineTo(s+o,u+c),0!==o&&t.arc(s+o,u+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,u+n),0!==n&&t.arc(s+n,u+n,n,Math.PI,1.5*Math.PI)}(t,e):t.rect(n,r,i,a)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(i.Ay);u.prototype.type="rect";const l=u},42933:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(15727),i=n(69099),o=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},a=function(t){function e(e){return t.call(this,e)||this}return(0,r.C6)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=2*Math.PI;t.moveTo(n+e.r,r),t.arc(n,r,e.r,0,i,!1),t.moveTo(n+e.r0,r),t.arc(n,r,e.r0,0,i,!0)},e}(i.Ay);a.prototype.type="ring";const s=a},25014:(t,e,n)=>{"use strict";n.d(e,{A:()=>w});var r=n(15727),i=n(69099),o=n(98026),a=Math.PI,s=2*a,u=Math.sin,l=Math.cos,c=Math.acos,h=Math.atan2,d=Math.abs,f=Math.sqrt,p=Math.max,m=Math.min,g=1e-4;function v(t,e,n,r,i,o,a){var s=t-n,u=e-r,l=(a?o:-o)/f(s*s+u*u),c=l*u,h=-l*s,d=t+c,m=e+h,g=n+c,v=r+h,y=(d+g)/2,b=(m+v)/2,x=g-d,w=v-m,_=x*x+w*w,S=i-o,E=d*v-g*m,A=(w<0?-1:1)*f(p(0,S*S*_-E*E)),M=(E*w-x*A)/_,C=(-E*x-w*A)/_,T=(E*w+x*A)/_,k=(-E*x+w*A)/_,I=M-y,N=C-b,P=T-y,O=k-b;return I*I+N*N>P*P+O*O&&(M=T,C=k),{cx:M,cy:C,x0:-c,y0:-h,x1:M*(i/S-1),y1:C*(i/S-1)}}function y(t,e){var n,r=p(e.r,0),i=p(e.r0||0,0),y=r>0;if(y||i>0){if(y||(r=i,i=0),i>r){var b=r;r=i,i=b}var x=e.startAngle,w=e.endAngle;if(!isNaN(x)&&!isNaN(w)){var _=e.cx,S=e.cy,E=!!e.clockwise,A=d(w-x),M=A>s&&A%s;if(M>g&&(A=M),r>g)if(A>s-g)t.moveTo(_+r*l(x),S+r*u(x)),t.arc(_,S,r,x,w,!E),i>g&&(t.moveTo(_+i*l(w),S+i*u(w)),t.arc(_,S,i,w,x,E));else{var C=void 0,T=void 0,k=void 0,I=void 0,N=void 0,P=void 0,O=void 0,L=void 0,R=void 0,D=void 0,z=void 0,F=void 0,B=void 0,U=void 0,j=void 0,V=void 0,H=r*l(x),G=r*u(x),W=i*l(w),X=i*u(w),Y=A>g;if(Y){var q=e.cornerRadius;q&&(C=(n=function(t){var e;if((0,o.isArray)(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}(q))[0],T=n[1],k=n[2],I=n[3]);var $=d(r-i)/2;if(N=m($,k),P=m($,I),O=m($,C),L=m($,T),z=R=p(N,P),F=D=p(O,L),(R>g||D>g)&&(B=r*l(w),U=r*u(w),j=i*l(x),V=i*u(x),Ag){var rt=m(k,z),it=m(I,z),ot=v(j,V,H,G,r,rt,E),at=v(B,U,W,X,r,it,E);t.moveTo(_+ot.cx+ot.x0,S+ot.cy+ot.y0),z0&&t.arc(_+ot.cx,S+ot.cy,rt,h(ot.y0,ot.x0),h(ot.y1,ot.x1),!E),t.arc(_,S,r,h(ot.cy+ot.y1,ot.cx+ot.x1),h(at.cy+at.y1,at.cx+at.x1),!E),it>0&&t.arc(_+at.cx,S+at.cy,it,h(at.y1,at.x1),h(at.y0,at.x0),!E))}else t.moveTo(_+H,S+G),t.arc(_,S,r,x,w,!E);else t.moveTo(_+H,S+G);if(i>g&&Y)if(F>g){rt=m(C,F),ot=v(W,X,B,U,i,-(it=m(T,F)),E),at=v(H,G,j,V,i,-rt,E);t.lineTo(_+ot.cx+ot.x0,S+ot.cy+ot.y0),F0&&t.arc(_+ot.cx,S+ot.cy,it,h(ot.y0,ot.x0),h(ot.y1,ot.x1),!E),t.arc(_,S,i,h(ot.cy+ot.y1,ot.cx+ot.x1),h(at.cy+at.y1,at.cx+at.x1),E),rt>0&&t.arc(_+at.cx,S+at.cy,rt,h(at.y1,at.x1),h(at.y0,at.x0),!E))}else t.lineTo(_+W,S+X),t.arc(_,S,i,w,x,E);else t.lineTo(_+W,S+X)}else t.moveTo(_,S);t.closePath()}}}var b=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},x=function(t){function e(e){return t.call(this,e)||this}return(0,r.C6)(e,t),e.prototype.getDefaultShape=function(){return new b},e.prototype.buildPath=function(t,e){y(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(i.Ay);x.prototype.type="sector";const w=x},47698:(t,e,n)=>{"use strict";n.r(e),n.d(e,{fastLerp:()=>w,fastMapToColor:()=>_,lerp:()=>S,lift:()=>b,liftColor:()=>N,lum:()=>T,mapToColor:()=>E,modifyAlpha:()=>M,modifyHSL:()=>A,parse:()=>v,random:()=>k,stringify:()=>C,toHex:()=>x});var r=n(60501),i=n(98026),o={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function a(t){return(t=Math.round(t))<0?0:t>255?255:t}function s(t){return t<0?0:t>1?1:t}function u(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?a(parseFloat(e)/100*255):a(parseInt(e,10))}function l(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?s(parseFloat(e)/100):s(parseFloat(e))}function c(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function h(t,e,n){return t+(e-t)*n}function d(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function f(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var p=new r.Ay(20),m=null;function g(t,e){m&&f(m,e),m=p.put(t,m||e.slice())}function v(t,e){if(t){e=e||[];var n=p.get(t);if(n)return f(e,n);var r=(t+="").replace(/ /g,"").toLowerCase();if(r in o)return f(e,o[r]),g(t,e),e;var i,a=r.length;if("#"===r.charAt(0))return 4===a||5===a?(i=parseInt(r.slice(1,4),16))>=0&&i<=4095?(d(e,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,5===a?parseInt(r.slice(4),16)/15:1),g(t,e),e):void d(e,0,0,0,1):7===a||9===a?(i=parseInt(r.slice(1,7),16))>=0&&i<=16777215?(d(e,(16711680&i)>>16,(65280&i)>>8,255&i,9===a?parseInt(r.slice(7),16)/255:1),g(t,e),e):void d(e,0,0,0,1):void 0;var s=r.indexOf("("),c=r.indexOf(")");if(-1!==s&&c+1===a){var h=r.substr(0,s),m=r.substr(s+1,c-(s+1)).split(","),v=1;switch(h){case"rgba":if(4!==m.length)return 3===m.length?d(e,+m[0],+m[1],+m[2],1):d(e,0,0,0,1);v=l(m.pop());case"rgb":return m.length>=3?(d(e,u(m[0]),u(m[1]),u(m[2]),3===m.length?v:l(m[3])),g(t,e),e):void d(e,0,0,0,1);case"hsla":return 4!==m.length?void d(e,0,0,0,1):(m[3]=l(m[3]),y(m,e),g(t,e),e);case"hsl":return 3!==m.length?void d(e,0,0,0,1):(y(m,e),g(t,e),e);default:return}}d(e,0,0,0,1)}}function y(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=l(t[1]),i=l(t[2]),o=i<=.5?i*(r+1):i+r-i*r,s=2*i-o;return d(e=e||[],a(255*c(s,o,n+1/3)),a(255*c(s,o,n)),a(255*c(s,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function b(t,e){var n=v(t);if(n){for(var r=0;r<3;r++)n[r]=e<0?n[r]*(1-e)|0:(255-n[r])*e+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return C(n,4===n.length?"rgba":"rgb")}}function x(t){var e=v(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function w(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var r=t*(e.length-1),i=Math.floor(r),o=Math.ceil(r),u=e[i],l=e[o],c=r-i;return n[0]=a(h(u[0],l[0],c)),n[1]=a(h(u[1],l[1],c)),n[2]=a(h(u[2],l[2],c)),n[3]=s(h(u[3],l[3],c)),n}}var _=w;function S(t,e,n){if(e&&e.length&&t>=0&&t<=1){var r=t*(e.length-1),i=Math.floor(r),o=Math.ceil(r),u=v(e[i]),l=v(e[o]),c=r-i,d=C([a(h(u[0],l[0],c)),a(h(u[1],l[1],c)),a(h(u[2],l[2],c)),s(h(u[3],l[3],c))],"rgba");return n?{color:d,leftIndex:i,rightIndex:o,value:r}:d}}var E=S;function A(t,e,n,r){var i,o=v(t);if(t)return o=function(t){if(t){var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),u=s-a,l=(s+a)/2;if(0===u)e=0,n=0;else{n=l<.5?u/(s+a):u/(2-s-a);var c=((s-r)/6+u/2)/u,h=((s-i)/6+u/2)/u,d=((s-o)/6+u/2)/u;r===s?e=d-h:i===s?e=1/3+c-d:o===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var f=[360*e,n,l];return null!=t[3]&&f.push(t[3]),f}}(o),null!=e&&(o[0]=(i=e,(i=Math.round(i))<0?0:i>360?360:i)),null!=n&&(o[1]=l(n)),null!=r&&(o[2]=l(r)),C(y(o),"rgba")}function M(t,e){var n=v(t);if(n&&null!=e)return n[3]=s(e),C(n,"rgba")}function C(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function T(t,e){var n=v(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function k(){return C([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}var I=new r.Ay(100);function N(t){if((0,i.isString)(t)){var e=I.get(t);return e||(e=b(t,-.1),I.put(t,e)),e}if((0,i.isGradientObject)(t)){var n=(0,i.extend)({},t);return n.colorStops=(0,i.map)(t.colorStops,(function(t){return{offset:t.offset,color:b(t.color,-.1)}})),n}return t}},97850:(t,e,n)=>{"use strict";n.d(e,{Gw:()=>H,AN:()=>O,mz:()=>B,AG:()=>G});var r=n(89259),i=n(69099),o=n(98026),a=n(83509),s=n(59442),u=n(92836),l=n(48813),c=n(29308),h=n(26346),d=n(52505),f=n(30010),p=n(25014),m=n(68717).A.CMD;function g(t,e){return Math.abs(t-e)<1e-5}function v(t){var e,n,r,i,o,a=t.data,s=t.len(),u=[],l=0,c=0,h=0,d=0;function f(t,n){e&&e.length>2&&u.push(e),e=[t,n]}function p(t,n,r,i){g(t,r)&&g(n,i)||e.push(t,n,r,i,r,i)}function v(t,n,r,i,o,a){var s=Math.abs(n-t),u=4*Math.tan(s/4)/3,l=nM:k2&&u.push(e),u}function y(t,e,n,i,o,a,s,u,l,c){if(g(t,n)&&g(e,i)&&g(o,s)&&g(a,u))l.push(s,u);else{var h=2/c,d=h*h,f=s-t,p=u-e,m=Math.sqrt(f*f+p*p);f/=m,p/=m;var v=n-t,b=i-e,x=o-s,w=a-u,_=v*v+b*b,S=x*x+w*w;if(_=0&&S-A*A=0)l.push(s,u);else{var M=[],C=[];(0,r.YT)(t,n,o,s,.5,M),(0,r.YT)(e,i,a,u,.5,C),y(M[0],C[0],M[1],C[1],M[2],C[2],M[3],C[3],l,c),y(M[4],C[4],M[5],C[5],M[6],C[6],M[7],C[7],l,c)}}}}function b(t,e,n){var r=t[e],i=t[1-e],o=Math.abs(r/i),a=Math.ceil(Math.sqrt(o*n)),s=Math.floor(n/a);0===s&&(s=1,a=n);for(var u=[],l=0;l0)for(l=0;lMath.abs(l),h=b([u,l],c?0:1,e),d=(c?s:l)/h.length,f=0;f1?null:new h.A(p*u+t,p*l+e)}function S(t,e,n){var r=new h.A;h.A.sub(r,n,e),r.normalize();var i=new h.A;return h.A.sub(i,t,e),i.dot(r)}function E(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function A(t){var e=t.points,n=[],r=[];(0,l.Cr)(e,n,r);var i=new c.A(n[0],n[1],r[0]-n[0],r[1]-n[1]),o=i.width,a=i.height,s=i.x,u=i.y,d=new h.A,f=new h.A;return o>a?(d.x=f.x=s+o/2,d.y=u,f.y=u+a):(d.y=f.y=u+a/2,d.x=s,f.x=s+o),function(t,e,n){for(var r=t.length,i=[],o=0;oi,a=b([r,i],o?0:1,e),s=o?"width":"height",u=o?"height":"width",l=o?"x":"y",c=o?"y":"x",h=t[s]/a.length,d=0;d0)for(var w=r/n,_=-r/2;_<=r/2;_+=w){var S=Math.sin(_),E=Math.cos(_),A=0;for(b=0;b0;u/=2){var l=0,c=0;(t&u)>0&&(l=1),(e&u)>0&&(c=1),s+=u*u*(3*l^c),0===c&&(1===l&&(t=u-1-t,e=u-1-e),a=t,t=e,e=a)}return s}function j(t){var e=1/0,n=1/0,r=-1/0,i=-1/0,a=(0,o.map)(t,(function(t){var o=t.getBoundingRect(),a=t.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),u=o.y+o.height/2+(a?a[5]:0);return e=Math.min(s,e),n=Math.min(u,n),r=Math.max(s,r),i=Math.max(u,i),[s,u]}));return(0,o.map)(a,(function(o,a){return{cp:o,z:U(o[0],o[1],e,n,r,i),path:t[a]}})).sort((function(t,e){return t.z-e.z})).map((function(t){return t.path}))}function V(t){return C(t.path,t.count)}function H(t,e,n){var r=[];!function t(e){for(var n=0;n{"use strict";n.d(e,{rR:()=>k,UJ:()=>M,Qh:()=>C,uc:()=>T});var r=n(15727),i=n(69099),o=n(68717),a=n(83509),s=o.A.CMD,u=[[],[],[]],l=Math.sqrt,c=Math.atan2;function h(t,e){if(e){var n,r,i,o,h,d,f=t.data,p=t.len(),m=s.M,g=s.C,v=s.L,y=s.R,b=s.A,x=s.Q;for(i=0,o=0;i1&&(a*=f(x),s*=f(x));var w=(i===o?-1:1)*f((a*a*(s*s)-a*a*(v*v)-s*s*(d*d))/(a*a*(v*v)+s*s*(d*d)))||0,_=w*a*v/s,S=w*-s*d/a,E=(t+n)/2+m(h)*_-p(h)*S,A=(e+r)/2+p(h)*_+m(h)*S,M=b([1,0],[(d-_)/a,(v-S)/s]),C=[(d-_)/a,(v-S)/s],T=[(-1*d-_)/a,(-1*v-S)/s],k=b(C,T);if(y(C,T)<=-1&&(k=g),y(C,T)>=1&&(k=0),k<0){var I=Math.round(k/g*1e6)/1e6;k=2*g+I%2*g}c.addData(l,E,A,a,s,M,k,h,o)}var w=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,_=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.C6)(e,t),e.prototype.applyTransform=function(t){},e}(i.Ay);function E(t){return null!=t.setData}function A(t,e){var n=function(t){var e=new o.A;if(!t)return e;var n,r=0,i=0,a=r,s=i,u=o.A.CMD,l=t.match(w);if(!l)return e;for(var c=0;c{"use strict";n.r(e),n.d(e,{dispose:()=>lt,disposeAll:()=>ct,getElementSSRData:()=>ft,getInstance:()=>ht,init:()=>ut,registerPainter:()=>dt,registerSSRDataGetter:()=>pt,version:()=>mt});var r=n(38123),i=n(98026),o=n(15727),a=n(83509),s=function(t,e){this.target=t,this.topTarget=e&&e.topTarget};const u=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new s(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,r=t.offsetY,i=n-this._x,o=r-this._y;this._x=n,this._y=r,e.drift(i,o,t),this.handler.dispatchToElement(new s(e,t),"drag",t.event);var a=this.handler.findHover(n,r,e).target,u=this._dropTarget;this._dropTarget=a,e!==a&&(u&&a!==u&&this.handler.dispatchToElement(new s(u,t),"dragleave",t.event),a&&a!==u&&this.handler.dispatchToElement(new s(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new s(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new s(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}();var l=n(57861),c=n(35452),h=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var r=t.touches;if(r){for(var i={points:[],touches:[],target:e,event:t},o=0,a=r.length;o1&&i&&i.length>1){var a=d(i)/d(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((r=i)[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}},p=n(29308),m="silent";function g(){c.ds(this.event)}var v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return(0,o.C6)(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(l.A),y=function(t,e){this.x=t,this.y=e},b=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],x=new p.A(0,0,0,0),w=function(t){function e(e,n,r,i,o){var a=t.call(this)||this;return a._hovered=new y(0,0),a.storage=e,a.painter=n,a.painterRoot=i,a._pointerSize=o,r=r||new v,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new u(a),a}return(0,o.C6)(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(i.each(b,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,r=E(this,e,n),i=this._hovered,o=i.target;o&&!o.__zr&&(o=(i=this.findHover(i.x,i.y)).target);var a=this._hovered=r?new y(e,n):this.findHover(e,n),s=a.target,u=this.proxy;u.setCursor&&u.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new y(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var r=(t=t||{}).target;if(!r||!r.silent){for(var i="on"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:g}}(e,t,n);r&&(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(e,o),r=r.__hostTarget?r.__hostTarget:r.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"==typeof t[i]&&t[i].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){var r=this.storage.getDisplayList(),i=new y(t,e);if(S(r,i,t,e,n),this._pointerSize&&!i.target){for(var o=[],a=this._pointerSize,s=a/2,u=new p.A(t-s,e-s,a,a),l=r.length-1;l>=0;l--){var c=r[l];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(x.copy(c.getBoundingRect()),c.transform&&x.applyTransform(c.transform),x.intersect(u)&&o.push(c))}if(o.length)for(var h=Math.PI/12,d=2*Math.PI,f=0;f=0;o--){var a=t[o],s=void 0;if(a!==i&&!a.ignore&&(s=_(a,n,r))&&(!e.topTarget&&(e.topTarget=a),s!==m)){e.target=a;break}}}function E(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}i.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){w.prototype[t]=function(e){var n,r,i=e.zrX,o=e.zrY,s=E(this,i,o);if("mouseup"===t&&s||(r=(n=this.findHover(i,o)).target),"mousedown"===t)this._downEl=r,this._downPoint=[e.zrX,e.zrY],this._upEl=r;else if("mouseup"===t)this._upEl=r;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||a.dist(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));const A=w;var M=n(83470),C=n(56448),T=!1;function k(){T||(T=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function I(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}const N=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=I}return t.prototype.traverse=function(t,e){for(var n=0;n0&&(l.__clipPaths=[]),isNaN(l.z)&&(k(),l.z=0),isNaN(l.z2)&&(k(),l.z2=0),isNaN(l.zlevel)&&(k(),l.zlevel=0),this._displayList[this._displayListLen++]=l}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,n);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e=0&&this._roots.splice(r,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();var P=n(45825),O=n(84722);function L(){return(new Date).getTime()}const R=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return(0,o.C6)(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=L()-this._pausedTime,n=e-this._time,r=this._head;r;){var i=r.next;r.step(e,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,(0,P.A)((function e(){t._running&&((0,P.A)(e),!t._paused&&t.update())}))},e.prototype.start=function(){this._running||(this._time=L(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=L(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=L()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new O.A(t,e.loop);return this.addAnimator(n),n},e}(l.A);var D,z,F=r.A.domSupported,B=(z={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:D=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:i.map(D,(function(t){var e=t.replace("mouse","pointer");return z.hasOwnProperty(e)?e:t}))}),U=["mousemove","mouseup"],j=["pointermove","pointerup"],V=!1;function H(t){var e=t.pointerType;return"pen"===e||"touch"===e}function G(t){t&&(t.zrByTouch=!0)}function W(t,e){for(var n=e,r=!1;n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return r}var X=function(t,e){this.stopPropagation=i.noop,this.stopImmediatePropagation=i.noop,this.preventDefault=i.noop,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},Y={mousedown:function(t){t=(0,c.e0)(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=(0,c.e0)(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=(0,c.e0)(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){W(this,(t=(0,c.e0)(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){V=!0,t=(0,c.e0)(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){V||(t=(0,c.e0)(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){G(t=(0,c.e0)(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Y.mousemove.call(this,t),Y.mousedown.call(this,t)},touchmove:function(t){G(t=(0,c.e0)(this.dom,t)),this.handler.processGesture(t,"change"),Y.mousemove.call(this,t)},touchend:function(t){G(t=(0,c.e0)(this.dom,t)),this.handler.processGesture(t,"end"),Y.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&Y.click.call(this,t)},pointerdown:function(t){Y.mousedown.call(this,t)},pointermove:function(t){H(t)||Y.mousemove.call(this,t)},pointerup:function(t){Y.mouseup.call(this,t)},pointerout:function(t){H(t)||Y.mouseout.call(this,t)}};i.each(["click","dblclick","contextmenu"],(function(t){Y[t]=function(e){e=(0,c.e0)(this.dom,e),this.trigger(t,e)}}));var q={pointermove:function(t){H(t)||q.mousemove.call(this,t)},pointerup:function(t){q.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function $(t,e){var n=e.domHandlers;r.A.pointerEventsSupported?i.each(B.pointer,(function(r){Z(e,r,(function(e){n[r].call(t,e)}))})):(r.A.touchEventsSupported&&i.each(B.touch,(function(r){Z(e,r,(function(i){n[r].call(t,i),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}(e)}))})),i.each(B.mouse,(function(r){Z(e,r,(function(i){i=(0,c.mK)(i),e.touching||n[r].call(t,i)}))})))}function K(t,e){function n(n){Z(e,n,(function(r){r=(0,c.mK)(r),W(t,r.target)||(r=function(t,e){return(0,c.e0)(t.dom,new X(t,e),!0)}(t,r),e.domHandlers[n].call(t,r))}),{capture:!0})}r.A.pointerEventsSupported?i.each(j,n):r.A.touchEventsSupported||i.each(U,n)}function Z(t,e,n,r){t.mounted[e]=n,t.listenerOpts[e]=r,(0,c.q2)(t.domTarget,e,n,r)}function Q(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&(0,c.f)(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var J=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e};const tt=function(t){function e(e,n){var r=t.call(this)||this;return r.__pointerCapturing=!1,r.dom=e,r.painterRoot=n,r._localHandlerScope=new J(e,Y),F&&(r._globalHandlerScope=new J(document,q)),$(r,r._localHandlerScope),r}return(0,o.C6)(e,t),e.prototype.dispose=function(){Q(this._localHandlerScope),F&&Q(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,F&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?K(this,e):Q(e)}},e}(l.A);var et=n(47698),nt=n(73098),rt=n(43870),it={},ot={};var at,st=function(){function t(t,e,n){var o=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var a=new N,s=n.renderer||"canvas";it[s]||(s=i.keys(it)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var u=new it[s](e,a,n,t),l=n.ssr||u.ssrOnly;this.storage=a,this.painter=u;var c,h=r.A.node||r.A.worker||l?null:new tt(u.getViewportRoot(),u.root),d=n.useCoarsePointer;(null==d||"auto"===d?r.A.touchEventsSupported:!!d)&&(c=i.retrieve2(n.pointerSize,44)),this.handler=new A(a,u,h,u.root,c),this.animation=new R({stage:{update:l?null:function(){return o._flush(!0)}}}),l||this.animation.start()}return t.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},t.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return(0,et.lum)(t,1)0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e>8&255]+Ct[t>>16&255]+Ct[t>>24&255]+"-"+Ct[255&e]+Ct[e>>8&255]+"-"+Ct[e>>16&15|64]+Ct[e>>24&255]+"-"+Ct[63&n|128]+Ct[n>>8&255]+"-"+Ct[n>>16&255]+Ct[n>>24&255]+Ct[255&r]+Ct[r>>8&255]+Ct[r>>16&255]+Ct[r>>24&255]).toLowerCase()}function Pt(t,e,n){return Math.max(e,Math.min(n,t))}function Ot(t,e){return(t%e+e)%e}function Lt(t,e,n){return(1-n)*t+n*e}function Rt(t){return!(t&t-1)&&0!==t}function Dt(t){return Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))}function zt(t){return Math.pow(2,Math.floor(Math.log(t)/Math.LN2))}function Ft(t,e){switch(e.constructor){case Float32Array:return t;case Uint16Array:return t/65535;case Uint8Array:return t/255;case Int16Array:return Math.max(t/32767,-1);case Int8Array:return Math.max(t/127,-1);default:throw new Error("Invalid component type.")}}function Bt(t,e){switch(e.constructor){case Float32Array:return t;case Uint16Array:return Math.round(65535*t);case Uint8Array:return Math.round(255*t);case Int16Array:return Math.round(32767*t);case Int8Array:return Math.round(127*t);default:throw new Error("Invalid component type.")}}const Ut={DEG2RAD:kt,RAD2DEG:It,generateUUID:Nt,clamp:Pt,euclideanModulo:Ot,mapLinear:function(t,e,n,r,i){return r+(t-e)*(i-r)/(n-e)},inverseLerp:function(t,e,n){return t!==e?(n-t)/(e-t):0},lerp:Lt,damp:function(t,e,n,r){return Lt(t,e,1-Math.exp(-n*r))},pingpong:function(t,e=1){return e-Math.abs(Ot(t,2*e)-e)},smoothstep:function(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e))*t*(3-2*t)},smootherstep:function(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e))*t*t*(t*(6*t-15)+10)},randInt:function(t,e){return t+Math.floor(Math.random()*(e-t+1))},randFloat:function(t,e){return t+Math.random()*(e-t)},randFloatSpread:function(t){return t*(.5-Math.random())},seededRandom:function(t){void 0!==t&&(Tt=t);let e=Tt+=1831565813;return e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296},degToRad:function(t){return t*kt},radToDeg:function(t){return t*It},isPowerOfTwo:Rt,ceilPowerOfTwo:Dt,floorPowerOfTwo:zt,setQuaternionFromProperEuler:function(t,e,n,r,i){const o=Math.cos,a=Math.sin,s=o(n/2),u=a(n/2),l=o((e+r)/2),c=a((e+r)/2),h=o((e-r)/2),d=a((e-r)/2),f=o((r-e)/2),p=a((r-e)/2);switch(i){case"XYX":t.set(s*c,u*h,u*d,s*l);break;case"YZY":t.set(u*d,s*c,u*h,s*l);break;case"ZXZ":t.set(u*h,u*d,s*c,s*l);break;case"XZX":t.set(s*c,u*p,u*f,s*l);break;case"YXY":t.set(u*f,s*c,u*p,s*l);break;case"ZYZ":t.set(u*p,u*f,s*c,s*l);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+i)}},normalize:Bt,denormalize:Ft};class jt{constructor(t=0,e=0){jt.prototype.isVector2=!0,this.x=t,this.y=e}get width(){return this.x}set width(t){this.x=t}get height(){return this.y}set height(t){this.y=t}set(t,e){return this.x=t,this.y=e,this}setScalar(t){return this.x=t,this.y=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y)}copy(t){return this.x=t.x,this.y=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}addScalar(t){return this.x+=t,this.y+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this}sub(t){return this.x-=t.x,this.y-=t.y,this}subScalar(t){return this.x-=t,this.y-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}multiply(t){return this.x*=t.x,this.y*=t.y,this}multiplyScalar(t){return this.x*=t,this.y*=t,this}divide(t){return this.x/=t.x,this.y/=t.y,this}divideScalar(t){return this.multiplyScalar(1/t)}applyMatrix3(t){const e=this.x,n=this.y,r=t.elements;return this.x=r[0]*e+r[3]*n+r[6],this.y=r[1]*e+r[4]*n+r[7],this}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this}clampLength(t,e){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-this.y*t.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(t){const e=Math.sqrt(this.lengthSq()*t.lengthSq());if(0===e)return Math.PI/2;const n=this.dot(t)/e;return Math.acos(Pt(n,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const e=this.x-t.x,n=this.y-t.y;return e*e+n*n}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this}lerpVectors(t,e,n){return this.x=t.x+(e.x-t.x)*n,this.y=t.y+(e.y-t.y)*n,this}equals(t){return t.x===this.x&&t.y===this.y}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t}fromBufferAttribute(t,e){return this.x=t.getX(e),this.y=t.getY(e),this}rotateAround(t,e){const n=Math.cos(e),r=Math.sin(e),i=this.x-t.x,o=this.y-t.y;return this.x=i*n-o*r+t.x,this.y=i*r+o*n+t.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class Vt{constructor(){Vt.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1]}set(t,e,n,r,i,o,a,s,u){const l=this.elements;return l[0]=t,l[1]=r,l[2]=a,l[3]=e,l[4]=i,l[5]=s,l[6]=n,l[7]=o,l[8]=u,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(t){const e=this.elements,n=t.elements;return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=n[6],e[7]=n[7],e[8]=n[8],this}extractBasis(t,e,n){return t.setFromMatrix3Column(this,0),e.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(t){const e=t.elements;return this.set(e[0],e[4],e[8],e[1],e[5],e[9],e[2],e[6],e[10]),this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,e){const n=t.elements,r=e.elements,i=this.elements,o=n[0],a=n[3],s=n[6],u=n[1],l=n[4],c=n[7],h=n[2],d=n[5],f=n[8],p=r[0],m=r[3],g=r[6],v=r[1],y=r[4],b=r[7],x=r[2],w=r[5],_=r[8];return i[0]=o*p+a*v+s*x,i[3]=o*m+a*y+s*w,i[6]=o*g+a*b+s*_,i[1]=u*p+l*v+c*x,i[4]=u*m+l*y+c*w,i[7]=u*g+l*b+c*_,i[2]=h*p+d*v+f*x,i[5]=h*m+d*y+f*w,i[8]=h*g+d*b+f*_,this}multiplyScalar(t){const e=this.elements;return e[0]*=t,e[3]*=t,e[6]*=t,e[1]*=t,e[4]*=t,e[7]*=t,e[2]*=t,e[5]*=t,e[8]*=t,this}determinant(){const t=this.elements,e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],u=t[7],l=t[8];return e*o*l-e*a*u-n*i*l+n*a*s+r*i*u-r*o*s}invert(){const t=this.elements,e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],u=t[7],l=t[8],c=l*o-a*u,h=a*s-l*i,d=u*i-o*s,f=e*c+n*h+r*d;if(0===f)return this.set(0,0,0,0,0,0,0,0,0);const p=1/f;return t[0]=c*p,t[1]=(r*u-l*n)*p,t[2]=(a*n-r*o)*p,t[3]=h*p,t[4]=(l*e-r*s)*p,t[5]=(r*i-a*e)*p,t[6]=d*p,t[7]=(n*s-u*e)*p,t[8]=(o*e-n*i)*p,this}transpose(){let t;const e=this.elements;return t=e[1],e[1]=e[3],e[3]=t,t=e[2],e[2]=e[6],e[6]=t,t=e[5],e[5]=e[7],e[7]=t,this}getNormalMatrix(t){return this.setFromMatrix4(t).invert().transpose()}transposeIntoArray(t){const e=this.elements;return t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8],this}setUvTransform(t,e,n,r,i,o,a){const s=Math.cos(i),u=Math.sin(i);return this.set(n*s,n*u,-n*(s*o+u*a)+o+t,-r*u,r*s,-r*(-u*o+s*a)+a+e,0,0,1),this}scale(t,e){return this.premultiply(Ht.makeScale(t,e)),this}rotate(t){return this.premultiply(Ht.makeRotation(-t)),this}translate(t,e){return this.premultiply(Ht.makeTranslation(t,e)),this}makeTranslation(t,e){return this.set(1,0,t,0,1,e,0,0,1),this}makeRotation(t){const e=Math.cos(t),n=Math.sin(t);return this.set(e,-n,0,n,e,0,0,0,1),this}makeScale(t,e){return this.set(t,0,0,0,e,0,0,0,1),this}equals(t){const e=this.elements,n=t.elements;for(let t=0;t<9;t++)if(e[t]!==n[t])return!1;return!0}fromArray(t,e=0){for(let n=0;n<9;n++)this.elements[n]=t[n+e];return this}toArray(t=[],e=0){const n=this.elements;return t[e]=n[0],t[e+1]=n[1],t[e+2]=n[2],t[e+3]=n[3],t[e+4]=n[4],t[e+5]=n[5],t[e+6]=n[6],t[e+7]=n[7],t[e+8]=n[8],t}clone(){return(new this.constructor).fromArray(this.elements)}}const Ht=new Vt;function Gt(t){for(let e=t.length-1;e>=0;--e)if(t[e]>=65535)return!0;return!1}Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array;function Wt(t){return document.createElementNS("http://www.w3.org/1999/xhtml",t)}function Xt(t){return t<.04045?.0773993808*t:Math.pow(.9478672986*t+.0521327014,2.4)}function Yt(t){return t<.0031308?12.92*t:1.055*Math.pow(t,.41666)-.055}const qt=(new Vt).fromArray([.8224621,.0331941,.0170827,.177538,.9668058,.0723974,-1e-7,1e-7,.9105199]),$t=(new Vt).fromArray([1.2249401,-.0420569,-.0196376,-.2249404,1.0420571,-.0786361,1e-7,0,1.0982735]);const Kt={[xt]:t=>t,[bt]:t=>t.convertSRGBToLinear(),[wt]:function(t){return t.convertSRGBToLinear().applyMatrix3($t)}},Zt={[xt]:t=>t,[bt]:t=>t.convertLinearToSRGB(),[wt]:function(t){return t.applyMatrix3(qt).convertLinearToSRGB()}},Qt={enabled:!1,get legacyMode(){return console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),!this.enabled},set legacyMode(t){console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),this.enabled=!t},get workingColorSpace(){return xt},set workingColorSpace(t){console.warn("THREE.ColorManagement: .workingColorSpace is readonly.")},convert:function(t,e,n){if(!1===this.enabled||e===n||!e||!n)return t;const r=Kt[e],i=Zt[n];if(void 0===r||void 0===i)throw new Error(`Unsupported color space conversion, "${e}" to "${n}".`);return i(r(t))},fromWorkingColorSpace:function(t,e){return this.convert(t,this.workingColorSpace,e)},toWorkingColorSpace:function(t,e){return this.convert(t,e,this.workingColorSpace)}};let Jt;class te{static getDataURL(t){if(/^data:/i.test(t.src))return t.src;if("undefined"==typeof HTMLCanvasElement)return t.src;let e;if(t instanceof HTMLCanvasElement)e=t;else{void 0===Jt&&(Jt=Wt("canvas")),Jt.width=t.width,Jt.height=t.height;const n=Jt.getContext("2d");t instanceof ImageData?n.putImageData(t,0,0):n.drawImage(t,0,0,t.width,t.height),e=Jt}return e.width>2048||e.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",t),e.toDataURL("image/jpeg",.6)):e.toDataURL("image/png")}static sRGBToLinear(t){if("undefined"!=typeof HTMLImageElement&&t instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap){const e=Wt("canvas");e.width=t.width,e.height=t.height;const n=e.getContext("2d");n.drawImage(t,0,0,t.width,t.height);const r=n.getImageData(0,0,t.width,t.height),i=r.data;for(let t=0;t0&&(n.userData=this.userData),e||(t.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(t){if(300!==this.mapping)return t;if(t.applyMatrix3(this.matrix),t.x<0||t.x>1)switch(this.wrapS){case U:t.x=t.x-Math.floor(t.x);break;case j:t.x=t.x<0?0:1;break;case V:1===Math.abs(Math.floor(t.x)%2)?t.x=Math.ceil(t.x)-t.x:t.x=t.x-Math.floor(t.x)}if(t.y<0||t.y>1)switch(this.wrapT){case U:t.y=t.y-Math.floor(t.y);break;case j:t.y=t.y<0?0:1;break;case V:1===Math.abs(Math.floor(t.y)%2)?t.y=Math.ceil(t.y)-t.y:t.y=t.y-Math.floor(t.y)}return this.flipY&&(t.y=1-t.y),t}set needsUpdate(t){!0===t&&(this.version++,this.source.needsUpdate=!0)}}ie.DEFAULT_IMAGE=null,ie.DEFAULT_MAPPING=300,ie.DEFAULT_ANISOTROPY=1;class oe{constructor(t=0,e=0,n=0,r=1){oe.prototype.isVector4=!0,this.x=t,this.y=e,this.z=n,this.w=r}get width(){return this.z}set width(t){this.z=t}get height(){return this.w}set height(t){this.w=t}set(t,e,n,r){return this.x=t,this.y=e,this.z=n,this.w=r,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this.w=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setW(t){return this.w=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;case 3:this.w=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=void 0!==t.w?t.w:1,this}add(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this.w+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this.w=t.w+e.w,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this.w+=t.w*e,this}sub(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this.w-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this.w=t.w-e.w,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this.w*=t.w,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this}applyMatrix4(t){const e=this.x,n=this.y,r=this.z,i=this.w,o=t.elements;return this.x=o[0]*e+o[4]*n+o[8]*r+o[12]*i,this.y=o[1]*e+o[5]*n+o[9]*r+o[13]*i,this.z=o[2]*e+o[6]*n+o[10]*r+o[14]*i,this.w=o[3]*e+o[7]*n+o[11]*r+o[15]*i,this}divideScalar(t){return this.multiplyScalar(1/t)}setAxisAngleFromQuaternion(t){this.w=2*Math.acos(t.w);const e=Math.sqrt(1-t.w*t.w);return e<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=t.x/e,this.y=t.y/e,this.z=t.z/e),this}setAxisAngleFromRotationMatrix(t){let e,n,r,i;const o=.01,a=.1,s=t.elements,u=s[0],l=s[4],c=s[8],h=s[1],d=s[5],f=s[9],p=s[2],m=s[6],g=s[10];if(Math.abs(l-h)s&&t>v?tv?s=0?1:-1,r=1-e*e;if(r>Number.EPSILON){const i=Math.sqrt(r),o=Math.atan2(i,e*n);t=Math.sin(t*o)/i,a=Math.sin(a*o)/i}const i=a*n;if(s=s*t+h*i,u=u*t+d*i,l=l*t+f*i,c=c*t+p*i,t===1-a){const t=1/Math.sqrt(s*s+u*u+l*l+c*c);s*=t,u*=t,l*=t,c*=t}}t[e]=s,t[e+1]=u,t[e+2]=l,t[e+3]=c}static multiplyQuaternionsFlat(t,e,n,r,i,o){const a=n[r],s=n[r+1],u=n[r+2],l=n[r+3],c=i[o],h=i[o+1],d=i[o+2],f=i[o+3];return t[e]=a*f+l*c+s*d-u*h,t[e+1]=s*f+l*h+u*c-a*d,t[e+2]=u*f+l*d+a*h-s*c,t[e+3]=l*f-a*c-s*h-u*d,t}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get w(){return this._w}set w(t){this._w=t,this._onChangeCallback()}set(t,e,n,r){return this._x=t,this._y=e,this._z=n,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this._onChangeCallback(),this}setFromEuler(t,e){const n=t._x,r=t._y,i=t._z,o=t._order,a=Math.cos,s=Math.sin,u=a(n/2),l=a(r/2),c=a(i/2),h=s(n/2),d=s(r/2),f=s(i/2);switch(o){case"XYZ":this._x=h*l*c+u*d*f,this._y=u*d*c-h*l*f,this._z=u*l*f+h*d*c,this._w=u*l*c-h*d*f;break;case"YXZ":this._x=h*l*c+u*d*f,this._y=u*d*c-h*l*f,this._z=u*l*f-h*d*c,this._w=u*l*c+h*d*f;break;case"ZXY":this._x=h*l*c-u*d*f,this._y=u*d*c+h*l*f,this._z=u*l*f+h*d*c,this._w=u*l*c-h*d*f;break;case"ZYX":this._x=h*l*c-u*d*f,this._y=u*d*c+h*l*f,this._z=u*l*f-h*d*c,this._w=u*l*c+h*d*f;break;case"YZX":this._x=h*l*c+u*d*f,this._y=u*d*c+h*l*f,this._z=u*l*f-h*d*c,this._w=u*l*c-h*d*f;break;case"XZY":this._x=h*l*c-u*d*f,this._y=u*d*c-h*l*f,this._z=u*l*f+h*d*c,this._w=u*l*c+h*d*f;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}return!1!==e&&this._onChangeCallback(),this}setFromAxisAngle(t,e){const n=e/2,r=Math.sin(n);return this._x=t.x*r,this._y=t.y*r,this._z=t.z*r,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(t){const e=t.elements,n=e[0],r=e[4],i=e[8],o=e[1],a=e[5],s=e[9],u=e[2],l=e[6],c=e[10],h=n+a+c;if(h>0){const t=.5/Math.sqrt(h+1);this._w=.25/t,this._x=(l-s)*t,this._y=(i-u)*t,this._z=(o-r)*t}else if(n>a&&n>c){const t=2*Math.sqrt(1+n-a-c);this._w=(l-s)/t,this._x=.25*t,this._y=(r+o)/t,this._z=(i+u)/t}else if(a>c){const t=2*Math.sqrt(1+a-n-c);this._w=(i-u)/t,this._x=(r+o)/t,this._y=.25*t,this._z=(s+l)/t}else{const t=2*Math.sqrt(1+c-n-a);this._w=(o-r)/t,this._x=(i+u)/t,this._y=(s+l)/t,this._z=.25*t}return this._onChangeCallback(),this}setFromUnitVectors(t,e){let n=t.dot(e)+1;return nMath.abs(t.z)?(this._x=-t.y,this._y=t.x,this._z=0,this._w=n):(this._x=0,this._y=-t.z,this._z=t.y,this._w=n)):(this._x=t.y*e.z-t.z*e.y,this._y=t.z*e.x-t.x*e.z,this._z=t.x*e.y-t.y*e.x,this._w=n),this.normalize()}angleTo(t){return 2*Math.acos(Math.abs(Pt(this.dot(t),-1,1)))}rotateTowards(t,e){const n=this.angleTo(t);if(0===n)return this;const r=Math.min(1,e/n);return this.slerp(t,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let t=this.length();return 0===t?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this._onChangeCallback(),this}multiply(t){return this.multiplyQuaternions(this,t)}premultiply(t){return this.multiplyQuaternions(t,this)}multiplyQuaternions(t,e){const n=t._x,r=t._y,i=t._z,o=t._w,a=e._x,s=e._y,u=e._z,l=e._w;return this._x=n*l+o*a+r*u-i*s,this._y=r*l+o*s+i*a-n*u,this._z=i*l+o*u+n*s-r*a,this._w=o*l-n*a-r*s-i*u,this._onChangeCallback(),this}slerp(t,e){if(0===e)return this;if(1===e)return this.copy(t);const n=this._x,r=this._y,i=this._z,o=this._w;let a=o*t._w+n*t._x+r*t._y+i*t._z;if(a<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,a=-a):this.copy(t),a>=1)return this._w=o,this._x=n,this._y=r,this._z=i,this;const s=1-a*a;if(s<=Number.EPSILON){const t=1-e;return this._w=t*o+e*this._w,this._x=t*n+e*this._x,this._y=t*r+e*this._y,this._z=t*i+e*this._z,this.normalize(),this._onChangeCallback(),this}const u=Math.sqrt(s),l=Math.atan2(u,a),c=Math.sin((1-e)*l)/u,h=Math.sin(e*l)/u;return this._w=o*c+this._w*h,this._x=n*c+this._x*h,this._y=r*c+this._y*h,this._z=i*c+this._z*h,this._onChangeCallback(),this}slerpQuaternions(t,e,n){return this.copy(t).slerp(e,n)}random(){const t=Math.random(),e=Math.sqrt(1-t),n=Math.sqrt(t),r=2*Math.PI*Math.random(),i=2*Math.PI*Math.random();return this.set(e*Math.cos(r),n*Math.sin(i),n*Math.cos(i),e*Math.sin(r))}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w}fromArray(t,e=0){return this._x=t[e],this._y=t[e+1],this._z=t[e+2],this._w=t[e+3],this._onChangeCallback(),this}toArray(t=[],e=0){return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._w,t}fromBufferAttribute(t,e){return this._x=t.getX(e),this._y=t.getY(e),this._z=t.getZ(e),this._w=t.getW(e),this}toJSON(){return this.toArray()}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class ce{constructor(t=0,e=0,n=0){ce.prototype.isVector3=!0,this.x=t,this.y=e,this.z=n}set(t,e,n){return void 0===n&&(n=this.z),this.x=t,this.y=e,this.z=n,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this}add(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this}sub(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this}multiplyVectors(t,e){return this.x=t.x*e.x,this.y=t.y*e.y,this.z=t.z*e.z,this}applyEuler(t){return this.applyQuaternion(de.setFromEuler(t))}applyAxisAngle(t,e){return this.applyQuaternion(de.setFromAxisAngle(t,e))}applyMatrix3(t){const e=this.x,n=this.y,r=this.z,i=t.elements;return this.x=i[0]*e+i[3]*n+i[6]*r,this.y=i[1]*e+i[4]*n+i[7]*r,this.z=i[2]*e+i[5]*n+i[8]*r,this}applyNormalMatrix(t){return this.applyMatrix3(t).normalize()}applyMatrix4(t){const e=this.x,n=this.y,r=this.z,i=t.elements,o=1/(i[3]*e+i[7]*n+i[11]*r+i[15]);return this.x=(i[0]*e+i[4]*n+i[8]*r+i[12])*o,this.y=(i[1]*e+i[5]*n+i[9]*r+i[13])*o,this.z=(i[2]*e+i[6]*n+i[10]*r+i[14])*o,this}applyQuaternion(t){const e=this.x,n=this.y,r=this.z,i=t.x,o=t.y,a=t.z,s=t.w,u=s*e+o*r-a*n,l=s*n+a*e-i*r,c=s*r+i*n-o*e,h=-i*e-o*n-a*r;return this.x=u*s+h*-i+l*-a-c*-o,this.y=l*s+h*-o+c*-i-u*-a,this.z=c*s+h*-a+u*-o-l*-i,this}project(t){return this.applyMatrix4(t.matrixWorldInverse).applyMatrix4(t.projectionMatrix)}unproject(t){return this.applyMatrix4(t.projectionMatrixInverse).applyMatrix4(t.matrixWorld)}transformDirection(t){const e=this.x,n=this.y,r=this.z,i=t.elements;return this.x=i[0]*e+i[4]*n+i[8]*r,this.y=i[1]*e+i[5]*n+i[9]*r,this.z=i[2]*e+i[6]*n+i[10]*r,this.normalize()}divide(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this}divideScalar(t){return this.multiplyScalar(1/t)}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this.z=Math.max(t,Math.min(e,this.z)),this}clampLength(t,e){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this}lerpVectors(t,e,n){return this.x=t.x+(e.x-t.x)*n,this.y=t.y+(e.y-t.y)*n,this.z=t.z+(e.z-t.z)*n,this}cross(t){return this.crossVectors(this,t)}crossVectors(t,e){const n=t.x,r=t.y,i=t.z,o=e.x,a=e.y,s=e.z;return this.x=r*s-i*a,this.y=i*o-n*s,this.z=n*a-r*o,this}projectOnVector(t){const e=t.lengthSq();if(0===e)return this.set(0,0,0);const n=t.dot(this)/e;return this.copy(t).multiplyScalar(n)}projectOnPlane(t){return he.copy(this).projectOnVector(t),this.sub(he)}reflect(t){return this.sub(he.copy(t).multiplyScalar(2*this.dot(t)))}angleTo(t){const e=Math.sqrt(this.lengthSq()*t.lengthSq());if(0===e)return Math.PI/2;const n=this.dot(t)/e;return Math.acos(Pt(n,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const e=this.x-t.x,n=this.y-t.y,r=this.z-t.z;return e*e+n*n+r*r}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)}setFromSpherical(t){return this.setFromSphericalCoords(t.radius,t.phi,t.theta)}setFromSphericalCoords(t,e,n){const r=Math.sin(e)*t;return this.x=r*Math.sin(n),this.y=Math.cos(e)*t,this.z=r*Math.cos(n),this}setFromCylindrical(t){return this.setFromCylindricalCoords(t.radius,t.theta,t.y)}setFromCylindricalCoords(t,e,n){return this.x=t*Math.sin(e),this.y=n,this.z=t*Math.cos(e),this}setFromMatrixPosition(t){const e=t.elements;return this.x=e[12],this.y=e[13],this.z=e[14],this}setFromMatrixScale(t){const e=this.setFromMatrixColumn(t,0).length(),n=this.setFromMatrixColumn(t,1).length(),r=this.setFromMatrixColumn(t,2).length();return this.x=e,this.y=n,this.z=r,this}setFromMatrixColumn(t,e){return this.fromArray(t.elements,4*e)}setFromMatrix3Column(t,e){return this.fromArray(t.elements,3*e)}setFromEuler(t){return this.x=t._x,this.y=t._y,this.z=t._z,this}setFromColor(t){return this.x=t.r,this.y=t.g,this.z=t.b,this}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this.z=t[e+2],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t}fromBufferAttribute(t,e){return this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const t=2*(Math.random()-.5),e=Math.random()*Math.PI*2,n=Math.sqrt(1-t**2);return this.x=n*Math.cos(e),this.y=n*Math.sin(e),this.z=t,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const he=new ce,de=new le;class fe{constructor(t=new ce(1/0,1/0,1/0),e=new ce(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=t,this.max=e}set(t,e){return this.min.copy(t),this.max.copy(e),this}setFromArray(t){this.makeEmpty();for(let e=0,n=t.length;ethis.max.x||t.ythis.max.y||t.zthis.max.z)}containsBox(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y&&this.min.z<=t.min.z&&t.max.z<=this.max.z}getParameter(t,e){return e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y),(t.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(t){return!(t.max.xthis.max.x||t.max.ythis.max.y||t.max.zthis.max.z)}intersectsSphere(t){return this.clampPoint(t.center,me),me.distanceToSquared(t.center)<=t.radius*t.radius}intersectsPlane(t){let e,n;return t.normal.x>0?(e=t.normal.x*this.min.x,n=t.normal.x*this.max.x):(e=t.normal.x*this.max.x,n=t.normal.x*this.min.x),t.normal.y>0?(e+=t.normal.y*this.min.y,n+=t.normal.y*this.max.y):(e+=t.normal.y*this.max.y,n+=t.normal.y*this.min.y),t.normal.z>0?(e+=t.normal.z*this.min.z,n+=t.normal.z*this.max.z):(e+=t.normal.z*this.max.z,n+=t.normal.z*this.min.z),e<=-t.constant&&n>=-t.constant}intersectsTriangle(t){if(this.isEmpty())return!1;this.getCenter(Se),Ee.subVectors(this.max,Se),ve.subVectors(t.a,Se),ye.subVectors(t.b,Se),be.subVectors(t.c,Se),xe.subVectors(ye,ve),we.subVectors(be,ye),_e.subVectors(ve,be);let e=[0,-xe.z,xe.y,0,-we.z,we.y,0,-_e.z,_e.y,xe.z,0,-xe.x,we.z,0,-we.x,_e.z,0,-_e.x,-xe.y,xe.x,0,-we.y,we.x,0,-_e.y,_e.x,0];return!!Ce(e,ve,ye,be,Ee)&&(e=[1,0,0,0,1,0,0,0,1],!!Ce(e,ve,ye,be,Ee)&&(Ae.crossVectors(xe,we),e=[Ae.x,Ae.y,Ae.z],Ce(e,ve,ye,be,Ee)))}clampPoint(t,e){return e.copy(t).clamp(this.min,this.max)}distanceToPoint(t){return this.clampPoint(t,me).distanceTo(t)}getBoundingSphere(t){return this.isEmpty()?t.makeEmpty():(this.getCenter(t.center),t.radius=.5*this.getSize(me).length()),t}intersect(t){return this.min.max(t.min),this.max.min(t.max),this.isEmpty()&&this.makeEmpty(),this}union(t){return this.min.min(t.min),this.max.max(t.max),this}applyMatrix4(t){return this.isEmpty()||(pe[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(t),pe[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(t),pe[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(t),pe[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(t),pe[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(t),pe[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(t),pe[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(t),pe[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(t),this.setFromPoints(pe)),this}translate(t){return this.min.add(t),this.max.add(t),this}equals(t){return t.min.equals(this.min)&&t.max.equals(this.max)}}const pe=[new ce,new ce,new ce,new ce,new ce,new ce,new ce,new ce],me=new ce,ge=new fe,ve=new ce,ye=new ce,be=new ce,xe=new ce,we=new ce,_e=new ce,Se=new ce,Ee=new ce,Ae=new ce,Me=new ce;function Ce(t,e,n,r,i){for(let o=0,a=t.length-3;o<=a;o+=3){Me.fromArray(t,o);const a=i.x*Math.abs(Me.x)+i.y*Math.abs(Me.y)+i.z*Math.abs(Me.z),s=e.dot(Me),u=n.dot(Me),l=r.dot(Me);if(Math.max(-Math.max(s,u,l),Math.min(s,u,l))>a)return!1}return!0}const Te=new fe,ke=new ce,Ie=new ce;class Ne{constructor(t=new ce,e=-1){this.center=t,this.radius=e}set(t,e){return this.center.copy(t),this.radius=e,this}setFromPoints(t,e){const n=this.center;void 0!==e?n.copy(e):Te.setFromPoints(t).getCenter(n);let r=0;for(let e=0,i=t.length;ethis.radius*this.radius&&(e.sub(this.center).normalize(),e.multiplyScalar(this.radius).add(this.center)),e}getBoundingBox(t){return this.isEmpty()?(t.makeEmpty(),t):(t.set(this.center,this.center),t.expandByScalar(this.radius),t)}applyMatrix4(t){return this.center.applyMatrix4(t),this.radius=this.radius*t.getMaxScaleOnAxis(),this}translate(t){return this.center.add(t),this}expandByPoint(t){if(this.isEmpty())return this.center.copy(t),this.radius=0,this;ke.subVectors(t,this.center);const e=ke.lengthSq();if(e>this.radius*this.radius){const t=Math.sqrt(e),n=.5*(t-this.radius);this.center.addScaledVector(ke,n/t),this.radius+=n}return this}union(t){return t.isEmpty()?this:this.isEmpty()?(this.copy(t),this):(!0===this.center.equals(t.center)?this.radius=Math.max(this.radius,t.radius):(Ie.subVectors(t.center,this.center).setLength(t.radius),this.expandByPoint(ke.copy(t.center).add(Ie)),this.expandByPoint(ke.copy(t.center).sub(Ie))),this)}equals(t){return t.center.equals(this.center)&&t.radius===this.radius}clone(){return(new this.constructor).copy(this)}}const Pe=new ce,Oe=new ce,Le=new ce,Re=new ce,De=new ce,ze=new ce,Fe=new ce;class Be{constructor(t=new ce,e=new ce(0,0,-1)){this.origin=t,this.direction=e}set(t,e){return this.origin.copy(t),this.direction.copy(e),this}copy(t){return this.origin.copy(t.origin),this.direction.copy(t.direction),this}at(t,e){return e.copy(this.origin).addScaledVector(this.direction,t)}lookAt(t){return this.direction.copy(t).sub(this.origin).normalize(),this}recast(t){return this.origin.copy(this.at(t,Pe)),this}closestPointToPoint(t,e){e.subVectors(t,this.origin);const n=e.dot(this.direction);return n<0?e.copy(this.origin):e.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(t){return Math.sqrt(this.distanceSqToPoint(t))}distanceSqToPoint(t){const e=Pe.subVectors(t,this.origin).dot(this.direction);return e<0?this.origin.distanceToSquared(t):(Pe.copy(this.origin).addScaledVector(this.direction,e),Pe.distanceToSquared(t))}distanceSqToSegment(t,e,n,r){Oe.copy(t).add(e).multiplyScalar(.5),Le.copy(e).sub(t).normalize(),Re.copy(this.origin).sub(Oe);const i=.5*t.distanceTo(e),o=-this.direction.dot(Le),a=Re.dot(this.direction),s=-Re.dot(Le),u=Re.lengthSq(),l=Math.abs(1-o*o);let c,h,d,f;if(l>0)if(c=o*s-a,h=o*a-s,f=i*l,c>=0)if(h>=-f)if(h<=f){const t=1/l;c*=t,h*=t,d=c*(c+o*h+2*a)+h*(o*c+h+2*s)+u}else h=i,c=Math.max(0,-(o*h+a)),d=-c*c+h*(h+2*s)+u;else h=-i,c=Math.max(0,-(o*h+a)),d=-c*c+h*(h+2*s)+u;else h<=-f?(c=Math.max(0,-(-o*i+a)),h=c>0?-i:Math.min(Math.max(-i,-s),i),d=-c*c+h*(h+2*s)+u):h<=f?(c=0,h=Math.min(Math.max(-i,-s),i),d=h*(h+2*s)+u):(c=Math.max(0,-(o*i+a)),h=c>0?i:Math.min(Math.max(-i,-s),i),d=-c*c+h*(h+2*s)+u);else h=o>0?-i:i,c=Math.max(0,-(o*h+a)),d=-c*c+h*(h+2*s)+u;return n&&n.copy(this.origin).addScaledVector(this.direction,c),r&&r.copy(Oe).addScaledVector(Le,h),d}intersectSphere(t,e){Pe.subVectors(t.center,this.origin);const n=Pe.dot(this.direction),r=Pe.dot(Pe)-n*n,i=t.radius*t.radius;if(r>i)return null;const o=Math.sqrt(i-r),a=n-o,s=n+o;return s<0?null:a<0?this.at(s,e):this.at(a,e)}intersectsSphere(t){return this.distanceSqToPoint(t.center)<=t.radius*t.radius}distanceToPlane(t){const e=t.normal.dot(this.direction);if(0===e)return 0===t.distanceToPoint(this.origin)?0:null;const n=-(this.origin.dot(t.normal)+t.constant)/e;return n>=0?n:null}intersectPlane(t,e){const n=this.distanceToPlane(t);return null===n?null:this.at(n,e)}intersectsPlane(t){const e=t.distanceToPoint(this.origin);if(0===e)return!0;return t.normal.dot(this.direction)*e<0}intersectBox(t,e){let n,r,i,o,a,s;const u=1/this.direction.x,l=1/this.direction.y,c=1/this.direction.z,h=this.origin;return u>=0?(n=(t.min.x-h.x)*u,r=(t.max.x-h.x)*u):(n=(t.max.x-h.x)*u,r=(t.min.x-h.x)*u),l>=0?(i=(t.min.y-h.y)*l,o=(t.max.y-h.y)*l):(i=(t.max.y-h.y)*l,o=(t.min.y-h.y)*l),n>o||i>r?null:((i>n||isNaN(n))&&(n=i),(o=0?(a=(t.min.z-h.z)*c,s=(t.max.z-h.z)*c):(a=(t.max.z-h.z)*c,s=(t.min.z-h.z)*c),n>s||a>r?null:((a>n||n!=n)&&(n=a),(s=0?n:r,e)))}intersectsBox(t){return null!==this.intersectBox(t,Pe)}intersectTriangle(t,e,n,r,i){De.subVectors(e,t),ze.subVectors(n,t),Fe.crossVectors(De,ze);let o,a=this.direction.dot(Fe);if(a>0){if(r)return null;o=1}else{if(!(a<0))return null;o=-1,a=-a}Re.subVectors(this.origin,t);const s=o*this.direction.dot(ze.crossVectors(Re,ze));if(s<0)return null;const u=o*this.direction.dot(De.cross(Re));if(u<0)return null;if(s+u>a)return null;const l=-o*Re.dot(Fe);return l<0?null:this.at(l/a,i)}applyMatrix4(t){return this.origin.applyMatrix4(t),this.direction.transformDirection(t),this}equals(t){return t.origin.equals(this.origin)&&t.direction.equals(this.direction)}clone(){return(new this.constructor).copy(this)}}class Ue{constructor(){Ue.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}set(t,e,n,r,i,o,a,s,u,l,c,h,d,f,p,m){const g=this.elements;return g[0]=t,g[4]=e,g[8]=n,g[12]=r,g[1]=i,g[5]=o,g[9]=a,g[13]=s,g[2]=u,g[6]=l,g[10]=c,g[14]=h,g[3]=d,g[7]=f,g[11]=p,g[15]=m,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return(new Ue).fromArray(this.elements)}copy(t){const e=this.elements,n=t.elements;return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=n[6],e[7]=n[7],e[8]=n[8],e[9]=n[9],e[10]=n[10],e[11]=n[11],e[12]=n[12],e[13]=n[13],e[14]=n[14],e[15]=n[15],this}copyPosition(t){const e=this.elements,n=t.elements;return e[12]=n[12],e[13]=n[13],e[14]=n[14],this}setFromMatrix3(t){const e=t.elements;return this.set(e[0],e[3],e[6],0,e[1],e[4],e[7],0,e[2],e[5],e[8],0,0,0,0,1),this}extractBasis(t,e,n){return t.setFromMatrixColumn(this,0),e.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}makeBasis(t,e,n){return this.set(t.x,e.x,n.x,0,t.y,e.y,n.y,0,t.z,e.z,n.z,0,0,0,0,1),this}extractRotation(t){const e=this.elements,n=t.elements,r=1/je.setFromMatrixColumn(t,0).length(),i=1/je.setFromMatrixColumn(t,1).length(),o=1/je.setFromMatrixColumn(t,2).length();return e[0]=n[0]*r,e[1]=n[1]*r,e[2]=n[2]*r,e[3]=0,e[4]=n[4]*i,e[5]=n[5]*i,e[6]=n[6]*i,e[7]=0,e[8]=n[8]*o,e[9]=n[9]*o,e[10]=n[10]*o,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromEuler(t){const e=this.elements,n=t.x,r=t.y,i=t.z,o=Math.cos(n),a=Math.sin(n),s=Math.cos(r),u=Math.sin(r),l=Math.cos(i),c=Math.sin(i);if("XYZ"===t.order){const t=o*l,n=o*c,r=a*l,i=a*c;e[0]=s*l,e[4]=-s*c,e[8]=u,e[1]=n+r*u,e[5]=t-i*u,e[9]=-a*s,e[2]=i-t*u,e[6]=r+n*u,e[10]=o*s}else if("YXZ"===t.order){const t=s*l,n=s*c,r=u*l,i=u*c;e[0]=t+i*a,e[4]=r*a-n,e[8]=o*u,e[1]=o*c,e[5]=o*l,e[9]=-a,e[2]=n*a-r,e[6]=i+t*a,e[10]=o*s}else if("ZXY"===t.order){const t=s*l,n=s*c,r=u*l,i=u*c;e[0]=t-i*a,e[4]=-o*c,e[8]=r+n*a,e[1]=n+r*a,e[5]=o*l,e[9]=i-t*a,e[2]=-o*u,e[6]=a,e[10]=o*s}else if("ZYX"===t.order){const t=o*l,n=o*c,r=a*l,i=a*c;e[0]=s*l,e[4]=r*u-n,e[8]=t*u+i,e[1]=s*c,e[5]=i*u+t,e[9]=n*u-r,e[2]=-u,e[6]=a*s,e[10]=o*s}else if("YZX"===t.order){const t=o*s,n=o*u,r=a*s,i=a*u;e[0]=s*l,e[4]=i-t*c,e[8]=r*c+n,e[1]=c,e[5]=o*l,e[9]=-a*l,e[2]=-u*l,e[6]=n*c+r,e[10]=t-i*c}else if("XZY"===t.order){const t=o*s,n=o*u,r=a*s,i=a*u;e[0]=s*l,e[4]=-c,e[8]=u*l,e[1]=t*c+i,e[5]=o*l,e[9]=n*c-r,e[2]=r*c-n,e[6]=a*l,e[10]=i*c+t}return e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromQuaternion(t){return this.compose(He,t,Ge)}lookAt(t,e,n){const r=this.elements;return Ye.subVectors(t,e),0===Ye.lengthSq()&&(Ye.z=1),Ye.normalize(),We.crossVectors(n,Ye),0===We.lengthSq()&&(1===Math.abs(n.z)?Ye.x+=1e-4:Ye.z+=1e-4,Ye.normalize(),We.crossVectors(n,Ye)),We.normalize(),Xe.crossVectors(Ye,We),r[0]=We.x,r[4]=Xe.x,r[8]=Ye.x,r[1]=We.y,r[5]=Xe.y,r[9]=Ye.y,r[2]=We.z,r[6]=Xe.z,r[10]=Ye.z,this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,e){const n=t.elements,r=e.elements,i=this.elements,o=n[0],a=n[4],s=n[8],u=n[12],l=n[1],c=n[5],h=n[9],d=n[13],f=n[2],p=n[6],m=n[10],g=n[14],v=n[3],y=n[7],b=n[11],x=n[15],w=r[0],_=r[4],S=r[8],E=r[12],A=r[1],M=r[5],C=r[9],T=r[13],k=r[2],I=r[6],N=r[10],P=r[14],O=r[3],L=r[7],R=r[11],D=r[15];return i[0]=o*w+a*A+s*k+u*O,i[4]=o*_+a*M+s*I+u*L,i[8]=o*S+a*C+s*N+u*R,i[12]=o*E+a*T+s*P+u*D,i[1]=l*w+c*A+h*k+d*O,i[5]=l*_+c*M+h*I+d*L,i[9]=l*S+c*C+h*N+d*R,i[13]=l*E+c*T+h*P+d*D,i[2]=f*w+p*A+m*k+g*O,i[6]=f*_+p*M+m*I+g*L,i[10]=f*S+p*C+m*N+g*R,i[14]=f*E+p*T+m*P+g*D,i[3]=v*w+y*A+b*k+x*O,i[7]=v*_+y*M+b*I+x*L,i[11]=v*S+y*C+b*N+x*R,i[15]=v*E+y*T+b*P+x*D,this}multiplyScalar(t){const e=this.elements;return e[0]*=t,e[4]*=t,e[8]*=t,e[12]*=t,e[1]*=t,e[5]*=t,e[9]*=t,e[13]*=t,e[2]*=t,e[6]*=t,e[10]*=t,e[14]*=t,e[3]*=t,e[7]*=t,e[11]*=t,e[15]*=t,this}determinant(){const t=this.elements,e=t[0],n=t[4],r=t[8],i=t[12],o=t[1],a=t[5],s=t[9],u=t[13],l=t[2],c=t[6],h=t[10],d=t[14];return t[3]*(+i*s*c-r*u*c-i*a*h+n*u*h+r*a*d-n*s*d)+t[7]*(+e*s*d-e*u*h+i*o*h-r*o*d+r*u*l-i*s*l)+t[11]*(+e*u*c-e*a*d-i*o*c+n*o*d+i*a*l-n*u*l)+t[15]*(-r*a*l-e*s*c+e*a*h+r*o*c-n*o*h+n*s*l)}transpose(){const t=this.elements;let e;return e=t[1],t[1]=t[4],t[4]=e,e=t[2],t[2]=t[8],t[8]=e,e=t[6],t[6]=t[9],t[9]=e,e=t[3],t[3]=t[12],t[12]=e,e=t[7],t[7]=t[13],t[13]=e,e=t[11],t[11]=t[14],t[14]=e,this}setPosition(t,e,n){const r=this.elements;return t.isVector3?(r[12]=t.x,r[13]=t.y,r[14]=t.z):(r[12]=t,r[13]=e,r[14]=n),this}invert(){const t=this.elements,e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],u=t[7],l=t[8],c=t[9],h=t[10],d=t[11],f=t[12],p=t[13],m=t[14],g=t[15],v=c*m*u-p*h*u+p*s*d-a*m*d-c*s*g+a*h*g,y=f*h*u-l*m*u-f*s*d+o*m*d+l*s*g-o*h*g,b=l*p*u-f*c*u+f*a*d-o*p*d-l*a*g+o*c*g,x=f*c*s-l*p*s-f*a*h+o*p*h+l*a*m-o*c*m,w=e*v+n*y+r*b+i*x;if(0===w)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const _=1/w;return t[0]=v*_,t[1]=(p*h*i-c*m*i-p*r*d+n*m*d+c*r*g-n*h*g)*_,t[2]=(a*m*i-p*s*i+p*r*u-n*m*u-a*r*g+n*s*g)*_,t[3]=(c*s*i-a*h*i-c*r*u+n*h*u+a*r*d-n*s*d)*_,t[4]=y*_,t[5]=(l*m*i-f*h*i+f*r*d-e*m*d-l*r*g+e*h*g)*_,t[6]=(f*s*i-o*m*i-f*r*u+e*m*u+o*r*g-e*s*g)*_,t[7]=(o*h*i-l*s*i+l*r*u-e*h*u-o*r*d+e*s*d)*_,t[8]=b*_,t[9]=(f*c*i-l*p*i-f*n*d+e*p*d+l*n*g-e*c*g)*_,t[10]=(o*p*i-f*a*i+f*n*u-e*p*u-o*n*g+e*a*g)*_,t[11]=(l*a*i-o*c*i-l*n*u+e*c*u+o*n*d-e*a*d)*_,t[12]=x*_,t[13]=(l*p*r-f*c*r+f*n*h-e*p*h-l*n*m+e*c*m)*_,t[14]=(f*a*r-o*p*r-f*n*s+e*p*s+o*n*m-e*a*m)*_,t[15]=(o*c*r-l*a*r+l*n*s-e*c*s-o*n*h+e*a*h)*_,this}scale(t){const e=this.elements,n=t.x,r=t.y,i=t.z;return e[0]*=n,e[4]*=r,e[8]*=i,e[1]*=n,e[5]*=r,e[9]*=i,e[2]*=n,e[6]*=r,e[10]*=i,e[3]*=n,e[7]*=r,e[11]*=i,this}getMaxScaleOnAxis(){const t=this.elements,e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],n=t[4]*t[4]+t[5]*t[5]+t[6]*t[6],r=t[8]*t[8]+t[9]*t[9]+t[10]*t[10];return Math.sqrt(Math.max(e,n,r))}makeTranslation(t,e,n){return this.set(1,0,0,t,0,1,0,e,0,0,1,n,0,0,0,1),this}makeRotationX(t){const e=Math.cos(t),n=Math.sin(t);return this.set(1,0,0,0,0,e,-n,0,0,n,e,0,0,0,0,1),this}makeRotationY(t){const e=Math.cos(t),n=Math.sin(t);return this.set(e,0,n,0,0,1,0,0,-n,0,e,0,0,0,0,1),this}makeRotationZ(t){const e=Math.cos(t),n=Math.sin(t);return this.set(e,-n,0,0,n,e,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(t,e){const n=Math.cos(e),r=Math.sin(e),i=1-n,o=t.x,a=t.y,s=t.z,u=i*o,l=i*a;return this.set(u*o+n,u*a-r*s,u*s+r*a,0,u*a+r*s,l*a+n,l*s-r*o,0,u*s-r*a,l*s+r*o,i*s*s+n,0,0,0,0,1),this}makeScale(t,e,n){return this.set(t,0,0,0,0,e,0,0,0,0,n,0,0,0,0,1),this}makeShear(t,e,n,r,i,o){return this.set(1,n,i,0,t,1,o,0,e,r,1,0,0,0,0,1),this}compose(t,e,n){const r=this.elements,i=e._x,o=e._y,a=e._z,s=e._w,u=i+i,l=o+o,c=a+a,h=i*u,d=i*l,f=i*c,p=o*l,m=o*c,g=a*c,v=s*u,y=s*l,b=s*c,x=n.x,w=n.y,_=n.z;return r[0]=(1-(p+g))*x,r[1]=(d+b)*x,r[2]=(f-y)*x,r[3]=0,r[4]=(d-b)*w,r[5]=(1-(h+g))*w,r[6]=(m+v)*w,r[7]=0,r[8]=(f+y)*_,r[9]=(m-v)*_,r[10]=(1-(h+p))*_,r[11]=0,r[12]=t.x,r[13]=t.y,r[14]=t.z,r[15]=1,this}decompose(t,e,n){const r=this.elements;let i=je.set(r[0],r[1],r[2]).length();const o=je.set(r[4],r[5],r[6]).length(),a=je.set(r[8],r[9],r[10]).length();this.determinant()<0&&(i=-i),t.x=r[12],t.y=r[13],t.z=r[14],Ve.copy(this);const s=1/i,u=1/o,l=1/a;return Ve.elements[0]*=s,Ve.elements[1]*=s,Ve.elements[2]*=s,Ve.elements[4]*=u,Ve.elements[5]*=u,Ve.elements[6]*=u,Ve.elements[8]*=l,Ve.elements[9]*=l,Ve.elements[10]*=l,e.setFromRotationMatrix(Ve),n.x=i,n.y=o,n.z=a,this}makePerspective(t,e,n,r,i,o){const a=this.elements,s=2*i/(e-t),u=2*i/(n-r),l=(e+t)/(e-t),c=(n+r)/(n-r),h=-(o+i)/(o-i),d=-2*o*i/(o-i);return a[0]=s,a[4]=0,a[8]=l,a[12]=0,a[1]=0,a[5]=u,a[9]=c,a[13]=0,a[2]=0,a[6]=0,a[10]=h,a[14]=d,a[3]=0,a[7]=0,a[11]=-1,a[15]=0,this}makeOrthographic(t,e,n,r,i,o){const a=this.elements,s=1/(e-t),u=1/(n-r),l=1/(o-i),c=(e+t)*s,h=(n+r)*u,d=(o+i)*l;return a[0]=2*s,a[4]=0,a[8]=0,a[12]=-c,a[1]=0,a[5]=2*u,a[9]=0,a[13]=-h,a[2]=0,a[6]=0,a[10]=-2*l,a[14]=-d,a[3]=0,a[7]=0,a[11]=0,a[15]=1,this}equals(t){const e=this.elements,n=t.elements;for(let t=0;t<16;t++)if(e[t]!==n[t])return!1;return!0}fromArray(t,e=0){for(let n=0;n<16;n++)this.elements[n]=t[n+e];return this}toArray(t=[],e=0){const n=this.elements;return t[e]=n[0],t[e+1]=n[1],t[e+2]=n[2],t[e+3]=n[3],t[e+4]=n[4],t[e+5]=n[5],t[e+6]=n[6],t[e+7]=n[7],t[e+8]=n[8],t[e+9]=n[9],t[e+10]=n[10],t[e+11]=n[11],t[e+12]=n[12],t[e+13]=n[13],t[e+14]=n[14],t[e+15]=n[15],t}}const je=new ce,Ve=new Ue,He=new ce(0,0,0),Ge=new ce(1,1,1),We=new ce,Xe=new ce,Ye=new ce,qe=new Ue,$e=new le;class Ke{constructor(t=0,e=0,n=0,r=Ke.DEFAULT_ORDER){this.isEuler=!0,this._x=t,this._y=e,this._z=n,this._order=r}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get order(){return this._order}set order(t){this._order=t,this._onChangeCallback()}set(t,e,n,r=this._order){return this._x=t,this._y=e,this._z=n,this._order=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(t){return this._x=t._x,this._y=t._y,this._z=t._z,this._order=t._order,this._onChangeCallback(),this}setFromRotationMatrix(t,e=this._order,n=!0){const r=t.elements,i=r[0],o=r[4],a=r[8],s=r[1],u=r[5],l=r[9],c=r[2],h=r[6],d=r[10];switch(e){case"XYZ":this._y=Math.asin(Pt(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-l,d),this._z=Math.atan2(-o,i)):(this._x=Math.atan2(h,u),this._z=0);break;case"YXZ":this._x=Math.asin(-Pt(l,-1,1)),Math.abs(l)<.9999999?(this._y=Math.atan2(a,d),this._z=Math.atan2(s,u)):(this._y=Math.atan2(-c,i),this._z=0);break;case"ZXY":this._x=Math.asin(Pt(h,-1,1)),Math.abs(h)<.9999999?(this._y=Math.atan2(-c,d),this._z=Math.atan2(-o,u)):(this._y=0,this._z=Math.atan2(s,i));break;case"ZYX":this._y=Math.asin(-Pt(c,-1,1)),Math.abs(c)<.9999999?(this._x=Math.atan2(h,d),this._z=Math.atan2(s,i)):(this._x=0,this._z=Math.atan2(-o,u));break;case"YZX":this._z=Math.asin(Pt(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(-l,u),this._y=Math.atan2(-c,i)):(this._x=0,this._y=Math.atan2(a,d));break;case"XZY":this._z=Math.asin(-Pt(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(h,u),this._y=Math.atan2(a,i)):(this._x=Math.atan2(-l,d),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+e)}return this._order=e,!0===n&&this._onChangeCallback(),this}setFromQuaternion(t,e,n){return qe.makeRotationFromQuaternion(t),this.setFromRotationMatrix(qe,e,n)}setFromVector3(t,e=this._order){return this.set(t.x,t.y,t.z,e)}reorder(t){return $e.setFromEuler(this),this.setFromQuaternion($e,t)}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._order===this._order}fromArray(t){return this._x=t[0],this._y=t[1],this._z=t[2],void 0!==t[3]&&(this._order=t[3]),this._onChangeCallback(),this}toArray(t=[],e=0){return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._order,t}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}Ke.DEFAULT_ORDER="XYZ";class Ze{constructor(){this.mask=1}set(t){this.mask=1<>>0}enable(t){this.mask|=1<1){for(let t=0;t1){for(let t=0;t0&&(n=n.concat(i))}return n}getWorldPosition(t){return this.updateWorldMatrix(!0,!1),t.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(t){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(rn,t,on),t}getWorldScale(t){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(rn,an,t),t}getWorldDirection(t){this.updateWorldMatrix(!0,!1);const e=this.matrixWorld.elements;return t.set(e[8],e[9],e[10]).normalize()}raycast(){}traverse(t){t(this);const e=this.children;for(let n=0,r=e.length;n0&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),r.up=this.up.toArray(),!1===this.matrixAutoUpdate&&(r.matrixAutoUpdate=!1),this.isInstancedMesh&&(r.type="InstancedMesh",r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),null!==this.instanceColor&&(r.instanceColor=this.instanceColor.toJSON())),this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(t).uuid)),this.environment&&this.environment.isTexture&&!0!==this.environment.isRenderTargetTexture&&(r.environment=this.environment.toJSON(t).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=i(t.geometries,this.geometry);const e=this.geometry.parameters;if(void 0!==e&&void 0!==e.shapes){const n=e.shapes;if(Array.isArray(n))for(let e=0,r=n.length;e0){r.children=[];for(let e=0;e0){r.animations=[];for(let e=0;e0&&(n.geometries=e),r.length>0&&(n.materials=r),i.length>0&&(n.textures=i),a.length>0&&(n.images=a),s.length>0&&(n.shapes=s),u.length>0&&(n.skeletons=u),l.length>0&&(n.animations=l),c.length>0&&(n.nodes=c)}return n.object=r,n;function o(t){const e=[];for(const n in t){const r=t[n];delete r.metadata,e.push(r)}return e}}clone(t){return(new this.constructor).copy(this,t)}copy(t,e=!0){if(this.name=t.name,this.up.copy(t.up),this.position.copy(t.position),this.rotation.order=t.rotation.order,this.quaternion.copy(t.quaternion),this.scale.copy(t.scale),this.matrix.copy(t.matrix),this.matrixWorld.copy(t.matrixWorld),this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrixWorldNeedsUpdate=t.matrixWorldNeedsUpdate,this.matrixWorldAutoUpdate=t.matrixWorldAutoUpdate,this.layers.mask=t.layers.mask,this.visible=t.visible,this.castShadow=t.castShadow,this.receiveShadow=t.receiveShadow,this.frustumCulled=t.frustumCulled,this.renderOrder=t.renderOrder,this.userData=JSON.parse(JSON.stringify(t.userData)),!0===e)for(let e=0;e0?r.multiplyScalar(1/Math.sqrt(i)):r.set(0,0,0)}static getBarycoord(t,e,n,r,i){fn.subVectors(r,e),pn.subVectors(n,e),mn.subVectors(t,e);const o=fn.dot(fn),a=fn.dot(pn),s=fn.dot(mn),u=pn.dot(pn),l=pn.dot(mn),c=o*u-a*a;if(0===c)return i.set(-2,-1,-1);const h=1/c,d=(u*s-a*l)*h,f=(o*l-a*s)*h;return i.set(1-d-f,f,d)}static containsPoint(t,e,n,r){return this.getBarycoord(t,e,n,r,gn),gn.x>=0&&gn.y>=0&&gn.x+gn.y<=1}static getUV(t,e,n,r,i,o,a,s){return!1===Sn&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),Sn=!0),this.getInterpolation(t,e,n,r,i,o,a,s)}static getInterpolation(t,e,n,r,i,o,a,s){return this.getBarycoord(t,e,n,r,gn),s.setScalar(0),s.addScaledVector(i,gn.x),s.addScaledVector(o,gn.y),s.addScaledVector(a,gn.z),s}static isFrontFacing(t,e,n,r){return fn.subVectors(n,e),pn.subVectors(t,e),fn.cross(pn).dot(r)<0}set(t,e,n){return this.a.copy(t),this.b.copy(e),this.c.copy(n),this}setFromPointsAndIndices(t,e,n,r){return this.a.copy(t[e]),this.b.copy(t[n]),this.c.copy(t[r]),this}setFromAttributeAndIndices(t,e,n,r){return this.a.fromBufferAttribute(t,e),this.b.fromBufferAttribute(t,n),this.c.fromBufferAttribute(t,r),this}clone(){return(new this.constructor).copy(this)}copy(t){return this.a.copy(t.a),this.b.copy(t.b),this.c.copy(t.c),this}getArea(){return fn.subVectors(this.c,this.b),pn.subVectors(this.a,this.b),.5*fn.cross(pn).length()}getMidpoint(t){return t.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(t){return En.getNormal(this.a,this.b,this.c,t)}getPlane(t){return t.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(t,e){return En.getBarycoord(t,this.a,this.b,this.c,e)}getUV(t,e,n,r,i){return!1===Sn&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),Sn=!0),En.getInterpolation(t,this.a,this.b,this.c,e,n,r,i)}getInterpolation(t,e,n,r,i){return En.getInterpolation(t,this.a,this.b,this.c,e,n,r,i)}containsPoint(t){return En.containsPoint(t,this.a,this.b,this.c)}isFrontFacing(t){return En.isFrontFacing(this.a,this.b,this.c,t)}intersectsBox(t){return t.intersectsTriangle(this)}closestPointToPoint(t,e){const n=this.a,r=this.b,i=this.c;let o,a;vn.subVectors(r,n),yn.subVectors(i,n),xn.subVectors(t,n);const s=vn.dot(xn),u=yn.dot(xn);if(s<=0&&u<=0)return e.copy(n);wn.subVectors(t,r);const l=vn.dot(wn),c=yn.dot(wn);if(l>=0&&c<=l)return e.copy(r);const h=s*c-l*u;if(h<=0&&s>=0&&l<=0)return o=s/(s-l),e.copy(n).addScaledVector(vn,o);_n.subVectors(t,i);const d=vn.dot(_n),f=yn.dot(_n);if(f>=0&&d<=f)return e.copy(i);const p=d*u-s*f;if(p<=0&&u>=0&&f<=0)return a=u/(u-f),e.copy(n).addScaledVector(yn,a);const m=l*f-d*c;if(m<=0&&c-l>=0&&d-f>=0)return bn.subVectors(i,r),a=(c-l)/(c-l+(d-f)),e.copy(r).addScaledVector(bn,a);const g=1/(m+p+h);return o=p*g,a=h*g,e.copy(n).addScaledVector(vn,o).addScaledVector(yn,a)}equals(t){return t.a.equals(this.a)&&t.b.equals(this.b)&&t.c.equals(this.c)}}let An=0;class Mn extends Mt{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:An++}),this.uuid=Nt(),this.name="",this.type="Material",this.blending=1,this.side=l,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.blendSrc=204,this.blendDst=205,this.blendEquation=d,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.depthFunc=3,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=519,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=_t,this.stencilZFail=_t,this.stencilZPass=_t,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.forceSinglePass=!1,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(t){this._alphaTest>0!=t>0&&this.version++,this._alphaTest=t}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(t){if(void 0!==t)for(const e in t){const n=t[e];if(void 0===n){console.warn(`THREE.Material: parameter '${e}' has value of undefined.`);continue}const r=this[e];void 0!==r?r&&r.isColor?r.set(n):r&&r.isVector3&&n&&n.isVector3?r.copy(n):this[e]=n:console.warn(`THREE.Material: '${e}' is not a property of THREE.${this.type}.`)}}toJSON(t){const e=void 0===t||"string"==typeof t;e&&(t={textures:{},images:{}});const n={metadata:{version:4.5,type:"Material",generator:"Material.toJSON"}};function r(t){const e=[];for(const n in t){const r=t[n];delete r.metadata,e.push(r)}return e}if(n.uuid=this.uuid,n.type=this.type,""!==this.name&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),void 0!==this.roughness&&(n.roughness=this.roughness),void 0!==this.metalness&&(n.metalness=this.metalness),void 0!==this.sheen&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),void 0!==this.sheenRoughness&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity&&1!==this.emissiveIntensity&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),void 0!==this.specularIntensity&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),void 0!==this.shininess&&(n.shininess=this.shininess),void 0!==this.clearcoat&&(n.clearcoat=this.clearcoat),void 0!==this.clearcoatRoughness&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(t).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(t).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(t).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),void 0!==this.iridescence&&(n.iridescence=this.iridescence),void 0!==this.iridescenceIOR&&(n.iridescenceIOR=this.iridescenceIOR),void 0!==this.iridescenceThicknessRange&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(t).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(t).uuid),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(t).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(t).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(t).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(t).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(t).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(t).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(t).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(t).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(t).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(t).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(t).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(t).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(t).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(t).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(t).uuid,void 0!==this.combine&&(n.combine=this.combine)),void 0!==this.envMapIntensity&&(n.envMapIntensity=this.envMapIntensity),void 0!==this.reflectivity&&(n.reflectivity=this.reflectivity),void 0!==this.refractionRatio&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(t).uuid),void 0!==this.transmission&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(t).uuid),void 0!==this.thickness&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(t).uuid),void 0!==this.attenuationDistance&&this.attenuationDistance!==1/0&&(n.attenuationDistance=this.attenuationDistance),void 0!==this.attenuationColor&&(n.attenuationColor=this.attenuationColor.getHex()),void 0!==this.size&&(n.size=this.size),null!==this.shadowSide&&(n.shadowSide=this.shadowSide),void 0!==this.sizeAttenuation&&(n.sizeAttenuation=this.sizeAttenuation),1!==this.blending&&(n.blending=this.blending),this.side!==l&&(n.side=this.side),this.vertexColors&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),!0===this.transparent&&(n.transparent=this.transparent),n.depthFunc=this.depthFunc,n.depthTest=this.depthTest,n.depthWrite=this.depthWrite,n.colorWrite=this.colorWrite,n.stencilWrite=this.stencilWrite,n.stencilWriteMask=this.stencilWriteMask,n.stencilFunc=this.stencilFunc,n.stencilRef=this.stencilRef,n.stencilFuncMask=this.stencilFuncMask,n.stencilFail=this.stencilFail,n.stencilZFail=this.stencilZFail,n.stencilZPass=this.stencilZPass,void 0!==this.rotation&&0!==this.rotation&&(n.rotation=this.rotation),!0===this.polygonOffset&&(n.polygonOffset=!0),0!==this.polygonOffsetFactor&&(n.polygonOffsetFactor=this.polygonOffsetFactor),0!==this.polygonOffsetUnits&&(n.polygonOffsetUnits=this.polygonOffsetUnits),void 0!==this.linewidth&&1!==this.linewidth&&(n.linewidth=this.linewidth),void 0!==this.dashSize&&(n.dashSize=this.dashSize),void 0!==this.gapSize&&(n.gapSize=this.gapSize),void 0!==this.scale&&(n.scale=this.scale),!0===this.dithering&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),!0===this.alphaToCoverage&&(n.alphaToCoverage=this.alphaToCoverage),!0===this.premultipliedAlpha&&(n.premultipliedAlpha=this.premultipliedAlpha),!0===this.forceSinglePass&&(n.forceSinglePass=this.forceSinglePass),!0===this.wireframe&&(n.wireframe=this.wireframe),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(n.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(n.wireframeLinejoin=this.wireframeLinejoin),!0===this.flatShading&&(n.flatShading=this.flatShading),!1===this.visible&&(n.visible=!1),!1===this.toneMapped&&(n.toneMapped=!1),!1===this.fog&&(n.fog=!1),Object.keys(this.userData).length>0&&(n.userData=this.userData),e){const e=r(t.textures),i=r(t.images);e.length>0&&(n.textures=e),i.length>0&&(n.images=i)}return n}clone(){return(new this.constructor).copy(this)}copy(t){this.name=t.name,this.blending=t.blending,this.side=t.side,this.vertexColors=t.vertexColors,this.opacity=t.opacity,this.transparent=t.transparent,this.blendSrc=t.blendSrc,this.blendDst=t.blendDst,this.blendEquation=t.blendEquation,this.blendSrcAlpha=t.blendSrcAlpha,this.blendDstAlpha=t.blendDstAlpha,this.blendEquationAlpha=t.blendEquationAlpha,this.depthFunc=t.depthFunc,this.depthTest=t.depthTest,this.depthWrite=t.depthWrite,this.stencilWriteMask=t.stencilWriteMask,this.stencilFunc=t.stencilFunc,this.stencilRef=t.stencilRef,this.stencilFuncMask=t.stencilFuncMask,this.stencilFail=t.stencilFail,this.stencilZFail=t.stencilZFail,this.stencilZPass=t.stencilZPass,this.stencilWrite=t.stencilWrite;const e=t.clippingPlanes;let n=null;if(null!==e){const t=e.length;n=new Array(t);for(let r=0;r!==t;++r)n[r]=e[r].clone()}return this.clippingPlanes=n,this.clipIntersection=t.clipIntersection,this.clipShadows=t.clipShadows,this.shadowSide=t.shadowSide,this.colorWrite=t.colorWrite,this.precision=t.precision,this.polygonOffset=t.polygonOffset,this.polygonOffsetFactor=t.polygonOffsetFactor,this.polygonOffsetUnits=t.polygonOffsetUnits,this.dithering=t.dithering,this.alphaTest=t.alphaTest,this.alphaToCoverage=t.alphaToCoverage,this.premultipliedAlpha=t.premultipliedAlpha,this.forceSinglePass=t.forceSinglePass,this.visible=t.visible,this.toneMapped=t.toneMapped,this.userData=JSON.parse(JSON.stringify(t.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(t){!0===t&&this.version++}}const Cn={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},Tn={h:0,s:0,l:0},kn={h:0,s:0,l:0};function In(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+6*(e-t)*(2/3-n):t}class Nn{constructor(t,e,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,void 0===e&&void 0===n?this.set(t):this.setRGB(t,e,n)}set(t){return t&&t.isColor?this.copy(t):"number"==typeof t?this.setHex(t):"string"==typeof t&&this.setStyle(t),this}setScalar(t){return this.r=t,this.g=t,this.b=t,this}setHex(t,e=bt){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(255&t)/255,Qt.toWorkingColorSpace(this,e),this}setRGB(t,e,n,r=Qt.workingColorSpace){return this.r=t,this.g=e,this.b=n,Qt.toWorkingColorSpace(this,r),this}setHSL(t,e,n,r=Qt.workingColorSpace){if(t=Ot(t,1),e=Pt(e,0,1),n=Pt(n,0,1),0===e)this.r=this.g=this.b=n;else{const r=n<=.5?n*(1+e):n+e-n*e,i=2*n-r;this.r=In(i,r,t+1/3),this.g=In(i,r,t),this.b=In(i,r,t-1/3)}return Qt.toWorkingColorSpace(this,r),this}setStyle(t,e=bt){function n(e){void 0!==e&&parseFloat(e)<1&&console.warn("THREE.Color: Alpha component of "+t+" will be ignored.")}let r;if(r=/^(\w+)\(([^\)]*)\)/.exec(t)){let i;const o=r[1],a=r[2];switch(o){case"rgb":case"rgba":if(i=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return this.r=Math.min(255,parseInt(i[1],10))/255,this.g=Math.min(255,parseInt(i[2],10))/255,this.b=Math.min(255,parseInt(i[3],10))/255,Qt.toWorkingColorSpace(this,e),n(i[4]),this;if(i=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return this.r=Math.min(100,parseInt(i[1],10))/100,this.g=Math.min(100,parseInt(i[2],10))/100,this.b=Math.min(100,parseInt(i[3],10))/100,Qt.toWorkingColorSpace(this,e),n(i[4]),this;break;case"hsl":case"hsla":if(i=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a)){const t=parseFloat(i[1])/360,r=parseFloat(i[2])/100,o=parseFloat(i[3])/100;return n(i[4]),this.setHSL(t,r,o,e)}break;default:console.warn("THREE.Color: Unknown color model "+t)}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(t)){const n=r[1],i=n.length;if(3===i)return this.setRGB(parseInt(n.charAt(0),16)/15,parseInt(n.charAt(1),16)/15,parseInt(n.charAt(2),16)/15,e);if(6===i)return this.setHex(parseInt(n,16),e);console.warn("THREE.Color: Invalid hex color "+t)}else if(t&&t.length>0)return this.setColorName(t,e);return this}setColorName(t,e=bt){const n=Cn[t.toLowerCase()];return void 0!==n?this.setHex(n,e):console.warn("THREE.Color: Unknown color "+t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(t){return this.r=t.r,this.g=t.g,this.b=t.b,this}copySRGBToLinear(t){return this.r=Xt(t.r),this.g=Xt(t.g),this.b=Xt(t.b),this}copyLinearToSRGB(t){return this.r=Yt(t.r),this.g=Yt(t.g),this.b=Yt(t.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(t=bt){return Qt.fromWorkingColorSpace(Pn.copy(this),t),Pt(255*Pn.r,0,255)<<16^Pt(255*Pn.g,0,255)<<8^Pt(255*Pn.b,0,255)}getHexString(t=bt){return("000000"+this.getHex(t).toString(16)).slice(-6)}getHSL(t,e=Qt.workingColorSpace){Qt.fromWorkingColorSpace(Pn.copy(this),e);const n=Pn.r,r=Pn.g,i=Pn.b,o=Math.max(n,r,i),a=Math.min(n,r,i);let s,u;const l=(a+o)/2;if(a===o)s=0,u=0;else{const t=o-a;switch(u=l<=.5?t/(o+a):t/(2-o-a),o){case n:s=(r-i)/t+(r0&&(t.userData=this.userData),void 0!==this.parameters){const e=this.parameters;for(const n in e)void 0!==e[n]&&(t[n]=e[n]);return t}t.data={attributes:{}};const e=this.index;null!==e&&(t.data.index={type:e.array.constructor.name,array:Array.prototype.slice.call(e.array)});const n=this.attributes;for(const e in n){const r=n[e];t.data.attributes[e]=r.toJSON(t.data)}const r={};let i=!1;for(const e in this.morphAttributes){const n=this.morphAttributes[e],o=[];for(let e=0,r=n.length;e0&&(r[e]=o,i=!0)}i&&(t.data.morphAttributes=r,t.data.morphTargetsRelative=this.morphTargetsRelative);const o=this.groups;o.length>0&&(t.data.groups=JSON.parse(JSON.stringify(o)));const a=this.boundingSphere;return null!==a&&(t.data.boundingSphere={center:a.center.toArray(),radius:a.radius}),t}clone(){return(new this.constructor).copy(this)}copy(t){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const e={};this.name=t.name;const n=t.index;null!==n&&this.setIndex(n.clone(e));const r=t.attributes;for(const t in r){const n=r[t];this.setAttribute(t,n.clone(e))}const i=t.morphAttributes;for(const t in i){const n=[],r=i[t];for(let t=0,i=r.length;t0){const n=t[e[0]];if(void 0!==n){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let t=0,e=n.length;t(t.far-t.near)**2)return}if(qn.copy(i).invert(),$n.copy(t.ray).applyMatrix4(qn),null!==n.boundingBox&&!1===$n.intersectsBox(n.boundingBox))return;let o;const a=n.index,s=n.attributes.position,u=n.attributes.uv,l=n.attributes.uv2,c=n.attributes.normal,h=n.groups,d=n.drawRange;if(null!==a)if(Array.isArray(r))for(let n=0,i=h.length;nn.far?null:{distance:h,point:cr.clone(),object:t}}(t,e,n,r,Qn,Jn,tr,lr);if(d){i&&(rr.fromBufferAttribute(i,s),ir.fromBufferAttribute(i,u),or.fromBufferAttribute(i,h),d.uv=En.getInterpolation(lr,Qn,Jn,tr,rr,ir,or,new jt)),o&&(rr.fromBufferAttribute(o,s),ir.fromBufferAttribute(o,u),or.fromBufferAttribute(o,h),d.uv2=En.getInterpolation(lr,Qn,Jn,tr,rr,ir,or,new jt)),a&&(ar.fromBufferAttribute(a,s),sr.fromBufferAttribute(a,u),ur.fromBufferAttribute(a,h),d.normal=En.getInterpolation(lr,Qn,Jn,tr,ar,sr,ur,new ce),d.normal.dot(r.direction)>0&&d.normal.multiplyScalar(-1));const t={a:s,b:u,c:h,normal:new ce,materialIndex:0};En.getNormal(Qn,Jn,tr,t.normal),d.face=t}return d}class fr extends Yn{constructor(t=1,e=1,n=1,r=1,i=1,o=1){super(),this.type="BoxGeometry",this.parameters={width:t,height:e,depth:n,widthSegments:r,heightSegments:i,depthSegments:o};const a=this;r=Math.floor(r),i=Math.floor(i),o=Math.floor(o);const s=[],u=[],l=[],c=[];let h=0,d=0;function f(t,e,n,r,i,o,f,p,m,g,v){const y=o/m,b=f/g,x=o/2,w=f/2,_=p/2,S=m+1,E=g+1;let A=0,M=0;const C=new ce;for(let o=0;o0?1:-1,l.push(C.x,C.y,C.z),c.push(s/m),c.push(1-o/g),A+=1}}for(let t=0;t0&&(e.defines=this.defines),e.vertexShader=this.vertexShader,e.fragmentShader=this.fragmentShader;const n={};for(const t in this.extensions)!0===this.extensions[t]&&(n[t]=!0);return Object.keys(n).length>0&&(e.extensions=n),e}}class br extends dn{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new Ue,this.projectionMatrix=new Ue,this.projectionMatrixInverse=new Ue}copy(t,e){return super.copy(t,e),this.matrixWorldInverse.copy(t.matrixWorldInverse),this.projectionMatrix.copy(t.projectionMatrix),this.projectionMatrixInverse.copy(t.projectionMatrixInverse),this}getWorldDirection(t){this.updateWorldMatrix(!0,!1);const e=this.matrixWorld.elements;return t.set(-e[8],-e[9],-e[10]).normalize()}updateMatrixWorld(t){super.updateMatrixWorld(t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(t,e){super.updateWorldMatrix(t,e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return(new this.constructor).copy(this)}}class xr extends br{constructor(t=50,e=1,n=.1,r=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=t,this.zoom=1,this.near=n,this.far=r,this.focus=10,this.aspect=e,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(t,e){return super.copy(t,e),this.fov=t.fov,this.zoom=t.zoom,this.near=t.near,this.far=t.far,this.focus=t.focus,this.aspect=t.aspect,this.view=null===t.view?null:Object.assign({},t.view),this.filmGauge=t.filmGauge,this.filmOffset=t.filmOffset,this}setFocalLength(t){const e=.5*this.getFilmHeight()/t;this.fov=2*It*Math.atan(e),this.updateProjectionMatrix()}getFocalLength(){const t=Math.tan(.5*kt*this.fov);return.5*this.getFilmHeight()/t}getEffectiveFOV(){return 2*It*Math.atan(Math.tan(.5*kt*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}setViewOffset(t,e,n,r,i,o){this.aspect=t/e,null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const t=this.near;let e=t*Math.tan(.5*kt*this.fov)/this.zoom,n=2*e,r=this.aspect*n,i=-.5*r;const o=this.view;if(null!==this.view&&this.view.enabled){const t=o.fullWidth,a=o.fullHeight;i+=o.offsetX*r/t,e-=o.offsetY*n/a,r*=o.width/t,n*=o.height/a}const a=this.filmOffset;0!==a&&(i+=t*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(i,i+r,e,e-n,t,this.far),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(t){const e=super.toJSON(t);return e.object.fov=this.fov,e.object.zoom=this.zoom,e.object.near=this.near,e.object.far=this.far,e.object.focus=this.focus,e.object.aspect=this.aspect,null!==this.view&&(e.object.view=Object.assign({},this.view)),e.object.filmGauge=this.filmGauge,e.object.filmOffset=this.filmOffset,e}}const wr=-90;class _r extends dn{constructor(t,e,n){super(),this.type="CubeCamera",this.renderTarget=n;const r=new xr(wr,1,t,e);r.layers=this.layers,r.up.set(0,1,0),r.lookAt(1,0,0),this.add(r);const i=new xr(wr,1,t,e);i.layers=this.layers,i.up.set(0,1,0),i.lookAt(-1,0,0),this.add(i);const o=new xr(wr,1,t,e);o.layers=this.layers,o.up.set(0,0,-1),o.lookAt(0,1,0),this.add(o);const a=new xr(wr,1,t,e);a.layers=this.layers,a.up.set(0,0,1),a.lookAt(0,-1,0),this.add(a);const s=new xr(wr,1,t,e);s.layers=this.layers,s.up.set(0,1,0),s.lookAt(0,0,1),this.add(s);const u=new xr(wr,1,t,e);u.layers=this.layers,u.up.set(0,1,0),u.lookAt(0,0,-1),this.add(u)}update(t,e){null===this.parent&&this.updateMatrixWorld();const n=this.renderTarget,[r,i,o,a,s,u]=this.children,l=t.getRenderTarget(),c=t.toneMapping,h=t.xr.enabled;t.toneMapping=k,t.xr.enabled=!1;const d=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,t.setRenderTarget(n,0),t.render(e,r),t.setRenderTarget(n,1),t.render(e,i),t.setRenderTarget(n,2),t.render(e,o),t.setRenderTarget(n,3),t.render(e,a),t.setRenderTarget(n,4),t.render(e,s),n.texture.generateMipmaps=d,t.setRenderTarget(n,5),t.render(e,u),t.setRenderTarget(l),t.toneMapping=c,t.xr.enabled=h,n.texture.needsPMREMUpdate=!0}}class Sr extends ie{constructor(t,e,n,r,i,o,a,s,u,l){super(t=void 0!==t?t:[],e=void 0!==e?e:R,n,r,i,o,a,s,u,l),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(t){this.image=t}}class Er extends ae{constructor(t=1,e={}){super(t,t,e),this.isWebGLCubeRenderTarget=!0;const n={width:t,height:t,depth:1},r=[n,n,n,n,n,n];this.texture=new Sr(r,e.mapping,e.wrapS,e.wrapT,e.magFilter,e.minFilter,e.format,e.type,e.anisotropy,e.encoding),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=void 0!==e.generateMipmaps&&e.generateMipmaps,this.texture.minFilter=void 0!==e.minFilter?e.minFilter:X}fromEquirectangularTexture(t,e){this.texture.type=e.type,this.texture.encoding=e.encoding,this.texture.generateMipmaps=e.generateMipmaps,this.texture.minFilter=e.minFilter,this.texture.magFilter=e.magFilter;const n={uniforms:{tEquirect:{value:null}},vertexShader:"\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\tvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\n\t\t\t\t\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n\n\t\t\t\t}\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvWorldDirection = transformDirection( position, modelMatrix );\n\n\t\t\t\t\t#include \n\t\t\t\t\t#include \n\n\t\t\t\t}\n\t\t\t",fragmentShader:"\n\n\t\t\t\tuniform sampler2D tEquirect;\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\t#include \n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvec3 direction = normalize( vWorldDirection );\n\n\t\t\t\t\tvec2 sampleUV = equirectUv( direction );\n\n\t\t\t\t\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\n\t\t\t\t}\n\t\t\t"},r=new fr(5,5,5),i=new yr({name:"CubemapFromEquirect",uniforms:pr(n.uniforms),vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,side:c,blending:0});i.uniforms.tEquirect.value=e;const o=new hr(r,i),a=e.minFilter;e.minFilter===q&&(e.minFilter=X);return new _r(1,10,this).update(t,o),e.minFilter=a,o.geometry.dispose(),o.material.dispose(),this}clear(t,e,n,r){const i=t.getRenderTarget();for(let i=0;i<6;i++)t.setRenderTarget(this,i),t.clear(e,n,r);t.setRenderTarget(i)}}const Ar=new ce,Mr=new ce,Cr=new Vt;class Tr{constructor(t=new ce(1,0,0),e=0){this.isPlane=!0,this.normal=t,this.constant=e}set(t,e){return this.normal.copy(t),this.constant=e,this}setComponents(t,e,n,r){return this.normal.set(t,e,n),this.constant=r,this}setFromNormalAndCoplanarPoint(t,e){return this.normal.copy(t),this.constant=-e.dot(this.normal),this}setFromCoplanarPoints(t,e,n){const r=Ar.subVectors(n,e).cross(Mr.subVectors(t,e)).normalize();return this.setFromNormalAndCoplanarPoint(r,t),this}copy(t){return this.normal.copy(t.normal),this.constant=t.constant,this}normalize(){const t=1/this.normal.length();return this.normal.multiplyScalar(t),this.constant*=t,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(t){return this.normal.dot(t)+this.constant}distanceToSphere(t){return this.distanceToPoint(t.center)-t.radius}projectPoint(t,e){return e.copy(t).addScaledVector(this.normal,-this.distanceToPoint(t))}intersectLine(t,e){const n=t.delta(Ar),r=this.normal.dot(n);if(0===r)return 0===this.distanceToPoint(t.start)?e.copy(t.start):null;const i=-(t.start.dot(this.normal)+this.constant)/r;return i<0||i>1?null:e.copy(t.start).addScaledVector(n,i)}intersectsLine(t){const e=this.distanceToPoint(t.start),n=this.distanceToPoint(t.end);return e<0&&n>0||n<0&&e>0}intersectsBox(t){return t.intersectsPlane(this)}intersectsSphere(t){return t.intersectsPlane(this)}coplanarPoint(t){return t.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(t,e){const n=e||Cr.getNormalMatrix(t),r=this.coplanarPoint(Ar).applyMatrix4(t),i=this.normal.applyMatrix3(n).normalize();return this.constant=-r.dot(i),this}translate(t){return this.constant-=t.dot(this.normal),this}equals(t){return t.normal.equals(this.normal)&&t.constant===this.constant}clone(){return(new this.constructor).copy(this)}}const kr=new Ne,Ir=new ce;class Nr{constructor(t=new Tr,e=new Tr,n=new Tr,r=new Tr,i=new Tr,o=new Tr){this.planes=[t,e,n,r,i,o]}set(t,e,n,r,i,o){const a=this.planes;return a[0].copy(t),a[1].copy(e),a[2].copy(n),a[3].copy(r),a[4].copy(i),a[5].copy(o),this}copy(t){const e=this.planes;for(let n=0;n<6;n++)e[n].copy(t.planes[n]);return this}setFromProjectionMatrix(t){const e=this.planes,n=t.elements,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],u=n[5],l=n[6],c=n[7],h=n[8],d=n[9],f=n[10],p=n[11],m=n[12],g=n[13],v=n[14],y=n[15];return e[0].setComponents(a-r,c-s,p-h,y-m).normalize(),e[1].setComponents(a+r,c+s,p+h,y+m).normalize(),e[2].setComponents(a+i,c+u,p+d,y+g).normalize(),e[3].setComponents(a-i,c-u,p-d,y-g).normalize(),e[4].setComponents(a-o,c-l,p-f,y-v).normalize(),e[5].setComponents(a+o,c+l,p+f,y+v).normalize(),this}intersectsObject(t){if(void 0!==t.boundingSphere)null===t.boundingSphere&&t.computeBoundingSphere(),kr.copy(t.boundingSphere).applyMatrix4(t.matrixWorld);else{const e=t.geometry;null===e.boundingSphere&&e.computeBoundingSphere(),kr.copy(e.boundingSphere).applyMatrix4(t.matrixWorld)}return this.intersectsSphere(kr)}intersectsSprite(t){return kr.center.set(0,0,0),kr.radius=.7071067811865476,kr.applyMatrix4(t.matrixWorld),this.intersectsSphere(kr)}intersectsSphere(t){const e=this.planes,n=t.center,r=-t.radius;for(let t=0;t<6;t++){if(e[t].distanceToPoint(n)0?t.max.x:t.min.x,Ir.y=r.normal.y>0?t.max.y:t.min.y,Ir.z=r.normal.z>0?t.max.z:t.min.z,r.distanceToPoint(Ir)<0)return!1}return!0}containsPoint(t){const e=this.planes;for(let n=0;n<6;n++)if(e[n].distanceToPoint(t)<0)return!1;return!0}clone(){return(new this.constructor).copy(this)}}function Pr(){let t=null,e=!1,n=null,r=null;function i(e,o){n(e,o),r=t.requestAnimationFrame(i)}return{start:function(){!0!==e&&null!==n&&(r=t.requestAnimationFrame(i),e=!0)},stop:function(){t.cancelAnimationFrame(r),e=!1},setAnimationLoop:function(t){n=t},setContext:function(e){t=e}}}function Or(t,e){const n=e.isWebGL2,r=new WeakMap;return{get:function(t){return t.isInterleavedBufferAttribute&&(t=t.data),r.get(t)},remove:function(e){e.isInterleavedBufferAttribute&&(e=e.data);const n=r.get(e);n&&(t.deleteBuffer(n.buffer),r.delete(e))},update:function(e,i){if(e.isGLBufferAttribute){const t=r.get(e);return void((!t||t.version 0\n\tvec4 plane;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\tplane = clippingPlanes[ i ];\n\t\tif ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;\n\t}\n\t#pragma unroll_loop_end\n\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\tbool clipped = true;\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tclipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\tif ( clipped ) discard;\n\t#endif\n#endif",clipping_planes_pars_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif",clipping_planes_pars_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n#endif",clipping_planes_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvClipPosition = - mvPosition.xyz;\n#endif",color_fragment:"#if defined( USE_COLOR_ALPHA )\n\tdiffuseColor *= vColor;\n#elif defined( USE_COLOR )\n\tdiffuseColor.rgb *= vColor;\n#endif",color_pars_fragment:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR )\n\tvarying vec3 vColor;\n#endif",color_pars_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvarying vec3 vColor;\n#endif",color_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvColor = vec4( 1.0 );\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvColor = vec3( 1.0 );\n#endif\n#ifdef USE_COLOR\n\tvColor *= color;\n#endif\n#ifdef USE_INSTANCING_COLOR\n\tvColor.xyz *= instanceColor.xyz;\n#endif",common:"#define PI 3.141592653589793\n#define PI2 6.283185307179586\n#define PI_HALF 1.5707963267948966\n#define RECIPROCAL_PI 0.3183098861837907\n#define RECIPROCAL_PI2 0.15915494309189535\n#define EPSILON 1e-6\n#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\n#define whiteComplement( a ) ( 1.0 - saturate( a ) )\nfloat pow2( const in float x ) { return x*x; }\nvec3 pow2( const in vec3 x ) { return x*x; }\nfloat pow3( const in float x ) { return x*x*x; }\nfloat pow4( const in float x ) { float x2 = x*x; return x2*x2; }\nfloat max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); }\nfloat average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); }\nhighp float rand( const in vec2 uv ) {\n\tconst highp float a = 12.9898, b = 78.233, c = 43758.5453;\n\thighp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );\n\treturn fract( sin( sn ) * c );\n}\n#ifdef HIGH_PRECISION\n\tfloat precisionSafeLength( vec3 v ) { return length( v ); }\n#else\n\tfloat precisionSafeLength( vec3 v ) {\n\t\tfloat maxComponent = max3( abs( v ) );\n\t\treturn length( v / maxComponent ) * maxComponent;\n\t}\n#endif\nstruct IncidentLight {\n\tvec3 color;\n\tvec3 direction;\n\tbool visible;\n};\nstruct ReflectedLight {\n\tvec3 directDiffuse;\n\tvec3 directSpecular;\n\tvec3 indirectDiffuse;\n\tvec3 indirectSpecular;\n};\nstruct GeometricContext {\n\tvec3 position;\n\tvec3 normal;\n\tvec3 viewDir;\n#ifdef USE_CLEARCOAT\n\tvec3 clearcoatNormal;\n#endif\n};\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\n}\nmat3 transposeMat3( const in mat3 m ) {\n\tmat3 tmp;\n\ttmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );\n\ttmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );\n\ttmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );\n\treturn tmp;\n}\nfloat luminance( const in vec3 rgb ) {\n\tconst vec3 weights = vec3( 0.2126729, 0.7151522, 0.0721750 );\n\treturn dot( weights, rgb );\n}\nbool isPerspectiveMatrix( mat4 m ) {\n\treturn m[ 2 ][ 3 ] == - 1.0;\n}\nvec2 equirectUv( in vec3 dir ) {\n\tfloat u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;\n\tfloat v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\treturn vec2( u, v );\n}\nvec3 BRDF_Lambert( const in vec3 diffuseColor ) {\n\treturn RECIPROCAL_PI * diffuseColor;\n}\nvec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n}\nfloat F_Schlick( const in float f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n} // validated",cube_uv_reflection_fragment:"#ifdef ENVMAP_TYPE_CUBE_UV\n\t#define cubeUV_minMipLevel 4.0\n\t#define cubeUV_minTileSize 16.0\n\tfloat getFace( vec3 direction ) {\n\t\tvec3 absDirection = abs( direction );\n\t\tfloat face = - 1.0;\n\t\tif ( absDirection.x > absDirection.z ) {\n\t\t\tif ( absDirection.x > absDirection.y )\n\t\t\t\tface = direction.x > 0.0 ? 0.0 : 3.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t} else {\n\t\t\tif ( absDirection.z > absDirection.y )\n\t\t\t\tface = direction.z > 0.0 ? 2.0 : 5.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t}\n\t\treturn face;\n\t}\n\tvec2 getUV( vec3 direction, float face ) {\n\t\tvec2 uv;\n\t\tif ( face == 0.0 ) {\n\t\t\tuv = vec2( direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 1.0 ) {\n\t\t\tuv = vec2( - direction.x, - direction.z ) / abs( direction.y );\n\t\t} else if ( face == 2.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.y ) / abs( direction.z );\n\t\t} else if ( face == 3.0 ) {\n\t\t\tuv = vec2( - direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 4.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.z ) / abs( direction.y );\n\t\t} else {\n\t\t\tuv = vec2( direction.x, direction.y ) / abs( direction.z );\n\t\t}\n\t\treturn 0.5 * ( uv + 1.0 );\n\t}\n\tvec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {\n\t\tfloat face = getFace( direction );\n\t\tfloat filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );\n\t\tmipInt = max( mipInt, cubeUV_minMipLevel );\n\t\tfloat faceSize = exp2( mipInt );\n\t\thighp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0;\n\t\tif ( face > 2.0 ) {\n\t\t\tuv.y += faceSize;\n\t\t\tface -= 3.0;\n\t\t}\n\t\tuv.x += face * faceSize;\n\t\tuv.x += filterInt * 3.0 * cubeUV_minTileSize;\n\t\tuv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize );\n\t\tuv.x *= CUBEUV_TEXEL_WIDTH;\n\t\tuv.y *= CUBEUV_TEXEL_HEIGHT;\n\t\t#ifdef texture2DGradEXT\n\t\t\treturn texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb;\n\t\t#else\n\t\t\treturn texture2D( envMap, uv ).rgb;\n\t\t#endif\n\t}\n\t#define cubeUV_r0 1.0\n\t#define cubeUV_v0 0.339\n\t#define cubeUV_m0 - 2.0\n\t#define cubeUV_r1 0.8\n\t#define cubeUV_v1 0.276\n\t#define cubeUV_m1 - 1.0\n\t#define cubeUV_r4 0.4\n\t#define cubeUV_v4 0.046\n\t#define cubeUV_m4 2.0\n\t#define cubeUV_r5 0.305\n\t#define cubeUV_v5 0.016\n\t#define cubeUV_m5 3.0\n\t#define cubeUV_r6 0.21\n\t#define cubeUV_v6 0.0038\n\t#define cubeUV_m6 4.0\n\tfloat roughnessToMip( float roughness ) {\n\t\tfloat mip = 0.0;\n\t\tif ( roughness >= cubeUV_r1 ) {\n\t\t\tmip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0;\n\t\t} else if ( roughness >= cubeUV_r4 ) {\n\t\t\tmip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1;\n\t\t} else if ( roughness >= cubeUV_r5 ) {\n\t\t\tmip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4;\n\t\t} else if ( roughness >= cubeUV_r6 ) {\n\t\t\tmip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5;\n\t\t} else {\n\t\t\tmip = - 2.0 * log2( 1.16 * roughness );\t\t}\n\t\treturn mip;\n\t}\n\tvec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {\n\t\tfloat mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP );\n\t\tfloat mipF = fract( mip );\n\t\tfloat mipInt = floor( mip );\n\t\tvec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );\n\t\tif ( mipF == 0.0 ) {\n\t\t\treturn vec4( color0, 1.0 );\n\t\t} else {\n\t\t\tvec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );\n\t\t\treturn vec4( mix( color0, color1, mipF ), 1.0 );\n\t\t}\n\t}\n#endif",defaultnormal_vertex:"vec3 transformedNormal = objectNormal;\n#ifdef USE_INSTANCING\n\tmat3 m = mat3( instanceMatrix );\n\ttransformedNormal /= vec3( dot( m[ 0 ], m[ 0 ] ), dot( m[ 1 ], m[ 1 ] ), dot( m[ 2 ], m[ 2 ] ) );\n\ttransformedNormal = m * transformedNormal;\n#endif\ntransformedNormal = normalMatrix * transformedNormal;\n#ifdef FLIP_SIDED\n\ttransformedNormal = - transformedNormal;\n#endif\n#ifdef USE_TANGENT\n\tvec3 transformedTangent = ( modelViewMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#ifdef FLIP_SIDED\n\t\ttransformedTangent = - transformedTangent;\n\t#endif\n#endif",displacementmap_pars_vertex:"#ifdef USE_DISPLACEMENTMAP\n\tuniform sampler2D displacementMap;\n\tuniform float displacementScale;\n\tuniform float displacementBias;\n#endif",displacementmap_vertex:"#ifdef USE_DISPLACEMENTMAP\n\ttransformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias );\n#endif",emissivemap_fragment:"#ifdef USE_EMISSIVEMAP\n\tvec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv );\n\ttotalEmissiveRadiance *= emissiveColor.rgb;\n#endif",emissivemap_pars_fragment:"#ifdef USE_EMISSIVEMAP\n\tuniform sampler2D emissiveMap;\n#endif",encodings_fragment:"gl_FragColor = linearToOutputTexel( gl_FragColor );",encodings_pars_fragment:"vec4 LinearToLinear( in vec4 value ) {\n\treturn value;\n}\nvec4 LinearTosRGB( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );\n}",envmap_fragment:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvec3 cameraToFrag;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToFrag = normalize( vWorldPosition - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( cameraToFrag, worldNormal );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );\n\t\t#endif\n\t#else\n\t\tvec3 reflectVec = vReflect;\n\t#endif\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 envColor = textureCube( envMap, vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n\t#else\n\t\tvec4 envColor = vec4( 0.0 );\n\t#endif\n\t#ifdef ENVMAP_BLENDING_MULTIPLY\n\t\toutgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_MIX )\n\t\toutgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_ADD )\n\t\toutgoingLight += envColor.xyz * specularStrength * reflectivity;\n\t#endif\n#endif",envmap_common_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float envMapIntensity;\n\tuniform float flipEnvMap;\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tuniform samplerCube envMap;\n\t#else\n\t\tuniform sampler2D envMap;\n\t#endif\n\t\n#endif",envmap_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float reflectivity;\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\tvarying vec3 vWorldPosition;\n\t\tuniform float refractionRatio;\n\t#else\n\t\tvarying vec3 vReflect;\n\t#endif\n#endif",envmap_pars_vertex:"#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\t\n\t\tvarying vec3 vWorldPosition;\n\t#else\n\t\tvarying vec3 vReflect;\n\t\tuniform float refractionRatio;\n\t#endif\n#endif",envmap_physical_pars_fragment:"#if defined( USE_ENVMAP )\n\tvec3 getIBLIrradiance( const in vec3 normal ) {\n\t\t#if defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, worldNormal, 1.0 );\n\t\t\treturn PI * envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\tvec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {\n\t\t#if defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec3 reflectVec = reflect( - viewDir, normal );\n\t\t\treflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );\n\t\t\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, reflectVec, roughness );\n\t\t\treturn envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n#endif",envmap_vertex:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvWorldPosition = worldPosition.xyz;\n\t#else\n\t\tvec3 cameraToVertex;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToVertex = normalize( worldPosition.xyz - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvReflect = reflect( cameraToVertex, worldNormal );\n\t\t#else\n\t\t\tvReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n\t\t#endif\n\t#endif\n#endif",fog_vertex:"#ifdef USE_FOG\n\tvFogDepth = - mvPosition.z;\n#endif",fog_pars_vertex:"#ifdef USE_FOG\n\tvarying float vFogDepth;\n#endif",fog_fragment:"#ifdef USE_FOG\n\t#ifdef FOG_EXP2\n\t\tfloat fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );\n\t#else\n\t\tfloat fogFactor = smoothstep( fogNear, fogFar, vFogDepth );\n\t#endif\n\tgl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif",fog_pars_fragment:"#ifdef USE_FOG\n\tuniform vec3 fogColor;\n\tvarying float vFogDepth;\n\t#ifdef FOG_EXP2\n\t\tuniform float fogDensity;\n\t#else\n\t\tuniform float fogNear;\n\t\tuniform float fogFar;\n\t#endif\n#endif",gradientmap_pars_fragment:"#ifdef USE_GRADIENTMAP\n\tuniform sampler2D gradientMap;\n#endif\nvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n\tfloat dotNL = dot( normal, lightDirection );\n\tvec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n\t#ifdef USE_GRADIENTMAP\n\t\treturn vec3( texture2D( gradientMap, coord ).r );\n\t#else\n\t\tvec2 fw = fwidth( coord ) * 0.5;\n\t\treturn mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) );\n\t#endif\n}",lightmap_fragment:"#ifdef USE_LIGHTMAP\n\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\treflectedLight.indirectDiffuse += lightMapIrradiance;\n#endif",lightmap_pars_fragment:"#ifdef USE_LIGHTMAP\n\tuniform sampler2D lightMap;\n\tuniform float lightMapIntensity;\n#endif",lights_lambert_fragment:"LambertMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularStrength = specularStrength;",lights_lambert_pars_fragment:"varying vec3 vViewPosition;\nstruct LambertMaterial {\n\tvec3 diffuseColor;\n\tfloat specularStrength;\n};\nvoid RE_Direct_Lambert( const in IncidentLight directLight, const in GeometricContext geometry, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in GeometricContext geometry, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Lambert\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Lambert",lights_pars_begin:"uniform bool receiveShadow;\nuniform vec3 ambientLightColor;\nuniform vec3 lightProbe[ 9 ];\nvec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {\n\tfloat x = normal.x, y = normal.y, z = normal.z;\n\tvec3 result = shCoefficients[ 0 ] * 0.886227;\n\tresult += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;\n\tresult += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;\n\tresult += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;\n\tresult += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;\n\tresult += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;\n\tresult += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );\n\tresult += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;\n\tresult += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );\n\treturn result;\n}\nvec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) {\n\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\tvec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );\n\treturn irradiance;\n}\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n\tvec3 irradiance = ambientLightColor;\n\treturn irradiance;\n}\nfloat getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n\t#if defined ( LEGACY_LIGHTS )\n\t\tif ( cutoffDistance > 0.0 && decayExponent > 0.0 ) {\n\t\t\treturn pow( saturate( - lightDistance / cutoffDistance + 1.0 ), decayExponent );\n\t\t}\n\t\treturn 1.0;\n\t#else\n\t\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\t\tif ( cutoffDistance > 0.0 ) {\n\t\t\tdistanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t\t}\n\t\treturn distanceFalloff;\n\t#endif\n}\nfloat getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) {\n\treturn smoothstep( coneCosine, penumbraCosine, angleCosine );\n}\n#if NUM_DIR_LIGHTS > 0\n\tstruct DirectionalLight {\n\t\tvec3 direction;\n\t\tvec3 color;\n\t};\n\tuniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\n\tvoid getDirectionalLightInfo( const in DirectionalLight directionalLight, const in GeometricContext geometry, out IncidentLight light ) {\n\t\tlight.color = directionalLight.color;\n\t\tlight.direction = directionalLight.direction;\n\t\tlight.visible = true;\n\t}\n#endif\n#if NUM_POINT_LIGHTS > 0\n\tstruct PointLight {\n\t\tvec3 position;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t};\n\tuniform PointLight pointLights[ NUM_POINT_LIGHTS ];\n\tvoid getPointLightInfo( const in PointLight pointLight, const in GeometricContext geometry, out IncidentLight light ) {\n\t\tvec3 lVector = pointLight.position - geometry.position;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tlight.color = pointLight.color;\n\t\tlight.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay );\n\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t}\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\tstruct SpotLight {\n\t\tvec3 position;\n\t\tvec3 direction;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t\tfloat coneCos;\n\t\tfloat penumbraCos;\n\t};\n\tuniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\n\tvoid getSpotLightInfo( const in SpotLight spotLight, const in GeometricContext geometry, out IncidentLight light ) {\n\t\tvec3 lVector = spotLight.position - geometry.position;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat angleCos = dot( light.direction, spotLight.direction );\n\t\tfloat spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n\t\tif ( spotAttenuation > 0.0 ) {\n\t\t\tfloat lightDistance = length( lVector );\n\t\t\tlight.color = spotLight.color * spotAttenuation;\n\t\t\tlight.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay );\n\t\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t\t} else {\n\t\t\tlight.color = vec3( 0.0 );\n\t\t\tlight.visible = false;\n\t\t}\n\t}\n#endif\n#if NUM_RECT_AREA_LIGHTS > 0\n\tstruct RectAreaLight {\n\t\tvec3 color;\n\t\tvec3 position;\n\t\tvec3 halfWidth;\n\t\tvec3 halfHeight;\n\t};\n\tuniform sampler2D ltc_1;\tuniform sampler2D ltc_2;\n\tuniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\tstruct HemisphereLight {\n\t\tvec3 direction;\n\t\tvec3 skyColor;\n\t\tvec3 groundColor;\n\t};\n\tuniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];\n\tvec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) {\n\t\tfloat dotNL = dot( normal, hemiLight.direction );\n\t\tfloat hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n\t\tvec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n\t\treturn irradiance;\n\t}\n#endif",lights_toon_fragment:"ToonMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;",lights_toon_pars_fragment:"varying vec3 vViewPosition;\nstruct ToonMaterial {\n\tvec3 diffuseColor;\n};\nvoid RE_Direct_Toon( const in IncidentLight directLight, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\tvec3 irradiance = getGradientIrradiance( geometry.normal, directLight.direction ) * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Toon\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Toon",lights_phong_fragment:"BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;",lights_phong_pars_fragment:"varying vec3 vViewPosition;\nstruct BlinnPhongMaterial {\n\tvec3 diffuseColor;\n\tvec3 specularColor;\n\tfloat specularShininess;\n\tfloat specularStrength;\n};\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n\treflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometry.viewDir, geometry.normal, material.specularColor, material.specularShininess ) * material.specularStrength;\n}\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_BlinnPhong\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_BlinnPhong",lights_physical_fragment:"PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nvec3 dxy = max( abs( dFdx( geometryNormal ) ), abs( dFdy( geometryNormal ) ) );\nfloat geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );\nmaterial.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness;\nmaterial.roughness = min( material.roughness, 1.0 );\n#ifdef IOR\n\tmaterial.ior = ior;\n\t#ifdef USE_SPECULAR\n\t\tfloat specularIntensityFactor = specularIntensity;\n\t\tvec3 specularColorFactor = specularColor;\n\t\t#ifdef USE_SPECULAR_COLORMAP\n\t\t\tspecularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb;\n\t\t#endif\n\t\t#ifdef USE_SPECULAR_INTENSITYMAP\n\t\t\tspecularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a;\n\t\t#endif\n\t\tmaterial.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor );\n\t#else\n\t\tfloat specularIntensityFactor = 1.0;\n\t\tvec3 specularColorFactor = vec3( 1.0 );\n\t\tmaterial.specularF90 = 1.0;\n\t#endif\n\tmaterial.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor );\n#else\n\tmaterial.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor );\n\tmaterial.specularF90 = 1.0;\n#endif\n#ifdef USE_CLEARCOAT\n\tmaterial.clearcoat = clearcoat;\n\tmaterial.clearcoatRoughness = clearcoatRoughness;\n\tmaterial.clearcoatF0 = vec3( 0.04 );\n\tmaterial.clearcoatF90 = 1.0;\n\t#ifdef USE_CLEARCOATMAP\n\t\tmaterial.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x;\n\t#endif\n\t#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\t\tmaterial.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y;\n\t#endif\n\tmaterial.clearcoat = saturate( material.clearcoat );\tmaterial.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );\n\tmaterial.clearcoatRoughness += geometryRoughness;\n\tmaterial.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );\n#endif\n#ifdef USE_IRIDESCENCE\n\tmaterial.iridescence = iridescence;\n\tmaterial.iridescenceIOR = iridescenceIOR;\n\t#ifdef USE_IRIDESCENCEMAP\n\t\tmaterial.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r;\n\t#endif\n\t#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\t\tmaterial.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum;\n\t#else\n\t\tmaterial.iridescenceThickness = iridescenceThicknessMaximum;\n\t#endif\n#endif\n#ifdef USE_SHEEN\n\tmaterial.sheenColor = sheenColor;\n\t#ifdef USE_SHEEN_COLORMAP\n\t\tmaterial.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb;\n\t#endif\n\tmaterial.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 );\n\t#ifdef USE_SHEEN_ROUGHNESSMAP\n\t\tmaterial.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a;\n\t#endif\n#endif",lights_physical_pars_fragment:"struct PhysicalMaterial {\n\tvec3 diffuseColor;\n\tfloat roughness;\n\tvec3 specularColor;\n\tfloat specularF90;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat clearcoat;\n\t\tfloat clearcoatRoughness;\n\t\tvec3 clearcoatF0;\n\t\tfloat clearcoatF90;\n\t#endif\n\t#ifdef USE_IRIDESCENCE\n\t\tfloat iridescence;\n\t\tfloat iridescenceIOR;\n\t\tfloat iridescenceThickness;\n\t\tvec3 iridescenceFresnel;\n\t\tvec3 iridescenceF0;\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tvec3 sheenColor;\n\t\tfloat sheenRoughness;\n\t#endif\n\t#ifdef IOR\n\t\tfloat ior;\n\t#endif\n\t#ifdef USE_TRANSMISSION\n\t\tfloat transmission;\n\t\tfloat transmissionAlpha;\n\t\tfloat thickness;\n\t\tfloat attenuationDistance;\n\t\tvec3 attenuationColor;\n\t#endif\n};\nvec3 clearcoatSpecular = vec3( 0.0 );\nvec3 sheenSpecular = vec3( 0.0 );\nvec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) {\n float x = clamp( 1.0 - dotVH, 0.0, 1.0 );\n float x2 = x * x;\n float x5 = clamp( x * x2 * x2, 0.0, 0.9999 );\n return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 );\n}\nfloat V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\tfloat gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\treturn 0.5 / max( gv + gl, EPSILON );\n}\nfloat D_GGX( const in float alpha, const in float dotNH ) {\n\tfloat a2 = pow2( alpha );\n\tfloat denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;\n\treturn RECIPROCAL_PI * a2 / pow2( denom );\n}\n#ifdef USE_CLEARCOAT\n\tvec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) {\n\t\tvec3 f0 = material.clearcoatF0;\n\t\tfloat f90 = material.clearcoatF90;\n\t\tfloat roughness = material.clearcoatRoughness;\n\t\tfloat alpha = pow2( roughness );\n\t\tvec3 halfDir = normalize( lightDir + viewDir );\n\t\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\t\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\t\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\t\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\t\tvec3 F = F_Schlick( f0, f90, dotVH );\n\t\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\t\tfloat D = D_GGX( alpha, dotNH );\n\t\treturn F * ( V * D );\n\t}\n#endif\nvec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) {\n\tvec3 f0 = material.specularColor;\n\tfloat f90 = material.specularF90;\n\tfloat roughness = material.roughness;\n\tfloat alpha = pow2( roughness );\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\tvec3 F = F_Schlick( f0, f90, dotVH );\n\t#ifdef USE_IRIDESCENCE\n\t\tF = mix( F, material.iridescenceFresnel, material.iridescence );\n\t#endif\n\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\tfloat D = D_GGX( alpha, dotNH );\n\treturn F * ( V * D );\n}\nvec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {\n\tconst float LUT_SIZE = 64.0;\n\tconst float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;\n\tconst float LUT_BIAS = 0.5 / LUT_SIZE;\n\tfloat dotNV = saturate( dot( N, V ) );\n\tvec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );\n\tuv = uv * LUT_SCALE + LUT_BIAS;\n\treturn uv;\n}\nfloat LTC_ClippedSphereFormFactor( const in vec3 f ) {\n\tfloat l = length( f );\n\treturn max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );\n}\nvec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {\n\tfloat x = dot( v1, v2 );\n\tfloat y = abs( x );\n\tfloat a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;\n\tfloat b = 3.4175940 + ( 4.1616724 + y ) * y;\n\tfloat v = a / b;\n\tfloat theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;\n\treturn cross( v1, v2 ) * theta_sintheta;\n}\nvec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {\n\tvec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];\n\tvec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];\n\tvec3 lightNormal = cross( v1, v2 );\n\tif( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );\n\tvec3 T1, T2;\n\tT1 = normalize( V - N * dot( V, N ) );\n\tT2 = - cross( N, T1 );\n\tmat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );\n\tvec3 coords[ 4 ];\n\tcoords[ 0 ] = mat * ( rectCoords[ 0 ] - P );\n\tcoords[ 1 ] = mat * ( rectCoords[ 1 ] - P );\n\tcoords[ 2 ] = mat * ( rectCoords[ 2 ] - P );\n\tcoords[ 3 ] = mat * ( rectCoords[ 3 ] - P );\n\tcoords[ 0 ] = normalize( coords[ 0 ] );\n\tcoords[ 1 ] = normalize( coords[ 1 ] );\n\tcoords[ 2 ] = normalize( coords[ 2 ] );\n\tcoords[ 3 ] = normalize( coords[ 3 ] );\n\tvec3 vectorFormFactor = vec3( 0.0 );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );\n\tfloat result = LTC_ClippedSphereFormFactor( vectorFormFactor );\n\treturn vec3( result );\n}\n#if defined( USE_SHEEN )\nfloat D_Charlie( float roughness, float dotNH ) {\n\tfloat alpha = pow2( roughness );\n\tfloat invAlpha = 1.0 / alpha;\n\tfloat cos2h = dotNH * dotNH;\n\tfloat sin2h = max( 1.0 - cos2h, 0.0078125 );\n\treturn ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI );\n}\nfloat V_Neubelt( float dotNV, float dotNL ) {\n\treturn saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) );\n}\nvec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) {\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat D = D_Charlie( sheenRoughness, dotNH );\n\tfloat V = V_Neubelt( dotNV, dotNL );\n\treturn sheenColor * ( D * V );\n}\n#endif\nfloat IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat r2 = roughness * roughness;\n\tfloat a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95;\n\tfloat b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72;\n\tfloat DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) );\n\treturn saturate( DG * RECIPROCAL_PI );\n}\nvec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tconst vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n\tconst vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n\tvec4 r = roughness * c0 + c1;\n\tfloat a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n\tvec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw;\n\treturn fab;\n}\nvec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) {\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\treturn specularColor * fab.x + specularF90 * fab.y;\n}\n#ifdef USE_IRIDESCENCE\nvoid computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#else\nvoid computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#endif\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\t#ifdef USE_IRIDESCENCE\n\t\tvec3 Fr = mix( specularColor, iridescenceF0, iridescence );\n\t#else\n\t\tvec3 Fr = specularColor;\n\t#endif\n\tvec3 FssEss = Fr * fab.x + specularF90 * fab.y;\n\tfloat Ess = fab.x + fab.y;\n\tfloat Ems = 1.0 - Ess;\n\tvec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619;\tvec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n\tsingleScatter += FssEss;\n\tmultiScatter += Fms * Ems;\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n\tvoid RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\t\tvec3 normal = geometry.normal;\n\t\tvec3 viewDir = geometry.viewDir;\n\t\tvec3 position = geometry.position;\n\t\tvec3 lightPos = rectAreaLight.position;\n\t\tvec3 halfWidth = rectAreaLight.halfWidth;\n\t\tvec3 halfHeight = rectAreaLight.halfHeight;\n\t\tvec3 lightColor = rectAreaLight.color;\n\t\tfloat roughness = material.roughness;\n\t\tvec3 rectCoords[ 4 ];\n\t\trectCoords[ 0 ] = lightPos + halfWidth - halfHeight;\t\trectCoords[ 1 ] = lightPos - halfWidth - halfHeight;\n\t\trectCoords[ 2 ] = lightPos - halfWidth + halfHeight;\n\t\trectCoords[ 3 ] = lightPos + halfWidth + halfHeight;\n\t\tvec2 uv = LTC_Uv( normal, viewDir, roughness );\n\t\tvec4 t1 = texture2D( ltc_1, uv );\n\t\tvec4 t2 = texture2D( ltc_2, uv );\n\t\tmat3 mInv = mat3(\n\t\t\tvec3( t1.x, 0, t1.y ),\n\t\t\tvec3( 0, 1, 0 ),\n\t\t\tvec3( t1.z, 0, t1.w )\n\t\t);\n\t\tvec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\n\t\treflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n\t\treflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );\n\t}\n#endif\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNLcc = saturate( dot( geometry.clearcoatNormal, directLight.direction ) );\n\t\tvec3 ccIrradiance = dotNLcc * directLight.color;\n\t\tclearcoatSpecular += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometry.viewDir, geometry.clearcoatNormal, material );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecular += irradiance * BRDF_Sheen( directLight.direction, geometry.viewDir, geometry.normal, material.sheenColor, material.sheenRoughness );\n\t#endif\n\treflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometry.viewDir, geometry.normal, material );\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatSpecular += clearcoatRadiance * EnvironmentBRDF( geometry.clearcoatNormal, geometry.viewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecular += irradiance * material.sheenColor * IBLSheenBRDF( geometry.normal, geometry.viewDir, material.sheenRoughness );\n\t#endif\n\tvec3 singleScattering = vec3( 0.0 );\n\tvec3 multiScattering = vec3( 0.0 );\n\tvec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;\n\t#ifdef USE_IRIDESCENCE\n\t\tcomputeMultiscatteringIridescence( geometry.normal, geometry.viewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering );\n\t#else\n\t\tcomputeMultiscattering( geometry.normal, geometry.viewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering );\n\t#endif\n\tvec3 totalScattering = singleScattering + multiScattering;\n\tvec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) );\n\treflectedLight.indirectSpecular += radiance * singleScattering;\n\treflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;\n\treflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;\n}\n#define RE_Direct\t\t\t\tRE_Direct_Physical\n#define RE_Direct_RectArea\t\tRE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular\t\tRE_IndirectSpecular_Physical\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n\treturn saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\n}",lights_fragment_begin:"\nGeometricContext geometry;\ngeometry.position = - vViewPosition;\ngeometry.normal = normal;\ngeometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );\n#ifdef USE_CLEARCOAT\n\tgeometry.clearcoatNormal = clearcoatNormal;\n#endif\n#ifdef USE_IRIDESCENCE\n\tfloat dotNVi = saturate( dot( normal, geometry.viewDir ) );\n\tif ( material.iridescenceThickness == 0.0 ) {\n\t\tmaterial.iridescence = 0.0;\n\t} else {\n\t\tmaterial.iridescence = saturate( material.iridescence );\n\t}\n\tif ( material.iridescence > 0.0 ) {\n\t\tmaterial.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor );\n\t\tmaterial.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi );\n\t}\n#endif\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n\tPointLight pointLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tpointLight = pointLights[ i ];\n\t\tgetPointLightInfo( pointLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )\n\t\tpointLightShadow = pointLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n\tSpotLight spotLight;\n\tvec4 spotColor;\n\tvec3 spotLightCoord;\n\tbool inSpotLightMap;\n\t#if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tspotLight = spotLights[ i ];\n\t\tgetSpotLightInfo( spotLight, geometry, directLight );\n\t\t#if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX\n\t\t#elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t#define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS\n\t\t#else\n\t\t#define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#endif\n\t\t#if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS )\n\t\t\tspotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w;\n\t\t\tinSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) );\n\t\t\tspotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy );\n\t\t\tdirectLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color;\n\t\t#endif\n\t\t#undef SPOT_LIGHT_MAP_INDEX\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\tspotLightShadow = spotLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n\tDirectionalLight directionalLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tdirectionalLight = directionalLights[ i ];\n\t\tgetDirectionalLightInfo( directionalLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )\n\t\tdirectionalLightShadow = directionalLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\n\tRectAreaLight rectAreaLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\n\t\trectAreaLight = rectAreaLights[ i ];\n\t\tRE_Direct_RectArea( rectAreaLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if defined( RE_IndirectDiffuse )\n\tvec3 iblIrradiance = vec3( 0.0 );\n\tvec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n\tirradiance += getLightProbeIrradiance( lightProbe, geometry.normal );\n\t#if ( NUM_HEMI_LIGHTS > 0 )\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\t\tirradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry.normal );\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if defined( RE_IndirectSpecular )\n\tvec3 radiance = vec3( 0.0 );\n\tvec3 clearcoatRadiance = vec3( 0.0 );\n#endif",lights_fragment_maps:"#if defined( RE_IndirectDiffuse )\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\t\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\t\tirradiance += lightMapIrradiance;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )\n\t\tiblIrradiance += getIBLIrradiance( geometry.normal );\n\t#endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\tradiance += getIBLRadiance( geometry.viewDir, geometry.normal, material.roughness );\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatRadiance += getIBLRadiance( geometry.viewDir, geometry.clearcoatNormal, material.clearcoatRoughness );\n\t#endif\n#endif",lights_fragment_end:"#if defined( RE_IndirectDiffuse )\n\tRE_IndirectDiffuse( irradiance, geometry, material, reflectedLight );\n#endif\n#if defined( RE_IndirectSpecular )\n\tRE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometry, material, reflectedLight );\n#endif",logdepthbuf_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tgl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif",logdepthbuf_pars_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tuniform float logDepthBufFC;\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif",logdepthbuf_pars_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvarying float vFragDepth;\n\t\tvarying float vIsPerspective;\n\t#else\n\t\tuniform float logDepthBufFC;\n\t#endif\n#endif",logdepthbuf_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvFragDepth = 1.0 + gl_Position.w;\n\t\tvIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );\n\t#else\n\t\tif ( isPerspectiveMatrix( projectionMatrix ) ) {\n\t\t\tgl_Position.z = log2( max( EPSILON, gl_Position.w + 1.0 ) ) * logDepthBufFC - 1.0;\n\t\t\tgl_Position.z *= gl_Position.w;\n\t\t}\n\t#endif\n#endif",map_fragment:"#ifdef USE_MAP\n\tvec4 sampledDiffuseColor = texture2D( map, vMapUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\tsampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w );\n\t#endif\n\tdiffuseColor *= sampledDiffuseColor;\n#endif",map_pars_fragment:"#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif",map_particle_fragment:"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\t#if defined( USE_POINTS_UV )\n\t\tvec2 uv = vUv;\n\t#else\n\t\tvec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\n\t#endif\n#endif\n#ifdef USE_MAP\n\tdiffuseColor *= texture2D( map, uv );\n#endif\n#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, uv ).g;\n#endif",map_particle_pars_fragment:"#if defined( USE_POINTS_UV )\n\tvarying vec2 vUv;\n#else\n\t#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\t\tuniform mat3 uvTransform;\n\t#endif\n#endif\n#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",metalnessmap_fragment:"float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n\tvec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv );\n\tmetalnessFactor *= texelMetalness.b;\n#endif",metalnessmap_pars_fragment:"#ifdef USE_METALNESSMAP\n\tuniform sampler2D metalnessMap;\n#endif",morphcolor_vertex:"#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE )\n\tvColor *= morphTargetBaseInfluence;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t#if defined( USE_COLOR_ALPHA )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ];\n\t\t#elif defined( USE_COLOR )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ];\n\t\t#endif\n\t}\n#endif",morphnormal_vertex:"#ifdef USE_MORPHNORMALS\n\tobjectNormal *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ];\n\t\t}\n\t#else\n\t\tobjectNormal += morphNormal0 * morphTargetInfluences[ 0 ];\n\t\tobjectNormal += morphNormal1 * morphTargetInfluences[ 1 ];\n\t\tobjectNormal += morphNormal2 * morphTargetInfluences[ 2 ];\n\t\tobjectNormal += morphNormal3 * morphTargetInfluences[ 3 ];\n\t#endif\n#endif",morphtarget_pars_vertex:"#ifdef USE_MORPHTARGETS\n\tuniform float morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tuniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];\n\t\tuniform sampler2DArray morphTargetsTexture;\n\t\tuniform ivec2 morphTargetsTextureSize;\n\t\tvec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) {\n\t\t\tint texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset;\n\t\t\tint y = texelIndex / morphTargetsTextureSize.x;\n\t\t\tint x = texelIndex - y * morphTargetsTextureSize.x;\n\t\t\tivec3 morphUV = ivec3( x, y, morphTargetIndex );\n\t\t\treturn texelFetch( morphTargetsTexture, morphUV, 0 );\n\t\t}\n\t#else\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\tuniform float morphTargetInfluences[ 8 ];\n\t\t#else\n\t\t\tuniform float morphTargetInfluences[ 4 ];\n\t\t#endif\n\t#endif\n#endif",morphtarget_vertex:"#ifdef USE_MORPHTARGETS\n\ttransformed *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ];\n\t\t}\n\t#else\n\t\ttransformed += morphTarget0 * morphTargetInfluences[ 0 ];\n\t\ttransformed += morphTarget1 * morphTargetInfluences[ 1 ];\n\t\ttransformed += morphTarget2 * morphTargetInfluences[ 2 ];\n\t\ttransformed += morphTarget3 * morphTargetInfluences[ 3 ];\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\ttransformed += morphTarget4 * morphTargetInfluences[ 4 ];\n\t\t\ttransformed += morphTarget5 * morphTargetInfluences[ 5 ];\n\t\t\ttransformed += morphTarget6 * morphTargetInfluences[ 6 ];\n\t\t\ttransformed += morphTarget7 * morphTargetInfluences[ 7 ];\n\t\t#endif\n\t#endif\n#endif",normal_fragment_begin:"float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;\n#ifdef FLAT_SHADED\n\tvec3 fdx = dFdx( vViewPosition );\n\tvec3 fdy = dFdy( vViewPosition );\n\tvec3 normal = normalize( cross( fdx, fdy ) );\n#else\n\tvec3 normal = normalize( vNormal );\n\t#ifdef DOUBLE_SIDED\n\t\tnormal *= faceDirection;\n\t#endif\n#endif\n#ifdef USE_NORMALMAP_TANGENTSPACE\n\t#ifdef USE_TANGENT\n\t\tmat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n\t#else\n\t\tmat3 tbn = getTangentFrame( - vViewPosition, normal, vNormalMapUv );\n\t#endif\n\t#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n\t\ttbn[0] *= faceDirection;\n\t\ttbn[1] *= faceDirection;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\t#ifdef USE_TANGENT\n\t\tmat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n\t#else\n\t\tmat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv );\n\t#endif\n\t#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n\t\ttbn2[0] *= faceDirection;\n\t\ttbn2[1] *= faceDirection;\n\t#endif\n#endif\nvec3 geometryNormal = normal;",normal_fragment_maps:"#ifdef USE_NORMALMAP_OBJECTSPACE\n\tnormal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n\t#ifdef FLIP_SIDED\n\t\tnormal = - normal;\n\t#endif\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * faceDirection;\n\t#endif\n\tnormal = normalize( normalMatrix * normal );\n#elif defined( USE_NORMALMAP_TANGENTSPACE )\n\tvec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n\tmapN.xy *= normalScale;\n\tnormal = normalize( tbn * mapN );\n#elif defined( USE_BUMPMAP )\n\tnormal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection );\n#endif",normal_pars_fragment:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_pars_vertex:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_vertex:"#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n\t#ifdef USE_TANGENT\n\t\tvTangent = normalize( transformedTangent );\n\t\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n\t#endif\n#endif",normalmap_pars_fragment:"#ifdef USE_NORMALMAP\n\tuniform sampler2D normalMap;\n\tuniform vec2 normalScale;\n#endif\n#ifdef USE_NORMALMAP_OBJECTSPACE\n\tuniform mat3 normalMatrix;\n#endif\n#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) )\n\tmat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) {\n\t\tvec3 q0 = dFdx( eye_pos.xyz );\n\t\tvec3 q1 = dFdy( eye_pos.xyz );\n\t\tvec2 st0 = dFdx( uv.st );\n\t\tvec2 st1 = dFdy( uv.st );\n\t\tvec3 N = surf_norm;\n\t\tvec3 q1perp = cross( q1, N );\n\t\tvec3 q0perp = cross( N, q0 );\n\t\tvec3 T = q1perp * st0.x + q0perp * st1.x;\n\t\tvec3 B = q1perp * st0.y + q0perp * st1.y;\n\t\tfloat det = max( dot( T, T ), dot( B, B ) );\n\t\tfloat scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det );\n\t\treturn mat3( T * scale, B * scale, N );\n\t}\n#endif",clearcoat_normal_fragment_begin:"#ifdef USE_CLEARCOAT\n\tvec3 clearcoatNormal = geometryNormal;\n#endif",clearcoat_normal_fragment_maps:"#ifdef USE_CLEARCOAT_NORMALMAP\n\tvec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0;\n\tclearcoatMapN.xy *= clearcoatNormalScale;\n\tclearcoatNormal = normalize( tbn2 * clearcoatMapN );\n#endif",clearcoat_pars_fragment:"#ifdef USE_CLEARCOATMAP\n\tuniform sampler2D clearcoatMap;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform sampler2D clearcoatNormalMap;\n\tuniform vec2 clearcoatNormalScale;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform sampler2D clearcoatRoughnessMap;\n#endif",iridescence_pars_fragment:"#ifdef USE_IRIDESCENCEMAP\n\tuniform sampler2D iridescenceMap;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform sampler2D iridescenceThicknessMap;\n#endif",output_fragment:"#ifdef OPAQUE\ndiffuseColor.a = 1.0;\n#endif\n#ifdef USE_TRANSMISSION\ndiffuseColor.a *= material.transmissionAlpha + 0.1;\n#endif\ngl_FragColor = vec4( outgoingLight, diffuseColor.a );",packing:"vec3 packNormalToRGB( const in vec3 normal ) {\n\treturn normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n\treturn 2.0 * rgb.xyz - 1.0;\n}\nconst float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;\nconst vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. );\nconst vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );\nconst float ShiftRight8 = 1. / 256.;\nvec4 packDepthToRGBA( const in float v ) {\n\tvec4 r = vec4( fract( v * PackFactors ), v );\n\tr.yzw -= r.xyz * ShiftRight8;\treturn r * PackUpscale;\n}\nfloat unpackRGBAToDepth( const in vec4 v ) {\n\treturn dot( v, UnpackFactors );\n}\nvec2 packDepthToRG( in highp float v ) {\n\treturn packDepthToRGBA( v ).yx;\n}\nfloat unpackRGToDepth( const in highp vec2 v ) {\n\treturn unpackRGBAToDepth( vec4( v.xy, 0.0, 0.0 ) );\n}\nvec4 pack2HalfToRGBA( vec2 v ) {\n\tvec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) );\n\treturn vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w );\n}\nvec2 unpackRGBATo2Half( vec4 v ) {\n\treturn vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );\n}\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) {\n\treturn depth * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) {\n\treturn ( near * far ) / ( ( far - near ) * depth - far );\n}",premultiplied_alpha_fragment:"#ifdef PREMULTIPLIED_ALPHA\n\tgl_FragColor.rgb *= gl_FragColor.a;\n#endif",project_vertex:"vec4 mvPosition = vec4( transformed, 1.0 );\n#ifdef USE_INSTANCING\n\tmvPosition = instanceMatrix * mvPosition;\n#endif\nmvPosition = modelViewMatrix * mvPosition;\ngl_Position = projectionMatrix * mvPosition;",dithering_fragment:"#ifdef DITHERING\n\tgl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif",dithering_pars_fragment:"#ifdef DITHERING\n\tvec3 dithering( vec3 color ) {\n\t\tfloat grid_position = rand( gl_FragCoord.xy );\n\t\tvec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\n\t\tdither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\n\t\treturn color + dither_shift_RGB;\n\t}\n#endif",roughnessmap_fragment:"float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n\tvec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv );\n\troughnessFactor *= texelRoughness.g;\n#endif",roughnessmap_pars_fragment:"#ifdef USE_ROUGHNESSMAP\n\tuniform sampler2D roughnessMap;\n#endif",shadowmap_pars_fragment:"#if NUM_SPOT_LIGHT_COORDS > 0\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#if NUM_SPOT_LIGHT_MAPS > 0\n\tuniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ];\n#endif\n#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n\tfloat texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n\t\treturn step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n\t}\n\tvec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {\n\t\treturn unpackRGBATo2Half( texture2D( shadow, uv ) );\n\t}\n\tfloat VSMShadow (sampler2D shadow, vec2 uv, float compare ){\n\t\tfloat occlusion = 1.0;\n\t\tvec2 distribution = texture2DDistribution( shadow, uv );\n\t\tfloat hard_shadow = step( compare , distribution.x );\n\t\tif (hard_shadow != 1.0 ) {\n\t\t\tfloat distance = compare - distribution.x ;\n\t\t\tfloat variance = max( 0.00000, distribution.y * distribution.y );\n\t\t\tfloat softness_probability = variance / (variance + distance * distance );\t\t\tsoftness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 );\t\t\tocclusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );\n\t\t}\n\t\treturn occlusion;\n\t}\n\tfloat getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n\t\tfloat shadow = 1.0;\n\t\tshadowCoord.xyz /= shadowCoord.w;\n\t\tshadowCoord.z += shadowBias;\n\t\tbool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0;\n\t\tbool frustumTest = inFrustum && shadowCoord.z <= 1.0;\n\t\tif ( frustumTest ) {\n\t\t#if defined( SHADOWMAP_TYPE_PCF )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx0 = - texelSize.x * shadowRadius;\n\t\t\tfloat dy0 = - texelSize.y * shadowRadius;\n\t\t\tfloat dx1 = + texelSize.x * shadowRadius;\n\t\t\tfloat dy1 = + texelSize.y * shadowRadius;\n\t\t\tfloat dx2 = dx0 / 2.0;\n\t\t\tfloat dy2 = dy0 / 2.0;\n\t\t\tfloat dx3 = dx1 / 2.0;\n\t\t\tfloat dy3 = dy1 / 2.0;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n\t\t\t) * ( 1.0 / 17.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx = texelSize.x;\n\t\t\tfloat dy = texelSize.y;\n\t\t\tvec2 uv = shadowCoord.xy;\n\t\t\tvec2 f = fract( uv * shadowMapSize + 0.5 );\n\t\t\tuv -= f * texelSize;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, uv, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t f.y )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_VSM )\n\t\t\tshadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#else\n\t\t\tshadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#endif\n\t\t}\n\t\treturn shadow;\n\t}\n\tvec2 cubeToUV( vec3 v, float texelSizeY ) {\n\t\tvec3 absV = abs( v );\n\t\tfloat scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n\t\tabsV *= scaleToCube;\n\t\tv *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n\t\tvec2 planar = v.xy;\n\t\tfloat almostATexel = 1.5 * texelSizeY;\n\t\tfloat almostOne = 1.0 - almostATexel;\n\t\tif ( absV.z >= almostOne ) {\n\t\t\tif ( v.z > 0.0 )\n\t\t\t\tplanar.x = 4.0 - v.x;\n\t\t} else if ( absV.x >= almostOne ) {\n\t\t\tfloat signX = sign( v.x );\n\t\t\tplanar.x = v.z * signX + 2.0 * signX;\n\t\t} else if ( absV.y >= almostOne ) {\n\t\t\tfloat signY = sign( v.y );\n\t\t\tplanar.x = v.x + 2.0 * signY + 2.0;\n\t\t\tplanar.y = v.z * signY - 2.0;\n\t\t}\n\t\treturn vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n\t}\n\tfloat getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n\t\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n\t\tvec3 lightToPosition = shadowCoord.xyz;\n\t\tfloat dp = ( length( lightToPosition ) - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );\t\tdp += shadowBias;\n\t\tvec3 bd3D = normalize( lightToPosition );\n\t\t#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )\n\t\t\tvec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n\t\t\treturn (\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#else\n\t\t\treturn texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n\t\t#endif\n\t}\n#endif",shadowmap_pars_vertex:"#if NUM_SPOT_LIGHT_COORDS > 0\n\tuniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ];\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n#endif",shadowmap_vertex:"#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 )\n\tvec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\tvec4 shadowWorldPosition;\n#endif\n#if defined( USE_SHADOWMAP )\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if NUM_SPOT_LIGHT_COORDS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition;\n\t\t#if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t\tshadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias;\n\t\t#endif\n\t\tvSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n#endif",shadowmask_pars_fragment:"float getShadowMask() {\n\tfloat shadow = 1.0;\n\t#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tdirectionalLight = directionalLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tspotLight = spotLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tpointLight = pointLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#endif\n\treturn shadow;\n}",skinbase_vertex:"#ifdef USE_SKINNING\n\tmat4 boneMatX = getBoneMatrix( skinIndex.x );\n\tmat4 boneMatY = getBoneMatrix( skinIndex.y );\n\tmat4 boneMatZ = getBoneMatrix( skinIndex.z );\n\tmat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif",skinning_pars_vertex:"#ifdef USE_SKINNING\n\tuniform mat4 bindMatrix;\n\tuniform mat4 bindMatrixInverse;\n\tuniform highp sampler2D boneTexture;\n\tuniform int boneTextureSize;\n\tmat4 getBoneMatrix( const in float i ) {\n\t\tfloat j = i * 4.0;\n\t\tfloat x = mod( j, float( boneTextureSize ) );\n\t\tfloat y = floor( j / float( boneTextureSize ) );\n\t\tfloat dx = 1.0 / float( boneTextureSize );\n\t\tfloat dy = 1.0 / float( boneTextureSize );\n\t\ty = dy * ( y + 0.5 );\n\t\tvec4 v1 = texture2D( boneTexture, vec2( dx * ( x + 0.5 ), y ) );\n\t\tvec4 v2 = texture2D( boneTexture, vec2( dx * ( x + 1.5 ), y ) );\n\t\tvec4 v3 = texture2D( boneTexture, vec2( dx * ( x + 2.5 ), y ) );\n\t\tvec4 v4 = texture2D( boneTexture, vec2( dx * ( x + 3.5 ), y ) );\n\t\tmat4 bone = mat4( v1, v2, v3, v4 );\n\t\treturn bone;\n\t}\n#endif",skinning_vertex:"#ifdef USE_SKINNING\n\tvec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n\tvec4 skinned = vec4( 0.0 );\n\tskinned += boneMatX * skinVertex * skinWeight.x;\n\tskinned += boneMatY * skinVertex * skinWeight.y;\n\tskinned += boneMatZ * skinVertex * skinWeight.z;\n\tskinned += boneMatW * skinVertex * skinWeight.w;\n\ttransformed = ( bindMatrixInverse * skinned ).xyz;\n#endif",skinnormal_vertex:"#ifdef USE_SKINNING\n\tmat4 skinMatrix = mat4( 0.0 );\n\tskinMatrix += skinWeight.x * boneMatX;\n\tskinMatrix += skinWeight.y * boneMatY;\n\tskinMatrix += skinWeight.z * boneMatZ;\n\tskinMatrix += skinWeight.w * boneMatW;\n\tskinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;\n\tobjectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\n\t#ifdef USE_TANGENT\n\t\tobjectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#endif\n#endif",specularmap_fragment:"float specularStrength;\n#ifdef USE_SPECULARMAP\n\tvec4 texelSpecular = texture2D( specularMap, vSpecularMapUv );\n\tspecularStrength = texelSpecular.r;\n#else\n\tspecularStrength = 1.0;\n#endif",specularmap_pars_fragment:"#ifdef USE_SPECULARMAP\n\tuniform sampler2D specularMap;\n#endif",tonemapping_fragment:"#if defined( TONE_MAPPING )\n\tgl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif",tonemapping_pars_fragment:"#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\nuniform float toneMappingExposure;\nvec3 LinearToneMapping( vec3 color ) {\n\treturn toneMappingExposure * color;\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( color / ( vec3( 1.0 ) + color ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\tcolor = max( vec3( 0.0 ), color - 0.004 );\n\treturn pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\nvec3 RRTAndODTFit( vec3 v ) {\n\tvec3 a = v * ( v + 0.0245786 ) - 0.000090537;\n\tvec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;\n\treturn a / b;\n}\nvec3 ACESFilmicToneMapping( vec3 color ) {\n\tconst mat3 ACESInputMat = mat3(\n\t\tvec3( 0.59719, 0.07600, 0.02840 ),\t\tvec3( 0.35458, 0.90834, 0.13383 ),\n\t\tvec3( 0.04823, 0.01566, 0.83777 )\n\t);\n\tconst mat3 ACESOutputMat = mat3(\n\t\tvec3( 1.60475, -0.10208, -0.00327 ),\t\tvec3( -0.53108, 1.10813, -0.07276 ),\n\t\tvec3( -0.07367, -0.00605, 1.07602 )\n\t);\n\tcolor *= toneMappingExposure / 0.6;\n\tcolor = ACESInputMat * color;\n\tcolor = RRTAndODTFit( color );\n\tcolor = ACESOutputMat * color;\n\treturn saturate( color );\n}\nvec3 CustomToneMapping( vec3 color ) { return color; }",transmission_fragment:"#ifdef USE_TRANSMISSION\n\tmaterial.transmission = transmission;\n\tmaterial.transmissionAlpha = 1.0;\n\tmaterial.thickness = thickness;\n\tmaterial.attenuationDistance = attenuationDistance;\n\tmaterial.attenuationColor = attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tmaterial.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tmaterial.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g;\n\t#endif\n\tvec3 pos = vWorldPosition;\n\tvec3 v = normalize( cameraPosition - pos );\n\tvec3 n = inverseTransformDirection( normal, viewMatrix );\n\tvec4 transmission = getIBLVolumeRefraction(\n\t\tn, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90,\n\t\tpos, modelMatrix, viewMatrix, projectionMatrix, material.ior, material.thickness,\n\t\tmaterial.attenuationColor, material.attenuationDistance );\n\tmaterial.transmissionAlpha = mix( material.transmissionAlpha, transmission.a, material.transmission );\n\ttotalDiffuse = mix( totalDiffuse, transmission.rgb, material.transmission );\n#endif",transmission_pars_fragment:"#ifdef USE_TRANSMISSION\n\tuniform float transmission;\n\tuniform float thickness;\n\tuniform float attenuationDistance;\n\tuniform vec3 attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tuniform sampler2D transmissionMap;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tuniform sampler2D thicknessMap;\n\t#endif\n\tuniform vec2 transmissionSamplerSize;\n\tuniform sampler2D transmissionSamplerMap;\n\tuniform mat4 modelMatrix;\n\tuniform mat4 projectionMatrix;\n\tvarying vec3 vWorldPosition;\n\tfloat w0( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 );\n\t}\n\tfloat w1( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 );\n\t}\n\tfloat w2( float a ){\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 );\n\t}\n\tfloat w3( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * a * a );\n\t}\n\tfloat g0( float a ) {\n\t\treturn w0( a ) + w1( a );\n\t}\n\tfloat g1( float a ) {\n\t\treturn w2( a ) + w3( a );\n\t}\n\tfloat h0( float a ) {\n\t\treturn - 1.0 + w1( a ) / ( w0( a ) + w1( a ) );\n\t}\n\tfloat h1( float a ) {\n\t\treturn 1.0 + w3( a ) / ( w2( a ) + w3( a ) );\n\t}\n\tvec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, vec2 fullSize, float lod ) {\n\t\tuv = uv * texelSize.zw + 0.5;\n\t\tvec2 iuv = floor( uv );\n\t\tvec2 fuv = fract( uv );\n\t\tfloat g0x = g0( fuv.x );\n\t\tfloat g1x = g1( fuv.x );\n\t\tfloat h0x = h0( fuv.x );\n\t\tfloat h1x = h1( fuv.x );\n\t\tfloat h0y = h0( fuv.y );\n\t\tfloat h1y = h1( fuv.y );\n\t\tvec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\t\n\t\tvec2 lodFudge = pow( 1.95, lod ) / fullSize;\n\t\treturn g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) +\n\t\t\tg1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) );\n\t}\n\tvec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) {\n\t\tvec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) );\n\t\tvec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) );\n\t\tvec2 fLodSizeInv = 1.0 / fLodSize;\n\t\tvec2 cLodSizeInv = 1.0 / cLodSize;\n\t\tvec2 fullSize = vec2( textureSize( sampler, 0 ) );\n\t\tvec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), fullSize, floor( lod ) );\n\t\tvec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), fullSize, ceil( lod ) );\n\t\treturn mix( fSample, cSample, fract( lod ) );\n\t}\n\tvec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) {\n\t\tvec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior );\n\t\tvec3 modelScale;\n\t\tmodelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) );\n\t\tmodelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) );\n\t\tmodelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) );\n\t\treturn normalize( refractionVector ) * thickness * modelScale;\n\t}\n\tfloat applyIorToRoughness( const in float roughness, const in float ior ) {\n\t\treturn roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 );\n\t}\n\tvec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) {\n\t\tfloat lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior );\n\t\treturn textureBicubic( transmissionSamplerMap, fragCoord.xy, lod );\n\t}\n\tvec3 applyVolumeAttenuation( const in vec3 radiance, const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tif ( isinf( attenuationDistance ) ) {\n\t\t\treturn radiance;\n\t\t} else {\n\t\t\tvec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance;\n\t\t\tvec3 transmittance = exp( - attenuationCoefficient * transmissionDistance );\t\t\treturn transmittance * radiance;\n\t\t}\n\t}\n\tvec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor,\n\t\tconst in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix,\n\t\tconst in mat4 viewMatrix, const in mat4 projMatrix, const in float ior, const in float thickness,\n\t\tconst in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tvec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix );\n\t\tvec3 refractedRayExit = position + transmissionRay;\n\t\tvec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n\t\tvec2 refractionCoords = ndcPos.xy / ndcPos.w;\n\t\trefractionCoords += 1.0;\n\t\trefractionCoords /= 2.0;\n\t\tvec4 transmittedLight = getTransmissionSample( refractionCoords, roughness, ior );\n\t\tvec3 attenuatedColor = applyVolumeAttenuation( transmittedLight.rgb, length( transmissionRay ), attenuationColor, attenuationDistance );\n\t\tvec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness );\n\t\treturn vec4( ( 1.0 - F ) * attenuatedColor * diffuseColor, transmittedLight.a );\n\t}\n#endif",uv_pars_fragment:"#ifdef USE_UV\n\tvarying vec2 vUv;\n#endif\n#ifdef USE_MAP\n\tvarying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n\tvarying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n\tvarying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n\tvarying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n\tvarying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n\tvarying vec2 vNormalMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tvarying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n\tvarying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tvarying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tvarying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tvarying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tvarying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tvarying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tvarying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tvarying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tvarying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n\tvarying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tvarying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tvarying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tuniform mat3 transmissionMapTransform;\n\tvarying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n\tuniform mat3 thicknessMapTransform;\n\tvarying vec2 vThicknessMapUv;\n#endif",uv_pars_vertex:"#ifdef USE_UV\n\tvarying vec2 vUv;\n#endif\n#ifdef USE_UV2\n\tattribute vec2 uv2;\n#endif\n#ifdef USE_MAP\n\tuniform mat3 mapTransform;\n\tvarying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform mat3 alphaMapTransform;\n\tvarying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n\tuniform mat3 lightMapTransform;\n\tvarying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n\tuniform mat3 aoMapTransform;\n\tvarying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n\tuniform mat3 bumpMapTransform;\n\tvarying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n\tuniform mat3 normalMapTransform;\n\tvarying vec2 vNormalMapUv;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\tuniform mat3 displacementMapTransform;\n\tvarying vec2 vDisplacementMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tuniform mat3 emissiveMapTransform;\n\tvarying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n\tuniform mat3 metalnessMapTransform;\n\tvarying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tuniform mat3 roughnessMapTransform;\n\tvarying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tuniform mat3 clearcoatMapTransform;\n\tvarying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform mat3 clearcoatNormalMapTransform;\n\tvarying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform mat3 clearcoatRoughnessMapTransform;\n\tvarying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tuniform mat3 sheenColorMapTransform;\n\tvarying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tuniform mat3 sheenRoughnessMapTransform;\n\tvarying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tuniform mat3 iridescenceMapTransform;\n\tvarying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform mat3 iridescenceThicknessMapTransform;\n\tvarying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n\tuniform mat3 specularMapTransform;\n\tvarying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tuniform mat3 specularColorMapTransform;\n\tvarying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tuniform mat3 specularIntensityMapTransform;\n\tvarying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tuniform mat3 transmissionMapTransform;\n\tvarying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n\tuniform mat3 thicknessMapTransform;\n\tvarying vec2 vThicknessMapUv;\n#endif",uv_vertex:"#ifdef USE_UV\n\tvUv = vec3( uv, 1 ).xy;\n#endif\n#ifdef USE_MAP\n\tvMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ALPHAMAP\n\tvAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_LIGHTMAP\n\tvLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_AOMAP\n\tvAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_BUMPMAP\n\tvBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_NORMALMAP\n\tvNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\tvDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tvEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_METALNESSMAP\n\tvMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tvRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tvClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tvClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tvClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tvIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tvIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tvSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tvSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULARMAP\n\tvSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tvSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tvSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tvTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_THICKNESSMAP\n\tvThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy;\n#endif",worldpos_vertex:"#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0\n\tvec4 worldPosition = vec4( transformed, 1.0 );\n\t#ifdef USE_INSTANCING\n\t\tworldPosition = instanceMatrix * worldPosition;\n\t#endif\n\tworldPosition = modelMatrix * worldPosition;\n#endif",background_vert:"varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\tgl_Position = vec4( position.xy, 1.0, 1.0 );\n}",background_frag:"uniform sampler2D t2D;\nuniform float backgroundIntensity;\nvarying vec2 vUv;\nvoid main() {\n\tvec4 texColor = texture2D( t2D, vUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\ttexColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w );\n\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include \n\t#include \n}",backgroundCube_vert:"varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n\tgl_Position.z = gl_Position.w;\n}",backgroundCube_frag:"#ifdef ENVMAP_TYPE_CUBE\n\tuniform samplerCube envMap;\n#elif defined( ENVMAP_TYPE_CUBE_UV )\n\tuniform sampler2D envMap;\n#endif\nuniform float flipEnvMap;\nuniform float backgroundBlurriness;\nuniform float backgroundIntensity;\nvarying vec3 vWorldDirection;\n#include \nvoid main() {\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 texColor = textureCube( envMap, vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) );\n\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\tvec4 texColor = textureCubeUV( envMap, vWorldDirection, backgroundBlurriness );\n\t#else\n\t\tvec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include \n\t#include \n}",cube_vert:"varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n\tgl_Position.z = gl_Position.w;\n}",cube_frag:"uniform samplerCube tCube;\nuniform float tFlip;\nuniform float opacity;\nvarying vec3 vWorldDirection;\nvoid main() {\n\tvec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) );\n\tgl_FragColor = texColor;\n\tgl_FragColor.a *= opacity;\n\t#include \n\t#include \n}",depth_vert:"#include \n#include \n#include \n#include \n#include \n#include \n#include \nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include \n\t#include \n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvHighPrecisionZW = gl_Position.zw;\n}",depth_frag:"#if DEPTH_PACKING == 3200\n\tuniform float opacity;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( 1.0 );\n\t#if DEPTH_PACKING == 3200\n\t\tdiffuseColor.a = opacity;\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\tfloat fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;\n\t#if DEPTH_PACKING == 3200\n\t\tgl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );\n\t#elif DEPTH_PACKING == 3201\n\t\tgl_FragColor = packDepthToRGBA( fragCoordZ );\n\t#endif\n}",distanceRGBA_vert:"#define DISTANCE\nvarying vec3 vWorldPosition;\n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvWorldPosition = worldPosition.xyz;\n}",distanceRGBA_frag:"#define DISTANCE\nuniform vec3 referencePosition;\nuniform float nearDistance;\nuniform float farDistance;\nvarying vec3 vWorldPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main () {\n\t#include \n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include \n\t#include \n\t#include \n\tfloat dist = length( vWorldPosition - referencePosition );\n\tdist = ( dist - nearDistance ) / ( farDistance - nearDistance );\n\tdist = saturate( dist );\n\tgl_FragColor = packDepthToRGBA( dist );\n}",equirect_vert:"varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n}",equirect_frag:"uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvec3 direction = normalize( vWorldDirection );\n\tvec2 sampleUV = equirectUv( direction );\n\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\t#include \n\t#include \n}",linedashed_vert:"uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvLineDistance = scale * lineDistance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",linedashed_frag:"uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tif ( mod( vLineDistance, totalSize ) > dashSize ) {\n\t\tdiscard;\n\t}\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshbasic_vert:"#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#if defined ( USE_ENVMAP ) || defined ( USE_SKINNING )\n\t\t#include \n\t\t#include \n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshbasic_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\t\treflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI;\n\t#else\n\t\treflectedLight.indirectDiffuse += vec3( 1.0 );\n\t#endif\n\t#include \n\treflectedLight.indirectDiffuse *= diffuseColor.rgb;\n\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshlambert_vert:"#define LAMBERT\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n\t#include \n}",meshlambert_frag:"#define LAMBERT\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshmatcap_vert:"#define MATCAP\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n}",meshmatcap_frag:"#define MATCAP\nuniform vec3 diffuse;\nuniform float opacity;\nuniform sampler2D matcap;\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 viewDir = normalize( vViewPosition );\n\tvec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );\n\tvec3 y = cross( viewDir, x );\n\tvec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;\n\t#ifdef USE_MATCAP\n\t\tvec4 matcapColor = texture2D( matcap, uv );\n\t#else\n\t\tvec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 );\n\t#endif\n\tvec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshnormal_vert:"#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvarying vec3 vViewPosition;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n}",meshnormal_frag:"#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvarying vec3 vViewPosition;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\tgl_FragColor = vec4( packNormalToRGB( normal ), opacity );\n\t#ifdef OPAQUE\n\t\tgl_FragColor.a = 1.0;\n\t#endif\n}",meshphong_vert:"#define PHONG\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n\t#include \n}",meshphong_frag:"#define PHONG\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshphysical_vert:"#define STANDARD\nvarying vec3 vViewPosition;\n#ifdef USE_TRANSMISSION\n\tvarying vec3 vWorldPosition;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n#ifdef USE_TRANSMISSION\n\tvWorldPosition = worldPosition.xyz;\n#endif\n}",meshphysical_frag:"#define STANDARD\n#ifdef PHYSICAL\n\t#define IOR\n\t#define USE_SPECULAR\n#endif\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\n#ifdef IOR\n\tuniform float ior;\n#endif\n#ifdef USE_SPECULAR\n\tuniform float specularIntensity;\n\tuniform vec3 specularColor;\n\t#ifdef USE_SPECULAR_COLORMAP\n\t\tuniform sampler2D specularColorMap;\n\t#endif\n\t#ifdef USE_SPECULAR_INTENSITYMAP\n\t\tuniform sampler2D specularIntensityMap;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT\n\tuniform float clearcoat;\n\tuniform float clearcoatRoughness;\n#endif\n#ifdef USE_IRIDESCENCE\n\tuniform float iridescence;\n\tuniform float iridescenceIOR;\n\tuniform float iridescenceThicknessMinimum;\n\tuniform float iridescenceThicknessMaximum;\n#endif\n#ifdef USE_SHEEN\n\tuniform vec3 sheenColor;\n\tuniform float sheenRoughness;\n\t#ifdef USE_SHEEN_COLORMAP\n\t\tuniform sampler2D sheenColorMap;\n\t#endif\n\t#ifdef USE_SHEEN_ROUGHNESSMAP\n\t\tuniform sampler2D sheenRoughnessMap;\n\t#endif\n#endif\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;\n\tvec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;\n\t#include \n\tvec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;\n\t#ifdef USE_SHEEN\n\t\tfloat sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor );\n\t\toutgoingLight = outgoingLight * sheenEnergyComp + sheenSpecular;\n\t#endif\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNVcc = saturate( dot( geometry.clearcoatNormal, geometry.viewDir ) );\n\t\tvec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc );\n\t\toutgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + clearcoatSpecular * material.clearcoat;\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshtoon_vert:"#define TOON\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n}",meshtoon_frag:"#define TOON\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",points_vert:"uniform float size;\nuniform float scale;\n#include \n#include \n#include \n#include \n#include \n#include \n#ifdef USE_POINTS_UV\n\tvarying vec2 vUv;\n\tuniform mat3 uvTransform;\n#endif\nvoid main() {\n\t#ifdef USE_POINTS_UV\n\t\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tgl_PointSize = size;\n\t#ifdef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n}",points_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",shadow_vert:"#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",shadow_frag:"uniform vec3 color;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tgl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );\n\t#include \n\t#include \n\t#include \n}",sprite_vert:"uniform float rotation;\nuniform vec2 center;\n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );\n\tvec2 scale;\n\tscale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );\n\tscale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );\n\t#ifndef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) scale *= - mvPosition.z;\n\t#endif\n\tvec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;\n\tvec2 rotatedPosition;\n\trotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\n\trotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\n\tmvPosition.xy += rotatedPosition;\n\tgl_Position = projectionMatrix * mvPosition;\n\t#include \n\t#include \n\t#include \n}",sprite_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n}"},Dr={common:{diffuse:{value:new Nn(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new Vt},alphaMap:{value:null},alphaMapTransform:{value:new Vt},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new Vt}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new Vt}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new Vt}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new Vt},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new Vt},normalScale:{value:new jt(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new Vt},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new Vt}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new Vt}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new Vt}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new Nn(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new Nn(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaTest:{value:0},uvTransform:{value:new Vt}},sprite:{diffuse:{value:new Nn(16777215)},opacity:{value:1},center:{value:new jt(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new Vt},alphaMap:{value:null},alphaTest:{value:0}}},zr={basic:{uniforms:mr([Dr.common,Dr.specularmap,Dr.envmap,Dr.aomap,Dr.lightmap,Dr.fog]),vertexShader:Rr.meshbasic_vert,fragmentShader:Rr.meshbasic_frag},lambert:{uniforms:mr([Dr.common,Dr.specularmap,Dr.envmap,Dr.aomap,Dr.lightmap,Dr.emissivemap,Dr.bumpmap,Dr.normalmap,Dr.displacementmap,Dr.fog,Dr.lights,{emissive:{value:new Nn(0)}}]),vertexShader:Rr.meshlambert_vert,fragmentShader:Rr.meshlambert_frag},phong:{uniforms:mr([Dr.common,Dr.specularmap,Dr.envmap,Dr.aomap,Dr.lightmap,Dr.emissivemap,Dr.bumpmap,Dr.normalmap,Dr.displacementmap,Dr.fog,Dr.lights,{emissive:{value:new Nn(0)},specular:{value:new Nn(1118481)},shininess:{value:30}}]),vertexShader:Rr.meshphong_vert,fragmentShader:Rr.meshphong_frag},standard:{uniforms:mr([Dr.common,Dr.envmap,Dr.aomap,Dr.lightmap,Dr.emissivemap,Dr.bumpmap,Dr.normalmap,Dr.displacementmap,Dr.roughnessmap,Dr.metalnessmap,Dr.fog,Dr.lights,{emissive:{value:new Nn(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Rr.meshphysical_vert,fragmentShader:Rr.meshphysical_frag},toon:{uniforms:mr([Dr.common,Dr.aomap,Dr.lightmap,Dr.emissivemap,Dr.bumpmap,Dr.normalmap,Dr.displacementmap,Dr.gradientmap,Dr.fog,Dr.lights,{emissive:{value:new Nn(0)}}]),vertexShader:Rr.meshtoon_vert,fragmentShader:Rr.meshtoon_frag},matcap:{uniforms:mr([Dr.common,Dr.bumpmap,Dr.normalmap,Dr.displacementmap,Dr.fog,{matcap:{value:null}}]),vertexShader:Rr.meshmatcap_vert,fragmentShader:Rr.meshmatcap_frag},points:{uniforms:mr([Dr.points,Dr.fog]),vertexShader:Rr.points_vert,fragmentShader:Rr.points_frag},dashed:{uniforms:mr([Dr.common,Dr.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Rr.linedashed_vert,fragmentShader:Rr.linedashed_frag},depth:{uniforms:mr([Dr.common,Dr.displacementmap]),vertexShader:Rr.depth_vert,fragmentShader:Rr.depth_frag},normal:{uniforms:mr([Dr.common,Dr.bumpmap,Dr.normalmap,Dr.displacementmap,{opacity:{value:1}}]),vertexShader:Rr.meshnormal_vert,fragmentShader:Rr.meshnormal_frag},sprite:{uniforms:mr([Dr.sprite,Dr.fog]),vertexShader:Rr.sprite_vert,fragmentShader:Rr.sprite_frag},background:{uniforms:{uvTransform:{value:new Vt},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:Rr.background_vert,fragmentShader:Rr.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1}},vertexShader:Rr.backgroundCube_vert,fragmentShader:Rr.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:Rr.cube_vert,fragmentShader:Rr.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Rr.equirect_vert,fragmentShader:Rr.equirect_frag},distanceRGBA:{uniforms:mr([Dr.common,Dr.displacementmap,{referencePosition:{value:new ce},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Rr.distanceRGBA_vert,fragmentShader:Rr.distanceRGBA_frag},shadow:{uniforms:mr([Dr.lights,Dr.fog,{color:{value:new Nn(0)},opacity:{value:1}}]),vertexShader:Rr.shadow_vert,fragmentShader:Rr.shadow_frag}};zr.physical={uniforms:mr([zr.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new Vt},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new Vt},clearcoatNormalScale:{value:new jt(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new Vt},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new Vt},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new Vt},sheen:{value:0},sheenColor:{value:new Nn(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new Vt},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new Vt},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new Vt},transmissionSamplerSize:{value:new jt},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new Vt},attenuationDistance:{value:0},attenuationColor:{value:new Nn(0)},specularColor:{value:new Nn(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new Vt},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new Vt}}]),vertexShader:Rr.meshphysical_vert,fragmentShader:Rr.meshphysical_frag};const Fr={r:0,b:0,g:0};function Br(t,e,n,r,i,o,a){const s=new Nn(0);let u,h,d=!0===o?0:1,f=null,p=0,m=null;function g(e,n){e.getRGB(Fr,gr(t)),r.buffers.color.setClear(Fr.r,Fr.g,Fr.b,n,a)}return{getClearColor:function(){return s},setClearColor:function(t,e=1){s.set(t),d=e,g(s,d)},getClearAlpha:function(){return d},setClearAlpha:function(t){d=t,g(s,d)},render:function(r,o){let a=!1,v=!0===o.isScene?o.background:null;if(v&&v.isTexture){v=(o.backgroundBlurriness>0?n:e).get(v)}const y=t.xr,b=y.getSession&&y.getSession();b&&"additive"===b.environmentBlendMode&&(v=null),null===v?g(s,d):v&&v.isColor&&(g(v,1),a=!0),(t.autoClear||a)&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),v&&(v.isCubeTexture||v.mapping===B)?(void 0===h&&(h=new hr(new fr(1,1,1),new yr({name:"BackgroundCubeMaterial",uniforms:pr(zr.backgroundCube.uniforms),vertexShader:zr.backgroundCube.vertexShader,fragmentShader:zr.backgroundCube.fragmentShader,side:c,depthTest:!1,depthWrite:!1,fog:!1})),h.geometry.deleteAttribute("normal"),h.geometry.deleteAttribute("uv"),h.onBeforeRender=function(t,e,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(h.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),i.update(h)),h.material.uniforms.envMap.value=v,h.material.uniforms.flipEnvMap.value=v.isCubeTexture&&!1===v.isRenderTargetTexture?-1:1,h.material.uniforms.backgroundBlurriness.value=o.backgroundBlurriness,h.material.uniforms.backgroundIntensity.value=o.backgroundIntensity,h.material.toneMapped=v.encoding!==yt,f===v&&p===v.version&&m===t.toneMapping||(h.material.needsUpdate=!0,f=v,p=v.version,m=t.toneMapping),h.layers.enableAll(),r.unshift(h,h.geometry,h.material,0,0,null)):v&&v.isTexture&&(void 0===u&&(u=new hr(new Lr(2,2),new yr({name:"BackgroundMaterial",uniforms:pr(zr.background.uniforms),vertexShader:zr.background.vertexShader,fragmentShader:zr.background.fragmentShader,side:l,depthTest:!1,depthWrite:!1,fog:!1})),u.geometry.deleteAttribute("normal"),Object.defineProperty(u.material,"map",{get:function(){return this.uniforms.t2D.value}}),i.update(u)),u.material.uniforms.t2D.value=v,u.material.uniforms.backgroundIntensity.value=o.backgroundIntensity,u.material.toneMapped=v.encoding!==yt,!0===v.matrixAutoUpdate&&v.updateMatrix(),u.material.uniforms.uvTransform.value.copy(v.matrix),f===v&&p===v.version&&m===t.toneMapping||(u.material.needsUpdate=!0,f=v,p=v.version,m=t.toneMapping),u.layers.enableAll(),r.unshift(u,u.geometry,u.material,0,0,null))}}}function Ur(t,e,n,r){const i=t.getParameter(34921),o=r.isWebGL2?null:e.get("OES_vertex_array_object"),a=r.isWebGL2||null!==o,s={},u=f(null);let l=u,c=!1;function h(e){return r.isWebGL2?t.bindVertexArray(e):o.bindVertexArrayOES(e)}function d(e){return r.isWebGL2?t.deleteVertexArray(e):o.deleteVertexArrayOES(e)}function f(t){const e=[],n=[],r=[];for(let t=0;t=0){const n=i[e];let r=o[e];if(void 0===r&&("instanceMatrix"===e&&t.instanceMatrix&&(r=t.instanceMatrix),"instanceColor"===e&&t.instanceColor&&(r=t.instanceColor)),void 0===n)return!0;if(n.attribute!==r)return!0;if(r&&n.data!==r.data)return!0;a++}}return l.attributesNum!==a||l.index!==r}(i,b,d,x),w&&function(t,e,n,r){const i={},o=e.attributes;let a=0;const s=n.getAttributes();for(const e in s){if(s[e].location>=0){let n=o[e];void 0===n&&("instanceMatrix"===e&&t.instanceMatrix&&(n=t.instanceMatrix),"instanceColor"===e&&t.instanceColor&&(n=t.instanceColor));const r={};r.attribute=n,n&&n.data&&(r.data=n.data),i[e]=r,a++}}l.attributes=i,l.attributesNum=a,l.index=r}(i,b,d,x)}else{const t=!0===u.wireframe;l.geometry===b.id&&l.program===d.id&&l.wireframe===t||(l.geometry=b.id,l.program=d.id,l.wireframe=t,w=!0)}null!==x&&n.update(x,34963),(w||c)&&(c=!1,function(i,o,a,s){if(!1===r.isWebGL2&&(i.isInstancedMesh||s.isInstancedBufferGeometry)&&null===e.get("ANGLE_instanced_arrays"))return;p();const u=s.attributes,l=a.getAttributes(),c=o.defaultAttributeValues;for(const e in l){const r=l[e];if(r.location>=0){let o=u[e];if(void 0===o&&("instanceMatrix"===e&&i.instanceMatrix&&(o=i.instanceMatrix),"instanceColor"===e&&i.instanceColor&&(o=i.instanceColor)),void 0!==o){const e=o.normalized,a=o.itemSize,u=n.get(o);if(void 0===u)continue;const l=u.buffer,c=u.type,h=u.bytesPerElement;if(o.isInterleavedBufferAttribute){const n=o.data,u=n.stride,d=o.offset;if(n.isInstancedInterleavedBuffer){for(let t=0;t0&&t.getShaderPrecisionFormat(35632,36338).precision>0)return"highp";e="mediump"}return"mediump"===e&&t.getShaderPrecisionFormat(35633,36337).precision>0&&t.getShaderPrecisionFormat(35632,36337).precision>0?"mediump":"lowp"}const o="undefined"!=typeof WebGL2RenderingContext&&"WebGL2RenderingContext"===t.constructor.name;let a=void 0!==n.precision?n.precision:"highp";const s=i(a);s!==a&&(console.warn("THREE.WebGLRenderer:",a,"not supported, using",s,"instead."),a=s);const u=o||e.has("WEBGL_draw_buffers"),l=!0===n.logarithmicDepthBuffer,c=t.getParameter(34930),h=t.getParameter(35660),d=t.getParameter(3379),f=t.getParameter(34076),p=t.getParameter(34921),m=t.getParameter(36347),g=t.getParameter(36348),v=t.getParameter(36349),y=h>0,b=o||e.has("OES_texture_float");return{isWebGL2:o,drawBuffers:u,getMaxAnisotropy:function(){if(void 0!==r)return r;if(!0===e.has("EXT_texture_filter_anisotropic")){const n=e.get("EXT_texture_filter_anisotropic");r=t.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else r=0;return r},getMaxPrecision:i,precision:a,logarithmicDepthBuffer:l,maxTextures:c,maxVertexTextures:h,maxTextureSize:d,maxCubemapSize:f,maxAttributes:p,maxVertexUniforms:m,maxVaryings:g,maxFragmentUniforms:v,vertexTextures:y,floatFragmentTextures:b,floatVertexTextures:y&&b,maxSamples:o?t.getParameter(36183):0}}function Hr(t){const e=this;let n=null,r=0,i=!1,o=!1;const a=new Tr,s=new Vt,u={value:null,needsUpdate:!1};function l(t,n,r,i){const o=null!==t?t.length:0;let l=null;if(0!==o){if(l=u.value,!0!==i||null===l){const e=r+4*o,i=n.matrixWorldInverse;s.getNormalMatrix(i),(null===l||l.length0);e.numPlanes=r,e.numIntersection=0}();else{const t=o?0:r,e=4*t;let i=p.clippingState||null;u.value=i,i=l(h,s,e,c);for(let t=0;t!==e;++t)i[t]=n[t];p.clippingState=i,this.numIntersection=d?this.numPlanes:0,this.numPlanes+=t}}}function Gr(t){let e=new WeakMap;function n(t,e){return e===z?t.mapping=R:e===F&&(t.mapping=D),t}function r(t){const n=t.target;n.removeEventListener("dispose",r);const i=e.get(n);void 0!==i&&(e.delete(n),i.dispose())}return{get:function(i){if(i&&i.isTexture&&!1===i.isRenderTargetTexture){const o=i.mapping;if(o===z||o===F){if(e.has(i)){return n(e.get(i).texture,i.mapping)}{const o=i.image;if(o&&o.height>0){const a=new Er(o.height/2);return a.fromEquirectangularTexture(t,i),e.set(i,a),i.addEventListener("dispose",r),n(a.texture,i.mapping)}return null}}}return i},dispose:function(){e=new WeakMap}}}class Wr extends br{constructor(t=-1,e=1,n=1,r=-1,i=.1,o=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=t,this.right=e,this.top=n,this.bottom=r,this.near=i,this.far=o,this.updateProjectionMatrix()}copy(t,e){return super.copy(t,e),this.left=t.left,this.right=t.right,this.top=t.top,this.bottom=t.bottom,this.near=t.near,this.far=t.far,this.zoom=t.zoom,this.view=null===t.view?null:Object.assign({},t.view),this}setViewOffset(t,e,n,r,i,o){null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const t=(this.right-this.left)/(2*this.zoom),e=(this.top-this.bottom)/(2*this.zoom),n=(this.right+this.left)/2,r=(this.top+this.bottom)/2;let i=n-t,o=n+t,a=r+e,s=r-e;if(null!==this.view&&this.view.enabled){const t=(this.right-this.left)/this.view.fullWidth/this.zoom,e=(this.top-this.bottom)/this.view.fullHeight/this.zoom;i+=t*this.view.offsetX,o=i+t*this.view.width,a-=e*this.view.offsetY,s=a-e*this.view.height}this.projectionMatrix.makeOrthographic(i,o,a,s,this.near,this.far),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(t){const e=super.toJSON(t);return e.object.zoom=this.zoom,e.object.left=this.left,e.object.right=this.right,e.object.top=this.top,e.object.bottom=this.bottom,e.object.near=this.near,e.object.far=this.far,null!==this.view&&(e.object.view=Object.assign({},this.view)),e}}const Xr=[.125,.215,.35,.446,.526,.582],Yr=20,qr=new Wr,$r=new Nn;let Kr=null;const Zr=(1+Math.sqrt(5))/2,Qr=1/Zr,Jr=[new ce(1,1,1),new ce(-1,1,1),new ce(1,1,-1),new ce(-1,1,-1),new ce(0,Zr,Qr),new ce(0,Zr,-Qr),new ce(Qr,0,Zr),new ce(-Qr,0,Zr),new ce(Zr,Qr,0),new ce(-Zr,Qr,0)];class ti{constructor(t){this._renderer=t,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(t,e=0,n=.1,r=100){Kr=this._renderer.getRenderTarget(),this._setSize(256);const i=this._allocateTargets();return i.depthBuffer=!0,this._sceneToCubeUV(t,n,r,i),e>0&&this._blur(i,0,0,e),this._applyPMREM(i),this._cleanup(i),i}fromEquirectangular(t,e=null){return this._fromTexture(t,e)}fromCubemap(t,e=null){return this._fromTexture(t,e)}compileCubemapShader(){null===this._cubemapMaterial&&(this._cubemapMaterial=ii(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){null===this._equirectMaterial&&(this._equirectMaterial=ri(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),null!==this._cubemapMaterial&&this._cubemapMaterial.dispose(),null!==this._equirectMaterial&&this._equirectMaterial.dispose()}_setSize(t){this._lodMax=Math.floor(Math.log2(t)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){null!==this._blurMaterial&&this._blurMaterial.dispose(),null!==this._pingPongRenderTarget&&this._pingPongRenderTarget.dispose();for(let t=0;tt-4?s=Xr[a-t+4-1]:0===a&&(s=0),r.push(s);const u=1/(o-2),l=-u,c=1+u,h=[l,l,c,l,c,c,l,l,c,c,l,c],d=6,f=6,p=3,m=2,g=1,v=new Float32Array(p*f*d),y=new Float32Array(m*f*d),b=new Float32Array(g*f*d);for(let t=0;t2?0:-1,r=[e,n,0,e+2/3,n,0,e+2/3,n+1,0,e,n,0,e+2/3,n+1,0,e,n+1,0];v.set(r,p*f*t),y.set(h,m*f*t);const i=[t,t,t,t,t,t];b.set(i,g*f*t)}const x=new Yn;x.setAttribute("position",new Dn(v,p)),x.setAttribute("uv",new Dn(y,m)),x.setAttribute("faceIndex",new Dn(b,g)),e.push(x),i>4&&i--}return{lodPlanes:e,sizeLods:n,sigmas:r}}(r)),this._blurMaterial=function(t,e,n){const r=new Float32Array(Yr),i=new ce(0,1,0),o=new yr({name:"SphericalGaussianBlur",defines:{n:Yr,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${t}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:r},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:i}},vertexShader:oi(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\t\t\tuniform int samples;\n\t\t\tuniform float weights[ n ];\n\t\t\tuniform bool latitudinal;\n\t\t\tuniform float dTheta;\n\t\t\tuniform float mipInt;\n\t\t\tuniform vec3 poleAxis;\n\n\t\t\t#define ENVMAP_TYPE_CUBE_UV\n\t\t\t#include \n\n\t\t\tvec3 getSample( float theta, vec3 axis ) {\n\n\t\t\t\tfloat cosTheta = cos( theta );\n\t\t\t\t// Rodrigues' axis-angle rotation\n\t\t\t\tvec3 sampleDirection = vOutputDirection * cosTheta\n\t\t\t\t\t+ cross( axis, vOutputDirection ) * sin( theta )\n\t\t\t\t\t+ axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta );\n\n\t\t\t\treturn bilinearCubeUV( envMap, sampleDirection, mipInt );\n\n\t\t\t}\n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection );\n\n\t\t\t\tif ( all( equal( axis, vec3( 0.0 ) ) ) ) {\n\n\t\t\t\t\taxis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x );\n\n\t\t\t\t}\n\n\t\t\t\taxis = normalize( axis );\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t\t\t\tgl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis );\n\n\t\t\t\tfor ( int i = 1; i < n; i++ ) {\n\n\t\t\t\t\tif ( i >= samples ) {\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfloat theta = dTheta * float( i );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( theta, axis );\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t",blending:0,depthTest:!1,depthWrite:!1});return o}(r,t,e)}return r}_compileMaterial(t){const e=new hr(this._lodPlanes[0],t);this._renderer.compile(e,qr)}_sceneToCubeUV(t,e,n,r){const i=new xr(90,1,e,n),o=[1,-1,1,1,1,1],a=[1,1,1,-1,-1,-1],s=this._renderer,u=s.autoClear,l=s.toneMapping;s.getClearColor($r),s.toneMapping=k,s.autoClear=!1;const h=new On({name:"PMREM.Background",side:c,depthWrite:!1,depthTest:!1}),d=new hr(new fr,h);let f=!1;const p=t.background;p?p.isColor&&(h.color.copy(p),t.background=null,f=!0):(h.color.copy($r),f=!0);for(let e=0;e<6;e++){const n=e%3;0===n?(i.up.set(0,o[e],0),i.lookAt(a[e],0,0)):1===n?(i.up.set(0,0,o[e]),i.lookAt(0,a[e],0)):(i.up.set(0,o[e],0),i.lookAt(0,0,a[e]));const u=this._cubeSize;ni(r,n*u,e>2?u:0,u,u),s.setRenderTarget(r),f&&s.render(d,i),s.render(t,i)}d.geometry.dispose(),d.material.dispose(),s.toneMapping=l,s.autoClear=u,t.background=p}_textureToCubeUV(t,e){const n=this._renderer,r=t.mapping===R||t.mapping===D;r?(null===this._cubemapMaterial&&(this._cubemapMaterial=ii()),this._cubemapMaterial.uniforms.flipEnvMap.value=!1===t.isRenderTargetTexture?-1:1):null===this._equirectMaterial&&(this._equirectMaterial=ri());const i=r?this._cubemapMaterial:this._equirectMaterial,o=new hr(this._lodPlanes[0],i);i.uniforms.envMap.value=t;const a=this._cubeSize;ni(e,0,0,3*a,2*a),n.setRenderTarget(e),n.render(o,qr)}_applyPMREM(t){const e=this._renderer,n=e.autoClear;e.autoClear=!1;for(let e=1;eYr&&console.warn(`sigmaRadians, ${i}, is too large and will clip, as it requested ${p} samples when the maximum is set to 20`);const m=[];let g=0;for(let t=0;tv-4?r-v+4:0),4*(this._cubeSize-y),3*y,2*y),s.setRenderTarget(e),s.render(l,qr)}}function ei(t,e,n){const r=new ae(t,e,n);return r.texture.mapping=B,r.texture.name="PMREM.cubeUv",r.scissorTest=!0,r}function ni(t,e,n,r,i){t.viewport.set(e,n,r,i),t.scissor.set(e,n,r,i)}function ri(){return new yr({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:oi(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\n\t\t\t#include \n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 outputDirection = normalize( vOutputDirection );\n\t\t\t\tvec2 uv = equirectUv( outputDirection );\n\n\t\t\t\tgl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 );\n\n\t\t\t}\n\t\t",blending:0,depthTest:!1,depthWrite:!1})}function ii(){return new yr({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:oi(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tuniform float flipEnvMap;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform samplerCube envMap;\n\n\t\t\tvoid main() {\n\n\t\t\t\tgl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) );\n\n\t\t\t}\n\t\t",blending:0,depthTest:!1,depthWrite:!1})}function oi(){return"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute float faceIndex;\n\n\t\tvarying vec3 vOutputDirection;\n\n\t\t// RH coordinate system; PMREM face-indexing convention\n\t\tvec3 getDirection( vec2 uv, float face ) {\n\n\t\t\tuv = 2.0 * uv - 1.0;\n\n\t\t\tvec3 direction = vec3( uv, 1.0 );\n\n\t\t\tif ( face == 0.0 ) {\n\n\t\t\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\n\t\t\t} else if ( face == 1.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\n\t\t\t} else if ( face == 2.0 ) {\n\n\t\t\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\n\t\t\t} else if ( face == 3.0 ) {\n\n\t\t\t\tdirection = direction.zyx;\n\t\t\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\n\t\t\t} else if ( face == 4.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\n\t\t\t} else if ( face == 5.0 ) {\n\n\t\t\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\n\t\t\t}\n\n\t\t\treturn direction;\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvOutputDirection = getDirection( uv, faceIndex );\n\t\t\tgl_Position = vec4( position, 1.0 );\n\n\t\t}\n\t"}function ai(t){let e=new WeakMap,n=null;function r(t){const n=t.target;n.removeEventListener("dispose",r);const i=e.get(n);void 0!==i&&(e.delete(n),i.dispose())}return{get:function(i){if(i&&i.isTexture){const o=i.mapping,a=o===z||o===F,s=o===R||o===D;if(a||s){if(i.isRenderTargetTexture&&!0===i.needsPMREMUpdate){i.needsPMREMUpdate=!1;let r=e.get(i);return null===n&&(n=new ti(t)),r=a?n.fromEquirectangular(i,r):n.fromCubemap(i,r),e.set(i,r),r.texture}if(e.has(i))return e.get(i).texture;{const o=i.image;if(a&&o&&o.height>0||s&&o&&function(t){let e=0;const n=6;for(let r=0;re.maxTextureSize&&(A=Math.ceil(E/e.maxTextureSize),E=e.maxTextureSize);const M=new Float32Array(E*A*4*f),C=new se(M,E,A,f);C.type=Z,C.needsUpdate=!0;const T=4*S;for(let I=0;I0)return t;const i=e*n;let o=bi[i];if(void 0===o&&(o=new Float32Array(i),bi[i]=o),0!==e){r.toArray(o,0);for(let r=1,i=0;r!==e;++r)i+=n,t[r].toArray(o,i)}return o}function Ai(t,e){if(t.length!==e.length)return!1;for(let n=0,r=t.length;n":" "} ${i}: ${n[t]}`)}return r.join("\n")}(t.getShaderSource(e),r)}return i}function So(t,e){const n=function(t){switch(t){case vt:return["Linear","( value )"];case yt:return["sRGB","( value )"];default:return console.warn("THREE.WebGLProgram: Unsupported encoding:",t),["Linear","( value )"]}}(e);return"vec4 "+t+"( vec4 value ) { return LinearTo"+n[0]+n[1]+"; }"}function Eo(t,e){let n;switch(e){case I:n="Linear";break;case N:n="Reinhard";break;case P:n="OptimizedCineon";break;case O:n="ACESFilmic";break;case L:n="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",e),n="Linear"}return"vec3 "+t+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}function Ao(t){return""!==t}function Mo(t,e){const n=e.numSpotLightShadows+e.numSpotLightMaps-e.numSpotLightShadowsWithMaps;return t.replace(/NUM_DIR_LIGHTS/g,e.numDirLights).replace(/NUM_SPOT_LIGHTS/g,e.numSpotLights).replace(/NUM_SPOT_LIGHT_MAPS/g,e.numSpotLightMaps).replace(/NUM_SPOT_LIGHT_COORDS/g,n).replace(/NUM_RECT_AREA_LIGHTS/g,e.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,e.numPointLights).replace(/NUM_HEMI_LIGHTS/g,e.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g,e.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS/g,e.numSpotLightShadowsWithMaps).replace(/NUM_SPOT_LIGHT_SHADOWS/g,e.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,e.numPointLightShadows)}function Co(t,e){return t.replace(/NUM_CLIPPING_PLANES/g,e.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,e.numClippingPlanes-e.numClipIntersection)}const To=/^[ \t]*#include +<([\w\d./]+)>/gm;function ko(t){return t.replace(To,Io)}function Io(t,e){const n=Rr[e];if(void 0===n)throw new Error("Can not resolve #include <"+e+">");return ko(n)}const No=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function Po(t){return t.replace(No,Oo)}function Oo(t,e,n,r){let i="";for(let t=parseInt(e);t0&&(b+="\n"),x=[g,v].filter(Ao).join("\n"),x.length>0&&(x+="\n")):(b=[Lo(n),"#define SHADER_NAME "+n.shaderName,v,n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+f:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.displacementMap?"#define USE_DISPLACEMENTMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.mapUv?"#define MAP_UV "+n.mapUv:"",n.alphaMapUv?"#define ALPHAMAP_UV "+n.alphaMapUv:"",n.lightMapUv?"#define LIGHTMAP_UV "+n.lightMapUv:"",n.aoMapUv?"#define AOMAP_UV "+n.aoMapUv:"",n.emissiveMapUv?"#define EMISSIVEMAP_UV "+n.emissiveMapUv:"",n.bumpMapUv?"#define BUMPMAP_UV "+n.bumpMapUv:"",n.normalMapUv?"#define NORMALMAP_UV "+n.normalMapUv:"",n.displacementMapUv?"#define DISPLACEMENTMAP_UV "+n.displacementMapUv:"",n.metalnessMapUv?"#define METALNESSMAP_UV "+n.metalnessMapUv:"",n.roughnessMapUv?"#define ROUGHNESSMAP_UV "+n.roughnessMapUv:"",n.clearcoatMapUv?"#define CLEARCOATMAP_UV "+n.clearcoatMapUv:"",n.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+n.clearcoatNormalMapUv:"",n.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+n.clearcoatRoughnessMapUv:"",n.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+n.iridescenceMapUv:"",n.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+n.iridescenceThicknessMapUv:"",n.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+n.sheenColorMapUv:"",n.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+n.sheenRoughnessMapUv:"",n.specularMapUv?"#define SPECULARMAP_UV "+n.specularMapUv:"",n.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+n.specularColorMapUv:"",n.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+n.specularIntensityMapUv:"",n.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+n.transmissionMapUv:"",n.thicknessMapUv?"#define THICKNESSMAP_UV "+n.thicknessMapUv:"",n.vertexTangents?"#define USE_TANGENT":"",n.vertexColors?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUvs2?"#define USE_UV2":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&!1===n.flatShading?"#define USE_MORPHNORMALS":"",n.morphColors&&n.isWebGL2?"#define USE_MORPHCOLORS":"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE":"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE_STRIDE "+n.morphTextureStride:"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_COUNT "+n.morphTargetsCount:"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+h:"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING","\tattribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR","\tattribute vec3 instanceColor;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_TANGENT","\tattribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )","\tattribute vec4 color;","#elif defined( USE_COLOR )","\tattribute vec3 color;","#endif","#if ( defined( USE_MORPHTARGETS ) && ! defined( MORPHTARGETS_TEXTURE ) )","\tattribute vec3 morphTarget0;","\tattribute vec3 morphTarget1;","\tattribute vec3 morphTarget2;","\tattribute vec3 morphTarget3;","\t#ifdef USE_MORPHNORMALS","\t\tattribute vec3 morphNormal0;","\t\tattribute vec3 morphNormal1;","\t\tattribute vec3 morphNormal2;","\t\tattribute vec3 morphNormal3;","\t#else","\t\tattribute vec3 morphTarget4;","\t\tattribute vec3 morphTarget5;","\t\tattribute vec3 morphTarget6;","\t\tattribute vec3 morphTarget7;","\t#endif","#endif","#ifdef USE_SKINNING","\tattribute vec4 skinIndex;","\tattribute vec4 skinWeight;","#endif","\n"].filter(Ao).join("\n"),x=[g,Lo(n),"#define SHADER_NAME "+n.shaderName,v,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+d:"",n.envMap?"#define "+f:"",n.envMap?"#define "+p:"",m?"#define CUBEUV_TEXEL_WIDTH "+m.texelWidth:"",m?"#define CUBEUV_TEXEL_HEIGHT "+m.texelHeight:"",m?"#define CUBEUV_MAX_MIP "+m.maxMip+".0":"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.clearcoat?"#define USE_CLEARCOAT":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescence?"#define USE_IRIDESCENCE":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaTest?"#define USE_ALPHATEST":"",n.sheen?"#define USE_SHEEN":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",n.vertexTangents?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUvs2?"#define USE_UV2":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+h:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.useLegacyLights?"#define LEGACY_LIGHTS":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",n.toneMapping!==k?"#define TONE_MAPPING":"",n.toneMapping!==k?Rr.tonemapping_pars_fragment:"",n.toneMapping!==k?Eo("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",n.opaque?"#define OPAQUE":"",Rr.encodings_pars_fragment,So("linearToOutputTexel",n.outputEncoding),n.useDepthPacking?"#define DEPTH_PACKING "+n.depthPacking:"","\n"].filter(Ao).join("\n")),l=ko(l),l=Mo(l,n),l=Co(l,n),c=ko(c),c=Mo(c,n),c=Co(c,n),l=Po(l),c=Po(c),n.isWebGL2&&!0!==n.isRawShaderMaterial&&(w="#version 300 es\n",b=["precision mediump sampler2DArray;","#define attribute in","#define varying out","#define texture2D texture"].join("\n")+"\n"+b,x=["#define varying in",n.glslVersion===Et?"":"layout(location = 0) out highp vec4 pc_fragColor;",n.glslVersion===Et?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join("\n")+"\n"+x);const _=w+x+c,S=xo(i,35633,w+b+l),E=xo(i,35632,_);if(i.attachShader(y,S),i.attachShader(y,E),void 0!==n.index0AttributeName?i.bindAttribLocation(y,0,n.index0AttributeName):!0===n.morphTargets&&i.bindAttribLocation(y,0,"position"),i.linkProgram(y),t.debug.checkShaderErrors){const e=i.getProgramInfoLog(y).trim(),n=i.getShaderInfoLog(S).trim(),r=i.getShaderInfoLog(E).trim();let o=!0,a=!0;if(!1===i.getProgramParameter(y,35714))if(o=!1,"function"==typeof t.debug.onShaderError)t.debug.onShaderError(i,y,S,E);else{const t=_o(i,S,"vertex"),n=_o(i,E,"fragment");console.error("THREE.WebGLProgram: Shader Error "+i.getError()+" - VALIDATE_STATUS "+i.getProgramParameter(y,35715)+"\n\nProgram Info Log: "+e+"\n"+t+"\n"+n)}else""!==e?console.warn("THREE.WebGLProgram: Program Info Log:",e):""!==n&&""!==r||(a=!1);a&&(this.diagnostics={runnable:o,programLog:e,vertexShader:{log:n,prefix:b},fragmentShader:{log:r,prefix:x}})}let A,I;return i.deleteShader(S),i.deleteShader(E),this.getUniforms=function(){return void 0===A&&(A=new bo(i,y)),A},this.getAttributes=function(){return void 0===I&&(I=function(t,e){const n={},r=t.getProgramParameter(e,35721);for(let i=0;i0,$=o.iridescence>0,K=o.sheen>0,Z=o.transmission>0,Q=q&&!!o.clearcoatMap,J=q&&!!o.clearcoatNormalMap,tt=q&&!!o.clearcoatRoughnessMap,et=$&&!!o.iridescenceMap,nt=$&&!!o.iridescenceThicknessMap,rt=K&&!!o.sheenColorMap,it=K&&!!o.sheenRoughnessMap,ot=!!o.specularMap,at=!!o.specularColorMap,st=!!o.specularIntensityMap,ut=Z&&!!o.transmissionMap,lt=Z&&!!o.thicknessMap,ct=!!o.gradientMap,ht=!!o.alphaMap,dt=o.alphaTest>0,ft=!!o.extensions,pt=!!w.attributes.uv2;return{isWebGL2:d,shaderID:A,shaderName:o.type,vertexShader:T,fragmentShader:I,defines:o.defines,customVertexShaderID:N,customFragmentShaderID:P,isRawShaderMaterial:!0===o.isRawShaderMaterial,glslVersion:o.glslVersion,precision:m,instancing:R,instancingColor:R&&null!==b.instanceColor,supportsVertexTextures:p,outputEncoding:null===L?t.outputEncoding:!0===L.isXRRenderTarget?L.texture.encoding:vt,map:D,matcap:z,envMap:F,envMapMode:F&&S.mapping,envMapCubeUVHeight:E,aoMap:U,lightMap:j,bumpMap:V,normalMap:H,displacementMap:p&&G,emissiveMap:W,normalMapObjectSpace:H&&1===o.normalMapType,normalMapTangentSpace:H&&0===o.normalMapType,decodeVideoTexture:D&&!0===o.map.isVideoTexture&&o.map.encoding===yt,metalnessMap:X,roughnessMap:Y,clearcoat:q,clearcoatMap:Q,clearcoatNormalMap:J,clearcoatRoughnessMap:tt,iridescence:$,iridescenceMap:et,iridescenceThicknessMap:nt,sheen:K,sheenColorMap:rt,sheenRoughnessMap:it,specularMap:ot,specularColorMap:at,specularIntensityMap:st,transmission:Z,transmissionMap:ut,thicknessMap:lt,gradientMap:ct,opaque:!1===o.transparent&&1===o.blending,alphaMap:ht,alphaTest:dt,combine:o.combine,mapUv:D&&v(o.map.channel),aoMapUv:U&&v(o.aoMap.channel),lightMapUv:j&&v(o.lightMap.channel),bumpMapUv:V&&v(o.bumpMap.channel),normalMapUv:H&&v(o.normalMap.channel),displacementMapUv:G&&v(o.displacementMap.channel),emissiveMapUv:W&&v(o.emissiveMap.channel),metalnessMapUv:X&&v(o.metalnessMap.channel),roughnessMapUv:Y&&v(o.roughnessMap.channel),clearcoatMapUv:Q&&v(o.clearcoatMap.channel),clearcoatNormalMapUv:J&&v(o.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:tt&&v(o.clearcoatRoughnessMap.channel),iridescenceMapUv:et&&v(o.iridescenceMap.channel),iridescenceThicknessMapUv:nt&&v(o.iridescenceThicknessMap.channel),sheenColorMapUv:rt&&v(o.sheenColorMap.channel),sheenRoughnessMapUv:it&&v(o.sheenRoughnessMap.channel),specularMapUv:ot&&v(o.specularMap.channel),specularColorMapUv:at&&v(o.specularColorMap.channel),specularIntensityMapUv:st&&v(o.specularIntensityMap.channel),transmissionMapUv:ut&&v(o.transmissionMap.channel),thicknessMapUv:lt&&v(o.thicknessMap.channel),alphaMapUv:ht&&v(o.alphaMap.channel),vertexTangents:H&&!!w.attributes.tangent,vertexColors:o.vertexColors,vertexAlphas:!0===o.vertexColors&&!!w.attributes.color&&4===w.attributes.color.itemSize,vertexUvs2:pt,pointsUvs:!0===b.isPoints&&!!w.attributes.uv&&(D||ht),fog:!!x,useFog:!0===o.fog,fogExp2:x&&x.isFogExp2,flatShading:!0===o.flatShading,sizeAttenuation:!0===o.sizeAttenuation,logarithmicDepthBuffer:f,skinning:!0===b.isSkinnedMesh,morphTargets:void 0!==w.morphAttributes.position,morphNormals:void 0!==w.morphAttributes.normal,morphColors:void 0!==w.morphAttributes.color,morphTargetsCount:C,morphTextureStride:O,numDirLights:s.directional.length,numPointLights:s.point.length,numSpotLights:s.spot.length,numSpotLightMaps:s.spotLightMap.length,numRectAreaLights:s.rectArea.length,numHemiLights:s.hemi.length,numDirLightShadows:s.directionalShadowMap.length,numPointLightShadows:s.pointShadowMap.length,numSpotLightShadows:s.spotShadowMap.length,numSpotLightShadowsWithMaps:s.numSpotLightShadowsWithMaps,numClippingPlanes:a.numPlanes,numClipIntersection:a.numIntersection,dithering:o.dithering,shadowMapEnabled:t.shadowMap.enabled&&l.length>0,shadowMapType:t.shadowMap.type,toneMapping:o.toneMapped?t.toneMapping:k,useLegacyLights:t.useLegacyLights,premultipliedAlpha:o.premultipliedAlpha,doubleSided:o.side===h,flipSided:o.side===c,useDepthPacking:o.depthPacking>=0,depthPacking:o.depthPacking||0,index0AttributeName:o.index0AttributeName,extensionDerivatives:ft&&!0===o.extensions.derivatives,extensionFragDepth:ft&&!0===o.extensions.fragDepth,extensionDrawBuffers:ft&&!0===o.extensions.drawBuffers,extensionShaderTextureLOD:ft&&!0===o.extensions.shaderTextureLOD,rendererExtensionFragDepth:d||r.has("EXT_frag_depth"),rendererExtensionDrawBuffers:d||r.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:d||r.has("EXT_shader_texture_lod"),customProgramCacheKey:o.customProgramCacheKey()}},getProgramCacheKey:function(e){const n=[];if(e.shaderID?n.push(e.shaderID):(n.push(e.customVertexShaderID),n.push(e.customFragmentShaderID)),void 0!==e.defines)for(const t in e.defines)n.push(t),n.push(e.defines[t]);return!1===e.isRawShaderMaterial&&(!function(t,e){t.push(e.precision),t.push(e.outputEncoding),t.push(e.envMapMode),t.push(e.envMapCubeUVHeight),t.push(e.mapUv),t.push(e.alphaMapUv),t.push(e.lightMapUv),t.push(e.aoMapUv),t.push(e.bumpMapUv),t.push(e.normalMapUv),t.push(e.displacementMapUv),t.push(e.emissiveMapUv),t.push(e.metalnessMapUv),t.push(e.roughnessMapUv),t.push(e.clearcoatMapUv),t.push(e.clearcoatNormalMapUv),t.push(e.clearcoatRoughnessMapUv),t.push(e.iridescenceMapUv),t.push(e.iridescenceThicknessMapUv),t.push(e.sheenColorMapUv),t.push(e.sheenRoughnessMapUv),t.push(e.specularMapUv),t.push(e.specularColorMapUv),t.push(e.specularIntensityMapUv),t.push(e.transmissionMapUv),t.push(e.thicknessMapUv),t.push(e.combine),t.push(e.fogExp2),t.push(e.sizeAttenuation),t.push(e.morphTargetsCount),t.push(e.morphAttributeCount),t.push(e.numDirLights),t.push(e.numPointLights),t.push(e.numSpotLights),t.push(e.numSpotLightMaps),t.push(e.numHemiLights),t.push(e.numRectAreaLights),t.push(e.numDirLightShadows),t.push(e.numPointLightShadows),t.push(e.numSpotLightShadows),t.push(e.numSpotLightShadowsWithMaps),t.push(e.shadowMapType),t.push(e.toneMapping),t.push(e.numClippingPlanes),t.push(e.numClipIntersection),t.push(e.depthPacking)}(n,e),function(t,e){s.disableAll(),e.isWebGL2&&s.enable(0);e.supportsVertexTextures&&s.enable(1);e.instancing&&s.enable(2);e.instancingColor&&s.enable(3);e.matcap&&s.enable(4);e.envMap&&s.enable(5);e.normalMapObjectSpace&&s.enable(6);e.normalMapTangentSpace&&s.enable(7);e.clearcoat&&s.enable(8);e.iridescence&&s.enable(9);e.alphaTest&&s.enable(10);e.vertexColors&&s.enable(11);e.vertexAlphas&&s.enable(12);e.vertexUvs2&&s.enable(13);e.vertexTangents&&s.enable(14);t.push(s.mask),s.disableAll(),e.fog&&s.enable(0);e.useFog&&s.enable(1);e.flatShading&&s.enable(2);e.logarithmicDepthBuffer&&s.enable(3);e.skinning&&s.enable(4);e.morphTargets&&s.enable(5);e.morphNormals&&s.enable(6);e.morphColors&&s.enable(7);e.premultipliedAlpha&&s.enable(8);e.shadowMapEnabled&&s.enable(9);e.useLegacyLights&&s.enable(10);e.doubleSided&&s.enable(11);e.flipSided&&s.enable(12);e.useDepthPacking&&s.enable(13);e.dithering&&s.enable(14);e.transmission&&s.enable(15);e.sheen&&s.enable(16);e.decodeVideoTexture&&s.enable(17);e.opaque&&s.enable(18);e.pointsUvs&&s.enable(19);t.push(s.mask)}(n,e),n.push(t.outputEncoding)),n.push(e.customProgramCacheKey),n.join()},getUniforms:function(t){const e=g[t.type];let n;if(e){const t=zr[e];n=vr.clone(t.uniforms)}else n=t.uniforms;return n},acquireProgram:function(e,n){let r;for(let t=0,e=l.length;t0?r.push(c):!0===a.transparent?i.push(c):n.push(c)},unshift:function(t,e,a,s,u,l){const c=o(t,e,a,s,u,l);a.transmission>0?r.unshift(c):!0===a.transparent?i.unshift(c):n.unshift(c)},finish:function(){for(let n=e,r=t.length;n1&&n.sort(t||jo),r.length>1&&r.sort(e||Vo),i.length>1&&i.sort(e||Vo)}}}function Go(){let t=new WeakMap;return{get:function(e,n){const r=t.get(e);let i;return void 0===r?(i=new Ho,t.set(e,[i])):n>=r.length?(i=new Ho,r.push(i)):i=r[n],i},dispose:function(){t=new WeakMap}}}function Wo(){const t={};return{get:function(e){if(void 0!==t[e.id])return t[e.id];let n;switch(e.type){case"DirectionalLight":n={direction:new ce,color:new Nn};break;case"SpotLight":n={position:new ce,direction:new ce,color:new Nn,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new ce,color:new Nn,distance:0,decay:0};break;case"HemisphereLight":n={direction:new ce,skyColor:new Nn,groundColor:new Nn};break;case"RectAreaLight":n={color:new Nn,position:new ce,halfWidth:new ce,halfHeight:new ce}}return t[e.id]=n,n}}}let Xo=0;function Yo(t,e){return(e.castShadow?2:0)-(t.castShadow?2:0)+(e.map?1:0)-(t.map?1:0)}function qo(t,e){const n=new Wo,r=function(){const t={};return{get:function(e){if(void 0!==t[e.id])return t[e.id];let n;switch(e.type){case"DirectionalLight":case"SpotLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new jt};break;case"PointLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new jt,shadowCameraNear:1,shadowCameraFar:1e3}}return t[e.id]=n,n}}}(),i={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0};for(let t=0;t<9;t++)i.probe.push(new ce);const o=new ce,a=new Ue,s=new Ue;return{setup:function(o,a){let s=0,u=0,l=0;for(let t=0;t<9;t++)i.probe[t].set(0,0,0);let c=0,h=0,d=0,f=0,p=0,m=0,g=0,v=0,y=0,b=0;o.sort(Yo);const x=!0===a?Math.PI:1;for(let t=0,e=o.length;t0&&(e.isWebGL2||!0===t.has("OES_texture_float_linear")?(i.rectAreaLTC1=Dr.LTC_FLOAT_1,i.rectAreaLTC2=Dr.LTC_FLOAT_2):!0===t.has("OES_texture_half_float_linear")?(i.rectAreaLTC1=Dr.LTC_HALF_1,i.rectAreaLTC2=Dr.LTC_HALF_2):console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),i.ambient[0]=s,i.ambient[1]=u,i.ambient[2]=l;const w=i.hash;w.directionalLength===c&&w.pointLength===h&&w.spotLength===d&&w.rectAreaLength===f&&w.hemiLength===p&&w.numDirectionalShadows===m&&w.numPointShadows===g&&w.numSpotShadows===v&&w.numSpotMaps===y||(i.directional.length=c,i.spot.length=d,i.rectArea.length=f,i.point.length=h,i.hemi.length=p,i.directionalShadow.length=m,i.directionalShadowMap.length=m,i.pointShadow.length=g,i.pointShadowMap.length=g,i.spotShadow.length=v,i.spotShadowMap.length=v,i.directionalShadowMatrix.length=m,i.pointShadowMatrix.length=g,i.spotLightMatrix.length=v+y-b,i.spotLightMap.length=y,i.numSpotLightShadowsWithMaps=b,w.directionalLength=c,w.pointLength=h,w.spotLength=d,w.rectAreaLength=f,w.hemiLength=p,w.numDirectionalShadows=m,w.numPointShadows=g,w.numSpotShadows=v,w.numSpotMaps=y,i.version=Xo++)},setupView:function(t,e){let n=0,r=0,u=0,l=0,c=0;const h=e.matrixWorldInverse;for(let e=0,d=t.length;e=o.length?(a=new $o(t,e),o.push(a)):a=o[i],a},dispose:function(){n=new WeakMap}}}class Zo extends Mn{constructor(t){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=3200,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(t)}copy(t){return super.copy(t),this.depthPacking=t.depthPacking,this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this}}class Qo extends Mn{constructor(t){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(t)}copy(t){return super.copy(t),this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this}}function Jo(t,e,n){let r=new Nr;const i=new jt,o=new jt,s=new oe,d=new Zo({depthPacking:3201}),f=new Qo,p={},m=n.maxTextureSize,g={[l]:c,[c]:l,[h]:h},v=new yr({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new jt},radius:{value:4}},vertexShader:"void main() {\n\tgl_Position = vec4( position, 1.0 );\n}",fragmentShader:"uniform sampler2D shadow_pass;\nuniform vec2 resolution;\nuniform float radius;\n#include \nvoid main() {\n\tconst float samples = float( VSM_SAMPLES );\n\tfloat mean = 0.0;\n\tfloat squared_mean = 0.0;\n\tfloat uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 );\n\tfloat uvStart = samples <= 1.0 ? 0.0 : - 1.0;\n\tfor ( float i = 0.0; i < samples; i ++ ) {\n\t\tfloat uvOffset = uvStart + i * uvStride;\n\t\t#ifdef HORIZONTAL_PASS\n\t\t\tvec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) );\n\t\t\tmean += distribution.x;\n\t\t\tsquared_mean += distribution.y * distribution.y + distribution.x * distribution.x;\n\t\t#else\n\t\t\tfloat depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) );\n\t\t\tmean += depth;\n\t\t\tsquared_mean += depth * depth;\n\t\t#endif\n\t}\n\tmean = mean / samples;\n\tsquared_mean = squared_mean / samples;\n\tfloat std_dev = sqrt( squared_mean - mean * mean );\n\tgl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );\n}"}),y=v.clone();y.defines.HORIZONTAL_PASS=1;const b=new Yn;b.setAttribute("position",new Dn(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const x=new hr(b,v),w=this;function _(n,r){const o=e.update(x);v.defines.VSM_SAMPLES!==n.blurSamples&&(v.defines.VSM_SAMPLES=n.blurSamples,y.defines.VSM_SAMPLES=n.blurSamples,v.needsUpdate=!0,y.needsUpdate=!0),null===n.mapPass&&(n.mapPass=new ae(i.x,i.y)),v.uniforms.shadow_pass.value=n.map.texture,v.uniforms.resolution.value=n.mapSize,v.uniforms.radius.value=n.radius,t.setRenderTarget(n.mapPass),t.clear(),t.renderBufferDirect(r,null,o,v,x,null),y.uniforms.shadow_pass.value=n.mapPass.texture,y.uniforms.resolution.value=n.mapSize,y.uniforms.radius.value=n.radius,t.setRenderTarget(n.map),t.clear(),t.renderBufferDirect(r,null,o,y,x,null)}function S(e,n,r,i){let o=null;const a=!0===r.isPointLight?e.customDistanceMaterial:e.customDepthMaterial;if(void 0!==a)o=a;else if(o=!0===r.isPointLight?f:d,t.localClippingEnabled&&!0===n.clipShadows&&Array.isArray(n.clippingPlanes)&&0!==n.clippingPlanes.length||n.displacementMap&&0!==n.displacementScale||n.alphaMap&&n.alphaTest>0||n.map&&n.alphaTest>0){const t=o.uuid,e=n.uuid;let r=p[t];void 0===r&&(r={},p[t]=r);let i=r[e];void 0===i&&(i=o.clone(),r[e]=i),o=i}if(o.visible=n.visible,o.wireframe=n.wireframe,o.side=i===u?null!==n.shadowSide?n.shadowSide:n.side:null!==n.shadowSide?n.shadowSide:g[n.side],o.alphaMap=n.alphaMap,o.alphaTest=n.alphaTest,o.map=n.map,o.clipShadows=n.clipShadows,o.clippingPlanes=n.clippingPlanes,o.clipIntersection=n.clipIntersection,o.displacementMap=n.displacementMap,o.displacementScale=n.displacementScale,o.displacementBias=n.displacementBias,o.wireframeLinewidth=n.wireframeLinewidth,o.linewidth=n.linewidth,!0===r.isPointLight&&!0===o.isMeshDistanceMaterial){t.properties.get(o).light=r}return o}function E(n,i,o,a,s){if(!1===n.visible)return;if(n.layers.test(i.layers)&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&s===u)&&(!n.frustumCulled||r.intersectsObject(n))){n.modelViewMatrix.multiplyMatrices(o.matrixWorldInverse,n.matrixWorld);const r=e.update(n),i=n.material;if(Array.isArray(i)){const e=r.groups;for(let u=0,l=e.length;um||i.y>m)&&(i.x>m&&(o.x=Math.floor(m/f.x),i.x=o.x*f.x,h.mapSize.x=o.x),i.y>m&&(o.y=Math.floor(m/f.y),i.y=o.y*f.y,h.mapSize.y=o.y)),null===h.map){const t=this.type!==u?{minFilter:H,magFilter:H}:{};h.map=new ae(i.x,i.y,t),h.map.texture.name=c.name+".shadowMap",h.camera.updateProjectionMatrix()}t.setRenderTarget(h.map),t.clear();const p=h.getViewportCount();for(let t=0;t=1):-1!==Y.indexOf("OpenGL ES")&&(X=parseFloat(/^OpenGL ES (\d)/.exec(Y)[1]),W=X>=2);let q=null,$={};const K=t.getParameter(3088),Z=t.getParameter(2978),Q=(new oe).fromArray(K),J=(new oe).fromArray(Z);function tt(e,n,r){const i=new Uint8Array(4),o=t.createTexture();t.bindTexture(e,o),t.texParameteri(e,10241,9728),t.texParameteri(e,10240,9728);for(let e=0;er||t.height>r)&&(i=r/Math.max(t.width,t.height)),i<1||!0===e){if("undefined"!=typeof HTMLImageElement&&t instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap){const r=e?zt:Math.floor,o=r(i*t.width),a=r(i*t.height);void 0===m&&(m=y(o,a));const s=n?y(o,a):m;s.width=o,s.height=a;return s.getContext("2d").drawImage(t,0,0,o,a),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+t.width+"x"+t.height+") to ("+o+"x"+a+")."),s}return"data"in t&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+t.width+"x"+t.height+")."),t}return t}function x(t){return Rt(t.width)&&Rt(t.height)}function w(t,e){return t.generateMipmaps&&e&&t.minFilter!==H&&t.minFilter!==X}function _(e){t.generateMipmap(e)}function S(n,r,i,o,a=!1){if(!1===s)return r;if(null!==n){if(void 0!==t[n])return t[n];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+n+"'")}let u=r;return 6403===r&&(5126===i&&(u=33326),5131===i&&(u=33325),5121===i&&(u=33321)),33319===r&&(5126===i&&(u=33328),5131===i&&(u=33327),5121===i&&(u=33323)),6408===r&&(5126===i&&(u=34836),5131===i&&(u=34842),5121===i&&(u=o===yt&&!1===a?35907:32856),32819===i&&(u=32854),32820===i&&(u=32855)),33325!==u&&33326!==u&&33327!==u&&33328!==u&&34842!==u&&34836!==u||e.get("EXT_color_buffer_float"),u}function E(t,e,n){return!0===w(t,n)||t.isFramebufferTexture&&t.minFilter!==H&&t.minFilter!==X?Math.log2(Math.max(e.width,e.height))+1:void 0!==t.mipmaps&&t.mipmaps.length>0?t.mipmaps.length:t.isCompressedTexture&&Array.isArray(t.image)?e.mipmaps.length:1}function A(t){return t===H||t===G||t===W?9728:9729}function M(t){const e=t.target;e.removeEventListener("dispose",M),function(t){const e=r.get(t);if(void 0===e.__webglInit)return;const n=t.source,i=g.get(n);if(i){const r=i[e.__cacheKey];r.usedTimes--,0===r.usedTimes&&T(t),0===Object.keys(i).length&&g.delete(n)}r.remove(t)}(e),e.isVideoTexture&&p.delete(e)}function C(e){const n=e.target;n.removeEventListener("dispose",C),function(e){const n=e.texture,i=r.get(e),o=r.get(n);void 0!==o.__webglTexture&&(t.deleteTexture(o.__webglTexture),a.memory.textures--);e.depthTexture&&e.depthTexture.dispose();if(e.isWebGLCubeRenderTarget)for(let e=0;e<6;e++)t.deleteFramebuffer(i.__webglFramebuffer[e]),i.__webglDepthbuffer&&t.deleteRenderbuffer(i.__webglDepthbuffer[e]);else{if(t.deleteFramebuffer(i.__webglFramebuffer),i.__webglDepthbuffer&&t.deleteRenderbuffer(i.__webglDepthbuffer),i.__webglMultisampledFramebuffer&&t.deleteFramebuffer(i.__webglMultisampledFramebuffer),i.__webglColorRenderbuffer)for(let e=0;e0&&i.__version!==t.version){const n=t.image;if(null===n)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else{if(!1!==n.complete)return void R(i,t,e);console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete")}}n.bindTexture(3553,i.__webglTexture,33984+e)}const N={[U]:10497,[j]:33071,[V]:33648},P={[H]:9728,[G]:9984,[W]:9986,[X]:9729,[Y]:9985,[q]:9987};function O(n,o,a){if(a?(t.texParameteri(n,10242,N[o.wrapS]),t.texParameteri(n,10243,N[o.wrapT]),32879!==n&&35866!==n||t.texParameteri(n,32882,N[o.wrapR]),t.texParameteri(n,10240,P[o.magFilter]),t.texParameteri(n,10241,P[o.minFilter])):(t.texParameteri(n,10242,33071),t.texParameteri(n,10243,33071),32879!==n&&35866!==n||t.texParameteri(n,32882,33071),o.wrapS===j&&o.wrapT===j||console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),t.texParameteri(n,10240,A(o.magFilter)),t.texParameteri(n,10241,A(o.minFilter)),o.minFilter!==H&&o.minFilter!==X&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),!0===e.has("EXT_texture_filter_anisotropic")){const a=e.get("EXT_texture_filter_anisotropic");if(o.magFilter===H)return;if(o.minFilter!==W&&o.minFilter!==q)return;if(o.type===Z&&!1===e.has("OES_texture_float_linear"))return;if(!1===s&&o.type===Q&&!1===e.has("OES_texture_half_float_linear"))return;(o.anisotropy>1||r.get(o).__currentAnisotropy)&&(t.texParameterf(n,a.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(o.anisotropy,i.getMaxAnisotropy())),r.get(o).__currentAnisotropy=o.anisotropy)}}function L(e,n){let r=!1;void 0===e.__webglInit&&(e.__webglInit=!0,n.addEventListener("dispose",M));const i=n.source;let o=g.get(i);void 0===o&&(o={},g.set(i,o));const s=function(t){const e=[];return e.push(t.wrapS),e.push(t.wrapT),e.push(t.wrapR||0),e.push(t.magFilter),e.push(t.minFilter),e.push(t.anisotropy),e.push(t.internalFormat),e.push(t.format),e.push(t.type),e.push(t.generateMipmaps),e.push(t.premultiplyAlpha),e.push(t.flipY),e.push(t.unpackAlignment),e.push(t.encoding),e.join()}(n);if(s!==e.__cacheKey){void 0===o[s]&&(o[s]={texture:t.createTexture(),usedTimes:0},a.memory.textures++,r=!0),o[s].usedTimes++;const i=o[e.__cacheKey];void 0!==i&&(o[e.__cacheKey].usedTimes--,0===i.usedTimes&&T(n)),e.__cacheKey=s,e.__webglTexture=o[s].texture}return r}function R(e,i,a){let u=3553;(i.isDataArrayTexture||i.isCompressedArrayTexture)&&(u=35866),i.isData3DTexture&&(u=32879);const l=L(e,i),h=i.source;n.bindTexture(u,e.__webglTexture,33984+a);const d=r.get(h);if(h.version!==d.__version||!0===l){n.activeTexture(33984+a),t.pixelStorei(37440,i.flipY),t.pixelStorei(37441,i.premultiplyAlpha),t.pixelStorei(3317,i.unpackAlignment),t.pixelStorei(37443,0);const e=function(t){return!s&&(t.wrapS!==j||t.wrapT!==j||t.minFilter!==H&&t.minFilter!==X)}(i)&&!1===x(i.image);let r=b(i.image,e,!1,c);r=it(i,r);const f=x(r)||s,p=o.convert(i.format,i.encoding);let m,g=o.convert(i.type),v=S(i.internalFormat,p,g,i.encoding,i.isVideoTexture);O(u,i,f);const y=i.mipmaps,A=s&&!0!==i.isVideoTexture,M=void 0===d.__version||!0===l,C=E(i,r,f);if(i.isDepthTexture)v=6402,s?v=i.type===Z?36012:i.type===K?33190:i.type===J?35056:33189:i.type===Z&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),i.format===et&&6402===v&&1012!==i.type&&i.type!==K&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),i.type=K,g=o.convert(i.type)),i.format===nt&&6402===v&&(v=34041,i.type!==J&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),i.type=J,g=o.convert(i.type))),M&&(A?n.texStorage2D(3553,1,v,r.width,r.height):n.texImage2D(3553,0,v,r.width,r.height,0,p,g,null));else if(i.isDataTexture)if(y.length>0&&f){A&&M&&n.texStorage2D(3553,C,v,y[0].width,y[0].height);for(let t=0,e=y.length;t>=1,e>>=1}}else if(y.length>0&&f){A&&M&&n.texStorage2D(3553,C,v,y[0].width,y[0].height);for(let t=0,e=y.length;t=34069&&u<=34074)&&t.framebufferTexture2D(36160,s,u,r.get(a).__webglTexture,0),n.bindFramebuffer(36160,null)}function z(e,n,r){if(t.bindRenderbuffer(36161,e),n.depthBuffer&&!n.stencilBuffer){let i=33189;if(r||rt(n)){const e=n.depthTexture;e&&e.isDepthTexture&&(e.type===Z?i=36012:e.type===K&&(i=33190));const r=B(n);rt(n)?d.renderbufferStorageMultisampleEXT(36161,r,i,n.width,n.height):t.renderbufferStorageMultisample(36161,r,i,n.width,n.height)}else t.renderbufferStorage(36161,i,n.width,n.height);t.framebufferRenderbuffer(36160,36096,36161,e)}else if(n.depthBuffer&&n.stencilBuffer){const i=B(n);r&&!1===rt(n)?t.renderbufferStorageMultisample(36161,i,35056,n.width,n.height):rt(n)?d.renderbufferStorageMultisampleEXT(36161,i,35056,n.width,n.height):t.renderbufferStorage(36161,34041,n.width,n.height),t.framebufferRenderbuffer(36160,33306,36161,e)}else{const e=!0===n.isWebGLMultipleRenderTargets?n.texture:[n.texture];for(let i=0;i0&&!0===e.has("WEBGL_multisampled_render_to_texture")&&!1!==n.__useRenderToTexture}function it(t,n){const r=t.encoding,i=t.format,o=t.type;return!0===t.isCompressedTexture||!0===t.isVideoTexture||t.format===At||r!==vt&&(r===yt?!1===s?!0===e.has("EXT_sRGB")&&i===tt?(t.format=At,t.minFilter=X,t.generateMipmaps=!1):n=te.sRGBToLinear(n):i===tt&&o===$||console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture encoding:",r)),n}this.allocateTextureUnit=function(){const t=k;return t>=u&&console.warn("THREE.WebGLTextures: Trying to use "+t+" texture units while this GPU supports only "+u),k+=1,t},this.resetTextureUnits=function(){k=0},this.setTexture2D=I,this.setTexture2DArray=function(t,e){const i=r.get(t);t.version>0&&i.__version!==t.version?R(i,t,e):n.bindTexture(35866,i.__webglTexture,33984+e)},this.setTexture3D=function(t,e){const i=r.get(t);t.version>0&&i.__version!==t.version?R(i,t,e):n.bindTexture(32879,i.__webglTexture,33984+e)},this.setTextureCube=function(e,i){const a=r.get(e);e.version>0&&a.__version!==e.version?function(e,i,a){if(6!==i.image.length)return;const u=L(e,i),c=i.source;n.bindTexture(34067,e.__webglTexture,33984+a);const h=r.get(c);if(c.version!==h.__version||!0===u){n.activeTexture(33984+a),t.pixelStorei(37440,i.flipY),t.pixelStorei(37441,i.premultiplyAlpha),t.pixelStorei(3317,i.unpackAlignment),t.pixelStorei(37443,0);const e=i.isCompressedTexture||i.image[0].isCompressedTexture,r=i.image[0]&&i.image[0].isDataTexture,d=[];for(let t=0;t<6;t++)d[t]=e||r?r?i.image[t].image:i.image[t]:b(i.image[t],!1,!0,l),d[t]=it(i,d[t]);const f=d[0],p=x(f)||s,m=o.convert(i.format,i.encoding),g=o.convert(i.type),v=S(i.internalFormat,m,g,i.encoding),y=s&&!0!==i.isVideoTexture,A=void 0===h.__version||!0===u;let M,C=E(i,f,p);if(O(34067,i,p),e){y&&A&&n.texStorage2D(34067,C,v,f.width,f.height);for(let t=0;t<6;t++){M=d[t].mipmaps;for(let e=0;e0&&C++,n.texStorage2D(34067,C,v,d[0].width,d[0].height));for(let t=0;t<6;t++)if(r){y?n.texSubImage2D(34069+t,0,0,0,d[t].width,d[t].height,m,g,d[t].data):n.texImage2D(34069+t,0,v,d[t].width,d[t].height,0,m,g,d[t].data);for(let e=0;e0&&!1===rt(e)){const r=d?u:[u];l.__webglMultisampledFramebuffer=t.createFramebuffer(),l.__webglColorRenderbuffer=[],n.bindFramebuffer(36160,l.__webglMultisampledFramebuffer);for(let n=0;n0&&!1===rt(e)){const i=e.isWebGLMultipleRenderTargets?e.texture:[e.texture],o=e.width,a=e.height;let s=16384;const u=[],l=e.stencilBuffer?33306:36096,c=r.get(e),h=!0===e.isWebGLMultipleRenderTargets;if(h)for(let e=0;es+l?(u.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:t.handedness,target:this})):!u.inputState.pinching&&a<=s-l&&(u.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:t.handedness,target:this}))}else null!==s&&t.gripSpace&&(i=e.getPose(t.gripSpace,n),null!==i&&(s.matrix.fromArray(i.transform.matrix),s.matrix.decompose(s.position,s.rotation,s.scale),i.linearVelocity?(s.hasLinearVelocity=!0,s.linearVelocity.copy(i.linearVelocity)):s.hasLinearVelocity=!1,i.angularVelocity?(s.hasAngularVelocity=!0,s.angularVelocity.copy(i.angularVelocity)):s.hasAngularVelocity=!1));null!==a&&(r=e.getPose(t.targetRaySpace,n),null===r&&null!==i&&(r=i),null!==r&&(a.matrix.fromArray(r.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale),r.linearVelocity?(a.hasLinearVelocity=!0,a.linearVelocity.copy(r.linearVelocity)):a.hasLinearVelocity=!1,r.angularVelocity?(a.hasAngularVelocity=!0,a.angularVelocity.copy(r.angularVelocity)):a.hasAngularVelocity=!1,this.dispatchEvent(oa)))}return null!==a&&(a.visible=null!==r),null!==s&&(s.visible=null!==i),null!==u&&(u.visible=null!==o),this}_getHandJoint(t,e){if(void 0===t.joints[e.jointName]){const n=new ia;n.matrixAutoUpdate=!1,n.visible=!1,t.joints[e.jointName]=n,t.add(n)}return t.joints[e.jointName]}}class sa extends ie{constructor(t,e,n,r,i,o,a,s,u,l){if((l=void 0!==l?l:et)!==et&&l!==nt)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");void 0===n&&l===et&&(n=K),void 0===n&&l===nt&&(n=J),super(null,r,i,o,a,s,l,n,u),this.isDepthTexture=!0,this.image={width:t,height:e},this.magFilter=void 0!==a?a:H,this.minFilter=void 0!==s?s:H,this.flipY=!1,this.generateMipmaps=!1}}class ua extends Mt{constructor(t,e){super();const n=this;let r=null,i=1,o=null,a="local-floor",s=1,u=null,l=null,c=null,h=null,d=null,f=null;const p=e.getContextAttributes();let m=null,g=null;const v=[],y=[],b=new Set,x=new Map,w=new xr;w.layers.enable(1),w.viewport=new oe;const _=new xr;_.layers.enable(2),_.viewport=new oe;const S=[w,_],E=new ra;E.layers.enable(1),E.layers.enable(2);let A=null,M=null;function C(t){const e=y.indexOf(t.inputSource);if(-1===e)return;const n=v[e];void 0!==n&&n.dispatchEvent({type:t.type,data:t.inputSource})}function T(){r.removeEventListener("select",C),r.removeEventListener("selectstart",C),r.removeEventListener("selectend",C),r.removeEventListener("squeeze",C),r.removeEventListener("squeezestart",C),r.removeEventListener("squeezeend",C),r.removeEventListener("end",T),r.removeEventListener("inputsourceschange",k);for(let t=0;t=0&&(y[r]=null,v[r].disconnect(n))}for(let e=0;e=y.length){y.push(n),r=t;break}if(null===y[t]){y[t]=n,r=t;break}}if(-1===r)break}const i=v[r];i&&i.connect(n)}}this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(t){let e=v[t];return void 0===e&&(e=new aa,v[t]=e),e.getTargetRaySpace()},this.getControllerGrip=function(t){let e=v[t];return void 0===e&&(e=new aa,v[t]=e),e.getGripSpace()},this.getHand=function(t){let e=v[t];return void 0===e&&(e=new aa,v[t]=e),e.getHandSpace()},this.setFramebufferScaleFactor=function(t){i=t,!0===n.isPresenting&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(t){a=t,!0===n.isPresenting&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return u||o},this.setReferenceSpace=function(t){u=t},this.getBaseLayer=function(){return null!==h?h:d},this.getBinding=function(){return c},this.getFrame=function(){return f},this.getSession=function(){return r},this.setSession=async function(l){if(r=l,null!==r){if(m=t.getRenderTarget(),r.addEventListener("select",C),r.addEventListener("selectstart",C),r.addEventListener("selectend",C),r.addEventListener("squeeze",C),r.addEventListener("squeezestart",C),r.addEventListener("squeezeend",C),r.addEventListener("end",T),r.addEventListener("inputsourceschange",k),!0!==p.xrCompatible&&await e.makeXRCompatible(),void 0===r.renderState.layers||!1===t.capabilities.isWebGL2){const n={antialias:void 0!==r.renderState.layers||p.antialias,alpha:p.alpha,depth:p.depth,stencil:p.stencil,framebufferScaleFactor:i};d=new XRWebGLLayer(r,e,n),r.updateRenderState({baseLayer:d}),g=new ae(d.framebufferWidth,d.framebufferHeight,{format:tt,type:$,encoding:t.outputEncoding,stencilBuffer:p.stencil})}else{let n=null,o=null,a=null;p.depth&&(a=p.stencil?35056:33190,n=p.stencil?nt:et,o=p.stencil?J:K);const s={colorFormat:32856,depthFormat:a,scaleFactor:i};c=new XRWebGLBinding(r,e),h=c.createProjectionLayer(s),r.updateRenderState({layers:[h]}),g=new ae(h.textureWidth,h.textureHeight,{format:tt,type:$,depthTexture:new sa(h.textureWidth,h.textureHeight,o,void 0,void 0,void 0,void 0,void 0,void 0,n),stencilBuffer:p.stencil,encoding:t.outputEncoding,samples:p.antialias?4:0});t.properties.get(g).__ignoreDepthValues=h.ignoreDepthValues}g.isXRRenderTarget=!0,this.setFoveation(s),u=null,o=await r.requestReferenceSpace(a),L.setContext(r),L.start(),n.isPresenting=!0,n.dispatchEvent({type:"sessionstart"})}};const I=new ce,N=new ce;function P(t,e){null===e?t.matrixWorld.copy(t.matrix):t.matrixWorld.multiplyMatrices(e.matrixWorld,t.matrix),t.matrixWorldInverse.copy(t.matrixWorld).invert()}this.updateCamera=function(t){if(null===r)return;E.near=_.near=w.near=t.near,E.far=_.far=w.far=t.far,A===E.near&&M===E.far||(r.updateRenderState({depthNear:E.near,depthFar:E.far}),A=E.near,M=E.far);const e=t.parent,n=E.cameras;P(E,e);for(let t=0;te&&(x.set(t,t.lastChangedTime),n.dispatchEvent({type:"planechanged",data:t}))}else b.add(t),x.set(t,r.lastChangedTime),n.dispatchEvent({type:"planeadded",data:t})}f=null})),this.setAnimationLoop=function(t){O=t},this.dispose=function(){}}}function la(t,e){function n(t,e){!0===t.matrixAutoUpdate&&t.updateMatrix(),e.value.copy(t.matrix)}function r(r,i){r.opacity.value=i.opacity,i.color&&r.diffuse.value.copy(i.color),i.emissive&&r.emissive.value.copy(i.emissive).multiplyScalar(i.emissiveIntensity),i.map&&(r.map.value=i.map,n(i.map,r.mapTransform)),i.alphaMap&&(r.alphaMap.value=i.alphaMap,n(i.alphaMap,r.alphaMapTransform)),i.bumpMap&&(r.bumpMap.value=i.bumpMap,n(i.bumpMap,r.bumpMapTransform),r.bumpScale.value=i.bumpScale,i.side===c&&(r.bumpScale.value*=-1)),i.normalMap&&(r.normalMap.value=i.normalMap,n(i.normalMap,r.normalMapTransform),r.normalScale.value.copy(i.normalScale),i.side===c&&r.normalScale.value.negate()),i.displacementMap&&(r.displacementMap.value=i.displacementMap,n(i.displacementMap,r.displacementMapTransform),r.displacementScale.value=i.displacementScale,r.displacementBias.value=i.displacementBias),i.emissiveMap&&(r.emissiveMap.value=i.emissiveMap,n(i.emissiveMap,r.emissiveMapTransform)),i.specularMap&&(r.specularMap.value=i.specularMap,n(i.specularMap,r.specularMapTransform)),i.alphaTest>0&&(r.alphaTest.value=i.alphaTest);const o=e.get(i).envMap;if(o&&(r.envMap.value=o,r.flipEnvMap.value=o.isCubeTexture&&!1===o.isRenderTargetTexture?-1:1,r.reflectivity.value=i.reflectivity,r.ior.value=i.ior,r.refractionRatio.value=i.refractionRatio),i.lightMap){r.lightMap.value=i.lightMap;const e=!0===t.useLegacyLights?Math.PI:1;r.lightMapIntensity.value=i.lightMapIntensity*e,n(i.lightMap,r.lightMapTransform)}i.aoMap&&(r.aoMap.value=i.aoMap,r.aoMapIntensity.value=i.aoMapIntensity,n(i.aoMap,r.aoMapTransform))}return{refreshFogUniforms:function(e,n){n.color.getRGB(e.fogColor.value,gr(t)),n.isFog?(e.fogNear.value=n.near,e.fogFar.value=n.far):n.isFogExp2&&(e.fogDensity.value=n.density)},refreshMaterialUniforms:function(t,i,o,a,s){i.isMeshBasicMaterial||i.isMeshLambertMaterial?r(t,i):i.isMeshToonMaterial?(r(t,i),function(t,e){e.gradientMap&&(t.gradientMap.value=e.gradientMap)}(t,i)):i.isMeshPhongMaterial?(r(t,i),function(t,e){t.specular.value.copy(e.specular),t.shininess.value=Math.max(e.shininess,1e-4)}(t,i)):i.isMeshStandardMaterial?(r(t,i),function(t,r){t.metalness.value=r.metalness,r.metalnessMap&&(t.metalnessMap.value=r.metalnessMap,n(r.metalnessMap,t.metalnessMapTransform));t.roughness.value=r.roughness,r.roughnessMap&&(t.roughnessMap.value=r.roughnessMap,n(r.roughnessMap,t.roughnessMapTransform));const i=e.get(r).envMap;i&&(t.envMapIntensity.value=r.envMapIntensity)}(t,i),i.isMeshPhysicalMaterial&&function(t,e,r){t.ior.value=e.ior,e.sheen>0&&(t.sheenColor.value.copy(e.sheenColor).multiplyScalar(e.sheen),t.sheenRoughness.value=e.sheenRoughness,e.sheenColorMap&&(t.sheenColorMap.value=e.sheenColorMap,n(e.sheenColorMap,t.sheenColorMapTransform)),e.sheenRoughnessMap&&(t.sheenRoughnessMap.value=e.sheenRoughnessMap,n(e.sheenRoughnessMap,t.sheenRoughnessMapTransform)));e.clearcoat>0&&(t.clearcoat.value=e.clearcoat,t.clearcoatRoughness.value=e.clearcoatRoughness,e.clearcoatMap&&(t.clearcoatMap.value=e.clearcoatMap,n(e.clearcoatMap,t.clearcoatMapTransform)),e.clearcoatRoughnessMap&&(t.clearcoatRoughnessMap.value=e.clearcoatRoughnessMap,n(e.clearcoatRoughnessMap,t.clearcoatRoughnessMapTransform)),e.clearcoatNormalMap&&(t.clearcoatNormalMap.value=e.clearcoatNormalMap,n(e.clearcoatNormalMap,t.clearcoatNormalMapTransform),t.clearcoatNormalScale.value.copy(e.clearcoatNormalScale),e.side===c&&t.clearcoatNormalScale.value.negate()));e.iridescence>0&&(t.iridescence.value=e.iridescence,t.iridescenceIOR.value=e.iridescenceIOR,t.iridescenceThicknessMinimum.value=e.iridescenceThicknessRange[0],t.iridescenceThicknessMaximum.value=e.iridescenceThicknessRange[1],e.iridescenceMap&&(t.iridescenceMap.value=e.iridescenceMap,n(e.iridescenceMap,t.iridescenceMapTransform)),e.iridescenceThicknessMap&&(t.iridescenceThicknessMap.value=e.iridescenceThicknessMap,n(e.iridescenceThicknessMap,t.iridescenceThicknessMapTransform)));e.transmission>0&&(t.transmission.value=e.transmission,t.transmissionSamplerMap.value=r.texture,t.transmissionSamplerSize.value.set(r.width,r.height),e.transmissionMap&&(t.transmissionMap.value=e.transmissionMap,n(e.transmissionMap,t.transmissionMapTransform)),t.thickness.value=e.thickness,e.thicknessMap&&(t.thicknessMap.value=e.thicknessMap,n(e.thicknessMap,t.thicknessMapTransform)),t.attenuationDistance.value=e.attenuationDistance,t.attenuationColor.value.copy(e.attenuationColor));t.specularIntensity.value=e.specularIntensity,t.specularColor.value.copy(e.specularColor),e.specularColorMap&&(t.specularColorMap.value=e.specularColorMap,n(e.specularColorMap,t.specularColorMapTransform));e.specularIntensityMap&&(t.specularIntensityMap.value=e.specularIntensityMap,n(e.specularIntensityMap,t.specularIntensityMapTransform))}(t,i,s)):i.isMeshMatcapMaterial?(r(t,i),function(t,e){e.matcap&&(t.matcap.value=e.matcap)}(t,i)):i.isMeshDepthMaterial?r(t,i):i.isMeshDistanceMaterial?(r(t,i),function(t,n){const r=e.get(n).light;t.referencePosition.value.setFromMatrixPosition(r.matrixWorld),t.nearDistance.value=r.shadow.camera.near,t.farDistance.value=r.shadow.camera.far}(t,i)):i.isMeshNormalMaterial?r(t,i):i.isLineBasicMaterial?(function(t,e){t.diffuse.value.copy(e.color),t.opacity.value=e.opacity,e.map&&(t.map.value=e.map,n(e.map,t.mapTransform))}(t,i),i.isLineDashedMaterial&&function(t,e){t.dashSize.value=e.dashSize,t.totalSize.value=e.dashSize+e.gapSize,t.scale.value=e.scale}(t,i)):i.isPointsMaterial?function(t,e,r,i){t.diffuse.value.copy(e.color),t.opacity.value=e.opacity,t.size.value=e.size*r,t.scale.value=.5*i,e.map&&(t.map.value=e.map,n(e.map,t.uvTransform));e.alphaMap&&(t.alphaMap.value=e.alphaMap);e.alphaTest>0&&(t.alphaTest.value=e.alphaTest)}(t,i,o,a):i.isSpriteMaterial?function(t,e){t.diffuse.value.copy(e.color),t.opacity.value=e.opacity,t.rotation.value=e.rotation,e.map&&(t.map.value=e.map,n(e.map,t.mapTransform));e.alphaMap&&(t.alphaMap.value=e.alphaMap);e.alphaTest>0&&(t.alphaTest.value=e.alphaTest)}(t,i):i.isShadowMaterial?(t.color.value.copy(i.color),t.opacity.value=i.opacity):i.isShaderMaterial&&(i.uniformsNeedUpdate=!1)}}}function ca(t,e,n,r){let i={},o={},a=[];const s=n.isWebGL2?t.getParameter(35375):0;function u(t,e,n){const r=t.value;if(void 0===n[e]){if("number"==typeof r)n[e]=r;else{const t=Array.isArray(r)?r:[r],i=[];for(let e=0;e0){i=n%r;0!==i&&r-i-a.boundary<0&&(n+=r-i,o.__offset=n)}n+=a.storage}i=n%r,i>0&&(n+=r-i);t.__size=n,t.__cache={}}(n),d=function(e){const n=function(){for(let t=0;t0&&function(t,e,n,r){if(null===V){const t=K.isWebGL2;V=new ae(1024,1024,{generateMipmaps:!0,type:Y.has("EXT_color_buffer_half_float")?Q:$,minFilter:q,samples:t&&!0===s?4:0})}const i=x.getRenderTarget();x.setRenderTarget(V),x.clear();const o=x.toneMapping;x.toneMapping=k,zt(t,n,r),rt.updateMultisampleRenderTarget(V),rt.updateRenderTargetMipmap(V);let a=!1;for(let t=0,i=e.length;t0&&zt(i,e,n),o.length>0&&zt(o,e,n),a.length>0&&zt(a,e,n),J.buffers.depth.setTest(!0),J.buffers.depth.setMask(!0),J.buffers.color.setMask(!0),J.setPolygonOffset(!1)}function zt(t,e,n){const r=!0===e.isScene?e.overrideMaterial:null;for(let i=0,o=t.length;i0?b[b.length-1]:null,y.pop(),g=y.length>0?y[y.length-1]:null},this.getActiveCubeFace=function(){return _},this.getActiveMipmapLevel=function(){return S},this.getRenderTarget=function(){return E},this.setRenderTargetTextures=function(t,e,n){nt.get(t.texture).__webglTexture=e,nt.get(t.depthTexture).__webglTexture=n;const r=nt.get(t);r.__hasExternalTextures=!0,r.__hasExternalTextures&&(r.__autoAllocateDepthBuffer=void 0===n,r.__autoAllocateDepthBuffer||!0===Y.has("WEBGL_multisampled_render_to_texture")&&(console.warn("THREE.WebGLRenderer: Render-to-texture extension was disabled because an external texture was provided"),r.__useRenderToTexture=!1))},this.setRenderTargetFramebuffer=function(t,e){const n=nt.get(t);n.__webglFramebuffer=e,n.__useDefaultFramebuffer=void 0===e},this.setRenderTarget=function(t,e=0,n=0){E=t,_=e,S=n;let r=!0,i=null,o=!1,a=!1;if(t){const n=nt.get(t);void 0!==n.__useDefaultFramebuffer?(J.bindFramebuffer(36160,null),r=!1):void 0===n.__webglFramebuffer?rt.setupRenderTarget(t):n.__hasExternalTextures&&rt.rebindTextures(t,nt.get(t.texture).__webglTexture,nt.get(t.depthTexture).__webglTexture);const s=t.texture;(s.isData3DTexture||s.isDataArrayTexture||s.isCompressedArrayTexture)&&(a=!0);const u=nt.get(t).__webglFramebuffer;t.isWebGLCubeRenderTarget?(i=u[e],o=!0):i=K.isWebGL2&&t.samples>0&&!1===rt.useMultisampledRTT(t)?nt.get(t).__webglMultisampledFramebuffer:u,C.copy(t.viewport),T.copy(t.scissor),I=t.scissorTest}else C.copy(D).multiplyScalar(O).floor(),T.copy(z).multiplyScalar(O).floor(),I=F;if(J.bindFramebuffer(36160,i)&&K.drawBuffers&&r&&J.drawBuffers(t,i),J.viewport(C),J.scissor(T),J.setScissorTest(I),o){const r=nt.get(t.texture);St.framebufferTexture2D(36160,36064,34069+e,r.__webglTexture,n)}else if(a){const r=nt.get(t.texture),i=e||0;St.framebufferTextureLayer(36160,36064,r.__webglTexture,n||0,i)}A=-1},this.readRenderTargetPixels=function(t,e,n,r,i,o,a){if(!t||!t.isWebGLRenderTarget)return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let s=nt.get(t).__webglFramebuffer;if(t.isWebGLCubeRenderTarget&&void 0!==a&&(s=s[a]),s){J.bindFramebuffer(36160,s);try{const a=t.texture,s=a.format,u=a.type;if(s!==tt&&xt.convert(s)!==St.getParameter(35739))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");const l=u===Q&&(Y.has("EXT_color_buffer_half_float")||K.isWebGL2&&Y.has("EXT_color_buffer_float"));if(!(u===$||xt.convert(u)===St.getParameter(35738)||u===Z&&(K.isWebGL2||Y.has("OES_texture_float")||Y.has("WEBGL_color_buffer_float"))||l))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");e>=0&&e<=t.width-r&&n>=0&&n<=t.height-i&&St.readPixels(e,n,r,i,xt.convert(s),xt.convert(u),o)}finally{const t=null!==E?nt.get(E).__webglFramebuffer:null;J.bindFramebuffer(36160,t)}}},this.copyFramebufferToTexture=function(t,e,n=0){const r=Math.pow(2,-n),i=Math.floor(e.image.width*r),o=Math.floor(e.image.height*r);rt.setTexture2D(e,0),St.copyTexSubImage2D(3553,n,0,0,t.x,t.y,i,o),J.unbindTexture()},this.copyTextureToTexture=function(t,e,n,r=0){const i=e.image.width,o=e.image.height,a=xt.convert(n.format),s=xt.convert(n.type);rt.setTexture2D(n,0),St.pixelStorei(37440,n.flipY),St.pixelStorei(37441,n.premultiplyAlpha),St.pixelStorei(3317,n.unpackAlignment),e.isDataTexture?St.texSubImage2D(3553,r,t.x,t.y,i,o,a,s,e.image.data):e.isCompressedTexture?St.compressedTexSubImage2D(3553,r,t.x,t.y,e.mipmaps[0].width,e.mipmaps[0].height,a,e.mipmaps[0].data):St.texSubImage2D(3553,r,t.x,t.y,a,s,e.image),0===r&&n.generateMipmaps&&St.generateMipmap(3553),J.unbindTexture()},this.copyTextureToTexture3D=function(t,e,n,r,i=0){if(x.isWebGL1Renderer)return void console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");const o=t.max.x-t.min.x+1,a=t.max.y-t.min.y+1,s=t.max.z-t.min.z+1,u=xt.convert(r.format),l=xt.convert(r.type);let c;if(r.isData3DTexture)rt.setTexture3D(r,0),c=32879;else{if(!r.isDataArrayTexture)return void console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");rt.setTexture2DArray(r,0),c=35866}St.pixelStorei(37440,r.flipY),St.pixelStorei(37441,r.premultiplyAlpha),St.pixelStorei(3317,r.unpackAlignment);const h=St.getParameter(3314),d=St.getParameter(32878),f=St.getParameter(3316),p=St.getParameter(3315),m=St.getParameter(32877),g=n.isCompressedTexture?n.mipmaps[0]:n.image;St.pixelStorei(3314,g.width),St.pixelStorei(32878,g.height),St.pixelStorei(3316,t.min.x),St.pixelStorei(3315,t.min.y),St.pixelStorei(32877,t.min.z),n.isDataTexture||n.isData3DTexture?St.texSubImage3D(c,i,e.x,e.y,e.z,o,a,s,u,l,g.data):n.isCompressedArrayTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),St.compressedTexSubImage3D(c,i,e.x,e.y,e.z,o,a,s,u,g.data)):St.texSubImage3D(c,i,e.x,e.y,e.z,o,a,s,u,l,g),St.pixelStorei(3314,h),St.pixelStorei(32878,d),St.pixelStorei(3316,f),St.pixelStorei(3315,p),St.pixelStorei(32877,m),0===i&&r.generateMipmaps&&St.generateMipmap(c),J.unbindTexture()},this.initTexture=function(t){t.isCubeTexture?rt.setTextureCube(t,0):t.isData3DTexture?rt.setTexture3D(t,0):t.isDataArrayTexture||t.isCompressedArrayTexture?rt.setTexture2DArray(t,0):rt.setTexture2D(t,0),J.unbindTexture()},this.resetState=function(){_=0,S=0,E=null,J.reset(),wt.reset()},"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get physicallyCorrectLights(){return console.warn("THREE.WebGLRenderer: the property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead."),!this.useLegacyLights}set physicallyCorrectLights(t){console.warn("THREE.WebGLRenderer: the property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead."),this.useLegacyLights=!t}}(class extends da{}).prototype.isWebGL1Renderer=!0;class fa extends dn{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.overrideMaterial=null,"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(t,e){return super.copy(t,e),null!==t.background&&(this.background=t.background.clone()),null!==t.environment&&(this.environment=t.environment.clone()),null!==t.fog&&(this.fog=t.fog.clone()),this.backgroundBlurriness=t.backgroundBlurriness,this.backgroundIntensity=t.backgroundIntensity,null!==t.overrideMaterial&&(this.overrideMaterial=t.overrideMaterial.clone()),this.matrixAutoUpdate=t.matrixAutoUpdate,this}toJSON(t){const e=super.toJSON(t);return null!==this.fog&&(e.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(e.object.backgroundBlurriness=this.backgroundBlurriness),1!==this.backgroundIntensity&&(e.object.backgroundIntensity=this.backgroundIntensity),e}get autoUpdate(){return console.warn("THREE.Scene: autoUpdate was renamed to matrixWorldAutoUpdate in r144."),this.matrixWorldAutoUpdate}set autoUpdate(t){console.warn("THREE.Scene: autoUpdate was renamed to matrixWorldAutoUpdate in r144."),this.matrixWorldAutoUpdate=t}}class pa{constructor(t,e){this.isInterleavedBuffer=!0,this.array=t,this.stride=e,this.count=void 0!==t?t.length/e:0,this.usage=St,this.updateRange={offset:0,count:-1},this.version=0,this.uuid=Nt()}onUploadCallback(){}set needsUpdate(t){!0===t&&this.version++}setUsage(t){return this.usage=t,this}copy(t){return this.array=new t.array.constructor(t.array),this.count=t.count,this.stride=t.stride,this.usage=t.usage,this}copyAt(t,e,n){t*=this.stride,n*=e.stride;for(let r=0,i=this.stride;rt.far||e.push({distance:s,point:ba.clone(),uv:En.getInterpolation(ba,Aa,Ma,Ca,Ta,ka,Ia,new jt),face:null,object:this})}copy(t,e){return super.copy(t,e),void 0!==t.center&&this.center.copy(t.center),this.material=t.material,this}}function Pa(t,e,n,r,i,o){_a.subVectors(t,n).addScalar(.5).multiply(r),void 0!==i?(Sa.x=o*_a.x-i*_a.y,Sa.y=i*_a.x+o*_a.y):Sa.copy(_a),t.copy(e),t.x+=Sa.x,t.y+=Sa.y,t.applyMatrix4(Ea)}const Oa=new ce,La=new oe,Ra=new oe,Da=new ce,za=new Ue,Fa=new ce;class Ba extends hr{constructor(t,e){super(t,e),this.isSkinnedMesh=!0,this.type="SkinnedMesh",this.bindMode="attached",this.bindMatrix=new Ue,this.bindMatrixInverse=new Ue,this.boundingBox=null,this.boundingSphere=null}computeBoundingBox(){const t=this.geometry;null===this.boundingBox&&(this.boundingBox=new fe),this.boundingBox.makeEmpty();const e=t.getAttribute("position");for(let t=0;ts)continue;h.applyMatrix4(this.matrixWorld);const o=t.ray.origin.distanceTo(h);ot.far||e.push({distance:o,point:c.clone().applyMatrix4(this.matrixWorld),index:n,face:null,faceIndex:null,object:this})}}else{for(let n=Math.max(0,o.start),r=Math.min(p.count,o.start+o.count)-1;ns)continue;h.applyMatrix4(this.matrixWorld);const r=t.ray.origin.distanceTo(h);rt.far||e.push({distance:r,point:c.clone().applyMatrix4(this.matrixWorld),index:n,face:null,faceIndex:null,object:this})}}}updateMorphTargets(){const t=this.geometry.morphAttributes,e=Object.keys(t);if(e.length>0){const n=t[e[0]];if(void 0!==n){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let t=0,e=n.length;t0){const n=t[e[0]];if(void 0!==n){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let t=0,e=n.length;ti.far)return;o.push({distance:u,distanceToRay:Math.sqrt(s),point:n,index:e,face:null,object:a})}}class ys extends ie{constructor(t,e,n,r,i,o,a,s,u){super(t,e,n,r,i,o,a,s,u),this.isCanvasTexture=!0,this.needsUpdate=!0}}class bs{constructor(){this.type="Curve",this.arcLengthDivisions=200}getPoint(){return console.warn("THREE.Curve: .getPoint() not implemented."),null}getPointAt(t,e){const n=this.getUtoTmapping(t);return this.getPoint(n,e)}getPoints(t=5){const e=[];for(let n=0;n<=t;n++)e.push(this.getPoint(n/t));return e}getSpacedPoints(t=5){const e=[];for(let n=0;n<=t;n++)e.push(this.getPointAt(n/t));return e}getLength(){const t=this.getLengths();return t[t.length-1]}getLengths(t=this.arcLengthDivisions){if(this.cacheArcLengths&&this.cacheArcLengths.length===t+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;const e=[];let n,r=this.getPoint(0),i=0;e.push(0);for(let o=1;o<=t;o++)n=this.getPoint(o/t),i+=n.distanceTo(r),e.push(i),r=n;return this.cacheArcLengths=e,e}updateArcLengths(){this.needsUpdate=!0,this.getLengths()}getUtoTmapping(t,e){const n=this.getLengths();let r=0;const i=n.length;let o;o=e||t*n[i-1];let a,s=0,u=i-1;for(;s<=u;)if(r=Math.floor(s+(u-s)/2),a=n[r]-o,a<0)s=r+1;else{if(!(a>0)){u=r;break}u=r-1}if(r=u,n[r]===o)return r/(i-1);const l=n[r];return(r+(o-l)/(n[r+1]-l))/(i-1)}getTangent(t,e){const n=1e-4;let r=t-n,i=t+n;r<0&&(r=0),i>1&&(i=1);const o=this.getPoint(r),a=this.getPoint(i),s=e||(o.isVector2?new jt:new ce);return s.copy(a).sub(o).normalize(),s}getTangentAt(t,e){const n=this.getUtoTmapping(t);return this.getTangent(n,e)}computeFrenetFrames(t,e){const n=new ce,r=[],i=[],o=[],a=new ce,s=new Ue;for(let e=0;e<=t;e++){const n=e/t;r[e]=this.getTangentAt(n,new ce)}i[0]=new ce,o[0]=new ce;let u=Number.MAX_VALUE;const l=Math.abs(r[0].x),c=Math.abs(r[0].y),h=Math.abs(r[0].z);l<=u&&(u=l,n.set(1,0,0)),c<=u&&(u=c,n.set(0,1,0)),h<=u&&n.set(0,0,1),a.crossVectors(r[0],n).normalize(),i[0].crossVectors(r[0],a),o[0].crossVectors(r[0],i[0]);for(let e=1;e<=t;e++){if(i[e]=i[e-1].clone(),o[e]=o[e-1].clone(),a.crossVectors(r[e-1],r[e]),a.length()>Number.EPSILON){a.normalize();const t=Math.acos(Pt(r[e-1].dot(r[e]),-1,1));i[e].applyMatrix4(s.makeRotationAxis(a,t))}o[e].crossVectors(r[e],i[e])}if(!0===e){let e=Math.acos(Pt(i[0].dot(i[t]),-1,1));e/=t,r[0].dot(a.crossVectors(i[0],i[t]))>0&&(e=-e);for(let n=1;n<=t;n++)i[n].applyMatrix4(s.makeRotationAxis(r[n],e*n)),o[n].crossVectors(r[n],i[n])}return{tangents:r,normals:i,binormals:o}}clone(){return(new this.constructor).copy(this)}copy(t){return this.arcLengthDivisions=t.arcLengthDivisions,this}toJSON(){const t={metadata:{version:4.5,type:"Curve",generator:"Curve.toJSON"}};return t.arcLengthDivisions=this.arcLengthDivisions,t.type=this.type,t}fromJSON(t){return this.arcLengthDivisions=t.arcLengthDivisions,this}}class xs extends bs{constructor(t=0,e=0,n=1,r=1,i=0,o=2*Math.PI,a=!1,s=0){super(),this.isEllipseCurve=!0,this.type="EllipseCurve",this.aX=t,this.aY=e,this.xRadius=n,this.yRadius=r,this.aStartAngle=i,this.aEndAngle=o,this.aClockwise=a,this.aRotation=s}getPoint(t,e){const n=e||new jt,r=2*Math.PI;let i=this.aEndAngle-this.aStartAngle;const o=Math.abs(i)r;)i-=r;ir.length-2?r.length-1:o+1],c=r[o>r.length-3?r.length-1:o+2];return n.set(Cs(a,s.x,u.x,l.x,c.x),Cs(a,s.y,u.y,l.y,c.y)),n}copy(t){super.copy(t),this.points=[];for(let e=0,n=t.points.length;e0?0:(Math.floor(Math.abs(u)/i)+1)*i:0===l&&u===i-1&&(u=i-2,l=1),this.closed||u>0?a=r[(u-1)%i]:(Ss.subVectors(r[0],r[1]).add(r[0]),a=Ss);const c=r[u%i],h=r[(u+1)%i];if(this.closed||u+2=n){const t=r[i]-n,o=this.curves[i],a=o.getLength(),s=0===a?0:1-t/a;return o.getPointAt(s,e)}i++}return null}getLength(){const t=this.getCurveLengths();return t[t.length-1]}updateArcLengths(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}getCurveLengths(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;const t=[];let e=0;for(let n=0,r=this.curves.length;n1&&!e[e.length-1].equals(e[0])&&e.push(e[0]),e}copy(t){super.copy(t),this.curves=[];for(let e=0,n=t.curves.length;e0){const t=u.getPoint(0);t.equals(this.currentPoint)||this.lineTo(t.x,t.y)}this.curves.push(u);const l=u.getPoint(1);return this.currentPoint.copy(l),this}copy(t){return super.copy(t),this.currentPoint.copy(t.currentPoint),this}toJSON(){const t=super.toJSON();return t.currentPoint=this.currentPoint.toArray(),t}fromJSON(t){return super.fromJSON(t),this.currentPoint.fromArray(t.currentPoint),this}}class Fs extends zs{constructor(t){super(t),this.uuid=Nt(),this.type="Shape",this.holes=[]}getPointsHoles(t){const e=[];for(let n=0,r=this.holes.length;n80*n){s=l=t[0],u=c=t[1];for(let e=n;el&&(l=h),d>c&&(c=d);f=Math.max(l-s,c-u),f=0!==f?32767/f:0}return Vs(o,a,n,s,u,f,0),a};function Us(t,e,n,r,i){let o,a;if(i===function(t,e,n,r){let i=0;for(let o=e,a=n-r;o0)for(o=e;o=e;o-=r)a=su(o,t[o],t[o+1],a);return a&&eu(a,a.next)&&(uu(a),a=a.next),a}function js(t,e){if(!t)return t;e||(e=t);let n,r=t;do{if(n=!1,r.steiner||!eu(r,r.next)&&0!==tu(r.prev,r,r.next))r=r.next;else{if(uu(r),r=e=r.prev,r===r.next)break;n=!0}}while(n||r!==e);return e}function Vs(t,e,n,r,i,o,a){if(!t)return;!a&&o&&function(t,e,n,r){let i=t;do{0===i.z&&(i.z=Ks(i.x,i.y,e,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){let e,n,r,i,o,a,s,u,l=1;do{for(n=t,t=null,o=null,a=0;n;){for(a++,r=n,s=0,e=0;e0||u>0&&r;)0!==s&&(0===u||!r||n.z<=r.z)?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,u--),o?o.nextZ=i:t=i,i.prevZ=o,o=i;n=r}o.nextZ=null,l*=2}while(a>1)}(i)}(t,r,i,o);let s,u,l=t;for(;t.prev!==t.next;)if(s=t.prev,u=t.next,o?Gs(t,r,i,o):Hs(t))e.push(s.i/n|0),e.push(t.i/n|0),e.push(u.i/n|0),uu(t),t=u.next,l=u.next;else if((t=u)===l){a?1===a?Vs(t=Ws(js(t),e,n),e,n,r,i,o,2):2===a&&Xs(t,e,n,r,i,o):Vs(js(t),e,n,r,i,o,1);break}}function Hs(t){const e=t.prev,n=t,r=t.next;if(tu(e,n,r)>=0)return!1;const i=e.x,o=n.x,a=r.x,s=e.y,u=n.y,l=r.y,c=io?i>a?i:a:o>a?o:a,f=s>u?s>l?s:l:u>l?u:l;let p=r.next;for(;p!==e;){if(p.x>=c&&p.x<=d&&p.y>=h&&p.y<=f&&Qs(i,s,o,u,a,l,p.x,p.y)&&tu(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function Gs(t,e,n,r){const i=t.prev,o=t,a=t.next;if(tu(i,o,a)>=0)return!1;const s=i.x,u=o.x,l=a.x,c=i.y,h=o.y,d=a.y,f=su?s>l?s:l:u>l?u:l,g=c>h?c>d?c:d:h>d?h:d,v=Ks(f,p,e,n,r),y=Ks(m,g,e,n,r);let b=t.prevZ,x=t.nextZ;for(;b&&b.z>=v&&x&&x.z<=y;){if(b.x>=f&&b.x<=m&&b.y>=p&&b.y<=g&&b!==i&&b!==a&&Qs(s,c,u,h,l,d,b.x,b.y)&&tu(b.prev,b,b.next)>=0)return!1;if(b=b.prevZ,x.x>=f&&x.x<=m&&x.y>=p&&x.y<=g&&x!==i&&x!==a&&Qs(s,c,u,h,l,d,x.x,x.y)&&tu(x.prev,x,x.next)>=0)return!1;x=x.nextZ}for(;b&&b.z>=v;){if(b.x>=f&&b.x<=m&&b.y>=p&&b.y<=g&&b!==i&&b!==a&&Qs(s,c,u,h,l,d,b.x,b.y)&&tu(b.prev,b,b.next)>=0)return!1;b=b.prevZ}for(;x&&x.z<=y;){if(x.x>=f&&x.x<=m&&x.y>=p&&x.y<=g&&x!==i&&x!==a&&Qs(s,c,u,h,l,d,x.x,x.y)&&tu(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}function Ws(t,e,n){let r=t;do{const i=r.prev,o=r.next.next;!eu(i,o)&&nu(i,r,r.next,o)&&ou(i,o)&&ou(o,i)&&(e.push(i.i/n|0),e.push(r.i/n|0),e.push(o.i/n|0),uu(r),uu(r.next),r=t=o),r=r.next}while(r!==t);return js(r)}function Xs(t,e,n,r,i,o){let a=t;do{let t=a.next.next;for(;t!==a.prev;){if(a.i!==t.i&&Js(a,t)){let s=au(a,t);return a=js(a,a.next),s=js(s,s.next),Vs(a,e,n,r,i,o,0),void Vs(s,e,n,r,i,o,0)}t=t.next}a=a.next}while(a!==t)}function Ys(t,e){return t.x-e.x}function qs(t,e){const n=function(t,e){let n,r=e,i=-1/0;const o=t.x,a=t.y;do{if(a<=r.y&&a>=r.next.y&&r.next.y!==r.y){const t=r.x+(a-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(t<=o&&t>i&&(i=t,n=r.x=r.x&&r.x>=u&&o!==r.x&&Qs(an.x||r.x===n.x&&$s(n,r)))&&(n=r,h=c)),r=r.next}while(r!==s);return n}(t,e);if(!n)return e;const r=au(n,t);return js(r,r.next),js(n,n.next)}function $s(t,e){return tu(t.prev,t,e.prev)<0&&tu(e.next,t,t.next)<0}function Ks(t,e,n,r,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-n)*i|0)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-r)*i|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function Zs(t){let e=t,n=t;do{(e.x=(t-a)*(o-s)&&(t-a)*(r-s)>=(n-a)*(e-s)&&(n-a)*(o-s)>=(i-a)*(r-s)}function Js(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){let n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&nu(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(ou(t,e)&&ou(e,t)&&function(t,e){let n=t,r=!1;const i=(t.x+e.x)/2,o=(t.y+e.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==t);return r}(t,e)&&(tu(t.prev,t,e.prev)||tu(t,e.prev,e))||eu(t,e)&&tu(t.prev,t,t.next)>0&&tu(e.prev,e,e.next)>0)}function tu(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function eu(t,e){return t.x===e.x&&t.y===e.y}function nu(t,e,n,r){const i=iu(tu(t,e,n)),o=iu(tu(t,e,r)),a=iu(tu(n,r,t)),s=iu(tu(n,r,e));return i!==o&&a!==s||(!(0!==i||!ru(t,n,e))||(!(0!==o||!ru(t,r,e))||(!(0!==a||!ru(n,t,r))||!(0!==s||!ru(n,e,r)))))}function ru(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function iu(t){return t>0?1:t<0?-1:0}function ou(t,e){return tu(t.prev,t,t.next)<0?tu(t,e,t.next)>=0&&tu(t,t.prev,e)>=0:tu(t,e,t.prev)<0||tu(t,t.next,e)<0}function au(t,e){const n=new lu(t.i,t.x,t.y),r=new lu(e.i,e.x,e.y),i=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function su(t,e,n,r){const i=new lu(t,e,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function uu(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function lu(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}class cu{static area(t){const e=t.length;let n=0;for(let r=e-1,i=0;i2&&t[e-1].equals(t[0])&&t.pop()}function du(t,e){for(let n=0;nNumber.EPSILON){const h=Math.sqrt(c),d=Math.sqrt(u*u+l*l),f=e.x-s/h,p=e.y+a/h,m=((n.x-l/d-f)*l-(n.y+u/d-p)*u)/(a*l-s*u);r=f+a*m-t.x,i=p+s*m-t.y;const g=r*r+i*i;if(g<=2)return new jt(r,i);o=Math.sqrt(g/2)}else{let t=!1;a>Number.EPSILON?u>Number.EPSILON&&(t=!0):a<-Number.EPSILON?u<-Number.EPSILON&&(t=!0):Math.sign(s)===Math.sign(l)&&(t=!0),t?(r=-s,i=a,o=Math.sqrt(c)):(r=a,i=s,o=Math.sqrt(c/2))}return new jt(r/o,i/o)}const N=[];for(let t=0,e=M.length,n=e-1,r=t+1;t=0;t--){const e=t/f,n=c*Math.cos(e*Math.PI/2),r=h*Math.sin(e*Math.PI/2)+d;for(let t=0,e=M.length;t=0;){const r=n;let i=n-1;i<0&&(i=t.length-1);for(let t=0,n=s+2*f;t0)&&d.push(e,i,u),(t!==n-1||s0!=t>0&&this.version++,this._sheen=t}get clearcoat(){return this._clearcoat}set clearcoat(t){this._clearcoat>0!=t>0&&this.version++,this._clearcoat=t}get iridescence(){return this._iridescence}set iridescence(t){this._iridescence>0!=t>0&&this.version++,this._iridescence=t}get transmission(){return this._transmission}set transmission(t){this._transmission>0!=t>0&&this.version++,this._transmission=t}copy(t){return super.copy(t),this.defines={STANDARD:"",PHYSICAL:""},this.clearcoat=t.clearcoat,this.clearcoatMap=t.clearcoatMap,this.clearcoatRoughness=t.clearcoatRoughness,this.clearcoatRoughnessMap=t.clearcoatRoughnessMap,this.clearcoatNormalMap=t.clearcoatNormalMap,this.clearcoatNormalScale.copy(t.clearcoatNormalScale),this.ior=t.ior,this.iridescence=t.iridescence,this.iridescenceMap=t.iridescenceMap,this.iridescenceIOR=t.iridescenceIOR,this.iridescenceThicknessRange=[...t.iridescenceThicknessRange],this.iridescenceThicknessMap=t.iridescenceThicknessMap,this.sheen=t.sheen,this.sheenColor.copy(t.sheenColor),this.sheenColorMap=t.sheenColorMap,this.sheenRoughness=t.sheenRoughness,this.sheenRoughnessMap=t.sheenRoughnessMap,this.transmission=t.transmission,this.transmissionMap=t.transmissionMap,this.thickness=t.thickness,this.thicknessMap=t.thicknessMap,this.attenuationDistance=t.attenuationDistance,this.attenuationColor.copy(t.attenuationColor),this.specularIntensity=t.specularIntensity,this.specularIntensityMap=t.specularIntensityMap,this.specularColor.copy(t.specularColor),this.specularColorMap=t.specularColorMap,this}}function bu(t,e,n){return wu(t)?new t.constructor(t.subarray(e,void 0!==n?n:t.length)):t.slice(e,n)}function xu(t,e,n){return!t||!n&&t.constructor===e?t:"number"==typeof e.BYTES_PER_ELEMENT?new e(t):Array.prototype.slice.call(t)}function wu(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function _u(t){const e=t.length,n=new Array(e);for(let t=0;t!==e;++t)n[t]=t;return n.sort((function(e,n){return t[e]-t[n]})),n}function Su(t,e,n){const r=t.length,i=new t.constructor(r);for(let o=0,a=0;a!==r;++o){const r=n[o]*e;for(let n=0;n!==e;++n)i[a++]=t[r+n]}return i}function Eu(t,e,n,r){let i=1,o=t[0];for(;void 0!==o&&void 0===o[r];)o=t[i++];if(void 0===o)return;let a=o[r];if(void 0!==a)if(Array.isArray(a))do{a=o[r],void 0!==a&&(e.push(o.time),n.push.apply(n,a)),o=t[i++]}while(void 0!==o);else if(void 0!==a.toArray)do{a=o[r],void 0!==a&&(e.push(o.time),a.toArray(n,n.length)),o=t[i++]}while(void 0!==o);else do{a=o[r],void 0!==a&&(e.push(o.time),n.push(a)),o=t[i++]}while(void 0!==o)}class Au{constructor(t,e,n,r){this.parameterPositions=t,this._cachedIndex=0,this.resultBuffer=void 0!==r?r:new e.constructor(n),this.sampleValues=e,this.valueSize=n,this.settings=null,this.DefaultSettings_={}}evaluate(t){const e=this.parameterPositions;let n=this._cachedIndex,r=e[n],i=e[n-1];t:{e:{let o;n:{r:if(!(t=i)break t;{const a=e[1];t=i)break e}o=n,n=0}}for(;n>>1;te;)--o;if(++o,0!==i||o!==r){i>=o&&(o=Math.max(o,1),i=o-1);const t=this.getValueSize();this.times=bu(n,i,o),this.values=bu(this.values,i*t,o*t)}return this}validate(){let t=!0;const e=this.getValueSize();e-Math.floor(e)!=0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),t=!1);const n=this.times,r=this.values,i=n.length;0===i&&(console.error("THREE.KeyframeTrack: Track is empty.",this),t=!1);let o=null;for(let e=0;e!==i;e++){const r=n[e];if("number"==typeof r&&isNaN(r)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,e,r),t=!1;break}if(null!==o&&o>r){console.error("THREE.KeyframeTrack: Out of order keys.",this,e,r,o),t=!1;break}o=r}if(void 0!==r&&wu(r))for(let e=0,n=r.length;e!==n;++e){const n=r[e];if(isNaN(n)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,e,n),t=!1;break}}return t}optimize(){const t=bu(this.times),e=bu(this.values),n=this.getValueSize(),r=this.getInterpolation()===ct,i=t.length-1;let o=1;for(let a=1;a0){t[o]=t[i];for(let t=i*n,r=o*n,a=0;a!==n;++a)e[r+a]=e[t+a];++o}return o!==t.length?(this.times=bu(t,0,o),this.values=bu(e,0,o*n)):(this.times=t,this.values=e),this}clone(){const t=bu(this.times,0),e=bu(this.values,0),n=new(0,this.constructor)(this.name,t,e);return n.createInterpolant=this.createInterpolant,n}}ku.prototype.TimeBufferType=Float32Array,ku.prototype.ValueBufferType=Float32Array,ku.prototype.DefaultInterpolation=lt;class Iu extends ku{}Iu.prototype.ValueTypeName="bool",Iu.prototype.ValueBufferType=Array,Iu.prototype.DefaultInterpolation=ut,Iu.prototype.InterpolantFactoryMethodLinear=void 0,Iu.prototype.InterpolantFactoryMethodSmooth=void 0;class Nu extends ku{}Nu.prototype.ValueTypeName="color";class Pu extends ku{}Pu.prototype.ValueTypeName="number";class Ou extends Au{constructor(t,e,n,r){super(t,e,n,r)}interpolate_(t,e,n,r){const i=this.resultBuffer,o=this.sampleValues,a=this.valueSize,s=(n-e)/(r-e);let u=t*a;for(let t=u+a;u!==t;u+=4)le.slerpFlat(i,0,o,u-a,o,u,s);return i}}class Lu extends ku{InterpolantFactoryMethodLinear(t){return new Ou(this.times,this.values,this.getValueSize(),t)}}Lu.prototype.ValueTypeName="quaternion",Lu.prototype.DefaultInterpolation=lt,Lu.prototype.InterpolantFactoryMethodSmooth=void 0;class Ru extends ku{}Ru.prototype.ValueTypeName="string",Ru.prototype.ValueBufferType=Array,Ru.prototype.DefaultInterpolation=ut,Ru.prototype.InterpolantFactoryMethodLinear=void 0,Ru.prototype.InterpolantFactoryMethodSmooth=void 0;class Du extends ku{}Du.prototype.ValueTypeName="vector";class zu{constructor(t,e=-1,n,r=2500){this.name=t,this.tracks=n,this.duration=e,this.blendMode=r,this.uuid=Nt(),this.duration<0&&this.resetDuration()}static parse(t){const e=[],n=t.tracks,r=1/(t.fps||1);for(let t=0,i=n.length;t!==i;++t)e.push(Fu(n[t]).scale(r));const i=new this(t.name,t.duration,e,t.blendMode);return i.uuid=t.uuid,i}static toJSON(t){const e=[],n=t.tracks,r={name:t.name,duration:t.duration,tracks:e,uuid:t.uuid,blendMode:t.blendMode};for(let t=0,r=n.length;t!==r;++t)e.push(ku.toJSON(n[t]));return r}static CreateFromMorphTargetSequence(t,e,n,r){const i=e.length,o=[];for(let t=0;t1){const t=o[1];let e=r[t];e||(r[t]=e=[]),e.push(n)}}const o=[];for(const t in r)o.push(this.CreateFromMorphTargetSequence(t,r[t],e,n));return o}static parseAnimation(t,e){if(!t)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const n=function(t,e,n,r,i){if(0!==n.length){const o=[],a=[];Eu(n,o,a,r),0!==o.length&&i.push(new t(e,o,a))}},r=[],i=t.name||"default",o=t.fps||30,a=t.blendMode;let s=t.length||-1;const u=t.hierarchy||[];for(let t=0;t{e&&e(i),this.manager.itemEnd(t)}),0),i;if(void 0!==Hu[t])return void Hu[t].push({onLoad:e,onProgress:n,onError:r});Hu[t]=[],Hu[t].push({onLoad:e,onProgress:n,onError:r});const o=new Request(t,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),a=this.mimeType,s=this.responseType;fetch(o).then((e=>{if(200===e.status||0===e.status){if(0===e.status&&console.warn("THREE.FileLoader: HTTP Status 0 received."),"undefined"==typeof ReadableStream||void 0===e.body||void 0===e.body.getReader)return e;const n=Hu[t],r=e.body.getReader(),i=e.headers.get("Content-Length")||e.headers.get("X-File-Size"),o=i?parseInt(i):0,a=0!==o;let s=0;const u=new ReadableStream({start(t){!function e(){r.read().then((({done:r,value:i})=>{if(r)t.close();else{s+=i.byteLength;const r=new ProgressEvent("progress",{lengthComputable:a,loaded:s,total:o});for(let t=0,e=n.length;t{switch(s){case"arraybuffer":return t.arrayBuffer();case"blob":return t.blob();case"document":return t.text().then((t=>(new DOMParser).parseFromString(t,a)));case"json":return t.json();default:if(void 0===a)return t.text();{const e=/charset="?([^;"\s]*)"?/i.exec(a),n=e&&e[1]?e[1].toLowerCase():void 0,r=new TextDecoder(n);return t.arrayBuffer().then((t=>r.decode(t)))}}})).then((e=>{Bu.add(t,e);const n=Hu[t];delete Hu[t];for(let t=0,r=n.length;t{const n=Hu[t];if(void 0===n)throw this.manager.itemError(t),e;delete Hu[t];for(let t=0,r=n.length;t{this.manager.itemEnd(t)})),this.manager.itemStart(t)}setResponseType(t){return this.responseType=t,this}setMimeType(t){return this.mimeType=t,this}}class Xu extends Vu{constructor(t){super(t)}load(t,e,n,r){void 0!==this.path&&(t=this.path+t),t=this.manager.resolveURL(t);const i=this,o=Bu.get(t);if(void 0!==o)return i.manager.itemStart(t),setTimeout((function(){e&&e(o),i.manager.itemEnd(t)}),0),o;const a=Wt("img");function s(){l(),Bu.add(t,this),e&&e(this),i.manager.itemEnd(t)}function u(e){l(),r&&r(e),i.manager.itemError(t),i.manager.itemEnd(t)}function l(){a.removeEventListener("load",s,!1),a.removeEventListener("error",u,!1)}return a.addEventListener("load",s,!1),a.addEventListener("error",u,!1),"data:"!==t.slice(0,5)&&void 0!==this.crossOrigin&&(a.crossOrigin=this.crossOrigin),i.manager.itemStart(t),a.src=t,a}}class Yu extends Vu{constructor(t){super(t)}load(t,e,n,r){const i=new ie,o=new Xu(this.manager);return o.setCrossOrigin(this.crossOrigin),o.setPath(this.path),o.load(t,(function(t){i.image=t,i.needsUpdate=!0,void 0!==e&&e(i)}),n,r),i}}class qu extends dn{constructor(t,e=1){super(),this.isLight=!0,this.type="Light",this.color=new Nn(t),this.intensity=e}dispose(){}copy(t,e){return super.copy(t,e),this.color.copy(t.color),this.intensity=t.intensity,this}toJSON(t){const e=super.toJSON(t);return e.object.color=this.color.getHex(),e.object.intensity=this.intensity,void 0!==this.groundColor&&(e.object.groundColor=this.groundColor.getHex()),void 0!==this.distance&&(e.object.distance=this.distance),void 0!==this.angle&&(e.object.angle=this.angle),void 0!==this.decay&&(e.object.decay=this.decay),void 0!==this.penumbra&&(e.object.penumbra=this.penumbra),void 0!==this.shadow&&(e.object.shadow=this.shadow.toJSON()),e}}const $u=new Ue,Ku=new ce,Zu=new ce;class Qu{constructor(t){this.camera=t,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new jt(512,512),this.map=null,this.mapPass=null,this.matrix=new Ue,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new Nr,this._frameExtents=new jt(1,1),this._viewportCount=1,this._viewports=[new oe(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(t){const e=this.camera,n=this.matrix;Ku.setFromMatrixPosition(t.matrixWorld),e.position.copy(Ku),Zu.setFromMatrixPosition(t.target.matrixWorld),e.lookAt(Zu),e.updateMatrixWorld(),$u.multiplyMatrices(e.projectionMatrix,e.matrixWorldInverse),this._frustum.setFromProjectionMatrix($u),n.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),n.multiply($u)}getViewport(t){return this._viewports[t]}getFrameExtents(){return this._frameExtents}dispose(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}copy(t){return this.camera=t.camera.clone(),this.bias=t.bias,this.radius=t.radius,this.mapSize.copy(t.mapSize),this}clone(){return(new this.constructor).copy(this)}toJSON(){const t={};return 0!==this.bias&&(t.bias=this.bias),0!==this.normalBias&&(t.normalBias=this.normalBias),1!==this.radius&&(t.radius=this.radius),512===this.mapSize.x&&512===this.mapSize.y||(t.mapSize=this.mapSize.toArray()),t.camera=this.camera.toJSON(!1).object,delete t.camera.matrix,t}}class Ju extends Qu{constructor(){super(new xr(50,1,.5,500)),this.isSpotLightShadow=!0,this.focus=1}updateMatrices(t){const e=this.camera,n=2*It*t.angle*this.focus,r=this.mapSize.width/this.mapSize.height,i=t.distance||e.far;n===e.fov&&r===e.aspect&&i===e.far||(e.fov=n,e.aspect=r,e.far=i,e.updateProjectionMatrix()),super.updateMatrices(t)}copy(t){return super.copy(t),this.focus=t.focus,this}}class tl extends qu{constructor(t,e,n=0,r=Math.PI/3,i=0,o=2){super(t,e),this.isSpotLight=!0,this.type="SpotLight",this.position.copy(dn.DEFAULT_UP),this.updateMatrix(),this.target=new dn,this.distance=n,this.angle=r,this.penumbra=i,this.decay=o,this.map=null,this.shadow=new Ju}get power(){return this.intensity*Math.PI}set power(t){this.intensity=t/Math.PI}dispose(){this.shadow.dispose()}copy(t,e){return super.copy(t,e),this.distance=t.distance,this.angle=t.angle,this.penumbra=t.penumbra,this.decay=t.decay,this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}const el=new Ue,nl=new ce,rl=new ce;class il extends Qu{constructor(){super(new xr(90,1,.5,500)),this.isPointLightShadow=!0,this._frameExtents=new jt(4,2),this._viewportCount=6,this._viewports=[new oe(2,1,1,1),new oe(0,1,1,1),new oe(3,1,1,1),new oe(1,1,1,1),new oe(3,0,1,1),new oe(1,0,1,1)],this._cubeDirections=[new ce(1,0,0),new ce(-1,0,0),new ce(0,0,1),new ce(0,0,-1),new ce(0,1,0),new ce(0,-1,0)],this._cubeUps=[new ce(0,1,0),new ce(0,1,0),new ce(0,1,0),new ce(0,1,0),new ce(0,0,1),new ce(0,0,-1)]}updateMatrices(t,e=0){const n=this.camera,r=this.matrix,i=t.distance||n.far;i!==n.far&&(n.far=i,n.updateProjectionMatrix()),nl.setFromMatrixPosition(t.matrixWorld),n.position.copy(nl),rl.copy(n.position),rl.add(this._cubeDirections[e]),n.up.copy(this._cubeUps[e]),n.lookAt(rl),n.updateMatrixWorld(),r.makeTranslation(-nl.x,-nl.y,-nl.z),el.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse),this._frustum.setFromProjectionMatrix(el)}}class ol extends qu{constructor(t,e,n=0,r=2){super(t,e),this.isPointLight=!0,this.type="PointLight",this.distance=n,this.decay=r,this.shadow=new il}get power(){return 4*this.intensity*Math.PI}set power(t){this.intensity=t/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(t,e){return super.copy(t,e),this.distance=t.distance,this.decay=t.decay,this.shadow=t.shadow.clone(),this}}class al extends Qu{constructor(){super(new Wr(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}}class sl extends qu{constructor(t,e){super(t,e),this.isDirectionalLight=!0,this.type="DirectionalLight",this.position.copy(dn.DEFAULT_UP),this.updateMatrix(),this.target=new dn,this.shadow=new al}dispose(){this.shadow.dispose()}copy(t){return super.copy(t),this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}class ul extends qu{constructor(t,e){super(t,e),this.isAmbientLight=!0,this.type="AmbientLight"}}class ll{static decodeText(t){if("undefined"!=typeof TextDecoder)return(new TextDecoder).decode(t);let e="";for(let n=0,r=t.length;n{"use strict";n.d(e,{N:()=>s});var r=n(39437);const i={type:"change"},o={type:"start"},a={type:"end"};class s extends r.Qev{constructor(t,e){super(),this.object=t,this.domElement=e,this.domElement.style.touchAction="none",this.enabled=!0,this.target=new r.Pq0,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!0,this.keyPanSpeed=7,this.autoRotate=!1,this.autoRotateSpeed=2,this.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.mouseButtons={LEFT:r.kBv.ROTATE,MIDDLE:r.kBv.DOLLY,RIGHT:r.kBv.PAN},this.touches={ONE:r.wtR.ROTATE,TWO:r.wtR.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._domElementKeyEvents=null,this.getPolarAngle=function(){return c.phi},this.getAzimuthalAngle=function(){return c.theta},this.getDistance=function(){return this.object.position.distanceTo(this.target)},this.listenToKeyEvents=function(t){t.addEventListener("keydown",X),this._domElementKeyEvents=t},this.stopListenToKeyEvents=function(){this._domElementKeyEvents.removeEventListener("keydown",X),this._domElementKeyEvents=null},this.saveState=function(){n.target0.copy(n.target),n.position0.copy(n.object.position),n.zoom0=n.object.zoom},this.reset=function(){n.target.copy(n.target0),n.object.position.copy(n.position0),n.object.zoom=n.zoom0,n.object.updateProjectionMatrix(),n.dispatchEvent(i),n.update(),u=s.NONE},this.update=function(){const e=new r.Pq0,o=(new r.PTz).setFromUnitVectors(t.up,new r.Pq0(0,1,0)),a=o.clone().invert(),m=new r.Pq0,g=new r.PTz,v=2*Math.PI;return function(){const t=n.object.position;e.copy(t).sub(n.target),e.applyQuaternion(o),c.setFromVector3(e),n.autoRotate&&u===s.NONE&&C(2*Math.PI/60/60*n.autoRotateSpeed),n.enableDamping?(c.theta+=h.theta*n.dampingFactor,c.phi+=h.phi*n.dampingFactor):(c.theta+=h.theta,c.phi+=h.phi);let r=n.minAzimuthAngle,y=n.maxAzimuthAngle;return isFinite(r)&&isFinite(y)&&(r<-Math.PI?r+=v:r>Math.PI&&(r-=v),y<-Math.PI?y+=v:y>Math.PI&&(y-=v),c.theta=r<=y?Math.max(r,Math.min(y,c.theta)):c.theta>(r+y)/2?Math.max(r,c.theta):Math.min(y,c.theta)),c.phi=Math.max(n.minPolarAngle,Math.min(n.maxPolarAngle,c.phi)),c.makeSafe(),c.radius*=d,c.radius=Math.max(n.minDistance,Math.min(n.maxDistance,c.radius)),!0===n.enableDamping?n.target.addScaledVector(f,n.dampingFactor):n.target.add(f),e.setFromSpherical(c),e.applyQuaternion(a),t.copy(n.target).add(e),n.object.lookAt(n.target),!0===n.enableDamping?(h.theta*=1-n.dampingFactor,h.phi*=1-n.dampingFactor,f.multiplyScalar(1-n.dampingFactor)):(h.set(0,0,0),f.set(0,0,0)),d=1,!!(p||m.distanceToSquared(n.object.position)>l||8*(1-g.dot(n.object.quaternion))>l)&&(n.dispatchEvent(i),m.copy(n.object.position),g.copy(n.object.quaternion),p=!1,!0)}}(),this.dispose=function(){n.domElement.removeEventListener("contextmenu",Y),n.domElement.removeEventListener("pointerdown",V),n.domElement.removeEventListener("pointercancel",G),n.domElement.removeEventListener("wheel",W),n.domElement.removeEventListener("pointermove",H),n.domElement.removeEventListener("pointerup",G),null!==n._domElementKeyEvents&&(n._domElementKeyEvents.removeEventListener("keydown",X),n._domElementKeyEvents=null)};const n=this,s={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let u=s.NONE;const l=1e-6,c=new r.YHV,h=new r.YHV;let d=1;const f=new r.Pq0;let p=!1;const m=new r.I9Y,g=new r.I9Y,v=new r.I9Y,y=new r.I9Y,b=new r.I9Y,x=new r.I9Y,w=new r.I9Y,_=new r.I9Y,S=new r.I9Y,E=[],A={};function M(){return Math.pow(.95,n.zoomSpeed)}function C(t){h.theta-=t}function T(t){h.phi-=t}const k=function(){const t=new r.Pq0;return function(e,n){t.setFromMatrixColumn(n,0),t.multiplyScalar(-e),f.add(t)}}(),I=function(){const t=new r.Pq0;return function(e,r){!0===n.screenSpacePanning?t.setFromMatrixColumn(r,1):(t.setFromMatrixColumn(r,0),t.crossVectors(n.object.up,t)),t.multiplyScalar(e),f.add(t)}}(),N=function(){const t=new r.Pq0;return function(e,r){const i=n.domElement;if(n.object.isPerspectiveCamera){const o=n.object.position;t.copy(o).sub(n.target);let a=t.length();a*=Math.tan(n.object.fov/2*Math.PI/180),k(2*e*a/i.clientHeight,n.object.matrix),I(2*r*a/i.clientHeight,n.object.matrix)}else n.object.isOrthographicCamera?(k(e*(n.object.right-n.object.left)/n.object.zoom/i.clientWidth,n.object.matrix),I(r*(n.object.top-n.object.bottom)/n.object.zoom/i.clientHeight,n.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),n.enablePan=!1)}}();function P(t){n.object.isPerspectiveCamera?d/=t:n.object.isOrthographicCamera?(n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom*t)),n.object.updateProjectionMatrix(),p=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function O(t){n.object.isPerspectiveCamera?d*=t:n.object.isOrthographicCamera?(n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom/t)),n.object.updateProjectionMatrix(),p=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function L(t){m.set(t.clientX,t.clientY)}function R(t){y.set(t.clientX,t.clientY)}function D(){if(1===E.length)m.set(E[0].pageX,E[0].pageY);else{const t=.5*(E[0].pageX+E[1].pageX),e=.5*(E[0].pageY+E[1].pageY);m.set(t,e)}}function z(){if(1===E.length)y.set(E[0].pageX,E[0].pageY);else{const t=.5*(E[0].pageX+E[1].pageX),e=.5*(E[0].pageY+E[1].pageY);y.set(t,e)}}function F(){const t=E[0].pageX-E[1].pageX,e=E[0].pageY-E[1].pageY,n=Math.sqrt(t*t+e*e);w.set(0,n)}function B(t){if(1==E.length)g.set(t.pageX,t.pageY);else{const e=$(t),n=.5*(t.pageX+e.x),r=.5*(t.pageY+e.y);g.set(n,r)}v.subVectors(g,m).multiplyScalar(n.rotateSpeed);const e=n.domElement;C(2*Math.PI*v.x/e.clientHeight),T(2*Math.PI*v.y/e.clientHeight),m.copy(g)}function U(t){if(1===E.length)b.set(t.pageX,t.pageY);else{const e=$(t),n=.5*(t.pageX+e.x),r=.5*(t.pageY+e.y);b.set(n,r)}x.subVectors(b,y).multiplyScalar(n.panSpeed),N(x.x,x.y),y.copy(b)}function j(t){const e=$(t),r=t.pageX-e.x,i=t.pageY-e.y,o=Math.sqrt(r*r+i*i);_.set(0,o),S.set(0,Math.pow(_.y/w.y,n.zoomSpeed)),P(S.y),w.copy(_)}function V(t){!1!==n.enabled&&(0===E.length&&(n.domElement.setPointerCapture(t.pointerId),n.domElement.addEventListener("pointermove",H),n.domElement.addEventListener("pointerup",G)),function(t){E.push(t)}(t),"touch"===t.pointerType?function(t){switch(q(t),E.length){case 1:switch(n.touches.ONE){case r.wtR.ROTATE:if(!1===n.enableRotate)return;D(),u=s.TOUCH_ROTATE;break;case r.wtR.PAN:if(!1===n.enablePan)return;z(),u=s.TOUCH_PAN;break;default:u=s.NONE}break;case 2:switch(n.touches.TWO){case r.wtR.DOLLY_PAN:if(!1===n.enableZoom&&!1===n.enablePan)return;n.enableZoom&&F(),n.enablePan&&z(),u=s.TOUCH_DOLLY_PAN;break;case r.wtR.DOLLY_ROTATE:if(!1===n.enableZoom&&!1===n.enableRotate)return;n.enableZoom&&F(),n.enableRotate&&D(),u=s.TOUCH_DOLLY_ROTATE;break;default:u=s.NONE}break;default:u=s.NONE}u!==s.NONE&&n.dispatchEvent(o)}(t):function(t){let e;switch(t.button){case 0:e=n.mouseButtons.LEFT;break;case 1:e=n.mouseButtons.MIDDLE;break;case 2:e=n.mouseButtons.RIGHT;break;default:e=-1}switch(e){case r.kBv.DOLLY:if(!1===n.enableZoom)return;!function(t){w.set(t.clientX,t.clientY)}(t),u=s.DOLLY;break;case r.kBv.ROTATE:if(t.ctrlKey||t.metaKey||t.shiftKey){if(!1===n.enablePan)return;R(t),u=s.PAN}else{if(!1===n.enableRotate)return;L(t),u=s.ROTATE}break;case r.kBv.PAN:if(t.ctrlKey||t.metaKey||t.shiftKey){if(!1===n.enableRotate)return;L(t),u=s.ROTATE}else{if(!1===n.enablePan)return;R(t),u=s.PAN}break;default:u=s.NONE}u!==s.NONE&&n.dispatchEvent(o)}(t))}function H(t){!1!==n.enabled&&("touch"===t.pointerType?function(t){switch(q(t),u){case s.TOUCH_ROTATE:if(!1===n.enableRotate)return;B(t),n.update();break;case s.TOUCH_PAN:if(!1===n.enablePan)return;U(t),n.update();break;case s.TOUCH_DOLLY_PAN:if(!1===n.enableZoom&&!1===n.enablePan)return;!function(t){n.enableZoom&&j(t),n.enablePan&&U(t)}(t),n.update();break;case s.TOUCH_DOLLY_ROTATE:if(!1===n.enableZoom&&!1===n.enableRotate)return;!function(t){n.enableZoom&&j(t),n.enableRotate&&B(t)}(t),n.update();break;default:u=s.NONE}}(t):function(t){switch(u){case s.ROTATE:if(!1===n.enableRotate)return;!function(t){g.set(t.clientX,t.clientY),v.subVectors(g,m).multiplyScalar(n.rotateSpeed);const e=n.domElement;C(2*Math.PI*v.x/e.clientHeight),T(2*Math.PI*v.y/e.clientHeight),m.copy(g),n.update()}(t);break;case s.DOLLY:if(!1===n.enableZoom)return;!function(t){_.set(t.clientX,t.clientY),S.subVectors(_,w),S.y>0?P(M()):S.y<0&&O(M()),w.copy(_),n.update()}(t);break;case s.PAN:if(!1===n.enablePan)return;!function(t){b.set(t.clientX,t.clientY),x.subVectors(b,y).multiplyScalar(n.panSpeed),N(x.x,x.y),y.copy(b),n.update()}(t)}}(t))}function G(t){!function(t){delete A[t.pointerId];for(let e=0;e0&&P(M()),n.update()}(t),n.dispatchEvent(a))}function X(t){!1!==n.enabled&&!1!==n.enablePan&&function(t){let e=!1;switch(t.code){case n.keys.UP:t.ctrlKey||t.metaKey||t.shiftKey?T(2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):N(0,n.keyPanSpeed),e=!0;break;case n.keys.BOTTOM:t.ctrlKey||t.metaKey||t.shiftKey?T(-2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):N(0,-n.keyPanSpeed),e=!0;break;case n.keys.LEFT:t.ctrlKey||t.metaKey||t.shiftKey?C(2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):N(n.keyPanSpeed,0),e=!0;break;case n.keys.RIGHT:t.ctrlKey||t.metaKey||t.shiftKey?C(-2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):N(-n.keyPanSpeed,0),e=!0}e&&(t.preventDefault(),n.update())}(t)}function Y(t){!1!==n.enabled&&t.preventDefault()}function q(t){let e=A[t.pointerId];void 0===e&&(e=new r.I9Y,A[t.pointerId]=e),e.set(t.pageX,t.pageY)}function $(t){const e=t.pointerId===E[0].pointerId?E[1]:E[0];return A[e.pointerId]}n.domElement.addEventListener("contextmenu",Y),n.domElement.addEventListener("pointerdown",V),n.domElement.addEventListener("pointercancel",G),n.domElement.addEventListener("wheel",W,{passive:!1}),this.update()}}},53912:(t,e,n)=>{"use strict";n.d(e,{j:()=>a});var r=n(39437);const i=new r.Pq0;function o(t,e,n,r,o,a){const s=2*Math.PI*o/4,u=Math.max(a-2*o,0),l=Math.PI/4;i.copy(e),i[r]=0,i.normalize();const c=.5*s/(s+u),h=1-i.angleTo(t)/l;if(1===Math.sign(i[n]))return h*c;return u/(s+u)+c+c*(1-h)}class a extends r.iNn{constructor(t=1,e=1,n=1,i=2,a=.1){if(i=2*i+1,a=Math.min(t/2,e/2,n/2,a),super(1,1,1,i,i,i),1===i)return;const s=this.toNonIndexed();this.index=null,this.attributes.position=s.attributes.position,this.attributes.normal=s.attributes.normal,this.attributes.uv=s.attributes.uv;const u=new r.Pq0,l=new r.Pq0,c=new r.Pq0(t,e,n).divideScalar(2).subScalar(a),h=this.attributes.position.array,d=this.attributes.normal.array,f=this.attributes.uv.array,p=h.length/6,m=new r.Pq0,g=.5/i;for(let r=0,i=0;r{"use strict";n.d(e,{Z:()=>o});var r=n(39437);const i=new WeakMap;class o extends r.aHM{constructor(t){super(t),this.decoderPath="",this.decoderConfig={},this.decoderBinary=null,this.decoderPending=null,this.workerLimit=4,this.workerPool=[],this.workerNextTaskID=1,this.workerSourceURL="",this.defaultAttributeIDs={position:"POSITION",normal:"NORMAL",color:"COLOR",uv:"TEX_COORD"},this.defaultAttributeTypes={position:"Float32Array",normal:"Float32Array",color:"Float32Array",uv:"Float32Array"}}setDecoderPath(t){return this.decoderPath=t,this}setDecoderConfig(t){return this.decoderConfig=t,this}setWorkerLimit(t){return this.workerLimit=t,this}load(t,e,n,i){const o=new r.Y9S(this.manager);o.setPath(this.path),o.setResponseType("arraybuffer"),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(t,(t=>{this.parse(t,e,i)}),n,i)}parse(t,e,n){this.decodeDracoFile(t,e,null,null,r.er$).catch(n)}decodeDracoFile(t,e,n,i,o=r.Zr2){const a={attributeIDs:n||this.defaultAttributeIDs,attributeTypes:i||this.defaultAttributeTypes,useUniqueIDs:!!n,vertexColorSpace:o};return this.decodeGeometry(t,a).then(e)}decodeGeometry(t,e){const n=JSON.stringify(e);if(i.has(t)){const e=i.get(t);if(e.key===n)return e.promise;if(0===t.byteLength)throw new Error("THREE.DRACOLoader: Unable to re-decode a buffer with different settings. Buffer has already been transferred.")}let r;const o=this.workerNextTaskID++,a=t.byteLength,s=this._getWorker(o,a).then((n=>(r=n,new Promise(((n,i)=>{r._callbacks[o]={resolve:n,reject:i},r.postMessage({type:"decode",id:o,taskConfig:e,buffer:t},[t])}))))).then((t=>this._createGeometry(t.geometry)));return s.catch((()=>!0)).then((()=>{r&&o&&this._releaseTask(r,o)})),i.set(t,{key:n,promise:s}),s}_createGeometry(t){const e=new r.LoY;t.index&&e.setIndex(new r.THS(t.index.array,1));for(let n=0;n{n.load(t,e,void 0,r)}))}preload(){return this._initDecoder(),this}_initDecoder(){if(this.decoderPending)return this.decoderPending;const t="object"!=typeof WebAssembly||"js"===this.decoderConfig.type,e=[];return t?e.push(this._loadLibrary("draco_decoder.js","text")):(e.push(this._loadLibrary("draco_wasm_wrapper.js","text")),e.push(this._loadLibrary("draco_decoder.wasm","arraybuffer"))),this.decoderPending=Promise.all(e).then((e=>{const n=e[0];t||(this.decoderConfig.wasmBinary=e[1]);const r=a.toString(),i=["/* draco decoder */",n,"","/* worker */",r.substring(r.indexOf("{")+1,r.lastIndexOf("}"))].join("\n");this.workerSourceURL=URL.createObjectURL(new Blob([i]))})),this.decoderPending}_getWorker(t,e){return this._initDecoder().then((()=>{if(this.workerPool.lengthe._taskLoad?-1:1}));const n=this.workerPool[this.workerPool.length-1];return n._taskCosts[t]=e,n._taskLoad+=e,n}))}_releaseTask(t,e){t._taskLoad-=t._taskCosts[e],delete t._callbacks[e],delete t._taskCosts[e]}debug(){console.log("Task load: ",this.workerPool.map((t=>t._taskLoad)))}dispose(){for(let t=0;t{const e=t.draco,a=new e.Decoder;try{const t=function(t,e,r,i){const o=i.attributeIDs,a=i.attributeTypes;let s,u;const l=e.GetEncodedGeometryType(r);if(l===t.TRIANGULAR_MESH)s=new t.Mesh,u=e.DecodeArrayToMesh(r,r.byteLength,s);else{if(l!==t.POINT_CLOUD)throw new Error("THREE.DRACOLoader: Unexpected geometry type.");s=new t.PointCloud,u=e.DecodeArrayToPointCloud(r,r.byteLength,s)}if(!u.ok()||0===s.ptr)throw new Error("THREE.DRACOLoader: Decoding failed: "+u.error_msg());const c={index:null,attributes:[]};for(const r in o){const u=self[a[r]];let l,h;if(i.useUniqueIDs)h=o[r],l=e.GetAttributeByUniqueId(s,h);else{if(h=e.GetAttributeId(s,t[o[r]]),-1===h)continue;l=e.GetAttribute(s,h)}const d=n(t,e,s,r,u,l);"color"===r&&(d.vertexColorSpace=i.vertexColorSpace),c.attributes.push(d)}l===t.TRIANGULAR_MESH&&(c.index=function(t,e,n){const r=n.num_faces(),i=3*r,o=4*i,a=t._malloc(o);e.GetTrianglesUInt32Array(n,o,a);const s=new Uint32Array(t.HEAPF32.buffer,a,i).slice();return t._free(a),{array:s,itemSize:1}}(t,e,s));return t.destroy(s),c}(e,a,new Int8Array(r),o),s=t.attributes.map((t=>t.array.buffer));t.index&&s.push(t.index.array.buffer),self.postMessage({type:"decode",id:i.id,geometry:t},s)}catch(t){console.error(t),self.postMessage({type:"error",id:i.id,error:t.message})}finally{e.destroy(a)}}))}}}},64092:(t,e,n)=>{"use strict";n.d(e,{B:()=>o});var r=n(39437);function i(t,e){if(e===r.RJ4)return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."),t;if(e===r.rYR||e===r.O49){let n=t.getIndex();if(null===n){const e=[],r=t.getAttribute("position");if(void 0===r)return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Undefined position attribute. Processing not possible."),t;for(let t=0;t=2.0 are supported.")));const c=new Z(i,{path:e||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});c.fileLoader.setRequestHeader(this.requestHeader);for(let t=0;t=0&&void 0===a[e]&&console.warn('THREE.GLTFLoader: Unknown extension "'+e+'".')}}c.setExtensions(o),c.setPlugins(a),c.parse(n,r)}parseAsync(t,e){const n=this;return new Promise((function(r,i){n.parse(t,e,r,i)}))}}function a(){let t={};return{get:function(e){return t[e]},add:function(e,n){t[e]=n},remove:function(e){delete t[e]},removeAll:function(){t={}}}}const s={KHR_BINARY_GLTF:"KHR_binary_glTF",KHR_DRACO_MESH_COMPRESSION:"KHR_draco_mesh_compression",KHR_LIGHTS_PUNCTUAL:"KHR_lights_punctual",KHR_MATERIALS_CLEARCOAT:"KHR_materials_clearcoat",KHR_MATERIALS_IOR:"KHR_materials_ior",KHR_MATERIALS_SHEEN:"KHR_materials_sheen",KHR_MATERIALS_SPECULAR:"KHR_materials_specular",KHR_MATERIALS_TRANSMISSION:"KHR_materials_transmission",KHR_MATERIALS_IRIDESCENCE:"KHR_materials_iridescence",KHR_MATERIALS_UNLIT:"KHR_materials_unlit",KHR_MATERIALS_VOLUME:"KHR_materials_volume",KHR_TEXTURE_BASISU:"KHR_texture_basisu",KHR_TEXTURE_TRANSFORM:"KHR_texture_transform",KHR_MESH_QUANTIZATION:"KHR_mesh_quantization",KHR_MATERIALS_EMISSIVE_STRENGTH:"KHR_materials_emissive_strength",EXT_TEXTURE_WEBP:"EXT_texture_webp",EXT_TEXTURE_AVIF:"EXT_texture_avif",EXT_MESHOPT_COMPRESSION:"EXT_meshopt_compression",EXT_MESH_GPU_INSTANCING:"EXT_mesh_gpu_instancing"};class u{constructor(t){this.parser=t,this.name=s.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){const t=this.parser,e=this.parser.json.nodes||[];for(let n=0,r=e.length;n=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");return null}return e.loadTextureImage(t,i.source,o)}}class b{constructor(t){this.parser=t,this.name=s.EXT_TEXTURE_WEBP,this.isSupported=null}loadTexture(t){const e=this.name,n=this.parser,r=n.json,i=r.textures[t];if(!i.extensions||!i.extensions[e])return null;const o=i.extensions[e],a=r.images[o.source];let s=n.textureLoader;if(a.uri){const t=n.options.manager.getHandler(a.uri);null!==t&&(s=t)}return this.detectSupport().then((function(i){if(i)return n.loadTextureImage(t,o.source,s);if(r.extensionsRequired&&r.extensionsRequired.indexOf(e)>=0)throw new Error("THREE.GLTFLoader: WebP required by asset but unsupported.");return n.loadTexture(t)}))}detectSupport(){return this.isSupported||(this.isSupported=new Promise((function(t){const e=new Image;e.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",e.onload=e.onerror=function(){t(1===e.height)}}))),this.isSupported}}class x{constructor(t){this.parser=t,this.name=s.EXT_TEXTURE_AVIF,this.isSupported=null}loadTexture(t){const e=this.name,n=this.parser,r=n.json,i=r.textures[t];if(!i.extensions||!i.extensions[e])return null;const o=i.extensions[e],a=r.images[o.source];let s=n.textureLoader;if(a.uri){const t=n.options.manager.getHandler(a.uri);null!==t&&(s=t)}return this.detectSupport().then((function(i){if(i)return n.loadTextureImage(t,o.source,s);if(r.extensionsRequired&&r.extensionsRequired.indexOf(e)>=0)throw new Error("THREE.GLTFLoader: AVIF required by asset but unsupported.");return n.loadTexture(t)}))}detectSupport(){return this.isSupported||(this.isSupported=new Promise((function(t){const e=new Image;e.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAABcAAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAEAAAABAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQAMAAAAABNjb2xybmNseAACAAIABoAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAAB9tZGF0EgAKCBgABogQEDQgMgkQAAAAB8dSLfI=",e.onload=e.onerror=function(){t(1===e.height)}}))),this.isSupported}}class w{constructor(t){this.name=s.EXT_MESHOPT_COMPRESSION,this.parser=t}loadBufferView(t){const e=this.parser.json,n=e.bufferViews[t];if(n.extensions&&n.extensions[this.name]){const t=n.extensions[this.name],r=this.parser.getDependency("buffer",t.buffer),i=this.parser.options.meshoptDecoder;if(!i||!i.supported){if(e.extensionsRequired&&e.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files");return null}return r.then((function(e){const n=t.byteOffset||0,r=t.byteLength||0,o=t.count,a=t.byteStride,s=new Uint8Array(e,n,r);return i.decodeGltfBufferAsync?i.decodeGltfBufferAsync(o,a,s,t.mode,t.filter).then((function(t){return t.buffer})):i.ready.then((function(){const e=new ArrayBuffer(o*a);return i.decodeGltfBuffer(new Uint8Array(e),o,a,s,t.mode,t.filter),e}))}))}return null}}class _{constructor(t){this.name=s.EXT_MESH_GPU_INSTANCING,this.parser=t}createNodeMesh(t){const e=this.parser.json,n=e.nodes[t];if(!n.extensions||!n.extensions[this.name]||void 0===n.mesh)return null;const i=e.meshes[n.mesh];for(const t of i.primitives)if(t.mode!==O.TRIANGLES&&t.mode!==O.TRIANGLE_STRIP&&t.mode!==O.TRIANGLE_FAN&&void 0!==t.mode)return null;const o=n.extensions[this.name].attributes,a=[],s={};for(const t in o)a.push(this.parser.getDependency("accessor",o[t]).then((e=>(s[t]=e,s[t]))));return a.length<1?null:(a.push(this.parser.createNodeMesh(t)),Promise.all(a).then((t=>{const e=t.pop(),n=e.isGroup?e.children:[e],i=t[0].count,o=[];for(const t of n){const e=new r.kn4,n=new r.Pq0,a=new r.PTz,u=new r.Pq0(1,1,1),l=new r.ZLX(t.geometry,t.material,i);for(let t=0;t-1,o=i?navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1]:-1),"undefined"==typeof createImageBitmap||n||i&&o<98?this.textureLoader=new r.Tap(this.options.manager):this.textureLoader=new r.Kzg(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new r.Y9S(this.options.manager),this.fileLoader.setResponseType("arraybuffer"),"use-credentials"===this.options.crossOrigin&&this.fileLoader.setWithCredentials(!0)}setExtensions(t){this.extensions=t}setPlugins(t){this.plugins=t}parse(t,e){const n=this,r=this.json,i=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll((function(t){return t._markDefs&&t._markDefs()})),Promise.all(this._invokeAll((function(t){return t.beforeRoot&&t.beforeRoot()}))).then((function(){return Promise.all([n.getDependencies("scene"),n.getDependencies("animation"),n.getDependencies("camera")])})).then((function(e){const o={scene:e[0][r.scene||0],scenes:e[0],animations:e[1],cameras:e[2],asset:r.asset,parser:n,userData:{}};G(i,o,r),W(o,r),Promise.all(n._invokeAll((function(t){return t.afterRoot&&t.afterRoot(o)}))).then((function(){t(o)}))})).catch(e)}_markDefs(){const t=this.json.nodes||[],e=this.json.skins||[],n=this.json.meshes||[];for(let n=0,r=e.length;n{const n=this.associations.get(t);null!=n&&this.associations.set(e,n);for(const[n,r]of t.children.entries())i(r,e.children[n])};return i(n,r),r.name+="_instance_"+t.uses[e]++,r}_invokeOne(t){const e=Object.values(this.plugins);e.push(this);for(let n=0;n=2&&p.setY(e,h[t*a+1]),a>=3&&p.setZ(e,h[t*a+2]),a>=4&&p.setW(e,h[t*a+3]),a>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}}return p}))}loadTexture(t){const e=this.json,n=this.options,r=e.textures[t].source,i=e.images[r];let o=this.textureLoader;if(i.uri){const t=n.manager.getHandler(i.uri);null!==t&&(o=t)}return this.loadTextureImage(t,r,o)}loadTextureImage(t,e,n){const i=this,o=this.json,a=o.textures[t],s=o.images[e],u=(s.uri||s.bufferView)+":"+a.sampler;if(this.textureCache[u])return this.textureCache[u];const l=this.loadImageSource(e,n).then((function(e){e.flipY=!1,e.name=a.name||s.name||"",""===e.name&&"string"==typeof s.uri&&!1===s.uri.startsWith("data:image/")&&(e.name=s.uri);const n=(o.samplers||{})[a.sampler]||{};return e.magFilter=R[n.magFilter]||r.k6q,e.minFilter=R[n.minFilter]||r.$_I,e.wrapS=D[n.wrapS]||r.GJx,e.wrapT=D[n.wrapT]||r.GJx,i.associations.set(e,{textures:t}),e})).catch((function(){return null}));return this.textureCache[u]=l,l}loadImageSource(t,e){const n=this,i=this.json,o=this.options;if(void 0!==this.sourceCache[t])return this.sourceCache[t].then((t=>t.clone()));const a=i.images[t],s=self.URL||self.webkitURL;let u=a.uri||"",l=!1;if(void 0!==a.bufferView)u=n.getDependency("bufferView",a.bufferView).then((function(t){l=!0;const e=new Blob([t],{type:a.mimeType});return u=s.createObjectURL(e),u}));else if(void 0===a.uri)throw new Error("THREE.GLTFLoader: Image "+t+" is missing URI and bufferView");const c=Promise.resolve(u).then((function(t){return new Promise((function(n,i){let a=n;!0===e.isImageBitmapLoader&&(a=function(t){const e=new r.gPd(t);e.needsUpdate=!0,n(e)}),e.load(r.r6x.resolveURL(t,o.path),a,void 0,i)}))})).then((function(t){var e;return!0===l&&s.revokeObjectURL(u),t.userData.mimeType=a.mimeType||((e=a.uri).search(/\.jpe?g($|\?)/i)>0||0===e.search(/^data\:image\/jpeg/)?"image/jpeg":e.search(/\.webp($|\?)/i)>0||0===e.search(/^data\:image\/webp/)?"image/webp":"image/png"),t})).catch((function(t){throw console.error("THREE.GLTFLoader: Couldn't load texture",u),t}));return this.sourceCache[t]=c,c}assignTexture(t,e,n,r){const i=this;return this.getDependency("texture",n.index).then((function(o){if(!o)return null;if(void 0!==n.texCoord&&n.texCoord>0&&((o=o.clone()).channel=n.texCoord),i.extensions[s.KHR_TEXTURE_TRANSFORM]){const t=void 0!==n.extensions?n.extensions[s.KHR_TEXTURE_TRANSFORM]:void 0;if(t){const e=i.associations.get(o);o=i.extensions[s.KHR_TEXTURE_TRANSFORM].extendTexture(o,t),i.associations.set(o,e)}}return void 0!==r&&(o.encoding=r),t[e]=o,o}))}assignFinalMaterial(t){const e=t.geometry;let n=t.material;const i=void 0===e.attributes.tangent,o=void 0!==e.attributes.color,a=void 0===e.attributes.normal;if(t.isPoints){const t="PointsMaterial:"+n.uuid;let e=this.cache.get(t);e||(e=new r.BH$,r.imn.prototype.copy.call(e,n),e.color.copy(n.color),e.map=n.map,e.sizeAttenuation=!1,this.cache.add(t,e)),n=e}else if(t.isLine){const t="LineBasicMaterial:"+n.uuid;let e=this.cache.get(t);e||(e=new r.mrM,r.imn.prototype.copy.call(e,n),e.color.copy(n.color),e.map=n.map,this.cache.add(t,e)),n=e}if(i||o||a){let t="ClonedMaterial:"+n.uuid+":";i&&(t+="derivative-tangents:"),o&&(t+="vertex-colors:"),a&&(t+="flat-shading:");let e=this.cache.get(t);e||(e=n.clone(),o&&(e.vertexColors=!0),a&&(e.flatShading=!0),i&&(e.normalScale&&(e.normalScale.y*=-1),e.clearcoatNormalScale&&(e.clearcoatNormalScale.y*=-1)),this.cache.add(t,e),this.associations.set(e,this.associations.get(n))),n=e}t.material=n}getMaterialType(){return r._4j}loadMaterial(t){const e=this,n=this.json,i=this.extensions,o=n.materials[t];let a;const u={},l=[];if((o.extensions||{})[s.KHR_MATERIALS_UNLIT]){const t=i[s.KHR_MATERIALS_UNLIT];a=t.getMaterialType(),l.push(t.extendParams(u,o,e))}else{const n=o.pbrMetallicRoughness||{};if(u.color=new r.Q1f(1,1,1),u.opacity=1,Array.isArray(n.baseColorFactor)){const t=n.baseColorFactor;u.color.fromArray(t),u.opacity=t[3]}void 0!==n.baseColorTexture&&l.push(e.assignTexture(u,"map",n.baseColorTexture,r.S2Q)),u.metalness=void 0!==n.metallicFactor?n.metallicFactor:1,u.roughness=void 0!==n.roughnessFactor?n.roughnessFactor:1,void 0!==n.metallicRoughnessTexture&&(l.push(e.assignTexture(u,"metalnessMap",n.metallicRoughnessTexture)),l.push(e.assignTexture(u,"roughnessMap",n.metallicRoughnessTexture))),a=this._invokeOne((function(e){return e.getMaterialType&&e.getMaterialType(t)})),l.push(Promise.all(this._invokeAll((function(e){return e.extendMaterialParams&&e.extendMaterialParams(t,u)}))))}!0===o.doubleSided&&(u.side=r.$EB);const c=o.alphaMode||j;if(c===H?(u.transparent=!0,u.depthWrite=!1):(u.transparent=!1,c===V&&(u.alphaTest=void 0!==o.alphaCutoff?o.alphaCutoff:.5)),void 0!==o.normalTexture&&a!==r.V9B&&(l.push(e.assignTexture(u,"normalMap",o.normalTexture)),u.normalScale=new r.I9Y(1,1),void 0!==o.normalTexture.scale)){const t=o.normalTexture.scale;u.normalScale.set(t,t)}return void 0!==o.occlusionTexture&&a!==r.V9B&&(l.push(e.assignTexture(u,"aoMap",o.occlusionTexture)),void 0!==o.occlusionTexture.strength&&(u.aoMapIntensity=o.occlusionTexture.strength)),void 0!==o.emissiveFactor&&a!==r.V9B&&(u.emissive=(new r.Q1f).fromArray(o.emissiveFactor)),void 0!==o.emissiveTexture&&a!==r.V9B&&l.push(e.assignTexture(u,"emissiveMap",o.emissiveTexture,r.S2Q)),Promise.all(l).then((function(){const n=new a(u);return o.name&&(n.name=o.name),W(n,o),e.associations.set(n,{materials:t}),o.extensions&&G(i,n,o),n}))}createUniqueName(t){const e=r.Nwf.sanitizeNodeName(t||"");let n=e;for(let t=1;this.nodeNamesUsed[n];++t)n=e+"_"+t;return this.nodeNamesUsed[n]=!0,n}loadGeometries(t){const e=this,n=this.extensions,i=this.primitiveCache;function o(t){return n[s.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(t,e).then((function(n){return Q(n,t,e)}))}const a=[];for(let n=0,u=t.length;n0&&X(f,a),f.name=e.createUniqueName(a.name||"mesh_"+t),W(f,a),d.extensions&&G(o,f,d),e.assignFinalMaterial(f),c.push(f)}for(let n=0,r=c.length;n1?new r.YJl:1===e.length?e[0]:new r.B69,s!==e[0])for(let t=0,n=e.length;t{const e=new Map;for(const[t,n]of i.associations)(t instanceof r.imn||t instanceof r.gPd)&&e.set(t,n);return t.traverse((t=>{const n=i.associations.get(t);null!=n&&e.set(t,n)})),e})(o),o}))}}function Q(t,e,n){const i=e.attributes,o=[];function a(e,r){return n.getDependency("accessor",e).then((function(e){t.setAttribute(r,e)}))}for(const e in i){const n=F[e]||e.toLowerCase();n in t.attributes||o.push(a(i[e],n))}if(void 0!==e.indices&&!t.index){const r=n.getDependency("accessor",e.indices).then((function(e){t.setIndex(e)}));o.push(r)}return W(t,e),function(t,e,n){const i=e.attributes,o=new r.NRn;if(void 0===i.POSITION)return;{const t=n.json.accessors[i.POSITION],e=t.min,a=t.max;if(void 0===e||void 0===a)return void console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.");if(o.set(new r.Pq0(e[0],e[1],e[2]),new r.Pq0(a[0],a[1],a[2])),t.normalized){const e=$(L[t.componentType]);o.min.multiplyScalar(e),o.max.multiplyScalar(e)}}const a=e.targets;if(void 0!==a){const t=new r.Pq0,e=new r.Pq0;for(let r=0,i=a.length;r{"use strict";n.r(e),n.d(e,{__addDisposableResource:()=>L,__assign:()=>o,__asyncDelegator:()=>A,__asyncGenerator:()=>E,__asyncValues:()=>M,__await:()=>S,__awaiter:()=>p,__classPrivateFieldGet:()=>N,__classPrivateFieldIn:()=>O,__classPrivateFieldSet:()=>P,__createBinding:()=>g,__decorate:()=>s,__disposeResources:()=>D,__esDecorate:()=>l,__exportStar:()=>v,__extends:()=>i,__generator:()=>m,__importDefault:()=>I,__importStar:()=>k,__makeTemplateObject:()=>C,__metadata:()=>f,__param:()=>u,__propKey:()=>h,__read:()=>b,__rest:()=>a,__runInitializers:()=>c,__setFunctionName:()=>d,__spread:()=>x,__spreadArray:()=>_,__spreadArrays:()=>w,__values:()=>y,default:()=>z});var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,r){e(n,r,t)}}function l(t,e,n,r,i,o){function a(t){if(void 0!==t&&"function"!=typeof t)throw new TypeError("Function expected");return t}for(var s,u=r.kind,l="getter"===u?"get":"setter"===u?"set":"value",c=!e&&t?r.static?t:t.prototype:null,h=e||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),d=!1,f=n.length-1;f>=0;f--){var p={};for(var m in r)p[m]="access"===m?{}:r[m];for(var m in r.access)p.access[m]=r.access[m];p.addInitializer=function(t){if(d)throw new TypeError("Cannot add initializers after decoration has completed");o.push(a(t||null))};var g=(0,n[f])("accessor"===u?{get:h.get,set:h.set}:h[l],p);if("accessor"===u){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(s=a(g.get))&&(h.get=s),(s=a(g.set))&&(h.set=s),(s=a(g.init))&&i.unshift(s)}else(s=a(g))&&("field"===u?i.unshift(s):h[l]=s)}c&&Object.defineProperty(c,r.name,h),d=!0}function c(t,e,n){for(var r=arguments.length>2,i=0;i0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function x(){for(var t=[],e=0;e1||s(t,e)}))})}function s(t,e){try{(n=i[t](e)).value instanceof S?Promise.resolve(n.value.v).then(u,l):c(o[0][2],n)}catch(t){c(o[0][3],t)}var n}function u(t){s("next",t)}function l(t){s("throw",t)}function c(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function A(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:S(t[r](e)),done:!1}:i?i(e):e}:i}}function M(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=y(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}}function C(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var T=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function k(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&g(e,t,n);return T(e,t),e}function I(t){return t&&t.__esModule?t:{default:t}}function N(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}function P(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n}function O(t,e){if(null===e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof t?e===t:t.has(e)}function L(t,e,n){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=e[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=e[Symbol.dispose]}if("function"!=typeof r)throw new TypeError("Object not disposable.");t.stack.push({value:e,dispose:r,async:n})}else n&&t.stack.push({async:!0});return e}var R="function"==typeof SuppressedError?SuppressedError:function(t,e,n){var r=new Error(n);return r.name="SuppressedError",r.error=t,r.suppressed=e,r};function D(t){function e(e){t.error=t.hasError?new R(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}return function n(){for(;t.stack.length;){var r=t.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,(function(t){return e(t),n()}))}catch(t){e(t)}}if(t.hasError)throw t.error}()}const z={__extends:i,__assign:o,__rest:a,__decorate:s,__param:u,__metadata:f,__awaiter:p,__generator:m,__createBinding:g,__exportStar:v,__values:y,__read:b,__spread:x,__spreadArrays:w,__spreadArray:_,__await:S,__asyncGenerator:E,__asyncDelegator:A,__asyncValues:M,__makeTemplateObject:C,__importStar:k,__importDefault:I,__classPrivateFieldGet:N,__classPrivateFieldSet:P,__classPrivateFieldIn:O,__addDisposableResource:L,__disposeResources:D}},72902:(t,e,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;es});var i={strings:["These are the default values...","You know what you should do?","Use your own!","Have a great day!"],stringsElement:null,typeSpeed:0,startDelay:0,backSpeed:0,smartBackspace:!0,shuffle:!1,backDelay:700,fadeOut:!1,fadeOutClass:"typed-fade-out",fadeOutDelay:500,loop:!1,loopCount:1/0,showCursor:!0,cursorChar:"|",autoInsertCss:!0,attr:null,bindInputFocusEvents:!1,contentType:"html",onBegin:function(t){},onComplete:function(t){},preStringTyped:function(t,e){},onStringTyped:function(t,e){},onLastStringBackspaced:function(t){},onTypingPaused:function(t,e){},onTypingResumed:function(t,e){},onReset:function(t){},onStop:function(t,e){},onStart:function(t,e){},onDestroy:function(t){}},o=new(function(){function t(){}var e=t.prototype;return e.load=function(t,e,n){if(t.el="string"==typeof n?document.querySelector(n):n,t.options=r({},i,e),t.isInput="input"===t.el.tagName.toLowerCase(),t.attr=t.options.attr,t.bindInputFocusEvents=t.options.bindInputFocusEvents,t.showCursor=!t.isInput&&t.options.showCursor,t.cursorChar=t.options.cursorChar,t.cursorBlinking=!0,t.elContent=t.attr?t.el.getAttribute(t.attr):t.el.textContent,t.contentType=t.options.contentType,t.typeSpeed=t.options.typeSpeed,t.startDelay=t.options.startDelay,t.backSpeed=t.options.backSpeed,t.smartBackspace=t.options.smartBackspace,t.backDelay=t.options.backDelay,t.fadeOut=t.options.fadeOut,t.fadeOutClass=t.options.fadeOutClass,t.fadeOutDelay=t.options.fadeOutDelay,t.isPaused=!1,t.strings=t.options.strings.map((function(t){return t.trim()})),t.stringsElement="string"==typeof t.options.stringsElement?document.querySelector(t.options.stringsElement):t.options.stringsElement,t.stringsElement){t.strings=[],t.stringsElement.style.cssText="clip: rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px;";var o=Array.prototype.slice.apply(t.stringsElement.children),a=o.length;if(a)for(var s=0;s0&&(t.strPos=t.currentElContent.length-1,t.strings.unshift(t.currentElContent)),t.sequence=[],t.strings)t.sequence[u]=u;t.arrayPos=0,t.stopNum=0,t.loop=t.options.loop,t.loopCount=t.options.loopCount,t.curLoop=0,t.shuffle=t.options.shuffle,t.pause={status:!1,typewrite:!0,curString:"",curStrPos:0},t.typingComplete=!1,t.autoInsertCss=t.options.autoInsertCss,t.autoInsertCss&&(this.appendCursorAnimationCss(t),this.appendFadeOutAnimationCss(t))},e.getCurrentElContent=function(t){return t.attr?t.el.getAttribute(t.attr):t.isInput?t.el.value:"html"===t.contentType?t.el.innerHTML:t.el.textContent},e.appendCursorAnimationCss=function(t){var e="data-typed-js-cursor-css";if(t.showCursor&&!document.querySelector("["+e+"]")){var n=document.createElement("style");n.setAttribute(e,"true"),n.innerHTML="\n .typed-cursor{\n opacity: 1;\n }\n .typed-cursor.typed-cursor--blink{\n animation: typedjsBlink 0.7s infinite;\n -webkit-animation: typedjsBlink 0.7s infinite;\n animation: typedjsBlink 0.7s infinite;\n }\n @keyframes typedjsBlink{\n 50% { opacity: 0.0; }\n }\n @-webkit-keyframes typedjsBlink{\n 0% { opacity: 1; }\n 50% { opacity: 0.0; }\n 100% { opacity: 1; }\n }\n ",document.body.appendChild(n)}},e.appendFadeOutAnimationCss=function(t){var e="data-typed-fadeout-js-css";if(t.fadeOut&&!document.querySelector("["+e+"]")){var n=document.createElement("style");n.setAttribute(e,"true"),n.innerHTML="\n .typed-fade-out{\n opacity: 0;\n transition: opacity .25s;\n }\n .typed-cursor.typed-cursor--blink.typed-fade-out{\n -webkit-animation: 0;\n animation: 0;\n }\n ",document.body.appendChild(n)}},t}()),a=new(function(){function t(){}var e=t.prototype;return e.typeHtmlChars=function(t,e,n){if("html"!==n.contentType)return e;var r=t.substring(e).charAt(0);if("<"===r||"&"===r){var i;for(i="<"===r?">":";";t.substring(e+1).charAt(0)!==i&&!(1+ ++e>t.length););e++}return e},e.backSpaceHtmlChars=function(t,e,n){if("html"!==n.contentType)return e;var r=t.substring(e).charAt(0);if(">"===r||";"===r){var i;for(i=">"===r?"<":"&";t.substring(e-1).charAt(0)!==i&&!(--e<0););e--}return e},t}()),s=function(){function t(t,e){o.load(this,e,t),this.begin()}var e=t.prototype;return e.toggle=function(){this.pause.status?this.start():this.stop()},e.stop=function(){this.typingComplete||this.pause.status||(this.toggleBlinking(!0),this.pause.status=!0,this.options.onStop(this.arrayPos,this))},e.start=function(){this.typingComplete||this.pause.status&&(this.pause.status=!1,this.pause.typewrite?this.typewrite(this.pause.curString,this.pause.curStrPos):this.backspace(this.pause.curString,this.pause.curStrPos),this.options.onStart(this.arrayPos,this))},e.destroy=function(){this.reset(!1),this.options.onDestroy(this)},e.reset=function(t){void 0===t&&(t=!0),clearInterval(this.timeout),this.replaceText(""),this.cursor&&this.cursor.parentNode&&(this.cursor.parentNode.removeChild(this.cursor),this.cursor=null),this.strPos=0,this.arrayPos=0,this.curLoop=0,t&&(this.insertCursor(),this.options.onReset(this),this.begin())},e.begin=function(){var t=this;this.options.onBegin(this),this.typingComplete=!1,this.shuffleStringsIfNeeded(this),this.insertCursor(),this.bindInputFocusEvents&&this.bindFocusEvents(),this.timeout=setTimeout((function(){0===t.strPos?t.typewrite(t.strings[t.sequence[t.arrayPos]],t.strPos):t.backspace(t.strings[t.sequence[t.arrayPos]],t.strPos)}),this.startDelay)},e.typewrite=function(t,e){var n=this;this.fadeOut&&this.el.classList.contains(this.fadeOutClass)&&(this.el.classList.remove(this.fadeOutClass),this.cursor&&this.cursor.classList.remove(this.fadeOutClass));var r=this.humanizer(this.typeSpeed),i=1;!0!==this.pause.status?this.timeout=setTimeout((function(){e=a.typeHtmlChars(t,e,n);var r=0,o=t.substring(e);if("^"===o.charAt(0)&&/^\^\d+/.test(o)){var s=1;s+=(o=/\d+/.exec(o)[0]).length,r=parseInt(o),n.temporaryPause=!0,n.options.onTypingPaused(n.arrayPos,n),t=t.substring(0,e)+t.substring(e+s),n.toggleBlinking(!0)}if("`"===o.charAt(0)){for(;"`"!==t.substring(e+i).charAt(0)&&(i++,!(e+i>t.length)););var u=t.substring(0,e),l=t.substring(u.length+1,e+i),c=t.substring(e+i+1);t=u+l+c,i--}n.timeout=setTimeout((function(){n.toggleBlinking(!1),e>=t.length?n.doneTyping(t,e):n.keepTyping(t,e,i),n.temporaryPause&&(n.temporaryPause=!1,n.options.onTypingResumed(n.arrayPos,n))}),r)}),r):this.setPauseStatus(t,e,!0)},e.keepTyping=function(t,e,n){0===e&&(this.toggleBlinking(!1),this.options.preStringTyped(this.arrayPos,this));var r=t.substring(0,e+=n);this.replaceText(r),this.typewrite(t,e)},e.doneTyping=function(t,e){var n=this;this.options.onStringTyped(this.arrayPos,this),this.toggleBlinking(!0),this.arrayPos===this.strings.length-1&&(this.complete(),!1===this.loop||this.curLoop===this.loopCount)||(this.timeout=setTimeout((function(){n.backspace(t,e)}),this.backDelay))},e.backspace=function(t,e){var n=this;if(!0!==this.pause.status){if(this.fadeOut)return this.initFadeOut();this.toggleBlinking(!1);var r=this.humanizer(this.backSpeed);this.timeout=setTimeout((function(){e=a.backSpaceHtmlChars(t,e,n);var r=t.substring(0,e);if(n.replaceText(r),n.smartBackspace){var i=n.strings[n.arrayPos+1];n.stopNum=i&&r===i.substring(0,e)?e:0}e>n.stopNum?(e--,n.backspace(t,e)):e<=n.stopNum&&(n.arrayPos++,n.arrayPos===n.strings.length?(n.arrayPos=0,n.options.onLastStringBackspaced(),n.shuffleStringsIfNeeded(),n.begin()):n.typewrite(n.strings[n.sequence[n.arrayPos]],e))}),r)}else this.setPauseStatus(t,e,!1)},e.complete=function(){this.options.onComplete(this),this.loop?this.curLoop++:this.typingComplete=!0},e.setPauseStatus=function(t,e,n){this.pause.typewrite=n,this.pause.curString=t,this.pause.curStrPos=e},e.toggleBlinking=function(t){this.cursor&&(this.pause.status||this.cursorBlinking!==t&&(this.cursorBlinking=t,t?this.cursor.classList.add("typed-cursor--blink"):this.cursor.classList.remove("typed-cursor--blink")))},e.humanizer=function(t){return Math.round(Math.random()*t/2)+t},e.shuffleStringsIfNeeded=function(){this.shuffle&&(this.sequence=this.sequence.sort((function(){return Math.random()-.5})))},e.initFadeOut=function(){var t=this;return this.el.className+=" "+this.fadeOutClass,this.cursor&&(this.cursor.className+=" "+this.fadeOutClass),setTimeout((function(){t.arrayPos++,t.replaceText(""),t.strings.length>t.arrayPos?t.typewrite(t.strings[t.sequence[t.arrayPos]],0):(t.typewrite(t.strings[0],0),t.arrayPos=0)}),this.fadeOutDelay)},e.replaceText=function(t){this.attr?this.el.setAttribute(this.attr,t):this.isInput?this.el.value=t:"html"===this.contentType?this.el.innerHTML=t:this.el.textContent=t},e.bindFocusEvents=function(){var t=this;this.isInput&&(this.el.addEventListener("focus",(function(e){t.stop()})),this.el.addEventListener("blur",(function(e){t.el.value&&0!==t.el.value.length||t.start()})))},e.insertCursor=function(){this.showCursor&&(this.cursor||(this.cursor=document.createElement("span"),this.cursor.className="typed-cursor",this.cursor.setAttribute("aria-hidden",!0),this.cursor.innerHTML=this.cursorChar,this.el.parentNode&&this.el.parentNode.insertBefore(this.cursor,this.el.nextSibling)))},t}()},62454:(t,e,n)=>{"use strict";n.d(e,{A:()=>_});var r=n(92836),i=n(84722),o=n(29308),a=n(57861),s=n(45558),u=n(98026),l=n(73098),c=n(47698),h=n(56448),d="__zr_normal__",f=r.Wx.concat(["ignore"]),p=(0,u.reduce)(r.Wx,(function(t,e){return t[e]=!0,t}),{ignore:!1}),m={},g=new o.A(0,0,0,0),v=function(){function t(t){this.id=(0,u.guid)(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=t,r[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=e.innerTransformable,o=void 0,a=void 0,u=!1;i.parent=r?this:null;var l=!1;if(i.copyTransform(e),null!=n.position){var c=g;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),r||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(m,n,c):(0,s.X4)(m,n,c),i.x=m.x,i.y=m.y,o=m.align,a=m.verticalAlign;var d=n.origin;if(d&&null!=n.rotation){var f=void 0,p=void 0;"center"===d?(f=.5*c.width,p=.5*c.height):(f=(0,s.lo)(d[0],c.width),p=(0,s.lo)(d[1],c.height)),l=!0,i.originX=-i.x+f+(r?0:c.x),i.originY=-i.y+p+(r?0:c.y)}}null!=n.rotation&&(i.rotation=n.rotation);var v=n.offset;v&&(i.x+=v[0],i.y+=v[1],l||(i.originX=-v[0],i.originY=-v[1]));var y=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,b=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),x=void 0,w=void 0,_=void 0;y&&this.canBeInsideText()?(x=n.insideFill,w=n.insideStroke,null!=x&&"auto"!==x||(x=this.getInsideTextFill()),null!=w&&"auto"!==w||(w=this.getInsideTextStroke(x),_=!0)):(x=n.outsideFill,w=n.outsideStroke,null!=x&&"auto"!==x||(x=this.getOutsideFill()),null!=w&&"auto"!==w||(w=this.getOutsideStroke(x),_=!0)),(x=x||"#000")===b.fill&&w===b.stroke&&_===b.autoStroke&&o===b.align&&a===b.verticalAlign||(u=!0,b.fill=x,b.stroke=w,b.autoStroke=_,b.align=o,b.verticalAlign=a,e.setDefaultTextStyle(b)),e.__dirty|=h.M,u&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?l.el:l._S},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&(0,c.parse)(e);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,(0,c.stringify)(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},(0,u.extend)(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if((0,u.isObject)(t))for(var n=t,r=(0,u.keys)(n),i=0;i0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(d,!1,t)},t.prototype.useState=function(t,e,n,r){var i=t===d;if(this.hasState()||!i){var o=this.currentStates,a=this.stateTransition;if(!((0,u.indexOf)(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||i){i||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||r);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var c=this._textContent,f=this._textGuide;return c&&c.useState(t,e,n,l),f&&f.useState(t,e,n,l),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~h.M),s}(0,u.logError)("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var r=[],i=this.currentStates,o=t.length,a=o===i.length;if(a)for(var s=0;s0,p);var m=this._textContent,g=this._textGuide;m&&m.useStates(t,e,d),g&&g.useStates(t,e,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~h.M)}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},t.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var r=this.currentStates.slice(),i=(0,u.indexOf)(r,t),o=(0,u.indexOf)(r,e)>=0;i>=0?o?r.splice(i,1):r[i]=e:n&&!o&&r.push(e),this.useStates(r)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},r=0;r=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,r=n.length,i=[],o=0;o0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var d=0;d0||o.force&&!s.length){var M,C=void 0,T=void 0,k=void 0;if(l){T={},p&&(C={});for(E=0;E{"use strict";n.d(e,{F:()=>b,A:()=>A});var r={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=r*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-r.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*r.bounceIn(2*t):.5*r.bounceOut(2*t-1)+.5}};const i=r;var o=n(98026),a=n(89259),s=/cubic-bezier\(([0-9,\.e ]+)\)/;function u(t){var e=t&&s.exec(t);if(e){var n=e[1].split(","),r=+(0,o.trim)(n[0]),i=+(0,o.trim)(n[1]),u=+(0,o.trim)(n[2]),l=+(0,o.trim)(n[3]);if(isNaN(r+i+u+l))return;var c=[];return function(t){return t<=0?0:t>=1?1:(0,a._E)(0,r,u,1,t,c)&&(0,a.Yb)(0,i,l,1,c[0])}}}const l=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||o.noop,this.ondestroy=t.ondestroy||o.noop,this.onrestart=t.onrestart||o.noop,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,r=t-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=(0,o.isFunction)(t)?t:i[t]||u(t)},t}();var c=n(47698),h=n(38123);Math.round;h.A.hasGlobalWindow&&(0,o.isFunction)(window.btoa);var d=Array.prototype.slice;function f(t,e,n){return(e-t)*n+t}function p(t,e,n,r){for(var i=e.length,o=0;or?e:t,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;sa)r.length=a;else for(var s=o;s=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var r=this.keyframes,a=r.length,s=!1,l=6,h=e;if((0,o.isArrayLike)(e)){var d=function(t){return(0,o.isArrayLike)(t&&t[0])?2:1}(e);l=d,(1===d&&!(0,o.isNumber)(e[0])||2===d&&!(0,o.isNumber)(e[0][0]))&&(s=!0)}else if((0,o.isNumber)(e)&&!(0,o.eqNaN)(e))l=0;else if((0,o.isString)(e))if(isNaN(+e)){var f=c.parse(e);f&&(h=f,l=3)}else l=0;else if((0,o.isGradientObject)(e)){var p=(0,o.extend)({},h);p.colorStops=(0,o.map)(e.colorStops,(function(t){return{offset:t.offset,color:c.parse(t.color)}})),"linear"===e.type?l=4:function(t){return"radial"===t.type}(e)&&(l=5),h=p}0===a?this.valType=l:l===this.valType&&6!==l||(s=!0),this.discrete=this.discrete||s;var m={time:t,value:h,rawValue:e,percent:0};return n&&(m.easing=n,m.easingFunc=(0,o.isFunction)(n)?n:i[n]||u(n)),r.push(m),m},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=_(r),u=w(r),l=0;l=0&&!(l[n].percent<=e);n--);n=g(n,c-2)}else{for(n=m;ne);n++);n=g(n-1,c-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=e;var v=i.percent-r.percent,y=0===v?1:g((e-r.percent)/v,1);i.easingFunc&&(y=i.easingFunc(y));var b=a?this._additiveValue:d?S:t[h];if(!_(u)&&!d||b||(b=this._additiveValue=[]),this.discrete)t[h]=y<1?r.rawValue:i.rawValue;else if(_(u))1===u?p(b,r[s],i[s],y):function(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;a0&&s.addKeyframe(0,b(u),r),this._trackKeys.push(a)}s.addKeyframe(t,b(e[a]),r)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],r=this._maxTime||0,i=0;i1){var s=a.pop();i.addKeyframe(s.time,t[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}()},45825:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=n(38123).A.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)}},30536:(t,e,n)=>{"use strict";n.d(e,{A:()=>x});var r=n(73098),i=n(98026),o=n(15727),a=n(57861),s=n(53479),u=n(16104),l=n(29308),c=n(56448),h=n(59741);function d(t,e,n){var r=h.yh.createCanvas(),i=e.getWidth(),o=e.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",t)),r.width=i*n,r.height=o*n,r}const f=function(t){function e(e,n,o){var a,s=t.call(this)||this;s.motionBlur=!1,s.lastFrameAlpha=.7,s.dpr=1,s.virtual=!1,s.config={},s.incremental=!1,s.zlevel=0,s.maxRepaintRectCount=5,s.__dirty=!0,s.__firstTimePaint=!0,s.__used=!1,s.__drawIndex=0,s.__startIndex=0,s.__endIndex=0,s.__prevStartIndex=null,s.__prevEndIndex=null,o=o||r.Y5,"string"==typeof e?a=d(e,n,o):i.isObject(e)&&(e=(a=e).id),s.id=e,s.dom=a;var u=a.style;return u&&(i.disableUserSelect(a),a.onselectstart=function(){return!1},u.padding="0",u.margin="0",u.borderWidth="0"),s.painter=n,s.dpr=o,s}return(0,o.C6)(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=d("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,o=[],a=this.maxRepaintRectCount,s=!1,u=new l.A(0,0,0,0);function h(t){if(t.isFinite()&&!t.isZero())if(0===o.length){(e=new l.A(0,0,0,0)).copy(t),o.push(e)}else{for(var e,n=!1,r=1/0,i=0,c=0;c=a)}}for(var d=this.__startIndex;d15)break}n.prevElClipPaths&&l.restore()};if(d)if(0===d.length)s=u.__endIndex;else for(var x=f.dpr,w=0;w0&&t>r[0]){for(s=0;st);s++);a=n[r[s]]}if(r.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var u=a.dom;u.nextSibling?o.insertBefore(e.dom,u.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,r=0;r0?y:0),this._needsManuallyCompositing),h.__builtin__||i.logError("ZLevel "+l+" has been used by unkown layer "+h.id),h!==a&&(h.__used=!0,h.__startIndex!==o&&(h.__dirty=!0),h.__startIndex=o,h.incremental?h.__drawIndex=-1:h.__drawIndex=o,e(o),a=h),u.__dirty&c.M&&!u.__inHover&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__drawIndex=o))}e(o),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,i.each(this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?i.merge(n[t],e,!0):n[t]=e;for(var r=0;r{"use strict";n.d(e,{V$:()=>O,Xi:()=>P,ZQ:()=>x});var r=n(71519),i=n(68717),o=n(12191),a=n(53479),s=n(69099),u=n(90540),l=n(19845),c=n(98026);function h(t){var e,n,r=t.style,i=r.lineDash&&r.lineWidth>0&&(e=r.lineDash,n=r.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:(0,c.isNumber)(e)?[e]:(0,c.isArray)(e)?e:null:null),o=r.lineDashOffset;if(i){var a=r.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(i=(0,c.map)(i,(function(t){return t/a})),o/=a)}return[i,o]}var d=n(56448),f=n(59741),p=new i.A(!0);function m(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function g(t){return"string"==typeof t&&"none"!==t}function v(t){var e=t.fill;return null!=e&&"none"!==e}function y(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function b(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function x(t,e,n){var r=(0,o.OD)(e.image,e.__image,n);if((0,o.xA)(r)){var i=t.createPattern(r,e.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*c.RADIAN_TO_DEGREE),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}var w=["shadowBlur","shadowOffsetX","shadowOffsetY"],_=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function S(t,e,n,i,o){var a=!1;if(!i&&e===(n=n||{}))return!1;if(i||e.opacity!==n.opacity){I(t,o),a=!0;var s=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(s)?r.oN.opacity:s}(i||e.blend!==n.blend)&&(a||(I(t,o),a=!0),t.globalCompositeOperation=e.blend||r.oN.blend);for(var u=0;u{"use strict";function r(t){return isFinite(t)}function i(t,e,n){for(var i="radial"===e.type?function(t,e,n){var i=n.width,o=n.height,a=Math.min(i,o),s=null==e.x?.5:e.x,u=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(s=s*i+n.x,u=u*o+n.y,l*=a),s=r(s)?s:.5,u=r(u)?u:.5,l=l>=0&&r(l)?l:.5,t.createRadialGradient(s,u,0,s,u,l)}(t,e,n):function(t,e,n){var i=null==e.x?0:e.x,o=null==e.x2?1:e.x2,a=null==e.y?0:e.y,s=null==e.y2?0:e.y2;return e.global||(i=i*n.width+n.x,o=o*n.width+n.x,a=a*n.height+n.y,s=s*n.height+n.y),i=r(i)?i:0,o=r(o)?o:1,a=r(a)?a:0,s=r(s)?s:0,t.createLinearGradient(i,a,o,s)}(t,e,n),o=e.colorStops,a=0;ai,KU:()=>o,YC:()=>s})},73098:(t,e,n)=>{"use strict";n.d(e,{Y5:()=>i,_S:()=>a,el:()=>s,ps:()=>o,tY:()=>u});var r=1;n(38123).A.hasGlobalWindow&&(r=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var i=r,o=.4,a="#333",s="#ccc",u="#eee"},51183:(t,e,n)=>{"use strict";n.d(e,{l:()=>a});var r=n(76873),i=1e-8;function o(t,e){return Math.abs(t-e){"use strict";n.d(e,{NO:()=>l,RG:()=>s,X4:()=>p,ks:()=>d,ll:()=>c,lo:()=>f,sZ:()=>h});var r=n(29308),i=n(60501),o=n(59741),a={};function s(t,e){e=e||o.OH;var n=a[e];n||(n=a[e]=new i.Ay(500));var r=n.get(t);return null==r&&(r=o.yh.measureText(t,e).width,n.put(t,r)),r}function u(t,e,n,i){var o=s(t,e),a=d(e),u=c(0,o,n),l=h(0,a,i);return new r.A(u,l,o,a)}function l(t,e,n,i){var o=((t||"")+"").split("\n");if(1===o.length)return u(o[0],e,n,i);for(var a=new r.A(0,0,0,0),s=0;s=0?parseFloat(t)/100*e:parseFloat(t):t}function p(t,e,n){var r=e.position||"inside",i=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,u=n.x,l=n.y,c="left",h="top";if(r instanceof Array)u+=f(r[0],n.width),l+=f(r[1],n.height),c=null,h=null;else switch(r){case"left":u-=i,l+=s,c="right",h="middle";break;case"right":u+=i+a,l+=s,h="middle";break;case"top":u+=a/2,l-=i,c="center",h="bottom";break;case"bottom":u+=a/2,l+=o+i,c="center";break;case"inside":u+=a/2,l+=s,c="center",h="middle";break;case"insideLeft":u+=i,l+=s,h="middle";break;case"insideRight":u+=a-i,l+=s,c="right",h="middle";break;case"insideTop":u+=a/2,l+=i,c="center";break;case"insideBottom":u+=a/2,l+=o-i,c="center",h="bottom";break;case"insideTopLeft":u+=i,l+=i;break;case"insideTopRight":u+=a-i,l+=i,c="right";break;case"insideBottomLeft":u+=i,l+=o-i,h="bottom";break;case"insideBottomRight":u+=a-i,l+=o-i,c="right",h="bottom"}return(t=t||{}).x=u,t.y=l,t.align=c,t.verticalAlign=h,t}},41589:(t,e,n)=>{"use strict";n.d(e,{n:()=>i});var r=2*Math.PI;function i(t){return(t%=r)<0&&(t+=r),t}},76873:(t,e,n)=>{"use strict";function r(t,e,n,r,i,o){if(o>e&&o>r||oi?s:0}n.d(e,{A:()=>r})},29308:(t,e,n)=>{"use strict";n.d(e,{A:()=>f});var r=n(45587),i=n(26346),o=Math.min,a=Math.max,s=new i.A,u=new i.A,l=new i.A,c=new i.A,h=new i.A,d=new i.A;const f=function(){function t(t,e,n,r){n<0&&(t+=n,n=-n),r<0&&(e+=r,r=-r),this.x=t,this.y=e,this.width=n,this.height=r}return t.prototype.union=function(t){var e=o(t.x,this.x),n=o(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=a(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=a(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,o=r.create();return r.translate(o,o,[-e.x,-e.y]),r.scale(o,o,[n,i]),r.translate(o,o,[t.x,t.y]),o},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var r=this,o=r.x,a=r.x+r.width,s=r.y,u=r.y+r.height,l=e.x,c=e.x+e.width,f=e.y,p=e.y+e.height,m=!(av&&(v=_,yv&&(v=S,x=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],h=r[3],d=r[4],f=r[5];return e.x=n.x*i+d,e.y=n.y*h+f,e.width=n.width*i,e.height=n.height*h,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}s.x=l.x=n.x,s.y=c.y=n.y,u.x=c.x=n.x+n.width,u.y=l.y=n.y+n.height,s.transform(r),c.transform(r),u.transform(r),l.transform(r),e.x=o(s.x,u.x,l.x,c.x),e.y=o(s.y,u.y,l.y,c.y);var p=a(s.x,u.x,l.x,c.x),m=a(s.y,u.y,l.y,c.y);e.width=p-e.x,e.height=m-e.y}else e!==n&&t.copy(e,n)},t}()},57861:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof e&&(r=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),i[t]||(i[t]=[]);for(var a=0;a{"use strict";n.d(e,{Ay:()=>o});var r=function(t){this.value=t},i=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new r(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}();const o=function(){function t(t){this._list=new i,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,o=null;if(null==i[t]){var a=n.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var u=n.head;n.remove(u),delete i[u.key],o=u.value,this._lastRemovedEntry=u}s?s.value=e:s=new r(e),s.key=t,n.insertEntry(s),i[t]=s}return o},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}()},84716:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(26346),i=[0,0],o=[0,0],a=new r.A,s=new r.A;const u=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new r.A;for(n=0;n<2;n++)this._axes[n]=new r.A;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,o=t.x,a=t.y,s=o+t.width,u=a+t.height;if(n[0].set(o,a),n[1].set(s,a),n[2].set(s,u),n[3].set(o,u),e)for(var l=0;l<4;l++)n[l].transform(e);r.A.sub(i[0],n[1],n[0]),r.A.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(l=0;l<2;l++)this._origin[l]=i[l].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,i=!e;return a.set(1/0,1/0),s.set(0,0),!this._intersectCheckOneSide(this,t,a,s,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,a,s,i,-1)&&(n=!1,i)||i||r.A.copy(e,n?a:s),n},t.prototype._intersectCheckOneSide=function(t,e,n,a,s,u){for(var l=!0,c=0;c<2;c++){var h=this._axes[c];if(this._getProjMinMaxOnAxis(c,t._corners,i),this._getProjMinMaxOnAxis(c,e._corners,o),i[1]o[1]){if(l=!1,s)return l;var d=Math.abs(o[0]-i[1]),f=Math.abs(i[0]-o[1]);Math.min(d,f)>a.len()&&(d{"use strict";n.d(e,{A:()=>M,q:()=>A});var r=n(83509),i=n(29308),o=n(73098),a=n(48813),s=n(89259),u={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},l=[],c=[],h=[],d=[],f=[],p=[],m=Math.min,g=Math.max,v=Math.cos,y=Math.sin,b=Math.abs,x=Math.PI,w=2*x,_="undefined"!=typeof Float32Array,S=[];function E(t){return Math.round(t/x*1e8)/1e8%2*x}function A(t,e){var n=E(t[0]);n<0&&(n+=w);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=w?i=n+w:e&&n-i>=w?i=n-w:!e&&n>i?i=n+(w-E(n-i)):e&&n0&&(this._ux=b(n/o.Y5/t)||0,this._uy=b(n/o.Y5/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(u.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=b(t-this._xi),r=b(e-this._yi),i=n>this._ux||r>this._uy;if(this.addData(u.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){return this._drawPendingPt(),this.addData(u.C,t,e,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,r,i,o),this._xi=i,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,r){return this._drawPendingPt(),this.addData(u.Q,t,e,n,r),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,r),this._xi=n,this._yi=r,this},t.prototype.arc=function(t,e,n,r,i,o){this._drawPendingPt(),S[0]=r,S[1]=i,A(S,o),r=S[0];var a=(i=S[1])-r;return this.addData(u.A,t,e,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,r,i,o),this._xi=v(i)*n+t,this._yi=y(i)*n+e,this},t.prototype.arcTo=function(t,e,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,r,i),this},t.prototype.rect=function(t,e,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,r),this.addData(u.R,t,e,n,r),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(u.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!_||(this.data=new Float32Array(e));for(var n=0;nl.length&&(this._expandData(),l=this.data);for(var c=0;c0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){h[0]=h[1]=f[0]=f[1]=Number.MAX_VALUE,d[0]=d[1]=p[0]=p[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,o=0,s=0,l=0;for(t=0;tn||b(E)>r||f===e-1)&&(_=Math.sqrt(z*z+E*E),i=S,o=C);break;case u.C:var A=t[f++],M=t[f++],C=(S=t[f++],t[f++]),T=t[f++],k=t[f++];_=(0,s.h0)(i,o,A,M,S,C,T,k,10),i=T,o=k;break;case u.Q:A=t[f++],M=t[f++],S=t[f++],C=t[f++];_=(0,s.d8)(i,o,A,M,S,C,10),i=S,o=C;break;case u.A:var I=t[f++],N=t[f++],P=t[f++],O=t[f++],L=t[f++],R=t[f++],D=R+L;f+=1,x&&(a=v(L)*P+I,l=y(L)*O+N),_=g(P,O)*m(w,Math.abs(R)),i=v(D)*P+I,o=y(D)*O+N;break;case u.R:a=i=t[f++],l=o=t[f++],_=2*t[f++]+2*t[f++];break;case u.Z:var z=a-i;E=l-o;_=Math.sqrt(z*z+E*E),i=a,o=l}_>=0&&(c[d++]=_,h+=_)}return this._pathLen=h,h},t.prototype.rebuildPath=function(t,e){var n,r,i,o,a,h,d,f,p,x,w=this.data,_=this._ux,S=this._uy,E=this._len,A=e<1,M=0,C=0,T=0;if(!A||(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,f=e*this._pathLen))t:for(var k=0;k0&&(t.lineTo(p,x),T=0),I){case u.M:n=i=w[k++],r=o=w[k++],t.moveTo(i,o);break;case u.L:a=w[k++],h=w[k++];var P=b(a-i),O=b(h-o);if(P>_||O>S){if(A){if(M+(rt=d[C++])>f){var L=(f-M)/rt;t.lineTo(i*(1-L)+a*L,o*(1-L)+h*L);break t}M+=rt}t.lineTo(a,h),i=a,o=h,T=0}else{var R=P*P+O*O;R>T&&(p=a,x=h,T=R)}break;case u.C:var D=w[k++],z=w[k++],F=w[k++],B=w[k++],U=w[k++],j=w[k++];if(A){if(M+(rt=d[C++])>f){L=(f-M)/rt;(0,s.YT)(i,D,F,U,L,l),(0,s.YT)(o,z,B,j,L,c),t.bezierCurveTo(l[1],c[1],l[2],c[2],l[3],c[3]);break t}M+=rt}t.bezierCurveTo(D,z,F,B,U,j),i=U,o=j;break;case u.Q:D=w[k++],z=w[k++],F=w[k++],B=w[k++];if(A){if(M+(rt=d[C++])>f){L=(f-M)/rt;(0,s.kx)(i,D,F,L,l),(0,s.kx)(o,z,B,L,c),t.quadraticCurveTo(l[1],c[1],l[2],c[2]);break t}M+=rt}t.quadraticCurveTo(D,z,F,B),i=F,o=B;break;case u.A:var V=w[k++],H=w[k++],G=w[k++],W=w[k++],X=w[k++],Y=w[k++],q=w[k++],$=!w[k++],K=G>W?G:W,Z=b(G-W)>.001,Q=X+Y,J=!1;if(A)M+(rt=d[C++])>f&&(Q=X+Y*(f-M)/rt,J=!0),M+=rt;if(Z&&t.ellipse?t.ellipse(V,H,G,W,q,X,Q,$):t.arc(V,H,K,X,Q,$),J)break t;N&&(n=v(X)*G+V,r=y(X)*W+H),i=v(Q)*G+V,o=y(Q)*W+H;break;case u.R:n=i=w[k],r=o=w[k+1],a=w[k++],h=w[k++];var tt=w[k++],et=w[k++];if(A){if(M+(rt=d[C++])>f){var nt=f-M;t.moveTo(a,h),t.lineTo(a+m(nt,tt),h),(nt-=tt)>0&&t.lineTo(a+tt,h+m(nt,et)),(nt-=et)>0&&t.lineTo(a+g(tt-nt,0),h+et),(nt-=tt)>0&&t.lineTo(a,h+g(et-nt,0));break t}M+=rt}t.rect(a,h,tt,et);break;case u.Z:if(A){var rt;if(M+(rt=d[C++])>f){L=(f-M)/rt;t.lineTo(i*(1-L)+n*L,o*(1-L)+r*L);break t}M+=rt}t.closePath(),i=n,o=r}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=u,t.initDefaultProps=((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0)),t}()},26346:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,r){t.x=e.x+n.x*r,t.y=e.y+n.y*r},t.lerp=function(t,e,n,r){var i=1-r;t.x=i*e.x+r*n.x,t.y=i*e.y+r*n.y},t}()},92836:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>p,Wx:()=>f});var r=n(45587),i=n(83509),o=r.identity,a=5e-5;function s(t){return t>a||t<-5e-5}var u=[],l=[],c=r.create(),h=Math.abs,d=function(){function t(){}var e;return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return s(this.rotation)||s(this.x)||s(this.y)||s(this.scaleX-1)||s(this.scaleY-1)||s(this.skewX)||s(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||r.create(),e?this.getLocalTransform(n):o(n),t&&(e?r.mul(n,t,n):r.copy(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(o(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(u);var n=u[0]<0?-1:1,i=u[1]<0?-1:1,o=((u[0]-n)*e+n)/u[0]||0,a=((u[1]-i)*e+i)/u[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||r.create(),r.invert(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],r=Math.atan2(t[1],t[0]),i=Math.PI/2+r-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||r.create(),r.mul(l,t.invTransform,e),e=l);var n=this.originX,i=this.originY;(n||i)&&(c[4]=n,c[5]=i,r.mul(l,e,c),l[4]-=n,l[5]-=i,e=l),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],r=this.invTransform;return r&&i.applyTransform(n,n,r),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],r=this.transform;return r&&i.applyTransform(n,n,r),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&h(t[0]-1)>1e-10&&h(t[3]-1)>1e-10?Math.sqrt(h(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){!function(t,e){for(var n=0;n{"use strict";n.d(e,{A:()=>o});var r=Math.round(9*Math.random()),i="function"==typeof Object.defineProperty;const o=function(){function t(){this._id="__ec_inner_"+r++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return i?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},t.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}()},48813:(t,e,n)=>{"use strict";n.d(e,{$s:()=>b,BM:()=>v,Cr:()=>f,j6:()=>p,tW:()=>y});var r=n(83509),i=n(89259),o=Math.min,a=Math.max,s=Math.sin,u=Math.cos,l=2*Math.PI,c=r.create(),h=r.create(),d=r.create();function f(t,e,n){if(0!==t.length){for(var r=t[0],i=r[0],s=r[0],u=r[1],l=r[1],c=1;c1e-4)return p[0]=t-n,p[1]=e-i,m[0]=t+n,void(m[1]=e+i);if(c[0]=u(o)*n+t,c[1]=s(o)*i+e,h[0]=u(a)*n+t,h[1]=s(a)*i+e,g(p,c,h),v(m,c,h),(o%=l)<0&&(o+=l),(a%=l)<0&&(a+=l),o>a&&!f?a+=l:oo&&(d[0]=u(x)*n+t,d[1]=s(x)*i+e,g(p,d,p),v(m,d,m))}},89259:(t,e,n)=>{"use strict";n.d(e,{Et:()=>x,YT:()=>b,Yb:()=>m,_E:()=>v,d8:()=>T,gC:()=>A,h0:()=>w,k3:()=>_,kh:()=>C,kx:()=>M,lX:()=>y,qY:()=>E,rD:()=>g,z7:()=>S});var r=n(83509),i=Math.pow,o=Math.sqrt,a=1e-8,s=1e-4,u=o(3),l=1/3,c=(0,r.create)(),h=(0,r.create)(),d=(0,r.create)();function f(t){return t>-a&&ta||t<-a}function m(t,e,n,r,i){var o=1-i;return o*o*(o*t+3*i*e)+i*i*(i*r+3*o*n)}function g(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)}function v(t,e,n,r,a,s){var c=r+3*(e-n)-t,h=3*(n-2*e+t),d=3*(e-t),p=t-a,m=h*h-3*c*d,g=h*d-9*c*p,v=d*d-3*h*p,y=0;if(f(m)&&f(g)){if(f(h))s[0]=0;else(k=-d/h)>=0&&k<=1&&(s[y++]=k)}else{var b=g*g-4*m*v;if(f(b)){var x=g/m,w=-x/2;(k=-h/c+x)>=0&&k<=1&&(s[y++]=k),w>=0&&w<=1&&(s[y++]=w)}else if(b>0){var _=o(b),S=m*h+1.5*c*(-g+_),E=m*h+1.5*c*(-g-_);(k=(-h-((S=S<0?-i(-S,l):i(S,l))+(E=E<0?-i(-E,l):i(E,l))))/(3*c))>=0&&k<=1&&(s[y++]=k)}else{var A=(2*m*h-3*c*g)/(2*o(m*m*m)),M=Math.acos(A)/3,C=o(m),T=Math.cos(M),k=(-h-2*C*T)/(3*c),I=(w=(-h+C*(T+u*Math.sin(M)))/(3*c),(-h+C*(T-u*Math.sin(M)))/(3*c));k>=0&&k<=1&&(s[y++]=k),w>=0&&w<=1&&(s[y++]=w),I>=0&&I<=1&&(s[y++]=I)}}return y}function y(t,e,n,r,i){var a=6*n-12*e+6*t,s=9*e+3*r-3*t-9*n,u=3*e-3*t,l=0;if(f(s)){if(p(a))(h=-u/a)>=0&&h<=1&&(i[l++]=h)}else{var c=a*a-4*s*u;if(f(c))i[0]=-a/(2*s);else if(c>0){var h,d=o(c),m=(-a-d)/(2*s);(h=(-a+d)/(2*s))>=0&&h<=1&&(i[l++]=h),m>=0&&m<=1&&(i[l++]=m)}}return l}function b(t,e,n,r,i,o){var a=(e-t)*i+t,s=(n-e)*i+e,u=(r-n)*i+n,l=(s-a)*i+a,c=(u-s)*i+s,h=(c-l)*i+l;o[0]=t,o[1]=a,o[2]=l,o[3]=h,o[4]=h,o[5]=c,o[6]=u,o[7]=r}function x(t,e,n,i,a,u,l,f,p,g,v){var y,b,x,w,_,S=.005,E=1/0;c[0]=p,c[1]=g;for(var A=0;A<1;A+=.05)h[0]=m(t,n,a,l,A),h[1]=m(e,i,u,f,A),(w=(0,r.distSquare)(c,h))=0&&w=0&&h<=1&&(i[l++]=h)}else{var c=s*s-4*a*u;if(f(c))(h=-s/(2*a))>=0&&h<=1&&(i[l++]=h);else if(c>0){var h,d=o(c),m=(-s-d)/(2*a);(h=(-s+d)/(2*a))>=0&&h<=1&&(i[l++]=h),m>=0&&m<=1&&(i[l++]=m)}}return l}function A(t,e,n){var r=t+n-2*e;return 0===r?.5:(t-e)/r}function M(t,e,n,r,i){var o=(e-t)*r+t,a=(n-e)*r+e,s=(a-o)*r+o;i[0]=t,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function C(t,e,n,i,a,u,l,f,p){var m,g=.005,v=1/0;c[0]=l,c[1]=f;for(var y=0;y<1;y+=.05){h[0]=_(t,n,a,y),h[1]=_(e,i,u,y),(S=(0,r.distSquare)(c,h))=0&&S{"use strict";n.d(e,{Me:()=>p,ot:()=>h,oq:()=>c,lJ:()=>l});var r=n(38123),i=Math.log(2);function o(t,e,n,r,a,s){var u=r+"-"+a,l=t.length;if(s.hasOwnProperty(u))return s[u];if(1===e){var c=Math.round(Math.log((1<>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[s]+":0",i[u]+":0",r[1-s]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,u),c=function(t,e,n){for(var r=n?"invTrans":"trans",i=e[r],o=e.srcCoords,s=[],u=[],l=!0,c=0;c<4;c++){var h=t[c].getBoundingClientRect(),d=2*c,f=h.left,p=h.top;s.push(f,p),l=l&&o&&f===o[d]&&p===o[d+1],u.push(t[c].offsetLeft,t[c].offsetTop)}return l&&i?i:(e.srcCoords=s,e[r]=n?a(u,s):a(s,u))}(l,u,o);if(c)return c(t,n,i),!0}return!1}function h(t){return"CANVAS"===t.nodeName.toUpperCase()}var d=/([&<>"'])/g,f={"&":"&","<":"<",">":">",'"':""","'":"'"};function p(t){return null==t?"":(t+"").replace(d,(function(t,e){return f[e]}))}},38123:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},i=new function(){this.browser=new r,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(i.wxa=!0,i.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?i.worker=!0:"undefined"==typeof navigator||0===navigator.userAgent.indexOf("Node.js")?(i.node=!0,i.svgSupported=!0):function(t,e){var n=e.browser,r=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);r&&(n.firefox=!0,n.version=r[1]);i&&(n.ie=!0,n.version=i[1]);o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18);a&&(n.weChat=!0);e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,i);const o=i},35452:(t,e,n)=>{"use strict";n.d(e,{W5:()=>m,Yo:()=>u,ds:()=>p,e0:()=>h,f:()=>f,mK:()=>c,q2:()=>d});var r=n(38123),i=n(29687),o=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,a=[],s=r.A.browser.firefox&&+r.A.browser.version.split(".")[0]<39;function u(t,e,n,r){return n=n||{},r?l(t,e,n):s&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):l(t,e,n),n}function l(t,e,n){if(r.A.domSupported&&t.getBoundingClientRect){var o=e.clientX,s=e.clientY;if((0,i.ot)(t)){var u=t.getBoundingClientRect();return n.zrX=o-u.left,void(n.zrY=s-u.top)}if((0,i.oq)(a,t,o,s))return n.zrX=a[0],void(n.zrY=a[1])}n.zrX=n.zrY=0}function c(t){return t||window.event}function h(t,e,n){if(null!=(e=c(e)).zrX)return e;var r=e.type;if(r&&r.indexOf("touch")>=0){var i="touchend"!==r?e.targetTouches[0]:e.changedTouches[0];i&&u(t,i,e,n)}else{u(t,e,e,n);var a=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(null==n||null==r)return e;return 3*(0!==r?Math.abs(r):Math.abs(n))*(r>0?-1:r<0?1:n>0?-1:1)}(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&o.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function d(t,e,n,r){t.addEventListener(e,n,r)}function f(t,e,n,r){t.removeEventListener(e,n,r)}var p=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function m(t){return 2===t.which||3===t.which}},45587:(t,e,n)=>{"use strict";function r(){return[1,0,0,1,0,0]}function i(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function a(t,e,n){var r=e[0]*n[0]+e[2]*n[1],i=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],u=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=u,t}function s(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function u(t,e,n,r){void 0===r&&(r=[0,0]);var i=e[0],o=e[2],a=e[4],s=e[1],u=e[3],l=e[5],c=Math.sin(n),h=Math.cos(n);return t[0]=i*h+s*c,t[1]=-i*c+s*h,t[2]=o*h+u*c,t[3]=-o*c+h*u,t[4]=h*(a-r[0])+c*(l-r[1])+r[0],t[5]=h*(l-r[1])-c*(a-r[0])+r[1],t}function l(t,e,n){var r=n[0],i=n[1];return t[0]=e[0]*r,t[1]=e[1]*i,t[2]=e[2]*r,t[3]=e[3]*i,t[4]=e[4]*r,t[5]=e[5]*i,t}function c(t,e){var n=e[0],r=e[2],i=e[4],o=e[1],a=e[3],s=e[5],u=n*a-o*r;return u?(u=1/u,t[0]=a*u,t[1]=-o*u,t[2]=-r*u,t[3]=n*u,t[4]=(r*s-a*i)*u,t[5]=(o*i-n*s)*u,t):null}function h(t){var e=[1,0,0,1,0,0];return o(e,t),e}n.r(e),n.d(e,{clone:()=>h,copy:()=>o,create:()=>r,identity:()=>i,invert:()=>c,mul:()=>a,rotate:()=>u,scale:()=>l,translate:()=>s})},59741:(t,e,n)=>{"use strict";n.d(e,{Gs:()=>l,OH:()=>i,gI:()=>r,yh:()=>u});var r=12,i=r+"px sans-serif";var o,a,s=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n=0)h=c*t.length;else for(var d=0;d{"use strict";n.d(e,{A:()=>c});var r=32,i=7;function o(t,e,n,r){var i=e+1;if(i===n)return 1;if(r(t[i++],t[e])<0){for(;i=0;)i++;return i-e}function a(t,e,n,r,i){for(r===e&&r++;r>>1])<0?u=o:s=o+1;var l=r-s;switch(l){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;l>0;)t[s+l]=t[s+l-1],l--}t[s]=a}}function s(t,e,n,r,i,o){var a=0,s=0,u=1;if(o(t,e[n+i])>0){for(s=r-i;u0;)a=u,(u=1+(u<<1))<=0&&(u=s);u>s&&(u=s),a+=i,u+=i}else{for(s=i+1;us&&(u=s);var l=a;a=i-u,u=i-l}for(a++;a>>1);o(t,e[n+c])>0?a=c+1:u=c}return u}function u(t,e,n,r,i,o){var a=0,s=0,u=1;if(o(t,e[n+i])<0){for(s=i+1;us&&(u=s);var l=a;a=i-u,u=i-l}else{for(s=r-i;u=0;)a=u,(u=1+(u<<1))<=0&&(u=s);u>s&&(u=s),a+=i,u+=i}for(a++;a>>1);o(t,e[n+c])<0?u=c:a=c+1}return u}function l(t,e){var n,r,o=i,a=0,l=[];function c(c){var h=n[c],d=r[c],f=n[c+1],p=r[c+1];r[c]=d+p,c===a-3&&(n[c+1]=n[c+2],r[c+1]=r[c+2]),a--;var m=u(t[f],t,h,d,0,e);h+=m,0!==(d-=m)&&0!==(p=s(t[h+d-1],t,f,p,p-1,e))&&(d<=p?function(n,r,a,c){var h=0;for(h=0;h=i||g>=i);if(v)break;y<0&&(y=0),y+=2}if((o=y)<1&&(o=1),1===r){for(h=0;h=0;h--)t[g+h]=t[m+h];return void(t[p]=l[f])}var v=o;for(;;){var y=0,b=0,x=!1;do{if(e(l[f],t[d])<0){if(t[p--]=t[d--],y++,b=0,0==--r){x=!0;break}}else if(t[p--]=l[f--],b++,y=0,1==--c){x=!0;break}}while((y|b)=0;h--)t[g+h]=t[m+h];if(0===r){x=!0;break}}if(t[p--]=l[f--],1==--c){x=!0;break}if(0!==(b=c-s(t[d],l,0,c,c-1,e))){for(c-=b,g=(p-=b)+1,m=(f-=b)+1,h=0;h=i||b>=i);if(x)break;v<0&&(v=0),v+=2}(o=v)<1&&(o=1);if(1===c){for(g=(p-=r)+1,m=(d-=r)+1,h=r-1;h>=0;h--)t[g+h]=t[m+h];t[p]=l[f]}else{if(0===c)throw new Error;for(m=p-(c-1),h=0;h1;){var t=a-2;if(t>=1&&r[t-1]<=r[t]+r[t+1]||t>=2&&r[t-2]<=r[t]+r[t-1])r[t-1]r[t+1])break;c(t)}},forceMergeRuns:function(){for(;a>1;){var t=a-2;t>0&&r[t-1]=r;)e|=1&t,t>>=1;return t+e}(s);do{if((u=o(t,n,i,e))h&&(d=h),a(t,n,n+d,n+u,e),u=d}c.pushRun(n,u),c.mergeRuns(),s-=u,n+=u}while(0!==s);c.forceMergeRuns()}}}},98026:(t,e,n)=>{"use strict";n.r(e),n.d(e,{HashMap:()=>st,RADIAN_TO_DEGREE:()=>pt,assert:()=>tt,bind:()=>L,clone:()=>y,concatArray:()=>lt,createCanvas:()=>S,createHashMap:()=>ut,createObject:()=>ct,curry:()=>R,defaults:()=>_,disableUserSelect:()=>ht,each:()=>T,eqNaN:()=>q,extend:()=>w,filter:()=>N,find:()=>P,guid:()=>g,hasOwn:()=>dt,indexOf:()=>E,inherits:()=>A,isArray:()=>D,isArrayLike:()=>C,isBuiltInObject:()=>V,isDom:()=>G,isFunction:()=>z,isGradientObject:()=>W,isImagePatternObject:()=>X,isNumber:()=>U,isObject:()=>j,isPrimitive:()=>it,isRegExp:()=>Y,isString:()=>F,isStringSafe:()=>B,isTypedArray:()=>H,keys:()=>O,logError:()=>v,map:()=>k,merge:()=>b,mergeAll:()=>x,mixin:()=>M,noop:()=>ft,normalizeCssArray:()=>J,reduce:()=>I,retrieve:()=>$,retrieve2:()=>K,retrieve3:()=>Z,setAsPrimitive:()=>rt,slice:()=>Q,trim:()=>et});var r=n(59741),i=I(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),o=I(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),a=Object.prototype.toString,s=Array.prototype,u=s.forEach,l=s.filter,c=s.slice,h=s.map,d=function(){}.constructor,f=d?d.prototype:null,p="__proto__",m=2311;function g(){return m++}function v(){for(var t=[],e=0;e{"use strict";function r(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function i(t,e){return t[0]=e[0],t[1]=e[1],t}function o(t){return[t[0],t[1]]}function a(t,e,n){return t[0]=e,t[1]=n,t}function s(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function u(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function l(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function c(t){return Math.sqrt(d(t))}n.r(e),n.d(e,{add:()=>s,applyTransform:()=>A,clone:()=>o,copy:()=>i,create:()=>r,dist:()=>x,distSquare:()=>_,distance:()=>b,distanceSquare:()=>w,div:()=>m,dot:()=>g,len:()=>c,lenSquare:()=>d,length:()=>h,lengthSquare:()=>f,lerp:()=>E,max:()=>C,min:()=>M,mul:()=>p,negate:()=>S,normalize:()=>y,scale:()=>v,scaleAndAdd:()=>u,set:()=>a,sub:()=>l});var h=c;function d(t){return t[0]*t[0]+t[1]*t[1]}var f=d;function p(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function m(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function g(t,e){return t[0]*e[0]+t[1]*e[1]}function v(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function y(t,e){var n=c(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function b(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var x=b;function w(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var _=w;function S(t,e){return t[0]=-e[0],t[1]=-e[1],t}function E(t,e,n,r){return t[0]=e[0]+r*(n[0]-e[0]),t[1]=e[1]+r*(n[1]-e[1]),t}function A(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function M(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function C(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}},82591:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(15727),i=n(69099);const o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return(0,r.C6)(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n{"use strict";n.d(e,{Ay:()=>g,oN:()=>l,sW:()=>c});var r=n(15727),i=n(62454),o=n(29308),a=n(98026),s=n(56448),u="__zr_style_"+Math.round(10*Math.random()),l={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},c={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};l[u]=!0;var h=["z","z2","invisible"],d=["invisible"],f=function(t){function e(e){return t.call(this,e)||this}var n;return(0,r.C6)(e,t),e.prototype._init=function(e){for(var n=(0,a.keys)(e),r=0;r{"use strict";n.d(e,{A:()=>r});const r=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}()},43870:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(15727),i=n(98026),o=n(62454),a=n(29308),s=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return(0,r.C6)(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n=0&&(n.splice(r,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=i.indexOf(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,r=n[e];if(t&&t!==this&&t.parent!==this&&t!==r){n[e]=t,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,r=i.indexOf(n,t);return r<0||(n.splice(r,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n{"use strict";n.d(e,{Ay:()=>c});var r=n(15727),i=n(71519),o=n(29308),a=n(98026),s=(0,a.defaults)({x:0,y:0},i.oN),u={style:(0,a.defaults)({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},i.sW.style)};var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.C6)(e,t),e.prototype.createStyle=function(t){return(0,a.createObject)(s,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var r,i=(r=e.image)&&"string"!=typeof r&&r.width&&r.height?e.image:this.__image;if(!i)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?i[t]:i[t]/i[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return u},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new o.A(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(i.Ay);l.prototype.type="image";const c=l},2995:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(15727),i=n(71519),o=n(29308),a=[];const s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return(0,r.C6)(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n{"use strict";n.d(e,{A:()=>i});var r=n(15727);const i=function(t){function e(e,n,r,i,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==r?1:r,s.y2=null==i?0:i,s.type="linear",s.global=a||!1,s}return(0,r.C6)(e,t),e}(n(11793).A)},69099:(t,e,n)=>{"use strict";n.d(e,{MW:()=>T,Ay:()=>N});var r=n(15727),i=n(71519),o=n(68717);function a(t,e,n,r,i,o,a){if(0===i)return!1;var s=i,u=0;if(a>e+s&&a>r+s||at+s&&o>n+s||oe+d&&h>r+d&&h>o+d&&h>u+d||ht+d&&c>n+d&&c>i+d&&c>a+d||ce+c&&l>r+c&&l>o+c||lt+c&&u>n+c&&u>i+c||un||d+li&&(i+=h);var p=Math.atan2(u,s);return p<0&&(p+=h),p>=r&&p<=i||p+h>=r&&p+h<=i}var f=n(76873),p=o.A.CMD,m=2*Math.PI,g=1e-4;var v=[-1,-1,-1],y=[-1,-1];function b(t,e,n,r,i,o,a,u,l,c){if(c>e&&c>r&&c>o&&c>u||c1&&(h=void 0,h=y[0],y[0]=y[1],y[1]=h),m=s.Yb(e,r,o,u,y[0]),p>1&&(g=s.Yb(e,r,o,u,y[1]))),2===p?xe&&u>r&&u>o||u=0&&c<=1){for(var h=0,d=s.k3(e,r,o,c),f=0;fn||s<-n)return 0;var u=Math.sqrt(n*n-s*s);v[0]=-u,v[1]=u;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=m-1e-4){r=0,i=m;var c=o?1:-1;return a>=v[0]+t&&a<=v[1]+t?c:0}if(r>i){var h=r;r=i,i=h}r<0&&(r+=m,i+=m);for(var d=0,f=0;f<2;f++){var p=v[f];if(p+t>a){var g=Math.atan2(s,p);c=o?1:-1;g<0&&(g=m+g),(g>=r&&g<=i||g+m>=r&&g+m<=i)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),d+=c)}}return d}function _(t,e,n,r,i){for(var o,s,c,h,m=t.data,v=t.len(),y=0,_=0,S=0,E=0,A=0,M=0;M1&&(n||(y+=(0,f.A)(_,S,E,A,r,i))),T&&(E=_=m[M],A=S=m[M+1]),C){case p.M:_=E=m[M++],S=A=m[M++];break;case p.L:if(n){if(a(_,S,m[M],m[M+1],e,r,i))return!0}else y+=(0,f.A)(_,S,m[M],m[M+1],r,i)||0;_=m[M++],S=m[M++];break;case p.C:if(n){if(u(_,S,m[M++],m[M++],m[M++],m[M++],m[M],m[M+1],e,r,i))return!0}else y+=b(_,S,m[M++],m[M++],m[M++],m[M++],m[M],m[M+1],r,i)||0;_=m[M++],S=m[M++];break;case p.Q:if(n){if(l(_,S,m[M++],m[M++],m[M],m[M+1],e,r,i))return!0}else y+=x(_,S,m[M++],m[M++],m[M],m[M+1],r,i)||0;_=m[M++],S=m[M++];break;case p.A:var k=m[M++],I=m[M++],N=m[M++],P=m[M++],O=m[M++],L=m[M++];M+=1;var R=!!(1-m[M++]);o=Math.cos(O)*N+k,s=Math.sin(O)*P+I,T?(E=o,A=s):y+=(0,f.A)(_,S,o,s,r,i);var D=(r-k)*P/N+k;if(n){if(d(k,I,P,O,O+L,R,e,D,i))return!0}else y+=w(k,I,P,O,O+L,R,D,i);_=Math.cos(O+L)*N+k,S=Math.sin(O+L)*P+I;break;case p.R:if(E=_=m[M++],A=S=m[M++],o=E+m[M++],s=A+m[M++],n){if(a(E,A,o,A,e,r,i)||a(o,A,o,s,e,r,i)||a(o,s,E,s,e,r,i)||a(E,s,E,A,e,r,i))return!0}else y+=(0,f.A)(o,A,o,s,r,i),y+=(0,f.A)(E,s,E,A,r,i);break;case p.Z:if(n){if(a(_,S,E,A,e,r,i))return!0}else y+=(0,f.A)(_,S,E,A,r,i);_=E,S=A}}return n||(c=S,h=A,Math.abs(c-h).5?A._S:e>.2?A.tY:A.el}if(t)return A.el}return A._S},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if((0,S.isString)(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())===(0,E.lum)(t,0)0))},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&M.Dl)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),t=i.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;s=Math.max(s,null==u?4:u)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect(),i=this.style;if(t=n[0],e=n[1],r.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,n,r){return _(t,e,!0,n,r)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,n){return _(t,0,!1,e,n)}(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=M.Dl,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:(0,S.extend)(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&M.Dl)},e.prototype.createStyle=function(t){return(0,S.createObject)(T,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=(0,S.extend)({},this.shape))},e.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var s,u=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=(0,S.extend)({},r.shape),(0,S.extend)(s,n.shape)):(s=(0,S.extend)({},i?this.shape:r.shape),(0,S.extend)(s,n.shape)):u&&(s=r.shape),s)if(o){this.shape=(0,S.extend)({},this.shape);for(var l={},c=(0,S.keys)(s),h=0;h{"use strict";n.d(e,{A:()=>i});var r=n(15727);const i=function(t){function e(e,n,r,i,o){var a=t.call(this,i)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==r?.5:r,a.type="radial",a.global=o||!1,a}return(0,r.C6)(e,t),e}(n(11793).A)},19845:(t,e,n)=>{"use strict";n.d(e,{A:()=>h});var r=n(15727),i=n(71519),o=n(45558),a=n(69099),s=n(98026),u=n(59741),l=(0,s.defaults)({strokeFirst:!0,font:u.OH,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},a.MW),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.C6)(e,t),e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return(0,s.createObject)(l,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=(0,o.NO)(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var r=t.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(i.Ay);c.prototype.type="tspan";const h=c},32322:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>C});var r=n(15727),i=n(62406),o=n(19845),a=n(98026),s=n(45558),u=n(90540),l=n(30010),c=n(29308),h=n(71519),d=n(59741),f={fill:"#000"},p={style:(0,a.defaults)({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},h.sW.style)},m=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=f,n.attr(e),n}return(0,r.C6)(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,z=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),F=a.calculatedLineHeight,B=0;B=0&&"right"===(P=_[N]).align;)this._placeToken(P,t,E,v,I,"right",b),C-=P.width,I-=P.width,N--;for(k+=(r-(k-g)-(y-I)-C)/2;T<=N;)P=_[T],this._placeToken(P,t,E,v,k+P.width/2,"center",b),k+=P.width,T++;v+=E}},e.prototype._placeToken=function(t,e,n,r,i,u,l){var h=e.rich[t.styleName]||{};h.text=t.text;var f=t.verticalAlign,p=r+n/2;"top"===f?p=r+t.height/2:"bottom"===f&&(p=r+n-t.height/2),!t.isLineHolder&&M(h)&&this._renderBackground(h,e,"right"===u?i-t.width:"center"===u?i-t.width/2:i,p-t.height/2,t.width,t.height);var m=!!h.backgroundColor,g=t.textPadding;g&&(i=E(i,u,g),p-=t.height/2-g[0]-t.innerHeight/2);var v=this._getOrCreateChild(o.A),y=v.createStyle();v.useStyle(y);var b=this._defaultStyle,w=!1,A=0,C=S("fill"in h?h.fill:"fill"in e?e.fill:(w=!0,b.fill)),T=_("stroke"in h?h.stroke:"stroke"in e?e.stroke:m||l||b.autoStroke&&!w?null:(A=2,b.stroke)),k=h.textShadowBlur>0||e.textShadowBlur>0;y.text=t.text,y.x=i,y.y=p,k&&(y.shadowBlur=h.textShadowBlur||e.textShadowBlur||0,y.shadowColor=h.textShadowColor||e.textShadowColor||"transparent",y.shadowOffsetX=h.textShadowOffsetX||e.textShadowOffsetX||0,y.shadowOffsetY=h.textShadowOffsetY||e.textShadowOffsetY||0),y.textAlign=u,y.textBaseline="middle",y.font=t.font||d.OH,y.opacity=(0,a.retrieve3)(h.opacity,e.opacity,1),x(y,h),T&&(y.lineWidth=(0,a.retrieve3)(h.lineWidth,e.lineWidth,A),y.lineDash=(0,a.retrieve2)(h.lineDash,e.lineDash),y.lineDashOffset=e.lineDashOffset||0,y.stroke=T),C&&(y.fill=C);var I=t.contentWidth,N=t.contentHeight;v.setBoundingRect(new c.A((0,s.ll)(y.x,I,y.textAlign),(0,s.sZ)(y.y,N,y.textBaseline),I,N))},e.prototype._renderBackground=function(t,e,n,r,i,o){var s,c,h,d=t.backgroundColor,f=t.borderWidth,p=t.borderColor,m=d&&d.image,g=d&&!m,v=t.borderRadius,y=this;if(g||t.lineHeight||f&&p){(s=this._getOrCreateChild(l.A)).useStyle(s.createStyle()),s.style.fill=null;var b=s.shape;b.x=n,b.y=r,b.width=i,b.height=o,b.r=v,s.dirtyShape()}if(g)(h=s.style).fill=d||null,h.fillOpacity=(0,a.retrieve2)(t.fillOpacity,1);else if(m){(c=this._getOrCreateChild(u.Ay)).onload=function(){y.dirtyStyle()};var x=c.style;x.image=d.image,x.x=n,x.y=r,x.width=i,x.height=o}f&&p&&((h=s.style).lineWidth=f,h.stroke=p,h.strokeOpacity=(0,a.retrieve2)(t.strokeOpacity,1),h.lineDash=t.borderDash,h.lineDashOffset=t.borderDashOffset||0,s.strokeContainThreshold=0,s.hasFill()&&s.hasStroke()&&(h.strokeFirst=!0,h.lineWidth*=2));var w=(s||c).style;w.shadowBlur=t.shadowBlur||0,w.shadowColor=t.shadowColor||"transparent",w.shadowOffsetX=t.shadowOffsetX||0,w.shadowOffsetY=t.shadowOffsetY||0,w.opacity=(0,a.retrieve3)(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return function(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}(t)&&(e=[t.fontStyle,t.fontWeight,b(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&(0,a.trim)(e)||t.textFont||t.font},e}(h.Ay),g={left:!0,right:1,center:1},v={top:1,bottom:1,middle:1},y=["fontStyle","fontWeight","fontSize","fontFamily"];function b(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?d.gI+"px":t+"px":t}function x(t,e){for(var n=0;n{"use strict";n.d(e,{Dl:()=>o,M:()=>r,pO:()=>i});var r=1,i=2,o=4},12191:(t,e,n)=>{"use strict";n.d(e,{OD:()=>s,SR:()=>a,xA:()=>l});var r=n(60501),i=n(59741),o=new r.Ay(50);function a(t){if("string"==typeof t){var e=o.get(t);return e&&e.image}return t}function s(t,e,n,r,a){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var s=o.get(t),c={hostEl:n,cb:r,cbPayload:a};return s?!l(e=s.image)&&s.pending.push(c):((e=i.yh.loadImage(t,u,u)).__zrImageSrc=t,o.put(t,e.__cachedImgObj={image:e,pending:[c]})),e}return t}return e}function u(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e{"use strict";n.d(e,{EJ:()=>s,FQ:()=>m,j_:()=>h});var r=n(12191),i=n(98026),o=n(45558),a=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function s(t,e,n,r,i){if(!e)return"";var o=(t+"").split("\n");i=u(e,n,r,i);for(var a=0,s=o.length;a=u;c++)l-=u;var h=(0,o.RG)(n,e);return h>l&&(n="",h=0),l=t-h,a.ellipsis=n,a.ellipsisWidth=h,a.contentWidth=l,a.containerWidth=t,a}function l(t,e){var n=e.containerWidth,r=e.font,i=e.contentWidth;if(!n)return"";var a=(0,o.RG)(t,r);if(a<=n)return t;for(var s=0;;s++){if(a<=i||s>=e.maxIterations){t+=e.ellipsis;break}var u=0===s?c(t,i,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(t.length*i/a):0;t=t.substr(0,u),a=(0,o.RG)(t,r)}return""===t&&(t=e.placeholder),t}function c(t,e,n,r){for(var i=0,o=0,a=t.length;ov&&p){var y=Math.floor(v/d);n=n.slice(0,y)}if(t&&c&&null!=m)for(var x=u(m,s,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),w=0;wf&&g(n,t.substring(f,m),e,d),g(n,u[2],e,d,u[1]),f=a.lastIndex}fc){T>0?(A.tokens=A.tokens.slice(0,T),S(A,C,M),n.lines=n.lines.slice(0,E+1)):n.lines=n.lines.slice(0,E);break t}var L=k.width,R=null==L||"auto"===L;if("string"==typeof L&&"%"===L.charAt(L.length-1))B.percentWidth=L,v.push(B),B.contentWidth=(0,o.RG)(B.text,P);else{if(R){var D=k.backgroundColor,z=D&&D.image;z&&(z=r.SR(z),r.xA(z)&&(B.width=Math.max(B.width,z.width*O/z.height)))}var F=w&&null!=l?l-C:null;null!=F&&F0&&v+r.accumWidth>r.width&&(a=e.split("\n"),p=!0),r.accumWidth=v}else{var y=b(e,h,r.width,r.breakAll,r.accumWidth);r.accumWidth=y.accumWidth+g,s=y.linesWidths,a=y.lines}}else a=e.split("\n");for(var x=0;x=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}(t)||!!v[t]}function b(t,e,n,r,i){for(var a=[],s=[],u="",l="",c=0,h=0,d=0;dn:i+h+p>n)?h?(u||l)&&(m?(u||(u=l,l="",h=c=0),a.push(u),s.push(h-c),l+=f,u="",h=c+=p):(l&&(u+=l,l="",c=0),a.push(u),s.push(h),u=f,h=p)):m?(a.push(l),s.push(c),l=f,c=p):(a.push(f),s.push(p)):(h+=p,m?(l+=f,c+=p):(l&&(u+=l,l="",c=0),u+=f))}else l&&(u+=l,h+=c),a.push(u),s.push(h),u="",l="",c=0,h=0}return a.length||u||(u=t,l="",c=0),l&&(u+=l),u&&(a.push(u),s.push(h)),1===a.length&&(h+=i),{accumWidth:h,lines:a,linesWidths:s}}},59184:(t,e,n)=>{"use strict";n.d(e,{U:()=>i});var r=n(83509);function i(t,e,n){var i=e.smooth,o=e.points;if(o&&o.length>=2){if(i){var a=function(t,e,n,i){var o,a,s,u,l=[],c=[],h=[],d=[];if(i){s=[1/0,1/0],u=[-1/0,-1/0];for(var f=0,p=t.length;f{"use strict";n.d(e,{M7:()=>a,Op:()=>o,eB:()=>i});var r=Math.round;function i(t,e,n){if(e){var i=e.x1,o=e.x2,s=e.y1,u=e.y2;t.x1=i,t.x2=o,t.y1=s,t.y2=u;var l=n&&n.lineWidth;return l?(r(2*i)===r(2*o)&&(t.x1=t.x2=a(i,l,!0)),r(2*s)===r(2*u)&&(t.y1=t.y2=a(s,l,!0)),t):t}}function o(t,e,n){if(e){var r=e.x,i=e.y,o=e.width,s=e.height;t.x=r,t.y=i,t.width=o,t.height=s;var u=n&&n.lineWidth;return u?(t.x=a(r,u,!0),t.y=a(i,u,!0),t.width=Math.max(a(r+o,u,!1)-t.x,0===o?0:1),t.height=Math.max(a(i+s,u,!1)-t.y,0===s?0:1),t):t}}function a(t,e,n){if(!e)return t;var i=r(2*t);return(i+r(e))%2==0?i/2:(i+(n?1:-1))/2}},43471:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(15727),i=n(69099),o=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},a=function(t){function e(e){return t.call(this,e)||this}return(0,r.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,u=Math.cos(o),l=Math.sin(o);t.moveTo(u*i+n,l*i+r),t.arc(n,r,i,o,a,!s)},e}(i.Ay);a.prototype.type="arc";const s=a},53849:(t,e,n)=>{"use strict";n.d(e,{A:()=>h});var r=n(15727),i=n(69099),o=n(83509),a=n(89259),s=[],u=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function l(t,e,n){var r=t.cpx2,i=t.cpy2;return null!=r||null!=i?[(n?a.rD:a.Yb)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?a.rD:a.Yb)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?a.z7:a.k3)(t.x1,t.cpx1,t.x2,e),(n?a.z7:a.k3)(t.y1,t.cpy1,t.y2,e)]}var c=function(t){function e(e){return t.call(this,e)||this}return(0,r.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new u},e.prototype.buildPath=function(t,e){var n=e.x1,r=e.y1,i=e.x2,o=e.y2,u=e.cpx1,l=e.cpy1,c=e.cpx2,h=e.cpy2,d=e.percent;0!==d&&(t.moveTo(n,r),null==c||null==h?(d<1&&((0,a.kx)(n,u,i,d,s),u=s[1],i=s[2],(0,a.kx)(r,l,o,d,s),l=s[1],o=s[2]),t.quadraticCurveTo(u,l,i,o)):(d<1&&((0,a.YT)(n,u,c,i,d,s),u=s[1],c=s[2],i=s[3],(0,a.YT)(r,l,h,o,d,s),l=s[1],h=s[2],o=s[3]),t.bezierCurveTo(u,l,c,h,i,o)))},e.prototype.pointAt=function(t){return l(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=l(this.shape,t,!0);return o.normalize(e,e)},e}(i.Ay);c.prototype.type="bezier-curve";const h=c},31571:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(15727),i=n(69099),o=function(){this.cx=0,this.cy=0,this.r=0},a=function(t){function e(e){return t.call(this,e)||this}return(0,r.C6)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(i.Ay);a.prototype.type="circle";const s=a},18393:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(15727),i=n(69099),o=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},a=function(t){function e(e){return t.call(this,e)||this}return(0,r.C6)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=.5522848,r=e.cx,i=e.cy,o=e.rx,a=e.ry,s=o*n,u=a*n;t.moveTo(r-o,i),t.bezierCurveTo(r-o,i-u,r-s,i-a,r,i-a),t.bezierCurveTo(r+s,i-a,r+o,i-u,r+o,i),t.bezierCurveTo(r+o,i+u,r+s,i+a,r,i+a),t.bezierCurveTo(r-s,i+a,r-o,i+u,r-o,i),t.closePath()},e}(i.Ay);a.prototype.type="ellipse";const s=a},82861:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var r=n(15727),i=n(69099),o=n(14865),a={},s=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},u=function(t){function e(e){return t.call(this,e)||this}return(0,r.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new s},e.prototype.buildPath=function(t,e){var n,r,i,s;if(this.subPixelOptimize){var u=(0,o.eB)(a,e,this.style);n=u.x1,r=u.y1,i=u.x2,s=u.y2}else n=e.x1,r=e.y1,i=e.x2,s=e.y2;var l=e.percent;0!==l&&(t.moveTo(n,r),l<1&&(i=n*(1-l)+i*l,s=r*(1-l)+s*l),t.lineTo(i,s))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(i.Ay);u.prototype.type="line";const l=u},52505:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(15727),i=n(69099),o=n(59184),a=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},s=function(t){function e(e){return t.call(this,e)||this}return(0,r.C6)(e,t),e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){o.U(t,e,!0)},e}(i.Ay);s.prototype.type="polygon";const u=s},39195:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(15727),i=n(69099),o=n(59184),a=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},s=function(t){function e(e){return t.call(this,e)||this}return(0,r.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){o.U(t,e,!1)},e}(i.Ay);s.prototype.type="polyline";const u=s},30010:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var r=n(15727),i=n(69099);var o=n(14865),a=function(){this.x=0,this.y=0,this.width=0,this.height=0},s={},u=function(t){function e(e){return t.call(this,e)||this}return(0,r.C6)(e,t),e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){var n,r,i,a;if(this.subPixelOptimize){var u=(0,o.Op)(s,e,this.style);n=u.x,r=u.y,i=u.width,a=u.height,u.r=e.r,e=u}else n=e.x,r=e.y,i=e.width,a=e.height;e.r?function(t,e){var n,r,i,o,a,s=e.x,u=e.y,l=e.width,c=e.height,h=e.r;l<0&&(s+=l,l=-l),c<0&&(u+=c,c=-c),"number"==typeof h?n=r=i=o=h:h instanceof Array?1===h.length?n=r=i=o=h[0]:2===h.length?(n=i=h[0],r=o=h[1]):3===h.length?(n=h[0],r=o=h[1],i=h[2]):(n=h[0],r=h[1],i=h[2],o=h[3]):n=r=i=o=0,n+r>l&&(n*=l/(a=n+r),r*=l/a),i+o>l&&(i*=l/(a=i+o),o*=l/a),r+i>c&&(r*=c/(a=r+i),i*=c/a),n+o>c&&(n*=c/(a=n+o),o*=c/a),t.moveTo(s+n,u),t.lineTo(s+l-r,u),0!==r&&t.arc(s+l-r,u+r,r,-Math.PI/2,0),t.lineTo(s+l,u+c-i),0!==i&&t.arc(s+l-i,u+c-i,i,0,Math.PI/2),t.lineTo(s+o,u+c),0!==o&&t.arc(s+o,u+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,u+n),0!==n&&t.arc(s+n,u+n,n,Math.PI,1.5*Math.PI)}(t,e):t.rect(n,r,i,a)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(i.Ay);u.prototype.type="rect";const l=u},42933:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(15727),i=n(69099),o=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},a=function(t){function e(e){return t.call(this,e)||this}return(0,r.C6)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=2*Math.PI;t.moveTo(n+e.r,r),t.arc(n,r,e.r,0,i,!1),t.moveTo(n+e.r0,r),t.arc(n,r,e.r0,0,i,!0)},e}(i.Ay);a.prototype.type="ring";const s=a},25014:(t,e,n)=>{"use strict";n.d(e,{A:()=>w});var r=n(15727),i=n(69099),o=n(98026),a=Math.PI,s=2*a,u=Math.sin,l=Math.cos,c=Math.acos,h=Math.atan2,d=Math.abs,f=Math.sqrt,p=Math.max,m=Math.min,g=1e-4;function v(t,e,n,r,i,o,a){var s=t-n,u=e-r,l=(a?o:-o)/f(s*s+u*u),c=l*u,h=-l*s,d=t+c,m=e+h,g=n+c,v=r+h,y=(d+g)/2,b=(m+v)/2,x=g-d,w=v-m,_=x*x+w*w,S=i-o,E=d*v-g*m,A=(w<0?-1:1)*f(p(0,S*S*_-E*E)),M=(E*w-x*A)/_,C=(-E*x-w*A)/_,T=(E*w+x*A)/_,k=(-E*x+w*A)/_,I=M-y,N=C-b,P=T-y,O=k-b;return I*I+N*N>P*P+O*O&&(M=T,C=k),{cx:M,cy:C,x0:-c,y0:-h,x1:M*(i/S-1),y1:C*(i/S-1)}}function y(t,e){var n,r=p(e.r,0),i=p(e.r0||0,0),y=r>0;if(y||i>0){if(y||(r=i,i=0),i>r){var b=r;r=i,i=b}var x=e.startAngle,w=e.endAngle;if(!isNaN(x)&&!isNaN(w)){var _=e.cx,S=e.cy,E=!!e.clockwise,A=d(w-x),M=A>s&&A%s;if(M>g&&(A=M),r>g)if(A>s-g)t.moveTo(_+r*l(x),S+r*u(x)),t.arc(_,S,r,x,w,!E),i>g&&(t.moveTo(_+i*l(w),S+i*u(w)),t.arc(_,S,i,w,x,E));else{var C=void 0,T=void 0,k=void 0,I=void 0,N=void 0,P=void 0,O=void 0,L=void 0,R=void 0,D=void 0,z=void 0,F=void 0,B=void 0,U=void 0,j=void 0,V=void 0,H=r*l(x),G=r*u(x),W=i*l(w),X=i*u(w),Y=A>g;if(Y){var q=e.cornerRadius;q&&(C=(n=function(t){var e;if((0,o.isArray)(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}(q))[0],T=n[1],k=n[2],I=n[3]);var $=d(r-i)/2;if(N=m($,k),P=m($,I),O=m($,C),L=m($,T),z=R=p(N,P),F=D=p(O,L),(R>g||D>g)&&(B=r*l(w),U=r*u(w),j=i*l(x),V=i*u(x),Ag){var rt=m(k,z),it=m(I,z),ot=v(j,V,H,G,r,rt,E),at=v(B,U,W,X,r,it,E);t.moveTo(_+ot.cx+ot.x0,S+ot.cy+ot.y0),z0&&t.arc(_+ot.cx,S+ot.cy,rt,h(ot.y0,ot.x0),h(ot.y1,ot.x1),!E),t.arc(_,S,r,h(ot.cy+ot.y1,ot.cx+ot.x1),h(at.cy+at.y1,at.cx+at.x1),!E),it>0&&t.arc(_+at.cx,S+at.cy,it,h(at.y1,at.x1),h(at.y0,at.x0),!E))}else t.moveTo(_+H,S+G),t.arc(_,S,r,x,w,!E);else t.moveTo(_+H,S+G);if(i>g&&Y)if(F>g){rt=m(C,F),ot=v(W,X,B,U,i,-(it=m(T,F)),E),at=v(H,G,j,V,i,-rt,E);t.lineTo(_+ot.cx+ot.x0,S+ot.cy+ot.y0),F0&&t.arc(_+ot.cx,S+ot.cy,it,h(ot.y0,ot.x0),h(ot.y1,ot.x1),!E),t.arc(_,S,i,h(ot.cy+ot.y1,ot.cx+ot.x1),h(at.cy+at.y1,at.cx+at.x1),E),rt>0&&t.arc(_+at.cx,S+at.cy,rt,h(at.y1,at.x1),h(at.y0,at.x0),!E))}else t.lineTo(_+W,S+X),t.arc(_,S,i,w,x,E);else t.lineTo(_+W,S+X)}else t.moveTo(_,S);t.closePath()}}}var b=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},x=function(t){function e(e){return t.call(this,e)||this}return(0,r.C6)(e,t),e.prototype.getDefaultShape=function(){return new b},e.prototype.buildPath=function(t,e){y(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(i.Ay);x.prototype.type="sector";const w=x},47698:(t,e,n)=>{"use strict";n.r(e),n.d(e,{fastLerp:()=>w,fastMapToColor:()=>_,lerp:()=>S,lift:()=>b,liftColor:()=>N,lum:()=>T,mapToColor:()=>E,modifyAlpha:()=>M,modifyHSL:()=>A,parse:()=>v,random:()=>k,stringify:()=>C,toHex:()=>x});var r=n(60501),i=n(98026),o={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function a(t){return(t=Math.round(t))<0?0:t>255?255:t}function s(t){return t<0?0:t>1?1:t}function u(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?a(parseFloat(e)/100*255):a(parseInt(e,10))}function l(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?s(parseFloat(e)/100):s(parseFloat(e))}function c(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function h(t,e,n){return t+(e-t)*n}function d(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function f(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var p=new r.Ay(20),m=null;function g(t,e){m&&f(m,e),m=p.put(t,m||e.slice())}function v(t,e){if(t){e=e||[];var n=p.get(t);if(n)return f(e,n);var r=(t+="").replace(/ /g,"").toLowerCase();if(r in o)return f(e,o[r]),g(t,e),e;var i,a=r.length;if("#"===r.charAt(0))return 4===a||5===a?(i=parseInt(r.slice(1,4),16))>=0&&i<=4095?(d(e,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,5===a?parseInt(r.slice(4),16)/15:1),g(t,e),e):void d(e,0,0,0,1):7===a||9===a?(i=parseInt(r.slice(1,7),16))>=0&&i<=16777215?(d(e,(16711680&i)>>16,(65280&i)>>8,255&i,9===a?parseInt(r.slice(7),16)/255:1),g(t,e),e):void d(e,0,0,0,1):void 0;var s=r.indexOf("("),c=r.indexOf(")");if(-1!==s&&c+1===a){var h=r.substr(0,s),m=r.substr(s+1,c-(s+1)).split(","),v=1;switch(h){case"rgba":if(4!==m.length)return 3===m.length?d(e,+m[0],+m[1],+m[2],1):d(e,0,0,0,1);v=l(m.pop());case"rgb":return m.length>=3?(d(e,u(m[0]),u(m[1]),u(m[2]),3===m.length?v:l(m[3])),g(t,e),e):void d(e,0,0,0,1);case"hsla":return 4!==m.length?void d(e,0,0,0,1):(m[3]=l(m[3]),y(m,e),g(t,e),e);case"hsl":return 3!==m.length?void d(e,0,0,0,1):(y(m,e),g(t,e),e);default:return}}d(e,0,0,0,1)}}function y(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=l(t[1]),i=l(t[2]),o=i<=.5?i*(r+1):i+r-i*r,s=2*i-o;return d(e=e||[],a(255*c(s,o,n+1/3)),a(255*c(s,o,n)),a(255*c(s,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function b(t,e){var n=v(t);if(n){for(var r=0;r<3;r++)n[r]=e<0?n[r]*(1-e)|0:(255-n[r])*e+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return C(n,4===n.length?"rgba":"rgb")}}function x(t){var e=v(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function w(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var r=t*(e.length-1),i=Math.floor(r),o=Math.ceil(r),u=e[i],l=e[o],c=r-i;return n[0]=a(h(u[0],l[0],c)),n[1]=a(h(u[1],l[1],c)),n[2]=a(h(u[2],l[2],c)),n[3]=s(h(u[3],l[3],c)),n}}var _=w;function S(t,e,n){if(e&&e.length&&t>=0&&t<=1){var r=t*(e.length-1),i=Math.floor(r),o=Math.ceil(r),u=v(e[i]),l=v(e[o]),c=r-i,d=C([a(h(u[0],l[0],c)),a(h(u[1],l[1],c)),a(h(u[2],l[2],c)),s(h(u[3],l[3],c))],"rgba");return n?{color:d,leftIndex:i,rightIndex:o,value:r}:d}}var E=S;function A(t,e,n,r){var i,o=v(t);if(t)return o=function(t){if(t){var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),u=s-a,l=(s+a)/2;if(0===u)e=0,n=0;else{n=l<.5?u/(s+a):u/(2-s-a);var c=((s-r)/6+u/2)/u,h=((s-i)/6+u/2)/u,d=((s-o)/6+u/2)/u;r===s?e=d-h:i===s?e=1/3+c-d:o===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var f=[360*e,n,l];return null!=t[3]&&f.push(t[3]),f}}(o),null!=e&&(o[0]=(i=e,(i=Math.round(i))<0?0:i>360?360:i)),null!=n&&(o[1]=l(n)),null!=r&&(o[2]=l(r)),C(y(o),"rgba")}function M(t,e){var n=v(t);if(n&&null!=e)return n[3]=s(e),C(n,"rgba")}function C(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function T(t,e){var n=v(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function k(){return C([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}var I=new r.Ay(100);function N(t){if((0,i.isString)(t)){var e=I.get(t);return e||(e=b(t,-.1),I.put(t,e)),e}if((0,i.isGradientObject)(t)){var n=(0,i.extend)({},t);return n.colorStops=(0,i.map)(t.colorStops,(function(t){return{offset:t.offset,color:b(t.color,-.1)}})),n}return t}},97850:(t,e,n)=>{"use strict";n.d(e,{Gw:()=>H,AN:()=>O,mz:()=>B,AG:()=>G});var r=n(89259),i=n(69099),o=n(98026),a=n(83509),s=n(59442),u=n(92836),l=n(48813),c=n(29308),h=n(26346),d=n(52505),f=n(30010),p=n(25014),m=n(68717).A.CMD;function g(t,e){return Math.abs(t-e)<1e-5}function v(t){var e,n,r,i,o,a=t.data,s=t.len(),u=[],l=0,c=0,h=0,d=0;function f(t,n){e&&e.length>2&&u.push(e),e=[t,n]}function p(t,n,r,i){g(t,r)&&g(n,i)||e.push(t,n,r,i,r,i)}function v(t,n,r,i,o,a){var s=Math.abs(n-t),u=4*Math.tan(s/4)/3,l=nM:k2&&u.push(e),u}function y(t,e,n,i,o,a,s,u,l,c){if(g(t,n)&&g(e,i)&&g(o,s)&&g(a,u))l.push(s,u);else{var h=2/c,d=h*h,f=s-t,p=u-e,m=Math.sqrt(f*f+p*p);f/=m,p/=m;var v=n-t,b=i-e,x=o-s,w=a-u,_=v*v+b*b,S=x*x+w*w;if(_=0&&S-A*A=0)l.push(s,u);else{var M=[],C=[];(0,r.YT)(t,n,o,s,.5,M),(0,r.YT)(e,i,a,u,.5,C),y(M[0],C[0],M[1],C[1],M[2],C[2],M[3],C[3],l,c),y(M[4],C[4],M[5],C[5],M[6],C[6],M[7],C[7],l,c)}}}}function b(t,e,n){var r=t[e],i=t[1-e],o=Math.abs(r/i),a=Math.ceil(Math.sqrt(o*n)),s=Math.floor(n/a);0===s&&(s=1,a=n);for(var u=[],l=0;l0)for(l=0;lMath.abs(l),h=b([u,l],c?0:1,e),d=(c?s:l)/h.length,f=0;f1?null:new h.A(p*u+t,p*l+e)}function S(t,e,n){var r=new h.A;h.A.sub(r,n,e),r.normalize();var i=new h.A;return h.A.sub(i,t,e),i.dot(r)}function E(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function A(t){var e=t.points,n=[],r=[];(0,l.Cr)(e,n,r);var i=new c.A(n[0],n[1],r[0]-n[0],r[1]-n[1]),o=i.width,a=i.height,s=i.x,u=i.y,d=new h.A,f=new h.A;return o>a?(d.x=f.x=s+o/2,d.y=u,f.y=u+a):(d.y=f.y=u+a/2,d.x=s,f.x=s+o),function(t,e,n){for(var r=t.length,i=[],o=0;oi,a=b([r,i],o?0:1,e),s=o?"width":"height",u=o?"height":"width",l=o?"x":"y",c=o?"y":"x",h=t[s]/a.length,d=0;d0)for(var w=r/n,_=-r/2;_<=r/2;_+=w){var S=Math.sin(_),E=Math.cos(_),A=0;for(b=0;b0;u/=2){var l=0,c=0;(t&u)>0&&(l=1),(e&u)>0&&(c=1),s+=u*u*(3*l^c),0===c&&(1===l&&(t=u-1-t,e=u-1-e),a=t,t=e,e=a)}return s}function j(t){var e=1/0,n=1/0,r=-1/0,i=-1/0,a=(0,o.map)(t,(function(t){var o=t.getBoundingRect(),a=t.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),u=o.y+o.height/2+(a?a[5]:0);return e=Math.min(s,e),n=Math.min(u,n),r=Math.max(s,r),i=Math.max(u,i),[s,u]}));return(0,o.map)(a,(function(o,a){return{cp:o,z:U(o[0],o[1],e,n,r,i),path:t[a]}})).sort((function(t,e){return t.z-e.z})).map((function(t){return t.path}))}function V(t){return C(t.path,t.count)}function H(t,e,n){var r=[];!function t(e){for(var n=0;n{"use strict";n.d(e,{rR:()=>k,UJ:()=>M,Qh:()=>C,uc:()=>T});var r=n(15727),i=n(69099),o=n(68717),a=n(83509),s=o.A.CMD,u=[[],[],[]],l=Math.sqrt,c=Math.atan2;function h(t,e){if(e){var n,r,i,o,h,d,f=t.data,p=t.len(),m=s.M,g=s.C,v=s.L,y=s.R,b=s.A,x=s.Q;for(i=0,o=0;i1&&(a*=f(x),s*=f(x));var w=(i===o?-1:1)*f((a*a*(s*s)-a*a*(v*v)-s*s*(d*d))/(a*a*(v*v)+s*s*(d*d)))||0,_=w*a*v/s,S=w*-s*d/a,E=(t+n)/2+m(h)*_-p(h)*S,A=(e+r)/2+p(h)*_+m(h)*S,M=b([1,0],[(d-_)/a,(v-S)/s]),C=[(d-_)/a,(v-S)/s],T=[(-1*d-_)/a,(-1*v-S)/s],k=b(C,T);if(y(C,T)<=-1&&(k=g),y(C,T)>=1&&(k=0),k<0){var I=Math.round(k/g*1e6)/1e6;k=2*g+I%2*g}c.addData(l,E,A,a,s,M,k,h,o)}var w=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,_=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.C6)(e,t),e.prototype.applyTransform=function(t){},e}(i.Ay);function E(t){return null!=t.setData}function A(t,e){var n=function(t){var e=new o.A;if(!t)return e;var n,r=0,i=0,a=r,s=i,u=o.A.CMD,l=t.match(w);if(!l)return e;for(var c=0;c{"use strict";n.r(e),n.d(e,{dispose:()=>lt,disposeAll:()=>ct,getElementSSRData:()=>ft,getInstance:()=>ht,init:()=>ut,registerPainter:()=>dt,registerSSRDataGetter:()=>pt,version:()=>mt});var r=n(38123),i=n(98026),o=n(15727),a=n(83509),s=function(t,e){this.target=t,this.topTarget=e&&e.topTarget};const u=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new s(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,r=t.offsetY,i=n-this._x,o=r-this._y;this._x=n,this._y=r,e.drift(i,o,t),this.handler.dispatchToElement(new s(e,t),"drag",t.event);var a=this.handler.findHover(n,r,e).target,u=this._dropTarget;this._dropTarget=a,e!==a&&(u&&a!==u&&this.handler.dispatchToElement(new s(u,t),"dragleave",t.event),a&&a!==u&&this.handler.dispatchToElement(new s(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new s(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new s(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}();var l=n(57861),c=n(35452),h=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var r=t.touches;if(r){for(var i={points:[],touches:[],target:e,event:t},o=0,a=r.length;o1&&i&&i.length>1){var a=d(i)/d(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((r=i)[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}},p=n(29308),m="silent";function g(){c.ds(this.event)}var v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return(0,o.C6)(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(l.A),y=function(t,e){this.x=t,this.y=e},b=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],x=new p.A(0,0,0,0),w=function(t){function e(e,n,r,i,o){var a=t.call(this)||this;return a._hovered=new y(0,0),a.storage=e,a.painter=n,a.painterRoot=i,a._pointerSize=o,r=r||new v,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new u(a),a}return(0,o.C6)(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(i.each(b,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,r=E(this,e,n),i=this._hovered,o=i.target;o&&!o.__zr&&(o=(i=this.findHover(i.x,i.y)).target);var a=this._hovered=r?new y(e,n):this.findHover(e,n),s=a.target,u=this.proxy;u.setCursor&&u.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new y(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var r=(t=t||{}).target;if(!r||!r.silent){for(var i="on"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:g}}(e,t,n);r&&(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(e,o),r=r.__hostTarget?r.__hostTarget:r.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"==typeof t[i]&&t[i].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){var r=this.storage.getDisplayList(),i=new y(t,e);if(S(r,i,t,e,n),this._pointerSize&&!i.target){for(var o=[],a=this._pointerSize,s=a/2,u=new p.A(t-s,e-s,a,a),l=r.length-1;l>=0;l--){var c=r[l];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(x.copy(c.getBoundingRect()),c.transform&&x.applyTransform(c.transform),x.intersect(u)&&o.push(c))}if(o.length)for(var h=Math.PI/12,d=2*Math.PI,f=0;f=0;o--){var a=t[o],s=void 0;if(a!==i&&!a.ignore&&(s=_(a,n,r))&&(!e.topTarget&&(e.topTarget=a),s!==m)){e.target=a;break}}}function E(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}i.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){w.prototype[t]=function(e){var n,r,i=e.zrX,o=e.zrY,s=E(this,i,o);if("mouseup"===t&&s||(r=(n=this.findHover(i,o)).target),"mousedown"===t)this._downEl=r,this._downPoint=[e.zrX,e.zrY],this._upEl=r;else if("mouseup"===t)this._upEl=r;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||a.dist(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));const A=w;var M=n(83470),C=n(56448),T=!1;function k(){T||(T=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function I(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}const N=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=I}return t.prototype.traverse=function(t,e){for(var n=0;n0&&(l.__clipPaths=[]),isNaN(l.z)&&(k(),l.z=0),isNaN(l.z2)&&(k(),l.z2=0),isNaN(l.zlevel)&&(k(),l.zlevel=0),this._displayList[this._displayListLen++]=l}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,n);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e=0&&this._roots.splice(r,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();var P=n(45825),O=n(84722);function L(){return(new Date).getTime()}const R=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return(0,o.C6)(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=L()-this._pausedTime,n=e-this._time,r=this._head;r;){var i=r.next;r.step(e,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,(0,P.A)((function e(){t._running&&((0,P.A)(e),!t._paused&&t.update())}))},e.prototype.start=function(){this._running||(this._time=L(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=L(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=L()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new O.A(t,e.loop);return this.addAnimator(n),n},e}(l.A);var D,z,F=r.A.domSupported,B=(z={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:D=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:i.map(D,(function(t){var e=t.replace("mouse","pointer");return z.hasOwnProperty(e)?e:t}))}),U=["mousemove","mouseup"],j=["pointermove","pointerup"],V=!1;function H(t){var e=t.pointerType;return"pen"===e||"touch"===e}function G(t){t&&(t.zrByTouch=!0)}function W(t,e){for(var n=e,r=!1;n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return r}var X=function(t,e){this.stopPropagation=i.noop,this.stopImmediatePropagation=i.noop,this.preventDefault=i.noop,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},Y={mousedown:function(t){t=(0,c.e0)(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=(0,c.e0)(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=(0,c.e0)(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){W(this,(t=(0,c.e0)(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){V=!0,t=(0,c.e0)(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){V||(t=(0,c.e0)(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){G(t=(0,c.e0)(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Y.mousemove.call(this,t),Y.mousedown.call(this,t)},touchmove:function(t){G(t=(0,c.e0)(this.dom,t)),this.handler.processGesture(t,"change"),Y.mousemove.call(this,t)},touchend:function(t){G(t=(0,c.e0)(this.dom,t)),this.handler.processGesture(t,"end"),Y.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&Y.click.call(this,t)},pointerdown:function(t){Y.mousedown.call(this,t)},pointermove:function(t){H(t)||Y.mousemove.call(this,t)},pointerup:function(t){Y.mouseup.call(this,t)},pointerout:function(t){H(t)||Y.mouseout.call(this,t)}};i.each(["click","dblclick","contextmenu"],(function(t){Y[t]=function(e){e=(0,c.e0)(this.dom,e),this.trigger(t,e)}}));var q={pointermove:function(t){H(t)||q.mousemove.call(this,t)},pointerup:function(t){q.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function $(t,e){var n=e.domHandlers;r.A.pointerEventsSupported?i.each(B.pointer,(function(r){Z(e,r,(function(e){n[r].call(t,e)}))})):(r.A.touchEventsSupported&&i.each(B.touch,(function(r){Z(e,r,(function(i){n[r].call(t,i),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}(e)}))})),i.each(B.mouse,(function(r){Z(e,r,(function(i){i=(0,c.mK)(i),e.touching||n[r].call(t,i)}))})))}function K(t,e){function n(n){Z(e,n,(function(r){r=(0,c.mK)(r),W(t,r.target)||(r=function(t,e){return(0,c.e0)(t.dom,new X(t,e),!0)}(t,r),e.domHandlers[n].call(t,r))}),{capture:!0})}r.A.pointerEventsSupported?i.each(j,n):r.A.touchEventsSupported||i.each(U,n)}function Z(t,e,n,r){t.mounted[e]=n,t.listenerOpts[e]=r,(0,c.q2)(t.domTarget,e,n,r)}function Q(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&(0,c.f)(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var J=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e};const tt=function(t){function e(e,n){var r=t.call(this)||this;return r.__pointerCapturing=!1,r.dom=e,r.painterRoot=n,r._localHandlerScope=new J(e,Y),F&&(r._globalHandlerScope=new J(document,q)),$(r,r._localHandlerScope),r}return(0,o.C6)(e,t),e.prototype.dispose=function(){Q(this._localHandlerScope),F&&Q(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,F&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?K(this,e):Q(e)}},e}(l.A);var et=n(47698),nt=n(73098),rt=n(43870),it={},ot={};var at,st=function(){function t(t,e,n){var o=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var a=new N,s=n.renderer||"canvas";it[s]||(s=i.keys(it)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var u=new it[s](e,a,n,t),l=n.ssr||u.ssrOnly;this.storage=a,this.painter=u;var c,h=r.A.node||r.A.worker||l?null:new tt(u.getViewportRoot(),u.root),d=n.useCoarsePointer;(null==d||"auto"===d?r.A.touchEventsSupported:!!d)&&(c=i.retrieve2(n.pointerSize,44)),this.handler=new A(a,u,h,u.root,c),this.animation=new R({stage:{update:l?null:function(){return o._flush(!0)}}}),l||this.animation.start()}return t.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},t.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return(0,et.lum)(t,1)0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e{o.d(t,{A:()=>s,U:()=>a});var n=o(96540),r=o(12533),i=o(78407),l=o(62279);function a(e){return t=>n.createElement(i.Ay,{theme:{token:{motion:!1,zIndexPopupBase:0}}},n.createElement(e,Object.assign({},t)))}const s=(e,t,o,i)=>a((a=>{const{prefixCls:s,style:c}=a,d=n.useRef(null),[u,p]=n.useState(0),[m,g]=n.useState(0),[b,f]=(0,r.A)(!1,{value:a.open}),{getPrefixCls:h}=n.useContext(l.QO),$=h(t||"select",s);n.useEffect((()=>{if(f(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;p(t.offsetHeight+8),g(t.offsetWidth)})),t=setInterval((()=>{var n;const r=o?`.${o($)}`:`.${$}-dropdown`,i=null===(n=d.current)||void 0===n?void 0:n.querySelector(r);i&&(clearInterval(t),e.observe(i))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let v=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},c),{margin:0}),open:b,visible:b,getPopupContainer:()=>d.current});i&&(v=i(v));const y={paddingBottom:u,position:"relative",minWidth:m};return n.createElement("div",{ref:d,style:y},n.createElement(e,Object.assign({},v)))}))},60275:(e,t,o)=>{o.d(t,{YK:()=>d,jH:()=>a});var n=o(96540),r=o(365),i=o(72616);const l=100,a=1e3,s={Modal:l,Drawer:l,Popover:l,Popconfirm:l,Tooltip:l,Tour:l},c={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function d(e,t){const[,o]=(0,r.Ay)(),l=n.useContext(i.A),d=e in s;if(void 0!==t)return[t,t];let u=null!=l?l:0;return d?(u+=(l?0:o.zIndexPopupBase)+s[e],u=Math.min(u,o.zIndexPopupBase+a)):u+=c[e],[void 0===l?t:u,u]}},23723:(e,t,o)=>{o.d(t,{A:()=>s,b:()=>a});const n=()=>({height:0,opacity:0}),r=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},i=e=>({height:e?e.offsetHeight:0}),l=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,a=(e,t,o)=>void 0!==o?o:`${e}-${t}`,s=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant"}-motion-collapse`,onAppearStart:n,onEnterStart:n,onAppearActive:r,onEnterActive:r,onLeaveStart:i,onLeaveActive:n,onAppearEnd:l,onEnterEnd:l,onLeaveEnd:l,motionDeadline:500}}},40682:(e,t,o)=>{o.d(t,{Ob:()=>l,zv:()=>r});var n=o(96540);function r(e){return e&&n.isValidElement(e)&&e.type===n.Fragment}const i=(e,t,o)=>n.isValidElement(e)?n.cloneElement(e,"function"==typeof o?o(e.props||{}):o):t;function l(e,t){return i(e,e,t)}},58182:(e,t,o)=>{o.d(t,{L:()=>i,v:()=>l});var n=o(46942),r=o.n(n);function i(e,t,o){return r()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:o})}const l=(e,t)=>t||e},18877:(e,t,o)=>{o.d(t,{_n:()=>i,rJ:()=>l});var n=o(96540);o(68210);function r(){}const i=n.createContext({}),l=()=>{const e=()=>{};return e.deprecated=r,e}},57:(e,t,o)=>{o.d(t,{A:()=>O});var n=o(96540),r=o(46942),i=o.n(r),l=o(42467),a=o(8719),s=o(62279),c=o(40682),d=o(20106);const u=e=>{const{componentCls:t,colorPrimary:o}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${o})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},p=(0,d.Ay)("Wave",(e=>[u(e)]));var m=o(81470),g=o(25371),b=o(365),f=o(4424),h=o(57557),$=o(14832);function v(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3]&&t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function y(e){return Number.isNaN(e)?0:e}const x=e=>{const{className:t,target:o,component:r}=e,l=n.useRef(null),[a,s]=n.useState(null),[c,d]=n.useState([]),[u,p]=n.useState(0),[m,b]=n.useState(0),[x,C]=n.useState(0),[S,O]=n.useState(0),[w,E]=n.useState(!1),j={left:u,top:m,width:x,height:S,borderRadius:c.map((e=>`${e}px`)).join(" ")};function I(){const e=getComputedStyle(o);s(function(e){const{borderTopColor:t,borderColor:o,backgroundColor:n}=getComputedStyle(e);return v(t)?t:v(o)?o:v(n)?n:null}(o));const t="static"===e.position,{borderLeftWidth:n,borderTopWidth:r}=e;p(t?o.offsetLeft:y(-parseFloat(n))),b(t?o.offsetTop:y(-parseFloat(r))),C(o.offsetWidth),O(o.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:l,borderBottomLeftRadius:a,borderBottomRightRadius:c}=e;d([i,l,c,a].map((e=>y(parseFloat(e)))))}if(a&&(j["--wave-color"]=a),n.useEffect((()=>{if(o){const e=(0,g.A)((()=>{I(),E(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(I),t.observe(o)),()=>{g.A.cancel(e),null==t||t.disconnect()}}}),[]),!w)return null;const k=("Checkbox"===r||"Radio"===r)&&(null==o?void 0:o.classList.contains(f.D));return n.createElement(h.Ay,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var o;if(t.deadline||"opacity"===t.propertyName){const e=null===(o=l.current)||void 0===o?void 0:o.parentElement;(0,$.v)(e).then((()=>{null==e||e.remove()}))}return!1}},(e=>{let{className:o}=e;return n.createElement("div",{ref:l,className:i()(t,{"wave-quick":k},o),style:j})}))},C=(e,t)=>{var o;const{component:r}=t;if("Checkbox"===r&&!(null===(o=e.querySelector("input"))||void 0===o?void 0:o.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null==e||e.insertBefore(i,null==e?void 0:e.firstChild),(0,$.X)(n.createElement(x,Object.assign({},t,{target:e})),i)},S=(e,t,o)=>{const{wave:r}=n.useContext(s.QO),[,i,l]=(0,b.Ay)(),a=(0,m._q)((n=>{const a=e.current;if((null==r?void 0:r.disabled)||!a)return;const s=a.querySelector(`.${f.D}`)||a,{showEffect:c}=r||{};(c||C)(s,{className:t,token:i,component:o,event:n,hashId:l})})),c=n.useRef();return e=>{g.A.cancel(c.current),c.current=(0,g.A)((()=>{a(e)}))}};const O=e=>{const{children:t,disabled:o,component:r}=e,{getPrefixCls:d}=(0,n.useContext)(s.QO),u=(0,n.useRef)(null),m=d("wave"),[,g]=p(m),b=S(u,i()(m,g),r);if(n.useEffect((()=>{const e=u.current;if(!e||1!==e.nodeType||o)return;const t=t=>{!(0,l.A)(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||b(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[o]),!n.isValidElement(t))return null!=t?t:null;const f=(0,a.f3)(t)?(0,a.K4)(t.ref,u):u;return(0,c.Ob)(t,{ref:f})}},4424:(e,t,o)=>{o.d(t,{D:()=>n});const n="ant-wave-target"},72616:(e,t,o)=>{o.d(t,{A:()=>n});const n=o(96540).createContext(void 0)},39449:(e,t,o)=>{o.d(t,{Ap:()=>l,DU:()=>a,Ve:()=>c,uR:()=>d});var n=o(96540),r=o(40682);const i=/^[\u4e00-\u9fa5]{2}$/,l=i.test.bind(i);function a(e){return"danger"===e?{danger:!0}:{type:e}}function s(e){return"string"==typeof e}function c(e){return"text"===e||"link"===e}function d(e,t){let o=!1;const i=[];return n.Children.forEach(e,(e=>{const t=typeof e,n="string"===t||"number"===t;if(o&&n){const t=i.length-1,o=i[t];i[t]=`${o}${e}`}else i.push(e);o=n})),n.Children.map(i,(e=>function(e,t){if(null==e)return;const o=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&s(e.type)&&l(e.props.children)?(0,r.Ob)(e,{children:e.props.children.split("").join(o)}):s(e)?l(e)?n.createElement("span",null,e.split("").join(o)):n.createElement("span",null,e):(0,r.zv)(e)?n.createElement("span",null,e):e}(e,t)))}},68777:(e,t,o)=>{o.d(t,{Ay:()=>ce});var n=o(96540),r=o(46942),i=o.n(r),l=o(19853),a=o(8719),s=o(57),c=o(62279),d=o(98119),u=o(829),p=o(76327),m=o(365),g=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:t,direction:o}=n.useContext(c.QO),{prefixCls:r,size:l,className:a}=e,s=g(e,["prefixCls","size","className"]),d=t("btn-group",r),[,,u]=(0,m.Ay)();let p="";switch(l){case"large":p="lg";break;case"small":p="sm"}const f=i()(d,{[`${d}-${p}`]:p,[`${d}-rtl`]:"rtl"===o},a,u);return n.createElement(b.Provider,{value:l},n.createElement("div",Object.assign({},s,{className:f})))};var h=o(39449);const $=(0,n.forwardRef)(((e,t)=>{const{className:o,style:r,children:l,prefixCls:a}=e,s=i()(`${a}-icon`,o);return n.createElement("span",{ref:t,className:s,style:r},l)})),v=$;var y=o(93567),x=o(57557);const C=(0,n.forwardRef)(((e,t)=>{let{prefixCls:o,className:r,style:l,iconClassName:a}=e;const s=i()(`${o}-loading-icon`,r);return n.createElement(v,{prefixCls:o,className:s,style:l,ref:t},n.createElement(y.A,{className:a}))})),S=()=>({width:0,opacity:0,transform:"scale(0)"}),O=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),w=e=>{const{prefixCls:t,loading:o,existIcon:r,className:i,style:l}=e,a=!!o;return r?n.createElement(C,{prefixCls:t,className:i,style:l}):n.createElement(x.Ay,{visible:a,motionName:`${t}-loading-icon-motion`,motionLeave:a,removeOnLeave:!0,onAppearStart:S,onAppearActive:O,onEnterStart:S,onEnterActive:O,onLeaveStart:O,onLeaveActive:S},((e,o)=>{let{className:r,style:a}=e;return n.createElement(C,{prefixCls:t,className:i,style:Object.assign(Object.assign({},l),a),ref:o,iconClassName:r})}))};var E=o(64552),j=o(25905),I=o(80336),k=o(20106);const z=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),A=e=>{const{componentCls:t,fontSize:o,lineWidth:n,groupBorderColor:r,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(n).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:o}},z(`${t}-primary`,r),z(`${t}-danger`,i)]}};var B=o(94925);const P=e=>{const{paddingInline:t,onlyIconSize:o,paddingBlock:n}=e;return(0,I.h1)(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:n,buttonIconOnlyFontSize:o})},H=e=>{var t,o,n,r,i,l;const a=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,s=null!==(o=e.contentFontSizeSM)&&void 0!==o?o:e.fontSize,c=null!==(n=e.contentFontSizeLG)&&void 0!==n?n:e.fontSizeLG,d=null!==(r=e.contentLineHeight)&&void 0!==r?r:(0,B.k)(a),u=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:(0,B.k)(s),p=null!==(l=e.contentLineHeightLG)&&void 0!==l?l:(0,B.k)(c);return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:a,contentFontSizeSM:s,contentFontSizeLG:c,contentLineHeight:d,contentLineHeightSM:u,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-a*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-s*u)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*p)/2-e.lineWidth,0)}},M=e=>{const{componentCls:t,iconCls:o,fontWeight:n}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${(0,E.zA)(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${o} + span, > span + ${o}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},(0,j.K8)(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${o})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${t}-compact-item`]:{flex:"none"}}}},R=(e,t,o)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":o}}),N=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),T=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),L=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),D=(e,t,o,n,r,i,l,a)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:o||void 0,background:t,borderColor:n||void 0,boxShadow:"none"},R(e,Object.assign({background:t},l),Object.assign({background:t},a))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:i||void 0}})}),W=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},L(e))}),F=e=>Object.assign({},W(e)),X=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),q=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},F(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),R(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),D(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},R(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),D(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),W(e))}),G=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},F(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),R(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),D(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},R(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),D(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),W(e))}),_=e=>Object.assign(Object.assign({},q(e)),{borderStyle:"dashed"}),V=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},R(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),X(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},R(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),X(e))}),Q=e=>Object.assign(Object.assign(Object.assign({},R(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),X(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},X(e)),R(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBg}))}),U=e=>{const{componentCls:t}=e;return{[`${t}-default`]:q(e),[`${t}-primary`]:G(e),[`${t}-dashed`]:_(e),[`${t}-link`]:V(e),[`${t}-text`]:Q(e),[`${t}-ghost`]:D(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},K=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:o,controlHeight:n,fontSize:r,lineHeight:i,borderRadius:l,buttonPaddingHorizontal:a,iconCls:s,buttonPaddingVertical:c}=e,d=`${o}-icon-only`;return[{[`${t}`]:{fontSize:r,lineHeight:i,height:n,padding:`${(0,E.zA)(c)} ${(0,E.zA)(a)}`,borderRadius:l,[`&${d}`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:n,paddingInlineStart:0,paddingInlineEnd:0,[`&${o}-round`]:{width:"auto"},[s]:{fontSize:e.buttonIconOnlyFontSize}},[`&${o}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${o}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${o}${o}-circle${t}`]:N(e)},{[`${o}${o}-round${t}`]:T(e)}]},Y=e=>{const t=(0,I.h1)(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return K(t,e.componentCls)},Z=e=>{const t=(0,I.h1)(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return K(t,`${e.componentCls}-sm`)},J=e=>{const t=(0,I.h1)(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return K(t,`${e.componentCls}-lg`)},ee=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},te=(0,k.OF)("Button",(e=>{const t=P(e);return[M(t),Y(t),Z(t),J(t),ee(t),U(t),A(t)]}),H,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});var oe=o(55974);function ne(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function re(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},ne(e,t)),(o=e.componentCls,n=t,{[`&-item:not(${n}-first-item):not(${n}-last-item)`]:{borderRadius:0},[`&-item${n}-first-item:not(${n}-last-item)`]:{[`&, &${o}-sm, &${o}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${n}-last-item:not(${n}-first-item)`]:{[`&, &${o}-sm, &${o}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var o,n}const ie=e=>{const{componentCls:t,calc:o}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:o(e.lineWidth).mul(-1).equal(),insetInlineStart:o(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${(0,E.zA)(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:o(e.lineWidth).mul(-1).equal(),insetInlineStart:o(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${(0,E.zA)(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},le=(0,k.bf)(["Button","compact"],(e=>{const t=P(e);return[(0,oe.G)(t),re(t),ie(t)]}),H);var ae=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{var o,r;const{loading:m=!1,prefixCls:g,type:f,danger:$,shape:y="default",size:x,styles:C,disabled:S,className:O,rootClassName:E,children:j,icon:I,ghost:k=!1,block:z=!1,htmlType:A="button",classNames:B,style:P={}}=e,H=ae(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),M=f||"default",{getPrefixCls:R,autoInsertSpaceInButton:N,direction:T,button:L}=(0,n.useContext)(c.QO),D=R("btn",g),[W,F,X]=te(D),q=(0,n.useContext)(d.A),G=null!=S?S:q,_=(0,n.useContext)(b),V=(0,n.useMemo)((()=>function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(m)),[m]),[Q,U]=(0,n.useState)(V.loading),[K,Y]=(0,n.useState)(!1),Z=(0,n.createRef)(),J=(0,a.K4)(t,Z),ee=1===n.Children.count(j)&&!I&&!(0,h.Ve)(M);(0,n.useEffect)((()=>{let e=null;return V.delay>0?e=setTimeout((()=>{e=null,U(!0)}),V.delay):U(V.loading),function(){e&&(clearTimeout(e),e=null)}}),[V]),(0,n.useEffect)((()=>{if(!J||!J.current||!1===N)return;const e=J.current.textContent;ee&&(0,h.Ap)(e)?K||Y(!0):K&&Y(!1)}),[J]);const oe=t=>{const{onClick:o}=e;Q||G?t.preventDefault():null==o||o(t)};const ne=!1!==N,{compactSize:re,compactItemClassnames:ie}=(0,p.RQ)(D,T),se={large:"lg",small:"sm",middle:void 0},ce=(0,u.A)((e=>{var t,o;return null!==(o=null!==(t=null!=x?x:re)&&void 0!==t?t:_)&&void 0!==o?o:e})),de=ce&&se[ce]||"",ue=Q?"loading":I,pe=(0,l.A)(H,["navigate"]),me=i()(D,F,X,{[`${D}-${y}`]:"default"!==y&&y,[`${D}-${M}`]:M,[`${D}-${de}`]:de,[`${D}-icon-only`]:!j&&0!==j&&!!ue,[`${D}-background-ghost`]:k&&!(0,h.Ve)(M),[`${D}-loading`]:Q,[`${D}-two-chinese-chars`]:K&&ne&&!Q,[`${D}-block`]:z,[`${D}-dangerous`]:!!$,[`${D}-rtl`]:"rtl"===T},ie,O,E,null==L?void 0:L.className),ge=Object.assign(Object.assign({},null==L?void 0:L.style),P),be=i()(null==B?void 0:B.icon,null===(o=null==L?void 0:L.classNames)||void 0===o?void 0:o.icon),fe=Object.assign(Object.assign({},(null==C?void 0:C.icon)||{}),(null===(r=null==L?void 0:L.styles)||void 0===r?void 0:r.icon)||{}),he=I&&!Q?n.createElement(v,{prefixCls:D,className:be,style:fe},I):n.createElement(w,{existIcon:!!I,prefixCls:D,loading:!!Q}),$e=j||0===j?(0,h.uR)(j,ee&&ne):null;if(void 0!==pe.href)return W(n.createElement("a",Object.assign({},pe,{className:i()(me,{[`${D}-disabled`]:G}),href:G?void 0:pe.href,style:ge,onClick:oe,ref:J,tabIndex:G?-1:0}),he,$e));let ve=n.createElement("button",Object.assign({},H,{type:A,className:me,style:ge,onClick:oe,disabled:G,ref:J}),he,$e,!!ie&&n.createElement(le,{key:"compact",prefixCls:D}));return(0,h.Ve)(M)||(ve=n.createElement(s.A,{component:"Button",disabled:!!Q},ve)),W(ve)}));se.Group=f,se.__ANT_BUTTON=!0;const ce=se},40920:(e,t,o)=>{o.d(t,{A:()=>z});var n=o(96540),r=o(46942),i=o.n(r),l=o(38873),a=o(57),s=o(4424),c=o(62279),d=o(98119),u=o(20934),p=o(94241);const m=n.createContext(null);var g=o(64552),b=o(25905),f=o(80336),h=o(20106);const $=e=>{const{checkboxCls:t}=e,o=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},(0,b.dF)(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[o]:Object.assign(Object.assign({},(0,b.dF)(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${o}`]:{marginInlineStart:0},[`&${o}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},(0,b.dF)(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},(0,b.jk)(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${(0,g.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${(0,g.zA)(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`\n ${o}:not(${o}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${o}:not(${o}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`\n ${o}-checked:not(${o}-disabled),\n ${t}-checked:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${o}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function v(e,t){const o=(0,f.h1)(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[$(o)]}const y=(0,h.OF)("Checkbox",((e,t)=>{let{prefixCls:o}=t;return[v(o,e)]}));var x=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{var o;const{prefixCls:r,className:g,rootClassName:b,children:f,indeterminate:h=!1,style:$,onMouseEnter:v,onMouseLeave:C,skipGroup:S=!1,disabled:O}=e,w=x(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:E,direction:j,checkbox:I}=n.useContext(c.QO),k=n.useContext(m),{isFormItemInput:z}=n.useContext(p.$W),A=n.useContext(d.A),B=null!==(o=(null==k?void 0:k.disabled)||O)&&void 0!==o?o:A,P=n.useRef(w.value);n.useEffect((()=>{null==k||k.registerValue(w.value)}),[]),n.useEffect((()=>{if(!S)return w.value!==P.current&&(null==k||k.cancelValue(P.current),null==k||k.registerValue(w.value),P.current=w.value),()=>null==k?void 0:k.cancelValue(w.value)}),[w.value]);const H=E("checkbox",r),M=(0,u.A)(H),[R,N,T]=y(H,M),L=Object.assign({},w);k&&!S&&(L.onChange=function(){w.onChange&&w.onChange.apply(w,arguments),k.toggleOption&&k.toggleOption({label:f,value:w.value})},L.name=k.name,L.checked=k.value.includes(w.value));const D=i()(`${H}-wrapper`,{[`${H}-rtl`]:"rtl"===j,[`${H}-wrapper-checked`]:L.checked,[`${H}-wrapper-disabled`]:B,[`${H}-wrapper-in-form-item`]:z},null==I?void 0:I.className,g,b,T,M,N),W=i()({[`${H}-indeterminate`]:h},s.D,N),F=h?"mixed":void 0;return R(n.createElement(a.A,{component:"Checkbox",disabled:B},n.createElement("label",{className:D,style:Object.assign(Object.assign({},null==I?void 0:I.style),$),onMouseEnter:v,onMouseLeave:C},n.createElement(l.A,Object.assign({"aria-checked":F},L,{prefixCls:H,className:W,disabled:B,ref:t})),void 0!==f&&n.createElement("span",null,f))))};const S=n.forwardRef(C);var O=o(60436),w=o(19853),E=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{defaultValue:o,children:r,options:l=[],prefixCls:a,className:s,rootClassName:d,style:p,onChange:g}=e,b=E(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:h}=n.useContext(c.QO),[$,v]=n.useState(b.value||o||[]),[x,C]=n.useState([]);n.useEffect((()=>{"value"in b&&v(b.value||[])}),[b.value]);const j=n.useMemo((()=>l.map((e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e))),[l]),I=f("checkbox",a),k=`${I}-group`,z=(0,u.A)(I),[A,B,P]=y(I,z),H=(0,w.A)(b,["value","disabled"]),M=l.length?j.map((e=>n.createElement(S,{prefixCls:I,key:e.value.toString(),disabled:"disabled"in e?e.disabled:b.disabled,value:e.value,checked:$.includes(e.value),onChange:e.onChange,className:`${k}-item`,style:e.style,title:e.title,id:e.id,required:e.required},e.label))):r,R={toggleOption:e=>{const t=$.indexOf(e.value),o=(0,O.A)($);-1===t?o.push(e.value):o.splice(t,1),"value"in b||v(o),null==g||g(o.filter((e=>x.includes(e))).sort(((e,t)=>j.findIndex((t=>t.value===e))-j.findIndex((e=>e.value===t)))))},value:$,disabled:b.disabled,name:b.name,registerValue:e=>{C((t=>[].concat((0,O.A)(t),[e])))},cancelValue:e=>{C((t=>t.filter((t=>t!==e))))}},N=i()(k,{[`${k}-rtl`]:"rtl"===h},s,d,P,z,B);return A(n.createElement("div",Object.assign({className:N,style:p},H,{ref:t}),n.createElement(m.Provider,{value:R},M)))})),I=j,k=S;k.Group=I,k.__ANT_CHECKBOX=!0;const z=k},42953:(e,t,o)=>{o.d(t,{A:()=>p});var n=o(96540),r=o(46942),i=o.n(r),l=o(62279),a=o(36121),s=o(25006),c=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:o,direction:r}=n.useContext(l.QO),{gutter:p,wrap:m}=n.useContext(a.A),{prefixCls:g,span:b,order:f,offset:h,push:$,pull:v,className:y,children:x,flex:C,style:S}=e,O=c(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),w=o("col",g),[E,j,I]=(0,s.xV)(w),k={};let z={};u.forEach((t=>{let o={};const n=e[t];"number"==typeof n?o.span=n:"object"==typeof n&&(o=n||{}),delete O[t],z=Object.assign(Object.assign({},z),{[`${w}-${t}-${o.span}`]:void 0!==o.span,[`${w}-${t}-order-${o.order}`]:o.order||0===o.order,[`${w}-${t}-offset-${o.offset}`]:o.offset||0===o.offset,[`${w}-${t}-push-${o.push}`]:o.push||0===o.push,[`${w}-${t}-pull-${o.pull}`]:o.pull||0===o.pull,[`${w}-rtl`]:"rtl"===r}),o.flex&&(z[`${w}-${t}-flex`]=!0,k[`--${w}-${t}-flex`]=d(o.flex))}));const A=i()(w,{[`${w}-${b}`]:void 0!==b,[`${w}-order-${f}`]:f,[`${w}-offset-${h}`]:h,[`${w}-push-${$}`]:$,[`${w}-pull-${v}`]:v},y,z,j,I),B={};if(p&&p[0]>0){const e=p[0]/2;B.paddingLeft=e,B.paddingRight=e}return C&&(B.flex=d(C),!1!==m||B.minWidth||(B.minWidth=0)),E(n.createElement("div",Object.assign({},O,{style:Object.assign(Object.assign(Object.assign({},B),S),k),className:A,ref:t}),x))}))},86416:(e,t,o)=>{o.d(t,{A:()=>Fe});var n=o(96540),r=o(46942),i=o.n(r),l=o(12533),a=o(53425),s=o(58182),c=o(62279),d=o(98119),u=o(20934),p=o(829),m=o(94241),g=o(89027),b=o(64552),f=o(25905),h=o(20106),$=o(80336);const v=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:o,colorSplit:n,lineWidth:r,textPaddingInline:i,orientationMargin:l,verticalMarginInline:a}=e;return{[t]:Object.assign(Object.assign({},(0,f.dF)(e)),{borderBlockStart:`${(0,b.zA)(r)} solid ${n}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:a,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,b.zA)(r)} solid ${n}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,b.zA)(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,b.zA)(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${n}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,b.zA)(r)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${l} * 100%)`},"&::after":{width:`calc(100% - ${l} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${l} * 100%)`},"&::after":{width:`calc(${l} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:n,borderStyle:"dashed",borderWidth:`${(0,b.zA)(r)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:o}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:o}}})}},y=(0,h.OF)("Divider",(e=>{const t=(0,$.h1)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[v(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS})),{unitless:{orientationMargin:!0}});var x=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:t,direction:o,divider:r}=n.useContext(c.QO),{prefixCls:l,type:a="horizontal",orientation:s="center",orientationMargin:d,className:u,rootClassName:p,children:m,dashed:g,plain:b,style:f}=e,h=x(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),$=t("divider",l),[v,C,S]=y($),O=s.length>0?`-${s}`:s,w=!!m,E="left"===s&&null!=d,j="right"===s&&null!=d,I=i()($,null==r?void 0:r.className,C,S,`${$}-${a}`,{[`${$}-with-text`]:w,[`${$}-with-text${O}`]:w,[`${$}-dashed`]:!!g,[`${$}-plain`]:!!b,[`${$}-rtl`]:"rtl"===o,[`${$}-no-default-orientation-margin-left`]:E,[`${$}-no-default-orientation-margin-right`]:j},u,p),k=n.useMemo((()=>"number"==typeof d?d:/^\d+$/.test(d)?Number(d):d),[d]),z=Object.assign(Object.assign({},E&&{marginLeft:k}),j&&{marginRight:k});return v(n.createElement("div",Object.assign({className:I,style:Object.assign(Object.assign({},null==r?void 0:r.style),f)},h,{role:"separator"}),m&&"vertical"!==a&&n.createElement("span",{className:`${$}-inner-text`,style:z},m)))};var S=o(70104);const O=n.createContext({}),w=n.createContext({}),{Provider:E}=O,{Provider:j}=w;var I=o(23029),k=o(92901);const z=(e,t)=>(null==e?void 0:e.replace(/[^\w/]/gi,"").slice(0,t?8:6))||"";let A=function(){return(0,k.A)((function e(t){(0,I.A)(this,e),this.cleared=!1,this.metaColor=new S.Q1(t),t||(this.metaColor.setAlpha(0),this.cleared=!0)}),[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return e=this.toHexString(),t=this.metaColor.getAlpha()<1,e?z(e,t):"";var e,t}},{key:"toHexString",value:function(){return 1===this.metaColor.getAlpha()?this.metaColor.toHexString():this.metaColor.toHex8String()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}}])}();const B=e=>e instanceof A?e:new A(e),P=e=>Math.round(Number(e||0)),H=e=>P(100*e.toHsb().a),M=(e,t)=>{const o=e.toHsb();return o.a=t||1,B(o)},R=e=>{let{prefixCls:t,value:o,onChange:r}=e;return n.createElement("div",{className:`${t}-clear`,onClick:()=>{if(o&&!o.cleared){const e=o.toHsb();e.a=0;const t=B(e);t.cleared=!0,null==r||r(t)}}})};var N,T=o(47523);!function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb"}(N||(N={}));var L=o(7142);const D=e=>{let{prefixCls:t,min:o=0,max:r=100,value:l,onChange:a,className:s,formatter:c}=e;const d=`${t}-steppers`,[u,p]=(0,n.useState)(l);return(0,n.useEffect)((()=>{Number.isNaN(l)||p(l)}),[l]),n.createElement(L.A,{className:i()(d,s),min:o,max:r,value:u,formatter:c,size:"small",onChange:e=>{l||p(e||0),null==a||a(e)}})},W=e=>{let{prefixCls:t,value:o,onChange:r}=e;const i=`${t}-alpha-input`,[l,a]=(0,n.useState)(B(o||"#000"));(0,n.useEffect)((()=>{o&&a(o)}),[o]);return n.createElement(D,{value:H(l),prefixCls:t,formatter:e=>`${e}%`,className:i,onChange:e=>{const t=l.toHsb();t.a=(e||0)/100;const n=B(t);o||a(n),null==r||r(n)}})};var F=o(27444);const X=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,q=e=>X.test(`#${e}`),G=e=>{let{prefixCls:t,value:o,onChange:r}=e;const i=`${t}-hex-input`,[l,a]=(0,n.useState)(null==o?void 0:o.toHex());(0,n.useEffect)((()=>{const e=null==o?void 0:o.toHex();q(e)&&o&&a(z(e))}),[o]);return n.createElement(F.A,{className:i,value:l,prefix:"#",onChange:e=>{const t=e.target.value;a(z(t)),q(z(t,!0))&&(null==r||r(B(t)))},size:"small"})},_=e=>{let{prefixCls:t,value:o,onChange:r}=e;const i=`${t}-hsb-input`,[l,a]=(0,n.useState)(B(o||"#000"));(0,n.useEffect)((()=>{o&&a(o)}),[o]);const s=(e,t)=>{const n=l.toHsb();n[t]="h"===t?e:(e||0)/100;const i=B(n);o||a(i),null==r||r(i)};return n.createElement("div",{className:i},n.createElement(D,{max:360,min:0,value:Number(l.toHsb().h),prefixCls:t,className:i,formatter:e=>P(e||0).toString(),onChange:e=>s(Number(e),"h")}),n.createElement(D,{max:100,min:0,value:100*Number(l.toHsb().s),prefixCls:t,className:i,formatter:e=>`${P(e||0)}%`,onChange:e=>s(Number(e),"s")}),n.createElement(D,{max:100,min:0,value:100*Number(l.toHsb().b),prefixCls:t,className:i,formatter:e=>`${P(e||0)}%`,onChange:e=>s(Number(e),"b")}))},V=e=>{let{prefixCls:t,value:o,onChange:r}=e;const i=`${t}-rgb-input`,[l,a]=(0,n.useState)(B(o||"#000"));(0,n.useEffect)((()=>{o&&a(o)}),[o]);const s=(e,t)=>{const n=l.toRgb();n[t]=e||0;const i=B(n);o||a(i),null==r||r(i)};return n.createElement("div",{className:i},n.createElement(D,{max:255,min:0,value:Number(l.toRgb().r),prefixCls:t,className:i,onChange:e=>s(Number(e),"r")}),n.createElement(D,{max:255,min:0,value:Number(l.toRgb().g),prefixCls:t,className:i,onChange:e=>s(Number(e),"g")}),n.createElement(D,{max:255,min:0,value:Number(l.toRgb().b),prefixCls:t,className:i,onChange:e=>s(Number(e),"b")}))},Q=[N.hex,N.hsb,N.rgb].map((e=>({value:e,label:e.toLocaleUpperCase()}))),U=e=>{const{prefixCls:t,format:o,value:r,disabledAlpha:i,onFormatChange:a,onChange:s}=e,[c,d]=(0,l.A)(N.hex,{value:o,onChange:a}),u=`${t}-input`,p=(0,n.useMemo)((()=>{const e={value:r,prefixCls:t,onChange:s};switch(c){case N.hsb:return n.createElement(_,Object.assign({},e));case N.rgb:return n.createElement(V,Object.assign({},e));case N.hex:default:return n.createElement(G,Object.assign({},e))}}),[c,t,r,s]);return n.createElement("div",{className:`${u}-container`},n.createElement(T.A,{value:c,variant:"borderless",getPopupContainer:e=>e,popupMatchSelectWidth:68,placement:"bottomRight",onChange:e=>{d(e)},className:`${t}-format-select`,size:"small",options:Q}),n.createElement("div",{className:u},p),!i&&n.createElement(W,{prefixCls:t,value:r,onChange:s}))};var K=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const e=(0,n.useContext)(O),{prefixCls:t,allowClear:o,value:r,disabledAlpha:i,onChange:l,onClear:a,onChangeComplete:s}=e,c=K(e,["prefixCls","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete"]);return n.createElement(n.Fragment,null,o&&n.createElement(R,Object.assign({prefixCls:t,value:r,onChange:e=>{null==l||l(e),null==a||a()}},c)),n.createElement(S.Ay,{prefixCls:t,value:null==r?void 0:r.toHsb(),disabledAlpha:i,onChange:(e,t)=>{null==l||l(B(e),t,!0)},onChangeComplete:e=>{null==s||s(B(e))}}),n.createElement(U,Object.assign({value:r,onChange:l,prefixCls:t,disabledAlpha:i},c)))};var Z=o(68e3),J=o(71057),ee=o(82546),te=o(19853),oe=o(23723),ne=o(40682);const re=n.forwardRef(((e,t)=>{const{getPrefixCls:o}=n.useContext(c.QO),{prefixCls:r,className:l,showArrow:a=!0}=e,s=o("collapse",r),d=i()({[`${s}-no-arrow`]:!a},l);return n.createElement(J.A.Panel,Object.assign({ref:t},e,{prefixCls:s,className:d}))}));var ie=o(60977);const le=e=>{const{componentCls:t,contentBg:o,padding:n,headerBg:r,headerPadding:i,collapseHeaderPaddingSM:l,collapseHeaderPaddingLG:a,collapsePanelBorderRadius:s,lineWidth:c,lineType:d,colorBorder:u,colorText:p,colorTextHeading:m,colorTextDisabled:g,fontSizeLG:h,lineHeight:$,lineHeightLG:v,marginSM:y,paddingSM:x,paddingLG:C,paddingXS:S,motionDurationSlow:O,fontSizeIcon:w,contentPadding:E,fontHeight:j,fontHeightLG:I}=e,k=`${(0,b.zA)(c)} ${d} ${u}`;return{[t]:Object.assign(Object.assign({},(0,f.dF)(e)),{backgroundColor:r,border:k,borderRadius:s,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:k,"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${(0,b.zA)(s)} ${(0,b.zA)(s)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:m,lineHeight:$,cursor:"pointer",transition:`all ${O}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:j,display:"flex",alignItems:"center",paddingInlineEnd:y},[`${t}-arrow`]:Object.assign(Object.assign({},(0,f.Nk)()),{fontSize:w,transition:`transform ${O}`,svg:{transition:`transform ${O}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-icon-collapsible-only`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:p,backgroundColor:o,borderTop:k,[`& > ${t}-content-box`]:{padding:E},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:l,paddingInlineStart:S,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(x).sub(S).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:x}}},"&-large":{[`> ${t}-item`]:{fontSize:h,lineHeight:v,[`> ${t}-header`]:{padding:a,paddingInlineStart:n,[`> ${t}-expand-icon`]:{height:I,marginInlineStart:e.calc(C).sub(n).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:C}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${(0,b.zA)(s)} ${(0,b.zA)(s)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:g,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:y}}}}})}},ae=e=>{const{componentCls:t}=e,o=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[o]:{transform:"rotate(180deg)"}}}},se=e=>{const{componentCls:t,headerBg:o,paddingXXS:n,colorBorder:r}=e;return{[`${t}-borderless`]:{backgroundColor:o,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${r}`},[`\n > ${t}-item:last-child,\n > ${t}-item:last-child ${t}-header\n `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:n}}}},ce=e=>{const{componentCls:t,paddingSM:o}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:o}}}}}},de=(0,h.OF)("Collapse",(e=>{const t=(0,$.h1)(e,{collapseHeaderPaddingSM:`${(0,b.zA)(e.paddingXS)} ${(0,b.zA)(e.paddingSM)}`,collapseHeaderPaddingLG:`${(0,b.zA)(e.padding)} ${(0,b.zA)(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[le(t),se(t),ce(t),ae(t),(0,ie.A)(t)]}),(e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}))),ue=n.forwardRef(((e,t)=>{const{getPrefixCls:o,direction:r,collapse:l}=n.useContext(c.QO),{prefixCls:a,className:s,rootClassName:d,style:u,bordered:m=!0,ghost:g,size:b,expandIconPosition:f="start",children:h,expandIcon:$}=e,v=(0,p.A)((e=>{var t;return null!==(t=null!=b?b:e)&&void 0!==t?t:"middle"})),y=o("collapse",a),x=o(),[C,S,O]=de(y);const w=n.useMemo((()=>"left"===f?"start":"right"===f?"end":f),[f]),E=null!=$?$:null==l?void 0:l.expandIcon,j=n.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t="function"==typeof E?E(e):n.createElement(Z.A,{rotate:e.isActive?90:void 0});return(0,ne.Ob)(t,(()=>{var e;return{className:i()(null===(e=null==t?void 0:t.props)||void 0===e?void 0:e.className,`${y}-arrow`)}}))}),[E,y]),I=i()(`${y}-icon-position-${w}`,{[`${y}-borderless`]:!m,[`${y}-rtl`]:"rtl"===r,[`${y}-ghost`]:!!g,[`${y}-${v}`]:"middle"!==v},null==l?void 0:l.className,s,d,S,O),k=Object.assign(Object.assign({},(0,oe.A)(x)),{motionAppear:!1,leavedClassName:`${y}-content-hidden`}),z=n.useMemo((()=>h?(0,ee.A)(h).map(((e,t)=>{var o,n;if(null===(o=e.props)||void 0===o?void 0:o.disabled){const o=null!==(n=e.key)&&void 0!==n?n:String(t),{disabled:r,collapsible:i}=e.props,l=Object.assign(Object.assign({},(0,te.A)(e.props,["disabled"])),{key:o,collapsible:null!=i?i:r?"disabled":void 0});return(0,ne.Ob)(e,l)}return e})):null),[h]);return C(n.createElement(J.A,Object.assign({ref:t,openMotion:k},(0,te.A)(e,["rootClassName"]),{expandIcon:j,prefixCls:y,className:I,style:Object.assign(Object.assign({},null==l?void 0:l.style),u)}),z))}));const pe=Object.assign(ue,{Panel:re});var me=o(19155),ge=o(365);const be=e=>e.map((e=>(e.colors=e.colors.map(B),e))),fe=(e,t)=>{const{r:o,g:n,b:r,a:i}=e.toRgb(),l=new S.Q1(e.toRgbString()).onBackground(t).toHsv();return i<=.5?l.v>.5:.299*o+.587*n+.114*r>192},he=e=>{let{label:t}=e;return`panel-${t}`},$e=e=>{let{prefixCls:t,presets:o,value:r,onChange:a}=e;const[s]=(0,me.A)("ColorPicker"),[,c]=(0,ge.Ay)(),[d]=(0,l.A)(be(o),{value:be(o),postState:be}),u=`${t}-presets`,p=(0,n.useMemo)((()=>d.reduce(((e,t)=>{const{defaultOpen:o=!0}=t;return o&&e.push(he(t)),e}),[])),[d]),m=d.map((e=>{var o;return{key:he(e),label:n.createElement("div",{className:`${u}-label`},null==e?void 0:e.label),children:n.createElement("div",{className:`${u}-items`},Array.isArray(null==e?void 0:e.colors)&&(null===(o=e.colors)||void 0===o?void 0:o.length)>0?e.colors.map(((e,o)=>n.createElement(S.ZC,{key:`preset-${o}-${e.toHexString()}`,color:B(e).toRgbString(),prefixCls:t,className:i()(`${u}-color`,{[`${u}-color-checked`]:e.toHexString()===(null==r?void 0:r.toHexString()),[`${u}-color-bright`]:fe(e,c.colorBgElevated)}),onClick:()=>{return t=e,void(null==a||a(t));var t}}))):n.createElement("span",{className:`${u}-empty`},s.presetEmpty))}}));return n.createElement("div",{className:u},n.createElement(pe,{defaultActiveKey:p,ghost:!0,items:m}))},ve=()=>{const{prefixCls:e,value:t,presets:o,onChange:r}=(0,n.useContext)(w);return Array.isArray(o)?n.createElement($e,{value:t,presets:o,prefixCls:e,onChange:r}):null};var ye=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,presets:o,panelRender:r,color:i,onChange:l,onClear:a}=e,s=ye(e,["prefixCls","presets","panelRender","color","onChange","onClear"]),c=`${t}-inner`,d=Object.assign({prefixCls:t,value:i,onChange:l,onClear:a},s),u=n.useMemo((()=>({prefixCls:t,value:i,presets:o,onChange:l})),[t,i,o,l]),p=n.createElement("div",{className:`${c}-content`},n.createElement(Y,null),Array.isArray(o)&&n.createElement(C,null),n.createElement(ve,null));return n.createElement(E,{value:d},n.createElement(j,{value:u},n.createElement("div",{className:c},"function"==typeof r?r(p,{components:{Picker:Y,Presets:ve}}):p)))};var Ce=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{color:o,prefixCls:r,open:l,disabled:a,format:s,className:c,showText:d}=e,u=Ce(e,["color","prefixCls","open","disabled","format","className","showText"]),p=`${r}-trigger`,m=(0,n.useMemo)((()=>o.cleared?n.createElement(R,{prefixCls:r}):n.createElement(S.ZC,{prefixCls:r,color:o.toRgbString()})),[o,r]);return n.createElement("div",Object.assign({ref:t,className:i()(p,c,{[`${p}-active`]:l,[`${p}-disabled`]:a})},u),m,d&&n.createElement("div",{className:`${p}-text`},"function"==typeof d?d(o):d?(()=>{const e=o.toHexString().toUpperCase(),t=H(o);switch(s){case"rgb":return o.toRgbString();case"hsb":return o.toHsbString();default:return t<100?`${e.slice(0,7)},${t}%`:e}})():void 0))})),Oe={};function we(e){return void 0!==e}const Ee=(e,t)=>{const{defaultValue:o,value:r}=t,i=(0,n.useRef)(B("")),[l,a]=(0,n.useState)((()=>{let t;t=we(r)?r:we(o)?o:e;const n=B(t||"");return i.current=n,n})),s=e=>{a(e),i.current=e},c=(0,n.useRef)(Oe);return(0,n.useEffect)((()=>{if(c.current===r)return;c.current=r;const e=B(we(r)?r||"":i.current);!0===i.current.cleared&&(e.cleared="controlled"),s(e)}),[r]),[l,s,i]},je=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),Ie=(e,t)=>{const{componentCls:o,borderRadiusSM:n,colorPickerInsetShadow:r,lineWidth:i,colorFillSecondary:l}=e;return{[`${o}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:n,width:t,height:t,boxShadow:r},je("50%",e.colorFillSecondary)),{[`${o}-color-block-inner`]:{width:"100%",height:"100%",border:`${(0,b.zA)(i)} solid ${l}`,borderRadius:"inherit"}})}},ke=e=>{const{componentCls:t,antCls:o,fontSizeSM:n,lineHeightSM:r,colorPickerAlphaInputWidth:i,marginXXS:l,paddingXXS:a,controlHeightSM:s,marginXS:c,fontSizeIcon:d,paddingXS:u,colorTextPlaceholder:p,colorPickerInputNumberHandleWidth:m,lineWidth:g}=e;return{[`${t}-input-container`]:{display:"flex",[`${t}-steppers${o}-input-number`]:{fontSize:n,lineHeight:r,[`${o}-input-number-input`]:{paddingInlineStart:a,paddingInlineEnd:0},[`${o}-input-number-handler-wrap`]:{width:m}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${(0,b.zA)(i)}`,marginInlineStart:l},[`${t}-format-select${o}-select`]:{marginInlineEnd:c,width:"auto","&-single":{[`${o}-select-selector`]:{padding:0,border:0},[`${o}-select-arrow`]:{insetInlineEnd:0},[`${o}-select-selection-item`]:{paddingInlineEnd:e.calc(d).add(l).equal(),fontSize:n,lineHeight:`${(0,b.zA)(s)}`},[`${o}-select-item-option-content`]:{fontSize:n,lineHeight:r},[`${o}-select-dropdown`]:{[`${o}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:l,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:l,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${o}-input-affix-wrapper`]:{flex:1,padding:`0 ${(0,b.zA)(u)}`,[`${o}-input`]:{fontSize:n,textTransform:"uppercase",lineHeight:(0,b.zA)(e.calc(s).sub(e.calc(g).mul(2)).equal())},[`${o}-input-prefix`]:{color:p}}}}}},ze=e=>{const{componentCls:t,controlHeightLG:o,borderRadiusSM:n,colorPickerInsetShadow:r,marginSM:i,colorBgElevated:l,colorFillSecondary:a,lineWidthBold:s,colorPickerHandlerSize:c,colorPickerHandlerSizeSM:d,colorPickerSliderHeight:u}=e;return{[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(o).mul(4).equal(),overflow:"hidden",borderRadius:n},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:r,inset:0},marginBottom:i},[`${t}-handler`]:{width:c,height:c,border:`${(0,b.zA)(s)} solid ${l}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${r}, 0 0 0 1px ${a}`,"&-sm":{width:d,height:d}},[`${t}-slider`]:{borderRadius:e.calc(u).div(2).equal(),[`${t}-palette`]:{height:u},[`${t}-gradient`]:{borderRadius:e.calc(u).div(2).equal(),boxShadow:r},"&-alpha":je(`${(0,b.zA)(u)}`,e.colorFillSecondary),"&-hue":{marginBottom:i}},[`${t}-slider-container`]:{display:"flex",gap:i,marginBottom:i,[`${t}-slider-group`]:{flex:1,"&-disabled-alpha":{display:"flex",alignItems:"center",[`${t}-slider`]:{flex:1,marginBottom:0}}}}}},Ae=e=>{const{componentCls:t,antCls:o,colorTextQuaternary:n,paddingXXS:r,colorPickerPresetColorSize:i,fontSizeSM:l,colorText:a,lineHeightSM:s,lineWidth:c,borderRadius:d,colorFill:u,colorWhite:p,marginXXS:m,paddingXS:g,fontHeightSM:f}=e;return{[`${t}-presets`]:{[`${o}-collapse-item > ${o}-collapse-header`]:{padding:0,[`${o}-collapse-expand-icon`]:{height:f,color:n,paddingInlineEnd:r}},[`${o}-collapse`]:{display:"flex",flexDirection:"column",gap:m},[`${o}-collapse-item > ${o}-collapse-content > ${o}-collapse-content-box`]:{padding:`${(0,b.zA)(g)} 0`},"&-label":{fontSize:l,color:a,lineHeight:s},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(m).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:i,height:i,"&::before":{content:'""',pointerEvents:"none",width:e.calc(i).add(e.calc(c).mul(4)).equal(),height:e.calc(i).add(e.calc(c).mul(4)).equal(),position:"absolute",top:e.calc(c).mul(-2).equal(),insetInlineStart:e.calc(c).mul(-2).equal(),borderRadius:d,border:`${(0,b.zA)(c)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:u},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(i).div(13).mul(5).equal(),height:e.calc(i).div(13).mul(8).equal(),border:`${(0,b.zA)(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:p,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:l,color:n}}}},Be=(e,t,o)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${(0,b.zA)(e.controlOutlineWidth)} ${o}`,outline:0}),Pe=e=>{const{componentCls:t}=e;return{"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},He=(e,t,o)=>{const{componentCls:n,borderRadiusSM:r,lineWidth:i,colorSplit:l,colorBorder:a,red6:s}=e;return{[`${n}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:r,border:`${(0,b.zA)(i)} solid ${l}`,position:"relative",overflow:"hidden",cursor:"pointer",transition:`all ${e.motionDurationFast}`},o),{"&::after":{content:'""',position:"absolute",insetInlineEnd:i,top:0,display:"block",width:40,height:2,transformOrigin:"right",transform:"rotate(-45deg)",backgroundColor:s},"&:hover":{borderColor:a}})}},Me=e=>{const{componentCls:t,colorError:o,colorWarning:n,colorErrorHover:r,colorWarningHover:i,colorErrorOutline:l,colorWarningOutline:a}=e;return{[`&${t}-status-error`]:{borderColor:o,"&:hover":{borderColor:r},[`&${t}-trigger-active`]:Object.assign({},Be(e,o,l))},[`&${t}-status-warning`]:{borderColor:n,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:Object.assign({},Be(e,n,a))}}},Re=e=>{const{componentCls:t,controlHeightLG:o,controlHeightSM:n,controlHeight:r,controlHeightXS:i,borderRadius:l,borderRadiusSM:a,borderRadiusXS:s,borderRadiusLG:c,fontSizeLG:d}=e;return{[`&${t}-lg`]:{minWidth:o,height:o,borderRadius:c,[`${t}-color-block, ${t}-clear`]:{width:r,height:r,borderRadius:l},[`${t}-trigger-text`]:{fontSize:d}},[`&${t}-sm`]:{minWidth:n,height:n,borderRadius:a,[`${t}-color-block, ${t}-clear`]:{width:i,height:i,borderRadius:s}}}},Ne=e=>{const{antCls:t,componentCls:o,colorPickerWidth:n,colorPrimary:r,motionDurationMid:i,colorBgElevated:l,colorTextDisabled:a,colorText:s,colorBgContainerDisabled:c,borderRadius:d,marginXS:u,marginSM:p,controlHeight:m,controlHeightSM:g,colorBgTextActive:f,colorPickerPresetColorSize:h,colorPickerPreviewSize:$,lineWidth:v,colorBorder:y,paddingXXS:x,fontSize:C,colorPrimaryHover:S,controlOutline:O}=e;return[{[o]:Object.assign({[`${o}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:n,[`& > ${t}-divider`]:{margin:`${(0,b.zA)(p)} 0 ${(0,b.zA)(u)}`}},[`${o}-panel`]:Object.assign({},ze(e))},Ie(e,$)),ke(e)),Ae(e)),He(e,h,{marginInlineStart:"auto",marginBottom:u})),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:m,height:m,borderRadius:d,border:`${(0,b.zA)(v)} solid ${y}`,cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",transition:`all ${i}`,background:l,padding:e.calc(x).sub(v).equal(),[`${o}-trigger-text`]:{marginInlineStart:u,marginInlineEnd:e.calc(u).sub(e.calc(x).sub(v)).equal(),fontSize:C,color:s},"&:hover":{borderColor:S},[`&${o}-trigger-active`]:Object.assign({},Be(e,r,O)),"&-disabled":{color:a,background:c,cursor:"not-allowed","&:hover":{borderColor:f},[`${o}-trigger-text`]:{color:a}}},He(e,g)),Ie(e,g)),Me(e)),Re(e))},Pe(e))}]},Te=(0,h.OF)("ColorPicker",(e=>{const{colorTextQuaternary:t,marginSM:o}=e,n=(0,$.h1)(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:18,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:8,colorPickerPreviewSize:e.calc(8).mul(2).add(o).equal()});return[Ne(n)]}));var Le=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{value:t,defaultValue:o,format:r,defaultFormat:a,allowClear:b=!1,presets:f,children:h,trigger:$="click",open:v,disabled:y,placement:x="bottomLeft",arrow:C=!0,panelRender:S,showText:O,style:w,className:E,size:j,rootClassName:I,prefixCls:k,styles:z,disabledAlpha:A=!1,onFormatChange:P,onChange:R,onClear:N,onOpenChange:T,onChangeComplete:L,getPopupContainer:D,autoAdjustOverflow:W=!0,destroyTooltipOnHide:F}=e,X=Le(e,["value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","prefixCls","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide"]),{getPrefixCls:q,direction:G,colorPicker:_}=(0,n.useContext)(c.QO),V=(0,n.useContext)(d.A),Q=null!=y?y:V,[U,K,Y]=Ee("",{value:t,defaultValue:o}),[Z,J]=(0,l.A)(!1,{value:v,postState:e=>!Q&&e,onChange:T}),[ee,te]=(0,l.A)(r,{value:r,defaultValue:a,onChange:P}),oe=q("color-picker",k),ne=(0,n.useMemo)((()=>H(U)<100),[U]),{status:re}=n.useContext(m.$W),ie=(0,p.A)(j),le=(0,u.A)(oe),[ae,se,ce]=Te(oe,le),de={[`${oe}-rtl`]:G},ue=i()(I,ce,le,de),pe=i()((0,s.L)(oe,re),{[`${oe}-sm`]:"small"===ie,[`${oe}-lg`]:"large"===ie},null==_?void 0:_.className,ue,E,se),me=i()(oe,ue),ge=(0,n.useRef)(!0);const be=e=>{ge.current=!0;let t=B(e);A&&ne&&(t=M(e)),null==L||L(t)},fe={open:Z,trigger:$,placement:x,arrow:C,rootClassName:I,getPopupContainer:D,autoAdjustOverflow:W,destroyTooltipOnHide:F},he={prefixCls:oe,color:U,allowClear:b,disabled:Q,disabledAlpha:A,presets:f,panelRender:S,format:ee,onFormatChange:te,onChangeComplete:be},$e=Object.assign(Object.assign({},null==_?void 0:_.style),w);return ae(n.createElement(g.A,Object.assign({style:null==z?void 0:z.popup,overlayInnerStyle:null==z?void 0:z.popupOverlayInner,onOpenChange:e=>{ge.current&&!Q&&J(e)},content:n.createElement(m.XB,{override:!0,status:!0},n.createElement(xe,Object.assign({},he,{onChange:(e,n,r)=>{var i;let l=B(e);const a=null===t||!t&&null===o;((null===(i=Y.current)||void 0===i?void 0:i.cleared)||a)&&0===H(U)&&"alpha"!==n&&(l=M(l)),A&&ne&&(l=M(l)),r?ge.current=!1:null==L||L(l),K(l),null==R||R(l,l.toHexString())},onChangeComplete:be,onClear:()=>{null==N||N()}}))),overlayClassName:me},fe),h||n.createElement(Se,Object.assign({open:Z,className:pe,style:$e,prefixCls:oe,disabled:Q,showText:O,format:ee},X,{color:U}))))};const We=(0,a.A)(De,"color-picker",(e=>e),(e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1})));De._InternalPanelDoNotUseOrYouWillBeFired=We;const Fe=De},98119:(e,t,o)=>{o.d(t,{A:()=>l,X:()=>i});var n=o(96540);const r=n.createContext(!1),i=e=>{let{children:t,disabled:o}=e;const i=n.useContext(r);return n.createElement(r.Provider,{value:null!=o?o:i},t)},l=r},48224:(e,t,o)=>{o.d(t,{A:()=>l,c:()=>i});var n=o(96540);const r=n.createContext(void 0),i=e=>{let{children:t,size:o}=e;const i=n.useContext(r);return n.createElement(r.Provider,{value:o||i},t)},l=r},62279:(e,t,o)=>{o.d(t,{QO:()=>i,pM:()=>r});var n=o(96540);const r="anticon",i=n.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:r}),{Consumer:l}=i},20934:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(365);const r=e=>{const[,,,,t]=(0,n.Ay)();return t?`${e}-css-var`:""}},829:(e,t,o)=>{o.d(t,{A:()=>i});var n=o(96540),r=o(48224);const i=e=>{const t=n.useContext(r.A);return n.useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])}},78407:(e,t,o)=>{o.d(t,{Ay:()=>V,cr:()=>q});var n=o(96540),r=o.t(n,2),i=o(64552),l=o(61053),a=o(28104),s=o(20488),c=o(18877);const d=(0,n.createContext)(void 0);var u=o(21815),p=o(60685);const m=e=>{const{locale:t={},children:o,_ANT_MARK__:r}=e;n.useEffect((()=>(0,u.L)(t&&t.Modal)),[t]);const i=n.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return n.createElement(p.A.Provider,{value:i},o)};var g=o(30696),b=o(89864),f=o(50723),h=o(62279),$=o(20439),v=o(24978),y=o(20998),x=o(85089);const C=`-ant-${Date.now()}-${Math.random()}`;function S(e,t){const o=function(e,t){const o={},n=(e,t)=>{let o=e.clone();return o=(null==t?void 0:t(o))||o,o.toRgbString()},r=(e,t)=>{const r=new v.q(e),i=(0,$.cM)(r.toRgbString());o[`${t}-color`]=n(r),o[`${t}-color-disabled`]=i[1],o[`${t}-color-hover`]=i[4],o[`${t}-color-active`]=i[6],o[`${t}-color-outline`]=r.clone().setAlpha(.2).toRgbString(),o[`${t}-color-deprecated-bg`]=i[0],o[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){r(t.primaryColor,"primary");const e=new v.q(t.primaryColor),i=(0,$.cM)(e.toRgbString());i.forEach(((e,t)=>{o[`primary-${t+1}`]=e})),o["primary-color-deprecated-l-35"]=n(e,(e=>e.lighten(35))),o["primary-color-deprecated-l-20"]=n(e,(e=>e.lighten(20))),o["primary-color-deprecated-t-20"]=n(e,(e=>e.tint(20))),o["primary-color-deprecated-t-50"]=n(e,(e=>e.tint(50))),o["primary-color-deprecated-f-12"]=n(e,(e=>e.setAlpha(.12*e.getAlpha())));const l=new v.q(i[0]);o["primary-color-active-deprecated-f-30"]=n(l,(e=>e.setAlpha(.3*e.getAlpha()))),o["primary-color-active-deprecated-d-02"]=n(l,(e=>e.darken(2)))}return t.successColor&&r(t.successColor,"success"),t.warningColor&&r(t.warningColor,"warning"),t.errorColor&&r(t.errorColor,"error"),t.infoColor&&r(t.infoColor,"info"),`\n :root {\n ${Object.keys(o).map((t=>`--${e}-${t}: ${o[t]};`)).join("\n")}\n }\n `.trim()}(e,t);(0,y.A)()&&(0,x.BD)(o,`${C}-dynamic-theme`)}var O=o(98119),w=o(48224);const E=function(){return{componentDisabled:(0,n.useContext)(O.A),componentSize:(0,n.useContext)(w.A)}};var j=o(43210);const I=Object.assign({},r),{useId:k}=I,z=void 0===k?()=>"":k;var A=o(57557),B=o(365);function P(e){const{children:t}=e,[,o]=(0,B.Ay)(),{motion:r}=o,i=n.useRef(!1);return i.current=i.current||!1===r,i.current?n.createElement(A.Kq,{motion:r},t):t}const H=()=>null;var M=o(62366),R=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r({getPrefixCls:(e,t)=>t||(e?`${F()}-${e}`:F()),getIconPrefixCls:X,getRootPrefixCls:()=>T||F(),getTheme:()=>D,holderRender:W}),G=e=>{const{children:t,csp:o,autoInsertSpaceInButton:r,alert:u,anchor:p,form:$,locale:v,componentSize:y,direction:x,space:C,virtual:S,dropdownMatchSelectWidth:E,popupMatchSelectWidth:I,popupOverflow:k,legacyLocale:A,parentContext:B,iconPrefixCls:T,theme:L,componentDisabled:D,segmented:W,statistic:F,spin:X,calendar:q,carousel:G,cascader:_,collapse:V,typography:Q,checkbox:U,descriptions:K,divider:Y,drawer:Z,skeleton:J,steps:ee,image:te,layout:oe,list:ne,mentions:re,modal:ie,progress:le,result:ae,slider:se,breadcrumb:ce,menu:de,pagination:ue,input:pe,textArea:me,empty:ge,badge:be,radio:fe,rate:he,switch:$e,transfer:ve,avatar:ye,message:xe,tag:Ce,table:Se,card:Oe,tabs:we,timeline:Ee,timePicker:je,upload:Ie,notification:ke,tree:ze,colorPicker:Ae,datePicker:Be,rangePicker:Pe,flex:He,wave:Me,dropdown:Re,warning:Ne,tour:Te,floatButtonGroup:Le}=e,De=n.useCallback(((t,o)=>{const{prefixCls:n}=e;if(o)return o;const r=n||B.getPrefixCls("");return t?`${r}-${t}`:r}),[B.getPrefixCls,e.prefixCls]),We=T||B.iconPrefixCls||h.pM,Fe=o||B.csp;(0,M.A)(We,Fe);const Xe=function(e,t,o){var n;(0,c.rJ)("ConfigProvider");const r=e||{},i=!1!==r.inherit&&t?t:Object.assign(Object.assign({},b.sb),{hashed:null!==(n=null==t?void 0:t.hashed)&&void 0!==n?n:b.sb.hashed,cssVar:null==t?void 0:t.cssVar}),l=z();return(0,a.A)((()=>{var n,a;if(!e)return t;const s=Object.assign({},i.components);Object.keys(e.components||{}).forEach((t=>{s[t]=Object.assign(Object.assign({},s[t]),e.components[t])}));const c=`css-var-${l.replace(/:/g,"")}`,d=(null!==(n=r.cssVar)&&void 0!==n?n:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==o?void 0:o.prefixCls},"object"==typeof i.cssVar?i.cssVar:{}),"object"==typeof r.cssVar?r.cssVar:{}),{key:"object"==typeof r.cssVar&&(null===(a=r.cssVar)||void 0===a?void 0:a.key)||c});return Object.assign(Object.assign(Object.assign({},i),r),{token:Object.assign(Object.assign({},i.token),r.token),components:s,cssVar:d})}),[r,i],((e,t)=>e.some(((e,o)=>{const n=t[o];return!(0,j.A)(e,n,!0)}))))}(L,B.theme,{prefixCls:De("")});const qe={csp:Fe,autoInsertSpaceInButton:r,alert:u,anchor:p,locale:v||A,direction:x,space:C,virtual:S,popupMatchSelectWidth:null!=I?I:E,popupOverflow:k,getPrefixCls:De,iconPrefixCls:We,theme:Xe,segmented:W,statistic:F,spin:X,calendar:q,carousel:G,cascader:_,collapse:V,typography:Q,checkbox:U,descriptions:K,divider:Y,drawer:Z,skeleton:J,steps:ee,image:te,input:pe,textArea:me,layout:oe,list:ne,mentions:re,modal:ie,progress:le,result:ae,slider:se,breadcrumb:ce,menu:de,pagination:ue,empty:ge,badge:be,radio:fe,rate:he,switch:$e,transfer:ve,avatar:ye,message:xe,tag:Ce,table:Se,card:Oe,tabs:we,timeline:Ee,timePicker:je,upload:Ie,notification:ke,tree:ze,colorPicker:Ae,datePicker:Be,rangePicker:Pe,flex:He,wave:Me,dropdown:Re,warning:Ne,tour:Te,floatButtonGroup:Le},Ge=Object.assign({},B);Object.keys(qe).forEach((e=>{void 0!==qe[e]&&(Ge[e]=qe[e])})),N.forEach((t=>{const o=e[t];o&&(Ge[t]=o)}));const _e=(0,a.A)((()=>Ge),Ge,((e,t)=>{const o=Object.keys(e),n=Object.keys(t);return o.length!==n.length||o.some((o=>e[o]!==t[o]))})),Ve=n.useMemo((()=>({prefixCls:We,csp:Fe})),[We,Fe]);let Qe=n.createElement(n.Fragment,null,n.createElement(H,{dropdownMatchSelectWidth:E}),t);const Ue=n.useMemo((()=>{var e,t,o,n;return(0,s.h)((null===(e=g.A.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(o=null===(t=_e.locale)||void 0===t?void 0:t.Form)||void 0===o?void 0:o.defaultValidateMessages)||{},(null===(n=_e.form)||void 0===n?void 0:n.validateMessages)||{},(null==$?void 0:$.validateMessages)||{})}),[_e,null==$?void 0:$.validateMessages]);Object.keys(Ue).length>0&&(Qe=n.createElement(d.Provider,{value:Ue},Qe)),v&&(Qe=n.createElement(m,{locale:v,_ANT_MARK__:"internalMark"},Qe)),(We||Fe)&&(Qe=n.createElement(l.A.Provider,{value:Ve},Qe)),y&&(Qe=n.createElement(w.c,{size:y},Qe)),Qe=n.createElement(P,null,Qe);const Ke=n.useMemo((()=>{const e=Xe||{},{algorithm:t,token:o,components:n,cssVar:r}=e,l=R(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?(0,i.an)(t):b.zQ,s={};Object.entries(n||{}).forEach((e=>{let[t,o]=e;const n=Object.assign({},o);"algorithm"in n&&(!0===n.algorithm?n.theme=a:(Array.isArray(n.algorithm)||"function"==typeof n.algorithm)&&(n.theme=(0,i.an)(n.algorithm)),delete n.algorithm),s[t]=n}));const c=Object.assign(Object.assign({},f.A),o);return Object.assign(Object.assign({},l),{theme:a,token:c,components:s,override:Object.assign({override:c},s),cssVar:r})}),[Xe]);return L&&(Qe=n.createElement(b.vG.Provider,{value:Ke},Qe)),_e.warning&&(Qe=n.createElement(c._n.Provider,{value:_e.warning},Qe)),void 0!==D&&(Qe=n.createElement(O.X,{disabled:D},Qe)),n.createElement(h.QO.Provider,{value:_e},Qe)},_=e=>{const t=n.useContext(h.QO),o=n.useContext(p.A);return n.createElement(G,Object.assign({parentContext:t,legacyLocale:o},e))};_.ConfigContext=h.QO,_.SizeContext=w.A,_.config=e=>{const{prefixCls:t,iconPrefixCls:o,theme:n,holderRender:r}=e;void 0!==t&&(T=t),void 0!==o&&(L=o),"holderRender"in e&&(W=r),n&&(!function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(n)?D=n:S(F(),n))},_.useConfig=E,Object.defineProperty(_,"SizeContext",{get:()=>w.A});const V=_},94241:(e,t,o)=>{o.d(t,{$W:()=>r,Pp:()=>l,XB:()=>i});var n=o(96540);o(42013);const r=n.createContext({});const i=e=>{let{children:t,status:o,override:i}=e;const l=(0,n.useContext)(r),a=(0,n.useMemo)((()=>{const e=Object.assign({},l);return i&&delete e.isFormItemInput,o&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[o,i,l]);return n.createElement(r.Provider,{value:a},t)},l=(0,n.createContext)(void 0)},90124:(e,t,o)=>{o.d(t,{A:()=>l});var n=o(96540),r=o(94241);const i=["outlined","borderless","filled"],l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;const o=(0,n.useContext)(r.Pp);let l;l=void 0!==e?e:!1===t?"borderless":null!=o?o:"outlined";return[l,i.includes(l)]}},36121:(e,t,o)=>{o.d(t,{A:()=>n});const n=(0,o(96540).createContext)({})},25006:(e,t,o)=>{o.d(t,{L3:()=>s,xV:()=>c});var n=o(64552),r=o(20106),i=o(80336);const l=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},a=(e,t)=>((e,t)=>{const{prefixCls:o,componentCls:n,gridColumns:r}=e,i={};for(let e=r;e>=0;e--)0===e?(i[`${n}${t}-${e}`]={display:"none"},i[`${n}-push-${e}`]={insetInlineStart:"auto"},i[`${n}-pull-${e}`]={insetInlineEnd:"auto"},i[`${n}${t}-push-${e}`]={insetInlineStart:"auto"},i[`${n}${t}-pull-${e}`]={insetInlineEnd:"auto"},i[`${n}${t}-offset-${e}`]={marginInlineStart:0},i[`${n}${t}-order-${e}`]={order:0}):(i[`${n}${t}-${e}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${e/r*100}%`,maxWidth:e/r*100+"%"}],i[`${n}${t}-push-${e}`]={insetInlineStart:e/r*100+"%"},i[`${n}${t}-pull-${e}`]={insetInlineEnd:e/r*100+"%"},i[`${n}${t}-offset-${e}`]={marginInlineStart:e/r*100+"%"},i[`${n}${t}-order-${e}`]={order:e});return i[`${n}${t}-flex`]={flex:`var(--${o}${t}-flex)`},i})(e,t),s=(0,r.OF)("Grid",(e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}}),(()=>({}))),c=(0,r.OF)("Grid",(e=>{const t=(0,i.h1)(e,{gridColumns:24}),o={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[l(t),a(t,""),a(t,"-xs"),Object.keys(o).map((e=>((e,t,o)=>({[`@media (min-width: ${(0,n.zA)(t)})`]:Object.assign({},a(e,o))}))(t,o[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}),(()=>({})))},7142:(e,t,o)=>{o.d(t,{A:()=>H});var n=o(96540),r=o(14103),i=o(83853),l=o(46942),a=o.n(l),s=o(65829),c=o(58182),d=o(62279),u=o(78407),p=o(98119),m=o(20934),g=o(829),b=o(94241),f=o(90124),h=o(76327),$=o(64552),v=o(81594),y=o(44335),x=o(89222),C=o(25905),S=o(55974),O=o(20106),w=o(80336),E=o(24978);const j=(e,t)=>{let{componentCls:o,borderRadiusSM:n,borderRadiusLG:r}=e;const i="lg"===t?r:n;return{[`&-${t}`]:{[`${o}-handler-wrap`]:{borderStartEndRadius:i,borderEndEndRadius:i},[`${o}-handler-up`]:{borderStartEndRadius:i},[`${o}-handler-down`]:{borderEndEndRadius:i}}}},I=e=>{const{componentCls:t,lineWidth:o,lineType:n,borderRadius:r,fontSizeLG:i,controlHeightLG:l,controlHeightSM:a,colorError:s,paddingInlineSM:c,paddingBlockSM:d,paddingBlockLG:u,paddingInlineLG:p,colorTextDescription:m,motionDurationMid:g,handleHoverColor:b,paddingInline:f,paddingBlock:h,handleBg:y,handleActiveBg:S,colorTextDisabled:O,borderRadiusSM:w,borderRadiusLG:E,controlWidth:I,handleOpacity:k,handleBorderColor:z,filledHandleBg:A,lineHeightLG:B,calc:P}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,C.dF)(e)),(0,v.wj)(e)),{display:"inline-block",width:I,margin:0,padding:0,borderRadius:r}),(0,x.Eb)(e,{[`${t}-handler-wrap`]:{background:y,[`${t}-handler-down`]:{borderBlockStart:`${(0,$.zA)(o)} ${n} ${z}`}}})),(0,x.sA)(e,{[`${t}-handler-wrap`]:{background:A,[`${t}-handler-down`]:{borderBlockStart:`${(0,$.zA)(o)} ${n} ${z}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:y}}})),(0,x.lB)(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,lineHeight:B,borderRadius:E,[`input${t}-input`]:{height:P(l).sub(P(o).mul(2)).equal(),padding:`${(0,$.zA)(u)} ${(0,$.zA)(p)}`}},"&-sm":{padding:0,borderRadius:w,[`input${t}-input`]:{height:P(a).sub(P(o).mul(2)).equal(),padding:`${(0,$.zA)(d)} ${(0,$.zA)(c)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:s}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,C.dF)(e)),(0,v.XM)(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:E,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:w}}},(0,x.nm)(e)),(0,x.Vy)(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,C.dF)(e)),{width:"100%",padding:`${(0,$.zA)(h)} ${(0,$.zA)(f)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:r,outline:0,transition:`all ${g} linear`,appearance:"textfield",fontSize:"inherit"}),(0,v.j_)(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:Object.assign(Object.assign(Object.assign({[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",borderStartStartRadius:0,borderStartEndRadius:r,borderEndEndRadius:r,borderEndStartRadius:0,opacity:k,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${g} linear ${g}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:m,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,$.zA)(o)} ${n} ${z}`,transition:`all ${g} linear`,"&:active":{background:S},"&:hover":{height:"60%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{color:b}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,C.Nk)()),{color:m,transition:`all ${g} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:r},[`${t}-handler-down`]:{borderEndEndRadius:r}},j(e,"lg")),j(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`\n ${t}-handler-up-disabled,\n ${t}-handler-down-disabled\n `]:{cursor:"not-allowed"},[`\n ${t}-handler-up-disabled:hover &-handler-up-inner,\n ${t}-handler-down-disabled:hover &-handler-down-inner\n `]:{color:O}})}]},k=e=>{const{componentCls:t,paddingBlock:o,paddingInline:n,inputAffixPadding:r,controlWidth:i,borderRadiusLG:l,borderRadiusSM:a,paddingInlineLG:s,paddingInlineSM:c,paddingBlockLG:d,paddingBlockSM:u}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${(0,$.zA)(o)} 0`}},(0,v.wj)(e)),{position:"relative",display:"inline-flex",width:i,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:l,paddingInlineStart:s,[`input${t}-input`]:{padding:`${(0,$.zA)(d)} 0`}},"&-sm":{borderRadius:a,paddingInlineStart:c,[`input${t}-input`]:{padding:`${(0,$.zA)(u)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:r},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:n,marginInlineStart:r}}})}},z=(0,O.OF)("InputNumber",(e=>{const t=(0,w.h1)(e,(0,y.C)(e));return[I(t),k(t),(0,S.G)(t)]}),(e=>{var t;const o=null!==(t=e.handleVisible)&&void 0!==t?t:"auto";return Object.assign(Object.assign({},(0,y.b)(e)),{controlWidth:90,handleWidth:e.controlHeightSM-2*e.lineWidth,handleFontSize:e.fontSize/2,handleVisible:o,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new E.q(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:!0===o?1:0})}),{unitless:{handleOpacity:!0}});var A=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:o,direction:l}=n.useContext(d.QO),u=n.useRef(null);n.useImperativeHandle(t,(()=>u.current));const{className:$,rootClassName:v,size:y,disabled:x,prefixCls:C,addonBefore:S,addonAfter:O,prefix:w,bordered:E,readOnly:j,status:I,controls:k,variant:B}=e,P=A(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls","variant"]),H=o("input-number",C),M=(0,m.A)(H),[R,N,T]=z(H,M),{compactSize:L,compactItemClassnames:D}=(0,h.RQ)(H,l);let W=n.createElement(i.A,{className:`${H}-handler-up-inner`}),F=n.createElement(r.A,{className:`${H}-handler-down-inner`});const X="boolean"==typeof k?k:void 0;"object"==typeof k&&(W=void 0===k.upIcon?W:n.createElement("span",{className:`${H}-handler-up-inner`},k.upIcon),F=void 0===k.downIcon?F:n.createElement("span",{className:`${H}-handler-down-inner`},k.downIcon));const{hasFeedback:q,status:G,isFormItemInput:_,feedbackIcon:V}=n.useContext(b.$W),Q=(0,c.v)(G,I),U=(0,g.A)((e=>{var t;return null!==(t=null!=y?y:L)&&void 0!==t?t:e})),K=n.useContext(p.A),Y=null!=x?x:K,[Z,J]=(0,f.A)(B,E),ee=q&&n.createElement(n.Fragment,null,V),te=a()({[`${H}-lg`]:"large"===U,[`${H}-sm`]:"small"===U,[`${H}-rtl`]:"rtl"===l,[`${H}-in-form-item`]:_},N),oe=`${H}-group`;return R(n.createElement(s.A,Object.assign({ref:u,disabled:Y,className:a()(T,M,$,v,D),upHandler:W,downHandler:F,prefixCls:H,readOnly:j,controls:X,prefix:w,suffix:ee,addonAfter:O&&n.createElement(h.K6,null,n.createElement(b.XB,{override:!0,status:!0},O)),addonBefore:S&&n.createElement(h.K6,null,n.createElement(b.XB,{override:!0,status:!0},S)),classNames:{input:te,variant:a()({[`${H}-${Z}`]:J},(0,c.L)(H,Q,q)),affixWrapper:a()({[`${H}-affix-wrapper-sm`]:"small"===U,[`${H}-affix-wrapper-lg`]:"large"===U,[`${H}-affix-wrapper-rtl`]:"rtl"===l},N),wrapper:a()({[`${oe}-rtl`]:"rtl"===l},N),groupWrapper:a()({[`${H}-group-wrapper-sm`]:"small"===U,[`${H}-group-wrapper-lg`]:"large"===U,[`${H}-group-wrapper-rtl`]:"rtl"===l,[`${H}-group-wrapper-${Z}`]:J},(0,c.L)(`${H}-group-wrapper`,Q,q),N)}},P)))})),P=B;P._InternalPanelDoNotUseOrYouWillBeFired=e=>n.createElement(u.Ay,{theme:{components:{InputNumber:{handleVisible:!0}}}},n.createElement(B,Object.assign({},e)));const H=P},27444:(e,t,o)=>{o.d(t,{A:()=>ee});var n=o(96540),r=o(46942),i=o.n(r),l=o(62279),a=o(94241),s=o(81594);const c=e=>{const{getPrefixCls:t,direction:o}=(0,n.useContext)(l.QO),{prefixCls:r,className:c}=e,d=t("input-group",r),u=t("input"),[p,m]=(0,s.Ay)(u),g=i()(d,{[`${d}-lg`]:"large"===e.size,[`${d}-sm`]:"small"===e.size,[`${d}-compact`]:e.compact,[`${d}-rtl`]:"rtl"===o},m,c),b=(0,n.useContext)(a.$W),f=(0,n.useMemo)((()=>Object.assign(Object.assign({},b),{isFormItemInput:!1})),[b]);return p(n.createElement("span",{className:g,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},n.createElement(a.$W.Provider,{value:f},e.children)))};var d=o(48491),u=o(8719),p=o(36029);const m=e=>{let t;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?t=e:e&&(t={clearIcon:n.createElement(p.A,null)}),t};var g=o(58182),b=o(98119),f=o(20934),h=o(829),$=o(90124),v=o(76327);function y(e,t){const o=(0,n.useRef)([]),r=()=>{o.current.push(setTimeout((()=>{var t,o,n,r;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(o=e.current)||void 0===o?void 0:o.input.getAttribute("type"))&&(null===(n=e.current)||void 0===n?void 0:n.input.hasAttribute("value"))&&(null===(r=e.current)||void 0===r||r.input.removeAttribute("value"))})))};return(0,n.useEffect)((()=>(t&&r(),()=>o.current.forEach((e=>{e&&clearTimeout(e)})))),[]),r}var x=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{var o;const{prefixCls:r,bordered:c=!0,status:p,size:C,disabled:S,onBlur:O,onFocus:w,suffix:E,allowClear:j,addonAfter:I,addonBefore:k,className:z,style:A,styles:B,rootClassName:P,onChange:H,classNames:M,variant:R}=e,N=x(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);const{getPrefixCls:T,direction:L,input:D}=n.useContext(l.QO),W=T("input",r),F=(0,n.useRef)(null),X=(0,f.A)(W),[q,G,_]=(0,s.Ay)(W,X),{compactSize:V,compactItemClassnames:Q}=(0,v.RQ)(W,L),U=(0,h.A)((e=>{var t;return null!==(t=null!=C?C:V)&&void 0!==t?t:e})),K=n.useContext(b.A),Y=null!=S?S:K,{status:Z,hasFeedback:J,feedbackIcon:ee}=(0,n.useContext)(a.$W),te=(0,g.v)(Z,p),oe=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!J;(0,n.useRef)(oe);const ne=y(F,!0),re=(J||E)&&n.createElement(n.Fragment,null,E,J&&ee),ie=m(null!=j?j:null==D?void 0:D.allowClear),[le,ae]=(0,$.A)(R,c);return q(n.createElement(d.A,Object.assign({ref:(0,u.K4)(t,F),prefixCls:W,autoComplete:null==D?void 0:D.autoComplete},N,{disabled:Y,onBlur:e=>{ne(),null==O||O(e)},onFocus:e=>{ne(),null==w||w(e)},style:Object.assign(Object.assign({},null==D?void 0:D.style),A),styles:Object.assign(Object.assign({},null==D?void 0:D.styles),B),suffix:re,allowClear:ie,className:i()(z,P,_,X,Q,null==D?void 0:D.className),onChange:e=>{ne(),null==H||H(e)},addonAfter:I&&n.createElement(v.K6,null,n.createElement(a.XB,{override:!0,status:!0},I)),addonBefore:k&&n.createElement(v.K6,null,n.createElement(a.XB,{override:!0,status:!0},k)),classNames:Object.assign(Object.assign(Object.assign({},M),null==D?void 0:D.classNames),{input:i()({[`${W}-sm`]:"small"===U,[`${W}-lg`]:"large"===U,[`${W}-rtl`]:"rtl"===L},null==M?void 0:M.input,null===(o=null==D?void 0:D.classNames)||void 0===o?void 0:o.input,G),variant:i()({[`${W}-${le}`]:ae},(0,g.L)(W,te)),affixWrapper:i()({[`${W}-affix-wrapper-sm`]:"small"===U,[`${W}-affix-wrapper-lg`]:"large"===U,[`${W}-affix-wrapper-rtl`]:"rtl"===L},G),wrapper:i()({[`${W}-group-rtl`]:"rtl"===L},G),groupWrapper:i()({[`${W}-group-wrapper-sm`]:"small"===U,[`${W}-group-wrapper-lg`]:"large"===U,[`${W}-group-wrapper-rtl`]:"rtl"===L,[`${W}-group-wrapper-${le}`]:ae},(0,g.L)(`${W}-group-wrapper`,te,J),G)})})))}));const S=C;var O=o(60436),w=o(81470),E=o(72065),j=o(20106),I=o(80336),k=o(44335);const z=e=>{const{componentCls:t,paddingXS:o}=e;return{[`${t}`]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:o,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},A=(0,j.OF)(["Input","OTP"],(e=>{const t=(0,I.h1)(e,(0,k.C)(e));return[z(t)]}),k.b);var B=o(25371),P=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{value:o,onChange:r,onActiveChange:i,index:l}=e,a=P(e,["value","onChange","onActiveChange","index"]),s=n.useRef(null);n.useImperativeHandle(t,(()=>s.current));const c=()=>{(0,B.A)((()=>{var e;const t=null===(e=s.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()}))};return n.createElement(S,Object.assign({},a,{ref:s,value:o,onInput:e=>{r(l,e.target.value)},onFocus:c,onKeyDown:e=>{let{key:t}=e;"ArrowLeft"===t?i(l-1):"ArrowRight"===t&&i(l+1),c()},onKeyUp:e=>{"Backspace"!==e.key||o||i(l-1),c()},onMouseDown:c,onMouseUp:c}))}));var M=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{prefixCls:o,length:r=6,size:s,defaultValue:c,value:d,onChange:u,formatter:p,variant:m,disabled:b,status:$,autoFocus:v}=e,y=M(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus"]),{getPrefixCls:x,direction:C}=n.useContext(l.QO),S=x("otp",o),j=(0,E.A)(y,{aria:!0,data:!0,attr:!0}),I=(0,f.A)(S),[k,z,B]=A(S,I),P=(0,h.A)((e=>null!=s?s:e)),N=n.useContext(a.$W),T=(0,g.v)(N.status,$),L=n.useMemo((()=>Object.assign(Object.assign({},N),{status:T,hasFeedback:!1,feedbackIcon:null})),[N,T]),D=n.useRef(null),W=n.useRef({});n.useImperativeHandle(t,(()=>({focus:()=>{var e;null===(e=W.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;tp?p(e):e,[X,q]=n.useState(R(F(c||"")));n.useEffect((()=>{void 0!==d&&q(R(d))}),[d]);const G=(0,w._q)((e=>{q(e),u&&e.length===r&&e.every((e=>e))&&e.some(((e,t)=>X[t]!==e))&&u(e.join(""))})),_=(0,w._q)(((e,t)=>{let o=(0,O.A)(X);for(let t=0;t=0&&!o[e];e-=1)o.pop();const n=F(o.map((e=>e||" ")).join(""));return o=R(n).map(((e,t)=>" "!==e||o[t]?e:o[t])),o})),V=(e,t)=>{var o;const n=_(e,t),i=Math.min(e+t.length,r-1);i!==e&&(null===(o=W.current[i])||void 0===o||o.focus()),G(n)},Q=e=>{var t;null===(t=W.current[e])||void 0===t||t.focus()},U={variant:m,disabled:b,status:T};return k(n.createElement("div",Object.assign({},j,{ref:D,className:i()(S,{[`${S}-sm`]:"small"===P,[`${S}-lg`]:"large"===P,[`${S}-rtl`]:"rtl"===C},B,z)}),n.createElement(a.$W.Provider,{value:L},new Array(r).fill(0).map(((e,t)=>{const o=`otp-${t}`,r=X[t]||"";return n.createElement(H,Object.assign({ref:e=>{W.current[t]=e},key:o,index:t,size:P,htmlSize:1,className:`${S}-input`,onChange:V,value:r,onActiveChange:Q,autoFocus:0===t&&v},U))})))))}));var T=o(8597),L=o(30234),D=o(19853),W=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);re?n.createElement(L.A,null):n.createElement(T.A,null),X={click:"onClick",hover:"onMouseOver"};const q=n.forwardRef(((e,t)=>{const{visibilityToggle:o=!0}=e,r="object"==typeof o&&void 0!==o.visible,[a,s]=(0,n.useState)((()=>!!r&&o.visible)),c=(0,n.useRef)(null);n.useEffect((()=>{r&&s(o.visible)}),[r,o]);const d=y(c),p=()=>{const{disabled:t}=e;t||(a&&d(),s((e=>{var t;const n=!e;return"object"==typeof o&&(null===(t=o.onVisibleChange)||void 0===t||t.call(o,n)),n})))},{className:m,prefixCls:g,inputPrefixCls:b,size:f}=e,h=W(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:$}=n.useContext(l.QO),v=$("input",b),x=$("input-password",g),C=o&&(t=>{const{action:o="click",iconRender:r=F}=e,i=X[o]||"",l=r(a),s={[i]:p,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return n.cloneElement(n.isValidElement(l)?l:n.createElement("span",null,l),s)})(x),O=i()(x,m,{[`${x}-${f}`]:!!f}),w=Object.assign(Object.assign({},(0,D.A)(h,["suffix","iconRender","visibilityToggle"])),{type:a?"text":"password",className:O,prefixCls:v,suffix:C});return f&&(w.size=f),n.createElement(S,Object.assign({ref:(0,u.K4)(t,c)},w))}));var G=o(42877),_=o(40682),V=o(68777),Q=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{prefixCls:o,inputPrefixCls:r,className:a,size:s,suffix:c,enterButton:d=!1,addonAfter:p,loading:m,disabled:g,onSearch:b,onChange:f,onCompositionStart:$,onCompositionEnd:y}=e,x=Q(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:C,direction:O}=n.useContext(l.QO),w=n.useRef(!1),E=C("input-search",o),j=C("input",r),{compactSize:I}=(0,v.RQ)(E,O),k=(0,h.A)((e=>{var t;return null!==(t=null!=s?s:I)&&void 0!==t?t:e})),z=n.useRef(null),A=e=>{var t;document.activeElement===(null===(t=z.current)||void 0===t?void 0:t.input)&&e.preventDefault()},B=e=>{var t,o;b&&b(null===(o=null===(t=z.current)||void 0===t?void 0:t.input)||void 0===o?void 0:o.value,e,{source:"input"})},P="boolean"==typeof d?n.createElement(G.A,null):null,H=`${E}-button`;let M;const R=d||{},N=R.type&&!0===R.type.__ANT_BUTTON;M=N||"button"===R.type?(0,_.Ob)(R,Object.assign({onMouseDown:A,onClick:e=>{var t,o;null===(o=null===(t=null==R?void 0:R.props)||void 0===t?void 0:t.onClick)||void 0===o||o.call(t,e),B(e)},key:"enterButton"},N?{className:H,size:k}:{})):n.createElement(V.Ay,{className:H,type:d?"primary":void 0,size:k,disabled:g,key:"enterButton",onMouseDown:A,onClick:B,loading:m,icon:P},d),p&&(M=[M,(0,_.Ob)(p,{key:"addonAfter"})]);const T=i()(E,{[`${E}-rtl`]:"rtl"===O,[`${E}-${k}`]:!!k,[`${E}-with-button`]:!!d},a);return n.createElement(S,Object.assign({ref:(0,u.K4)(z,t),onPressEnter:e=>{w.current||m||B(e)}},x,{size:k,onCompositionStart:e=>{w.current=!0,null==$||$(e)},onCompositionEnd:e=>{w.current=!1,null==y||y(e)},prefixCls:j,addonAfter:M,suffix:c,onChange:e=>{e&&e.target&&"click"===e.type&&b&&b(e.target.value,e,{source:"clear"}),f&&f(e)},className:T,disabled:g}))}));var K=o(9919),Y=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{var o,r;const{prefixCls:c,bordered:d=!0,size:u,disabled:p,status:v,allowClear:y,classNames:x,rootClassName:C,className:S,style:O,styles:w,variant:E}=e,j=Y(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);const{getPrefixCls:I,direction:k,textArea:z}=n.useContext(l.QO),A=(0,h.A)(u),B=n.useContext(b.A),P=null!=p?p:B,{status:H,hasFeedback:M,feedbackIcon:R}=n.useContext(a.$W),N=(0,g.v)(H,v),T=n.useRef(null);n.useImperativeHandle(t,(()=>{var e;return{resizableTextArea:null===(e=T.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,o;!function(e,t){if(!e)return;e.focus(t);const{cursor:o}=t||{};if(o){const t=e.value.length;switch(o){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(null===(o=null===(t=T.current)||void 0===t?void 0:t.resizableTextArea)||void 0===o?void 0:o.textArea,e)},blur:()=>{var e;return null===(e=T.current)||void 0===e?void 0:e.blur()}}}));const L=I("input",c),D=(0,f.A)(L),[W,F,X]=(0,s.Ay)(L,D),[q,G]=(0,$.A)(E,d),_=m(null!=y?y:null==z?void 0:z.allowClear);return W(n.createElement(K.A,Object.assign({autoComplete:null==z?void 0:z.autoComplete},j,{style:Object.assign(Object.assign({},null==z?void 0:z.style),O),styles:Object.assign(Object.assign({},null==z?void 0:z.styles),w),disabled:P,allowClear:_,className:i()(X,D,S,C,null==z?void 0:z.className),classNames:Object.assign(Object.assign(Object.assign({},x),null==z?void 0:z.classNames),{textarea:i()({[`${L}-sm`]:"small"===A,[`${L}-lg`]:"large"===A},F,null==x?void 0:x.textarea,null===(o=null==z?void 0:z.classNames)||void 0===o?void 0:o.textarea),variant:i()({[`${L}-${q}`]:G},(0,g.L)(L,N)),affixWrapper:i()(`${L}-textarea-affix-wrapper`,{[`${L}-affix-wrapper-rtl`]:"rtl"===k,[`${L}-affix-wrapper-sm`]:"small"===A,[`${L}-affix-wrapper-lg`]:"large"===A,[`${L}-textarea-show-count`]:e.showCount||(null===(r=e.count)||void 0===r?void 0:r.show)},F)}),prefixCls:L,suffix:M&&n.createElement("span",{className:`${L}-textarea-suffix`},R),ref:T})))})),J=S;J.Group=c,J.Search=U,J.TextArea=Z,J.Password=q,J.OTP=N;const ee=J},81594:(e,t,o)=>{o.d(t,{Ay:()=>C,XM:()=>g,j_:()=>d,wj:()=>m});var n=o(64552),r=o(25905),i=o(55974),l=o(20106),a=o(80336),s=o(44335),c=o(89222);const d=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),u=e=>{const{paddingBlockLG:t,lineHeightLG:o,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${(0,n.zA)(t)} ${(0,n.zA)(i)}`,fontSize:e.inputFontSizeLG,lineHeight:o,borderRadius:r}},p=e=>({padding:`${(0,n.zA)(e.paddingBlockSM)} ${(0,n.zA)(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),m=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${(0,n.zA)(e.paddingBlock)} ${(0,n.zA)(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},d(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},u(e)),"&-sm":Object.assign({},p(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),g=e=>{const{componentCls:t,antCls:o}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},u(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},p(e)),[`&-lg ${o}-select-single ${o}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${o}-select-single ${o}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${(0,n.zA)(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${o}-select`]:{margin:`${(0,n.zA)(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${(0,n.zA)(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${o}-select-single:not(${o}-select-customize-input):not(${o}-pagination-size-changer)`]:{[`${o}-select-selector`]:{backgroundColor:"inherit",border:`${(0,n.zA)(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${o}-select-selector`]:{color:e.colorPrimary}}},[`${o}-cascader-picker`]:{margin:`-9px ${(0,n.zA)(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${o}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${o}-select ${o}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${o}-select ${o}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,r.t6)()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${o}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${o}-select > ${o}-select-selector,\n & > ${o}-select-auto-complete ${t},\n & > ${o}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${o}-select-focused`]:{zIndex:1},[`& > ${o}-select > ${o}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${o}-select:first-child > ${o}-select-selector,\n & > ${o}-select-auto-complete:first-child ${t},\n & > ${o}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${o}-select:last-child > ${o}-select-selector,\n & > ${o}-cascader-picker:last-child ${t},\n & > ${o}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${o}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},b=e=>{const{componentCls:t,controlHeightSM:o,lineWidth:n,calc:i}=e,l=i(o).sub(i(n).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,r.dF)(e)),m(e)),(0,c.Eb)(e)),(0,c.sA)(e)),(0,c.lB)(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:o,paddingTop:l,paddingBottom:l}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},f=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${(0,n.zA)(e.inputAffixPadding)}`}}}},h=e=>{const{componentCls:t,inputAffixPadding:o,colorTextDescription:n,motionDurationSlow:r,colorIcon:i,colorIconHover:l,iconCls:a}=e,s=`${t}-affix-wrapper`;return{[s]:Object.assign(Object.assign(Object.assign(Object.assign({},m(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:n},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:o},"&-suffix":{marginInlineStart:o}}}),f(e)),{[`${a}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${r}`,"&:hover":{color:l}}})}},$=e=>{const{componentCls:t,borderRadiusLG:o,borderRadiusSM:n}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},(0,r.dF)(e)),g(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:n}}},(0,c.nm)(e)),(0,c.Vy)(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},v=e=>{const{componentCls:t,antCls:o}=e,n=`${t}-search`;return{[n]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${n}-button:not(${o}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal({unit:!1})},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${n}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${n}-button:not(${o}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${o}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${n}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${n}-button`]:{height:e.controlHeightLG},[`&-small ${n}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},y=e=>{const{componentCls:t,paddingLG:o}=e,n=`${t}-textarea`;return{[n]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:o}},[`&-affix-wrapper${n}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:o}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},x=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},C=(0,l.OF)("Input",(e=>{const t=(0,a.h1)(e,(0,s.C)(e));return[b(t),y(t),h(t),$(t),v(t),x(t),(0,i.G)(t)]}),s.b,{resetFont:!1})},44335:(e,t,o)=>{o.d(t,{C:()=>r,b:()=>i});var n=o(80336);function r(e){return(0,n.h1)(e,{inputAffixPadding:e.paddingXXS})}const i=e=>{const{controlHeight:t,fontSize:o,lineHeight:n,lineWidth:r,controlHeightSM:i,controlHeightLG:l,fontSizeLG:a,lineHeightLG:s,paddingSM:c,controlPaddingHorizontalSM:d,controlPaddingHorizontal:u,colorFillAlter:p,colorPrimaryHover:m,colorPrimary:g,controlOutlineWidth:b,controlOutline:f,colorErrorOutline:h,colorWarningOutline:$,colorBgContainer:v}=e;return{paddingBlock:Math.max(Math.round((t-o*n)/2*10)/10-r,0),paddingBlockSM:Math.max(Math.round((i-o*n)/2*10)/10-r,0),paddingBlockLG:Math.ceil((l-a*s)/2*10)/10-r,paddingInline:c-r,paddingInlineSM:d-r,paddingInlineLG:u-r,addonBg:p,activeBorderColor:g,hoverBorderColor:m,activeShadow:`0 0 0 ${b}px ${f}`,errorActiveShadow:`0 0 0 ${b}px ${h}`,warningActiveShadow:`0 0 0 ${b}px ${$}`,hoverBg:v,activeBg:v,inputFontSize:o,inputFontSizeLG:a,inputFontSizeSM:o}}},89222:(e,t,o)=>{o.d(t,{Eb:()=>c,Vy:()=>h,lB:()=>p,nm:()=>u,sA:()=>b});var n=o(64552),r=o(80336);const i=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),l=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},i((0,r.h1)(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),a=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),s=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},a(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),c=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},a(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},l(e))}),s(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),s(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),d=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),u=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${(0,n.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},d(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),d(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},l(e))}})}),p=(e,t)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled}},t)}),m=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null==t?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),g=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},m(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),b=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},m(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},l(e))}),g(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),g(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),f=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),h=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${(0,n.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${(0,n.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},f(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),f(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${(0,n.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${(0,n.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${(0,n.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${(0,n.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${(0,n.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${(0,n.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})})},60685:(e,t,o)=>{o.d(t,{A:()=>n});const n=(0,o(96540).createContext)(void 0)},30696:(e,t,o)=>{o.d(t,{A:()=>c});var n=o(96069),r=o(64395);const i={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},l={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},r.A),timePickerLocale:Object.assign({},i)},a=l,s="${label} is not a valid ${type}",c={locale:"en",Pagination:n.A,DatePicker:l,TimePicker:i,Calendar:a,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:s,method:s,array:s,object:s,number:s,date:s,boolean:s,integer:s,float:s,regexp:s,email:s,url:s,hex:s},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty"}}},19155:(e,t,o)=>{o.d(t,{A:()=>l});var n=o(96540),r=o(60685),i=o(30696);const l=(e,t)=>{const o=n.useContext(r.A);return[n.useMemo((()=>{var n;const r=t||i.A[e],l=null!==(n=null==o?void 0:o[e])&&void 0!==n?n:{};return Object.assign(Object.assign({},"function"==typeof r?r():r),l||{})}),[e,t,o]),n.useMemo((()=>{const e=null==o?void 0:o.locale;return(null==o?void 0:o.exist)&&!e?i.A.locale:e}),[o])]}},75816:(e,t,o)=>{o.d(t,{A:()=>Z});var n=o(96540),r=o(48810),i=o(46942),l=o.n(i);const a=n.createContext({});(()=>{let e=0})();var s=o(52318),c=o(81470),d=o(19853),u=o(23723),p=o(40682),m=o(62279),g=o(20934),b=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,className:o,dashed:i}=e,a=b(e,["prefixCls","className","dashed"]),{getPrefixCls:s}=n.useContext(m.QO),c=s("menu",t),d=l()({[`${c}-item-divider-dashed`]:!!i},o);return n.createElement(r.cG,Object.assign({className:d},a))};var h=o(82546),$=o(26211);const v=(0,n.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),y=e=>{var t;const{className:o,children:i,icon:s,title:c,danger:u}=e,{prefixCls:m,firstLevel:g,direction:b,disableMenuItemTitleTooltip:f,inlineCollapsed:y}=n.useContext(v),{siderCollapsed:x}=n.useContext(a);let C=c;void 0===c?C=g?i:"":!1===c&&(C="");const S={title:C};x||y||(S.title=null,S.open=!1);const O=(0,h.A)(i).length;let w=n.createElement(r.q7,Object.assign({},(0,d.A)(e,["title","icon","danger"]),{className:l()({[`${m}-item-danger`]:u,[`${m}-item-only-child`]:1===(s?O+1:O)},o),title:"string"==typeof c?c:void 0}),(0,p.Ob)(s,{className:l()(n.isValidElement(s)?null===(t=s.props)||void 0===t?void 0:t.className:"",`${m}-item-icon`)}),(e=>{const t=n.createElement("span",{className:`${m}-title-content`},i);return(!s||n.isValidElement(i)&&"span"===i.type)&&i&&e&&g&&"string"==typeof i?n.createElement("div",{className:`${m}-inline-collapsed-noicon`},i.charAt(0)):t})(y));return f||(w=n.createElement($.A,Object.assign({},S,{placement:"rtl"===b?"left":"right",overlayClassName:`${m}-inline-collapsed-tooltip`}),w)),w};var x=o(60275);const C=e=>{var t;const{popupClassName:o,icon:i,title:a,theme:s}=e,c=n.useContext(v),{prefixCls:u,inlineCollapsed:m,theme:g}=c,b=(0,r.Wj)();let f;if(i){const e=n.isValidElement(a)&&"span"===a.type;f=n.createElement(n.Fragment,null,(0,p.Ob)(i,{className:l()(n.isValidElement(i)?null===(t=i.props)||void 0===t?void 0:t.className:"",`${u}-item-icon`)}),e?a:n.createElement("span",{className:`${u}-title-content`},a))}else f=m&&!b.length&&a&&"string"==typeof a?n.createElement("div",{className:`${u}-inline-collapsed-noicon`},a.charAt(0)):n.createElement("span",{className:`${u}-title-content`},a);const h=n.useMemo((()=>Object.assign(Object.assign({},c),{firstLevel:!1})),[c]),[$]=(0,x.YK)("Menu");return n.createElement(v.Provider,{value:h},n.createElement(r.g8,Object.assign({},(0,d.A)(e,["icon"]),{title:f,popupClassName:l()(u,o,`${u}-${s||g}`),popupStyle:{zIndex:$}})))};var S=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{if(e&&"object"==typeof e){const o=e,{label:i,children:l,key:a,type:s}=o,c=S(o,["label","children","key","type"]),d=null!=a?a:`tmp-${t}`;return l||"group"===s?"group"===s?n.createElement(r.te,Object.assign({key:d},c,{title:i}),O(l)):n.createElement(C,Object.assign({key:d},c,{title:i}),O(l)):"divider"===s?n.createElement(f,Object.assign({key:d},c)):n.createElement(y,Object.assign({key:d},c),i)}return null})).filter((e=>e))}function w(e){return n.useMemo((()=>e?O(e):e),[e])}const E=n.createContext(null),j=E;var I=o(64552),k=o(24978),z=o(25905),A=o(60977),B=o(53561),P=o(99077),H=o(20106),M=o(80336);const R=e=>{const{componentCls:t,motionDurationSlow:o,horizontalLineHeight:n,colorSplit:r,lineWidth:i,lineType:l,itemPaddingInline:a}=e;return{[`${t}-horizontal`]:{lineHeight:n,border:0,borderBottom:`${(0,I.zA)(i)} ${l} ${r}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:a},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${o}`,`background ${o}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},N=e=>{let{componentCls:t,menuArrowOffset:o,calc:n}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,I.zA)(n(o).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,I.zA)(o)})`}}}}},T=e=>Object.assign({},(0,z.jk)(e)),L=(e,t)=>{const{componentCls:o,itemColor:n,itemSelectedColor:r,groupTitleColor:i,itemBg:l,subMenuItemBg:a,itemSelectedBg:s,activeBarHeight:c,activeBarWidth:d,activeBarBorderWidth:u,motionDurationSlow:p,motionEaseInOut:m,motionEaseOut:g,itemPaddingInline:b,motionDurationMid:f,itemHoverColor:h,lineType:$,colorSplit:v,itemDisabledColor:y,dangerItemColor:x,dangerItemHoverColor:C,dangerItemSelectedColor:S,dangerItemActiveBg:O,dangerItemSelectedBg:w,popupBg:E,itemHoverBg:j,itemActiveBg:k,menuSubMenuBg:z,horizontalItemSelectedColor:A,horizontalItemSelectedBg:B,horizontalItemBorderRadius:P,horizontalItemHoverBg:H}=e;return{[`${o}-${t}, ${o}-${t} > ${o}`]:{color:n,background:l,[`&${o}-root:focus-visible`]:Object.assign({},T(e)),[`${o}-item-group-title`]:{color:i},[`${o}-submenu-selected`]:{[`> ${o}-submenu-title`]:{color:r}},[`${o}-item, ${o}-submenu-title`]:{color:n,[`&:not(${o}-item-disabled):focus-visible`]:Object.assign({},T(e))},[`${o}-item-disabled, ${o}-submenu-disabled`]:{color:`${y} !important`},[`${o}-item:not(${o}-item-selected):not(${o}-submenu-selected)`]:{[`&:hover, > ${o}-submenu-title:hover`]:{color:h}},[`&:not(${o}-horizontal)`]:{[`${o}-item:not(${o}-item-selected)`]:{"&:hover":{backgroundColor:j},"&:active":{backgroundColor:k}},[`${o}-submenu-title`]:{"&:hover":{backgroundColor:j},"&:active":{backgroundColor:k}}},[`${o}-item-danger`]:{color:x,[`&${o}-item:hover`]:{[`&:not(${o}-item-selected):not(${o}-submenu-selected)`]:{color:C}},[`&${o}-item:active`]:{background:O}},[`${o}-item a`]:{"&, &:hover":{color:"inherit"}},[`${o}-item-selected`]:{color:r,[`&${o}-item-danger`]:{color:S},"a, a:hover":{color:"inherit"}},[`& ${o}-item-selected`]:{backgroundColor:s,[`&${o}-item-danger`]:{backgroundColor:w}},[`&${o}-submenu > ${o}`]:{backgroundColor:z},[`&${o}-popup > ${o}`]:{backgroundColor:E},[`&${o}-submenu-popup > ${o}`]:{backgroundColor:E},[`&${o}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${o}-item, > ${o}-submenu`]:{top:u,marginTop:e.calc(u).mul(-1).equal(),marginBottom:0,borderRadius:P,"&::after":{position:"absolute",insetInline:b,bottom:0,borderBottom:`${(0,I.zA)(c)} solid transparent`,transition:`border-color ${p} ${m}`,content:'""'},"&:hover, &-active, &-open":{background:H,"&::after":{borderBottomWidth:c,borderBottomColor:A}},"&-selected":{color:A,backgroundColor:B,"&:hover":{backgroundColor:B},"&::after":{borderBottomWidth:c,borderBottomColor:A}}}}),[`&${o}-root`]:{[`&${o}-inline, &${o}-vertical`]:{borderInlineEnd:`${(0,I.zA)(u)} ${$} ${v}`}},[`&${o}-inline`]:{[`${o}-sub${o}-inline`]:{background:a},[`${o}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,I.zA)(d)} solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${f} ${g}`,`opacity ${f} ${g}`].join(","),content:'""'},[`&${o}-item-danger`]:{"&::after":{borderInlineEndColor:S}}},[`${o}-selected, ${o}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${f} ${m}`,`opacity ${f} ${m}`].join(",")}}}}}},D=e=>{const{componentCls:t,itemHeight:o,itemMarginInline:n,padding:r,menuArrowSize:i,marginXS:l,itemMarginBlock:a,itemWidth:s}=e,c=e.calc(i).add(r).add(l).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:o,lineHeight:(0,I.zA)(o),paddingInline:r,overflow:"hidden",textOverflow:"ellipsis",marginInline:n,marginBlock:a,width:s},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:o,lineHeight:(0,I.zA)(o)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:c}}},W=e=>{const{componentCls:t,iconCls:o,itemHeight:n,colorTextLightSolid:r,dropdownWidth:i,controlHeightLG:l,motionDurationMid:a,motionEaseOut:s,paddingXL:c,itemMarginInline:d,fontSizeLG:u,motionDurationSlow:p,paddingXS:m,boxShadowSecondary:g,collapsedWidth:b,collapsedIconSize:f}=e,h={height:n,lineHeight:(0,I.zA)(n),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},D(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},D(e)),{boxShadow:g})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${(0,I.zA)(e.calc(l).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${p}`,`background ${p}`,`padding ${a} ${s}`,`padding-inline calc(50% - ${(0,I.zA)(e.calc(u).div(2).equal())} - ${(0,I.zA)(d)})`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:h,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:h}},{[`${t}-inline-collapsed`]:{width:b,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,I.zA)(e.calc(u).div(2).equal())} - ${(0,I.zA)(d)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${o}`]:{margin:0,fontSize:f,lineHeight:(0,I.zA)(n),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${o}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${o}`]:{display:"none"},"a, a:hover":{color:r}},[`${t}-item-group-title`]:Object.assign(Object.assign({},z.L9),{paddingInline:m})}}]},F=e=>{const{componentCls:t,motionDurationSlow:o,motionDurationMid:n,motionEaseInOut:r,motionEaseOut:i,iconCls:l,iconSize:a,iconMarginInlineEnd:s}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${o}`,`background ${o}`,`padding ${o} ${r}`].join(","),[`${t}-item-icon, ${l}`]:{minWidth:a,fontSize:a,transition:[`font-size ${n} ${i}`,`margin ${o} ${r}`,`color ${o}`].join(","),"+ span":{marginInlineStart:s,opacity:1,transition:[`opacity ${o} ${r}`,`margin ${o}`,`color ${o}`].join(",")}},[`${t}-item-icon`]:Object.assign({},(0,z.Nk)()),[`&${t}-item-only-child`]:{[`> ${l}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},X=e=>{const{componentCls:t,motionDurationSlow:o,motionEaseInOut:n,borderRadius:r,menuArrowSize:i,menuArrowOffset:l}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${o} ${n}, opacity ${o}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:r,transition:[`background ${o} ${n}`,`transform ${o} ${n}`,`top ${o} ${n}`,`color ${o} ${n}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,I.zA)(e.calc(l).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,I.zA)(l)})`}}}}},q=e=>{const{antCls:t,componentCls:o,fontSize:n,motionDurationSlow:r,motionDurationMid:i,motionEaseInOut:l,paddingXS:a,padding:s,colorSplit:c,lineWidth:d,zIndexPopup:u,borderRadiusLG:p,subMenuItemBorderRadius:m,menuArrowSize:g,menuArrowOffset:b,lineType:f,groupTitleLineHeight:h,groupTitleFontSize:$}=e;return[{"":{[`${o}`]:Object.assign(Object.assign({},(0,z.t6)()),{"&-hidden":{display:"none"}})},[`${o}-submenu-hidden`]:{display:"none"}},{[o]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,z.dF)(e)),(0,z.t6)()),{marginBottom:0,paddingInlineStart:0,fontSize:n,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${r} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${o}-item`]:{flex:"none"}},[`${o}-item, ${o}-submenu, ${o}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${o}-item-group-title`]:{padding:`${(0,I.zA)(a)} ${(0,I.zA)(s)}`,fontSize:$,lineHeight:h,transition:`all ${r}`},[`&-horizontal ${o}-submenu`]:{transition:[`border-color ${r} ${l}`,`background ${r} ${l}`].join(",")},[`${o}-submenu, ${o}-submenu-inline`]:{transition:[`border-color ${r} ${l}`,`background ${r} ${l}`,`padding ${i} ${l}`].join(",")},[`${o}-submenu ${o}-sub`]:{cursor:"initial",transition:[`background ${r} ${l}`,`padding ${r} ${l}`].join(",")},[`${o}-title-content`]:{transition:`color ${r}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${o}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${o}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:f,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),F(e)),{[`${o}-item-group`]:{[`${o}-item-group-list`]:{margin:0,padding:0,[`${o}-item, ${o}-submenu-title`]:{paddingInline:`${(0,I.zA)(e.calc(n).mul(2).equal())} ${(0,I.zA)(s)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:u,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",[`&${o}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${o}`]:Object.assign(Object.assign(Object.assign({borderRadius:p},F(e)),X(e)),{[`${o}-item, ${o}-submenu > ${o}-submenu-title`]:{borderRadius:m},[`${o}-submenu-title::after`]:{transition:`transform ${r} ${l}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),X(e)),{[`&-inline-collapsed ${o}-submenu-arrow,\n &-inline ${o}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,I.zA)(b)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,I.zA)(e.calc(b).mul(-1).equal())})`}},[`${o}-submenu-open${o}-submenu-inline > ${o}-submenu-title > ${o}-submenu-arrow`]:{transform:`translateY(${(0,I.zA)(e.calc(g).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,I.zA)(e.calc(b).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,I.zA)(b)})`}}})},{[`${t}-layout-header`]:{[o]:{lineHeight:"inherit"}}}]},G=e=>{var t,o,n;const{colorPrimary:r,colorError:i,colorTextDisabled:l,colorErrorBg:a,colorText:s,colorTextDescription:c,colorBgContainer:d,colorFillAlter:u,colorFillContent:p,lineWidth:m,lineWidthBold:g,controlItemBgActive:b,colorBgTextHover:f,controlHeightLG:h,lineHeight:$,colorBgElevated:v,marginXXS:y,padding:x,fontSize:C,controlHeightSM:S,fontSizeLG:O,colorTextLightSolid:w,colorErrorHover:E}=e,j=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,I=null!==(o=e.activeBarBorderWidth)&&void 0!==o?o:m,z=null!==(n=e.itemMarginInline)&&void 0!==n?n:e.marginXXS,A=new k.q(w).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:s,itemColor:s,colorItemTextHover:s,itemHoverColor:s,colorItemTextHoverHorizontal:r,horizontalItemHoverColor:r,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:r,itemSelectedColor:r,colorItemTextSelectedHorizontal:r,horizontalItemSelectedColor:r,colorItemBg:d,itemBg:d,colorItemBgHover:f,itemHoverBg:f,colorItemBgActive:p,itemActiveBg:b,colorSubItemBg:u,subMenuItemBg:u,colorItemBgSelected:b,itemSelectedBg:b,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:j,colorActiveBarHeight:g,activeBarHeight:g,colorActiveBarBorderSize:m,activeBarBorderWidth:I,colorItemTextDisabled:l,itemDisabledColor:l,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:a,dangerItemActiveBg:a,colorDangerItemBgSelected:a,dangerItemSelectedBg:a,itemMarginInline:z,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:h,groupTitleLineHeight:$,collapsedWidth:2*h,popupBg:v,itemMarginBlock:y,itemPaddingInline:x,horizontalLineHeight:1.15*h+"px",iconSize:C,iconMarginInlineEnd:S-C,collapsedIconSize:O,groupTitleFontSize:C,darkItemDisabledColor:new k.q(w).setAlpha(.25).toRgbString(),darkItemColor:A,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:w,darkItemSelectedBg:r,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:A,darkItemHoverColor:w,darkDangerItemHoverColor:E,darkDangerItemSelectedColor:w,darkDangerItemActiveBg:i,itemWidth:j?`calc(100% + ${I}px)`:`calc(100% - ${2*z}px)`}},_=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return(0,H.OF)("Menu",(e=>{const{colorBgElevated:t,controlHeightLG:o,fontSize:n,darkItemColor:r,darkDangerItemColor:i,darkItemBg:l,darkSubMenuItemBg:a,darkItemSelectedColor:s,darkItemSelectedBg:c,darkDangerItemSelectedBg:d,darkItemHoverBg:u,darkGroupTitleColor:p,darkItemHoverColor:m,darkItemDisabledColor:g,darkDangerItemHoverColor:b,darkDangerItemSelectedColor:f,darkDangerItemActiveBg:h,popupBg:$,darkPopupBg:v}=e,y=e.calc(n).div(7).mul(5).equal(),x=(0,M.h1)(e,{menuArrowSize:y,menuHorizontalHeight:e.calc(o).mul(1.15).equal(),menuArrowOffset:e.calc(y).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:$}),C=(0,M.h1)(x,{itemColor:r,itemHoverColor:m,groupTitleColor:p,itemSelectedColor:s,itemBg:l,popupBg:v,subMenuItemBg:a,itemActiveBg:"transparent",itemSelectedBg:c,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:u,itemDisabledColor:g,dangerItemColor:i,dangerItemHoverColor:b,dangerItemSelectedColor:f,dangerItemActiveBg:h,dangerItemSelectedBg:d,menuSubMenuBg:a,horizontalItemSelectedColor:s,horizontalItemSelectedBg:c});return[q(x),R(x),W(x),L(x,"light"),L(C,"dark"),N(x),(0,A.A)(x),(0,B._j)(x,"slide-up"),(0,B._j)(x,"slide-down"),(0,P.aB)(x,"zoom-big")]}),G,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:o,unitless:{groupTitleLineHeight:!0}})(e,t)};var V=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{var o;const i=n.useContext(j),a=i||{},{getPrefixCls:b,getPopupContainer:f,direction:h,menu:$}=n.useContext(m.QO),y=b(),{prefixCls:x,className:C,style:S,theme:O="light",expandIcon:E,_internalDisableMenuItemTitleTooltip:I,inlineCollapsed:k,siderCollapsed:z,items:A,children:B,rootClassName:P,mode:H,selectable:M,onClick:R,overflowedIndicatorPopupClassName:N}=e,T=V(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),L=(0,d.A)(T,["collapsedWidth"]),D=w(A)||B;null===(o=a.validator)||void 0===o||o.call(a,{mode:H});const W=(0,c._q)((function(){var e;null==R||R.apply(void 0,arguments),null===(e=a.onClick)||void 0===e||e.call(a)})),F=a.mode||H,X=null!=M?M:a.selectable,q=n.useMemo((()=>void 0!==z?z:k),[k,z]),G={horizontal:{motionName:`${y}-slide-up`},inline:(0,u.A)(y),other:{motionName:`${y}-zoom-big`}},U=b("menu",x||a.prefixCls),K=(0,g.A)(U),[Y,Z,J]=_(U,K,!i),ee=l()(`${U}-${O}`,null==$?void 0:$.className,C),te=n.useMemo((()=>{var e,t;if("function"==typeof E||Q(E))return E||null;if("function"==typeof a.expandIcon||Q(a.expandIcon))return a.expandIcon||null;if("function"==typeof(null==$?void 0:$.expandIcon)||Q(null==$?void 0:$.expandIcon))return(null==$?void 0:$.expandIcon)||null;const o=null!==(e=null!=E?E:null==a?void 0:a.expandIcon)&&void 0!==e?e:null==$?void 0:$.expandIcon;return(0,p.Ob)(o,{className:l()(`${U}-submenu-expand-icon`,n.isValidElement(o)?null===(t=o.props)||void 0===t?void 0:t.className:void 0)})}),[E,null==a?void 0:a.expandIcon,null==$?void 0:$.expandIcon,U]),oe=n.useMemo((()=>({prefixCls:U,inlineCollapsed:q||!1,direction:h,firstLevel:!0,theme:O,mode:F,disableMenuItemTitleTooltip:I})),[U,q,h,I,O]);return Y(n.createElement(j.Provider,{value:null},n.createElement(v.Provider,{value:oe},n.createElement(r.Ay,Object.assign({getPopupContainer:f,overflowedIndicator:n.createElement(s.A,null),overflowedIndicatorPopupClassName:l()(U,`${U}-${O}`,N),mode:F,selectable:X,onClick:W},L,{inlineCollapsed:q,style:Object.assign(Object.assign({},null==$?void 0:$.style),S),className:ee,prefixCls:U,direction:h,defaultMotions:G,expandIcon:te,ref:t,rootClassName:l()(P,Z,a.rootClassName,J,K)}),D))))})),K=U,Y=(0,n.forwardRef)(((e,t)=>{const o=(0,n.useRef)(null),r=n.useContext(a);return(0,n.useImperativeHandle)(t,(()=>({menu:o.current,focus:e=>{var t;null===(t=o.current)||void 0===t||t.focus(e)}}))),n.createElement(K,Object.assign({ref:o},e,r))}));Y.Item=y,Y.SubMenu=C,Y.Divider=f,Y.ItemGroup=r.te;const Z=Y},89740:(e,t,o)=>{o.d(t,{Ay:()=>Q});var n=o(60436),r=o(96540),i=o(14832);const l=r.createContext({});var a=o(62279),s=o(78407),c=o(38811),d=o(36029),u=o(7541),p=o(17850),m=o(93567),g=o(46942),b=o.n(g),f=o(22370),h=o(20934),$=o(64552),v=o(60275),y=o(25905),x=o(20106),C=o(80336);const S=e=>{const{componentCls:t,iconCls:o,boxShadow:n,colorText:r,colorSuccess:i,colorError:l,colorWarning:a,colorInfo:s,fontSizeLG:c,motionEaseInOutCirc:d,motionDurationSlow:u,marginXS:p,paddingXS:m,borderRadiusLG:g,zIndexPopup:b,contentPadding:f,contentBg:h}=e,v=`${t}-notice`,x=new $.Mo("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:m,transform:"translateY(0)",opacity:1}}),C=new $.Mo("MessageMoveOut",{"0%":{maxHeight:e.height,padding:m,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),S={padding:m,textAlign:"center",[`${t}-custom-content > ${o}`]:{verticalAlign:"text-bottom",marginInlineEnd:p,fontSize:c},[`${v}-content`]:{display:"inline-block",padding:f,background:h,borderRadius:g,boxShadow:n,pointerEvents:"all"},[`${t}-success > ${o}`]:{color:i},[`${t}-error > ${o}`]:{color:l},[`${t}-warning > ${o}`]:{color:a},[`${t}-info > ${o},\n ${t}-loading > ${o}`]:{color:s}};return[{[t]:Object.assign(Object.assign({},(0,y.dF)(e)),{color:r,position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:b,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n ${t}-move-up-appear,\n ${t}-move-up-enter\n `]:{animationName:x,animationDuration:u,animationPlayState:"paused",animationTimingFunction:d},[`\n ${t}-move-up-appear${t}-move-up-appear-active,\n ${t}-move-up-enter${t}-move-up-enter-active\n `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:C,animationDuration:u,animationPlayState:"paused",animationTimingFunction:d},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${v}-wrapper`]:Object.assign({},S)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},S),{padding:0,textAlign:"start"})}]},O=(0,x.OF)("Message",(e=>{const t=(0,C.h1)(e,{height:150});return[S(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+v.jH+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`})));var w=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{let{prefixCls:t,type:o,icon:n,children:i}=e;return r.createElement("div",{className:b()(`${t}-custom-content`,`${t}-${o}`)},n||E[o],r.createElement("span",null,i))},I=e=>{const{prefixCls:t,className:o,type:n,icon:i,content:l}=e,s=w(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:c}=r.useContext(a.QO),d=t||c("message"),u=(0,h.A)(d),[p,m,g]=O(d,u);return p(r.createElement(f.$T,Object.assign({},s,{prefixCls:d,className:b()(o,m,`${d}-notice-pure-panel`,g,u),eventKey:"pure",duration:null,content:r.createElement(j,{prefixCls:d,type:n,icon:i},l)})))};var k=o(47852),z=o(18877);function A(e){let t;const o=new Promise((o=>{t=e((()=>{o(!0)}))})),n=()=>{null==t||t()};return n.then=(e,t)=>o.then(e,t),n.promise=o,n}var B=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{let{children:t,prefixCls:o}=e;const n=(0,h.A)(o),[i,l,a]=O(o,n);return i(r.createElement(f.ph,{classNames:{list:b()(l,a,n)}},t))},M=(e,t)=>{let{prefixCls:o,key:n}=t;return r.createElement(H,{prefixCls:o,key:n},e)},R=r.forwardRef(((e,t)=>{const{top:o,prefixCls:n,getContainer:i,maxCount:l,duration:s=P,rtl:c,transitionName:d,onAllRemoved:u}=e,{getPrefixCls:p,getPopupContainer:m,message:g,direction:h}=r.useContext(a.QO),$=n||p("message"),v=r.createElement("span",{className:`${$}-close-x`},r.createElement(k.A,{className:`${$}-close-icon`})),[y,x]=(0,f.hN)({prefixCls:$,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=o?o:8}),className:()=>b()({[`${$}-rtl`]:null!=c?c:"rtl"===h}),motion:()=>function(e,t){return{motionName:null!=t?t:`${e}-move-up`}}($,d),closable:!1,closeIcon:v,duration:s,getContainer:()=>(null==i?void 0:i())||(null==m?void 0:m())||document.body,maxCount:l,onAllRemoved:u,renderNotifications:M});return r.useImperativeHandle(t,(()=>Object.assign(Object.assign({},y),{prefixCls:$,message:g}))),x}));let N=0;function T(e){const t=r.useRef(null),o=((0,z.rJ)("Message"),r.useMemo((()=>{const e=e=>{var o;null===(o=t.current)||void 0===o||o.close(e)},o=o=>{if(!t.current){const e=()=>{};return e.then=()=>{},e}const{open:n,prefixCls:i,message:l}=t.current,a=`${i}-notice`,{content:s,icon:c,type:d,key:u,className:p,style:m,onClose:g}=o,f=B(o,["content","icon","type","key","className","style","onClose"]);let h=u;return null==h&&(N+=1,h=`antd-message-${N}`),A((t=>(n(Object.assign(Object.assign({},f),{key:h,content:r.createElement(j,{prefixCls:i,type:d,icon:c},s),placement:"top",className:b()(d&&`${a}-${d}`,p,null==l?void 0:l.className),style:Object.assign(Object.assign({},null==l?void 0:l.style),m),onClose:()=>{null==g||g(),t()}})),()=>{e(h)})))},n={open:o,destroy:o=>{var n;void 0!==o?e(o):null===(n=t.current)||void 0===n||n.destroy()}};return["info","success","warning","error","loading"].forEach((e=>{n[e]=(t,n,r)=>{let i,l,a;i=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof n?a=n:(l=n,a=r);const s=Object.assign(Object.assign({onClose:a,duration:l},i),{type:e});return o(s)}})),n}),[]));return[o,r.createElement(R,Object.assign({key:"message-holder"},e,{ref:t}))]}let L=null,D=e=>e(),W=[],F={};function X(){const{getContainer:e,duration:t,rtl:o,maxCount:n,top:r}=F,i=(null==e?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:o,maxCount:n,top:r}}const q=r.forwardRef(((e,t)=>{const{messageConfig:o,sync:n}=e,{getPrefixCls:i}=(0,r.useContext)(a.QO),s=F.prefixCls||i("message"),c=(0,r.useContext)(l),[d,u]=T(Object.assign(Object.assign(Object.assign({},o),{prefixCls:s}),c.message));return r.useImperativeHandle(t,(()=>{const e=Object.assign({},d);return Object.keys(e).forEach((t=>{e[t]=function(){return n(),d[t].apply(d,arguments)}})),{instance:e,sync:n}})),u})),G=r.forwardRef(((e,t)=>{const[o,n]=r.useState(X),i=()=>{n(X)};r.useEffect(i,[]);const l=(0,s.cr)(),a=l.getRootPrefixCls(),c=l.getIconPrefixCls(),d=l.getTheme(),u=r.createElement(q,{ref:t,sync:i,messageConfig:o});return r.createElement(s.Ay,{prefixCls:a,iconPrefixCls:c,theme:d},l.holderRender?l.holderRender(u):u)}));function _(){if(!L){const e=document.createDocumentFragment(),t={fragment:e};return L=t,void D((()=>{(0,i.X)(r.createElement(G,{ref:e=>{const{instance:o,sync:n}=e||{};Promise.resolve().then((()=>{!t.instance&&o&&(t.instance=o,t.sync=n,_())}))}}),e)}))}L.instance&&(W.forEach((e=>{const{type:t,skipped:o}=e;if(!o)switch(t){case"open":D((()=>{const t=L.instance.open(Object.assign(Object.assign({},F),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)}));break;case"destroy":D((()=>{null==L||L.instance.destroy(e.key)}));break;default:D((()=>{var o;const r=(o=L.instance)[t].apply(o,(0,n.A)(e.args));null==r||r.then(e.resolve),e.setCloseFn(r)}))}})),W=[])}const V={open:function(e){const t=A((t=>{let o;const n={type:"open",config:e,resolve:t,setCloseFn:e=>{o=e}};return W.push(n),()=>{o?D((()=>{o()})):n.skipped=!0}}));return _(),t},destroy:e=>{W.push({type:"destroy",key:e}),_()},config:function(e){F=Object.assign(Object.assign({},F),e),D((()=>{var e;null===(e=null==L?void 0:L.sync)||void 0===e||e.call(L)}))},useMessage:function(e){return T(e)},_InternalPanelDoNotUseOrYouWillBeFired:I};["success","info","warning","error","loading"].forEach((e=>{V[e]=function(){for(var t=arguments.length,o=new Array(t),n=0;n{let n;const r={type:e,args:t,resolve:o,setCloseFn:e=>{n=e}};return W.push(r),()=>{n?D((()=>{n()})):r.skipped=!0}}));return _(),o}(e,o)}}));const Q=V},13545:(e,t,o)=>{o.d(t,{A:()=>Le});var n=o(60436),r=o(96540),i=o(14832),l=o(62279),a=o(78407),s=o(38811),c=o(36029),d=o(7541),u=o(17850),p=o(46942),m=o.n(p),g=o(60275),b=o(23723),f=o(19155),h=o(365),$=o(1233),v=o(68777),y=o(39449);function x(e){return!(!e||!e.then)}const C=e=>{const{type:t,children:o,prefixCls:n,buttonProps:i,close:l,autoFocus:a,emitEvent:s,isSilent:c,quitOnNullishReturnValue:d,actionFn:u}=e,p=r.useRef(!1),m=r.useRef(null),[g,b]=(0,$.A)(!1),f=function(){null==l||l.apply(void 0,arguments)};r.useEffect((()=>{let e=null;return a&&(e=setTimeout((()=>{var e;null===(e=m.current)||void 0===e||e.focus()}))),()=>{e&&clearTimeout(e)}}),[]);return r.createElement(v.Ay,Object.assign({},(0,y.DU)(t),{onClick:e=>{if(p.current)return;if(p.current=!0,!u)return void f();let t;if(s){if(t=u(e),d&&!x(t))return p.current=!1,void f(e)}else if(u.length)t=u(l),p.current=!1;else if(t=u(),!t)return void f();(e=>{x(e)&&(b(!0),e.then((function(){b(!1,!0),f.apply(void 0,arguments),p.current=!1}),(e=>{if(b(!1,!0),p.current=!1,!(null==c?void 0:c()))return Promise.reject(e)})))})(t)},loading:g,prefixCls:n},i,{ref:m}),o)},S=r.createContext({}),{Provider:O}=S,w=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:o,isSilent:n,mergedOkCancel:i,rootPrefixCls:l,close:a,onCancel:s,onConfirm:c}=(0,r.useContext)(S);return i?r.createElement(C,{isSilent:n,actionFn:s,close:function(){null==a||a.apply(void 0,arguments),null==c||c(!1)},autoFocus:"cancel"===e,buttonProps:t,prefixCls:`${l}-btn`},o):null},E=()=>{const{autoFocusButton:e,close:t,isSilent:o,okButtonProps:n,rootPrefixCls:i,okTextLocale:l,okType:a,onConfirm:s,onOk:c}=(0,r.useContext)(S);return r.createElement(C,{isSilent:o,type:a||"primary",actionFn:c,close:function(){null==t||t.apply(void 0,arguments),null==s||s(!0)},autoFocus:"ok"===e,buttonProps:n,prefixCls:`${i}-btn`},l)};var j=o(47852),I=o(33766),k=o(72065);function z(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function A(e){const{closable:t,closeIcon:o}=e||{};return r.useMemo((()=>{if(!t&&(!1===t||!1===o||null===o))return!1;if(void 0===t&&void 0===o)return null;let e={closeIcon:"boolean"!=typeof o&&null!==o?o:void 0};return t&&"object"==typeof t&&(e=Object.assign(Object.assign({},e),t)),e}),[t,o])}function B(){const e={};for(var t=arguments.length,o=new Array(t),n=0;n{t&&Object.keys(t).forEach((o=>{void 0!==t[o]&&(e[o]=t[o])}))})),e}const P={};var H=o(20998);var M=o(72616),R=o(20934),N=o(94241),T=o(76327),L=o(81470);function D(){}const W=r.createContext({add:D,remove:D});var F=o(98119);const X=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:o}=(0,r.useContext)(S);return r.createElement(v.Ay,Object.assign({onClick:o},e),t)},q=()=>{const{confirmLoading:e,okButtonProps:t,okType:o,okTextLocale:n,onOk:i}=(0,r.useContext)(S);return r.createElement(v.Ay,Object.assign({},(0,y.DU)(o),{loading:e,onClick:i},t),n)};var G=o(21815);function _(e,t){return r.createElement("span",{className:`${e}-close-x`},t||r.createElement(j.A,{className:`${e}-close-icon`}))}const V=e=>{const{okText:t,okType:o="primary",cancelText:i,confirmLoading:l,onOk:a,onCancel:s,okButtonProps:c,cancelButtonProps:d,footer:u}=e,[p]=(0,f.A)("Modal",(0,G.l)()),m={confirmLoading:l,okButtonProps:c,cancelButtonProps:d,okTextLocale:t||(null==p?void 0:p.okText),cancelTextLocale:i||(null==p?void 0:p.cancelText),okType:o,onOk:a,onCancel:s},g=r.useMemo((()=>m),(0,n.A)(Object.values(m)));let b;return"function"==typeof u||void 0===u?(b=r.createElement(r.Fragment,null,r.createElement(X,null),r.createElement(q,null)),"function"==typeof u&&(b=u(b,{OkBtn:q,CancelBtn:X})),b=r.createElement(O,{value:g},b)):b=u,r.createElement(F.X,{disabled:!1},b)};var Q=o(64552),U=o(25905),K=o(28680),Y=o(99077),Z=o(80336),J=o(20106);function ee(e){return{position:e,inset:0}}const te=e=>{const{componentCls:t,antCls:o}=e;return[{[`${t}-root`]:{[`${t}${o}-zoom-enter, ${t}${o}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${o}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},ee("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},ee("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:(0,K.p9)(e)}]},oe=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${(0,Q.zA)(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},(0,U.dF)(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${(0,Q.zA)(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${(0,Q.zA)(e.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},(0,U.K8)(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${(0,Q.zA)(e.borderRadiusLG)} ${(0,Q.zA)(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,\n ${t}-body,\n ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},ne=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},re=e=>{const t=e.padding,o=e.fontSizeHeading5,n=e.lineHeightHeading5;return(0,Z.h1)(e,{modalHeaderHeight:e.calc(e.calc(n).mul(o).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},ie=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${(0,Q.zA)(e.paddingMD)} ${(0,Q.zA)(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${(0,Q.zA)(e.padding)} ${(0,Q.zA)(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${(0,Q.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${(0,Q.zA)(e.paddingXS)} ${(0,Q.zA)(e.padding)}`:0,footerBorderTop:e.wireframe?`${(0,Q.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${(0,Q.zA)(e.borderRadiusLG)} ${(0,Q.zA)(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${(0,Q.zA)(2*e.padding)} ${(0,Q.zA)(2*e.padding)} ${(0,Q.zA)(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),le=(0,J.OF)("Modal",(e=>{const t=re(e);return[oe(t),ne(t),te(t),(0,Y.aB)(t,"zoom")]}),ie,{unitless:{titleLineHeight:!0}});var ae=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{se={x:e.pageX,y:e.pageY},setTimeout((()=>{se=null}),100)};(0,H.A)()&&window.document.documentElement&&document.documentElement.addEventListener("click",ce,!0);const de=e=>{var t;const{getPopupContainer:o,getPrefixCls:n,direction:i,modal:a}=r.useContext(l.QO),s=t=>{const{onCancel:o}=e;null==o||o(t)};const{prefixCls:c,className:d,rootClassName:u,open:p,wrapClassName:f,centered:h,getContainer:$,focusTriggerAfterClose:v=!0,style:y,visible:x,width:C=520,footer:S,classNames:O,styles:w}=e,E=ae(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),H=n("modal",c),D=n(),F=(0,R.A)(H),[X,q,G]=le(H,F),Q=m()(f,{[`${H}-centered`]:!!h,[`${H}-wrap-rtl`]:"rtl"===i}),U=null!==S&&r.createElement(V,Object.assign({},e,{onOk:t=>{const{onOk:o}=e;null==o||o(t)},onCancel:s})),[K,Y]=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:P;const n=A(e),i=A(t),l=r.useMemo((()=>Object.assign({closeIcon:r.createElement(j.A,null)},o)),[o]),a=r.useMemo((()=>!1!==n&&(n?B(l,i,n):!1!==i&&(i?B(l,i):!!l.closable&&l))),[n,i,l]);return r.useMemo((()=>{if(!1===a)return[!1,null];const{closeIconRender:e}=l,{closeIcon:t}=a;let o=t;if(null!=o){e&&(o=e(t));const n=(0,k.A)(a,!0);Object.keys(n).length&&(o=r.isValidElement(o)?r.cloneElement(o,n):r.createElement("span",Object.assign({},n),o))}return[!0,o]}),[a,l])}(z(e),z(a),{closable:!0,closeIcon:r.createElement(j.A,{className:`${H}-close-icon`}),closeIconRender:e=>_(H,e)}),Z=function(e){const t=r.useContext(W),o=r.useRef();return(0,L._q)((n=>{if(n){const r=e?n.querySelector(e):n;t.add(r),o.current=r}else t.remove(o.current)}))}(`.${H}-content`),[J,ee]=(0,g.YK)("Modal",E.zIndex);return X(r.createElement(T.K6,null,r.createElement(N.XB,{status:!0,override:!0},r.createElement(M.A.Provider,{value:ee},r.createElement(I.A,Object.assign({width:C},E,{zIndex:J,getContainer:void 0===$?o:$,prefixCls:H,rootClassName:m()(q,u,G,F),footer:U,visible:null!=p?p:x,mousePosition:null!==(t=E.mousePosition)&&void 0!==t?t:se,onClose:s,closable:K,closeIcon:Y,focusTriggerAfterClose:v,transitionName:(0,b.b)(D,"zoom",e.transitionName),maskTransitionName:(0,b.b)(D,"fade",e.maskTransitionName),className:m()(q,d,null==a?void 0:a.className),style:Object.assign(Object.assign({},null==a?void 0:a.style),y),classNames:Object.assign(Object.assign(Object.assign({},null==a?void 0:a.classNames),O),{wrapper:m()(Q,null==O?void 0:O.wrapper)}),styles:Object.assign(Object.assign({},null==a?void 0:a.styles),w),panelRef:Z}))))))},ue=e=>{const{componentCls:t,titleFontSize:o,titleLineHeight:n,modalConfirmIconSize:r,fontSize:i,lineHeight:l,modalTitleHeight:a,fontHeight:s,confirmBodyPadding:c}=e,d=`${t}-confirm`;return{[d]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${d}-body-wrapper`]:Object.assign({},(0,U.t6)()),[`&${t} ${t}-body`]:{padding:c},[`${d}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:r,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(s).sub(r).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(a).sub(r).equal()).div(2).equal()}},[`${d}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS},[`${e.iconCls} + ${d}-paragraph`]:{maxWidth:`calc(100% - ${(0,Q.zA)(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${d}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:o,lineHeight:n},[`${d}-content`]:{color:e.colorText,fontSize:i,lineHeight:l},[`${d}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${d}-error ${d}-body > ${e.iconCls}`]:{color:e.colorError},[`${d}-warning ${d}-body > ${e.iconCls},\n ${d}-confirm ${d}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${d}-info ${d}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${d}-success ${d}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},pe=(0,J.bf)(["Modal","confirm"],(e=>{const t=re(e);return[ue(t)]}),ie,{order:-1e3});var me=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);rk),(0,n.A)(Object.values(k))),A=r.createElement(r.Fragment,null,r.createElement(w,null),r.createElement(E,null)),B=void 0!==e.title&&null!==e.title,P=`${a}-body`;return r.createElement("div",{className:`${a}-body-wrapper`},r.createElement("div",{className:m()(P,{[`${P}-has-title`]:B})},v,r.createElement("div",{className:`${a}-paragraph`},B&&r.createElement("span",{className:`${a}-title`},e.title),r.createElement("div",{className:`${a}-content`},e.content))),void 0===b||"function"==typeof b?r.createElement(O,{value:z},r.createElement("div",{className:`${a}-btns`},"function"==typeof b?b(A,{OkBtn:E,CancelBtn:w}):A)):b,r.createElement(pe,{prefixCls:t}))}const be=e=>{const{close:t,zIndex:o,afterClose:n,open:i,keyboard:l,centered:a,getContainer:s,maskStyle:c,direction:d,prefixCls:u,wrapClassName:p,rootPrefixCls:f,bodyStyle:$,closable:v=!1,closeIcon:y,modalRender:x,focusTriggerAfterClose:C,onConfirm:S,styles:O}=e;const w=`${u}-confirm`,E=e.width||416,j=e.style||{},I=void 0===e.mask||e.mask,k=void 0!==e.maskClosable&&e.maskClosable,z=m()(w,`${w}-${e.type}`,{[`${w}-rtl`]:"rtl"===d},e.className),[,A]=(0,h.Ay)(),B=r.useMemo((()=>void 0!==o?o:A.zIndexPopupBase+g.jH),[o,A]);return r.createElement(de,{prefixCls:u,className:z,wrapClassName:m()({[`${w}-centered`]:!!e.centered},p),onCancel:()=>{null==t||t({triggerCancel:!0}),null==S||S(!1)},open:i,title:"",footer:null,transitionName:(0,b.b)(f||"","zoom",e.transitionName),maskTransitionName:(0,b.b)(f||"","fade",e.maskTransitionName),mask:I,maskClosable:k,style:j,styles:Object.assign({body:$,mask:c},O),width:E,zIndex:B,afterClose:n,keyboard:l,centered:a,getContainer:s,closable:v,closeIcon:y,modalRender:x,focusTriggerAfterClose:C},r.createElement(ge,Object.assign({},e,{confirmPrefixCls:w})))};const fe=e=>{const{rootPrefixCls:t,iconPrefixCls:o,direction:n,theme:i}=e;return r.createElement(a.Ay,{prefixCls:t,iconPrefixCls:o,direction:n,theme:i},r.createElement(be,Object.assign({},e)))},he=[];let $e="";function ve(){return $e}const ye=e=>{var t,o;const{prefixCls:n,getContainer:i,direction:a}=e,s=(0,G.l)(),c=(0,r.useContext)(l.QO),d=ve()||c.getPrefixCls(),u=n||`${d}-modal`;let p=i;return!1===p&&(p=void 0),r.createElement(fe,Object.assign({},e,{rootPrefixCls:d,prefixCls:u,iconPrefixCls:c.iconPrefixCls,theme:c.theme,direction:null!=a?a:c.direction,locale:null!==(o=null===(t=c.locale)||void 0===t?void 0:t.Modal)&&void 0!==o?o:s,getContainer:p}))};function xe(e){const t=(0,a.cr)();const o=document.createDocumentFragment();let l,s=Object.assign(Object.assign({},e),{close:u,open:!0});function c(){for(var t=arguments.length,r=new Array(t),l=0;le&&e.triggerCancel));e.onCancel&&a&&e.onCancel.apply(e,[()=>{}].concat((0,n.A)(r.slice(1))));for(let e=0;e{const n=t.getPrefixCls(void 0,ve()),l=t.getIconPrefixCls(),s=t.getTheme(),c=r.createElement(ye,Object.assign({},e));(0,i.X)(r.createElement(a.Ay,{prefixCls:n,iconPrefixCls:l,theme:s},t.holderRender?t.holderRender(c):c),o)}))}function u(){for(var t=arguments.length,o=new Array(t),n=0;n{"function"==typeof e.afterClose&&e.afterClose(),c.apply(this,o)}}),s.visible&&delete s.visible,d(s)}return d(s),he.push(u),{destroy:u,update:function(e){s="function"==typeof e?e(s):Object.assign(Object.assign({},s),e),d(s)}}}function Ce(e){return Object.assign(Object.assign({},e),{type:"warning"})}function Se(e){return Object.assign(Object.assign({},e),{type:"info"})}function Oe(e){return Object.assign(Object.assign({},e),{type:"success"})}function we(e){return Object.assign(Object.assign({},e),{type:"error"})}function Ee(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var je=o(53425),Ie=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,className:o,closeIcon:n,closable:i,type:a,title:s,children:c,footer:d}=e,u=Ie(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:p}=r.useContext(l.QO),g=p(),b=t||p("modal"),f=(0,R.A)(g),[h,$,v]=le(b,f),y=`${b}-confirm`;let x={};return x=a?{closable:null!=i&&i,title:"",footer:"",children:r.createElement(ge,Object.assign({},e,{prefixCls:b,confirmPrefixCls:y,rootPrefixCls:g,content:c}))}:{closable:null==i||i,title:s,footer:null!==d&&r.createElement(V,Object.assign({},e)),children:c},h(r.createElement(I.Z,Object.assign({prefixCls:b,className:m()($,`${b}-pure-panel`,a&&y,a&&`${y}-${a}`,o,v,f)},u,{closeIcon:_(b,n),closable:i},x)))}));var ze=o(30696),Ae=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{var o,{afterClose:i,config:a}=e,s=Ae(e,["afterClose","config"]);const[c,d]=r.useState(!0),[u,p]=r.useState(a),{direction:m,getPrefixCls:g}=r.useContext(l.QO),b=g("modal"),h=g(),$=function(){d(!1);for(var e=arguments.length,t=new Array(e),o=0;oe&&e.triggerCancel));u.onCancel&&r&&u.onCancel.apply(u,[()=>{}].concat((0,n.A)(t.slice(1))))};r.useImperativeHandle(t,(()=>({destroy:$,update:e=>{p((t=>Object.assign(Object.assign({},t),e)))}})));const v=null!==(o=u.okCancel)&&void 0!==o?o:"confirm"===u.type,[y]=(0,f.A)("Modal",ze.A.Modal);return r.createElement(fe,Object.assign({prefixCls:b,rootPrefixCls:h},u,{close:$,open:c,afterClose:()=>{var e;i(),null===(e=u.afterClose)||void 0===e||e.call(u)},okText:u.okText||(v?null==y?void 0:y.okText:null==y?void 0:y.justOkText),direction:u.direction||m,cancelText:u.cancelText||(null==y?void 0:y.cancelText)},s))},Pe=r.forwardRef(Be);let He=0;const Me=r.memo(r.forwardRef(((e,t)=>{const[o,i]=function(){const[e,t]=r.useState([]);return[e,r.useCallback((e=>(t((t=>[].concat((0,n.A)(t),[e]))),()=>{t((t=>t.filter((t=>t!==e))))})),[])]}();return r.useImperativeHandle(t,(()=>({patchElement:i})),[]),r.createElement(r.Fragment,null,o)})));const Re=function(){const e=r.useRef(null),[t,o]=r.useState([]);r.useEffect((()=>{if(t.length){(0,n.A)(t).forEach((e=>{e()})),o([])}}),[t]);const i=r.useCallback((t=>function(i){var l;He+=1;const a=r.createRef();let s;const c=new Promise((e=>{s=e}));let d,u=!1;const p=r.createElement(Pe,{key:`modal-${He}`,config:t(i),ref:a,afterClose:()=>{null==d||d()},isSilent:()=>u,onConfirm:e=>{s(e)}});d=null===(l=e.current)||void 0===l?void 0:l.patchElement(p),d&&he.push(d);const m={destroy:()=>{function e(){var e;null===(e=a.current)||void 0===e||e.destroy()}a.current?e():o((t=>[].concat((0,n.A)(t),[e])))},update:e=>{function t(){var t;null===(t=a.current)||void 0===t||t.update(e)}a.current?t():o((e=>[].concat((0,n.A)(e),[t])))},then:e=>(u=!0,c.then(e))};return m}),[]);return[r.useMemo((()=>({info:i(Se),success:i(Oe),error:i(we),warning:i(Ce),confirm:i(Ee)})),[]),r.createElement(Me,{key:"modal-holder",ref:e})]};function Ne(e){return xe(Ce(e))}const Te=de;Te.useModal=Re,Te.info=function(e){return xe(Se(e))},Te.success=function(e){return xe(Oe(e))},Te.error=function(e){return xe(we(e))},Te.warning=Ne,Te.warn=Ne,Te.confirm=function(e){return xe(Ee(e))},Te.destroyAll=function(){for(;he.length;){const e=he.pop();e&&e()}},Te.config=function(e){let{rootPrefixCls:t}=e;$e=t},Te._InternalPanelDoNotUseOrYouWillBeFired=ke;const Le=Te},21815:(e,t,o)=>{o.d(t,{L:()=>a,l:()=>s});var n=o(30696);let r=Object.assign({},n.A.Modal),i=[];const l=()=>i.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),n.A.Modal);function a(e){if(e){const t=Object.assign({},e);return i.push(t),r=l(),()=>{i=i.filter((e=>e!==t)),r=l()}}r=Object.assign({},n.A.Modal)}function s(){return r}},89027:(e,t,o)=>{o.d(t,{A:()=>z});var n=o(96540),r=o(46942),i=o.n(r),l=o(12533),a=o(16928);const s=e=>e?"function"==typeof e?e():e:null;var c=o(23723),d=o(40682),u=o(62279),p=o(26211),m=o(80427),g=o(25905),b=o(99077),f=o(95201),h=o(20791),$=o(13950),v=o(20106),y=o(80336);const x=e=>{const{componentCls:t,popoverColor:o,titleMinWidth:n,fontWeightStrong:r,innerPadding:i,boxShadowSecondary:l,colorTextHeading:a,borderRadiusLG:s,zIndexPopup:c,titleMarginBottom:d,colorBgElevated:u,popoverBg:p,titleBorderBottom:m,innerContentPadding:b,titlePadding:h}=e;return[{[t]:Object.assign(Object.assign({},(0,g.dF)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":u,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:p,backgroundClip:"padding-box",borderRadius:s,boxShadow:l,padding:i},[`${t}-title`]:{minWidth:n,marginBottom:d,color:a,fontWeight:r,borderBottom:m,padding:h},[`${t}-inner-content`]:{color:o,padding:b}})},(0,f.Ay)(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},C=e=>{const{componentCls:t}=e;return{[t]:$.s.map((o=>{const n=e[`${o}6`];return{[`&${t}-${o}`]:{"--antd-arrow-background-color":n,[`${t}-inner`]:{backgroundColor:n},[`${t}-arrow`]:{background:"transparent"}}}}))}},S=(0,v.OF)("Popover",(e=>{const{colorBgElevated:t,colorText:o}=e,n=(0,y.h1)(e,{popoverBg:t,popoverColor:o});return[x(n),C(n),(0,b.aB)(n,"zoom-big")]}),(e=>{const{lineWidth:t,controlHeight:o,fontHeight:n,padding:r,wireframe:i,zIndexPopupBase:l,borderRadiusLG:a,marginXS:s,lineType:c,colorSplit:d,paddingSM:u}=e,p=o-n,m=p/2,g=p/2-t,b=r;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:l+30},(0,h.n)(e)),(0,f.Ke)({contentRadius:a,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:s,titlePadding:i?`${m}px ${b}px ${g}px`:0,titleBorderBottom:i?`${t}px ${c} ${d}`:"none",innerContentPadding:i?`${u}px ${b}px`:0})}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var O=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{hashId:t,prefixCls:o,className:r,style:l,placement:a="top",title:c,content:d,children:u}=e;return n.createElement("div",{className:i()(t,o,`${o}-pure`,`${o}-placement-${a}`,r),style:l},n.createElement("div",{className:`${o}-arrow`}),n.createElement(m.z,Object.assign({},e,{className:t,prefixCls:o}),u||((e,t,o)=>t||o?n.createElement(n.Fragment,null,t&&n.createElement("div",{className:`${e}-title`},s(t)),n.createElement("div",{className:`${e}-inner-content`},s(o))):null)(o,c,d)))},E=e=>{const{prefixCls:t,className:o}=e,r=O(e,["prefixCls","className"]),{getPrefixCls:l}=n.useContext(u.QO),a=l("popover",t),[s,c,d]=S(a);return s(n.createElement(w,Object.assign({},r,{prefixCls:a,hashId:c,className:i()(o,d)})))};var j=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{let{title:t,content:o,prefixCls:r}=e;return n.createElement(n.Fragment,null,t&&n.createElement("div",{className:`${r}-title`},s(t)),n.createElement("div",{className:`${r}-inner-content`},s(o)))},k=n.forwardRef(((e,t)=>{var o,r;const{prefixCls:s,title:m,content:g,overlayClassName:b,placement:f="top",trigger:h="hover",children:$,mouseEnterDelay:v=.1,mouseLeaveDelay:y=.1,onOpenChange:x,overlayStyle:C={}}=e,O=j(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:w}=n.useContext(u.QO),E=w("popover",s),[k,z,A]=S(E),B=w(),P=i()(b,z,A),[H,M]=(0,l.A)(!1,{value:null!==(o=e.open)&&void 0!==o?o:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),R=(e,t)=>{M(e,!0),null==x||x(e,t)};return k(n.createElement(p.A,Object.assign({placement:f,trigger:h,mouseEnterDelay:v,mouseLeaveDelay:y,overlayStyle:C},O,{prefixCls:E,overlayClassName:P,ref:t,open:H,onOpenChange:e=>{R(e)},overlay:m||g?n.createElement(I,{prefixCls:E,title:m,content:g}):null,transitionName:(0,c.b)(B,"zoom-big",O.transitionName),"data-popover-inject":!0}),(0,d.Ob)($,{onKeyDown:e=>{var t,o;n.isValidElement($)&&(null===(o=null==$?void 0:(t=$.props).onKeyDown)||void 0===o||o.call(t,e)),(e=>{e.keyCode===a.A.ESC&&R(!1,e)})(e)}})))}));k._InternalPanelDoNotUseOrYouWillBeFired=E;const z=k},6754:(e,t,o)=>{o.d(t,{A:()=>T});var n=o(96540),r=o(38811),i=o(26067),l=o(36029),a=o(47852),s=o(46942),c=o.n(s),d=o(19853),u=o(62279),p=o(71559),m=o(26211),g=o(20439);function b(e){return!e||e<0?0:e>100?100:e}function f(e){let{success:t,successPercent:o}=e,n=o;return t&&"progress"in t&&(n=t.progress),t&&"percent"in t&&(n=t.percent),n}const h=(e,t,o)=>{var n,r,i,l;let a=-1,s=-1;if("step"===t){const t=o.steps,n=o.strokeWidth;"string"==typeof e||void 0===e?(a="small"===e?2:14,s=null!=n?n:8):"number"==typeof e?[a,s]=[e,e]:[a=14,s=8]=e,a*=t}else if("line"===t){const t=null==o?void 0:o.strokeWidth;"string"==typeof e||void 0===e?s=t||("small"===e?6:8):"number"==typeof e?[a,s]=[e,e]:[a=-1,s=8]=e}else"circle"!==t&&"dashboard"!==t||("string"==typeof e||void 0===e?[a,s]="small"===e?[60,60]:[120,120]:"number"==typeof e?[a,s]=[e,e]:(a=null!==(r=null!==(n=e[0])&&void 0!==n?n:e[1])&&void 0!==r?r:120,s=null!==(l=null!==(i=e[0])&&void 0!==i?i:e[1])&&void 0!==l?l:120));return[a,s]},$=e=>{const{prefixCls:t,trailColor:o=null,strokeLinecap:r="round",gapPosition:i,gapDegree:l,width:a=120,type:s,children:d,success:u,size:$=a,steps:v}=e,[y,x]=h($,"circle");let{strokeWidth:C}=e;void 0===C&&(C=Math.max((e=>3/e*100)(y),6));const S={width:y,height:x,fontSize:.15*y+6},O=n.useMemo((()=>l||0===l?l:"dashboard"===s?75:void 0),[l,s]),w=(e=>{let{percent:t,success:o,successPercent:n}=e;const r=b(f({success:o,successPercent:n}));return[r,b(b(t)-r)]})(e),E=i||"dashboard"===s&&"bottom"||void 0,j="[object Object]"===Object.prototype.toString.call(e.strokeColor),I=(e=>{let{success:t={},strokeColor:o}=e;const{strokeColor:n}=t;return[n||g.uy.green,o||null]})({success:u,strokeColor:e.strokeColor}),k=c()(`${t}-inner`,{[`${t}-circle-gradient`]:j}),z=n.createElement(p.jl,{steps:v,percent:v?w[1]:w,strokeWidth:C,trailWidth:C,strokeColor:v?I[1]:I,strokeLinecap:r,trailColor:o,prefixCls:t,gapDegree:O,gapPosition:E});return n.createElement("div",{className:k,style:S},y<=20?n.createElement(m.A,{title:d},n.createElement("span",null,z)):n.createElement(n.Fragment,null,z,d))};var v=o(64552),y=o(25905),x=o(20106),C=o(80336);const S="--progress-line-stroke-color",O="--progress-percent",w=e=>{const t=e?"100%":"-100%";return new v.Mo(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},E=e=>{const{componentCls:t,iconCls:o}=e;return{[t]:Object.assign(Object.assign({},(0,y.dF)(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${(0,v.zA)(e.marginXS)})`,paddingInlineEnd:`calc(2em + ${(0,v.zA)(e.paddingXS)})`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${S})`]},height:"100%",width:`calc(1 / var(${O}) * 100%)`,display:"block"}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[o]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:w(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:w(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},j=e=>{const{componentCls:t,iconCls:o}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[o]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},I=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},k=e=>{const{componentCls:t,iconCls:o}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${o}`]:{fontSize:e.fontSizeSM}}}},z=(0,x.OF)("Progress",(e=>{const t=e.calc(e.marginXXS).div(2).equal(),o=(0,C.h1)(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[E(o),j(o),I(o),k(o)]}),(e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:e.fontSize/e.fontSizeSM+"em"})));var A=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{from:o=g.uy.blue,to:n=g.uy.blue,direction:r=("rtl"===t?"to left":"to right")}=e,i=A(e,["from","to","direction"]);if(0!==Object.keys(i).length){const e=`linear-gradient(${r}, ${(e=>{let t=[];return Object.keys(e).forEach((o=>{const n=parseFloat(o.replace(/%/g,""));isNaN(n)||t.push({key:n,value:e[o]})})),t=t.sort(((e,t)=>e.key-t.key)),t.map((e=>{let{key:t,value:o}=e;return`${o} ${t}%`})).join(", ")})(i)})`;return{background:e,[S]:e}}const l=`linear-gradient(${r}, ${o}, ${n})`;return{background:l,[S]:l}},P=e=>{const{prefixCls:t,direction:o,percent:r,size:i,strokeWidth:l,strokeColor:a,strokeLinecap:s="round",children:c,trailColor:d=null,success:u}=e,p=a&&"string"!=typeof a?B(a,o):{[S]:a,background:a},m="square"===s||"butt"===s?0:void 0,g=null!=i?i:[-1,l||("small"===i?6:8)],[$,v]=h(g,"line",{strokeWidth:l});const y={backgroundColor:d||void 0,borderRadius:m},x=Object.assign(Object.assign({width:`${b(r)}%`,height:v,borderRadius:m},p),{[O]:b(r)/100}),C=f(e),w={width:`${b(C)}%`,height:v,borderRadius:m,backgroundColor:null==u?void 0:u.strokeColor},E={width:$<0?"100%":$,height:v};return n.createElement(n.Fragment,null,n.createElement("div",{className:`${t}-outer`,style:E},n.createElement("div",{className:`${t}-inner`,style:y},n.createElement("div",{className:`${t}-bg`,style:x}),void 0!==C?n.createElement("div",{className:`${t}-success-bg`,style:w}):null)),c)},H=e=>{const{size:t,steps:o,percent:r=0,strokeWidth:i=8,strokeColor:l,trailColor:a=null,prefixCls:s,children:d}=e,u=Math.round(o*(r/100)),p=null!=t?t:["small"===t?2:14,i],[m,g]=h(p,"step",{steps:o,strokeWidth:i}),b=m/o,f=new Array(o);for(let e=0;e{const{prefixCls:o,className:s,rootClassName:p,steps:m,strokeColor:g,percent:v=0,size:y="default",showInfo:x=!0,type:C="line",status:S,format:O,style:w}=e,E=M(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),j=n.useMemo((()=>{var t,o;const n=f(e);return parseInt(void 0!==n?null===(t=null!=n?n:0)||void 0===t?void 0:t.toString():null===(o=null!=v?v:0)||void 0===o?void 0:o.toString(),10)}),[v,e.success,e.successPercent]),I=n.useMemo((()=>!R.includes(S)&&j>=100?"success":S||"normal"),[S,j]),{getPrefixCls:k,direction:A,progress:B}=n.useContext(u.QO),N=k("progress",o),[T,L,D]=z(N),W=n.useMemo((()=>{if(!x)return null;const t=f(e);let o;const s="line"===C;return O||"exception"!==I&&"success"!==I?o=(O||(e=>`${e}%`))(b(v),b(t)):"exception"===I?o=s?n.createElement(l.A,null):n.createElement(a.A,null):"success"===I&&(o=s?n.createElement(r.A,null):n.createElement(i.A,null)),n.createElement("span",{className:`${N}-text`,title:"string"==typeof o?o:void 0},o)}),[x,v,j,I,C,N,O]);const F=Array.isArray(g)?g[0]:g,X="string"==typeof g||Array.isArray(g)?g:void 0;let q;"line"===C?q=m?n.createElement(H,Object.assign({},e,{strokeColor:X,prefixCls:N,steps:"object"==typeof m?m.count:m}),W):n.createElement(P,Object.assign({},e,{strokeColor:F,prefixCls:N,direction:A}),W):"circle"!==C&&"dashboard"!==C||(q=n.createElement($,Object.assign({},e,{strokeColor:F,prefixCls:N,progressStatus:I}),W));const G=c()(N,`${N}-status-${I}`,{[`${N}-${"dashboard"===C?"circle":C}`]:"line"!==C,[`${N}-inline-circle`]:"circle"===C&&h(y,"circle")[0]<=20,[`${N}-line`]:!m&&"line"===C,[`${N}-steps`]:m,[`${N}-show-info`]:x,[`${N}-${y}`]:"string"==typeof y,[`${N}-rtl`]:"rtl"===A},null==B?void 0:B.className,s,p,L,D);return T(n.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},null==B?void 0:B.style),w),className:G,role:"progressbar","aria-valuenow":j},(0,d.A)(E,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),q))}));const T=N},95147:(e,t,o)=>{o.d(t,{A:()=>g});var n=o(96540),r=o(46942),i=o.n(r),l=o(365);const a=["xxl","xl","lg","md","sm","xs"];function s(){const[,e]=(0,l.Ay)(),t=(e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}))((e=>{const t=e,o=[].concat(a).reverse();return o.forEach(((e,n)=>{const r=e.toUpperCase(),i=`screen${r}Min`,l=`screen${r}`;if(!(t[i]<=t[l]))throw new Error(`${i}<=${l} fails : !(${t[i]}<=${t[l]})`);if(n{const e=new Map;let o=-1,n={};return{matchHandlers:{},dispatch:t=>(n=t,e.forEach((e=>e(n))),e.size>=1),subscribe(t){return e.size||this.register(),o+=1,e.set(o,t),t(n),o},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach((e=>{const o=t[e],n=this.matchHandlers[o];null==n||n.mql.removeListener(null==n?void 0:n.listener)})),e.clear()},register(){Object.keys(t).forEach((e=>{const o=t[e],r=t=>{let{matches:o}=t;this.dispatch(Object.assign(Object.assign({},n),{[e]:o}))},i=window.matchMedia(o);i.addListener(r),this.matchHandlers[o]={mql:i,listener:r},r(i)}))},responsiveMap:t}}),[e])}var c=o(62279),d=o(36121),u=o(25006),p=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{(()=>{if("string"==typeof e&&r(e),"object"==typeof e)for(let o=0;o{const{prefixCls:o,justify:r,align:l,className:g,style:b,children:f,gutter:h=0,wrap:$}=e,v=p(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:y,direction:x}=n.useContext(c.QO),[C,S]=n.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[O,w]=n.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),E=m(l,O),j=m(r,O),I=n.useRef(h),k=s();n.useEffect((()=>{const e=k.subscribe((e=>{w(e);const t=I.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&S(e)}));return()=>k.unsubscribe(e)}),[]);const z=y("row",o),[A,B,P]=(0,u.L3)(z),H=(()=>{const e=[void 0,void 0];return(Array.isArray(h)?h:[h,void 0]).forEach(((t,o)=>{if("object"==typeof t)for(let n=0;n0?H[0]/-2:void 0;N&&(R.marginLeft=N,R.marginRight=N);const[T,L]=H;R.rowGap=L;const D=n.useMemo((()=>({gutter:[T,L],wrap:$})),[T,L,$]);return A(n.createElement(d.A.Provider,{value:D},n.createElement("div",Object.assign({},v,{className:M,style:Object.assign(Object.assign({},R),b),ref:t}),f)))}))},47523:(e,t,o)=>{o.d(t,{A:()=>Ee});var n=o(96540),r=o(46942),i=o.n(r),l=o(63188),a=o(19853),s=o(60275),c=o(23723),d=o(53425),u=o(58182),p=o(62279),m=o(19155),g=o(24978),b=o(365);const f=()=>{const[,e]=(0,b.Ay)(),t=new g.q(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return n.createElement("svg",{style:t,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},n.createElement("g",{fill:"none",fillRule:"evenodd"},n.createElement("g",{transform:"translate(24 31.67)"},n.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),n.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),n.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),n.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),n.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),n.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),n.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},n.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),n.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};const h=()=>{const[,e]=(0,b.Ay)(),{colorFill:t,colorFillTertiary:o,colorFillQuaternary:r,colorBgContainer:i}=e,{borderColor:l,shadowColor:a,contentColor:s}=(0,n.useMemo)((()=>({borderColor:new g.q(t).onBackground(i).toHexShortString(),shadowColor:new g.q(o).onBackground(i).toHexShortString(),contentColor:new g.q(r).onBackground(i).toHexShortString()})),[t,o,r,i]);return n.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},n.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},n.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),n.createElement("g",{fillRule:"nonzero",stroke:l},n.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),n.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))};var $=o(20106),v=o(80336);const y=e=>{const{componentCls:t,margin:o,marginXS:n,marginXL:r,fontSize:i,lineHeight:l}=e;return{[t]:{marginInline:n,fontSize:i,lineHeight:l,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:n,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:o},"&-normal":{marginBlock:r,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:n,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},x=(0,$.OF)("Empty",(e=>{const{componentCls:t,controlHeightLG:o,calc:n}=e,r=(0,v.h1)(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n(o).mul(2.5).equal(),emptyImgHeightMD:o,emptyImgHeightSM:n(o).mul(.875).equal()});return[y(r)]}));var C=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{var{className:t,rootClassName:o,prefixCls:r,image:l=S,description:a,children:s,imageStyle:c,style:d}=e,u=C(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:g,direction:b,empty:f}=n.useContext(p.QO),h=g("empty",r),[$,v,y]=x(h),[w]=(0,m.A)("Empty"),E=void 0!==a?a:null==w?void 0:w.description,j="string"==typeof E?E:"empty";let I=null;return I="string"==typeof l?n.createElement("img",{alt:j,src:l}):l,$(n.createElement("div",Object.assign({className:i()(v,y,h,null==f?void 0:f.className,{[`${h}-normal`]:l===O,[`${h}-rtl`]:"rtl"===b},t,o),style:Object.assign(Object.assign({},null==f?void 0:f.style),d)},u),n.createElement("div",{className:`${h}-image`,style:c},I),E&&n.createElement("div",{className:`${h}-description`},E),s&&n.createElement("div",{className:`${h}-footer`},s)))};w.PRESENTED_IMAGE_DEFAULT=S,w.PRESENTED_IMAGE_SIMPLE=O;const E=w,j=e=>{const{componentName:t}=e,{getPrefixCls:o}=(0,n.useContext)(p.QO),r=o("empty");switch(t){case"Table":case"List":return n.createElement(E,{image:E.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return n.createElement(E,{image:E.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return n.createElement(E,null)}};var I=o(98119),k=o(20934),z=o(829),A=o(94241),B=o(90124),P=o(76327);const H=function(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)};var M=o(25905),R=o(55974),N=o(53561),T=o(64552),L=o(14980);const D=new T.Mo("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),W=new T.Mo("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),F=new T.Mo("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),X=new T.Mo("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),q=new T.Mo("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),G=new T.Mo("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),_={"move-up":{inKeyframes:new T.Mo("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new T.Mo("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:D,outKeyframes:W},"move-left":{inKeyframes:F,outKeyframes:X},"move-right":{inKeyframes:q,outKeyframes:G}},V=(e,t)=>{const{antCls:o}=e,n=`${o}-${t}`,{inKeyframes:r,outKeyframes:i}=_[t];return[(0,L.b)(n,r,i,e.motionDurationMid),{[`\n ${n}-enter,\n ${n}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Q=e=>{const{optionHeight:t,optionFontSize:o,optionLineHeight:n,optionPadding:r}=e;return{position:"relative",display:"block",minHeight:t,padding:r,color:e.colorText,fontWeight:"normal",fontSize:o,lineHeight:n,boxSizing:"border-box"}},U=e=>{const{antCls:t,componentCls:o}=e,n=`${o}-item`,r=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,l=`&${t}-slide-up-leave${t}-slide-up-leave-active`,a=`${o}-dropdown-placement-`;return[{[`${o}-dropdown`]:Object.assign(Object.assign({},(0,M.dF)(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n ${r}${a}bottomLeft,\n ${i}${a}bottomLeft\n `]:{animationName:N.ox},[`\n ${r}${a}topLeft,\n ${i}${a}topLeft,\n ${r}${a}topRight,\n ${i}${a}topRight\n `]:{animationName:N.nP},[`${l}${a}bottomLeft`]:{animationName:N.vR},[`\n ${l}${a}topLeft,\n ${l}${a}topRight\n `]:{animationName:N.YU},"&-hidden":{display:"none"},[`${n}`]:Object.assign(Object.assign({},Q(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},M.L9),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${n}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${n}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${n}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${n}-option-selected:not(${n}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${n}-option-selected:not(${n}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${n}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Q(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},(0,N._j)(e,"slide-up"),(0,N._j)(e,"slide-down"),V(e,"move-up"),V(e,"move-down")]},K=e=>{const{componentCls:t,iconCls:o,borderRadiusSM:n,motionDurationSlow:r,paddingXS:i,multipleItemColorDisabled:l,multipleItemBorderColorDisabled:a,colorIcon:s,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:d}=e,u=`${t}-selection-overflow`;return{[u]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:d,borderRadius:n,cursor:"default",transition:`font-size ${r}, line-height ${r}, height ${r}`,marginInlineEnd:e.calc(d).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:l,borderColor:a,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,M.Nk)()),{display:"inline-flex",alignItems:"center",color:s,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${o}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},Y=(e,t)=>{const{componentCls:o,INTERNAL_FIXED_ITEM_MARGIN:n}=e,r=`${o}-selection-overflow`,i=e.multipleSelectItemHeight,l=(e=>{const{multipleSelectItemHeight:t,selectHeight:o,lineWidth:n}=e;return e.calc(o).sub(t).div(2).sub(n).equal()})(e),a=t?`${o}-${t}`:"",s=(e=>{const{multipleSelectItemHeight:t,paddingXXS:o,lineWidth:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=e.max(e.calc(o).sub(n).equal(),0);return{basePadding:i,containerPadding:e.max(e.calc(i).sub(r).equal(),0),itemHeight:(0,T.zA)(t),itemLineHeight:(0,T.zA)(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}})(e);return{[`${o}-multiple${a}`]:Object.assign(Object.assign({},K(e)),{[`${o}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:s.basePadding,paddingBlock:s.containerPadding,borderRadius:e.borderRadius,[`${o}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,T.zA)(n)} 0`,lineHeight:(0,T.zA)(i),visibility:"hidden",content:'"\\a0"'}},[`${o}-selection-item`]:{height:s.itemHeight,lineHeight:(0,T.zA)(s.itemLineHeight)},[`${r}-item + ${r}-item`]:{[`${o}-selection-search`]:{marginInlineStart:0}},[`${r}-item-suffix`]:{height:"100%"},[`${o}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:(0,T.zA)(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${o}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function Z(e,t){const{componentCls:o}=e,n=t?`${o}-${t}`:"",r={[`${o}-multiple${n}`]:{fontSize:e.fontSize,[`${o}-selector`]:{[`${o}-show-search&`]:{cursor:"text"}},[`\n &${o}-show-arrow ${o}-selector,\n &${o}-allow-clear ${o}-selector\n `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[Y(e,t),r]}const J=e=>{const{componentCls:t}=e,o=(0,v.h1)(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),n=(0,v.h1)(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Z(e),Z(o,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Z(n,"lg")]};function ee(e,t){const{componentCls:o,inputPaddingHorizontalBase:n,borderRadius:r}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),l=t?`${o}-${t}`:"";return{[`${o}-single${l}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${o}-selector`]:Object.assign(Object.assign({},(0,M.dF)(e,!0)),{display:"flex",borderRadius:r,[`${o}-selection-search`]:{position:"absolute",top:0,insetInlineStart:n,insetInlineEnd:n,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n ${o}-selection-item,\n ${o}-selection-placeholder\n `]:{padding:0,lineHeight:(0,T.zA)(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${o}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${o}-selection-item:empty:after`,`${o}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${o}-show-arrow ${o}-selection-item,\n &${o}-show-arrow ${o}-selection-placeholder\n `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${o}-open ${o}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${o}-customize-input)`]:{[`${o}-selector`]:{width:"100%",height:"100%",padding:`0 ${(0,T.zA)(n)}`,[`${o}-selection-search-input`]:{height:i},"&:after":{lineHeight:(0,T.zA)(i)}}},[`&${o}-customize-input`]:{[`${o}-selector`]:{"&:after":{display:"none"},[`${o}-selection-search`]:{position:"static",width:"100%"},[`${o}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,T.zA)(n)}`,"&:after":{display:"none"}}}}}}}function te(e){const{componentCls:t}=e,o=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[ee(e),ee((0,v.h1)(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:o,insetInlineEnd:o},[`${t}-selector`]:{padding:`0 ${(0,T.zA)(o)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(o).add(e.calc(e.fontSize).mul(1.5)).equal()},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},ee((0,v.h1)(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const oe=(e,t)=>{const{componentCls:o,antCls:n,controlOutlineWidth:r}=e;return{[`&:not(${o}-customize-input) ${o}-selector`]:{border:`${(0,T.zA)(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${o}-disabled):not(${o}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${o}-selector`]:{borderColor:t.hoverBorderHover},[`${o}-focused& ${o}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${(0,T.zA)(r)} ${t.activeShadowColor}`,outline:0}}}},ne=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},oe(e,t))}),re=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},oe(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),ne(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),ne(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${(0,T.zA)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),ie=(e,t)=>{const{componentCls:o,antCls:n}=e;return{[`&:not(${o}-customize-input) ${o}-selector`]:{background:t.bg,border:`${(0,T.zA)(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${o}-disabled):not(${o}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${o}-selector`]:{background:t.hoverBg},[`${o}-focused& ${o}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},le=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},ie(e,t))}),ae=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},ie(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),le(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),le(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${(0,T.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),se=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${(0,T.zA)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}),ce=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},re(e)),ae(e)),se(e))}),de=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},ue=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},pe=e=>{const{antCls:t,componentCls:o,inputPaddingHorizontalBase:n,iconCls:r}=e;return{[o]:Object.assign(Object.assign({},(0,M.dF)(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${o}-customize-input) ${o}-selector`]:Object.assign(Object.assign({},de(e)),ue(e)),[`${o}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},M.L9),{[`> ${t}-typography`]:{display:"inline"}}),[`${o}-selection-placeholder`]:Object.assign(Object.assign({},M.L9),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${o}-arrow`]:Object.assign(Object.assign({},(0,M.Nk)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${o}-suffix)`]:{pointerEvents:"auto"}},[`${o}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${o}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${o}-clear`]:{opacity:1},[`${o}-arrow:not(:last-child)`]:{opacity:0}}}),[`${o}-has-feedback`]:{[`${o}-clear`]:{insetInlineEnd:e.calc(n).add(e.fontSize).add(e.paddingXS).equal()}}}},me=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},pe(e),te(e),J(e),U(e),{[`${t}-rtl`]:{direction:"rtl"}},(0,R.G)(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},ge=(0,$.OF)("Select",((e,t)=>{let{rootPrefixCls:o}=t;const n=(0,v.h1)(e,{rootPrefixCls:o,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[me(n),ce(n)]}),(e=>{const{fontSize:t,lineHeight:o,lineWidth:n,controlHeight:r,controlHeightSM:i,controlHeightLG:l,paddingXXS:a,controlPaddingHorizontal:s,zIndexPopupBase:c,colorText:d,fontWeightStrong:u,controlItemBgActive:p,controlItemBgHover:m,colorBgContainer:g,colorFillSecondary:b,colorBgContainerDisabled:f,colorTextDisabled:h}=e,$=2*a,v=2*n,y=Math.min(r-$,r-v),x=Math.min(i-$,i-v),C=Math.min(l-$,l-v);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),zIndexPopup:c+50,optionSelectedColor:d,optionSelectedFontWeight:u,optionSelectedBg:p,optionActiveBg:m,optionPadding:`${(r-t*o)/2}px ${s}px`,optionFontSize:t,optionLineHeight:o,optionHeight:r,selectorBg:g,clearBg:g,singleItemHeightLG:l,multipleItemBg:b,multipleItemBorderColor:"transparent",multipleItemHeight:y,multipleItemHeightSM:x,multipleItemHeightLG:C,multipleSelectorBgDisabled:f,multipleItemColorDisabled:h,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize)}}),{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var be=o(26067),fe=o(36029),he=o(47852),$e=o(14103),ve=o(93567),ye=o(42877);var xe=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{var o;const{prefixCls:r,bordered:d,className:m,rootClassName:g,getPopupContainer:f,popupClassName:h,dropdownClassName:$,listHeight:v=256,placement:y,listItemHeight:x,size:C,disabled:S,notFoundContent:O,status:w,builtinPlacements:E,dropdownMatchSelectWidth:M,popupMatchSelectWidth:R,direction:N,style:T,allowClear:L,variant:D,dropdownStyle:W,transitionName:F,tagRender:X,maxCount:q}=e,G=xe(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:_,getPrefixCls:V,renderEmpty:Q,direction:U,virtual:K,popupMatchSelectWidth:Y,popupOverflow:Z,select:J}=n.useContext(p.QO),[,ee]=(0,b.Ay)(),te=null!=x?x:null==ee?void 0:ee.controlHeight,oe=V("select",r),ne=V(),re=null!=N?N:U,{compactSize:ie,compactItemClassnames:le}=(0,P.RQ)(oe,re),[ae,se]=(0,B.A)(D,d),ce=(0,k.A)(oe),[de,ue,pe]=ge(oe,ce),me=n.useMemo((()=>{const{mode:t}=e;if("combobox"!==t)return t===Ce?"combobox":t}),[e.mode]),Se="multiple"===me||"tags"===me,Oe=function(e,t){return void 0!==t?t:null!==e}(e.suffixIcon,e.showArrow),we=null!==(o=null!=R?R:M)&&void 0!==o?o:Y,{status:Ee,hasFeedback:je,isFormItemInput:Ie,feedbackIcon:ke}=n.useContext(A.$W),ze=(0,u.v)(Ee,w);let Ae;Ae=void 0!==O?O:"combobox"===me?null:(null==Q?void 0:Q("Select"))||n.createElement(j,{componentName:"Select"});const{suffixIcon:Be,itemIcon:Pe,removeIcon:He,clearIcon:Me}=function(e){let{suffixIcon:t,clearIcon:o,menuItemSelectedIcon:r,removeIcon:i,loading:l,multiple:a,hasFeedback:s,prefixCls:c,showSuffixIcon:d,feedbackIcon:u,showArrow:p,componentName:m}=e;const g=null!=o?o:n.createElement(fe.A,null),b=e=>null!==t||s||p?n.createElement(n.Fragment,null,!1!==d&&e,s&&u):null;let f=null;if(void 0!==t)f=b(t);else if(l)f=b(n.createElement(ve.A,{spin:!0}));else{const e=`${c}-suffix`;f=t=>{let{open:o,showSearch:r}=t;return b(o&&r?n.createElement(ye.A,{className:e}):n.createElement($e.A,{className:e}))}}let h=null;h=void 0!==r?r:a?n.createElement(be.A,null):null;let $=null;return $=void 0!==i?i:n.createElement(he.A,null),{clearIcon:g,suffixIcon:f,itemIcon:h,removeIcon:$}}(Object.assign(Object.assign({},G),{multiple:Se,hasFeedback:je,feedbackIcon:ke,showSuffixIcon:Oe,prefixCls:oe,componentName:"Select"})),Re=!0===L?{clearIcon:Me}:L,Ne=(0,a.A)(G,["suffixIcon","itemIcon"]),Te=i()(h||$,{[`${oe}-dropdown-${re}`]:"rtl"===re},g,pe,ce,ue),Le=(0,z.A)((e=>{var t;return null!==(t=null!=C?C:ie)&&void 0!==t?t:e})),De=n.useContext(I.A),We=null!=S?S:De,Fe=i()({[`${oe}-lg`]:"large"===Le,[`${oe}-sm`]:"small"===Le,[`${oe}-rtl`]:"rtl"===re,[`${oe}-${ae}`]:se,[`${oe}-in-form-item`]:Ie},(0,u.L)(oe,ze,je),le,null==J?void 0:J.className,m,g,pe,ce,ue),Xe=n.useMemo((()=>void 0!==y?y:"rtl"===re?"bottomRight":"bottomLeft"),[y,re]);const[qe]=(0,s.YK)("SelectLike",null==W?void 0:W.zIndex);return de(n.createElement(l.Ay,Object.assign({ref:t,virtual:K,showSearch:null==J?void 0:J.showSearch},Ne,{style:Object.assign(Object.assign({},null==J?void 0:J.style),T),dropdownMatchSelectWidth:we,transitionName:(0,c.b)(ne,"slide-up",F),builtinPlacements:H(E,Z),listHeight:v,listItemHeight:te,mode:me,prefixCls:oe,placement:Xe,direction:re,suffixIcon:Be,menuItemSelectedIcon:Pe,removeIcon:He,allowClear:Re,notFoundContent:Ae,className:Fe,getPopupContainer:f||_,dropdownClassName:Te,disabled:We,dropdownStyle:Object.assign(Object.assign({},W),{zIndex:qe}),maxCount:Se?q:void 0,tagRender:Se?X:void 0})))};const Oe=n.forwardRef(Se),we=(0,d.A)(Oe);Oe.SECRET_COMBOBOX_MODE_DO_NOT_USE=Ce,Oe.Option=l.c$,Oe.OptGroup=l.JM,Oe._InternalPanelDoNotUseOrYouWillBeFired=we;const Ee=Oe},6531:(e,t,o)=>{o.d(t,{A:()=>E});var n=o(96540),r=o(46942),i=o.n(r),l=o(95826),a=o(25371),s=o(62279),c=o(98119),d=o(8719),u=o(26211);const p=n.forwardRef(((e,t)=>{const{open:o}=e,r=(0,n.useRef)(null),i=(0,n.useRef)(null);function l(){a.A.cancel(i.current),i.current=null}return n.useEffect((()=>(o?i.current=(0,a.A)((()=>{var e;null===(e=r.current)||void 0===e||e.forceAlign(),i.current=null})):l(),l)),[o,e.title]),n.createElement(u.A,Object.assign({ref:(0,d.K4)(r,t)},e))}));var m=o(64552),g=o(24978),b=o(25905),f=o(20106),h=o(80336);const $=e=>{const{componentCls:t,antCls:o,controlSize:n,dotSize:r,marginFull:i,marginPart:l,colorFillContentHover:a,handleColorDisabled:s,calc:c}=e;return{[t]:Object.assign(Object.assign({},(0,b.dF)(e)),{position:"relative",height:n,margin:`${(0,m.zA)(l)} ${(0,m.zA)(i)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${(0,m.zA)(i)} ${(0,m.zA)(l)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:a},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${(0,m.zA)(e.handleLineWidth)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none","&::before":{content:'""',position:"absolute",insetInlineStart:c(e.handleLineWidth).mul(-1).equal(),insetBlockStart:c(e.handleLineWidth).mul(-1).equal(),width:c(e.handleSize).add(c(e.handleLineWidth).mul(2)).equal(),height:c(e.handleSize).add(c(e.handleLineWidth).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${(0,m.zA)(e.handleLineWidth)} ${e.handleColor}`,borderRadius:"50%",cursor:"pointer",transition:`\n inset-inline-start ${e.motionDurationMid},\n inset-block-start ${e.motionDurationMid},\n width ${e.motionDurationMid},\n height ${e.motionDurationMid},\n box-shadow ${e.motionDurationMid}\n `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:c(e.handleSizeHover).sub(e.handleSize).div(2).add(e.handleLineWidthHover).mul(-1).equal(),insetBlockStart:c(e.handleSizeHover).sub(e.handleSize).div(2).add(e.handleLineWidthHover).mul(-1).equal(),width:c(e.handleSizeHover).add(c(e.handleLineWidthHover).mul(2)).equal(),height:c(e.handleSizeHover).add(c(e.handleLineWidthHover).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${(0,m.zA)(e.handleLineWidthHover)} ${e.handleActiveColor}`,width:e.handleSizeHover,height:e.handleSizeHover,insetInlineStart:e.calc(e.handleSize).sub(e.handleSizeHover).div(2).equal(),insetBlockStart:e.calc(e.handleSize).sub(e.handleSizeHover).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:r,height:r,backgroundColor:e.colorBgElevated,border:`${(0,m.zA)(e.handleLineWidth)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`\n ${t}-dot\n `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:e.handleSize,height:e.handleSize,boxShadow:`0 0 0 ${(0,m.zA)(e.handleLineWidth)} ${s}`,insetInlineStart:0,insetBlockStart:0},[`\n ${t}-mark-text,\n ${t}-dot\n `]:{cursor:"not-allowed !important"}},[`&-tooltip ${o}-tooltip-inner`]:{minWidth:"unset"}})}},v=(e,t)=>{const{componentCls:o,railSize:n,handleSize:r,dotSize:i,marginFull:l,calc:a}=e,s=t?"paddingBlock":"paddingInline",c=t?"width":"height",d=t?"height":"width",u=t?"insetBlockStart":"insetInlineStart",p=t?"top":"insetInlineStart",g=a(n).mul(3).sub(r).div(2).equal(),b=a(r).sub(n).div(2).equal(),f=t?{borderWidth:`${(0,m.zA)(b)} 0`,transform:`translateY(${(0,m.zA)(a(b).mul(-1).equal())})`}:{borderWidth:`0 ${(0,m.zA)(b)}`,transform:`translateX(${(0,m.zA)(e.calc(b).mul(-1).equal())})`};return{[s]:n,[d]:a(n).mul(3).equal(),[`${o}-rail`]:{[c]:"100%",[d]:n},[`${o}-track,${o}-tracks`]:{[d]:n},[`${o}-track-draggable`]:Object.assign({},f),[`${o}-handle`]:{[u]:g},[`${o}-mark`]:{insetInlineStart:0,top:0,[p]:a(n).mul(3).add(t?0:l).equal(),[c]:"100%"},[`${o}-step`]:{insetInlineStart:0,top:0,[p]:n,[c]:"100%",[d]:n},[`${o}-dot`]:{position:"absolute",[u]:a(n).sub(i).div(2).equal()}}},y=e=>{const{componentCls:t,marginPartWithMark:o}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},v(e,!0)),{[`&${t}-with-marks`]:{marginBottom:o}})}},x=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},v(e,!1)),{height:"100%"})}},C=(0,f.OF)("Slider",(e=>{const t=(0,h.h1)(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[$(t),y(t),x(t)]}),(e=>{const t=e.controlHeightLG/4;return{controlSize:t,railSize:4,handleSize:t,handleSizeHover:e.controlHeightSM/2,dotSize:8,handleLineWidth:e.lineWidth+1,handleLineWidthHover:e.lineWidth+3,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:e.colorPrimary,handleColorDisabled:new g.q(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}}));function S(){const[e,t]=n.useState(!1),o=n.useRef(),r=()=>{a.A.cancel(o.current)};return n.useEffect((()=>r),[]),[e,e=>{r(),e?t(e):o.current=(0,a.A)((()=>{t(e)}))}]}var O=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{prefixCls:o,range:r,className:d,rootClassName:u,style:m,disabled:g,tooltipPrefixCls:b,tipFormatter:f,tooltipVisible:h,getTooltipPopupContainer:$,tooltipPlacement:v,tooltip:y={},onChangeComplete:x}=e,w=O(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete"]),{vertical:E}=e,{direction:j,slider:I,getPrefixCls:k,getPopupContainer:z}=n.useContext(s.QO),A=n.useContext(c.A),B=null!=g?g:A,[P,H]=S(),[M,R]=S(),N=P||M,T=Object.assign({},y),{open:L,placement:D,getPopupContainer:W,prefixCls:F,formatter:X}=T,q=null!=L?L:h,G=function(e,t){return e||null===e?e:t||null===t?t:e=>"number"==typeof e?e.toString():""}(X,f),[_,V]=S(),Q=(e,t)=>e||(t?"rtl"===j?"left":"right":"top"),U=k("slider",o),[K,Y,Z]=C(U),J=i()(d,null==I?void 0:I.className,u,{[`${U}-rtl`]:"rtl"===j,[`${U}-lock`]:_},Y,Z);"rtl"!==j||w.vertical||(w.reverse=!w.reverse);const[ee,te]=n.useMemo((()=>r?"object"==typeof r?[!0,r.draggableTrack]:[!0,!1]:[!1]),[r]);n.useEffect((()=>{const e=()=>{(0,a.A)((()=>{R(!1)}),1)};return document.addEventListener("mouseup",e),()=>{document.removeEventListener("mouseup",e)}}),[]);const oe=ee&&!q,ne=oe?(e,t)=>{const o=n.cloneElement(e,{style:Object.assign(Object.assign({},e.props.style),{visibility:"hidden"})});return n.createElement(p,Object.assign({},T,{prefixCls:k("tooltip",null!=F?F:b),title:G?G(t.value):"",open:N,placement:Q(null!=D?D:v,E),key:"tooltip",overlayClassName:`${U}-tooltip`,getPopupContainer:W||$||z}),o)}:void 0,re=Object.assign(Object.assign({},null==I?void 0:I.style),m);return K(n.createElement(l.A,Object.assign({},w,{step:w.step,range:ee,draggableTrack:te,className:J,style:re,disabled:B,ref:t,prefixCls:U,handleRender:(e,t)=>{const{index:o}=t,r=e.props,i=Object.assign(Object.assign({},r),{onMouseEnter:e=>{var t;H(!0),null===(t=r.onMouseEnter)||void 0===t||t.call(r,e)},onMouseLeave:e=>{var t;H(!1),null===(t=r.onMouseLeave)||void 0===t||t.call(r,e)},onMouseDown:e=>{var t;R(!0),V(!0),null===(t=r.onMouseDown)||void 0===t||t.call(r,e)},onFocus:e=>{var t,o;R(!0),null===(t=w.onFocus)||void 0===t||t.call(w,e),null===(o=r.onFocus)||void 0===o||o.call(r,e)},onBlur:e=>{var t,o;R(!1),null===(t=w.onBlur)||void 0===t||t.call(w,e),null===(o=r.onBlur)||void 0===o||o.call(r,e)}}),l=n.cloneElement(e,i);return oe?l:n.createElement(p,Object.assign({},T,{prefixCls:k("tooltip",null!=F?F:b),title:G?G(t.value):"",open:!!q||N,placement:Q(null!=D?D:v,E),key:o,overlayClassName:`${U}-tooltip`,getPopupContainer:W||$||z}),l)},activeHandleRender:ne,onChangeComplete:e=>{null==x||x(e),V(!1)}})))}));const E=w},76327:(e,t,o)=>{o.d(t,{K6:()=>s,RQ:()=>a});var n=o(96540),r=o(46942),i=o.n(r);o(82546);const l=n.createContext(null),a=(e,t)=>{const o=n.useContext(l),r=n.useMemo((()=>{if(!o)return"";const{compactDirection:n,isFirstItem:r,isLastItem:l}=o,a="vertical"===n?"-vertical-":"-";return i()(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:r,[`${e}-compact${a}last-item`]:l,[`${e}-compact${a}item-rtl`]:"rtl"===t})}),[e,t,o]);return{compactSize:null==o?void 0:o.compactSize,compactDirection:null==o?void 0:o.compactDirection,compactItemClassnames:r}},s=e=>{let{children:t}=e;return n.createElement(l.Provider,{value:null},t)}},76139:(e,t,o)=>{o.d(t,{A:()=>x});var n=o(96540),r=o(46942),i=o.n(r),l=o(19853),a=o(73700),s=o(40682),c=o(62279),d=o(64552),u=o(25905),p=o(20106),m=o(80336);const g=new d.Mo("antSpinMove",{to:{opacity:1}}),b=new d.Mo("antRotate",{to:{transform:"rotate(405deg)"}}),f=e=>{const{componentCls:t,calc:o}=e;return{[`${t}`]:Object.assign(Object.assign({},(0,u.dF)(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:o(o(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[`${t}-dot ${t}-dot-item`]:{backgroundColor:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:o(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:o(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:o(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:o(o(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:o(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:o(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:o(o(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:o(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:o(e.dotSize).sub(o(e.marginXXS).div(2)).div(2).equal(),height:o(e.dotSize).sub(o(e.marginXXS).div(2)).div(2).equal(),backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:g,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:b,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${t}-dot`]:{fontSize:e.dotSizeSM,i:{width:o(o(e.dotSizeSM).sub(o(e.marginXXS).div(2))).div(2).equal(),height:o(o(e.dotSizeSM).sub(o(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{fontSize:e.dotSizeLG,i:{width:o(o(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:o(o(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},h=(0,p.OF)("Spin",(e=>{const t=(0,m.h1)(e,{spinDotDefault:e.colorTextDescription});return[f(t)]}),(e=>{const{controlHeightLG:t,controlHeight:o}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:o}}));var $=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,spinning:o=!0,delay:r=0,className:d,rootClassName:u,size:p="default",tip:m,wrapperClassName:g,style:b,children:f,fullscreen:y=!1}=e,x=$(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen"]),{getPrefixCls:C}=n.useContext(c.QO),S=C("spin",t),[O,w,E]=h(S),[j,I]=n.useState((()=>o&&!function(e,t){return!!e&&!!t&&!isNaN(Number(t))}(o,r)));n.useEffect((()=>{if(o){const e=(0,a.s)(r,(()=>{I(!0)}));return e(),()=>{var t;null===(t=null==e?void 0:e.cancel)||void 0===t||t.call(e)}}I(!1)}),[r,o]);const k=n.useMemo((()=>void 0!==f&&!y),[f,y]);const{direction:z,spin:A}=n.useContext(c.QO),B=i()(S,null==A?void 0:A.className,{[`${S}-sm`]:"small"===p,[`${S}-lg`]:"large"===p,[`${S}-spinning`]:j,[`${S}-show-text`]:!!m,[`${S}-fullscreen`]:y,[`${S}-fullscreen-show`]:y&&j,[`${S}-rtl`]:"rtl"===z},d,u,w,E),P=i()(`${S}-container`,{[`${S}-blur`]:j}),H=(0,l.A)(x,["indicator"]),M=Object.assign(Object.assign({},null==A?void 0:A.style),b),R=n.createElement("div",Object.assign({},H,{style:M,className:B,"aria-live":"polite","aria-busy":j}),function(e,t){const{indicator:o}=t,r=`${e}-dot`;return null===o?null:n.isValidElement(o)?(0,s.Ob)(o,{className:i()(o.props.className,r)}):n.isValidElement(v)?(0,s.Ob)(v,{className:i()(v.props.className,r)}):n.createElement("span",{className:i()(r,`${e}-dot-spin`)},n.createElement("i",{className:`${e}-dot-item`,key:1}),n.createElement("i",{className:`${e}-dot-item`,key:2}),n.createElement("i",{className:`${e}-dot-item`,key:3}),n.createElement("i",{className:`${e}-dot-item`,key:4}))}(S,e),m&&(k||y)?n.createElement("div",{className:`${S}-text`},m):null);return O(k?n.createElement("div",Object.assign({},H,{className:i()(`${S}-nested-loading`,g,w,E)}),j&&n.createElement("div",{key:"loading"},R),n.createElement("div",{className:P,key:"container"},f)):R)};y.setDefaultIndicator=e=>{v=e};const x=y},55974:(e,t,o)=>{function n(e,t,o){const{focusElCls:n,focus:r,borderElCls:i}=o,l=i?"> *":"",a=["hover",r?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${l}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[a]:{zIndex:2}},n?{[`&${n}`]:{zIndex:2}}:{}),{[`&[disabled] ${l}`]:{zIndex:0}})}}function r(e,t,o){const{borderElCls:n}=o,r=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${r}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:o}=e,i=`${o}-compact`;return{[i]:Object.assign(Object.assign({},n(e,i,t)),r(o,i,t))}}o.d(t,{G:()=>i})},25905:(e,t,o)=>{o.d(t,{K8:()=>u,L9:()=>r,Nk:()=>l,av:()=>s,dF:()=>i,jk:()=>d,t6:()=>a,vj:()=>c});var n=o(64552);const r={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},i=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},l=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),a=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),s=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),c=(e,t,o,n)=>{const r=`[class^="${t}"], [class*=" ${t}"]`,i=o?`.${o}`:r,l={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let a={};return!1!==n&&(a={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},a),l),{[r]:l})}},d=e=>({outline:`${(0,n.zA)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),u=e=>({"&:focus-visible":Object.assign({},d(e))})},60977:(e,t,o)=>{o.d(t,{A:()=>n});const n=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}})},28680:(e,t,o)=>{o.d(t,{p9:()=>a});var n=o(64552),r=o(14980);const i=new n.Mo("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),l=new n.Mo("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),a=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:o}=e,n=`${o}-fade`,a=t?"&":"";return[(0,r.b)(n,i,l,e.motionDurationMid,t),{[`\n ${a}${n}-enter,\n ${a}${n}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${a}${n}-leave`]:{animationTimingFunction:"linear"}}]}},14980:(e,t,o)=>{o.d(t,{b:()=>i});const n=e=>({animationDuration:e,animationFillMode:"both"}),r=e=>({animationDuration:e,animationFillMode:"both"}),i=function(e,t,o,i){const l=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${l}${e}-enter,\n ${l}${e}-appear\n `]:Object.assign(Object.assign({},n(i)),{animationPlayState:"paused"}),[`${l}${e}-leave`]:Object.assign(Object.assign({},r(i)),{animationPlayState:"paused"}),[`\n ${l}${e}-enter${e}-enter-active,\n ${l}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${l}${e}-leave${e}-leave-active`]:{animationName:o,animationPlayState:"running",pointerEvents:"none"}}}},53561:(e,t,o)=>{o.d(t,{YU:()=>s,_j:()=>g,nP:()=>a,ox:()=>i,vR:()=>l});var n=o(64552),r=o(14980);const i=new n.Mo("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),l=new n.Mo("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),a=new n.Mo("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),s=new n.Mo("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),c=new n.Mo("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),d=new n.Mo("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),u=new n.Mo("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),p=new n.Mo("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),m={"slide-up":{inKeyframes:i,outKeyframes:l},"slide-down":{inKeyframes:a,outKeyframes:s},"slide-left":{inKeyframes:c,outKeyframes:d},"slide-right":{inKeyframes:u,outKeyframes:p}},g=(e,t)=>{const{antCls:o}=e,n=`${o}-${t}`,{inKeyframes:i,outKeyframes:l}=m[t];return[(0,r.b)(n,i,l,e.motionDurationMid),{[`\n ${n}-enter,\n ${n}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]}},99077:(e,t,o)=>{o.d(t,{aB:()=>p});var n=o(64552),r=o(14980);const i=new n.Mo("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),l=new n.Mo("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),a=new n.Mo("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),s=new n.Mo("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),c=new n.Mo("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),d=new n.Mo("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),u={zoom:{inKeyframes:i,outKeyframes:l},"zoom-big":{inKeyframes:a,outKeyframes:s},"zoom-big-fast":{inKeyframes:a,outKeyframes:s},"zoom-left":{inKeyframes:new n.Mo("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new n.Mo("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new n.Mo("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new n.Mo("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:c,outKeyframes:d},"zoom-down":{inKeyframes:new n.Mo("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new n.Mo("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},p=(e,t)=>{const{antCls:o}=e,n=`${o}-${t}`,{inKeyframes:i,outKeyframes:l}=u[t];return[(0,r.b)(n,i,l,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${n}-enter,\n ${n}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]}},95201:(e,t,o)=>{o.d(t,{Ay:()=>a,Ke:()=>i,Zs:()=>r});var n=o(20791);const r=8;function i(e){const{contentRadius:t,limitVerticalRadius:o}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:o?r:n}}function l(e,t){return e?t:{}}function a(e,t,o){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:a,arrowOffsetHorizontal:s}=e,{arrowDistance:c=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=o||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,n.j)(e,t,i)),{"&:before":{background:t}})]},l(!!d.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:c,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:s}},[`&-placement-topRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:s}}})),l(!!d.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:c,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:s}},[`&-placement-bottomRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:s}}})),l(!!d.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:c},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}})),l(!!d.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:c},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}}))}}},20791:(e,t,o)=>{o.d(t,{j:()=>i,n:()=>r});var n=o(64552);function r(e){const{sizePopupArrow:t,borderRadiusXS:o,borderRadiusOuter:n}=e,r=t/2,i=r,l=1*n/Math.sqrt(2),a=r-n*(1-1/Math.sqrt(2)),s=r-o*(1/Math.sqrt(2)),c=n*(Math.sqrt(2)-1)+o*(1/Math.sqrt(2)),d=2*r-s,u=c,p=2*r-l,m=a,g=2*r-0,b=i,f=r*Math.sqrt(2)+n*(Math.sqrt(2)-2),h=n*(Math.sqrt(2)-1);return{arrowShadowWidth:f,arrowPath:`path('M 0 ${i} A ${n} ${n} 0 0 0 ${l} ${a} L ${s} ${c} A ${o} ${o} 0 0 1 ${d} ${u} L ${p} ${m} A ${n} ${n} 0 0 0 ${g} ${b} Z')`,arrowPolygon:`polygon(${h}px 100%, 50% ${h}px, ${2*r-h}px 100%, ${h}px 100%)`}}const i=(e,t,o)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:l,arrowShadowWidth:a,borderRadiusXS:s,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,l]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${(0,n.zA)(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"}}}},89864:(e,t,o)=>{o.d(t,{vG:()=>$,sb:()=>h,zQ:()=>f});var n=o(96540),r=o(64552),i=o(20439),l=o(50723),a=o(24978);const s=e=>{let t=e,o=e,n=e,r=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?o=4:e<8&&e>=7?o=5:e<14&&e>=8?o=6:e<16&&e>=14?o=7:e>=16&&(o=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?r=4:e>=8&&(r=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:o,borderRadiusLG:t,borderRadiusOuter:r}};const c=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};var d=o(94925);const u=e=>{const t=(0,d.A)(e),o=t.map((e=>e.size)),n=t.map((e=>e.lineHeight)),r=o[1],i=o[0],l=o[2],a=n[1],s=n[0],c=n[2];return{fontSizeSM:i,fontSize:r,fontSizeLG:l,fontSizeXL:o[3],fontSizeHeading1:o[6],fontSizeHeading2:o[5],fontSizeHeading3:o[4],fontSizeHeading4:o[3],fontSizeHeading5:o[2],lineHeight:a,lineHeightLG:c,lineHeightSM:s,fontHeight:Math.round(a*r),fontHeightLG:Math.round(c*l),fontHeightSM:Math.round(s*i),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};const p=(e,t)=>new a.q(e).setAlpha(t).toRgbString(),m=(e,t)=>new a.q(e).darken(t).toHexString(),g=e=>{const t=(0,i.cM)(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},b=(e,t)=>{const o=e||"#fff",n=t||"#000";return{colorBgBase:o,colorTextBase:n,colorText:p(n,.88),colorTextSecondary:p(n,.65),colorTextTertiary:p(n,.45),colorTextQuaternary:p(n,.25),colorFill:p(n,.15),colorFillSecondary:p(n,.06),colorFillTertiary:p(n,.04),colorFillQuaternary:p(n,.02),colorBgLayout:m(o,4),colorBgContainer:m(o,0),colorBgElevated:m(o,0),colorBgSpotlight:p(n,.85),colorBgBlur:"transparent",colorBorder:m(o,15),colorBorderSecondary:m(o,6)}};const f=(0,r.an)((function(e){const t=Object.keys(l.r).map((t=>{const o=(0,i.cM)(e[t]);return new Array(10).fill(1).reduce(((e,n,r)=>(e[`${t}-${r+1}`]=o[r],e[`${t}${r+1}`]=o[r],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:o,generateNeutralColorPalettes:n}=t;const{colorSuccess:r,colorWarning:i,colorError:l,colorInfo:s,colorPrimary:c,colorBgBase:d,colorTextBase:u}=e,p=o(c),m=o(r),g=o(i),b=o(l),f=o(s),h=n(d,u),$=o(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},h),{colorPrimaryBg:p[1],colorPrimaryBgHover:p[2],colorPrimaryBorder:p[3],colorPrimaryBorderHover:p[4],colorPrimaryHover:p[5],colorPrimary:p[6],colorPrimaryActive:p[7],colorPrimaryTextHover:p[8],colorPrimaryText:p[9],colorPrimaryTextActive:p[10],colorSuccessBg:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[10],colorErrorBg:b[1],colorErrorBgHover:b[2],colorErrorBorder:b[3],colorErrorBorderHover:b[4],colorErrorHover:b[5],colorError:b[6],colorErrorActive:b[7],colorErrorTextHover:b[8],colorErrorText:b[9],colorErrorTextActive:b[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:f[1],colorInfoBgHover:f[2],colorInfoBorder:f[3],colorInfoBorderHover:f[4],colorInfoHover:f[4],colorInfo:f[6],colorInfoActive:f[7],colorInfoTextHover:f[8],colorInfoText:f[9],colorInfoTextActive:f[10],colorLinkHover:$[4],colorLink:$[6],colorLinkActive:$[7],colorBgMask:new a.q("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:g,generateNeutralColorPalettes:b})),u(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:o}=e;return{sizeXXL:t*(o+8),sizeXL:t*(o+4),sizeLG:t*(o+2),sizeMD:t*(o+1),sizeMS:t*o,size:t*o,sizeSM:t*(o-1),sizeXS:t*(o-2),sizeXXS:t*(o-3)}}(e)),c(e)),function(e){const{motionUnit:t,motionBase:o,borderRadius:n,lineWidth:r}=e;return Object.assign({motionDurationFast:`${(o+t).toFixed(1)}s`,motionDurationMid:`${(o+2*t).toFixed(1)}s`,motionDurationSlow:`${(o+3*t).toFixed(1)}s`,lineWidthBold:r+1},s(n))}(e))})),h={token:l.A,override:{override:l.A},hashed:!0},$=n.createContext(h)},13950:(e,t,o)=>{o.d(t,{s:()=>n});const n=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},50723:(e,t,o)=>{o.d(t,{A:()=>r,r:()=>n});const n={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},r=Object.assign(Object.assign({},n),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0})},94925:(e,t,o)=>{function n(e){return(e+8)/e}function r(e){const t=new Array(10).fill(null).map(((t,o)=>{const n=o-1,r=e*Math.pow(2.71828,n/5),i=o>1?Math.floor(r):Math.ceil(r);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:n(e)})))}o.d(t,{A:()=>r,k:()=>n})},365:(e,t,o)=>{o.d(t,{Ay:()=>$,Xe:()=>b,Is:()=>g});var n=o(96540),r=o(64552);const i="5.16.5";var l=o(89864),a=o(50723),s=o(24978);function c(e){return e>=0&&e<=255}const d=function(e,t){const{r:o,g:n,b:r,a:i}=new s.q(e).toRgb();if(i<1)return e;const{r:l,g:a,b:d}=new s.q(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((o-l*(1-e))/e),i=Math.round((n-a*(1-e))/e),u=Math.round((r-d*(1-e))/e);if(c(t)&&c(i)&&c(u))return new s.q({r:t,g:i,b:u,a:Math.round(100*e)/100}).toRgbString()}return new s.q({r:o,g:n,b:r,a:1}).toRgbString()};var u=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{delete n[e]}));const r=Object.assign(Object.assign({},o),n),i=1200,l=1600;if(!1===r.motion){const e="0s";r.motionDurationFast=e,r.motionDurationMid=e,r.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},r),{colorFillContent:r.colorFillSecondary,colorFillContentHover:r.colorFill,colorFillAlter:r.colorFillQuaternary,colorBgContainerDisabled:r.colorFillTertiary,colorBorderBg:r.colorBgContainer,colorSplit:d(r.colorBorderSecondary,r.colorBgContainer),colorTextPlaceholder:r.colorTextQuaternary,colorTextDisabled:r.colorTextQuaternary,colorTextHeading:r.colorText,colorTextLabel:r.colorTextSecondary,colorTextDescription:r.colorTextTertiary,colorTextLightSolid:r.colorWhite,colorHighlight:r.colorError,colorBgTextHover:r.colorFillSecondary,colorBgTextActive:r.colorFill,colorIcon:r.colorTextTertiary,colorIconHover:r.colorText,colorErrorOutline:d(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:d(r.colorWarningBg,r.colorBgContainer),fontSizeIcon:r.fontSizeSM,lineWidthFocus:4*r.lineWidth,lineWidth:r.lineWidth,controlOutlineWidth:2*r.lineWidth,controlInteractiveSize:r.controlHeight/2,controlItemBgHover:r.colorFillTertiary,controlItemBgActive:r.colorPrimaryBg,controlItemBgActiveHover:r.colorPrimaryBgHover,controlItemBgActiveDisabled:r.colorFill,controlTmpOutline:r.colorFillQuaternary,controlOutline:d(r.colorPrimaryBg,r.colorBgContainer),lineType:r.lineType,borderRadius:r.borderRadius,borderRadiusXS:r.borderRadiusXS,borderRadiusSM:r.borderRadiusSM,borderRadiusLG:r.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:r.sizeXXS,paddingXS:r.sizeXS,paddingSM:r.sizeSM,padding:r.size,paddingMD:r.sizeMD,paddingLG:r.sizeLG,paddingXL:r.sizeXL,paddingContentHorizontalLG:r.sizeLG,paddingContentVerticalLG:r.sizeMS,paddingContentHorizontal:r.sizeMS,paddingContentVertical:r.sizeSM,paddingContentHorizontalSM:r.size,paddingContentVerticalSM:r.sizeXS,marginXXS:r.sizeXXS,marginXS:r.sizeXS,marginSM:r.sizeSM,margin:r.size,marginMD:r.sizeMD,marginLG:r.sizeLG,marginXL:r.sizeXL,marginXXL:r.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:i,screenXLMin:i,screenXLMax:1599,screenXXL:l,screenXXLMin:l,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new s.q("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new s.q("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new s.q("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),n)}var m=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const n=o.getDerivativeToken(e),{override:r}=t,i=m(t,["override"]);let l=Object.assign(Object.assign({},n),{override:r});return l=p(l),i&&Object.entries(i).forEach((e=>{let[t,o]=e;const{theme:n}=o,r=m(o,["theme"]);let i=r;n&&(i=h(Object.assign(Object.assign({},l),r),{override:r},n)),l[t]=i})),l};function $(){const{token:e,hashed:t,theme:o,override:s,cssVar:c}=n.useContext(l.vG),d=`${i}-${t||""}`,u=o||l.zQ,[m,$,v]=(0,r.hV)(u,[a.A,e],{salt:d,override:s,getComputedToken:h,formatToken:p,cssVar:c&&{prefix:c.prefix,key:c.key,unitless:g,ignore:b,preserve:f}});return[u,v,t?$:"",m,c]}},20106:(e,t,o)=>{o.d(t,{Ay:()=>O,OF:()=>E,bf:()=>w});var n=o(96540),r=o(64552),i=(o(81470),o(62279)),l=o(25905),a=o(365),s=o(23029),c=o(92901),d=o(39874),u=o(15361);const p=(0,c.A)((function e(){(0,s.A)(this,e)})),m="CALC_UNIT",g=new RegExp(m,"g");function b(e){return"number"==typeof e?`${e}${m}`:e}let f=function(e){function t(e){var o;return(0,s.A)(this,t),(o=(0,d.A)(this,t)).result="",e instanceof t?o.result=`(${e.result})`:"number"==typeof e?o.result=b(e):"string"==typeof e&&(o.result=e),o}return(0,u.A)(t,e),(0,c.A)(t,[{key:"add",value:function(e){return e instanceof t?this.result=`${this.result} + ${e.getResult()}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} + ${b(e)}`),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof t?this.result=`${this.result} - ${e.getResult()}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} - ${b(e)}`),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof t?this.result=`${this.result} * ${e.getResult(!0)}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} * ${e}`),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof t?this.result=`${this.result} / ${e.getResult(!0)}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} / ${e}`),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?`(${this.result})`:this.result}},{key:"equal",value:function(e){const{unit:t=!0}=e||{};return this.result=this.result.replace(g,t?"px":""),void 0!==this.lowPriority?`calc(${this.result})`:this.result}}])}(p),h=function(e){function t(e){var o;return(0,s.A)(this,t),(o=(0,d.A)(this,t)).result=0,e instanceof t?o.result=e.result:"number"==typeof e&&(o.result=e),o}return(0,u.A)(t,e),(0,c.A)(t,[{key:"add",value:function(e){return e instanceof t?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof t?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof t?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof t?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}])}(p);const $=e=>{const t="css"===e?f:h;return e=>new t(e)};var v=o(80336),y=o(62366);const x=(e,t,o)=>{var n;return"function"==typeof o?o((0,v.h1)(t,null!==(n=t[e])&&void 0!==n?n:{})):null!=o?o:{}},C=(e,t,o,n)=>{const r=Object.assign({},t[e]);if(null==n?void 0:n.deprecatedTokens){const{deprecatedTokens:e}=n;e.forEach((e=>{let[t,o]=e;var n;((null==r?void 0:r[t])||(null==r?void 0:r[o]))&&(null!==(n=r[o])&&void 0!==n||(r[o]=null==r?void 0:r[t]))}))}const i=Object.assign(Object.assign({},o),r);return Object.keys(i).forEach((e=>{i[e]===t[e]&&delete i[e]})),i},S=(e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function O(e,t,o){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const c=Array.isArray(e)?e:[e,e],[d]=c,u=c.join("-");return function(e){let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const[p,m,g,b,f]=(0,a.Ay)(),{getPrefixCls:h,iconPrefixCls:O,csp:w}=(0,n.useContext)(i.QO),E=h(),j=f?"css":"js",I=$(j),{max:k,min:z}=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),o=0;o(0,r.zA)(e))).join(",")})`},min:function(){for(var e=arguments.length,t=new Array(e),o=0;o(0,r.zA)(e))).join(",")})`}}}(j),A={theme:p,token:b,hashId:g,nonce:()=>null==w?void 0:w.nonce,clientOnly:s.clientOnly,order:s.order||-999};(0,r.IV)(Object.assign(Object.assign({},A),{clientOnly:!1,path:["Shared",E]}),(()=>[{"&":(0,l.av)(b)}])),(0,y.A)(O,w);return[(0,r.IV)(Object.assign(Object.assign({},A),{path:[u,e,O]}),(()=>{if(!1===s.injectStyle)return[];const{token:n,flush:i}=(0,v.Ay)(b),a=x(d,m,o),u=`.${e}`,p=C(d,m,a,{deprecatedTokens:s.deprecatedTokens});f&&Object.keys(a).forEach((e=>{a[e]=`var(${(0,r.Ki)(e,S(d,f.prefix))})`}));const h=(0,v.h1)(n,{componentCls:u,prefixCls:e,iconCls:`.${O}`,antCls:`.${E}`,calc:I,max:k,min:z},f?a:p),$=t(h,{hashId:g,prefixCls:e,rootPrefixCls:E,iconPrefixCls:O});return i(d,p),[!1===s.resetStyle?null:(0,l.vj)(h,e,c,s.resetFont),$]})),g]}}const w=(e,t,o,n)=>{const r=O(e,t,o,Object.assign({resetStyle:!1,order:-998},n));return e=>{let{prefixCls:t,rootCls:o=t}=e;return r(t,o),null}},E=(e,t,o,i)=>{const l=O(e,t,o,i),s=((e,t,o)=>{function i(t){return`${e}${t.slice(0,1).toUpperCase()}${t.slice(1)}`}const{unitless:l={},injectStyle:s=!0}=null!=o?o:{},c={[i("zIndexPopup")]:!0};Object.keys(l).forEach((e=>{c[i(e)]=l[e]}));const d=n=>{let{rootCls:l,cssVar:s}=n;const[,d]=(0,a.Ay)();return(0,r.RC)({path:[e],prefix:s.prefix,key:null==s?void 0:s.key,unitless:Object.assign(Object.assign({},a.Is),c),ignore:a.Xe,token:d,scope:l},(()=>{const n=x(e,d,t),r=C(e,d,n,{deprecatedTokens:null==o?void 0:o.deprecatedTokens});return Object.keys(n).forEach((e=>{r[i(e)]=r[e],delete r[e]})),r})),null};return t=>{const[,,,,o]=(0,a.Ay)();return[r=>s&&o?n.createElement(n.Fragment,null,n.createElement(d,{rootCls:t,cssVar:o,component:e}),r):r,null==o?void 0:o.key]}})(Array.isArray(e)?e[0]:e,o,i);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const[,o]=l(e,t),[n,r]=s(t);return[n,o,r]}}},80336:(e,t,o)=>{o.d(t,{Ay:()=>s,h1:()=>i});const n="undefined"!=typeof CSSINJS_STATISTIC;let r=!0;function i(){for(var e=arguments.length,t=new Array(e),o=0;o{Object.keys(e).forEach((t=>{Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),r=!0,i}const l={};function a(){}const s=e=>{let t,o=e,i=a;return n&&"undefined"!=typeof Proxy&&(t=new Set,o=new Proxy(e,{get:(e,o)=>(r&&t.add(o),e[o])}),i=(e,o)=>{var n;l[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(n=l[e])||void 0===n?void 0:n.component),o)}}),{token:o,keys:t,flush:i}}},62366:(e,t,o)=>{o.d(t,{A:()=>l});var n=o(64552),r=o(25905),i=o(365);const l=(e,t)=>{const[o,l]=(0,i.Ay)();return(0,n.IV)({theme:o,token:l,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce},(()=>[{[`.${e}`]:Object.assign(Object.assign({},(0,r.Nk)()),{[`.${e} .${e}-icon`]:{display:"block"}})}]))}},26211:(e,t,o)=>{o.d(t,{A:()=>T});var n=o(96540),r=o(46942),i=o.n(r),l=o(80427),a=o(12533),s=o(60275),c=o(23723),d=o(95201);const u={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},p={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},m=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function g(e){const{arrowWidth:t,autoAdjustOverflow:o,arrowPointAtCenter:n,offset:r,borderRadius:i,visibleFirst:l}=e,a=t/2,s={};return Object.keys(u).forEach((e=>{const c=n&&p[e]||u[e],g=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(s[e]=g,m.has(e)&&(g.autoArrow=!1),e){case"top":case"topLeft":case"topRight":g.offset[1]=-a-r;break;case"bottom":case"bottomLeft":case"bottomRight":g.offset[1]=a+r;break;case"left":case"leftTop":case"leftBottom":g.offset[0]=-a-r;break;case"right":case"rightTop":case"rightBottom":g.offset[0]=a+r}const b=(0,d.Ke)({contentRadius:i,limitVerticalRadius:!0});if(n)switch(e){case"topLeft":case"bottomLeft":g.offset[0]=-b.arrowOffsetHorizontal-a;break;case"topRight":case"bottomRight":g.offset[0]=b.arrowOffsetHorizontal+a;break;case"leftTop":case"rightTop":g.offset[1]=-b.arrowOffsetHorizontal-a;break;case"leftBottom":case"rightBottom":g.offset[1]=b.arrowOffsetHorizontal+a}g.overflow=function(e,t,o,n){if(!1===n)return{adjustX:!1,adjustY:!1};const r=n&&"object"==typeof n?n:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+o,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+o,i.shiftX=!0,i.adjustX=!0}const l=Object.assign(Object.assign({},i),r);return l.shiftX||(l.adjustX=!0),l.shiftY||(l.adjustY=!0),l}(e,b,t,o),l&&(g.htmlRegion="visibleFirst")})),s}var b=o(40682),f=o(18877),h=o(72616),$=o(62279),v=o(76327),y=o(365),x=o(64552),C=o(25905),S=o(99077),O=o(20791),w=o(13950);function E(e,t){return w.s.reduce(((o,n)=>{const r=e[`${n}1`],i=e[`${n}3`],l=e[`${n}6`],a=e[`${n}7`];return Object.assign(Object.assign({},o),t(n,{lightColor:r,lightBorderColor:i,darkColor:l,textColor:a}))}),{})}var j=o(80336),I=o(20106);const k=e=>{const{componentCls:t,tooltipMaxWidth:o,tooltipColor:n,tooltipBg:r,tooltipBorderRadius:i,zIndexPopup:l,controlHeight:a,boxShadowSecondary:s,paddingSM:c,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,C.dF)(e)),{position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:o,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":r,[`${t}-inner`]:{minWidth:a,minHeight:a,padding:`${(0,x.zA)(e.calc(c).div(2).equal())} ${(0,x.zA)(u)}`,color:n,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:r,borderRadius:i,boxShadow:s,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,d.Zs)}},[`${t}-content`]:{position:"relative"}}),E(e,((e,o)=>{let{darkColor:n}=o;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:n},[`${t}-arrow`]:{"--antd-arrow-background-color":n}}}}))),{"&-rtl":{direction:"rtl"}})},(0,d.Ay)(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},z=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},(0,d.Ke)({contentRadius:e.borderRadius,limitVerticalRadius:!0})),(0,O.n)((0,j.h1)(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),A=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return(0,I.OF)("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:o,colorBgSpotlight:n}=e,r=(0,j.h1)(e,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:t,tooltipBg:n});return[k(r),(0,S.aB)(e,"zoom-big-fast")]}),z,{resetStyle:!1,injectStyle:t})(e)};var B=o(60436);const P=w.s.map((e=>`${e}-inverse`));function H(e,t){const o=function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?w.s.includes(e):[].concat((0,B.A)(P),(0,B.A)(w.s)).includes(e)}(t),n=i()({[`${e}-${t}`]:t&&o}),r={},l={};return t&&!o&&(r.background=t,l["--antd-arrow-background-color"]=t),{className:n,overlayStyle:r,arrowStyle:l}}const M=e=>{const{prefixCls:t,className:o,placement:r="top",title:a,color:s,overlayInnerStyle:c}=e,{getPrefixCls:d}=n.useContext($.QO),u=d("tooltip",t),[p,m,g]=A(u),b=H(u,s),f=b.arrowStyle,h=Object.assign(Object.assign({},c),b.overlayStyle),v=i()(m,g,u,`${u}-pure`,`${u}-placement-${r}`,o,b.className);return p(n.createElement("div",{className:v,style:f},n.createElement("div",{className:`${u}-arrow`}),n.createElement(l.z,Object.assign({},e,{className:m,prefixCls:u,overlayInnerStyle:h}),a)))};var R=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{var o,r;const{prefixCls:d,openClassName:u,getTooltipContainer:p,overlayClassName:m,color:x,overlayInnerStyle:C,children:S,afterOpenChange:O,afterVisibleChange:w,destroyTooltipOnHide:E,arrow:j=!0,title:I,overlay:k,builtinPlacements:z,arrowPointAtCenter:B=!1,autoAdjustOverflow:P=!0}=e,M=!!j,[,N]=(0,y.Ay)(),{getPopupContainer:T,getPrefixCls:L,direction:D}=n.useContext($.QO),W=(0,f.rJ)("Tooltip"),F=n.useRef(null),X=()=>{var e;null===(e=F.current)||void 0===e||e.forceAlign()};n.useImperativeHandle(t,(()=>({forceAlign:X,forcePopupAlign:()=>{W.deprecated(!1,"forcePopupAlign","forceAlign"),X()}})));const[q,G]=(0,a.A)(!1,{value:null!==(o=e.open)&&void 0!==o?o:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),_=!I&&!k&&0!==I,V=n.useMemo((()=>{var e,t;let o=B;return"object"==typeof j&&(o=null!==(t=null!==(e=j.pointAtCenter)&&void 0!==e?e:j.arrowPointAtCenter)&&void 0!==t?t:B),z||g({arrowPointAtCenter:o,autoAdjustOverflow:P,arrowWidth:M?N.sizePopupArrow:0,borderRadius:N.borderRadius,offset:N.marginXXS,visibleFirst:!0})}),[B,j,z,N]),Q=n.useMemo((()=>0===I?I:k||I||""),[k,I]),U=n.createElement(v.K6,null,"function"==typeof Q?Q():Q),{getPopupContainer:K,placement:Y="top",mouseEnterDelay:Z=.1,mouseLeaveDelay:J=.1,overlayStyle:ee,rootClassName:te}=e,oe=R(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),ne=L("tooltip",d),re=L(),ie=e["data-popover-inject"];let le=q;"open"in e||"visible"in e||!_||(le=!1);const ae=n.isValidElement(S)&&!(0,b.zv)(S)?S:n.createElement("span",null,S),se=ae.props,ce=se.className&&"string"!=typeof se.className?se.className:i()(se.className,u||`${ne}-open`),[de,ue,pe]=A(ne,!ie),me=H(ne,x),ge=me.arrowStyle,be=Object.assign(Object.assign({},C),me.overlayStyle),fe=i()(m,{[`${ne}-rtl`]:"rtl"===D},me.className,te,ue,pe),[he,$e]=(0,s.YK)("Tooltip",oe.zIndex),ve=n.createElement(l.A,Object.assign({},oe,{zIndex:he,showArrow:M,placement:Y,mouseEnterDelay:Z,mouseLeaveDelay:J,prefixCls:ne,overlayClassName:fe,overlayStyle:Object.assign(Object.assign({},ge),ee),getTooltipContainer:K||p||T,ref:F,builtinPlacements:V,overlay:U,visible:le,onVisibleChange:t=>{var o,n;G(!_&&t),_||(null===(o=e.onOpenChange)||void 0===o||o.call(e,t),null===(n=e.onVisibleChange)||void 0===n||n.call(e,t))},afterVisibleChange:null!=O?O:w,overlayInnerStyle:be,arrowContent:n.createElement("span",{className:`${ne}-arrow-content`}),motion:{motionName:(0,c.b)(re,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!E}),le?(0,b.Ob)(ae,{className:ce}):ae);return de(n.createElement(h.A.Provider,{value:$e},ve))}));N._InternalPanelDoNotUseOrYouWillBeFired=M;const T=N},36802:(e,t,o)=>{o.d(t,{A:()=>ae});var n=o(96540),r=o(60436),i=o(40961),l=o(46942),a=o.n(l),s=o(40778),c=o(12533),d=o(62279),u=o(98119),p=o(19155),m=o(30696),g=o(25905),b=o(60977),f=o(20106),h=o(80336),$=o(64552);const v=e=>{const{componentCls:t,iconCls:o}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${(0,$.zA)(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${(0,$.zA)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`\n &:not(${t}-disabled):hover,\n &-hover:not(${t}-disabled)\n `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[o]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${(0,$.zA)(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${o},\n p${t}-text,\n p${t}-hint\n `]:{color:e.colorTextDisabled}}}}}},y=e=>{const{componentCls:t,antCls:o,iconCls:n,fontSize:r,lineHeight:i,calc:l}=e,a=`${t}-list-item`,s=`${a}-actions`,c=`${a}-action`,d=e.fontHeightSM;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},(0,g.t6)()),{lineHeight:e.lineHeight,[a]:{position:"relative",height:l(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${a}-name`]:Object.assign(Object.assign({},g.L9),{padding:`0 ${(0,$.zA)(e.paddingXS)}`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[c]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`\n ${c}:focus-visible,\n &.picture ${c}\n `]:{opacity:1},[`${c}${o}-btn`]:{height:d,border:0,lineHeight:1}},[`${t}-icon ${n}`]:{color:e.colorTextDescription,fontSize:r},[`${a}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:l(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${c}`]:{opacity:1},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${n}`]:{color:e.colorError},[s]:{[`${n}, ${n}:hover`]:{color:e.colorError},[c]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}};var x=o(28680);const C=e=>{const{componentCls:t}=e,o=new $.Mo("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),n=new $.Mo("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${r}-appear, ${r}-enter, ${r}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${r}-appear, ${r}-enter`]:{animationName:o},[`${r}-leave`]:{animationName:n}}},{[`${t}-wrapper`]:(0,x.p9)(e)},o,n]};var S=o(20439);const O=e=>{const{componentCls:t,iconCls:o,uploadThumbnailSize:n,uploadProgressOffset:r,calc:i}=e,l=`${t}-list`,a=`${l}-item`;return{[`${t}-wrapper`]:{[`\n ${l}${l}-picture,\n ${l}${l}-picture-card,\n ${l}${l}-picture-circle\n `]:{[a]:{position:"relative",height:i(n).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${(0,$.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${a}-thumbnail`]:Object.assign(Object.assign({},g.L9),{width:n,height:n,lineHeight:(0,$.zA)(i(n).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[o]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${a}-progress`]:{bottom:r,width:`calc(100% - ${(0,$.zA)(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(n).add(e.paddingXS).equal()}},[`${a}-error`]:{borderColor:e.colorError,[`${a}-thumbnail ${o}`]:{[`svg path[fill='${S.z1[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${S.z1.primary}']`]:{fill:e.colorError}}},[`${a}-uploading`]:{borderStyle:"dashed",[`${a}-name`]:{marginBottom:r}}},[`${l}${l}-picture-circle ${a}`]:{[`&, &::before, ${a}-thumbnail`]:{borderRadius:"50%"}}}}},w=e=>{const{componentCls:t,iconCls:o,fontSizeLG:n,colorTextLightSolid:r,calc:i}=e,l=`${t}-list`,a=`${l}-item`,s=e.uploadPicCardSize;return{[`\n ${t}-wrapper${t}-picture-card-wrapper,\n ${t}-wrapper${t}-picture-circle-wrapper\n `]:Object.assign(Object.assign({},(0,g.t6)()),{display:"block",[`${t}${t}-select`]:{width:s,height:s,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${(0,$.zA)(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${l}${l}-picture-card, ${l}${l}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${l}-item-container`]:{display:"inline-block",width:s,height:s,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[a]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,$.zA)(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,$.zA)(i(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${a}:hover`]:{[`&::before, ${a}-actions`]:{opacity:1}},[`${a}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`\n ${o}-eye,\n ${o}-download,\n ${o}-delete\n `]:{zIndex:10,width:n,margin:`0 ${(0,$.zA)(e.marginXXS)}`,fontSize:n,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:r,"&:hover":{color:r},svg:{verticalAlign:"baseline"}}},[`${a}-thumbnail, ${a}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${a}-name`]:{display:"none",textAlign:"center"},[`${a}-file + ${a}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${(0,$.zA)(i(e.paddingXS).mul(2).equal())})`},[`${a}-uploading`]:{[`&${a}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${o}-eye, ${o}-download, ${o}-delete`]:{display:"none"}},[`${a}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${(0,$.zA)(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},E=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},j=e=>{const{componentCls:t,colorTextDisabled:o}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},(0,g.dF)(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:o,cursor:"not-allowed"}})}},I=(0,f.OF)("Upload",(e=>{const{fontSizeHeading3:t,fontHeight:o,lineWidth:n,controlHeightLG:r,calc:i}=e,l=(0,h.h1)(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(o).div(2)).add(n).equal(),uploadPicCardSize:i(r).mul(2.55).equal()});return[j(l),v(l),O(l),w(l),y(l),C(l),E(l),(0,b.A)(l)]}),(e=>({actionsColor:e.colorTextDescription})));var k=o(36436),z=o(93567),A=o(54466),B=o(90628),P=o(57557);var H=o(23723),M=o(40682),R=o(68777);function N(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function T(e,t){const o=(0,r.A)(t),n=o.findIndex((t=>{let{uid:o}=t;return o===e.uid}));return-1===n?o.push(e):o[n]=e,o}function L(e,t){const o=void 0!==e.uid?"uid":"name";return t.filter((t=>t[o]===e[o]))[0]}const D=e=>0===e.indexOf("image/"),W=e=>{if(e.type&&!e.thumbUrl)return D(e.type);const t=e.thumbUrl||e.url||"",o=function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("/"),t=e[e.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(t)||[""])[0]}(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(o))||!/^data:/.test(t)&&!o},F=200;function X(e){return new Promise((t=>{if(!e.type||!D(e.type))return void t("");const o=document.createElement("canvas");o.width=F,o.height=F,o.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(o);const n=o.getContext("2d"),r=new Image;if(r.onload=()=>{const{width:e,height:i}=r;let l=F,a=F,s=0,c=0;e>i?(a=i*(F/e),c=-(a-l)/2):(l=e*(F/i),s=-(l-a)/2),n.drawImage(r,s,c,l,a);const d=o.toDataURL();document.body.removeChild(o),window.URL.revokeObjectURL(r.src),t(d)},r.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const t=new FileReader;t.onload=()=>{t.result&&"string"==typeof t.result&&(r.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const o=new FileReader;o.onload=()=>{o.result&&t(o.result)},o.readAsDataURL(e)}else r.src=window.URL.createObjectURL(e)}))}var q=o(93598),G=o(40756),_=o(30234),V=o(6754),Q=o(26211);const U=n.forwardRef(((e,t)=>{let{prefixCls:o,className:r,style:i,locale:l,listType:s,file:c,items:u,progress:p,iconRender:m,actionIconRender:g,itemRender:b,isImgUrl:f,showPreviewIcon:h,showRemoveIcon:$,showDownloadIcon:v,previewIcon:y,removeIcon:x,downloadIcon:C,onPreview:S,onDownload:O,onClose:w}=e;var E,j;const{status:I}=c,[k,z]=n.useState(I);n.useEffect((()=>{"removed"!==I&&z(I)}),[I]);const[A,B]=n.useState(!1);n.useEffect((()=>{const e=setTimeout((()=>{B(!0)}),300);return()=>{clearTimeout(e)}}),[]);const H=m(c);let M=n.createElement("div",{className:`${o}-icon`},H);if("picture"===s||"picture-card"===s||"picture-circle"===s)if("uploading"===k||!c.thumbUrl&&!c.url){const e=a()(`${o}-list-item-thumbnail`,{[`${o}-list-item-file`]:"uploading"!==k});M=n.createElement("div",{className:e},H)}else{const e=(null==f?void 0:f(c))?n.createElement("img",{src:c.thumbUrl||c.url,alt:c.name,className:`${o}-list-item-image`,crossOrigin:c.crossOrigin}):H,t=a()(`${o}-list-item-thumbnail`,{[`${o}-list-item-file`]:f&&!f(c)});M=n.createElement("a",{className:t,onClick:e=>S(c,e),href:c.url||c.thumbUrl,target:"_blank",rel:"noopener noreferrer"},e)}const R=a()(`${o}-list-item`,`${o}-list-item-${k}`),N="string"==typeof c.linkProps?JSON.parse(c.linkProps):c.linkProps,T=$?g(("function"==typeof x?x(c):x)||n.createElement(q.A,null),(()=>w(c)),o,l.removeFile,!0):null,L=v&&"done"===k?g(("function"==typeof C?C(c):C)||n.createElement(G.A,null),(()=>O(c)),o,l.downloadFile):null,D="picture-card"!==s&&"picture-circle"!==s&&n.createElement("span",{key:"download-delete",className:a()(`${o}-list-item-actions`,{picture:"picture"===s})},L,T),W=a()(`${o}-list-item-name`),F=c.url?[n.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:W,title:c.name},N,{href:c.url,onClick:e=>S(c,e)}),c.name),D]:[n.createElement("span",{key:"view",className:W,onClick:e=>S(c,e),title:c.name},c.name),D],X=h&&(c.url||c.thumbUrl)?n.createElement("a",{href:c.url||c.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:e=>S(c,e),title:l.previewFile},"function"==typeof y?y(c):y||n.createElement(_.A,null)):null,U=("picture-card"===s||"picture-circle"===s)&&"uploading"!==k&&n.createElement("span",{className:`${o}-list-item-actions`},X,"done"===k&&L,T),{getPrefixCls:K}=n.useContext(d.QO),Y=K(),Z=n.createElement("div",{className:R},M,F,U,A&&n.createElement(P.Ay,{motionName:`${Y}-fade`,visible:"uploading"===k,motionDeadline:2e3},(e=>{let{className:t}=e;const r="percent"in c?n.createElement(V.A,Object.assign({},p,{type:"line",percent:c.percent,"aria-label":c["aria-label"],"aria-labelledby":c["aria-labelledby"]})):null;return n.createElement("div",{className:a()(`${o}-list-item-progress`,t)},r)}))),J=c.response&&"string"==typeof c.response?c.response:(null===(E=c.error)||void 0===E?void 0:E.statusText)||(null===(j=c.error)||void 0===j?void 0:j.message)||l.uploadError,ee="error"===k?n.createElement(Q.A,{title:J,getPopupContainer:e=>e.parentNode},Z):Z;return n.createElement("div",{className:a()(`${o}-list-item-container`,r),style:i,ref:t},b?b(ee,c,u,{download:O.bind(null,c),preview:S.bind(null,c),remove:w.bind(null,c)}):ee)})),K=U,Y=(e,t)=>{const{listType:o="text",previewFile:i=X,onPreview:l,onDownload:s,onRemove:c,locale:u,iconRender:p,isImageUrl:m=W,prefixCls:g,items:b=[],showPreviewIcon:f=!0,showRemoveIcon:h=!0,showDownloadIcon:$=!1,removeIcon:v,previewIcon:y,downloadIcon:x,progress:C={size:[-1,2],showInfo:!1},appendAction:S,appendActionVisible:O=!0,itemRender:w,disabled:E}=e,j=function(){const[,e]=n.useReducer((e=>e+1),0);return e}(),[I,N]=n.useState(!1);n.useEffect((()=>{"picture"!==o&&"picture-card"!==o&&"picture-circle"!==o||(b||[]).forEach((e=>{"undefined"!=typeof document&&"undefined"!=typeof window&&window.FileReader&&window.File&&(e.originFileObj instanceof File||e.originFileObj)&&void 0===e.thumbUrl&&i&&i(e.originFileObj).then((t=>{e.thumbUrl=t||"",j()}))}))}),[o,b,i]),n.useEffect((()=>{N(!0)}),[]);const T=(e,t)=>{if(l)return null==t||t.preventDefault(),l(e)},L=e=>{"function"==typeof s?s(e):e.url&&window.open(e.url)},D=e=>{null==c||c(e)},F=e=>{if(p)return p(e,o);const t="uploading"===e.status,r=m&&m(e)?n.createElement(B.A,null):n.createElement(k.A,null);let i=t?n.createElement(z.A,null):n.createElement(A.A,null);return"picture"===o?i=t?n.createElement(z.A,null):r:"picture-card"!==o&&"picture-circle"!==o||(i=t?u.uploading:r),i},q=(e,t,o,r,i)=>{const l={type:"text",size:"small",title:r,onClick:o=>{var r,i;t(),n.isValidElement(e)&&(null===(i=(r=e.props).onClick)||void 0===i||i.call(r,o))},className:`${o}-list-item-action`};if(i&&(l.disabled=E),n.isValidElement(e)){const t=(0,M.Ob)(e,Object.assign(Object.assign({},e.props),{onClick:()=>{}}));return n.createElement(R.Ay,Object.assign({},l,{icon:t}))}return n.createElement(R.Ay,Object.assign({},l),n.createElement("span",null,e))};n.useImperativeHandle(t,(()=>({handlePreview:T,handleDownload:L})));const{getPrefixCls:G}=n.useContext(d.QO),_=G("upload",g),V=G(),Q=a()(`${_}-list`,`${_}-list-${o}`),U=(0,r.A)(b.map((e=>({key:e.uid,file:e}))));let Y={motionDeadline:2e3,motionName:`${_}-${"picture-card"===o||"picture-circle"===o?"animate-inline":"animate"}`,keys:U,motionAppear:I};const Z=n.useMemo((()=>{const e=Object.assign({},(0,H.A)(V));return delete e.onAppearEnd,delete e.onEnterEnd,delete e.onLeaveEnd,e}),[V]);return"picture-card"!==o&&"picture-circle"!==o&&(Y=Object.assign(Object.assign({},Z),Y)),n.createElement("div",{className:Q},n.createElement(P.aF,Object.assign({},Y,{component:!1}),(e=>{let{key:t,file:r,className:i,style:l}=e;return n.createElement(K,{key:t,locale:u,prefixCls:_,className:i,style:l,file:r,items:b,progress:C,listType:o,isImgUrl:m,showPreviewIcon:f,showRemoveIcon:h,showDownloadIcon:$,removeIcon:v,previewIcon:y,downloadIcon:x,iconRender:F,actionIconRender:q,itemRender:w,onPreview:T,onDownload:L,onClose:D})})),S&&n.createElement(P.Ay,Object.assign({},Y,{visible:O,forceRender:!0}),(e=>{let{className:t,style:o}=e;return(0,M.Ob)(S,(e=>({className:a()(e.className,t),style:Object.assign(Object.assign(Object.assign({},o),{pointerEvents:t?"none":void 0}),e.style)})))})))};const Z=n.forwardRef(Y);var J=function(e,t,o,n){return new(o||(o=Promise))((function(r,i){function l(e){try{s(n.next(e))}catch(e){i(e)}}function a(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(l,a)}s((n=n.apply(e,t||[])).next())}))};const ee=`__LIST_IGNORE_${Date.now()}__`,te=(e,t)=>{const{fileList:o,defaultFileList:l,onRemove:g,showUploadList:b=!0,listType:f="text",onPreview:h,onDownload:$,onChange:v,onDrop:y,previewFile:x,disabled:C,locale:S,iconRender:O,isImageUrl:w,progress:E,prefixCls:j,className:k,type:z="select",children:A,style:B,itemRender:P,maxCount:H,data:M={},multiple:R=!1,hasControlInside:D=!0,action:W="",accept:F="",supportServerRender:X=!0,rootClassName:q}=e,G=n.useContext(u.A),_=null!=C?C:G,[V,Q]=(0,c.A)(l||[],{value:o,postState:e=>null!=e?e:[]}),[U,K]=n.useState("drop"),Y=n.useRef(null);n.useMemo((()=>{const e=Date.now();(o||[]).forEach(((t,o)=>{t.uid||Object.isFrozen(t)||(t.uid=`__AUTO__${e}_${o}__`)}))}),[o]);const te=(e,t,o)=>{let n=(0,r.A)(t),l=!1;1===H?n=n.slice(-1):H&&(l=n.length>H,n=n.slice(0,H)),(0,i.flushSync)((()=>{Q(n)}));const a={file:e,fileList:n};o&&(a.event=o),l&&"removed"!==e.status&&!n.some((t=>t.uid===e.uid))||(0,i.flushSync)((()=>{null==v||v(a)}))},oe=e=>{const t=e.filter((e=>!e.file[ee]));if(!t.length)return;const o=t.map((e=>N(e.file)));let n=(0,r.A)(V);o.forEach((e=>{n=T(e,n)})),o.forEach(((e,o)=>{let r=e;if(t[o].parsedFile)e.status="uploading";else{const{originFileObj:t}=e;let o;try{o=new File([t],t.name,{type:t.type})}catch(e){o=new Blob([t],{type:t.type}),o.name=t.name,o.lastModifiedDate=new Date,o.lastModified=(new Date).getTime()}o.uid=e.uid,r=o}te(r,n)}))},ne=(e,t,o)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}if(!L(t,V))return;const n=N(t);n.status="done",n.percent=100,n.response=e,n.xhr=o;const r=T(n,V);te(n,r)},re=(e,t)=>{if(!L(t,V))return;const o=N(t);o.status="uploading",o.percent=e.percent;const n=T(o,V);te(o,n,e)},ie=(e,t,o)=>{if(!L(o,V))return;const n=N(o);n.error=e,n.response=t,n.status="error";const r=T(n,V);te(n,r)},le=e=>{let t;Promise.resolve("function"==typeof g?g(e):g).then((o=>{var n;if(!1===o)return;const r=function(e,t){const o=void 0!==e.uid?"uid":"name",n=t.filter((t=>t[o]!==e[o]));return n.length===t.length?null:n}(e,V);r&&(t=Object.assign(Object.assign({},e),{status:"removed"}),null==V||V.forEach((e=>{const o=void 0!==t.uid?"uid":"name";e[o]!==t[o]||Object.isFrozen(e)||(e.status="removed")})),null===(n=Y.current)||void 0===n||n.abort(t),te(t,r))}))},ae=e=>{K(e.type),"drop"===e.type&&(null==y||y(e))};n.useImperativeHandle(t,(()=>({onBatchStart:oe,onSuccess:ne,onProgress:re,onError:ie,fileList:V,upload:Y.current})));const{getPrefixCls:se,direction:ce,upload:de}=n.useContext(d.QO),ue=se("upload",j),pe=Object.assign(Object.assign({onBatchStart:oe,onError:ie,onProgress:re,onSuccess:ne},e),{data:M,multiple:R,action:W,accept:F,supportServerRender:X,prefixCls:ue,disabled:_,beforeUpload:(t,o)=>J(void 0,void 0,void 0,(function*(){const{beforeUpload:n,transformFile:r}=e;let i=t;if(n){const e=yield n(t,o);if(!1===e)return!1;if(delete t[ee],e===ee)return Object.defineProperty(t,ee,{value:!0,configurable:!0}),!1;"object"==typeof e&&e&&(i=e)}return r&&(i=yield r(i)),i})),onChange:void 0,hasControlInside:D});delete pe.className,delete pe.style,A&&!_||delete pe.id;const me=`${ue}-wrapper`,[ge,be,fe]=I(ue,me),[he]=(0,p.A)("Upload",m.A.Upload),{showRemoveIcon:$e,showPreviewIcon:ve,showDownloadIcon:ye,removeIcon:xe,previewIcon:Ce,downloadIcon:Se}="boolean"==typeof b?{}:b,Oe=void 0===$e?!_:!!$e,we=(e,t)=>b?n.createElement(Z,{prefixCls:ue,listType:f,items:V,previewFile:x,onPreview:h,onDownload:$,onRemove:le,showRemoveIcon:Oe,showPreviewIcon:ve,showDownloadIcon:ye,removeIcon:xe,previewIcon:Ce,downloadIcon:Se,iconRender:O,locale:Object.assign(Object.assign({},he),S),isImageUrl:w,progress:E,appendAction:e,appendActionVisible:t,itemRender:P,disabled:_}):e,Ee=a()(me,k,q,be,fe,null==de?void 0:de.className,{[`${ue}-rtl`]:"rtl"===ce,[`${ue}-picture-card-wrapper`]:"picture-card"===f,[`${ue}-picture-circle-wrapper`]:"picture-circle"===f}),je=Object.assign(Object.assign({},null==de?void 0:de.style),B);if("drag"===z){const e=a()(be,ue,`${ue}-drag`,{[`${ue}-drag-uploading`]:V.some((e=>"uploading"===e.status)),[`${ue}-drag-hover`]:"dragover"===U,[`${ue}-disabled`]:_,[`${ue}-rtl`]:"rtl"===ce});return ge(n.createElement("span",{className:Ee},n.createElement("div",{className:e,style:je,onDrop:ae,onDragOver:ae,onDragLeave:ae},n.createElement(s.A,Object.assign({},pe,{ref:Y,className:`${ue}-btn`}),n.createElement("div",{className:`${ue}-drag-container`},A))),we()))}const Ie=a()(ue,`${ue}-select`,{[`${ue}-disabled`]:_}),ke=n.createElement("div",{className:Ie,style:A?void 0:{display:"none"}},n.createElement(s.A,Object.assign({},pe,{ref:Y})));return ge("picture-card"===f||"picture-circle"===f?n.createElement("span",{className:Ee},we(ke,!!A)):n.createElement("span",{className:Ee},ke,we()))};const oe=n.forwardRef(te);var ne=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{var{style:o,height:r,hasControlInside:i=!1}=e,l=ne(e,["style","height","hasControlInside"]);return n.createElement(oe,Object.assign({ref:t,hasControlInside:i},l,{type:"drag",style:Object.assign(Object.assign({},o),{height:r})}))}));const ie=re,le=oe;le.Dragger=ie,le.LIST_IGNORE=ee;const ae=le}}]); \ No newline at end of file +"use strict";(self.webpackChunkvisualization_collection=self.webpackChunkvisualization_collection||[]).push([[874],{53425:(e,t,o)=>{o.d(t,{A:()=>s,U:()=>a});var n=o(96540),r=o(12533),i=o(78407),l=o(62279);function a(e){return t=>n.createElement(i.Ay,{theme:{token:{motion:!1,zIndexPopupBase:0}}},n.createElement(e,Object.assign({},t)))}const s=(e,t,o,i)=>a((a=>{const{prefixCls:s,style:c}=a,d=n.useRef(null),[u,p]=n.useState(0),[m,g]=n.useState(0),[b,f]=(0,r.A)(!1,{value:a.open}),{getPrefixCls:h}=n.useContext(l.QO),$=h(t||"select",s);n.useEffect((()=>{if(f(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;p(t.offsetHeight+8),g(t.offsetWidth)})),t=setInterval((()=>{var n;const r=o?`.${o($)}`:`.${$}-dropdown`,i=null===(n=d.current)||void 0===n?void 0:n.querySelector(r);i&&(clearInterval(t),e.observe(i))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let v=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},c),{margin:0}),open:b,visible:b,getPopupContainer:()=>d.current});i&&(v=i(v));const y={paddingBottom:u,position:"relative",minWidth:m};return n.createElement("div",{ref:d,style:y},n.createElement(e,Object.assign({},v)))}))},60275:(e,t,o)=>{o.d(t,{YK:()=>d,jH:()=>a});var n=o(96540),r=o(365),i=o(72616);const l=100,a=1e3,s={Modal:l,Drawer:l,Popover:l,Popconfirm:l,Tooltip:l,Tour:l},c={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function d(e,t){const[,o]=(0,r.Ay)(),l=n.useContext(i.A),d=e in s;if(void 0!==t)return[t,t];let u=null!=l?l:0;return d?(u+=(l?0:o.zIndexPopupBase)+s[e],u=Math.min(u,o.zIndexPopupBase+a)):u+=c[e],[void 0===l?t:u,u]}},23723:(e,t,o)=>{o.d(t,{A:()=>s,b:()=>a});const n=()=>({height:0,opacity:0}),r=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},i=e=>({height:e?e.offsetHeight:0}),l=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,a=(e,t,o)=>void 0!==o?o:`${e}-${t}`,s=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant"}-motion-collapse`,onAppearStart:n,onEnterStart:n,onAppearActive:r,onEnterActive:r,onLeaveStart:i,onLeaveActive:n,onAppearEnd:l,onEnterEnd:l,onLeaveEnd:l,motionDeadline:500}}},40682:(e,t,o)=>{o.d(t,{Ob:()=>l,zv:()=>r});var n=o(96540);function r(e){return e&&n.isValidElement(e)&&e.type===n.Fragment}const i=(e,t,o)=>n.isValidElement(e)?n.cloneElement(e,"function"==typeof o?o(e.props||{}):o):t;function l(e,t){return i(e,e,t)}},58182:(e,t,o)=>{o.d(t,{L:()=>i,v:()=>l});var n=o(46942),r=o.n(n);function i(e,t,o){return r()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:o})}const l=(e,t)=>t||e},18877:(e,t,o)=>{o.d(t,{_n:()=>i,rJ:()=>l});var n=o(96540);o(68210);function r(){}const i=n.createContext({}),l=()=>{const e=()=>{};return e.deprecated=r,e}},57:(e,t,o)=>{o.d(t,{A:()=>O});var n=o(96540),r=o(46942),i=o.n(r),l=o(42467),a=o(8719),s=o(62279),c=o(40682),d=o(20106);const u=e=>{const{componentCls:t,colorPrimary:o}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${o})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},p=(0,d.Ay)("Wave",(e=>[u(e)]));var m=o(81470),g=o(25371),b=o(365),f=o(4424),h=o(57557),$=o(14832);function v(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3]&&t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function y(e){return Number.isNaN(e)?0:e}const x=e=>{const{className:t,target:o,component:r}=e,l=n.useRef(null),[a,s]=n.useState(null),[c,d]=n.useState([]),[u,p]=n.useState(0),[m,b]=n.useState(0),[x,C]=n.useState(0),[S,O]=n.useState(0),[w,E]=n.useState(!1),j={left:u,top:m,width:x,height:S,borderRadius:c.map((e=>`${e}px`)).join(" ")};function I(){const e=getComputedStyle(o);s(function(e){const{borderTopColor:t,borderColor:o,backgroundColor:n}=getComputedStyle(e);return v(t)?t:v(o)?o:v(n)?n:null}(o));const t="static"===e.position,{borderLeftWidth:n,borderTopWidth:r}=e;p(t?o.offsetLeft:y(-parseFloat(n))),b(t?o.offsetTop:y(-parseFloat(r))),C(o.offsetWidth),O(o.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:l,borderBottomLeftRadius:a,borderBottomRightRadius:c}=e;d([i,l,c,a].map((e=>y(parseFloat(e)))))}if(a&&(j["--wave-color"]=a),n.useEffect((()=>{if(o){const e=(0,g.A)((()=>{I(),E(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(I),t.observe(o)),()=>{g.A.cancel(e),null==t||t.disconnect()}}}),[]),!w)return null;const k=("Checkbox"===r||"Radio"===r)&&(null==o?void 0:o.classList.contains(f.D));return n.createElement(h.Ay,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var o;if(t.deadline||"opacity"===t.propertyName){const e=null===(o=l.current)||void 0===o?void 0:o.parentElement;(0,$.v)(e).then((()=>{null==e||e.remove()}))}return!1}},(e=>{let{className:o}=e;return n.createElement("div",{ref:l,className:i()(t,{"wave-quick":k},o),style:j})}))},C=(e,t)=>{var o;const{component:r}=t;if("Checkbox"===r&&!(null===(o=e.querySelector("input"))||void 0===o?void 0:o.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null==e||e.insertBefore(i,null==e?void 0:e.firstChild),(0,$.X)(n.createElement(x,Object.assign({},t,{target:e})),i)},S=(e,t,o)=>{const{wave:r}=n.useContext(s.QO),[,i,l]=(0,b.Ay)(),a=(0,m._q)((n=>{const a=e.current;if((null==r?void 0:r.disabled)||!a)return;const s=a.querySelector(`.${f.D}`)||a,{showEffect:c}=r||{};(c||C)(s,{className:t,token:i,component:o,event:n,hashId:l})})),c=n.useRef();return e=>{g.A.cancel(c.current),c.current=(0,g.A)((()=>{a(e)}))}};const O=e=>{const{children:t,disabled:o,component:r}=e,{getPrefixCls:d}=(0,n.useContext)(s.QO),u=(0,n.useRef)(null),m=d("wave"),[,g]=p(m),b=S(u,i()(m,g),r);if(n.useEffect((()=>{const e=u.current;if(!e||1!==e.nodeType||o)return;const t=t=>{!(0,l.A)(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||b(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[o]),!n.isValidElement(t))return null!=t?t:null;const f=(0,a.f3)(t)?(0,a.K4)(t.ref,u):u;return(0,c.Ob)(t,{ref:f})}},4424:(e,t,o)=>{o.d(t,{D:()=>n});const n="ant-wave-target"},72616:(e,t,o)=>{o.d(t,{A:()=>n});const n=o(96540).createContext(void 0)},39449:(e,t,o)=>{o.d(t,{Ap:()=>l,DU:()=>a,Ve:()=>c,uR:()=>d});var n=o(96540),r=o(40682);const i=/^[\u4e00-\u9fa5]{2}$/,l=i.test.bind(i);function a(e){return"danger"===e?{danger:!0}:{type:e}}function s(e){return"string"==typeof e}function c(e){return"text"===e||"link"===e}function d(e,t){let o=!1;const i=[];return n.Children.forEach(e,(e=>{const t=typeof e,n="string"===t||"number"===t;if(o&&n){const t=i.length-1,o=i[t];i[t]=`${o}${e}`}else i.push(e);o=n})),n.Children.map(i,(e=>function(e,t){if(null==e)return;const o=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&s(e.type)&&l(e.props.children)?(0,r.Ob)(e,{children:e.props.children.split("").join(o)}):s(e)?l(e)?n.createElement("span",null,e.split("").join(o)):n.createElement("span",null,e):(0,r.zv)(e)?n.createElement("span",null,e):e}(e,t)))}},68777:(e,t,o)=>{o.d(t,{Ay:()=>ce});var n=o(96540),r=o(46942),i=o.n(r),l=o(19853),a=o(8719),s=o(57),c=o(62279),d=o(98119),u=o(829),p=o(76327),m=o(365),g=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:t,direction:o}=n.useContext(c.QO),{prefixCls:r,size:l,className:a}=e,s=g(e,["prefixCls","size","className"]),d=t("btn-group",r),[,,u]=(0,m.Ay)();let p="";switch(l){case"large":p="lg";break;case"small":p="sm"}const f=i()(d,{[`${d}-${p}`]:p,[`${d}-rtl`]:"rtl"===o},a,u);return n.createElement(b.Provider,{value:l},n.createElement("div",Object.assign({},s,{className:f})))};var h=o(39449);const $=(0,n.forwardRef)(((e,t)=>{const{className:o,style:r,children:l,prefixCls:a}=e,s=i()(`${a}-icon`,o);return n.createElement("span",{ref:t,className:s,style:r},l)})),v=$;var y=o(93567),x=o(57557);const C=(0,n.forwardRef)(((e,t)=>{let{prefixCls:o,className:r,style:l,iconClassName:a}=e;const s=i()(`${o}-loading-icon`,r);return n.createElement(v,{prefixCls:o,className:s,style:l,ref:t},n.createElement(y.A,{className:a}))})),S=()=>({width:0,opacity:0,transform:"scale(0)"}),O=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),w=e=>{const{prefixCls:t,loading:o,existIcon:r,className:i,style:l}=e,a=!!o;return r?n.createElement(C,{prefixCls:t,className:i,style:l}):n.createElement(x.Ay,{visible:a,motionName:`${t}-loading-icon-motion`,motionLeave:a,removeOnLeave:!0,onAppearStart:S,onAppearActive:O,onEnterStart:S,onEnterActive:O,onLeaveStart:O,onLeaveActive:S},((e,o)=>{let{className:r,style:a}=e;return n.createElement(C,{prefixCls:t,className:i,style:Object.assign(Object.assign({},l),a),ref:o,iconClassName:r})}))};var E=o(64552),j=o(25905),I=o(80336),k=o(20106);const A=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),z=e=>{const{componentCls:t,fontSize:o,lineWidth:n,groupBorderColor:r,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(n).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:o}},A(`${t}-primary`,r),A(`${t}-danger`,i)]}};var B=o(94925);const P=e=>{const{paddingInline:t,onlyIconSize:o,paddingBlock:n}=e;return(0,I.h1)(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:n,buttonIconOnlyFontSize:o})},H=e=>{var t,o,n,r,i,l;const a=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,s=null!==(o=e.contentFontSizeSM)&&void 0!==o?o:e.fontSize,c=null!==(n=e.contentFontSizeLG)&&void 0!==n?n:e.fontSizeLG,d=null!==(r=e.contentLineHeight)&&void 0!==r?r:(0,B.k)(a),u=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:(0,B.k)(s),p=null!==(l=e.contentLineHeightLG)&&void 0!==l?l:(0,B.k)(c);return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:a,contentFontSizeSM:s,contentFontSizeLG:c,contentLineHeight:d,contentLineHeightSM:u,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-a*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-s*u)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*p)/2-e.lineWidth,0)}},R=e=>{const{componentCls:t,iconCls:o,fontWeight:n}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${(0,E.zA)(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${o} + span, > span + ${o}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},(0,j.K8)(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${o})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${t}-compact-item`]:{flex:"none"}}}},M=(e,t,o)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":o}}),T=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),N=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),L=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),D=(e,t,o,n,r,i,l,a)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:o||void 0,background:t,borderColor:n||void 0,boxShadow:"none"},M(e,Object.assign({background:t},l),Object.assign({background:t},a))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:i||void 0}})}),W=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},L(e))}),F=e=>Object.assign({},W(e)),X=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),q=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},F(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),M(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),D(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},M(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),D(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),W(e))}),G=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},F(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),M(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),D(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},M(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),D(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),W(e))}),_=e=>Object.assign(Object.assign({},q(e)),{borderStyle:"dashed"}),V=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},M(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),X(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},M(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),X(e))}),Q=e=>Object.assign(Object.assign(Object.assign({},M(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),X(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},X(e)),M(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBg}))}),U=e=>{const{componentCls:t}=e;return{[`${t}-default`]:q(e),[`${t}-primary`]:G(e),[`${t}-dashed`]:_(e),[`${t}-link`]:V(e),[`${t}-text`]:Q(e),[`${t}-ghost`]:D(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},K=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:o,controlHeight:n,fontSize:r,lineHeight:i,borderRadius:l,buttonPaddingHorizontal:a,iconCls:s,buttonPaddingVertical:c}=e,d=`${o}-icon-only`;return[{[`${t}`]:{fontSize:r,lineHeight:i,height:n,padding:`${(0,E.zA)(c)} ${(0,E.zA)(a)}`,borderRadius:l,[`&${d}`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:n,paddingInlineStart:0,paddingInlineEnd:0,[`&${o}-round`]:{width:"auto"},[s]:{fontSize:e.buttonIconOnlyFontSize}},[`&${o}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${o}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${o}${o}-circle${t}`]:T(e)},{[`${o}${o}-round${t}`]:N(e)}]},Y=e=>{const t=(0,I.h1)(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return K(t,e.componentCls)},Z=e=>{const t=(0,I.h1)(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return K(t,`${e.componentCls}-sm`)},J=e=>{const t=(0,I.h1)(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return K(t,`${e.componentCls}-lg`)},ee=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},te=(0,k.OF)("Button",(e=>{const t=P(e);return[R(t),Y(t),Z(t),J(t),ee(t),U(t),z(t)]}),H,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});var oe=o(55974);function ne(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function re(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},ne(e,t)),(o=e.componentCls,n=t,{[`&-item:not(${n}-first-item):not(${n}-last-item)`]:{borderRadius:0},[`&-item${n}-first-item:not(${n}-last-item)`]:{[`&, &${o}-sm, &${o}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${n}-last-item:not(${n}-first-item)`]:{[`&, &${o}-sm, &${o}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var o,n}const ie=e=>{const{componentCls:t,calc:o}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:o(e.lineWidth).mul(-1).equal(),insetInlineStart:o(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${(0,E.zA)(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:o(e.lineWidth).mul(-1).equal(),insetInlineStart:o(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${(0,E.zA)(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},le=(0,k.bf)(["Button","compact"],(e=>{const t=P(e);return[(0,oe.G)(t),re(t),ie(t)]}),H);var ae=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{var o,r;const{loading:m=!1,prefixCls:g,type:f,danger:$,shape:y="default",size:x,styles:C,disabled:S,className:O,rootClassName:E,children:j,icon:I,ghost:k=!1,block:A=!1,htmlType:z="button",classNames:B,style:P={}}=e,H=ae(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),R=f||"default",{getPrefixCls:M,autoInsertSpaceInButton:T,direction:N,button:L}=(0,n.useContext)(c.QO),D=M("btn",g),[W,F,X]=te(D),q=(0,n.useContext)(d.A),G=null!=S?S:q,_=(0,n.useContext)(b),V=(0,n.useMemo)((()=>function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(m)),[m]),[Q,U]=(0,n.useState)(V.loading),[K,Y]=(0,n.useState)(!1),Z=(0,n.createRef)(),J=(0,a.K4)(t,Z),ee=1===n.Children.count(j)&&!I&&!(0,h.Ve)(R);(0,n.useEffect)((()=>{let e=null;return V.delay>0?e=setTimeout((()=>{e=null,U(!0)}),V.delay):U(V.loading),function(){e&&(clearTimeout(e),e=null)}}),[V]),(0,n.useEffect)((()=>{if(!J||!J.current||!1===T)return;const e=J.current.textContent;ee&&(0,h.Ap)(e)?K||Y(!0):K&&Y(!1)}),[J]);const oe=t=>{const{onClick:o}=e;Q||G?t.preventDefault():null==o||o(t)};const ne=!1!==T,{compactSize:re,compactItemClassnames:ie}=(0,p.RQ)(D,N),se={large:"lg",small:"sm",middle:void 0},ce=(0,u.A)((e=>{var t,o;return null!==(o=null!==(t=null!=x?x:re)&&void 0!==t?t:_)&&void 0!==o?o:e})),de=ce&&se[ce]||"",ue=Q?"loading":I,pe=(0,l.A)(H,["navigate"]),me=i()(D,F,X,{[`${D}-${y}`]:"default"!==y&&y,[`${D}-${R}`]:R,[`${D}-${de}`]:de,[`${D}-icon-only`]:!j&&0!==j&&!!ue,[`${D}-background-ghost`]:k&&!(0,h.Ve)(R),[`${D}-loading`]:Q,[`${D}-two-chinese-chars`]:K&&ne&&!Q,[`${D}-block`]:A,[`${D}-dangerous`]:!!$,[`${D}-rtl`]:"rtl"===N},ie,O,E,null==L?void 0:L.className),ge=Object.assign(Object.assign({},null==L?void 0:L.style),P),be=i()(null==B?void 0:B.icon,null===(o=null==L?void 0:L.classNames)||void 0===o?void 0:o.icon),fe=Object.assign(Object.assign({},(null==C?void 0:C.icon)||{}),(null===(r=null==L?void 0:L.styles)||void 0===r?void 0:r.icon)||{}),he=I&&!Q?n.createElement(v,{prefixCls:D,className:be,style:fe},I):n.createElement(w,{existIcon:!!I,prefixCls:D,loading:!!Q}),$e=j||0===j?(0,h.uR)(j,ee&&ne):null;if(void 0!==pe.href)return W(n.createElement("a",Object.assign({},pe,{className:i()(me,{[`${D}-disabled`]:G}),href:G?void 0:pe.href,style:ge,onClick:oe,ref:J,tabIndex:G?-1:0}),he,$e));let ve=n.createElement("button",Object.assign({},H,{type:z,className:me,style:ge,onClick:oe,disabled:G,ref:J}),he,$e,!!ie&&n.createElement(le,{key:"compact",prefixCls:D}));return(0,h.Ve)(R)||(ve=n.createElement(s.A,{component:"Button",disabled:!!Q},ve)),W(ve)}));se.Group=f,se.__ANT_BUTTON=!0;const ce=se},40920:(e,t,o)=>{o.d(t,{A:()=>A});var n=o(96540),r=o(46942),i=o.n(r),l=o(38873),a=o(57),s=o(4424),c=o(62279),d=o(98119),u=o(20934),p=o(94241);const m=n.createContext(null);var g=o(64552),b=o(25905),f=o(80336),h=o(20106);const $=e=>{const{checkboxCls:t}=e,o=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},(0,b.dF)(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[o]:Object.assign(Object.assign({},(0,b.dF)(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${o}`]:{marginInlineStart:0},[`&${o}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},(0,b.dF)(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},(0,b.jk)(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${(0,g.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${(0,g.zA)(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`\n ${o}:not(${o}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${o}:not(${o}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`\n ${o}-checked:not(${o}-disabled),\n ${t}-checked:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${o}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function v(e,t){const o=(0,f.h1)(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[$(o)]}const y=(0,h.OF)("Checkbox",((e,t)=>{let{prefixCls:o}=t;return[v(o,e)]}));var x=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{var o;const{prefixCls:r,className:g,rootClassName:b,children:f,indeterminate:h=!1,style:$,onMouseEnter:v,onMouseLeave:C,skipGroup:S=!1,disabled:O}=e,w=x(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:E,direction:j,checkbox:I}=n.useContext(c.QO),k=n.useContext(m),{isFormItemInput:A}=n.useContext(p.$W),z=n.useContext(d.A),B=null!==(o=(null==k?void 0:k.disabled)||O)&&void 0!==o?o:z,P=n.useRef(w.value);n.useEffect((()=>{null==k||k.registerValue(w.value)}),[]),n.useEffect((()=>{if(!S)return w.value!==P.current&&(null==k||k.cancelValue(P.current),null==k||k.registerValue(w.value),P.current=w.value),()=>null==k?void 0:k.cancelValue(w.value)}),[w.value]);const H=E("checkbox",r),R=(0,u.A)(H),[M,T,N]=y(H,R),L=Object.assign({},w);k&&!S&&(L.onChange=function(){w.onChange&&w.onChange.apply(w,arguments),k.toggleOption&&k.toggleOption({label:f,value:w.value})},L.name=k.name,L.checked=k.value.includes(w.value));const D=i()(`${H}-wrapper`,{[`${H}-rtl`]:"rtl"===j,[`${H}-wrapper-checked`]:L.checked,[`${H}-wrapper-disabled`]:B,[`${H}-wrapper-in-form-item`]:A},null==I?void 0:I.className,g,b,N,R,T),W=i()({[`${H}-indeterminate`]:h},s.D,T),F=h?"mixed":void 0;return M(n.createElement(a.A,{component:"Checkbox",disabled:B},n.createElement("label",{className:D,style:Object.assign(Object.assign({},null==I?void 0:I.style),$),onMouseEnter:v,onMouseLeave:C},n.createElement(l.A,Object.assign({"aria-checked":F},L,{prefixCls:H,className:W,disabled:B,ref:t})),void 0!==f&&n.createElement("span",null,f))))};const S=n.forwardRef(C);var O=o(60436),w=o(19853),E=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{defaultValue:o,children:r,options:l=[],prefixCls:a,className:s,rootClassName:d,style:p,onChange:g}=e,b=E(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:h}=n.useContext(c.QO),[$,v]=n.useState(b.value||o||[]),[x,C]=n.useState([]);n.useEffect((()=>{"value"in b&&v(b.value||[])}),[b.value]);const j=n.useMemo((()=>l.map((e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e))),[l]),I=f("checkbox",a),k=`${I}-group`,A=(0,u.A)(I),[z,B,P]=y(I,A),H=(0,w.A)(b,["value","disabled"]),R=l.length?j.map((e=>n.createElement(S,{prefixCls:I,key:e.value.toString(),disabled:"disabled"in e?e.disabled:b.disabled,value:e.value,checked:$.includes(e.value),onChange:e.onChange,className:`${k}-item`,style:e.style,title:e.title,id:e.id,required:e.required},e.label))):r,M={toggleOption:e=>{const t=$.indexOf(e.value),o=(0,O.A)($);-1===t?o.push(e.value):o.splice(t,1),"value"in b||v(o),null==g||g(o.filter((e=>x.includes(e))).sort(((e,t)=>j.findIndex((t=>t.value===e))-j.findIndex((e=>e.value===t)))))},value:$,disabled:b.disabled,name:b.name,registerValue:e=>{C((t=>[].concat((0,O.A)(t),[e])))},cancelValue:e=>{C((t=>t.filter((t=>t!==e))))}},T=i()(k,{[`${k}-rtl`]:"rtl"===h},s,d,P,A,B);return z(n.createElement("div",Object.assign({className:T,style:p},H,{ref:t}),n.createElement(m.Provider,{value:M},R)))})),I=j,k=S;k.Group=I,k.__ANT_CHECKBOX=!0;const A=k},42953:(e,t,o)=>{o.d(t,{A:()=>p});var n=o(96540),r=o(46942),i=o.n(r),l=o(62279),a=o(36121),s=o(25006),c=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:o,direction:r}=n.useContext(l.QO),{gutter:p,wrap:m}=n.useContext(a.A),{prefixCls:g,span:b,order:f,offset:h,push:$,pull:v,className:y,children:x,flex:C,style:S}=e,O=c(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),w=o("col",g),[E,j,I]=(0,s.xV)(w),k={};let A={};u.forEach((t=>{let o={};const n=e[t];"number"==typeof n?o.span=n:"object"==typeof n&&(o=n||{}),delete O[t],A=Object.assign(Object.assign({},A),{[`${w}-${t}-${o.span}`]:void 0!==o.span,[`${w}-${t}-order-${o.order}`]:o.order||0===o.order,[`${w}-${t}-offset-${o.offset}`]:o.offset||0===o.offset,[`${w}-${t}-push-${o.push}`]:o.push||0===o.push,[`${w}-${t}-pull-${o.pull}`]:o.pull||0===o.pull,[`${w}-rtl`]:"rtl"===r}),o.flex&&(A[`${w}-${t}-flex`]=!0,k[`--${w}-${t}-flex`]=d(o.flex))}));const z=i()(w,{[`${w}-${b}`]:void 0!==b,[`${w}-order-${f}`]:f,[`${w}-offset-${h}`]:h,[`${w}-push-${$}`]:$,[`${w}-pull-${v}`]:v},y,A,j,I),B={};if(p&&p[0]>0){const e=p[0]/2;B.paddingLeft=e,B.paddingRight=e}return C&&(B.flex=d(C),!1!==m||B.minWidth||(B.minWidth=0)),E(n.createElement("div",Object.assign({},O,{style:Object.assign(Object.assign(Object.assign({},B),S),k),className:z,ref:t}),x))}))},86416:(e,t,o)=>{o.d(t,{A:()=>Fe});var n=o(96540),r=o(46942),i=o.n(r),l=o(12533),a=o(53425),s=o(58182),c=o(62279),d=o(98119),u=o(20934),p=o(829),m=o(94241),g=o(89027),b=o(64552),f=o(25905),h=o(20106),$=o(80336);const v=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:o,colorSplit:n,lineWidth:r,textPaddingInline:i,orientationMargin:l,verticalMarginInline:a}=e;return{[t]:Object.assign(Object.assign({},(0,f.dF)(e)),{borderBlockStart:`${(0,b.zA)(r)} solid ${n}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:a,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,b.zA)(r)} solid ${n}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,b.zA)(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,b.zA)(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${n}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,b.zA)(r)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${l} * 100%)`},"&::after":{width:`calc(100% - ${l} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${l} * 100%)`},"&::after":{width:`calc(${l} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:n,borderStyle:"dashed",borderWidth:`${(0,b.zA)(r)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:o}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:o}}})}},y=(0,h.OF)("Divider",(e=>{const t=(0,$.h1)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[v(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS})),{unitless:{orientationMargin:!0}});var x=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:t,direction:o,divider:r}=n.useContext(c.QO),{prefixCls:l,type:a="horizontal",orientation:s="center",orientationMargin:d,className:u,rootClassName:p,children:m,dashed:g,plain:b,style:f}=e,h=x(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),$=t("divider",l),[v,C,S]=y($),O=s.length>0?`-${s}`:s,w=!!m,E="left"===s&&null!=d,j="right"===s&&null!=d,I=i()($,null==r?void 0:r.className,C,S,`${$}-${a}`,{[`${$}-with-text`]:w,[`${$}-with-text${O}`]:w,[`${$}-dashed`]:!!g,[`${$}-plain`]:!!b,[`${$}-rtl`]:"rtl"===o,[`${$}-no-default-orientation-margin-left`]:E,[`${$}-no-default-orientation-margin-right`]:j},u,p),k=n.useMemo((()=>"number"==typeof d?d:/^\d+$/.test(d)?Number(d):d),[d]),A=Object.assign(Object.assign({},E&&{marginLeft:k}),j&&{marginRight:k});return v(n.createElement("div",Object.assign({className:I,style:Object.assign(Object.assign({},null==r?void 0:r.style),f)},h,{role:"separator"}),m&&"vertical"!==a&&n.createElement("span",{className:`${$}-inner-text`,style:A},m)))};var S=o(70104);const O=n.createContext({}),w=n.createContext({}),{Provider:E}=O,{Provider:j}=w;var I=o(23029),k=o(92901);const A=(e,t)=>(null==e?void 0:e.replace(/[^\w/]/gi,"").slice(0,t?8:6))||"";let z=function(){return(0,k.A)((function e(t){(0,I.A)(this,e),this.cleared=!1,this.metaColor=new S.Q1(t),t||(this.metaColor.setAlpha(0),this.cleared=!0)}),[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return e=this.toHexString(),t=this.metaColor.getAlpha()<1,e?A(e,t):"";var e,t}},{key:"toHexString",value:function(){return 1===this.metaColor.getAlpha()?this.metaColor.toHexString():this.metaColor.toHex8String()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}}])}();const B=e=>e instanceof z?e:new z(e),P=e=>Math.round(Number(e||0)),H=e=>P(100*e.toHsb().a),R=(e,t)=>{const o=e.toHsb();return o.a=t||1,B(o)},M=e=>{let{prefixCls:t,value:o,onChange:r}=e;return n.createElement("div",{className:`${t}-clear`,onClick:()=>{if(o&&!o.cleared){const e=o.toHsb();e.a=0;const t=B(e);t.cleared=!0,null==r||r(t)}}})};var T,N=o(47523);!function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb"}(T||(T={}));var L=o(7142);const D=e=>{let{prefixCls:t,min:o=0,max:r=100,value:l,onChange:a,className:s,formatter:c}=e;const d=`${t}-steppers`,[u,p]=(0,n.useState)(l);return(0,n.useEffect)((()=>{Number.isNaN(l)||p(l)}),[l]),n.createElement(L.A,{className:i()(d,s),min:o,max:r,value:u,formatter:c,size:"small",onChange:e=>{l||p(e||0),null==a||a(e)}})},W=e=>{let{prefixCls:t,value:o,onChange:r}=e;const i=`${t}-alpha-input`,[l,a]=(0,n.useState)(B(o||"#000"));(0,n.useEffect)((()=>{o&&a(o)}),[o]);return n.createElement(D,{value:H(l),prefixCls:t,formatter:e=>`${e}%`,className:i,onChange:e=>{const t=l.toHsb();t.a=(e||0)/100;const n=B(t);o||a(n),null==r||r(n)}})};var F=o(27444);const X=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,q=e=>X.test(`#${e}`),G=e=>{let{prefixCls:t,value:o,onChange:r}=e;const i=`${t}-hex-input`,[l,a]=(0,n.useState)(null==o?void 0:o.toHex());(0,n.useEffect)((()=>{const e=null==o?void 0:o.toHex();q(e)&&o&&a(A(e))}),[o]);return n.createElement(F.A,{className:i,value:l,prefix:"#",onChange:e=>{const t=e.target.value;a(A(t)),q(A(t,!0))&&(null==r||r(B(t)))},size:"small"})},_=e=>{let{prefixCls:t,value:o,onChange:r}=e;const i=`${t}-hsb-input`,[l,a]=(0,n.useState)(B(o||"#000"));(0,n.useEffect)((()=>{o&&a(o)}),[o]);const s=(e,t)=>{const n=l.toHsb();n[t]="h"===t?e:(e||0)/100;const i=B(n);o||a(i),null==r||r(i)};return n.createElement("div",{className:i},n.createElement(D,{max:360,min:0,value:Number(l.toHsb().h),prefixCls:t,className:i,formatter:e=>P(e||0).toString(),onChange:e=>s(Number(e),"h")}),n.createElement(D,{max:100,min:0,value:100*Number(l.toHsb().s),prefixCls:t,className:i,formatter:e=>`${P(e||0)}%`,onChange:e=>s(Number(e),"s")}),n.createElement(D,{max:100,min:0,value:100*Number(l.toHsb().b),prefixCls:t,className:i,formatter:e=>`${P(e||0)}%`,onChange:e=>s(Number(e),"b")}))},V=e=>{let{prefixCls:t,value:o,onChange:r}=e;const i=`${t}-rgb-input`,[l,a]=(0,n.useState)(B(o||"#000"));(0,n.useEffect)((()=>{o&&a(o)}),[o]);const s=(e,t)=>{const n=l.toRgb();n[t]=e||0;const i=B(n);o||a(i),null==r||r(i)};return n.createElement("div",{className:i},n.createElement(D,{max:255,min:0,value:Number(l.toRgb().r),prefixCls:t,className:i,onChange:e=>s(Number(e),"r")}),n.createElement(D,{max:255,min:0,value:Number(l.toRgb().g),prefixCls:t,className:i,onChange:e=>s(Number(e),"g")}),n.createElement(D,{max:255,min:0,value:Number(l.toRgb().b),prefixCls:t,className:i,onChange:e=>s(Number(e),"b")}))},Q=[T.hex,T.hsb,T.rgb].map((e=>({value:e,label:e.toLocaleUpperCase()}))),U=e=>{const{prefixCls:t,format:o,value:r,disabledAlpha:i,onFormatChange:a,onChange:s}=e,[c,d]=(0,l.A)(T.hex,{value:o,onChange:a}),u=`${t}-input`,p=(0,n.useMemo)((()=>{const e={value:r,prefixCls:t,onChange:s};switch(c){case T.hsb:return n.createElement(_,Object.assign({},e));case T.rgb:return n.createElement(V,Object.assign({},e));case T.hex:default:return n.createElement(G,Object.assign({},e))}}),[c,t,r,s]);return n.createElement("div",{className:`${u}-container`},n.createElement(N.A,{value:c,variant:"borderless",getPopupContainer:e=>e,popupMatchSelectWidth:68,placement:"bottomRight",onChange:e=>{d(e)},className:`${t}-format-select`,size:"small",options:Q}),n.createElement("div",{className:u},p),!i&&n.createElement(W,{prefixCls:t,value:r,onChange:s}))};var K=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const e=(0,n.useContext)(O),{prefixCls:t,allowClear:o,value:r,disabledAlpha:i,onChange:l,onClear:a,onChangeComplete:s}=e,c=K(e,["prefixCls","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete"]);return n.createElement(n.Fragment,null,o&&n.createElement(M,Object.assign({prefixCls:t,value:r,onChange:e=>{null==l||l(e),null==a||a()}},c)),n.createElement(S.Ay,{prefixCls:t,value:null==r?void 0:r.toHsb(),disabledAlpha:i,onChange:(e,t)=>{null==l||l(B(e),t,!0)},onChangeComplete:e=>{null==s||s(B(e))}}),n.createElement(U,Object.assign({value:r,onChange:l,prefixCls:t,disabledAlpha:i},c)))};var Z=o(68e3),J=o(71057),ee=o(82546),te=o(19853),oe=o(23723),ne=o(40682);const re=n.forwardRef(((e,t)=>{const{getPrefixCls:o}=n.useContext(c.QO),{prefixCls:r,className:l,showArrow:a=!0}=e,s=o("collapse",r),d=i()({[`${s}-no-arrow`]:!a},l);return n.createElement(J.A.Panel,Object.assign({ref:t},e,{prefixCls:s,className:d}))}));var ie=o(60977);const le=e=>{const{componentCls:t,contentBg:o,padding:n,headerBg:r,headerPadding:i,collapseHeaderPaddingSM:l,collapseHeaderPaddingLG:a,collapsePanelBorderRadius:s,lineWidth:c,lineType:d,colorBorder:u,colorText:p,colorTextHeading:m,colorTextDisabled:g,fontSizeLG:h,lineHeight:$,lineHeightLG:v,marginSM:y,paddingSM:x,paddingLG:C,paddingXS:S,motionDurationSlow:O,fontSizeIcon:w,contentPadding:E,fontHeight:j,fontHeightLG:I}=e,k=`${(0,b.zA)(c)} ${d} ${u}`;return{[t]:Object.assign(Object.assign({},(0,f.dF)(e)),{backgroundColor:r,border:k,borderRadius:s,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:k,"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${(0,b.zA)(s)} ${(0,b.zA)(s)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:m,lineHeight:$,cursor:"pointer",transition:`all ${O}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:j,display:"flex",alignItems:"center",paddingInlineEnd:y},[`${t}-arrow`]:Object.assign(Object.assign({},(0,f.Nk)()),{fontSize:w,transition:`transform ${O}`,svg:{transition:`transform ${O}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-icon-collapsible-only`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:p,backgroundColor:o,borderTop:k,[`& > ${t}-content-box`]:{padding:E},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:l,paddingInlineStart:S,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(x).sub(S).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:x}}},"&-large":{[`> ${t}-item`]:{fontSize:h,lineHeight:v,[`> ${t}-header`]:{padding:a,paddingInlineStart:n,[`> ${t}-expand-icon`]:{height:I,marginInlineStart:e.calc(C).sub(n).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:C}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${(0,b.zA)(s)} ${(0,b.zA)(s)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:g,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:y}}}}})}},ae=e=>{const{componentCls:t}=e,o=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[o]:{transform:"rotate(180deg)"}}}},se=e=>{const{componentCls:t,headerBg:o,paddingXXS:n,colorBorder:r}=e;return{[`${t}-borderless`]:{backgroundColor:o,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${r}`},[`\n > ${t}-item:last-child,\n > ${t}-item:last-child ${t}-header\n `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:n}}}},ce=e=>{const{componentCls:t,paddingSM:o}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:o}}}}}},de=(0,h.OF)("Collapse",(e=>{const t=(0,$.h1)(e,{collapseHeaderPaddingSM:`${(0,b.zA)(e.paddingXS)} ${(0,b.zA)(e.paddingSM)}`,collapseHeaderPaddingLG:`${(0,b.zA)(e.padding)} ${(0,b.zA)(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[le(t),se(t),ce(t),ae(t),(0,ie.A)(t)]}),(e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}))),ue=n.forwardRef(((e,t)=>{const{getPrefixCls:o,direction:r,collapse:l}=n.useContext(c.QO),{prefixCls:a,className:s,rootClassName:d,style:u,bordered:m=!0,ghost:g,size:b,expandIconPosition:f="start",children:h,expandIcon:$}=e,v=(0,p.A)((e=>{var t;return null!==(t=null!=b?b:e)&&void 0!==t?t:"middle"})),y=o("collapse",a),x=o(),[C,S,O]=de(y);const w=n.useMemo((()=>"left"===f?"start":"right"===f?"end":f),[f]),E=null!=$?$:null==l?void 0:l.expandIcon,j=n.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t="function"==typeof E?E(e):n.createElement(Z.A,{rotate:e.isActive?90:void 0});return(0,ne.Ob)(t,(()=>{var e;return{className:i()(null===(e=null==t?void 0:t.props)||void 0===e?void 0:e.className,`${y}-arrow`)}}))}),[E,y]),I=i()(`${y}-icon-position-${w}`,{[`${y}-borderless`]:!m,[`${y}-rtl`]:"rtl"===r,[`${y}-ghost`]:!!g,[`${y}-${v}`]:"middle"!==v},null==l?void 0:l.className,s,d,S,O),k=Object.assign(Object.assign({},(0,oe.A)(x)),{motionAppear:!1,leavedClassName:`${y}-content-hidden`}),A=n.useMemo((()=>h?(0,ee.A)(h).map(((e,t)=>{var o,n;if(null===(o=e.props)||void 0===o?void 0:o.disabled){const o=null!==(n=e.key)&&void 0!==n?n:String(t),{disabled:r,collapsible:i}=e.props,l=Object.assign(Object.assign({},(0,te.A)(e.props,["disabled"])),{key:o,collapsible:null!=i?i:r?"disabled":void 0});return(0,ne.Ob)(e,l)}return e})):null),[h]);return C(n.createElement(J.A,Object.assign({ref:t,openMotion:k},(0,te.A)(e,["rootClassName"]),{expandIcon:j,prefixCls:y,className:I,style:Object.assign(Object.assign({},null==l?void 0:l.style),u)}),A))}));const pe=Object.assign(ue,{Panel:re});var me=o(19155),ge=o(365);const be=e=>e.map((e=>(e.colors=e.colors.map(B),e))),fe=(e,t)=>{const{r:o,g:n,b:r,a:i}=e.toRgb(),l=new S.Q1(e.toRgbString()).onBackground(t).toHsv();return i<=.5?l.v>.5:.299*o+.587*n+.114*r>192},he=e=>{let{label:t}=e;return`panel-${t}`},$e=e=>{let{prefixCls:t,presets:o,value:r,onChange:a}=e;const[s]=(0,me.A)("ColorPicker"),[,c]=(0,ge.Ay)(),[d]=(0,l.A)(be(o),{value:be(o),postState:be}),u=`${t}-presets`,p=(0,n.useMemo)((()=>d.reduce(((e,t)=>{const{defaultOpen:o=!0}=t;return o&&e.push(he(t)),e}),[])),[d]),m=d.map((e=>{var o;return{key:he(e),label:n.createElement("div",{className:`${u}-label`},null==e?void 0:e.label),children:n.createElement("div",{className:`${u}-items`},Array.isArray(null==e?void 0:e.colors)&&(null===(o=e.colors)||void 0===o?void 0:o.length)>0?e.colors.map(((e,o)=>n.createElement(S.ZC,{key:`preset-${o}-${e.toHexString()}`,color:B(e).toRgbString(),prefixCls:t,className:i()(`${u}-color`,{[`${u}-color-checked`]:e.toHexString()===(null==r?void 0:r.toHexString()),[`${u}-color-bright`]:fe(e,c.colorBgElevated)}),onClick:()=>{return t=e,void(null==a||a(t));var t}}))):n.createElement("span",{className:`${u}-empty`},s.presetEmpty))}}));return n.createElement("div",{className:u},n.createElement(pe,{defaultActiveKey:p,ghost:!0,items:m}))},ve=()=>{const{prefixCls:e,value:t,presets:o,onChange:r}=(0,n.useContext)(w);return Array.isArray(o)?n.createElement($e,{value:t,presets:o,prefixCls:e,onChange:r}):null};var ye=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,presets:o,panelRender:r,color:i,onChange:l,onClear:a}=e,s=ye(e,["prefixCls","presets","panelRender","color","onChange","onClear"]),c=`${t}-inner`,d=Object.assign({prefixCls:t,value:i,onChange:l,onClear:a},s),u=n.useMemo((()=>({prefixCls:t,value:i,presets:o,onChange:l})),[t,i,o,l]),p=n.createElement("div",{className:`${c}-content`},n.createElement(Y,null),Array.isArray(o)&&n.createElement(C,null),n.createElement(ve,null));return n.createElement(E,{value:d},n.createElement(j,{value:u},n.createElement("div",{className:c},"function"==typeof r?r(p,{components:{Picker:Y,Presets:ve}}):p)))};var Ce=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{color:o,prefixCls:r,open:l,disabled:a,format:s,className:c,showText:d}=e,u=Ce(e,["color","prefixCls","open","disabled","format","className","showText"]),p=`${r}-trigger`,m=(0,n.useMemo)((()=>o.cleared?n.createElement(M,{prefixCls:r}):n.createElement(S.ZC,{prefixCls:r,color:o.toRgbString()})),[o,r]);return n.createElement("div",Object.assign({ref:t,className:i()(p,c,{[`${p}-active`]:l,[`${p}-disabled`]:a})},u),m,d&&n.createElement("div",{className:`${p}-text`},"function"==typeof d?d(o):d?(()=>{const e=o.toHexString().toUpperCase(),t=H(o);switch(s){case"rgb":return o.toRgbString();case"hsb":return o.toHsbString();default:return t<100?`${e.slice(0,7)},${t}%`:e}})():void 0))})),Oe={};function we(e){return void 0!==e}const Ee=(e,t)=>{const{defaultValue:o,value:r}=t,i=(0,n.useRef)(B("")),[l,a]=(0,n.useState)((()=>{let t;t=we(r)?r:we(o)?o:e;const n=B(t||"");return i.current=n,n})),s=e=>{a(e),i.current=e},c=(0,n.useRef)(Oe);return(0,n.useEffect)((()=>{if(c.current===r)return;c.current=r;const e=B(we(r)?r||"":i.current);!0===i.current.cleared&&(e.cleared="controlled"),s(e)}),[r]),[l,s,i]},je=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),Ie=(e,t)=>{const{componentCls:o,borderRadiusSM:n,colorPickerInsetShadow:r,lineWidth:i,colorFillSecondary:l}=e;return{[`${o}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:n,width:t,height:t,boxShadow:r},je("50%",e.colorFillSecondary)),{[`${o}-color-block-inner`]:{width:"100%",height:"100%",border:`${(0,b.zA)(i)} solid ${l}`,borderRadius:"inherit"}})}},ke=e=>{const{componentCls:t,antCls:o,fontSizeSM:n,lineHeightSM:r,colorPickerAlphaInputWidth:i,marginXXS:l,paddingXXS:a,controlHeightSM:s,marginXS:c,fontSizeIcon:d,paddingXS:u,colorTextPlaceholder:p,colorPickerInputNumberHandleWidth:m,lineWidth:g}=e;return{[`${t}-input-container`]:{display:"flex",[`${t}-steppers${o}-input-number`]:{fontSize:n,lineHeight:r,[`${o}-input-number-input`]:{paddingInlineStart:a,paddingInlineEnd:0},[`${o}-input-number-handler-wrap`]:{width:m}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${(0,b.zA)(i)}`,marginInlineStart:l},[`${t}-format-select${o}-select`]:{marginInlineEnd:c,width:"auto","&-single":{[`${o}-select-selector`]:{padding:0,border:0},[`${o}-select-arrow`]:{insetInlineEnd:0},[`${o}-select-selection-item`]:{paddingInlineEnd:e.calc(d).add(l).equal(),fontSize:n,lineHeight:`${(0,b.zA)(s)}`},[`${o}-select-item-option-content`]:{fontSize:n,lineHeight:r},[`${o}-select-dropdown`]:{[`${o}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:l,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:l,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${o}-input-affix-wrapper`]:{flex:1,padding:`0 ${(0,b.zA)(u)}`,[`${o}-input`]:{fontSize:n,textTransform:"uppercase",lineHeight:(0,b.zA)(e.calc(s).sub(e.calc(g).mul(2)).equal())},[`${o}-input-prefix`]:{color:p}}}}}},Ae=e=>{const{componentCls:t,controlHeightLG:o,borderRadiusSM:n,colorPickerInsetShadow:r,marginSM:i,colorBgElevated:l,colorFillSecondary:a,lineWidthBold:s,colorPickerHandlerSize:c,colorPickerHandlerSizeSM:d,colorPickerSliderHeight:u}=e;return{[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(o).mul(4).equal(),overflow:"hidden",borderRadius:n},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:r,inset:0},marginBottom:i},[`${t}-handler`]:{width:c,height:c,border:`${(0,b.zA)(s)} solid ${l}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${r}, 0 0 0 1px ${a}`,"&-sm":{width:d,height:d}},[`${t}-slider`]:{borderRadius:e.calc(u).div(2).equal(),[`${t}-palette`]:{height:u},[`${t}-gradient`]:{borderRadius:e.calc(u).div(2).equal(),boxShadow:r},"&-alpha":je(`${(0,b.zA)(u)}`,e.colorFillSecondary),"&-hue":{marginBottom:i}},[`${t}-slider-container`]:{display:"flex",gap:i,marginBottom:i,[`${t}-slider-group`]:{flex:1,"&-disabled-alpha":{display:"flex",alignItems:"center",[`${t}-slider`]:{flex:1,marginBottom:0}}}}}},ze=e=>{const{componentCls:t,antCls:o,colorTextQuaternary:n,paddingXXS:r,colorPickerPresetColorSize:i,fontSizeSM:l,colorText:a,lineHeightSM:s,lineWidth:c,borderRadius:d,colorFill:u,colorWhite:p,marginXXS:m,paddingXS:g,fontHeightSM:f}=e;return{[`${t}-presets`]:{[`${o}-collapse-item > ${o}-collapse-header`]:{padding:0,[`${o}-collapse-expand-icon`]:{height:f,color:n,paddingInlineEnd:r}},[`${o}-collapse`]:{display:"flex",flexDirection:"column",gap:m},[`${o}-collapse-item > ${o}-collapse-content > ${o}-collapse-content-box`]:{padding:`${(0,b.zA)(g)} 0`},"&-label":{fontSize:l,color:a,lineHeight:s},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(m).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:i,height:i,"&::before":{content:'""',pointerEvents:"none",width:e.calc(i).add(e.calc(c).mul(4)).equal(),height:e.calc(i).add(e.calc(c).mul(4)).equal(),position:"absolute",top:e.calc(c).mul(-2).equal(),insetInlineStart:e.calc(c).mul(-2).equal(),borderRadius:d,border:`${(0,b.zA)(c)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:u},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(i).div(13).mul(5).equal(),height:e.calc(i).div(13).mul(8).equal(),border:`${(0,b.zA)(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:p,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:l,color:n}}}},Be=(e,t,o)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${(0,b.zA)(e.controlOutlineWidth)} ${o}`,outline:0}),Pe=e=>{const{componentCls:t}=e;return{"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},He=(e,t,o)=>{const{componentCls:n,borderRadiusSM:r,lineWidth:i,colorSplit:l,colorBorder:a,red6:s}=e;return{[`${n}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:r,border:`${(0,b.zA)(i)} solid ${l}`,position:"relative",overflow:"hidden",cursor:"pointer",transition:`all ${e.motionDurationFast}`},o),{"&::after":{content:'""',position:"absolute",insetInlineEnd:i,top:0,display:"block",width:40,height:2,transformOrigin:"right",transform:"rotate(-45deg)",backgroundColor:s},"&:hover":{borderColor:a}})}},Re=e=>{const{componentCls:t,colorError:o,colorWarning:n,colorErrorHover:r,colorWarningHover:i,colorErrorOutline:l,colorWarningOutline:a}=e;return{[`&${t}-status-error`]:{borderColor:o,"&:hover":{borderColor:r},[`&${t}-trigger-active`]:Object.assign({},Be(e,o,l))},[`&${t}-status-warning`]:{borderColor:n,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:Object.assign({},Be(e,n,a))}}},Me=e=>{const{componentCls:t,controlHeightLG:o,controlHeightSM:n,controlHeight:r,controlHeightXS:i,borderRadius:l,borderRadiusSM:a,borderRadiusXS:s,borderRadiusLG:c,fontSizeLG:d}=e;return{[`&${t}-lg`]:{minWidth:o,height:o,borderRadius:c,[`${t}-color-block, ${t}-clear`]:{width:r,height:r,borderRadius:l},[`${t}-trigger-text`]:{fontSize:d}},[`&${t}-sm`]:{minWidth:n,height:n,borderRadius:a,[`${t}-color-block, ${t}-clear`]:{width:i,height:i,borderRadius:s}}}},Te=e=>{const{antCls:t,componentCls:o,colorPickerWidth:n,colorPrimary:r,motionDurationMid:i,colorBgElevated:l,colorTextDisabled:a,colorText:s,colorBgContainerDisabled:c,borderRadius:d,marginXS:u,marginSM:p,controlHeight:m,controlHeightSM:g,colorBgTextActive:f,colorPickerPresetColorSize:h,colorPickerPreviewSize:$,lineWidth:v,colorBorder:y,paddingXXS:x,fontSize:C,colorPrimaryHover:S,controlOutline:O}=e;return[{[o]:Object.assign({[`${o}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:n,[`& > ${t}-divider`]:{margin:`${(0,b.zA)(p)} 0 ${(0,b.zA)(u)}`}},[`${o}-panel`]:Object.assign({},Ae(e))},Ie(e,$)),ke(e)),ze(e)),He(e,h,{marginInlineStart:"auto",marginBottom:u})),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:m,height:m,borderRadius:d,border:`${(0,b.zA)(v)} solid ${y}`,cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",transition:`all ${i}`,background:l,padding:e.calc(x).sub(v).equal(),[`${o}-trigger-text`]:{marginInlineStart:u,marginInlineEnd:e.calc(u).sub(e.calc(x).sub(v)).equal(),fontSize:C,color:s},"&:hover":{borderColor:S},[`&${o}-trigger-active`]:Object.assign({},Be(e,r,O)),"&-disabled":{color:a,background:c,cursor:"not-allowed","&:hover":{borderColor:f},[`${o}-trigger-text`]:{color:a}}},He(e,g)),Ie(e,g)),Re(e)),Me(e))},Pe(e))}]},Ne=(0,h.OF)("ColorPicker",(e=>{const{colorTextQuaternary:t,marginSM:o}=e,n=(0,$.h1)(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:18,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:8,colorPickerPreviewSize:e.calc(8).mul(2).add(o).equal()});return[Te(n)]}));var Le=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{value:t,defaultValue:o,format:r,defaultFormat:a,allowClear:b=!1,presets:f,children:h,trigger:$="click",open:v,disabled:y,placement:x="bottomLeft",arrow:C=!0,panelRender:S,showText:O,style:w,className:E,size:j,rootClassName:I,prefixCls:k,styles:A,disabledAlpha:z=!1,onFormatChange:P,onChange:M,onClear:T,onOpenChange:N,onChangeComplete:L,getPopupContainer:D,autoAdjustOverflow:W=!0,destroyTooltipOnHide:F}=e,X=Le(e,["value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","prefixCls","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide"]),{getPrefixCls:q,direction:G,colorPicker:_}=(0,n.useContext)(c.QO),V=(0,n.useContext)(d.A),Q=null!=y?y:V,[U,K,Y]=Ee("",{value:t,defaultValue:o}),[Z,J]=(0,l.A)(!1,{value:v,postState:e=>!Q&&e,onChange:N}),[ee,te]=(0,l.A)(r,{value:r,defaultValue:a,onChange:P}),oe=q("color-picker",k),ne=(0,n.useMemo)((()=>H(U)<100),[U]),{status:re}=n.useContext(m.$W),ie=(0,p.A)(j),le=(0,u.A)(oe),[ae,se,ce]=Ne(oe,le),de={[`${oe}-rtl`]:G},ue=i()(I,ce,le,de),pe=i()((0,s.L)(oe,re),{[`${oe}-sm`]:"small"===ie,[`${oe}-lg`]:"large"===ie},null==_?void 0:_.className,ue,E,se),me=i()(oe,ue),ge=(0,n.useRef)(!0);const be=e=>{ge.current=!0;let t=B(e);z&&ne&&(t=R(e)),null==L||L(t)},fe={open:Z,trigger:$,placement:x,arrow:C,rootClassName:I,getPopupContainer:D,autoAdjustOverflow:W,destroyTooltipOnHide:F},he={prefixCls:oe,color:U,allowClear:b,disabled:Q,disabledAlpha:z,presets:f,panelRender:S,format:ee,onFormatChange:te,onChangeComplete:be},$e=Object.assign(Object.assign({},null==_?void 0:_.style),w);return ae(n.createElement(g.A,Object.assign({style:null==A?void 0:A.popup,overlayInnerStyle:null==A?void 0:A.popupOverlayInner,onOpenChange:e=>{ge.current&&!Q&&J(e)},content:n.createElement(m.XB,{override:!0,status:!0},n.createElement(xe,Object.assign({},he,{onChange:(e,n,r)=>{var i;let l=B(e);const a=null===t||!t&&null===o;((null===(i=Y.current)||void 0===i?void 0:i.cleared)||a)&&0===H(U)&&"alpha"!==n&&(l=R(l)),z&&ne&&(l=R(l)),r?ge.current=!1:null==L||L(l),K(l),null==M||M(l,l.toHexString())},onChangeComplete:be,onClear:()=>{null==T||T()}}))),overlayClassName:me},fe),h||n.createElement(Se,Object.assign({open:Z,className:pe,style:$e,prefixCls:oe,disabled:Q,showText:O,format:ee},X,{color:U}))))};const We=(0,a.A)(De,"color-picker",(e=>e),(e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1})));De._InternalPanelDoNotUseOrYouWillBeFired=We;const Fe=De},98119:(e,t,o)=>{o.d(t,{A:()=>l,X:()=>i});var n=o(96540);const r=n.createContext(!1),i=e=>{let{children:t,disabled:o}=e;const i=n.useContext(r);return n.createElement(r.Provider,{value:null!=o?o:i},t)},l=r},48224:(e,t,o)=>{o.d(t,{A:()=>l,c:()=>i});var n=o(96540);const r=n.createContext(void 0),i=e=>{let{children:t,size:o}=e;const i=n.useContext(r);return n.createElement(r.Provider,{value:o||i},t)},l=r},62279:(e,t,o)=>{o.d(t,{QO:()=>i,pM:()=>r});var n=o(96540);const r="anticon",i=n.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:r}),{Consumer:l}=i},20934:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(365);const r=e=>{const[,,,,t]=(0,n.Ay)();return t?`${e}-css-var`:""}},829:(e,t,o)=>{o.d(t,{A:()=>i});var n=o(96540),r=o(48224);const i=e=>{const t=n.useContext(r.A);return n.useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])}},78407:(e,t,o)=>{o.d(t,{Ay:()=>V,cr:()=>q});var n=o(96540),r=o.t(n,2),i=o(64552),l=o(61053),a=o(28104),s=o(20488),c=o(18877);const d=(0,n.createContext)(void 0);var u=o(21815),p=o(60685);const m=e=>{const{locale:t={},children:o,_ANT_MARK__:r}=e;n.useEffect((()=>(0,u.L)(t&&t.Modal)),[t]);const i=n.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return n.createElement(p.A.Provider,{value:i},o)};var g=o(30696),b=o(89864),f=o(50723),h=o(62279),$=o(20439),v=o(24978),y=o(20998),x=o(85089);const C=`-ant-${Date.now()}-${Math.random()}`;function S(e,t){const o=function(e,t){const o={},n=(e,t)=>{let o=e.clone();return o=(null==t?void 0:t(o))||o,o.toRgbString()},r=(e,t)=>{const r=new v.q(e),i=(0,$.cM)(r.toRgbString());o[`${t}-color`]=n(r),o[`${t}-color-disabled`]=i[1],o[`${t}-color-hover`]=i[4],o[`${t}-color-active`]=i[6],o[`${t}-color-outline`]=r.clone().setAlpha(.2).toRgbString(),o[`${t}-color-deprecated-bg`]=i[0],o[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){r(t.primaryColor,"primary");const e=new v.q(t.primaryColor),i=(0,$.cM)(e.toRgbString());i.forEach(((e,t)=>{o[`primary-${t+1}`]=e})),o["primary-color-deprecated-l-35"]=n(e,(e=>e.lighten(35))),o["primary-color-deprecated-l-20"]=n(e,(e=>e.lighten(20))),o["primary-color-deprecated-t-20"]=n(e,(e=>e.tint(20))),o["primary-color-deprecated-t-50"]=n(e,(e=>e.tint(50))),o["primary-color-deprecated-f-12"]=n(e,(e=>e.setAlpha(.12*e.getAlpha())));const l=new v.q(i[0]);o["primary-color-active-deprecated-f-30"]=n(l,(e=>e.setAlpha(.3*e.getAlpha()))),o["primary-color-active-deprecated-d-02"]=n(l,(e=>e.darken(2)))}return t.successColor&&r(t.successColor,"success"),t.warningColor&&r(t.warningColor,"warning"),t.errorColor&&r(t.errorColor,"error"),t.infoColor&&r(t.infoColor,"info"),`\n :root {\n ${Object.keys(o).map((t=>`--${e}-${t}: ${o[t]};`)).join("\n")}\n }\n `.trim()}(e,t);(0,y.A)()&&(0,x.BD)(o,`${C}-dynamic-theme`)}var O=o(98119),w=o(48224);const E=function(){return{componentDisabled:(0,n.useContext)(O.A),componentSize:(0,n.useContext)(w.A)}};var j=o(43210);const I=Object.assign({},r),{useId:k}=I,A=void 0===k?()=>"":k;var z=o(57557),B=o(365);function P(e){const{children:t}=e,[,o]=(0,B.Ay)(),{motion:r}=o,i=n.useRef(!1);return i.current=i.current||!1===r,i.current?n.createElement(z.Kq,{motion:r},t):t}const H=()=>null;var R=o(62366),M=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r({getPrefixCls:(e,t)=>t||(e?`${F()}-${e}`:F()),getIconPrefixCls:X,getRootPrefixCls:()=>N||F(),getTheme:()=>D,holderRender:W}),G=e=>{const{children:t,csp:o,autoInsertSpaceInButton:r,alert:u,anchor:p,form:$,locale:v,componentSize:y,direction:x,space:C,virtual:S,dropdownMatchSelectWidth:E,popupMatchSelectWidth:I,popupOverflow:k,legacyLocale:z,parentContext:B,iconPrefixCls:N,theme:L,componentDisabled:D,segmented:W,statistic:F,spin:X,calendar:q,carousel:G,cascader:_,collapse:V,typography:Q,checkbox:U,descriptions:K,divider:Y,drawer:Z,skeleton:J,steps:ee,image:te,layout:oe,list:ne,mentions:re,modal:ie,progress:le,result:ae,slider:se,breadcrumb:ce,menu:de,pagination:ue,input:pe,textArea:me,empty:ge,badge:be,radio:fe,rate:he,switch:$e,transfer:ve,avatar:ye,message:xe,tag:Ce,table:Se,card:Oe,tabs:we,timeline:Ee,timePicker:je,upload:Ie,notification:ke,tree:Ae,colorPicker:ze,datePicker:Be,rangePicker:Pe,flex:He,wave:Re,dropdown:Me,warning:Te,tour:Ne,floatButtonGroup:Le}=e,De=n.useCallback(((t,o)=>{const{prefixCls:n}=e;if(o)return o;const r=n||B.getPrefixCls("");return t?`${r}-${t}`:r}),[B.getPrefixCls,e.prefixCls]),We=N||B.iconPrefixCls||h.pM,Fe=o||B.csp;(0,R.A)(We,Fe);const Xe=function(e,t,o){var n;(0,c.rJ)("ConfigProvider");const r=e||{},i=!1!==r.inherit&&t?t:Object.assign(Object.assign({},b.sb),{hashed:null!==(n=null==t?void 0:t.hashed)&&void 0!==n?n:b.sb.hashed,cssVar:null==t?void 0:t.cssVar}),l=A();return(0,a.A)((()=>{var n,a;if(!e)return t;const s=Object.assign({},i.components);Object.keys(e.components||{}).forEach((t=>{s[t]=Object.assign(Object.assign({},s[t]),e.components[t])}));const c=`css-var-${l.replace(/:/g,"")}`,d=(null!==(n=r.cssVar)&&void 0!==n?n:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==o?void 0:o.prefixCls},"object"==typeof i.cssVar?i.cssVar:{}),"object"==typeof r.cssVar?r.cssVar:{}),{key:"object"==typeof r.cssVar&&(null===(a=r.cssVar)||void 0===a?void 0:a.key)||c});return Object.assign(Object.assign(Object.assign({},i),r),{token:Object.assign(Object.assign({},i.token),r.token),components:s,cssVar:d})}),[r,i],((e,t)=>e.some(((e,o)=>{const n=t[o];return!(0,j.A)(e,n,!0)}))))}(L,B.theme,{prefixCls:De("")});const qe={csp:Fe,autoInsertSpaceInButton:r,alert:u,anchor:p,locale:v||z,direction:x,space:C,virtual:S,popupMatchSelectWidth:null!=I?I:E,popupOverflow:k,getPrefixCls:De,iconPrefixCls:We,theme:Xe,segmented:W,statistic:F,spin:X,calendar:q,carousel:G,cascader:_,collapse:V,typography:Q,checkbox:U,descriptions:K,divider:Y,drawer:Z,skeleton:J,steps:ee,image:te,input:pe,textArea:me,layout:oe,list:ne,mentions:re,modal:ie,progress:le,result:ae,slider:se,breadcrumb:ce,menu:de,pagination:ue,empty:ge,badge:be,radio:fe,rate:he,switch:$e,transfer:ve,avatar:ye,message:xe,tag:Ce,table:Se,card:Oe,tabs:we,timeline:Ee,timePicker:je,upload:Ie,notification:ke,tree:Ae,colorPicker:ze,datePicker:Be,rangePicker:Pe,flex:He,wave:Re,dropdown:Me,warning:Te,tour:Ne,floatButtonGroup:Le},Ge=Object.assign({},B);Object.keys(qe).forEach((e=>{void 0!==qe[e]&&(Ge[e]=qe[e])})),T.forEach((t=>{const o=e[t];o&&(Ge[t]=o)}));const _e=(0,a.A)((()=>Ge),Ge,((e,t)=>{const o=Object.keys(e),n=Object.keys(t);return o.length!==n.length||o.some((o=>e[o]!==t[o]))})),Ve=n.useMemo((()=>({prefixCls:We,csp:Fe})),[We,Fe]);let Qe=n.createElement(n.Fragment,null,n.createElement(H,{dropdownMatchSelectWidth:E}),t);const Ue=n.useMemo((()=>{var e,t,o,n;return(0,s.h)((null===(e=g.A.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(o=null===(t=_e.locale)||void 0===t?void 0:t.Form)||void 0===o?void 0:o.defaultValidateMessages)||{},(null===(n=_e.form)||void 0===n?void 0:n.validateMessages)||{},(null==$?void 0:$.validateMessages)||{})}),[_e,null==$?void 0:$.validateMessages]);Object.keys(Ue).length>0&&(Qe=n.createElement(d.Provider,{value:Ue},Qe)),v&&(Qe=n.createElement(m,{locale:v,_ANT_MARK__:"internalMark"},Qe)),(We||Fe)&&(Qe=n.createElement(l.A.Provider,{value:Ve},Qe)),y&&(Qe=n.createElement(w.c,{size:y},Qe)),Qe=n.createElement(P,null,Qe);const Ke=n.useMemo((()=>{const e=Xe||{},{algorithm:t,token:o,components:n,cssVar:r}=e,l=M(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?(0,i.an)(t):b.zQ,s={};Object.entries(n||{}).forEach((e=>{let[t,o]=e;const n=Object.assign({},o);"algorithm"in n&&(!0===n.algorithm?n.theme=a:(Array.isArray(n.algorithm)||"function"==typeof n.algorithm)&&(n.theme=(0,i.an)(n.algorithm)),delete n.algorithm),s[t]=n}));const c=Object.assign(Object.assign({},f.A),o);return Object.assign(Object.assign({},l),{theme:a,token:c,components:s,override:Object.assign({override:c},s),cssVar:r})}),[Xe]);return L&&(Qe=n.createElement(b.vG.Provider,{value:Ke},Qe)),_e.warning&&(Qe=n.createElement(c._n.Provider,{value:_e.warning},Qe)),void 0!==D&&(Qe=n.createElement(O.X,{disabled:D},Qe)),n.createElement(h.QO.Provider,{value:_e},Qe)},_=e=>{const t=n.useContext(h.QO),o=n.useContext(p.A);return n.createElement(G,Object.assign({parentContext:t,legacyLocale:o},e))};_.ConfigContext=h.QO,_.SizeContext=w.A,_.config=e=>{const{prefixCls:t,iconPrefixCls:o,theme:n,holderRender:r}=e;void 0!==t&&(N=t),void 0!==o&&(L=o),"holderRender"in e&&(W=r),n&&(!function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(n)?D=n:S(F(),n))},_.useConfig=E,Object.defineProperty(_,"SizeContext",{get:()=>w.A});const V=_},94241:(e,t,o)=>{o.d(t,{$W:()=>r,Pp:()=>l,XB:()=>i});var n=o(96540);o(42013);const r=n.createContext({});const i=e=>{let{children:t,status:o,override:i}=e;const l=(0,n.useContext)(r),a=(0,n.useMemo)((()=>{const e=Object.assign({},l);return i&&delete e.isFormItemInput,o&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[o,i,l]);return n.createElement(r.Provider,{value:a},t)},l=(0,n.createContext)(void 0)},90124:(e,t,o)=>{o.d(t,{A:()=>l});var n=o(96540),r=o(94241);const i=["outlined","borderless","filled"],l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;const o=(0,n.useContext)(r.Pp);let l;l=void 0!==e?e:!1===t?"borderless":null!=o?o:"outlined";return[l,i.includes(l)]}},36121:(e,t,o)=>{o.d(t,{A:()=>n});const n=(0,o(96540).createContext)({})},25006:(e,t,o)=>{o.d(t,{L3:()=>s,xV:()=>c});var n=o(64552),r=o(20106),i=o(80336);const l=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},a=(e,t)=>((e,t)=>{const{prefixCls:o,componentCls:n,gridColumns:r}=e,i={};for(let e=r;e>=0;e--)0===e?(i[`${n}${t}-${e}`]={display:"none"},i[`${n}-push-${e}`]={insetInlineStart:"auto"},i[`${n}-pull-${e}`]={insetInlineEnd:"auto"},i[`${n}${t}-push-${e}`]={insetInlineStart:"auto"},i[`${n}${t}-pull-${e}`]={insetInlineEnd:"auto"},i[`${n}${t}-offset-${e}`]={marginInlineStart:0},i[`${n}${t}-order-${e}`]={order:0}):(i[`${n}${t}-${e}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${e/r*100}%`,maxWidth:e/r*100+"%"}],i[`${n}${t}-push-${e}`]={insetInlineStart:e/r*100+"%"},i[`${n}${t}-pull-${e}`]={insetInlineEnd:e/r*100+"%"},i[`${n}${t}-offset-${e}`]={marginInlineStart:e/r*100+"%"},i[`${n}${t}-order-${e}`]={order:e});return i[`${n}${t}-flex`]={flex:`var(--${o}${t}-flex)`},i})(e,t),s=(0,r.OF)("Grid",(e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}}),(()=>({}))),c=(0,r.OF)("Grid",(e=>{const t=(0,i.h1)(e,{gridColumns:24}),o={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[l(t),a(t,""),a(t,"-xs"),Object.keys(o).map((e=>((e,t,o)=>({[`@media (min-width: ${(0,n.zA)(t)})`]:Object.assign({},a(e,o))}))(t,o[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}),(()=>({})))},7142:(e,t,o)=>{o.d(t,{A:()=>H});var n=o(96540),r=o(14103),i=o(83853),l=o(46942),a=o.n(l),s=o(65829),c=o(58182),d=o(62279),u=o(78407),p=o(98119),m=o(20934),g=o(829),b=o(94241),f=o(90124),h=o(76327),$=o(64552),v=o(81594),y=o(44335),x=o(89222),C=o(25905),S=o(55974),O=o(20106),w=o(80336),E=o(24978);const j=(e,t)=>{let{componentCls:o,borderRadiusSM:n,borderRadiusLG:r}=e;const i="lg"===t?r:n;return{[`&-${t}`]:{[`${o}-handler-wrap`]:{borderStartEndRadius:i,borderEndEndRadius:i},[`${o}-handler-up`]:{borderStartEndRadius:i},[`${o}-handler-down`]:{borderEndEndRadius:i}}}},I=e=>{const{componentCls:t,lineWidth:o,lineType:n,borderRadius:r,fontSizeLG:i,controlHeightLG:l,controlHeightSM:a,colorError:s,paddingInlineSM:c,paddingBlockSM:d,paddingBlockLG:u,paddingInlineLG:p,colorTextDescription:m,motionDurationMid:g,handleHoverColor:b,paddingInline:f,paddingBlock:h,handleBg:y,handleActiveBg:S,colorTextDisabled:O,borderRadiusSM:w,borderRadiusLG:E,controlWidth:I,handleOpacity:k,handleBorderColor:A,filledHandleBg:z,lineHeightLG:B,calc:P}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,C.dF)(e)),(0,v.wj)(e)),{display:"inline-block",width:I,margin:0,padding:0,borderRadius:r}),(0,x.Eb)(e,{[`${t}-handler-wrap`]:{background:y,[`${t}-handler-down`]:{borderBlockStart:`${(0,$.zA)(o)} ${n} ${A}`}}})),(0,x.sA)(e,{[`${t}-handler-wrap`]:{background:z,[`${t}-handler-down`]:{borderBlockStart:`${(0,$.zA)(o)} ${n} ${A}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:y}}})),(0,x.lB)(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,lineHeight:B,borderRadius:E,[`input${t}-input`]:{height:P(l).sub(P(o).mul(2)).equal(),padding:`${(0,$.zA)(u)} ${(0,$.zA)(p)}`}},"&-sm":{padding:0,borderRadius:w,[`input${t}-input`]:{height:P(a).sub(P(o).mul(2)).equal(),padding:`${(0,$.zA)(d)} ${(0,$.zA)(c)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:s}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,C.dF)(e)),(0,v.XM)(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:E,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:w}}},(0,x.nm)(e)),(0,x.Vy)(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,C.dF)(e)),{width:"100%",padding:`${(0,$.zA)(h)} ${(0,$.zA)(f)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:r,outline:0,transition:`all ${g} linear`,appearance:"textfield",fontSize:"inherit"}),(0,v.j_)(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:Object.assign(Object.assign(Object.assign({[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",borderStartStartRadius:0,borderStartEndRadius:r,borderEndEndRadius:r,borderEndStartRadius:0,opacity:k,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${g} linear ${g}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:m,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,$.zA)(o)} ${n} ${A}`,transition:`all ${g} linear`,"&:active":{background:S},"&:hover":{height:"60%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{color:b}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,C.Nk)()),{color:m,transition:`all ${g} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:r},[`${t}-handler-down`]:{borderEndEndRadius:r}},j(e,"lg")),j(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`\n ${t}-handler-up-disabled,\n ${t}-handler-down-disabled\n `]:{cursor:"not-allowed"},[`\n ${t}-handler-up-disabled:hover &-handler-up-inner,\n ${t}-handler-down-disabled:hover &-handler-down-inner\n `]:{color:O}})}]},k=e=>{const{componentCls:t,paddingBlock:o,paddingInline:n,inputAffixPadding:r,controlWidth:i,borderRadiusLG:l,borderRadiusSM:a,paddingInlineLG:s,paddingInlineSM:c,paddingBlockLG:d,paddingBlockSM:u}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${(0,$.zA)(o)} 0`}},(0,v.wj)(e)),{position:"relative",display:"inline-flex",width:i,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:l,paddingInlineStart:s,[`input${t}-input`]:{padding:`${(0,$.zA)(d)} 0`}},"&-sm":{borderRadius:a,paddingInlineStart:c,[`input${t}-input`]:{padding:`${(0,$.zA)(u)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:r},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:n,marginInlineStart:r}}})}},A=(0,O.OF)("InputNumber",(e=>{const t=(0,w.h1)(e,(0,y.C)(e));return[I(t),k(t),(0,S.G)(t)]}),(e=>{var t;const o=null!==(t=e.handleVisible)&&void 0!==t?t:"auto";return Object.assign(Object.assign({},(0,y.b)(e)),{controlWidth:90,handleWidth:e.controlHeightSM-2*e.lineWidth,handleFontSize:e.fontSize/2,handleVisible:o,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new E.q(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:!0===o?1:0})}),{unitless:{handleOpacity:!0}});var z=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:o,direction:l}=n.useContext(d.QO),u=n.useRef(null);n.useImperativeHandle(t,(()=>u.current));const{className:$,rootClassName:v,size:y,disabled:x,prefixCls:C,addonBefore:S,addonAfter:O,prefix:w,bordered:E,readOnly:j,status:I,controls:k,variant:B}=e,P=z(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls","variant"]),H=o("input-number",C),R=(0,m.A)(H),[M,T,N]=A(H,R),{compactSize:L,compactItemClassnames:D}=(0,h.RQ)(H,l);let W=n.createElement(i.A,{className:`${H}-handler-up-inner`}),F=n.createElement(r.A,{className:`${H}-handler-down-inner`});const X="boolean"==typeof k?k:void 0;"object"==typeof k&&(W=void 0===k.upIcon?W:n.createElement("span",{className:`${H}-handler-up-inner`},k.upIcon),F=void 0===k.downIcon?F:n.createElement("span",{className:`${H}-handler-down-inner`},k.downIcon));const{hasFeedback:q,status:G,isFormItemInput:_,feedbackIcon:V}=n.useContext(b.$W),Q=(0,c.v)(G,I),U=(0,g.A)((e=>{var t;return null!==(t=null!=y?y:L)&&void 0!==t?t:e})),K=n.useContext(p.A),Y=null!=x?x:K,[Z,J]=(0,f.A)(B,E),ee=q&&n.createElement(n.Fragment,null,V),te=a()({[`${H}-lg`]:"large"===U,[`${H}-sm`]:"small"===U,[`${H}-rtl`]:"rtl"===l,[`${H}-in-form-item`]:_},T),oe=`${H}-group`;return M(n.createElement(s.A,Object.assign({ref:u,disabled:Y,className:a()(N,R,$,v,D),upHandler:W,downHandler:F,prefixCls:H,readOnly:j,controls:X,prefix:w,suffix:ee,addonAfter:O&&n.createElement(h.K6,null,n.createElement(b.XB,{override:!0,status:!0},O)),addonBefore:S&&n.createElement(h.K6,null,n.createElement(b.XB,{override:!0,status:!0},S)),classNames:{input:te,variant:a()({[`${H}-${Z}`]:J},(0,c.L)(H,Q,q)),affixWrapper:a()({[`${H}-affix-wrapper-sm`]:"small"===U,[`${H}-affix-wrapper-lg`]:"large"===U,[`${H}-affix-wrapper-rtl`]:"rtl"===l},T),wrapper:a()({[`${oe}-rtl`]:"rtl"===l},T),groupWrapper:a()({[`${H}-group-wrapper-sm`]:"small"===U,[`${H}-group-wrapper-lg`]:"large"===U,[`${H}-group-wrapper-rtl`]:"rtl"===l,[`${H}-group-wrapper-${Z}`]:J},(0,c.L)(`${H}-group-wrapper`,Q,q),T)}},P)))})),P=B;P._InternalPanelDoNotUseOrYouWillBeFired=e=>n.createElement(u.Ay,{theme:{components:{InputNumber:{handleVisible:!0}}}},n.createElement(B,Object.assign({},e)));const H=P},27444:(e,t,o)=>{o.d(t,{A:()=>ee});var n=o(96540),r=o(46942),i=o.n(r),l=o(62279),a=o(94241),s=o(81594);const c=e=>{const{getPrefixCls:t,direction:o}=(0,n.useContext)(l.QO),{prefixCls:r,className:c}=e,d=t("input-group",r),u=t("input"),[p,m]=(0,s.Ay)(u),g=i()(d,{[`${d}-lg`]:"large"===e.size,[`${d}-sm`]:"small"===e.size,[`${d}-compact`]:e.compact,[`${d}-rtl`]:"rtl"===o},m,c),b=(0,n.useContext)(a.$W),f=(0,n.useMemo)((()=>Object.assign(Object.assign({},b),{isFormItemInput:!1})),[b]);return p(n.createElement("span",{className:g,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},n.createElement(a.$W.Provider,{value:f},e.children)))};var d=o(48491),u=o(8719),p=o(36029);const m=e=>{let t;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?t=e:e&&(t={clearIcon:n.createElement(p.A,null)}),t};var g=o(58182),b=o(98119),f=o(20934),h=o(829),$=o(90124),v=o(76327);function y(e,t){const o=(0,n.useRef)([]),r=()=>{o.current.push(setTimeout((()=>{var t,o,n,r;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(o=e.current)||void 0===o?void 0:o.input.getAttribute("type"))&&(null===(n=e.current)||void 0===n?void 0:n.input.hasAttribute("value"))&&(null===(r=e.current)||void 0===r||r.input.removeAttribute("value"))})))};return(0,n.useEffect)((()=>(t&&r(),()=>o.current.forEach((e=>{e&&clearTimeout(e)})))),[]),r}var x=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{var o;const{prefixCls:r,bordered:c=!0,status:p,size:C,disabled:S,onBlur:O,onFocus:w,suffix:E,allowClear:j,addonAfter:I,addonBefore:k,className:A,style:z,styles:B,rootClassName:P,onChange:H,classNames:R,variant:M}=e,T=x(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);const{getPrefixCls:N,direction:L,input:D}=n.useContext(l.QO),W=N("input",r),F=(0,n.useRef)(null),X=(0,f.A)(W),[q,G,_]=(0,s.Ay)(W,X),{compactSize:V,compactItemClassnames:Q}=(0,v.RQ)(W,L),U=(0,h.A)((e=>{var t;return null!==(t=null!=C?C:V)&&void 0!==t?t:e})),K=n.useContext(b.A),Y=null!=S?S:K,{status:Z,hasFeedback:J,feedbackIcon:ee}=(0,n.useContext)(a.$W),te=(0,g.v)(Z,p),oe=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!J;(0,n.useRef)(oe);const ne=y(F,!0),re=(J||E)&&n.createElement(n.Fragment,null,E,J&&ee),ie=m(null!=j?j:null==D?void 0:D.allowClear),[le,ae]=(0,$.A)(M,c);return q(n.createElement(d.A,Object.assign({ref:(0,u.K4)(t,F),prefixCls:W,autoComplete:null==D?void 0:D.autoComplete},T,{disabled:Y,onBlur:e=>{ne(),null==O||O(e)},onFocus:e=>{ne(),null==w||w(e)},style:Object.assign(Object.assign({},null==D?void 0:D.style),z),styles:Object.assign(Object.assign({},null==D?void 0:D.styles),B),suffix:re,allowClear:ie,className:i()(A,P,_,X,Q,null==D?void 0:D.className),onChange:e=>{ne(),null==H||H(e)},addonAfter:I&&n.createElement(v.K6,null,n.createElement(a.XB,{override:!0,status:!0},I)),addonBefore:k&&n.createElement(v.K6,null,n.createElement(a.XB,{override:!0,status:!0},k)),classNames:Object.assign(Object.assign(Object.assign({},R),null==D?void 0:D.classNames),{input:i()({[`${W}-sm`]:"small"===U,[`${W}-lg`]:"large"===U,[`${W}-rtl`]:"rtl"===L},null==R?void 0:R.input,null===(o=null==D?void 0:D.classNames)||void 0===o?void 0:o.input,G),variant:i()({[`${W}-${le}`]:ae},(0,g.L)(W,te)),affixWrapper:i()({[`${W}-affix-wrapper-sm`]:"small"===U,[`${W}-affix-wrapper-lg`]:"large"===U,[`${W}-affix-wrapper-rtl`]:"rtl"===L},G),wrapper:i()({[`${W}-group-rtl`]:"rtl"===L},G),groupWrapper:i()({[`${W}-group-wrapper-sm`]:"small"===U,[`${W}-group-wrapper-lg`]:"large"===U,[`${W}-group-wrapper-rtl`]:"rtl"===L,[`${W}-group-wrapper-${le}`]:ae},(0,g.L)(`${W}-group-wrapper`,te,J),G)})})))}));const S=C;var O=o(60436),w=o(81470),E=o(72065),j=o(20106),I=o(80336),k=o(44335);const A=e=>{const{componentCls:t,paddingXS:o}=e;return{[`${t}`]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:o,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},z=(0,j.OF)(["Input","OTP"],(e=>{const t=(0,I.h1)(e,(0,k.C)(e));return[A(t)]}),k.b);var B=o(25371),P=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{value:o,onChange:r,onActiveChange:i,index:l}=e,a=P(e,["value","onChange","onActiveChange","index"]),s=n.useRef(null);n.useImperativeHandle(t,(()=>s.current));const c=()=>{(0,B.A)((()=>{var e;const t=null===(e=s.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()}))};return n.createElement(S,Object.assign({},a,{ref:s,value:o,onInput:e=>{r(l,e.target.value)},onFocus:c,onKeyDown:e=>{let{key:t}=e;"ArrowLeft"===t?i(l-1):"ArrowRight"===t&&i(l+1),c()},onKeyUp:e=>{"Backspace"!==e.key||o||i(l-1),c()},onMouseDown:c,onMouseUp:c}))}));var R=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{prefixCls:o,length:r=6,size:s,defaultValue:c,value:d,onChange:u,formatter:p,variant:m,disabled:b,status:$,autoFocus:v}=e,y=R(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus"]),{getPrefixCls:x,direction:C}=n.useContext(l.QO),S=x("otp",o),j=(0,E.A)(y,{aria:!0,data:!0,attr:!0}),I=(0,f.A)(S),[k,A,B]=z(S,I),P=(0,h.A)((e=>null!=s?s:e)),T=n.useContext(a.$W),N=(0,g.v)(T.status,$),L=n.useMemo((()=>Object.assign(Object.assign({},T),{status:N,hasFeedback:!1,feedbackIcon:null})),[T,N]),D=n.useRef(null),W=n.useRef({});n.useImperativeHandle(t,(()=>({focus:()=>{var e;null===(e=W.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;tp?p(e):e,[X,q]=n.useState(M(F(c||"")));n.useEffect((()=>{void 0!==d&&q(M(d))}),[d]);const G=(0,w._q)((e=>{q(e),u&&e.length===r&&e.every((e=>e))&&e.some(((e,t)=>X[t]!==e))&&u(e.join(""))})),_=(0,w._q)(((e,t)=>{let o=(0,O.A)(X);for(let t=0;t=0&&!o[e];e-=1)o.pop();const n=F(o.map((e=>e||" ")).join(""));return o=M(n).map(((e,t)=>" "!==e||o[t]?e:o[t])),o})),V=(e,t)=>{var o;const n=_(e,t),i=Math.min(e+t.length,r-1);i!==e&&(null===(o=W.current[i])||void 0===o||o.focus()),G(n)},Q=e=>{var t;null===(t=W.current[e])||void 0===t||t.focus()},U={variant:m,disabled:b,status:N};return k(n.createElement("div",Object.assign({},j,{ref:D,className:i()(S,{[`${S}-sm`]:"small"===P,[`${S}-lg`]:"large"===P,[`${S}-rtl`]:"rtl"===C},B,A)}),n.createElement(a.$W.Provider,{value:L},new Array(r).fill(0).map(((e,t)=>{const o=`otp-${t}`,r=X[t]||"";return n.createElement(H,Object.assign({ref:e=>{W.current[t]=e},key:o,index:t,size:P,htmlSize:1,className:`${S}-input`,onChange:V,value:r,onActiveChange:Q,autoFocus:0===t&&v},U))})))))}));var N=o(8597),L=o(30234),D=o(19853),W=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);re?n.createElement(L.A,null):n.createElement(N.A,null),X={click:"onClick",hover:"onMouseOver"};const q=n.forwardRef(((e,t)=>{const{visibilityToggle:o=!0}=e,r="object"==typeof o&&void 0!==o.visible,[a,s]=(0,n.useState)((()=>!!r&&o.visible)),c=(0,n.useRef)(null);n.useEffect((()=>{r&&s(o.visible)}),[r,o]);const d=y(c),p=()=>{const{disabled:t}=e;t||(a&&d(),s((e=>{var t;const n=!e;return"object"==typeof o&&(null===(t=o.onVisibleChange)||void 0===t||t.call(o,n)),n})))},{className:m,prefixCls:g,inputPrefixCls:b,size:f}=e,h=W(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:$}=n.useContext(l.QO),v=$("input",b),x=$("input-password",g),C=o&&(t=>{const{action:o="click",iconRender:r=F}=e,i=X[o]||"",l=r(a),s={[i]:p,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return n.cloneElement(n.isValidElement(l)?l:n.createElement("span",null,l),s)})(x),O=i()(x,m,{[`${x}-${f}`]:!!f}),w=Object.assign(Object.assign({},(0,D.A)(h,["suffix","iconRender","visibilityToggle"])),{type:a?"text":"password",className:O,prefixCls:v,suffix:C});return f&&(w.size=f),n.createElement(S,Object.assign({ref:(0,u.K4)(t,c)},w))}));var G=o(42877),_=o(40682),V=o(68777),Q=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{prefixCls:o,inputPrefixCls:r,className:a,size:s,suffix:c,enterButton:d=!1,addonAfter:p,loading:m,disabled:g,onSearch:b,onChange:f,onCompositionStart:$,onCompositionEnd:y}=e,x=Q(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:C,direction:O}=n.useContext(l.QO),w=n.useRef(!1),E=C("input-search",o),j=C("input",r),{compactSize:I}=(0,v.RQ)(E,O),k=(0,h.A)((e=>{var t;return null!==(t=null!=s?s:I)&&void 0!==t?t:e})),A=n.useRef(null),z=e=>{var t;document.activeElement===(null===(t=A.current)||void 0===t?void 0:t.input)&&e.preventDefault()},B=e=>{var t,o;b&&b(null===(o=null===(t=A.current)||void 0===t?void 0:t.input)||void 0===o?void 0:o.value,e,{source:"input"})},P="boolean"==typeof d?n.createElement(G.A,null):null,H=`${E}-button`;let R;const M=d||{},T=M.type&&!0===M.type.__ANT_BUTTON;R=T||"button"===M.type?(0,_.Ob)(M,Object.assign({onMouseDown:z,onClick:e=>{var t,o;null===(o=null===(t=null==M?void 0:M.props)||void 0===t?void 0:t.onClick)||void 0===o||o.call(t,e),B(e)},key:"enterButton"},T?{className:H,size:k}:{})):n.createElement(V.Ay,{className:H,type:d?"primary":void 0,size:k,disabled:g,key:"enterButton",onMouseDown:z,onClick:B,loading:m,icon:P},d),p&&(R=[R,(0,_.Ob)(p,{key:"addonAfter"})]);const N=i()(E,{[`${E}-rtl`]:"rtl"===O,[`${E}-${k}`]:!!k,[`${E}-with-button`]:!!d},a);return n.createElement(S,Object.assign({ref:(0,u.K4)(A,t),onPressEnter:e=>{w.current||m||B(e)}},x,{size:k,onCompositionStart:e=>{w.current=!0,null==$||$(e)},onCompositionEnd:e=>{w.current=!1,null==y||y(e)},prefixCls:j,addonAfter:R,suffix:c,onChange:e=>{e&&e.target&&"click"===e.type&&b&&b(e.target.value,e,{source:"clear"}),f&&f(e)},className:N,disabled:g}))}));var K=o(9919),Y=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{var o,r;const{prefixCls:c,bordered:d=!0,size:u,disabled:p,status:v,allowClear:y,classNames:x,rootClassName:C,className:S,style:O,styles:w,variant:E}=e,j=Y(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);const{getPrefixCls:I,direction:k,textArea:A}=n.useContext(l.QO),z=(0,h.A)(u),B=n.useContext(b.A),P=null!=p?p:B,{status:H,hasFeedback:R,feedbackIcon:M}=n.useContext(a.$W),T=(0,g.v)(H,v),N=n.useRef(null);n.useImperativeHandle(t,(()=>{var e;return{resizableTextArea:null===(e=N.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,o;!function(e,t){if(!e)return;e.focus(t);const{cursor:o}=t||{};if(o){const t=e.value.length;switch(o){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(null===(o=null===(t=N.current)||void 0===t?void 0:t.resizableTextArea)||void 0===o?void 0:o.textArea,e)},blur:()=>{var e;return null===(e=N.current)||void 0===e?void 0:e.blur()}}}));const L=I("input",c),D=(0,f.A)(L),[W,F,X]=(0,s.Ay)(L,D),[q,G]=(0,$.A)(E,d),_=m(null!=y?y:null==A?void 0:A.allowClear);return W(n.createElement(K.A,Object.assign({autoComplete:null==A?void 0:A.autoComplete},j,{style:Object.assign(Object.assign({},null==A?void 0:A.style),O),styles:Object.assign(Object.assign({},null==A?void 0:A.styles),w),disabled:P,allowClear:_,className:i()(X,D,S,C,null==A?void 0:A.className),classNames:Object.assign(Object.assign(Object.assign({},x),null==A?void 0:A.classNames),{textarea:i()({[`${L}-sm`]:"small"===z,[`${L}-lg`]:"large"===z},F,null==x?void 0:x.textarea,null===(o=null==A?void 0:A.classNames)||void 0===o?void 0:o.textarea),variant:i()({[`${L}-${q}`]:G},(0,g.L)(L,T)),affixWrapper:i()(`${L}-textarea-affix-wrapper`,{[`${L}-affix-wrapper-rtl`]:"rtl"===k,[`${L}-affix-wrapper-sm`]:"small"===z,[`${L}-affix-wrapper-lg`]:"large"===z,[`${L}-textarea-show-count`]:e.showCount||(null===(r=e.count)||void 0===r?void 0:r.show)},F)}),prefixCls:L,suffix:R&&n.createElement("span",{className:`${L}-textarea-suffix`},M),ref:N})))})),J=S;J.Group=c,J.Search=U,J.TextArea=Z,J.Password=q,J.OTP=T;const ee=J},81594:(e,t,o)=>{o.d(t,{Ay:()=>C,XM:()=>g,j_:()=>d,wj:()=>m});var n=o(64552),r=o(25905),i=o(55974),l=o(20106),a=o(80336),s=o(44335),c=o(89222);const d=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),u=e=>{const{paddingBlockLG:t,lineHeightLG:o,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${(0,n.zA)(t)} ${(0,n.zA)(i)}`,fontSize:e.inputFontSizeLG,lineHeight:o,borderRadius:r}},p=e=>({padding:`${(0,n.zA)(e.paddingBlockSM)} ${(0,n.zA)(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),m=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${(0,n.zA)(e.paddingBlock)} ${(0,n.zA)(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},d(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},u(e)),"&-sm":Object.assign({},p(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),g=e=>{const{componentCls:t,antCls:o}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},u(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},p(e)),[`&-lg ${o}-select-single ${o}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${o}-select-single ${o}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${(0,n.zA)(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${o}-select`]:{margin:`${(0,n.zA)(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${(0,n.zA)(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${o}-select-single:not(${o}-select-customize-input):not(${o}-pagination-size-changer)`]:{[`${o}-select-selector`]:{backgroundColor:"inherit",border:`${(0,n.zA)(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${o}-select-selector`]:{color:e.colorPrimary}}},[`${o}-cascader-picker`]:{margin:`-9px ${(0,n.zA)(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${o}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${o}-select ${o}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${o}-select ${o}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,r.t6)()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${o}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${o}-select > ${o}-select-selector,\n & > ${o}-select-auto-complete ${t},\n & > ${o}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${o}-select-focused`]:{zIndex:1},[`& > ${o}-select > ${o}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${o}-select:first-child > ${o}-select-selector,\n & > ${o}-select-auto-complete:first-child ${t},\n & > ${o}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${o}-select:last-child > ${o}-select-selector,\n & > ${o}-cascader-picker:last-child ${t},\n & > ${o}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${o}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},b=e=>{const{componentCls:t,controlHeightSM:o,lineWidth:n,calc:i}=e,l=i(o).sub(i(n).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,r.dF)(e)),m(e)),(0,c.Eb)(e)),(0,c.sA)(e)),(0,c.lB)(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:o,paddingTop:l,paddingBottom:l}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},f=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${(0,n.zA)(e.inputAffixPadding)}`}}}},h=e=>{const{componentCls:t,inputAffixPadding:o,colorTextDescription:n,motionDurationSlow:r,colorIcon:i,colorIconHover:l,iconCls:a}=e,s=`${t}-affix-wrapper`;return{[s]:Object.assign(Object.assign(Object.assign(Object.assign({},m(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:n},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:o},"&-suffix":{marginInlineStart:o}}}),f(e)),{[`${a}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${r}`,"&:hover":{color:l}}})}},$=e=>{const{componentCls:t,borderRadiusLG:o,borderRadiusSM:n}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},(0,r.dF)(e)),g(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:n}}},(0,c.nm)(e)),(0,c.Vy)(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},v=e=>{const{componentCls:t,antCls:o}=e,n=`${t}-search`;return{[n]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${n}-button:not(${o}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal({unit:!1})},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${n}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${n}-button:not(${o}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${o}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${n}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${n}-button`]:{height:e.controlHeightLG},[`&-small ${n}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},y=e=>{const{componentCls:t,paddingLG:o}=e,n=`${t}-textarea`;return{[n]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:o}},[`&-affix-wrapper${n}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:o}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},x=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},C=(0,l.OF)("Input",(e=>{const t=(0,a.h1)(e,(0,s.C)(e));return[b(t),y(t),h(t),$(t),v(t),x(t),(0,i.G)(t)]}),s.b,{resetFont:!1})},44335:(e,t,o)=>{o.d(t,{C:()=>r,b:()=>i});var n=o(80336);function r(e){return(0,n.h1)(e,{inputAffixPadding:e.paddingXXS})}const i=e=>{const{controlHeight:t,fontSize:o,lineHeight:n,lineWidth:r,controlHeightSM:i,controlHeightLG:l,fontSizeLG:a,lineHeightLG:s,paddingSM:c,controlPaddingHorizontalSM:d,controlPaddingHorizontal:u,colorFillAlter:p,colorPrimaryHover:m,colorPrimary:g,controlOutlineWidth:b,controlOutline:f,colorErrorOutline:h,colorWarningOutline:$,colorBgContainer:v}=e;return{paddingBlock:Math.max(Math.round((t-o*n)/2*10)/10-r,0),paddingBlockSM:Math.max(Math.round((i-o*n)/2*10)/10-r,0),paddingBlockLG:Math.ceil((l-a*s)/2*10)/10-r,paddingInline:c-r,paddingInlineSM:d-r,paddingInlineLG:u-r,addonBg:p,activeBorderColor:g,hoverBorderColor:m,activeShadow:`0 0 0 ${b}px ${f}`,errorActiveShadow:`0 0 0 ${b}px ${h}`,warningActiveShadow:`0 0 0 ${b}px ${$}`,hoverBg:v,activeBg:v,inputFontSize:o,inputFontSizeLG:a,inputFontSizeSM:o}}},89222:(e,t,o)=>{o.d(t,{Eb:()=>c,Vy:()=>h,lB:()=>p,nm:()=>u,sA:()=>b});var n=o(64552),r=o(80336);const i=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),l=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},i((0,r.h1)(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),a=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),s=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},a(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),c=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},a(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},l(e))}),s(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),s(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),d=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),u=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${(0,n.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},d(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),d(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},l(e))}})}),p=(e,t)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled}},t)}),m=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null==t?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),g=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},m(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),b=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},m(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},l(e))}),g(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),g(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),f=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),h=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${(0,n.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${(0,n.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},f(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),f(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${(0,n.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${(0,n.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${(0,n.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${(0,n.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${(0,n.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${(0,n.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})})},60685:(e,t,o)=>{o.d(t,{A:()=>n});const n=(0,o(96540).createContext)(void 0)},30696:(e,t,o)=>{o.d(t,{A:()=>c});var n=o(96069),r=o(64395);const i={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},l={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},r.A),timePickerLocale:Object.assign({},i)},a=l,s="${label} is not a valid ${type}",c={locale:"en",Pagination:n.A,DatePicker:l,TimePicker:i,Calendar:a,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:s,method:s,array:s,object:s,number:s,date:s,boolean:s,integer:s,float:s,regexp:s,email:s,url:s,hex:s},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty"}}},19155:(e,t,o)=>{o.d(t,{A:()=>l});var n=o(96540),r=o(60685),i=o(30696);const l=(e,t)=>{const o=n.useContext(r.A);return[n.useMemo((()=>{var n;const r=t||i.A[e],l=null!==(n=null==o?void 0:o[e])&&void 0!==n?n:{};return Object.assign(Object.assign({},"function"==typeof r?r():r),l||{})}),[e,t,o]),n.useMemo((()=>{const e=null==o?void 0:o.locale;return(null==o?void 0:o.exist)&&!e?i.A.locale:e}),[o])]}},75816:(e,t,o)=>{o.d(t,{A:()=>Z});var n=o(96540),r=o(48810),i=o(46942),l=o.n(i);const a=n.createContext({});(()=>{let e=0})();var s=o(52318),c=o(81470),d=o(19853),u=o(23723),p=o(40682),m=o(62279),g=o(20934),b=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,className:o,dashed:i}=e,a=b(e,["prefixCls","className","dashed"]),{getPrefixCls:s}=n.useContext(m.QO),c=s("menu",t),d=l()({[`${c}-item-divider-dashed`]:!!i},o);return n.createElement(r.cG,Object.assign({className:d},a))};var h=o(82546),$=o(26211);const v=(0,n.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),y=e=>{var t;const{className:o,children:i,icon:s,title:c,danger:u}=e,{prefixCls:m,firstLevel:g,direction:b,disableMenuItemTitleTooltip:f,inlineCollapsed:y}=n.useContext(v),{siderCollapsed:x}=n.useContext(a);let C=c;void 0===c?C=g?i:"":!1===c&&(C="");const S={title:C};x||y||(S.title=null,S.open=!1);const O=(0,h.A)(i).length;let w=n.createElement(r.q7,Object.assign({},(0,d.A)(e,["title","icon","danger"]),{className:l()({[`${m}-item-danger`]:u,[`${m}-item-only-child`]:1===(s?O+1:O)},o),title:"string"==typeof c?c:void 0}),(0,p.Ob)(s,{className:l()(n.isValidElement(s)?null===(t=s.props)||void 0===t?void 0:t.className:"",`${m}-item-icon`)}),(e=>{const t=n.createElement("span",{className:`${m}-title-content`},i);return(!s||n.isValidElement(i)&&"span"===i.type)&&i&&e&&g&&"string"==typeof i?n.createElement("div",{className:`${m}-inline-collapsed-noicon`},i.charAt(0)):t})(y));return f||(w=n.createElement($.A,Object.assign({},S,{placement:"rtl"===b?"left":"right",overlayClassName:`${m}-inline-collapsed-tooltip`}),w)),w};var x=o(60275);const C=e=>{var t;const{popupClassName:o,icon:i,title:a,theme:s}=e,c=n.useContext(v),{prefixCls:u,inlineCollapsed:m,theme:g}=c,b=(0,r.Wj)();let f;if(i){const e=n.isValidElement(a)&&"span"===a.type;f=n.createElement(n.Fragment,null,(0,p.Ob)(i,{className:l()(n.isValidElement(i)?null===(t=i.props)||void 0===t?void 0:t.className:"",`${u}-item-icon`)}),e?a:n.createElement("span",{className:`${u}-title-content`},a))}else f=m&&!b.length&&a&&"string"==typeof a?n.createElement("div",{className:`${u}-inline-collapsed-noicon`},a.charAt(0)):n.createElement("span",{className:`${u}-title-content`},a);const h=n.useMemo((()=>Object.assign(Object.assign({},c),{firstLevel:!1})),[c]),[$]=(0,x.YK)("Menu");return n.createElement(v.Provider,{value:h},n.createElement(r.g8,Object.assign({},(0,d.A)(e,["icon"]),{title:f,popupClassName:l()(u,o,`${u}-${s||g}`),popupStyle:{zIndex:$}})))};var S=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{if(e&&"object"==typeof e){const o=e,{label:i,children:l,key:a,type:s}=o,c=S(o,["label","children","key","type"]),d=null!=a?a:`tmp-${t}`;return l||"group"===s?"group"===s?n.createElement(r.te,Object.assign({key:d},c,{title:i}),O(l)):n.createElement(C,Object.assign({key:d},c,{title:i}),O(l)):"divider"===s?n.createElement(f,Object.assign({key:d},c)):n.createElement(y,Object.assign({key:d},c),i)}return null})).filter((e=>e))}function w(e){return n.useMemo((()=>e?O(e):e),[e])}const E=n.createContext(null),j=E;var I=o(64552),k=o(24978),A=o(25905),z=o(60977),B=o(53561),P=o(99077),H=o(20106),R=o(80336);const M=e=>{const{componentCls:t,motionDurationSlow:o,horizontalLineHeight:n,colorSplit:r,lineWidth:i,lineType:l,itemPaddingInline:a}=e;return{[`${t}-horizontal`]:{lineHeight:n,border:0,borderBottom:`${(0,I.zA)(i)} ${l} ${r}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:a},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${o}`,`background ${o}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},T=e=>{let{componentCls:t,menuArrowOffset:o,calc:n}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,I.zA)(n(o).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,I.zA)(o)})`}}}}},N=e=>Object.assign({},(0,A.jk)(e)),L=(e,t)=>{const{componentCls:o,itemColor:n,itemSelectedColor:r,groupTitleColor:i,itemBg:l,subMenuItemBg:a,itemSelectedBg:s,activeBarHeight:c,activeBarWidth:d,activeBarBorderWidth:u,motionDurationSlow:p,motionEaseInOut:m,motionEaseOut:g,itemPaddingInline:b,motionDurationMid:f,itemHoverColor:h,lineType:$,colorSplit:v,itemDisabledColor:y,dangerItemColor:x,dangerItemHoverColor:C,dangerItemSelectedColor:S,dangerItemActiveBg:O,dangerItemSelectedBg:w,popupBg:E,itemHoverBg:j,itemActiveBg:k,menuSubMenuBg:A,horizontalItemSelectedColor:z,horizontalItemSelectedBg:B,horizontalItemBorderRadius:P,horizontalItemHoverBg:H}=e;return{[`${o}-${t}, ${o}-${t} > ${o}`]:{color:n,background:l,[`&${o}-root:focus-visible`]:Object.assign({},N(e)),[`${o}-item-group-title`]:{color:i},[`${o}-submenu-selected`]:{[`> ${o}-submenu-title`]:{color:r}},[`${o}-item, ${o}-submenu-title`]:{color:n,[`&:not(${o}-item-disabled):focus-visible`]:Object.assign({},N(e))},[`${o}-item-disabled, ${o}-submenu-disabled`]:{color:`${y} !important`},[`${o}-item:not(${o}-item-selected):not(${o}-submenu-selected)`]:{[`&:hover, > ${o}-submenu-title:hover`]:{color:h}},[`&:not(${o}-horizontal)`]:{[`${o}-item:not(${o}-item-selected)`]:{"&:hover":{backgroundColor:j},"&:active":{backgroundColor:k}},[`${o}-submenu-title`]:{"&:hover":{backgroundColor:j},"&:active":{backgroundColor:k}}},[`${o}-item-danger`]:{color:x,[`&${o}-item:hover`]:{[`&:not(${o}-item-selected):not(${o}-submenu-selected)`]:{color:C}},[`&${o}-item:active`]:{background:O}},[`${o}-item a`]:{"&, &:hover":{color:"inherit"}},[`${o}-item-selected`]:{color:r,[`&${o}-item-danger`]:{color:S},"a, a:hover":{color:"inherit"}},[`& ${o}-item-selected`]:{backgroundColor:s,[`&${o}-item-danger`]:{backgroundColor:w}},[`&${o}-submenu > ${o}`]:{backgroundColor:A},[`&${o}-popup > ${o}`]:{backgroundColor:E},[`&${o}-submenu-popup > ${o}`]:{backgroundColor:E},[`&${o}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${o}-item, > ${o}-submenu`]:{top:u,marginTop:e.calc(u).mul(-1).equal(),marginBottom:0,borderRadius:P,"&::after":{position:"absolute",insetInline:b,bottom:0,borderBottom:`${(0,I.zA)(c)} solid transparent`,transition:`border-color ${p} ${m}`,content:'""'},"&:hover, &-active, &-open":{background:H,"&::after":{borderBottomWidth:c,borderBottomColor:z}},"&-selected":{color:z,backgroundColor:B,"&:hover":{backgroundColor:B},"&::after":{borderBottomWidth:c,borderBottomColor:z}}}}),[`&${o}-root`]:{[`&${o}-inline, &${o}-vertical`]:{borderInlineEnd:`${(0,I.zA)(u)} ${$} ${v}`}},[`&${o}-inline`]:{[`${o}-sub${o}-inline`]:{background:a},[`${o}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,I.zA)(d)} solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${f} ${g}`,`opacity ${f} ${g}`].join(","),content:'""'},[`&${o}-item-danger`]:{"&::after":{borderInlineEndColor:S}}},[`${o}-selected, ${o}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${f} ${m}`,`opacity ${f} ${m}`].join(",")}}}}}},D=e=>{const{componentCls:t,itemHeight:o,itemMarginInline:n,padding:r,menuArrowSize:i,marginXS:l,itemMarginBlock:a,itemWidth:s}=e,c=e.calc(i).add(r).add(l).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:o,lineHeight:(0,I.zA)(o),paddingInline:r,overflow:"hidden",textOverflow:"ellipsis",marginInline:n,marginBlock:a,width:s},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:o,lineHeight:(0,I.zA)(o)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:c}}},W=e=>{const{componentCls:t,iconCls:o,itemHeight:n,colorTextLightSolid:r,dropdownWidth:i,controlHeightLG:l,motionDurationMid:a,motionEaseOut:s,paddingXL:c,itemMarginInline:d,fontSizeLG:u,motionDurationSlow:p,paddingXS:m,boxShadowSecondary:g,collapsedWidth:b,collapsedIconSize:f}=e,h={height:n,lineHeight:(0,I.zA)(n),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},D(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},D(e)),{boxShadow:g})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${(0,I.zA)(e.calc(l).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${p}`,`background ${p}`,`padding ${a} ${s}`,`padding-inline calc(50% - ${(0,I.zA)(e.calc(u).div(2).equal())} - ${(0,I.zA)(d)})`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:h,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:h}},{[`${t}-inline-collapsed`]:{width:b,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,I.zA)(e.calc(u).div(2).equal())} - ${(0,I.zA)(d)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${o}`]:{margin:0,fontSize:f,lineHeight:(0,I.zA)(n),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${o}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${o}`]:{display:"none"},"a, a:hover":{color:r}},[`${t}-item-group-title`]:Object.assign(Object.assign({},A.L9),{paddingInline:m})}}]},F=e=>{const{componentCls:t,motionDurationSlow:o,motionDurationMid:n,motionEaseInOut:r,motionEaseOut:i,iconCls:l,iconSize:a,iconMarginInlineEnd:s}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${o}`,`background ${o}`,`padding ${o} ${r}`].join(","),[`${t}-item-icon, ${l}`]:{minWidth:a,fontSize:a,transition:[`font-size ${n} ${i}`,`margin ${o} ${r}`,`color ${o}`].join(","),"+ span":{marginInlineStart:s,opacity:1,transition:[`opacity ${o} ${r}`,`margin ${o}`,`color ${o}`].join(",")}},[`${t}-item-icon`]:Object.assign({},(0,A.Nk)()),[`&${t}-item-only-child`]:{[`> ${l}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},X=e=>{const{componentCls:t,motionDurationSlow:o,motionEaseInOut:n,borderRadius:r,menuArrowSize:i,menuArrowOffset:l}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${o} ${n}, opacity ${o}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:r,transition:[`background ${o} ${n}`,`transform ${o} ${n}`,`top ${o} ${n}`,`color ${o} ${n}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,I.zA)(e.calc(l).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,I.zA)(l)})`}}}}},q=e=>{const{antCls:t,componentCls:o,fontSize:n,motionDurationSlow:r,motionDurationMid:i,motionEaseInOut:l,paddingXS:a,padding:s,colorSplit:c,lineWidth:d,zIndexPopup:u,borderRadiusLG:p,subMenuItemBorderRadius:m,menuArrowSize:g,menuArrowOffset:b,lineType:f,groupTitleLineHeight:h,groupTitleFontSize:$}=e;return[{"":{[`${o}`]:Object.assign(Object.assign({},(0,A.t6)()),{"&-hidden":{display:"none"}})},[`${o}-submenu-hidden`]:{display:"none"}},{[o]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,A.dF)(e)),(0,A.t6)()),{marginBottom:0,paddingInlineStart:0,fontSize:n,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${r} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${o}-item`]:{flex:"none"}},[`${o}-item, ${o}-submenu, ${o}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${o}-item-group-title`]:{padding:`${(0,I.zA)(a)} ${(0,I.zA)(s)}`,fontSize:$,lineHeight:h,transition:`all ${r}`},[`&-horizontal ${o}-submenu`]:{transition:[`border-color ${r} ${l}`,`background ${r} ${l}`].join(",")},[`${o}-submenu, ${o}-submenu-inline`]:{transition:[`border-color ${r} ${l}`,`background ${r} ${l}`,`padding ${i} ${l}`].join(",")},[`${o}-submenu ${o}-sub`]:{cursor:"initial",transition:[`background ${r} ${l}`,`padding ${r} ${l}`].join(",")},[`${o}-title-content`]:{transition:`color ${r}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${o}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${o}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:f,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),F(e)),{[`${o}-item-group`]:{[`${o}-item-group-list`]:{margin:0,padding:0,[`${o}-item, ${o}-submenu-title`]:{paddingInline:`${(0,I.zA)(e.calc(n).mul(2).equal())} ${(0,I.zA)(s)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:u,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",[`&${o}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${o}`]:Object.assign(Object.assign(Object.assign({borderRadius:p},F(e)),X(e)),{[`${o}-item, ${o}-submenu > ${o}-submenu-title`]:{borderRadius:m},[`${o}-submenu-title::after`]:{transition:`transform ${r} ${l}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),X(e)),{[`&-inline-collapsed ${o}-submenu-arrow,\n &-inline ${o}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,I.zA)(b)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,I.zA)(e.calc(b).mul(-1).equal())})`}},[`${o}-submenu-open${o}-submenu-inline > ${o}-submenu-title > ${o}-submenu-arrow`]:{transform:`translateY(${(0,I.zA)(e.calc(g).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,I.zA)(e.calc(b).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,I.zA)(b)})`}}})},{[`${t}-layout-header`]:{[o]:{lineHeight:"inherit"}}}]},G=e=>{var t,o,n;const{colorPrimary:r,colorError:i,colorTextDisabled:l,colorErrorBg:a,colorText:s,colorTextDescription:c,colorBgContainer:d,colorFillAlter:u,colorFillContent:p,lineWidth:m,lineWidthBold:g,controlItemBgActive:b,colorBgTextHover:f,controlHeightLG:h,lineHeight:$,colorBgElevated:v,marginXXS:y,padding:x,fontSize:C,controlHeightSM:S,fontSizeLG:O,colorTextLightSolid:w,colorErrorHover:E}=e,j=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,I=null!==(o=e.activeBarBorderWidth)&&void 0!==o?o:m,A=null!==(n=e.itemMarginInline)&&void 0!==n?n:e.marginXXS,z=new k.q(w).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:s,itemColor:s,colorItemTextHover:s,itemHoverColor:s,colorItemTextHoverHorizontal:r,horizontalItemHoverColor:r,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:r,itemSelectedColor:r,colorItemTextSelectedHorizontal:r,horizontalItemSelectedColor:r,colorItemBg:d,itemBg:d,colorItemBgHover:f,itemHoverBg:f,colorItemBgActive:p,itemActiveBg:b,colorSubItemBg:u,subMenuItemBg:u,colorItemBgSelected:b,itemSelectedBg:b,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:j,colorActiveBarHeight:g,activeBarHeight:g,colorActiveBarBorderSize:m,activeBarBorderWidth:I,colorItemTextDisabled:l,itemDisabledColor:l,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:a,dangerItemActiveBg:a,colorDangerItemBgSelected:a,dangerItemSelectedBg:a,itemMarginInline:A,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:h,groupTitleLineHeight:$,collapsedWidth:2*h,popupBg:v,itemMarginBlock:y,itemPaddingInline:x,horizontalLineHeight:1.15*h+"px",iconSize:C,iconMarginInlineEnd:S-C,collapsedIconSize:O,groupTitleFontSize:C,darkItemDisabledColor:new k.q(w).setAlpha(.25).toRgbString(),darkItemColor:z,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:w,darkItemSelectedBg:r,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:z,darkItemHoverColor:w,darkDangerItemHoverColor:E,darkDangerItemSelectedColor:w,darkDangerItemActiveBg:i,itemWidth:j?`calc(100% + ${I}px)`:`calc(100% - ${2*A}px)`}},_=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return(0,H.OF)("Menu",(e=>{const{colorBgElevated:t,controlHeightLG:o,fontSize:n,darkItemColor:r,darkDangerItemColor:i,darkItemBg:l,darkSubMenuItemBg:a,darkItemSelectedColor:s,darkItemSelectedBg:c,darkDangerItemSelectedBg:d,darkItemHoverBg:u,darkGroupTitleColor:p,darkItemHoverColor:m,darkItemDisabledColor:g,darkDangerItemHoverColor:b,darkDangerItemSelectedColor:f,darkDangerItemActiveBg:h,popupBg:$,darkPopupBg:v}=e,y=e.calc(n).div(7).mul(5).equal(),x=(0,R.h1)(e,{menuArrowSize:y,menuHorizontalHeight:e.calc(o).mul(1.15).equal(),menuArrowOffset:e.calc(y).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:$}),C=(0,R.h1)(x,{itemColor:r,itemHoverColor:m,groupTitleColor:p,itemSelectedColor:s,itemBg:l,popupBg:v,subMenuItemBg:a,itemActiveBg:"transparent",itemSelectedBg:c,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:u,itemDisabledColor:g,dangerItemColor:i,dangerItemHoverColor:b,dangerItemSelectedColor:f,dangerItemActiveBg:h,dangerItemSelectedBg:d,menuSubMenuBg:a,horizontalItemSelectedColor:s,horizontalItemSelectedBg:c});return[q(x),M(x),W(x),L(x,"light"),L(C,"dark"),T(x),(0,z.A)(x),(0,B._j)(x,"slide-up"),(0,B._j)(x,"slide-down"),(0,P.aB)(x,"zoom-big")]}),G,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:o,unitless:{groupTitleLineHeight:!0}})(e,t)};var V=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{var o;const i=n.useContext(j),a=i||{},{getPrefixCls:b,getPopupContainer:f,direction:h,menu:$}=n.useContext(m.QO),y=b(),{prefixCls:x,className:C,style:S,theme:O="light",expandIcon:E,_internalDisableMenuItemTitleTooltip:I,inlineCollapsed:k,siderCollapsed:A,items:z,children:B,rootClassName:P,mode:H,selectable:R,onClick:M,overflowedIndicatorPopupClassName:T}=e,N=V(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),L=(0,d.A)(N,["collapsedWidth"]),D=w(z)||B;null===(o=a.validator)||void 0===o||o.call(a,{mode:H});const W=(0,c._q)((function(){var e;null==M||M.apply(void 0,arguments),null===(e=a.onClick)||void 0===e||e.call(a)})),F=a.mode||H,X=null!=R?R:a.selectable,q=n.useMemo((()=>void 0!==A?A:k),[k,A]),G={horizontal:{motionName:`${y}-slide-up`},inline:(0,u.A)(y),other:{motionName:`${y}-zoom-big`}},U=b("menu",x||a.prefixCls),K=(0,g.A)(U),[Y,Z,J]=_(U,K,!i),ee=l()(`${U}-${O}`,null==$?void 0:$.className,C),te=n.useMemo((()=>{var e,t;if("function"==typeof E||Q(E))return E||null;if("function"==typeof a.expandIcon||Q(a.expandIcon))return a.expandIcon||null;if("function"==typeof(null==$?void 0:$.expandIcon)||Q(null==$?void 0:$.expandIcon))return(null==$?void 0:$.expandIcon)||null;const o=null!==(e=null!=E?E:null==a?void 0:a.expandIcon)&&void 0!==e?e:null==$?void 0:$.expandIcon;return(0,p.Ob)(o,{className:l()(`${U}-submenu-expand-icon`,n.isValidElement(o)?null===(t=o.props)||void 0===t?void 0:t.className:void 0)})}),[E,null==a?void 0:a.expandIcon,null==$?void 0:$.expandIcon,U]),oe=n.useMemo((()=>({prefixCls:U,inlineCollapsed:q||!1,direction:h,firstLevel:!0,theme:O,mode:F,disableMenuItemTitleTooltip:I})),[U,q,h,I,O]);return Y(n.createElement(j.Provider,{value:null},n.createElement(v.Provider,{value:oe},n.createElement(r.Ay,Object.assign({getPopupContainer:f,overflowedIndicator:n.createElement(s.A,null),overflowedIndicatorPopupClassName:l()(U,`${U}-${O}`,T),mode:F,selectable:X,onClick:W},L,{inlineCollapsed:q,style:Object.assign(Object.assign({},null==$?void 0:$.style),S),className:ee,prefixCls:U,direction:h,defaultMotions:G,expandIcon:te,ref:t,rootClassName:l()(P,Z,a.rootClassName,J,K)}),D))))})),K=U,Y=(0,n.forwardRef)(((e,t)=>{const o=(0,n.useRef)(null),r=n.useContext(a);return(0,n.useImperativeHandle)(t,(()=>({menu:o.current,focus:e=>{var t;null===(t=o.current)||void 0===t||t.focus(e)}}))),n.createElement(K,Object.assign({ref:o},e,r))}));Y.Item=y,Y.SubMenu=C,Y.Divider=f,Y.ItemGroup=r.te;const Z=Y},89740:(e,t,o)=>{o.d(t,{Ay:()=>Q});var n=o(60436),r=o(96540),i=o(14832);const l=r.createContext({});var a=o(62279),s=o(78407),c=o(38811),d=o(36029),u=o(7541),p=o(17850),m=o(93567),g=o(46942),b=o.n(g),f=o(22370),h=o(20934),$=o(64552),v=o(60275),y=o(25905),x=o(20106),C=o(80336);const S=e=>{const{componentCls:t,iconCls:o,boxShadow:n,colorText:r,colorSuccess:i,colorError:l,colorWarning:a,colorInfo:s,fontSizeLG:c,motionEaseInOutCirc:d,motionDurationSlow:u,marginXS:p,paddingXS:m,borderRadiusLG:g,zIndexPopup:b,contentPadding:f,contentBg:h}=e,v=`${t}-notice`,x=new $.Mo("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:m,transform:"translateY(0)",opacity:1}}),C=new $.Mo("MessageMoveOut",{"0%":{maxHeight:e.height,padding:m,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),S={padding:m,textAlign:"center",[`${t}-custom-content > ${o}`]:{verticalAlign:"text-bottom",marginInlineEnd:p,fontSize:c},[`${v}-content`]:{display:"inline-block",padding:f,background:h,borderRadius:g,boxShadow:n,pointerEvents:"all"},[`${t}-success > ${o}`]:{color:i},[`${t}-error > ${o}`]:{color:l},[`${t}-warning > ${o}`]:{color:a},[`${t}-info > ${o},\n ${t}-loading > ${o}`]:{color:s}};return[{[t]:Object.assign(Object.assign({},(0,y.dF)(e)),{color:r,position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:b,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n ${t}-move-up-appear,\n ${t}-move-up-enter\n `]:{animationName:x,animationDuration:u,animationPlayState:"paused",animationTimingFunction:d},[`\n ${t}-move-up-appear${t}-move-up-appear-active,\n ${t}-move-up-enter${t}-move-up-enter-active\n `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:C,animationDuration:u,animationPlayState:"paused",animationTimingFunction:d},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${v}-wrapper`]:Object.assign({},S)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},S),{padding:0,textAlign:"start"})}]},O=(0,x.OF)("Message",(e=>{const t=(0,C.h1)(e,{height:150});return[S(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+v.jH+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`})));var w=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{let{prefixCls:t,type:o,icon:n,children:i}=e;return r.createElement("div",{className:b()(`${t}-custom-content`,`${t}-${o}`)},n||E[o],r.createElement("span",null,i))},I=e=>{const{prefixCls:t,className:o,type:n,icon:i,content:l}=e,s=w(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:c}=r.useContext(a.QO),d=t||c("message"),u=(0,h.A)(d),[p,m,g]=O(d,u);return p(r.createElement(f.$T,Object.assign({},s,{prefixCls:d,className:b()(o,m,`${d}-notice-pure-panel`,g,u),eventKey:"pure",duration:null,content:r.createElement(j,{prefixCls:d,type:n,icon:i},l)})))};var k=o(47852),A=o(18877);function z(e){let t;const o=new Promise((o=>{t=e((()=>{o(!0)}))})),n=()=>{null==t||t()};return n.then=(e,t)=>o.then(e,t),n.promise=o,n}var B=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{let{children:t,prefixCls:o}=e;const n=(0,h.A)(o),[i,l,a]=O(o,n);return i(r.createElement(f.ph,{classNames:{list:b()(l,a,n)}},t))},R=(e,t)=>{let{prefixCls:o,key:n}=t;return r.createElement(H,{prefixCls:o,key:n},e)},M=r.forwardRef(((e,t)=>{const{top:o,prefixCls:n,getContainer:i,maxCount:l,duration:s=P,rtl:c,transitionName:d,onAllRemoved:u}=e,{getPrefixCls:p,getPopupContainer:m,message:g,direction:h}=r.useContext(a.QO),$=n||p("message"),v=r.createElement("span",{className:`${$}-close-x`},r.createElement(k.A,{className:`${$}-close-icon`})),[y,x]=(0,f.hN)({prefixCls:$,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=o?o:8}),className:()=>b()({[`${$}-rtl`]:null!=c?c:"rtl"===h}),motion:()=>function(e,t){return{motionName:null!=t?t:`${e}-move-up`}}($,d),closable:!1,closeIcon:v,duration:s,getContainer:()=>(null==i?void 0:i())||(null==m?void 0:m())||document.body,maxCount:l,onAllRemoved:u,renderNotifications:R});return r.useImperativeHandle(t,(()=>Object.assign(Object.assign({},y),{prefixCls:$,message:g}))),x}));let T=0;function N(e){const t=r.useRef(null),o=((0,A.rJ)("Message"),r.useMemo((()=>{const e=e=>{var o;null===(o=t.current)||void 0===o||o.close(e)},o=o=>{if(!t.current){const e=()=>{};return e.then=()=>{},e}const{open:n,prefixCls:i,message:l}=t.current,a=`${i}-notice`,{content:s,icon:c,type:d,key:u,className:p,style:m,onClose:g}=o,f=B(o,["content","icon","type","key","className","style","onClose"]);let h=u;return null==h&&(T+=1,h=`antd-message-${T}`),z((t=>(n(Object.assign(Object.assign({},f),{key:h,content:r.createElement(j,{prefixCls:i,type:d,icon:c},s),placement:"top",className:b()(d&&`${a}-${d}`,p,null==l?void 0:l.className),style:Object.assign(Object.assign({},null==l?void 0:l.style),m),onClose:()=>{null==g||g(),t()}})),()=>{e(h)})))},n={open:o,destroy:o=>{var n;void 0!==o?e(o):null===(n=t.current)||void 0===n||n.destroy()}};return["info","success","warning","error","loading"].forEach((e=>{n[e]=(t,n,r)=>{let i,l,a;i=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof n?a=n:(l=n,a=r);const s=Object.assign(Object.assign({onClose:a,duration:l},i),{type:e});return o(s)}})),n}),[]));return[o,r.createElement(M,Object.assign({key:"message-holder"},e,{ref:t}))]}let L=null,D=e=>e(),W=[],F={};function X(){const{getContainer:e,duration:t,rtl:o,maxCount:n,top:r}=F,i=(null==e?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:o,maxCount:n,top:r}}const q=r.forwardRef(((e,t)=>{const{messageConfig:o,sync:n}=e,{getPrefixCls:i}=(0,r.useContext)(a.QO),s=F.prefixCls||i("message"),c=(0,r.useContext)(l),[d,u]=N(Object.assign(Object.assign(Object.assign({},o),{prefixCls:s}),c.message));return r.useImperativeHandle(t,(()=>{const e=Object.assign({},d);return Object.keys(e).forEach((t=>{e[t]=function(){return n(),d[t].apply(d,arguments)}})),{instance:e,sync:n}})),u})),G=r.forwardRef(((e,t)=>{const[o,n]=r.useState(X),i=()=>{n(X)};r.useEffect(i,[]);const l=(0,s.cr)(),a=l.getRootPrefixCls(),c=l.getIconPrefixCls(),d=l.getTheme(),u=r.createElement(q,{ref:t,sync:i,messageConfig:o});return r.createElement(s.Ay,{prefixCls:a,iconPrefixCls:c,theme:d},l.holderRender?l.holderRender(u):u)}));function _(){if(!L){const e=document.createDocumentFragment(),t={fragment:e};return L=t,void D((()=>{(0,i.X)(r.createElement(G,{ref:e=>{const{instance:o,sync:n}=e||{};Promise.resolve().then((()=>{!t.instance&&o&&(t.instance=o,t.sync=n,_())}))}}),e)}))}L.instance&&(W.forEach((e=>{const{type:t,skipped:o}=e;if(!o)switch(t){case"open":D((()=>{const t=L.instance.open(Object.assign(Object.assign({},F),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)}));break;case"destroy":D((()=>{null==L||L.instance.destroy(e.key)}));break;default:D((()=>{var o;const r=(o=L.instance)[t].apply(o,(0,n.A)(e.args));null==r||r.then(e.resolve),e.setCloseFn(r)}))}})),W=[])}const V={open:function(e){const t=z((t=>{let o;const n={type:"open",config:e,resolve:t,setCloseFn:e=>{o=e}};return W.push(n),()=>{o?D((()=>{o()})):n.skipped=!0}}));return _(),t},destroy:e=>{W.push({type:"destroy",key:e}),_()},config:function(e){F=Object.assign(Object.assign({},F),e),D((()=>{var e;null===(e=null==L?void 0:L.sync)||void 0===e||e.call(L)}))},useMessage:function(e){return N(e)},_InternalPanelDoNotUseOrYouWillBeFired:I};["success","info","warning","error","loading"].forEach((e=>{V[e]=function(){for(var t=arguments.length,o=new Array(t),n=0;n{let n;const r={type:e,args:t,resolve:o,setCloseFn:e=>{n=e}};return W.push(r),()=>{n?D((()=>{n()})):r.skipped=!0}}));return _(),o}(e,o)}}));const Q=V},13545:(e,t,o)=>{o.d(t,{A:()=>Le});var n=o(60436),r=o(96540),i=o(14832),l=o(62279),a=o(78407),s=o(38811),c=o(36029),d=o(7541),u=o(17850),p=o(46942),m=o.n(p),g=o(60275),b=o(23723),f=o(19155),h=o(365),$=o(1233),v=o(68777),y=o(39449);function x(e){return!(!e||!e.then)}const C=e=>{const{type:t,children:o,prefixCls:n,buttonProps:i,close:l,autoFocus:a,emitEvent:s,isSilent:c,quitOnNullishReturnValue:d,actionFn:u}=e,p=r.useRef(!1),m=r.useRef(null),[g,b]=(0,$.A)(!1),f=function(){null==l||l.apply(void 0,arguments)};r.useEffect((()=>{let e=null;return a&&(e=setTimeout((()=>{var e;null===(e=m.current)||void 0===e||e.focus()}))),()=>{e&&clearTimeout(e)}}),[]);return r.createElement(v.Ay,Object.assign({},(0,y.DU)(t),{onClick:e=>{if(p.current)return;if(p.current=!0,!u)return void f();let t;if(s){if(t=u(e),d&&!x(t))return p.current=!1,void f(e)}else if(u.length)t=u(l),p.current=!1;else if(t=u(),!t)return void f();(e=>{x(e)&&(b(!0),e.then((function(){b(!1,!0),f.apply(void 0,arguments),p.current=!1}),(e=>{if(b(!1,!0),p.current=!1,!(null==c?void 0:c()))return Promise.reject(e)})))})(t)},loading:g,prefixCls:n},i,{ref:m}),o)},S=r.createContext({}),{Provider:O}=S,w=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:o,isSilent:n,mergedOkCancel:i,rootPrefixCls:l,close:a,onCancel:s,onConfirm:c}=(0,r.useContext)(S);return i?r.createElement(C,{isSilent:n,actionFn:s,close:function(){null==a||a.apply(void 0,arguments),null==c||c(!1)},autoFocus:"cancel"===e,buttonProps:t,prefixCls:`${l}-btn`},o):null},E=()=>{const{autoFocusButton:e,close:t,isSilent:o,okButtonProps:n,rootPrefixCls:i,okTextLocale:l,okType:a,onConfirm:s,onOk:c}=(0,r.useContext)(S);return r.createElement(C,{isSilent:o,type:a||"primary",actionFn:c,close:function(){null==t||t.apply(void 0,arguments),null==s||s(!0)},autoFocus:"ok"===e,buttonProps:n,prefixCls:`${i}-btn`},l)};var j=o(47852),I=o(33766),k=o(72065);function A(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function z(e){const{closable:t,closeIcon:o}=e||{};return r.useMemo((()=>{if(!t&&(!1===t||!1===o||null===o))return!1;if(void 0===t&&void 0===o)return null;let e={closeIcon:"boolean"!=typeof o&&null!==o?o:void 0};return t&&"object"==typeof t&&(e=Object.assign(Object.assign({},e),t)),e}),[t,o])}function B(){const e={};for(var t=arguments.length,o=new Array(t),n=0;n{t&&Object.keys(t).forEach((o=>{void 0!==t[o]&&(e[o]=t[o])}))})),e}const P={};var H=o(20998);var R=o(72616),M=o(20934),T=o(94241),N=o(76327),L=o(81470);function D(){}const W=r.createContext({add:D,remove:D});var F=o(98119);const X=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:o}=(0,r.useContext)(S);return r.createElement(v.Ay,Object.assign({onClick:o},e),t)},q=()=>{const{confirmLoading:e,okButtonProps:t,okType:o,okTextLocale:n,onOk:i}=(0,r.useContext)(S);return r.createElement(v.Ay,Object.assign({},(0,y.DU)(o),{loading:e,onClick:i},t),n)};var G=o(21815);function _(e,t){return r.createElement("span",{className:`${e}-close-x`},t||r.createElement(j.A,{className:`${e}-close-icon`}))}const V=e=>{const{okText:t,okType:o="primary",cancelText:i,confirmLoading:l,onOk:a,onCancel:s,okButtonProps:c,cancelButtonProps:d,footer:u}=e,[p]=(0,f.A)("Modal",(0,G.l)()),m={confirmLoading:l,okButtonProps:c,cancelButtonProps:d,okTextLocale:t||(null==p?void 0:p.okText),cancelTextLocale:i||(null==p?void 0:p.cancelText),okType:o,onOk:a,onCancel:s},g=r.useMemo((()=>m),(0,n.A)(Object.values(m)));let b;return"function"==typeof u||void 0===u?(b=r.createElement(r.Fragment,null,r.createElement(X,null),r.createElement(q,null)),"function"==typeof u&&(b=u(b,{OkBtn:q,CancelBtn:X})),b=r.createElement(O,{value:g},b)):b=u,r.createElement(F.X,{disabled:!1},b)};var Q=o(64552),U=o(25905),K=o(28680),Y=o(99077),Z=o(80336),J=o(20106);function ee(e){return{position:e,inset:0}}const te=e=>{const{componentCls:t,antCls:o}=e;return[{[`${t}-root`]:{[`${t}${o}-zoom-enter, ${t}${o}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${o}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},ee("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},ee("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:(0,K.p9)(e)}]},oe=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${(0,Q.zA)(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},(0,U.dF)(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${(0,Q.zA)(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${(0,Q.zA)(e.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},(0,U.K8)(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${(0,Q.zA)(e.borderRadiusLG)} ${(0,Q.zA)(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,\n ${t}-body,\n ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},ne=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},re=e=>{const t=e.padding,o=e.fontSizeHeading5,n=e.lineHeightHeading5;return(0,Z.h1)(e,{modalHeaderHeight:e.calc(e.calc(n).mul(o).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},ie=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${(0,Q.zA)(e.paddingMD)} ${(0,Q.zA)(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${(0,Q.zA)(e.padding)} ${(0,Q.zA)(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${(0,Q.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${(0,Q.zA)(e.paddingXS)} ${(0,Q.zA)(e.padding)}`:0,footerBorderTop:e.wireframe?`${(0,Q.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${(0,Q.zA)(e.borderRadiusLG)} ${(0,Q.zA)(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${(0,Q.zA)(2*e.padding)} ${(0,Q.zA)(2*e.padding)} ${(0,Q.zA)(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),le=(0,J.OF)("Modal",(e=>{const t=re(e);return[oe(t),ne(t),te(t),(0,Y.aB)(t,"zoom")]}),ie,{unitless:{titleLineHeight:!0}});var ae=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{se={x:e.pageX,y:e.pageY},setTimeout((()=>{se=null}),100)};(0,H.A)()&&window.document.documentElement&&document.documentElement.addEventListener("click",ce,!0);const de=e=>{var t;const{getPopupContainer:o,getPrefixCls:n,direction:i,modal:a}=r.useContext(l.QO),s=t=>{const{onCancel:o}=e;null==o||o(t)};const{prefixCls:c,className:d,rootClassName:u,open:p,wrapClassName:f,centered:h,getContainer:$,focusTriggerAfterClose:v=!0,style:y,visible:x,width:C=520,footer:S,classNames:O,styles:w}=e,E=ae(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),H=n("modal",c),D=n(),F=(0,M.A)(H),[X,q,G]=le(H,F),Q=m()(f,{[`${H}-centered`]:!!h,[`${H}-wrap-rtl`]:"rtl"===i}),U=null!==S&&r.createElement(V,Object.assign({},e,{onOk:t=>{const{onOk:o}=e;null==o||o(t)},onCancel:s})),[K,Y]=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:P;const n=z(e),i=z(t),l=r.useMemo((()=>Object.assign({closeIcon:r.createElement(j.A,null)},o)),[o]),a=r.useMemo((()=>!1!==n&&(n?B(l,i,n):!1!==i&&(i?B(l,i):!!l.closable&&l))),[n,i,l]);return r.useMemo((()=>{if(!1===a)return[!1,null];const{closeIconRender:e}=l,{closeIcon:t}=a;let o=t;if(null!=o){e&&(o=e(t));const n=(0,k.A)(a,!0);Object.keys(n).length&&(o=r.isValidElement(o)?r.cloneElement(o,n):r.createElement("span",Object.assign({},n),o))}return[!0,o]}),[a,l])}(A(e),A(a),{closable:!0,closeIcon:r.createElement(j.A,{className:`${H}-close-icon`}),closeIconRender:e=>_(H,e)}),Z=function(e){const t=r.useContext(W),o=r.useRef();return(0,L._q)((n=>{if(n){const r=e?n.querySelector(e):n;t.add(r),o.current=r}else t.remove(o.current)}))}(`.${H}-content`),[J,ee]=(0,g.YK)("Modal",E.zIndex);return X(r.createElement(N.K6,null,r.createElement(T.XB,{status:!0,override:!0},r.createElement(R.A.Provider,{value:ee},r.createElement(I.A,Object.assign({width:C},E,{zIndex:J,getContainer:void 0===$?o:$,prefixCls:H,rootClassName:m()(q,u,G,F),footer:U,visible:null!=p?p:x,mousePosition:null!==(t=E.mousePosition)&&void 0!==t?t:se,onClose:s,closable:K,closeIcon:Y,focusTriggerAfterClose:v,transitionName:(0,b.b)(D,"zoom",e.transitionName),maskTransitionName:(0,b.b)(D,"fade",e.maskTransitionName),className:m()(q,d,null==a?void 0:a.className),style:Object.assign(Object.assign({},null==a?void 0:a.style),y),classNames:Object.assign(Object.assign(Object.assign({},null==a?void 0:a.classNames),O),{wrapper:m()(Q,null==O?void 0:O.wrapper)}),styles:Object.assign(Object.assign({},null==a?void 0:a.styles),w),panelRef:Z}))))))},ue=e=>{const{componentCls:t,titleFontSize:o,titleLineHeight:n,modalConfirmIconSize:r,fontSize:i,lineHeight:l,modalTitleHeight:a,fontHeight:s,confirmBodyPadding:c}=e,d=`${t}-confirm`;return{[d]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${d}-body-wrapper`]:Object.assign({},(0,U.t6)()),[`&${t} ${t}-body`]:{padding:c},[`${d}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:r,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(s).sub(r).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(a).sub(r).equal()).div(2).equal()}},[`${d}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS},[`${e.iconCls} + ${d}-paragraph`]:{maxWidth:`calc(100% - ${(0,Q.zA)(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${d}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:o,lineHeight:n},[`${d}-content`]:{color:e.colorText,fontSize:i,lineHeight:l},[`${d}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${d}-error ${d}-body > ${e.iconCls}`]:{color:e.colorError},[`${d}-warning ${d}-body > ${e.iconCls},\n ${d}-confirm ${d}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${d}-info ${d}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${d}-success ${d}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},pe=(0,J.bf)(["Modal","confirm"],(e=>{const t=re(e);return[ue(t)]}),ie,{order:-1e3});var me=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);rk),(0,n.A)(Object.values(k))),z=r.createElement(r.Fragment,null,r.createElement(w,null),r.createElement(E,null)),B=void 0!==e.title&&null!==e.title,P=`${a}-body`;return r.createElement("div",{className:`${a}-body-wrapper`},r.createElement("div",{className:m()(P,{[`${P}-has-title`]:B})},v,r.createElement("div",{className:`${a}-paragraph`},B&&r.createElement("span",{className:`${a}-title`},e.title),r.createElement("div",{className:`${a}-content`},e.content))),void 0===b||"function"==typeof b?r.createElement(O,{value:A},r.createElement("div",{className:`${a}-btns`},"function"==typeof b?b(z,{OkBtn:E,CancelBtn:w}):z)):b,r.createElement(pe,{prefixCls:t}))}const be=e=>{const{close:t,zIndex:o,afterClose:n,open:i,keyboard:l,centered:a,getContainer:s,maskStyle:c,direction:d,prefixCls:u,wrapClassName:p,rootPrefixCls:f,bodyStyle:$,closable:v=!1,closeIcon:y,modalRender:x,focusTriggerAfterClose:C,onConfirm:S,styles:O}=e;const w=`${u}-confirm`,E=e.width||416,j=e.style||{},I=void 0===e.mask||e.mask,k=void 0!==e.maskClosable&&e.maskClosable,A=m()(w,`${w}-${e.type}`,{[`${w}-rtl`]:"rtl"===d},e.className),[,z]=(0,h.Ay)(),B=r.useMemo((()=>void 0!==o?o:z.zIndexPopupBase+g.jH),[o,z]);return r.createElement(de,{prefixCls:u,className:A,wrapClassName:m()({[`${w}-centered`]:!!e.centered},p),onCancel:()=>{null==t||t({triggerCancel:!0}),null==S||S(!1)},open:i,title:"",footer:null,transitionName:(0,b.b)(f||"","zoom",e.transitionName),maskTransitionName:(0,b.b)(f||"","fade",e.maskTransitionName),mask:I,maskClosable:k,style:j,styles:Object.assign({body:$,mask:c},O),width:E,zIndex:B,afterClose:n,keyboard:l,centered:a,getContainer:s,closable:v,closeIcon:y,modalRender:x,focusTriggerAfterClose:C},r.createElement(ge,Object.assign({},e,{confirmPrefixCls:w})))};const fe=e=>{const{rootPrefixCls:t,iconPrefixCls:o,direction:n,theme:i}=e;return r.createElement(a.Ay,{prefixCls:t,iconPrefixCls:o,direction:n,theme:i},r.createElement(be,Object.assign({},e)))},he=[];let $e="";function ve(){return $e}const ye=e=>{var t,o;const{prefixCls:n,getContainer:i,direction:a}=e,s=(0,G.l)(),c=(0,r.useContext)(l.QO),d=ve()||c.getPrefixCls(),u=n||`${d}-modal`;let p=i;return!1===p&&(p=void 0),r.createElement(fe,Object.assign({},e,{rootPrefixCls:d,prefixCls:u,iconPrefixCls:c.iconPrefixCls,theme:c.theme,direction:null!=a?a:c.direction,locale:null!==(o=null===(t=c.locale)||void 0===t?void 0:t.Modal)&&void 0!==o?o:s,getContainer:p}))};function xe(e){const t=(0,a.cr)();const o=document.createDocumentFragment();let l,s=Object.assign(Object.assign({},e),{close:u,open:!0});function c(){for(var t=arguments.length,r=new Array(t),l=0;le&&e.triggerCancel));e.onCancel&&a&&e.onCancel.apply(e,[()=>{}].concat((0,n.A)(r.slice(1))));for(let e=0;e{const n=t.getPrefixCls(void 0,ve()),l=t.getIconPrefixCls(),s=t.getTheme(),c=r.createElement(ye,Object.assign({},e));(0,i.X)(r.createElement(a.Ay,{prefixCls:n,iconPrefixCls:l,theme:s},t.holderRender?t.holderRender(c):c),o)}))}function u(){for(var t=arguments.length,o=new Array(t),n=0;n{"function"==typeof e.afterClose&&e.afterClose(),c.apply(this,o)}}),s.visible&&delete s.visible,d(s)}return d(s),he.push(u),{destroy:u,update:function(e){s="function"==typeof e?e(s):Object.assign(Object.assign({},s),e),d(s)}}}function Ce(e){return Object.assign(Object.assign({},e),{type:"warning"})}function Se(e){return Object.assign(Object.assign({},e),{type:"info"})}function Oe(e){return Object.assign(Object.assign({},e),{type:"success"})}function we(e){return Object.assign(Object.assign({},e),{type:"error"})}function Ee(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var je=o(53425),Ie=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,className:o,closeIcon:n,closable:i,type:a,title:s,children:c,footer:d}=e,u=Ie(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:p}=r.useContext(l.QO),g=p(),b=t||p("modal"),f=(0,M.A)(g),[h,$,v]=le(b,f),y=`${b}-confirm`;let x={};return x=a?{closable:null!=i&&i,title:"",footer:"",children:r.createElement(ge,Object.assign({},e,{prefixCls:b,confirmPrefixCls:y,rootPrefixCls:g,content:c}))}:{closable:null==i||i,title:s,footer:null!==d&&r.createElement(V,Object.assign({},e)),children:c},h(r.createElement(I.Z,Object.assign({prefixCls:b,className:m()($,`${b}-pure-panel`,a&&y,a&&`${y}-${a}`,o,v,f)},u,{closeIcon:_(b,n),closable:i},x)))}));var Ae=o(30696),ze=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{var o,{afterClose:i,config:a}=e,s=ze(e,["afterClose","config"]);const[c,d]=r.useState(!0),[u,p]=r.useState(a),{direction:m,getPrefixCls:g}=r.useContext(l.QO),b=g("modal"),h=g(),$=function(){d(!1);for(var e=arguments.length,t=new Array(e),o=0;oe&&e.triggerCancel));u.onCancel&&r&&u.onCancel.apply(u,[()=>{}].concat((0,n.A)(t.slice(1))))};r.useImperativeHandle(t,(()=>({destroy:$,update:e=>{p((t=>Object.assign(Object.assign({},t),e)))}})));const v=null!==(o=u.okCancel)&&void 0!==o?o:"confirm"===u.type,[y]=(0,f.A)("Modal",Ae.A.Modal);return r.createElement(fe,Object.assign({prefixCls:b,rootPrefixCls:h},u,{close:$,open:c,afterClose:()=>{var e;i(),null===(e=u.afterClose)||void 0===e||e.call(u)},okText:u.okText||(v?null==y?void 0:y.okText:null==y?void 0:y.justOkText),direction:u.direction||m,cancelText:u.cancelText||(null==y?void 0:y.cancelText)},s))},Pe=r.forwardRef(Be);let He=0;const Re=r.memo(r.forwardRef(((e,t)=>{const[o,i]=function(){const[e,t]=r.useState([]);return[e,r.useCallback((e=>(t((t=>[].concat((0,n.A)(t),[e]))),()=>{t((t=>t.filter((t=>t!==e))))})),[])]}();return r.useImperativeHandle(t,(()=>({patchElement:i})),[]),r.createElement(r.Fragment,null,o)})));const Me=function(){const e=r.useRef(null),[t,o]=r.useState([]);r.useEffect((()=>{if(t.length){(0,n.A)(t).forEach((e=>{e()})),o([])}}),[t]);const i=r.useCallback((t=>function(i){var l;He+=1;const a=r.createRef();let s;const c=new Promise((e=>{s=e}));let d,u=!1;const p=r.createElement(Pe,{key:`modal-${He}`,config:t(i),ref:a,afterClose:()=>{null==d||d()},isSilent:()=>u,onConfirm:e=>{s(e)}});d=null===(l=e.current)||void 0===l?void 0:l.patchElement(p),d&&he.push(d);const m={destroy:()=>{function e(){var e;null===(e=a.current)||void 0===e||e.destroy()}a.current?e():o((t=>[].concat((0,n.A)(t),[e])))},update:e=>{function t(){var t;null===(t=a.current)||void 0===t||t.update(e)}a.current?t():o((e=>[].concat((0,n.A)(e),[t])))},then:e=>(u=!0,c.then(e))};return m}),[]);return[r.useMemo((()=>({info:i(Se),success:i(Oe),error:i(we),warning:i(Ce),confirm:i(Ee)})),[]),r.createElement(Re,{key:"modal-holder",ref:e})]};function Te(e){return xe(Ce(e))}const Ne=de;Ne.useModal=Me,Ne.info=function(e){return xe(Se(e))},Ne.success=function(e){return xe(Oe(e))},Ne.error=function(e){return xe(we(e))},Ne.warning=Te,Ne.warn=Te,Ne.confirm=function(e){return xe(Ee(e))},Ne.destroyAll=function(){for(;he.length;){const e=he.pop();e&&e()}},Ne.config=function(e){let{rootPrefixCls:t}=e;$e=t},Ne._InternalPanelDoNotUseOrYouWillBeFired=ke;const Le=Ne},21815:(e,t,o)=>{o.d(t,{L:()=>a,l:()=>s});var n=o(30696);let r=Object.assign({},n.A.Modal),i=[];const l=()=>i.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),n.A.Modal);function a(e){if(e){const t=Object.assign({},e);return i.push(t),r=l(),()=>{i=i.filter((e=>e!==t)),r=l()}}r=Object.assign({},n.A.Modal)}function s(){return r}},89027:(e,t,o)=>{o.d(t,{A:()=>A});var n=o(96540),r=o(46942),i=o.n(r),l=o(12533),a=o(16928);const s=e=>e?"function"==typeof e?e():e:null;var c=o(23723),d=o(40682),u=o(62279),p=o(26211),m=o(80427),g=o(25905),b=o(99077),f=o(95201),h=o(20791),$=o(13950),v=o(20106),y=o(80336);const x=e=>{const{componentCls:t,popoverColor:o,titleMinWidth:n,fontWeightStrong:r,innerPadding:i,boxShadowSecondary:l,colorTextHeading:a,borderRadiusLG:s,zIndexPopup:c,titleMarginBottom:d,colorBgElevated:u,popoverBg:p,titleBorderBottom:m,innerContentPadding:b,titlePadding:h}=e;return[{[t]:Object.assign(Object.assign({},(0,g.dF)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":u,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:p,backgroundClip:"padding-box",borderRadius:s,boxShadow:l,padding:i},[`${t}-title`]:{minWidth:n,marginBottom:d,color:a,fontWeight:r,borderBottom:m,padding:h},[`${t}-inner-content`]:{color:o,padding:b}})},(0,f.Ay)(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},C=e=>{const{componentCls:t}=e;return{[t]:$.s.map((o=>{const n=e[`${o}6`];return{[`&${t}-${o}`]:{"--antd-arrow-background-color":n,[`${t}-inner`]:{backgroundColor:n},[`${t}-arrow`]:{background:"transparent"}}}}))}},S=(0,v.OF)("Popover",(e=>{const{colorBgElevated:t,colorText:o}=e,n=(0,y.h1)(e,{popoverBg:t,popoverColor:o});return[x(n),C(n),(0,b.aB)(n,"zoom-big")]}),(e=>{const{lineWidth:t,controlHeight:o,fontHeight:n,padding:r,wireframe:i,zIndexPopupBase:l,borderRadiusLG:a,marginXS:s,lineType:c,colorSplit:d,paddingSM:u}=e,p=o-n,m=p/2,g=p/2-t,b=r;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:l+30},(0,h.n)(e)),(0,f.Ke)({contentRadius:a,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:s,titlePadding:i?`${m}px ${b}px ${g}px`:0,titleBorderBottom:i?`${t}px ${c} ${d}`:"none",innerContentPadding:i?`${u}px ${b}px`:0})}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var O=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{hashId:t,prefixCls:o,className:r,style:l,placement:a="top",title:c,content:d,children:u}=e;return n.createElement("div",{className:i()(t,o,`${o}-pure`,`${o}-placement-${a}`,r),style:l},n.createElement("div",{className:`${o}-arrow`}),n.createElement(m.z,Object.assign({},e,{className:t,prefixCls:o}),u||((e,t,o)=>t||o?n.createElement(n.Fragment,null,t&&n.createElement("div",{className:`${e}-title`},s(t)),n.createElement("div",{className:`${e}-inner-content`},s(o))):null)(o,c,d)))},E=e=>{const{prefixCls:t,className:o}=e,r=O(e,["prefixCls","className"]),{getPrefixCls:l}=n.useContext(u.QO),a=l("popover",t),[s,c,d]=S(a);return s(n.createElement(w,Object.assign({},r,{prefixCls:a,hashId:c,className:i()(o,d)})))};var j=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{let{title:t,content:o,prefixCls:r}=e;return n.createElement(n.Fragment,null,t&&n.createElement("div",{className:`${r}-title`},s(t)),n.createElement("div",{className:`${r}-inner-content`},s(o)))},k=n.forwardRef(((e,t)=>{var o,r;const{prefixCls:s,title:m,content:g,overlayClassName:b,placement:f="top",trigger:h="hover",children:$,mouseEnterDelay:v=.1,mouseLeaveDelay:y=.1,onOpenChange:x,overlayStyle:C={}}=e,O=j(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:w}=n.useContext(u.QO),E=w("popover",s),[k,A,z]=S(E),B=w(),P=i()(b,A,z),[H,R]=(0,l.A)(!1,{value:null!==(o=e.open)&&void 0!==o?o:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),M=(e,t)=>{R(e,!0),null==x||x(e,t)};return k(n.createElement(p.A,Object.assign({placement:f,trigger:h,mouseEnterDelay:v,mouseLeaveDelay:y,overlayStyle:C},O,{prefixCls:E,overlayClassName:P,ref:t,open:H,onOpenChange:e=>{M(e)},overlay:m||g?n.createElement(I,{prefixCls:E,title:m,content:g}):null,transitionName:(0,c.b)(B,"zoom-big",O.transitionName),"data-popover-inject":!0}),(0,d.Ob)($,{onKeyDown:e=>{var t,o;n.isValidElement($)&&(null===(o=null==$?void 0:(t=$.props).onKeyDown)||void 0===o||o.call(t,e)),(e=>{e.keyCode===a.A.ESC&&M(!1,e)})(e)}})))}));k._InternalPanelDoNotUseOrYouWillBeFired=E;const A=k},6754:(e,t,o)=>{o.d(t,{A:()=>N});var n=o(96540),r=o(38811),i=o(26067),l=o(36029),a=o(47852),s=o(46942),c=o.n(s),d=o(19853),u=o(62279),p=o(71559),m=o(26211),g=o(20439);function b(e){return!e||e<0?0:e>100?100:e}function f(e){let{success:t,successPercent:o}=e,n=o;return t&&"progress"in t&&(n=t.progress),t&&"percent"in t&&(n=t.percent),n}const h=(e,t,o)=>{var n,r,i,l;let a=-1,s=-1;if("step"===t){const t=o.steps,n=o.strokeWidth;"string"==typeof e||void 0===e?(a="small"===e?2:14,s=null!=n?n:8):"number"==typeof e?[a,s]=[e,e]:[a=14,s=8]=e,a*=t}else if("line"===t){const t=null==o?void 0:o.strokeWidth;"string"==typeof e||void 0===e?s=t||("small"===e?6:8):"number"==typeof e?[a,s]=[e,e]:[a=-1,s=8]=e}else"circle"!==t&&"dashboard"!==t||("string"==typeof e||void 0===e?[a,s]="small"===e?[60,60]:[120,120]:"number"==typeof e?[a,s]=[e,e]:(a=null!==(r=null!==(n=e[0])&&void 0!==n?n:e[1])&&void 0!==r?r:120,s=null!==(l=null!==(i=e[0])&&void 0!==i?i:e[1])&&void 0!==l?l:120));return[a,s]},$=e=>{const{prefixCls:t,trailColor:o=null,strokeLinecap:r="round",gapPosition:i,gapDegree:l,width:a=120,type:s,children:d,success:u,size:$=a,steps:v}=e,[y,x]=h($,"circle");let{strokeWidth:C}=e;void 0===C&&(C=Math.max((e=>3/e*100)(y),6));const S={width:y,height:x,fontSize:.15*y+6},O=n.useMemo((()=>l||0===l?l:"dashboard"===s?75:void 0),[l,s]),w=(e=>{let{percent:t,success:o,successPercent:n}=e;const r=b(f({success:o,successPercent:n}));return[r,b(b(t)-r)]})(e),E=i||"dashboard"===s&&"bottom"||void 0,j="[object Object]"===Object.prototype.toString.call(e.strokeColor),I=(e=>{let{success:t={},strokeColor:o}=e;const{strokeColor:n}=t;return[n||g.uy.green,o||null]})({success:u,strokeColor:e.strokeColor}),k=c()(`${t}-inner`,{[`${t}-circle-gradient`]:j}),A=n.createElement(p.jl,{steps:v,percent:v?w[1]:w,strokeWidth:C,trailWidth:C,strokeColor:v?I[1]:I,strokeLinecap:r,trailColor:o,prefixCls:t,gapDegree:O,gapPosition:E});return n.createElement("div",{className:k,style:S},y<=20?n.createElement(m.A,{title:d},n.createElement("span",null,A)):n.createElement(n.Fragment,null,A,d))};var v=o(64552),y=o(25905),x=o(20106),C=o(80336);const S="--progress-line-stroke-color",O="--progress-percent",w=e=>{const t=e?"100%":"-100%";return new v.Mo(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},E=e=>{const{componentCls:t,iconCls:o}=e;return{[t]:Object.assign(Object.assign({},(0,y.dF)(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${(0,v.zA)(e.marginXS)})`,paddingInlineEnd:`calc(2em + ${(0,v.zA)(e.paddingXS)})`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${S})`]},height:"100%",width:`calc(1 / var(${O}) * 100%)`,display:"block"}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[o]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:w(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:w(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},j=e=>{const{componentCls:t,iconCls:o}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[o]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},I=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},k=e=>{const{componentCls:t,iconCls:o}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${o}`]:{fontSize:e.fontSizeSM}}}},A=(0,x.OF)("Progress",(e=>{const t=e.calc(e.marginXXS).div(2).equal(),o=(0,C.h1)(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[E(o),j(o),I(o),k(o)]}),(e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:e.fontSize/e.fontSizeSM+"em"})));var z=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{from:o=g.uy.blue,to:n=g.uy.blue,direction:r=("rtl"===t?"to left":"to right")}=e,i=z(e,["from","to","direction"]);if(0!==Object.keys(i).length){const e=`linear-gradient(${r}, ${(e=>{let t=[];return Object.keys(e).forEach((o=>{const n=parseFloat(o.replace(/%/g,""));isNaN(n)||t.push({key:n,value:e[o]})})),t=t.sort(((e,t)=>e.key-t.key)),t.map((e=>{let{key:t,value:o}=e;return`${o} ${t}%`})).join(", ")})(i)})`;return{background:e,[S]:e}}const l=`linear-gradient(${r}, ${o}, ${n})`;return{background:l,[S]:l}},P=e=>{const{prefixCls:t,direction:o,percent:r,size:i,strokeWidth:l,strokeColor:a,strokeLinecap:s="round",children:c,trailColor:d=null,success:u}=e,p=a&&"string"!=typeof a?B(a,o):{[S]:a,background:a},m="square"===s||"butt"===s?0:void 0,g=null!=i?i:[-1,l||("small"===i?6:8)],[$,v]=h(g,"line",{strokeWidth:l});const y={backgroundColor:d||void 0,borderRadius:m},x=Object.assign(Object.assign({width:`${b(r)}%`,height:v,borderRadius:m},p),{[O]:b(r)/100}),C=f(e),w={width:`${b(C)}%`,height:v,borderRadius:m,backgroundColor:null==u?void 0:u.strokeColor},E={width:$<0?"100%":$,height:v};return n.createElement(n.Fragment,null,n.createElement("div",{className:`${t}-outer`,style:E},n.createElement("div",{className:`${t}-inner`,style:y},n.createElement("div",{className:`${t}-bg`,style:x}),void 0!==C?n.createElement("div",{className:`${t}-success-bg`,style:w}):null)),c)},H=e=>{const{size:t,steps:o,percent:r=0,strokeWidth:i=8,strokeColor:l,trailColor:a=null,prefixCls:s,children:d}=e,u=Math.round(o*(r/100)),p=null!=t?t:["small"===t?2:14,i],[m,g]=h(p,"step",{steps:o,strokeWidth:i}),b=m/o,f=new Array(o);for(let e=0;e{const{prefixCls:o,className:s,rootClassName:p,steps:m,strokeColor:g,percent:v=0,size:y="default",showInfo:x=!0,type:C="line",status:S,format:O,style:w}=e,E=R(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),j=n.useMemo((()=>{var t,o;const n=f(e);return parseInt(void 0!==n?null===(t=null!=n?n:0)||void 0===t?void 0:t.toString():null===(o=null!=v?v:0)||void 0===o?void 0:o.toString(),10)}),[v,e.success,e.successPercent]),I=n.useMemo((()=>!M.includes(S)&&j>=100?"success":S||"normal"),[S,j]),{getPrefixCls:k,direction:z,progress:B}=n.useContext(u.QO),T=k("progress",o),[N,L,D]=A(T),W=n.useMemo((()=>{if(!x)return null;const t=f(e);let o;const s="line"===C;return O||"exception"!==I&&"success"!==I?o=(O||(e=>`${e}%`))(b(v),b(t)):"exception"===I?o=s?n.createElement(l.A,null):n.createElement(a.A,null):"success"===I&&(o=s?n.createElement(r.A,null):n.createElement(i.A,null)),n.createElement("span",{className:`${T}-text`,title:"string"==typeof o?o:void 0},o)}),[x,v,j,I,C,T,O]);const F=Array.isArray(g)?g[0]:g,X="string"==typeof g||Array.isArray(g)?g:void 0;let q;"line"===C?q=m?n.createElement(H,Object.assign({},e,{strokeColor:X,prefixCls:T,steps:"object"==typeof m?m.count:m}),W):n.createElement(P,Object.assign({},e,{strokeColor:F,prefixCls:T,direction:z}),W):"circle"!==C&&"dashboard"!==C||(q=n.createElement($,Object.assign({},e,{strokeColor:F,prefixCls:T,progressStatus:I}),W));const G=c()(T,`${T}-status-${I}`,{[`${T}-${"dashboard"===C?"circle":C}`]:"line"!==C,[`${T}-inline-circle`]:"circle"===C&&h(y,"circle")[0]<=20,[`${T}-line`]:!m&&"line"===C,[`${T}-steps`]:m,[`${T}-show-info`]:x,[`${T}-${y}`]:"string"==typeof y,[`${T}-rtl`]:"rtl"===z},null==B?void 0:B.className,s,p,L,D);return N(n.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},null==B?void 0:B.style),w),className:G,role:"progressbar","aria-valuenow":j},(0,d.A)(E,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),q))}));const N=T},95147:(e,t,o)=>{o.d(t,{A:()=>g});var n=o(96540),r=o(46942),i=o.n(r),l=o(365);const a=["xxl","xl","lg","md","sm","xs"];function s(){const[,e]=(0,l.Ay)(),t=(e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}))((e=>{const t=e,o=[].concat(a).reverse();return o.forEach(((e,n)=>{const r=e.toUpperCase(),i=`screen${r}Min`,l=`screen${r}`;if(!(t[i]<=t[l]))throw new Error(`${i}<=${l} fails : !(${t[i]}<=${t[l]})`);if(n{const e=new Map;let o=-1,n={};return{matchHandlers:{},dispatch:t=>(n=t,e.forEach((e=>e(n))),e.size>=1),subscribe(t){return e.size||this.register(),o+=1,e.set(o,t),t(n),o},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach((e=>{const o=t[e],n=this.matchHandlers[o];null==n||n.mql.removeListener(null==n?void 0:n.listener)})),e.clear()},register(){Object.keys(t).forEach((e=>{const o=t[e],r=t=>{let{matches:o}=t;this.dispatch(Object.assign(Object.assign({},n),{[e]:o}))},i=window.matchMedia(o);i.addListener(r),this.matchHandlers[o]={mql:i,listener:r},r(i)}))},responsiveMap:t}}),[e])}var c=o(62279),d=o(36121),u=o(25006),p=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{(()=>{if("string"==typeof e&&r(e),"object"==typeof e)for(let o=0;o{const{prefixCls:o,justify:r,align:l,className:g,style:b,children:f,gutter:h=0,wrap:$}=e,v=p(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:y,direction:x}=n.useContext(c.QO),[C,S]=n.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[O,w]=n.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),E=m(l,O),j=m(r,O),I=n.useRef(h),k=s();n.useEffect((()=>{const e=k.subscribe((e=>{w(e);const t=I.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&S(e)}));return()=>k.unsubscribe(e)}),[]);const A=y("row",o),[z,B,P]=(0,u.L3)(A),H=(()=>{const e=[void 0,void 0];return(Array.isArray(h)?h:[h,void 0]).forEach(((t,o)=>{if("object"==typeof t)for(let n=0;n0?H[0]/-2:void 0;T&&(M.marginLeft=T,M.marginRight=T);const[N,L]=H;M.rowGap=L;const D=n.useMemo((()=>({gutter:[N,L],wrap:$})),[N,L,$]);return z(n.createElement(d.A.Provider,{value:D},n.createElement("div",Object.assign({},v,{className:R,style:Object.assign(Object.assign({},M),b),ref:t}),f)))}))},47523:(e,t,o)=>{o.d(t,{A:()=>Ee});var n=o(96540),r=o(46942),i=o.n(r),l=o(63188),a=o(19853),s=o(60275),c=o(23723),d=o(53425),u=o(58182),p=o(62279),m=o(19155),g=o(24978),b=o(365);const f=()=>{const[,e]=(0,b.Ay)(),t=new g.q(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return n.createElement("svg",{style:t,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},n.createElement("g",{fill:"none",fillRule:"evenodd"},n.createElement("g",{transform:"translate(24 31.67)"},n.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),n.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),n.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),n.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),n.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),n.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),n.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},n.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),n.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};const h=()=>{const[,e]=(0,b.Ay)(),{colorFill:t,colorFillTertiary:o,colorFillQuaternary:r,colorBgContainer:i}=e,{borderColor:l,shadowColor:a,contentColor:s}=(0,n.useMemo)((()=>({borderColor:new g.q(t).onBackground(i).toHexShortString(),shadowColor:new g.q(o).onBackground(i).toHexShortString(),contentColor:new g.q(r).onBackground(i).toHexShortString()})),[t,o,r,i]);return n.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},n.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},n.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),n.createElement("g",{fillRule:"nonzero",stroke:l},n.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),n.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))};var $=o(20106),v=o(80336);const y=e=>{const{componentCls:t,margin:o,marginXS:n,marginXL:r,fontSize:i,lineHeight:l}=e;return{[t]:{marginInline:n,fontSize:i,lineHeight:l,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:n,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:o},"&-normal":{marginBlock:r,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:n,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},x=(0,$.OF)("Empty",(e=>{const{componentCls:t,controlHeightLG:o,calc:n}=e,r=(0,v.h1)(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n(o).mul(2.5).equal(),emptyImgHeightMD:o,emptyImgHeightSM:n(o).mul(.875).equal()});return[y(r)]}));var C=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{var{className:t,rootClassName:o,prefixCls:r,image:l=S,description:a,children:s,imageStyle:c,style:d}=e,u=C(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:g,direction:b,empty:f}=n.useContext(p.QO),h=g("empty",r),[$,v,y]=x(h),[w]=(0,m.A)("Empty"),E=void 0!==a?a:null==w?void 0:w.description,j="string"==typeof E?E:"empty";let I=null;return I="string"==typeof l?n.createElement("img",{alt:j,src:l}):l,$(n.createElement("div",Object.assign({className:i()(v,y,h,null==f?void 0:f.className,{[`${h}-normal`]:l===O,[`${h}-rtl`]:"rtl"===b},t,o),style:Object.assign(Object.assign({},null==f?void 0:f.style),d)},u),n.createElement("div",{className:`${h}-image`,style:c},I),E&&n.createElement("div",{className:`${h}-description`},E),s&&n.createElement("div",{className:`${h}-footer`},s)))};w.PRESENTED_IMAGE_DEFAULT=S,w.PRESENTED_IMAGE_SIMPLE=O;const E=w,j=e=>{const{componentName:t}=e,{getPrefixCls:o}=(0,n.useContext)(p.QO),r=o("empty");switch(t){case"Table":case"List":return n.createElement(E,{image:E.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return n.createElement(E,{image:E.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return n.createElement(E,null)}};var I=o(98119),k=o(20934),A=o(829),z=o(94241),B=o(90124),P=o(76327);const H=function(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)};var R=o(25905),M=o(55974),T=o(53561),N=o(64552),L=o(14980);const D=new N.Mo("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),W=new N.Mo("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),F=new N.Mo("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),X=new N.Mo("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),q=new N.Mo("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),G=new N.Mo("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),_={"move-up":{inKeyframes:new N.Mo("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new N.Mo("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:D,outKeyframes:W},"move-left":{inKeyframes:F,outKeyframes:X},"move-right":{inKeyframes:q,outKeyframes:G}},V=(e,t)=>{const{antCls:o}=e,n=`${o}-${t}`,{inKeyframes:r,outKeyframes:i}=_[t];return[(0,L.b)(n,r,i,e.motionDurationMid),{[`\n ${n}-enter,\n ${n}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Q=e=>{const{optionHeight:t,optionFontSize:o,optionLineHeight:n,optionPadding:r}=e;return{position:"relative",display:"block",minHeight:t,padding:r,color:e.colorText,fontWeight:"normal",fontSize:o,lineHeight:n,boxSizing:"border-box"}},U=e=>{const{antCls:t,componentCls:o}=e,n=`${o}-item`,r=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,l=`&${t}-slide-up-leave${t}-slide-up-leave-active`,a=`${o}-dropdown-placement-`;return[{[`${o}-dropdown`]:Object.assign(Object.assign({},(0,R.dF)(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n ${r}${a}bottomLeft,\n ${i}${a}bottomLeft\n `]:{animationName:T.ox},[`\n ${r}${a}topLeft,\n ${i}${a}topLeft,\n ${r}${a}topRight,\n ${i}${a}topRight\n `]:{animationName:T.nP},[`${l}${a}bottomLeft`]:{animationName:T.vR},[`\n ${l}${a}topLeft,\n ${l}${a}topRight\n `]:{animationName:T.YU},"&-hidden":{display:"none"},[`${n}`]:Object.assign(Object.assign({},Q(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},R.L9),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${n}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${n}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${n}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${n}-option-selected:not(${n}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${n}-option-selected:not(${n}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${n}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Q(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},(0,T._j)(e,"slide-up"),(0,T._j)(e,"slide-down"),V(e,"move-up"),V(e,"move-down")]},K=e=>{const{componentCls:t,iconCls:o,borderRadiusSM:n,motionDurationSlow:r,paddingXS:i,multipleItemColorDisabled:l,multipleItemBorderColorDisabled:a,colorIcon:s,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:d}=e,u=`${t}-selection-overflow`;return{[u]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:d,borderRadius:n,cursor:"default",transition:`font-size ${r}, line-height ${r}, height ${r}`,marginInlineEnd:e.calc(d).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:l,borderColor:a,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,R.Nk)()),{display:"inline-flex",alignItems:"center",color:s,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${o}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},Y=(e,t)=>{const{componentCls:o,INTERNAL_FIXED_ITEM_MARGIN:n}=e,r=`${o}-selection-overflow`,i=e.multipleSelectItemHeight,l=(e=>{const{multipleSelectItemHeight:t,selectHeight:o,lineWidth:n}=e;return e.calc(o).sub(t).div(2).sub(n).equal()})(e),a=t?`${o}-${t}`:"",s=(e=>{const{multipleSelectItemHeight:t,paddingXXS:o,lineWidth:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=e.max(e.calc(o).sub(n).equal(),0);return{basePadding:i,containerPadding:e.max(e.calc(i).sub(r).equal(),0),itemHeight:(0,N.zA)(t),itemLineHeight:(0,N.zA)(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}})(e);return{[`${o}-multiple${a}`]:Object.assign(Object.assign({},K(e)),{[`${o}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:s.basePadding,paddingBlock:s.containerPadding,borderRadius:e.borderRadius,[`${o}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,N.zA)(n)} 0`,lineHeight:(0,N.zA)(i),visibility:"hidden",content:'"\\a0"'}},[`${o}-selection-item`]:{height:s.itemHeight,lineHeight:(0,N.zA)(s.itemLineHeight)},[`${r}-item + ${r}-item`]:{[`${o}-selection-search`]:{marginInlineStart:0}},[`${r}-item-suffix`]:{height:"100%"},[`${o}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:(0,N.zA)(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${o}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function Z(e,t){const{componentCls:o}=e,n=t?`${o}-${t}`:"",r={[`${o}-multiple${n}`]:{fontSize:e.fontSize,[`${o}-selector`]:{[`${o}-show-search&`]:{cursor:"text"}},[`\n &${o}-show-arrow ${o}-selector,\n &${o}-allow-clear ${o}-selector\n `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[Y(e,t),r]}const J=e=>{const{componentCls:t}=e,o=(0,v.h1)(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),n=(0,v.h1)(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Z(e),Z(o,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Z(n,"lg")]};function ee(e,t){const{componentCls:o,inputPaddingHorizontalBase:n,borderRadius:r}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),l=t?`${o}-${t}`:"";return{[`${o}-single${l}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${o}-selector`]:Object.assign(Object.assign({},(0,R.dF)(e,!0)),{display:"flex",borderRadius:r,[`${o}-selection-search`]:{position:"absolute",top:0,insetInlineStart:n,insetInlineEnd:n,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n ${o}-selection-item,\n ${o}-selection-placeholder\n `]:{padding:0,lineHeight:(0,N.zA)(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${o}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${o}-selection-item:empty:after`,`${o}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${o}-show-arrow ${o}-selection-item,\n &${o}-show-arrow ${o}-selection-placeholder\n `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${o}-open ${o}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${o}-customize-input)`]:{[`${o}-selector`]:{width:"100%",height:"100%",padding:`0 ${(0,N.zA)(n)}`,[`${o}-selection-search-input`]:{height:i},"&:after":{lineHeight:(0,N.zA)(i)}}},[`&${o}-customize-input`]:{[`${o}-selector`]:{"&:after":{display:"none"},[`${o}-selection-search`]:{position:"static",width:"100%"},[`${o}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,N.zA)(n)}`,"&:after":{display:"none"}}}}}}}function te(e){const{componentCls:t}=e,o=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[ee(e),ee((0,v.h1)(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:o,insetInlineEnd:o},[`${t}-selector`]:{padding:`0 ${(0,N.zA)(o)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(o).add(e.calc(e.fontSize).mul(1.5)).equal()},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},ee((0,v.h1)(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const oe=(e,t)=>{const{componentCls:o,antCls:n,controlOutlineWidth:r}=e;return{[`&:not(${o}-customize-input) ${o}-selector`]:{border:`${(0,N.zA)(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${o}-disabled):not(${o}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${o}-selector`]:{borderColor:t.hoverBorderHover},[`${o}-focused& ${o}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${(0,N.zA)(r)} ${t.activeShadowColor}`,outline:0}}}},ne=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},oe(e,t))}),re=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},oe(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),ne(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),ne(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${(0,N.zA)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),ie=(e,t)=>{const{componentCls:o,antCls:n}=e;return{[`&:not(${o}-customize-input) ${o}-selector`]:{background:t.bg,border:`${(0,N.zA)(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${o}-disabled):not(${o}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${o}-selector`]:{background:t.hoverBg},[`${o}-focused& ${o}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},le=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},ie(e,t))}),ae=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},ie(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),le(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),le(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${(0,N.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),se=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${(0,N.zA)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}),ce=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},re(e)),ae(e)),se(e))}),de=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},ue=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},pe=e=>{const{antCls:t,componentCls:o,inputPaddingHorizontalBase:n,iconCls:r}=e;return{[o]:Object.assign(Object.assign({},(0,R.dF)(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${o}-customize-input) ${o}-selector`]:Object.assign(Object.assign({},de(e)),ue(e)),[`${o}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},R.L9),{[`> ${t}-typography`]:{display:"inline"}}),[`${o}-selection-placeholder`]:Object.assign(Object.assign({},R.L9),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${o}-arrow`]:Object.assign(Object.assign({},(0,R.Nk)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${o}-suffix)`]:{pointerEvents:"auto"}},[`${o}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${o}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${o}-clear`]:{opacity:1},[`${o}-arrow:not(:last-child)`]:{opacity:0}}}),[`${o}-has-feedback`]:{[`${o}-clear`]:{insetInlineEnd:e.calc(n).add(e.fontSize).add(e.paddingXS).equal()}}}},me=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},pe(e),te(e),J(e),U(e),{[`${t}-rtl`]:{direction:"rtl"}},(0,M.G)(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},ge=(0,$.OF)("Select",((e,t)=>{let{rootPrefixCls:o}=t;const n=(0,v.h1)(e,{rootPrefixCls:o,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[me(n),ce(n)]}),(e=>{const{fontSize:t,lineHeight:o,lineWidth:n,controlHeight:r,controlHeightSM:i,controlHeightLG:l,paddingXXS:a,controlPaddingHorizontal:s,zIndexPopupBase:c,colorText:d,fontWeightStrong:u,controlItemBgActive:p,controlItemBgHover:m,colorBgContainer:g,colorFillSecondary:b,colorBgContainerDisabled:f,colorTextDisabled:h}=e,$=2*a,v=2*n,y=Math.min(r-$,r-v),x=Math.min(i-$,i-v),C=Math.min(l-$,l-v);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),zIndexPopup:c+50,optionSelectedColor:d,optionSelectedFontWeight:u,optionSelectedBg:p,optionActiveBg:m,optionPadding:`${(r-t*o)/2}px ${s}px`,optionFontSize:t,optionLineHeight:o,optionHeight:r,selectorBg:g,clearBg:g,singleItemHeightLG:l,multipleItemBg:b,multipleItemBorderColor:"transparent",multipleItemHeight:y,multipleItemHeightSM:x,multipleItemHeightLG:C,multipleSelectorBgDisabled:f,multipleItemColorDisabled:h,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize)}}),{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var be=o(26067),fe=o(36029),he=o(47852),$e=o(14103),ve=o(93567),ye=o(42877);var xe=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{var o;const{prefixCls:r,bordered:d,className:m,rootClassName:g,getPopupContainer:f,popupClassName:h,dropdownClassName:$,listHeight:v=256,placement:y,listItemHeight:x,size:C,disabled:S,notFoundContent:O,status:w,builtinPlacements:E,dropdownMatchSelectWidth:R,popupMatchSelectWidth:M,direction:T,style:N,allowClear:L,variant:D,dropdownStyle:W,transitionName:F,tagRender:X,maxCount:q}=e,G=xe(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:_,getPrefixCls:V,renderEmpty:Q,direction:U,virtual:K,popupMatchSelectWidth:Y,popupOverflow:Z,select:J}=n.useContext(p.QO),[,ee]=(0,b.Ay)(),te=null!=x?x:null==ee?void 0:ee.controlHeight,oe=V("select",r),ne=V(),re=null!=T?T:U,{compactSize:ie,compactItemClassnames:le}=(0,P.RQ)(oe,re),[ae,se]=(0,B.A)(D,d),ce=(0,k.A)(oe),[de,ue,pe]=ge(oe,ce),me=n.useMemo((()=>{const{mode:t}=e;if("combobox"!==t)return t===Ce?"combobox":t}),[e.mode]),Se="multiple"===me||"tags"===me,Oe=function(e,t){return void 0!==t?t:null!==e}(e.suffixIcon,e.showArrow),we=null!==(o=null!=M?M:R)&&void 0!==o?o:Y,{status:Ee,hasFeedback:je,isFormItemInput:Ie,feedbackIcon:ke}=n.useContext(z.$W),Ae=(0,u.v)(Ee,w);let ze;ze=void 0!==O?O:"combobox"===me?null:(null==Q?void 0:Q("Select"))||n.createElement(j,{componentName:"Select"});const{suffixIcon:Be,itemIcon:Pe,removeIcon:He,clearIcon:Re}=function(e){let{suffixIcon:t,clearIcon:o,menuItemSelectedIcon:r,removeIcon:i,loading:l,multiple:a,hasFeedback:s,prefixCls:c,showSuffixIcon:d,feedbackIcon:u,showArrow:p,componentName:m}=e;const g=null!=o?o:n.createElement(fe.A,null),b=e=>null!==t||s||p?n.createElement(n.Fragment,null,!1!==d&&e,s&&u):null;let f=null;if(void 0!==t)f=b(t);else if(l)f=b(n.createElement(ve.A,{spin:!0}));else{const e=`${c}-suffix`;f=t=>{let{open:o,showSearch:r}=t;return b(o&&r?n.createElement(ye.A,{className:e}):n.createElement($e.A,{className:e}))}}let h=null;h=void 0!==r?r:a?n.createElement(be.A,null):null;let $=null;return $=void 0!==i?i:n.createElement(he.A,null),{clearIcon:g,suffixIcon:f,itemIcon:h,removeIcon:$}}(Object.assign(Object.assign({},G),{multiple:Se,hasFeedback:je,feedbackIcon:ke,showSuffixIcon:Oe,prefixCls:oe,componentName:"Select"})),Me=!0===L?{clearIcon:Re}:L,Te=(0,a.A)(G,["suffixIcon","itemIcon"]),Ne=i()(h||$,{[`${oe}-dropdown-${re}`]:"rtl"===re},g,pe,ce,ue),Le=(0,A.A)((e=>{var t;return null!==(t=null!=C?C:ie)&&void 0!==t?t:e})),De=n.useContext(I.A),We=null!=S?S:De,Fe=i()({[`${oe}-lg`]:"large"===Le,[`${oe}-sm`]:"small"===Le,[`${oe}-rtl`]:"rtl"===re,[`${oe}-${ae}`]:se,[`${oe}-in-form-item`]:Ie},(0,u.L)(oe,Ae,je),le,null==J?void 0:J.className,m,g,pe,ce,ue),Xe=n.useMemo((()=>void 0!==y?y:"rtl"===re?"bottomRight":"bottomLeft"),[y,re]);const[qe]=(0,s.YK)("SelectLike",null==W?void 0:W.zIndex);return de(n.createElement(l.Ay,Object.assign({ref:t,virtual:K,showSearch:null==J?void 0:J.showSearch},Te,{style:Object.assign(Object.assign({},null==J?void 0:J.style),N),dropdownMatchSelectWidth:we,transitionName:(0,c.b)(ne,"slide-up",F),builtinPlacements:H(E,Z),listHeight:v,listItemHeight:te,mode:me,prefixCls:oe,placement:Xe,direction:re,suffixIcon:Be,menuItemSelectedIcon:Pe,removeIcon:He,allowClear:Me,notFoundContent:ze,className:Fe,getPopupContainer:f||_,dropdownClassName:Ne,disabled:We,dropdownStyle:Object.assign(Object.assign({},W),{zIndex:qe}),maxCount:Se?q:void 0,tagRender:Se?X:void 0})))};const Oe=n.forwardRef(Se),we=(0,d.A)(Oe);Oe.SECRET_COMBOBOX_MODE_DO_NOT_USE=Ce,Oe.Option=l.c$,Oe.OptGroup=l.JM,Oe._InternalPanelDoNotUseOrYouWillBeFired=we;const Ee=Oe},6531:(e,t,o)=>{o.d(t,{A:()=>E});var n=o(96540),r=o(46942),i=o.n(r),l=o(95826),a=o(25371),s=o(62279),c=o(98119),d=o(8719),u=o(26211);const p=n.forwardRef(((e,t)=>{const{open:o}=e,r=(0,n.useRef)(null),i=(0,n.useRef)(null);function l(){a.A.cancel(i.current),i.current=null}return n.useEffect((()=>(o?i.current=(0,a.A)((()=>{var e;null===(e=r.current)||void 0===e||e.forceAlign(),i.current=null})):l(),l)),[o,e.title]),n.createElement(u.A,Object.assign({ref:(0,d.K4)(r,t)},e))}));var m=o(64552),g=o(24978),b=o(25905),f=o(20106),h=o(80336);const $=e=>{const{componentCls:t,antCls:o,controlSize:n,dotSize:r,marginFull:i,marginPart:l,colorFillContentHover:a,handleColorDisabled:s,calc:c}=e;return{[t]:Object.assign(Object.assign({},(0,b.dF)(e)),{position:"relative",height:n,margin:`${(0,m.zA)(l)} ${(0,m.zA)(i)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${(0,m.zA)(i)} ${(0,m.zA)(l)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:a},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${(0,m.zA)(e.handleLineWidth)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none","&::before":{content:'""',position:"absolute",insetInlineStart:c(e.handleLineWidth).mul(-1).equal(),insetBlockStart:c(e.handleLineWidth).mul(-1).equal(),width:c(e.handleSize).add(c(e.handleLineWidth).mul(2)).equal(),height:c(e.handleSize).add(c(e.handleLineWidth).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${(0,m.zA)(e.handleLineWidth)} ${e.handleColor}`,borderRadius:"50%",cursor:"pointer",transition:`\n inset-inline-start ${e.motionDurationMid},\n inset-block-start ${e.motionDurationMid},\n width ${e.motionDurationMid},\n height ${e.motionDurationMid},\n box-shadow ${e.motionDurationMid}\n `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:c(e.handleSizeHover).sub(e.handleSize).div(2).add(e.handleLineWidthHover).mul(-1).equal(),insetBlockStart:c(e.handleSizeHover).sub(e.handleSize).div(2).add(e.handleLineWidthHover).mul(-1).equal(),width:c(e.handleSizeHover).add(c(e.handleLineWidthHover).mul(2)).equal(),height:c(e.handleSizeHover).add(c(e.handleLineWidthHover).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${(0,m.zA)(e.handleLineWidthHover)} ${e.handleActiveColor}`,width:e.handleSizeHover,height:e.handleSizeHover,insetInlineStart:e.calc(e.handleSize).sub(e.handleSizeHover).div(2).equal(),insetBlockStart:e.calc(e.handleSize).sub(e.handleSizeHover).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:r,height:r,backgroundColor:e.colorBgElevated,border:`${(0,m.zA)(e.handleLineWidth)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`\n ${t}-dot\n `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:e.handleSize,height:e.handleSize,boxShadow:`0 0 0 ${(0,m.zA)(e.handleLineWidth)} ${s}`,insetInlineStart:0,insetBlockStart:0},[`\n ${t}-mark-text,\n ${t}-dot\n `]:{cursor:"not-allowed !important"}},[`&-tooltip ${o}-tooltip-inner`]:{minWidth:"unset"}})}},v=(e,t)=>{const{componentCls:o,railSize:n,handleSize:r,dotSize:i,marginFull:l,calc:a}=e,s=t?"paddingBlock":"paddingInline",c=t?"width":"height",d=t?"height":"width",u=t?"insetBlockStart":"insetInlineStart",p=t?"top":"insetInlineStart",g=a(n).mul(3).sub(r).div(2).equal(),b=a(r).sub(n).div(2).equal(),f=t?{borderWidth:`${(0,m.zA)(b)} 0`,transform:`translateY(${(0,m.zA)(a(b).mul(-1).equal())})`}:{borderWidth:`0 ${(0,m.zA)(b)}`,transform:`translateX(${(0,m.zA)(e.calc(b).mul(-1).equal())})`};return{[s]:n,[d]:a(n).mul(3).equal(),[`${o}-rail`]:{[c]:"100%",[d]:n},[`${o}-track,${o}-tracks`]:{[d]:n},[`${o}-track-draggable`]:Object.assign({},f),[`${o}-handle`]:{[u]:g},[`${o}-mark`]:{insetInlineStart:0,top:0,[p]:a(n).mul(3).add(t?0:l).equal(),[c]:"100%"},[`${o}-step`]:{insetInlineStart:0,top:0,[p]:n,[c]:"100%",[d]:n},[`${o}-dot`]:{position:"absolute",[u]:a(n).sub(i).div(2).equal()}}},y=e=>{const{componentCls:t,marginPartWithMark:o}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},v(e,!0)),{[`&${t}-with-marks`]:{marginBottom:o}})}},x=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},v(e,!1)),{height:"100%"})}},C=(0,f.OF)("Slider",(e=>{const t=(0,h.h1)(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[$(t),y(t),x(t)]}),(e=>{const t=e.controlHeightLG/4;return{controlSize:t,railSize:4,handleSize:t,handleSizeHover:e.controlHeightSM/2,dotSize:8,handleLineWidth:e.lineWidth+1,handleLineWidthHover:e.lineWidth+3,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:e.colorPrimary,handleColorDisabled:new g.q(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}}));function S(){const[e,t]=n.useState(!1),o=n.useRef(),r=()=>{a.A.cancel(o.current)};return n.useEffect((()=>r),[]),[e,e=>{r(),e?t(e):o.current=(0,a.A)((()=>{t(e)}))}]}var O=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const{prefixCls:o,range:r,className:d,rootClassName:u,style:m,disabled:g,tooltipPrefixCls:b,tipFormatter:f,tooltipVisible:h,getTooltipPopupContainer:$,tooltipPlacement:v,tooltip:y={},onChangeComplete:x}=e,w=O(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete"]),{vertical:E}=e,{direction:j,slider:I,getPrefixCls:k,getPopupContainer:A}=n.useContext(s.QO),z=n.useContext(c.A),B=null!=g?g:z,[P,H]=S(),[R,M]=S(),T=P||R,N=Object.assign({},y),{open:L,placement:D,getPopupContainer:W,prefixCls:F,formatter:X}=N,q=null!=L?L:h,G=function(e,t){return e||null===e?e:t||null===t?t:e=>"number"==typeof e?e.toString():""}(X,f),[_,V]=S(),Q=(e,t)=>e||(t?"rtl"===j?"left":"right":"top"),U=k("slider",o),[K,Y,Z]=C(U),J=i()(d,null==I?void 0:I.className,u,{[`${U}-rtl`]:"rtl"===j,[`${U}-lock`]:_},Y,Z);"rtl"!==j||w.vertical||(w.reverse=!w.reverse);const[ee,te]=n.useMemo((()=>r?"object"==typeof r?[!0,r.draggableTrack]:[!0,!1]:[!1]),[r]);n.useEffect((()=>{const e=()=>{(0,a.A)((()=>{M(!1)}),1)};return document.addEventListener("mouseup",e),()=>{document.removeEventListener("mouseup",e)}}),[]);const oe=ee&&!q,ne=oe?(e,t)=>{const o=n.cloneElement(e,{style:Object.assign(Object.assign({},e.props.style),{visibility:"hidden"})});return n.createElement(p,Object.assign({},N,{prefixCls:k("tooltip",null!=F?F:b),title:G?G(t.value):"",open:T,placement:Q(null!=D?D:v,E),key:"tooltip",overlayClassName:`${U}-tooltip`,getPopupContainer:W||$||A}),o)}:void 0,re=Object.assign(Object.assign({},null==I?void 0:I.style),m);return K(n.createElement(l.A,Object.assign({},w,{step:w.step,range:ee,draggableTrack:te,className:J,style:re,disabled:B,ref:t,prefixCls:U,handleRender:(e,t)=>{const{index:o}=t,r=e.props,i=Object.assign(Object.assign({},r),{onMouseEnter:e=>{var t;H(!0),null===(t=r.onMouseEnter)||void 0===t||t.call(r,e)},onMouseLeave:e=>{var t;H(!1),null===(t=r.onMouseLeave)||void 0===t||t.call(r,e)},onMouseDown:e=>{var t;M(!0),V(!0),null===(t=r.onMouseDown)||void 0===t||t.call(r,e)},onFocus:e=>{var t,o;M(!0),null===(t=w.onFocus)||void 0===t||t.call(w,e),null===(o=r.onFocus)||void 0===o||o.call(r,e)},onBlur:e=>{var t,o;M(!1),null===(t=w.onBlur)||void 0===t||t.call(w,e),null===(o=r.onBlur)||void 0===o||o.call(r,e)}}),l=n.cloneElement(e,i);return oe?l:n.createElement(p,Object.assign({},N,{prefixCls:k("tooltip",null!=F?F:b),title:G?G(t.value):"",open:!!q||T,placement:Q(null!=D?D:v,E),key:o,overlayClassName:`${U}-tooltip`,getPopupContainer:W||$||A}),l)},activeHandleRender:ne,onChangeComplete:e=>{null==x||x(e),V(!1)}})))}));const E=w},76327:(e,t,o)=>{o.d(t,{K6:()=>s,RQ:()=>a});var n=o(96540),r=o(46942),i=o.n(r);o(82546);const l=n.createContext(null),a=(e,t)=>{const o=n.useContext(l),r=n.useMemo((()=>{if(!o)return"";const{compactDirection:n,isFirstItem:r,isLastItem:l}=o,a="vertical"===n?"-vertical-":"-";return i()(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:r,[`${e}-compact${a}last-item`]:l,[`${e}-compact${a}item-rtl`]:"rtl"===t})}),[e,t,o]);return{compactSize:null==o?void 0:o.compactSize,compactDirection:null==o?void 0:o.compactDirection,compactItemClassnames:r}},s=e=>{let{children:t}=e;return n.createElement(l.Provider,{value:null},t)}},55974:(e,t,o)=>{function n(e,t,o){const{focusElCls:n,focus:r,borderElCls:i}=o,l=i?"> *":"",a=["hover",r?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${l}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[a]:{zIndex:2}},n?{[`&${n}`]:{zIndex:2}}:{}),{[`&[disabled] ${l}`]:{zIndex:0}})}}function r(e,t,o){const{borderElCls:n}=o,r=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${r}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:o}=e,i=`${o}-compact`;return{[i]:Object.assign(Object.assign({},n(e,i,t)),r(o,i,t))}}o.d(t,{G:()=>i})},25905:(e,t,o)=>{o.d(t,{K8:()=>u,L9:()=>r,Nk:()=>l,av:()=>s,dF:()=>i,jk:()=>d,t6:()=>a,vj:()=>c});var n=o(64552);const r={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},i=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},l=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),a=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),s=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),c=(e,t,o,n)=>{const r=`[class^="${t}"], [class*=" ${t}"]`,i=o?`.${o}`:r,l={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let a={};return!1!==n&&(a={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},a),l),{[r]:l})}},d=e=>({outline:`${(0,n.zA)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),u=e=>({"&:focus-visible":Object.assign({},d(e))})},60977:(e,t,o)=>{o.d(t,{A:()=>n});const n=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}})},28680:(e,t,o)=>{o.d(t,{p9:()=>a});var n=o(64552),r=o(14980);const i=new n.Mo("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),l=new n.Mo("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),a=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:o}=e,n=`${o}-fade`,a=t?"&":"";return[(0,r.b)(n,i,l,e.motionDurationMid,t),{[`\n ${a}${n}-enter,\n ${a}${n}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${a}${n}-leave`]:{animationTimingFunction:"linear"}}]}},14980:(e,t,o)=>{o.d(t,{b:()=>i});const n=e=>({animationDuration:e,animationFillMode:"both"}),r=e=>({animationDuration:e,animationFillMode:"both"}),i=function(e,t,o,i){const l=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${l}${e}-enter,\n ${l}${e}-appear\n `]:Object.assign(Object.assign({},n(i)),{animationPlayState:"paused"}),[`${l}${e}-leave`]:Object.assign(Object.assign({},r(i)),{animationPlayState:"paused"}),[`\n ${l}${e}-enter${e}-enter-active,\n ${l}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${l}${e}-leave${e}-leave-active`]:{animationName:o,animationPlayState:"running",pointerEvents:"none"}}}},53561:(e,t,o)=>{o.d(t,{YU:()=>s,_j:()=>g,nP:()=>a,ox:()=>i,vR:()=>l});var n=o(64552),r=o(14980);const i=new n.Mo("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),l=new n.Mo("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),a=new n.Mo("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),s=new n.Mo("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),c=new n.Mo("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),d=new n.Mo("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),u=new n.Mo("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),p=new n.Mo("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),m={"slide-up":{inKeyframes:i,outKeyframes:l},"slide-down":{inKeyframes:a,outKeyframes:s},"slide-left":{inKeyframes:c,outKeyframes:d},"slide-right":{inKeyframes:u,outKeyframes:p}},g=(e,t)=>{const{antCls:o}=e,n=`${o}-${t}`,{inKeyframes:i,outKeyframes:l}=m[t];return[(0,r.b)(n,i,l,e.motionDurationMid),{[`\n ${n}-enter,\n ${n}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]}},99077:(e,t,o)=>{o.d(t,{aB:()=>p});var n=o(64552),r=o(14980);const i=new n.Mo("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),l=new n.Mo("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),a=new n.Mo("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),s=new n.Mo("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),c=new n.Mo("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),d=new n.Mo("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),u={zoom:{inKeyframes:i,outKeyframes:l},"zoom-big":{inKeyframes:a,outKeyframes:s},"zoom-big-fast":{inKeyframes:a,outKeyframes:s},"zoom-left":{inKeyframes:new n.Mo("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new n.Mo("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new n.Mo("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new n.Mo("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:c,outKeyframes:d},"zoom-down":{inKeyframes:new n.Mo("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new n.Mo("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},p=(e,t)=>{const{antCls:o}=e,n=`${o}-${t}`,{inKeyframes:i,outKeyframes:l}=u[t];return[(0,r.b)(n,i,l,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${n}-enter,\n ${n}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]}},95201:(e,t,o)=>{o.d(t,{Ay:()=>a,Ke:()=>i,Zs:()=>r});var n=o(20791);const r=8;function i(e){const{contentRadius:t,limitVerticalRadius:o}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:o?r:n}}function l(e,t){return e?t:{}}function a(e,t,o){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:a,arrowOffsetHorizontal:s}=e,{arrowDistance:c=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=o||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,n.j)(e,t,i)),{"&:before":{background:t}})]},l(!!d.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:c,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:s}},[`&-placement-topRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:s}}})),l(!!d.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:c,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:s}},[`&-placement-bottomRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:s}}})),l(!!d.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:c},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}})),l(!!d.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:c},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}}))}}},20791:(e,t,o)=>{o.d(t,{j:()=>i,n:()=>r});var n=o(64552);function r(e){const{sizePopupArrow:t,borderRadiusXS:o,borderRadiusOuter:n}=e,r=t/2,i=r,l=1*n/Math.sqrt(2),a=r-n*(1-1/Math.sqrt(2)),s=r-o*(1/Math.sqrt(2)),c=n*(Math.sqrt(2)-1)+o*(1/Math.sqrt(2)),d=2*r-s,u=c,p=2*r-l,m=a,g=2*r-0,b=i,f=r*Math.sqrt(2)+n*(Math.sqrt(2)-2),h=n*(Math.sqrt(2)-1);return{arrowShadowWidth:f,arrowPath:`path('M 0 ${i} A ${n} ${n} 0 0 0 ${l} ${a} L ${s} ${c} A ${o} ${o} 0 0 1 ${d} ${u} L ${p} ${m} A ${n} ${n} 0 0 0 ${g} ${b} Z')`,arrowPolygon:`polygon(${h}px 100%, 50% ${h}px, ${2*r-h}px 100%, ${h}px 100%)`}}const i=(e,t,o)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:l,arrowShadowWidth:a,borderRadiusXS:s,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,l]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${(0,n.zA)(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"}}}},89864:(e,t,o)=>{o.d(t,{vG:()=>$,sb:()=>h,zQ:()=>f});var n=o(96540),r=o(64552),i=o(20439),l=o(50723),a=o(24978);const s=e=>{let t=e,o=e,n=e,r=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?o=4:e<8&&e>=7?o=5:e<14&&e>=8?o=6:e<16&&e>=14?o=7:e>=16&&(o=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?r=4:e>=8&&(r=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:o,borderRadiusLG:t,borderRadiusOuter:r}};const c=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};var d=o(94925);const u=e=>{const t=(0,d.A)(e),o=t.map((e=>e.size)),n=t.map((e=>e.lineHeight)),r=o[1],i=o[0],l=o[2],a=n[1],s=n[0],c=n[2];return{fontSizeSM:i,fontSize:r,fontSizeLG:l,fontSizeXL:o[3],fontSizeHeading1:o[6],fontSizeHeading2:o[5],fontSizeHeading3:o[4],fontSizeHeading4:o[3],fontSizeHeading5:o[2],lineHeight:a,lineHeightLG:c,lineHeightSM:s,fontHeight:Math.round(a*r),fontHeightLG:Math.round(c*l),fontHeightSM:Math.round(s*i),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};const p=(e,t)=>new a.q(e).setAlpha(t).toRgbString(),m=(e,t)=>new a.q(e).darken(t).toHexString(),g=e=>{const t=(0,i.cM)(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},b=(e,t)=>{const o=e||"#fff",n=t||"#000";return{colorBgBase:o,colorTextBase:n,colorText:p(n,.88),colorTextSecondary:p(n,.65),colorTextTertiary:p(n,.45),colorTextQuaternary:p(n,.25),colorFill:p(n,.15),colorFillSecondary:p(n,.06),colorFillTertiary:p(n,.04),colorFillQuaternary:p(n,.02),colorBgLayout:m(o,4),colorBgContainer:m(o,0),colorBgElevated:m(o,0),colorBgSpotlight:p(n,.85),colorBgBlur:"transparent",colorBorder:m(o,15),colorBorderSecondary:m(o,6)}};const f=(0,r.an)((function(e){const t=Object.keys(l.r).map((t=>{const o=(0,i.cM)(e[t]);return new Array(10).fill(1).reduce(((e,n,r)=>(e[`${t}-${r+1}`]=o[r],e[`${t}${r+1}`]=o[r],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:o,generateNeutralColorPalettes:n}=t;const{colorSuccess:r,colorWarning:i,colorError:l,colorInfo:s,colorPrimary:c,colorBgBase:d,colorTextBase:u}=e,p=o(c),m=o(r),g=o(i),b=o(l),f=o(s),h=n(d,u),$=o(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},h),{colorPrimaryBg:p[1],colorPrimaryBgHover:p[2],colorPrimaryBorder:p[3],colorPrimaryBorderHover:p[4],colorPrimaryHover:p[5],colorPrimary:p[6],colorPrimaryActive:p[7],colorPrimaryTextHover:p[8],colorPrimaryText:p[9],colorPrimaryTextActive:p[10],colorSuccessBg:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[10],colorErrorBg:b[1],colorErrorBgHover:b[2],colorErrorBorder:b[3],colorErrorBorderHover:b[4],colorErrorHover:b[5],colorError:b[6],colorErrorActive:b[7],colorErrorTextHover:b[8],colorErrorText:b[9],colorErrorTextActive:b[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:f[1],colorInfoBgHover:f[2],colorInfoBorder:f[3],colorInfoBorderHover:f[4],colorInfoHover:f[4],colorInfo:f[6],colorInfoActive:f[7],colorInfoTextHover:f[8],colorInfoText:f[9],colorInfoTextActive:f[10],colorLinkHover:$[4],colorLink:$[6],colorLinkActive:$[7],colorBgMask:new a.q("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:g,generateNeutralColorPalettes:b})),u(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:o}=e;return{sizeXXL:t*(o+8),sizeXL:t*(o+4),sizeLG:t*(o+2),sizeMD:t*(o+1),sizeMS:t*o,size:t*o,sizeSM:t*(o-1),sizeXS:t*(o-2),sizeXXS:t*(o-3)}}(e)),c(e)),function(e){const{motionUnit:t,motionBase:o,borderRadius:n,lineWidth:r}=e;return Object.assign({motionDurationFast:`${(o+t).toFixed(1)}s`,motionDurationMid:`${(o+2*t).toFixed(1)}s`,motionDurationSlow:`${(o+3*t).toFixed(1)}s`,lineWidthBold:r+1},s(n))}(e))})),h={token:l.A,override:{override:l.A},hashed:!0},$=n.createContext(h)},13950:(e,t,o)=>{o.d(t,{s:()=>n});const n=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},50723:(e,t,o)=>{o.d(t,{A:()=>r,r:()=>n});const n={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},r=Object.assign(Object.assign({},n),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0})},94925:(e,t,o)=>{function n(e){return(e+8)/e}function r(e){const t=new Array(10).fill(null).map(((t,o)=>{const n=o-1,r=e*Math.pow(2.71828,n/5),i=o>1?Math.floor(r):Math.ceil(r);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:n(e)})))}o.d(t,{A:()=>r,k:()=>n})},365:(e,t,o)=>{o.d(t,{Ay:()=>$,Xe:()=>b,Is:()=>g});var n=o(96540),r=o(64552);const i="5.16.5";var l=o(89864),a=o(50723),s=o(24978);function c(e){return e>=0&&e<=255}const d=function(e,t){const{r:o,g:n,b:r,a:i}=new s.q(e).toRgb();if(i<1)return e;const{r:l,g:a,b:d}=new s.q(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((o-l*(1-e))/e),i=Math.round((n-a*(1-e))/e),u=Math.round((r-d*(1-e))/e);if(c(t)&&c(i)&&c(u))return new s.q({r:t,g:i,b:u,a:Math.round(100*e)/100}).toRgbString()}return new s.q({r:o,g:n,b:r,a:1}).toRgbString()};var u=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{delete n[e]}));const r=Object.assign(Object.assign({},o),n),i=1200,l=1600;if(!1===r.motion){const e="0s";r.motionDurationFast=e,r.motionDurationMid=e,r.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},r),{colorFillContent:r.colorFillSecondary,colorFillContentHover:r.colorFill,colorFillAlter:r.colorFillQuaternary,colorBgContainerDisabled:r.colorFillTertiary,colorBorderBg:r.colorBgContainer,colorSplit:d(r.colorBorderSecondary,r.colorBgContainer),colorTextPlaceholder:r.colorTextQuaternary,colorTextDisabled:r.colorTextQuaternary,colorTextHeading:r.colorText,colorTextLabel:r.colorTextSecondary,colorTextDescription:r.colorTextTertiary,colorTextLightSolid:r.colorWhite,colorHighlight:r.colorError,colorBgTextHover:r.colorFillSecondary,colorBgTextActive:r.colorFill,colorIcon:r.colorTextTertiary,colorIconHover:r.colorText,colorErrorOutline:d(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:d(r.colorWarningBg,r.colorBgContainer),fontSizeIcon:r.fontSizeSM,lineWidthFocus:4*r.lineWidth,lineWidth:r.lineWidth,controlOutlineWidth:2*r.lineWidth,controlInteractiveSize:r.controlHeight/2,controlItemBgHover:r.colorFillTertiary,controlItemBgActive:r.colorPrimaryBg,controlItemBgActiveHover:r.colorPrimaryBgHover,controlItemBgActiveDisabled:r.colorFill,controlTmpOutline:r.colorFillQuaternary,controlOutline:d(r.colorPrimaryBg,r.colorBgContainer),lineType:r.lineType,borderRadius:r.borderRadius,borderRadiusXS:r.borderRadiusXS,borderRadiusSM:r.borderRadiusSM,borderRadiusLG:r.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:r.sizeXXS,paddingXS:r.sizeXS,paddingSM:r.sizeSM,padding:r.size,paddingMD:r.sizeMD,paddingLG:r.sizeLG,paddingXL:r.sizeXL,paddingContentHorizontalLG:r.sizeLG,paddingContentVerticalLG:r.sizeMS,paddingContentHorizontal:r.sizeMS,paddingContentVertical:r.sizeSM,paddingContentHorizontalSM:r.size,paddingContentVerticalSM:r.sizeXS,marginXXS:r.sizeXXS,marginXS:r.sizeXS,marginSM:r.sizeSM,margin:r.size,marginMD:r.sizeMD,marginLG:r.sizeLG,marginXL:r.sizeXL,marginXXL:r.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:i,screenXLMin:i,screenXLMax:1599,screenXXL:l,screenXXLMin:l,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new s.q("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new s.q("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new s.q("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),n)}var m=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const n=o.getDerivativeToken(e),{override:r}=t,i=m(t,["override"]);let l=Object.assign(Object.assign({},n),{override:r});return l=p(l),i&&Object.entries(i).forEach((e=>{let[t,o]=e;const{theme:n}=o,r=m(o,["theme"]);let i=r;n&&(i=h(Object.assign(Object.assign({},l),r),{override:r},n)),l[t]=i})),l};function $(){const{token:e,hashed:t,theme:o,override:s,cssVar:c}=n.useContext(l.vG),d=`${i}-${t||""}`,u=o||l.zQ,[m,$,v]=(0,r.hV)(u,[a.A,e],{salt:d,override:s,getComputedToken:h,formatToken:p,cssVar:c&&{prefix:c.prefix,key:c.key,unitless:g,ignore:b,preserve:f}});return[u,v,t?$:"",m,c]}},20106:(e,t,o)=>{o.d(t,{Ay:()=>O,OF:()=>E,bf:()=>w});var n=o(96540),r=o(64552),i=(o(81470),o(62279)),l=o(25905),a=o(365),s=o(23029),c=o(92901),d=o(39874),u=o(15361);const p=(0,c.A)((function e(){(0,s.A)(this,e)})),m="CALC_UNIT",g=new RegExp(m,"g");function b(e){return"number"==typeof e?`${e}${m}`:e}let f=function(e){function t(e){var o;return(0,s.A)(this,t),(o=(0,d.A)(this,t)).result="",e instanceof t?o.result=`(${e.result})`:"number"==typeof e?o.result=b(e):"string"==typeof e&&(o.result=e),o}return(0,u.A)(t,e),(0,c.A)(t,[{key:"add",value:function(e){return e instanceof t?this.result=`${this.result} + ${e.getResult()}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} + ${b(e)}`),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof t?this.result=`${this.result} - ${e.getResult()}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} - ${b(e)}`),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof t?this.result=`${this.result} * ${e.getResult(!0)}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} * ${e}`),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof t?this.result=`${this.result} / ${e.getResult(!0)}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} / ${e}`),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?`(${this.result})`:this.result}},{key:"equal",value:function(e){const{unit:t=!0}=e||{};return this.result=this.result.replace(g,t?"px":""),void 0!==this.lowPriority?`calc(${this.result})`:this.result}}])}(p),h=function(e){function t(e){var o;return(0,s.A)(this,t),(o=(0,d.A)(this,t)).result=0,e instanceof t?o.result=e.result:"number"==typeof e&&(o.result=e),o}return(0,u.A)(t,e),(0,c.A)(t,[{key:"add",value:function(e){return e instanceof t?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof t?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof t?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof t?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}])}(p);const $=e=>{const t="css"===e?f:h;return e=>new t(e)};var v=o(80336),y=o(62366);const x=(e,t,o)=>{var n;return"function"==typeof o?o((0,v.h1)(t,null!==(n=t[e])&&void 0!==n?n:{})):null!=o?o:{}},C=(e,t,o,n)=>{const r=Object.assign({},t[e]);if(null==n?void 0:n.deprecatedTokens){const{deprecatedTokens:e}=n;e.forEach((e=>{let[t,o]=e;var n;((null==r?void 0:r[t])||(null==r?void 0:r[o]))&&(null!==(n=r[o])&&void 0!==n||(r[o]=null==r?void 0:r[t]))}))}const i=Object.assign(Object.assign({},o),r);return Object.keys(i).forEach((e=>{i[e]===t[e]&&delete i[e]})),i},S=(e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function O(e,t,o){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const c=Array.isArray(e)?e:[e,e],[d]=c,u=c.join("-");return function(e){let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const[p,m,g,b,f]=(0,a.Ay)(),{getPrefixCls:h,iconPrefixCls:O,csp:w}=(0,n.useContext)(i.QO),E=h(),j=f?"css":"js",I=$(j),{max:k,min:A}=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),o=0;o(0,r.zA)(e))).join(",")})`},min:function(){for(var e=arguments.length,t=new Array(e),o=0;o(0,r.zA)(e))).join(",")})`}}}(j),z={theme:p,token:b,hashId:g,nonce:()=>null==w?void 0:w.nonce,clientOnly:s.clientOnly,order:s.order||-999};(0,r.IV)(Object.assign(Object.assign({},z),{clientOnly:!1,path:["Shared",E]}),(()=>[{"&":(0,l.av)(b)}])),(0,y.A)(O,w);return[(0,r.IV)(Object.assign(Object.assign({},z),{path:[u,e,O]}),(()=>{if(!1===s.injectStyle)return[];const{token:n,flush:i}=(0,v.Ay)(b),a=x(d,m,o),u=`.${e}`,p=C(d,m,a,{deprecatedTokens:s.deprecatedTokens});f&&Object.keys(a).forEach((e=>{a[e]=`var(${(0,r.Ki)(e,S(d,f.prefix))})`}));const h=(0,v.h1)(n,{componentCls:u,prefixCls:e,iconCls:`.${O}`,antCls:`.${E}`,calc:I,max:k,min:A},f?a:p),$=t(h,{hashId:g,prefixCls:e,rootPrefixCls:E,iconPrefixCls:O});return i(d,p),[!1===s.resetStyle?null:(0,l.vj)(h,e,c,s.resetFont),$]})),g]}}const w=(e,t,o,n)=>{const r=O(e,t,o,Object.assign({resetStyle:!1,order:-998},n));return e=>{let{prefixCls:t,rootCls:o=t}=e;return r(t,o),null}},E=(e,t,o,i)=>{const l=O(e,t,o,i),s=((e,t,o)=>{function i(t){return`${e}${t.slice(0,1).toUpperCase()}${t.slice(1)}`}const{unitless:l={},injectStyle:s=!0}=null!=o?o:{},c={[i("zIndexPopup")]:!0};Object.keys(l).forEach((e=>{c[i(e)]=l[e]}));const d=n=>{let{rootCls:l,cssVar:s}=n;const[,d]=(0,a.Ay)();return(0,r.RC)({path:[e],prefix:s.prefix,key:null==s?void 0:s.key,unitless:Object.assign(Object.assign({},a.Is),c),ignore:a.Xe,token:d,scope:l},(()=>{const n=x(e,d,t),r=C(e,d,n,{deprecatedTokens:null==o?void 0:o.deprecatedTokens});return Object.keys(n).forEach((e=>{r[i(e)]=r[e],delete r[e]})),r})),null};return t=>{const[,,,,o]=(0,a.Ay)();return[r=>s&&o?n.createElement(n.Fragment,null,n.createElement(d,{rootCls:t,cssVar:o,component:e}),r):r,null==o?void 0:o.key]}})(Array.isArray(e)?e[0]:e,o,i);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const[,o]=l(e,t),[n,r]=s(t);return[n,o,r]}}},80336:(e,t,o)=>{o.d(t,{Ay:()=>s,h1:()=>i});const n="undefined"!=typeof CSSINJS_STATISTIC;let r=!0;function i(){for(var e=arguments.length,t=new Array(e),o=0;o{Object.keys(e).forEach((t=>{Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),r=!0,i}const l={};function a(){}const s=e=>{let t,o=e,i=a;return n&&"undefined"!=typeof Proxy&&(t=new Set,o=new Proxy(e,{get:(e,o)=>(r&&t.add(o),e[o])}),i=(e,o)=>{var n;l[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(n=l[e])||void 0===n?void 0:n.component),o)}}),{token:o,keys:t,flush:i}}},62366:(e,t,o)=>{o.d(t,{A:()=>l});var n=o(64552),r=o(25905),i=o(365);const l=(e,t)=>{const[o,l]=(0,i.Ay)();return(0,n.IV)({theme:o,token:l,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce},(()=>[{[`.${e}`]:Object.assign(Object.assign({},(0,r.Nk)()),{[`.${e} .${e}-icon`]:{display:"block"}})}]))}},26211:(e,t,o)=>{o.d(t,{A:()=>N});var n=o(96540),r=o(46942),i=o.n(r),l=o(80427),a=o(12533),s=o(60275),c=o(23723),d=o(95201);const u={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},p={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},m=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function g(e){const{arrowWidth:t,autoAdjustOverflow:o,arrowPointAtCenter:n,offset:r,borderRadius:i,visibleFirst:l}=e,a=t/2,s={};return Object.keys(u).forEach((e=>{const c=n&&p[e]||u[e],g=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(s[e]=g,m.has(e)&&(g.autoArrow=!1),e){case"top":case"topLeft":case"topRight":g.offset[1]=-a-r;break;case"bottom":case"bottomLeft":case"bottomRight":g.offset[1]=a+r;break;case"left":case"leftTop":case"leftBottom":g.offset[0]=-a-r;break;case"right":case"rightTop":case"rightBottom":g.offset[0]=a+r}const b=(0,d.Ke)({contentRadius:i,limitVerticalRadius:!0});if(n)switch(e){case"topLeft":case"bottomLeft":g.offset[0]=-b.arrowOffsetHorizontal-a;break;case"topRight":case"bottomRight":g.offset[0]=b.arrowOffsetHorizontal+a;break;case"leftTop":case"rightTop":g.offset[1]=-b.arrowOffsetHorizontal-a;break;case"leftBottom":case"rightBottom":g.offset[1]=b.arrowOffsetHorizontal+a}g.overflow=function(e,t,o,n){if(!1===n)return{adjustX:!1,adjustY:!1};const r=n&&"object"==typeof n?n:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+o,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+o,i.shiftX=!0,i.adjustX=!0}const l=Object.assign(Object.assign({},i),r);return l.shiftX||(l.adjustX=!0),l.shiftY||(l.adjustY=!0),l}(e,b,t,o),l&&(g.htmlRegion="visibleFirst")})),s}var b=o(40682),f=o(18877),h=o(72616),$=o(62279),v=o(76327),y=o(365),x=o(64552),C=o(25905),S=o(99077),O=o(20791),w=o(13950);function E(e,t){return w.s.reduce(((o,n)=>{const r=e[`${n}1`],i=e[`${n}3`],l=e[`${n}6`],a=e[`${n}7`];return Object.assign(Object.assign({},o),t(n,{lightColor:r,lightBorderColor:i,darkColor:l,textColor:a}))}),{})}var j=o(80336),I=o(20106);const k=e=>{const{componentCls:t,tooltipMaxWidth:o,tooltipColor:n,tooltipBg:r,tooltipBorderRadius:i,zIndexPopup:l,controlHeight:a,boxShadowSecondary:s,paddingSM:c,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,C.dF)(e)),{position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:o,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":r,[`${t}-inner`]:{minWidth:a,minHeight:a,padding:`${(0,x.zA)(e.calc(c).div(2).equal())} ${(0,x.zA)(u)}`,color:n,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:r,borderRadius:i,boxShadow:s,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,d.Zs)}},[`${t}-content`]:{position:"relative"}}),E(e,((e,o)=>{let{darkColor:n}=o;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:n},[`${t}-arrow`]:{"--antd-arrow-background-color":n}}}}))),{"&-rtl":{direction:"rtl"}})},(0,d.Ay)(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},A=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},(0,d.Ke)({contentRadius:e.borderRadius,limitVerticalRadius:!0})),(0,O.n)((0,j.h1)(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),z=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return(0,I.OF)("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:o,colorBgSpotlight:n}=e,r=(0,j.h1)(e,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:t,tooltipBg:n});return[k(r),(0,S.aB)(e,"zoom-big-fast")]}),A,{resetStyle:!1,injectStyle:t})(e)};var B=o(60436);const P=w.s.map((e=>`${e}-inverse`));function H(e,t){const o=function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?w.s.includes(e):[].concat((0,B.A)(P),(0,B.A)(w.s)).includes(e)}(t),n=i()({[`${e}-${t}`]:t&&o}),r={},l={};return t&&!o&&(r.background=t,l["--antd-arrow-background-color"]=t),{className:n,overlayStyle:r,arrowStyle:l}}const R=e=>{const{prefixCls:t,className:o,placement:r="top",title:a,color:s,overlayInnerStyle:c}=e,{getPrefixCls:d}=n.useContext($.QO),u=d("tooltip",t),[p,m,g]=z(u),b=H(u,s),f=b.arrowStyle,h=Object.assign(Object.assign({},c),b.overlayStyle),v=i()(m,g,u,`${u}-pure`,`${u}-placement-${r}`,o,b.className);return p(n.createElement("div",{className:v,style:f},n.createElement("div",{className:`${u}-arrow`}),n.createElement(l.z,Object.assign({},e,{className:m,prefixCls:u,overlayInnerStyle:h}),a)))};var M=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{var o,r;const{prefixCls:d,openClassName:u,getTooltipContainer:p,overlayClassName:m,color:x,overlayInnerStyle:C,children:S,afterOpenChange:O,afterVisibleChange:w,destroyTooltipOnHide:E,arrow:j=!0,title:I,overlay:k,builtinPlacements:A,arrowPointAtCenter:B=!1,autoAdjustOverflow:P=!0}=e,R=!!j,[,T]=(0,y.Ay)(),{getPopupContainer:N,getPrefixCls:L,direction:D}=n.useContext($.QO),W=(0,f.rJ)("Tooltip"),F=n.useRef(null),X=()=>{var e;null===(e=F.current)||void 0===e||e.forceAlign()};n.useImperativeHandle(t,(()=>({forceAlign:X,forcePopupAlign:()=>{W.deprecated(!1,"forcePopupAlign","forceAlign"),X()}})));const[q,G]=(0,a.A)(!1,{value:null!==(o=e.open)&&void 0!==o?o:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),_=!I&&!k&&0!==I,V=n.useMemo((()=>{var e,t;let o=B;return"object"==typeof j&&(o=null!==(t=null!==(e=j.pointAtCenter)&&void 0!==e?e:j.arrowPointAtCenter)&&void 0!==t?t:B),A||g({arrowPointAtCenter:o,autoAdjustOverflow:P,arrowWidth:R?T.sizePopupArrow:0,borderRadius:T.borderRadius,offset:T.marginXXS,visibleFirst:!0})}),[B,j,A,T]),Q=n.useMemo((()=>0===I?I:k||I||""),[k,I]),U=n.createElement(v.K6,null,"function"==typeof Q?Q():Q),{getPopupContainer:K,placement:Y="top",mouseEnterDelay:Z=.1,mouseLeaveDelay:J=.1,overlayStyle:ee,rootClassName:te}=e,oe=M(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),ne=L("tooltip",d),re=L(),ie=e["data-popover-inject"];let le=q;"open"in e||"visible"in e||!_||(le=!1);const ae=n.isValidElement(S)&&!(0,b.zv)(S)?S:n.createElement("span",null,S),se=ae.props,ce=se.className&&"string"!=typeof se.className?se.className:i()(se.className,u||`${ne}-open`),[de,ue,pe]=z(ne,!ie),me=H(ne,x),ge=me.arrowStyle,be=Object.assign(Object.assign({},C),me.overlayStyle),fe=i()(m,{[`${ne}-rtl`]:"rtl"===D},me.className,te,ue,pe),[he,$e]=(0,s.YK)("Tooltip",oe.zIndex),ve=n.createElement(l.A,Object.assign({},oe,{zIndex:he,showArrow:R,placement:Y,mouseEnterDelay:Z,mouseLeaveDelay:J,prefixCls:ne,overlayClassName:fe,overlayStyle:Object.assign(Object.assign({},ge),ee),getTooltipContainer:K||p||N,ref:F,builtinPlacements:V,overlay:U,visible:le,onVisibleChange:t=>{var o,n;G(!_&&t),_||(null===(o=e.onOpenChange)||void 0===o||o.call(e,t),null===(n=e.onVisibleChange)||void 0===n||n.call(e,t))},afterVisibleChange:null!=O?O:w,overlayInnerStyle:be,arrowContent:n.createElement("span",{className:`${ne}-arrow-content`}),motion:{motionName:(0,c.b)(re,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!E}),le?(0,b.Ob)(ae,{className:ce}):ae);return de(n.createElement(h.A.Provider,{value:$e},ve))}));T._InternalPanelDoNotUseOrYouWillBeFired=R;const N=T},36802:(e,t,o)=>{o.d(t,{A:()=>ae});var n=o(96540),r=o(60436),i=o(40961),l=o(46942),a=o.n(l),s=o(40778),c=o(12533),d=o(62279),u=o(98119),p=o(19155),m=o(30696),g=o(25905),b=o(60977),f=o(20106),h=o(80336),$=o(64552);const v=e=>{const{componentCls:t,iconCls:o}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${(0,$.zA)(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${(0,$.zA)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`\n &:not(${t}-disabled):hover,\n &-hover:not(${t}-disabled)\n `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[o]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${(0,$.zA)(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${o},\n p${t}-text,\n p${t}-hint\n `]:{color:e.colorTextDisabled}}}}}},y=e=>{const{componentCls:t,antCls:o,iconCls:n,fontSize:r,lineHeight:i,calc:l}=e,a=`${t}-list-item`,s=`${a}-actions`,c=`${a}-action`,d=e.fontHeightSM;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},(0,g.t6)()),{lineHeight:e.lineHeight,[a]:{position:"relative",height:l(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${a}-name`]:Object.assign(Object.assign({},g.L9),{padding:`0 ${(0,$.zA)(e.paddingXS)}`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[c]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`\n ${c}:focus-visible,\n &.picture ${c}\n `]:{opacity:1},[`${c}${o}-btn`]:{height:d,border:0,lineHeight:1}},[`${t}-icon ${n}`]:{color:e.colorTextDescription,fontSize:r},[`${a}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:l(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${c}`]:{opacity:1},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${n}`]:{color:e.colorError},[s]:{[`${n}, ${n}:hover`]:{color:e.colorError},[c]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}};var x=o(28680);const C=e=>{const{componentCls:t}=e,o=new $.Mo("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),n=new $.Mo("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${r}-appear, ${r}-enter, ${r}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${r}-appear, ${r}-enter`]:{animationName:o},[`${r}-leave`]:{animationName:n}}},{[`${t}-wrapper`]:(0,x.p9)(e)},o,n]};var S=o(20439);const O=e=>{const{componentCls:t,iconCls:o,uploadThumbnailSize:n,uploadProgressOffset:r,calc:i}=e,l=`${t}-list`,a=`${l}-item`;return{[`${t}-wrapper`]:{[`\n ${l}${l}-picture,\n ${l}${l}-picture-card,\n ${l}${l}-picture-circle\n `]:{[a]:{position:"relative",height:i(n).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${(0,$.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${a}-thumbnail`]:Object.assign(Object.assign({},g.L9),{width:n,height:n,lineHeight:(0,$.zA)(i(n).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[o]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${a}-progress`]:{bottom:r,width:`calc(100% - ${(0,$.zA)(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(n).add(e.paddingXS).equal()}},[`${a}-error`]:{borderColor:e.colorError,[`${a}-thumbnail ${o}`]:{[`svg path[fill='${S.z1[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${S.z1.primary}']`]:{fill:e.colorError}}},[`${a}-uploading`]:{borderStyle:"dashed",[`${a}-name`]:{marginBottom:r}}},[`${l}${l}-picture-circle ${a}`]:{[`&, &::before, ${a}-thumbnail`]:{borderRadius:"50%"}}}}},w=e=>{const{componentCls:t,iconCls:o,fontSizeLG:n,colorTextLightSolid:r,calc:i}=e,l=`${t}-list`,a=`${l}-item`,s=e.uploadPicCardSize;return{[`\n ${t}-wrapper${t}-picture-card-wrapper,\n ${t}-wrapper${t}-picture-circle-wrapper\n `]:Object.assign(Object.assign({},(0,g.t6)()),{display:"block",[`${t}${t}-select`]:{width:s,height:s,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${(0,$.zA)(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${l}${l}-picture-card, ${l}${l}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${l}-item-container`]:{display:"inline-block",width:s,height:s,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[a]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,$.zA)(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,$.zA)(i(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${a}:hover`]:{[`&::before, ${a}-actions`]:{opacity:1}},[`${a}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`\n ${o}-eye,\n ${o}-download,\n ${o}-delete\n `]:{zIndex:10,width:n,margin:`0 ${(0,$.zA)(e.marginXXS)}`,fontSize:n,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:r,"&:hover":{color:r},svg:{verticalAlign:"baseline"}}},[`${a}-thumbnail, ${a}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${a}-name`]:{display:"none",textAlign:"center"},[`${a}-file + ${a}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${(0,$.zA)(i(e.paddingXS).mul(2).equal())})`},[`${a}-uploading`]:{[`&${a}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${o}-eye, ${o}-download, ${o}-delete`]:{display:"none"}},[`${a}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${(0,$.zA)(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},E=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},j=e=>{const{componentCls:t,colorTextDisabled:o}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},(0,g.dF)(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:o,cursor:"not-allowed"}})}},I=(0,f.OF)("Upload",(e=>{const{fontSizeHeading3:t,fontHeight:o,lineWidth:n,controlHeightLG:r,calc:i}=e,l=(0,h.h1)(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(o).div(2)).add(n).equal(),uploadPicCardSize:i(r).mul(2.55).equal()});return[j(l),v(l),O(l),w(l),y(l),C(l),E(l),(0,b.A)(l)]}),(e=>({actionsColor:e.colorTextDescription})));var k=o(36436),A=o(93567),z=o(54466),B=o(90628),P=o(57557);var H=o(23723),R=o(40682),M=o(68777);function T(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function N(e,t){const o=(0,r.A)(t),n=o.findIndex((t=>{let{uid:o}=t;return o===e.uid}));return-1===n?o.push(e):o[n]=e,o}function L(e,t){const o=void 0!==e.uid?"uid":"name";return t.filter((t=>t[o]===e[o]))[0]}const D=e=>0===e.indexOf("image/"),W=e=>{if(e.type&&!e.thumbUrl)return D(e.type);const t=e.thumbUrl||e.url||"",o=function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("/"),t=e[e.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(t)||[""])[0]}(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(o))||!/^data:/.test(t)&&!o},F=200;function X(e){return new Promise((t=>{if(!e.type||!D(e.type))return void t("");const o=document.createElement("canvas");o.width=F,o.height=F,o.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(o);const n=o.getContext("2d"),r=new Image;if(r.onload=()=>{const{width:e,height:i}=r;let l=F,a=F,s=0,c=0;e>i?(a=i*(F/e),c=-(a-l)/2):(l=e*(F/i),s=-(l-a)/2),n.drawImage(r,s,c,l,a);const d=o.toDataURL();document.body.removeChild(o),window.URL.revokeObjectURL(r.src),t(d)},r.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const t=new FileReader;t.onload=()=>{t.result&&"string"==typeof t.result&&(r.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const o=new FileReader;o.onload=()=>{o.result&&t(o.result)},o.readAsDataURL(e)}else r.src=window.URL.createObjectURL(e)}))}var q=o(93598),G=o(40756),_=o(30234),V=o(6754),Q=o(26211);const U=n.forwardRef(((e,t)=>{let{prefixCls:o,className:r,style:i,locale:l,listType:s,file:c,items:u,progress:p,iconRender:m,actionIconRender:g,itemRender:b,isImgUrl:f,showPreviewIcon:h,showRemoveIcon:$,showDownloadIcon:v,previewIcon:y,removeIcon:x,downloadIcon:C,onPreview:S,onDownload:O,onClose:w}=e;var E,j;const{status:I}=c,[k,A]=n.useState(I);n.useEffect((()=>{"removed"!==I&&A(I)}),[I]);const[z,B]=n.useState(!1);n.useEffect((()=>{const e=setTimeout((()=>{B(!0)}),300);return()=>{clearTimeout(e)}}),[]);const H=m(c);let R=n.createElement("div",{className:`${o}-icon`},H);if("picture"===s||"picture-card"===s||"picture-circle"===s)if("uploading"===k||!c.thumbUrl&&!c.url){const e=a()(`${o}-list-item-thumbnail`,{[`${o}-list-item-file`]:"uploading"!==k});R=n.createElement("div",{className:e},H)}else{const e=(null==f?void 0:f(c))?n.createElement("img",{src:c.thumbUrl||c.url,alt:c.name,className:`${o}-list-item-image`,crossOrigin:c.crossOrigin}):H,t=a()(`${o}-list-item-thumbnail`,{[`${o}-list-item-file`]:f&&!f(c)});R=n.createElement("a",{className:t,onClick:e=>S(c,e),href:c.url||c.thumbUrl,target:"_blank",rel:"noopener noreferrer"},e)}const M=a()(`${o}-list-item`,`${o}-list-item-${k}`),T="string"==typeof c.linkProps?JSON.parse(c.linkProps):c.linkProps,N=$?g(("function"==typeof x?x(c):x)||n.createElement(q.A,null),(()=>w(c)),o,l.removeFile,!0):null,L=v&&"done"===k?g(("function"==typeof C?C(c):C)||n.createElement(G.A,null),(()=>O(c)),o,l.downloadFile):null,D="picture-card"!==s&&"picture-circle"!==s&&n.createElement("span",{key:"download-delete",className:a()(`${o}-list-item-actions`,{picture:"picture"===s})},L,N),W=a()(`${o}-list-item-name`),F=c.url?[n.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:W,title:c.name},T,{href:c.url,onClick:e=>S(c,e)}),c.name),D]:[n.createElement("span",{key:"view",className:W,onClick:e=>S(c,e),title:c.name},c.name),D],X=h&&(c.url||c.thumbUrl)?n.createElement("a",{href:c.url||c.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:e=>S(c,e),title:l.previewFile},"function"==typeof y?y(c):y||n.createElement(_.A,null)):null,U=("picture-card"===s||"picture-circle"===s)&&"uploading"!==k&&n.createElement("span",{className:`${o}-list-item-actions`},X,"done"===k&&L,N),{getPrefixCls:K}=n.useContext(d.QO),Y=K(),Z=n.createElement("div",{className:M},R,F,U,z&&n.createElement(P.Ay,{motionName:`${Y}-fade`,visible:"uploading"===k,motionDeadline:2e3},(e=>{let{className:t}=e;const r="percent"in c?n.createElement(V.A,Object.assign({},p,{type:"line",percent:c.percent,"aria-label":c["aria-label"],"aria-labelledby":c["aria-labelledby"]})):null;return n.createElement("div",{className:a()(`${o}-list-item-progress`,t)},r)}))),J=c.response&&"string"==typeof c.response?c.response:(null===(E=c.error)||void 0===E?void 0:E.statusText)||(null===(j=c.error)||void 0===j?void 0:j.message)||l.uploadError,ee="error"===k?n.createElement(Q.A,{title:J,getPopupContainer:e=>e.parentNode},Z):Z;return n.createElement("div",{className:a()(`${o}-list-item-container`,r),style:i,ref:t},b?b(ee,c,u,{download:O.bind(null,c),preview:S.bind(null,c),remove:w.bind(null,c)}):ee)})),K=U,Y=(e,t)=>{const{listType:o="text",previewFile:i=X,onPreview:l,onDownload:s,onRemove:c,locale:u,iconRender:p,isImageUrl:m=W,prefixCls:g,items:b=[],showPreviewIcon:f=!0,showRemoveIcon:h=!0,showDownloadIcon:$=!1,removeIcon:v,previewIcon:y,downloadIcon:x,progress:C={size:[-1,2],showInfo:!1},appendAction:S,appendActionVisible:O=!0,itemRender:w,disabled:E}=e,j=function(){const[,e]=n.useReducer((e=>e+1),0);return e}(),[I,T]=n.useState(!1);n.useEffect((()=>{"picture"!==o&&"picture-card"!==o&&"picture-circle"!==o||(b||[]).forEach((e=>{"undefined"!=typeof document&&"undefined"!=typeof window&&window.FileReader&&window.File&&(e.originFileObj instanceof File||e.originFileObj)&&void 0===e.thumbUrl&&i&&i(e.originFileObj).then((t=>{e.thumbUrl=t||"",j()}))}))}),[o,b,i]),n.useEffect((()=>{T(!0)}),[]);const N=(e,t)=>{if(l)return null==t||t.preventDefault(),l(e)},L=e=>{"function"==typeof s?s(e):e.url&&window.open(e.url)},D=e=>{null==c||c(e)},F=e=>{if(p)return p(e,o);const t="uploading"===e.status,r=m&&m(e)?n.createElement(B.A,null):n.createElement(k.A,null);let i=t?n.createElement(A.A,null):n.createElement(z.A,null);return"picture"===o?i=t?n.createElement(A.A,null):r:"picture-card"!==o&&"picture-circle"!==o||(i=t?u.uploading:r),i},q=(e,t,o,r,i)=>{const l={type:"text",size:"small",title:r,onClick:o=>{var r,i;t(),n.isValidElement(e)&&(null===(i=(r=e.props).onClick)||void 0===i||i.call(r,o))},className:`${o}-list-item-action`};if(i&&(l.disabled=E),n.isValidElement(e)){const t=(0,R.Ob)(e,Object.assign(Object.assign({},e.props),{onClick:()=>{}}));return n.createElement(M.Ay,Object.assign({},l,{icon:t}))}return n.createElement(M.Ay,Object.assign({},l),n.createElement("span",null,e))};n.useImperativeHandle(t,(()=>({handlePreview:N,handleDownload:L})));const{getPrefixCls:G}=n.useContext(d.QO),_=G("upload",g),V=G(),Q=a()(`${_}-list`,`${_}-list-${o}`),U=(0,r.A)(b.map((e=>({key:e.uid,file:e}))));let Y={motionDeadline:2e3,motionName:`${_}-${"picture-card"===o||"picture-circle"===o?"animate-inline":"animate"}`,keys:U,motionAppear:I};const Z=n.useMemo((()=>{const e=Object.assign({},(0,H.A)(V));return delete e.onAppearEnd,delete e.onEnterEnd,delete e.onLeaveEnd,e}),[V]);return"picture-card"!==o&&"picture-circle"!==o&&(Y=Object.assign(Object.assign({},Z),Y)),n.createElement("div",{className:Q},n.createElement(P.aF,Object.assign({},Y,{component:!1}),(e=>{let{key:t,file:r,className:i,style:l}=e;return n.createElement(K,{key:t,locale:u,prefixCls:_,className:i,style:l,file:r,items:b,progress:C,listType:o,isImgUrl:m,showPreviewIcon:f,showRemoveIcon:h,showDownloadIcon:$,removeIcon:v,previewIcon:y,downloadIcon:x,iconRender:F,actionIconRender:q,itemRender:w,onPreview:N,onDownload:L,onClose:D})})),S&&n.createElement(P.Ay,Object.assign({},Y,{visible:O,forceRender:!0}),(e=>{let{className:t,style:o}=e;return(0,R.Ob)(S,(e=>({className:a()(e.className,t),style:Object.assign(Object.assign(Object.assign({},o),{pointerEvents:t?"none":void 0}),e.style)})))})))};const Z=n.forwardRef(Y);var J=function(e,t,o,n){return new(o||(o=Promise))((function(r,i){function l(e){try{s(n.next(e))}catch(e){i(e)}}function a(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(l,a)}s((n=n.apply(e,t||[])).next())}))};const ee=`__LIST_IGNORE_${Date.now()}__`,te=(e,t)=>{const{fileList:o,defaultFileList:l,onRemove:g,showUploadList:b=!0,listType:f="text",onPreview:h,onDownload:$,onChange:v,onDrop:y,previewFile:x,disabled:C,locale:S,iconRender:O,isImageUrl:w,progress:E,prefixCls:j,className:k,type:A="select",children:z,style:B,itemRender:P,maxCount:H,data:R={},multiple:M=!1,hasControlInside:D=!0,action:W="",accept:F="",supportServerRender:X=!0,rootClassName:q}=e,G=n.useContext(u.A),_=null!=C?C:G,[V,Q]=(0,c.A)(l||[],{value:o,postState:e=>null!=e?e:[]}),[U,K]=n.useState("drop"),Y=n.useRef(null);n.useMemo((()=>{const e=Date.now();(o||[]).forEach(((t,o)=>{t.uid||Object.isFrozen(t)||(t.uid=`__AUTO__${e}_${o}__`)}))}),[o]);const te=(e,t,o)=>{let n=(0,r.A)(t),l=!1;1===H?n=n.slice(-1):H&&(l=n.length>H,n=n.slice(0,H)),(0,i.flushSync)((()=>{Q(n)}));const a={file:e,fileList:n};o&&(a.event=o),l&&"removed"!==e.status&&!n.some((t=>t.uid===e.uid))||(0,i.flushSync)((()=>{null==v||v(a)}))},oe=e=>{const t=e.filter((e=>!e.file[ee]));if(!t.length)return;const o=t.map((e=>T(e.file)));let n=(0,r.A)(V);o.forEach((e=>{n=N(e,n)})),o.forEach(((e,o)=>{let r=e;if(t[o].parsedFile)e.status="uploading";else{const{originFileObj:t}=e;let o;try{o=new File([t],t.name,{type:t.type})}catch(e){o=new Blob([t],{type:t.type}),o.name=t.name,o.lastModifiedDate=new Date,o.lastModified=(new Date).getTime()}o.uid=e.uid,r=o}te(r,n)}))},ne=(e,t,o)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}if(!L(t,V))return;const n=T(t);n.status="done",n.percent=100,n.response=e,n.xhr=o;const r=N(n,V);te(n,r)},re=(e,t)=>{if(!L(t,V))return;const o=T(t);o.status="uploading",o.percent=e.percent;const n=N(o,V);te(o,n,e)},ie=(e,t,o)=>{if(!L(o,V))return;const n=T(o);n.error=e,n.response=t,n.status="error";const r=N(n,V);te(n,r)},le=e=>{let t;Promise.resolve("function"==typeof g?g(e):g).then((o=>{var n;if(!1===o)return;const r=function(e,t){const o=void 0!==e.uid?"uid":"name",n=t.filter((t=>t[o]!==e[o]));return n.length===t.length?null:n}(e,V);r&&(t=Object.assign(Object.assign({},e),{status:"removed"}),null==V||V.forEach((e=>{const o=void 0!==t.uid?"uid":"name";e[o]!==t[o]||Object.isFrozen(e)||(e.status="removed")})),null===(n=Y.current)||void 0===n||n.abort(t),te(t,r))}))},ae=e=>{K(e.type),"drop"===e.type&&(null==y||y(e))};n.useImperativeHandle(t,(()=>({onBatchStart:oe,onSuccess:ne,onProgress:re,onError:ie,fileList:V,upload:Y.current})));const{getPrefixCls:se,direction:ce,upload:de}=n.useContext(d.QO),ue=se("upload",j),pe=Object.assign(Object.assign({onBatchStart:oe,onError:ie,onProgress:re,onSuccess:ne},e),{data:R,multiple:M,action:W,accept:F,supportServerRender:X,prefixCls:ue,disabled:_,beforeUpload:(t,o)=>J(void 0,void 0,void 0,(function*(){const{beforeUpload:n,transformFile:r}=e;let i=t;if(n){const e=yield n(t,o);if(!1===e)return!1;if(delete t[ee],e===ee)return Object.defineProperty(t,ee,{value:!0,configurable:!0}),!1;"object"==typeof e&&e&&(i=e)}return r&&(i=yield r(i)),i})),onChange:void 0,hasControlInside:D});delete pe.className,delete pe.style,z&&!_||delete pe.id;const me=`${ue}-wrapper`,[ge,be,fe]=I(ue,me),[he]=(0,p.A)("Upload",m.A.Upload),{showRemoveIcon:$e,showPreviewIcon:ve,showDownloadIcon:ye,removeIcon:xe,previewIcon:Ce,downloadIcon:Se}="boolean"==typeof b?{}:b,Oe=void 0===$e?!_:!!$e,we=(e,t)=>b?n.createElement(Z,{prefixCls:ue,listType:f,items:V,previewFile:x,onPreview:h,onDownload:$,onRemove:le,showRemoveIcon:Oe,showPreviewIcon:ve,showDownloadIcon:ye,removeIcon:xe,previewIcon:Ce,downloadIcon:Se,iconRender:O,locale:Object.assign(Object.assign({},he),S),isImageUrl:w,progress:E,appendAction:e,appendActionVisible:t,itemRender:P,disabled:_}):e,Ee=a()(me,k,q,be,fe,null==de?void 0:de.className,{[`${ue}-rtl`]:"rtl"===ce,[`${ue}-picture-card-wrapper`]:"picture-card"===f,[`${ue}-picture-circle-wrapper`]:"picture-circle"===f}),je=Object.assign(Object.assign({},null==de?void 0:de.style),B);if("drag"===A){const e=a()(be,ue,`${ue}-drag`,{[`${ue}-drag-uploading`]:V.some((e=>"uploading"===e.status)),[`${ue}-drag-hover`]:"dragover"===U,[`${ue}-disabled`]:_,[`${ue}-rtl`]:"rtl"===ce});return ge(n.createElement("span",{className:Ee},n.createElement("div",{className:e,style:je,onDrop:ae,onDragOver:ae,onDragLeave:ae},n.createElement(s.A,Object.assign({},pe,{ref:Y,className:`${ue}-btn`}),n.createElement("div",{className:`${ue}-drag-container`},z))),we()))}const Ie=a()(ue,`${ue}-select`,{[`${ue}-disabled`]:_}),ke=n.createElement("div",{className:Ie,style:z?void 0:{display:"none"}},n.createElement(s.A,Object.assign({},pe,{ref:Y})));return ge("picture-card"===f||"picture-circle"===f?n.createElement("span",{className:Ee},we(ke,!!z)):n.createElement("span",{className:Ee},ke,we()))};const oe=n.forwardRef(te);var ne=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{var{style:o,height:r,hasControlInside:i=!1}=e,l=ne(e,["style","height","hasControlInside"]);return n.createElement(oe,Object.assign({ref:t,hasControlInside:i},l,{type:"drag",style:Object.assign(Object.assign({},o),{height:r})}))}));const ie=re,le=oe;le.Dragger=ie,le.LIST_IGNORE=ee;const ae=le}}]); \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 57d98f4..89da09c 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1 +1 @@ -Visualization Collection
    \ No newline at end of file +Visualization Collection
    \ No newline at end of file diff --git a/docs/main.js b/docs/main.js index 83b3506..15d7140 100644 --- a/docs/main.js +++ b/docs/main.js @@ -1 +1 @@ -(()=>{var e,t,n,a={13043:(e,t,n)=>{"use strict";var a=n(96540),i=n(5338),s=n(84976),r=n(74848);const o=a.createContext({locale:"en-us",setLocale:()=>{},headHeight:0,setHeadHeight:()=>{},menuWidth:0,setMenuWidth:()=>{},scrollTop:0,setScrollTop:()=>{},scrollContentRef:a.createRef(),setScrollContentRef:()=>{}});let c=a.createRef();const l=e=>{const t=localStorage.getItem("language")||"en-us",[n,i]=(0,a.useState)(t),[s,l]=(0,a.useState)(0),[d,m]=(0,a.useState)(0),[u,g]=(0,a.useState)(0),h=(0,a.useCallback)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;g(e),c.current&&c.current.scrollTop!==e&&(c.current.scrollTop=e)}),[]);return(0,r.jsx)(o.Provider,{value:{locale:n,headHeight:s,menuWidth:d,scrollTop:u,setLocale:e=>{const t=/^zh\b/.test(e.toLocaleLowerCase())?"zh-cn":"en-us";i(t),localStorage.setItem("language",t)},setHeadHeight:l,setMenuWidth:m,setScrollTop:h,scrollContentRef:c,setScrollContentRef:e=>{e&&(c=e)}},children:e.children})},d=()=>(0,a.useContext)(o);var m=n(47767),u=n(29970);const g={init:function(){u.Ay.initialize("G-N0W492NWD6")},sendEvent:function(e){u.Ay.event(e)},sendPageview:function(e){u.Ay.send({hitType:"pageview",page:e})}};var h=n(6442),p=n(26211),f=n(13545),x=n(60227),A=n(99552);const v=e=>{const t=(0,a.useRef)({screenLeft:window.screenLeft,screenTop:window.screenTop}),n=(0,a.useRef)(0),i=()=>{if(t.current){const{screenLeft:n,screenTop:a}=t.current;if(n!==window.screenLeft||a!==window.screenTop){const n={screenLeft:window.screenLeft,screenTop:window.screenTop};t.current=n,e(n)}}n.current=window.requestAnimationFrame(i)};return(0,a.useEffect)((()=>(n.current=window.requestAnimationFrame(i),()=>{n.current&&window.cancelAnimationFrame(n.current)})),[]),t.current},y=window.location.host.includes("localhost")||window.location.host.includes("127.0.0.1"),w=(e,t,n,i,s)=>{const r=(0,a.useRef)(Math.random().toString(36).substring(2)),[o,c]=(0,a.useState)(null),l=(0,a.useRef)(""),d=(0,a.useRef)(!1),m=(0,a.useRef)(0),u=(0,a.useRef)(0),g=()=>{let e=0,t=0;if(null!=s&&s.current){const{top:n,left:a,width:i,height:r}=s.current.getBoundingClientRect();e=a+window.screenLeft+i/2,t=n+window.screenTop+r/2}else e=window.innerWidth/2+window.screenLeft,t=window.innerHeight/2+window.screenTop;return{pageId:r.current,x:e,y:t}},h=(0,a.useCallback)((()=>{const e=g(),t=window.localStorage.getItem(n);if(t){const a=JSON.parse(t);if(a&&a.length>0){const a=JSON.parse(t).filter((e=>e.pageId!==r.current));a.unshift(e),window.localStorage.setItem(n,JSON.stringify(a))}else window.localStorage.setItem(n,JSON.stringify([e]))}else window.localStorage.setItem(n,JSON.stringify([e]))}),[]),p=(0,a.useCallback)((()=>{const e=window.localStorage.getItem(n);if(e){const t=JSON.parse(e);if(t&&t.length>0){const t=JSON.parse(e).filter((e=>e.pageId===l.current));window.localStorage.setItem(n,JSON.stringify(t))}}}),[]),f=(0,a.useCallback)((()=>{if(e&&d.current){const a=document.getElementById(e);if(a){var n;const e=g();null===(n=a.contentWindow)||void 0===n||n.postMessage(JSON.stringify(e),t)}}}),[]),x=(0,a.useCallback)((()=>{if(e&&d.current){const a=document.getElementById(e);if(a){var n;m.current=0;const e={pageId:r.current,keepAlive:!0,timestamp:(new Date).getTime()};null===(n=a.contentWindow)||void 0===n||n.postMessage(JSON.stringify(e),t),u.current||(u.current=window.setTimeout((()=>{u.current=0,window.localStorage.removeItem(i),l.current="",c(null)}),1500))}}}),[]),A=e=>{if(e){const t=JSON.parse(e);if(t&&t.length>0){let e=!1;for(let n=0,a=t.length;n{if(e){const t=JSON.parse(e);t?(l.current=t.pageId,c(t)):(l.current="",c(null))}else l.current="",c(null)},j=(0,a.useCallback)((e=>{e.origin===t&&(e.data?e.data.includes("keepAlive")?window.localStorage.setItem("keepAliveInfo",e.data):window.localStorage.setItem(i,e.data):(window.localStorage.setItem("keepAliveInfo",""),window.localStorage.setItem(i,"")))}),[]),b=(0,a.useCallback)((e=>{if(e.key===n)A(e.newValue);else if("keepAliveInfo"===e.key){if(e.newValue){const t=JSON.parse(e.newValue);if(l.current)t&&t.pageId===l.current&&u.current&&(window.clearTimeout(u.current),u.current=0);else{u.current&&(window.clearTimeout(u.current),u.current=0);const e={pageId:t.pageId,x:0,y:0};l.current=t.pageId,c(e)}}}else e.key===i&&w(e.newValue)}),[]),_=(0,a.useCallback)((()=>{if(window.self===window.top)if(y){f();const e=window.localStorage.getItem(i);w(e)}else{h();const e=window.localStorage.getItem(n);A(e)}}),[]);return v(_),(0,a.useEffect)((()=>{if(window.self===window.top)if(y){if(e&&null!=s&&s.current){const n=document.createElement("iframe");n.id=e,n.style.visibility="hidden",n.onload=()=>{d.current=!0,_(),window.addEventListener("storage",b),window.addEventListener("resize",_),m.current=window.setInterval((()=>{x()}),600)},n.src=t,s.current.appendChild(n)}}else _(),window.addEventListener("storage",b),window.addEventListener("resize",_),window.addEventListener("beforeunload",p);else y&&window.addEventListener("message",j,!1);return()=>{window.self===window.top?(window.removeEventListener("storage",b),window.removeEventListener("resize",_),m.current&&window.clearInterval(m.current),u.current&&window.clearTimeout(u.current),y||p()):y&&window.removeEventListener("message",j)}}),[]),{interactPageInfo:o,resendMessage:_}},j=["#F2BB00","#16BA79","#2454E6","#5470c6","#ea7ccc","#91cc75","#ee6666","#73c0de","#3ba272","#9a60b4"],b="bIframe",_="http://localhost:3003",M="InteractionEyes_container__nC6-d",D="InteractionEyes_eye__zDx2I",N="InteractionEyes_heart__G9lnP",C="InteractionEyes_eyeball__hK-+b",S=()=>{const{locale:e}=d(),t=(0,a.useRef)(null),{interactPageInfo:n,resendMessage:i}=w(b,_,"selfPageInfoList","bPageInfo",t);(0,a.useEffect)((()=>{i()}),[e]);const s=(0,a.useMemo)((()=>{if(t.current&&n){const{x:e,y:a}=n,{top:i,left:s,width:r,height:o}=t.current.getBoundingClientRect(),c=s+window.screenLeft+r/2,l=i+window.screenTop+o/2,d=Math.hypot(e-c,a-l);if(d>28){return{eyeballLeft:9*(e-c)/d,eyeballTop:9*(a-l)/d}}return{eyeballLeft:0,eyeballTop:0}}return null}),[n]);return(0,r.jsx)("div",{className:M,ref:t,children:s&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:D,children:0===s.eyeballLeft&&0===s.eyeballTop?(0,r.jsx)("div",{className:N}):(0,r.jsx)("div",{className:C,style:{transform:"translate(".concat(s.eyeballLeft,"px, ").concat(s.eyeballTop,"px)")}})}),(0,r.jsx)("div",{className:D,children:0===s.eyeballLeft&&0===s.eyeballTop?(0,r.jsx)("div",{className:N}):(0,r.jsx)("div",{className:C,style:{transform:"translate(".concat(s.eyeballLeft,"px, ").concat(s.eyeballTop,"px)")}})})]})})},E=n.p+"images/235f02ed.jpeg",k=e=>(0,r.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,r.jsxs)("g",{fill:"#11142D",fillRule:"nonzero",children:[(0,r.jsx)("path",{d:"M2.324 2.323h15.12v15.12H2.324V2.323ZM1.711.999a.71.71 0 0 0-.711.71v16.347c0 .393.318.71.71.71h16.348a.71.71 0 0 0 .71-.71V1.71a.71.71 0 0 0-.71-.71H1.71Z"}),(0,r.jsx)("path",{d:"M10.097 13.383V12.36h-4.63V9.863h4.18V8.84h-4.18V6.552H9.91V5.529H4.267v7.854h5.83Zm2.277 0V9.962c.044-.462.21-.825.473-1.09.242-.241.54-.351.87-.351.88 0 1.33.484 1.33 1.452v3.41h1.166v-3.51c0-1.561-.715-2.331-2.123-2.331a1.98 1.98 0 0 0-.957.22 2.183 2.183 0 0 0-.759.638v-.704h-1.166v5.687h1.166Z"})]})}),B=e=>(0,r.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 21 20",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,r.jsxs)("g",{fill:"#11142D",fillRule:"nonzero",children:[(0,r.jsx)("path",{d:"M2.44 2.323h15.12v15.12H2.44V2.323ZM1.827.999a.71.71 0 0 0-.711.71v16.347c0 .393.318.71.71.71h16.347a.71.71 0 0 0 .711-.71V1.71a.71.71 0 0 0-.71-.71H1.826Z"}),(0,r.jsx)("path",{d:"M10.539 14.593v-3.685h2.87v.627h1.046V6.222h-3.916V4.319H9.46v1.903H5.556v5.313H6.6v-.627h2.86v3.685h1.078ZM9.46 9.885H6.6v-2.64h2.86v2.64Zm3.949 0h-2.871v-2.64h2.87v2.64Z"})]})}),I="Header_container__4tC+Z",T="Header_left__7u7-T",P="Header_title__T9B5R",R="Header_right__qQAPq",F="Header_btn__osEo4",G="Header_rewardModal__LMM8K",Q="Header_closeBtn__p4OnE",L=window.location.host.includes("localhost")||window.location.host.includes("127.0.0.1"),O=()=>{const e=(0,h.A)(),{locale:t,setLocale:n,setHeadHeight:i}=d(),s=(0,a.useRef)(null),[o,c]=(0,a.useState)(!1);return(0,a.useEffect)((()=>{if(s.current){const{height:e}=s.current.getBoundingClientRect();i(e)}}),[]),(0,r.jsxs)("div",{className:I,ref:s,children:[(0,r.jsxs)("div",{className:T,children:[(0,r.jsx)("div",{className:P,onClick:()=>{if(L){const t=document.getElementById(b);var e;if(t)null===(e=t.contentWindow)||void 0===e||e.postMessage("autoSavePassword",_);window.open(_,"_blank","top=200,left=100")}else window.open("https://hepengwei.cn","_blank","top=200,left=100")},children:e.formatMessage({id:"common.logoName"})}),(0,r.jsx)(S,{})]}),(0,r.jsxs)("div",{className:R,children:[(0,r.jsx)(p.A,{placement:"bottomRight",title:e.formatMessage({id:"common.reward"}),children:(0,r.jsx)("div",{className:F,onClick:()=>{c(!0)},children:(0,r.jsx)(x.A,{})})}),(0,r.jsx)(p.A,{placement:"bottomRight",title:e.formatMessage({id:"common.LanguageSwitch"}),children:(0,r.jsx)("div",{className:F,onClick:()=>{n("zh-cn"===t?"en-us":"zh-cn")},children:"zh-cn"===t?(0,r.jsx)(B,{}):(0,r.jsx)(k,{})})})]}),(0,r.jsxs)(f.A,{wrapClassName:G,title:e.formatMessage({id:"common.reward"}),open:o,footer:null,maskClosable:!1,width:320,children:[(0,r.jsx)("div",{className:Q,onClick:()=>{c(!1)},children:(0,r.jsx)(A.A,{})}),(0,r.jsx)("img",{src:E,alt:""}),(0,r.jsx)("p",{children:e.formatMessage({id:"common.reward.tip"})})]})]})};var z=n(40961),H=n(142),V=n(22630),U=n(75132),W=n(84890),Y=n(32977),J=n(87942),q=n(21883),Z=n(78504),K=n(76157),X=n(31201),$=n(79045),ee=n(68777),te=n(75816);const ne="Menus_container__dz5ma",ae="Menus_topBox__EoJUd",ie="Menus_top__a7CPT",se="Menus_menuLabel__eOdiw",re="Menus_bottom__dStLR";function oe(e,t,n,a,i){return{key:t,icon:n,children:a,label:(0,r.jsx)("p",{className:se,children:e}),type:i}}const ce=()=>{const e=(0,h.A)(),t=(0,m.Zp)(),n=(0,m.zy)(),[i,s]=(0,a.useState)(!1),{setMenuWidth:o}=d(),c=(0,a.useRef)(null),l=[oe(e.formatMessage({id:"menu.htmlVision"}),"html",(0,r.jsx)(H.A,{}),[oe(e.formatMessage({id:"menu.htmlVision.visualDesign"}),"visualDesign"),oe(e.formatMessage({id:"menu.htmlVision.interactiveDesign"}),"interactiveDesign"),oe(e.formatMessage({id:"menu.htmlVision.backgroundPattern"}),"backgroundEffect"),oe(e.formatMessage({id:"menu.htmlVision.complexLayout"}),"complexLayout"),oe(e.formatMessage({id:"menu.htmlVision.applicationPageFrame"}),"appPageFrame"),oe(e.formatMessage({id:"menu.htmlVision.utilitarianFunction"}),"utilitarianFunction")]),oe(e.formatMessage({id:"menu.cssDynamicEffect"}),"css",(0,r.jsx)(V.A,{}),[oe(e.formatMessage({id:"menu.cssDynamicEffect.dynamicEffectButton"}),"dynamicButtons"),oe(e.formatMessage({id:"menu.cssDynamicEffect.richDynamicEffect"}),"richDynamicEffect"),oe(e.formatMessage({id:"menu.cssDynamicEffect.generateRegularPolygon"}),"generateRegularPolygon"),oe(e.formatMessage({id:"menu.cssDynamicEffect.generateShadow"}),"generateShadow")]),oe(e.formatMessage({id:"menu.canvasDynamicEffect"}),"canvas",(0,r.jsx)(U.A,{}),[oe(e.formatMessage({id:"menu.canvasDynamicEffect.sphereCollisionExample"}),"sphereCollisionExample"),oe(e.formatMessage({id:"menu.canvasDynamicEffect.dynamicClock"}),"dynamicClock"),oe(e.formatMessage({id:"menu.canvasDynamicEffect.searchlightEffect"}),"searchlight"),oe(e.formatMessage({id:"menu.canvasDynamicEffect.sphereCollisionInteraction"}),"globuleInteraction"),oe(e.formatMessage({id:"menu.canvasDynamicEffect.destroyThePlanetGame"}),"killPlanetGame"),oe(e.formatMessage({id:"menu.canvasDynamicEffect.sphereFreeFallInteraction"}),"freeFallingBody"),oe(e.formatMessage({id:"menu.canvasDynamicEffect.coolCountdownAnimation"}),"countDown"),oe(e.formatMessage({id:"menu.canvasDynamicEffect.dynamicParticleBackground"}),"particlesBg"),oe(e.formatMessage({id:"menu.canvasDynamicEffect.rippleEffect"}),"rippleFloatOnTheWater"),oe(e.formatMessage({id:"menu.canvasDynamicEffect.flowerBloomingAnimation"}),"flowerBloom"),oe(e.formatMessage({id:"menu.canvasDynamicEffect.codeBackgroundWall"}),"codeBgWall"),oe(e.formatMessage({id:"menu.canvasDynamicEffect.wordDance"}),"wordDance"),oe(e.formatMessage({id:"menu.canvasDynamicEffect.scratch"}),"scratch"),oe(e.formatMessage({id:"menu.canvasDynamicEffect.matchLine"}),"matchLine")]),oe(e.formatMessage({id:"menu.echartsInteraction"}),"echarts",(0,r.jsx)(W.A,{}),[oe(e.formatMessage({id:"menu.echartsInteraction.barCharts"}),"bar"),oe(e.formatMessage({id:"menu.echartsInteraction.pieCharts"}),"pie"),oe(e.formatMessage({id:"menu.echartsInteraction.treeCharts"}),"tree")]),oe(e.formatMessage({id:"menu.threeJs3D"}),"threejs",(0,r.jsx)(Y.A,{}),[oe(e.formatMessage({id:"menu.threeJs3D.appPageFrame"}),"threejsAppPageFrame"),oe(e.formatMessage({id:"menu.threeJs3D.carShow"}),"carShow"),oe(e.formatMessage({id:"menu.threeJs3D.rubiksCube"}),"rubiksCube"),oe(e.formatMessage({id:"menu.threeJs3D.throwDice"}),"throwDice"),oe(e.formatMessage({id:"menu.threeJs3D.mapDisplay"}),"mapDisplay"),oe(e.formatMessage({id:"menu.threeJs3D.earthDisplay"}),"earthDisplay")]),oe(e.formatMessage({id:"menu.AIApplication"}),"AIApplication",(0,r.jsx)(J.A,{}),[oe(e.formatMessage({id:"menu.AIApplication.humanPostureDetection"}),"humanPostureDetection"),oe(e.formatMessage({id:"menu.AIApplication.notBlockPeopleBarrage"}),"notBlockPeopleBarrage")]),oe(e.formatMessage({id:"menu.imageProcessingTool"}),"imageProcessingTool",(0,r.jsx)(q.A,{})),oe(e.formatMessage({id:"menu.videoProcessingTool"}),"videoProcessingTool",(0,r.jsx)(Z.A,{}))],u=(0,a.useCallback)((0,$.A)((()=>{const e=z.findDOMNode(c.current);e&&o(e.clientWidth)}),{wait:360}).run,[]),g=(0,a.useMemo)((()=>{const{pathname:e}=n,t=[];if(e){const n=e.split("/"),a=n[n.length-1];a&&t.push(a)}return t}),[n]),p=(0,a.useMemo)((()=>{const{pathname:e}=n;if(e){const t=e.split("/");if(t.length>=2&&t[1])return[t[1]]}return["html"]}),[n]);return(0,a.useEffect)((()=>{u()}),[i]),(0,a.useEffect)((()=>(window.addEventListener("resize",u),()=>{window.removeEventListener("resize",u)})),[]),(0,r.jsxs)("div",{className:ne,ref:c,children:[(0,r.jsxs)("div",{className:ae,children:[(0,r.jsx)("div",{className:ie,children:(0,r.jsx)(ee.Ay,{type:"primary",onClick:()=>{s(!i)},style:{marginBottom:16},children:i?(0,r.jsx)(K.A,{}):(0,r.jsx)(X.A,{})})}),(0,r.jsx)(te.A,{defaultOpenKeys:p,selectedKeys:g,mode:"inline",theme:"dark",inlineCollapsed:i,items:l,onClick:e=>{const{keyPath:n}=e,a=n.reduce(((e,t)=>e="/".concat(t).concat(e)),"");t(a)}})]}),(0,r.jsx)("div",{className:re,children:!i&&(0,r.jsx)("span",{children:e.formatMessage({id:"common.keepUpdating"})})})]})},le="Home_container__RMLhs",de="Home_container_body__-OVNZ",me="Home_container_content__q7A-W",ue=()=>{(function(){const e=(0,m.zy)();a.useEffect((()=>{g.init()}),[]),a.useEffect((()=>{const t=e.pathname+e.search;g.sendPageview(t)}),[e])})();const{setScrollTop:e,setScrollContentRef:t}=d(),n=(0,m.Ye)(yj),i=(0,m.zy)(),s=(0,m.Zp)(),o=(0,a.useRef)(null);return(0,a.useEffect)((()=>{const{pathname:e}=i;e&&"/"!==e||s("/html/visualDesign")}),[i]),(0,a.useEffect)((()=>{t(o)}),[]),(0,r.jsxs)("div",{className:le,children:[(0,r.jsx)(O,{}),(0,r.jsxs)("div",{className:de,children:[(0,r.jsx)(ce,{}),(0,r.jsx)("div",{className:me,onScroll:()=>{var t;e(null===(t=o.current)||void 0===t?void 0:t.scrollTop)},ref:o,children:n})]})]})};var ge=n(46942),he=n.n(ge);const pe={container:"GridContent_container__NO4Vk","gt2000-10":"GridContent_gt2000-10__RE2uy",content:"GridContent_content__69gKN","gt2000-9":"GridContent_gt2000-9__VwNg6","gt2000-8":"GridContent_gt2000-8__aZHuR","gt2000-7":"GridContent_gt2000-7__4aOmt","gt2000-6":"GridContent_gt2000-6__MehF3","gt2000-5":"GridContent_gt2000-5__omS8h","gt2000-4":"GridContent_gt2000-4__0cmEO","gt2000-3":"GridContent_gt2000-3__80YFg","gt2000-2":"GridContent_gt2000-2__hUksd","gt2000-1":"GridContent_gt2000-1__JdP9G","eq1700_2000-10":"GridContent_eq1700_2000-10__v-j8J","eq1700_2000-9":"GridContent_eq1700_2000-9__bxTIf","eq1700_2000-8":"GridContent_eq1700_2000-8__1e7ek","eq1700_2000-7":"GridContent_eq1700_2000-7__1mKDg","eq1700_2000-6":"GridContent_eq1700_2000-6__8I1De","eq1700_2000-5":"GridContent_eq1700_2000-5__aZuE+","eq1700_2000-4":"GridContent_eq1700_2000-4__2XNj+","eq1700_2000-3":"GridContent_eq1700_2000-3__Xd2vl","eq1700_2000-2":"GridContent_eq1700_2000-2__eoPvO","eq1700_2000-1":"GridContent_eq1700_2000-1__RvrMQ","eq1400_1700-10":"GridContent_eq1400_1700-10__XQV+M","eq1400_1700-9":"GridContent_eq1400_1700-9__uLvev","eq1400_1700-8":"GridContent_eq1400_1700-8__Rw4q0","eq1400_1700-7":"GridContent_eq1400_1700-7__EoYy7","eq1400_1700-6":"GridContent_eq1400_1700-6__Avlp5","eq1400_1700-5":"GridContent_eq1400_1700-5__yFmoN","eq1400_1700-4":"GridContent_eq1400_1700-4__jEXj+","eq1400_1700-3":"GridContent_eq1400_1700-3__r3QBa","eq1400_1700-2":"GridContent_eq1400_1700-2__ayZbL","eq1400_1700-1":"GridContent_eq1400_1700-1__26hdp","eq1200_1400-10":"GridContent_eq1200_1400-10__OBpag","eq1200_1400-9":"GridContent_eq1200_1400-9__9dEMp","eq1200_1400-8":"GridContent_eq1200_1400-8__d5kk8","eq1200_1400-7":"GridContent_eq1200_1400-7__qwN-x","eq1200_1400-6":"GridContent_eq1200_1400-6__ol1NV","eq1200_1400-5":"GridContent_eq1200_1400-5__B5RI8","eq1200_1400-4":"GridContent_eq1200_1400-4__+SHwZ","eq1200_1400-3":"GridContent_eq1200_1400-3__pjJ9a","eq1200_1400-2":"GridContent_eq1200_1400-2__xdmba","eq1200_1400-1":"GridContent_eq1200_1400-1__6n2l7","eq500_1200-10":"GridContent_eq500_1200-10__EhvGm","eq500_1200-9":"GridContent_eq500_1200-9__Yvosl","eq500_1200-8":"GridContent_eq500_1200-8__Hs4PY","eq500_1200-7":"GridContent_eq500_1200-7__p1yUT","eq500_1200-6":"GridContent_eq500_1200-6__N0+SP","eq500_1200-5":"GridContent_eq500_1200-5__73c-5","eq500_1200-4":"GridContent_eq500_1200-4__SwI71","eq500_1200-3":"GridContent_eq500_1200-3__+b39n","eq500_1200-2":"GridContent_eq500_1200-2__RowGZ","eq500_1200-1":"GridContent_eq500_1200-1__dK0BP","lt500-10":"GridContent_lt500-10__KVc6r","lt500-9":"GridContent_lt500-9__EdDXq","lt500-8":"GridContent_lt500-8__wqwWv","lt500-7":"GridContent_lt500-7__GiMWq","lt500-6":"GridContent_lt500-6__sHgte","lt500-5":"GridContent_lt500-5__WBqou","lt500-4":"GridContent_lt500-4__ucReZ","lt500-3":"GridContent_lt500-3__Ax3Zt","lt500-2":"GridContent_lt500-2__+Pq9U","lt500-1":"GridContent_lt500-1__T7m7X"},fe=e=>{const{differentScreenCols:t,rowSpace:n=0,colSpace:i=0,className:s="",children:o}=e,c=t.map(((e,t)=>e?parseInt(e.toString()).toString():t<=4?"1":""));return(0,r.jsx)("div",{className:he()({[pe.container]:!0,[pe["gt2000-".concat(c[0])]]:!0,[pe["eq1700_2000-".concat(c[1])]]:!0,[pe["eq1400_1700-".concat(c[2])]]:!0,[pe["eq1200_1400-".concat(c[3])]]:!0,[pe["eq500_1200-".concat(c[4])]]:!0,[pe["lt500-".concat(c[5])]]:!!c[5]}),children:(0,r.jsx)("div",{className:"".concat(pe.content," ").concat(s),style:{width:"calc(100% + ".concat(i,"px)"),marginLeft:"".concat(-i/2,"px"),marginRight:"".concat(-i/2,"px")},children:"[object Array]"===Object.prototype.toString.call(o)?o.map((e=>a.cloneElement(e,{rowSpace:n,colSpace:i}))):o||null})})};fe.GridBox=e=>{const{key:t,className:n,rowSpace:a=0,colSpace:i=0,children:s}=e;return(0,r.jsx)("div",{style:{boxSizing:"border-box",width:"100%",padding:"".concat(a/2,"px ").concat(i/2,"px")},className:n,children:s},t)};const xe=fe,Ae="GlassMimicry1_container__3KhAO",ve="GlassMimicry1_card__WwxgS",ye="GlassMimicry1_circle__DoolB",we="GlassMimicry1_rect__Or-6t",je=()=>(0,r.jsxs)("div",{className:Ae,children:[(0,r.jsxs)("div",{className:ve,children:[(0,r.jsx)("h1",{children:"TiKi Platinum"}),(0,r.jsx)("h2",{children:"6228 8076 2232 8768"}),(0,r.jsx)("h3",{children:"van conf banck"}),(0,r.jsx)("h4",{children:"03 / 29"})]}),(0,r.jsx)("div",{className:ye}),(0,r.jsx)("div",{className:we})]}),be="GlassMimicry2_container__S445M",_e="GlassMimicry2_card__3l4Ng",Me="GlassMimicry2_circle__VaL67",De="GlassMimicry2_rect__qdTWE",Ne=()=>(0,r.jsxs)("div",{className:be,children:[(0,r.jsxs)("div",{className:_e,children:[(0,r.jsx)("h1",{children:"TiKi Platinum"}),(0,r.jsx)("h2",{children:"6228 8076 2232 8768"}),(0,r.jsx)("h3",{children:"van conf banck"}),(0,r.jsx)("h4",{children:"09 / 24"})]}),(0,r.jsx)("div",{className:Me}),(0,r.jsx)("div",{className:De})]}),Ce="MixBlendMode_container__Fh1Tw",Se="MixBlendMode_content__0uwYQ",Ee=()=>(0,r.jsx)("div",{className:Ce,children:(0,r.jsx)("div",{className:Se})}),ke=(e,t)=>{const{finalText:n="",textList:i=[],switchingInterval:s=60,duration:o=1500,className:c=""}=e,l=(0,a.useRef)(i.length>0?0:-1),[d,m]=(0,a.useState)(-1===l.current?n:i[l.current]||""),u=(0,a.useRef)(0),g=(0,a.useRef)(0),h=(0,a.useRef)(0),p=(0,a.useCallback)((()=>{const e=(new Date).getTime();if(e-g.current>=o)m(n),l.current=-1,h.current=e;else if(e-h.current>=s){let t=-1===l.current?0:l.current+1;t>=i.length&&(t=0),m(i[t]),l.current=t,h.current=e}u.current=requestAnimationFrame(p)}),[o]),f=(0,a.useCallback)((()=>{const e=(new Date).getTime();g.current=e,h.current=e,u.current=requestAnimationFrame(p)}),[]),x=()=>{u.current&&cancelAnimationFrame(u.current),l.current=0,m(i[0]),f()};return(0,a.useImperativeHandle)(t,(()=>({restart:x}))),(0,a.useEffect)((()=>(f(),()=>{u.current&&cancelAnimationFrame(u.current)})),[]),(0,r.jsx)("span",{className:c,children:d&&d.split("").map(((e,t)=>(0,r.jsx)("span",{children:e},t)))})},Be=a.forwardRef(ke),Ie="SwitchingText_container__9ICqS",Te="SwitchingText_content__6PttP",Pe="SwitchingText_btn__9UW9Y",Re=()=>{const e=(0,a.useRef)(null);return(0,r.jsxs)("div",{className:Ie,children:[(0,r.jsx)(Be,{className:Te,finalText:"Hello World",textList:["Tikiw Plati","Wkslc Wbxsw","Xsodu Qwoev","Dewcz Gewoe","Rsero Bokrs","Ckoex Jwclb","Tikiw Plati","Wkslc Wbxsw","Xsodu Qwoeb","Dewcz Gewoe","Rsero Bokrs","Ckoex Jwclb","Haiiw Pavis","Hwlle Ykels","Helic Wexiw","Heiik Mkdie","Helju Qvold","Helim Xkvlc","Hellw Gewie","Hellv Rkels","Hello Bokis","Hello Ceoix","Hello Wwclb","Hello Wzrlm","Hello Woaic","Hello Woxlm","Hello Woriw","Hello Woriv","Hello Worlc","Hello Worle"],duration:1900,ref:e}),(0,r.jsx)(ee.Ay,{type:"primary",className:Pe,onClick:()=>{var t;null===(t=e.current)||void 0===t||t.restart()},children:"Once Again"})]})};var Fe=n(72902);const Ge="Typed1_container__2a+Le",Qe="Typed1_btn__5+jTK",Le=()=>{const e=(0,a.useRef)(null),t=(0,a.useRef)(null);return(0,a.useEffect)((()=>{const n={strings:["Legends never die"],typeSpeed:60,showCursor:!1};return e.current&&(t.current=new Fe.A(e.current,n)),()=>{var e;null===(e=t.current)||void 0===e||e.destroy()}}),[]),(0,r.jsxs)("div",{className:Ge,children:[(0,r.jsx)("p",{ref:e}),(0,r.jsx)(ee.Ay,{type:"primary",className:Qe,onClick:()=>{var e,n;null===(e=t.current)||void 0===e||e.reset(),null===(n=t.current)||void 0===n||n.start()},children:"Once Again"})]})},Oe="Typed2_container__XvJpL",ze="Typed2_btn__lqx2D",He=()=>{const e=(0,a.useRef)(null),t=(0,a.useRef)(null);return(0,a.useEffect)((()=>{const n={strings:["Legan","Legends naver","Legends never die"],typeSpeed:60,showCursor:!1,backSpeed:60,backDelay:0};return e.current&&(t.current=new Fe.A(e.current,n)),()=>{var e;null===(e=t.current)||void 0===e||e.destroy()}}),[]),(0,r.jsxs)("div",{className:Oe,children:[(0,r.jsx)("p",{ref:e}),(0,r.jsx)(ee.Ay,{type:"primary",className:ze,onClick:()=>{var e,n;null===(e=t.current)||void 0===e||e.reset(),null===(n=t.current)||void 0===n||n.start()},children:"Once Again"})]})},Ve=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:400;const a=document.createElement("span");a.style.visibility="hidden",a.style.padding="0",a.style.whiteSpace="nowrap",a.style.overflow="visible",a.style.fontSize=t>12?t+"px":"12px",a.style.fontWeight=n.toString(),a.innerText=e,document.body.appendChild(a);const i=a.offsetWidth;return document.body.removeChild(a),i},Ue=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:12,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:400,i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s="",r="",o="";if(!e||t12?n+"px":"12px",l.style.fontWeight=a.toString(),document.body.appendChild(l);for(let e=0,n=c.length;et){s=i?r+"...":r;break}}return document.body.removeChild(l),s},We=e=>{const{text:t="",lineNum:n=1,buttonText:i,buttonTextSize:s=12,buttonTextWeight:o=400,onClickButton:c,style:l,onTextOverChange:d}=e;let m=12,u=400;l&&(l.fontSize&&(m=parseInt(l.fontSize)),l.textWeight&&(u=Number(l.textWeight)));const g=(0,a.useRef)(null);if(!t)return(0,r.jsx)("div",{ref:g});const[h,p]=(0,a.useState)(0),f=(0,a.useRef)(!1),x=(0,a.useMemo)((()=>{let e=t,a=!1;const r=Math.max(s,12);if(h){if(Ue(t,h*n,m,u).endsWith("...")&&(a=!0),a){const a=Ve("...",m,u);let s=0;i&&(s=Ve(i,r,o));e=Ue(t,h*n-a-s-2,m,u)}else e=t}return a!==f.current&&(f.current=a,d&&d(a)),{textStyle:{fontSize:"".concat(m,"px"),fontWeight:u,wordBreak:"break-all",position:"relative",padding:0,...l},finalText:e,isOver:a,buttonStyle:{fontSize:"".concat(r,"px"),fontWeight:o.toString(),color:"#0076FF",cursor:"pointer",padding:0,position:"absolute",right:0}}}),[h,n,t,i,s,l]),A=(0,a.useCallback)((()=>{if(g.current){const e=z.findDOMNode(g.current);p(e?e.offsetWidth:0)}}),[]);return(0,a.useEffect)((()=>{A()}),[]),(0,a.useEffect)((()=>(window.addEventListener("resize",A),()=>{window.removeEventListener("resize",A)})),[]),(0,r.jsxs)("div",{style:x.textStyle,ref:g,children:[x.finalText,i&&x.isOver&&(0,r.jsx)("span",{style:x.buttonStyle,onClick:e=>{c&&c(e)},children:i})]})},Ye="AutoEllipsisText_container__2dFtS",Je=()=>{const e=(0,h.A)(),t=e.formatMessage({id:"page.htmlVision.visualDesign.displaysCustomRows"}),n=e.formatMessage({id:"page.htmlVision.visualDesign.displaysCustomRows2"}),[i,s]=(0,a.useState)(!1),o=e=>{s(e)};return(0,r.jsxs)("div",{className:Ye,children:[i?(0,r.jsx)(p.A,{placement:"top",title:t,children:(0,r.jsx)("div",{style:{width:"100%"},children:(0,r.jsx)(We,{text:t,style:{fontSize:"24px"},onTextOverChange:o})})}):(0,r.jsx)(We,{text:t,style:{fontSize:"24px"},onTextOverChange:o}),(0,r.jsx)(We,{text:n.repeat(4),style:{fontSize:"24px",marginTop:"40px"}}),(0,r.jsx)(We,{text:n.repeat(8),lineNum:2,style:{fontSize:"16px",marginTop:"40px"},buttonText:"More",buttonTextSize:16})]})},qe=n.p+"images/c5e4532e.jpg",Ze="FilterCSS_container__HnHaW",Ke="FilterCSS_left__dim3U",Xe="FilterCSS_right__MsfmE",$e=()=>{const e=(0,h.A)();return(0,r.jsxs)("div",{className:Ze,children:[(0,r.jsxs)("div",{className:Ke,children:[(0,r.jsx)("span",{children:e.formatMessage({id:"page.htmlVision.visualDesign.brighten"})}),(0,r.jsx)("img",{src:qe,alt:""})]}),(0,r.jsxs)("div",{className:Xe,children:[(0,r.jsx)("span",{children:e.formatMessage({id:"page.htmlVision.visualDesign.grayed"})}),(0,r.jsx)("img",{src:qe,alt:""})]})]})},et="BgFusion_container__VJAbX",tt=()=>(0,r.jsx)("div",{className:et}),nt={container:"MyLogo_container__KNKdW",box1:"MyLogo_box1__XgNc6",leftTopRect:"MyLogo_leftTopRect__rrMK9",circle:"MyLogo_circle__g+xkt",middleRect:"MyLogo_middleRect__c5wUq",bottomRect:"MyLogo_bottomRect__VJqty",box2:"MyLogo_box2__7wfXg",box3:"MyLogo_box3__d3P-I"},at=new Array(3).fill(0),it=()=>(0,r.jsx)("div",{className:nt.container,children:at.map(((e,t)=>(0,r.jsxs)("div",{className:nt["box".concat(t+1)],children:[(0,r.jsx)("div",{className:nt.leftTopRect}),(0,r.jsx)("div",{className:nt.circle}),(0,r.jsx)("div",{className:nt.middleRect}),(0,r.jsx)("div",{className:nt.bottomRect})]},t)))}),st={container:"ShearAngle_container__tRA3S",box1:"ShearAngle_box1__5M-bD",box2:"ShearAngle_box2__n9GvI",box3:"ShearAngle_box3__uaxeG"},rt=new Array(3).fill(0),ot=()=>(0,r.jsx)("div",{className:st.container,children:rt.map(((e,t)=>(0,r.jsx)("div",{className:st["box".concat(t+1)]},t)))}),ct="AnnulusLoading_container__r9c4O",lt="AnnulusLoading_content__3Beje",dt="AnnulusLoading_item7__AQC4n",mt="AnnulusLoading_item6__+tYBR",ut="AnnulusLoading_item5__PkkRq",gt="AnnulusLoading_item4__C2KqR",ht="AnnulusLoading_item3__sTLBN",pt="AnnulusLoading_item2__29w+l",ft="AnnulusLoading_item1__kaRKn",xt=()=>(0,r.jsx)("div",{className:ct,children:(0,r.jsxs)("div",{className:lt,children:[(0,r.jsx)("div",{className:ft}),(0,r.jsx)("div",{className:pt}),(0,r.jsx)("div",{className:ht}),(0,r.jsx)("div",{className:gt}),(0,r.jsx)("div",{className:ut}),(0,r.jsx)("div",{className:mt}),(0,r.jsx)("div",{className:dt})]})}),At=n.p+"images/7380e6f7.jpg",vt=n.p+"images/ba36f098.jpg",yt=n.p+"images/e7c8df7d.jpg",wt=n.p+"images/06a46209.jpg",jt=n.p+"images/ed6d9a11.jpg",bt=n.p+"images/271a66ed.jpg",_t=n.p+"images/2506df73.jpg",Mt="Honeycomb_container__gPdSS",Dt="Honeycomb_content__Dufrz",Nt=()=>(0,r.jsx)("div",{className:Mt,children:(0,r.jsxs)("div",{className:Dt,children:[(0,r.jsx)("img",{src:At,alt:""}),(0,r.jsx)("img",{src:vt,alt:""}),(0,r.jsx)("img",{src:yt,alt:""}),(0,r.jsx)("img",{src:wt,alt:""}),(0,r.jsx)("img",{src:jt,alt:""}),(0,r.jsx)("img",{src:bt,alt:""}),(0,r.jsx)("img",{src:_t,alt:""})]})}),Ct="PizzaPie_container__+jqg8",St="PizzaPie_content__nr36j",Et=()=>(0,r.jsx)("div",{className:Ct,children:(0,r.jsxs)("div",{className:St,children:[(0,r.jsx)("img",{src:At,alt:""}),(0,r.jsx)("img",{src:vt,alt:""}),(0,r.jsx)("img",{src:yt,alt:""}),(0,r.jsx)("img",{src:wt,alt:""}),(0,r.jsx)("img",{src:jt,alt:""}),(0,r.jsx)("img",{src:bt,alt:""})]})}),kt="AnnulusProgressBar_container__t7uE8",Bt="AnnulusProgressBar_content__aiBoG",It="AnnulusProgressBar_box__Wl9L-",Tt="AnnulusProgressBar_circleOuter__OmSUl",Pt="AnnulusProgressBar_num__CAG59",Rt=()=>{const[,e]=(0,a.useState)(0),t=(0,a.useRef)(0),n=(0,a.useRef)(0),i=()=>{let a=471;const s=document.getElementById("circle");if(t.current>=100){t.current=0,e(0);const n=document.getElementById("circle");n&&(n.style.strokeDashoffset="".concat(a.toString()))}else t.current=Number((t.current+.1).toFixed(2)),e(Number((t.current+.1).toFixed(2))),a=Math.floor(a-a*t.current/100),s&&(s.style.strokeDashoffset="".concat(a.toString()));n.current=window.requestAnimationFrame(i)};return(0,a.useEffect)((()=>(i(),()=>{n.current&&cancelAnimationFrame(n.current)})),[]),(0,r.jsx)("div",{className:kt,children:(0,r.jsx)("div",{className:Bt,children:(0,r.jsxs)("div",{className:It,children:[(0,r.jsx)("div",{className:Tt}),(0,r.jsxs)("svg",{children:[(0,r.jsx)("defs",{children:(0,r.jsxs)("radialGradient",{id:"gradient",cx:"50%",cy:"50%",r:"60%",fx:"50%",fy:"50%",children:[(0,r.jsx)("stop",{offset:"30%",stopColor:"#3cba92"}),(0,r.jsx)("stop",{offset:"100%",stopColor:"#c1dfc4"})]})}),(0,r.jsx)("circle",{stroke:"url(#gradient)",id:"circle"})]}),(0,r.jsx)("div",{className:Pt,children:"".concat(Math.floor(t.current),"%")})]})})})},Ft={container:"AudioLoading_container__LkPXP",content:"AudioLoading_content__Agk5G",span0:"AudioLoading_span0__e1joN",loading:"AudioLoading_loading__Nvgnt",span1:"AudioLoading_span1__KLPUt",span2:"AudioLoading_span2__gOuZh",span3:"AudioLoading_span3__HO3on",span4:"AudioLoading_span4__rFl95",span5:"AudioLoading_span5__Y6BnT",span6:"AudioLoading_span6__jIPUG",span7:"AudioLoading_span7__LmzsW",span8:"AudioLoading_span8__gZg1m",span9:"AudioLoading_span9__BzF4d",span10:"AudioLoading_span10__-p-zh",span11:"AudioLoading_span11__Zse6t",span12:"AudioLoading_span12__Rxrq8",span13:"AudioLoading_span13__21nbh",span14:"AudioLoading_span14__KHro-"},Gt=new Array(15).fill(0),Qt=()=>(0,r.jsx)("div",{className:Ft.container,children:(0,r.jsx)("div",{className:Ft.content,children:Gt.map(((e,t)=>(0,r.jsx)("span",{className:Ft["span".concat(t)]},t)))})}),Lt={container:"SudokuImageAnimation_container__66i30",content:"SudokuImageAnimation_content__bY8Mn",item:"SudokuImageAnimation_item__XGZRs",item8:"SudokuImageAnimation_item8__WsYmu",item7:"SudokuImageAnimation_item7__QNe8D",item6:"SudokuImageAnimation_item6__YU2jR",item5:"SudokuImageAnimation_item5__wz8hO",item4:"SudokuImageAnimation_item4__uHQZd",item3:"SudokuImageAnimation_item3__HiACA",item2:"SudokuImageAnimation_item2__yf6pT",item1:"SudokuImageAnimation_item1__W23ZS",item0:"SudokuImageAnimation_item0__rk5Me"},Ot=new Array(9).fill(0),zt=()=>(0,r.jsx)("div",{className:Lt.container,children:(0,r.jsx)("div",{className:Lt.content,children:Ot.map(((e,t)=>(0,r.jsx)("div",{className:Lt["item".concat(t)]},t)))})}),Ht="TextWrap_container__vVl1N",Vt="TextWrap_topText__eHwkJ",Ut="TextWrap_poly__EwnPy",Wt="TextWrap_leftFloat__Uo9rJ",Yt="TextWrap_rightFloat__ezXwd",Jt=()=>{const e=(0,h.A)().formatMessage({id:"page.htmlVision.visualDesign.quantumEntanglementTip"});return(0,r.jsxs)("div",{className:Ht,children:[(0,r.jsx)("div",{className:Vt,children:e.repeat(40)}),(0,r.jsx)("div",{className:"".concat(Ut," ").concat(Wt)}),(0,r.jsx)("div",{className:"".concat(Ut," ").concat(Yt)}),(0,r.jsx)("span",{children:e.repeat(180)})]})},qt="WaterDropLogin_container__d6dk7",Zt="WaterDropLogin_content__jiIiV",Kt="WaterDropLogin_drop__Nq7iB",Xt="WaterDropLogin_contentBox__nL6ua",$t="WaterDropLogin_inputBox__2oxY0",en="WaterDropLogin_btns__Sil7M",tn="WaterDropLogin_signup__h0wNv",nn=()=>(0,r.jsx)("div",{className:qt,children:(0,r.jsxs)("div",{className:Zt,children:[(0,r.jsx)("div",{className:Kt,children:(0,r.jsxs)("div",{className:Xt,children:[(0,r.jsx)("h2",{children:"Sign in"}),(0,r.jsxs)("form",{children:[(0,r.jsx)("div",{className:$t,children:(0,r.jsx)("input",{type:"text",placeholder:"Username"})}),(0,r.jsx)("div",{className:$t,children:(0,r.jsx)("input",{type:"password",placeholder:"Password"})}),(0,r.jsx)("div",{className:$t,children:(0,r.jsx)("input",{type:"submit",value:"Login"})})]})]})}),(0,r.jsxs)("div",{className:en,children:[(0,r.jsx)("span",{children:"Forget"}),(0,r.jsx)("span",{children:"Password"})]}),(0,r.jsx)("div",{className:"".concat(en," ").concat(tn),children:"Signup"})]})}),an="TextShadow_container__3+vOx",sn="TextShadow_content__ngpOP",rn=()=>{const e=(0,h.A)().formatMessage({id:"page.htmlVision.visualDesign.textShadow"});return(0,r.jsx)("div",{className:an,children:(0,r.jsx)("div",{className:sn,"data-text":e,children:e})})},on="HorseRacelamp_container__bVbh9",cn="HorseRacelamp_scroll__kRja6",ln=new Array(4).fill(0),dn=()=>{const e=()=>(0,r.jsx)("span",{children:"Police line do not cross - Police line do not cross - Police line do not cross - Police line do not cross - Police line do not cross - Police line do not cross"});return(0,r.jsx)("div",{className:on,children:ln.map(((t,n)=>(0,r.jsxs)("div",{className:cn,children:[e(),e()]},n)))})},mn="HarmonyLogo_container__uTwnw",un="HarmonyLogo_content__Azar3",gn="HarmonyLogo_top__zSfqW",hn="HarmonyLogo_line__6yj7q",pn="HarmonyLogo_bottom__4ZSOr",fn=()=>(0,r.jsxs)("div",{className:mn,children:[(0,r.jsxs)("div",{className:un,children:[(0,r.jsx)("div",{className:gn,children:(0,r.jsx)("div",{className:hn})}),(0,r.jsx)("div",{className:pn})]}),(0,r.jsx)("svg",{children:(0,r.jsxs)("filter",{id:"fractal",filterUnits:"objectBoundingBox",x:"0%",y:"0%",width:"100%",height:"100%",children:[(0,r.jsx)("feTurbulence",{id:"turbulence",type:"fractalNoise",baseFrequency:"0.005 0.005",numOctaves:"10",children:(0,r.jsx)("animate",{attributeName:"baseFrequency",dur:"30s",values:"0.005 0.005;0.05 0.3;0.005 0.005",repeatCount:"indefinite"})}),(0,r.jsx)("feDisplacementMap",{in:"SourceGraphic",scale:"15"})]})})]}),xn="Preserve3D_container__EZ7l0",An="Preserve3D_content__yxNQy",vn="Preserve3D_cubeInner__oYaXM",yn="Preserve3D_top__6op2D",wn="Preserve3D_bottom__Rmjl+",jn="Preserve3D_front__+CRYT",bn="Preserve3D_back__-ZjU+",_n="Preserve3D_left__YYWAD",Mn="Preserve3D_right__R5Aqm",Dn="Preserve3D_cubeOuter__pwwjS",Nn=()=>(0,r.jsx)("div",{className:xn,children:(0,r.jsxs)("div",{className:An,children:[(0,r.jsxs)("div",{className:vn,children:[(0,r.jsx)("div",{className:yn}),(0,r.jsx)("div",{className:wn}),(0,r.jsx)("div",{className:jn}),(0,r.jsx)("div",{className:bn}),(0,r.jsx)("div",{className:_n}),(0,r.jsx)("div",{className:Mn})]}),(0,r.jsxs)("div",{className:Dn,children:[(0,r.jsx)("div",{className:yn}),(0,r.jsx)("div",{className:wn}),(0,r.jsx)("div",{className:jn}),(0,r.jsx)("div",{className:bn}),(0,r.jsx)("div",{className:_n}),(0,r.jsx)("div",{className:Mn})]})]})}),Cn="RotateAndBgFixed_container__Kc-WW",Sn="RotateAndBgFixed_box__DkROP",En="RotateAndBgFixed_a__Yi0br",kn="RotateAndBgFixed_b__Vv6J0",Bn="RotateAndBgFixed_c__xgerx",In="RotateAndBgFixed_d__d9aYT",Tn="RotateAndBgFixed_e__V1OJc",Pn=()=>(0,r.jsx)("div",{className:Cn,children:(0,r.jsxs)("div",{className:Sn,children:[(0,r.jsx)("div",{className:En,children:(0,r.jsx)("img",{src:At,alt:""})}),(0,r.jsx)("div",{className:kn,children:(0,r.jsx)("img",{src:vt,alt:""})}),(0,r.jsx)("div",{className:Bn,children:(0,r.jsx)("img",{src:yt,alt:""})}),(0,r.jsx)("div",{className:In,children:(0,r.jsx)("img",{src:wt,alt:""})}),(0,r.jsx)("div",{className:Tn,children:(0,r.jsx)("img",{src:jt,alt:""})})]})}),Rn="HexagonalMesh_container__mdJJ9",Fn="HexagonalMesh_item__hVzAo",Gn=new Array(300).fill(0),Qn=()=>(0,r.jsx)("div",{className:Rn,children:Gn.map(((e,t)=>(0,r.jsx)("div",{className:Fn},t)))}),Ln="HexagonalRadar_container__hFck5",On="HexagonalRadar_content__sj-0h",zn="HexagonalRadar_item__IF+DR",Hn="HexagonalRadar_maskBox__SqK8S",Vn=new Array(5).fill(0),Un=()=>(0,r.jsxs)("div",{className:Ln,children:[(0,r.jsx)("div",{className:On,children:Vn.map(((e,t)=>(0,r.jsx)("div",{className:zn},t)))}),(0,r.jsx)("div",{className:Hn})]}),Wn=n.p+"images/d2fa7cd8.png",Yn="HoverEnlargement_container__t9rVI",Jn=()=>(0,r.jsx)("div",{className:Yn,children:(0,r.jsx)("img",{src:Wn,alt:""})}),qn="ConicGradientRing_container__CU+cz",Zn="ConicGradientRing_box__6P5ea",Kn="ConicGradientRing_item__jy15e",Xn="ConicGradientRing_semicircle__-N2Ks",$n=[{name:"label1",num:23},{name:"label2",num:12},{name:"label3",num:48},{name:"label4",num:37},{name:"label5",num:18}],ea=()=>{const e=(0,a.useMemo)((()=>{const e=$n.reduce(((e,t)=>e+t.num),0);if((null==$n?void 0:$n.length)>0){let t=0;const n=$n.map(((n,a)=>{const i="".concat(t,"deg"),s=n.num/e*360;return t+=s,{...n,deg:"".concat(s,"deg"),rotate:i,color:j[a]}}));return n}return[]}),[$n]);return(0,r.jsx)("div",{className:qn,children:(0,r.jsx)("div",{className:Zn,children:e.map((e=>(0,r.jsx)("div",{className:Kn,style:{background:"conic-gradient(".concat(e.color," 0,transparent ").concat(e.deg,")"),transform:"rotate(".concat(e.rotate,")")},children:(0,r.jsx)("div",{className:Xn,style:{backgroundColor:e.color}})},e.name)))})})},ta=n.p+"images/c6bccf3b.png",na=n.p+"images/71329ec9.jpg",aa="GlassDesign1_container__jIg8H",ia="GlassDesign1_glass__x+jsp",sa=()=>(0,r.jsxs)("div",{className:aa,children:[(0,r.jsx)("img",{src:ta,alt:""}),(0,r.jsx)("div",{className:ia}),(0,r.jsx)("svg",{style:{display:"none"},children:(0,r.jsx)("defs",{children:(0,r.jsxs)("filter",{id:"glassFilter1",children:[(0,r.jsx)("feImage",{result:"pict1",xlinkHref:na,x:"0",y:"0",width:"517",height:"517"}),(0,r.jsx)("feDisplacementMap",{scale:"30",xChannelSelector:"R",yChannelSelector:"R",in2:"pict1",in:"SourceGraphic"})]})})})]}),ra=n.p+"images/3ef61d0d.jpg",oa="GlassDesign2_container__BLEzA",ca="GlassDesign2_glass__UZeM9",la=()=>(0,r.jsxs)("div",{className:oa,children:[(0,r.jsx)("img",{src:ta,alt:""}),(0,r.jsx)("div",{className:ca}),(0,r.jsx)("svg",{style:{display:"none"},children:(0,r.jsx)("defs",{children:(0,r.jsxs)("filter",{id:"glassFilter2",children:[(0,r.jsx)("feImage",{result:"pict1",xlinkHref:ra,x:"0",y:"0",width:"523",height:"330"}),(0,r.jsx)("feDisplacementMap",{scale:"30",xChannelSelector:"R",yChannelSelector:"R",in2:"pict1",in:"SourceGraphic"})]})})})]}),da="Ribbon_container__ZOkiq",ma="Ribbon_ribbon__wI2K8",ua=()=>(0,r.jsxs)("div",{className:da,children:[(0,r.jsx)("div",{className:ma,style:{"--fontSize":"34px",fontWeight:600},children:"Visualization Collection"}),(0,r.jsxs)("div",{className:ma,style:{"--fontSize":"28px","--background":"#8A9B0F",fontWeight:500},children:["Visualization Collection ",(0,r.jsx)("br",{})," Visualization Collection"]}),(0,r.jsxs)("div",{className:ma,style:{"--background":"#45ADA8"},children:["Visualization Collection",(0,r.jsx)("br",{})," Visualization Collection",(0,r.jsx)("br",{})," Visualization Collection"]})]});var ga=n(21524),ha=n(70653);function pa(e){return e.toString().padStart(2,"0")}const fa=e=>{if(e){const t=e.slice(0,19).replace(/-/g,"/");return e.endsWith("+0000 UTC")?(0,ha.A)((0,ga.A)(new Date(t),8),"YYYY/MM/DD HH:mm:ss"):t}return""},xa="ActivityCountDown_container__z9J8Y",Aa="ActivityCountDown_num__F1ysh",va="ActivityCountDown_unit__X1r8-",ya=e=>{const{countParams:t,overCallback:n,style:i={}}=e,{day:s=59,hour:o=59,minute:c=59,seconds:l=59}=t,[d,m]=(0,a.useState)({d:s,h:o,m:c,s:l}),u=(0,a.useRef)(d),g=(0,a.useRef)(!0),h=(0,a.useRef)(0),p=()=>{if(g.current)return;const e=u.current,{d:t,h:a,m:i,s}=e,r=0===a&&0===i&&0===s,o=0===i&&0===s,c=0===s;if(0===t&&0===a&&0===i&&0===s)g.current=!0,n&&n();else if(r){const e={d:t-1,h:23,m:59,s:59};u.current=e,m(e)}else if(o){const e={d:t,h:a-1,m:59,s:59};u.current=e,m(e)}else if(c){const e={d:t,h:a,m:i-1,s:59};u.current=e,m(e)}else{const e={d:t,h:a,m:i,s:s-1};u.current=e,m(e)}};return(0,a.useEffect)((()=>{const{day:e=59,hour:a=59,minute:i=59,seconds:s=59}=t,r={d:e,h:a,m:i,s};u.current=r,m(r);0===r.d&&0===r.h&&0===r.m&&0===r.s?g.current||(g.current=!0,n&&n(),h.current&&(window.clearInterval(h.current),h.current=0)):g.current&&(g.current=!1,h.current=window.setInterval(p,1e3))}),[t]),(0,a.useEffect)((()=>()=>{h.current&&window.clearInterval(h.current)}),[]),(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:xa,style:i,children:[(0,r.jsx)("div",{className:Aa,children:pa(d.d)}),(0,r.jsx)("div",{className:va,children:"天"}),(0,r.jsx)("div",{className:Aa,children:pa(d.h)}),(0,r.jsx)("div",{className:va,children:"时"}),(0,r.jsx)("div",{className:Aa,children:pa(d.m)}),(0,r.jsx)("div",{className:va,children:"分"}),(0,r.jsx)("div",{className:Aa,children:pa(d.s)}),(0,r.jsx)("div",{className:va,children:"秒"})]})})},wa="ActivityCountDown_container__Nw3or",ja="ActivityCountDown_title__5HUMy",ba=()=>{const e=(e=>{let{type:t="ms",startTime:n="",serverTime:a=0}=e;const i="s"===t?1e3*Number(a):a;if(!n)return{day:0,hour:0,minute:0,seconds:0,timeRemaining:0};const s="string"==typeof n?fa(n):n,r=new Date(s).getTime()-i;return{day:Math.floor(r/1e3/60/60/24),hour:Math.floor(r/1e3/60/60%24),minute:Math.floor(r/1e3/60%60),seconds:Math.floor(r/1e3%60),timeRemaining:r}})({type:"ms",startTime:(0,ga.A)(new Date,2).getTime(),serverTime:(new Date).getTime()}),[t,n]=(0,a.useState)(!1);return(0,r.jsxs)("div",{className:wa,children:[(0,r.jsx)("div",{className:ja,children:t?"活动正在进行中":"距离活动开始剩余:"}),!t&&(0,r.jsx)(ya,{countParams:e,overCallback:()=>{n(!0)},style:{marginTop:"16px"}})]})},_a="VisualDesign_container__oN2JR",Ma="VisualDesign_box__-TYNG",{GridBox:Da}=xe,Na=[{element:(0,r.jsx)(je,{})},{element:(0,r.jsx)(Ne,{})},{element:(0,r.jsx)(Ee,{})},{element:(0,r.jsx)(Re,{})},{element:(0,r.jsx)(Le,{})},{element:(0,r.jsx)(He,{})},{element:(0,r.jsx)(Je,{})},{element:(0,r.jsx)(Jt,{})},{element:(0,r.jsx)(tt,{})},{element:(0,r.jsx)(it,{})},{element:(0,r.jsx)(ot,{})},{element:(0,r.jsx)(xt,{})},{element:(0,r.jsx)(Nt,{})},{element:(0,r.jsx)(Et,{})},{element:(0,r.jsx)(Rt,{})},{element:(0,r.jsx)(Qt,{})},{element:(0,r.jsx)($e,{})},{element:(0,r.jsx)(zt,{})},{element:(0,r.jsx)(nn,{})},{element:(0,r.jsx)(rn,{})},{element:(0,r.jsx)(dn,{})},{element:(0,r.jsx)(fn,{})},{element:(0,r.jsx)(Nn,{})},{element:(0,r.jsx)(Pn,{})},{element:(0,r.jsx)(Qn,{})},{element:(0,r.jsx)(Un,{})},{element:(0,r.jsx)(Jn,{})},{element:(0,r.jsx)(ea,{})},{element:(0,r.jsx)(sa,{})},{element:(0,r.jsx)(la,{})},{element:(0,r.jsx)(ua,{})},{element:(0,r.jsx)(ba,{})}],Ca=()=>{const{setScrollTop:e}=d();return(0,a.useEffect)((()=>{e(0)}),[]),(0,r.jsx)("div",{className:_a,children:(0,r.jsx)(xe,{differentScreenCols:[2,2,2,1,1],rowSpace:4,colSpace:4,children:Na.map(((e,t)=>(0,r.jsx)(Da,{children:(0,r.jsx)("div",{className:Ma,children:e.element})},t)))})})},Sa=[],Ea=e=>{const{data:t}=e;(0,h.A)();return null},ka="ModuleTitle_container__7ZCMv",Ba=e=>{const t=(0,h.A)(),{intlTitle:n,style:a={}}=e;return(0,r.jsx)("div",{className:ka,style:a,children:t.formatMessage({id:n})})},Ia=n.p+"images/6765fa3b.png",Ta="MagnifyingGlass_container__z7+HK",Pa="MagnifyingGlass_content__csBAU",Ra="MagnifyingGlass_smallBox__1rC23",Fa="MagnifyingGlass_mask__kbQ6H",Ga="MagnifyingGlass_floatBox__Msmv9",Qa="MagnifyingGlass_bigBox__dtenq",La=()=>{const{scrollTop:e,headHeight:t}=d(),n=(0,a.useRef)(null),i=(0,a.useRef)(null),s=(0,a.useRef)(null),[o,c]=(0,a.useState)(!1);return(0,r.jsx)("div",{className:Ta,children:(0,r.jsxs)("div",{className:Pa,children:[(0,r.jsxs)("div",{className:Ra,ref:n,children:[(0,r.jsx)(Ba,{intlTitle:"page.htmlVision.interactiveDesign.magnifyingGlass",style:{top:"-80px",left:"114%"}}),(0,r.jsx)("div",{className:Fa,onMouseOver:()=>{c(!0)},onMouseMove:a=>{const r=z.findDOMNode(n.current),o=z.findDOMNode(i.current),{offsetWidth:c,offsetHeight:l}=r,{offsetWidth:d,offsetHeight:m}=o;let u=a.clientX-r.offsetLeft-d/2,g=0;g=ec-d&&(u=c-d),g<0?g=0:g>l-m&&(g=l-m),o.style.left=u+"px",o.style.top=g+"px";const h=u/(c-d),p=g/(l-m),f=z.findDOMNode(s.current),x=f.children[0];x.style.left=-h*(x.offsetWidth-f.offsetWidth)+"px",x.style.top=-p*(x.offsetHeight-f.offsetHeight)+"px"},onMouseLeave:()=>{c(!1)}}),(0,r.jsx)("div",{className:Ga,style:{visibility:o?"visible":"hidden"},ref:i}),(0,r.jsx)("img",{src:Ia})]}),(0,r.jsx)("div",{className:Qa,ref:s,children:(0,r.jsx)("img",{src:Ia,style:{visibility:o?"visible":"hidden"}})})]})})},Oa="CropImage_container__agQZ5",za="CropImage_leftBox__rxH+K",Ha="CropImage_img1__vvyEU",Va="CropImage_img2__CuOAQ",Ua="CropImage_cropBox__A4fdb",Wa="CropImage_dot__TnuYQ",Ya="CropImage_leftUp__RO+TV",Ja="CropImage_up__fR18N",qa="CropImage_rightUp__5Btk7",Za="CropImage_right__nbAwk",Ka="CropImage_rightDown__8vsgu",Xa="CropImage_down__0RD60",$a="CropImage_leftDown__Ssc21",ei="CropImage_left__qEy8B",ti="CropImage_rightBox__tH7SB";var ni=function(e){return e[e.leftUp=0]="leftUp",e[e.up=1]="up",e[e.rightUp=2]="rightUp",e[e.right=3]="right",e[e.rightDown=4]="rightDown",e[e.down=5]="down",e[e.leftDown=6]="leftDown",e[e.left=7]="left",e}(ni||{});const ai=()=>{const{scrollTop:e}=d(),t=(0,a.useRef)(0),n=(0,a.useRef)(0),i=(0,a.useRef)(!1),s=(0,a.useRef)(),o=(0,a.useRef)(!1),c=(0,a.useRef)(null),l=(0,a.useRef)(null),m=(0,a.useRef)(null),u=(0,a.useRef)(null),g=(0,a.useRef)(null),h=(0,a.useRef)(0),p=(0,a.useRef)(0),f=(0,a.useRef)(0),x=(0,a.useRef)(0),A=e=>{var t=e.offsetLeft,n=e.offsetTop;let a=e.offsetParent;for(;null!=a;)t+=a.offsetLeft,n+=a.offsetTop,a=a.offsetParent;return{left:t,top:n}},v=e=>{let n=e.clientX;const a=z.findDOMNode(l.current),{left:i}=A(a),s=i,r=s+t.current-4;n>r?n=r:n{let n=t.clientY+e;const a=z.findDOMNode(l.current),{top:i}=A(a),s=i,r=z.findDOMNode(u.current),o=A(r).top,c=o+r.offsetHeight-4;nc&&(n=c);const d=r.offsetHeight;r.style.height=d+o-n+"px",r.style.top=r.offsetTop+n-o+"px"},w=e=>{let t=e.clientX;const n=z.findDOMNode(l.current),{left:a}=A(n),i=a,s=z.findDOMNode(u.current),r=A(s).left,o=r+s.offsetWidth-4;to&&(t=o);const c=s.offsetWidth;s.style.width=c+r-t+"px",s.style.left=s.offsetLeft+t-r+"px"},j=t=>{let a=t.clientY+e;const i=z.findDOMNode(l.current),{top:s}=A(i),r=s,o=r+n.current-4;ao&&(a=o);const c=z.findDOMNode(u.current),d=c.offsetHeight-2,m=a-d-A(c).top;c.style.height=d+m+"px"},b=()=>{const e=z.findDOMNode(u.current),{offsetWidth:t,offsetHeight:n,offsetLeft:a,offsetTop:i}=e,s=a+t,r=i+n;z.findDOMNode(m.current).style.clip="rect(".concat(i,"px,").concat(s,"px,").concat(r,"px,").concat(a,"px)")},_=()=>{const e=z.findDOMNode(u.current),{offsetWidth:t,offsetHeight:n,offsetLeft:a,offsetTop:i}=e,s=a+t,r=i+n,o=z.findDOMNode(g.current);o.style.top="".concat(-i,"px"),o.style.left="".concat(-a,"px"),o.style.clip="rect(".concat(i,"px,").concat(s,"px,").concat(r,"px,").concat(a,"px)")},M=(e,t)=>{e.stopPropagation(),i.current=!0,s.current=t},D=()=>{i.current=!1,o.current=!1};return(0,a.useEffect)((()=>{const e=z.findDOMNode(l.current),{offsetWidth:a,offsetHeight:i}=e;t.current=a,n.current=i}),[]),(0,r.jsxs)("div",{className:Oa,onMouseMove:e=>{if(o.current){const a=z.findDOMNode(u.current),{offsetWidth:i,offsetHeight:s}=a,r=e.clientX-h.current,o=e.clientY-p.current,c=x.current+o,l=f.current+r;c<0?a.style.top="0px":c>n.current-s-2?a.style.top="".concat(n.current-s-2,"px"):a.style.top="".concat(c,"px"),l<0?a.style.left="0px":l>t.current-i-2?a.style.left="".concat(t.current-i-2,"px"):a.style.left="".concat(l,"px"),b(),_()}if(i.current){switch(s.current){case ni.right:v(e);break;case ni.up:y(e);break;case ni.left:w(e);break;case ni.down:j(e);break;case ni.leftUp:w(e),y(e);break;case ni.leftDown:w(e),j(e);break;case ni.rightUp:v(e),y(e);break;case ni.rightDown:v(e),j(e)}b(),_()}},onMouseUp:D,onMouseLeave:D,ref:c,children:[(0,r.jsx)(Ba,{intlTitle:"page.htmlVision.interactiveDesign.dragAndDropClipBox"}),(0,r.jsxs)("div",{className:za,ref:l,children:[(0,r.jsx)("img",{src:qe,className:Ha}),(0,r.jsx)("img",{src:qe,className:Va,ref:m}),(0,r.jsxs)("div",{className:Ua,onMouseDown:e=>{h.current=e.clientX,p.current=e.clientY;const t=z.findDOMNode(u.current);x.current=t.offsetTop,f.current=t.offsetLeft,o.current=!0},ref:u,children:[(0,r.jsx)("div",{className:"".concat(Wa," ").concat(Ya),onMouseDown:e=>M(e,ni.leftUp)}),(0,r.jsx)("div",{className:"".concat(Wa," ").concat(Ja),onMouseDown:e=>M(e,ni.up)}),(0,r.jsx)("div",{className:"".concat(Wa," ").concat(qa),onMouseDown:e=>M(e,ni.rightUp)}),(0,r.jsx)("div",{className:"".concat(Wa," ").concat(Za),onMouseDown:e=>M(e,ni.right)}),(0,r.jsx)("div",{className:"".concat(Wa," ").concat(Ka),onMouseDown:e=>M(e,ni.rightDown)}),(0,r.jsx)("div",{className:"".concat(Wa," ").concat(Xa),onMouseDown:e=>M(e,ni.down)}),(0,r.jsx)("div",{className:"".concat(Wa," ").concat($a),onMouseDown:e=>M(e,ni.leftDown)}),(0,r.jsx)("div",{className:"".concat(Wa," ").concat(ei),onMouseDown:e=>M(e,ni.left)})]})]}),(0,r.jsx)("div",{className:ti,children:(0,r.jsx)("img",{src:qe,ref:g})})]})},ii=n.p+"images/e55cd06c.jpg",si=n.p+"images/f44f33e9.jpg",ri=n.p+"images/ccd69096.jpg",oi=n.p+"images/dbd623e3.jpg",ci=n.p+"images/d327c52a.jpg",li=n.p+"images/f160c0ae.jpg",di={container:"DragShopping_container__IbTIV",content:"DragShopping_content__VVnMY",bookBox:"DragShopping_bookBox__SDdDi",shoppingBox:"DragShopping_shoppingBox__3DBFv",tableHead:"DragShopping_tableHead__lYIfd",tableCell:"DragShopping_tableCell__6tWCA",tableRow:"DragShopping_tableRow__6Qo3x",total:"DragShopping_total__+sd3-",tip:"DragShopping_tip__vp+8T"},{GridBox:mi}=xe,ui=[{id:"1",name:"一个星期学会吉他弹唱",price:68,imgUrl:ii},{id:"2",name:"柳公权楷书教程入门",price:45,imgUrl:si},{id:"3",name:"世说新语",price:52,imgUrl:ri},{id:"4",name:"名人传",price:124,imgUrl:oi},{id:"5",name:"骆驼祥子",price:168,imgUrl:ci},{id:"6",name:"阅微堂笔记",price:56,imgUrl:li}],gi=()=>{const e=(0,h.A)(),[t,n]=(0,a.useState)([]),[i,s]=(0,a.useState)(!1),[o,c]=(0,a.useState)(0);return(0,r.jsxs)("div",{className:di.container,children:[(0,r.jsx)(Ba,{intlTitle:"page.htmlVision.interactiveDesign.dragAndDropShopping"}),(0,r.jsxs)("div",{className:di.content,children:[(0,r.jsx)(xe,{differentScreenCols:[6,6,3,3,3],rowSpace:0,colSpace:0,children:ui.map(((e,t)=>{const{id:n,name:a,price:i,imgUrl:s}=e;return(0,r.jsx)(mi,{children:(0,r.jsxs)("div",{className:di.bookBox,draggable:"true",onDragStart:e=>((e,t)=>{e=e||window.event;const n=ui[t];e.dataTransfer.setData("id",n.id),e.dataTransfer.effectAllowed="copy"})(e,t),children:[(0,r.jsx)("img",{src:s,draggable:"false"}),(0,r.jsx)("p",{children:a}),(0,r.jsx)("p",{children:"¥".concat(i)})]})},n)}))}),(0,r.jsxs)("div",{className:di.shoppingBox,style:i?{border:"1px solid #DD5044",color:"#DD5044"}:{},onDragOver:e=>{e.preventDefault(),i||s(!0)},onDragLeave:e=>{e.preventDefault(),i&&s(!1)},onDrop:e=>{e.preventDefault();const a=e.dataTransfer.getData("id");let i=!1,r=0;const l=t.map((e=>e.id===a?(i=!0,r=e.price,{...e,num:e.num+1}):e));if(!i){let e;for(let t=ui.length-1;t>=0;t--){const n=ui[t];if(n.id===a){r=n.price,e=n;break}}e&&l.unshift({...e,num:1})}n(l),s(!1),c(o+r)},children:[(0,r.jsxs)("div",{className:di.tableHead,children:[(0,r.jsx)("div",{className:di.tableCell,children:e.formatMessage({id:"page.htmlVision.interactiveDesign.title"})}),(0,r.jsx)("div",{className:di.tableCell,children:e.formatMessage({id:"page.htmlVision.interactiveDesign.price"})}),(0,r.jsx)("div",{className:di.tableCell,children:e.formatMessage({id:"page.htmlVision.interactiveDesign.count"})})]}),t.map((e=>{const{id:t,num:n,name:a,price:i}=e;return(0,r.jsxs)("div",{className:di.tableRow,children:[(0,r.jsx)("div",{className:di.tableCell,children:a}),(0,r.jsx)("div",{className:di.tableCell,children:"¥".concat(i)}),(0,r.jsx)("div",{className:di.tableCell,children:n})]},t)})),t.length>0&&(0,r.jsx)("div",{className:di.total,children:(0,r.jsxs)("span",{className:di.totalMoney,children:[e.formatMessage({id:"page.htmlVision.interactiveDesign.total"}),":¥",(0,r.jsx)("span",{children:o})]})}),(0,r.jsx)("div",{className:di.tip,children:i?e.formatMessage({id:"page.htmlVision.interactiveDesign.addingToCart"}):e.formatMessage({id:"page.htmlVision.interactiveDesign.dragToThisToBuy"})})]})]})]})},hi=n.p+"images/70af4d01.jpg",pi="MouseHover_container__QIdL2",fi="MouseHover_content__L5hzm",xi="MouseHover_title__617kC",Ai="MouseHover_bottom__jjGyr",vi="MouseHover_right__Aviwn",yi="MouseHover_cursor__IcpdN",wi=[{name:"两个跨域页面进行跳转传参的终极方案",href:"https://juejin.cn/post/7134967869326458916"},{name:"面试秘籍之手写系列",href:"https://juejin.cn/post/7134975263707758606"},{name:"一款将打包后的Chrome插件自动化加载到浏览器的webpack插件",href:"https://juejin.cn/post/7134991167095062565"},{name:"全网最全AutoIt3基础教程及实战案例",href:"https://juejin.cn/post/7134952028870017060"}],ji=()=>{const e=(0,h.A)(),{scrollTop:t}=d(),n=(0,a.useRef)(null),i=(0,a.useRef)(null),[s,o]=(0,a.useState)(!1),[c,l]=(0,a.useState)("default"),m=(0,a.useRef)({mouseX:null,mouseY:null}),u=(0,a.useRef)(0),g=()=>{l("big")},p=()=>{l("default")};return(0,a.useEffect)((()=>{const e=()=>{const{mouseX:t,mouseY:n}=m.current;if(null!==t&&null!==n){let e=10;"big"===c&&(e=40);const a=z.findDOMNode(i.current),s=a.style.left?parseFloat(a.style.left):null,r=a.style.top?parseFloat(a.style.top):null;if(null!==s&&null!==r){const i=t-(s+e),o=n-(r+e),c=Math.hypot(i,o);if(c>0)if(c<=.1)a.style.left="".concat(s,"px"),a.style.top="".concat(r,"px");else{const e=.12*i,t=.12*o;a.style.left="".concat(s+e,"px"),a.style.top="".concat(r+t,"px")}}}u.current=window.requestAnimationFrame(e)};return u.current=window.requestAnimationFrame(e),()=>{u.current&&window.cancelAnimationFrame(u.current)}}),[c]),(0,r.jsxs)("div",{className:pi,onMouseEnter:e=>{const{clientX:a,clientY:s}=e;o(!0);const r=z.findDOMNode(n.current),{offsetLeft:c=0,offsetTop:l=0}=r;m.current={mouseX:a-c,mouseY:s-(l-t)};const d=z.findDOMNode(i.current);d.style.left="".concat((m.current.mouseX||0)-10,"px"),d.style.top="".concat((m.current.mouseY||0)-10,"px")},onMouseMove:e=>{const{clientX:a,clientY:i}=e,s=z.findDOMNode(n.current),{offsetLeft:r=0,offsetTop:o=0}=s;m.current={mouseX:a-r,mouseY:i-(o-t)}},onMouseLeave:e=>{const{clientX:a,clientY:i}=e;o(!1);const s=z.findDOMNode(n.current),{offsetLeft:r=0,offsetTop:c=0}=s;m.current={mouseX:a-r,mouseY:i-(c-t)}},ref:n,children:[(0,r.jsxs)("div",{className:fi,children:[(0,r.jsx)("p",{className:xi,onMouseEnter:g,onMouseLeave:p,children:e.formatMessage({id:"page.htmlVision.interactiveDesign.personalArticle"})}),(0,r.jsxs)("div",{className:Ai,children:[(0,r.jsx)("img",{src:hi,alt:"",onMouseEnter:g,onMouseLeave:p}),(0,r.jsx)("div",{className:vi,children:wi.map(((e,t)=>(0,r.jsx)("a",{href:e.href,target:"_blank",onMouseEnter:g,onMouseLeave:p,children:e.name},t)))})]})]}),(0,r.jsx)("div",{className:yi,style:{visibility:s?"visible":"hidden",width:"".concat("big"===c?80:20,"px"),height:"".concat("big"===c?80:20,"px")},ref:i})]})},bi="SlideButtonTab_container__eT4SM",_i="SlideButtonTab_content__6sIYs",Mi="SlideButtonTab_btn__tD8IC",Di="SlideButtonTab_actived__RWXqG",Ni=new Array(4).fill(0),Ci=()=>{const e=(0,a.useRef)(null),[t,n]=(0,a.useState)(0),i=(0,a.useRef)(0);return(0,a.useEffect)((()=>{if(e.current){const{width:t}=e.current.getBoundingClientRect(),n=(t-32-8*(2*Ni.length-2))/Ni.length;e.current.style.setProperty("--btnWidth","".concat(n,"px")),i.current=n}}),[]),(0,r.jsxs)("div",{className:bi,children:[(0,r.jsx)(Ba,{intlTitle:"page.htmlVision.interactiveDesign.swipeTab"}),(0,r.jsx)("div",{className:_i,ref:e,children:Ni.map(((a,s)=>(0,r.jsxs)("div",{className:"".concat(Mi," ").concat(t===s?Di:""),onClick:()=>(a=>{if(e.current&&t!==a){const s="".concat(16+i.current*a+8*a*2,"px");e.current.style.setProperty("--groove-left",s);let r="0deg";r=a{e.current&&e.current.style.setProperty("--wraper-rotate","0deg")}),600),n(a)}})(s),children:["Button",s+1]},s)))})]})},Si=n.p+"images/a601ac6c.png",Ei=n.p+"images/d1a0696c.png",ki=n.p+"images/e430aae1.png",Bi=n.p+"images/b2b0669d.png",Ii=n.p+"images/f354e378.png",Ti=n.p+"images/c6c82aab.png",Pi=n.p+"images/7075d257.png",Ri=n.p+"images/b637b49e.png",Fi="FlipBook_container__bOMio",Gi="FlipBook_pages__Ls1i4",Qi="FlipBook_paper__qnIh0",Li="FlipBook_page__5K+Jz",Oi="FlipBook_left-show-front-page__I3ToF",zi="FlipBook_right-show-back-page__crJO-",Hi="FlipBook_left-show-back-page__yRt8k",Vi="FlipBook_right-show-front-page__pTHC0",Ui="FlipBook_left-hide-front-page__kQs3M",Wi="FlipBook_left-hide-back-page__lMGif",Yi="FlipBook_right-hide-front-page__8XaW9",Ji="FlipBook_btns__9Cs+L",qi="FlipBook_btn__QmvzH",Zi=[[Si,Ei],[ki,Bi],[Ii,Ti],[Pi,Ri]],Ki=[Oi,Hi,Vi,zi,Ui,Wi,Yi,"FlipBook_right-hide-back-page__56D1v"],Xi=()=>{const e=(0,h.A)(),t=(0,a.useRef)(null),n=(0,a.useRef)(0),i=(0,a.useRef)(!1),s=()=>{if(t.current){const{children:e}=t.current;Array.prototype.forEach.call(e,((e,t)=>{if(e.attributes&&e.attributes.length){var a,i;if(e.attributes.getNamedItem("data-left"))null===(a=e.attributes)||void 0===a||a.removeNamedItem("data-left");if(e.attributes.getNamedItem("data-right"))null===(i=e.attributes)||void 0===i||i.removeNamedItem("data-right")}const{children:s}=e;if(t===n.current){var r,o,c,l;const t=document.createAttribute("data-left");t.nodeValue="true",e.attributes.setNamedItem(t),e.style.transform="perspective(1000px) rotateY(-180deg)",e.style.zIndex="4",null===(r=s[0].classList)||void 0===r||r.remove(...Ki),null===(o=s[0].classList)||void 0===o||o.add(Hi),null===(c=s[1].classList)||void 0===c||c.remove(...Ki),null===(l=s[1].classList)||void 0===l||l.add(Oi)}else if(t===n.current+1){var d,m,u,g;const t=document.createAttribute("data-right");t.nodeValue="true",e.attributes.setNamedItem(t),e.style.transform="perspective(1000px) rotateY(0deg)",e.style.zIndex="4",null===(d=s[0].classList)||void 0===d||d.remove(...Ki),null===(m=s[0].classList)||void 0===m||m.add(Vi),null===(u=s[1].classList)||void 0===u||u.remove(...Ki),null===(g=s[1].classList)||void 0===g||g.add(zi)}else if(t{const e=document.styleSheets[0];e.insertRule("@keyframes flip-to-left {\n from {\n transform: perspective(1000px) rotateY(0);\n }\n to {\n transform: perspective(1000px) rotateY(-180deg);\n }\n }"),e.insertRule("@keyframes flip-to-right {\n from {\n transform: perspective(1000px) rotateY(-180deg);\n }\n to {\n transform: perspective(1000px) rotateY(0);\n }\n }"),i.current=!0,s()}),[]),(0,r.jsxs)("div",{className:Fi,children:[(0,r.jsx)(Ba,{intlTitle:"page.htmlVision.interactiveDesign.flipBoook"}),(0,r.jsx)("div",{className:Gi,ref:t,children:Zi.map(((e,t)=>(0,r.jsxs)("div",{className:Qi,children:[(0,r.jsx)("div",{className:Li,children:(0,r.jsx)("img",{src:e[0],alt:""})}),(0,r.jsx)("div",{className:Li,children:(0,r.jsx)("img",{src:e[1],alt:""})})]},t)))}),(0,r.jsxs)("div",{className:Ji,children:[(0,r.jsx)(ee.Ay,{type:"primary",className:qi,onClick:()=>{if(!(n.current<=-1||i.current)){if(i.current=!0,t.current){const{children:e}=t.current,a=e[n.current];a.style.animation="flip-to-right 2s ease-in-out forwards",setTimeout((()=>{a.style.zIndex="5"}),1e3)}setTimeout((()=>{n.current=n.current-1,s()}),2e3)}},children:e.formatMessage({id:"page.htmlVision.interactiveDesign.previousPage"})}),(0,r.jsx)(ee.Ay,{type:"primary",className:qi,onClick:()=>{if(!(n.current>=Zi.length-1||i.current)){if(i.current=!0,t.current){const{children:e}=t.current,a=e[n.current+1];a.style.animation="flip-to-left 2s ease-in-out forwards",setTimeout((()=>{a.style.zIndex="5"}),1e3)}setTimeout((()=>{n.current=n.current+1,s()}),2e3)}},children:e.formatMessage({id:"page.htmlVision.interactiveDesign.nextPage"})})]})]})},$i="switch_container__i9Gh6",es="switch_box__M6wl2",ts="switch_icon__AQIrn",ns=e=>{const{open:t,width:n=90,height:i=40,openIcon:s,closeIcon:o,onChange:c,style:l={},className:d=""}=e,[m,u]=(0,a.useState)(void 0!==t&&t);return(0,r.jsxs)("div",{className:"".concat($i," ").concat(d),style:{width:"".concat(n,"px"),height:"".concat(i,"px"),borderRadius:"".concat(i/2,"px"),backgroundColor:void 0!==t&&t||void 0===t&&m?"#e4e4e4":"#1a1c20",...l},onClick:()=>{void 0!==t?c&&c(!t):u(!m)},children:[(0,r.jsx)("div",{className:es,style:void 0!==t&&t||void 0===t&&m?{width:"".concat(.8*i,"px"),height:"".concat(.8*i,"px"),borderRadius:"50%",top:"".concat(.1*i,"px"),left:"".concat(.1*i,"px")}:{width:"".concat(.2*i,"px"),height:"".concat(.7*i,"px"),borderRadius:"".concat(.2*i/2,"px"),top:"".concat(.15*i,"px"),left:"".concat(n-i/2,"px")}}),o&&(0,r.jsx)("div",{className:ts,style:{width:"".concat(.8*i,"px"),height:"".concat(.8*i,"px"),top:"".concat(.1*i,"px"),left:"".concat(.1*i,"px"),opacity:void 0!==t&&t||void 0===t&&m?0:1,display:"flex",alignItems:"center"},children:o}),s&&(0,r.jsx)("div",{className:ts,style:{width:"".concat(.8*i,"px"),height:"".concat(.8*i,"px"),top:"".concat(.1*i,"px"),left:"".concat(n-.9*i,"px"),opacity:void 0!==t&&t||void 0===t&&m?1:0,display:"flex",alignItems:"center",justifyContent:"flex-end"},children:s})]})},as=n.p+"images/16a09882.png",is=n.p+"images/58bbf8ef.png",ss="Switchs_container__pX5RV",rs=()=>(0,r.jsxs)("div",{className:ss,children:[(0,r.jsx)(Ba,{intlTitle:"page.htmlVision.interactiveDesign.switchButton"}),(0,r.jsx)(ns,{width:66,height:30}),(0,r.jsx)(ns,{width:76,height:34,openIcon:(0,r.jsx)("span",{style:{color:"#333",marginRight:"2px"},children:"ON"}),closeIcon:(0,r.jsx)("span",{style:{color:"#fff",marginLeft:"4px"},children:"OFF"}),style:{margin:"0 60px"}}),(0,r.jsx)(ns,{openIcon:(0,r.jsx)("img",{src:as,alt:"",width:26,height:26}),closeIcon:(0,r.jsx)("img",{src:is,alt:"",width:26,height:26})})]}),os=n.p+"images/0e3fc4a1.png",cs=n.p+"images/036f3b2c.png",ls=n.p+"images/de961e69.png",ds=n.p+"images/77eff419.png",ms=n.p+"images/bae3b2af.png",us=n.p+"images/641be512.png",gs=n.p+"images/bb4c7aec.png",hs=n.p+"images/95259d51.png",ps=n.p+"images/a3f5bcd3.png",fs="animation_container__bfyEi",xs="animation_content__H8vdL",As="animation_people__3G2ps",vs="animation_giftBox__06Ghv",ys="animation_coin__9Ei6m",ws="animation_gift__fEEYc";let js=600;const bs=80;let _s="CCW";let Ms=0,Ds=0,Ns=0,Cs=!1,Ss=!1;const Es={icon1:{top:60,left:32,vx:-4.5},icon2:{top:30,left:34,vx:-3},icon3:{top:50,left:36,vx:0},icon4:{top:80,left:38,vx:1},icon5:{top:36,left:40,vx:3},icon6:{top:60,left:42,vx:2},icon7:{top:90,left:44,vx:5}},ks={icon1:{top:Es.icon1.top,left:Es.icon1.left,vx:-4.5,vy:0,g:.2,opacity:0,isMoving:!1},icon2:{top:Es.icon2.top,left:Es.icon2.left,vx:-3,vy:0,g:.3,opacity:0,isMoving:!1},icon3:{top:Es.icon3.top,left:Es.icon3.left,vx:0,vy:0,g:.2,opacity:0,isMoving:!1},icon4:{top:Es.icon4.top,left:Es.icon4.left,vx:1,vy:0,g:.3,opacity:0,isMoving:!1},icon5:{top:Es.icon5.top,left:Es.icon5.left,vx:3,vy:0,g:.4,opacity:0,isMoving:!1},icon6:{top:Es.icon6.top,left:Es.icon6.left,vx:2,vy:0,g:.5,opacity:0,isMoving:!1},icon7:{top:Es.icon7.top,left:Es.icon7.left,vx:5,vy:0,g:.3,opacity:0,isMoving:!1}};function Bs(e,t,n){let a=0;return n>-e&&n{const{noDropCoins:t=!1,clickNoDropCoins:n=!1}=e,i=(0,a.useRef)(null),s=(0,a.useRef)(null);return(0,a.useLayoutEffect)((()=>{let e=0,n=64,a=Bs(bs,40,n);return e=window.requestAnimationFrame((function r(){if(i.current){const e=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=e,r=t;return 0!==n&&(s=e*Math.cos(n)+t*Math.sin(n)+a,r=-e*Math.sin(n)+t*Math.cos(n)+i),{transitionX:s,transitionY:r}}(n,a,Ms,Ds,Ns),{transitionX:r,transitionY:o}=e,c=z.findDOMNode(i.current);if(!c)return;c.offsetWidth<350?js=500:c.offsetWidth<400&&(js=550),c.style.left="".concat(r,"px"),c.style.top="".concat(-o,"px");let l=1.5;n>=bs?("CCW"===_s?(Ms=0,Ds=0,Ns=0):(Ms=120,Ds=17,Ns=49),t||(Cs=!0,Ss=!0)):n<=-bs&&(_s="CCW"===_s?"CW":"CCW",t||(Cs=!0,Ss=!0)),Math.abs(n)>16&&(l=1.5*Math.pow(Math.cos(n/bs),2));const d=function(e,t,n,a,i){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,r=a,o=i;return r=a>=e?a-s:a<=-e?a+s:"CCW"===n?i>0?a-s:a+s:i<0?a-s:a+s,r>e?r=e:r<-e&&(r=-e),o=Bs(e,t,r),o>0&&(a>=e?"CCW"!==n&&(o=-o):a<=-e?"CCW"===n&&(o=-o):i<0&&(o=-o)),{nextX:r,nextY:o}}(bs,40,_s,n,a,l),{nextX:m,nextY:u}=d;n=m,a=u;let g=null;s&&s.current&&(g=z.findDOMNode(s.current));let h=!0;g&&Object.keys(ks).forEach(((e,t)=>{const n=g.childNodes[t];if(n){const t=ks[e],{top:a,left:i,vx:s,vy:r,g:o,opacity:c,isMoving:l}=t;if(l||Cs){const d=Es[e];let m=a+r,u=i+s,g=s;g=Math.abs(s)>.1?s>0?s-.1:s+.1:0;let p=m-d.top;const f=js-d.top,x=f/2*.45;let A=c;p/f>.55&&(p=x-(m-.55*f)),A=(p/x).toFixed(2),A>1&&(A=1);let v=r+o,y=l;0===m?(m=d.top,u=d.left,g=d.vx,y=!0):m>=js?(m=0,u=0,A=0,g=0,v=0,y=!1):(h=!1,Cs&&(y=!0)),n.style.top="".concat(m,"px"),n.style.left="".concat(u,"px"),n.style.opacity=A,Object.assign(t,{top:m,left:u,vx:g,vy:v,isMoving:y})}}})),Cs&&(Cs=!1),h&&(Ss=!1)}e=window.requestAnimationFrame(r)})),()=>{e&&window.cancelAnimationFrame(e)}}),[]),(0,r.jsx)("div",{className:fs,children:(0,r.jsxs)("div",{className:xs,ref:i,children:[(0,r.jsx)("img",{src:os,alt:"",className:As}),(0,r.jsxs)("div",{className:vs,onClick:()=>{n||Ss||(Cs=!0,Ss=!0)},ref:s,children:[(0,r.jsx)("img",{src:ls,alt:"",className:ys}),(0,r.jsx)("img",{src:ds,alt:"",className:ys}),(0,r.jsx)("img",{src:ms,alt:"",className:ys}),(0,r.jsx)("img",{src:us,alt:"",className:ys}),(0,r.jsx)("img",{src:gs,alt:"",className:ys}),(0,r.jsx)("img",{src:hs,alt:"",className:ys}),(0,r.jsx)("img",{src:ps,alt:"",className:ys}),(0,r.jsx)("img",{src:cs,alt:"",className:ws})]})]})})},Ts="PeopleAnimation_container__P9IRI",Ps=()=>(0,r.jsx)("div",{className:Ts,children:(0,r.jsx)(Is,{})}),Rs={container:"TweakCube_container__chHsQ",content:"TweakCube_content__rXgCM",cube:"TweakCube_cube__c9JMo",changeColor:"TweakCube_changeColor__SsQtL",column0:"TweakCube_column0__0ANAL",span0:"TweakCube_span0__kaIxY",span1:"TweakCube_span1__RA+mL",span2:"TweakCube_span2__BzTLy",column1:"TweakCube_column1__9Hhyi",column2:"TweakCube_column2__EbxfC"},Fs=new Array(3).fill(0),Gs=()=>(0,r.jsxs)("div",{className:Rs.container,children:[(0,r.jsx)(Ba,{intlTitle:"page.htmlVision.interactiveDesign.pseudo3DRubikCube"}),(0,r.jsx)("div",{className:Rs.content,children:Fs.map(((e,t)=>(0,r.jsx)("div",{className:Rs.cube,children:Fs.map(((e,t)=>(0,r.jsx)("div",{className:Rs["column".concat(t)],children:Fs.map(((e,t)=>(0,r.jsx)("span",{className:Rs["span".concat(t)]},t)))},t)))},t)))})]}),Qs="Preserve3dBox_container__S8Nkn",Ls="Preserve3dBox_content__OkpkD",Os="Preserve3dBox_box__xhigG",zs="Preserve3dBox_side1__OlfJ5",Hs="Preserve3dBox_side2__N20GX",Vs="Preserve3dBox_side3__t1Hxo",Us="Preserve3dBox_side4__7YzMw",Ws="Preserve3dBox_side5__38WMJ",Ys="Preserve3dBox_side6__pWRYS",Js="Preserve3dBox_light__8ms1v",qs=()=>{const e=(0,a.useRef)(null),t=(0,a.useRef)(null),n=(0,a.useRef)(null),i=()=>{if(n.current=null,t.current){const{children:e}=t.current;Array.prototype.forEach.call(e,(e=>{Array.prototype.includes.call(e.classList,Js)&&e.classList.remove(Js)}));document.styleSheets[0].insertRule("@keyframes preserve3dRotate {\n 100% {\n transform: rotate3d(1, 1, 1, 360deg);\n }\n }"),t.current.style.animation="preserve3dRotate 10s linear infinite"}},s=e=>{null==e||e.classList.add(Js)};return(0,r.jsxs)("div",{className:Qs,onMouseDown:e=>{const{clientX:a,clientY:i}=e,{transform:s}=window.getComputedStyle(z.findDOMNode(t.current));if(s&&"none"!==s){const e=s.match(/matrix(3d)?((.+))/);if(e&&e.length>=3){const t=e[2].split(", ")||[],s=180*Math.acos(Number(t[5]))/Math.PI,r=180*Math.acos(Number(t[10]))/Math.PI;n.current={x:a,y:i,rotateX:s,rotateY:r}}}},onMouseMove:e=>{if(t.current&&n.current){const{clientX:a,clientY:i}=e,{x:s,y:r,rotateX:o,rotateY:c}=n.current,l=2*(r-i),d=(a-s)/2;t.current&&(t.current.style.animation="none"),t.current.style.transform="rotateX(".concat(o+l,"deg) rotateY(").concat(c+d,"deg)")}},onMouseUp:i,onMouseLeave:i,ref:e,children:[(0,r.jsx)(Ba,{intlTitle:"page.htmlVision.interactiveDesign.3DRubikCube"}),(0,r.jsx)("div",{className:Ls,children:(0,r.jsxs)("div",{className:Os,ref:t,children:[(0,r.jsx)("div",{className:zs,onClick:e=>{t.current&&(t.current.style.transform="rotateX(360deg) rotateY(360deg)",t.current.style.animation="none",s(e.target))}}),(0,r.jsx)("div",{className:Hs,onClick:e=>{t.current&&(t.current.style.transform="rotateX(0deg) rotateY(180deg)",t.current.style.animation="none",s(e.target))}}),(0,r.jsx)("div",{className:Vs,onClick:e=>{t.current&&(t.current.style.transform="rotateX(270deg) rotateY(0deg)",t.current.style.animation="none",s(e.target))}}),(0,r.jsx)("div",{className:Us,onClick:e=>{t.current&&(t.current.style.transform="rotateX(90deg) rotateY(180deg)",t.current.style.animation="none",s(e.target))}}),(0,r.jsx)("div",{className:Ws,onClick:e=>{t.current&&(t.current.style.transform="rotateX(0deg) rotateY(90deg)",t.current.style.animation="none",s(e.target))}}),(0,r.jsx)("div",{className:Ys,onClick:e=>{t.current&&(t.current.style.transform="rotateX(0deg) rotateY(270deg)",t.current.style.animation="none",s(e.target))}})]})})]})},Zs="OrientationSenseCard_container__wM4Og",Ks="OrientationSenseCard_content__nHHlN",Xs="OrientationSenseCard_card__kb1rR",$s=[ki,Bi,Ti,Pi,Ri],er=()=>(0,r.jsxs)("div",{className:Zs,children:[(0,r.jsx)(Ba,{intlTitle:"page.htmlVision.interactiveDesign.automaticIdentificationOfMouseDirection"}),(0,r.jsx)("div",{className:Ks,children:$s.map(((e,t)=>(0,r.jsx)("div",{className:Xs,children:(0,r.jsx)("img",{src:e,alt:""})},t)))})]}),tr="HexagonalMesh1_container__4Mauo",nr="HexagonalMesh1_item__uupv2",ar=new Array(800).fill(0),ir=()=>{const e=(0,a.useRef)(null),t=()=>{if(e.current){const{width:t,height:n}=e.current.getBoundingClientRect(),a=t/2,i=n/2;e.current.style.setProperty("--xPos","".concat(a,"px")),e.current.style.setProperty("--yPos","".concat(i,"px"))}};return(0,a.useEffect)((()=>{t()}),[]),(0,r.jsx)("div",{className:tr,onMouseMove:t=>{if(e.current){const{left:n,top:a}=e.current.getBoundingClientRect(),i=t.pageX-n,s=t.pageY-a;window.requestAnimationFrame((function(){e.current&&(e.current.style.setProperty("--xPos","".concat(i,"px")),e.current.style.setProperty("--yPos","".concat(s,"px")))}))}},onMouseLeave:t,ref:e,children:ar.map(((e,t)=>(0,r.jsx)("div",{className:nr},t)))})},sr="HexagonalMesh2_container__7Eq5-",rr="HexagonalMesh2_item__RBkZx",or=new Array(800).fill(0),cr=()=>{const e=(0,a.useRef)(null),t=()=>{if(e.current){const{width:t,height:n}=e.current.getBoundingClientRect(),a=t/2,i=n/2;e.current.style.setProperty("--xPos","".concat(a,"px")),e.current.style.setProperty("--yPos","".concat(i,"px"))}};return(0,a.useEffect)((()=>{t()}),[]),(0,r.jsx)("div",{className:sr,onMouseMove:t=>{if(e.current){const{left:n,top:a}=e.current.getBoundingClientRect(),i=t.pageX-n,s=t.pageY-a;window.requestAnimationFrame((function(){e.current&&(e.current.style.setProperty("--xPos","".concat(i,"px")),e.current.style.setProperty("--yPos","".concat(s,"px")))}))}},onMouseLeave:t,ref:e,children:or.map(((e,t)=>(0,r.jsx)("div",{className:rr},t)))})},lr="HexagonalMesh3_container__7cOnb",dr="HexagonalMesh3_item__JnppT",mr=new Array(800).fill(0),ur=()=>{const e=(0,a.useRef)(null);return(0,r.jsx)("div",{className:lr,ref:e,children:mr.map(((e,t)=>(0,r.jsx)("div",{className:dr},t)))})};var gr=n(70792),hr=n(75846),pr=n(69877),fr=n(2266),xr=n(92136),Ar=n(3766),vr=n(17122),yr=n(80002),wr=n(68456),jr=n(90580),br=n(1399),_r=n(46061),Mr=n(790),Dr=n(87104),Nr=n(18406),Cr=n(76517),Sr=n(66480),Er=n(53422),kr=n(51600),Br=n(46221),Ir=n(16125),Tr=n(58676),Pr=n(80069),Rr=n(29566),Fr=n(73576),Gr=n(6516),Qr=n(82138),Lr=n(72226),Or=n(91046),zr=n(87851),Hr=n(94131),Vr=n(11033),Ur=n(4716),Wr=n(77584),Yr=n(43965),Jr=n(41546),qr=n(86405),Zr=n(25167),Kr=n(73142),Xr=n(86706),$r=n(84032),eo=n(44663),to=n(77639),no=n(99328),ao=n(31942),io=n(13740),so=n(41723),ro=n(1372),oo=n(43348),co=n(95718),lo=n(43450),mo=n(84145),uo=n(76371),go=n(3674),ho=n(40562),po=n(51711),fo=n(83762),xo=n(97189),Ao=n(66893),vo=n(58937),yo=n(56679),wo=n(26362),jo=n(24089),bo=n(3105),_o=n(24423),Mo=n(67345),Do=n(82510),No=n(138),Co=n(13255),So=n(90888),Eo=n(30074),ko=n(82463),Bo=n(46802),Io=n(43774),To=n(7079),Po=n(48990),Ro=n(80088),Fo=n(88668),Go=n(44627),Qo=n(53578),Lo=n(78602),Oo=n(6490);const zo="IconScroll_container__pHJbN",Ho="IconScroll_row__ueyux",Vo=new Array(40).fill(0),Uo=()=>{const e=()=>(0,r.jsxs)("div",{children:[(0,r.jsx)(gr.A,{}),(0,r.jsx)(hr.A,{}),(0,r.jsx)(pr.A,{}),(0,r.jsx)(fr.A,{}),(0,r.jsx)(xr.A,{}),(0,r.jsx)(Ar.A,{}),(0,r.jsx)(vr.A,{}),(0,r.jsx)(yr.A,{}),(0,r.jsx)(wr.A,{}),(0,r.jsx)(jr.A,{}),(0,r.jsx)(br.A,{}),(0,r.jsx)(_r.A,{}),(0,r.jsx)(Mr.A,{}),(0,r.jsx)(Dr.A,{}),(0,r.jsx)(Nr.A,{}),(0,r.jsx)(Cr.A,{}),(0,r.jsx)(Sr.A,{}),(0,r.jsx)(Er.A,{}),(0,r.jsx)(kr.A,{}),(0,r.jsx)(Br.A,{}),(0,r.jsx)(Ir.A,{}),(0,r.jsx)(Tr.A,{}),(0,r.jsx)(Pr.A,{}),(0,r.jsx)(Rr.A,{}),(0,r.jsx)(Fr.A,{}),(0,r.jsx)(Gr.A,{}),(0,r.jsx)(Qr.A,{}),(0,r.jsx)(Lr.A,{}),(0,r.jsx)(Or.A,{}),(0,r.jsx)(zr.A,{}),(0,r.jsx)(Hr.A,{}),(0,r.jsx)(Vr.A,{}),(0,r.jsx)(Ur.A,{}),(0,r.jsx)(Wr.A,{}),(0,r.jsx)(Yr.A,{}),(0,r.jsx)(Jr.A,{}),(0,r.jsx)(qr.A,{}),(0,r.jsx)(Zr.A,{}),(0,r.jsx)(Kr.A,{}),(0,r.jsx)(Xr.A,{}),(0,r.jsx)($r.A,{}),(0,r.jsx)(eo.A,{}),(0,r.jsx)(to.A,{}),(0,r.jsx)(no.A,{}),(0,r.jsx)(ao.A,{}),(0,r.jsx)(io.A,{}),(0,r.jsx)(so.A,{}),(0,r.jsx)(ro.A,{}),(0,r.jsx)(oo.A,{}),(0,r.jsx)(co.A,{}),(0,r.jsx)(lo.A,{}),(0,r.jsx)(mo.A,{}),(0,r.jsx)(uo.A,{}),(0,r.jsx)(go.A,{}),(0,r.jsx)(ho.A,{}),(0,r.jsx)(po.A,{}),(0,r.jsx)(fo.A,{}),(0,r.jsx)(xo.A,{}),(0,r.jsx)(Ao.A,{}),(0,r.jsx)(H.A,{}),(0,r.jsx)(vo.A,{}),(0,r.jsx)(yo.A,{}),(0,r.jsx)(wo.A,{}),(0,r.jsx)(jo.A,{}),(0,r.jsx)(bo.A,{}),(0,r.jsx)(_o.A,{}),(0,r.jsx)(Mo.A,{}),(0,r.jsx)(Do.A,{}),(0,r.jsx)(No.A,{}),(0,r.jsx)(x.A,{}),(0,r.jsx)(Co.A,{}),(0,r.jsx)(So.A,{}),(0,r.jsx)(Eo.A,{}),(0,r.jsx)(ko.A,{}),(0,r.jsx)(Bo.A,{}),(0,r.jsx)(Io.A,{}),(0,r.jsx)(To.A,{}),(0,r.jsx)(Po.A,{}),(0,r.jsx)(Ro.A,{}),(0,r.jsx)(Fo.A,{}),(0,r.jsx)(Go.A,{}),(0,r.jsx)(Qo.A,{}),(0,r.jsx)(Lo.A,{}),(0,r.jsx)(Oo.A,{})]});return(0,r.jsx)("div",{className:zo,children:Vo.map(((t,n)=>(0,r.jsxs)("div",{className:Ho,children:[e(),e()]},n)))})};var Wo=n(50329),Yo=n(68e3);const Jo="WipeSwitchover_container__zA+wD",qo="WipeSwitchover_mask1__efwWk",Zo="WipeSwitchover_mask2__bTFbb",Ko="WipeSwitchover_mask3__Gaobg",Xo="WipeSwitchover_mask4__ZERnA",$o="WipeSwitchover_mask5__MkpDg",ec="WipeSwitchover_page1__ex092",tc="WipeSwitchover_page2__S7sFb",nc="WipeSwitchover_page3__JtV7t",ac="WipeSwitchover_page4__9G6Y9",ic="WipeSwitchover_page5__uBeX2",sc="WipeSwitchover_prevBtn__6vW6Q",rc="WipeSwitchover_icon__Z3ryB",oc="WipeSwitchover_nextBtn__sVZkG",cc=.006,lc=[8,8,8,7,30],dc=[.72,.7,1,1,.32],mc=()=>{const e=(0,a.useRef)(null),t=(0,a.useRef)(null),n=(0,a.useRef)(null),[i,s]=(0,a.useState)(lc.length-1),o=(0,a.useRef)(lc.length-1),c=(0,a.useRef)(!1),l=(0,a.useRef)(0),d=(e,t)=>{if(e){c.current=!0;const{strokeDashoffset:n}=e.style;let a=0;if(n)if("0"===n)a=Number((lc[o.current]*cc).toFixed(2));else if(n.includes("px")){const i=Number(n.substring(0,n.length-2));if(t=lc[o.current])return c.current=!1,o.current=t,void s(t);a=Number((lc[o.current]*cc+i).toFixed(2))}else if(t>o.current){if(i>=2*lc[t])return e.style.strokeDashoffset="0px",c.current=!1,o.current=t,void s(t);a=Number((lc[t]*cc+i).toFixed(2))}}else{const i=Number(n);if(t=lc[o.current])return c.current=!1,o.current=t,void s(t);a=Number((lc[o.current]*cc+i).toFixed(2))}else if(t>o.current){if(i>=2*lc[t])return e.style.strokeDashoffset="0px",c.current=!1,o.current=t,void s(t);a=Number((lc[t]*cc+i).toFixed(2))}}else a=Number((lc[o.current]*cc).toFixed(2));e.style.strokeDashoffset="".concat(a,"px"),l.current=window.requestAnimationFrame((()=>d(e,t)))}},m=()=>{if(e.current&&n.current){const{clientWidth:a}=e.current,i=Math.ceil(600+.1*(a-1140));Array.prototype.forEach.call(n.current.children,((e,t)=>{let n=window.getComputedStyle(e.children[0],null).getPropertyValue("transform");if(n&&n.startsWith("matrix")){const e=n.split(", ");e[0]="".concat(e[0].substring(0,7)).concat(Math.ceil(dc[t]*a)),n=e.join(", ")}e.children[0].style.transform=n})),t.current&&(e.current.style.height="".concat(i,"px"),Array.prototype.forEach.call(t.current.children,(e=>{if("g"===e.tagName){e.style.height="".concat(i,"px"),e.children[0].style.height="".concat(i,"px"),e.children[0].style.transform="".concat(i,"px");const t=Math.floor(a/2-240-40),n=Math.floor((i-340)/2);e.children[1].style.transform="translate(".concat(t,"px, ").concat(n,"px)")}})))}};return(0,a.useEffect)((()=>(m(),()=>{l.current&&cancelAnimationFrame(l.current)})),[]),(0,a.useEffect)((()=>(window.addEventListener("resize",m),()=>{window.removeEventListener("resize",m)})),[]),(0,r.jsxs)("div",{className:Jo,ref:e,children:[(0,r.jsx)(Ba,{intlTitle:"page.htmlVision.interactiveDesign.wipeTheEffect"}),(0,r.jsxs)("svg",{ref:t,children:[(0,r.jsxs)("defs",{ref:n,children:[(0,r.jsx)("mask",{id:"mask1",className:qo,children:(0,r.jsx)("path",{d:"M0.712-0.263\r c0,0-0.009,0.466-0.001,0.593c0.002,0.033,0.013,0.098-0.149,0.098c-0.157,0-0.16-0.049-0.161-0.08\r C0.398,0.245,0.395,0.04,0.399-0.063c0.001-0.035,0.009-0.105-0.162-0.102C0.088-0.163,0.091-0.093,0.09-0.059\r C0.09,0.04,0.08,0.238,0.09,0.337C0.093,0.368,0.107,0.42-0.058,0.42c-0.162,0-0.136-0.05-0.139-0.079\r C-0.21,0.234-0.207,0.033-0.2-0.069c0.002-0.035,0.015-0.103-0.16-0.102C-0.521-0.171-0.511-0.1-0.509-0.066\r C-0.502,0.046-0.51,0.379-0.51,0.379"})}),(0,r.jsx)("mask",{id:"mask2",className:Zo,children:(0,r.jsx)("path",{d:"M-0.305,0.045\r c0,0,1.262-0.007,1.36-0.007c0.231,0,0.229,0.224-0.001,0.224c-0.14,0.001-0.929-0.002-1.042,0c-0.174,0.003-0.17,0.224-0.021,0.23\r c0.288,0.011,0.87-0.005,1.055-0.011C1.223,0.475,1.228,0.71,1.071,0.71C0.779,0.723,0.09,0.705-0.038,0.712\r s-0.148,0.223,0.031,0.234s0.233,0.011,0.233,0.011"})}),(0,r.jsx)("mask",{id:"mask3",className:Ko,children:(0,r.jsx)("path",{d:"M1.15844,0.36167L1.08063,0.40111C0.95906,0.528330.94358,0.771430.87938,0.95278C0.81605,1.131660.65918,1.069850.71313,0.88778C0.75751,0.737960.89903,0.356360.93094,0.16944C0.95119,0.050820.84113,-0.056650.77563,0.12056C0.70882,0.301290.46792,1.203240.32092,0.97256C0.23658,0.840220.60869,0.261270.58134,0.05953C0.56686,-0.047280.49508,-0.06670.43749,0.0378C0.32377,0.244160.27639,0.451050.17792,0.71504C0.07944,0.979030.00295,0.842150.01094,0.75333C0.03758,0.457110.31406,0.1150.23375,-0.01111C0.15331,-0.137420.09392,0.21887-0.0325,0.23722"})}),(0,r.jsx)("mask",{id:"mask4",className:Xo,children:(0,r.jsx)("path",{d:"M0.559-0.226L0.535-0.16\r c-0.196,0.171,0.09,0.27-0.022,0.436C0.49,0.31,0.384,0.312,0.344,0.202c-0.035-0.097-0.033-0.195,0.014-0.26\r c0.105-0.143,0.209-0.079,0.264,0.003c0.061,0.09,0.066,0.192,0.047,0.265c-0.093,0.35-0.537,0.162-0.49-0.159\r c0.019-0.129,0.095-0.202,0.196-0.228c0.13-0.034,0.289-0.028,0.373,0.063c0.083,0.09,0.094,0.349-0.014,0.466\r C0.64,0.452,0.178,0.502,0.077,0.256C-0.05-0.055,0.18-0.217,0.373-0.227c0.224-0.012,0.463-0.017,0.535,0.128\r C0.993,0.072,0.978,0.29,0.813,0.427"})}),(0,r.jsx)("mask",{id:"mask5",className:$o,children:(0,r.jsx)("path",{d:"M1.854-1.746L1.537-1.042\r c0.01,0.123-1.79,0.327-2.269,0.467C-1.433-0.37-1.427,0.309-0.835,0.209c0.464-0.078,3.077-0.572,3.921-0.742\r C3.714-0.66,3.81-0.043,3.364,0.102C2.423,0.406-0.153,0.795-1.188,1.026c-0.494,0.11-0.409,0.646,0.107,0.629\r c0.76-0.025,3.983-0.752,4.594-0.793c0.399-0.045,0.967,0.403-0.091,0.66C3.028,1.685,1,2.067,0.612,2.239\r C0.225,2.411,0.27,2.982,1.007,2.833l2.979-0.615"})})]}),(0,r.jsxs)("g",{className:ec,mask:"url(#mask1)",children:[(0,r.jsx)("rect",{fill:"#e3e4e5"}),(0,r.jsx)("image",{xlinkHref:Si}),(0,r.jsx)("text",{fill:"#757576",children:"Book5"})]}),(0,r.jsxs)("g",{className:tc,mask:"url(#mask2)",children:[(0,r.jsx)("rect",{fill:"#7e7f83"}),(0,r.jsx)("image",{xlinkHref:Ei}),(0,r.jsx)("text",{fill:"#dedede",children:"Book4"})]}),(0,r.jsxs)("g",{className:nc,mask:"url(#mask3)",children:[(0,r.jsx)("rect",{fill:"#f8d3cc"}),(0,r.jsx)("image",{xlinkHref:ki}),(0,r.jsx)("text",{fill:"#b0304e",children:"Book3"})]}),(0,r.jsxs)("g",{className:ac,mask:"url(#mask4)",children:[(0,r.jsx)("rect",{fill:"#d2e4ce"}),(0,r.jsx)("image",{xlinkHref:Bi}),(0,r.jsx)("text",{fill:"#04756e",children:"Book2"})]}),(0,r.jsxs)("g",{className:ic,mask:"url(#mask5)",children:[(0,r.jsx)("rect",{fill:"#cad9e5"}),(0,r.jsx)("image",{xlinkHref:Ii}),(0,r.jsx)("text",{fill:"#142864",children:"Book1"})]})]}),(0,r.jsx)("div",{className:sc,style:i>=lc.length-1?{pointerEvents:"none"}:{},onClick:()=>{if(!c.current&&n.current){const e=i+1,t=n.current.children[e].children[0];d(t,e)}},children:(0,r.jsx)("div",{className:rc,children:(0,r.jsx)(Wo.A,{})})}),(0,r.jsx)("div",{className:oc,style:i<=0?{pointerEvents:"none"}:{},onClick:()=>{if(!c.current&&n.current){const e=i-1,t=n.current.children[i].children[0];d(t,e)}},children:(0,r.jsx)("div",{className:rc,children:(0,r.jsx)(Yo.A,{})})})]})},uc="AutoCompletePunctuation_container__EjYmN",gc="AutoCompletePunctuation_content__PIXsh",hc={"'":"'",'"':'"',"(":")","(":")","【":"】","[":"]","《":"》","「":"」","『":"』","{":"}","“":"”","‘":"’"},pc=()=>{const e=(0,a.useRef)(null),t=(0,a.useRef)(null),n=(0,a.useCallback)((e=>{const t=hc[e.data];if(t&&("insertText"===e.inputType||"compositionend"===e.type))if(["TEXTAREA","INPUT"].includes(e.target.tagName))e.target.setRangeText(t);else{const e=document.createTextNode(t),n=document.getSelection();if(n){const t=n.getRangeAt(0);t.insertNode(e),t.setEndBefore(e),t.commonAncestorContainer.normalize()}}}),[]);return(0,a.useEffect)((()=>(e.current&&(e.current.addEventListener("input",n),e.current.addEventListener("compositionend",n)),t.current&&(t.current.addEventListener("input",n),t.current.addEventListener("compositionend",n)),()=>{e.current&&(e.current.removeEventListener("input",n),e.current.removeEventListener("compositionend",n)),t.current&&(t.current.removeEventListener("input",n),t.current.removeEventListener("compositionend",n))})),[]),(0,r.jsxs)("div",{className:uc,children:[(0,r.jsx)(Ba,{intlTitle:"page.htmlVision.interactiveDesign.autoCompletePunctuation"}),(0,r.jsxs)("div",{className:gc,children:[(0,r.jsx)("textarea",{rows:5,placeholder:"maxLength is 100",maxLength:100,ref:e}),(0,r.jsx)("div",{contentEditable:"true",ref:t})]})]})},fc="StackedImages_container__Hnz74",xc="StackedImages_content__bZLt4",Ac=[At,wt,jt,bt],vc=()=>(0,r.jsxs)("div",{className:fc,children:[(0,r.jsx)(Ba,{intlTitle:"page.htmlVision.interactiveDesign.stackedImages"}),(0,r.jsx)("div",{className:xc,children:Ac.map(((e,t)=>(0,r.jsx)("img",{src:e,alt:""},t)))})]}),yc="InteractiveDesign_container__oK3No",wc="InteractiveDesign_box__+Trza",jc=[{element:(0,r.jsx)(La,{})},{element:(0,r.jsx)(ai,{})},{element:(0,r.jsx)(gi,{})},{element:(0,r.jsx)(Ea,{data:Sa[0]})},{element:(0,r.jsx)(ji,{})},{element:(0,r.jsx)(Ci,{})},{element:(0,r.jsx)(Xi,{})},{element:(0,r.jsx)(rs,{})},{element:(0,r.jsx)(Ps,{})},{element:(0,r.jsx)(Gs,{})},{element:(0,r.jsx)(qs,{})},{element:(0,r.jsx)(er,{})},{element:(0,r.jsx)(ir,{})},{element:(0,r.jsx)(cr,{})},{element:(0,r.jsx)(ur,{})},{element:(0,r.jsx)(Uo,{})},{element:(0,r.jsx)(Ea,{data:Sa[1]})},{element:(0,r.jsx)(mc,{})},{element:(0,r.jsx)(pc,{})},{element:(0,r.jsx)(vc,{})}],bc=()=>{const{setScrollTop:e}=d();return(0,a.useEffect)((()=>{e(0)}),[]),(0,r.jsx)("div",{className:yc,children:jc.map(((e,t)=>(0,r.jsx)("div",{className:wc,children:e.element},t)))})},_c={container:"BackgroundEffect_container__u+IDp",box:"BackgroundEffect_box__k+mFh",bg1:"BackgroundEffect_bg1__klRoc",bg2:"BackgroundEffect_bg2__kPZ6M",bg3:"BackgroundEffect_bg3__82UV-",bg4:"BackgroundEffect_bg4__z430k",bg5:"BackgroundEffect_bg5__YkL6Y",bg6:"BackgroundEffect_bg6__zUQqR",bg7:"BackgroundEffect_bg7__thgM1",bg8:"BackgroundEffect_bg8__YdGMF",bg9:"BackgroundEffect_bg9__19R3E",bg10:"BackgroundEffect_bg10__htocf",bg11:"BackgroundEffect_bg11__CcLwl",bg12:"BackgroundEffect_bg12__eJxJM",bg13:"BackgroundEffect_bg13__mpoDJ",bg14:"BackgroundEffect_bg14__xnExu",bg15:"BackgroundEffect_bg15__F3Wrj",bg16:"BackgroundEffect_bg16__OBNeN",bg17:"BackgroundEffect_bg17__pb8bY",bg18:"BackgroundEffect_bg18__UKapy",bg19:"BackgroundEffect_bg19__obRK1",bg20:"BackgroundEffect_bg20__mnQic",bg21:"BackgroundEffect_bg21__qF-7f",bg22:"BackgroundEffect_bg22__Fcy+J",bg23:"BackgroundEffect_bg23__HJ4I5",bg24:"BackgroundEffect_bg24__qQdYv",bg25:"BackgroundEffect_bg25__h4HDo",bg26:"BackgroundEffect_bg26__PsQZC",bg27:"BackgroundEffect_bg27__U89Ls",bg28:"BackgroundEffect_bg28__2fShs",bg29:"BackgroundEffect_bg29__hiev7"},{GridBox:Mc}=xe,Dc=new Array(29).fill("1"),Nc=()=>{const{setScrollTop:e}=d();return(0,a.useEffect)((()=>{e(0)}),[]),(0,r.jsx)("div",{className:_c.container,children:(0,r.jsx)(xe,{differentScreenCols:[4,3,3,2,2],rowSpace:8,colSpace:8,children:Dc.map(((e,t)=>(0,r.jsx)(Mc,{children:(0,r.jsx)("div",{className:_c.box,children:(0,r.jsx)("div",{className:_c["bg".concat(t+1)]})})},t)))})})},Cc="LineCombination_container__toPmq",Sc="LineCombination_blackBox__P5fH8",Ec="LineCombination_blackBoxPoint__87aDR",kc="LineCombination_whiteBox__-MGXi",Bc="LineCombination_whiteBoxPoint__Tz8Uh",Ic="LineCombination_name__E7QvH",Tc="LineCombination_value__5BYd0";let Pc=0,Rc=0;const Fc=()=>{const e=(0,a.useRef)(null),t=()=>{if(e.current){const s=z.findDOMNode(e.current);if(s){const{length:e}=s.children,r=s.children[Rc],o=null==r?void 0:r.children[0],{clientWidth:c,clientHeight:l}=r,{style:d}=o;if(Rc%2==0){let t=8;d.left&&(t=parseFloat(d.left));let i=t+4;if(i>=c-8-8)if(o.style.visibility="hidden",Rc>=e-1){var n;Rc=0;const e=null===(n=s.children[Rc])||void 0===n?void 0:n.firstChild;e.style.left="".concat(8,"px"),e.style.visibility="visible"}else{var a;Rc+=1;const e=null===(a=s.children[Rc])||void 0===a?void 0:a.firstChild;e.style.left="-1px",e.style.visibility="visible"}else o.style.left="".concat(i,"px"),"visible"!==o.style.visibility&&(o.style.visibility="visible")}else{let e=-1,t=8;if(d.left&&(e=parseFloat(d.left)),d.bottom&&(t=parseFloat(d.bottom)),e>=c){let e=t-4;if(e<=8){var i;o.style.visibility="hidden",Rc+=1;const e=null===(i=s.children[Rc])||void 0===i?void 0:i.firstChild;e.style.left="".concat(8,"px"),e.style.visibility="visible"}else o.style.bottom="".concat(e,"px")}else if(e<=-1){let e=t+4;e>l-8-8&&(e=l,o.style.width="".concat(8,"px"),o.style.height="1px",o.style.left="".concat(8,"px")),o.style.bottom="".concat(e,"px")}else{let t=e+4;t>c-8-8&&(t=c,o.style.width="1px",o.style.height="".concat(8,"px"),o.style.bottom="".concat(l-8-8)),o.style.left="".concat(t,"px")}}Pc=requestAnimationFrame(t)}}};return(0,a.useEffect)((()=>(e.current&&(Pc=requestAnimationFrame(t)),()=>{Pc&&cancelAnimationFrame(Pc)})),[]),(0,r.jsxs)("div",{className:Cc,ref:e,children:[(0,r.jsx)("div",{className:Sc,children:(0,r.jsx)("div",{className:Ec})}),(0,r.jsxs)("div",{className:kc,children:[(0,r.jsx)("div",{className:Bc}),(0,r.jsx)("p",{className:Ic,children:"Price"}),(0,r.jsx)("p",{className:Tc,children:"$656"})]}),(0,r.jsx)("div",{className:Sc,children:(0,r.jsx)("div",{className:Ec})}),(0,r.jsxs)("div",{className:kc,children:[(0,r.jsx)("div",{className:Bc}),(0,r.jsx)("p",{className:Ic,children:"Quantity"}),(0,r.jsx)("p",{className:Tc,children:"84351"})]}),(0,r.jsx)("div",{className:Sc,children:(0,r.jsx)("div",{className:Ec})}),(0,r.jsxs)("div",{className:kc,children:[(0,r.jsx)("div",{className:Bc}),(0,r.jsx)("p",{className:Ic,children:"Number of partners"}),(0,r.jsx)("p",{className:Tc,children:"64"})]}),(0,r.jsx)("div",{className:Sc,children:(0,r.jsx)("div",{className:Ec})}),(0,r.jsxs)("div",{className:kc,children:[(0,r.jsx)("div",{className:Bc}),(0,r.jsx)("p",{className:Ic,children:"Date of establishment"}),(0,r.jsx)("p",{className:Tc,children:"2008-10-01"})]}),(0,r.jsx)("div",{className:Sc,children:(0,r.jsx)("div",{className:Ec})}),(0,r.jsxs)("div",{className:kc,children:[(0,r.jsx)("div",{className:Bc}),(0,r.jsx)("p",{className:Ic,children:"Transaction Analyzed"}),(0,r.jsx)("p",{className:Tc,children:"70Bn"})]}),(0,r.jsx)("div",{className:Sc,children:(0,r.jsx)("div",{className:Ec})})]})};var Gc=n(47523),Qc=n(36802),Lc=n(89740),Oc=n(6754),zc=n(95147),Hc=n(42953),Vc=n(89027),Uc=n(52629),Wc=n(14103),Yc=n(83853),Jc=n(29248),qc=n(90911),Zc=n(17836),Kc=n(68388),Xc=n(59445),$c=n(47826),el=n(78854),tl=n(92446),nl=n(75965);const al=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(0===e)return"0 Bytes";const n=t<0?0:t,a=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,a)).toFixed(n))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][a]},il=e=>{if(!e&&0!==e||isNaN(e)||!isFinite(e))return"未知";const t=Math.floor(e/3600).toString().padStart(2,"00"),n=Math.floor(e%3600/60).toString().padStart(2,"00"),a=Math.floor(e%3600%60).toString().padStart(2,"00");return"".concat(t,":").concat(n,":").concat(a)},sl=(e,t)=>{if(!e)return void t(null);const{type:n}=e,a=n.split("/");if("image"!==a[0])return void t(null);let i=a[1].toUpperCase();var s=new FileReader;s.onload=function(n){const a=n.target.result,s=rl(a);s&&(i=s);const r=new Blob([a]);ol(r,(function(n){if(n){const a=new Image;a.onload=function(){const s=a.width,o=a.height,c=ll(n,s,o);if(c){const a={name:e.name,fileType:i,size:e.size,width:s,height:o,imgUrl:n,imageData:c,blob:r};t(a)}else t(null)},a.onerror=function(){t(null)},a.src=n}else t(null)}))},s.readAsArrayBuffer(e)},rl=e=>{let t="";if(e){const n=new DataView(e).getUint32(0,!1);switch(Number(n).toString(16).toUpperCase()){case"FFD8FFDB":t="JPG";break;case"FFD8FFE0":case"FFD8FFE1":case"FFD8FFE2":case"FFD8FFE3":t="JPEG";break;case"89504E47":t="PNG";break;case"47494638":t="GIF";break;case"52494646":t="WEBP"}}return t},ol=(e,t)=>{if(!e)return void t(null);const n=new FileReader;n.readAsDataURL(e),n.onload=function(e){e.target?t(e.target.result):t(null)}},cl=e=>{if(!e)return null;const{width:t,height:n}=e,a=document.createElement("canvas"),i=a.getContext("2d");a.width=t,a.height=n,i.putImageData(e,0,0,0,0,t,n);return a.toDataURL("image/png")},ll=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(e&&t&&n){const a=new Image;a.src=e;const i=document.createElement("canvas"),s=i.getContext("2d");i.width=t,i.height=n,s.drawImage(a,0,0,t,n);return s.getImageData(0,0,t,n)}return null},dl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(e&&t&&n){const a=document.createElement("canvas"),i=a.getContext("2d");a.width=t,a.height=n,i.drawImage(e,0,0,t,n);return i.getImageData(0,0,t,n)}return null},ml=(e,t)=>{if(!e)return;var n=document.createElement("a");n.style.visibility="hidden",document.body.appendChild(n),n.download=t;const a=window.URL.createObjectURL(e);n.href=a,n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(a)},ul=(e,t)=>{if(!e||0===e.length)return;const n=new Blob(e,{type:"video/webm"});let a="video.webm";if(t){const e=t.split(".");a="".concat(e[0],".webm")}ml(n,a)},gl=e=>{const t=document.getElementById("attach_image");if(t){const n=t.height/t.width;0===e?(t.style.width="".concat(t.clientWidth-50,"px"),t.style.height="".concat(t.clientHeight-50*n,"px")):(t.style.width="".concat(t.clientWidth+50,"px"),t.style.height="".concat(t.clientHeight+50*n,"px"))}},hl=()=>{const e=document.getElementById("attach_image");if(e){let t=!1,n=null,a=null;e.onmousewheel=e=>{e.stopPropagation(),e.preventDefault();const t=e.wheelDelta||e.detail;gl(t>0?1:0)},e.onmousedown=e=>{e.stopPropagation(),e.preventDefault(),t=!0,n=e.clientX,a=e.clientY},e.onmouseup=e=>{e.stopPropagation(),e.preventDefault(),t=!1},e.onmousemove=i=>{if(i.stopPropagation(),i.preventDefault(),t){const t=i.clientX,s=i.clientY,r=t-n,o=s-a,c=document.getElementById("attach_imgDiv");if(c){let i=parseFloat(e.style.left)+r,l=parseFloat(e.style.top)+o;const d=-.75*parseFloat(e.style.width),m=parseFloat(c.style.width)-.25*parseFloat(e.style.width),u=-.75*parseFloat(e.style.height),g=parseFloat(c.style.height)-.25*parseFloat(e.style.height);im&&(i=m),lg&&(l=g),e.style.left="".concat(i,"px"),e.style.top="".concat(l,"px"),n=t,a=s}}}}},pl="FileView_container__SyQN4",fl="FileView_tableLy__kaeXq",xl="FileView_viewContainer__n0Kg6",Al="FileView_progress__GtmqC",vl="FileView_imgDiv__ErTpj",yl="FileView_downLoadTip__FIvRY",wl="FileView_emptyTip__OW2E4",jl="FileView_arrowIcon__2JeuW",bl="FileView_leftArrow__IeXsk",_l="FileView_rightArrow__HPiMt",Ml="FileView_imgInfo__Z2qPj",Dl="FileView_imgOperate__h-UFp",Nl="FileView_iconDiv__GUb18",Cl="FileView_left__Erhr-",Sl="FileView_xiangXia__cm3bW",El="FileView_xiangShang__2ATuW",kl="FileView_fileContainer__rbVnb",Bl="FileView_draggerBox__GNF2g",Il="FileView_draggerTextBoxHover__6Z8I-",Tl="FileView_draggerTextBox__2soxW",Pl="FileView_firstLine__5trSy",Rl="FileView_linkBtn__n-sJb",Fl="FileView_secondLine__9YFcw",Gl="FileView_moreOperate__e+uIL",Ql="FileView_poperSpan__8roYR",{Option:Ll}=Gc.A,{Dragger:Ol}=Qc.A,zl={isProgress:!1,percent:0,progressTimer:null},Hl={imgSrc:"",imgScale:0,userName:"",fileName:"",updateTime:"",imgOrigin:{width:0,height:0},imgRotate:0},Vl=e=>{const{id:t,disabled:n=!1,style:i={}}=e,[s,o]=(0,a.useState)(zl),c=(0,a.useRef)(zl),[l,d]=(0,a.useState)(!1),[m,u]=(0,a.useState)((0,nl.A)(Hl)),g=(0,a.useRef)((0,nl.A)(Hl)),[h,p]=(0,a.useState)(!1),[x,A]=(0,a.useState)([]),v=(0,a.useRef)([]),[y,w]=(0,a.useState)(null),j=(0,a.useRef)(null),b=(0,a.useRef)(null),_=e=>{b.current=j.current,j.current=e,w(e);let t=(0,nl.A)(Hl);if(e){const n=document.getElementById("attach_image");n&&(n.style.webkitTransform="rotate(0deg)",n.style.top="0px",n.style.left="0px",n.style.width="unset",n.style.height="unset",n.removeAttribute("width"),n.removeAttribute("height"));const a=e.value.split("?fileId");t=a.length>1?{...t,imgSrc:"data:image/jpg;base64,".concat(a[1])}:{...t,imgSrc:"data:image/jpg;base64,".concat(e.value)}}g.current=t,u(t)},M=e=>{if(e){const t=e.substring(e.lastIndexOf(".")+1);if(t)return t.toLowerCase()}return""};(0,a.useEffect)((()=>{c.current=zl,o(zl),p(!1),d(!1),v.current=[],A([]),_(null),t&&(async e=>{})()}),[t]),(0,a.useEffect)((()=>{!b.current&&y&&hl()}),[y]);const D=e=>{const t=document.getElementsByClassName("ant-upload-drag");t&&t.length>0&&t[0].classList.remove(Il)},N=e=>{let t="";return t="left"===e?v.current[0].fileId:v.current[v.current.length-1].fileId,j.current&&t===j.current.fileId?"#d8d8d8":"#666666"},C=e=>{const t=document.getElementById("attach_image");switch(e){case 0:t&&g.current&&(t.style.width="700px",t.style.height="".concat(700*g.current.imgScale,"px"),t.style.top="0px",t.style.left="0px");break;case 1:t&&g.current&&(t.style.width="".concat(t.clientWidth+50,"px"),t.style.height="".concat(t.clientHeight+50*g.current.imgScale,"px"));break;case 2:t&&g.current&&(t.style.width="".concat(t.clientWidth-50,"px"),t.style.height="".concat(t.clientHeight-50*g.current.imgScale,"px"));break;case 3:t&&g.current&&(t.style.width="".concat(g.current.imgOrigin.width,"px"),t.style.height="".concat(g.current.imgOrigin.height,"px"),t.style.top="0px",t.style.left="0px");break;case 4:if(t&&g.current){const e={...g.current,imgRotate:g.current.imgRotate+1};g.current=e,u(e),t.style.webkitTransform="rotate(".concat(-90*g.current.imgRotate,"deg)")}break;case 5:(async e=>{let t=e||y;t?n?Lc.Ay.warning("目前状态不允许删除"):f.A.confirm({title:"删除文件提示",content:"确认删除【".concat(t.fileName,"】文件?"),icon:(0,r.jsx)(Uc.A,{}),centered:!0,onOk:async()=>{Lc.Ay.warning("删除中..."),setTimeout((()=>{const e={code:200,data:{},msg:""};if(e&&200===e.code){Lc.Ay.success("删除文件成功");const e=v.current.filter((e=>e.fileId!==t.fileId));v.current=e,A(e),b.current=j.current,e.length>0?_(e[0]):_(null)}else Lc.Ay.error(e.msg)}),2e3)}}):Lc.Ay.warning("无文件可进行删除")})();break;case 6:(async()=>{y&&(Lc.Ay.warning("下载中..."),setTimeout((()=>{Lc.Ay.success("下载成功")}),2e3))})();break;case 7:for(let e=0,t=v.current.length;e0){_(v.current[e-1]);break}}}};return(0,r.jsx)("div",{className:pl,style:i,children:(0,r.jsx)("div",{className:fl,children:(0,r.jsxs)("div",{style:{width:"860px"},children:[(0,r.jsx)("div",{style:{width:"100%",height:"87vh",minHeight:"700px",backgroundImage:"linear-gradient(135deg, #224141, #162a2a)"},children:(0,r.jsxs)("div",{className:xl,children:[s.isProgress&&(0,r.jsxs)("div",{className:Al,children:[(0,r.jsx)(Oc.A,{style:{width:"400px"},percent:s.percent,showInfo:!1}),(0,r.jsxs)("span",{style:{marginTop:"16px"},children:["上传中,请稍候...",s.percent>100?100:s.percent,"%"]})]}),(0,r.jsxs)("div",{id:"attach_imgDiv",className:vl,children:[y&&(0,r.jsxs)("div",{children:[["jpg","jpeg","png","gif"].includes((null==y?void 0:y.fileType)||"")&&(0,r.jsx)("img",{id:"attach_image",src:null==m?void 0:m.imgSrc,style:{position:"absolute",top:0,left:0},onLoad:()=>{const e=document.getElementById("attach_image");if(e){const t={...g.current,imgScale:e.clientHeight/e.clientWidth,imgOrigin:{width:e.clientWidth,height:e.clientHeight}};g.current=t,u(t),e.style.width="700px",e.style.height="".concat(700*t.imgScale,"px")}},alt:""}),["pdf","doc","cocx","xls","xlsx","rar","zip","7z","wim","tar"].includes((null==y?void 0:y.fileType)||"")&&(0,r.jsxs)("div",{className:yl,children:["如果想要浏览该文件,您可以",(0,r.jsx)(ee.Ay,{type:"link",onClick:()=>C(6),children:"点击下载"})]})]}),!y&&!s.isProgress&&(0,r.jsxs)("div",{className:wl,children:[(0,r.jsx)("div",{style:{width:"100%",color:"#333333"},children:"请上传文件"}),(0,r.jsxs)("div",{style:{width:"100%",color:"#ababab",marginTop:"10px",lineHeight:"20px"},children:["不超过30M,",(0,r.jsx)("br",{}),"支持jpg,jpeg,png,gif格式的文件"]})]}),y&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"".concat(jl," ").concat(bl),style:{backgroundColor:N("left")},onClick:()=>C(8),children:(0,r.jsx)(Wo.A,{})}),(0,r.jsx)("span",{className:"".concat(jl," ").concat(_l),style:{backgroundColor:N("right")},onClick:()=>C(7),children:(0,r.jsx)(Yo.A,{})})]})]}),l&&(0,r.jsx)("div",{className:Ml,children:(0,r.jsxs)(zc.A,{children:[(0,r.jsx)(Hc.A,{span:24,children:(0,r.jsxs)("span",{style:{fontSize:"14px"},children:["文件名:",null==y?void 0:y.fileName]})}),(0,r.jsx)(Hc.A,{span:16,children:(0,r.jsxs)("span",{style:{fontSize:"14px"},children:["上传者:",null==y?void 0:y.userName]})}),(0,r.jsx)(Hc.A,{span:8,children:(0,r.jsxs)("span",{style:{fontSize:"14px"},children:["上传时间:",null==y?void 0:y.upTime]})})]})}),y&&(0,r.jsxs)("div",{className:Dl,children:[(0,r.jsxs)("div",{className:Cl,children:[(0,r.jsx)(Gc.A,{placeholder:"请选择",style:{width:"300px"},size:"small",value:y.fileId,loading:h,onChange:e=>{let t=null;for(let n=0,a=v.current.length;n(0,r.jsx)(Ll,{value:e.fileId,children:"".concat(t+1,"/").concat(x.length,":").concat(e.fileName)},e.fileId)))}),(0,r.jsx)("span",{onClick:()=>C(7),className:"".concat(Nl," ").concat(Sl),children:(0,r.jsx)(Wc.A,{})}),(0,r.jsx)("span",{onClick:()=>C(8),className:"".concat(Nl," ").concat(El),children:(0,r.jsx)(Yc.A,{})})]}),(0,r.jsxs)("div",{style:{display:"flex",justifyContent:"flex-end"},children:[(0,r.jsx)("span",{className:Nl,onClick:()=>d(!l),children:(0,r.jsx)(Jc.A,{})}),(0,r.jsx)("span",{className:Nl,onClick:()=>C(0),children:(0,r.jsx)(qc.A,{})}),(0,r.jsx)("span",{className:Nl,onClick:()=>C(3),children:(0,r.jsx)(Zc.A,{})}),(0,r.jsx)("span",{className:Nl,onClick:()=>C(4),children:(0,r.jsx)(Kc.A,{})}),(0,r.jsx)("span",{className:Nl,onClick:()=>C(1),children:(0,r.jsx)(Xc.A,{})}),(0,r.jsx)("span",{className:Nl,onClick:()=>C(2),children:(0,r.jsx)($c.A,{})}),(0,r.jsx)(Vc.A,{style:{width:"80px"},content:(0,r.jsxs)("div",{className:Gl,children:[(0,r.jsx)("span",{className:Ql,onClick:()=>C(6),children:"下载文件"}),(0,r.jsx)("span",{className:Ql,onClick:()=>C(5),children:"删除文件"})]}),children:(0,r.jsx)("span",{className:Nl,children:(0,r.jsx)(el.A,{})})})]})]})]})}),(0,r.jsx)("div",{className:kl,children:(0,r.jsx)(Ol,{className:Bl,multiple:!0,showUploadList:!1,disabled:n,beforeUpload:e=>{if(n)return Lc.Ay.warning("目前状态不允许修改"),!1;const t=M(e.name);return["jpg","jpeg","png","gif","pdf","doc","cocx","xls","xlsx","rar","zip","7z","wim","tar"].includes(t)?e.size>31457280?(Lc.Ay.warning("单个文件大小不能超过30M"),!1):void 0:(Lc.Ay.warning("请上传符合格式要求的文件"),!1)},customRequest:()=>{},onDrop:e=>e.preventDefault(),onChange:async e=>{if(e.event&&e.event.preventDefault(),n)return;if(c.current.isProgress)return void Lc.Ay.warning("有文件正在上传,请稍侯");const t={...zl,isProgress:!0};t.progressTimer=window.setInterval((()=>{if(c.current.percent<90){const e={...c.current,percent:c.current.percent+Math.floor(20*Math.random())};c.current=e,o(e)}}),800),c.current=t,o(t);try{setTimeout((()=>{c.current.progressTimer&&window.clearInterval(c.current.progressTimer);const t={...zl};c.current=t,o(t);const n={code:200,data:{fileId:Number(Math.random().toString().substring(3,8)+Date.now()).toString(36),fileName:e.file.name,createTime:(new Date).getTime(),uploadUserName:"userName",uploadUser:"000001"},msg:""};n&&200===n.code?((e,t)=>{if(!e)return;const n=M(e.fileName);if(["jpg","jpeg","png","gif"].includes(n)){if(t){const a=new FileReader;a.readAsArrayBuffer(t),a.onload=a=>{var i;const s=window.btoa(new Uint8Array(null===(i=a.target)||void 0===i?void 0:i.result).reduce(((e,t)=>e+String.fromCharCode(t)),"")),r={...e};r.fileId=e.fileId,r.fileName=e.fileName,r.fileType=n,r.value=s,r.size=al(t.size),r.upTime=(0,ha.A)(e.createTime,"yyyy-MM-dd HH:mm:ss"),r.userNmae="".concat(e.uploadUserName,"/").concat(e.uploadUser);const o=[...v.current,r];v.current=o,A(o),_(r)}}}else{const a={...e};a.fileId=e.fileId,a.fileName=e.fileName,a.fileType=n,a.value="",a.size=al(t.size),a.upTime=(0,ha.A)(e.createTime,"yyyy-MM-dd HH:mm:ss"),a.userNmae="".concat(e.uploadUserName,"/").concat(e.uploadUser);const i=[...v.current,a];v.current=i,A(i),_(a)}})(n.data,e.file.originFileObj):Lc.Ay.error("上传".concat(e.file.name,"失败"))}),2e3)}catch(t){c.current.progressTimer&&window.clearInterval(c.current.progressTimer);const n={...zl};c.current=n,o(n),Lc.Ay.error("上传".concat(e.file.name,"失败"))}},children:(0,r.jsxs)("div",{className:Tl,onDragOver:e=>{const t=document.getElementsByClassName("ant-upload-drag");t&&t.length>0&&t[0].classList.add(Il)},onDragLeave:D,onDrop:D,children:[(0,r.jsxs)("div",{className:Pl,children:[(0,r.jsx)(tl.A,{}),(0,r.jsx)("span",{children:"将文件拖拽到此处,或"}),(0,r.jsx)("span",{className:n?"":Rl,children:"点击上传"})]}),(0,r.jsx)("div",{className:Fl,children:"系统支持的格式为jpg,jpeg,png,gif,pdf,doc,docx,xls,xlsx,rar,zip,7z,wim,tar的文件"})]})})})]})})})},Ul="ComplexLayout_container__xqRV5",Wl="ComplexLayout_box__Hjeq7",Yl=[{element:(0,r.jsx)(Fc,{})},{element:(0,r.jsx)(Vl,{})}],Jl=()=>{const{setScrollTop:e}=d();return(0,a.useEffect)((()=>{e(0)}),[]),(0,r.jsx)("div",{className:Ul,children:Yl.map(((e,t)=>(0,r.jsx)("div",{className:Wl,children:e.element},t)))})};var ql=n(75862);const Zl="Page1_container__8IHn6",Kl="Page1_content__zgPdQ",Xl="Page1_top__Tik59",$l="Page1_title__qIkYy",ed="Page1_author__EVTso",td="Page1_appoint__gEum0",nd="Page1_articleContent__STpiB",ad="Page1_subTitle__g0Ill",id="Page1_codeBox__hf4Aw",sd="Page1_strong__Um16S",rd=e=>{const t=(0,h.A)(),{showPageIndex:n}=e;return(0,r.jsx)("div",{className:Zl,children:(0,r.jsxs)("div",{className:Kl,children:[(0,r.jsxs)("div",{className:Xl,children:[(0,r.jsx)("div",{className:$l,children:t.formatMessage({id:"page.htmlVision.applicationPageFrame.title"})}),(0,r.jsx)("div",{className:ed,children:"".concat(t.formatMessage({id:"page.htmlVision.applicationPageFrame.author"}),": River")})]}),(0,r.jsxs)("div",{className:td,children:[(0,r.jsx)("div",{children:"".concat(t.formatMessage({id:"page.htmlVision.applicationPageFrame.appoint"}),":")}),(0,r.jsx)("div",{children:t.formatMessage({id:"page.htmlVision.applicationPageFrame.appointText1"})}),(0,r.jsx)("div",{children:t.formatMessage({id:"page.htmlVision.applicationPageFrame.appointText2"})})]}),(0,r.jsxs)("div",{className:nd,children:[(0,r.jsx)("div",{className:ad,children:t.formatMessage({id:"page.htmlVision.applicationPageFrame.subTitle1"})}),(0,r.jsx)("div",{children:"".concat(t.formatMessage({id:"page.htmlVision.applicationPageFrame.des1"}),":")}),(0,r.jsxs)("div",{className:id,children:[(0,r.jsx)("div",{children:"// ".concat(t.formatMessage({id:"page.htmlVision.applicationPageFrame.codeBox1.text"}))}),(0,r.jsx)("div",{children:''})]}),(0,r.jsxs)("div",{className:id,children:[(0,r.jsx)("div",{children:"// ".concat(t.formatMessage({id:"page.htmlVision.applicationPageFrame.codeBox2.text"}))}),(0,r.jsx)("div",{children:"