@crystaldesign/quick-config 26.3.0-beta.2 → 26.3.0-beta.21

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 (80) hide show
  1. package/build/cjs/index.js +2016 -0
  2. package/build/esm/index.js +1999 -0
  3. package/build/types/quick-config/src/Components/ConditionEvaluator/index.d.ts +47 -0
  4. package/build/types/quick-config/src/Components/ConditionEvaluator/index.d.ts.map +1 -0
  5. package/build/types/quick-config/src/Components/QuickConfig/components/FeatureRenderer/index.d.ts +10 -0
  6. package/build/types/quick-config/src/Components/QuickConfig/components/FeatureRenderer/index.d.ts.map +1 -0
  7. package/build/types/quick-config/src/Components/QuickConfig/components/Header/index.d.ts +12 -0
  8. package/build/types/quick-config/src/Components/QuickConfig/components/Header/index.d.ts.map +1 -0
  9. package/build/types/quick-config/src/Components/QuickConfig/components/Navigation/index.d.ts +18 -0
  10. package/build/types/quick-config/src/Components/QuickConfig/components/Navigation/index.d.ts.map +1 -0
  11. package/build/types/quick-config/src/Components/QuickConfig/components/OptionRenderer/Layouts/ButtonGroupLayout.d.ts +18 -0
  12. package/build/types/quick-config/src/Components/QuickConfig/components/OptionRenderer/Layouts/ButtonGroupLayout.d.ts.map +1 -0
  13. package/build/types/quick-config/src/Components/QuickConfig/components/OptionRenderer/Layouts/DropdownLayout.d.ts +16 -0
  14. package/build/types/quick-config/src/Components/QuickConfig/components/OptionRenderer/Layouts/DropdownLayout.d.ts.map +1 -0
  15. package/build/types/quick-config/src/Components/QuickConfig/components/OptionRenderer/Layouts/RangeLayout.d.ts +11 -0
  16. package/build/types/quick-config/src/Components/QuickConfig/components/OptionRenderer/Layouts/RangeLayout.d.ts.map +1 -0
  17. package/build/types/quick-config/src/Components/QuickConfig/components/OptionRenderer/Layouts/SelectionListLayout.d.ts +18 -0
  18. package/build/types/quick-config/src/Components/QuickConfig/components/OptionRenderer/Layouts/SelectionListLayout.d.ts.map +1 -0
  19. package/build/types/quick-config/src/Components/QuickConfig/components/OptionRenderer/index.d.ts +10 -0
  20. package/build/types/quick-config/src/Components/QuickConfig/components/OptionRenderer/index.d.ts.map +1 -0
  21. package/build/types/quick-config/src/Components/QuickConfig/components/ProgressBar/index.d.ts +7 -0
  22. package/build/types/quick-config/src/Components/QuickConfig/components/ProgressBar/index.d.ts.map +1 -0
  23. package/build/types/quick-config/src/Components/QuickConfig/components/ResultDisplay/components/ContentItem.d.ts +8 -0
  24. package/build/types/quick-config/src/Components/QuickConfig/components/ResultDisplay/components/ContentItem.d.ts.map +1 -0
  25. package/build/types/quick-config/src/Components/QuickConfig/components/ResultDisplay/components/ResultItemsRenderer.d.ts +12 -0
  26. package/build/types/quick-config/src/Components/QuickConfig/components/ResultDisplay/components/ResultItemsRenderer.d.ts.map +1 -0
  27. package/build/types/quick-config/src/Components/QuickConfig/components/ResultDisplay/components/SpeedometerGroup/Speedometer.d.ts +17 -0
  28. package/build/types/quick-config/src/Components/QuickConfig/components/ResultDisplay/components/SpeedometerGroup/Speedometer.d.ts.map +1 -0
  29. package/build/types/quick-config/src/Components/QuickConfig/components/ResultDisplay/components/SpeedometerGroup/index.d.ts +10 -0
  30. package/build/types/quick-config/src/Components/QuickConfig/components/ResultDisplay/components/SpeedometerGroup/index.d.ts.map +1 -0
  31. package/build/types/quick-config/src/Components/QuickConfig/components/ResultDisplay/components/TextResult.d.ts +10 -0
  32. package/build/types/quick-config/src/Components/QuickConfig/components/ResultDisplay/components/TextResult.d.ts.map +1 -0
  33. package/build/types/quick-config/src/Components/QuickConfig/components/ResultDisplay/index.d.ts +13 -0
  34. package/build/types/quick-config/src/Components/QuickConfig/components/ResultDisplay/index.d.ts.map +1 -0
  35. package/build/types/quick-config/src/Components/QuickConfig/components/ResultDisplay/utils/index.d.ts +3 -0
  36. package/build/types/quick-config/src/Components/QuickConfig/components/ResultDisplay/utils/index.d.ts.map +1 -0
  37. package/build/types/quick-config/src/Components/QuickConfig/hooks/useOptionRenderer.d.ts +19 -0
  38. package/build/types/quick-config/src/Components/QuickConfig/hooks/useOptionRenderer.d.ts.map +1 -0
  39. package/build/types/quick-config/src/Components/QuickConfig/hooks/useQuickConfig.d.ts +30 -0
  40. package/build/types/quick-config/src/Components/QuickConfig/hooks/useQuickConfig.d.ts.map +1 -0
  41. package/build/types/quick-config/src/Components/QuickConfig/hooks/useQuickConfigCalculations.d.ts +7 -0
  42. package/build/types/quick-config/src/Components/QuickConfig/hooks/useQuickConfigCalculations.d.ts.map +1 -0
  43. package/build/types/quick-config/src/Components/QuickConfig/hooks/useQuickConfigFeatures.d.ts +6 -0
  44. package/build/types/quick-config/src/Components/QuickConfig/hooks/useQuickConfigFeatures.d.ts.map +1 -0
  45. package/build/types/quick-config/src/Components/QuickConfig/index.d.ts +10 -0
  46. package/build/types/quick-config/src/Components/QuickConfig/index.d.ts.map +1 -0
  47. package/build/types/quick-config/src/calculators/variantValueCalculator.d.ts +8 -0
  48. package/build/types/quick-config/src/calculators/variantValueCalculator.d.ts.map +1 -0
  49. package/build/types/quick-config/src/index.d.ts +8 -0
  50. package/build/types/quick-config/src/index.d.ts.map +1 -0
  51. package/build/types/quick-config/src/stories/QuickConfig.stories.d.ts +17 -0
  52. package/build/types/quick-config/src/stories/QuickConfig.stories.d.ts.map +1 -0
  53. package/build/types/quick-config/src/types.d.ts +210 -0
  54. package/build/types/quick-config/src/types.d.ts.map +1 -0
  55. package/build/types/quick-config/src/utils/index.d.ts +14 -0
  56. package/build/types/quick-config/src/utils/index.d.ts.map +1 -0
  57. package/build/umd/124.quick-config.umd.min.js +2 -0
  58. package/build/umd/124.quick-config.umd.min.js.LICENSE.txt +1 -0
  59. package/build/umd/145.quick-config.umd.min.js +2 -0
  60. package/build/umd/145.quick-config.umd.min.js.LICENSE.txt +1 -0
  61. package/build/umd/338.quick-config.umd.min.js +2 -0
  62. package/build/umd/338.quick-config.umd.min.js.LICENSE.txt +1 -0
  63. package/build/umd/433.quick-config.umd.min.js +2 -0
  64. package/build/umd/433.quick-config.umd.min.js.LICENSE.txt +1 -0
  65. package/build/umd/610.quick-config.umd.min.js +2 -0
  66. package/build/umd/610.quick-config.umd.min.js.LICENSE.txt +1 -0
  67. package/build/umd/662.quick-config.umd.min.js +2 -0
  68. package/build/umd/662.quick-config.umd.min.js.LICENSE.txt +1 -0
  69. package/build/umd/721.quick-config.umd.min.js +408 -0
  70. package/build/umd/721.quick-config.umd.min.js.LICENSE.txt +92 -0
  71. package/build/umd/74.quick-config.umd.min.js +2 -0
  72. package/build/umd/74.quick-config.umd.min.js.LICENSE.txt +1 -0
  73. package/build/umd/871.quick-config.umd.min.js +2 -0
  74. package/build/umd/871.quick-config.umd.min.js.LICENSE.txt +1 -0
  75. package/build/umd/944.quick-config.umd.min.js +2 -0
  76. package/build/umd/944.quick-config.umd.min.js.LICENSE.txt +10 -0
  77. package/build/umd/quick-config.umd.min.js +102 -0
  78. package/build/umd/quick-config.umd.min.js.LICENSE.txt +135 -0
  79. package/build/umd/report.html +38 -0
  80. package/package.json +3 -3
@@ -0,0 +1,92 @@
1
+ /* @license
2
+ * Copyright 2019 Google LLC. All Rights Reserved.
3
+ * Licensed under the Apache License, Version 2.0 (the 'License');
4
+ * you may not use this file except in compliance with the License.
5
+ * You may obtain a copy of the License at
6
+ *
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software
10
+ * distributed under the License is distributed on an 'AS IS' BASIS,
11
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ * See the License for the specific language governing permissions and
13
+ * limitations under the License.
14
+ */
15
+
16
+ /* @license
17
+ * Copyright 2020 Google LLC. All Rights Reserved.
18
+ * Licensed under the Apache License, Version 2.0 (the 'License');
19
+ * you may not use this file except in compliance with the License.
20
+ * You may obtain a copy of the License at
21
+ *
22
+ * http://www.apache.org/licenses/LICENSE-2.0
23
+ *
24
+ * Unless required by applicable law or agreed to in writing, software
25
+ * distributed under the License is distributed on an 'AS IS' BASIS,
26
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
27
+ * See the License for the specific language governing permissions and
28
+ * limitations under the License.
29
+ */
30
+
31
+ /* @license
32
+ * Copyright 2021 Google LLC. All Rights Reserved.
33
+ * Licensed under the Apache License, Version 2.0 (the 'License');
34
+ * you may not use this file except in compliance with the License.
35
+ * You may obtain a copy of the License at
36
+ *
37
+ * http://www.apache.org/licenses/LICENSE-2.0
38
+ *
39
+ * Unless required by applicable law or agreed to in writing, software
40
+ * distributed under the License is distributed on an 'AS IS' BASIS,
41
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
42
+ * See the License for the specific language governing permissions and
43
+ * limitations under the License.
44
+ */
45
+
46
+ /* @license
47
+ * Copyright 2023 Google LLC. All Rights Reserved.
48
+ * Licensed under the Apache License, Version 2.0 (the 'License');
49
+ * you may not use this file except in compliance with the License.
50
+ * You may obtain a copy of the License at
51
+ *
52
+ * http://www.apache.org/licenses/LICENSE-2.0
53
+ *
54
+ * Unless required by applicable law or agreed to in writing, software
55
+ * distributed under the License is distributed on an 'AS IS' BASIS,
56
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
57
+ * See the License for the specific language governing permissions and
58
+ * limitations under the License.
59
+ */
60
+
61
+ /*!
62
+ fflate - fast JavaScript compression/decompression
63
+ <https://101arrowz.github.io/fflate>
64
+ Licensed under MIT. https://github.com/101arrowz/fflate/blob/master/LICENSE
65
+ version 0.8.2
66
+ */
67
+
68
+ /*! filename:721 */
69
+
70
+ /**
71
+ * @license
72
+ * Copyright 2010-2023 Three.js Authors
73
+ * SPDX-License-Identifier: MIT
74
+ */
75
+
76
+ /**
77
+ * @license
78
+ * Copyright 2017 Google LLC
79
+ * SPDX-License-Identifier: BSD-3-Clause
80
+ */
81
+
82
+ /**
83
+ * @license
84
+ * Copyright 2019 Google LLC
85
+ * SPDX-License-Identifier: BSD-3-Clause
86
+ */
87
+
88
+ /**
89
+ * @license
90
+ * Copyright 2021 Google LLC
91
+ * SPDX-License-Identifier: BSD-3-Clause
92
+ */
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 74.quick-config.umd.min.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunkCrystaldesignQuickConfig=self.webpackChunkCrystaldesignQuickConfig||[]).push([[74],{8074:(e,r,t)=>{t.r(r),t.d(r,{default:()=>A});var n=t(248),o=t(4658),a=t(4988),c=t(747),i=t.n(c),u=t(7363),s=t(9944),p=t(1533),d=function useDraggableInPortal(){var e=(0,u.useRef)(document.createElement("div")).current;return(0,u.useEffect)((function(){if(e)return e.style.pointerEvents="none",e.style.position="absolute",e.style.height="100%",e.style.width="100%",e.style.top="0",e.style.left="0",document.body.appendChild(e),function(){document.body.removeChild(e)}}),[e]),function(r){return function(t){var n=r(t);return"fixed"===t.draggableProps.style.position?(0,p.createPortal)(n,e):n}}},l=t(3379),y=t.n(l),D=t(7795),M=t.n(D),j=t(569),b=t.n(j),f=t(3565),g=t.n(f),N=t(9216),O=t.n(N),x=t(4589),T=t.n(x),h=t(4831),z={};z.styleTagTransform=T(),z.setAttributes=g(),z.insert=b().bind(null,"head"),z.domAPI=M(),z.insertStyleElement=O();y()(h.Z,z);h.Z&&h.Z.locals&&h.Z.locals;var I=t(7254),v=t(8590);function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){(0,n.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function useApiInterface(){var e=(0,u.useMemo)((function(){return(0,I.jl)("ContentBox","UseApiInterface")}),[]),r=(0,u.useState)({}),t=(0,a.Z)(r,2),c=t[0],s=t[1],p=(0,I.Vr)().state,d=p.apiConfig,l=d.catalogService,y=d.basketService,D=p.jwt,M=function(){var e=(0,o.Z)(i().mark((function _callee(e,r){var t,o;return i().wrap((function _callee$(a){for(;;)switch(a.prev=a.next){case 0:if(t=(0,v.FB)(e.toLowerCase()).toUpperCase(),!c[t]){a.next=3;break}return a.abrupt("return",c[t]);case 3:return a.next=5,j(e,r);case 5:return o=a.sent,b((0,n.Z)({},t,o)),a.abrupt("return",o);case 8:case"end":return a.stop()}}),_callee)})));return function getDataCache(r,t){return e.apply(this,arguments)}}(),j=function(){var r=(0,o.Z)(i().mark((function _callee2(r,t){var n,o,a,c,u,s=arguments;return i().wrap((function _callee2$(i){for(;;)switch(i.prev=i.next){case 0:n=s.length>2&&void 0!==s[2]?s[2]:"GET",o=s.length>3?s[3]:void 0,i.t0=t,i.next="catalog"===i.t0?5:"basket"===i.t0?7:9;break;case 5:return a=l+r,i.abrupt("break",9);case 7:return a=y+r,i.abrupt("break",9);case 9:return i.next=11,fetch(a,_objectSpread({method:n,headers:{Authorization:"Bearer "+D,"content-type":"application/json"}},o?{body:JSON.stringify(o)}:{}));case 11:return c=i.sent,i.next=14,c.json();case 14:if(null!=(u=i.sent)&&u.Error&&e.error(new I.GE(u.Error,{code:"WC_0001",custom:{url:a}})),!(u.status>204)){i.next=18;break}throw new Error(JSON.parse(u.body).error);case 18:return i.abrupt("return",u);case 19:case"end":return i.stop()}}),_callee2)})));return function fetchData(e,t){return r.apply(this,arguments)}}(),b=function addJsonDataCache(e){for(var r in e)s(_objectSpread(_objectSpread({},c),{},(0,n.Z)({},r,e[r])))};return{getDataCache:M,fetchData:j,clearCache:function clearCache(){s({})}}}var k=t(47),E=t(7514);function DragAndDropOptionValues_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function DragAndDropOptionValues_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?DragAndDropOptionValues_ownKeys(Object(t),!0).forEach((function(r){(0,n.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):DragAndDropOptionValues_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}const L=function DragAndDropOptionValues(e){var r=e.variants,t=e.groups,n=e.currentProuduct,c=e.groupKey,p=e.setCurProduct,l=t[c],y=d(),D=(0,u.useState)(!1),M=(0,a.Z)(D,2),j=M[0],b=M[1],f=(0,I.Vr)().state.dimensions.isMobile,g=useApiInterface().fetchData,N=(0,k.Z)({variants:r,groups:t,currentProuduct:n,groupKey:c,setCurProduct:p,isMobile:f,selectedClassification:n[c]}),O=function(){var e=(0,o.Z)(i().mark((function _callee(e){var t,o,a,u,s,d,y,D,M,j,f,N,O,x,T,h,z;return i().wrap((function _callee$(i){for(;;)switch(i.prev=i.next){case 0:if(t=!1,e.destination){i.next=3;break}return i.abrupt("return");case 3:if(e.source.index!=e.destination.index){i.next=5;break}return i.abrupt("return");case 5:e.source.index>e.destination.index&&(t=!0,b(!0)),o=e.source.index,a=e.destination.index,u=l[o].codex,s=l[a].codex,d={},y=!1,D=0;case 13:if(!(D<l.length)){i.next=43;break}if(M=l[D],j=M.codex,!t){i.next=31;break}if(s!=j){i.next=21;break}y=!0,i.next=25;break;case 21:if(u!=j){i.next=25;break}return y=!1,d[j]=l[a].position,i.abrupt("continue",40);case 25:if(y){i.next=28;break}return d[j]=l[D].position,i.abrupt("continue",40);case 28:d[j]=l[D+1].position,i.next=40;break;case 31:if(u!=j){i.next=35;break}return y=!0,d[j]=l[a].position,i.abrupt("continue",40);case 35:if(y){i.next=38;break}return d[j]=l[D].position,i.abrupt("continue",40);case 38:s==j&&(y=!1),d[j]=l[D-1].position;case 40:D++,i.next=13;break;case 43:for(f=r.map((function(e){for(var r in d)e[c].opv===r&&(e[c].position=d[r]);return e})),p(void 0,f.find((function(e){return e._id==n._id})),f),N=[],O=0;O<r.length;O++){for(h in x=r[O],T=[],d)x[c].opv===h&&T.push({op:"replace",path:"/"+c+"/position",value:d[h]});N.push(g("/products/"+x._id,"catalog","PATCH",{patch:T}))}return i.next=49,Promise.all(N);case 49:z=i.sent,p(void 0,z.find((function(e){return e._id==n._id})),r.map((function(e){var r;return null!==(r=z.find((function(r){return r._id==e._id})))&&void 0!==r?r:e}))),b(!1);case 52:case"end":return i.stop()}}),_callee)})));return function onDragEnd(r){return e.apply(this,arguments)}}();return(0,E.jsx)(s.Z5,{onDragEnd:O,children:(0,E.jsx)(s.bK,{droppableId:"droppable",isDropDisabled:j,direction:"vertical",children:function children(e,r){return(0,E.jsxs)("div",DragAndDropOptionValues_objectSpread(DragAndDropOptionValues_objectSpread({},e.droppableProps),{},{ref:e.innerRef,style:{height:"100%",display:"flex",flexDirection:"column"},children:[N.map((function(e,r){return(0,E.jsx)(s._l,{index:r,draggableId:l[r].codex,isDragDisabled:j,children:y((function(e){return(0,E.jsx)("div",DragAndDropOptionValues_objectSpread(DragAndDropOptionValues_objectSpread(DragAndDropOptionValues_objectSpread({ref:e.innerRef},e.draggableProps),e.dragHandleProps),{},{style:DragAndDropOptionValues_objectSpread(DragAndDropOptionValues_objectSpread({},e.draggableProps.style),{},{height:"fit-content"},j?{cursor:"wait"}:{}),children:N[r]}))}))},l[r].codex)})),e.placeholder]}))}})})};function DragAndDropOptions_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function DragAndDropOptions_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?DragAndDropOptions_ownKeys(Object(t),!0).forEach((function(r){(0,n.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):DragAndDropOptions_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}const A=function DragAndDrop(e){var r=e.groups,t=e.variants,n=e.setCurProduct,c=e.currentProuduct,p=e.posOfOpt,l=d(),y=(0,u.useState)(!1),D=(0,a.Z)(y,2),M=D[0],j=D[1],b=useApiInterface().fetchData,f=function(){var e=(0,o.Z)(i().mark((function _callee(e){var o,u,s,d,l,y,D,M,f,g,N,O,x,T;return i().wrap((function _callee$(h){for(;;)switch(h.prev=h.next){case 0:if(o=!1,e.destination){h.next=3;break}return h.abrupt("return");case 3:if(e.source.index!=e.destination.index){h.next=5;break}return h.abrupt("return");case 5:if(e.source.index>e.destination.index&&(o=!0),j(!0),u=Object.keys(r),s=u[e.source.index],d=u[e.destination.index],l={},u.length>Object.keys(p).length)for(y=0;y<u.length;y++)p[u[y]]||(p[u[y]]=y);D=!1,h.t0=i().keys(r);case 14:if((h.t1=h.t0()).done){h.next=42;break}if(M=h.t1.value,!o){h.next=31;break}if(d!=M){h.next=21;break}D=!0,h.next=25;break;case 21:if(s!=M){h.next=25;break}return D=!1,l[M]=p[d],h.abrupt("continue",14);case 25:if(D){h.next=28;break}return l[M]=p[M],h.abrupt("continue",14);case 28:l[M]=p[u[u.indexOf(M)+1]],h.next=40;break;case 31:if(s!=M){h.next=35;break}return D=!0,l[M]=p[d],h.abrupt("continue",14);case 35:if(D){h.next=38;break}return l[M]=p[M],h.abrupt("continue",14);case 38:d==M&&(D=!1),l[M]=p[u[u.indexOf(M)-1]];case 40:h.next=14;break;case 42:for(f=t.map((function(e){for(var r in l)e[r].position=l[r];return e})),n(void 0,f.find((function(e){return e._id==c._id})),f),g={patch:Object.entries(l).map((function(e){var r=(0,a.Z)(e,2);return{op:"replace",path:"/"+r[0]+"/optionPosition",value:r[1]}}))},N=[],O=0;O<t.length;O++)x=t[O],N.push(b("/products/"+x._id,"catalog","PATCH",g));return h.next=49,Promise.all(N);case 49:T=h.sent,n(void 0,T.find((function(e){return e._id==c._id})),t.map((function(e){var r;return null!==(r=T.find((function(r){return r._id==e._id})))&&void 0!==r?r:e}))),j(!1);case 52:case"end":return h.stop()}}),_callee)})));return function onDragEnd(r){return e.apply(this,arguments)}}();return(0,E.jsx)("div",{style:{display:"flex",width:"100%",position:"relative"},children:(0,E.jsx)(s.Z5,{onDragEnd:f,children:(0,E.jsx)(s.bK,{droppableId:"droppable",isDropDisabled:M,direction:"horizontal",children:function children(e,o){return(0,E.jsxs)("div",DragAndDropOptions_objectSpread(DragAndDropOptions_objectSpread({},e.droppableProps),{},{ref:e.innerRef,style:{width:"calc("+100/Object.keys(r).length+"%)",height:"100%",display:"flex"},children:[Object.keys(r).map((function(e,o){return(0,E.jsx)(s._l,{index:o,draggableId:e,isDragDisabled:M,children:l((function(o){return(0,E.jsxs)("div",DragAndDropOptions_objectSpread(DragAndDropOptions_objectSpread({ref:o.innerRef},o.draggableProps),{},{style:DragAndDropOptions_objectSpread(DragAndDropOptions_objectSpread({paddingRight:5},o.draggableProps.style),M?{cursor:"wait"}:{}),children:[(0,E.jsx)("div",DragAndDropOptions_objectSpread({className:h.q},o.dragHandleProps)),(0,E.jsx)(L,{currentProuduct:c,groups:r,groupKey:e,posOfOpt:p,setCurProduct:n,variants:t})]}))}))},e)})),e.placeholder]}))}})})})}},4831:(e,r,t)=>{t.d(r,{Z:()=>y,q:()=>l});var n=t(8081),o=t.n(n),a=t(3645),c=t.n(a),i=t(1667),u=t.n(i),s=new URL(t(8133),t.b),p=c()(o()),d=u()(s);p.push([e.id,".index-module--dt7FX {\n width: 100%;\n height: 20px;\n background: center / 50% no-repeat url("+d+");\n}\n",""]);var l="index-module--dt7FX";const y=p},8133:e=>{e.exports="data:image/svg+xml;base64,CjxzdmcgY2xhc3M9InN2Zy1pY29uIiBzdHlsZT0id2lkdGg6IDFlbTsgaGVpZ2h0OiAxZW07dmVydGljYWwtYWxpZ246IG1pZGRsZTtmaWxsOiBjdXJyZW50Q29sb3I7b3ZlcmZsb3c6IGhpZGRlbjsiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMjE5LjQyODU3MSA1ODUuMTQyODU3Yy0zNi41NzE0MjkgMC03My4xNDI4NTcgMzYuNTcxNDI5LTczLjE0Mjg1NyA3My4xNDI4NTdzMzYuNTcxNDI5IDczLjE0Mjg1NyA3My4xNDI4NTcgNzMuMTQyODU3IDczLjE0Mjg1Ny0zNi41NzE0MjkgNzMuMTQyODU4LTczLjE0Mjg1Ny0zNi41NzE0MjktNzMuMTQyODU3LTczLjE0Mjg1OC03My4xNDI4NTd6IG01ODUuMTQyODU4LTE0Ni4yODU3MTRjMzYuNTcxNDI5IDAgNzMuMTQyODU3LTM2LjU3MTQyOSA3My4xNDI4NTctNzMuMTQyODU3cy0zNi41NzE0MjktNzMuMTQyODU3LTczLjE0Mjg1Ny03My4xNDI4NTctNzMuMTQyODU3IDM2LjU3MTQyOS03My4xNDI4NTggNzMuMTQyODU3IDM2LjU3MTQyOSA3My4xNDI4NTcgNzMuMTQyODU4IDczLjE0Mjg1N3pNMjE5LjQyODU3MSAyOTIuNTcxNDI5Yy0zNi41NzE0MjkgMC03My4xNDI4NTcgMzYuNTcxNDI5LTczLjE0Mjg1NyA3My4xNDI4NTdzMzYuNTcxNDI5IDczLjE0Mjg1NyA3My4xNDI4NTcgNzMuMTQyODU3IDczLjE0Mjg1Ny0zNi41NzE0MjkgNzMuMTQyODU4LTczLjE0Mjg1Ny0zNi41NzE0MjktNzMuMTQyODU3LTczLjE0Mjg1OC03My4xNDI4NTd6IG01ODUuMTQyODU4IDI5Mi41NzE0MjhjLTM2LjU3MTQyOSAwLTczLjE0Mjg1NyAzNi41NzE0MjktNzMuMTQyODU4IDczLjE0Mjg1N3MzNi41NzE0MjkgNzMuMTQyODU3IDczLjE0Mjg1OCA3My4xNDI4NTcgNzMuMTQyODU3LTM2LjU3MTQyOSA3My4xNDI4NTctNzMuMTQyODU3LTM2LjU3MTQyOS03My4xNDI4NTctNzMuMTQyODU3LTczLjE0Mjg1N3pNNTEyIDI5Mi41NzE0MjljLTM2LjU3MTQyOSAwLTczLjE0Mjg1NyAzNi41NzE0MjktNzMuMTQyODU3IDczLjE0Mjg1N3MzNi41NzE0MjkgNzMuMTQyODU3IDczLjE0Mjg1NyA3My4xNDI4NTcgNzMuMTQyODU3LTM2LjU3MTQyOSA3My4xNDI4NTctNzMuMTQyODU3LTM2LjU3MTQyOS03My4xNDI4NTctNzMuMTQyODU3LTczLjE0Mjg1N3ogbTAgMjkyLjU3MTQyOGMtMzYuNTcxNDI5IDAtNzMuMTQyODU3IDM2LjU3MTQyOS03My4xNDI4NTcgNzMuMTQyODU3czM2LjU3MTQyOSA3My4xNDI4NTcgNzMuMTQyODU3IDczLjE0Mjg1NyA3My4xNDI4NTctMzYuNTcxNDI5IDczLjE0Mjg1Ny03My4xNDI4NTctMzYuNTcxNDI5LTczLjE0Mjg1Ny03My4xNDI4NTctNzMuMTQyODU3eiIgIC8+PC9zdmc+"}}]);
@@ -0,0 +1 @@
1
+ /*! filename:74 */
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 871.quick-config.umd.min.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunkCrystaldesignQuickConfig=self.webpackChunkCrystaldesignQuickConfig||[]).push([[871],{9871:(n,e,i)=>{i.r(e),i.d(e,{default:()=>I});var t=i(4988),a=i(7363),o=i(7254),r=i(3379),s=i.n(r),l=i(7795),d=i.n(l),u=i(569),c=i.n(u),m=i(3565),x=i.n(m),p=i(9216),g=i.n(p),h=i(4589),v=i.n(h),f=i(8195),w={};w.styleTagTransform=v(),w.setAttributes=x(),w.insert=c().bind(null,"head"),w.domAPI=d(),w.insertStyleElement=g();s()(f.ZP,w);f.ZP&&f.ZP.locals&&f.ZP.locals;var b=i(2182),C=i(7514);const I=function ArViewer(n){var e,i,r,s,l=n.url,d=n.qrCodeUrl,u=n.cameraArButton,c=n.viewerClassName,m=n.arViewerSettings,x=n.isCurrentlyVisible,p="",g=(0,o.Vr)(),h=g.actions,v=g.state,w=v.isFirefox,I=v.isMobile,N=(0,o.$G)().t,k=(0,a.useState)(0),y=(0,t.Z)(k,2),S=y[0],P=y[1],Z=(0,a.useState)(!I),z=(0,t.Z)(Z,2),A=z[0],j=z[1];return(0,a.useEffect)((function(){h.loadModelViewer()}),[]),u&&(p+="scene-viewer quick-look"),(0,C.jsxs)(C.Fragment,{children:[A&&!1!==x&&d&&(0,C.jsxs)("div",{className:f.GY,children:[(0,C.jsx)(b.ZP,{value:d,className:f.Vf}),(0,C.jsx)("div",{className:f.ze,children:N("pdp.ar.qrtext")}),(0,C.jsx)("div",{className:f.zJ,id:"arThumbnailImg",onClick:function onClick(){return j(!1)}})]}),(0,C.jsx)("model-viewer",{src:l,alt:"A AR Model of a Chair","environment-image":"default"===(null==m?void 0:m[S].environmentImage)?void 0:"neutral",shadowIntensity:null!==(e=null==m?void 0:m[S].shadowIntensity)&&void 0!==e?e:1,shadowSoftness:null!==(i=null==m?void 0:m[S].shadowSoftness)&&void 0!==i?i:1,exposure:null!==(r=null==m?void 0:m[S].exposure)&&void 0!==r?r:1,useEnvironmentasSkybox:null!==(s=null==m?void 0:m[S].useEnvironmentasSkybox)&&void 0!==s&&s,"camera-controls":!0,ar:!0,"ar-modes":w?"":p,style:{overscrollBehavior:"none",width:"100%",height:"100%",touchAction:"none"},class:c}),m&&(0,C.jsx)("select",{name:"arViewerSetting",id:"arViewerSettings",style:{position:"absolute",top:"0px"},onChange:function onChange(n){return function onArViewerSettingsChanged(n){P(parseInt(n.target.value))}(n)},children:m.map((function(n,e){return(0,C.jsx)("option",{value:e,children:n.name},e)}))})]})}},8195:(n,e,i)=>{i.d(e,{GY:()=>m,Vf:()=>x,ZP:()=>h,zJ:()=>p,ze:()=>g});var t=i(8081),a=i.n(t),o=i(3645),r=i.n(o),s=i(1667),l=i.n(s),d=new URL(i(140),i.b),u=r()(a()),c=l()(d);u.push([n.id,".index-module--PD1WN {\n position: absolute;\n bottom: 10px;\n right: 0px;\n left: 0px;\n margin-left: auto;\n margin-right: auto;\n width: 361px;\n height: 90px;\n margin-bottom: 10px;\n display: flex;\n flex-direction: row;\n gap: 10px;\n box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 0.75rem 0.15rem;\n border-radius: 0.3rem;\n padding-left: 5px;\n padding-right: 5px;\n align-items: center;\n gap: 10px;\n}\n\n.index-module--AWoJQ {\n width: 80px;\n height: 80px;\n}\n\n.index-module--sIl1Z {\n position: absolute;\n cursor: pointer;\n top: 7px;\n right: 7px;\n width: 12px;\n height: 12px;\n background-image: url("+c+");\n background-repeat: no-repeat;\n z-index: 1;\n}\n\n.index-module--NiigZ {\n width: 250px;\n height: 80px;\n word-wrap: break-word;\n font-family: var(--diva-typography-font-family);\n}\n",""]);var m="index-module--PD1WN",x="index-module--AWoJQ",p="index-module--sIl1Z",g="index-module--NiigZ";const h=u},140:n=>{n.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOCIgaGVpZ2h0PSI4IiB2aWV3Qm94PSIwIDAgOCA4IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNNi45OTk5OCAxLjEzNDc3TDEgNy4xMzQ3NU02Ljk5OTk4IDcuMTM0NzdMMSAxLjEzNDc5IiBzdHJva2U9IiNCNkI2QjciIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4KPC9zdmc+Cg=="}}]);
@@ -0,0 +1 @@
1
+ /*! filename:871 */
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 944.quick-config.umd.min.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunkCrystaldesignQuickConfig=self.webpackChunkCrystaldesignQuickConfig||[]).push([[944],{9944:(e,t,r)=>{r.d(t,{Z5:()=>DragDropContext,_l:()=>PublicDraggable,bK:()=>Or});var n=r(7363),i=r.n(n);function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_setPrototypeOf(e,t)}function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_extends.apply(null,arguments)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function toPropertyKey(e){var t=function toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_typeof(t)?t:t+""}function _defineProperty(e,t,r){return(t=toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}r(5108);function formatProdErrorMessage(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var a="function"==typeof Symbol&&Symbol.observable||"@@observable",o=function randomString(){return Math.random().toString(36).substring(7).split("").join(".")},l={INIT:"@@redux/INIT"+o(),REPLACE:"@@redux/REPLACE"+o(),PROBE_UNKNOWN_ACTION:function PROBE_UNKNOWN_ACTION(){return"@@redux/PROBE_UNKNOWN_ACTION"+o()}};function redux_isPlainObject(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function createStore(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(formatProdErrorMessage(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(formatProdErrorMessage(1));return r(createStore)(e,t)}if("function"!=typeof e)throw new Error(formatProdErrorMessage(2));var i=e,o=t,u=[],c=u,s=!1;function ensureCanMutateNextListeners(){c===u&&(c=u.slice())}function getState(){if(s)throw new Error(formatProdErrorMessage(3));return o}function subscribe(e){if("function"!=typeof e)throw new Error(formatProdErrorMessage(4));if(s)throw new Error(formatProdErrorMessage(5));var t=!0;return ensureCanMutateNextListeners(),c.push(e),function unsubscribe(){if(t){if(s)throw new Error(formatProdErrorMessage(6));t=!1,ensureCanMutateNextListeners();var r=c.indexOf(e);c.splice(r,1),u=null}}}function dispatch(e){if(!redux_isPlainObject(e))throw new Error(formatProdErrorMessage(7));if(void 0===e.type)throw new Error(formatProdErrorMessage(8));if(s)throw new Error(formatProdErrorMessage(9));try{s=!0,o=i(o,e)}finally{s=!1}for(var t=u=c,r=0;r<t.length;r++){(0,t[r])()}return e}function replaceReducer(e){if("function"!=typeof e)throw new Error(formatProdErrorMessage(10));i=e,dispatch({type:l.REPLACE})}function observable(){var e,t=subscribe;return(e={subscribe:function subscribe(e){if("object"!=typeof e||null===e)throw new Error(formatProdErrorMessage(11));function observeState(){e.next&&e.next(getState())}return observeState(),{unsubscribe:t(observeState)}}})[a]=function(){return this},e}return dispatch({type:l.INIT}),(n={dispatch,subscribe,getState,replaceReducer})[a]=observable,n}function bindActionCreator(e,t){return function(){return t(e.apply(this,arguments))}}function bindActionCreators(e,t){if("function"==typeof e)return bindActionCreator(e,t);if("object"!=typeof e||null===e)throw new Error(formatProdErrorMessage(16));var r={};for(var n in e){var i=e[n];"function"==typeof i&&(r[n]=bindActionCreator(i,t))}return r}function compose(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var u=i().createContext(null);var c=function defaultNoopBatch(e){e()},s=function getBatch(){return c};var d={notify:function notify(){},get:function get(){return[]}};function Subscription_createSubscription(e,t){var r,n=d;function handleChangeWrapper(){i.onStateChange&&i.onStateChange()}function trySubscribe(){r||(r=t?t.addNestedSub(handleChangeWrapper):e.subscribe(handleChangeWrapper),n=function createListenerCollection(){var e=s(),t=null,r=null;return{clear:function clear(){t=null,r=null},notify:function notify(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function get(){for(var e=[],r=t;r;)e.push(r),r=r.next;return e},subscribe:function subscribe(e){var n=!0,i=r={callback:e,next:null,prev:r};return i.prev?i.prev.next=i:t=i,function unsubscribe(){n&&null!==t&&(n=!1,i.next?i.next.prev=i.prev:r=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}var i={addNestedSub:function addNestedSub(e){return trySubscribe(),n.subscribe(e)},notifyNestedSubs:function notifyNestedSubs(){n.notify()},handleChangeWrapper,isSubscribed:function isSubscribed(){return Boolean(r)},trySubscribe,tryUnsubscribe:function tryUnsubscribe(){r&&(r(),r=void 0,n.clear(),n=d)},getListeners:function getListeners(){return n}};return i}var p="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect;const f=function Provider(e){var t=e.store,r=e.context,a=e.children,o=(0,n.useMemo)((function(){var e=Subscription_createSubscription(t);return{store:t,subscription:e}}),[t]),l=(0,n.useMemo)((function(){return t.getState()}),[t]);p((function(){var e=o.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),l!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[o,l]);var c=r||u;return i().createElement(c.Provider,{value:o},a)};function extends_extends(){return extends_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},extends_extends.apply(null,arguments)}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}var g=r(3790),v=r.n(g),m=r(8638),b=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],h=["reactReduxForwardedRef"],_=[],x=[null,null];function storeStateUpdatesReducer(e,t){var r=e[1];return[t.payload,r+1]}function useIsomorphicLayoutEffectWithArgs(e,t,r){p((function(){return e.apply(void 0,t)}),r)}function captureWrapperProps(e,t,r,n,i,a,o){e.current=n,t.current=i,r.current=!1,a.current&&(a.current=null,o())}function subscribeUpdates(e,t,r,n,i,a,o,l,u,c){if(e){var s=!1,d=null,p=function checkForUpdates(){if(!s){var e,r,p=t.getState();try{e=n(p,i.current)}catch(e){r=e,d=e}r||(d=null),e===a.current?o.current||u():(a.current=e,l.current=e,o.current=!0,c({type:"STORE_UPDATED",payload:{error:r}}))}};r.onStateChange=p,r.trySubscribe(),p();return function unsubscribeWrapper(){if(s=!0,r.tryUnsubscribe(),r.onStateChange=null,d)throw d}}}var D=function initStateUpdates(){return[null,0]};function connectAdvanced(e,t){void 0===t&&(t={});var r=t,a=r.getDisplayName,o=void 0===a?function(e){return"ConnectAdvanced("+e+")"}:a,l=r.methodName,c=void 0===l?"connectAdvanced":l,s=r.renderCountProp,d=void 0===s?void 0:s,p=r.shouldHandleStateChanges,f=void 0===p||p,g=r.storeKey,I=void 0===g?"store":g,E=(r.withRef,r.forwardRef),w=void 0!==E&&E,S=r.context,C=void 0===S?u:S,P=_objectWithoutPropertiesLoose(r,b),A=C;return function wrapWithConnect(t){var r=t.displayName||t.name||"Component",a=o(r),l=extends_extends({},P,{getDisplayName:o,methodName:c,renderCountProp:d,shouldHandleStateChanges:f,storeKey:I,displayName:a,wrappedComponentName:r,WrappedComponent:t}),u=P.pure;var s=u?n.useMemo:function(e){return e()};function ConnectFunction(r){var a=(0,n.useMemo)((function(){var e=r.reactReduxForwardedRef,t=_objectWithoutPropertiesLoose(r,h);return[r.context,e,t]}),[r]),o=a[0],u=a[1],c=a[2],d=(0,n.useMemo)((function(){return o&&o.Consumer&&(0,m.isContextConsumer)(i().createElement(o.Consumer,null))?o:A}),[o,A]),p=(0,n.useContext)(d),g=Boolean(r.store)&&Boolean(r.store.getState)&&Boolean(r.store.dispatch);Boolean(p)&&Boolean(p.store);var v=g?r.store:p.store,b=(0,n.useMemo)((function(){return function createChildSelector(t){return e(t.dispatch,l)}(v)}),[v]),I=(0,n.useMemo)((function(){if(!f)return x;var e=Subscription_createSubscription(v,g?null:p.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[v,g,p]),E=I[0],w=I[1],S=(0,n.useMemo)((function(){return g?p:extends_extends({},p,{subscription:E})}),[g,p,E]),C=(0,n.useReducer)(storeStateUpdatesReducer,_,D),P=C[0][0],O=C[1];if(P&&P.error)throw P.error;var R=(0,n.useRef)(),B=(0,n.useRef)(c),N=(0,n.useRef)(),M=(0,n.useRef)(!1),T=s((function(){return N.current&&c===B.current?N.current:b(v.getState(),c)}),[v,P,c]);useIsomorphicLayoutEffectWithArgs(captureWrapperProps,[B,R,M,c,T,N,w]),useIsomorphicLayoutEffectWithArgs(subscribeUpdates,[f,v,E,b,B,R,M,N,w,O],[v,E,b]);var L=(0,n.useMemo)((function(){return i().createElement(t,extends_extends({},T,{ref:u}))}),[u,t,T]);return(0,n.useMemo)((function(){return f?i().createElement(d.Provider,{value:S},L):L}),[d,L,S])}var p=u?i().memo(ConnectFunction):ConnectFunction;if(p.WrappedComponent=t,p.displayName=ConnectFunction.displayName=a,w){var g=i().forwardRef((function forwardConnectRef(e,t){return i().createElement(p,extends_extends({},e,{reactReduxForwardedRef:t}))}));return g.displayName=a,g.WrappedComponent=t,v()(g,t)}return v()(p,t)}}function is(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function shallowEqual(e,t){if(is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=0;i<r.length;i++)if(!Object.prototype.hasOwnProperty.call(t,r[i])||!is(e[r[i]],t[r[i]]))return!1;return!0}r(5108);function wrapMapToPropsConstant(e){return function initConstantSelector(t,r){var n=e(t,r);function constantSelector(){return n}return constantSelector.dependsOnOwnProps=!1,constantSelector}}function getDependsOnOwnProps(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function wrapMapToPropsFunc(e,t){return function initProxySelector(t,r){r.displayName;var n=function mapToPropsProxy(e,t){return n.dependsOnOwnProps?n.mapToProps(e,t):n.mapToProps(e)};return n.dependsOnOwnProps=!0,n.mapToProps=function detectFactoryAndVerify(t,r){n.mapToProps=e,n.dependsOnOwnProps=getDependsOnOwnProps(e);var i=n(t,r);return"function"==typeof i&&(n.mapToProps=i,n.dependsOnOwnProps=getDependsOnOwnProps(i),i=n(t,r)),i},n}}const I=[function whenMapDispatchToPropsIsFunction(e){return"function"==typeof e?wrapMapToPropsFunc(e):void 0},function whenMapDispatchToPropsIsMissing(e){return e?void 0:wrapMapToPropsConstant((function(e){return{dispatch:e}}))},function whenMapDispatchToPropsIsObject(e){return e&&"object"==typeof e?wrapMapToPropsConstant((function(t){return function bindActionCreators_bindActionCreators(e,t){var r={},n=function _loop(n){var i=e[n];"function"==typeof i&&(r[n]=function(){return t(i.apply(void 0,arguments))})};for(var i in e)n(i);return r}(e,t)})):void 0}];const E=[function whenMapStateToPropsIsFunction(e){return"function"==typeof e?wrapMapToPropsFunc(e):void 0},function whenMapStateToPropsIsMissing(e){return e?void 0:wrapMapToPropsConstant((function(){return{}}))}];function defaultMergeProps(e,t,r){return extends_extends({},r,e,t)}const w=[function whenMergePropsIsFunction(e){return"function"==typeof e?function wrapMergePropsFunc(e){return function initMergePropsProxy(t,r){r.displayName;var n,i=r.pure,a=r.areMergedPropsEqual,o=!1;return function mergePropsProxy(t,r,l){var u=e(t,r,l);return o?i&&a(u,n)||(n=u):(o=!0,n=u),n}}}(e):void 0},function whenMergePropsIsOmitted(e){return e?void 0:function(){return defaultMergeProps}}];var S=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function impureFinalPropsSelectorFactory(e,t,r,n){return function impureFinalPropsSelector(i,a){return r(e(i,a),t(n,a),a)}}function pureFinalPropsSelectorFactory(e,t,r,n,i){var a,o,l,u,c,s=i.areStatesEqual,d=i.areOwnPropsEqual,p=i.areStatePropsEqual,f=!1;function handleSubsequentCalls(i,f){var g=!d(f,o),v=!s(i,a,f,o);return a=i,o=f,g&&v?function handleNewPropsAndNewState(){return l=e(a,o),t.dependsOnOwnProps&&(u=t(n,o)),c=r(l,u,o)}():g?function handleNewProps(){return e.dependsOnOwnProps&&(l=e(a,o)),t.dependsOnOwnProps&&(u=t(n,o)),c=r(l,u,o)}():v?function handleNewState(){var t=e(a,o),n=!p(t,l);return l=t,n&&(c=r(l,u,o)),c}():c}return function pureFinalPropsSelector(i,s){return f?handleSubsequentCalls(i,s):function handleFirstCall(i,s){return l=e(a=i,o=s),u=t(n,o),c=r(l,u,o),f=!0,c}(i,s)}}function finalPropsSelectorFactory(e,t){var r=t.initMapStateToProps,n=t.initMapDispatchToProps,i=t.initMergeProps,a=_objectWithoutPropertiesLoose(t,S),o=r(e,a),l=n(e,a),u=i(e,a);return(a.pure?pureFinalPropsSelectorFactory:impureFinalPropsSelectorFactory)(o,l,u,e,a)}var C=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function match(e,t,r){for(var n=t.length-1;n>=0;n--){var i=t[n](e);if(i)return i}return function(t,n){throw new Error("Invalid value of type "+typeof e+" for "+r+" argument when connecting component "+n.wrappedComponentName+".")}}function strictEqual(e,t){return e===t}function createConnect(e){var t=void 0===e?{}:e,r=t.connectHOC,n=void 0===r?connectAdvanced:r,i=t.mapStateToPropsFactories,a=void 0===i?E:i,o=t.mapDispatchToPropsFactories,l=void 0===o?I:o,u=t.mergePropsFactories,c=void 0===u?w:u,s=t.selectorFactory,d=void 0===s?finalPropsSelectorFactory:s;return function connect(e,t,r,i){void 0===i&&(i={});var o=i,u=o.pure,s=void 0===u||u,p=o.areStatesEqual,f=void 0===p?strictEqual:p,g=o.areOwnPropsEqual,v=void 0===g?shallowEqual:g,m=o.areStatePropsEqual,b=void 0===m?shallowEqual:m,h=o.areMergedPropsEqual,_=void 0===h?shallowEqual:h,x=_objectWithoutPropertiesLoose(o,C),D=match(e,a,"mapStateToProps"),I=match(t,l,"mapDispatchToProps"),E=match(r,c,"mergeProps");return n(d,extends_extends({methodName:"connect",getDisplayName:function getDisplayName(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:D,initMapDispatchToProps:I,initMergeProps:E,pure:s,areStatesEqual:f,areOwnPropsEqual:v,areStatePropsEqual:b,areMergedPropsEqual:_},x))}}const P=createConnect();var A=r(1533),O=r.n(A);function useMemoOne(e,t){var r=(0,n.useState)((function(){return{inputs:t,result:e()}}))[0],i=(0,n.useRef)(!0),a=(0,n.useRef)(r),o=i.current||Boolean(t&&a.current.inputs&&function areInputsEqual(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(t,a.current.inputs))?a.current:{inputs:t,result:e()};return(0,n.useEffect)((function(){i.current=!1,a.current=o}),[o]),o.result}!function setBatch(e){c=e}(A.unstable_batchedUpdates);var R=useMemoOne,B=function useCallbackOne(e,t){return useMemoOne((function(){return e}),t)},N="Invariant failed";var M=function getRect(e){var t=e.top,r=e.right,n=e.bottom,i=e.left;return{top:t,right:r,bottom:n,left:i,width:r-i,height:n-t,x:i,y:t,center:{x:(r+i)/2,y:(n+t)/2}}},T=function expand(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},L=function shrink(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},G={top:0,right:0,bottom:0,left:0},F=function createBox(e){var t=e.borderBox,r=e.margin,n=void 0===r?G:r,i=e.border,a=void 0===i?G:i,o=e.padding,l=void 0===o?G:o,u=M(T(t,n)),c=M(L(t,a)),s=M(L(c,l));return{marginBox:u,borderBox:M(t),paddingBox:c,contentBox:s,margin:n,border:a,padding:l}},W=function parse(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var r=Number(t);return isNaN(r)&&function invariant(e,t){if(!e)throw new Error(N)}(!1),r},k=function offset(e,t){var r=e.borderBox,n=e.border,i=e.margin,a=e.padding,o=function shift(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}}(r,t);return F({borderBox:o,border:n,margin:i,padding:a})},U=function withScroll(e,t){return void 0===t&&(t=function getWindowScroll(){return{x:window.pageXOffset,y:window.pageYOffset}}()),k(e,t)},j=function calculateBox(e,t){var r={top:W(t.marginTop),right:W(t.marginRight),bottom:W(t.marginBottom),left:W(t.marginLeft)},n={top:W(t.paddingTop),right:W(t.paddingRight),bottom:W(t.paddingBottom),left:W(t.paddingLeft)},i={top:W(t.borderTopWidth),right:W(t.borderRightWidth),bottom:W(t.borderBottomWidth),left:W(t.borderLeftWidth)};return F({borderBox:e,margin:r,padding:n,border:i})},H=function getBox(e){var t=e.getBoundingClientRect(),r=window.getComputedStyle(e);return j(t,r)},q=Number.isNaN||function ponyfill(e){return"number"==typeof e&&e!=e};function memoize_one_esm_areInputsEqual(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(n=e[r],i=t[r],!(n===i||q(n)&&q(i)))return!1;var n,i;return!0}const V=function memoizeOne(e,t){var r;void 0===t&&(t=memoize_one_esm_areInputsEqual);var n,i=[],a=!1;return function memoized(){for(var o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];return a&&r===this&&t(o,i)||(n=e.apply(this,o),a=!0,r=this,i=o),n}};const z=function rafSchd(e){var t=[],r=null,n=function wrapperFn(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];t=i,r||(r=requestAnimationFrame((function(){r=null,e.apply(void 0,t)})))};return n.cancel=function(){r&&(cancelAnimationFrame(r),r=null)},n};r(5108);function log(e,t){}log.bind(null,"warn"),log.bind(null,"error");function noop(){}function bindEvents(e,t,r){var n=t.map((function(t){var n=function getOptions(e,t){return _extends({},e,{},t)}(r,t.options);return e.addEventListener(t.eventName,t.fn,n),function unbind(){e.removeEventListener(t.eventName,t.fn,n)}}));return function unbindAll(){n.forEach((function(e){e()}))}}var $="Invariant failed";function RbdInvariant(e){this.message=e}function react_beautiful_dnd_esm_invariant(e,t){if(!e)throw new RbdInvariant($)}RbdInvariant.prototype.toString=function toString(){return this.message};var K=function(e){function ErrorBoundary(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(t=e.call.apply(e,[this].concat(n))||this).callbacks=null,t.unbind=noop,t.onWindowError=function(e){var r=t.getCallbacks();r.isDragging()&&r.tryAbort(),e.error instanceof RbdInvariant&&e.preventDefault()},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}_inheritsLoose(ErrorBoundary,e);var t=ErrorBoundary.prototype;return t.componentDidMount=function componentDidMount(){this.unbind=bindEvents(window,[{eventName:"error",fn:this.onWindowError}])},t.componentDidCatch=function componentDidCatch(e){if(!(e instanceof RbdInvariant))throw e;this.setState({})},t.componentWillUnmount=function componentWillUnmount(){this.unbind()},t.render=function render(){return this.props.children(this.setCallbacks)},ErrorBoundary}(i().Component),Y=function position(e){return e+1},J=function withLocation(e,t){var r=e.droppableId===t.droppableId,n=Y(e.index),i=Y(t.index);return r?"\n You have moved the item from position "+n+"\n to position "+i+"\n ":"\n You have moved the item from position "+n+"\n in list "+e.droppableId+"\n to list "+t.droppableId+"\n in position "+i+"\n "},X=function withCombine(e,t,r){return t.droppableId===r.droppableId?"\n The item "+e+"\n has been combined with "+r.draggableId:"\n The item "+e+"\n in list "+t.droppableId+"\n has been combined with "+r.draggableId+"\n in list "+r.droppableId+"\n "},Q=function returnedToStart(e){return"\n The item has returned to its starting position\n of "+Y(e.index)+"\n"},Z="\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",ee=function onDragStart(e){return"\n You have lifted an item in position "+Y(e.source.index)+"\n"},te=function onDragUpdate(e){var t=e.destination;if(t)return J(e.source,t);var r=e.combine;return r?X(e.draggableId,e.source,r):"You are over an area that cannot be dropped on"},re=function onDragEnd(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+Q(e.source)+"\n ";var t=e.destination,r=e.combine;return t?"\n You have dropped the item.\n "+J(e.source,t)+"\n ":r?"\n You have dropped the item.\n "+X(e.draggableId,e.source,r)+"\n ":"\n The item has been dropped while not over a drop area.\n "+Q(e.source)+"\n "},ne={x:0,y:0},ie=function add(e,t){return{x:e.x+t.x,y:e.y+t.y}},ae=function subtract(e,t){return{x:e.x-t.x,y:e.y-t.y}},oe=function isEqual(e,t){return e.x===t.x&&e.y===t.y},le=function negate(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},ue=function patch(e,t,r){var n;return void 0===r&&(r=0),(n={})[e]=t,n["x"===e?"y":"x"]=r,n},ce=function distance(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},se=function closest(e,t){return Math.min.apply(Math,t.map((function(t){return ce(e,t)})))},de=function apply(e){return function(t){return{x:e(t.x),y:e(t.y)}}},pe=function offsetByPosition(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},fe=function getCorners(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},ge=function clip(e,t){return t&&t.shouldClipSubject?function(e,t){var r=M({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return r.width<=0||r.height<=0?null:r}(t.pageMarginBox,e):M(e)},getSubject=function(e){var t=e.page,r=e.withPlaceholder,n=e.axis,i=e.frame,a=function scroll(e,t){return t?pe(e,t.scroll.diff.displacement):e}(t.marginBox,i),o=function increase(e,t,r){var n;return r&&r.increasedBy?_extends({},e,((n={})[t.end]=e[t.end]+r.increasedBy[t.line],n)):e}(a,n,r);return{page:t,withPlaceholder:r,active:ge(o,i)}},scrollDroppable=function(e,t){e.frame||react_beautiful_dnd_esm_invariant(!1);var r=e.frame,n=ae(t,r.scroll.initial),i=le(n),a=_extends({},r,{scroll:{initial:r.scroll.initial,current:t,diff:{value:n,displacement:i},max:r.scroll.max}});return _extends({},e,{frame:a,subject:getSubject({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:a})})};function values(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function findIndex(e,t){if(e.findIndex)return e.findIndex(t);for(var r=0;r<e.length;r++)if(t(e[r]))return r;return-1}function find(e,t){if(e.find)return e.find(t);var r=findIndex(e,t);return-1!==r?e[r]:void 0}function toArray(e){return Array.prototype.slice.call(e)}var ve=V((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),me=V((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),be=V((function(e){return values(e)})),he=V((function(e){return values(e)})),ye=V((function(e,t){var r=he(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}));return r}));function tryGetDestination(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function tryGetCombine(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var _e=V((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),isHomeOf=function(e,t){return e.descriptor.droppableId===t.descriptor.id},xe={point:ne,value:0},De={invisible:{},visible:{},all:[]},Ie={displaced:De,displacedBy:xe,at:null},isWithin=function(e,t){return function(r){return e<=r&&r<=t}},isPartiallyVisibleThroughFrame=function(e){var t=isWithin(e.top,e.bottom),r=isWithin(e.left,e.right);return function(n){if(t(n.top)&&t(n.bottom)&&r(n.left)&&r(n.right))return!0;var i=t(n.top)||t(n.bottom),a=r(n.left)||r(n.right);if(i&&a)return!0;var o=n.top<e.top&&n.bottom>e.bottom,l=n.left<e.left&&n.right>e.right;return!(!o||!l)||(o&&a||l&&i)}},isTotallyVisibleThroughFrame=function(e){var t=isWithin(e.top,e.bottom),r=isWithin(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&r(e.left)&&r(e.right)}},Ee={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},we={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Se=function isVisible(e){var t=e.target,r=e.destination,n=e.viewport,i=e.withDroppableDisplacement,a=e.isVisibleThroughFrameFn,o=i?function getDroppableDisplaced(e,t){var r=t.frame?t.frame.scroll.diff.displacement:ne;return pe(e,r)}(t,r):t;return function isVisibleInDroppable(e,t,r){return!!t.subject.active&&r(t.subject.active)(e)}(o,r,a)&&function isVisibleInViewport(e,t,r){return r(t)(e)}(o,n,a)},Ce=function isPartiallyVisible(e){return Se(_extends({},e,{isVisibleThroughFrameFn:isPartiallyVisibleThroughFrame}))},Pe=function isTotallyVisible(e){return Se(_extends({},e,{isVisibleThroughFrameFn:isTotallyVisibleThroughFrame}))};function getDisplacementGroups(e){var t=e.afterDragging,r=e.destination,n=e.displacedBy,i=e.viewport,a=e.forceShouldAnimate,o=e.last;return t.reduce((function process(e,t){var l=function getTarget(e,t){var r=e.page.marginBox,n={top:t.point.y,right:0,bottom:0,left:t.point.x};return M(T(r,n))}(t,n),u=t.descriptor.id;if(e.all.push(u),!Ce({target:l,destination:r,viewport:i,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var c=function getShouldAnimate(e,t,r){if("boolean"==typeof r)return r;if(!t)return!0;var n=t.invisible,i=t.visible;if(n[e])return!1;var a=i[e];return!a||a.shouldAnimate}(u,o,a),s={draggableId:u,shouldAnimate:c};return e.visible[u]=s,e}),{all:[],visible:{},invisible:{}})}function goAtEnd(e){var t=e.insideDestination,r=e.inHomeList,n=e.displacedBy,i=e.destination,a=function getIndexOfLastItem(e,t){if(!e.length)return 0;var r=e[e.length-1].descriptor.index;return t.inHomeList?r:r+1}(t,{inHomeList:r});return{displaced:De,displacedBy:n,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:a}}}}function calculateReorderImpact(e){var t=e.draggable,r=e.insideDestination,n=e.destination,i=e.viewport,a=e.displacedBy,o=e.last,l=e.index,u=e.forceShouldAnimate,c=isHomeOf(t,n);if(null==l)return goAtEnd({insideDestination:r,inHomeList:c,displacedBy:a,destination:n});var s=find(r,(function(e){return e.descriptor.index===l}));if(!s)return goAtEnd({insideDestination:r,inHomeList:c,displacedBy:a,destination:n});var d=_e(t,r),p=r.indexOf(s);return{displaced:getDisplacementGroups({afterDragging:d.slice(p),destination:n,displacedBy:a,last:o,viewport:i.frame,forceShouldAnimate:u}),displacedBy:a,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:l}}}}function didStartAfterCritical(e,t){return Boolean(t.effected[e])}var moveToNextIndex=function(e){var t=e.isMovingForward,r=e.isInHomeList,n=e.draggable,i=e.draggables,a=e.destination,o=e.insideDestination,l=e.previousImpact,u=e.viewport,c=e.afterCritical,s=l.at;if(s||react_beautiful_dnd_esm_invariant(!1),"REORDER"===s.type){var d=function(e){var t=e.isMovingForward,r=e.isInHomeList,n=e.insideDestination,i=e.location;if(!n.length)return null;var a=i.index,o=t?a+1:a-1,l=n[0].descriptor.index,u=n[n.length-1].descriptor.index;return o<l||o>(r?u:u+1)?null:o}({isMovingForward:t,isInHomeList:r,location:s.destination,insideDestination:o});return null==d?null:calculateReorderImpact({draggable:n,insideDestination:o,destination:a,viewport:u,last:l.displaced,displacedBy:l.displacedBy,index:d})}var p=function(e){var t=e.isMovingForward,r=e.destination,n=e.draggables,i=e.combine,a=e.afterCritical;if(!r.isCombineEnabled)return null;var o=i.draggableId,l=n[o].descriptor.index;return didStartAfterCritical(o,a)?t?l:l-1:t?l+1:l}({isMovingForward:t,destination:a,displaced:l.displaced,draggables:i,combine:s.combine,afterCritical:c});return null==p?null:calculateReorderImpact({draggable:n,insideDestination:o,destination:a,viewport:u,last:l.displaced,displacedBy:l.displacedBy,index:p})},whenCombining=function(e){var t=e.afterCritical,r=e.impact,n=e.draggables,i=tryGetCombine(r);i||react_beautiful_dnd_esm_invariant(!1);var a=i.draggableId,o=n[a].page.borderBox.center,l=function(e){var t=e.displaced,r=e.afterCritical,n=e.combineWith,i=e.displacedBy,a=Boolean(t.visible[n]||t.invisible[n]);return didStartAfterCritical(n,r)?a?ne:le(i.point):a?i.point:ne}({displaced:r.displaced,afterCritical:t,combineWith:a,displacedBy:r.displacedBy});return ie(o,l)},Ae=function distanceFromStartToBorderBoxCenter(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},Oe=function getCrossAxisBorderBoxCenter(e,t,r){return t[e.crossAxisStart]+r.margin[e.crossAxisStart]+r.borderBox[e.crossAxisSize]/2},Re=function goAfter(e){var t=e.axis,r=e.moveRelativeTo,n=e.isMoving;return ue(t.line,r.marginBox[t.end]+Ae(t,n),Oe(t,r.marginBox,n))},Be=function goBefore(e){var t=e.axis,r=e.moveRelativeTo,n=e.isMoving;return ue(t.line,r.marginBox[t.start]-function distanceFromEndToBorderBoxCenter(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,n),Oe(t,r.marginBox,n))},whenReordering=function(e){var t=e.impact,r=e.draggable,n=e.draggables,i=e.droppable,a=e.afterCritical,o=ye(i.descriptor.id,n),l=r.page,u=i.axis;if(!o.length)return function goIntoStart(e){var t=e.axis,r=e.moveInto,n=e.isMoving;return ue(t.line,r.contentBox[t.start]+Ae(t,n),Oe(t,r.contentBox,n))}({axis:u,moveInto:i.page,isMoving:l});var c=t.displaced,s=t.displacedBy,d=c.all[0];if(d){var p=n[d];if(didStartAfterCritical(d,a))return Be({axis:u,moveRelativeTo:p.page,isMoving:l});var f=k(p.page,s.point);return Be({axis:u,moveRelativeTo:f,isMoving:l})}var g=o[o.length-1];if(g.descriptor.id===r.descriptor.id)return l.borderBox.center;if(didStartAfterCritical(g.descriptor.id,a)){var v=k(g.page,le(a.displacedBy.point));return Re({axis:u,moveRelativeTo:v,isMoving:l})}return Re({axis:u,moveRelativeTo:g.page,isMoving:l})},withDroppableDisplacement=function(e,t){var r=e.frame;return r?ie(t,r.scroll.diff.displacement):t},getPageBorderBoxCenterFromImpact=function(e){var t=function getResultWithoutDroppableDisplacement(e){var t=e.impact,r=e.draggable,n=e.droppable,i=e.draggables,a=e.afterCritical,o=r.page.borderBox.center,l=t.at;return n&&l?"REORDER"===l.type?whenReordering({impact:t,draggable:r,draggables:i,droppable:n,afterCritical:a}):whenCombining({impact:t,draggables:i,afterCritical:a}):o}(e),r=e.droppable;return r?withDroppableDisplacement(r,t):t},scrollViewport=function(e,t){var r=ae(t,e.scroll.initial),n=le(r);return{frame:M({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:r,displacement:n}}}};function getDraggables(e,t){return e.map((function(e){return t[e]}))}var getClientFromPageBorderBoxCenter=function(e){var t=e.pageBorderBoxCenter,r=e.draggable,n=function(e,t){return ie(e.scroll.diff.displacement,t)}(e.viewport,t),i=ae(n,r.page.borderBox.center);return ie(r.client.borderBox.center,i)},isTotallyVisibleInNewLocation=function(e){var t=e.draggable,r=e.destination,n=e.newPageBorderBoxCenter,i=e.viewport,a=e.withDroppableDisplacement,o=e.onlyOnMainAxis,l=void 0!==o&&o,u=ae(n,t.page.borderBox.center),c={target:pe(t.page.borderBox,u),destination:r,withDroppableDisplacement:a,viewport:i};return l?function isTotallyVisibleOnAxis(e){return Se(_extends({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var r=isWithin(e.top,e.bottom),n=isWithin(e.left,e.right);return function(e){return t===Ee?r(e.top)&&r(e.bottom):n(e.left)&&n(e.right)}})}));var t}(c):Pe(c)},moveToNextPlace=function(e){var t=e.isMovingForward,r=e.draggable,n=e.destination,i=e.draggables,a=e.previousImpact,o=e.viewport,l=e.previousPageBorderBoxCenter,u=e.previousClientSelection,c=e.afterCritical;if(!n.isEnabled)return null;var s=ye(n.descriptor.id,i),d=isHomeOf(r,n),p=function(e){var t=e.isMovingForward,r=e.draggable,n=e.destination,i=e.insideDestination,a=e.previousImpact;if(!n.isCombineEnabled)return null;if(!tryGetDestination(a))return null;function getImpact(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:n.descriptor.id}};return _extends({},a,{at:t})}var o=a.displaced.all,l=o.length?o[0]:null;if(t)return l?getImpact(l):null;var u=_e(r,i);if(!l)return u.length?getImpact(u[u.length-1].descriptor.id):null;var c=findIndex(u,(function(e){return e.descriptor.id===l}));-1===c&&react_beautiful_dnd_esm_invariant(!1);var s=c-1;return s<0?null:getImpact(u[s].descriptor.id)}({isMovingForward:t,draggable:r,destination:n,insideDestination:s,previousImpact:a})||moveToNextIndex({isMovingForward:t,isInHomeList:d,draggable:r,draggables:i,destination:n,insideDestination:s,previousImpact:a,viewport:o,afterCritical:c});if(!p)return null;var f=getPageBorderBoxCenterFromImpact({impact:p,draggable:r,droppable:n,draggables:i,afterCritical:c});if(isTotallyVisibleInNewLocation({draggable:r,destination:n,newPageBorderBoxCenter:f,viewport:o.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:getClientFromPageBorderBoxCenter({pageBorderBoxCenter:f,draggable:r,viewport:o}),impact:p,scrollJumpRequest:null};var g=ae(f,l),v=function(e){var t=e.impact,r=e.viewport,n=e.destination,i=e.draggables,a=e.maxScrollChange,o=scrollViewport(r,ie(r.scroll.current,a)),l=n.frame?scrollDroppable(n,ie(n.frame.scroll.current,a)):n,u=t.displaced,c=getDisplacementGroups({afterDragging:getDraggables(u.all,i),destination:n,displacedBy:t.displacedBy,viewport:o.frame,last:u,forceShouldAnimate:!1}),s=getDisplacementGroups({afterDragging:getDraggables(u.all,i),destination:l,displacedBy:t.displacedBy,viewport:r.frame,last:u,forceShouldAnimate:!1}),d={},p={},f=[u,c,s];return u.all.forEach((function(e){var t=function tryGetVisible(e,t){for(var r=0;r<t.length;r++){var n=t[r].visible[e];if(n)return n}return null}(e,f);t?p[e]=t:d[e]=!0})),_extends({},t,{displaced:{all:u.all,invisible:d,visible:p}})}({impact:p,viewport:o,destination:n,draggables:i,maxScrollChange:g});return{clientSelection:u,impact:v,scrollJumpRequest:g}},Ne=function getKnownActive(e){var t=e.subject.active;return t||react_beautiful_dnd_esm_invariant(!1),t},Me=function getCurrentPageBorderBoxCenter(e,t){var r=e.page.borderBox.center;return didStartAfterCritical(e.descriptor.id,t)?ae(r,t.displacedBy.point):r},Te=function getCurrentPageBorderBox(e,t){var r=e.page.borderBox;return didStartAfterCritical(e.descriptor.id,t)?pe(r,le(t.displacedBy.point)):r},Le=V((function getDisplacedBy(e,t){var r=t[e.line];return{value:r,point:ue(e.line,r)}})),Ge=function withMaxScroll(e,t){return _extends({},e,{scroll:_extends({},e.scroll,{max:t})})},Fe=function addPlaceholder(e,t,r){var n=e.frame;isHomeOf(t,e)&&react_beautiful_dnd_esm_invariant(!1),e.subject.withPlaceholder&&react_beautiful_dnd_esm_invariant(!1);var i=Le(e.axis,t.displaceBy).point,a=function getRequiredGrowthForPlaceholder(e,t,r){var n=e.axis;if("virtual"===e.descriptor.mode)return ue(n.line,t[n.line]);var i=e.subject.page.contentBox[n.size],a=ye(e.descriptor.id,r).reduce((function(e,t){return e+t.client.marginBox[n.size]}),0)+t[n.line]-i;return a<=0?null:ue(n.line,a)}(e,i,r),o={placeholderSize:i,increasedBy:a,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!n)return _extends({},e,{subject:getSubject({page:e.subject.page,withPlaceholder:o,axis:e.axis,frame:e.frame})});var l=a?ie(n.scroll.max,a):n.scroll.max,u=Ge(n,l);return _extends({},e,{subject:getSubject({page:e.subject.page,withPlaceholder:o,axis:e.axis,frame:u}),frame:u})},moveCrossAxis=function(e){var t=e.isMovingForward,r=e.previousPageBorderBoxCenter,n=e.draggable,i=e.isOver,a=e.draggables,o=e.droppables,l=e.viewport,u=e.afterCritical,c=function(e){var t=e.isMovingForward,r=e.pageBorderBoxCenter,n=e.source,i=e.droppables,a=e.viewport,o=n.subject.active;if(!o)return null;var l=n.axis,u=isWithin(o[l.start],o[l.end]),c=be(i).filter((function(e){return e!==n})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return isPartiallyVisibleThroughFrame(a.frame)(Ne(e))})).filter((function(e){var r=Ne(e);return t?o[l.crossAxisEnd]<r[l.crossAxisEnd]:r[l.crossAxisStart]<o[l.crossAxisStart]})).filter((function(e){var t=Ne(e),r=isWithin(t[l.start],t[l.end]);return u(t[l.start])||u(t[l.end])||r(o[l.start])||r(o[l.end])})).sort((function(e,r){var n=Ne(e)[l.crossAxisStart],i=Ne(r)[l.crossAxisStart];return t?n-i:i-n})).filter((function(e,t,r){return Ne(e)[l.crossAxisStart]===Ne(r[0])[l.crossAxisStart]}));if(!c.length)return null;if(1===c.length)return c[0];var s=c.filter((function(e){return isWithin(Ne(e)[l.start],Ne(e)[l.end])(r[l.line])}));return 1===s.length?s[0]:s.length>1?s.sort((function(e,t){return Ne(e)[l.start]-Ne(t)[l.start]}))[0]:c.sort((function(e,t){var n=se(r,fe(Ne(e))),i=se(r,fe(Ne(t)));return n!==i?n-i:Ne(e)[l.start]-Ne(t)[l.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:r,source:i,droppables:o,viewport:l});if(!c)return null;var s=ye(c.descriptor.id,a),d=function(e){var t=e.pageBorderBoxCenter,r=e.viewport,n=e.destination,i=e.insideDestination,a=e.afterCritical,o=i.filter((function(e){return Pe({target:Te(e,a),destination:n,viewport:r.frame,withDroppableDisplacement:!0})})).sort((function(e,r){var i=ce(t,withDroppableDisplacement(n,Me(e,a))),o=ce(t,withDroppableDisplacement(n,Me(r,a)));return i<o?-1:o<i?1:e.descriptor.index-r.descriptor.index}));return o[0]||null}({pageBorderBoxCenter:r,viewport:l,destination:c,insideDestination:s,afterCritical:u}),p=function(e){var t=e.previousPageBorderBoxCenter,r=e.moveRelativeTo,n=e.insideDestination,i=e.draggable,a=e.draggables,o=e.destination,l=e.viewport,u=e.afterCritical;if(!r){if(n.length)return null;var c={displaced:De,displacedBy:xe,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:0}}},s=getPageBorderBoxCenterFromImpact({impact:c,draggable:i,droppable:o,draggables:a,afterCritical:u}),d=isHomeOf(i,o)?o:Fe(o,i,a);return isTotallyVisibleInNewLocation({draggable:i,destination:d,newPageBorderBoxCenter:s,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?c:null}var p,f=Boolean(t[o.axis.line]<=r.page.borderBox.center[o.axis.line]),g=(p=r.descriptor.index,r.descriptor.id===i.descriptor.id||f?p:p+1),v=Le(o.axis,i.displaceBy);return calculateReorderImpact({draggable:i,insideDestination:n,destination:o,viewport:l,displacedBy:v,last:De,index:g})}({previousPageBorderBoxCenter:r,destination:c,draggable:n,draggables:a,moveRelativeTo:d,insideDestination:s,viewport:l,afterCritical:u});if(!p)return null;var f=getPageBorderBoxCenterFromImpact({impact:p,draggable:n,droppable:c,draggables:a,afterCritical:u});return{clientSelection:getClientFromPageBorderBoxCenter({pageBorderBoxCenter:f,draggable:n,viewport:l}),impact:p,scrollJumpRequest:null}},whatIsDraggedOver=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},moveInDirection=function(e){var t=e.state,r=e.type,n=function getDroppableOver(e,t){var r=whatIsDraggedOver(e);return r?t[r]:null}(t.impact,t.dimensions.droppables),i=Boolean(n),a=t.dimensions.droppables[t.critical.droppable.id],o=n||a,l=o.axis.direction,u="vertical"===l&&("MOVE_UP"===r||"MOVE_DOWN"===r)||"horizontal"===l&&("MOVE_LEFT"===r||"MOVE_RIGHT"===r);if(u&&!i)return null;var c="MOVE_DOWN"===r||"MOVE_RIGHT"===r,s=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,p=t.dimensions,f=p.draggables,g=p.droppables;return u?moveToNextPlace({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:s,destination:o,draggables:f,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):moveCrossAxis({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:s,isOver:o,draggables:f,droppables:g,viewport:t.viewport,afterCritical:t.afterCritical})};function isMovementAllowed(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function isPositionInFrame(e){var t=isWithin(e.top,e.bottom),r=isWithin(e.left,e.right);return function run(e){return t(e.y)&&r(e.x)}}function getDroppableOver$1(e){var t=e.pageBorderBox,r=e.draggable,n=e.droppables,i=be(n).filter((function(e){if(!e.isEnabled)return!1;var r=e.subject.active;if(!r)return!1;if(!function getHasOverlap(e,t){return e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top}(t,r))return!1;if(isPositionInFrame(r)(t.center))return!0;var n=e.axis,i=r.center[n.crossAxisLine],a=t[n.crossAxisStart],o=t[n.crossAxisEnd],l=isWithin(r[n.crossAxisStart],r[n.crossAxisEnd]),u=l(a),c=l(o);return!u&&!c||(u?a<i:o>i)}));return i.length?1===i.length?i[0].descriptor.id:function getFurthestAway(e){var t=e.pageBorderBox,r=e.draggable,n=e.candidates,i=r.page.borderBox.center,a=n.map((function(e){var r=e.axis,n=ue(e.axis.line,t.center[r.line],e.page.borderBox.center[r.crossAxisLine]);return{id:e.descriptor.id,distance:ce(i,n)}})).sort((function(e,t){return t.distance-e.distance}));return a[0]?a[0].id:null}({pageBorderBox:t,draggable:r,candidates:i}):null}var We=function offsetRectByPosition(e,t){return M(pe(e,t))};function getIsDisplaced(e){var t=e.displaced,r=e.id;return Boolean(t.visible[r]||t.invisible[r])}var getDragImpact=function(e){var t=e.pageOffset,r=e.draggable,n=e.draggables,i=e.droppables,a=e.previousImpact,o=e.viewport,l=e.afterCritical,u=We(r.page.borderBox,t),c=getDroppableOver$1({pageBorderBox:u,draggable:r,droppables:i});if(!c)return Ie;var s=i[c],d=ye(s.descriptor.id,n),p=function(e,t){var r=e.frame;return r?We(t,r.scroll.diff.value):t}(s,u);return function(e){var t=e.draggable,r=e.pageBorderBoxWithDroppableScroll,n=e.previousImpact,i=e.destination,a=e.insideDestination,o=e.afterCritical;if(!i.isCombineEnabled)return null;var l=i.axis,u=Le(i.axis,t.displaceBy),c=u.value,s=r[l.start],d=r[l.end],p=find(_e(t,a),(function(e){var t=e.descriptor.id,r=e.page.borderBox,i=r[l.size]/4,a=didStartAfterCritical(t,o),u=getIsDisplaced({displaced:n.displaced,id:t});return a?u?d>r[l.start]+i&&d<r[l.end]-i:s>r[l.start]-c+i&&s<r[l.end]-c-i:u?d>r[l.start]+c+i&&d<r[l.end]+c-i:s>r[l.start]+i&&s<r[l.end]-i}));return p?{displacedBy:u,displaced:n.displaced,at:{type:"COMBINE",combine:{draggableId:p.descriptor.id,droppableId:i.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:p,draggable:r,previousImpact:a,destination:s,insideDestination:d,afterCritical:l})||function(e){var t=e.pageBorderBoxWithDroppableScroll,r=e.draggable,n=e.destination,i=e.insideDestination,a=e.last,o=e.viewport,l=e.afterCritical,u=n.axis,c=Le(n.axis,r.displaceBy),s=c.value,d=t[u.start],p=t[u.end],f=function atIndex(e){var t=e.draggable,r=e.closest,n=e.inHomeList;return r?n&&r.descriptor.index>t.descriptor.index?r.descriptor.index-1:r.descriptor.index:null}({draggable:r,closest:find(_e(r,i),(function(e){var t=e.descriptor.id,r=e.page.borderBox.center[u.line],n=didStartAfterCritical(t,l),i=getIsDisplaced({displaced:a,id:t});return n?i?p<=r:d<r-s:i?p<=r+s:d<r})),inHomeList:isHomeOf(r,n)});return calculateReorderImpact({draggable:r,insideDestination:i,destination:n,viewport:o,last:a,displacedBy:c,index:f})}({pageBorderBoxWithDroppableScroll:p,draggable:r,destination:s,insideDestination:d,last:a.displaced,viewport:o,afterCritical:l})},patchDroppableMap=function(e,t){var r;return _extends({},e,((r={})[t.descriptor.id]=t,r))},ke=function clearUnusedPlaceholder(e){var t=e.previousImpact,r=e.impact,n=e.droppables,i=whatIsDraggedOver(t),a=whatIsDraggedOver(r);if(!i)return n;if(i===a)return n;var o=n[i];if(!o.subject.withPlaceholder)return n;var l=function removePlaceholder(e){var t=e.subject.withPlaceholder;t||react_beautiful_dnd_esm_invariant(!1);var r=e.frame;if(!r)return _extends({},e,{subject:getSubject({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null})});var n=t.oldFrameMaxScroll;n||react_beautiful_dnd_esm_invariant(!1);var i=Ge(r,n);return _extends({},e,{subject:getSubject({page:e.subject.page,axis:e.axis,frame:i,withPlaceholder:null}),frame:i})}(o);return patchDroppableMap(n,l)},update=function(e){var t=e.state,r=e.clientSelection,n=e.dimensions,i=e.viewport,a=e.impact,o=e.scrollJumpRequest,l=i||t.viewport,u=n||t.dimensions,c=r||t.current.client.selection,s=ae(c,t.initial.client.selection),d={offset:s,selection:c,borderBoxCenter:ie(t.initial.client.borderBoxCenter,s)},p={selection:ie(d.selection,l.scroll.current),borderBoxCenter:ie(d.borderBoxCenter,l.scroll.current),offset:ie(d.offset,l.scroll.diff.value)},f={client:d,page:p};if("COLLECTING"===t.phase)return _extends({phase:"COLLECTING"},t,{dimensions:u,viewport:l,current:f});var g=u.draggables[t.critical.draggable.id],v=a||getDragImpact({pageOffset:p.offset,draggable:g,draggables:u.draggables,droppables:u.droppables,previousImpact:t.impact,viewport:l,afterCritical:t.afterCritical}),m=function(e){var t=e.draggable,r=e.draggables,n=e.droppables,i=e.previousImpact,a=e.impact,o=ke({previousImpact:i,impact:a,droppables:n}),l=whatIsDraggedOver(a);if(!l)return o;var u=n[l];if(isHomeOf(t,u))return o;if(u.subject.withPlaceholder)return o;var c=Fe(u,t,r);return patchDroppableMap(o,c)}({draggable:g,impact:v,previousImpact:t.impact,draggables:u.draggables,droppables:u.droppables});return _extends({},t,{current:f,dimensions:{draggables:u.draggables,droppables:m},impact:v,viewport:l,scrollJumpRequest:o||null,forceShouldAnimate:!o&&null})};var recompute=function(e){var t=e.impact,r=e.viewport,n=e.draggables,i=e.destination,a=e.forceShouldAnimate,o=t.displaced,l=function getDraggables$1(e,t){return e.map((function(e){return t[e]}))}(o.all,n);return _extends({},t,{displaced:getDisplacementGroups({afterDragging:l,destination:i,displacedBy:t.displacedBy,viewport:r.frame,forceShouldAnimate:a,last:o})})},getClientBorderBoxCenter=function(e){var t=e.impact,r=e.draggable,n=e.droppable,i=e.draggables,a=e.viewport,o=e.afterCritical,l=getPageBorderBoxCenterFromImpact({impact:t,draggable:r,draggables:i,droppable:n,afterCritical:o});return getClientFromPageBorderBoxCenter({pageBorderBoxCenter:l,draggable:r,viewport:a})},refreshSnap=function(e){var t=e.state,r=e.dimensions,n=e.viewport;"SNAP"!==t.movementMode&&react_beautiful_dnd_esm_invariant(!1);var i=t.impact,a=n||t.viewport,o=r||t.dimensions,l=o.draggables,u=o.droppables,c=l[t.critical.draggable.id],s=whatIsDraggedOver(i);s||react_beautiful_dnd_esm_invariant(!1);var d=u[s],p=recompute({impact:i,viewport:a,destination:d,draggables:l}),f=getClientBorderBoxCenter({impact:p,draggable:c,droppable:d,draggables:l,viewport:a,afterCritical:t.afterCritical});return update({impact:p,clientSelection:f,state:t,dimensions:o,viewport:a})},getLiftEffect=function(e){var t=e.draggable,r=e.home,n=e.draggables,i=e.viewport,a=Le(r.axis,t.displaceBy),o=ye(r.descriptor.id,n),l=o.indexOf(t);-1===l&&react_beautiful_dnd_esm_invariant(!1);var u,c=o.slice(l+1),s=c.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),d={inVirtualList:"virtual"===r.descriptor.mode,displacedBy:a,effected:s};return{impact:{displaced:getDisplacementGroups({afterDragging:c,destination:r,displacedBy:a,last:null,viewport:i.frame,forceShouldAnimate:!1}),displacedBy:a,at:{type:"REORDER",destination:(u=t.descriptor,{index:u.index,droppableId:u.droppableId})}},afterCritical:d}},Ue=function start(e){0},je=function finish(e){0},adjustAdditionsForScrollChanges=function(e){var t=e.additions,r=e.updatedDroppables,n=e.viewport,i=n.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,a=function(e){var t=e.frame;return t||react_beautiful_dnd_esm_invariant(!1),t}(r[t]),o=a.scroll.diff.value,l=function(e){var t=e.draggable,r=e.offset,n=e.initialWindowScroll,i=k(t.client,r),a=U(i,n);return _extends({},t,{placeholder:_extends({},t.placeholder,{client:i}),client:i,page:a})}({draggable:e,offset:ie(i,o),initialWindowScroll:n.scroll.initial});return l}))},He=function isSnapping(e){return"SNAP"===e.movementMode},qe=function postDroppableChange(e,t,r){var n=function(e,t){return{draggables:e.draggables,droppables:patchDroppableMap(e.droppables,t)}}(e.dimensions,t);return!He(e)||r?update({state:e,dimensions:n}):refreshSnap({state:e,dimensions:n})};function removeScrollJumpRequest(e){return e.isDragging&&"SNAP"===e.movementMode?_extends({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var Ve={phase:"IDLE",completed:null,shouldFlush:!1},reducer=function(e,t){if(void 0===e&&(e=Ve),"FLUSH"===t.type)return _extends({},Ve,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&react_beautiful_dnd_esm_invariant(!1);var r=t.payload,n=r.critical,i=r.clientSelection,a=r.viewport,o=r.dimensions,l=r.movementMode,u=o.draggables[n.draggable.id],c=o.droppables[n.droppable.id],s={selection:i,borderBoxCenter:u.client.borderBox.center,offset:ne},d={client:s,page:{selection:ie(s.selection,a.scroll.initial),borderBoxCenter:ie(s.selection,a.scroll.initial),offset:ie(s.selection,a.scroll.diff.value)}},p=be(o.droppables).every((function(e){return!e.isFixedOnPage})),f=getLiftEffect({draggable:u,home:c,draggables:o.draggables,viewport:a}),g=f.impact;return{phase:"DRAGGING",isDragging:!0,critical:n,movementMode:l,dimensions:o,initial:d,current:d,isWindowScrollAllowed:p,impact:g,afterCritical:f.afterCritical,onLiftImpact:g,viewport:a,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&react_beautiful_dnd_esm_invariant(!1),_extends({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&react_beautiful_dnd_esm_invariant(!1),function(e){var t=e.state,r=e.published;Ue();var n=r.modified.map((function(e){var r=t.dimensions.droppables[e.droppableId];return scrollDroppable(r,e.scroll)})),i=_extends({},t.dimensions.droppables,{},ve(n)),a=me(adjustAdditionsForScrollChanges({additions:r.additions,updatedDroppables:i,viewport:t.viewport})),o=_extends({},t.dimensions.draggables,{},a);r.removals.forEach((function(e){delete o[e]}));var l={droppables:i,draggables:o},u=whatIsDraggedOver(t.impact),c=u?l.droppables[u]:null,s=l.draggables[t.critical.draggable.id],d=l.droppables[t.critical.droppable.id],p=getLiftEffect({draggable:s,home:d,draggables:o,viewport:t.viewport}),f=p.impact,g=p.afterCritical,v=c&&c.isCombineEnabled?t.impact:f,m=getDragImpact({pageOffset:t.current.page.offset,draggable:l.draggables[t.critical.draggable.id],draggables:l.draggables,droppables:l.droppables,previousImpact:v,viewport:t.viewport,afterCritical:g});je();var b=_extends({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:m,onLiftImpact:f,dimensions:l,afterCritical:g,forceShouldAnimate:!1});return"COLLECTING"===t.phase?b:_extends({phase:"DROP_PENDING"},b,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})}({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;isMovementAllowed(e)||react_beautiful_dnd_esm_invariant(!1);var v=t.payload.client;return oe(v,e.current.client.selection)?e:update({state:e,clientSelection:v,impact:He(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return removeScrollJumpRequest(e);if("COLLECTING"===e.phase)return removeScrollJumpRequest(e);isMovementAllowed(e)||react_beautiful_dnd_esm_invariant(!1);var m=t.payload,b=m.id,h=m.newScroll,_=e.dimensions.droppables[b];if(!_)return e;var x=scrollDroppable(_,h);return qe(e,x,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;isMovementAllowed(e)||react_beautiful_dnd_esm_invariant(!1);var D=t.payload,I=D.id,E=D.isEnabled,w=e.dimensions.droppables[I];w||react_beautiful_dnd_esm_invariant(!1),w.isEnabled===E&&react_beautiful_dnd_esm_invariant(!1);var S=_extends({},w,{isEnabled:E});return qe(e,S,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;isMovementAllowed(e)||react_beautiful_dnd_esm_invariant(!1);var C=t.payload,P=C.id,A=C.isCombineEnabled,O=e.dimensions.droppables[P];O||react_beautiful_dnd_esm_invariant(!1),O.isCombineEnabled===A&&react_beautiful_dnd_esm_invariant(!1);var R=_extends({},O,{isCombineEnabled:A});return qe(e,R,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;isMovementAllowed(e)||react_beautiful_dnd_esm_invariant(!1),e.isWindowScrollAllowed||react_beautiful_dnd_esm_invariant(!1);var B=t.payload.newScroll;if(oe(e.viewport.scroll.current,B))return removeScrollJumpRequest(e);var N=scrollViewport(e.viewport,B);return He(e)?refreshSnap({state:e,viewport:N}):update({state:e,viewport:N})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!isMovementAllowed(e))return e;var M=t.payload.maxScroll;if(oe(M,e.viewport.scroll.max))return e;var T=_extends({},e.viewport,{scroll:_extends({},e.viewport.scroll,{max:M})});return _extends({phase:"DRAGGING"},e,{viewport:T})}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&react_beautiful_dnd_esm_invariant(!1);var L=moveInDirection({state:e,type:t.type});return L?update({state:e,impact:L.impact,clientSelection:L.clientSelection,scrollJumpRequest:L.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var G=t.payload.reason;return"COLLECTING"!==e.phase&&react_beautiful_dnd_esm_invariant(!1),_extends({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:G})}if("DROP_ANIMATE"===t.type){var F=t.payload,W=F.completed,k=F.dropDuration,U=F.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&react_beautiful_dnd_esm_invariant(!1),{phase:"DROP_ANIMATING",completed:W,dropDuration:k,newHomeClientOffset:U,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},ze=function publishWhileDragging(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},$e=function collectionStarting(){return{type:"COLLECTION_STARTING",payload:null}},Ke=function updateDroppableScroll(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},Ye=function updateDroppableIsEnabled(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},Je=function updateDroppableIsCombineEnabled(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},Xe=function move(e){return{type:"MOVE",payload:e}},Qe=function moveUp(){return{type:"MOVE_UP",payload:null}},Ze=function moveDown(){return{type:"MOVE_DOWN",payload:null}},et=function moveRight(){return{type:"MOVE_RIGHT",payload:null}},tt=function moveLeft(){return{type:"MOVE_LEFT",payload:null}},rt=function completeDrop(e){return{type:"DROP_COMPLETE",payload:e}},nt=function drop(e){return{type:"DROP",payload:e}},it=function dropAnimationFinished(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};var at="cubic-bezier(.2,1,.1,1)",ot={drop:0,combining:.7},lt={drop:.75},ut=.2+"s "+"cubic-bezier(0.2, 0, 0, 1)",ct={fluid:"opacity "+ut,snap:"transform "+ut+", opacity "+ut,drop:function drop(e){var t=e+"s "+at;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+ut,placeholder:"height "+ut+", width "+ut+", margin "+ut},st=function moveTo(e){return oe(e,ne)?null:"translate("+e.x+"px, "+e.y+"px)"},dt=st,pt=function drop(e,t){var r=st(e);return r?t?r+" scale("+lt.drop+")":r:null},ft=.33,gt=.55,vt=gt-ft,drop$1=function(e){var t=e.getState,r=e.dispatch;return function(e){return function(n){if("DROP"===n.type){var i=t(),a=n.payload.reason;if("COLLECTING"!==i.phase){if("IDLE"!==i.phase){"DROP_PENDING"===i.phase&&i.isWaiting&&react_beautiful_dnd_esm_invariant(!1),"DRAGGING"!==i.phase&&"DROP_PENDING"!==i.phase&&react_beautiful_dnd_esm_invariant(!1);var o=i.critical,l=i.dimensions,u=l.draggables[i.critical.draggable.id],c=function(e){var t=e.draggables,r=e.reason,n=e.lastImpact,i=e.home,a=e.viewport,o=e.onLiftImpact;return n.at&&"DROP"===r?"REORDER"===n.at.type?{impact:n,didDropInsideDroppable:!0}:{impact:_extends({},n,{displaced:De}),didDropInsideDroppable:!0}:{impact:recompute({draggables:t,impact:o,destination:i,viewport:a,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:a,lastImpact:i.impact,afterCritical:i.afterCritical,onLiftImpact:i.onLiftImpact,home:i.dimensions.droppables[i.critical.droppable.id],viewport:i.viewport,draggables:i.dimensions.draggables}),s=c.impact,d=c.didDropInsideDroppable,p=d?tryGetDestination(s):null,f=d?tryGetCombine(s):null,g={index:o.draggable.index,droppableId:o.droppable.id},v={draggableId:u.descriptor.id,type:u.descriptor.type,source:g,reason:a,mode:i.movementMode,destination:p,combine:f},m=function(e){var t=e.impact,r=e.draggable,n=e.dimensions,i=e.viewport,a=e.afterCritical,o=n.draggables,l=n.droppables,u=whatIsDraggedOver(t),c=u?l[u]:null,s=l[r.descriptor.droppableId],d=getClientBorderBoxCenter({impact:t,draggable:r,draggables:o,afterCritical:a,droppable:c||s,viewport:i});return ae(d,r.client.borderBox.center)}({impact:s,draggable:u,dimensions:l,viewport:i.viewport,afterCritical:i.afterCritical}),b={critical:i.critical,afterCritical:i.afterCritical,result:v,impact:s};if(!oe(i.current.client.offset,m)||Boolean(v.combine)){var h=function(e){var t=e.current,r=e.destination,n=e.reason,i=ce(t,r);if(i<=0)return ft;if(i>=1500)return gt;var a=ft+vt*(i/1500);return Number(("CANCEL"===n?.6*a:a).toFixed(2))}({current:i.current.client.offset,destination:m,reason:a});r(function animateDrop(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:m,dropDuration:h,completed:b}))}else r(rt({completed:b}))}}else r(function dropPending(e){return{type:"DROP_PENDING",payload:e}}({reason:a}))}else e(n)}}},react_beautiful_dnd_esm_getWindowScroll=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function getScrollListener(e){var t=e.onWindowScroll;var r=z((function updateScroll(){t(react_beautiful_dnd_esm_getWindowScroll())})),n=function getWindowScrollBinding(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function fn(t){t.target!==window&&t.target!==window.document||e()}}}(r),i=noop;function isActive(){return i!==noop}return{start:function start(){isActive()&&react_beautiful_dnd_esm_invariant(!1),i=bindEvents(window,[n])},stop:function stop(){isActive()||react_beautiful_dnd_esm_invariant(!1),r.cancel(),i(),i=noop},isActive}}var scrollListener=function(e){var t=getScrollListener({onWindowScroll:function onWindowScroll(t){e.dispatch(function moveByWindowScroll(e){return{type:"MOVE_BY_WINDOW_SCROLL",payload:e}}({newScroll:t}))}});return function(e){return function(r){t.isActive()||"INITIAL_PUBLISH"!==r.type||t.start(),t.isActive()&&function shouldEnd(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(r)&&t.stop(),e(r)}}},getAsyncMarshal=function(){var e=[];return{add:function add(t){var r=setTimeout((function(){return function execute(t){var r=findIndex(e,(function(e){return e.timerId===t}));-1===r&&react_beautiful_dnd_esm_invariant(!1),e.splice(r,1)[0].callback()}(r)})),n={timerId:r,callback:t};e.push(n)},flush:function flush(){if(e.length){var t=[].concat(e);e.length=0,t.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}},mt=function withTimings(e,t){Ue(),t(),je()},bt=function getDragStart(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},ht=function execute(e,t,r,n){if(e){var i=function(e){var t=!1,r=!1,n=setTimeout((function(){r=!0})),i=function result(i){t||r||(t=!0,e(i),clearTimeout(n))};return i.wasCalled=function(){return t},i}(r);e(t,{announce:i}),i.wasCalled()||r(n(t))}else r(n(t))},responders=function(e,t){var r=function(e,t){var r=getAsyncMarshal(),n=null,i=function drop(r){n||react_beautiful_dnd_esm_invariant(!1),n=null,mt(0,(function(){return ht(e().onDragEnd,r,t,re)}))};return{beforeCapture:function beforeCapture(t,r){n&&react_beautiful_dnd_esm_invariant(!1),mt(0,(function(){var n=e().onBeforeCapture;n&&n({draggableId:t,mode:r})}))},beforeStart:function beforeStart(t,r){n&&react_beautiful_dnd_esm_invariant(!1),mt(0,(function(){var n=e().onBeforeDragStart;n&&n(bt(t,r))}))},start:function start(i,a){n&&react_beautiful_dnd_esm_invariant(!1);var o=bt(i,a);n={mode:a,lastCritical:i,lastLocation:o.source,lastCombine:null},r.add((function(){mt(0,(function(){return ht(e().onDragStart,o,t,ee)}))}))},update:function update(i,a){var o=tryGetDestination(a),l=tryGetCombine(a);n||react_beautiful_dnd_esm_invariant(!1);var u=!function isCriticalEqual(e,t){if(e===t)return!0;var r=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,n=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return r&&n}(i,n.lastCritical);u&&(n.lastCritical=i);var c=!function areLocationsEqual(e,t){return null==e&&null==t||null!=e&&null!=t&&e.droppableId===t.droppableId&&e.index===t.index}(n.lastLocation,o);c&&(n.lastLocation=o);var s=!function isCombineEqual(e,t){return null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId}(n.lastCombine,l);if(s&&(n.lastCombine=l),u||c||s){var d=_extends({},bt(i,n.mode),{combine:l,destination:o});r.add((function(){mt(0,(function(){return ht(e().onDragUpdate,d,t,te)}))}))}},flush:function flush(){n||react_beautiful_dnd_esm_invariant(!1),r.flush()},drop:i,abort:function abort(){if(n){var e=_extends({},bt(n.lastCritical,n.mode),{combine:null,destination:null,reason:"CANCEL"});i(e)}}}}(e,t);return function(e){return function(t){return function(n){if("BEFORE_INITIAL_CAPTURE"!==n.type){if("INITIAL_PUBLISH"===n.type){var i=n.payload.critical;return r.beforeStart(i,n.payload.movementMode),t(n),void r.start(i,n.payload.movementMode)}if("DROP_COMPLETE"===n.type){var a=n.payload.completed.result;return r.flush(),t(n),void r.drop(a)}if(t(n),"FLUSH"!==n.type){var o=e.getState();"DRAGGING"===o.phase&&r.update(o.critical,o.impact)}else r.abort()}else r.beforeCapture(n.payload.draggableId,n.payload.movementMode)}}}},dropAnimationFinish=function(e){return function(t){return function(r){if("DROP_ANIMATION_FINISHED"===r.type){var n=e.getState();"DROP_ANIMATING"!==n.phase&&react_beautiful_dnd_esm_invariant(!1),e.dispatch(rt({completed:n.completed}))}else t(r)}}},dropAnimationFlushOnScroll=function(e){var t=null,r=null;return function(n){return function(i){if("FLUSH"!==i.type&&"DROP_COMPLETE"!==i.type&&"DROP_ANIMATION_FINISHED"!==i.type||function clear(){r&&(cancelAnimationFrame(r),r=null),t&&(t(),t=null)}(),n(i),"DROP_ANIMATE"===i.type){var a={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function flushDropAnimation(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};r=requestAnimationFrame((function(){r=null,t=bindEvents(window,[a])}))}}}},pendingDrop=function(e){return function(t){return function(r){if(t(r),"PUBLISH_WHILE_DRAGGING"===r.type){var n=e.getState();"DROP_PENDING"===n.phase&&(n.isWaiting||e.dispatch(nt({reason:n.reason})))}}}},yt=compose,react_beautiful_dnd_esm_createStore=function(e){var t,r=e.dimensionMarshal,n=e.focusMarshal,i=e.styleMarshal,a=e.getResponders,o=e.announce,l=e.autoScroller;return createStore(reducer,yt(function applyMiddleware(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),n=function dispatch(){throw new Error(formatProdErrorMessage(15))},i={getState:r.getState,dispatch:function dispatch(){return n.apply(void 0,arguments)}},a=t.map((function(e){return e(i)}));return n=compose.apply(void 0,a)(r.dispatch),_objectSpread2(_objectSpread2({},r),{},{dispatch:n})}}}((t=i,function(){return function(e){return function(r){"INITIAL_PUBLISH"===r.type&&t.dragging(),"DROP_ANIMATE"===r.type&&t.dropping(r.payload.completed.result.reason),"FLUSH"!==r.type&&"DROP_COMPLETE"!==r.type||t.resting(),e(r)}}}),function(e){return function(){return function(t){return function(r){"DROP_COMPLETE"!==r.type&&"FLUSH"!==r.type&&"DROP_ANIMATE"!==r.type||e.stopPublishing(),t(r)}}}}(r),function(e){return function(t){var r=t.getState,n=t.dispatch;return function(t){return function(i){if("LIFT"===i.type){var a=i.payload,o=a.id,l=a.clientSelection,u=a.movementMode,c=r();"DROP_ANIMATING"===c.phase&&n(rt({completed:c.completed})),"IDLE"!==r().phase&&react_beautiful_dnd_esm_invariant(!1),n({type:"FLUSH",payload:null}),n(function beforeInitialCapture(e){return{type:"BEFORE_INITIAL_CAPTURE",payload:e}}({draggableId:o,movementMode:u}));var s={draggableId:o,scrollOptions:{shouldPublishImmediately:"SNAP"===u}},d=e.startPublishing(s),p=d.critical,f=d.dimensions,g=d.viewport;n(function initialPublish(e){return{type:"INITIAL_PUBLISH",payload:e}}({critical:p,dimensions:f,clientSelection:l,movementMode:u,viewport:g}))}else t(i)}}}}(r),drop$1,dropAnimationFinish,dropAnimationFlushOnScroll,pendingDrop,function(e){return function(t){return function(r){return function(n){if(function shouldStop(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n))return e.stop(),void r(n);if("INITIAL_PUBLISH"===n.type){r(n);var i=t.getState();return"DRAGGING"!==i.phase&&react_beautiful_dnd_esm_invariant(!1),void e.start(i)}r(n),e.scroll(t.getState())}}}}(l),scrollListener,function(e){var t=!1;return function(){return function(r){return function(n){if("INITIAL_PUBLISH"===n.type)return t=!0,e.tryRecordFocus(n.payload.critical.draggable.id),r(n),void e.tryRestoreFocusRecorded();if(r(n),t){if("FLUSH"===n.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===n.type){t=!1;var i=n.payload.completed.result;i.combine&&e.tryShiftRecord(i.draggableId,i.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(n),responders(a,o))))};var getMaxScroll=function(e){var t=e.scrollHeight,r=e.scrollWidth,n=e.height,i=e.width,a=ae({x:r,y:t},{x:i,y:n});return{x:Math.max(0,a.x),y:Math.max(0,a.y)}},getDocumentElement=function(){var e=document.documentElement;return e||react_beautiful_dnd_esm_invariant(!1),e},getMaxWindowScroll=function(){var e=getDocumentElement();return getMaxScroll({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},getInitialPublish=function(e){var t=e.critical,r=e.scrollOptions,n=e.registry;Ue();var i,a,o,l,u,c,s,d=(i=react_beautiful_dnd_esm_getWindowScroll(),a=getMaxWindowScroll(),o=i.y,l=i.x,u=getDocumentElement(),c=u.clientWidth,s=u.clientHeight,{frame:M({top:o,left:l,right:l+c,bottom:o+s}),scroll:{initial:i,current:i,max:a,diff:{value:ne,displacement:ne}}}),p=d.scroll.current,f=t.droppable,g=n.droppable.getAllByType(f.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(p,r)})),v=n.draggable.getAllByType(t.draggable.type).map((function(e){return e.getDimension(p)})),m={draggables:me(v),droppables:ve(g)};return je(),{dimensions:m,critical:t,viewport:d}};function shouldPublishUpdate(e,t,r){return r.descriptor.id!==t.id&&(r.descriptor.type===t.type&&"virtual"===e.droppable.getById(r.descriptor.droppableId).descriptor.mode)}var _t,xt,createDimensionMarshal=function(e,t){var r=null,n=function createPublisher(e){var t=e.registry,r=e.callbacks,n={additions:{},removals:{},modified:{}},i=null,a=function collect(){i||(r.collectionStarting(),i=requestAnimationFrame((function(){i=null,Ue();var e=n,a=e.additions,o=e.removals,l=e.modified,u=Object.keys(a).map((function(e){return t.draggable.getById(e).getDimension(ne)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),c=Object.keys(l).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),s={additions:u,removals:Object.keys(o),modified:c};n={additions:{},removals:{},modified:{}},je(),r.publish(s)})))};return{add:function add(e){var t=e.descriptor.id;n.additions[t]=e,n.modified[e.descriptor.droppableId]=!0,n.removals[t]&&delete n.removals[t],a()},remove:function remove(e){var t=e.descriptor;n.removals[t.id]=!0,n.modified[t.droppableId]=!0,n.additions[t.id]&&delete n.additions[t.id],a()},stop:function stop(){i&&(cancelAnimationFrame(i),i=null,n={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),i=function subscriber(t){r||react_beautiful_dnd_esm_invariant(!1);var i=r.critical.draggable;"ADDITION"===t.type&&shouldPublishUpdate(e,i,t.value)&&n.add(t.value),"REMOVAL"===t.type&&shouldPublishUpdate(e,i,t.value)&&n.remove(t.value)},a={updateDroppableIsEnabled:function updateDroppableIsEnabled(n,i){e.droppable.exists(n)||react_beautiful_dnd_esm_invariant(!1),r&&t.updateDroppableIsEnabled({id:n,isEnabled:i})},updateDroppableIsCombineEnabled:function updateDroppableIsCombineEnabled(n,i){r&&(e.droppable.exists(n)||react_beautiful_dnd_esm_invariant(!1),t.updateDroppableIsCombineEnabled({id:n,isCombineEnabled:i}))},scrollDroppable:function scrollDroppable(t,n){r&&e.droppable.getById(t).callbacks.scroll(n)},updateDroppableScroll:function updateDroppableScroll(n,i){r&&(e.droppable.exists(n)||react_beautiful_dnd_esm_invariant(!1),t.updateDroppableScroll({id:n,newScroll:i}))},startPublishing:function startPublishing(t){r&&react_beautiful_dnd_esm_invariant(!1);var n=e.draggable.getById(t.draggableId),a=e.droppable.getById(n.descriptor.droppableId),o={draggable:n.descriptor,droppable:a.descriptor},l=e.subscribe(i);return r={critical:o,unsubscribe:l},getInitialPublish({critical:o,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function stopPublishing(){if(r){n.stop();var t=r.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),r.unsubscribe(),r=null}}};return a},canStartDrag=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason)},scrollWindow=function(e){window.scrollBy(e.x,e.y)},Dt=V((function(e){return be(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),getBestScrollableDroppable=function(e){var t=e.center,r=e.destination,n=e.droppables;if(r){var i=n[r];return i.frame?i:null}var a=function getScrollableDroppableOver(e,t){var r=find(Dt(t),(function(t){return t.frame||react_beautiful_dnd_esm_invariant(!1),isPositionInFrame(t.frame.pageMarginBox)(e)}));return r}(t,n);return a},It=.25,Et=.05,wt=28,St=function ease(e){return Math.pow(e,2)},Ct={stopDampeningAt:1200,accelerateAt:360},getPercentage=function(e){var t=e.startOfRange,r=e.endOfRange,n=e.current,i=r-t;return 0===i?0:(n-t)/i},Pt=Ct.accelerateAt,At=Ct.stopDampeningAt,getValue=function(e){var t=e.distanceToEdge,r=e.thresholds,n=e.dragStartTime,i=e.shouldUseTimeDampening,a=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return wt;if(e===t.startScrollingFrom)return 1;var r=getPercentage({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),n=wt*St(1-r);return Math.ceil(n)}(t,r);return 0===a?0:i?Math.max(function(e,t){var r=t,n=At,i=Date.now()-r;if(i>=At)return e;if(i<Pt)return 1;var a=getPercentage({startOfRange:Pt,endOfRange:n,current:i}),o=e*St(a);return Math.ceil(o)}(a,n),1):a},getScrollOnAxis=function(e){var t=e.container,r=e.distanceToEdges,n=e.dragStartTime,i=e.axis,a=e.shouldUseTimeDampening,o=function(e,t){return{startScrollingFrom:e[t.size]*It,maxScrollValueAt:e[t.size]*Et}}(t,i);return r[i.end]<r[i.start]?getValue({distanceToEdge:r[i.end],thresholds:o,dragStartTime:n,shouldUseTimeDampening:a}):-1*getValue({distanceToEdge:r[i.start],thresholds:o,dragStartTime:n,shouldUseTimeDampening:a})},Ot=de((function(e){return 0===e?0:e})),getScroll=function(e){var t=e.dragStartTime,r=e.container,n=e.subject,i=e.center,a=e.shouldUseTimeDampening,o={top:i.y-r.top,right:r.right-i.x,bottom:r.bottom-i.y,left:i.x-r.left},l=getScrollOnAxis({container:r,distanceToEdges:o,dragStartTime:t,axis:Ee,shouldUseTimeDampening:a}),u=getScrollOnAxis({container:r,distanceToEdges:o,dragStartTime:t,axis:we,shouldUseTimeDampening:a}),c=Ot({x:u,y:l});if(oe(c,ne))return null;var s=function(e){var t=e.container,r=e.subject,n=e.proposedScroll,i=r.height>t.height,a=r.width>t.width;return a||i?a&&i?null:{x:a?0:n.x,y:i?0:n.y}:n}({container:r,subject:n,proposedScroll:c});return s?oe(s,ne)?null:s:null},Rt=de((function(e){return 0===e?0:e>0?1:-1})),Bt=(_t=function getRemainder(e,t){return e<0?e:e>t?e-t:0},function(e){var t=e.current,r=e.max,n=e.change,i=ie(t,n),a={x:_t(i.x,r.x),y:_t(i.y,r.y)};return oe(a,ne)?null:a}),Nt=function canPartiallyScroll(e){var t=e.max,r=e.current,n=e.change,i={x:Math.max(r.x,t.x),y:Math.max(r.y,t.y)},a=Rt(n),o=Bt({max:i,current:r,change:a});return!o||(0!==a.x&&0===o.x||0!==a.y&&0===o.y)},Mt=function canScrollWindow(e,t){return Nt({current:e.scroll.current,max:e.scroll.max,change:t})},Tt=function canScrollDroppable(e,t){var r=e.frame;return!!r&&Nt({current:r.scroll.current,max:r.scroll.max,change:t})},scroll$1=function(e){var t=e.state,r=e.dragStartTime,n=e.shouldUseTimeDampening,i=e.scrollWindow,a=e.scrollDroppable,o=t.current.page.borderBoxCenter,l=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var u=function(e){var t=e.viewport,r=e.subject,n=e.center,i=e.dragStartTime,a=e.shouldUseTimeDampening,o=getScroll({dragStartTime:i,container:t.frame,subject:r,center:n,shouldUseTimeDampening:a});return o&&Mt(t,o)?o:null}({dragStartTime:r,viewport:t.viewport,subject:l,center:o,shouldUseTimeDampening:n});if(u)return void i(u)}var c=getBestScrollableDroppable({center:o,destination:whatIsDraggedOver(t.impact),droppables:t.dimensions.droppables});if(c){var s=function(e){var t=e.droppable,r=e.subject,n=e.center,i=e.dragStartTime,a=e.shouldUseTimeDampening,o=t.frame;if(!o)return null;var l=getScroll({dragStartTime:i,container:o.pageMarginBox,subject:r,center:n,shouldUseTimeDampening:a});return l&&Tt(t,l)?l:null}({dragStartTime:r,droppable:c,subject:l,center:o,shouldUseTimeDampening:n});s&&a(c.descriptor.id,s)}},createJumpScroller=function(e){var t=e.move,r=e.scrollDroppable,n=e.scrollWindow,i=function scrollDroppableAsMuchAsItCan(e,t){if(!Tt(e,t))return t;var n=function getDroppableOverlap(e,t){var r=e.frame;return r&&Tt(e,t)?Bt({current:r.scroll.current,max:r.scroll.max,change:t}):null}(e,t);if(!n)return r(e.descriptor.id,t),null;var i=ae(t,n);return r(e.descriptor.id,i),ae(t,i)},a=function scrollWindowAsMuchAsItCan(e,t,r){if(!e)return r;if(!Mt(t,r))return r;var i=function getWindowOverlap(e,t){if(!Mt(e,t))return null;var r=e.scroll.max,n=e.scroll.current;return Bt({current:n,max:r,change:t})}(t,r);if(!i)return n(r),null;var a=ae(r,i);return n(a),ae(r,a)};return function jumpScroller(e){var r=e.scrollJumpRequest;if(r){var n=whatIsDraggedOver(e.impact);n||react_beautiful_dnd_esm_invariant(!1);var o=i(e.dimensions.droppables[n],r);if(o){var l=e.viewport,u=a(e.isWindowScrollAllowed,l,o);u&&function moveByOffset(e,r){var n=ie(e.current.client.selection,r);t({client:n})}(e,u)}}}},createAutoScroller=function(e){var t=e.scrollDroppable,r=e.scrollWindow,n=e.move,i=function(e){var t=e.scrollWindow,r=e.scrollDroppable,n=z(t),i=z(r),a=null,o=function tryScroll(e){a||react_beautiful_dnd_esm_invariant(!1);var t=a,r=t.shouldUseTimeDampening,o=t.dragStartTime;scroll$1({state:e,scrollWindow:n,scrollDroppable:i,dragStartTime:o,shouldUseTimeDampening:r})};return{start:function start$1(e){Ue(),a&&react_beautiful_dnd_esm_invariant(!1);var t=Date.now(),r=!1,n=function fakeScrollCallback(){r=!0};scroll$1({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:n,scrollDroppable:n}),a={dragStartTime:t,shouldUseTimeDampening:r},je(),r&&o(e)},stop:function stop(){a&&(n.cancel(),i.cancel(),a=null)},scroll:o}}({scrollWindow:r,scrollDroppable:t}),a=createJumpScroller({move:n,scrollWindow:r,scrollDroppable:t});return{scroll:function scroll(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&a(e):i.scroll(e))},start:i.start,stop:i.stop}},Lt={base:xt="data-rbd-drag-handle",draggableId:xt+"-draggable-id",contextId:xt+"-context-id"},Gt=function(){var e="data-rbd-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Ft=function(){var e="data-rbd-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Wt={contextId:"data-rbd-scroll-container-context-id"},kt=function getStyles(e,t){return e.map((function(e){var r=e.styles[t];return r?e.selector+" { "+r+" }":""})).join(" ")},Ut="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect,jt=function getHead(){var e=document.querySelector("head");return e||react_beautiful_dnd_esm_invariant(!1),e},Ht=function createStyleEl(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function useStyleMarshal(e,t){var r=R((function(){return function(e){var t,r,n=function makeGetSelector(e){return function(t){return"["+t+'="'+e+'"]'}}(e),i=(t="\n cursor: -webkit-grab;\n cursor: grab;\n ",{selector:n(Lt.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:t,dragging:"pointer-events: none;",dropAnimating:t}}),a=[(r="\n transition: "+ct.outOfTheWay+";\n ",{selector:n(Gt.contextId),styles:{dragging:r,dropAnimating:r,userCancel:r}}),i,{selector:n(Ft.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:kt(a,"always"),resting:kt(a,"resting"),dragging:kt(a,"dragging"),dropAnimating:kt(a,"dropAnimating"),userCancel:kt(a,"userCancel")}}(e)}),[e]),i=(0,n.useRef)(null),a=(0,n.useRef)(null),o=B(V((function(e){var t=a.current;t||react_beautiful_dnd_esm_invariant(!1),t.textContent=e})),[]),l=B((function(e){var t=i.current;t||react_beautiful_dnd_esm_invariant(!1),t.textContent=e}),[]);Ut((function(){(i.current||a.current)&&react_beautiful_dnd_esm_invariant(!1);var n=Ht(t),u=Ht(t);return i.current=n,a.current=u,n.setAttribute("data-rbd-always",e),u.setAttribute("data-rbd-dynamic",e),jt().appendChild(n),jt().appendChild(u),l(r.always),o(r.resting),function(){var e=function remove(e){var t=e.current;t||react_beautiful_dnd_esm_invariant(!1),jt().removeChild(t),e.current=null};e(i),e(a)}}),[t,l,o,r.always,r.resting,e]);var u=B((function(){return o(r.dragging)}),[o,r.dragging]),c=B((function(e){o("DROP"!==e?r.userCancel:r.dropAnimating)}),[o,r.dropAnimating,r.userCancel]),s=B((function(){a.current&&o(r.resting)}),[o,r.resting]);return R((function(){return{dragging:u,dropping:c,resting:s}}),[u,c,s])}var getWindowFromEl=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function isHtmlElement(e){return e instanceof getWindowFromEl(e).HTMLElement}function findDragHandle(e,t){var r="["+Lt.contextId+'="'+e+'"]',n=toArray(document.querySelectorAll(r));if(!n.length)return null;var i=find(n,(function(e){return e.getAttribute(Lt.draggableId)===t}));return i&&isHtmlElement(i)?i:null}function createRegistry(){var e={draggables:{},droppables:{}},t=[];function notify(e){t.length&&t.forEach((function(t){return t(e)}))}function findDraggableById(t){return e.draggables[t]||null}function findDroppableById(t){return e.droppables[t]||null}return{draggable:{register:function register(t){e.draggables[t.descriptor.id]=t,notify({type:"ADDITION",value:t})},update:function update(t,r){var n=e.draggables[r.descriptor.id];n&&n.uniqueId===t.uniqueId&&(delete e.draggables[r.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function unregister(t){var r=t.descriptor.id,n=findDraggableById(r);n&&t.uniqueId===n.uniqueId&&(delete e.draggables[r],notify({type:"REMOVAL",value:t}))},getById:function getDraggableById(e){var t=findDraggableById(e);return t||react_beautiful_dnd_esm_invariant(!1),t},findById:findDraggableById,exists:function exists(e){return Boolean(findDraggableById(e))},getAllByType:function getAllByType(t){return values(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function register(t){e.droppables[t.descriptor.id]=t},unregister:function unregister(t){var r=findDroppableById(t.descriptor.id);r&&t.uniqueId===r.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function getDroppableById(e){var t=findDroppableById(e);return t||react_beautiful_dnd_esm_invariant(!1),t},findById:findDroppableById,exists:function exists(e){return Boolean(findDroppableById(e))},getAllByType:function getAllByType(t){return values(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function subscribe(e){return t.push(e),function unsubscribe(){var r=t.indexOf(e);-1!==r&&t.splice(r,1)}},clean:function clean(){e.draggables={},e.droppables={},t.length=0}}}var qt=i().createContext(null),getBodyElement=function(){var e=document.body;return e||react_beautiful_dnd_esm_invariant(!1),e},Vt={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};var zt=0,$t={separator:"::"};function useUniqueId(e,t){return void 0===t&&(t=$t),R((function(){return""+e+t.separator+zt++}),[t.separator,e])}var Kt=i().createContext(null);function useDev(e){0}function useDevSetupWarning(e,t){useDev()}function useStartupValidation(){useDevSetupWarning()}function usePrevious(e){var t=(0,n.useRef)(e);return(0,n.useEffect)((function(){t.current=e})),t}var Yt,Jt=((Yt={})[13]=!0,Yt[9]=!0,Yt),preventStandardKeyEvents=function(e){Jt[e.keyCode]&&e.preventDefault()},Xt=function(){var e="visibilitychange";return"undefined"==typeof document?e:find([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}();var Qt,Zt={type:"IDLE"};function getCaptureBindings(e){var t=e.cancel,r=e.completed,n=e.getPhase,i=e.setPhase;return[{eventName:"mousemove",fn:function fn(e){var t=e.button,r=e.clientX,a=e.clientY;if(0===t){var o={x:r,y:a},l=n();if("DRAGGING"===l.type)return e.preventDefault(),void l.actions.move(o);if("PENDING"!==l.type&&react_beautiful_dnd_esm_invariant(!1),function isSloppyClickThresholdExceeded(e,t){return Math.abs(t.x-e.x)>=5||Math.abs(t.y-e.y)>=5}(l.point,o)){e.preventDefault();var u=l.actions.fluidLift(o);i({type:"DRAGGING",actions:u})}}}},{eventName:"mouseup",fn:function fn(e){var i=n();"DRAGGING"===i.type?(e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),r()):t()}},{eventName:"mousedown",fn:function fn(e){"DRAGGING"===n().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function fn(e){if("PENDING"!==n().type)return 27===e.keyCode?(e.preventDefault(),void t()):void preventStandardKeyEvents(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function fn(){"PENDING"===n().type&&t()}},{eventName:"webkitmouseforcedown",fn:function fn(e){var r=n();"IDLE"===r.type&&react_beautiful_dnd_esm_invariant(!1),r.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:Xt,fn:t}]}function noop$1(){}var er=((Qt={})[34]=!0,Qt[33]=!0,Qt[36]=!0,Qt[35]=!0,Qt);function getDraggingBindings(e,t){function cancel(){t(),e.cancel()}return[{eventName:"keydown",fn:function fn(r){return 27===r.keyCode?(r.preventDefault(),void cancel()):32===r.keyCode?(r.preventDefault(),void function drop(){t(),e.drop()}()):40===r.keyCode?(r.preventDefault(),void e.moveDown()):38===r.keyCode?(r.preventDefault(),void e.moveUp()):39===r.keyCode?(r.preventDefault(),void e.moveRight()):37===r.keyCode?(r.preventDefault(),void e.moveLeft()):void(er[r.keyCode]?r.preventDefault():preventStandardKeyEvents(r))}},{eventName:"mousedown",fn:cancel},{eventName:"mouseup",fn:cancel},{eventName:"click",fn:cancel},{eventName:"touchstart",fn:cancel},{eventName:"resize",fn:cancel},{eventName:"wheel",fn:cancel,options:{passive:!0}},{eventName:Xt,fn:cancel}]}var tr={type:"IDLE"};var rr={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function isAnInteractiveElement(e,t){if(null==t)return!1;if(Boolean(rr[t.tagName.toLowerCase()]))return!0;var r=t.getAttribute("contenteditable");return"true"===r||""===r||t!==e&&isAnInteractiveElement(e,t.parentElement)}function isEventInInteractiveElement(e,t){var r=t.target;return!!isHtmlElement(r)&&isAnInteractiveElement(e,r)}var getBorderBoxCenterPosition=function(e){return M(e.getBoundingClientRect()).center};var nr=function(){var e="matches";return"undefined"==typeof document?e:find([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function closestPonyfill(e,t){return null==e?null:e[nr](t)?e:closestPonyfill(e.parentElement,t)}function closest$1(e,t){return e.closest?e.closest(t):closestPonyfill(e,t)}function findClosestDragHandleFromEvent(e,t){var r=t.target;if(!function isElement(e){return e instanceof getWindowFromEl(e).Element}(r))return null;var n=function getSelector(e){return"["+Lt.contextId+'="'+e+'"]'}(e),i=closest$1(r,n);return i&&isHtmlElement(i)?i:null}function preventDefault(e){e.preventDefault()}function _isActive(e){var t=e.expected,r=e.phase,n=e.isLockActive;e.shouldWarn;return!!n()&&t===r}function canStart(e){var t=e.lockAPI,r=e.store,n=e.registry,i=e.draggableId;if(t.isClaimed())return!1;var a=n.draggable.findById(i);return!!a&&(!!a.options.isEnabled&&!!canStartDrag(r.getState(),i))}function tryStart(e){var t=e.lockAPI,r=e.contextId,n=e.store,i=e.registry,a=e.draggableId,o=e.forceSensorStop,l=e.sourceEvent;if(!canStart({lockAPI:t,store:n,registry:i,draggableId:a}))return null;var u=i.draggable.getById(a),c=function findDraggable(e,t){var r="["+Gt.contextId+'="'+e+'"]',n=find(toArray(document.querySelectorAll(r)),(function(e){return e.getAttribute(Gt.id)===t}));return n&&isHtmlElement(n)?n:null}(r,u.descriptor.id);if(!c)return null;if(l&&!u.options.canDragInteractiveElements&&isEventInInteractiveElement(c,l))return null;var s=t.claim(o||noop),d="PRE_DRAG";function getShouldRespectForcePress(){return u.options.shouldRespectForcePress}function isLockActive(){return t.isActive(s)}var p=function tryDispatch(e,t){_isActive({expected:e,phase:d,isLockActive,shouldWarn:!0})&&n.dispatch(t())}.bind(null,"DRAGGING");function lift$1(e){function completed(){t.release(),d="COMPLETED"}function finish(t,r){if(void 0===r&&(r={shouldBlockNextClick:!1}),e.cleanup(),r.shouldBlockNextClick){var i=bindEvents(window,[{eventName:"click",fn:preventDefault,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(i)}completed(),n.dispatch(nt({reason:t}))}return"PRE_DRAG"!==d&&(completed(),"PRE_DRAG"!==d&&react_beautiful_dnd_esm_invariant(!1)),n.dispatch(function lift(e){return{type:"LIFT",payload:e}}(e.liftActionArgs)),d="DRAGGING",_extends({isActive:function isActive(){return _isActive({expected:"DRAGGING",phase:d,isLockActive,shouldWarn:!1})},shouldRespectForcePress:getShouldRespectForcePress,drop:function drop(e){return finish("DROP",e)},cancel:function cancel(e){return finish("CANCEL",e)}},e.actions)}return{isActive:function isActive(){return _isActive({expected:"PRE_DRAG",phase:d,isLockActive,shouldWarn:!1})},shouldRespectForcePress:getShouldRespectForcePress,fluidLift:function fluidLift(e){var t=z((function(e){p((function(){return Xe({client:e})}))}));return _extends({},lift$1({liftActionArgs:{id:a,clientSelection:e,movementMode:"FLUID"},cleanup:function cleanup(){return t.cancel()},actions:{move:t}}),{move:t})},snapLift:function snapLift(){var e={moveUp:function moveUp$1(){return p(Qe)},moveRight:function moveRight$1(){return p(et)},moveDown:function moveDown$1(){return p(Ze)},moveLeft:function moveLeft$1(){return p(tt)}};return lift$1({liftActionArgs:{id:a,clientSelection:getBorderBoxCenterPosition(c),movementMode:"SNAP"},cleanup:noop,actions:e})},abort:function abortPreDrag(){_isActive({expected:"PRE_DRAG",phase:d,isLockActive,shouldWarn:!0})&&t.release()}}}var ir=[function useMouseSensor(e){var t=(0,n.useRef)(Zt),r=(0,n.useRef)(noop),i=R((function(){return{eventName:"mousedown",fn:function onMouseDown(t){if(!t.defaultPrevented&&0===t.button&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var n=e.findClosestDraggableId(t);if(n){var i=e.tryGetLock(n,l,{sourceEvent:t});if(i){t.preventDefault();var a={x:t.clientX,y:t.clientY};r.current(),s(i,a)}}}}}}),[e]),a=R((function(){return{eventName:"webkitmouseforcewillbegin",fn:function fn(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var n=e.findOptionsForDraggable(r);n&&(n.shouldRespectForcePress||e.canGetLock(r)&&t.preventDefault())}}}}}),[e]),o=B((function listenForCapture(){r.current=bindEvents(window,[a,i],{passive:!1,capture:!0})}),[a,i]),l=B((function(){"IDLE"!==t.current.type&&(t.current=Zt,r.current(),o())}),[o]),u=B((function(){var e=t.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),c=B((function bindCapturingEvents(){var e=getCaptureBindings({cancel:u,completed:l,getPhase:function getPhase(){return t.current},setPhase:function setPhase(e){t.current=e}});r.current=bindEvents(window,e,{capture:!0,passive:!1})}),[u,l]),s=B((function startPendingDrag(e,r){"IDLE"!==t.current.type&&react_beautiful_dnd_esm_invariant(!1),t.current={type:"PENDING",point:r,actions:e},c()}),[c]);Ut((function mount(){return o(),function unmount(){r.current()}}),[o])},function useKeyboardSensor(e){var t=(0,n.useRef)(noop$1),r=R((function(){return{eventName:"keydown",fn:function onKeyDown(r){if(!r.defaultPrevented&&32===r.keyCode){var n=e.findClosestDraggableId(r);if(n){var a=e.tryGetLock(n,stop,{sourceEvent:r});if(a){r.preventDefault();var o=!0,l=a.snapLift();t.current(),t.current=bindEvents(window,getDraggingBindings(l,stop),{capture:!0,passive:!1})}}}function stop(){o||react_beautiful_dnd_esm_invariant(!1),o=!1,t.current(),i()}}}}),[e]),i=B((function tryStartCapture(){t.current=bindEvents(window,[r],{passive:!1,capture:!0})}),[r]);Ut((function mount(){return i(),function unmount(){t.current()}}),[i])},function useTouchSensor(e){var t=(0,n.useRef)(tr),r=(0,n.useRef)(noop),i=B((function getPhase(){return t.current}),[]),a=B((function setPhase(e){t.current=e}),[]),o=R((function(){return{eventName:"touchstart",fn:function onTouchStart(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var i=e.tryGetLock(n,u,{sourceEvent:t});if(i){var a=t.touches[0],o={x:a.clientX,y:a.clientY};r.current(),p(i,o)}}}}}}),[e]),l=B((function listenForCapture(){r.current=bindEvents(window,[o],{capture:!0,passive:!1})}),[o]),u=B((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),a(tr),r.current(),l())}),[l,a]),c=B((function(){var e=t.current;u(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[u]),s=B((function bindCapturingEvents(){var e={capture:!0,passive:!1},t={cancel:c,completed:u,getPhase:i},n=bindEvents(window,function getHandleBindings(e){var t=e.cancel,r=e.completed,n=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function fn(e){var r=n();if("DRAGGING"===r.type){r.hasMoved=!0;var i=e.touches[0],a={x:i.clientX,y:i.clientY};e.preventDefault(),r.actions.move(a)}else t()}},{eventName:"touchend",fn:function fn(e){var i=n();"DRAGGING"===i.type?(e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),r()):t()}},{eventName:"touchcancel",fn:function fn(e){"DRAGGING"===n().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function fn(e){var r=n();"IDLE"===r.type&&react_beautiful_dnd_esm_invariant(!1);var i=e.touches[0];if(i&&i.force>=.15){var a=r.actions.shouldRespectForcePress();if("PENDING"!==r.type)return a?r.hasMoved?void e.preventDefault():void t():void e.preventDefault();a&&t()}}},{eventName:Xt,fn:t}]}(t),e),a=bindEvents(window,function getWindowBindings(e){var t=e.cancel,r=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function fn(e){e.preventDefault()}},{eventName:"keydown",fn:function fn(e){"DRAGGING"===r().type?(27===e.keyCode&&e.preventDefault(),t()):t()}},{eventName:Xt,fn:t}]}(t),e);r.current=function unbindAll(){n(),a()}}),[c,i,u]),d=B((function startDragging(){var e=i();"PENDING"!==e.type&&react_beautiful_dnd_esm_invariant(!1);var t=e.actions.fluidLift(e.point);a({type:"DRAGGING",actions:t,hasMoved:!1})}),[i,a]),p=B((function startPendingDrag(e,t){"IDLE"!==i().type&&react_beautiful_dnd_esm_invariant(!1);var r=setTimeout(d,120);a({type:"PENDING",point:t,actions:e,longPressTimerId:r}),s()}),[s,i,a,d]);Ut((function mount(){return l(),function unmount(){r.current();var e=i();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),a(tr))}}),[i,l,a]),Ut((function webkitHack(){return bindEvents(window,[{eventName:"touchmove",fn:function fn(){},options:{capture:!1,passive:!1}}])}),[])}];function useSensorMarshal(e){var t=e.contextId,r=e.store,i=e.registry,a=e.customSensors,o=e.enableDefaultSensors,l=[].concat(o?ir:[],a||[]),u=(0,n.useState)((function(){return function create(){var e=null;function release(){e||react_beautiful_dnd_esm_invariant(!1),e=null}return{isClaimed:function isClaimed(){return Boolean(e)},isActive:function isActive(t){return t===e},claim:function claim(t){e&&react_beautiful_dnd_esm_invariant(!1);var r={abandon:t};return e=r,r},release,tryAbandon:function tryAbandon(){e&&(e.abandon(),release())}}}()}))[0],c=B((function tryAbandonLock(e,t){e.isDragging&&!t.isDragging&&u.tryAbandon()}),[u]);Ut((function listenToStore(){var e=r.getState();return r.subscribe((function(){var t=r.getState();c(e,t),e=t}))}),[u,r,c]),Ut((function(){return u.tryAbandon}),[u.tryAbandon]);var s=B((function(e){return canStart({lockAPI:u,registry:i,store:r,draggableId:e})}),[u,i,r]),d=B((function(e,n,a){return tryStart({lockAPI:u,registry:i,contextId:t,store:r,draggableId:e,forceSensorStop:n,sourceEvent:a&&a.sourceEvent?a.sourceEvent:null})}),[t,u,i,r]),p=B((function(e){return function tryGetClosestDraggableIdFromEvent(e,t){var r=findClosestDragHandleFromEvent(e,t);return r?r.getAttribute(Lt.draggableId):null}(t,e)}),[t]),f=B((function(e){var t=i.draggable.findById(e);return t?t.options:null}),[i.draggable]),g=B((function tryReleaseLock(){u.isClaimed()&&(u.tryAbandon(),"IDLE"!==r.getState().phase&&r.dispatch({type:"FLUSH",payload:null}))}),[u,r]),v=B(u.isClaimed,[u]),m=R((function(){return{canGetLock:s,tryGetLock:d,findClosestDraggableId:p,findOptionsForDraggable:f,tryReleaseLock:g,isLockClaimed:v}}),[s,d,p,f,g,v]);!function useValidateSensorHooks(e){useDev()}();for(var b=0;b<l.length;b++)l[b](m)}function getStore(e){return e.current||react_beautiful_dnd_esm_invariant(!1),e.current}function App(e){var t=e.contextId,r=e.setCallbacks,a=e.sensors,o=e.nonce,l=e.dragHandleUsageInstructions,u=(0,n.useRef)(null);useStartupValidation();var c=usePrevious(e),s=B((function(){return function createResponders(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}}(c.current)}),[c]),d=function useAnnouncer(e){var t=R((function(){return function getId(e){return"rbd-announcement-"+e}(e)}),[e]),r=(0,n.useRef)(null);return(0,n.useEffect)((function setup(){var e=document.createElement("div");return r.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),_extends(e.style,Vt),getBodyElement().appendChild(e),function cleanup(){setTimeout((function remove(){var t=getBodyElement();t.contains(e)&&t.removeChild(e),e===r.current&&(r.current=null)}))}}),[t]),B((function(e){var t=r.current;t&&(t.textContent=e)}),[])}(t),p=function useHiddenTextElement(e){var t=e.contextId,r=e.text,i=useUniqueId("hidden-text",{separator:"-"}),a=R((function(){return function getElementId(e){return"rbd-hidden-text-"+e.contextId+"-"+e.uniqueId}({contextId:t,uniqueId:i})}),[i,t]);return(0,n.useEffect)((function mount(){var e=document.createElement("div");return e.id=a,e.textContent=r,e.style.display="none",getBodyElement().appendChild(e),function unmount(){var t=getBodyElement();t.contains(e)&&t.removeChild(e)}}),[a,r]),a}({contextId:t,text:l}),g=useStyleMarshal(t,o),v=B((function(e){getStore(u).dispatch(e)}),[]),m=R((function(){return bindActionCreators({publishWhileDragging:ze,updateDroppableScroll:Ke,updateDroppableIsEnabled:Ye,updateDroppableIsCombineEnabled:Je,collectionStarting:$e},v)}),[v]),b=function useRegistry(){var e=R(createRegistry,[]);return(0,n.useEffect)((function(){return function unmount(){requestAnimationFrame(e.clean)}}),[e]),e}(),h=R((function(){return createDimensionMarshal(b,m)}),[b,m]),_=R((function(){return createAutoScroller(_extends({scrollWindow,scrollDroppable:h.scrollDroppable},bindActionCreators({move:Xe},v)))}),[h.scrollDroppable,v]),x=function useFocusMarshal(e){var t=(0,n.useRef)({}),r=(0,n.useRef)(null),i=(0,n.useRef)(null),a=(0,n.useRef)(!1),o=B((function register(e,r){var n={id:e,focus:r};return t.current[e]=n,function unregister(){var r=t.current;r[e]!==n&&delete r[e]}}),[]),l=B((function tryGiveFocus(t){var r=findDragHandle(e,t);r&&r!==document.activeElement&&r.focus()}),[e]),u=B((function tryShiftRecord(e,t){r.current===e&&(r.current=t)}),[]),c=B((function tryRestoreFocusRecorded(){i.current||a.current&&(i.current=requestAnimationFrame((function(){i.current=null;var e=r.current;e&&l(e)})))}),[l]),s=B((function tryRecordFocus(e){r.current=null;var t=document.activeElement;t&&t.getAttribute(Lt.draggableId)===e&&(r.current=e)}),[]);return Ut((function(){return a.current=!0,function clearFrameOnUnmount(){a.current=!1;var e=i.current;e&&cancelAnimationFrame(e)}}),[]),R((function(){return{register:o,tryRecordFocus:s,tryRestoreFocusRecorded:c,tryShiftRecord:u}}),[o,s,c,u])}(t),D=R((function(){return react_beautiful_dnd_esm_createStore({announce:d,autoScroller:_,dimensionMarshal:h,focusMarshal:x,getResponders:s,styleMarshal:g})}),[d,_,h,x,s,g]);u.current=D;var I=B((function(){var e=getStore(u);"IDLE"!==e.getState().phase&&e.dispatch({type:"FLUSH",payload:null})}),[]),E=B((function(){var e=getStore(u).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);r(R((function(){return{isDragging:E,tryAbort:I}}),[E,I]));var w=B((function(e){return canStartDrag(getStore(u).getState(),e)}),[]),S=B((function(){return isMovementAllowed(getStore(u).getState())}),[]),C=R((function(){return{marshal:h,focus:x,contextId:t,canLift:w,isMovementAllowed:S,dragHandleUsageInstructionsId:p,registry:b}}),[t,h,p,x,w,S,b]);return useSensorMarshal({contextId:t,store:D,registry:b,customSensors:a,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,n.useEffect)((function(){return I}),[I]),i().createElement(Kt.Provider,{value:C},i().createElement(f,{context:qt,store:D},e.children))}var ar=0;function DragDropContext(e){var t=function useInstanceCount(){return R((function(){return""+ar++}),[])}(),r=e.dragHandleUsageInstructions||Z;return i().createElement(K,null,(function(n){return i().createElement(App,{nonce:e.nonce,contextId:t,setCallbacks:n,dragHandleUsageInstructions:r,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)}))}var or=function isEqual(e){return function(t){return e===t}},lr=or("scroll"),ur=or("auto"),cr=(or("visible"),function isEither(e,t){return t(e.overflowX)||t(e.overflowY)}),sr=function isElementScrollable(e){var t=window.getComputedStyle(e),r={overflowX:t.overflowX,overflowY:t.overflowY};return cr(r,lr)||cr(r,ur)},dr=function getClosestScrollable(e){return null==e||e===document.body||e===document.documentElement?null:sr(e)?e:getClosestScrollable(e.parentElement)},getScroll$1=function(e){return{x:e.scrollLeft,y:e.scrollTop}},pr=function getIsFixed(e){return!!e&&("fixed"===window.getComputedStyle(e).position||getIsFixed(e.parentElement))},getEnv=function(e){return{closestScrollable:dr(e),isFixedOnPage:pr(e)}},getDimension=function(e){var t=e.ref,r=e.descriptor,n=e.env,i=e.windowScroll,a=e.direction,o=e.isDropDisabled,l=e.isCombineEnabled,u=e.shouldClipSubject,c=n.closestScrollable,s=function getClient(e,t){var r=H(e);if(!t)return r;if(e!==t)return r;var n=r.paddingBox.top-t.scrollTop,i=r.paddingBox.left-t.scrollLeft,a=n+t.scrollHeight,o=i+t.scrollWidth,l=T({top:n,right:o,bottom:a,left:i},r.border);return F({borderBox:l,margin:r.margin,border:r.border,padding:r.padding})}(t,c),d=U(s,i),p=function(){if(!c)return null;var e=H(c),t={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:e,page:U(e,i),scroll:getScroll$1(c),scrollSize:t,shouldClipSubject:u}}(),f=function(e){var t=e.descriptor,r=e.isEnabled,n=e.isCombineEnabled,i=e.isFixedOnPage,a=e.direction,o=e.client,l=e.page,u=e.closest,c=function(){if(!u)return null;var e=u.scrollSize,t=u.client,r=getMaxScroll({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:u.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:u.shouldClipSubject,scroll:{initial:u.scroll,current:u.scroll,max:r,diff:{value:ne,displacement:ne}}}}(),s="vertical"===a?Ee:we;return{descriptor:t,isCombineEnabled:n,isFixedOnPage:i,axis:s,isEnabled:r,client:o,page:l,frame:c,subject:getSubject({page:l,withPlaceholder:null,axis:s,frame:c})}}({descriptor:r,isEnabled:!o,isCombineEnabled:l,isFixedOnPage:n.isFixedOnPage,direction:a,client:s,page:d,closest:p});return f},fr={passive:!1},gr={passive:!0},getListenerOptions=function(e){return e.shouldPublishImmediately?fr:gr};function useRequiredContext(e){var t=(0,n.useContext)(e);return t||react_beautiful_dnd_esm_invariant(!1),t}var vr=function getClosestScrollableFromDrag(e){return e&&e.env.closestScrollable||null};function noop$2(){}var mr={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},br=function getStyle(e){var t=e.isAnimatingOpenOnMount,r=e.placeholder,n=e.animate,i=function getSize(e){var t=e.isAnimatingOpenOnMount,r=e.placeholder,n=e.animate;return t||"close"===n?mr:{height:r.client.borderBox.height,width:r.client.borderBox.width,margin:r.client.margin}}({isAnimatingOpenOnMount:t,placeholder:r,animate:n});return{display:r.display,boxSizing:"border-box",width:i.width,height:i.height,marginTop:i.margin.top,marginRight:i.margin.right,marginBottom:i.margin.bottom,marginLeft:i.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==n?ct.placeholder:null}};var hr=i().memo((function Placeholder(e){var t=(0,n.useRef)(null),r=B((function(){t.current&&(clearTimeout(t.current),t.current=null)}),[]),a=e.animate,o=e.onTransitionEnd,l=e.onClose,u=e.contextId,c=(0,n.useState)("open"===e.animate),s=c[0],d=c[1];(0,n.useEffect)((function(){return s?"open"!==a?(r(),d(!1),noop$2):t.current?noop$2:(t.current=setTimeout((function(){t.current=null,d(!1)})),r):noop$2}),[a,s,r]);var p=B((function(e){"height"===e.propertyName&&(o(),"close"===a&&l())}),[a,l,o]),f=br({isAnimatingOpenOnMount:s,animate:e.animate,placeholder:e.placeholder});return i().createElement(e.placeholder.tagName,{style:f,"data-rbd-placeholder-context-id":u,onTransitionEnd:p,ref:e.innerRef})})),yr=i().createContext(null);var _r=function(e){function AnimateInOut(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(t=e.call.apply(e,[this].concat(n))||this).state={isVisible:Boolean(t.props.on),data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){"close"===t.state.animate&&t.setState({isVisible:!1})},t}return _inheritsLoose(AnimateInOut,e),AnimateInOut.getDerivedStateFromProps=function getDerivedStateFromProps(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},AnimateInOut.prototype.render=function render(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},AnimateInOut}(i().PureComponent),xr=5e3,Dr=4500,Ir=function getDraggingTransition(e,t){return t?ct.drop(t.duration):e?ct.snap:ct.fluid},Er=function getDraggingOpacity(e,t){return e?t?ot.drop:ot.combining:null};function getStyle$1(e){return"DRAGGING"===e.type?function getDraggingStyle(e){var t=e.dimension.client,r=e.offset,n=e.combineWith,i=e.dropping,a=Boolean(n),o=function getShouldDraggingAnimate(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode}(e),l=Boolean(i),u=l?pt(r,a):dt(r);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:Ir(o,i),transform:u,opacity:Er(a,l),zIndex:l?Dr:xr,pointerEvents:"none"}}(e):function getSecondaryStyle(e){return{transform:dt(e.offset),transition:e.shouldAnimateDisplacement?null:"none"}}(e)}function useDraggablePublisher(e){var t=useUniqueId("draggable"),r=e.descriptor,i=e.registry,a=e.getDraggableRef,o=e.canDragInteractiveElements,l=e.shouldRespectForcePress,u=e.isEnabled,c=R((function(){return{canDragInteractiveElements:o,shouldRespectForcePress:l,isEnabled:u}}),[o,u,l]),s=B((function(e){var t=a();return t||react_beautiful_dnd_esm_invariant(!1),function getDimension$1(e,t,r){void 0===r&&(r=ne);var n=window.getComputedStyle(t),i=t.getBoundingClientRect(),a=j(i,n),o=U(a,r);return{descriptor:e,placeholder:{client:a,tagName:t.tagName.toLowerCase(),display:n.display},displaceBy:{x:a.marginBox.width,y:a.marginBox.height},client:a,page:o}}(r,t,e)}),[r,a]),d=R((function(){return{uniqueId:t,descriptor:r,options:c,getDimension:s}}),[r,s,c,t]),p=(0,n.useRef)(d),f=(0,n.useRef)(!0);Ut((function(){return i.draggable.register(p.current),function(){return i.draggable.unregister(p.current)}}),[i.draggable]),Ut((function(){if(f.current)f.current=!1;else{var e=p.current;p.current=d,i.draggable.update(d,e)}}),[d,i.draggable])}function useValidation$1(e,t,r){useDevSetupWarning()}function preventHtml5Dnd(e){e.preventDefault()}var isStrictEqual=function(e,t){return e===t},whatIsDraggedOverFromResult=function(e){var t=e.combine,r=e.destination;return r?r.droppableId:t?t.droppableId:null};function getSecondarySnapshot(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var wr={mapped:{type:"SECONDARY",offset:ne,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:getSecondarySnapshot(null)}};var Sr=P((function makeMapStateToProps(){var e=function getDraggableSelector(){var e=V((function(e,t){return{x:e,y:t}})),t=V((function(e,t,r,n,i){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(i),dropAnimation:i,mode:e,draggingOver:r,combineWith:n,combineTargetFor:null}})),r=V((function(e,r,n,i,a,o,l){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:a,combineWith:o,mode:r,offset:e,dimension:n,forceShouldAnimate:l,snapshot:t(r,i,a,o,null)}}}));return function selector(n,i){if(n.isDragging){if(n.critical.draggable.id!==i.draggableId)return null;var a=n.current.client.offset,o=n.dimensions.draggables[i.draggableId],l=whatIsDraggedOver(n.impact),u=function getCombineWithFromImpact(e){return e.at&&"COMBINE"===e.at.type?e.at.combine.draggableId:null}(n.impact),c=n.forceShouldAnimate;return r(e(a.x,a.y),n.movementMode,o,i.isClone,l,u,c)}if("DROP_ANIMATING"===n.phase){var s=n.completed;if(s.result.draggableId!==i.draggableId)return null;var d=i.isClone,p=n.dimensions.draggables[i.draggableId],f=s.result,g=f.mode,v=whatIsDraggedOverFromResult(f),m=function getCombineWithFromResult(e){return e.combine?e.combine.draggableId:null}(f),b={duration:n.dropDuration,curve:at,moveTo:n.newHomeClientOffset,opacity:m?ot.drop:null,scale:m?lt.drop:null};return{mapped:{type:"DRAGGING",offset:n.newHomeClientOffset,dimension:p,dropping:b,draggingOver:v,combineWith:m,mode:g,forceShouldAnimate:null,snapshot:t(g,d,v,m,b)}}}return null}}(),t=function getSecondarySelector(){var e=V((function(e,t){return{x:e,y:t}})),t=V(getSecondarySnapshot),r=V((function(e,r,n){return void 0===r&&(r=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:r,shouldAnimateDisplacement:n,snapshot:t(r)}}})),n=function getFallback(e){return e?r(ne,e,!0):null},i=function getProps(t,i,a,o){var l=a.displaced.visible[t],u=Boolean(o.inVirtualList&&o.effected[t]),c=tryGetCombine(a),s=c&&c.draggableId===t?i:null;if(!l){if(!u)return n(s);if(a.displaced.invisible[t])return null;var d=le(o.displacedBy.point),p=e(d.x,d.y);return r(p,s,!0)}if(u)return n(s);var f=a.displacedBy.point,g=e(f.x,f.y);return r(g,s,l.shouldAnimate)};return function selector(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:i(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var r=e.completed;return r.result.draggableId===t.draggableId?null:i(t.draggableId,r.result.draggableId,r.impact,r.afterCritical)}return null}}();return function selector(r,n){return e(r,n)||t(r,n)||wr}}),{dropAnimationFinished:it},null,{context:qt,pure:!0,areStatePropsEqual:isStrictEqual})((function Draggable(e){var t=(0,n.useRef)(null),r=B((function(e){t.current=e}),[]),i=B((function(){return t.current}),[]),a=useRequiredContext(Kt),o=a.contextId,l=a.dragHandleUsageInstructionsId,u=a.registry,c=useRequiredContext(yr),s=c.type,d=c.droppableId,p=R((function(){return{id:e.draggableId,index:e.index,type:s,droppableId:d}}),[e.draggableId,e.index,s,d]),f=e.children,g=e.draggableId,v=e.isEnabled,m=e.shouldRespectForcePress,b=e.canDragInteractiveElements,h=e.isClone,_=e.mapped,x=e.dropAnimationFinished;useValidation$1(),function useClonePropValidation(e){useDev()}(),h||useDraggablePublisher(R((function(){return{descriptor:p,registry:u,getDraggableRef:i,canDragInteractiveElements:b,shouldRespectForcePress:m,isEnabled:v}}),[p,u,i,b,m,v]));var D=R((function(){return v?{tabIndex:0,role:"button","aria-describedby":l,"data-rbd-drag-handle-draggable-id":g,"data-rbd-drag-handle-context-id":o,draggable:!1,onDragStart:preventHtml5Dnd}:null}),[o,l,g,v]),I=B((function(e){"DRAGGING"===_.type&&_.dropping&&"transform"===e.propertyName&&x()}),[x,_]),E=R((function(){var e=getStyle$1(_),t="DRAGGING"===_.type&&_.dropping?I:null;return{innerRef:r,draggableProps:{"data-rbd-draggable-context-id":o,"data-rbd-draggable-id":g,style:e,onTransitionEnd:t},dragHandleProps:D}}),[o,D,g,_,I,r]),w=R((function(){return{draggableId:p.id,type:p.type,source:{index:p.index,droppableId:p.droppableId}}}),[p.droppableId,p.id,p.index,p.type]);return f(E,_.snapshot,w)}));function PrivateDraggable(e){return useRequiredContext(yr).isUsingCloneFor!==e.draggableId||e.isClone?i().createElement(Sr,e):null}function PublicDraggable(e){var t="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,r=Boolean(e.disableInteractiveElementBlocking),n=Boolean(e.shouldRespectForcePress);return i().createElement(PrivateDraggable,_extends({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:n}))}var Cr=function isMatchingType(e,t){return e===t.droppable.type},Pr=function getDraggable(e,t){return t.draggables[e.draggable.id]};var Ar={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function getBody(){return document.body||react_beautiful_dnd_esm_invariant(!1),document.body}},Or=P((function makeMapStateToProps(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=_extends({},e,{shouldAnimatePlaceholder:!1}),r=V((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),n=V((function(n,i,a,o,l,u){var c=l.descriptor.id;if(l.descriptor.droppableId===n){var s=u?{render:u,dragging:r(l.descriptor)}:null,d={isDraggingOver:a,draggingOverWith:a?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!1,snapshot:d,useClone:s}}if(!i)return t;if(!o)return e;var p={isDraggingOver:a,draggingOverWith:c,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!0,snapshot:p,useClone:null}}));return function selector(r,i){var a=i.droppableId,o=i.type,l=!i.isDropDisabled,u=i.renderClone;if(r.isDragging){var c=r.critical;if(!Cr(o,c))return t;var s=Pr(c,r.dimensions),d=whatIsDraggedOver(r.impact)===a;return n(a,l,d,d,s,u)}if("DROP_ANIMATING"===r.phase){var p=r.completed;if(!Cr(o,p.critical))return t;var f=Pr(p.critical,r.dimensions);return n(a,l,whatIsDraggedOverFromResult(p.result)===a,whatIsDraggedOver(p.impact)===a,f,u)}if("IDLE"===r.phase&&r.completed&&!r.shouldFlush){var g=r.completed;if(!Cr(o,g.critical))return t;var v=whatIsDraggedOver(g.impact)===a,m=Boolean(g.impact.at&&"COMBINE"===g.impact.at.type),b=g.critical.droppable.id===a;return v?m?e:t:b?e:t}return t}}),{updateViewportMaxScroll:function updateViewportMaxScroll(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{context:qt,pure:!0,areStatePropsEqual:isStrictEqual})((function Droppable(e){var t=(0,n.useContext)(Kt);t||react_beautiful_dnd_esm_invariant(!1);var r=t.contextId,a=t.isMovementAllowed,o=(0,n.useRef)(null),l=(0,n.useRef)(null),u=e.children,c=e.droppableId,s=e.type,d=e.mode,p=e.direction,f=e.ignoreContainerClipping,g=e.isDropDisabled,v=e.isCombineEnabled,m=e.snapshot,b=e.useClone,h=e.updateViewportMaxScroll,_=e.getContainerForClone,x=B((function(){return o.current}),[]),D=B((function(e){o.current=e}),[]),I=(B((function(){return l.current}),[]),B((function(e){l.current=e}),[]));!function useValidation(e){useDevSetupWarning()}();var E=B((function(){a()&&h({maxScroll:getMaxWindowScroll()})}),[a,h]);!function useDroppablePublisher(e){var t=(0,n.useRef)(null),r=useRequiredContext(Kt),i=useUniqueId("droppable"),a=r.registry,o=r.marshal,l=usePrevious(e),u=R((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),c=(0,n.useRef)(u),s=R((function(){return V((function(e,r){t.current||react_beautiful_dnd_esm_invariant(!1);var n={x:e,y:r};o.updateDroppableScroll(u.id,n)}))}),[u.id,o]),d=B((function(){var e=t.current;return e&&e.env.closestScrollable?getScroll$1(e.env.closestScrollable):ne}),[]),p=B((function(){var e=d();s(e.x,e.y)}),[d,s]),f=R((function(){return z(p)}),[p]),g=B((function(){var e=t.current,r=vr(e);e&&r||react_beautiful_dnd_esm_invariant(!1),e.scrollOptions.shouldPublishImmediately?p():f()}),[f,p]),v=B((function(e,n){t.current&&react_beautiful_dnd_esm_invariant(!1);var i=l.current,a=i.getDroppableRef();a||react_beautiful_dnd_esm_invariant(!1);var o=getEnv(a),c={ref:a,descriptor:u,env:o,scrollOptions:n};t.current=c;var s=getDimension({ref:a,descriptor:u,env:o,windowScroll:e,direction:i.direction,isDropDisabled:i.isDropDisabled,isCombineEnabled:i.isCombineEnabled,shouldClipSubject:!i.ignoreContainerClipping}),d=o.closestScrollable;return d&&(d.setAttribute(Wt.contextId,r.contextId),d.addEventListener("scroll",g,getListenerOptions(c.scrollOptions))),s}),[r.contextId,u,g,l]),m=B((function(){var e=t.current,r=vr(e);return e&&r||react_beautiful_dnd_esm_invariant(!1),getScroll$1(r)}),[]),b=B((function(){var e=t.current;e||react_beautiful_dnd_esm_invariant(!1);var r=vr(e);t.current=null,r&&(f.cancel(),r.removeAttribute(Wt.contextId),r.removeEventListener("scroll",g,getListenerOptions(e.scrollOptions)))}),[g,f]),h=B((function(e){var r=t.current;r||react_beautiful_dnd_esm_invariant(!1);var n=vr(r);n||react_beautiful_dnd_esm_invariant(!1),n.scrollTop+=e.y,n.scrollLeft+=e.x}),[]),_=R((function(){return{getDimensionAndWatchScroll:v,getScrollWhileDragging:m,dragStopped:b,scroll:h}}),[b,v,m,h]),x=R((function(){return{uniqueId:i,descriptor:u,callbacks:_}}),[_,u,i]);Ut((function(){return c.current=x.descriptor,a.droppable.register(x),function(){t.current&&b(),a.droppable.unregister(x)}}),[_,u,b,x,o,a.droppable]),Ut((function(){t.current&&o.updateDroppableIsEnabled(c.current.id,!e.isDropDisabled)}),[e.isDropDisabled,o]),Ut((function(){t.current&&o.updateDroppableIsCombineEnabled(c.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,o])}({droppableId:c,type:s,mode:d,direction:p,isDropDisabled:g,isCombineEnabled:v,ignoreContainerClipping:f,getDroppableRef:x});var w=i().createElement(_r,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var t=e.onClose,n=e.data,a=e.animate;return i().createElement(hr,{placeholder:n,onClose:t,innerRef:I,animate:a,contextId:r,onTransitionEnd:E})})),S=R((function(){return{innerRef:D,placeholder:w,droppableProps:{"data-rbd-droppable-id":c,"data-rbd-droppable-context-id":r}}}),[r,c,w,D]),C=b?b.dragging.draggableId:null,P=R((function(){return{droppableId:c,type:s,isUsingCloneFor:C}}),[c,C,s]);return i().createElement(yr.Provider,{value:P},u(S,m),function getClone(){if(!b)return null;var e=b.dragging,t=b.render,r=i().createElement(PrivateDraggable,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(r,n){return t(r,n,e)}));return O().createPortal(r,_())}())}));Or.defaultProps=Ar},2476:(e,t)=>{var r=60103,n=60106,i=60107,a=60108,o=60114,l=60109,u=60110,c=60112,s=60113,d=60120,p=60115,f=60116,g=60121,v=60122,m=60117,b=60129,h=60131;if("function"==typeof Symbol&&Symbol.for){var _=Symbol.for;r=_("react.element"),n=_("react.portal"),i=_("react.fragment"),a=_("react.strict_mode"),o=_("react.profiler"),l=_("react.provider"),u=_("react.context"),c=_("react.forward_ref"),s=_("react.suspense"),d=_("react.suspense_list"),p=_("react.memo"),f=_("react.lazy"),g=_("react.block"),v=_("react.server.block"),m=_("react.fundamental"),b=_("react.debug_trace_mode"),h=_("react.legacy_hidden")}function y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case o:case a:case s:case d:return e;default:switch(e=e&&e.$$typeof){case u:case c:case f:case p:case l:return e;default:return t}}case n:return t}}}t.isContextConsumer=function(e){return y(e)===u}},8638:(e,t,r)=>{e.exports=r(2476)}}]);
@@ -0,0 +1,10 @@
1
+ /*! filename:944 */
2
+
3
+ /** @license React v17.0.2
4
+ * react-is.production.min.js
5
+ *
6
+ * Copyright (c) Facebook, Inc. and its affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */