!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=10)}([function(e,t,n){"use strict";e.exports=n(12)},function(e,t){function n(e,t){var n=e[1]||"",o=e[3];if(!o)return n;if(t&&"function"==typeof btoa){var i=r(o);return[n].concat(o.sources.map(function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"})).concat([i]).join("\n")}return[n].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o=0&&b.splice(t,1)}function l(e){var t=document.createElement("style");return e.attrs.type="text/css",c(t,e.attrs),i(e,t),t}function u(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",c(t,e.attrs),i(e,t),t}function c(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function s(e,t){var n,r,o,i;if(t.transform&&e.css){if(!(i=t.transform(e.css)))return function(){};e.css=i}if(t.singleton){var c=g++;n=v||(v=l(t)),r=f.bind(null,n,c,!1),o=f.bind(null,n,c,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=u(t),r=p.bind(null,n,t),o=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=l(t),r=d.bind(null,n),o=function(){a(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}function f(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=k(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function d(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function p(e,t,n){var r=n.css,o=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||i)&&(r=w(r)),o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),l=e.href;e.href=URL.createObjectURL(a),l&&URL.revokeObjectURL(l)}var h={},y=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}}(function(){return window&&document&&document.all&&!window.atob}),m=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e.call(this,n)),t[n]}}(function(e){return document.querySelector(e)}),v=null,g=0,b=[],w=n(24);e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");t=t||{},t.attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||(t.singleton=y()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=o(e,t);return r(n,t),function(e){for(var i=[],a=0;ae.layout.length){var t=o({},this.state.mapLayout);e.layout.forEach(function(e){void 0!==t[e.key+""]&&delete t[e.key+""]});var n=o({},this.state.mapLayout),r=e.layout.map(function(e){var t=(e.w,e.h,e.GridX,e.GridY,e.key,i(e,["w","h","GridX","GridY","key"]));return o({},n[e.key],{others:t})}),a=u.compactLayout(r,void 0,this.state.mapLayout),l=a.compacted,s=a.mapLayout;this.setState({containerHeight:c.getMaxContainerHeight(l,this.props.rowHeight,this.props.margin[1],this.state.containerHeight),layout:l,mapLayout:s})}else if(this.props.layout.length=t.GridX+t.w||e.GridY+e.h<=t.GridY||e.GridY>=t.GridY+t.h))},t.getFirstCollison=function(e,n){for(var r=0,o=e.length;re.GridY&&i.GridYn-1&&(e=n-r),e<0&&(e=0),t<0&&(t=0),{GridX:e,GridY:t}},t.correctItem=function(e,n){var r=t.checkInContainer(e.GridX,e.GridY,n,e.w),o=r.GridX,i=r.GridY;e.GridX=o,e.GridY=i},t.correctLayout=function(e,n){for(var o=e.slice(),i=0;ie[0]})))}Object.defineProperty(t,"__esModule",{value:!0}),t.quickSort=r,t.sortLayout=function(e){return[].concat(e).sort(function(e,t){return e.GridY>t.GridY||e.GridY===t.GridY&&e.GridX>t.GridX?e.static?0:1:e.GridY===t.GridY&&e.GridX===t.GridX?0:-1})},t.getMaxContainerHeight=function(){var e=0;return function(t,n,o,i,a){if(void 0===n&&(n=30),void 0===o&&(o=10),!1!==a){var l=t.length,u=t[l-1];if(u.GridY+u.h===e)return i;e=u.GridY+u.h}var c=t.map(function(e){return e.GridY+e.h});return r(c)[c.length-1]*(n+o)+o}}()},function(e,t,n){e.exports=n(11)},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(13),a=n(6),l=n(28),u=n(31),c=n(34),s=n(37),f=n(38),d=n(43);n(47);var p={normalLayout:o.createElement(a.LayoutDemo,null),StaticHeader:o.createElement(l.SortedTableWithStatic,null),LayoutRestore:o.createElement(u.LayoutRestore,null),HandleLayout:o.createElement(c.HandleLayout,null),AddRemove:o.createElement(s.AddRemove,null),Mobile:o.createElement(d.Mobile,null),HistoryLayout:o.createElement(f.HistoryDemo,null)},h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={demo:o.createElement(a.LayoutDemo,null)},t.handleLayoutChange=function(e){t.setState({demo:p[e]})},t}return r(t,e),t.prototype.render=function(){var e=this;return o.createElement("div",null,o.createElement("iframe",{src:"https://ghbtns.com/github-btn.html?user=215566435&repo=Dragact&type=star&count=true&size=large",frameBorder:"0",scrolling:"0",width:"160px",height:"30px"}),o.createElement("iframe",{src:"https://ghbtns.com/github-btn.html?user=215566435&repo=Dragact&type=fork&count=true&size=large",frameBorder:"0",scrolling:"0",width:"158px",height:"30px"}),o.createElement("div",null,"切换 Demos"),o.createElement("div",{className:"demo-button-layout"},o.createElement("button",{onClick:function(){return e.handleLayoutChange("normalLayout")}},"普通布局"),o.createElement("button",{onClick:function(){return e.handleLayoutChange("StaticHeader")}},"静态组件"),o.createElement("button",{onClick:function(){return e.handleLayoutChange("LayoutRestore")}},"存储布局"),o.createElement("button",{onClick:function(){return e.handleLayoutChange("HistoryLayout")}},"记忆操作布局"),o.createElement("button",{onClick:function(){return e.handleLayoutChange("HandleLayout")}},"拖拽把手"),o.createElement("button",{onClick:function(){return e.handleLayoutChange("AddRemove")}},"增加和删除"),o.createElement("button",{onClick:function(){return e.handleLayoutChange("Mobile")}},"移动端")),this.state.demo)},t}(o.Component);i.render(o.createElement(h,null),document.getElementById("root")),document.addEventListener("touchmove",function(e){e.preventDefault()},!1)},function(e,t,n){"use strict";function r(e,t,n,r,o,i,a,l){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,l],c=0;e=Error(t.replace(/%s/g,function(){return u[c++]})),e.name="Invariant Violation"}throw e.framesToPop=1,e}}function o(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=0;oH.length&&H.push(e)}function h(e,t,n,r){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case x:case _:a=!0}}if(a)return n(r,e,""===t?"."+m(e,0):t),1;if(a=0,t=""===t?".":t+":",Array.isArray(e))for(var l=0;lthis.eventPool.length&&this.eventPool.push(e)}function R(e){e.eventPool=[],e.getPooled=L,e.release=N}function U(e,t){switch(e){case"keyup":return-1!==yo.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function I(e){return e=e.detail,"object"==typeof e&&"data"in e?e.data:null}function j(e,t){switch(e){case"compositionend":return I(t);case"keypress":return 32!==t.which?null:(xo=!0,wo);case"textInput":return e=t.data,e===wo&&xo?null:e;default:return null}}function Y(e,t){if(_o)return"compositionend"===e||!mo&&U(e,t)?(e=P(),fo=so=co=null,_o=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1t}return!1}function ie(e,t,n,r,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t}function ae(e){return e[1].toUpperCase()}function le(e,t,n,r){var o=$o.hasOwnProperty(t)?$o[t]:null;(null!==o?0===o.type:!r&&2Oi.length&&Oi.push(e)}}}function Ge(e){return Object.prototype.hasOwnProperty.call(e,Ni)||(e[Ni]=Li++,Mi[e[Ni]]={}),Mi[e[Ni]]}function Ae(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function He(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Fe(e,t){var n=He(e);e=0;for(var r;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=He(n)}}function We(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?We(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Xe(){for(var e=window,t=Ae();t instanceof e.HTMLIFrameElement;){try{e=t.contentDocument.defaultView}catch(e){break}t=Ae(e.document)}return t}function Be(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function Ve(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return zi||null==Ii||Ii!==Ae(n)?null:(n=Ii,"selectionStart"in n&&Be(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Yi&&Pe(Yi,n)?null:(Yi=n,e=M.getPooled(Ui.select,ji,e,t),e.type="select",e.target=Ii,T(e),e))}function qe(e){var t="";return Lr.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}function Ke(e,t){return e=Nr({children:void 0},t),(t=qe(t.children))&&(e.children=t),e}function $e(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o=t.length||o("93"),t=t[0]),n=t),null==n&&(n="")),e._wrapperState={initialValue:ue(n)}}function Ze(e,t){var n=ue(t.value),r=ue(t.defaultValue);null!=n&&(n=""+n,n!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function et(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}function tt(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function nt(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?tt(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}function rt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function ot(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Wi.hasOwnProperty(e)&&Wi[e]?(""+t).trim():t+"px"}function it(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ot(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}function at(e,t){t&&(Bi[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&o("137",e,""),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&o("60"),"object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||o("61")),null!=t.style&&"object"!=typeof t.style&&o("62",""))}function lt(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function ut(e,t){e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument;var n=Ge(e);t=Xr[t];for(var r=0;rJi||(e.current=Qi[Ji],Qi[Ji]=null,Ji--)}function yt(e,t){Ji++,Qi[Ji]=e.current,e.current=t}function mt(e,t){var n=e.type.contextTypes;if(!n)return Zi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function vt(e){return null!==(e=e.childContextTypes)&&void 0!==e}function gt(e){ht(ta,e),ht(ea,e)}function bt(e){ht(ta,e),ht(ea,e)}function wt(e,t,n){ea.current!==Zi&&o("168"),yt(ea,t,e),yt(ta,n,e)}function kt(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;r=r.getChildContext();for(var i in r)i in e||o("108",ee(t)||"Unknown",i);return Nr({},n,r)}function xt(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Zi,na=ea.current,yt(ea,t,e),yt(ta,ta.current,e),!0}function _t(e,t,n){var r=e.stateNode;r||o("169"),n?(t=kt(e,t,na),r.__reactInternalMemoizedMergedChildContext=t,ht(ta,e),ht(ea,e),yt(ea,t,e)):ht(ta,e),yt(ta,n,e)}function Et(e){return function(t){try{return e(t)}catch(e){}}}function Tt(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);ra=Et(function(e){return t.onCommitFiberRoot(n,e)}),oa=Et(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}return!0}function Ct(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.firstContextDependency=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function St(e,t,n,r){return new Ct(e,t,n,r)}function Pt(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ot(e){if("function"==typeof e)return Pt(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===Ao)return 11;if(e===Fo)return 14}return 2}function Dt(e,t){var n=e.alternate;return null===n?(n=St(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,n.firstContextDependency=e.firstContextDependency,n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Mt(e,t,n,r,i,a){var l=2;if(r=e,"function"==typeof e)Pt(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case Uo:return Lt(n.children,i,a,t);case Go:return Nt(n,3|i,a,t);case Io:return Nt(n,2|i,a,t);case jo:return e=St(12,n,t,4|i),e.elementType=jo,e.type=jo,e.expirationTime=a,e;case Ho:return e=St(13,n,t,i),e.elementType=Ho,e.type=Ho,e.expirationTime=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Yo:l=10;break e;case zo:l=9;break e;case Ao:l=11;break e;case Fo:l=14;break e;case Wo:l=16,r=null;break e}o("130",null==e?e:typeof e,"")}return t=St(l,n,t,i),t.elementType=e,t.type=r,t.expirationTime=a,t}function Lt(e,t,n,r){return e=St(7,e,r,t),e.expirationTime=n,e}function Nt(e,t,n,r){return e=St(8,e,r,t),t=0==(1&t)?Io:Go,e.elementType=t,e.type=t,e.expirationTime=n,e}function Rt(e,t,n){return e=St(6,e,null,t),e.expirationTime=n,e}function Ut(e,t,n){return t=St(4,null!==e.children?e.children:[],e.key,t),t.expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function It(e,t){e.didError=!1;var n=e.earliestPendingTime;0===n?e.earliestPendingTime=e.latestPendingTime=t:nt&&(e.latestPendingTime=t),zt(t,e)}function jt(e,t){e.didError=!1;var n=e.latestPingedTime;0!==n&&n>=t&&(e.latestPingedTime=0),n=e.earliestPendingTime;var r=e.latestPendingTime;n===t?e.earliestPendingTime=r===t?e.latestPendingTime=0:r:r===t&&(e.latestPendingTime=n),n=e.earliestSuspendedTime,r=e.latestSuspendedTime,0===n?e.earliestSuspendedTime=e.latestSuspendedTime=t:nt&&(e.latestSuspendedTime=t),zt(t,e)}function Yt(e,t){var n=e.earliestPendingTime;return e=e.earliestSuspendedTime,n>t&&(t=n),e>t&&(t=e),t}function zt(e,t){var n=t.earliestSuspendedTime,r=t.latestSuspendedTime,o=t.earliestPendingTime,i=t.latestPingedTime;o=0!==o?o:i,0===o&&(0===e||re&&(e=n),t.nextExpirationTimeToWorkOn=o,t.expirationTime=e}function Gt(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function At(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Ht(e){return{expirationTime:e,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function Ft(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function Wt(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,o=null;null===r&&(r=e.updateQueue=Gt(e.memoizedState))}else r=e.updateQueue,o=n.updateQueue,null===r?null===o?(r=e.updateQueue=Gt(e.memoizedState),o=n.updateQueue=Gt(n.memoizedState)):r=e.updateQueue=At(o):null===o&&(o=n.updateQueue=At(r));null===o||r===o?Ft(r,t):null===r.lastUpdate||null===o.lastUpdate?(Ft(r,t),Ft(o,t)):(Ft(r,t),o.lastUpdate=t)}function Xt(e,t){var n=e.updateQueue;n=null===n?e.updateQueue=Gt(e.memoizedState):Bt(e,n),null===n.lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function Bt(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=At(t)),t}function Vt(e,t,n,r,o,i){switch(n.tag){case 1:return e=n.payload,"function"==typeof e?e.call(i,r,o):e;case 3:e.effectTag=-2049&e.effectTag|64;case 0:if(e=n.payload,null===(o="function"==typeof e?e.call(i,r,o):e)||void 0===o)break;return Nr({},r,o);case 2:ia=!0}return r}function qt(e,t,n,r,o){ia=!1,t=Bt(e,t);for(var i=t.baseState,a=null,l=0,u=t.firstUpdate,c=i;null!==u;){var s=u.expirationTime;sy?(m=f,f=null):m=f.sibling;var v=p(o,f,l[y],u);if(null===v){null===f&&(f=m);break}e&&f&&null===v.alternate&&t(o,f),i=a(v,i,y),null===s?c=v:s.sibling=v,s=v,f=m}if(y===l.length)return n(o,f),c;if(null===f){for(;ym?(v=y,y=null):v=y.sibling;var b=p(i,y,g.value,c);if(null===b){y||(y=v);break}e&&y&&null===b.alternate&&t(i,y),l=a(b,l,m),null===f?s=b:f.sibling=b,f=b,y=v}if(g.done)return n(i,y),s;if(null===y){for(;!g.done;m++,g=u.next())null!==(g=d(i,g.value,c))&&(l=a(g,l,m),null===f?s=g:f.sibling=g,f=g);return s}for(y=r(i,y);!g.done;m++,g=u.next())null!==(g=h(y,i,m,g.value,c))&&(e&&null!==g.alternate&&y.delete(null===g.key?m:g.key),l=a(g,l,m),null===f?s=g:f.sibling=g,f=g);return e&&y.forEach(function(e){return t(i,e)}),s}return function(e,r,a,u){var c="object"==typeof a&&null!==a&&a.type===Uo&&null===a.key;c&&(a=a.props.children);var s="object"==typeof a&&null!==a;if(s)switch(a.$$typeof){case No:e:{for(s=a.key,c=r;null!==c;){if(c.key===s){if(7===c.tag?a.type===Uo:c.elementType===a.type){n(e,c.sibling),r=i(c,a.type===Uo?a.props.children:a.props,u),r.ref=yn(e,c,a),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}a.type===Uo?(r=Lt(a.props.children,e.mode,u,a.key),r.return=e,e=r):(u=Mt(a.type,a.key,a.props,null,e.mode,u),u.ref=yn(e,r,a),u.return=e,e=u)}return l(e);case Ro:e:{for(c=a.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),r=i(r,a.children||[],u),r.return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}r=Ut(a,e.mode,u),r.return=e,e=r}return l(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),r=i(r,a,u),r.return=e,e=r):(n(e,r),r=Rt(a,e.mode,u),r.return=e,e=r),l(e);if(va(a))return y(e,r,a,u);if(Z(a))return m(e,r,a,u);if(s&&mn(e,a),void 0===a&&!c)switch(e.tag){case 1:case 0:u=e.type,o("152",u.displayName||u.name||"Component")}return n(e,r)}}function gn(e,t){var n=St(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function bn(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function wn(e){if(xa){var t=ka;if(t){var n=t;if(!bn(e,t)){if(!(t=dt(n))||!bn(e,t))return e.effectTag|=2,xa=!1,void(wa=e);gn(wa,n)}wa=e,ka=pt(t)}else e.effectTag|=2,xa=!1,wa=e}}function kn(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag;)e=e.return;wa=e}function xn(e){if(e!==wa)return!1;if(!xa)return kn(e),xa=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!ft(t,e.memoizedProps))for(t=ka;t;)gn(e,t),t=dt(t);return kn(e),ka=wa?dt(e.stateNode):null,!0}function _n(){ka=wa=null,xa=!1}function En(e,t,n,r){t.child=null===e?ba(t,null,n,r):ga(t,e.child,n,r)}function Tn(e,t,n,r,o){n=n.render;var i=t.ref;return en(t,o),r=n(r,i),t.effectTag|=1,En(e,t,r,o),t.child}function Cn(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||Pt(a)||void 0!==a.defaultProps||null!==n.compare?(e=Mt(n.type,null,r,null,t.mode,i),e.ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Sn(e,t,a,r,o,i))}return a=e.child,o=n?Nn(e,t,n):(t=Rn(e,t,n),null!==t?t.sibling:null)}return Rn(e,t,n)}switch(t.expirationTime=0,t.tag){case 2:r=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps;var i=mt(t,ea.current);if(en(t,n),i=r(e,i),t.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,vt(r)){var a=!0;xt(t)}else a=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null;var l=r.getDerivedStateFromProps;"function"==typeof l&&sn(t,r,l,e),i.updater=ma,t.stateNode=i,i._reactInternalFiber=t,hn(t,r,e,n),t=Mn(null,t,r,!0,a,n)}else t.tag=0,En(null,t,i,n),t=t.child;return t;case 16:switch(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),a=t.pendingProps,e=cn(i),t.type=e,i=t.tag=Ot(e),a=un(e,a),l=void 0,i){case 0:l=On(null,t,e,a,n);break;case 1:l=Dn(null,t,e,a,n);break;case 11:l=Tn(null,t,e,a,n);break;case 14:l=Cn(null,t,e,un(e.type,a),r,n);break;default:o("283",e)}return l;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:un(r,i),On(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:un(r,i),Dn(e,t,r,i,n);case 3:return Ln(t),r=t.updateQueue,null===r&&o("282"),i=t.memoizedState,i=null!==i?i.element:null,qt(t,r,t.pendingProps,null,n),r=t.memoizedState.element,r===i?(_n(),t=Rn(e,t,n)):(i=t.stateNode,(i=(null===e||null===e.child)&&i.hydrate)&&(ka=pt(t.stateNode.containerInfo),wa=t,i=xa=!0),i?(t.effectTag|=2,t.child=ba(t,null,r,n)):(En(e,t,r,n),_n()),t=t.child),t;case 5:return an(t),null===e&&wn(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,l=i.children,ft(r,i)?l=null:null!==a&&ft(r,a)&&(t.effectTag|=16),Pn(e,t),1!==n&&1&t.mode&&i.hidden?(t.expirationTime=1,t=null):(En(e,t,l,n),t=t.child),t;case 6:return null===e&&wn(t),null;case 13:return Nn(e,t,n);case 4:return rn(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ga(t,null,r,n):En(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:un(r,i),Tn(e,t,r,i,n);case 7:return En(e,t,t.pendingProps,n),t.child;case 8:case 12:return En(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,l=t.memoizedProps,a=i.value,Jt(t,a),null!==l){var u=l.value;if(0==(a=u===a&&(0!==u||1/u==1/a)||u!==u&&a!==a?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,a):1073741823))){if(l.children===i.children&&!ta.current){t=Rn(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){if(null!==(u=l.firstContextDependency))do{if(u.context===r&&0!=(u.observedBits&a)){if(1===l.tag){var c=Ht(n);c.tag=2,Wt(l,c)}l.expirationTime<\/script>",s=i.removeChild(i.firstChild)):"string"==typeof d.is?s=s.createElement(i,{is:d.is}):(s=s.createElement(i),"select"===i&&d.multiple&&(s.multiple=!0)):s=s.createElementNS(c,i),i=s,i[Jr]=f,i[Zr]=l,Ea(i,t,!1,!1),d=i,s=a,f=l;var p=u,h=lt(s,f);switch(s){case"iframe":case"object":Ie("load",d),u=f;break;case"video":case"audio":for(u=0;ul&&(l=i),u>l&&(l=u),a=a.sibling;t.childExpirationTime=l}if(null!==Na)return Na;null!==n&&0==(1024&n.effectTag)&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1=h?d=0:(-1===d||h component higher in the tree to provide a loading indicator or placeholder to display."+te(c))}ja=!0,s=Qt(s,c),l=u;do{switch(l.tag){case 3:c=s,l.effectTag|=2048,l.expirationTime=a,a=Wn(l,c,a),Xt(l,a);break e;case 1:if(c=s,u=l.type,f=l.stateNode,0==(64&l.effectTag)&&("function"==typeof u.getDerivedStateFromError||null!==f&&"function"==typeof f.componentDidCatch&&(null===Ha||!Ha.has(f)))){l.effectTag|=2048,l.expirationTime=a,a=Xn(l,c,a),Xt(l,a);break e}}l=l.return}while(null!==l)}Na=Kn(i);continue}r=!0,vr(t)}}break}if(La=!1,ca=ua=la=Oa.currentDispatcher=null,r)Ra=null,e.finishedWork=null;else if(null!==Na)e.finishedWork=null;else{if(r=e.current.alternate,null===r&&o("281"),Ra=null,ja){if(i=e.latestPendingTime,a=e.latestSuspendedTime,l=e.latestPingedTime,0!==i&&it?0:t)):(e.pendingCommitExpirationTime=n,e.finishedWork=r)}}function Jn(e,t){for(var n=e.return;null!==n;){switch(n.tag){case 1:var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ha||!Ha.has(r)))return e=Qt(t,e),e=Xn(n,e,1073741823),Wt(n,e),void nr(n,1073741823);break;case 3:return e=Qt(t,e),e=Wn(n,e,1073741823),Wt(n,e),void nr(n,1073741823)}n=n.return}3===e.tag&&(n=Qt(t,e),n=Wn(e,n,1073741823),Wt(e,n),nr(e,1073741823))}function Zn(e,t){return 0!==Ma?e=Ma:La?e=za?1073741823:Ua:1&t.mode?(e=tl?1073741822-10*(1+((1073741822-e+15)/10|0)):1073741822-25*(1+((1073741822-e+500)/25|0)),null!==Ra&&e===Ua&&--e):e=1073741823,tl&&(0===$a||e<$a)&&($a=e),e}function er(e,t,n,r){var o=e.earliestSuspendedTime,i=e.latestSuspendedTime;if(0!==o&&r<=o&&r>=i){i=o=r,e.didError=!1;var a=e.latestPingedTime;(0===a||a>i)&&(e.latestPingedTime=i),zt(i,e)}else o=ur(),o=Zn(o,t),It(e,o);0!=(1&t.mode)&&e===Ra&&Ua===r&&(Ra=null),tr(t,o),0==(1&t.mode)&&(tr(n,o),1===n.tag&&null!==n.stateNode&&(t=Ht(o),t.tag=2,Wt(n,t))),0!==(n=e.expirationTime)&&cr(e,n)}function tr(e,t){e.expirationTimeUa&&Vn(),It(e,t),La&&!za&&Ra===e||cr(e,e.expirationTime),ll>al&&(ll=0,o("185")))}function rr(e,t,n,r,o){var i=Ma;Ma=1073741823;try{return e(t,n,r,o)}finally{Ma=i}}function or(){ol=1073741822-((Rr.unstable_now()-rl)/10|0)}function ir(e,t){if(0!==Xa){if(te.expirationTime&&(e.expirationTime=t),Va||(Za?el&&(qa=e,Ka=1073741823,yr(e,1073741823,!1)):1073741823===t?pr(1073741823,!1):ir(e,t))}function sr(){var e=0,t=null;if(null!==Wa)for(var n=Wa,r=Fa;null!==r;){var i=r.expirationTime;if(0===i){if((null===n||null===Wa)&&o("244"),r===r.nextScheduledRoot){Fa=Wa=r.nextScheduledRoot=null;break}if(r===Fa)Fa=i=r.nextScheduledRoot,Wa.nextScheduledRoot=i,r.nextScheduledRoot=null;else{if(r===Wa){Wa=n,Wa.nextScheduledRoot=Fa,r.nextScheduledRoot=null;break}n.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=n.nextScheduledRoot}else{if(i>e&&(e=i,t=r),r===Wa)break;if(1073741823===e)break;n=r,r=r.nextScheduledRoot}}qa=t,Ka=e}function fr(){return!!cl||!!Rr.unstable_shouldYield()&&(cl=!0)}function dr(){try{if(!fr()&&null!==Fa){or();var e=Fa;do{var t=e.expirationTime;0!==t&&ol<=t&&(e.nextExpirationTimeToWorkOn=ol),e=e.nextScheduledRoot}while(e!==Fa)}pr(0,!0)}finally{cl=!1}}function pr(e,t){if(sr(),t)for(or(),il=ol;null!==qa&&0!==Ka&&e<=Ka&&!(cl&&ol>Ka);)yr(qa,Ka,ol>Ka),sr(),or(),il=ol;else for(;null!==qa&&0!==Ka&&e<=Ka;)yr(qa,Ka,!1),sr();if(t&&(Xa=0,Ba=null),0!==Ka&&ir(qa,Ka),ll=0,ul=null,null!==nl)for(e=nl,nl=null,t=0;t=n&&(null===nl?nl=[r]:nl.push(r),r._defer))return e.finishedWork=t,void(e.expirationTime=0);e.finishedWork=null,e===ul?ll++:(ul=e,ll=0),za=La=!0,e.current===t&&o("177"),n=e.pendingCommitExpirationTime,0===n&&o("261"),e.pendingCommitExpirationTime=0,r=t.expirationTime;var i=t.childExpirationTime;if(r=i>r?i:r,e.didError=!1,0===r?(e.earliestPendingTime=0,e.latestPendingTime=0,e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0):(i=e.latestPendingTime,0!==i&&(i>r?e.earliestPendingTime=e.latestPendingTime=0:e.earliestPendingTime>r&&(e.earliestPendingTime=e.latestPendingTime)),i=e.earliestSuspendedTime,0===i?It(e,r):ri&&It(e,r)),zt(0,e),Oa.current=null,1b&&(w=b,b=g,g=w),w=Fe(_,g),k=Fe(_,b),w&&k&&(1!==T.rangeCount||T.anchorNode!==w.node||T.anchorOffset!==w.offset||T.focusNode!==k.node||T.focusOffset!==k.offset)&&(E=E.createRange(),E.setStart(w.node,w.offset),T.removeAllRanges(),g>b?(T.addRange(E),T.extend(k.node,k.offset)):(E.setEnd(k.node,k.offset),T.addRange(E)))))),E=[];for(T=_;T=T.parentNode;)1===T.nodeType&&E.push({element:T,left:T.scrollLeft,top:T.scrollTop});for("function"==typeof _.focus&&_.focus(),_=0;_C?t:C,0===t&&(Ha=null),e.expirationTime=t,e.finishedWork=null}function vr(e){null===qa&&o("246"),qa.expirationTime=0,Qa||(Qa=!0,Ja=e)}function gr(e,t){var n=Za;Za=!0;try{return e(t)}finally{(Za=n)||Va||pr(1073741823,!1)}}function br(e,t){if(Za&&!el){el=!0;try{return e(t)}finally{el=!1}}return e(t)}function wr(e,t,n){if(tl)return e(t,n);Za||Va||0===$a||(pr($a,!1),$a=0);var r=tl,o=Za;Za=tl=!0;try{return e(t,n)}finally{tl=r,(Za=o)||Va||pr(1073741823,!1)}}function kr(e,t,n,r,i){var a=t.current;e:if(n){n=n._reactInternalFiber;t:{2===Oe(n)&&1===n.tag||o("170");var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(vt(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);o("171"),l=void 0}if(1===n.tag){var u=n.type;if(vt(u)){n=kt(n,u,l);break e}}n=l}else n=Zi;return null===t.context?t.context=n:t.pendingContext=n,t=i,i=Ht(r),i.payload={element:e},t=void 0===t?null:t,null!==t&&(i.callback=t),qn(),Wt(a,i),nr(a,r),r}function xr(e,t,n,r){var o=t.current;return o=Zn(ur(),o),kr(e,t,n,o,r)}function _r(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Er(e,t,n){var r=3=Da&&(t=Da-1),this._expirationTime=Da=t,this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function Cr(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function Sr(e,t,n){t=St(3,null,null,t?3:0),e={current:t,containerInfo:e,pendingChildren:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,didError:!1,pendingCommitExpirationTime:0,finishedWork:null,timeoutHandle:-1,context:null,pendingContext:null,hydrate:n,nextExpirationTimeToWorkOn:0,expirationTime:0,firstBatch:null,nextScheduledRoot:null},this._internalRoot=t.stateNode=e}function Pr(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Or(e,t){if(t||(t=e?9===e.nodeType?e.documentElement:e.firstChild:null,t=!(!t||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Sr(e,!1,t)}function Dr(e,t,n,r,i){Pr(n)||o("200");var a=n._reactRootContainer;if(a){if("function"==typeof i){var l=i;i=function(){var e=_r(a._internalRoot);l.call(e)}}null!=e?a.legacy_renderSubtreeIntoContainer(e,t,i):a.render(t,i)}else{if(a=n._reactRootContainer=Or(n,r),"function"==typeof i){var u=i;i=function(){var e=_r(a._internalRoot);u.call(e)}}br(function(){null!=e?a.legacy_renderSubtreeIntoContainer(e,t,i):a.render(t,i)})}return _r(a._internalRoot)}function Mr(e,t){var n=2=vo),wo=String.fromCharCode(32),ko={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},xo=!1,_o=!1,Eo={eventTypes:ko,extractEvents:function(e,t,n,r){var o=void 0,i=void 0;if(mo)e:{switch(e){case"compositionstart":o=ko.compositionStart;break e;case"compositionend":o=ko.compositionEnd;break e;case"compositionupdate":o=ko.compositionUpdate;break e}o=void 0}else _o?U(e,n)&&(o=ko.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=ko.compositionStart);return o?(bo&&"ko"!==n.locale&&(_o||o!==ko.compositionStart?o===ko.compositionEnd&&_o&&(i=P()):(co=r,so="value"in co?co.value:co.textContent,_o=!0)),o=po.getPooled(o,t,n,r),i?o.data=i:null!==(i=I(n))&&(o.data=i),T(o),i=o):i=null,(e=go?j(e,n):Y(e,n))?(t=ho.getPooled(ko.beforeInput,t,n,r),t.data=e,T(t)):t=null,null===i?t:null===t?i:[i,t]}},To=null,Co=null,So=null,Po=!1,Oo={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},Do=Lr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Mo=/^(.*)[\\\/]/,Lo="function"==typeof Symbol&&Symbol.for,No=Lo?Symbol.for("react.element"):60103,Ro=Lo?Symbol.for("react.portal"):60106,Uo=Lo?Symbol.for("react.fragment"):60107,Io=Lo?Symbol.for("react.strict_mode"):60108,jo=Lo?Symbol.for("react.profiler"):60114,Yo=Lo?Symbol.for("react.provider"):60109,zo=Lo?Symbol.for("react.context"):60110,Go=Lo?Symbol.for("react.concurrent_mode"):60111,Ao=Lo?Symbol.for("react.forward_ref"):60112,Ho=Lo?Symbol.for("react.suspense"):60113,Fo=Lo?Symbol.for("react.memo"):60115,Wo=Lo?Symbol.for("react.lazy"):60116,Xo="function"==typeof Symbol&&Symbol.iterator,Bo=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Vo=Object.prototype.hasOwnProperty,qo={},Ko={},$o={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){$o[e]=new ie(e,0,!1,e,null)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];$o[t]=new ie(t,1,!1,e[1],null)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){$o[e]=new ie(e,2,!1,e.toLowerCase(),null)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){$o[e]=new ie(e,2,!1,e,null)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){$o[e]=new ie(e,3,!1,e.toLowerCase(),null)}),["checked","multiple","muted","selected"].forEach(function(e){$o[e]=new ie(e,3,!0,e,null)}),["capture","download"].forEach(function(e){$o[e]=new ie(e,4,!1,e,null)}),["cols","rows","size","span"].forEach(function(e){$o[e]=new ie(e,6,!1,e,null)}),["rowSpan","start"].forEach(function(e){$o[e]=new ie(e,5,!1,e.toLowerCase(),null)});var Qo=/[\-:]([a-z])/g;"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Qo,ae);$o[t]=new ie(t,1,!1,e,null)}),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Qo,ae);$o[t]=new ie(t,1,!1,e,"http://www.w3.org/1999/xlink")}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Qo,ae);$o[t]=new ie(t,1,!1,e,"http://www.w3.org/XML/1998/namespace")}),$o.tabIndex=new ie("tabIndex",1,!1,"tabindex",null);var Jo={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}},Zo=null,ei=null,ti=!1;eo&&(ti=q("input")&&(!document.documentMode||9=document.documentMode,Ui={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Ii=null,ji=null,Yi=null,zi=!1,Gi={eventTypes:Ui,extractEvents:function(e,t,n,r){var o,i=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(o=!i)){e:{i=Ge(i),o=Xr.onSelect;for(var a=0;a"+t+"",t=Hi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}),Wi={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Xi=["Webkit","ms","Moz","O"];Object.keys(Wi).forEach(function(e){Xi.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Wi[t]=Wi[e]})});var Bi=Nr({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),Vi=null,qi=null,Ki="function"==typeof setTimeout?setTimeout:void 0,$i="function"==typeof clearTimeout?clearTimeout:void 0;new Set;var Qi=[],Ji=-1,Zi={},ea={current:Zi},ta={current:!1},na=Zi,ra=null,oa=null,ia=!1,aa={current:null},la=null,ua=null,ca=null,sa={},fa={current:sa},da={current:sa},pa={current:sa},ha=Do.ReactCurrentOwner,ya=(new Lr.Component).refs,ma={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===Oe(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=ur();r=Zn(r,e);var o=Ht(r);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),qn(),Wt(e,o),nr(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=ur();r=Zn(r,e);var o=Ht(r);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),qn(),Wt(e,o),nr(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=ur();n=Zn(n,e);var r=Ht(n);r.tag=2,void 0!==t&&null!==t&&(r.callback=t),qn(),Wt(e,r),nr(e,n)}},va=Array.isArray,ga=vn(!0),ba=vn(!1),wa=null,ka=null,xa=!1,_a=Do.ReactCurrentOwner,Ea=void 0,Ta=void 0,Ca=void 0,Sa=void 0;Ea=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ta=function(){},Ca=function(e,t,n,r,o){var i=e.memoizedProps;if(i!==r){var a=t.stateNode;switch(nn(fa.current),e=null,n){case"input":i=ce(a,i),r=ce(a,r),e=[];break;case"option":i=Ke(a,i),r=Ke(a,r),e=[];break;case"select":i=Nr({},i,{value:void 0}),r=Nr({},r,{value:void 0}),e=[];break;case"textarea":i=Qe(a,i),r=Qe(a,r),e=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(a.onclick=ct)}at(n,r),a=n=void 0;var l=null;for(n in i)if(!r.hasOwnProperty(n)&&i.hasOwnProperty(n)&&null!=i[n])if("style"===n){var u=i[n];for(a in u)u.hasOwnProperty(a)&&(l||(l={}),l[a]="")}else"dangerouslySetInnerHTML"!==n&&"children"!==n&&"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&"autoFocus"!==n&&(Wr.hasOwnProperty(n)?e||(e=[]):(e=e||[]).push(n,null));for(n in r){var c=r[n];if(u=null!=i?i[n]:void 0,r.hasOwnProperty(n)&&c!==u&&(null!=c||null!=u))if("style"===n)if(u){for(a in u)!u.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(l||(l={}),l[a]="");for(a in c)c.hasOwnProperty(a)&&u[a]!==c[a]&&(l||(l={}),l[a]=c[a])}else l||(e||(e=[]),e.push(n,l)),l=c;else"dangerouslySetInnerHTML"===n?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(e=e||[]).push(n,""+c)):"children"===n?u===c||"string"!=typeof c&&"number"!=typeof c||(e=e||[]).push(n,""+c):"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&(Wr.hasOwnProperty(n)?(null!=c&&ut(o,n),e||u===c||(e=[])):(e=e||[]).push(n,c))}l&&(e=e||[]).push("style",l),o=e,(t.updateQueue=o)&&In(t)}},Sa=function(e,t,n,r){n!==r&&In(t)};var Pa={readContext:tn},Oa=Do.ReactCurrentOwner,Da=1073741822,Ma=0,La=!1,Na=null,Ra=null,Ua=0,Ia=-1,ja=!1,Ya=null,za=!1,Ga=null,Aa=null,Ha=null,Fa=null,Wa=null,Xa=0,Ba=void 0,Va=!1,qa=null,Ka=0,$a=0,Qa=!1,Ja=null,Za=!1,el=!1,tl=!1,nl=null,rl=Rr.unstable_now(),ol=1073741822-(rl/10|0),il=ol,al=50,ll=0,ul=null,cl=!1;To=function(e,t,n){switch(t){case"input":if(de(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t=t;)n=r,r=r._next;e._next=r,null!==n&&(n._next=e)}return e},H=gr,F=wr,W=function(){Va||0===$a||(pr($a,!1),$a=0)};var sl={createPortal:Mr,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;return void 0===t&&("function"==typeof e.render?o("188"):o("268",Object.keys(e))),e=Le(t),e=null===e?null:e.stateNode},hydrate:function(e,t,n){return Dr(null,e,t,!0,n)},render:function(e,t,n){return Dr(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){return(null==e||void 0===e._reactInternalFiber)&&o("38"),Dr(e,t,n,!1,r)},unmountComponentAtNode:function(e){return Pr(e)||o("40"),!!e._reactRootContainer&&(br(function(){Dr(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},unstable_createPortal:function(){return Mr.apply(void 0,arguments)},unstable_batchedUpdates:gr,unstable_interactiveUpdates:wr,flushSync:function(e,t){Va&&o("187");var n=Za;Za=!0;try{return rr(e,t)}finally{Za=n,pr(1073741823,!1)}},unstable_flushControlled:function(e){var t=Za;Za=!0;try{rr(e)}finally{(Za=t)||Va||pr(1073741823,!1)}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[v,g,b,$r.injectEventPluginsByName,Fr,T,function(e){d(e,E)},G,A,ze,y]},unstable_createRoot:function(e,t){return Pr(e)||o("299","unstable_createRoot"),new Sr(e,!0,null!=t&&!0===t.hydrate)}};!function(e){var t=e.findFiberByHostInstance;Tt(Nr({},e,{findHostInstanceByFiber:function(e){return e=Le(e),null===e?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null}}))}({findFiberByHostInstance:m,bundleType:0,version:"16.6.3",rendererPackageName:"react-dom"});var fl={default:sl},dl=fl&&sl||fl;e.exports=dl.default||dl},function(e,t,n){"use strict";e.exports=n(16)},function(e,t,n){"use strict";(function(e){function n(){if(!h){var e=c.expirationTime;y?_():y=!0,x(i,e)}}function r(){var e=c,t=c.next;if(c===t)c=null;else{var r=c.previous;c=r.next=t,t.previous=r}e.next=e.previous=null,r=e.callback,t=e.expirationTime,e=e.priorityLevel;var o=f,i=p;f=e,p=t;try{var a=r()}finally{f=o,p=i}if("function"==typeof a)if(a={callback:a,priorityLevel:e,expirationTime:t,next:null,previous:null},null===c)c=a.next=a.previous=a;else{r=null,e=c;do{if(e.expirationTime>=t){r=e;break}e=e.next}while(e!==c);null===r?r=c:r===c&&(c=a,n()),t=r.previous,t.next=r.previous=a,a.next=r,a.previous=t}}function o(){if(-1===d&&null!==c&&1===c.priorityLevel){h=!0;try{do{r()}while(null!==c&&1===c.priorityLevel)}finally{h=!1,null!==c?n():y=!1}}}function i(e){h=!0;var i=s;s=e;try{if(e)for(;null!==c;){var a=t.unstable_now();if(!(c.expirationTime<=a))break;do{r()}while(null!==c&&c.expirationTime<=a)}else if(null!==c)do{r()}while(null!==c&&!E())}finally{h=!1,s=i,null!==c?n():y=!1,o()}}function a(e){l=b(function(t){g(u),e(t)}),u=v(function(){w(l),e(t.unstable_now())},100)}Object.defineProperty(t,"__esModule",{value:!0});var l,u,c=null,s=!1,f=3,d=-1,p=-1,h=!1,y=!1,m=Date,v="function"==typeof setTimeout?setTimeout:void 0,g="function"==typeof clearTimeout?clearTimeout:void 0,b="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,w="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;if("object"==typeof performance&&"function"==typeof performance.now){var k=performance;t.unstable_now=function(){return k.now()}}else t.unstable_now=function(){return m.now()};var x,_,E,T=null;if("undefined"!=typeof window?T=window:void 0!==e&&(T=e),T&&T._schedMock){var C=T._schedMock;x=C[0],_=C[1],E=C[2],t.unstable_now=C[3]}else if("undefined"==typeof window||"function"!=typeof MessageChannel){var S=null,P=function(e){if(null!==S)try{S(e)}finally{S=null}};x=function(e){null!==S?setTimeout(x,0,e):(S=e,setTimeout(P,0,!1))},_=function(){S=null},E=function(){return!1}}else{"undefined"!=typeof console&&("function"!=typeof b&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof w&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var O=null,D=!1,M=-1,L=!1,N=!1,R=0,U=33,I=33;E=function(){return R<=t.unstable_now()};var j=new MessageChannel,Y=j.port2;j.port1.onmessage=function(){D=!1;var e=O,n=M;O=null,M=-1;var r=t.unstable_now(),o=!1;if(0>=R-r){if(!(-1!==n&&n<=r))return L||(L=!0,a(z)),O=e,void(M=n);o=!0}if(null!==e){N=!0;try{e(o)}finally{N=!1}}};var z=function(e){if(null!==O){a(z);var t=e-R+I;tt&&(t=8),I=tt?Y.postMessage(void 0):L||(L=!0,a(z))},_=function(){O=null,D=!1,M=-1}}t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=f,i=d;f=e,d=t.unstable_now();try{return n()}finally{f=r,d=i,o()}},t.unstable_scheduleCallback=function(e,r){var o=-1!==d?d:t.unstable_now();if("object"==typeof r&&null!==r&&"number"==typeof r.timeout)r=o+r.timeout;else switch(f){case 1:r=o+-1;break;case 2:r=o+250;break;case 5:r=o+1073741823;break;case 4:r=o+1e4;break;default:r=o+5e3}if(e={callback:e,priorityLevel:f,expirationTime:r,next:null,previous:null},null===c)c=e.next=e.previous=e,n();else{o=null;var i=c;do{if(i.expirationTime>r){o=i;break}i=i.next}while(i!==c);null===o?o=c:o===c&&(c=e,n()),r=o.previous,r.next=o.previous=e,e.next=o,e.previous=r}return e},t.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(t===e)c=null;else{e===c&&(c=t);var n=e.previous;n.next=t,t.previous=n}e.next=e.previous=null}},t.unstable_wrapCallback=function(e){var n=f;return function(){var r=f,i=d;f=n,d=t.unstable_now();try{return e.apply(this,arguments)}finally{f=r,d=i,o()}}},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_shouldYield=function(){return!s&&(null!==c&&c.expirationTimer-1&&(o=r-e),t<1&&(o=1),n<1&&(i=1),{w:o,h:i}},c=function(e){function t(t){var n=e.call(this,t)||this;return n.onResizeStart=function(e,t,r){var o=n.props,i=o.GridX,a=o.GridY,l=o.UniqueKey,u=o.w,c=o.h;n.props.onResizeStart&&n.props.onResizeStart({GridX:i,GridY:a,w:u,h:c,UniqueKey:l+"",event:e})},n.onResizing=function(e,t,r){var o=n.calPxToWH(t,r),i=o.w,a=o.h,l=n.props,u=l.GridX,c=l.GridY,s=l.UniqueKey;n.props.onResizing&&n.props.onResizing({GridX:u,GridY:c,w:i,h:a,UniqueKey:s+"",event:e})},n.onResizeEnd=function(e,t,r){var o=n.calPxToWH(t,r),i=o.w,a=o.h,l=n.props,u=l.GridX,c=l.GridY,s=l.UniqueKey;n.props.onResizeEnd&&n.props.onResizeEnd({GridX:u,GridY:c,w:i,h:a,UniqueKey:s+"",event:e})},n.onDrag=n.onDrag.bind(n),n.onDragStart=n.onDragStart.bind(n),n.onDragEnd=n.onDragEnd.bind(n),n.calGridXY=n.calGridXY.bind(n),n.calColWidth=n.calColWidth.bind(n),n}return r(t,e),t.prototype.calColWidth=function(){var e=this.props,t=e.containerWidth,n=e.col,r=e.containerPadding,o=e.margin;return o?(t-2*r[0]-o[0]*(n+1))/n:(t-2*r[0]-0*(n+1))/n},t.prototype.calGridXY=function(e,t){var n=this.props,r=n.margin,o=n.containerWidth,i=n.col,a=n.w,u=n.rowHeight,c=Math.round(e/o*i),s=Math.round(t/(u+(r?r[1]:0)));return l.checkInContainer(c,s,i,a)},t.prototype.calGridItemPosition=function(e,t){var n=this.props,r=n.margin,o=n.rowHeight;return r||(r=[0,0]),{x:Math.round(e*this.calColWidth()+(e+1)*r[0]),y:Math.round(t*o+r[1]*(t+1))}},t.prototype.shouldComponentUpdate=function(e,t){var n=this,r=!1;return Object.keys(e).forEach(function(t){e[t]!==n.props[t]&&(r=!0)}),r},t.prototype.calWHtoPx=function(e,t){var n=this.props.margin;return n||(n=[0,0]),{wPx:Math.round(e*this.calColWidth()+(e-1)*n[0]),hPx:Math.round(t*this.props.rowHeight+(t-1)*n[1])}},t.prototype.calPxToWH=function(e,t){var n=this.calColWidth(),r=Math.round((e-.5*n)/n),o=Math.round((t-.5*this.props.rowHeight)/this.props.rowHeight);return u(this.props.GridX,r,o,this.props.col)},t.prototype.onDragStart=function(e,t){var n=this.props,r=n.w,o=n.h,i=n.UniqueKey;if(!this.props.static){var a=this.calGridXY(e,t),l=a.GridX,u=a.GridY;this.props.onDragStart&&this.props.onDragStart({event:null,GridX:l,GridY:u,w:r,h:o,UniqueKey:i+""})}},t.prototype.onDrag=function(e,t,n){if(!this.props.static){var r=this.calGridXY(t,n),o=r.GridX,i=r.GridY,a=this.props,l=a.w,u=a.h,c=a.UniqueKey;this.props.onDrag&&this.props.onDrag({GridX:o,GridY:i,w:l,h:u,UniqueKey:c+"",event:e})}},t.prototype.onDragEnd=function(e,t,n){if(!this.props.static){var r=this.calGridXY(t,n),o=r.GridX,i=r.GridY,a=this.props,l=a.w,u=a.h,c=a.UniqueKey;this.props.onDragEnd&&this.props.onDragEnd({GridX:o,GridY:i,w:l,h:u,UniqueKey:c+"",event:e})}},t.prototype.render=function(){var e=this,t=this.props,n=t.w,r=t.h,l=t.style,u=t.bounds,c=t.GridX,s=t.GridY,f=t.handle,d=t.canDrag,p=t.canResize,h=this.calGridItemPosition(c,s),y=h.x,m=h.y,v=this.calWHtoPx(n,r),g=v.wPx,b=v.hPx;return i.createElement(a.Dragger,{style:o({},l,{width:g,height:b,position:"absolute",transition:this.props.isUserMove?"":"all .2s ease-out",zIndex:this.props.isUserMove&&"drag"===this.props.dragType?10:2}),onDragStart:this.onDragStart,onMove:this.onDrag,onDragEnd:this.onDragEnd,onResizeStart:this.onResizeStart,onResizing:this.onResizing,onResizeEnd:this.onResizeEnd,x:y,y:m,w:g,h:b,isUserMove:this.props.isUserMove,bounds:u,handle:f,canDrag:d,canResize:p},function(t,n,r){return e.props.children(t,n,r)})},t.defaultProps={col:12,containerWidth:500,containerPadding:[0,0],margin:[10,10],rowHeight:30,w:1,h:1},t}(i.Component);t.default=c},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0?(t=e.clientX-n.state.originX+i,r=e.clientY-n.state.originY+l):(t=e.touches[0].clientX-n.state.originX+i,r=e.touches[0].clientY-n.state.originY+l);var u=n.props.bounds;if(u){var c="string"!=typeof u?a.parseBounds(u):u,s=n.props.grid;Array.isArray(s)&&2===s.length&&(t=Math.round(t/s[0])*s[0],r=Math.round(r/s[1])*s[1]),"parent"===n.props.bounds&&(c={left:a.int(n.parent.style.paddingLeft)+a.int(n.self.style.marginLeft)-n.self.offsetLeft,top:a.int(n.parent.style.paddingTop)+a.int(n.self.style.marginTop)-n.self.offsetTop,right:a.innerWidth(n.parent)-a.outerWidth(n.self)-n.self.offsetLeft+a.int(n.parent.style.paddingRight)-a.int(n.self.style.marginRight),bottom:a.innerHeight(n.parent)-a.outerHeight(n.self)-n.self.offsetTop+a.int(n.parent.style.paddingBottom)-a.int(n.self.style.marginBottom)}),"parent"!==c&&(t=Math.min(t,c.right)),"parent"!==c&&(r=Math.min(r,c.bottom)),"parent"!==c&&(t=Math.max(t,c.left)),"parent"!==c&&(r=Math.max(r,c.top))}t=n.props.allowX?t:0,r=n.props.allowY?r:0;var f=n.Ref.getClientRects()[0].height,d=n.state.y-r,p=r+(d>=0?0:f/2);n.props.onMove&&n.props.onMove(e,t,p),n.setState({x:t,y:r})},n.moveDebounce=function(e){var t,r,o=n.state,i=o.lastX,a=o.lastY;e.type.indexOf("mouse")>=0?(t=e.clientX-n.state.originX+i,r=e.clientY-n.state.originY+a):(t=e.touches[0].clientX-n.state.originX+i,r=e.touches[0].clientY-n.state.originY+a),Math.abs(t)+Math.abs(r)>10&&(e.type.indexOf("mouse")>=0?(l.removeEventListener("mousemove",n.moveDebounce),l.removeEventListener("mouseup",n.onDragEndDebounce)):(l.removeEventListener("touchmove",n.moveDebounce),l.removeEventListener("touchend",n.onDragEndDebounce)),n.onDragStart(n.state.originalEvent),n.move(e))},n.onDragStartDebounce=function(e){var t,r;e.type.indexOf("mouse")>=0?(t=e.clientX,r=e.clientY):(t=e.touches[0].clientX,r=e.touches[0].clientY),e.persist(),n.setState({originalEvent:e,originX:t,originY:r,lastX:n.state.x,lastY:n.state.y,zIndex:10}),e.type.indexOf("mouse")>=0?(l.addEventListener("mousemove",n.moveDebounce),l.addEventListener("mouseup",n.onDragEndDebounce)):(l.addEventListener("touchmove",n.moveDebounce),l.addEventListener("touchend",n.onDragEndDebounce))},n.onDragEndDebounce=function(e){l.body.style.userSelect="",n.parent=null,n.self=null,e.type.indexOf("mouse")>=0?(l.removeEventListener("mousemove",n.moveDebounce),l.removeEventListener("mouseup",n.onDragEndDebounce)):(l.removeEventListener("touchmove",n.moveDebounce),l.removeEventListener("touchend",n.onDragEndDebounce)),n.setState({originalEvent:null})},n.onDragStart=function(e){l.body.style.userSelect="none",e.type.indexOf("mouse")>=0?(l.addEventListener("mousemove",n.move),l.addEventListener("mouseup",n.onDragEnd)):(l.addEventListener("touchmove",n.move),l.addEventListener("touchend",n.onDragEnd)),"parent"!==n.props.bounds||void 0!==n.parent&&null!==n.parent||(n.parent=e.currentTarget.offsetParent,n.self=e.currentTarget),n.props.onDragStart&&n.props.onDragStart(n.state.x,n.state.y);var t,r;e.type.indexOf("mouse")>=0?(t=e.clientX,r=e.clientY):(t=e.touches[0].clientX,r=e.touches[0].clientY),n.setState({originX:t,originY:r,lastX:n.state.x,lastY:n.state.y,zIndex:10})},n.onDragEnd=function(e){l.body.style.userSelect="",n.parent=null,n.self=null,e.type.indexOf("mouse")>=0?(l.removeEventListener("mousemove",n.move),l.removeEventListener("mouseup",n.onDragEnd)):(l.removeEventListener("touchmove",n.move),l.removeEventListener("touchend",n.onDragEnd)),n._ismounted&&n.setState({zIndex:1}),n.props.onDragEnd&&n.props.onDragEnd(e,n.state.x,n.state.y)},n.onResizeStart=function(e){l.body.style.userSelect="none",l.addEventListener("mouseup",n.onResizeEnd),l.addEventListener("mousemove",n.onResizing);var t,r;t=e.clientX,r=e.clientY,n.props.onResizeStart&&n.props.onResizeStart(e,n.state.w,n.state.h),n.setState({originX:t,originY:r,zIndex:2,lastW:n.state.w,lastH:n.state.h}),e.stopPropagation()},n.onResizing=function(e){var t,r;e.type.indexOf("mouse")>=0?(t=e.clientX-n.state.originX,r=e.clientY-n.state.originY):(t=e.touches[0].clientX-n.state.originX,r=e.touches[0].clientY-n.state.originY),n.props.onResizing&&n.props.onResizing(e,n.state.w,n.state.h),n.setState({w:t+n.state.lastW,h:r+n.state.lastH})},n.onResizeEnd=function(e){l.body.style.userSelect="",l.removeEventListener("mousemove",n.onResizing),l.removeEventListener("mouseup",n.onResizeEnd),n.props.onResizeEnd&&n.props.onResizeEnd(e,n.state.w,n.state.h)},n.movePerFrame=function(e){if(n.setState({y:n.state.y+e}),++n.mQue>=10)return void(n.mQue=0);requestAnimationFrame(function(){return n.movePerFrame(e)})},n.mixin=function(){return{dragMix:{onMouseDown:n.onDragStartDebounce,onTouchStart:n.onDragStartDebounce,onTouchEnd:n.onDragEndDebounce,onMouseUp:n.onDragEndDebounce},resizeMix:{onMouseDown:n.onResizeStart,onMouseUp:n.onResizeEnd}}},n.parent=null,n.self=null,n}return r(t,e),t.prototype.componentDidMount=function(){l="undefined"==typeof document?{}:document,this._ismounted=!0},t.prototype.componentWillUnmount=function(){this._ismounted=!1},t.prototype.componentWillReceiveProps=function(e){e.isUserMove||"number"==typeof e.x&&"number"==typeof e.y&&this.setState({y:e.y,x:e.x,lastX:e.x,lastY:e.y,w:e.w,h:e.h})},t.prototype.render=function(){var e=this,t=this.state,n=t.x,r=t.y,i=t.w,a=t.h,l=this.props.style;this.props.isUserMove||(n=this.props.x?this.props.x:0,r=this.props.y?this.props.y:0,l&&(i=l.width?l.width:i,a=l.height?l.height:a)),l&&(i=0===i?l.width:i,a=0===a?l.height:a);var u=this.mixin(),c=u.dragMix,s=u.resizeMix,f={style:o({},l,{touchAction:"none!important",transform:"translate3d("+n+"px,"+r+"px,0px)",width:i,height:a}),ref:function(t){return e.Ref=t}};return this.props.children(f,c,s)},t.defaultProps={allowX:!0,allowY:!0,isUserMove:!0},t}(i.Component);t.Dragger=u},function(e,t,n){"use strict";var r=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;nimg{border-radius:5px}.layout-Cell{background:#fff;display:flex;align-items:center;height:100%}.layout-Cell:hover{cursor:-webkit-grab}.layout-Cell.static:hover{cursor:no-drop}",""])},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n1){var t=e.pop();if(!t)return;n._changeDragactLayouts(t)}},n.reset=function(){if(n._dragact){n._cachingLayouts(n._dragact),n._storeLayoutToHistory(n._cacheLayouts);var e=n._actionsHistory[0];n._changeDragactLayouts(e)}},n.clear=function(){n._actionsHistory=n._actionsHistory.slice(0,1),n._changeDragactLayouts(n._actionsHistory[0])},n.onDragStart=function(e,t){n._cacheCurrentLayoutStart(e),n.props.onDragStart&&n.props.onDragStart(e,t)},n.onDragEnd=function(e,t){n._cacheCurrentLayoutEnd(e),n.props.onDragEnd&&n.props.onDragEnd(e,t)},n._changeDragactLayouts=function(e){if(n._dragact)try{var t=JSON.parse(e).layout;n.setState({layout:t})}catch(e){}},n._storeLayoutToHistory=function(e){n._actionsHistory.push(e)},n._dragactRefCallback=function(e){n._dragact=e},n.state={layout:t.layout},n}return r(t,e),t.prototype.componentDidMount=function(){if(this._dragact){var e=this._cachingLayouts(this._dragact);this._storeLayoutToHistory(e)}},t.prototype.componentWillReceiveProps=function(e){this.setState({layout:e.layout})},Object.defineProperty(t.prototype,"getDragact",{get:function(){return this._dragact},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this.state.layout;return i.createElement(a.Dragact,o({ref:this._dragactRefCallback},this.props,{layout:e,onDragStart:this.onDragStart,onDragEnd:this.onDragEnd}))},t}(i.Component);t.HistoryDragact=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Words=[{content:"You can do anything, but not everything."},{content:"Those who dare to fail miserably can achieve greatly."},{content:"You miss 100 percent of the shots you never take."},{content:"Those who believe in telekinetics, raise my hand."},{content:"I’d rather live with a good question than a bad answer."},{content:"You can do anything, but not everything."},{content:"Those who dare to fail miserably can achieve greatly."},{content:"You miss 100 percent of the shots you never take."},{content:"Those who believe in telekinetics, raise my hand."},{content:"I’d rather live with a good question than a bad answer."},{content:"You can do anything, but not everything."},{content:"Those who dare to fail miserably can achieve greatly."},{content:"You miss 100 percent of the shots you never take."},{content:"Those who believe in telekinetics, raise my hand."},{content:"I’d rather live with a good question than a bad answer."},{content:"You can do anything, but not everything."},{content:"Those who dare to fail miserably can achieve greatly."},{content:"You miss 100 percent of the shots you never take."},{content:"Those who believe in telekinetics, raise my hand."},{content:"You miss 100 percent of the shots you never take."},{content:"You can do anything, but not everything."},{content:"Those who dare to fail miserably can achieve greatly."},{content:"You miss 100 percent of the shots you never take."},{content:"Those who believe in telekinetics, raise my hand."},{content:"I’d rather live with a good question than a bad answer."},{content:"You can do anything, but not everything."},{content:"Those who dare to fail miserably can achieve greatly."},{content:"You miss 100 percent of the shots you never take."},{content:"Those who believe in telekinetics, raise my hand."}]},function(e,t,n){var r=n(42);"string"==typeof r&&(r=[[e.i,r,""]]);var o={};o.transform=void 0,n(2)(r,o),r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(1)(!1),t.push([e.i,".layout-Item{background:#fff;height:100%;border-radius:3px}.layout-item:hover{cursor:-webkit-grab}.normal-layout{background:#d9d9d9}",""])},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;nbutton{padding:12px;background-color:#fff;margin-top:2px;border-radius:5px;border:1pt solid #1890ff;margin-left:20px}body{background:#fffbe6}",""])}]);