@planningcenter/react-beautiful-dnd 13.4.1 → 13.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,10 +4,14 @@
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ReactBeautifulDnd = {}, global.React, global.ReactDOM));
5
5
  })(this, (function (exports, React, ReactDOM) { 'use strict';
6
6
 
7
- function _inheritsLoose(subClass, superClass) {
8
- subClass.prototype = Object.create(superClass.prototype);
9
- subClass.prototype.constructor = subClass;
10
- subClass.__proto__ = superClass;
7
+ function _setPrototypeOf(t, e) {
8
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
9
+ return t.__proto__ = e, t;
10
+ }, _setPrototypeOf(t, e);
11
+ }
12
+
13
+ function _inheritsLoose(t, o) {
14
+ t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
11
15
  }
12
16
 
13
17
  var spacesAndTabs = /[ \t]{2,}/g;
@@ -39,26 +43,18 @@
39
43
 
40
44
  function noop$2() {}
41
45
 
42
- function _extends$1() {
43
- _extends$1 = Object.assign || function (target) {
44
- for (var i = 1; i < arguments.length; i++) {
45
- var source = arguments[i];
46
-
47
- for (var key in source) {
48
- if (Object.prototype.hasOwnProperty.call(source, key)) {
49
- target[key] = source[key];
50
- }
51
- }
46
+ function _extends() {
47
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
48
+ for (var e = 1; e < arguments.length; e++) {
49
+ var t = arguments[e];
50
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
52
51
  }
53
-
54
- return target;
55
- };
56
-
57
- return _extends$1.apply(this, arguments);
52
+ return n;
53
+ }, _extends.apply(null, arguments);
58
54
  }
59
55
 
60
56
  function getOptions(shared, fromBinding) {
61
- return _extends$1({}, shared, {}, fromBinding);
57
+ return _extends({}, shared, {}, fromBinding);
62
58
  }
63
59
 
64
60
  function bindEvents(el, bindings, sharedOptions) {
@@ -2108,37 +2104,14 @@
2108
2104
  };
2109
2105
  }
2110
2106
 
2111
- function _extends() {
2112
- _extends = Object.assign || function (target) {
2113
- for (var i = 1; i < arguments.length; i++) {
2114
- var source = arguments[i];
2115
-
2116
- for (var key in source) {
2117
- if (Object.prototype.hasOwnProperty.call(source, key)) {
2118
- target[key] = source[key];
2119
- }
2120
- }
2121
- }
2122
-
2123
- return target;
2124
- };
2125
-
2126
- return _extends.apply(this, arguments);
2127
- }
2128
-
2129
- function _objectWithoutPropertiesLoose(source, excluded) {
2130
- if (source == null) return {};
2131
- var target = {};
2132
- var sourceKeys = Object.keys(source);
2133
- var key, i;
2134
-
2135
- for (i = 0; i < sourceKeys.length; i++) {
2136
- key = sourceKeys[i];
2137
- if (excluded.indexOf(key) >= 0) continue;
2138
- target[key] = source[key];
2107
+ function _objectWithoutPropertiesLoose(r, e) {
2108
+ if (null == r) return {};
2109
+ var t = {};
2110
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
2111
+ if (-1 !== e.indexOf(n)) continue;
2112
+ t[n] = r[n];
2139
2113
  }
2140
-
2141
- return target;
2114
+ return t;
2142
2115
  }
2143
2116
 
2144
2117
  /**
@@ -3319,7 +3292,7 @@
3319
3292
  if (withPlaceholder && withPlaceholder.increasedBy) {
3320
3293
  var _extends2;
3321
3294
 
3322
- return _extends$1({}, target, (_extends2 = {}, _extends2[axis.end] = target[axis.end] + withPlaceholder.increasedBy[axis.line], _extends2));
3295
+ return _extends({}, target, (_extends2 = {}, _extends2[axis.end] = target[axis.end] + withPlaceholder.increasedBy[axis.line], _extends2));
3323
3296
  }
3324
3297
 
3325
3298
  return target;
@@ -3354,7 +3327,7 @@
3354
3327
  var scrollDiff = subtract(newScroll, scrollable.scroll.initial);
3355
3328
  var scrollDisplacement = negate(scrollDiff);
3356
3329
 
3357
- var frame = _extends$1({}, scrollable, {
3330
+ var frame = _extends({}, scrollable, {
3358
3331
  scroll: {
3359
3332
  initial: scrollable.scroll.initial,
3360
3333
  current: newScroll,
@@ -3373,7 +3346,7 @@
3373
3346
  frame: frame
3374
3347
  });
3375
3348
 
3376
- var result = _extends$1({}, droppable, {
3349
+ var result = _extends({}, droppable, {
3377
3350
  frame: frame,
3378
3351
  subject: subject
3379
3352
  });
@@ -3536,7 +3509,7 @@
3536
3509
  droppableId: destination.descriptor.id
3537
3510
  }
3538
3511
  };
3539
- return _extends$1({}, previousImpact, {
3512
+ return _extends({}, previousImpact, {
3540
3513
  at: at
3541
3514
  });
3542
3515
  }
@@ -3704,17 +3677,17 @@
3704
3677
  };
3705
3678
 
3706
3679
  var isPartiallyVisible = function isPartiallyVisible(args) {
3707
- return isVisible$1(_extends$1({}, args, {
3680
+ return isVisible$1(_extends({}, args, {
3708
3681
  isVisibleThroughFrameFn: isPartiallyVisibleThroughFrame
3709
3682
  }));
3710
3683
  };
3711
3684
  var isTotallyVisible = function isTotallyVisible(args) {
3712
- return isVisible$1(_extends$1({}, args, {
3685
+ return isVisible$1(_extends({}, args, {
3713
3686
  isVisibleThroughFrameFn: isTotallyVisibleThroughFrame
3714
3687
  }));
3715
3688
  };
3716
3689
  var isTotallyVisibleOnAxis = function isTotallyVisibleOnAxis(args) {
3717
- return isVisible$1(_extends$1({}, args, {
3690
+ return isVisible$1(_extends({}, args, {
3718
3691
  isVisibleThroughFrameFn: isTotallyVisibleThroughFrameOnAxis(args.destination.axis)
3719
3692
  }));
3720
3693
  };
@@ -4253,7 +4226,7 @@
4253
4226
  invisible[id] = true;
4254
4227
  });
4255
4228
 
4256
- var newImpact = _extends$1({}, impact, {
4229
+ var newImpact = _extends({}, impact, {
4257
4230
  displaced: {
4258
4231
  all: last.all,
4259
4232
  invisible: invisible,
@@ -4537,8 +4510,8 @@
4537
4510
  };
4538
4511
 
4539
4512
  var withMaxScroll = function withMaxScroll(frame, max) {
4540
- return _extends$1({}, frame, {
4541
- scroll: _extends$1({}, frame.scroll, {
4513
+ return _extends({}, frame, {
4514
+ scroll: _extends({}, frame.scroll, {
4542
4515
  max: max
4543
4516
  })
4544
4517
  });
@@ -4564,7 +4537,7 @@
4564
4537
  frame: droppable.frame
4565
4538
  });
4566
4539
 
4567
- return _extends$1({}, droppable, {
4540
+ return _extends({}, droppable, {
4568
4541
  subject: _subject
4569
4542
  });
4570
4543
  }
@@ -4577,7 +4550,7 @@
4577
4550
  axis: droppable.axis,
4578
4551
  frame: newFrame
4579
4552
  });
4580
- return _extends$1({}, droppable, {
4553
+ return _extends({}, droppable, {
4581
4554
  subject: subject,
4582
4555
  frame: newFrame
4583
4556
  });
@@ -4595,7 +4568,7 @@
4595
4568
  withPlaceholder: null
4596
4569
  });
4597
4570
 
4598
- return _extends$1({}, droppable, {
4571
+ return _extends({}, droppable, {
4599
4572
  subject: _subject2
4600
4573
  });
4601
4574
  }
@@ -4609,7 +4582,7 @@
4609
4582
  frame: newFrame,
4610
4583
  withPlaceholder: null
4611
4584
  });
4612
- return _extends$1({}, droppable, {
4585
+ return _extends({}, droppable, {
4613
4586
  subject: subject,
4614
4587
  frame: newFrame
4615
4588
  });
@@ -5102,7 +5075,7 @@
5102
5075
  var patchDroppableMap = (function (droppables, updated) {
5103
5076
  var _extends2;
5104
5077
 
5105
- return _extends$1({}, droppables, (_extends2 = {}, _extends2[updated.descriptor.id] = updated, _extends2));
5078
+ return _extends({}, droppables, (_extends2 = {}, _extends2[updated.descriptor.id] = updated, _extends2));
5106
5079
  });
5107
5080
 
5108
5081
  var clearUnusedPlaceholder = function clearUnusedPlaceholder(_ref) {
@@ -5188,7 +5161,7 @@
5188
5161
  };
5189
5162
 
5190
5163
  if (state.phase === 'COLLECTING') {
5191
- return _extends$1({
5164
+ return _extends({
5192
5165
  phase: 'COLLECTING'
5193
5166
  }, state, {
5194
5167
  dimensions: dimensions,
@@ -5215,7 +5188,7 @@
5215
5188
  droppables: dimensions.droppables
5216
5189
  });
5217
5190
 
5218
- var result = _extends$1({}, state, {
5191
+ var result = _extends({}, state, {
5219
5192
  current: current,
5220
5193
  dimensions: {
5221
5194
  draggables: dimensions.draggables,
@@ -5252,7 +5225,7 @@
5252
5225
  forceShouldAnimate: forceShouldAnimate,
5253
5226
  last: last
5254
5227
  });
5255
- return _extends$1({}, impact, {
5228
+ return _extends({}, impact, {
5256
5229
  displaced: displaced
5257
5230
  });
5258
5231
  });
@@ -5435,8 +5408,8 @@
5435
5408
  var client = offset(draggable.client, offset$1);
5436
5409
  var page = withScroll(client, initialWindowScroll);
5437
5410
 
5438
- var moved = _extends$1({}, draggable, {
5439
- placeholder: _extends$1({}, draggable.placeholder, {
5411
+ var moved = _extends({}, draggable, {
5412
+ placeholder: _extends({}, draggable.placeholder, {
5440
5413
  client: client
5441
5414
  }),
5442
5415
  client: client,
@@ -5483,7 +5456,7 @@
5483
5456
  return scrolled;
5484
5457
  });
5485
5458
 
5486
- var droppables = _extends$1({}, state.dimensions.droppables, {}, toDroppableMap(withScrollChange));
5459
+ var droppables = _extends({}, state.dimensions.droppables, {}, toDroppableMap(withScrollChange));
5487
5460
 
5488
5461
  var updatedAdditions = toDraggableMap(adjustAdditionsForScrollChanges({
5489
5462
  additions: published.additions,
@@ -5491,7 +5464,7 @@
5491
5464
  viewport: state.viewport
5492
5465
  }));
5493
5466
 
5494
- var draggables = _extends$1({}, state.dimensions.draggables, {}, updatedAdditions);
5467
+ var draggables = _extends({}, state.dimensions.draggables, {}, updatedAdditions);
5495
5468
 
5496
5469
  published.removals.forEach(function (id) {
5497
5470
  delete draggables[id];
@@ -5526,7 +5499,7 @@
5526
5499
  });
5527
5500
  finish(timingsKey);
5528
5501
 
5529
- var draggingState = _extends$1({
5502
+ var draggingState = _extends({
5530
5503
  phase: 'DRAGGING'
5531
5504
  }, state, {
5532
5505
  phase: 'DRAGGING',
@@ -5541,7 +5514,7 @@
5541
5514
  return draggingState;
5542
5515
  }
5543
5516
 
5544
- var dropPending = _extends$1({
5517
+ var dropPending = _extends({
5545
5518
  phase: 'DROP_PENDING'
5546
5519
  }, draggingState, {
5547
5520
  phase: 'DROP_PENDING',
@@ -5574,7 +5547,7 @@
5574
5547
 
5575
5548
  function removeScrollJumpRequest(state) {
5576
5549
  if (state.isDragging && state.movementMode === 'SNAP') {
5577
- return _extends$1({
5550
+ return _extends({
5578
5551
  phase: 'DRAGGING'
5579
5552
  }, state, {
5580
5553
  scrollJumpRequest: null
@@ -5595,7 +5568,7 @@
5595
5568
  }
5596
5569
 
5597
5570
  if (action.type === 'FLUSH') {
5598
- return _extends$1({}, idle$2, {
5571
+ return _extends({}, idle$2, {
5599
5572
  shouldFlush: true
5600
5573
  });
5601
5574
  }
@@ -5662,7 +5635,7 @@
5662
5635
 
5663
5636
  !(state.phase === 'DRAGGING') ? invariant$1(false, "Collection cannot start from phase " + state.phase) : void 0;
5664
5637
 
5665
- var _result = _extends$1({
5638
+ var _result = _extends({
5666
5639
  phase: 'COLLECTING'
5667
5640
  }, state, {
5668
5641
  phase: 'COLLECTING'
@@ -5734,7 +5707,7 @@
5734
5707
  !_target ? invariant$1(false, "Cannot find Droppable[id: " + _id + "] to toggle its enabled state") : void 0;
5735
5708
  !(_target.isEnabled !== isEnabled) ? invariant$1(false, "Trying to set droppable isEnabled to " + String(isEnabled) + "\n but it is already " + String(_target.isEnabled)) : void 0;
5736
5709
 
5737
- var updated = _extends$1({}, _target, {
5710
+ var updated = _extends({}, _target, {
5738
5711
  isEnabled: isEnabled
5739
5712
  });
5740
5713
 
@@ -5754,7 +5727,7 @@
5754
5727
  !_target2 ? invariant$1(false, "Cannot find Droppable[id: " + _id2 + "] to toggle its isCombineEnabled state") : void 0;
5755
5728
  !(_target2.isCombineEnabled !== isCombineEnabled) ? invariant$1(false, "Trying to set droppable isCombineEnabled to " + String(isCombineEnabled) + "\n but it is already " + String(_target2.isCombineEnabled)) : void 0;
5756
5729
 
5757
- var _updated = _extends$1({}, _target2, {
5730
+ var _updated = _extends({}, _target2, {
5758
5731
  isCombineEnabled: isCombineEnabled
5759
5732
  });
5760
5733
 
@@ -5800,13 +5773,13 @@
5800
5773
  return state;
5801
5774
  }
5802
5775
 
5803
- var withMaxScroll = _extends$1({}, state.viewport, {
5804
- scroll: _extends$1({}, state.viewport.scroll, {
5776
+ var withMaxScroll = _extends({}, state.viewport, {
5777
+ scroll: _extends({}, state.viewport.scroll, {
5805
5778
  max: maxScroll
5806
5779
  })
5807
5780
  });
5808
5781
 
5809
- return _extends$1({
5782
+ return _extends({
5810
5783
  phase: 'DRAGGING'
5811
5784
  }, state, {
5812
5785
  viewport: withMaxScroll
@@ -5841,7 +5814,7 @@
5841
5814
  var reason = action.payload.reason;
5842
5815
  !(state.phase === 'COLLECTING') ? invariant$1(false, 'Can only move into the DROP_PENDING phase from the COLLECTING phase') : void 0;
5843
5816
 
5844
- var newState = _extends$1({
5817
+ var newState = _extends({
5845
5818
  phase: 'DROP_PENDING'
5846
5819
  }, state, {
5847
5820
  phase: 'DROP_PENDING',
@@ -6249,7 +6222,7 @@
6249
6222
  };
6250
6223
  }
6251
6224
 
6252
- var withoutMovement = _extends$1({}, lastImpact, {
6225
+ var withoutMovement = _extends({}, lastImpact, {
6253
6226
  displaced: emptyGroups
6254
6227
  });
6255
6228
 
@@ -6688,7 +6661,7 @@
6688
6661
  return;
6689
6662
  }
6690
6663
 
6691
- var data = _extends$1({}, getDragStart(critical, dragging.mode), {
6664
+ var data = _extends({}, getDragStart(critical, dragging.mode), {
6692
6665
  combine: combine,
6693
6666
  destination: location
6694
6667
  });
@@ -6718,7 +6691,7 @@
6718
6691
  return;
6719
6692
  }
6720
6693
 
6721
- var result = _extends$1({}, getDragStart(dragging.lastCritical, dragging.mode), {
6694
+ var result = _extends({}, getDragStart(dragging.lastCritical, dragging.mode), {
6722
6695
  combine: null,
6723
6696
  destination: null,
6724
6697
  reason: 'CANCEL'
@@ -8642,7 +8615,7 @@
8642
8615
  el.setAttribute('aria-live', 'assertive');
8643
8616
  el.setAttribute('aria-atomic', 'true');
8644
8617
 
8645
- _extends$1(el.style, visuallyHidden$1);
8618
+ _extends(el.style, visuallyHidden$1);
8646
8619
 
8647
8620
  getBodyElement().appendChild(el);
8648
8621
  return function cleanup() {
@@ -9918,7 +9891,7 @@
9918
9891
  }));
9919
9892
  }
9920
9893
 
9921
- return _extends$1({
9894
+ return _extends({
9922
9895
  isActive: function isActive() {
9923
9896
  return _isActive({
9924
9897
  expected: 'DRAGGING',
@@ -9958,7 +9931,7 @@
9958
9931
  move: move$1
9959
9932
  }
9960
9933
  });
9961
- return _extends$1({}, api, {
9934
+ return _extends({}, api, {
9962
9935
  move: move$1
9963
9936
  });
9964
9937
  }
@@ -10158,7 +10131,7 @@
10158
10131
  }, [registry, marshalCallbacks]);
10159
10132
  var fluidScrollerOptionsRef = React.useRef(fluidScrollerOptions);
10160
10133
  var autoScroller = useMemo(function () {
10161
- return createAutoScroller(_extends$1({
10134
+ return createAutoScroller(_extends({
10162
10135
  scrollWindow: scrollWindow,
10163
10136
  scrollDroppable: dimensionMarshal.scrollDroppable
10164
10137
  }, bindActionCreators({
@@ -11529,7 +11502,7 @@
11529
11502
  var isEnabled = typeof props.isDragDisabled === 'boolean' ? !props.isDragDisabled : true;
11530
11503
  var canDragInteractiveElements = Boolean(props.disableInteractiveElementBlocking);
11531
11504
  var shouldRespectForcePress = Boolean(props.shouldRespectForcePress);
11532
- return React.createElement(PrivateDraggable, _extends$1({}, props, {
11505
+ return React.createElement(PrivateDraggable, _extends({}, props, {
11533
11506
  isClone: false,
11534
11507
  isEnabled: isEnabled,
11535
11508
  canDragInteractiveElements: canDragInteractiveElements,
@@ -11667,7 +11640,7 @@
11667
11640
  };
11668
11641
 
11669
11642
  var attachDefaultPropsToOwnProps = function attachDefaultPropsToOwnProps(ownProps) {
11670
- var mergedProps = _extends$1({}, ownProps);
11643
+ var mergedProps = _extends({}, ownProps);
11671
11644
 
11672
11645
  var defaultPropKey;
11673
11646
 
@@ -11675,7 +11648,7 @@
11675
11648
  if (ownProps[defaultPropKey] === undefined) {
11676
11649
  var _extends2;
11677
11650
 
11678
- mergedProps = _extends$1({}, mergedProps, (_extends2 = {}, _extends2[defaultPropKey] = defaultProps[defaultPropKey], _extends2));
11651
+ mergedProps = _extends({}, mergedProps, (_extends2 = {}, _extends2[defaultPropKey] = defaultProps[defaultPropKey], _extends2));
11679
11652
  }
11680
11653
  }
11681
11654
 
@@ -11703,7 +11676,7 @@
11703
11676
  useClone: null
11704
11677
  };
11705
11678
 
11706
- var idleWithoutAnimation = _extends$1({}, idleWithAnimation, {
11679
+ var idleWithoutAnimation = _extends({}, idleWithAnimation, {
11707
11680
  shouldAnimatePlaceholder: false
11708
11681
  });
11709
11682
 
@@ -11824,7 +11797,7 @@
11824
11797
  updateViewportMaxScroll: updateViewportMaxScroll
11825
11798
  };
11826
11799
  var ConnectedDroppable = connect(makeMapStateToProps, mapDispatchToProps, function (stateProps, dispatchProps, ownProps) {
11827
- return _extends$1({}, attachDefaultPropsToOwnProps(ownProps), {}, stateProps, {}, dispatchProps);
11800
+ return _extends({}, attachDefaultPropsToOwnProps(ownProps), {}, stateProps, {}, dispatchProps);
11828
11801
  }, {
11829
11802
  context: StoreContext,
11830
11803
  pure: true,
@@ -1,6 +1,6 @@
1
- !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react","react-dom"],r):r((e="undefined"!=typeof globalThis?globalThis:e||self).ReactBeautifulDnd={},e.React,e.ReactDOM)}(this,(function(e,r,t){"use strict";function n(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r}function i(){}function o(){return(o=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function a(e,r,t){var n=r.map((function(r){var n,i,a=(n=t,i=r.options,o({},n,{},i));return e.addEventListener(r.eventName,r.fn,a),function(){e.removeEventListener(r.eventName,r.fn,a)}}));return function(){n.forEach((function(e){e()}))}}function l(e){this.message=e}function c(e,r){if(!e)throw new l("Invariant failed")}l.prototype.toString=function(){return this.message};var u=function(e){function r(){for(var r,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(r=e.call.apply(e,[this].concat(n))||this).callbacks=null,r.unbind=i,r.onWindowError=function(e){var t=r.getCallbacks();t.isDragging()&&t.tryAbort(),e.error instanceof l&&e.preventDefault()},r.getCallbacks=function(){if(!r.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return r.callbacks},r.setCallbacks=function(e){r.callbacks=e},r}n(r,e);var t=r.prototype;return t.componentDidMount=function(){this.unbind=a(window,[{eventName:"error",fn:this.onWindowError}])},t.componentDidCatch=function(e){if(!(e instanceof l))throw e;this.setState({})},t.componentWillUnmount=function(){this.unbind()},t.render=function(){return this.props.children(this.setCallbacks)},r}(r.Component),s=function(e){return e+1},d=function(e,r){var t=e.droppableId===r.droppableId,n=s(e.index),i=s(r.index);return t?"\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 "+r.droppableId+"\n in position "+i+"\n "},p=function(e,r,t){return r.droppableId===t.droppableId?"\n The item "+e+"\n has been combined with "+t.draggableId:"\n The item "+e+"\n in list "+r.droppableId+"\n has been combined with "+t.draggableId+"\n in list "+t.droppableId+"\n "},f=function(e){return"\n The item has returned to its starting position\n of "+s(e.index)+"\n"},g={dragHandleUsageInstructions:"\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",onDragStart:function(e){return"\n You have lifted an item in position "+s(e.source.index)+"\n"},onDragUpdate:function(e){var r=e.destination;if(r)return d(e.source,r);var t=e.combine;return t?p(e.draggableId,e.source,t):"You are over an area that cannot be dropped on"},onDragEnd:function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+f(e.source)+"\n ";var r=e.destination,t=e.combine;return r?"\n You have dropped the item.\n "+d(e.source,r)+"\n ":t?"\n You have dropped the item.\n "+p(e.draggableId,e.source,t)+"\n ":"\n The item has been dropped while not over a drop area.\n "+f(e.source)+"\n "}};var v=function(e){var r,t=e.Symbol;return"function"==typeof t?t.observable?r=t.observable:(r=t("observable"),t.observable=r):r="@@observable",r}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof module?module:Function("return this")()),m=function(){return Math.random().toString(36).substring(7).split("").join(".")},b={INIT:"@@redux/INIT"+m(),REPLACE:"@@redux/REPLACE"+m(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+m()}};function h(e){if("object"!=typeof e||null===e)return!1;for(var r=e;null!==Object.getPrototypeOf(r);)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}function y(e,r,t){var n;if("function"==typeof r&&"function"==typeof t||"function"==typeof t&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof r&&void 0===t&&(t=r,r=void 0),void 0!==t){if("function"!=typeof t)throw new Error("Expected the enhancer to be a function.");return t(y)(e,r)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var i=e,o=r,a=[],l=a,c=!1;function u(){l===a&&(l=a.slice())}function s(){if(c)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function d(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(c)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var r=!0;return u(),l.push(e),function(){if(r){if(c)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");r=!1,u();var t=l.indexOf(e);l.splice(t,1),a=null}}}function p(e){if(!h(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(c)throw new Error("Reducers may not dispatch actions.");try{c=!0,o=i(o,e)}finally{c=!1}for(var r=a=l,t=0;t<r.length;t++){(0,r[t])()}return e}function f(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");i=e,p({type:b.REPLACE})}function g(){var e,r=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function t(){e.next&&e.next(s())}return t(),{unsubscribe:r(t)}}})[v]=function(){return this},e}return p({type:b.INIT}),(n={dispatch:p,subscribe:d,getState:s,replaceReducer:f})[v]=g,n}function x(e,r){return function(){return r(e.apply(this,arguments))}}function I(e,r){if("function"==typeof e)return x(e,r);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var t={};for(var n in e){var i=e[n];"function"==typeof i&&(t[n]=x(i,r))}return t}function D(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function w(e,r){var t=Object.keys(e);return Object.getOwnPropertySymbols&&t.push.apply(t,Object.getOwnPropertySymbols(e)),r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t}function E(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?w(t,!0).forEach((function(r){D(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(t).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function S(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return 0===r.length?function(e){return e}:1===r.length?r[0]:r.reduce((function(e,r){return function(){return e(r.apply(void 0,arguments))}}))}function C(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function O(e,r){return e(r={exports:{}},r.exports),r.exports}var P=O((function(e,r){Object.defineProperty(r,"__esModule",{value:!0});var t="function"==typeof Symbol&&Symbol.for,n=t?Symbol.for("react.element"):60103,i=t?Symbol.for("react.portal"):60106,o=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,l=t?Symbol.for("react.profiler"):60114,c=t?Symbol.for("react.provider"):60109,u=t?Symbol.for("react.context"):60110,s=t?Symbol.for("react.async_mode"):60111,d=t?Symbol.for("react.concurrent_mode"):60111,p=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,g=t?Symbol.for("react.suspense_list"):60120,v=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,b=t?Symbol.for("react.fundamental"):60117,h=t?Symbol.for("react.responder"):60118,y=t?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var r=e.$$typeof;switch(r){case n:switch(e=e.type){case s:case d:case o:case l:case a:case f:return e;default:switch(e=e&&e.$$typeof){case u:case p:case m:case v:case c:return e;default:return r}}case i:return r}}}function I(e){return x(e)===d}r.typeOf=x,r.AsyncMode=s,r.ConcurrentMode=d,r.ContextConsumer=u,r.ContextProvider=c,r.Element=n,r.ForwardRef=p,r.Fragment=o,r.Lazy=m,r.Memo=v,r.Portal=i,r.Profiler=l,r.StrictMode=a,r.Suspense=f,r.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===l||e===a||e===f||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===v||e.$$typeof===c||e.$$typeof===u||e.$$typeof===p||e.$$typeof===b||e.$$typeof===h||e.$$typeof===y)},r.isAsyncMode=function(e){return I(e)||x(e)===s},r.isConcurrentMode=I,r.isContextConsumer=function(e){return x(e)===u},r.isContextProvider=function(e){return x(e)===c},r.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},r.isForwardRef=function(e){return x(e)===p},r.isFragment=function(e){return x(e)===o},r.isLazy=function(e){return x(e)===m},r.isMemo=function(e){return x(e)===v},r.isPortal=function(e){return x(e)===i},r.isProfiler=function(e){return x(e)===l},r.isStrictMode=function(e){return x(e)===a},r.isSuspense=function(e){return x(e)===f}}));C(P),P.typeOf,P.AsyncMode,P.ConcurrentMode,P.ContextConsumer,P.ContextProvider,P.Element,P.ForwardRef,P.Fragment,P.Lazy,P.Memo,P.Portal,P.Profiler,P.StrictMode,P.Suspense,P.isValidElementType,P.isAsyncMode,P.isConcurrentMode,P.isContextConsumer,P.isContextProvider,P.isElement,P.isForwardRef,P.isFragment,P.isLazy,P.isMemo,P.isPortal,P.isProfiler,P.isStrictMode,P.isSuspense;var A=O((function(e,r){}));C(A),A.typeOf,A.AsyncMode,A.ConcurrentMode,A.ContextConsumer,A.ContextProvider,A.Element,A.ForwardRef,A.Fragment,A.Lazy,A.Memo,A.Portal,A.Profiler,A.StrictMode,A.Suspense,A.isValidElementType,A.isAsyncMode,A.isConcurrentMode,A.isContextConsumer,A.isContextProvider,A.isElement,A.isForwardRef,A.isFragment,A.isLazy,A.isMemo,A.isPortal,A.isProfiler,A.isStrictMode,A.isSuspense;var R=O((function(e){e.exports=P}));R.isValidElementType;var N=R.isContextConsumer;
1
+ !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react","react-dom"],r):r((e="undefined"!=typeof globalThis?globalThis:e||self).ReactBeautifulDnd={},e.React,e.ReactDOM)}(this,(function(e,r,t){"use strict";function n(e,r){return(n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,r){return e.__proto__=r,e})(e,r)}function i(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,n(e,r)}function o(){}function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(null,arguments)}function l(e,r,t){var n=r.map((function(r){var n,i,o=(n=t,i=r.options,a({},n,{},i));return e.addEventListener(r.eventName,r.fn,o),function(){e.removeEventListener(r.eventName,r.fn,o)}}));return function(){n.forEach((function(e){e()}))}}function c(e){this.message=e}function u(e,r){if(!e)throw new c("Invariant failed")}c.prototype.toString=function(){return this.message};var s=function(e){function r(){for(var r,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(r=e.call.apply(e,[this].concat(n))||this).callbacks=null,r.unbind=o,r.onWindowError=function(e){var t=r.getCallbacks();t.isDragging()&&t.tryAbort(),e.error instanceof c&&e.preventDefault()},r.getCallbacks=function(){if(!r.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return r.callbacks},r.setCallbacks=function(e){r.callbacks=e},r}i(r,e);var t=r.prototype;return t.componentDidMount=function(){this.unbind=l(window,[{eventName:"error",fn:this.onWindowError}])},t.componentDidCatch=function(e){if(!(e instanceof c))throw e;this.setState({})},t.componentWillUnmount=function(){this.unbind()},t.render=function(){return this.props.children(this.setCallbacks)},r}(r.Component),d=function(e){return e+1},p=function(e,r){var t=e.droppableId===r.droppableId,n=d(e.index),i=d(r.index);return t?"\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 "+r.droppableId+"\n in position "+i+"\n "},f=function(e,r,t){return r.droppableId===t.droppableId?"\n The item "+e+"\n has been combined with "+t.draggableId:"\n The item "+e+"\n in list "+r.droppableId+"\n has been combined with "+t.draggableId+"\n in list "+t.droppableId+"\n "},g=function(e){return"\n The item has returned to its starting position\n of "+d(e.index)+"\n"},v={dragHandleUsageInstructions:"\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",onDragStart:function(e){return"\n You have lifted an item in position "+d(e.source.index)+"\n"},onDragUpdate:function(e){var r=e.destination;if(r)return p(e.source,r);var t=e.combine;return t?f(e.draggableId,e.source,t):"You are over an area that cannot be dropped on"},onDragEnd:function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+g(e.source)+"\n ";var r=e.destination,t=e.combine;return r?"\n You have dropped the item.\n "+p(e.source,r)+"\n ":t?"\n You have dropped the item.\n "+f(e.draggableId,e.source,t)+"\n ":"\n The item has been dropped while not over a drop area.\n "+g(e.source)+"\n "}};var m=function(e){var r,t=e.Symbol;return"function"==typeof t?t.observable?r=t.observable:(r=t("observable"),t.observable=r):r="@@observable",r}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof module?module:Function("return this")()),b=function(){return Math.random().toString(36).substring(7).split("").join(".")},h={INIT:"@@redux/INIT"+b(),REPLACE:"@@redux/REPLACE"+b(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+b()}};function y(e){if("object"!=typeof e||null===e)return!1;for(var r=e;null!==Object.getPrototypeOf(r);)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}function x(e,r,t){var n;if("function"==typeof r&&"function"==typeof t||"function"==typeof t&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof r&&void 0===t&&(t=r,r=void 0),void 0!==t){if("function"!=typeof t)throw new Error("Expected the enhancer to be a function.");return t(x)(e,r)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var i=e,o=r,a=[],l=a,c=!1;function u(){l===a&&(l=a.slice())}function s(){if(c)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function d(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(c)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var r=!0;return u(),l.push(e),function(){if(r){if(c)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");r=!1,u();var t=l.indexOf(e);l.splice(t,1),a=null}}}function p(e){if(!y(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(c)throw new Error("Reducers may not dispatch actions.");try{c=!0,o=i(o,e)}finally{c=!1}for(var r=a=l,t=0;t<r.length;t++){(0,r[t])()}return e}function f(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");i=e,p({type:h.REPLACE})}function g(){var e,r=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function t(){e.next&&e.next(s())}return t(),{unsubscribe:r(t)}}})[m]=function(){return this},e}return p({type:h.INIT}),(n={dispatch:p,subscribe:d,getState:s,replaceReducer:f})[m]=g,n}function I(e,r){return function(){return r(e.apply(this,arguments))}}function D(e,r){if("function"==typeof e)return I(e,r);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var t={};for(var n in e){var i=e[n];"function"==typeof i&&(t[n]=I(i,r))}return t}function w(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function E(e,r){var t=Object.keys(e);return Object.getOwnPropertySymbols&&t.push.apply(t,Object.getOwnPropertySymbols(e)),r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t}function S(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?E(t,!0).forEach((function(r){w(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):E(t).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function C(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return 0===r.length?function(e){return e}:1===r.length?r[0]:r.reduce((function(e,r){return function(){return e(r.apply(void 0,arguments))}}))}function O(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function P(e,r){return e(r={exports:{}},r.exports),r.exports}var A=P((function(e,r){Object.defineProperty(r,"__esModule",{value:!0});var t="function"==typeof Symbol&&Symbol.for,n=t?Symbol.for("react.element"):60103,i=t?Symbol.for("react.portal"):60106,o=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,l=t?Symbol.for("react.profiler"):60114,c=t?Symbol.for("react.provider"):60109,u=t?Symbol.for("react.context"):60110,s=t?Symbol.for("react.async_mode"):60111,d=t?Symbol.for("react.concurrent_mode"):60111,p=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,g=t?Symbol.for("react.suspense_list"):60120,v=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,b=t?Symbol.for("react.fundamental"):60117,h=t?Symbol.for("react.responder"):60118,y=t?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var r=e.$$typeof;switch(r){case n:switch(e=e.type){case s:case d:case o:case l:case a:case f:return e;default:switch(e=e&&e.$$typeof){case u:case p:case m:case v:case c:return e;default:return r}}case i:return r}}}function I(e){return x(e)===d}r.typeOf=x,r.AsyncMode=s,r.ConcurrentMode=d,r.ContextConsumer=u,r.ContextProvider=c,r.Element=n,r.ForwardRef=p,r.Fragment=o,r.Lazy=m,r.Memo=v,r.Portal=i,r.Profiler=l,r.StrictMode=a,r.Suspense=f,r.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===l||e===a||e===f||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===v||e.$$typeof===c||e.$$typeof===u||e.$$typeof===p||e.$$typeof===b||e.$$typeof===h||e.$$typeof===y)},r.isAsyncMode=function(e){return I(e)||x(e)===s},r.isConcurrentMode=I,r.isContextConsumer=function(e){return x(e)===u},r.isContextProvider=function(e){return x(e)===c},r.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},r.isForwardRef=function(e){return x(e)===p},r.isFragment=function(e){return x(e)===o},r.isLazy=function(e){return x(e)===m},r.isMemo=function(e){return x(e)===v},r.isPortal=function(e){return x(e)===i},r.isProfiler=function(e){return x(e)===l},r.isStrictMode=function(e){return x(e)===a},r.isSuspense=function(e){return x(e)===f}}));O(A),A.typeOf,A.AsyncMode,A.ConcurrentMode,A.ContextConsumer,A.ContextProvider,A.Element,A.ForwardRef,A.Fragment,A.Lazy,A.Memo,A.Portal,A.Profiler,A.StrictMode,A.Suspense,A.isValidElementType,A.isAsyncMode,A.isConcurrentMode,A.isContextConsumer,A.isContextProvider,A.isElement,A.isForwardRef,A.isFragment,A.isLazy,A.isMemo,A.isPortal,A.isProfiler,A.isStrictMode,A.isSuspense;var R=P((function(e,r){}));O(R),R.typeOf,R.AsyncMode,R.ConcurrentMode,R.ContextConsumer,R.ContextProvider,R.Element,R.ForwardRef,R.Fragment,R.Lazy,R.Memo,R.Portal,R.Profiler,R.StrictMode,R.Suspense,R.isValidElementType,R.isAsyncMode,R.isConcurrentMode,R.isContextConsumer,R.isContextProvider,R.isElement,R.isForwardRef,R.isFragment,R.isLazy,R.isMemo,R.isPortal,R.isProfiler,R.isStrictMode,R.isSuspense;var N=P((function(e){e.exports=A}));N.isValidElementType;var B=N.isContextConsumer;
2
2
  /*
3
3
  object-assign
4
4
  (c) Sindre Sorhus
5
5
  @license MIT
6
- */Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;!function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()||Object.assign;function B(){}function T(){}Function.call.bind(Object.prototype.hasOwnProperty),T.resetWarningCache=B;O((function(e){e.exports=function(){function e(e,r,t,n,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function r(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:T,resetWarningCache:B};return t.PropTypes=t,t}()}));var M=r.createContext(null);var L=function(e){e()},G=function(){return L},_={notify:function(){}};var F=function(){function e(e,r){this.store=e,this.parentSub=r,this.unsubscribe=null,this.listeners=_,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var r=e.prototype;return r.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},r.notifyNestedSubs=function(){this.listeners.notify()},r.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},r.isSubscribed=function(){return Boolean(this.unsubscribe)},r.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=function(){var e=G(),r=null,t=null;return{clear:function(){r=null,t=null},notify:function(){e((function(){for(var e=r;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],t=r;t;)e.push(t),t=t.next;return e},subscribe:function(e){var n=!0,i=t={callback:e,next:null,prev:t};return i.prev?i.prev.next=i:r=i,function(){n&&null!==r&&(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:r=i.next)}}}}())},r.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=_)},e}();function j(e){var t=e.store,n=e.context,i=e.children,o=r.useMemo((function(){var e=new F(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),a=r.useMemo((function(){return t.getState()}),[t]);r.useEffect((function(){var e=o.subscription;return e.trySubscribe(),a!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[o,a]);var l=n||M;return r.createElement(l.Provider,{value:o},i)}function k(){return(k=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function W(e,r){if(null==e)return{};var t,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)>=0||(i[t]=e[t]);return i}var U={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},H={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},q={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},V={};function z(e){return R.isMemo(e)?q:V[e.$$typeof]||U}V[R.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},V[R.Memo]=q;var $=Object.defineProperty,Y=Object.getOwnPropertyNames,J=Object.getOwnPropertySymbols,X=Object.getOwnPropertyDescriptor,K=Object.getPrototypeOf,Q=Object.prototype;var Z=function e(r,t,n){if("string"!=typeof t){if(Q){var i=K(t);i&&i!==Q&&e(r,i,n)}var o=Y(t);J&&(o=o.concat(J(t)));for(var a=z(r),l=z(t),c=0;c<o.length;++c){var u=o[c];if(!(H[u]||n&&n[u]||l&&l[u]||a&&a[u])){var s=X(t,u);try{$(r,u,s)}catch(e){}}}}return r},ee="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,re=[],te=[null,null];function ne(e,r){var t=e[1];return[r.payload,t+1]}function ie(e,r,t){ee((function(){return e.apply(void 0,r)}),t)}function oe(e,r,t,n,i,o,a){e.current=n,r.current=i,t.current=!1,o.current&&(o.current=null,a())}function ae(e,r,t,n,i,o,a,l,c,u){if(e){var s=!1,d=null,p=function(){if(!s){var e,t,p=r.getState();try{e=n(p,i.current)}catch(e){t=e,d=e}t||(d=null),e===o.current?a.current||c():(o.current=e,l.current=e,a.current=!0,u({type:"STORE_UPDATED",payload:{error:t}}))}};t.onStateChange=p,t.trySubscribe(),p();return function(){if(s=!0,t.tryUnsubscribe(),t.onStateChange=null,d)throw d}}}var le=function(){return[null,0]};function ce(e,t){void 0===t&&(t={});var n=t,i=n.getDisplayName,o=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,a=n.methodName,l=void 0===a?"connectAdvanced":a,c=n.renderCountProp,u=void 0===c?void 0:c,s=n.shouldHandleStateChanges,d=void 0===s||s,p=n.storeKey,f=void 0===p?"store":p;n.withRef;var g=n.forwardRef,v=void 0!==g&&g,m=n.context,b=void 0===m?M:m,h=W(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),y=b;return function(t){var n=t.displayName||t.name||"Component",i=o(n),a=k({},h,{getDisplayName:o,methodName:l,renderCountProp:u,shouldHandleStateChanges:d,storeKey:f,displayName:i,wrappedComponentName:n,WrappedComponent:t}),c=h.pure;var s=c?r.useMemo:function(e){return e()};function p(n){var i=r.useMemo((function(){var e=n.forwardedRef,r=W(n,["forwardedRef"]);return[n.context,e,r]}),[n]),o=i[0],l=i[1],c=i[2],u=r.useMemo((function(){return o&&o.Consumer&&N(r.createElement(o.Consumer,null))?o:y}),[o,y]),p=r.useContext(u),f=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(p)&&Boolean(p.store);var g=f?n.store:p.store,v=r.useMemo((function(){return function(r){return e(r.dispatch,a)}(g)}),[g]),m=r.useMemo((function(){if(!d)return te;var e=new F(g,f?null:p.subscription),r=e.notifyNestedSubs.bind(e);return[e,r]}),[g,f,p]),b=m[0],h=m[1],x=r.useMemo((function(){return f?p:k({},p,{subscription:b})}),[f,p,b]),I=r.useReducer(ne,re,le),D=I[0][0],w=I[1];if(D&&D.error)throw D.error;var E=r.useRef(),S=r.useRef(c),C=r.useRef(),O=r.useRef(!1),P=s((function(){return C.current&&c===S.current?C.current:v(g.getState(),c)}),[g,D,c]);ie(oe,[S,E,O,c,P,C,h]),ie(ae,[d,g,b,v,S,E,O,C,h,w],[g,b,v]);var A=r.useMemo((function(){return r.createElement(t,k({},P,{ref:l}))}),[l,t,P]);return r.useMemo((function(){return d?r.createElement(u.Provider,{value:x},A):A}),[u,A,x])}var g=c?r.memo(p):p;if(g.WrappedComponent=t,g.displayName=i,v){var m=r.forwardRef((function(e,t){return r.createElement(g,k({},e,{forwardedRef:t}))}));return m.displayName=i,m.WrappedComponent=t,Z(m,t)}return Z(g,t)}}function ue(e,r){return e===r?0!==e||0!==r||1/e==1/r:e!=e&&r!=r}function se(e,r){if(ue(e,r))return!0;if("object"!=typeof e||null===e||"object"!=typeof r||null===r)return!1;var t=Object.keys(e),n=Object.keys(r);if(t.length!==n.length)return!1;for(var i=0;i<t.length;i++)if(!Object.prototype.hasOwnProperty.call(r,t[i])||!ue(e[t[i]],r[t[i]]))return!1;return!0}function de(e){return function(r,t){var n=e(r,t);function i(){return n}return i.dependsOnOwnProps=!1,i}}function pe(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function fe(e,r){return function(r,t){t.displayName;var n=function(e,r){return n.dependsOnOwnProps?n.mapToProps(e,r):n.mapToProps(e)};return n.dependsOnOwnProps=!0,n.mapToProps=function(r,t){n.mapToProps=e,n.dependsOnOwnProps=pe(e);var i=n(r,t);return"function"==typeof i&&(n.mapToProps=i,n.dependsOnOwnProps=pe(i),i=n(r,t)),i},n}}var ge=[function(e){return"function"==typeof e?fe(e):void 0},function(e){return e?void 0:de((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?de((function(r){return I(e,r)})):void 0}];var ve=[function(e){return"function"==typeof e?fe(e):void 0},function(e){return e?void 0:de((function(){return{}}))}];function me(e,r,t){return k({},t,{},e,{},r)}var be=[function(e){return"function"==typeof e?function(e){return function(r,t){t.displayName;var n,i=t.pure,o=t.areMergedPropsEqual,a=!1;return function(r,t,l){var c=e(r,t,l);return a?i&&o(c,n)||(n=c):(a=!0,n=c),n}}}(e):void 0},function(e){return e?void 0:function(){return me}}];function he(e,r,t,n){return function(i,o){return t(e(i,o),r(n,o),o)}}function ye(e,r,t,n,i){var o,a,l,c,u,s=i.areStatesEqual,d=i.areOwnPropsEqual,p=i.areStatePropsEqual,f=!1;function g(i,f){var g,v,m=!d(f,a),b=!s(i,o);return o=i,a=f,m&&b?(l=e(o,a),r.dependsOnOwnProps&&(c=r(n,a)),u=t(l,c,a)):m?(e.dependsOnOwnProps&&(l=e(o,a)),r.dependsOnOwnProps&&(c=r(n,a)),u=t(l,c,a)):b?(g=e(o,a),v=!p(g,l),l=g,v&&(u=t(l,c,a)),u):u}return function(i,s){return f?g(i,s):(l=e(o=i,a=s),c=r(n,a),u=t(l,c,a),f=!0,u)}}function xe(e,r){var t=r.initMapStateToProps,n=r.initMapDispatchToProps,i=r.initMergeProps,o=W(r,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=t(e,o),l=n(e,o),c=i(e,o);return(o.pure?ye:he)(a,l,c,e,o)}function Ie(e,r,t){for(var n=r.length-1;n>=0;n--){var i=r[n](e);if(i)return i}return function(r,n){throw new Error("Invalid value of type "+typeof e+" for "+t+" argument when connecting component "+n.wrappedComponentName+".")}}function De(e,r){return e===r}function we(e){var r=void 0===e?{}:e,t=r.connectHOC,n=void 0===t?ce:t,i=r.mapStateToPropsFactories,o=void 0===i?ve:i,a=r.mapDispatchToPropsFactories,l=void 0===a?ge:a,c=r.mergePropsFactories,u=void 0===c?be:c,s=r.selectorFactory,d=void 0===s?xe:s;return function(e,r,t,i){void 0===i&&(i={});var a=i,c=a.pure,s=void 0===c||c,p=a.areStatesEqual,f=void 0===p?De:p,g=a.areOwnPropsEqual,v=void 0===g?se:g,m=a.areStatePropsEqual,b=void 0===m?se:m,h=a.areMergedPropsEqual,y=void 0===h?se:h,x=W(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),I=Ie(e,o,"mapStateToProps"),D=Ie(r,l,"mapDispatchToProps"),w=Ie(t,u,"mergeProps");return n(d,k({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:I,initMapDispatchToProps:D,initMergeProps:w,pure:s,areStatesEqual:f,areOwnPropsEqual:v,areStatePropsEqual:b,areMergedPropsEqual:y},x))}}var Ee,Se=we();function Ce(e,t){var n=r.useState((function(){return{inputs:t,result:e()}}))[0],i=r.useRef(n),o=Boolean(t&&i.current.inputs&&function(e,r){if(e.length!==r.length)return!1;for(var t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0}(t,i.current.inputs))?i.current:{inputs:t,result:e()};return r.useEffect((function(){i.current=o}),[o]),o.result}Ee=t.unstable_batchedUpdates,L=Ee;var Oe=Ce,Pe=function(e,r){return Ce((function(){return e}),r)},Ae={x:0,y:0},Re=function(e,r){return{x:e.x+r.x,y:e.y+r.y}},Ne=function(e,r){return{x:e.x-r.x,y:e.y-r.y}},Be=function(e,r){return e.x===r.x&&e.y===r.y},Te=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},Me=function(e,r,t){var n;return void 0===t&&(t=0),(n={})[e]=r,n["x"===e?"y":"x"]=t,n},Le=function(e,r){return Math.sqrt(Math.pow(r.x-e.x,2)+Math.pow(r.y-e.y,2))},Ge=function(e,r){return Math.min.apply(Math,r.map((function(r){return Le(e,r)})))},_e=function(e){return function(r){return{x:e(r.x),y:e(r.y)}}};var Fe=function(e){var r=e.top,t=e.right,n=e.bottom,i=e.left;return{top:r,right:t,bottom:n,left:i,width:t-i,height:n-r,x:i,y:r,center:{x:(t+i)/2,y:(n+r)/2}}},je=function(e,r){return{top:e.top-r.top,left:e.left-r.left,bottom:e.bottom+r.bottom,right:e.right+r.right}},ke=function(e,r){return{top:e.top+r.top,left:e.left+r.left,bottom:e.bottom-r.bottom,right:e.right-r.right}},We={top:0,right:0,bottom:0,left:0},Ue=function(e){var r=e.borderBox,t=e.margin,n=void 0===t?We:t,i=e.border,o=void 0===i?We:i,a=e.padding,l=void 0===a?We:a,c=Fe(je(r,n)),u=Fe(ke(r,o)),s=Fe(ke(u,l));return{marginBox:c,borderBox:Fe(r),paddingBox:u,contentBox:s,margin:n,border:o,padding:l}},He=function(e){var r=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var t=Number(r);return isNaN(t)&&function(e,r){if(!e)throw new Error("Invariant failed")}(!1),t},qe=function(e,r){var t,n,i=e.borderBox,o=e.border,a=e.margin,l=e.padding,c=(n=r,{top:(t=i).top+n.y,left:t.left+n.x,bottom:t.bottom+n.y,right:t.right+n.x});return Ue({borderBox:c,border:o,margin:a,padding:l})},Ve=function(e,r){return void 0===r&&(r={x:window.pageXOffset,y:window.pageYOffset}),qe(e,r)},ze=function(e,r){var t={top:He(r.marginTop),right:He(r.marginRight),bottom:He(r.marginBottom),left:He(r.marginLeft)},n={top:He(r.paddingTop),right:He(r.paddingRight),bottom:He(r.paddingBottom),left:He(r.paddingLeft)},i={top:He(r.borderTopWidth),right:He(r.borderRightWidth),bottom:He(r.borderBottomWidth),left:He(r.borderLeftWidth)};return Ue({borderBox:e,margin:t,padding:n,border:i})},$e=function(e){var r=e.getBoundingClientRect(),t=window.getComputedStyle(e);return ze(r,t)},Ye=function(e,r){return{top:e.top+r.y,left:e.left+r.x,bottom:e.bottom+r.y,right:e.right+r.x}},Je=function(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}]},Xe=function(e,r){return r&&r.shouldClipSubject?function(e,r){var t=Fe({top:Math.max(r.top,e.top),right:Math.min(r.right,e.right),bottom:Math.min(r.bottom,e.bottom),left:Math.max(r.left,e.left)});return t.width<=0||t.height<=0?null:t}(r.pageMarginBox,e):Fe(e)},Ke=function(e){var r=e.page,t=e.withPlaceholder,n=e.axis,i=e.frame,a=function(e,r,t){var n;return t&&t.increasedBy?o({},e,((n={})[r.end]=e[r.end]+t.increasedBy[r.line],n)):e}(function(e,r){return r?Ye(e,r.scroll.diff.displacement):e}(r.marginBox,i),n,t);return{page:r,withPlaceholder:t,active:Xe(a,i)}},Qe=function(e,r){e.frame||c(!1);var t=e.frame,n=Ne(r,t.scroll.initial),i=Te(n),a=o({},t,{scroll:{initial:t.scroll.initial,current:r,diff:{value:n,displacement:i},max:t.scroll.max}});return o({},e,{frame:a,subject:Ke({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:a})})};function Ze(e,r){if(e.length!==r.length)return!1;for(var t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0}function er(e,r){var t;void 0===r&&(r=Ze);var n,i=[],o=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return o&&t===this&&r(a,i)||(n=e.apply(this,a),o=!0,t=this,i=a),n}}function rr(e){return Object.values?Object.values(e):Object.keys(e).map((function(r){return e[r]}))}function tr(e,r){if(e.findIndex)return e.findIndex(r);for(var t=0;t<e.length;t++)if(r(e[t]))return t;return-1}function nr(e,r){if(e.find)return e.find(r);var t=tr(e,r);return-1!==t?e[t]:void 0}function ir(e){return Array.prototype.slice.call(e)}var or=er((function(e){return e.reduce((function(e,r){return e[r.descriptor.id]=r,e}),{})})),ar=er((function(e){return e.reduce((function(e,r){return e[r.descriptor.id]=r,e}),{})})),lr=er((function(e){return rr(e)})),cr=er((function(e){return rr(e)})),ur=er((function(e,r){return cr(r).filter((function(r){return e===r.descriptor.droppableId})).sort((function(e,r){return e.descriptor.index-r.descriptor.index}))}));function sr(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function dr(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var pr=er((function(e,r){return r.filter((function(r){return r.descriptor.id!==e.descriptor.id}))})),fr=function(e,r){return e.descriptor.droppableId===r.descriptor.id},gr={point:Ae,value:0},vr={invisible:{},visible:{},all:[]},mr={displaced:vr,displacedBy:gr,at:null},br=function(e,r){return function(t){return e<=t&&t<=r}},hr=function(e){var r=br(e.top,e.bottom),t=br(e.left,e.right);return function(n){if(r(n.top)&&r(n.bottom)&&t(n.left)&&t(n.right))return!0;var i=r(n.top)||r(n.bottom),o=t(n.left)||t(n.right);if(i&&o)return!0;var a=n.top<e.top&&n.bottom>e.bottom,l=n.left<e.left&&n.right>e.right;return!(!a||!l)||(a&&o||l&&i)}},yr=function(e){var r=br(e.top,e.bottom),t=br(e.left,e.right);return function(e){return r(e.top)&&r(e.bottom)&&t(e.left)&&t(e.right)}},xr={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Ir={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Dr=function(e){var r=e.target,t=e.destination,n=e.viewport,i=e.withDroppableDisplacement,o=e.isVisibleThroughFrameFn,a=i?function(e,r){var t=r.frame?r.frame.scroll.diff.displacement:Ae;return Ye(e,t)}(r,t):r;return function(e,r,t){return!!r.subject.active&&t(r.subject.active)(e)}(a,t,o)&&function(e,r,t){return t(r)(e)}(a,n,o)},wr=function(e){return Dr(o({},e,{isVisibleThroughFrameFn:hr}))},Er=function(e){return Dr(o({},e,{isVisibleThroughFrameFn:yr}))};function Sr(e){var r=e.afterDragging,t=e.destination,n=e.displacedBy,i=e.viewport,o=e.forceShouldAnimate,a=e.last;return r.reduce((function(e,r){var l=function(e,r){var t=e.page.marginBox,n={top:r.point.y,right:0,bottom:0,left:r.point.x};return Fe(je(t,n))}(r,n),c=r.descriptor.id;if(e.all.push(c),!wr({target:l,destination:t,viewport:i,withDroppableDisplacement:!0}))return e.invisible[r.descriptor.id]=!0,e;var u={draggableId:c,shouldAnimate:function(e,r,t){if("boolean"==typeof t)return t;if(!r)return!0;var n=r.invisible,i=r.visible;if(n[e])return!1;var o=i[e];return!o||o.shouldAnimate}(c,a,o)};return e.visible[c]=u,e}),{all:[],visible:{},invisible:{}})}function Cr(e){var r=e.insideDestination,t=e.inHomeList,n=e.displacedBy,i=e.destination,o=function(e,r){if(!e.length)return 0;var t=e[e.length-1].descriptor.index;return r.inHomeList?t:t+1}(r,{inHomeList:t});return{displaced:vr,displacedBy:n,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:o}}}}function Or(e){var r=e.draggable,t=e.insideDestination,n=e.destination,i=e.viewport,o=e.displacedBy,a=e.last,l=e.index,c=e.forceShouldAnimate,u=fr(r,n);if(null==l)return Cr({insideDestination:t,inHomeList:u,displacedBy:o,destination:n});var s=nr(t,(function(e){return e.descriptor.index===l}));if(!s)return Cr({insideDestination:t,inHomeList:u,displacedBy:o,destination:n});var d=pr(r,t),p=t.indexOf(s);return{displaced:Sr({afterDragging:d.slice(p),destination:n,displacedBy:o,last:a,viewport:i.frame,forceShouldAnimate:c}),displacedBy:o,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:l}}}}function Pr(e,r){return Boolean(r.effected[e])}var Ar=function(e){var r=e.isMovingForward,t=e.isInHomeList,n=e.draggable,i=e.draggables,o=e.destination,a=e.insideDestination,l=e.previousImpact,u=e.viewport,s=e.afterCritical,d=l.at;if(d||c(!1),"REORDER"===d.type){var p=function(e){var r=e.isMovingForward,t=e.isInHomeList,n=e.insideDestination,i=e.location;if(!n.length)return null;var o=i.index,a=r?o+1:o-1,l=n[0].descriptor.index,c=n[n.length-1].descriptor.index;return a<l||a>(t?c:c+1)?null:a}({isMovingForward:r,isInHomeList:t,location:d.destination,insideDestination:a});return null==p?null:Or({draggable:n,insideDestination:a,destination:o,viewport:u,last:l.displaced,displacedBy:l.displacedBy,index:p})}var f=function(e){var r=e.isMovingForward,t=e.destination,n=e.draggables,i=e.combine,o=e.afterCritical;if(!t.isCombineEnabled)return null;var a=i.draggableId,l=n[a].descriptor.index;return Pr(a,o)?r?l:l-1:r?l+1:l}({isMovingForward:r,destination:o,displaced:l.displaced,draggables:i,combine:d.combine,afterCritical:s});return null==f?null:Or({draggable:n,insideDestination:a,destination:o,viewport:u,last:l.displaced,displacedBy:l.displacedBy,index:f})},Rr=function(e){var r=e.afterCritical,t=e.impact,n=e.draggables,i=dr(t);i||c(!1);var o=i.draggableId,a=n[o].page.borderBox.center,l=function(e){var r=e.displaced,t=e.afterCritical,n=e.combineWith,i=e.displacedBy,o=Boolean(r.visible[n]||r.invisible[n]);return Pr(n,t)?o?Ae:Te(i.point):o?i.point:Ae}({displaced:t.displaced,afterCritical:r,combineWith:o,displacedBy:t.displacedBy});return Re(a,l)},Nr=function(e,r){return r.margin[e.start]+r.borderBox[e.size]/2},Br=function(e,r,t){return r[e.crossAxisStart]+t.margin[e.crossAxisStart]+t.borderBox[e.crossAxisSize]/2},Tr=function(e){var r=e.axis,t=e.moveRelativeTo,n=e.isMoving;return Me(r.line,t.marginBox[r.end]+Nr(r,n),Br(r,t.marginBox,n))},Mr=function(e){var r=e.axis,t=e.moveRelativeTo,n=e.isMoving;return Me(r.line,t.marginBox[r.start]-function(e,r){return r.margin[e.end]+r.borderBox[e.size]/2}(r,n),Br(r,t.marginBox,n))},Lr=function(e){var r=e.impact,t=e.draggable,n=e.draggables,i=e.droppable,o=e.afterCritical,a=ur(i.descriptor.id,n),l=t.page,c=i.axis;if(!a.length)return function(e){var r=e.axis,t=e.moveInto,n=e.isMoving;return Me(r.line,t.contentBox[r.start]+Nr(r,n),Br(r,t.contentBox,n))}({axis:c,moveInto:i.page,isMoving:l});var u=r.displaced,s=r.displacedBy,d=u.all[0];if(d){var p=n[d];if(Pr(d,o))return Mr({axis:c,moveRelativeTo:p.page,isMoving:l});var f=qe(p.page,s.point);return Mr({axis:c,moveRelativeTo:f,isMoving:l})}var g=a[a.length-1];if(g.descriptor.id===t.descriptor.id)return l.borderBox.center;if(Pr(g.descriptor.id,o)){var v=qe(g.page,Te(o.displacedBy.point));return Tr({axis:c,moveRelativeTo:v,isMoving:l})}return Tr({axis:c,moveRelativeTo:g.page,isMoving:l})},Gr=function(e,r){var t=e.frame;return t?Re(r,t.scroll.diff.displacement):r},_r=function(e){var r=function(e){var r=e.impact,t=e.draggable,n=e.droppable,i=e.draggables,o=e.afterCritical,a=t.page.borderBox.center,l=r.at;return n&&l?"REORDER"===l.type?Lr({impact:r,draggable:t,draggables:i,droppable:n,afterCritical:o}):Rr({impact:r,draggables:i,afterCritical:o}):a}(e),t=e.droppable;return t?Gr(t,r):r},Fr=function(e,r){var t=Ne(r,e.scroll.initial),n=Te(t);return{frame:Fe({top:r.y,bottom:r.y+e.frame.height,left:r.x,right:r.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:r,diff:{value:t,displacement:n}}}};function jr(e,r){return e.map((function(e){return r[e]}))}var kr=function(e){var r=e.pageBorderBoxCenter,t=e.draggable,n=function(e,r){return Re(e.scroll.diff.displacement,r)}(e.viewport,r),i=Ne(n,t.page.borderBox.center);return Re(t.client.borderBox.center,i)},Wr=function(e){var r=e.draggable,t=e.destination,n=e.newPageBorderBoxCenter,i=e.viewport,a=e.withDroppableDisplacement,l=e.onlyOnMainAxis,c=void 0!==l&&l,u=Ne(n,r.page.borderBox.center),s={target:Ye(r.page.borderBox,u),destination:t,withDroppableDisplacement:a,viewport:i};return c?function(e){return Dr(o({},e,{isVisibleThroughFrameFn:(r=e.destination.axis,function(e){var t=br(e.top,e.bottom),n=br(e.left,e.right);return function(e){return r===xr?t(e.top)&&t(e.bottom):n(e.left)&&n(e.right)}})}));var r}(s):Er(s)},Ur=function(e){var r=e.isMovingForward,t=e.draggable,n=e.destination,i=e.draggables,a=e.previousImpact,l=e.viewport,u=e.previousPageBorderBoxCenter,s=e.previousClientSelection,d=e.afterCritical;if(!n.isEnabled)return null;var p=ur(n.descriptor.id,i),f=fr(t,n),g=function(e){var r=e.isMovingForward,t=e.draggable,n=e.destination,i=e.insideDestination,a=e.previousImpact;if(!n.isCombineEnabled)return null;if(!sr(a))return null;function l(e){var r={type:"COMBINE",combine:{draggableId:e,droppableId:n.descriptor.id}};return o({},a,{at:r})}var u=a.displaced.all,s=u.length?u[0]:null;if(r)return s?l(s):null;var d=pr(t,i);if(!s)return d.length?l(d[d.length-1].descriptor.id):null;var p=tr(d,(function(e){return e.descriptor.id===s}));-1===p&&c(!1);var f=p-1;return f<0?null:l(d[f].descriptor.id)}({isMovingForward:r,draggable:t,destination:n,insideDestination:p,previousImpact:a})||Ar({isMovingForward:r,isInHomeList:f,draggable:t,draggables:i,destination:n,insideDestination:p,previousImpact:a,viewport:l,afterCritical:d});if(!g)return null;var v=_r({impact:g,draggable:t,droppable:n,draggables:i,afterCritical:d});if(Wr({draggable:t,destination:n,newPageBorderBoxCenter:v,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:kr({pageBorderBoxCenter:v,draggable:t,viewport:l}),impact:g,scrollJumpRequest:null};var m=Ne(v,u);return{clientSelection:s,impact:function(e){var r=e.impact,t=e.viewport,n=e.destination,i=e.draggables,a=e.maxScrollChange,l=Fr(t,Re(t.scroll.current,a)),c=n.frame?Qe(n,Re(n.frame.scroll.current,a)):n,u=r.displaced,s=Sr({afterDragging:jr(u.all,i),destination:n,displacedBy:r.displacedBy,viewport:l.frame,last:u,forceShouldAnimate:!1}),d=Sr({afterDragging:jr(u.all,i),destination:c,displacedBy:r.displacedBy,viewport:t.frame,last:u,forceShouldAnimate:!1}),p={},f={},g=[u,s,d];return u.all.forEach((function(e){var r=function(e,r){for(var t=0;t<r.length;t++){var n=r[t].visible[e];if(n)return n}return null}(e,g);r?f[e]=r:p[e]=!0})),o({},r,{displaced:{all:u.all,invisible:p,visible:f}})}({impact:g,viewport:l,destination:n,draggables:i,maxScrollChange:m}),scrollJumpRequest:m}},Hr=function(e){var r=e.subject.active;return r||c(!1),r},qr=function(e,r){var t=e.page.borderBox.center;return Pr(e.descriptor.id,r)?Ne(t,r.displacedBy.point):t},Vr=function(e,r){var t=e.page.borderBox;return Pr(e.descriptor.id,r)?Ye(t,Te(r.displacedBy.point)):t},zr=er((function(e,r){var t=r[e.line];return{value:t,point:Me(e.line,t)}})),$r=function(e,r){return o({},e,{scroll:o({},e.scroll,{max:r})})},Yr=function(e,r,t){var n=e.frame;fr(r,e)&&c(!1),e.subject.withPlaceholder&&c(!1);var i=zr(e.axis,r.displaceBy).point,a=function(e,r,t){var n=e.axis;if("virtual"===e.descriptor.mode)return Me(n.line,r[n.line]);var i=e.subject.page.contentBox[n.size],o=ur(e.descriptor.id,t).reduce((function(e,r){return e+r.client.marginBox[n.size]}),0)+r[n.line]-i;return o<=0?null:Me(n.line,o)}(e,i,t),l={placeholderSize:i,increasedBy:a,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!n)return o({},e,{subject:Ke({page:e.subject.page,withPlaceholder:l,axis:e.axis,frame:e.frame})});var u=a?Re(n.scroll.max,a):n.scroll.max,s=$r(n,u);return o({},e,{subject:Ke({page:e.subject.page,withPlaceholder:l,axis:e.axis,frame:s}),frame:s})},Jr=function(e){var r=e.isMovingForward,t=e.previousPageBorderBoxCenter,n=e.draggable,i=e.isOver,o=e.draggables,a=e.droppables,l=e.viewport,c=e.afterCritical,u=function(e){var r=e.isMovingForward,t=e.pageBorderBoxCenter,n=e.source,i=e.droppables,o=e.viewport,a=n.subject.active;if(!a)return null;var l=n.axis,c=br(a[l.start],a[l.end]),u=lr(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 hr(o.frame)(Hr(e))})).filter((function(e){var t=Hr(e);return r?a[l.crossAxisEnd]<t[l.crossAxisEnd]:t[l.crossAxisStart]<a[l.crossAxisStart]})).filter((function(e){var r=Hr(e),t=br(r[l.start],r[l.end]);return c(r[l.start])||c(r[l.end])||t(a[l.start])||t(a[l.end])})).sort((function(e,t){var n=Hr(e)[l.crossAxisStart],i=Hr(t)[l.crossAxisStart];return r?n-i:i-n})).filter((function(e,r,t){return Hr(e)[l.crossAxisStart]===Hr(t[0])[l.crossAxisStart]}));if(!u.length)return null;if(1===u.length)return u[0];var s=u.filter((function(e){return br(Hr(e)[l.start],Hr(e)[l.end])(t[l.line])}));return 1===s.length?s[0]:s.length>1?s.sort((function(e,r){return Hr(e)[l.start]-Hr(r)[l.start]}))[0]:u.sort((function(e,r){var n=Ge(t,Je(Hr(e))),i=Ge(t,Je(Hr(r)));return n!==i?n-i:Hr(e)[l.start]-Hr(r)[l.start]}))[0]}({isMovingForward:r,pageBorderBoxCenter:t,source:i,droppables:a,viewport:l});if(!u)return null;var s=ur(u.descriptor.id,o),d=function(e){var r=e.previousPageBorderBoxCenter,t=e.moveRelativeTo,n=e.insideDestination,i=e.draggable,o=e.draggables,a=e.destination,l=e.viewport,c=e.afterCritical;if(!t){if(n.length)return null;var u={displaced:vr,displacedBy:gr,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},s=_r({impact:u,draggable:i,droppable:a,draggables:o,afterCritical:c}),d=fr(i,a)?a:Yr(a,i,o);return Wr({draggable:i,destination:d,newPageBorderBoxCenter:s,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?u:null}var p,f=Boolean(r[a.axis.line]<=t.page.borderBox.center[a.axis.line]),g=(p=t.descriptor.index,t.descriptor.id===i.descriptor.id||f?p:p+1),v=zr(a.axis,i.displaceBy);return Or({draggable:i,insideDestination:n,destination:a,viewport:l,displacedBy:v,last:vr,index:g})}({previousPageBorderBoxCenter:t,destination:u,draggable:n,draggables:o,moveRelativeTo:function(e){var r=e.pageBorderBoxCenter,t=e.viewport,n=e.destination,i=e.insideDestination,o=e.afterCritical;return i.filter((function(e){return Er({target:Vr(e,o),destination:n,viewport:t.frame,withDroppableDisplacement:!0})})).sort((function(e,t){var i=Le(r,Gr(n,qr(e,o))),a=Le(r,Gr(n,qr(t,o)));return i<a?-1:a<i?1:e.descriptor.index-t.descriptor.index}))[0]||null}({pageBorderBoxCenter:t,viewport:l,destination:u,insideDestination:s,afterCritical:c}),insideDestination:s,viewport:l,afterCritical:c});if(!d)return null;var p=_r({impact:d,draggable:n,droppable:u,draggables:o,afterCritical:c});return{clientSelection:kr({pageBorderBoxCenter:p,draggable:n,viewport:l}),impact:d,scrollJumpRequest:null}},Xr=function(e){var r=e.at;return r?"REORDER"===r.type?r.destination.droppableId:r.combine.droppableId:null},Kr=function(e){var r=e.state,t=e.type,n=function(e,r){var t=Xr(e);return t?r[t]:null}(r.impact,r.dimensions.droppables),i=Boolean(n),o=r.dimensions.droppables[r.critical.droppable.id],a=n||o,l=a.axis.direction,c="vertical"===l&&("MOVE_UP"===t||"MOVE_DOWN"===t)||"horizontal"===l&&("MOVE_LEFT"===t||"MOVE_RIGHT"===t);if(c&&!i)return null;var u="MOVE_DOWN"===t||"MOVE_RIGHT"===t,s=r.dimensions.draggables[r.critical.draggable.id],d=r.current.page.borderBoxCenter,p=r.dimensions,f=p.draggables,g=p.droppables;return c?Ur({isMovingForward:u,previousPageBorderBoxCenter:d,draggable:s,destination:a,draggables:f,viewport:r.viewport,previousClientSelection:r.current.client.selection,previousImpact:r.impact,afterCritical:r.afterCritical}):Jr({isMovingForward:u,previousPageBorderBoxCenter:d,draggable:s,isOver:a,draggables:f,droppables:g,viewport:r.viewport,afterCritical:r.afterCritical})};function Qr(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function Zr(e){var r=br(e.top,e.bottom),t=br(e.left,e.right);return function(e){return r(e.y)&&t(e.x)}}function et(e){var r=e.pageBorderBox,t=e.draggable,n=e.droppables,i=lr(n).filter((function(e){if(!e.isEnabled)return!1;var t,n,i=e.subject.active;if(!i)return!1;if(n=i,!((t=r).left<n.right&&t.right>n.left&&t.top<n.bottom&&t.bottom>n.top))return!1;if(Zr(i)(r.center))return!0;var o=e.axis,a=i.center[o.crossAxisLine],l=r[o.crossAxisStart],c=r[o.crossAxisEnd],u=br(i[o.crossAxisStart],i[o.crossAxisEnd]),s=u(l),d=u(c);return!s&&!d||(s?l<a:c>a)}));return i.length?1===i.length?i[0].descriptor.id:function(e){var r=e.pageBorderBox,t=e.draggable,n=e.candidates,i=t.page.borderBox.center,o=n.map((function(e){var t=e.axis,n=Me(e.axis.line,r.center[t.line],e.page.borderBox.center[t.crossAxisLine]);return{id:e.descriptor.id,distance:Le(i,n)}})).sort((function(e,r){return r.distance-e.distance}));return o[0]?o[0].id:null}({pageBorderBox:r,draggable:t,candidates:i}):null}var rt=function(e,r){return Fe(Ye(e,r))};function tt(e){var r=e.displaced,t=e.id;return Boolean(r.visible[t]||r.invisible[t])}var nt=function(e){var r=e.pageOffset,t=e.draggable,n=e.draggables,i=e.droppables,o=e.previousImpact,a=e.viewport,l=e.afterCritical,c=rt(t.page.borderBox,r),u=et({pageBorderBox:c,draggable:t,droppables:i});if(!u)return mr;var s=i[u],d=ur(s.descriptor.id,n),p=function(e,r){var t=e.frame;return t?rt(r,t.scroll.diff.value):r}(s,c);return function(e){var r=e.draggable,t=e.pageBorderBoxWithDroppableScroll,n=e.previousImpact,i=e.destination,o=e.insideDestination,a=e.afterCritical;if(!i.isCombineEnabled)return null;var l=i.axis,c=zr(i.axis,r.displaceBy),u=c.value,s=t[l.start],d=t[l.end],p=nr(pr(r,o),(function(e){var r=e.descriptor.id,t=e.page.borderBox,i=t[l.size]/4,o=Pr(r,a),c=tt({displaced:n.displaced,id:r});return o?c?d>t[l.start]+i&&d<t[l.end]-i:s>t[l.start]-u+i&&s<t[l.end]-u-i:c?d>t[l.start]+u+i&&d<t[l.end]+u-i:s>t[l.start]+i&&s<t[l.end]-i}));return p?{displacedBy:c,displaced:n.displaced,at:{type:"COMBINE",combine:{draggableId:p.descriptor.id,droppableId:i.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:p,draggable:t,previousImpact:o,destination:s,insideDestination:d,afterCritical:l})||function(e){var r=e.pageBorderBoxWithDroppableScroll,t=e.draggable,n=e.destination,i=e.insideDestination,o=e.last,a=e.viewport,l=e.afterCritical,c=n.axis,u=zr(n.axis,t.displaceBy),s=u.value,d=r[c.start],p=r[c.end],f=function(e){var r=e.draggable,t=e.closest,n=e.inHomeList;return t?n&&t.descriptor.index>r.descriptor.index?t.descriptor.index-1:t.descriptor.index:null}({draggable:t,closest:nr(pr(t,i),(function(e){var r=e.descriptor.id,t=e.page.borderBox.center[c.line],n=Pr(r,l),i=tt({displaced:o,id:r});return n?i?p<=t:d<t-s:i?p<=t+s:d<t})),inHomeList:fr(t,n)});return Or({draggable:t,insideDestination:i,destination:n,viewport:a,last:o,displacedBy:u,index:f})}({pageBorderBoxWithDroppableScroll:p,draggable:t,destination:s,insideDestination:d,last:o.displaced,viewport:a,afterCritical:l})},it=function(e,r){var t;return o({},e,((t={})[r.descriptor.id]=r,t))},ot=function(e){var r=e.previousImpact,t=e.impact,n=e.droppables,i=Xr(r),a=Xr(t);if(!i)return n;if(i===a)return n;var l=n[i];if(!l.subject.withPlaceholder)return n;var u=function(e){var r=e.subject.withPlaceholder;r||c(!1);var t=e.frame;if(!t)return o({},e,{subject:Ke({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null})});var n=r.oldFrameMaxScroll;n||c(!1);var i=$r(t,n);return o({},e,{subject:Ke({page:e.subject.page,axis:e.axis,frame:i,withPlaceholder:null}),frame:i})}(l);return it(n,u)},at=function(e){var r=e.state,t=e.clientSelection,n=e.dimensions,i=e.viewport,a=e.impact,l=e.scrollJumpRequest,c=i||r.viewport,u=n||r.dimensions,s=t||r.current.client.selection,d=Ne(s,r.initial.client.selection),p={offset:d,selection:s,borderBoxCenter:Re(r.initial.client.borderBoxCenter,d)},f={selection:Re(p.selection,c.scroll.current),borderBoxCenter:Re(p.borderBoxCenter,c.scroll.current),offset:Re(p.offset,c.scroll.diff.value)},g={client:p,page:f};if("COLLECTING"===r.phase)return o({phase:"COLLECTING"},r,{dimensions:u,viewport:c,current:g});var v=u.draggables[r.critical.draggable.id],m=a||nt({pageOffset:f.offset,draggable:v,draggables:u.draggables,droppables:u.droppables,previousImpact:r.impact,viewport:c,afterCritical:r.afterCritical}),b=function(e){var r=e.draggable,t=e.draggables,n=e.droppables,i=e.previousImpact,o=e.impact,a=ot({previousImpact:i,impact:o,droppables:n}),l=Xr(o);if(!l)return a;var c=n[l];if(fr(r,c))return a;if(c.subject.withPlaceholder)return a;var u=Yr(c,r,t);return it(a,u)}({draggable:v,impact:m,previousImpact:r.impact,draggables:u.draggables,droppables:u.droppables});return o({},r,{current:g,dimensions:{draggables:u.draggables,droppables:b},impact:m,viewport:c,scrollJumpRequest:l||null,forceShouldAnimate:!l&&null})};var lt=function(e){var r=e.impact,t=e.viewport,n=e.draggables,i=e.destination,a=e.forceShouldAnimate,l=r.displaced;return o({},r,{displaced:Sr({afterDragging:function(e,r){return e.map((function(e){return r[e]}))}(l.all,n),destination:i,displacedBy:r.displacedBy,viewport:t.frame,forceShouldAnimate:a,last:l})})},ct=function(e){var r=e.impact,t=e.draggable,n=e.droppable,i=e.draggables,o=e.viewport,a=e.afterCritical,l=_r({impact:r,draggable:t,draggables:i,droppable:n,afterCritical:a});return kr({pageBorderBoxCenter:l,draggable:t,viewport:o})},ut=function(e){var r=e.state,t=e.dimensions,n=e.viewport;"SNAP"!==r.movementMode&&c(!1);var i=r.impact,o=n||r.viewport,a=t||r.dimensions,l=a.draggables,u=a.droppables,s=l[r.critical.draggable.id],d=Xr(i);d||c(!1);var p=u[d],f=lt({impact:i,viewport:o,destination:p,draggables:l}),g=ct({impact:f,draggable:s,droppable:p,draggables:l,viewport:o,afterCritical:r.afterCritical});return at({impact:f,clientSelection:g,state:r,dimensions:a,viewport:o})},st=function(e){var r=e.draggable,t=e.home,n=e.draggables,i=e.viewport,o=zr(t.axis,r.displaceBy),a=ur(t.descriptor.id,n),l=a.indexOf(r);-1===l&&c(!1);var u,s=a.slice(l+1),d=s.reduce((function(e,r){return e[r.descriptor.id]=!0,e}),{}),p={inVirtualList:"virtual"===t.descriptor.mode,displacedBy:o,effected:d};return{impact:{displaced:Sr({afterDragging:s,destination:t,displacedBy:o,last:null,viewport:i.frame,forceShouldAnimate:!1}),displacedBy:o,at:{type:"REORDER",destination:(u=r.descriptor,{index:u.index,droppableId:u.droppableId})}},afterCritical:p}},dt=function(e){var r=e.additions,t=e.updatedDroppables,n=e.viewport,i=n.scroll.diff.value;return r.map((function(e){var r=e.descriptor.droppableId,a=function(e){var r=e.frame;return r||c(!1),r}(t[r]).scroll.diff.value;return function(e){var r=e.draggable,t=e.offset,n=e.initialWindowScroll,i=qe(r.client,t),a=Ve(i,n);return o({},r,{placeholder:o({},r.placeholder,{client:i}),client:i,page:a})}({draggable:e,offset:Re(i,a),initialWindowScroll:n.scroll.initial})}))},pt=function(e){return"SNAP"===e.movementMode},ft=function(e,r,t){var n=function(e,r){return{draggables:e.draggables,droppables:it(e.droppables,r)}}(e.dimensions,r);return!pt(e)||t?at({state:e,dimensions:n}):ut({state:e,dimensions:n})};function gt(e){return e.isDragging&&"SNAP"===e.movementMode?o({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var vt={phase:"IDLE",completed:null,shouldFlush:!1},mt=function(e,r){if(void 0===e&&(e=vt),"FLUSH"===r.type)return o({},vt,{shouldFlush:!0});if("INITIAL_PUBLISH"===r.type){"IDLE"!==e.phase&&c(!1);var t=r.payload,n=t.critical,i=t.clientSelection,a=t.viewport,l=t.dimensions,u=t.movementMode,s=l.draggables[n.draggable.id],d=l.droppables[n.droppable.id],p={selection:i,borderBoxCenter:s.client.borderBox.center,offset:Ae},f={client:p,page:{selection:Re(p.selection,a.scroll.initial),borderBoxCenter:Re(p.selection,a.scroll.initial),offset:Re(p.selection,a.scroll.diff.value)}},g=lr(l.droppables).every((function(e){return!e.isFixedOnPage})),v=st({draggable:s,home:d,draggables:l.draggables,viewport:a}),m=v.impact;return{phase:"DRAGGING",isDragging:!0,critical:n,movementMode:u,dimensions:l,initial:f,current:f,isWindowScrollAllowed:g,impact:m,afterCritical:v.afterCritical,onLiftImpact:m,viewport:a,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===r.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&c(!1),o({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===r.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&c(!1),function(e){var r=e.state,t=e.published,n=t.modified.map((function(e){var t=r.dimensions.droppables[e.droppableId];return Qe(t,e.scroll)})),i=o({},r.dimensions.droppables,{},or(n)),a=ar(dt({additions:t.additions,updatedDroppables:i,viewport:r.viewport})),l=o({},r.dimensions.draggables,{},a);t.removals.forEach((function(e){delete l[e]}));var c={droppables:i,draggables:l},u=Xr(r.impact),s=u?c.droppables[u]:null,d=c.draggables[r.critical.draggable.id],p=c.droppables[r.critical.droppable.id],f=st({draggable:d,home:p,draggables:l,viewport:r.viewport}),g=f.impact,v=f.afterCritical,m=s&&s.isCombineEnabled?r.impact:g,b=nt({pageOffset:r.current.page.offset,draggable:c.draggables[r.critical.draggable.id],draggables:c.draggables,droppables:c.droppables,previousImpact:m,viewport:r.viewport,afterCritical:v}),h=o({phase:"DRAGGING"},r,{phase:"DRAGGING",impact:b,onLiftImpact:g,dimensions:c,afterCritical:v,forceShouldAnimate:!1});return"COLLECTING"===r.phase?h:o({phase:"DROP_PENDING"},h,{phase:"DROP_PENDING",reason:r.reason,isWaiting:!1})}({state:e,published:r.payload});if("MOVE"===r.type){if("DROP_PENDING"===e.phase)return e;Qr(e)||c(!1);var b=r.payload.client;return Be(b,e.current.client.selection)?e:at({state:e,clientSelection:b,impact:pt(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===r.type){if("DROP_PENDING"===e.phase)return gt(e);if("COLLECTING"===e.phase)return gt(e);Qr(e)||c(!1);var h=r.payload,y=h.id,x=h.newScroll,I=e.dimensions.droppables[y];if(!I)return e;var D=Qe(I,x);return ft(e,D,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===r.type){if("DROP_PENDING"===e.phase)return e;Qr(e)||c(!1);var w=r.payload,E=w.id,S=w.isEnabled,C=e.dimensions.droppables[E];C||c(!1),C.isEnabled===S&&c(!1);var O=o({},C,{isEnabled:S});return ft(e,O,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===r.type){if("DROP_PENDING"===e.phase)return e;Qr(e)||c(!1);var P=r.payload,A=P.id,R=P.isCombineEnabled,N=e.dimensions.droppables[A];N||c(!1),N.isCombineEnabled===R&&c(!1);var B=o({},N,{isCombineEnabled:R});return ft(e,B,!0)}if("MOVE_BY_WINDOW_SCROLL"===r.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;Qr(e)||c(!1),e.isWindowScrollAllowed||c(!1);var T=r.payload.newScroll;if(Be(e.viewport.scroll.current,T))return gt(e);var M=Fr(e.viewport,T);return pt(e)?ut({state:e,viewport:M}):at({state:e,viewport:M})}if("UPDATE_VIEWPORT_MAX_SCROLL"===r.type){if(!Qr(e))return e;var L=r.payload.maxScroll;if(Be(L,e.viewport.scroll.max))return e;var G=o({},e.viewport,{scroll:o({},e.viewport.scroll,{max:L})});return o({phase:"DRAGGING"},e,{viewport:G})}if("MOVE_UP"===r.type||"MOVE_DOWN"===r.type||"MOVE_LEFT"===r.type||"MOVE_RIGHT"===r.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&c(!1);var _=Kr({state:e,type:r.type});return _?at({state:e,impact:_.impact,clientSelection:_.clientSelection,scrollJumpRequest:_.scrollJumpRequest}):e}if("DROP_PENDING"===r.type){var F=r.payload.reason;return"COLLECTING"!==e.phase&&c(!1),o({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:F})}if("DROP_ANIMATE"===r.type){var j=r.payload,k=j.completed,W=j.dropDuration,U=j.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&c(!1),{phase:"DROP_ANIMATING",completed:k,dropDuration:W,newHomeClientOffset:U,dimensions:e.dimensions}}return"DROP_COMPLETE"===r.type?{phase:"IDLE",completed:r.payload.completed,shouldFlush:!1}:e},bt=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},ht=function(){return{type:"COLLECTION_STARTING",payload:null}},yt=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},xt=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},It=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},Dt=function(e){return{type:"MOVE",payload:e}},wt=function(){return{type:"MOVE_UP",payload:null}},Et=function(){return{type:"MOVE_DOWN",payload:null}},St=function(){return{type:"MOVE_RIGHT",payload:null}},Ct=function(){return{type:"MOVE_LEFT",payload:null}},Ot=function(e){return{type:"DROP_COMPLETE",payload:e}},Pt=function(e){return{type:"DROP",payload:e}},At=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}},Rt="cubic-bezier(.2,1,.1,1)",Nt={drop:0,combining:.7},Bt={drop:.75},Tt=.2+"s "+"cubic-bezier(0.2, 0, 0, 1)",Mt={fluid:"opacity "+Tt,snap:"transform "+Tt+", opacity "+Tt,drop:function(e){var r=e+"s "+Rt;return"transform "+r+", opacity "+r},outOfTheWay:"transform "+Tt,placeholder:"height "+Tt+", width "+Tt+", margin "+Tt},Lt=function(e){return Be(e,Ae)?null:"translate("+e.x+"px, "+e.y+"px)"},Gt=Lt,_t=function(e,r){var t=Lt(e);return t?r?t+" scale("+Bt.drop+")":t:null},Ft=.33,jt=.55,kt=jt-Ft,Wt=function(e){var r=e.getState,t=e.dispatch;return function(e){return function(n){if("DROP"===n.type){var i=r(),a=n.payload.reason;if("COLLECTING"!==i.phase){if("IDLE"!==i.phase){"DROP_PENDING"===i.phase&&i.isWaiting&&c(!1),"DRAGGING"!==i.phase&&"DROP_PENDING"!==i.phase&&c(!1);var l=i.critical,u=i.dimensions,s=u.draggables[i.critical.draggable.id],d=function(e){var r=e.draggables,t=e.reason,n=e.lastImpact,i=e.home,a=e.viewport,l=e.onLiftImpact;return n.at&&"DROP"===t?"REORDER"===n.at.type?{impact:n,didDropInsideDroppable:!0}:{impact:o({},n,{displaced:vr}),didDropInsideDroppable:!0}:{impact:lt({draggables:r,impact:l,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}),p=d.impact,f=d.didDropInsideDroppable,g=f?sr(p):null,v=f?dr(p):null,m={index:l.draggable.index,droppableId:l.droppable.id},b={draggableId:s.descriptor.id,type:s.descriptor.type,source:m,reason:a,mode:i.movementMode,destination:g,combine:v},h=function(e){var r=e.impact,t=e.draggable,n=e.dimensions,i=e.viewport,o=e.afterCritical,a=n.draggables,l=n.droppables,c=Xr(r),u=c?l[c]:null,s=l[t.descriptor.droppableId],d=ct({impact:r,draggable:t,draggables:a,afterCritical:o,droppable:u||s,viewport:i});return Ne(d,t.client.borderBox.center)}({impact:p,draggable:s,dimensions:u,viewport:i.viewport,afterCritical:i.afterCritical}),y={critical:i.critical,afterCritical:i.afterCritical,result:b,impact:p};if(!Be(i.current.client.offset,h)||Boolean(b.combine)){var x=function(e){var r=e.current,t=e.destination,n=e.reason,i=Le(r,t);if(i<=0)return Ft;if(i>=1500)return jt;var o=Ft+kt*(i/1500);return Number(("CANCEL"===n?.6*o:o).toFixed(2))}({current:i.current.client.offset,destination:h,reason:a});t(function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:h,dropDuration:x,completed:y}))}else t(Ot({completed:y}))}}else t(function(e){return{type:"DROP_PENDING",payload:e}}({reason:a}))}else e(n)}}},Ut=function(e){var r=[],t=null,n=function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];r=i,t||(t=requestAnimationFrame((function(){t=null,e.apply(void 0,r)})))};return n.cancel=function(){t&&(cancelAnimationFrame(t),t=null)},n},Ht=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function qt(e){var r=e.onWindowScroll;var t=Ut((function(){r(Ht())})),n=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(r){r.target!==window&&r.target!==window.document||e()}}}(t),o=i;function l(){return o!==i}return{start:function(){l()&&c(!1),o=a(window,[n])},stop:function(){l()||c(!1),t.cancel(),o(),o=i},isActive:l}}var Vt=function(e){var r=qt({onWindowScroll:function(r){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:r}})}});return function(e){return function(t){r.isActive()||"INITIAL_PUBLISH"!==t.type||r.start(),r.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(t)&&r.stop(),e(t)}}},zt=function(){var e=[];return{add:function(r){var t=setTimeout((function(){return function(r){var t=tr(e,(function(e){return e.timerId===r}));-1===t&&c(!1),e.splice(t,1)[0].callback()}(t)})),n={timerId:t,callback:r};e.push(n)},flush:function(){if(e.length){var r=[].concat(e);e.length=0,r.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}},$t=function(e,r){r()},Yt=function(e,r){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:r}},Jt=function(e,r,t,n){if(e){var i=function(e){var r=!1,t=!1,n=setTimeout((function(){t=!0})),i=function(i){r||t||(r=!0,e(i),clearTimeout(n))};return i.wasCalled=function(){return r},i}(t);e(r,{announce:i}),i.wasCalled()||t(n(r))}else t(n(r))},Xt=function(e,r){var t=function(e,r){var t=zt(),n=null,i=function(t){n||c(!1),n=null,$t(0,(function(){return Jt(e().onDragEnd,t,r,g.onDragEnd)}))};return{beforeCapture:function(r,t){n&&c(!1),$t(0,(function(){var n=e().onBeforeCapture;n&&n({draggableId:r,mode:t})}))},beforeStart:function(r,t){n&&c(!1),$t(0,(function(){var n=e().onBeforeDragStart;n&&n(Yt(r,t))}))},start:function(i,o){n&&c(!1);var a=Yt(i,o);n={mode:o,lastCritical:i,lastLocation:a.source,lastCombine:null},t.add((function(){$t(0,(function(){return Jt(e().onDragStart,a,r,g.onDragStart)}))}))},update:function(i,a){var l=sr(a),u=dr(a);n||c(!1);var s=!function(e,r){if(e===r)return!0;var t=e.draggable.id===r.draggable.id&&e.draggable.droppableId===r.draggable.droppableId&&e.draggable.type===r.draggable.type&&e.draggable.index===r.draggable.index,n=e.droppable.id===r.droppable.id&&e.droppable.type===r.droppable.type;return t&&n}(i,n.lastCritical);s&&(n.lastCritical=i);var d,p,f=(d=n.lastLocation,p=l,!(null==d&&null==p||null!=d&&null!=p&&d.droppableId===p.droppableId&&d.index===p.index));f&&(n.lastLocation=l);var v=!function(e,r){return null==e&&null==r||null!=e&&null!=r&&(e.draggableId===r.draggableId&&e.droppableId===r.droppableId)}(n.lastCombine,u);if(v&&(n.lastCombine=u),s||f||v){var m=o({},Yt(i,n.mode),{combine:u,destination:l});t.add((function(){$t(0,(function(){return Jt(e().onDragUpdate,m,r,g.onDragUpdate)}))}))}},flush:function(){n||c(!1),t.flush()},drop:i,abort:function(){if(n){var e=o({},Yt(n.lastCritical,n.mode),{combine:null,destination:null,reason:"CANCEL"});i(e)}}}}(e,r);return function(e){return function(r){return function(n){if("BEFORE_INITIAL_CAPTURE"!==n.type){if("INITIAL_PUBLISH"===n.type){var i=n.payload.critical;return t.beforeStart(i,n.payload.movementMode),r(n),void t.start(i,n.payload.movementMode)}if("DROP_COMPLETE"===n.type){var o=n.payload.completed.result;return t.flush(),r(n),void t.drop(o)}if(r(n),"FLUSH"!==n.type){var a=e.getState();"DRAGGING"===a.phase&&t.update(a.critical,a.impact)}else t.abort()}else t.beforeCapture(n.payload.draggableId,n.payload.movementMode)}}}},Kt=function(e){return function(r){return function(t){if("DROP_ANIMATION_FINISHED"===t.type){var n=e.getState();"DROP_ANIMATING"!==n.phase&&c(!1),e.dispatch(Ot({completed:n.completed}))}else r(t)}}},Qt=function(e){var r=null,t=null;return function(n){return function(i){if("FLUSH"!==i.type&&"DROP_COMPLETE"!==i.type&&"DROP_ANIMATION_FINISHED"!==i.type||(t&&(cancelAnimationFrame(t),t=null),r&&(r(),r=null)),n(i),"DROP_ANIMATE"===i.type){var o={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};t=requestAnimationFrame((function(){t=null,r=a(window,[o])}))}}}},Zt=function(e){return function(r){return function(t){if(r(t),"PUBLISH_WHILE_DRAGGING"===t.type){var n=e.getState();"DROP_PENDING"===n.phase&&(n.isWaiting||e.dispatch(Pt({reason:n.reason})))}}}},en=S,rn=function(e){var r,t=e.dimensionMarshal,n=e.focusMarshal,i=e.styleMarshal,o=e.getResponders,a=e.announce,l=e.autoScroller;return y(mt,en(function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return function(e){return function(){var t=e.apply(void 0,arguments),n=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},i={getState:t.getState,dispatch:function(){return n.apply(void 0,arguments)}},o=r.map((function(e){return e(i)}));return E({},t,{dispatch:n=S.apply(void 0,o)(t.dispatch)})}}}((r=i,function(){return function(e){return function(t){"INITIAL_PUBLISH"===t.type&&r.dragging(),"DROP_ANIMATE"===t.type&&r.dropping(t.payload.completed.result.reason),"FLUSH"!==t.type&&"DROP_COMPLETE"!==t.type||r.resting(),e(t)}}}),function(e){return function(){return function(r){return function(t){"DROP_COMPLETE"!==t.type&&"FLUSH"!==t.type&&"DROP_ANIMATE"!==t.type||e.stopPublishing(),r(t)}}}}(t),function(e){return function(r){var t=r.getState,n=r.dispatch;return function(r){return function(i){if("LIFT"===i.type){var o=i.payload,a=o.id,l=o.clientSelection,u=o.movementMode,s=t();"DROP_ANIMATING"===s.phase&&n(Ot({completed:s.completed})),"IDLE"!==t().phase&&c(!1),n({type:"FLUSH",payload:null}),n({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:u}});var d={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===u}},p=e.startPublishing(d),f=p.critical,g=p.dimensions,v=p.viewport;n(function(e){return{type:"INITIAL_PUBLISH",payload:e}}({critical:f,dimensions:g,clientSelection:l,movementMode:u,viewport:v}))}else r(i)}}}}(t),Wt,Kt,Qt,Zt,function(e){return function(r){return function(t){return function(n){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n))return e.stop(),void t(n);if("INITIAL_PUBLISH"===n.type){t(n);var i=r.getState();return"DRAGGING"!==i.phase&&c(!1),void e.start(i)}t(n),e.scroll(r.getState())}}}}(l),Vt,function(e){var r=!1;return function(){return function(t){return function(n){if("INITIAL_PUBLISH"===n.type)return r=!0,e.tryRecordFocus(n.payload.critical.draggable.id),t(n),void e.tryRestoreFocusRecorded();if(t(n),r){if("FLUSH"===n.type)return r=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===n.type){r=!1;var i=n.payload.completed.result;i.combine&&e.tryShiftRecord(i.draggableId,i.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(n),Xt(o,a))))};var tn=function(e){var r=e.scrollHeight,t=e.scrollWidth,n=e.height,i=e.width,o=Ne({x:t,y:r},{x:i,y:n});return{x:Math.max(0,o.x),y:Math.max(0,o.y)}},nn=function(){var e=document.documentElement;return e||c(!1),e},on=function(){var e=nn();return tn({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},an=function(e){var r=e.critical,t=e.scrollOptions,n=e.registry,i=function(){var e=Ht(),r=on(),t=e.y,n=e.x,i=nn(),o=i.clientWidth,a=i.clientHeight;return{frame:Fe({top:t,left:n,right:n+o,bottom:t+a}),scroll:{initial:e,current:e,max:r,diff:{value:Ae,displacement:Ae}}}}(),o=i.scroll.current,a=r.droppable,l=n.droppable.getAllByType(a.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(o,t)})),c=n.draggable.getAllByType(r.draggable.type).map((function(e){return e.getDimension(o)}));return{dimensions:{draggables:ar(c),droppables:or(l)},critical:r,viewport:i}};function ln(e,r,t){return t.descriptor.id!==r.id&&(t.descriptor.type===r.type&&"virtual"===e.droppable.getById(t.descriptor.droppableId).descriptor.mode)}var cn,un,sn=function(e,r){var t=null,n=function(e){var r=e.registry,t=e.callbacks,n={additions:{},removals:{},modified:{}},i=null,o=function(){i||(t.collectionStarting(),i=requestAnimationFrame((function(){i=null;var e=n,o=e.additions,a=e.removals,l=e.modified,c=Object.keys(o).map((function(e){return r.draggable.getById(e).getDimension(Ae)})).sort((function(e,r){return e.descriptor.index-r.descriptor.index})),u=Object.keys(l).map((function(e){return{droppableId:e,scroll:r.droppable.getById(e).callbacks.getScrollWhileDragging()}})),s={additions:c,removals:Object.keys(a),modified:u};n={additions:{},removals:{},modified:{}},t.publish(s)})))};return{add:function(e){var r=e.descriptor.id;n.additions[r]=e,n.modified[e.descriptor.droppableId]=!0,n.removals[r]&&delete n.removals[r],o()},remove:function(e){var r=e.descriptor;n.removals[r.id]=!0,n.modified[r.droppableId]=!0,n.additions[r.id]&&delete n.additions[r.id],o()},stop:function(){i&&(cancelAnimationFrame(i),i=null,n={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:r.publishWhileDragging,collectionStarting:r.collectionStarting},registry:e}),i=function(r){t||c(!1);var i=t.critical.draggable;"ADDITION"===r.type&&ln(e,i,r.value)&&n.add(r.value),"REMOVAL"===r.type&&ln(e,i,r.value)&&n.remove(r.value)};return{updateDroppableIsEnabled:function(n,i){e.droppable.exists(n)||c(!1),t&&r.updateDroppableIsEnabled({id:n,isEnabled:i})},updateDroppableIsCombineEnabled:function(n,i){t&&(e.droppable.exists(n)||c(!1),r.updateDroppableIsCombineEnabled({id:n,isCombineEnabled:i}))},scrollDroppable:function(r,n){t&&e.droppable.getById(r).callbacks.scroll(n)},updateDroppableScroll:function(n,i){t&&(e.droppable.exists(n)||c(!1),r.updateDroppableScroll({id:n,newScroll:i}))},startPublishing:function(r){t&&c(!1);var n=e.draggable.getById(r.draggableId),o=e.droppable.getById(n.descriptor.droppableId),a={draggable:n.descriptor,droppable:o.descriptor},l=e.subscribe(i);return t={critical:a,unsubscribe:l},an({critical:a,registry:e,scrollOptions:r.scrollOptions})},stopPublishing:function(){if(t){n.stop();var r=t.critical.droppable;e.droppable.getAllByType(r.type).forEach((function(e){return e.callbacks.dragStopped()})),t.unsubscribe(),t=null}}}},dn=function(e,r){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==r&&"DROP"===e.completed.result.reason)},pn=function(e){window.scrollBy(e.x,e.y)},fn=er((function(e){return lr(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),gn=function(e){var r=e.center,t=e.destination,n=e.droppables;if(t){var i=n[t];return i.frame?i:null}return function(e,r){return nr(fn(r),(function(r){return r.frame||c(!1),Zr(r.frame.pageMarginBox)(e)}))}(r,n)},vn=function(e){var r=e.startOfRange,t=e.endOfRange,n=e.current,i=t-r;return 0===i?0:(n-r)/i},mn={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(e){return Math.pow(e,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},bn=mn.durationDampening.accelerateAt,hn=mn.durationDampening.stopDampeningAt,yn=function(e){var r=e.configOverride,t=e.distanceToEdge,n=e.dragStartTime,i=e.shouldUseTimeDampening,o=function(e,r,t){if(e>r.startScrollingFrom)return 0;var n=(null==t?void 0:t.maxPixelScroll)||mn.maxPixelScroll;if(e<=r.maxScrollValueAt)return n;if(e===r.startScrollingFrom)return 1;var i=1-vn({startOfRange:r.maxScrollValueAt,endOfRange:r.startScrollingFrom,current:e}),o=n*mn.ease(i);return Math.ceil(o)}(t,e.thresholds,r);return 0===o?0:i?Math.max(function(e,r,t){var n,i,o=(null==t||null==(n=t.durationDampening)?void 0:n.accelerateAt)||bn,a=(null==t||null==(i=t.durationDampening)?void 0:i.stopDampeningAt)||hn,l=(null==t?void 0:t.ease)||mn.ease,c=r,u=a,s=Date.now()-c;if(s>=a)return e;if(s<o)return 1;var d=e*l(vn({startOfRange:o,endOfRange:u,current:s}));return Math.ceil(d)}(o,n,r),1):o},xn=function(e){var r=e.axis,t=e.configOverride,n=e.distanceToEdges,i=e.dragStartTime,o=e.shouldUseTimeDampening,a=e.thresholds;return n[r.end]<n[r.start]?yn({configOverride:t,distanceToEdge:n[r.end],dragStartTime:i,shouldUseTimeDampening:o,thresholds:a}):-1*yn({configOverride:t,distanceToEdge:n[r.start],dragStartTime:i,shouldUseTimeDampening:o,thresholds:a})},In=function(e){var r=e.axis,t=e.bufferMinScroll,n=e.center,i=e.centerInitial,o=e.container,a=e.containerScroll,l=e.distanceToEdges,c=e.thresholds,u=e.windowScrollOffset,s=l[r.end]<c.startScrollingFrom,d=n[r.line]>o[r.size]-c.startScrollingFrom+u[r.line]||s;return{inThresholdStart:n[r.line]<c.startScrollingFrom+u[r.line],inThresholdEnd:d,draggedTowardsStart:n[r.line]<i[r.line]-t,draggedTowardsEnd:n[r.line]>i[r.line]+t,scrolledTowardsStart:a.initial[r.line]>a.current[r.line],scrolledTowardsEnd:a.initial[r.line]<a.current[r.line]}},Dn=function(e){var r=e.bufferMinScroll,t=void 0===r?24:r,n=e.center,i=e.centerInitial,o=e.container,a=e.containerScroll,l=e.distanceToEdges,c=e.scroll,u=function(e){var r=e.bufferMinScroll,t=e.center,n=e.centerInitial,i=e.container,o=e.containerScroll,a=e.distanceToEdges,l=e.thresholdsHorizontal,c=e.thresholdsVertical,u=e.windowScrollOffset;return{xAxis:In({axis:Ir,bufferMinScroll:r,center:t,centerInitial:n,container:i,containerScroll:o,distanceToEdges:a,thresholds:l,windowScrollOffset:u}),yAxis:In({axis:xr,bufferMinScroll:r,center:t,centerInitial:n,container:i,containerScroll:o,distanceToEdges:a,thresholds:c,windowScrollOffset:u})}}({bufferMinScroll:t,center:n,centerInitial:i,container:o,containerScroll:a,distanceToEdges:l,thresholdsHorizontal:e.thresholdsHorizontal,thresholdsVertical:e.thresholdsVertical,windowScrollOffset:e.windowScrollOffset}),s=u.xAxis,d=u.yAxis;return s.inThresholdStart?s.draggedTowardsStart||s.scrolledTowardsEnd||(c.x=0):s.inThresholdEnd&&(s.draggedTowardsEnd||s.scrolledTowardsStart||(c.x=0)),d.inThresholdStart?d.draggedTowardsStart||d.scrolledTowardsEnd||(c.y=0):d.inThresholdEnd&&(d.draggedTowardsEnd||d.scrolledTowardsStart||(c.y=0)),c},wn=function(e,r,t){var n=(null==t?void 0:t.startFromPercentage)||mn.startFromPercentage,i=(null==t?void 0:t.maxScrollAtPercentage)||mn.maxScrollAtPercentage;return{startScrollingFrom:e[r.size]*n,maxScrollValueAt:e[r.size]*i}},En=_e((function(e){return 0===e?0:e})),Sn=function(e){var r=e.dragStartTime,t=e.container,n=e.containerScroll,i=e.subject,o=e.center,a=e.centerInitial,l=e.shouldUseTimeDampening,c=e.fluidScrollerOptions,u=e.windowScrollOffset,s=void 0===u?Ae:u,d={top:o.y-t.top,right:t.right-o.x,bottom:t.bottom-o.y,left:o.x-t.left},p=wn(t,xr,null==c?void 0:c.configOverride),f=wn(t,Ir,null==c?void 0:c.configOverride),g=xn({axis:xr,configOverride:null==c?void 0:c.configOverride,distanceToEdges:d,dragStartTime:r,shouldUseTimeDampening:l,thresholds:p}),v=xn({axis:Ir,configOverride:null==c?void 0:c.configOverride,distanceToEdges:d,dragStartTime:r,shouldUseTimeDampening:l,thresholds:f}),m=En({x:v,y:g});if(Be(m,Ae))return null;var b=function(e){var r=e.container,t=e.subject,n=e.proposedScroll,i=t.height>r.height,o=t.width>r.width;return o||i?o&&i?null:{x:o?0:n.x,y:i?0:n.y}:n}({container:t,subject:i,proposedScroll:m});if(!b)return null;var h=b;return c&&(c.bufferThresholds&&(h=Dn({bufferMinScroll:null==c?void 0:c.bufferMinScroll,center:o,centerInitial:a,container:t,containerScroll:n,distanceToEdges:d,scroll:h,thresholdsHorizontal:f,thresholdsVertical:p,windowScrollOffset:s})),c.thruGetScroll&&(h=c.thruGetScroll({center:o,centerInitial:a,container:t,containerScroll:n,distanceToEdges:d,scroll:h,thresholdsHorizontal:f,thresholdsVertical:p,windowScrollOffset:s}))),Be(h,Ae)?null:h},Cn=_e((function(e){return 0===e?0:e>0?1:-1})),On=(cn=function(e,r){return e<0?e:e>r?e-r:0},function(e){var r=e.current,t=e.max,n=e.change,i=Re(r,n),o={x:cn(i.x,t.x),y:cn(i.y,t.y)};return Be(o,Ae)?null:o}),Pn=function(e){var r=e.max,t=e.current,n=e.change,i={x:Math.max(t.x,r.x),y:Math.max(t.y,r.y)},o=Cn(n),a=On({max:i,current:t,change:o});return!a||(0!==o.x&&0===a.x||0!==o.y&&0===a.y)},An=function(e,r){return Pn({current:e.scroll.current,max:e.scroll.max,change:r})},Rn=function(e,r){var t=e.frame;return!!t&&Pn({current:t.scroll.current,max:t.scroll.max,change:r})},Nn=function(e){var r=e.state,t=e.dragStartTime,n=e.shouldUseTimeDampening,i=e.scrollWindow,o=e.scrollDroppable,a=e.fluidScrollerOptions,l=r.current.page.borderBoxCenter,c=r.initial.page.borderBoxCenter,u=r.dimensions.draggables[r.critical.draggable.id].page.marginBox;if(r.isWindowScrollAllowed){var s=function(e){var r=e.viewport,t=e.subject,n=e.center,i=e.centerInitial,o=e.dragStartTime,a=e.shouldUseTimeDampening,l=e.fluidScrollerOptions,c={x:r.scroll.current.x,y:r.scroll.current.y},u=Sn({dragStartTime:o,container:r.frame,containerScroll:r.scroll,subject:t,center:n,centerInitial:i,shouldUseTimeDampening:a,fluidScrollerOptions:l,windowScrollOffset:c});return u&&An(r,u)?u:null}({dragStartTime:t,viewport:r.viewport,subject:u,center:l,centerInitial:c,shouldUseTimeDampening:n,fluidScrollerOptions:a});if(s)return void i(s)}var d=gn({center:l,destination:Xr(r.impact),droppables:r.dimensions.droppables});if(d){var p=function(e){var r=e.droppable,t=e.subject,n=e.center,i=e.centerInitial,o=e.dragStartTime,a=e.shouldUseTimeDampening,l=e.fluidScrollerOptions,c=r.frame;if(!c)return null;var u=Sn({dragStartTime:o,container:c.pageMarginBox,containerScroll:c.scroll,subject:t,center:n,centerInitial:i,shouldUseTimeDampening:a,fluidScrollerOptions:l});return u&&Rn(r,u)?u:null}({dragStartTime:t,droppable:d,subject:u,center:l,centerInitial:c,shouldUseTimeDampening:n,fluidScrollerOptions:a});p&&o(d.descriptor.id,p)}},Bn=function(e){var r=e.scrollWindow,t=e.scrollDroppable,n=e.fluidScrollerOptions,i=Ut(r),o=Ut(t),a=null,l=function(e){a||c(!1);var r=a,t=r.shouldUseTimeDampening,l=r.dragStartTime;Nn({state:e,scrollWindow:i,scrollDroppable:o,dragStartTime:l,shouldUseTimeDampening:t,fluidScrollerOptions:n})};return{start:function(e){a&&c(!1);var r=Date.now(),t=!1,i=function(){t=!0};Nn({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:i,scrollDroppable:i,fluidScrollerOptions:n}),a={dragStartTime:r,shouldUseTimeDampening:t},t&&l(e)},stop:function(){a&&(i.cancel(),o.cancel(),a=null)},scroll:l}},Tn=function(e){var r=e.move,t=e.scrollDroppable,n=e.scrollWindow,i=function(e,r){if(!Rn(e,r))return r;var n=function(e,r){var t=e.frame;return t&&Rn(e,r)?On({current:t.scroll.current,max:t.scroll.max,change:r}):null}(e,r);if(!n)return t(e.descriptor.id,r),null;var i=Ne(r,n);return t(e.descriptor.id,i),Ne(r,i)},o=function(e,r,t){if(!e)return t;if(!An(r,t))return t;var i=function(e,r){if(!An(e,r))return null;var t=e.scroll.max,n=e.scroll.current;return On({current:n,max:t,change:r})}(r,t);if(!i)return n(t),null;var o=Ne(t,i);return n(o),Ne(t,o)};return function(e){var t=e.scrollJumpRequest;if(t){var n=Xr(e.impact);n||c(!1);var a=i(e.dimensions.droppables[n],t);if(a){var l=e.viewport,u=o(e.isWindowScrollAllowed,l,a);u&&function(e,t){var n=Re(e.current.client.selection,t);r({client:n})}(e,u)}}}},Mn="data-rbd",Ln={base:un=Mn+"-drag-handle",draggableId:un+"-draggable-id",contextId:un+"-context-id"},Gn=function(){var e=Mn+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),_n=function(){var e=Mn+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Fn={contextId:Mn+"-scroll-container-context-id"},jn=function(e,r){return e.map((function(e){var t=e.styles[r];return t?e.selector+" { "+t+" }":""})).join(" ")},kn="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,Wn=function(){var e=document.querySelector("head");return e||c(!1),e},Un=function(e){var r=document.createElement("style");return e&&r.setAttribute("nonce",e),r.type="text/css",r};function Hn(e,t){var n=Oe((function(){return function(e){var r,t,n,i=(r=e,function(e){return"["+e+'="'+r+'"]'}),o=(t="\n cursor: -webkit-grab;\n cursor: grab;\n ",{selector:i(Ln.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=[(n="\n transition: "+Mt.outOfTheWay+";\n ",{selector:i(Gn.contextId),styles:{dragging:n,dropAnimating:n,userCancel:n}}),o,{selector:i(_n.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:jn(a,"always"),resting:jn(a,"resting"),dragging:jn(a,"dragging"),dropAnimating:jn(a,"dropAnimating"),userCancel:jn(a,"userCancel")}}(e)}),[e]),i=r.useRef(null),o=r.useRef(null),a=Pe(er((function(e){var r=o.current;r||c(!1),r.textContent=e})),[]),l=Pe((function(e){var r=i.current;r||c(!1),r.textContent=e}),[]);kn((function(){(i.current||o.current)&&c(!1);var r=Un(t),u=Un(t);return i.current=r,o.current=u,r.setAttribute(Mn+"-always",e),u.setAttribute(Mn+"-dynamic",e),Wn().appendChild(r),Wn().appendChild(u),l(n.always),a(n.resting),function(){var e=function(e){var r=e.current;r||c(!1),Wn().removeChild(r),e.current=null};e(i),e(o)}}),[t,l,a,n.always,n.resting,e]);var u=Pe((function(){return a(n.dragging)}),[a,n.dragging]),s=Pe((function(e){a("DROP"!==e?n.userCancel:n.dropAnimating)}),[a,n.dropAnimating,n.userCancel]),d=Pe((function(){o.current&&a(n.resting)}),[a,n.resting]);return Oe((function(){return{dragging:u,dropping:s,resting:d}}),[u,s,d])}var qn=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function Vn(e){return e instanceof qn(e).HTMLElement}function zn(e){var t=r.useRef({}),n=r.useRef(null),i=r.useRef(null),o=r.useRef(!1),a=Pe((function(e,r){var n={id:e,focus:r};return t.current[e]=n,function(){var r=t.current;r[e]!==n&&delete r[e]}}),[]),l=Pe((function(r){var t=function(e,r){var t="["+Ln.contextId+'="'+e+'"]',n=ir(document.querySelectorAll(t));if(!n.length)return null;var i=nr(n,(function(e){return e.getAttribute(Ln.draggableId)===r}));return i&&Vn(i)?i:null}(e,r);t&&t!==document.activeElement&&t.focus()}),[e]),c=Pe((function(e,r){n.current===e&&(n.current=r)}),[]),u=Pe((function(){i.current||o.current&&(i.current=requestAnimationFrame((function(){i.current=null;var e=n.current;e&&l(e)})))}),[l]),s=Pe((function(e){n.current=null;var r=document.activeElement;r&&r.getAttribute(Ln.draggableId)===e&&(n.current=e)}),[]);return kn((function(){return o.current=!0,function(){o.current=!1;var e=i.current;e&&cancelAnimationFrame(e)}}),[]),Oe((function(){return{register:a,tryRecordFocus:s,tryRestoreFocusRecorded:u,tryShiftRecord:c}}),[a,s,u,c])}function $n(){var e={draggables:{},droppables:{}},r=[];function t(e){r.length&&r.forEach((function(r){return r(e)}))}function n(r){return e.draggables[r]||null}function i(r){return e.droppables[r]||null}return{draggable:{register:function(r){e.draggables[r.descriptor.id]=r,t({type:"ADDITION",value:r})},update:function(r,t){var n=e.draggables[t.descriptor.id];n&&n.uniqueId===r.uniqueId&&(delete e.draggables[t.descriptor.id],e.draggables[r.descriptor.id]=r)},unregister:function(r){var i=r.descriptor.id,o=n(i);o&&r.uniqueId===o.uniqueId&&(delete e.draggables[i],t({type:"REMOVAL",value:r}))},getById:function(e){var r=n(e);return r||c(!1),r},findById:n,exists:function(e){return Boolean(n(e))},getAllByType:function(r){return rr(e.draggables).filter((function(e){return e.descriptor.type===r}))}},droppable:{register:function(r){e.droppables[r.descriptor.id]=r},unregister:function(r){var t=i(r.descriptor.id);t&&r.uniqueId===t.uniqueId&&delete e.droppables[r.descriptor.id]},getById:function(e){var r=i(e);return r||c(!1),r},findById:i,exists:function(e){return Boolean(i(e))},getAllByType:function(r){return rr(e.droppables).filter((function(e){return e.descriptor.type===r}))}},subscribe:function(e){return r.push(e),function(){var t=r.indexOf(e);-1!==t&&r.splice(t,1)}},clean:function(){e.draggables={},e.droppables={},r.length=0}}}var Yn=r.createContext(null),Jn=function(){var e=document.body;return e||c(!1),e},Xn={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 Kn=0,Qn={separator:"::"};function Zn(e,r){return void 0===r&&(r=Qn),Oe((function(){return""+e+r.separator+Kn++}),[r.separator,e])}var ei=r.createContext(null);function ri(e){var t=r.useRef(e);return r.useEffect((function(){t.current=e})),t}var ti,ni=((ti={})[13]=!0,ti[9]=!0,ti),ii=function(e){ni[e.keyCode]&&e.preventDefault()},oi=function(){var e="visibilitychange";return"undefined"==typeof document?e:nr([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}();var ai,li={type:"IDLE"};function ci(e){var r=e.cancel,t=e.completed,n=e.getPhase,i=e.setPhase;return[{eventName:"mousemove",fn:function(e){var r=e.button,t=e.clientX,o=e.clientY;if(0===r){var a={x:t,y:o},l=n();if("DRAGGING"===l.type)return e.preventDefault(),void l.actions.move(a);"PENDING"!==l.type&&c(!1);var u=l.point;if(s=u,d=a,Math.abs(d.x-s.x)>=5||Math.abs(d.y-s.y)>=5){var s,d;e.preventDefault();var p=l.actions.fluidLift(a);i({type:"DRAGGING",actions:p})}}}},{eventName:"mouseup",fn:function(e){var i=n();"DRAGGING"===i.type?(e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),t()):r()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===n().type&&e.preventDefault(),r()}},{eventName:"keydown",fn:function(e){if("PENDING"!==n().type)return 27===e.keyCode?(e.preventDefault(),void r()):void ii(e);r()}},{eventName:"resize",fn:r},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===n().type&&r()}},{eventName:"webkitmouseforcedown",fn:function(e){var t=n();"IDLE"===t.type&&c(!1),t.actions.shouldRespectForcePress()?r():e.preventDefault()}},{eventName:oi,fn:r}]}function ui(e){var t=r.useRef(li),n=r.useRef(i),o=Oe((function(){return{eventName:"mousedown",fn:function(r){if(!r.defaultPrevented&&0===r.button&&!(r.ctrlKey||r.metaKey||r.shiftKey||r.altKey)){var t=e.findClosestDraggableId(r);if(t){var i=e.tryGetLock(t,s,{sourceEvent:r});if(i){r.preventDefault();var o={x:r.clientX,y:r.clientY};n.current(),f(i,o)}}}}}}),[e]),l=Oe((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(r){if(!r.defaultPrevented){var t=e.findClosestDraggableId(r);if(t){var n=e.findOptionsForDraggable(t);n&&(n.shouldRespectForcePress||e.canGetLock(t)&&r.preventDefault())}}}}}),[e]),u=Pe((function(){n.current=a(window,[l,o],{passive:!1,capture:!0})}),[l,o]),s=Pe((function(){"IDLE"!==t.current.type&&(t.current=li,n.current(),u())}),[u]),d=Pe((function(){var e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),p=Pe((function(){var e=ci({cancel:d,completed:s,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});n.current=a(window,e,{capture:!0,passive:!1})}),[d,s]),f=Pe((function(e,r){"IDLE"!==t.current.type&&c(!1),t.current={type:"PENDING",point:r,actions:e},p()}),[p]);kn((function(){return u(),function(){n.current()}}),[u])}function si(){}var di=((ai={})[34]=!0,ai[33]=!0,ai[36]=!0,ai[35]=!0,ai);function pi(e,r){function t(){r(),e.cancel()}return[{eventName:"keydown",fn:function(n){return 27===n.keyCode?(n.preventDefault(),void t()):32===n.keyCode?(n.preventDefault(),r(),void e.drop()):40===n.keyCode?(n.preventDefault(),void e.moveDown()):38===n.keyCode?(n.preventDefault(),void e.moveUp()):39===n.keyCode?(n.preventDefault(),void e.moveRight()):37===n.keyCode?(n.preventDefault(),void e.moveLeft()):void(di[n.keyCode]?n.preventDefault():ii(n))}},{eventName:"mousedown",fn:t},{eventName:"mouseup",fn:t},{eventName:"click",fn:t},{eventName:"touchstart",fn:t},{eventName:"resize",fn:t},{eventName:"wheel",fn:t,options:{passive:!0}},{eventName:oi,fn:t}]}function fi(e){var t=r.useRef(si),n=Oe((function(){return{eventName:"keydown",fn:function(r){if(!r.defaultPrevented&&32===r.keyCode){var n=e.findClosestDraggableId(r);if(n){var o=e.tryGetLock(n,s,{sourceEvent:r});if(o){r.preventDefault();var l=!0,u=o.snapLift();t.current(),t.current=a(window,pi(u,s),{capture:!0,passive:!1})}}}function s(){l||c(!1),l=!1,t.current(),i()}}}}),[e]),i=Pe((function(){t.current=a(window,[n],{passive:!1,capture:!0})}),[n]);kn((function(){return i(),function(){t.current()}}),[i])}var gi={type:"IDLE"};function vi(e){var t=r.useRef(gi),n=r.useRef(i),o=Pe((function(){return t.current}),[]),l=Pe((function(e){t.current=e}),[]),u=Oe((function(){return{eventName:"touchstart",fn:function(r){if(!r.defaultPrevented){var t=e.findClosestDraggableId(r);if(t){var i=e.tryGetLock(t,d,{sourceEvent:r});if(i){var o=r.touches[0],a={x:o.clientX,y:o.clientY},l=e.findClosestDragHandle(r);l||c(!1),n.current(),v(i,a,l)}}}}}}),[e]),s=Pe((function(){n.current=a(window,[u],{capture:!0,passive:!1})}),[u]),d=Pe((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),l(gi),n.current(),s())}),[s,l]),p=Pe((function(){var e=t.current;d(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[d]),f=Pe((function(e){var r={capture:!0,passive:!1},t={cancel:p,completed:d,getPhase:o},i=a(e,function(e){var r=e.cancel,t=e.completed,n=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var t=n();if("DRAGGING"===t.type){t.hasMoved=!0;var i=e.touches[0],o={x:i.clientX,y:i.clientY};e.preventDefault(),t.actions.move(o)}else r()}},{eventName:"touchend",fn:function(e){var i=n();"DRAGGING"===i.type?(e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),t()):r()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===n().type?(e.preventDefault(),r()):r()}},{eventName:"touchforcechange",fn:function(e){var t=n();"IDLE"===t.type&&c(!1);var i=e.touches[0];if(i&&i.force>=.15){var o=t.actions.shouldRespectForcePress();if("PENDING"!==t.type)return o?t.hasMoved?void e.preventDefault():void r():void e.preventDefault();o&&r()}}},{eventName:oi,fn:r}]}(t),r),l=a(window,function(e){var r=e.cancel,t=e.getPhase;return[{eventName:"orientationchange",fn:r},{eventName:"resize",fn:r},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===t().type?(27===e.keyCode&&e.preventDefault(),r()):r()}},{eventName:oi,fn:r}]}(t),r);n.current=function(){i(),l()}}),[p,o,d]),g=Pe((function(){var e=o();"PENDING"!==e.type&&c(!1);var r=e.actions.fluidLift(e.point);l({type:"DRAGGING",actions:r,hasMoved:!1})}),[o,l]),v=Pe((function(e,r,t){"IDLE"!==o().type&&c(!1);var n=setTimeout(g,120);l({type:"PENDING",point:r,actions:e,longPressTimerId:n}),f(t)}),[f,o,l,g]);kn((function(){return s(),function(){n.current();var e=o();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),l(gi))}}),[o,s,l]),kn((function(){return a(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}var mi={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function bi(e,r){var t=r.target;return!!Vn(t)&&function e(r,t){if(null==t)return!1;if(Boolean(mi[t.tagName.toLowerCase()]))return!0;var n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==r&&e(r,t.parentElement)}(e,t)}var hi=function(e){return Fe(e.getBoundingClientRect()).center};var yi="undefined"==typeof document?"matches":nr(["matches","msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||"matches";function xi(e,r){return e.closest?e.closest(r):function e(r,t){return null==r?null:r[yi](t)?r:e(r.parentElement,t)}(e,r)}function Ii(e,r){var t,n=r.target;if(!((t=n)instanceof qn(t).Element))return null;var i=xi(n,function(e){return"["+Ln.contextId+'="'+e+'"]'}(e));return i&&Vn(i)?i:null}function Di(e){e.preventDefault()}function wi(e){var r=e.expected,t=e.phase,n=e.isLockActive;return e.shouldWarn,!!n()&&r===t}function Ei(e){var r=e.lockAPI,t=e.store,n=e.registry,i=e.draggableId;if(r.isClaimed())return!1;var o=n.draggable.findById(i);return!!o&&(!!o.options.isEnabled&&!!dn(t.getState(),i))}function Si(e){var r=e.lockAPI,t=e.contextId,n=e.store,l=e.registry,u=e.draggableId,s=e.forceSensorStop,d=e.sourceEvent;if(!Ei({lockAPI:r,store:n,registry:l,draggableId:u}))return null;var p=l.draggable.getById(u),f=function(e,r){var t="["+Gn.contextId+'="'+e+'"]',n=nr(ir(document.querySelectorAll(t)),(function(e){return e.getAttribute(Gn.id)===r}));return n&&Vn(n)?n:null}(t,p.descriptor.id);if(!f)return null;if(d&&!p.options.canDragInteractiveElements&&bi(f,d))return null;var g=r.claim(s||i),v="PRE_DRAG";function m(){return p.options.shouldRespectForcePress}function b(){return r.isActive(g)}var h=function(e,r){wi({expected:e,phase:v,isLockActive:b,shouldWarn:!0})&&n.dispatch(r())}.bind(null,"DRAGGING");function y(e){function t(){r.release(),v="COMPLETED"}function i(r,i){if(void 0===i&&(i={shouldBlockNextClick:!1}),e.cleanup(),i.shouldBlockNextClick){var o=a(window,[{eventName:"click",fn:Di,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(o)}t(),n.dispatch(Pt({reason:r}))}return"PRE_DRAG"!==v&&(t(),"PRE_DRAG"!==v&&c(!1)),n.dispatch(function(e){return{type:"LIFT",payload:e}}(e.liftActionArgs)),v="DRAGGING",o({isActive:function(){return wi({expected:"DRAGGING",phase:v,isLockActive:b,shouldWarn:!1})},shouldRespectForcePress:m,drop:function(e){return i("DROP",e)},cancel:function(e){return i("CANCEL",e)}},e.actions)}return{isActive:function(){return wi({expected:"PRE_DRAG",phase:v,isLockActive:b,shouldWarn:!1})},shouldRespectForcePress:m,fluidLift:function(e){var r=Ut((function(e){h((function(){return Dt({client:e})}))}));return o({},y({liftActionArgs:{id:u,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return r.cancel()},actions:{move:r}}),{move:r})},snapLift:function(){var e={moveUp:function(){return h(wt)},moveRight:function(){return h(St)},moveDown:function(){return h(Et)},moveLeft:function(){return h(Ct)}};return y({liftActionArgs:{id:u,clientSelection:hi(f),movementMode:"SNAP"},cleanup:i,actions:e})},abort:function(){wi({expected:"PRE_DRAG",phase:v,isLockActive:b,shouldWarn:!0})&&r.release()}}}var Ci=[ui,fi,vi];function Oi(e){var t=e.contextId,n=e.store,i=e.registry,o=e.customSensors,a=e.enableDefaultSensors,l=[].concat(a?Ci:[],o||[]),u=r.useState((function(){return function(){var e=null;function r(){e||c(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(r){return r===e},claim:function(r){e&&c(!1);var t={abandon:r};return e=t,t},release:r,tryAbandon:function(){e&&(e.abandon(),r())}}}()}))[0],s=Pe((function(e,r){e.isDragging&&!r.isDragging&&u.tryAbandon()}),[u]);kn((function(){var e=n.getState();return n.subscribe((function(){var r=n.getState();s(e,r),e=r}))}),[u,n,s]),kn((function(){return u.tryAbandon}),[u.tryAbandon]);for(var d=Pe((function(e){return Ei({lockAPI:u,registry:i,store:n,draggableId:e})}),[u,i,n]),p=Pe((function(e,r,o){return Si({lockAPI:u,registry:i,contextId:t,store:n,draggableId:e,forceSensorStop:r,sourceEvent:o&&o.sourceEvent?o.sourceEvent:null})}),[t,u,i,n]),f=Pe((function(e){return Ii(t,e)}),[t]),g=Pe((function(e){return function(e,r){var t=Ii(e,r);return t?t.getAttribute(Ln.draggableId):null}(t,e)}),[t]),v=Pe((function(e){var r=i.draggable.findById(e);return r?r.options:null}),[i.draggable]),m=Pe((function(){u.isClaimed()&&(u.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch({type:"FLUSH",payload:null}))}),[u,n]),b=Pe(u.isClaimed,[u]),h=Oe((function(){return{canGetLock:d,tryGetLock:p,findClosestDraggableId:g,findClosestDragHandle:f,findOptionsForDraggable:v,tryReleaseLock:m,isLockClaimed:b}}),[d,p,g,f,v,m,b]),y=0;y<l.length;y++)l[y](h)}function Pi(e){return e.current||c(!1),e.current}function Ai(e){var t=e.contextId,n=e.setCallbacks,i=e.sensors,a=e.nonce,l=e.dragHandleUsageInstructions,c=e.fluidScrollerOptions,u=r.useRef(null),s=ri(e),d=Pe((function(){return function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}}(s.current)}),[s]),p=function(e){var t=Oe((function(){return function(e){return"rbd-announcement-"+e}(e)}),[e]),n=r.useRef(null);return r.useEffect((function(){var e=document.createElement("div");return n.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),o(e.style,Xn),Jn().appendChild(e),function(){setTimeout((function(){var r=Jn();r.contains(e)&&r.removeChild(e),e===n.current&&(n.current=null)}))}}),[t]),Pe((function(e){var r=n.current;r&&(r.textContent=e)}),[])}(t),f=function(e){var t=e.contextId,n=e.text,i=Zn("hidden-text",{separator:"-"}),o=Oe((function(){return"rbd-hidden-text-"+(e={contextId:t,uniqueId:i}).contextId+"-"+e.uniqueId;var e}),[i,t]);return r.useEffect((function(){var e=document.createElement("div");return e.id=o,e.textContent=n,e.style.display="none",Jn().appendChild(e),function(){var r=Jn();r.contains(e)&&r.removeChild(e)}}),[o,n]),o}({contextId:t,text:l}),g=Hn(t,a),v=Pe((function(e){Pi(u).dispatch(e)}),[]),m=Oe((function(){return I({publishWhileDragging:bt,updateDroppableScroll:yt,updateDroppableIsEnabled:xt,updateDroppableIsCombineEnabled:It,collectionStarting:ht},v)}),[v]),b=function(){var e=Oe($n,[]);return r.useEffect((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),h=Oe((function(){return sn(b,m)}),[b,m]),y=r.useRef(c),x=Oe((function(){return function(e){var r=e.scrollDroppable,t=e.scrollWindow,n=e.move,i=e.fluidScrollerOptions,o=Bn({scrollWindow:t,scrollDroppable:r,fluidScrollerOptions:i}),a=Tn({move:n,scrollWindow:t,scrollDroppable:r});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&a(e):o.scroll(e))},start:o.start,stop:o.stop}}(o({scrollWindow:pn,scrollDroppable:h.scrollDroppable},I({move:Dt},v),{fluidScrollerOptions:y.current}))}),[h.scrollDroppable,v]),D=zn(t),w=Oe((function(){return rn({announce:p,autoScroller:x,dimensionMarshal:h,focusMarshal:D,getResponders:d,styleMarshal:g})}),[p,x,h,D,d,g]);u.current=w;var E=Pe((function(){var e=Pi(u);"IDLE"!==e.getState().phase&&e.dispatch({type:"FLUSH",payload:null})}),[]),S=Pe((function(){var e=Pi(u).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);n(Oe((function(){return{isDragging:S,tryAbort:E}}),[S,E]));var C=Pe((function(e){return dn(Pi(u).getState(),e)}),[]),O=Pe((function(){return Qr(Pi(u).getState())}),[]),P=Oe((function(){return{marshal:h,focus:D,contextId:t,canLift:C,isMovementAllowed:O,dragHandleUsageInstructionsId:f,registry:b,fluidScrollerOptions:c}}),[t,h,f,D,C,O,b,c]);return Oi({contextId:t,store:w,registry:b,customSensors:i,enableDefaultSensors:!1!==e.enableDefaultSensors}),r.useEffect((function(){return E}),[E]),r.createElement(ei.Provider,{value:P},r.createElement(j,{context:Yn,store:w},e.children))}var Ri=0;var Ni=function(e){return function(r){return e===r}},Bi=Ni("scroll"),Ti=Ni("auto"),Mi=function(e,r){return r(e.overflowX)||r(e.overflowY)},Li=function e(r){return null==r||r===document.body||r===document.documentElement?null:function(e){var r=window.getComputedStyle(e),t={overflowX:r.overflowX,overflowY:r.overflowY};return!(e instanceof HTMLElement&&e.dataset.dndIgnoreScrollable)&&(Mi(t,Bi)||Mi(t,Ti))}(r)?r:e(r.parentElement)},Gi=function(e){return{x:e.scrollLeft,y:e.scrollTop}},_i=function(e){return{closestScrollable:Li(e),isFixedOnPage:function e(r){return!!r&&("fixed"===window.getComputedStyle(r).position||e(r.parentElement))}(e)}},Fi=function(e){var r=e.ref,t=e.descriptor,n=e.env,i=e.windowScroll,o=e.direction,a=e.isDropDisabled,l=e.isCombineEnabled,c=e.shouldClipSubject,u=n.closestScrollable,s=function(e,r){var t=$e(e);if(!r)return t;if(e!==r)return t;var n=t.paddingBox.top-r.scrollTop,i=t.paddingBox.left-r.scrollLeft,o=n+r.scrollHeight,a=i+r.scrollWidth,l=je({top:n,right:a,bottom:o,left:i},t.border);return Ue({borderBox:l,margin:t.margin,border:t.border,padding:t.padding})}(r,u),d=Ve(s,i),p=function(){if(!u)return null;var e=$e(u),r={scrollHeight:u.scrollHeight,scrollWidth:u.scrollWidth};return{client:e,page:Ve(e,i),scroll:Gi(u),scrollSize:r,shouldClipSubject:c}}();return function(e){var r=e.descriptor,t=e.isEnabled,n=e.isCombineEnabled,i=e.isFixedOnPage,o=e.direction,a=e.client,l=e.page,c=e.closest,u=function(){if(!c)return null;var e=c.scrollSize,r=c.client,t=tn({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:r.paddingBox.height,width:r.paddingBox.width});return{pageMarginBox:c.page.marginBox,frameClient:r,scrollSize:e,shouldClipSubject:c.shouldClipSubject,scroll:{initial:c.scroll,current:c.scroll,max:t,diff:{value:Ae,displacement:Ae}}}}(),s="vertical"===o?xr:Ir;return{descriptor:r,isCombineEnabled:n,isFixedOnPage:i,axis:s,isEnabled:t,client:a,page:l,frame:u,subject:Ke({page:l,withPlaceholder:null,axis:s,frame:u})}}({descriptor:t,isEnabled:!a,isCombineEnabled:l,isFixedOnPage:n.isFixedOnPage,direction:o,client:s,page:d,closest:p})},ji={passive:!1},ki={passive:!0},Wi=function(e){return e.shouldPublishImmediately?ji:ki};function Ui(e){var t=r.useContext(e);return t||c(!1),t}var Hi=function(e){return e&&e.env.closestScrollable||null};function qi(){}var Vi={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},zi=function(e){var r=e.isAnimatingOpenOnMount,t=e.placeholder,n=e.animate,i=function(e){var r=e.isAnimatingOpenOnMount,t=e.placeholder,n=e.animate;return r||"close"===n?Vi:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin}}({isAnimatingOpenOnMount:r,placeholder:t,animate:n});return{display:t.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?Mt.placeholder:null}};var $i=r.memo((function(e){var t=r.useRef(null),n=Pe((function(){t.current&&(clearTimeout(t.current),t.current=null)}),[]),i=e.animate,o=e.onTransitionEnd,a=e.onClose,l=e.contextId,c=r.useState("open"===e.animate),u=c[0],s=c[1];r.useEffect((function(){return u?"open"!==i?(n(),s(!1),qi):t.current?qi:(t.current=setTimeout((function(){t.current=null,s(!1)})),n):qi}),[i,u,n]);var d=Pe((function(e){"height"===e.propertyName&&(o(),"close"===i&&a())}),[i,a,o]),p=zi({isAnimatingOpenOnMount:u,animate:e.animate,placeholder:e.placeholder});return r.createElement(e.placeholder.tagName,{style:p,"data-rbd-placeholder-context-id":l,onTransitionEnd:d,ref:e.innerRef})})),Yi=r.createContext(null),Ji=function(e){function r(){for(var r,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(r=e.call.apply(e,[this].concat(n))||this).state={isVisible:Boolean(r.props.on),data:r.props.on,animate:r.props.shouldAnimate&&r.props.on?"open":"none"},r.onClose=function(){"close"===r.state.animate&&r.setState({isVisible:!1})},r}return n(r,e),r.getDerivedStateFromProps=function(e,r){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:r.isVisible?{isVisible:!0,data:r.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},r.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},r}(r.PureComponent),Xi=5e3,Ki=4500,Qi=function(e,r){return r?Mt.drop(r.duration):e?Mt.snap:Mt.fluid},Zi=function(e,r){return e?r?Nt.drop:Nt.combining:null};function eo(e){return"DRAGGING"===e.type?function(e){var r=e.dimension.client,t=e.offset,n=e.combineWith,i=e.dropping,o=Boolean(n),a=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode}(e),l=Boolean(i),c=l?_t(t,o):Gt(t);return{position:"fixed",top:r.marginBox.top,left:r.marginBox.left,boxSizing:"border-box",width:r.borderBox.width,height:r.borderBox.height,transition:Qi(a,i),transform:c,opacity:Zi(o,l),zIndex:l?Ki:Xi,pointerEvents:"none"}}(e):{transform:Gt((r=e).offset),transition:r.shouldAnimateDisplacement?null:"none"};var r}function ro(e){var t=Zn("draggable"),n=e.descriptor,i=e.registry,o=e.getDraggableRef,a=e.canDragInteractiveElements,l=e.shouldRespectForcePress,u=e.isEnabled,s=Oe((function(){return{canDragInteractiveElements:a,shouldRespectForcePress:l,isEnabled:u}}),[a,u,l]),d=Pe((function(e){var r=o();return r||c(!1),function(e,r,t){void 0===t&&(t=Ae);var n=window.getComputedStyle(r),i=r.getBoundingClientRect(),o=ze(i,n),a=Ve(o,t);return{descriptor:e,placeholder:{client:o,tagName:r.tagName.toLowerCase(),display:n.display},displaceBy:{x:o.marginBox.width,y:o.marginBox.height},client:o,page:a}}(n,r,e)}),[n,o]),p=Oe((function(){return{uniqueId:t,descriptor:n,options:s,getDimension:d}}),[n,d,s,t]),f=r.useRef(p),g=r.useRef(!0);kn((function(){return i.draggable.register(f.current),function(){return i.draggable.unregister(f.current)}}),[i.draggable]),kn((function(){if(g.current)g.current=!1;else{var e=f.current;f.current=p,i.draggable.update(p,e)}}),[p,i.draggable])}function to(e){e.preventDefault()}var no=function(e,r){return e===r},io=function(e){var r=e.combine,t=e.destination;return t?t.droppableId:r?r.droppableId:null};function oo(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var ao={mapped:{type:"SECONDARY",offset:Ae,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:oo(null)}};var lo=Se((function(){var e,r,t,n=(e=er((function(e,r){return{x:e,y:r}})),r=er((function(e,r,t,n,i){return{isDragging:!0,isClone:r,isDropAnimating:Boolean(i),dropAnimation:i,mode:e,draggingOver:t,combineWith:n,combineTargetFor:null}})),t=er((function(e,t,n,i,o,a,l){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:o,combineWith:a,mode:t,offset:e,dimension:n,forceShouldAnimate:l,snapshot:r(t,i,o,a,null)}}})),function(n,i){if(n.isDragging){if(n.critical.draggable.id!==i.draggableId)return null;var o=n.current.client.offset,a=n.dimensions.draggables[i.draggableId],l=Xr(n.impact),c=(s=n.impact).at&&"COMBINE"===s.at.type?s.at.combine.draggableId:null,u=n.forceShouldAnimate;return t(e(o.x,o.y),n.movementMode,a,i.isClone,l,c,u)}var s;if("DROP_ANIMATING"===n.phase){var d=n.completed;if(d.result.draggableId!==i.draggableId)return null;var p=i.isClone,f=n.dimensions.draggables[i.draggableId],g=d.result,v=g.mode,m=io(g),b=function(e){return e.combine?e.combine.draggableId:null}(g),h={duration:n.dropDuration,curve:Rt,moveTo:n.newHomeClientOffset,opacity:b?Nt.drop:null,scale:b?Bt.drop:null};return{mapped:{type:"DRAGGING",offset:n.newHomeClientOffset,dimension:f,dropping:h,draggingOver:m,combineWith:b,mode:v,forceShouldAnimate:null,snapshot:r(v,p,m,b,h)}}}return null}),i=function(){var e=er((function(e,r){return{x:e,y:r}})),r=er(oo),t=er((function(e,t,n){return void 0===t&&(t=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:t,shouldAnimateDisplacement:n,snapshot:r(t)}}})),n=function(e){return e?t(Ae,e,!0):null},i=function(r,i,o,a){var l=o.displaced.visible[r],c=Boolean(a.inVirtualList&&a.effected[r]),u=dr(o),s=u&&u.draggableId===r?i:null;if(!l){if(!c)return n(s);if(o.displaced.invisible[r])return null;var d=Te(a.displacedBy.point),p=e(d.x,d.y);return t(p,s,!0)}if(c)return n(s);var f=o.displacedBy.point,g=e(f.x,f.y);return t(g,s,l.shouldAnimate)};return function(e,r){if(e.isDragging)return e.critical.draggable.id===r.draggableId?null:i(r.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var t=e.completed;return t.result.draggableId===r.draggableId?null:i(r.draggableId,t.result.draggableId,t.impact,t.afterCritical)}return null}}();return function(e,r){return n(e,r)||i(e,r)||ao}}),{dropAnimationFinished:At},null,{context:Yn,pure:!0,areStatePropsEqual:no})((function(e){var t=r.useRef(null),n=Pe((function(e){t.current=e}),[]),i=Pe((function(){return t.current}),[]),o=Ui(ei),a=o.contextId,l=o.dragHandleUsageInstructionsId,c=o.registry,u=Ui(Yi),s=u.type,d=u.droppableId,p=Oe((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,y=e.mapped,x=e.dropAnimationFinished;h||ro(Oe((function(){return{descriptor:p,registry:c,getDraggableRef:i,canDragInteractiveElements:b,shouldRespectForcePress:m,isEnabled:v}}),[p,c,i,b,m,v]));var I=Oe((function(){return v?{tabIndex:0,role:"button","aria-describedby":l,"data-rbd-drag-handle-draggable-id":g,"data-rbd-drag-handle-context-id":a,draggable:!1,onDragStart:to}:null}),[a,l,g,v]),D=Pe((function(e){"DRAGGING"===y.type&&y.dropping&&"transform"===e.propertyName&&x()}),[x,y]),w=Oe((function(){var e=eo(y),r="DRAGGING"===y.type&&y.dropping?D:null;return{innerRef:n,draggableProps:{"data-rbd-draggable-context-id":a,"data-rbd-draggable-id":g,style:e,onTransitionEnd:r},dragHandleProps:I}}),[a,I,g,y,D,n]),E=Oe((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(w,y.snapshot,E)}));function co(e){return Ui(Yi).isUsingCloneFor!==e.draggableId||e.isClone?r.createElement(lo,e):null}var uo={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||c(!1),document.body}},so=function(e){var r,t=o({},e);for(r in uo){var n;if(void 0===e[r])t=o({},t,((n={})[r]=uo[r],n))}return t},po=function(e,r){return e===r.droppable.type},fo=function(e,r){return r.draggables[e.draggable.id]},go=Se((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},r=o({},e,{shouldAnimatePlaceholder:!1}),t=er((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),n=er((function(n,i,o,a,l,c){var u=l.descriptor.id;if(l.descriptor.droppableId===n){var s=c?{render:c,dragging:t(l.descriptor)}:null,d={isDraggingOver:o,draggingOverWith:o?u:null,draggingFromThisWith:u,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!1,snapshot:d,useClone:s}}if(!i)return r;if(!a)return e;var p={isDraggingOver:o,draggingOverWith:u,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!0,snapshot:p,useClone:null}}));return function(t,i){var o=so(i),a=o.droppableId,l=o.type,c=!o.isDropDisabled,u=o.renderClone;if(t.isDragging){var s=t.critical;if(!po(l,s))return r;var d=fo(s,t.dimensions),p=Xr(t.impact)===a;return n(a,c,p,p,d,u)}if("DROP_ANIMATING"===t.phase){var f=t.completed;if(!po(l,f.critical))return r;var g=fo(f.critical,t.dimensions);return n(a,c,io(f.result)===a,Xr(f.impact)===a,g,u)}if("IDLE"===t.phase&&t.completed&&!t.shouldFlush){var v=t.completed;if(!po(l,v.critical))return r;var m=Xr(v.impact)===a,b=Boolean(v.impact.at&&"COMBINE"===v.impact.at.type),h=v.critical.droppable.id===a;return m?b?e:r:h?e:r}return r}}),{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},(function(e,r,t){return o({},so(t),{},e,{},r)}),{context:Yn,pure:!0,areStatePropsEqual:no})((function(e){var n=r.useContext(ei);n||c(!1);var i=n.contextId,o=n.isMovementAllowed,a=r.useRef(null),l=r.useRef(null),u=e.children,s=e.droppableId,d=e.type,p=e.mode,f=e.direction,g=e.ignoreContainerClipping,v=e.isDropDisabled,m=e.isCombineEnabled,b=e.snapshot,h=e.useClone,y=e.updateViewportMaxScroll,x=e.getContainerForClone,I=Pe((function(){return a.current}),[]),D=Pe((function(e){a.current=e}),[]);Pe((function(){return l.current}),[]);var w=Pe((function(e){l.current=e}),[]),E=Pe((function(){o()&&y({maxScroll:on()})}),[o,y]);!function(e){var t=r.useRef(null),n=Ui(ei),i=Zn("droppable"),o=n.registry,a=n.marshal,l=ri(e),u=Oe((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),s=r.useRef(u),d=Oe((function(){return er((function(e,r){t.current||c(!1);var n={x:e,y:r};a.updateDroppableScroll(u.id,n)}))}),[u.id,a]),p=Pe((function(){var e=t.current;return e&&e.env.closestScrollable?Gi(e.env.closestScrollable):Ae}),[]),f=Pe((function(){var e=p();d(e.x,e.y)}),[p,d]),g=Oe((function(){return Ut(f)}),[f]),v=Pe((function(){var e=t.current,r=Hi(e);e&&r||c(!1),e.scrollOptions.shouldPublishImmediately?f():g()}),[g,f]),m=Pe((function(e,r){t.current&&c(!1);var i=l.current,o=i.getDroppableRef();o||c(!1);var a=_i(o),s={ref:o,descriptor:u,env:a,scrollOptions:r};t.current=s;var d=Fi({ref:o,descriptor:u,env:a,windowScroll:e,direction:i.direction,isDropDisabled:i.isDropDisabled,isCombineEnabled:i.isCombineEnabled,shouldClipSubject:!i.ignoreContainerClipping}),p=a.closestScrollable;return p&&(p.setAttribute(Fn.contextId,n.contextId),p.addEventListener("scroll",v,Wi(s.scrollOptions))),d}),[n.contextId,u,v,l]),b=Pe((function(){var e=t.current,r=Hi(e);return e&&r||c(!1),Gi(r)}),[]),h=Pe((function(){var e=t.current;e||c(!1);var r=Hi(e);t.current=null,r&&(g.cancel(),r.removeAttribute(Fn.contextId),r.removeEventListener("scroll",v,Wi(e.scrollOptions)))}),[v,g]),y=Pe((function(e){var r=t.current;r||c(!1);var n=Hi(r);n||c(!1),n.scrollTop+=e.y,n.scrollLeft+=e.x}),[]),x=Oe((function(){return{getDimensionAndWatchScroll:m,getScrollWhileDragging:b,dragStopped:h,scroll:y}}),[h,m,b,y]),I=Oe((function(){return{uniqueId:i,descriptor:u,callbacks:x}}),[x,u,i]);kn((function(){return s.current=I.descriptor,o.droppable.register(I),function(){t.current&&h(),o.droppable.unregister(I)}}),[x,u,h,I,a,o.droppable]),kn((function(){t.current&&a.updateDroppableIsEnabled(s.current.id,!e.isDropDisabled)}),[e.isDropDisabled,a]),kn((function(){t.current&&a.updateDroppableIsCombineEnabled(s.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,a])}({droppableId:s,type:d,mode:p,direction:f,isDropDisabled:v,isCombineEnabled:m,ignoreContainerClipping:g,getDroppableRef:I});var S=r.createElement(Ji,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var t=e.onClose,n=e.data,o=e.animate;return r.createElement($i,{placeholder:n,onClose:t,innerRef:w,animate:o,contextId:i,onTransitionEnd:E})})),C=Oe((function(){return{innerRef:D,placeholder:S,droppableProps:{"data-rbd-droppable-id":s,"data-rbd-droppable-context-id":i}}}),[i,s,S,D]),O=h?h.dragging.draggableId:null,P=Oe((function(){return{droppableId:s,type:d,isUsingCloneFor:O}}),[s,O,d]);return r.createElement(Yi.Provider,{value:P},u(C,b),function(){if(!h)return null;var e=h.dragging,n=h.render,i=r.createElement(co,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(r,t){return n(r,t,e)}));return t.createPortal(i,x())}())}));e.DragDropContext=function(e){var t=Oe((function(){return""+Ri++}),[]),n=e.dragHandleUsageInstructions||g.dragHandleUsageInstructions;return r.createElement(u,null,(function(i){return r.createElement(Ai,{nonce:e.nonce,contextId:t,setCallbacks:i,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,fluidScrollerOptions:e.fluidScrollerOptions},e.children)}))},e.Draggable=function(e){var t="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),i=Boolean(e.shouldRespectForcePress);return r.createElement(co,o({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:i}))},e.Droppable=go,e.resetServerContext=function(){Ri=0,Kn=0},e.useKeyboardSensor=fi,e.useMouseSensor=ui,e.useTouchSensor=vi}));
6
+ */Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;!function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()||Object.assign;function T(){}function M(){}Function.call.bind(Object.prototype.hasOwnProperty),M.resetWarningCache=T;P((function(e){e.exports=function(){function e(e,r,t,n,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function r(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:M,resetWarningCache:T};return t.PropTypes=t,t}()}));var L=r.createContext(null);var G=function(e){e()},_=function(){return G},F={notify:function(){}};var j=function(){function e(e,r){this.store=e,this.parentSub=r,this.unsubscribe=null,this.listeners=F,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var r=e.prototype;return r.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},r.notifyNestedSubs=function(){this.listeners.notify()},r.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},r.isSubscribed=function(){return Boolean(this.unsubscribe)},r.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=function(){var e=_(),r=null,t=null;return{clear:function(){r=null,t=null},notify:function(){e((function(){for(var e=r;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],t=r;t;)e.push(t),t=t.next;return e},subscribe:function(e){var n=!0,i=t={callback:e,next:null,prev:t};return i.prev?i.prev.next=i:r=i,function(){n&&null!==r&&(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:r=i.next)}}}}())},r.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=F)},e}();function k(e){var t=e.store,n=e.context,i=e.children,o=r.useMemo((function(){var e=new j(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),a=r.useMemo((function(){return t.getState()}),[t]);r.useEffect((function(){var e=o.subscription;return e.trySubscribe(),a!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[o,a]);var l=n||L;return r.createElement(l.Provider,{value:o},i)}function W(e,r){if(null==e)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==r.indexOf(n))continue;t[n]=e[n]}return t}var U={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},H={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},q={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},V={};function z(e){return N.isMemo(e)?q:V[e.$$typeof]||U}V[N.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},V[N.Memo]=q;var $=Object.defineProperty,Y=Object.getOwnPropertyNames,J=Object.getOwnPropertySymbols,X=Object.getOwnPropertyDescriptor,K=Object.getPrototypeOf,Q=Object.prototype;var Z=function e(r,t,n){if("string"!=typeof t){if(Q){var i=K(t);i&&i!==Q&&e(r,i,n)}var o=Y(t);J&&(o=o.concat(J(t)));for(var a=z(r),l=z(t),c=0;c<o.length;++c){var u=o[c];if(!(H[u]||n&&n[u]||l&&l[u]||a&&a[u])){var s=X(t,u);try{$(r,u,s)}catch(e){}}}}return r},ee="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,re=[],te=[null,null];function ne(e,r){var t=e[1];return[r.payload,t+1]}function ie(e,r,t){ee((function(){return e.apply(void 0,r)}),t)}function oe(e,r,t,n,i,o,a){e.current=n,r.current=i,t.current=!1,o.current&&(o.current=null,a())}function ae(e,r,t,n,i,o,a,l,c,u){if(e){var s=!1,d=null,p=function(){if(!s){var e,t,p=r.getState();try{e=n(p,i.current)}catch(e){t=e,d=e}t||(d=null),e===o.current?a.current||c():(o.current=e,l.current=e,a.current=!0,u({type:"STORE_UPDATED",payload:{error:t}}))}};t.onStateChange=p,t.trySubscribe(),p();return function(){if(s=!0,t.tryUnsubscribe(),t.onStateChange=null,d)throw d}}}var le=function(){return[null,0]};function ce(e,t){void 0===t&&(t={});var n=t,i=n.getDisplayName,o=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,l=n.methodName,c=void 0===l?"connectAdvanced":l,u=n.renderCountProp,s=void 0===u?void 0:u,d=n.shouldHandleStateChanges,p=void 0===d||d,f=n.storeKey,g=void 0===f?"store":f;n.withRef;var v=n.forwardRef,m=void 0!==v&&v,b=n.context,h=void 0===b?L:b,y=W(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),x=h;return function(t){var n=t.displayName||t.name||"Component",i=o(n),l=a({},y,{getDisplayName:o,methodName:c,renderCountProp:s,shouldHandleStateChanges:p,storeKey:g,displayName:i,wrappedComponentName:n,WrappedComponent:t}),u=y.pure;var d=u?r.useMemo:function(e){return e()};function f(n){var i=r.useMemo((function(){var e=n.forwardedRef,r=W(n,["forwardedRef"]);return[n.context,e,r]}),[n]),o=i[0],c=i[1],u=i[2],s=r.useMemo((function(){return o&&o.Consumer&&B(r.createElement(o.Consumer,null))?o:x}),[o,x]),f=r.useContext(s),g=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(f)&&Boolean(f.store);var v=g?n.store:f.store,m=r.useMemo((function(){return function(r){return e(r.dispatch,l)}(v)}),[v]),b=r.useMemo((function(){if(!p)return te;var e=new j(v,g?null:f.subscription),r=e.notifyNestedSubs.bind(e);return[e,r]}),[v,g,f]),h=b[0],y=b[1],I=r.useMemo((function(){return g?f:a({},f,{subscription:h})}),[g,f,h]),D=r.useReducer(ne,re,le),w=D[0][0],E=D[1];if(w&&w.error)throw w.error;var S=r.useRef(),C=r.useRef(u),O=r.useRef(),P=r.useRef(!1),A=d((function(){return O.current&&u===C.current?O.current:m(v.getState(),u)}),[v,w,u]);ie(oe,[C,S,P,u,A,O,y]),ie(ae,[p,v,h,m,C,S,P,O,y,E],[v,h,m]);var R=r.useMemo((function(){return r.createElement(t,a({},A,{ref:c}))}),[c,t,A]);return r.useMemo((function(){return p?r.createElement(s.Provider,{value:I},R):R}),[s,R,I])}var v=u?r.memo(f):f;if(v.WrappedComponent=t,v.displayName=i,m){var b=r.forwardRef((function(e,t){return r.createElement(v,a({},e,{forwardedRef:t}))}));return b.displayName=i,b.WrappedComponent=t,Z(b,t)}return Z(v,t)}}function ue(e,r){return e===r?0!==e||0!==r||1/e==1/r:e!=e&&r!=r}function se(e,r){if(ue(e,r))return!0;if("object"!=typeof e||null===e||"object"!=typeof r||null===r)return!1;var t=Object.keys(e),n=Object.keys(r);if(t.length!==n.length)return!1;for(var i=0;i<t.length;i++)if(!Object.prototype.hasOwnProperty.call(r,t[i])||!ue(e[t[i]],r[t[i]]))return!1;return!0}function de(e){return function(r,t){var n=e(r,t);function i(){return n}return i.dependsOnOwnProps=!1,i}}function pe(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function fe(e,r){return function(r,t){t.displayName;var n=function(e,r){return n.dependsOnOwnProps?n.mapToProps(e,r):n.mapToProps(e)};return n.dependsOnOwnProps=!0,n.mapToProps=function(r,t){n.mapToProps=e,n.dependsOnOwnProps=pe(e);var i=n(r,t);return"function"==typeof i&&(n.mapToProps=i,n.dependsOnOwnProps=pe(i),i=n(r,t)),i},n}}var ge=[function(e){return"function"==typeof e?fe(e):void 0},function(e){return e?void 0:de((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?de((function(r){return D(e,r)})):void 0}];var ve=[function(e){return"function"==typeof e?fe(e):void 0},function(e){return e?void 0:de((function(){return{}}))}];function me(e,r,t){return a({},t,{},e,{},r)}var be=[function(e){return"function"==typeof e?function(e){return function(r,t){t.displayName;var n,i=t.pure,o=t.areMergedPropsEqual,a=!1;return function(r,t,l){var c=e(r,t,l);return a?i&&o(c,n)||(n=c):(a=!0,n=c),n}}}(e):void 0},function(e){return e?void 0:function(){return me}}];function he(e,r,t,n){return function(i,o){return t(e(i,o),r(n,o),o)}}function ye(e,r,t,n,i){var o,a,l,c,u,s=i.areStatesEqual,d=i.areOwnPropsEqual,p=i.areStatePropsEqual,f=!1;function g(i,f){var g,v,m=!d(f,a),b=!s(i,o);return o=i,a=f,m&&b?(l=e(o,a),r.dependsOnOwnProps&&(c=r(n,a)),u=t(l,c,a)):m?(e.dependsOnOwnProps&&(l=e(o,a)),r.dependsOnOwnProps&&(c=r(n,a)),u=t(l,c,a)):b?(g=e(o,a),v=!p(g,l),l=g,v&&(u=t(l,c,a)),u):u}return function(i,s){return f?g(i,s):(l=e(o=i,a=s),c=r(n,a),u=t(l,c,a),f=!0,u)}}function xe(e,r){var t=r.initMapStateToProps,n=r.initMapDispatchToProps,i=r.initMergeProps,o=W(r,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=t(e,o),l=n(e,o),c=i(e,o);return(o.pure?ye:he)(a,l,c,e,o)}function Ie(e,r,t){for(var n=r.length-1;n>=0;n--){var i=r[n](e);if(i)return i}return function(r,n){throw new Error("Invalid value of type "+typeof e+" for "+t+" argument when connecting component "+n.wrappedComponentName+".")}}function De(e,r){return e===r}function we(e){var r=void 0===e?{}:e,t=r.connectHOC,n=void 0===t?ce:t,i=r.mapStateToPropsFactories,o=void 0===i?ve:i,l=r.mapDispatchToPropsFactories,c=void 0===l?ge:l,u=r.mergePropsFactories,s=void 0===u?be:u,d=r.selectorFactory,p=void 0===d?xe:d;return function(e,r,t,i){void 0===i&&(i={});var l=i,u=l.pure,d=void 0===u||u,f=l.areStatesEqual,g=void 0===f?De:f,v=l.areOwnPropsEqual,m=void 0===v?se:v,b=l.areStatePropsEqual,h=void 0===b?se:b,y=l.areMergedPropsEqual,x=void 0===y?se:y,I=W(l,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),D=Ie(e,o,"mapStateToProps"),w=Ie(r,c,"mapDispatchToProps"),E=Ie(t,s,"mergeProps");return n(p,a({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:D,initMapDispatchToProps:w,initMergeProps:E,pure:d,areStatesEqual:g,areOwnPropsEqual:m,areStatePropsEqual:h,areMergedPropsEqual:x},I))}}var Ee,Se=we();function Ce(e,t){var n=r.useState((function(){return{inputs:t,result:e()}}))[0],i=r.useRef(n),o=Boolean(t&&i.current.inputs&&function(e,r){if(e.length!==r.length)return!1;for(var t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0}(t,i.current.inputs))?i.current:{inputs:t,result:e()};return r.useEffect((function(){i.current=o}),[o]),o.result}Ee=t.unstable_batchedUpdates,G=Ee;var Oe=Ce,Pe=function(e,r){return Ce((function(){return e}),r)},Ae={x:0,y:0},Re=function(e,r){return{x:e.x+r.x,y:e.y+r.y}},Ne=function(e,r){return{x:e.x-r.x,y:e.y-r.y}},Be=function(e,r){return e.x===r.x&&e.y===r.y},Te=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},Me=function(e,r,t){var n;return void 0===t&&(t=0),(n={})[e]=r,n["x"===e?"y":"x"]=t,n},Le=function(e,r){return Math.sqrt(Math.pow(r.x-e.x,2)+Math.pow(r.y-e.y,2))},Ge=function(e,r){return Math.min.apply(Math,r.map((function(r){return Le(e,r)})))},_e=function(e){return function(r){return{x:e(r.x),y:e(r.y)}}};var Fe=function(e){var r=e.top,t=e.right,n=e.bottom,i=e.left;return{top:r,right:t,bottom:n,left:i,width:t-i,height:n-r,x:i,y:r,center:{x:(t+i)/2,y:(n+r)/2}}},je=function(e,r){return{top:e.top-r.top,left:e.left-r.left,bottom:e.bottom+r.bottom,right:e.right+r.right}},ke=function(e,r){return{top:e.top+r.top,left:e.left+r.left,bottom:e.bottom-r.bottom,right:e.right-r.right}},We={top:0,right:0,bottom:0,left:0},Ue=function(e){var r=e.borderBox,t=e.margin,n=void 0===t?We:t,i=e.border,o=void 0===i?We:i,a=e.padding,l=void 0===a?We:a,c=Fe(je(r,n)),u=Fe(ke(r,o)),s=Fe(ke(u,l));return{marginBox:c,borderBox:Fe(r),paddingBox:u,contentBox:s,margin:n,border:o,padding:l}},He=function(e){var r=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var t=Number(r);return isNaN(t)&&function(e,r){if(!e)throw new Error("Invariant failed")}(!1),t},qe=function(e,r){var t,n,i=e.borderBox,o=e.border,a=e.margin,l=e.padding,c=(n=r,{top:(t=i).top+n.y,left:t.left+n.x,bottom:t.bottom+n.y,right:t.right+n.x});return Ue({borderBox:c,border:o,margin:a,padding:l})},Ve=function(e,r){return void 0===r&&(r={x:window.pageXOffset,y:window.pageYOffset}),qe(e,r)},ze=function(e,r){var t={top:He(r.marginTop),right:He(r.marginRight),bottom:He(r.marginBottom),left:He(r.marginLeft)},n={top:He(r.paddingTop),right:He(r.paddingRight),bottom:He(r.paddingBottom),left:He(r.paddingLeft)},i={top:He(r.borderTopWidth),right:He(r.borderRightWidth),bottom:He(r.borderBottomWidth),left:He(r.borderLeftWidth)};return Ue({borderBox:e,margin:t,padding:n,border:i})},$e=function(e){var r=e.getBoundingClientRect(),t=window.getComputedStyle(e);return ze(r,t)},Ye=function(e,r){return{top:e.top+r.y,left:e.left+r.x,bottom:e.bottom+r.y,right:e.right+r.x}},Je=function(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}]},Xe=function(e,r){return r&&r.shouldClipSubject?function(e,r){var t=Fe({top:Math.max(r.top,e.top),right:Math.min(r.right,e.right),bottom:Math.min(r.bottom,e.bottom),left:Math.max(r.left,e.left)});return t.width<=0||t.height<=0?null:t}(r.pageMarginBox,e):Fe(e)},Ke=function(e){var r=e.page,t=e.withPlaceholder,n=e.axis,i=e.frame,o=function(e,r,t){var n;return t&&t.increasedBy?a({},e,((n={})[r.end]=e[r.end]+t.increasedBy[r.line],n)):e}(function(e,r){return r?Ye(e,r.scroll.diff.displacement):e}(r.marginBox,i),n,t);return{page:r,withPlaceholder:t,active:Xe(o,i)}},Qe=function(e,r){e.frame||u(!1);var t=e.frame,n=Ne(r,t.scroll.initial),i=Te(n),o=a({},t,{scroll:{initial:t.scroll.initial,current:r,diff:{value:n,displacement:i},max:t.scroll.max}});return a({},e,{frame:o,subject:Ke({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o})})};function Ze(e,r){if(e.length!==r.length)return!1;for(var t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0}function er(e,r){var t;void 0===r&&(r=Ze);var n,i=[],o=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return o&&t===this&&r(a,i)||(n=e.apply(this,a),o=!0,t=this,i=a),n}}function rr(e){return Object.values?Object.values(e):Object.keys(e).map((function(r){return e[r]}))}function tr(e,r){if(e.findIndex)return e.findIndex(r);for(var t=0;t<e.length;t++)if(r(e[t]))return t;return-1}function nr(e,r){if(e.find)return e.find(r);var t=tr(e,r);return-1!==t?e[t]:void 0}function ir(e){return Array.prototype.slice.call(e)}var or=er((function(e){return e.reduce((function(e,r){return e[r.descriptor.id]=r,e}),{})})),ar=er((function(e){return e.reduce((function(e,r){return e[r.descriptor.id]=r,e}),{})})),lr=er((function(e){return rr(e)})),cr=er((function(e){return rr(e)})),ur=er((function(e,r){return cr(r).filter((function(r){return e===r.descriptor.droppableId})).sort((function(e,r){return e.descriptor.index-r.descriptor.index}))}));function sr(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function dr(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var pr=er((function(e,r){return r.filter((function(r){return r.descriptor.id!==e.descriptor.id}))})),fr=function(e,r){return e.descriptor.droppableId===r.descriptor.id},gr={point:Ae,value:0},vr={invisible:{},visible:{},all:[]},mr={displaced:vr,displacedBy:gr,at:null},br=function(e,r){return function(t){return e<=t&&t<=r}},hr=function(e){var r=br(e.top,e.bottom),t=br(e.left,e.right);return function(n){if(r(n.top)&&r(n.bottom)&&t(n.left)&&t(n.right))return!0;var i=r(n.top)||r(n.bottom),o=t(n.left)||t(n.right);if(i&&o)return!0;var a=n.top<e.top&&n.bottom>e.bottom,l=n.left<e.left&&n.right>e.right;return!(!a||!l)||(a&&o||l&&i)}},yr=function(e){var r=br(e.top,e.bottom),t=br(e.left,e.right);return function(e){return r(e.top)&&r(e.bottom)&&t(e.left)&&t(e.right)}},xr={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Ir={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Dr=function(e){var r=e.target,t=e.destination,n=e.viewport,i=e.withDroppableDisplacement,o=e.isVisibleThroughFrameFn,a=i?function(e,r){var t=r.frame?r.frame.scroll.diff.displacement:Ae;return Ye(e,t)}(r,t):r;return function(e,r,t){return!!r.subject.active&&t(r.subject.active)(e)}(a,t,o)&&function(e,r,t){return t(r)(e)}(a,n,o)},wr=function(e){return Dr(a({},e,{isVisibleThroughFrameFn:hr}))},Er=function(e){return Dr(a({},e,{isVisibleThroughFrameFn:yr}))};function Sr(e){var r=e.afterDragging,t=e.destination,n=e.displacedBy,i=e.viewport,o=e.forceShouldAnimate,a=e.last;return r.reduce((function(e,r){var l=function(e,r){var t=e.page.marginBox,n={top:r.point.y,right:0,bottom:0,left:r.point.x};return Fe(je(t,n))}(r,n),c=r.descriptor.id;if(e.all.push(c),!wr({target:l,destination:t,viewport:i,withDroppableDisplacement:!0}))return e.invisible[r.descriptor.id]=!0,e;var u={draggableId:c,shouldAnimate:function(e,r,t){if("boolean"==typeof t)return t;if(!r)return!0;var n=r.invisible,i=r.visible;if(n[e])return!1;var o=i[e];return!o||o.shouldAnimate}(c,a,o)};return e.visible[c]=u,e}),{all:[],visible:{},invisible:{}})}function Cr(e){var r=e.insideDestination,t=e.inHomeList,n=e.displacedBy,i=e.destination,o=function(e,r){if(!e.length)return 0;var t=e[e.length-1].descriptor.index;return r.inHomeList?t:t+1}(r,{inHomeList:t});return{displaced:vr,displacedBy:n,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:o}}}}function Or(e){var r=e.draggable,t=e.insideDestination,n=e.destination,i=e.viewport,o=e.displacedBy,a=e.last,l=e.index,c=e.forceShouldAnimate,u=fr(r,n);if(null==l)return Cr({insideDestination:t,inHomeList:u,displacedBy:o,destination:n});var s=nr(t,(function(e){return e.descriptor.index===l}));if(!s)return Cr({insideDestination:t,inHomeList:u,displacedBy:o,destination:n});var d=pr(r,t),p=t.indexOf(s);return{displaced:Sr({afterDragging:d.slice(p),destination:n,displacedBy:o,last:a,viewport:i.frame,forceShouldAnimate:c}),displacedBy:o,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:l}}}}function Pr(e,r){return Boolean(r.effected[e])}var Ar=function(e){var r=e.isMovingForward,t=e.isInHomeList,n=e.draggable,i=e.draggables,o=e.destination,a=e.insideDestination,l=e.previousImpact,c=e.viewport,s=e.afterCritical,d=l.at;if(d||u(!1),"REORDER"===d.type){var p=function(e){var r=e.isMovingForward,t=e.isInHomeList,n=e.insideDestination,i=e.location;if(!n.length)return null;var o=i.index,a=r?o+1:o-1,l=n[0].descriptor.index,c=n[n.length-1].descriptor.index;return a<l||a>(t?c:c+1)?null:a}({isMovingForward:r,isInHomeList:t,location:d.destination,insideDestination:a});return null==p?null:Or({draggable:n,insideDestination:a,destination:o,viewport:c,last:l.displaced,displacedBy:l.displacedBy,index:p})}var f=function(e){var r=e.isMovingForward,t=e.destination,n=e.draggables,i=e.combine,o=e.afterCritical;if(!t.isCombineEnabled)return null;var a=i.draggableId,l=n[a].descriptor.index;return Pr(a,o)?r?l:l-1:r?l+1:l}({isMovingForward:r,destination:o,displaced:l.displaced,draggables:i,combine:d.combine,afterCritical:s});return null==f?null:Or({draggable:n,insideDestination:a,destination:o,viewport:c,last:l.displaced,displacedBy:l.displacedBy,index:f})},Rr=function(e){var r=e.afterCritical,t=e.impact,n=e.draggables,i=dr(t);i||u(!1);var o=i.draggableId,a=n[o].page.borderBox.center,l=function(e){var r=e.displaced,t=e.afterCritical,n=e.combineWith,i=e.displacedBy,o=Boolean(r.visible[n]||r.invisible[n]);return Pr(n,t)?o?Ae:Te(i.point):o?i.point:Ae}({displaced:t.displaced,afterCritical:r,combineWith:o,displacedBy:t.displacedBy});return Re(a,l)},Nr=function(e,r){return r.margin[e.start]+r.borderBox[e.size]/2},Br=function(e,r,t){return r[e.crossAxisStart]+t.margin[e.crossAxisStart]+t.borderBox[e.crossAxisSize]/2},Tr=function(e){var r=e.axis,t=e.moveRelativeTo,n=e.isMoving;return Me(r.line,t.marginBox[r.end]+Nr(r,n),Br(r,t.marginBox,n))},Mr=function(e){var r=e.axis,t=e.moveRelativeTo,n=e.isMoving;return Me(r.line,t.marginBox[r.start]-function(e,r){return r.margin[e.end]+r.borderBox[e.size]/2}(r,n),Br(r,t.marginBox,n))},Lr=function(e){var r=e.impact,t=e.draggable,n=e.draggables,i=e.droppable,o=e.afterCritical,a=ur(i.descriptor.id,n),l=t.page,c=i.axis;if(!a.length)return function(e){var r=e.axis,t=e.moveInto,n=e.isMoving;return Me(r.line,t.contentBox[r.start]+Nr(r,n),Br(r,t.contentBox,n))}({axis:c,moveInto:i.page,isMoving:l});var u=r.displaced,s=r.displacedBy,d=u.all[0];if(d){var p=n[d];if(Pr(d,o))return Mr({axis:c,moveRelativeTo:p.page,isMoving:l});var f=qe(p.page,s.point);return Mr({axis:c,moveRelativeTo:f,isMoving:l})}var g=a[a.length-1];if(g.descriptor.id===t.descriptor.id)return l.borderBox.center;if(Pr(g.descriptor.id,o)){var v=qe(g.page,Te(o.displacedBy.point));return Tr({axis:c,moveRelativeTo:v,isMoving:l})}return Tr({axis:c,moveRelativeTo:g.page,isMoving:l})},Gr=function(e,r){var t=e.frame;return t?Re(r,t.scroll.diff.displacement):r},_r=function(e){var r=function(e){var r=e.impact,t=e.draggable,n=e.droppable,i=e.draggables,o=e.afterCritical,a=t.page.borderBox.center,l=r.at;return n&&l?"REORDER"===l.type?Lr({impact:r,draggable:t,draggables:i,droppable:n,afterCritical:o}):Rr({impact:r,draggables:i,afterCritical:o}):a}(e),t=e.droppable;return t?Gr(t,r):r},Fr=function(e,r){var t=Ne(r,e.scroll.initial),n=Te(t);return{frame:Fe({top:r.y,bottom:r.y+e.frame.height,left:r.x,right:r.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:r,diff:{value:t,displacement:n}}}};function jr(e,r){return e.map((function(e){return r[e]}))}var kr=function(e){var r=e.pageBorderBoxCenter,t=e.draggable,n=function(e,r){return Re(e.scroll.diff.displacement,r)}(e.viewport,r),i=Ne(n,t.page.borderBox.center);return Re(t.client.borderBox.center,i)},Wr=function(e){var r=e.draggable,t=e.destination,n=e.newPageBorderBoxCenter,i=e.viewport,o=e.withDroppableDisplacement,l=e.onlyOnMainAxis,c=void 0!==l&&l,u=Ne(n,r.page.borderBox.center),s={target:Ye(r.page.borderBox,u),destination:t,withDroppableDisplacement:o,viewport:i};return c?function(e){return Dr(a({},e,{isVisibleThroughFrameFn:(r=e.destination.axis,function(e){var t=br(e.top,e.bottom),n=br(e.left,e.right);return function(e){return r===xr?t(e.top)&&t(e.bottom):n(e.left)&&n(e.right)}})}));var r}(s):Er(s)},Ur=function(e){var r=e.isMovingForward,t=e.draggable,n=e.destination,i=e.draggables,o=e.previousImpact,l=e.viewport,c=e.previousPageBorderBoxCenter,s=e.previousClientSelection,d=e.afterCritical;if(!n.isEnabled)return null;var p=ur(n.descriptor.id,i),f=fr(t,n),g=function(e){var r=e.isMovingForward,t=e.draggable,n=e.destination,i=e.insideDestination,o=e.previousImpact;if(!n.isCombineEnabled)return null;if(!sr(o))return null;function l(e){var r={type:"COMBINE",combine:{draggableId:e,droppableId:n.descriptor.id}};return a({},o,{at:r})}var c=o.displaced.all,s=c.length?c[0]:null;if(r)return s?l(s):null;var d=pr(t,i);if(!s)return d.length?l(d[d.length-1].descriptor.id):null;var p=tr(d,(function(e){return e.descriptor.id===s}));-1===p&&u(!1);var f=p-1;return f<0?null:l(d[f].descriptor.id)}({isMovingForward:r,draggable:t,destination:n,insideDestination:p,previousImpact:o})||Ar({isMovingForward:r,isInHomeList:f,draggable:t,draggables:i,destination:n,insideDestination:p,previousImpact:o,viewport:l,afterCritical:d});if(!g)return null;var v=_r({impact:g,draggable:t,droppable:n,draggables:i,afterCritical:d});if(Wr({draggable:t,destination:n,newPageBorderBoxCenter:v,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:kr({pageBorderBoxCenter:v,draggable:t,viewport:l}),impact:g,scrollJumpRequest:null};var m=Ne(v,c);return{clientSelection:s,impact:function(e){var r=e.impact,t=e.viewport,n=e.destination,i=e.draggables,o=e.maxScrollChange,l=Fr(t,Re(t.scroll.current,o)),c=n.frame?Qe(n,Re(n.frame.scroll.current,o)):n,u=r.displaced,s=Sr({afterDragging:jr(u.all,i),destination:n,displacedBy:r.displacedBy,viewport:l.frame,last:u,forceShouldAnimate:!1}),d=Sr({afterDragging:jr(u.all,i),destination:c,displacedBy:r.displacedBy,viewport:t.frame,last:u,forceShouldAnimate:!1}),p={},f={},g=[u,s,d];return u.all.forEach((function(e){var r=function(e,r){for(var t=0;t<r.length;t++){var n=r[t].visible[e];if(n)return n}return null}(e,g);r?f[e]=r:p[e]=!0})),a({},r,{displaced:{all:u.all,invisible:p,visible:f}})}({impact:g,viewport:l,destination:n,draggables:i,maxScrollChange:m}),scrollJumpRequest:m}},Hr=function(e){var r=e.subject.active;return r||u(!1),r},qr=function(e,r){var t=e.page.borderBox.center;return Pr(e.descriptor.id,r)?Ne(t,r.displacedBy.point):t},Vr=function(e,r){var t=e.page.borderBox;return Pr(e.descriptor.id,r)?Ye(t,Te(r.displacedBy.point)):t},zr=er((function(e,r){var t=r[e.line];return{value:t,point:Me(e.line,t)}})),$r=function(e,r){return a({},e,{scroll:a({},e.scroll,{max:r})})},Yr=function(e,r,t){var n=e.frame;fr(r,e)&&u(!1),e.subject.withPlaceholder&&u(!1);var i=zr(e.axis,r.displaceBy).point,o=function(e,r,t){var n=e.axis;if("virtual"===e.descriptor.mode)return Me(n.line,r[n.line]);var i=e.subject.page.contentBox[n.size],o=ur(e.descriptor.id,t).reduce((function(e,r){return e+r.client.marginBox[n.size]}),0)+r[n.line]-i;return o<=0?null:Me(n.line,o)}(e,i,t),l={placeholderSize:i,increasedBy:o,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!n)return a({},e,{subject:Ke({page:e.subject.page,withPlaceholder:l,axis:e.axis,frame:e.frame})});var c=o?Re(n.scroll.max,o):n.scroll.max,s=$r(n,c);return a({},e,{subject:Ke({page:e.subject.page,withPlaceholder:l,axis:e.axis,frame:s}),frame:s})},Jr=function(e){var r=e.isMovingForward,t=e.previousPageBorderBoxCenter,n=e.draggable,i=e.isOver,o=e.draggables,a=e.droppables,l=e.viewport,c=e.afterCritical,u=function(e){var r=e.isMovingForward,t=e.pageBorderBoxCenter,n=e.source,i=e.droppables,o=e.viewport,a=n.subject.active;if(!a)return null;var l=n.axis,c=br(a[l.start],a[l.end]),u=lr(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 hr(o.frame)(Hr(e))})).filter((function(e){var t=Hr(e);return r?a[l.crossAxisEnd]<t[l.crossAxisEnd]:t[l.crossAxisStart]<a[l.crossAxisStart]})).filter((function(e){var r=Hr(e),t=br(r[l.start],r[l.end]);return c(r[l.start])||c(r[l.end])||t(a[l.start])||t(a[l.end])})).sort((function(e,t){var n=Hr(e)[l.crossAxisStart],i=Hr(t)[l.crossAxisStart];return r?n-i:i-n})).filter((function(e,r,t){return Hr(e)[l.crossAxisStart]===Hr(t[0])[l.crossAxisStart]}));if(!u.length)return null;if(1===u.length)return u[0];var s=u.filter((function(e){return br(Hr(e)[l.start],Hr(e)[l.end])(t[l.line])}));return 1===s.length?s[0]:s.length>1?s.sort((function(e,r){return Hr(e)[l.start]-Hr(r)[l.start]}))[0]:u.sort((function(e,r){var n=Ge(t,Je(Hr(e))),i=Ge(t,Je(Hr(r)));return n!==i?n-i:Hr(e)[l.start]-Hr(r)[l.start]}))[0]}({isMovingForward:r,pageBorderBoxCenter:t,source:i,droppables:a,viewport:l});if(!u)return null;var s=ur(u.descriptor.id,o),d=function(e){var r=e.previousPageBorderBoxCenter,t=e.moveRelativeTo,n=e.insideDestination,i=e.draggable,o=e.draggables,a=e.destination,l=e.viewport,c=e.afterCritical;if(!t){if(n.length)return null;var u={displaced:vr,displacedBy:gr,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},s=_r({impact:u,draggable:i,droppable:a,draggables:o,afterCritical:c}),d=fr(i,a)?a:Yr(a,i,o);return Wr({draggable:i,destination:d,newPageBorderBoxCenter:s,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?u:null}var p,f=Boolean(r[a.axis.line]<=t.page.borderBox.center[a.axis.line]),g=(p=t.descriptor.index,t.descriptor.id===i.descriptor.id||f?p:p+1),v=zr(a.axis,i.displaceBy);return Or({draggable:i,insideDestination:n,destination:a,viewport:l,displacedBy:v,last:vr,index:g})}({previousPageBorderBoxCenter:t,destination:u,draggable:n,draggables:o,moveRelativeTo:function(e){var r=e.pageBorderBoxCenter,t=e.viewport,n=e.destination,i=e.insideDestination,o=e.afterCritical;return i.filter((function(e){return Er({target:Vr(e,o),destination:n,viewport:t.frame,withDroppableDisplacement:!0})})).sort((function(e,t){var i=Le(r,Gr(n,qr(e,o))),a=Le(r,Gr(n,qr(t,o)));return i<a?-1:a<i?1:e.descriptor.index-t.descriptor.index}))[0]||null}({pageBorderBoxCenter:t,viewport:l,destination:u,insideDestination:s,afterCritical:c}),insideDestination:s,viewport:l,afterCritical:c});if(!d)return null;var p=_r({impact:d,draggable:n,droppable:u,draggables:o,afterCritical:c});return{clientSelection:kr({pageBorderBoxCenter:p,draggable:n,viewport:l}),impact:d,scrollJumpRequest:null}},Xr=function(e){var r=e.at;return r?"REORDER"===r.type?r.destination.droppableId:r.combine.droppableId:null},Kr=function(e){var r=e.state,t=e.type,n=function(e,r){var t=Xr(e);return t?r[t]:null}(r.impact,r.dimensions.droppables),i=Boolean(n),o=r.dimensions.droppables[r.critical.droppable.id],a=n||o,l=a.axis.direction,c="vertical"===l&&("MOVE_UP"===t||"MOVE_DOWN"===t)||"horizontal"===l&&("MOVE_LEFT"===t||"MOVE_RIGHT"===t);if(c&&!i)return null;var u="MOVE_DOWN"===t||"MOVE_RIGHT"===t,s=r.dimensions.draggables[r.critical.draggable.id],d=r.current.page.borderBoxCenter,p=r.dimensions,f=p.draggables,g=p.droppables;return c?Ur({isMovingForward:u,previousPageBorderBoxCenter:d,draggable:s,destination:a,draggables:f,viewport:r.viewport,previousClientSelection:r.current.client.selection,previousImpact:r.impact,afterCritical:r.afterCritical}):Jr({isMovingForward:u,previousPageBorderBoxCenter:d,draggable:s,isOver:a,draggables:f,droppables:g,viewport:r.viewport,afterCritical:r.afterCritical})};function Qr(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function Zr(e){var r=br(e.top,e.bottom),t=br(e.left,e.right);return function(e){return r(e.y)&&t(e.x)}}function et(e){var r=e.pageBorderBox,t=e.draggable,n=e.droppables,i=lr(n).filter((function(e){if(!e.isEnabled)return!1;var t,n,i=e.subject.active;if(!i)return!1;if(n=i,!((t=r).left<n.right&&t.right>n.left&&t.top<n.bottom&&t.bottom>n.top))return!1;if(Zr(i)(r.center))return!0;var o=e.axis,a=i.center[o.crossAxisLine],l=r[o.crossAxisStart],c=r[o.crossAxisEnd],u=br(i[o.crossAxisStart],i[o.crossAxisEnd]),s=u(l),d=u(c);return!s&&!d||(s?l<a:c>a)}));return i.length?1===i.length?i[0].descriptor.id:function(e){var r=e.pageBorderBox,t=e.draggable,n=e.candidates,i=t.page.borderBox.center,o=n.map((function(e){var t=e.axis,n=Me(e.axis.line,r.center[t.line],e.page.borderBox.center[t.crossAxisLine]);return{id:e.descriptor.id,distance:Le(i,n)}})).sort((function(e,r){return r.distance-e.distance}));return o[0]?o[0].id:null}({pageBorderBox:r,draggable:t,candidates:i}):null}var rt=function(e,r){return Fe(Ye(e,r))};function tt(e){var r=e.displaced,t=e.id;return Boolean(r.visible[t]||r.invisible[t])}var nt=function(e){var r=e.pageOffset,t=e.draggable,n=e.draggables,i=e.droppables,o=e.previousImpact,a=e.viewport,l=e.afterCritical,c=rt(t.page.borderBox,r),u=et({pageBorderBox:c,draggable:t,droppables:i});if(!u)return mr;var s=i[u],d=ur(s.descriptor.id,n),p=function(e,r){var t=e.frame;return t?rt(r,t.scroll.diff.value):r}(s,c);return function(e){var r=e.draggable,t=e.pageBorderBoxWithDroppableScroll,n=e.previousImpact,i=e.destination,o=e.insideDestination,a=e.afterCritical;if(!i.isCombineEnabled)return null;var l=i.axis,c=zr(i.axis,r.displaceBy),u=c.value,s=t[l.start],d=t[l.end],p=nr(pr(r,o),(function(e){var r=e.descriptor.id,t=e.page.borderBox,i=t[l.size]/4,o=Pr(r,a),c=tt({displaced:n.displaced,id:r});return o?c?d>t[l.start]+i&&d<t[l.end]-i:s>t[l.start]-u+i&&s<t[l.end]-u-i:c?d>t[l.start]+u+i&&d<t[l.end]+u-i:s>t[l.start]+i&&s<t[l.end]-i}));return p?{displacedBy:c,displaced:n.displaced,at:{type:"COMBINE",combine:{draggableId:p.descriptor.id,droppableId:i.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:p,draggable:t,previousImpact:o,destination:s,insideDestination:d,afterCritical:l})||function(e){var r=e.pageBorderBoxWithDroppableScroll,t=e.draggable,n=e.destination,i=e.insideDestination,o=e.last,a=e.viewport,l=e.afterCritical,c=n.axis,u=zr(n.axis,t.displaceBy),s=u.value,d=r[c.start],p=r[c.end],f=function(e){var r=e.draggable,t=e.closest,n=e.inHomeList;return t?n&&t.descriptor.index>r.descriptor.index?t.descriptor.index-1:t.descriptor.index:null}({draggable:t,closest:nr(pr(t,i),(function(e){var r=e.descriptor.id,t=e.page.borderBox.center[c.line],n=Pr(r,l),i=tt({displaced:o,id:r});return n?i?p<=t:d<t-s:i?p<=t+s:d<t})),inHomeList:fr(t,n)});return Or({draggable:t,insideDestination:i,destination:n,viewport:a,last:o,displacedBy:u,index:f})}({pageBorderBoxWithDroppableScroll:p,draggable:t,destination:s,insideDestination:d,last:o.displaced,viewport:a,afterCritical:l})},it=function(e,r){var t;return a({},e,((t={})[r.descriptor.id]=r,t))},ot=function(e){var r=e.previousImpact,t=e.impact,n=e.droppables,i=Xr(r),o=Xr(t);if(!i)return n;if(i===o)return n;var l=n[i];if(!l.subject.withPlaceholder)return n;var c=function(e){var r=e.subject.withPlaceholder;r||u(!1);var t=e.frame;if(!t)return a({},e,{subject:Ke({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null})});var n=r.oldFrameMaxScroll;n||u(!1);var i=$r(t,n);return a({},e,{subject:Ke({page:e.subject.page,axis:e.axis,frame:i,withPlaceholder:null}),frame:i})}(l);return it(n,c)},at=function(e){var r=e.state,t=e.clientSelection,n=e.dimensions,i=e.viewport,o=e.impact,l=e.scrollJumpRequest,c=i||r.viewport,u=n||r.dimensions,s=t||r.current.client.selection,d=Ne(s,r.initial.client.selection),p={offset:d,selection:s,borderBoxCenter:Re(r.initial.client.borderBoxCenter,d)},f={selection:Re(p.selection,c.scroll.current),borderBoxCenter:Re(p.borderBoxCenter,c.scroll.current),offset:Re(p.offset,c.scroll.diff.value)},g={client:p,page:f};if("COLLECTING"===r.phase)return a({phase:"COLLECTING"},r,{dimensions:u,viewport:c,current:g});var v=u.draggables[r.critical.draggable.id],m=o||nt({pageOffset:f.offset,draggable:v,draggables:u.draggables,droppables:u.droppables,previousImpact:r.impact,viewport:c,afterCritical:r.afterCritical}),b=function(e){var r=e.draggable,t=e.draggables,n=e.droppables,i=e.previousImpact,o=e.impact,a=ot({previousImpact:i,impact:o,droppables:n}),l=Xr(o);if(!l)return a;var c=n[l];if(fr(r,c))return a;if(c.subject.withPlaceholder)return a;var u=Yr(c,r,t);return it(a,u)}({draggable:v,impact:m,previousImpact:r.impact,draggables:u.draggables,droppables:u.droppables});return a({},r,{current:g,dimensions:{draggables:u.draggables,droppables:b},impact:m,viewport:c,scrollJumpRequest:l||null,forceShouldAnimate:!l&&null})};var lt=function(e){var r=e.impact,t=e.viewport,n=e.draggables,i=e.destination,o=e.forceShouldAnimate,l=r.displaced;return a({},r,{displaced:Sr({afterDragging:function(e,r){return e.map((function(e){return r[e]}))}(l.all,n),destination:i,displacedBy:r.displacedBy,viewport:t.frame,forceShouldAnimate:o,last:l})})},ct=function(e){var r=e.impact,t=e.draggable,n=e.droppable,i=e.draggables,o=e.viewport,a=e.afterCritical,l=_r({impact:r,draggable:t,draggables:i,droppable:n,afterCritical:a});return kr({pageBorderBoxCenter:l,draggable:t,viewport:o})},ut=function(e){var r=e.state,t=e.dimensions,n=e.viewport;"SNAP"!==r.movementMode&&u(!1);var i=r.impact,o=n||r.viewport,a=t||r.dimensions,l=a.draggables,c=a.droppables,s=l[r.critical.draggable.id],d=Xr(i);d||u(!1);var p=c[d],f=lt({impact:i,viewport:o,destination:p,draggables:l}),g=ct({impact:f,draggable:s,droppable:p,draggables:l,viewport:o,afterCritical:r.afterCritical});return at({impact:f,clientSelection:g,state:r,dimensions:a,viewport:o})},st=function(e){var r=e.draggable,t=e.home,n=e.draggables,i=e.viewport,o=zr(t.axis,r.displaceBy),a=ur(t.descriptor.id,n),l=a.indexOf(r);-1===l&&u(!1);var c,s=a.slice(l+1),d=s.reduce((function(e,r){return e[r.descriptor.id]=!0,e}),{}),p={inVirtualList:"virtual"===t.descriptor.mode,displacedBy:o,effected:d};return{impact:{displaced:Sr({afterDragging:s,destination:t,displacedBy:o,last:null,viewport:i.frame,forceShouldAnimate:!1}),displacedBy:o,at:{type:"REORDER",destination:(c=r.descriptor,{index:c.index,droppableId:c.droppableId})}},afterCritical:p}},dt=function(e){var r=e.additions,t=e.updatedDroppables,n=e.viewport,i=n.scroll.diff.value;return r.map((function(e){var r=e.descriptor.droppableId,o=function(e){var r=e.frame;return r||u(!1),r}(t[r]).scroll.diff.value;return function(e){var r=e.draggable,t=e.offset,n=e.initialWindowScroll,i=qe(r.client,t),o=Ve(i,n);return a({},r,{placeholder:a({},r.placeholder,{client:i}),client:i,page:o})}({draggable:e,offset:Re(i,o),initialWindowScroll:n.scroll.initial})}))},pt=function(e){return"SNAP"===e.movementMode},ft=function(e,r,t){var n=function(e,r){return{draggables:e.draggables,droppables:it(e.droppables,r)}}(e.dimensions,r);return!pt(e)||t?at({state:e,dimensions:n}):ut({state:e,dimensions:n})};function gt(e){return e.isDragging&&"SNAP"===e.movementMode?a({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var vt={phase:"IDLE",completed:null,shouldFlush:!1},mt=function(e,r){if(void 0===e&&(e=vt),"FLUSH"===r.type)return a({},vt,{shouldFlush:!0});if("INITIAL_PUBLISH"===r.type){"IDLE"!==e.phase&&u(!1);var t=r.payload,n=t.critical,i=t.clientSelection,o=t.viewport,l=t.dimensions,c=t.movementMode,s=l.draggables[n.draggable.id],d=l.droppables[n.droppable.id],p={selection:i,borderBoxCenter:s.client.borderBox.center,offset:Ae},f={client:p,page:{selection:Re(p.selection,o.scroll.initial),borderBoxCenter:Re(p.selection,o.scroll.initial),offset:Re(p.selection,o.scroll.diff.value)}},g=lr(l.droppables).every((function(e){return!e.isFixedOnPage})),v=st({draggable:s,home:d,draggables:l.draggables,viewport:o}),m=v.impact;return{phase:"DRAGGING",isDragging:!0,critical:n,movementMode:c,dimensions:l,initial:f,current:f,isWindowScrollAllowed:g,impact:m,afterCritical:v.afterCritical,onLiftImpact:m,viewport:o,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===r.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&u(!1),a({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===r.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&u(!1),function(e){var r=e.state,t=e.published,n=t.modified.map((function(e){var t=r.dimensions.droppables[e.droppableId];return Qe(t,e.scroll)})),i=a({},r.dimensions.droppables,{},or(n)),o=ar(dt({additions:t.additions,updatedDroppables:i,viewport:r.viewport})),l=a({},r.dimensions.draggables,{},o);t.removals.forEach((function(e){delete l[e]}));var c={droppables:i,draggables:l},u=Xr(r.impact),s=u?c.droppables[u]:null,d=c.draggables[r.critical.draggable.id],p=c.droppables[r.critical.droppable.id],f=st({draggable:d,home:p,draggables:l,viewport:r.viewport}),g=f.impact,v=f.afterCritical,m=s&&s.isCombineEnabled?r.impact:g,b=nt({pageOffset:r.current.page.offset,draggable:c.draggables[r.critical.draggable.id],draggables:c.draggables,droppables:c.droppables,previousImpact:m,viewport:r.viewport,afterCritical:v}),h=a({phase:"DRAGGING"},r,{phase:"DRAGGING",impact:b,onLiftImpact:g,dimensions:c,afterCritical:v,forceShouldAnimate:!1});return"COLLECTING"===r.phase?h:a({phase:"DROP_PENDING"},h,{phase:"DROP_PENDING",reason:r.reason,isWaiting:!1})}({state:e,published:r.payload});if("MOVE"===r.type){if("DROP_PENDING"===e.phase)return e;Qr(e)||u(!1);var b=r.payload.client;return Be(b,e.current.client.selection)?e:at({state:e,clientSelection:b,impact:pt(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===r.type){if("DROP_PENDING"===e.phase)return gt(e);if("COLLECTING"===e.phase)return gt(e);Qr(e)||u(!1);var h=r.payload,y=h.id,x=h.newScroll,I=e.dimensions.droppables[y];if(!I)return e;var D=Qe(I,x);return ft(e,D,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===r.type){if("DROP_PENDING"===e.phase)return e;Qr(e)||u(!1);var w=r.payload,E=w.id,S=w.isEnabled,C=e.dimensions.droppables[E];C||u(!1),C.isEnabled===S&&u(!1);var O=a({},C,{isEnabled:S});return ft(e,O,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===r.type){if("DROP_PENDING"===e.phase)return e;Qr(e)||u(!1);var P=r.payload,A=P.id,R=P.isCombineEnabled,N=e.dimensions.droppables[A];N||u(!1),N.isCombineEnabled===R&&u(!1);var B=a({},N,{isCombineEnabled:R});return ft(e,B,!0)}if("MOVE_BY_WINDOW_SCROLL"===r.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;Qr(e)||u(!1),e.isWindowScrollAllowed||u(!1);var T=r.payload.newScroll;if(Be(e.viewport.scroll.current,T))return gt(e);var M=Fr(e.viewport,T);return pt(e)?ut({state:e,viewport:M}):at({state:e,viewport:M})}if("UPDATE_VIEWPORT_MAX_SCROLL"===r.type){if(!Qr(e))return e;var L=r.payload.maxScroll;if(Be(L,e.viewport.scroll.max))return e;var G=a({},e.viewport,{scroll:a({},e.viewport.scroll,{max:L})});return a({phase:"DRAGGING"},e,{viewport:G})}if("MOVE_UP"===r.type||"MOVE_DOWN"===r.type||"MOVE_LEFT"===r.type||"MOVE_RIGHT"===r.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&u(!1);var _=Kr({state:e,type:r.type});return _?at({state:e,impact:_.impact,clientSelection:_.clientSelection,scrollJumpRequest:_.scrollJumpRequest}):e}if("DROP_PENDING"===r.type){var F=r.payload.reason;return"COLLECTING"!==e.phase&&u(!1),a({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:F})}if("DROP_ANIMATE"===r.type){var j=r.payload,k=j.completed,W=j.dropDuration,U=j.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&u(!1),{phase:"DROP_ANIMATING",completed:k,dropDuration:W,newHomeClientOffset:U,dimensions:e.dimensions}}return"DROP_COMPLETE"===r.type?{phase:"IDLE",completed:r.payload.completed,shouldFlush:!1}:e},bt=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},ht=function(){return{type:"COLLECTION_STARTING",payload:null}},yt=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},xt=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},It=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},Dt=function(e){return{type:"MOVE",payload:e}},wt=function(){return{type:"MOVE_UP",payload:null}},Et=function(){return{type:"MOVE_DOWN",payload:null}},St=function(){return{type:"MOVE_RIGHT",payload:null}},Ct=function(){return{type:"MOVE_LEFT",payload:null}},Ot=function(e){return{type:"DROP_COMPLETE",payload:e}},Pt=function(e){return{type:"DROP",payload:e}},At=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}},Rt="cubic-bezier(.2,1,.1,1)",Nt={drop:0,combining:.7},Bt={drop:.75},Tt=.2+"s "+"cubic-bezier(0.2, 0, 0, 1)",Mt={fluid:"opacity "+Tt,snap:"transform "+Tt+", opacity "+Tt,drop:function(e){var r=e+"s "+Rt;return"transform "+r+", opacity "+r},outOfTheWay:"transform "+Tt,placeholder:"height "+Tt+", width "+Tt+", margin "+Tt},Lt=function(e){return Be(e,Ae)?null:"translate("+e.x+"px, "+e.y+"px)"},Gt=Lt,_t=function(e,r){var t=Lt(e);return t?r?t+" scale("+Bt.drop+")":t:null},Ft=.33,jt=.55,kt=jt-Ft,Wt=function(e){var r=e.getState,t=e.dispatch;return function(e){return function(n){if("DROP"===n.type){var i=r(),o=n.payload.reason;if("COLLECTING"!==i.phase){if("IDLE"!==i.phase){"DROP_PENDING"===i.phase&&i.isWaiting&&u(!1),"DRAGGING"!==i.phase&&"DROP_PENDING"!==i.phase&&u(!1);var l=i.critical,c=i.dimensions,s=c.draggables[i.critical.draggable.id],d=function(e){var r=e.draggables,t=e.reason,n=e.lastImpact,i=e.home,o=e.viewport,l=e.onLiftImpact;return n.at&&"DROP"===t?"REORDER"===n.at.type?{impact:n,didDropInsideDroppable:!0}:{impact:a({},n,{displaced:vr}),didDropInsideDroppable:!0}:{impact:lt({draggables:r,impact:l,destination:i,viewport:o,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:o,lastImpact:i.impact,afterCritical:i.afterCritical,onLiftImpact:i.onLiftImpact,home:i.dimensions.droppables[i.critical.droppable.id],viewport:i.viewport,draggables:i.dimensions.draggables}),p=d.impact,f=d.didDropInsideDroppable,g=f?sr(p):null,v=f?dr(p):null,m={index:l.draggable.index,droppableId:l.droppable.id},b={draggableId:s.descriptor.id,type:s.descriptor.type,source:m,reason:o,mode:i.movementMode,destination:g,combine:v},h=function(e){var r=e.impact,t=e.draggable,n=e.dimensions,i=e.viewport,o=e.afterCritical,a=n.draggables,l=n.droppables,c=Xr(r),u=c?l[c]:null,s=l[t.descriptor.droppableId],d=ct({impact:r,draggable:t,draggables:a,afterCritical:o,droppable:u||s,viewport:i});return Ne(d,t.client.borderBox.center)}({impact:p,draggable:s,dimensions:c,viewport:i.viewport,afterCritical:i.afterCritical}),y={critical:i.critical,afterCritical:i.afterCritical,result:b,impact:p};if(!Be(i.current.client.offset,h)||Boolean(b.combine)){var x=function(e){var r=e.current,t=e.destination,n=e.reason,i=Le(r,t);if(i<=0)return Ft;if(i>=1500)return jt;var o=Ft+kt*(i/1500);return Number(("CANCEL"===n?.6*o:o).toFixed(2))}({current:i.current.client.offset,destination:h,reason:o});t(function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:h,dropDuration:x,completed:y}))}else t(Ot({completed:y}))}}else t(function(e){return{type:"DROP_PENDING",payload:e}}({reason:o}))}else e(n)}}},Ut=function(e){var r=[],t=null,n=function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];r=i,t||(t=requestAnimationFrame((function(){t=null,e.apply(void 0,r)})))};return n.cancel=function(){t&&(cancelAnimationFrame(t),t=null)},n},Ht=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function qt(e){var r=e.onWindowScroll;var t=Ut((function(){r(Ht())})),n=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(r){r.target!==window&&r.target!==window.document||e()}}}(t),i=o;function a(){return i!==o}return{start:function(){a()&&u(!1),i=l(window,[n])},stop:function(){a()||u(!1),t.cancel(),i(),i=o},isActive:a}}var Vt=function(e){var r=qt({onWindowScroll:function(r){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:r}})}});return function(e){return function(t){r.isActive()||"INITIAL_PUBLISH"!==t.type||r.start(),r.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(t)&&r.stop(),e(t)}}},zt=function(){var e=[];return{add:function(r){var t=setTimeout((function(){return function(r){var t=tr(e,(function(e){return e.timerId===r}));-1===t&&u(!1),e.splice(t,1)[0].callback()}(t)})),n={timerId:t,callback:r};e.push(n)},flush:function(){if(e.length){var r=[].concat(e);e.length=0,r.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}},$t=function(e,r){r()},Yt=function(e,r){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:r}},Jt=function(e,r,t,n){if(e){var i=function(e){var r=!1,t=!1,n=setTimeout((function(){t=!0})),i=function(i){r||t||(r=!0,e(i),clearTimeout(n))};return i.wasCalled=function(){return r},i}(t);e(r,{announce:i}),i.wasCalled()||t(n(r))}else t(n(r))},Xt=function(e,r){var t=function(e,r){var t=zt(),n=null,i=function(t){n||u(!1),n=null,$t(0,(function(){return Jt(e().onDragEnd,t,r,v.onDragEnd)}))};return{beforeCapture:function(r,t){n&&u(!1),$t(0,(function(){var n=e().onBeforeCapture;n&&n({draggableId:r,mode:t})}))},beforeStart:function(r,t){n&&u(!1),$t(0,(function(){var n=e().onBeforeDragStart;n&&n(Yt(r,t))}))},start:function(i,o){n&&u(!1);var a=Yt(i,o);n={mode:o,lastCritical:i,lastLocation:a.source,lastCombine:null},t.add((function(){$t(0,(function(){return Jt(e().onDragStart,a,r,v.onDragStart)}))}))},update:function(i,o){var l=sr(o),c=dr(o);n||u(!1);var s=!function(e,r){if(e===r)return!0;var t=e.draggable.id===r.draggable.id&&e.draggable.droppableId===r.draggable.droppableId&&e.draggable.type===r.draggable.type&&e.draggable.index===r.draggable.index,n=e.droppable.id===r.droppable.id&&e.droppable.type===r.droppable.type;return t&&n}(i,n.lastCritical);s&&(n.lastCritical=i);var d,p,f=(d=n.lastLocation,p=l,!(null==d&&null==p||null!=d&&null!=p&&d.droppableId===p.droppableId&&d.index===p.index));f&&(n.lastLocation=l);var g=!function(e,r){return null==e&&null==r||null!=e&&null!=r&&(e.draggableId===r.draggableId&&e.droppableId===r.droppableId)}(n.lastCombine,c);if(g&&(n.lastCombine=c),s||f||g){var m=a({},Yt(i,n.mode),{combine:c,destination:l});t.add((function(){$t(0,(function(){return Jt(e().onDragUpdate,m,r,v.onDragUpdate)}))}))}},flush:function(){n||u(!1),t.flush()},drop:i,abort:function(){if(n){var e=a({},Yt(n.lastCritical,n.mode),{combine:null,destination:null,reason:"CANCEL"});i(e)}}}}(e,r);return function(e){return function(r){return function(n){if("BEFORE_INITIAL_CAPTURE"!==n.type){if("INITIAL_PUBLISH"===n.type){var i=n.payload.critical;return t.beforeStart(i,n.payload.movementMode),r(n),void t.start(i,n.payload.movementMode)}if("DROP_COMPLETE"===n.type){var o=n.payload.completed.result;return t.flush(),r(n),void t.drop(o)}if(r(n),"FLUSH"!==n.type){var a=e.getState();"DRAGGING"===a.phase&&t.update(a.critical,a.impact)}else t.abort()}else t.beforeCapture(n.payload.draggableId,n.payload.movementMode)}}}},Kt=function(e){return function(r){return function(t){if("DROP_ANIMATION_FINISHED"===t.type){var n=e.getState();"DROP_ANIMATING"!==n.phase&&u(!1),e.dispatch(Ot({completed:n.completed}))}else r(t)}}},Qt=function(e){var r=null,t=null;return function(n){return function(i){if("FLUSH"!==i.type&&"DROP_COMPLETE"!==i.type&&"DROP_ANIMATION_FINISHED"!==i.type||(t&&(cancelAnimationFrame(t),t=null),r&&(r(),r=null)),n(i),"DROP_ANIMATE"===i.type){var o={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};t=requestAnimationFrame((function(){t=null,r=l(window,[o])}))}}}},Zt=function(e){return function(r){return function(t){if(r(t),"PUBLISH_WHILE_DRAGGING"===t.type){var n=e.getState();"DROP_PENDING"===n.phase&&(n.isWaiting||e.dispatch(Pt({reason:n.reason})))}}}},en=C,rn=function(e){var r,t=e.dimensionMarshal,n=e.focusMarshal,i=e.styleMarshal,o=e.getResponders,a=e.announce,l=e.autoScroller;return x(mt,en(function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return function(e){return function(){var t=e.apply(void 0,arguments),n=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},i={getState:t.getState,dispatch:function(){return n.apply(void 0,arguments)}},o=r.map((function(e){return e(i)}));return S({},t,{dispatch:n=C.apply(void 0,o)(t.dispatch)})}}}((r=i,function(){return function(e){return function(t){"INITIAL_PUBLISH"===t.type&&r.dragging(),"DROP_ANIMATE"===t.type&&r.dropping(t.payload.completed.result.reason),"FLUSH"!==t.type&&"DROP_COMPLETE"!==t.type||r.resting(),e(t)}}}),function(e){return function(){return function(r){return function(t){"DROP_COMPLETE"!==t.type&&"FLUSH"!==t.type&&"DROP_ANIMATE"!==t.type||e.stopPublishing(),r(t)}}}}(t),function(e){return function(r){var t=r.getState,n=r.dispatch;return function(r){return function(i){if("LIFT"===i.type){var o=i.payload,a=o.id,l=o.clientSelection,c=o.movementMode,s=t();"DROP_ANIMATING"===s.phase&&n(Ot({completed:s.completed})),"IDLE"!==t().phase&&u(!1),n({type:"FLUSH",payload:null}),n({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:c}});var d={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===c}},p=e.startPublishing(d),f=p.critical,g=p.dimensions,v=p.viewport;n(function(e){return{type:"INITIAL_PUBLISH",payload:e}}({critical:f,dimensions:g,clientSelection:l,movementMode:c,viewport:v}))}else r(i)}}}}(t),Wt,Kt,Qt,Zt,function(e){return function(r){return function(t){return function(n){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n))return e.stop(),void t(n);if("INITIAL_PUBLISH"===n.type){t(n);var i=r.getState();return"DRAGGING"!==i.phase&&u(!1),void e.start(i)}t(n),e.scroll(r.getState())}}}}(l),Vt,function(e){var r=!1;return function(){return function(t){return function(n){if("INITIAL_PUBLISH"===n.type)return r=!0,e.tryRecordFocus(n.payload.critical.draggable.id),t(n),void e.tryRestoreFocusRecorded();if(t(n),r){if("FLUSH"===n.type)return r=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===n.type){r=!1;var i=n.payload.completed.result;i.combine&&e.tryShiftRecord(i.draggableId,i.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(n),Xt(o,a))))};var tn=function(e){var r=e.scrollHeight,t=e.scrollWidth,n=e.height,i=e.width,o=Ne({x:t,y:r},{x:i,y:n});return{x:Math.max(0,o.x),y:Math.max(0,o.y)}},nn=function(){var e=document.documentElement;return e||u(!1),e},on=function(){var e=nn();return tn({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},an=function(e){var r=e.critical,t=e.scrollOptions,n=e.registry,i=function(){var e=Ht(),r=on(),t=e.y,n=e.x,i=nn(),o=i.clientWidth,a=i.clientHeight;return{frame:Fe({top:t,left:n,right:n+o,bottom:t+a}),scroll:{initial:e,current:e,max:r,diff:{value:Ae,displacement:Ae}}}}(),o=i.scroll.current,a=r.droppable,l=n.droppable.getAllByType(a.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(o,t)})),c=n.draggable.getAllByType(r.draggable.type).map((function(e){return e.getDimension(o)}));return{dimensions:{draggables:ar(c),droppables:or(l)},critical:r,viewport:i}};function ln(e,r,t){return t.descriptor.id!==r.id&&(t.descriptor.type===r.type&&"virtual"===e.droppable.getById(t.descriptor.droppableId).descriptor.mode)}var cn,un,sn=function(e,r){var t=null,n=function(e){var r=e.registry,t=e.callbacks,n={additions:{},removals:{},modified:{}},i=null,o=function(){i||(t.collectionStarting(),i=requestAnimationFrame((function(){i=null;var e=n,o=e.additions,a=e.removals,l=e.modified,c=Object.keys(o).map((function(e){return r.draggable.getById(e).getDimension(Ae)})).sort((function(e,r){return e.descriptor.index-r.descriptor.index})),u=Object.keys(l).map((function(e){return{droppableId:e,scroll:r.droppable.getById(e).callbacks.getScrollWhileDragging()}})),s={additions:c,removals:Object.keys(a),modified:u};n={additions:{},removals:{},modified:{}},t.publish(s)})))};return{add:function(e){var r=e.descriptor.id;n.additions[r]=e,n.modified[e.descriptor.droppableId]=!0,n.removals[r]&&delete n.removals[r],o()},remove:function(e){var r=e.descriptor;n.removals[r.id]=!0,n.modified[r.droppableId]=!0,n.additions[r.id]&&delete n.additions[r.id],o()},stop:function(){i&&(cancelAnimationFrame(i),i=null,n={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:r.publishWhileDragging,collectionStarting:r.collectionStarting},registry:e}),i=function(r){t||u(!1);var i=t.critical.draggable;"ADDITION"===r.type&&ln(e,i,r.value)&&n.add(r.value),"REMOVAL"===r.type&&ln(e,i,r.value)&&n.remove(r.value)};return{updateDroppableIsEnabled:function(n,i){e.droppable.exists(n)||u(!1),t&&r.updateDroppableIsEnabled({id:n,isEnabled:i})},updateDroppableIsCombineEnabled:function(n,i){t&&(e.droppable.exists(n)||u(!1),r.updateDroppableIsCombineEnabled({id:n,isCombineEnabled:i}))},scrollDroppable:function(r,n){t&&e.droppable.getById(r).callbacks.scroll(n)},updateDroppableScroll:function(n,i){t&&(e.droppable.exists(n)||u(!1),r.updateDroppableScroll({id:n,newScroll:i}))},startPublishing:function(r){t&&u(!1);var n=e.draggable.getById(r.draggableId),o=e.droppable.getById(n.descriptor.droppableId),a={draggable:n.descriptor,droppable:o.descriptor},l=e.subscribe(i);return t={critical:a,unsubscribe:l},an({critical:a,registry:e,scrollOptions:r.scrollOptions})},stopPublishing:function(){if(t){n.stop();var r=t.critical.droppable;e.droppable.getAllByType(r.type).forEach((function(e){return e.callbacks.dragStopped()})),t.unsubscribe(),t=null}}}},dn=function(e,r){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==r&&"DROP"===e.completed.result.reason)},pn=function(e){window.scrollBy(e.x,e.y)},fn=er((function(e){return lr(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),gn=function(e){var r=e.center,t=e.destination,n=e.droppables;if(t){var i=n[t];return i.frame?i:null}return function(e,r){return nr(fn(r),(function(r){return r.frame||u(!1),Zr(r.frame.pageMarginBox)(e)}))}(r,n)},vn=function(e){var r=e.startOfRange,t=e.endOfRange,n=e.current,i=t-r;return 0===i?0:(n-r)/i},mn={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(e){return Math.pow(e,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},bn=mn.durationDampening.accelerateAt,hn=mn.durationDampening.stopDampeningAt,yn=function(e){var r=e.configOverride,t=e.distanceToEdge,n=e.dragStartTime,i=e.shouldUseTimeDampening,o=function(e,r,t){if(e>r.startScrollingFrom)return 0;var n=(null==t?void 0:t.maxPixelScroll)||mn.maxPixelScroll;if(e<=r.maxScrollValueAt)return n;if(e===r.startScrollingFrom)return 1;var i=1-vn({startOfRange:r.maxScrollValueAt,endOfRange:r.startScrollingFrom,current:e}),o=n*mn.ease(i);return Math.ceil(o)}(t,e.thresholds,r);return 0===o?0:i?Math.max(function(e,r,t){var n,i,o=(null==t||null==(n=t.durationDampening)?void 0:n.accelerateAt)||bn,a=(null==t||null==(i=t.durationDampening)?void 0:i.stopDampeningAt)||hn,l=(null==t?void 0:t.ease)||mn.ease,c=r,u=a,s=Date.now()-c;if(s>=a)return e;if(s<o)return 1;var d=e*l(vn({startOfRange:o,endOfRange:u,current:s}));return Math.ceil(d)}(o,n,r),1):o},xn=function(e){var r=e.axis,t=e.configOverride,n=e.distanceToEdges,i=e.dragStartTime,o=e.shouldUseTimeDampening,a=e.thresholds;return n[r.end]<n[r.start]?yn({configOverride:t,distanceToEdge:n[r.end],dragStartTime:i,shouldUseTimeDampening:o,thresholds:a}):-1*yn({configOverride:t,distanceToEdge:n[r.start],dragStartTime:i,shouldUseTimeDampening:o,thresholds:a})},In=function(e){var r=e.axis,t=e.bufferMinScroll,n=e.center,i=e.centerInitial,o=e.container,a=e.containerScroll,l=e.distanceToEdges,c=e.thresholds,u=e.windowScrollOffset,s=l[r.end]<c.startScrollingFrom,d=n[r.line]>o[r.size]-c.startScrollingFrom+u[r.line]||s;return{inThresholdStart:n[r.line]<c.startScrollingFrom+u[r.line],inThresholdEnd:d,draggedTowardsStart:n[r.line]<i[r.line]-t,draggedTowardsEnd:n[r.line]>i[r.line]+t,scrolledTowardsStart:a.initial[r.line]>a.current[r.line],scrolledTowardsEnd:a.initial[r.line]<a.current[r.line]}},Dn=function(e){var r=e.bufferMinScroll,t=void 0===r?24:r,n=e.center,i=e.centerInitial,o=e.container,a=e.containerScroll,l=e.distanceToEdges,c=e.scroll,u=function(e){var r=e.bufferMinScroll,t=e.center,n=e.centerInitial,i=e.container,o=e.containerScroll,a=e.distanceToEdges,l=e.thresholdsHorizontal,c=e.thresholdsVertical,u=e.windowScrollOffset;return{xAxis:In({axis:Ir,bufferMinScroll:r,center:t,centerInitial:n,container:i,containerScroll:o,distanceToEdges:a,thresholds:l,windowScrollOffset:u}),yAxis:In({axis:xr,bufferMinScroll:r,center:t,centerInitial:n,container:i,containerScroll:o,distanceToEdges:a,thresholds:c,windowScrollOffset:u})}}({bufferMinScroll:t,center:n,centerInitial:i,container:o,containerScroll:a,distanceToEdges:l,thresholdsHorizontal:e.thresholdsHorizontal,thresholdsVertical:e.thresholdsVertical,windowScrollOffset:e.windowScrollOffset}),s=u.xAxis,d=u.yAxis;return s.inThresholdStart?s.draggedTowardsStart||s.scrolledTowardsEnd||(c.x=0):s.inThresholdEnd&&(s.draggedTowardsEnd||s.scrolledTowardsStart||(c.x=0)),d.inThresholdStart?d.draggedTowardsStart||d.scrolledTowardsEnd||(c.y=0):d.inThresholdEnd&&(d.draggedTowardsEnd||d.scrolledTowardsStart||(c.y=0)),c},wn=function(e,r,t){var n=(null==t?void 0:t.startFromPercentage)||mn.startFromPercentage,i=(null==t?void 0:t.maxScrollAtPercentage)||mn.maxScrollAtPercentage;return{startScrollingFrom:e[r.size]*n,maxScrollValueAt:e[r.size]*i}},En=_e((function(e){return 0===e?0:e})),Sn=function(e){var r=e.dragStartTime,t=e.container,n=e.containerScroll,i=e.subject,o=e.center,a=e.centerInitial,l=e.shouldUseTimeDampening,c=e.fluidScrollerOptions,u=e.windowScrollOffset,s=void 0===u?Ae:u,d={top:o.y-t.top,right:t.right-o.x,bottom:t.bottom-o.y,left:o.x-t.left},p=wn(t,xr,null==c?void 0:c.configOverride),f=wn(t,Ir,null==c?void 0:c.configOverride),g=xn({axis:xr,configOverride:null==c?void 0:c.configOverride,distanceToEdges:d,dragStartTime:r,shouldUseTimeDampening:l,thresholds:p}),v=xn({axis:Ir,configOverride:null==c?void 0:c.configOverride,distanceToEdges:d,dragStartTime:r,shouldUseTimeDampening:l,thresholds:f}),m=En({x:v,y:g});if(Be(m,Ae))return null;var b=function(e){var r=e.container,t=e.subject,n=e.proposedScroll,i=t.height>r.height,o=t.width>r.width;return o||i?o&&i?null:{x:o?0:n.x,y:i?0:n.y}:n}({container:t,subject:i,proposedScroll:m});if(!b)return null;var h=b;return c&&(c.bufferThresholds&&(h=Dn({bufferMinScroll:null==c?void 0:c.bufferMinScroll,center:o,centerInitial:a,container:t,containerScroll:n,distanceToEdges:d,scroll:h,thresholdsHorizontal:f,thresholdsVertical:p,windowScrollOffset:s})),c.thruGetScroll&&(h=c.thruGetScroll({center:o,centerInitial:a,container:t,containerScroll:n,distanceToEdges:d,scroll:h,thresholdsHorizontal:f,thresholdsVertical:p,windowScrollOffset:s}))),Be(h,Ae)?null:h},Cn=_e((function(e){return 0===e?0:e>0?1:-1})),On=(cn=function(e,r){return e<0?e:e>r?e-r:0},function(e){var r=e.current,t=e.max,n=e.change,i=Re(r,n),o={x:cn(i.x,t.x),y:cn(i.y,t.y)};return Be(o,Ae)?null:o}),Pn=function(e){var r=e.max,t=e.current,n=e.change,i={x:Math.max(t.x,r.x),y:Math.max(t.y,r.y)},o=Cn(n),a=On({max:i,current:t,change:o});return!a||(0!==o.x&&0===a.x||0!==o.y&&0===a.y)},An=function(e,r){return Pn({current:e.scroll.current,max:e.scroll.max,change:r})},Rn=function(e,r){var t=e.frame;return!!t&&Pn({current:t.scroll.current,max:t.scroll.max,change:r})},Nn=function(e){var r=e.state,t=e.dragStartTime,n=e.shouldUseTimeDampening,i=e.scrollWindow,o=e.scrollDroppable,a=e.fluidScrollerOptions,l=r.current.page.borderBoxCenter,c=r.initial.page.borderBoxCenter,u=r.dimensions.draggables[r.critical.draggable.id].page.marginBox;if(r.isWindowScrollAllowed){var s=function(e){var r=e.viewport,t=e.subject,n=e.center,i=e.centerInitial,o=e.dragStartTime,a=e.shouldUseTimeDampening,l=e.fluidScrollerOptions,c={x:r.scroll.current.x,y:r.scroll.current.y},u=Sn({dragStartTime:o,container:r.frame,containerScroll:r.scroll,subject:t,center:n,centerInitial:i,shouldUseTimeDampening:a,fluidScrollerOptions:l,windowScrollOffset:c});return u&&An(r,u)?u:null}({dragStartTime:t,viewport:r.viewport,subject:u,center:l,centerInitial:c,shouldUseTimeDampening:n,fluidScrollerOptions:a});if(s)return void i(s)}var d=gn({center:l,destination:Xr(r.impact),droppables:r.dimensions.droppables});if(d){var p=function(e){var r=e.droppable,t=e.subject,n=e.center,i=e.centerInitial,o=e.dragStartTime,a=e.shouldUseTimeDampening,l=e.fluidScrollerOptions,c=r.frame;if(!c)return null;var u=Sn({dragStartTime:o,container:c.pageMarginBox,containerScroll:c.scroll,subject:t,center:n,centerInitial:i,shouldUseTimeDampening:a,fluidScrollerOptions:l});return u&&Rn(r,u)?u:null}({dragStartTime:t,droppable:d,subject:u,center:l,centerInitial:c,shouldUseTimeDampening:n,fluidScrollerOptions:a});p&&o(d.descriptor.id,p)}},Bn=function(e){var r=e.scrollWindow,t=e.scrollDroppable,n=e.fluidScrollerOptions,i=Ut(r),o=Ut(t),a=null,l=function(e){a||u(!1);var r=a,t=r.shouldUseTimeDampening,l=r.dragStartTime;Nn({state:e,scrollWindow:i,scrollDroppable:o,dragStartTime:l,shouldUseTimeDampening:t,fluidScrollerOptions:n})};return{start:function(e){a&&u(!1);var r=Date.now(),t=!1,i=function(){t=!0};Nn({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:i,scrollDroppable:i,fluidScrollerOptions:n}),a={dragStartTime:r,shouldUseTimeDampening:t},t&&l(e)},stop:function(){a&&(i.cancel(),o.cancel(),a=null)},scroll:l}},Tn=function(e){var r=e.move,t=e.scrollDroppable,n=e.scrollWindow,i=function(e,r){if(!Rn(e,r))return r;var n=function(e,r){var t=e.frame;return t&&Rn(e,r)?On({current:t.scroll.current,max:t.scroll.max,change:r}):null}(e,r);if(!n)return t(e.descriptor.id,r),null;var i=Ne(r,n);return t(e.descriptor.id,i),Ne(r,i)},o=function(e,r,t){if(!e)return t;if(!An(r,t))return t;var i=function(e,r){if(!An(e,r))return null;var t=e.scroll.max,n=e.scroll.current;return On({current:n,max:t,change:r})}(r,t);if(!i)return n(t),null;var o=Ne(t,i);return n(o),Ne(t,o)};return function(e){var t=e.scrollJumpRequest;if(t){var n=Xr(e.impact);n||u(!1);var a=i(e.dimensions.droppables[n],t);if(a){var l=e.viewport,c=o(e.isWindowScrollAllowed,l,a);c&&function(e,t){var n=Re(e.current.client.selection,t);r({client:n})}(e,c)}}}},Mn="data-rbd",Ln={base:un=Mn+"-drag-handle",draggableId:un+"-draggable-id",contextId:un+"-context-id"},Gn=function(){var e=Mn+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),_n=function(){var e=Mn+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Fn={contextId:Mn+"-scroll-container-context-id"},jn=function(e,r){return e.map((function(e){var t=e.styles[r];return t?e.selector+" { "+t+" }":""})).join(" ")},kn="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,Wn=function(){var e=document.querySelector("head");return e||u(!1),e},Un=function(e){var r=document.createElement("style");return e&&r.setAttribute("nonce",e),r.type="text/css",r};function Hn(e,t){var n=Oe((function(){return function(e){var r,t,n,i=(r=e,function(e){return"["+e+'="'+r+'"]'}),o=(t="\n cursor: -webkit-grab;\n cursor: grab;\n ",{selector:i(Ln.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=[(n="\n transition: "+Mt.outOfTheWay+";\n ",{selector:i(Gn.contextId),styles:{dragging:n,dropAnimating:n,userCancel:n}}),o,{selector:i(_n.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:jn(a,"always"),resting:jn(a,"resting"),dragging:jn(a,"dragging"),dropAnimating:jn(a,"dropAnimating"),userCancel:jn(a,"userCancel")}}(e)}),[e]),i=r.useRef(null),o=r.useRef(null),a=Pe(er((function(e){var r=o.current;r||u(!1),r.textContent=e})),[]),l=Pe((function(e){var r=i.current;r||u(!1),r.textContent=e}),[]);kn((function(){(i.current||o.current)&&u(!1);var r=Un(t),c=Un(t);return i.current=r,o.current=c,r.setAttribute(Mn+"-always",e),c.setAttribute(Mn+"-dynamic",e),Wn().appendChild(r),Wn().appendChild(c),l(n.always),a(n.resting),function(){var e=function(e){var r=e.current;r||u(!1),Wn().removeChild(r),e.current=null};e(i),e(o)}}),[t,l,a,n.always,n.resting,e]);var c=Pe((function(){return a(n.dragging)}),[a,n.dragging]),s=Pe((function(e){a("DROP"!==e?n.userCancel:n.dropAnimating)}),[a,n.dropAnimating,n.userCancel]),d=Pe((function(){o.current&&a(n.resting)}),[a,n.resting]);return Oe((function(){return{dragging:c,dropping:s,resting:d}}),[c,s,d])}var qn=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function Vn(e){return e instanceof qn(e).HTMLElement}function zn(e){var t=r.useRef({}),n=r.useRef(null),i=r.useRef(null),o=r.useRef(!1),a=Pe((function(e,r){var n={id:e,focus:r};return t.current[e]=n,function(){var r=t.current;r[e]!==n&&delete r[e]}}),[]),l=Pe((function(r){var t=function(e,r){var t="["+Ln.contextId+'="'+e+'"]',n=ir(document.querySelectorAll(t));if(!n.length)return null;var i=nr(n,(function(e){return e.getAttribute(Ln.draggableId)===r}));return i&&Vn(i)?i:null}(e,r);t&&t!==document.activeElement&&t.focus()}),[e]),c=Pe((function(e,r){n.current===e&&(n.current=r)}),[]),u=Pe((function(){i.current||o.current&&(i.current=requestAnimationFrame((function(){i.current=null;var e=n.current;e&&l(e)})))}),[l]),s=Pe((function(e){n.current=null;var r=document.activeElement;r&&r.getAttribute(Ln.draggableId)===e&&(n.current=e)}),[]);return kn((function(){return o.current=!0,function(){o.current=!1;var e=i.current;e&&cancelAnimationFrame(e)}}),[]),Oe((function(){return{register:a,tryRecordFocus:s,tryRestoreFocusRecorded:u,tryShiftRecord:c}}),[a,s,u,c])}function $n(){var e={draggables:{},droppables:{}},r=[];function t(e){r.length&&r.forEach((function(r){return r(e)}))}function n(r){return e.draggables[r]||null}function i(r){return e.droppables[r]||null}return{draggable:{register:function(r){e.draggables[r.descriptor.id]=r,t({type:"ADDITION",value:r})},update:function(r,t){var n=e.draggables[t.descriptor.id];n&&n.uniqueId===r.uniqueId&&(delete e.draggables[t.descriptor.id],e.draggables[r.descriptor.id]=r)},unregister:function(r){var i=r.descriptor.id,o=n(i);o&&r.uniqueId===o.uniqueId&&(delete e.draggables[i],t({type:"REMOVAL",value:r}))},getById:function(e){var r=n(e);return r||u(!1),r},findById:n,exists:function(e){return Boolean(n(e))},getAllByType:function(r){return rr(e.draggables).filter((function(e){return e.descriptor.type===r}))}},droppable:{register:function(r){e.droppables[r.descriptor.id]=r},unregister:function(r){var t=i(r.descriptor.id);t&&r.uniqueId===t.uniqueId&&delete e.droppables[r.descriptor.id]},getById:function(e){var r=i(e);return r||u(!1),r},findById:i,exists:function(e){return Boolean(i(e))},getAllByType:function(r){return rr(e.droppables).filter((function(e){return e.descriptor.type===r}))}},subscribe:function(e){return r.push(e),function(){var t=r.indexOf(e);-1!==t&&r.splice(t,1)}},clean:function(){e.draggables={},e.droppables={},r.length=0}}}var Yn=r.createContext(null),Jn=function(){var e=document.body;return e||u(!1),e},Xn={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 Kn=0,Qn={separator:"::"};function Zn(e,r){return void 0===r&&(r=Qn),Oe((function(){return""+e+r.separator+Kn++}),[r.separator,e])}var ei=r.createContext(null);function ri(e){var t=r.useRef(e);return r.useEffect((function(){t.current=e})),t}var ti,ni=((ti={})[13]=!0,ti[9]=!0,ti),ii=function(e){ni[e.keyCode]&&e.preventDefault()},oi=function(){var e="visibilitychange";return"undefined"==typeof document?e:nr([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}();var ai,li={type:"IDLE"};function ci(e){var r=e.cancel,t=e.completed,n=e.getPhase,i=e.setPhase;return[{eventName:"mousemove",fn:function(e){var r=e.button,t=e.clientX,o=e.clientY;if(0===r){var a={x:t,y:o},l=n();if("DRAGGING"===l.type)return e.preventDefault(),void l.actions.move(a);"PENDING"!==l.type&&u(!1);var c=l.point;if(s=c,d=a,Math.abs(d.x-s.x)>=5||Math.abs(d.y-s.y)>=5){var s,d;e.preventDefault();var p=l.actions.fluidLift(a);i({type:"DRAGGING",actions:p})}}}},{eventName:"mouseup",fn:function(e){var i=n();"DRAGGING"===i.type?(e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),t()):r()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===n().type&&e.preventDefault(),r()}},{eventName:"keydown",fn:function(e){if("PENDING"!==n().type)return 27===e.keyCode?(e.preventDefault(),void r()):void ii(e);r()}},{eventName:"resize",fn:r},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===n().type&&r()}},{eventName:"webkitmouseforcedown",fn:function(e){var t=n();"IDLE"===t.type&&u(!1),t.actions.shouldRespectForcePress()?r():e.preventDefault()}},{eventName:oi,fn:r}]}function ui(e){var t=r.useRef(li),n=r.useRef(o),i=Oe((function(){return{eventName:"mousedown",fn:function(r){if(!r.defaultPrevented&&0===r.button&&!(r.ctrlKey||r.metaKey||r.shiftKey||r.altKey)){var t=e.findClosestDraggableId(r);if(t){var i=e.tryGetLock(t,s,{sourceEvent:r});if(i){r.preventDefault();var o={x:r.clientX,y:r.clientY};n.current(),f(i,o)}}}}}}),[e]),a=Oe((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(r){if(!r.defaultPrevented){var t=e.findClosestDraggableId(r);if(t){var n=e.findOptionsForDraggable(t);n&&(n.shouldRespectForcePress||e.canGetLock(t)&&r.preventDefault())}}}}}),[e]),c=Pe((function(){n.current=l(window,[a,i],{passive:!1,capture:!0})}),[a,i]),s=Pe((function(){"IDLE"!==t.current.type&&(t.current=li,n.current(),c())}),[c]),d=Pe((function(){var e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),p=Pe((function(){var e=ci({cancel:d,completed:s,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});n.current=l(window,e,{capture:!0,passive:!1})}),[d,s]),f=Pe((function(e,r){"IDLE"!==t.current.type&&u(!1),t.current={type:"PENDING",point:r,actions:e},p()}),[p]);kn((function(){return c(),function(){n.current()}}),[c])}function si(){}var di=((ai={})[34]=!0,ai[33]=!0,ai[36]=!0,ai[35]=!0,ai);function pi(e,r){function t(){r(),e.cancel()}return[{eventName:"keydown",fn:function(n){return 27===n.keyCode?(n.preventDefault(),void t()):32===n.keyCode?(n.preventDefault(),r(),void e.drop()):40===n.keyCode?(n.preventDefault(),void e.moveDown()):38===n.keyCode?(n.preventDefault(),void e.moveUp()):39===n.keyCode?(n.preventDefault(),void e.moveRight()):37===n.keyCode?(n.preventDefault(),void e.moveLeft()):void(di[n.keyCode]?n.preventDefault():ii(n))}},{eventName:"mousedown",fn:t},{eventName:"mouseup",fn:t},{eventName:"click",fn:t},{eventName:"touchstart",fn:t},{eventName:"resize",fn:t},{eventName:"wheel",fn:t,options:{passive:!0}},{eventName:oi,fn:t}]}function fi(e){var t=r.useRef(si),n=Oe((function(){return{eventName:"keydown",fn:function(r){if(!r.defaultPrevented&&32===r.keyCode){var n=e.findClosestDraggableId(r);if(n){var o=e.tryGetLock(n,s,{sourceEvent:r});if(o){r.preventDefault();var a=!0,c=o.snapLift();t.current(),t.current=l(window,pi(c,s),{capture:!0,passive:!1})}}}function s(){a||u(!1),a=!1,t.current(),i()}}}}),[e]),i=Pe((function(){t.current=l(window,[n],{passive:!1,capture:!0})}),[n]);kn((function(){return i(),function(){t.current()}}),[i])}var gi={type:"IDLE"};function vi(e){var t=r.useRef(gi),n=r.useRef(o),i=Pe((function(){return t.current}),[]),a=Pe((function(e){t.current=e}),[]),c=Oe((function(){return{eventName:"touchstart",fn:function(r){if(!r.defaultPrevented){var t=e.findClosestDraggableId(r);if(t){var i=e.tryGetLock(t,d,{sourceEvent:r});if(i){var o=r.touches[0],a={x:o.clientX,y:o.clientY},l=e.findClosestDragHandle(r);l||u(!1),n.current(),v(i,a,l)}}}}}}),[e]),s=Pe((function(){n.current=l(window,[c],{capture:!0,passive:!1})}),[c]),d=Pe((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),a(gi),n.current(),s())}),[s,a]),p=Pe((function(){var e=t.current;d(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[d]),f=Pe((function(e){var r={capture:!0,passive:!1},t={cancel:p,completed:d,getPhase:i},o=l(e,function(e){var r=e.cancel,t=e.completed,n=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var t=n();if("DRAGGING"===t.type){t.hasMoved=!0;var i=e.touches[0],o={x:i.clientX,y:i.clientY};e.preventDefault(),t.actions.move(o)}else r()}},{eventName:"touchend",fn:function(e){var i=n();"DRAGGING"===i.type?(e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),t()):r()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===n().type?(e.preventDefault(),r()):r()}},{eventName:"touchforcechange",fn:function(e){var t=n();"IDLE"===t.type&&u(!1);var i=e.touches[0];if(i&&i.force>=.15){var o=t.actions.shouldRespectForcePress();if("PENDING"!==t.type)return o?t.hasMoved?void e.preventDefault():void r():void e.preventDefault();o&&r()}}},{eventName:oi,fn:r}]}(t),r),a=l(window,function(e){var r=e.cancel,t=e.getPhase;return[{eventName:"orientationchange",fn:r},{eventName:"resize",fn:r},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===t().type?(27===e.keyCode&&e.preventDefault(),r()):r()}},{eventName:oi,fn:r}]}(t),r);n.current=function(){o(),a()}}),[p,i,d]),g=Pe((function(){var e=i();"PENDING"!==e.type&&u(!1);var r=e.actions.fluidLift(e.point);a({type:"DRAGGING",actions:r,hasMoved:!1})}),[i,a]),v=Pe((function(e,r,t){"IDLE"!==i().type&&u(!1);var n=setTimeout(g,120);a({type:"PENDING",point:r,actions:e,longPressTimerId:n}),f(t)}),[f,i,a,g]);kn((function(){return s(),function(){n.current();var e=i();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),a(gi))}}),[i,s,a]),kn((function(){return l(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}var mi={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function bi(e,r){var t=r.target;return!!Vn(t)&&function e(r,t){if(null==t)return!1;if(Boolean(mi[t.tagName.toLowerCase()]))return!0;var n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==r&&e(r,t.parentElement)}(e,t)}var hi=function(e){return Fe(e.getBoundingClientRect()).center};var yi="undefined"==typeof document?"matches":nr(["matches","msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||"matches";function xi(e,r){return e.closest?e.closest(r):function e(r,t){return null==r?null:r[yi](t)?r:e(r.parentElement,t)}(e,r)}function Ii(e,r){var t,n=r.target;if(!((t=n)instanceof qn(t).Element))return null;var i=xi(n,function(e){return"["+Ln.contextId+'="'+e+'"]'}(e));return i&&Vn(i)?i:null}function Di(e){e.preventDefault()}function wi(e){var r=e.expected,t=e.phase,n=e.isLockActive;return e.shouldWarn,!!n()&&r===t}function Ei(e){var r=e.lockAPI,t=e.store,n=e.registry,i=e.draggableId;if(r.isClaimed())return!1;var o=n.draggable.findById(i);return!!o&&(!!o.options.isEnabled&&!!dn(t.getState(),i))}function Si(e){var r=e.lockAPI,t=e.contextId,n=e.store,i=e.registry,c=e.draggableId,s=e.forceSensorStop,d=e.sourceEvent;if(!Ei({lockAPI:r,store:n,registry:i,draggableId:c}))return null;var p=i.draggable.getById(c),f=function(e,r){var t="["+Gn.contextId+'="'+e+'"]',n=nr(ir(document.querySelectorAll(t)),(function(e){return e.getAttribute(Gn.id)===r}));return n&&Vn(n)?n:null}(t,p.descriptor.id);if(!f)return null;if(d&&!p.options.canDragInteractiveElements&&bi(f,d))return null;var g=r.claim(s||o),v="PRE_DRAG";function m(){return p.options.shouldRespectForcePress}function b(){return r.isActive(g)}var h=function(e,r){wi({expected:e,phase:v,isLockActive:b,shouldWarn:!0})&&n.dispatch(r())}.bind(null,"DRAGGING");function y(e){function t(){r.release(),v="COMPLETED"}function i(r,i){if(void 0===i&&(i={shouldBlockNextClick:!1}),e.cleanup(),i.shouldBlockNextClick){var o=l(window,[{eventName:"click",fn:Di,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(o)}t(),n.dispatch(Pt({reason:r}))}return"PRE_DRAG"!==v&&(t(),"PRE_DRAG"!==v&&u(!1)),n.dispatch(function(e){return{type:"LIFT",payload:e}}(e.liftActionArgs)),v="DRAGGING",a({isActive:function(){return wi({expected:"DRAGGING",phase:v,isLockActive:b,shouldWarn:!1})},shouldRespectForcePress:m,drop:function(e){return i("DROP",e)},cancel:function(e){return i("CANCEL",e)}},e.actions)}return{isActive:function(){return wi({expected:"PRE_DRAG",phase:v,isLockActive:b,shouldWarn:!1})},shouldRespectForcePress:m,fluidLift:function(e){var r=Ut((function(e){h((function(){return Dt({client:e})}))}));return a({},y({liftActionArgs:{id:c,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return r.cancel()},actions:{move:r}}),{move:r})},snapLift:function(){var e={moveUp:function(){return h(wt)},moveRight:function(){return h(St)},moveDown:function(){return h(Et)},moveLeft:function(){return h(Ct)}};return y({liftActionArgs:{id:c,clientSelection:hi(f),movementMode:"SNAP"},cleanup:o,actions:e})},abort:function(){wi({expected:"PRE_DRAG",phase:v,isLockActive:b,shouldWarn:!0})&&r.release()}}}var Ci=[ui,fi,vi];function Oi(e){var t=e.contextId,n=e.store,i=e.registry,o=e.customSensors,a=e.enableDefaultSensors,l=[].concat(a?Ci:[],o||[]),c=r.useState((function(){return function(){var e=null;function r(){e||u(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(r){return r===e},claim:function(r){e&&u(!1);var t={abandon:r};return e=t,t},release:r,tryAbandon:function(){e&&(e.abandon(),r())}}}()}))[0],s=Pe((function(e,r){e.isDragging&&!r.isDragging&&c.tryAbandon()}),[c]);kn((function(){var e=n.getState();return n.subscribe((function(){var r=n.getState();s(e,r),e=r}))}),[c,n,s]),kn((function(){return c.tryAbandon}),[c.tryAbandon]);for(var d=Pe((function(e){return Ei({lockAPI:c,registry:i,store:n,draggableId:e})}),[c,i,n]),p=Pe((function(e,r,o){return Si({lockAPI:c,registry:i,contextId:t,store:n,draggableId:e,forceSensorStop:r,sourceEvent:o&&o.sourceEvent?o.sourceEvent:null})}),[t,c,i,n]),f=Pe((function(e){return Ii(t,e)}),[t]),g=Pe((function(e){return function(e,r){var t=Ii(e,r);return t?t.getAttribute(Ln.draggableId):null}(t,e)}),[t]),v=Pe((function(e){var r=i.draggable.findById(e);return r?r.options:null}),[i.draggable]),m=Pe((function(){c.isClaimed()&&(c.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch({type:"FLUSH",payload:null}))}),[c,n]),b=Pe(c.isClaimed,[c]),h=Oe((function(){return{canGetLock:d,tryGetLock:p,findClosestDraggableId:g,findClosestDragHandle:f,findOptionsForDraggable:v,tryReleaseLock:m,isLockClaimed:b}}),[d,p,g,f,v,m,b]),y=0;y<l.length;y++)l[y](h)}function Pi(e){return e.current||u(!1),e.current}function Ai(e){var t=e.contextId,n=e.setCallbacks,i=e.sensors,o=e.nonce,l=e.dragHandleUsageInstructions,c=e.fluidScrollerOptions,u=r.useRef(null),s=ri(e),d=Pe((function(){return function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}}(s.current)}),[s]),p=function(e){var t=Oe((function(){return function(e){return"rbd-announcement-"+e}(e)}),[e]),n=r.useRef(null);return r.useEffect((function(){var e=document.createElement("div");return n.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),a(e.style,Xn),Jn().appendChild(e),function(){setTimeout((function(){var r=Jn();r.contains(e)&&r.removeChild(e),e===n.current&&(n.current=null)}))}}),[t]),Pe((function(e){var r=n.current;r&&(r.textContent=e)}),[])}(t),f=function(e){var t=e.contextId,n=e.text,i=Zn("hidden-text",{separator:"-"}),o=Oe((function(){return"rbd-hidden-text-"+(e={contextId:t,uniqueId:i}).contextId+"-"+e.uniqueId;var e}),[i,t]);return r.useEffect((function(){var e=document.createElement("div");return e.id=o,e.textContent=n,e.style.display="none",Jn().appendChild(e),function(){var r=Jn();r.contains(e)&&r.removeChild(e)}}),[o,n]),o}({contextId:t,text:l}),g=Hn(t,o),v=Pe((function(e){Pi(u).dispatch(e)}),[]),m=Oe((function(){return D({publishWhileDragging:bt,updateDroppableScroll:yt,updateDroppableIsEnabled:xt,updateDroppableIsCombineEnabled:It,collectionStarting:ht},v)}),[v]),b=function(){var e=Oe($n,[]);return r.useEffect((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),h=Oe((function(){return sn(b,m)}),[b,m]),y=r.useRef(c),x=Oe((function(){return function(e){var r=e.scrollDroppable,t=e.scrollWindow,n=e.move,i=e.fluidScrollerOptions,o=Bn({scrollWindow:t,scrollDroppable:r,fluidScrollerOptions:i}),a=Tn({move:n,scrollWindow:t,scrollDroppable:r});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&a(e):o.scroll(e))},start:o.start,stop:o.stop}}(a({scrollWindow:pn,scrollDroppable:h.scrollDroppable},D({move:Dt},v),{fluidScrollerOptions:y.current}))}),[h.scrollDroppable,v]),I=zn(t),w=Oe((function(){return rn({announce:p,autoScroller:x,dimensionMarshal:h,focusMarshal:I,getResponders:d,styleMarshal:g})}),[p,x,h,I,d,g]);u.current=w;var E=Pe((function(){var e=Pi(u);"IDLE"!==e.getState().phase&&e.dispatch({type:"FLUSH",payload:null})}),[]),S=Pe((function(){var e=Pi(u).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);n(Oe((function(){return{isDragging:S,tryAbort:E}}),[S,E]));var C=Pe((function(e){return dn(Pi(u).getState(),e)}),[]),O=Pe((function(){return Qr(Pi(u).getState())}),[]),P=Oe((function(){return{marshal:h,focus:I,contextId:t,canLift:C,isMovementAllowed:O,dragHandleUsageInstructionsId:f,registry:b,fluidScrollerOptions:c}}),[t,h,f,I,C,O,b,c]);return Oi({contextId:t,store:w,registry:b,customSensors:i,enableDefaultSensors:!1!==e.enableDefaultSensors}),r.useEffect((function(){return E}),[E]),r.createElement(ei.Provider,{value:P},r.createElement(k,{context:Yn,store:w},e.children))}var Ri=0;var Ni=function(e){return function(r){return e===r}},Bi=Ni("scroll"),Ti=Ni("auto"),Mi=function(e,r){return r(e.overflowX)||r(e.overflowY)},Li=function e(r){return null==r||r===document.body||r===document.documentElement?null:function(e){var r=window.getComputedStyle(e),t={overflowX:r.overflowX,overflowY:r.overflowY};return!(e instanceof HTMLElement&&e.dataset.dndIgnoreScrollable)&&(Mi(t,Bi)||Mi(t,Ti))}(r)?r:e(r.parentElement)},Gi=function(e){return{x:e.scrollLeft,y:e.scrollTop}},_i=function(e){return{closestScrollable:Li(e),isFixedOnPage:function e(r){return!!r&&("fixed"===window.getComputedStyle(r).position||e(r.parentElement))}(e)}},Fi=function(e){var r=e.ref,t=e.descriptor,n=e.env,i=e.windowScroll,o=e.direction,a=e.isDropDisabled,l=e.isCombineEnabled,c=e.shouldClipSubject,u=n.closestScrollable,s=function(e,r){var t=$e(e);if(!r)return t;if(e!==r)return t;var n=t.paddingBox.top-r.scrollTop,i=t.paddingBox.left-r.scrollLeft,o=n+r.scrollHeight,a=i+r.scrollWidth,l=je({top:n,right:a,bottom:o,left:i},t.border);return Ue({borderBox:l,margin:t.margin,border:t.border,padding:t.padding})}(r,u),d=Ve(s,i),p=function(){if(!u)return null;var e=$e(u),r={scrollHeight:u.scrollHeight,scrollWidth:u.scrollWidth};return{client:e,page:Ve(e,i),scroll:Gi(u),scrollSize:r,shouldClipSubject:c}}();return function(e){var r=e.descriptor,t=e.isEnabled,n=e.isCombineEnabled,i=e.isFixedOnPage,o=e.direction,a=e.client,l=e.page,c=e.closest,u=function(){if(!c)return null;var e=c.scrollSize,r=c.client,t=tn({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:r.paddingBox.height,width:r.paddingBox.width});return{pageMarginBox:c.page.marginBox,frameClient:r,scrollSize:e,shouldClipSubject:c.shouldClipSubject,scroll:{initial:c.scroll,current:c.scroll,max:t,diff:{value:Ae,displacement:Ae}}}}(),s="vertical"===o?xr:Ir;return{descriptor:r,isCombineEnabled:n,isFixedOnPage:i,axis:s,isEnabled:t,client:a,page:l,frame:u,subject:Ke({page:l,withPlaceholder:null,axis:s,frame:u})}}({descriptor:t,isEnabled:!a,isCombineEnabled:l,isFixedOnPage:n.isFixedOnPage,direction:o,client:s,page:d,closest:p})},ji={passive:!1},ki={passive:!0},Wi=function(e){return e.shouldPublishImmediately?ji:ki};function Ui(e){var t=r.useContext(e);return t||u(!1),t}var Hi=function(e){return e&&e.env.closestScrollable||null};function qi(){}var Vi={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},zi=function(e){var r=e.isAnimatingOpenOnMount,t=e.placeholder,n=e.animate,i=function(e){var r=e.isAnimatingOpenOnMount,t=e.placeholder,n=e.animate;return r||"close"===n?Vi:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin}}({isAnimatingOpenOnMount:r,placeholder:t,animate:n});return{display:t.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?Mt.placeholder:null}};var $i=r.memo((function(e){var t=r.useRef(null),n=Pe((function(){t.current&&(clearTimeout(t.current),t.current=null)}),[]),i=e.animate,o=e.onTransitionEnd,a=e.onClose,l=e.contextId,c=r.useState("open"===e.animate),u=c[0],s=c[1];r.useEffect((function(){return u?"open"!==i?(n(),s(!1),qi):t.current?qi:(t.current=setTimeout((function(){t.current=null,s(!1)})),n):qi}),[i,u,n]);var d=Pe((function(e){"height"===e.propertyName&&(o(),"close"===i&&a())}),[i,a,o]),p=zi({isAnimatingOpenOnMount:u,animate:e.animate,placeholder:e.placeholder});return r.createElement(e.placeholder.tagName,{style:p,"data-rbd-placeholder-context-id":l,onTransitionEnd:d,ref:e.innerRef})})),Yi=r.createContext(null),Ji=function(e){function r(){for(var r,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(r=e.call.apply(e,[this].concat(n))||this).state={isVisible:Boolean(r.props.on),data:r.props.on,animate:r.props.shouldAnimate&&r.props.on?"open":"none"},r.onClose=function(){"close"===r.state.animate&&r.setState({isVisible:!1})},r}return i(r,e),r.getDerivedStateFromProps=function(e,r){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:r.isVisible?{isVisible:!0,data:r.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},r.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},r}(r.PureComponent),Xi=5e3,Ki=4500,Qi=function(e,r){return r?Mt.drop(r.duration):e?Mt.snap:Mt.fluid},Zi=function(e,r){return e?r?Nt.drop:Nt.combining:null};function eo(e){return"DRAGGING"===e.type?function(e){var r=e.dimension.client,t=e.offset,n=e.combineWith,i=e.dropping,o=Boolean(n),a=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode}(e),l=Boolean(i),c=l?_t(t,o):Gt(t);return{position:"fixed",top:r.marginBox.top,left:r.marginBox.left,boxSizing:"border-box",width:r.borderBox.width,height:r.borderBox.height,transition:Qi(a,i),transform:c,opacity:Zi(o,l),zIndex:l?Ki:Xi,pointerEvents:"none"}}(e):{transform:Gt((r=e).offset),transition:r.shouldAnimateDisplacement?null:"none"};var r}function ro(e){var t=Zn("draggable"),n=e.descriptor,i=e.registry,o=e.getDraggableRef,a=e.canDragInteractiveElements,l=e.shouldRespectForcePress,c=e.isEnabled,s=Oe((function(){return{canDragInteractiveElements:a,shouldRespectForcePress:l,isEnabled:c}}),[a,c,l]),d=Pe((function(e){var r=o();return r||u(!1),function(e,r,t){void 0===t&&(t=Ae);var n=window.getComputedStyle(r),i=r.getBoundingClientRect(),o=ze(i,n),a=Ve(o,t);return{descriptor:e,placeholder:{client:o,tagName:r.tagName.toLowerCase(),display:n.display},displaceBy:{x:o.marginBox.width,y:o.marginBox.height},client:o,page:a}}(n,r,e)}),[n,o]),p=Oe((function(){return{uniqueId:t,descriptor:n,options:s,getDimension:d}}),[n,d,s,t]),f=r.useRef(p),g=r.useRef(!0);kn((function(){return i.draggable.register(f.current),function(){return i.draggable.unregister(f.current)}}),[i.draggable]),kn((function(){if(g.current)g.current=!1;else{var e=f.current;f.current=p,i.draggable.update(p,e)}}),[p,i.draggable])}function to(e){e.preventDefault()}var no=function(e,r){return e===r},io=function(e){var r=e.combine,t=e.destination;return t?t.droppableId:r?r.droppableId:null};function oo(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var ao={mapped:{type:"SECONDARY",offset:Ae,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:oo(null)}};var lo=Se((function(){var e,r,t,n=(e=er((function(e,r){return{x:e,y:r}})),r=er((function(e,r,t,n,i){return{isDragging:!0,isClone:r,isDropAnimating:Boolean(i),dropAnimation:i,mode:e,draggingOver:t,combineWith:n,combineTargetFor:null}})),t=er((function(e,t,n,i,o,a,l){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:o,combineWith:a,mode:t,offset:e,dimension:n,forceShouldAnimate:l,snapshot:r(t,i,o,a,null)}}})),function(n,i){if(n.isDragging){if(n.critical.draggable.id!==i.draggableId)return null;var o=n.current.client.offset,a=n.dimensions.draggables[i.draggableId],l=Xr(n.impact),c=(s=n.impact).at&&"COMBINE"===s.at.type?s.at.combine.draggableId:null,u=n.forceShouldAnimate;return t(e(o.x,o.y),n.movementMode,a,i.isClone,l,c,u)}var s;if("DROP_ANIMATING"===n.phase){var d=n.completed;if(d.result.draggableId!==i.draggableId)return null;var p=i.isClone,f=n.dimensions.draggables[i.draggableId],g=d.result,v=g.mode,m=io(g),b=function(e){return e.combine?e.combine.draggableId:null}(g),h={duration:n.dropDuration,curve:Rt,moveTo:n.newHomeClientOffset,opacity:b?Nt.drop:null,scale:b?Bt.drop:null};return{mapped:{type:"DRAGGING",offset:n.newHomeClientOffset,dimension:f,dropping:h,draggingOver:m,combineWith:b,mode:v,forceShouldAnimate:null,snapshot:r(v,p,m,b,h)}}}return null}),i=function(){var e=er((function(e,r){return{x:e,y:r}})),r=er(oo),t=er((function(e,t,n){return void 0===t&&(t=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:t,shouldAnimateDisplacement:n,snapshot:r(t)}}})),n=function(e){return e?t(Ae,e,!0):null},i=function(r,i,o,a){var l=o.displaced.visible[r],c=Boolean(a.inVirtualList&&a.effected[r]),u=dr(o),s=u&&u.draggableId===r?i:null;if(!l){if(!c)return n(s);if(o.displaced.invisible[r])return null;var d=Te(a.displacedBy.point),p=e(d.x,d.y);return t(p,s,!0)}if(c)return n(s);var f=o.displacedBy.point,g=e(f.x,f.y);return t(g,s,l.shouldAnimate)};return function(e,r){if(e.isDragging)return e.critical.draggable.id===r.draggableId?null:i(r.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var t=e.completed;return t.result.draggableId===r.draggableId?null:i(r.draggableId,t.result.draggableId,t.impact,t.afterCritical)}return null}}();return function(e,r){return n(e,r)||i(e,r)||ao}}),{dropAnimationFinished:At},null,{context:Yn,pure:!0,areStatePropsEqual:no})((function(e){var t=r.useRef(null),n=Pe((function(e){t.current=e}),[]),i=Pe((function(){return t.current}),[]),o=Ui(ei),a=o.contextId,l=o.dragHandleUsageInstructionsId,c=o.registry,u=Ui(Yi),s=u.type,d=u.droppableId,p=Oe((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,y=e.mapped,x=e.dropAnimationFinished;h||ro(Oe((function(){return{descriptor:p,registry:c,getDraggableRef:i,canDragInteractiveElements:b,shouldRespectForcePress:m,isEnabled:v}}),[p,c,i,b,m,v]));var I=Oe((function(){return v?{tabIndex:0,role:"button","aria-describedby":l,"data-rbd-drag-handle-draggable-id":g,"data-rbd-drag-handle-context-id":a,draggable:!1,onDragStart:to}:null}),[a,l,g,v]),D=Pe((function(e){"DRAGGING"===y.type&&y.dropping&&"transform"===e.propertyName&&x()}),[x,y]),w=Oe((function(){var e=eo(y),r="DRAGGING"===y.type&&y.dropping?D:null;return{innerRef:n,draggableProps:{"data-rbd-draggable-context-id":a,"data-rbd-draggable-id":g,style:e,onTransitionEnd:r},dragHandleProps:I}}),[a,I,g,y,D,n]),E=Oe((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(w,y.snapshot,E)}));function co(e){return Ui(Yi).isUsingCloneFor!==e.draggableId||e.isClone?r.createElement(lo,e):null}var uo={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||u(!1),document.body}},so=function(e){var r,t=a({},e);for(r in uo){var n;if(void 0===e[r])t=a({},t,((n={})[r]=uo[r],n))}return t},po=function(e,r){return e===r.droppable.type},fo=function(e,r){return r.draggables[e.draggable.id]},go=Se((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},r=a({},e,{shouldAnimatePlaceholder:!1}),t=er((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),n=er((function(n,i,o,a,l,c){var u=l.descriptor.id;if(l.descriptor.droppableId===n){var s=c?{render:c,dragging:t(l.descriptor)}:null,d={isDraggingOver:o,draggingOverWith:o?u:null,draggingFromThisWith:u,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!1,snapshot:d,useClone:s}}if(!i)return r;if(!a)return e;var p={isDraggingOver:o,draggingOverWith:u,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!0,snapshot:p,useClone:null}}));return function(t,i){var o=so(i),a=o.droppableId,l=o.type,c=!o.isDropDisabled,u=o.renderClone;if(t.isDragging){var s=t.critical;if(!po(l,s))return r;var d=fo(s,t.dimensions),p=Xr(t.impact)===a;return n(a,c,p,p,d,u)}if("DROP_ANIMATING"===t.phase){var f=t.completed;if(!po(l,f.critical))return r;var g=fo(f.critical,t.dimensions);return n(a,c,io(f.result)===a,Xr(f.impact)===a,g,u)}if("IDLE"===t.phase&&t.completed&&!t.shouldFlush){var v=t.completed;if(!po(l,v.critical))return r;var m=Xr(v.impact)===a,b=Boolean(v.impact.at&&"COMBINE"===v.impact.at.type),h=v.critical.droppable.id===a;return m?b?e:r:h?e:r}return r}}),{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},(function(e,r,t){return a({},so(t),{},e,{},r)}),{context:Yn,pure:!0,areStatePropsEqual:no})((function(e){var n=r.useContext(ei);n||u(!1);var i=n.contextId,o=n.isMovementAllowed,a=r.useRef(null),l=r.useRef(null),c=e.children,s=e.droppableId,d=e.type,p=e.mode,f=e.direction,g=e.ignoreContainerClipping,v=e.isDropDisabled,m=e.isCombineEnabled,b=e.snapshot,h=e.useClone,y=e.updateViewportMaxScroll,x=e.getContainerForClone,I=Pe((function(){return a.current}),[]),D=Pe((function(e){a.current=e}),[]);Pe((function(){return l.current}),[]);var w=Pe((function(e){l.current=e}),[]),E=Pe((function(){o()&&y({maxScroll:on()})}),[o,y]);!function(e){var t=r.useRef(null),n=Ui(ei),i=Zn("droppable"),o=n.registry,a=n.marshal,l=ri(e),c=Oe((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),s=r.useRef(c),d=Oe((function(){return er((function(e,r){t.current||u(!1);var n={x:e,y:r};a.updateDroppableScroll(c.id,n)}))}),[c.id,a]),p=Pe((function(){var e=t.current;return e&&e.env.closestScrollable?Gi(e.env.closestScrollable):Ae}),[]),f=Pe((function(){var e=p();d(e.x,e.y)}),[p,d]),g=Oe((function(){return Ut(f)}),[f]),v=Pe((function(){var e=t.current,r=Hi(e);e&&r||u(!1),e.scrollOptions.shouldPublishImmediately?f():g()}),[g,f]),m=Pe((function(e,r){t.current&&u(!1);var i=l.current,o=i.getDroppableRef();o||u(!1);var a=_i(o),s={ref:o,descriptor:c,env:a,scrollOptions:r};t.current=s;var d=Fi({ref:o,descriptor:c,env:a,windowScroll:e,direction:i.direction,isDropDisabled:i.isDropDisabled,isCombineEnabled:i.isCombineEnabled,shouldClipSubject:!i.ignoreContainerClipping}),p=a.closestScrollable;return p&&(p.setAttribute(Fn.contextId,n.contextId),p.addEventListener("scroll",v,Wi(s.scrollOptions))),d}),[n.contextId,c,v,l]),b=Pe((function(){var e=t.current,r=Hi(e);return e&&r||u(!1),Gi(r)}),[]),h=Pe((function(){var e=t.current;e||u(!1);var r=Hi(e);t.current=null,r&&(g.cancel(),r.removeAttribute(Fn.contextId),r.removeEventListener("scroll",v,Wi(e.scrollOptions)))}),[v,g]),y=Pe((function(e){var r=t.current;r||u(!1);var n=Hi(r);n||u(!1),n.scrollTop+=e.y,n.scrollLeft+=e.x}),[]),x=Oe((function(){return{getDimensionAndWatchScroll:m,getScrollWhileDragging:b,dragStopped:h,scroll:y}}),[h,m,b,y]),I=Oe((function(){return{uniqueId:i,descriptor:c,callbacks:x}}),[x,c,i]);kn((function(){return s.current=I.descriptor,o.droppable.register(I),function(){t.current&&h(),o.droppable.unregister(I)}}),[x,c,h,I,a,o.droppable]),kn((function(){t.current&&a.updateDroppableIsEnabled(s.current.id,!e.isDropDisabled)}),[e.isDropDisabled,a]),kn((function(){t.current&&a.updateDroppableIsCombineEnabled(s.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,a])}({droppableId:s,type:d,mode:p,direction:f,isDropDisabled:v,isCombineEnabled:m,ignoreContainerClipping:g,getDroppableRef:I});var S=r.createElement(Ji,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var t=e.onClose,n=e.data,o=e.animate;return r.createElement($i,{placeholder:n,onClose:t,innerRef:w,animate:o,contextId:i,onTransitionEnd:E})})),C=Oe((function(){return{innerRef:D,placeholder:S,droppableProps:{"data-rbd-droppable-id":s,"data-rbd-droppable-context-id":i}}}),[i,s,S,D]),O=h?h.dragging.draggableId:null,P=Oe((function(){return{droppableId:s,type:d,isUsingCloneFor:O}}),[s,O,d]);return r.createElement(Yi.Provider,{value:P},c(C,b),function(){if(!h)return null;var e=h.dragging,n=h.render,i=r.createElement(co,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(r,t){return n(r,t,e)}));return t.createPortal(i,x())}())}));e.DragDropContext=function(e){var t=Oe((function(){return""+Ri++}),[]),n=e.dragHandleUsageInstructions||v.dragHandleUsageInstructions;return r.createElement(s,null,(function(i){return r.createElement(Ai,{nonce:e.nonce,contextId:t,setCallbacks:i,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,fluidScrollerOptions:e.fluidScrollerOptions},e.children)}))},e.Draggable=function(e){var t="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),i=Boolean(e.shouldRespectForcePress);return r.createElement(co,a({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:i}))},e.Droppable=go,e.resetServerContext=function(){Ri=0,Kn=0},e.useKeyboardSensor=fi,e.useMouseSensor=ui,e.useTouchSensor=vi}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@planningcenter/react-beautiful-dnd",
3
- "version": "13.4.1",
3
+ "version": "13.5.0",
4
4
  "description": "Beautiful and accessible drag and drop for lists with React",
5
5
  "author": "Front End Systems Engineering <frontend@planningcenter.com>",
6
6
  "keywords": [
@@ -89,7 +89,7 @@
89
89
  "babel-plugin-dev-expression": "0.2.2",
90
90
  "babel-plugin-emotion": "10.0.33",
91
91
  "cross-env": "7.0.3",
92
- "cypress": "4.4.0",
92
+ "cypress": "^4.4.0",
93
93
  "emotion-theming": "10.0.27",
94
94
  "enzyme": "3.11.0",
95
95
  "enzyme-adapter-react-16": "1.15.2",
@@ -124,7 +124,7 @@
124
124
  "react-window": "1.8.6",
125
125
  "require-from-string": "2.0.2",
126
126
  "rimraf": "3.0.2",
127
- "rollup": "3.29.5",
127
+ "rollup": "3.30.0",
128
128
  "rollup-plugin-babel": "4.4.0",
129
129
  "rollup-plugin-commonjs": "10.1.0",
130
130
  "rollup-plugin-json": "^4.0.0",
@@ -142,7 +142,7 @@
142
142
  "stylelint-config-styled-components": "0.1.1",
143
143
  "stylelint-processor-styled-components": "1.10.0",
144
144
  "wait-port": "0.2.9",
145
- "webpack": "5.94.0"
145
+ "webpack": "5.104.1"
146
146
  },
147
147
  "peerDependencies": {
148
148
  "react": "^16.8.5 || ^17.0.0 || ^18.0.0",