@jesec/flood 0.0.0-master.40d6c2a → 0.0.0-master.40eac66
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/CHANGELOG.md +102 -0
- package/README.md +16 -2
- package/dist/assets/index.html +1 -1
- package/dist/assets/static/css/694.576adeff92f714a9c991.css +1 -0
- package/dist/assets/static/css/main.fc7b4a6c663b4cda8255.css +1 -0
- package/dist/assets/static/js/151.cb499fcb.chunk.js +1 -0
- package/dist/assets/static/js/483.7871df3a.chunk.js +1 -0
- package/dist/assets/static/js/694.b9f825fe.chunk.js +1 -0
- package/dist/assets/static/js/913.7e8b6f4a.chunk.js +1 -0
- package/dist/assets/static/js/about.ef9ef3c1.chunk.js +1 -0
- package/dist/assets/static/js/flag0.bf11a5d9.chunk.js +1 -0
- package/dist/assets/static/js/flag2.b0967964.chunk.js +1 -0
- package/dist/assets/static/js/flag8.90252071.chunk.js +1 -0
- package/dist/assets/static/js/i18n1.314895a0.chunk.js +1 -0
- package/dist/assets/static/js/i18n10.e13f4aea.chunk.js +1 -0
- package/dist/assets/static/js/i18n12.8d919a59.chunk.js +1 -0
- package/dist/assets/static/js/i18n13.09f816d4.chunk.js +1 -0
- package/dist/assets/static/js/i18n14.754622fd.chunk.js +1 -0
- package/dist/assets/static/js/i18n15.6a2ccd51.chunk.js +1 -0
- package/dist/assets/static/js/i18n16.2c06a097.chunk.js +1 -0
- package/dist/assets/static/js/i18n17.184811b9.chunk.js +1 -0
- package/dist/assets/static/js/i18n18.9964fcd1.chunk.js +1 -0
- package/dist/assets/static/js/i18n19.4ae4a9ec.chunk.js +1 -0
- package/dist/assets/static/js/i18n2.46756d38.chunk.js +1 -0
- package/dist/assets/static/js/i18n20.49ca02f9.chunk.js +1 -0
- package/dist/assets/static/js/i18n21.0cde092b.chunk.js +1 -0
- package/dist/assets/static/js/i18n23.c8b4d3e1.chunk.js +1 -0
- package/dist/assets/static/js/i18n24.f64b951d.chunk.js +1 -0
- package/dist/assets/static/js/i18n25.6d6db53e.chunk.js +1 -0
- package/dist/assets/static/js/i18n27.9b245302.chunk.js +1 -0
- package/dist/assets/static/js/i18n28.be2accff.chunk.js +1 -0
- package/dist/assets/static/js/i18n3.4e17de22.chunk.js +1 -0
- package/dist/assets/static/js/i18n4.27368eaf.chunk.js +1 -0
- package/dist/assets/static/js/i18n5.5cfa8017.chunk.js +1 -0
- package/dist/assets/static/js/i18n8.676fe465.chunk.js +1 -0
- package/dist/assets/static/js/i18n9.f9efdd2f.chunk.js +1 -0
- package/dist/assets/static/js/main.114b18a9.js +1 -0
- package/dist/assets/static/media/ad.1b24595d.png +0 -0
- package/dist/assets/static/media/ae.4dd8f55e.png +0 -0
- package/dist/assets/static/media/af.4ce660eb.png +0 -0
- package/dist/assets/static/media/ag.fd9409e4.png +0 -0
- package/dist/assets/static/media/al.a297aacf.png +0 -0
- package/dist/assets/static/media/am.c84ee0cf.png +0 -0
- package/dist/assets/static/media/ao.a7c9214e.png +0 -0
- package/dist/assets/static/media/ar.7e57ef92.png +0 -0
- package/dist/assets/static/media/at.5aa9728a.png +0 -0
- package/dist/assets/static/media/au.155b51d8.png +0 -0
- package/dist/assets/static/media/az.63afef5b.png +0 -0
- package/dist/assets/static/media/ba.5ce8f273.png +0 -0
- package/dist/assets/static/media/bb.f369fc62.png +0 -0
- package/dist/assets/static/media/bd.516278fc.png +0 -0
- package/dist/assets/static/media/be.08ec4a8d.png +0 -0
- package/dist/assets/static/media/bf.50bfcb31.png +0 -0
- package/dist/assets/static/media/bg.d9346b96.png +0 -0
- package/dist/assets/static/media/bh.f06d5914.png +0 -0
- package/dist/assets/static/media/bi.4923e3a3.png +0 -0
- package/dist/assets/static/media/bj.019fa79b.png +0 -0
- package/dist/assets/static/media/bn.077671e2.png +0 -0
- package/dist/assets/static/media/bo.8fb15fc6.png +0 -0
- package/dist/assets/static/media/br.ec051f0c.png +0 -0
- package/dist/assets/static/media/bs.a74a126f.png +0 -0
- package/dist/assets/static/media/bt.4217b804.png +0 -0
- package/dist/assets/static/media/bw.21fe1567.png +0 -0
- package/dist/assets/static/media/by.d247fe16.png +0 -0
- package/dist/assets/static/media/bz.98ec59f6.png +0 -0
- package/dist/assets/static/media/ca.25743e11.png +0 -0
- package/dist/assets/static/media/cd.a5bfda53.png +0 -0
- package/dist/assets/static/media/cf.de7d5d92.png +0 -0
- package/dist/assets/static/media/cg.a47b626b.png +0 -0
- package/dist/assets/static/media/ch.445f47a1.png +0 -0
- package/dist/assets/static/media/ci.a6009c5b.png +0 -0
- package/dist/assets/static/media/cl.de1d715e.png +0 -0
- package/dist/assets/static/media/cm.3ce8a86a.png +0 -0
- package/dist/assets/static/media/cn.e6a26073.png +0 -0
- package/dist/assets/static/media/co.e9244faa.png +0 -0
- package/dist/assets/static/media/cr.c895e035.png +0 -0
- package/dist/assets/static/media/cu.e486c055.png +0 -0
- package/dist/assets/static/media/cv.a9585acf.png +0 -0
- package/dist/assets/static/media/cw.df13039d.png +0 -0
- package/dist/assets/static/media/cy.b31f43a9.png +0 -0
- package/dist/assets/static/media/cz.8ec5948b.png +0 -0
- package/dist/assets/static/media/de.d12f391a.png +0 -0
- package/dist/assets/static/media/dj.154c3580.png +0 -0
- package/dist/assets/static/media/dk.da382fe2.png +0 -0
- package/dist/assets/static/media/dm.f452e6cd.png +0 -0
- package/dist/assets/static/media/do.c6bd7637.png +0 -0
- package/dist/assets/static/media/dz.672a69c0.png +0 -0
- package/dist/assets/static/media/ec.349d9bd7.png +0 -0
- package/dist/assets/static/media/ee.2396205f.png +0 -0
- package/dist/assets/static/media/eg.ccbf3f45.png +0 -0
- package/dist/assets/static/media/eh.af65674a.png +0 -0
- package/dist/assets/static/media/er.21afb638.png +0 -0
- package/dist/assets/static/media/es.2a6eaee4.png +0 -0
- package/dist/assets/static/media/et.8beb65c8.png +0 -0
- package/dist/assets/static/media/fi.331f70fd.png +0 -0
- package/dist/assets/static/media/fj.7724d800.png +0 -0
- package/dist/assets/static/media/fm.eeaf71e9.png +0 -0
- package/dist/assets/static/media/fr.5d5ab008.png +0 -0
- package/dist/assets/static/media/ga.77ed474c.png +0 -0
- package/dist/assets/static/media/gb.e00065bf.png +0 -0
- package/dist/assets/static/media/gd.b4522267.png +0 -0
- package/dist/assets/static/media/ge.91a7654d.png +0 -0
- package/dist/assets/static/media/gh.4759f92f.png +0 -0
- package/dist/assets/static/media/gm.81cd9f75.png +0 -0
- package/dist/assets/static/media/gn.9f3d376e.png +0 -0
- package/dist/assets/static/media/gq.e8ad58be.png +0 -0
- package/dist/assets/static/media/gr.26f3ac0b.png +0 -0
- package/dist/assets/static/media/gt.9d81c52e.png +0 -0
- package/dist/assets/static/media/gw.dc906982.png +0 -0
- package/dist/assets/static/media/gy.a4f62b6c.png +0 -0
- package/dist/assets/static/media/hk.56555c3f.png +0 -0
- package/dist/assets/static/media/hn.64ee6aad.png +0 -0
- package/dist/assets/static/media/hr.93ebecd3.png +0 -0
- package/dist/assets/static/media/ht.42ca1596.png +0 -0
- package/dist/assets/static/media/hu.bb30f05d.png +0 -0
- package/dist/assets/static/media/id.2cb49f2d.png +0 -0
- package/dist/assets/static/media/ie.b4dd1f19.png +0 -0
- package/dist/assets/static/media/il.cd1d1faf.png +0 -0
- package/dist/assets/static/media/in.2df03847.png +0 -0
- package/dist/assets/static/media/iq.a9b670ab.png +0 -0
- package/dist/assets/static/media/ir.9a3de085.png +0 -0
- package/dist/assets/static/media/is.d88f4fc9.png +0 -0
- package/dist/assets/static/media/it.b73713e3.png +0 -0
- package/dist/assets/static/media/je.0353f56a.png +0 -0
- package/dist/assets/static/media/jm.20330ef4.png +0 -0
- package/dist/assets/static/media/jo.eb66f1d1.png +0 -0
- package/dist/assets/static/media/jp.63e382ae.png +0 -0
- package/dist/assets/static/media/ke.ab2e43b8.png +0 -0
- package/dist/assets/static/media/kg.2c47c2af.png +0 -0
- package/dist/assets/static/media/kh.4732c810.png +0 -0
- package/dist/assets/static/media/ki.5fba09fd.png +0 -0
- package/dist/assets/static/media/km.7bbed3e9.png +0 -0
- package/dist/assets/static/media/kn.a9595a16.png +0 -0
- package/dist/assets/static/media/kp.8a4dc30a.png +0 -0
- package/dist/assets/static/media/kr.5273be1d.png +0 -0
- package/dist/assets/static/media/ks.99f78645.png +0 -0
- package/dist/assets/static/media/kw.af3521bc.png +0 -0
- package/dist/assets/static/media/kz.ea47ef79.png +0 -0
- package/dist/assets/static/media/la.78a598d7.png +0 -0
- package/dist/assets/static/media/lb.7a7c15a9.png +0 -0
- package/dist/assets/static/media/lc.6083a4ff.png +0 -0
- package/dist/assets/static/media/li.61c564a4.png +0 -0
- package/dist/assets/static/media/lk.6fa85802.png +0 -0
- package/dist/assets/static/media/lr.8063f7db.png +0 -0
- package/dist/assets/static/media/ls.901ddb71.png +0 -0
- package/dist/assets/static/media/lt.9209ace3.png +0 -0
- package/dist/assets/static/media/lu.c9872bc1.png +0 -0
- package/dist/assets/static/media/lv.7bcacf0a.png +0 -0
- package/dist/assets/static/media/ly.2830aa63.png +0 -0
- package/dist/assets/static/media/ma.ce5f697b.png +0 -0
- package/dist/assets/static/media/mc.4bd5d57a.png +0 -0
- package/dist/assets/static/media/md.fb4b5bdf.png +0 -0
- package/dist/assets/static/media/me.1f1d1772.png +0 -0
- package/dist/assets/static/media/mg.89101bd2.png +0 -0
- package/dist/assets/static/media/mh.ff11dff7.png +0 -0
- package/dist/assets/static/media/mk.8420e604.png +0 -0
- package/dist/assets/static/media/ml.4db47c66.png +0 -0
- package/dist/assets/static/media/mm.8e4ac30a.png +0 -0
- package/dist/assets/static/media/mn.dc1daa04.png +0 -0
- package/dist/assets/static/media/mr.7cbca6d0.png +0 -0
- package/dist/assets/static/media/mt.28a4b863.png +0 -0
- package/dist/assets/static/media/mu.d93db6c7.png +0 -0
- package/dist/assets/static/media/mv.7d026bf1.png +0 -0
- package/dist/assets/static/media/mw.960cd4fb.png +0 -0
- package/dist/assets/static/media/mx.39b78eb2.png +0 -0
- package/dist/assets/static/media/my.916a8392.png +0 -0
- package/dist/assets/static/media/mz.facb4ea3.png +0 -0
- package/dist/assets/static/media/na.472666a9.png +0 -0
- package/dist/assets/static/media/ne.d774701f.png +0 -0
- package/dist/assets/static/media/ng.7b06a49f.png +0 -0
- package/dist/assets/static/media/ni.7140131c.png +0 -0
- package/dist/assets/static/media/nl.4c04aa96.png +0 -0
- package/dist/assets/static/media/no.c19eb00d.png +0 -0
- package/dist/assets/static/media/np.54fb4f2f.png +0 -0
- package/dist/assets/static/media/nr.7527cc38.png +0 -0
- package/dist/assets/static/media/nz.738be05b.png +0 -0
- package/dist/assets/static/media/om.b25e0a17.png +0 -0
- package/dist/assets/static/media/pa.b28a9059.png +0 -0
- package/dist/assets/static/media/pe.c1fc1d96.png +0 -0
- package/dist/assets/static/media/pg.380115db.png +0 -0
- package/dist/assets/static/media/ph.02199ddc.png +0 -0
- package/dist/assets/static/media/pk.094f9517.png +0 -0
- package/dist/assets/static/media/pl.41521283.png +0 -0
- package/dist/assets/static/media/pt.1f82dc04.png +0 -0
- package/dist/assets/static/media/pw.a26c2316.png +0 -0
- package/dist/assets/static/media/py.926c65ed.png +0 -0
- package/dist/assets/static/media/qa.c6a3c20e.png +0 -0
- package/dist/assets/static/media/ro.a36876c9.png +0 -0
- package/dist/assets/static/media/rs.c6629de8.png +0 -0
- package/dist/assets/static/media/ru.a9b948c1.png +0 -0
- package/dist/assets/static/media/rw.e8aecba0.png +0 -0
- package/dist/assets/static/media/sa.859049c8.png +0 -0
- package/dist/assets/static/media/sb.4ad27b27.png +0 -0
- package/dist/assets/static/media/sc.3293efde.png +0 -0
- package/dist/assets/static/media/sd.19c94faa.png +0 -0
- package/dist/assets/static/media/se.195b3f93.png +0 -0
- package/dist/assets/static/media/sg.19d81907.png +0 -0
- package/dist/assets/static/media/si.367c5443.png +0 -0
- package/dist/assets/static/media/sk.4e5b8a39.png +0 -0
- package/dist/assets/static/media/sl.4b174b1c.png +0 -0
- package/dist/assets/static/media/sm.2cba3dac.png +0 -0
- package/dist/assets/static/media/sn.a4c1041d.png +0 -0
- package/dist/assets/static/media/so.b455e3bf.png +0 -0
- package/dist/assets/static/media/sr.5adc1c00.png +0 -0
- package/dist/assets/static/media/st.5ae44155.png +0 -0
- package/dist/assets/static/media/sv.43aa6cdf.png +0 -0
- package/dist/assets/static/media/sy.0fbd24f7.png +0 -0
- package/dist/assets/static/media/sz.ff204912.png +0 -0
- package/dist/assets/static/media/td.c7aa2a4e.png +0 -0
- package/dist/assets/static/media/tg.857c3bec.png +0 -0
- package/dist/assets/static/media/th.683600c7.png +0 -0
- package/dist/assets/static/media/tj.d20c5570.png +0 -0
- package/dist/assets/static/media/tl.5edd8ea7.png +0 -0
- package/dist/assets/static/media/tm.15960215.png +0 -0
- package/dist/assets/static/media/tn.40df718e.png +0 -0
- package/dist/assets/static/media/to.c3b054df.png +0 -0
- package/dist/assets/static/media/tr.adeace6d.png +0 -0
- package/dist/assets/static/media/tt.839bd7f1.png +0 -0
- package/dist/assets/static/media/tv.628cae3e.png +0 -0
- package/dist/assets/static/media/tw.4e885914.png +0 -0
- package/dist/assets/static/media/tz.b2f0dc37.png +0 -0
- package/dist/assets/static/media/ua.6b103313.png +0 -0
- package/dist/assets/static/media/ug.c84042fc.png +0 -0
- package/dist/assets/static/media/us.8523c31d.png +0 -0
- package/dist/assets/static/media/uy.a943f85e.png +0 -0
- package/dist/assets/static/media/uz.25552673.png +0 -0
- package/dist/assets/static/media/va.a29e1b53.png +0 -0
- package/dist/assets/static/media/vc.7480bd37.png +0 -0
- package/dist/assets/static/media/ve.fd4273c2.png +0 -0
- package/dist/assets/static/media/vn.7d2eff1b.png +0 -0
- package/dist/assets/static/media/vu.48b64cf3.png +0 -0
- package/dist/assets/static/media/ws.f3d9202f.png +0 -0
- package/dist/assets/static/media/ye.311a0e50.png +0 -0
- package/dist/assets/static/media/za.090a856f.png +0 -0
- package/dist/assets/static/media/zm.8371e197.png +0 -0
- package/dist/assets/static/media/zw.a6809447.png +0 -0
- package/dist/index.js +120062 -1
- package/node_modules/async/CHANGELOG.md +3 -0
- package/node_modules/async/dist/async.js +3 -0
- package/node_modules/async/dist/async.min.js +1 -1
- package/node_modules/async/dist/async.min.map +1 -1
- package/node_modules/async/internal/iterator.js +3 -0
- package/node_modules/async/package.json +1 -1
- package/node_modules/balanced-match/.github/FUNDING.yml +2 -0
- package/node_modules/balanced-match/README.md +6 -0
- package/node_modules/balanced-match/index.js +3 -0
- package/node_modules/balanced-match/package.json +3 -4
- package/node_modules/geoip-country/EULA +45 -41
- package/node_modules/geoip-country/README.md +10 -0
- package/node_modules/geoip-country/data/geoip-country.dat +0 -0
- package/node_modules/geoip-country/data/geoip-country6.dat +0 -0
- package/node_modules/geoip-country/lib/geoip.js +34 -0
- package/node_modules/geoip-country/package.json +3 -4
- package/node_modules/geoip-country/scripts/updatedb.js +4 -7
- package/node_modules/geoip-country/test/tests.js +1 -0
- package/node_modules/glob/README.md +4 -1
- package/node_modules/glob/common.js +6 -8
- package/node_modules/glob/glob.js +8 -8
- package/node_modules/glob/package.json +13 -4
- package/node_modules/glob/sync.js +10 -10
- package/node_modules/minimatch/README.md +22 -1
- package/node_modules/minimatch/minimatch.js +93 -69
- package/node_modules/minimatch/package.json +6 -3
- package/package.json +148 -159
- package/dist/assets/static/css/436.c2ceb18494ed574b68dc.css +0 -1
- package/dist/assets/static/css/main.cd35a41fb1f81a55a199.css +0 -1
- package/dist/assets/static/js/436.d94bb0ce.chunk.js +0 -1
- package/dist/assets/static/js/498.56f9beab.chunk.js +0 -1
- package/dist/assets/static/js/770.0d129616.chunk.js +0 -1
- package/dist/assets/static/js/834.202f259a.chunk.js +0 -1
- package/dist/assets/static/js/about.0284c009.chunk.js +0 -1
- package/dist/assets/static/js/flag1.f3540c95.chunk.js +0 -1
- package/dist/assets/static/js/flag2.0d74f37f.chunk.js +0 -1
- package/dist/assets/static/js/flag3.c842686c.chunk.js +0 -1
- package/dist/assets/static/js/flag6.baba829b.chunk.js +0 -1
- package/dist/assets/static/js/i18n1.23f5523e.chunk.js +0 -1
- package/dist/assets/static/js/i18n10.31fdf018.chunk.js +0 -1
- package/dist/assets/static/js/i18n12.d3276933.chunk.js +0 -1
- package/dist/assets/static/js/i18n13.c1e01ce8.chunk.js +0 -1
- package/dist/assets/static/js/i18n14.df0d7c30.chunk.js +0 -1
- package/dist/assets/static/js/i18n15.55f54674.chunk.js +0 -1
- package/dist/assets/static/js/i18n16.94db5c63.chunk.js +0 -1
- package/dist/assets/static/js/i18n17.364aa56d.chunk.js +0 -1
- package/dist/assets/static/js/i18n18.ed365678.chunk.js +0 -1
- package/dist/assets/static/js/i18n19.db488945.chunk.js +0 -1
- package/dist/assets/static/js/i18n20.537a23e6.chunk.js +0 -1
- package/dist/assets/static/js/i18n21.877b4288.chunk.js +0 -1
- package/dist/assets/static/js/i18n23.adf46f4a.chunk.js +0 -1
- package/dist/assets/static/js/i18n25.93892b2c.chunk.js +0 -1
- package/dist/assets/static/js/i18n27.544e606a.chunk.js +0 -1
- package/dist/assets/static/js/i18n28.af227387.chunk.js +0 -1
- package/dist/assets/static/js/i18n3.d859722c.chunk.js +0 -1
- package/dist/assets/static/js/i18n4.bcce10b4.chunk.js +0 -1
- package/dist/assets/static/js/i18n5.e58315bb.chunk.js +0 -1
- package/dist/assets/static/js/i18n6.20789156.chunk.js +0 -1
- package/dist/assets/static/js/i18n8.670a330c.chunk.js +0 -1
- package/dist/assets/static/js/i18n9.1884beaa.chunk.js +0 -1
- package/dist/assets/static/js/main.8c6ea87b.js +0 -1
- package/node_modules/balanced-match/.npmignore +0 -5
- package/node_modules/glob/changelog.md +0 -67
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.webpackChunk_jesec_flood=globalThis.webpackChunk_jesec_flood||[]).push([[498],{9335:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(9669),o=n.n(r),i=n(5823),s=n.n(i),a=n(3768),l=n(4355),c=n(3529);const{baseURI:d}=l.Z,u=e=>{a.Z.add({id:"alert.torrent.add.sent",count:e})},p=e=>{a.Z.add({id:"alert.torrent.add",type:"success",count:e})},h=e=>{a.Z.add({id:"alert.torrent.add.failed",type:"error",count:e})},m={addTorrentsByUrls:e=>o().post(`${d}api/torrents/add-urls`,e).then((e=>e.data)).then((t=>{t.length?p(t.length):u(e.urls.length)}),(()=>{h(e.urls.length)})),addTorrentsByFiles:e=>o().post(`${d}api/torrents/add-files`,e).then((e=>e.data)).then((t=>{t.length?p(t.length):u(e.files.length)}),(()=>{h(e.files.length)})),createTorrent:e=>o().post(`${d}api/torrents/create`,e,{responseType:"blob"}).then((t=>{s()(t.data,(e.name||`${Date.now()}`).concat(".torrent")),p(1)}),(()=>{h(1)})),deleteTorrents:e=>o().post(`${d}api/torrents/delete`,e).then((e=>e.data)).then((()=>{a.Z.add({id:"alert.torrent.remove",type:"success",count:e.hashes.length})}),(()=>{a.Z.add({id:"alert.torrent.remove.failed",type:"error",count:e.hashes.length})})),checkHash:e=>o().post(`${d}api/torrents/check-hash`,e).then((e=>e.data)).then((()=>{}),(()=>{})),fetchMediainfo:(e,t)=>o().get(`${d}api/torrents/${e}/mediainfo`,{cancelToken:t}).then((e=>e.data)),fetchTorrentContents:e=>o().get(`${d}api/torrents/${e}/contents`).then((e=>e.data)).then((e=>e),(()=>null)),fetchTorrentPeers:e=>o().get(`${d}api/torrents/${e}/peers`).then((e=>e.data)).then((e=>e),(()=>null)),fetchTorrentTrackers:e=>o().get(`${d}api/torrents/${e}/trackers`).then((e=>e.data)).then((e=>e),(()=>null)),getTorrentContentsDataPermalink:(e,t)=>o().get(`${l.Z.baseURI}api/torrents/${e}/contents/${t.join(",")}/token`).then((n=>`${window.location.protocol}//${window.location.host}${l.Z.baseURI}api/torrents/${e}/contents/${t.join(",")}/data?token=${n.data}`)),moveTorrents:e=>o().post(`${d}api/torrents/move`,e).then((e=>e.data)).then((()=>{a.Z.add({id:"alert.torrent.move",type:"success",count:e.hashes.length})}),(()=>{a.Z.add({id:"alert.torrent.move.failed",type:"error",count:e.hashes.length})})),reannounce:e=>o().post(`${d}api/torrents/reannounce`,e).then((e=>e.data)).then((()=>{}),(()=>{})),startTorrents:async e=>{if(e.hashes.length>0)return o().post(`${d}api/torrents/start`,e).then((e=>e.data)).then((()=>{}),(()=>{}))},stopTorrents:async e=>{if(e.hashes.length>0)return o().post(`${d}api/torrents/stop`,e).then((e=>e.data)).then((()=>{}),(()=>{}))},setInitialSeeding:e=>o().patch(`${d}api/torrents/initial-seeding`,e).then((e=>e.data)).then((()=>{}),(()=>{})),setPriority:e=>o().patch(`${d}api/torrents/priority`,e).then((e=>e.data)).then((()=>{}),(()=>{})),setSequential:e=>o().patch(`${d}api/torrents/sequential`,e).then((e=>e.data)).then((()=>{}),(()=>{})),setFilePriority:(e,t)=>o().patch(`${d}api/torrents/${e}/contents`,t).then((e=>e.data)).then((()=>{}),(()=>{})),setTags:e=>o().patch(`${d}api/torrents/tags`,e).then((e=>e.data)).then((()=>{c.Z.handleSetTaxonomySuccess()}),(()=>{})),setTrackers:e=>o().patch(`${d}api/torrents/trackers`,e).then((e=>e.data)).then((()=>{}),(()=>{}))}},1493:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(1967),o=n(4936),i=n(3529);const s={displayContextMenu:e=>{i.Z.setActiveContextMenu(e)},displayDropdownMenu:e=>{i.Z.setActiveDropdownMenu(e)},displayModal:e=>{i.Z.setActiveModal(e)},dismissContextMenu:e=>{i.Z.dismissContextMenu(e)},dismissModal:()=>{i.Z.dismissModal()},handleTorrentClick:e=>{o.Z.setSelectedTorrents(e)},selectAllTorrents:()=>{o.Z.selectAllTorrents()},setTorrentStatusFilter:e=>{r.Z.setStatusFilter(e)},setTorrentTagFilter:e=>{r.Z.setTagFilter(e)},setTorrentTrackerFilter:e=>{r.Z.setTrackerFilter(e)},setTorrentsSearchFilter:e=>{r.Z.setSearchFilter(e)}}},2159:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(7294),o=n(6599),i=n(509),s=n(8111),a=n(7266),l=n(2809),c=n(2869),d=n(8889);const u=({mode:e})=>{const{i18n:t}=(0,o.mV)(),n=(0,r.useRef)(null),u=(0,r.useRef)(null),[p,h]=(0,r.useState)(void 0),[m,Z]=(0,r.useState)(!1),_="login"===e;return(0,d.tZ)("div",{className:"application__entry-barrier",children:(0,d.tZ)(i.s_,{spacing:"large",children:(0,d.BX)(i.l0,{onSubmit:e=>{e.event.preventDefault(),Z(!0);const t=e.formData;if(null==t.username||""===t.username)return Z(!1),void h({id:"auth.error.username.empty"});if(null==t.password||""===t.password)return Z(!1),void h({id:"auth.error.password.empty"});if(_){const e=t;s.Z.authenticate({username:e.username,password:e.password}).then((()=>{Z(!1),a.Z.replace("overview")})).catch((e=>{Z(!1),h(e.message),a.Z.replace("login")}))}else{const e=t;if(null==u.current)return Z(!1),void h({id:"connection.settings.error.empty"});const n=u.current;if(null==n)return Z(!1),void h({id:"connection.settings.error.empty"});s.Z.register({username:e.username,password:e.password,client:n,level:l.u.ADMINISTRATOR}).then((()=>{Z(!1),a.Z.replace("overview")}),(e=>{Z(!1),h(e.message)}))}},ref:n,children:[(0,d.tZ)(i.V9,{children:(0,d.tZ)("h1",{children:_?t._("auth.login"):t._("auth.create.an.account")})}),(0,d.BX)(i.KG,{children:[(0,d.tZ)("p",{className:"copy--lead",children:_?t._("auth.login.intro"):t._("auth.create.an.account.intro")}),null!=p?(0,d.tZ)(i.p7,{children:(0,d.tZ)(i.Xq,{isLoading:m,children:"string"==typeof p?p:t._(p)})}):null,(0,d.tZ)(i.p7,{children:(0,d.tZ)(i.fE,{placeholder:"Username",id:"username",autoComplete:"username"})}),(0,d.tZ)(i.p7,{children:(0,d.tZ)(i.fE,{placeholder:"Password",id:"password",type:"password",autoComplete:_?"current-password":"new-password"})})]}),_?null:(0,d.tZ)(i.KG,{hasBorder:!0,children:(0,d.tZ)(c.Z,{onSettingsChange:e=>{u.current=e}})}),(0,d.tZ)(i.jH,{hasBorder:!0,children:(0,d.BX)(i.p7,{justify:"end",children:[(0,d.tZ)(i.zx,{priority:"tertiary",onClick:()=>{null!=n.current&&n.current.resetForm()},children:t._("auth.input.clear")}),(0,d.tZ)(i.zx,{isLoading:m,type:"submit",children:_?t._("auth.log.in"):t._("auth.create.account")})]})})]})})})}},8447:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(8889);const o=({children:e})=>(0,r.tZ)("div",{className:"badge",children:e})},228:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(6599),o=n(8889);const i=e=>{const{suffix:t,value:n}=e;if(null==n)return null;let i=null,s=null;t&&(s=(0,o.tZ)("span",{className:"duration--segment",children:t}));const a=-1===n?-1:(e=>{const t=Math.floor(e/31536e3),n=Math.floor(e%31536e3/604800),r=Math.floor(e%31536e3%604800/86400),o=Math.floor(e%31536e3%604800%86400/3600),i=Math.floor(e%31536e3%604800%86400%3600/60),s=Math.floor(e-60*i);let a=null;return a=t>0?{years:t,weeks:n,cumSeconds:e}:n>0?{weeks:n,days:r,cumSeconds:e}:r>0?{days:r,hours:o,cumSeconds:e}:o>0?{hours:o,minutes:i,cumSeconds:e}:i>0?{minutes:i,seconds:s,cumSeconds:e}:{seconds:s,cumSeconds:e},a})(n);return i=-1===a?(0,o.tZ)(r.cC,{id:"unit.time.infinity"}):null!=a.years&&a.years>0?[(0,o.BX)("span",{className:"duration--segment",children:[a.years,(0,o.tZ)("em",{className:"unit",children:(0,o.tZ)(r.cC,{id:"unit.time.year"})})]},"years"),(0,o.BX)("span",{className:"duration--segment",children:[a.weeks,(0,o.tZ)("em",{className:"unit",children:(0,o.tZ)(r.cC,{id:"unit.time.week"})})]},"weeks")]:null!=a.weeks&&a.weeks>0?[(0,o.BX)("span",{className:"duration--segment",children:[a.weeks,(0,o.tZ)("em",{className:"unit",children:(0,o.tZ)(r.cC,{id:"unit.time.week"})})]},"weeks"),(0,o.BX)("span",{className:"duration--segment",children:[a.days,(0,o.tZ)("em",{className:"unit",children:(0,o.tZ)(r.cC,{id:"unit.time.day"})})]},"days")]:null!=a.days&&a.days>0?[(0,o.BX)("span",{className:"duration--segment",children:[a.days,(0,o.tZ)("em",{className:"unit",children:(0,o.tZ)(r.cC,{id:"unit.time.day"})})]},"days"),(0,o.BX)("span",{className:"duration--segment",children:[a.hours,(0,o.tZ)("em",{className:"unit",children:(0,o.tZ)(r.cC,{id:"unit.time.hour"})})]},"hours")]:null!=a.hours&&a.hours>0?[(0,o.BX)("span",{className:"duration--segment",children:[a.hours,(0,o.tZ)("em",{className:"unit",children:(0,o.tZ)(r.cC,{id:"unit.time.hour"})})]},"hours"),(0,o.BX)("span",{className:"duration--segment",children:[a.minutes,(0,o.tZ)("em",{className:"unit",children:(0,o.tZ)(r.cC,{id:"unit.time.minute"})})]},"minutes")]:null!=a.minutes&&a.minutes>0?[(0,o.BX)("span",{className:"duration--segment",children:[a.minutes,(0,o.tZ)("em",{className:"unit",children:(0,o.tZ)(r.cC,{id:"unit.time.minute"})})]},"minutes"),(0,o.BX)("span",{className:"duration--segment",children:[a.seconds,(0,o.tZ)("em",{className:"unit",children:(0,o.tZ)(r.cC,{id:"unit.time.second"})})]},"seconds")]:(0,o.BX)("span",{className:"duration--segment",children:[a.seconds,(0,o.tZ)("em",{className:"unit",children:(0,o.tZ)(r.cC,{id:"unit.time.second"})})]}),(0,o.BX)("span",{className:"duration",children:[i,s]})};i.defaultProps={suffix:void 0};const s=i},2036:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(7294),o=n(6599);const i={file:{0:"DONT_DOWNLOAD",1:"NORMAL",2:"HIGH"},torrent:{0:"DONT_DOWNLOAD",1:"LOW",2:"NORMAL",3:"HIGH"}};var s=n(8889);var a={name:"1gxvag8",styles:":focus{outline:none;-webkit-tap-highlight-color:transparent;}:focus-visible{outline:dashed;}"};const l=({id:e,level:t,maxLevel:n,priorityType:l,showLabel:c,clickHandled:d,changePriorityFuncRef:u,onChange:p})=>{const{i18n:h}=(0,o.mV)(),[m,Z]=(0,r.useState)(t),_=()=>{let t=m;return t>=n?t=0:t+=1,Z(t),p(e,t),t};let b;if(null!=u&&(u.current=_),c){let e;switch(i[l][m]){case"DONT_DOWNLOAD":e=h._("priority.dont.download");break;case"HIGH":e=h._("priority.high");break;case"LOW":e=h._("priority.low");break;default:e=h._("priority.normal")}b=(0,s.tZ)("span",{className:"priority-meter__label",children:e})}const g=(0,s.tZ)("div",{className:`priority-meter priority-meter--max-${n} priority-meter--level-${m}`}),f=a;return d?(0,s.BX)("div",{className:"priority-meter__wrapper",css:f,children:[g,b]}):(0,s.BX)("button",{className:"priority-meter__wrapper",css:f,type:"button",onClick:()=>{_()},children:[g,b]})};l.defaultProps={showLabel:!1,clickHandled:!1,changePriorityFuncRef:void 0};const c=l},369:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(7294),o=n(8889);const i=(0,r.memo)((({percent:e,icon:t})=>(0,o.BX)("div",{className:"progress-bar",children:[(0,o.tZ)("div",{className:"progress-bar__icon",children:t}),(0,o.tZ)("div",{className:"progress-bar__fill__wrapper",children:(0,o.tZ)("div",{className:"progress-bar__fill",style:{width:`${e}%`}})})]})));i.defaultProps={icon:void 0};const s=i},2104:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(6599),o=n(485),i=n(8889);const s=({value:e,isSpeed:t,className:n,precision:s})=>{const a=(0,o.Q)(e,s),{i18n:l}=(0,r.mV)();let c=l._((0,o.A)(a.unit));return t&&(c=l._("unit.speed",{baseUnit:c})),(0,i.BX)("span",{className:n,children:[Number.isNaN(a.value)?"—":l.number(a.value),(0,i.tZ)("em",{className:"unit",children:c})]})};s.defaultProps={isSpeed:!1,precision:2,className:void 0};const a=s},9097:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(7294),o=n(4184),i=n.n(o),s=n(3935),a=n(8889);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c=(e,t,n,r,o)=>{if("start"===e&&n<r)return"end";if("end"===e&&t<r)return"start";if("center"===e){const e=(r-o)/2;if(t<e)return"start";if(n<e)return"end"}return e},d=(e,t,n,r,o)=>e?c(t,n.left,n.right,r,n.boundingRect.width):c(t,n.top,n.bottom,o,n.boundingRect.height);class u extends r.Component{constructor(e){super(e),l(this,"container",window),l(this,"triggerNode",(0,r.createRef)()),l(this,"tooltipNode",(0,r.createRef)()),l(this,"dismissTooltip",(e=>{const{stayOpen:t,onClose:n}=this.props,{isOpen:r}=this.state;t&&!e||!r||(this.setState({isOpen:!1}),this.removeScrollListener(),n&&n())})),l(this,"handleTooltipMouseEnter",(()=>{const{interactive:e}=this.props,{wasTriggeredClose:t}=this.state;e&&!t&&(this.setState({isOpen:!0}),this.addScrollListener())})),l(this,"handleTooltipMouseLeave",(()=>{this.dismissTooltip()})),l(this,"handleMouseEnter",(e=>{const{props:t}=this;if(t.suppress&&!e)return;if(null==t.anchor||null==t.position)return;const{anchor:n,position:r,coordinates:o}=this.getIdealLocation(t.anchor,t.position);this.setState({anchor:n,isOpen:!0,position:r,coordinates:o,wasTriggeredClose:!1}),this.addScrollListener(),t.onOpen&&t.onOpen()})),l(this,"handleMouseLeave",(()=>{this.dismissTooltip();const{onMouseLeave:e}=this.props;e&&e()})),l(this,"isOpen",(()=>{const{isOpen:e}=this.state;return e})),this.state={isOpen:!1,wasTriggeredClose:!1}}componentWillUnmount(){this.removeScrollListener()}getCoordinates(e,t,n,r){const{align:o,offset:i=0}=this.props;let s=null;switch(e){case"left":return{top:t.boundingRect.top+t.boundingRect.height/2,left:t.boundingRect.left-n+7+i};case"right":return{top:t.boundingRect.top+t.boundingRect.height/2,left:t.boundingRect.right+i};case"top":s=t.boundingRect.top-r+7+i;break;case"bottom":s=t.boundingRect.bottom+i}switch(o){case"start":return{top:s,left:t.boundingRect.left};case"center":return{top:s,left:t.boundingRect.left+t.boundingRect.width/2};case"end":return{top:s,left:t.boundingRect.left+t.boundingRect.width-n}}return{top:0,left:0}}getIdealLocation(e,t){if(null==this.triggerNode.current||null==this.tooltipNode.current||null==e)return{anchor:e,position:t,coordinates:{left:0,top:0}};const n=(e=>{const t=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0),n=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),r=e.getBoundingClientRect();return{bottom:t-r.bottom,left:r.left,right:n-r.right,top:r.top,boundingRect:r}})(this.triggerNode.current),r=this.tooltipNode.current.getBoundingClientRect(),o=r.height+7,i=r.width+7,s=((e,t,n,r)=>{switch(e){case"left":if(t.left<n)return"right";break;case"right":if(t.right<n)return"left";break;case"top":if(t.top<r)return"bottom";break;case"bottom":if(t.bottom<r&&t.top>t.bottom)return"top"}return e})(t,n,i,o);return{anchor:d("left"!==s&&"right"!==s,e,n,i,o),position:s,coordinates:this.getCoordinates(s,n,i,o)}}addScrollListener(){this.container.addEventListener("scroll",(()=>this.dismissTooltip()))}removeScrollListener(){this.container&&this.container.removeEventListener("scroll",(()=>this.dismissTooltip()))}render(){const{anchor:e,position:t,children:n,align:r,className:o,interactive:l,wrapText:c,width:d,maxWidth:u,wrapperClassName:p,contentClassName:h,styles:m,content:Z,onClick:_}=this.props,{anchor:b,position:g,coordinates:f,isOpen:v}=this.state;let y={};const w=b||e,N=g||t,k=i()(o,`tooltip--anchor--${w}`,`tooltip--position--${N}`,`tooltip--align--${r}`,{"is-interactive":l,"is-open":v,"tooltip--no-wrap":!c});f&&(y={left:f.left,top:f.top}),d&&(y.width=d),u&&(y.maxWidth=u);const C=document.getElementById("app");return null==C?null:(0,a.BX)("div",{"aria-label":"string"==typeof Z?Z:void 0,className:p,css:[":focus{outline:none;-webkit-tap-highlight-color:transparent;}",m,"",""],tabIndex:0,role:"button",onClick:_,onKeyPress:e=>{" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),null==_||_())},onFocus:()=>this.handleMouseEnter(),onBlur:()=>{l||this.handleMouseLeave()},onMouseEnter:()=>this.handleMouseEnter(),onMouseLeave:()=>this.handleMouseLeave(),ref:this.triggerNode,children:[n,s.createPortal((0,a.tZ)("div",{className:k,ref:this.tooltipNode,style:y,onMouseEnter:this.handleTooltipMouseEnter,onMouseLeave:this.handleTooltipMouseLeave,children:(0,a.tZ)("div",{className:h,children:Z})}),C)]})}}l(u,"defaultProps",{align:"center",anchor:"center",className:"tooltip",contentClassName:"tooltip__content",styles:void 0,interactive:!1,offset:0,position:"top",stayOpen:!1,suppress:!1,wrapperClassName:"tooltip__wrapper",wrapText:!1});const p=u},6531:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(7294),o=n(4916),i=n(8889);const s={error:(0,i.tZ)(o.jj,{}),checking:(0,i.tZ)(o.$j,{}),stopped:(0,i.tZ)(o.dV,{}),downloading:(0,i.tZ)(o.zf,{}),seeding:(0,i.tZ)(o.zf,{})},a=({statuses:e})=>{let t=(0,i.tZ)(o.dV,{});return Object.keys(s).some((n=>{const r=n;if(e.includes(r)){const e=s[r];if(null!=e)return t=e,!0}return!1})),t},l=(0,r.memo)(a)},2656:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(4184),o=n.n(r),i=n(8889);const s=e=>{const{children:t,modifier:n}=e,r=o()("application__view",{[`application__view--${n}`]:null!=n});return(0,i.tZ)("div",{className:r,children:t})};s.defaultProps={modifier:void 0};const a=s},8737:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={start:"torrents.list.context.start",stop:"torrents.list.context.stop",remove:"torrents.list.context.remove",checkHash:"torrents.list.context.check.hash",reannounce:"torrents.list.context.reannounce",setTaxonomy:"torrents.list.context.set.tags",move:"torrents.list.context.move",setTrackers:"torrents.list.context.set.trackers",torrentDetails:"torrents.list.context.details",downloadContents:"torrents.list.context.download.contents",downloadMetainfo:"torrents.list.context.download.metainfo",generateMagnet:"torrents.list.context.generate.magnet",setInitialSeeding:"torrents.list.context.initial.seeding",setSequential:"torrents.list.context.sequential",setPriority:"torrents.list.context.priority"}},882:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={dateAdded:"torrents.properties.date.added",downRate:"torrents.properties.download.speed",downTotal:"torrents.properties.download.total",eta:"torrents.properties.eta",name:"torrents.properties.name",peers:"torrents.properties.peers",percentComplete:"torrents.properties.percentage",ratio:"torrents.properties.ratio",seeds:"torrents.properties.seeds",sizeBytes:"torrents.properties.size",tags:"torrents.properties.tags",upRate:"torrents.properties.upload.speed",upTotal:"torrents.properties.upload.total",dateCreated:"torrents.properties.creation.date",directory:"torrents.properties.directory",hash:"torrents.properties.hash",isPrivate:"torrents.properties.is.private",message:"torrents.properties.tracker.message",trackerURIs:"torrents.properties.trackers"}},9343:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(2656),o=n(2159),i=n(8889);const s=()=>(0,i.tZ)(r.Z,{modifier:"auth-form",children:(0,i.tZ)(o.Z,{mode:"login"})})},2287:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Vt});var r=n(7294),o=n(4184),i=n.n(o),s=n(150),a=n(6599),l=n(4916),c=n(1540),d=n(879),u=n(9335),p=n(4936),h=n(1493),m=n(9097),Z=n(8889);const _=e=>{const{clickHandler:t,icon:n,label:r,slug:o,noTip:s}=e,a=i()("action tooltip__wrapper",{[`action--${o}`]:null!=o});return(0,Z.BX)(m.Z,{content:r,onClick:t,position:"bottom",wrapperClassName:a,suppress:s,children:[n,(0,Z.tZ)("span",{className:"action__label",children:r})]})};_.defaultProps={noTip:!1};const b=_,g={dateAdded:"desc",downRate:"desc",downTotal:"desc",upRate:"desc",upTotal:"desc"};var f=n(8983),v=n(4537),y=n(3955),w=n.n(y),N=n(7264),k=n(3529);var C={name:"140xmhl",styles:"width:100%;height:100%;text-align:left;:focus-visible{outline:dashed;}"};const T=({className:e,label:t,isFocusHandled:n,onClick:r})=>n?(0,Z.tZ)("div",{role:"none",className:e,onClick:r,children:t}):(0,Z.tZ)("button",{type:"button",className:e,css:C,onClick:r,children:t});T.defaultProps={className:void 0};const S=(0,s.Pi)((({baseClassName:e,dropdownWrapperClass:t,dropdownButtonClass:n,dropdownClickRef:o,direction:s,header:a,matchButtonWidth:l,menuItems:c,noWrap:d,trigger:u,width:p,isFocusHandled:m,handleItemSelect:_,onOpen:b})=>{const g=(0,r.useRef)(w()("dropdown_")),y=k.Z.activeDropdownMenu===g.current,C=i()(t,`${e}--direction-${s}`,{[`${e}--match-button-width`]:l,[`${e}--width-${p}`]:null!=p,[`${e}--no-wrap`]:d,"is-expanded":y}),S=(0,r.useCallback)((()=>{window.removeEventListener("click",S),h.Z.displayDropdownMenu(null)}),[]);(0,N.Z)("Escape",(()=>S()));const O=(0,r.useCallback)((()=>{window.addEventListener("click",S),b&&b(),h.Z.displayDropdownMenu(g.current)}),[S,b]),P=e=>{null==e||e.stopPropagation(),y?S():O()};let R;if(o&&(o.current=P),y){const e=(0,Z.tZ)("div",{className:"dropdown__header",children:(0,Z.tZ)(T,{className:n,label:a,isFocusHandled:null!=m&&m,onClick:P})},"dropdown-header"),t=(0,Z.tZ)("ul",{className:"dropdown__items",children:c.map(((e,t)=>(0,Z.tZ)("div",{className:"dropdown__list",children:e.map(((e,t)=>{const n=i()("dropdown__item menu__item",e.className,{"is-selectable":!1!==e.selectable,"is-selected":e.selected});return(0,Z.tZ)("li",{className:n,children:(0,Z.tZ)("button",{type:"button",disabled:!1===e.selectable,onClick:!1===e.selectable?void 0:()=>{S(),_(e)},children:e.displayName})},t)}))},t)))},"dropdown-items");R=(0,Z.tZ)(f.Z,{classNames:"menu",timeout:{enter:250,exit:250},children:(0,Z.tZ)("div",{className:"dropdown__content menu",children:"up"===s?[t,e]:[e,t]})})}return(0,Z.BX)("div",{className:C,children:[(0,Z.tZ)(T,{className:n,label:null!=u?u:a,isFocusHandled:null!=m&&m,onClick:P}),(0,Z.tZ)(v.Z,{children:R})]})}));S.defaultProps={baseClassName:"dropdown",direction:"down",dropdownWrapperClass:"dropdown",dropdownButtonClass:"dropdown__trigger",matchButtonWidth:!1,noWrap:!1,isFocusHandled:!1};const O=S;var P=n(882);const R=["name","eta","downRate","upRate","ratio","percentComplete","downTotal","upTotal","sizeBytes","dateAdded"],M=e=>{const{direction:t,selectedProperty:n,onSortChange:r}=e,{i18n:o}=(0,a.mV)();if(null==n)return null;const i=(0,Z.BX)("div",{className:"dropdown__button",children:[(0,Z.tZ)("span",{className:"dropdown__label",children:(0,Z.tZ)(a.cC,{id:"torrents.sort.title"})}),(0,Z.tZ)("span",{className:"dropdown__value",children:(0,Z.tZ)(a.cC,{id:P.Z[n]})})]}),s=[R.map((e=>{const r=e===n,i=r?(0,Z.tZ)("span",{className:`sort-dropdown__indicator sort-dropdown__indicator--${t}`}):null;return{displayName:(0,Z.BX)("div",{className:"sort-dropdown__item",children:[o._(P.Z[e]),i]}),selected:r,property:e}}))];return(0,Z.tZ)(O,{handleItemSelect:e=>{var o;const{property:i}=e;if(null==i)return;let s=null!==(o=g[i])&&void 0!==o?o:"asc";n===i&&(s="asc"===t?"desc":"asc"),r({direction:s,property:i})},header:i,menuItems:s})},x=(0,s.Pi)((()=>{const{i18n:e}=(0,a.mV)(),{sortTorrents:t,torrentListViewSize:n}=d.Z.floodSettings,r=i()("action-bar",{"action-bar--is-condensed":"condensed"===n});return(0,Z.BX)("nav",{className:r,children:[(0,Z.tZ)("div",{className:"actions action-bar__item action-bar__item--sidebar-expand-collapse",children:(0,Z.tZ)(b,{label:"actionbar.button.sidebar.expand.collapse",slug:"sidebar-expand-collapse",icon:(0,Z.tZ)(l.v2,{}),clickHandler:()=>{const e=document.getElementsByClassName("application__view")[0];null!=e&&e.classList.toggle("application__view--sidebar-alternative-state")},noTip:!0})}),(0,Z.tZ)("div",{className:"actions action-bar__item action-bar__item--sort-torrents",children:(0,Z.tZ)(M,{direction:null!=t?t.direction:"desc",onSortChange:e=>{c.Z.saveSetting("sortTorrents",e)},selectedProperty:null!=t?t.property:"dateAdded"})}),(0,Z.BX)("div",{className:"actions action-bar__item action-bar__item--torrent-operations",children:[(0,Z.BX)("div",{className:"action-bar__group",children:[(0,Z.tZ)(b,{label:e._("actionbar.button.start.torrent"),slug:"start-torrent",icon:(0,Z.tZ)(l.zf,{}),clickHandler:()=>u.Z.startTorrents({hashes:p.Z.selectedTorrents})}),(0,Z.tZ)(b,{label:e._("actionbar.button.stop.torrent"),slug:"stop-torrent",icon:(0,Z.tZ)(l.dV,{}),clickHandler:()=>u.Z.stopTorrents({hashes:p.Z.selectedTorrents})})]}),(0,Z.BX)("div",{className:"action-bar__group action-bar__group--has-divider",children:[(0,Z.tZ)(b,{label:e._("actionbar.button.add.torrent"),slug:"add-torrent",icon:(0,Z.tZ)(l.mm,{}),clickHandler:()=>h.Z.displayModal({id:"add-torrents"})}),(0,Z.tZ)(b,{label:e._("actionbar.button.remove.torrent"),slug:"remove-torrent",icon:(0,Z.tZ)(l.JW,{}),clickHandler:()=>h.Z.displayModal({id:"remove-torrents"})})]})]})]})})),B=({children:e})=>(0,Z.tZ)("div",{className:"application__content",children:e}),$=e=>{const{children:t,baseClassName:n,className:r,modifier:o}=e,s=i()(n,{[`${n}--${o}`]:n,[r]:r});return(0,Z.tZ)("div",{className:s,children:t})};$.defaultProps={baseClassName:"application__panel"};const X=$;var D=n(2656),j=n(5051),E=n(1861),L=n(8826),H=n(2104),I=n(369);function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(Object(n),!0).forEach((function(t){V(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const z=({label:e,value:t})=>(0,Z.BX)("li",{"aria-label":"label",className:"diskusage__details-list__item",role:"cell",children:[(0,Z.tZ)("span",{className:"diskusage__details-list__label",children:e}),(0,Z.tZ)(H.Z,{className:"diskuage__size-used",value:t})]});var W={name:"1ll9bqd",styles:"cursor:default"};const U=(0,s.Pi)((()=>{const{i18n:e}=(0,a.mV)(),{disks:t}=L.Z,{mountPoints:n}=d.Z.floodSettings;if(null==t||null==n)return null;const r=t.reduce(((e,t)=>A(A({},e),{},{[t.target]:t})),{}),o=n.filter((e=>e in r)).map((e=>r[e])).map((t=>(0,Z.tZ)("li",{className:"sidebar-filter__item sidebar__diskusage",role:"row",children:(0,Z.BX)(m.Z,{content:(0,Z.BX)("ul",{className:"diskusage__details-list",role:"tooltip",children:[(0,Z.tZ)(z,{value:t.used,label:e._("status.diskusage.used")}),(0,Z.tZ)(z,{value:t.avail,label:e._("status.diskusage.free")}),(0,Z.tZ)(z,{value:t.size,label:e._("status.diskusage.total")})]}),position:"top",styles:W,wrapperClassName:"diskusage__item",children:[(0,Z.BX)("div",{className:"diskusage__text-row",children:[t.target,(0,Z.BX)("span",{children:[Math.round(100*t.used/t.size),"%"]})]}),(0,Z.tZ)(I.Z,{percent:Math.round(100*t.used/t.size)})]})},t.target)));if(null==o||0===o.length)return null;const i=e._("status.diskusage.title");return(0,Z.BX)("ul",{"aria-label":i,className:"sidebar-filter sidebar__item",role:"table",children:[(0,Z.tZ)("li",{className:"sidebar-filter__item sidebar-filter__item--heading",children:i}),o]})})),G=()=>{const{i18n:e}=(0,a.mV)(),t=(0,r.useRef)(null);return(0,Z.tZ)(m.Z,{content:e._("sidebar.button.feeds"),onClick:()=>{null!=t.current&&t.current.dismissTooltip(),h.Z.displayModal({id:"feeds"})},ref:t,position:"bottom",wrapperClassName:"sidebar__action sidebar__icon-button sidebar__icon-button--interactive tooltip__wrapper",children:(0,Z.tZ)(l.fR,{})})};var K=n(8111),q=n(4355);const Q=()=>{const{i18n:e}=(0,a.mV)();return"none"===q.Z.authMethod?null:(0,Z.tZ)(m.Z,{content:e._("sidebar.button.log.out"),onClick:()=>K.Z.logout().then((()=>{window.location.reload()})),position:"bottom",wrapperClassName:"sidebar__action sidebar__action--last sidebar__icon-button sidebar__icon-button--interactive tooltip__wrapper",children:(0,Z.tZ)(l.RD,{})})};var Y=n(95);const J=10,ee=e=>j.Z.fetchNotifications({id:"notification-tooltip",limit:J,start:e}),te=({paginationStart:e,notificationTotal:t})=>{const{i18n:n}=(0,a.mV)();if(t>J){let r=e+1,o=e+J;return r>t&&(r=t),o>t&&(o=t),(0,Z.tZ)("div",{className:"toolbar toolbar--dark toolbar--top tooltip__toolbar tooltip__content--padding-surrogate",children:(0,Z.BX)("span",{className:"toolbar__item toolbar__item--label",children:[`${n._("notification.showing")} `,(0,Z.BX)("strong",{children:[r,` ${n._("general.to")} `,o]}),` ${n._("general.of")} `,(0,Z.tZ)("strong",{children:t})]})})}return null},ne=({index:e,notification:t})=>{const{i18n:n}=(0,a.mV)();return(0,Z.BX)("li",{className:"notifications__list__item",children:[(0,Z.BX)("div",{className:"notification__heading",children:[(0,Z.tZ)("span",{className:"notification__category",children:n._(`${t.id}.heading`)})," — ",(0,Z.tZ)("span",{className:"notification__timestamp",children:n.date(new Date(t.ts),{year:"numeric",month:"long",day:"2-digit",hour:"numeric",minute:"numeric"})})]}),(0,Z.tZ)("div",{className:"notification__message",children:n._(`${t.id}.body`,t.data)})]},e)},re=({paginationStart:e,notificationTotal:t,onPrevClick:n,onClearClick:r,onNextClick:o})=>{const{i18n:s}=(0,a.mV)();if(t>0){let a=e+20,c=e-J;return a>t&&(a=t),c<0&&(c=0),(0,Z.BX)("ul",{className:"notifications__toolbar toolbar toolbar--dark toolbar--bottom",children:[(0,Z.tZ)("li",{className:i()("toolbar__item toolbar__item--button",{"is-disabled":0===e}),children:(0,Z.BX)("button",{className:"tooltip__content--padding-surrogate",type:"button",onClick:n,children:[(0,Z.tZ)(l.s$,{}),`${c+1} - ${e}`]})}),(0,Z.tZ)("li",{className:"toolbar__item toolbar__item--button",children:(0,Z.tZ)("button",{className:"tooltip__content--padding-surrogate",type:"button",onClick:r,children:s._("notification.clear.all")})}),(0,Z.tZ)("li",{className:i()("toolbar__item toolbar__item--button",{"is-disabled":e+J>=t}),children:(0,Z.BX)("button",{className:"tooltip__content--padding-surrogate",type:"button",onClick:o,children:[`${e+J+1} - ${a}`,(0,Z.tZ)(l._Q,{})]})})]})}return null},oe=(0,s.Pi)((()=>{const{i18n:e}=(0,a.mV)(),t=(0,r.useRef)(null),n=(0,r.useRef)(null),[o,s]=(0,r.useState)(!1),[c,d]=(0,r.useState)(0),[u,p]=(0,r.useState)(0),{hasNotification:h,notifications:_,notificationCount:b}=Y.Z;return(0,r.useEffect)((()=>{var e;b.total>0&&null!==(e=t.current)&&void 0!==e&&e.isOpen()&&(s(!0),ee(c).finally((()=>s(!1))))}),[b,c]),(0,Z.BX)(m.Z,{contentClassName:"tooltip__content tooltip__content--no-padding",content:h?(0,Z.BX)("div",{className:i()("notifications",{"notifications--is-loading":o}),children:[(0,Z.tZ)(te,{paginationStart:c,notificationTotal:b.total}),(0,Z.tZ)("div",{className:"notifications__loading-indicator",children:(0,Z.tZ)(l.Hj,{})}),(0,Z.tZ)("ul",{className:"notifications__list tooltip__content--padding-surrogate",ref:n,style:{minHeight:u},children:_.map(((e,t)=>(0,Z.tZ)(ne,{index:t,notification:e})))}),(0,Z.tZ)(re,{paginationStart:c,notificationTotal:b.total,onPrevClick:()=>{const e=c-J;var t;e>=0&&(p((null===(t=n.current)||void 0===t?void 0:t.clientHeight)||0),d(e))},onClearClick:()=>{null!=t.current&&t.current.dismissTooltip(),j.Z.clearNotifications(),p(0),d(0)},onNextClick:()=>{const e=c+J;var t;b.total>e&&(p((null===(t=n.current)||void 0===t?void 0:t.clientHeight)||0),d(e))}})]}):(0,Z.tZ)("div",{className:"notifications tooltip__content--padding-surrogate",style:{textAlign:"center"},children:e._("notification.no.notification")}),interactive:!0,onOpen:()=>ee(c),ref:t,width:340,position:"bottom",wrapperClassName:"sidebar__action sidebar__icon-button tooltip__wrapper",children:[(0,Z.tZ)(l.P_,{}),h?(0,Z.tZ)("span",{className:"notifications__badge",children:b.total}):null]})}));var ie=n(1967);const se=(0,s.Pi)((()=>{const{i18n:e}=(0,a.mV)(),t=(0,r.useRef)(null),{searchFilter:n}=ie.Z.filters;(0,r.useEffect)((()=>{null!=t.current&&n!==t.current.value&&(t.current.value=n)}),[t,n]);const o=""!==n;return(0,Z.BX)("div",{className:i()({sidebar__item:!0,search:!0,"is-in-use":o}),children:[o&&(0,Z.tZ)("button",{className:"button search__reset-button",onClick:()=>{h.Z.setTorrentsSearchFilter(""),null!=t.current&&t.current.blur()},type:"button",children:(0,Z.tZ)(l.x8,{})}),(0,Z.tZ)(l.ol,{}),(0,Z.tZ)("input",{className:"textbox",ref:t,type:"text",placeholder:e._("sidebar.search.placeholder"),onChange:e=>{h.Z.setTorrentsSearchFilter(e.target.value)}})]})})),ae=()=>{const{i18n:e}=(0,a.mV)(),t=(0,r.useRef)(null);return(0,Z.tZ)(m.Z,{content:e._("sidebar.button.settings"),onClick:()=>{null!=t.current&&t.current.dismissTooltip(),h.Z.displayModal({id:"settings"})},ref:t,position:"bottom",wrapperClassName:"sidebar__action sidebar__icon-button sidebar__icon-button--interactive tooltip__wrapper",children:(0,Z.tZ)(l.Zr,{})})},le=({children:e})=>(0,Z.tZ)("div",{className:"sidebar__actions",children:e});var ce=n(1159),de=n.n(ce),ue=n(5181);function pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function he(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pe(Object(n),!0).forEach((function(t){me(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function me(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ze=({bytes:e})=>0===e?(0,Z.tZ)(a.cC,{id:"speed.unlimited"}):(0,Z.tZ)(H.Z,{value:e,isSpeed:!0,precision:1}),_e=({i18n:e,direction:t,speedLimits:n,throttleGlobalDownSpeed:r,throttleGlobalUpSpeed:o})=>{const i=he(he({className:`dropdown__label dropdown__label--${t}`},"download"===t?{displayName:e._("sidebar.speedlimits.download")}:{displayName:e._("sidebar.speedlimits.upload")}),{},{selectable:!1,value:null}),s={download:r,upload:o},a=n[t];let l=!0;const c=a.map((e=>{let n=!1;return s&&s[t]===e&&(n=!0,l=!1),{displayName:(0,Z.tZ)(Ze,{bytes:e}),property:t,selected:n,selectable:!0,value:e}}));if(l&&s){const e=de()(a,s[t]);c.splice(e,0,{displayName:(0,Z.tZ)(Ze,{bytes:s[t]}),property:t,selected:!0,selectable:!0,value:s[t]})}return c.unshift(i),c},be=(0,s.Pi)((()=>{var e,t,n,o;const{i18n:i}=(0,a.mV)(),s=(0,r.useRef)(null),c=(0,r.useRef)((()=>{})),u=i._("sidebar.button.speedlimits"),p={i18n:i,speedLimits:d.Z.floodSettings.speedLimits,throttleGlobalDownSpeed:null!==(e=null===(t=d.Z.clientSettings)||void 0===t?void 0:t.throttleGlobalDownSpeed)&&void 0!==e?e:0,throttleGlobalUpSpeed:null!==(n=null===(o=d.Z.clientSettings)||void 0===o?void 0:o.throttleGlobalUpSpeed)&&void 0!==n?n:0};return(0,Z.tZ)(O,{dropdownClickRef:c,dropdownWrapperClass:"dropdown dropdown--speed-limits sidebar__action",handleItemSelect:e=>{null!=e.value&&("download"===e.property?ue.Z.saveSetting("throttleGlobalDownSpeed",e.value):"upload"===e.property&&ue.Z.saveSetting("throttleGlobalUpSpeed",e.value))},header:(0,Z.BX)("div",{className:"sidebar__icon-button sidebar__icon-button--interactive sidebar__icon-button--limits",title:u,children:[(0,Z.tZ)(l.f9,{}),u]}),menuItems:[_e(he({direction:"download"},p)),_e(he({direction:"upload"},p))],onOpen:()=>{null!=s.current&&s.current.dismissTooltip()},trigger:(0,Z.tZ)(m.Z,{content:u,position:"bottom",ref:s,wrapperClassName:"sidebar__icon-button tooltip__wrapper",onClick:()=>{var e;return null===(e=c.current)||void 0===e?void 0:e.call(c)},children:(0,Z.tZ)(l.f9,{})}),isFocusHandled:!0})}));var ge=n(8447);var fe={name:"1wfsguk",styles:":focus{outline:none;-webkit-tap-highlight-color:transparent;}"};const ve=e=>{const{isActive:t,count:n,slug:r,icon:o,handleClick:s}=e,{i18n:l}=(0,a.mV)(),c=i()("sidebar-filter__item",{"is-active":t});let{name:d}=e;if(""===d)d=l._("filter.all");else if("untagged"===d){if(0===n)return null;d=l._("filter.untagged")}return"checking"!==r&&"error"!==r||0!==n?(0,Z.tZ)("li",{children:(0,Z.BX)("button",{className:c,css:fe,type:"button",onClick:()=>s(r),role:"menuitem",children:[o,d,(0,Z.tZ)(ge.Z,{children:n})]})}):null};ve.defaultProps={icon:void 0};const ye=ve,we=(0,s.Pi)((()=>{const{i18n:e}=(0,a.mV)(),t=[{label:e._("filter.all"),slug:"",icon:(0,Z.tZ)(l.oT,{})},{label:e._("filter.status.downloading"),slug:"downloading",icon:(0,Z.tZ)(l.Cz,{})},{label:e._("filter.status.seeding"),slug:"seeding",icon:(0,Z.tZ)(l.TV,{})},{label:e._("filter.status.checking"),slug:"checking",icon:(0,Z.tZ)(l.$j,{})},{label:e._("filter.status.completed"),slug:"complete",icon:(0,Z.tZ)(l.FG,{})},{label:e._("filter.status.stopped"),slug:"stopped",icon:(0,Z.tZ)(l.dV,{})},{label:e._("filter.status.active"),slug:"active",icon:(0,Z.tZ)(l.ZS,{})},{label:e._("filter.status.inactive"),slug:"inactive",icon:(0,Z.tZ)(l.Rz,{})},{label:e._("filter.status.error"),slug:"error",icon:(0,Z.tZ)(l.jj,{})}].map((e=>(0,Z.tZ)(ye,{handleClick:e=>h.Z.setTorrentStatusFilter(e),count:ie.Z.taxonomy.statusCounts[e.slug]||0,icon:e.icon,isActive:e.slug===ie.Z.filters.statusFilter,name:e.label,slug:e.slug},e.slug))),n=e._("filter.status.title");return(0,Z.BX)("ul",{"aria-label":n,className:"sidebar-filter sidebar__item",role:"menu",children:[(0,Z.tZ)("li",{className:"sidebar-filter__item sidebar-filter__item--heading",role:"none",children:n}),t]})})),Ne=(0,s.Pi)((()=>{const{i18n:e}=(0,a.mV)(),t=Object.keys(ie.Z.taxonomy.tagCounts);if(1===t.length&&""===t[0]||2===t.length&&"untagged"===t[1])return null;const n=t.slice().sort(((e,t)=>""===e||"untagged"===e?-1:""===t||"untagged"===t?1:e.localeCompare(t))).map((e=>(0,Z.tZ)(ye,{handleClick:h.Z.setTorrentTagFilter,count:ie.Z.taxonomy.tagCounts[e]||0,isActive:e===ie.Z.filters.tagFilter,name:e,slug:e},e))),r=e._("filter.tag.title");return(0,Z.BX)("ul",{"aria-label":r,className:"sidebar-filter sidebar__item",role:"menu",children:[(0,Z.tZ)("li",{className:"sidebar-filter__item sidebar-filter__item--heading",role:"none",children:r}),n]})})),ke=()=>{const{i18n:e}=(0,a.mV)();return(0,Z.tZ)(m.Z,{content:e._(q.Z.isPreferDark?"sidebar.button.theme.light":"sidebar.button.theme.dark"),onClick:()=>q.Z.setUserPreferDark(!q.Z.isPreferDark),position:"bottom",wrapperClassName:"sidebar__action sidebar__icon-button sidebar__icon-button--interactive tooltip__wrapper",children:(0,Z.tZ)(l.R5,{})})},Ce=(0,s.Pi)((()=>{const{i18n:e}=(0,a.mV)(),t=Object.keys(ie.Z.taxonomy.trackerCounts);if(1===t.length&&""===t[0])return null;const n=t.slice().sort(((e,t)=>""===e?-1:""===t?1:e.localeCompare(t))).map((e=>(0,Z.tZ)(ye,{handleClick:h.Z.setTorrentTrackerFilter,count:ie.Z.taxonomy.trackerCounts[e]||0,isActive:e===ie.Z.filters.trackerFilter,name:e,slug:e},e))),r=e._("filter.tracker.title");return(0,Z.BX)("ul",{"aria-label":r,className:"sidebar-filter sidebar__item",role:"menu",children:[(0,Z.tZ)("li",{className:"sidebar-filter__item sidebar-filter__item--heading",role:"none",children:r}),n]})}));var Te=n(8699),Se=n(1909),Oe=n(9509),Pe=n(228);const Re={download:(0,Z.tZ)(l.UW,{}),infinity:(0,Z.tZ)(l.ZG,{}),upload:(0,Z.tZ)(l.gq,{})},Me=(0,s.Pi)((({inspectorPoint:e})=>{const{i18n:t}=(0,a.mV)(),n=(n,r={})=>{const{throttleGlobalDownSpeed:o=0,throttleGlobalUpSpeed:s=0}=d.Z.clientSettings||{},{transferSummary:a}=Oe.Z,l={download:o,upload:s},c={download:a.downTotal,upload:a.upTotal};let u={download:a.downRate,upload:a.upRate};null!=e&&(u={upload:e.upload,download:e.download});const p=i()("client-stats__rate__data--secondary",{"is-visible":null==e&&Se.Z.isConnected}),h=i()("client-stats__rate__data--timestamp",{"is-visible":null!=e&&r.showHoverDuration});let m=null;null!=(null==e?void 0:e.timestamp)&&(m=(0,Z.tZ)("div",{className:h,children:(0,Z.tZ)(Pe.Z,{suffix:t._("general.ago"),value:Math.trunc((Date.now()-e.timestamp)/1e3)})}));let _=null;return _=0===l[n]?Re.infinity:(0,Z.tZ)(H.Z,{value:l[n],isSpeed:!0}),(0,Z.BX)("div",{className:`client-stats__rate client-stats__rate--${n}`,children:[(0,Z.tZ)("div",{className:"client-stats__rate__icon",children:Re[n]}),(0,Z.BX)("div",{className:"client-stats__rate__data",children:[(0,Z.tZ)("div",{className:"client-stats__rate__data--primary",children:(0,Z.tZ)(H.Z,{value:u[n],isSpeed:!0})}),m,(0,Z.BX)("div",{className:p,children:[(0,Z.tZ)("div",{className:"client-stats__rate__data--total",children:(0,Z.tZ)(H.Z,{value:c[n]})}),(0,Z.tZ)("div",{className:"client-stats__rate__data--limit",children:_})]})]})]})};return(0,Z.BX)("div",{className:"client-stats__rates",children:[n("download",{showHoverDuration:!0}),n("upload")]})}));var xe=n(5165),Be=n(7633),$e=n(5049),Xe=n(8823),De=n(4256);const je=({direction:e})=>(0,Z.BX)("linearGradient",{id:`graph__gradient--${e}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[(0,Z.tZ)("stop",{className:`graph__gradient--top graph__gradient--top--${e}`,offset:"0%"}),(0,Z.tZ)("stop",{className:`graph__gradient--bottom graph__gradient--bottom--${e}`,offset:"100%"})]}),Ee=(e,t,n)=>{const r=e[t][Math.ceil(n)],o=e[t][Math.floor(n)];return o+n%1*(r-o)},Le=(0,s.Pi)((({id:e,height:t,width:n,handlerRefs:o,onHover:i,onMouseOut:s})=>{const[a,l]=(0,r.useState)(!1),c=(0,r.useRef)(0),d=(0,r.useRef)({download:0,upload:0,timestamp:0}),u=Oe.Z.transferRates,p=(0,De.Z)().domain([0,u.download.length-1]).range([0,n]),h=(0,De.Z)().domain([0,(0,Xe.Z)(u.download,((e,t)=>Math.max(e,u.upload[t])))]).range([t-10,10]);o.current={handleMouseMove:e=>{c.current=p.invert(e),i(d.current)},handleMouseOut:()=>{l(!1),s()},handleMouseOver:()=>{l(!0)}},a&&(d.current={download:Ee(u,"download",c.current),upload:Ee(u,"upload",c.current),timestamp:u.timestamps[Math.round(c.current)]});const m=xe.Z;return(0,Z.BX)("svg",{className:"graph",id:e,children:[(0,Z.BX)("defs",{children:[(0,Z.tZ)(je,{direction:"upload"}),(0,Z.tZ)(je,{direction:"download"})]}),Oe.e.map((e=>[(0,Z.tZ)("path",{className:"graph__area",fill:`url('#graph__gradient--${e}')`,d:(0,Be.Z)().x(((e,t)=>p(t)||0)).y0(t).y1((e=>h(e)||0)).curve(m)(u[e])},`area-${e}`),(0,Z.tZ)("path",{className:`graph__line graph__line--${e}`,d:(0,$e.Z)().x(((e,t)=>p(t)||0)).y((e=>h(e)||0)).curve(m)(u[e])},`line-${e}`),(0,Z.tZ)("circle",{className:`graph__circle graph__circle--${e}`,r:2.5,style:{opacity:a?1:0},transform:`translate(${p(c.current)},${h(d.current[e])})`},`point-${e}`)]))]})})),He=(0,s.Pi)((()=>{const[e,t]=(0,r.useState)(null),[n,o]=(0,r.useState)(0),i=(0,r.useRef)(null);return(0,Z.tZ)(Te.Z,{offset:!0,onResize:e=>{null!=e.offset&&o(e.offset.width)},children:({measureRef:r})=>(0,Z.tZ)("div",{ref:r,className:"client-stats__wrapper sidebar__item",children:(0,Z.BX)("div",{className:"client-stats",onMouseMove:e=>{var t,n;null!=(null==e||null===(t=e.nativeEvent)||void 0===t?void 0:t.clientX)&&(null===(n=i.current)||void 0===n||n.handleMouseMove(e.nativeEvent.clientX))},onMouseOver:()=>{var e;return null===(e=i.current)||void 0===e?void 0:e.handleMouseOver()},onMouseOut:()=>{var e;return null===(e=i.current)||void 0===e?void 0:e.handleMouseOut()},onFocus:()=>{var e;return null===(e=i.current)||void 0===e?void 0:e.handleMouseOver()},onBlur:()=>{var e;return null===(e=i.current)||void 0===e?void 0:e.handleMouseOut()},children:[(0,Z.tZ)(Me,{inspectorPoint:e}),Se.Z.isConnected&&(0,Z.tZ)(Le,{height:150,id:"transfer-rate-graph",onMouseOut:()=>{t(null)},onHover:e=>{t(e)},handlerRefs:i,width:n})]})})})})),Ie=()=>(0,Z.BX)(E.E,{options:{scrollbars:{autoHide:"scroll",clickScrolling:!1,dragScrolling:!1},className:"application__sidebar os-theme-thin"},children:[(0,Z.BX)(le,{children:[(0,Z.tZ)(be,{}),(0,Z.tZ)(ae,{}),(0,Z.tZ)(G,{}),(0,Z.tZ)(oe,{}),(0,Z.tZ)(Q,{})]}),(0,Z.tZ)(He,{}),(0,Z.tZ)(se,{}),(0,Z.tZ)(we,{}),(0,Z.tZ)(Ne,{}),(0,Z.tZ)(Ce,{}),(0,Z.tZ)(U,{}),(0,Z.tZ)("div",{style:{flexGrow:1}}),(0,Z.tZ)(le,{children:(0,Z.tZ)(ke,{})})]});var Fe=n(8949),Ae=n(9929),Ve=n(509),ze=n(2433);const We=(0,s.Pi)((({id:e})=>{var t,n,r,o,s;const l=(null===(t=k.Z.activeContextMenu)||void 0===t?void 0:t.id)===e,c=null!==(n=null===(r=k.Z.activeContextMenu)||void 0===r?void 0:r.items)&&void 0!==n?n:[],d=null!==(o=null===(s=k.Z.activeContextMenu)||void 0===s?void 0:s.clickPosition)&&void 0!==o?o:{x:0,y:0},{i18n:u}=(0,a.mV)();return(0,N.Z)("Escape",(()=>h.Z.dismissContextMenu(e))),(0,Z.tZ)(Ve.xV,{triggerCoordinates:d,onOverlayClick:()=>{h.Z.dismissContextMenu(e)},onOverlayRightClick:e=>{e.preventDefault()},isIn:l,children:c.map(((t,n)=>{let r,o;switch(t.type){case"action":o=i()("menu__item",{"is-selectable":t.clickHandler}),r=(0,Z.BX)("span",{children:[(0,Z.BX)("span",{className:i()("menu__item__label--primary",{"has-action":t.labelAction}),children:[(0,Z.tZ)("span",{className:"menu__item__label",children:u._(t.label)}),t.labelAction?(0,Z.tZ)("span",{className:"menu__item__label__action",children:(0,Z.tZ)(t.labelAction,{})}):void 0]}),t.labelSecondary?(0,Z.tZ)("span",{className:"menu__item__label--secondary",children:(0,Z.tZ)(t.labelSecondary,{})}):void 0]});break;case"separator":default:o=i()("menu__item",{"menu__item--separator":"separator"===t.type})}return(0,Z.tZ)("li",{className:o,children:(0,Z.tZ)("button",{type:"button",disabled:"action"!==t.type||!t.clickHandler,onClick:n=>("separator"!==t.type&&(!1===t.dismissMenu&&n.nativeEvent.stopImmediatePropagation(),t.clickHandler&&t.clickHandler(n),!1!==t.dismissMenu&&h.Z.dismissContextMenu(e)),!1),onContextMenu:e=>{e.preventDefault()},children:r})},"action"===t.type?t.action:`sep-${n}`)}))})}));var Ue=n(4356),Ge=n(4700);function Ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(n),!0).forEach((function(t){Qe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ye=(0,r.forwardRef)(((e,t)=>{const{children:n,className:o,onScroll:i}=e,s=(0,r.useRef)(null);return(0,r.useEffect)((()=>{var e;const n=s.current;if(null==n)return()=>{};const r=null===(e=n.osInstance())||void 0===e?void 0:e.getElements().viewport;return t(r),i&&r.addEventListener("scroll",(e=>i(e)),{passive:!0}),()=>{i&&r.removeEventListener("scroll",(e=>i(e)))}}),[i,t]),(0,Z.tZ)(E.E,qe(qe({},e),{},{options:{scrollbars:{autoHide:"leave",clickScrolling:!0},className:o},ref:s,children:n}))})),Je=(0,r.forwardRef)(((e,t)=>{const{className:n,itemCount:r,itemKey:o,itemRenderer:i,itemSize:s,outerRef:a}=e,{height:l}=(0,Ge.Z)();return(0,Z.tZ)(Ue.t7,{className:`${n} ${q.Z.isPreferDark?"os-theme-light":"os-theme-dark"}`,height:Math.max(30*s,l),itemCount:r,itemKey:o,itemSize:s,width:"100%",outerElementType:q.Z.isSmallScreen?void 0:Ye,ref:t,overscanCount:30,outerRef:a,children:i})})),et=(0,s.Pi)(Je);var tt=n(4656);const nt="\n body { user-select: none !important; }\n * { cursor: col-resize !important; }\n";var rt={name:"3v16dc",styles:"text-align:left;:focus{outline:none;-webkit-tap-highlight-color:transparent;}"};const ot=(0,s.Pi)((0,r.forwardRef)((({onCellClick:e,onCellFocus:t,onWidthsChange:n},o)=>{const[s,l]=(0,r.useState)(!1),c=(0,r.useRef)(),u=(0,r.useRef)(),p=(0,r.useRef)(),h=(0,tt.Z)(o),m=(0,r.useRef)(null),{i18n:_}=(0,a.mV)(),b=e=>{let t=0;null!=p.current&&(t=e.clientX-p.current);let n=20;null!=u.current&&(n=u.current+t),n>20&&(u.current=n,p.current=e.clientX,null!=m.current&&null!=h.current&&(m.current.style.transform=`translate(${Math.max(0,e.clientX)}px, ${h.current.getBoundingClientRect().top}px)`))},g=()=>{k.Z.removeGlobalStyle(nt),window.removeEventListener("pointerup",g),window.removeEventListener("pointermove",b),l(!1),p.current=void 0,null!=m.current&&(m.current.style.opacity="0"),null!=c.current&&null!=u.current&&n(c.current,u.current),c.current=void 0,u.current=void 0};return(0,Z.BX)("div",{className:"table__row table__row--heading",role:"rowheader",ref:h,children:[d.Z.floodSettings.torrentListColumns.reduce(((n,{id:r,visible:o})=>{if(!o)return n;const f=P.Z[r];if(null==f)return n;let v=null;const y=d.Z.floodSettings.torrentListColumnWidths[r]||100;s||(v=(0,Z.tZ)("span",{className:"table__heading__handle",onPointerDown:e=>{s||null==m.current||null==h.current||(l(!0),c.current=r,u.current=y,p.current=e.clientX,window.addEventListener("pointerup",g),window.addEventListener("pointermove",b),k.Z.addGlobalStyle(nt),m.current.style.transform=`translate(${Math.max(0,e.clientX)}px, ${h.current.getBoundingClientRect().top}px)`,m.current.style.opacity="1")}}));const w=r===d.Z.floodSettings.sortTorrents.property,N=i()("table__cell table__heading",{"table__heading--is-sorted":w,[`table__heading--direction--${d.Z.floodSettings.sortTorrents.direction}`]:w});return n.push((0,Z.BX)("button",{className:N,css:rt,type:"button",onClick:()=>e(r),onFocus:()=>t(),style:{width:`${y}px`},children:[(0,Z.tZ)("span",{className:"table__heading__label",title:_._(f),children:(0,Z.tZ)(a.cC,{id:f})}),v]},r)),n}),[]),(0,Z.tZ)("div",{className:"table__cell table__heading table__heading--fill"}),(0,Z.tZ)("div",{className:"table__heading__resize-line",ref:m})]})})));var it=n(463);function st(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function at(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?st(Object(n),!0).forEach((function(t){lt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):st(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ct=e=>{const t=[];e.forEach((n=>{const r=new FileReader;r.onload=n=>{var r;null!=(null===(r=n.target)||void 0===r?void 0:r.result)&&"string"==typeof n.target.result&&(n=>{var r,o,i,s;t.push(n),t.length===e.length&&null!=t[0]&&u.Z.addTorrentsByFiles({files:t,destination:null!==(r=null!==(o=null===(i=d.Z.floodSettings.torrentDestinations)||void 0===i?void 0:i[""])&&void 0!==o?o:null===(s=d.Z.clientSettings)||void 0===s?void 0:s.directoryDefault)&&void 0!==r?r:"",isBasePath:!1,start:d.Z.floodSettings.startTorrentsOnLoad})})(n.target.result.split("base64,")[1])},r.readAsDataURL(n)}))},dt=({children:e})=>{const{getRootProps:t,isDragActive:n}=(0,it.u)({onDrop:ct,noClick:!0,noKeyboard:!0});return(0,Z.tZ)("div",at(at({},t({onClick:e=>e.preventDefault()})),{},{className:"dropzone dropzone--with-overlay torrents "+(n?"dropzone--is-dragging":""),children:e}))};var ut=n(1773),pt=n(8737),ht=n(2036);const mt=()=>p.Z.selectedTorrents[p.Z.selectedTorrents.length-1],Zt=(0,s.Pi)((({property:e})=>(0,Z.tZ)("span",{className:"toggle-input checkbox",style:{display:"inline"},children:(0,Z.tZ)("div",{className:"toggle-input__indicator",children:(0,Z.tZ)("div",{className:"toggle-input__indicator__icon",style:{opacity:p.Z.torrents[mt()][e]?"1":void 0},children:(0,Z.tZ)(l.MC,{})})})}))),_t=e=>{const t=(0,r.createRef)();return[{type:"action",action:"start",label:pt.Z.start,clickHandler:()=>{u.Z.startTorrents({hashes:p.Z.selectedTorrents})}},{type:"action",action:"stop",label:pt.Z.stop,clickHandler:()=>{u.Z.stopTorrents({hashes:p.Z.selectedTorrents})}},{type:"action",action:"remove",label:pt.Z.remove,clickHandler:()=>{h.Z.displayModal({id:"remove-torrents"})}},{type:"action",action:"checkHash",label:pt.Z.checkHash,clickHandler:()=>{u.Z.checkHash({hashes:p.Z.selectedTorrents})}},{type:"action",action:"reannounce",label:pt.Z.reannounce,clickHandler:()=>{u.Z.reannounce({hashes:p.Z.selectedTorrents})}},{type:"separator"},{type:"action",action:"setTaxonomy",label:pt.Z.setTaxonomy,clickHandler:()=>{h.Z.displayModal({id:"set-taxonomy"})}},{type:"action",action:"move",label:pt.Z.move,clickHandler:()=>{h.Z.displayModal({id:"move-torrents"})}},{type:"action",action:"setTrackers",label:pt.Z.setTrackers,clickHandler:()=>{h.Z.displayModal({id:"set-trackers"})}},{type:"separator"},{type:"action",action:"torrentDetails",label:pt.Z.torrentDetails,clickHandler:()=>{h.Z.displayModal({id:"torrent-details",hash:mt()})}},{type:"action",action:"downloadContents",label:pt.Z.downloadContents,clickHandler:e=>{e.preventDefault();const t=document.createElement("a");t.download="",t.href=`${q.Z.baseURI}api/torrents/${mt()}/contents/all/data`,t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t)}},{type:"action",action:"downloadMetainfo",label:pt.Z.downloadMetainfo,clickHandler:e=>{e.preventDefault();const t=document.createElement("a");t.download="",t.href=`${q.Z.baseURI}api/torrents/${p.Z.selectedTorrents.join(",")}/metainfo`,t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t)}},{type:"action",action:"generateMagnet",label:pt.Z.generateMagnet,clickHandler:()=>{h.Z.displayModal({id:"generate-magnet"})}},{type:"action",action:"setInitialSeeding",label:pt.Z.setInitialSeeding,clickHandler:()=>{const{selectedTorrents:e}=p.Z;u.Z.setInitialSeeding({hashes:e,isInitialSeeding:!p.Z.torrents[mt()].isInitialSeeding})},dismissMenu:!1,labelAction:()=>(0,Z.tZ)(Zt,{property:"isInitialSeeding"})},{type:"action",action:"setSequential",label:pt.Z.setSequential,clickHandler:()=>{const{selectedTorrents:e}=p.Z;u.Z.setSequential({hashes:e,isSequential:!p.Z.torrents[mt()].isSequential})},dismissMenu:!1,labelAction:()=>(0,Z.tZ)(Zt,{property:"isSequential"})},{type:"action",action:"setPriority",label:pt.Z.setPriority,clickHandler:()=>{null!=t.current&&u.Z.setPriority({hashes:p.Z.selectedTorrents,priority:t.current()})},dismissMenu:!1,labelAction:()=>(0,Z.tZ)(ht.Z,{id:e.hash,level:e.priority,maxLevel:3,onChange:()=>{},priorityType:"torrent",showLabel:!1,changePriorityFuncRef:t,clickHandled:!0},e.hash)}]},bt={eta:(0,Z.tZ)(l.SU,{}),sizeBytes:(0,Z.tZ)(l.Zd,{}),downRate:(0,Z.tZ)(l.ki,{}),directory:(0,Z.tZ)(l.Bm,{}),hash:(0,Z.tZ)(l.kb,{}),dateAdded:(0,Z.tZ)(l.f,{}),dateCreated:(0,Z.tZ)(l.Oo,{}),isPrivate:(0,Z.tZ)(l.HE,{}),message:(0,Z.tZ)(l.Ey,{}),percentComplete:(0,Z.tZ)(l.ki,{}),peers:(0,Z.tZ)(l.Ib,{}),ratio:(0,Z.tZ)(l.T_,{}),seeds:(0,Z.tZ)(l.O5,{}),trackerURIs:(0,Z.tZ)(l.Fk,{}),upRate:(0,Z.tZ)(l.u3,{}),upTotal:(0,Z.tZ)(l.u3,{})},gt=(0,r.memo)((({value:e})=>e?(0,Z.tZ)(l.FV,{className:"torrent__detail__icon torrent__detail__icon--checkmark"}):null)),ft=(0,r.memo)((({date:e})=>{const{i18n:t}=(0,a.mV)();return(0,Z.tZ)("span",{children:t.date(new Date(1e3*e))})})),vt=(0,r.memo)((({eta:e})=>e?(0,Z.tZ)(Pe.Z,{value:e}):null)),yt=(0,r.memo)((({peersConnected:e,totalPeers:t})=>{const{i18n:n}=(0,a.mV)();return(0,Z.tZ)(a.cC,{id:"torrent.list.peers",values:{connected:n.number(e),of:(0,Z.tZ)("em",{className:"unit",children:(0,Z.tZ)(a.cC,{id:"torrent.list.peers.of"})}),total:n.number(t)}})})),wt=(0,r.memo)((({ratio:e})=>{const{i18n:t}=(0,a.mV)();return(0,Z.tZ)("span",{children:t.number(e,{maximumFractionDigits:2})})})),Nt=(0,r.memo)((({tags:e})=>(0,Z.tZ)("ul",{className:"torrent__tags tag",children:e.map((e=>(0,Z.tZ)("li",{className:"torrent__tag",children:e},e)))}))),kt=(0,r.memo)((({trackers:e})=>(0,Z.tZ)("span",{children:e.join(", ")}))),Ct=(0,s.Pi)((({torrent:e,column:t})=>{switch(t){case"dateAdded":case"dateCreated":return(0,Z.tZ)(ft,{date:e[t]});case"downRate":case"upRate":return(0,Z.tZ)(H.Z,{value:e[t],isSpeed:!0});case"downTotal":case"upTotal":case"sizeBytes":return(0,Z.tZ)(H.Z,{value:e[t]});case"ratio":return(0,Z.tZ)(wt,{ratio:e[t]});case"isPrivate":return(0,Z.tZ)(gt,{value:e[t]});case"tags":return(0,Z.tZ)(Nt,{tags:e[t]});case"trackerURIs":return(0,Z.tZ)(kt,{trackers:e[t]});case"eta":return(0,Z.tZ)(vt,{eta:e[t]});case"seeds":return(0,Z.tZ)(yt,{peersConnected:e.seedsConnected,totalPeers:e.seedsTotal});case"peers":return(0,Z.tZ)(yt,{peersConnected:e.peersConnected,totalPeers:e.peersTotal});default:return(0,Z.tZ)("span",{children:e[t]})}})),Tt=(0,s.Pi)((({hash:e,content:t,column:n,className:r,classNameOverride:o,width:s,showIcon:a})=>{const c=a?bt[n]:null;return(0,Z.BX)("div",{className:o?r:i()("torrent__detail",`torrent__detail--${n}`,r),role:"cell",style:{width:`${s}px`},children:[c,t?(0,Z.tZ)(t,{torrent:p.Z.torrents[e],column:n}):(0,Z.tZ)(l._P,{})]})}));Tt.defaultProps={className:void 0,classNameOverride:!1,content:Ct,width:void 0,showIcon:!1};const St=Tt;var Ot=n(6531);const Pt=(0,s.Pi)((0,r.forwardRef)((({className:e,style:t,hash:n,handleClick:r,handleDoubleClick:o,handleRightClick:i,handleTouchStart:s,handleTouchEnd:a,handleKeyPress:l},c)=>{const u=d.Z.floodSettings.torrentListColumns.reduce(((e,{id:t,visible:r})=>null==P.Z[t]?e:r?"percentComplete"===t?(e.push((0,Z.tZ)(St,{className:"table__cell",hash:n,column:t,content:({torrent:e})=>(0,Z.tZ)(I.Z,{percent:Math.ceil(e.percentComplete),icon:(0,Z.tZ)(Ot.Z,{statuses:e.status})}),width:d.Z.floodSettings.torrentListColumnWidths[t]},t)),e):(e.push((0,Z.tZ)(St,{className:"table__cell",hash:n,column:t,width:d.Z.floodSettings.torrentListColumnWidths[t]},t)),e):e),[]);return(0,Z.tZ)("div",{className:e,role:"row",style:t,tabIndex:0,onClick:e=>r(n,e),onContextMenu:e=>i(n,e),onDoubleClick:()=>o(n),onTouchStart:s,onTouchEnd:a,onKeyPress:l,ref:c,children:u})}))),Rt=(0,s.Pi)((0,r.forwardRef)((({className:e,style:t,hash:n,handleClick:r,handleDoubleClick:o,handleRightClick:i,handleTouchStart:s,handleTouchEnd:l,handleKeyPress:c},u)=>{const{i18n:p}=(0,a.mV)(),h=d.Z.floodSettings.torrentListColumns,m=[(0,Z.tZ)(St,{hash:n,column:"name",className:"torrent__details__section torrent__details__section--primary"},"name")],_=[(0,Z.tZ)(St,{hash:n,column:"eta",showIcon:!0},"eta"),(0,Z.tZ)(St,{hash:n,column:"downRate",showIcon:!0},"downRate"),(0,Z.tZ)(St,{hash:n,column:"upRate",showIcon:!0},"upRate")],b=[(0,Z.tZ)(St,{hash:n,column:"percentComplete",content:({torrent:e})=>(0,Z.BX)("span",{children:[p.number(e.percentComplete,{maximumFractionDigits:1}),(0,Z.tZ)("em",{className:"unit",children:"%"})," — ",(0,Z.tZ)(H.Z,{value:e.downTotal})]}),showIcon:!0},"percentComplete")],g=[(0,Z.tZ)(St,{hash:n,column:"percentComplete",content:({torrent:e})=>(0,Z.tZ)(I.Z,{percent:Math.ceil(e.percentComplete),icon:(0,Z.tZ)(Ot.Z,{statuses:e.status})}),className:"torrent__details__section torrent__details__section--quaternary",classNameOverride:!0},"percentBar")];for(let e=0;e<h.length;e+=1){const{id:t,visible:r}=h[e];if(null!=P.Z[t]&&r)switch(t){case"name":break;case"downRate":case"upRate":case"eta":break;case"downTotal":case"percentComplete":break;default:b.push((0,Z.tZ)(St,{hash:n,column:t,showIcon:!0},t))}}return(0,Z.BX)("div",{className:e,role:"row",style:t,tabIndex:0,onClick:e=>r(n,e),onContextMenu:e=>i(n,e),onDoubleClick:()=>o(n),onTouchStart:s,onTouchEnd:l,onKeyPress:c,ref:u,children:[(0,Z.BX)("div",{className:"torrent__details__section__wrapper",children:[m,(0,Z.tZ)("div",{className:"torrent__details__section torrent__details__section--secondary",children:_})]}),(0,Z.tZ)("div",{className:"torrent__details__section torrent__details__section--tertiary",children:b}),g]})})));var Mt=n(3006);const xt=(e,t)=>{var n,r;!0===t.cancelable&&t.preventDefault();const o=t.clientX,i=t.clientY,s=null===(n=t.touches)||void 0===n?void 0:n[0].clientX,a=null===(r=t.touches)||void 0===r?void 0:r[0].clientY;p.Z.selectedTorrents.includes(e)||h.Z.handleTorrentClick({hash:e,event:t});const{torrentContextMenuActions:l=ze.Z.torrentContextMenuActions}=d.Z.floodSettings,c=p.Z.torrents[e];h.Z.displayContextMenu({id:"torrent-list-item",clickPosition:{x:o||s||0,y:i||a||0},items:_t(c).filter((e=>"separator"===e.type||l.some((t=>t.id===e.action&&!0===t.visible))))})},Bt=e=>h.Z.displayModal({id:"torrent-details",hash:e}),$t=(e,t)=>h.Z.handleTorrentClick({hash:e,event:t}),Xt=(e,t)=>{" "!==t.key&&"Enter"!==t.key&&"ContextMenu"!==t.key||(t.preventDefault(),p.Z.selectedTorrents.includes(e)?"Enter"===t.key?Bt(e):"ContextMenu"===t.key&&xt(e,t):$t(e,t))},Dt=(0,s.Pi)((({hash:e,style:t})=>{var n;const[o,s]=(0,r.useState)(0),a=(0,r.useRef)(!1),l=(0,r.useRef)(null),c="condensed"===d.Z.floodSettings.torrentListViewSize,{status:u,upRate:h,downRate:m}=(null===(n=p.Z.torrents)||void 0===n?void 0:n[e])||{},_=(0,Mt.Z)({status:u,upRate:h,downRate:m},i()({"torrent--is-selected":p.Z.selectedTorrents.includes(e),"torrent--is-condensed":c,"torrent--is-expanded":!c}),"torrent"),{onTouchStart:b,onTouchEnd:g}=(0,ut.Z)((t=>{var n;const r=null===(n=l.current)||void 0===n?void 0:n.getBoundingClientRect().top;null!=t&&null!=r&&Math.abs(r-o)<25&&xt(e,t)})),f=t=>{var n;p.Z.selectedTorrents.includes(e)||$t(e,t),a.current?Bt(e):(a.current=!0,setTimeout((()=>{a.current=!1}),200)),s((null===(n=l.current)||void 0===n?void 0:n.getBoundingClientRect().top)||0),b(t)};return c?(0,Z.tZ)(Pt,{className:_,ref:l,style:t,hash:e,handleClick:$t,handleDoubleClick:Bt,handleRightClick:xt,handleTouchStart:f,handleTouchEnd:g,handleKeyPress:t=>Xt(e,t)}):(0,Z.tZ)(Rt,{className:_,ref:l,style:t,hash:e,handleClick:$t,handleDoubleClick:Bt,handleRightClick:xt,handleTouchStart:f,handleTouchEnd:g,handleKeyPress:t=>Xt(e,t)})}));function jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jt(Object(n),!0).forEach((function(t){Lt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Lt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ht=(0,s.Pi)((({index:e,style:t})=>(0,Z.tZ)(Dt,{hash:p.Z.filteredTorrents[e].hash,style:t}))),It=(0,s.Pi)((()=>{const e=(0,r.useRef)(null),t=(0,r.useRef)(null),n=(0,r.useRef)(null);(0,r.useEffect)((()=>(0,Fe.U5)((()=>ie.Z.filters),(()=>{null!=t.current&&t.current.scrollTo(0)}))),[]),(0,Ae.Z)("keydown",(e=>{const{ctrlKey:t,key:n,metaKey:r,repeat:o,target:i}=e,s=null==i?void 0:i.tagName.toUpperCase();"INPUT"!==s&&"TEXTAREA"!==s&&(o||(r||t)&&"a"===n&&(e.preventDefault(),h.Z.selectAllTorrents()))}));const o=p.Z.filteredTorrents,{torrentListViewSize:i="condensed"}=d.Z.floodSettings,s="condensed"===i,u=null==o||0===o.length;let m=null,_=null;return Se.Z.isConnected?u||null==o?m=(0,Z.BX)("div",{className:"torrents__alert__wrapper",children:[(0,Z.tZ)("div",{className:"torrents__alert",children:(0,Z.tZ)(a.cC,{id:"torrents.list.no.torrents"})}),ie.Z.isFilterActive&&(0,Z.tZ)("div",{className:"torrents__alert__action",children:(0,Z.tZ)(Ve.zx,{onClick:()=>{ie.Z.clearAllFilters()},priority:"tertiary",children:(0,Z.tZ)(a.cC,{id:"torrents.list.clear.filters"})})})]}):(s&&(_=(0,Z.tZ)(ot,{onCellFocus:()=>{null!=n.current&&null!=e.current&&(n.current.scrollLeft=e.current.scrollLeft)},onCellClick:e=>{var t;const n=d.Z.floodSettings.sortTorrents;let r=null!==(t=g[e])&&void 0!==t?t:"asc";n.property===e&&(r="asc"===n.direction?"desc":"asc");const o={property:e,direction:r};c.Z.saveSetting("sortTorrents",o)},onWidthsChange:(e,t)=>{const{torrentListColumnWidths:n=ze.Z.torrentListColumnWidths}=d.Z.floodSettings;c.Z.saveSetting("torrentListColumnWidths",Et(Et({},n),{},{[e]:t}))},ref:e})),m=(0,Z.tZ)(et,{className:"torrent__list__viewport",itemCount:o.length,itemKey:e=>p.Z.filteredTorrents[e].hash,itemRenderer:Ht,itemSize:s?30:70,ref:t,outerRef:t=>{const r=t;null!=r&&null==r.onscroll&&(r.onscroll=()=>{null!=e.current&&(e.current.scrollLeft=r.scrollLeft)}),n.current=r}})):m=(0,Z.tZ)("div",{className:"torrents__alert__wrapper",children:(0,Z.tZ)("div",{className:"torrents__alert",children:(0,Z.tZ)(a.cC,{id:"torrents.list.cannot.connect"})})}),(0,Z.BX)(dt,{children:[(0,Z.BX)("div",{className:"torrent__list__wrapper",role:"table",children:[(0,Z.tZ)(We,{id:"torrent-list-item"}),_,m]}),(0,Z.tZ)("div",{className:"dropzone__overlay",children:(0,Z.BX)("div",{className:"dropzone__copy",children:[(0,Z.tZ)("div",{className:"dropzone__icon",children:(0,Z.tZ)(l.hv,{})}),(0,Z.tZ)(a.cC,{id:"torrents.list.drop"})]})})]})})),Ft=(0,r.lazy)((()=>n.e(478).then(n.bind(n,3975)))),At=(0,r.lazy)((()=>Promise.all([n.e(770),n.e(834)]).then(n.bind(n,4834)))),Vt=()=>((0,r.useEffect)((()=>{j.Z.startActivityStream()}),[]),(0,Z.BX)(D.Z,{children:[(0,Z.tZ)(Ie,{}),(0,Z.BX)(B,{children:[(0,Z.BX)(X,{modifier:"torrent-list",className:"view--torrent-list",children:[(0,Z.tZ)(x,{}),(0,Z.tZ)(It,{})]}),(0,Z.tZ)(At,{}),(0,Z.tZ)(Ft,{})]})]}))},2258:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(2159),o=n(2656),i=n(8889);const s=()=>(0,i.tZ)(o.Z,{modifier:"auth-form",children:(0,i.tZ)(r.Z,{mode:"register"})})},3006:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(4184),o=n.n(r);const i=function({status:e,downRate:t,upRate:n},...r){return o()(r,{"torrent--has-error":e.includes("error"),"torrent--is-stopped":e.includes("stopped"),"torrent--is-downloading":e.includes("downloading"),"torrent--is-downloading--actively":t>0,"torrent--is-uploading--actively":n>0,"torrent--is-seeding":e.includes("seeding"),"torrent--is-completed":e.includes("complete"),"torrent--is-checking":e.includes("checking"),"torrent--is-inactive":e.includes("inactive")})}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.webpackChunk_jesec_flood=globalThis.webpackChunk_jesec_flood||[]).push([[770],{917:(e,t,r)=>{"use strict";r.d(t,{iv:()=>o});r(7294),r(5840),r(8679);var n=r(9984);function o(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,n.O)(t)}},8195:(e,t,r)=>{"use strict";function n(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];if(!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(i=new Error(t.replace(/%s/g,(function(){return n[a++]})))).name="Invariant Violation"}throw i.framesToPop=1,i}}r.d(t,{k:()=>n})},5047:(e,t,r)=>{"use strict";function n(e,t,r,n){var o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(t),s=0;s<i.length;s++){var c=i[s];if(!u(c))return!1;var l=e[c],f=t[c];if(!1===(o=r?r.call(n,l,f,c):void 0)||void 0===o&&l!==f)return!1}return!0}r.d(t,{w:()=>n})},4967:(e,t,r)=>{"use strict";function n(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,s=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return u=e.done,e},e:function(e){s=!0,a=e},f:function(){try{u||null==r.return||r.return()}finally{if(s)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=t.get(e);if(!r)throw new TypeError("attempted to get private field on non-instance");return r.get?r.get.call(e):r.value}r.d(t,{RY:()=>x,Am:()=>I,R:()=>C});var u=new WeakMap,s=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),u.set(this,{writable:!0,value:void 0}),i(this,"register",(function(e){a(t,u).push(e)})),i(this,"unregister",(function(e){for(var r;-1!==(r=a(t,u).indexOf(e));)a(t,u).splice(r,1)})),i(this,"backendChanged",(function(e){var r,o=n(a(t,u));try{for(o.s();!(r=o.n()).done;){r.value.backendChanged(e)}}catch(e){o.e(e)}finally{o.f()}})),function(e,t,r){var n=t.get(e);if(!n)throw new TypeError("attempted to set private field on non-instance");if(n.set)n.set.call(e,r);else{if(!n.writable)throw new TypeError("attempted to set read only private field");n.value=r}}(this,u,[])};function c(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(e,t){var r=t.get(e);if(!r)throw new TypeError("attempted to get private field on non-instance");return r.get?r.get.call(e):r.value}function p(e,t,r){var n=t.get(e);if(!n)throw new TypeError("attempted to set private field on non-instance");if(n.set)n.set.call(e,r);else{if(!n.writable)throw new TypeError("attempted to set read only private field");n.value=r}return r}var h=new WeakMap,g=new WeakMap,v=new WeakMap,y=new WeakMap,b=new WeakMap,m=new WeakMap,w=new WeakMap,O=new WeakMap,S=new WeakMap,k=new WeakMap,D=new WeakMap,T=function e(t,r,n){var o=this;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),h.set(this,{writable:!0,value:void 0}),g.set(this,{writable:!0,value:void 0}),v.set(this,{writable:!0,value:void 0}),y.set(this,{writable:!0,value:void 0}),b.set(this,{writable:!0,value:void 0}),m.set(this,{writable:!0,value:function(e,t,r){var n,i;if(!r.backend)throw new Error("You must specify a 'backend' property in your Backend entry: ".concat(JSON.stringify(r)));var a=r.backend(e,t,r.options),u=r.id,s=!r.id&&a&&a.constructor;if(s&&(u=a.constructor.name),!u)throw new Error("You must specify an 'id' property in your Backend entry: ".concat(JSON.stringify(r),"\n see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-5xx"));if(s&&console.warn("Deprecation notice: You are using a pipeline which doesn't include backends' 'id'.\n This might be unsupported in the future, please specify 'id' explicitely for every backend."),d(o,v)[u])throw new Error("You must specify a unique 'id' property in your Backend entry:\n ".concat(JSON.stringify(r)," (conflicts with: ").concat(JSON.stringify(d(o,v)[u]),")"));return{id:u,instance:a,preview:null!==(n=r.preview)&&void 0!==n&&n,transition:r.transition,skipDispatchOnTransition:null!==(i=r.skipDispatchOnTransition)&&void 0!==i&&i}}}),f(this,"setup",(function(){if("undefined"!=typeof window){if(e.isSetUp)throw new Error("Cannot have two MultiBackends at the same time.");e.isSetUp=!0,d(o,w).call(o,window),d(o,v)[d(o,h)].instance.setup()}})),f(this,"teardown",(function(){"undefined"!=typeof window&&(e.isSetUp=!1,d(o,O).call(o,window),d(o,v)[d(o,h)].instance.teardown())})),f(this,"connectDragSource",(function(e,t,r){return d(o,D).call(o,"connectDragSource",e,t,r)})),f(this,"connectDragPreview",(function(e,t,r){return d(o,D).call(o,"connectDragPreview",e,t,r)})),f(this,"connectDropTarget",(function(e,t,r){return d(o,D).call(o,"connectDropTarget",e,t,r)})),f(this,"profile",(function(){return d(o,v)[d(o,h)].instance.profile()})),f(this,"previewEnabled",(function(){return d(o,v)[d(o,h)].preview})),f(this,"previewsList",(function(){return d(o,g)})),f(this,"backendsList",(function(){return d(o,y)})),w.set(this,{writable:!0,value:function(e){d(o,y).forEach((function(t){t.transition&&e.addEventListener(t.transition.event,d(o,S))}))}}),O.set(this,{writable:!0,value:function(e){d(o,y).forEach((function(t){t.transition&&e.removeEventListener(t.transition.event,d(o,S))}))}}),S.set(this,{writable:!0,value:function(e){var t=d(o,h);if(d(o,y).some((function(t){return!(t.id===d(o,h)||!t.transition||!t.transition.check(e))&&(p(o,h,t.id),!0)})),d(o,h)!==t){var r;d(o,v)[t].instance.teardown(),Object.keys(d(o,b)).forEach((function(e){var t,r=d(o,b)[e];r.unsubscribe(),r.unsubscribe=(t=d(o,k)).call.apply(t,[o,r.func].concat(c(r.args)))})),d(o,g).backendChanged(o);var n=d(o,v)[d(o,h)];if(n.instance.setup(),n.skipDispatchOnTransition)return;var i=null;try{i=e.constructor(e.type,e)}catch(t){(i=document.createEvent("Event")).initEvent(e.type,e.bubbles,e.cancelable)}null===(r=e.target)||void 0===r||r.dispatchEvent(i)}}}),k.set(this,{writable:!0,value:function(e,t,r,n){return d(o,v)[d(o,h)].instance[e](t,r,n)}}),D.set(this,{writable:!0,value:function(e,t,r,n){var i="".concat(e,"_").concat(t),a=d(o,k).call(o,e,t,r,n);return d(o,b)[i]={func:e,args:[t,r,n],unsubscribe:a},function(){d(o,b)[i].unsubscribe(),delete d(o,b)[i]}}}),!n||!n.backends||n.backends.length<1)throw new Error("You must specify at least one Backend, if you are coming from 2.x.x (or don't understand this error)\n see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-2xx");p(this,g,new s),p(this,v,{}),p(this,y,[]),n.backends.forEach((function(e){var n=d(o,m).call(o,t,r,e);d(o,v)[n.id]=n,d(o,y).push(n)})),p(this,h,d(this,y)[0].id),p(this,b,{})};f(T,"isSetUp",!1);var I=function(e,t,r){return new T(e,t,r)},E=function(e,t){return{event:e,check:t}},C=E("touchstart",(function(e){var t=e;return null!==t.touches&&void 0!==t.touches})),x=(E("dragstart",(function(e){return-1!==e.type.indexOf("drag")||-1!==e.type.indexOf("drop")})),E("mousedown",(function(e){return-1===e.type.indexOf("touch")&&-1!==e.type.indexOf("mouse")})))},4063:e=>{"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,o,i;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(o=n;0!=o--;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(i=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;0!=o--;){var a=i[o];if(!e(t[a],r[a]))return!1}return!0}return t!=t&&r!=r}},6425:(e,t,r)=>{var n=r(3118),o=r(9435);function i(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}i.prototype=n(o.prototype),i.prototype.constructor=i,e.exports=i},7548:(e,t,r)=>{var n=r(3118),o=r(9435);function i(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}i.prototype=n(o.prototype),i.prototype.constructor=i,e.exports=i},577:(e,t,r)=>{var n=r(852)(r(5639),"WeakMap");e.exports=n},6874:e=>{e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},2488:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}},3118:(e,t,r)=>{var n=r(3218),o=Object.create,i=function(){function e(){}return function(t){if(!n(t))return{};if(o)return o(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=i},1078:(e,t,r)=>{var n=r(2488),o=r(7285);e.exports=function e(t,r,i,a,u){var s=-1,c=t.length;for(i||(i=o),u||(u=[]);++s<c;){var l=t[s];r>0&&i(l)?r>1?e(l,r-1,i,a,u):n(u,l):a||(u[u.length]=l)}return u}},9454:(e,t,r)=>{var n=r(4239),o=r(7005);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},8458:(e,t,r)=>{var n=r(3560),o=r(7724),i=r(3218),a=r(346),u=/^\[object .+?Constructor\]$/,s=Function.prototype,c=Object.prototype,l=s.toString,f=c.hasOwnProperty,d=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(n(e)?d:u).test(a(e))}},9435:e=>{e.exports=function(){}},6560:(e,t,r)=>{var n=r(5703),o=r(8777),i=r(6557),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i;e.exports=a},7561:(e,t,r)=>{var n=r(7990),o=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(o,""):e}},278:e=>{e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},4429:(e,t,r)=>{var n=r(5639)["__core-js_shared__"];e.exports=n},3468:(e,t,r)=>{var n=r(7548),o=r(9021),i=r(6833),a=r(7658),u=r(1469),s=r(6528);e.exports=function(e){return o((function(t){var r=t.length,o=r,c=n.prototype.thru;for(e&&t.reverse();o--;){var l=t[o];if("function"!=typeof l)throw new TypeError("Expected a function");if(c&&!f&&"wrapper"==a(l))var f=new n([],!0)}for(o=f?o:r;++o<r;){l=t[o];var d=a(l),p="wrapper"==d?i(l):void 0;f=p&&s(p[0])&&424==p[1]&&!p[4].length&&1==p[9]?f[a(p[0])].apply(f,p[3]):1==l.length&&s(l)?f[d]():f.thru(l)}return function(){var e=arguments,n=e[0];if(f&&1==e.length&&u(n))return f.plant(n).value();for(var o=0,i=r?t[o].apply(this,e):n;++o<r;)i=t[o].call(this,i);return i}}))}},8777:(e,t,r)=>{var n=r(852),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},9021:(e,t,r)=>{var n=r(5564),o=r(5357),i=r(61);e.exports=function(e){return i(o(e,void 0,n),e+"")}},6833:(e,t,r)=>{var n=r(9250),o=r(308),i=n?function(e){return n.get(e)}:o;e.exports=i},7658:(e,t,r)=>{var n=r(2060),o=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=e.name+"",r=n[t],i=o.call(n,t)?r.length:0;i--;){var a=r[i],u=a.func;if(null==u||u==e)return a.name}return t}},852:(e,t,r)=>{var n=r(8458),o=r(7801);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},7801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},7285:(e,t,r)=>{var n=r(2705),o=r(5694),i=r(1469),a=n?n.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},6528:(e,t,r)=>{var n=r(6425),o=r(6833),i=r(7658),a=r(2170);e.exports=function(e){var t=i(e),r=a[t];if("function"!=typeof r||!(t in n.prototype))return!1;if(e===r)return!0;var u=o(r);return!!u&&e===u[0]}},7724:(e,t,r)=>{var n,o=r(4429),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},9250:(e,t,r)=>{var n=r(577),o=n&&new n;e.exports=o},5357:(e,t,r)=>{var n=r(6874),o=Math.max;e.exports=function(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,u=o(i.length-t,0),s=Array(u);++a<u;)s[a]=i[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=i[a];return c[t]=r(s),n(e,this,c)}}},2060:e=>{e.exports={}},61:(e,t,r)=>{var n=r(6560),o=r(1275)(n);e.exports=o},1275:e=>{var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var o=t(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},7990:e=>{var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},1913:(e,t,r)=>{var n=r(6425),o=r(7548),i=r(278);e.exports=function(e){if(e instanceof n)return e.clone();var t=new o(e.__wrapped__,e.__chain__);return t.__actions__=i(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}},5703:e=>{e.exports=function(e){return function(){return e}}},3279:(e,t,r)=>{var n=r(3218),o=r(7771),i=r(4841),a=Math.max,u=Math.min;e.exports=function(e,t,r){var s,c,l,f,d,p,h=0,g=!1,v=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var r=s,n=c;return s=c=void 0,h=t,f=e.apply(n,r)}function m(e){return h=e,d=setTimeout(O,t),g?b(e):f}function w(e){var r=e-p;return void 0===p||r>=t||r<0||v&&e-h>=l}function O(){var e=o();if(w(e))return S(e);d=setTimeout(O,function(e){var r=t-(e-p);return v?u(r,l-(e-h)):r}(e))}function S(e){return d=void 0,y&&s?b(e):(s=c=void 0,f)}function k(){var e=o(),r=w(e);if(s=arguments,c=this,p=e,r){if(void 0===d)return m(p);if(v)return clearTimeout(d),d=setTimeout(O,t),b(p)}return void 0===d&&(d=setTimeout(O,t)),f}return t=i(t)||0,n(r)&&(g=!!r.leading,l=(v="maxWait"in r)?a(i(r.maxWait)||0,t):l,y="trailing"in r?!!r.trailing:y),k.cancel=function(){void 0!==d&&clearTimeout(d),h=0,s=p=c=d=void 0},k.flush=function(){return void 0===d?f:S(o())},k}},5564:(e,t,r)=>{var n=r(1078);e.exports=function(e){return(null==e?0:e.length)?n(e,1):[]}},9242:(e,t,r)=>{var n=r(3468)();e.exports=n},5694:(e,t,r)=>{var n=r(9454),o=r(7005),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,s=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!u.call(e,"callee")};e.exports=s},3560:(e,t,r)=>{var n=r(4239),o=r(3218);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},308:e=>{e.exports=function(){}},7771:(e,t,r)=>{var n=r(5639);e.exports=function(){return n.Date.now()}},4841:(e,t,r)=>{var n=r(7561),o=r(3218),i=r(3448),a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=u.test(e);return r||s.test(e)?c(e.slice(2),r?2:8):a.test(e)?NaN:+e}},2170:(e,t,r)=>{var n=r(6425),o=r(7548),i=r(9435),a=r(1469),u=r(7005),s=r(1913),c=Object.prototype.hasOwnProperty;function l(e){if(u(e)&&!a(e)&&!(e instanceof n)){if(e instanceof o)return e;if(c.call(e,"__wrapped__"))return s(e)}return new o(e)}l.prototype=i.prototype,l.prototype.constructor=l,e.exports=l},2227:(e,t,r)=>{"use strict";r.d(t,{_j:()=>F,$n:()=>W,m4:()=>N,p_:()=>Y});var n=r(2122),o=r(3349),i=r(1788),a=r(7608),u=r(4665);function s(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function c(e,t,r){return(c=s()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&(0,u.Z)(o,r.prototype),o}).apply(null,arguments)}function l(e){var t="function"==typeof Map?new Map:void 0;return(l=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return c(e,arguments,(0,a.Z)(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),(0,u.Z)(n,e)})(e)}var f=function(e){function t(t){var r;return r=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+t+" for more information.")||this,(0,o.Z)(r)}return(0,i.Z)(t,e),t}(l(Error));function d(e){return Math.round(255*e)}function p(e,t,r){return d(e)+","+d(t)+","+d(r)}function h(e,t,r,n){if(void 0===n&&(n=p),0===t)return n(r,r,r);var o=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*t,a=i*(1-Math.abs(o%2-1)),u=0,s=0,c=0;o>=0&&o<1?(u=i,s=a):o>=1&&o<2?(u=a,s=i):o>=2&&o<3?(s=i,c=a):o>=3&&o<4?(s=a,c=i):o>=4&&o<5?(u=a,c=i):o>=5&&o<6&&(u=i,c=a);var l=r-i/2;return n(u+l,s+l,c+l)}var g={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var v=/^#[a-fA-F0-9]{6}$/,y=/^#[a-fA-F0-9]{8}$/,b=/^#[a-fA-F0-9]{3}$/,m=/^#[a-fA-F0-9]{4}$/,w=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,O=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,S=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,k=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;function D(e){if("string"!=typeof e)throw new f(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return g[t]?"#"+g[t]:e}(e);if(t.match(v))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(y)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(b))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(m)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var o=w.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=O.exec(t);if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])};var a=S.exec(t);if(a){var u="rgb("+h(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",s=w.exec(u);if(!s)throw new f(4,t,u);return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10)}}var c=k.exec(t);if(c){var l="rgb("+h(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",d=w.exec(l);if(!d)throw new f(4,t,l);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10),alpha:parseFloat(""+c[4])}}throw new f(5)}function T(e){return function(e){var t,r=e.red/255,n=e.green/255,o=e.blue/255,i=Math.max(r,n,o),a=Math.min(r,n,o),u=(i+a)/2;if(i===a)return void 0!==e.alpha?{hue:0,saturation:0,lightness:u,alpha:e.alpha}:{hue:0,saturation:0,lightness:u};var s=i-a,c=u>.5?s/(2-i-a):s/(i+a);switch(i){case r:t=(n-o)/s+(n<o?6:0);break;case n:t=(o-r)/s+2;break;default:t=(r-n)/s+4}return t*=60,void 0!==e.alpha?{hue:t,saturation:c,lightness:u,alpha:e.alpha}:{hue:t,saturation:c,lightness:u}}(D(e))}var I=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function E(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function C(e){return E(Math.round(255*e))}function x(e,t,r){return I("#"+C(e)+C(t)+C(r))}function P(e,t,r){return h(e,t,r,x)}function j(e,t,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof r)return P(e,t,r);if("object"==typeof e&&void 0===t&&void 0===r)return P(e.hue,e.saturation,e.lightness);throw new f(1)}function _(e,t,r,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof r&&"number"==typeof n)return n>=1?P(e,t,r):"rgba("+h(e,t,r)+","+n+")";if("object"==typeof e&&void 0===t&&void 0===r&&void 0===n)return e.alpha>=1?P(e.hue,e.saturation,e.lightness):"rgba("+h(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new f(2)}function M(e,t,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof r)return I("#"+E(e)+E(t)+E(r));if("object"==typeof e&&void 0===t&&void 0===r)return I("#"+E(e.red)+E(e.green)+E(e.blue));throw new f(6)}function N(e,t,r,n){if("string"==typeof e&&"number"==typeof t){var o=D(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof r&&"number"==typeof n)return n>=1?M(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if("object"==typeof e&&void 0===t&&void 0===r&&void 0===n)return e.alpha>=1?M(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new f(7)}function A(e){if("object"!=typeof e)throw new f(8);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha}(e))return N(e);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return M(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha}(e))return _(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return j(e);throw new f(8)}function R(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):R(e,t,n)}}function L(e){return R(e,e.length,[])}function U(e,t,r){return Math.max(e,Math.min(t,r))}function H(e,t){if("transparent"===t)return t;var r=T(t);return A((0,n.Z)({},r,{lightness:U(0,1,r.lightness-parseFloat(e))}))}var F=L(H);function B(e,t){if("transparent"===t)return t;var r=T(t);return A((0,n.Z)({},r,{lightness:U(0,1,r.lightness+parseFloat(e))}))}var W=L(B);function $(e,t){if("transparent"===t)return t;var r=T(t);return A((0,n.Z)({},r,{saturation:U(0,1,r.saturation+parseFloat(e))}))}var Y=L($)},6798:(e,t,r)=>{"use strict";r.d(t,{r:()=>K});var n={};function o(e){var t=null;return function(){return null==t&&(t=e()),t}}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}r.r(n),r.d(n,{FILE:()=>g,TEXT:()=>y,URL:()=>v});var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.entered=[],this.isNodeInDocument=t}var t,r,n;return t=e,(r=[{key:"enter",value:function(e){var t=this,r=this.entered.length;return this.entered=function(e,t){var r=new Set,n=function(e){return r.add(e)};e.forEach(n),t.forEach(n);var o=[];return r.forEach((function(e){return o.push(e)})),o}(this.entered.filter((function(r){return t.isNodeInDocument(r)&&(!r.contains||r.contains(e))})),[e]),0===r&&this.entered.length>0}},{key:"leave",value:function(e){var t,r,n=this.entered.length;return this.entered=(t=this.entered.filter(this.isNodeInDocument),r=e,t.filter((function(e){return e!==r}))),n>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}])&&i(t.prototype,r),n&&i(t,n),e}(),u=o((function(){return/firefox/i.test(navigator.userAgent)})),s=o((function(){return Boolean(window.safari)}));function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var l=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var n=t.length,o=[],i=0;i<n;i++)o.push(i);o.sort((function(e,r){return t[e]<t[r]?-1:1}));for(var a,u,s=[],c=[],l=[],f=0;f<n-1;f++)a=t[f+1]-t[f],u=r[f+1]-r[f],c.push(a),s.push(u),l.push(u/a);for(var d=[l[0]],p=0;p<c.length-1;p++){var h=l[p],g=l[p+1];if(h*g<=0)d.push(0);else{a=c[p];var v=c[p+1],y=a+v;d.push(3*y/((y+v)/h+(y+a)/g))}}d.push(l[l.length-1]);for(var b,m=[],w=[],O=0;O<d.length-1;O++){b=l[O];var S=d[O],k=1/c[O],D=S+d[O+1]-b-b;m.push((b-S-D)*k),w.push(D*k*k)}this.xs=t,this.ys=r,this.c1s=d,this.c2s=m,this.c3s=w}var t,r,n;return t=e,(r=[{key:"interpolate",value:function(e){var t=this.xs,r=this.ys,n=this.c1s,o=this.c2s,i=this.c3s,a=t.length-1;if(e===t[a])return r[a];for(var u,s=0,c=i.length-1;s<=c;){var l=t[u=Math.floor(.5*(s+c))];if(l<e)s=u+1;else{if(!(l>e))return r[u];c=u-1}}var f=e-t[a=Math.max(0,c)],d=f*f;return r[a]+n[a]*f+o[a]*d+i[a]*f*d}}])&&c(t.prototype,r),n&&c(t,n),e}();function f(e){var t=1===e.nodeType?e:e.parentElement;if(!t)return null;var r=t.getBoundingClientRect(),n=r.top;return{x:r.left,y:n}}function d(e){return{x:e.clientX,y:e.clientY}}function p(e,t,r,n,o){var i,a,c,d="IMG"===(i=t).nodeName&&(u()||!(null===(a=document.documentElement)||void 0===a?void 0:a.contains(i))),p=f(d?e:t),h={x:r.x-p.x,y:r.y-p.y},g=e.offsetWidth,v=e.offsetHeight,y=n.anchorX,b=n.anchorY,m=function(e,t,r,n){var o=e?t.width:r,i=e?t.height:n;return s()&&e&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}(d,t,g,v),w=m.dragPreviewWidth,O=m.dragPreviewHeight,S=o.offsetX,k=o.offsetY,D=0===k||k;return{x:0===S||S?S:new l([0,.5,1],[h.x,h.x/g*w,h.x+w-g]).interpolate(y),y:D?k:(c=new l([0,.5,1],[h.y,h.y/v*O,h.y+O-v]).interpolate(b),s()&&d&&(c+=(window.devicePixelRatio-1)*O),c)}}var h,g="__NATIVE_FILE__",v="__NATIVE_URL__",y="__NATIVE_TEXT__";function b(e,t,r){var n=t.reduce((function(t,r){return t||e.getData(r)}),"");return null!=n?n:r}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var w=(m(h={},g,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items}},matchesTypes:["Files"]}),m(h,v,{exposeProperties:{urls:function(e,t){return b(e,t,"").split("\n")}},matchesTypes:["Url","text/uri-list"]}),m(h,y,{exposeProperties:{text:function(e,t){return b(e,t,"")}},matchesTypes:["Text","text/plain"]}),h);function O(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var S=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=t,this.item={},this.initializeExposedProperties()}var t,r,n;return t=e,(r=[{key:"initializeExposedProperties",value:function(){var e=this;Object.keys(this.config.exposeProperties).forEach((function(t){Object.defineProperty(e.item,t,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(t,'" until the drop event.')),null}})}))}},{key:"loadDataTransfer",value:function(e){var t=this;if(e){var r={};Object.keys(this.config.exposeProperties).forEach((function(n){r[n]={value:t.config.exposeProperties[n](e,t.config.matchesTypes),configurable:!0,enumerable:!0}})),Object.defineProperties(this.item,r)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}])&&O(t.prototype,r),n&&O(t,n),e}();function k(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(w).filter((function(e){return w[e].matchesTypes.some((function(e){return t.indexOf(e)>-1}))}))[0]||null}function D(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var T=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.globalContext=t}var t,r,n;return t=e,(r=[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){if(this.window)return this.window.document}}])&&D(t.prototype,r),n&&D(t,n),e}();function I(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function E(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?I(Object(r),!0).forEach((function(t){C(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function C(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var P,j=function(){function e(t,r){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.getSourceClientOffset=function(e){var t=n.sourceNodes.get(e);return t&&f(t)||null},this.endDragNativeItem=function(){n.isDraggingNativeItem()&&(n.actions.endDrag(),n.currentNativeHandle&&n.registry.removeSource(n.currentNativeHandle),n.currentNativeHandle=null,n.currentNativeSource=null)},this.isNodeInDocument=function(e){return Boolean(e&&n.document&&n.document.body&&document.body.contains(e))},this.endDragIfSourceWasRemovedFromDOM=function(){var e=n.currentDragSourceNode;n.isNodeInDocument(e)||n.clearCurrentDragSourceNode()&&n.actions.endDrag()},this.handleTopDragStartCapture=function(){n.clearCurrentDragSourceNode(),n.dragStartSourceIds=[]},this.handleTopDragStart=function(e){if(!e.defaultPrevented){var t=n.dragStartSourceIds;n.dragStartSourceIds=null;var r=d(e);n.monitor.isDragging()&&n.actions.endDrag(),n.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:n.getSourceClientOffset,clientOffset:r});var o=e.dataTransfer,i=k(o);if(n.monitor.isDragging()){if(o&&"function"==typeof o.setDragImage){var a=n.monitor.getSourceId(),u=n.sourceNodes.get(a),s=n.sourcePreviewNodes.get(a)||u;if(s){var c=n.getCurrentSourcePreviewNodeOptions(),l=p(u,s,r,{anchorX:c.anchorX,anchorY:c.anchorY},{offsetX:c.offsetX,offsetY:c.offsetY});o.setDragImage(s,l.x,l.y)}}try{null==o||o.setData("application/json",{})}catch(e){}n.setCurrentDragSourceNode(e.target),n.getCurrentSourcePreviewNodeOptions().captureDraggingState?n.actions.publishDragSource():setTimeout((function(){return n.actions.publishDragSource()}),0)}else if(i)n.beginDragNativeItem(i);else{if(o&&!o.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}}},this.handleTopDragEndCapture=function(){n.clearCurrentDragSourceNode()&&n.actions.endDrag()},this.handleTopDragEnterCapture=function(e){if(n.dragEnterTargetIds=[],n.enterLeaveCounter.enter(e.target)&&!n.monitor.isDragging()){var t=e.dataTransfer,r=k(t);r&&n.beginDragNativeItem(r,t)}},this.handleTopDragEnter=function(e){var t=n.dragEnterTargetIds;(n.dragEnterTargetIds=[],n.monitor.isDragging())&&(n.altKeyPressed=e.altKey,u()||n.actions.hover(t,{clientOffset:d(e)}),t.some((function(e){return n.monitor.canDropOnTarget(e)}))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=n.getCurrentDropEffect())))},this.handleTopDragOverCapture=function(){n.dragOverTargetIds=[]},this.handleTopDragOver=function(e){var t=n.dragOverTargetIds;if(n.dragOverTargetIds=[],!n.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));n.altKeyPressed=e.altKey,n.actions.hover(t||[],{clientOffset:d(e)}),(t||[]).some((function(e){return n.monitor.canDropOnTarget(e)}))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=n.getCurrentDropEffect())):n.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=function(e){n.isDraggingNativeItem()&&e.preventDefault(),n.enterLeaveCounter.leave(e.target)&&n.isDraggingNativeItem()&&n.endDragNativeItem()},this.handleTopDropCapture=function(e){var t;(n.dropTargetIds=[],e.preventDefault(),n.isDraggingNativeItem())&&(null===(t=n.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer));n.enterLeaveCounter.reset()},this.handleTopDrop=function(e){var t=n.dropTargetIds;n.dropTargetIds=[],n.actions.hover(t,{clientOffset:d(e)}),n.actions.drop({dropEffect:n.getCurrentDropEffect()}),n.isDraggingNativeItem()?n.endDragNativeItem():n.endDragIfSourceWasRemovedFromDOM()},this.handleSelectStart=function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new T(r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new a(this.isNodeInDocument)}var t,r,o;return t=e,(r=[{key:"profile",value:function(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}},{key:"setup",value:function(){if(void 0!==this.window){if(this.window.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");this.window.__isReactDndBackendSetUp=!0,this.addEventListeners(this.window)}}},{key:"teardown",value:function(){void 0!==this.window&&(this.window.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.window),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&this.window.cancelAnimationFrame(this.asyncEndDragFrameId))}},{key:"connectDragPreview",value:function(e,t,r){var n=this;return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,t),function(){n.sourcePreviewNodes.delete(e),n.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDragSource",value:function(e,t,r){var n=this;this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,r);var o=function(t){return n.handleDragStart(t,e)},i=function(e){return n.handleSelectStart(e)};return t.setAttribute("draggable","true"),t.addEventListener("dragstart",o),t.addEventListener("selectstart",i),function(){n.sourceNodes.delete(e),n.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",o),t.removeEventListener("selectstart",i),t.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(e,t){var r=this,n=function(t){return r.handleDragEnter(t,e)},o=function(t){return r.handleDragOver(t,e)},i=function(t){return r.handleDrop(t,e)};return t.addEventListener("dragenter",n),t.addEventListener("dragover",o),t.addEventListener("drop",i),function(){t.removeEventListener("dragenter",n),t.removeEventListener("dragover",o),t.removeEventListener("drop",i)}}},{key:"addEventListeners",value:function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return E({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var e=this.monitor.getSourceId();return E({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}},{key:"isDraggingNativeItem",value:function(){var e=this.monitor.getItemType();return Object.keys(n).some((function(t){return n[t]===e}))}},{key:"beginDragNativeItem",value:function(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){var r=new S(w[e]);return r.loadDataTransfer(t),r}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout((function(){return t.window&&t.window.addEventListener("mousemove",t.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}},{key:"clearCurrentDragSourceNode",value:function(){return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.window&&(this.window.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.window.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}},{key:"handleDragStart",value:function(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}},{key:"handleDragEnter",value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:"handleDragOver",value:function(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}},{key:"handleDrop",value:function(e,t){this.dropTargetIds.unshift(t)}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}}])&&x(t.prototype,r),o&&x(t,o),e}(),_=r(8195);!function(e){e.mouse="mouse",e.touch="touch",e.keyboard="keyboard"}(P||(P={}));var M=1,N=0;function A(e){return void 0===e.button||e.button===N}function R(e){return!!e.targetTouches}function L(e,t){return R(e)?function(e,t){return 1===e.targetTouches.length?L(e.targetTouches[0]):t&&1===e.touches.length&&e.touches[0].target===t.target?L(e.touches[0]):void 0}(e,t):{x:e.clientX,y:e.clientY}}var U=function(){var e=!1;try{addEventListener("test",(function(){}),Object.defineProperty({},"passive",{get:function(){return e=!0,!0}}))}catch(e){}return e}();function H(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var F,B=function(){function e(t,r){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.enableTouchEvents=!0,this.enableMouseEvents=!1,this.enableKeyboardEvents=!1,this.ignoreContextMenu=!1,this.enableHoverOutsideTarget=!1,this.touchSlop=0,this.scrollAngleRanges=void 0,this.context=r,this.delayTouchStart=t.delayTouchStart||t.delay||0,this.delayMouseStart=t.delayMouseStart||t.delay||0,Object.keys(t).forEach((function(e){null!=t[e]&&(n[e]=t[e])}))}var t,r,n;return t=e,(r=[{key:"window",get:function(){return this.context&&this.context.window?this.context.window:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){if(this.window)return this.window.document}}])&&H(t.prototype,r),n&&H(t,n),e}();function W(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function $(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Y=($(F={},P.mouse,{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"}),$(F,P.touch,{start:"touchstart",move:"touchmove",end:"touchend"}),$(F,P.keyboard,{keydown:"keydown"}),F),q=function(){function e(t,r,n){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.getSourceClientOffset=function(e){var t=o.sourceNodes.get(e);return t&&function(e){var t=1===e.nodeType?e:e.parentElement;if(t){var r=t.getBoundingClientRect(),n=r.top;return{x:r.left,y:n}}}(t)},this.handleTopMoveStartCapture=function(e){A(e)&&(o.moveStartSourceIds=[])},this.handleMoveStart=function(e){Array.isArray(o.moveStartSourceIds)&&o.moveStartSourceIds.unshift(e)},this.handleTopMoveStart=function(e){if(A(e)){var t=L(e);t&&(R(e)&&(o.lastTargetTouchFallback=e.targetTouches[0]),o._mouseClientOffset=t),o.waitingForDelay=!1}},this.handleTopMoveStartDelay=function(e){if(A(e)){var t=e.type===Y.touch.start?o.options.delayTouchStart:o.options.delayMouseStart;o.timeout=setTimeout(o.handleTopMoveStart.bind(o,e),t),o.waitingForDelay=!0}},this.handleTopMoveCapture=function(){o.dragOverTargetIds=[]},this.handleMove=function(e,t){o.dragOverTargetIds&&o.dragOverTargetIds.unshift(t)},this.handleTopMove=function(e){if(o.timeout&&clearTimeout(o.timeout),o.document&&!o.waitingForDelay){var t,r,n,i,a=o.moveStartSourceIds,u=o.dragOverTargetIds,s=o.options.enableHoverOutsideTarget,c=L(e,o.lastTargetTouchFallback);if(c)if(o._isScrolling||!o.monitor.isDragging()&&function(e,t,r,n,o){if(!o)return!1;for(var i=180*Math.atan2(n-t,r-e)/Math.PI+180,a=0;a<o.length;++a)if((null==o[a].start||i>=o[a].start)&&(null==o[a].end||i<=o[a].end))return!0;return!1}(o._mouseClientOffset.x||0,o._mouseClientOffset.y||0,c.x,c.y,o.options.scrollAngleRanges))o._isScrolling=!0;else if(!o.monitor.isDragging()&&o._mouseClientOffset.hasOwnProperty("x")&&a&&(t=o._mouseClientOffset.x||0,r=o._mouseClientOffset.y||0,n=c.x,i=c.y,Math.sqrt(Math.pow(Math.abs(n-t),2)+Math.pow(Math.abs(i-r),2))>(o.options.touchSlop?o.options.touchSlop:0))&&(o.moveStartSourceIds=void 0,o.actions.beginDrag(a,{clientOffset:o._mouseClientOffset,getSourceClientOffset:o.getSourceClientOffset,publishSource:!1})),o.monitor.isDragging()){var l=o.sourceNodes.get(o.monitor.getSourceId());o.installSourceNodeRemovalObserver(l),o.actions.publishDragSource(),e.cancelable&&e.preventDefault();var f=(u||[]).map((function(e){return o.targetNodes.get(e)})).filter((function(e){return!!e})),d=o.options.getDropTargetElementsAtPoint?o.options.getDropTargetElementsAtPoint(c.x,c.y,f):o.document.elementsFromPoint(c.x,c.y),p=[];for(var h in d)if(d.hasOwnProperty(h)){var g=d[h];for(p.push(g);g;)(g=g.parentElement)&&-1===p.indexOf(g)&&p.push(g)}var v=p.filter((function(e){return f.indexOf(e)>-1})).map((function(e){return o._getDropTargetId(e)})).filter((function(e){return!!e})).filter((function(e,t,r){return r.indexOf(e)===t}));if(s)for(var y in o.targetNodes){var b=o.targetNodes.get(y);if(l&&b&&b.contains(l)&&-1===v.indexOf(y)){v.unshift(y);break}}v.reverse(),o.actions.hover(v,{clientOffset:c})}}},this._getDropTargetId=function(e){for(var t=o.targetNodes.keys(),r=t.next();!1===r.done;){var n=r.value;if(e===o.targetNodes.get(n))return n;r=t.next()}},this.handleTopMoveEndCapture=function(e){o._isScrolling=!1,o.lastTargetTouchFallback=void 0,function(e){return void 0===e.buttons||0==(e.buttons&M)}(e)&&(o.monitor.isDragging()&&!o.monitor.didDrop()?(e.cancelable&&e.preventDefault(),o._mouseClientOffset={},o.uninstallSourceNodeRemovalObserver(),o.actions.drop(),o.actions.endDrag()):o.moveStartSourceIds=void 0)},this.handleCancelOnEscape=function(e){"Escape"===e.key&&o.monitor.isDragging()&&(o._mouseClientOffset={},o.uninstallSourceNodeRemovalObserver(),o.actions.endDrag())},this.options=new B(n,r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(P.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(P.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(P.keyboard)}var t,r,n;return t=e,(r=[{key:"profile",value:function(){var e;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:(null===(e=this.dragOverTargetIds)||void 0===e?void 0:e.length)||0}}},{key:"setup",value:function(){this.window&&((0,_.k)(!e.isSetUp,"Cannot have two Touch backends at the same time."),e.isSetUp=!0,this.addEventListener(this.window,"start",this.getTopMoveStartHandler()),this.addEventListener(this.window,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(this.window,"move",this.handleTopMove),this.addEventListener(this.window,"move",this.handleTopMoveCapture,!0),this.addEventListener(this.window,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(this.window,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(this.window,"keydown",this.handleCancelOnEscape,!0))}},{key:"teardown",value:function(){this.window&&(e.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(this.window,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(this.window,"start",this.handleTopMoveStart),this.removeEventListener(this.window,"move",this.handleTopMoveCapture,!0),this.removeEventListener(this.window,"move",this.handleTopMove),this.removeEventListener(this.window,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(this.window,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(this.window,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}},{key:"addEventListener",value:function(e,t,r,n){var o=U?{capture:n,passive:!1}:n;this.listenerTypes.forEach((function(n){var i=Y[n][t];i&&e.addEventListener(i,r,o)}))}},{key:"removeEventListener",value:function(e,t,r,n){var o=U?{capture:n,passive:!1}:n;this.listenerTypes.forEach((function(n){var i=Y[n][t];i&&e.removeEventListener(i,r,o)}))}},{key:"connectDragSource",value:function(e,t){var r=this,n=this.handleMoveStart.bind(this,e);return this.sourceNodes.set(e,t),this.addEventListener(t,"start",n),function(){r.sourceNodes.delete(e),r.removeEventListener(t,"start",n)}}},{key:"connectDragPreview",value:function(e,t,r){var n=this;return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,t),function(){n.sourcePreviewNodes.delete(e),n.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDropTarget",value:function(e,t){var r=this;if(!this.document)return function(){};var n=function(n){if(r.document&&r.monitor.isDragging()){var o;switch(n.type){case Y.mouse.move:o={x:n.clientX,y:n.clientY};break;case Y.touch.move:o={x:n.touches[0].clientX,y:n.touches[0].clientY}}var i=null!=o?r.document.elementFromPoint(o.x,o.y):void 0,a=i&&t.contains(i);return i===t||a?r.handleMove(n,e):void 0}};return this.addEventListener(this.document.body,"move",n),this.targetNodes.set(e,t),function(){r.document&&(r.targetNodes.delete(e),r.removeEventListener(r.document.body,"move",n))}}},{key:"getTopMoveStartHandler",value:function(){return this.options.delayTouchStart||this.options.delayMouseStart?this.handleTopMoveStartDelay:this.handleTopMoveStart}},{key:"installSourceNodeRemovalObserver",value:function(e){var t=this;this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=e,this.draggedSourceNodeRemovalObserver=new MutationObserver((function(){e&&!e.parentElement&&(t.resurrectSourceNode(),t.uninstallSourceNodeRemovalObserver())})),e&&e.parentElement&&this.draggedSourceNodeRemovalObserver.observe(e.parentElement,{childList:!0})}},{key:"resurrectSourceNode",value:function(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}},{key:"uninstallSourceNodeRemovalObserver",value:function(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){if(this.window)return this.window.document}}])&&W(t.prototype,r),n&&W(t,n),e}(),G=r(4967),K={backends:[{id:"html5",backend:function(e,t){return new j(e,t)},transition:G.RY},{id:"touch",backend:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new q(e,t,r)},options:{enableMouseEvents:!0},preview:!0,transition:G.R}]}},6408:(e,t,r)=>{"use strict";var n;function o(){return n||((n=new Image).src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),n}r.d(t,{r:()=>o})},3928:(e,t,r)=>{"use strict";r.d(t,{WG:()=>ft});var n=r(4967),o=r(7294),i=r(5893),a=r(8195),u="dnd-core/INIT_COORDS",s="dnd-core/BEGIN_DRAG",c="dnd-core/PUBLISH_DRAG_SOURCE",l="dnd-core/HOVER",f="dnd-core/DROP",d="dnd-core/END_DRAG";function p(e,t){return{type:u,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t,r){return t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:r||null}),e)}function v(e,t){return e.filter((function(e){return e!==t}))}function y(e){return"object"===h(e)}function b(e,t){var r=new Map,n=function(e){r.set(e,r.has(e)?r.get(e)+1:1)};e.forEach(n),t.forEach(n);var o=[];return r.forEach((function(e,t){1===e&&o.push(t)})),o}var m={type:u,payload:{clientOffset:null,sourceClientOffset:null}};function w(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},n=r.publishSource,o=void 0===n||n,i=r.clientOffset,a=r.getSourceClientOffset,u=e.getMonitor(),c=e.getRegistry();e.dispatch(p(i)),O(t,u,c);var l=D(t,u);if(null!==l){var f=null;if(i){if(!a)throw new Error("getSourceClientOffset must be defined");S(a),f=a(l)}e.dispatch(p(i,f));var d=c.getSource(l),h=d.beginDrag(u,l);if(null!=h){k(h),c.pinSource(l);var g=c.getSourceType(l);return{type:s,payload:{itemType:g,item:h,sourceId:l,clientOffset:i||null,sourceClientOffset:f||null,isSourcePublic:!!o}}}}else e.dispatch(m)}}function O(e,t,r){(0,a.k)(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){(0,a.k)(r.getSource(e),"Expected sourceIds to be registered.")}))}function S(e){(0,a.k)("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}function k(e){(0,a.k)(y(e),"Item must be an object.")}function D(e,t){for(var r=null,n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}function T(e){return function(){if(e.getMonitor().isDragging())return{type:c}}}function I(e,t){return null===t?null===e:Array.isArray(e)?e.some((function(e){return e===t})):e===t}function E(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.clientOffset;C(t);var o=t.slice(0),i=e.getMonitor(),a=e.getRegistry();x(o,i,a);var u=i.getItemType();return P(o,a,u),j(o,i,a),{type:l,payload:{targetIds:o,clientOffset:n||null}}}}function C(e){(0,a.k)(Array.isArray(e),"Expected targetIds to be an array.")}function x(e,t,r){(0,a.k)(t.isDragging(),"Cannot call hover while not dragging."),(0,a.k)(!t.didDrop(),"Cannot call hover after drop.");for(var n=0;n<e.length;n++){var o=e[n];(0,a.k)(e.lastIndexOf(o)===n,"Expected targetIds to be unique in the passed array.");var i=r.getTarget(o);(0,a.k)(i,"Expected targetIds to be registered.")}}function P(e,t,r){for(var n=e.length-1;n>=0;n--){var o=e[n];I(t.getTargetType(o),r)||e.splice(n,1)}}function j(e,t,r){e.forEach((function(e){r.getTarget(e).hover(t,e)}))}function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function M(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach((function(t){N(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function N(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.getMonitor(),n=e.getRegistry();R(r);var o=U(r);o.forEach((function(o,i){var a=L(o,i,n,r),u={type:f,payload:{dropResult:M(M({},t),a)}};e.dispatch(u)}))}}function R(e){(0,a.k)(e.isDragging(),"Cannot call drop while not dragging."),(0,a.k)(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function L(e,t,r,n){var o=r.getTarget(e),i=o?o.drop(n,e):void 0;return function(e){(0,a.k)(void 0===e||y(e),"Drop result must either be an object or undefined.")}(i),void 0===i&&(i=0===t?{}:n.getDropResult()),i}function U(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function H(e){return function(){var t=e.getMonitor(),r=e.getRegistry();!function(e){(0,a.k)(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);var n=t.getSourceId();null!=n&&(r.getSource(n,!0).endDrag(t,n),r.unpinSource());return{type:d}}}function F(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var B=function(){function e(t,r){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.isSetUp=!1,this.handleRefCountChange=function(){var e=n.store.getState().refCount>0;n.backend&&(e&&!n.isSetUp?(n.backend.setup(),n.isSetUp=!0):!e&&n.isSetUp&&(n.backend.teardown(),n.isSetUp=!1))},this.store=t,this.monitor=r,t.subscribe(this.handleRefCountChange)}var t,r,n;return t=e,(r=[{key:"receiveBackend",value:function(e){this.backend=e}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var e=this,t=this.store.dispatch,r=function(e){return{beginDrag:w(e),publishDragSource:T(e),hover:E(e),drop:A(e),endDrag:H(e)}}(this);return Object.keys(r).reduce((function(n,o){var i,a=r[o];return n[o]=(i=a,function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];var a=i.apply(e,n);void 0!==a&&t(a)}),n}),{})}},{key:"dispatch",value:function(e){this.store.dispatch(e)}}])&&F(t.prototype,r),n&&F(t,n),e}(),W=r(7121),$=function(){return Math.random().toString(36).substring(7).split("").join(".")},Y={INIT:"@@redux/INIT"+$(),REPLACE:"@@redux/REPLACE"+$(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+$()}};function q(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function G(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error("Expected the enhancer to be a function.");return r(G)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var o=e,i=t,a=[],u=a,s=!1;function c(){u===a&&(u=a.slice())}function l(){if(s)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function f(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(s)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return c(),u.push(e),function(){if(t){if(s)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,c();var r=u.indexOf(e);u.splice(r,1),a=null}}}function d(e){if(!q(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(s)throw new Error("Reducers may not dispatch actions.");try{s=!0,i=o(i,e)}finally{s=!1}for(var t=a=u,r=0;r<t.length;r++){(0,t[r])()}return e}function p(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");o=e,d({type:Y.REPLACE})}function h(){var e,t=f;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function r(){e.next&&e.next(l())}return r(),{unsubscribe:t(r)}}})[W.Z]=function(){return this},e}return d({type:Y.INIT}),(n={dispatch:d,subscribe:f,getState:l,replaceReducer:p})[W.Z]=h,n}var K=function(e,t){return e===t};function X(e,t){return!e&&!t||!(!e||!t)&&(e.x===t.x&&e.y===t.y)}function Z(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:K;if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!r(e[n],t[n]))return!1;return!0}function z(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function V(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?z(Object(r),!0).forEach((function(t){J(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):z(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function J(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Q={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function ee(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q,t=arguments.length>1?arguments[1]:void 0,r=t.payload;switch(t.type){case u:case s:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case l:return X(e.clientOffset,r.clientOffset)?e:V(V({},e),{},{clientOffset:r.clientOffset});case d:case f:return Q;default:return e}}var te="dnd-core/ADD_SOURCE",re="dnd-core/ADD_TARGET",ne="dnd-core/REMOVE_SOURCE",oe="dnd-core/REMOVE_TARGET";function ie(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ae(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ie(Object(r),!0).forEach((function(t){ue(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ie(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ue(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var se={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function ce(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:se,t=arguments.length>1?arguments[1]:void 0,r=t.payload;switch(t.type){case s:return ae(ae({},e),{},{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case c:return ae(ae({},e),{},{isSourcePublic:!0});case l:return ae(ae({},e),{},{targetIds:r.targetIds});case oe:return-1===e.targetIds.indexOf(r.targetId)?e:ae(ae({},e),{},{targetIds:v(e.targetIds,r.targetId)});case f:return ae(ae({},e),{},{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case d:return ae(ae({},e),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function le(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case te:case re:return e+1;case ne:case oe:return e-1;default:return e}}var fe=[],de=[];function pe(e,t){return e!==fe&&(e===de||void 0===t||(r=e,t.filter((function(e){return r.indexOf(e)>-1}))).length>0);var r}function he(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case l:break;case te:case re:case oe:case ne:return fe;case s:case c:case d:case f:default:return de}var t=e.payload,r=t.targetIds,n=void 0===r?[]:r,o=t.prevTargetIds,i=void 0===o?[]:o,a=b(n,i),u=a.length>0||!Z(n,i);if(!u)return fe;var p=i[i.length-1],h=n[n.length-1];return p!==h&&(p&&a.push(p),h&&a.push(h)),a}function ge(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e+1}function ve(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ye(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ve(Object(r),!0).forEach((function(t){be(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ve(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function be(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function me(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:he(e.dirtyHandlerIds,{type:t.type,payload:ye(ye({},t.payload),{},{prevTargetIds:g(e,"dragOperation.targetIds",[])})}),dragOffset:ee(e.dragOffset,t),refCount:le(e.refCount,t),dragOperation:ce(e.dragOperation,t),stateId:ge(e.stateId)}}function we(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Oe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}fe.__IS_NONE__=!0,de.__IS_ALL__=!0;var Se,ke=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t,this.registry=r}var t,r,n;return t=e,(r=[{key:"subscribeToStateChange",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0},n=r.handlerIds;(0,a.k)("function"==typeof e,"listener must be a function."),(0,a.k)(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");var o=this.store.getState().stateId,i=function(){var r=t.store.getState(),i=r.stateId;try{i===o||i===o+1&&!pe(r.dirtyHandlerIds,n)||e()}finally{o=i}};return this.store.subscribe(i)}},{key:"subscribeToOffsetChange",value:function(e){var t=this;(0,a.k)("function"==typeof e,"listener must be a function.");var r=this.store.getState().dragOffset;return this.store.subscribe((function(){var n=t.store.getState().dragOffset;n!==r&&(r=n,e())}))}},{key:"canDragSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e);return(0,a.k)(t,"Expected to find a valid source. sourceId=".concat(e)),!this.isDragging()&&t.canDrag(this,e)}},{key:"canDropOnTarget",value:function(e){if(!e)return!1;var t=this.registry.getTarget(e);return(0,a.k)(t,"Expected to find a valid target. targetId=".concat(e)),!(!this.isDragging()||this.didDrop())&&I(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e,!0);return(0,a.k)(t,"Expected to find a valid source. sourceId=".concat(e)),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}},{key:"isOverTarget",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1};if(!e)return!1;var r=t.shallow;if(!this.isDragging())return!1;var n=this.registry.getTargetType(e),o=this.getItemType();if(o&&!I(n,o))return!1;var i=this.getTargetIds();if(!i.length)return!1;var a=i.indexOf(e);return r?a===i.length-1:a>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return e=this.store.getState().dragOffset,n=e.clientOffset,o=e.initialClientOffset,i=e.initialSourceClientOffset,n&&o&&i?we((r=i,{x:(t=n).x+r.x,y:t.y+r.y}),o):null;var e,t,r,n,o,i}},{key:"getDifferenceFromInitialOffset",value:function(){return e=this.store.getState().dragOffset,t=e.clientOffset,r=e.initialClientOffset,t&&r?we(t,r):null;var e,t,r}}])&&Oe(t.prototype,r),n&&Oe(t,n),e}(),De=0;function Te(e){return(Te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ie(e,t){t&&Array.isArray(e)?e.forEach((function(e){return Ie(e,!1)})):(0,a.k)("string"==typeof e||"symbol"===Te(e),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}function Ee(e){xe.length||(Ce(),!0),xe[xe.length]=e}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(Se||(Se={}));var Ce,xe=[],Pe=0;function je(){for(;Pe<xe.length;){var e=Pe;if(Pe+=1,xe[e].call(),Pe>1024){for(var t=0,r=xe.length-Pe;t<r;t++)xe[t]=xe[t+Pe];xe.length-=Pe,Pe=0}}xe.length=0,Pe=0,!1}var _e,Me,Ne,Ae=void 0!==r.g?r.g:self,Re=Ae.MutationObserver||Ae.WebKitMutationObserver;function Le(e){return function(){var t=setTimeout(n,0),r=setInterval(n,50);function n(){clearTimeout(t),clearInterval(r),e()}}}"function"==typeof Re?(_e=1,Me=new Re(je),Ne=document.createTextNode(""),Me.observe(Ne,{characterData:!0}),Ce=function(){_e=-_e,Ne.data=_e}):Ce=Le(je),Ee.requestFlush=Ce,Ee.makeRequestCallFromTimer=Le;var Ue=[],He=[],Fe=Ee.makeRequestCallFromTimer((function(){if(He.length)throw He.shift()}));function Be(e){var t;(t=Ue.length?Ue.pop():new We).task=e,Ee(t)}var We=function(){function e(){}return e.prototype.call=function(){try{this.task.call()}catch(e){Be.onerror?Be.onerror(e):(He.push(e),Fe())}finally{this.task=null,Ue[Ue.length]=this}},e}();function $e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ye(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return qe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qe(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ge(e){var t=(De++).toString();switch(e){case Se.SOURCE:return"S".concat(t);case Se.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}function Ke(e){switch(e[0]){case"S":return Se.SOURCE;case"T":return Se.TARGET;default:(0,a.k)(!1,"Cannot parse handler ID: ".concat(e))}}function Xe(e,t){var r=e.entries(),n=!1;do{var o=r.next(),i=o.done;if(Ye(o.value,2)[1]===t)return!0;n=!!i}while(!n);return!1}var Ze=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}var t,r,n;return t=e,(r=[{key:"addSource",value:function(e,t){Ie(e),function(e){(0,a.k)("function"==typeof e.canDrag,"Expected canDrag to be a function."),(0,a.k)("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),(0,a.k)("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);var r=this.addHandler(Se.SOURCE,e,t);return this.store.dispatch(function(e){return{type:te,payload:{sourceId:e}}}(r)),r}},{key:"addTarget",value:function(e,t){Ie(e,!0),function(e){(0,a.k)("function"==typeof e.canDrop,"Expected canDrop to be a function."),(0,a.k)("function"==typeof e.hover,"Expected hover to be a function."),(0,a.k)("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);var r=this.addHandler(Se.TARGET,e,t);return this.store.dispatch(function(e){return{type:re,payload:{targetId:e}}}(r)),r}},{key:"containsHandler",value:function(e){return Xe(this.dragSources,e)||Xe(this.dropTargets,e)}},{key:"getSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,a.k)(this.isSourceId(e),"Expected a valid source ID.");var r=t&&e===this.pinnedSourceId,n=r?this.pinnedSource:this.dragSources.get(e);return n}},{key:"getTarget",value:function(e){return(0,a.k)(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}},{key:"getSourceType",value:function(e){return(0,a.k)(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}},{key:"getTargetType",value:function(e){return(0,a.k)(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}},{key:"isSourceId",value:function(e){return Ke(e)===Se.SOURCE}},{key:"isTargetId",value:function(e){return Ke(e)===Se.TARGET}},{key:"removeSource",value:function(e){var t=this;(0,a.k)(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:ne,payload:{sourceId:e}}}(e)),Be((function(){t.dragSources.delete(e),t.types.delete(e)}))}},{key:"removeTarget",value:function(e){(0,a.k)(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:oe,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}},{key:"pinSource",value:function(e){var t=this.getSource(e);(0,a.k)(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}},{key:"unpinSource",value:function(){(0,a.k)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(e,t,r){var n=Ge(e);return this.types.set(n,t),e===Se.SOURCE?this.dragSources.set(n,r):e===Se.TARGET&&this.dropTargets.set(n,r),n}}])&&$e(t.prototype,r),n&&$e(t,n),e}();function ze(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=Ve(n),i=new ke(o,new Ze(o)),a=new B(o,i),u=e(a,t,r);return a.receiveBackend(u),a}function Ve(e){var t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return G(me,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}var Je=r(4566);function Qe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return et(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return et(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function et(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function tt(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var rt=0,nt=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),ot=(0,o.memo)((function(e){var t=e.children,r=Qe(function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:it(),r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,o=t;o[nt]||(o[nt]={dragDropManager:ze(e,t,r,n)});return o[nt]}(e.backend,e.context,e.options,e.debugMode),r=!e.context;return[t,r]}(tt(e,["children"])),2),n=r[0],a=r[1];return(0,o.useEffect)((function(){if(a){var e=it();return++rt,function(){0==--rt&&(e[nt]=null)}}}),[]),(0,i.jsx)(Je.L.Provider,Object.assign({value:n},{children:t}),void 0)}));function it(){return void 0!==r.g?r.g:window}function at(){return(at=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ut(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return st(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return st(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function st(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ct(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var lt=(0,o.createContext)(null),ft=function(e){var t=e.portal,r=ct(e,["portal"]),i=ut((0,o.useState)(null),2),a=i[0],u=i[1];return o.createElement(lt.Provider,{value:null!=t?t:a},o.createElement(ot,at({backend:n.Am},r)),t?null:o.createElement("div",{ref:u}))},dt=r(3935);var pt=r(4063),ht=r.n(pt),gt="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;function vt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return yt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function bt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return mt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function wt(e){var t=function(){var e=(0,o.useContext)(Je.L).dragDropManager;return(0,a.k)(null!=e,"Expected drag drop context"),e}().getMonitor(),r=bt(function(e,t,r){var n=vt((0,o.useState)((function(){return t(e)})),2),i=n[0],a=n[1],u=(0,o.useCallback)((function(){var n=t(e);ht()(i,n)||(a(n),r&&r())}),[i,e,r]);return gt(u),[i,u]}(t,e),2),n=r[0],i=r[1];return(0,o.useEffect)((function(){return t.subscribeToOffsetChange(i)})),(0,o.useEffect)((function(){return t.subscribeToStateChange(i)})),n}var Ot=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},St=function(e,t){var r=e.getClientOffset();if(null===r)return null;if(!t.current||!t.current.getBoundingClientRect)return Ot(r,function(e){var t=e.getInitialClientOffset(),r=e.getInitialSourceClientOffset();return null===t||null===r?{x:0,y:0}:Ot(t,r)}(e));var n=t.current.getBoundingClientRect(),o={x:n.width/2,y:n.height/2};return Ot(r,o)},kt=(0,o.createContext)(void 0);function Dt(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Tt=function(e){var t=function(){var e,t,r=(0,o.useRef)(void 0),n=wt((function(e){return{currentOffset:St(e,r),isDragging:e.isDragging(),itemType:e.getItemType(),item:e.getItem(),monitor:e}}));return n.isDragging&&null!==n.currentOffset?{display:!0,itemType:n.itemType,item:n.item,style:(e=n.currentOffset,t="translate(".concat(e.x,"px, ").concat(e.y,"px)"),{pointerEvents:"none",position:"fixed",top:0,left:0,transform:t,WebkitTransform:t}),monitor:n.monitor,ref:r}:{display:!1}}();if(!t.display)return null;t.display;var r,n=Dt(t,["display"]);return r="children"in e&&"function"==typeof e.children?e.children(n):"children"in e?e.children:e.generator(n),o.createElement(kt.Provider,{value:n},r)};function It(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Et(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Et(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Et(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}(function(e){var t=function(){var e=It((0,o.useState)(!1),2),t=e[0],r=e[1],n=(0,o.useContext)(Je.L);return(0,o.useEffect)((function(){var e,t=null==n||null===(e=n.dragDropManager)||void 0===e?void 0:e.getBackend(),o={backendChanged:function(e){r(e.previewEnabled())}};return r(t.previewEnabled()),t.previewsList().register(o),function(){t.previewsList().unregister(o)}}),[n,n.dragDropManager]),t}(),r=(0,o.useContext)(lt);if(!t)return null;var n=o.createElement(Tt,e);return null!==r?(0,dt.createPortal)(n,r):n}).Context=kt},4566:(e,t,r)=>{"use strict";r.d(t,{L:()=>n});var n=(0,r(7294).createContext)({dragDropManager:void 0})},6436:(e,t,r)=>{"use strict";r.d(t,{E:()=>O});var n=r(8195),o=r(898),i=r(1618),a=r(5047);function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var s=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=(0,o.p)({dragSource:function(e,t){r.clearDragSource(),r.dragSourceOptions=t||null,(0,i.d)(e)?r.dragSourceRef=e:r.dragSourceNode=e,r.reconnectDragSource()},dragPreview:function(e,t){r.clearDragPreview(),r.dragPreviewOptions=t||null,(0,i.d)(e)?r.dragPreviewRef=e:r.dragPreviewNode=e,r.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}var t,r,n;return t=e,(r=[{key:"receiveHandlerId",value:function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();t&&this.disconnectDragSource(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)):this.lastConnectedDragSource=e)}},{key:"reconnectDragPreview",value:function(){var e=this.dragPreview,t=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();t&&this.disconnectDragPreview(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=e,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,e,this.dragPreviewOptions)):this.lastConnectedDragPreview=e)}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!(0,a.w)(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!(0,a.w)(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}}])&&u(t.prototype,r),n&&u(t,n),e}();function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var l=!1,f=!1,d=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourceId=null,this.internalMonitor=t.getMonitor()}var t,r,o;return t=e,(r=[{key:"receiveHandlerId",value:function(e){this.sourceId=e}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){(0,n.k)(!l,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return l=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{l=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;(0,n.k)(!f,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return f=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{f=!1}}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"isDraggingSource",value:function(e){return this.internalMonitor.isDraggingSource(e)}},{key:"isOverTarget",value:function(e,t){return this.internalMonitor.isOverTarget(e,t)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(e){return this.internalMonitor.subscribeToOffsetChange(e)}},{key:"canDragSource",value:function(e){return this.internalMonitor.canDragSource(e)}},{key:"canDropOnTarget",value:function(e){return this.internalMonitor.canDropOnTarget(e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&c(t.prototype,r),o&&c(t,o),e}(),p=r(5934),h=r(9396),g=r(14);function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var y=["canDrag","beginDrag","isDragging","endDrag"],b=["beginDrag"],m=function(){function e(t,r,n){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.props=null,this.beginDrag=function(){if(o.props)return o.spec.beginDrag(o.props,o.monitor,o.ref.current)},this.spec=t,this.monitor=r,this.ref=n}var t,r,n;return t=e,(r=[{key:"receiveProps",value:function(e){this.props=e}},{key:"canDrag",value:function(){return!!this.props&&(!this.spec.canDrag||this.spec.canDrag(this.props,this.monitor))}},{key:"isDragging",value:function(e,t){return!!this.props&&(this.spec.isDragging?this.spec.isDragging(this.props,this.monitor):t===e.getSourceId())}},{key:"endDrag",value:function(){this.props&&this.spec.endDrag&&this.spec.endDrag(this.props,this.monitor,(0,h.Al)(this.ref))}}])&&v(t.prototype,r),n&&v(t,n),e}();function w(e){return Object.keys(e).forEach((function(t){(0,n.k)(y.indexOf(t)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',y.join(", "),t),(0,n.k)("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),b.forEach((function(t){(0,n.k)("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),function(t,r){return new m(e,t,r)}}function O(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};(0,h.U9)("DragSource","type, spec, collect[, options]",e,t,r,o);var i=e;"function"!=typeof e&&((0,n.k)((0,h.m5)(e),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',e),i=function(){return e}),(0,n.k)((0,h.PO)(t),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',t);var a=w(t);return(0,n.k)("function"==typeof r,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',r),(0,n.k)((0,h.PO)(o),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',r),function(e){return(0,g.K)({containerDisplayName:"DragSource",createHandler:a,registerHandler:p.w,createConnector:function(e){return new s(e)},createMonitor:function(e){return new d(e)},DecoratedComponent:e,getType:i,collect:r,options:o})}}},4387:(e,t,r)=>{"use strict";r.d(t,{G:()=>m});var n=r(8195);function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var i=!1,a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.targetId=null,this.internalMonitor=t.getMonitor()}var t,r,a;return t=e,(r=[{key:"receiveHandlerId",value:function(e){this.targetId=e}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;(0,n.k)(!i,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return i=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{i=!1}}},{key:"isOver",value:function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&o(t.prototype,r),a&&o(t,a),e}(),u=r(5047),s=r(898),c=r(1618);function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var f=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=(0,s.p)({dropTarget:function(e,t){r.clearDropTarget(),r.dropTargetOptions=t,(0,c.d)(e)?r.dropTargetRef=e:r.dropTargetNode=e,r.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}var t,r,n;return t=e,(r=[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"reconnect",value:function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}},{key:"receiveHandlerId",value:function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!(0,u.w)(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}}])&&l(t.prototype,r),n&&l(t,n),e}(),d=r(5934),p=r(9396),h=r(14);function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var v=["canDrop","hover","drop"],y=function(){function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.props=null,this.spec=t,this.monitor=r,this.ref=n}var t,r,n;return t=e,(r=[{key:"receiveProps",value:function(e){this.props=e}},{key:"receiveMonitor",value:function(e){this.monitor=e}},{key:"canDrop",value:function(){return!this.spec.canDrop||this.spec.canDrop(this.props,this.monitor)}},{key:"hover",value:function(){this.spec.hover&&this.props&&this.spec.hover(this.props,this.monitor,(0,p.Al)(this.ref))}},{key:"drop",value:function(){if(this.spec.drop)return this.spec.drop(this.props,this.monitor,this.ref.current)}}])&&g(t.prototype,r),n&&g(t,n),e}();function b(e){return Object.keys(e).forEach((function(t){(0,n.k)(v.indexOf(t)>-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',v.join(", "),t),(0,n.k)("function"==typeof e[t],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",t,t,e[t])})),function(t,r){return new y(e,t,r)}}function m(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};(0,p.U9)("DropTarget","type, spec, collect[, options]",e,t,r,o);var i=e;"function"!=typeof e&&((0,n.k)((0,p.m5)(e,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',e),i=function(){return e}),(0,n.k)((0,p.PO)(t),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',t);var u=b(t);return(0,n.k)("function"==typeof r,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',r),(0,n.k)((0,p.PO)(o),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',r),function(e){return(0,h.K)({containerDisplayName:"DropTarget",createHandler:u,registerHandler:d.n,createMonitor:function(e){return new a(e)},createConnector:function(e){return new f(e)},DecoratedComponent:e,getType:i,collect:r,options:o})}}},14:(e,t,r)=>{"use strict";r.d(t,{K:()=>T});var n=r(5893),o=r(7294),i=r(5047),a=r(8195),u=r(4566),s=r(9396);function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t,r){return t&&l(e.prototype,t),r&&l(e,r),e}var d=function(){function e(t){c(this,e),this.isDisposed=!1,this.action=(0,s.mf)(t)?t:s.ZT}return f(e,[{key:"dispose",value:function(){this.isDisposed||(this.action(),this.isDisposed=!0)}}],[{key:"isDisposable",value:function(e){return Boolean(e&&(0,s.mf)(e.dispose))}},{key:"_fixup",value:function(t){return e.isDisposable(t)?t:e.empty}},{key:"create",value:function(t){return new e(t)}}]),e}();d.empty={dispose:s.ZT};var p=function(){function e(){c(this,e),this.isDisposed=!1;for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];this.disposables=r}return f(e,[{key:"add",value:function(e){this.isDisposed?e.dispose():this.disposables.push(e)}},{key:"remove",value:function(e){var t=!1;if(!this.isDisposed){var r=this.disposables.indexOf(e);-1!==r&&(t=!0,this.disposables.splice(r,1),e.dispose())}return t}},{key:"clear",value:function(){if(!this.isDisposed){for(var e=this.disposables.length,t=new Array(e),r=0;r<e;r++)t[r]=this.disposables[r];this.disposables=[];for(var n=0;n<e;n++)t[n].dispose()}}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;for(var e=this.disposables.length,t=new Array(e),r=0;r<e;r++)t[r]=this.disposables[r];this.disposables=[];for(var n=0;n<e;n++)t[n].dispose()}}}]),e}(),h=function(){function e(){c(this,e),this.isDisposed=!1}return f(e,[{key:"getDisposable",value:function(){return this.current}},{key:"setDisposable",value:function(e){var t=this.isDisposed;if(!t){var r=this.current;this.current=e,r&&r.dispose()}t&&e&&e.dispose()}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=void 0,e&&e.dispose()}}}]),e}(),g=r(8679),v=r.n(g);function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=D(e);if(t){var o=D(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return k(this,r)}}function k(e,t){return!t||"object"!==y(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function D(e){return(D=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function T(e){var t=e.DecoratedComponent,r=e.createHandler,c=e.createMonitor,l=e.createConnector,f=e.registerHandler,g=e.containerDisplayName,y=e.getType,m=e.collect,k=e.options.arePropsEqual,D=void 0===k?i.w:k,T=t,I=t.displayName||t.name||"Component",E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}(E,e);var t,g,v,k=S(E);function E(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,E),(t=k.call(this,e)).decoratedRef=(0,o.createRef)(),t.handleChange=function(){var e=t.getCurrentState();(0,i.w)(e,t.state)||t.setState(e)},t.disposable=new h,t.receiveProps(e),t.dispose(),t}return t=E,(g=[{key:"getHandlerId",value:function(){return this.handlerId}},{key:"getDecoratedComponentInstance",value:function(){return(0,a.k)(this.decoratedRef.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.decoratedRef.current}},{key:"shouldComponentUpdate",value:function(e,t){return!D(e,this.props)||!(0,i.w)(t,this.state)}},{key:"componentDidMount",value:function(){this.disposable=new h,this.currentType=void 0,this.receiveProps(this.props),this.handleChange()}},{key:"componentDidUpdate",value:function(e){D(this.props,e)||(this.receiveProps(this.props),this.handleChange())}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"receiveProps",value:function(e){this.handler&&(this.handler.receiveProps(e),this.receiveType(y(e)))}},{key:"receiveType",value:function(e){if(this.handlerMonitor&&this.manager&&this.handlerConnector&&e!==this.currentType){this.currentType=e;var t=b(f(e,this.handler,this.manager),2),r=t[0],n=t[1];this.handlerId=r,this.handlerMonitor.receiveHandlerId(r),this.handlerConnector.receiveHandlerId(r);var o=this.manager.getMonitor().subscribeToStateChange(this.handleChange,{handlerIds:[r]});this.disposable.setDisposable(new p(new d(o),new d(n)))}}},{key:"dispose",value:function(){this.disposable.dispose(),this.handlerConnector&&this.handlerConnector.receiveHandlerId(null)}},{key:"getCurrentState",value:function(){return this.handlerConnector?m(this.handlerConnector.hooks,this.handlerMonitor,this.props):{}}},{key:"render",value:function(){var e=this;return(0,n.jsx)(u.L.Consumer,{children:function(t){var r=t.dragDropManager;return e.receiveDragDropManager(r),"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame((function(){var t;return null===(t=e.handlerConnector)||void 0===t?void 0:t.reconnect()})),(0,n.jsx)(T,Object.assign({},e.props,e.getCurrentState(),{ref:(0,s.J7)(T)?e.decoratedRef:null}),void 0)}},void 0)}},{key:"receiveDragDropManager",value:function(e){void 0===this.manager&&((0,a.k)(void 0!==e,"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",I,I),void 0!==e&&(this.manager=e,this.handlerMonitor=c(e),this.handlerConnector=l(e.getBackend()),this.handler=r(this.handlerMonitor,this.decoratedRef)))}}])&&w(t.prototype,g),v&&w(t,v),E}(o.Component);return E.DecoratedComponent=t,E.displayName="".concat(g,"(").concat(I,")"),v()(E,t)}},9396:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){var t=e.current;return null==t?null:t.decoratedRef?t.decoratedRef.current:t}function i(e){return(t=e)&&t.prototype&&"function"==typeof t.prototype.render||function(e){var t,r=e;return"Symbol(react.forward_ref)"===(null==r||null===(t=r.$$typeof)||void 0===t?void 0:t.toString())}(e);var t}function a(e,t){}function u(e){return"function"==typeof e}function s(){}function c(e){if(!function(e){return"object"===n(e)&&null!==e}(e))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function l(e,t){return"string"==typeof e||"symbol"===n(e)||!!t&&Array.isArray(e)&&e.every((function(e){return l(e,!1)}))}r.d(t,{Al:()=>o,J7:()=>i,U9:()=>a,mf:()=>u,ZT:()=>s,PO:()=>c,m5:()=>l})},1618:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return null!==e&&"object"===n(e)&&Object.prototype.hasOwnProperty.call(e,"current")}r.d(t,{d:()=>o})},5934:(e,t,r)=>{"use strict";function n(e,t,r){var n=r.getRegistry(),o=n.addTarget(e,t);return[o,function(){return n.removeTarget(o)}]}function o(e,t,r){var n=r.getRegistry(),o=n.addSource(e,t);return[o,function(){return n.removeSource(o)}]}r.d(t,{n:()=>n,w:()=>o})},898:(e,t,r)=>{"use strict";r.d(t,{p:()=>a});var n=r(8195),o=r(7294);function i(e){if("string"!=typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(t," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}function a(e){var t={};return Object.keys(e).forEach((function(r){var n=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{var a=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(0,o.isValidElement)(t)){var n=t;return e(n,r),n}var a=t;return i(a),s(a,r?function(t){return e(t,r)}:e)}}(n);t[r]=function(){return a}}})),t}function u(e,t){"function"==typeof e?e(t):e.current=t}function s(e,t){var r=e.ref;return(0,n.k)("string"!=typeof r,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),r?(0,o.cloneElement)(e,{ref:function(e){u(r,e),u(t,e)}}):(0,o.cloneElement)(e,{ref:t})}},3337:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(7294);const o=function(e,t){var r=(0,n.useRef)((function(){}));(0,n.useEffect)((function(){r.current=e})),(0,n.useEffect)((function(){if(null!==t){var e=setInterval((function(){return r.current()}),t||0);return function(){return clearInterval(e)}}}),[t])}},7121:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n}),e=r.hmd(e);const n=function(e){var t,r=e.Symbol;return"function"==typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r.g?r.g:e)}}]);
|