@next-bricks/advanced 0.33.2 → 0.33.4

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.
Files changed (92) hide show
  1. package/dist/bricks.json +16 -15
  2. package/dist/chunks/1122.5043f029.js +2 -0
  3. package/dist/chunks/1122.5043f029.js.map +1 -0
  4. package/dist/chunks/114.5d509b11.js +2 -0
  5. package/dist/chunks/{114.ad735971.js.map → 114.5d509b11.js.map} +1 -1
  6. package/dist/chunks/1940.5c477924.js +2 -0
  7. package/dist/chunks/1940.5c477924.js.map +1 -0
  8. package/dist/chunks/{2277.74e11794.js → 2277.ba92f6ac.js} +2 -2
  9. package/dist/chunks/{2277.74e11794.js.map → 2277.ba92f6ac.js.map} +1 -1
  10. package/dist/chunks/{3171.b2d7ff51.js → 3171.510584aa.js} +2 -2
  11. package/dist/chunks/{3171.b2d7ff51.js.map → 3171.510584aa.js.map} +1 -1
  12. package/dist/chunks/3933.161a05ea.js +2 -0
  13. package/dist/chunks/{6314.2b50694f.js.map → 3933.161a05ea.js.map} +1 -1
  14. package/dist/chunks/{4658.d68baaa8.js → 4658.ea1a6fe3.js} +2 -2
  15. package/dist/chunks/{4658.d68baaa8.js.map → 4658.ea1a6fe3.js.map} +1 -1
  16. package/dist/chunks/4837.06f2c602.js +2 -0
  17. package/dist/chunks/4837.06f2c602.js.map +1 -0
  18. package/dist/chunks/{489.5ebb95a0.js → 489.59318cb6.js} +3 -3
  19. package/dist/chunks/{489.5ebb95a0.js.map → 489.59318cb6.js.map} +1 -1
  20. package/dist/chunks/4947.38659b48.js +3 -0
  21. package/dist/chunks/4947.38659b48.js.map +1 -0
  22. package/dist/chunks/5399.5bec9039.js +2 -0
  23. package/dist/chunks/5399.5bec9039.js.map +1 -0
  24. package/dist/chunks/5479.201a8708.js +2 -0
  25. package/dist/chunks/{5479.469d3551.js.map → 5479.201a8708.js.map} +1 -1
  26. package/dist/chunks/{5552.fd0eb0c7.js → 5552.0c2f3750.js} +2 -2
  27. package/dist/chunks/{5552.fd0eb0c7.js.map → 5552.0c2f3750.js.map} +1 -1
  28. package/dist/chunks/5683.c096a54a.js +2 -0
  29. package/dist/chunks/5683.c096a54a.js.map +1 -0
  30. package/dist/chunks/6314.4face918.js +2 -0
  31. package/dist/chunks/{3933.9491bca4.js.map → 6314.4face918.js.map} +1 -1
  32. package/dist/chunks/7218.dce2c80d.js +2 -0
  33. package/dist/chunks/7218.dce2c80d.js.map +1 -0
  34. package/dist/chunks/7733.aa579246.js +2 -0
  35. package/dist/chunks/{7733.8647a0f7.js.map → 7733.aa579246.js.map} +1 -1
  36. package/dist/chunks/{790.31a7a92b.js → 790.59874681.js} +2 -2
  37. package/dist/chunks/{790.31a7a92b.js.map → 790.59874681.js.map} +1 -1
  38. package/dist/chunks/{9260.8b9d5ac7.js → 9260.a0f83253.js} +2 -2
  39. package/dist/chunks/{9260.8b9d5ac7.js.map → 9260.a0f83253.js.map} +1 -1
  40. package/dist/chunks/9559.9f33ce23.js +2 -0
  41. package/dist/chunks/9559.9f33ce23.js.map +1 -0
  42. package/dist/chunks/capture-snapshot.f047f15c.js +2 -0
  43. package/dist/chunks/{capture-snapshot.85710dd2.js.map → capture-snapshot.f047f15c.js.map} +1 -1
  44. package/dist/chunks/{eo-cascader.ca254747.js → eo-cascader.e3dca283.js} +2 -2
  45. package/dist/chunks/{eo-cascader.ca254747.js.map → eo-cascader.e3dca283.js.map} +1 -1
  46. package/dist/chunks/eo-next-table.fd87c48d.js +2 -0
  47. package/dist/chunks/{eo-next-table.0fe7a71d.js.map → eo-next-table.fd87c48d.js.map} +1 -1
  48. package/dist/chunks/{eo-table.1c25fdb6.js → eo-table.042eb0c6.js} +2 -2
  49. package/dist/chunks/{eo-table.1c25fdb6.js.map → eo-table.042eb0c6.js.map} +1 -1
  50. package/dist/chunks/{eo-tree-select.28238ed0.js → eo-tree-select.1b84b62a.js} +2 -2
  51. package/dist/chunks/{eo-tree-select.28238ed0.js.map → eo-tree-select.1b84b62a.js.map} +1 -1
  52. package/dist/chunks/{eo-tree.36b56e93.js → eo-tree.89207869.js} +3 -3
  53. package/dist/chunks/{eo-tree.36b56e93.js.map → eo-tree.89207869.js.map} +1 -1
  54. package/dist/chunks/{eo-workbench-layout.e0322990.js → eo-workbench-layout.ae77de67.js} +2 -2
  55. package/dist/chunks/{eo-workbench-layout.e0322990.js.map → eo-workbench-layout.ae77de67.js.map} +1 -1
  56. package/dist/chunks/main.77b41cd6.js +2 -0
  57. package/dist/chunks/{main.1344d4fd.js.map → main.77b41cd6.js.map} +1 -1
  58. package/dist/examples.json +6 -6
  59. package/dist/index.8a1c753e.js +2 -0
  60. package/dist/index.8a1c753e.js.map +1 -0
  61. package/dist/manifest.json +318 -318
  62. package/dist/types.json +678 -678
  63. package/package.json +7 -6
  64. package/dist/chunks/1122.2f11298f.js +0 -2
  65. package/dist/chunks/1122.2f11298f.js.map +0 -1
  66. package/dist/chunks/114.ad735971.js +0 -2
  67. package/dist/chunks/1940.df03fc7e.js +0 -2
  68. package/dist/chunks/1940.df03fc7e.js.map +0 -1
  69. package/dist/chunks/3933.9491bca4.js +0 -2
  70. package/dist/chunks/4984.facf8724.js +0 -3
  71. package/dist/chunks/4984.facf8724.js.map +0 -1
  72. package/dist/chunks/5399.3b2d9352.js +0 -2
  73. package/dist/chunks/5399.3b2d9352.js.map +0 -1
  74. package/dist/chunks/5479.469d3551.js +0 -2
  75. package/dist/chunks/5683.7b312ccc.js +0 -2
  76. package/dist/chunks/5683.7b312ccc.js.map +0 -1
  77. package/dist/chunks/6314.2b50694f.js +0 -2
  78. package/dist/chunks/7115.b514cdd4.js +0 -2
  79. package/dist/chunks/7115.b514cdd4.js.map +0 -1
  80. package/dist/chunks/7733.8647a0f7.js +0 -2
  81. package/dist/chunks/9496.b5000225.js +0 -2
  82. package/dist/chunks/9496.b5000225.js.map +0 -1
  83. package/dist/chunks/9559.ccb8bcda.js +0 -2
  84. package/dist/chunks/9559.ccb8bcda.js.map +0 -1
  85. package/dist/chunks/capture-snapshot.85710dd2.js +0 -2
  86. package/dist/chunks/eo-next-table.0fe7a71d.js +0 -2
  87. package/dist/chunks/main.1344d4fd.js +0 -2
  88. package/dist/index.91ec0c58.js +0 -2
  89. package/dist/index.91ec0c58.js.map +0 -1
  90. /package/dist/chunks/{489.5ebb95a0.js.LICENSE.txt → 489.59318cb6.js.LICENSE.txt} +0 -0
  91. /package/dist/chunks/{4984.facf8724.js.LICENSE.txt → 4947.38659b48.js.LICENSE.txt} +0 -0
  92. /package/dist/chunks/{eo-tree.36b56e93.js.LICENSE.txt → eo-tree.89207869.js.LICENSE.txt} +0 -0
@@ -1,2 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_next_bricks_advanced=globalThis.webpackChunk_next_bricks_advanced||[]).push([[5399],{35399:(e,t,n)=>{n.r(t),n.d(t,{enqueueStableLoadBricks:()=>f,enqueueStableLoadProcessors:()=>p,flushStableLoadBricks:()=>d,loadBricksImperatively:()=>w,loadProcessorsImperatively:()=>h,loadScript:()=>o,loadSharedModule:()=>i,loadStyle:()=>a});const s=new Map;function r(e,t,n,o){if(Array.isArray(t))return Promise.all(t.map((t=>r(e,t,n))));const a=n&&!/^https?:/.test(t)?`${n}${t}`:t,i=s.get(a);if(i)return i;const c=new Promise(((t,n)=>{const s=()=>{window.dispatchEvent(new Event("request.end"))},r=document.createElement("style"===e?"link":"script");"script"===e?Object.assign(r,{type:"text/javascript",async:!0,...o,src:a}):Object.assign(r,{rel:"stylesheet",...o,href:a}),r.onload=()=>{t(a),s()},r.onerror=e=>{n(e),s()};const i=document.currentScript||document.getElementsByTagName("script")[0];i.parentNode.insertBefore(r,i),window.dispatchEvent(new Event("request.start"))}));return s.set(a,c),c}function o(e,t,n){return r("script",e,t,n)}function a(e,t,n){return r("style",e,t,n)}async function i(e,t){await n.I("default");const s=window[e];return await s.init(n.S.default),(await s.get(t))()}let c,l=!1;const u=new Promise((e=>{c=e}));function d(){l||c()}function f(e,t){return g(P("bricks",e,t))}function p(e,t){return g(P("processors",e,t))}async function w(e,t){const n=P("bricks",e,t);return d(),g(n)}function h(e,t){const n=P("processors",e,t);return d(),g(n)}let m;const v="v2-adapter.load-bricks";function b(e,t,n){const s=new Map,r=new Set,o=t=>{var a;if(r.has(t))return;let i,c,l;if(r.add(t),"processors"===e||t.includes(".")){[c,l]=t.split(".");const s=`bricks/${"processors"===e?(f=c,f.replace(/[A-Z]/g,(e=>`-${e[0].toLocaleLowerCase()}`)).replace(/_[0-9]/g,(e=>`-${e[1]}`))):c}`;i=n.get(s)}else{let e;l=t;for(const s of n.values()){var u;if(null!==(u=s.elements)&&void 0!==u&&u.some((e=>e===l))){var d;if(null===(d=s.deprecatedElements)||void 0===d||!d.includes(t)){i=s;break}e=s}}!i&&e&&(i=e)}var f;if(!i)return void console.error(`Package for ${t} not found.`);let p=s.get(i);p||(p=[],s.set(i,p)),p.push({fullName:t,lastName:l});const w=null===(a=i.dependencies)||void 0===a?void 0:a[t];if(w)for(const e of w)o(e)};for(const e of t)o(e);return s}async function k(e,t,n){const s=`${"processors"===e?"./processors/":"./"}${n.lastName}`;try{await i(t,s)}catch(t){throw console.error(t),new Error(`Load ${e} of "${n.fullName}" failed`)}}function y(e,t,n){return t.map((async t=>(await o(t.filePath,window.PUBLIC_ROOT??""),await u,Promise.all(n.get(t).map((n=>k(e,t.id,n)))))))}async function P(e,t,n){const s=new Map;for(const e of n){const t=e.id??E(e.filePath);s.set(t,e)}const r=b(e,t,s);let a;const i=[],u=[];let d;for(const e of r.keys())if(e.id)"bricks/basic"===e.id?a=e:u.push(e);else if(i.push(e),d=s.get("bricks/v2-adapter"),!d)throw new Error("Using v2 bricks, but v2-adapter not found");const f=d;let p;const w=a;if(w){const t=o(w.filePath,window.PUBLIC_ROOT??"");l||(l=!0,t.then((()=>Promise.resolve())).then(c)),p=t.then((()=>Promise.all(r.get(w).map((t=>k(e,w.id,t))))))}const h=[p].concat(y(e,u,r));if(f&&i.length>0){if(!m){const e=b("bricks",[v],s),t=[...e.keys()];m=(async()=>(await Promise.all(y("bricks",t,e)),document.createElement(v)))()}h.push(m.then((t=>Promise.all(i.map((s=>{const o=E(s.filePath).split("/")[1];return t.resolve(f.filePath,s.filePath,"bricks"===e?r.get(s).map((e=>`${o}.${e.lastName}`)):[],s.dll,n)}))))))}await Promise.all(h)}async function g(e){window.dispatchEvent(new Event("request.start"));try{await e}finally{window.dispatchEvent(new Event("request.end"))}}function E(e){return e.split("/").slice(0,2).join("/")}}}]);
2
- //# sourceMappingURL=5399.3b2d9352.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chunks/5399.3b2d9352.js","mappings":"6WAAA,MAAMA,EAAQ,IAAIC,IACH,SAASC,EAAkBC,EAAMC,EAAKC,EAAQC,GAC3D,GAAIC,MAAMC,QAAQJ,GAChB,OAAOK,QAAQC,IAAIN,EAAIO,KAAIC,GAAQV,EAAkBC,EAAMS,EAAMP,MAEnE,MAAMQ,EAAWR,IAAW,WAAWS,KAAKV,GAAO,GAAGC,IAASD,IAAQA,EACjEW,EAAgBf,EAAMgB,IAAIH,GAChC,GAAIE,EACF,OAAOA,EAET,MAAME,EAAU,IAAIR,SAAQ,CAACS,EAASC,KACpC,MAAMC,EAAM,KACVC,OAAOC,cAAc,IAAIC,MAAM,eAAe,EAE1CC,EAAUC,SAASC,cAAuB,UAATvB,EAAmB,OAAS,UACtD,WAATA,EACFwB,OAAOC,OAAOJ,EAAS,CACrBrB,KAAM,kBACN0B,OAAO,KACJvB,EACHF,IAAKS,IAGPc,OAAOC,OAAOJ,EAAS,CACrBM,IAAK,gBACFxB,EACHyB,KAAMlB,IAGVW,EAAQQ,OAAS,KACfd,EAAQL,GACRO,GAAK,EAEPI,EAAQS,QAAUC,IAChBf,EAAOe,GACPd,GAAK,EAEP,MAAMe,EAAcV,SAASW,eAAiBX,SAASY,qBAAqB,UAAU,GACtFF,EAAYG,WAAWC,aAAaf,EAASW,GAC7Cd,OAAOC,cAAc,IAAIC,MAAM,iBAAiB,IAGlD,OADAvB,EAAMwC,IAAI3B,EAAUI,GACbA,CACT,CC1Ce,SAASwB,EAAWrC,EAAKC,EAAQC,GAC9C,OAAOJ,EAAkB,SAAUE,EAAKC,EAAQC,EAClD,CCFe,SAASoC,EAAUtC,EAAKC,EAAQC,GAC7C,OAAOJ,EAAkB,QAASE,EAAKC,EAAQC,EACjD,CCFeuB,eAAec,EAAiBC,EAAOC,SAE9C,IAAyB,WAC/B,MAAMC,EAAYzB,OAAOuB,GAIzB,aAFME,EAAUC,KAAK,IAAyBC,gBACxBF,EAAU9B,IAAI6B,KAEtC,CCPA,IAAII,EACAC,GAAyB,EAC7B,MAAMC,EAAe,IAAI1C,SAAQS,IAC/B+B,EAAkB/B,CAAO,IAEpB,SAASkC,IACTF,GACHD,GAEJ,CAcO,SAASI,EAAwBC,EAAQC,GAE9C,OAAOC,EADSC,EAAkB,SAAUH,EAAQC,GAEtD,CACO,SAASG,EAA4BC,EAAYJ,GAEtD,OAAOC,EADSC,EAAkB,aAAcE,EAAYJ,GAE9D,CACO1B,eAAe+B,EAAuBN,EAAQC,GACnD,MAAMtC,EAAUwC,EAAkB,SAAUH,EAAQC,GAEpD,OADAH,IACOI,EAAsBvC,EAC/B,CACO,SAAS4C,EAA2BF,EAAYJ,GACrD,MAAMtC,EAAUwC,EAAkB,aAAcE,EAAYJ,GAE5D,OADAH,IACOI,EAAsBvC,EAC/B,CACA,IAAI6C,EACJ,MAAMC,EAAyB,yBAE/B,SAASC,EAAc7D,EAAM8D,EAAMC,GACjC,MAAMC,EAAa,IAAIlE,IACjBmE,EAAa,IAAIC,IACjBC,EAAM1D,IACV,IAAI2D,EACJ,GAAIH,EAAWI,IAAI5D,GACjB,OAGF,IAAI6D,EACAC,EACAC,EACJ,GAJAP,EAAWE,IAAI1D,GAIF,eAATT,GAAyBS,EAAKgE,SAAS,KAAM,EAC9CF,EAAWC,GAAY/D,EAAKiE,MAAM,KACnC,MAAMC,EAAQ,UAAmB,eAAT3E,GA6IG4E,EA7I6CL,EA8IrEK,EAAiBC,QAAQ,UAAUC,GAAS,IAAIA,EAAM,GAAGC,wBAAuBF,QAAQ,WAAWC,GAAS,IAAIA,EAAM,QA9IpCP,IACrFD,EAAMP,EAAiBlD,IAAI8D,EAC7B,KAAO,CAEL,IAAIK,EADJR,EAAW/D,EAEX,IAAK,MAAMwE,KAAKlB,EAAiBmB,SAAU,CACzC,IAAIC,EACJ,GAAmC,QAA9BA,EAAcF,EAAEG,gBAAsC,IAAhBD,GAA0BA,EAAYE,MAAKtD,GAAKA,IAAMyC,IAAW,CAC1G,IAAIc,EACJ,GAAuD,QAAlDA,EAAwBL,EAAEM,0BAA0D,IAA1BD,IAAoCA,EAAsBb,SAAShE,GAE3H,CACL6D,EAAMW,EACN,KACF,CAJED,EAA2BC,CAK/B,CACF,EACKX,GAAOU,IACVV,EAAMU,EAEV,CAyHJ,IAAiCJ,EAxH7B,IAAKN,EAGH,YADAkB,QAAQC,MAAM,eAAehF,gBAG/B,IAAIiF,EAAa1B,EAAWnD,IAAIyD,GAC3BoB,IACHA,EAAa,GACb1B,EAAW3B,IAAIiC,EAAKoB,IAEtBA,EAAWC,KAAK,CACdC,SAAUnF,EACV+D,aAIF,MAAMqB,EAAkD,QAA1CzB,EAAoBE,EAAIwB,oBAAgD,IAAtB1B,OAA+B,EAASA,EAAkB3D,GAC1H,GAAIoF,EACF,IAAK,MAAME,KAAOF,EAChB1B,EAAI4B,EAER,EAEF,IAAK,MAAMtF,KAAQqD,EACjBK,EAAI1D,GAEN,OAAOuD,CACT,CACAtC,eAAesE,EAAgBhG,EAAM2E,EAAOlE,GAC1C,MAAMwF,EAAa,GAAY,eAATjG,EAAwB,gBAAkB,OAAOS,EAAK+D,WAC5E,UACQhC,EAAiBmC,EAAOsB,EAChC,CAAE,MAAOR,GAGP,MADAD,QAAQC,MAAMA,GACR,IAAIS,MAAM,QAAQlG,SAAYS,EAAKmF,mBAC3C,CACF,CACA,SAASO,EAAenG,EAAMoG,EAAMC,GAClC,OAAOD,EAAK5F,KAAIkB,gBACRY,EAAWgC,EAAIgC,SAAUpF,OAAOqF,aAAe,UAC/CvD,EACC1C,QAAQC,IAEf8F,EAASxF,IAAIyD,GAAK9D,KAAIC,GAAQuF,EAAgBhG,EAAMsE,EAAIkC,GAAI/F,QAEhE,CACAiB,eAAe4B,EAAkBtD,EAAM8D,EAAMV,GAC3C,MAAMW,EAAmB,IAAIjE,IAC7B,IAAK,MAAMwE,KAAOlB,EAAe,CAC/B,MAAMuB,EAAQL,EAAIkC,IAAMC,EAAmBnC,EAAIgC,UAC/CvC,EAAiB1B,IAAIsC,EAAOL,EAC9B,CACA,MAAMN,EAAaH,EAAc7D,EAAM8D,EAAMC,GAC7C,IAAI2C,EACJ,MAAMC,EAAa,GACbC,EAA2B,GACjC,IAAIC,EACJ,IAAK,MAAMvC,KAAON,EAAW8C,OAC3B,GAAIxC,EAAIkC,GACS,iBAAXlC,EAAIkC,GACNE,EAAgBpC,EAEhBsC,EAAyBjB,KAAKrB,QAMhC,GAFAqC,EAAWhB,KAAKrB,GAChBuC,EAAiB9C,EAAiBlD,IAAI,sBACjCgG,EACH,MAAM,IAAIX,MAAM,6CAItB,MAAMa,EAAYF,EAClB,IAAIG,EACJ,MAAMC,EAAWP,EACjB,GAAIO,EAAU,CACZ,MAAMC,EAAc5E,EAAW2E,EAASX,SAAUpF,OAAOqF,aAAe,IAEnExD,IACHA,GAAyB,EACzBmE,EAAYC,MAAK,IAAM7G,QAAQS,YAAWoG,KAAKrE,IAEjDkE,EAAkBE,EAAYC,MAAK,IAAM7G,QAAQC,IAEjDyD,EAAWnD,IAAIoG,GAAUzG,KAAIC,GAAQuF,EAAgBhG,EAAMiH,EAAST,GAAI/F,OAC1E,CACA,MAAM2G,EAAc,CAACJ,GAAiBK,OAAOlB,EAAenG,EAAM4G,EAA0B5C,IAC5F,GAAI+C,GAAaJ,EAAWW,OAAS,EAAG,CACtC,IAAK3D,EAAkB,CAErB,MAAM4D,EAAsB1D,EAAc,SAAU,CAACD,GAAyBG,GACxEyD,EAAoB,IAAID,EAAoBT,QAKlDnD,EAJsBjC,iBACdpB,QAAQC,IAAI4F,EAAe,SAAUqB,EAAmBD,IACvDjG,SAASC,cAAcqC,IAEb6D,EACrB,CACAL,EAAYzB,KAAKhC,EAAiBwD,MAAKO,GAAWpH,QAAQC,IAAIoG,EAAWnG,KAAI8D,IAC3E,MACMqD,EADQlB,EAAmBnC,EAAIgC,UACV5B,MAAM,KAAK,GACtC,OAAOgD,EAAQ3G,QAAQgG,EAAUT,SAAUhC,EAAIgC,SAAmB,WAATtG,EAEzDgE,EAAWnD,IAAIyD,GAAK9D,KAAIC,GAAQ,GAAGkH,KAAgBlH,EAAK+D,aAAc,GAAIF,EAAIsD,IAE9ExE,EAAc,OAElB,OACM9C,QAAQC,IAAI6G,EACpB,CACA1F,eAAe2B,EAAsBvC,GACnCI,OAAOC,cAAc,IAAIC,MAAM,kBAC/B,UACQN,CACR,CAAE,QACAI,OAAOC,cAAc,IAAIC,MAAM,eACjC,CACF,CAIA,SAASqF,EAAmBH,GAC1B,OAAOA,EAAS5B,MAAM,KAAKmD,MAAM,EAAG,GAAGC,KAAK,IAC9C,C","sources":["webpack:///../../node_modules/@next-core/loader/dist/esm/loadScriptOrStyle.js","webpack:///../../node_modules/@next-core/loader/dist/esm/loadScript.js","webpack:///../../node_modules/@next-core/loader/dist/esm/loadStyle.js","webpack:///../../node_modules/@next-core/loader/dist/esm/loadSharedModule.js","webpack:///../../node_modules/@next-core/loader/dist/esm/stableLoadBricks.js"],"sourcesContent":["const cache = new Map();\nexport default function loadScriptOrStyle(type, src, prefix, attrs) {\n if (Array.isArray(src)) {\n return Promise.all(src.map(item => loadScriptOrStyle(type, item, prefix)));\n }\n const fixedSrc = prefix && !/^https?:/.test(src) ? `${prefix}${src}` : src;\n const cachedPromise = cache.get(fixedSrc);\n if (cachedPromise) {\n return cachedPromise;\n }\n const promise = new Promise((resolve, reject) => {\n const end = () => {\n window.dispatchEvent(new Event(\"request.end\"));\n };\n const element = document.createElement(type === \"style\" ? \"link\" : \"script\");\n if (type === \"script\") {\n Object.assign(element, {\n type: \"text/javascript\",\n async: true,\n ...attrs,\n src: fixedSrc\n });\n } else {\n Object.assign(element, {\n rel: \"stylesheet\",\n ...attrs,\n href: fixedSrc\n });\n }\n element.onload = () => {\n resolve(fixedSrc);\n end();\n };\n element.onerror = e => {\n reject(e);\n end();\n };\n const firstScript = document.currentScript || document.getElementsByTagName(\"script\")[0];\n firstScript.parentNode.insertBefore(element, firstScript);\n window.dispatchEvent(new Event(\"request.start\"));\n });\n cache.set(fixedSrc, promise);\n return promise;\n}\n//# sourceMappingURL=loadScriptOrStyle.js.map","import loadScriptOrStyle from \"./loadScriptOrStyle.js\";\nexport default function loadScript(src, prefix, attrs) {\n return loadScriptOrStyle(\"script\", src, prefix, attrs);\n}\n//# sourceMappingURL=loadScript.js.map","import loadScriptOrStyle from \"./loadScriptOrStyle.js\";\nexport default function loadStyle(src, prefix, attrs) {\n return loadScriptOrStyle(\"style\", src, prefix, attrs);\n}\n//# sourceMappingURL=loadStyle.js.map","// https://github.com/module-federation/module-federation-examples/blob/eda9493f3991a423479fd834cfb1d7b241d9d1f0/advanced-api/dynamic-remotes/app1/src/App.js\nexport default async function loadSharedModule(scope, module) {\n // Initializes the share scope. This fills it with known provided modules from this build and all remotes\n await __webpack_init_sharing__(\"default\");\n const container = window[scope]; // or get the container somewhere else\n // Initialize the container, it may provide shared modules\n await container.init(__webpack_share_scopes__.default);\n const factory = await container.get(module);\n return factory();\n}\n//# sourceMappingURL=loadSharedModule.js.map","import loadScript from \"./loadScript.js\";\nimport loadSharedModule from \"./loadSharedModule.js\";\nlet resolveBasicPkg;\nlet basicPkgWillBeResolved = false;\nconst waitBasicPkg = new Promise(resolve => {\n resolveBasicPkg = resolve;\n});\nexport function flushStableLoadBricks() {\n if (!basicPkgWillBeResolved) {\n resolveBasicPkg();\n }\n}\n\n/**\n * When loading bundles with webpack module federation concurrently, if\n * these bundles share some modules, webpack will load a singleton module\n * if versions are matched. Webpack will use the first bundle who started\n * to init the shared scope. Generally which bundle to use for a specific\n * module, does not matter. However, it may cause flaky result since the\n * shared module may from different bundles which maybe not exactly the\n * same, especially developers declare dependencies incorrectly sometimes.\n * So in order to make it less flaky, we try to make a BASIC package takes\n * precedence over others. We will always load the shared modules from the\n * basic package bundle if it contains the shared modules.\n */\nexport function enqueueStableLoadBricks(bricks, brickPackages) {\n const promise = enqueueStableLoad(\"bricks\", bricks, brickPackages);\n return dispatchRequestStatus(promise);\n}\nexport function enqueueStableLoadProcessors(processors, brickPackages) {\n const promise = enqueueStableLoad(\"processors\", processors, brickPackages);\n return dispatchRequestStatus(promise);\n}\nexport async function loadBricksImperatively(bricks, brickPackages) {\n const promise = enqueueStableLoad(\"bricks\", bricks, brickPackages);\n flushStableLoadBricks();\n return dispatchRequestStatus(promise);\n}\nexport function loadProcessorsImperatively(processors, brickPackages) {\n const promise = enqueueStableLoad(\"processors\", processors, brickPackages);\n flushStableLoadBricks();\n return dispatchRequestStatus(promise);\n}\nlet v2AdapterPromise;\nconst V2_ADAPTER_LOAD_BRICKS = \"v2-adapter.load-bricks\";\n// Get brick/processor items including their dependencies\nfunction getItemsByPkg(type, list, brickPackagesMap) {\n const itemsByPkg = new Map();\n const listToLoad = new Set();\n const add = item => {\n var _pkg$dependencies;\n if (listToLoad.has(item)) {\n return;\n }\n listToLoad.add(item);\n let pkg;\n let namespace;\n let lastName;\n if (type === \"processors\" || item.includes(\".\")) {\n [namespace, lastName] = item.split(\".\");\n const pkgId = `bricks/${type === \"processors\" ? getProcessorPackageName(namespace) : namespace}`;\n pkg = brickPackagesMap.get(pkgId);\n } else {\n lastName = item;\n let deprecatedBrickInThisPkg;\n for (const p of brickPackagesMap.values()) {\n var _p$elements;\n if ((_p$elements = p.elements) !== null && _p$elements !== void 0 && _p$elements.some(e => e === lastName)) {\n var _p$deprecatedElements;\n if ((_p$deprecatedElements = p.deprecatedElements) !== null && _p$deprecatedElements !== void 0 && _p$deprecatedElements.includes(item)) {\n deprecatedBrickInThisPkg = p;\n } else {\n pkg = p;\n break;\n }\n }\n }\n if (!pkg && deprecatedBrickInThisPkg) {\n pkg = deprecatedBrickInThisPkg;\n }\n }\n if (!pkg) {\n // eslint-disable-next-line no-console\n console.error(`Package for ${item} not found.`);\n return;\n }\n let groupItems = itemsByPkg.get(pkg);\n if (!groupItems) {\n groupItems = [];\n itemsByPkg.set(pkg, groupItems);\n }\n groupItems.push({\n fullName: item,\n lastName\n });\n\n // Load their dependencies too\n const deps = (_pkg$dependencies = pkg.dependencies) === null || _pkg$dependencies === void 0 ? void 0 : _pkg$dependencies[item];\n if (deps) {\n for (const dep of deps) {\n add(dep);\n }\n }\n };\n for (const item of list) {\n add(item);\n }\n return itemsByPkg;\n}\nasync function loadBrickModule(type, pkgId, item) {\n const moduleName = `${type === \"processors\" ? \"./processors/\" : \"./\"}${item.lastName}`;\n try {\n await loadSharedModule(pkgId, moduleName);\n } catch (error) {\n // eslint-disable-next-line no-console\n console.error(error);\n throw new Error(`Load ${type} of \"${item.fullName}\" failed`);\n }\n}\nfunction loadRestBricks(type, pkgs, itemsMap) {\n return pkgs.map(async pkg => {\n await loadScript(pkg.filePath, window.PUBLIC_ROOT ?? \"\");\n await waitBasicPkg;\n return Promise.all(\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n itemsMap.get(pkg).map(item => loadBrickModule(type, pkg.id, item)));\n });\n}\nasync function enqueueStableLoad(type, list, brickPackages) {\n const brickPackagesMap = new Map();\n for (const pkg of brickPackages) {\n const pkgId = pkg.id ?? getPkgIdByFilePath(pkg.filePath);\n brickPackagesMap.set(pkgId, pkg);\n }\n const itemsByPkg = getItemsByPkg(type, list, brickPackagesMap);\n let foundBasicPkg;\n const v2Packages = [];\n const v3PackagesOtherThanBasic = [];\n let maybeV2Adapter;\n for (const pkg of itemsByPkg.keys()) {\n if (pkg.id) {\n if (pkg.id === \"bricks/basic\") {\n foundBasicPkg = pkg;\n } else {\n v3PackagesOtherThanBasic.push(pkg);\n }\n } else {\n // Brick packages of v2 has no `id`\n v2Packages.push(pkg);\n maybeV2Adapter = brickPackagesMap.get(\"bricks/v2-adapter\");\n if (!maybeV2Adapter) {\n throw new Error(\"Using v2 bricks, but v2-adapter not found\");\n }\n }\n }\n const v2Adapter = maybeV2Adapter;\n let basicPkgPromise;\n const basicPkg = foundBasicPkg;\n if (basicPkg) {\n const tempPromise = loadScript(basicPkg.filePath, window.PUBLIC_ROOT ?? \"\");\n // Packages other than BASIC will wait for an extra micro-task tick.\n if (!basicPkgWillBeResolved) {\n basicPkgWillBeResolved = true;\n tempPromise.then(() => Promise.resolve()).then(resolveBasicPkg);\n }\n basicPkgPromise = tempPromise.then(() => Promise.all(\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n itemsByPkg.get(basicPkg).map(item => loadBrickModule(type, basicPkg.id, item))));\n }\n const pkgPromises = [basicPkgPromise].concat(loadRestBricks(type, v3PackagesOtherThanBasic, itemsByPkg));\n if (v2Adapter && v2Packages.length > 0) {\n if (!v2AdapterPromise) {\n // Load `v2-adapter.load-bricks` and its dependencies\n const v2AdapterItemsByPkg = getItemsByPkg(\"bricks\", [V2_ADAPTER_LOAD_BRICKS], brickPackagesMap);\n const v2AdapterPackages = [...v2AdapterItemsByPkg.keys()];\n const loadV2Adapter = async () => {\n await Promise.all(loadRestBricks(\"bricks\", v2AdapterPackages, v2AdapterItemsByPkg));\n return document.createElement(V2_ADAPTER_LOAD_BRICKS);\n };\n v2AdapterPromise = loadV2Adapter();\n }\n pkgPromises.push(v2AdapterPromise.then(adapter => Promise.all(v2Packages.map(pkg => {\n const pkgId = getPkgIdByFilePath(pkg.filePath);\n const pkgNamespace = pkgId.split(\"/\")[1];\n return adapter.resolve(v2Adapter.filePath, pkg.filePath, type === \"bricks\" ?\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n itemsByPkg.get(pkg).map(item => `${pkgNamespace}.${item.lastName}`) : [], pkg.dll,\n // Todo: remove `brickPackages` as an argument\n brickPackages);\n }))));\n }\n await Promise.all(pkgPromises);\n}\nasync function dispatchRequestStatus(promise) {\n window.dispatchEvent(new Event(\"request.start\"));\n try {\n await promise;\n } finally {\n window.dispatchEvent(new Event(\"request.end\"));\n }\n}\nfunction getProcessorPackageName(camelPackageName) {\n return camelPackageName.replace(/[A-Z]/g, match => `-${match[0].toLocaleLowerCase()}`).replace(/_[0-9]/g, match => `-${match[1]}`);\n}\nfunction getPkgIdByFilePath(filePath) {\n return filePath.split(\"/\").slice(0, 2).join(\"/\");\n}\n//# sourceMappingURL=stableLoadBricks.js.map"],"names":["cache","Map","loadScriptOrStyle","type","src","prefix","attrs","Array","isArray","Promise","all","map","item","fixedSrc","test","cachedPromise","get","promise","resolve","reject","end","window","dispatchEvent","Event","element","document","createElement","Object","assign","async","rel","href","onload","onerror","e","firstScript","currentScript","getElementsByTagName","parentNode","insertBefore","set","loadScript","loadStyle","loadSharedModule","scope","module","container","init","default","resolveBasicPkg","basicPkgWillBeResolved","waitBasicPkg","flushStableLoadBricks","enqueueStableLoadBricks","bricks","brickPackages","dispatchRequestStatus","enqueueStableLoad","enqueueStableLoadProcessors","processors","loadBricksImperatively","loadProcessorsImperatively","v2AdapterPromise","V2_ADAPTER_LOAD_BRICKS","getItemsByPkg","list","brickPackagesMap","itemsByPkg","listToLoad","Set","add","_pkg$dependencies","has","pkg","namespace","lastName","includes","split","pkgId","camelPackageName","replace","match","toLocaleLowerCase","deprecatedBrickInThisPkg","p","values","_p$elements","elements","some","_p$deprecatedElements","deprecatedElements","console","error","groupItems","push","fullName","deps","dependencies","dep","loadBrickModule","moduleName","Error","loadRestBricks","pkgs","itemsMap","filePath","PUBLIC_ROOT","id","getPkgIdByFilePath","foundBasicPkg","v2Packages","v3PackagesOtherThanBasic","maybeV2Adapter","keys","v2Adapter","basicPkgPromise","basicPkg","tempPromise","then","pkgPromises","concat","length","v2AdapterItemsByPkg","v2AdapterPackages","loadV2Adapter","adapter","pkgNamespace","dll","slice","join"],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_next_bricks_advanced=globalThis.webpackChunk_next_bricks_advanced||[]).push([[5479],{49385:(e,t,n)=>{n.d(t,{F:()=>F});var a=n(18769),l=n.n(a),o=n(80050),r=n(16768),i=n(42391),s=n(68621),c=n(5664),d=n(18799),u=n(85502),p=n(36538);let m=function(e){return e.TOTAL="TOTAL",e.SELECT_INFO="SELECT_INFO",e.CLEAR="CLEAR",e}({});const g="bricks/advanced/eo-next-table";var h=n(41030);const f={showSizeChanger:!0,showTotal:!0},b={preserveSelectedRowKeys:!0,showSelectInfo:!0};function v(e){const t=[];if((0,h.isNil)(e));else if(Array.isArray(e))e.map((e=>t.push(v(e))));else if("[object Object]"===Object.prototype.toString.call(e))for(const n in e)t.push(String(n),v(e[n]));else t.push(String(e));return t.flat(1/0).filter(Boolean)}function w(e,t){return Array.isArray(t)?(0,h.get)(e,t):e[t]}function x(e){let{list:t,columns:n,q:a,searchFields:l,childrenColumnName:o}=e;return a?(0,h.reduce)(t,((e,t)=>{let r=[];if(l?r=l.flatMap((e=>v((0,h.get)(t,e)))):n&&(r=n.flatMap((e=>v(w(t,e.dataIndex))))),r.some((e=>e.toLowerCase().includes(a))))return e.concat(t);const i=x({list:t[o],columns:n,q:a,searchFields:l,childrenColumnName:o});if(null!=i&&i.length){const n={...t,[o]:i};return e.concat(n)}return e}),[]):t}function y(e){return"[object Object]"===Object.prototype.toString.call(e)&&null!==e&&!Array.isArray(e)}function S(e){let{list:t,rowKey:n,childrenColumnName:a}=e;const l=[];return null==t||t.forEach((e=>{l.push(e[n]);const t=S({list:e[a],rowKey:n,childrenColumnName:a});l.push(...t)})),[...new Set(l)]}var E=n(35049),k=n(80369),C=n(81380),A=n(87046),B=n(5414),R=n(89575),T=n(56550);const K=(0,a.forwardRef)((function(e,t){return l().createElement("tr",(0,R.A)({},e,{ref:t}))}));function z(e){const{attributes:t,listeners:n,setNodeRef:a,transform:o,transition:r,isDragging:i}=(0,A.gl)({id:e["data-row-key"]}),s={...e.style,transform:T.Ks.Transform.toString(o),transition:r,cursor:"move",touchAction:"none",...i?{position:"relative",zIndex:999}:{}};return l().createElement(K,(0,R.A)({},e,{ref:a,style:s},t,n))}var I=n(84352),N=n(26386);function L(e){const[t,n]=(0,a.useState)(e.data);return(0,a.useEffect)((()=>{n(e.data)}),Object.values(e.data)),l().createElement(c.ReactUseMultipleBricks,{useBrick:e.useBrick,data:t})}(0,u.initializeReactI18n)(g,{en:{TOTAL:"Total <el>{{ total }}</el> Items",SELECT_INFO:"{{ count }} item selected",SELECT_INFO_plural:"{{ count }} items selected",CLEAR:"Clear"},zh:{TOTAL:"共 <el>{{ total }}</el> 条",SELECT_INFO:"已选择 {{ count }} 项",CLEAR:"清空"}});const O=(0,E.wrapBrick)("eo-link"),F=(0,a.forwardRef)((function(e,t){var n,v;const{shadowRoot:E,rowKey:R,columns:T,cell:F,dataSource:_,frontSearch:D,pagination:M,multiSort:j,rowSelection:P,hiddenColumns:q,expandable:H,childrenColumnName:U,rowDraggable:G,searchFields:V,size:J,showHeader:Q,bordered:W,scrollConfig:X,optimizedColumns:Y,onPageChange:Z,onPageSizeChange:$,onSort:ee,onRowSelect:te,onRowExpand:ne,onExpandedRowsChange:ae,onRowDrag:le}=e,{t:oe}=(0,u.useTranslation)(g),re=(0,a.useMemo)((()=>(0,s.VC)()),[]),ie=(0,c.useCurrentTheme)(),se="zh"===d.i18n.language.split("-")[0]?N.A:I.A,ce=(0,C.FR)((0,C.MS)(C.AN,{activationConstraint:{distance:1}})),[de,ue]=(0,a.useState)(null==_?void 0:_.list),pe=(0,a.useMemo)((()=>{var e;return(null==_||null===(e=_.list)||void 0===e?void 0:e.map((e=>e[R])))??[]}),[null==_?void 0:_.list,R]),[{page:me,pageSize:ge},he]=(0,a.useState)({page:(null==_?void 0:_.page)??1,pageSize:(null==_?void 0:_.pageSize)??20}),[fe,be]=(0,a.useState)(e.selectedRowKeys),[ve,we]=(0,a.useState)(e.expandedRowKeys??[]),[xe,ye]=(0,a.useState)(e.sort),Se=(0,a.useMemo)((()=>{var e;return null==_||null===(e=_.list)||void 0===e?void 0:e.some((e=>{var t;return null===(t=e[U])||void 0===t?void 0:t.length}))}),[null==_?void 0:_.list,U]);(0,a.useEffect)((()=>{be(e.selectedRowKeys)}),[e.selectedRowKeys]),(0,a.useEffect)((()=>{we(e.expandedRowKeys??[])}),[e.expandedRowKeys]),(0,a.useEffect)((()=>{y(H)&&H.defaultExpandAllRows&&we(S({list:null==_?void 0:_.list,rowKey:R,childrenColumnName:U}))}),[]),(0,a.useEffect)((()=>{ue(null==_?void 0:_.list),he({page:(null==_?void 0:_.page)??1,pageSize:(null==_?void 0:_.pageSize)??20})}),[_]),(0,a.useEffect)((()=>{ye(e.sort)}),[e.sort]);const Ee=(0,a.useMemo)((()=>{const e=new Set(q),t=new Set(Y),n=(0,h.keyBy)([].concat(xe||[]),"columnKey");return null==T?void 0:T.filter((t=>!e.has(t.key))).map((e=>{const a=n[e.key],o=(t,n)=>{return a=w(t,e.dataIndex),l=w(n,e.dataIndex),String(a).localeCompare(String(l));var a,l};return{...e,...e.sortable?{sorter:j?{compare:D?o:void 0,multiple:e.sortPriority}:!D||o,sortOrder:a?a.order:null}:{},...t.has(e.key)?{shouldCellUpdate:(e,t)=>e!==t}:{},render(t,n,a){const o={cellData:t,rowData:n,columnIndex:a,rowIndex:a,columnKey:e.key};return null!=F&&F.useBrick?l().createElement(L,{useBrick:F.useBrick,data:o}):e.useBrick?l().createElement(L,{useBrick:e.useBrick,data:o}):l().createElement(l().Fragment,null,t)},title(){var t,n;const a={title:e.title,columnKey:e.key};return null!=F&&null!==(t=F.header)&&void 0!==t&&t.useBrick?l().createElement(L,{useBrick:F.header.useBrick,data:a}):null!==(n=e.headerBrick)&&void 0!==n&&n.useBrick?l().createElement(L,{useBrick:e.headerBrick.useBrick,data:a}):l().createElement(l().Fragment,null,e.title)},onCell:t=>({colSpan:e.cellColSpanKey?t[e.cellColSpanKey]:void 0,rowSpan:e.cellRowSpanKey?t[e.cellRowSpanKey]:void 0,style:{...e.cellStyle,verticalAlign:e.verticalAlign}}),onHeaderCell:()=>({style:e.headerStyle})}}))}),[F,T,q,j,xe,D,Y]),ke=(0,a.useMemo)((()=>{if(!1!==P&&!(0,h.isNil)(P))return{...b,...!0===P?{}:P}}),[P]),Ce=(0,a.useMemo)((()=>!1!==M&&{...f,...M}),[M]),Ae=(0,a.useMemo)((()=>Se||!Se&&"children"!==U?y(H)?H:{}:!1===H||(0,h.isNil)(H)?void 0:y(H)?H:{}),[H,Se,U]);(0,a.useImperativeHandle)(t,(()=>({search:e=>{let{q:t}=e;const n=x({q:(null==t?void 0:t.trim().toLowerCase())||"",list:null==_?void 0:_.list,columns:T,searchFields:V,childrenColumnName:U});ue(n),he((e=>{if(1!==e.page){const t={page:1,pageSize:e.pageSize??20};return null==Z||Z(t),t}return e}))}})));const Be=(0,a.useCallback)((e=>{let{active:t,over:n}=e;n&&t.id!==(null==n?void 0:n.id)&&ue((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const a=e.findIndex((e=>e[R]===t.id)),l=e.findIndex((e=>e[R]===(null==n?void 0:n.id))),o=(0,A.be)(e,a,l);return null==le||le({list:o,active:e[a],over:e[l]}),o}))}),[R,le]);return l().createElement(o.Ay,{locale:se,theme:{algorithm:"dark-v2"===ie?r.A.darkAlgorithm:r.A.defaultAlgorithm,components:{Table:{headerBorderRadius:0,headerSplitColor:"none",...W?{borderColor:"#f0f0f0"}:{}}}},getPopupContainer:()=>E},l().createElement(s.N7,{container:E,cache:re},l().createElement(C.Mp,{sensors:ce,collisionDetection:C.fp,modifiers:[B.FN,B.Mk],onDragEnd:Be},l().createElement(A.gB,{items:pe,strategy:A._G},l().createElement(i.A,{components:{body:{row:G&&!Se?z:K}},rowKey:R,columns:Ee,dataSource:de,size:J,showHeader:Q,bordered:W,scroll:X,pagination:!1!==Ce&&{...Ce,total:null==_?void 0:_.total,current:me,pageSize:ge,showTotal:e=>l().createElement("div",{className:"pagination-wrapper"},Ce.showTotal?l().createElement("span",{className:"pagination-total-text"},l().createElement(p.Trans,{i18nKey:oe(m.TOTAL),values:{total:e},components:{el:l().createElement("strong",{className:"pagination-total-number"})}})):null,null!=ke&&ke.showSelectInfo&&null!=fe&&fe.length?l().createElement("span",{className:"select-info"},l().createElement("span",null,oe(m.SELECT_INFO,{count:fe.length})),l().createElement(O,{onClick:()=>{be([]),null==te||te({keys:[],rows:[],info:{type:"none"}})}},oe(m.CLEAR))):null)},rowSelection:void 0===ke?void 0:{...ke,selectedRowKeys:fe,getCheckboxProps(e){const t={rowData:e};return{disabled:void 0!==ke.rowDisabled&&(0,k.checkIfByTransform)({if:ke.rowDisabled},t)}},onChange(e,t,n){be(e),null==te||te({keys:e,rows:t,info:n})}},expandable:void 0===Ae?void 0:{...Ae,childrenColumnName:U,expandedRowKeys:ve,rowExpandable(e){const t={rowData:e};return void 0===Ae.rowExpandable||(0,k.checkIfByTransform)({if:Ae.rowExpandable},t)},expandedRowRender:null!==(n=Ae.expandedRowBrick)&&void 0!==n&&n.useBrick?(e,t,n,a)=>{const o={rowData:e,index:t,indent:n,expanded:a};return l().createElement(L,{useBrick:Ae.expandedRowBrick.useBrick,data:o})}:void 0,expandIcon:null!==(v=Ae.expandIconBrick)&&void 0!==v&&v.useBrick?e=>{let{expanded:t,expandable:n,record:a,onExpand:o}=e;const r={rowData:a,expanded:t,expandable:n};return l().createElement("span",{onClick:e=>n&&o(a,e)},l().createElement(L,{useBrick:Ae.expandIconBrick.useBrick,data:r}))}:void 0,onExpand:(e,t)=>{null==ne||ne({expanded:e,record:t})},onExpandedRowsChange:e=>{const t=[...e];we(t),null==ae||ae(t)}},onChange:(e,t,n,a)=>{switch(a.action){case"paginate":he((t=>{if(t.pageSize!==e.pageSize){const t={page:1,pageSize:e.pageSize??20};return null==$||$(t),null==Z||Z(t),t}if(t.page!==e.current){const t={page:e.current??1,pageSize:e.pageSize??20};return null==Z||Z(t),t}return t}));break;case"sort":{const e=Array.isArray(n)?n.filter((e=>e.order)).map((e=>({columnKey:e.columnKey,order:e.order}))):n.order?{columnKey:n.columnKey,order:n.order}:void 0;ye(e),null==ee||ee(e)}}}})))))}))},61098:(e,t,n)=>{n.d(t,{A:()=>i});var a=n(36758),l=n.n(a),o=n(40935),r=n.n(o)()(l());r.push([e.id,':root{--eo-table-head-cell-padding:14px 12px;--eo-table-body-cell-padding:12px 12px}html[data-ui="v8-2"]{--eo-table-head-cell-padding:8px 12px}html[data-ui="v8-2"] eo-next-table[size="large"]{--eo-table-body-cell-padding:10px 12px}html[data-ui="v8-2"] eo-next-table[size="middle"]{--eo-table-body-cell-padding:8px 12px}html[data-ui="v8-2"] eo-next-table[size="small"]{--eo-table-body-cell-padding:4px 12px}',""]);const i=r},81634:(e,t,n)=>{n.d(t,{A:()=>i});var a=n(36758),l=n.n(a),o=n(40935),r=n.n(o)()(l());r.push([e.id,":host{display:block}:host([hidden]){display:none}.pagination-wrapper{display:flex;gap:20px}.pagination-total-text{color:var(--color-secondary-text)}.pagination-total-number{font-weight:var(--font-weight-400);color:var(--color-normal-text)}.select-info{display:flex;gap:10px}.ant-pagination-total-text{position:absolute;left:0}.ant-pagination-options{order:-1;padding-right:12px}.ant-table-wrapper .ant-table-thead .ant-table-cell{padding:var(--eo-table-head-cell-padding)}.ant-table-wrapper\n .ant-table-container\n table\n > thead\n > tr:first-child\n > *:first-child,\n.ant-table-tbody .ant-table-row .ant-table-cell:first-child{padding-left:16px}.ant-table-wrapper\n .ant-table-container\n table\n > thead\n > tr:first-child\n > *:last-child,\n.ant-table-tbody .ant-table-row .ant-table-cell:last-child{padding-right:16px}.ant-table-wrapper .ant-table-tbody .ant-table-cell{padding:var(--eo-table-body-cell-padding)}.ant-table-ping-left .ant-table-cell-fix-left-last::after{box-shadow:var(--left-slide-shadow)}.ant-table-ping-right .ant-table-cell-fix-right-first::after{box-shadow:var(--right-slide-shadow)}.ant-pagination-options .ant-select .ant-select-selector{border:none;box-shadow:none!important;color:var(--color-normal-text)}.ant-pagination .ant-pagination-item:not(.ant-pagination-item-active) a{color:var(--color-normal-text)}",""]);const i=r.toString()},34612:(e,t,n)=>{var a=n(72591),l=n.n(a),o=n(1740),r=n.n(o),i=n(88128),s=n.n(i),c=n(30855),d=n.n(c),u=n(93051),p=n.n(u),m=n(73656),g=n.n(m),h=n(61098),f={};f.styleTagTransform=g(),f.setAttributes=d(),f.insert=s().bind(null,"head"),f.domAPI=r(),f.insertStyleElement=p(),l()(h.A,f),h.A&&h.A.locals&&h.A.locals}}]);
2
- //# sourceMappingURL=5479.469d3551.js.map
@@ -1,2 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_next_bricks_advanced=globalThis.webpackChunk_next_bricks_advanced||[]).push([[5683],{81380:(e,t,n)=>{n.d(t,{Mp:()=>je,vL:()=>$,AN:()=>ae,fp:()=>E,Sj:()=>N,fF:()=>Ke,PM:()=>Pe,zM:()=>_e,MS:()=>b,FR:()=>m});var r=n(18769),o=n.n(r),i=n(59435),a=n(56550);const s={display:"none"};function l(e){let{id:t,value:n}=e;return o().createElement("div",{id:t,style:s},n)}const c={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};function u(e){let{id:t,announcement:n}=e;return o().createElement("div",{id:t,style:c,role:"status","aria-live":"assertive","aria-atomic":!0},n)}const d=(0,r.createContext)(null),f={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},g={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function h(e){let{announcements:t=g,container:n,hiddenTextDescribedById:s,screenReaderInstructions:c=f}=e;const{announce:h,announcement:v}=function(){const[e,t]=(0,r.useState)("");return{announce:(0,r.useCallback)((e=>{null!=e&&t(e)}),[]),announcement:e}}(),p=(0,a.YG)("DndLiveRegion"),[b,m]=(0,r.useState)(!1);if((0,r.useEffect)((()=>{m(!0)}),[]),function(e){const t=(0,r.useContext)(d);(0,r.useEffect)((()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)}),[e,t])}((0,r.useMemo)((()=>({onDragStart(e){let{active:n}=e;h(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&h(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;h(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;h(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;h(t.onDragCancel({active:n,over:r}))}})),[h,t])),!b)return null;const y=o().createElement(o().Fragment,null,o().createElement(l,{id:s,value:c.draggable}),o().createElement(u,{id:p,announcement:v}));return n?(0,i.createPortal)(y,n):y}var v;function p(){}function b(e,t){return(0,r.useMemo)((()=>({sensor:e,options:null!=t?t:{}})),[e,t])}function m(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)((()=>[...t].filter((e=>null!=e))),[...t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(v||(v={}));const y=Object.freeze({x:0,y:0});function w(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function x(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function C(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const E=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=C(t,t.left,t.top),i=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=(a=C(r),s=o,Math.sqrt(Math.pow(a.x-s.x,2)+Math.pow(a.y-s.y,2)));i.push({id:t,data:{droppableContainer:e,value:n}})}}var a,s;return i.sort(w)};function R(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,s=i-n;if(r<o&&n<i){const n=t.width*t.height,r=e.width*e.height,o=a*s;return Number((o/(n+r-o)).toFixed(4))}return 0}const D=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const e of r){const{id:r}=e,i=n.get(r);if(i){const n=R(i,t);n>0&&o.push({id:r,data:{droppableContainer:e,value:n}})}}return o.sort(x)};function S(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:y}function M(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce(((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x})),{...t})}}const k=M(1);const T={ignoreTransform:!1};function N(e,t){void 0===t&&(t=T);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=(0,a.zk)(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(t);if(!r)return e;const{scaleX:o,scaleY:i,x:a,y:s}=r,l=e.left-a-(1-o)*parseFloat(n),c=e.top-s-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=o?e.width/o:e.width,d=i?e.height/i:e.height;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l}}(n,t,r))}const{top:r,left:o,width:i,height:s,bottom:l,right:c}=n;return{top:r,left:o,width:i,height:s,bottom:l,right:c}}function I(e){return N(e,{ignoreTransform:!0})}function O(e,t){const n=[];return e?function r(o){if(null!=t&&n.length>=t)return n;if(!o)return n;if((0,a.wz)(o)&&null!=o.scrollingElement&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!(0,a.sb)(o)||(0,a.xZ)(o))return n;if(n.includes(o))return n;const i=(0,a.zk)(e).getComputedStyle(o);return o!==e&&function(e,t){void 0===t&&(t=(0,a.zk)(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const r=t[e];return"string"==typeof r&&n.test(r)}))}(o,i)&&n.push(o),function(e,t){return void 0===t&&(t=(0,a.zk)(e).getComputedStyle(e)),"fixed"===t.position}(o,i)?n:r(o.parentNode)}(e):n}function A(e){const[t]=O(e,1);return null!=t?t:null}function L(e){return a.Sw&&e?(0,a.l6)(e)?e:(0,a.Ll)(e)?(0,a.wz)(e)||e===(0,a.TW)(e).scrollingElement?window:(0,a.sb)(e)?e:null:null:null}function z(e){return(0,a.l6)(e)?e.scrollX:e.scrollLeft}function B(e){return(0,a.l6)(e)?e.scrollY:e.scrollTop}function j(e){return{x:z(e),y:B(e)}}var F;function Y(e){return!(!a.Sw||!e)&&e===document.scrollingElement}function W(e){const t={x:0,y:0},n=Y(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(F||(F={}));const P={x:.2,y:.2};function K(e,t,n,r,o){let{top:i,left:a,right:s,bottom:l}=n;void 0===r&&(r=10),void 0===o&&(o=P);const{isTop:c,isBottom:u,isLeft:d,isRight:f}=W(e),g={x:0,y:0},h={x:0,y:0},v=t.height*o.y,p=t.width*o.x;return!c&&i<=t.top+v?(g.y=F.Backward,h.y=r*Math.abs((t.top+v-i)/v)):!u&&l>=t.bottom-v&&(g.y=F.Forward,h.y=r*Math.abs((t.bottom-v-l)/v)),!f&&s>=t.right-p?(g.x=F.Forward,h.x=r*Math.abs((t.right-p-s)/p)):!d&&a<=t.left+p&&(g.x=F.Backward,h.x=r*Math.abs((t.left+p-a)/p)),{direction:g,speed:h}}function X(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function U(e){return e.reduce(((e,t)=>(0,a.WQ)(e,j(t))),y)}const _=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+z(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+B(t)),0)}]];class G{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=O(t),r=U(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,o]of _)for(const i of t)Object.defineProperty(this,i,{get:()=>{const t=o(n),a=r[e]-t;return this.rect[i]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class H{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function q(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var Q,$;function J(e){e.preventDefault()}function V(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(Q||(Q={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}($||($={}));const Z={start:[$.Space,$.Enter],cancel:[$.Esc],end:[$.Space,$.Enter]},ee=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case $.Right:return{...n,x:n.x+25};case $.Left:return{...n,x:n.x-25};case $.Down:return{...n,y:n.y+25};case $.Up:return{...n,y:n.y-25}}};class te{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new H((0,a.TW)(t)),this.windowListeners=new H((0,a.zk)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Q.Resize,this.handleCancel),this.windowListeners.add(Q.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(Q.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&function(e,t){if(void 0===t&&(t=N),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);A(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}(n),t(y)}handleKeyDown(e){if((0,a.kx)(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:o=Z,coordinateGetter:i=ee,scrollBehavior:s="smooth"}=r,{code:l}=e;if(o.end.includes(l))return void this.handleEnd(e);if(o.cancel.includes(l))return void this.handleCancel(e);const{collisionRect:c}=n.current,u=c?{x:c.left,y:c.top}:y;this.referenceCoordinates||(this.referenceCoordinates=u);const d=i(e,{active:t,context:n.current,currentCoordinates:u});if(d){const t=(0,a.Re)(d,u),r={x:0,y:0},{scrollableAncestors:o}=n.current;for(const n of o){const o=e.code,{isTop:i,isRight:a,isLeft:l,isBottom:c,maxScroll:u,minScroll:f}=W(n),g=X(n),h={x:Math.min(o===$.Right?g.right-g.width/2:g.right,Math.max(o===$.Right?g.left:g.left+g.width/2,d.x)),y:Math.min(o===$.Down?g.bottom-g.height/2:g.bottom,Math.max(o===$.Down?g.top:g.top+g.height/2,d.y))},v=o===$.Right&&!a||o===$.Left&&!l,p=o===$.Down&&!c||o===$.Up&&!i;if(v&&h.x!==d.x){const e=n.scrollLeft+t.x,i=o===$.Right&&e<=u.x||o===$.Left&&e>=f.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:s});r.x=i?n.scrollLeft-e:o===$.Right?n.scrollLeft-u.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:s});break}if(p&&h.y!==d.y){const e=n.scrollTop+t.y,i=o===$.Down&&e<=u.y||o===$.Up&&e>=f.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:s});r.y=i?n.scrollTop-e:o===$.Down?n.scrollTop-u.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:s});break}}this.handleMove(e,(0,a.WQ)((0,a.Re)(d,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function ne(e){return Boolean(e&&"distance"in e)}function re(e){return Boolean(e&&"delay"in e)}te.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=Z,onActivation:o}=t,{active:i}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const t=i.activatorNode.current;return!(t&&e.target!==t||(e.preventDefault(),null==o||o({event:e.nativeEvent}),0))}return!1}}];class oe{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=(0,a.zk)(e);return e instanceof t?e:(0,a.TW)(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:o}=e,{target:i}=o;this.props=e,this.events=t,this.document=(0,a.TW)(i),this.documentListeners=new H(this.document),this.listeners=new H(n),this.windowListeners=new H((0,a.zk)(i)),this.initialCoordinates=null!=(r=(0,a.e_)(o))?r:y,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(Q.Resize,this.handleCancel),this.windowListeners.add(Q.DragStart,J),this.windowListeners.add(Q.VisibilityChange,this.handleCancel),this.windowListeners.add(Q.ContextMenu,J),this.documentListeners.add(Q.Keydown,this.handleKeydown),t){if(ne(t))return;if(re(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay))}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(Q.Click,V,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Q.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:o}=this,{onMove:i,options:{activationConstraint:s}}=o;if(!r)return;const l=null!=(t=(0,a.e_)(e))?t:y,c=(0,a.Re)(r,l);if(!n&&s){if(re(s))return q(c,s.tolerance)?this.handleCancel():void 0;if(ne(s))return null!=s.tolerance&&q(c,s.tolerance)?this.handleCancel():q(c,s.distance)?this.handleStart():void 0}e.cancelable&&e.preventDefault(),i(l)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===$.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const ie={move:{name:"pointermove"},end:{name:"pointerup"}};class ae extends oe{constructor(e){const{event:t}=e,n=(0,a.TW)(t.target);super(e,ie,n)}}ae.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button||(null==r||r({event:n}),0))}}];const se={move:{name:"mousemove"},end:{name:"mouseup"}};var le;!function(e){e[e.RightClick=2]="RightClick"}(le||(le={})),class extends oe{constructor(e){super(e,se,(0,a.TW)(e.event.target))}}.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==le.RightClick&&(null==r||r({event:n}),!0)}}];const ce={move:{name:"touchmove"},end:{name:"touchend"}};var ue,de;(class extends oe{constructor(e){super(e,ce)}static setup(){return window.addEventListener(ce.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(ce.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return!(o.length>1||(null==r||r({event:n}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(ue||(ue={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(de||(de={}));const fe={x:{[F.Backward]:!1,[F.Forward]:!1},y:{[F.Backward]:!1,[F.Forward]:!1}};var ge,he;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(ge||(ge={})),function(e){e.Optimized="optimized"}(he||(he={}));const ve=new Map;function pe(e,t){return(0,a.KG)((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function be(e){let{callback:t,disabled:n}=e;const o=(0,a._q)(t),i=(0,r.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(o)}),[n]);return(0,r.useEffect)((()=>()=>null==i?void 0:i.disconnect()),[i]),i}function me(e){return new G(N(e),e)}function ye(e,t,n){void 0===t&&(t=me);const[o,i]=(0,r.useReducer)((function(r){if(!e)return null;var o;if(!1===e.isConnected)return null!=(o=null!=r?r:n)?o:null;const i=t(e);return JSON.stringify(r)===JSON.stringify(i)?r:i}),null),s=function(e){let{callback:t,disabled:n}=e;const o=(0,a._q)(t),i=(0,r.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(o)}),[o,n]);return(0,r.useEffect)((()=>()=>null==i?void 0:i.disconnect()),[i]),i}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){i();break}}}}),l=be({callback:i});return(0,a.Es)((()=>{i(),e?(null==l||l.observe(e),null==s||s.observe(document.body,{childList:!0,subtree:!0})):(null==l||l.disconnect(),null==s||s.disconnect())}),[e]),o}const we=[];function xe(e,t){void 0===t&&(t=[]);const n=(0,r.useRef)(null);return(0,r.useEffect)((()=>{n.current=null}),t),(0,r.useEffect)((()=>{const t=e!==y;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)}),[e]),n.current?(0,a.Re)(e,n.current):y}function Ce(e){return(0,r.useMemo)((()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null),[e])}const Ee=[];const Re=[{sensor:ae,options:{}},{sensor:te,options:{}}],De={current:{}},Se={draggable:{measure:I},droppable:{measure:I,strategy:ge.WhileDragging,frequency:he.Optimized},dragOverlay:{measure:N}};class Me extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const ke={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Me,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:p},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Se,measureDroppableContainers:p,windowRect:null,measuringScheduled:!1},Te={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:p,draggableNodes:new Map,over:null,measureDroppableContainers:p},Ne=(0,r.createContext)(Te),Ie=(0,r.createContext)(ke);function Oe(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Me}}}function Ae(e,t){switch(t.type){case v.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case v.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case v.DragEnd:case v.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case v.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new Me(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case v.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new Me(e.droppable.containers);return a.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:a}}}case v.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new Me(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function Le(e){let{disabled:t}=e;const{active:n,activatorEvent:o,draggableNodes:i}=(0,r.useContext)(Ne),s=(0,a.ZC)(o),l=(0,a.ZC)(null==n?void 0:n.id);return(0,r.useEffect)((()=>{if(!t&&!o&&s&&null!=l){if(!(0,a.kx)(s))return;if(document.activeElement===s.target)return;const e=i.get(l);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=(0,a.ag)(e);if(t){t.focus();break}}}))}}),[o,t,i,l,s]),null}const ze=(0,r.createContext)({...y,scaleX:1,scaleY:1});var Be;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(Be||(Be={}));const je=(0,r.memo)((function(e){var t,n,s,l;let{id:c,accessibility:u,autoScroll:f=!0,children:g,sensors:p=Re,collisionDetection:b=D,measuring:m,modifiers:w,...x}=e;const C=(0,r.useReducer)(Ae,void 0,Oe),[E,R]=C,[M,T]=function(){const[e]=(0,r.useState)((()=>new Set)),t=(0,r.useCallback)((t=>(e.add(t),()=>e.delete(t))),[e]);return[(0,r.useCallback)((t=>{let{type:n,event:r}=t;e.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)}))}),[e]),t]}(),[I,z]=(0,r.useState)(Be.Uninitialized),B=I===Be.Initialized,{draggable:{active:W,nodes:P,translate:X},droppable:{containers:_}}=E,H=W?P.get(W):null,q=(0,r.useRef)({initial:null,translated:null}),Q=(0,r.useMemo)((()=>{var e;return null!=W?{id:W,data:null!=(e=null==H?void 0:H.data)?e:De,rect:q}:null}),[W,H]),$=(0,r.useRef)(null),[J,V]=(0,r.useState)(null),[Z,ee]=(0,r.useState)(null),te=(0,a.YN)(x,Object.values(x)),ne=(0,a.YG)("DndDescribedBy",c),re=(0,r.useMemo)((()=>_.getEnabled()),[_]),oe=(ie=m,(0,r.useMemo)((()=>({draggable:{...Se.draggable,...null==ie?void 0:ie.draggable},droppable:{...Se.droppable,...null==ie?void 0:ie.droppable},dragOverlay:{...Se.dragOverlay,...null==ie?void 0:ie.dragOverlay}})),[null==ie?void 0:ie.draggable,null==ie?void 0:ie.droppable,null==ie?void 0:ie.dragOverlay]));var ie;const{droppableRects:ae,measureDroppableContainers:se,measuringScheduled:le}=function(e,t){let{dragging:n,dependencies:o,config:i}=t;const[s,l]=(0,r.useState)(null),{frequency:c,measure:u,strategy:d}=i,f=(0,r.useRef)(e),g=function(){switch(d){case ge.Always:return!1;case ge.BeforeDragging:return n;default:return!n}}(),h=(0,a.YN)(g),v=(0,r.useCallback)((function(e){void 0===e&&(e=[]),h.current||l((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[h]),p=(0,r.useRef)(null),b=(0,a.KG)((t=>{if(g&&!n)return ve;if(!t||t===ve||f.current!==e||null!=s){const t=new Map;for(let n of e){if(!n)continue;if(s&&s.length>0&&!s.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,r=e?new G(u(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t}),[e,s,n,g,u]);return(0,r.useEffect)((()=>{f.current=e}),[e]),(0,r.useEffect)((()=>{g||v()}),[n,g]),(0,r.useEffect)((()=>{s&&s.length>0&&l(null)}),[JSON.stringify(s)]),(0,r.useEffect)((()=>{g||"number"!=typeof c||null!==p.current||(p.current=setTimeout((()=>{v(),p.current=null}),c))}),[c,g,v,...o]),{droppableRects:b,measureDroppableContainers:v,measuringScheduled:null!=s}}(re,{dragging:B,dependencies:[X.x,X.y],config:oe.droppable}),ce=function(e,t){const n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return(0,a.KG)((e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(P,W),he=(0,r.useMemo)((()=>Z?(0,a.e_)(Z):null),[Z]),me=function(){const e=!1===(null==J?void 0:J.autoScrollEnabled),t="object"==typeof f?!1===f.enabled:!1===f,n=B&&!e&&!t;return"object"==typeof f?{...f,enabled:n}:{enabled:n}}(),Me=function(e,t){return pe(e,t)}(ce,oe.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:o,config:i=!0}=e;const s=(0,r.useRef)(!1),{x:l,y:c}="boolean"==typeof i?{x:i,y:i}:i;(0,a.Es)((()=>{if(!l&&!c||!t)return void(s.current=!1);if(s.current||!o)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const r=S(n(e),o);if(l||(r.x=0),c||(r.y=0),s.current=!0,Math.abs(r.x)>0||Math.abs(r.y)>0){const t=A(e);t&&t.scrollBy({top:r.y,left:r.x})}}),[t,l,c,o,n])}({activeNode:W?P.get(W):null,config:me.layoutShiftCompensation,initialRect:Me,measure:oe.draggable.measure});const ke=ye(ce,oe.draggable.measure,Me),Te=ye(ce?ce.parentElement:null),je=(0,r.useRef)({activatorEvent:null,active:null,activeNode:ce,collisionRect:null,collisions:null,droppableRects:ae,draggableNodes:P,draggingNode:null,draggingNodeRect:null,droppableContainers:_,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Fe=_.getNodeFor(null==(t=je.current.over)?void 0:t.id),Ye=function(e){let{measure:t}=e;const[n,o]=(0,r.useState)(null),i=be({callback:(0,r.useCallback)((e=>{for(const{target:n}of e)if((0,a.sb)(n)){o((e=>{const r=t(n);return e?{...e,width:r.width,height:r.height}:r}));break}}),[t])}),s=(0,r.useCallback)((e=>{const n=function(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return(0,a.sb)(t)?t:e}(e);null==i||i.disconnect(),n&&(null==i||i.observe(n)),o(n?t(n):null)}),[t,i]),[l,c]=(0,a.lk)(s);return(0,r.useMemo)((()=>({nodeRef:l,rect:n,setRef:c})),[n,l,c])}({measure:oe.dragOverlay.measure}),We=null!=(n=Ye.nodeRef.current)?n:ce,Pe=B?null!=(s=Ye.rect)?s:ke:null,Ke=Boolean(Ye.nodeRef.current&&Ye.rect),Xe=S(Ue=Ke?null:ke,pe(Ue));var Ue;const _e=Ce(We?(0,a.zk)(We):null),Ge=function(e){const t=(0,r.useRef)(e),n=(0,a.KG)((n=>e?n&&n!==we&&e&&t.current&&e.parentNode===t.current.parentNode?n:O(e):we),[e]);return(0,r.useEffect)((()=>{t.current=e}),[e]),n}(B?null!=Fe?Fe:ce:null),He=function(e,t){void 0===t&&(t=N);const[n]=e,o=Ce(n?(0,a.zk)(n):null),[i,s]=(0,r.useReducer)((function(){return e.length?e.map((e=>Y(e)?o:new G(t(e),e))):Ee}),Ee),l=be({callback:s});return e.length>0&&i===Ee&&s(),(0,a.Es)((()=>{e.length?e.forEach((e=>null==l?void 0:l.observe(e))):(null==l||l.disconnect(),s())}),[e]),i}(Ge),qe=function(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...r})),n):n}(w,{transform:{x:X.x-Xe.x,y:X.y-Xe.y,scaleX:1,scaleY:1},activatorEvent:Z,active:Q,activeNodeRect:ke,containerNodeRect:Te,draggingNodeRect:Pe,over:je.current.over,overlayNodeRect:Ye.rect,scrollableAncestors:Ge,scrollableAncestorRects:He,windowRect:_e}),Qe=he?(0,a.WQ)(he,X):null,$e=function(e){const[t,n]=(0,r.useState)(null),o=(0,r.useRef)(e),i=(0,r.useCallback)((e=>{const t=L(e.target);t&&n((e=>e?(e.set(t,j(t)),new Map(e)):null))}),[]);return(0,r.useEffect)((()=>{const t=o.current;if(e!==t){r(t);const a=e.map((e=>{const t=L(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,j(t)]):null})).filter((e=>null!=e));n(a.length?new Map(a):null),o.current=e}return()=>{r(e),r(t)};function r(e){e.forEach((e=>{const t=L(e);null==t||t.removeEventListener("scroll",i)}))}}),[i,e]),(0,r.useMemo)((()=>e.length?t?Array.from(t.values()).reduce(((e,t)=>(0,a.WQ)(e,t)),y):U(e):y),[e,t])}(Ge),Je=xe($e),Ve=xe($e,[ke]),Ze=(0,a.WQ)(qe,Je),et=Pe?k(Pe,qe):null,tt=Q&&et?b({active:Q,collisionRect:et,droppableRects:ae,droppableContainers:re,pointerCoordinates:Qe}):null,nt=function(e,t){if(!e||0===e.length)return null;const[n]=e;return n.id}(tt),[rt,ot]=(0,r.useState)(null),it=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(Ke?qe:(0,a.WQ)(qe,Ve),null!=(l=null==rt?void 0:rt.rect)?l:null,ke),at=(0,r.useCallback)(((e,t)=>{let{sensor:n,options:r}=t;if(null==$.current)return;const o=P.get($.current);if(!o)return;const a=e.nativeEvent,s=new n({active:$.current,activeNode:o,event:a,options:r,context:je,onStart(e){const t=$.current;if(null==t)return;const n=P.get(t);if(!n)return;const{onDragStart:r}=te.current,o={active:{id:t,data:n.data,rect:q}};(0,i.unstable_batchedUpdates)((()=>{null==r||r(o),z(Be.Initializing),R({type:v.DragStart,initialCoordinates:e,active:t}),M({type:"onDragStart",event:o})}))},onMove(e){R({type:v.DragMove,coordinates:e})},onEnd:l(v.DragEnd),onCancel:l(v.DragCancel)});function l(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:o}=je.current;let s=null;if(t&&o){const{cancelDrop:i}=te.current;s={activatorEvent:a,active:t,collisions:n,delta:o,over:r},e===v.DragEnd&&"function"==typeof i&&await Promise.resolve(i(s))&&(e=v.DragCancel)}$.current=null,(0,i.unstable_batchedUpdates)((()=>{R({type:e}),z(Be.Uninitialized),ot(null),V(null),ee(null);const t=e===v.DragEnd?"onDragEnd":"onDragCancel";if(s){const e=te.current[t];null==e||e(s),M({type:t,event:s})}}))}}(0,i.unstable_batchedUpdates)((()=>{V(s),ee(e.nativeEvent)}))}),[P]),st=(0,r.useCallback)(((e,t)=>(n,r)=>{const o=n.nativeEvent,i=P.get(r);if(null!==$.current||!i||o.dndKit||o.defaultPrevented)return;const a={active:i};!0===e(n,t.options,a)&&(o.dndKit={capturedBy:t.sensor},$.current=r,at(n,t))}),[P,at]),lt=function(e,t){return(0,r.useMemo)((()=>e.reduce(((e,n)=>{const{sensor:r}=n;return[...e,...r.activators.map((e=>({eventName:e.eventName,handler:t(e.handler,n)})))]}),[])),[e,t])}(p,st);!function(e){(0,r.useEffect)((()=>{if(!a.Sw)return;const t=e.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const e of t)null==e||e()}}),e.map((e=>{let{sensor:t}=e;return t})))}(p),(0,a.Es)((()=>{ke&&I===Be.Initializing&&z(Be.Initialized)}),[ke,I]),(0,r.useEffect)((()=>{const{onDragMove:e}=te.current,{active:t,activatorEvent:n,collisions:r,over:o}=je.current;if(!t||!n)return;const a={active:t,activatorEvent:n,collisions:r,delta:{x:Ze.x,y:Ze.y},over:o};(0,i.unstable_batchedUpdates)((()=>{null==e||e(a),M({type:"onDragMove",event:a})}))}),[Ze.x,Ze.y]),(0,r.useEffect)((()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:o}=je.current;if(!e||null==$.current||!t||!o)return;const{onDragOver:a}=te.current,s=r.get(nt),l=s&&s.rect.current?{id:s.id,rect:s.rect.current,data:s.data,disabled:s.disabled}:null,c={active:e,activatorEvent:t,collisions:n,delta:{x:o.x,y:o.y},over:l};(0,i.unstable_batchedUpdates)((()=>{ot(l),null==a||a(c),M({type:"onDragOver",event:c})}))}),[nt]),(0,a.Es)((()=>{je.current={activatorEvent:Z,active:Q,activeNode:ce,collisionRect:et,collisions:tt,droppableRects:ae,draggableNodes:P,draggingNode:We,draggingNodeRect:Pe,droppableContainers:_,over:rt,scrollableAncestors:Ge,scrollAdjustedTranslate:Ze},q.current={initial:Pe,translated:et}}),[Q,ce,tt,et,P,We,Pe,ae,_,rt,Ge,Ze]),function(e){let{acceleration:t,activator:n=ue.Pointer,canScroll:o,draggingRect:i,enabled:s,interval:l=5,order:c=de.TreeOrder,pointerCoordinates:u,scrollableAncestors:d,scrollableAncestorRects:f,delta:g,threshold:h}=e;const v=function(e){let{delta:t,disabled:n}=e;const r=(0,a.ZC)(t);return(0,a.KG)((e=>{if(n||!r||!e)return fe;const o=Math.sign(t.x-r.x),i=Math.sign(t.y-r.y);return{x:{[F.Backward]:e.x[F.Backward]||-1===o,[F.Forward]:e.x[F.Forward]||1===o},y:{[F.Backward]:e.y[F.Backward]||-1===i,[F.Forward]:e.y[F.Forward]||1===i}}}),[n,t,r])}({delta:g,disabled:!s}),[p,b]=(0,a.$$)(),m=(0,r.useRef)({x:0,y:0}),y=(0,r.useRef)({x:0,y:0}),w=(0,r.useMemo)((()=>{switch(n){case ue.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case ue.DraggableRect:return i}}),[n,i,u]),x=(0,r.useRef)(null),C=(0,r.useCallback)((()=>{const e=x.current;if(!e)return;const t=m.current.x*y.current.x,n=m.current.y*y.current.y;e.scrollBy(t,n)}),[]),E=(0,r.useMemo)((()=>c===de.TreeOrder?[...d].reverse():d),[c,d]);(0,r.useEffect)((()=>{if(s&&d.length&&w){for(const e of E){if(!1===(null==o?void 0:o(e)))continue;const n=d.indexOf(e),r=f[n];if(!r)continue;const{direction:i,speed:a}=K(e,r,w,t,h);for(const e of["x","y"])v[e][i[e]]||(a[e]=0,i[e]=0);if(a.x>0||a.y>0)return b(),x.current=e,p(C,l),m.current=a,void(y.current=i)}m.current={x:0,y:0},y.current={x:0,y:0},b()}else b()}),[t,C,o,b,s,l,JSON.stringify(w),JSON.stringify(v),p,d,E,f,JSON.stringify(h)])}({...me,delta:X,draggingRect:et,pointerCoordinates:Qe,scrollableAncestors:Ge,scrollableAncestorRects:He});const ct=(0,r.useMemo)((()=>({active:Q,activeNode:ce,activeNodeRect:ke,activatorEvent:Z,collisions:tt,containerNodeRect:Te,dragOverlay:Ye,draggableNodes:P,droppableContainers:_,droppableRects:ae,over:rt,measureDroppableContainers:se,scrollableAncestors:Ge,scrollableAncestorRects:He,measuringConfiguration:oe,measuringScheduled:le,windowRect:_e})),[Q,ce,ke,Z,tt,Te,Ye,P,_,ae,rt,se,Ge,He,oe,le,_e]),ut=(0,r.useMemo)((()=>({activatorEvent:Z,activators:lt,active:Q,activeNodeRect:ke,ariaDescribedById:{draggable:ne},dispatch:R,draggableNodes:P,over:rt,measureDroppableContainers:se})),[Z,lt,Q,ke,R,ne,P,rt,se]);return o().createElement(d.Provider,{value:T},o().createElement(Ne.Provider,{value:ut},o().createElement(Ie.Provider,{value:ct},o().createElement(ze.Provider,{value:it},g)),o().createElement(Le,{disabled:!1===(null==u?void 0:u.restoreFocus)})),o().createElement(h,{...u,hiddenTextDescribedById:ne}))})),Fe=(0,r.createContext)(null),Ye="button",We="Droppable";function Pe(e){let{id:t,data:n,disabled:o=!1,attributes:i}=e;const s=(0,a.YG)(We),{activators:l,activatorEvent:c,active:u,activeNodeRect:d,ariaDescribedById:f,draggableNodes:g,over:h}=(0,r.useContext)(Ne),{role:v=Ye,roleDescription:p="draggable",tabIndex:b=0}=null!=i?i:{},m=(null==u?void 0:u.id)===t,y=(0,r.useContext)(m?ze:Fe),[w,x]=(0,a.lk)(),[C,E]=(0,a.lk)(),R=function(e,t){return(0,r.useMemo)((()=>e.reduce(((e,n)=>{let{eventName:r,handler:o}=n;return e[r]=e=>{o(e,t)},e}),{})),[e,t])}(l,t),D=(0,a.YN)(n);return(0,a.Es)((()=>(g.set(t,{id:t,key:s,node:w,activatorNode:C,data:D}),()=>{const e=g.get(t);e&&e.key===s&&g.delete(t)})),[g,t]),{active:u,activatorEvent:c,activeNodeRect:d,attributes:(0,r.useMemo)((()=>({role:v,tabIndex:b,"aria-disabled":o,"aria-pressed":!(!m||v!==Ye)||void 0,"aria-roledescription":p,"aria-describedby":f.draggable})),[o,v,b,m,p,f.draggable]),isDragging:m,listeners:o?void 0:R,node:w,over:h,setNodeRef:x,setActivatorNodeRef:E,transform:y}}function Ke(){return(0,r.useContext)(Ie)}const Xe="Droppable",Ue={timeout:25};function _e(e){let{data:t,disabled:n=!1,id:o,resizeObserverConfig:i}=e;const s=(0,a.YG)(Xe),{active:l,dispatch:c,over:u,measureDroppableContainers:d}=(0,r.useContext)(Ne),f=(0,r.useRef)({disabled:n}),g=(0,r.useRef)(!1),h=(0,r.useRef)(null),p=(0,r.useRef)(null),{disabled:b,updateMeasurementsFor:m,timeout:y}={...Ue,...i},w=(0,a.YN)(null!=m?m:o),x=be({callback:(0,r.useCallback)((()=>{g.current?(null!=p.current&&clearTimeout(p.current),p.current=setTimeout((()=>{d(Array.isArray(w.current)?w.current:[w.current]),p.current=null}),y)):g.current=!0}),[y]),disabled:b||!l}),C=(0,r.useCallback)(((e,t)=>{x&&(t&&(x.unobserve(t),g.current=!1),e&&x.observe(e))}),[x]),[E,R]=(0,a.lk)(C),D=(0,a.YN)(t);return(0,r.useEffect)((()=>{x&&E.current&&(x.disconnect(),g.current=!1,x.observe(E.current))}),[E,x]),(0,a.Es)((()=>(c({type:v.RegisterDroppable,element:{id:o,key:s,disabled:n,node:E,rect:h,data:D}}),()=>c({type:v.UnregisterDroppable,key:s,id:o}))),[o]),(0,r.useEffect)((()=>{n!==f.current.disabled&&(c({type:v.SetDroppableDisabled,id:o,key:s,disabled:n}),f.current.disabled=n)}),[o,s,n,c]),{active:l,rect:h,isOver:(null==u?void 0:u.id)===o,node:E,over:u,setNodeRef:R}}},5414:(e,t,n)=>{n.d(t,{FN:()=>o,Mk:()=>r}),n(56550);const r=e=>{let{draggingNodeRect:t,transform:n,scrollableAncestorRects:r}=e;const o=r[0];return t&&o?function(e,t,n){const r={...e};return t.top+e.y<=n.top?r.y=n.top-t.top:t.bottom+e.y>=n.top+n.height&&(r.y=n.top+n.height-t.bottom),t.left+e.x<=n.left?r.x=n.left-t.left:t.right+e.x>=n.left+n.width&&(r.x=n.left+n.width-t.right),r}(n,t,o):n},o=e=>{let{transform:t}=e;return{...t,x:0}}},87046:(e,t,n)=>{n.d(t,{_G:()=>f,be:()=>s,gB:()=>v,gl:()=>C});var r=n(18769),o=n.n(r),i=n(81380),a=n(56550);function s(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function l(e,t){return e.reduce(((e,n,r)=>{const o=t.get(n);return o&&(e[r]=o),e}),Array(e.length))}function c(e){return null!==e&&e>=0}const u=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=s(t,r,n),a=t[o],l=i[o];return l&&a?{x:l.left-a.left,y:l.top-a.top,scaleX:l.width/a.width,scaleY:l.height/a.height}:null},d={scaleX:1,scaleY:1},f=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:o,rects:i,overIndex:a}=e;const s=null!=(t=i[n])?t:r;if(!s)return null;if(o===n){const e=i[a];return e?{x:0,y:n<a?e.top+e.height-(s.top+s.height):e.top-s.top,...d}:null}const l=function(e,t,n){const r=e[t],o=e[t-1],i=e[t+1];return r?n<t?o?r.top-(o.top+o.height):i?i.top-(r.top+r.height):0:i?i.top-(r.top+r.height):o?r.top-(o.top+o.height):0:0}(i,o,n);return o>n&&o<=a?{x:0,y:-s.height-l,...d}:o<n&&o>=a?{x:0,y:s.height+l,...d}:{x:0,y:0,...d}},g="Sortable",h=o().createContext({activeIndex:-1,containerId:g,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:u,disabled:{draggable:!1,droppable:!1}});function v(e){let{children:t,id:n,items:s,strategy:c=u,disabled:d=!1}=e;const{active:f,dragOverlay:v,droppableRects:p,over:b,measureDroppableContainers:m}=(0,i.fF)(),y=(0,a.YG)(g,n),w=Boolean(null!==v.rect),x=(0,r.useMemo)((()=>s.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[s]),C=null!=f,E=f?x.indexOf(f.id):-1,R=b?x.indexOf(b.id):-1,D=(0,r.useRef)(x),S=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(x,D.current),M=-1!==R&&-1===E||S,k=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(d);(0,a.Es)((()=>{S&&C&&m(x)}),[S,x,C,m]),(0,r.useEffect)((()=>{D.current=x}),[x]);const T=(0,r.useMemo)((()=>({activeIndex:E,containerId:y,disabled:k,disableTransforms:M,items:x,overIndex:R,useDragOverlay:w,sortedRects:l(x,p),strategy:c})),[E,y,k.draggable,k.droppable,M,x,R,p,w,c]);return o().createElement(h.Provider,{value:T},t)}const p=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return s(n,r,o).indexOf(t)},b=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:i,newIndex:a,previousItems:s,previousContainerId:l,transition:c}=e;return!(!c||!r||s!==i&&o===a||!n&&(a===o||t!==l))},m={duration:200,easing:"ease"},y="transform",w=a.Ks.Transition.toString({property:y,duration:0,easing:"linear"}),x={roleDescription:"sortable"};function C(e){let{animateLayoutChanges:t=b,attributes:n,disabled:o,data:s,getNewIndex:l=p,id:u,strategy:d,resizeObserverConfig:f,transition:g=m}=e;const{items:v,containerId:C,activeIndex:E,disabled:R,disableTransforms:D,sortedRects:S,overIndex:M,useDragOverlay:k,strategy:T}=(0,r.useContext)(h),N=function(e,t){var n,r;return"boolean"==typeof e?{draggable:e,droppable:!1}:{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(o,R),I=v.indexOf(u),O=(0,r.useMemo)((()=>({sortable:{containerId:C,index:I,items:v},...s})),[C,s,I,v]),A=(0,r.useMemo)((()=>v.slice(v.indexOf(u))),[v,u]),{rect:L,node:z,isOver:B,setNodeRef:j}=(0,i.zM)({id:u,data:O,disabled:N.droppable,resizeObserverConfig:{updateMeasurementsFor:A,...f}}),{active:F,activatorEvent:Y,activeNodeRect:W,attributes:P,setNodeRef:K,listeners:X,isDragging:U,over:_,setActivatorNodeRef:G,transform:H}=(0,i.PM)({id:u,data:O,attributes:{...x,...n},disabled:N.draggable}),q=(0,a.jn)(j,K),Q=Boolean(F),$=Q&&!D&&c(E)&&c(M),J=!k&&U,V=J&&$?H:null,Z=$?null!=V?V:(null!=d?d:T)({rects:S,activeNodeRect:W,activeIndex:E,overIndex:M,index:I}):null,ee=c(E)&&c(M)?l({id:u,items:v,activeIndex:E,overIndex:M}):I,te=null==F?void 0:F.id,ne=(0,r.useRef)({activeId:te,items:v,newIndex:ee,containerId:C}),re=v!==ne.current.items,oe=t({active:F,containerId:C,isDragging:U,isSorting:Q,id:u,index:I,items:v,newIndex:ne.current.newIndex,previousItems:ne.current.items,previousContainerId:ne.current.containerId,transition:g,wasDragging:null!=ne.current.activeId}),ie=function(e){let{disabled:t,index:n,node:o,rect:s}=e;const[l,c]=(0,r.useState)(null),u=(0,r.useRef)(n);return(0,a.Es)((()=>{if(!t&&n!==u.current&&o.current){const e=s.current;if(e){const t=(0,i.Sj)(o.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&c(n)}}n!==u.current&&(u.current=n)}),[t,n,o,s]),(0,r.useEffect)((()=>{l&&c(null)}),[l]),l}({disabled:!oe,index:I,node:z,rect:L});return(0,r.useEffect)((()=>{Q&&ne.current.newIndex!==ee&&(ne.current.newIndex=ee),C!==ne.current.containerId&&(ne.current.containerId=C),v!==ne.current.items&&(ne.current.items=v)}),[Q,ee,C,v]),(0,r.useEffect)((()=>{if(te===ne.current.activeId)return;if(te&&!ne.current.activeId)return void(ne.current.activeId=te);const e=setTimeout((()=>{ne.current.activeId=te}),50);return()=>clearTimeout(e)}),[te]),{active:F,activeIndex:E,attributes:P,data:O,rect:L,index:I,newIndex:ee,items:v,isOver:B,isSorting:Q,isDragging:U,listeners:X,node:z,overIndex:M,over:_,setNodeRef:q,setActivatorNodeRef:G,setDroppableNodeRef:j,setDraggableNodeRef:K,transform:null!=ie?ie:Z,transition:ie||re&&ne.current.newIndex===I?w:J&&!(0,a.kx)(Y)||!g?void 0:Q||oe?a.Ks.Transition.toString({...g,property:y}):void 0}}i.vL.Down,i.vL.Right,i.vL.Up,i.vL.Left},56550:(e,t,n)=>{n.d(t,{$$:()=>v,Es:()=>g,KG:()=>b,Ks:()=>M,Ll:()=>s,Re:()=>R,Sw:()=>i,TW:()=>f,WQ:()=>E,YG:()=>x,YN:()=>p,ZC:()=>y,_q:()=>h,ag:()=>T,e_:()=>S,jn:()=>o,kx:()=>D,l6:()=>a,lk:()=>m,sb:()=>u,wz:()=>c,xZ:()=>d,zk:()=>l});var r=n(18769);function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)((()=>e=>{t.forEach((t=>t(e)))}),t)}const i="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function a(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function s(e){return"nodeType"in e}function l(e){var t,n;return e?a(e)?e:s(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function c(e){const{Document:t}=l(e);return e instanceof t}function u(e){return!a(e)&&e instanceof l(e).HTMLElement}function d(e){return e instanceof l(e).SVGElement}function f(e){return e?a(e)?e.document:s(e)?c(e)?e:u(e)?e.ownerDocument:document:document:document}const g=i?r.useLayoutEffect:r.useEffect;function h(e){const t=(0,r.useRef)(e);return g((()=>{t.current=e})),(0,r.useCallback)((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}function v(){const e=(0,r.useRef)(null);return[(0,r.useCallback)(((t,n)=>{e.current=setInterval(t,n)}),[]),(0,r.useCallback)((()=>{null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}function p(e,t){void 0===t&&(t=[e]);const n=(0,r.useRef)(e);return g((()=>{n.current!==e&&(n.current=e)}),t),n}function b(e,t){const n=(0,r.useRef)();return(0,r.useMemo)((()=>{const t=e(n.current);return n.current=t,t}),[...t])}function m(e){const t=h(e),n=(0,r.useRef)(null),o=(0,r.useCallback)((e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e}),[]);return[n,o]}function y(e){const t=(0,r.useRef)();return(0,r.useEffect)((()=>{t.current=e}),[e]),t.current}let w={};function x(e,t){return(0,r.useMemo)((()=>{if(t)return t;const n=null==w[e]?0:w[e]+1;return w[e]=n,e+"-"+n}),[e,t])}function C(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce(((t,n)=>{const r=Object.entries(n);for(const[n,o]of r){const r=t[n];null!=r&&(t[n]=r+e*o)}return t}),{...t})}}const E=C(1),R=C(-1);function D(e){if(!e)return!1;const{KeyboardEvent:t}=l(e.target);return t&&e instanceof t}function S(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=l(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const M=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[M.Translate.toString(e),M.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),k="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function T(e){return e.matches(k)?e:e.querySelector(k)}},16768:(e,t,n)=>{n.d(t,{A:()=>m});var r=n(68621),o=n(58133),i=n(79154),a=n(73459);var s=n(19509),l=n(53443),c=n(94597),u=n(64425);var d=n(27856),f=n(45907),g=n(55983);const h=(e,t)=>new g.q(e).setAlpha(t).toRgbString(),v=(e,t)=>new g.q(e).lighten(t).toHexString(),p=e=>{const t=(0,d.cM)(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},b=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:h(r,.85),colorTextSecondary:h(r,.65),colorTextTertiary:h(r,.45),colorTextQuaternary:h(r,.25),colorFill:h(r,.18),colorFillSecondary:h(r,.12),colorFillTertiary:h(r,.08),colorFillQuaternary:h(r,.04),colorBgElevated:v(n,12),colorBgContainer:v(n,8),colorBgLayout:v(n,0),colorBgSpotlight:v(n,26),colorBgBlur:h(r,.04),colorBorder:v(n,26),colorBorderSecondary:v(n,19)}},m={defaultConfig:l.sb,defaultSeed:l.sb.token,useToken:function(){const[e,t,n]=(0,s.Ay)();return{theme:e,token:t,hashId:n}},defaultAlgorithm:o.A,darkAlgorithm:(e,t)=>{const n=Object.keys(i.r).map((t=>{const n=(0,d.cM)(e[t],{theme:"dark"});return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{}),r=null!=t?t:(0,o.A)(e);return Object.assign(Object.assign(Object.assign({},r),n),(0,f.A)(e,{generateColorPalettes:p,generateNeutralColorPalettes:b}))},compactAlgorithm:(e,t)=>{const n=null!=t?t:(0,o.A)(e),r=n.fontSizeSM,i=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),function(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}(null!=t?t:e)),(0,u.A)(r)),{controlHeight:i}),(0,c.A)(Object.assign(Object.assign({},n),{controlHeight:i})))},getDesignToken:e=>{const t=(null==e?void 0:e.algorithm)?(0,r.an)(e.algorithm):(0,r.an)(o.A),n=Object.assign(Object.assign({},i.A),null==e?void 0:e.token);return(0,r.lO)(n,{override:null==e?void 0:e.token},t,a.A)}}},72591:e=>{var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var i={},a=[],s=0;s<e.length;s++){var l=e[s],c=r.base?l[0]+r.base:l[0],u=i[c]||0,d="".concat(c," ").concat(u);i[c]=u+1;var f=n(d),g={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==f)t[f].references++,t[f].updater(g);else{var h=o(g,r);r.byIndex=s,t.splice(s,0,{identifier:d,updater:h,references:1})}a.push(d)}return a}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var i=r(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var s=n(i[a]);t[s].references--}for(var l=r(e,o),c=0;c<i.length;c++){var u=n(i[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}i=l}}},88128:e=>{var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},93051:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},30855:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},1740:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},73656:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}}]);
2
- //# sourceMappingURL=5683.7b312ccc.js.map