@softistx/pulsarix-widget 0.8.5 → 0.10.0
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/README.md +76 -48
- package/dist/chunks/{abnfDiagram-XWFEHMT6.b9yk4x5x.js → abnfDiagram-XWFEHMT6.rxx9wyp3.js} +1 -1
- package/dist/chunks/architecture-WOLXFQ4H.hwrxbct0.js +1 -0
- package/dist/chunks/architectureDiagram-CSQXQB3N.mrm0pgc0.js +36 -0
- package/dist/chunks/{blockDiagram-BEDRHYPZ.bb08b9nt.js → blockDiagram-BEDRHYPZ.f4dfpk7e.js} +11 -11
- package/dist/chunks/{c4Diagram-M2UUVUY5.px0epccd.js → c4Diagram-M2UUVUY5.rz43j1my.js} +3 -3
- package/dist/chunks/{chat-markdown-CrbWbK1O.k4nmgyey.js → chat-markdown-BSu4FB_l.xgn4yj83.js} +29 -29
- package/dist/chunks/{classDiagram-v2-KXABOMEV.f02387t9.js → classDiagram-v2-KXABOMEV.m96cfcad.js} +8 -8
- package/dist/chunks/cose-bilkent-JH36ORCC.zz2rwyw6.js +1 -0
- package/dist/chunks/cynefin-EF2NZ3EQ.y29bn1cz.js +1 -0
- package/dist/chunks/{cynefinDiagram-NJNITYFG.zt7gprt1.js → cynefinDiagram-NJNITYFG.az2k68wq.js} +1 -1
- package/dist/chunks/{dagre-KIHZ2IZ3.702bqbr9.js → dagre-KIHZ2IZ3.mgwg8bc4.js} +2 -2
- package/dist/chunks/{diagram-7YQZDPLS.m7vf21j6.js → diagram-7YQZDPLS.x8fg6705.js} +2 -2
- package/dist/chunks/{diagram-QBROCOUO.33e5hv7x.js → diagram-QBROCOUO.db60dsss.js} +24 -24
- package/dist/chunks/{diagram-RJJCUUZO.94k74bz7.js → diagram-RJJCUUZO.a7e9w297.js} +4 -4
- package/dist/chunks/{diagram-WERXNKYE.7fe849z6.js → diagram-WERXNKYE.a04f53kd.js} +2 -2
- package/dist/chunks/diagram-YHHI257C.v19jhmrh.js +3 -0
- package/dist/chunks/{diagram-YR4HJLHV.310x2we2.js → diagram-YR4HJLHV.c5e87gmw.js} +1 -1
- package/dist/chunks/{ebnfDiagram-N527522P.a4crteq1.js → ebnfDiagram-N527522P.bjrxfgze.js} +1 -1
- package/dist/chunks/editor-shortcuts-dialog-Cz3T8435.5ve4nsaw.js +1 -0
- package/dist/chunks/editor.yak1qktd.js +4 -0
- package/dist/chunks/{elk-O5DQBFGD.dx61etan.js → elk-O5DQBFGD.1ydp0b7a.js} +13 -13
- package/dist/chunks/emoji-picker-00Bw2c2b.gzznrrz5.js +4 -0
- package/dist/chunks/{erDiagram-K3K3BIDK.qzqv67zm.js → erDiagram-K3K3BIDK.g171ckq1.js} +8 -8
- package/dist/chunks/eventmodeling-K75KTNOO.46qfxqj7.js +1 -0
- package/dist/chunks/{flow-diagram-AiM6FiIm.73jr19pb.js → flow-diagram-DGZOc1z1.3gbgbm5m.js} +6 -6
- package/dist/chunks/flowDiagram-Z6JWZHQI.f0eaj70g.js +1 -0
- package/dist/chunks/{ganttDiagram-3PRQTZWP.xngzb32h.js → ganttDiagram-3PRQTZWP.3b9dh4nr.js} +5 -5
- package/dist/chunks/gitGraph-VSP46ZUC.swware7n.js +1 -0
- package/dist/chunks/{gitGraphDiagram-VXDFKS5L.1sm36z2q.js → gitGraphDiagram-VXDFKS5L.thyp7vsd.js} +22 -22
- package/dist/chunks/{grid-E2QIVN74.76pgtn2n.js → grid-E2QIVN74.entqjpa3.js} +1 -1
- package/dist/chunks/illustration-BcaGDjvB.1q9xtmyq.js +1 -0
- package/dist/chunks/{index.r0p3fm9f.js → index.0g1t1pjx.js} +1 -1
- package/dist/chunks/{index.rfyzb2yv.js → index.35d4zbh8.js} +4 -4
- package/dist/chunks/index.5fcbba6e.js +2 -0
- package/dist/chunks/{index.7gxz6d1f.js → index.6pzexww5.js} +10 -10
- package/dist/chunks/{index.zm5x44tn.js → index.8vaktk8x.js} +1 -1
- package/dist/chunks/{index.dnnzjw18.js → index.8zg579vd.js} +2 -2
- package/dist/chunks/{index.0k4tbjhp.js → index.9n1y396a.js} +1 -1
- package/dist/chunks/{index.8f3x951p.js → index.a3njhfdd.js} +2 -2
- package/dist/chunks/{index.a6rz456z.js → index.cw97ff3b.js} +2 -2
- package/dist/chunks/{index.fv9af3wd.js → index.d57x7pg9.js} +6 -6
- package/dist/chunks/{index.fbeztcp3.js → index.g2ba0pke.js} +2 -2
- package/dist/chunks/index.h1xzvasx.js +2 -0
- package/dist/chunks/{index.hvdnkr5m.js → index.qr6a02kx.js} +2 -2
- package/dist/chunks/index.rkgfxpm3.js +44 -0
- package/dist/chunks/index.sw8gvntb.js +2 -0
- package/dist/chunks/{index.0e4s8r4m.js → index.v02zf4zg.js} +2 -2
- package/dist/chunks/{index.t34t6kpe.js → index.w1516g8q.js} +35 -35
- package/dist/chunks/{index.9bf5qrah.js → index.w4emtsqw.js} +2 -2
- package/dist/chunks/{index.nsckd1vt.js → index.yhmqh641.js} +2 -2
- package/dist/chunks/{index.1d7qpsyx.js → index.zkngte5k.js} +2 -2
- package/dist/chunks/{index.a1bxkgd3.js → index.zkx4ryzt.js} +104 -104
- package/dist/chunks/info-OHQRW6UA.1er9b42t.js +1 -0
- package/dist/chunks/{infoDiagram-EZ3ZOAHP.pfd0fjwn.js → infoDiagram-EZ3ZOAHP.833fvq8n.js} +2 -2
- package/dist/chunks/{ishikawaDiagram-S3EKX5GW.h5kjez1x.js → ishikawaDiagram-S3EKX5GW.q3evaw24.js} +5 -5
- package/dist/chunks/{journeyDiagram-POQNLL5X.55cqc9p0.js → journeyDiagram-POQNLL5X.9werrmpy.js} +5 -5
- package/dist/chunks/{kanban-definition-BH5XI6FM.pkdvda4y.js → kanban-definition-BH5XI6FM.f3ssda0m.js} +7 -7
- package/dist/chunks/markup-color-chrome-ykGNUl8y.pcgw4znz.js +1 -0
- package/dist/chunks/markup-custom-color-MM-HnrqY.sygnt3gs.js +1 -0
- package/dist/chunks/mention-list-6cR5VSPa.x0x55xzp.js +1 -0
- package/dist/chunks/{mermaid.core.j7s05j63.js → mermaid.core.5cqab0cw.js} +7 -7
- package/dist/chunks/{mindmap-definition-WVAN44T4.x3jbxvft.js → mindmap-definition-WVAN44T4.pjjxgse0.js} +6 -6
- package/dist/chunks/packet-JDAUHWVQ.t5jwb2rb.js +1 -0
- package/dist/chunks/panel.2vwd6k3h.js +7 -0
- package/dist/chunks/{pegDiagram-D4NLKWP3.xq15gqy9.js → pegDiagram-D4NLKWP3.mdacgbzb.js} +1 -1
- package/dist/chunks/pie-XZMESJXO.pe88zesw.js +1 -0
- package/dist/chunks/pieDiagram-36ENHN4W.fb0d6a9w.js +39 -0
- package/dist/chunks/plated-illustration-pTqcYOQg.6b9fm4a7.js +1 -0
- package/dist/chunks/{quadrantDiagram-ZQUDMS73.k28g8jpn.js → quadrantDiagram-ZQUDMS73.m5cgqatg.js} +4 -4
- package/dist/chunks/radar-ABXABTNO.jtbddwfq.js +1 -0
- package/dist/chunks/railroad-I3PHUGI6.kvyt0f9s.js +1 -0
- package/dist/chunks/railroad-abnf-LNEFI6M7.ybx0vspg.js +1 -0
- package/dist/chunks/railroad-ebnf-DWYD2UWJ.yx4c4enn.js +1 -0
- package/dist/chunks/railroad-peg-JR7BVNR7.mb71eyqe.js +1 -0
- package/dist/chunks/{railroadDiagram-JIZHGYPL.e7p2vqgg.js → railroadDiagram-JIZHGYPL.w2e1k61e.js} +1 -1
- package/dist/chunks/{render-VIF2ZAQL.w5ytncsg.js → render-VIF2ZAQL.exs2rt60.js} +1 -1
- package/dist/chunks/{requirementDiagram-AXW2TVFA.arekdz02.js → requirementDiagram-AXW2TVFA.mrxb120d.js} +4 -4
- package/dist/chunks/{sankeyDiagram-FBCJTAIF.1d04xcmb.js → sankeyDiagram-FBCJTAIF.csj5n1sg.js} +6 -6
- package/dist/chunks/{sequenceDiagram-3LA2ROMG.j4xywwp1.js → sequenceDiagram-3LA2ROMG.73qx1ab4.js} +11 -11
- package/dist/chunks/{sizeCapture-2Q2CQKSF.862bnf6p.js → sizeCapture-2Q2CQKSF.vfe8maj3.js} +1 -1
- package/dist/chunks/{stateDiagram-v2-ATKHQDJO.xvvtr0y2.js → stateDiagram-v2-ATKHQDJO.h4grfmy4.js} +8 -8
- package/dist/chunks/{swimlanes-YQL5WMAO.dtnjb4xt.js → swimlanes-YQL5WMAO.e2y8jam1.js} +1 -1
- package/dist/chunks/swimlanesDiagram-UCCPES4V.dtthssd5.js +8 -0
- package/dist/chunks/{timeline-definition-7Z437IG3.zfhqzc4r.js → timeline-definition-7Z437IG3.2zxa6hz5.js} +9 -9
- package/dist/chunks/treeView-D4JQ5SDB.3kgztv30.js +1 -0
- package/dist/chunks/treemap-SAJKECNS.xj47e2ae.js +1 -0
- package/dist/chunks/{usecaseDiagram-RDK6N6HP.ewxnyz4c.js → usecaseDiagram-RDK6N6HP.61cdyktj.js} +57 -57
- package/dist/chunks/{vennDiagram-SHRQU5PJ.wkzf1f00.js → vennDiagram-SHRQU5PJ.4tspw3rs.js} +7 -7
- package/dist/chunks/wardley-7MLQ67FV.pckbr6zr.js +1 -0
- package/dist/chunks/{wardleyDiagram-F3OXNVQS.srjfm4nb.js → wardleyDiagram-F3OXNVQS.q2p8tshx.js} +4 -4
- package/dist/chunks/{xychartDiagram-GDYJKCDI.xfa2vexk.js → xychartDiagram-GDYJKCDI.69desp9j.js} +5 -5
- package/dist/index.js +48 -21
- package/dist/react.js +74 -0
- package/dist/server.js +20 -0
- package/dist/types/config.d.ts +1 -1
- package/dist/types/mount.d.ts +1 -1
- package/dist/types/react.d.ts +27 -0
- package/dist/types/server.d.ts +15 -0
- package/docs/integration.md +109 -36
- package/package.json +20 -5
- package/dist/chunks/architecture-WOLXFQ4H.aft3rkrr.js +0 -1
- package/dist/chunks/architectureDiagram-CSQXQB3N.qz18rz0g.js +0 -36
- package/dist/chunks/cose-bilkent-JH36ORCC.azq9k24r.js +0 -1
- package/dist/chunks/cynefin-EF2NZ3EQ.dk039jny.js +0 -1
- package/dist/chunks/diagram-YHHI257C.qjjjfq7w.js +0 -3
- package/dist/chunks/editor-shortcuts-dialog-B0ppoiza.x3p4h07t.js +0 -1
- package/dist/chunks/editor.arg3zy29.js +0 -4
- package/dist/chunks/emoji-picker-CbvQZ2ZL.nst616hd.js +0 -4
- package/dist/chunks/eventmodeling-K75KTNOO.gmm1bcak.js +0 -1
- package/dist/chunks/flowDiagram-Z6JWZHQI.fzwqg115.js +0 -1
- package/dist/chunks/gitGraph-VSP46ZUC.0m8jykgw.js +0 -1
- package/dist/chunks/illustration-BOW28wq5.bkz28k1x.js +0 -1
- package/dist/chunks/index.32jxrb9b.js +0 -2
- package/dist/chunks/index.7k5v3p25.js +0 -2
- package/dist/chunks/index.e35b4yh5.js +0 -44
- package/dist/chunks/index.wrjdgn4c.js +0 -2
- package/dist/chunks/info-OHQRW6UA.e0a85drn.js +0 -1
- package/dist/chunks/markup-color-chrome-ykGNUl8y.0ds56d6x.js +0 -1
- package/dist/chunks/markup-custom-color-Dgm2hHI7.7darvajx.js +0 -1
- package/dist/chunks/mention-list-CkAUzPBG.mtjgmmzb.js +0 -1
- package/dist/chunks/packet-JDAUHWVQ.52409p3r.js +0 -1
- package/dist/chunks/panel.9tp7gr60.js +0 -7
- package/dist/chunks/pie-XZMESJXO.q5kre8cx.js +0 -1
- package/dist/chunks/pieDiagram-36ENHN4W.8h0wam54.js +0 -39
- package/dist/chunks/plated-illustration-COZYWJ81.xy7ba5mq.js +0 -1
- package/dist/chunks/radar-ABXABTNO.yk872k2n.js +0 -1
- package/dist/chunks/railroad-I3PHUGI6.9wfa6vs3.js +0 -1
- package/dist/chunks/railroad-abnf-LNEFI6M7.70zznk3b.js +0 -1
- package/dist/chunks/railroad-ebnf-DWYD2UWJ.4pvdng0p.js +0 -1
- package/dist/chunks/railroad-peg-JR7BVNR7.ev15ebp6.js +0 -1
- package/dist/chunks/swimlanesDiagram-UCCPES4V.0q8kd5qn.js +0 -8
- package/dist/chunks/treeView-D4JQ5SDB.3fzswdjp.js +0 -1
- package/dist/chunks/treemap-SAJKECNS.cgh74bhn.js +0 -1
- package/dist/chunks/wardley-7MLQ67FV.6q5tgt0s.js +0 -1
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{sa}from"./index.e35b4yh5.js";var X={};sa(X,{default:()=>Dt});var J={};sa(J,{default:()=>sr});var Mr=typeof global=="object"&&global&&global.Object===Object&&global,H=Mr;var Nr=typeof self=="object"&&self&&self.Object===Object&&self,Dr=H||Nr||Function("return this")(),Le=Dr;var Rr=Le.Symbol,Ge=Rr;var Pt=Object.prototype,{hasOwnProperty:Fr,toString:Br}=Pt,G=Ge?Ge.toStringTag:void 0;function Wr(t){var e=Fr.call(t,G),r=t[G];try{t[G]=void 0;var o=!0}catch(f){}var a=Br.call(t);if(o)if(e)t[G]=r;else delete t[G];return a}var Ct=Wr;var Kr=Object.prototype,kr=Kr.toString;function Yr(t){return kr.call(t)}var Et=Yr;var Xr="[object Null]",Zr="[object Undefined]",It=Ge?Ge.toStringTag:void 0;function Jr(t){if(t==null)return t===void 0?Zr:Xr;return It&&It in Object(t)?Ct(t):Et(t)}var st=Jr;function Qr(t){return t!=null&&typeof t=="object"}var Oe=Qr;var to="[object Symbol]";function eo(t){return typeof t=="symbol"||Oe(t)&&st(t)==to}var vt=eo;function ro(t,e){var r=-1,o=t==null?0:t.length,a=Array(o);while(++r<o)a[r]=e(t[r],r,t);return a}var ir=ro;var oo=Array.isArray,te=oo;var ao=1/0,Lt=Ge?Ge.prototype:void 0,jt=Lt?Lt.toString:void 0;function Mt(t){if(typeof t=="string")return t;if(te(t))return ir(t,Mt)+"";if(vt(t))return jt?jt.call(t):"";var e=t+"";return e=="0"&&1/t==-ao?"-0":e}var Nt=Mt;function fo(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Te=fo;function io(t){return t}var pt=io;var no="[object AsyncFunction]",so="[object Function]",po="[object GeneratorFunction]",uo="[object Proxy]";function mo(t){if(!Te(t))return!1;var e=st(t);return e==so||e==po||e==no||e==uo}var or=mo;var lo=Le["__core-js_shared__"],q=lo;var Rt=function(){var t=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function xo(t){return!!Rt&&Rt in t}var Ft=xo;var ho=Function.prototype,co=ho.toString;function go(t){if(t!=null){try{return co.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var y=go;var yo=/[\\^$.*+?()[\]{}|]/g,_o=/^\[object .+?Constructor\]$/,bo=Function.prototype,vo=Object.prototype,Oo=bo.toString,Ao=vo.hasOwnProperty,To=RegExp("^"+Oo.call(Ao).replace(yo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function wo(t){if(!Te(t)||Ft(t))return!1;var e=or(t)?To:_o;return e.test(y(t))}var Bt=wo;function So(t,e){return t==null?void 0:t[e]}var Gt=So;function Po(t,e){var r=Gt(t,e);return Bt(r)?r:void 0}var x=Po;var Co=x(Le,"WeakMap"),k=Co;function Eo(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}var Ut=Eo;function Io(){}var zt=Io;var Lo=800,jo=16,Mo=Date.now;function No(t){var e=0,r=0;return function(){var o=Mo(),a=jo-(o-r);if(r=o,a>0){if(++e>=Lo)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var Wt=No;function Do(t){return function(){return t}}var mt=Do;var Ro=function(){try{var t=x(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),Hn=Ro;var Fo=!Hn?pt:function(t,e){return Hn(t,"toString",{configurable:!0,enumerable:!1,value:mt(e),writable:!0})},Kt=Fo;var Bo=Wt(Kt),Di=Bo;function Go(t,e){var r=-1,o=t==null?0:t.length;while(++r<o)if(e(t[r],r,t)===!1)break;return t}var Pi=Go;function Uo(t,e,r,o){var a=t.length,f=r+(o?1:-1);while(o?f--:++f<a)if(e(t[f],f,t))return f;return-1}var Bi=Uo;function zo(t){return t!==t}var Ht=zo;function Wo(t,e,r){var o=r-1,a=t.length;while(++o<a)if(t[o]===e)return o;return-1}var qt=Wo;function Ko(t,e,r){return e===e?qt(t,e,r):Bi(t,Ht,r)}var $t=Ko;function Ho(t,e){var r=t==null?0:t.length;return!!r&&$t(t,e,0)>-1}var kt=Ho;var qo=9007199254740991,$o=/^(?:0|[1-9]\d*)$/;function ko(t,e){var r=typeof t;return e=e==null?qo:e,!!e&&(r=="number"||r!="symbol"&&$o.test(t))&&(t>-1&&t%1==0&&t<e)}var $r=ko;function Yo(t,e){return t===e||t!==t&&e!==e}var Ot=Yo;var Xt=Math.max;function Xo(t,e,r){return e=Xt(e===void 0?t.length-1:e,0),function(){var o=arguments,a=-1,f=Xt(o.length-e,0),i=Array(f);while(++a<f)i[a]=o[e+a];a=-1;var n=Array(e+1);while(++a<e)n[a]=o[a];return n[e]=r(i),Ut(t,this,n)}}var Fi=Xo;function Zo(t,e){return Di(Fi(t,e,pt),t+"")}var zr=Zo;var Jo=9007199254740991;function Qo(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Jo}var j=Qo;function Vo(t){return t!=null&&j(t.length)&&!or(t)}var Ve=Vo;var ta=Object.prototype;function ea(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||ta;return t===r}var Hr=ea;function ra(t,e){var r=-1,o=Array(t);while(++r<t)o[r]=e(r);return o}var Zt=ra;var oa="[object Arguments]";function aa(t){return Oe(t)&&st(t)==oa}var ct=aa;var Jt=Object.prototype,{hasOwnProperty:fa,propertyIsEnumerable:ia}=Jt,na=ct(function(){return arguments}())?ct:function(t){return Oe(t)&&fa.call(t,"callee")&&!ia.call(t,"callee")},Yt=na;function pa(){return!1}var Qt=pa;var re=typeof X=="object"&&X&&!X.nodeType&&X,Vt=re&&typeof Y=="object"&&Y&&!Y.nodeType&&Y,ua=Vt&&Vt.exports===re,ee=ua?Le.Buffer:void 0,ma=ee?ee.isBuffer:void 0,la=ma||Qt,Dt=la;var da="[object Arguments]",xa="[object Array]",ha="[object Boolean]",ca="[object Date]",ga="[object Error]",ya="[object Function]",_a="[object Map]",ba="[object Number]",va="[object Object]",Oa="[object RegExp]",Aa="[object Set]",wa="[object String]",Sa="[object WeakMap]",Pa="[object ArrayBuffer]",Ca="[object DataView]",Ea="[object Float32Array]",Ia="[object Float64Array]",La="[object Int8Array]",ja="[object Int16Array]",Ma="[object Int32Array]",Na="[object Uint8Array]",Da="[object Uint8ClampedArray]",Ra="[object Uint16Array]",Fa="[object Uint32Array]",u={};u[Ea]=u[Ia]=u[La]=u[ja]=u[Ma]=u[Na]=u[Da]=u[Ra]=u[Fa]=!0;u[da]=u[xa]=u[Pa]=u[ha]=u[Ca]=u[ca]=u[ga]=u[ya]=u[_a]=u[ba]=u[va]=u[Oa]=u[Aa]=u[wa]=u[Sa]=!1;function Ba(t){return Oe(t)&&j(t.length)&&!!u[st(t)]}var oe=Ba;function Ga(t){return function(e){return t(e)}}var Ur=Ga;var ae=typeof J=="object"&&J&&!J.nodeType&&J,U=ae&&typeof Z=="object"&&Z&&!Z.nodeType&&Z,Ua=U&&U.exports===ae,gt=Ua&&H.process,za=function(){try{var t=U&&U.require&&U.require("util").types;if(t)return t;return gt&>.binding&>.binding("util")}catch(e){}}(),sr=za;var fe=sr&&sr.isTypedArray,Wa=fe?Ur(fe):oe,qr=Wa;var Ka=Object.prototype,Ha=Ka.hasOwnProperty;function qa(t,e){var r=te(t),o=!r&&Yt(t),a=!r&&!o&&Dt(t),f=!r&&!o&&!a&&qr(t),i=r||o||a||f,n=i?Zt(t.length,String):[],s=n.length;for(var p in t)if((e||Ha.call(t,p))&&!(i&&(p=="length"||a&&(p=="offset"||p=="parent")||f&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||$r(p,s))))n.push(p);return n}var $i=qa;function $a(t,e){return function(r){return t(e(r))}}var zi=$a;var ka=zi(Object.keys,Object),ie=ka;var Ya=Object.prototype,Xa=Ya.hasOwnProperty;function Za(t){if(!Hr(t))return ie(t);var e=[];for(var r in Object(t))if(Xa.call(t,r)&&r!="constructor")e.push(r);return e}var Un=Za;function Ja(t){return Ve(t)?$i(t):Un(t)}var Ie=Ja;var Qa=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Va=/^\w*$/;function tf(t,e){if(te(t))return!1;var r=typeof t;if(r=="number"||r=="symbol"||r=="boolean"||t==null||vt(t))return!0;return Va.test(t)||!Qa.test(t)||e!=null&&t in Object(e)}var M=tf;var ef=x(Object,"create"),_=ef;function rf(){this.__data__=_?_(null):{},this.size=0}var ne=rf;function of(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var se=of;var af="__lodash_hash_undefined__",ff=Object.prototype,nf=ff.hasOwnProperty;function sf(t){var e=this.__data__;if(_){var r=e[t];return r===af?void 0:r}return nf.call(e,t)?e[t]:void 0}var pe=sf;var pf=Object.prototype,uf=pf.hasOwnProperty;function mf(t){var e=this.__data__;return _?e[t]!==void 0:uf.call(e,t)}var me=mf;var lf="__lodash_hash_undefined__";function df(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=_&&e===void 0?lf:e,this}var le=df;function N(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e<r){var o=t[e];this.set(o[0],o[1])}}N.prototype.clear=ne;N.prototype.delete=se;N.prototype.get=pe;N.prototype.has=me;N.prototype.set=le;var _t=N;function xf(){this.__data__=[],this.size=0}var de=xf;function hf(t,e){var r=t.length;while(r--)if(Ot(t[r][0],e))return r;return-1}var O=hf;var cf=Array.prototype,gf=cf.splice;function yf(t){var e=this.__data__,r=O(e,t);if(r<0)return!1;var o=e.length-1;if(r==o)e.pop();else gf.call(e,r,1);return--this.size,!0}var xe=yf;function _f(t){var e=this.__data__,r=O(e,t);return r<0?void 0:e[r][1]}var he=_f;function bf(t){return O(this.__data__,t)>-1}var ce=bf;function vf(t,e){var r=this.__data__,o=O(r,t);if(o<0)++this.size,r.push([t,e]);else r[o][1]=e;return this}var ge=vf;function D(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e<r){var o=t[e];this.set(o[0],o[1])}}D.prototype.clear=de;D.prototype.delete=xe;D.prototype.get=he;D.prototype.has=ce;D.prototype.set=ge;var A=D;var Of=x(Le,"Map"),T=Of;function Af(){this.size=0,this.__data__={hash:new _t,map:new(T||A),string:new _t}}var ye=Af;function Tf(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var _e=Tf;function wf(t,e){var r=t.__data__;return _e(e)?r[typeof e=="string"?"string":"hash"]:r.map}var w=wf;function Sf(t){var e=w(this,t).delete(t);return this.size-=e?1:0,e}var be=Sf;function Pf(t){return w(this,t).get(t)}var ve=Pf;function Cf(t){return w(this,t).has(t)}var Ae=Cf;function Ef(t,e){var r=w(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}var we=Ef;function R(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e<r){var o=t[e];this.set(o[0],o[1])}}R.prototype.clear=ye;R.prototype.delete=be;R.prototype.get=ve;R.prototype.has=Ae;R.prototype.set=we;var E=R;var If="Expected a function";function bt(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw TypeError(If);var r=function(){var o=arguments,a=e?e.apply(this,o):o[0],f=r.cache;if(f.has(a))return f.get(a);var i=t.apply(this,o);return r.cache=f.set(a,i)||f,i};return r.cache=new(bt.Cache||E),r}bt.Cache=E;var Se=bt;var Lf=500;function jf(t){var e=Se(t,function(o){if(r.size===Lf)r.clear();return o}),r=e.cache;return e}var Pe=jf;var Mf=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Nf=/\\(\\)?/g,Df=Pe(function(t){var e=[];if(t.charCodeAt(0)===46)e.push("");return t.replace(Mf,function(r,o,a,f){e.push(a?f.replace(Nf,"$1"):o||r)}),e}),Ce=Df;function Rf(t){return t==null?"":Nt(t)}var Hi=Rf;function Ff(t,e){if(te(t))return t;return M(t,e)?[t]:Ce(Hi(t))}var jr=Ff;var Bf=1/0;function Gf(t){if(typeof t=="string"||vt(t))return t;var e=t+"";return e=="0"&&1/t==-Bf?"-0":e}var lr=Gf;function Uf(t,e){e=jr(e,t);var r=0,o=e.length;while(t!=null&&r<o)t=t[lr(e[r++])];return r&&r==o?t:void 0}var Gr=Uf;function zf(t,e,r){var o=t==null?void 0:Gr(t,e);return o===void 0?r:o}var Ee=zf;function Wf(t,e){var r=-1,o=e.length,a=t.length;while(++r<o)t[a+r]=e[r];return t}var qn=Wf;var je=Ge?Ge.isConcatSpreadable:void 0;function Kf(t){return te(t)||Yt(t)||!!(je&&t&&t[je])}var Me=Kf;function Ne(t,e,r,o,a){var f=-1,i=t.length;r||(r=Me),a||(a=[]);while(++f<i){var n=t[f];if(e>0&&r(n))if(e>1)Ne(n,e-1,r,o,a);else qn(a,n);else if(!o)a[a.length]=n}return a}var jn=Ne;function Hf(t,e,r,o){var a=-1,f=t==null?0:t.length;if(o&&f)r=t[++a];while(++a<f)r=e(r,t[a],a,t);return r}var De=Hf;function qf(){this.__data__=new A,this.size=0}var Fe=qf;function $f(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}var Be=$f;function kf(t){return this.__data__.get(t)}var Ue=kf;function Yf(t){return this.__data__.has(t)}var ze=Yf;var Xf=200;function Zf(t,e){var r=this.__data__;if(r instanceof A){var o=r.__data__;if(!T||o.length<Xf-1)return o.push([t,e]),this.size=++r.size,this;r=this.__data__=new E(o)}return r.set(t,e),this.size=r.size,this}var We=Zf;function F(t){var e=this.__data__=new A(t);this.size=e.size}F.prototype.clear=Fe;F.prototype.delete=Be;F.prototype.get=Ue;F.prototype.has=ze;F.prototype.set=We;var cr=F;function Jf(t,e){var r=-1,o=t==null?0:t.length,a=0,f=[];while(++r<o){var i=t[r];if(e(i,r,t))f[a++]=i}return f}var Q=Jf;function Qf(){return[]}var Ui=Qf;var Vf=Object.prototype,ti=Vf.propertyIsEnumerable,Ke=Object.getOwnPropertySymbols,ei=!Ke?Ui:function(t){if(t==null)return[];return t=Object(t),Q(Ke(t),function(e){return ti.call(t,e)})},Gn=ei;function ri(t,e,r){var o=e(t);return te(t)?o:qn(o,r(t))}var qi=ri;function oi(t){return qi(t,Ie,Gn)}var Ta=oi;var ai=x(Le,"DataView"),V=ai;var fi=x(Le,"Promise"),tt=fi;var ii=x(Le,"Set"),S=ii;var He="[object Map]",ni="[object Object]",qe="[object Promise]",$e="[object Set]",ke="[object WeakMap]",Ye="[object DataView]",si=y(V),pi=y(T),ui=y(tt),mi=y(S),li=y(k),I=st;if(V&&I(new V(new ArrayBuffer(1)))!=Ye||T&&I(new T)!=He||tt&&I(tt.resolve())!=qe||S&&I(new S)!=$e||k&&I(new k)!=ke)I=function(t){var e=st(t),r=e==ni?t.constructor:void 0,o=r?y(r):"";if(o)switch(o){case si:return Ye;case pi:return He;case ui:return qe;case mi:return $e;case li:return ke}return e};var yt=I;var di=Le.Uint8Array,Vn=di;var xi="__lodash_hash_undefined__";function hi(t){return this.__data__.set(t,xi),this}var Xe=hi;function ci(t){return this.__data__.has(t)}var Ze=ci;function rt(t){var e=-1,r=t==null?0:t.length;this.__data__=new E;while(++e<r)this.add(t[e])}rt.prototype.add=rt.prototype.push=Xe;rt.prototype.has=Ze;var ot=rt;function gi(t,e){var r=-1,o=t==null?0:t.length;while(++r<o)if(e(t[r],r,t))return!0;return!1}var Je=gi;function yi(t,e){return t.has(e)}var at=yi;var _i=1,bi=2;function vi(t,e,r,o,a,f){var i=r&_i,n=t.length,s=e.length;if(n!=s&&!(i&&s>n))return!1;var p=f.get(t),d=f.get(e);if(p&&d)return p==e&&d==t;var l=-1,m=!0,g=r&bi?new ot:void 0;f.set(t,e),f.set(e,t);while(++l<n){var h=t[l],c=e[l];if(o)var v=i?o(c,h,l,e,t,f):o(h,c,l,t,e,f);if(v!==void 0){if(v)continue;m=!1;break}if(g){if(!Je(e,function(P,C){if(!at(g,C)&&(h===P||a(h,P,r,o,f)))return g.push(C)})){m=!1;break}}else if(!(h===c||a(h,c,r,o,f))){m=!1;break}}return f.delete(t),f.delete(e),m}var ft=vi;function Oi(t){var e=-1,r=Array(t.size);return t.forEach(function(o,a){r[++e]=[a,o]}),r}var Qe=Oi;function Ai(t){var e=-1,r=Array(t.size);return t.forEach(function(o){r[++e]=o}),r}var B=Ai;var Ti=1,wi=2,Si="[object Boolean]",Ci="[object Date]",Ei="[object Error]",Ii="[object Map]",Li="[object Number]",Mi="[object RegExp]",Ni="[object Set]",Ri="[object String]",Ki="[object Symbol]",ki="[object ArrayBuffer]",Yi="[object DataView]",tr=Ge?Ge.prototype:void 0,At=tr?tr.valueOf:void 0;function Xi(t,e,r,o,a,f,i){switch(r){case Yi:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case ki:if(t.byteLength!=e.byteLength||!f(new Vn(t),new Vn(e)))return!1;return!0;case Si:case Ci:case Li:return Ot(+t,+e);case Ei:return t.name==e.name&&t.message==e.message;case Mi:case Ri:return t==e+"";case Ii:var n=Qe;case Ni:var s=o&Ti;if(n||(n=B),t.size!=e.size&&!s)return!1;var p=i.get(t);if(p)return p==e;o|=wi,i.set(t,e);var d=ft(n(t),n(e),o,a,f,i);return i.delete(t),d;case Ki:if(At)return At.call(t)==At.call(e)}return!1}var er=Xi;var Zi=1,Ji=Object.prototype,Qi=Ji.hasOwnProperty;function tn(t,e,r,o,a,f){var i=r&Zi,n=Ta(t),s=n.length,p=Ta(e),d=p.length;if(s!=d&&!i)return!1;var l=s;while(l--){var m=n[l];if(!(i?m in e:Qi.call(e,m)))return!1}var g=f.get(t),h=f.get(e);if(g&&h)return g==e&&h==t;var c=!0;f.set(t,e),f.set(e,t);var v=i;while(++l<s){m=n[l];var P=t[m],C=e[m];if(o)var St=i?o(C,P,m,e,t,f):o(P,C,m,t,e,f);if(!(St===void 0?P===C||a(P,C,r,o,f):St)){c=!1;break}v||(v=m=="constructor")}if(c&&!v){var W=t.constructor,K=e.constructor;if(W!=K&&(("constructor"in t)&&("constructor"in e))&&!(typeof W=="function"&&W instanceof W&&typeof K=="function"&&K instanceof K))c=!1}return f.delete(t),f.delete(e),c}var rr=tn;var en=1,ar="[object Arguments]",fr="[object Array]",it="[object Object]",rn=Object.prototype,nr=rn.hasOwnProperty;function on(t,e,r,o,a,f){var i=te(t),n=te(e),s=i?fr:yt(t),p=n?fr:yt(e);s=s==ar?it:s,p=p==ar?it:p;var d=s==it,l=p==it,m=s==p;if(m&&Dt(t)){if(!Dt(e))return!1;i=!0,d=!1}if(m&&!d)return f||(f=new cr),i||qr(t)?ft(t,e,r,o,a,f):er(t,e,s,r,o,a,f);if(!(r&en)){var g=d&&nr.call(t,"__wrapped__"),h=l&&nr.call(e,"__wrapped__");if(g||h){var c=g?t.value():t,v=h?e.value():e;return f||(f=new cr),a(c,v,r,o,f)}}if(!m)return!1;return f||(f=new cr),rr(t,e,r,o,a,f)}var pr=on;function mr(t,e,r,o,a){if(t===e)return!0;if(t==null||e==null||!Oe(t)&&!Oe(e))return t!==t&&e!==e;return pr(t,e,r,o,mr,a)}var nt=mr;var an=1,fn=2;function nn(t,e,r,o){var a=r.length,f=a,i=!o;if(t==null)return!f;t=Object(t);while(a--){var n=r[a];if(i&&n[2]?n[1]!==t[n[0]]:!(n[0]in t))return!1}while(++a<f){n=r[a];var s=n[0],p=t[s],d=n[1];if(i&&n[2]){if(p===void 0&&!(s in t))return!1}else{var l=new cr;if(o)var m=o(p,d,s,t,e,l);if(!(m===void 0?nt(d,p,an|fn,o,l):m))return!1}}return!0}var dr=nn;function sn(t){return t===t&&!Te(t)}var ut=sn;function pn(t){var e=Ie(t),r=e.length;while(r--){var o=e[r],a=t[o];e[r]=[o,a,ut(a)]}return e}var xr=pn;function un(t,e){return function(r){if(r==null)return!1;return r[t]===e&&(e!==void 0||(t in Object(r)))}}var dt=un;function mn(t){var e=xr(t);if(e.length==1&&e[0][2])return dt(e[0][0],e[0][1]);return function(r){return r===t||dr(r,t,e)}}var hr=mn;function ln(t,e){return t!=null&&e in Object(t)}var gr=ln;function dn(t,e,r){e=jr(e,t);var o=-1,a=e.length,f=!1;while(++o<a){var i=lr(e[o]);if(!(f=t!=null&&r(t,i)))break;t=t[i]}if(f||++o!=a)return f;return a=t==null?0:t.length,!!a&&j(a)&&$r(i,a)&&(te(t)||Yt(t))}var ji=dn;function xn(t,e){return t!=null&&ji(t,e,gr)}var Gi=xn;var hn=1,cn=2;function gn(t,e){if(M(t)&&ut(e))return dt(lr(t),e);return function(r){var o=Ee(r,t);return o===void 0&&o===e?Gi(r,t):nt(e,o,hn|cn)}}var yr=gn;function yn(t){return function(e){return e==null?void 0:e[t]}}var Vi=yn;function _n(t){return function(e){return Gr(e,t)}}var _r=_n;function bn(t){return M(t)?Vi(lr(t)):_r(t)}var br=bn;function vn(t){if(typeof t=="function")return t;if(t==null)return pt;if(typeof t=="object")return te(t)?yr(t[0],t[1]):hr(t);return br(t)}var et=vn;function On(t){return function(e,r,o){var a=-1,f=Object(e),i=o(e),n=i.length;while(n--){var s=i[t?n:++a];if(r(f[s],s,f)===!1)break}return e}}var vr=On;var An=vr(),Wn=An;function Tn(t,e){return t&&Wn(t,e,Ie)}var Kn=Tn;function wn(t,e){return function(r,o){if(r==null)return r;if(!Ve(r))return t(r,o);var a=r.length,f=e?a:-1,i=Object(r);while(e?f--:++f<a)if(o(i[f],f,i)===!1)break;return r}}var Or=wn;var Sn=Or(Kn),Vr=Sn;function Pn(t){return Oe(t)&&Ve(t)}var Wi=Pn;function Cn(t,e,r){var o=-1,a=t==null?0:t.length;while(++o<a)if(r(e,t[o]))return!0;return!1}var Ar=Cn;function En(t){return typeof t=="function"?t:pt}var Yn=En;function In(t,e){var r=te(t)?Pi:Vr;return r(t,Yn(e))}var b=In;function Ln(t,e){var r=[];return Vr(t,function(o,a,f){if(e(o,a,f))r.push(o)}),r}var Tr=Ln;function Mn(t,e){var r=te(t)?Q:Tr;return r(t,et(e,3))}var lt=Mn;function Nn(t,e){return ir(e,function(r){return t[r]})}var wr=Nn;function Dn(t){return t==null?[]:wr(t,Ie(t))}var xt=Dn;var Rn="[object Map]",Fn="[object Set]",Bn=Object.prototype,zn=Bn.hasOwnProperty;function $n(t){if(t==null)return!0;if(Ve(t)&&(te(t)||typeof t=="string"||typeof t.splice=="function"||Dt(t)||qr(t)||Yt(t)))return!t.length;var e=yt(t);if(e==Rn||e==Fn)return!t.size;if(Hr(t))return!Un(t).length;for(var r in t)if(zn.call(t,r))return!1;return!0}var ht=$n;function kn(t){return t===void 0}var Re=kn;function Xn(t,e,r,o,a){return a(t,function(f,i,n){r=o?(o=!1,f):e(r,f,i,n)}),r}var Sr=Xn;function Zn(t,e,r){var o=te(t)?De:Sr,a=arguments.length<3;return o(t,et(e,4),r,a,Vr)}var ur=Zn;var Jn=1/0,Qn=!(S&&1/B(new S([,-0]))[1]==Jn)?zt:function(t){return new S(t)},Pr=Qn;var ts=200;function es(t,e,r){var o=-1,a=kt,f=t.length,i=!0,n=[],s=n;if(r)i=!1,a=Ar;else if(f>=ts){var p=e?null:Pr(t);if(p)return B(p);i=!1,a=at,s=new ot}else s=e?[]:n;t:while(++o<f){var d=t[o],l=e?e(d):d;if(d=r||d!==0?d:0,i&&l===l){var m=s.length;while(m--)if(s[m]===l)continue t;if(e)s.push(l);n.push(d)}else if(!a(s,l,r)){if(s!==n)s.push(l);n.push(d)}}return n}var Cr=es;var rs=zr(function(t){return Cr(jn(t,1,Wi,!0))}),Tt=rs;var as="\x00",L="\x00",Er="\x01";class ue{constructor(t={}){if(this._isDirected=Object.prototype.hasOwnProperty.call(t,"directed")?t.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(t,"multigraph")?t.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(t,"compound")?t.compound:!1,this._label=void 0,this._defaultNodeLabelFn=mt(void 0),this._defaultEdgeLabelFn=mt(void 0),this._nodes={},this._isCompound)this._parent={},this._children={},this._children[L]={};this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){if(!or(t))t=mt(t);return this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return Ie(this._nodes)}sources(){var t=this;return lt(this.nodes(),function(e){return ht(t._in[e])})}sinks(){var t=this;return lt(this.nodes(),function(e){return ht(t._out[e])})}setNodes(t,e){var r=arguments,o=this;return b(t,function(a){if(r.length>1)o.setNode(a,e);else o.setNode(a)}),this}setNode(t,e){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){if(arguments.length>1)this._nodes[t]=e;return this}if(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound)this._parent[t]=L,this._children[t]={},this._children[L][t]=!0;return this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var e=(r)=>this.removeEdge(this._edgeObjs[r]);if(delete this._nodes[t],this._isCompound)this._removeFromParentsChildList(t),delete this._parent[t],b(this.children(t),(r)=>{this.setParent(r)}),delete this._children[t];b(Ie(this._in[t]),e),delete this._in[t],delete this._preds[t],b(Ie(this._out[t]),e),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,e){if(!this._isCompound)throw Error("Cannot set parent in a non-compound graph");if(Re(e))e=L;else{e+="";for(var r=e;!Re(r);r=this.parent(r))if(r===t)throw Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var e=this._parent[t];if(e!==L)return e}}children(t){if(Re(t))t=L;if(this._isCompound){var e=this._children[t];if(e)return Ie(e)}else if(t===L)return this.nodes();else if(this.hasNode(t))return[]}predecessors(t){var e=this._preds[t];if(e)return Ie(e)}successors(t){var e=this._sucs[t];if(e)return Ie(e)}neighbors(t){var e=this.predecessors(t);if(e)return Tt(e,this.successors(t))}isLeaf(t){var e;if(this.isDirected())e=this.successors(t);else e=this.neighbors(t);return e.length===0}filterNodes(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var r=this;b(this._nodes,function(f,i){if(t(i))e.setNode(i,f)}),b(this._edgeObjs,function(f){if(e.hasNode(f.v)&&e.hasNode(f.w))e.setEdge(f,r.edge(f))});var o={};function a(f){var i=r.parent(f);if(i===void 0||e.hasNode(i))return o[f]=i,i;else if(i in o)return o[i];else return a(i)}if(this._isCompound)b(e.nodes(),function(f){e.setParent(f,a(f))});return e}setDefaultEdgeLabel(t){if(!or(t))t=mt(t);return this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return xt(this._edgeObjs)}setPath(t,e){var r=this,o=arguments;return ur(t,function(a,f){if(o.length>1)r.setEdge(a,f,e);else r.setEdge(a,f);return f}),this}setEdge(){var t,e,r,o,a=!1,f=arguments[0];if(typeof f==="object"&&f!==null&&"v"in f){if(t=f.v,e=f.w,r=f.name,arguments.length===2)o=arguments[1],a=!0}else if(t=f,e=arguments[1],r=arguments[3],arguments.length>2)o=arguments[2],a=!0;if(t=""+t,e=""+e,!Re(r))r=""+r;var i=z(this._isDirected,t,e,r);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,i)){if(a)this._edgeLabels[i]=o;return this}if(!Re(r)&&!this._isMultigraph)throw Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[i]=a?o:this._defaultEdgeLabelFn(t,e,r);var n=fs(this._isDirected,t,e,r);return t=n.v,e=n.w,Object.freeze(n),this._edgeObjs[i]=n,Ir(this._preds[e],t),Ir(this._sucs[t],e),this._in[e][i]=n,this._out[t][i]=n,this._edgeCount++,this}edge(t,e,r){var o=arguments.length===1?wt(this._isDirected,arguments[0]):z(this._isDirected,t,e,r);return this._edgeLabels[o]}hasEdge(t,e,r){var o=arguments.length===1?wt(this._isDirected,arguments[0]):z(this._isDirected,t,e,r);return Object.prototype.hasOwnProperty.call(this._edgeLabels,o)}removeEdge(t,e,r){var o=arguments.length===1?wt(this._isDirected,arguments[0]):z(this._isDirected,t,e,r),a=this._edgeObjs[o];if(a)t=a.v,e=a.w,delete this._edgeLabels[o],delete this._edgeObjs[o],Lr(this._preds[e],t),Lr(this._sucs[t],e),delete this._in[e][o],delete this._out[t][o],this._edgeCount--;return this}inEdges(t,e){var r=this._in[t];if(r){var o=xt(r);if(!e)return o;return lt(o,function(a){return a.v===e})}}outEdges(t,e){var r=this._out[t];if(r){var o=xt(r);if(!e)return o;return lt(o,function(a){return a.w===e})}}nodeEdges(t,e){var r=this.inEdges(t,e);if(r)return r.concat(this.outEdges(t,e))}}ue.prototype._nodeCount=0;ue.prototype._edgeCount=0;function Ir(t,e){if(t[e])t[e]++;else t[e]=1}function Lr(t,e){if(!--t[e])delete t[e]}function z(t,e,r,o){var a=""+e,f=""+r;if(!t&&a>f){var i=a;a=f,f=i}return a+Er+f+Er+(Re(o)?as:o)}function fs(t,e,r,o){var a=""+e,f=""+r;if(!t&&a>f){var i=a;a=f,f=i}var n={v:a,w:f};if(o)n.name=o;return n}function wt(t,e){return z(t,e.v,e.w,e.name)}
|
|
2
|
-
export{Le,Ge,st,Oe,vt,ir,te,Te,pt,or,mt,Hn,Di,Pi,Bi,$r,Ot,Fi,zr,Ve,Hr,Yt,Dt,Ur,sr,qr,$i,zi,Un,Ie,Hi,jr,lr,Gr,qn,jn,cr,Ui,Gn,qi,Ta,yt,Vn,ji,Gi,Vi,et,Wn,Kn,Vr,Wi,Yn,b,lt,xt,Re,ur,ue};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Jo}from"./index.7gxz6d1f.js";export{Jo as createInfoServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{de,ye,f,ie,d,l,w,i,o,r,a}from"./index.e35b4yh5.js";function c(){return c=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var s=arguments[e];for(var p in s)({}).hasOwnProperty.call(s,p)&&(t[p]=s[p])}return t},c.apply(null,arguments)}function U(t,e){if(t==null)return{};var s={};for(var p in t)if({}.hasOwnProperty.call(t,p)){if(e.indexOf(p)!==-1)continue;s[p]=t[p]}return s}var or=255,fr=360,Y=100,er=(t)=>{var{r:e,g:s,b:p,a:b}=t,n=Math.max(e,s,p),v=n-Math.min(e,s,p),x=v?n===e?(s-p)/v:n===s?2+(p-e)/v:4+(e-s)/v:0;return{h:60*(x<0?x+6:x),s:n?v/n*Y:0,v:n/or*Y,a:b}},Rr=(t)=>{var e=hr(t),{h:s,s:p,l:b,a:n}=e;return"hsla("+s+", "+p+"%, "+b+"%, "+n+")"},sr=(t)=>{var{h:e,s,l:p,a:b}=t;return s*=(p<50?p:Y-p)/Y,{h:e,s:s>0?2*s/(p+s)*Y:0,v:p+s,a:b}},hr=(t)=>{var{h:e,s,v:p,a:b}=t,n=(200-s)*p/Y;return{h:e,s:n>0&&n<200?s*p/Y/(n<=Y?n:200-n)*Y:0,l:n/2,a:b}};fr/400,fr/(Math.PI*2);var Br=(t)=>{var{r:e,g:s,b:p}=t;return"#"+((b)=>Array(7-b.length).join("0")+b)((e<<16|s<<8|p).toString(16))},kr=(t)=>{var{r:e,g:s,b:p,a:b}=t,n=typeof b=="number"&&(b*255|256).toString(16).slice(1);return""+Br({r:e,g:s,b:p})+(n||"")},Z=(t)=>er(Mr(t)),Mr=(t)=>{var e=t.replace("#","");/^#?/.test(t)&&e.length===3&&(t="#"+e.charAt(0)+e.charAt(0)+e.charAt(1)+e.charAt(1)+e.charAt(2)+e.charAt(2));var s=RegExp("[A-Za-z0-9]{2}","g"),p=t.match(s).map((x)=>parseInt(x,16)),b=p[0],n=p[1],v=p[2];return{r:b,g:n,b:v===void 0?0:v,a:(p[3]??255)/or}},nr=(t)=>{var{h:e,s,v:p,a:b}=t,n=e/60,v=s/Y,x=p/Y,A=Math.floor(n)%6;A<0&&(A+=6);var R=n-Math.floor(n),L=or*x*(1-v),y=or*x*(1-v*R),k=or*x*(1-v*(1-R));x*=or;var C={};switch(A){case 0:C.r=x,C.g=k,C.b=L;break;case 1:C.r=y,C.g=x,C.b=L;break;case 2:C.r=L,C.g=x,C.b=k;break;case 3:C.r=L,C.g=y,C.b=x;break;case 4:C.r=k,C.g=L,C.b=x;break;case 5:C.r=x,C.g=L,C.b=y}return C.r=Math.round(C.r),C.g=Math.round(C.g),C.b=Math.round(C.b),c({},C,{a:b})},zr=(t)=>{var e=nr(t),{r:s,g:p,b,a:n}=e;return"rgba("+s+", "+p+", "+b+", "+n+")"},Ir=(t)=>({r:t.r,g:t.g,b:t.b}),Hr=(t)=>({h:t.h,s:t.s,l:t.l}),cr=(t)=>Br(nr(t)),jr=(t)=>kr(nr(t)),Fr=(t)=>({h:t.h,s:t.s,v:t.v}),Gr=(t)=>{var{r:e,g:s,b:p}=t,b=function(R){return R<=0.04045?R/12.92:((R+0.055)/1.055)**2.4},n=b(e/255),v=b(s/255),x=b(p/255),A={};return A.x=n*0.4124+v*0.3576+x*0.1805,A.y=n*0.2126+v*0.7152+x*0.0722,A.bri=n*0.0193+v*0.1192+x*0.9505,A},_=(t)=>{var e,s,p,b,n,v,x,A,R;return typeof t=="string"&&ur(t)?(v=Z(t),A=t):typeof t!="string"&&(v=t),v&&(p=Fr(v),n=hr(v),b=nr(v),R=kr(b),A=cr(v),s=Hr(n),e=Ir(b),x=Gr(e)),{rgb:e,hsl:s,hsv:p,rgba:b,hsla:n,hsva:v,hex:A,hexa:R,xy:x}},ur=(t)=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(t);function Or(t){if(t==null)throw TypeError("Cannot destructure "+t)}var Wr=["prefixCls","className","color","colors","style","rectProps","onChange","addonAfter","addonBefore","rectRender"],Sr=f((t,e)=>{var s=t.prefixCls,p=s===void 0?"w-color-swatch":s,{className:b,color:n,colors:v}=t,x=v===void 0?[]:v,{style:A,rectProps:R}=t,L=R===void 0?{}:R,{onChange:y,addonAfter:k,addonBefore:C,rectRender:D}=t,T=U(t,Wr),S=c({"--swatch-background-color":"rgb(144, 19, 254)",background:"var(--swatch-background-color)",height:15,width:15,marginRight:5,marginBottom:5,cursor:"pointer",position:"relative",outline:"none",borderRadius:2},L.style),B=(N,u)=>{y&&y(Z(N),_(Z(N)),u)};return a("div",c({ref:e},T,{className:[p,b||""].filter(Boolean).join(" "),style:c({display:"flex",flexWrap:"wrap",position:"relative"},A),children:[C&&ie(C)&&C,x&&Array.isArray(x)&&x.map((N,u)=>{var E="",g="";typeof N=="string"&&(E=N,g=N),typeof N=="object"&&N.color&&(E=N.title||N.color,g=N.color);var M=n&&n.toLocaleLowerCase()===g.toLocaleLowerCase(),m=D&&D({title:E,color:g,checked:!!M,style:c({},S,{background:g}),onClick:(P)=>B(g,P)});if(m)return r(de,{children:m},u);var h=L.children&&ie(L.children)?ye(L.children,{color:g,checked:M}):null;return r("div",c({tabIndex:0,title:E,onClick:(P)=>B(g,P)},L,{children:h,style:c({},S,{background:g})}),u)}),k&&ie(k)&&k]}))});Sr.displayName="Swatch";var Ur={marginRight:0,marginBottom:0,borderRadius:0,boxSizing:"border-box",height:25,width:25};function Xr(t){var{style:e,title:s,checked:p}=t;t.color;var{onClick:b,rectProps:n}=t,v=i(null),x=d(()=>{v.current.style.zIndex="2",v.current.style.outline="#fff solid 2px",v.current.style.boxShadow="rgb(0 0 0 / 25%) 0 0 5px 2px"},[]),A=d(()=>{p||(v.current.style.zIndex="0",v.current.style.outline="initial",v.current.style.boxShadow="initial")},[p]);return r("div",c({ref:v,title:s},n,{onClick:b,onMouseEnter:x,onMouseLeave:A,style:c({},e,{marginRight:0,marginBottom:0,borderRadius:0,boxSizing:"border-box",height:25,width:25},Ur,p?{zIndex:1,outline:"#fff solid 2px",boxShadow:"rgb(0 0 0 / 25%) 0 0 5px 2px"}:{zIndex:0},n?.style)}))}var Yr=["prefixCls","placement","className","style","color","colors","showTriangle","rectProps","onChange","rectRender"],_r=["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],I=function(t){return t.Left="L",t.LeftTop="LT",t.LeftBottom="LB",t.Right="R",t.RightTop="RT",t.RightBottom="RB",t.Top="T",t.TopRight="TR",t.TopLeft="TL",t.Bottom="B",t.BottomLeft="BL",t.BottomRight="BR",t}({}),Pr=f((t,e)=>{var s=t.prefixCls,p=s===void 0?"w-color-github":s,b=t.placement,n=b===void 0?I.TopRight:b,{className:v,style:x,color:A,colors:R}=t,L=R===void 0?_r:R,y=t.showTriangle,k=y===void 0||y,C=t.rectProps,D=C===void 0?{}:C,{onChange:T,rectRender:S}=t,B=U(t,Yr),N=typeof A=="string"&&ur(A)?Z(A):A,u=A?cr(N):"",E=(P)=>T&&T(_(P)),g=c({"--github-border":"1px solid rgba(0, 0, 0, 0.2)","--github-background-color":"#fff","--github-box-shadow":"rgb(0 0 0 / 15%) 0px 3px 12px","--github-arrow-border-color":"rgba(0, 0, 0, 0.15)",width:200,borderRadius:4,background:"var(--github-background-color)",boxShadow:"var(--github-box-shadow)",border:"var(--github-border)",position:"relative",padding:5},x),M={borderStyle:"solid",position:"absolute"},m=c({},M),h=c({},M);return/^T/.test(n)&&(m.borderWidth="0 8px 8px",m.borderColor="transparent transparent var(--github-arrow-border-color)",h.borderWidth="0 7px 7px",h.borderColor="transparent transparent var(--github-background-color)"),n===I.TopRight&&(m.top=-8,h.top=-7),n===I.Top&&(m.top=-8,h.top=-7),n===I.TopLeft&&(m.top=-8,h.top=-7),/^B/.test(n)&&(m.borderWidth="8px 8px 0",m.borderColor="var(--github-arrow-border-color) transparent transparent",h.borderWidth="7px 7px 0",h.borderColor="var(--github-background-color) transparent transparent",n===I.BottomRight&&(m.top="100%",h.top="100%"),n===I.Bottom&&(m.top="100%",h.top="100%"),n===I.BottomLeft&&(m.top="100%",h.top="100%")),/^(B|T)/.test(n)&&((n===I.Top||n===I.Bottom)&&(m.left="50%",m.marginLeft=-8,h.left="50%",h.marginLeft=-7),(n===I.TopRight||n===I.BottomRight)&&(m.right=10,h.right=11),(n===I.TopLeft||n===I.BottomLeft)&&(m.left=7,h.left=8)),/^L/.test(n)&&(m.borderWidth="8px 8px 8px 0",m.borderColor="transparent var(--github-arrow-border-color) transparent transparent",h.borderWidth="7px 7px 7px 0",h.borderColor="transparent var(--github-background-color) transparent transparent",m.left=-8,h.left=-7),/^R/.test(n)&&(m.borderWidth="8px 0 8px 8px",m.borderColor="transparent transparent transparent var(--github-arrow-border-color)",h.borderWidth="7px 0 7px 7px",h.borderColor="transparent transparent transparent var(--github-background-color)",m.right=-8,h.right=-7),/^(L|R)/.test(n)&&((n===I.RightTop||n===I.LeftTop)&&(m.top=5,h.top=6),(n===I.Left||n===I.Right)&&(m.top="50%",h.top="50%",m.marginTop=-8,h.marginTop=-7),(n===I.LeftBottom||n===I.RightBottom)&&(m.top="100%",h.top="100%",m.marginTop=-21,h.marginTop=-20)),r(Sr,c({ref:e,className:[p,v].filter(Boolean).join(" "),colors:L,color:u,rectRender:(P)=>{var j=c({},(Or(P),P));return S&&S(c({},j))||r(Xr,c({},j,{rectProps:D}))}},B,{onChange:E,style:g,rectProps:{style:{marginRight:0,marginBottom:0,borderRadius:0,height:25,width:25}},addonBefore:r(de,{children:k&&a(de,{children:[r("div",{style:m}),r("div",{style:h})]})})}))});Pr.displayName="Github";function mr(t){var e=i(t);return l(()=>{e.current=t}),d((s,p)=>e.current&&e.current(s,p),[])}var ar=(t)=>("touches"in t),xr=(t)=>{!ar(t)&&t.preventDefault&&t.preventDefault()},yr=function(t,e,s){return e===void 0&&(e=0),s===void 0&&(s=1),t>s?s:t<e?e:t},wr=(t,e)=>{var s=t.getBoundingClientRect(),p=ar(e)?e.touches[0]:e;return{left:yr((p.pageX-(s.left+window.pageXOffset))/s.width),top:yr((p.pageY-(s.top+window.pageYOffset))/s.height),width:s.width,height:s.height,x:p.pageX-(s.left+window.pageXOffset),y:p.pageY-(s.top+window.pageYOffset)}},Vr=["prefixCls","className","onMove","onDown"],gr=f((t,e)=>{var s=t.prefixCls,p=s===void 0?"w-color-interactive":s,{className:b,onMove:n,onDown:v}=t,x=U(t,Vr),A=i(null),R=i(!1),L=o(!1),y=L[0],k=L[1],C=mr(n),D=mr(v),T=(g)=>R.current&&!ar(g)?!1:(R.current=ar(g),!0),S=d((g)=>{xr(g),A.current&&((ar(g)?g.touches.length>0:g.buttons>0)?C?.(wr(A.current,g),g):k(!1))},[C]),B=d(()=>k(!1),[]),N=d((g)=>{g?(window.addEventListener(R.current?"touchmove":"mousemove",S),window.addEventListener(R.current?"touchend":"mouseup",B)):(window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",B),window.removeEventListener("touchmove",S),window.removeEventListener("touchend",B))},[S,B]);l(()=>(N(y),()=>{N(!1)}),[y,S,B,N]);var u=d((g)=>{document.activeElement?.blur(),xr(g.nativeEvent),T(g.nativeEvent)&&A.current&&(D?.(wr(A.current,g.nativeEvent),g.nativeEvent),k(!0))},[D]),E=d((g)=>{A.current=g,typeof e=="function"?e(g):e&&(e.current=g)},[e]);return r("div",c({},x,{className:[p,b||""].filter(Boolean).join(" "),style:c({},x.style,{touchAction:"none"}),ref:E,tabIndex:0,onMouseDown:u,onTouchStart:u}))});gr.displayName="Interactive";var Jr=(t)=>{var{className:e,color:s,left:p,top:b,prefixCls:n}=t,v={position:"absolute",top:b,left:p},x={"--saturation-pointer-box-shadow":"rgb(255 255 255) 0px 0px 0px 1.5px, rgb(0 0 0 / 30%) 0px 0px 1px 1px inset, rgb(0 0 0 / 40%) 0px 0px 1px 2px",width:6,height:6,transform:"translate(-3px, -3px)",boxShadow:"var(--saturation-pointer-box-shadow)",borderRadius:"50%",backgroundColor:s};return w(()=>r("div",{className:n+"-pointer "+(e||""),style:v,children:r("div",{className:n+"-fill",style:x})}),[b,p,s,e,n])},Kr=["prefixCls","radius","pointer","className","hue","style","hsva","onChange"],Nr=f((t,e)=>{var s=t.prefixCls,p=s===void 0?"w-color-saturation":s,b=t.radius,n=b===void 0?0:b,{pointer:v,className:x,hue:A}=t,R=A===void 0?0:A,{style:L,hsva:y,onChange:k}=t,C=U(t,Kr),D=c({width:200,height:200,borderRadius:n},L,{position:"relative"}),T=i(null),S=d((g)=>{T.current=g,typeof e=="function"?e(g):e&&("current"in e)&&(e.current=g)},[e]),B=d((g,M)=>{k&&y&&k({h:y.h,s:g.left*100,v:(1-g.top)*100,a:y.a});var m=T.current;m&&m.focus()},[y,k]),N=d((g)=>{if(y&&k){var M=1,{s:m,v:h}=y;switch(g.key){case"ArrowLeft":m=Math.max(0,y.s-M),g.preventDefault();break;case"ArrowRight":m=Math.min(100,y.s+M),g.preventDefault();break;case"ArrowUp":h=Math.min(100,y.v+M),g.preventDefault();break;case"ArrowDown":h=Math.max(0,y.v-M),g.preventDefault();break;default:return}k({h:y.h,s:m,v:h,a:y.a})}},[y,k]),u=w(()=>{if(!y)return null;var g={top:100-y.v+"%",left:y.s+"%",color:Rr(y)};return v&&typeof v=="function"?v(c({prefixCls:p},g)):r(Jr,c({prefixCls:p},g))},[y,v,p]),E=d((g)=>{g.target.focus()},[]);return r(gr,c({className:[p,x||""].filter(Boolean).join(" ")},C,{style:c({position:"absolute",inset:0,cursor:"crosshair",backgroundImage:"linear-gradient(0deg, #000, transparent), linear-gradient(90deg, #fff, hsl("+(y?.h??R)+", 100%, 50%))"},D,{outline:"none"}),ref:S,onMove:B,onDown:B,onKeyDown:N,onClick:E,children:u}))});Nr.displayName="Saturation";var Qr=["className","prefixCls","left","top","style","fillProps"],Zr=(t)=>{var{className:e,prefixCls:s,left:p,top:b,style:n,fillProps:v}=t,x=U(t,Qr),A=c({},n,{position:"absolute",left:p,top:b}),R=c({width:18,height:18,boxShadow:"var(--alpha-pointer-box-shadow)",borderRadius:"50%",backgroundColor:"var(--alpha-pointer-background-color)"},v?.style,{transform:p?"translate(-9px, -1px)":"translate(-1px, -9px)"});return r("div",c({className:s+"-pointer "+(e||""),style:A},x,{children:r("div",c({className:s+"-fill"},v,{style:R}))}))},$r=["prefixCls","className","hsva","background","bgProps","innerProps","pointerProps","radius","width","height","direction","reverse","style","onChange","pointer"],qr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==",pr=f((t,e)=>{var s=t.prefixCls,p=s===void 0?"w-color-alpha":s,{className:b,hsva:n,background:v,bgProps:x}=t,A=x===void 0?{}:x,R=t.innerProps,L=R===void 0?{}:R,y=t.pointerProps,k=y===void 0?{}:y,C=t.radius,D=C===void 0?0:C,{width:T,height:S}=t,B=S===void 0?16:S,N=t.direction,u=N===void 0?"horizontal":N,E=t.reverse,g=E!==void 0&&E,{style:M,onChange:m,pointer:h}=t,P=U(t,$r),j=d((H)=>{var O=u==="horizontal"?H.left:H.top;return u==="horizontal"?g?1-O:O:g?O:1-O},[u,g]),X=d((H)=>u==="horizontal"?g?1-H:H:g?H:1-H,[u,g]),W=(H)=>{var O=j(H);m&&m(c({},n,{a:O}),H)},z=Rr(Object.assign({},n,{a:1})),F=g?"linear-gradient(to right, "+z+" 0%, rgba(244, 67, 54, 0) 100%)":"linear-gradient(to right, rgba(244, 67, 54, 0) 0%, "+z+" 100%)",q=g?"linear-gradient(to bottom, rgba(244, 67, 54, 0) 0%, "+z+" 100%)":"linear-gradient(to bottom, "+z+" 0%, rgba(244, 67, 54, 0) 100%)",dr=u==="horizontal"?F:q,rr={};u==="horizontal"?rr.left=X(n.a)*100+"%":rr.top=X(n.a)*100+"%";var lr=c({"--alpha-background-color":"#fff","--alpha-pointer-background-color":"rgb(248, 248, 248)","--alpha-pointer-box-shadow":"rgb(0 0 0 / 37%) 0px 1px 4px 0px",borderRadius:D,background:"url("+qr+") left center",backgroundColor:"var(--alpha-background-color)"},{width:T,height:B},M,{position:"relative"}),ir=d((H)=>{var O=0.01,V=n.a,Q=V;switch(H.key){case"ArrowLeft":u==="horizontal"&&(Q=g?Math.min(1,V+O):Math.max(0,V-O),H.preventDefault());break;case"ArrowRight":u==="horizontal"&&(Q=g?Math.max(0,V-O):Math.min(1,V+O),H.preventDefault());break;case"ArrowUp":u==="vertical"&&(Q=g?Math.max(0,V-O):Math.min(1,V+O),H.preventDefault());break;case"ArrowDown":u==="vertical"&&(Q=g?Math.min(1,V+O):Math.max(0,V-O),H.preventDefault());break;default:return}if(Q!==V){var br=X(Q),Tr={left:u==="horizontal"?br:n.a,top:u==="vertical"?br:n.a,width:0,height:0,x:0,y:0};m&&m(c({},n,{a:Q}),Tr)}},[X,n,u,m,g]),G=d((H)=>{H.target.focus()},[]),K=h&&typeof h=="function"?h(c({prefixCls:p},k,rr)):r(Zr,c({},k,{prefixCls:p},rr));return a("div",c({},P,{className:[p,p+"-"+u,b||""].filter(Boolean).join(" "),style:lr,ref:e,children:[r("div",c({},A,{style:c({inset:0,position:"absolute",background:v||dr,borderRadius:D},A.style)})),r(gr,c({},L,{style:c({},L.style,{inset:0,zIndex:1,position:"absolute",outline:"none"}),onMove:W,onDown:W,onClick:G,onKeyDown:ir,children:K}))]}))});pr.displayName="Alpha";var ro=["prefixCls","className","hue","onChange","direction","reverse"],Cr="rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%",Ar="rgb(255, 0, 0) 0%, rgb(255, 0, 255) 17%, rgb(0, 0, 255) 33%, rgb(0, 255, 255) 50%, rgb(0, 255, 0) 67%, rgb(255, 255, 0) 83%, rgb(255, 0, 0) 100%",Lr=f((t,e)=>{var s=t.prefixCls,p=s===void 0?"w-color-hue":s,{className:b,hue:n}=t,v=n===void 0?0:n,{onChange:x,direction:A}=t,R=A===void 0?"horizontal":A,L=t.reverse,y=L!==void 0&&L,k=U(t,ro),C=d(()=>R==="horizontal"?"linear-gradient(to right, "+(y?Ar:Cr)+")":"linear-gradient(to bottom, "+(y?Cr:Ar)+")",[R,y]),D=d((S)=>{var B=R==="horizontal"?S.left:S.top;return 360*(R==="horizontal"?y?1-B:B:y?B:1-B)},[R,y]),T=w(()=>C(),[C]);return r(pr,c({ref:e,className:p+" "+(b||"")},k,{direction:R,reverse:y,background:T,hsva:{h:v,s:100,v:100,a:v/360},onChange:(S,B)=>{x&&x({h:D(B)})}}))});Lr.displayName="Hue";var oo=["prefixCls","placement","label","value","className","style","labelStyle","inputStyle","onChange","onBlur","renderInput"],to=(t)=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(t),eo=(t)=>Number(String(t).replace(/%/g,"")),tr=f((t,e)=>{var s=t.prefixCls,p=s===void 0?"w-color-editable-input":s,b=t.placement,n=b===void 0?"bottom":b,{label:v,value:x,className:A,style:R,labelStyle:L,inputStyle:y,onChange:k,onBlur:C,renderInput:D}=t,T=U(t,oo),S=o(x),B=S[0],N=S[1],u=i(!1),E=i(T.id||p+"-"+Math.random().toString(36).slice(2,11)),g=T.id||E.current;l(()=>{t.value!==B&&(u.current||N(t.value))},[t.value]);function M(W,z){var F=(z||W.target.value).trim().replace(/^#/,"");to(F)&&k&&k(W,F);var q=eo(F);isNaN(q)||k&&k(W,q),N(F)}function m(W){u.current=!1,N(t.value),C&&C(W)}var h={};n==="bottom"&&(h.flexDirection="column"),n==="top"&&(h.flexDirection="column-reverse"),n==="left"&&(h.flexDirection="row-reverse");var P=c({"--editable-input-label-color":"rgb(153, 153, 153)","--editable-input-box-shadow":"rgb(204 204 204) 0px 0px 0px 1px inset","--editable-input-color":"#666",position:"relative",alignItems:"center",display:"flex",fontSize:11},h,R),j=c({width:"100%",paddingTop:2,paddingBottom:2,paddingLeft:3,paddingRight:3,fontSize:11,background:"transparent",boxSizing:"border-box",border:"none",color:"var(--editable-input-color)",boxShadow:"var(--editable-input-box-shadow)"},y),X=c({value:B,onChange:M,onBlur:m,autoComplete:"off",onFocus:()=>u.current=!0},T,{id:g,style:j,onFocusCapture:(W)=>{var z=W.target;z.setSelectionRange(z.value.length,z.value.length)}});return a("div",{className:[p,A||""].filter(Boolean).join(" "),style:P,children:[D?D(X,e):r("input",c({ref:e},X)),v&&r("label",{htmlFor:g,style:c({color:"var(--editable-input-label-color)",textTransform:"capitalize"},L),children:v})]})});tr.displayName="EditableInput";var ao=["prefixCls","hsva","placement","rProps","gProps","bProps","aProps","className","style","onChange"],vr=f((t,e)=>{var s=t.prefixCls,p=s===void 0?"w-color-editable-input-rgba":s,{hsva:b,placement:n}=t,v=n===void 0?"bottom":n,x=t.rProps,A=x===void 0?{}:x,R=t.gProps,L=R===void 0?{}:R,y=t.bProps,k=y===void 0?{}:y,C=t.aProps,D=C===void 0?{}:C,{className:T,style:S,onChange:B}=t,N=U(t,ao),u=b?nr(b):{};function E(h){var P=Number(h.target.value);P&&P>255&&(h.target.value="255"),P&&P<0&&(h.target.value="0")}var g=(h)=>{var P=Number(h.target.value);P&&P>100&&(h.target.value="100"),P&&P<0&&(h.target.value="0")},M=(h,P,j)=>{typeof h=="number"&&(P==="a"&&(h<0&&(h=0),h>100&&(h=100),B&&B(_(er(c({},u,{a:h/100}))))),h>255&&(h=255,j.target.value="255"),h<0&&(h=0,j.target.value="0"),P==="r"&&B&&B(_(er(c({},u,{r:h})))),P==="g"&&B&&B(_(er(c({},u,{g:h})))),P==="b"&&B&&B(_(er(c({},u,{b:h})))))},m=u.a?Math.round(u.a*100)/100:0;return a("div",c({ref:e,className:[p,T||""].filter(Boolean).join(" ")},N,{style:c({fontSize:11,display:"flex"},S),children:[r(tr,c({label:"R",value:u.r||0,onBlur:E,placement:v,onChange:(h,P)=>M(P,"r",h)},A,{style:c({},A.style)})),r(tr,c({label:"G",value:u.g||0,onBlur:E,placement:v,onChange:(h,P)=>M(P,"g",h)},L,{style:c({marginLeft:5},L.style)})),r(tr,c({label:"B",value:u.b||0,onBlur:E,placement:v,onChange:(h,P)=>M(P,"b",h)},k,{style:c({marginLeft:5},k.style)})),D&&r(tr,c({label:"A",value:parseInt(String(m*100),10),onBlur:g,placement:v,onChange:(h,P)=>M(P,"a",h)},D,{style:c({marginLeft:5},D.style)}))]}))});vr.displayName="EditableInputRGBA";var no=["prefixCls","hsva","hProps","sProps","lProps","aProps","className","onChange"],Er=f((t,e)=>{var s=t.prefixCls,p=s===void 0?"w-color-editable-input-hsla":s,{hsva:b,hProps:n}=t,v=n===void 0?{}:n,x=t.sProps,A=x===void 0?{}:x,R=t.lProps,L=R===void 0?{}:R,y=t.aProps,k=y===void 0?{}:y,{className:C,onChange:D}=t,T=U(t,no),S=b?hr(b):{h:0,s:0,l:0,a:0},B=(u,E,g)=>{typeof u=="number"&&(E==="h"&&(u<0&&(u=0),u>360&&(u=360),D&&D(_(sr(c({},S,{h:u}))))),E==="s"&&(u<0&&(u=0),u>100&&(u=100),D&&D(_(sr(c({},S,{s:u}))))),E==="l"&&(u<0&&(u=0),u>100&&(u=100),D&&D(_(sr(c({},S,{l:u}))))),E==="a"&&(u<0&&(u=0),u>1&&(u=1),D&&D(_(sr(c({},S,{a:u}))))))},N=k!=0&&c({label:"A",value:Math.round(S.a*100)/100},k,{onChange:(u,E)=>B(E,"a",u)});return r(vr,c({ref:e,hsva:b,rProps:c({label:"H",value:Math.round(S.h)},v,{onChange:(u,E)=>B(E,"h",u)}),gProps:c({label:"S",value:Math.round(S.s)+"%"},A,{onChange:(u,E)=>B(E,"s",u)}),bProps:c({label:"L",value:Math.round(S.l)+"%"},L,{onChange:(u,E)=>B(E,"l",u)}),aProps:N,className:[p,C||""].filter(Boolean).join(" ")},T))});Er.displayName="EditableInputHSLA";var lo=["style"];function io(t){var e=t.style,s=U(t,lo),p=i(null),b=d(()=>{p.current.style.backgroundColor="var(--chrome-arrow-background-color)"},[]),n=d(()=>{p.current.style.backgroundColor="transparent"},[]);return r("div",c({ref:p,style:c({marginLeft:5,cursor:"pointer",transition:"background-color .3s",borderRadius:2},e)},s,{onMouseEnter:b,onMouseLeave:n,children:r("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24",style:{display:"block"},children:r("path",{d:"M373.888 576h276.224c9.322667 0 14.293333 11.178667 9.173333 18.773333l-1.258666 1.557334-138.112 146.858666a10.709333 10.709333 0 0 1-14.293334 1.365334l-1.536-1.365334-138.112-146.858666c-6.592-6.997333-2.666667-18.645333 5.973334-20.16l1.941333-0.170667h276.224-276.224z m146.026667-295.189333l138.112 146.858666c7.04 7.509333 2.069333 20.330667-7.914667 20.330667H373.888c-9.984 0-14.976-12.821333-7.914667-20.330667l138.112-146.858666a10.730667 10.730667 0 0 1 15.829334 0z",fill:"var(--chrome-arrow-fill)"})})}))}function so(){return"EyeDropper"in window}function po(t){return r("svg",{viewBox:"0 0 512 512",height:"1em",width:"1em",onClick:()=>{"EyeDropper"in window&&new window.EyeDropper().open().then((e)=>{t.onPickColor==null||t.onPickColor(e.sRGBHex)}).catch((e)=>{e.name})},children:r("path",{fill:"currentColor",d:"M482.8 29.23c38.9 38.98 38.9 102.17 0 141.17L381.2 271.9l9.4 9.5c12.5 12.5 12.5 32.7 0 45.2s-32.7 12.5-45.2 0l-160-160c-12.5-12.5-12.5-32.7 0-45.2s32.7-12.5 45.2 0l9.5 9.4L341.6 29.23c39-38.974 102.2-38.974 141.2 0zM55.43 323.3 176.1 202.6l45.3 45.3-120.7 120.7c-3.01 3-4.7 7-4.7 11.3V416h36.1c4.3 0 8.3-1.7 11.3-4.7l120.7-120.7 45.3 45.3-120.7 120.7c-15 15-35.4 23.4-56.6 23.4H89.69l-39.94 26.6c-12.69 8.5-29.59 6.8-40.377-4-10.786-10.8-12.459-27.7-3.998-40.4L32 422.3v-42.4c0-21.2 8.43-41.6 23.43-56.6z"})})}var ho=["prefixCls","className","style","color","showEditableInput","showEyeDropper","showColorPreview","showHue","showAlpha","horizontal","inputType","rectProps","onChange"],J=function(t){return t.HEXA="hexa",t.RGBA="rgba",t.HSLA="hsla",t}({}),Dr=f((t,e)=>{var s=t.prefixCls,p=s===void 0?"w-color-chrome":s,{className:b,style:n,color:v,showEditableInput:x}=t,A=x===void 0||x,R=t.showEyeDropper,L=R===void 0||R,y=t.showColorPreview,k=y===void 0||y,C=t.showHue,D=C===void 0||C,T=t.showAlpha,S=T===void 0||T,B=t.horizontal,N=B!==void 0&&B,u=t.inputType,E=u===void 0?J.RGBA:u;t.rectProps;var g=t.onChange,M=U(t,ho),m=typeof v=="string"&&ur(v)?Z(v):v||{h:0,s:0,l:0,a:0},h=(G)=>g&&g(_(G)),P=o(E),j=P[0],X=P[1],W=()=>{j===J.RGBA&&X(J.HSLA),j===J.HSLA&&X(J.HEXA),j===J.HEXA&&X(J.RGBA)},z={paddingTop:6},F={textAlign:"center",paddingTop:4,paddingBottom:4},q=c({"--chrome-arrow-fill":"#333","--chrome-arrow-background-color":"#e8e8e8",borderRadius:0,flexDirection:N?"row":"column",width:N?460:230,padding:0},n),dr={"--chrome-alpha-box-shadow":"rgb(0 0 0 / 25%) 0px 0px 1px inset",borderRadius:"50%",background:zr(m),boxShadow:"var(--chrome-alpha-box-shadow)"},rr=(G)=>{var K=Z(G);h(c({},K))},lr={height:14,width:14},ir={style:c({},lr),fillProps:{style:lr}};return r(Pr,c({ref:e,color:m,style:q,colors:void 0,className:[p,b].filter(Boolean).join(" "),placement:I.TopLeft},M,{addonAfter:a(de,{children:[r(Nr,{hsva:m,style:N?{width:230,height:120}:{width:"100%",height:130},onChange:(G)=>{h(c({},m,G,{a:m.a}))}}),a("div",{style:{display:"flex",flexDirection:"column",width:N?230:"inherit"},children:[a("div",{style:{padding:15,display:"flex",alignItems:"center",gap:10},children:[so()&&L&&r(po,{onPickColor:rr}),k&&r(pr,{width:28,height:28,hsva:m,radius:2,style:{borderRadius:"50%"},bgProps:{style:{background:"transparent"}},innerProps:{style:dr},pointer:()=>r(de,{})}),a("div",{style:{flex:1},children:[D==1&&r(Lr,{hue:m.h,style:{width:"100%",height:12,borderRadius:2},pointerProps:ir,bgProps:{style:{borderRadius:2}},onChange:(G)=>{h(c({},m,G))}}),S==1&&r(pr,{hsva:m,style:{marginTop:6,height:12,borderRadius:2},pointerProps:ir,bgProps:{style:{borderRadius:2}},onChange:(G)=>{h(c({},m,G))}})]})]}),A&&a("div",{style:{display:"flex",alignItems:"flex-start",padding:"0 15px 15px 15px",userSelect:"none"},children:[a("div",{style:{flex:1},children:[j==J.RGBA&&r(vr,{hsva:m,rProps:{labelStyle:z,inputStyle:F},gProps:{labelStyle:z,inputStyle:F},bProps:{labelStyle:z,inputStyle:F},aProps:S!=0&&{labelStyle:z,inputStyle:F},onChange:(G)=>h(G.hsva)}),j===J.HEXA&&r(tr,{label:"HEX",labelStyle:z,inputStyle:F,value:m.a>0&&m.a<1?jr(m).toLocaleUpperCase():cr(m).toLocaleUpperCase(),onChange:(G,K)=>{typeof K=="string"&&h(Z(/^#/.test(K)?K:"#"+K))}}),j===J.HSLA&&r(Er,{hsva:m,hProps:{labelStyle:z,inputStyle:F},sProps:{labelStyle:z,inputStyle:F},lProps:{labelStyle:z,inputStyle:F},aProps:S!=0&&{labelStyle:z,inputStyle:F},onChange:(G)=>h(G.hsva)})]}),r(io,{onClick:W})]})]})]}),rectRender:()=>r(de,{})}))});Dr.displayName="Chrome";var co="nxgt-color-picker";function bo({color:t,onChange:e}){return r(Dr,{color:t,showTriangle:!1,showAlpha:!1,onChange:(s)=>e(s.hex),className:co})}export{bo as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_,me,qe,l,i,r,a,v,Se,xi,Sn,En,An,Tr,Cr,rn,Go}from"./index.e35b4yh5.js";import{wa}from"./index.1d7qpsyx.js";var k=qe(()=>(_("0ds56d6x"),import("./markup-color-chrome-ykGNUl8y.0ds56d6x.js")));function j(c){let{anchor:o,open:t,onOpenChange:u,current:f,onPick:h}=c,{t:g}=v(),C=Go(),n=i(null),p=Se(c.onDone),s=i(!1);l(()=>{!t&&n.current&&(p.current(n.current),n.current=null)},[t,p]);let d=r(me,{fallback:r("div",{"aria-busy":"true",className:"h-56 w-56"}),children:r(k,{color:wa(f),onChange:(e)=>{n.current=e,h(e)}})}),m=g("material.image-editor.markup.color-picker","Pick a colour");return C?r(En,{open:t,onOpenChange:u,children:a(An,{side:"bottom","data-slot":"image-editor-color-sheet",children:[r(xi,{children:r(Sn,{children:m})}),r("div",{className:"flex justify-center px-4 pb-6",children:d})]})}):a(Tr,{open:t,onOpenChange:u,children:[r(rn,{virtualRef:o}),r(Cr,{className:"w-auto p-0",side:"top",align:"start",collisionBoundary:o.current?.closest('[data-slot="image-editor"]'),"aria-label":m,onOpenAutoFocus:void 0,onInteractOutside:(e)=>{o.current?.contains(e.target)?e.preventDefault():s.current=!0},onCloseAutoFocus:(e)=>{e.preventDefault(),s.current||o.current?.focus(),s.current=!1},children:d})]})}export{j as MarkupCustomColor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{de,ye,E,ie,P,H,T,r,a,s,v,ne,ft,No,_n,le,Fl,ga,ki,zo,Ti}from"./index.e35b4yh5.js";import{Ll}from"./index.nsckd1vt.js";function he(e){return typeof e=="string"?Ll(e).map((t,i,n)=>a(de,{children:[t.split(/(-+.?)/).map((l,c)=>l.startsWith("-")?r("span",{className:"whitespace-nowrap",children:l},c):l),i<n.length-1&&r("wbr",{})]},i)):e}var xe=E(void 0);function ge(e){let t=P(xe);return e??t}function ve({children:e,className:t,...i}){let n=!!(i["aria-label"]||i["aria-labelledby"]);return r(ne,{"data-slot":"icon-badge","aria-hidden":n?void 0:"true",role:n?"img":void 0,...i,asChild:!0,className:s("cursor-default",t),children:r("span",{children:e})})}var be={sm:"size-10 rounded-xl text-xl [&_svg:not([class*='size-'])]:size-5 [--nxgt-icon-size:1.25rem]",md:"size-12 rounded-2xl text-2xl [&_svg:not([class*='size-'])]:size-6 [--nxgt-icon-size:1.5rem]",lg:"size-14 rounded-2xl text-3xl [&_svg:not([class*='size-'])]:size-7 [--nxgt-icon-size:1.75rem]"};function K({children:e,size:t="md",variant:i="tonal",color:n="primary",className:l,...c}){return r(ve,{...c,"data-slot":"icon-tile",variant:i,color:n,className:s("shrink-0",be[t],l),children:e})}K.displayName="IconTile";function we({accent:e,leading:t}){if(e==null)return r(T,{children:t});if(!le(t))return r("span",{className:"flex h-6 shrink-0 items-center",children:r("span",{"aria-hidden":!0,"data-slot":"item-accent","data-tone":e,className:"size-2 rounded-full bg-tone-text"})});if(ie(t)&&t.type===Ti)return ye(t,{tone:t.props.tone??e});let i=ie(t)&&t.type===K,n=i?{sm:"size-10 [--nxgt-icon-size:1.25rem]",md:"size-12 [--nxgt-icon-size:1.5rem]",lg:"size-14 [--nxgt-icon-size:1.75rem]"}[t.props.size??"md"]:"size-9";return r("span",{"data-slot":"item-accent","data-tone":e,className:`inline-flex ${n} shrink-0 items-center justify-center rounded-full bg-tone-container text-tone-text shadow-[inset_0_0_0_1px_var(--nxgt-tone-ring)] [&_svg:not([class*='size-'])]:size-[var(--nxgt-icon-size,1rem)]`,children:i?t.props.children:t})}var M="[&>*]:max-w-full [&>*]:min-w-0 [&>*]:justify-start [&>*]:overflow-hidden [&>*]:text-ellipsis [&>*]:whitespace-nowrap";function Ne({children:e,align:t,selfStart:i}){return t?r("span",{"data-slot":"item-leading",className:s("flex w-(--nxgt-leading-width,5rem) min-w-0 shrink-0 items-center overflow-hidden",M,i&&"self-start"),children:e}):i&&le(e)?r("span",{className:"self-start",children:e}):r(T,{children:e})}function ke({children:e,align:t}){return t?r("span",{"data-slot":"item-trailing",className:s("flex w-(--nxgt-trailing-width,6rem) min-w-0 shrink-0 items-center justify-end overflow-hidden text-end",M),children:e}):r(T,{children:e})}function j({subtitle:e,selected:t,note:i,id:n}){return le(e)?r(ft,{as:"span",variant:i?"body-sm":void 0,id:n,className:s("wrap-anywhere",t?"text-foreground/70":"text-muted-foreground"),children:e}):null}var U=({children:e})=>le(e)?r("span",{className:"text-sm text-muted-foreground",children:e}):null;function ze(e){return e.stacked?r(Ce,{...e}):r(Ae,{...e})}function Ce({title:e,subtitle:t,chips:i,secondary:n,status:l,statusPlacement:c,selected:d,xs:o,subtitleId:u}){let m=c==="name"&&le(l);return a("div",{className:"flex min-w-0 flex-1 flex-col",children:[a("div",{className:"flex flex-row items-center gap-x-2",children:[a("div",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-x-2 gap-y-1",children:[e,r(U,{children:n}),m&&r("span",{"data-slot":"item-status",className:"shrink-0",children:l})]}),le(l)&&!m&&r("span",{"data-slot":"item-status",className:"ms-auto shrink-0",children:l})]}),le(t)&&r("div",{className:o?"mt-0.5 flex":"mt-1",children:r(j,{subtitle:t,selected:d,note:!0,id:u})}),le(i)&&r("div",{"data-slot":"item-chips",className:"mt-2 flex flex-wrap gap-1.5",children:i})]})}function Ae({title:e,subtitle:t,chips:i,secondary:n,status:l,selected:c,compact:d=!0,subtitleId:o}){let u=le(i)||le(l);return a("div",{className:"flex min-w-0 flex-1 flex-col @xl:flex-row @xl:items-center @xl:gap-x-3",children:[a("div",{className:"flex min-w-0 flex-col @md:flex-row @md:flex-wrap @md:items-baseline @md:gap-x-2 @xl:flex-1",children:[e,r(U,{children:n}),r(j,{subtitle:t,selected:c,note:d,id:o})]}),u&&a("div",{"data-slot":"item-chips",className:"mt-1 flex flex-wrap gap-1 @xl:mt-0 @xl:shrink-0 @xl:justify-end",children:[l,i]})]})}var G=14,Ie=24,Se=7,Pe="shrink-0",je="min-w-[5ch] shrink-[1000]";function Le(e){let t=Array.from(e);if(t.length<=G)return;let i=t.lastIndexOf("@");if(i>0&&t.length-i<=Ie)return[t.slice(0,i).join(""),t.slice(i).join("")];let n=t.slice(-14).findIndex((d)=>"@.-_".includes(d)),l=n>=0&&n<10?n+1:0,c=t.length-G+l;return[t.slice(0,c).join(""),t.slice(c).join("")]}function Te({head:e,tail:t,full:i}){return a(T,{children:[a("span",{"aria-hidden":"true",className:"flex min-w-0",children:[r("span",{"data-title-part":!0,className:`truncate ${Array.from(e).length<=Se?Pe:je}`,children:e}),r("span",{"data-title-part":!0,className:"min-w-0 shrink truncate",children:t})]}),r("span",{"data-title-full":!0,className:"sr-only",children:i})]})}var _e="a, button, [tabindex]";function $e({xs:e,dense:t,stacked:i,compact:n}){return e?"text-[13px] font-medium":t&&i?"text-base font-semibold":n?"text-[13px] font-medium":"font-semibold"}function Oe({title:e,titleLines:t,titleTruncate:i,titleId:n,interactive:l,...c}){let d=i==="middle",o=d?1:t,u=d&&typeof e=="string"?Le(e):void 0,m=r(ft,{as:"span",id:n,className:s(o==null?"wrap-anywhere":["min-w-0",u?"flex":Fl(o)],$e(c)),children:u&&typeof e=="string"?r(Te,{head:u[0],tail:u[1],full:e}):e});return o==null?m:r(ki,{focusHost:l?_e:void 0,reveal:l?"long-press":"tap",children:m})}function Ee({title:e,titleLines:t,titleTruncate:i,titleId:n,interactive:l,subtitle:c,subtitleId:d,compact:o,xs:u,selected:m,chips:f,secondary:p,status:h,statusPlacement:g,dense:x,stacked:b}){let w=r(Oe,{title:e,titleLines:t,titleTruncate:i,titleId:n,interactive:l,xs:u,dense:x,stacked:b,compact:o});return x?r(ze,{title:w,subtitle:c,chips:f,secondary:p,status:h,statusPlacement:g,selected:m,compact:o,stacked:b,xs:u,subtitleId:d}):a("div",{className:"flex min-w-0 flex-1 flex-col",children:[w,r(j,{subtitle:c,selected:m,id:d})]})}function Be({index:e,selected:t,selfStart:i}){return r("span",{"aria-hidden":!0,"data-slot":"item-index",className:s("w-6 shrink-0 text-center font-semibold tabular-nums",t?"text-foreground":"text-muted-foreground",i&&"self-start"),children:e})}function Fe(){return r(_n,{"aria-hidden":!0,"data-slot":"item-chevron",className:"size-4 shrink-0 text-muted-foreground rtl:-scale-x-100"})}function Y({leading:e,accent:t,index:i,trailing:n,chevron:l,title:c,titleLines:d,titleTruncate:o,subtitle:u,compact:m,xs:f,selected:p,chips:h,secondary:g,status:x,statusPlacement:b,alignSlots:w,dense:N,stacked:y,interactive:C,titleId:A,subtitleId:I}){return a(T,{children:[i!=null&&r(Be,{index:i,selected:p,selfStart:!!(N&&y)}),r(Ne,{align:w,selfStart:!!(N&&y),children:t==null?e:r(we,{accent:t,leading:e})}),r(Ee,{title:c,titleLines:d,titleTruncate:o,titleId:A,subtitle:u,subtitleId:I,compact:m,xs:f,selected:p,chips:h,secondary:g,status:x,statusPlacement:b,dense:N,stacked:y,interactive:C}),r(ke,{align:w,children:n}),l&&r(Fe,{})]})}function Re({children:e,disabled:t,tight:i,onNameLine:n,stack:l,stackIndent:c,bleed:d}){return r("div",{"data-slot":"item-actions",inert:t||void 0,className:s("relative z-10",n?"h-7 self-start":d,"flex shrink-0 items-center gap-1",i&&"pointer-coarse:gap-3",l&&"@max-sm:my-0 @max-sm:h-auto @max-sm:w-full @max-sm:flex-wrap @max-sm:self-auto",l&&c&&"@max-sm:ms-(--nxgt-stack-indent,3.5rem) @max-sm:w-[calc(100%-var(--nxgt-stack-indent,3.5rem))]"),children:e})}var J=(e)=>e.startsWith("data-")||e==="style";function We(e){return Object.fromEntries(Object.entries(e).filter(([t])=>J(t)))}function He(e){return Object.fromEntries(Object.entries(e).filter(([t])=>!J(t)))}function Ve({props:e,tileAttrs:t,split:i,href:n,linkComponent:l,disabled:c,onClick:d,selected:o,pressed:u,rowClass:m,body:f}){let p=i?He(e):{...e,...t};if(n){let h={...p,"aria-current":p["aria-current"]??(o?"page":void 0),"aria-disabled":c||p["aria-disabled"]||void 0,className:m,onClick:d};return l&&!c?r(l,{...h,href:n,children:f}):r("a",{...h,href:c?void 0:n,children:f})}return d?r("button",{...p,type:"button","aria-pressed":u,disabled:c,className:m,onClick:d,children:f}):r("div",{...p,className:m,children:f})}function qe({props:e,tileAttrs:t,className:i,row:n,actions:l,hasActions:c,reserve:d,hasContent:o,content:u,disabled:m,tight:f,alignActions:p,stackActions:h,stackIndent:g,actionsBleed:x}){return a("div",{...We(e),...t,className:i,children:[n,c&&r(Re,{disabled:m,tight:f,onNameLine:p,stack:h,stackIndent:g,bleed:x,children:l}),d&&r("div",{"aria-hidden":!0,"data-slot":"item-actions-reserve",className:"w-(--nxgt-reserved-actions,2.25rem) shrink-0"}),o&&r("div",{"data-slot":"item-content",inert:m||void 0,className:"relative z-10 w-full basis-full",children:u})]})}var Q=E(void 0);Q.Provider;function De(e){let t=P(Q);return e??t??"comfortable"}var X=E(void 0);X.Provider;function Ge(e){let t=P(X);return e??t??!1}var Z=E(void 0);Z.Provider;function Ke(e){let t=P(Z);return e??t??!1}function Me(e){return{comfortable:De(e.density)==="comfortable",alignSlots:Ge(e.alignSlots)}}var Ue="px-[calc(var(--nxgt-card-text-inset,calc(var(--nxgt-card-pad,1.5rem)+var(--nxgt-card-border,1px)))-var(--nxgt-card-border,1px))]";function ee({compact:e,selected:t,interactive:i,disabled:n,className:l,split:c,divided:d,plain:o,dense:u,inset:m,wrap:f,stack:p,comfortable:h,xs:g,start:x}){return s(c&&"relative",u&&"@container",f&&"flex-wrap",p&&"@container flex-wrap","nxgt-plain-link flex w-full items-center text-left pointer-coarse:min-h-11 [&_[data-slot=icon-button]]:rounded-[var(--nxgt-icon-button-radius,0.25rem)]","[&_svg:not([class*='size-'])]:size-4",x&&"items-start [&>svg]:mt-0.5",d?s("gap-2 rounded-none",!t&&"bg-card",h?g?"py-2":"py-3":"py-1.5",m==="card"?Ue:m==="none"?"px-0":m?"px-4":g?"px-0":"px-1"):e?s("gap-2 rounded px-2 py-1.5",u&&!t&&!o&&"bg-card",o&&!t&&"bg-card"):s("center gap-4 rounded p-2 px-4",!t&&"bg-card"),t&&s("nxgt-tile-selected",d&&"nxgt-tile-flat"),i&&s("cursor-pointer transition-colors",e&&!d&&"duration-200",!t&&(d||o?"hover:bg-card-tint-5":"hover:bg-card-tint-20")),n&&"pointer-events-none opacity-50",l)}function Ye(e,t,i=!1,n=!1){return s(i&&"@max-sm:basis-full","nxgt-plain-link flex min-w-0 flex-1 items-center text-left outline-none pointer-coarse:min-h-11",e?"gap-2":"gap-4",n&&"items-start [&>svg]:mt-0.5",t&&"after:absolute after:inset-0 after:rounded after:content-[''] focus-visible:after:ring-2 focus-visible:after:ring-ring")}function Je({compact:e,divided:t,comfortable:i,xs:n}){return t?i?n?"-my-2":"-my-3":"-my-1.5":e?"-my-1.5":"-my-2"}function Qe(e){let t=e.actions!=null&&e.actions!==!1,i=le(e.content),n=e.variant==="divided"||le(e.chips)||le(e.secondary)||le(e.status);return{interactive:!!(e.href||e.onClick),compact:e.size==="sm"||e.size==="xs",hasActions:t,hasContent:i,dense:n,reserve:!t&&!!e.reserveActions,split:t||!!e.reserveActions||n||i}}function Xe({variant:e,...t}){let i=ee({...t,divided:e==="divided",plain:e==="plain"});return{classes:i,rowClass:t.split?Ye(t.compact,t.interactive,t.stack??!1,t.start):i}}function Ze({compact:e,comfy:t,dense:i,size:n,variant:l,status:c,actionsAlign:d}){return{tight:i&&e,alignActions:d==="name"||t&&le(c),actionsBleed:Je({compact:e,comfortable:t,xs:n==="xs",divided:l==="divided"})}}function et(e){let{comfortable:t,alignSlots:i}=Me({density:e.density,alignSlots:e.alignSlots}),n=Ke(e.reserveActions),l=Qe({...e,reserveActions:n}),{interactive:c,compact:d,hasActions:o,hasContent:u,dense:m,split:f}=l,p=o&&e.actionsPlacement==="stack",h=m&&t,g=e.chevron??(!!e.href&&!o&&!(m&&t)),{classes:x,rowClass:b}=Xe({compact:d,selected:e.selected,interactive:c,split:f,dense:m,disabled:e.disabled,className:e.className,inset:e.inset,variant:e.variant??"tonal",stack:p,comfortable:h,wrap:u,xs:e.size==="xs",start:e.align==="start"});return{comfortable:t,alignSlots:i,chevron:g,stack:p,flags:l,boxProps:{hasActions:o,hasContent:u,reserve:l.reserve,...Ze({compact:d,comfy:h,dense:m,size:e.size,status:e.status,actionsAlign:e.actionsAlign,variant:e.variant??"tonal"})},classes:x,rowClass:b}}var tt=(e)=>({"data-slot":"item-detail","data-selected":e||void 0});function it({title:e,titleLines:t,titleTruncate:i,subtitle:n,leading:l,index:c,trailing:d,alignSlots:o,align:u,chips:m,secondary:f,status:p,statusPlacement:h,accent:g,content:x,variant:b="tonal",inset:w,density:N,actions:y,reserveActions:C,actionsPlacement:A,actionsAlign:I,stackIndent:te,className:se,selected:L,size:_="md",href:O,chevron:ae,linkComponent:re,disabled:S,onClick:B,...F}){let z=L??!1,ce=ge(re),k=et({href:O,onClick:B,size:_,actions:y,reserveActions:C,content:x,variant:b,chips:m,secondary:f,status:p,selected:z,disabled:S,className:se,inset:w,actionsPlacement:A,actionsAlign:I,density:N,alignSlots:o,chevron:ae,align:u}),{alignSlots:R,comfortable:oe,chevron:me,stack:W}=k,{split:V,compact:ue,dense:pe}=k.flags,fe=r(Y,{leading:l,accent:g,index:c,trailing:d,title:e,subtitle:n,alignSlots:R,titleLines:t??(R?1:void 0),chips:m,secondary:f,status:p,statusPlacement:h,titleTruncate:i,chevron:me,compact:ue,selected:z,dense:pe,stacked:oe,interactive:k.flags.interactive,xs:_==="xs"}),q=tt(z),D=Ve({props:F,tileAttrs:q,split:V,href:O,linkComponent:ce,disabled:S,onClick:B,selected:z,pressed:L,rowClass:k.rowClass,body:fe});return V?r(qe,{props:F,tileAttrs:q,row:D,actions:y,content:x,disabled:S,className:k.classes,stackActions:W,stackIndent:W&&te===!0&&le(l),...k.boxProps}):D}function st({toggle:e,title:t,titleLines:i,titleTruncate:n,subtitle:l,leading:c,index:d,trailing:o,variant:u="tonal",inset:m,selected:f=!1,size:p="md",disabled:h,className:g,...x}){let b=H(),w=e.id??`${b}-switch`,N=`${b}-title`,y=le(l)?`${b}-subtitle`:void 0;return a("label",{...x,"data-slot":"item-detail","data-selected":f||void 0,htmlFor:w,className:ee({compact:p!=="md",selected:f,interactive:!e.readOnly,divided:u==="divided",plain:u==="plain",inset:m,disabled:h,className:g}),children:[r(Y,{leading:c,index:d,trailing:o,title:t,titleLines:i,titleTruncate:n,subtitle:l,compact:p!=="md",xs:p==="xs",selected:f,titleId:N,subtitleId:y}),r(No,{...e,disabled:h||e.disabled,id:w,"aria-labelledby":N,"aria-describedby":y,className:s("cursor-pointer",e.className)})]})}function at({as:e,titleBreak:t,...i}){let n=t==="smart"&&i.titleTruncate!=="middle"&&typeof i.title=="string"?he(i.title):i.title,l=r(nt,{...i,title:n});return e==="li"?r("li",{className:i.variant==="divided"?"border-b border-border/70 last:border-b-0":void 0,children:l}):l}function nt({toggle:e,...t}){if(e){let{href:i,onClick:n,actions:l,reserveActions:c,actionsPlacement:d,actionsAlign:o,chevron:u,chips:m,secondary:f,status:p,accent:h,content:g,linkComponent:x,alignSlots:b,align:w,...N}=t;return r(st,{...N,toggle:e})}return r(it,{...t})}var lt=["w-3/5","w-2/5","w-1/2"];function rt({children:e}){return a("div",{"data-slot":"option-list-loading",className:"grid gap-1 px-3 py-2",children:[r("span",{className:"text-muted-foreground text-xs",children:e}),r("div",{"aria-hidden":!0,className:"grid gap-1",children:lt.map((t)=>a("div",{className:"flex h-8 items-center gap-3",children:[r(ga,{className:"size-4 shrink-0 rounded-full"}),r(ga,{className:`h-3 ${t} rounded-full`})]},t))})]})}function xt({items:e,selectedIndex:t=0,id:i,onSelect:n,loading:l=!1,failed:c=!1,className:d}){let{t:o}=v(),u=H(),m=i??u,f=s("@container grid min-w-[220px] max-w-sm gap-0.5 rounded border border-border bg-background p-1 shadow",d),p=e.length===0,h=c?o("material.mentions.failed","The search failed"):l?o("material.mentions.loading","Loading…"):o("material.mentions.empty","No matches");return a("div",{"data-slot":"mention-list","aria-busy":l||void 0,className:f,children:[r("span",{role:"status",className:"sr-only",children:p?h:""}),l&&!p&&r("div",{"aria-hidden":!0,"data-slot":"mention-list-progress",className:"-mt-1 mb-0.5 h-1 animate-pulse rounded bg-primary-indicator"}),p?l&&!c?r(rt,{children:h}):r("p",{"aria-hidden":!0,className:s("px-3 py-2 text-sm",c?"text-error-text":"text-muted-foreground"),children:h}):r(ct,{id:m,items:e,selectedIndex:t,onSelect:n})]})}function ct({id:e,items:t,selectedIndex:i,onSelect:n}){let{t:l}=v();return r("div",{id:e,role:"listbox","aria-label":l("material.mentions.label","Mentions"),className:"grid gap-0.5",children:t.map((c,d)=>r(at,{id:zo(e,d),size:"sm",role:"option","aria-selected":d===i,selected:d===i,leading:c.avatar??r(Ti,{fallback:c.label.slice(0,1)}),title:c.label,subtitle:c.handle?`@${c.handle}`:void 0,onMouseDown:(o)=>o.preventDefault(),onClick:()=>n(c)},c.id))})}export{xt as MentionList};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{es}from"./index.7gxz6d1f.js";export{es as createPacketServices};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{d,l,H,i,o,T,r,a,J,qs,it,zt,je,_t,nn,zl,rr,ze,Ul,Vo,bt,Wl,Yl,Ql,Zl,Jl,ec,Pr,ya,Nn,sc,He,_i,Zs,cc,uc,dc,fc,hc,pc,mc}from"./index.e35b4yh5.js";function K({apiBase:e,projectKey:t,identity:n,locale:u,onUnread:c,onError:p}){let[s,f]=o("OPEN"),[m,g]=o(null),[h,y]=o([]),[v,E]=o({cursor:null,more:!1}),[w,L]=o({status:"loading"}),[x,b]=o(!1),[R,C]=o(0),[k,S]=o(!0),[q,P]=o(null),A=i(null),F=i(c);F.current=c;let O=i(p);O.current=p;let M=d(async(B)=>{A.current?.abort();let U=new AbortController;if(A.current=U,!e||!t){L({status:"error",error:new He("config","config")});return}try{let N=await Zs({apiBase:e,publicKey:t,identity:n,locale:u,filter:s,after:B,signal:U.signal});if(U.signal.aborted)return;if(g(N.counts),N.counts.all>0)P(null);S(N.emailsOn),F.current(N.unread),y((_)=>B?[..._,...N.nodes]:N.nodes),E({cursor:N.endCursor,more:N.hasNextPage}),L({status:"ready"})}catch(N){if(U.signal.aborted)return;let _=N instanceof He?N:new He("unknown","unknown");if(L({status:"error",error:_}),_.kind==="identity")O.current?.({code:_.code})}finally{if(!U.signal.aborted)b(!1)}},[e,t,n,u,s]);l(()=>(L({status:"loading"}),y([]),M(null),()=>A.current?.abort()),[M,R]);let V=()=>{b(!0),M(v.cursor)},ge=()=>C((B)=>B+1),ye=(B)=>{A.current?.abort(),y([]),g({open:0,resolved:0,declined:0,all:0}),E({cursor:null,more:!1}),L({status:"ready"}),P(B),F.current(0)};return{filter:s,setFilter:f,counts:m,nodes:h,hasMore:v.more,load:w,paging:x,emailsOn:k,erased:q,more:V,reload:ge,empty:ye}}var D={en:{description:"Follow what you reported and read the team's replies.",filterLabel:"Filter requests",filters:{OPEN:"Open",RESOLVED:"Resolved",DECLINED:"Declined",ALL:"All"},states:{received:"Received",inProgress:"In progress",resolved:"Resolved",declined:"Declined"},loading:"Loading your requests...",none:{title:"No requests yet",body:"What you report shows here, with the team's replies.",action:"New request"},empty:{OPEN:"No open requests.",RESOLVED:"No resolved requests.",DECLINED:"No declined requests."},newReplies:(e)=>e===1?"1 new reply":`${e} new replies`,more:"Show more",retry:"Try again",open:(e)=>`Open request: ${e}`,thread:{back:"Back",label:"Conversation",you:"You",team:"Team",placeholder:"Write a reply...",send:"Send",attach:"Attach files",loading:"Loading the conversation...",resolve:"Resolve",reopen:"Reopen",resolvedNote:(e)=>`You marked this resolved on ${e}.`,reopenExpired:"This request was resolved more than 30 days ago and can no longer be reopened. Send a new request instead.",declinedTitle:"This request was declined",declinedNoReason:"The team gave no reason.",readOnly:"A declined request is read-only.",attachments:"Attachments",needText:"Write a message to go with your files.",filesFailed:(e)=>`Your reply was sent, but these files did not upload: ${e}.`,errors:{title:"That did not work",files:"A file was refused (PNG, JPEG, WebP or PDF, 5 MB each, 3 files)."}},prefs:{title:"Preferences",open:"Preferences"},privacy:{notificationsTitle:"Notifications",emails:"E-mails about my requests",emailsHint:"Get an e-mail when the team replies.",emailsFailed:"Your e-mail choice was not saved. Try again.",dataTitle:"Privacy",dataHint:"Erases every request you sent from this site.",erase:"Delete my data",eraseTitle:"Delete my data?",eraseBody:"Every request you sent from this site, with its replies and files, is erased for good. This cannot be undone.",eraseConfirm:"Delete",eraseCancel:"Cancel",erased:(e)=>e===1?"1 request erased.":`${e} requests erased.`,eraseFailed:"Your data was not deleted. Try again."},errors:{title:"Your requests could not be loaded",identity:"Your session expired. Reload the page and sign in again to see your requests.",unavailable:"The service is busy right now. Try again in a moment.",rateLimited:(e)=>`Too many requests from here. Try again in ${e} minute${e===1?"":"s"}.`,network:"Could not reach the server. Check your connection.",unknown:"Something went wrong. Try again in a moment."}},fr:{description:"Suivez vos signalements et lisez les réponses de l'équipe.",filterLabel:"Filtrer les demandes",filters:{OPEN:"Ouvertes",RESOLVED:"Résolues",DECLINED:"Refusées",ALL:"Toutes"},states:{received:"Reçue",inProgress:"En cours",resolved:"Résolue",declined:"Refusée"},loading:"Chargement de vos demandes...",none:{title:"Aucune demande",body:"Ce que vous signalez s'affiche ici, avec les réponses de l'équipe.",action:"Nouvelle demande"},empty:{OPEN:"Aucune demande ouverte.",RESOLVED:"Aucune demande résolue.",DECLINED:"Aucune demande refusée."},newReplies:(e)=>e===1?"1 nouvelle réponse":`${e} nouvelles réponses`,more:"Afficher plus",retry:"Réessayer",open:(e)=>`Ouvrir la demande : ${e}`,thread:{back:"Retour",label:"Conversation",you:"Vous",team:"Équipe",placeholder:"Écrire une réponse...",send:"Envoyer",attach:"Joindre des fichiers",loading:"Chargement de la conversation...",resolve:"Résoudre",reopen:"Rouvrir",resolvedNote:(e)=>`Vous avez marqué cette demande comme résolue le ${e}.`,reopenExpired:"Cette demande est résolue depuis plus de 30 jours et ne peut plus être rouverte. Envoyez une nouvelle demande.",declinedTitle:"Cette demande a été refusée",declinedNoReason:"L'équipe n'a donné aucune raison.",readOnly:"Une demande refusée est en lecture seule.",attachments:"Pièces jointes",needText:"Écrivez un message pour accompagner vos fichiers.",filesFailed:(e)=>`Votre réponse est envoyée, mais ces fichiers n'ont pas été transférés : ${e}.`,errors:{title:"Cela n'a pas fonctionné",files:"Un fichier a été refusé (PNG, JPEG, WebP ou PDF, 5 Mo chacun, 3 fichiers)."}},prefs:{title:"Préférences",open:"Préférences"},privacy:{notificationsTitle:"Notifications",emails:"E-mails sur mes demandes",emailsHint:"Recevoir un e-mail quand l'équipe répond.",emailsFailed:"Votre choix n'a pas été enregistré. Réessayez.",dataTitle:"Confidentialité",dataHint:"Efface toutes les demandes envoyées depuis ce site.",erase:"Supprimer mes données",eraseTitle:"Supprimer mes données ?",eraseBody:"Toutes les demandes envoyées depuis ce site, avec leurs réponses et leurs fichiers, sont effacées définitivement. Cette action est irréversible.",eraseConfirm:"Supprimer",eraseCancel:"Annuler",erased:(e)=>e===1?"1 demande effacée.":`${e} demandes effacées.`,eraseFailed:"Vos données n'ont pas été supprimées. Réessayez."},errors:{title:"Vos demandes n'ont pas pu être chargées",identity:"Votre session a expiré. Rechargez la page et reconnectez-vous pour voir vos demandes.",unavailable:"Le service est occupé. Réessayez dans un instant.",rateLimited:(e)=>`Trop de requêtes depuis ici. Réessayez dans ${e} minute${e===1?"":"s"}.`,network:"Le serveur est injoignable. Vérifiez votre connexion.",unknown:"Une erreur est survenue. Réessayez dans un instant."}}};function G(e,t){if(t.apiMessage)return t.apiMessage;switch(t.kind){case"identity":return e.errors.identity;case"rate-limited":return e.errors.rateLimited(Math.max(1,t.minutes??1));case"unavailable":return e.errors.unavailable;case"network":return e.errors.network;default:return e.errors.unknown}}var I=G;var Y={received:"neutral",inProgress:"info",resolved:"success",declined:"warning"};function Q({messages:e,locale:t,label:n,nodes:u,onOpen:c}){let p=D[t],s=new Intl.DateTimeFormat(t,{dateStyle:"medium"}),f=(m)=>r(rr,{variant:"soft",tone:Y[m],children:p.states[m]});return r("ul",{"aria-label":n,className:"m-0 grid list-none grid-cols-[minmax(0,1fr)] gap-2 p-0",children:u.map((m)=>r("li",{className:"@container min-w-0 bg-card",children:r("button",{type:"button","aria-label":[p.open(m.title),p.states[m.publicState],m.unread>0?p.newReplies(m.unread):null].filter(Boolean).join(", "),onClick:()=>c(m),className:"block w-full cursor-pointer text-left",children:r(zl,{unread:m.unread>0,title:r("span",{className:"block whitespace-normal break-words @md:truncate @md:whitespace-nowrap",children:m.title}),meta:a("span",{className:"block whitespace-normal @md:truncate @md:whitespace-nowrap",children:[r("span",{className:"mb-1 block @md:hidden",children:f(m.publicState)}),[s.format(new Date(m.createdAt)),m.type?e.choices.type[m.type]:null,m.impact?e.choices.impact[m.impact]:null].filter(Boolean).join(" · "),m.unread>0?r(rr,{variant:"soft",tone:"info",className:"ms-2",children:p.newReplies(m.unread)}):null]}),badge:a("span",{className:"inline-flex items-center gap-2",children:[r("span",{className:"hidden @md:inline-flex",children:f(m.publicState)}),r("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",width:"18",height:"18",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"shrink-0 text-muted-foreground",children:r("path",{d:"m9 6 6 6-6 6"})})]})})})},m.id))})}var ve=["OPEN","RESOLVED","DECLINED","ALL"],he={OPEN:"open",RESOLVED:"resolved",DECLINED:"declined",ALL:"all"};function X({messages:e,locale:t,list:n,onOpen:u,onNewRequest:c}){let p=D[t],{filter:s,counts:f,nodes:m,load:g}=n,h=f?.all??null;return a("div",{className:"grid min-w-0 grid-cols-[minmax(0,1fr)] content-start gap-4 pb-1",children:[h===0&&g.status==="ready"||g.status==="error"?null:r(Yl,{label:p.filterLabel,hideLabel:!0,overflow:"wrap",value:s,onValueChange:(y)=>y&&n.setFilter(y),options:ve.map((y)=>({value:y,label:p.filters[y],...f?{count:f[he[y]]}:{}}))}),g.status==="error"?r(ze,{variant:"error",title:p.errors.title,description:G(p,g.error),actions:a(T,{children:[r(J,{type:"button",variant:"filled",size:"sm",onClick:n.reload,children:p.retry}),r(J,{type:"button",variant:"tonal",size:"sm",onClick:c,children:e.launcher})]})}):null,n.erased!==null?r(ze,{variant:"success",description:p.privacy.erased(n.erased)}):null,g.status==="loading"?a("div",{role:"status","aria-busy":"true",children:[r("span",{className:"sr-only",children:p.loading}),r(Vo,{lines:4,labelled:!1})]}):null,g.status==="ready"&&m.length===0?h===0?r(nn,{size:"compact",headingLevel:3,title:p.none.title,description:p.none.body,action:r(J,{type:"button",onClick:c,children:p.none.action})}):r(nn,{kind:"search",size:"compact",title:s==="ALL"?p.none.title:p.empty[s]}):null,m.length>0?r(Q,{messages:e,locale:t,label:p.filters[s],nodes:m,onOpen:u}):null,n.hasMore&&g.status==="ready"?r(J,{type:"button",variant:"tonal",loading:n.paging,className:"justify-self-center",onClick:n.more,children:p.more}):null]})}function Z({locale:e,apiBase:t,projectKey:n,identity:u,emailsOn:c,onErased:p}){let s=D[e],f=H(),m=H(),[g,h]=o(c),[y,v]=o(!1),E=i(!1),[w,L]=o(!1),[x,b]=o(!1);l(()=>{if(!E.current)h(c)},[c]);let R=t&&n?{apiBase:t,publicKey:n,identity:u,locale:e}:null;async function C(S){if(!R)return;let q=g;E.current=!0,L(!0),v(!1),h(S);try{await pc({...R,on:S})}catch{h(q),v(!0)}finally{E.current=!1,L(!1)}}async function k(){if(!R)throw Error(s.privacy.eraseFailed);let S;try{S=await mc(R)}catch(q){throw Error(q instanceof He&&q.kind!=="unknown"?G(s,q):s.privacy.eraseFailed)}p(S.requests)}return a("div",{className:"grid min-w-0 gap-6",children:[a("section",{className:"grid gap-3","aria-labelledby":f,children:[r("p",{id:f,className:"m-0 font-semibold text-sm",children:s.privacy.notificationsTitle}),r(qs,{label:s.privacy.emails,helperText:y?s.privacy.emailsFailed:s.privacy.emailsHint,error:y,checked:g,disabled:w,onCheckedChange:(S)=>void C(S===!0)})]}),a("section",{className:"grid gap-3 border-border border-t pt-6","aria-labelledby":m,children:[a("div",{className:"grid gap-1",children:[r("p",{id:m,className:"m-0 font-semibold text-sm",children:s.privacy.dataTitle}),r("p",{className:"m-0 text-muted-foreground text-sm",children:s.privacy.dataHint})]}),r(J,{type:"button",variant:"tonal",color:"error",className:"justify-self-start",onClick:()=>b(!0),children:s.privacy.erase})]}),r(Ul,{open:x,onOpenChange:b,title:s.privacy.eraseTitle,description:s.privacy.eraseBody,confirmLabel:s.privacy.eraseConfirm,cancelLabel:s.privacy.eraseCancel,variant:"destructive",tone:"danger",onConfirm:k})]})}function ee({locale:e,onBack:t,...n}){let u=D[e];return a(T,{children:[r(it,{children:r(je,{children:u.prefs.title})}),r(bt,{role:"region","aria-label":u.prefs.title,children:r(Z,{locale:e,...n})}),r(zt,{children:r(J,{type:"button",variant:"tonal",onClick:t,children:u.thread.back})})]})}var z=(e)=>e instanceof He?e:new He("unknown","unknown");var te=(e)=>e.some((t)=>t.size>ya||!Pr.includes(t.type))||e.reduce((t,n)=>t+n.size,0)>Nn;async function re({apiBase:e,files:t,tickets:n,signal:u}){let c=[];return await Promise.all(t.map(async(p,s)=>{let f=n[s];if(!(f?await _i({apiBase:e,slot:f.slot,ticket:f.ticket,file:p,onProgress:()=>{},signal:u}):{ok:!1}).ok)c.push(p.name)})),c}function ne({text:e,call:t,requestId:n,read:u,aborted:c,setProblem:p}){let[s,f]=o(!1);return{acting:s,change:async(g)=>{p(null),f(!0);try{if(await g({...t,id:n,signal:c.current.signal}),!c.current.signal.aborted)await u()}catch(h){if(c.current.signal.aborted)return;let y=z(h);if(p(I(e,y)),y.code.endsWith("reopen-expired"))await u()}finally{if(!c.current.signal.aborted)f(!1)}}}}function oe({text:e,locale:t,apiBase:n,projectKey:u,identity:c,requestId:p,read:s,aborted:f}){let m=e.thread,[g,h]=o(""),[y,v]=o([]),[E,w]=o(!1),[L,x]=o(null),[b,R]=o(null),C={apiBase:n,publicKey:u,identity:c,locale:t},k=async(P,A)=>{R(null),x(null);let F=P.trim();if(!F)return R(m.needText);if(te(A))return R(m.errors.files);w(!0);try{let O=await uc({...C,id:p,body:F,files:A.map((V)=>({role:"file",name:V.name,type:V.type,size:V.size})),signal:f.current.signal}),M=await re({apiBase:n,files:A,tickets:O.files,signal:f.current.signal});if(f.current.signal.aborted)return;if(h(""),v([]),M.length)x(m.filesFailed(M.join(", ")));await s()}catch(O){if(f.current.signal.aborted)return;R(I(e,z(O)))}finally{if(!f.current.signal.aborted)w(!1)}},{acting:S,change:q}=ne({text:e,call:C,requestId:p,read:s,aborted:f,setProblem:R});return{value:g,setValue:h,files:y,setFiles:v,sending:E,note:L,acting:S,problem:b,send:k,change:q}}async function se({apiBase:e,publicKey:t,identity:n,onEvent:u,signal:c,fetch:p=fetch,retryMs:s=1000,maxRetryMs:f=30000,wait:m=be}){let g=`${e.replace(/\/+$/,"")}/public/live/requests?key=${encodeURIComponent(t)}`,h=s;while(!c.aborted){let y=!1;try{let v=await p(g,{headers:{[sc]:n,accept:"text/event-stream"},credentials:"omit",signal:c});if(!v.ok||!v.body){if(await v.body?.cancel().catch(()=>{}),[401,403,404,429].includes(v.status)){if(v.status===401||v.status===403)u({type:"refused",status:v.status});return}}else{h=s;let E=v.body.pipeThrough(new TextDecoderStream).getReader(),w="";for(;;){let{done:L,value:x}=await E.read();if(L)break;w+=x.replace(/\r\n/g,`
|
|
2
|
-
`);let b=w.indexOf(`
|
|
3
|
-
|
|
4
|
-
`);while(b!==-1){let R=Re(w.slice(0,b));if(w=w.slice(b+2),R){if(u(R),R.type==="expired")y=!0}b=w.indexOf(`
|
|
5
|
-
|
|
6
|
-
`)}if(y){await E.cancel();break}}}}catch{if(c.aborted)return}if(y||c.aborted)return;await m(h,c),h=Math.min(h*2,f)}}function be(e,t){return new Promise((n)=>{let u=setTimeout(n,e);t.addEventListener("abort",()=>{clearTimeout(u),n()},{once:!0})})}function Re(e){let t="message",n="";for(let c of e.split(`
|
|
7
|
-
`)){if(c.startsWith(":"))continue;if(c.startsWith("event:"))t=c.slice(6).trim();else if(c.startsWith("data:"))n+=c.slice(5).trim()}let u={};try{u=n?JSON.parse(n):{}}catch{return null}if(t==="unread"&&typeof u.count==="number")return{type:"unread",count:u.count};if(t==="request.updated"&&typeof u.id==="string")return{type:"updated",id:u.id,unread:typeof u.unread==="number"?u.unread:0};if(t==="expired")return{type:"expired"};return null}var ie=(e)=>e.filter((t)=>t.from==="team").length,Ee=(e)=>e.type==="expired"?"intake.errors.identity-expired":`http-${e.status}`;function ae({requestId:e,signal:t,heard:n,hear:u,read:c,end:p}){return(s)=>{if(t.aborted)return;if(s.type==="unread")return u.current.onUnread(s.count);if(s.type==="updated"){if(s.id===e)return c();let m=n.get(s.id)??0;if(n.set(s.id,s.unread),s.unread>m)u.current.onReply({requestId:s.id});return}let f=Ee(s);p(f,new He("identity",f))}}async function le({call:e,requestId:t,signal:n,current:u,seen:c,hear:p,onDetail:s}){let f=await cc({...e,id:t,signal:n});if(!u())return;s(f);let m=ie(f.thread);if(c.current!==null&&m>c.current)p.current.onReply({requestId:t});if(c.current=m,f.unread>0){let g=await hc({...e,id:t,signal:n});if(u())p.current.onUnread(g.count)}}function we(e){let t=i(!1),n=d((c)=>{if(t.current)return;t.current=!0,e.current.onError({code:c})},[e]),u=d(()=>{t.current=!1},[]);return{tell:n,rearm:u}}function de({locale:e,apiBase:t,projectKey:n,identity:u,requestId:c,onUnread:p,onReply:s,onError:f}){let[m,g]=o(null),[h,y]=o({status:"loading"}),v=i(new AbortController),E=i(null),w=i({onUnread:p,onReply:s,onError:f});w.current={onUnread:p,onReply:s,onError:f};let L=i(0),{tell:x,rearm:b}=we(w),R=i(new Map),C=d(async()=>{let k=++L.current,S=()=>!v.current.signal.aborted&&k===L.current;try{await le({call:{apiBase:t,publicKey:n,identity:u,locale:e},requestId:c,signal:v.current.signal,current:S,seen:E,hear:w,onDetail:(q)=>{g(q),y({status:"ready"})}})}catch(q){if(!S())return;let P=z(q);if(y({status:"error",error:P}),P.kind==="identity")x(P.code)}},[t,n,u,e,c,x]);return l(()=>{let k=new AbortController;return v.current=k,E.current=null,R.current.clear(),b(),C(),se({apiBase:t,publicKey:n,identity:u,signal:k.signal,onEvent:ae({requestId:c,signal:k.signal,heard:R.current,hear:w,read:()=>void C(),end:(S,q)=>{y({status:"error",error:q}),x(S)}})}),()=>k.abort()},[t,n,u,c,C,x,b]),{detail:m,load:h,read:C,aborted:v}}function ue({text:e,load:t,detail:n,problem:u,note:c,formatDate:p}){let s=e.thread,f=n?.publicState,m=f==="resolved";return a(T,{children:[t.status==="loading"?a("div",{role:"status","aria-busy":"true",children:[r("span",{className:"sr-only",children:s.loading}),r(Vo,{lines:4,labelled:!1})]}):null,t.status==="error"?r(ze,{variant:"error",title:e.errors.title,description:I(e,t.error)}):null,f==="declined"?r(ze,{variant:"warning",title:s.declinedTitle,description:n?.declineReason||s.declinedNoReason}):null,m?r(ze,{variant:"success",description:n?.resolvedAt?s.resolvedNote(p(n.resolvedAt)):e.states.resolved}):null,m&&n&&!n.canReopen?r(ze,{variant:"info",description:s.reopenExpired}):null,u?r(ze,{variant:"error",title:s.errors.title,description:u}):null,c?r(ze,{variant:"warning",description:c}):null]})}var W=null;function ce(){if(W!==null)return W;return W=document.querySelector("style[nonce], script[nonce]")?.nonce||void 0,W}function Te(e){l(()=>{let t=e.current,n=t?.querySelector('[role="log"]'),u=t?.querySelector('[data-slot="scroll-area-viewport"]')??n;if(!t||!n||!u)return;let c=!0,p=()=>{if(c)u.scrollTop=u.scrollHeight},s=()=>{c=!1};p(),u.addEventListener("wheel",s,{passive:!0}),u.addEventListener("touchstart",s,{passive:!0}),u.addEventListener("keydown",s);let f=typeof ResizeObserver>"u"?null:new ResizeObserver(p);f?.observe(n);for(let g of n.children)f?.observe(g);let m=setTimeout(s,4000);return()=>{clearTimeout(m),f?.disconnect(),u.removeEventListener("wheel",s),u.removeEventListener("touchstart",s),u.removeEventListener("keydown",s)}},[e])}function me({text:e,detail:t,composer:n,formatDate:u,formatTime:c}){let p=e.thread,s=i(null);Te(s);let f=[{id:"original",from:"reporter",body:t.description,at:t.createdAt,files:t.files},...t.thread];return r(Wl,{nonce:ce(),children:r("div",{ref:s,className:"contents",children:a(Jl,{surface:"card",className:t.canReply?"h-[min(460px,58dvh)] max-sm:h-[42dvh]":"h-auto max-h-[min(460px,58dvh)] max-sm:max-h-[42dvh]",messageListProps:{itemCount:f.length+1},composerProps:t.canReply?{value:n.value,onValueChange:n.onValueChange,attachments:n.files,onAttachmentsChange:n.onFilesChange,onSend:n.onSend,isLoading:n.sending,placeholder:p.placeholder,sendLabel:p.send,attachmentLabel:p.attach,accept:Pr.join(","),maxFiles:3,maxLength:4000}:void 0,footer:t.canReply?void 0:r("p",{className:"m-0 px-4 py-3 text-muted-foreground text-sm",children:p.readOnly}),children:[r(Zl,{label:u(t.createdAt)}),f.map((m)=>r(Ql,{variant:m.from==="reporter"?"user":"assistant",author:m.from==="reporter"?p.you:p.team,avatarFallback:p.team.charAt(0),timestamp:c(m.at),text:m.from==="reporter"?m.body:void 0,copyable:!1,footer:m.files.length?r("ul",{"aria-label":p.attachments,className:"m-0 flex list-none flex-wrap gap-1.5 p-0",children:m.files.map((g)=>r("li",{children:r(rr,{variant:"soft",children:g.name})},g.id))}):void 0,children:m.from==="reporter"?void 0:r(ec,{content:m.body,math:!1,mermaid:!1,flow:!1})},m.id))]})})})}function pe({text:e,detail:t,title:n,formatDate:u}){let c=t?.publicState;return a(it,{children:[r(je,{title:t?.title??n,className:"max-sm:line-clamp-2 max-sm:text-lg",children:t?.title??n}),a(_t,{className:"flex flex-wrap items-center gap-2",children:[c?r(rr,{variant:"soft",tone:Y[c],children:e.states[c]}):null,t?u(t.createdAt):null]})]})}function fe({text:e,detail:t,acting:n,onBack:u,onResolve:c,onReopen:p}){let s=e.thread,f=t?.publicState,m=f==="declined",g=f==="resolved";return a(zt,{children:[r(J,{type:"button",variant:"tonal",onClick:u,children:s.back}),t&&!m&&!g?r(J,{type:"button",variant:"tonal",loading:n,onClick:c,children:s.resolve}):null,g&&t?.canReopen?r(J,{type:"button",variant:"tonal",loading:n,onClick:p,children:s.reopen}):null]})}function j({locale:e,apiBase:t,projectKey:n,identity:u,requestId:c,title:p,onUnread:s,onReply:f,onError:m,onBack:g}){let h=D[e],y=h.thread,v={locale:e,apiBase:t,projectKey:n,identity:u,requestId:c},{detail:E,load:w,read:L,aborted:x}=de({...v,onUnread:s,onReply:f,onError:m}),b=oe({...v,text:h,read:L,aborted:x}),R=new Intl.DateTimeFormat(e,{dateStyle:"medium"}),C=new Intl.DateTimeFormat(e,{dateStyle:"medium",timeStyle:"short"}),k=(S)=>R.format(new Date(S));return a(T,{children:[r(pe,{text:h,detail:E,title:p,formatDate:k}),r(bt,{role:"region","aria-label":y.label,children:a("div",{className:"grid min-w-0 grid-cols-[minmax(0,1fr)] content-start gap-3",children:[r(ue,{text:h,load:w,detail:E,problem:b.problem,note:b.note,formatDate:k}),E?r(me,{text:h,detail:E,formatDate:k,formatTime:(S)=>C.format(new Date(S)),composer:{value:b.value,onValueChange:b.setValue,files:b.files,onFilesChange:b.setFiles,onSend:(S,q)=>void b.send(S,q),sending:b.sending}}):null]})}),r(fe,{text:h,detail:E,acting:b.acting,onBack:g,onResolve:()=>void b.change(dc),onReopen:()=>void b.change(fc)})]})}function Se(){return a("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",width:"20",height:"20",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[r("circle",{cx:"12",cy:"12",r:"3"}),r("path",{d:"M19.4 15a1.7 1.7 0 0 0 .3 1.9l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.9-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.5 1.7 1.7 0 0 0-1.9.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.9 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1.1 1.7 1.7 0 0 0-.3-1.9l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.9.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.9-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.9V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1Z"})]})}function Le({messages:e,locale:t,apiBase:n,projectKey:u,identity:c,onUnread:p,onReply:s,onError:f,onErase:m,onClose:g,onNewRequest:h}){let y=D[t],v=K({apiBase:n,projectKey:u,identity:c,locale:t,onUnread:p,onError:f}),[E,w]=o(null),[L,x]=o(!1);if(E&&n&&u)return r(j,{locale:t,apiBase:n,projectKey:u,identity:c,requestId:E.id,title:E.title,onUnread:p,onReply:(R)=>s?.(R),onError:(R)=>f?.(R),onBack:()=>{w(null),v.reload()}});if(L)return r(ee,{locale:t,apiBase:n,projectKey:u,identity:c,emailsOn:v.emailsOn,onBack:()=>x(!1),onErased:(R)=>{v.empty(R),m?.({requests:R}),x(!1)}});let b=Boolean(n&&u);return a(T,{children:[a(it,{children:[a("div",{className:"flex items-start justify-between gap-2",children:[r(je,{children:e.myRequests}),b?r(J,{type:"button",variant:"ghost",size:"icon-sm",className:"size-11","aria-label":y.prefs.open,onClick:()=>x(!0),children:r(Se,{})}):null]}),r(_t,{children:y.description})]}),r(bt,{role:"region","aria-label":e.myRequests,children:r(X,{messages:e,locale:t,list:v,onOpen:w,onNewRequest:h})}),a(zt,{children:[r(J,{type:"button",variant:"tonal",onClick:g,children:e.close}),(v.counts?.all??0)>0?r(J,{type:"button",variant:"tonal",onClick:h,children:y.none.action}):null]})]})}export{Le as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ts}from"./index.7gxz6d1f.js";export{ts as createPieServices};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import{ee}from"./index.r0p3fm9f.js";import{e,n,F,j,A,L,R,I,M,D,O,u,Qt,vl,Y,Qe,K}from"./index.a1bxkgd3.js";import{se}from"./index.7gxz6d1f.js";import{Rt}from"./index.a6rz456z.js";var at=F.pie,B={sections:new Map,showData:!1,config:at},{sections:z,showData:N}=B,ht=structuredClone(at),ft=e(()=>structuredClone(ht),"getConfig"),ut=e(()=>{z=new Map,N=B.showData,A()},"clear"),mt=e(({label:t,value:r})=>{if(r<0)throw Error(`"${t}" has invalid value: ${r}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);if(!z.has(t))z.set(t,r),n.debug(`added new section: ${t}, with value: ${r}`)},"addSection"),vt=e(()=>z,"getSections"),St=e((t)=>{N=t},"setShowData"),xt=e(()=>N,"getShowData"),rt={getConfig:ft,clear:ut,setDiagramTitle:D,getDiagramTitle:O,setAccTitle:L,getAccTitle:R,setAccDescription:I,getAccDescription:M,addSection:mt,getSections:vt,setShowData:St,getShowData:xt},wt=e((t,r)=>{ee(t,r),r.setShowData(t.showData),t.sections.map(r.addSection)},"populateDb"),Ct={parse:e(async(t)=>{let r=await se("pie",t);n.debug(r),wt(r,rt)},"parse")},$t=e((t)=>`
|
|
2
|
-
.pieCircle{
|
|
3
|
-
stroke: ${t.pieStrokeColor};
|
|
4
|
-
stroke-width : ${t.pieStrokeWidth};
|
|
5
|
-
opacity : ${t.pieOpacity};
|
|
6
|
-
}
|
|
7
|
-
.pieCircle.highlighted{
|
|
8
|
-
scale: 1.05;
|
|
9
|
-
opacity: 1;
|
|
10
|
-
}
|
|
11
|
-
.pieCircle.highlightedOnHover:hover{
|
|
12
|
-
transition-duration: 250ms;
|
|
13
|
-
scale: 1.05;
|
|
14
|
-
opacity: 1;
|
|
15
|
-
}
|
|
16
|
-
.pieOuterCircle{
|
|
17
|
-
stroke: ${t.pieOuterStrokeColor};
|
|
18
|
-
stroke-width: ${t.pieOuterStrokeWidth};
|
|
19
|
-
fill: none;
|
|
20
|
-
}
|
|
21
|
-
.pieTitleText {
|
|
22
|
-
text-anchor: middle;
|
|
23
|
-
font-size: ${t.pieTitleTextSize};
|
|
24
|
-
fill: ${t.pieTitleTextColor};
|
|
25
|
-
font-family: ${t.fontFamily};
|
|
26
|
-
}
|
|
27
|
-
.slice {
|
|
28
|
-
font-family: ${t.fontFamily};
|
|
29
|
-
fill: ${t.pieSectionTextColor};
|
|
30
|
-
font-size:${t.pieSectionTextSize};
|
|
31
|
-
// fill: white;
|
|
32
|
-
}
|
|
33
|
-
.legend text {
|
|
34
|
-
fill: ${t.pieLegendTextColor};
|
|
35
|
-
font-family: ${t.fontFamily};
|
|
36
|
-
font-size: ${t.pieLegendTextSize};
|
|
37
|
-
}
|
|
38
|
-
`,"getStyles"),Dt=$t,yt=e((t)=>{let r=[...t.values()].reduce((s,S)=>s+S,0),U=[...t.entries()].map(([s,S])=>({label:s,value:S})).filter((s)=>s.value/r*100>=1);return vl().value((s)=>s.value).sort(null)(U)},"createPieArcs"),Tt=e((t,r,U,V)=>{n.debug(`rendering pie chart
|
|
39
|
-
`+t);let s=V.db,S=u(),f=K(s.getConfig(),S.pie),X=40,o=18,d=4,w=450,C=w,E=Y(r),b=E.append("g");b.attr("transform","translate("+C/2+","+w/2+")");let{themeVariables:l}=S,[Z]=Qe(l.pieOuterStrokeWidth);Z??=2;let{legendPosition:it,textPosition:q}=f,ot=f.donutHole>0&&f.donutHole<=0.9?f.donutHole:0,m=Math.min(C,w)/2-X,nt=Qt().innerRadius(ot*m).outerRadius(m),lt=Qt().innerRadius(m*q).outerRadius(m*q),y=b.append("g");y.append("circle").attr("cx",0).attr("cy",0).attr("r",m+Z/2).attr("class","pieOuterCircle");let k=s.getSections(),st=yt(k),ct=[l.pie1,l.pie2,l.pie3,l.pie4,l.pie5,l.pie6,l.pie7,l.pie8,l.pie9,l.pie10,l.pie11,l.pie12],W=0;k.forEach((a)=>{W+=a});let J=st.filter((a)=>(a.data.value/W*100).toFixed(0)!=="0"),H=Rt(ct).domain([...k.keys()]);y.selectAll("mySlices").data(J).enter().append("path").attr("d",nt).attr("fill",(a)=>H(a.data.label)).attr("class",(a)=>{let i="pieCircle";if(f.highlightSlice==="hover")i+=" highlightedOnHover";else if(f.highlightSlice===a.data.label)i+=" highlighted";return i}),y.selectAll("mySlices").data(J).enter().append("text").text((a)=>(a.data.value/W*100).toFixed(0)+"%").attr("transform",(a)=>"translate("+lt.centroid(a)+")").style("text-anchor","middle").attr("class","slice");let dt=b.append("text").text(s.getDiagramTitle()).attr("x",0).attr("y",-(w-50)/2).attr("class","pieTitleText"),T=[...k.entries()].map(([a,i])=>({label:a,value:i})),v=b.selectAll(".legend").data(T).enter().append("g").attr("class","legend");v.append("rect").attr("width",o).attr("height",o).style("fill",(a)=>H(a.label)).style("stroke",(a)=>H(a.label)),v.append("text").attr("x",o+d).attr("y",o-d).text((a)=>{if(s.getShowData())return`${a.label} [${a.value}]`;return a.label});let x=Math.max(...v.selectAll("text").nodes().map((a)=>a?.getBoundingClientRect().width??0)),_=w,P=C+X,c=o+d,G=T.length*c;switch(it){case"center":v.attr("transform",(a,i)=>{let g=c*T.length/2,p=-x/2-(o+d),h=i*c-g;return"translate("+p+","+h+")"});break;case"top":_+=G,v.attr("transform",(a,i)=>{let g=m,p=-x/2-(o+d),h=i*c-g;return`translate(${p}, ${h})`}),y.attr("transform",()=>`translate(0, ${G+c})`);break;case"bottom":_+=G,v.attr("transform",(a,i)=>{let g=-m-c,p=-x/2-(o+d),h=i*c-g;return"translate("+p+","+h+")"});break;case"left":P+=o+d+x,v.attr("transform",(a,i)=>{let g=c*T.length/2,p=-m-(o+d),h=i*c-g;return"translate("+p+","+h+")"}),y.attr("transform",()=>`translate(${x+o+d}, 0)`);break;case"right":default:P+=o+d+x,v.attr("transform",(a,i)=>{let g=c*T.length/2,p=12*o,h=i*c-g;return"translate("+p+","+h+")"});break}let Q=dt.node()?.getBoundingClientRect().width??0,gt=C/2-Q/2,pt=C/2+Q/2,tt=Math.min(0,gt),et=Math.max(P,pt)-tt;E.attr("viewBox",`${tt} 0 ${et} ${_}`),j(E,_,et,f.useMaxWidth)},"draw"),bt={draw:Tt},Ht={parser:Ct,db:rt,renderer:bt,styles:Dt};export{Ht as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{w,r,Va,Wa,Ka,Ya,Xa,Qa,Za,Ja,ei,ti,ri,ni,ai,ii,Et,oi,Zr}from"./index.e35b4yh5.js";import{Ro,Mo}from"./index.0k4tbjhp.js";var f={"cookie-9":ei,"soft-burst":ri,flower:ni,gem:Qa,"clover-4":ti,sunny:Za,squircle:Va,"cookie-7":Ja,puffy:ai,pentagon:Xa,triangle:Ya,oval:Ka,arch:Wa};function s(o){let t=typeof o==="string"?f[o]:o;if(!t)throw Error(`${JSON.stringify(o)} is not a plate.`);return Et(ii(oi(t)),{size:124,precision:1})}function v({spec:o,idPrefix:t,base:i,edition:a}){let e=w(()=>Ro(o,{idPrefix:t,spriteBase:i,plates:s,...a==="free"?{mapIcon:Zr}:{}}),[o,t,i,a]),n=w(()=>({...e,attrs:{...e.attrs,"data-plated":""}}),[e]);return r(Mo,{node:n})}export{v as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ko}from"./index.7gxz6d1f.js";export{Ko as createRadarServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Pn}from"./index.7gxz6d1f.js";export{Pn as createRailroadServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Fn}from"./index.7gxz6d1f.js";export{Fn as createRailroadAbnfServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Bn}from"./index.7gxz6d1f.js";export{Bn as createRailroadEbnfServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$n}from"./index.7gxz6d1f.js";export{$n as createRailroadPegServices};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import"./index.zm5x44tn.js";import{e}from"./index.a1bxkgd3.js";import"./index.0e4s8r4m.js";import{cs,us}from"./index.t34t6kpe.js";import"./index.dnnzjw18.js";import"./index.7k5v3p25.js";import"./index.9bf5qrah.js";var r=e((t)=>`${cs(t)}
|
|
2
|
-
.swimlane.cluster:not([data-color-id]) rect {
|
|
3
|
-
stroke: ${t.clusterBorder} !important;
|
|
4
|
-
}
|
|
5
|
-
[data-look="neo"].cluster rect {
|
|
6
|
-
filter: none;
|
|
7
|
-
}
|
|
8
|
-
`,"getStyles"),o=r,F=us({styles:o});export{F as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{rs}from"./index.7gxz6d1f.js";export{rs as createTreeViewServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Yo}from"./index.7gxz6d1f.js";export{Yo as createTreemapServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Xo}from"./index.7gxz6d1f.js";export{Xo as createWardleyServices};
|