@abtnode/webapp 1.16.28 → 1.16.29-beta-e04c6f40
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/blocklet.js +1 -1
- package/blocklet.yml +1 -1
- package/dist/assets/{Add-B8Ae2MjM.js → Add-xExgHDod.js} +1 -1
- package/dist/assets/{ArrowDropDown-BNt-WuI3.js → ArrowDropDown-KUzipi3t.js} +1 -1
- package/dist/assets/{Autocomplete-Bo6UH2XL.js → Autocomplete-Er311sva.js} +1 -1
- package/dist/assets/{Breadcrumbs-CkmMkQDW.js → Breadcrumbs-Pqx4il3S.js} +1 -1
- package/dist/assets/{ButtonGroup-OcQcEz6r.js → ButtonGroup-BcupcRIM.js} +1 -1
- package/dist/assets/{CheckCircle-BnRenrK4.js → CheckCircle-zUiCwNZs.js} +1 -1
- package/dist/assets/{ChevronLeft-Dp9aa91c.js → ChevronLeft-Bet4yQzf.js} +1 -1
- package/dist/assets/{ChevronRight-C3NPaw6o.js → ChevronRight-DVus-Y96.js} +1 -1
- package/dist/assets/{Close-Cbaq-RRq.js → Close-O3YNtovt.js} +1 -1
- package/dist/assets/Delete-DOCRW1Ln.js +1 -0
- package/dist/assets/{DeleteOutline-B4LqoCK2.js → DeleteOutline-CUojn4xn.js} +1 -1
- package/dist/assets/{Done-BCLH1e-Y.js → Done-BbWcazKr.js} +1 -1
- package/dist/assets/{Edit-i_Bman7K.js → Edit-BhCFwv7o.js} +1 -1
- package/dist/assets/{EditIcon-DmNEjmIQ.js → EditIcon-CERx0ivQ.js} +1 -1
- package/dist/assets/{FilterList-fpG1-3KQ.js → FilterList-BRYDdfFq.js} +4 -4
- package/dist/assets/{Google-DLkd6TAZ.js → Google-CdmAvvA5.js} +3 -3
- package/dist/assets/{Https-amCzjB1a.js → Https-D3zQe1g3.js} +1 -1
- package/dist/assets/{InputAdornment-C6LFxcti.js → InputAdornment-CiVUPEjM.js} +1 -1
- package/dist/assets/{InputLabel-avYwCvJM.js → InputLabel-Cl0jKlH9.js} +1 -1
- package/dist/assets/{LastPage-DnBOlrut.js → LastPage-DIXa5YVo.js} +1 -1
- package/dist/assets/{Launch-DPclIZbd.js → Launch-u57ssxVt.js} +1 -1
- package/dist/assets/{Link-DfSEdivF.js → Link-8ntBDNt-.js} +1 -1
- package/dist/assets/{LoadingButton-xveWP_M5.js → LoadingButton-BhxaC5Ed.js} +1 -1
- package/dist/assets/{LockIcon-9c7sG23a.js → LockIcon-CkFf2isB.js} +1 -1
- package/dist/assets/{Loop-DwAWKPvc.js → Loop-BnL-Vxc4.js} +1 -1
- package/dist/assets/{MoreVert-Nc1QBj2D.js → MoreVert-LBoMA9yq.js} +1 -1
- package/dist/assets/{Pagination-D5t0OCBH.js → Pagination-B0vuu0Jz.js} +1 -1
- package/dist/assets/{Public-BLh26Bb9.js → Public-BPRyPUP1.js} +1 -1
- package/dist/assets/{SchemaReference.es--oFfd0mm.js → SchemaReference.es-Cw9PnK9u.js} +1 -1
- package/dist/assets/{Search-DnnCUnjB.js → Search-DoXY8XQp.js} +1 -1
- package/dist/assets/{Select-CBA-xyOJ.js → Select-CSRNZbOq.js} +2 -2
- package/dist/assets/{Skeleton-CQPjJHp3.js → Skeleton-CZxXS4jE.js} +5 -5
- package/dist/assets/{Slider-Bdpm9oO4.js → Slider-BcITXKtu.js} +1 -1
- package/dist/assets/{Stepper-UEQaZPW7.js → Stepper-mccJibcr.js} +1 -1
- package/dist/assets/TextField-HCXJkIb-.js +1 -0
- package/dist/assets/{ToggleButtonGroup-Drarswgi.js → ToggleButtonGroup-DNi-APKM.js} +1 -1
- package/dist/assets/{ViewList-CoYI2XgO.js → ViewList-B0D9uEjF.js} +1 -1
- package/dist/assets/{actions-BAUfPsQv.js → actions-CAskIzvr.js} +1 -1
- package/dist/assets/actions-Cs-U54uv.js +11 -0
- package/dist/assets/{agreement-_qYynElX.js → agreement-Dqwk0Qk1.js} +3 -3
- package/dist/assets/api-UGqvGbaE.js +1 -0
- package/dist/assets/app-avatar-DnQtdz_O.js +1 -0
- package/dist/assets/ar-DDqDOM6_.js +1 -0
- package/dist/assets/{audit-logs-BqT_1MLt.js → audit-logs-elaTyIYr.js} +1 -1
- package/dist/assets/{brace-fold.es-CkrKXotH.js → brace-fold.es-CHAwFrP-.js} +1 -1
- package/dist/assets/{bundle-avatar-RiFaz1Hb.js → bundle-avatar-DQKqTcLf.js} +1 -1
- package/dist/assets/{chart-Cinf5zq_.js → chart-B4WtoTol.js} +1 -1
- package/dist/assets/{click-to-copy-Bj13kdln.js → click-to-copy-BxTGXnkW.js} +1 -1
- package/dist/assets/{closebrackets.es-C32XuxI5.js → closebrackets.es-Cowrx9Wh.js} +1 -1
- package/dist/assets/{codemirror.es-oms3GpFv.js → codemirror.es-DDaWBk7v.js} +1 -1
- package/dist/assets/{comment.es-AVZXTIDr.js → comment.es-BpMZ3nSF.js} +1 -1
- package/dist/assets/config-navigation-mgsMFCq0.js +25 -0
- package/dist/assets/de-Df9PmQSL.js +1 -0
- package/dist/assets/delete-confirm-G3-jMPGR.js +1 -0
- package/dist/assets/{detail-CHKmnQLc.js → detail-BBKDt7TH.js} +3 -3
- package/dist/assets/{dialog.es-DHZdXjGS.js → dialog.es-CRh6VOLz.js} +1 -1
- package/dist/assets/{download-DFPnF7mz.js → download-BK5ocL5s.js} +1 -1
- package/dist/assets/es-BQD9zWi-.js +1 -0
- package/dist/assets/{foldgutter.es-CSicbQSJ.js → foldgutter.es-CHLe3IFg.js} +1 -1
- package/dist/assets/fr-DNx2OQyQ.js +1 -0
- package/dist/assets/getValidReactChildren-C2KGwF2r.js +1 -0
- package/dist/assets/hi-BmEkoTIE.js +1 -0
- package/dist/assets/{hint.es-DAEQ9N76.js → hint.es-qHNwvQXY.js} +1 -1
- package/dist/assets/{hint.es2-DYXluLKu.js → hint.es2-DRHlNN6z.js} +1 -1
- package/dist/assets/id-DXu5sStK.js +1 -0
- package/dist/assets/{iframe-DwuYX0Xq.js → iframe-D-PNyLg3.js} +1 -1
- package/dist/assets/{index-B60jROHj.js → index-3ruoHhFa.js} +26 -26
- package/dist/assets/{index-zFXZLqso.js → index-3sl31tmo.js} +2 -2
- package/dist/assets/{index-CZKHzmkC.js → index-B1h0P1L0.js} +1 -1
- package/dist/assets/index-B1yKtvhn.js +54 -0
- package/dist/assets/{index-BbS1Wq4p.js → index-B6HWus5t.js} +1 -1
- package/dist/assets/{index-baq8DMtQ.js → index-BhwGm9ir.js} +9 -9
- package/dist/assets/{index-DKkTRBZn.js → index-BlSaylBC.js} +4 -4
- package/dist/assets/{index-DOsg2sHH.js → index-Boc7heJK.js} +1 -1
- package/dist/assets/{index-cmiUur_8.js → index-Boe-4fof.js} +1 -1
- package/dist/assets/{index-CiZAReVP.js → index-Br7MMAwb.js} +1 -1
- package/dist/assets/{index-ZQu91rXz.js → index-Bt8_a71i.js} +1 -1
- package/dist/assets/{index-BVznp3M0.js → index-C4esebAE.js} +1 -1
- package/dist/assets/{index-BbW2IRRR.js → index-C5c3sxc7.js} +3 -3
- package/dist/assets/{index-0RUAEm49.js → index-C7piHvhS.js} +2 -2
- package/dist/assets/{index-BKi0XLcv.js → index-C8OOX63T.js} +1 -1
- package/dist/assets/{index-DfNh08gP.js → index-CAP7ccf-.js} +3 -3
- package/dist/assets/{index-Cl2QG8J6.js → index-CCMFLAjE.js} +16 -16
- package/dist/assets/{index-CKOyruf_.js → index-CGedY69r.js} +2 -2
- package/dist/assets/{index-ByF3apMm.js → index-CI3-G8f5.js} +3 -3
- package/dist/assets/{index-9R6mPPbN.js → index-CMw6A55r.js} +1 -1
- package/dist/assets/index-COVe-oac.js +1 -0
- package/dist/assets/{index-D5MDxbqt.js → index-CTWxKp8R.js} +1 -1
- package/dist/assets/{index-DHYJxTcV.js → index-CU4Kco8M.js} +57 -57
- package/dist/assets/{index-DrWhB0MJ.js → index-CfjU2vkP.js} +1 -1
- package/dist/assets/{index-BBnT5XB9.js → index-Cjw9QiwF.js} +1 -1
- package/dist/assets/{index-CyYUysSv.js → index-CpWB9aT7.js} +1 -1
- package/dist/assets/{index-CIbzY-F7.js → index-CsGASsXO.js} +1 -1
- package/dist/assets/{index-v2cqn0eS.js → index-CuZgQfxG.js} +1 -1
- package/dist/assets/{index-BnFWpIPQ.js → index-Cx08Fq4-.js} +1 -1
- package/dist/assets/{index-CHjwpGia.js → index-D0mxQWU5.js} +7 -7
- package/dist/assets/{index-DSByvARI.js → index-DHWCojAQ.js} +1 -1
- package/dist/assets/{index-DcU_Cijj.js → index-DIJ53y8c.js} +1 -1
- package/dist/assets/index-DIbFXQTV.js +1 -0
- package/dist/assets/{index-7J6TijHC.js → index-Dkkm6kzm.js} +1 -1
- package/dist/assets/{index-rPqHtLu4.js → index-Dw9clXjq.js} +1 -1
- package/dist/assets/{index-CucnV9EX.js → index-DzW0Cxov.js} +25 -25
- package/dist/assets/index-LlxzMpy3.js +231 -0
- package/dist/assets/{index-DV2quTIn.js → index-M5WcRzZV.js} +1 -1
- package/dist/assets/index-P1GJ1Y4T.js +177 -0
- package/dist/assets/{index-CqcpZ8C3.js → index-Pf5VRxU2.js} +174 -210
- package/dist/assets/{index-CtzAe2AR.js → index-RQQsaMDK.js} +1 -1
- package/dist/assets/{index-DPx9NPlp.js → index-_RvLZsys.js} +1 -1
- package/dist/assets/index-hFhjFjqL.js +58 -0
- package/dist/assets/{index-ECk6dODK.js → index-y8_7sFXl.js} +10 -10
- package/dist/assets/{index.es-Dkh9ejMp.js → index.es-0GspS0hl.js} +1 -1
- package/dist/assets/{index.esm-Hqw0Nfnx.js → index.esm-CJT_Vb_Y.js} +1 -1
- package/dist/assets/{info-addon.es-5NmROke-.js → info-addon.es-BvWPiOWh.js} +1 -1
- package/dist/assets/{info.es-CsELEfUv.js → info.es-D6grONEz.js} +1 -1
- package/dist/assets/{install-from-url-DXGlT7R8.js → install-from-url-CLk48T0_.js} +1 -1
- package/dist/assets/invitation-4W3IOdXy.js +200 -0
- package/dist/assets/{is-path-prefix-equal-CoJozASB.js → is-path-prefix-equal-DQciVrFn.js} +1 -1
- package/dist/assets/{isEqual-BLnnfE4T.js → isEqual-C5Iu_kl-.js} +1 -1
- package/dist/assets/{item-tD3jAfba.js → item-C9bzNYRu.js} +31 -31
- package/dist/assets/ja-thyFR9rH.js +1 -0
- package/dist/assets/{javascript.es-BIUhEWTj.js → javascript.es-CWlPpygW.js} +1 -1
- package/dist/assets/{jump-to-line.es-BQjWkUgo.js → jump-to-line.es-D7dd2At6.js} +1 -1
- package/dist/assets/{jump.es-D8ZxFsmc.js → jump.es-WtAW-Ijf.js} +1 -1
- package/dist/assets/ko-BJSWgMML.js +1 -0
- package/dist/assets/{line-DW0juCGB.js → line-Cfyg0g9I.js} +4 -4
- package/dist/assets/{lint.es-Dv2pWRyz.js → lint.es-aUUps1ME.js} +1 -1
- package/dist/assets/{lint.es2-CqGQ_rnk.js → lint.es2-CDvv_d9A.js} +1 -1
- package/dist/assets/{lint.es3-g58ofVJA.js → lint.es3-DTrQmP6j.js} +1 -1
- package/dist/assets/{list-header-tjKXNgOR.js → list-header-BG2QMZZz.js} +1 -1
- package/dist/assets/{log-BFiA_Tyh.js → log-DIJPVIRP.js} +1 -1
- package/dist/assets/{lottie-yeTV0Y2m.js → lottie-BkwIvhEu.js} +1 -1
- package/dist/assets/{matchbrackets.es-B-Xj5H9Q.js → matchbrackets.es-CCjeMHPP.js} +1 -1
- package/dist/assets/{memory-C7a59RsU.js → memory-CYabGN8q.js} +1 -1
- package/dist/assets/{mode.es-BSNxo6gK.js → mode.es-kZQjUXx0.js} +1 -1
- package/dist/assets/{mode.es2-C1LDwVOl.js → mode.es2-hCaXf0ad.js} +1 -1
- package/dist/assets/{mode.es3-C6-ZTyOk.js → mode.es3-DlVh9_RV.js} +1 -1
- package/dist/assets/{onlineParser.es-BzK7GlZv.js → onlineParser.es-g03lcwfp.js} +1 -1
- package/dist/assets/overview-BFHUS9cz.js +23 -0
- package/dist/assets/{pt-fvVMjgC8.js → pt-D828CXoS.js} +1 -1
- package/dist/assets/{react-1fE0Sobf.js → react-DjQtZm70.js} +7 -7
- package/dist/assets/{redux-hfExDDyr.js → redux-0yltQfyb.js} +1 -1
- package/dist/assets/{resource-dialog-DinbvH2C.js → resource-dialog-B2vu5Of2.js} +2 -2
- package/dist/assets/ru-t_aX-wsm.js +1 -0
- package/dist/assets/{runtime-tAjj0dmb.js → runtime-C9hFU3Ij.js} +1 -1
- package/dist/assets/{search.es-DxfjuUNu.js → search.es-C20qP8Vq.js} +1 -1
- package/dist/assets/{searchcursor.es-C0Z2DY1c.js → searchcursor.es-Cy-3eaEN.js} +1 -1
- package/dist/assets/service-CkoGqY1V.js +1 -0
- package/dist/assets/{show-hint.es-q24U0q_A.js → show-hint.es-DAqKK5Qn.js} +1 -1
- package/dist/assets/{slicedToArray-CYGiqzmA.js → slicedToArray-Bl_ysqUF.js} +3 -3
- package/dist/assets/{spaces-C58gy1rM.js → spaces-CE3KwDvq.js} +1 -1
- package/dist/assets/{sublime.es-BffqyCoy.js → sublime.es-DPcVE8hJ.js} +1 -1
- package/dist/assets/{switch-control-CuPWIx6T.js → switch-control-CCSLs9W3.js} +1 -1
- package/dist/assets/{table-icons-DOOoyljy.js → table-icons-B9NLkXar.js} +10 -10
- package/dist/assets/{tag-Cxx1sXPF.js → tag-_nponNF2.js} +1 -1
- package/dist/assets/{team-BynFP1rM.js → team-wy2ENAAe.js} +1 -1
- package/dist/assets/th-DvaD_9E5.js +1 -0
- package/dist/assets/toUpper-D-lxmi1w.js +1 -0
- package/dist/assets/{traffic-D03HdfGL.js → traffic-BU3E2tw9.js} +5 -5
- package/dist/assets/{url-evaluation-dheoi_Nj.js → url-evaluation-CAG0Y4FK.js} +4 -4
- package/dist/assets/{url-join-DMIMYkEk.js → url-join-DMJmszyo.js} +1 -1
- package/dist/assets/{use-blocklet-info-for-connect-did-spaces-DWywlTbc.js → use-blocklet-info-for-connect-did-spaces-Bc-o6Zkq.js} +1 -1
- package/dist/assets/{useLocalStorage-C3GQNaV2.js → useLocalStorage-D4xQyg06.js} +1 -1
- package/dist/assets/{util-cf4pvQDW.js → util-CuvemqGW.js} +1 -1
- package/dist/assets/vi-B4VdHKzm.js +1 -0
- package/dist/assets/{wait-container-BwlRhWl0.js → wait-container-CdR6E8LE.js} +4 -4
- package/dist/assets/{withStyles-BkcRLEgx.js → withStyles-Ct7uoTy7.js} +1 -1
- package/dist/assets/wrap-locale-C2k9YLGh.js +1 -0
- package/dist/assets/zh-D0ck6JaG.js +2 -0
- package/dist/assets/zh-tw-C19pg5Jo.js +1 -0
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +1 -1
- package/dist/assets/Delete-CnrKsAGC.js +0 -1
- package/dist/assets/TextField-DjRhIjo4.js +0 -1
- package/dist/assets/actions-C1t0ka-G.js +0 -11
- package/dist/assets/api-xvCGCwMn.js +0 -1
- package/dist/assets/app-avatar-DcgC0kB0.js +0 -1
- package/dist/assets/ar-B5gcsN0k.js +0 -1
- package/dist/assets/config-navigation-LFUjTzgk.js +0 -25
- package/dist/assets/de-WUCASh9G.js +0 -1
- package/dist/assets/delete-confirm-BoeDYrYX.js +0 -1
- package/dist/assets/es-DsRorAcf.js +0 -1
- package/dist/assets/fr-CUMFVKph.js +0 -1
- package/dist/assets/getValidReactChildren-GMOIXwRG.js +0 -1
- package/dist/assets/hi-BinC6-tx.js +0 -1
- package/dist/assets/id-BVFhYsL8.js +0 -1
- package/dist/assets/index-BKck0oIO.js +0 -234
- package/dist/assets/index-DU7hJgoO.js +0 -1
- package/dist/assets/index-DmPgcoiv.js +0 -150
- package/dist/assets/index-DsUZ7uiP.js +0 -58
- package/dist/assets/index-HOVCi07-.js +0 -54
- package/dist/assets/invitation-CSNEw5oM.js +0 -200
- package/dist/assets/ja-B1xj2XMp.js +0 -1
- package/dist/assets/ko-Buo9FEc0.js +0 -1
- package/dist/assets/overview-BlWFlRx2.js +0 -23
- package/dist/assets/ru-OQD02sOm.js +0 -1
- package/dist/assets/service-1GhnQw9a.js +0 -1
- package/dist/assets/th-DaDxf6qI.js +0 -1
- package/dist/assets/toUpper-mYvRPeiI.js +0 -1
- package/dist/assets/vi-D2hO2mdU.js +0 -1
- package/dist/assets/wrap-locale-BqGpRCMA.js +0 -1
- package/dist/assets/zh-OQY8LvIH.js +0 -2
- package/dist/assets/zh-tw-Dd8o0udA.js +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import{cP as Ce,g as Ga,cN as je,r as D,cW as Br,cK as Ba}from"./index-CqcpZ8C3.js";import{c as Wa}from"./redux-hfExDDyr.js";var Le={exports:{}};Le.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",a=1,o=2,s=9007199254740991,c="[object Arguments]",f="[object Array]",d="[object AsyncFunction]",v="[object Boolean]",b="[object Date]",O="[object Error]",m="[object Function]",S="[object GeneratorFunction]",C="[object Map]",N="[object Number]",G="[object Null]",P="[object Object]",T="[object Promise]",p="[object Proxy]",A="[object RegExp]",$="[object Set]",k="[object String]",Y="[object Symbol]",ue="[object Undefined]",se="[object WeakMap]",Ot="[object ArrayBuffer]",ye="[object DataView]",Dn="[object Float32Array]",Sn="[object Float64Array]",On="[object Int8Array]",Tn="[object Int16Array]",wn="[object Int32Array]",In="[object Uint8Array]",Cn="[object Uint8ClampedArray]",_n="[object Uint16Array]",En="[object Uint32Array]",Pn=/[\\^$.*+?()[\]{}|]/g,An=/^\[object .+?Constructor\]$/,kn=/^(?:0|[1-9]\d*)$/,w={};w[Dn]=w[Sn]=w[On]=w[Tn]=w[wn]=w[In]=w[Cn]=w[_n]=w[En]=!0,w[c]=w[f]=w[Ot]=w[v]=w[ye]=w[b]=w[O]=w[m]=w[C]=w[N]=w[P]=w[A]=w[$]=w[k]=w[se]=!1;var Tt=typeof Ce=="object"&&Ce&&Ce.Object===Object&&Ce,Rn=typeof self=="object"&&self&&self.Object===Object&&self,z=Tt||Rn||Function("return this")(),wt=t&&!t.nodeType&&t,It=wt&&!0&&e&&!e.nodeType&&e,Ct=It&&It.exports===wt,Ke=Ct&&Tt.process,_t=function(){try{return Ke&&Ke.binding&&Ke.binding("util")}catch{}}(),Et=_t&&_t.isTypedArray;function Mn(i,u){for(var l=-1,g=i==null?0:i.length,I=0,y=[];++l<g;){var E=i[l];u(E,l,i)&&(y[I++]=E)}return y}function $n(i,u){for(var l=-1,g=u.length,I=i.length;++l<g;)i[I+l]=u[l];return i}function xn(i,u){for(var l=-1,g=i==null?0:i.length;++l<g;)if(u(i[l],l,i))return!0;return!1}function Nn(i,u){for(var l=-1,g=Array(i);++l<i;)g[l]=u(l);return g}function jn(i){return function(u){return i(u)}}function Ln(i,u){return i.has(u)}function Hn(i,u){return i==null?void 0:i[u]}function Un(i){var u=-1,l=Array(i.size);return i.forEach(function(g,I){l[++u]=[I,g]}),l}function Fn(i,u){return function(l){return i(u(l))}}function qn(i){var u=-1,l=Array(i.size);return i.forEach(function(g){l[++u]=g}),l}var Gn=Array.prototype,Bn=Function.prototype,me=Object.prototype,Xe=z["__core-js_shared__"],Pt=Bn.toString,B=me.hasOwnProperty,At=function(){var i=/[^.]+$/.exec(Xe&&Xe.keys&&Xe.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),kt=me.toString,Wn=RegExp("^"+Pt.call(B).replace(Pn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Rt=Ct?z.Buffer:void 0,be=z.Symbol,Mt=z.Uint8Array,$t=me.propertyIsEnumerable,zn=Gn.splice,Z=be?be.toStringTag:void 0,xt=Object.getOwnPropertySymbols,Kn=Rt?Rt.isBuffer:void 0,Xn=Fn(Object.keys,Object),Ye=ie(z,"DataView"),ce=ie(z,"Map"),Ve=ie(z,"Promise"),Qe=ie(z,"Set"),Je=ie(z,"WeakMap"),fe=ie(Object,"create"),Yn=re(Ye),Vn=re(ce),Qn=re(Ve),Jn=re(Qe),Zn=re(Je),Nt=be?be.prototype:void 0,Ze=Nt?Nt.valueOf:void 0;function ee(i){var u=-1,l=i==null?0:i.length;for(this.clear();++u<l;){var g=i[u];this.set(g[0],g[1])}}function ea(){this.__data__=fe?fe(null):{},this.size=0}function ta(i){var u=this.has(i)&&delete this.__data__[i];return this.size-=u?1:0,u}function ra(i){var u=this.__data__;if(fe){var l=u[i];return l===n?void 0:l}return B.call(u,i)?u[i]:void 0}function na(i){var u=this.__data__;return fe?u[i]!==void 0:B.call(u,i)}function aa(i,u){var l=this.__data__;return this.size+=this.has(i)?0:1,l[i]=fe&&u===void 0?n:u,this}ee.prototype.clear=ea,ee.prototype.delete=ta,ee.prototype.get=ra,ee.prototype.has=na,ee.prototype.set=aa;function K(i){var u=-1,l=i==null?0:i.length;for(this.clear();++u<l;){var g=i[u];this.set(g[0],g[1])}}function ia(){this.__data__=[],this.size=0}function oa(i){var u=this.__data__,l=Se(u,i);if(l<0)return!1;var g=u.length-1;return l==g?u.pop():zn.call(u,l,1),--this.size,!0}function ua(i){var u=this.__data__,l=Se(u,i);return l<0?void 0:u[l][1]}function sa(i){return Se(this.__data__,i)>-1}function ca(i,u){var l=this.__data__,g=Se(l,i);return g<0?(++this.size,l.push([i,u])):l[g][1]=u,this}K.prototype.clear=ia,K.prototype.delete=oa,K.prototype.get=ua,K.prototype.has=sa,K.prototype.set=ca;function te(i){var u=-1,l=i==null?0:i.length;for(this.clear();++u<l;){var g=i[u];this.set(g[0],g[1])}}function fa(){this.size=0,this.__data__={hash:new ee,map:new(ce||K),string:new ee}}function la(i){var u=Oe(this,i).delete(i);return this.size-=u?1:0,u}function da(i){return Oe(this,i).get(i)}function ga(i){return Oe(this,i).has(i)}function ha(i,u){var l=Oe(this,i),g=l.size;return l.set(i,u),this.size+=l.size==g?0:1,this}te.prototype.clear=fa,te.prototype.delete=la,te.prototype.get=da,te.prototype.has=ga,te.prototype.set=ha;function De(i){var u=-1,l=i==null?0:i.length;for(this.__data__=new te;++u<l;)this.add(i[u])}function pa(i){return this.__data__.set(i,n),this}function va(i){return this.__data__.has(i)}De.prototype.add=De.prototype.push=pa,De.prototype.has=va;function V(i){var u=this.__data__=new K(i);this.size=u.size}function ya(){this.__data__=new K,this.size=0}function ma(i){var u=this.__data__,l=u.delete(i);return this.size=u.size,l}function ba(i){return this.__data__.get(i)}function Da(i){return this.__data__.has(i)}function Sa(i,u){var l=this.__data__;if(l instanceof K){var g=l.__data__;if(!ce||g.length<r-1)return g.push([i,u]),this.size=++l.size,this;l=this.__data__=new te(g)}return l.set(i,u),this.size=l.size,this}V.prototype.clear=ya,V.prototype.delete=ma,V.prototype.get=ba,V.prototype.has=Da,V.prototype.set=Sa;function Oa(i,u){var l=Te(i),g=!l&&ja(i),I=!l&&!g&&et(i),y=!l&&!g&&!I&&Wt(i),E=l||g||I||y,R=E?Nn(i.length,String):[],M=R.length;for(var _ in i)(u||B.call(i,_))&&!(E&&(_=="length"||I&&(_=="offset"||_=="parent")||y&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||Ra(_,M)))&&R.push(_);return R}function Se(i,u){for(var l=i.length;l--;)if(Ft(i[l][0],u))return l;return-1}function Ta(i,u,l){var g=u(i);return Te(i)?g:$n(g,l(i))}function le(i){return i==null?i===void 0?ue:G:Z&&Z in Object(i)?Aa(i):Na(i)}function jt(i){return de(i)&&le(i)==c}function Lt(i,u,l,g,I){return i===u?!0:i==null||u==null||!de(i)&&!de(u)?i!==i&&u!==u:wa(i,u,l,g,Lt,I)}function wa(i,u,l,g,I,y){var E=Te(i),R=Te(u),M=E?f:Q(i),_=R?f:Q(u);M=M==c?P:M,_=_==c?P:_;var j=M==P,q=_==P,x=M==_;if(x&&et(i)){if(!et(u))return!1;E=!0,j=!1}if(x&&!j)return y||(y=new V),E||Wt(i)?Ht(i,u,l,g,I,y):Ea(i,u,M,l,g,I,y);if(!(l&a)){var L=j&&B.call(i,"__wrapped__"),H=q&&B.call(u,"__wrapped__");if(L||H){var J=L?i.value():i,X=H?u.value():u;return y||(y=new V),I(J,X,l,g,y)}}return x?(y||(y=new V),Pa(i,u,l,g,I,y)):!1}function Ia(i){if(!Bt(i)||$a(i))return!1;var u=qt(i)?Wn:An;return u.test(re(i))}function Ca(i){return de(i)&&Gt(i.length)&&!!w[le(i)]}function _a(i){if(!xa(i))return Xn(i);var u=[];for(var l in Object(i))B.call(i,l)&&l!="constructor"&&u.push(l);return u}function Ht(i,u,l,g,I,y){var E=l&a,R=i.length,M=u.length;if(R!=M&&!(E&&M>R))return!1;var _=y.get(i);if(_&&y.get(u))return _==u;var j=-1,q=!0,x=l&o?new De:void 0;for(y.set(i,u),y.set(u,i);++j<R;){var L=i[j],H=u[j];if(g)var J=E?g(H,L,j,u,i,y):g(L,H,j,i,u,y);if(J!==void 0){if(J)continue;q=!1;break}if(x){if(!xn(u,function(X,ne){if(!Ln(x,ne)&&(L===X||I(L,X,l,g,y)))return x.push(ne)})){q=!1;break}}else if(!(L===H||I(L,H,l,g,y))){q=!1;break}}return y.delete(i),y.delete(u),q}function Ea(i,u,l,g,I,y,E){switch(l){case ye:if(i.byteLength!=u.byteLength||i.byteOffset!=u.byteOffset)return!1;i=i.buffer,u=u.buffer;case Ot:return!(i.byteLength!=u.byteLength||!y(new Mt(i),new Mt(u)));case v:case b:case N:return Ft(+i,+u);case O:return i.name==u.name&&i.message==u.message;case A:case k:return i==u+"";case C:var R=Un;case $:var M=g&a;if(R||(R=qn),i.size!=u.size&&!M)return!1;var _=E.get(i);if(_)return _==u;g|=o,E.set(i,u);var j=Ht(R(i),R(u),g,I,y,E);return E.delete(i),j;case Y:if(Ze)return Ze.call(i)==Ze.call(u)}return!1}function Pa(i,u,l,g,I,y){var E=l&a,R=Ut(i),M=R.length,_=Ut(u),j=_.length;if(M!=j&&!E)return!1;for(var q=M;q--;){var x=R[q];if(!(E?x in u:B.call(u,x)))return!1}var L=y.get(i);if(L&&y.get(u))return L==u;var H=!0;y.set(i,u),y.set(u,i);for(var J=E;++q<M;){x=R[q];var X=i[x],ne=u[x];if(g)var zt=E?g(ne,X,x,u,i,y):g(X,ne,x,i,u,y);if(!(zt===void 0?X===ne||I(X,ne,l,g,y):zt)){H=!1;break}J||(J=x=="constructor")}if(H&&!J){var we=i.constructor,Ie=u.constructor;we!=Ie&&"constructor"in i&&"constructor"in u&&!(typeof we=="function"&&we instanceof we&&typeof Ie=="function"&&Ie instanceof Ie)&&(H=!1)}return y.delete(i),y.delete(u),H}function Ut(i){return Ta(i,Ua,ka)}function Oe(i,u){var l=i.__data__;return Ma(u)?l[typeof u=="string"?"string":"hash"]:l.map}function ie(i,u){var l=Hn(i,u);return Ia(l)?l:void 0}function Aa(i){var u=B.call(i,Z),l=i[Z];try{i[Z]=void 0;var g=!0}catch{}var I=kt.call(i);return g&&(u?i[Z]=l:delete i[Z]),I}var ka=xt?function(i){return i==null?[]:(i=Object(i),Mn(xt(i),function(u){return $t.call(i,u)}))}:Fa,Q=le;(Ye&&Q(new Ye(new ArrayBuffer(1)))!=ye||ce&&Q(new ce)!=C||Ve&&Q(Ve.resolve())!=T||Qe&&Q(new Qe)!=$||Je&&Q(new Je)!=se)&&(Q=function(i){var u=le(i),l=u==P?i.constructor:void 0,g=l?re(l):"";if(g)switch(g){case Yn:return ye;case Vn:return C;case Qn:return T;case Jn:return $;case Zn:return se}return u});function Ra(i,u){return u=u??s,!!u&&(typeof i=="number"||kn.test(i))&&i>-1&&i%1==0&&i<u}function Ma(i){var u=typeof i;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?i!=="__proto__":i===null}function $a(i){return!!At&&At in i}function xa(i){var u=i&&i.constructor,l=typeof u=="function"&&u.prototype||me;return i===l}function Na(i){return kt.call(i)}function re(i){if(i!=null){try{return Pt.call(i)}catch{}try{return i+""}catch{}}return""}function Ft(i,u){return i===u||i!==i&&u!==u}var ja=jt(function(){return arguments}())?jt:function(i){return de(i)&&B.call(i,"callee")&&!$t.call(i,"callee")},Te=Array.isArray;function La(i){return i!=null&&Gt(i.length)&&!qt(i)}var et=Kn||qa;function Ha(i,u){return Lt(i,u)}function qt(i){if(!Bt(i))return!1;var u=le(i);return u==m||u==S||u==d||u==p}function Gt(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=s}function Bt(i){var u=typeof i;return i!=null&&(u=="object"||u=="function")}function de(i){return i!=null&&typeof i=="object"}var Wt=Et?jn(Et):Ca;function Ua(i){return La(i)?Oa(i):_a(i)}function Fa(){return[]}function qa(){return!1}e.exports=Ha})(Le,Le.exports);var za=Le.exports;const As=Ga(za);var F;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(F||(F={}));function h(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];if(!e){var o;if(t===void 0)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=0;o=new Error(t.replace(/%s/g,function(){return n[s++]})),o.name="Invariant Violation"}throw o.framesToPop=1,o}}var gt="dnd-core/INIT_COORDS",qe="dnd-core/BEGIN_DRAG",ht="dnd-core/PUBLISH_DRAG_SOURCE",Ge="dnd-core/HOVER",Be="dnd-core/DROP",We="dnd-core/END_DRAG";function Kt(e,t){return{type:gt,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}function Pe(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pe=function(r){return typeof r}:Pe=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Pe(e)}function Ka(e,t,r){return t.split(".").reduce(function(n,a){return n&&n[a]?n[a]:r||null},e)}function Xa(e,t){return e.filter(function(r){return r!==t})}function Wr(e){return Pe(e)==="object"}function Ya(e,t){var r=new Map,n=function(s){r.set(s,r.has(s)?r.get(s)+1:1)};e.forEach(n),t.forEach(n);var a=[];return r.forEach(function(o,s){o===1&&a.push(s)}),a}function Va(e,t){return e.filter(function(r){return t.indexOf(r)>-1})}var Qa={type:gt,payload:{clientOffset:null,sourceClientOffset:null}};function Ja(e){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{publishSource:!0},a=n.publishSource,o=a===void 0?!0:a,s=n.clientOffset,c=n.getSourceClientOffset,f=e.getMonitor(),d=e.getRegistry();e.dispatch(Kt(s)),Za(r,f,d);var v=ri(r,f);if(v===null){e.dispatch(Qa);return}var b=null;if(s){if(!c)throw new Error("getSourceClientOffset must be defined");ei(c),b=c(v)}e.dispatch(Kt(s,b));var O=d.getSource(v),m=O.beginDrag(f,v);ti(m),d.pinSource(v);var S=d.getSourceType(v);return{type:qe,payload:{itemType:S,item:m,sourceId:v,clientOffset:s||null,sourceClientOffset:b||null,isSourcePublic:!!o}}}}function Za(e,t,r){h(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(n){h(r.getSource(n),"Expected sourceIds to be registered.")})}function ei(e){h(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function ti(e){h(Wr(e),"Item must be an object.")}function ri(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 ni(e){return function(){var r=e.getMonitor();if(r.isDragging())return{type:ht}}}function ot(e,t){return t===null?e===null:Array.isArray(e)?e.some(function(r){return r===t}):e===t}function ai(e){return function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.clientOffset;ii(r);var o=r.slice(0),s=e.getMonitor(),c=e.getRegistry();oi(o,s,c);var f=s.getItemType();return ui(o,c,f),si(o,s,c),{type:Ge,payload:{targetIds:o,clientOffset:a||null}}}}function ii(e){h(Array.isArray(e),"Expected targetIds to be an array.")}function oi(e,t,r){h(t.isDragging(),"Cannot call hover while not dragging."),h(!t.didDrop(),"Cannot call hover after drop.");for(var n=0;n<e.length;n++){var a=e[n];h(e.lastIndexOf(a)===n,"Expected targetIds to be unique in the passed array.");var o=r.getTarget(a);h(o,"Expected targetIds to be registered.")}}function ui(e,t,r){for(var n=e.length-1;n>=0;n--){var a=e[n],o=t.getTargetType(a);ot(o,r)||e.splice(n,1)}}function si(e,t,r){e.forEach(function(n){var a=r.getTarget(n);a.hover(t,n)})}function Xt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Yt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xt(Object(r),!0).forEach(function(n){ci(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ci(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fi(e){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.getMonitor(),a=e.getRegistry();li(n);var o=hi(n);o.forEach(function(s,c){var f=di(s,c,a,n),d={type:Be,payload:{dropResult:Yt(Yt({},r),f)}};e.dispatch(d)})}}function li(e){h(e.isDragging(),"Cannot call drop while not dragging."),h(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function di(e,t,r,n){var a=r.getTarget(e),o=a?a.drop(n,e):void 0;return gi(o),typeof o>"u"&&(o=t===0?{}:n.getDropResult()),o}function gi(e){h(typeof e>"u"||Wr(e),"Drop result must either be an object or undefined.")}function hi(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function pi(e){return function(){var r=e.getMonitor(),n=e.getRegistry();vi(r);var a=r.getSourceId();if(a!=null){var o=n.getSource(a,!0);o.endDrag(r,a),n.unpinSource()}return{type:We}}}function vi(e){h(e.isDragging(),"Cannot call endDrag while not dragging.")}function yi(e){return{beginDrag:Ja(e),publishDragSource:ni(e),hover:ai(e),drop:fi(e),endDrag:pi(e)}}var mi=function(t,r){return t===r};function bi(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function Di(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:mi;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 Vt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Qt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vt(Object(r),!0).forEach(function(n){Si(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Si(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Jt={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Oi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Jt,t=arguments.length>1?arguments[1]:void 0,r=t.payload;switch(t.type){case gt:case qe:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case Ge:return bi(e.clientOffset,r.clientOffset)?e:Qt(Qt({},e),{},{clientOffset:r.clientOffset});case We:case Be:return Jt;default:return e}}var pt="dnd-core/ADD_SOURCE",vt="dnd-core/ADD_TARGET",yt="dnd-core/REMOVE_SOURCE",ze="dnd-core/REMOVE_TARGET";function Ti(e){return{type:pt,payload:{sourceId:e}}}function wi(e){return{type:vt,payload:{targetId:e}}}function Ii(e){return{type:yt,payload:{sourceId:e}}}function Ci(e){return{type:ze,payload:{targetId:e}}}function Zt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function U(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zt(Object(r),!0).forEach(function(n){_i(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}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}var Ei={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Pi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ei,t=arguments.length>1?arguments[1]:void 0,r=t.payload;switch(t.type){case qe:return U(U({},e),{},{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case ht:return U(U({},e),{},{isSourcePublic:!0});case Ge:return U(U({},e),{},{targetIds:r.targetIds});case ze:return e.targetIds.indexOf(r.targetId)===-1?e:U(U({},e),{},{targetIds:Xa(e.targetIds,r.targetId)});case Be:return U(U({},e),{},{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case We:return U(U({},e),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function Ai(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case pt:case vt:return e+1;case yt:case ze:return e-1;default:return e}}var He=[],mt=[];He.__IS_NONE__=!0;mt.__IS_ALL__=!0;function ki(e,t){if(e===He)return!1;if(e===mt||typeof t>"u")return!0;var r=Va(t,e);return r.length>0}function Ri(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case Ge:break;case pt:case vt:case ze:case yt:return He;case qe:case ht:case We:case Be:default:return mt}var t=e.payload,r=t.targetIds,n=r===void 0?[]:r,a=t.prevTargetIds,o=a===void 0?[]:a,s=Ya(n,o),c=s.length>0||!Di(n,o);if(!c)return He;var f=o[o.length-1],d=n[n.length-1];return f!==d&&(f&&s.push(f),d&&s.push(d)),s}function Mi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return e+1}function er(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function tr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?er(Object(r),!0).forEach(function(n){$i(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):er(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}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 xi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:Ri(e.dirtyHandlerIds,{type:t.type,payload:tr(tr({},t.payload),{},{prevTargetIds:Ka(e,"dragOperation.targetIds",[])})}),dragOffset:Oi(e.dragOffset,t),refCount:Ai(e.refCount,t),dragOperation:Pi(e.dragOperation,t),stateId:Mi(e.stateId)}}function Ni(e,t){return{x:e.x+t.x,y:e.y+t.y}}function zr(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ji(e){var t=e.clientOffset,r=e.initialClientOffset,n=e.initialSourceClientOffset;return!t||!r||!n?null:zr(Ni(t,n),r)}function Li(e){var t=e.clientOffset,r=e.initialClientOffset;return!t||!r?null:zr(t,r)}function Hi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rr(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 Ui(e,t,r){return t&&rr(e.prototype,t),r&&rr(e,r),e}var Fi=function(){function e(t,r){Hi(this,e),this.store=t,this.registry=r}return Ui(e,[{key:"subscribeToStateChange",value:function(r){var n=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{handlerIds:void 0},o=a.handlerIds;h(typeof r=="function","listener must be a function."),h(typeof o>"u"||Array.isArray(o),"handlerIds, when specified, must be an array of strings.");var s=this.store.getState().stateId,c=function(){var d=n.store.getState(),v=d.stateId;try{var b=v===s||v===s+1&&!ki(d.dirtyHandlerIds,o);b||r()}finally{s=v}};return this.store.subscribe(c)}},{key:"subscribeToOffsetChange",value:function(r){var n=this;h(typeof r=="function","listener must be a function.");var a=this.store.getState().dragOffset,o=function(){var c=n.store.getState().dragOffset;c!==a&&(a=c,r())};return this.store.subscribe(o)}},{key:"canDragSource",value:function(r){if(!r)return!1;var n=this.registry.getSource(r);return h(n,"Expected to find a valid source."),this.isDragging()?!1:n.canDrag(this,r)}},{key:"canDropOnTarget",value:function(r){if(!r)return!1;var n=this.registry.getTarget(r);if(h(n,"Expected to find a valid target."),!this.isDragging()||this.didDrop())return!1;var a=this.registry.getTargetType(r),o=this.getItemType();return ot(a,o)&&n.canDrop(this,r)}},{key:"isDragging",value:function(){return!!this.getItemType()}},{key:"isDraggingSource",value:function(r){if(!r)return!1;var n=this.registry.getSource(r,!0);if(h(n,"Expected to find a valid source."),!this.isDragging()||!this.isSourcePublic())return!1;var a=this.registry.getSourceType(r),o=this.getItemType();return a!==o?!1:n.isDragging(this,r)}},{key:"isOverTarget",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{shallow:!1};if(!r)return!1;var a=n.shallow;if(!this.isDragging())return!1;var o=this.registry.getTargetType(r),s=this.getItemType();if(s&&!ot(o,s))return!1;var c=this.getTargetIds();if(!c.length)return!1;var f=c.indexOf(r);return a?f===c.length-1:f>-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!!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 ji(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return Li(this.store.getState().dragOffset)}}]),e}(),qi=0;function Gi(){return qi++}function Ae(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ae=function(r){return typeof r}:Ae=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ae(e)}function Bi(e){h(typeof e.canDrag=="function","Expected canDrag to be a function."),h(typeof e.beginDrag=="function","Expected beginDrag to be a function."),h(typeof e.endDrag=="function","Expected endDrag to be a function.")}function Wi(e){h(typeof e.canDrop=="function","Expected canDrop to be a function."),h(typeof e.hover=="function","Expected hover to be a function."),h(typeof e.drop=="function","Expected beginDrag to be a function.")}function ut(e,t){if(t&&Array.isArray(e)){e.forEach(function(r){return ut(r,!1)});return}h(typeof e=="string"||Ae(e)==="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}const nr=typeof je<"u"?je:self,Kr=nr.MutationObserver||nr.WebKitMutationObserver;function Xr(e){return function(){const r=setTimeout(a,0),n=setInterval(a,50);function a(){clearTimeout(r),clearInterval(n),e()}}}function zi(e){let t=1;const r=new Kr(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}const Ki=typeof Kr=="function"?zi:Xr;class Xi{enqueueTask(t){const{queue:r,requestFlush:n}=this;r.length||(n(),this.flushing=!0),r[r.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const r=this.index;if(this.index++,t[r].call(),this.index>this.capacity){for(let n=0,a=t.length-this.index;n<a;n++)t[n]=t[n+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=Ki(this.flush),this.requestErrorThrow=Xr(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class Yi{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,r){this.onError=t,this.release=r,this.task=null}}class Vi{create(t){const r=this.freeTasks,n=r.length?r.pop():new Yi(this.onError,a=>r[r.length]=a);return n.task=t,n}constructor(t){this.onError=t,this.freeTasks=[]}}const Yr=new Xi,Qi=new Vi(Yr.registerPendingError);function Ji(e){Yr.enqueueTask(Qi.create(e))}function Zi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ar(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 eo(e,t,r){return t&&ar(e.prototype,t),r&&ar(e,r),e}function to(e,t){return io(e)||ao(e,t)||no(e,t)||ro()}function ro(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function no(e,t){if(e){if(typeof e=="string")return ir(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ir(e,t)}}function ir(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ao(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,o=void 0;try{for(var s=e[Symbol.iterator](),c;!(n=(c=s.next()).done)&&(r.push(c.value),!(t&&r.length===t));n=!0);}catch(f){a=!0,o=f}finally{try{!n&&s.return!=null&&s.return()}finally{if(a)throw o}}return r}}function io(e){if(Array.isArray(e))return e}function oo(e){var t=Gi().toString();switch(e){case F.SOURCE:return"S".concat(t);case F.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}function or(e){switch(e[0]){case"S":return F.SOURCE;case"T":return F.TARGET;default:h(!1,"Cannot parse handler ID: ".concat(e))}}function ur(e,t){var r=e.entries(),n=!1;do{var a=r.next(),o=a.done,s=to(a.value,2),c=s[1];if(c===t)return!0;n=!!o}while(!n);return!1}var uo=function(){function e(t){Zi(this,e),this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}return eo(e,[{key:"addSource",value:function(r,n){ut(r),
|
|
3
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vo(e,t){if(e){if(typeof e=="string")return cr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cr(e,t)}}function cr(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function yo(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,o=void 0;try{for(var s=e[Symbol.iterator](),c;!(n=(c=s.next()).done)&&(r.push(c.value),!(t&&r.length===t));n=!0);}catch(f){a=!0,o=f}finally{try{!n&&s.return!=null&&s.return()}finally{if(a)throw o}}return r}}function mo(e){if(Array.isArray(e))return e}function bo(e,t){if(e==null)return{};var r=Do(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Do(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var tt=0,Qr=D.memo(function(e){var t=e.children,r=bo(e,["children"]),n=So(r),a=ho(n,2),o=a[0],s=a[1];return D.useEffect(function(){return s&&tt++,function(){if(s&&(tt--,tt===0)){var c=Jr();c[ke]=null}}},[]),D.createElement(ve.Provider,{value:o},t)});Qr.displayName="DndProvider";function So(e){if("manager"in e){var t={dragDropManager:e.manager};return[t,!1]}var r=Oo(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[r,n]}var ke=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");function Oo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jr(),r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,a=t;return a[ke]||(a[ke]=Vr(e,t,r,n)),a[ke]}function Jr(){return typeof je<"u"?je:window}var Zr=D.memo(function(e){var t=e.connect,r=e.src;return D.useEffect(function(){if(!(typeof Image>"u")){var n=!1,a=new Image;return a.src=r,a.onload=function(){t(a),n=!0},function(){n&&t(null)}}}),null});Zr.displayName="DragPreviewImage";var ae=typeof window<"u"?D.useLayoutEffect:D.useEffect;function
|
|
4
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Io(e,t){if(e){if(typeof e=="string")return fr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fr(e,t)}}function fr(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Co(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,o=void 0;try{for(var s=e[Symbol.iterator](),c;!(n=(c=s.next()).done)&&(r.push(c.value),!(t&&r.length===t));n=!0);}catch(f){a=!0,o=f}finally{try{!n&&s.return!=null&&s.return()}finally{if(a)throw o}}return r}}function _o(e){if(Array.isArray(e))return e}function en(e,t,r){var n=D.useState(function(){return t(e)}),a=To(n,2),o=a[0],s=a[1],c=D.useCallback(function(){var f=t(e);
|
|
5
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ao(e,t){if(e){if(typeof e=="string")return lr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lr(e,t)}}function lr(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ko(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,o=void 0;try{for(var s=e[Symbol.iterator](),c;!(n=(c=s.next()).done)&&(r.push(c.value),!(t&&r.length===t));n=!0);}catch(f){a=!0,o=f}finally{try{!n&&s.return!=null&&s.return()}finally{if(a)throw o}}return r}}function Ro(e){if(Array.isArray(e))return e}function tn(e,t,r){var n=en(e,t,r),a=Eo(n,2),o=a[0],s=a[1];return ae(function(){var f=e.getHandlerId();if(f!=null)return e.subscribeToStateChange(s,{handlerIds:[f]})},[e,s]),o}function rn(e,t,r){var n=r.getRegistry(),a=n.addTarget(e,t);return[a,function(){return n.removeTarget(a)}]}function nn(e,t,r){var n=r.getRegistry(),a=n.addSource(e,t);return[a,function(){return n.removeSource(a)}]}function oe(){var e=D.useContext(ve),t=e.dragDropManager;return h(t!=null,"Expected drag drop context"),t}function Mo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dr(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,r){return t&&dr(e.prototype,t),r&&dr(e,r),e}var rt=!1,nt=!1,an=function(){function e(t){Mo(this,e),this.sourceId=null,this.internalMonitor=t.getMonitor()}return $o(e,[{key:"receiveHandlerId",value:function(r){this.sourceId=r}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){h(!rt,"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 rt=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{rt=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;h(!nt,"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 nt=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{nt=!1}}},{key:"subscribeToStateChange",value:function(r,n){return this.internalMonitor.subscribeToStateChange(r,n)}},{key:"isDraggingSource",value:function(r){return this.internalMonitor.isDraggingSource(r)}},{key:"isOverTarget",value:function(r,n){return this.internalMonitor.isOverTarget(r,n)}},{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(r){return this.internalMonitor.subscribeToOffsetChange(r)}},{key:"canDragSource",value:function(r){return this.internalMonitor.canDragSource(r)}},{key:"canDropOnTarget",value:function(r){return this.internalMonitor.canDropOnTarget(r)}},{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()}}]),e}();function gr(e,t){typeof e=="function"?e(t):e.current=t}function xo(e,t){var r=e.ref;return h(typeof r!="string","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://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),r?D.cloneElement(e,{ref:function(a){gr(r,a),gr(t,a)}}):D.cloneElement(e,{ref:t})}function No(e){if(typeof e.type!="string"){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 jo(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!D.isValidElement(t)){var n=t;return e(n,r),n}var a=t;No(a);var o=r?function(s){return e(s,r)}:e;return xo(a,o)}}function on(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=jo(n);t[r]=function(){return a}}}),t}function Re(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Re=function(r){return typeof r}:Re=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Re(e)}function st(e){return e!==null&&Re(e)==="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Lo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hr(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 Ho(e,t,r){return t&&hr(e.prototype,t),r&&hr(e,r),e}var un=function(){function e(t){var r=this;Lo(this,e),this.hooks=on({dragSource:function(a,o){r.clearDragSource(),r.dragSourceOptions=o||null,st(a)?r.dragSourceRef=a:r.dragSourceNode=a,r.reconnectDragSource()},dragPreview:function(a,o){r.clearDragPreview(),r.dragPreviewOptions=o||null,st(a)?r.dragPreviewRef=a:r.dragPreviewNode=a,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}return Ho(e,[{key:"receiveHandlerId",value:function(r){this.handlerId!==r&&(this.handlerId=r,this.reconnect())}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var r=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();if(n&&this.disconnectDragSource(),!!this.handlerId){if(!r){this.lastConnectedDragSource=r;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=r,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,r,this.dragSourceOptions))}}},{key:"reconnectDragPreview",value:function(){var r=this.dragPreview,n=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(n&&this.disconnectDragPreview(),!!this.handlerId){if(!r){this.lastConnectedDragPreview=r;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=r,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,r,this.dragPreviewOptions))}}},{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!
|
|
6
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qo(e,t){if(e){if(typeof e=="string")return pr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pr(e,t)}}function pr(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Go(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,o=void 0;try{for(var s=e[Symbol.iterator](),c;!(n=(c=s.next()).done)&&(r.push(c.value),!(t&&r.length===t));n=!0);}catch(f){a=!0,o=f}finally{try{!n&&s.return!=null&&s.return()}finally{if(a)throw o}}return r}}function
|
|
7
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yo(e,t){if(e){if(typeof e=="string")return vr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vr(e,t)}}function vr(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Vo(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,o=void 0;try{for(var s=e[Symbol.iterator](),c;!(n=(c=s.next()).done)&&(r.push(c.value),!(t&&r.length===t));n=!0);}catch(f){a=!0,o=f}finally{try{!n&&s.return!=null&&s.return()}finally{if(a)throw o}}return r}}function Qo(e){if(Array.isArray(e))return e}function Jo(e){var t=D.useRef(e);t.current=e,h(e.item!=null,"item must be defined"),h(e.item.type!=null,"item type must be defined");var r=
|
|
1
|
+
import{cz as Ce,g as Ga,cU as je,r as D,d0 as zr,cv as za}from"./index-Pf5VRxU2.js";import{c as Ba}from"./redux-0yltQfyb.js";var Le={exports:{}};Le.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",a=1,o=2,s=9007199254740991,c="[object Arguments]",f="[object Array]",d="[object AsyncFunction]",v="[object Boolean]",b="[object Date]",O="[object Error]",m="[object Function]",S="[object GeneratorFunction]",C="[object Map]",N="[object Number]",G="[object Null]",P="[object Object]",T="[object Promise]",p="[object Proxy]",A="[object RegExp]",$="[object Set]",k="[object String]",Y="[object Symbol]",ue="[object Undefined]",se="[object WeakMap]",Ot="[object ArrayBuffer]",ye="[object DataView]",Dn="[object Float32Array]",Sn="[object Float64Array]",On="[object Int8Array]",Tn="[object Int16Array]",wn="[object Int32Array]",In="[object Uint8Array]",Cn="[object Uint8ClampedArray]",_n="[object Uint16Array]",En="[object Uint32Array]",Pn=/[\\^$.*+?()[\]{}|]/g,An=/^\[object .+?Constructor\]$/,kn=/^(?:0|[1-9]\d*)$/,w={};w[Dn]=w[Sn]=w[On]=w[Tn]=w[wn]=w[In]=w[Cn]=w[_n]=w[En]=!0,w[c]=w[f]=w[Ot]=w[v]=w[ye]=w[b]=w[O]=w[m]=w[C]=w[N]=w[P]=w[A]=w[$]=w[k]=w[se]=!1;var Tt=typeof Ce=="object"&&Ce&&Ce.Object===Object&&Ce,Rn=typeof self=="object"&&self&&self.Object===Object&&self,W=Tt||Rn||Function("return this")(),wt=t&&!t.nodeType&&t,It=wt&&!0&&e&&!e.nodeType&&e,Ct=It&&It.exports===wt,Xe=Ct&&Tt.process,_t=function(){try{return Xe&&Xe.binding&&Xe.binding("util")}catch{}}(),Et=_t&&_t.isTypedArray;function Mn(i,u){for(var l=-1,g=i==null?0:i.length,I=0,y=[];++l<g;){var E=i[l];u(E,l,i)&&(y[I++]=E)}return y}function $n(i,u){for(var l=-1,g=u.length,I=i.length;++l<g;)i[I+l]=u[l];return i}function xn(i,u){for(var l=-1,g=i==null?0:i.length;++l<g;)if(u(i[l],l,i))return!0;return!1}function Nn(i,u){for(var l=-1,g=Array(i);++l<i;)g[l]=u(l);return g}function jn(i){return function(u){return i(u)}}function Ln(i,u){return i.has(u)}function Hn(i,u){return i==null?void 0:i[u]}function Un(i){var u=-1,l=Array(i.size);return i.forEach(function(g,I){l[++u]=[I,g]}),l}function Fn(i,u){return function(l){return i(u(l))}}function qn(i){var u=-1,l=Array(i.size);return i.forEach(function(g){l[++u]=g}),l}var Gn=Array.prototype,zn=Function.prototype,me=Object.prototype,Ke=W["__core-js_shared__"],Pt=zn.toString,z=me.hasOwnProperty,At=function(){var i=/[^.]+$/.exec(Ke&&Ke.keys&&Ke.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),kt=me.toString,Bn=RegExp("^"+Pt.call(z).replace(Pn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Rt=Ct?W.Buffer:void 0,be=W.Symbol,Mt=W.Uint8Array,$t=me.propertyIsEnumerable,Wn=Gn.splice,Z=be?be.toStringTag:void 0,xt=Object.getOwnPropertySymbols,Xn=Rt?Rt.isBuffer:void 0,Kn=Fn(Object.keys,Object),Ye=ie(W,"DataView"),ce=ie(W,"Map"),Ve=ie(W,"Promise"),Qe=ie(W,"Set"),Je=ie(W,"WeakMap"),fe=ie(Object,"create"),Yn=re(Ye),Vn=re(ce),Qn=re(Ve),Jn=re(Qe),Zn=re(Je),Nt=be?be.prototype:void 0,Ze=Nt?Nt.valueOf:void 0;function ee(i){var u=-1,l=i==null?0:i.length;for(this.clear();++u<l;){var g=i[u];this.set(g[0],g[1])}}function ea(){this.__data__=fe?fe(null):{},this.size=0}function ta(i){var u=this.has(i)&&delete this.__data__[i];return this.size-=u?1:0,u}function ra(i){var u=this.__data__;if(fe){var l=u[i];return l===n?void 0:l}return z.call(u,i)?u[i]:void 0}function na(i){var u=this.__data__;return fe?u[i]!==void 0:z.call(u,i)}function aa(i,u){var l=this.__data__;return this.size+=this.has(i)?0:1,l[i]=fe&&u===void 0?n:u,this}ee.prototype.clear=ea,ee.prototype.delete=ta,ee.prototype.get=ra,ee.prototype.has=na,ee.prototype.set=aa;function X(i){var u=-1,l=i==null?0:i.length;for(this.clear();++u<l;){var g=i[u];this.set(g[0],g[1])}}function ia(){this.__data__=[],this.size=0}function oa(i){var u=this.__data__,l=Se(u,i);if(l<0)return!1;var g=u.length-1;return l==g?u.pop():Wn.call(u,l,1),--this.size,!0}function ua(i){var u=this.__data__,l=Se(u,i);return l<0?void 0:u[l][1]}function sa(i){return Se(this.__data__,i)>-1}function ca(i,u){var l=this.__data__,g=Se(l,i);return g<0?(++this.size,l.push([i,u])):l[g][1]=u,this}X.prototype.clear=ia,X.prototype.delete=oa,X.prototype.get=ua,X.prototype.has=sa,X.prototype.set=ca;function te(i){var u=-1,l=i==null?0:i.length;for(this.clear();++u<l;){var g=i[u];this.set(g[0],g[1])}}function fa(){this.size=0,this.__data__={hash:new ee,map:new(ce||X),string:new ee}}function la(i){var u=Oe(this,i).delete(i);return this.size-=u?1:0,u}function da(i){return Oe(this,i).get(i)}function ga(i){return Oe(this,i).has(i)}function ha(i,u){var l=Oe(this,i),g=l.size;return l.set(i,u),this.size+=l.size==g?0:1,this}te.prototype.clear=fa,te.prototype.delete=la,te.prototype.get=da,te.prototype.has=ga,te.prototype.set=ha;function De(i){var u=-1,l=i==null?0:i.length;for(this.__data__=new te;++u<l;)this.add(i[u])}function pa(i){return this.__data__.set(i,n),this}function va(i){return this.__data__.has(i)}De.prototype.add=De.prototype.push=pa,De.prototype.has=va;function V(i){var u=this.__data__=new X(i);this.size=u.size}function ya(){this.__data__=new X,this.size=0}function ma(i){var u=this.__data__,l=u.delete(i);return this.size=u.size,l}function ba(i){return this.__data__.get(i)}function Da(i){return this.__data__.has(i)}function Sa(i,u){var l=this.__data__;if(l instanceof X){var g=l.__data__;if(!ce||g.length<r-1)return g.push([i,u]),this.size=++l.size,this;l=this.__data__=new te(g)}return l.set(i,u),this.size=l.size,this}V.prototype.clear=ya,V.prototype.delete=ma,V.prototype.get=ba,V.prototype.has=Da,V.prototype.set=Sa;function Oa(i,u){var l=Te(i),g=!l&&ja(i),I=!l&&!g&&et(i),y=!l&&!g&&!I&&Bt(i),E=l||g||I||y,R=E?Nn(i.length,String):[],M=R.length;for(var _ in i)(u||z.call(i,_))&&!(E&&(_=="length"||I&&(_=="offset"||_=="parent")||y&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||Ra(_,M)))&&R.push(_);return R}function Se(i,u){for(var l=i.length;l--;)if(Ft(i[l][0],u))return l;return-1}function Ta(i,u,l){var g=u(i);return Te(i)?g:$n(g,l(i))}function le(i){return i==null?i===void 0?ue:G:Z&&Z in Object(i)?Aa(i):Na(i)}function jt(i){return de(i)&&le(i)==c}function Lt(i,u,l,g,I){return i===u?!0:i==null||u==null||!de(i)&&!de(u)?i!==i&&u!==u:wa(i,u,l,g,Lt,I)}function wa(i,u,l,g,I,y){var E=Te(i),R=Te(u),M=E?f:Q(i),_=R?f:Q(u);M=M==c?P:M,_=_==c?P:_;var j=M==P,q=_==P,x=M==_;if(x&&et(i)){if(!et(u))return!1;E=!0,j=!1}if(x&&!j)return y||(y=new V),E||Bt(i)?Ht(i,u,l,g,I,y):Ea(i,u,M,l,g,I,y);if(!(l&a)){var L=j&&z.call(i,"__wrapped__"),H=q&&z.call(u,"__wrapped__");if(L||H){var J=L?i.value():i,K=H?u.value():u;return y||(y=new V),I(J,K,l,g,y)}}return x?(y||(y=new V),Pa(i,u,l,g,I,y)):!1}function Ia(i){if(!zt(i)||$a(i))return!1;var u=qt(i)?Bn:An;return u.test(re(i))}function Ca(i){return de(i)&&Gt(i.length)&&!!w[le(i)]}function _a(i){if(!xa(i))return Kn(i);var u=[];for(var l in Object(i))z.call(i,l)&&l!="constructor"&&u.push(l);return u}function Ht(i,u,l,g,I,y){var E=l&a,R=i.length,M=u.length;if(R!=M&&!(E&&M>R))return!1;var _=y.get(i);if(_&&y.get(u))return _==u;var j=-1,q=!0,x=l&o?new De:void 0;for(y.set(i,u),y.set(u,i);++j<R;){var L=i[j],H=u[j];if(g)var J=E?g(H,L,j,u,i,y):g(L,H,j,i,u,y);if(J!==void 0){if(J)continue;q=!1;break}if(x){if(!xn(u,function(K,ne){if(!Ln(x,ne)&&(L===K||I(L,K,l,g,y)))return x.push(ne)})){q=!1;break}}else if(!(L===H||I(L,H,l,g,y))){q=!1;break}}return y.delete(i),y.delete(u),q}function Ea(i,u,l,g,I,y,E){switch(l){case ye:if(i.byteLength!=u.byteLength||i.byteOffset!=u.byteOffset)return!1;i=i.buffer,u=u.buffer;case Ot:return!(i.byteLength!=u.byteLength||!y(new Mt(i),new Mt(u)));case v:case b:case N:return Ft(+i,+u);case O:return i.name==u.name&&i.message==u.message;case A:case k:return i==u+"";case C:var R=Un;case $:var M=g&a;if(R||(R=qn),i.size!=u.size&&!M)return!1;var _=E.get(i);if(_)return _==u;g|=o,E.set(i,u);var j=Ht(R(i),R(u),g,I,y,E);return E.delete(i),j;case Y:if(Ze)return Ze.call(i)==Ze.call(u)}return!1}function Pa(i,u,l,g,I,y){var E=l&a,R=Ut(i),M=R.length,_=Ut(u),j=_.length;if(M!=j&&!E)return!1;for(var q=M;q--;){var x=R[q];if(!(E?x in u:z.call(u,x)))return!1}var L=y.get(i);if(L&&y.get(u))return L==u;var H=!0;y.set(i,u),y.set(u,i);for(var J=E;++q<M;){x=R[q];var K=i[x],ne=u[x];if(g)var Wt=E?g(ne,K,x,u,i,y):g(K,ne,x,i,u,y);if(!(Wt===void 0?K===ne||I(K,ne,l,g,y):Wt)){H=!1;break}J||(J=x=="constructor")}if(H&&!J){var we=i.constructor,Ie=u.constructor;we!=Ie&&"constructor"in i&&"constructor"in u&&!(typeof we=="function"&&we instanceof we&&typeof Ie=="function"&&Ie instanceof Ie)&&(H=!1)}return y.delete(i),y.delete(u),H}function Ut(i){return Ta(i,Ua,ka)}function Oe(i,u){var l=i.__data__;return Ma(u)?l[typeof u=="string"?"string":"hash"]:l.map}function ie(i,u){var l=Hn(i,u);return Ia(l)?l:void 0}function Aa(i){var u=z.call(i,Z),l=i[Z];try{i[Z]=void 0;var g=!0}catch{}var I=kt.call(i);return g&&(u?i[Z]=l:delete i[Z]),I}var ka=xt?function(i){return i==null?[]:(i=Object(i),Mn(xt(i),function(u){return $t.call(i,u)}))}:Fa,Q=le;(Ye&&Q(new Ye(new ArrayBuffer(1)))!=ye||ce&&Q(new ce)!=C||Ve&&Q(Ve.resolve())!=T||Qe&&Q(new Qe)!=$||Je&&Q(new Je)!=se)&&(Q=function(i){var u=le(i),l=u==P?i.constructor:void 0,g=l?re(l):"";if(g)switch(g){case Yn:return ye;case Vn:return C;case Qn:return T;case Jn:return $;case Zn:return se}return u});function Ra(i,u){return u=u??s,!!u&&(typeof i=="number"||kn.test(i))&&i>-1&&i%1==0&&i<u}function Ma(i){var u=typeof i;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?i!=="__proto__":i===null}function $a(i){return!!At&&At in i}function xa(i){var u=i&&i.constructor,l=typeof u=="function"&&u.prototype||me;return i===l}function Na(i){return kt.call(i)}function re(i){if(i!=null){try{return Pt.call(i)}catch{}try{return i+""}catch{}}return""}function Ft(i,u){return i===u||i!==i&&u!==u}var ja=jt(function(){return arguments}())?jt:function(i){return de(i)&&z.call(i,"callee")&&!$t.call(i,"callee")},Te=Array.isArray;function La(i){return i!=null&&Gt(i.length)&&!qt(i)}var et=Xn||qa;function Ha(i,u){return Lt(i,u)}function qt(i){if(!zt(i))return!1;var u=le(i);return u==m||u==S||u==d||u==p}function Gt(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=s}function zt(i){var u=typeof i;return i!=null&&(u=="object"||u=="function")}function de(i){return i!=null&&typeof i=="object"}var Bt=Et?jn(Et):Ca;function Ua(i){return La(i)?Oa(i):_a(i)}function Fa(){return[]}function qa(){return!1}e.exports=Ha})(Le,Le.exports);var Wa=Le.exports;const As=Ga(Wa);var F;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(F||(F={}));function h(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];if(!e){var o;if(t===void 0)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=0;o=new Error(t.replace(/%s/g,function(){return n[s++]})),o.name="Invariant Violation"}throw o.framesToPop=1,o}}var gt="dnd-core/INIT_COORDS",qe="dnd-core/BEGIN_DRAG",ht="dnd-core/PUBLISH_DRAG_SOURCE",Ge="dnd-core/HOVER",ze="dnd-core/DROP",Be="dnd-core/END_DRAG";function Xt(e,t){return{type:gt,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}function Pe(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pe=function(r){return typeof r}:Pe=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Pe(e)}function Xa(e,t,r){return t.split(".").reduce(function(n,a){return n&&n[a]?n[a]:r||null},e)}function Ka(e,t){return e.filter(function(r){return r!==t})}function Br(e){return Pe(e)==="object"}function Ya(e,t){var r=new Map,n=function(s){r.set(s,r.has(s)?r.get(s)+1:1)};e.forEach(n),t.forEach(n);var a=[];return r.forEach(function(o,s){o===1&&a.push(s)}),a}function Va(e,t){return e.filter(function(r){return t.indexOf(r)>-1})}var Qa={type:gt,payload:{clientOffset:null,sourceClientOffset:null}};function Ja(e){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{publishSource:!0},a=n.publishSource,o=a===void 0?!0:a,s=n.clientOffset,c=n.getSourceClientOffset,f=e.getMonitor(),d=e.getRegistry();e.dispatch(Xt(s)),Za(r,f,d);var v=ri(r,f);if(v===null){e.dispatch(Qa);return}var b=null;if(s){if(!c)throw new Error("getSourceClientOffset must be defined");ei(c),b=c(v)}e.dispatch(Xt(s,b));var O=d.getSource(v),m=O.beginDrag(f,v);ti(m),d.pinSource(v);var S=d.getSourceType(v);return{type:qe,payload:{itemType:S,item:m,sourceId:v,clientOffset:s||null,sourceClientOffset:b||null,isSourcePublic:!!o}}}}function Za(e,t,r){h(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(n){h(r.getSource(n),"Expected sourceIds to be registered.")})}function ei(e){h(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function ti(e){h(Br(e),"Item must be an object.")}function ri(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 ni(e){return function(){var r=e.getMonitor();if(r.isDragging())return{type:ht}}}function ot(e,t){return t===null?e===null:Array.isArray(e)?e.some(function(r){return r===t}):e===t}function ai(e){return function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.clientOffset;ii(r);var o=r.slice(0),s=e.getMonitor(),c=e.getRegistry();oi(o,s,c);var f=s.getItemType();return ui(o,c,f),si(o,s,c),{type:Ge,payload:{targetIds:o,clientOffset:a||null}}}}function ii(e){h(Array.isArray(e),"Expected targetIds to be an array.")}function oi(e,t,r){h(t.isDragging(),"Cannot call hover while not dragging."),h(!t.didDrop(),"Cannot call hover after drop.");for(var n=0;n<e.length;n++){var a=e[n];h(e.lastIndexOf(a)===n,"Expected targetIds to be unique in the passed array.");var o=r.getTarget(a);h(o,"Expected targetIds to be registered.")}}function ui(e,t,r){for(var n=e.length-1;n>=0;n--){var a=e[n],o=t.getTargetType(a);ot(o,r)||e.splice(n,1)}}function si(e,t,r){e.forEach(function(n){var a=r.getTarget(n);a.hover(t,n)})}function Kt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Yt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kt(Object(r),!0).forEach(function(n){ci(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ci(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fi(e){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.getMonitor(),a=e.getRegistry();li(n);var o=hi(n);o.forEach(function(s,c){var f=di(s,c,a,n),d={type:ze,payload:{dropResult:Yt(Yt({},r),f)}};e.dispatch(d)})}}function li(e){h(e.isDragging(),"Cannot call drop while not dragging."),h(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function di(e,t,r,n){var a=r.getTarget(e),o=a?a.drop(n,e):void 0;return gi(o),typeof o>"u"&&(o=t===0?{}:n.getDropResult()),o}function gi(e){h(typeof e>"u"||Br(e),"Drop result must either be an object or undefined.")}function hi(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function pi(e){return function(){var r=e.getMonitor(),n=e.getRegistry();vi(r);var a=r.getSourceId();if(a!=null){var o=n.getSource(a,!0);o.endDrag(r,a),n.unpinSource()}return{type:Be}}}function vi(e){h(e.isDragging(),"Cannot call endDrag while not dragging.")}function yi(e){return{beginDrag:Ja(e),publishDragSource:ni(e),hover:ai(e),drop:fi(e),endDrag:pi(e)}}var mi=function(t,r){return t===r};function bi(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function Di(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:mi;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 Vt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Qt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vt(Object(r),!0).forEach(function(n){Si(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Si(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Jt={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Oi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Jt,t=arguments.length>1?arguments[1]:void 0,r=t.payload;switch(t.type){case gt:case qe:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case Ge:return bi(e.clientOffset,r.clientOffset)?e:Qt(Qt({},e),{},{clientOffset:r.clientOffset});case Be:case ze:return Jt;default:return e}}var pt="dnd-core/ADD_SOURCE",vt="dnd-core/ADD_TARGET",yt="dnd-core/REMOVE_SOURCE",We="dnd-core/REMOVE_TARGET";function Ti(e){return{type:pt,payload:{sourceId:e}}}function wi(e){return{type:vt,payload:{targetId:e}}}function Ii(e){return{type:yt,payload:{sourceId:e}}}function Ci(e){return{type:We,payload:{targetId:e}}}function Zt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function U(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zt(Object(r),!0).forEach(function(n){_i(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}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}var Ei={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Pi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ei,t=arguments.length>1?arguments[1]:void 0,r=t.payload;switch(t.type){case qe:return U(U({},e),{},{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case ht:return U(U({},e),{},{isSourcePublic:!0});case Ge:return U(U({},e),{},{targetIds:r.targetIds});case We:return e.targetIds.indexOf(r.targetId)===-1?e:U(U({},e),{},{targetIds:Ka(e.targetIds,r.targetId)});case ze:return U(U({},e),{},{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case Be:return U(U({},e),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function Ai(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case pt:case vt:return e+1;case yt:case We:return e-1;default:return e}}var He=[],mt=[];He.__IS_NONE__=!0;mt.__IS_ALL__=!0;function ki(e,t){if(e===He)return!1;if(e===mt||typeof t>"u")return!0;var r=Va(t,e);return r.length>0}function Ri(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case Ge:break;case pt:case vt:case We:case yt:return He;case qe:case ht:case Be:case ze:default:return mt}var t=e.payload,r=t.targetIds,n=r===void 0?[]:r,a=t.prevTargetIds,o=a===void 0?[]:a,s=Ya(n,o),c=s.length>0||!Di(n,o);if(!c)return He;var f=o[o.length-1],d=n[n.length-1];return f!==d&&(f&&s.push(f),d&&s.push(d)),s}function Mi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return e+1}function er(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function tr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?er(Object(r),!0).forEach(function(n){$i(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):er(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}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 xi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:Ri(e.dirtyHandlerIds,{type:t.type,payload:tr(tr({},t.payload),{},{prevTargetIds:Xa(e,"dragOperation.targetIds",[])})}),dragOffset:Oi(e.dragOffset,t),refCount:Ai(e.refCount,t),dragOperation:Pi(e.dragOperation,t),stateId:Mi(e.stateId)}}function Ni(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Wr(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ji(e){var t=e.clientOffset,r=e.initialClientOffset,n=e.initialSourceClientOffset;return!t||!r||!n?null:Wr(Ni(t,n),r)}function Li(e){var t=e.clientOffset,r=e.initialClientOffset;return!t||!r?null:Wr(t,r)}function Hi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rr(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 Ui(e,t,r){return t&&rr(e.prototype,t),r&&rr(e,r),e}var Fi=function(){function e(t,r){Hi(this,e),this.store=t,this.registry=r}return Ui(e,[{key:"subscribeToStateChange",value:function(r){var n=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{handlerIds:void 0},o=a.handlerIds;h(typeof r=="function","listener must be a function."),h(typeof o>"u"||Array.isArray(o),"handlerIds, when specified, must be an array of strings.");var s=this.store.getState().stateId,c=function(){var d=n.store.getState(),v=d.stateId;try{var b=v===s||v===s+1&&!ki(d.dirtyHandlerIds,o);b||r()}finally{s=v}};return this.store.subscribe(c)}},{key:"subscribeToOffsetChange",value:function(r){var n=this;h(typeof r=="function","listener must be a function.");var a=this.store.getState().dragOffset,o=function(){var c=n.store.getState().dragOffset;c!==a&&(a=c,r())};return this.store.subscribe(o)}},{key:"canDragSource",value:function(r){if(!r)return!1;var n=this.registry.getSource(r);return h(n,"Expected to find a valid source."),this.isDragging()?!1:n.canDrag(this,r)}},{key:"canDropOnTarget",value:function(r){if(!r)return!1;var n=this.registry.getTarget(r);if(h(n,"Expected to find a valid target."),!this.isDragging()||this.didDrop())return!1;var a=this.registry.getTargetType(r),o=this.getItemType();return ot(a,o)&&n.canDrop(this,r)}},{key:"isDragging",value:function(){return!!this.getItemType()}},{key:"isDraggingSource",value:function(r){if(!r)return!1;var n=this.registry.getSource(r,!0);if(h(n,"Expected to find a valid source."),!this.isDragging()||!this.isSourcePublic())return!1;var a=this.registry.getSourceType(r),o=this.getItemType();return a!==o?!1:n.isDragging(this,r)}},{key:"isOverTarget",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{shallow:!1};if(!r)return!1;var a=n.shallow;if(!this.isDragging())return!1;var o=this.registry.getTargetType(r),s=this.getItemType();if(s&&!ot(o,s))return!1;var c=this.getTargetIds();if(!c.length)return!1;var f=c.indexOf(r);return a?f===c.length-1:f>-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!!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 ji(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return Li(this.store.getState().dragOffset)}}]),e}(),qi=0;function Gi(){return qi++}function Ae(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ae=function(r){return typeof r}:Ae=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ae(e)}function zi(e){h(typeof e.canDrag=="function","Expected canDrag to be a function."),h(typeof e.beginDrag=="function","Expected beginDrag to be a function."),h(typeof e.endDrag=="function","Expected endDrag to be a function.")}function Bi(e){h(typeof e.canDrop=="function","Expected canDrop to be a function."),h(typeof e.hover=="function","Expected hover to be a function."),h(typeof e.drop=="function","Expected beginDrag to be a function.")}function ut(e,t){if(t&&Array.isArray(e)){e.forEach(function(r){return ut(r,!1)});return}h(typeof e=="string"||Ae(e)==="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}const nr=typeof je<"u"?je:self,Xr=nr.MutationObserver||nr.WebKitMutationObserver;function Kr(e){return function(){const r=setTimeout(a,0),n=setInterval(a,50);function a(){clearTimeout(r),clearInterval(n),e()}}}function Wi(e){let t=1;const r=new Xr(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}const Xi=typeof Xr=="function"?Wi:Kr;class Ki{enqueueTask(t){const{queue:r,requestFlush:n}=this;r.length||(n(),this.flushing=!0),r[r.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const r=this.index;if(this.index++,t[r].call(),this.index>this.capacity){for(let n=0,a=t.length-this.index;n<a;n++)t[n]=t[n+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=Xi(this.flush),this.requestErrorThrow=Kr(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class Yi{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,r){this.onError=t,this.release=r,this.task=null}}class Vi{create(t){const r=this.freeTasks,n=r.length?r.pop():new Yi(this.onError,a=>r[r.length]=a);return n.task=t,n}constructor(t){this.onError=t,this.freeTasks=[]}}const Yr=new Ki,Qi=new Vi(Yr.registerPendingError);function Ji(e){Yr.enqueueTask(Qi.create(e))}function Zi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ar(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 eo(e,t,r){return t&&ar(e.prototype,t),r&&ar(e,r),e}function to(e,t){return io(e)||ao(e,t)||no(e,t)||ro()}function ro(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function no(e,t){if(e){if(typeof e=="string")return ir(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ir(e,t)}}function ir(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ao(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,o=void 0;try{for(var s=e[Symbol.iterator](),c;!(n=(c=s.next()).done)&&(r.push(c.value),!(t&&r.length===t));n=!0);}catch(f){a=!0,o=f}finally{try{!n&&s.return!=null&&s.return()}finally{if(a)throw o}}return r}}function io(e){if(Array.isArray(e))return e}function oo(e){var t=Gi().toString();switch(e){case F.SOURCE:return"S".concat(t);case F.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}function or(e){switch(e[0]){case"S":return F.SOURCE;case"T":return F.TARGET;default:h(!1,"Cannot parse handler ID: ".concat(e))}}function ur(e,t){var r=e.entries(),n=!1;do{var a=r.next(),o=a.done,s=to(a.value,2),c=s[1];if(c===t)return!0;n=!!o}while(!n);return!1}var uo=function(){function e(t){Zi(this,e),this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}return eo(e,[{key:"addSource",value:function(r,n){ut(r),zi(n);var a=this.addHandler(F.SOURCE,r,n);return this.store.dispatch(Ti(a)),a}},{key:"addTarget",value:function(r,n){ut(r,!0),Bi(n);var a=this.addHandler(F.TARGET,r,n);return this.store.dispatch(wi(a)),a}},{key:"containsHandler",value:function(r){return ur(this.dragSources,r)||ur(this.dropTargets,r)}},{key:"getSource",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;h(this.isSourceId(r),"Expected a valid source ID.");var a=n&&r===this.pinnedSourceId,o=a?this.pinnedSource:this.dragSources.get(r);return o}},{key:"getTarget",value:function(r){return h(this.isTargetId(r),"Expected a valid target ID."),this.dropTargets.get(r)}},{key:"getSourceType",value:function(r){return h(this.isSourceId(r),"Expected a valid source ID."),this.types.get(r)}},{key:"getTargetType",value:function(r){return h(this.isTargetId(r),"Expected a valid target ID."),this.types.get(r)}},{key:"isSourceId",value:function(r){var n=or(r);return n===F.SOURCE}},{key:"isTargetId",value:function(r){var n=or(r);return n===F.TARGET}},{key:"removeSource",value:function(r){var n=this;h(this.getSource(r),"Expected an existing source."),this.store.dispatch(Ii(r)),Ji(function(){n.dragSources.delete(r),n.types.delete(r)})}},{key:"removeTarget",value:function(r){h(this.getTarget(r),"Expected an existing target."),this.store.dispatch(Ci(r)),this.dropTargets.delete(r),this.types.delete(r)}},{key:"pinSource",value:function(r){var n=this.getSource(r);h(n,"Expected an existing source."),this.pinnedSourceId=r,this.pinnedSource=n}},{key:"unpinSource",value:function(){h(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(r,n,a){var o=oo(r);return this.types.set(o,n),r===F.SOURCE?this.dragSources.set(o,a):r===F.TARGET&&this.dropTargets.set(o,a),o}}]),e}();function so(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sr(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 co(e,t,r){return t&&sr(e.prototype,t),r&&sr(e,r),e}function fo(e){var t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return Ba(xi,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}var lo=function(){function e(){var t=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;so(this,e),this.isSetUp=!1,this.handleRefCountChange=function(){var a=t.store.getState().refCount>0;t.backend&&(a&&!t.isSetUp?(t.backend.setup(),t.isSetUp=!0):!a&&t.isSetUp&&(t.backend.teardown(),t.isSetUp=!1))};var n=fo(r);this.store=n,this.monitor=new Fi(n,new uo(n)),n.subscribe(this.handleRefCountChange)}return co(e,[{key:"receiveBackend",value:function(r){this.backend=r}},{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 r=this,n=this.store.dispatch;function a(s){return function(){for(var c=arguments.length,f=new Array(c),d=0;d<c;d++)f[d]=arguments[d];var v=s.apply(r,f);typeof v<"u"&&n(v)}}var o=yi(this);return Object.keys(o).reduce(function(s,c){var f=o[c];return s[c]=a(f),s},{})}},{key:"dispatch",value:function(r){this.store.dispatch(r)}}]),e}();function go(e,t,r,n){var a=new lo(n),o=e(a,t,r);return a.receiveBackend(o),a}var ve=D.createContext({dragDropManager:void 0});function Vr(e,t,r,n){return{dragDropManager:go(e,t,r,n)}}function ho(e,t){return mo(e)||yo(e,t)||vo(e,t)||po()}function po(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vo(e,t){if(e){if(typeof e=="string")return cr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cr(e,t)}}function cr(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function yo(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,o=void 0;try{for(var s=e[Symbol.iterator](),c;!(n=(c=s.next()).done)&&(r.push(c.value),!(t&&r.length===t));n=!0);}catch(f){a=!0,o=f}finally{try{!n&&s.return!=null&&s.return()}finally{if(a)throw o}}return r}}function mo(e){if(Array.isArray(e))return e}function bo(e,t){if(e==null)return{};var r=Do(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Do(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var tt=0,Qr=D.memo(function(e){var t=e.children,r=bo(e,["children"]),n=So(r),a=ho(n,2),o=a[0],s=a[1];return D.useEffect(function(){return s&&tt++,function(){if(s&&(tt--,tt===0)){var c=Jr();c[ke]=null}}},[]),D.createElement(ve.Provider,{value:o},t)});Qr.displayName="DndProvider";function So(e){if("manager"in e){var t={dragDropManager:e.manager};return[t,!1]}var r=Oo(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[r,n]}var ke=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");function Oo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jr(),r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,a=t;return a[ke]||(a[ke]=Vr(e,t,r,n)),a[ke]}function Jr(){return typeof je<"u"?je:window}var Zr=D.memo(function(e){var t=e.connect,r=e.src;return D.useEffect(function(){if(!(typeof Image>"u")){var n=!1,a=new Image;return a.src=r,a.onload=function(){t(a),n=!0},function(){n&&t(null)}}}),null});Zr.displayName="DragPreviewImage";var ae=typeof window<"u"?D.useLayoutEffect:D.useEffect;function B(e,t,r,n){var a=r?r.call(n,e,t):void 0;if(a!==void 0)return!!a;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;var o=Object.keys(e),s=Object.keys(t);if(o.length!==s.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(t),f=0;f<o.length;f++){var d=o[f];if(!c(d))return!1;var v=e[d],b=t[d];if(a=r?r.call(n,v,b,d):void 0,a===!1||a===void 0&&v!==b)return!1}return!0}function To(e,t){return _o(e)||Co(e,t)||Io(e,t)||wo()}function wo(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
4
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Io(e,t){if(e){if(typeof e=="string")return fr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fr(e,t)}}function fr(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Co(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,o=void 0;try{for(var s=e[Symbol.iterator](),c;!(n=(c=s.next()).done)&&(r.push(c.value),!(t&&r.length===t));n=!0);}catch(f){a=!0,o=f}finally{try{!n&&s.return!=null&&s.return()}finally{if(a)throw o}}return r}}function _o(e){if(Array.isArray(e))return e}function en(e,t,r){var n=D.useState(function(){return t(e)}),a=To(n,2),o=a[0],s=a[1],c=D.useCallback(function(){var f=t(e);B(o,f)||(s(f),r&&r())},[o,e,r]);return ae(c,[]),[o,c]}function Eo(e,t){return Ro(e)||ko(e,t)||Ao(e,t)||Po()}function Po(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
5
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ao(e,t){if(e){if(typeof e=="string")return lr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lr(e,t)}}function lr(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ko(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,o=void 0;try{for(var s=e[Symbol.iterator](),c;!(n=(c=s.next()).done)&&(r.push(c.value),!(t&&r.length===t));n=!0);}catch(f){a=!0,o=f}finally{try{!n&&s.return!=null&&s.return()}finally{if(a)throw o}}return r}}function Ro(e){if(Array.isArray(e))return e}function tn(e,t,r){var n=en(e,t,r),a=Eo(n,2),o=a[0],s=a[1];return ae(function(){var f=e.getHandlerId();if(f!=null)return e.subscribeToStateChange(s,{handlerIds:[f]})},[e,s]),o}function rn(e,t,r){var n=r.getRegistry(),a=n.addTarget(e,t);return[a,function(){return n.removeTarget(a)}]}function nn(e,t,r){var n=r.getRegistry(),a=n.addSource(e,t);return[a,function(){return n.removeSource(a)}]}function oe(){var e=D.useContext(ve),t=e.dragDropManager;return h(t!=null,"Expected drag drop context"),t}function Mo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dr(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,r){return t&&dr(e.prototype,t),r&&dr(e,r),e}var rt=!1,nt=!1,an=function(){function e(t){Mo(this,e),this.sourceId=null,this.internalMonitor=t.getMonitor()}return $o(e,[{key:"receiveHandlerId",value:function(r){this.sourceId=r}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){h(!rt,"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 rt=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{rt=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;h(!nt,"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 nt=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{nt=!1}}},{key:"subscribeToStateChange",value:function(r,n){return this.internalMonitor.subscribeToStateChange(r,n)}},{key:"isDraggingSource",value:function(r){return this.internalMonitor.isDraggingSource(r)}},{key:"isOverTarget",value:function(r,n){return this.internalMonitor.isOverTarget(r,n)}},{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(r){return this.internalMonitor.subscribeToOffsetChange(r)}},{key:"canDragSource",value:function(r){return this.internalMonitor.canDragSource(r)}},{key:"canDropOnTarget",value:function(r){return this.internalMonitor.canDropOnTarget(r)}},{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()}}]),e}();function gr(e,t){typeof e=="function"?e(t):e.current=t}function xo(e,t){var r=e.ref;return h(typeof r!="string","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://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),r?D.cloneElement(e,{ref:function(a){gr(r,a),gr(t,a)}}):D.cloneElement(e,{ref:t})}function No(e){if(typeof e.type!="string"){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 jo(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!D.isValidElement(t)){var n=t;return e(n,r),n}var a=t;No(a);var o=r?function(s){return e(s,r)}:e;return xo(a,o)}}function on(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=jo(n);t[r]=function(){return a}}}),t}function Re(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Re=function(r){return typeof r}:Re=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Re(e)}function st(e){return e!==null&&Re(e)==="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Lo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hr(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 Ho(e,t,r){return t&&hr(e.prototype,t),r&&hr(e,r),e}var un=function(){function e(t){var r=this;Lo(this,e),this.hooks=on({dragSource:function(a,o){r.clearDragSource(),r.dragSourceOptions=o||null,st(a)?r.dragSourceRef=a:r.dragSourceNode=a,r.reconnectDragSource()},dragPreview:function(a,o){r.clearDragPreview(),r.dragPreviewOptions=o||null,st(a)?r.dragPreviewRef=a:r.dragPreviewNode=a,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}return Ho(e,[{key:"receiveHandlerId",value:function(r){this.handlerId!==r&&(this.handlerId=r,this.reconnect())}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var r=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();if(n&&this.disconnectDragSource(),!!this.handlerId){if(!r){this.lastConnectedDragSource=r;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=r,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,r,this.dragSourceOptions))}}},{key:"reconnectDragPreview",value:function(){var r=this.dragPreview,n=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(n&&this.disconnectDragPreview(),!!this.handlerId){if(!r){this.lastConnectedDragPreview=r;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=r,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,r,this.dragPreviewOptions))}}},{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!B(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!B(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:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(r){this.dragSourceOptionsInternal=r}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(r){this.dragPreviewOptionsInternal=r}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}}]),e}();function Uo(e,t){return zo(e)||Go(e,t)||qo(e,t)||Fo()}function Fo(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
6
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qo(e,t){if(e){if(typeof e=="string")return pr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pr(e,t)}}function pr(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Go(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,o=void 0;try{for(var s=e[Symbol.iterator](),c;!(n=(c=s.next()).done)&&(r.push(c.value),!(t&&r.length===t));n=!0);}catch(f){a=!0,o=f}finally{try{!n&&s.return!=null&&s.return()}finally{if(a)throw o}}return r}}function zo(e){if(Array.isArray(e))return e}function Me(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Me=function(r){return typeof r}:Me=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Me(e)}function Bo(){var e=oe(),t=D.useMemo(function(){return new an(e)},[e]),r=D.useMemo(function(){return new un(e.getBackend())},[e]);return[t,r]}function Wo(e,t,r){var n=oe(),a=D.useMemo(function(){return{beginDrag:function(){var s=e.current,c=s.begin,f=s.item;if(c){var d=c(t);return h(d==null||Me(d)==="object","dragSpec.begin() must either return an object, undefined, or null"),d||f||{}}return f||{}},canDrag:function(){return typeof e.current.canDrag=="boolean"?e.current.canDrag:typeof e.current.canDrag=="function"?e.current.canDrag(t):!0},isDragging:function(s,c){var f=e.current.isDragging;return f?f(t):c===s.getSourceId()},endDrag:function(){var s=e.current.end;s&&s(t.getItem(),t),r.reconnect()}}},[]);ae(function(){var s=nn(e.current.item.type,a,n),c=Uo(s,2),f=c[0],d=c[1];return t.receiveHandlerId(f),r.receiveHandlerId(f),d},[])}function Xo(e,t){return Qo(e)||Vo(e,t)||Yo(e,t)||Ko()}function Ko(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
7
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yo(e,t){if(e){if(typeof e=="string")return vr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vr(e,t)}}function vr(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Vo(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,o=void 0;try{for(var s=e[Symbol.iterator](),c;!(n=(c=s.next()).done)&&(r.push(c.value),!(t&&r.length===t));n=!0);}catch(f){a=!0,o=f}finally{try{!n&&s.return!=null&&s.return()}finally{if(a)throw o}}return r}}function Qo(e){if(Array.isArray(e))return e}function Jo(e){var t=D.useRef(e);t.current=e,h(e.item!=null,"item must be defined"),h(e.item.type!=null,"item type must be defined");var r=Bo(),n=Xo(r,2),a=n[0],o=n[1];Wo(t,a,o);var s=tn(a,t.current.collect||function(){return{}},function(){return o.reconnect()}),c=D.useMemo(function(){return o.hooks.dragSource()},[o]),f=D.useMemo(function(){return o.hooks.dragPreview()},[o]);return ae(function(){o.dragSourceOptions=t.current.options||null,o.reconnect()},[o]),ae(function(){o.dragPreviewOptions=t.current.previewOptions||null,o.reconnect()},[o]),[s,c,f]}function Zo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yr(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 eu(e,t,r){return t&&yr(e.prototype,t),r&&yr(e,r),e}var sn=function(){function e(t){var r=this;Zo(this,e),this.hooks=on({dropTarget:function(a,o){r.clearDropTarget(),r.dropTargetOptions=o,st(a)?r.dropTargetRef=a:r.dropTargetNode=a,r.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}return eu(e,[{key:"reconnect",value:function(){var r=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();r&&this.disconnectDropTarget();var n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions))}}},{key:"receiveHandlerId",value:function(r){r!==this.handlerId&&(this.handlerId=r,this.reconnect())}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!B(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}},{key:"connectTarget",get:function(){return this.dropTarget}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(r){this.dropTargetOptionsInternal=r}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}}]),e}();function tu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mr(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 ru(e,t,r){return t&&mr(e.prototype,t),r&&mr(e,r),e}var at=!1,cn=function(){function e(t){tu(this,e),this.targetId=null,this.internalMonitor=t.getMonitor()}return ru(e,[{key:"receiveHandlerId",value:function(r){this.targetId=r}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(r,n){return this.internalMonitor.subscribeToStateChange(r,n)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;h(!at,"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 at=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{at=!1}}},{key:"isOver",value:function(r){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,r):!1}},{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()}}]),e}();function nu(e,t){return uu(e)||ou(e,t)||iu(e,t)||au()}function au(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
8
8
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iu(e,t){if(e){if(typeof e=="string")return br(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return br(e,t)}}function br(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ou(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,o=void 0;try{for(var s=e[Symbol.iterator](),c;!(n=(c=s.next()).done)&&(r.push(c.value),!(t&&r.length===t));n=!0);}catch(f){a=!0,o=f}finally{try{!n&&s.return!=null&&s.return()}finally{if(a)throw o}}return r}}function uu(e){if(Array.isArray(e))return e}function su(){var e=oe(),t=D.useMemo(function(){return new cn(e)},[e]),r=D.useMemo(function(){return new sn(e.getBackend())},[e]);return[t,r]}function cu(e,t,r){var n=oe(),a=D.useMemo(function(){return{canDrop:function(){var s=e.current.canDrop;return s?s(t.getItem(),t):!0},hover:function(){var s=e.current.hover;s&&s(t.getItem(),t)},drop:function(){var s=e.current.drop;if(s)return s(t.getItem(),t)}}},[t]);ae(function(){var s=rn(e.current.accept,a,n),c=nu(s,2),f=c[0],d=c[1];return t.receiveHandlerId(f),r.receiveHandlerId(f),d},[t,r])}function fu(e,t){return hu(e)||gu(e,t)||du(e,t)||lu()}function lu(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
9
9
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function du(e,t){if(e){if(typeof e=="string")return Dr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Dr(e,t)}}function Dr(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function gu(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,o=void 0;try{for(var s=e[Symbol.iterator](),c;!(n=(c=s.next()).done)&&(r.push(c.value),!(t&&r.length===t));n=!0);}catch(f){a=!0,o=f}finally{try{!n&&s.return!=null&&s.return()}finally{if(a)throw o}}return r}}function hu(e){if(Array.isArray(e))return e}function pu(e){var t=D.useRef(e);t.current=e,h(e.accept!=null,"accept must be defined");var r=su(),n=fu(r,2),a=n[0],o=n[1];cu(t,a,o);var s=tn(a,t.current.collect||function(){return{}},function(){return o.reconnect()}),c=D.useMemo(function(){return o.hooks.dropTarget()},[o]);return ae(function(){o.dropTargetOptions=e.options||null,o.reconnect()},[e.options]),[s,c]}function vu(e,t){return Du(e)||bu(e,t)||mu(e,t)||yu()}function yu(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
10
10
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mu(e,t){if(e){if(typeof e=="string")return Sr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sr(e,t)}}function Sr(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function bu(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,o=void 0;try{for(var s=e[Symbol.iterator](),c;!(n=(c=s.next()).done)&&(r.push(c.value),!(t&&r.length===t));n=!0);}catch(f){a=!0,o=f}finally{try{!n&&s.return!=null&&s.return()}finally{if(a)throw o}}return r}}function Du(e){if(Array.isArray(e))return e}function Su(e){var t=oe(),r=t.getMonitor(),n=en(r,e),a=vu(n,2),o=a[0],s=a[1];return D.useEffect(function(){return r.subscribeToOffsetChange(s)}),D.useEffect(function(){return r.subscribeToStateChange(s)}),o}function $e(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$e=function(r){return typeof r}:$e=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},$e(e)}function Or(e){return typeof e=="function"}function Tr(){}function Ou(e){return $e(e)==="object"&&e!==null}function pe(e){if(!Ou(e))return!1;if(Object.getPrototypeOf(e)===null)return!0;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function fn(e){var t=e.current;return t==null?null:t.decoratedRef?t.decoratedRef.current:t}function Tu(e){return e&&e.prototype&&typeof e.prototype.render=="function"}function wu(e){var t,r=e;return(r==null||(t=r.$$typeof)===null||t===void 0?void 0:t.toString())==="Symbol(react.forward_ref)"}function ln(e){return Tu(e)||wu(e)}function bt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wr(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 Dt(e,t,r){return t&&wr(e.prototype,t),r&&wr(e,r),e}var Ir=function(){var e=function(){function t(r){bt(this,t),this.isDisposed=!1,this.action=Or(r)?r:Tr}return Dt(t,[{key:"dispose",value:function(){this.isDisposed||(this.action(),this.isDisposed=!0)}}],[{key:"isDisposable",value:function(n){return!!(n&&Or(n.dispose))}},{key:"_fixup",value:function(n){return t.isDisposable(n)?n:t.empty}},{key:"create",value:function(n){return new t(n)}}]),t}();return e.empty={dispose:Tr},e}(),Iu=function(){function e(){bt(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 Dt(e,[{key:"add",value:function(r){this.isDisposed?r.dispose():this.disposables.push(r)}},{key:"remove",value:function(r){var n=!1;if(!this.isDisposed){var a=this.disposables.indexOf(r);a!==-1&&(n=!0,this.disposables.splice(a,1),r.dispose())}return n}},{key:"clear",value:function(){if(!this.isDisposed){for(var r=this.disposables.length,n=new Array(r),a=0;a<r;a++)n[a]=this.disposables[a];this.disposables=[];for(var o=0;o<r;o++)n[o].dispose()}}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;for(var r=this.disposables.length,n=new Array(r),a=0;a<r;a++)n[a]=this.disposables[a];this.disposables=[];for(var o=0;o<r;o++)n[o].dispose()}}}]),e}(),Cr=function(){function e(){bt(this,e),this.isDisposed=!1}return Dt(e,[{key:"getDisposable",value:function(){return this.current}},{key:"setDisposable",value:function(r){var n=this.isDisposed;if(!n){var a=this.current;this.current=r,a&&a.dispose()}n&&r&&r.dispose()}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;var r=this.current;this.current=void 0,r&&r.dispose()}}}]),e}();function xe(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?xe=function(r){return typeof r}:xe=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},xe(e)}function Cu(e,t){return Au(e)||Pu(e,t)||Eu(e,t)||_u()}function _u(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
11
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Eu(e,t){if(e){if(typeof e=="string")return _r(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _r(e,t)}}function _r(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Pu(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,o=void 0;try{for(var s=e[Symbol.iterator](),c;!(n=(c=s.next()).done)&&(r.push(c.value),!(t&&r.length===t));n=!0);}catch(f){a=!0,o=f}finally{try{!n&&s.return!=null&&s.return()}finally{if(a)throw o}}return r}}function Au(e){if(Array.isArray(e))return e}function ku(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Er(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 Ru(e,t,r){return t&&Er(e.prototype,t),r&&Er(e,r),e}function Mu(e,t){if(typeof t!="function"&&t!==null)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&&ct(e,t)}function ct(e,t){return ct=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},ct(e,t)}function $u(e){var t=ju();return function(){var n=Ue(e),a;if(t){var o=Ue(this).constructor;a=Reflect.construct(n,arguments,o)}else a=n.apply(this,arguments);return xu(this,a)}}function xu(e,t){return t&&(xe(t)==="object"||typeof t=="function")?t:Nu(e)}function Nu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ju(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Ue(e){return Ue=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ue(e)}function dn(e){var t=e.DecoratedComponent,r=e.createHandler,n=e.createMonitor,a=e.createConnector,o=e.registerHandler,s=e.containerDisplayName,c=e.getType,f=e.collect,d=e.options,v=d.arePropsEqual,b=v===void 0?W:v,O=t,m=t.displayName||t.name||"Component",S=function(){var C=function(N){Mu(P,N);var G=$u(P);function P(T){var p;return ku(this,P),p=G.call(this,T),p.decoratedRef=D.createRef(),p.handleChange=function(){var A=p.getCurrentState();W(A,p.state)||p.setState(A)},p.disposable=new Cr,p.receiveProps(T),p.dispose(),p}return Ru(P,[{key:"getHandlerId",value:function(){return this.handlerId}},{key:"getDecoratedComponentInstance",value:function(){return h(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(p,A){return!b(p,this.props)||!W(A,this.state)}},{key:"componentDidMount",value:function(){this.disposable=new Cr,this.currentType=void 0,this.receiveProps(this.props),this.handleChange()}},{key:"componentDidUpdate",value:function(p){b(this.props,p)||(this.receiveProps(this.props),this.handleChange())}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"receiveProps",value:function(p){this.handler&&(this.handler.receiveProps(p),this.receiveType(c(p)))}},{key:"receiveType",value:function(p){if(!(!this.handlerMonitor||!this.manager||!this.handlerConnector)&&p!==this.currentType){this.currentType=p;var A=o(p,this.handler,this.manager),$=Cu(A,2),k=$[0],Y=$[1];this.handlerId=k,this.handlerMonitor.receiveHandlerId(k),this.handlerConnector.receiveHandlerId(k);var ue=this.manager.getMonitor(),se=ue.subscribeToStateChange(this.handleChange,{handlerIds:[k]});this.disposable.setDisposable(new Iu(new Ir(se),new Ir(Y)))}}},{key:"dispose",value:function(){this.disposable.dispose(),this.handlerConnector&&this.handlerConnector.receiveHandlerId(null)}},{key:"getCurrentState",value:function(){if(!this.handlerConnector)return{};var p=f(this.handlerConnector.hooks,this.handlerMonitor,this.props);return p}},{key:"render",value:function(){var p=this;return D.createElement(ve.Consumer,null,function(A){var $=A.dragDropManager;return p.receiveDragDropManager($),typeof requestAnimationFrame<"u"&&requestAnimationFrame(function(){var k;return(k=p.handlerConnector)===null||k===void 0?void 0:k.reconnect()}),D.createElement(O,Object.assign({},p.props,p.getCurrentState(),{ref:ln(O)?p.decoratedRef:null}))})}},{key:"receiveDragDropManager",value:function(p){this.manager===void 0&&(h(p!==void 0,"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",m,m),p!==void 0&&(this.manager=p,this.handlerMonitor=n(p),this.handlerConnector=a(p.getBackend()),this.handler=r(this.handlerMonitor,this.decoratedRef)))}}]),P}(D.Component);return C.DecoratedComponent=t,C.displayName="".concat(s,"(").concat(m,")"),C}();return Br(S,t)}function Ne(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ne=function(r){return typeof r}:Ne=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ne(e)}function St(e,t){return typeof e=="string"||Ne(e)==="symbol"||!!t&&Array.isArray(e)&&e.every(function(r){return St(r,!1)})}function Lu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pr(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 Hu(e,t,r){return t&&Pr(e.prototype,t),r&&Pr(e,r),e}var Ar=["canDrag","beginDrag","isDragging","endDrag"],Uu=["beginDrag"],Fu=function(){function e(t,r,n){var a=this;Lu(this,e),this.props=null,this.beginDrag=function(){if(a.props){var o=a.spec.beginDrag(a.props,a.monitor,a.ref.current);return o}},this.spec=t,this.monitor=r,this.ref=n}return Hu(e,[{key:"receiveProps",value:function(r){this.props=r}},{key:"canDrag",value:function(){return this.props?this.spec.canDrag?this.spec.canDrag(this.props,this.monitor):!0:!1}},{key:"isDragging",value:function(r,n){return this.props?this.spec.isDragging?this.spec.isDragging(this.props,this.monitor):n===r.getSourceId():!1}},{key:"endDrag",value:function(){this.props&&this.spec.endDrag&&this.spec.endDrag(this.props,this.monitor,fn(this.ref))}}]),e}();function qu(e){return Object.keys(e).forEach(function(t){h(Ar.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',Ar.join(", "),t),h(typeof e[t]=="function","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])}),Uu.forEach(function(t){h(typeof e[t]=="function","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(r,n){return new Fu(e,r,n)}}function Gu(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=e;typeof e!="function"&&(h(St(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),a=function(){return e}),h(pe(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 o=qu(t);return h(typeof r=="function",'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),h(pe(n),'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(c){return dn({containerDisplayName:"DragSource",createHandler:o,registerHandler:nn,createConnector:function(d){return new un(d)},createMonitor:function(d){return new an(d)},DecoratedComponent:c,getType:a,collect:r,options:n})}}function Bu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kr(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 Wu(e,t,r){return t&&kr(e.prototype,t),r&&kr(e,r),e}var Rr=["canDrop","hover","drop"],zu=function(){function e(t,r,n){Bu(this,e),this.props=null,this.spec=t,this.monitor=r,this.ref=n}return Wu(e,[{key:"receiveProps",value:function(r){this.props=r}},{key:"receiveMonitor",value:function(r){this.monitor=r}},{key:"canDrop",value:function(){return this.spec.canDrop?this.spec.canDrop(this.props,this.monitor):!0}},{key:"hover",value:function(){!this.spec.hover||!this.props||this.spec.hover(this.props,this.monitor,fn(this.ref))}},{key:"drop",value:function(){if(this.spec.drop){var r=this.spec.drop(this.props,this.monitor,this.ref.current);return r}}}]),e}();function Ku(e){return Object.keys(e).forEach(function(t){h(Rr.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',Rr.join(", "),t),h(typeof e[t]=="function","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(r,n){return new zu(e,r,n)}}function Xu(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=e;typeof e!="function"&&(h(St(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),a=function(){return e}),h(pe(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 o=Ku(t);return h(typeof r=="function",'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),h(pe(n),'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(c){return dn({containerDisplayName:"DropTarget",createHandler:o,registerHandler:rn,createMonitor:function(d){return new cn(d)},createConnector:function(d){return new sn(d)},DecoratedComponent:c,getType:a,collect:r,options:n})}}function he(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?he=function(r){return typeof r}:he=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},he(e)}function Yu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mr(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 Vu(e,t,r){return t&&Mr(e.prototype,t),r&&Mr(e,r),e}function Qu(e,t){if(typeof t!="function"&&t!==null)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&&ft(e,t)}function ft(e,t){return ft=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},ft(e,t)}function Ju(e){var t=ts();return function(){var n=Fe(e),a;if(t){var o=Fe(this).constructor;a=Reflect.construct(n,arguments,o)}else a=n.apply(this,arguments);return Zu(this,a)}}function Zu(e,t){return t&&(he(t)==="object"||typeof t=="function")?t:es(e)}function es(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ts(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Fe(e){return Fe=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Fe(e)}function rs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return h(typeof e=="function",'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ',"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer",e),h(pe(t),'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer',t),function(n){var a=n,o=t.arePropsEqual,s=o===void 0?W:o,c=a.displayName||a.name||"Component",f=function(){var d=function(v){Qu(O,v);var b=Ju(O);function O(){var m;return Yu(this,O),m=b.apply(this,arguments),m.isCurrentlyMounted=!1,m.ref=D.createRef(),m.handleChange=function(){if(m.isCurrentlyMounted){var S=m.getCurrentState();W(S,m.state)||m.setState(S)}},m}return Vu(O,[{key:"getDecoratedComponentInstance",value:function(){return h(this.ref.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.ref.current}},{key:"shouldComponentUpdate",value:function(S,C){return!s(S,this.props)||!W(C,this.state)}},{key:"componentDidMount",value:function(){this.isCurrentlyMounted=!0,this.handleChange()}},{key:"componentWillUnmount",value:function(){this.isCurrentlyMounted=!1,this.unsubscribeFromOffsetChange&&(this.unsubscribeFromOffsetChange(),this.unsubscribeFromOffsetChange=void 0),this.unsubscribeFromStateChange&&(this.unsubscribeFromStateChange(),this.unsubscribeFromStateChange=void 0)}},{key:"render",value:function(){var S=this;return D.createElement(ve.Consumer,null,function(C){var N=C.dragDropManager;return N===void 0||(S.receiveDragDropManager(N),!S.isCurrentlyMounted)?null:D.createElement(a,Object.assign({},S.props,S.state,{ref:ln(a)?S.ref:null}))})}},{key:"receiveDragDropManager",value:function(S){if(this.manager===void 0){this.manager=S,h(he(S)==="object","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",c,c);var C=this.manager.getMonitor();this.unsubscribeFromOffsetChange=C.subscribeToOffsetChange(this.handleChange),this.unsubscribeFromStateChange=C.subscribeToStateChange(this.handleChange)}}},{key:"getCurrentState",value:function(){if(!this.manager)return{};var S=this.manager.getMonitor();return e(S,this.props)}}]),O}(D.Component);return d.displayName="DragLayer(".concat(c,")"),d.DecoratedComponent=n,d}();return Br(f,n)}}const ns=Object.freeze(Object.defineProperty({__proto__:null,DndContext:ve,DndProvider:Qr,DragLayer:rs,DragPreviewImage:Zr,DragSource:Gu,DropTarget:Xu,createDndContext:Vr,useDrag:Jo,useDragDropManager:oe,useDragLayer:Su,useDrop:pu},Symbol.toStringTag,{value:"Module"})),ks=Ba(ns);function gn(e){var t=null,r=function(){return t==null&&(t=e()),t};return r}function as(e,t){return e.filter(function(r){return r!==t})}function is(e,t){var r=new Set,n=function(s){return r.add(s)};e.forEach(n),t.forEach(n);var a=[];return r.forEach(function(o){return a.push(o)}),a}function os(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $r(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 us(e,t,r){return t&&$r(e.prototype,t),r&&$r(e,r),e}var ss=function(){function e(t){os(this,e),this.entered=[],this.isNodeInDocument=t}return us(e,[{key:"enter",value:function(r){var n=this,a=this.entered.length,o=function(c){return n.isNodeInDocument(c)&&(!c.contains||c.contains(r))};return this.entered=is(this.entered.filter(o),[r]),a===0&&this.entered.length>0}},{key:"leave",value:function(r){var n=this.entered.length;return this.entered=as(this.entered.filter(this.isNodeInDocument),r),n>0&&this.entered.length===0}},{key:"reset",value:function(){this.entered=[]}}]),e}(),hn=gn(function(){return/firefox/i.test(navigator.userAgent)}),pn=gn(function(){return!!window.safari});function cs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xr(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 fs(e,t,r){return t&&xr(e.prototype,t),r&&xr(e,r),e}var Nr=function(){function e(t,r){cs(this,e);for(var n=t.length,a=[],o=0;o<n;o++)a.push(o);a.sort(function(Y,ue){return t[Y]<t[ue]?-1:1});for(var s=[],c=[],f,d,v=0;v<n-1;v++)f=t[v+1]-t[v],d=r[v+1]-r[v],s.push(f),c.push(d/f);for(var b=[c[0]],O=0;O<s.length-1;O++){var m=c[O],S=c[O+1];if(m*S<=0)b.push(0);else{f=s[O];var C=s[O+1],N=f+C;b.push(3*N/((N+C)/m+(N+f)/S))}}b.push(c[c.length-1]);for(var G=[],P=[],T,p=0;p<b.length-1;p++){T=c[p];var A=b[p],$=1/s[p],k=A+b[p+1]-T-T;G.push((T-A-k)*$),P.push(k*$*$)}this.xs=t,this.ys=r,this.c1s=b,this.c2s=G,this.c3s=P}return fs(e,[{key:"interpolate",value:function(r){var n=this.xs,a=this.ys,o=this.c1s,s=this.c2s,c=this.c3s,f=n.length-1;if(r===n[f])return a[f];for(var d=0,v=c.length-1,b;d<=v;){b=Math.floor(.5*(d+v));var O=n[b];if(O<r)d=b+1;else if(O>r)v=b-1;else return a[b]}f=Math.max(0,v);var m=r-n[f],S=m*m;return a[f]+o[f]*m+s[f]*S+c[f]*m*S}}]),e}(),ls=1;function vn(e){var t=e.nodeType===ls?e:e.parentElement;if(!t)return null;var r=t.getBoundingClientRect(),n=r.top,a=r.left;return{x:a,y:n}}function _e(e){return{x:e.clientX,y:e.clientY}}function ds(e){var t;return e.nodeName==="IMG"&&(hn()||!(!((t=document.documentElement)===null||t===void 0)&&t.contains(e)))}function gs(e,t,r,n){var a=e?t.width:r,o=e?t.height:n;return pn()&&e&&(o/=window.devicePixelRatio,a/=window.devicePixelRatio),{dragPreviewWidth:a,dragPreviewHeight:o}}function hs(e,t,r,n,a){var o=ds(t),s=o?e:t,c=vn(s),f={x:r.x-c.x,y:r.y-c.y},d=e.offsetWidth,v=e.offsetHeight,b=n.anchorX,O=n.anchorY,m=gs(o,t,d,v),S=m.dragPreviewWidth,C=m.dragPreviewHeight,N=function(){var k=new Nr([0,.5,1],[f.y,f.y/v*C,f.y+C-v]),Y=k.interpolate(O);return pn()&&o&&(Y+=(window.devicePixelRatio-1)*C),Y},G=function(){var k=new Nr([0,.5,1],[f.x,f.x/d*S,f.x+S-d]);return k.interpolate(b)},P=a.offsetX,T=a.offsetY,p=P===0||P,A=T===0||T;return{x:p?P:G(),y:A?T:N()}}var yn="__NATIVE_FILE__",mn="__NATIVE_URL__",bn="__NATIVE_TEXT__";const lt=Object.freeze(Object.defineProperty({__proto__:null,FILE:yn,TEXT:bn,URL:mn},Symbol.toStringTag,{value:"Module"}));function jr(e,t,r){var n=t.reduce(function(a,o){return a||e.getData(o)},"");return n??r}var ge;function it(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var dt=(ge={},it(ge,yn,{exposeProperties:{files:function(t){return Array.prototype.slice.call(t.files)},items:function(t){return t.items}},matchesTypes:["Files"]}),it(ge,mn,{exposeProperties:{urls:function(t,r){return jr(t,r,"").split(`
|
|
12
|
-
`)}},matchesTypes:["Url","text/uri-list"]}),it(ge,bn,{exposeProperties:{text:function(t,r){return jr(t,r,"")}},matchesTypes:["Text","text/plain"]}),ge);function ps(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lr(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 vs(e,t,r){return t&&Lr(e.prototype,t),r&&Lr(e,r),e}var ys=function(){function e(t){ps(this,e),this.config=t,this.item={},this.initializeExposedProperties()}return vs(e,[{key:"initializeExposedProperties",value:function(){var r=this;Object.keys(this.config.exposeProperties).forEach(function(n){Object.defineProperty(r.item,n,{configurable:!0,enumerable:!0,get:function(){return console.warn(`Browser doesn't allow reading "`.concat(n,'" until the drop event.')),null}})})}},{key:"loadDataTransfer",value:function(r){var n=this;if(r){var a={};Object.keys(this.config.exposeProperties).forEach(function(o){a[o]={value:n.config.exposeProperties[o](r,n.config.matchesTypes),configurable:!0,enumerable:!0}}),Object.defineProperties(this.item,a)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(r,n){return n===r.getSourceId()}},{key:"endDrag",value:function(){}}]),e}();function ms(e,t){var r=new ys(dt[e]);return r.loadDataTransfer(t),r}function Hr(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(dt).filter(function(r){var n=dt[r].matchesTypes;return n.some(function(a){return t.indexOf(a)>-1})})[0]||null}function bs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ur(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 Ds(e,t,r){return t&&Ur(e.prototype,t),r&&Ur(e,r),e}var Ss=function(){function e(t){bs(this,e),this.globalContext=t}return Ds(e,[{key:"window",get:function(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}},{key:"document",get:function(){if(this.window)return this.window.document}}]),e}();function Fr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function qr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fr(Object(r),!0).forEach(function(n){Os(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fr(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Os(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ts(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gr(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 ws(e,t,r){return t&&Gr(e.prototype,t),r&&Gr(e,r),e}var Is=function(){function e(t,r){var n=this;Ts(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(a){var o=n.sourceNodes.get(a);return o&&vn(o)||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(a){return!!(a&&n.document&&n.document.body&&document.body.contains(a))},this.endDragIfSourceWasRemovedFromDOM=function(){var a=n.currentDragSourceNode;n.isNodeInDocument(a)||n.clearCurrentDragSourceNode()&&n.actions.endDrag()},this.handleTopDragStartCapture=function(){n.clearCurrentDragSourceNode(),n.dragStartSourceIds=[]},this.handleTopDragStart=function(a){if(!a.defaultPrevented){var o=n.dragStartSourceIds;n.dragStartSourceIds=null;var s=_e(a);n.monitor.isDragging()&&n.actions.endDrag(),n.actions.beginDrag(o||[],{publishSource:!1,getSourceClientOffset:n.getSourceClientOffset,clientOffset:s});var c=a.dataTransfer,f=Hr(c);if(n.monitor.isDragging()){if(c&&typeof c.setDragImage=="function"){var d=n.monitor.getSourceId(),v=n.sourceNodes.get(d),b=n.sourcePreviewNodes.get(d)||v;if(b){var O=n.getCurrentSourcePreviewNodeOptions(),m=O.anchorX,S=O.anchorY,C=O.offsetX,N=O.offsetY,G={anchorX:m,anchorY:S},P={offsetX:C,offsetY:N},T=hs(v,b,s,G,P);c.setDragImage(b,T.x,T.y)}}try{c==null||c.setData("application/json",{})}catch{}n.setCurrentDragSourceNode(a.target);var p=n.getCurrentSourcePreviewNodeOptions(),A=p.captureDraggingState;A?n.actions.publishDragSource():setTimeout(function(){return n.actions.publishDragSource()},0)}else if(f)n.beginDragNativeItem(f);else{if(c&&!c.types&&(a.target&&!a.target.hasAttribute||!a.target.hasAttribute("draggable")))return;a.preventDefault()}}},this.handleTopDragEndCapture=function(){n.clearCurrentDragSourceNode()&&n.actions.endDrag()},this.handleTopDragEnterCapture=function(a){n.dragEnterTargetIds=[];var o=n.enterLeaveCounter.enter(a.target);if(!(!o||n.monitor.isDragging())){var s=a.dataTransfer,c=Hr(s);c&&n.beginDragNativeItem(c,s)}},this.handleTopDragEnter=function(a){var o=n.dragEnterTargetIds;if(n.dragEnterTargetIds=[],!!n.monitor.isDragging()){n.altKeyPressed=a.altKey,hn()||n.actions.hover(o,{clientOffset:_e(a)});var s=o.some(function(c){return n.monitor.canDropOnTarget(c)});s&&(a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect=n.getCurrentDropEffect()))}},this.handleTopDragOverCapture=function(){n.dragOverTargetIds=[]},this.handleTopDragOver=function(a){var o=n.dragOverTargetIds;if(n.dragOverTargetIds=[],!n.monitor.isDragging()){a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect="none");return}n.altKeyPressed=a.altKey,n.actions.hover(o||[],{clientOffset:_e(a)});var s=(o||[]).some(function(c){return n.monitor.canDropOnTarget(c)});s?(a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect=n.getCurrentDropEffect())):n.isDraggingNativeItem()?a.preventDefault():(a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=function(a){n.isDraggingNativeItem()&&a.preventDefault();var o=n.enterLeaveCounter.leave(a.target);o&&n.isDraggingNativeItem()&&n.endDragNativeItem()},this.handleTopDropCapture=function(a){if(n.dropTargetIds=[],a.preventDefault(),n.isDraggingNativeItem()){var o;(o=n.currentNativeSource)===null||o===void 0||o.loadDataTransfer(a.dataTransfer)}n.enterLeaveCounter.reset()},this.handleTopDrop=function(a){var o=n.dropTargetIds;n.dropTargetIds=[],n.actions.hover(o,{clientOffset:_e(a)}),n.actions.drop({dropEffect:n.getCurrentDropEffect()}),n.isDraggingNativeItem()?n.endDragNativeItem():n.endDragIfSourceWasRemovedFromDOM()},this.handleSelectStart=function(a){var o=a.target;typeof o.dragDrop=="function"&&(o.tagName==="INPUT"||o.tagName==="SELECT"||o.tagName==="TEXTAREA"||o.isContentEditable||(a.preventDefault(),o.dragDrop()))},this.options=new Ss(r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new ss(this.isNodeInDocument)}return ws(e,[{key:"profile",value:function(){var r,n;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((r=this.dragStartSourceIds)===null||r===void 0?void 0:r.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((n=this.dragOverTargetIds)===null||n===void 0?void 0:n.length)||0}}},{key:"setup",value:function(){if(this.window!==void 0){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(){this.window!==void 0&&(this.window.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.window),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&this.window.cancelAnimationFrame(this.asyncEndDragFrameId))}},{key:"connectDragPreview",value:function(r,n,a){var o=this;return this.sourcePreviewNodeOptions.set(r,a),this.sourcePreviewNodes.set(r,n),function(){o.sourcePreviewNodes.delete(r),o.sourcePreviewNodeOptions.delete(r)}}},{key:"connectDragSource",value:function(r,n,a){var o=this;this.sourceNodes.set(r,n),this.sourceNodeOptions.set(r,a);var s=function(d){return o.handleDragStart(d,r)},c=function(d){return o.handleSelectStart(d)};return n.setAttribute("draggable","true"),n.addEventListener("dragstart",s),n.addEventListener("selectstart",c),function(){o.sourceNodes.delete(r),o.sourceNodeOptions.delete(r),n.removeEventListener("dragstart",s),n.removeEventListener("selectstart",c),n.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(r,n){var a=this,o=function(d){return a.handleDragEnter(d,r)},s=function(d){return a.handleDragOver(d,r)},c=function(d){return a.handleDrop(d,r)};return n.addEventListener("dragenter",o),n.addEventListener("dragover",s),n.addEventListener("drop",c),function(){n.removeEventListener("dragenter",o),n.removeEventListener("dragover",s),n.removeEventListener("drop",c)}}},{key:"addEventListeners",value:function(r){r.addEventListener&&(r.addEventListener("dragstart",this.handleTopDragStart),r.addEventListener("dragstart",this.handleTopDragStartCapture,!0),r.addEventListener("dragend",this.handleTopDragEndCapture,!0),r.addEventListener("dragenter",this.handleTopDragEnter),r.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),r.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),r.addEventListener("dragover",this.handleTopDragOver),r.addEventListener("dragover",this.handleTopDragOverCapture,!0),r.addEventListener("drop",this.handleTopDrop),r.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(r){r.removeEventListener&&(r.removeEventListener("dragstart",this.handleTopDragStart),r.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),r.removeEventListener("dragend",this.handleTopDragEndCapture,!0),r.removeEventListener("dragenter",this.handleTopDragEnter),r.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),r.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),r.removeEventListener("dragover",this.handleTopDragOver),r.removeEventListener("dragover",this.handleTopDragOverCapture,!0),r.removeEventListener("drop",this.handleTopDrop),r.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var r=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(r);return qr({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var r=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(r);return qr({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}},{key:"isDraggingNativeItem",value:function(){var r=this.monitor.getItemType();return Object.keys(lt).some(function(n){return lt[n]===r})}},{key:"beginDragNativeItem",value:function(r,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=ms(r,n),this.currentNativeHandle=this.registry.addSource(r,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(r){var n=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=r;var a=1e3;this.mouseMoveTimeoutTimer=setTimeout(function(){return n.window&&n.window.addEventListener("mousemove",n.endDragIfSourceWasRemovedFromDOM,!0)},a)}},{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):!1}},{key:"handleDragStart",value:function(r,n){r.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}},{key:"handleDragEnter",value:function(r,n){this.dragEnterTargetIds.unshift(n)}},{key:"handleDragOver",value:function(r,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}},{key:"handleDrop",value:function(r,n){this.dropTargetIds.unshift(n)}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}}]),e}(),Ee;function Cs(){return Ee||(Ee=new Image,Ee.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),Ee}var _s=function(t,r){return new Is(t,r)};const Rs=Object.freeze(Object.defineProperty({__proto__:null,HTML5Backend:_s,NativeTypes:lt,getEmptyImage:Cs},Symbol.toStringTag,{value:"Module"}));export{Qr as D,_s as H,Jo as a,ve as b,Gu as c,Xu as d,Rs as e,As as i,za as l,ks as r,pu as u};
|
|
11
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Eu(e,t){if(e){if(typeof e=="string")return _r(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _r(e,t)}}function _r(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Pu(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,o=void 0;try{for(var s=e[Symbol.iterator](),c;!(n=(c=s.next()).done)&&(r.push(c.value),!(t&&r.length===t));n=!0);}catch(f){a=!0,o=f}finally{try{!n&&s.return!=null&&s.return()}finally{if(a)throw o}}return r}}function Au(e){if(Array.isArray(e))return e}function ku(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Er(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 Ru(e,t,r){return t&&Er(e.prototype,t),r&&Er(e,r),e}function Mu(e,t){if(typeof t!="function"&&t!==null)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&&ct(e,t)}function ct(e,t){return ct=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},ct(e,t)}function $u(e){var t=ju();return function(){var n=Ue(e),a;if(t){var o=Ue(this).constructor;a=Reflect.construct(n,arguments,o)}else a=n.apply(this,arguments);return xu(this,a)}}function xu(e,t){return t&&(xe(t)==="object"||typeof t=="function")?t:Nu(e)}function Nu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ju(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Ue(e){return Ue=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ue(e)}function dn(e){var t=e.DecoratedComponent,r=e.createHandler,n=e.createMonitor,a=e.createConnector,o=e.registerHandler,s=e.containerDisplayName,c=e.getType,f=e.collect,d=e.options,v=d.arePropsEqual,b=v===void 0?B:v,O=t,m=t.displayName||t.name||"Component",S=function(){var C=function(N){Mu(P,N);var G=$u(P);function P(T){var p;return ku(this,P),p=G.call(this,T),p.decoratedRef=D.createRef(),p.handleChange=function(){var A=p.getCurrentState();B(A,p.state)||p.setState(A)},p.disposable=new Cr,p.receiveProps(T),p.dispose(),p}return Ru(P,[{key:"getHandlerId",value:function(){return this.handlerId}},{key:"getDecoratedComponentInstance",value:function(){return h(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(p,A){return!b(p,this.props)||!B(A,this.state)}},{key:"componentDidMount",value:function(){this.disposable=new Cr,this.currentType=void 0,this.receiveProps(this.props),this.handleChange()}},{key:"componentDidUpdate",value:function(p){b(this.props,p)||(this.receiveProps(this.props),this.handleChange())}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"receiveProps",value:function(p){this.handler&&(this.handler.receiveProps(p),this.receiveType(c(p)))}},{key:"receiveType",value:function(p){if(!(!this.handlerMonitor||!this.manager||!this.handlerConnector)&&p!==this.currentType){this.currentType=p;var A=o(p,this.handler,this.manager),$=Cu(A,2),k=$[0],Y=$[1];this.handlerId=k,this.handlerMonitor.receiveHandlerId(k),this.handlerConnector.receiveHandlerId(k);var ue=this.manager.getMonitor(),se=ue.subscribeToStateChange(this.handleChange,{handlerIds:[k]});this.disposable.setDisposable(new Iu(new Ir(se),new Ir(Y)))}}},{key:"dispose",value:function(){this.disposable.dispose(),this.handlerConnector&&this.handlerConnector.receiveHandlerId(null)}},{key:"getCurrentState",value:function(){if(!this.handlerConnector)return{};var p=f(this.handlerConnector.hooks,this.handlerMonitor,this.props);return p}},{key:"render",value:function(){var p=this;return D.createElement(ve.Consumer,null,function(A){var $=A.dragDropManager;return p.receiveDragDropManager($),typeof requestAnimationFrame<"u"&&requestAnimationFrame(function(){var k;return(k=p.handlerConnector)===null||k===void 0?void 0:k.reconnect()}),D.createElement(O,Object.assign({},p.props,p.getCurrentState(),{ref:ln(O)?p.decoratedRef:null}))})}},{key:"receiveDragDropManager",value:function(p){this.manager===void 0&&(h(p!==void 0,"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",m,m),p!==void 0&&(this.manager=p,this.handlerMonitor=n(p),this.handlerConnector=a(p.getBackend()),this.handler=r(this.handlerMonitor,this.decoratedRef)))}}]),P}(D.Component);return C.DecoratedComponent=t,C.displayName="".concat(s,"(").concat(m,")"),C}();return zr(S,t)}function Ne(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ne=function(r){return typeof r}:Ne=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ne(e)}function St(e,t){return typeof e=="string"||Ne(e)==="symbol"||!!t&&Array.isArray(e)&&e.every(function(r){return St(r,!1)})}function Lu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pr(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 Hu(e,t,r){return t&&Pr(e.prototype,t),r&&Pr(e,r),e}var Ar=["canDrag","beginDrag","isDragging","endDrag"],Uu=["beginDrag"],Fu=function(){function e(t,r,n){var a=this;Lu(this,e),this.props=null,this.beginDrag=function(){if(a.props){var o=a.spec.beginDrag(a.props,a.monitor,a.ref.current);return o}},this.spec=t,this.monitor=r,this.ref=n}return Hu(e,[{key:"receiveProps",value:function(r){this.props=r}},{key:"canDrag",value:function(){return this.props?this.spec.canDrag?this.spec.canDrag(this.props,this.monitor):!0:!1}},{key:"isDragging",value:function(r,n){return this.props?this.spec.isDragging?this.spec.isDragging(this.props,this.monitor):n===r.getSourceId():!1}},{key:"endDrag",value:function(){this.props&&this.spec.endDrag&&this.spec.endDrag(this.props,this.monitor,fn(this.ref))}}]),e}();function qu(e){return Object.keys(e).forEach(function(t){h(Ar.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',Ar.join(", "),t),h(typeof e[t]=="function","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])}),Uu.forEach(function(t){h(typeof e[t]=="function","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(r,n){return new Fu(e,r,n)}}function Gu(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=e;typeof e!="function"&&(h(St(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),a=function(){return e}),h(pe(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 o=qu(t);return h(typeof r=="function",'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),h(pe(n),'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(c){return dn({containerDisplayName:"DragSource",createHandler:o,registerHandler:nn,createConnector:function(d){return new un(d)},createMonitor:function(d){return new an(d)},DecoratedComponent:c,getType:a,collect:r,options:n})}}function zu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kr(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 Bu(e,t,r){return t&&kr(e.prototype,t),r&&kr(e,r),e}var Rr=["canDrop","hover","drop"],Wu=function(){function e(t,r,n){zu(this,e),this.props=null,this.spec=t,this.monitor=r,this.ref=n}return Bu(e,[{key:"receiveProps",value:function(r){this.props=r}},{key:"receiveMonitor",value:function(r){this.monitor=r}},{key:"canDrop",value:function(){return this.spec.canDrop?this.spec.canDrop(this.props,this.monitor):!0}},{key:"hover",value:function(){!this.spec.hover||!this.props||this.spec.hover(this.props,this.monitor,fn(this.ref))}},{key:"drop",value:function(){if(this.spec.drop){var r=this.spec.drop(this.props,this.monitor,this.ref.current);return r}}}]),e}();function Xu(e){return Object.keys(e).forEach(function(t){h(Rr.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',Rr.join(", "),t),h(typeof e[t]=="function","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(r,n){return new Wu(e,r,n)}}function Ku(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=e;typeof e!="function"&&(h(St(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),a=function(){return e}),h(pe(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 o=Xu(t);return h(typeof r=="function",'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),h(pe(n),'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(c){return dn({containerDisplayName:"DropTarget",createHandler:o,registerHandler:rn,createMonitor:function(d){return new cn(d)},createConnector:function(d){return new sn(d)},DecoratedComponent:c,getType:a,collect:r,options:n})}}function he(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?he=function(r){return typeof r}:he=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},he(e)}function Yu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mr(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 Vu(e,t,r){return t&&Mr(e.prototype,t),r&&Mr(e,r),e}function Qu(e,t){if(typeof t!="function"&&t!==null)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&&ft(e,t)}function ft(e,t){return ft=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},ft(e,t)}function Ju(e){var t=ts();return function(){var n=Fe(e),a;if(t){var o=Fe(this).constructor;a=Reflect.construct(n,arguments,o)}else a=n.apply(this,arguments);return Zu(this,a)}}function Zu(e,t){return t&&(he(t)==="object"||typeof t=="function")?t:es(e)}function es(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ts(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Fe(e){return Fe=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Fe(e)}function rs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return h(typeof e=="function",'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ',"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer",e),h(pe(t),'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer',t),function(n){var a=n,o=t.arePropsEqual,s=o===void 0?B:o,c=a.displayName||a.name||"Component",f=function(){var d=function(v){Qu(O,v);var b=Ju(O);function O(){var m;return Yu(this,O),m=b.apply(this,arguments),m.isCurrentlyMounted=!1,m.ref=D.createRef(),m.handleChange=function(){if(m.isCurrentlyMounted){var S=m.getCurrentState();B(S,m.state)||m.setState(S)}},m}return Vu(O,[{key:"getDecoratedComponentInstance",value:function(){return h(this.ref.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.ref.current}},{key:"shouldComponentUpdate",value:function(S,C){return!s(S,this.props)||!B(C,this.state)}},{key:"componentDidMount",value:function(){this.isCurrentlyMounted=!0,this.handleChange()}},{key:"componentWillUnmount",value:function(){this.isCurrentlyMounted=!1,this.unsubscribeFromOffsetChange&&(this.unsubscribeFromOffsetChange(),this.unsubscribeFromOffsetChange=void 0),this.unsubscribeFromStateChange&&(this.unsubscribeFromStateChange(),this.unsubscribeFromStateChange=void 0)}},{key:"render",value:function(){var S=this;return D.createElement(ve.Consumer,null,function(C){var N=C.dragDropManager;return N===void 0||(S.receiveDragDropManager(N),!S.isCurrentlyMounted)?null:D.createElement(a,Object.assign({},S.props,S.state,{ref:ln(a)?S.ref:null}))})}},{key:"receiveDragDropManager",value:function(S){if(this.manager===void 0){this.manager=S,h(he(S)==="object","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",c,c);var C=this.manager.getMonitor();this.unsubscribeFromOffsetChange=C.subscribeToOffsetChange(this.handleChange),this.unsubscribeFromStateChange=C.subscribeToStateChange(this.handleChange)}}},{key:"getCurrentState",value:function(){if(!this.manager)return{};var S=this.manager.getMonitor();return e(S,this.props)}}]),O}(D.Component);return d.displayName="DragLayer(".concat(c,")"),d.DecoratedComponent=n,d}();return zr(f,n)}}const ns=Object.freeze(Object.defineProperty({__proto__:null,DndContext:ve,DndProvider:Qr,DragLayer:rs,DragPreviewImage:Zr,DragSource:Gu,DropTarget:Ku,createDndContext:Vr,useDrag:Jo,useDragDropManager:oe,useDragLayer:Su,useDrop:pu},Symbol.toStringTag,{value:"Module"})),ks=za(ns);function gn(e){var t=null,r=function(){return t==null&&(t=e()),t};return r}function as(e,t){return e.filter(function(r){return r!==t})}function is(e,t){var r=new Set,n=function(s){return r.add(s)};e.forEach(n),t.forEach(n);var a=[];return r.forEach(function(o){return a.push(o)}),a}function os(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $r(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 us(e,t,r){return t&&$r(e.prototype,t),r&&$r(e,r),e}var ss=function(){function e(t){os(this,e),this.entered=[],this.isNodeInDocument=t}return us(e,[{key:"enter",value:function(r){var n=this,a=this.entered.length,o=function(c){return n.isNodeInDocument(c)&&(!c.contains||c.contains(r))};return this.entered=is(this.entered.filter(o),[r]),a===0&&this.entered.length>0}},{key:"leave",value:function(r){var n=this.entered.length;return this.entered=as(this.entered.filter(this.isNodeInDocument),r),n>0&&this.entered.length===0}},{key:"reset",value:function(){this.entered=[]}}]),e}(),hn=gn(function(){return/firefox/i.test(navigator.userAgent)}),pn=gn(function(){return!!window.safari});function cs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xr(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 fs(e,t,r){return t&&xr(e.prototype,t),r&&xr(e,r),e}var Nr=function(){function e(t,r){cs(this,e);for(var n=t.length,a=[],o=0;o<n;o++)a.push(o);a.sort(function(Y,ue){return t[Y]<t[ue]?-1:1});for(var s=[],c=[],f,d,v=0;v<n-1;v++)f=t[v+1]-t[v],d=r[v+1]-r[v],s.push(f),c.push(d/f);for(var b=[c[0]],O=0;O<s.length-1;O++){var m=c[O],S=c[O+1];if(m*S<=0)b.push(0);else{f=s[O];var C=s[O+1],N=f+C;b.push(3*N/((N+C)/m+(N+f)/S))}}b.push(c[c.length-1]);for(var G=[],P=[],T,p=0;p<b.length-1;p++){T=c[p];var A=b[p],$=1/s[p],k=A+b[p+1]-T-T;G.push((T-A-k)*$),P.push(k*$*$)}this.xs=t,this.ys=r,this.c1s=b,this.c2s=G,this.c3s=P}return fs(e,[{key:"interpolate",value:function(r){var n=this.xs,a=this.ys,o=this.c1s,s=this.c2s,c=this.c3s,f=n.length-1;if(r===n[f])return a[f];for(var d=0,v=c.length-1,b;d<=v;){b=Math.floor(.5*(d+v));var O=n[b];if(O<r)d=b+1;else if(O>r)v=b-1;else return a[b]}f=Math.max(0,v);var m=r-n[f],S=m*m;return a[f]+o[f]*m+s[f]*S+c[f]*m*S}}]),e}(),ls=1;function vn(e){var t=e.nodeType===ls?e:e.parentElement;if(!t)return null;var r=t.getBoundingClientRect(),n=r.top,a=r.left;return{x:a,y:n}}function _e(e){return{x:e.clientX,y:e.clientY}}function ds(e){var t;return e.nodeName==="IMG"&&(hn()||!(!((t=document.documentElement)===null||t===void 0)&&t.contains(e)))}function gs(e,t,r,n){var a=e?t.width:r,o=e?t.height:n;return pn()&&e&&(o/=window.devicePixelRatio,a/=window.devicePixelRatio),{dragPreviewWidth:a,dragPreviewHeight:o}}function hs(e,t,r,n,a){var o=ds(t),s=o?e:t,c=vn(s),f={x:r.x-c.x,y:r.y-c.y},d=e.offsetWidth,v=e.offsetHeight,b=n.anchorX,O=n.anchorY,m=gs(o,t,d,v),S=m.dragPreviewWidth,C=m.dragPreviewHeight,N=function(){var k=new Nr([0,.5,1],[f.y,f.y/v*C,f.y+C-v]),Y=k.interpolate(O);return pn()&&o&&(Y+=(window.devicePixelRatio-1)*C),Y},G=function(){var k=new Nr([0,.5,1],[f.x,f.x/d*S,f.x+S-d]);return k.interpolate(b)},P=a.offsetX,T=a.offsetY,p=P===0||P,A=T===0||T;return{x:p?P:G(),y:A?T:N()}}var yn="__NATIVE_FILE__",mn="__NATIVE_URL__",bn="__NATIVE_TEXT__";const lt=Object.freeze(Object.defineProperty({__proto__:null,FILE:yn,TEXT:bn,URL:mn},Symbol.toStringTag,{value:"Module"}));function jr(e,t,r){var n=t.reduce(function(a,o){return a||e.getData(o)},"");return n??r}var ge;function it(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var dt=(ge={},it(ge,yn,{exposeProperties:{files:function(t){return Array.prototype.slice.call(t.files)},items:function(t){return t.items}},matchesTypes:["Files"]}),it(ge,mn,{exposeProperties:{urls:function(t,r){return jr(t,r,"").split(`
|
|
12
|
+
`)}},matchesTypes:["Url","text/uri-list"]}),it(ge,bn,{exposeProperties:{text:function(t,r){return jr(t,r,"")}},matchesTypes:["Text","text/plain"]}),ge);function ps(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lr(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 vs(e,t,r){return t&&Lr(e.prototype,t),r&&Lr(e,r),e}var ys=function(){function e(t){ps(this,e),this.config=t,this.item={},this.initializeExposedProperties()}return vs(e,[{key:"initializeExposedProperties",value:function(){var r=this;Object.keys(this.config.exposeProperties).forEach(function(n){Object.defineProperty(r.item,n,{configurable:!0,enumerable:!0,get:function(){return console.warn(`Browser doesn't allow reading "`.concat(n,'" until the drop event.')),null}})})}},{key:"loadDataTransfer",value:function(r){var n=this;if(r){var a={};Object.keys(this.config.exposeProperties).forEach(function(o){a[o]={value:n.config.exposeProperties[o](r,n.config.matchesTypes),configurable:!0,enumerable:!0}}),Object.defineProperties(this.item,a)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(r,n){return n===r.getSourceId()}},{key:"endDrag",value:function(){}}]),e}();function ms(e,t){var r=new ys(dt[e]);return r.loadDataTransfer(t),r}function Hr(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(dt).filter(function(r){var n=dt[r].matchesTypes;return n.some(function(a){return t.indexOf(a)>-1})})[0]||null}function bs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ur(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 Ds(e,t,r){return t&&Ur(e.prototype,t),r&&Ur(e,r),e}var Ss=function(){function e(t){bs(this,e),this.globalContext=t}return Ds(e,[{key:"window",get:function(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}},{key:"document",get:function(){if(this.window)return this.window.document}}]),e}();function Fr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function qr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fr(Object(r),!0).forEach(function(n){Os(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fr(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Os(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ts(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gr(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 ws(e,t,r){return t&&Gr(e.prototype,t),r&&Gr(e,r),e}var Is=function(){function e(t,r){var n=this;Ts(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(a){var o=n.sourceNodes.get(a);return o&&vn(o)||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(a){return!!(a&&n.document&&n.document.body&&document.body.contains(a))},this.endDragIfSourceWasRemovedFromDOM=function(){var a=n.currentDragSourceNode;n.isNodeInDocument(a)||n.clearCurrentDragSourceNode()&&n.actions.endDrag()},this.handleTopDragStartCapture=function(){n.clearCurrentDragSourceNode(),n.dragStartSourceIds=[]},this.handleTopDragStart=function(a){if(!a.defaultPrevented){var o=n.dragStartSourceIds;n.dragStartSourceIds=null;var s=_e(a);n.monitor.isDragging()&&n.actions.endDrag(),n.actions.beginDrag(o||[],{publishSource:!1,getSourceClientOffset:n.getSourceClientOffset,clientOffset:s});var c=a.dataTransfer,f=Hr(c);if(n.monitor.isDragging()){if(c&&typeof c.setDragImage=="function"){var d=n.monitor.getSourceId(),v=n.sourceNodes.get(d),b=n.sourcePreviewNodes.get(d)||v;if(b){var O=n.getCurrentSourcePreviewNodeOptions(),m=O.anchorX,S=O.anchorY,C=O.offsetX,N=O.offsetY,G={anchorX:m,anchorY:S},P={offsetX:C,offsetY:N},T=hs(v,b,s,G,P);c.setDragImage(b,T.x,T.y)}}try{c==null||c.setData("application/json",{})}catch{}n.setCurrentDragSourceNode(a.target);var p=n.getCurrentSourcePreviewNodeOptions(),A=p.captureDraggingState;A?n.actions.publishDragSource():setTimeout(function(){return n.actions.publishDragSource()},0)}else if(f)n.beginDragNativeItem(f);else{if(c&&!c.types&&(a.target&&!a.target.hasAttribute||!a.target.hasAttribute("draggable")))return;a.preventDefault()}}},this.handleTopDragEndCapture=function(){n.clearCurrentDragSourceNode()&&n.actions.endDrag()},this.handleTopDragEnterCapture=function(a){n.dragEnterTargetIds=[];var o=n.enterLeaveCounter.enter(a.target);if(!(!o||n.monitor.isDragging())){var s=a.dataTransfer,c=Hr(s);c&&n.beginDragNativeItem(c,s)}},this.handleTopDragEnter=function(a){var o=n.dragEnterTargetIds;if(n.dragEnterTargetIds=[],!!n.monitor.isDragging()){n.altKeyPressed=a.altKey,hn()||n.actions.hover(o,{clientOffset:_e(a)});var s=o.some(function(c){return n.monitor.canDropOnTarget(c)});s&&(a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect=n.getCurrentDropEffect()))}},this.handleTopDragOverCapture=function(){n.dragOverTargetIds=[]},this.handleTopDragOver=function(a){var o=n.dragOverTargetIds;if(n.dragOverTargetIds=[],!n.monitor.isDragging()){a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect="none");return}n.altKeyPressed=a.altKey,n.actions.hover(o||[],{clientOffset:_e(a)});var s=(o||[]).some(function(c){return n.monitor.canDropOnTarget(c)});s?(a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect=n.getCurrentDropEffect())):n.isDraggingNativeItem()?a.preventDefault():(a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=function(a){n.isDraggingNativeItem()&&a.preventDefault();var o=n.enterLeaveCounter.leave(a.target);o&&n.isDraggingNativeItem()&&n.endDragNativeItem()},this.handleTopDropCapture=function(a){if(n.dropTargetIds=[],a.preventDefault(),n.isDraggingNativeItem()){var o;(o=n.currentNativeSource)===null||o===void 0||o.loadDataTransfer(a.dataTransfer)}n.enterLeaveCounter.reset()},this.handleTopDrop=function(a){var o=n.dropTargetIds;n.dropTargetIds=[],n.actions.hover(o,{clientOffset:_e(a)}),n.actions.drop({dropEffect:n.getCurrentDropEffect()}),n.isDraggingNativeItem()?n.endDragNativeItem():n.endDragIfSourceWasRemovedFromDOM()},this.handleSelectStart=function(a){var o=a.target;typeof o.dragDrop=="function"&&(o.tagName==="INPUT"||o.tagName==="SELECT"||o.tagName==="TEXTAREA"||o.isContentEditable||(a.preventDefault(),o.dragDrop()))},this.options=new Ss(r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new ss(this.isNodeInDocument)}return ws(e,[{key:"profile",value:function(){var r,n;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((r=this.dragStartSourceIds)===null||r===void 0?void 0:r.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((n=this.dragOverTargetIds)===null||n===void 0?void 0:n.length)||0}}},{key:"setup",value:function(){if(this.window!==void 0){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(){this.window!==void 0&&(this.window.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.window),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&this.window.cancelAnimationFrame(this.asyncEndDragFrameId))}},{key:"connectDragPreview",value:function(r,n,a){var o=this;return this.sourcePreviewNodeOptions.set(r,a),this.sourcePreviewNodes.set(r,n),function(){o.sourcePreviewNodes.delete(r),o.sourcePreviewNodeOptions.delete(r)}}},{key:"connectDragSource",value:function(r,n,a){var o=this;this.sourceNodes.set(r,n),this.sourceNodeOptions.set(r,a);var s=function(d){return o.handleDragStart(d,r)},c=function(d){return o.handleSelectStart(d)};return n.setAttribute("draggable","true"),n.addEventListener("dragstart",s),n.addEventListener("selectstart",c),function(){o.sourceNodes.delete(r),o.sourceNodeOptions.delete(r),n.removeEventListener("dragstart",s),n.removeEventListener("selectstart",c),n.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(r,n){var a=this,o=function(d){return a.handleDragEnter(d,r)},s=function(d){return a.handleDragOver(d,r)},c=function(d){return a.handleDrop(d,r)};return n.addEventListener("dragenter",o),n.addEventListener("dragover",s),n.addEventListener("drop",c),function(){n.removeEventListener("dragenter",o),n.removeEventListener("dragover",s),n.removeEventListener("drop",c)}}},{key:"addEventListeners",value:function(r){r.addEventListener&&(r.addEventListener("dragstart",this.handleTopDragStart),r.addEventListener("dragstart",this.handleTopDragStartCapture,!0),r.addEventListener("dragend",this.handleTopDragEndCapture,!0),r.addEventListener("dragenter",this.handleTopDragEnter),r.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),r.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),r.addEventListener("dragover",this.handleTopDragOver),r.addEventListener("dragover",this.handleTopDragOverCapture,!0),r.addEventListener("drop",this.handleTopDrop),r.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(r){r.removeEventListener&&(r.removeEventListener("dragstart",this.handleTopDragStart),r.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),r.removeEventListener("dragend",this.handleTopDragEndCapture,!0),r.removeEventListener("dragenter",this.handleTopDragEnter),r.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),r.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),r.removeEventListener("dragover",this.handleTopDragOver),r.removeEventListener("dragover",this.handleTopDragOverCapture,!0),r.removeEventListener("drop",this.handleTopDrop),r.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var r=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(r);return qr({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var r=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(r);return qr({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}},{key:"isDraggingNativeItem",value:function(){var r=this.monitor.getItemType();return Object.keys(lt).some(function(n){return lt[n]===r})}},{key:"beginDragNativeItem",value:function(r,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=ms(r,n),this.currentNativeHandle=this.registry.addSource(r,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(r){var n=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=r;var a=1e3;this.mouseMoveTimeoutTimer=setTimeout(function(){return n.window&&n.window.addEventListener("mousemove",n.endDragIfSourceWasRemovedFromDOM,!0)},a)}},{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):!1}},{key:"handleDragStart",value:function(r,n){r.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}},{key:"handleDragEnter",value:function(r,n){this.dragEnterTargetIds.unshift(n)}},{key:"handleDragOver",value:function(r,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}},{key:"handleDrop",value:function(r,n){this.dropTargetIds.unshift(n)}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}}]),e}(),Ee;function Cs(){return Ee||(Ee=new Image,Ee.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),Ee}var _s=function(t,r){return new Is(t,r)};const Rs=Object.freeze(Object.defineProperty({__proto__:null,HTML5Backend:_s,NativeTypes:lt,getEmptyImage:Cs},Symbol.toStringTag,{value:"Module"}));export{Qr as D,_s as H,Jo as a,ve as b,Gu as c,Ku as d,Rs as e,As as i,Wa as l,ks as r,pu as u};
|