@bigduu/lotus 2026.4.2 → 2026.4.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/App-Ct4Iqvsg.css +1 -0
- package/dist/assets/App-Lp1tMttv.js +247 -0
- package/dist/assets/{_basePickBy-BspK35sI.js → _basePickBy-CSQjZOEH.js} +1 -1
- package/dist/assets/{_baseUniq-yd3d-av8.js → _baseUniq-DQHUo2wZ.js} +1 -1
- package/dist/assets/{architectureDiagram-VXUJARFQ-CQvKJy3I.js → architectureDiagram-VXUJARFQ-BMUh92dd.js} +1 -1
- package/dist/assets/{blockDiagram-VD42YOAC-DyFWUqNO.js → blockDiagram-VD42YOAC-Brh3I75m.js} +1 -1
- package/dist/assets/{c4Diagram-YG6GDRKO-CznZpCeX.js → c4Diagram-YG6GDRKO-DnxCjxA8.js} +1 -1
- package/dist/assets/{chunk-4BX2VUAB-CT4-fTmw.js → chunk-4BX2VUAB-CixM-C1K.js} +1 -1
- package/dist/assets/{chunk-55IACEB6-DPoGFWVp.js → chunk-55IACEB6-5l3X1dpI.js} +1 -1
- package/dist/assets/{chunk-B4BG7PRW-zd34bnG8.js → chunk-B4BG7PRW-B-EJypcR.js} +1 -1
- package/dist/assets/{chunk-DI55MBZ5-DjYfBoqF.js → chunk-DI55MBZ5-BLxvkRT3.js} +1 -1
- package/dist/assets/{chunk-FMBD7UC4-BDz1nBzO.js → chunk-FMBD7UC4-xvk636Pj.js} +1 -1
- package/dist/assets/{chunk-QN33PNHL-ByHoXcdI.js → chunk-QN33PNHL-C9CiZFt0.js} +1 -1
- package/dist/assets/{chunk-QZHKN3VN-B58DhLEz.js → chunk-QZHKN3VN-CV7tOA_V.js} +1 -1
- package/dist/assets/{chunk-TZMSLE5B-CE3fOJae.js → chunk-TZMSLE5B-Dj7AmZTG.js} +1 -1
- package/dist/assets/classDiagram-2ON5EDUG-BmRlHYcJ.js +1 -0
- package/dist/assets/classDiagram-v2-WZHVMYZB-BmRlHYcJ.js +1 -0
- package/dist/assets/clone-LotimydJ.js +1 -0
- package/dist/assets/{cose-bilkent-S5V4N54A-CQMexX_7.js → cose-bilkent-S5V4N54A-BglMwVVo.js} +1 -1
- package/dist/assets/{dagre-6UL2VRFP-Nr0JTfw1.js → dagre-6UL2VRFP-B_pUYMrn.js} +1 -1
- package/dist/assets/{diagram-PSM6KHXK-2zflANlw.js → diagram-PSM6KHXK-DcFX0GIa.js} +1 -1
- package/dist/assets/{diagram-QEK2KX5R-VyZmBtmD.js → diagram-QEK2KX5R-Bf0mJKZv.js} +1 -1
- package/dist/assets/{diagram-S2PKOQOG-B2faf1Ft.js → diagram-S2PKOQOG-BRd51uCk.js} +1 -1
- package/dist/assets/{erDiagram-Q2GNP2WA-DTAG75D2.js → erDiagram-Q2GNP2WA-DtMpD_dp.js} +1 -1
- package/dist/assets/{flowDiagram-NV44I4VS-Bl2QKbsY.js → flowDiagram-NV44I4VS-T-HBCsOg.js} +1 -1
- package/dist/assets/{ganttDiagram-JELNMOA3-aVmOIbJd.js → ganttDiagram-JELNMOA3-CU32XhNJ.js} +1 -1
- package/dist/assets/{gitGraphDiagram-V2S2FVAM-B0eXnYux.js → gitGraphDiagram-V2S2FVAM-BJJ4R_BN.js} +1 -1
- package/dist/assets/{graph-D0JBNw5a.js → graph-DvuzdqtS.js} +1 -1
- package/dist/assets/{index-CYzkseBh.js → index-BpZHxkza.js} +1 -1
- package/dist/assets/{index-CMK42DTl.js → index-CF-KXsGH.js} +1 -1
- package/dist/assets/{index-Cd0gm8C7.js → index-ClgJQKFk.js} +1 -1
- package/dist/assets/{index-BOUR4S6d.js → index-DVh3FZtR.js} +1 -1
- package/dist/assets/{index-oVXhS3BO.js → index-wEBx2_Bp.js} +1 -1
- package/dist/assets/{index.es-CAbTTDez.js → index.es-DusLI-hl.js} +1 -1
- package/dist/assets/{infoDiagram-HS3SLOUP-Cii6S1my.js → infoDiagram-HS3SLOUP-CPENGo9H.js} +1 -1
- package/dist/assets/{journeyDiagram-XKPGCS4Q-C_iPmuQZ.js → journeyDiagram-XKPGCS4Q-CNU_B7N1.js} +1 -1
- package/dist/assets/{kanban-definition-3W4ZIXB7-Cczg6lpg.js → kanban-definition-3W4ZIXB7-sy_U8c_F.js} +1 -1
- package/dist/assets/{layout-DNfKd0n6.js → layout-BMsjut2n.js} +1 -1
- package/dist/assets/{main-BTCes_R0.js → main-DJkIVk5G.js} +5 -5
- package/dist/assets/{mindmap-definition-VGOIOE7T-qYnf--6q.js → mindmap-definition-VGOIOE7T-B36pEDlU.js} +1 -1
- package/dist/assets/{pieDiagram-ADFJNKIX-CKiWkeBJ.js → pieDiagram-ADFJNKIX-BbT86i-D.js} +1 -1
- package/dist/assets/{quadrantDiagram-AYHSOK5B-CWwC8LhP.js → quadrantDiagram-AYHSOK5B-L5k2W8mA.js} +1 -1
- package/dist/assets/{requirementDiagram-UZGBJVZJ--E3kDOu5.js → requirementDiagram-UZGBJVZJ-Bnucoakg.js} +1 -1
- package/dist/assets/{sankeyDiagram-TZEHDZUN-DjNk0_tw.js → sankeyDiagram-TZEHDZUN-DkMx4gl3.js} +1 -1
- package/dist/assets/{sequenceDiagram-WL72ISMW-CP99d7Wl.js → sequenceDiagram-WL72ISMW-IOZUrf8o.js} +1 -1
- package/dist/assets/{stateDiagram-FKZM4ZOC-BpDaflbT.js → stateDiagram-FKZM4ZOC-CHPy6pjS.js} +1 -1
- package/dist/assets/stateDiagram-v2-4FDKWEC3-BlNgA_DM.js +1 -0
- package/dist/assets/{timeline-definition-IT6M3QCI-JLPdh86G.js → timeline-definition-IT6M3QCI-CHJ0Uu-N.js} +1 -1
- package/dist/assets/{treemap-GDKQZRPO-D7fekm60.js → treemap-GDKQZRPO-DUA2WI2l.js} +1 -1
- package/dist/assets/vendor-antd-BSy6VeYJ.js +502 -0
- package/dist/assets/{vendor-charts-B5wo7wyK.js → vendor-charts-DLRDG2Rl.js} +2 -2
- package/dist/assets/{vendor-markdown-BtOz1kLl.js → vendor-markdown-CxEpKeyh.js} +1 -1
- package/dist/assets/{vendor-mermaid-CuzF-D1I.js → vendor-mermaid-BIhXK1bF.js} +4 -4
- package/dist/assets/{vendor-pdf-DKSPuLa9.js → vendor-pdf-D0-oBWsD.js} +4 -4
- package/dist/assets/{xychartDiagram-PRI3JC2R-DFMu-kfv.js → xychartDiagram-PRI3JC2R-DwBzmyeu.js} +1 -1
- package/dist/index.html +3 -3
- package/package.json +2 -1
- package/dist/assets/App-BHPFe35o.js +0 -247
- package/dist/assets/App-CWKFDTQi.css +0 -1
- package/dist/assets/classDiagram-2ON5EDUG-BrIAA29n.js +0 -1
- package/dist/assets/classDiagram-v2-WZHVMYZB-BrIAA29n.js +0 -1
- package/dist/assets/clone-UExS44xq.js +0 -1
- package/dist/assets/stateDiagram-v2-4FDKWEC3-C4ikui-V.js +0 -1
- package/dist/assets/vendor-antd-BlMATH2j.js +0 -502
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as Ma,g as Ku}from"./vendor-i18n-BNURlJ23.js";import{X as je,a as ka}from"./vendor-antd-BlMATH2j.js";var on={},un={},ur,ln;function Z(){if(ln)return ur;ln=1;var n=function(e){return e&&e.Math===Math&&e};return ur=n(typeof globalThis=="object"&&globalThis)||n(typeof window=="object"&&window)||n(typeof self=="object"&&self)||n(typeof Ma=="object"&&Ma)||n(typeof ur=="object"&&ur)||function(){return this}()||Function("return this")(),ur}var Qr={},Zr,hn;function ee(){return hn||(hn=1,Zr=function(n){try{return!!n()}catch{return!0}}),Zr}var Jr,fn;function Re(){if(fn)return Jr;fn=1;var n=ee();return Jr=!n(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Jr}var et,cn;function Pr(){if(cn)return et;cn=1;var n=ee();return et=!n(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),et}var rt,vn;function se(){if(vn)return rt;vn=1;var n=Pr(),e=Function.prototype.call;return rt=n?e.bind(e):function(){return e.apply(e,arguments)},rt}var tt={},gn;function Fl(){if(gn)return tt;gn=1;var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,r=e&&!n.call({1:2},1);return tt.f=r?function(i){var a=e(this,i);return!!a&&a.enumerable}:n,tt}var it,dn;function ja(){return dn||(dn=1,it=function(n,e){return{enumerable:!(n&1),configurable:!(n&2),writable:!(n&4),value:e}}),it}var at,pn;function re(){if(pn)return at;pn=1;var n=Pr(),e=Function.prototype,r=e.call,t=n&&e.bind.bind(r,r);return at=n?t:function(i){return function(){return r.apply(i,arguments)}},at}var nt,yn;function Ze(){if(yn)return nt;yn=1;var n=re(),e=n({}.toString),r=n("".slice);return nt=function(t){return r(e(t),8,-1)},nt}var st,mn;function Qu(){if(mn)return st;mn=1;var n=re(),e=ee(),r=Ze(),t=Object,i=n("".split);return st=e(function(){return!t("z").propertyIsEnumerable(0)})?function(a){return r(a)==="String"?i(a,""):t(a)}:t,st}var ot,bn;function Ar(){return bn||(bn=1,ot=function(n){return n==null}),ot}var ut,xn;function Ce(){if(xn)return ut;xn=1;var n=Ar(),e=TypeError;return ut=function(r){if(n(r))throw new e("Can't call method on "+r);return r},ut}var lt,On;function fr(){if(On)return lt;On=1;var n=Qu(),e=Ce();return lt=function(r){return n(e(r))},lt}var ht,Tn;function te(){if(Tn)return ht;Tn=1;var n=typeof document=="object"&&document.all;return ht=typeof n>"u"&&n!==void 0?function(e){return typeof e=="function"||e===n}:function(e){return typeof e=="function"},ht}var ft,Sn;function ve(){if(Sn)return ft;Sn=1;var n=te();return ft=function(e){return typeof e=="object"?e!==null:n(e)},ft}var ct,En;function Je(){if(En)return ct;En=1;var n=Z(),e=te(),r=function(t){return e(t)?t:void 0};return ct=function(t,i){return arguments.length<2?r(n[t]):n[t]&&n[t][i]},ct}var vt,Rn;function Ir(){if(Rn)return vt;Rn=1;var n=re();return vt=n({}.isPrototypeOf),vt}var gt,Cn;function cr(){if(Cn)return gt;Cn=1;var n=Z(),e=n.navigator,r=e&&e.userAgent;return gt=r?String(r):"",gt}var dt,wn;function Ba(){if(wn)return dt;wn=1;var n=Z(),e=cr(),r=n.process,t=n.Deno,i=r&&r.versions||t&&t.version,a=i&&i.v8,s,o;return a&&(s=a.split("."),o=s[0]>0&&s[0]<4?1:+(s[0]+s[1])),!o&&e&&(s=e.match(/Edge\/(\d+)/),(!s||s[1]>=74)&&(s=e.match(/Chrome\/(\d+)/),s&&(o=+s[1]))),dt=o,dt}var pt,Pn;function Zu(){if(Pn)return pt;Pn=1;var n=Ba(),e=ee(),r=Z(),t=r.String;return pt=!!Object.getOwnPropertySymbols&&!e(function(){var i=Symbol("symbol detection");return!t(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&n&&n<41}),pt}var yt,An;function Ju(){if(An)return yt;An=1;var n=Zu();return yt=n&&!Symbol.sham&&typeof Symbol.iterator=="symbol",yt}var mt,In;function el(){if(In)return mt;In=1;var n=Je(),e=te(),r=Ir(),t=Ju(),i=Object;return mt=t?function(a){return typeof a=="symbol"}:function(a){var s=n("Symbol");return e(s)&&r(s.prototype,i(a))},mt}var bt,Nn;function Nr(){if(Nn)return bt;Nn=1;var n=String;return bt=function(e){try{return n(e)}catch{return"Object"}},bt}var xt,_n;function Be(){if(_n)return xt;_n=1;var n=te(),e=Nr(),r=TypeError;return xt=function(t){if(n(t))return t;throw new r(e(t)+" is not a function")},xt}var Ot,Mn;function ir(){if(Mn)return Ot;Mn=1;var n=Be(),e=Ar();return Ot=function(r,t){var i=r[t];return e(i)?void 0:n(i)},Ot}var Tt,qn;function Ul(){if(qn)return Tt;qn=1;var n=se(),e=te(),r=ve(),t=TypeError;return Tt=function(i,a){var s,o;if(a==="string"&&e(s=i.toString)&&!r(o=n(s,i))||e(s=i.valueOf)&&!r(o=n(s,i))||a!=="string"&&e(s=i.toString)&&!r(o=n(s,i)))return o;throw new t("Can't convert object to primitive value")},Tt}var St={exports:{}},Et,Dn;function Me(){return Dn||(Dn=1,Et=!1),Et}var Rt,Vn;function Fa(){if(Vn)return Rt;Vn=1;var n=Z(),e=Object.defineProperty;return Rt=function(r,t){try{e(n,r,{value:t,configurable:!0,writable:!0})}catch{n[r]=t}return t},Rt}var Ln;function Ua(){if(Ln)return St.exports;Ln=1;var n=Me(),e=Z(),r=Fa(),t="__core-js_shared__",i=St.exports=e[t]||r(t,{});return(i.versions||(i.versions=[])).push({version:"3.42.0",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE",source:"https://github.com/zloirock/core-js"}),St.exports}var Ct,kn;function Ga(){if(kn)return Ct;kn=1;var n=Ua();return Ct=function(e,r){return n[e]||(n[e]=r||{})},Ct}var wt,jn;function _r(){if(jn)return wt;jn=1;var n=Ce(),e=Object;return wt=function(r){return e(n(r))},wt}var Pt,Bn;function we(){if(Bn)return Pt;Bn=1;var n=re(),e=_r(),r=n({}.hasOwnProperty);return Pt=Object.hasOwn||function(i,a){return r(e(i),a)},Pt}var At,Fn;function rl(){if(Fn)return At;Fn=1;var n=re(),e=0,r=Math.random(),t=n(1 .toString);return At=function(i){return"Symbol("+(i===void 0?"":i)+")_"+t(++e+r,36)},At}var It,Un;function ne(){if(Un)return It;Un=1;var n=Z(),e=Ga(),r=we(),t=rl(),i=Zu(),a=Ju(),s=n.Symbol,o=e("wks"),u=a?s.for||s:s&&s.withoutSetter||t;return It=function(l){return r(o,l)||(o[l]=i&&r(s,l)?s[l]:u("Symbol."+l)),o[l]},It}var Nt,Gn;function Gl(){if(Gn)return Nt;Gn=1;var n=se(),e=ve(),r=el(),t=ir(),i=Ul(),a=ne(),s=TypeError,o=a("toPrimitive");return Nt=function(u,l){if(!e(u)||r(u))return u;var h=t(u,o),c;if(h){if(l===void 0&&(l="default"),c=n(h,u,l),!e(c)||r(c))return c;throw new s("Can't convert object to primitive value")}return l===void 0&&(l="number"),i(u,l)},Nt}var _t,zn;function tl(){if(zn)return _t;zn=1;var n=Gl(),e=el();return _t=function(r){var t=n(r,"string");return e(t)?t:t+""},_t}var Mt,Hn;function Mr(){if(Hn)return Mt;Hn=1;var n=Z(),e=ve(),r=n.document,t=e(r)&&e(r.createElement);return Mt=function(i){return t?r.createElement(i):{}},Mt}var qt,$n;function il(){if($n)return qt;$n=1;var n=Re(),e=ee(),r=Mr();return qt=!n&&!e(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),qt}var Wn;function qr(){if(Wn)return Qr;Wn=1;var n=Re(),e=se(),r=Fl(),t=ja(),i=fr(),a=tl(),s=we(),o=il(),u=Object.getOwnPropertyDescriptor;return Qr.f=n?u:function(h,c){if(h=i(h),c=a(c),o)try{return u(h,c)}catch{}if(s(h,c))return t(!e(r.f,h,c),h[c])},Qr}var Dt={},Vt,Yn;function al(){if(Yn)return Vt;Yn=1;var n=Re(),e=ee();return Vt=n&&e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Vt}var Lt,Xn;function ue(){if(Xn)return Lt;Xn=1;var n=ve(),e=String,r=TypeError;return Lt=function(t){if(n(t))return t;throw new r(e(t)+" is not an object")},Lt}var Kn;function $e(){if(Kn)return Dt;Kn=1;var n=Re(),e=il(),r=al(),t=ue(),i=tl(),a=TypeError,s=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u="enumerable",l="configurable",h="writable";return Dt.f=n?r?function(v,f,g){if(t(v),f=i(f),t(g),typeof v=="function"&&f==="prototype"&&"value"in g&&h in g&&!g[h]){var d=o(v,f);d&&d[h]&&(v[f]=g.value,g={configurable:l in g?g[l]:d[l],enumerable:u in g?g[u]:d[u],writable:!1})}return s(v,f,g)}:s:function(v,f,g){if(t(v),f=i(f),t(g),e)try{return s(v,f,g)}catch{}if("get"in g||"set"in g)throw new a("Accessors not supported");return"value"in g&&(v[f]=g.value),v},Dt}var kt,Qn;function vr(){if(Qn)return kt;Qn=1;var n=Re(),e=$e(),r=ja();return kt=n?function(t,i,a){return e.f(t,i,r(1,a))}:function(t,i,a){return t[i]=a,t},kt}var jt={exports:{}},Bt,Zn;function Dr(){if(Zn)return Bt;Zn=1;var n=Re(),e=we(),r=Function.prototype,t=n&&Object.getOwnPropertyDescriptor,i=e(r,"name"),a=i&&(function(){}).name==="something",s=i&&(!n||n&&t(r,"name").configurable);return Bt={EXISTS:i,PROPER:a,CONFIGURABLE:s},Bt}var Ft,Jn;function za(){if(Jn)return Ft;Jn=1;var n=re(),e=te(),r=Ua(),t=n(Function.toString);return e(r.inspectSource)||(r.inspectSource=function(i){return t(i)}),Ft=r.inspectSource,Ft}var Ut,es;function zl(){if(es)return Ut;es=1;var n=Z(),e=te(),r=n.WeakMap;return Ut=e(r)&&/native code/.test(String(r)),Ut}var Gt,rs;function Ha(){if(rs)return Gt;rs=1;var n=Ga(),e=rl(),r=n("keys");return Gt=function(t){return r[t]||(r[t]=e(t))},Gt}var zt,ts;function $a(){return ts||(ts=1,zt={}),zt}var Ht,is;function Vr(){if(is)return Ht;is=1;var n=zl(),e=Z(),r=ve(),t=vr(),i=we(),a=Ua(),s=Ha(),o=$a(),u="Object already initialized",l=e.TypeError,h=e.WeakMap,c,v,f,g=function(m){return f(m)?v(m):c(m,{})},d=function(m){return function(b){var x;if(!r(b)||(x=v(b)).type!==m)throw new l("Incompatible receiver, "+m+" required");return x}};if(n||a.state){var p=a.state||(a.state=new h);p.get=p.get,p.has=p.has,p.set=p.set,c=function(m,b){if(p.has(m))throw new l(u);return b.facade=m,p.set(m,b),b},v=function(m){return p.get(m)||{}},f=function(m){return p.has(m)}}else{var y=s("state");o[y]=!0,c=function(m,b){if(i(m,y))throw new l(u);return b.facade=m,t(m,y,b),b},v=function(m){return i(m,y)?m[y]:{}},f=function(m){return i(m,y)}}return Ht={set:c,get:v,has:f,enforce:g,getterFor:d},Ht}var as;function nl(){if(as)return jt.exports;as=1;var n=re(),e=ee(),r=te(),t=we(),i=Re(),a=Dr().CONFIGURABLE,s=za(),o=Vr(),u=o.enforce,l=o.get,h=String,c=Object.defineProperty,v=n("".slice),f=n("".replace),g=n([].join),d=i&&!e(function(){return c(function(){},"length",{value:8}).length!==8}),p=String(String).split("String"),y=jt.exports=function(m,b,x){v(h(b),0,7)==="Symbol("&&(b="["+f(h(b),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),x&&x.getter&&(b="get "+b),x&&x.setter&&(b="set "+b),(!t(m,"name")||a&&m.name!==b)&&(i?c(m,"name",{value:b,configurable:!0}):m.name=b),d&&x&&t(x,"arity")&&m.length!==x.arity&&c(m,"length",{value:x.arity});try{x&&t(x,"constructor")&&x.constructor?i&&c(m,"prototype",{writable:!1}):m.prototype&&(m.prototype=void 0)}catch{}var S=u(m);return t(S,"source")||(S.source=g(p,typeof b=="string"?b:"")),m};return Function.prototype.toString=y(function(){return r(this)&&l(this).source||s(this)},"toString"),jt.exports}var $t,ns;function er(){if(ns)return $t;ns=1;var n=te(),e=$e(),r=nl(),t=Fa();return $t=function(i,a,s,o){o||(o={});var u=o.enumerable,l=o.name!==void 0?o.name:a;if(n(s)&&r(s,l,o),o.global)u?i[a]=s:t(a,s);else{try{o.unsafe?i[a]&&(u=!0):delete i[a]}catch{}u?i[a]=s:e.f(i,a,{value:s,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return i},$t}var Wt={},Yt,ss;function Hl(){if(ss)return Yt;ss=1;var n=Math.ceil,e=Math.floor;return Yt=Math.trunc||function(t){var i=+t;return(i>0?e:n)(i)},Yt}var Xt,os;function Lr(){if(os)return Xt;os=1;var n=Hl();return Xt=function(e){var r=+e;return r!==r||r===0?0:n(r)},Xt}var Kt,us;function $l(){if(us)return Kt;us=1;var n=Lr(),e=Math.max,r=Math.min;return Kt=function(t,i){var a=n(t);return a<0?e(a+i,0):r(a,i)},Kt}var Qt,ls;function ar(){if(ls)return Qt;ls=1;var n=Lr(),e=Math.min;return Qt=function(r){var t=n(r);return t>0?e(t,9007199254740991):0},Qt}var Zt,hs;function Wa(){if(hs)return Zt;hs=1;var n=ar();return Zt=function(e){return n(e.length)},Zt}var Jt,fs;function sl(){if(fs)return Jt;fs=1;var n=fr(),e=$l(),r=Wa(),t=function(i){return function(a,s,o){var u=n(a),l=r(u);if(l===0)return!i&&-1;var h=e(o,l),c;if(i&&s!==s){for(;l>h;)if(c=u[h++],c!==c)return!0}else for(;l>h;h++)if((i||h in u)&&u[h]===s)return i||h||0;return!i&&-1}};return Jt={includes:t(!0),indexOf:t(!1)},Jt}var ei,cs;function ol(){if(cs)return ei;cs=1;var n=re(),e=we(),r=fr(),t=sl().indexOf,i=$a(),a=n([].push);return ei=function(s,o){var u=r(s),l=0,h=[],c;for(c in u)!e(i,c)&&e(u,c)&&a(h,c);for(;o.length>l;)e(u,c=o[l++])&&(~t(h,c)||a(h,c));return h},ei}var ri,vs;function Ya(){return vs||(vs=1,ri=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),ri}var gs;function Wl(){if(gs)return Wt;gs=1;var n=ol(),e=Ya(),r=e.concat("length","prototype");return Wt.f=Object.getOwnPropertyNames||function(i){return n(i,r)},Wt}var ti={},ds;function Yl(){return ds||(ds=1,ti.f=Object.getOwnPropertySymbols),ti}var ii,ps;function Xl(){if(ps)return ii;ps=1;var n=Je(),e=re(),r=Wl(),t=Yl(),i=ue(),a=e([].concat);return ii=n("Reflect","ownKeys")||function(o){var u=r.f(i(o)),l=t.f;return l?a(u,l(o)):u},ii}var ai,ys;function Kl(){if(ys)return ai;ys=1;var n=we(),e=Xl(),r=qr(),t=$e();return ai=function(i,a,s){for(var o=e(a),u=t.f,l=r.f,h=0;h<o.length;h++){var c=o[h];!n(i,c)&&!(s&&n(s,c))&&u(i,c,l(a,c))}},ai}var ni,ms;function ul(){if(ms)return ni;ms=1;var n=ee(),e=te(),r=/#|\.prototype\./,t=function(u,l){var h=a[i(u)];return h===o?!0:h===s?!1:e(l)?n(l):!!l},i=t.normalize=function(u){return String(u).replace(r,".").toLowerCase()},a=t.data={},s=t.NATIVE="N",o=t.POLYFILL="P";return ni=t,ni}var si,bs;function le(){if(bs)return si;bs=1;var n=Z(),e=qr().f,r=vr(),t=er(),i=Fa(),a=Kl(),s=ul();return si=function(o,u){var l=o.target,h=o.global,c=o.stat,v,f,g,d,p,y;if(h?f=n:c?f=n[l]||i(l,{}):f=n[l]&&n[l].prototype,f)for(g in u){if(p=u[g],o.dontCallGetSet?(y=e(f,g),d=y&&y.value):d=f[g],v=s(h?g:l+(c?".":"#")+g,o.forced),!v&&d!==void 0){if(typeof p==typeof d)continue;a(p,d)}(o.sham||d&&d.sham)&&r(p,"sham",!0),t(f,g,p,o)}},si}var oi,xs;function ll(){if(xs)return oi;xs=1;var n=Z(),e=cr(),r=Ze(),t=function(i){return e.slice(0,i.length)===i};return oi=function(){return t("Bun/")?"BUN":t("Cloudflare-Workers")?"CLOUDFLARE":t("Deno/")?"DENO":t("Node.js/")?"NODE":n.Bun&&typeof Bun.version=="string"?"BUN":n.Deno&&typeof Deno.version=="object"?"DENO":r(n.process)==="process"?"NODE":n.window&&n.document?"BROWSER":"REST"}(),oi}var ui,Os;function kr(){if(Os)return ui;Os=1;var n=ll();return ui=n==="NODE",ui}var li,Ts;function Ql(){if(Ts)return li;Ts=1;var n=re(),e=Be();return li=function(r,t,i){try{return n(e(Object.getOwnPropertyDescriptor(r,t)[i]))}catch{}},li}var hi,Ss;function Zl(){if(Ss)return hi;Ss=1;var n=ve();return hi=function(e){return n(e)||e===null},hi}var fi,Es;function Jl(){if(Es)return fi;Es=1;var n=Zl(),e=String,r=TypeError;return fi=function(t){if(n(t))return t;throw new r("Can't set "+e(t)+" as a prototype")},fi}var ci,Rs;function hl(){if(Rs)return ci;Rs=1;var n=Ql(),e=ve(),r=Ce(),t=Jl();return ci=Object.setPrototypeOf||("__proto__"in{}?function(){var i=!1,a={},s;try{s=n(Object.prototype,"__proto__","set"),s(a,[]),i=a instanceof Array}catch{}return function(u,l){return r(u),t(l),e(u)&&(i?s(u,l):u.__proto__=l),u}}():void 0),ci}var vi,Cs;function jr(){if(Cs)return vi;Cs=1;var n=$e().f,e=we(),r=ne(),t=r("toStringTag");return vi=function(i,a,s){i&&!s&&(i=i.prototype),i&&!e(i,t)&&n(i,t,{configurable:!0,value:a})},vi}var gi,ws;function eh(){if(ws)return gi;ws=1;var n=nl(),e=$e();return gi=function(r,t,i){return i.get&&n(i.get,t,{getter:!0}),i.set&&n(i.set,t,{setter:!0}),e.f(r,t,i)},gi}var di,Ps;function rh(){if(Ps)return di;Ps=1;var n=Je(),e=eh(),r=ne(),t=Re(),i=r("species");return di=function(a){var s=n(a);t&&s&&!s[i]&&e(s,i,{configurable:!0,get:function(){return this}})},di}var pi,As;function th(){if(As)return pi;As=1;var n=Ir(),e=TypeError;return pi=function(r,t){if(n(t,r))return r;throw new e("Incorrect invocation")},pi}var yi,Is;function ih(){if(Is)return yi;Is=1;var n=ne(),e=n("toStringTag"),r={};return r[e]="z",yi=String(r)==="[object z]",yi}var mi,Ns;function Xa(){if(Ns)return mi;Ns=1;var n=ih(),e=te(),r=Ze(),t=ne(),i=t("toStringTag"),a=Object,s=r(function(){return arguments}())==="Arguments",o=function(u,l){try{return u[l]}catch{}};return mi=n?r:function(u){var l,h,c;return u===void 0?"Undefined":u===null?"Null":typeof(h=o(l=a(u),i))=="string"?h:s?r(l):(c=r(l))==="Object"&&e(l.callee)?"Arguments":c},mi}var bi,_s;function ah(){if(_s)return bi;_s=1;var n=re(),e=ee(),r=te(),t=Xa(),i=Je(),a=za(),s=function(){},o=i("Reflect","construct"),u=/^\s*(?:class|function)\b/,l=n(u.exec),h=!u.test(s),c=function(g){if(!r(g))return!1;try{return o(s,[],g),!0}catch{return!1}},v=function(g){if(!r(g))return!1;switch(t(g)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!l(u,a(g))}catch{return!0}};return v.sham=!0,bi=!o||e(function(){var f;return c(c.call)||!c(Object)||!c(function(){f=!0})||f})?v:c,bi}var xi,Ms;function nh(){if(Ms)return xi;Ms=1;var n=ah(),e=Nr(),r=TypeError;return xi=function(t){if(n(t))return t;throw new r(e(t)+" is not a constructor")},xi}var Oi,qs;function fl(){if(qs)return Oi;qs=1;var n=ue(),e=nh(),r=Ar(),t=ne(),i=t("species");return Oi=function(a,s){var o=n(a).constructor,u;return o===void 0||r(u=n(o)[i])?s:e(u)},Oi}var Ti,Ds;function cl(){if(Ds)return Ti;Ds=1;var n=Pr(),e=Function.prototype,r=e.apply,t=e.call;return Ti=typeof Reflect=="object"&&Reflect.apply||(n?t.bind(r):function(){return t.apply(r,arguments)}),Ti}var Si,Vs;function Br(){if(Vs)return Si;Vs=1;var n=Ze(),e=re();return Si=function(r){if(n(r)==="Function")return e(r)},Si}var Ei,Ls;function Ka(){if(Ls)return Ei;Ls=1;var n=Br(),e=Be(),r=Pr(),t=n(n.bind);return Ei=function(i,a){return e(i),a===void 0?i:r?t(i,a):function(){return i.apply(a,arguments)}},Ei}var Ri,ks;function vl(){if(ks)return Ri;ks=1;var n=Je();return Ri=n("document","documentElement"),Ri}var Ci,js;function sh(){if(js)return Ci;js=1;var n=re();return Ci=n([].slice),Ci}var wi,Bs;function oh(){if(Bs)return wi;Bs=1;var n=TypeError;return wi=function(e,r){if(e<r)throw new n("Not enough arguments");return e},wi}var Pi,Fs;function gl(){if(Fs)return Pi;Fs=1;var n=cr();return Pi=/(?:ipad|iphone|ipod).*applewebkit/i.test(n),Pi}var Ai,Us;function dl(){if(Us)return Ai;Us=1;var n=Z(),e=cl(),r=Ka(),t=te(),i=we(),a=ee(),s=vl(),o=sh(),u=Mr(),l=oh(),h=gl(),c=kr(),v=n.setImmediate,f=n.clearImmediate,g=n.process,d=n.Dispatch,p=n.Function,y=n.MessageChannel,m=n.String,b=0,x={},S="onreadystatechange",E,O,_,V;a(function(){E=n.location});var P=function(R){if(i(x,R)){var A=x[R];delete x[R],A()}},M=function(R){return function(){P(R)}},w=function(R){P(R.data)},k=function(R){n.postMessage(m(R),E.protocol+"//"+E.host)};return(!v||!f)&&(v=function(A){l(arguments.length,1);var U=t(A)?A:p(A),I=o(arguments,1);return x[++b]=function(){e(U,void 0,I)},O(b),b},f=function(A){delete x[A]},c?O=function(R){g.nextTick(M(R))}:d&&d.now?O=function(R){d.now(M(R))}:y&&!h?(_=new y,V=_.port2,_.port1.onmessage=w,O=r(V.postMessage,V)):n.addEventListener&&t(n.postMessage)&&!n.importScripts&&E&&E.protocol!=="file:"&&!a(k)?(O=k,n.addEventListener("message",w,!1)):S in u("script")?O=function(R){s.appendChild(u("script"))[S]=function(){s.removeChild(this),P(R)}}:O=function(R){setTimeout(M(R),0)}),Ai={set:v,clear:f},Ai}var Ii,Gs;function uh(){if(Gs)return Ii;Gs=1;var n=Z(),e=Re(),r=Object.getOwnPropertyDescriptor;return Ii=function(t){if(!e)return n[t];var i=r(n,t);return i&&i.value},Ii}var Ni,zs;function pl(){if(zs)return Ni;zs=1;var n=function(){this.head=null,this.tail=null};return n.prototype={add:function(e){var r={item:e,next:null},t=this.tail;t?t.next=r:this.head=r,this.tail=r},get:function(){var e=this.head;if(e){var r=this.head=e.next;return r===null&&(this.tail=null),e.item}}},Ni=n,Ni}var _i,Hs;function lh(){if(Hs)return _i;Hs=1;var n=cr();return _i=/ipad|iphone|ipod/i.test(n)&&typeof Pebble<"u",_i}var Mi,$s;function hh(){if($s)return Mi;$s=1;var n=cr();return Mi=/web0s(?!.*chrome)/i.test(n),Mi}var qi,Ws;function fh(){if(Ws)return qi;Ws=1;var n=Z(),e=uh(),r=Ka(),t=dl().set,i=pl(),a=gl(),s=lh(),o=hh(),u=kr(),l=n.MutationObserver||n.WebKitMutationObserver,h=n.document,c=n.process,v=n.Promise,f=e("queueMicrotask"),g,d,p,y,m;if(!f){var b=new i,x=function(){var S,E;for(u&&(S=c.domain)&&S.exit();E=b.get();)try{E()}catch(O){throw b.head&&g(),O}S&&S.enter()};!a&&!u&&!o&&l&&h?(d=!0,p=h.createTextNode(""),new l(x).observe(p,{characterData:!0}),g=function(){p.data=d=!d}):!s&&v&&v.resolve?(y=v.resolve(void 0),y.constructor=v,m=r(y.then,y),g=function(){m(x)}):u?g=function(){c.nextTick(x)}:(t=r(t,n),g=function(){t(x)}),f=function(S){b.head||g(),b.add(S)}}return qi=f,qi}var Di,Ys;function ch(){return Ys||(Ys=1,Di=function(n,e){try{arguments.length===1?console.error(n):console.error(n,e)}catch{}}),Di}var Vi,Xs;function Qa(){return Xs||(Xs=1,Vi=function(n){try{return{error:!1,value:n()}}catch(e){return{error:!0,value:e}}}),Vi}var Li,Ks;function gr(){if(Ks)return Li;Ks=1;var n=Z();return Li=n.Promise,Li}var ki,Qs;function dr(){if(Qs)return ki;Qs=1;var n=Z(),e=gr(),r=te(),t=ul(),i=za(),a=ne(),s=ll(),o=Me(),u=Ba(),l=e&&e.prototype,h=a("species"),c=!1,v=r(n.PromiseRejectionEvent),f=t("Promise",function(){var g=i(e),d=g!==String(e);if(!d&&u===66||o&&!(l.catch&&l.finally))return!0;if(!u||u<51||!/native code/.test(g)){var p=new e(function(b){b(1)}),y=function(b){b(function(){},function(){})},m=p.constructor={};if(m[h]=y,c=p.then(function(){})instanceof y,!c)return!0}return!d&&(s==="BROWSER"||s==="DENO")&&!v});return ki={CONSTRUCTOR:f,REJECTION_EVENT:v,SUBCLASSING:c},ki}var ji={},Zs;function pr(){if(Zs)return ji;Zs=1;var n=Be(),e=TypeError,r=function(t){var i,a;this.promise=new t(function(s,o){if(i!==void 0||a!==void 0)throw new e("Bad Promise constructor");i=s,a=o}),this.resolve=n(i),this.reject=n(a)};return ji.f=function(t){return new r(t)},ji}var Js;function vh(){if(Js)return un;Js=1;var n=le(),e=Me(),r=kr(),t=Z(),i=se(),a=er(),s=hl(),o=jr(),u=rh(),l=Be(),h=te(),c=ve(),v=th(),f=fl(),g=dl().set,d=fh(),p=ch(),y=Qa(),m=pl(),b=Vr(),x=gr(),S=dr(),E=pr(),O="Promise",_=S.CONSTRUCTOR,V=S.REJECTION_EVENT,P=S.SUBCLASSING,M=b.getterFor(O),w=b.set,k=x&&x.prototype,R=x,A=k,U=t.TypeError,I=t.document,j=t.process,N=E.f,L=N,B=!!(I&&I.createEvent&&t.dispatchEvent),H="unhandledrejection",X="rejectionhandled",$=0,Q=1,Fe=2,De=1,Ae=2,pe,ye,me,Ie,Ne=function(C){var q;return c(C)&&h(q=C.then)?q:!1},he=function(C,q){var G=q.value,z=q.state===Q,W=z?C.ok:C.fail,_e=C.resolve,Ve=C.reject,Oe=C.domain,Te,We,or;try{W?(z||(q.rejection===Ae&&xr(q),q.rejection=De),W===!0?Te=G:(Oe&&Oe.enter(),Te=W(G),Oe&&(Oe.exit(),or=!0)),Te===C.promise?Ve(new U("Promise-chain cycle")):(We=Ne(Te))?i(We,Te,_e,Ve):_e(Te)):Ve(G)}catch(Or){Oe&&!or&&Oe.exit(),Ve(Or)}},be=function(C,q){C.notified||(C.notified=!0,d(function(){for(var G=C.reactions,z;z=G.get();)he(z,C);C.notified=!1,q&&!C.rejection&&br(C)}))},Ue=function(C,q,G){var z,W;B?(z=I.createEvent("Event"),z.promise=q,z.reason=G,z.initEvent(C,!1,!0),t.dispatchEvent(z)):z={promise:q,reason:G},!V&&(W=t["on"+C])?W(z):C===H&&p("Unhandled promise rejection",G)},br=function(C){i(g,t,function(){var q=C.facade,G=C.value,z=sr(C),W;if(z&&(W=y(function(){r?j.emit("unhandledRejection",G,q):Ue(H,q,G)}),C.rejection=r||sr(C)?Ae:De,W.error))throw W.value})},sr=function(C){return C.rejection!==De&&!C.parent},xr=function(C){i(g,t,function(){var q=C.facade;r?j.emit("rejectionHandled",q):Ue(X,q,C.value)})},ge=function(C,q,G){return function(z){C(q,z,G)}},fe=function(C,q,G){C.done||(C.done=!0,G&&(C=G),C.value=q,C.state=Fe,be(C,!0))},xe=function(C,q,G){if(!C.done){C.done=!0,G&&(C=G);try{if(C.facade===q)throw new U("Promise can't be resolved itself");var z=Ne(q);z?d(function(){var W={done:!1};try{i(z,q,ge(xe,W,C),ge(fe,W,C))}catch(_e){fe(W,_e,C)}}):(C.value=q,C.state=Q,be(C,!1))}catch(W){fe({done:!1},W,C)}}};if(_&&(R=function(q){v(this,A),l(q),i(pe,this);var G=M(this);try{q(ge(xe,G),ge(fe,G))}catch(z){fe(G,z)}},A=R.prototype,pe=function(q){w(this,{type:O,done:!1,notified:!1,parent:!1,reactions:new m,rejection:!1,state:$,value:null})},pe.prototype=a(A,"then",function(q,G){var z=M(this),W=N(f(this,R));return z.parent=!0,W.ok=h(q)?q:!0,W.fail=h(G)&&G,W.domain=r?j.domain:void 0,z.state===$?z.reactions.add(W):d(function(){he(W,z)}),W.promise}),ye=function(){var C=new pe,q=M(C);this.promise=C,this.resolve=ge(xe,q),this.reject=ge(fe,q)},E.f=N=function(C){return C===R||C===me?new ye(C):L(C)},!e&&h(x)&&k!==Object.prototype)){Ie=k.then,P||a(k,"then",function(q,G){var z=this;return new R(function(W,_e){i(Ie,z,W,_e)}).then(q,G)},{unsafe:!0});try{delete k.constructor}catch{}s&&s(k,A)}return n({global:!0,constructor:!0,wrap:!0,forced:_},{Promise:R}),o(R,O,!1,!0),u(O),un}var eo={},Bi,ro;function yr(){return ro||(ro=1,Bi={}),Bi}var Fi,to;function gh(){if(to)return Fi;to=1;var n=ne(),e=yr(),r=n("iterator"),t=Array.prototype;return Fi=function(i){return i!==void 0&&(e.Array===i||t[r]===i)},Fi}var Ui,io;function yl(){if(io)return Ui;io=1;var n=Xa(),e=ir(),r=Ar(),t=yr(),i=ne(),a=i("iterator");return Ui=function(s){if(!r(s))return e(s,a)||e(s,"@@iterator")||t[n(s)]},Ui}var Gi,ao;function dh(){if(ao)return Gi;ao=1;var n=se(),e=Be(),r=ue(),t=Nr(),i=yl(),a=TypeError;return Gi=function(s,o){var u=arguments.length<2?i(s):o;if(e(u))return r(n(u,s));throw new a(t(s)+" is not iterable")},Gi}var zi,no;function ph(){if(no)return zi;no=1;var n=se(),e=ue(),r=ir();return zi=function(t,i,a){var s,o;e(t);try{if(s=r(t,"return"),!s){if(i==="throw")throw a;return a}s=n(s,t)}catch(u){o=!0,s=u}if(i==="throw")throw a;if(o)throw s;return e(s),a},zi}var Hi,so;function ml(){if(so)return Hi;so=1;var n=Ka(),e=se(),r=ue(),t=Nr(),i=gh(),a=Wa(),s=Ir(),o=dh(),u=yl(),l=ph(),h=TypeError,c=function(f,g){this.stopped=f,this.result=g},v=c.prototype;return Hi=function(f,g,d){var p=d&&d.that,y=!!(d&&d.AS_ENTRIES),m=!!(d&&d.IS_RECORD),b=!!(d&&d.IS_ITERATOR),x=!!(d&&d.INTERRUPTED),S=n(g,p),E,O,_,V,P,M,w,k=function(A){return E&&l(E,"normal",A),new c(!0,A)},R=function(A){return y?(r(A),x?S(A[0],A[1],k):S(A[0],A[1])):x?S(A,k):S(A)};if(m)E=f.iterator;else if(b)E=f;else{if(O=u(f),!O)throw new h(t(f)+" is not iterable");if(i(O)){for(_=0,V=a(f);V>_;_++)if(P=R(f[_]),P&&s(v,P))return P;return new c(!1)}E=o(f,O)}for(M=m?f.next:E.next;!(w=e(M,E)).done;){try{P=R(w.value)}catch(A){l(E,"throw",A)}if(typeof P=="object"&&P&&s(v,P))return P}return new c(!1)},Hi}var $i,oo;function yh(){if(oo)return $i;oo=1;var n=ne(),e=n("iterator"),r=!1;try{var t=0,i={next:function(){return{done:!!t++}},return:function(){r=!0}};i[e]=function(){return this},Array.from(i,function(){throw 2})}catch{}return $i=function(a,s){try{if(!s&&!r)return!1}catch{return!1}var o=!1;try{var u={};u[e]=function(){return{next:function(){return{done:o=!0}}}},a(u)}catch{}return o},$i}var Wi,uo;function bl(){if(uo)return Wi;uo=1;var n=gr(),e=yh(),r=dr().CONSTRUCTOR;return Wi=r||!e(function(t){n.all(t).then(void 0,function(){})}),Wi}var lo;function mh(){if(lo)return eo;lo=1;var n=le(),e=se(),r=Be(),t=pr(),i=Qa(),a=ml(),s=bl();return n({target:"Promise",stat:!0,forced:s},{all:function(u){var l=this,h=t.f(l),c=h.resolve,v=h.reject,f=i(function(){var g=r(l.resolve),d=[],p=0,y=1;a(u,function(m){var b=p++,x=!1;y++,e(g,l,m).then(function(S){x||(x=!0,d[b]=S,--y||c(d))},v)}),--y||c(d)});return f.error&&v(f.value),h.promise}}),eo}var ho={},fo;function bh(){if(fo)return ho;fo=1;var n=le(),e=Me(),r=dr().CONSTRUCTOR,t=gr(),i=Je(),a=te(),s=er(),o=t&&t.prototype;if(n({target:"Promise",proto:!0,forced:r,real:!0},{catch:function(l){return this.then(void 0,l)}}),!e&&a(t)){var u=i("Promise").prototype.catch;o.catch!==u&&s(o,"catch",u,{unsafe:!0})}return ho}var co={},vo;function xh(){if(vo)return co;vo=1;var n=le(),e=se(),r=Be(),t=pr(),i=Qa(),a=ml(),s=bl();return n({target:"Promise",stat:!0,forced:s},{race:function(u){var l=this,h=t.f(l),c=h.reject,v=i(function(){var f=r(l.resolve);a(u,function(g){e(f,l,g).then(h.resolve,c)})});return v.error&&c(v.value),h.promise}}),co}var go={},po;function Oh(){if(po)return go;po=1;var n=le(),e=pr(),r=dr().CONSTRUCTOR;return n({target:"Promise",stat:!0,forced:r},{reject:function(i){var a=e.f(this),s=a.reject;return s(i),a.promise}}),go}var yo={},Yi,mo;function Th(){if(mo)return Yi;mo=1;var n=ue(),e=ve(),r=pr();return Yi=function(t,i){if(n(t),e(i)&&i.constructor===t)return i;var a=r.f(t),s=a.resolve;return s(i),a.promise},Yi}var bo;function Sh(){if(bo)return yo;bo=1;var n=le(),e=Je(),r=Me(),t=gr(),i=dr().CONSTRUCTOR,a=Th(),s=e("Promise"),o=r&&!i;return n({target:"Promise",stat:!0,forced:r||i},{resolve:function(l){return a(o&&this===s?t:this,l)}}),yo}var xo;function Eh(){return xo||(xo=1,vh(),mh(),bh(),xh(),Oh(),Sh()),on}Eh();var Oo={},To={},Xi,So;function qe(){if(So)return Xi;So=1;var n=Xa(),e=String;return Xi=function(r){if(n(r)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return e(r)},Xi}var Ki,Eo;function xl(){if(Eo)return Ki;Eo=1;var n=ue();return Ki=function(){var e=n(this),r="";return e.hasIndices&&(r+="d"),e.global&&(r+="g"),e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.dotAll&&(r+="s"),e.unicode&&(r+="u"),e.unicodeSets&&(r+="v"),e.sticky&&(r+="y"),r},Ki}var Qi,Ro;function Ol(){if(Ro)return Qi;Ro=1;var n=ee(),e=Z(),r=e.RegExp,t=n(function(){var s=r("a","y");return s.lastIndex=2,s.exec("abcd")!==null}),i=t||n(function(){return!r("a","y").sticky}),a=t||n(function(){var s=r("^r","gy");return s.lastIndex=2,s.exec("str")!==null});return Qi={BROKEN_CARET:a,MISSED_STICKY:i,UNSUPPORTED_Y:t},Qi}var Zi={},Ji,Co;function Rh(){if(Co)return Ji;Co=1;var n=ol(),e=Ya();return Ji=Object.keys||function(t){return n(t,e)},Ji}var wo;function Ch(){if(wo)return Zi;wo=1;var n=Re(),e=al(),r=$e(),t=ue(),i=fr(),a=Rh();return Zi.f=n&&!e?Object.defineProperties:function(o,u){t(o);for(var l=i(u),h=a(u),c=h.length,v=0,f;c>v;)r.f(o,f=h[v++],l[f]);return o},Zi}var ea,Po;function Fr(){if(Po)return ea;Po=1;var n=ue(),e=Ch(),r=Ya(),t=$a(),i=vl(),a=Mr(),s=Ha(),o=">",u="<",l="prototype",h="script",c=s("IE_PROTO"),v=function(){},f=function(m){return u+h+o+m+u+"/"+h+o},g=function(m){m.write(f("")),m.close();var b=m.parentWindow.Object;return m=null,b},d=function(){var m=a("iframe"),b="java"+h+":",x;return m.style.display="none",i.appendChild(m),m.src=String(b),x=m.contentWindow.document,x.open(),x.write(f("document.F=Object")),x.close(),x.F},p,y=function(){try{p=new ActiveXObject("htmlfile")}catch{}y=typeof document<"u"?document.domain&&p?g(p):d():g(p);for(var m=r.length;m--;)delete y[l][r[m]];return y()};return t[c]=!0,ea=Object.create||function(b,x){var S;return b!==null?(v[l]=n(b),S=new v,v[l]=null,S[c]=b):S=y(),x===void 0?S:e.f(S,x)},ea}var ra,Ao;function wh(){if(Ao)return ra;Ao=1;var n=ee(),e=Z(),r=e.RegExp;return ra=n(function(){var t=r(".","s");return!(t.dotAll&&t.test(`
|
|
1
|
+
import{c as Ma,g as Ku}from"./vendor-i18n-BNURlJ23.js";import{X as je,a as ka}from"./vendor-antd-BSy6VeYJ.js";var on={},un={},ur,ln;function Z(){if(ln)return ur;ln=1;var n=function(e){return e&&e.Math===Math&&e};return ur=n(typeof globalThis=="object"&&globalThis)||n(typeof window=="object"&&window)||n(typeof self=="object"&&self)||n(typeof Ma=="object"&&Ma)||n(typeof ur=="object"&&ur)||function(){return this}()||Function("return this")(),ur}var Qr={},Zr,hn;function ee(){return hn||(hn=1,Zr=function(n){try{return!!n()}catch{return!0}}),Zr}var Jr,fn;function Re(){if(fn)return Jr;fn=1;var n=ee();return Jr=!n(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Jr}var et,cn;function Pr(){if(cn)return et;cn=1;var n=ee();return et=!n(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),et}var rt,vn;function se(){if(vn)return rt;vn=1;var n=Pr(),e=Function.prototype.call;return rt=n?e.bind(e):function(){return e.apply(e,arguments)},rt}var tt={},gn;function Fl(){if(gn)return tt;gn=1;var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,r=e&&!n.call({1:2},1);return tt.f=r?function(i){var a=e(this,i);return!!a&&a.enumerable}:n,tt}var it,dn;function ja(){return dn||(dn=1,it=function(n,e){return{enumerable:!(n&1),configurable:!(n&2),writable:!(n&4),value:e}}),it}var at,pn;function re(){if(pn)return at;pn=1;var n=Pr(),e=Function.prototype,r=e.call,t=n&&e.bind.bind(r,r);return at=n?t:function(i){return function(){return r.apply(i,arguments)}},at}var nt,yn;function Ze(){if(yn)return nt;yn=1;var n=re(),e=n({}.toString),r=n("".slice);return nt=function(t){return r(e(t),8,-1)},nt}var st,mn;function Qu(){if(mn)return st;mn=1;var n=re(),e=ee(),r=Ze(),t=Object,i=n("".split);return st=e(function(){return!t("z").propertyIsEnumerable(0)})?function(a){return r(a)==="String"?i(a,""):t(a)}:t,st}var ot,bn;function Ar(){return bn||(bn=1,ot=function(n){return n==null}),ot}var ut,xn;function Ce(){if(xn)return ut;xn=1;var n=Ar(),e=TypeError;return ut=function(r){if(n(r))throw new e("Can't call method on "+r);return r},ut}var lt,On;function fr(){if(On)return lt;On=1;var n=Qu(),e=Ce();return lt=function(r){return n(e(r))},lt}var ht,Tn;function te(){if(Tn)return ht;Tn=1;var n=typeof document=="object"&&document.all;return ht=typeof n>"u"&&n!==void 0?function(e){return typeof e=="function"||e===n}:function(e){return typeof e=="function"},ht}var ft,Sn;function ve(){if(Sn)return ft;Sn=1;var n=te();return ft=function(e){return typeof e=="object"?e!==null:n(e)},ft}var ct,En;function Je(){if(En)return ct;En=1;var n=Z(),e=te(),r=function(t){return e(t)?t:void 0};return ct=function(t,i){return arguments.length<2?r(n[t]):n[t]&&n[t][i]},ct}var vt,Rn;function Ir(){if(Rn)return vt;Rn=1;var n=re();return vt=n({}.isPrototypeOf),vt}var gt,Cn;function cr(){if(Cn)return gt;Cn=1;var n=Z(),e=n.navigator,r=e&&e.userAgent;return gt=r?String(r):"",gt}var dt,wn;function Ba(){if(wn)return dt;wn=1;var n=Z(),e=cr(),r=n.process,t=n.Deno,i=r&&r.versions||t&&t.version,a=i&&i.v8,s,o;return a&&(s=a.split("."),o=s[0]>0&&s[0]<4?1:+(s[0]+s[1])),!o&&e&&(s=e.match(/Edge\/(\d+)/),(!s||s[1]>=74)&&(s=e.match(/Chrome\/(\d+)/),s&&(o=+s[1]))),dt=o,dt}var pt,Pn;function Zu(){if(Pn)return pt;Pn=1;var n=Ba(),e=ee(),r=Z(),t=r.String;return pt=!!Object.getOwnPropertySymbols&&!e(function(){var i=Symbol("symbol detection");return!t(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&n&&n<41}),pt}var yt,An;function Ju(){if(An)return yt;An=1;var n=Zu();return yt=n&&!Symbol.sham&&typeof Symbol.iterator=="symbol",yt}var mt,In;function el(){if(In)return mt;In=1;var n=Je(),e=te(),r=Ir(),t=Ju(),i=Object;return mt=t?function(a){return typeof a=="symbol"}:function(a){var s=n("Symbol");return e(s)&&r(s.prototype,i(a))},mt}var bt,Nn;function Nr(){if(Nn)return bt;Nn=1;var n=String;return bt=function(e){try{return n(e)}catch{return"Object"}},bt}var xt,_n;function Be(){if(_n)return xt;_n=1;var n=te(),e=Nr(),r=TypeError;return xt=function(t){if(n(t))return t;throw new r(e(t)+" is not a function")},xt}var Ot,Mn;function ir(){if(Mn)return Ot;Mn=1;var n=Be(),e=Ar();return Ot=function(r,t){var i=r[t];return e(i)?void 0:n(i)},Ot}var Tt,qn;function Ul(){if(qn)return Tt;qn=1;var n=se(),e=te(),r=ve(),t=TypeError;return Tt=function(i,a){var s,o;if(a==="string"&&e(s=i.toString)&&!r(o=n(s,i))||e(s=i.valueOf)&&!r(o=n(s,i))||a!=="string"&&e(s=i.toString)&&!r(o=n(s,i)))return o;throw new t("Can't convert object to primitive value")},Tt}var St={exports:{}},Et,Dn;function Me(){return Dn||(Dn=1,Et=!1),Et}var Rt,Vn;function Fa(){if(Vn)return Rt;Vn=1;var n=Z(),e=Object.defineProperty;return Rt=function(r,t){try{e(n,r,{value:t,configurable:!0,writable:!0})}catch{n[r]=t}return t},Rt}var Ln;function Ua(){if(Ln)return St.exports;Ln=1;var n=Me(),e=Z(),r=Fa(),t="__core-js_shared__",i=St.exports=e[t]||r(t,{});return(i.versions||(i.versions=[])).push({version:"3.42.0",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE",source:"https://github.com/zloirock/core-js"}),St.exports}var Ct,kn;function Ga(){if(kn)return Ct;kn=1;var n=Ua();return Ct=function(e,r){return n[e]||(n[e]=r||{})},Ct}var wt,jn;function _r(){if(jn)return wt;jn=1;var n=Ce(),e=Object;return wt=function(r){return e(n(r))},wt}var Pt,Bn;function we(){if(Bn)return Pt;Bn=1;var n=re(),e=_r(),r=n({}.hasOwnProperty);return Pt=Object.hasOwn||function(i,a){return r(e(i),a)},Pt}var At,Fn;function rl(){if(Fn)return At;Fn=1;var n=re(),e=0,r=Math.random(),t=n(1 .toString);return At=function(i){return"Symbol("+(i===void 0?"":i)+")_"+t(++e+r,36)},At}var It,Un;function ne(){if(Un)return It;Un=1;var n=Z(),e=Ga(),r=we(),t=rl(),i=Zu(),a=Ju(),s=n.Symbol,o=e("wks"),u=a?s.for||s:s&&s.withoutSetter||t;return It=function(l){return r(o,l)||(o[l]=i&&r(s,l)?s[l]:u("Symbol."+l)),o[l]},It}var Nt,Gn;function Gl(){if(Gn)return Nt;Gn=1;var n=se(),e=ve(),r=el(),t=ir(),i=Ul(),a=ne(),s=TypeError,o=a("toPrimitive");return Nt=function(u,l){if(!e(u)||r(u))return u;var h=t(u,o),c;if(h){if(l===void 0&&(l="default"),c=n(h,u,l),!e(c)||r(c))return c;throw new s("Can't convert object to primitive value")}return l===void 0&&(l="number"),i(u,l)},Nt}var _t,zn;function tl(){if(zn)return _t;zn=1;var n=Gl(),e=el();return _t=function(r){var t=n(r,"string");return e(t)?t:t+""},_t}var Mt,Hn;function Mr(){if(Hn)return Mt;Hn=1;var n=Z(),e=ve(),r=n.document,t=e(r)&&e(r.createElement);return Mt=function(i){return t?r.createElement(i):{}},Mt}var qt,$n;function il(){if($n)return qt;$n=1;var n=Re(),e=ee(),r=Mr();return qt=!n&&!e(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),qt}var Wn;function qr(){if(Wn)return Qr;Wn=1;var n=Re(),e=se(),r=Fl(),t=ja(),i=fr(),a=tl(),s=we(),o=il(),u=Object.getOwnPropertyDescriptor;return Qr.f=n?u:function(h,c){if(h=i(h),c=a(c),o)try{return u(h,c)}catch{}if(s(h,c))return t(!e(r.f,h,c),h[c])},Qr}var Dt={},Vt,Yn;function al(){if(Yn)return Vt;Yn=1;var n=Re(),e=ee();return Vt=n&&e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Vt}var Lt,Xn;function ue(){if(Xn)return Lt;Xn=1;var n=ve(),e=String,r=TypeError;return Lt=function(t){if(n(t))return t;throw new r(e(t)+" is not an object")},Lt}var Kn;function $e(){if(Kn)return Dt;Kn=1;var n=Re(),e=il(),r=al(),t=ue(),i=tl(),a=TypeError,s=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u="enumerable",l="configurable",h="writable";return Dt.f=n?r?function(v,f,g){if(t(v),f=i(f),t(g),typeof v=="function"&&f==="prototype"&&"value"in g&&h in g&&!g[h]){var d=o(v,f);d&&d[h]&&(v[f]=g.value,g={configurable:l in g?g[l]:d[l],enumerable:u in g?g[u]:d[u],writable:!1})}return s(v,f,g)}:s:function(v,f,g){if(t(v),f=i(f),t(g),e)try{return s(v,f,g)}catch{}if("get"in g||"set"in g)throw new a("Accessors not supported");return"value"in g&&(v[f]=g.value),v},Dt}var kt,Qn;function vr(){if(Qn)return kt;Qn=1;var n=Re(),e=$e(),r=ja();return kt=n?function(t,i,a){return e.f(t,i,r(1,a))}:function(t,i,a){return t[i]=a,t},kt}var jt={exports:{}},Bt,Zn;function Dr(){if(Zn)return Bt;Zn=1;var n=Re(),e=we(),r=Function.prototype,t=n&&Object.getOwnPropertyDescriptor,i=e(r,"name"),a=i&&(function(){}).name==="something",s=i&&(!n||n&&t(r,"name").configurable);return Bt={EXISTS:i,PROPER:a,CONFIGURABLE:s},Bt}var Ft,Jn;function za(){if(Jn)return Ft;Jn=1;var n=re(),e=te(),r=Ua(),t=n(Function.toString);return e(r.inspectSource)||(r.inspectSource=function(i){return t(i)}),Ft=r.inspectSource,Ft}var Ut,es;function zl(){if(es)return Ut;es=1;var n=Z(),e=te(),r=n.WeakMap;return Ut=e(r)&&/native code/.test(String(r)),Ut}var Gt,rs;function Ha(){if(rs)return Gt;rs=1;var n=Ga(),e=rl(),r=n("keys");return Gt=function(t){return r[t]||(r[t]=e(t))},Gt}var zt,ts;function $a(){return ts||(ts=1,zt={}),zt}var Ht,is;function Vr(){if(is)return Ht;is=1;var n=zl(),e=Z(),r=ve(),t=vr(),i=we(),a=Ua(),s=Ha(),o=$a(),u="Object already initialized",l=e.TypeError,h=e.WeakMap,c,v,f,g=function(m){return f(m)?v(m):c(m,{})},d=function(m){return function(b){var x;if(!r(b)||(x=v(b)).type!==m)throw new l("Incompatible receiver, "+m+" required");return x}};if(n||a.state){var p=a.state||(a.state=new h);p.get=p.get,p.has=p.has,p.set=p.set,c=function(m,b){if(p.has(m))throw new l(u);return b.facade=m,p.set(m,b),b},v=function(m){return p.get(m)||{}},f=function(m){return p.has(m)}}else{var y=s("state");o[y]=!0,c=function(m,b){if(i(m,y))throw new l(u);return b.facade=m,t(m,y,b),b},v=function(m){return i(m,y)?m[y]:{}},f=function(m){return i(m,y)}}return Ht={set:c,get:v,has:f,enforce:g,getterFor:d},Ht}var as;function nl(){if(as)return jt.exports;as=1;var n=re(),e=ee(),r=te(),t=we(),i=Re(),a=Dr().CONFIGURABLE,s=za(),o=Vr(),u=o.enforce,l=o.get,h=String,c=Object.defineProperty,v=n("".slice),f=n("".replace),g=n([].join),d=i&&!e(function(){return c(function(){},"length",{value:8}).length!==8}),p=String(String).split("String"),y=jt.exports=function(m,b,x){v(h(b),0,7)==="Symbol("&&(b="["+f(h(b),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),x&&x.getter&&(b="get "+b),x&&x.setter&&(b="set "+b),(!t(m,"name")||a&&m.name!==b)&&(i?c(m,"name",{value:b,configurable:!0}):m.name=b),d&&x&&t(x,"arity")&&m.length!==x.arity&&c(m,"length",{value:x.arity});try{x&&t(x,"constructor")&&x.constructor?i&&c(m,"prototype",{writable:!1}):m.prototype&&(m.prototype=void 0)}catch{}var S=u(m);return t(S,"source")||(S.source=g(p,typeof b=="string"?b:"")),m};return Function.prototype.toString=y(function(){return r(this)&&l(this).source||s(this)},"toString"),jt.exports}var $t,ns;function er(){if(ns)return $t;ns=1;var n=te(),e=$e(),r=nl(),t=Fa();return $t=function(i,a,s,o){o||(o={});var u=o.enumerable,l=o.name!==void 0?o.name:a;if(n(s)&&r(s,l,o),o.global)u?i[a]=s:t(a,s);else{try{o.unsafe?i[a]&&(u=!0):delete i[a]}catch{}u?i[a]=s:e.f(i,a,{value:s,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return i},$t}var Wt={},Yt,ss;function Hl(){if(ss)return Yt;ss=1;var n=Math.ceil,e=Math.floor;return Yt=Math.trunc||function(t){var i=+t;return(i>0?e:n)(i)},Yt}var Xt,os;function Lr(){if(os)return Xt;os=1;var n=Hl();return Xt=function(e){var r=+e;return r!==r||r===0?0:n(r)},Xt}var Kt,us;function $l(){if(us)return Kt;us=1;var n=Lr(),e=Math.max,r=Math.min;return Kt=function(t,i){var a=n(t);return a<0?e(a+i,0):r(a,i)},Kt}var Qt,ls;function ar(){if(ls)return Qt;ls=1;var n=Lr(),e=Math.min;return Qt=function(r){var t=n(r);return t>0?e(t,9007199254740991):0},Qt}var Zt,hs;function Wa(){if(hs)return Zt;hs=1;var n=ar();return Zt=function(e){return n(e.length)},Zt}var Jt,fs;function sl(){if(fs)return Jt;fs=1;var n=fr(),e=$l(),r=Wa(),t=function(i){return function(a,s,o){var u=n(a),l=r(u);if(l===0)return!i&&-1;var h=e(o,l),c;if(i&&s!==s){for(;l>h;)if(c=u[h++],c!==c)return!0}else for(;l>h;h++)if((i||h in u)&&u[h]===s)return i||h||0;return!i&&-1}};return Jt={includes:t(!0),indexOf:t(!1)},Jt}var ei,cs;function ol(){if(cs)return ei;cs=1;var n=re(),e=we(),r=fr(),t=sl().indexOf,i=$a(),a=n([].push);return ei=function(s,o){var u=r(s),l=0,h=[],c;for(c in u)!e(i,c)&&e(u,c)&&a(h,c);for(;o.length>l;)e(u,c=o[l++])&&(~t(h,c)||a(h,c));return h},ei}var ri,vs;function Ya(){return vs||(vs=1,ri=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),ri}var gs;function Wl(){if(gs)return Wt;gs=1;var n=ol(),e=Ya(),r=e.concat("length","prototype");return Wt.f=Object.getOwnPropertyNames||function(i){return n(i,r)},Wt}var ti={},ds;function Yl(){return ds||(ds=1,ti.f=Object.getOwnPropertySymbols),ti}var ii,ps;function Xl(){if(ps)return ii;ps=1;var n=Je(),e=re(),r=Wl(),t=Yl(),i=ue(),a=e([].concat);return ii=n("Reflect","ownKeys")||function(o){var u=r.f(i(o)),l=t.f;return l?a(u,l(o)):u},ii}var ai,ys;function Kl(){if(ys)return ai;ys=1;var n=we(),e=Xl(),r=qr(),t=$e();return ai=function(i,a,s){for(var o=e(a),u=t.f,l=r.f,h=0;h<o.length;h++){var c=o[h];!n(i,c)&&!(s&&n(s,c))&&u(i,c,l(a,c))}},ai}var ni,ms;function ul(){if(ms)return ni;ms=1;var n=ee(),e=te(),r=/#|\.prototype\./,t=function(u,l){var h=a[i(u)];return h===o?!0:h===s?!1:e(l)?n(l):!!l},i=t.normalize=function(u){return String(u).replace(r,".").toLowerCase()},a=t.data={},s=t.NATIVE="N",o=t.POLYFILL="P";return ni=t,ni}var si,bs;function le(){if(bs)return si;bs=1;var n=Z(),e=qr().f,r=vr(),t=er(),i=Fa(),a=Kl(),s=ul();return si=function(o,u){var l=o.target,h=o.global,c=o.stat,v,f,g,d,p,y;if(h?f=n:c?f=n[l]||i(l,{}):f=n[l]&&n[l].prototype,f)for(g in u){if(p=u[g],o.dontCallGetSet?(y=e(f,g),d=y&&y.value):d=f[g],v=s(h?g:l+(c?".":"#")+g,o.forced),!v&&d!==void 0){if(typeof p==typeof d)continue;a(p,d)}(o.sham||d&&d.sham)&&r(p,"sham",!0),t(f,g,p,o)}},si}var oi,xs;function ll(){if(xs)return oi;xs=1;var n=Z(),e=cr(),r=Ze(),t=function(i){return e.slice(0,i.length)===i};return oi=function(){return t("Bun/")?"BUN":t("Cloudflare-Workers")?"CLOUDFLARE":t("Deno/")?"DENO":t("Node.js/")?"NODE":n.Bun&&typeof Bun.version=="string"?"BUN":n.Deno&&typeof Deno.version=="object"?"DENO":r(n.process)==="process"?"NODE":n.window&&n.document?"BROWSER":"REST"}(),oi}var ui,Os;function kr(){if(Os)return ui;Os=1;var n=ll();return ui=n==="NODE",ui}var li,Ts;function Ql(){if(Ts)return li;Ts=1;var n=re(),e=Be();return li=function(r,t,i){try{return n(e(Object.getOwnPropertyDescriptor(r,t)[i]))}catch{}},li}var hi,Ss;function Zl(){if(Ss)return hi;Ss=1;var n=ve();return hi=function(e){return n(e)||e===null},hi}var fi,Es;function Jl(){if(Es)return fi;Es=1;var n=Zl(),e=String,r=TypeError;return fi=function(t){if(n(t))return t;throw new r("Can't set "+e(t)+" as a prototype")},fi}var ci,Rs;function hl(){if(Rs)return ci;Rs=1;var n=Ql(),e=ve(),r=Ce(),t=Jl();return ci=Object.setPrototypeOf||("__proto__"in{}?function(){var i=!1,a={},s;try{s=n(Object.prototype,"__proto__","set"),s(a,[]),i=a instanceof Array}catch{}return function(u,l){return r(u),t(l),e(u)&&(i?s(u,l):u.__proto__=l),u}}():void 0),ci}var vi,Cs;function jr(){if(Cs)return vi;Cs=1;var n=$e().f,e=we(),r=ne(),t=r("toStringTag");return vi=function(i,a,s){i&&!s&&(i=i.prototype),i&&!e(i,t)&&n(i,t,{configurable:!0,value:a})},vi}var gi,ws;function eh(){if(ws)return gi;ws=1;var n=nl(),e=$e();return gi=function(r,t,i){return i.get&&n(i.get,t,{getter:!0}),i.set&&n(i.set,t,{setter:!0}),e.f(r,t,i)},gi}var di,Ps;function rh(){if(Ps)return di;Ps=1;var n=Je(),e=eh(),r=ne(),t=Re(),i=r("species");return di=function(a){var s=n(a);t&&s&&!s[i]&&e(s,i,{configurable:!0,get:function(){return this}})},di}var pi,As;function th(){if(As)return pi;As=1;var n=Ir(),e=TypeError;return pi=function(r,t){if(n(t,r))return r;throw new e("Incorrect invocation")},pi}var yi,Is;function ih(){if(Is)return yi;Is=1;var n=ne(),e=n("toStringTag"),r={};return r[e]="z",yi=String(r)==="[object z]",yi}var mi,Ns;function Xa(){if(Ns)return mi;Ns=1;var n=ih(),e=te(),r=Ze(),t=ne(),i=t("toStringTag"),a=Object,s=r(function(){return arguments}())==="Arguments",o=function(u,l){try{return u[l]}catch{}};return mi=n?r:function(u){var l,h,c;return u===void 0?"Undefined":u===null?"Null":typeof(h=o(l=a(u),i))=="string"?h:s?r(l):(c=r(l))==="Object"&&e(l.callee)?"Arguments":c},mi}var bi,_s;function ah(){if(_s)return bi;_s=1;var n=re(),e=ee(),r=te(),t=Xa(),i=Je(),a=za(),s=function(){},o=i("Reflect","construct"),u=/^\s*(?:class|function)\b/,l=n(u.exec),h=!u.test(s),c=function(g){if(!r(g))return!1;try{return o(s,[],g),!0}catch{return!1}},v=function(g){if(!r(g))return!1;switch(t(g)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!l(u,a(g))}catch{return!0}};return v.sham=!0,bi=!o||e(function(){var f;return c(c.call)||!c(Object)||!c(function(){f=!0})||f})?v:c,bi}var xi,Ms;function nh(){if(Ms)return xi;Ms=1;var n=ah(),e=Nr(),r=TypeError;return xi=function(t){if(n(t))return t;throw new r(e(t)+" is not a constructor")},xi}var Oi,qs;function fl(){if(qs)return Oi;qs=1;var n=ue(),e=nh(),r=Ar(),t=ne(),i=t("species");return Oi=function(a,s){var o=n(a).constructor,u;return o===void 0||r(u=n(o)[i])?s:e(u)},Oi}var Ti,Ds;function cl(){if(Ds)return Ti;Ds=1;var n=Pr(),e=Function.prototype,r=e.apply,t=e.call;return Ti=typeof Reflect=="object"&&Reflect.apply||(n?t.bind(r):function(){return t.apply(r,arguments)}),Ti}var Si,Vs;function Br(){if(Vs)return Si;Vs=1;var n=Ze(),e=re();return Si=function(r){if(n(r)==="Function")return e(r)},Si}var Ei,Ls;function Ka(){if(Ls)return Ei;Ls=1;var n=Br(),e=Be(),r=Pr(),t=n(n.bind);return Ei=function(i,a){return e(i),a===void 0?i:r?t(i,a):function(){return i.apply(a,arguments)}},Ei}var Ri,ks;function vl(){if(ks)return Ri;ks=1;var n=Je();return Ri=n("document","documentElement"),Ri}var Ci,js;function sh(){if(js)return Ci;js=1;var n=re();return Ci=n([].slice),Ci}var wi,Bs;function oh(){if(Bs)return wi;Bs=1;var n=TypeError;return wi=function(e,r){if(e<r)throw new n("Not enough arguments");return e},wi}var Pi,Fs;function gl(){if(Fs)return Pi;Fs=1;var n=cr();return Pi=/(?:ipad|iphone|ipod).*applewebkit/i.test(n),Pi}var Ai,Us;function dl(){if(Us)return Ai;Us=1;var n=Z(),e=cl(),r=Ka(),t=te(),i=we(),a=ee(),s=vl(),o=sh(),u=Mr(),l=oh(),h=gl(),c=kr(),v=n.setImmediate,f=n.clearImmediate,g=n.process,d=n.Dispatch,p=n.Function,y=n.MessageChannel,m=n.String,b=0,x={},S="onreadystatechange",E,O,_,V;a(function(){E=n.location});var P=function(R){if(i(x,R)){var A=x[R];delete x[R],A()}},M=function(R){return function(){P(R)}},w=function(R){P(R.data)},k=function(R){n.postMessage(m(R),E.protocol+"//"+E.host)};return(!v||!f)&&(v=function(A){l(arguments.length,1);var U=t(A)?A:p(A),I=o(arguments,1);return x[++b]=function(){e(U,void 0,I)},O(b),b},f=function(A){delete x[A]},c?O=function(R){g.nextTick(M(R))}:d&&d.now?O=function(R){d.now(M(R))}:y&&!h?(_=new y,V=_.port2,_.port1.onmessage=w,O=r(V.postMessage,V)):n.addEventListener&&t(n.postMessage)&&!n.importScripts&&E&&E.protocol!=="file:"&&!a(k)?(O=k,n.addEventListener("message",w,!1)):S in u("script")?O=function(R){s.appendChild(u("script"))[S]=function(){s.removeChild(this),P(R)}}:O=function(R){setTimeout(M(R),0)}),Ai={set:v,clear:f},Ai}var Ii,Gs;function uh(){if(Gs)return Ii;Gs=1;var n=Z(),e=Re(),r=Object.getOwnPropertyDescriptor;return Ii=function(t){if(!e)return n[t];var i=r(n,t);return i&&i.value},Ii}var Ni,zs;function pl(){if(zs)return Ni;zs=1;var n=function(){this.head=null,this.tail=null};return n.prototype={add:function(e){var r={item:e,next:null},t=this.tail;t?t.next=r:this.head=r,this.tail=r},get:function(){var e=this.head;if(e){var r=this.head=e.next;return r===null&&(this.tail=null),e.item}}},Ni=n,Ni}var _i,Hs;function lh(){if(Hs)return _i;Hs=1;var n=cr();return _i=/ipad|iphone|ipod/i.test(n)&&typeof Pebble<"u",_i}var Mi,$s;function hh(){if($s)return Mi;$s=1;var n=cr();return Mi=/web0s(?!.*chrome)/i.test(n),Mi}var qi,Ws;function fh(){if(Ws)return qi;Ws=1;var n=Z(),e=uh(),r=Ka(),t=dl().set,i=pl(),a=gl(),s=lh(),o=hh(),u=kr(),l=n.MutationObserver||n.WebKitMutationObserver,h=n.document,c=n.process,v=n.Promise,f=e("queueMicrotask"),g,d,p,y,m;if(!f){var b=new i,x=function(){var S,E;for(u&&(S=c.domain)&&S.exit();E=b.get();)try{E()}catch(O){throw b.head&&g(),O}S&&S.enter()};!a&&!u&&!o&&l&&h?(d=!0,p=h.createTextNode(""),new l(x).observe(p,{characterData:!0}),g=function(){p.data=d=!d}):!s&&v&&v.resolve?(y=v.resolve(void 0),y.constructor=v,m=r(y.then,y),g=function(){m(x)}):u?g=function(){c.nextTick(x)}:(t=r(t,n),g=function(){t(x)}),f=function(S){b.head||g(),b.add(S)}}return qi=f,qi}var Di,Ys;function ch(){return Ys||(Ys=1,Di=function(n,e){try{arguments.length===1?console.error(n):console.error(n,e)}catch{}}),Di}var Vi,Xs;function Qa(){return Xs||(Xs=1,Vi=function(n){try{return{error:!1,value:n()}}catch(e){return{error:!0,value:e}}}),Vi}var Li,Ks;function gr(){if(Ks)return Li;Ks=1;var n=Z();return Li=n.Promise,Li}var ki,Qs;function dr(){if(Qs)return ki;Qs=1;var n=Z(),e=gr(),r=te(),t=ul(),i=za(),a=ne(),s=ll(),o=Me(),u=Ba(),l=e&&e.prototype,h=a("species"),c=!1,v=r(n.PromiseRejectionEvent),f=t("Promise",function(){var g=i(e),d=g!==String(e);if(!d&&u===66||o&&!(l.catch&&l.finally))return!0;if(!u||u<51||!/native code/.test(g)){var p=new e(function(b){b(1)}),y=function(b){b(function(){},function(){})},m=p.constructor={};if(m[h]=y,c=p.then(function(){})instanceof y,!c)return!0}return!d&&(s==="BROWSER"||s==="DENO")&&!v});return ki={CONSTRUCTOR:f,REJECTION_EVENT:v,SUBCLASSING:c},ki}var ji={},Zs;function pr(){if(Zs)return ji;Zs=1;var n=Be(),e=TypeError,r=function(t){var i,a;this.promise=new t(function(s,o){if(i!==void 0||a!==void 0)throw new e("Bad Promise constructor");i=s,a=o}),this.resolve=n(i),this.reject=n(a)};return ji.f=function(t){return new r(t)},ji}var Js;function vh(){if(Js)return un;Js=1;var n=le(),e=Me(),r=kr(),t=Z(),i=se(),a=er(),s=hl(),o=jr(),u=rh(),l=Be(),h=te(),c=ve(),v=th(),f=fl(),g=dl().set,d=fh(),p=ch(),y=Qa(),m=pl(),b=Vr(),x=gr(),S=dr(),E=pr(),O="Promise",_=S.CONSTRUCTOR,V=S.REJECTION_EVENT,P=S.SUBCLASSING,M=b.getterFor(O),w=b.set,k=x&&x.prototype,R=x,A=k,U=t.TypeError,I=t.document,j=t.process,N=E.f,L=N,B=!!(I&&I.createEvent&&t.dispatchEvent),H="unhandledrejection",X="rejectionhandled",$=0,Q=1,Fe=2,De=1,Ae=2,pe,ye,me,Ie,Ne=function(C){var q;return c(C)&&h(q=C.then)?q:!1},he=function(C,q){var G=q.value,z=q.state===Q,W=z?C.ok:C.fail,_e=C.resolve,Ve=C.reject,Oe=C.domain,Te,We,or;try{W?(z||(q.rejection===Ae&&xr(q),q.rejection=De),W===!0?Te=G:(Oe&&Oe.enter(),Te=W(G),Oe&&(Oe.exit(),or=!0)),Te===C.promise?Ve(new U("Promise-chain cycle")):(We=Ne(Te))?i(We,Te,_e,Ve):_e(Te)):Ve(G)}catch(Or){Oe&&!or&&Oe.exit(),Ve(Or)}},be=function(C,q){C.notified||(C.notified=!0,d(function(){for(var G=C.reactions,z;z=G.get();)he(z,C);C.notified=!1,q&&!C.rejection&&br(C)}))},Ue=function(C,q,G){var z,W;B?(z=I.createEvent("Event"),z.promise=q,z.reason=G,z.initEvent(C,!1,!0),t.dispatchEvent(z)):z={promise:q,reason:G},!V&&(W=t["on"+C])?W(z):C===H&&p("Unhandled promise rejection",G)},br=function(C){i(g,t,function(){var q=C.facade,G=C.value,z=sr(C),W;if(z&&(W=y(function(){r?j.emit("unhandledRejection",G,q):Ue(H,q,G)}),C.rejection=r||sr(C)?Ae:De,W.error))throw W.value})},sr=function(C){return C.rejection!==De&&!C.parent},xr=function(C){i(g,t,function(){var q=C.facade;r?j.emit("rejectionHandled",q):Ue(X,q,C.value)})},ge=function(C,q,G){return function(z){C(q,z,G)}},fe=function(C,q,G){C.done||(C.done=!0,G&&(C=G),C.value=q,C.state=Fe,be(C,!0))},xe=function(C,q,G){if(!C.done){C.done=!0,G&&(C=G);try{if(C.facade===q)throw new U("Promise can't be resolved itself");var z=Ne(q);z?d(function(){var W={done:!1};try{i(z,q,ge(xe,W,C),ge(fe,W,C))}catch(_e){fe(W,_e,C)}}):(C.value=q,C.state=Q,be(C,!1))}catch(W){fe({done:!1},W,C)}}};if(_&&(R=function(q){v(this,A),l(q),i(pe,this);var G=M(this);try{q(ge(xe,G),ge(fe,G))}catch(z){fe(G,z)}},A=R.prototype,pe=function(q){w(this,{type:O,done:!1,notified:!1,parent:!1,reactions:new m,rejection:!1,state:$,value:null})},pe.prototype=a(A,"then",function(q,G){var z=M(this),W=N(f(this,R));return z.parent=!0,W.ok=h(q)?q:!0,W.fail=h(G)&&G,W.domain=r?j.domain:void 0,z.state===$?z.reactions.add(W):d(function(){he(W,z)}),W.promise}),ye=function(){var C=new pe,q=M(C);this.promise=C,this.resolve=ge(xe,q),this.reject=ge(fe,q)},E.f=N=function(C){return C===R||C===me?new ye(C):L(C)},!e&&h(x)&&k!==Object.prototype)){Ie=k.then,P||a(k,"then",function(q,G){var z=this;return new R(function(W,_e){i(Ie,z,W,_e)}).then(q,G)},{unsafe:!0});try{delete k.constructor}catch{}s&&s(k,A)}return n({global:!0,constructor:!0,wrap:!0,forced:_},{Promise:R}),o(R,O,!1,!0),u(O),un}var eo={},Bi,ro;function yr(){return ro||(ro=1,Bi={}),Bi}var Fi,to;function gh(){if(to)return Fi;to=1;var n=ne(),e=yr(),r=n("iterator"),t=Array.prototype;return Fi=function(i){return i!==void 0&&(e.Array===i||t[r]===i)},Fi}var Ui,io;function yl(){if(io)return Ui;io=1;var n=Xa(),e=ir(),r=Ar(),t=yr(),i=ne(),a=i("iterator");return Ui=function(s){if(!r(s))return e(s,a)||e(s,"@@iterator")||t[n(s)]},Ui}var Gi,ao;function dh(){if(ao)return Gi;ao=1;var n=se(),e=Be(),r=ue(),t=Nr(),i=yl(),a=TypeError;return Gi=function(s,o){var u=arguments.length<2?i(s):o;if(e(u))return r(n(u,s));throw new a(t(s)+" is not iterable")},Gi}var zi,no;function ph(){if(no)return zi;no=1;var n=se(),e=ue(),r=ir();return zi=function(t,i,a){var s,o;e(t);try{if(s=r(t,"return"),!s){if(i==="throw")throw a;return a}s=n(s,t)}catch(u){o=!0,s=u}if(i==="throw")throw a;if(o)throw s;return e(s),a},zi}var Hi,so;function ml(){if(so)return Hi;so=1;var n=Ka(),e=se(),r=ue(),t=Nr(),i=gh(),a=Wa(),s=Ir(),o=dh(),u=yl(),l=ph(),h=TypeError,c=function(f,g){this.stopped=f,this.result=g},v=c.prototype;return Hi=function(f,g,d){var p=d&&d.that,y=!!(d&&d.AS_ENTRIES),m=!!(d&&d.IS_RECORD),b=!!(d&&d.IS_ITERATOR),x=!!(d&&d.INTERRUPTED),S=n(g,p),E,O,_,V,P,M,w,k=function(A){return E&&l(E,"normal",A),new c(!0,A)},R=function(A){return y?(r(A),x?S(A[0],A[1],k):S(A[0],A[1])):x?S(A,k):S(A)};if(m)E=f.iterator;else if(b)E=f;else{if(O=u(f),!O)throw new h(t(f)+" is not iterable");if(i(O)){for(_=0,V=a(f);V>_;_++)if(P=R(f[_]),P&&s(v,P))return P;return new c(!1)}E=o(f,O)}for(M=m?f.next:E.next;!(w=e(M,E)).done;){try{P=R(w.value)}catch(A){l(E,"throw",A)}if(typeof P=="object"&&P&&s(v,P))return P}return new c(!1)},Hi}var $i,oo;function yh(){if(oo)return $i;oo=1;var n=ne(),e=n("iterator"),r=!1;try{var t=0,i={next:function(){return{done:!!t++}},return:function(){r=!0}};i[e]=function(){return this},Array.from(i,function(){throw 2})}catch{}return $i=function(a,s){try{if(!s&&!r)return!1}catch{return!1}var o=!1;try{var u={};u[e]=function(){return{next:function(){return{done:o=!0}}}},a(u)}catch{}return o},$i}var Wi,uo;function bl(){if(uo)return Wi;uo=1;var n=gr(),e=yh(),r=dr().CONSTRUCTOR;return Wi=r||!e(function(t){n.all(t).then(void 0,function(){})}),Wi}var lo;function mh(){if(lo)return eo;lo=1;var n=le(),e=se(),r=Be(),t=pr(),i=Qa(),a=ml(),s=bl();return n({target:"Promise",stat:!0,forced:s},{all:function(u){var l=this,h=t.f(l),c=h.resolve,v=h.reject,f=i(function(){var g=r(l.resolve),d=[],p=0,y=1;a(u,function(m){var b=p++,x=!1;y++,e(g,l,m).then(function(S){x||(x=!0,d[b]=S,--y||c(d))},v)}),--y||c(d)});return f.error&&v(f.value),h.promise}}),eo}var ho={},fo;function bh(){if(fo)return ho;fo=1;var n=le(),e=Me(),r=dr().CONSTRUCTOR,t=gr(),i=Je(),a=te(),s=er(),o=t&&t.prototype;if(n({target:"Promise",proto:!0,forced:r,real:!0},{catch:function(l){return this.then(void 0,l)}}),!e&&a(t)){var u=i("Promise").prototype.catch;o.catch!==u&&s(o,"catch",u,{unsafe:!0})}return ho}var co={},vo;function xh(){if(vo)return co;vo=1;var n=le(),e=se(),r=Be(),t=pr(),i=Qa(),a=ml(),s=bl();return n({target:"Promise",stat:!0,forced:s},{race:function(u){var l=this,h=t.f(l),c=h.reject,v=i(function(){var f=r(l.resolve);a(u,function(g){e(f,l,g).then(h.resolve,c)})});return v.error&&c(v.value),h.promise}}),co}var go={},po;function Oh(){if(po)return go;po=1;var n=le(),e=pr(),r=dr().CONSTRUCTOR;return n({target:"Promise",stat:!0,forced:r},{reject:function(i){var a=e.f(this),s=a.reject;return s(i),a.promise}}),go}var yo={},Yi,mo;function Th(){if(mo)return Yi;mo=1;var n=ue(),e=ve(),r=pr();return Yi=function(t,i){if(n(t),e(i)&&i.constructor===t)return i;var a=r.f(t),s=a.resolve;return s(i),a.promise},Yi}var bo;function Sh(){if(bo)return yo;bo=1;var n=le(),e=Je(),r=Me(),t=gr(),i=dr().CONSTRUCTOR,a=Th(),s=e("Promise"),o=r&&!i;return n({target:"Promise",stat:!0,forced:r||i},{resolve:function(l){return a(o&&this===s?t:this,l)}}),yo}var xo;function Eh(){return xo||(xo=1,vh(),mh(),bh(),xh(),Oh(),Sh()),on}Eh();var Oo={},To={},Xi,So;function qe(){if(So)return Xi;So=1;var n=Xa(),e=String;return Xi=function(r){if(n(r)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return e(r)},Xi}var Ki,Eo;function xl(){if(Eo)return Ki;Eo=1;var n=ue();return Ki=function(){var e=n(this),r="";return e.hasIndices&&(r+="d"),e.global&&(r+="g"),e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.dotAll&&(r+="s"),e.unicode&&(r+="u"),e.unicodeSets&&(r+="v"),e.sticky&&(r+="y"),r},Ki}var Qi,Ro;function Ol(){if(Ro)return Qi;Ro=1;var n=ee(),e=Z(),r=e.RegExp,t=n(function(){var s=r("a","y");return s.lastIndex=2,s.exec("abcd")!==null}),i=t||n(function(){return!r("a","y").sticky}),a=t||n(function(){var s=r("^r","gy");return s.lastIndex=2,s.exec("str")!==null});return Qi={BROKEN_CARET:a,MISSED_STICKY:i,UNSUPPORTED_Y:t},Qi}var Zi={},Ji,Co;function Rh(){if(Co)return Ji;Co=1;var n=ol(),e=Ya();return Ji=Object.keys||function(t){return n(t,e)},Ji}var wo;function Ch(){if(wo)return Zi;wo=1;var n=Re(),e=al(),r=$e(),t=ue(),i=fr(),a=Rh();return Zi.f=n&&!e?Object.defineProperties:function(o,u){t(o);for(var l=i(u),h=a(u),c=h.length,v=0,f;c>v;)r.f(o,f=h[v++],l[f]);return o},Zi}var ea,Po;function Fr(){if(Po)return ea;Po=1;var n=ue(),e=Ch(),r=Ya(),t=$a(),i=vl(),a=Mr(),s=Ha(),o=">",u="<",l="prototype",h="script",c=s("IE_PROTO"),v=function(){},f=function(m){return u+h+o+m+u+"/"+h+o},g=function(m){m.write(f("")),m.close();var b=m.parentWindow.Object;return m=null,b},d=function(){var m=a("iframe"),b="java"+h+":",x;return m.style.display="none",i.appendChild(m),m.src=String(b),x=m.contentWindow.document,x.open(),x.write(f("document.F=Object")),x.close(),x.F},p,y=function(){try{p=new ActiveXObject("htmlfile")}catch{}y=typeof document<"u"?document.domain&&p?g(p):d():g(p);for(var m=r.length;m--;)delete y[l][r[m]];return y()};return t[c]=!0,ea=Object.create||function(b,x){var S;return b!==null?(v[l]=n(b),S=new v,v[l]=null,S[c]=b):S=y(),x===void 0?S:e.f(S,x)},ea}var ra,Ao;function wh(){if(Ao)return ra;Ao=1;var n=ee(),e=Z(),r=e.RegExp;return ra=n(function(){var t=r(".","s");return!(t.dotAll&&t.test(`
|
|
2
2
|
`)&&t.flags==="s")}),ra}var ta,Io;function Ph(){if(Io)return ta;Io=1;var n=ee(),e=Z(),r=e.RegExp;return ta=n(function(){var t=r("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),ta}var ia,No;function Za(){if(No)return ia;No=1;var n=se(),e=re(),r=qe(),t=xl(),i=Ol(),a=Ga(),s=Fr(),o=Vr().get,u=wh(),l=Ph(),h=a("native-string-replace",String.prototype.replace),c=RegExp.prototype.exec,v=c,f=e("".charAt),g=e("".indexOf),d=e("".replace),p=e("".slice),y=function(){var S=/a/,E=/b*/g;return n(c,S,"a"),n(c,E,"a"),S.lastIndex!==0||E.lastIndex!==0}(),m=i.BROKEN_CARET,b=/()??/.exec("")[1]!==void 0,x=y||b||m||u||l;return x&&(v=function(E){var O=this,_=o(O),V=r(E),P=_.raw,M,w,k,R,A,U,I;if(P)return P.lastIndex=O.lastIndex,M=n(v,P,V),O.lastIndex=P.lastIndex,M;var j=_.groups,N=m&&O.sticky,L=n(t,O),B=O.source,H=0,X=V;if(N&&(L=d(L,"y",""),g(L,"g")===-1&&(L+="g"),X=p(V,O.lastIndex),O.lastIndex>0&&(!O.multiline||O.multiline&&f(V,O.lastIndex-1)!==`
|
|
3
3
|
`)&&(B="(?: "+B+")",X=" "+X,H++),w=new RegExp("^(?:"+B+")",L)),b&&(w=new RegExp("^"+B+"$(?!\\s)",L)),y&&(k=O.lastIndex),R=n(c,N?w:O,X),N?R?(R.input=p(R.input,H),R[0]=p(R[0],H),R.index=O.lastIndex,O.lastIndex+=R[0].length):O.lastIndex=0:y&&R&&(O.lastIndex=O.global?R.index+R[0].length:k),b&&R&&R.length>1&&n(h,R[0],w,function(){for(A=1;A<arguments.length-2;A++)arguments[A]===void 0&&(R[A]=void 0)}),R&&j)for(R.groups=U=s(null),A=0;A<j.length;A++)I=j[A],U[I[0]]=R[I[1]];return R}),ia=v,ia}var _o;function Ah(){if(_o)return To;_o=1;var n=le(),e=Za();return n({target:"RegExp",proto:!0,forced:/./.exec!==e},{exec:e}),To}var aa,Mo;function Ja(){if(Mo)return aa;Mo=1,Ah();var n=se(),e=er(),r=Za(),t=ee(),i=ne(),a=vr(),s=i("species"),o=RegExp.prototype;return aa=function(u,l,h,c){var v=i(u),f=!t(function(){var y={};return y[v]=function(){return 7},""[u](y)!==7}),g=f&&!t(function(){var y=!1,m=/a/;return u==="split"&&(m={},m.constructor={},m.constructor[s]=function(){return m},m.flags="",m[v]=/./[v]),m.exec=function(){return y=!0,null},m[v](""),!y});if(!f||!g||h){var d=/./[v],p=l(v,""[u],function(y,m,b,x,S){var E=m.exec;return E===r||E===o.exec?f&&!S?{done:!0,value:n(d,m,b,x)}:{done:!0,value:n(y,b,m,x)}:{done:!1}});e(String.prototype,u,p[0]),e(o,v,p[1])}c&&a(o[v],"sham",!0)},aa}var na,qo;function Ih(){if(qo)return na;qo=1;var n=re(),e=Lr(),r=qe(),t=Ce(),i=n("".charAt),a=n("".charCodeAt),s=n("".slice),o=function(u){return function(l,h){var c=r(t(l)),v=e(h),f=c.length,g,d;return v<0||v>=f?u?"":void 0:(g=a(c,v),g<55296||g>56319||v+1===f||(d=a(c,v+1))<56320||d>57343?u?i(c,v):g:u?s(c,v,v+2):(g-55296<<10)+(d-56320)+65536)}};return na={codeAt:o(!1),charAt:o(!0)},na}var sa,Do;function en(){if(Do)return sa;Do=1;var n=Ih().charAt;return sa=function(e,r,t){return r+(t?n(e,r).length:1)},sa}var oa,Vo;function rn(){if(Vo)return oa;Vo=1;var n=se(),e=ue(),r=te(),t=Ze(),i=Za(),a=TypeError;return oa=function(s,o){var u=s.exec;if(r(u)){var l=n(u,s,o);return l!==null&&e(l),l}if(t(s)==="RegExp")return n(i,s,o);throw new a("RegExp#exec called on incompatible receiver")},oa}var Lo;function Nh(){if(Lo)return Oo;Lo=1;var n=se(),e=Ja(),r=ue(),t=ve(),i=ar(),a=qe(),s=Ce(),o=ir(),u=en(),l=rn();return e("match",function(h,c,v){return[function(g){var d=s(this),p=t(g)?o(g,h):void 0;return p?n(p,g,d):new RegExp(g)[h](a(d))},function(f){var g=r(this),d=a(f),p=v(c,g,d);if(p.done)return p.value;if(!g.global)return l(g,d);var y=g.unicode;g.lastIndex=0;for(var m=[],b=0,x;(x=l(g,d))!==null;){var S=a(x[0]);m[b]=S,S===""&&(g.lastIndex=u(d,i(g.lastIndex),y)),b++}return b===0?null:m}]}),Oo}Nh();var ko={},ua,jo;function _h(){if(jo)return ua;jo=1;var n=re(),e=_r(),r=Math.floor,t=n("".charAt),i=n("".replace),a=n("".slice),s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,o=/\$([$&'`]|\d{1,2})/g;return ua=function(u,l,h,c,v,f){var g=h+u.length,d=c.length,p=o;return v!==void 0&&(v=e(v),p=s),i(f,p,function(y,m){var b;switch(t(m,0)){case"$":return"$";case"&":return u;case"`":return a(l,0,h);case"'":return a(l,g);case"<":b=v[a(m,1,-1)];break;default:var x=+m;if(x===0)return y;if(x>d){var S=r(x/10);return S===0?y:S<=d?c[S-1]===void 0?t(m,1):c[S-1]+t(m,1):y}b=c[x-1]}return b===void 0?"":b})},ua}var Bo;function Mh(){if(Bo)return ko;Bo=1;var n=cl(),e=se(),r=re(),t=Ja(),i=ee(),a=ue(),s=te(),o=ve(),u=Lr(),l=ar(),h=qe(),c=Ce(),v=en(),f=ir(),g=_h(),d=rn(),p=ne(),y=p("replace"),m=Math.max,b=Math.min,x=r([].concat),S=r([].push),E=r("".indexOf),O=r("".slice),_=function(w){return w===void 0?w:String(w)},V=function(){return"a".replace(/./,"$0")==="$0"}(),P=function(){return/./[y]?/./[y]("a","$0")==="":!1}(),M=!i(function(){var w=/./;return w.exec=function(){var k=[];return k.groups={a:"7"},k},"".replace(w,"$<a>")!=="7"});return t("replace",function(w,k,R){var A=P?"$":"$0";return[function(I,j){var N=c(this),L=o(I)?f(I,y):void 0;return L?e(L,I,N,j):e(k,h(N),I,j)},function(U,I){var j=a(this),N=h(U);if(typeof I=="string"&&E(I,A)===-1&&E(I,"$<")===-1){var L=R(k,j,N,I);if(L.done)return L.value}var B=s(I);B||(I=h(I));var H=j.global,X;H&&(X=j.unicode,j.lastIndex=0);for(var $=[],Q;Q=d(j,N),!(Q===null||(S($,Q),!H));){var Fe=h(Q[0]);Fe===""&&(j.lastIndex=v(N,l(j.lastIndex),X))}for(var De="",Ae=0,pe=0;pe<$.length;pe++){Q=$[pe];for(var ye=h(Q[0]),me=m(b(u(Q.index),N.length),0),Ie=[],Ne,he=1;he<Q.length;he++)S(Ie,_(Q[he]));var be=Q.groups;if(B){var Ue=x([ye],Ie,me,N);be!==void 0&&S(Ue,be),Ne=h(n(I,void 0,Ue))}else Ne=g(ye,N,me,Ie,be,I);me>=Ae&&(De+=O(N,Ae,me)+Ne,Ae=me+ye.length)}return De+O(N,Ae)}]},!M||!V||P),ko}Mh();var Fo={},la,Uo;function qh(){if(Uo)return la;Uo=1;var n=ve(),e=Ze(),r=ne(),t=r("match");return la=function(i){var a;return n(i)&&((a=i[t])!==void 0?!!a:e(i)==="RegExp")},la}var ha,Go;function tn(){if(Go)return ha;Go=1;var n=qh(),e=TypeError;return ha=function(r){if(n(r))throw new e("The method doesn't accept regular expressions");return r},ha}var fa,zo;function an(){if(zo)return fa;zo=1;var n=ne(),e=n("match");return fa=function(r){var t=/./;try{"/./"[r](t)}catch{try{return t[e]=!1,"/./"[r](t)}catch{}}return!1},fa}var Ho;function Dh(){if(Ho)return Fo;Ho=1;var n=le(),e=Br(),r=qr().f,t=ar(),i=qe(),a=tn(),s=Ce(),o=an(),u=Me(),l=e("".slice),h=Math.min,c=o("startsWith"),v=!u&&!c&&!!function(){var f=r(String.prototype,"startsWith");return f&&!f.writable}();return n({target:"String",proto:!0,forced:!v&&!c},{startsWith:function(g){var d=i(s(this));a(g);var p=t(h(arguments.length>1?arguments[1]:void 0,d.length)),y=i(g);return l(d,p,p+y.length)===y}}),Fo}Dh();var ca,$o;function Vh(){if($o)return ca;$o=1;var n=ne(),e=Fr(),r=$e().f,t=n("unscopables"),i=Array.prototype;return i[t]===void 0&&r(i,t,{configurable:!0,value:e(null)}),ca=function(a){i[t][a]=!0},ca}var va,Wo;function Lh(){if(Wo)return va;Wo=1;var n=ee();return va=!n(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),va}var ga,Yo;function Tl(){if(Yo)return ga;Yo=1;var n=we(),e=te(),r=_r(),t=Ha(),i=Lh(),a=t("IE_PROTO"),s=Object,o=s.prototype;return ga=i?s.getPrototypeOf:function(u){var l=r(u);if(n(l,a))return l[a];var h=l.constructor;return e(h)&&l instanceof h?h.prototype:l instanceof s?o:null},ga}var da,Xo;function Sl(){if(Xo)return da;Xo=1;var n=ee(),e=te(),r=ve(),t=Fr(),i=Tl(),a=er(),s=ne(),o=Me(),u=s("iterator"),l=!1,h,c,v;[].keys&&(v=[].keys(),"next"in v?(c=i(i(v)),c!==Object.prototype&&(h=c)):l=!0);var f=!r(h)||n(function(){var g={};return h[u].call(g)!==g});return f?h={}:o&&(h=t(h)),e(h[u])||a(h,u,function(){return this}),da={IteratorPrototype:h,BUGGY_SAFARI_ITERATORS:l},da}var pa,Ko;function kh(){if(Ko)return pa;Ko=1;var n=Sl().IteratorPrototype,e=Fr(),r=ja(),t=jr(),i=yr(),a=function(){return this};return pa=function(s,o,u,l){var h=o+" Iterator";return s.prototype=e(n,{next:r(+!l,u)}),t(s,h,!1,!0),i[h]=a,s},pa}var ya,Qo;function jh(){if(Qo)return ya;Qo=1;var n=le(),e=se(),r=Me(),t=Dr(),i=te(),a=kh(),s=Tl(),o=hl(),u=jr(),l=vr(),h=er(),c=ne(),v=yr(),f=Sl(),g=t.PROPER,d=t.CONFIGURABLE,p=f.IteratorPrototype,y=f.BUGGY_SAFARI_ITERATORS,m=c("iterator"),b="keys",x="values",S="entries",E=function(){return this};return ya=function(O,_,V,P,M,w,k){a(V,_,P);var R=function($){if($===M&&N)return N;if(!y&&$&&$ in I)return I[$];switch($){case b:return function(){return new V(this,$)};case x:return function(){return new V(this,$)};case S:return function(){return new V(this,$)}}return function(){return new V(this)}},A=_+" Iterator",U=!1,I=O.prototype,j=I[m]||I["@@iterator"]||M&&I[M],N=!y&&j||R(M),L=_==="Array"&&I.entries||j,B,H,X;if(L&&(B=s(L.call(new O)),B!==Object.prototype&&B.next&&(!r&&s(B)!==p&&(o?o(B,p):i(B[m])||h(B,m,E)),u(B,A,!0,!0),r&&(v[A]=E))),g&&M===x&&j&&j.name!==x&&(!r&&d?l(I,"name",x):(U=!0,N=function(){return e(j,this)})),M)if(H={values:R(x),keys:w?N:R(b),entries:R(S)},k)for(X in H)(y||U||!(X in I))&&h(I,X,H[X]);else n({target:_,proto:!0,forced:y||U},H);return(!r||k)&&I[m]!==N&&h(I,m,N,{name:M}),v[_]=N,H},ya}var ma,Zo;function Bh(){return Zo||(Zo=1,ma=function(n,e){return{value:n,done:e}}),ma}var ba,Jo;function El(){if(Jo)return ba;Jo=1;var n=fr(),e=Vh(),r=yr(),t=Vr(),i=$e().f,a=jh(),s=Bh(),o=Me(),u=Re(),l="Array Iterator",h=t.set,c=t.getterFor(l);ba=a(Array,"Array",function(f,g){h(this,{type:l,target:n(f),index:0,kind:g})},function(){var f=c(this),g=f.target,d=f.index++;if(!g||d>=g.length)return f.target=null,s(void 0,!0);switch(f.kind){case"keys":return s(d,!1);case"values":return s(g[d],!1)}return s([d,g[d]],!1)},"values");var v=r.Arguments=r.Array;if(e("keys"),e("values"),e("entries"),!o&&u&&v.name!=="values")try{i(v,"name",{value:"values"})}catch{}return ba}El();var eu={},xa,ru;function Fh(){return ru||(ru=1,xa={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),xa}var Oa,tu;function Uh(){if(tu)return Oa;tu=1;var n=Mr(),e=n("span").classList,r=e&&e.constructor&&e.constructor.prototype;return Oa=r===Object.prototype?void 0:r,Oa}var iu;function Gh(){if(iu)return eu;iu=1;var n=Z(),e=Fh(),r=Uh(),t=El(),i=vr(),a=jr(),s=ne(),o=s("iterator"),u=t.values,l=function(c,v){if(c){if(c[o]!==u)try{i(c,o,u)}catch{c[o]=u}if(a(c,v,!0),e[v]){for(var f in t)if(c[f]!==t[f])try{i(c,f,t[f])}catch{c[f]=t[f]}}}};for(var h in e)l(n[h]&&n[h].prototype,h);return l(r,"DOMTokenList"),eu}Gh();var au={},Ta,nu;function zh(){if(nu)return Ta;nu=1;var n=Be(),e=_r(),r=Qu(),t=Wa(),i=TypeError,a="Reduce of empty array with no initial value",s=function(o){return function(u,l,h,c){var v=e(u),f=r(v),g=t(v);if(n(l),g===0&&h<2)throw new i(a);var d=o?g-1:0,p=o?-1:1;if(h<2)for(;;){if(d in f){c=f[d],d+=p;break}if(d+=p,o?d<0:g<=d)throw new i(a)}for(;o?d>=0:g>d;d+=p)d in f&&(c=l(c,f[d],d,v));return c}};return Ta={left:s(!1),right:s(!0)},Ta}var Sa,su;function Rl(){if(su)return Sa;su=1;var n=ee();return Sa=function(e,r){var t=[][e];return!!t&&n(function(){t.call(null,r||function(){return 1},1)})},Sa}var ou;function Hh(){if(ou)return au;ou=1;var n=le(),e=zh().left,r=Rl(),t=Ba(),i=kr(),a=!i&&t>79&&t<83,s=a||!r("reduce");return n({target:"Array",proto:!0,forced:s},{reduce:function(u){var l=arguments.length;return e(this,u,l,l>1?arguments[1]:void 0)}}),au}Hh();var uu={},lu;function $h(){if(lu)return uu;lu=1;var n=le(),e=Br(),r=qr().f,t=ar(),i=qe(),a=tn(),s=Ce(),o=an(),u=Me(),l=e("".slice),h=Math.min,c=o("endsWith"),v=!u&&!c&&!!function(){var f=r(String.prototype,"endsWith");return f&&!f.writable}();return n({target:"String",proto:!0,forced:!v&&!c},{endsWith:function(g){var d=i(s(this));a(g);var p=arguments.length>1?arguments[1]:void 0,y=d.length,m=p===void 0?y:h(t(p),y),b=i(g);return l(d,m-b.length,m)===b}}),uu}$h();var hu={},fu;function Wh(){if(fu)return hu;fu=1;var n=se(),e=re(),r=Ja(),t=ue(),i=ve(),a=Ce(),s=fl(),o=en(),u=ar(),l=qe(),h=ir(),c=rn(),v=Ol(),f=ee(),g=v.UNSUPPORTED_Y,d=4294967295,p=Math.min,y=e([].push),m=e("".slice),b=!f(function(){var S=/(?:)/,E=S.exec;S.exec=function(){return E.apply(this,arguments)};var O="ab".split(S);return O.length!==2||O[0]!=="a"||O[1]!=="b"}),x="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;return r("split",function(S,E,O){var _="0".split(void 0,0).length?function(V,P){return V===void 0&&P===0?[]:n(E,this,V,P)}:E;return[function(P,M){var w=a(this),k=i(P)?h(P,S):void 0;return k?n(k,P,w,M):n(_,l(w),P,M)},function(V,P){var M=t(this),w=l(V);if(!x){var k=O(_,M,w,P,_!==E);if(k.done)return k.value}var R=s(M,RegExp),A=M.unicode,U=(M.ignoreCase?"i":"")+(M.multiline?"m":"")+(M.unicode?"u":"")+(g?"g":"y"),I=new R(g?"^(?:"+M.source+")":M,U),j=P===void 0?d:P>>>0;if(j===0)return[];if(w.length===0)return c(I,w)===null?[w]:[];for(var N=0,L=0,B=[];L<w.length;){I.lastIndex=g?0:L;var H=c(I,g?m(w,L):w),X;if(H===null||(X=p(u(I.lastIndex+(g?L:0)),w.length))===N)L=o(w,L,A);else{if(y(B,m(w,N,L)),B.length===j)return B;for(var $=1;$<=H.length-1;$++)if(y(B,H[$]),B.length===j)return B;L=N=X}}return y(B,m(w,N)),B}]},x||!b,g),hu}Wh();var lr={exports:{}},Ke={exports:{}},Yh=Ke.exports,cu;function Xh(){return cu||(cu=1,(function(){var n,e,r,t,i,a;typeof performance<"u"&&performance!==null&&performance.now?Ke.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(Ke.exports=function(){return(n()-i)/1e6},e=process.hrtime,n=function(){var s;return s=e(),s[0]*1e9+s[1]},t=n(),a=process.uptime()*1e9,i=t-a):Date.now?(Ke.exports=function(){return Date.now()-r},r=Date.now()):(Ke.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(Yh)),Ke.exports}var vu;function Kh(){if(vu)return lr.exports;vu=1;for(var n=Xh(),e=typeof window>"u"?Ma:window,r=["moz","webkit"],t="AnimationFrame",i=e["request"+t],a=e["cancel"+t]||e["cancelRequest"+t],s=0;!i&&s<r.length;s++)i=e[r[s]+"Request"+t],a=e[r[s]+"Cancel"+t]||e[r[s]+"CancelRequest"+t];if(!i||!a){var o=0,u=0,l=[],h=1e3/60;i=function(c){if(l.length===0){var v=n(),f=Math.max(0,h-(v-o));o=f+v,setTimeout(function(){var g=l.slice(0);l.length=0;for(var d=0;d<g.length;d++)if(!g[d].cancelled)try{g[d].callback(o)}catch(p){setTimeout(function(){throw p},0)}},Math.round(f))}return l.push({handle:++u,callback:c,cancelled:!1}),u},a=function(c){for(var v=0;v<l.length;v++)l[v].handle===c&&(l[v].cancelled=!0)}}return lr.exports=function(c){return i.call(e,c)},lr.exports.cancel=function(){a.apply(e,arguments)},lr.exports.polyfill=function(c){c||(c=e),c.requestAnimationFrame=i,c.cancelAnimationFrame=a},lr.exports}var Qh=Kh();const Ea=Ku(Qh);var gu={},Ra,du;function Cl(){return du||(du=1,Ra=`
|
|
4
4
|
\v\f\r \u2028\u2029\uFEFF`),Ra}var Ca,pu;function Zh(){if(pu)return Ca;pu=1;var n=re(),e=Ce(),r=qe(),t=Cl(),i=n("".replace),a=RegExp("^["+t+"]+"),s=RegExp("(^|[^"+t+"])["+t+"]+$"),o=function(u){return function(l){var h=r(e(l));return u&1&&(h=i(h,a,"")),u&2&&(h=i(h,s,"$1")),h}};return Ca={start:o(1),end:o(2),trim:o(3)},Ca}var wa,yu;function Jh(){if(yu)return wa;yu=1;var n=Dr().PROPER,e=ee(),r=Cl(),t="
";return wa=function(i){return e(function(){return!!r[i]()||t[i]()!==t||n&&r[i].name!==i})},wa}var mu;function ef(){if(mu)return gu;mu=1;var n=le(),e=Zh().trim,r=Jh();return n({target:"String",proto:!0,forced:r("trim")},{trim:function(){return e(this)}}),gu}ef();var Pa,bu;function rf(){return bu||(bu=1,Pa=function(n){this.ok=!1,this.alpha=1,n.charAt(0)=="#"&&(n=n.substr(1,6)),n=n.replace(/ /g,""),n=n.toLowerCase();var e={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",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",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",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",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:"d87093",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",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};n=e[n]||n;for(var r=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(u){return[parseInt(u[1]),parseInt(u[2]),parseInt(u[3]),parseFloat(u[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(u){return[parseInt(u[1]),parseInt(u[2]),parseInt(u[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(u){return[parseInt(u[1],16),parseInt(u[2],16),parseInt(u[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(u){return[parseInt(u[1]+u[1],16),parseInt(u[2]+u[2],16),parseInt(u[3]+u[3],16)]}}],t=0;t<r.length;t++){var i=r[t].re,a=r[t].process,s=i.exec(n);if(s){var o=a(s);this.r=o[0],this.g=o[1],this.b=o[2],o.length>3&&(this.alpha=o[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var u=this.r.toString(16),l=this.g.toString(16),h=this.b.toString(16);return u.length==1&&(u="0"+u),l.length==1&&(l="0"+l),h.length==1&&(h="0"+h),"#"+u+l+h},this.getHelpXML=function(){for(var u=new Array,l=0;l<r.length;l++)for(var h=r[l].example,c=0;c<h.length;c++)u[u.length]=h[c];for(var v in e)u[u.length]=v;var f=document.createElement("ul");f.setAttribute("id","rgbcolor-examples");for(var l=0;l<u.length;l++)try{var g=document.createElement("li"),d=new RGBColor(u[l]),p=document.createElement("div");p.style.cssText="margin: 3px; border: 1px solid black; background:"+d.toHex()+"; color:"+d.toHex(),p.appendChild(document.createTextNode("test"));var y=document.createTextNode(" "+u[l]+" -> "+d.toRGB()+" -> "+d.toHex());g.appendChild(p),g.appendChild(y),f.appendChild(g)}catch{}return f}}),Pa}var tf=rf();const qa=Ku(tf);var xu={},Ou;function af(){if(Ou)return xu;Ou=1;var n=le(),e=Br(),r=sl().indexOf,t=Rl(),i=e([].indexOf),a=!!i&&1/i([1],1,-0)<0,s=a||!t("indexOf");return n({target:"Array",proto:!0,forced:s},{indexOf:function(u){var l=arguments.length>1?arguments[1]:void 0;return a?i(this,u,l)||0:r(this,u,l)}}),xu}af();var Tu={},Su;function nf(){if(Su)return Tu;Su=1;var n=le(),e=re(),r=tn(),t=Ce(),i=qe(),a=an(),s=e("".indexOf);return n({target:"String",proto:!0,forced:!a("includes")},{includes:function(u){return!!~s(i(t(this)),i(r(u)),arguments.length>1?arguments[1]:void 0)}}),Tu}nf();var Eu={},Aa,Ru;function sf(){if(Ru)return Aa;Ru=1;var n=Ze();return Aa=Array.isArray||function(r){return n(r)==="Array"},Aa}var Cu;function of(){if(Cu)return Eu;Cu=1;var n=le(),e=re(),r=sf(),t=e([].reverse),i=[1,2];return n({target:"Array",proto:!0,forced:String(i)===String(i.reverse())},{reverse:function(){return r(this)&&(this.length=this.length),t(this)}}),Eu}of();/*! *****************************************************************************
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{_ as e,l as o,I as i,e as n,K as p}from"./vendor-mermaid-
|
|
1
|
+
import{_ as e,l as o,I as i,e as n,K as p}from"./vendor-mermaid-BIhXK1bF.js";import{p as g}from"./treemap-GDKQZRPO-DUA2WI2l.js";import"./vendor-markdown-CxEpKeyh.js";import"./vendor-i18n-BNURlJ23.js";import"./vendor-antd-BSy6VeYJ.js";import"./vendor-charts-DLRDG2Rl.js";import"./_baseUniq-DQHUo2wZ.js";import"./_basePickBy-CSQjZOEH.js";import"./clone-LotimydJ.js";var m={parse:e(async r=>{const a=await g("info",r);o.debug(a)},"parse")},v={version:p.version+""},d=e(()=>v.version,"getVersion"),c={getVersion:d},l=e((r,a,s)=>{o.debug(`rendering info diagram
|
|
2
2
|
`+r);const t=i(a);n(t,100,400,!0),t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${s}`)},"draw"),f={draw:l},F={parser:m,db:c,renderer:f};export{F as diagram};
|
package/dist/assets/{journeyDiagram-XKPGCS4Q-C_iPmuQZ.js → journeyDiagram-XKPGCS4Q-CNU_B7N1.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as gt,g as lt,f as mt,d as xt}from"./chunk-TZMSLE5B-
|
|
1
|
+
import{a as gt,g as lt,f as mt,d as xt}from"./chunk-TZMSLE5B-Dj7AmZTG.js";import{g as kt}from"./chunk-FMBD7UC4-xvk636Pj.js";import{g as _t,s as vt,a as bt,b as wt,q as Tt,p as St,_ as n,c as R,d as G,e as $t,y as Mt}from"./vendor-mermaid-BIhXK1bF.js";import{B as et}from"./vendor-charts-DLRDG2Rl.js";import"./vendor-markdown-CxEpKeyh.js";import"./vendor-i18n-BNURlJ23.js";import"./vendor-antd-BSy6VeYJ.js";var U=function(){var t=n(function(h,i,a,l){for(a=a||{},l=h.length;l--;a[h[l]]=i);return a},"o"),e=[6,8,10,11,12,14,16,17,18],s=[1,9],c=[1,10],r=[1,11],f=[1,12],u=[1,13],d=[1,14],g={trace:n(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:n(function(i,a,l,y,p,o,b){var k=o.length-1;switch(p){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 13:y.addTask(o[k-1],o[k]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:s,12:c,14:r,16:f,17:u,18:d},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:s,12:c,14:r,16:f,17:u,18:d},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:n(function(i,a){if(a.recoverable)this.trace(i);else{var l=new Error(i);throw l.hash=a,l}},"parseError"),parse:n(function(i){var a=this,l=[0],y=[],p=[null],o=[],b=this.table,k="",C=0,K=0,yt=2,Q=1,dt=o.slice.call(arguments,1),_=Object.create(this.lexer),I={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(I.yy[O]=this.yy[O]);_.setInput(i,I.yy),I.yy.lexer=_,I.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Y=_.yylloc;o.push(Y);var ft=_.options&&_.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(w){l.length=l.length-2*w,p.length=p.length-w,o.length=o.length-w}n(pt,"popStack");function D(){var w;return w=y.pop()||_.lex()||Q,typeof w!="number"&&(w instanceof Array&&(y=w,w=y.pop()),w=a.symbols_[w]||w),w}n(D,"lex");for(var v,A,T,q,F={},N,M,tt,z;;){if(A=l[l.length-1],this.defaultActions[A]?T=this.defaultActions[A]:((v===null||typeof v>"u")&&(v=D()),T=b[A]&&b[A][v]),typeof T>"u"||!T.length||!T[0]){var X="";z=[];for(N in b[A])this.terminals_[N]&&N>yt&&z.push("'"+this.terminals_[N]+"'");_.showPosition?X="Parse error on line "+(C+1)+`:
|
|
2
2
|
`+_.showPosition()+`
|
|
3
3
|
Expecting `+z.join(", ")+", got '"+(this.terminals_[v]||v)+"'":X="Parse error on line "+(C+1)+": Unexpected "+(v==Q?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(X,{text:_.match,token:this.terminals_[v]||v,line:_.yylineno,loc:Y,expected:z})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+v);switch(T[0]){case 1:l.push(v),p.push(_.yytext),o.push(_.yylloc),l.push(T[1]),v=null,K=_.yyleng,k=_.yytext,C=_.yylineno,Y=_.yylloc;break;case 2:if(M=this.productions_[T[1]][1],F.$=p[p.length-M],F._$={first_line:o[o.length-(M||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(M||1)].first_column,last_column:o[o.length-1].last_column},ft&&(F._$.range=[o[o.length-(M||1)].range[0],o[o.length-1].range[1]]),q=this.performAction.apply(F,[k,K,C,I.yy,T[1],p,o].concat(dt)),typeof q<"u")return q;M&&(l=l.slice(0,-1*M*2),p=p.slice(0,-1*M),o=o.slice(0,-1*M)),l.push(this.productions_[T[1]][0]),p.push(F.$),o.push(F._$),tt=b[l[l.length-2]][l[l.length-1]],l.push(tt);break;case 3:return!0}}return!0},"parse")},m=function(){var h={EOF:1,parseError:n(function(a,l){if(this.yy.parser)this.yy.parser.parseError(a,l);else throw new Error(a)},"parseError"),setInput:n(function(i,a){return this.yy=a||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:n(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var a=i.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:n(function(i){var a=i.length,l=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===y.length?this.yylloc.first_column:0)+y[y.length-l.length].length-l[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:n(function(){return this._more=!0,this},"more"),reject:n(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:n(function(i){this.unput(this.match.slice(i))},"less"),pastInput:n(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n(function(){var i=this.pastInput(),a=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as c,l as te,c as W,I as fe,a1 as ye,a2 as be,a3 as me,V as _e,F as K,i as G,t as Ee,J as ke,W as Se,X as le,Y as ce}from"./vendor-mermaid-
|
|
1
|
+
import{_ as c,l as te,c as W,I as fe,a1 as ye,a2 as be,a3 as me,V as _e,F as K,i as G,t as Ee,J as ke,W as Se,X as le,Y as ce}from"./vendor-mermaid-BIhXK1bF.js";import{g as Ne}from"./chunk-FMBD7UC4-xvk636Pj.js";import"./vendor-markdown-CxEpKeyh.js";import"./vendor-i18n-BNURlJ23.js";import"./vendor-antd-BSy6VeYJ.js";import"./vendor-charts-DLRDG2Rl.js";var $=function(){var t=c(function(_,s,n,a){for(n=n||{},a=_.length;a--;n[_[a]]=s);return n},"o"),g=[1,4],d=[1,13],r=[1,12],p=[1,15],E=[1,16],f=[1,20],h=[1,19],L=[6,7,8],C=[1,26],w=[1,24],N=[1,25],i=[6,7,11],M=[1,31],x=[6,7,11,24],P=[1,6,13,16,17,20,23],U=[1,35],j=[1,36],A=[1,6,7,11,13,16,17,20,23],H=[1,38],V={trace:c(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:c(function(s,n,a,o,u,e,B){var l=e.length-1;switch(u){case 6:case 7:return o;case 8:o.getLogger().trace("Stop NL ");break;case 9:o.getLogger().trace("Stop EOF ");break;case 11:o.getLogger().trace("Stop NL2 ");break;case 12:o.getLogger().trace("Stop EOF2 ");break;case 15:o.getLogger().info("Node: ",e[l-1].id),o.addNode(e[l-2].length,e[l-1].id,e[l-1].descr,e[l-1].type,e[l]);break;case 16:o.getLogger().info("Node: ",e[l].id),o.addNode(e[l-1].length,e[l].id,e[l].descr,e[l].type);break;case 17:o.getLogger().trace("Icon: ",e[l]),o.decorateNode({icon:e[l]});break;case 18:case 23:o.decorateNode({class:e[l]});break;case 19:o.getLogger().trace("SPACELIST");break;case 20:o.getLogger().trace("Node: ",e[l-1].id),o.addNode(0,e[l-1].id,e[l-1].descr,e[l-1].type,e[l]);break;case 21:o.getLogger().trace("Node: ",e[l].id),o.addNode(0,e[l].id,e[l].descr,e[l].type);break;case 22:o.decorateNode({icon:e[l]});break;case 27:o.getLogger().trace("node found ..",e[l-2]),this.$={id:e[l-1],descr:e[l-1],type:o.getType(e[l-2],e[l])};break;case 28:this.$={id:e[l],descr:e[l],type:0};break;case 29:o.getLogger().trace("node found ..",e[l-3]),this.$={id:e[l-3],descr:e[l-1],type:o.getType(e[l-2],e[l])};break;case 30:this.$=e[l-1]+e[l];break;case 31:this.$=e[l];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:g},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:g},{6:d,7:[1,10],9:9,12:11,13:r,14:14,16:p,17:E,18:17,19:18,20:f,23:h},t(L,[2,3]),{1:[2,2]},t(L,[2,4]),t(L,[2,5]),{1:[2,6],6:d,12:21,13:r,14:14,16:p,17:E,18:17,19:18,20:f,23:h},{6:d,9:22,12:11,13:r,14:14,16:p,17:E,18:17,19:18,20:f,23:h},{6:C,7:w,10:23,11:N},t(i,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:f,23:h}),t(i,[2,19]),t(i,[2,21],{15:30,24:M}),t(i,[2,22]),t(i,[2,23]),t(x,[2,25]),t(x,[2,26]),t(x,[2,28],{20:[1,32]}),{21:[1,33]},{6:C,7:w,10:34,11:N},{1:[2,7],6:d,12:21,13:r,14:14,16:p,17:E,18:17,19:18,20:f,23:h},t(P,[2,14],{7:U,11:j}),t(A,[2,8]),t(A,[2,9]),t(A,[2,10]),t(i,[2,16],{15:37,24:M}),t(i,[2,17]),t(i,[2,18]),t(i,[2,20],{24:H}),t(x,[2,31]),{21:[1,39]},{22:[1,40]},t(P,[2,13],{7:U,11:j}),t(A,[2,11]),t(A,[2,12]),t(i,[2,15],{24:H}),t(x,[2,30]),{22:[1,41]},t(x,[2,27]),t(x,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:c(function(s,n){if(n.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=n,a}},"parseError"),parse:c(function(s){var n=this,a=[0],o=[],u=[null],e=[],B=this.table,l="",z=0,ie=0,ue=2,re=1,ge=e.slice.call(arguments,1),b=Object.create(this.lexer),T={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(T.yy[J]=this.yy[J]);b.setInput(s,T.yy),T.yy.lexer=b,T.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var q=b.yylloc;e.push(q);var de=b.options&&b.options.ranges;typeof T.yy.parseError=="function"?this.parseError=T.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){a.length=a.length-2*S,u.length=u.length-S,e.length=e.length-S}c(pe,"popStack");function ae(){var S;return S=o.pop()||b.lex()||re,typeof S!="number"&&(S instanceof Array&&(o=S,S=o.pop()),S=n.symbols_[S]||S),S}c(ae,"lex");for(var k,R,v,Q,F={},X,I,oe,Y;;){if(R=a[a.length-1],this.defaultActions[R]?v=this.defaultActions[R]:((k===null||typeof k>"u")&&(k=ae()),v=B[R]&&B[R][k]),typeof v>"u"||!v.length||!v[0]){var Z="";Y=[];for(X in B[R])this.terminals_[X]&&X>ue&&Y.push("'"+this.terminals_[X]+"'");b.showPosition?Z="Parse error on line "+(z+1)+`:
|
|
2
2
|
`+b.showPosition()+`
|
|
3
3
|
Expecting `+Y.join(", ")+", got '"+(this.terminals_[k]||k)+"'":Z="Parse error on line "+(z+1)+": Unexpected "+(k==re?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(Z,{text:b.match,token:this.terminals_[k]||k,line:b.yylineno,loc:q,expected:Y})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+k);switch(v[0]){case 1:a.push(k),u.push(b.yytext),e.push(b.yylloc),a.push(v[1]),k=null,ie=b.yyleng,l=b.yytext,z=b.yylineno,q=b.yylloc;break;case 2:if(I=this.productions_[v[1]][1],F.$=u[u.length-I],F._$={first_line:e[e.length-(I||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(I||1)].first_column,last_column:e[e.length-1].last_column},de&&(F._$.range=[e[e.length-(I||1)].range[0],e[e.length-1].range[1]]),Q=this.performAction.apply(F,[l,ie,z,T.yy,v[1],u,e].concat(ge)),typeof Q<"u")return Q;I&&(a=a.slice(0,-1*I*2),u=u.slice(0,-1*I),e=e.slice(0,-1*I)),a.push(this.productions_[v[1]][0]),u.push(F.$),e.push(F._$),oe=B[a[a.length-2]][a[a.length-1]],a.push(oe);break;case 3:return!0}}return!0},"parse")},m=function(){var _={EOF:1,parseError:c(function(n,a){if(this.yy.parser)this.yy.parser.parseError(n,a);else throw new Error(n)},"parseError"),setInput:c(function(s,n){return this.yy=n||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:c(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var n=s.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:c(function(s){var n=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===o.length?this.yylloc.first_column:0)+o[o.length-a.length].length-a[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:c(function(){return this._more=!0,this},"more"),reject:c(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:c(function(s){this.unput(this.match.slice(s))},"less"),pastInput:c(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:c(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:c(function(){var s=this.pastInput(),n=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{G as g}from"./graph-D0JBNw5a.js";import{b as Te,p as ce,q as le,g as z,e as ee,l as F,o as Ie,s as Me,c as Se,u as je,d as f,i as m,f as _,v as x,r as M}from"./_baseUniq-yd3d-av8.js";import{f as O,b as he,a as Fe,c as Ve,d as Ae,t as V,m as w,e as P,h as ve,g as X,l as T,i as Be}from"./_basePickBy-BspK35sI.js";import{aI as Ge,aJ as Ye,aK as De,aB as qe,aL as $e,aF as pe,aE as we,aM as We,aA as q,ao as ze,aH as Xe,aq as Ue,aN as $}from"./vendor-mermaid-CuzF-D1I.js";function He(e){return Ge(Ye(e,void 0,O),e+"")}var Je=1,Ke=4;function Ze(e){return Te(e,Je|Ke)}function Qe(e,n){return e==null?e:De(e,ce(n),qe)}function en(e,n){return e&&le(e,ce(n))}function nn(e,n){return e>n}function S(e,n){var r={};return n=z(n),le(e,function(t,a,i){$e(r,a,n(t,a,i))}),r}function y(e){return e&&e.length?he(e,pe,nn):void 0}function U(e,n){return e&&e.length?he(e,z(n),Fe):void 0}function rn(e,n){var r=e.length;for(e.sort(n);r--;)e[r]=e[r].value;return e}function tn(e,n){if(e!==n){var r=e!==void 0,t=e===null,a=e===e,i=ee(e),o=n!==void 0,u=n===null,d=n===n,s=ee(n);if(!u&&!s&&!i&&e>n||i&&o&&d&&!u&&!s||t&&o&&d||!r&&d||!a)return 1;if(!t&&!i&&!s&&e<n||s&&r&&a&&!t&&!i||u&&r&&a||!o&&a||!d)return-1}return 0}function an(e,n,r){for(var t=-1,a=e.criteria,i=n.criteria,o=a.length,u=r.length;++t<o;){var d=tn(a[t],i[t]);if(d){if(t>=u)return d;var s=r[t];return d*(s=="desc"?-1:1)}}return e.index-n.index}function on(e,n,r){n.length?n=F(n,function(i){return we(i)?function(o){return Ie(o,i.length===1?i[0]:i)}:i}):n=[pe];var t=-1;n=F(n,We(z));var a=Ve(e,function(i,o,u){var d=F(n,function(s){return s(i)});return{criteria:d,index:++t,value:i}});return rn(a,function(i,o){return an(i,o,r)})}function un(e,n){return Ae(e,n,function(r,t){return Me(e,t)})}var I=He(function(e,n){return e==null?{}:un(e,n)}),dn=Math.ceil,sn=Math.max;function fn(e,n,r,t){for(var a=-1,i=sn(dn((n-e)/(r||1)),0),o=Array(i);i--;)o[++a]=e,e+=r;return o}function cn(e){return function(n,r,t){return t&&typeof t!="number"&&q(n,r,t)&&(r=t=void 0),n=V(n),r===void 0?(r=n,n=0):r=V(r),t=t===void 0?n<r?1:-1:V(t),fn(n,r,t)}}var E=cn(),R=ze(function(e,n){if(e==null)return[];var r=n.length;return r>1&&q(e,n[0],n[1])?n=[]:r>2&&q(n[0],n[1],n[2])&&(n=[n[0]]),on(e,Se(n),[])}),ln=0;function H(e){var n=++ln;return je(e)+n}function hn(e,n,r){for(var t=-1,a=e.length,i=n.length,o={};++t<a;){var u=t<i?n[t]:void 0;r(o,e[t],u)}return o}function vn(e,n){return hn(e||[],n||[],Xe)}class pn{constructor(){var n={};n._next=n._prev=n,this._sentinel=n}dequeue(){var n=this._sentinel,r=n._prev;if(r!==n)return ne(r),r}enqueue(n){var r=this._sentinel;n._prev&&n._next&&ne(n),n._next=r._next,r._next._prev=n,r._next=n,n._prev=r}toString(){for(var n=[],r=this._sentinel,t=r._prev;t!==r;)n.push(JSON.stringify(t,wn)),t=t._prev;return"["+n.join(", ")+"]"}}function ne(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function wn(e,n){if(e!=="_next"&&e!=="_prev")return n}var bn=Ue(1);function mn(e,n){if(e.nodeCount()<=1)return[];var r=yn(e,n||bn),t=gn(r.graph,r.buckets,r.zeroIdx);return O(w(t,function(a){return e.outEdges(a.v,a.w)}))}function gn(e,n,r){for(var t=[],a=n[n.length-1],i=n[0],o;e.nodeCount();){for(;o=i.dequeue();)A(e,n,r,o);for(;o=a.dequeue();)A(e,n,r,o);if(e.nodeCount()){for(var u=n.length-2;u>0;--u)if(o=n[u].dequeue(),o){t=t.concat(A(e,n,r,o,!0));break}}}return t}function A(e,n,r,t,a){var i=a?[]:void 0;return f(e.inEdges(t.v),function(o){var u=e.edge(o),d=e.node(o.v);a&&i.push({v:o.v,w:o.w}),d.out-=u,W(n,r,d)}),f(e.outEdges(t.v),function(o){var u=e.edge(o),d=o.w,s=e.node(d);s.in-=u,W(n,r,s)}),e.removeNode(t.v),i}function yn(e,n){var r=new g,t=0,a=0;f(e.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),f(e.edges(),function(u){var d=r.edge(u.v,u.w)||0,s=n(u),c=d+s;r.setEdge(u.v,u.w,c),a=Math.max(a,r.node(u.v).out+=s),t=Math.max(t,r.node(u.w).in+=s)});var i=E(a+t+3).map(function(){return new pn}),o=t+1;return f(r.nodes(),function(u){W(i,o,r.node(u))}),{graph:r,buckets:i,zeroIdx:o}}function W(e,n,r){r.out?r.in?e[r.out-r.in+n].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}function kn(e){var n=e.graph().acyclicer==="greedy"?mn(e,r(e)):xn(e);f(n,function(t){var a=e.edge(t);e.removeEdge(t),a.forwardName=t.name,a.reversed=!0,e.setEdge(t.w,t.v,a,H("rev"))});function r(t){return function(a){return t.edge(a).weight}}}function xn(e){var n=[],r={},t={};function a(i){Object.prototype.hasOwnProperty.call(t,i)||(t[i]=!0,r[i]=!0,f(e.outEdges(i),function(o){Object.prototype.hasOwnProperty.call(r,o.w)?n.push(o):a(o.w)}),delete r[i])}return f(e.nodes(),a),n}function En(e){f(e.edges(),function(n){var r=e.edge(n);if(r.reversed){e.removeEdge(n);var t=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(n.w,n.v,r,t)}})}function L(e,n,r,t){var a;do a=H(t);while(e.hasNode(a));return r.dummy=n,e.setNode(a,r),a}function On(e){var n=new g().setGraph(e.graph());return f(e.nodes(),function(r){n.setNode(r,e.node(r))}),f(e.edges(),function(r){var t=n.edge(r.v,r.w)||{weight:0,minlen:1},a=e.edge(r);n.setEdge(r.v,r.w,{weight:t.weight+a.weight,minlen:Math.max(t.minlen,a.minlen)})}),n}function be(e){var n=new g({multigraph:e.isMultigraph()}).setGraph(e.graph());return f(e.nodes(),function(r){e.children(r).length||n.setNode(r,e.node(r))}),f(e.edges(),function(r){n.setEdge(r,e.edge(r))}),n}function re(e,n){var r=e.x,t=e.y,a=n.x-r,i=n.y-t,o=e.width/2,u=e.height/2;if(!a&&!i)throw new Error("Not possible to find intersection inside of the rectangle");var d,s;return Math.abs(i)*o>Math.abs(a)*u?(i<0&&(u=-u),d=u*a/i,s=u):(a<0&&(o=-o),d=o,s=o*i/a),{x:r+d,y:t+s}}function j(e){var n=w(E(me(e)+1),function(){return[]});return f(e.nodes(),function(r){var t=e.node(r),a=t.rank;m(a)||(n[a][t.order]=r)}),n}function Ln(e){var n=P(w(e.nodes(),function(r){return e.node(r).rank}));f(e.nodes(),function(r){var t=e.node(r);ve(t,"rank")&&(t.rank-=n)})}function Nn(e){var n=P(w(e.nodes(),function(i){return e.node(i).rank})),r=[];f(e.nodes(),function(i){var o=e.node(i).rank-n;r[o]||(r[o]=[]),r[o].push(i)});var t=0,a=e.graph().nodeRankFactor;f(r,function(i,o){m(i)&&o%a!==0?--t:t&&f(i,function(u){e.node(u).rank+=t})})}function te(e,n,r,t){var a={width:0,height:0};return arguments.length>=4&&(a.rank=r,a.order=t),L(e,"border",a,n)}function me(e){return y(w(e.nodes(),function(n){var r=e.node(n).rank;if(!m(r))return r}))}function Pn(e,n){var r={lhs:[],rhs:[]};return f(e,function(t){n(t)?r.lhs.push(t):r.rhs.push(t)}),r}function Cn(e,n){return n()}function _n(e){function n(r){var t=e.children(r),a=e.node(r);if(t.length&&f(t,n),Object.prototype.hasOwnProperty.call(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var i=a.minRank,o=a.maxRank+1;i<o;++i)ae(e,"borderLeft","_bl",r,a,i),ae(e,"borderRight","_br",r,a,i)}}f(e.children(),n)}function ae(e,n,r,t,a,i){var o={width:0,height:0,rank:i,borderType:n},u=a[n][i-1],d=L(e,"border",o,r);a[n][i]=d,e.setParent(d,t),u&&e.setEdge(u,d,{weight:1})}function Rn(e){var n=e.graph().rankdir.toLowerCase();(n==="lr"||n==="rl")&&ge(e)}function Tn(e){var n=e.graph().rankdir.toLowerCase();(n==="bt"||n==="rl")&&In(e),(n==="lr"||n==="rl")&&(Mn(e),ge(e))}function ge(e){f(e.nodes(),function(n){ie(e.node(n))}),f(e.edges(),function(n){ie(e.edge(n))})}function ie(e){var n=e.width;e.width=e.height,e.height=n}function In(e){f(e.nodes(),function(n){B(e.node(n))}),f(e.edges(),function(n){var r=e.edge(n);f(r.points,B),Object.prototype.hasOwnProperty.call(r,"y")&&B(r)})}function B(e){e.y=-e.y}function Mn(e){f(e.nodes(),function(n){G(e.node(n))}),f(e.edges(),function(n){var r=e.edge(n);f(r.points,G),Object.prototype.hasOwnProperty.call(r,"x")&&G(r)})}function G(e){var n=e.x;e.x=e.y,e.y=n}function Sn(e){e.graph().dummyChains=[],f(e.edges(),function(n){jn(e,n)})}function jn(e,n){var r=n.v,t=e.node(r).rank,a=n.w,i=e.node(a).rank,o=n.name,u=e.edge(n),d=u.labelRank;if(i!==t+1){e.removeEdge(n);var s=void 0,c,l;for(l=0,++t;t<i;++l,++t)u.points=[],s={width:0,height:0,edgeLabel:u,edgeObj:n,rank:t},c=L(e,"edge",s,"_d"),t===d&&(s.width=u.width,s.height=u.height,s.dummy="edge-label",s.labelpos=u.labelpos),e.setEdge(r,c,{weight:u.weight},o),l===0&&e.graph().dummyChains.push(c),r=c;e.setEdge(r,a,{weight:u.weight},o)}}function Fn(e){f(e.graph().dummyChains,function(n){var r=e.node(n),t=r.edgeLabel,a;for(e.setEdge(r.edgeObj,t);r.dummy;)a=e.successors(n)[0],e.removeNode(n),t.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height),n=a,r=e.node(n)})}function J(e){var n={};function r(t){var a=e.node(t);if(Object.prototype.hasOwnProperty.call(n,t))return a.rank;n[t]=!0;var i=P(w(e.outEdges(t),function(o){return r(o.w)-e.edge(o).minlen}));return(i===Number.POSITIVE_INFINITY||i===void 0||i===null)&&(i=0),a.rank=i}f(e.sources(),r)}function C(e,n){return e.node(n.w).rank-e.node(n.v).rank-e.edge(n).minlen}function ye(e){var n=new g({directed:!1}),r=e.nodes()[0],t=e.nodeCount();n.setNode(r,{});for(var a,i;Vn(n,e)<t;)a=An(n,e),i=n.hasNode(a.v)?C(e,a):-C(e,a),Bn(n,e,i);return n}function Vn(e,n){function r(t){f(n.nodeEdges(t),function(a){var i=a.v,o=t===i?a.w:i;!e.hasNode(o)&&!C(n,a)&&(e.setNode(o,{}),e.setEdge(t,o,{}),r(o))})}return f(e.nodes(),r),e.nodeCount()}function An(e,n){return U(n.edges(),function(r){if(e.hasNode(r.v)!==e.hasNode(r.w))return C(n,r)})}function Bn(e,n,r){f(e.nodes(),function(t){n.node(t).rank+=r})}function Gn(){}Gn.prototype=new Error;function ke(e,n,r){we(n)||(n=[n]);var t=(e.isDirected()?e.successors:e.neighbors).bind(e),a=[],i={};return f(n,function(o){if(!e.hasNode(o))throw new Error("Graph does not have node: "+o);xe(e,o,r==="post",i,t,a)}),a}function xe(e,n,r,t,a,i){Object.prototype.hasOwnProperty.call(t,n)||(t[n]=!0,r||i.push(n),f(a(n),function(o){xe(e,o,r,t,a,i)}),r&&i.push(n))}function Yn(e,n){return ke(e,n,"post")}function Dn(e,n){return ke(e,n,"pre")}k.initLowLimValues=Z;k.initCutValues=K;k.calcCutValue=Ee;k.leaveEdge=Le;k.enterEdge=Ne;k.exchangeEdges=Pe;function k(e){e=On(e),J(e);var n=ye(e);Z(n),K(n,e);for(var r,t;r=Le(n);)t=Ne(n,e,r),Pe(n,e,r,t)}function K(e,n){var r=Yn(e,e.nodes());r=r.slice(0,r.length-1),f(r,function(t){qn(e,n,t)})}function qn(e,n,r){var t=e.node(r),a=t.parent;e.edge(r,a).cutvalue=Ee(e,n,r)}function Ee(e,n,r){var t=e.node(r),a=t.parent,i=!0,o=n.edge(r,a),u=0;return o||(i=!1,o=n.edge(a,r)),u=o.weight,f(n.nodeEdges(r),function(d){var s=d.v===r,c=s?d.w:d.v;if(c!==a){var l=s===i,h=n.edge(d).weight;if(u+=l?h:-h,Wn(e,r,c)){var v=e.edge(r,c).cutvalue;u+=l?-v:v}}}),u}function Z(e,n){arguments.length<2&&(n=e.nodes()[0]),Oe(e,{},1,n)}function Oe(e,n,r,t,a){var i=r,o=e.node(t);return n[t]=!0,f(e.neighbors(t),function(u){Object.prototype.hasOwnProperty.call(n,u)||(r=Oe(e,n,r,u,t))}),o.low=i,o.lim=r++,a?o.parent=a:delete o.parent,r}function Le(e){return X(e.edges(),function(n){return e.edge(n).cutvalue<0})}function Ne(e,n,r){var t=r.v,a=r.w;n.hasEdge(t,a)||(t=r.w,a=r.v);var i=e.node(t),o=e.node(a),u=i,d=!1;i.lim>o.lim&&(u=o,d=!0);var s=_(n.edges(),function(c){return d===oe(e,e.node(c.v),u)&&d!==oe(e,e.node(c.w),u)});return U(s,function(c){return C(n,c)})}function Pe(e,n,r,t){var a=r.v,i=r.w;e.removeEdge(a,i),e.setEdge(t.v,t.w,{}),Z(e),K(e,n),$n(e,n)}function $n(e,n){var r=X(e.nodes(),function(a){return!n.node(a).parent}),t=Dn(e,r);t=t.slice(1),f(t,function(a){var i=e.node(a).parent,o=n.edge(a,i),u=!1;o||(o=n.edge(i,a),u=!0),n.node(a).rank=n.node(i).rank+(u?o.minlen:-o.minlen)})}function Wn(e,n,r){return e.hasEdge(n,r)}function oe(e,n,r){return r.low<=n.lim&&n.lim<=r.lim}function zn(e){switch(e.graph().ranker){case"network-simplex":ue(e);break;case"tight-tree":Un(e);break;case"longest-path":Xn(e);break;default:ue(e)}}var Xn=J;function Un(e){J(e),ye(e)}function ue(e){k(e)}function Hn(e){var n=L(e,"root",{},"_root"),r=Jn(e),t=y(x(r))-1,a=2*t+1;e.graph().nestingRoot=n,f(e.edges(),function(o){e.edge(o).minlen*=a});var i=Kn(e)+1;f(e.children(),function(o){Ce(e,n,a,i,t,r,o)}),e.graph().nodeRankFactor=a}function Ce(e,n,r,t,a,i,o){var u=e.children(o);if(!u.length){o!==n&&e.setEdge(n,o,{weight:0,minlen:r});return}var d=te(e,"_bt"),s=te(e,"_bb"),c=e.node(o);e.setParent(d,o),c.borderTop=d,e.setParent(s,o),c.borderBottom=s,f(u,function(l){Ce(e,n,r,t,a,i,l);var h=e.node(l),v=h.borderTop?h.borderTop:l,p=h.borderBottom?h.borderBottom:l,b=h.borderTop?t:2*t,N=v!==p?1:a-i[o]+1;e.setEdge(d,v,{weight:b,minlen:N,nestingEdge:!0}),e.setEdge(p,s,{weight:b,minlen:N,nestingEdge:!0})}),e.parent(o)||e.setEdge(n,d,{weight:0,minlen:a+i[o]})}function Jn(e){var n={};function r(t,a){var i=e.children(t);i&&i.length&&f(i,function(o){r(o,a+1)}),n[t]=a}return f(e.children(),function(t){r(t,1)}),n}function Kn(e){return M(e.edges(),function(n,r){return n+e.edge(r).weight},0)}function Zn(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,f(e.edges(),function(r){var t=e.edge(r);t.nestingEdge&&e.removeEdge(r)})}function Qn(e,n,r){var t={},a;f(r,function(i){for(var o=e.parent(i),u,d;o;){if(u=e.parent(o),u?(d=t[u],t[u]=o):(d=a,a=o),d&&d!==o){n.setEdge(d,o);return}o=u}})}function er(e,n,r){var t=nr(e),a=new g({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(i){return e.node(i)});return f(e.nodes(),function(i){var o=e.node(i),u=e.parent(i);(o.rank===n||o.minRank<=n&&n<=o.maxRank)&&(a.setNode(i),a.setParent(i,u||t),f(e[r](i),function(d){var s=d.v===i?d.w:d.v,c=a.edge(s,i),l=m(c)?0:c.weight;a.setEdge(s,i,{weight:e.edge(d).weight+l})}),Object.prototype.hasOwnProperty.call(o,"minRank")&&a.setNode(i,{borderLeft:o.borderLeft[n],borderRight:o.borderRight[n]}))}),a}function nr(e){for(var n;e.hasNode(n=H("_root")););return n}function rr(e,n){for(var r=0,t=1;t<n.length;++t)r+=tr(e,n[t-1],n[t]);return r}function tr(e,n,r){for(var t=vn(r,w(r,function(s,c){return c})),a=O(w(n,function(s){return R(w(e.outEdges(s),function(c){return{pos:t[c.w],weight:e.edge(c).weight}}),"pos")})),i=1;i<r.length;)i<<=1;var o=2*i-1;i-=1;var u=w(new Array(o),function(){return 0}),d=0;return f(a.forEach(function(s){var c=s.pos+i;u[c]+=s.weight;for(var l=0;c>0;)c%2&&(l+=u[c+1]),c=c-1>>1,u[c]+=s.weight;d+=s.weight*l})),d}function ar(e){var n={},r=_(e.nodes(),function(u){return!e.children(u).length}),t=y(w(r,function(u){return e.node(u).rank})),a=w(E(t+1),function(){return[]});function i(u){if(!ve(n,u)){n[u]=!0;var d=e.node(u);a[d.rank].push(u),f(e.successors(u),i)}}var o=R(r,function(u){return e.node(u).rank});return f(o,i),a}function ir(e,n){return w(n,function(r){var t=e.inEdges(r);if(t.length){var a=M(t,function(i,o){var u=e.edge(o),d=e.node(o.v);return{sum:i.sum+u.weight*d.order,weight:i.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:a.sum/a.weight,weight:a.weight}}else return{v:r}})}function or(e,n){var r={};f(e,function(a,i){var o=r[a.v]={indegree:0,in:[],out:[],vs:[a.v],i};m(a.barycenter)||(o.barycenter=a.barycenter,o.weight=a.weight)}),f(n.edges(),function(a){var i=r[a.v],o=r[a.w];!m(i)&&!m(o)&&(o.indegree++,i.out.push(r[a.w]))});var t=_(r,function(a){return!a.indegree});return ur(t)}function ur(e){var n=[];function r(i){return function(o){o.merged||(m(o.barycenter)||m(i.barycenter)||o.barycenter>=i.barycenter)&&dr(i,o)}}function t(i){return function(o){o.in.push(i),--o.indegree===0&&e.push(o)}}for(;e.length;){var a=e.pop();n.push(a),f(a.in.reverse(),r(a)),f(a.out,t(a))}return w(_(n,function(i){return!i.merged}),function(i){return I(i,["vs","i","barycenter","weight"])})}function dr(e,n){var r=0,t=0;e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=r/t,e.weight=t,e.i=Math.min(n.i,e.i),n.merged=!0}function sr(e,n){var r=Pn(e,function(c){return Object.prototype.hasOwnProperty.call(c,"barycenter")}),t=r.lhs,a=R(r.rhs,function(c){return-c.i}),i=[],o=0,u=0,d=0;t.sort(fr(!!n)),d=de(i,a,d),f(t,function(c){d+=c.vs.length,i.push(c.vs),o+=c.barycenter*c.weight,u+=c.weight,d=de(i,a,d)});var s={vs:O(i)};return u&&(s.barycenter=o/u,s.weight=u),s}function de(e,n,r){for(var t;n.length&&(t=T(n)).i<=r;)n.pop(),e.push(t.vs),r++;return r}function fr(e){return function(n,r){return n.barycenter<r.barycenter?-1:n.barycenter>r.barycenter?1:e?r.i-n.i:n.i-r.i}}function _e(e,n,r,t){var a=e.children(n),i=e.node(n),o=i?i.borderLeft:void 0,u=i?i.borderRight:void 0,d={};o&&(a=_(a,function(p){return p!==o&&p!==u}));var s=ir(e,a);f(s,function(p){if(e.children(p.v).length){var b=_e(e,p.v,r,t);d[p.v]=b,Object.prototype.hasOwnProperty.call(b,"barycenter")&&lr(p,b)}});var c=or(s,r);cr(c,d);var l=sr(c,t);if(o&&(l.vs=O([o,l.vs,u]),e.predecessors(o).length)){var h=e.node(e.predecessors(o)[0]),v=e.node(e.predecessors(u)[0]);Object.prototype.hasOwnProperty.call(l,"barycenter")||(l.barycenter=0,l.weight=0),l.barycenter=(l.barycenter*l.weight+h.order+v.order)/(l.weight+2),l.weight+=2}return l}function cr(e,n){f(e,function(r){r.vs=O(r.vs.map(function(t){return n[t]?n[t].vs:t}))})}function lr(e,n){m(e.barycenter)?(e.barycenter=n.barycenter,e.weight=n.weight):(e.barycenter=(e.barycenter*e.weight+n.barycenter*n.weight)/(e.weight+n.weight),e.weight+=n.weight)}function hr(e){var n=me(e),r=se(e,E(1,n+1),"inEdges"),t=se(e,E(n-1,-1,-1),"outEdges"),a=ar(e);fe(e,a);for(var i=Number.POSITIVE_INFINITY,o,u=0,d=0;d<4;++u,++d){vr(u%2?r:t,u%4>=2),a=j(e);var s=rr(e,a);s<i&&(d=0,o=Ze(a),i=s)}fe(e,o)}function se(e,n,r){return w(n,function(t){return er(e,t,r)})}function vr(e,n){var r=new g;f(e,function(t){var a=t.graph().root,i=_e(t,a,r,n);f(i.vs,function(o,u){t.node(o).order=u}),Qn(t,r,i.vs)})}function fe(e,n){f(n,function(r){f(r,function(t,a){e.node(t).order=a})})}function pr(e){var n=br(e);f(e.graph().dummyChains,function(r){for(var t=e.node(r),a=t.edgeObj,i=wr(e,n,a.v,a.w),o=i.path,u=i.lca,d=0,s=o[d],c=!0;r!==a.w;){if(t=e.node(r),c){for(;(s=o[d])!==u&&e.node(s).maxRank<t.rank;)d++;s===u&&(c=!1)}if(!c){for(;d<o.length-1&&e.node(s=o[d+1]).minRank<=t.rank;)d++;s=o[d]}e.setParent(r,s),r=e.successors(r)[0]}})}function wr(e,n,r,t){var a=[],i=[],o=Math.min(n[r].low,n[t].low),u=Math.max(n[r].lim,n[t].lim),d,s;d=r;do d=e.parent(d),a.push(d);while(d&&(n[d].low>o||u>n[d].lim));for(s=d,d=t;(d=e.parent(d))!==s;)i.push(d);return{path:a.concat(i.reverse()),lca:s}}function br(e){var n={},r=0;function t(a){var i=r;f(e.children(a),t),n[a]={low:i,lim:r++}}return f(e.children(),t),n}function mr(e,n){var r={};function t(a,i){var o=0,u=0,d=a.length,s=T(i);return f(i,function(c,l){var h=yr(e,c),v=h?e.node(h).order:d;(h||c===s)&&(f(i.slice(u,l+1),function(p){f(e.predecessors(p),function(b){var N=e.node(b),Q=N.order;(Q<o||v<Q)&&!(N.dummy&&e.node(p).dummy)&&Re(r,b,p)})}),u=l+1,o=v)}),i}return M(n,t),r}function gr(e,n){var r={};function t(i,o,u,d,s){var c;f(E(o,u),function(l){c=i[l],e.node(c).dummy&&f(e.predecessors(c),function(h){var v=e.node(h);v.dummy&&(v.order<d||v.order>s)&&Re(r,h,c)})})}function a(i,o){var u=-1,d,s=0;return f(o,function(c,l){if(e.node(c).dummy==="border"){var h=e.predecessors(c);h.length&&(d=e.node(h[0]).order,t(o,s,l,u,d),s=l,u=d)}t(o,s,o.length,d,i.length)}),o}return M(n,a),r}function yr(e,n){if(e.node(n).dummy)return X(e.predecessors(n),function(r){return e.node(r).dummy})}function Re(e,n,r){if(n>r){var t=n;n=r,r=t}Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,configurable:!0,value:{},writable:!0});var a=e[n];Object.defineProperty(a,r,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function kr(e,n,r){if(n>r){var t=n;n=r,r=t}return!!e[n]&&Object.prototype.hasOwnProperty.call(e[n],r)}function xr(e,n,r,t){var a={},i={},o={};return f(n,function(u){f(u,function(d,s){a[d]=d,i[d]=d,o[d]=s})}),f(n,function(u){var d=-1;f(u,function(s){var c=t(s);if(c.length){c=R(c,function(b){return o[b]});for(var l=(c.length-1)/2,h=Math.floor(l),v=Math.ceil(l);h<=v;++h){var p=c[h];i[s]===s&&d<o[p]&&!kr(r,s,p)&&(i[p]=s,i[s]=a[s]=a[p],d=o[p])}}})}),{root:a,align:i}}function Er(e,n,r,t,a){var i={},o=Or(e,n,r,a),u=a?"borderLeft":"borderRight";function d(l,h){for(var v=o.nodes(),p=v.pop(),b={};p;)b[p]?l(p):(b[p]=!0,v.push(p),v=v.concat(h(p))),p=v.pop()}function s(l){i[l]=o.inEdges(l).reduce(function(h,v){return Math.max(h,i[v.v]+o.edge(v))},0)}function c(l){var h=o.outEdges(l).reduce(function(p,b){return Math.min(p,i[b.w]-o.edge(b))},Number.POSITIVE_INFINITY),v=e.node(l);h!==Number.POSITIVE_INFINITY&&v.borderType!==u&&(i[l]=Math.max(i[l],h))}return d(s,o.predecessors.bind(o)),d(c,o.successors.bind(o)),f(t,function(l){i[l]=i[r[l]]}),i}function Or(e,n,r,t){var a=new g,i=e.graph(),o=_r(i.nodesep,i.edgesep,t);return f(n,function(u){var d;f(u,function(s){var c=r[s];if(a.setNode(c),d){var l=r[d],h=a.edge(l,c);a.setEdge(l,c,Math.max(o(e,s,d),h||0))}d=s})}),a}function Lr(e,n){return U(x(n),function(r){var t=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY;return Qe(r,function(i,o){var u=Rr(e,o)/2;t=Math.max(i+u,t),a=Math.min(i-u,a)}),t-a})}function Nr(e,n){var r=x(n),t=P(r),a=y(r);f(["u","d"],function(i){f(["l","r"],function(o){var u=i+o,d=e[u],s;if(d!==n){var c=x(d);s=o==="l"?t-P(c):a-y(c),s&&(e[u]=S(d,function(l){return l+s}))}})})}function Pr(e,n){return S(e.ul,function(r,t){if(n)return e[n.toLowerCase()][t];var a=R(w(e,t));return(a[1]+a[2])/2})}function Cr(e){var n=j(e),r=$(mr(e,n),gr(e,n)),t={},a;f(["u","d"],function(o){a=o==="u"?n:x(n).reverse(),f(["l","r"],function(u){u==="r"&&(a=w(a,function(l){return x(l).reverse()}));var d=(o==="u"?e.predecessors:e.successors).bind(e),s=xr(e,a,r,d),c=Er(e,a,s.root,s.align,u==="r");u==="r"&&(c=S(c,function(l){return-l})),t[o+u]=c})});var i=Lr(e,t);return Nr(t,i),Pr(t,e.graph().align)}function _r(e,n,r){return function(t,a,i){var o=t.node(a),u=t.node(i),d=0,s;if(d+=o.width/2,Object.prototype.hasOwnProperty.call(o,"labelpos"))switch(o.labelpos.toLowerCase()){case"l":s=-o.width/2;break;case"r":s=o.width/2;break}if(s&&(d+=r?s:-s),s=0,d+=(o.dummy?n:e)/2,d+=(u.dummy?n:e)/2,d+=u.width/2,Object.prototype.hasOwnProperty.call(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":s=u.width/2;break;case"r":s=-u.width/2;break}return s&&(d+=r?s:-s),s=0,d}}function Rr(e,n){return e.node(n).width}function Tr(e){e=be(e),Ir(e),en(Cr(e),function(n,r){e.node(r).x=n})}function Ir(e){var n=j(e),r=e.graph().ranksep,t=0;f(n,function(a){var i=y(w(a,function(o){return e.node(o).height}));f(a,function(o){e.node(o).y=t+i/2}),t+=i+r})}function ot(e,n){var r=Cn;r("layout",()=>{var t=r(" buildLayoutGraph",()=>qr(e));r(" runLayout",()=>Mr(t,r)),r(" updateInputGraph",()=>Sr(e,t))})}function Mr(e,n){n(" makeSpaceForEdgeLabels",()=>$r(e)),n(" removeSelfEdges",()=>Qr(e)),n(" acyclic",()=>kn(e)),n(" nestingGraph.run",()=>Hn(e)),n(" rank",()=>zn(be(e))),n(" injectEdgeLabelProxies",()=>Wr(e)),n(" removeEmptyRanks",()=>Nn(e)),n(" nestingGraph.cleanup",()=>Zn(e)),n(" normalizeRanks",()=>Ln(e)),n(" assignRankMinMax",()=>zr(e)),n(" removeEdgeLabelProxies",()=>Xr(e)),n(" normalize.run",()=>Sn(e)),n(" parentDummyChains",()=>pr(e)),n(" addBorderSegments",()=>_n(e)),n(" order",()=>hr(e)),n(" insertSelfEdges",()=>et(e)),n(" adjustCoordinateSystem",()=>Rn(e)),n(" position",()=>Tr(e)),n(" positionSelfEdges",()=>nt(e)),n(" removeBorderNodes",()=>Zr(e)),n(" normalize.undo",()=>Fn(e)),n(" fixupEdgeLabelCoords",()=>Jr(e)),n(" undoCoordinateSystem",()=>Tn(e)),n(" translateGraph",()=>Ur(e)),n(" assignNodeIntersects",()=>Hr(e)),n(" reversePoints",()=>Kr(e)),n(" acyclic.undo",()=>En(e))}function Sr(e,n){f(e.nodes(),function(r){var t=e.node(r),a=n.node(r);t&&(t.x=a.x,t.y=a.y,n.children(r).length&&(t.width=a.width,t.height=a.height))}),f(e.edges(),function(r){var t=e.edge(r),a=n.edge(r);t.points=a.points,Object.prototype.hasOwnProperty.call(a,"x")&&(t.x=a.x,t.y=a.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height}var jr=["nodesep","edgesep","ranksep","marginx","marginy"],Fr={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Vr=["acyclicer","ranker","rankdir","align"],Ar=["width","height"],Br={width:0,height:0},Gr=["minlen","weight","width","height","labeloffset"],Yr={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Dr=["labelpos"];function qr(e){var n=new g({multigraph:!0,compound:!0}),r=D(e.graph());return n.setGraph($({},Fr,Y(r,jr),I(r,Vr))),f(e.nodes(),function(t){var a=D(e.node(t));n.setNode(t,Be(Y(a,Ar),Br)),n.setParent(t,e.parent(t))}),f(e.edges(),function(t){var a=D(e.edge(t));n.setEdge(t,$({},Yr,Y(a,Gr),I(a,Dr)))}),n}function $r(e){var n=e.graph();n.ranksep/=2,f(e.edges(),function(r){var t=e.edge(r);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(n.rankdir==="TB"||n.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function Wr(e){f(e.edges(),function(n){var r=e.edge(n);if(r.width&&r.height){var t=e.node(n.v),a=e.node(n.w),i={rank:(a.rank-t.rank)/2+t.rank,e:n};L(e,"edge-proxy",i,"_ep")}})}function zr(e){var n=0;f(e.nodes(),function(r){var t=e.node(r);t.borderTop&&(t.minRank=e.node(t.borderTop).rank,t.maxRank=e.node(t.borderBottom).rank,n=y(n,t.maxRank))}),e.graph().maxRank=n}function Xr(e){f(e.nodes(),function(n){var r=e.node(n);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(n))})}function Ur(e){var n=Number.POSITIVE_INFINITY,r=0,t=Number.POSITIVE_INFINITY,a=0,i=e.graph(),o=i.marginx||0,u=i.marginy||0;function d(s){var c=s.x,l=s.y,h=s.width,v=s.height;n=Math.min(n,c-h/2),r=Math.max(r,c+h/2),t=Math.min(t,l-v/2),a=Math.max(a,l+v/2)}f(e.nodes(),function(s){d(e.node(s))}),f(e.edges(),function(s){var c=e.edge(s);Object.prototype.hasOwnProperty.call(c,"x")&&d(c)}),n-=o,t-=u,f(e.nodes(),function(s){var c=e.node(s);c.x-=n,c.y-=t}),f(e.edges(),function(s){var c=e.edge(s);f(c.points,function(l){l.x-=n,l.y-=t}),Object.prototype.hasOwnProperty.call(c,"x")&&(c.x-=n),Object.prototype.hasOwnProperty.call(c,"y")&&(c.y-=t)}),i.width=r-n+o,i.height=a-t+u}function Hr(e){f(e.edges(),function(n){var r=e.edge(n),t=e.node(n.v),a=e.node(n.w),i,o;r.points?(i=r.points[0],o=r.points[r.points.length-1]):(r.points=[],i=a,o=t),r.points.unshift(re(t,i)),r.points.push(re(a,o))})}function Jr(e){f(e.edges(),function(n){var r=e.edge(n);if(Object.prototype.hasOwnProperty.call(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function Kr(e){f(e.edges(),function(n){var r=e.edge(n);r.reversed&&r.points.reverse()})}function Zr(e){f(e.nodes(),function(n){if(e.children(n).length){var r=e.node(n),t=e.node(r.borderTop),a=e.node(r.borderBottom),i=e.node(T(r.borderLeft)),o=e.node(T(r.borderRight));r.width=Math.abs(o.x-i.x),r.height=Math.abs(a.y-t.y),r.x=i.x+r.width/2,r.y=t.y+r.height/2}}),f(e.nodes(),function(n){e.node(n).dummy==="border"&&e.removeNode(n)})}function Qr(e){f(e.edges(),function(n){if(n.v===n.w){var r=e.node(n.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:n,label:e.edge(n)}),e.removeEdge(n)}})}function et(e){var n=j(e);f(n,function(r){var t=0;f(r,function(a,i){var o=e.node(a);o.order=i+t,f(o.selfEdges,function(u){L(e,"selfedge",{width:u.label.width,height:u.label.height,rank:o.rank,order:i+ ++t,e:u.e,label:u.label},"_se")}),delete o.selfEdges})})}function nt(e){f(e.nodes(),function(n){var r=e.node(n);if(r.dummy==="selfedge"){var t=e.node(r.e.v),a=t.x+t.width/2,i=t.y,o=r.x-a,u=t.height/2;e.setEdge(r.e,r.label),e.removeNode(n),r.label.points=[{x:a+2*o/3,y:i-u},{x:a+5*o/6,y:i-u},{x:a+o,y:i},{x:a+5*o/6,y:i+u},{x:a+2*o/3,y:i+u}],r.label.x=r.x,r.label.y=r.y}})}function Y(e,n){return S(I(e,n),Number)}function D(e){var n={};return f(e,function(r,t){n[t.toLowerCase()]=r}),n}export{ot as l};
|
|
1
|
+
import{G as g}from"./graph-DvuzdqtS.js";import{b as Te,p as ce,q as le,g as z,e as ee,l as F,o as Ie,s as Me,c as Se,u as je,d as f,i as m,f as _,v as x,r as M}from"./_baseUniq-DQHUo2wZ.js";import{f as O,b as he,a as Fe,c as Ve,d as Ae,t as V,m as w,e as P,h as ve,g as X,l as T,i as Be}from"./_basePickBy-CSQjZOEH.js";import{aI as Ge,aJ as Ye,aK as De,aB as qe,aL as $e,aF as pe,aE as we,aM as We,aA as q,ao as ze,aH as Xe,aq as Ue,aN as $}from"./vendor-mermaid-BIhXK1bF.js";function He(e){return Ge(Ye(e,void 0,O),e+"")}var Je=1,Ke=4;function Ze(e){return Te(e,Je|Ke)}function Qe(e,n){return e==null?e:De(e,ce(n),qe)}function en(e,n){return e&&le(e,ce(n))}function nn(e,n){return e>n}function S(e,n){var r={};return n=z(n),le(e,function(t,a,i){$e(r,a,n(t,a,i))}),r}function y(e){return e&&e.length?he(e,pe,nn):void 0}function U(e,n){return e&&e.length?he(e,z(n),Fe):void 0}function rn(e,n){var r=e.length;for(e.sort(n);r--;)e[r]=e[r].value;return e}function tn(e,n){if(e!==n){var r=e!==void 0,t=e===null,a=e===e,i=ee(e),o=n!==void 0,u=n===null,d=n===n,s=ee(n);if(!u&&!s&&!i&&e>n||i&&o&&d&&!u&&!s||t&&o&&d||!r&&d||!a)return 1;if(!t&&!i&&!s&&e<n||s&&r&&a&&!t&&!i||u&&r&&a||!o&&a||!d)return-1}return 0}function an(e,n,r){for(var t=-1,a=e.criteria,i=n.criteria,o=a.length,u=r.length;++t<o;){var d=tn(a[t],i[t]);if(d){if(t>=u)return d;var s=r[t];return d*(s=="desc"?-1:1)}}return e.index-n.index}function on(e,n,r){n.length?n=F(n,function(i){return we(i)?function(o){return Ie(o,i.length===1?i[0]:i)}:i}):n=[pe];var t=-1;n=F(n,We(z));var a=Ve(e,function(i,o,u){var d=F(n,function(s){return s(i)});return{criteria:d,index:++t,value:i}});return rn(a,function(i,o){return an(i,o,r)})}function un(e,n){return Ae(e,n,function(r,t){return Me(e,t)})}var I=He(function(e,n){return e==null?{}:un(e,n)}),dn=Math.ceil,sn=Math.max;function fn(e,n,r,t){for(var a=-1,i=sn(dn((n-e)/(r||1)),0),o=Array(i);i--;)o[++a]=e,e+=r;return o}function cn(e){return function(n,r,t){return t&&typeof t!="number"&&q(n,r,t)&&(r=t=void 0),n=V(n),r===void 0?(r=n,n=0):r=V(r),t=t===void 0?n<r?1:-1:V(t),fn(n,r,t)}}var E=cn(),R=ze(function(e,n){if(e==null)return[];var r=n.length;return r>1&&q(e,n[0],n[1])?n=[]:r>2&&q(n[0],n[1],n[2])&&(n=[n[0]]),on(e,Se(n),[])}),ln=0;function H(e){var n=++ln;return je(e)+n}function hn(e,n,r){for(var t=-1,a=e.length,i=n.length,o={};++t<a;){var u=t<i?n[t]:void 0;r(o,e[t],u)}return o}function vn(e,n){return hn(e||[],n||[],Xe)}class pn{constructor(){var n={};n._next=n._prev=n,this._sentinel=n}dequeue(){var n=this._sentinel,r=n._prev;if(r!==n)return ne(r),r}enqueue(n){var r=this._sentinel;n._prev&&n._next&&ne(n),n._next=r._next,r._next._prev=n,r._next=n,n._prev=r}toString(){for(var n=[],r=this._sentinel,t=r._prev;t!==r;)n.push(JSON.stringify(t,wn)),t=t._prev;return"["+n.join(", ")+"]"}}function ne(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function wn(e,n){if(e!=="_next"&&e!=="_prev")return n}var bn=Ue(1);function mn(e,n){if(e.nodeCount()<=1)return[];var r=yn(e,n||bn),t=gn(r.graph,r.buckets,r.zeroIdx);return O(w(t,function(a){return e.outEdges(a.v,a.w)}))}function gn(e,n,r){for(var t=[],a=n[n.length-1],i=n[0],o;e.nodeCount();){for(;o=i.dequeue();)A(e,n,r,o);for(;o=a.dequeue();)A(e,n,r,o);if(e.nodeCount()){for(var u=n.length-2;u>0;--u)if(o=n[u].dequeue(),o){t=t.concat(A(e,n,r,o,!0));break}}}return t}function A(e,n,r,t,a){var i=a?[]:void 0;return f(e.inEdges(t.v),function(o){var u=e.edge(o),d=e.node(o.v);a&&i.push({v:o.v,w:o.w}),d.out-=u,W(n,r,d)}),f(e.outEdges(t.v),function(o){var u=e.edge(o),d=o.w,s=e.node(d);s.in-=u,W(n,r,s)}),e.removeNode(t.v),i}function yn(e,n){var r=new g,t=0,a=0;f(e.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),f(e.edges(),function(u){var d=r.edge(u.v,u.w)||0,s=n(u),c=d+s;r.setEdge(u.v,u.w,c),a=Math.max(a,r.node(u.v).out+=s),t=Math.max(t,r.node(u.w).in+=s)});var i=E(a+t+3).map(function(){return new pn}),o=t+1;return f(r.nodes(),function(u){W(i,o,r.node(u))}),{graph:r,buckets:i,zeroIdx:o}}function W(e,n,r){r.out?r.in?e[r.out-r.in+n].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}function kn(e){var n=e.graph().acyclicer==="greedy"?mn(e,r(e)):xn(e);f(n,function(t){var a=e.edge(t);e.removeEdge(t),a.forwardName=t.name,a.reversed=!0,e.setEdge(t.w,t.v,a,H("rev"))});function r(t){return function(a){return t.edge(a).weight}}}function xn(e){var n=[],r={},t={};function a(i){Object.prototype.hasOwnProperty.call(t,i)||(t[i]=!0,r[i]=!0,f(e.outEdges(i),function(o){Object.prototype.hasOwnProperty.call(r,o.w)?n.push(o):a(o.w)}),delete r[i])}return f(e.nodes(),a),n}function En(e){f(e.edges(),function(n){var r=e.edge(n);if(r.reversed){e.removeEdge(n);var t=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(n.w,n.v,r,t)}})}function L(e,n,r,t){var a;do a=H(t);while(e.hasNode(a));return r.dummy=n,e.setNode(a,r),a}function On(e){var n=new g().setGraph(e.graph());return f(e.nodes(),function(r){n.setNode(r,e.node(r))}),f(e.edges(),function(r){var t=n.edge(r.v,r.w)||{weight:0,minlen:1},a=e.edge(r);n.setEdge(r.v,r.w,{weight:t.weight+a.weight,minlen:Math.max(t.minlen,a.minlen)})}),n}function be(e){var n=new g({multigraph:e.isMultigraph()}).setGraph(e.graph());return f(e.nodes(),function(r){e.children(r).length||n.setNode(r,e.node(r))}),f(e.edges(),function(r){n.setEdge(r,e.edge(r))}),n}function re(e,n){var r=e.x,t=e.y,a=n.x-r,i=n.y-t,o=e.width/2,u=e.height/2;if(!a&&!i)throw new Error("Not possible to find intersection inside of the rectangle");var d,s;return Math.abs(i)*o>Math.abs(a)*u?(i<0&&(u=-u),d=u*a/i,s=u):(a<0&&(o=-o),d=o,s=o*i/a),{x:r+d,y:t+s}}function j(e){var n=w(E(me(e)+1),function(){return[]});return f(e.nodes(),function(r){var t=e.node(r),a=t.rank;m(a)||(n[a][t.order]=r)}),n}function Ln(e){var n=P(w(e.nodes(),function(r){return e.node(r).rank}));f(e.nodes(),function(r){var t=e.node(r);ve(t,"rank")&&(t.rank-=n)})}function Nn(e){var n=P(w(e.nodes(),function(i){return e.node(i).rank})),r=[];f(e.nodes(),function(i){var o=e.node(i).rank-n;r[o]||(r[o]=[]),r[o].push(i)});var t=0,a=e.graph().nodeRankFactor;f(r,function(i,o){m(i)&&o%a!==0?--t:t&&f(i,function(u){e.node(u).rank+=t})})}function te(e,n,r,t){var a={width:0,height:0};return arguments.length>=4&&(a.rank=r,a.order=t),L(e,"border",a,n)}function me(e){return y(w(e.nodes(),function(n){var r=e.node(n).rank;if(!m(r))return r}))}function Pn(e,n){var r={lhs:[],rhs:[]};return f(e,function(t){n(t)?r.lhs.push(t):r.rhs.push(t)}),r}function Cn(e,n){return n()}function _n(e){function n(r){var t=e.children(r),a=e.node(r);if(t.length&&f(t,n),Object.prototype.hasOwnProperty.call(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var i=a.minRank,o=a.maxRank+1;i<o;++i)ae(e,"borderLeft","_bl",r,a,i),ae(e,"borderRight","_br",r,a,i)}}f(e.children(),n)}function ae(e,n,r,t,a,i){var o={width:0,height:0,rank:i,borderType:n},u=a[n][i-1],d=L(e,"border",o,r);a[n][i]=d,e.setParent(d,t),u&&e.setEdge(u,d,{weight:1})}function Rn(e){var n=e.graph().rankdir.toLowerCase();(n==="lr"||n==="rl")&&ge(e)}function Tn(e){var n=e.graph().rankdir.toLowerCase();(n==="bt"||n==="rl")&&In(e),(n==="lr"||n==="rl")&&(Mn(e),ge(e))}function ge(e){f(e.nodes(),function(n){ie(e.node(n))}),f(e.edges(),function(n){ie(e.edge(n))})}function ie(e){var n=e.width;e.width=e.height,e.height=n}function In(e){f(e.nodes(),function(n){B(e.node(n))}),f(e.edges(),function(n){var r=e.edge(n);f(r.points,B),Object.prototype.hasOwnProperty.call(r,"y")&&B(r)})}function B(e){e.y=-e.y}function Mn(e){f(e.nodes(),function(n){G(e.node(n))}),f(e.edges(),function(n){var r=e.edge(n);f(r.points,G),Object.prototype.hasOwnProperty.call(r,"x")&&G(r)})}function G(e){var n=e.x;e.x=e.y,e.y=n}function Sn(e){e.graph().dummyChains=[],f(e.edges(),function(n){jn(e,n)})}function jn(e,n){var r=n.v,t=e.node(r).rank,a=n.w,i=e.node(a).rank,o=n.name,u=e.edge(n),d=u.labelRank;if(i!==t+1){e.removeEdge(n);var s=void 0,c,l;for(l=0,++t;t<i;++l,++t)u.points=[],s={width:0,height:0,edgeLabel:u,edgeObj:n,rank:t},c=L(e,"edge",s,"_d"),t===d&&(s.width=u.width,s.height=u.height,s.dummy="edge-label",s.labelpos=u.labelpos),e.setEdge(r,c,{weight:u.weight},o),l===0&&e.graph().dummyChains.push(c),r=c;e.setEdge(r,a,{weight:u.weight},o)}}function Fn(e){f(e.graph().dummyChains,function(n){var r=e.node(n),t=r.edgeLabel,a;for(e.setEdge(r.edgeObj,t);r.dummy;)a=e.successors(n)[0],e.removeNode(n),t.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height),n=a,r=e.node(n)})}function J(e){var n={};function r(t){var a=e.node(t);if(Object.prototype.hasOwnProperty.call(n,t))return a.rank;n[t]=!0;var i=P(w(e.outEdges(t),function(o){return r(o.w)-e.edge(o).minlen}));return(i===Number.POSITIVE_INFINITY||i===void 0||i===null)&&(i=0),a.rank=i}f(e.sources(),r)}function C(e,n){return e.node(n.w).rank-e.node(n.v).rank-e.edge(n).minlen}function ye(e){var n=new g({directed:!1}),r=e.nodes()[0],t=e.nodeCount();n.setNode(r,{});for(var a,i;Vn(n,e)<t;)a=An(n,e),i=n.hasNode(a.v)?C(e,a):-C(e,a),Bn(n,e,i);return n}function Vn(e,n){function r(t){f(n.nodeEdges(t),function(a){var i=a.v,o=t===i?a.w:i;!e.hasNode(o)&&!C(n,a)&&(e.setNode(o,{}),e.setEdge(t,o,{}),r(o))})}return f(e.nodes(),r),e.nodeCount()}function An(e,n){return U(n.edges(),function(r){if(e.hasNode(r.v)!==e.hasNode(r.w))return C(n,r)})}function Bn(e,n,r){f(e.nodes(),function(t){n.node(t).rank+=r})}function Gn(){}Gn.prototype=new Error;function ke(e,n,r){we(n)||(n=[n]);var t=(e.isDirected()?e.successors:e.neighbors).bind(e),a=[],i={};return f(n,function(o){if(!e.hasNode(o))throw new Error("Graph does not have node: "+o);xe(e,o,r==="post",i,t,a)}),a}function xe(e,n,r,t,a,i){Object.prototype.hasOwnProperty.call(t,n)||(t[n]=!0,r||i.push(n),f(a(n),function(o){xe(e,o,r,t,a,i)}),r&&i.push(n))}function Yn(e,n){return ke(e,n,"post")}function Dn(e,n){return ke(e,n,"pre")}k.initLowLimValues=Z;k.initCutValues=K;k.calcCutValue=Ee;k.leaveEdge=Le;k.enterEdge=Ne;k.exchangeEdges=Pe;function k(e){e=On(e),J(e);var n=ye(e);Z(n),K(n,e);for(var r,t;r=Le(n);)t=Ne(n,e,r),Pe(n,e,r,t)}function K(e,n){var r=Yn(e,e.nodes());r=r.slice(0,r.length-1),f(r,function(t){qn(e,n,t)})}function qn(e,n,r){var t=e.node(r),a=t.parent;e.edge(r,a).cutvalue=Ee(e,n,r)}function Ee(e,n,r){var t=e.node(r),a=t.parent,i=!0,o=n.edge(r,a),u=0;return o||(i=!1,o=n.edge(a,r)),u=o.weight,f(n.nodeEdges(r),function(d){var s=d.v===r,c=s?d.w:d.v;if(c!==a){var l=s===i,h=n.edge(d).weight;if(u+=l?h:-h,Wn(e,r,c)){var v=e.edge(r,c).cutvalue;u+=l?-v:v}}}),u}function Z(e,n){arguments.length<2&&(n=e.nodes()[0]),Oe(e,{},1,n)}function Oe(e,n,r,t,a){var i=r,o=e.node(t);return n[t]=!0,f(e.neighbors(t),function(u){Object.prototype.hasOwnProperty.call(n,u)||(r=Oe(e,n,r,u,t))}),o.low=i,o.lim=r++,a?o.parent=a:delete o.parent,r}function Le(e){return X(e.edges(),function(n){return e.edge(n).cutvalue<0})}function Ne(e,n,r){var t=r.v,a=r.w;n.hasEdge(t,a)||(t=r.w,a=r.v);var i=e.node(t),o=e.node(a),u=i,d=!1;i.lim>o.lim&&(u=o,d=!0);var s=_(n.edges(),function(c){return d===oe(e,e.node(c.v),u)&&d!==oe(e,e.node(c.w),u)});return U(s,function(c){return C(n,c)})}function Pe(e,n,r,t){var a=r.v,i=r.w;e.removeEdge(a,i),e.setEdge(t.v,t.w,{}),Z(e),K(e,n),$n(e,n)}function $n(e,n){var r=X(e.nodes(),function(a){return!n.node(a).parent}),t=Dn(e,r);t=t.slice(1),f(t,function(a){var i=e.node(a).parent,o=n.edge(a,i),u=!1;o||(o=n.edge(i,a),u=!0),n.node(a).rank=n.node(i).rank+(u?o.minlen:-o.minlen)})}function Wn(e,n,r){return e.hasEdge(n,r)}function oe(e,n,r){return r.low<=n.lim&&n.lim<=r.lim}function zn(e){switch(e.graph().ranker){case"network-simplex":ue(e);break;case"tight-tree":Un(e);break;case"longest-path":Xn(e);break;default:ue(e)}}var Xn=J;function Un(e){J(e),ye(e)}function ue(e){k(e)}function Hn(e){var n=L(e,"root",{},"_root"),r=Jn(e),t=y(x(r))-1,a=2*t+1;e.graph().nestingRoot=n,f(e.edges(),function(o){e.edge(o).minlen*=a});var i=Kn(e)+1;f(e.children(),function(o){Ce(e,n,a,i,t,r,o)}),e.graph().nodeRankFactor=a}function Ce(e,n,r,t,a,i,o){var u=e.children(o);if(!u.length){o!==n&&e.setEdge(n,o,{weight:0,minlen:r});return}var d=te(e,"_bt"),s=te(e,"_bb"),c=e.node(o);e.setParent(d,o),c.borderTop=d,e.setParent(s,o),c.borderBottom=s,f(u,function(l){Ce(e,n,r,t,a,i,l);var h=e.node(l),v=h.borderTop?h.borderTop:l,p=h.borderBottom?h.borderBottom:l,b=h.borderTop?t:2*t,N=v!==p?1:a-i[o]+1;e.setEdge(d,v,{weight:b,minlen:N,nestingEdge:!0}),e.setEdge(p,s,{weight:b,minlen:N,nestingEdge:!0})}),e.parent(o)||e.setEdge(n,d,{weight:0,minlen:a+i[o]})}function Jn(e){var n={};function r(t,a){var i=e.children(t);i&&i.length&&f(i,function(o){r(o,a+1)}),n[t]=a}return f(e.children(),function(t){r(t,1)}),n}function Kn(e){return M(e.edges(),function(n,r){return n+e.edge(r).weight},0)}function Zn(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,f(e.edges(),function(r){var t=e.edge(r);t.nestingEdge&&e.removeEdge(r)})}function Qn(e,n,r){var t={},a;f(r,function(i){for(var o=e.parent(i),u,d;o;){if(u=e.parent(o),u?(d=t[u],t[u]=o):(d=a,a=o),d&&d!==o){n.setEdge(d,o);return}o=u}})}function er(e,n,r){var t=nr(e),a=new g({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(i){return e.node(i)});return f(e.nodes(),function(i){var o=e.node(i),u=e.parent(i);(o.rank===n||o.minRank<=n&&n<=o.maxRank)&&(a.setNode(i),a.setParent(i,u||t),f(e[r](i),function(d){var s=d.v===i?d.w:d.v,c=a.edge(s,i),l=m(c)?0:c.weight;a.setEdge(s,i,{weight:e.edge(d).weight+l})}),Object.prototype.hasOwnProperty.call(o,"minRank")&&a.setNode(i,{borderLeft:o.borderLeft[n],borderRight:o.borderRight[n]}))}),a}function nr(e){for(var n;e.hasNode(n=H("_root")););return n}function rr(e,n){for(var r=0,t=1;t<n.length;++t)r+=tr(e,n[t-1],n[t]);return r}function tr(e,n,r){for(var t=vn(r,w(r,function(s,c){return c})),a=O(w(n,function(s){return R(w(e.outEdges(s),function(c){return{pos:t[c.w],weight:e.edge(c).weight}}),"pos")})),i=1;i<r.length;)i<<=1;var o=2*i-1;i-=1;var u=w(new Array(o),function(){return 0}),d=0;return f(a.forEach(function(s){var c=s.pos+i;u[c]+=s.weight;for(var l=0;c>0;)c%2&&(l+=u[c+1]),c=c-1>>1,u[c]+=s.weight;d+=s.weight*l})),d}function ar(e){var n={},r=_(e.nodes(),function(u){return!e.children(u).length}),t=y(w(r,function(u){return e.node(u).rank})),a=w(E(t+1),function(){return[]});function i(u){if(!ve(n,u)){n[u]=!0;var d=e.node(u);a[d.rank].push(u),f(e.successors(u),i)}}var o=R(r,function(u){return e.node(u).rank});return f(o,i),a}function ir(e,n){return w(n,function(r){var t=e.inEdges(r);if(t.length){var a=M(t,function(i,o){var u=e.edge(o),d=e.node(o.v);return{sum:i.sum+u.weight*d.order,weight:i.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:a.sum/a.weight,weight:a.weight}}else return{v:r}})}function or(e,n){var r={};f(e,function(a,i){var o=r[a.v]={indegree:0,in:[],out:[],vs:[a.v],i};m(a.barycenter)||(o.barycenter=a.barycenter,o.weight=a.weight)}),f(n.edges(),function(a){var i=r[a.v],o=r[a.w];!m(i)&&!m(o)&&(o.indegree++,i.out.push(r[a.w]))});var t=_(r,function(a){return!a.indegree});return ur(t)}function ur(e){var n=[];function r(i){return function(o){o.merged||(m(o.barycenter)||m(i.barycenter)||o.barycenter>=i.barycenter)&&dr(i,o)}}function t(i){return function(o){o.in.push(i),--o.indegree===0&&e.push(o)}}for(;e.length;){var a=e.pop();n.push(a),f(a.in.reverse(),r(a)),f(a.out,t(a))}return w(_(n,function(i){return!i.merged}),function(i){return I(i,["vs","i","barycenter","weight"])})}function dr(e,n){var r=0,t=0;e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=r/t,e.weight=t,e.i=Math.min(n.i,e.i),n.merged=!0}function sr(e,n){var r=Pn(e,function(c){return Object.prototype.hasOwnProperty.call(c,"barycenter")}),t=r.lhs,a=R(r.rhs,function(c){return-c.i}),i=[],o=0,u=0,d=0;t.sort(fr(!!n)),d=de(i,a,d),f(t,function(c){d+=c.vs.length,i.push(c.vs),o+=c.barycenter*c.weight,u+=c.weight,d=de(i,a,d)});var s={vs:O(i)};return u&&(s.barycenter=o/u,s.weight=u),s}function de(e,n,r){for(var t;n.length&&(t=T(n)).i<=r;)n.pop(),e.push(t.vs),r++;return r}function fr(e){return function(n,r){return n.barycenter<r.barycenter?-1:n.barycenter>r.barycenter?1:e?r.i-n.i:n.i-r.i}}function _e(e,n,r,t){var a=e.children(n),i=e.node(n),o=i?i.borderLeft:void 0,u=i?i.borderRight:void 0,d={};o&&(a=_(a,function(p){return p!==o&&p!==u}));var s=ir(e,a);f(s,function(p){if(e.children(p.v).length){var b=_e(e,p.v,r,t);d[p.v]=b,Object.prototype.hasOwnProperty.call(b,"barycenter")&&lr(p,b)}});var c=or(s,r);cr(c,d);var l=sr(c,t);if(o&&(l.vs=O([o,l.vs,u]),e.predecessors(o).length)){var h=e.node(e.predecessors(o)[0]),v=e.node(e.predecessors(u)[0]);Object.prototype.hasOwnProperty.call(l,"barycenter")||(l.barycenter=0,l.weight=0),l.barycenter=(l.barycenter*l.weight+h.order+v.order)/(l.weight+2),l.weight+=2}return l}function cr(e,n){f(e,function(r){r.vs=O(r.vs.map(function(t){return n[t]?n[t].vs:t}))})}function lr(e,n){m(e.barycenter)?(e.barycenter=n.barycenter,e.weight=n.weight):(e.barycenter=(e.barycenter*e.weight+n.barycenter*n.weight)/(e.weight+n.weight),e.weight+=n.weight)}function hr(e){var n=me(e),r=se(e,E(1,n+1),"inEdges"),t=se(e,E(n-1,-1,-1),"outEdges"),a=ar(e);fe(e,a);for(var i=Number.POSITIVE_INFINITY,o,u=0,d=0;d<4;++u,++d){vr(u%2?r:t,u%4>=2),a=j(e);var s=rr(e,a);s<i&&(d=0,o=Ze(a),i=s)}fe(e,o)}function se(e,n,r){return w(n,function(t){return er(e,t,r)})}function vr(e,n){var r=new g;f(e,function(t){var a=t.graph().root,i=_e(t,a,r,n);f(i.vs,function(o,u){t.node(o).order=u}),Qn(t,r,i.vs)})}function fe(e,n){f(n,function(r){f(r,function(t,a){e.node(t).order=a})})}function pr(e){var n=br(e);f(e.graph().dummyChains,function(r){for(var t=e.node(r),a=t.edgeObj,i=wr(e,n,a.v,a.w),o=i.path,u=i.lca,d=0,s=o[d],c=!0;r!==a.w;){if(t=e.node(r),c){for(;(s=o[d])!==u&&e.node(s).maxRank<t.rank;)d++;s===u&&(c=!1)}if(!c){for(;d<o.length-1&&e.node(s=o[d+1]).minRank<=t.rank;)d++;s=o[d]}e.setParent(r,s),r=e.successors(r)[0]}})}function wr(e,n,r,t){var a=[],i=[],o=Math.min(n[r].low,n[t].low),u=Math.max(n[r].lim,n[t].lim),d,s;d=r;do d=e.parent(d),a.push(d);while(d&&(n[d].low>o||u>n[d].lim));for(s=d,d=t;(d=e.parent(d))!==s;)i.push(d);return{path:a.concat(i.reverse()),lca:s}}function br(e){var n={},r=0;function t(a){var i=r;f(e.children(a),t),n[a]={low:i,lim:r++}}return f(e.children(),t),n}function mr(e,n){var r={};function t(a,i){var o=0,u=0,d=a.length,s=T(i);return f(i,function(c,l){var h=yr(e,c),v=h?e.node(h).order:d;(h||c===s)&&(f(i.slice(u,l+1),function(p){f(e.predecessors(p),function(b){var N=e.node(b),Q=N.order;(Q<o||v<Q)&&!(N.dummy&&e.node(p).dummy)&&Re(r,b,p)})}),u=l+1,o=v)}),i}return M(n,t),r}function gr(e,n){var r={};function t(i,o,u,d,s){var c;f(E(o,u),function(l){c=i[l],e.node(c).dummy&&f(e.predecessors(c),function(h){var v=e.node(h);v.dummy&&(v.order<d||v.order>s)&&Re(r,h,c)})})}function a(i,o){var u=-1,d,s=0;return f(o,function(c,l){if(e.node(c).dummy==="border"){var h=e.predecessors(c);h.length&&(d=e.node(h[0]).order,t(o,s,l,u,d),s=l,u=d)}t(o,s,o.length,d,i.length)}),o}return M(n,a),r}function yr(e,n){if(e.node(n).dummy)return X(e.predecessors(n),function(r){return e.node(r).dummy})}function Re(e,n,r){if(n>r){var t=n;n=r,r=t}Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,configurable:!0,value:{},writable:!0});var a=e[n];Object.defineProperty(a,r,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function kr(e,n,r){if(n>r){var t=n;n=r,r=t}return!!e[n]&&Object.prototype.hasOwnProperty.call(e[n],r)}function xr(e,n,r,t){var a={},i={},o={};return f(n,function(u){f(u,function(d,s){a[d]=d,i[d]=d,o[d]=s})}),f(n,function(u){var d=-1;f(u,function(s){var c=t(s);if(c.length){c=R(c,function(b){return o[b]});for(var l=(c.length-1)/2,h=Math.floor(l),v=Math.ceil(l);h<=v;++h){var p=c[h];i[s]===s&&d<o[p]&&!kr(r,s,p)&&(i[p]=s,i[s]=a[s]=a[p],d=o[p])}}})}),{root:a,align:i}}function Er(e,n,r,t,a){var i={},o=Or(e,n,r,a),u=a?"borderLeft":"borderRight";function d(l,h){for(var v=o.nodes(),p=v.pop(),b={};p;)b[p]?l(p):(b[p]=!0,v.push(p),v=v.concat(h(p))),p=v.pop()}function s(l){i[l]=o.inEdges(l).reduce(function(h,v){return Math.max(h,i[v.v]+o.edge(v))},0)}function c(l){var h=o.outEdges(l).reduce(function(p,b){return Math.min(p,i[b.w]-o.edge(b))},Number.POSITIVE_INFINITY),v=e.node(l);h!==Number.POSITIVE_INFINITY&&v.borderType!==u&&(i[l]=Math.max(i[l],h))}return d(s,o.predecessors.bind(o)),d(c,o.successors.bind(o)),f(t,function(l){i[l]=i[r[l]]}),i}function Or(e,n,r,t){var a=new g,i=e.graph(),o=_r(i.nodesep,i.edgesep,t);return f(n,function(u){var d;f(u,function(s){var c=r[s];if(a.setNode(c),d){var l=r[d],h=a.edge(l,c);a.setEdge(l,c,Math.max(o(e,s,d),h||0))}d=s})}),a}function Lr(e,n){return U(x(n),function(r){var t=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY;return Qe(r,function(i,o){var u=Rr(e,o)/2;t=Math.max(i+u,t),a=Math.min(i-u,a)}),t-a})}function Nr(e,n){var r=x(n),t=P(r),a=y(r);f(["u","d"],function(i){f(["l","r"],function(o){var u=i+o,d=e[u],s;if(d!==n){var c=x(d);s=o==="l"?t-P(c):a-y(c),s&&(e[u]=S(d,function(l){return l+s}))}})})}function Pr(e,n){return S(e.ul,function(r,t){if(n)return e[n.toLowerCase()][t];var a=R(w(e,t));return(a[1]+a[2])/2})}function Cr(e){var n=j(e),r=$(mr(e,n),gr(e,n)),t={},a;f(["u","d"],function(o){a=o==="u"?n:x(n).reverse(),f(["l","r"],function(u){u==="r"&&(a=w(a,function(l){return x(l).reverse()}));var d=(o==="u"?e.predecessors:e.successors).bind(e),s=xr(e,a,r,d),c=Er(e,a,s.root,s.align,u==="r");u==="r"&&(c=S(c,function(l){return-l})),t[o+u]=c})});var i=Lr(e,t);return Nr(t,i),Pr(t,e.graph().align)}function _r(e,n,r){return function(t,a,i){var o=t.node(a),u=t.node(i),d=0,s;if(d+=o.width/2,Object.prototype.hasOwnProperty.call(o,"labelpos"))switch(o.labelpos.toLowerCase()){case"l":s=-o.width/2;break;case"r":s=o.width/2;break}if(s&&(d+=r?s:-s),s=0,d+=(o.dummy?n:e)/2,d+=(u.dummy?n:e)/2,d+=u.width/2,Object.prototype.hasOwnProperty.call(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":s=u.width/2;break;case"r":s=-u.width/2;break}return s&&(d+=r?s:-s),s=0,d}}function Rr(e,n){return e.node(n).width}function Tr(e){e=be(e),Ir(e),en(Cr(e),function(n,r){e.node(r).x=n})}function Ir(e){var n=j(e),r=e.graph().ranksep,t=0;f(n,function(a){var i=y(w(a,function(o){return e.node(o).height}));f(a,function(o){e.node(o).y=t+i/2}),t+=i+r})}function ot(e,n){var r=Cn;r("layout",()=>{var t=r(" buildLayoutGraph",()=>qr(e));r(" runLayout",()=>Mr(t,r)),r(" updateInputGraph",()=>Sr(e,t))})}function Mr(e,n){n(" makeSpaceForEdgeLabels",()=>$r(e)),n(" removeSelfEdges",()=>Qr(e)),n(" acyclic",()=>kn(e)),n(" nestingGraph.run",()=>Hn(e)),n(" rank",()=>zn(be(e))),n(" injectEdgeLabelProxies",()=>Wr(e)),n(" removeEmptyRanks",()=>Nn(e)),n(" nestingGraph.cleanup",()=>Zn(e)),n(" normalizeRanks",()=>Ln(e)),n(" assignRankMinMax",()=>zr(e)),n(" removeEdgeLabelProxies",()=>Xr(e)),n(" normalize.run",()=>Sn(e)),n(" parentDummyChains",()=>pr(e)),n(" addBorderSegments",()=>_n(e)),n(" order",()=>hr(e)),n(" insertSelfEdges",()=>et(e)),n(" adjustCoordinateSystem",()=>Rn(e)),n(" position",()=>Tr(e)),n(" positionSelfEdges",()=>nt(e)),n(" removeBorderNodes",()=>Zr(e)),n(" normalize.undo",()=>Fn(e)),n(" fixupEdgeLabelCoords",()=>Jr(e)),n(" undoCoordinateSystem",()=>Tn(e)),n(" translateGraph",()=>Ur(e)),n(" assignNodeIntersects",()=>Hr(e)),n(" reversePoints",()=>Kr(e)),n(" acyclic.undo",()=>En(e))}function Sr(e,n){f(e.nodes(),function(r){var t=e.node(r),a=n.node(r);t&&(t.x=a.x,t.y=a.y,n.children(r).length&&(t.width=a.width,t.height=a.height))}),f(e.edges(),function(r){var t=e.edge(r),a=n.edge(r);t.points=a.points,Object.prototype.hasOwnProperty.call(a,"x")&&(t.x=a.x,t.y=a.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height}var jr=["nodesep","edgesep","ranksep","marginx","marginy"],Fr={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Vr=["acyclicer","ranker","rankdir","align"],Ar=["width","height"],Br={width:0,height:0},Gr=["minlen","weight","width","height","labeloffset"],Yr={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Dr=["labelpos"];function qr(e){var n=new g({multigraph:!0,compound:!0}),r=D(e.graph());return n.setGraph($({},Fr,Y(r,jr),I(r,Vr))),f(e.nodes(),function(t){var a=D(e.node(t));n.setNode(t,Be(Y(a,Ar),Br)),n.setParent(t,e.parent(t))}),f(e.edges(),function(t){var a=D(e.edge(t));n.setEdge(t,$({},Yr,Y(a,Gr),I(a,Dr)))}),n}function $r(e){var n=e.graph();n.ranksep/=2,f(e.edges(),function(r){var t=e.edge(r);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(n.rankdir==="TB"||n.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function Wr(e){f(e.edges(),function(n){var r=e.edge(n);if(r.width&&r.height){var t=e.node(n.v),a=e.node(n.w),i={rank:(a.rank-t.rank)/2+t.rank,e:n};L(e,"edge-proxy",i,"_ep")}})}function zr(e){var n=0;f(e.nodes(),function(r){var t=e.node(r);t.borderTop&&(t.minRank=e.node(t.borderTop).rank,t.maxRank=e.node(t.borderBottom).rank,n=y(n,t.maxRank))}),e.graph().maxRank=n}function Xr(e){f(e.nodes(),function(n){var r=e.node(n);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(n))})}function Ur(e){var n=Number.POSITIVE_INFINITY,r=0,t=Number.POSITIVE_INFINITY,a=0,i=e.graph(),o=i.marginx||0,u=i.marginy||0;function d(s){var c=s.x,l=s.y,h=s.width,v=s.height;n=Math.min(n,c-h/2),r=Math.max(r,c+h/2),t=Math.min(t,l-v/2),a=Math.max(a,l+v/2)}f(e.nodes(),function(s){d(e.node(s))}),f(e.edges(),function(s){var c=e.edge(s);Object.prototype.hasOwnProperty.call(c,"x")&&d(c)}),n-=o,t-=u,f(e.nodes(),function(s){var c=e.node(s);c.x-=n,c.y-=t}),f(e.edges(),function(s){var c=e.edge(s);f(c.points,function(l){l.x-=n,l.y-=t}),Object.prototype.hasOwnProperty.call(c,"x")&&(c.x-=n),Object.prototype.hasOwnProperty.call(c,"y")&&(c.y-=t)}),i.width=r-n+o,i.height=a-t+u}function Hr(e){f(e.edges(),function(n){var r=e.edge(n),t=e.node(n.v),a=e.node(n.w),i,o;r.points?(i=r.points[0],o=r.points[r.points.length-1]):(r.points=[],i=a,o=t),r.points.unshift(re(t,i)),r.points.push(re(a,o))})}function Jr(e){f(e.edges(),function(n){var r=e.edge(n);if(Object.prototype.hasOwnProperty.call(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function Kr(e){f(e.edges(),function(n){var r=e.edge(n);r.reversed&&r.points.reverse()})}function Zr(e){f(e.nodes(),function(n){if(e.children(n).length){var r=e.node(n),t=e.node(r.borderTop),a=e.node(r.borderBottom),i=e.node(T(r.borderLeft)),o=e.node(T(r.borderRight));r.width=Math.abs(o.x-i.x),r.height=Math.abs(a.y-t.y),r.x=i.x+r.width/2,r.y=t.y+r.height/2}}),f(e.nodes(),function(n){e.node(n).dummy==="border"&&e.removeNode(n)})}function Qr(e){f(e.edges(),function(n){if(n.v===n.w){var r=e.node(n.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:n,label:e.edge(n)}),e.removeEdge(n)}})}function et(e){var n=j(e);f(n,function(r){var t=0;f(r,function(a,i){var o=e.node(a);o.order=i+t,f(o.selfEdges,function(u){L(e,"selfedge",{width:u.label.width,height:u.label.height,rank:o.rank,order:i+ ++t,e:u.e,label:u.label},"_se")}),delete o.selfEdges})})}function nt(e){f(e.nodes(),function(n){var r=e.node(n);if(r.dummy==="selfedge"){var t=e.node(r.e.v),a=t.x+t.width/2,i=t.y,o=r.x-a,u=t.height/2;e.setEdge(r.e,r.label),e.removeNode(n),r.label.points=[{x:a+2*o/3,y:i-u},{x:a+5*o/6,y:i-u},{x:a+o,y:i},{x:a+5*o/6,y:i+u},{x:a+2*o/3,y:i+u}],r.label.x=r.x,r.label.y=r.y}})}function Y(e,n){return S(I(e,n),Number)}function D(e){var n={};return f(e,function(r,t){n[t.toLowerCase()]=r}),n}export{ot as l};
|